/*
Purpose: route-local public styles extracted from mullu/index.html.
Governance scope: remove inline style dependence while preserving static route rendering.
Dependencies: mullu/index.html.
Invariants: no secrets, no runtime claims, no JavaScript dependency.
*/

:root {
      color-scheme: dark;
      --bg: #050609;
      --panel: #0d1018;
      --line: #272d40;
      --text: #e9eaef;
      --muted: #99a0b4;
      --gold: #5ce6c4;
      --green: #e8b15c;
      --violet: #7dd3fc;
      --nav-bg: rgba(5, 6, 9, 0.88);
      --panel-tint: rgba(13, 16, 24, 0.72);
    }

    :root[data-theme="light"] {
      color-scheme: light;
      --bg: #f7f8fb;
      --panel: #ffffff;
      --line: #d8e0ea;
      --text: #111827;
      --muted: #455366;
      --gold: #0f766e;
      --green: #b45309;
      --violet: #2563eb;
      --nav-bg: rgba(247, 248, 251, 0.86);
      --panel-tint: rgba(255, 255, 255, 0.78);
    }

    * { box-sizing: border-box; }
    html {
      overflow-x: hidden;
    }

    body {
      margin: 0;
      overflow-x: hidden;
      background: var(--bg);
      color: var(--text);
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
      line-height: 1.6;
    }

    a { color: inherit; }

    .skip-link {
      position: fixed;
      top: 12px;
      left: 12px;
      z-index: 5;
      padding: 10px 16px;
      background: var(--gold);
      color: #050609;
      font-size: 13px;
      text-decoration: none;
      transform: translateY(-200%);
      transition: transform 0.2s ease;
    }

    .skip-link:focus { transform: translateY(0); }

    :focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 3px;
    }

    #main {
      scroll-margin-top: 80px;
    }

    #main:focus { outline: none; }

    @media (prefers-reduced-motion: reduce) {
      .skip-link { transition: none; }
    }

    header, main, footer {
      width: min(1120px, calc(100% - 32px));
      margin: 0 auto;
    }

    header {
      min-height: auto;
      display: grid;
      align-content: center;
      gap: 18px;
      padding: 84px 0 28px;
    }

    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 2;
      border-bottom: 1px solid rgba(92, 230, 196, 0.16);
      background: var(--nav-bg);
      backdrop-filter: blur(12px);
    }

    .nav-inner {
      width: min(1120px, calc(100% - 32px));
      height: 64px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .brand {
      color: var(--gold);
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      text-decoration: none;
    }

    .nav-links {
      display: flex;
      gap: 20px;
      color: var(--muted);
      font-size: 13px;
    }

    .nav-links a { text-decoration: none; }
    .nav-links a:hover { color: var(--gold); }

    .theme-toggle {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 36px;
      padding: 0 12px;
      border: 1px solid rgba(92, 230, 196, 0.28);
      background: transparent;
      color: var(--muted);
      font: inherit;
      font-size: 12px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      cursor: pointer;
      transition: color 0.2s ease, border-color 0.2s ease;
    }

    .theme-toggle:hover {
      color: var(--gold);
      border-color: var(--gold);
    }

    .theme-dot {
      width: 11px;
      height: 11px;
      border: 1px solid currentColor;
      border-radius: 50%;
      background: linear-gradient(90deg, currentColor 0 50%, transparent 50%);
    }

    .eyebrow {
      color: var(--green);
      font-size: 13px;
      letter-spacing: 0.24em;
      text-transform: uppercase;
    }

    h1 {
      max-width: 940px;
      margin: 0;
      font-size: 78px;
      line-height: 0.92;
      letter-spacing: 0;
    }

    .law {
      max-width: 740px;
      color: var(--gold);
      font-size: 26px;
      line-height: 1.18;
    }

    .lede {
      max-width: 760px;
      margin: 0;
      color: var(--muted);
      font-size: 17px;
    }

    .suite-note {
      width: fit-content;
      max-width: 100%;
      margin: 0;
      padding: 10px 12px;
      border-left: 3px solid var(--gold);
      background: rgba(92, 230, 196, 0.08);
      color: var(--text);
      font-size: 14px;
      line-height: 1.35;
    }

    .mullu-hero {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(340px, 0.58fr);
      gap: 24px;
      align-items: end;
      padding: 16px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background:
        linear-gradient(135deg, rgba(92, 230, 196, 0.09), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.16));
    }

    .mullu-hero-copy {
      display: grid;
      gap: 16px;
      min-width: 0;
      padding: 8px 0 4px;
    }

    .mullu-readout-card {
      display: grid;
      gap: 10px;
      min-width: 0;
      border: 1px solid rgba(92, 230, 196, 0.24);
      background:
        linear-gradient(180deg, rgba(92, 230, 196, 0.08), transparent),
        rgba(0, 0, 0, 0.28);
      padding: 12px;
    }

    .readout-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      min-height: 46px;
      border: 1px solid rgba(92, 230, 196, 0.32);
      background: rgba(92, 230, 196, 0.05);
      padding: 10px;
    }

    .readout-head span,
    .mullu-readout-card dt {
      color: var(--green);
      font-size: 11px;
      letter-spacing: 0.12em;
      line-height: 1.3;
      text-transform: uppercase;
    }

    .readout-head strong {
      color: var(--gold);
      font-size: 13px;
      line-height: 1.2;
      text-align: right;
    }

    .mullu-readout-card dl {
      display: grid;
      gap: 8px;
      margin: 0;
    }

    .mullu-readout-card div {
      display: grid;
      gap: 4px;
      min-width: 0;
      border: 1px solid rgba(255, 255, 255, 0.09);
      background: rgba(255, 255, 255, 0.025);
      padding: 10px;
    }

    .mullu-readout-card dd {
      margin: 0;
      color: var(--text);
      font-size: 13px;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }

    .mullu-readout-card p {
      margin: 0 2px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .button {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
      padding: 0 16px;
      border: 1px solid var(--line);
      color: var(--text);
      text-decoration: none;
      font-size: 14px;
    }

    .button.primary {
      border-color: var(--gold);
      background: var(--gold);
      color: #050609;
      font-weight: 700;
    }

    section {
      padding: 72px 0;
      border-top: 1px solid rgba(92, 230, 196, 0.14);
    }

    .product-console {
      display: grid;
      grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1.22fr);
      gap: 28px;
      align-items: start;
    }

    .console-copy h2 {
      margin-bottom: 14px;
    }

    .console-shell {
      overflow: hidden;
      border: 1px solid rgba(92, 230, 196, 0.24);
      background:
        linear-gradient(135deg, rgba(92, 230, 196, 0.12), transparent 42%),
        linear-gradient(180deg, var(--panel-tint), var(--panel)),
        var(--panel);
      box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    }

    .console-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-height: 48px;
      border-bottom: 1px solid var(--line);
      padding: 0 16px;
      color: var(--muted);
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .console-topbar strong {
      color: var(--green);
      font-size: 10px;
      font-weight: 700;
    }

    .console-main {
      display: grid;
      grid-template-columns: minmax(0, 0.9fr) minmax(220px, 1fr);
      gap: 1px;
      background: var(--line);
    }

    .console-request,
    .console-steps,
    .console-verdict {
      margin: 0;
      background: color-mix(in srgb, var(--panel) 94%, transparent);
      padding: 18px;
    }

    .console-request {
      min-height: 224px;
    }

    .console-request span,
    .console-verdict span,
    .console-ledger span {
      display: block;
      color: var(--green);
      font-size: 10px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
    }

    .console-request h3 {
      margin: 32px 0 10px;
      color: var(--gold);
      font-size: 24px;
      line-height: 1.15;
    }

    .console-request p,
    .console-verdict p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

    .console-steps {
      display: grid;
      gap: 1px;
      padding: 0;
      list-style: none;
    }

    .console-steps li {
      display: grid;
      grid-template-columns: 36px minmax(0, 0.8fr) minmax(0, 1.2fr);
      gap: 12px;
      align-items: center;
      min-height: 74px;
      background: color-mix(in srgb, var(--panel-tint) 72%, transparent);
      padding: 13px 16px;
    }

    .console-steps span {
      display: grid;
      width: 34px;
      height: 28px;
      place-items: center;
      border: 1px solid color-mix(in srgb, var(--gold) 52%, var(--line));
      color: var(--gold);
      font-size: 10px;
    }

    .console-steps strong {
      color: var(--text);
      font-size: 15px;
    }

    .console-steps em {
      color: var(--muted);
      font-size: 12px;
      font-style: normal;
      line-height: 1.35;
    }

    .console-verdict {
      grid-column: 1 / -1;
      border-top: 1px solid var(--line);
    }

    .console-verdict strong {
      display: block;
      margin: 14px 0 8px;
      color: var(--green);
      font-size: 22px;
      line-height: 1.15;
    }

    .console-ledger {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1px;
      border-top: 1px solid var(--line);
      background: var(--line);
    }

    .console-ledger div {
      min-width: 0;
      background: color-mix(in srgb, var(--panel) 92%, transparent);
      padding: 14px;
    }

    .console-ledger strong {
      display: block;
      margin-top: 7px;
      color: var(--text);
      font-size: 13px;
      line-height: 1.25;
    }

    .workflow-map {
      display: grid;
      grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
      gap: 28px;
      align-items: start;
    }

    .workflow-map-copy h2 {
      margin: 0 0 14px;
    }

    .loop-rail {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 8px;
      min-width: 0;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .loop-rail li {
      position: relative;
      display: grid;
      align-content: start;
      gap: 9px;
      min-width: 0;
      min-height: 224px;
      padding: 14px;
      border: 1px solid var(--line);
      background:
        linear-gradient(180deg, color-mix(in srgb, var(--gold) 8%, transparent), transparent),
        var(--panel);
    }

    .loop-rail li:not(:last-child)::after {
      content: "";
      position: absolute;
      top: 31px;
      right: -9px;
      width: 8px;
      height: 1px;
      background: color-mix(in srgb, var(--gold) 56%, transparent);
    }

    .loop-rail span {
      display: inline-grid;
      width: 34px;
      min-height: 28px;
      place-items: center;
      border: 1px solid color-mix(in srgb, var(--gold) 52%, var(--line));
      color: var(--gold);
      font-size: 10px;
    }

    .loop-rail strong {
      color: var(--text);
      font-size: 17px;
      line-height: 1.15;
    }

    .loop-rail p {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    header .mullu-gate {
      display: grid;
      gap: 12px;
      padding: 14px;
      border: 1px solid rgba(92, 230, 196, 0.2);
      background: var(--panel-tint);
    }

    .mullu-flow {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 8px;
    }

    .mullu-flow span,
    .mullu-flow strong {
      position: relative;
      display: flex;
      align-items: center;
      min-height: 38px;
      padding: 7px 9px;
      border: 1px solid var(--line);
      color: var(--muted);
      font-size: 11px;
      line-height: 1.25;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .mullu-flow span:not(:last-child)::after {
      content: "";
      position: absolute;
      top: 50%;
      right: -9px;
      width: 8px;
      height: 1px;
      background: rgba(92, 230, 196, 0.44);
    }

    .mullu-flow strong {
      border-color: color-mix(in srgb, var(--green) 55%, transparent);
      color: var(--green);
    }

    .mullu-state-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 8px;
    }

    .mullu-state-grid div {
      display: grid;
      gap: 5px;
      padding: 11px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(0, 0, 0, 0.16);
    }

    .mullu-state-grid span {
      color: var(--muted);
      font-size: 11px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .mullu-state-grid strong {
      color: var(--text);
      font-size: 14px;
      line-height: 1.25;
    }

    .mullu-gate p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    h2 {
      margin: 0 0 24px;
      font-size: 44px;
      line-height: 1.05;
      letter-spacing: 0;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
    }

    .workflow-head {
      display: grid;
      grid-template-columns: 0.9fr 1.1fr;
      gap: 24px;
      align-items: end;
      margin-bottom: 18px;
    }

    .workflow-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }

    .workflow-card {
      min-height: 210px;
      padding: 22px;
      border: 1px solid var(--line);
      background:
        linear-gradient(180deg, rgba(92, 230, 196, 0.08), transparent 70%),
        var(--panel);
    }

    .workflow-card span {
      display: inline-flex;
      margin-bottom: 32px;
      color: var(--green);
      font-size: 12px;
      letter-spacing: 0.18em;
    }

    .workflow-card h3 {
      margin: 0 0 10px;
      color: var(--gold);
      font-size: 20px;
    }

    .workflow-card p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

    .surface {
      min-height: 180px;
      padding: 22px;
      border: 1px solid var(--line);
      background: var(--panel);
    }

    .surface-stage {
      display: inline-block;
      margin-bottom: 16px;
      color: var(--green);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .surface h3 {
      margin: 0 0 10px;
      color: var(--gold);
      font-size: 18px;
    }

    .surface p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

    .proof {
      display: grid;
      grid-template-columns: 0.8fr 1.2fr;
      gap: 24px;
      align-items: start;
    }

    .proof-list {
      margin: 0;
      padding: 0;
      list-style: none;
      color: var(--muted);
    }

    .proof-list li {
      padding: 14px 0;
      border-bottom: 1px solid var(--line);
    }

    .claim-boundary {
      display: grid;
      grid-template-columns: 0.85fr 1.15fr;
      gap: 24px;
      align-items: start;
      border: 1px solid rgba(92, 230, 196, 0.2);
      background: var(--panel-tint);
      padding: 28px;
    }

    .claim-ledger {
      margin: 0;
      display: grid;
      gap: 1px;
      background: var(--line);
      border: 1px solid var(--line);
    }

    .claim-ledger div {
      background: var(--panel);
      padding: 16px;
    }

    .claim-ledger dt {
      margin-bottom: 6px;
      color: var(--gold);
      font-weight: 700;
    }

    .claim-ledger dd {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

    .state-token {
      color: var(--green);
      font-weight: 700;
    }

    footer {
      display: flex;
      justify-content: space-between;
      gap: 24px;
      padding: 40px 0 56px;
      color: var(--muted);
      font-size: 13px;
    }

    .status { color: var(--violet); }

    p.status { margin: 0; }

    .noscript-boundary {
      border: 1px solid var(--line);
      background: var(--panel);
      margin-bottom: 18px;
      padding: 18px;
    }

    .noscript-boundary h2 {
      font-size: 24px;
    }

    @media (max-width: 820px) {
      .nav-links { display: none; }
      .grid, .proof, .claim-boundary, .workflow-head, .workflow-grid, .product-console, .workflow-map, .console-main, .mullu-hero { grid-template-columns: 1fr; }
      .mullu-state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .console-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .loop-rail { grid-template-columns: 1fr; }
      .loop-rail li {
        min-height: 0;
      }
      .loop-rail li:not(:last-child)::after {
        display: none;
      }
      footer { flex-direction: column; }
    }

    @media (max-width: 640px), (max-height: 620px) {
      header,
      main,
      footer {
        width: min(calc(100% - 24px), 1120px);
      }

      .nav-inner {
        width: min(calc(100% - 24px), 1120px);
        gap: 12px;
      }

      .brand {
        letter-spacing: 0.14em;
      }

      header {
        min-height: auto;
        align-content: start;
        gap: 12px;
        padding: 72px 0 18px;
      }

      .mullu-hero {
        gap: 16px;
        padding: 12px;
      }

      .mullu-hero-copy {
        gap: 12px;
        padding: 0;
      }

      .readout-head {
        grid-template-columns: 1fr;
        gap: 4px;
      }

      .readout-head strong {
        text-align: left;
      }

      h1 {
        font-size: 40px;
        line-height: 0.98;
        overflow-wrap: anywhere;
      }

      h2 {
        font-size: 30px;
        line-height: 1.08;
        overflow-wrap: anywhere;
      }

      .law {
        font-size: 17px;
        line-height: 1.12;
      }

      .lede {
        font-size: 14px;
        line-height: 1.45;
      }

      .button {
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding: 0 10px;
        font-size: 12px;
        text-align: center;
        white-space: normal;
      }

      .actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
      }

      .actions .primary {
        grid-column: 1 / -1;
      }

      header .mullu-gate {
        gap: 8px;
        padding: 10px;
      }

      .product-console {
        gap: 18px;
      }

      .console-topbar {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        min-height: 64px;
      }

      .console-steps li {
        grid-template-columns: 34px minmax(0, 1fr);
      }

      .console-steps em {
        grid-column: 2;
      }

      .mullu-flow {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
      }

      .mullu-flow span,
      .mullu-flow strong {
        min-height: 36px;
        padding: 4px;
        font-size: 8px;
        letter-spacing: 0;
        overflow-wrap: anywhere;
      }

      .mullu-flow span:not(:last-child)::after { display: none; }

      .mullu-state-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
      }

      .mullu-state-grid div {
        padding: 8px 6px;
      }

      .mullu-state-grid span {
        font-size: 9px;
        letter-spacing: 0.06em;
      }

      .mullu-state-grid strong {
        font-size: 12px;
        overflow-wrap: anywhere;
      }

      .mullu-gate p {
        font-size: 12px;
      }

      .status {
        font-size: 12px;
        line-height: 1.35;
        overflow-wrap: anywhere;
      }

      section { padding: 56px 0; }

      .claim-boundary { padding: 22px; }
    }
