:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --teal: #0f7e8c;
  --teal-2: #11a5b8;
  --bg: #f4f6fa;
  --card: #ffffff;
  --line: #e2e8f0;
  --ink: #1a2433;
  --muted: #64748b;
  --gold: #c9a227;
  --green: #15803d;
  --amber: #b45309;
  --red: #b91c1c;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .07), 0 6px 18px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header */
header.top {
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  color: #fff; padding: 0 24px; height: 64px;
  display: flex; align-items: center; gap: 18px;
  box-shadow: var(--shadow); position: sticky; top: 0; z-index: 20;
}
header.top .brand { font-weight: 700; font-size: 18px; letter-spacing: .2px; display: flex; align-items: center; gap: 10px; }
header.top .brand .dot { flex: 0 0 50px; width: 50px; height: 50px; background: #fff url("/static/logo-icon.png") center/86% no-repeat; border-radius: 10px; display: inline-block; }
header.top .brand { display: inline-flex; align-items: center; gap: 11px; }
header.top nav { display: flex; gap: 6px; margin-left: 14px; }
header.top nav a {
  color: #cdd9ec; padding: 8px 14px; border-radius: 8px; font-weight: 500;
}
header.top nav a.active, header.top nav a:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
header.top .spacer { flex: 1; }
header.top .cta {
  background: var(--teal); color: #fff; padding: 9px 16px; border-radius: 8px; font-weight: 600;
}
header.top .cta:hover { background: var(--teal-2); text-decoration: none; }

.langtoggle { display: inline-flex; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; overflow: hidden; margin-right: 4px; }
.langtoggle button {
  background: transparent; color: #cdd9ec; border: none; padding: 7px 12px;
  font-weight: 700; font-size: 13px; cursor: pointer; letter-spacing: .3px;
}
.langtoggle button:hover { background: rgba(255,255,255,.1); color: #fff; }
.langtoggle button.active { background: var(--teal); color: #fff; }

main { max-width: 1180px; margin: 0 auto; padding: 26px 28px 60px; }
h1 { font-size: 24px; margin: 6px 0 2px; }
h2 { font-size: 17px; margin: 0 0 14px; }
.sub { color: var(--muted); margin: 0 0 22px; }

.disclaimer {
  background: #fff8e6; border: 1px solid #f3e2a8; color: #7a5b00;
  border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 20px;
}

/* stat cards */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .n { font-size: 28px; font-weight: 700; color: var(--navy); }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 2px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 22px; }
.card .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

/* table */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: #fafcff; }
.empty { text-align: center; color: var(--muted); padding: 34px; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.intake { background: #eef2ff; color: #3730a3; }
.badge.forms_generated { background: #e0f2fe; color: #075985; }
.badge.review { background: #fef3c7; color: #92400e; }
.badge.filed { background: #ddeaff; color: #1e40af; }
.badge.approved { background: #dcfce7; color: #166534; }
.badge.closed { background: #f1f5f9; color: #475569; }
.pill { background: #eef6f7; color: var(--teal); border: 1px solid #cfe7ea; padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; margin: 2px 3px 2px 0; display: inline-block; }

/* alerts */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; margin-bottom: 10px; font-size: 14px; }
.alert.warning { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; }
.alert.info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; }
.alert .x { margin-left: auto; cursor: pointer; opacity: .6; font-weight: 700; }
.alert .x:hover { opacity: 1; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 14px; }
.btn:hover { border-color: var(--teal); color: var(--teal); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-2); color: #fff; }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-2); color: #fff; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* case-type selector */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.type {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 18px; cursor: pointer; transition: .15s; box-shadow: var(--shadow);
}
.type:hover { border-color: var(--teal); transform: translateY(-2px); }
.type.sel { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,126,140,.15); }
.type .ico { width: 38px; height: 38px; border-radius: 9px; background: #e9f4f5; color: var(--teal); display: grid; place-items: center; font-size: 20px; margin-bottom: 10px; }
.type .name { font-weight: 700; margin-bottom: 4px; }
.type .desc { color: var(--muted); font-size: 13px; min-height: 36px; }
.type .forms { margin-top: 10px; }

/* form grid */
.formgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: span 6; }
.field.half { grid-column: span 3; }
.field.third { grid-column: span 2; }
.field.sixth { grid-column: span 1; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy-2); }
.field input, .field select {
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,126,140,.12); }
.field.check { flex-direction: row; align-items: center; gap: 8px; }
.field.check input { width: 16px; height: 16px; }
.req { color: var(--red); }
.section-title { font-size: 15px; font-weight: 700; color: var(--navy); margin: 22px 0 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.section-title:first-of-type { border-top: none; padding-top: 0; }

.steps { display: flex; gap: 8px; margin-bottom: 22px; }
.step { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 13px; }
.step .num { width: 24px; height: 24px; border-radius: 50%; background: #e2e8f0; color: var(--muted); display: grid; place-items: center; font-size: 12px; }
.step.active { color: var(--navy); }
.step.active .num { background: var(--teal); color: #fff; }
.step .arrow { color: var(--line); }

.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.hidden { display: none !important; }

.result-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.result-row .fmeta { flex: 1; }
.result-row .fform { font-weight: 700; }
.result-row .fnote { color: var(--muted); font-size: 13px; }
.tag-ok { color: var(--green); font-weight: 600; font-size: 13px; }
.tag-warn { color: var(--amber); font-weight: 600; font-size: 13px; }
.toast { position: fixed; bottom: 22px; right: 22px; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow); z-index: 50; }
/* ===== landing / marketing page ===== */
body.landing { background: #fff; }
.noattorney-band { background: #f4f6fa; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.5; text-align: center; padding: 9px 20px; }
.auth-noattorney { text-align: center; color: var(--muted); font-size: 11.5px; line-height: 1.5; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.btn.lg { padding: 13px 26px; font-size: 16px; border-radius: 10px; }
.btn.ghost.light { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.btn.ghost.light:hover { background: rgba(255,255,255,.14); color: #fff; }

.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 45%, var(--teal) 130%); color: #fff; padding: 78px 24px 86px; text-align: center; }
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 16px; letter-spacing: -.5px; }
.hero-sub { font-size: 19px; color: #d6e2f2; margin: 0 auto 30px; max-width: 640px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.landing-main { max-width: 1080px; margin: 0 auto; padding: 8px 24px 50px; }
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: -46px auto 60px; position: relative; }
.prop { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; box-shadow: var(--shadow); text-align: center; }
.prop-ico { font-size: 34px; margin-bottom: 8px; }
.prop h3 { margin: 6px 0 8px; font-size: 20px; color: var(--navy); }
.prop p { color: var(--muted); margin: 0; font-size: 15px; }

.how { text-align: center; margin-bottom: 56px; }
.how h2 { font-size: 28px; color: var(--navy); margin-bottom: 30px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step3 { text-align: center; padding: 0 10px; }
.step3-n { width: 48px; height: 48px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; font-size: 20px; display: grid; place-items: center; margin: 0 auto 14px; }
.step3 h3 { margin: 0 0 6px; color: var(--navy); font-size: 18px; }
.step3 p { color: var(--muted); margin: 0; font-size: 15px; }

.attorney-callout { display: flex; align-items: center; gap: 20px; background: #fbf7ea; border: 1px solid #f0e3b8; border-radius: 16px; padding: 26px 30px; margin-bottom: 56px; }
.attorney-callout .ac-ico { font-size: 42px; }
.attorney-callout h3 { margin: 0 0 6px; color: var(--navy); font-size: 20px; }
.attorney-callout p { margin: 0; color: #6b5a2b; }

/* compact in-card upsell variant (client portal, right before payment) */
.attorney-callout.upsell { padding: 14px 16px; gap: 14px; margin: 12px 0; align-items: flex-start; }
.attorney-callout.upsell .ac-ico { font-size: 28px; line-height: 1.2; }
.attorney-callout.upsell h3 { font-size: 16px; margin-bottom: 3px; }
.attorney-callout.upsell p { font-size: 13.5px; margin-bottom: 10px; }
.attorney-callout.upsell .ac-body { flex: 1; }

.final-cta { text-align: center; background: linear-gradient(135deg, var(--teal), var(--navy-2)); color: #fff; border-radius: 18px; padding: 48px 24px; margin-bottom: 28px; }
.final-cta h2 { font-size: 28px; margin: 0 0 8px; }
.final-cta p { color: #dff0f2; margin: 0 0 22px; font-size: 17px; }
.landing-disclaimer { text-align: center; color: var(--muted); font-size: 12.5px; max-width: 760px; margin: 0 auto; padding-bottom: 20px; }

@media (max-width: 820px) {
  .hero h1 { font-size: 30px; }
  .props, .steps3 { grid-template-columns: 1fr; }
  .props { margin-top: 30px; }
  .attorney-callout { flex-direction: column; text-align: center; }
}

/* auth page */
.auth-body { background: linear-gradient(135deg, var(--navy), var(--teal)); min-height: 100vh; margin: 0; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.3); padding: 22px 30px 34px; width: 100%; max-width: 420px; display: flex; flex-direction: column; }
.auth-brand { font-weight: 800; font-size: 19px; color: var(--navy); display: flex; align-items: center; gap: 9px; }
.auth-brand .dot { width: 12px; height: 12px; border-radius: 3px; background: var(--teal); }
.auth-logo { display: block; width: 210px; max-width: 72%; height: auto; margin: 2px auto 6px; }
.auth-tagline { color: var(--muted); font-size: 14px; margin: 4px 0 22px; text-align: center; }
.auth-tabs { display: flex; gap: 6px; background: #f1f5f9; border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.auth-tabs button { flex: 1; border: none; background: transparent; padding: 9px; border-radius: 8px; font-weight: 700; color: var(--muted); cursor: pointer; }
.auth-tabs button.active { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.auth-err { color: var(--red); font-size: 13px; min-height: 18px; margin: 6px 0; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; }
.auth-hint { text-align: center; color: var(--muted); font-size: 12px; margin-top: 14px; }
.auth-card .field { margin-bottom: 12px; }
.auth-card .field input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.langtoggle.auth-lang { align-self: flex-end; margin-bottom: 14px; border-color: var(--line); }
.langtoggle.auth-lang button { color: var(--muted); }
.langtoggle.auth-lang button.active { background: var(--teal); color: #fff; }

/* pricing card */
.pricebox { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.prow { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; font-size: 14px; }
.prow .pv { font-weight: 700; color: var(--navy); }
.prow .pnote { flex-basis: 100%; color: var(--muted); font-size: 12px; margin-top: 2px; }
.prow.total { border-top: 2px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 16px; }
.prow.total .pv { color: var(--teal); font-size: 18px; }
.prow.attorney { color: var(--gold); font-weight: 600; }
.prow.attorney .pv { color: var(--gold); }
.pdisc { color: var(--muted); font-size: 11.5px; margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }
.typefee { color: var(--teal); font-weight: 700; font-size: 13px; margin: 6px 0 2px; }

/* client portal cards */
.casecard { padding: 18px; }
.casehead { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.casename { font-weight: 700; font-size: 16px; color: var(--navy); }
.sub2 { color: var(--muted); font-size: 12px; margin-top: 2px; }
.docrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.pill.doc { background: #eef6f7; border: 1px solid #cfe7ea; color: var(--teal); padding: 5px 10px; }
.pill.doc:hover { background: #def0f2; text-decoration: none; }
.reviewrow { margin-top: 6px; }
.reviewchip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; font-weight: 600; font-size: 13px; background: #fef3c7; color: #92400e; }
.reviewchip.approved, .reviewchip.completed { background: #dcfce7; color: #166534; }
.reviewchip.assigned, .reviewchip.in_review { background: #e0f2fe; color: #075985; }

/* review gate */
.review-notice { background: #fef3c7; border: 1px solid #f3e2a8; color: #92400e; border-radius: 10px; padding: 11px 14px; font-size: 14px; font-weight: 600; }
.rel-note { color: var(--green); font-weight: 600; font-size: 13px; margin-right: 4px; }
.relbadge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.relbadge.off { background: #fef3c7; color: #92400e; }
.relbadge.on { background: #dcfce7; color: #166534; }

/* AI situation evaluator (intake step 1) */
.eval-box { border: 1.5px solid var(--teal); box-shadow: 0 0 0 4px rgba(15,126,140,.08); }
.eval-box h2 { color: var(--navy); }
.eval-box textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 15px; resize: vertical; min-height: 96px; }
.eval-box textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,126,140,.12); }
.eval-or { text-align: center; color: var(--muted); font-weight: 600; font-size: 13px; margin: 6px 0 18px; }
.eval-loading, .eval-msg { margin-top: 14px; padding: 12px; border-radius: 10px; background: #f1f5f9; color: var(--muted); font-size: 14px; }
.eval-result { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.eval-summary { background: #eef6f7; border-left: 3px solid var(--teal); padding: 10px 14px; border-radius: 0 10px 10px 0; margin: 0 0 14px; }
.eval-rec-h, .eval-q-h { font-weight: 700; color: var(--navy); margin: 6px 0 8px; }
.rec { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.rec-main { flex: 1; }
.rec-name { font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rec-forms .pill { font-size: 11px; }
.rec-why { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.eval-plan { margin: 14px 0; }
.phase { display: flex; gap: 12px; margin-bottom: 10px; }
.phase-n { flex-shrink: 0; font-weight: 800; color: var(--teal); font-size: 13px; width: 56px; padding-top: 3px; }
.phase-body { flex: 1; }
.timing { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-right: 8px; }
.timing.now { background: #dcfce7; color: #166534; }
.timing.simultaneous { background: #e0f2fe; color: #075985; }
.timing.waits { background: #fef3c7; color: #92400e; }
.waits { color: var(--amber); font-size: 13px; }
.phase-note { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.eval-q { background: #fff8e6; border: 1px solid #f3e2a8; border-radius: 10px; padding: 10px 14px; margin: 12px 0; }
.eval-q ul { margin: 6px 0 0; padding-left: 20px; }
.eval-q li { font-size: 14px; padding: 2px 0; }
.eval-attorney { background: #fbf7ea; border: 1px solid #f0e3b8; border-radius: 10px; padding: 11px 14px; color: #6b5a2b; font-weight: 600; font-size: 14px; margin: 12px 0; }

/* narrative field + AI refine */
.narr-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 15px; line-height: 1.5; resize: vertical; min-height: 150px; }
.narr-field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,126,140,.12); }
.narr-actions { margin-top: 8px; }
.narr-btn { background: var(--navy); color: #fff; border-color: var(--navy); }
.narr-btn:hover { background: var(--navy-2); color: #fff; }
.narr-result { margin-top: 14px; }
.narr-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.narr-col { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.narr-col.refined { border-color: var(--teal); background: #f6fbfc; }
.narr-col-h { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); margin-bottom: 8px; }
.narr-col.refined .narr-col-h { color: var(--teal); }
.narr-text { font-size: 14px; line-height: 1.55; color: var(--ink); margin-bottom: 12px; white-space: normal; }
.narr-h { font-weight: 700; color: var(--navy); margin: 14px 0 6px; }
.narr-list { margin: 0; padding-left: 20px; }
.narr-list li { font-size: 13.5px; color: var(--muted); padding: 2px 0; }
.narr-missing { background: #fff8e6; border: 1px solid #f3e2a8; border-radius: 10px; padding: 10px 14px; margin-top: 12px; }
.narr-missing ul { margin: 6px 0 0; padding-left: 20px; }
.narr-missing li { font-size: 14px; padding: 2px 0; color: #7a5b00; }
@media (max-width: 760px) { .narr-compare { grid-template-columns: 1fr; } }

/* checklist + filing */
.checklist { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.checklist > summary { cursor: pointer; padding: 11px 14px; font-weight: 700; color: var(--navy); background: #f8fafc; list-style: none; user-select: none; }
.checklist > summary::-webkit-details-marker { display: none; }
.checklist > summary::before { content: "▸ "; color: var(--teal); }
.checklist[open] > summary::before { content: "▾ "; }
.cl-body { padding: 4px 16px 16px; }
.cl-h { font-weight: 700; color: var(--navy-2); margin: 14px 0 6px; font-size: 14px; }
.cl-docs { margin: 0; padding-left: 20px; }
.cl-docs li { padding: 3px 0; font-size: 14px; color: var(--ink); }
.cl-method { font-size: 14px; margin: 4px 0 10px; }

/* payments */
.paylist { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.payrow { display: flex; align-items: center; gap: 12px; }
.payrow .pk { flex: 1; font-size: 14px; }
.paybadge { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.paybadge.pending { background: #fef3c7; color: #92400e; }
.paybadge.paid { background: #dcfce7; color: #166534; }
.paybadge.refunded { background: #f1f5f9; color: #475569; }
.paybadge.failed, .paybadge.canceled { background: #fee2e2; color: #991b1b; }

/* admin inline lawyer form */
.inlineform { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.inlineform input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
#reviewRows select, #lawyerRows select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }

@media (max-width: 900px) {
  .stats, .types { grid-template-columns: repeat(2, 1fr); }
  .formgrid { grid-template-columns: repeat(2, 1fr); }
  .field.full, .field.half, .field.third, .field.sixth { grid-column: span 2; }
}
