    :root {
      --navy: #0c3c6e;
      --navy-deep: #08284a;
      --gold: #c6a15b;
      --ink: #1c2430;
      --muted: #5c6b7a;
      --line: #d7e0ea;
      --paper: #f3f6fb;
      --card: #ffffff;
      --ok: #0f7a45;
      --err: #b42318;
      --focus: #1d6fbf;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      min-height: 100vh;
      color: var(--ink);
      background: #f7fafc;
      font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
      line-height: 1.45;
    }

    .univ-header {
      background: linear-gradient(#fff8f0 0%, #ffffff 40%, #fff5eb 100%);
      border-bottom: 3px solid #e85d04;
      box-shadow: 0 2px 12px rgba(232, 93, 4, 0.12);
      padding: 4px 12px;
      color: #1a202c;
    }

    .univ-header-inner {
      max-width: 1100px;
      min-height: 96px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .univ-header-logo { flex-shrink: 0; }
    .univ-header-logo img {
      display: block;
      width: 78px;
      height: 78px;
      object-fit: contain;
    }

    .univ-header-titles {
      flex: 1;
      text-align: center;
      min-width: 0;
      padding: 0 4px;
    }

    .univ-header-sanskrit {
      font-family: "Noto Sans Devanagari", Mangal, "Nirmala UI", serif;
      font-size: 0.92rem;
      font-weight: 600;
      color: #8b2500;
      line-height: 1.15;
      margin: 0;
    }

    .univ-header-english {
      font-size: 1.02rem;
      font-weight: 700;
      color: #1a365d;
      line-height: 1.15;
      margin: 0;
    }

    .univ-header-legal {
      margin: 1px 0 0;
      color: #1a365d;
      font-size: 0.68rem;
      font-weight: 600;
      line-height: 1.2;
    }

    .univ-header-portal {
      display: inline-block;
      margin: 6px 0 0;
      padding: 4px 14px 5px;
      font-size: 1.2rem;
      font-weight: 800;
      letter-spacing: 0.04em;
      line-height: 1.2;
      color: #fff;
      background: #1a365d;
      border-radius: 999px;
      box-shadow: inset 0 -3px 0 #e85d04;
    }

    .univ-header-banner { flex-shrink: 0; }
    .univ-header-banner img {
      display: block;
      width: auto;
      height: 78px;
      max-width: 220px;
      object-fit: contain;
      border-radius: 4px;
    }

    @media (max-width: 768px) {
      .univ-header-inner { min-height: 88px; height: auto; gap: 8px; }
      .univ-header-logo img { width: 64px; height: 64px; }
      .univ-header-banner img { height: 64px; max-width: 140px; }
      .univ-header-sanskrit { font-size: 0.72rem; }
      .univ-header-english { font-size: 0.82rem; }
      .univ-header-legal { font-size: 0.6rem; }
      .univ-header-portal { font-size: 1.02rem; margin-top: 4px; padding: 3px 12px 4px; }
    }

    @media (max-width: 520px) {
      .univ-header { padding: 4px 8px; }
      .univ-header-inner { height: auto; min-height: 72px; align-items: center; }
      .univ-header-banner { display: none; }
      .univ-header-logo img { width: 52px; height: 52px; }
      .univ-header-sanskrit { font-size: 0.68rem; }
      .univ-header-english { font-size: 0.78rem; }
      .univ-header-legal { font-size: 0.58rem; line-height: 1.15; }
      .univ-header-portal { font-size: 0.95rem; letter-spacing: 0.02em; }
    }

    .wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

    .phd-bar { text-align: left; margin: 14px 0 0; padding: 0; }
    .phd {
      display: inline-block;
      background: #fff;
      color: #1a365d;
      text-decoration: none;
      font-weight: 650;
      padding: 10px 16px;
      border-radius: 999px;
      border: 1px solid #e2e8f0;
    }
    .phd:hover { background: #fff8f0; }

    main { padding: 14px 0 40px; }
    .layout { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 22px; align-items: start; }
    @media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

    .card {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 16px;
      box-shadow: 0 10px 30px rgba(12, 60, 110, 0.06);
    }
    .card h2 {
      margin: 0;
      padding: 16px 22px;
      font-size: 1.05rem;
      color: #fff;
      background: var(--navy);
      border-radius: 16px 16px 0 0;
    }
    .card.aside h2 { background: #8d2d55; }
    .card-body { padding: 22px; }

    fieldset {
      border: 1px solid var(--line);
      border-radius: 12px;
      margin: 0 0 18px;
      padding: 16px 16px 8px;
    }
    legend {
      padding: 0 8px;
      font-weight: 700;
      color: var(--navy);
    }

    .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
    .grid .full { grid-column: 1 / -1; }
    @media (max-width: 640px) { .grid { grid-template-columns: 1fr; } .grid .full { grid-column: auto; } }

    label { display: block; font-size: 0.86rem; font-weight: 650; margin-bottom: 6px; }
    .hint { display: block; margin-top: 5px; color: var(--muted); font-size: 0.78rem; font-weight: 500; }
    .req { color: #b42318; }

    input, select {
      width: 100%;
      border: 1px solid #c5d0dc;
      background: #fff;
      color: var(--ink);
      border-radius: 8px;
      padding: 12px;
      font: inherit;
      font-size: 16px;
      min-height: 48px;
    }
    input[readonly] { background: #f4f7fb; color: #243140; }
    input:focus, select:focus {
      outline: 3px solid rgba(29, 111, 191, 0.25);
      border-color: var(--focus);
    }
    .status { min-height: 1.2em; margin: 6px 0 0; font-size: 0.82rem; }
    .status.ok { color: var(--ok); }
    .status.wait { color: var(--navy); }
    .status.err { color: var(--err); }
    .status.soft { color: var(--muted); }

    .wizard-head { margin-bottom: 16px; }
    .step-count {
      margin: 0;
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .step-name {
      margin: 2px 0 10px;
      color: var(--navy);
      font-size: 1.25rem;
      font-weight: 700;
    }
    .progress {
      height: 6px;
      border-radius: 999px;
      background: #e6eef6;
      overflow: hidden;
    }
    .progress span {
      display: block;
      height: 100%;
      width: 20%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--navy), #1d6fbf);
      transition: width 0.2s ease;
    }
    .stepper {
      list-style: none;
      display: flex;
      gap: 4px;
      margin: 12px 0 0;
      padding: 0;
    }
    .stepper li { flex: 1; min-width: 0; }
    .stepper button {
      width: 100%;
      min-height: 44px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: 4px 2px;
      border: 0;
      border-radius: 10px;
      background: transparent;
      color: var(--muted);
      font: inherit;
      font-size: 0.72rem;
      font-weight: 700;
      cursor: pointer;
    }
    .stepper button:hover { background: #f4f7fb; }
    .stepper .num {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      border: 2px solid #c5d0dc;
      background: #fff;
      font-size: 0.78rem;
    }
    .stepper .is-current button { color: var(--navy); }
    .stepper .is-current .num {
      background: var(--navy);
      border-color: var(--navy);
      color: #fff;
    }
    .stepper .is-done .num {
      background: var(--ok);
      border-color: var(--ok);
      color: #fff;
    }
    .step-lead { margin: 10px 0 0; color: #243140; }
    .step[hidden] { display: none !important; }
    .review-note { margin: 0 0 12px; }
    .consent {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin: 0 0 8px;
      font-size: 0.92rem;
      font-weight: 650;
      line-height: 1.4;
      cursor: pointer;
    }
    .consent input {
      width: 22px;
      height: 22px;
      min-height: 22px;
      margin: 2px 0 0;
      padding: 0;
      flex: 0 0 22px;
      accent-color: var(--navy);
    }
    .consent-msg {
      min-height: 0;
      margin: 0 0 8px;
      color: var(--err);
      font-size: 0.86rem;
      font-weight: 700;
    }
    .consent-msg:empty { display: none; }
    .review-block {
      border: 1px solid var(--line);
      border-radius: 12px;
      margin: 0 0 12px;
      overflow: hidden;
    }
    .review-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 8px 12px;
      background: #f4f7fb;
    }
    .review-head h3 {
      margin: 0;
      font-size: 0.92rem;
      color: var(--navy);
    }
    .review-block dl {
      display: grid;
      grid-template-columns: minmax(7.5rem, 34%) 1fr;
      gap: 8px 12px;
      margin: 0;
      padding: 12px;
    }
    .review-block dt { color: var(--muted); font-size: 0.8rem; }
    .review-block dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
    button.edit {
      border: 0;
      border-radius: 999px;
      background: #fff;
      color: var(--navy);
      padding: 6px 12px;
      min-height: 36px;
      font: inherit;
      font-size: 0.82rem;
      font-weight: 700;
      cursor: pointer;
    }
    button.edit:hover { background: #e8eef5; }

    .actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: center;
      margin-top: 6px;
    }
    .actions button[hidden] { display: none !important; }
    button {
      border: 0;
      border-radius: 8px;
      padding: 12px 18px;
      min-height: 48px;
      font: inherit;
      font-weight: 700;
      cursor: pointer;
    }
    button:disabled { cursor: default; opacity: 0.7; }
    .primary { background: var(--navy); color: #fff; margin-left: auto; min-width: 160px; }
    .primary:hover { background: #14548f; }
    .ghost { background: #e8eef5; color: var(--ink); }
    .ghost:hover { background: #dce6f1; }
    .text { background: transparent; color: var(--muted); }
    .text:hover { background: #f4f7fb; color: var(--ink); }

    @media (max-width: 640px) {
      body { padding-bottom: 132px; }
      .card-body { padding: 16px; }
      .stepper .label { font-size: 0.68rem; }
      .review-block dl { grid-template-columns: 1fr; gap: 2px; }
      .review-block dt { margin-top: 8px; }
      .review-block dt:first-child { margin-top: 0; }
      .review-block,
      button.edit,
      input, select {
        scroll-margin-bottom: 148px;
      }
      .actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 5;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 18px rgba(12, 60, 110, 0.06);
      }
      .actions .primary {
        grid-column: 1 / -1;
        order: -1;
        margin-left: 0;
        width: 100%;
      }
      .actions .ghost,
      .actions .text { width: 100%; }
      .actions .text { grid-column: 1 / -1; }
      #backBtn:not([hidden]) { grid-column: 1; }
      #backBtn:not([hidden]) ~ #resetBtn { grid-column: 2; }
    }

    .aside p { margin: 0 0 12px; color: #243140; }
    .contact { background: #fff6f8; border-radius: 10px; padding: 14px; }
    .contact strong { color: #8d2d55; }
    .note { font-size: 0.84rem; color: var(--muted); }
    .note a { color: var(--navy); }

    .banner {
      display: none;
      margin-bottom: 16px;
      padding: 12px 14px;
      border-radius: 10px;
      background: #e8f6ee;
      color: #0f7a45;
      border: 1px solid #b7e4c7;
    }
    .banner.show { display: block; }
    .banner.err {
      background: #fdecec;
      color: var(--err);
      border-color: #f3c1bd;
    }
  
