@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --bg: #0d0d0d;
  --surface: #141414;
  --surface-raised: #1a1a1a;
  --border: #2e2e2e;
  --border-strong: #444;
  --text: #c8c8c8;
  --text-strong: #f2f2f2;
  --dim: #888;
  --green: #4ade80;
  --green-mid: #22c55e;
  --green-pale: #0d1f12;
  --amber: #fbbf24;
  --red: #f87171;
  --red-pale: #261313;
  --radius: 6px;
  --shadow: 0 8px 40px rgba(0, 0, 0, .55);
  --font: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg); color: var(--text); }
body { margin: 0; min-height: 100vh; overflow-x: hidden; font: 14px/1.6 var(--font); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.hidden { display: none !important; }

.boot {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--bg);
}
.boot-mark, .brand-word, .login-brand {
  color: var(--green);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.03em;
}
.boot p { margin: 8px 0 0; color: var(--dim); }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); }
.login-panel { padding: clamp(36px, 8vw, 110px); display: flex; flex-direction: column; justify-content: center; }
.login-panel h1 {
  max-width: 720px;
  margin: 28px 0 18px;
  color: var(--text-strong);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.login-copy { max-width: 600px; margin: 0; color: var(--dim); font-size: 16px; }
.command-copy {
  width: min(560px, 100%);
  margin-top: 32px;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.command-copy code { flex: 1; padding: 14px 16px; color: var(--green); font-size: 14px; }
.command-copy button { padding: 0 18px; border: 0; border-left: 1px solid var(--border); background: none; cursor: pointer; }
.command-copy button:hover { color: var(--green); background: var(--green-pale); }
.microcopy { margin-top: 10px; color: var(--dim); font-size: 12px; }
.login-aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(36px, 6vw, 82px);
  border-left: 1px solid var(--border);
  background: var(--surface);
}
.login-aside blockquote { max-width: 500px; margin: 0; color: var(--text-strong); font-size: 24px; line-height: 1.35; }
.login-aside p { margin: 14px 0 0; color: var(--green); }

.app { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  width: 220px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.brand { padding: 22px 20px 18px; border-bottom: 1px solid var(--border); }
.brand small { display: block; margin-top: 1px; color: var(--dim); font-size: 11px; }
.channel-switch { padding: 16px; border-bottom: 1px solid var(--border); }
.channel-switch label { display: block; margin-bottom: 6px; color: var(--dim); font-size: 11px; font-weight: 600; }
.channel-switch select {
  width: 100%;
  padding: 8px 10px;
  color: var(--text-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.channel-switch span { display: block; margin-top: 7px; color: var(--green); font-size: 11px; text-transform: capitalize; }
nav { padding: 10px 0; }
.nav-item {
  width: 100%;
  padding: 10px 18px;
  border: 0;
  border-left: 2px solid transparent;
  background: none;
  color: #b8b8b8;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.nav-item:hover { color: var(--text-strong); background: rgba(255, 255, 255, .05); }
.nav-item.active { color: var(--green); border-left-color: var(--green); background: var(--green-pale); }
.nav-help { margin-top: 8px; padding-top: 15px; border-top: 1px solid var(--border); color: var(--dim); font-weight: 400; }
.nav-help:hover { color: var(--green); }
.rail-footer { margin-top: auto; padding: 18px; border-top: 1px solid var(--border); }
.rail-footer span { display: block; color: var(--text); }
.rail-footer button { margin-top: 5px; padding: 0; border: 0; background: none; color: var(--dim); cursor: pointer; }
.rail-footer button:hover { color: var(--red); }
.rail-footer small { display: block; margin-top: 20px; color: #5f5f5f; }

.workspace { grid-column: 2; min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 58px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 13, 13, .96);
  backdrop-filter: blur(10px);
}
.connection-state, .top-actions { display: flex; align-items: center; gap: 10px; }
.connection-state > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.topbar b { color: var(--text-strong); font-size: 13px; font-weight: 600; text-transform: capitalize; }
.topbar small, .top-actions span { color: var(--dim); font-size: 11px; }
.top-actions button {
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: none;
  font-size: 12px;
  cursor: pointer;
}
.top-actions button:hover { color: var(--green); border-color: var(--green); }

.view { width: 100%; max-width: 1320px; margin: 0 auto; padding: 34px 36px 70px; animation: reveal .22s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } }
.view-heading { max-width: 780px; margin-bottom: 12px; }
.view-heading h1 { margin: 0; color: var(--text-strong); font-size: clamp(34px, 4vw, 46px); line-height: 1.1; letter-spacing: -.035em; }
.view-heading p { margin: 10px 0 0; color: var(--dim); font-size: 15px; line-height: 1.65; }
.eyebrow-line { display: none; }
.section { padding: 28px 0; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: 0; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section h2 { margin: 0; color: var(--text-strong); font-size: 18px; line-height: 1.35; }
.section-head p { max-width: 650px; margin: 4px 0 0; color: var(--dim); font-size: 13px; }

.notice {
  position: fixed;
  right: 20px;
  top: 70px;
  z-index: 20;
  max-width: 440px;
  padding: 11px 14px;
  color: var(--text-strong);
  border: 1px solid rgba(74, 222, 128, .4);
  border-radius: var(--radius);
  background: #112417;
  box-shadow: var(--shadow);
}
.notice.error { border-color: rgba(248, 113, 113, .45); background: var(--red-pale); }

.grid-2, .grid-3 { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric { min-height: 112px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.metric label { display: block; color: var(--dim); font-size: 11px; font-weight: 600; }
.metric strong { display: block; margin-top: 9px; color: var(--text-strong); font-size: 20px; text-transform: capitalize; }
.metric small { display: block; margin-top: 4px; color: var(--dim); }
.metric .toggle { display: inline-flex; margin-top: 8px; }
.signal-good { color: var(--green) !important; }
.signal-warn { color: var(--amber) !important; }
.signal-danger { color: var(--red) !important; }

.mode-control { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 700px; }
.mode-control button {
  min-height: 90px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}
.mode-control button:hover { border-color: var(--border-strong); }
.mode-control strong { display: block; color: var(--text-strong); font-size: 17px; text-transform: capitalize; }
.mode-control small { display: block; margin-top: 4px; color: var(--dim); }
.mode-control button.selected { color: var(--green); border-color: var(--green); background: var(--green-pale); }
.mode-control button.selected strong { color: var(--green); }
.mode-control button.active-mode.selected { color: var(--red); border-color: var(--red); background: var(--red-pale); }
.mode-control button.active-mode.selected strong { color: var(--red); }

.data-table { width: 100%; border: 1px solid var(--border); border-collapse: collapse; background: var(--surface); }
.data-table th { padding: 10px 12px; color: var(--dim); border-bottom: 1px solid var(--border); background: var(--bg); font-size: 11px; font-weight: 600; text-align: left; }
.data-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #1f1f1f; }
.rule-name { color: var(--text-strong); font-weight: 600; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  color: var(--dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  text-transform: capitalize;
}
.pill.on { color: var(--green); border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .06); }
.pill.observe { color: var(--amber); border-color: rgba(251, 191, 36, .35); }
.pill.action { color: var(--red); border-color: rgba(248, 113, 113, .35); }
.audit-evidence { max-width: 420px; color: var(--dim); font-size: 12px; overflow-wrap: anywhere; }
.empty { padding: 24px; color: var(--dim); border: 1px dashed var(--border); border-radius: var(--radius); text-align: center; }

.toggle { display: inline-flex; align-items: center; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle span { width: 38px; height: 22px; padding: 3px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--bg); transition: .15s; }
.toggle span::after { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--dim); transition: .15s; }
.toggle input:checked + span { border-color: var(--green); background: var(--green-pale); }
.toggle input:checked + span::after { transform: translateX(16px); background: var(--green); }

.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { color: var(--dim); font-size: 11px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--text-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  outline: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); }
.inline-form { display: flex; flex-wrap: wrap; gap: 9px; align-items: flex-end; }
.inline-form .field { flex: 1 1 180px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 13px;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  background: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.button:hover { color: #000; background: var(--green); }
.button:disabled { opacity: .4; cursor: default; }
.button:disabled:hover { color: var(--green); background: none; }
.button.ghost { color: var(--text); border-color: var(--border); }
.button.ghost:hover { color: var(--green); border-color: var(--green); background: none; }
.button.danger { color: var(--red); border-color: var(--red); }
.button.danger:hover { color: #000; background: var(--red); }
.button.small { min-height: 29px; padding: 4px 9px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.tag button { padding: 0; color: var(--dim); border: 0; background: none; cursor: pointer; }
.tag button:hover { color: var(--red); }
.sensitive-phrase {
  display: inline-block;
  transition: filter .15s ease, opacity .15s ease;
}
.sensitive-phrase.is-hidden {
  filter: blur(5px);
  opacity: .72;
  pointer-events: none;
  user-select: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.feature-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.feature { display: flex; align-items: center; justify-content: space-between; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.feature b { font-weight: 600; }

.blocked-workspace { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); gap: 28px; }
.blocked-editor, .preset-library { min-width: 0; }
.phrase-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 13px;
}
.phrase-count { margin: 0; color: var(--dim); font-size: 12px; }
.phrase-privacy { display: inline-flex; align-items: center; gap: 9px; }
.phrase-privacy > span { color: var(--dim); font-size: 11px; font-style: italic; }
.privacy-toggle { min-height: 30px; }
.preset-library h3 { margin: 0 0 4px; color: var(--text-strong); font-size: 15px; }
.preset-library > p { margin: 0 0 12px; color: var(--dim); font-size: 12px; }
.preset-list { display: grid; gap: 8px; }
.preset-card { padding: 13px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.preset-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.preset-card strong { display: block; color: var(--text-strong); font-size: 13px; }
.preset-card p { margin: 3px 0 0; color: var(--dim); font-size: 12px; line-height: 1.45; }
.preset-card small { display: block; margin-top: 7px; color: #666; font-size: 10px; }
.preset-actions { display: flex; gap: 6px; flex-shrink: 0; }
.preset-actions button { min-height: 30px; }

.danger-zone { margin-top: 22px; padding: 18px; border: 1px solid rgba(248, 113, 113, .3); border-radius: var(--radius); background: rgba(248, 113, 113, .025); }
.danger-zone .section-head { margin: 0; align-items: center; }
.danger-zone .section-head > div { min-width: 0; }
.danger-zone .button { flex-shrink: 0; }
.filter-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.operator-panel { max-width: 1200px; margin: 0 auto; padding: 48px 28px; }
.operator-panel pre { max-height: 420px; overflow: auto; padding: 16px; color: var(--green); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); white-space: pre-wrap; overflow-wrap: anywhere; }

dialog { width: min(600px, calc(100vw - 32px)); padding: 0; color: var(--text); border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(2px); }
dialog form { position: relative; padding: 26px; }
dialog h2 { margin: 3px 0 8px; color: var(--text-strong); font-size: 23px; }
dialog p { color: var(--dim); }
.dialog-kicker { margin: 0; color: var(--green); font-size: 12px; font-weight: 600; }
.dialog-close { position: absolute; top: 12px; right: 14px; padding: 4px 8px; color: var(--dim); border: 0; background: none; font-size: 22px; cursor: pointer; }
.dialog-close:hover { color: var(--text-strong); }
.dialog-note { margin: 12px 0 0; font-size: 12px; }
.phrase-preview { max-height: 290px; margin-top: 16px; padding: 10px; overflow: auto; display: flex; flex-wrap: wrap; gap: 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.phrase-preview > .sensitive-phrase { padding: 4px 7px; border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-size: 12px; }
.dialog-privacy { margin-top: 14px; }
.danger-note { padding: 11px 12px; color: var(--text) !important; border-left: 3px solid var(--red); background: var(--red-pale); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }

.tour {
  position: fixed;
  inset: 0;
  z-index: auto;
  pointer-events: none;
}
.tour-scrim {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: auto;
  background: rgba(0, 0, 0, .7);
  transition: opacity .18s ease;
}
.tour-has-spotlight .tour-scrim { opacity: 0; }
.tour-spotlight {
  position: fixed;
  z-index: 54;
  left: var(--focus-left, 50%);
  top: var(--focus-top, 50%);
  width: var(--focus-width, 0);
  height: var(--focus-height, 0);
  pointer-events: none;
  opacity: 0;
  border: 1px solid rgba(74, 222, 128, .9);
  border-radius: calc(var(--radius) + 4px);
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, .7),
    0 0 0 7px rgba(74, 222, 128, .07),
    0 0 28px rgba(74, 222, 128, .12);
  transition:
    left .42s cubic-bezier(.22, .8, .25, 1),
    top .42s cubic-bezier(.22, .8, .25, 1),
    width .42s cubic-bezier(.22, .8, .25, 1),
    height .42s cubic-bezier(.22, .8, .25, 1),
    opacity .18s ease;
}
.tour-spotlight.visible { opacity: 1; }
.tour-card {
  --tour-edge: clamp(20px, 4vw, 58px);
  --tour-width: min(500px, calc(100vw - 40px));
  position: fixed;
  z-index: 70;
  top: 50%;
  right: auto;
  left: calc(100vw - var(--tour-edge) - var(--tour-width));
  width: var(--tour-width);
  padding: 30px 32px 26px;
  pointer-events: auto;
  border: 1px solid rgba(74, 222, 128, .75);
  border-radius: var(--radius);
  background: #181918;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .72);
  transform: translateY(-50%);
  transition:
    left .44s cubic-bezier(.22, .8, .25, 1),
    border-color .22s ease,
    box-shadow .22s ease;
}
.tour-card.tour-card-left {
  left: clamp(240px, 20vw, 330px);
}
.tour-opening .tour-scrim {
  animation: tour-scrim-in .26s ease-out both;
}
.tour-opening .tour-card {
  animation: tour-card-in .38s cubic-bezier(.22, .8, .25, 1) both;
}
.tour-closing .tour-scrim {
  animation: tour-scrim-out .18s ease-in both;
}
.tour-closing .tour-card {
  animation: tour-card-out .18s ease-in both;
}
.tour-card-transitioning {
  border-color: rgba(74, 222, 128, .92);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, .72),
    0 0 24px rgba(74, 222, 128, .08);
}
@keyframes tour-scrim-in {
  from { opacity: 0; }
}
@keyframes tour-scrim-out {
  to { opacity: 0; }
}
@keyframes tour-card-in {
  from {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(calc(-50% + 14px)) scale(.985);
  }
}
@keyframes tour-card-out {
  to {
    opacity: 0;
    filter: blur(2px);
    transform: translateY(calc(-50% + 8px)) scale(.99);
  }
}
.tour-close {
  position: absolute;
  top: 15px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--dim);
  border: 0;
  background: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.tour-close:hover { color: var(--text-strong); }
.tour-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 11px 44px 27px 0;
  color: var(--dim);
  font-size: 11px;
}
.tour-progress {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: #3a3a3a;
}
.tour-progress span {
  display: block;
  width: 16.67%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  box-shadow: 0 0 12px rgba(74, 222, 128, .2);
  transition: width .48s cubic-bezier(.22, .8, .25, 1);
}
.tour-count-changing { animation: tour-count-pop .24s ease-out both; }
.tour-content { will-change: transform, opacity; }
.tour-content-leave-forward > * {
  animation: tour-piece-leave-forward .125s ease-in both;
}
.tour-content-leave-back > * {
  animation: tour-piece-leave-back .125s ease-in both;
}
.tour-content-enter-forward > *,
.tour-content-enter-back > * {
  opacity: 0;
  animation-duration: .3s;
  animation-timing-function: cubic-bezier(.22, .8, .25, 1);
  animation-fill-mode: both;
}
.tour-content-enter-forward > * { animation-name: tour-piece-enter-forward; }
.tour-content-enter-back > * { animation-name: tour-piece-enter-back; }
.tour-content-enter-forward > :nth-child(2),
.tour-content-enter-back > :nth-child(2) { animation-delay: 25ms; }
.tour-content-enter-forward > :nth-child(3),
.tour-content-enter-back > :nth-child(3) { animation-delay: 45ms; }
.tour-content-enter-forward > :nth-child(n+4),
.tour-content-enter-back > :nth-child(n+4) { animation-delay: 65ms; }
@keyframes tour-piece-leave-forward {
  to { opacity: 0; transform: translateX(-12px); }
}
@keyframes tour-piece-leave-back {
  to { opacity: 0; transform: translateX(12px); }
}
@keyframes tour-piece-enter-forward {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes tour-piece-enter-back {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes tour-count-pop {
  50% { color: var(--green); transform: translateY(-1px); }
}
.tour-kicker {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.tour-content h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 29px;
  line-height: 1.18;
  letter-spacing: -.025em;
}
.tour-content > p:not(.tour-kicker):not(.tour-footnote) {
  margin: 13px 0 0;
  color: #c2c2c2;
  font-size: 15px;
  line-height: 1.65;
}
.tour-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 25px;
}
.tour-actions .button { min-height: 41px; padding-inline: 17px; }
.tour-primary { color: #071109; background: var(--green); }
.tour-primary:hover { color: #071109; background: #6ee797; }
.tour-later {
  display: block;
  margin: 13px auto 0;
  padding: 7px 10px;
  color: var(--dim);
  border: 0;
  background: none;
  font-size: 12px;
  cursor: pointer;
}
.tour-later:hover { color: var(--text-strong); }
.tour-footnote {
  margin: 18px 0 0;
  padding-top: 16px;
  color: var(--dim);
  border-top: 1px solid var(--border);
  font-size: 11px;
}
.tour-footnote b { color: var(--green); font-weight: 500; }
.tour-target {
  position: relative;
  z-index: 52 !important;
  pointer-events: none;
  border-radius: var(--radius);
  filter: brightness(1.04);
  transition: filter .24s ease;
}

.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.span-2 { grid-column: span 2; }

@media (max-width: 1050px) {
  .field-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .blocked-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .app { display: block; padding-bottom: 66px; }
  .rail {
    inset: auto 0 0;
    width: auto;
    height: 66px;
    flex-direction: row;
    border: 0;
    border-top: 1px solid var(--border);
    overflow-x: auto;
  }
  .brand, .channel-switch, .rail-footer { display: none; }
  nav { display: flex; padding: 0; }
  .nav-item { min-width: 96px; height: 65px; padding: 9px; border-left: 0; border-bottom: 2px solid transparent; font-size: 11px; text-align: center; }
  .nav-item.active { border-left: 0; border-bottom-color: var(--green); }
  .nav-help { margin-top: 0; padding-top: 9px; border-top: 0; }
  .workspace { grid-column: auto; }
  .topbar { height: 54px; padding: 0 14px; }
  .top-actions span { display: none; }
  .view { padding: 25px 16px 42px; }
  .view-heading h1 { font-size: 34px; }
  .section-head { flex-direction: column; }
  .grid-2, .grid-3, .field-grid, .filter-row, .feature-strip { grid-template-columns: 1fr; }
  .mode-control { grid-template-columns: 1fr; }
  .data-table { display: block; overflow-x: auto; }
  .preset-card-head { flex-direction: column; }
  .tour-card {
    inset: auto auto 78px 12px;
    width: auto;
    max-height: calc(100vh - 104px);
    padding: 24px 22px 20px;
    overflow-y: auto;
    transform: none;
  }
  .tour-card.tour-card-left { left: 12px; }
  @keyframes tour-card-in {
    from { opacity: 0; transform: translateY(8px); }
  }
  .tour-progress-row { margin-bottom: 20px; }
  .tour-card h2 { font-size: 25px; }
  .tour-actions { justify-content: stretch; }
  .tour-actions .button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .tour-card,
  .tour-scrim,
  .tour-spotlight,
  .tour-progress span,
  .tour-content > *,
  .tour-count-changing,
  .tour-target,
  .sensitive-phrase {
    animation: none !important;
    transition: none !important;
  }
}
