:root {
      --green: #087d69;
      --green2: #18a46c;
      --blue: #0b5ea8;
      --navy: #073c5d;
      --orange: #ff7a00;
      --red: #c9423d;
      --amber: #e49a16;
      --ink: #17324a;
      --muted: #66798b;
      --line: #d8e5eb;
      --soft: #f4f9fb;
      --shadow: 0 16px 40px #12394a12;
    }

    * {
      box-sizing: border-box
    }

    html {
      scroll-behavior: smooth
    }

    body {
      margin: 0;
      background: #edf4f6;
      color: var(--ink);
      font-family: Inter, Segoe UI, Arial, sans-serif;
      line-height: 1.42
    }

    button,
    input,
    select,
    textarea {
      font: inherit
    }

    button {
      cursor: pointer
    }

    .hidden {
      display: none !important
    }

    .shell {
      max-width: 1240px;
      margin: auto;
      background: #fff;
      min-height: 100vh;
      box-shadow: 0 0 30px #17324a12
    }

    .landing {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1.05fr .95fr
    }

    .landing-visual {
      padding: 55px;
      background: linear-gradient(150deg, #fff 0%, #f2fbf7 65%, #eaf4fb 100%);
      display: flex;
      flex-direction: column;
      justify-content: center
    }

    .logo-row {
      display: flex;
      align-items: center;
      gap: 18px
    }

    .logo-row img {
      width: 112px;
      height: 112px;
      object-fit: contain;
      background: #fff
    }

    .wordmark h1 {
      margin: 0;
      color: var(--navy);
      font-size: 34px
    }

    .wordmark .program {
      font-weight: 900;
      color: var(--green);
      font-size: 23px
    }

    .wordmark .motto {
      font-size: 13px;
      color: var(--muted);
      margin-top: 4px
    }

    .landing-visual h2 {
      font-size: 42px;
      line-height: 1.08;
      margin: 34px 0 13px;
      color: var(--navy)
    }

    .landing-visual h2 span {
      color: var(--green)
    }

    .landing-visual p {
      font-size: 17px;
      color: var(--muted);
      max-width: 680px
    }

    .feature-strip {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-top: 26px
    }

    .feature {
      padding: 14px;
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 14px;
      box-shadow: 0 8px 20px #12394a0b
    }

    .feature b {
      display: block;
      color: var(--navy);
      margin-bottom: 3px
    }

    .feature span {
      font-size: 12px;
      color: var(--muted)
    }

    .landing-access {
      background: var(--navy);
      padding: 50px 42px;
      color: #fff;
      display: flex;
      align-items: center
    }

    .access-card {
      width: 100%;
      max-width: 470px;
      margin: auto;
      background: #fff;
      color: var(--ink);
      border-radius: 20px;
      padding: 28px;
      box-shadow: 0 24px 55px #001f3040
    }

    .access-card h3 {
      margin: 0 0 6px;
      font-size: 25px;
      color: var(--navy)
    }

    .access-card .sub {
      font-size: 13px;
      color: var(--muted);
      margin-bottom: 22px
    }

    .tabs {
      display: flex;
      background: #eff4f7;
      border-radius: 10px;
      padding: 4px;
      margin-bottom: 18px
    }

    .tabs button {
      flex: 1;
      border: 0;
      background: transparent;
      padding: 9px;
      border-radius: 8px;
      font-weight: 800;
      color: var(--muted)
    }

    .tabs button.active {
      background: #fff;
      color: var(--navy);
      box-shadow: 0 3px 10px #12394a12
    }

    .field {
      margin-bottom: 13px
    }

    .field label {
      display: block;
      font-size: 12px;
      font-weight: 800;
      margin: 0 0 5px
    }

    input,
    select,
    textarea {
      width: 100%;
      border: 1px solid #cddce4;
      border-radius: 10px;
      padding: 11px 12px;
      color: var(--ink);
      background: #fff
    }

    input:focus,
    select:focus,
    textarea:focus {
      outline: 2px solid #0b5ea81c;
      border-color: var(--blue)
    }

    .btn {
      border: 0;
      border-radius: 10px;
      padding: 11px 16px;
      font-weight: 850
    }

    .btn-primary {
      background: var(--orange);
      color: #fff
    }

    .btn-green {
      background: var(--green);
      color: #fff
    }

    .btn-navy {
      background: var(--navy);
      color: #fff
    }

    .btn-soft {
      background: #edf4f7;
      color: var(--navy)
    }

    .btn-outline {
      background: #fff;
      border: 1px solid #c8d8e1;
      color: var(--navy)
    }

    .btn-block {
      width: 100%
    }

    .micro {
      font-size: 11px;
      color: var(--muted)
    }

    .app-header {
      padding: 16px 24px;
      border-bottom: 1px solid var(--line);
      background: linear-gradient(105deg, #fff 55%, #edf9f5);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px
    }

    .brand-mini {
      display: flex;
      align-items: center;
      gap: 12px
    }

    .brand-mini img {
      width: 62px;
      height: 62px;
      object-fit: contain
    }

    .brand-mini h2 {
      margin: 0;
      color: var(--navy);
      font-size: 21px
    }

    .brand-mini .tag {
      font-size: 12px;
      color: var(--green);
      font-weight: 850
    }

    .session-box {
      text-align: right;
      font-size: 11px;
      color: var(--muted)
    }

    .session-box b {
      color: var(--navy);
      font-size: 12px
    }

    .utility {
      display: flex;
      gap: 7px;
      flex-wrap: wrap;
      justify-content: flex-end;
      margin-top: 6px
    }

    .utility button {
      padding: 6px 9px;
      border-radius: 8px;
      border: 1px solid #cddce4;
      background: #fff;
      color: var(--navy);
      font-weight: 750;
      font-size: 11px
    }

    .progress-sticky {
      position: sticky;
      top: 0;
      z-index: 25;
      background: #fff;
      padding: 9px 24px 10px;
      border-bottom: 1px solid var(--line)
    }

    .progress-meta {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      font-size: 11px;
      color: var(--muted);
      margin-bottom: 5px
    }

    .progress-track {
      height: 8px;
      background: #e7eff2;
      border-radius: 99px;
      overflow: hidden
    }

    .progress-bar {
      height: 100%;
      width: 0;
      background: linear-gradient(90deg, var(--blue), var(--green));
      transition: .25s
    }

    main {
      padding: 22px 26px 110px
    }

    .card {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fff;
      padding: 20px;
      margin-bottom: 17px;
      box-shadow: 0 6px 18px #17324a08
    }

    .card h3 {
      margin: 0 0 5px;
      color: var(--navy);
      font-size: 20px
    }

    .card h4 {
      color: var(--navy)
    }

    .hint {
      font-size: 12px;
      color: var(--muted);
      margin: 0 0 15px
    }

    .grid2 {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 13px
    }

    .grid3 {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 13px
    }

    label {
      font-size: 12px;
      font-weight: 800;
      display: block;
      margin-bottom: 5px
    }

    .req {
      color: var(--red)
    }

    .notice {
      padding: 11px 13px;
      border-radius: 10px;
      background: #fff8e8;
      border: 1px solid #f4d99e;
      color: #7c5a17;
      font-size: 12px
    }

    .info {
      background: #eff8fb;
      border-color: #cfe5ed;
      color: #315c70
    }

    .success {
      background: #eff9f4;
      border: 1px solid #cbeadb;
      color: #176747;
      padding: 12px;
      border-radius: 10px
    }

    .q-section {
      display: none
    }

    .q-section.active {
      display: block
    }

    .qcard {
      border: 1px solid var(--line);
      border-radius: 13px;
      padding: 15px;
      margin-bottom: 12px
    }

    .qhead {
      display: flex;
      gap: 10px;
      align-items: flex-start
    }

    .qnum {
      min-width: 34px;
      height: 34px;
      border-radius: 9px;
      background: #eaf3fb;
      color: var(--blue);
      font-weight: 900;
      display: grid;
      place-items: center
    }

    .qtext {
      font-weight: 750;
      flex: 1
    }

    .qmeta {
      font-size: 11px;
      color: var(--muted);
      margin-top: 4px
    }

    .focus {
      display: inline-block;
      background: #e8f7f1;
      color: var(--green);
      border-radius: 99px;
      padding: 2px 7px;
      font-weight: 850;
      margin-left: 5px
    }

    .scale {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 7px;
      margin-top: 11px
    }

    .scale input {
      display: none
    }

    .scale label {
      margin: 0;
      text-align: center;
      border: 1px solid #d4e1e7;
      border-radius: 9px;
      padding: 9px 6px;
      background: #fbfcfd;
      cursor: pointer;
      font-size: 11px;
      font-weight: 750
    }

    .scale input:checked+label {
      border-color: var(--blue);
      background: #eef6fc;
      color: var(--blue);
      box-shadow: 0 0 0 2px #0b5ea811
    }

    .legend {
      display: flex;
      gap: 7px;
      flex-wrap: wrap;
      margin-top: 9px;
      color: var(--muted);
      font-size: 10px
    }

    .legend span {
      background: #f4f7f9;
      padding: 3px 6px;
      border-radius: 5px
    }

    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: var(--navy);
      z-index: 40;
      box-shadow: 0 -8px 25px #00283c20
    }

    .bottom-nav .inner {
      max-width: 1240px;
      margin: auto;
      display: flex;
      justify-content: space-between;
      gap: 10px;
      padding: 11px 25px
    }

    .bottom-nav .right {
      display: flex;
      gap: 8px
    }

    .bottom-nav .btn-soft {
      background: #eff4f7
    }

    .dashboard {
      display: none
    }

    .hero-score {
      display: grid;
      grid-template-columns: 220px 1fr;
      gap: 22px;
      align-items: center
    }

    .gauge {
      width: 205px;
      height: 205px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      position: relative;
      background: conic-gradient(var(--green) 0deg, #e7eef1 0)
    }

    .gauge:after {
      content: "";
      position: absolute;
      width: 154px;
      height: 154px;
      border-radius: 50%;
      background: #fff
    }

    .gauge-inner {
      position: relative;
      z-index: 2;
      text-align: center
    }

    .gauge-inner strong {
      font-size: 44px;
      color: var(--navy)
    }

    .gauge-inner span {
      display: block;
      font-size: 12px;
      color: var(--muted)
    }

    .kpis {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 9px;
      margin-top: 15px
    }

    .kpi {
      border: 1px solid var(--line);
      border-radius: 11px;
      padding: 12px;
      background: var(--soft)
    }

    .kpi span {
      font-size: 10px;
      color: var(--muted);
      display: block
    }

    .kpi strong {
      font-size: 20px;
      color: var(--navy)
    }

    .score-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px
    }

    .radar-wrap {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 390px
    }

    #radarCanvas {
      max-width: 430px;
      width: 100%;
      height: auto
    }

    .domain-list {
      display: flex;
      flex-direction: column;
      gap: 8px
    }

    .domain-row {
      display: grid;
      grid-template-columns: 185px 1fr 48px 78px;
      align-items: center;
      gap: 8px;
      font-size: 12px
    }

    .bar {
      height: 10px;
      background: #e7eff2;
      border-radius: 99px;
      overflow: hidden
    }

    .bar span {
      height: 100%;
      display: block
    }

    .status-pill {
      padding: 4px 6px;
      border-radius: 99px;
      text-align: center;
      font-size: 10px;
      font-weight: 850
    }

    .green {
      background: #e8f7ef;
      color: #18704d
    }

    .blue {
      background: #e8f2fb;
      color: #165f98
    }

    .amber {
      background: #fff4de;
      color: #8d610c
    }

    .red {
      background: #fdecea;
      color: #9d332e
    }

    .gap {
      border-left: 5px solid var(--red);
      background: #fff8f7;
      padding: 12px 14px;
      border-radius: 10px;
      margin-bottom: 10px
    }

    .gap.med {
      border-left-color: var(--amber);
      background: #fffbf3
    }

    .gap h4 {
      margin: 0 0 4px;
      font-size: 14px
    }

    .gap p {
      margin: 4px 0;
      font-size: 12px
    }

    .pill {
      display: inline-block;
      padding: 3px 6px;
      border-radius: 99px;
      border: 1px solid #d7e1e6;
      background: #fff;
      font-size: 10px;
      margin-right: 4px
    }

    .effort-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 8px
    }

    .phase {
      border: 1px solid var(--line);
      border-radius: 11px;
      padding: 11px;
      background: #f8fbfc
    }

    .phase b {
      display: block;
      color: var(--navy);
      font-size: 12px
    }

    .phase strong {
      display: block;
      font-size: 23px;
      color: var(--green);
      margin: 4px 0
    }

    .phase span {
      font-size: 10px;
      color: var(--muted)
    }

    .budget-band {
      margin-top: 13px;
      border-radius: 13px;
      padding: 15px;
      background: linear-gradient(100deg, #073c5d, #0b5ea8);
      color: #fff;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px
    }

    .budget-band span {
      display: block;
      font-size: 10px;
      opacity: .78
    }

    .budget-band strong {
      font-size: 19px
    }

    .action-table-wrap {
      overflow: auto;
      border: 1px solid var(--line);
      border-radius: 12px
    }

    table {
      border-collapse: collapse;
      width: 100%;
      min-width: 1100px;
      font-size: 11px
    }

    th,
    td {
      border-bottom: 1px solid #e4ecef;
      border-right: 1px solid #eef3f5;
      padding: 8px;
      vertical-align: top
    }

    th {
      background: #eef5f8;
      color: var(--navy);
      text-align: left;
      position: sticky;
      top: 0
    }

    td[contenteditable="true"] {
      background: #fffdf5;
      outline: none
    }

    td[contenteditable="true"]:focus {
      box-shadow: inset 0 0 0 2px #ff7a0030
    }

    .report-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 15px
    }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: #001e2f88;
      z-index: 80;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px
    }

    .modal-backdrop.open {
      display: flex
    }

    .modal {
      background: #fff;
      border-radius: 17px;
      max-width: 650px;
      width: 100%;
      max-height: 90vh;
      overflow: auto;
      padding: 23px;
      box-shadow: 0 25px 70px #00141f55
    }

    .modal h3 {
      margin: 0 0 5px;
      color: var(--navy)
    }

    .close {
      float: right;
      border: 0;
      background: #edf4f7;
      border-radius: 8px;
      padding: 7px 10px
    }

    .timer.warn {
      color: var(--orange);
      font-weight: 850
    }

    .timer.over {
      color: var(--red);
      font-weight: 900
    }

    .admin-badge {
      display: inline-block;
      background: #fff1dc;
      color: #8a5a08;
      border-radius: 99px;
      padding: 3px 7px;
      font-size: 10px;
      font-weight: 850
    }

    .consent-wrap {
      margin-top: 14px;
      padding: 13px 14px;
      border: 1px solid #cfe5ed;
      background: #f2f9fc;
      border-radius: 12px
    }

    .consent-wrap label {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      font-weight: 650;
      font-size: 12px;
      margin: 0
    }

    .consent-wrap input[type="checkbox"] {
      width: 18px;
      height: 18px;
      min-width: 18px;
      margin-top: 1px
    }

    .tx-status {
      margin-top: 10px;
      padding: 10px 12px;
      border-radius: 10px;
      background: #f4f8fa;
      border: 1px solid #d7e4ea;
      font-size: 11px;
      color: #526879
    }

    .tx-status.ok {
      background: #eff9f4;
      border-color: #cbeadb;
      color: #176747
    }

    .tx-status.warn {
      background: #fff8e8;
      border-color: #f2d59b;
      color: #805b12
    }

    .print-only {
      display: none
    }

    @media(max-width:900px) {
      .landing {
        grid-template-columns: 1fr
      }

      .landing-access {
        padding: 34px 18px
      }

      .landing-visual {
        padding: 35px 22px
      }

      .landing-visual h2 {
        font-size: 34px
      }

      .feature-strip,
      .grid3,
      .kpis,
      .effort-grid {
        grid-template-columns: 1fr 1fr
      }

      .score-grid {
        grid-template-columns: 1fr
      }

      .grid2 {
        grid-template-columns: 1fr
      }

      .domain-row {
        grid-template-columns: 1fr
      }

      .hero-score {
        grid-template-columns: 1fr
      }

      .gauge {
        margin: auto
      }

      .app-header {
        align-items: flex-start
      }

      .session-box {
        text-align: left
      }

      .app-header {
        flex-direction: column
      }
    }

    @media(max-width:600px) {

      .feature-strip,
      .kpis,
      .effort-grid,
      .budget-band {
        grid-template-columns: 1fr
      }

      .scale {
        grid-template-columns: 1fr 1fr
      }

      main {
        padding-left: 13px;
        padding-right: 13px
      }

      .progress-sticky {
        padding-left: 13px;
        padding-right: 13px
      }

      .bottom-nav .inner {
        padding: 9px 12px
      }

      .brand-mini img {
        width: 50px;
        height: 50px
      }
    }

    @media print {
      body {
        background: #fff
      }

      .shell {
        box-shadow: none
      }

      .app-header,
      .progress-sticky,
      .bottom-nav,
      .report-actions,
      .no-print {
        display: none !important
      }

      main {
        padding: 0
      }

      .dashboard {
        display: block !important
      }

      .card {
        break-inside: avoid;
        box-shadow: none
      }

      .print-only {
        display: block
      }
    }