:root {
  color-scheme: light;
  --ink-950: #07172c;
  --ink-900: #0a1f3d;
  --ink-800: #193452;
  --ink-700: #344a62;
  --ink-500: #607083;
  --ink-300: #a9b1ba;
  --paper: #f1f0eb;
  --white: #fbfaf6;
  --line: #d4d2ca;
  --line-strong: #b4b2ab;
  --signal: #173dce;
  --signal-soft: #e4e9fa;
  --mint: #9bcbb9;
  --mint-deep: #276653;
  --mint-soft: #e3f0e9;
  --coral: #b64d3e;
  --coral-soft: #f7e5e0;
  --amber: #a67620;
  --amber-soft: #f3ead3;
  --shadow: none;
  --shadow-soft: none;
  --radius-xl: 2px;
  --radius-lg: 2px;
  --radius-md: 2px;
  --radius-sm: 2px;
  --font-display: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --font-body: "Helvetica Neue", "Segoe UI Variable Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-data: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(10, 31, 61, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 42px;
}

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

button {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--signal);
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink-900);
  color: white;
  text-decoration: none;
  transition: transform 160ms ease;
}

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

.app-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
  opacity: 0;
  transition: opacity 240ms ease;
}

.app-shell.is-ready {
  opacity: 1;
}

.sidebar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px 18px 22px;
  overflow-y: auto;
  background:
    linear-gradient(155deg, rgba(86, 111, 242, 0.07), transparent 35%),
    var(--ink-900);
  color: #f8f9ff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 4px 9px 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
}

.brand-mark span {
  position: absolute;
  display: block;
  border: 1.5px solid;
  border-radius: 50%;
}

.brand-mark span:nth-child(1) {
  width: 38px;
  height: 38px;
  color: var(--mint);
}

.brand-mark span:nth-child(2) {
  width: 24px;
  height: 24px;
  color: #8295ff;
}

.brand-mark span:nth-child(3) {
  width: 7px;
  height: 7px;
  border: 0;
  background: white;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.12em;
}

.brand-copy small {
  color: var(--ink-300);
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 7px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--ink-300);
  cursor: pointer;
  text-align: left;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.nav-item:hover {
  color: white;
  transform: translateX(2px);
}

.nav-item.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-item.is-active .nav-icon {
  background: var(--mint);
  color: var(--ink-900);
}

.nav-icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-data);
  font-size: 15px;
}

.sidebar-note {
  display: flex;
  gap: 11px;
  margin: auto 6px 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.privacy-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-top: 5px;
  border: 2px solid var(--ink-900);
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(174, 232, 208, 0.2);
}

.sidebar-note strong {
  font-size: 12px;
  font-weight: 650;
}

.sidebar-note p {
  margin: 4px 0 0;
  color: var(--ink-300);
  font-size: 11px;
  line-height: 1.45;
}

.nav-item--subtle {
  margin-top: 0;
  font-size: 13px;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 86px;
  padding: 16px clamp(24px, 4.5vw, 68px);
  border-bottom: 1px solid rgba(203, 210, 224, 0.72);
  background: rgba(244, 246, 251, 0.88);
  backdrop-filter: blur(18px);
}

.topbar-copy {
  display: grid;
  gap: 5px;
}

.eyebrow {
  margin: 0;
  color: var(--ink-500);
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar-copy strong {
  font-size: 17px;
  font-weight: 680;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-700);
  font-size: 12px;
}

.local-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-deep);
  box-shadow: 0 0 0 3px var(--mint-soft);
}

.avatar-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 13px;
  background: var(--ink-900);
  color: white;
  cursor: pointer;
  font-weight: 700;
}

.mobile-menu {
  display: none;
}

.sidebar-scrim {
  display: none;
}

.visually-hidden {
  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;
}

main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 42px clamp(24px, 4.5vw, 68px) 72px;
}

.page {
  animation: page-in 360ms ease both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.page-heading h1 {
  max-width: 780px;
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(31px, 4vw, 54px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.page-heading p:not(.eyebrow) {
  max-width: 580px;
  margin: 12px 0 0;
  color: var(--ink-500);
  font-size: 15px;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 650;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button--primary {
  background: var(--signal);
  color: white;
  box-shadow: 0 9px 20px rgba(86, 111, 242, 0.22);
}

.button--primary:hover {
  box-shadow: 0 12px 26px rgba(86, 111, 242, 0.29);
}

.button--dark {
  background: var(--ink-900);
  color: white;
}

.button--quiet {
  border-color: var(--line-strong);
  background: white;
  color: var(--ink-800);
}

.button--danger {
  border-color: #ffc7bf;
  background: var(--coral-soft);
  color: #a83b2e;
}

.button--small {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
}

.button--full {
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 20px;
}

.hero-card {
  position: relative;
  min-height: 330px;
  padding: clamp(26px, 4vw, 46px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(86, 111, 242, 0.96), rgba(55, 69, 132, 0.98)),
    var(--signal);
  color: white;
  box-shadow: var(--shadow);
}

.hero-card::after {
  position: absolute;
  right: -60px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(255, 255, 255, 0.035),
    0 0 0 90px rgba(255, 255, 255, 0.025);
  content: "";
}

.hero-card .eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

.hero-card h1,
.hero-card h2 {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 15px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.hero-card p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.hero-card .button {
  position: relative;
  z-index: 1;
  background: white;
  color: var(--ink-900);
  box-shadow: 0 12px 26px rgba(21, 28, 56, 0.18);
}

.lens-card {
  display: grid;
  min-height: 330px;
  place-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.signal-lens {
  position: relative;
  display: grid;
  width: 190px;
  height: 190px;
  place-items: center;
}

.signal-lens::before,
.signal-lens::after {
  position: absolute;
  border: 1px solid;
  border-radius: 50%;
  content: "";
}

.signal-lens::before {
  inset: 0;
  border-color: var(--line-strong);
  background:
    radial-gradient(circle at 36% 32%, rgba(174, 232, 208, 0.82), transparent 22%),
    radial-gradient(circle at 58% 60%, rgba(86, 111, 242, 0.18), transparent 50%);
}

.signal-lens::after {
  inset: 26px;
  border-color: rgba(86, 111, 242, 0.35);
  box-shadow: 0 0 0 18px rgba(86, 111, 242, 0.04);
}

.lens-core {
  position: relative;
  z-index: 1;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink-900);
  color: white;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 700;
}

.lens-caption {
  margin: -2px 0 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

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

.metric-card {
  min-height: 138px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
}

.metric-card span {
  color: var(--ink-500);
  font-size: 12px;
}

.metric-card strong {
  display: block;
  margin-top: 15px;
  font-family: var(--font-data);
  font-size: 31px;
  line-height: 1;
}

.metric-card small {
  display: block;
  margin-top: 10px;
  color: var(--ink-500);
  font-size: 11px;
}

.section {
  margin-top: 34px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.025em;
}

.text-button {
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--signal);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.text-button--danger {
  color: #9d3429;
}

.inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 34px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.empty-symbol {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: white;
  box-shadow:
    0 0 0 10px rgba(86, 111, 242, 0.045),
    0 0 0 20px rgba(86, 111, 242, 0.025);
  color: var(--signal);
  font-family: var(--font-data);
  font-size: 20px;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.empty-state p {
  max-width: 460px;
  margin: 0 auto 20px;
  color: var(--ink-500);
  line-height: 1.6;
}

.card-list {
  display: grid;
  gap: 12px;
}

.event-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.event-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.signal-pill {
  display: inline-grid;
  min-width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 17px;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 800;
}

.signal-pill--weak {
  background: var(--paper);
  color: var(--ink-700);
}

.signal-pill--medium {
  background: var(--amber-soft);
  color: #8c641f;
}

.signal-pill--strong {
  background: var(--mint-soft);
  color: var(--mint-deep);
}

.signal-pill--stop {
  background: var(--coral-soft);
  color: #a33b2f;
}

.event-copy {
  min-width: 0;
}

.event-copy strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-copy p {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.event-meta {
  display: grid;
  gap: 5px;
  color: var(--ink-500);
  font-family: var(--font-data);
  font-size: 10px;
  text-align: right;
}

.event-meta b {
  color: var(--ink-800);
  font-family: var(--font-body);
  font-size: 12px;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.6fr);
  gap: 20px;
  align-items: start;
}

.panel {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.panel--flat {
  box-shadow: none;
}

.panel--dark {
  border-color: transparent;
  background: var(--ink-900);
  color: white;
}

.panel-title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: -0.025em;
}

.form-section + .form-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.form-section h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.form-section > p {
  margin: 0 0 18px;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.6;
}

.boundary-field {
  margin-bottom: 18px;
}

.form-error {
  min-height: 1.5em;
  margin: 12px 0 0 !important;
  color: #9d3429 !important;
  font-weight: 650;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 650;
}

.field small {
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.5;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fbfcff;
  color: var(--ink-900);
  transition:
    border 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.field input,
.field select {
  min-height: 46px;
  padding: 0 13px;
}

.field textarea {
  min-height: 110px;
  padding: 12px 13px;
  line-height: 1.6;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--signal);
  background: white;
  outline: 3px solid #ffffff;
  outline-offset: 1px;
  box-shadow: 0 0 0 5px var(--signal);
}

.field-group {
  display: grid;
  gap: 9px;
}

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

.check-card {
  position: relative;
  display: flex;
  min-height: 74px;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcff;
  cursor: pointer;
}

.check-card:has(input:checked) {
  border-color: rgba(86, 111, 242, 0.55);
  background: var(--signal-soft);
}

.check-card:has(input[data-risk]:checked) {
  border-color: rgba(245, 116, 100, 0.55);
  background: var(--coral-soft);
}

.check-card input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--signal);
}

.check-card span {
  display: grid;
  gap: 4px;
  color: var(--ink-700);
  font-size: 12px;
  line-height: 1.35;
}

.check-card b {
  color: var(--ink-900);
  font-size: 13px;
}

.helper-card {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 20px;
}

.helper-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
}

.helper-card p,
.helper-card li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.65;
}

.helper-card ol {
  display: grid;
  gap: 11px;
  margin: 0;
  padding-left: 18px;
}

.helper-quote {
  padding: 16px;
  border-left: 3px solid var(--mint);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.06);
  color: white !important;
}

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

.person-card {
  position: relative;
  min-height: 230px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
}

.person-card::before {
  position: absolute;
  top: -26px;
  right: -26px;
  width: 100px;
  height: 100px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.person-avatar {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  background: var(--signal-soft);
  color: var(--signal);
  font-family: var(--font-data);
  font-weight: 800;
}

.person-card h3 {
  position: relative;
  margin: 18px 0 4px;
  font-size: 17px;
}

.person-card .person-stage {
  color: var(--ink-500);
  font-size: 11px;
}

.person-card p {
  display: -webkit-box;
  min-height: 40px;
  margin: 15px 0 20px;
  overflow: hidden;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.person-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-500);
  font-family: var(--font-data);
  font-size: 10px;
}

.personal-notes {
  margin-bottom: 16px !important;
  padding: 13px 16px 13px 34px !important;
  border-radius: 12px;
  background: var(--signal-soft);
}

.analysis-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius-xl);
  background: var(--ink-900);
  color: white;
}

.analysis-lens {
  position: relative;
  display: grid;
  width: 180px;
  height: 180px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 24px rgba(255, 255, 255, 0.025),
    inset 0 0 0 48px rgba(255, 255, 255, 0.018);
}

.analysis-lens::after {
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--lens-color, var(--signal));
  box-shadow: 0 0 50px color-mix(in srgb, var(--lens-color, var(--signal)) 45%, transparent);
  content: "";
}

.analysis-lens span {
  position: relative;
  z-index: 1;
  color: var(--ink-900);
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 900;
}

.analysis-copy .eyebrow {
  color: rgba(255, 255, 255, 0.54);
}

.analysis-copy h1 {
  margin: 12px 0 11px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.analysis-copy > p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.confidence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.confidence-row span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-data);
  font-size: 10px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.analysis-panel {
  min-height: 220px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
}

.analysis-panel h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-size: 15px;
}

.analysis-panel h2 span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: var(--signal-soft);
  color: var(--signal);
  font-family: var(--font-data);
  font-size: 10px;
}

.analysis-panel p,
.analysis-panel li {
  color: var(--ink-700);
  font-size: 13px;
  line-height: 1.72;
}

.analysis-panel ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
}

.analysis-panel--wide {
  grid-column: 1 / -1;
}

.response-list {
  display: grid;
  gap: 10px;
}

.response-option {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcff;
}

.response-option--action {
  grid-template-columns: 32px minmax(0, 1fr);
}

.response-option > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 800;
}

.response-option p {
  margin: 4px 0 0;
}

.copy-button {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink-500);
  cursor: pointer;
  font-size: 11px;
}

.boundary-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #ffc9c2;
  border-radius: 14px;
  background: var(--coral-soft);
  color: #8c372d;
}

.boundary-banner strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.boundary-banner p {
  margin: 0;
  color: #9c4a40;
  font-size: 12px;
  line-height: 1.55;
}

.boundary-banner--caution {
  border-color: #e7c472;
  background: var(--amber-soft);
  color: #74531c;
}

.boundary-banner--caution p {
  color: #74531c;
}

.data-warning {
  margin: 0;
  color: var(--ink-700);
  font-size: 13px;
  line-height: 1.75;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
}

.review-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-card h3 {
  margin: 0;
  font-size: 15px;
}

.review-card > p {
  display: -webkit-box;
  min-height: 42px;
  margin: 14px 0;
  overflow: hidden;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.review-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 17px;
  color: var(--ink-700);
  font-size: 11px;
}

.review-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.review-status.is-done i {
  background: var(--mint-deep);
}

.review-form {
  display: grid;
  gap: 15px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.data-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
}

.data-card h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.data-card p {
  margin: 0 0 20px;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.65;
}

.principle-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink-700);
  font-size: 13px;
  line-height: 1.6;
}

.principle-list span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 800;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-700);
  font-size: 10px;
}

.tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

.age-gate {
  width: min(640px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: clamp(28px, 5vw, 52px);
  overflow-y: auto;
  border: 0;
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(174, 232, 208, 0.35), transparent 20rem),
    white;
  color: var(--ink-900);
  box-shadow: 0 40px 100px rgba(10, 15, 31, 0.38);
}

.age-gate::backdrop {
  background: rgba(17, 24, 41, 0.82);
  backdrop-filter: blur(8px);
}

.age-gate h1 {
  margin: 12px 0 17px;
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.age-intro {
  max-width: 520px;
  margin: 0;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.72;
}

.age-principles {
  display: grid;
  gap: 10px;
  margin: 25px 0;
}

.age-principles > div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(244, 246, 251, 0.76);
}

.age-principles span {
  color: var(--signal);
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 800;
}

.age-principles p {
  margin: 0;
  font-size: 12px;
}

.age-check {
  margin: 0 0 17px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-700);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.5;
}

.check-row input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--signal);
}

.microcopy {
  margin: 14px 0 0;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

.age-orbit {
  position: absolute;
  top: 38px;
  right: 38px;
  width: 70px;
  height: 70px;
}

.age-orbit span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.age-orbit span:nth-child(2) {
  inset: 14px;
  border-color: rgba(86, 111, 242, 0.4);
}

.age-orbit span:nth-child(3) {
  inset: 30px;
  border: 0;
  background: var(--signal);
}

.toast {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100% - 32px));
  padding: 13px 16px;
  border-radius: 13px;
  background: var(--ink-900);
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  font-size: 12px;
}

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

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    height: 100dvh;
    width: 250px;
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
    box-shadow: 24px 0 60px rgba(17, 24, 41, 0.24);
  }

  .sidebar-scrim:not([hidden]) {
    position: fixed;
    z-index: 15;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(17, 24, 41, 0.48);
    cursor: pointer;
  }

  body.menu-open {
    overflow: hidden;
  }

  .mobile-menu {
    display: grid;
    width: 44px;
    height: 44px;
    margin-right: 13px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    cursor: pointer;
  }

  .mobile-menu span {
    display: block;
    width: 16px;
    height: 1.5px;
    margin: 2px 0;
    background: var(--ink-900);
  }

  .hero-grid,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .helper-card {
    position: static;
  }

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

@media (max-width: 700px) {
  .topbar {
    min-height: 74px;
    padding: 12px 17px;
  }

  .topbar-copy .eyebrow,
  .local-badge {
    display: none;
  }

  main {
    padding: 28px 17px 56px;
  }

  .page-heading {
    display: grid;
    align-items: start;
  }

  .page-heading h1 {
    font-size: 36px;
  }

  .hero-card,
  .lens-card {
    min-height: 300px;
    border-radius: 24px;
  }

  .metric-grid,
  .analysis-grid,
  .review-grid,
  .data-grid,
  .person-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 110px;
  }

  .form-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .analysis-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .analysis-lens {
    width: 140px;
    height: 140px;
  }

  .analysis-panel--wide {
    grid-column: auto;
  }

  .event-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .event-meta {
    display: none;
  }

  .response-option {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .copy-button {
    grid-column: 2;
    justify-self: start;
  }

  .age-orbit {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Editorial product system
   Derived from the Guizang electronic-magazine language: serif narrative,
   sans-serif controls, mono metadata, hairline rules, and one restrained blue. */
.sidebar {
  padding: 30px 20px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 30%),
    var(--ink-900);
}

.brand {
  padding: 0 8px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.brand-mark span {
  border-width: 1px;
}

.nav-list {
  gap: 0;
  margin-top: 18px;
}

.nav-item {
  min-height: 47px;
  padding: 10px 8px;
  border-left: 2px solid transparent;
  border-radius: 0;
}

.nav-item:hover {
  transform: none;
}

.nav-item.is-active {
  border-left-color: #ffffff;
  background: transparent;
}

.nav-icon,
.nav-item.is-active .nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 11px;
}

.sidebar-note {
  margin-inline: 0;
  padding: 15px 8px;
  border-width: 1px 0;
  border-radius: 0;
  background: transparent;
}

.topbar {
  min-height: 82px;
  border-color: rgba(10, 31, 61, 0.16);
  background: rgba(241, 240, 235, 0.94);
}

.topbar-copy strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.local-badge {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-data);
  letter-spacing: 0.02em;
}

.local-badge.is-online i {
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
}

.avatar-button {
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 17px;
}

main {
  width: min(1240px, 100%);
}

.page {
  animation-duration: 260ms;
}

.page-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ink-900);
}

.page-heading h1 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.eyebrow {
  color: var(--ink-500);
  font-weight: 600;
  letter-spacing: 0.18em;
}

.button,
.button--small,
.copy-button {
  border-radius: 0;
  box-shadow: none;
}

.button--primary {
  background: var(--signal);
  box-shadow: none;
}

.button--primary:hover {
  background: #0e2fae;
  box-shadow: none;
}

.button--quiet {
  background: var(--white);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.7fr);
  gap: 0;
  border: 1px solid var(--ink-900);
}

.hero-card,
.lens-card {
  min-height: 380px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: var(--ink-900);
}

.hero-card::after {
  right: 28px;
  bottom: 28px;
  width: 84px;
  height: 84px;
  border-radius: 0;
  box-shadow: none;
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.18) 49%, rgba(255, 255, 255, 0.18) 51%, transparent 52%),
    linear-gradient(transparent 48%, rgba(255, 255, 255, 0.18) 49%, rgba(255, 255, 255, 0.18) 51%, transparent 52%);
}

.hero-card h1,
.hero-card h2 {
  max-width: 680px;
  margin-block: 18px;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.hero-card .button {
  border-radius: 0;
  box-shadow: none;
}

.lens-card {
  border-left: 1px solid var(--ink-900);
  background: var(--white);
}

.metric-grid {
  gap: 0;
  border: 1px solid var(--line-strong);
  border-width: 0 1px 1px;
}

.metric-card {
  min-height: 150px;
  border: 0;
  border-right: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(251, 250, 246, 0.74);
}

.metric-card:last-child {
  border-right: 0;
}

.metric-card strong {
  font-family: var(--font-display);
  font-size: 39px;
  font-weight: 500;
}

.panel,
.empty-state,
.event-card,
.person-card,
.analysis-panel,
.review-card,
.data-card,
.check-card,
.response-option,
.boundary-banner,
.age-gate,
.age-principles > div,
.personal-notes,
.signal-pill,
.analysis-panel h2 span,
.response-option > span,
.principle-list span,
.tag,
.toast,
.mobile-menu {
  border-radius: 0;
  box-shadow: none;
}

.panel,
.empty-state,
.event-card,
.person-card,
.analysis-panel,
.review-card,
.data-card {
  background: rgba(251, 250, 246, 0.82);
}

.section-title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
}

.section-title h2,
.panel-title,
.helper-card h3,
.data-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
}

.event-card {
  border-width: 0 0 1px;
  background: transparent;
}

.event-card:hover {
  transform: none;
  border-color: var(--ink-900);
  box-shadow: none;
}

.field input,
.field textarea,
.field select {
  border-radius: 0;
  background: var(--white);
}

.choice-grid {
  gap: 0;
  border: 1px solid var(--line);
}

.check-card {
  border-width: 0 1px 1px 0;
  background: var(--white);
}

.check-card:nth-child(2n) {
  border-right: 0;
}

.helper-quote {
  border-radius: 0;
}

.person-card::before {
  border-radius: 0;
  transform: rotate(45deg);
}

.person-avatar {
  border-radius: 0;
}

.analysis-hero {
  border-radius: 0;
  background: var(--ink-900);
}

.analysis-copy h1 {
  font-family: var(--font-display);
  font-weight: 600;
}

.confidence-row span {
  border-radius: 0;
}

.analysis-grid {
  gap: 0;
  border: 1px solid var(--line);
}

.analysis-panel {
  border-width: 0 1px 1px 0;
}

.analysis-panel:nth-child(2n) {
  border-right: 0;
}

.analysis-panel--wide {
  border-right: 0;
}

.age-gate {
  border: 1px solid var(--line-strong);
  background: var(--white);
}

.age-gate h1 {
  font-weight: 600;
  letter-spacing: -0.03em;
}

.age-gate::backdrop {
  background: rgba(7, 23, 44, 0.9);
}

.age-principles {
  gap: 0;
  border: 1px solid var(--line);
}

.age-principles > div {
  border-width: 0 0 1px;
}

.age-principles > div:last-child {
  border-bottom: 0;
}

/* Account + streaming Agent */
.agent-loading {
  min-height: 220px;
  display: grid;
  place-items: center;
  font-family: var(--font-data);
  font-size: 12px;
}

.agent-masthead,
.auth-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 36px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--ink-900);
  background: var(--white);
}

.agent-masthead h1,
.auth-masthead h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.agent-masthead em,
.auth-masthead em {
  color: var(--signal);
  font-family: Georgia, var(--font-display);
  font-weight: 500;
}

.agent-account {
  display: grid;
  min-width: 180px;
  gap: 6px;
  padding-left: 22px;
  border-left: 1px solid var(--line-strong);
}

.agent-account span,
.agent-account small {
  color: var(--ink-500);
  font-family: var(--font-data);
  font-size: 10px;
}

.agent-account strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}

.agent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  border: 1px solid var(--ink-900);
  border-top: 0;
}

.agent-thread {
  min-height: 580px;
  border-right: 1px solid var(--ink-900);
  background: rgba(251, 250, 246, 0.66);
}

.agent-thread-head {
  display: flex;
  min-height: 55px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.agent-messages {
  display: grid;
}

.agent-message {
  padding: 24px clamp(22px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.agent-message--assistant {
  background: var(--white);
}

.agent-message header {
  display: flex;
  justify-content: space-between;
  color: var(--ink-500);
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.agent-message p {
  margin: 18px 0 0;
  white-space: pre-wrap;
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.75;
}

.agent-message--user p {
  max-width: 720px;
  font-family: var(--font-body);
  font-size: 14px;
}

.agent-empty {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 6vw, 78px);
}

.agent-empty h2 {
  margin: 16px 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.agent-empty > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--ink-500);
  line-height: 1.75;
}

.agent-starters {
  display: grid;
  max-width: 700px;
  margin-top: 30px;
  border-top: 1px solid var(--ink-900);
}

.agent-starters button {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-800);
  cursor: pointer;
  text-align: left;
}

.agent-starters button::after {
  float: right;
  color: var(--signal);
  content: "→";
}

.agent-compose {
  position: sticky;
  top: 82px;
  align-self: start;
  min-height: 580px;
  padding: 30px 26px;
  background: var(--paper);
}

.agent-compose h2 {
  margin: 14px 0 24px;
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 500;
  line-height: 1.2;
}

.agent-compose textarea {
  width: 100%;
  min-height: 220px;
  padding: 15px;
  border: 1px solid var(--ink-900);
  border-radius: 0;
  background: var(--white);
  color: var(--ink-900);
  font: 14px/1.7 var(--font-body);
  resize: vertical;
}

.agent-privacy-note {
  margin: 24px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.7;
}

.auth-masthead {
  display: block;
  background: var(--ink-900);
  color: var(--white);
}

.auth-masthead .eyebrow {
  color: rgba(255, 255, 255, 0.65);
}

.auth-masthead h1 {
  max-width: 920px;
}

.auth-masthead > p:last-child {
  max-width: 680px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.75;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--ink-900);
  border-top: 0;
}

.auth-panel {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(28px, 5vw, 58px);
  background: var(--white);
}

.auth-panel + .auth-panel {
  border-left: 1px solid var(--ink-900);
}

.auth-panel--ink {
  background: var(--ink-900);
  color: var(--white);
}

.auth-panel--ink .eyebrow,
.auth-panel--ink .field label,
.auth-panel--ink .field small {
  color: rgba(255, 255, 255, 0.72);
}

.auth-panel h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
}

.editorial-number {
  position: absolute;
  top: 22px;
  right: 24px;
  font: italic 42px/1 Georgia, serif;
  opacity: 0.15;
}

.privacy-spread {
  display: grid;
  grid-template-columns: 0.5fr 1fr 1.3fr;
  gap: 28px;
  padding: 34px;
  border: 1px solid var(--ink-900);
  border-top: 0;
}

.privacy-spread h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.privacy-spread p {
  margin: 0 0 12px;
  color: var(--ink-700);
  line-height: 1.7;
}

.consent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  border: 1px solid var(--ink-900);
  border-top: 0;
  background: var(--white);
}

.consent-layout > section,
.consent-layout > form {
  padding: clamp(28px, 5vw, 58px);
}

.consent-layout > form {
  border-left: 1px solid var(--ink-900);
  background: var(--paper);
}

.consent-layout h2 {
  margin: 14px 0 26px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 500;
  line-height: 1.15;
}

.consent-layout ul {
  display: grid;
  max-width: 760px;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.consent-layout li {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-700);
  line-height: 1.7;
}

.consent-check {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 14px;
}

@media (max-width: 980px) {
  .agent-layout {
    grid-template-columns: 1fr;
  }

  .agent-thread {
    border-right: 0;
    border-bottom: 1px solid var(--ink-900);
  }

  .agent-compose {
    position: static;
    min-height: 0;
  }

  .privacy-spread {
    grid-template-columns: 1fr;
  }

  .consent-layout {
    grid-template-columns: 1fr;
  }

  .consent-layout > form {
    border-top: 1px solid var(--ink-900);
    border-left: 0;
  }
}

@media (max-width: 700px) {
  .hero-grid,
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .lens-card {
    min-height: 310px;
    border-radius: 0;
  }

  .lens-card,
  .auth-panel + .auth-panel {
    border-top: 1px solid var(--ink-900);
    border-left: 0;
  }

  .metric-grid {
    border-top: 1px solid var(--line-strong);
  }

  .metric-card {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .metric-card:last-child {
    border-bottom: 0;
  }

  .agent-masthead {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .agent-masthead h1,
  .auth-masthead h1 {
    font-size: clamp(48px, 15vw, 76px);
  }

  .agent-account {
    padding: 18px 0 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .agent-thread-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .analysis-panel {
    border-right: 0;
  }

  .check-card {
    border-right: 0;
  }
}
