:root {
  --ground: #ece8e0;
  --raised: #faf8f6;
  --recessed: #f1ece4;
  --lifted: #fffefd;
  --ink: #2b2722;
  --muted: #6e665b;
  --faint: #a29a8d;
  --hairline: rgba(71, 62, 52, 0.16);
  --hairline-strong: rgba(71, 62, 52, 0.24);
  --teal: #2b7a6f;
  --teal-wash: rgba(43, 122, 111, 0.08);
  --bronze: #9a6f45;
  --relationship: #9b3f4c;
  --relationship-wash: rgba(155, 63, 76, 0.075);
  --focus: #c17a12;
  --focus-wash: rgba(193, 122, 18, 0.08);
  --objective: #176f6b;
  --objective-wash: rgba(23, 111, 107, 0.075);
  --decision: #b45c21;
  --decision-wash: rgba(180, 92, 33, 0.075);
  --display: "Cormorant Garamond", Iowan Old Style, Baskerville, Georgia, serif;
  --sans: "Hanken Grotesk", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --d200: 200ms;
  --d250: 250ms;
  --d300: 300ms;
  --d400: 400ms;
  --d600: 600ms;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--ground);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(43, 122, 111, .62);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { display: block; }
.rail svg, .footer svg, .titlebar svg, .tester svg, .surface svg, .profile-menu svg, .genesis-dialog svg, .mode-popover svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-backdrop {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 252, 247, .82) 0 11%, rgba(255, 252, 247, .22) 27%, transparent 47%),
    radial-gradient(circle at 14% 88%, rgba(151, 132, 106, .11), transparent 38%),
    #e8e3db;
}

.app-shell {
  width: min(1440px, calc(100vw - 48px));
  height: min(960px, calc(100vh - 48px));
  min-height: 720px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(71, 62, 52, .16);
  border-radius: 15px;
  background: rgba(250, 248, 246, .97);
  box-shadow: 0 22px 70px rgba(47, 40, 32, .13);
}

.titlebar {
  height: 46px;
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(250, 248, 246, .88);
  backdrop-filter: blur(18px);
}

.traffic { display: flex; gap: 8px; align-items: center; }
.traffic span { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.traffic span:nth-child(1) { background: #ef6a55; }
.traffic span:nth-child(2) { background: #edb441; }
.traffic span:nth-child(3) { background: #61bd4f; }

.wordmark {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .28em;
}
.wordmark img { width: 13px; height: 13px; }

.sync-state {
  justify-self: end;
  min-height: 36px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 2px 0 10px;
  cursor: pointer;
  color: #4d4943;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .13em;
}
.sync-state svg { width: 14px; height: 14px; transform: rotate(90deg); transition: transform var(--d300) var(--ease); }
.sync-state[aria-expanded="true"] svg { transform: rotate(-90deg); }
.sync-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px 1px rgba(43,122,111,.36); }

.shell-body {
  height: calc(100% - 46px);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
}

.rail {
  position: relative;
  z-index: 24;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--hairline);
  background: rgba(250, 248, 246, .86);
  padding: 14px 0 12px;
}

.rail-brand, .rail-item, .avatar-btn {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.rail-brand { width: 40px; height: 40px; margin-bottom: 8px; }
.rail-brand img { width: 16px; height: 16px; transition: transform 1600ms var(--ease); }
.rail-brand:hover img { transform: rotate(90deg); }
.rail-primary { display: flex; flex: 1; min-height: 0; flex-direction: column; align-items: center; gap: 5px; }
.rail-item { width: 40px; height: 40px; border-radius: 12px; color: #645e55; transition: color var(--d250) var(--ease), background var(--d250) var(--ease), box-shadow var(--d400) var(--ease); }
.rail-item:hover { color: var(--ink); background: rgba(70, 61, 51, .045); }
.rail-item.active { color: var(--teal); background: rgba(43, 122, 111, .075); box-shadow: inset 0 0 0 1px rgba(43,122,111,.15); }
.rail-item svg { width: 20px; height: 20px; }
.rail-primary hr { width: 32px; height: 1px; margin: 5px 0; border: 0; background: var(--hairline); }
.rail-utility { padding-top: 8px; border-top: 1px solid var(--hairline); }
.avatar-btn { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(71,62,52,.18); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(.96); }

.workspace {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 78px;
  background:
    radial-gradient(circle at 78% 25%, rgba(255,252,247,.9), transparent 34%),
    linear-gradient(108deg, rgba(255,255,255,.20), transparent 43%),
    var(--raised);
}

.surface {
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(71,62,52,.16) transparent;
}

.today-page {
  height: 100%;
  min-height: 100%;
  padding: 28px 28px 12px 30px;
}

.brief-heading {
  height: 102px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.eyebrow {
  margin: 0 0 8px;
  color: #605950;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .20em;
  text-transform: uppercase;
}
.brief-heading h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 3.1vw, 47px);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.035em;
}
.brief-heading .subhead { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.brief-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 7px 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.36);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .10em;
  white-space: nowrap;
}
.brief-status span { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

.orientation-frame {
  --inspector-width: clamp(350px, 24.5vw, 392px);
  position: relative;
  height: calc(100% - 102px);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--inspector-width);
  gap: 24px;
  align-items: stretch;
}
.brief-column { min-width: 0; position: relative; z-index: 4; }
.reading-rule {
  min-height: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 7px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}
.reading-rule::before, .reading-rule::after { content: ""; height: 1px; background: var(--hairline); }
.reading-rule::before { flex: 0 0 18px; background: color-mix(in srgb, var(--teal) 38%, transparent); }
.reading-rule::after { flex: 1; }
.observations { display: grid; gap: 11px; }

.observation-card {
  --accent: var(--teal);
  --wash: var(--teal-wash);
  min-height: 150px;
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 282px;
  overflow: visible;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: rgba(255, 254, 253, .52);
  transition: border-color var(--d200) var(--ease), box-shadow var(--d400) var(--ease), background var(--d300) var(--ease), transform var(--d300) var(--ease);
}
.observation-card.relationship { --accent: var(--relationship); --wash: var(--relationship-wash); }
.observation-card.focus { --accent: var(--focus); --wash: var(--focus-wash); }
.observation-card.objective { --accent: var(--objective); --wash: var(--objective-wash); }
.observation-card:hover { border-color: var(--hairline-strong); }
.observation-card.body-selected {
  z-index: 7;
  border-color: color-mix(in srgb, var(--accent) 86%, #d5b77a);
  background: rgba(255, 254, 252, .98);
  box-shadow: 0 8px 34px color-mix(in srgb, var(--accent) 12%, transparent), 0 2px 12px rgba(72, 57, 40, .05);
  transform: translateY(-1px);
}
.observation-card.action-selected { border-color: var(--hairline); background: rgba(255,254,253,.72); }
.observation-card.action-selected .card-side {
  background: color-mix(in srgb, var(--wash) 76%, #fff 24%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 78%, #d4b87c);
}

.rank-wrap { display: grid; place-items: center; padding-left: 7px; }
.rank {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 50%;
  color: var(--accent);
  background: radial-gradient(circle at 38% 30%, rgba(255,255,255,.95), var(--wash));
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
}

.meaning-button {
  min-width: 0;
  min-height: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 18px 24px 16px 5px;
  border-radius: 14px;
}
.category {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.claim {
  display: block;
  font-family: var(--display);
  font-size: clamp(21px, 1.8vw, 27px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.018em;
}
.reason {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.35;
}
.reason svg { width: 16px; height: 16px; flex: 0 0 auto; color: #777065; }

.card-side {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr 35px;
  border-left: 1px solid var(--hairline);
  border-radius: 0 18px 18px 0;
  background: linear-gradient(90deg, rgba(255,255,255,0), var(--wash));
  transition: background var(--d300) var(--ease), box-shadow var(--d400) var(--ease);
}
.suggestion-button {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 12px 12px 5px 18px;
  border-radius: 0 18px 0 0;
}
.suggestion-button:hover .action-chevron { transform: translateX(2px); border-color: color-mix(in srgb, var(--accent) 42%, transparent); }
.action-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 50%;
  color: var(--accent);
  background: color-mix(in srgb, var(--wash) 92%, #fff 8%);
}
.action-icon svg { width: 21px; height: 21px; }
.action-copy { min-width: 0; }
.action-copy .category { margin-bottom: 6px; }
.action-copy strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; }
.action-chevron {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 17%, transparent);
  border-radius: 50%;
  color: var(--accent);
  transition: transform var(--d250) var(--ease), border-color var(--d250) var(--ease);
}
.action-chevron svg { width: 17px; height: 17px; }
.genesis-button {
  min-width: 0;
  min-height: 35px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 2px 16px 7px 20px;
  color: var(--muted);
  text-align: left;
  border-radius: 0 0 16px 0;
}
.genesis-button .genesis-label { color: var(--accent); font-family: var(--mono); font-size: 8px; font-weight: 600; letter-spacing: .16em; }
.genesis-button svg { width: 16px; height: 16px; color: #6e675e; }
.genesis-button .dot-separator { color: var(--faint); }
.genesis-button .confidence { font-size: 11px; white-space: nowrap; }

.decision-card {
  --accent: var(--decision);
  --wash: var(--decision-wash);
  min-height: 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  margin-top: 11px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: rgba(255,254,253,.48);
  transition: border-color var(--d200) var(--ease), box-shadow var(--d400) var(--ease), background var(--d300) var(--ease);
}
.decision-card.body-selected { border-color: var(--hairline); background: rgba(255,254,252,.78); overflow: visible; }
.decision-card.body-selected .decision-main { border-radius: 18px 0 0 18px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--accent); }
.decision-card.action-selected { overflow: visible; }
.decision-card.action-selected .decision-action { box-shadow: inset 0 0 0 1px var(--accent); background: var(--wash); }
.decision-main, .decision-action { border: 0; background: transparent; text-align: left; cursor: pointer; }
.decision-main { transition: background var(--d300) var(--ease), box-shadow var(--d400) var(--ease); }
.decision-main { display: grid; grid-template-columns: 134px 1fr; align-items: center; gap: 16px; padding: 15px 24px 15px 20px; }
.decision-main .category { margin: 0; color: var(--decision); }
.decision-copy strong { display: block; font-family: var(--display); font-size: 21px; font-weight: 500; line-height: 1.05; }
.decision-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.decision-action { display: grid; align-content: center; gap: 7px; padding: 12px 42px 12px 20px; border-left: 1px solid var(--hairline); position: relative; }
.decision-action .category { margin: 0; color: #7b7167; }
.decision-action strong { font-size: 13px; font-weight: 500; line-height: 1.35; }
.decision-action svg { position: absolute; right: 15px; top: 50%; width: 17px; height: 17px; color: var(--decision); transform: translateY(-50%); }

.judgment-threshold {
  --accent: var(--decision);
  position: relative;
  z-index: 4;
  margin-top: 11px;
  padding-top: 10px;
}
.judgment-rule { display: flex; align-items: center; gap: 12px; color: var(--decision); font-family: var(--mono); font-size: 8.5px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.judgment-rule::before, .judgment-rule::after { content: ""; height: 1px; flex: 1; background: var(--hairline); }
.judgment-rule::before { flex: 0 0 18px; background: color-mix(in srgb, var(--decision) 44%, transparent); }
.judgment-content { min-height: 100px; display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: stretch; padding-top: 7px; }
.judgment-copy { display: grid; align-content: center; padding: 7px 28px 8px 22px; }
.judgment-copy h2 { margin: 0; font-family: var(--display); font-size: 25px; font-weight: 500; line-height: 1.02; letter-spacing: -.016em; }
.judgment-copy p { margin: 5px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.judgment-actions { display: grid; grid-template-rows: 1fr 1fr; gap: 6px; padding: 2px 0; }
.judgment-route { min-height: 44px; display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px; align-items: center; gap: 10px; border: 1px solid color-mix(in srgb, var(--decision) 16%, var(--hairline)); border-radius: 13px; background: linear-gradient(135deg, rgba(255,255,255,.76), rgba(180,92,33,.025)); box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 4px 16px rgba(72,57,40,.025); cursor: pointer; padding: 7px 11px 7px 9px; text-align: left; transition: border-color var(--d250) var(--ease), background var(--d300) var(--ease), box-shadow var(--d400) var(--ease), transform var(--d250) var(--ease); }
.judgment-route:hover { border-color: color-mix(in srgb, var(--decision) 38%, var(--hairline)); background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(180,92,33,.055)); box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 7px 22px rgba(92,61,36,.055); transform: translateY(-1px); }
.judgment-route.selected { border-color: var(--decision); background: var(--decision-wash); box-shadow: 0 7px 24px rgba(180,92,33,.07); }
.judgment-route strong { display: block; font-size: 12.5px; font-weight: 500; line-height: 1.2; }
.judgment-route small { display: block; margin-top: 2px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.judgment-route-icon { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--decision) 24%, transparent); border-radius: 50%; color: var(--decision); background: radial-gradient(circle at 38% 30%, rgba(255,255,255,.96), var(--decision-wash)); }
.judgment-route-icon svg { width: 15px; height: 15px; }
.judgment-route-arrow { display: grid; place-items: center; color: var(--decision); transition: transform var(--d250) var(--ease); }
.judgment-route-arrow svg { width: 14px; height: 14px; }
.judgment-route:hover .judgment-route-arrow { transform: translateX(1px); }

.continuity-ledger {
  min-width: 0;
  min-height: 500px;
  align-self: start;
  position: relative;
  z-index: 2;
  margin-top: -102px;
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: rgba(255,254,252,.56);
  box-shadow: 0 8px 28px rgba(72,57,40,.035);
}
.ledger-label { margin: 0 0 14px; color: #625b52; font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.ledger-list { display: grid; }
.ledger-row {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) 15px;
  align-items: start;
  gap: 10px;
  padding: 0 0 15px;
  margin-bottom: 15px;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  text-align: left;
}
button.ledger-row { width: 100%; cursor: pointer; }
.ledger-row:last-child { margin-bottom: 0; }
.ledger-bullet { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--teal); }
.ledger-bullet.bronze { background: #bd5d15; }
.ledger-row strong { display: block; font-size: 13px; font-weight: 500; line-height: 1.25; }
.ledger-row-copy > span { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.ledger-chevron, .handled-chevron { align-self: center; color: var(--faint); opacity: .52; transition: color var(--d250) var(--ease), opacity var(--d250) var(--ease), transform var(--d250) var(--ease); }
.ledger-chevron svg, .handled-chevron svg { width: 14px; height: 14px; }
.ledger-row:hover .ledger-chevron, .ledger-row:focus-visible .ledger-chevron, .handled-row:hover .handled-chevron, .handled-row:focus-visible .handled-chevron { color: var(--teal); opacity: 1; transform: translateX(2px); }
.ledger-section { padding: 17px 0 15px; border-bottom: 1px solid var(--hairline); }
.ledger-section:last-child { border-bottom: 0; }
.ledger-section .ledger-label { margin-bottom: 7px; }
.ledger-value { margin: 0; font-family: var(--display); font-size: 27px; font-weight: 500; line-height: 1; }
.ledger-value-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ledger-support { margin: 7px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.attention-info { width: 27px; height: 27px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid var(--hairline); border-radius: 50%; color: var(--muted); background: rgba(255,255,255,.24); cursor: pointer; transition: border-color var(--d250) var(--ease), color var(--d250) var(--ease), background var(--d250) var(--ease); }
.attention-info:hover { border-color: rgba(43,122,111,.38); color: var(--teal); background: rgba(43,122,111,.035); }
.attention-info svg { width: 14px; height: 14px; }
.handled-summary { max-width: 250px; }
.handled-box { display: grid; gap: 10px; margin-top: 11px; padding: 13px; border: 1px solid var(--hairline); border-radius: 14px; background: rgba(255,255,255,.30); }
.handled-row { width: 100%; min-height: 20px; display: grid; grid-template-columns: 19px minmax(0, 1fr) 14px; align-items: center; gap: 8px; border: 0; background: transparent; padding: 0; cursor: pointer; text-align: left; font-size: 12px; }
.handled-check { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid rgba(43,122,111,.62); border-radius: 50%; color: var(--teal); }
.handled-check svg { width: 10px; height: 10px; }
.ledger-receipt { margin: -2px 0 14px; padding: 11px 12px; border: 1px solid rgba(43,122,111,.18); border-radius: 12px; background: rgba(43,122,111,.045); }
.ledger-receipt .ledger-label { color: var(--teal); margin-bottom: 5px; }
.ledger-receipt p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.4; }

.continuity-detail { display: flex; flex-direction: column; }
.continuity-detail-head { display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: start; gap: 12px; }
.continuity-detail-head .ledger-label { margin: 5px 0 0; color: var(--teal); }
.continuity-detail h2 { margin: 12px 0 0; font-family: var(--display); font-size: 31px; font-weight: 500; line-height: .98; letter-spacing: -.02em; }
.continuity-status { display: inline-flex; align-items: center; align-self: flex-start; gap: 7px; margin: 12px 0 2px; padding: 6px 8px; border: 1px solid rgba(43,122,111,.17); border-radius: 999px; color: var(--muted); background: rgba(43,122,111,.035); font-family: var(--mono); font-size: 8px; letter-spacing: .07em; }
.continuity-status span { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.continuity-status.bronze { border-color: rgba(154,111,69,.2); background: rgba(154,111,69,.045); }
.continuity-status.bronze span { background: var(--bronze); }
.continuity-detail-body { margin-top: 6px; }
.continuity-detail-section { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.continuity-detail-section .ledger-label { margin-bottom: 6px; color: #766e64; }
.continuity-detail-section > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.continuity-detail-actions { margin-top: auto; }

.bridge-layer { position: absolute; inset: 0; z-index: 9; pointer-events: none; opacity: 0; transition: opacity var(--d300) var(--ease); }
.orientation-frame.has-connection .bridge-layer { opacity: 1; }
.bridge-line {
  position: absolute;
  height: 1px;
  left: 0;
  top: 0;
  width: 0;
  background: var(--bridge-color, var(--focus));
  box-shadow: 0 0 8px color-mix(in srgb, var(--bridge-color, var(--focus)) 25%, transparent);
  transform-origin: left center;
  transition: left var(--d400) var(--ease), top var(--d400) var(--ease), width var(--d300) var(--ease), background var(--d300) var(--ease);
}
.bridge-node {
  position: absolute;
  width: 14px;
  height: 14px;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: var(--bridge-color, var(--focus));
  box-shadow: 0 0 11px color-mix(in srgb, var(--bridge-color, var(--focus)) 26%, transparent);
  transform: translate(-50%, -50%);
  transition: left var(--d400) var(--ease), top var(--d400) var(--ease), background var(--d300) var(--ease);
}
.bridge-node::before, .bridge-node::after { content: ""; position: absolute; inset: 50% auto auto 50%; border: 1px solid color-mix(in srgb, var(--bridge-color, var(--focus)) 42%, transparent); border-radius: 50%; transform: translate(-50%, -50%); }
.bridge-node::before { width: 27px; height: 27px; }
.bridge-node::after { width: 42px; height: 42px; border-color: color-mix(in srgb, var(--bridge-color, var(--focus)) 24%, transparent); box-shadow: 0 0 0 7px color-mix(in srgb, var(--bridge-color, var(--focus)) 4%, transparent); }

.inspector {
  min-width: 0;
  position: relative;
  z-index: 5;
  align-self: stretch;
  min-height: 0;
  margin: -106px -28px -12px -4px;
  overflow: hidden;
  scrollbar-width: none;
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  transition: opacity var(--d300) var(--ease), transform var(--d400) var(--ease);
}
.inspector::-webkit-scrollbar { display: none; }
.orientation-frame.sheet-open .inspector { opacity: 1; transform: none; pointer-events: auto; }
.sheet-light {
  position: absolute;
  z-index: -2;
  inset: -170px -90px -130px -190px;
  pointer-events: none;
  opacity: .76;
  background: radial-gradient(circle at 55% 48%, rgba(255,247,236,.9) 0, rgba(255,247,236,.36) 34%, rgba(255,247,236,.10) 56%, transparent 73%);
  filter: blur(9px);
}
.sheet-svg { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sheet-svg path { fill: rgba(255,254,252,.95); stroke: rgba(71,62,52,.17); stroke-width: 1; vector-effect: non-scaling-stroke; filter: drop-shadow(0 9px 25px rgba(67,52,36,.045)); transition: d var(--d400) var(--ease); }
.inspector-content {
  min-height: 100%;
  padding: 20px 28px 18px 82px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--d250) var(--ease), transform var(--d250) var(--ease);
}
.orientation-frame.content-ready .inspector-content { opacity: 1; transform: none; }
.inspector-head { display: grid; grid-template-columns: 1fr 36px; gap: 12px; align-items: start; }
.inspector-head .category { margin: 0 0 12px; color: var(--bridge-color, var(--teal)); }
.inspector-head h2 { margin: 0; font-family: var(--display); font-size: clamp(27px, 2.15vw, 34px); font-weight: 500; line-height: .98; letter-spacing: -.02em; }
.sheet-close { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--hairline); border-radius: 50%; background: rgba(255,255,255,.42); cursor: pointer; transition: transform var(--d300) var(--ease), border-color var(--d250) var(--ease); }
.sheet-close:hover { transform: rotate(90deg); border-color: var(--hairline-strong); }
.sheet-close svg { width: 16px; height: 16px; }
.classification { display: inline-flex; align-items: center; gap: 8px; margin: 13px 0 0; padding: 7px 9px; border: 1px solid color-mix(in srgb, var(--bridge-color, var(--teal)) 18%, transparent); border-radius: 999px; color: var(--muted); background: color-mix(in srgb, var(--bridge-color, var(--teal)) 5%, #fff 95%); font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; }
.classification span { width: 6px; height: 6px; border-radius: 50%; background: var(--bridge-color, var(--teal)); }
.sheet-section { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.sheet-section:last-of-type { border-bottom: 0; }
.sheet-section .ledger-label { margin-bottom: 8px; color: #766e64; }
.sheet-section p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.sheet-section strong { color: var(--ink); font-weight: 500; }
.source-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 12px; background: rgba(255,255,255,.38); }
.source-chip svg { width: 17px; height: 17px; color: var(--bridge-color, var(--teal)); }
.source-chip div { min-width: 0; }
.source-chip strong { display: block; font-size: 12px; }
.source-chip span { display: block; margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 14px; }
.primary-action, .secondary-action, .text-action {
  min-height: 42px;
  border-radius: 12px;
  cursor: pointer;
  padding: 0 15px;
  font-size: 12px;
  font-weight: 500;
}
.primary-action { border: 1px solid var(--teal); color: white; background: var(--teal); box-shadow: 0 7px 18px rgba(43,122,111,.12); }
.secondary-action { border: 1px solid var(--hairline-strong); background: rgba(255,255,255,.48); }
.text-action { border: 0; color: var(--muted); background: transparent; padding-inline: 6px; }
.fact-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fact-list li { display: grid; grid-template-columns: 17px 1fr; gap: 9px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.fact-list svg { width: 16px; height: 16px; color: var(--bridge-color, var(--teal)); }
.state-message { margin-top: 16px; padding: 14px; border: 1px solid var(--hairline); border-radius: 14px; background: rgba(255,255,255,.36); }
.state-message strong { display: block; font-family: var(--display); font-size: 21px; font-weight: 500; }
.state-message p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.empty-state {
  min-height: 460px;
  display: grid;
  place-items: center;
  padding: 48px;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: rgba(255,254,252,.42);
  text-align: center;
}
.empty-state .aperture-still { width: 32px; height: 32px; margin: 0 auto 22px; opacity: .74; }
.empty-state h2 { margin: 0; font-family: var(--display); font-size: 34px; font-weight: 500; line-height: 1; }
.empty-state p { max-width: 450px; margin: 12px auto 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.empty-meta { display: inline-flex; gap: 8px; margin-top: 20px; padding: 8px 10px; border: 1px solid var(--hairline); border-radius: 999px; color: var(--muted); font-family: var(--mono); font-size: 9px; }
.partial-note { margin-bottom: 11px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid rgba(154,111,69,.20); border-radius: 13px; background: rgba(154,111,69,.045); color: var(--muted); font-size: 12px; }
.partial-note strong { color: var(--ink); font-weight: 500; }
.partial-note button { border: 0; background: transparent; color: var(--bronze); cursor: pointer; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }

.footer {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: 10px 26px 12px 30px;
  border-top: 0;
  background: linear-gradient(to bottom, rgba(250,248,246,.10), rgba(250,248,246,.94) 26%);
}
.command-bar {
  min-width: 0;
  height: 50px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 38px;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: 26px;
  background: rgba(241,236,228,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.command-bar:focus-within { border-color: rgba(43,122,111,.58); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 3px rgba(43,122,111,.09); }
.command-key { justify-self: center; padding: 5px 7px; border: 1px solid var(--hairline); border-radius: 8px; color: #7a736a; font-family: var(--mono); font-size: 9px; }
.command-bar input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.command-bar input::placeholder { color: #8b847a; }
.command-bar button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 11px; color: white; background: var(--teal); cursor: pointer; }
.command-bar button svg { width: 17px; height: 17px; }
.navmodes { display: flex; align-items: center; gap: 12px; }
.navbtn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--hairline); border-radius: 12px; background: rgba(250,248,246,.74); cursor: pointer; color: #514c45; transition: width var(--d300) var(--ease), height var(--d300) var(--ease), color var(--d250) var(--ease), border-color var(--d250) var(--ease), background var(--d250) var(--ease); }
.navbtn.active { width: 52px; height: 52px; border-radius: 14px; color: var(--teal); border-color: var(--teal); background: rgba(250,248,246,.94); box-shadow: 0 6px 18px rgba(43,122,111,.07); }
.navbtn svg { width: 22px; height: 22px; }
.mode-mark img { width: 20px; height: 20px; opacity: .78; }

.profile-menu {
  position: fixed;
  z-index: 80;
  width: 214px;
  display: none;
  padding: 8px;
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  background: rgba(255,254,252,.97);
  box-shadow: 0 18px 54px rgba(42,34,26,.14);
}
.profile-menu.open { display: block; }
.profile-head { display: grid; gap: 2px; padding: 10px 11px 12px; border-bottom: 1px solid var(--hairline); }
.profile-head strong { font-size: 13px; font-weight: 600; }
.profile-head span { color: var(--muted); font-size: 11px; }
.profile-menu button { width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 9px; background: transparent; cursor: pointer; padding: 0 10px; text-align: left; font-size: 12px; }
.profile-menu button:hover { background: var(--recessed); }
kbd { padding: 2px 5px; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; font-family: var(--mono); font-size: .85em; font-weight: 400; }
.profile-menu kbd { border-color: var(--hairline-strong); color: var(--muted); }

.genesis-dialog { width: min(520px, calc(100vw - 40px)); padding: 0; border: 0; border-radius: 22px; color: var(--ink); background: transparent; box-shadow: 0 26px 90px rgba(43,34,25,.24); }
.genesis-dialog::backdrop { background: rgba(43,39,34,.18); backdrop-filter: blur(3px); }
.genesis-card { border: 1px solid var(--hairline-strong); border-radius: 22px; background: #fffdf9; padding: 26px; }
.genesis-top { display: grid; grid-template-columns: 1fr 36px; gap: 14px; }
.genesis-top .eyebrow { color: var(--teal); }
.genesis-top h2 { margin: 0; font-family: var(--display); font-size: 34px; font-weight: 500; line-height: 1; }
.genesis-grid { display: grid; grid-template-columns: 120px 1fr; gap: 0; margin-top: 20px; border-top: 1px solid var(--hairline); }
.genesis-grid dt, .genesis-grid dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 12px; line-height: 1.45; }
.genesis-grid dt { color: var(--faint); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.genesis-grid dd { color: var(--muted); }
.genesis-foot { display: flex; justify-content: flex-end; padding-top: 18px; }

.mode-popover { position: fixed; z-index: 75; width: 280px; padding: 16px; border: 1px solid var(--hairline-strong); border-radius: 15px; background: rgba(255,254,252,.98); box-shadow: 0 17px 48px rgba(43,34,25,.14); }
.mode-popover .eyebrow { color: var(--teal); }
.mode-popover h3 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 500; }
.mode-popover p { margin: 7px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.mode-popover .popover-actions { display: flex; gap: 8px; }

.tester-fab {
  position: fixed;
  z-index: 90;
  right: 20px;
  bottom: 18px;
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: rgba(255,255,255,.8);
  background: rgba(35,32,29,.88);
  cursor: pointer;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .05em;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
}
.tester-fab kbd { margin-left: 5px; }
.tester {
  position: fixed;
  z-index: 100;
  right: 18px;
  top: 18px;
  bottom: 18px;
  width: min(368px, calc(100vw - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: #e9e5de;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(35,32,29,.97);
  box-shadow: 0 28px 90px rgba(0,0,0,.32);
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
  transition: transform var(--d400) var(--ease), opacity var(--d300) var(--ease);
}
.tester.open { transform: none; opacity: 1; pointer-events: auto; }
.tester > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 19px 19px 16px; border-bottom: 1px solid rgba(255,255,255,.10); }
.tester > header span { color: #aaa39a; font-family: var(--mono); font-size: 8px; letter-spacing: .15em; }
.tester > header h2 { margin: 4px 0 0; font-family: var(--display); font-size: 25px; font-weight: 500; }
.tester > header button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; color: #d8d3cb; background: transparent; cursor: pointer; }
.tester > header svg { width: 16px; height: 16px; }
.tester-body { overflow: auto; padding: 15px; }
.tester-group { margin-bottom: 18px; }
.tester-group h3 { margin: 0 0 8px; color: #aaa39a; font-family: var(--mono); font-size: 8px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.tester-route { width: 100%; display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; border: 0; border-radius: 10px; color: #ddd8d0; background: transparent; cursor: pointer; padding: 8px 9px; text-align: left; }
.tester-route:hover { background: rgba(255,255,255,.055); }
.tester-route.active { color: white; background: rgba(43,122,111,.28); box-shadow: inset 0 0 0 1px rgba(104,186,173,.28); }
.tester-route code { color: #aaa39a; font-family: var(--mono); font-size: 8px; }
.tester-route span { font-size: 11.5px; line-height: 1.3; }
.tester-note { padding: 12px; border: 1px solid rgba(255,255,255,.10); border-radius: 11px; color: #bdb7ae; background: rgba(255,255,255,.035); font-size: 10.5px; line-height: 1.5; }
.tester > footer { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.10); color: #918a81; font-family: var(--mono); font-size: 8px; }

.toast { position: fixed; z-index: 110; left: 50%; bottom: 30px; max-width: min(420px, calc(100vw - 40px)); transform: translateX(-50%); padding: 11px 15px; border: 1px solid var(--hairline-strong); border-radius: 12px; color: var(--ink); background: rgba(255,254,252,.98); box-shadow: 0 14px 46px rgba(43,34,25,.17); font-size: 12px; }

@media (min-width: 941px) and (max-height: 880px) {
  .today-page { padding-top: 20px; padding-bottom: 8px; }
  .brief-heading { height: 92px; }
  .orientation-frame { height: calc(100% - 92px); }
  .reading-rule { min-height: 9px; margin-bottom: 5px; font-size: 7.5px; }
  .observations { gap: 9px; }
  .observation-card { min-height: 132px; }
  .meaning-button { padding-top: 15px; padding-bottom: 13px; }
  .reason { margin-top: 7px; }
  .decision-card { min-height: 84px; margin-top: 9px; }
  .judgment-threshold { margin-top: 9px; padding-top: 7px; }
  .judgment-content { min-height: 76px; grid-template-columns: minmax(0, 1fr) 350px; padding-top: 3px; }
  .judgment-copy h2 { font-size: 22px; }
  .judgment-copy p { font-size: 11.5px; }
  .judgment-actions { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; gap: 6px; padding: 3px 0; }
  .judgment-route { min-height: 68px; grid-template-columns: 28px minmax(0, 1fr) 12px; gap: 7px; align-content: center; padding: 7px 8px; }
  .judgment-route-icon { width: 28px; height: 28px; }
  .judgment-route-icon svg { width: 14px; height: 14px; }
  .judgment-route-arrow svg { width: 12px; height: 12px; }
  .continuity-ledger { min-height: 472px; margin-top: -92px; padding-top: 17px; padding-bottom: 17px; }
  .inspector { margin-top: -96px; }
  .inspector-content { padding-top: 17px; padding-bottom: 14px; }
  .inspector-head h2 { font-size: 30px; }
  .sheet-section { padding: 11px 0; }
  .sheet-actions { padding-top: 11px; }
  .state-message { margin-top: 11px; padding: 11px; }
}

@media (min-width: 941px) and (max-height: 820px) {
  .brief-heading { height: 82px; }
  .orientation-frame { height: calc(100% - 82px); }
  .brief-heading h1 { font-size: 39px; }
  .brief-heading .subhead { margin-top: 5px; font-size: 13px; }
  .eyebrow { margin-bottom: 5px; }
  .reading-rule { min-height: 9px; margin-bottom: 5px; font-size: 7.5px; }
  .observations { gap: 8px; }
  .observation-card { min-height: 128px; }
  .rank { width: 50px; height: 50px; font-size: 23px; }
  .meaning-button { padding-top: 12px; padding-bottom: 10px; }
  .category { margin-bottom: 6px; }
  .claim { font-size: 23px; }
  .reason { margin-top: 5px; font-size: 12.5px; }
  .suggestion-button { padding-top: 8px; }
  .decision-card { min-height: 78px; margin-top: 8px; }
  .decision-main { padding-top: 10px; padding-bottom: 10px; }
  .judgment-threshold { margin-top: 8px; padding-top: 5px; }
  .judgment-rule { gap: 8px; font-size: 7.5px; }
  .judgment-content { min-height: 76px; grid-template-columns: minmax(0, 1fr) 350px; padding-top: 3px; }
  .judgment-copy { padding-top: 4px; padding-bottom: 4px; }
  .judgment-copy h2 { font-size: 20px; }
  .judgment-copy p { margin-top: 3px; font-size: 10.5px; }
  .judgment-actions { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; gap: 6px; padding: 3px 0; }
  .judgment-route { min-height: 68px; grid-template-columns: 28px minmax(0, 1fr) 12px; gap: 7px; align-content: center; padding: 7px 8px; }
  .judgment-route-icon { width: 28px; height: 28px; }
  .judgment-route-icon svg { width: 14px; height: 14px; }
  .judgment-route-arrow svg { width: 12px; height: 12px; }
  .judgment-route strong { font-size: 11px; }
  .continuity-ledger { min-height: 446px; margin-top: -82px; padding: 14px 17px; }
  .ledger-row { padding-bottom: 10px; margin-bottom: 10px; }
  .ledger-section { padding: 11px 0 10px; }
  .handled-box { gap: 7px; margin-top: 8px; padding: 10px; }
  .inspector { margin-top: -86px; }
  .inspector-content { padding-top: 14px; padding-bottom: 12px; }
  .inspector-head h2 { font-size: 27px; }
  .classification { margin-top: 9px; }
  .sheet-section { padding: 9px 0; }
  .sheet-section p { font-size: 12px; line-height: 1.42; }
  .source-chip { padding: 8px 10px; }
  .sheet-actions { padding-top: 9px; }
}

@media (max-width: 1180px) {
  .orientation-frame { --inspector-width: 286px; gap: 18px; }
  .observation-card { grid-template-columns: 67px minmax(0, 1fr) 250px; }
  .rank { width: 48px; height: 48px; font-size: 23px; }
  .meaning-button { padding-right: 16px; }
  .action-copy strong { font-size: 13px; }
  .decision-card { grid-template-columns: minmax(0, 1fr) 270px; }
  .inspector-content { padding-left: 72px; padding-right: 22px; }
}

@media (max-width: 940px) {
  .page-backdrop { padding: 0; display: block; }
  .app-shell { width: 100vw; height: 100vh; min-height: 0; border: 0; border-radius: 0; }
  .titlebar { padding-inline: 14px; }
  .sync-state span:nth-child(2) { display: none; }
  .shell-body { grid-template-columns: 1fr; }
  .rail { display: none; }
  .workspace { grid-template-rows: minmax(0, 1fr) 72px; }
  .today-page { padding: 23px 18px 18px; }
  .brief-heading { height: auto; min-height: 112px; }
  .brief-heading h1 { font-size: 38px; max-width: 600px; }
  .brief-status { display: none; }
  .orientation-frame { min-height: auto; display: block; }
  .observation-card { grid-template-columns: 64px minmax(0, 1fr); min-height: 0; overflow: hidden; }
  .rank-wrap { grid-row: 1; }
  .meaning-button { grid-column: 2; min-height: 126px; padding: 20px 18px 18px 2px; }
  .card-side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--hairline); border-radius: 0 0 18px 18px; grid-template-rows: auto 38px; }
  .suggestion-button { grid-template-columns: 42px minmax(0,1fr) 34px; min-height: 78px; border-radius: 0; padding: 12px 14px 7px 16px; }
  .observation-card.action-selected .card-side { border-radius: 0 0 18px 18px; }
  .decision-card { grid-template-columns: 1fr; }
  .decision-main { grid-template-columns: 1fr; gap: 7px; }
  .decision-action { min-height: 74px; border-left: 0; border-top: 1px solid var(--hairline); }
  .judgment-threshold { margin-top: 16px; }
  .judgment-content { grid-template-columns: 1fr; gap: 9px; }
  .judgment-copy { padding: 10px 10px 4px; }
  .judgment-actions { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .continuity-ledger { margin-top: 18px; }
  .continuity-detail {
    position: fixed;
    z-index: 70;
    left: 14px;
    right: 14px;
    bottom: 0;
    top: 16vh;
    width: auto;
    min-height: 0;
    align-self: stretch;
    margin: 0;
    overflow: auto;
    border-radius: 28px 28px 0 0;
    background: rgba(255,254,252,.98);
    box-shadow: 0 -18px 70px rgba(43,34,25,.15);
  }
  .bridge-layer { display: none; }
  .inspector {
    position: fixed;
    z-index: 70;
    left: 0;
    right: 0;
    bottom: 0;
    top: 16vh;
    min-height: 0;
    margin: 0;
    border-radius: 28px 28px 0 0;
    overflow: auto;
    background: rgba(255,254,252,.98);
    box-shadow: 0 -18px 70px rgba(43,34,25,.15);
    transform: translateY(22px);
  }
  .orientation-frame.sheet-open .inspector { transform: none; }
  .sheet-light, .sheet-svg { display: none; }
  .inspector-content { padding: 26px 24px 40px; }
  .footer { gap: 14px; padding: 9px 14px; }
  .command-bar { height: 48px; }
  .navmodes { gap: 8px; }
  .navbtn { width: 40px; height: 40px; }
  .navbtn.active { width: 48px; height: 48px; }
  .tester-fab { right: 10px; bottom: 82px; }
}

@media (max-width: 600px) {
  .titlebar { grid-template-columns: auto 1fr auto; }
  .traffic { gap: 5px; }
  .traffic span { width: 9px; height: 9px; }
  .wordmark { justify-self: center; font-size: 10px; }
  .sync-state { font-size: 0; gap: 4px; }
  .today-page { padding: 20px 14px 20px; }
  .brief-heading { min-height: 120px; }
  .brief-heading h1 { font-size: 34px; line-height: .98; }
  .brief-heading .subhead { font-size: 13px; }
  .claim { font-size: 24px; }
  .reason { font-size: 12.5px; }
  .judgment-actions { grid-template-columns: 1fr; }
  .footer { grid-template-columns: minmax(0,1fr) auto; }
  .command-bar { grid-template-columns: 38px minmax(0,1fr) 36px; }
  .command-bar input { font-size: 12px; }
  .navbtn { display: none; }
  .navbtn.active { display: grid; width: 46px; height: 46px; }
  .empty-state { min-height: 380px; padding: 36px 22px; }
  .tester-fab { top: 54px; right: 8px; bottom: auto; width: 34px; padding: 0; font-size: 0; }
  .tester-fab kbd { margin: 0; border: 0; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
