/* VaultDraft (working name) — deep forest, slate canvas, saturated tags
   Mockup only. Practice aid — attorney review required. */

:root {
  --ink: #1E293B;
  --ink-soft: #334155;
  --muted: #64748B;
  --faint: #94A3B8;
  --line: #DCE3EA;
  --line-strong: #C5CDD6;
  --paper: #EDF1F4;
  --paper-2: #F7F9FB;
  --card: #FFFFFF;
  --sidebar: #163832;
  --sidebar-2: #1B4332;
  --green: #1B5E4B;
  --green-2: #40B58A;
  --green-text: #047857;
  --green-soft: #D1FAE5;
  --green-hover: #164E3F;
  --warn: #B45309;
  --warn-bg: #FEF3C7;
  --danger: #BE123C;
  --danger-bg: #FFE4E6;
  --info: #1D4ED8;
  --info-bg: #DBEAFE;
  --ok: #15803D;
  --ok-bg: #DCFCE7;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --gold: #E8C547;
  --stripe-forest: #1B5E4B;
  --stripe-emerald: #059669;
  --stripe-cobalt: #2563EB;
  --stripe-violet: #7C3AED;
  --stripe-indigo: #4338CA;
  --stripe-amber: #D97706;
  --stripe-rose: #E11D48;
  --stripe-slate: #64748B;
  --stripe-terracotta: #C2410C;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 10px;
  --sidebar-w: 232px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, .brand-type {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: 24px; margin: 0 0 4px; line-height: 1.25; font-weight: 650; }
h2 { font-size: 16px; margin: 0 0 6px; }
h3 { font-size: 14.5px; margin: 0 0 6px; }

/* ----- Login ----- */
body.login {
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.login-wrap {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.login-brand {
  padding: 44px 40px;
  background: linear-gradient(180deg, #1B4332 0%, #163832 100%);
  border-right: 0;
  color: #ECFDF5;
}
.login-brand .eyebrow {
  color: #A7F3D0;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}
.login-brand h1 { color: #FFFFFF; font-size: 32px; margin: 14px 0 10px; }
.login-brand p.lede { color: #D1FAE5; font-size: 15px; max-width: 32ch; margin: 0; }
.login-points { list-style: none; padding: 0; margin: 28px 0 0; color: #ECFDF5; font-size: 13.5px; }
.login-points li { padding: 6px 0 6px 18px; position: relative; }
.login-points li::before {
  content: "";
  position: absolute; left: 0; top: 13px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
}
.working-name {
  display: inline-block;
  margin-top: 28px;
  font-size: 11px;
  color: #163832;
  letter-spacing: .04em;
  border: 1px solid #E8C547;
  background: var(--gold);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 650;
}
.login-panel { padding: 44px 40px; background: #fff; }
.login-panel h2 { color: var(--ink); font-size: 22px; font-weight: 650; }
.login-panel .sub { color: var(--muted); margin: 0 0 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}
.field input:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px var(--green-soft); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); }
.btn-brass, .btn-brass:hover { background: var(--green); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--paper); }
.btn-ghost.light { color: var(--ink); border-color: var(--line-strong); }
.btn-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid #F3D4DA; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-block { width: 100%; }
.sso-row { display: grid; gap: 8px; margin: 8px 0 16px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 8px 0 16px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mfa-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 10px;
}
.mfa-box h3 { color: var(--ink); font-size: 16px; }
.mfa-codes { display: flex; gap: 8px; margin: 12px 0; }
.mfa-codes input {
  width: 42px; height: 46px; text-align: center; font-size: 18px;
  background: #fff; border: 1px solid var(--line-strong); color: var(--ink); border-radius: 8px;
}
.mfa-codes input:focus { border-color: var(--green-2); outline: none; box-shadow: 0 0 0 3px var(--green-soft); }
.login-foot { margin-top: 20px; color: var(--muted); font-size: 12px; }
.login-disclaimer { margin-top: 10px; color: var(--muted); font-size: 11.5px; }

@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ----- App chrome ----- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, #1B4332 0%, #163832 100%);
  color: #ECFDF5;
  padding: 20px 12px 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
}
.logo:hover { text-decoration: none; }
.mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(145deg, #F5D76E 0%, #E8C547 58%, #1B5E4B 160%);
  border: 1px solid #F0C14B;
  color: #163832;
  display: grid; place-items: center;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -.02em;
  box-shadow: inset 0 0 0 1px rgba(27, 94, 75, .18);
}
.logo strong { display: block; color: #FFFFFF; font-weight: 650; font-size: 14px; letter-spacing: .01em; }
.logo span { display: block; font-size: 10px; color: #A7F3D0; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; opacity: .85; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  color: #D1FAE5;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; color: #FFFFFF; }
.nav a.active {
  background: rgba(64, 181, 138, 0.22);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: inset 3px 0 0 #34D399;
}
.nav .count {
  background: rgba(255, 255, 255, .1);
  color: #A7F3D0;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .16);
}
.nav a.active .count {
  background: rgba(52, 211, 153, 0.22);
  color: #ECFDF5;
  border-color: #34D399;
}
.nav-label {
  margin: 16px 10px 6px;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(167, 243, 208, .55); font-weight: 600;
}
.sidebar-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: #A7F3D0; }
.sidebar-foot .tenant { color: #FFFFFF; font-weight: 600; margin-bottom: 2px; }

.main { min-width: 0; display: flex; flex-direction: column; background: var(--paper); }
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--muted);
  max-width: 480px;
}
.search input { border: 0; outline: 0; background: transparent; width: 100%; color: var(--ink); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.quiet-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 600;
}
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-info { background: var(--info-bg); color: var(--info); }
.pill-muted { background: #F2F4F7; color: var(--muted); }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: #1B4332; color: #A7F3D0;
  display: grid; place-items: center; font-size: 11px; font-weight: 650;
}

/* Disclaimer banner removed — quiet pill in the top bar instead */

.content { padding: 36px 32px 32px; max-width: 1280px; }
.content.wide { max-width: 1400px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-head p { margin: 0; color: var(--muted); max-width: 62ch; font-size: 13.5px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stat .k { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.stat .v { font-family: var(--sans); font-size: 28px; font-weight: 650; line-height: 1.1; margin: 8px 0 4px; letter-spacing: -0.03em; }
.stat .s { font-size: 12.5px; color: var(--muted); }
.split { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; }
.split-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card h2, .card h3 { padding: 0; }
.card-h {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.card-h h2, .card-h h3 { margin: 0; font-size: 15px; }
.card-b { padding: 8px 18px 16px; }
.row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.row:last-child { border-bottom: 0; }
.row .meta, .meta { color: var(--muted); font-size: 12px; }
.list-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item strong { font-weight: 600; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: var(--paper-2); }
.mono { font-family: var(--mono); font-size: 12px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0; }
.filters select, .filters input, .field select, .field textarea {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--ink);
}
.seg { display: inline-flex; background: #E8EEF2; border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.seg button, .seg a {
  border: 0; background: transparent; padding: 6px 11px; border-radius: 6px;
  color: var(--ink-soft); font-weight: 550; font-size: 13px; cursor: pointer; text-decoration: none;
}
.seg button.on, .seg a.on {
  background: #1B5E4B;
  color: #fff;
  box-shadow: none;
  font-weight: 600;
}
.seg[role="tablist"] button.on, .seg[role="tablist"] a.on {
  background: #fff;
  color: #163832;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), inset 0 -2px 0 #34D399;
  font-weight: 650;
}

.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 12px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none;
  color: inherit;
}
a.form-card:hover { border-color: #6EE7B7; text-decoration: none; }
.form-card, .note-card {
  position: relative;
  overflow: hidden;
}
.form-card::before, .note-card::before, .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--stripe, var(--stripe-forest));
  pointer-events: none;
}
.accent-forest  { --stripe: var(--stripe-forest); }
.accent-emerald { --stripe: var(--stripe-emerald); }
.accent-cobalt  { --stripe: var(--stripe-cobalt); }
.accent-violet  { --stripe: var(--stripe-violet); }
.accent-indigo  { --stripe: var(--stripe-indigo); }
.accent-amber   { --stripe: var(--stripe-amber); }
.accent-rose    { --stripe: var(--stripe-rose); }
.accent-slate   { --stripe: var(--stripe-slate); }
.accent-terracotta { --stripe: var(--stripe-terracotta); }
.note-card[data-area="Entity"] { --stripe: var(--stripe-forest); }
.note-card[data-area="Estates"] { --stripe: var(--stripe-indigo); }
.note-card[data-area="Probate"] { --stripe: var(--stripe-violet); }
.note-card[data-area="Real estate"] { --stripe: var(--stripe-cobalt); }
.note-card[data-area="M&A"] { --stripe: var(--stripe-amber); }
.note-card[data-area="Dissolution"] { --stripe: var(--stripe-violet); }
.note-card[data-area="Foreign qualification"] { --stripe: var(--stripe-cobalt); }
.note-card[data-area="Trusts"] { --stripe: var(--stripe-violet); }
.form-card h3 { font-size: 15px; margin: 0; font-weight: 600; line-height: 1.3; }
.form-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tag chips — saturated, readable color families */
.tags { display: flex; flex-wrap: wrap; gap: 5px 6px; align-items: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  height: 22px;
  border-radius: 999px;
  padding: 0 8px 0 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
  vertical-align: middle;
}
.chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
  opacity: .85;
}
.chip-conf {
  font-style: normal;
  font-weight: 500;
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0;
  opacity: .72;
  margin-left: 1px;
}
.chip-state  { background: #DBEAFE; color: #1D4ED8; border-color: #93C5FD; }
.chip-doc    { background: #D1FAE5; color: #047857; border-color: #6EE7B7; }
.chip-entity { background: #E2E8F0; color: #1E293B; border-color: #CBD5E1; }
.chip-tax    { background: #EDE9FE; color: #6D28D9; border-color: #C4B5FD; }
.chip-mgmt   { background: #E0E7FF; color: #3730A3; border-color: #A5B4FC; }
.chip-kit    { background: #FEF3C7; color: #B45309; border-color: #FCD34D; }
.chip-status-approved  { background: #DCFCE7; color: #15803D; border-color: #86EFAC; }
.chip-status-reviewed  { background: #FEF3C7; color: #B45309; border-color: #FCD34D; }
.chip-status-draft     { background: #F1F5F9; color: #475569; border-color: #CBD5E1; }
.chip-status-retired   { background: #F1F5F9; color: #64748B; border-color: #CBD5E1; }
.chip-hidden, .chip-status-hidden, .chip-estates {
  background: #FFE4E6; color: #BE123C; border-color: #FECDD3;
}
.chip-quarantine {
  background: #FFEDD5; color: #C2410C; border-color: #FDBA74;
}
.chip-module {
  background: #F1F5F9;
  color: #475569;
  border-color: #CBD5E1;
}
.chip-module::before { opacity: .4; }
.chip-verify { background: #FEF3C7; color: #B45309; border-color: #FCD34D; }

td .tags { max-width: 460px; }
.file-with-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.file-with-tags strong { font-weight: 600; }

/* Deal kits */
.kits { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
.kit-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 72px; }
.kit-nav button {
  width: 100%; text-align: left; background: transparent; border: 0;
  border-bottom: 1px solid var(--line); padding: 11px 14px; cursor: pointer; color: var(--ink);
}
.kit-nav button:hover { background: var(--paper-2); }
.kit-nav button.on { background: #ECFDF5; color: #163832; font-weight: 600; box-shadow: inset 3px 0 0 #34D399; }
.kit-nav button small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.kit-nav button.on small { color: var(--green-text); opacity: .8; }
.kit-pane { display: none; }
.kit-pane.on { display: block; }
.check { list-style: none; padding: 0; margin: 0; }
.check li {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.check li:last-child { border-bottom: 0; }
.box {
  width: 16px; height: 16px; border: 1.5px solid var(--line-strong); border-radius: 4px; margin-top: 3px; background: #fff;
}
.box.done { background: var(--green); border-color: var(--green); }
.risk { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 16px; }
.risk h3 { margin-bottom: 4px; }
.risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.risk-item { background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.risk-item h4 { margin: 0 0 4px; font-size: 13.5px; font-family: var(--sans); font-weight: 650; }
.risk-item p { margin: 0; font-size: 13px; color: var(--ink-soft); }

/* Upload */
.upload-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 16px; }
.drop {
  border: 1px dashed var(--line-strong);
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  text-align: center;
  color: var(--muted);
}
.drop strong { display: inline; color: var(--ink); font-size: 14.5px; }
.drop .file-with-tags { justify-content: center; }
.drop .tags { justify-content: center; }
.steps { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 8px; }
.step { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: 0 0 auto; margin-top: 5px; }
.dot.pending { background: var(--line-strong); }
.dot.run { background: var(--green-2); }
.redact {
  background: #1D242B; color: #E4E7EC; border-radius: 8px; padding: 12px 14px;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.6;
  max-height: 120px; overflow: auto; text-align: left;
}
.redact .hi { background: #3B2A16; color: #F6E7C8; padding: 0 3px; border-radius: 3px; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.meta-cell { background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.meta-cell label { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 4px; }
.meta-cell .val { font-weight: 600; }
.conf { font-size: 12px; color: var(--green-text); font-weight: 600; }

/* Live import guardrail — amber / terracotta */
.guardrail {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-left: 3px solid #C2410C;
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.card-source {
  position: relative;
  overflow: hidden;
  box-shadow: inset 3px 0 0 #C2410C, var(--shadow);
}
.card-ai {
  position: relative;
  overflow: hidden;
  box-shadow: inset 3px 0 0 #1B5E4B, var(--shadow);
}
.card-ai .card-h {
  background: linear-gradient(90deg, #ECFDF5 0%, #EFF6FF 100%);
  box-shadow: inset 0 -2px 0 #34D399;
}
.card-ai .conf { color: #1D4ED8; }
.guardrail .import-label { font-weight: 650; font-size: 13.5px; color: var(--ink); }
.guardrail .import-label span { font-weight: 500; color: var(--muted); margin-left: 8px; font-size: 13px; }
.import-toggle-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Admin */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.enc { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.enc:last-child { border-bottom: 0; }
.toggle { width: 36px; height: 20px; background: var(--green); border-radius: 999px; position: relative; border: 0; cursor: pointer; flex: 0 0 auto; padding: 0; }
.toggle::after { content: ""; width: 16px; height: 16px; background: white; border-radius: 50%; position: absolute; top: 2px; right: 2px; }
.toggle.off { background: #D0D5DD; }
.toggle.off::after { right: auto; left: 2px; }

/* State notes */
.note-grid, .outline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.note-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px 10px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
}
.note-card h3 {
  font-size: 13.5px;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-card p.takeaway {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 22px;
}
.filter-row .filter-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 4px;
}
.filter-row .filter-label:first-child { margin-left: 0; }

.clause { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; background: #fff; }
.clause header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.clause p { margin: 8px 0 0; color: var(--ink-soft); font-size: 13.5px; }

/* Gallery index */
body.gallery { background: var(--paper); }
.gallery-hero { max-width: 1100px; margin: 0 auto; padding: 56px 24px 16px; }
.gallery-hero .eyebrow { color: var(--green-text); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; font-weight: 600; }
.gallery-grid {
  max-width: 1100px; margin: 0 auto 80px; padding: 0 24px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.g-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: block;
}
.g-card:hover { border-color: #6EE7B7; text-decoration: none; }
.g-card .path { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 10px; word-break: break-all; }
.note { max-width: 1100px; margin: 0 auto 24px; padding: 0 24px; color: var(--muted); font-size: 13.5px; }

button:disabled { opacity: .55; cursor: not-allowed; }
[hidden] { display: none !important; }

@media (max-width: 1100px) {
  .note-grid, .outline-grid, .form-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .stats, .split, .split-3, .upload-grid, .kits, .admin-grid, .risk-grid, .gallery-grid, .meta-grid,
  .note-grid, .outline-grid, .form-grid { grid-template-columns: 1fr; }
}

/* Live-site banner and phone-friendly gallery */
.mockup-banner {
  background: #163832;
  color: #ECFDF5;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
  position: sticky;
  top: 0;
  z-index: 200;
}
.mockup-banner a {
  color: #A7F3D0;
  font-weight: 600;
  margin-left: 0.35em;
  white-space: nowrap;
}
.mockup-banner a:hover { color: #fff; }

body.login {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
body.login .mockup-banner { width: 100%; flex: none; }
body.login .login-wrap { margin: auto; }

@media (max-width: 980px) {
  .gallery-hero { padding: 28px 16px 12px; }
  .gallery-hero h1 { font-size: 26px; }
  .gallery-grid { padding: 0 16px; margin-bottom: 48px; gap: 12px; }
  .note { padding: 0 16px; }
  .g-card { padding: 16px; }
  body.login { padding: 0 0 24px; }
  body.login .login-wrap { margin: 16px; width: auto; }
  .login-brand, .login-panel { padding: 28px 22px; }
}

@media (max-width: 640px) {
  html { -webkit-text-size-adjust: 100%; }
  .gallery-hero p { font-size: 15px !important; }
}
