*,
      *::before,
      *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }

      :root {
        --hdr: #1c1c2e;
        --hdr2: #2c3e50;
        --border: #ddd;

        --thinking: #664a98;
        --thinking-light: #f5f0fb;
        --comm: #4d7a2a;
        --comm-light: #f3f8ef;
        --social: #0774b8;
        --social-light: #f0f6fc;
        --selfmgmt: #bc8410;
        --selfmgmt-light: #fef9f2;
        --research: #d45f80;
        --research-light: #fef3f7;
      }

      body {
        font-family: "Outfit", sans-serif;
        font-weight: 300;
        background: #fff;
        color: #222;
      }

      .page-wrapper {
        max-width: 1350px;
        margin: 0 auto;
        padding: 18px 20px 40px;
      }

      /* ── HEADER ── */
      .report-header {
        text-align: center;
        margin-bottom: 8px;
      }
      .report-header h1 {
        display: flex;
        align-items: center;
        gap: 12px;
        justify-content: center;
        font-size: 24px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: #111;
        line-height: 1.15;
      }
      .report-header h1::before,
      .report-header h1::after {
        content: "";
        flex: 1;
        height: 1px;
        background-color: #111;
      }
      .report-header .subtitle {
        font-size: 12px;
        color: #666;
        font-style: italic;
        margin-top: 4px;
      }

      /* ── TABLE WRAPPER ── */
      .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }

      /* ── TABLE ── */
      .atl-table {
        border-collapse: collapse;
        width: 100%;
        min-width: 1000px;
        table-layout: fixed;
        border: 1px solid #ddd;
      }
      .atl-table th,
      .atl-table td {
        border: 1px solid var(--border);
        vertical-align: middle;
        padding: 5px 6px;
      }

      /* ── THEAD ROW 1 ── */
      .atl-table thead tr:first-child th {
        color: #fff;
        font-size: 12.5px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.7px;
        text-align: center;
        padding: 8px 5px;
        border-color: var(--border);
      }
      .atl-table thead tr:first-child th:nth-child(1) {
        background: #022156;
      }
      .atl-table thead tr:first-child th:nth-child(2) {
        background: #664a98;
      }
      .atl-table thead tr:first-child th:nth-child(3) {
        background: #476cb1;
      }
      .atl-table thead tr:first-child th:nth-child(4) {
        background: #1a8c91;
      }
      .atl-table thead tr:first-child th:nth-child(5) {
        background: #012155;
      }
      .atl-table thead tr:first-child th.grade-group {
        background: #012155;
        font-size: 12.5px;
        letter-spacing: 1px;
      }

      /* ── THEAD ROW 2 ── */
      .atl-table thead tr:nth-child(2) th {
        color: #a8bac8;
        font-size: 8px;
        font-weight: 400;
        font-style: italic;
        text-align: center;
        padding: 4px 4px;
        border-color: var(--border);
      }
      .atl-table thead tr:nth-child(2) th:nth-child(1) {
        background: #022156;
      }
      .atl-table thead tr:nth-child(2) th:nth-child(2) {
        background: #664a98;
      }
      .atl-table thead tr:nth-child(2) th:nth-child(3) {
        background: #476cb1;
      }
      .atl-table thead tr:nth-child(2) th:nth-child(4) {
        background: #1a8c91;
      }
      .atl-table thead tr:nth-child(2) th.grade-num {
        background: #012155 !important;
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        font-style: normal;
        letter-spacing: 0;
      }

      /* ── SUBJECT CELL ── */
      .subject-cell {
        text-align: center;
        vertical-align: middle;
        font-size: 15px;
        font-style: italic;
        color: #888;
        line-height: 1.3;
        background: #f9f9f9 !important;
        border-right: 1px solid var(--border) !important;
      }

      /* ── CATEGORY CELL ── */
      .category-cell {
        text-align: center;
        vertical-align: middle;
        color: #fff;
        padding: 8px 5px;
        border-right: 1px solid rgba(0, 0, 0, 0.18) !important;
      }
      .cat-content {
        display: flex;
        align-items: center;
        gap: 6px;
        justify-content: center;
      }
      .cat-icon-wrap {
        font-size: 18px;
        flex-shrink: 0;
      }
      .cat-label {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        line-height: 1.3;
        word-spacing: 100vw;
        display: inline-block;
        text-align: left;
      }

      .thinking-cell {
        background: var(--thinking) !important;
      }
      .comm-cell {
        background: var(--comm) !important;
      }
      .social-cell {
        background: var(--social) !important;
      }
      .selfmgmt-cell {
        background: var(--selfmgmt) !important;
      }
      .research-cell {
        background: var(--research) !important;
      }

      /* Inverted colors for td category cells */
      td.thinking-cell {
        background: #fff !important;
        color: var(--thinking) !important;
      }
      td.comm-cell {
        background: #fff !important;
        color: var(--comm) !important;
      }
      td.social-cell {
        background: #fff !important;
        color: var(--social) !important;
      }
      td.selfmgmt-cell {
        background: #fff !important;
        color: var(--selfmgmt) !important;
      }
      td.research-cell {
        background: #fff !important;
        color: var(--research) !important;
      }
      td.category-cell .cat-icon-wrap {
        color: inherit;
      }

      /* ── ROW TINTS ── */
      tr.thinking-row > td {
        background: var(--thinking-light);
      }
      tr.comm-row > td {
        background: var(--comm-light);
      }
      tr.social-row > td {
        background: var(--social-light);
      }
      tr.selfmgmt-row > td {
        background: var(--selfmgmt-light);
      }
      tr.research-row > td {
        background: var(--research-light);
      }

      /* ── BLOCK SEPARATOR ── */
      tr.block-start > td {
        border-top: 1px solid var(--border);
      }

      /* ── DATA CELLS ── */
      .subcategory-cell {
        font-size: 11.5px;
        font-weight: 500;
        color: #333;
        line-height: 1.2;
        text-align: center;
        padding: 8px 4px;
      }
      .subcategory-cell .sub-item {
        margin: 6px 0;
      }
      .subcategory-cell .sub-item::before {
        content: "• ";
        margin-right: 3px;
      }
      .statement-cell {
        font-size: 13px;
        color: #555;
        font-style: italic;
        line-height: 1.3;
        text-align: center;
      }
      .grade-cell {
        text-align: center;
        font-size: 13px;
        color: #666;
        line-height: 1.45;
      }

      /* ── KEY SECTION ── */
      .key-section {
        margin-top: 14px;
        padding: 10px 16px 12px;
        background: #f2f2f2;
        border: 1px solid #ddd;
        border-radius: 3px;
        position: relative;
      }
      .key-title {
        position: absolute;
        top: -5px;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2.5px;
        color: #222;
        background: #fff;
        padding: 0 12px;
        margin-bottom: 0;
      }
      .key-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 14px;
        padding-top: 16px;
      }
      .key-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        flex: 1 1 200px;
        max-width: none;
      }
      .key-circle {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: #fff;
        flex-shrink: 0;
      }
      .key-circle.thinking {
        background: var(--thinking);
      }
      .key-circle.comm {
        background: var(--comm);
      }
      .key-circle.social {
        background: var(--social);
      }
      .key-circle.selfmgmt {
        background: var(--selfmgmt);
      }
      .key-circle.research {
        background: var(--research);
      }
      .key-text strong {
        font-size: 12px;
        font-weight: 700;
        display: block;
        margin-bottom: 4px;
        color: #111;
      }
      .key-text p {
        font-size: 11px;
        color: #555;
        line-height: 1.6;
        margin: 0;
      }