/* ==========================================================================
   吉林省野生动物收容救护管理系统 · 政务绿色视觉系统
   Design tokens: 深林绿 / 宣纸白 / 鎏金 / 墨色
   ========================================================================== */
:root {
  --forest-950: #06291e;
  --forest-900: #0a3527;
  --forest-800: #0d4431;
  --forest-700: #12573d;
  --forest-600: #1a6b4b;
  --forest-500: #237c58;
  --forest-100: #e7f0ea;
  --forest-50: #f1f6f2;
  --gold-600: #9b7938;
  --gold-500: #b8944f;
  --gold-400: #c9aa6a;
  --gold-100: #f4ecdb;
  --ink-900: #15241d;
  --ink-700: #33443a;
  --ink-500: #66756c;
  --ink-400: #87938b;
  --ink-300: #a8b1aa;
  --paper: #f3f3ed;
  --paper-warm: #f8f7f2;
  --card: #ffffff;
  --line: #e3e5dd;
  --line-strong: #d3d8ce;
  --red: #b4483c;
  --red-bg: #fbeeec;
  --amber: #b37b26;
  --amber-bg: #fbf3e4;
  --blue: #356e88;
  --blue-bg: #eaf2f5;
  --purple: #6c5c8c;
  --purple-bg: #f0edf5;
  --teal: #22755f;
  --teal-bg: #e8f3ee;
  --shadow-sm: 0 1px 2px rgba(21, 36, 29, .04), 0 8px 24px -18px rgba(21, 36, 29, .28);
  --shadow-md: 0 2px 4px rgba(21, 36, 29, .04), 0 22px 50px -30px rgba(21, 36, 29, .3);
  --shadow-lg: 0 30px 90px -32px rgba(6, 41, 30, .38);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --num: "Bahnschrift", "DIN Alternate", "Segoe UI", "PingFang SC", sans-serif;
  --radius: 16px;
  --sidebar-w: 252px;
  --topbar-h: 78px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink-900);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(35, 124, 88, .07), transparent 62%),
    radial-gradient(600px 400px at 5% 100%, rgba(184, 148, 79, .06), transparent 65%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
img { max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(35, 124, 88, .18); color: var(--forest-900); }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- boot ---------- */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  background:
    radial-gradient(700px 450px at 50% 30%, rgba(201, 170, 106, .12), transparent 70%),
    linear-gradient(160deg, #0d4532, #06291e 75%);
  color: #f6f2e7;
  transition: opacity .55s ease, visibility .55s ease;
}
.boot-screen.hide { opacity: 0; visibility: hidden; }
.boot-mark { width: 62px; height: 62px; }
.boot-mark svg { width: 100%; height: 100%; fill: none; stroke: var(--gold-400); stroke-width: 1.4; }
.boot-title { font-family: var(--serif); font-size: 19px; letter-spacing: .12em; }
.boot-screen p { color: rgba(246, 242, 231, .5); font-size: 11px; letter-spacing: .22em; }
.boot-line { width: 128px; height: 1px; background: rgba(255, 255, 255, .16); overflow: hidden; margin: 8px 0 2px; }
.boot-line span { display: block; width: 42%; height: 100%; background: var(--gold-400); animation: boot 1.1s ease-in-out infinite; }
@keyframes boot { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }

/* ---------- shell ---------- */
.app { min-height: 100dvh; }
.main {
  position: relative;
  z-index: 1;
  margin-left: var(--sidebar-w);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.view {
  flex: 1;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 26px 32px 30px;
}
.view:focus { outline: none; }
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 32px 20px;
  color: var(--ink-400);
  font-size: 11px;
  letter-spacing: .02em;
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
}

/* ---------- sidebar ---------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  padding: 24px 16px 18px;
  color: rgba(255, 255, 255, .76);
  background:
    radial-gradient(460px 260px at 15% 0%, rgba(201, 170, 106, .16), transparent 65%),
    linear-gradient(178deg, #104c37 0%, #0a3828 48%, #062a1e 100%);
  border-right: 1px solid rgba(201, 170, 106, .22);
  overflow: hidden;
}
.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='.8'%3E%3Cpath d='M-20 170c45-40 84-30 116-6 34 25 74 24 144-20'/%3E%3Cpath d='M-30 190c48-42 92-34 126-8 34 25 74 24 154-26'/%3E%3Cpath d='M-18 150c42-36 80-26 110-2 32 24 70 22 138-18'/%3E%3Cpath d='M-35 135c46-36 88-26 120 0 32 24 72 20 150-24'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 280px;
}
.sidebar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 112px;
  width: 1px;
  height: 140px;
  background: linear-gradient(180deg, transparent, var(--gold-400), transparent);
  opacity: .5;
}
.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 6px 18px;
}
.brand-emblem { width: 45px; height: 45px; flex: 0 0 45px; }
.brand-emblem svg { width: 100%; height: 100%; overflow: visible; }
.emblem-shield { fill: rgba(201, 170, 106, .1); stroke: var(--gold-400); stroke-width: 1.2; }
.emblem-leaf { fill: none; stroke: #f0dfb7; stroke-width: 1.35; stroke-linecap: round; }
.brand-title {
  color: #fbf7eb;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.2;
}
.brand-sub {
  margin-top: 3px;
  color: rgba(201, 170, 106, .76);
  font-size: 8px;
  letter-spacing: .24em;
}
.sidebar-org {
  position: relative;
  display: flex;
  gap: 9px;
  margin: 2px 4px 18px;
  padding: 11px 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 9px;
  background: rgba(255, 255, 255, .035);
}
.org-bar { width: 2px; border-radius: 2px; background: linear-gradient(var(--gold-400), rgba(201, 170, 106, .1)); flex: 0 0 2px; }
.sidebar-org b { display: block; color: rgba(255, 255, 255, .83); font-size: 11.5px; font-weight: 500; letter-spacing: .02em; }
.sidebar-org small { display: block; margin-top: 2px; color: rgba(255, 255, 255, .4); font-size: 9.5px; }
.nav { position: relative; display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-label {
  padding: 14px 12px 5px;
  color: rgba(255, 255, 255, .32);
  font-size: 9.5px;
  letter-spacing: .22em;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 43px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .66);
  font-size: 13.5px;
  letter-spacing: .03em;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-item > svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; opacity: .88; }
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-item.active {
  color: #fff9e9;
  background: linear-gradient(90deg, rgba(201, 170, 106, .17), rgba(255, 255, 255, .045));
  box-shadow: inset 0 0 0 1px rgba(201, 170, 106, .12);
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 9px;
  width: 3px;
  height: 25px;
  border-radius: 0 3px 3px 0;
  background: var(--gold-400);
  box-shadow: 0 0 16px rgba(201, 170, 106, .5);
}
.nav-item.active > svg { color: var(--gold-400); opacity: 1; }
.nav-count {
  margin-left: auto;
  min-width: 21px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .8);
  font-family: var(--num);
  font-size: 10px;
  font-style: normal;
  line-height: 18px;
  text-align: center;
}
.nav-item.active .nav-count { background: rgba(201, 170, 106, .24); color: #f7e9c3; }
.nav-dot { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-400); opacity: .8; }
.sidebar-foot { position: relative; padding: 14px 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.system-state { display: flex; align-items: center; gap: 8px; }
.system-state b { display: block; color: rgba(255, 255, 255, .62); font-size: 10.5px; font-weight: 400; }
.system-state small { display: block; color: rgba(255, 255, 255, .3); font-size: 9px; }
.pulse-dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: #6ec89e; flex: 0 0 6px; }
.pulse-dot::after { content: ""; position: absolute; inset: -3px; border: 1px solid #6ec89e; border-radius: 50%; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { opacity: .7; transform: scale(.7); } 80%, 100% { opacity: 0; transform: scale(1.9); } }
.sidebar-version { margin-top: 10px; color: rgba(255, 255, 255, .22); font-size: 8.5px; letter-spacing: .1em; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 32px;
  background: rgba(248, 248, 243, .86);
  border-bottom: 1px solid rgba(21, 36, 29, .07);
  backdrop-filter: blur(14px) saturate(1.2);
}
.topbar-left { min-width: 0; }
.crumb { color: var(--ink-400); font-size: 10px; letter-spacing: .08em; white-space: nowrap; }
.crumb span { color: var(--forest-600); }
.page-title {
  overflow: hidden;
  margin-top: 2px;
  color: var(--ink-900);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.global-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 256px;
  height: 38px;
  padding: 0 9px 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .7);
  transition: border .2s ease, box-shadow .2s ease, background .2s ease;
}
.global-search:focus-within { border-color: rgba(35, 124, 88, .38); background: #fff; box-shadow: 0 0 0 3px rgba(35, 124, 88, .07); }
.global-search svg { width: 15px; height: 15px; fill: none; stroke: var(--ink-400); stroke-width: 1.8; stroke-linecap: round; flex: 0 0 15px; }
.global-search input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink-700); font-size: 11.5px; outline: none; }
.global-search input::placeholder { color: var(--ink-400); }
.global-search kbd { padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-400); font-family: var(--num); font-size: 8px; white-space: nowrap; }
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-500);
  transition: background .2s, color .2s, border .2s;
}
.icon-btn:hover { border-color: var(--line); background: #fff; color: var(--forest-600); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.has-dot::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--paper-warm);
  border-radius: 50%;
  background: var(--red);
}
.top-divider { width: 1px; height: 22px; margin: 0 4px; background: var(--line); }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 4px 4px 5px; border-radius: 9px; }
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(145deg, #1d6e4e, #0e4a35);
  color: #f6e9c8;
  font-family: var(--serif);
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(201, 170, 106, .28);
}
.user-meta b { display: block; color: var(--ink-900); font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.user-meta small { display: block; color: var(--ink-400); font-size: 9px; line-height: 1.4; }
.user-chip .chev { width: 13px; height: 13px; fill: none; stroke: var(--ink-400); stroke-width: 1.8; margin-left: 2px; }

/* ---------- shared components ---------- */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 20px 22px; }
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 0;
}
.card-head.bordered { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.card-title { color: var(--ink-900); font-size: 14.5px; font-weight: 600; letter-spacing: .02em; }
.card-sub { margin-top: 3px; color: var(--ink-400); font-size: 10.5px; font-weight: 400; letter-spacing: .02em; }
.card-body { padding: 16px 22px 20px; }
.card-link { display: inline-flex; align-items: center; gap: 4px; color: var(--forest-600); font-size: 10.5px; white-space: nowrap; }
.card-link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.card-link:hover { color: var(--forest-800); }
.section-kicker { display: flex; align-items: center; gap: 7px; color: var(--gold-600); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; }
.section-kicker::before { content: ""; width: 16px; height: 1px; background: var(--gold-500); }
.section-title { margin-top: 5px; font-family: var(--serif); font-size: 21px; line-height: 1.35; letter-spacing: .05em; }
.section-desc { margin-top: 5px; color: var(--ink-500); font-size: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-700);
  font-size: 12px;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: transform .16s ease, background .2s ease, border .2s ease, box-shadow .2s ease, color .2s;
}
.btn:hover { border-color: #bcc6ba; background: var(--paper-warm); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary {
  border-color: var(--forest-700);
  background: linear-gradient(170deg, var(--forest-600), var(--forest-800));
  color: #fff;
  box-shadow: 0 8px 18px -12px rgba(10, 53, 39, .7), inset 0 1px rgba(255, 255, 255, .1);
}
.btn-primary:hover { border-color: var(--forest-800); background: linear-gradient(170deg, var(--forest-500), var(--forest-700)); color: #fff; }
.btn-gold { border-color: #b99a5e; background: linear-gradient(170deg, #c9aa6a, #ac8846); color: #2b2415; }
.btn-gold:hover { background: linear-gradient(170deg, #d2b57b, #b7934f); border-color: #a88548; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-500); }
.btn-ghost:hover { border-color: var(--line); background: #fff; }
.btn-danger { border-color: #e4c8c4; background: #fff; color: var(--red); }
.btn-danger:hover { background: var(--red-bg); border-color: #dab3ae; }
.btn-sm { height: 31px; padding: 0 11px; border-radius: 7px; font-size: 10.5px; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-lg { height: 43px; padding: 0 19px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn[disabled] { cursor: not-allowed; opacity: .5; }
.btn-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.pill::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .75; }
.pill.no-dot::before { display: none; }
.pill-treating, .pill-info { color: var(--blue); background: var(--blue-bg); border-color: #d8e6eb; }
.pill-custody, .pill-warning, .pill-quarantining { color: var(--amber); background: var(--amber-bg); border-color: #eedfc5; }
.pill-awaiting, .pill-normal { color: var(--forest-600); background: var(--forest-100); border-color: #d6e6dc; }
.pill-released { color: var(--teal); background: var(--teal-bg); border-color: #d1e5dc; }
.pill-dead, .pill-danger, .pill-weak, .pill-lost { color: var(--red); background: var(--red-bg); border-color: #eed4d0; }
.pill-transferred, .pill-muted { color: var(--ink-500); background: #f3f4f1; border-color: var(--line); }
.pill-migrating, .pill-purple { color: var(--purple); background: var(--purple-bg); border-color: #e2dced; }
.pill-gold { color: var(--gold-600); background: var(--gold-100); border-color: #eadcbe; }
.pill-lg { height: 27px; padding: 0 11px; font-size: 10.5px; }

.level {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
}
.level-一级 { color: #a33f34; background: #f9eae7; border: 1px solid #f0d4cf; }
.level-二级 { color: #9b6d20; background: #faf3e4; border: 1px solid #eddfc3; }
.level-三有 { color: #347052; background: #eaf3ed; border: 1px solid #d6e7dc; }
.level-省级 { color: #356e88; background: #eaf2f5; border: 1px solid #d6e5eb; }

.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; background: var(--paper-warm); border: 1px solid var(--line); color: var(--ink-500); font-size: 9.5px; white-space: nowrap; }
.tag-green { background: var(--forest-50); border-color: #d9e7de; color: var(--forest-600); }
.tag-gold { background: var(--gold-100); border-color: #ebddc0; color: var(--gold-600); }

/* ---------- page heading ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.page-head h1 { font-family: var(--serif); font-size: 26px; line-height: 1.3; letter-spacing: .04em; }
.page-head p { margin-top: 5px; color: var(--ink-500); font-size: 11.5px; }
.page-head-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.page-head-meta { display: flex; align-items: center; gap: 8px; color: var(--ink-400); font-size: 10px; }
.live-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid #d9e7de; border-radius: 99px; color: var(--forest-600); background: var(--forest-50); font-size: 9.5px; }
.live-tag i { width: 5px; height: 5px; border-radius: 50%; background: #4aa77b; box-shadow: 0 0 0 3px rgba(74, 167, 123, .12); }

/* ---------- dashboard hero ---------- */
.hero {
  position: relative;
  min-height: 218px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-radius: 20px;
  padding: 32px 36px;
  color: #f8f4e7;
  background:
    radial-gradient(700px 380px at 88% -30%, rgba(201, 170, 106, .28), transparent 60%),
    radial-gradient(500px 300px at 62% 120%, rgba(43, 133, 98, .35), transparent 68%),
    linear-gradient(112deg, #0d4a35 0%, #093a29 55%, #072d20 100%);
  box-shadow: 0 30px 60px -40px rgba(6, 41, 30, .65);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .3;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000, transparent 80%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 170, 106, .16);
  border-radius: 14px;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 510px; }
.hero-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--gold-400); font-family: var(--num); font-size: 9px; letter-spacing: .24em; }
.hero-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold-400); }
.hero h1 { margin-top: 11px; font-family: var(--serif); font-size: 31px; font-weight: 700; line-height: 1.35; letter-spacing: .06em; }
.hero h1 span { color: #e5cb94; }
.hero-desc { margin-top: 9px; color: rgba(248, 244, 231, .6); font-size: 11.5px; letter-spacing: .03em; }
.hero-actions { display: flex; gap: 9px; margin-top: 20px; }
.hero .btn-primary { border-color: rgba(201, 170, 106, .8); background: linear-gradient(170deg, #c9aa6a, #b18e4d); color: #231d10; box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .8); }
.hero .btn-primary:hover { background: linear-gradient(170deg, #d5b87f, #bb9854); }
.hero .btn-ghost { border-color: rgba(255, 255, 255, .18); color: rgba(248, 244, 231, .82); }
.hero .btn-ghost:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .07); color: #fff; }
.hero-side { position: absolute; right: 0; top: 0; bottom: 0; width: 52%; pointer-events: none; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-stats {
  position: absolute;
  right: 34px;
  bottom: 27px;
  z-index: 3;
  display: flex;
  gap: 26px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(4, 28, 19, .26);
  backdrop-filter: blur(6px);
}
.hero-stat b { display: block; color: #f1dfb7; font-family: var(--num); font-size: 17px; font-weight: 500; line-height: 1.2; }
.hero-stat span { display: block; margin-top: 2px; color: rgba(255, 255, 255, .47); font-size: 8.5px; letter-spacing: .08em; }
.hero-seal {
  position: absolute;
  top: 24px;
  right: 30px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201, 170, 106, .35);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-400);
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
  letter-spacing: .06em;
  opacity: .9;
}

/* ---------- stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.stat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 112px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border .25s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d7ddd4; }
.stat-card::after { content: ""; position: absolute; left: 18px; bottom: 0; width: 28px; height: 2px; background: var(--gold-500); opacity: .5; }
.stat-label { display: flex; align-items: center; gap: 6px; color: var(--ink-500); font-size: 10.5px; letter-spacing: .04em; }
.stat-label i { width: 4px; height: 4px; border-radius: 50%; background: var(--forest-500); }
.stat-value { margin-top: 7px; color: var(--ink-900); font-family: var(--num); font-size: 31px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.stat-value small { margin-left: 4px; color: var(--ink-400); font-family: var(--sans); font-size: 10px; font-weight: 400; }
.stat-foot { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: var(--ink-400); font-size: 9.5px; }
.stat-delta { color: var(--forest-600); font-family: var(--num); font-size: 10px; }
.stat-delta.warn { color: var(--amber); }
.stat-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #e1e9e2; border-radius: 10px; background: var(--forest-50); color: var(--forest-600); }
.stat-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.stat-card[data-tone="amber"] .stat-icon { border-color: #eee2cc; background: var(--amber-bg); color: var(--amber); }
.stat-card[data-tone="blue"] .stat-icon { border-color: #dce8ed; background: var(--blue-bg); color: var(--blue); }
.stat-card[data-tone="gold"] .stat-icon { border-color: #ecdfc5; background: var(--gold-100); color: var(--gold-600); }

/* ---------- dashboard grids ---------- */
.dash-row { display: grid; gap: 16px; margin-top: 16px; }
.dash-row.cols-8-4 { grid-template-columns: minmax(0, 1.92fr) minmax(300px, 1fr); }
.dash-row.cols-7-5 { grid-template-columns: minmax(0, 1.55fr) minmax(330px, 1fr); }
.dash-row.cols-6-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chart-card .card-body { padding: 10px 18px 16px; }
.chart-meta { display: flex; align-items: center; gap: 20px; margin-top: 6px; }
.chart-legend { display: flex; align-items: center; gap: 14px; color: var(--ink-500); font-size: 9.5px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 14px; height: 2px; border-radius: 2px; background: var(--forest-600); }
.chart-legend i.gold { background: var(--gold-500); }
.chart-period { display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper-warm); }
.chart-period button { height: 24px; padding: 0 9px; border: 0; border-radius: 5px; background: transparent; color: var(--ink-400); font-size: 9.5px; }
.chart-period button.active { background: #fff; color: var(--forest-700); box-shadow: 0 1px 3px rgba(21, 36, 29, .1); }
.chart-svg { width: 100%; height: auto; overflow: visible; }
.chart-svg .grid-line { stroke: #edf0e9; stroke-width: 1; }
.chart-svg .axis-label { fill: #9aa59d; font-family: var(--sans); font-size: 9px; }
.chart-svg .line-in { fill: none; stroke: var(--forest-600); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.chart-svg .line-out { fill: none; stroke: var(--gold-500); stroke-width: 1.8; stroke-dasharray: 4 4; stroke-linecap: round; stroke-linejoin: round; }
.chart-svg .dot-in { fill: #fff; stroke: var(--forest-600); stroke-width: 2; }
.chart-svg .dot-out { fill: #fff; stroke: var(--gold-500); stroke-width: 2; }
.chart-svg .bar { fill: rgba(35, 124, 88, .1); }
.chart-svg .bar-gold { fill: rgba(184, 148, 79, .18); }
.chart-note { padding: 7px 10px; border-left: 2px solid var(--gold-500); background: var(--paper-warm); color: var(--ink-500); font-size: 9.5px; border-radius: 0 5px 5px 0; }

/* todo */
.todo-list { display: flex; flex-direction: column; }
.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  cursor: pointer;
}
.todo-item:last-child { border-bottom: 0; padding-bottom: 4px; }
.todo-item:first-child { padding-top: 5px; }
.todo-time { flex: 0 0 40px; padding-top: 1px; color: var(--forest-700); font-family: var(--num); font-size: 11px; letter-spacing: .02em; }
.todo-main { min-width: 0; flex: 1; }
.todo-main b { display: block; color: var(--ink-700); font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-main span { display: block; margin-top: 2px; color: var(--ink-400); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-item:hover .todo-main b { color: var(--forest-600); }
.todo-level { flex: 0 0 auto; margin-top: 1px; }
.todo-item .pill { height: 19px; padding: 0 6px; font-size: 8.5px; }
.mini-empty { padding: 26px 0; color: var(--ink-400); font-size: 11px; text-align: center; }

/* notice strip */
.notice-strip { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 14px; border: 1px solid #e9dfc9; border-radius: 10px; background: linear-gradient(90deg, #fbf6ea, #fdfbf6); }
.notice-strip .notice-icon { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); }
.notice-strip .notice-icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.notice-strip b { color: #7c5c25; font-size: 10.5px; font-weight: 600; }
.notice-strip span { color: #92784b; font-size: 10px; }
.notice-strip .card-link { margin-left: auto; color: #8a6b31; }

/* ---------- table ---------- */
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; flex-wrap: wrap; }
.filter-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-chip {
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-500);
  font-size: 10.5px;
  transition: all .2s;
}
.filter-chip b { margin-left: 4px; color: var(--ink-400); font-family: var(--num); font-weight: 500; }
.filter-chip:hover { border-color: #cbd4c9; color: var(--forest-600); }
.filter-chip.active { border-color: var(--forest-700); background: var(--forest-700); color: #fff; box-shadow: 0 5px 12px -8px rgba(10, 53, 39, .7); }
.filter-chip.active b { color: rgba(255, 255, 255, .65); }
.toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search-field {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 220px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.search-field svg { width: 14px; height: 14px; flex: 0 0 14px; fill: none; stroke: var(--ink-400); stroke-width: 1.8; }
.search-field input { width: 100%; border: 0; outline: none; background: transparent; font-size: 10.5px; }
.select-field {
  height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%2387938b' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--ink-700);
  font-size: 10.5px;
  appearance: none;
  outline: none;
}
.select-field:focus { border-color: rgba(35, 124, 88, .4); }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fafaf6;
  color: var(--ink-400);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-align: left;
  white-space: nowrap;
}
.data-table td { padding: 12px; border-bottom: 1px solid #eef0e9; color: var(--ink-700); font-size: 10.5px; vertical-align: middle; }
.data-table tbody tr { cursor: pointer; transition: background .18s ease; }
.data-table tbody tr:hover { background: #fafbf7; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.cell-main { display: flex; align-items: center; gap: 9px; min-width: 150px; }
.cell-main b { display: block; color: var(--ink-900); font-size: 11.5px; font-weight: 500; line-height: 1.4; }
.cell-main small { display: block; margin-top: 1px; color: var(--ink-400); font-size: 8.5px; letter-spacing: .03em; }
.cell-code { color: var(--forest-700); font-family: var(--num); font-size: 10px; letter-spacing: .02em; white-space: nowrap; }
.cell-sub { display: block; margin-top: 2px; color: var(--ink-400); font-size: 9px; }
.cell-location { display: flex; align-items: flex-start; gap: 4px; max-width: 180px; color: var(--ink-500); font-size: 9.5px; line-height: 1.5; }
.cell-location svg { width: 11px; height: 11px; flex: 0 0 11px; margin-top: 2px; fill: none; stroke: var(--ink-400); stroke-width: 1.8; }
.row-actions { display: flex; align-items: center; gap: 3px; }
.row-actions .icon-btn { width: 28px; height: 28px; border-radius: 6px; }
.row-actions .icon-btn svg { width: 14px; height: 14px; }
.species-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  overflow: hidden;
  border: 1px solid rgba(21, 36, 29, .06);
  border-radius: 9px;
  background: linear-gradient(145deg, #edf3ee, #dfeae2);
  color: var(--forest-600);
}
.species-avatar svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.species-avatar[data-tone="mammal"] { background: linear-gradient(145deg, #f3eee3, #eae1cf); color: #8f7138; }
.species-avatar[data-tone="night"] { background: linear-gradient(145deg, #eef0ef, #e0e5e2); color: #586d62; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 2px 2px; color: var(--ink-400); font-size: 9.5px; }
.pagination { display: flex; align-items: center; gap: 4px; }
.pagination button { min-width: 26px; height: 26px; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink-500); font-size: 9.5px; }
.pagination button:hover:not(:disabled) { border-color: #cbd4c9; color: var(--forest-600); }
.pagination button.active { border-color: var(--forest-700); background: var(--forest-700); color: #fff; }
.pagination button:disabled { color: var(--ink-300); cursor: not-allowed; background: #fafaf6; }
.page-empty { padding: 50px 20px; text-align: center; }
.page-empty svg { width: 44px; height: 44px; margin: 0 auto 12px; fill: none; stroke: var(--ink-300); stroke-width: 1.2; }
.page-empty b { display: block; color: var(--ink-700); font-size: 13px; font-weight: 500; }
.page-empty p { margin-top: 4px; color: var(--ink-400); font-size: 10.5px; }

/* ---------- map ---------- */
.map-card { overflow: hidden; }
.map-card .card-head { padding-bottom: 12px; }
.map-shell { position: relative; height: 332px; margin: 0 14px 14px; overflow: hidden; border: 1px solid #dae3d8; border-radius: 12px; background: #eaf0e7; }
.map-shell.large { height: 554px; margin: 0; border-radius: 0 0 var(--radius) var(--radius); }
.map-svg { width: 100%; height: 100%; display: block; }
.map-legend { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 9px; padding: 6px 9px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 6px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px); color: var(--ink-500); font-size: 8.5px; }
.map-legend span { display: flex; align-items: center; gap: 4px; }
.map-legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--forest-600); }
.map-legend i.weak { background: var(--red); }
.map-legend i.migrating { background: var(--purple); }
.map-tools { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 5px; }
.map-tool { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .8); border-radius: 6px; background: rgba(255, 255, 255, .9); color: var(--ink-500); box-shadow: 0 3px 8px rgba(21, 36, 29, .08); }
.map-tool svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.map-badge { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 6px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); color: var(--ink-600); font-size: 9px; }
.map-badge i { width: 5px; height: 5px; border-radius: 50%; background: #47a578; box-shadow: 0 0 0 3px rgba(71, 165, 120, .15); }
.map-marker { cursor: pointer; }
.map-marker .marker-halo { fill: rgba(35, 124, 88, .09); }
.map-marker .marker-core { fill: #1f7a54; stroke: #fff; stroke-width: 2; }
.map-marker .marker-label { fill: #254337; font-size: 10px; font-weight: 500; }
.map-marker .marker-sublabel { fill: #718278; font-size: 8.5px; }
.map-marker .marker-line { stroke: rgba(35, 124, 88, .45); stroke-width: 1; stroke-dasharray: 2 3; }
.map-marker.weak .marker-core { fill: var(--red); }
.map-marker.weak .marker-halo { fill: rgba(180, 72, 60, .1); }
.map-marker.migrating .marker-core { fill: var(--purple); }
.map-marker.migrating .marker-halo { fill: rgba(108, 92, 140, .1); }
.map-marker .route-line { fill: none; stroke: rgba(35, 124, 88, .5); stroke-width: 1.5; stroke-dasharray: 4 5; stroke-linecap: round; }
.map-marker.active .marker-halo { animation: markerPulse 2.1s ease-out infinite; }
.map-marker.active .marker-core { stroke-width: 2.5; }
@keyframes markerPulse { 0% { r: 12; opacity: .7; } 100% { r: 30; opacity: 0; } }
.map-info {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 218px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 9px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 30px -18px rgba(21, 36, 29, .4);
  backdrop-filter: blur(10px);
}
.map-info-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.map-info b { font-size: 11px; }
.map-info small { display: block; margin-top: 2px; color: var(--ink-400); font-size: 8.5px; }
.map-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.map-info-grid span { display: block; color: var(--ink-400); font-size: 8px; }
.map-info-grid b { display: block; margin-top: 1px; color: var(--ink-700); font-family: var(--num); font-size: 10px; font-weight: 500; }
.tracker-list { display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow-y: auto; }
.tracker-item { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px; cursor: pointer; transition: background .16s; }
.tracker-item:hover { background: var(--paper-warm); }
.tracker-item.active { background: var(--forest-50); box-shadow: inset 2px 0 var(--forest-500); }
.tracker-item .species-avatar { width: 31px; height: 31px; flex-basis: 31px; }
.tracker-item .species-avatar svg { width: 22px; height: 22px; }
.tracker-main { min-width: 0; flex: 1; }
.tracker-main b { display: block; color: var(--ink-700); font-size: 10.5px; font-weight: 500; }
.tracker-main span { display: block; margin-top: 1px; color: var(--ink-400); font-size: 8.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tracker-side { text-align: right; }
.tracker-side b { display: block; font-family: var(--num); font-size: 10px; font-weight: 500; color: var(--forest-600); }
.tracker-side small { display: block; margin-top: 1px; color: var(--ink-400); font-size: 8px; }

/* ---------- timeline ---------- */
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 8px; width: 1px; background: linear-gradient(var(--forest-500), #d8e2d9 80%, transparent); }
.timeline-item { position: relative; padding: 0 0 17px 12px; }
.timeline-item:last-child { padding-bottom: 2px; }
.timeline-item::before { content: ""; position: absolute; left: -18px; top: 5px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--forest-500); box-shadow: 0 0 0 1px var(--forest-500); }
.timeline-item.pending::before { background: #fff; border-color: #c8d2c9; box-shadow: 0 0 0 1px #c8d2c9; }
.timeline-item b { display: block; color: var(--ink-700); font-size: 10.5px; font-weight: 500; }
.timeline-item time { position: absolute; right: 0; top: 0; color: var(--ink-400); font-family: var(--num); font-size: 8.5px; }
.timeline-item span { display: block; margin-top: 2px; color: var(--ink-400); font-size: 9px; line-height: 1.55; }
.timeline-item.pending b { color: var(--ink-400); }

/* ---------- release summary ---------- */
.release-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.mini-stat { padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mini-stat span { color: var(--ink-400); font-size: 9.5px; }
.mini-stat b { display: block; margin-top: 4px; color: var(--ink-900); font-family: var(--num); font-size: 24px; font-weight: 600; line-height: 1.2; }
.mini-stat b small { margin-left: 3px; color: var(--ink-400); font-family: var(--sans); font-size: 9px; font-weight: 400; }
.mini-stat i { display: block; width: 22px; height: 2px; margin-top: 9px; background: var(--gold-500); opacity: .5; }
.alert-list { display: flex; flex-direction: column; }
.alert-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.alert-item:last-child { border: 0; }
.alert-icon { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 7px; background: var(--red-bg); color: var(--red); }
.alert-icon.warn { background: var(--amber-bg); color: var(--amber); }
.alert-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.alert-main b { display: block; color: var(--ink-700); font-size: 10.5px; font-weight: 500; }
.alert-main span { display: block; margin-top: 2px; color: var(--ink-400); font-size: 9px; line-height: 1.5; }
.alert-time { margin-left: auto; color: var(--ink-400); font-size: 8px; white-space: nowrap; }

/* ---------- article/education ---------- */
.edu-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
  align-items: center;
  padding: 30px 34px;
  border-radius: 18px;
  background:
    radial-gradient(500px 280px at 90% 0%, rgba(201, 170, 106, .2), transparent 65%),
    linear-gradient(120deg, #0d4a35, #073326);
  color: #f7f2e4;
}
.edu-hero::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='260' viewBox='0 0 360 260'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='.7' opacity='.14'%3E%3Cpath d='M-20 220c70-58 130-45 180-12 52 34 110 28 220-42'/%3E%3Cpath d='M-30 245c74-60 138-48 190-14 54 36 114 28 230-48'/%3E%3Cpath d='M-10 195c66-54 122-42 170-10 50 32 106 26 214-38'/%3E%3C/g%3E%3C/svg%3E") no-repeat right bottom; background-size: cover; opacity: .8; pointer-events: none; }
.edu-hero h2 { position: relative; margin-top: 9px; font-family: var(--serif); font-size: 28px; letter-spacing: .06em; line-height: 1.35; }
.edu-hero p { position: relative; margin-top: 8px; color: rgba(247, 242, 228, .6); font-size: 11.5px; line-height: 1.8; }
.edu-hero .btn-group { position: relative; margin-top: 18px; }
.edu-hero .btn-ghost { border-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .8); }
.official-card { position: relative; display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 12px; background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); }
.qr-box { width: 86px; height: 86px; flex: 0 0 86px; padding: 7px; border-radius: 6px; background: #fff; }
.qr-box svg { width: 100%; height: 100%; }
.official-card b { display: block; font-size: 12px; font-weight: 500; }
.official-card span { display: block; margin-top: 3px; color: rgba(255, 255, 255, .48); font-size: 9px; line-height: 1.6; }
.official-card .btn { margin-top: 9px; height: 28px; padding: 0 10px; font-size: 9.5px; border-color: rgba(201, 170, 106, .5); background: rgba(201, 170, 106, .14); color: #e8d2a2; }
.article-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.article-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; cursor: pointer; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-cover { position: relative; height: 118px; overflow: hidden; background: linear-gradient(135deg, #dce9df, #c0d6c7); }
.article-cover::before { content: ""; position: absolute; inset: 0; opacity: .55; background-image: radial-gradient(circle at 22% 28%, rgba(255, 255, 255, .7), transparent 22%), linear-gradient(130deg, transparent 50%, rgba(9, 56, 40, .16)); }
.article-cover svg { position: absolute; right: 10px; bottom: -4px; width: 110px; height: 90px; fill: none; stroke: rgba(13, 74, 53, .55); stroke-width: 1.1; opacity: .9; }
.article-cover .article-cat { position: absolute; left: 11px; top: 10px; z-index: 2; display: inline-flex; align-items: center; height: 21px; padding: 0 7px; border-radius: 3px; background: rgba(255, 255, 255, .86); color: var(--forest-700); font-size: 8.5px; }
.article-body { padding: 13px 14px 14px; }
.article-body h4 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; color: var(--ink-900); font-family: var(--serif); font-size: 13px; font-weight: 700; line-height: 1.55; }
.article-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 5px; color: var(--ink-400); font-size: 9.5px; line-height: 1.65; }
.article-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 9px; border-top: 1px solid #f0f1ec; color: var(--ink-400); font-size: 8.5px; }
.article-foot span { display: flex; align-items: center; gap: 4px; }
.article-foot svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.article-cover[data-tone="law"] { background: linear-gradient(135deg, #e9e4d5, #d6c9ac); }
.article-cover[data-tone="swan"] { background: linear-gradient(135deg, #d9e9ea, #b7d5d4); }
.article-cover[data-tone="bird"] { background: linear-gradient(135deg, #e5eadb, #c9d6b9); }
.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.activity-item:last-child { border: 0; }
.activity-date { width: 46px; flex: 0 0 46px; text-align: center; padding: 4px 0; border: 1px solid var(--line); border-radius: 7px; background: var(--paper-warm); }
.activity-date b { display: block; color: var(--forest-700); font-family: var(--num); font-size: 16px; font-weight: 600; line-height: 1.2; }
.activity-date span { display: block; color: var(--ink-400); font-size: 8px; }
.activity-main { min-width: 0; flex: 1; }
.activity-main b { display: block; color: var(--ink-700); font-size: 10.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-main span { display: block; margin-top: 2px; color: var(--ink-400); font-size: 8.5px; }

/* ---------- research ---------- */
.research-summary { display: grid; grid-template-columns: .9fr 1.4fr; gap: 16px; }
.research-hero { position: relative; overflow: hidden; padding: 26px 28px; border-radius: 16px; color: #f8f4e8; background: linear-gradient(130deg, #0e4c36, #073326); }
.research-hero::after { content: ""; position: absolute; width: 240px; height: 240px; right: -80px; bottom: -100px; border: 1px solid rgba(201, 170, 106, .18); border-radius: 50%; box-shadow: 0 0 0 28px rgba(201, 170, 106, .04), 0 0 0 56px rgba(201, 170, 106, .03); }
.research-hero h2 { position: relative; margin-top: 8px; font-family: var(--serif); font-size: 23px; line-height: 1.4; letter-spacing: .05em; }
.research-hero p { position: relative; margin-top: 7px; color: rgba(248, 244, 232, .55); font-size: 10.5px; line-height: 1.75; }
.research-hero .metric-row { position: relative; display: flex; gap: 26px; margin-top: 20px; }
.research-hero .metric-row b { display: block; color: #e9d3a2; font-family: var(--num); font-size: 22px; font-weight: 600; }
.research-hero .metric-row span { display: block; margin-top: 1px; color: rgba(255, 255, 255, .4); font-size: 8.5px; }
.research-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.research-stat { padding: 17px 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.research-stat span { color: var(--ink-400); font-size: 9.5px; }
.research-stat b { display: block; margin-top: 4px; color: var(--ink-900); font-family: var(--num); font-size: 26px; font-weight: 600; }
.research-stat b small { margin-left: 3px; color: var(--ink-400); font-family: var(--sans); font-size: 9px; font-weight: 400; }
.research-stat em { display: block; margin-top: 2px; color: var(--ink-400); font-size: 8.5px; font-style: normal; }
.donut-wrap { display: flex; align-items: center; gap: 22px; }
.donut { width: 132px; height: 132px; flex: 0 0 132px; }
.donut-center { font-family: var(--num); font-size: 20px; font-weight: 600; fill: var(--ink-900); }
.donut-center-sub { font-family: var(--sans); font-size: 8px; fill: var(--ink-400); }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.donut-legend div { display: flex; align-items: center; gap: 7px; color: var(--ink-500); font-size: 9.5px; }
.donut-legend i { width: 7px; height: 7px; border-radius: 2px; }
.donut-legend b { margin-left: auto; color: var(--ink-700); font-family: var(--num); font-size: 10px; font-weight: 500; }
.bar-chart { display: flex; align-items: flex-end; gap: 12px; height: 126px; padding-top: 8px; }
.bar-group { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; }
.bar-group span { display: block; width: 9px; border-radius: 2px 2px 0 0; background: var(--forest-500); opacity: .85; transition: height .5s ease; }
.bar-group span.gold { background: var(--gold-400); opacity: .9; }
.bar-labels { display: flex; gap: 12px; margin-top: 6px; }
.bar-labels span { flex: 1; text-align: center; color: var(--ink-400); font-size: 8px; }
.project-list { display: flex; flex-direction: column; }
.project-item { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.project-item:last-child { border: 0; padding-bottom: 2px; }
.project-top { display: flex; justify-content: space-between; gap: 10px; }
.project-top b { color: var(--ink-700); font-size: 10.5px; font-weight: 500; }
.project-top .pill { height: 18px; padding: 0 6px; font-size: 8px; }
.project-meta { display: flex; gap: 10px; margin-top: 3px; color: var(--ink-400); font-size: 8.5px; }
.progress { height: 4px; margin-top: 8px; overflow: hidden; border-radius: 4px; background: #eef0e9; }
.progress i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--forest-500), #71ae8d); }
.progress-label { display: flex; justify-content: space-between; margin-top: 4px; color: var(--ink-400); font-size: 8px; }

/* ---------- detail ---------- */
.back-link { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 12px; color: var(--ink-500); font-size: 10.5px; }
.back-link:hover { color: var(--forest-600); }
.back-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.detail-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  min-height: 164px;
  border: 1px solid #dce4da;
  border-radius: 18px;
  background: linear-gradient(108deg, #fbfcf8 0%, #f4f8f3 58%, #eaf2ea 100%);
}
.detail-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 220px at 90% 0%, rgba(184, 148, 79, .12), transparent 70%); }
.detail-copy { position: relative; z-index: 2; flex: 1; min-width: 0; padding: 22px 26px; }
.detail-kicker { display: flex; align-items: center; gap: 8px; color: var(--ink-400); font-family: var(--num); font-size: 9px; letter-spacing: .08em; }
.detail-title { display: flex; align-items: center; gap: 11px; margin-top: 4px; flex-wrap: wrap; }
.detail-title h1 { font-family: var(--serif); font-size: 26px; letter-spacing: .05em; line-height: 1.3; }
.detail-title .latin { color: var(--ink-400); font-family: var(--sans); font-size: 9.5px; font-style: italic; letter-spacing: .02em; }
.detail-summary { max-width: 620px; margin-top: 6px; color: var(--ink-500); font-size: 10.5px; line-height: 1.7; }
.detail-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.detail-meta span { display: flex; align-items: center; gap: 4px; color: var(--ink-400); font-size: 9.5px; }
.detail-meta svg { width: 12px; height: 12px; fill: none; stroke: var(--ink-400); stroke-width: 1.7; }
.detail-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.species-portrait { position: relative; z-index: 2; width: 228px; flex: 0 0 228px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-left: 1px solid rgba(21, 36, 29, .06); }
.species-portrait svg { width: 205px; height: 160px; overflow: visible; }
.species-portrait .portrait-halo { fill: rgba(35, 124, 88, .07); }
.species-portrait .portrait-line { fill: none; stroke: rgba(18, 87, 61, .55); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.species-portrait .portrait-fill { fill: rgba(35, 124, 88, .09); }
.species-portrait .portrait-gold { fill: none; stroke: rgba(184, 148, 79, .65); stroke-width: 1; }
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin-top: 14px; padding: 15px 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.step { position: relative; min-width: 0; }
.step::before { content: ""; position: absolute; top: 9px; left: 22px; right: 0; height: 1px; background: #e2e7df; }
.step:last-child::before { display: none; }
.step.done::before { background: #b9d3c2; }
.step-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid #d7ded5; border-radius: 50%; background: #fff; color: var(--ink-300); font-family: var(--num); font-size: 8px; }
.step.done .step-dot { border-color: var(--forest-600); background: var(--forest-600); color: #fff; }
.step.current .step-dot { border-color: var(--gold-500); background: var(--gold-100); color: var(--gold-600); box-shadow: 0 0 0 3px rgba(184, 148, 79, .13); }
.step b { display: block; margin-top: 7px; color: var(--ink-400); font-size: 9.5px; font-weight: 500; white-space: nowrap; }
.step.done b { color: var(--ink-700); }
.step.current b { color: var(--gold-600); }
.step small { display: block; margin-top: 1px; color: var(--ink-300); font-size: 8px; white-space: nowrap; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 16px; margin-top: 16px; align-items: start; }
.detail-main { min-width: 0; }
.tabs { display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #eceee7; }
.tab { height: 34px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-500); font-size: 10.5px; }
.tab:hover { color: var(--forest-600); }
.tab.active { background: #fff; color: var(--forest-700); box-shadow: 0 2px 8px -4px rgba(21, 36, 29, .3); }
.tab-panel { margin-top: 12px; }
.panel-card { padding: 20px 22px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.panel-title { color: var(--ink-900); font-size: 13px; font-weight: 600; }
.panel-sub { margin-top: 3px; color: var(--ink-400); font-size: 9.5px; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.info-item { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fdfdfa; }
.info-item span { display: block; color: var(--ink-400); font-size: 8.5px; letter-spacing: .02em; }
.info-item b { display: block; margin-top: 3px; color: var(--ink-700); font-size: 10.5px; font-weight: 500; word-break: break-all; }
.info-item.wide { grid-column: span 2; }
.info-item.full { grid-column: 1 / -1; }
.individual-box { display: flex; align-items: center; gap: 14px; padding: 13px 15px; border: 1px solid #dce7dd; border-radius: 10px; background: var(--forest-50); }
.individual-box .species-avatar { width: 40px; height: 40px; flex-basis: 40px; background: #fff; }
.individual-box .species-avatar svg { width: 28px; height: 28px; }
.individual-main { flex: 1; min-width: 0; }
.individual-main b { display: block; color: var(--forest-800); font-family: var(--num); font-size: 11px; font-weight: 600; }
.individual-main span { display: block; margin-top: 2px; color: var(--ink-500); font-size: 9px; }
.individual-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.section-note { margin-top: 12px; padding: 9px 12px; border-left: 2px solid var(--gold-500); border-radius: 0 5px 5px 0; background: var(--paper-warm); color: var(--ink-500); font-size: 9.5px; line-height: 1.7; }
.sample-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sample-card { position: relative; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fdfdfa; }
.sample-card::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--gold-500); opacity: .55; }
.sample-type { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sample-type b { color: var(--ink-700); font-size: 11px; font-weight: 500; }
.sample-card > span { display: block; margin-top: 4px; color: var(--ink-400); font-family: var(--num); font-size: 8.5px; }
.sample-result { margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--line); color: var(--ink-500); font-size: 9px; line-height: 1.5; }
.lab-list { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.lab-card { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fdfdfa; transition: border .2s, background .2s; }
.lab-card:hover { border-color: #cdd8cc; background: #fff; }
.lab-thumb { position: relative; width: 54px; height: 66px; flex: 0 0 54px; overflow: hidden; border: 1px solid #e2e4dc; border-radius: 5px; background: #fff; cursor: zoom-in; }
.lab-thumb::before { content: ""; position: absolute; left: 8px; right: 8px; top: 12px; height: 1px; background: #c9d2c9; box-shadow: 0 5px #dce2da, 0 10px #dce2da, 0 15px #dce2da, 0 20px #dce2da, 0 25px #dce2da, 0 30px #dce2da, 0 35px #dce2da; }
.lab-thumb::after { content: "化验单"; position: absolute; left: 7px; bottom: 4px; color: var(--ink-400); font-size: 7px; letter-spacing: .05em; }
.lab-thumb .stamp { position: absolute; right: 5px; bottom: 17px; width: 18px; height: 18px; border: 1px solid rgba(180, 72, 60, .4); border-radius: 50%; }
.lab-main { flex: 1; min-width: 0; }
.lab-main b { display: block; color: var(--ink-700); font-size: 10.5px; font-weight: 500; }
.lab-main span { display: block; margin-top: 2px; color: var(--ink-400); font-size: 8.5px; }
.lab-main p { margin-top: 4px; color: var(--ink-500); font-size: 9px; line-height: 1.5; }
.lab-side { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.lab-side .file-count { color: var(--ink-400); font-size: 8px; }
.treatment-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #dae7dd; border-radius: 10px; background: var(--forest-50); }
.treatment-banner .icon-badge { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 8px; background: #fff; color: var(--forest-600); }
.treatment-banner .icon-badge svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.treatment-banner b { display: block; color: var(--forest-800); font-size: 10.5px; font-weight: 500; }
.treatment-banner span { display: block; margin-top: 1px; color: var(--ink-500); font-size: 9px; }
.treatment-list { position: relative; margin-top: 6px; }
.treatment-item { position: relative; padding: 13px 0 13px 24px; border-bottom: 1px dashed var(--line); }
.treatment-item:last-child { border: 0; }
.treatment-item::before { content: ""; position: absolute; left: 4px; top: 19px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: var(--forest-500); box-shadow: 0 0 0 1px #b9d0c0; }
.treatment-item::after { content: ""; position: absolute; left: 7px; top: 30px; bottom: -1px; width: 1px; background: #e2e8df; }
.treatment-item:last-child::after { display: none; }
.treatment-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.treatment-top b { color: var(--ink-700); font-size: 10.5px; font-weight: 500; }
.treatment-top time { margin-left: auto; color: var(--ink-400); font-family: var(--num); font-size: 8.5px; }
.treatment-item p { margin-top: 4px; color: var(--ink-500); font-size: 9.5px; line-height: 1.65; }
.treatment-next { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; color: var(--gold-600); font-size: 8.5px; }
.treatment-next svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.feeding-table { width: 100%; border-collapse: collapse; }
.feeding-table th { padding: 7px 8px; border-bottom: 1px solid var(--line); color: var(--ink-400); font-size: 8.5px; font-weight: 500; text-align: left; white-space: nowrap; }
.feeding-table td { padding: 8px; border-bottom: 1px solid #f0f1ec; color: var(--ink-600); font-size: 9px; }
.feeding-table tr:last-child td { border: 0; }
.disposition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.disposition-option { padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fdfdfa; text-align: left; transition: all .2s; }
.disposition-option:hover { border-color: #b9cdbd; background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.disposition-option .icon-badge { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--forest-50); color: var(--forest-600); }
.disposition-option[data-type="death"] .icon-badge { background: var(--red-bg); color: var(--red); }
.disposition-option[data-type="custody"] .icon-badge { background: var(--amber-bg); color: var(--amber); }
.disposition-option .icon-badge svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.disposition-option b { display: block; margin-top: 10px; color: var(--ink-700); font-size: 11px; font-weight: 500; }
.disposition-option span { display: block; margin-top: 3px; color: var(--ink-400); font-size: 8.5px; line-height: 1.5; }
.disposition-done { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border: 1px solid #d9e7de; border-radius: 11px; background: var(--forest-50); }
.disposition-done .icon-badge { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 50%; background: var(--forest-600); color: #fff; }
.disposition-done .icon-badge svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.disposition-done b { display: block; color: var(--forest-800); font-size: 11px; }
.disposition-done span { display: block; margin-top: 2px; color: var(--ink-500); font-size: 9px; line-height: 1.6; }
.aside-stack { display: flex; flex-direction: column; gap: 14px; }
.aside-card { padding: 17px 18px; }
.aside-title { display: flex; align-items: center; gap: 7px; color: var(--ink-900); font-size: 11.5px; font-weight: 600; }
.aside-title svg { width: 14px; height: 14px; fill: none; stroke: var(--gold-600); stroke-width: 1.8; }
.aside-empty { padding: 12px 0 4px; color: var(--ink-400); font-size: 9.5px; }
.team-list { display: flex; flex-direction: column; gap: 9px; margin-top: 11px; }
.team-item { display: flex; align-items: center; gap: 9px; }
.team-avatar { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 8px; background: var(--forest-50); color: var(--forest-700); font-family: var(--serif); font-size: 10px; }
.team-item b { display: block; color: var(--ink-700); font-size: 10px; font-weight: 500; }
.team-item span { display: block; color: var(--ink-400); font-size: 8.5px; }
.key-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 12px; }
.key-facts div { padding: 8px 9px; border-radius: 7px; background: var(--paper-warm); }
.key-facts span { display: block; color: var(--ink-400); font-size: 8px; }
.key-facts b { display: block; margin-top: 2px; color: var(--ink-700); font-family: var(--num); font-size: 10px; font-weight: 500; }

/* ---------- survey ---------- */
.survey-stage { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; min-height: 340px; padding: 42px; border-radius: 20px; background: linear-gradient(125deg, #fbfcf8, #eef4ed); border: 1px solid #dde6db; }
.survey-stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(21, 36, 29, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 36, 29, .025) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(circle at 80% 40%, #000, transparent 72%); }
.survey-copy { position: relative; z-index: 2; }
.survey-copy h1 { margin-top: 8px; font-family: var(--serif); font-size: 30px; letter-spacing: .06em; line-height: 1.4; }
.survey-copy p { max-width: 500px; margin-top: 9px; color: var(--ink-500); font-size: 11.5px; line-height: 1.85; }
.survey-copy .btn-group { margin-top: 20px; }
.survey-art { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; }
.survey-art svg { width: 100%; max-width: 360px; height: auto; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.feature-card { padding: 19px 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.feature-card .feature-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--forest-50); color: var(--forest-600); }
.feature-card .feature-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; }
.feature-card b { display: block; margin-top: 12px; color: var(--ink-700); font-size: 11.5px; font-weight: 500; }
.feature-card p { margin-top: 4px; color: var(--ink-400); font-size: 9.5px; line-height: 1.7; }
.api-preview { overflow: hidden; border-radius: 12px; background: #0c271d; }
.api-preview-head { display: flex; align-items: center; gap: 6px; padding: 10px 13px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.api-preview-head i { width: 6px; height: 6px; border-radius: 50%; background: #557064; }
.api-preview-head span { margin-left: 5px; color: rgba(255, 255, 255, .35); font-family: var(--num); font-size: 8.5px; }
.api-code { margin: 0; padding: 15px 17px; overflow-x: auto; color: #c9ddcf; font-family: "Cascadia Code", "Consolas", monospace; font-size: 9.5px; line-height: 1.8; }
.api-code .k { color: #dfc78f; }
.api-code .s { color: #9ed0b2; }
.api-code .c { color: #637e6f; }
.status-banner { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 11px 14px; border: 1px solid #e8ddc6; border-radius: 9px; background: #fbf7ed; color: #8a6a2f; font-size: 10px; }
.status-banner svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- forms & modal ---------- */
.modal-root { position: fixed; inset: 0; z-index: 1000; display: none; }
.modal-root.open { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(4, 22, 15, .5); backdrop-filter: blur(3px); animation: fadeIn .2s ease; }
.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 590px;
  max-height: calc(100dvh - 56px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: modalIn .24s cubic-bezier(.2, .8, .2, 1);
}
.modal.wide { max-width: 760px; }
.modal.narrow { max-width: 470px; }
.modal-head { display: flex; align-items: flex-start; gap: 16px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-family: var(--serif); font-size: 18px; letter-spacing: .04em; line-height: 1.35; }
.modal-head p { margin-top: 3px; color: var(--ink-400); font-size: 9.5px; }
.modal-close { margin-left: auto; width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink-400); }
.modal-close:hover { border-color: var(--line); background: var(--paper-warm); color: var(--ink-700); }
.modal-close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.modal-body { flex: 1; overflow-y: auto; padding: 18px 22px 22px; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 13px 22px; border-top: 1px solid var(--line); background: #fcfcf9; }
.modal-foot .foot-note { margin-right: auto; color: var(--ink-400); font-size: 8.5px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -47%) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.form-section { margin-bottom: 18px; }
.form-section:last-child { margin-bottom: 0; }
.form-section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; color: var(--ink-900); font-size: 11px; font-weight: 600; }
.form-section-title::before { content: attr(data-no); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: var(--forest-50); color: var(--forest-600); font-family: var(--num); font-size: 8px; font-weight: 500; }
.form-section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 13px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 5px; color: var(--ink-500); font-size: 9.5px; }
.field label em { margin-left: 2px; color: var(--red); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-700);
  font-size: 11px;
  outline: none;
  transition: border .2s, box-shadow .2s;
}
.field input, .field select { height: 36px; padding: 0 10px; }
.field textarea { min-height: 72px; padding: 8px 10px; resize: vertical; line-height: 1.65; }
.field select { appearance: none; padding-right: 26px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%2387938b' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 10px center; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(35, 124, 88, .45); box-shadow: 0 0 0 3px rgba(35, 124, 88, .07); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-300); }
.field-hint { margin-top: 4px; color: var(--ink-400); font-size: 8.5px; }
.field-row { display: flex; gap: 7px; }
.field-row input { flex: 1; }
.checkbox-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.check-chip { position: relative; }
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.check-chip span { display: inline-flex; align-items: center; justify-content: center; height: 33px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: var(--ink-500); font-size: 10px; cursor: pointer; transition: all .16s; }
.check-chip input:checked + span { border-color: var(--forest-600); background: var(--forest-50); color: var(--forest-700); box-shadow: inset 0 0 0 1px rgba(35, 124, 88, .12); }
.check-chip input:focus-visible + span { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.rescue-no-preview { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed #cfdccf; border-radius: 7px; background: var(--forest-50); }
.rescue-no-preview svg { width: 17px; height: 17px; fill: none; stroke: var(--forest-600); stroke-width: 1.8; }
.rescue-no-preview span { color: var(--ink-500); font-size: 9px; }
.rescue-no-preview b { color: var(--forest-800); font-family: var(--num); font-size: 12px; letter-spacing: .04em; }
.rescue-no-preview small { margin-left: auto; color: var(--ink-400); font-size: 8px; }
.upload-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 92px; padding: 12px; border: 1px dashed #cbd7ca; border-radius: 8px; background: #fbfcf9; color: var(--ink-400); font-size: 9.5px; cursor: pointer; text-align: center; transition: border .2s, background .2s; }
.upload-box:hover { border-color: var(--forest-500); background: var(--forest-50); }
.upload-box svg { width: 22px; height: 22px; fill: none; stroke: var(--forest-500); stroke-width: 1.5; }
.upload-box b { color: var(--forest-600); font-size: 10px; font-weight: 500; }
.upload-box input { display: none; }
.upload-preview { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.upload-thumb { position: relative; width: 52px; height: 52px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--paper-warm); }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.time-hint { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-600); font-size: 8.5px; }

/* ---------- toast / sheet ---------- */
.toast-root { position: fixed; left: 50%; bottom: 28px; z-index: 1200; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; max-width: min(420px, calc(100vw - 32px)); padding: 10px 15px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 9px; background: rgba(8, 43, 30, .94); color: #f6f2e6; font-size: 10.5px; box-shadow: 0 14px 36px -18px rgba(0, 0, 0, .6); backdrop-filter: blur(10px); animation: toastIn .25s ease; }
.toast svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: #8fd0ac; stroke-width: 2; }
.toast.error svg { stroke: #e6a09a; }
.toast.leaving { animation: toastOut .22s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
.sheet-root { position: fixed; inset: 0; z-index: 900; display: none; }
.sheet-root.open { display: block; }
.sheet-overlay { position: absolute; inset: 0; background: rgba(4, 22, 15, .42); animation: fadeIn .2s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -20px 50px rgba(6, 41, 30, .2); animation: sheetIn .26s ease; }
.sheet-grip { width: 36px; height: 4px; margin: 0 auto 13px; border-radius: 3px; background: #dce1da; }
.sheet h3 { margin: 0 4px 12px; font-family: var(--serif); font-size: 16px; }
.sheet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.sheet-item { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fcfcf9; color: var(--ink-700); font-size: 11px; }
.sheet-item svg { width: 19px; height: 19px; fill: none; stroke: var(--forest-600); stroke-width: 1.6; }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- skeleton ---------- */
.page-loading { display: flex; align-items: center; justify-content: center; gap: 5px; height: 46vh; }
.page-loading span { width: 5px; height: 5px; border-radius: 50%; background: var(--forest-500); animation: loadDot 1s ease-in-out infinite; }
.page-loading span:nth-child(2) { animation-delay: .12s; }
.page-loading span:nth-child(3) { animation-delay: .24s; }
@keyframes loadDot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  :root { --sidebar-w: 232px; }
  .view { padding: 22px 24px 26px; }
  .topbar { padding: 0 24px; }
  .app-footer { padding: 0 24px 18px; }
  .hero { padding: 28px 30px; }
  .hero h1 { font-size: 28px; }
  .hero-side { width: 50%; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 286px; }
  .species-portrait { width: 190px; flex-basis: 190px; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-row.cols-8-4, .dash-row.cols-7-5 { grid-template-columns: minmax(0, 1fr); }
  .research-summary { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aside-stack { display: contents; }
  .hero-side { width: 55%; opacity: .8; }
  .hero-copy { max-width: 56%; }
  .hero-stats { display: none; }
}
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .main { margin-left: 0; padding-bottom: 67px; }
  .topbar { min-height: 64px; padding: 0 18px; }
  .page-title { font-size: 18px; }
  .global-search { display: none; }
  .user-meta, .user-chip .chev, .top-divider { display: none; }
  .user-chip { padding: 0; }
  .view { padding: 18px 18px 24px; }
  .app-footer { display: none; }
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    align-items: stretch;
    height: calc(60px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgba(21, 36, 29, .09);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px);
    box-shadow: 0 -10px 30px -22px rgba(21, 36, 29, .4);
  }
  .bottom-nav a, .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: transparent; color: var(--ink-400); font-size: 9px; }
  .bottom-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  .bottom-nav a.active, .bottom-nav button.active { color: var(--forest-700); }
  .bottom-nav a.active svg { stroke-width: 2; }
  .bottom-nav a.active::after { content: ""; width: 14px; height: 2px; margin-top: 1px; border-radius: 2px; background: var(--gold-500); }
  .hero { min-height: 206px; padding: 26px 24px; }
  .hero h1 { font-size: 26px; }
  .hero-copy { max-width: 74%; }
  .hero-side { width: 54%; opacity: .58; }
  .hero-seal { top: 17px; right: 18px; }
  .detail-aside { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .survey-stage { grid-template-columns: 1fr; padding: 28px; }
  .survey-art { display: none; }
  .survey-copy h1 { font-size: 25px; }
  .feature-grid { grid-template-columns: 1fr; }
  .edu-hero { grid-template-columns: 1fr; padding: 24px; }
  .official-card { max-width: 360px; }
  .release-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .view { padding: 15px 14px 22px; }
  .topbar { padding: 0 14px; }
  .crumb { font-size: 9px; }
  .page-title { font-size: 17px; }
  .icon-btn { width: 34px; height: 34px; }
  .avatar { width: 29px; height: 29px; border-radius: 7px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 11px; margin-bottom: 15px; }
  .page-head h1 { font-size: 22px; }
  .page-head p { font-size: 10.5px; }
  .page-head-actions { width: 100%; }
  .page-head-actions .btn-primary { flex: 1; }
  .hero { min-height: 194px; padding: 23px 20px; border-radius: 16px; }
  .hero::after { inset: 8px; border-radius: 11px; }
  .hero h1 { margin-top: 9px; font-size: 23px; letter-spacing: .04em; }
  .hero-desc { max-width: 260px; font-size: 10px; line-height: 1.7; }
  .hero-copy { max-width: 100%; }
  .hero-side { width: 62%; opacity: .38; }
  .hero-seal { display: none; }
  .hero-actions { position: relative; z-index: 4; gap: 7px; margin-top: 17px; }
  .hero-actions .btn { height: 35px; padding: 0 12px; font-size: 10.5px; }
  .stat-grid { gap: 9px; margin-top: 11px; }
  .stat-card { min-height: 94px; padding: 13px 13px 12px; border-radius: 11px; }
  .stat-card::after { left: 13px; }
  .stat-label { font-size: 9.5px; }
  .stat-value { margin-top: 5px; font-size: 25px; }
  .stat-value small { font-size: 8.5px; }
  .stat-foot { margin-top: 5px; font-size: 8px; gap: 4px; }
  .stat-icon { width: 30px; height: 30px; flex-basis: 30px; border-radius: 8px; }
  .stat-icon svg { width: 16px; height: 16px; }
  .dash-row { gap: 11px; margin-top: 11px; }
  .card { border-radius: 12px; }
  .card-head { padding: 14px 15px 0; }
  .card-head.bordered { padding-bottom: 11px; }
  .card-title { font-size: 13px; }
  .card-body { padding: 12px 15px 15px; }
  .chart-card .card-body { padding: 5px 8px 12px; }
  .chart-period { display: none; }
  .chart-legend { gap: 10px; }
  .chart-svg .axis-label { font-size: 8px; }
  .todo-item { padding: 10px 0; }
  .todo-time { flex-basis: 37px; font-size: 10px; }
  .todo-main b { font-size: 10.5px; }
  .todo-main span { font-size: 8px; }
  .todo-item .pill { display: none; }
  .notice-strip { margin-top: 9px; padding: 9px 11px; align-items: flex-start; }
  .notice-strip span { display: none; }
  .notice-strip .card-link { font-size: 9px; }
  .table-toolbar { padding: 11px 0; gap: 9px; }
  .toolbar-right { width: 100%; }
  .search-field { flex: 1; width: auto; min-width: 120px; }
  .filter-chip { height: 28px; padding: 0 9px; font-size: 9.5px; }
  .filter-chip b { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table thead { display: none; }
  .data-table tbody tr { position: relative; margin-bottom: 9px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow-sm); }
  .data-table tbody tr:hover { background: #fff; }
  .data-table td { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 4px 0; border: 0; font-size: 9.5px; text-align: right; }
  .data-table td::before { content: attr(data-label); flex: 0 0 auto; color: var(--ink-400); font-size: 8.5px; text-align: left; }
  .data-table td.cell-main-td { justify-content: flex-start; padding-bottom: 8px; margin-bottom: 5px; border-bottom: 1px dashed var(--line); text-align: left; }
  .data-table td.cell-main-td::before { display: none; }
  .data-table td.cell-main-td .cell-main { width: 100%; }
  .data-table td.cell-main-td .row-actions { position: absolute; right: 10px; top: 13px; }
  .data-table td.cell-main-td .cell-main { padding-right: 30px; }
  .data-table td .cell-location { text-align: left; max-width: 70%; }
  .data-table td.hide-mobile { display: none; }
  .data-table td.cell-code-td { display: none; }
  .table-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .map-shell { height: 268px; margin: 0 9px 9px; }
  .map-shell.large { height: 392px; margin: 0; }
  .map-info { display: none; }
  .map-legend { left: 8px; bottom: 8px; gap: 6px; font-size: 7.5px; padding: 5px 7px; }
  .map-badge { left: 8px; top: 8px; font-size: 8px; }
  .map-tools { right: 8px; top: 8px; }
  .map-tool { width: 25px; height: 25px; }
  .detail-hero { min-height: 0; flex-direction: column; border-radius: 14px; }
  .detail-copy { padding: 17px 17px 16px; }
  .detail-title h1 { font-size: 22px; }
  .detail-summary { font-size: 9.5px; }
  .detail-meta { gap: 10px; margin-top: 9px; }
  .detail-meta span { font-size: 8.5px; }
  .detail-actions { margin-top: 12px; gap: 6px; }
  .detail-actions .btn { height: 33px; padding: 0 10px; font-size: 10px; }
  .species-portrait { display: none; }
  .steps { display: flex; overflow-x: auto; gap: 18px; padding: 12px 14px; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 62px; }
  .step::before { left: 20px; right: -18px; }
  .step b { font-size: 8.5px; }
  .step small { font-size: 7.5px; }
  .detail-layout { gap: 11px; margin-top: 11px; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; padding: 0 11px; font-size: 9.5px; }
  .panel-card { padding: 15px 14px; border-radius: 12px; }
  .panel-head { margin-bottom: 11px; }
  .panel-title { font-size: 12px; }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-item { padding: 9px 10px; }
  .info-item.wide { grid-column: span 1; }
  .info-item.full { grid-column: 1 / -1; }
  .info-item b { font-size: 9.5px; }
  .sample-grid { grid-template-columns: 1fr; }
  .sample-card { padding: 11px 12px; }
  .disposition-grid { grid-template-columns: 1fr; }
  .disposition-option { display: flex; align-items: center; gap: 11px; padding: 12px; }
  .disposition-option .icon-badge { flex: 0 0 33px; }
  .disposition-option b { margin-top: 0; }
  .disposition-option span { margin-top: 1px; }
  .lab-card { align-items: flex-start; }
  .lab-thumb { width: 47px; height: 59px; flex-basis: 47px; }
  .lab-side { flex-direction: column; align-items: flex-end; gap: 4px; }
  .treatment-item { padding-left: 20px; }
  .treatment-item::before { left: 1px; }
  .treatment-item::after { left: 4px; }
  .treatment-top time { margin-left: 0; }
  .aside-card { padding: 14px 15px; }
  .detail-aside { gap: 11px; }
  .edu-hero { padding: 21px 19px; border-radius: 14px; }
  .edu-hero h2 { font-size: 23px; }
  .edu-hero p { font-size: 10.5px; }
  .official-card { padding: 12px; }
  .qr-box { width: 72px; height: 72px; flex-basis: 72px; }
  .article-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 11px; }
  .article-cover { height: 104px; }
  .article-body h4 { min-height: 0; font-size: 12px; }
  .research-summary { gap: 11px; }
  .research-hero { padding: 21px 20px; border-radius: 14px; }
  .research-hero h2 { font-size: 21px; }
  .research-stats { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .research-stat { padding: 13px; }
  .research-stat b { font-size: 22px; }
  .donut-wrap { gap: 15px; }
  .donut { width: 112px; height: 112px; flex-basis: 112px; }
  .release-stats { gap: 9px; margin-bottom: 11px; }
  .mini-stat { padding: 12px 13px; border-radius: 10px; }
  .mini-stat b { font-size: 21px; }
  .survey-stage { padding: 24px 20px; border-radius: 15px; min-height: 0; }
  .survey-copy h1 { font-size: 23px; }
  .survey-copy p { font-size: 10.5px; }
  .feature-grid { gap: 9px; margin-top: 11px; }
  .feature-card { display: flex; align-items: flex-start; gap: 11px; padding: 14px; }
  .feature-card .feature-icon { flex: 0 0 32px; width: 32px; height: 32px; }
  .feature-card b { margin-top: 1px; font-size: 10.5px; }
  .feature-card p { margin-top: 2px; font-size: 9px; }
  .form-grid { grid-template-columns: 1fr; gap: 10px; }
  .modal { width: 100%; max-width: 100%; max-height: 92dvh; top: auto; bottom: 0; left: 0; transform: none; border-radius: 18px 18px 0 0; animation: sheetIn .26s ease; }
  .modal-head { padding: 15px 16px 12px; }
  .modal-body { padding: 15px 16px 18px; }
  .modal-foot { padding: 11px 16px calc(11px + env(safe-area-inset-bottom)); }
  .modal-foot .foot-note { display: none; }
  .modal.wide, .modal.narrow { max-width: 100%; }
  .toast-root { bottom: 78px; }
  .sheet { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 21px; }
  .hero-desc { display: none; }
  .hero { min-height: 178px; }
  .stat-value { font-size: 23px; }
  .user-chip { display: none; }
  .page-head h1 { font-size: 20px; }
  .filter-chips { gap: 4px; }
  .filter-chip { padding: 0 7px; font-size: 9px; }
}
@media (min-width: 901px) { .bottom-nav { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- page motion ---------- */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}
.view > .hero,
.view > .page-head,
.view > .detail-hero,
.view > .survey-stage,
.view > .edu-hero,
.view > .research-summary { animation: pageIn .36s cubic-bezier(.2, .8, .2, 1) both; }
.view > .stat-grid,
.view > .dash-row,
.view > .detail-layout,
.view > .release-stats,
.view > .feature-grid,
.view > .card { animation: pageIn .4s .04s cubic-bezier(.2, .8, .2, 1) both; }
[hidden] { display: none !important; }

/* ---------- report preview ---------- */
.report-preview { padding: 10px; border-radius: 10px; background: #e9ede6; }
.preview-paper {
  position: relative;
  overflow: hidden;
  padding: 22px 24px 18px;
  border: 1px solid #dfe3da;
  background: #fffef9;
  box-shadow: 0 12px 24px -20px rgba(21, 36, 29, .45);
}
.preview-org { color: var(--ink-400); font-size: 9px; letter-spacing: .08em; text-align: center; }
.preview-title { margin-top: 7px; padding-bottom: 10px; border-bottom: 2px solid var(--forest-700); color: var(--forest-800); font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .2em; text-align: center; }
.preview-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; color: var(--ink-400); font-family: var(--num); font-size: 8px; }
.preview-table { margin-top: 12px; border-top: 1px solid #cfd8cc; border-left: 1px solid #cfd8cc; }
.preview-table > div { display: flex; border-right: 1px solid #cfd8cc; border-bottom: 1px solid #cfd8cc; }
.preview-table b { width: 85px; flex: 0 0 85px; padding: 8px 9px; background: #f5f7f1; color: var(--ink-500); font-size: 9px; font-weight: 500; }
.preview-table span { flex: 1; padding: 8px 9px; color: var(--ink-700); font-size: 9px; line-height: 1.6; }
.preview-sign { display: flex; justify-content: space-between; margin-top: 20px; color: var(--ink-500); font-size: 8.5px; }
.preview-stamp { position: absolute; right: 28px; bottom: 54px; display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid rgba(180, 72, 60, .42); border-radius: 50%; color: rgba(180, 72, 60, .55); font-size: 8px; letter-spacing: .08em; transform: rotate(-9deg); }
.preview-foot { margin-top: 14px; padding-top: 8px; border-top: 1px dashed #d9ded5; color: var(--ink-300); font-size: 7.5px; text-align: center; }

@media (max-width: 760px) {
  .preview-paper { padding: 16px 15px 14px; }
  .preview-title { font-size: 18px; }
  .preview-table b { width: 70px; flex-basis: 70px; }
  .preview-stamp { right: 18px; bottom: 46px; width: 52px; height: 52px; }
}

/* ---------- login ---------- */
body.is-login { background: #f3f3ed; }
body.is-login .sidebar,
body.is-login .topbar,
body.is-login .bottom-nav,
body.is-login .app-footer { display: none !important; }
body.is-login .main { margin-left: 0; min-height: 100dvh; }
body.is-login .view { padding: 0; max-width: none; }
.view.login-view { padding: 0; max-width: none; }
.login-page { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); min-height: 100dvh; background: var(--paper); }
.login-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 58px 36px;
  color: #f8f4e7;
  background:
    radial-gradient(780px 480px at 88% 4%, rgba(201, 170, 106, .23), transparent 64%),
    radial-gradient(620px 400px at 18% 100%, rgba(46, 138, 99, .28), transparent 66%),
    linear-gradient(150deg, #0d4a35, #073326 72%);
}
.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .36;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='360' viewBox='0 0 500 360'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='.8'%3E%3Cpath d='M-30 300c100-72 185-58 252-20 68 39 140 27 290-61'/%3E%3Cpath d='M-45 330c104-75 194-62 264-23 70 39 146 23 300-67'/%3E%3Cpath d='M-15 268c96-68 178-54 242-17 66 38 136 24 280-58'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  pointer-events: none;
}
.login-brand-top, .login-quote, .login-features, .login-brand-foot { position: relative; z-index: 1; }
.login-brand-top { display: flex; align-items: center; gap: 12px; }
.login-brand-top .brand-emblem { width: 49px; height: 49px; flex-basis: 49px; }
.login-brand-name { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .16em; }
.login-brand-sub { margin-top: 2px; color: rgba(201, 170, 106, .75); font-size: 8px; letter-spacing: .24em; }
.login-quote { max-width: 540px; margin-top: 8vh; }
.login-quote .section-kicker { color: var(--gold-400); }
.login-quote h1 { margin-top: 18px; font-family: var(--serif); font-size: clamp(36px, 4vw, 58px); font-weight: 700; line-height: 1.35; letter-spacing: .07em; }
.login-quote h1 span { color: #e5cb94; }
.login-quote p { margin-top: 18px; color: rgba(248, 244, 231, .58); font-size: 12px; line-height: 2; letter-spacing: .04em; }
.login-features { display: flex; gap: 34px; margin-top: 6vh; }
.login-features > div { display: flex; gap: 10px; align-items: flex-start; }
.login-features b { color: var(--gold-400); font-family: var(--num); font-size: 10px; font-weight: 500; letter-spacing: .08em; }
.login-features span { padding-left: 10px; border-left: 1px solid rgba(201, 170, 106, .25); color: rgba(255, 255, 255, .58); font-size: 10px; line-height: 1.7; }
.login-brand-foot { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .38); font-size: 9px; letter-spacing: .04em; }
.login-panel { display: grid; place-items: center; padding: 40px; background: radial-gradient(700px 500px at 100% 0%, rgba(35, 124, 88, .06), transparent 65%), var(--paper); }
.login-box { width: min(376px, 100%); }
.login-kicker { color: var(--gold-600); font-family: var(--num); font-size: 8.5px; letter-spacing: .22em; }
.login-box h2 { margin-top: 8px; font-family: var(--serif); font-size: 30px; letter-spacing: .06em; line-height: 1.35; }
.login-desc { margin: 6px 0 22px; color: var(--ink-400); font-size: 10.5px; }
.login-box .field { margin-bottom: 12px; }
.login-box .field label { font-size: 10px; }
.login-box .field input, .login-box .field select { height: 42px; border-radius: 8px; font-size: 11.5px; }
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; color: var(--ink-500); font-size: 9.5px; }
.login-row label { display: flex; align-items: center; gap: 6px; }
.login-row input { accent-color: var(--forest-600); }
.login-link { border: 0; background: transparent; color: var(--forest-600); font-size: 9.5px; }
.login-box .btn-lg { height: 44px; font-size: 12px; }
.login-demo { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 12px; border: 1px dashed #d4ded2; border-radius: 8px; background: rgba(255, 255, 255, .55); color: var(--ink-400); font-size: 9px; flex-wrap: wrap; }
.login-demo b { color: var(--forest-700); font-weight: 500; }
.login-demo .tag { margin-left: auto; height: 19px; font-size: 8px; }
.login-foot { margin-top: 26px; color: var(--ink-300); font-size: 8.5px; line-height: 1.8; text-align: center; }
.role-picker-trigger { display: none; }
.role-sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 4px 10px; }
.role-sheet-head b { font-family: var(--serif); font-size: 17px; }
.role-sheet-head span { color: var(--ink-300); font-size: 9px; }
.role-options { display: grid; gap: 7px; padding-bottom: 4px; }
.role-option { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fcfcf9; color: var(--ink-700); text-align: left; }
.role-option-main b { display: block; font-size: 12px; font-weight: 500; }
.role-option-main small { display: block; margin-top: 2px; color: var(--ink-400); font-size: 9px; }
.role-option-check { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--forest-700); color: #fff; font-size: 10px; opacity: 0; transform: scale(.8); transition: .16s ease; }
.role-option.active { border-color: rgba(35, 124, 88, .32); background: var(--forest-50); }
.role-option.active .role-option-check { opacity: 1; transform: scale(1); }

/* ---------- user menu ---------- */
.user-menu-head { display: flex; align-items: center; gap: 11px; padding: 4px 0 15px; border-bottom: 1px solid var(--line); }
.user-menu-head > div { min-width: 0; flex: 1; }
.user-menu-head b { display: block; color: var(--ink-900); font-size: 13px; font-weight: 600; }
.user-menu-head span { display: block; margin-top: 2px; color: var(--ink-400); font-size: 9px; }
.user-menu-list { display: flex; flex-direction: column; margin-top: 7px; }
.user-menu-list button { display: flex; align-items: center; gap: 11px; padding: 12px 2px; border: 0; border-bottom: 1px dashed var(--line); background: transparent; text-align: left; }
.user-menu-list button:last-child { border-bottom: 0; }
.user-menu-list button > svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: var(--forest-600); stroke-width: 1.6; }
.user-menu-list button > svg:last-child { width: 13px; height: 13px; margin-left: auto; stroke: var(--ink-300); }
.user-menu-list button > span { flex: 1; }
.user-menu-list b { display: block; color: var(--ink-700); font-size: 11px; font-weight: 500; }
.user-menu-list small { display: block; margin-top: 2px; color: var(--ink-400); font-size: 8.5px; }
.user-menu-list button:hover b { color: var(--forest-600); }
.device-battery { margin: 12px 0 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper-warm); }
.device-battery > div:first-child { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; color: var(--ink-500); font-size: 9px; }
.device-battery b { color: var(--forest-700); font-family: var(--num); font-size: 12px; font-weight: 600; }

/* ---------- species catalogue ---------- */
.species-search-card { padding: 16px 18px; }
.species-search-main { display: flex; align-items: center; gap: 10px; }
.species-search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}
.species-search-input:focus-within { border-color: rgba(35, 124, 88, .45); box-shadow: 0 0 0 3px rgba(35, 124, 88, .07); }
.species-search-input > svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: var(--ink-400); stroke-width: 1.8; }
.species-search-input input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 12px; }
.species-search-input kbd { padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-400); font-family: var(--sans); font-size: 8px; white-space: nowrap; }
.species-search-main .select-field { height: 42px; min-width: 150px; }
.species-class-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 11px; }
.species-search-hint { display: flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--ink-400); font-size: 8.5px; }
.species-search-hint svg { width: 12px; height: 12px; fill: none; stroke: var(--gold-600); stroke-width: 1.7; }
.species-search-hint b { color: var(--forest-700); font-family: var(--num); font-weight: 500; }
.species-table .latin-name { color: var(--ink-500); font-size: 9px; font-style: italic; }
.species-taxonomy { color: var(--ink-500); font-size: 9px; }
.species-pinyin { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px; background: var(--paper-warm); color: var(--gold-600); font-family: var(--num); font-size: 8.5px; letter-spacing: .08em; }
.species-name-cell b { font-size: 11.5px; }
.species-name-cell small { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.species-detail-hero { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.species-detail-seal { display: grid; place-items: center; width: 68px; height: 68px; flex: 0 0 68px; border: 1px solid var(--gold-400); border-radius: 50%; color: var(--forest-700); font-family: var(--serif); font-size: 30px; font-weight: 700; }

/* species picker */
.species-picker { position: relative; }
.species-picker-input {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
}
.species-picker-input:focus-within { border-color: rgba(35, 124, 88, .45); box-shadow: 0 0 0 3px rgba(35, 124, 88, .07); }
.species-picker-input > svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: var(--ink-400); stroke-width: 1.8; }
.species-picker-input input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 11px; }
.species-clear { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-400); }
.species-clear:hover { background: var(--paper-warm); color: var(--ink-700); }
.species-clear svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.species-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  z-index: 80;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #d8e2d8;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 22px 44px -20px rgba(21, 36, 29, .38);
}
.species-option-head { display: flex; justify-content: space-between; padding: 5px 8px 7px; color: var(--ink-400); font-size: 8.5px; }
.species-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 6px; background: transparent; text-align: left; }
.species-option:hover { background: var(--forest-50); }
.species-option-main { min-width: 0; flex: 1; }
.species-option-main b { display: block; color: var(--ink-900); font-size: 10.5px; font-weight: 500; }
.species-option-main small { display: block; margin-top: 1px; overflow: hidden; color: var(--ink-400); font-size: 8.5px; font-style: italic; text-overflow: ellipsis; white-space: nowrap; }
.species-option-meta { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.species-option-meta em { color: var(--ink-400); font-size: 8px; font-style: normal; }
.species-option-meta code { color: var(--gold-600); font-family: var(--num); font-size: 8px; }
.species-option-empty { display: flex; align-items: center; gap: 7px; padding: 14px 10px; color: var(--ink-400); font-size: 10px; }
.species-option-empty svg { width: 14px; height: 14px; fill: none; stroke: var(--ink-300); stroke-width: 1.8; }
.species-selected { display: flex; align-items: center; gap: 9px; margin-top: 7px; padding: 8px 10px; border: 1px solid #d6e6dc; border-radius: 7px; background: var(--forest-50); }
.species-selected-main { min-width: 0; flex: 1; }
.species-selected-main b { display: block; color: var(--forest-800); font-size: 10.5px; font-weight: 500; }
.species-selected-main span { display: block; margin-top: 1px; color: var(--ink-400); font-size: 8.5px; font-style: italic; }

@media (max-width: 760px) {
  .species-search-main { flex-direction: column; align-items: stretch; }
  .species-search-main .select-field { width: 100%; }
  .species-search-input kbd { display: none; }
  .species-search-card { padding: 13px; }
  .species-option-meta em, .species-option-meta code { display: none; }
  .species-selected .tag { display: none; }
}

/* ---------- system admin ---------- */
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.role-card { padding: 18px; }
.role-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.role-code { color: var(--gold-600); font-family: var(--num); font-size: 8.5px; letter-spacing: .12em; }
.role-card h3 { margin-top: 11px; font-family: var(--serif); font-size: 17px; letter-spacing: .04em; }
.role-card p { min-height: 38px; margin-top: 4px; color: var(--ink-400); font-size: 9.5px; line-height: 1.7; }
.role-perms { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line); }
.role-perms span { padding: 2px 6px; border-radius: 3px; background: var(--forest-50); color: var(--forest-600); font-size: 8px; }
.dict-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dict-card { padding: 17px 18px; }
.dict-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dict-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dict-items span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; background: #fcfcf8; color: var(--ink-500); font-size: 9px; }
.user-menu-list button { cursor: pointer; }
.individual-switch-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.individual-switch { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: #fdfdfa; text-align: left; }
.individual-switch:hover { border-color: #c4d2c5; background: #fff; }
.individual-switch.active { border-color: var(--forest-600); background: var(--forest-50); box-shadow: inset 2px 0 var(--forest-600); }
.individual-seq { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: #fff; color: var(--gold-600); font-family: var(--num); font-size: 8px; }
.individual-switch-main { min-width: 0; flex: 1; }
.individual-switch-main b { display: block; overflow: hidden; color: var(--ink-700); font-family: var(--num); font-size: 8.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.individual-switch-main small { display: block; margin-top: 1px; color: var(--ink-400); font-size: 8px; }
.individual-switch .pill { height: 18px; padding: 0 5px; font-size: 7.5px; }

@media (max-width: 1080px) {
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .role-grid, .dict-grid { grid-template-columns: 1fr; }
  .role-card { padding: 14px; }
  .role-card p { min-height: 0; }
  .dict-card { padding: 14px; }
  .data-table td .row-actions { flex-wrap: wrap; justify-content: flex-end; }
}

/* ---------- print ---------- */
.print-only { display: none; }
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  body { background: #fff; }
  body::before, .sidebar, .topbar, .bottom-nav, .app-footer, .back-link, .detail-actions, .tabs, .detail-aside, .toast-root, .modal-root, .sheet-root { display: none !important; }
  .main { margin: 0 !important; }
  .view { max-width: none; padding: 0; }
  .print-only { display: block !important; }
  .print-head { margin-bottom: 10mm; padding-bottom: 5mm; border-bottom: 2px solid #0d4431; }
  .print-org { color: #66756c; font-size: 9pt; letter-spacing: .08em; }
  .print-title { margin-top: 3mm; color: #0d4431; font-family: "宋体", serif; font-size: 22pt; font-weight: 700; letter-spacing: .16em; text-align: center; }
  .print-meta { display: flex; justify-content: space-between; margin-top: 4mm; color: #66756c; font-size: 8pt; }
  .detail-hero { border: 1px solid #cfd8cc; border-radius: 0; background: #fff; min-height: 0; }
  .detail-hero::before, .species-portrait { display: none !important; }
  .detail-copy { padding: 7mm 8mm; }
  .detail-title h1 { font-size: 20pt; }
  .steps { margin-top: 5mm; border-radius: 0; }
  .step::before { background: #b9d3c2 !important; }
  .detail-layout { display: block; margin-top: 5mm; }
  .tab-panel [data-panel] { display: block !important; margin-bottom: 5mm; }
  .tab-panel [data-panel][hidden] { display: block !important; }
  .panel-card { padding: 0; border: 0; box-shadow: none; }
  .panel-head { margin-top: 5mm; padding-bottom: 2mm; border-bottom: 1px solid #d8e2d8; }
  .panel-head .btn, .panel-head .btn-group, .panel-head .card-link { display: none !important; }
  .info-grid { border-color: #cfd8cc; }
  .info-item { background: #fff !important; }
  .sample-card, .lab-card, .treatment-banner, .individual-box, .disposition-done { break-inside: avoid; }
  .data-table th, .data-table td { font-size: 8pt; }
  .app-footer { display: none; }
}

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-brand { min-height: 330px; padding: 30px 28px 24px; }
  .login-quote { margin-top: 34px; }
  .login-quote h1 { font-size: 34px; }
  .login-quote p { margin-top: 10px; font-size: 10.5px; }
  .login-features { margin-top: 26px; gap: 20px; }
  .login-brand-foot { display: none; }
  .login-panel { min-height: calc(100dvh - 330px); padding: 30px 24px 42px; align-items: flex-start; }
  .login-box { margin: 0 auto; }
  .login-box h2 { font-size: 26px; }
}
@media (max-width: 480px) {
  .login-brand { min-height: 250px; padding: 24px 22px 20px; }
  .login-brand-top .brand-emblem { width: 38px; height: 38px; flex-basis: 38px; }
  .login-brand-name { font-size: 18px; }
  .login-quote { margin-top: 24px; }
  .login-quote h1 { font-size: 29px; }
  .login-quote p { display: none; }
  .login-features { display: none; }
  .login-panel { min-height: calc(100dvh - 250px); padding: 26px 20px 38px; }
  .login-demo { margin-top: 14px; }
  .login-foot { margin-top: 20px; }
}

/* ---------- mobile login: 悬浮卡片 ---------- */
@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  body.is-login { background: var(--paper); }
  .login-page { display: block; min-height: 100dvh; background: var(--paper); }
  .login-brand { min-height: 188px; padding: 16px 20px 26px; justify-content: flex-start; }
  .login-brand-top { gap: 9px; }
  .login-brand-top .brand-emblem { width: 33px; height: 33px; flex-basis: 33px; }
  .login-brand-name { font-size: 17px; letter-spacing: .12em; }
  .login-brand-sub { margin-top: 1px; font-size: 7px; letter-spacing: .18em; }
  .login-quote { margin-top: 17px; }
  .login-quote .section-kicker { display: none; }
  .login-quote h1 { margin-top: 0; font-size: 26px; line-height: 1.28; letter-spacing: .055em; }
  .login-quote p, .login-features, .login-brand-foot { display: none; }
  .login-panel {
    display: block;
    min-height: calc(100dvh - 188px);
    padding: 0 14px calc(28px + env(safe-area-inset-bottom));
    background: var(--paper);
  }
  .login-box {
    width: 100%;
    max-width: 420px;
    margin: -25px auto 0;
    padding: 22px 18px 20px;
    border: 1px solid rgba(210, 221, 211, .8);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 48px -26px rgba(13, 68, 49, .42), 0 3px 10px rgba(13, 68, 49, .05);
    animation: loginCardIn .4s cubic-bezier(.2, .75, .3, 1) both;
  }
  .login-kicker { display: none; }
  .login-box h2 { margin-top: 0; font-size: 26px; letter-spacing: .045em; }
  .login-desc { margin: 5px 0 18px; font-size: 10.5px; }
  .login-box .field { margin-bottom: 14px; }
  .login-box .field label { margin-bottom: 6px; font-size: 11px; }
  .login-box .field input {
    height: 48px;
    padding: 0 13px;
    border-radius: 10px;
    background: #fbfcf9;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  }
  .login-box .field input:focus {
    border-color: rgba(35, 124, 88, .55);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(35, 124, 88, .09);
    outline: none;
  }
  .login-role-native { display: none !important; }
  .role-picker-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #fbfcf9;
    color: var(--ink-700);
    font-size: 14px;
    text-align: left;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .12s ease;
  }
  .role-picker-trigger svg { width: 14px; height: 14px; fill: none; stroke: var(--ink-400); stroke-width: 1.8; }
  .role-picker-trigger:active { transform: scale(.992); background: #f4f8f3; }
  .login-row { margin: 2px 0 15px; font-size: 10.5px; }
  .login-box .btn-lg {
    height: 50px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 9px 20px -12px rgba(13, 68, 49, .6);
    transition: transform .12s ease, filter .12s ease;
  }
  .login-box .btn-lg:active { transform: scale(.985); filter: brightness(.96); }
  .login-demo { margin-top: 14px; padding: 9px 11px; font-size: 9px; }
  .login-demo .tag { display: none; }
  .login-foot { margin-top: 16px; font-size: 8.5px; }
  .login-browser-hint { display: none; }
  .sheet { border-radius: 22px 22px 0 0; padding-left: 18px; padding-right: 18px; }
  .role-sheet-head { padding-bottom: 9px; }
  .role-option { min-height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-box { animation: none; }
  .login-box .field input, .role-picker-trigger, .login-box .btn-lg { transition: none; }
}
