/* ========================================================================== 
   Locus.|汇 · V50 Campus Field Radar
   A decision-first event interface layered over the intact DS1 behaviour.
   ========================================================================== */

@font-face {
  font-family: "Instrument Local";
  src: url("./assets/fonts/instrument-sans-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo Local";
  src: url("./assets/fonts/archivo-black-400-1.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f2f4ef;
  --canvas-strong: #e8ece5;
  --surface: #ffffff;
  --surface-2: #f7f8f5;
  --surface-3: #edf1eb;
  --surface-hover: #f4f7f2;
  --ink: #142018;
  --ink-2: #526057;
  --ink-3: #7b887f;
  --inverse: #f4f8f3;
  --forest: #10251d;
  --forest-2: #17372b;
  --accent: #147a65;
  --accent-2: #0d6654;
  --accent-soft: #e0f2ea;
  --signal: #c9f764;
  --signal-ink: #18301d;
  --plum: #6f2b75;
  --plum-soft: #f4eaf5;
  --positive: #19704f;
  --positive-soft: #e1f3e8;
  --attention: #9a5a00;
  --attention-soft: #fff0d2;
  --danger: #ad3540;
  --danger-soft: #fbe5e7;
  --unknown-soft: #eef0ed;
  --time: #136f88;
  --time-soft: #def1f5;
  --place: #147a65;
  --place-soft: #e0f2ea;
  --action: #6f2b75;
  --action-dark: #59205e;
  --action-soft: #f4eaf5;
  --action-fill: #6f2b75;
  --action-fill-hover: #57205c;
  --danger-fill: #ad3540;
  --danger-fill-hover: #8f2731;
  --line: rgba(20, 32, 24, 0.1);
  --line-strong: rgba(20, 32, 24, 0.18);
  --line-axis: rgba(20, 32, 24, 0.26);
  --focus: #147a65;
  --school-thu: #7a3f8d;
  --school-pku: #a43c48;
  --font-ui: "Instrument Local", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-editorial: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", ui-monospace, monospace;
  --font-display: "Archivo Local", "Instrument Local", sans-serif;
  --font: var(--font-ui);
  --shell: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --header: 72px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-control: 12px;
  --radius-panel: 22px;
  --radius-sheet: 26px;
  --shadow-xs: 0 1px 0 rgba(20, 32, 24, 0.04);
  --shadow-sm: 0 10px 30px rgba(25, 38, 29, 0.06);
  --shadow-md: 0 18px 50px rgba(25, 38, 29, 0.1);
  --shadow-card: var(--shadow-sm);
  --shadow-card-hover: var(--shadow-md);
  --shadow-raised: var(--shadow-sm);
  --shadow-sticky: 0 8px 30px rgba(25, 38, 29, 0.1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-panel: 420ms;
  --ease: cubic-bezier(0.2, 0.78, 0.2, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --canvas: #0d1410;
    --canvas-strong: #111a15;
    --surface: #161f19;
    --surface-2: #1b261f;
    --surface-3: #223027;
    --surface-hover: #202d25;
    --ink: #edf4ee;
    --ink-2: #aebbb1;
    --ink-3: #7f8e83;
    --inverse: #0f1812;
    --forest: #07110c;
    --forest-2: #123226;
    --accent: #69d3af;
    --accent-2: #8be0c1;
    --accent-soft: rgba(84, 201, 161, 0.13);
    --signal: #c9f764;
    --signal-ink: #132317;
    --plum: #d79add;
    --plum-soft: rgba(188, 112, 196, 0.14);
    --positive: #73d59f;
    --positive-soft: rgba(84, 198, 132, 0.14);
    --attention: #f3bf67;
    --attention-soft: rgba(225, 157, 47, 0.14);
    --danger: #f18d96;
    --danger-soft: rgba(215, 76, 88, 0.14);
    --unknown-soft: rgba(255, 255, 255, 0.05);
    --time: #80d8ec;
    --time-soft: rgba(85, 188, 211, 0.14);
    --place: #69d3af;
    --place-soft: rgba(84, 201, 161, 0.13);
    --action: #d79add;
    --action-dark: #efb8f2;
    --action-soft: rgba(188, 112, 196, 0.14);
    --action-fill: #7d3986;
    --action-fill-hover: #682d70;
    --danger-fill: #a83b47;
    --danger-fill-hover: #8e2d37;
    --line: rgba(237, 244, 238, 0.09);
    --line-strong: rgba(237, 244, 238, 0.17);
    --line-axis: rgba(237, 244, 238, 0.24);
    --focus: #8be0c1;
    --school-thu: #b88bca;
    --school-pku: #dd7d87;
    --shadow-xs: 0 1px 0 rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 14px 36px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 22px 60px rgba(0, 0, 0, 0.32);
    --shadow-card: var(--shadow-sm);
    --shadow-card-hover: var(--shadow-md);
    --shadow-raised: var(--shadow-sm);
    --shadow-sticky: 0 12px 36px rgba(0, 0, 0, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 2%, color-mix(in srgb, var(--accent) 7%, transparent) 0, transparent 28rem),
    radial-gradient(circle at 94% 28%, color-mix(in srgb, var(--plum) 5%, transparent) 0, transparent 32rem),
    var(--canvas);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
}

body::before {
  content: none;
}

body.dialog-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

p,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.18;
}

img,
svg {
  display: block;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 72%, white);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection {
  color: var(--signal-ink);
  background: var(--signal);
}

.shell-width {
  width: min(100%, var(--shell));
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.locus-shell,
.driftpoint-shell {
  min-height: 100vh;
}

#main {
  min-width: 0;
  padding-bottom: 92px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1000;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--inverse);
  background: var(--accent-2);
  font-weight: 750;
  transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease);
}

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

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink-2);
  background: var(--surface);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.2;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0) scale(0.99);
}

.button--primary {
  color: #fff;
  border-color: var(--accent-2);
  background: var(--accent-2);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent-2) 18%, transparent);
}

.button--primary:hover {
  border-color: var(--forest-2);
  background: var(--forest-2);
}

.button--secondary {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface);
}

.button--secondary:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line-strong));
  background: var(--surface-hover);
}

.button--danger {
  color: #fff;
  border-color: var(--danger-fill);
  background: var(--danger-fill);
}

.button--danger:hover {
  border-color: var(--danger-fill-hover);
  background: var(--danger-fill-hover);
}

.text-button,
.inline-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0;
  border: 0;
  color: var(--accent-2);
  background: transparent;
  font-weight: 720;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-3);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow--time { color: var(--time); }
.eyebrow--place { color: var(--place); }
.eyebrow--action { color: var(--action); }
.eyebrow--truth { color: var(--positive); }
.eyebrow--danger { color: var(--danger); }

.semantic-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 14%, transparent);
}

/* --- Header ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(20px) saturate(1.35);
}

.site-header__inner {
  display: grid;
  height: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.locus-brand {
  display: inline-flex;
  width: max-content;
  min-height: 44px;
  align-items: baseline;
  justify-content: center;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 21px;
  font-weight: 830;
  letter-spacing: -0.045em;
}

.locus-brand i {
  width: 8px;
  height: 8px;
  margin: 0 6px 1px 5px;
  border-radius: 50%;
  background: var(--accent);
}

.locus-brand span:nth-of-type(2) {
  font-family: var(--font-editorial);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.08em;
}

.locus-brand b {
  width: 6px;
  height: 6px;
  margin-left: 6px;
  overflow: hidden;
  border-radius: 1px;
  color: transparent;
  background: var(--plum);
}

.desktop-nav {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 6px;
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 16px;
  border-radius: 13px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 720;
}

.desktop-nav a:hover {
  color: var(--ink);
  background: var(--surface-hover);
}

.desktop-nav a[aria-current="page"] {
  color: var(--accent-2);
  background: var(--accent-soft);
}

.desktop-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 5px;
  left: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.header-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
}

.header-matrix,
.header-plan {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink-2);
  background: var(--surface);
  font-size: 13px;
  font-weight: 740;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.header-matrix:hover,
.header-plan:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.header-plan,
.header-plan[aria-current="page"] {
  color: #f4f8f3;
  border-color: var(--forest);
  background: var(--forest);
}

.mobile-topbar,
.mobile-nav {
  display: none;
}

/* --- Home masthead ----------------------------------------------------- */

.home-intro {
  position: relative;
  display: grid;
  min-height: 184px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 40px;
  margin-top: 26px;
  padding-block: 30px 28px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: var(--inverse);
  background:
    radial-gradient(circle at 79% 15%, rgba(201, 247, 100, 0.18), transparent 14rem),
    radial-gradient(circle at 96% 120%, rgba(118, 83, 161, 0.28), transparent 24rem),
    linear-gradient(120deg, var(--forest), #153529 64%, #1f3f32);
  box-shadow: var(--shadow-md);
}

.home-intro::before,
.home-intro::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.home-intro::before {
  width: 270px;
  height: 270px;
  top: -140px;
  right: 7%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 38px rgba(255, 255, 255, 0.025), 0 0 0 76px rgba(255, 255, 255, 0.02);
}

.home-intro::after {
  width: 8px;
  height: 8px;
  right: 10%;
  bottom: 34px;
  background: var(--signal);
  box-shadow: -42px 12px 0 rgba(201, 247, 100, 0.46), 24px -36px 0 rgba(255, 255, 255, 0.25);
}

.home-intro__mast,
.home-intro__statusline,
.home-intro .live-ticker {
  position: relative;
  z-index: 1;
}

.home-intro__mast {
  min-width: 0;
}

.home-intro__mast .eyebrow {
  margin-bottom: 12px;
  color: rgba(244, 248, 243, 0.7);
}

.home-intro h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.12em;
  color: #f4f8f3;
  font-family: var(--font-editorial);
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 1;
}

.mast-kicker,
.mast-week {
  color: rgba(244, 248, 243, 0.68);
  font-size: 0.48em;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.mast-digit {
  color: var(--signal);
  font-family: var(--font-display);
  font-size: 1.04em;
  font-weight: 400;
  letter-spacing: -0.06em;
}

.home-intro__statusline {
  align-self: end;
  max-width: 440px;
  text-align: right;
}

.home-intro__status,
.home-intro__meta {
  color: rgba(244, 248, 243, 0.78);
}

.home-intro__status {
  font-size: 14px;
  font-weight: 660;
}

.home-intro__meta {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.03em;
  opacity: 0.64;
}

.meta-short {
  display: none;
}

.live-ticker {
  position: absolute !important;
  top: 24px;
  right: var(--gutter);
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  color: rgba(244, 248, 243, 0.78);
  background: rgba(4, 15, 9, 0.23);
  backdrop-filter: blur(10px);
  font-size: 12px;
}

.live-ticker__clock {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.live-ticker__next b,
.live-ticker__live,
.live-ticker__done {
  color: #f4f8f3;
  font-weight: 740;
}

.live-ticker__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-ticker__live i,
.row-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(201, 247, 100, 0.14);
}

/* --- Scope and filters ------------------------------------------------- */

.scope-bar {
  position: sticky;
  top: calc(var(--header) + 10px);
  z-index: 45;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding-block: 9px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: color-mix(in srgb, var(--surface) 89%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px) saturate(1.25);
}

.scope-tabs,
.unit-switch,
.scope-tools {
  display: flex;
  align-items: center;
}

.scope-tabs {
  min-width: 0;
  gap: 4px;
}

.unit-switch {
  gap: 3px;
  margin-right: 8px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-3);
}

.unit-switch a,
.scope-tabs > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding-inline: 14px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

.unit-switch a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.scope-tabs > a:hover,
.scope-tabs > a[aria-current="page"] {
  color: var(--accent-2);
  background: var(--accent-soft);
}

.scope-tools {
  gap: 12px;
  color: var(--ink-3);
  font-size: 12px;
  white-space: nowrap;
}

.filter-control {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink-2);
  background: var(--surface);
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

.filter-control[aria-pressed="true"] {
  color: var(--accent-2);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background: var(--accent-soft);
}

/* --- Next event focus -------------------------------------------------- */

.editorial-pulse {
  position: relative;
  display: grid;
  min-height: 332px;
  grid-template-columns: minmax(310px, 0.9fr) minmax(0, 1.1fr);
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.editorial-pulse__art {
  position: relative;
  min-height: 332px;
  overflow: hidden;
  background: var(--forest);
}

.editorial-pulse__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 58%, color-mix(in srgb, var(--surface) 16%, transparent)),
    linear-gradient(180deg, transparent 60%, rgba(7, 15, 10, 0.18));
}

.specimen {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.specimen--science { background-image: url("./assets/locus-cover-science-v3.webp"); }
.specimen--performance { background-image: url("./assets/locus-cover-performance-v3.webp"); }
.specimen--humanities { background-image: url("./assets/locus-cover-humanities-v3.webp"); }
.specimen--architecture { background-image: url("./assets/locus-cover-architecture-v3.webp"); }

.specimen i {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(11, 23, 15, 0.02), rgba(11, 23, 15, 0.12));
}

.specimen b {
  position: absolute;
  bottom: 18px;
  left: 20px;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 30, 21, 0.52);
  backdrop-filter: blur(8px);
  font-family: var(--font-editorial);
  font-size: 18px;
}

.editorial-pulse__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 50px);
}

.editorial-pulse__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.editorial-pulse__category {
  margin-top: 20px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 740;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.editorial-pulse__copy h2 {
  max-width: 720px;
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--font-editorial);
  font-size: clamp(29px, 3.1vw, 45px);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.editorial-pulse__facts {
  display: grid;
  grid-template-columns: minmax(100px, 0.38fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.editorial-pulse__facts > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
}

.editorial-pulse__facts b {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editorial-pulse__facts small {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editorial-pulse__reason {
  display: -webkit-box;
  margin-top: 14px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.editorial-pulse__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.editorial-pulse__actions .button {
  color: var(--signal-ink);
  border-color: var(--signal);
  background: var(--signal);
  box-shadow: 0 10px 28px rgba(111, 147, 41, 0.16);
}

.editorial-pulse__actions .button:hover {
  border-color: color-mix(in srgb, var(--signal) 80%, black);
  background: color-mix(in srgb, var(--signal) 88%, white);
}

.editorial-pulse__notes {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 740;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.access-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
}

.access-badge--open {
  color: var(--positive);
  border-color: color-mix(in srgb, var(--positive) 24%, transparent);
  background: var(--positive-soft);
}

.access-badge--gated {
  color: var(--attention);
  border-color: color-mix(in srgb, var(--attention) 22%, transparent);
  background: var(--attention-soft);
}

.access-badge--pending {
  color: var(--ink-2);
  border-color: var(--line);
  background: var(--unknown-soft);
}

/* --- Provenance and day rhythm ---------------------------------------- */

.data-provenance {
  margin-top: 12px;
  padding-block: 0;
}

.data-provenance summary {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  cursor: pointer;
}

.data-provenance summary::-webkit-details-marker {
  display: none;
}

.data-provenance__lede {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-provenance__lede em,
.data-provenance p em {
  color: var(--accent);
  font-style: normal;
  font-weight: 760;
}

.data-provenance__toggle {
  color: var(--ink-3);
  font-size: 11px;
}

.data-provenance[open] summary {
  border-radius: 15px 15px 0 0;
}

.data-provenance[open] .data-provenance__toggle::before {
  content: "收起";
}

.data-provenance[open] .data-provenance__toggle {
  font-size: 0;
}

.data-provenance[open] .data-provenance__toggle::before {
  font-size: 11px;
}

.data-provenance > p {
  padding: 14px 16px 0;
  border-inline: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--surface-2);
  font-size: 12px;
  line-height: 1.7;
}

.data-provenance > p:last-child {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 15px 15px;
}

.day-gantt {
  position: relative;
  margin: 12px auto 0;
  padding: 17px 20px 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.day-gantt__track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: var(--surface-3);
}

.gantt-bar {
  position: absolute;
  top: 1px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  transition: filter var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.gantt-bar:hover {
  z-index: 2;
  filter: brightness(1.12);
  transform: scaleY(1.3);
}

.gantt-bar--thu { background: var(--school-thu); }
.gantt-bar--pku { background: var(--school-pku); }

.gantt-now {
  position: absolute;
  top: -5px;
  width: 2px;
  height: 22px;
  border-radius: 2px;
  background: var(--ink);
}

.gantt-now::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
}

.gantt-conflict {
  position: absolute;
  top: -26px;
  color: var(--attention);
  font-size: 10px;
  font-weight: 760;
}

.day-gantt__ticks {
  position: relative;
  height: 16px;
  margin-top: 10px;
}

.gantt-tick {
  position: absolute;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9px;
  transform: translateX(-50%);
}

.gantt-tick:first-child { transform: none; }
.gantt-tick:last-child { transform: translateX(-100%); }

/* --- Section headers --------------------------------------------------- */

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-heading > div {
  display: grid;
  gap: 5px;
}

.section-heading h2 {
  color: var(--ink);
  font-family: var(--font-editorial);
  font-size: clamp(24px, 2.4vw, 33px);
  font-weight: 680;
  letter-spacing: -0.035em;
}

.section-heading > span {
  color: var(--ink-3);
  font-size: 11px;
}

/* --- Event decision cards --------------------------------------------- */

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 24px;
  margin-top: 34px;
}

.fixed-field,
.flex-field,
.ended-field,
.rule-picks,
.conflict-compare,
.plan-section {
  min-width: 0;
}

.coordinate-field,
.flex-list {
  display: grid;
  gap: 10px;
}

.coordinate-row {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 156px;
  grid-template-columns: 92px minmax(0, 1fr) 110px;
  grid-template-rows: auto 1fr auto;
  column-gap: 18px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}

.coordinate-row::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--line-strong);
}

.coordinate-row--school-thu::before { background: var(--school-thu); }
.coordinate-row--school-pku::before { background: var(--school-pku); }
.coordinate-row--school-cross::before { background: linear-gradient(var(--school-thu), var(--school-pku)); }
.coordinate-row--live::before { background: var(--signal); }

.coordinate-row:hover {
  z-index: 1;
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  background: var(--surface-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.coordinate-row__main {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.coordinate-row__main:focus-visible {
  outline-offset: -4px;
}

.coordinate-time {
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: stretch;
  display: flex;
  width: auto;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding-right: 14px;
  border-right: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.coordinate-time strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.coordinate-time span {
  margin-top: 7px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
}

.coordinate-time--pending strong {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0;
}

.coordinate-axis {
  display: none;
}

.coordinate-copy {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  min-width: 0;
  padding-right: 6px;
}

.row-status {
  display: flex;
  min-height: 22px;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin-bottom: 5px;
}

.truth-label,
.row-live,
.row-commitment,
.row-featured,
.row-expired {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.2;
}

.truth-label .icon {
  width: 11px;
  height: 11px;
}

.truth-label--positive,
.row-live { color: var(--positive); }
.truth-label--attention { color: var(--attention); }
.truth-label--danger,
.row-expired { color: var(--danger); }
.row-commitment { color: var(--action); }
.row-featured { color: var(--accent); }

.src-stamp {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink-3);
  font-family: var(--font-editorial);
  font-size: 10px;
  font-weight: 720;
}

.coordinate-copy h3 {
  display: -webkit-box;
  max-width: 760px;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-editorial);
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.place-vector {
  display: grid;
  min-width: 0;
  grid-template-columns: 12px minmax(0, 42%) minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 11px;
}

.place-vector__line {
  width: 12px;
  height: 1px;
  flex: 0 0 auto;
  margin-top: 0.72em;
  background: var(--place);
}

.place-vector strong {
  max-width: none;
  overflow: visible;
  color: var(--place);
  font-size: 11px;
  font-weight: 760;
  text-overflow: clip;
  white-space: normal;
}

.place-vector small {
  min-width: 0;
  overflow: visible;
  color: var(--ink-3);
  font-size: 10px;
  line-height: 1.45;
  text-overflow: clip;
  white-space: normal;
}

.row-meta {
  display: flex;
  min-width: 0;
  width: 100%;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin-top: 7px;
}

.row-meta p {
  margin: 0;
}

.access-line {
  min-width: 0;
  flex: 1;
  overflow: visible;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.45;
  text-overflow: clip;
  white-space: normal;
}

.source-line {
  flex: 0 0 auto;
  color: var(--ink-3);
  font-size: 9px;
  white-space: nowrap;
}

.coordinate-row > .access-badge {
  grid-column: 3;
  grid-row: 1;
  z-index: 2;
  align-self: start;
  justify-self: end;
  pointer-events: none;
}

.row-cover {
  position: relative;
  grid-column: 3;
  grid-row: 2;
  align-self: center;
  justify-self: end;
  width: 82px;
  height: 58px;
  overflow: hidden;
  border-radius: 11px;
  background: var(--surface-3);
}

.row-cover .specimen b {
  right: 7px;
  bottom: 6px;
  left: auto;
  width: 23px;
  height: 23px;
  font-size: 10px;
}

.row-enter {
  display: none;
}

.row-notes-link {
  position: relative;
  z-index: 3;
  grid-column: 3;
  grid-row: 3;
  align-self: end;
  justify-self: end;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  color: var(--action);
  font-size: 10px;
  font-weight: 720;
}

.row-notes-link .icon {
  width: 12px;
  height: 12px;
}

.coordinate-row--expired {
  opacity: 0.7;
}

.now-marker {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 10px;
  margin-inline: 12px;
  color: var(--accent);
  font-size: 10px;
}

.now-marker strong {
  font-family: var(--font-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.now-marker span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.now-marker em {
  font-style: normal;
  font-weight: 740;
}

/* --- Home side context ------------------------------------------------- */

.home-context__sticky {
  position: sticky;
  top: calc(var(--header) + 92px);
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--inverse);
  background:
    radial-gradient(circle at 100% 0, rgba(201, 247, 100, 0.16), transparent 11rem),
    var(--forest);
  box-shadow: var(--shadow-sm);
}

.home-context__sticky .eyebrow {
  color: var(--signal);
}

.context-clock {
  margin-top: 24px;
  color: var(--signal);
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: -0.06em;
  line-height: 1;
}

.home-context__sticky h2 {
  margin-top: 10px;
  color: #f4f8f3;
  font-family: var(--font-editorial);
  font-size: 24px;
  font-weight: 650;
}

.home-context__sticky > p {
  margin-top: 10px;
  color: rgba(244, 248, 243, 0.68);
  font-size: 12px;
  line-height: 1.65;
}

.context-stats {
  display: grid;
  gap: 0;
  margin-top: 24px;
}

.context-stats > div {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.context-stats dt {
  color: rgba(244, 248, 243, 0.58);
  font-size: 11px;
}

.context-stats dd {
  color: #f4f8f3;
  font-size: 12px;
  font-weight: 760;
}

/* --- Ended and open-window sections ----------------------------------- */

.ended-field,
.flex-field,
.rule-picks,
.conflict-compare {
  margin-top: 54px;
}

.ended-list {
  display: grid;
  gap: 8px;
}

.ended-row {
  display: grid;
  min-height: 76px;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.ended-row__time {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
}

.ended-row__copy {
  min-width: 0;
}

.ended-row__copy h3 {
  overflow: hidden;
  font-family: var(--font-editorial);
  font-size: 15px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ended-row__copy p {
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ended-row__note {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  color: var(--action);
  font-size: 11px;
  font-weight: 720;
}

.flex-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flex-list .coordinate-row {
  min-height: 178px;
  grid-template-columns: 68px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
}

.flex-list .coordinate-time {
  grid-column: 1;
}

.flex-list .coordinate-copy {
  grid-column: 2;
  grid-row: 1 / 3;
}

.flex-list .coordinate-row > .access-badge {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  justify-self: start;
  margin-top: 8px;
}

.flex-list .row-cover {
  display: none;
}

.flex-list .row-notes-link {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  justify-self: end;
}

.flex-list .coordinate-copy h3 {
  font-size: 17px;
}

.flex-list .place-vector strong {
  max-width: none;
}

.rule-picks__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-pick {
  display: grid;
  min-width: 0;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}

.rule-pick__rank {
  grid-row: 1 / 3;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 22px;
}

.rule-pick__cat {
  color: var(--ink-3);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.1em;
}

.rule-pick__copy {
  min-width: 0;
}

.rule-pick__copy h3 {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--font-editorial);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rule-pick__copy p {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 10px;
  line-height: 1.45;
}

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

.conflict-card {
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--attention) 20%, var(--line));
  border-radius: 18px;
  background: var(--attention-soft);
}

.conflict-card__time {
  color: var(--attention);
  font-family: var(--font-mono);
  font-size: 11px;
}

.conflict-card h3 {
  margin-top: 8px;
  font-family: var(--font-editorial);
  font-size: 18px;
}

.conflict-card__venue,
.conflict-card__access {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 11px;
}

.conflict-card__access {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.conflict-card .button {
  margin-top: 14px;
}

/* --- Empty states ------------------------------------------------------ */

.field-empty {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.field-empty h3 {
  max-width: 700px;
  margin-top: 10px;
  font-family: var(--font-editorial);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 660;
  letter-spacing: -0.035em;
}

.field-empty > p {
  max-width: 720px;
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.75;
}

.field-empty__exits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 22px;
}

.field-empty__note {
  color: var(--ink-3) !important;
  font-size: 11px !important;
}

.home-context--empty {
  margin-top: 22px;
}

.home-context__peeks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.next-day-peek,
.empty-week-peek {
  display: block;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.next-day-peek > strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-editorial);
  font-size: 18px;
}

.next-day-peek__items {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}

.next-day-peek__items > span {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  color: var(--ink-2);
  font-size: 11px;
}

.next-day-peek__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 720;
}

.empty-week-peek__row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.empty-week-peek__cell {
  display: grid;
  grid-template-rows: auto 42px auto;
  gap: 4px;
  justify-items: center;
  color: var(--ink-3);
  font-size: 9px;
}

.empty-week-peek__cell i {
  width: 6px;
  height: calc(42px * var(--fill));
  align-self: end;
  border-radius: 999px;
  background: var(--accent);
}

.empty-week-peek__cell--empty i {
  height: 2px;
  background: var(--line-strong);
}

.empty-week-peek__cell--today span {
  color: var(--accent);
  font-weight: 760;
}

/* --- Week view --------------------------------------------------------- */

.week-strip {
  margin-top: 14px;
}

.week-strip__row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.week-strip__cell {
  position: relative;
  min-height: 88px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink-2);
  background: var(--surface);
}

.week-strip__link,
.week-strip__cell:not(:has(.week-strip__link)) {
  display: grid;
  height: 100%;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  padding: 12px;
}

.week-strip__day {
  font-size: 10px;
  font-weight: 760;
}

.week-strip__date {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
}

.week-strip__bar {
  align-self: end;
  height: calc(36px * var(--fill));
  border-radius: 6px 6px 2px 2px;
  background: var(--accent);
}

.week-strip__count {
  align-self: end;
  color: var(--ink-3);
  font-size: 10px;
}

.week-strip__cell--today {
  color: var(--signal-ink);
  border-color: var(--signal);
  background: var(--signal);
}

.week-strip__cell--today .week-strip__bar {
  background: var(--forest);
}

.week-strip__cell--empty {
  opacity: 0.55;
}

.week-strip__readout {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.week-anchor {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 10px;
  margin-top: 10px;
}

.week-anchor__today,
.week-anchor__next {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}

.week-anchor__today > strong,
.week-anchor__next > strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
}

.week-anchor__today > span:last-child,
.week-anchor__next > span,
.week-anchor__next > em {
  color: var(--ink-2);
  font-size: 11px;
  font-style: normal;
}

.week-open {
  margin-top: 18px;
}

.week-open__more {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid color-mix(in srgb, var(--place) 22%, var(--line));
  border-radius: 16px;
  color: var(--place);
  background: var(--place-soft);
  font-size: 12px;
  font-weight: 720;
}

.week-list,
.week-day,
.week-past {
  display: grid;
  gap: 10px;
}

.week-day + .week-day {
  margin-top: 28px;
}

.week-day__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 4px;
}

.week-day__name {
  font-family: var(--font-editorial);
  font-size: 20px;
}

.week-day__meta {
  color: var(--ink-3);
  font-size: 10px;
}

.week-past {
  margin-top: 20px;
}

.week-past > summary {
  min-height: 48px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink-2);
  background: var(--surface-2);
  font-size: 11px;
  cursor: pointer;
}

.week-empty-days,
.week-multiday {
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 13px;
  color: var(--ink-3);
  background: var(--surface-2);
  font-size: 11px;
}

/* --- V50 decision-first corrections ----------------------------------- */

.home-intro {
  min-height: 136px;
  align-items: center;
  margin-top: 20px;
  padding-block: 23px;
  border: 1px solid var(--line);
  color: var(--ink);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--time-soft) 70%, transparent), transparent 44%),
    var(--surface);
  box-shadow: none;
}

.home-intro::before {
  top: -190px;
  right: 4%;
  width: 320px;
  height: 320px;
  border-color: color-mix(in srgb, var(--time) 10%, transparent);
  box-shadow: 0 0 0 42px color-mix(in srgb, var(--time) 2.5%, transparent), 0 0 0 84px color-mix(in srgb, var(--time) 1.5%, transparent);
}

.home-intro::after {
  display: none;
}

.home-intro__mast .eyebrow,
.home-intro__status,
.home-intro__meta {
  color: var(--ink-2);
}

.home-intro h1 {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 640;
  letter-spacing: 0;
  line-height: 1.2;
}

.mast-kicker,
.mast-week {
  color: var(--ink-2);
  font-size: 0.65em;
  font-weight: 520;
  letter-spacing: 0;
}

.mast-digit {
  color: var(--time);
  font-family: var(--font-ui);
  font-size: 1em;
  font-weight: 680;
  letter-spacing: 0;
}

.home-intro__status {
  font-size: 13px;
}

.home-intro__meta {
  font-size: 11px;
  opacity: 1;
}

.home-grid {
  margin-top: 24px;
}

.coordinate-row {
  min-height: 136px;
  grid-template-columns: 94px minmax(0, 1fr) 128px;
  grid-template-rows: auto 1fr auto;
  padding: 15px 16px;
  border-radius: 16px;
  box-shadow: none;
}

.coordinate-time strong {
  color: var(--time);
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0;
}

.coordinate-time span {
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
}

.coordinate-copy h3 {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 640;
  letter-spacing: 0;
  line-height: 1.36;
}

.row-cover {
  display: none;
}

.coordinate-row > .access-badge {
  grid-column: 3;
  grid-row: 1;
}

.row-primary-action {
  position: relative;
  z-index: 4;
  display: inline-flex;
  min-width: 108px;
  min-height: 44px;
  grid-column: 3;
  grid-row: 2;
  align-self: center;
  justify-self: end;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--action);
  border-radius: 12px;
  color: #fff;
  background: var(--action-fill);
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.row-primary-action:hover {
  color: #fff;
  background: var(--action-fill-hover);
  transform: translateY(-1px);
}

.row-primary-action--done {
  color: var(--action);
  background: var(--action-soft);
}

.row-primary-action--done:hover {
  color: var(--action);
  background: color-mix(in srgb, var(--action-soft) 78%, var(--surface));
}

.row-notes-link {
  grid-column: 3;
  grid-row: 3;
  min-height: 44px;
}

.row-reason {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.truth-label--snapshot {
  color: var(--ink-2);
}

.flex-list .coordinate-row {
  min-height: 164px;
  grid-template-columns: 68px minmax(0, 1fr) 108px;
}

.flex-list .coordinate-copy {
  grid-column: 2;
  grid-row: 1 / 4;
}

.flex-list .coordinate-row > .access-badge {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.flex-list .row-primary-action {
  grid-column: 3;
  grid-row: 2;
}

.flex-list .row-notes-link {
  grid-column: 3;
  grid-row: 3;
}

.flex-list {
  grid-template-columns: 1fr;
  gap: 18px;
}

.flex-venue-group {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
}

.flex-venue-group__head {
  display: flex;
  min-height: 52px;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 3px 13px;
}

.flex-venue-group__head h3 {
  margin-top: 3px;
  font-size: 17px;
  font-weight: 660;
}

.flex-venue-group__head > span {
  color: var(--ink-3);
  font-size: 10px;
}

.flex-venue-group__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.flex-venue-group--single .flex-venue-group__items {
  grid-template-columns: 1fr;
}

/* --- Detail route ------------------------------------------------------ */

.detail-main {
  min-height: calc(100vh - var(--header));
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 24px;
  padding-block: 28px 84px;
}

.detail-content {
  min-width: 0;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.detail-title {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.detail-title__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-title__status > span:last-child {
  color: var(--ink-3);
  font-size: 12px;
}

.detail-title h1 {
  max-width: 780px;
  margin-top: 16px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.24;
}

.detail-title > p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 13px;
}

.truth-banner {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid currentColor;
  border-radius: 15px;
}

.truth-banner--attention {
  color: var(--attention);
  background: var(--attention-soft);
}

.truth-banner--danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.truth-banner--unknown {
  color: var(--ink-2);
  background: var(--unknown-soft);
}

.truth-banner > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.truth-banner strong {
  font-size: 13px;
}

.truth-banner p {
  margin: 7px 0 0 28px;
  color: currentColor;
  font-size: 12px;
  line-height: 1.6;
}

.detail-spine {
  display: grid;
  grid-template-columns: minmax(100px, 0.9fr) 20px minmax(120px, 1fr) 20px minmax(120px, 1fr) 20px minmax(110px, 0.9fr);
  align-items: start;
  padding-block: 28px 30px;
  border-bottom: 1px solid var(--line);
}

.spine-node {
  position: relative;
  min-width: 0;
  padding-top: 17px;
}

.spine-node__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--surface);
}

.spine-node small {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-3);
  font-size: 10px;
}

.spine-node strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.45;
}

.spine-node p {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.spine-node--time { color: var(--time); }
.spine-node--place { color: var(--place); }
.spine-node--truth { color: var(--positive); }
.spine-node--truth[data-tone="attention"] { color: var(--attention); }
.spine-node--truth[data-tone="danger"] { color: var(--danger); }
.spine-node--truth[data-tone="unknown"] { color: var(--ink-3); }
.spine-node--action { color: var(--action); }

.spine-link {
  height: 1px;
  margin-top: 4px;
  background: var(--line-strong);
}

.spine-link--place { background: var(--place); }
.spine-link--action { background: var(--action); }

.access-gate {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid currentColor;
  border-radius: 17px;
}

.access-gate--positive {
  color: var(--positive);
  background: var(--positive-soft);
}

.access-gate--attention {
  color: var(--attention);
  background: var(--attention-soft);
}

.access-gate--danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.access-gate--unknown {
  color: var(--ink-2);
  background: var(--unknown-soft);
}

.access-gate__mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 12px;
}

.access-gate span {
  font-size: 10px;
  font-weight: 760;
}

.access-gate h2 {
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
}

.access-gate p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.6;
}

.detail-section {
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.detail-section h2 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
}

.detail-section p,
.detail-section li {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.75;
}

.detail-section > p {
  margin-top: 10px;
}

.detail-section ul,
.detail-section ol {
  margin: 14px 0 0;
  padding-left: 21px;
}

.detail-section li + li {
  margin-top: 5px;
}

.reason-section ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  padding: 0;
  list-style: none;
}

.reason-section li {
  position: relative;
  padding-left: 18px;
}

.reason-section li::before {
  content: "";
  position: absolute;
  top: 0.76em;
  left: 0;
  width: 8px;
  height: 2px;
  background: var(--accent);
}

.place-vector--large {
  margin-top: 12px !important;
  font-size: 15px !important;
}

.place-vector--large strong {
  max-width: none;
  color: var(--place);
  font-size: 15px;
}

.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 17px;
}

.route-section .button--primary {
  border-color: var(--place);
  background: var(--place);
  box-shadow: none;
}

.change-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.change-compare span {
  display: flex;
  min-height: 68px;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
  font-size: 17px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}

.change-compare small {
  margin-bottom: 3px;
  color: var(--ink-3);
  font-size: 10px;
}

.change-compare b {
  color: var(--attention);
}

.calendar-section h2 {
  margin-top: 5px;
}

.calendar-facts {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.calendar-facts > div {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.calendar-facts dt {
  min-width: 78px;
  color: var(--ink-3);
  font-size: 10px;
}

.calendar-facts dd {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 640;
  overflow-wrap: anywhere;
}

.calendar-facts code {
  font-family: var(--font-mono);
  font-size: 10px;
}

.calendar-note {
  margin-top: 10px !important;
  color: var(--ink-3) !important;
  font-size: 11px !important;
}

.conflict-chart {
  position: relative;
  height: 50px;
  margin-top: 18px;
}

.conflict-chart__base,
.conflict-chart__event,
.conflict-chart__other,
.conflict-chart__overlap {
  position: absolute;
  left: 0;
  height: 16px;
  border-radius: 4px;
}

.conflict-chart__base {
  top: 0;
  width: 100%;
  background: var(--surface-3);
}

.conflict-chart__event {
  top: 0;
  width: 60%;
  background: var(--time-soft);
  border: 1px solid color-mix(in srgb, var(--time) 30%, transparent);
}

.conflict-chart__other {
  top: 28px;
  left: 40%;
  width: 60%;
  background: var(--attention-soft);
  border: 1px solid color-mix(in srgb, var(--attention) 25%, transparent);
}

.conflict-chart__overlap {
  top: 0;
  left: 40%;
  width: 20%;
  background: color-mix(in srgb, var(--attention) 28%, var(--time-soft));
}

.conflict-labels {
  display: flex;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.conflict-labels strong {
  color: var(--attention);
}

.source-summary,
.note-section__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.source-summary > div,
.note-section__heading > div {
  display: grid;
  gap: 5px;
}

.source-details {
  margin-top: 14px;
}

.source-details summary {
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-2);
  background: var(--surface-2);
  font-size: 11px;
  cursor: pointer;
}

.source-details[open] summary {
  border-radius: 12px 12px 0 0;
}

.source-details dl,
.source-details > p {
  padding: 14px;
  border-inline: 1px solid var(--line);
  background: var(--surface-2);
}

.source-details dl {
  display: grid;
  gap: 7px;
}

.source-details dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.source-details dt,
.source-details dd {
  color: var(--ink-2);
  font-size: 11px;
}

.source-details dd {
  color: var(--ink);
  text-align: right;
}

.source-details > p {
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  font-size: 11px;
}

.desktop-action-rail {
  min-width: 0;
}

.desktop-action-rail > .action-dock {
  position: sticky;
  top: calc(var(--header) + 20px);
}

.action-dock {
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--action) 20%, var(--line));
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--action-soft) 72%, transparent), transparent 46%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.action-dock__copy h2 {
  margin-top: 9px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 650;
  line-height: 1.28;
}

.action-dock__coordinate {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 11px;
}

.action-dock__coordinate span:first-child {
  color: var(--time);
  font-variant-numeric: tabular-nums;
  font-weight: 680;
}

.action-dock__copy p {
  margin-top: 11px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.65;
}

.action-dock__buttons {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.action-dock .button--primary {
  border-color: var(--action-fill);
  background: var(--action-fill);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--action) 18%, transparent);
}

.mobile-action-dock {
  display: none;
}

/* --- Field notes in detail -------------------------------------------- */

.note-section__heading button,
.notes-hero__links button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--action);
  background: var(--surface);
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

.note-section__intro {
  margin-top: 8px !important;
  color: var(--ink-3) !important;
  font-size: 11px !important;
}

.note-preview-list,
.field-note-list {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.note-preview-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-note {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.field-note__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-3);
  font-size: 10px;
}

.field-note__meta span {
  color: var(--action);
  font-weight: 740;
}

.field-note h3 {
  margin-top: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
}

.field-note__summary,
.field-note__body {
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.7;
}

.field-note__body {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.field-note footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 9px;
}

.field-note--compact {
  padding: 16px;
}

.field-note--compact .field-note__summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.note-empty {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--ink-2);
  background: var(--surface-2);
}

.note-empty strong {
  color: var(--ink);
  font-size: 13px;
}

.note-empty span {
  font-size: 11px;
}

.note-section__all {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--action);
  font-size: 11px;
  font-weight: 720;
}

/* --- Notes and plan routes -------------------------------------------- */

.notes-main,
.plan-main {
  padding-top: 28px;
  padding-bottom: 90px;
}

.notes-hero,
.plan-hero {
  position: relative;
  display: grid;
  min-height: 190px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #f4f8f3;
  background:
    radial-gradient(circle at 90% 10%, rgba(215, 154, 221, 0.18), transparent 16rem),
    var(--forest);
  box-shadow: var(--shadow-sm);
}

.notes-hero .eyebrow,
.plan-hero .eyebrow {
  color: #dba7df;
}

.notes-hero h1,
.plan-hero h1 {
  max-width: 860px;
  margin-top: 12px;
  color: #f4f8f3;
  font-size: clamp(29px, 4vw, 44px);
  font-weight: 640;
  letter-spacing: 0;
}

.notes-hero__copy > p,
.plan-hero > p {
  margin-top: 10px;
  color: rgba(244, 248, 243, 0.68);
  font-size: 12px;
}

.notes-hero__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 18px;
}

.notes-hero__links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #f4f8f3;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.notes-hero__links button {
  border-color: rgba(255, 255, 255, 0.18);
  color: #f4f8f3;
  background: rgba(255, 255, 255, 0.08);
}

.notes-hero__count {
  min-width: 160px;
  padding-left: 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.notes-hero__count strong {
  display: block;
  color: var(--signal);
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
}

.notes-hero__count span,
.notes-hero__count small {
  display: block;
  margin-top: 6px;
  color: #f4f8f3;
  font-size: 12px;
}

.notes-hero__count small {
  color: rgba(244, 248, 243, 0.58);
  font-size: 10px;
}

.notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 24px;
  margin-top: 26px;
}

.notes-stream {
  min-width: 0;
}

.notes-stream .section-heading > span {
  max-width: 300px;
  overflow: hidden;
  font-family: var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notes-context {
  position: sticky;
  top: calc(var(--header) + 20px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.notes-context h2 {
  margin-top: 9px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
}

.notes-context > p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.65;
}

.notes-context dl {
  display: grid;
  margin-top: 18px;
}

.notes-context dl div {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.notes-context dt,
.notes-context dd {
  color: var(--ink-3);
  font-size: 10px;
}

.notes-context dd {
  color: var(--ink);
  font-weight: 700;
}

.notes-zero {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 40px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  background: var(--surface);
}

.notes-zero > span {
  color: var(--action);
}

.notes-zero h2 {
  color: var(--ink);
  font-size: 22px;
}

.notes-zero p {
  max-width: 440px;
  color: var(--ink-2);
  font-size: 12px;
}

.plan-section {
  margin-top: 34px;
}

.plan-main > .field-empty {
  margin-top: 24px;
}

.agg-note {
  display: grid;
  gap: 8px;
}

.agg-note__event {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: var(--accent);
  font-size: 11px;
  font-weight: 720;
}

/* --- Unavailable ------------------------------------------------------- */

.unavailable-main {
  display: flex;
  min-height: calc(100vh - var(--header));
  max-width: 760px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 60px 100px;
}

.unavailable-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--danger);
  border-radius: 16px;
  color: var(--danger);
  background: var(--danger-soft);
}

.unavailable-main h1 {
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 650;
}

.unavailable-main p {
  max-width: 620px;
  margin-top: 12px;
  color: var(--ink-2);
}

.unavailable-actions {
  margin-top: 22px;
}

/* --- DrifTPoint handoff ------------------------------------------------ */

.driftpoint-shell {
  --dp-bg: #f4f1f6;
  --dp-surface: #ffffff;
  --dp-ink: #211b25;
  --dp-muted: #6e6473;
  --dp-line: rgba(48, 30, 54, 0.12);
  --dp-action: #6f2b75;
  min-height: 100vh;
  color: var(--dp-ink);
  background:
    radial-gradient(circle at 76% 6%, rgba(111, 43, 117, 0.08), transparent 28rem),
    var(--dp-bg);
}

html[data-theme="dark"] .driftpoint-shell {
    --dp-bg: #120f14;
    --dp-surface: #1c1720;
    --dp-ink: #f2edf4;
    --dp-muted: #b9aebb;
    --dp-line: rgba(242, 237, 244, 0.11);
    --dp-action: #b96fc0;
}

.driftpoint-header {
  display: grid;
  min-height: 70px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: max(28px, calc((100vw - 1220px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  background: #17131a;
}

.driftpoint-brand {
  width: max-content;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.driftpoint-brand span {
  color: #d895df;
}

.driftpoint-header > span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.return-locus {
  justify-self: end;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.handoff-main {
  min-height: calc(100vh - 70px);
  padding: 34px 20px 90px;
}

.handoff-width {
  display: grid;
  width: min(100%, 1220px);
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  align-items: start;
  gap: 18px;
  margin-inline: auto;
}

.handoff-width > .truth-banner {
  grid-column: 1 / -1;
}

.handoff-occurrence,
.permission-trajectory,
.handoff-action,
.handoff-how,
.handoff-trust {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--dp-line);
  border-radius: 20px;
  color: var(--dp-ink);
  background: var(--dp-surface);
  box-shadow: 0 12px 32px rgba(41, 23, 46, 0.06);
}

.handoff-occurrence {
  grid-column: 1;
  grid-row: 1;
}

.handoff-occurrence__source {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--dp-muted);
  font-size: 10px;
}

.handoff-occurrence h1 {
  margin-top: 14px;
  color: var(--dp-ink);
  font-size: clamp(23px, 2.7vw, 34px);
  font-weight: 650;
  line-height: 1.28;
}

.handoff-coordinate {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}

.coordinate-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--dp-muted);
  background: color-mix(in srgb, var(--dp-ink) 5%, transparent);
  font-size: 10px;
}

.coordinate-chip--time { color: var(--time); }
.coordinate-chip--place { color: var(--place); }

.handoff-occurrence > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 12px;
  color: var(--dp-action);
  font-size: 11px;
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.permission-trajectory {
  grid-column: 1;
  grid-row: 2;
}

.permission-trajectory h2,
.handoff-how h2,
.handoff-trust h2 {
  margin-top: 9px;
  color: var(--dp-ink);
  font-size: 20px;
  font-weight: 650;
}

.permission-boundaries {
  display: grid;
  gap: 0;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.permission-boundaries li {
  position: relative;
  min-height: 44px;
  padding: 12px 0 10px 20px;
  border-top: 1px solid var(--dp-line);
  color: var(--dp-muted);
  font-size: 11px;
  line-height: 1.55;
}

.permission-boundaries li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 2px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--dp-action);
  border-radius: 50%;
}

.handoff-action {
  grid-column: 2;
  grid-row: 1 / 3;
  min-height: 100%;
  padding: clamp(28px, 4vw, 44px);
  border-top: 4px solid var(--dp-action);
}

.handoff-action > span {
  color: var(--dp-action);
  font-size: 11px;
  font-weight: 760;
}

.handoff-action h2 {
  max-width: 720px;
  margin-top: 9px;
  color: var(--dp-ink);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 650;
  line-height: 1.2;
}

.handoff-action > p {
  max-width: 700px;
  margin-top: 13px;
  color: var(--dp-muted);
  font-size: 13px;
  line-height: 1.7;
}

.handoff-action__status {
  display: grid;
  margin-top: 24px;
  border: 1px solid var(--dp-line);
  border-radius: 15px;
  overflow: hidden;
}

.handoff-action__status div {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 15px;
  border-bottom: 1px solid var(--dp-line);
}

.handoff-action__status div:last-child {
  border-bottom: 0;
}

.handoff-action__status dt,
.handoff-action__status dd {
  color: var(--dp-muted);
  font-size: 11px;
}

.handoff-action__status dt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.handoff-action__status dt span {
  width: 7px;
  height: 7px;
  border: 2px solid var(--dp-action);
  border-radius: 50%;
}

.handoff-action__status dd {
  color: var(--dp-ink);
  font-weight: 720;
}

.handoff-action__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 25px;
}

.handoff-action__controls .button--primary {
  min-width: 220px;
  border-color: var(--dp-action);
  background: var(--dp-action);
}

.handoff-pause {
  color: var(--dp-muted);
}

.handoff-action--attention {
  border-top-color: var(--attention);
}

.handoff-action--positive {
  border-top-color: var(--positive);
}

.handoff-how,
.handoff-trust {
  grid-column: 1 / -1;
}

.handoff-how__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.handoff-how__facts div {
  padding: 16px;
  border: 1px solid var(--dp-line);
  border-radius: 14px;
}

.handoff-how__facts dt {
  color: var(--dp-action);
  font-size: 10px;
  font-weight: 760;
}

.handoff-how__facts dd {
  margin-top: 7px;
  color: var(--dp-muted);
  font-size: 11px;
  line-height: 1.6;
}

.handoff-trust {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-row > span {
  color: var(--dp-action);
}

.trust-row strong {
  color: var(--dp-ink);
  font-size: 12px;
}

.trust-row p {
  margin-top: 3px;
  color: var(--dp-muted);
  font-size: 10px;
}

.trust-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.trust-actions button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--dp-muted);
  background: transparent;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.handoff-reflux {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--dp-line);
}

.handoff-reflux__anchor {
  color: var(--dp-muted);
  font-size: 11px;
}

.handoff-reflux__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 9px;
}

.handoff-reflux__links > span {
  color: var(--dp-muted);
  font-size: 10px;
}

.handoff-reflux__links a,
.handoff-reflux__links button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--dp-action);
  background: transparent;
  font-size: 10px;
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* --- Dialogs, forms, toast -------------------------------------------- */

.sheet {
  width: min(100% - 32px, 620px);
  max-height: min(88vh, 820px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: var(--radius-sheet);
  color: var(--ink);
  background: transparent;
}

.sheet::backdrop {
  background: rgba(9, 15, 11, 0.58);
  backdrop-filter: blur(10px);
}

.sheet__panel {
  position: relative;
  max-height: min(88vh, 820px);
  padding: clamp(24px, 4vw, 38px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(7, 13, 9, 0.3);
}

.sheet__panel--compact {
  max-width: 520px;
  margin-inline: auto;
}

.sheet__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  font-size: 22px;
}

.sheet h2 {
  max-width: 480px;
  margin-top: 10px;
  padding-right: 42px;
  color: var(--ink);
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 650;
}

.sheet__context {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.65;
}

.field-group {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.field-group legend,
.select-field > span,
.text-field > span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 720;
}

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

.segmented label {
  min-width: 0;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
}

.segmented span {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-2);
  background: var(--surface-2);
  font-size: 11px;
  text-align: center;
}

.segmented input:checked + span {
  color: var(--action);
  border-color: var(--action);
  background: var(--action-soft);
  font-weight: 720;
}

.segmented input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.select-field,
.text-field {
  display: block;
  margin-top: 18px;
}

.select-field select,
.text-field input,
.text-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
}

.text-field textarea {
  min-height: 130px;
  resize: vertical;
}

.trust-block {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--positive) 20%, var(--line));
  border-radius: 14px;
  background: var(--positive-soft);
}

.trust-block strong {
  color: var(--positive);
  font-size: 12px;
}

.trust-block p {
  margin-top: 5px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.6;
}

.check-field {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.55;
}

.check-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--action);
}

.impact-list {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: var(--danger-soft);
}

.impact-list p {
  color: var(--ink-2);
  font-size: 11px;
}

.impact-list strong {
  color: var(--danger);
}

.sheet__actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}

.sheet__actions--single .button {
  flex: 1;
}

.sheet .button--primary {
  border-color: var(--action-fill);
  background: var(--action-fill);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 300;
  max-width: min(420px, calc(100vw - 40px));
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  color: #fff;
  background: #17251c;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.prototype-lab {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 500;
  width: min(380px, calc(100vw - 24px));
  color: var(--ink);
}

.prototype-lab details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.prototype-lab summary {
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 720;
  cursor: pointer;
}

.prototype-lab__body {
  display: grid;
  gap: 9px;
  max-height: 70vh;
  padding: 0 14px 14px;
  overflow: auto;
}

.prototype-lab__body label {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}

.prototype-lab select {
  min-height: 38px;
}

.lab-track {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.lab-track__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lab-track__hint {
  color: var(--ink-3);
  font-size: 9px;
}

.lab-track__list {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.lab-track__list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  font-size: 9px;
}

/* --- Matrix/footer ----------------------------------------------------- */

.matrix-network-footer {
  margin-top: 44px;
  padding: 34px var(--gutter);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 72%, var(--canvas));
}

.matrix-network-panel {
  width: min(100%, calc(var(--shell) - 2 * var(--gutter)));
  margin-inline: auto;
}

.matrix-network-card {
  border-color: var(--line) !important;
  background: transparent !important;
}

.matrix-network-card:hover {
  background: var(--surface-hover) !important;
}

.matrix-network-sub {
  color: var(--ink-3) !important;
}

.icp-footer {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  color: var(--ink-3);
  background: color-mix(in srgb, var(--surface) 72%, var(--canvas));
  font-size: 10px;
}

.icp-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* --- Responsive -------------------------------------------------------- */

@media (max-width: 1120px) {
  :root {
    --gutter: clamp(20px, 3vw, 32px);
  }

  .home-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .coordinate-row {
    grid-template-columns: 84px minmax(0, 1fr) 118px;
    column-gap: 14px;
  }

  .coordinate-time strong {
    font-size: 17px;
  }

  .coordinate-copy h3 {
    font-size: 17px;
  }

  .source-line {
    display: none;
  }

  .matrix-network-footer {
    padding-inline: var(--gutter);
  }
}

@media (max-width: 900px) {
  :root {
    --header: 60px;
    --gutter: 16px;
  }

  html {
    scroll-padding-top: calc(var(--header) + 62px);
  }

  body {
    font-size: 14px;
  }

  .site-header {
    height: var(--header);
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .desktop-nav,
  .header-plan {
    display: none;
  }

  .locus-brand {
    font-size: 19px;
  }

  .locus-brand span:nth-of-type(2) {
    font-size: 22px;
  }

  .header-tools {
    gap: 6px;
  }

  .header-matrix {
    min-width: 44px;
    width: 44px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .header-matrix .icon {
    width: 18px;
    height: 18px;
  }

  .detail-screen .site-header,
  .notes-screen .site-header,
  .plan-screen .site-header,
  .sources-screen .site-header,
  .contribution-center-screen .site-header,
  .unavailable-screen .site-header,
  .driftpoint-header {
    display: none;
  }

  .mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 90;
    display: grid;
    height: var(--header);
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--canvas) 91%, transparent);
    backdrop-filter: blur(18px) saturate(1.2);
  }

  .mobile-topbar > strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    font-weight: 720;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-topbar .icon-button {
    border-color: transparent;
    background: transparent;
  }

  .topbar-spacer {
    width: 44px;
    height: 44px;
  }

  .home-screen,
  .notes-screen,
  .plan-screen {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .mobile-nav {
    position: fixed;
    right: 8px;
    bottom: 0;
    left: 8px;
    z-index: 120;
    display: grid;
    min-height: 64px;
    grid-template-columns: repeat(3, 1fr);
    padding: 6px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    border: 1px solid var(--line-strong);
    border-radius: 20px 20px 0 0;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: var(--shadow-sticky);
    backdrop-filter: blur(20px) saturate(1.35);
  }

  .mobile-nav a {
    display: flex;
    min-width: 0;
    min-height: 50px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 14px;
    color: var(--ink-3);
  }

  .mobile-nav a[aria-current="page"] {
    color: var(--action);
    background: var(--action-soft);
  }

  .mobile-nav__icon {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
  }

  .mobile-nav__icon .icon {
    width: 19px;
    height: 19px;
  }

  .mobile-nav__label {
    font-size: 10px;
    font-weight: 680;
  }

  #main {
    padding-bottom: 58px;
  }

  .home-intro {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 10px;
    padding-block: 6px;
    border-radius: 18px;
  }

  .home-intro__mast {
    margin: 0;
  }

  .home-intro__mast .eyebrow {
    margin-bottom: 4px;
    font-size: 9px;
  }

  .home-intro h1 {
    font-size: clamp(24px, 7.2vw, 31px);
    line-height: 1.16;
  }

  .mast-kicker,
  .mast-week {
    font-size: 0.68em;
  }

  .home-intro__statusline {
    display: none;
  }

  .home-intro__status {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-intro__meta {
    display: none;
  }

  .scope-bar {
    flex-direction: row;
    top: calc(var(--header) + 6px);
    min-height: 50px;
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 0;
    padding-block: 5px;
    padding-right: 6px;
    border-radius: 15px;
  }

  .scope-tabs {
    min-width: 0;
    flex: 1;
    overflow-x: auto;
    flex-wrap: nowrap;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .scope-tabs::-webkit-scrollbar {
    display: none;
  }

  .unit-switch {
    position: sticky;
    left: 0;
    z-index: 2;
    flex: 0 0 auto;
    margin-right: 2px;
    padding: 3px;
  }

  .unit-switch a,
  .scope-tabs > a {
    min-width: 44px;
    min-height: 44px;
    padding-inline: 11px;
    font-size: 11px;
  }

  .scope-tools {
    flex: 0 0 auto;
    gap: 0;
  }

  .scope-tools > span {
    display: none;
  }

  .filter-control {
    width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .filter-control .icon {
    width: 17px;
    height: 17px;
  }

  .home-grid {
    margin-top: 0;
  }

  .fixed-field > .section-heading {
    margin-bottom: 6px;
  }

  .data-provenance {
    margin-top: 20px;
    order: 100;
  }

  .data-provenance summary {
    min-height: 46px;
    gap: 8px;
    padding: 8px 12px;
  }

  .data-provenance summary .eyebrow {
    flex: 0 0 auto;
  }

  .data-provenance__lede {
    font-size: 10px;
  }

  .day-gantt,
  .editorial-pulse,
  .rule-picks,
  .conflict-compare {
    display: none;
  }

  .home-grid {
    display: block;
    margin-top: 0;
  }

  .coordinate-field .now-marker {
    display: none;
  }

  .home-context:not(.home-context--empty) {
    display: none;
  }

  .section-heading {
    align-items: center;
    margin-bottom: 10px;
  }

  .section-heading h2 {
    font-family: var(--font-ui);
    font-size: 20px;
    font-weight: 650;
    letter-spacing: 0;
  }

  .section-heading .eyebrow {
    font-size: 9px;
  }

  .section-heading > span {
    font-size: 9px;
  }

  .coordinate-field,
  .flex-list {
    gap: 8px;
  }

  .coordinate-row,
  .flex-list .coordinate-row {
    min-height: 146px;
    grid-template-columns: 62px minmax(0, 1fr);
    grid-template-rows: 26px minmax(0, 1fr) 42px;
    gap: 4px 12px;
    padding: 11px 12px;
    border-radius: 15px;
  }

  .coordinate-row::before {
    top: 10px;
    bottom: 10px;
    width: 3px;
  }

  .coordinate-time,
  .flex-list .coordinate-time {
    grid-column: 1;
    grid-row: 1 / 4;
    justify-content: flex-start;
    padding-top: 5px;
    padding-right: 9px;
  }

  .coordinate-time strong {
    font-size: 15px;
  }

  .coordinate-time span {
    margin-top: 5px;
    font-size: 9px;
  }

  .coordinate-copy,
  .flex-list .coordinate-copy {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    padding: 0;
  }

  .coordinate-row > .access-badge,
  .flex-list .coordinate-row > .access-badge {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: start;
    min-height: 22px;
    padding-inline: 7px;
    font-size: 9px;
  }

  .row-status {
    position: absolute;
    top: 13px;
    right: 12px;
    z-index: 2;
    min-height: 20px;
    max-width: calc(100% - 154px);
    justify-content: flex-end;
    margin: 0;
  }

  .row-status .truth-label,
  .row-status .row-featured,
  .row-status .row-commitment,
  .row-status .row-expired,
  .row-status .row-live {
    font-size: 9px;
  }

  .row-status .src-stamp {
    display: none;
  }

  .coordinate-copy h3,
  .flex-list .coordinate-copy h3 {
    font-size: 16px;
    line-height: 1.33;
    -webkit-line-clamp: 2;
  }

  .place-vector {
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 5px;
    margin-top: 5px;
  }

  .place-vector__line {
    width: 8px;
  }

  .place-vector strong {
    max-width: 100%;
    font-size: 10px;
  }

  .place-vector small {
    display: none;
  }

  .row-meta {
    margin-top: 3px;
  }

  .access-line {
    font-size: 9px;
  }

  .source-line,
  .row-reason {
    display: none;
  }

  .row-primary-action,
  .flex-list .row-primary-action {
    min-width: 104px;
    min-height: 44px;
    grid-column: 2;
    grid-row: 3;
    align-self: end;
    justify-self: start;
    border-radius: 11px;
    font-size: 10px;
  }

  .row-notes-link,
  .flex-list .row-notes-link {
    min-height: 44px;
    grid-column: 2;
    grid-row: 3;
    align-self: end;
    justify-self: end;
    font-size: 9px;
  }

  .now-marker {
    min-height: 28px;
    margin-inline: 8px;
  }

  .ended-field,
  .flex-field,
  .rule-picks,
  .conflict-compare {
    margin-top: 34px;
  }

  .ended-row {
    min-height: 76px;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }

  .ended-row__time {
    font-size: 9px;
  }

  .ended-row__copy h3 {
    font-size: 14px;
  }

  .ended-row__note {
    grid-column: 2;
    min-height: 44px;
    justify-self: start;
  }

  .flex-list {
    grid-template-columns: 1fr;
  }

  .flex-venue-group {
    padding: 10px;
    border-radius: 17px;
  }

  .flex-venue-group__head {
    min-height: 48px;
    align-items: flex-start;
    padding: 2px 2px 10px;
  }

  .flex-venue-group__head h3 {
    font-size: 15px;
  }

  .flex-venue-group__head > span {
    max-width: 128px;
    text-align: right;
  }

  .flex-venue-group__items {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-context__peeks {
    grid-template-columns: 1fr;
  }

  .field-empty {
    padding: 24px 20px;
    border-radius: 17px;
  }

  .field-empty h3 {
    font-family: var(--font-ui);
    font-size: 22px;
    letter-spacing: 0;
  }

  .week-strip {
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .week-strip::-webkit-scrollbar {
    display: none;
  }

  .week-strip__row {
    min-width: 640px;
  }

  .week-anchor {
    grid-template-columns: 1fr;
  }

  .week-day__name {
    font-family: var(--font-ui);
    font-size: 17px;
    font-weight: 650;
  }

  .home-screen--week .home-grid {
    display: block;
  }

  /* Detail */
  .detail-layout {
    display: block;
    padding: 0;
  }

  .detail-content {
    padding: 20px 16px 36px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .detail-title {
    padding-bottom: 20px;
  }

  .detail-title h1 {
    margin-top: 11px;
    font-size: clamp(25px, 7.6vw, 34px);
    line-height: 1.28;
  }

  .detail-title > p {
    font-size: 11px;
  }

  .detail-spine {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    max-height: 184px;
    padding-block: 18px;
  }

  .spine-link {
    display: none;
  }

  .spine-node {
    min-height: 68px;
    padding-top: 15px;
  }

  .spine-node strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .spine-node p {
    font-size: 9px;
    -webkit-line-clamp: 1;
  }

  .access-gate {
    margin-top: 18px;
    padding: 16px;
  }

  .access-gate h2 {
    font-size: 16px;
  }

  .detail-section {
    padding-block: 22px;
  }

  .detail-section h2 {
    font-size: 18px;
  }

  .detail-section p,
  .detail-section li {
    font-size: 13px;
  }

  .reason-section ul {
    grid-template-columns: 1fr;
  }

  .note-preview-list {
    grid-template-columns: 1fr;
  }

  .source-summary,
  .note-section__heading {
    align-items: center;
  }

  .source-summary .button,
  .note-section__heading button {
    min-height: 44px;
    padding-inline: 11px;
    font-size: 10px;
  }

  .desktop-action-rail {
    display: none;
  }

  .mobile-action-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 130;
    display: block;
    padding: 9px 12px;
    padding-bottom: max(9px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-strong);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: 0 -12px 34px rgba(15, 28, 18, 0.12);
    backdrop-filter: blur(20px) saturate(1.35);
  }

  .mobile-action-dock .action-dock {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(160px, 1.25fr);
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .mobile-action-dock .action-dock__copy .eyebrow,
  .mobile-action-dock .action-dock__copy p,
  .mobile-action-dock .action-dock__coordinate {
    display: none;
  }

  .mobile-action-dock .action-dock__copy h2 {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
  }

  .mobile-action-dock .action-dock__buttons {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
    margin: 0;
  }

  .mobile-action-dock .button {
    min-height: 48px;
    padding-inline: 13px;
    font-size: 11px;
  }

  .mobile-action-dock .text-button {
    display: none;
  }

  .detail-main {
    padding-bottom: calc(94px + env(safe-area-inset-bottom));
  }

  [data-locus-relay-next-step] {
    right: 12px !important;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    left: 12px !important;
    max-width: none !important;
  }

  /* Notes / plan */
  .notes-main,
  .plan-main {
    padding-top: 14px;
    padding-bottom: 42px;
  }

  .notes-hero,
  .plan-hero {
    min-height: 150px;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 18px;
    border-radius: 20px;
  }

  .notes-hero h1,
  .plan-hero h1 {
    font-size: 27px;
  }

  .notes-hero__count {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 8px;
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .notes-hero__count strong {
    font-size: 32px;
  }

  .notes-hero__count span,
  .notes-hero__count small {
    margin: 0;
  }

  .notes-layout {
    display: block;
    margin-top: 22px;
  }

  .notes-context {
    position: static;
    margin-top: 18px;
  }

  .notes-stream .section-heading > span {
    display: none;
  }

  .field-note {
    padding: 17px;
  }

  .plan-section {
    margin-top: 28px;
  }

  /* Handoff */
  .driftpoint-shell .mobile-topbar {
    border-color: var(--dp-line);
    background: color-mix(in srgb, var(--dp-bg) 92%, transparent);
  }

  .driftpoint-shell .mobile-topbar > strong {
    color: var(--dp-ink);
  }

  .handoff-main {
    padding: 14px 14px 56px;
  }

  .handoff-width {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .handoff-occurrence,
  .permission-trajectory,
  .handoff-action,
  .handoff-how,
  .handoff-trust {
    grid-column: 1;
    grid-row: auto;
    padding: 19px;
    border-radius: 17px;
  }

  .handoff-action {
    order: -1;
    min-height: 0;
    padding: 24px 20px;
  }

  .handoff-action h2 {
    font-size: 27px;
  }

  .handoff-action > p {
    font-size: 12px;
  }

  .handoff-action__controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .handoff-action__controls .button--primary {
    min-width: 0;
    width: 100%;
  }

  .handoff-how__facts {
    grid-template-columns: 1fr;
  }

  .handoff-trust {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .trust-actions {
    justify-content: flex-start;
  }

  /* Dialog */
  .sheet {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 24px);
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
  }

  .sheet__panel,
  .sheet__panel--compact {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 24px);
    padding: 26px 18px max(22px, env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }

  .sheet__actions {
    position: sticky;
    bottom: calc(-1 * max(22px, env(safe-area-inset-bottom)));
    z-index: 1;
    padding: 12px 0 max(22px, env(safe-area-inset-bottom));
    background: linear-gradient(transparent, var(--surface) 18%);
  }

  .toast {
    right: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    left: 12px;
    max-width: none;
  }

  .detail-screen .toast,
  .driftpoint-shell .toast {
    bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .matrix-network-footer {
    margin-top: 26px;
    padding: 22px 16px calc(92px + env(safe-area-inset-bottom));
  }

  .icp-footer {
    min-height: 56px;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .detail-screen .icp-footer,
  .unavailable-screen .icp-footer,
  .driftpoint-shell .icp-footer {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 560px) {
  .meta-full {
    display: none;
  }

  .meta-short {
    display: inline;
  }

  .scope-tabs > a {
    padding-inline: 9px;
  }

  .row-status .truth-label:not(.truth-label--danger),
  .row-status .row-featured {
    display: none;
  }

  .section-heading > span {
    max-width: 46%;
    text-align: right;
  }

  .home-context__peeks {
    grid-template-columns: 1fr;
  }

  .empty-week-peek__row {
    gap: 2px;
  }

  .change-compare {
    grid-template-columns: 1fr;
  }

  .change-compare b {
    justify-self: center;
    transform: rotate(90deg);
  }

  .source-summary,
  .note-section__heading {
    align-items: flex-start;
  }

  .source-summary > div,
  .note-section__heading > div {
    flex: 1;
  }

  .segmented {
    grid-template-columns: 1fr;
  }

  .sheet__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .sheet__actions .button {
    min-width: 0;
    padding-inline: 10px;
  }

  .mobile-action-dock .action-dock {
    grid-template-columns: minmax(0, 0.62fr) minmax(176px, 1.38fr);
  }

  .mobile-action-dock .action-dock__buttons .button--secondary {
    width: 70px;
    padding: 0 8px;
    overflow: visible;
    font-size: 11px;
  }

  .mobile-action-dock .action-dock__buttons .button--secondary::before {
    content: none;
  }
}

@media (max-width: 370px) {
  :root {
    --gutter: 12px;
  }

  .home-intro {
    padding-inline: 13px;
  }

  .home-intro h1 {
    font-size: 23px;
  }

  .scope-tabs > a,
  .unit-switch a {
    padding-inline: 8px;
  }

  .coordinate-row,
  .flex-list .coordinate-row {
    min-height: 150px;
    grid-template-columns: 56px minmax(0, 1fr);
    gap-inline: 9px;
    padding: 11px;
  }

  .coordinate-time strong {
    font-size: 14px;
  }

  .coordinate-copy h3,
  .flex-list .coordinate-copy h3 {
    font-size: 15px;
  }

  .row-primary-action,
  .flex-list .row-primary-action {
    min-width: 96px;
    padding-inline: 9px;
  }

  .row-notes-link span {
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-action-dock .action-dock {
    grid-template-columns: 1fr;
  }

  .mobile-action-dock .action-dock__copy {
    display: none;
  }

  .mobile-action-dock .action-dock__buttons {
    grid-template-columns: minmax(0, 1fr) 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  :focus-visible {
    outline-color: Highlight;
  }

  .coordinate-row,
  .action-dock,
  .field-note,
  .sheet__panel,
  .mobile-nav {
    border: 1px solid CanvasText;
  }

  .button--primary,
  .row-primary-action {
    border: 2px solid ButtonText;
  }
}

/* ========================================================================== 
   V52 · Campus field ledger
   Date and filters are decision context, not a marketing hero. One compact
   ledger replaces the former gradient banner + floating pill toolbar.
   ========================================================================== */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.home-deck {
  margin-top: 18px;
}

.home-deck__frame {
  overflow: clip;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-top: 3px solid var(--accent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 84%, var(--canvas));
  box-shadow: 0 12px 34px color-mix(in srgb, var(--forest) 5%, transparent);
}

.home-deck .home-intro {
  position: relative;
  display: grid;
  min-height: 70px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 11px 18px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.home-deck .home-intro::before,
.home-deck .home-intro::after {
  display: none;
}

.home-deck .home-intro__mast {
  display: flex;
  min-width: 0;
  align-items: center;
}

.home-deck .home-intro__mast .eyebrow {
  display: flex;
  width: 184px;
  min-height: 34px;
  flex: 0 0 184px;
  align-items: center;
  margin: 0;
  padding-right: 18px;
  border-right: 1px solid var(--line-strong);
  color: var(--place);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.045em;
  line-height: 1.35;
}

.home-deck .home-intro h1 {
  display: block;
  min-width: 0;
  margin: 0 0 0 18px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: inherit;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
}

.mast-calendar {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.mast-calendar .mast-digit,
.mast-range b {
  color: var(--time);
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.mast-calendar__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.15;
}

.mast-calendar__copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 770;
}

.mast-calendar__copy span {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 620;
  white-space: nowrap;
}

.mast-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mast-range i {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 15px;
  font-style: normal;
}

.home-deck .home-intro__statusline {
  display: flex;
  max-width: none;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  text-align: left;
}

.home-deck .home-intro__status {
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--ink);
}

.home-deck .home-intro__status > span {
  display: inline-flex;
  min-width: 66px;
  align-items: baseline;
  gap: 5px;
  padding-inline: 14px;
}

.home-deck .home-intro__status > span + span {
  border-left: 1px solid var(--line-strong);
}

.home-deck .home-intro__status b {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.home-deck .home-intro__status small {
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 680;
}

.home-deck .home-intro__meta {
  display: grid;
  gap: 1px;
  min-width: 122px;
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0;
  line-height: 1.45;
  opacity: 1;
}

.home-deck .home-intro__meta a {
  display: grid;
  width: fit-content;
  min-height: 44px;
  align-content: center;
  gap: 1px;
  color: var(--place);
  font-family: var(--font-ui);
  font-weight: 720;
  text-decoration: none;
}

.home-deck .home-intro__meta a strong {
  color: var(--place);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 720;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--place) 35%, transparent);
  text-underline-offset: 3px;
}

.home-deck .scope-bar {
  position: static;
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 4px 10px;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.home-deck .scope-tabs {
  min-width: 0;
  gap: 2px;
}

.scope-dimension {
  display: flex;
  align-items: center;
}

.scope-dimension--unit {
  margin-right: 8px;
  padding-right: 10px;
  border-right: 1px solid var(--line-strong);
}

.scope-dimension__label {
  margin-right: 7px;
  color: var(--ink-3);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.08em;
}

.scope-dimension__label--range {
  margin-inline: 0 4px;
}

.home-deck .unit-switch {
  gap: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.home-deck .unit-switch a,
.home-deck .scope-tabs > a {
  position: relative;
  display: inline-flex;
  min-width: 48px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--ink-2);
  background: transparent;
  box-shadow: none;
  font-size: 11px;
  font-weight: 680;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.home-deck .scope-tabs > a small {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
}

.home-deck .unit-switch a:hover,
.home-deck .scope-tabs > a:hover {
  color: var(--ink);
  background: var(--surface-hover);
}

.home-deck .unit-switch a[aria-current="page"],
.home-deck .scope-tabs > a[aria-current="page"] {
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.home-deck .unit-switch a:active,
.home-deck .scope-tabs > a:active,
.home-deck .filter-control:active {
  transform: scale(0.98);
}

.home-deck .scope-tools {
  flex: 0 0 auto;
  gap: 0;
}

.home-deck .filter-control {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 14px;
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink-2);
  background: transparent;
  font-size: 10px;
  font-weight: 680;
}

.filter-control__icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}

.filter-control__icon .icon {
  width: 12px;
  height: 12px;
}

.filter-control__short {
  display: none;
}

.unit-label-short {
  display: none;
}

.home-deck .filter-control:hover {
  color: var(--ink);
  background: var(--surface-hover);
}

.home-deck .filter-control[aria-pressed="true"] {
  color: var(--accent-2);
  border-color: var(--line-strong);
  background: transparent;
}

.home-deck .filter-control[aria-pressed="true"] .filter-control__icon {
  color: var(--inverse);
  border-color: var(--accent);
  background: var(--accent);
}

.home-screen .home-grid {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .home-deck {
    margin-top: 8px;
  }

  .home-deck__frame {
    border-top-width: 2px;
    border-radius: 12px;
    box-shadow: none;
  }

  .home-deck .home-intro {
    min-height: 62px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 6px 10px;
  }

  .home-deck .home-intro__mast {
    display: grid;
    gap: 1px;
  }

  .home-deck .home-intro__mast .eyebrow {
    display: block;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 10px;
    line-height: 1.2;
  }

  .home-deck .home-intro h1 {
    margin: 0;
  }

  .mast-calendar {
    gap: 7px;
  }

  .mast-calendar .mast-digit,
  .mast-range b {
    font-size: 31px;
  }

  .mast-calendar__copy {
    gap: 0;
  }

  .mast-calendar__copy strong {
    font-size: 11px;
  }

  .mast-calendar__copy span {
    font-size: 10px;
  }

  .mast-range {
    gap: 3px;
  }

  .mast-range i {
    font-size: 10px;
  }

  .home-deck .home-intro__statusline {
    display: flex;
    gap: 6px;
  }

  .home-deck .home-intro__status > span {
    display: grid;
    min-width: 34px;
    gap: 0;
    justify-items: center;
    padding-inline: 6px;
  }

  .home-deck .home-intro__status b {
    font-size: 18px;
  }

  .home-deck .home-intro__status small {
    font-size: 9px;
    line-height: 1.15;
  }

  .home-deck .home-intro__meta {
    min-width: 0;
    padding-left: 7px;
    font-size: 9px;
    line-height: 1.25;
  }

  .home-deck .scope-bar {
    min-height: 50px;
    gap: 4px;
    padding: 3px 4px;
  }

  .home-deck .scope-tabs {
    min-width: 0;
    flex: 1;
    overflow-x: auto;
    gap: 1px;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .home-deck .scope-tabs::-webkit-scrollbar {
    display: none;
  }

  .scope-dimension__label {
    display: none;
  }

  .scope-dimension--unit {
    position: sticky;
    left: 0;
    z-index: 2;
    flex: 0 0 auto;
    margin-right: 2px;
    padding-right: 3px;
    border-right: 1px solid var(--line-strong);
    background: color-mix(in srgb, var(--surface) 84%, var(--canvas));
  }

  .home-deck .unit-switch a,
  .home-deck .scope-tabs > a {
    min-width: 44px;
    min-height: 44px;
    gap: 3px;
    padding: 0 7px;
    font-size: 11px;
  }

  .home-deck .scope-tabs > a small {
    display: none;
  }

  .home-deck .unit-label-full {
    display: none;
  }

  .home-deck .unit-label-short {
    display: inline;
  }

  .home-deck .filter-control {
    min-width: 64px;
    min-height: 44px;
    justify-content: center;
    gap: 5px;
    padding: 0 6px;
    border-left: 1px solid var(--line-strong);
  }

  .home-deck .filter-control__label {
    display: none;
  }

  .home-deck .filter-control__short {
    display: inline;
    font-size: 10px;
  }

  .home-deck .filter-control__icon {
    width: 19px;
    height: 19px;
    border-radius: 5px;
  }

  .home-screen .home-grid {
    margin-top: 0;
  }
}

@media (max-width: 370px) {
  .home-deck .home-intro {
    padding-inline: 8px;
  }

  .home-deck .home-intro__status > span {
    min-width: 31px;
    padding-inline: 4px;
  }

  .home-deck .home-intro__meta {
    display: none;
  }

  .home-deck .filter-control {
    min-width: 58px;
  }
}

@media (forced-colors: active) {
  .home-deck__frame {
    border: 2px solid CanvasText;
  }

  .home-deck .filter-control[aria-pressed="true"] .filter-control__icon {
    color: HighlightText;
    background: Highlight;
  }
}

/* ========================================================================== 
   V55 · Campus Programme
   The home surface is an editorial programme, not a KPI dashboard. Date,
   time, title and one explicit action carry the composition. No fake covers.
   ========================================================================== */

.home-screen {
  --program-canvas: #f2efe6;
  --program-ink: #11130f;
  --program-muted: #62675f;
  --program-faint: #d8d5ca;
  --program-signal: #c9ff45;
  --program-signal-ink: #14200f;
  --program-surface: #f7f5ee;
  --program-action: #11130f;
  --program-action-ink: #f2efe6;
  min-height: 100vh;
  color: var(--program-ink);
  background: var(--program-canvas);
}

html[data-theme="dark"] .home-screen {
    --program-canvas: #0c0f0c;
    --program-ink: #f1f3ea;
    --program-muted: #9aa097;
    --program-faint: #343a34;
    --program-signal: #c9ff45;
    --program-signal-ink: #14200f;
    --program-surface: #111511;
    --program-action: #c9ff45;
    --program-action-ink: #14200f;
}

.home-screen .site-header {
  color: var(--program-ink);
  border-bottom: 1px solid var(--program-faint);
  background: color-mix(in srgb, var(--program-canvas) 94%, transparent);
  box-shadow: none;
}

.home-screen .site-header__inner {
  max-width: 1280px;
}

.home-screen .desktop-nav a,
.home-screen .header-matrix,
.home-screen .header-plan {
  border-radius: 2px;
}

.home-screen #main {
  padding-bottom: 64px;
}

.home-screen .home-deck {
  max-width: 1280px;
  margin-top: 0;
  padding-top: 12px;
}

.home-screen .home-deck__frame {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-screen .home-deck .home-intro {
  display: grid;
  min-height: 74px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding: 4px 0 9px;
  border-bottom: 2px solid var(--program-ink);
  color: var(--program-ink);
  background: transparent;
}

.home-screen .home-deck .home-intro__mast {
  display: flex;
  min-width: 0;
  align-items: end;
  gap: 24px;
}

.home-screen .home-deck .home-intro__mast .eyebrow {
  order: 2;
  display: block;
  width: auto;
  min-height: 0;
  flex: 0 1 auto;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  color: var(--program-muted);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.home-screen .home-deck .home-intro h1 {
  order: 1;
  margin: 0;
  color: var(--program-ink);
}

.home-screen .mast-calendar {
  gap: 11px;
  align-items: end;
}

.home-screen .mast-calendar .mast-digit,
.home-screen .mast-range b {
  color: var(--program-ink);
  font-family: "Archivo Local", var(--font-display);
  font-size: 64px;
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.78;
}

.home-screen .mast-calendar__copy {
  gap: 1px;
  padding-bottom: 1px;
}

.home-screen .mast-calendar__copy strong {
  color: var(--program-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-screen .mast-calendar__copy span {
  color: var(--program-muted);
  font-size: 11px;
  font-weight: 620;
}

.home-screen .home-deck .home-intro__statusline {
  display: flex;
  align-items: end;
  gap: 18px;
  padding-bottom: 1px;
  color: var(--program-ink);
  text-align: right;
}

.home-screen .home-intro__edition {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--program-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.home-screen .home-intro__edition strong {
  font-weight: 650;
}

.home-screen .home-intro__edition i {
  color: var(--program-muted);
  font-style: normal;
}

.home-screen .home-deck .home-intro__meta {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--program-muted);
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 1.35;
}

.home-screen .home-deck .home-intro__meta a {
  display: flex;
  min-height: 44px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  color: var(--program-muted);
}

.home-screen .home-deck .home-intro__meta a strong {
  color: var(--program-ink);
  font-size: 10px;
  text-decoration: none;
}

.home-screen .home-deck .scope-bar {
  min-height: 48px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--program-faint);
  color: var(--program-ink);
  background: transparent;
}

.home-screen .home-deck .scope-tabs {
  gap: 0;
}

.home-screen .scope-dimension--unit {
  margin-right: 12px;
  padding-right: 12px;
  border-right: 1px solid var(--program-faint);
}

.home-screen .scope-dimension__label {
  color: var(--program-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.home-screen .home-deck .unit-switch a,
.home-screen .home-deck .scope-tabs > a {
  min-width: 54px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 0;
  color: var(--program-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 680;
}

.home-screen .home-deck .scope-tabs > a small {
  color: var(--program-muted);
  font-size: 8px;
}

.home-screen .home-deck .unit-switch a[aria-current="page"],
.home-screen .home-deck .scope-tabs > a[aria-current="page"] {
  color: var(--program-signal-ink);
  background: var(--program-signal);
  box-shadow: none;
}

.home-screen .home-deck .unit-switch a:hover,
.home-screen .home-deck .scope-tabs > a:hover {
  color: var(--program-ink);
  background: color-mix(in srgb, var(--program-ink) 7%, transparent);
}

.home-screen .home-deck .scope-tools {
  align-self: stretch;
}

.home-screen .home-deck .filter-control {
  min-height: 44px;
  align-self: center;
  padding: 0 0 0 15px;
  border: 0;
  border-left: 1px solid var(--program-faint);
  border-radius: 0;
  color: var(--program-muted);
  background: transparent;
  font-size: 10px;
}

.home-screen .filter-control__icon {
  width: 22px;
  height: 22px;
  border-color: var(--program-faint);
  border-radius: 2px;
  color: var(--program-ink);
  background: transparent;
}

.home-screen .home-deck .filter-control[aria-pressed="true"] {
  color: var(--program-ink);
}

.home-screen .home-deck .filter-control[aria-pressed="true"] .filter-control__icon {
  color: var(--program-signal-ink);
  border-color: var(--program-signal);
  background: var(--program-signal);
}

.home-screen .home-grid--program {
  display: block;
  margin-top: 18px;
}

.home-screen .home-grid--program .fixed-field {
  width: 100%;
}

.home-screen .section-heading {
  min-height: 54px;
  align-items: end;
  padding: 0 0 12px;
  border-bottom: 2px solid var(--program-ink);
}

.home-screen .section-heading .eyebrow {
  margin-bottom: 3px;
  color: var(--program-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.home-screen .section-heading h2 {
  color: var(--program-ink);
  font-family: "Archivo Local", var(--font-ui);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.home-screen .section-heading > span {
  padding-bottom: 2px;
  color: var(--program-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.home-screen .coordinate-field,
.home-screen .venue-program__list {
  display: grid;
  gap: 0;
}

.home-screen .program-entry,
.home-screen .exhibition-entry {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 126px minmax(0, 1fr) 154px;
  grid-template-rows: minmax(0, 1fr);
  column-gap: 0;
  padding: 24px 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--program-faint);
  border-radius: 0;
  color: var(--program-ink);
  background: transparent;
  box-shadow: none;
  transition: background 180ms var(--ease);
}

.home-screen .program-entry {
  min-height: 158px;
}

.home-screen .program-entry::before,
.home-screen .exhibition-entry::before {
  top: 24px;
  bottom: 24px;
  left: 0;
  width: 3px;
  border-radius: 0;
}

.home-screen .program-entry:hover,
.home-screen .exhibition-entry:hover {
  z-index: 1;
  border-color: var(--program-faint);
  background: color-mix(in srgb, var(--program-ink) 3%, transparent);
  box-shadow: none;
  transform: none;
}

.home-screen .program-entry .coordinate-row__main,
.home-screen .exhibition-entry .coordinate-row__main {
  border-radius: 0;
}

.home-screen .program-entry .coordinate-row__main:focus-visible,
.home-screen .exhibition-entry .coordinate-row__main:focus-visible {
  outline: 3px solid var(--program-signal);
  outline-offset: -3px;
  border-radius: 0;
}

.home-screen .program-entry .row-cover,
.home-screen .exhibition-entry .row-cover,
.home-screen .program-entry > .access-badge,
.home-screen .exhibition-entry > .access-badge,
.home-screen .program-entry .row-enter,
.home-screen .exhibition-entry .row-enter {
  display: none;
}

.home-screen .program-entry .coordinate-time,
.home-screen .exhibition-entry .coordinate-time {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  justify-content: center;
  padding: 2px 22px 2px 16px;
  border-right: 1px solid var(--program-faint);
  color: var(--program-ink);
  text-align: left;
}

.home-screen .program-entry .coordinate-time strong,
.home-screen .exhibition-entry .coordinate-time strong {
  color: var(--program-ink);
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.home-screen .program-entry .coordinate-time span,
.home-screen .exhibition-entry .coordinate-time span {
  margin-top: 8px;
  color: var(--program-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.home-screen .program-entry .coordinate-time--pending strong,
.home-screen .exhibition-entry .coordinate-time--pending strong {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0;
}

.home-screen .program-entry .coordinate-copy,
.home-screen .exhibition-entry .coordinate-copy {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  padding: 0 30px;
}

.home-screen .program-entry .row-status,
.home-screen .exhibition-entry .row-status {
  position: static;
  min-height: 18px;
  justify-content: flex-start;
  gap: 5px 9px;
  margin: 0 0 7px;
}

.home-screen .row-kind {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  padding-right: 9px;
  border-right: 1px solid var(--program-faint);
  color: var(--program-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.home-screen .program-entry .row-status .truth-label,
.home-screen .program-entry .row-status .row-featured,
.home-screen .program-entry .row-status .row-commitment,
.home-screen .program-entry .row-status .row-expired,
.home-screen .program-entry .row-status .row-live,
.home-screen .exhibition-entry .row-status .truth-label,
.home-screen .exhibition-entry .row-status .row-featured,
.home-screen .exhibition-entry .row-status .row-commitment,
.home-screen .exhibition-entry .row-status .row-expired,
.home-screen .exhibition-entry .row-status .row-live {
  font-size: 10px;
}

.home-screen .program-entry .row-featured {
  padding: 2px 6px;
  color: var(--program-signal-ink);
  background: var(--program-signal);
}

.home-screen .program-entry .src-stamp,
.home-screen .exhibition-entry .src-stamp {
  display: none;
}

.home-screen .program-entry .coordinate-copy h3,
.home-screen .exhibition-entry .coordinate-copy h3 {
  display: block;
  max-width: 860px;
  overflow: visible;
  color: var(--program-ink);
  font-family: var(--font-editorial);
  font-size: clamp(23px, 2vw, 29px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.22;
  transform: translateX(0);
  transition: transform 220ms var(--ease);
  -webkit-line-clamp: unset;
}

.home-screen .program-entry:hover .coordinate-copy h3,
.home-screen .exhibition-entry:hover .coordinate-copy h3 {
  transform: translateX(4px);
}

.home-screen .program-entry .place-vector,
.home-screen .exhibition-entry .place-vector {
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 8px;
  margin-top: 9px;
}

.home-screen .program-entry .place-vector__line,
.home-screen .exhibition-entry .place-vector__line {
  width: 12px;
  background: var(--place);
}

.home-screen .program-entry .place-vector strong,
.home-screen .exhibition-entry .place-vector strong {
  color: var(--program-ink);
  font-size: 12px;
  font-weight: 720;
}

.home-screen .program-entry .place-vector small,
.home-screen .exhibition-entry .place-vector small {
  display: none;
}

.home-screen .program-entry .row-meta,
.home-screen .exhibition-entry .row-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 5px;
}

.home-screen .program-entry .access-line,
.home-screen .exhibition-entry .access-line {
  color: var(--program-muted);
  font-size: 11px;
  line-height: 1.4;
}

.home-screen .program-entry .source-line,
.home-screen .exhibition-entry .source-line {
  display: block;
  color: var(--program-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.home-screen .program-entry__actions {
  position: relative;
  z-index: 4;
  display: flex;
  min-width: 0;
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  align-items: flex-end;
  flex-direction: column;
  gap: 4px;
}

.home-screen .program-entry__actions .row-primary-action {
  position: relative;
  display: inline-flex;
  min-width: 132px;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border: 1px solid var(--program-action);
  border-radius: 2px;
  color: var(--program-action-ink);
  background: var(--program-action);
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
}

.home-screen .program-entry__actions .row-primary-action::after {
  content: "↗";
  margin-left: 14px;
  font-size: 14px;
  line-height: 1;
  transition: transform 180ms var(--ease);
}

.home-screen .program-entry__actions .row-primary-action:hover {
  color: var(--program-action-ink);
  background: var(--program-action);
  transform: none;
}

.home-screen .program-entry__actions .row-primary-action:hover::after {
  transform: translate(2px, -2px);
}

.home-screen .program-entry__actions .row-primary-action--done {
  color: var(--program-ink);
  border-color: var(--program-ink);
  background: transparent;
}

.home-screen .program-entry__actions .row-primary-action--done:hover {
  color: var(--program-ink);
  background: color-mix(in srgb, var(--program-ink) 6%, transparent);
}

.home-screen .program-entry__actions .row-notes-link {
  position: relative;
  display: inline-flex;
  min-width: 88px;
  min-height: 44px;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--program-muted);
  font-size: 10px;
}

.home-screen .now-marker {
  min-height: 25px;
  margin: 0;
  color: var(--program-muted);
  font-family: var(--font-mono);
}

.home-screen .now-marker span {
  background: var(--program-faint);
}

.home-screen .ended-field,
.home-screen .flex-field {
  margin-top: 64px;
}

.home-screen .venue-program {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  gap: 42px;
  padding: 30px 0 0;
  border: 0;
  border-bottom: 1px solid var(--program-faint);
  border-radius: 0;
  background: transparent;
}

.home-screen .venue-program__head {
  display: block;
  min-height: 0;
  padding: 0 0 30px;
}

.home-screen .venue-program__head .eyebrow {
  color: var(--program-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.home-screen .venue-program__head h3 {
  max-width: 12ch;
  margin-top: 10px;
  color: var(--program-ink);
  font-family: var(--font-editorial);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.home-screen .venue-program__head > span {
  display: block;
  margin-top: 14px;
  color: var(--program-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
}

.home-screen .venue-program__list,
.home-screen .flex-venue-group--single .venue-program__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.home-screen .exhibition-entry {
  min-height: 132px;
  grid-template-columns: 92px minmax(0, 1fr) 154px;
  padding: 18px 0;
}

.home-screen .exhibition-entry:first-child {
  border-top: 1px solid var(--program-faint);
}

.home-screen .exhibition-entry::before {
  top: 18px;
  bottom: 18px;
}

.home-screen .exhibition-entry .coordinate-copy {
  padding-inline: 24px;
}

.home-screen .exhibition-entry .coordinate-copy h3 {
  font-size: 20px;
  line-height: 1.28;
}

.home-screen .week-strip {
  margin-top: 14px;
}

.home-screen .week-strip__row {
  gap: 0;
  border-block: 1px solid var(--program-faint);
  background: transparent;
}

.home-screen .week-strip__cell {
  min-height: 58px;
  border-right: 1px solid var(--program-faint);
  border-radius: 0;
  background: transparent;
}

.home-screen .week-strip__cell:last-child {
  border-right: 0;
}

.home-screen .week-strip__link,
.home-screen .week-strip__cell:not(:has(.week-strip__link)) {
  grid-template-columns: auto auto 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}

.home-screen .week-strip__day,
.home-screen .week-strip__date,
.home-screen .week-strip__count {
  color: var(--program-ink);
  font-family: var(--font-mono);
}

.home-screen .week-strip__date {
  font-family: "Archivo Local", var(--font-display);
  font-size: 23px;
}

.home-screen .week-strip__count {
  justify-self: end;
  color: var(--program-muted);
}

.home-screen .week-strip__bar {
  display: none;
}

.home-screen .week-strip__cell--today {
  color: var(--program-signal-ink);
  background: var(--program-signal);
}

.home-screen .week-strip__cell--today .week-strip__day,
.home-screen .week-strip__cell--today .week-strip__date,
.home-screen .week-strip__cell--today .week-strip__count {
  color: var(--program-signal-ink);
}

.home-screen .week-strip__cell--empty {
  opacity: 0.48;
}

.home-screen .week-strip__readout {
  margin-top: 7px;
  color: var(--program-muted);
  font-size: 10px;
}

.home-screen .week-day__head {
  margin-top: 30px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--program-ink);
  color: var(--program-ink);
}

.home-screen .week-day__name {
  font-family: var(--font-editorial);
  font-size: 22px;
  font-weight: 700;
}

.home-screen .week-day__meta,
.home-screen .week-empty-days,
.home-screen .week-multiday {
  color: var(--program-muted);
}

.home-screen .home-context--empty {
  margin-top: 48px;
  padding: 0;
  border: 0;
  background: transparent;
}

.home-screen .data-provenance {
  color: var(--program-muted);
  border-color: var(--program-faint);
  background: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  .home-screen .home-deck__frame {
    animation: programme-in 420ms var(--ease) both;
  }

  .home-screen .program-entry,
  .home-screen .venue-program {
    animation: programme-in 520ms var(--ease) both;
  }

  .home-screen .program-entry:nth-child(2),
  .home-screen .venue-program:nth-child(2) {
    animation-delay: 45ms;
  }

  @keyframes programme-in {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 900px) {
  .home-screen {
    min-height: 100dvh;
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .home-screen #main {
    padding-bottom: 36px;
  }

  .home-screen .site-header {
    min-height: 58px;
  }

  .home-screen .home-deck {
    margin-top: 0;
    padding-top: 0;
  }

  .home-screen .home-deck .home-intro {
    min-height: 54px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 5px 0 7px;
  }

  .home-screen .home-deck .home-intro__mast {
    display: flex;
    align-items: end;
    gap: 10px;
  }

  .home-screen .home-deck .home-intro__mast .eyebrow {
    display: none;
  }

  .home-screen .mast-calendar .mast-digit,
  .home-screen .mast-range b {
    font-size: 43px;
    line-height: 0.8;
  }

  .home-screen .mast-calendar__copy strong,
  .home-screen .mast-calendar__copy span {
    font-size: 9px;
  }

  .home-screen .home-deck .home-intro__statusline {
    gap: 9px;
    padding: 0;
  }

  .home-screen .home-intro__edition {
    display: grid;
    min-height: 42px;
    align-content: center;
    justify-items: end;
    gap: 0;
    font-size: 9px;
    line-height: 1.25;
  }

  .home-screen .home-intro__edition i {
    display: none;
  }

  .home-screen .home-deck .home-intro__meta {
    display: none;
  }

  .home-screen .home-deck .scope-bar {
    min-height: 48px;
  }

  .home-screen .scope-dimension--unit {
    margin-right: 0;
    padding-right: 3px;
    background: var(--program-canvas);
  }

  .home-screen .home-deck .unit-switch a,
  .home-screen .home-deck .scope-tabs > a {
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    font-size: 10px;
  }

  .home-screen .home-deck .filter-control {
    min-width: 62px;
    justify-content: flex-end;
    padding-left: 6px;
  }

  .home-screen .home-deck .filter-control__short {
    font-size: 10px;
  }

  .home-screen .home-grid--program {
    margin-top: 10px;
  }

  .home-screen .section-heading {
    min-height: 42px;
    padding-bottom: 8px;
  }

  .home-screen .section-heading .eyebrow {
    display: none;
  }

  .home-screen .section-heading h2 {
    font-size: 24px;
    line-height: 1;
  }

  .home-screen .section-heading > span {
    max-width: 46%;
    font-size: 9px;
    line-height: 1.35;
    text-align: right;
  }

  .home-screen .program-entry,
  .home-screen .exhibition-entry,
  .home-screen .flex-list .program-entry,
  .home-screen .flex-list .exhibition-entry {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 24px auto 44px;
    row-gap: 5px;
    padding: 10px 0;
    border-radius: 0;
  }

  .home-screen .program-entry::before,
  .home-screen .exhibition-entry::before {
    top: 10px;
    bottom: 10px;
    width: 3px;
  }

  .home-screen .program-entry .coordinate-time,
  .home-screen .exhibition-entry .coordinate-time,
  .home-screen .flex-list .exhibition-entry .coordinate-time {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 90px 0 12px;
    border: 0;
  }

  .home-screen .program-entry .coordinate-time strong,
  .home-screen .exhibition-entry .coordinate-time strong {
    font-size: 15px;
  }

  .home-screen .program-entry .coordinate-time--pending strong,
  .home-screen .exhibition-entry .coordinate-time--pending strong {
    font-size: 12px;
    line-height: 18px;
  }

  .home-screen .program-entry .coordinate-time span,
  .home-screen .exhibition-entry .coordinate-time span {
    margin: 0;
    font-size: 9px;
  }

  .home-screen .program-entry > .access-badge,
  .home-screen .exhibition-entry > .access-badge,
  .home-screen .flex-list .exhibition-entry > .access-badge {
    display: inline-flex;
    min-height: 22px;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    padding: 0 7px;
    border-radius: 2px;
    font-size: 9px;
  }

  .home-screen .program-entry .coordinate-copy,
  .home-screen .exhibition-entry .coordinate-copy,
  .home-screen .flex-list .exhibition-entry .coordinate-copy {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    padding: 0 0 0 12px;
  }

  .home-screen .program-entry .row-status,
  .home-screen .exhibition-entry .row-status {
    position: static;
    min-height: 15px;
    max-width: none;
    justify-content: flex-start;
    margin: 0 0 4px;
  }

  .home-screen .row-kind {
    display: none;
  }

  .home-screen .program-entry .row-status .truth-label,
  .home-screen .program-entry .row-status .row-featured,
  .home-screen .program-entry .row-status .row-commitment,
  .home-screen .program-entry .row-status .row-expired,
  .home-screen .program-entry .row-status .row-live,
  .home-screen .exhibition-entry .row-status .truth-label,
  .home-screen .exhibition-entry .row-status .row-featured,
  .home-screen .exhibition-entry .row-status .row-commitment,
  .home-screen .exhibition-entry .row-status .row-expired,
  .home-screen .exhibition-entry .row-status .row-live {
    font-size: 9px;
  }

  .home-screen .program-entry .coordinate-copy h3,
  .home-screen .exhibition-entry .coordinate-copy h3,
  .home-screen .flex-list .exhibition-entry .coordinate-copy h3 {
    max-width: none;
    font-size: 20px;
    line-height: 1.24;
  }

  .home-screen .program-entry .place-vector,
  .home-screen .exhibition-entry .place-vector {
    margin-top: 5px;
  }

  .home-screen .program-entry .place-vector strong,
  .home-screen .exhibition-entry .place-vector strong {
    font-size: 10px;
  }

  .home-screen .program-entry .row-meta,
  .home-screen .exhibition-entry .row-meta {
    display: none;
  }

  .home-screen .program-entry__actions {
    display: flex;
    min-width: 0;
    width: 100%;
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 8px;
    padding-left: 12px;
  }

  .home-screen .program-entry__actions .row-primary-action {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    min-width: 112px;
    min-height: 44px;
    margin: 0;
    padding-inline: 11px;
    font-size: 10px;
  }

  .home-screen .program-entry__actions .row-primary-action::after {
    margin-left: 10px;
  }

  .home-screen .program-entry__actions .row-notes-link {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    min-width: 76px;
    min-height: 44px;
    align-self: center;
    margin: 0;
    font-size: 9px;
  }

  .home-screen .now-marker {
    min-height: 22px;
    font-size: 9px;
  }

  .home-screen .ended-field,
  .home-screen .flex-field {
    margin-top: 44px;
  }

  .home-screen .venue-program {
    display: block;
    padding-top: 20px;
  }

  .home-screen .venue-program__head {
    display: flex;
    min-height: 56px;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 14px;
  }

  .home-screen .venue-program__head .eyebrow {
    display: none;
  }

  .home-screen .venue-program__head h3 {
    max-width: 17ch;
    margin: 0;
    font-size: 20px;
  }

  .home-screen .venue-program__head > span {
    flex: 0 0 auto;
    margin: 0;
    font-size: 9px;
    text-align: right;
  }

  .home-screen .exhibition-entry,
  .home-screen .flex-list .exhibition-entry {
    padding-block: 10px;
  }

  .home-screen .week-strip {
    margin-top: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .home-screen .week-strip::-webkit-scrollbar {
    display: none;
  }

  .home-screen .week-strip__row {
    min-width: 560px;
  }

  .home-screen .week-strip__cell {
    min-height: 50px;
  }

  .home-screen .week-strip__link,
  .home-screen .week-strip__cell:not(:has(.week-strip__link)) {
    padding: 5px 8px;
  }

  .home-screen .week-strip__date {
    font-size: 20px;
  }

  .home-screen .week-strip__readout {
    display: none;
  }

  .home-screen .week-day__head {
    margin-top: 22px;
  }

  .home-screen .home-context--empty {
    margin-top: 32px;
  }

  .home-screen .mobile-nav {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    min-height: calc(64px + env(safe-area-inset-bottom));
    margin: 0;
    padding: 0 8px env(safe-area-inset-bottom);
    border: 0;
    border-top: 1px solid var(--program-faint);
    border-radius: 0;
    background: color-mix(in srgb, var(--program-canvas) 96%, transparent);
    box-shadow: none;
    backdrop-filter: blur(16px);
  }

  .home-screen .mobile-nav a {
    border-radius: 0;
    color: var(--program-muted);
  }

  .home-screen .mobile-nav a[aria-current="page"] {
    color: var(--program-ink);
    background: transparent;
    box-shadow: inset 0 3px 0 var(--program-signal);
  }
}

@media (max-width: 370px) {
  .home-screen .mast-calendar .mast-digit,
  .home-screen .mast-range b {
    font-size: 39px;
  }

  .home-screen .home-intro__edition {
    font-size: 8px;
  }

  .home-screen .home-deck .filter-control {
    min-width: 58px;
  }

  .home-screen .program-entry .coordinate-copy h3,
  .home-screen .exhibition-entry .coordinate-copy h3 {
    font-size: 18px;
  }
}

@media (forced-colors: active) {
  .home-screen .home-deck__frame {
    border: 0;
  }

  .home-screen .program-entry,
  .home-screen .exhibition-entry,
  .home-screen .venue-program {
    border-color: CanvasText;
  }
}

/* ==================== 受保护详情门禁占位（登录后可见） ====================
   lockedDetailBlock() 生成的锁块：索引免费，地点/参加方式/日历/来源/笔记正文
   登录解锁。占位要可读、可点，但不泄露任何真实值。 */
.locked-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
}

.locked-detail__label {
  flex: 1 1 auto;
  min-width: 160px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.locked-detail__label::before {
  content: "🔒 ";
  opacity: 0.7;
}

.locked-detail__unlock {
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.locked-detail__unlock:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.locked-detail__unlock:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (forced-colors: active) {
  .locked-detail {
    border: 1px dashed CanvasText;
  }

  .locked-detail__unlock {
    border: 1px solid ButtonText;
  }
}
