/* 米乐的狐狸窝 · 画师认证
   A single-page submission form and a small admin console.
   All brand marks are hand-written CSS/SVG. No AI artwork. */

:root {
  --cream: #ffffff;
  --cream-deep: #f4f4f4;
  --paper: #ffffff;
  --paper-strong: #ffffff;
  --ink: #121412;
  --ink-soft: #333733;
  --muted: #666b66;
  --muted-light: #969b96;
  --line: #e4e6e3;
  --line-strong: #c9cdc8;
  --orange: #3fe24c;
  --orange-dark: #1c6b2a;
  --orange-soft: #cddcc9;
  --amber: #9aa294;
  --amber-soft: #f4f4f4;
  --teal: #246b30;
  --teal-soft: #cddcc9;
  --red: var(--ink);
  --red-soft: #f2f2f2;
  --shadow-sm: 0 2px 0 rgba(20, 23, 19, .12);
  --shadow: 0 7px 0 rgba(20, 23, 19, .12);
  --shadow-lg: 0 22px 60px rgba(20, 23, 19, .18);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 38px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%23241a16' fill-opacity='.03'%3E%3Cellipse cx='90' cy='117' rx='19' ry='14'/%3E%3Cellipse cx='62' cy='87' rx='7' ry='9' transform='rotate(-20 62 87)'/%3E%3Cellipse cx='81' cy='72' rx='7' ry='9'/%3E%3Cellipse cx='99' cy='72' rx='7' ry='9'/%3E%3Cellipse cx='118' cy='87' rx='7' ry='9' transform='rotate(20 118 87)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 180px;
}
::selection { background: var(--amber); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
svg { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -.12em; flex: none; }
code, .mono { font-family: var(--font-mono); }
pre { overflow: auto; }
.muted { color: var(--muted); }
.pre-line { white-space: pre-line; }
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
}
.skip-link:focus { top: 14px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- shared ---------- */
.section-wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}
.site-main { min-height: 65vh; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(63, 226, 76, .22);
}
.marker {
  background-image: linear-gradient(transparent 60%, var(--amber) 60%, var(--amber) 92%, transparent 92%);
  padding: 0 .07em;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-dark);
  font-weight: 700;
  font-size: .82rem;
  border: 0;
  background: none;
  padding: 0;
}
.text-link:hover { color: var(--ink); }
.text-link svg { width: 16px; height: 16px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 45px;
  padding: 9px 19px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 750;
  font-size: .9rem;
  line-height: 1.2;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled, .btn[disabled] { opacity: .4; pointer-events: none; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: #246b30; color: #f1f5ed; }
.btn-primary:hover { background: #2f8140; }
.btn-quiet { background: transparent; box-shadow: 0 2px 0 rgba(36, 26, 22, .18); }
.btn-quiet:hover { background: var(--paper); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--ink); }
.btn-sm { min-height: 36px; padding: 6px 13px; font-size: .78rem; box-shadow: 0 2px 0 var(--ink); }
.btn-lg { min-height: 53px; padding: 12px 22px; font-size: 1rem; }
.btn-block { width: 100%; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--cream);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 750;
  line-height: 1.45;
  white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; }
.badge.is-success, .badge-verified { background: var(--teal-soft); border-color: #a8cbbd; color: #1f6555; }
.badge.is-pending, .badge.is-warning { background: var(--amber-soft); border-color: #dfba65; color: #80530f; }
.badge.is-danger, .badge-danger { background: var(--red-soft); border-color: #dfa79c; color: var(--red); }
.badge.is-muted { background: #ece4da; color: var(--muted); }
.flash {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: min(var(--wrap), calc(100% - 40px));
  margin: 14px auto 0;
  padding: 12px 15px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  font-size: .86rem;
}
.flash-success { background: #e9f5ee; }
.flash-error { background: #fbe9e4; }
.flash-info { background: var(--amber-soft); }
.flash-icon { display: flex; margin-top: 2px; }
.flash-icon svg { width: 19px; height: 19px; }
.flash-text { flex: 1; }
.flash-close { border: 0; background: none; color: var(--muted); padding: 2px; }
.flash-close svg { width: 16px; height: 16px; }
.callout {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--paper);
}
.callout.compact { padding: 11px 13px; margin-bottom: 13px; }
.callout-icon { display: flex; margin-top: 2px; }
.callout-icon svg { width: 20px; height: 20px; }
.callout strong { display: block; font-size: .84rem; }
.callout p { margin: 2px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.callout a { color: var(--orange-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.callout-warning { background: #fff5dc; border-color: #dfba65; }
.callout-warning .callout-icon { color: #9b6711; }
.callout-error { background: #fbe9e4; border-color: #dfa79c; }
.callout-error .callout-icon { color: var(--red); }

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}
.topbar-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  background: var(--orange);
  color: var(--paper);
  box-shadow: 0 3px 0 var(--ink);
  transform: rotate(-3deg);
}
.brand-mark svg { width: 33px; height: 33px; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; line-height: 1.05; }
.brand-copy strong { font-family: var(--font-serif); font-size: 1.05rem; letter-spacing: .02em; }
.brand-copy small { color: var(--muted); font-size: .62rem; letter-spacing: .2em; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 13px; flex: none; }
.scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid #b8d4c8;
  border-radius: 999px;
  background: var(--teal-soft);
  color: #1e6454;
  font-size: .7rem;
  font-weight: 700;
}
.scope-pill svg { width: 15px; height: 15px; }
.topbar-link { color: var(--muted); font-size: .76rem; font-weight: 650; }
.topbar-link:hover { color: var(--orange-dark); }

/* ---------- submit hero ---------- */
.submit-hero {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(28px, 4vw, 42px);
}
.submit-hero-copy h1 {
  margin: 13px 0 15px;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -.035em;
}
.submit-hero-copy > p { max-width: 640px; margin: 0; color: var(--muted); font-size: .98rem; }
.scope-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.scope-badges span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 650;
}
.scope-badges span:first-child { color: var(--teal); border-color: #b8d4c8; background: var(--teal-soft); }
.scope-badges svg { width: 13px; height: 13px; }
.submit-hero-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transform: rotate(1.5deg);
}
.note-mark { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--amber-soft); border: 1px solid var(--ink); }
.note-mark svg { width: 23px; height: 23px; }
.submit-hero-note strong { display: block; font-family: var(--font-serif); font-size: .92rem; }
.submit-hero-note p { margin: 3px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.6; }

/* ---------- submit layout / form ---------- */
.submit-section { padding-bottom: clamp(50px, 7vw, 86px); }
.submit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(22px, 4vw, 42px); align-items: start; }
.form-card { min-width: 0; }
form { min-width: 0; }
.form-section {
  margin: 0;
  padding: 23px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.form-section + .form-section { margin-top: 15px; }
.form-section legend { display: flex; gap: 12px; align-items: flex-start; padding: 0 3px; width: 100%; }
.form-section-num { flex: none; color: var(--orange); border-bottom: 2px solid var(--amber); font-family: var(--font-serif); font-weight: 700; line-height: 1.3; }
.form-section legend strong { display: block; font-family: var(--font-serif); font-size: 1.18rem; line-height: 1.3; }
.form-section legend small { display: block; color: var(--muted); font-size: .72rem; margin-top: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field > span:first-child { font-size: .8rem; font-weight: 700; }
.field > span b { color: var(--orange); }
.field input:not([type="checkbox"]):not([type="file"]), .field textarea, .field select {
  width: 100%;
  min-height: 45px;
  padding: 9px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 11px;
  background: var(--paper-strong);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 102px; resize: vertical; line-height: 1.65; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange); outline: 0; box-shadow: 0 0 0 3px rgba(63, 226, 76, .22); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid .upload-box { border-color: var(--red); background: #fff7f5; }
.hint { color: var(--muted); font-size: .7rem; line-height: 1.5; }
.field-error { color: var(--red); font-size: .73rem; font-style: normal; }
.upload-list { display: flex; flex-direction: column; gap: 13px; }
.upload-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 95px;
  padding: 13px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--paper-strong);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  overflow: hidden;
}
.upload-box:hover { border-color: var(--orange); background: var(--paper); }
.upload-box input[type="file"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.upload-visual {
  width: 58px;
  height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 13px;
  background: var(--amber-soft);
  overflow: hidden;
}
.upload-visual svg { width: 27px; height: 27px; }
.upload-visual img { width: 100%; height: 100%; object-fit: cover; }
.upload-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.upload-copy strong { font-size: .82rem; line-height: 1.4; }
.upload-copy small { color: var(--muted); font-size: .7rem; line-height: 1.5; }
.upload-name { color: var(--orange-dark); font-size: .7rem; font-style: normal; font-weight: 700; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-box.has-file { border-style: solid; border-color: var(--teal); background: #f4fbf7; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 15px; font-size: .8rem; line-height: 1.6; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--orange); flex: none; }
.consent strong { display: block; }
.consent small { display: block; color: var(--muted); font-size: .7rem; margin-top: 2px; }
.consent.is-invalid strong { color: var(--red); }
.form-submit { margin-top: 18px; }
.form-submit p { text-align: center; color: var(--muted); font-size: .7rem; margin: 8px 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-aside { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 92px; }
.aside-card { padding: 19px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); }
.aside-card h2 { margin: 7px 0 14px; font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.3; }
.aside-card h3 { margin: 5px 0 10px; font-family: var(--font-serif); font-size: 1.08rem; }
.aside-card p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.7; }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.side-list li { display: flex; gap: 9px; align-items: flex-start; }
.side-list li > span { flex: none; color: var(--orange); border-bottom: 1.5px solid var(--amber); font-family: var(--font-serif); font-size: .7rem; font-weight: 700; line-height: 1.5; }
.side-list strong { display: block; font-size: .78rem; }
.side-list p { margin: 1px 0 0; font-size: .7rem; line-height: 1.55; }
.aside-ai { background: #f1f8f4; }
.aside-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--ink); border-radius: 10px; background: var(--teal-soft); margin-bottom: 6px; }
.aside-icon svg { width: 21px; height: 21px; }
.plain-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.plain-list li { display: flex; align-items: center; gap: 5px; font-size: .73rem; color: var(--ink-soft); }
.plain-list svg { width: 14px; height: 14px; color: var(--teal); }
.plain-list li:nth-child(n+2) svg { color: #9b6711; }
.aside-flow { background: #fff8e7; }
.flow-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.flow-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: .74rem; }
.flow-list li:first-child { border-top: 0; }
.flow-list strong { font-weight: 700; }
.flow-list span { color: var(--muted); text-align: right; }
.aside-privacy { display: flex; gap: 7px; padding: 12px; color: var(--muted); font-size: .7rem; line-height: 1.6; border: 1px dashed var(--line-strong); border-radius: 13px; background: rgba(255,250,240,.6); }
.aside-privacy svg { width: 17px; height: 17px; color: var(--teal); margin-top: 1px; }
.aside-privacy p { margin: 0; }
.aside-rules { border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.aside-rules summary { padding: 12px 14px; cursor: pointer; color: var(--muted); font-size: .75rem; font-weight: 650; list-style: none; }
.aside-rules summary::-webkit-details-marker { display: none; }
.aside-rules summary::after { content: "+"; float: right; color: var(--orange); }
.aside-rules[open] summary::after { content: "−"; }
.aside-rules > div { padding: 0 14px 14px; color: var(--muted); font-size: .72rem; }
.aside-rules h4 { margin: 10px 0 3px; color: var(--ink); font-size: .75rem; }
.aside-rules ul { margin: 3px 0; padding-left: 1.1em; }
.aside-rules p { margin: 3px 0; line-height: 1.65; }

/* ---------- result ---------- */
.result-page { padding-top: clamp(38px, 6vw, 68px); padding-bottom: clamp(50px, 7vw, 86px); max-width: 900px; }
.result-heading { text-align: center; margin-bottom: 22px; }
.result-heading h1 { margin: 10px 0 8px; font-family: var(--font-serif); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -.03em; }
.result-heading p { margin: 0 auto; max-width: 520px; color: var(--muted); font-size: .86rem; }
.result-card {
  padding: clamp(20px, 4vw, 32px);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.result-card.status-is-pending { background: #e3e6dd; }
.result-card.status-is-success { background: #f4fbf7; }
.result-card.status-is-danger { background: #fdf2ef; }
.result-card.status-is-warning { background: #fff7e6; }
.result-top { display: flex; align-items: flex-start; gap: 13px; }
.result-icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--amber-soft);
}
.result-icon svg { width: 26px; height: 26px; }
.status-is-success .result-icon { background: var(--teal); color: white; }
.status-is-danger .result-icon { background: var(--red); color: white; }
.status-is-warning .result-icon { background: var(--amber); }
.result-title { flex: 1; min-width: 0; }
.result-title h2 { margin: 2px 0 2px; font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
.result-title p { margin: 0; color: var(--muted); font-size: .8rem; }
.result-top > .badge { flex: none; margin-top: 3px; }
.result-pending { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.scan-line { height: 8px; border-radius: 99px; background: var(--cream-deep); border: 1px solid var(--line); overflow: hidden; }
.scan-line span { display: block; width: 40%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--orange)); animation: scan 2s ease-in-out infinite; }
@keyframes scan { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }
.pending-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--muted); font-size: .7rem; }
.pending-meta span { display: inline-flex; align-items: center; gap: 5px; }
.result-pending .callout { margin: 14px 0 0; }
.result-message { display: flex; gap: 11px; align-items: flex-start; margin-top: 20px; padding: 14px 15px; border: 1px solid var(--line-strong); border-radius: 13px; background: var(--paper-strong); }
.result-message > span { display: flex; margin-top: 1px; }
.result-message svg { width: 21px; height: 21px; }
.result-message strong { display: block; font-size: .85rem; }
.result-message p { margin: 2px 0 0; color: var(--muted); font-size: .8rem; }
.result-message-success { border-color: #b8d4c8; background: #e9f5ee; }
.result-message-success > span { color: var(--teal); }
.result-message-warn { border-color: #dfba65; background: #fff8e7; }
.result-message-warn > span { color: #9b6711; }
.result-actions { margin-top: 14px; }
.result-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 18px; margin: 22px 0 0; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.result-meta div { min-width: 0; }
.result-meta dt { color: var(--muted); font-size: .68rem; }
.result-meta dd { margin: 2px 0 0; font-size: .8rem; font-weight: 650; overflow-wrap: anywhere; }
.result-storage { display: flex; gap: 5px; align-items: flex-start; margin-top: 18px; color: var(--muted-light); font-size: .68rem; }
.result-storage svg { width: 14px; height: 14px; margin-top: 2px; }
.result-footnote { display: flex; gap: 5px; align-items: flex-start; justify-content: center; margin-top: 16px; color: var(--muted-light); font-size: .7rem; text-align: center; }
.result-footnote svg { width: 14px; height: 14px; margin-top: 2px; }
.result-footnote a { color: var(--orange-dark); text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { margin-top: 30px; border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 26px;
  display: grid;
  grid-template-columns: 1.1fr 1.3fr .7fr;
  gap: 30px;
  align-items: start;
}
.brand-footer .brand-mark { width: 39px; height: 39px; border-radius: 11px; }
.brand-footer .brand-mark svg { width: 29px; height: 29px; }
.footer-brand p { margin: 11px 0 0; color: var(--muted); font-size: .75rem; }
.footer-note strong { font-size: .8rem; }
.footer-note p { margin: 5px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.7; }
.footer-meta { display: flex; flex-direction: column; gap: 4px; color: var(--muted-light); font-size: .7rem; text-align: right; }
.footer-meta a { color: var(--teal); }

/* ---------- auth ---------- */
.auth-page .site-footer { margin-top: 0; }
.auth-section { min-height: 68vh; display: grid; place-items: center; padding-top: 46px; padding-bottom: 56px; }
.auth-card {
  width: min(470px, 100%);
  padding: clamp(23px, 4vw, 36px);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.auth-head { text-align: center; margin-bottom: 18px; }
.auth-mark { display: inline-grid; place-items: center; width: 58px; height: 58px; border: 1.5px solid var(--ink); border-radius: 17px; background: var(--amber); margin-bottom: 10px; transform: rotate(-3deg); }
.auth-mark svg { width: 40px; height: 40px; }
.auth-head h1 { margin: 6px 0 7px; font-family: var(--font-serif); font-size: 1.8rem; line-height: 1.15; }
.auth-head p { margin: 0; color: var(--muted); font-size: .78rem; }
.auth-form { display: flex; flex-direction: column; gap: 13px; margin-top: 16px; }
.auth-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 13px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .7rem; }
.auth-foot a { color: var(--orange-dark); }
.auth-foot span { display: inline-flex; align-items: center; gap: 4px; }
.password-field { position: relative; display: flex; }
.password-field input { padding-right: 62px !important; }
.password-toggle { position: absolute; right: 5px; top: 5px; bottom: 5px; border: 0; border-radius: 7px; background: var(--cream-deep); color: var(--muted); padding: 0 10px; font-size: .7rem; }
.code-input { font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- pagination / empty ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 26px; }
.page-item { min-width: 36px; height: 36px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--paper); font-size: .78rem; font-weight: 700; }
.page-item:hover { border-color: var(--ink); }
.page-item.is-current { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.empty-state { padding: 36px 20px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: rgba(255, 250, 240, .55); text-align: center; }
.empty-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1.5px solid var(--ink); border-radius: 13px; background: var(--amber-soft); margin-bottom: 10px; }
.empty-icon svg { width: 25px; height: 25px; }
.empty-state h3 { margin: 0 0 4px; font-family: var(--font-serif); font-size: 1.1rem; }
.empty-state p { margin: 0; color: var(--muted); font-size: .76rem; }
.empty-state-small { padding: 24px 16px; }
.empty-state-small .empty-icon { width: 38px; height: 38px; border-radius: 11px; }
.empty-state-small .empty-icon svg { width: 21px; height: 21px; }
.empty-state-small h3 { font-size: .95rem; }

/* ---------- admin ---------- */
.admin-body { background: #ffffff; }
.admin-body::before { opacity: .3; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  background: var(--ink);
  color: var(--cream);
  border-right: 1.5px solid var(--ink);
  overflow-y: auto;
}
.brand-admin { padding: 0 6px 18px; border-bottom: 1px solid rgba(255,248,238,.13); }
.brand-admin .brand-mark { width: 38px; height: 38px; border-radius: 11px; border-color: rgba(255,248,238,.25); box-shadow: none; }
.brand-admin .brand-mark svg { width: 28px; height: 28px; }
.brand-admin .brand-copy strong { color: var(--cream); font-size: .92rem; }
.brand-admin .brand-copy small { color: #b9a99b; font-size: .6rem; letter-spacing: .14em; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; }
.admin-nav-label { display: block; padding: 12px 9px 4px; color: #8f7f72; font-size: .56rem; letter-spacing: .16em; font-weight: 800; }
.admin-nav a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; color: #d8c9bb; font-size: .78rem; font-weight: 600; }
.admin-nav a:hover { background: rgba(255,248,238,.07); color: var(--cream); }
.admin-nav a.is-active { background: #246b30; color: #f1f5ed; }
.nav-dot { width: 5px; height: 5px; border-radius: 99px; background: currentColor; opacity: .5; }
.admin-nav a.is-active .nav-dot { opacity: 1; background: var(--orange); }
.admin-sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 9px; padding-top: 14px; border-top: 1px solid rgba(255,248,238,.13); }
.admin-site-link { display: inline-flex; align-items: center; gap: 5px; padding: 3px 5px; color: #b9a99b; font-size: .68rem; }
.admin-site-link:hover { color: var(--amber-soft); }
.admin-user { display: flex; align-items: center; gap: 8px; padding: 6px 5px; }
.admin-avatar { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--amber); color: var(--ink); font-family: var(--font-serif); font-weight: 700; border: 1px solid rgba(255,248,238,.3); }
.admin-user strong { display: block; font-size: .7rem; color: var(--cream); }
.admin-user small { display: block; color: #9e8d7f; font-size: .58rem; }
.btn-sidebar { width: 100%; min-height: 35px; padding: 6px 10px; background: transparent; color: var(--cream); border-color: rgba(255,248,238,.25); box-shadow: none; font-size: .7rem; }
.btn-sidebar:hover { background: rgba(255,248,238,.08); box-shadow: none; }
.admin-main { min-width: 0; padding: clamp(20px, 3.4vw, 38px); }
.admin-page { max-width: 1380px; margin: 0 auto; }
.admin-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.admin-page-head h1 { margin: 3px 0 5px; font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw, 2.45rem); line-height: 1.1; letter-spacing: -.02em; }
.admin-page-head p { margin: 0; color: var(--muted); font-size: .78rem; }
.admin-kicker { display: block; color: var(--orange-dark); font-size: .56rem; letter-spacing: .18em; font-weight: 800; }
.admin-page-head > .btn, .admin-page-head > form { flex: none; }
.admin-back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .7rem; margin-bottom: 3px; }
.admin-title-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.admin-title-row h1 { margin: 0; }
.admin-detail-head { align-items: flex-end; }
.admin-panel { min-width: 0; padding: 18px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); }
.admin-panel + .admin-panel { margin-top: 14px; }
.admin-panel-tight { padding: 16px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.panel-head h2 { margin: 3px 0 0; font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.2; }
.panel-head .muted { font-size: .68rem; }
.panel-actions { display: flex; flex-direction: column; gap: 7px; margin-top: 13px; }
.panel-actions .btn { min-height: 37px; font-size: .76rem; box-shadow: 0 1px 0 var(--ink); }
.admin-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); gap: 14px; align-items: start; }
.admin-side-stack { display: flex; flex-direction: column; gap: 14px; }
.admin-side-stack .admin-panel + .admin-panel { margin-top: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.stat-card { position: relative; display: block; padding: 15px 16px; border: 1.5px solid var(--line-strong); border-radius: 15px; background: #ffffff; box-shadow: var(--shadow-sm); }
a.stat-card:hover { border-color: var(--ink); }
.stat-label { display: block; color: var(--muted); font-size: .7rem; font-weight: 650; }
.stat-card strong { display: block; margin-top: 2px; font-family: var(--font-serif); font-size: 1.9rem; line-height: 1.15; }
.stat-card small { color: var(--muted-light); font-size: .62rem; }
.stat-dot { position: absolute; right: 12px; top: 14px; width: 7px; height: 7px; border-radius: 99px; }
.dot-pending { background: var(--amber); }
.dot-success { background: var(--teal); }
.dot-warning { background: #d8911f; }
.dot-danger { background: var(--red); }
.admin-table-wrap { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .74rem; }
.admin-table th { padding: 7px 9px; border-bottom: 1.5px solid var(--line-strong); text-align: left; color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.admin-table td { padding: 10px 9px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.table-artist { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.table-avatar { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--amber-soft); color: var(--orange-dark); font-family: var(--font-serif); font-weight: 700; }
.table-artist strong { display: block; font-size: .76rem; }
.table-artist small { display: block; color: var(--muted); font-size: .62rem; }
.table-muted { color: var(--muted); font-size: .7rem; }
.table-strong { color: var(--ink-soft); font-weight: 600; }
.table-link { color: var(--orange-dark); font-weight: 700; white-space: nowrap; }
.table-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.ai-verdict { display: inline-block; padding: 3px 7px; border-radius: 999px; background: #efe7db; color: var(--muted); font-size: .62rem; font-weight: 700; white-space: nowrap; }
.ai-verdict.is-pass { background: var(--teal-soft); color: #1f6555; }
.ai-verdict.is-fail { background: var(--red-soft); color: var(--red); }
.ai-verdict.is-unclear { background: var(--amber-soft); color: #80530f; }
.system-list { margin: 0; display: flex; flex-direction: column; }
.system-list div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .72rem; }
.system-list div:last-child { border-bottom: 0; }
.system-list dt { color: var(--muted); }
.system-list dd { margin: 0; font-weight: 650; text-align: right; }
.admin-tip { color: var(--muted); font-size: .76rem; line-height: 1.7; }
.admin-list { margin: 8px 0 0; padding-left: 1.1em; color: var(--muted); font-size: .73rem; line-height: 1.7; }
.admin-list li { margin: 3px 0; }
.audit-mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.audit-mini-list li { display: flex; align-items: center; gap: 6px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); font-size: .68rem; }
.audit-mini-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.audit-mini-list small { margin-left: auto; color: var(--muted-light); font-size: .6rem; }
.audit-mini-action { padding: 1px 5px; border-radius: 4px; background: var(--cream-deep); font-family: var(--font-mono); font-size: .58rem; }
.admin-policy { background: #fbf1eb; }
.admin-tabs { display: flex; gap: 3px; overflow-x: auto; border-bottom: 1.5px solid var(--line-strong); margin-bottom: 12px; }
.admin-tabs a { padding: 8px 12px; border-bottom: 2px solid transparent; color: var(--muted); font-size: .72rem; font-weight: 650; white-space: nowrap; }
.admin-tabs a:hover { color: var(--ink); }
.admin-tabs a.is-active { color: var(--orange-dark); border-bottom-color: var(--orange); }
.admin-filter-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.admin-search { position: relative; flex: 1 1 300px; display: flex; align-items: center; }
.admin-search svg { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--muted); }
.admin-search input { width: 100%; min-height: 40px; padding: 7px 11px 7px 34px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--paper); }
.admin-search input:focus { border-color: var(--orange); outline: 0; box-shadow: 0 0 0 3px rgba(63,226,76,.2); }
.filter-clear { color: var(--muted); font-size: .72rem; text-decoration: underline; text-underline-offset: 2px; }
.list-meta { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 13px 2px 9px; color: var(--muted); font-size: .72rem; }
.list-meta strong { color: var(--ink); }
.admin-detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr); gap: 14px; align-items: start; }
.admin-detail-main { min-width: 0; }
.admin-detail-side { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.admin-detail-side .admin-panel + .admin-panel { margin-top: 0; }
.evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.evidence-item { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--paper-strong); }
.evidence-item:hover { border-color: var(--ink); }
.evidence-img { display: block; height: 140px; background: #d9dcd3; overflow: hidden; }
.evidence-img img { width: 100%; height: 100%; object-fit: cover; }
.evidence-cap { display: block; padding: 7px 8px; }
.evidence-cap strong { display: block; font-size: .68rem; }
.evidence-cap small { color: var(--muted); font-size: .6rem; }
.ai-review-card { padding: 13px; margin-bottom: 9px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper-strong); }
.ai-review-card:last-child { margin-bottom: 0; }
.ai-review-latest { border-color: var(--line-strong); background: #fffaf0; }
.ai-review-head { display: flex; justify-content: space-between; gap: 10px; }
.ai-review-head h3 { margin: 2px 0 0; font-family: var(--font-serif); font-size: .98rem; }
.ai-review-meta { display: flex; align-items: center; gap: 6px; flex: none; }
.confidence { font-family: var(--font-mono); font-size: .76rem; font-weight: 700; }
.ai-review-time { margin: 3px 0 8px; color: var(--muted-light); font-size: .6rem; }
.ai-summary { margin: 7px 0 9px; color: var(--ink-soft); font-size: .76rem; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.check-item { display: flex; gap: 7px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.check-status { flex: none; height: fit-content; padding: 1px 5px; border-radius: 4px; font-size: .55rem; font-weight: 800; }
.check-status.is-success { background: var(--teal-soft); color: #1f6555; }
.check-status.is-danger { background: var(--red-soft); color: var(--red); }
.check-status.is-warning { background: var(--amber-soft); color: #80530f; }
.check-item strong { display: block; font-size: .66rem; }
.check-item p { margin: 1px 0 0; color: var(--muted); font-size: .63rem; line-height: 1.5; }
.concerns { margin-top: 8px; padding: 7px 9px; border-radius: 7px; background: #fff6e5; font-size: .68rem; }
.concerns ul { margin: 2px 0 0; padding-left: 1.1em; color: var(--muted); }
.raw-details { margin-top: 7px; }
.raw-details summary { color: var(--muted); font-size: .63rem; cursor: pointer; }
.raw-details pre { margin: 6px 0 0; padding: 8px; border-radius: 7px; background: #f0f3ee; font-size: .6rem; line-height: 1.5; max-height: 220px; white-space: pre-wrap; word-break: break-word; }
.meta-list { margin: 0; display: flex; flex-direction: column; }
.meta-list div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .75rem; }
.meta-list div:last-child { border-bottom: 0; }
.meta-list dt { flex: none; color: var(--muted); }
.meta-list dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.profile-bio-box { margin-top: 10px; padding: 9px; border: 1px dashed var(--line); border-radius: 8px; font-size: .72rem; }
.profile-bio-box p { margin: 3px 0 0; color: var(--muted); }
.admin-form .form-grid { gap: 12px; }
.admin-form .field > span:first-child { font-size: .74rem; }
.admin-form .field input, .admin-form .field select { min-height: 39px; font-size: .8rem; }
.admin-form .field textarea { font-size: .8rem; }
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.form-actions .muted { font-size: .68rem; }
.switch-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-strong); cursor: pointer; }
.switch-row strong { display: block; font-size: .78rem; }
.switch-row small { display: block; color: var(--muted); font-size: .66rem; margin-top: 2px; }
.switch { position: relative; display: inline-flex; width: 42px; height: 24px; flex: none; margin-top: 2px; }
.switch input { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch-track { width: 42px; height: 24px; border: 1px solid var(--line-strong); border-radius: 99px; background: #d6dbd3; transition: background .15s ease; }
.switch-track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 99px; background: white; border: 1px solid #bcc3b8; transition: transform .15s ease; }
.switch input:checked + .switch-track { background: var(--teal); border-color: var(--teal); }
.switch input:checked + .switch-track::after { transform: translateX(18px); border-color: transparent; }
.inline-check { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--muted); font-size: .68rem; }
.inline-check input { width: auto; accent-color: var(--red); }
.recovery-panel { margin-bottom: 16px; padding: 20px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff5dc; box-shadow: var(--shadow); }
.recovery-panel h2 { margin: 4px 0 7px; font-family: var(--font-serif); font-size: 1.6rem; }
.recovery-panel p { max-width: 680px; color: var(--ink-soft); font-size: .78rem; }
.recovery-code-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 13px 0; }
.recovery-code-grid code { padding: 8px; border: 1px dashed var(--line-strong); border-radius: 7px; background: var(--paper); text-align: center; font-size: .76rem; }
.totp-setup { display: flex; gap: 17px; align-items: center; margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper-strong); }
.totp-qr { flex: none; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.totp-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.totp-copy > span:first-child { color: var(--muted); font-size: .64rem; }
.secret-code { display: block; padding: 6px 8px; border-radius: 6px; background: var(--cream-deep); font-size: .68rem; word-break: break-all; }
.totp-copy .muted { font-size: .64rem; }

/* ---------- error ---------- */
.error-section { min-height: 64vh; display: grid; place-items: center; padding-top: 40px; padding-bottom: 60px; }
.error-card { position: relative; max-width: 560px; padding: clamp(28px, 5vw, 48px); border: 1.5px solid var(--ink); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); text-align: center; }
.error-code { position: absolute; top: 12px; right: 20px; color: rgba(36,26,22,.08); font-family: var(--font-serif); font-size: 3.2rem; line-height: 1; }
.error-fox { display: inline-grid; place-items: center; width: 70px; height: 70px; border: 1.5px solid var(--ink); border-radius: 21px; background: var(--orange); color: var(--paper); margin-bottom: 12px; transform: rotate(-4deg); }
.error-fox svg { width: 50px; height: 50px; }
.error-card h1 { margin: 0 0 7px; font-family: var(--font-serif); font-size: 1.7rem; }
.error-card p { margin: 0; color: var(--muted); font-size: .84rem; }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.error-small { margin-top: 15px !important; font-size: .7rem !important; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .submit-hero { grid-template-columns: 1fr; align-items: start; }
  .submit-hero-note { max-width: 520px; transform: none; }
  .submit-layout { grid-template-columns: minmax(0, 1fr) 290px; }
  .admin-dashboard-grid, .admin-detail-grid { grid-template-columns: 1fr; }
  .admin-side-stack, .admin-detail-side { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .admin-shell { display: block; }
  .admin-sidebar { position: static; height: auto; padding: 13px 15px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .brand-admin { border-bottom: 0; padding: 0; }
  .brand-admin .brand-copy small { display: none; }
  .admin-nav { order: 3; width: 100%; flex-direction: row; flex-wrap: wrap; padding: 3px 0 0; gap: 2px; }
  .admin-nav-label { display: none; }
  .admin-nav a { padding: 6px 9px; font-size: .7rem; }
  .admin-sidebar-foot { margin-left: auto; margin-top: 0; flex-direction: row; align-items: center; border-top: 0; padding-top: 0; gap: 6px; }
  .admin-site-link, .admin-user { display: none; }
  .btn-sidebar { width: auto; min-height: 32px; padding: 4px 9px; font-size: .66rem; }
  .admin-main { padding: 18px 14px 40px; }
  .admin-page-head { flex-direction: column; gap: 10px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-side-stack, .admin-detail-side { grid-template-columns: 1fr; }
  .evidence-grid { grid-template-columns: repeat(2, 1fr); }
  .submit-layout { grid-template-columns: 1fr; }
  .submit-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .submit-aside .aside-card:first-child { grid-column: 1 / -1; }
  .aside-rules { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-meta { text-align: left; }
}
@media (max-width: 620px) {
  .section-wrap { width: min(var(--wrap), calc(100% - 28px)); }
  .topbar-inner { width: calc(100% - 28px); min-height: 62px; }
  .topbar-right { gap: 8px; }
  .scope-pill { font-size: .62rem; padding: 5px 8px; }
  .topbar-link { display: none; }
  .brand-mark { width: 39px; height: 39px; border-radius: 11px; }
  .brand-mark svg { width: 29px; height: 29px; }
  .brand-copy strong { font-size: .94rem; }
  .submit-hero { padding-top: 30px; }
  .submit-hero-copy h1 { font-size: clamp(2.2rem, 10.5vw, 3.2rem); }
  .submit-hero-note { transform: none; }
  .form-section { padding: 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-section legend { gap: 8px; }
  .submit-aside { grid-template-columns: 1fr; }
  .submit-aside .aside-card:first-child { grid-column: auto; }
  .result-meta { grid-template-columns: 1fr 1fr; }
  .result-top { flex-wrap: wrap; }
  .result-top > .badge { margin-left: 59px; }
  .pending-meta { flex-direction: column; gap: 3px; }
  .footer-inner { width: calc(100% - 28px); grid-template-columns: 1fr; gap: 18px; padding-top: 24px; }
  .footer-meta { text-align: left; }
  .auth-card { padding: 22px 17px; }
  .auth-foot { flex-direction: column; }
  .error-actions { flex-direction: column; }
  .recovery-code-grid { grid-template-columns: 1fr 1fr; }
  .totp-setup { flex-direction: column; align-items: flex-start; }
  .check-grid { grid-template-columns: 1fr; }
  .evidence-grid { grid-template-columns: 1fr 1fr; }
  .evidence-img { height: 110px; }
  .admin-table th:nth-child(2), .admin-table td:nth-child(2) { display: none; }
  .list-meta { flex-direction: column; align-items: flex-start; gap: 3px; }
  .admin-filter-form .btn { width: 100%; }
}
@media (max-width: 420px) {
  .scope-pill { display: none; }
  .result-top > .badge { margin-left: 0; }
  .result-meta { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 12px; }
  .stat-card strong { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- simplified single-page layout ---------- */
body::before { display: none; }
.topbar-inner { min-height: 64px; }
.topbar-note { color: var(--muted); font-size: .72rem; font-weight: 650; }
.brand { gap: 0; }
.brand-copy strong { font-size: 1.08rem; }
.brand-copy small { margin-top: 3px; }
.page-shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 64px;
}
.page-head { margin-bottom: 20px; }
.page-head h1 {
  margin: 6px 0 7px;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -.02em;
}
.page-head p { max-width: 620px; margin: 0; color: var(--muted); font-size: .86rem; }
.form-card {
  padding: clamp(18px, 3.5vw, 28px);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.form-block + .form-block {
  margin-top: 23px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}
.form-block h2 {
  margin: 0 0 13px;
  font-family: var(--font-serif);
  font-size: 1.16rem;
  line-height: 1.25;
}
.form-block .form-grid { gap: 13px; }
.form-block .field > span:first-child { font-size: .78rem; }
.form-block .field input:not([type="checkbox"]):not([type="file"]),
.form-block .field textarea { min-height: 42px; background: var(--paper-strong); }
.form-block .field textarea { min-height: 76px; }
.form-block .hint { font-size: .68rem; }
.upload-list { gap: 8px; }
.upload-box {
  min-height: 74px;
  padding: 9px 11px;
  gap: 11px;
  border-radius: 11px;
}
.upload-visual { width: 42px; height: 42px; border-radius: 9px; }
.upload-visual svg { width: 21px; height: 21px; }
.upload-copy strong { font-size: .79rem; }
.upload-copy small { font-size: .68rem; }
.upload-name { font-size: .67rem; }
.consent { margin-top: 13px; }
.submit-button { margin-top: 17px; }
.submit-note { margin: 8px 0 0; color: var(--muted-light); font-size: .68rem; text-align: center; }
.result-shell { padding-top: 44px; max-width: 700px; }
.result-card { padding: clamp(20px, 4vw, 30px); }
.result-head { display: flex; align-items: stretch; gap: 13px; }
.result-card .status-bar {
  width: 5px;
  flex: none;
  border-radius: 99px;
  background: var(--amber);
}
.result-card.status-is-success .status-bar { background: var(--teal); }
.result-card.status-is-danger .status-bar { background: var(--red); }
.result-card.status-is-warning .status-bar { background: #d8911f; }
.result-label { color: var(--muted); font-size: .63rem; letter-spacing: .13em; font-weight: 800; text-transform: uppercase; }
.result-title h1 { margin: 3px 0 4px; font-family: var(--font-serif); font-size: clamp(1.65rem, 4vw, 2.1rem); line-height: 1.2; }
.result-title p { margin: 0; color: var(--muted); font-size: .8rem; }
.result-pending { margin-top: 20px; }
.result-pending > p { margin: 7px 0 0; color: var(--muted); font-size: .7rem; }
.result-pending .callout { margin-top: 13px; }
.result-message { margin-top: 18px; padding: 12px 13px; border-radius: 11px; }
.result-actions { margin-top: 13px; }
.result-meta { margin-top: 18px; padding-top: 14px; grid-template-columns: repeat(2, 1fr); }
.result-note { margin: 16px 0 0; color: var(--muted-light); font-size: .67rem; }
.site-main { min-height: calc(100vh - 64px); }
@media (max-width: 620px) {
  .page-shell { width: calc(100% - 28px); padding-top: 28px; padding-bottom: 44px; }
  .page-head h1 { font-size: 1.9rem; }
  .form-card { padding: 16px; }
  .result-meta { grid-template-columns: 1fr 1fr; }
  .result-head { gap: 10px; }
}
@media (max-width: 400px) {
  .topbar-note { display: none; }
  .form-block .form-grid { grid-template-columns: 1fr; }
}

/* ---------- two-color palette overrides ---------- */
::selection { background: var(--orange-soft); color: var(--ink); }
.marker { background-image: linear-gradient(transparent 60%, var(--orange-soft) 60%, var(--orange-soft) 92%, transparent 92%); }
.badge.is-success, .badge-verified { background: var(--orange-soft); border-color: #a9bfa5; color: var(--orange-dark); }
.badge.is-pending, .badge.is-warning { background: #d9dcd3; border-color: var(--line-strong); color: var(--muted); }
.badge.is-danger, .badge-danger { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.flash-success { background: #dfe8da; border-color: #a9bfa5; }
.flash-error { background: #d9dcd3; border-color: var(--ink); }
.flash-error .flash-icon { color: var(--ink); }
.flash-info { background: #d9dcd3; }
.callout-warning { background: #e3e6dd; border-color: var(--line-strong); }
.callout-warning .callout-icon { color: var(--muted); }
.callout-error { background: #d9dcd3; border-color: var(--ink); }
.callout-error .callout-icon { color: var(--ink); }
.status-is-success { background: var(--orange-soft); color: var(--orange-dark); }
.status-is-pending, .status-is-warning { background: #d9dcd3; color: var(--muted); }
.status-is-danger { background: var(--ink); color: var(--paper); }
.status-is-muted { background: #eee8e0; color: var(--muted); }
.result-card.status-is-success { background: #ffffff; }
.result-card.status-is-pending, .result-card.status-is-warning { background: #ffffff; }
.result-card.status-is-danger { background: #ffffff; }
.result-card.status-is-warning .status-bar { background: var(--muted); }
.result-message-success { background: #f4fbf4; border-color: #a9bfa5; color: var(--orange-dark); }
.result-message-warn { background: #fafafa; border-color: var(--line-strong); }
.check-status.is-success { background: var(--orange-soft); color: var(--orange-dark); }
.check-status.is-danger { background: var(--ink); color: var(--paper); }
.check-status.is-warning { background: #d9dcd3; color: var(--muted); }
.ai-verdict.is-pass { background: var(--orange-soft); color: var(--orange-dark); }
.ai-verdict.is-fail { background: var(--ink); color: var(--paper); }
.ai-verdict.is-unclear { background: #d9dcd3; color: var(--muted); }
.dot-warning { background: var(--muted); }
.admin-avatar { background: var(--orange); color: var(--paper); border-color: rgba(255,253,248,.35); }
.admin-policy { background: #e1e4db; }
.recovery-panel { background: #ffffff; }

/* final accent tuning: keep the bright brand green small */
.result-card.status-is-success { color: var(--ink); }
.result-card.status-is-success .status-bar { background: var(--orange); }
.result-card.status-is-success .result-title h1 { color: var(--orange-dark); }
.topbar-note::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 99px; background: var(--orange); vertical-align: 2px; }

.form-note {
  margin: -4px 0 13px;
  color: var(--muted);
  font-size: .72rem;
}

.config-title {
  margin: 22px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: .04em;
}

.guard-result {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
}
.guard-label {
  flex: none;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .04em;
}
.guard-result strong { display: block; font-size: .72rem; }
.guard-result small { display: block; color: var(--muted); font-size: .62rem; }
.guard-skip { margin: 6px 0; color: var(--muted-light); font-size: .66rem; }
