:root {
      --bg0: #0b1220;
      --bg1: #111827;
      --card: #151c2c;
      --card-hi: #1a2336;
      --border: #2a3548;
      --orange: #e85d04;
      --orange-soft: #ffb703;
      --emerald: #2dd4a8;
      --rose: #f87171;
      --cyan: #38bdf8;
      --violet: #a78bfa;
      --text: #e8edf5;
      --muted: #8b9bb4;
      --radius: 1rem;
      --nav-h: 4.25rem;
      --tile: #1a2336;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: Inter, system-ui, sans-serif;
      color: var(--text);
      background: var(--bg0);
      min-height: 100vh;
      line-height: 1.5;
      padding-bottom: calc(var(--nav-h) + 1.25rem);
    }
    h1, h2, h3, .heading { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 600; }
    a { color: var(--orange-soft); }
    a:hover { color: #fff; }
    .wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem 3rem; }

    .banner {
      background: #1e293b;
      color: #94a3b8;
      font-size: 0.68rem;
      text-align: center;
      padding: 0.4rem 0.75rem;
      border-bottom: 1px solid var(--border);
      line-height: 1.35;
    }
    .banner strong { color: #fbbf24; font-weight: 600; }

    header.app-header {
      position: sticky;
      top: 0;
      z-index: 40;
      background: rgba(11, 18, 32, 0.94);
      border-bottom: 1px solid var(--border);
      backdrop-filter: blur(10px);
    }
    header .inner {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 0.65rem;
      padding: 0.75rem 0;
    }
    header h1 {
      margin: 0;
      font-size: 1.2rem;
      color: #fff;
      letter-spacing: -0.02em;
      display: flex;
      align-items: center;
      gap: 0.45rem;
    }
    header h1 .logo-mark {
      width: 1.75rem;
      height: 1.75rem;
      border-radius: 0.45rem;
      background: linear-gradient(145deg, #e85d04, #9a3412);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
    }
    header h1.brand-lockup { margin: 0; line-height: 0; }
    header a.brand-link {
      display: inline-flex;
      align-items: center;
      text-decoration: none;
    }
    header img.brand-logo-h {
      display: block;
      height: 44px;
      width: auto;
      max-width: min(240px, 55vw);
    }
    @media (min-width: 640px) {
      header img.brand-logo-h { height: 50px; max-width: 260px; }
    }
    header .brand-row {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-wrap: wrap;
    }
    header .header-home-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.35rem;
      min-height: 2.5rem;
      min-width: 2.75rem;
      padding: 0.4rem 0.75rem;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--tile);
      color: var(--text);
      font-size: 0.85rem;
      font-weight: 600;
      text-decoration: none;
      white-space: nowrap;
    }
    header .header-home-btn:hover {
      border-color: var(--orange);
      color: #fff;
      background: #1a2336;
    }
    header .header-home-btn i { color: var(--orange); font-size: 0.95rem; }
    header .header-home-btn.is-current {
      opacity: 0.55;
      pointer-events: none;
    }
    header .sub { margin: 0.25rem 0 0; font-size: 0.78rem; color: var(--muted); }
    .pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
    .pill {
      background: var(--tile);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 0.3rem 0.7rem;
      font-size: 0.7rem;
      font-variant-numeric: tabular-nums;
    }
    .pill strong { color: var(--orange-soft); font-weight: 600; }

    /* Module home — station-app tile pattern */
    .home-status {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.5rem;
      margin: 0.85rem 0 1rem;
    }
    .home-status .stat {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 0.85rem;
      padding: 0.65rem 0.4rem;
      text-align: center;
    }
    .home-status .k { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
    .home-status .v { font-size: 0.85rem; font-weight: 600; color: var(--orange-soft); margin-top: 0.15rem; word-break: break-all; }

    .mod-section {
      margin: 1.1rem 0 0.45rem;
      font-size: 0.68rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--muted);
    }
    .module-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.55rem;
    }
    @media (min-width: 640px) {
      .module-grid { grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
    }
    @media (min-width: 900px) {
      .module-grid { grid-template-columns: repeat(5, 1fr); }
    }
    a.mod-tile, .mod-tile {
      appearance: none;
      border: 1px solid var(--border);
      background: var(--tile);
      border-radius: 1rem;
      padding: 0.85rem 0.45rem 0.7rem;
      color: var(--text);
      cursor: pointer;
      font-family: inherit;
      text-align: center;
      transition: border-color 0.15s, transform 0.12s, background 0.15s;
      min-height: 5.5rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      text-decoration: none;
    }
    .mod-tile:hover, .mod-tile:focus-visible {
      border-color: var(--orange);
      background: var(--card-hi);
      outline: none;
    }
    .mod-tile:active { transform: scale(0.97); }
    .mod-icon {
      width: 2.4rem;
      height: 2.4rem;
      border-radius: 0.7rem;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.05rem;
      color: #fff;
    }
    .mod-icon.orange { background: linear-gradient(145deg, #e85d04, #c2410c); }
    .mod-icon.emerald { background: linear-gradient(145deg, #10b981, #047857); }
    .mod-icon.cyan { background: linear-gradient(145deg, #0ea5e9, #0369a1); }
    .mod-icon.violet { background: linear-gradient(145deg, #8b5cf6, #6d28d9); }
    .mod-icon.rose { background: linear-gradient(145deg, #f43f5e, #be123c); }
    .mod-icon.amber { background: linear-gradient(145deg, #f59e0b, #b45309); }
    .mod-icon.slate { background: linear-gradient(145deg, #64748b, #334155); }
    .mod-label { font-size: 0.72rem; font-weight: 600; line-height: 1.2; }
    .mod-hint { font-size: 0.58rem; color: var(--muted); line-height: 1.2; max-width: 6.5rem; }

    .quick-row {
      display: flex;
      gap: 0.45rem;
      overflow-x: auto;
      padding-bottom: 0.25rem;
      margin: 0.5rem 0 0.25rem;
      -webkit-overflow-scrolling: touch;
    }
    a.quick-chip, .quick-chip {
      flex: 0 0 auto;
      border: 1px solid var(--border);
      background: var(--card);
      color: var(--text);
      border-radius: 999px;
      padding: 0.4rem 0.75rem;
      font-size: 0.75rem;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
      white-space: nowrap;
      text-decoration: none;
    }
    .quick-chip:hover { border-color: var(--orange); color: var(--orange-soft); }

    .familiar-note {
      margin: 1rem 0 0;
      padding: 0.75rem 0.9rem;
      border-radius: 0.85rem;
      background: #121a2b;
      border: 1px dashed #334155;
      font-size: 0.78rem;
      color: var(--muted);
    }
    .familiar-note strong { color: #cbd5e1; }

    /* Bottom nav — mobile app pattern */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 50;
      height: var(--nav-h);
      background: rgba(15, 23, 42, 0.97);
      border-top: 1px solid var(--border);
      display: flex;
      justify-content: space-around;
      align-items: stretch;
      padding: 0 0.25rem env(safe-area-inset-bottom);
      backdrop-filter: blur(12px);
    }
    a.bnav-btn, .bnav-btn {
      flex: 1;
      max-width: 5.5rem;
      border: none;
      background: transparent;
      color: var(--muted);
      font-family: inherit;
      font-size: 0.62rem;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.2rem;
      padding: 0.35rem;
      text-decoration: none;
    }
    .bnav-btn i { font-size: 1.15rem; }
    .bnav-btn.active { color: var(--orange-soft); }
    .bnav-btn.active i { color: var(--orange); }

    /* Secondary chip bar (context tools inside a section) */
    nav.tabs {
      display: none;
      flex-wrap: wrap;
      gap: 0.35rem;
      margin: 0.75rem 0 1rem;
    }
    nav.tabs.show-more {
      display: flex;
    }
    .tab-btn {
      cursor: pointer;
      border: 1px solid var(--border);
      background: var(--card);
      color: var(--text);
      border-radius: 999px;
      padding: 0.4rem 0.75rem;
      font-size: 0.75rem;
      font-weight: 500;
      font-family: inherit;
    }
    .tab-btn:hover { border-color: var(--orange); }
    .tab-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }

    .page-body { min-height: 40vh; }
    .stack { display: flex; flex-direction: column; gap: 1rem; }

    .calc-result {
      margin-top: 0.85rem;
      padding: 0.85rem;
      border-radius: 0.85rem;
      background: rgba(6, 78, 59, 0.35);
      border: 1px solid rgba(52, 211, 153, 0.35);
    }
    .calc-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 0.65rem;
      text-align: center;
    }
    .calc-grid .k {
      display: block;
      font-size: 0.65rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--muted);
      margin-bottom: 0.2rem;
    }
    .calc-grid strong {
      font-size: 1.15rem;
      color: #6ee7b7;
      font-variant-numeric: tabular-nums;
    }
    #calc-status.err {
      background: rgba(127, 29, 29, 0.4);
      border-color: rgba(251, 113, 133, 0.45);
      color: #fecaca;
    }
    #calc-status.ok {
      background: rgba(6, 78, 59, 0.35);
      border-color: rgba(52, 211, 153, 0.35);
      color: #a7f3d0;
    }
    #calc-miles-btn:disabled {
      opacity: 0.65;
      cursor: wait;
    }
    .panel-title {
      margin: 0.25rem 0 0.75rem;
      font-size: 1.15rem;
      color: #fff;
    }
    .panel-title span {
      display: block;
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--muted);
      margin-top: 0.15rem;
      font-family: Inter, system-ui, sans-serif;
    }

    .card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.1rem 1.15rem;
    }
    .card h3 {
      margin: 0 0 0.5rem;
      font-size: 1rem;
      color: #ffd6a5;
      display: flex;
      align-items: center;
      gap: 0.45rem;
    }
    .card p { margin: 0.4rem 0; font-size: 0.9rem; color: #cbd5e1; }
    .card .meta { font-size: 0.75rem; color: var(--muted); }
    .card .note {
      background: rgba(120, 53, 15, 0.35);
      border: 1px solid rgba(251, 191, 36, 0.35);
      border-radius: 0.75rem;
      padding: 0.65rem 0.75rem;
      font-size: 0.82rem;
      color: #fde68a;
    }
    .card .small { font-size: 0.8rem; color: var(--muted); }
    .right-card i { color: var(--orange); }

    .grid-2 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1rem;
    }
    .grid-units {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 0.75rem;
    }

    .check-item {
      display: flex;
      flex-direction: row;
      gap: 0.65rem;
      align-items: flex-start;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      padding: 0.5rem 0;
      font-size: 0.9rem;
      cursor: pointer;
      overflow: visible;
    }
    .check-item input[type="checkbox"],
    .check-item input[type="radio"] {
      margin-top: 0.2rem;
      flex: 0 0 auto;
    }
    .check-item > span {
      flex: 1 1 auto;
      min-width: 0;
      white-space: normal;
      overflow-wrap: anywhere;
      word-break: break-word;
      line-height: 1.4;
      color: var(--text);
    }
    .check-item input:checked + span { text-decoration: line-through; opacity: 0.55; }
    .progress-row {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-top: 0.75rem;
      padding-top: 0.75rem;
      border-top: 1px solid #334155;
    }
    .progress-track {
      flex: 1;
      height: 0.5rem;
      background: #1e293b;
      border-radius: 999px;
      overflow: hidden;
    }
    .progress-fill {
      height: 100%;
      background: var(--orange);
      width: 0%;
      transition: width 0.2s;
    }
    .progress-pct { font-size: 0.75rem; color: var(--orange-soft); width: 2.5rem; text-align: right; }

    label.field {
      display: block;
      margin-bottom: 0.75rem;
    }
    label.field span {
      display: block;
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--muted);
      margin-bottom: 0.3rem;
    }
    input, select, textarea {
      width: 100%;
      background: #0f172a;
      border: 1px solid #475569;
      border-radius: 0.75rem;
      color: var(--text);
      padding: 0.55rem 0.75rem;
      font: inherit;
      font-size: 0.9rem;
      box-sizing: border-box;
    }
    /* Checkboxes must NOT use width:100% — that breaks .check-item flex rows */
    input[type="checkbox"],
    input[type="radio"] {
      width: auto;
      min-width: 1.2rem;
      max-width: 1.25rem;
      height: 1.2rem;
      margin: 0.15rem 0 0;
      padding: 0;
      border: none;
      border-radius: 0.25rem;
      background: transparent;
      flex-shrink: 0;
      accent-color: var(--orange);
      box-shadow: none;
    }
    input:focus, select:focus, textarea:focus {
      outline: none;
      border-color: var(--orange);
      box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25);
    }
    input[type="checkbox"]:focus,
    input[type="radio"]:focus {
      box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.35);
    }
    .form-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 0.65rem;
    }
    .check-inline {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.85rem;
      color: var(--muted);
      margin: 0.5rem 0 0.75rem;
    }
    .check-inline input { width: auto; }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      border: none;
      border-radius: 0.75rem;
      padding: 0.55rem 0.95rem;
      font: inherit;
      font-size: 0.85rem;
      font-weight: 500;
      cursor: pointer;
      text-decoration: none;
    }
    .btn-primary { background: #c2410c; color: #fff; }
    .btn-primary:hover { background: #ea580c; color: #fff; }
    .btn-ghost {
      background: transparent;
      color: var(--orange-soft);
      border: 1px solid rgba(249, 115, 22, 0.45);
    }
    .btn-ghost:hover { background: rgba(249, 115, 22, 0.15); color: #fff; }
    .btn-emerald { background: #047857; color: #fff; }
    .btn-emerald:hover { background: #059669; }
    .btn-danger { background: transparent; color: var(--rose); border: 1px solid rgba(251, 113, 133, 0.4); }
    .btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
    .icon-btn {
      background: transparent;
      border: none;
      color: var(--muted);
      cursor: pointer;
      padding: 0.25rem;
    }
    .icon-btn:hover { color: var(--rose); }

    .table-wrap { overflow-x: auto; margin-top: 0.75rem; }
    table.mileage {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.8rem;
    }
    table.mileage th, table.mileage td {
      text-align: left;
      padding: 0.45rem 0.4rem;
      border-bottom: 1px solid #334155;
    }
    table.mileage th { color: var(--muted); font-weight: 500; font-size: 0.7rem; text-transform: uppercase; }
    table.mileage .num { font-variant-numeric: tabular-nums; text-align: right; }
    #mileage-summary { margin-top: 0.75rem; font-size: 0.9rem; color: #cbd5e1; }
    #mileage-summary .highlight { color: var(--emerald); font-weight: 600; font-size: 1.05rem; }
    #mileage-rate-label { font-size: 0.8rem; color: #fde68a; margin: 0.25rem 0 0.75rem; }

    .empty { color: var(--muted); font-size: 0.9rem; font-style: italic; }

    .exposure-card .card-top, .card-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 0.5rem;
    }

    .tl-item {
      display: grid;
      grid-template-columns: 7rem 1fr;
      gap: 0.75rem;
      padding: 0.75rem 0;
      border-left: 3px solid transparent;
      padding-left: 0.75rem;
      margin-left: 0.25rem;
    }
    .tl-item:hover { border-left-color: rgba(251, 146, 60, 0.6); }
    .tl-date { font-size: 0.8rem; color: var(--orange-soft); font-variant-numeric: tabular-nums; }
    .tl-title { font-weight: 600; font-size: 0.95rem; }
    .badge {
      font-size: 0.65rem;
      text-transform: uppercase;
      background: #1e293b;
      border: 1px solid #475569;
      border-radius: 999px;
      padding: 0.1rem 0.45rem;
      color: var(--muted);
      vertical-align: middle;
    }
    .track-injury { border-left-color: #f43f5e; }
    .track-wc { border-left-color: #f97316; }
    .track-medical { border-left-color: #34d399; }
    .track-exposure { border-left-color: #a78bfa; }
    .track-legal { border-left-color: #38bdf8; }
    .linkish {
      background: none;
      border: none;
      color: var(--muted);
      font-size: 0.75rem;
      cursor: pointer;
      padding: 0;
      text-decoration: underline;
    }

    pre.script {
      white-space: pre-wrap;
      background: rgba(15, 23, 42, 0.75);
      border-radius: 0.85rem;
      padding: 1rem;
      font-size: 0.8rem;
      color: #cbd5e1;
      margin: 0.5rem 0 0;
      border: 1px solid #334155;
    }

    .lang-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 0.65rem;
      margin-top: 0.75rem;
    }
    .lang-col {
      border-radius: 0.85rem;
      padding: 0.75rem;
      background: rgba(15, 23, 42, 0.65);
      border: 1px solid #334155;
    }
    .lang-col.industrial { border-color: rgba(52, 211, 153, 0.45); }
    .lang-col.non-industrial { border-color: rgba(251, 113, 133, 0.4); }
    .lang-col.retirement { border-color: rgba(103, 232, 249, 0.4); }
    .lang-label {
      font-size: 0.65rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--muted);
      margin-bottom: 0.35rem;
    }
    .lang-term {
      font-weight: 600;
      font-size: 0.88rem;
      color: #fed7aa;
      margin-bottom: 0.4rem;
      font-family: "Space Grotesk", Inter, sans-serif;
    }
    .lang-col p { font-size: 0.82rem; margin: 0; }

    .gloss-item {
      display: grid;
      grid-template-columns: minmax(100px, 10rem) 1fr;
      gap: 0.65rem;
      padding: 0.55rem 0;
      border-bottom: 1px solid #1e293b;
      font-size: 0.88rem;
    }
    .gloss-item strong { color: #fdba74; }
    .gloss-item span { color: #cbd5e1; }

    .scale-row {
      display: grid;
      grid-template-columns: minmax(7rem, 10rem) 1fr;
      gap: 0.75rem;
      padding: 0.65rem 0;
      border-bottom: 1px solid #1e293b;
      font-size: 0.88rem;
    }
    .scale-pct {
      font-weight: 600;
      color: #6ee7b7;
      font-variant-numeric: tabular-nums;
    }

    table.compare {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.82rem;
    }
    table.compare th, table.compare td {
      text-align: left;
      padding: 0.55rem 0.45rem;
      border-bottom: 1px solid #334155;
      vertical-align: top;
    }
    table.compare th {
      color: var(--muted);
      font-weight: 500;
      font-size: 0.7rem;
      text-transform: uppercase;
    }
    ul.plain-list {
      margin: 0.5rem 0 0;
      padding-left: 1.15rem;
      color: #cbd5e1;
      font-size: 0.9rem;
    }
    ul.plain-list li { margin-bottom: 0.4rem; }

    .disclaimer {
      font-size: 0.75rem;
      color: var(--muted);
      border-top: 1px solid #334155;
      margin-top: 2rem;
      padding-top: 1rem;
    }

    /* Onboarding */
    #onboarding {
      position: fixed;
      inset: 0;
      z-index: 100;
      background: rgba(2, 6, 23, 0.92);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.25rem;
    }
    #onboarding[hidden],
    #onboarding.is-done {
      display: none !important;
      pointer-events: none !important;
    }
    .onboard-card {
      max-width: 32rem;
      background: linear-gradient(160deg, #1c1917, #0f172a);
      border: 1px solid rgba(249, 115, 22, 0.5);
      border-radius: 1.5rem;
      padding: 1.75rem;
    }
    .onboard-card h2 { margin: 0 0 0.75rem; color: #fed7aa; font-size: 1.4rem; }
    .onboard-card p { color: #cbd5e1; font-size: 0.95rem; }
    .onboard-card .story {
      border-left: 3px solid var(--orange);
      padding-left: 0.85rem;
      margin: 1rem 0;
      color: #fdba74;
      font-size: 0.9rem;
    }

    .journey-phase h3 { color: #fed7aa; }
    .phase-jump {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      margin: 0.75rem 0;
    }
    .phase-jump a {
      font-size: 0.72rem;
      padding: 0.3rem 0.55rem;
      border-radius: 999px;
      border: 1px solid #475569;
      color: #cbd5e1;
      text-decoration: none;
    }
    .phase-jump a:hover { border-color: var(--orange); color: #fff; }

    /* ── Claim Packet ─────────────────────────────────────────── */
    .packet-strength-bar {
      height: 0.55rem;
      background: #1e293b;
      border-radius: 999px;
      overflow: hidden;
      margin: 0.5rem 0 0.35rem;
    }
    .packet-strength-bar span {
      display: block;
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, #e85d04, #fbbf24);
      border-radius: 999px;
      transition: width 0.25s ease;
    }
    .packet-checks {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.25rem 0.75rem;
      margin: 0.65rem 0;
    }
    @media (max-width: 480px) {
      .packet-checks { grid-template-columns: 1fr; }
    }
    .packet-redact { margin-top: 0.35rem; }
    .packet-tips { margin: 0.35rem 0 0; padding-left: 1.1rem; }
    .packet-tips li { margin: 0.15rem 0; }
    .packet-doc {
      color: var(--text);
      font-size: 0.92rem;
      line-height: 1.5;
    }
    .packet-doc .packet-cover h1 {
      margin: 0.15rem 0 0.35rem;
      font-size: 1.45rem;
      color: #fff;
    }
    .packet-kicker {
      margin: 0;
      font-size: 0.75rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #fdba74;
      font-weight: 600;
    }
    .packet-meta { color: var(--muted); font-size: 0.82rem; margin: 0.25rem 0; }
    .packet-sec { margin: 1.15rem 0 0; padding-top: 0.85rem; border-top: 1px solid var(--border); }
    .packet-sec h2 {
      margin: 0 0 0.5rem;
      font-size: 1.05rem;
      color: #fdba74;
    }
    .packet-dl {
      display: grid;
      grid-template-columns: 8.5rem 1fr;
      gap: 0.3rem 0.65rem;
      margin: 0;
    }
    .packet-dl dt { color: var(--muted); font-size: 0.8rem; margin: 0; }
    .packet-dl dd { margin: 0; }
    .packet-list { margin: 0; padding-left: 1.15rem; }
    .packet-list li { margin: 0.35rem 0; }
    .packet-list.plain { list-style: none; padding-left: 0; }
    .packet-empty { color: var(--muted); font-style: italic; }
    .packet-pre {
      white-space: pre-wrap;
      word-break: break-word;
      font-family: Inter, system-ui, sans-serif;
      font-size: 0.88rem;
      background: #0f172a;
      border: 1px solid var(--border);
      border-radius: 0.65rem;
      padding: 0.75rem;
      margin: 0;
    }
    .packet-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
    .packet-table th, .packet-table td {
      border: 1px solid var(--border);
      padding: 0.3rem 0.4rem;
      text-align: left;
    }
    .packet-table th { background: #1a2336; }
    .packet-table .num { text-align: right; font-variant-numeric: tabular-nums; }
    .packet-footer {
      margin-top: 1.5rem;
      padding-top: 0.85rem;
      border-top: 1px dashed var(--border);
      font-size: 0.8rem;
      color: var(--muted);
    }
    .packet-note { white-space: pre-wrap; }

    .deadline-card.overdue { border-color: #b91c1c; }
    .deadline-card.soon { border-color: #c2410c; }
    .deadline-card.done { opacity: 0.65; }
    .check-item.is-locked { opacity: 0.7; }

    #money-leave-start, #money-4850-days, #money-td-weekly {
      width: 100%;
    }

    @media print {
      .banner, nav.tabs, .bottom-nav, .no-print, #onboarding, header.app-header,
      .packet-controls, #workplace-pack-chip, #station4850-membership-strip,
      #station4850-disclaimer-modal, .disclaimer { display: none !important; }
      body { padding-bottom: 0; background: #fff !important; color: #000 !important; }
      .card { border: none !important; background: #fff !important; backdrop-filter: none !important; box-shadow: none !important; padding: 0 !important; }
      .wrap { max-width: 100%; padding: 0; }
      .packet-preview-wrap { border: none !important; }
      .packet-doc, .packet-doc * { color: #000 !important; }
      .packet-doc .packet-cover h1 { color: #000 !important; }
      .packet-kicker { color: #333 !important; }
      .packet-sec h2 { color: #111 !important; border-bottom: 1px solid #ccc; padding-bottom: 0.2rem; }
      .packet-meta, .packet-empty, .packet-dl dt, .packet-footer { color: #333 !important; }
      .packet-pre {
        background: #fff !important;
        border: 1px solid #ccc !important;
        color: #000 !important;
      }
      .packet-table th { background: #eee !important; }
      .packet-table th, .packet-table td { border-color: #999 !important; }
      body.print-packet .page-body > .panel-title { display: none !important; }
      .tab-panel { display: none !important; }
      body.print-cheat #tab-printsheets,
      body.print-journey #tab-journey,
      body.print-lacera #tab-journey { display: block !important; }
      body.print-lacera .journey-print-hide,
      body.print-lacera #journey-phases,
      body.print-lacera #document-vault-wrap { display: none !important; }
      body.print-journey #lacera-deep-wrap,
      body.print-journey #print-only-extras { display: none !important; }
      a { color: #000; text-decoration: none; }
      .progress-fill { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    }
