:root {
  --ink: #17251e;
  --ink-2: #22382d;
  --ink-3: #355044;
  --jade: #315f4c;
  --jade-deep: #204537;
  --jade-soft: #dfe9e2;
  --sage: #8ba292;
  --sage-soft: #edf1ec;
  --cream: #f3efe5;
  --paper: #fbf9f3;
  --paper-2: #f7f3e9;
  --white: #fffefb;
  --gold: #b2864e;
  --gold-soft: #f2e6d2;
  --rust: #a34f3c;
  --rust-soft: #f7e4df;
  --blue: #456b7a;
  --line: rgba(23, 37, 30, 0.12);
  --line-soft: rgba(23, 37, 30, 0.07);
  --shadow-sm: 0 1px 2px rgba(29, 41, 33, 0.04), 0 6px 18px rgba(29, 41, 33, 0.035);
  --shadow-md: 0 14px 46px rgba(23, 37, 30, 0.09);
  --shadow-lg: 0 30px 90px rgba(15, 30, 22, 0.2);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --font-sans: "Avenir Next", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --num: "SF Pro Display", "DIN Alternate", "Avenir Next", "Helvetica Neue", sans-serif;
  --sidebar-width: 244px;
  --topbar-height: 74px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background: var(--gold-soft); }

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  background:
    radial-gradient(circle at 50% 35%, rgba(210, 191, 156, 0.16), transparent 38%),
    linear-gradient(145deg, #14251d, #1d372b 50%, #132119);
  color: var(--cream);
}
.boot-mark {
  width: 72px; height: 72px; display: grid; place-items: center;
  border: 1px solid rgba(231, 217, 185, 0.42);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 32px;
  color: #e7d9b9;
}
.boot-copy { font-size: 12px; letter-spacing: 0.24em; color: rgba(244, 240, 230, 0.66); }
.boot-line { width: 140px; height: 1px; background: rgba(255,255,255,.12); overflow: hidden; }
.boot-line span { display: block; height: 100%; width: 40%; background: #c9a56a; animation: bootline 1.1s ease-in-out infinite; }
@keyframes bootline { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ---------- Buttons / common ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-color: #fffdf8;
  --btn-border: transparent;
  appearance: none;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-color);
  min-height: 40px;
  padding: 9px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(23,37,30,.13); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--jade); color: #fff; }
.btn-primary:hover { background: var(--jade-deep); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: rgba(49,95,76,.06); box-shadow: none; }
.btn-soft { background: var(--jade-soft); color: var(--jade-deep); border-color: transparent; }
.btn-soft:hover { background: #d5e2da; }
.btn-gold { background: var(--gold-soft); color: #72522b; }
.btn-danger { background: var(--rust-soft); color: #8d3c2b; }
.btn-sm { min-height: 32px; padding: 5px 12px; font-size: 12px; }
.btn-xs { min-height: 26px; padding: 3px 9px; font-size: 11px; }
.btn-lg { min-height: 48px; padding: 12px 24px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 50%; }
.text-btn {
  border: 0; background: none; padding: 4px 0; color: var(--jade);
  font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px;
}
.text-btn:hover { color: var(--jade-deep); }
.text-btn.danger { color: var(--rust); }
.text-btn svg { width: 14px; height: 14px; }

.card {
  background: rgba(255,254,251,.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 0; }
.card-head h3 { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.card-head p { color: rgba(23,37,30,.5); font-size: 12px; margin-top: 2px; }
.card-body { padding: 20px 24px 24px; }
.divider { height: 1px; background: var(--line-soft); border: 0; margin: 0; }
.muted { color: rgba(23,37,30,.52); }
.subtle { color: rgba(23,37,30,.4); }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
}
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 24px; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  background: var(--sage-soft); color: var(--jade);
}
.tag-gold { background: var(--gold-soft); color: #7d5a2d; }
.tag-red { background: var(--rust-soft); color: var(--rust); }
.tag-blue { background: #e5edf0; color: var(--blue); }
.tag-muted { background: rgba(23,37,30,.06); color: rgba(23,37,30,.6); }
.tag-dark { background: var(--ink); color: var(--cream); }
.tag-dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.readonly-value { padding: 9px 11px; border: 1px solid rgba(23,37,30,.1); border-radius: 8px; background: var(--paper-2, #f7f5f0); color: #4b4842; font-size: 13px; min-height: 38px; display: flex; align-items: center; word-break: break-all; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4f8a66; box-shadow: 0 0 0 3px rgba(79,138,102,.12); }
.status-dot.warn { background: var(--gold); box-shadow: 0 0 0 3px rgba(178,134,78,.14); }
.status-dot.danger { background: var(--rust); box-shadow: 0 0 0 3px rgba(163,79,60,.12); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line);
  background: rgba(255,255,255,.55); border-radius: 999px; padding: 5px 11px;
  font-size: 11px; color: var(--ink-3);
}
.chip svg { width: 13px; height: 13px; }
.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 15px; height: 15px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--jade-soft); color: var(--jade-deep); font-family: var(--font-serif); font-size: 15px; font-weight: 700;
}
.avatar.dark { background: var(--ink); color: var(--cream); }
.avatar.gold { background: var(--gold-soft); color: #78552b; }
.avatar-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -8px; border: 2px solid var(--paper); }
.avatar-stack .avatar:first-child { margin-left: 0; }
.grow { flex: 1; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-start { display: flex; align-items: flex-start; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 18px; } .mt-5 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 18px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.divider-v { width: 1px; align-self: stretch; background: var(--line-soft); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .field-label { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.field .hint { font-size: 11px; color: rgba(23,37,30,.44); line-height: 1.5; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,.7); min-height: 42px; padding: 10px 13px;
  outline: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.textarea { min-height: 104px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: rgba(23,37,30,.31); }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(49,95,76,.55); box-shadow: 0 0 0 3px rgba(49,95,76,.08); background: #fff;
}
.input.sm { min-height: 36px; font-size: 13px; padding: 7px 11px; border-radius: 9px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--ink-3); line-height: 1.55; cursor: pointer; }
.checkbox input { appearance: none; width: 16px; height: 16px; flex: none; margin: 1px 0 0; border: 1px solid rgba(23,37,30,.28); border-radius: 4px; background: #fff; transition: .15s; position: relative; }
.checkbox input:checked { background: var(--jade); border-color: var(--jade); }
.checkbox input:checked::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.checkbox a { color: var(--jade); text-decoration: underline; text-underline-offset: 2px; }
.switch { position: relative; display: inline-flex; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { width: 100%; height: 100%; background: rgba(23,37,30,.17); border-radius: 999px; transition: .2s; }
.switch .track::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: .2s; }
.switch input:checked + .track { background: var(--jade); }
.switch input:checked + .track::after { transform: translateX(18px); }
.search-box { position: relative; display: flex; align-items: center; }
.search-box .icon { position: absolute; left: 12px; color: rgba(23,37,30,.4); pointer-events: none; }
.search-box .input { padding-left: 36px; }
.segmented { display: inline-flex; padding: 3px; background: rgba(23,37,30,.055); border-radius: 999px; gap: 2px; }
.segmented button {
  border: 0; background: transparent; border-radius: 999px; padding: 6px 13px;
  font-size: 12px; font-weight: 600; color: rgba(23,37,30,.5); white-space: nowrap;
}
.segmented button.active { background: var(--white); color: var(--ink); box-shadow: 0 1px 5px rgba(23,37,30,.1); }
.radio-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; transition: .18s; background: rgba(255,255,255,.5); }
.radio-card:hover { border-color: rgba(49,95,76,.35); }
.radio-card.selected { border-color: var(--jade); box-shadow: 0 0 0 2px rgba(49,95,76,.08); background: #fff; }
.radio-card .title { font-weight: 700; font-size: 13px; }
.radio-card .meta { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ---------- Landing ---------- */
.landing {
  min-height: 100vh;
  color: #f4f0e6;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(190, 160, 105, .16), transparent 32%),
    radial-gradient(ellipse at 16% 90%, rgba(78, 113, 92, .22), transparent 36%),
    linear-gradient(142deg, #15251d 0%, #1a3126 46%, #112018 100%);
  position: relative;
  overflow: hidden;
}
.landing::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .25;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}
.landing::after {
  content: ""; position: absolute; width: 680px; height: 680px; right: -180px; top: 14%;
  border: 1px solid rgba(216, 197, 158, .12); border-radius: 330px 330px 0 0;
  border-bottom: 0; pointer-events: none;
}
.landing-wrap { width: min(1280px, calc(100% - 80px)); margin: 0 auto; position: relative; z-index: 1; }
.landing-nav { display: flex; align-items: center; justify-content: space-between; padding: 30px 0 0; }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-symbol {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(231,217,185,.45); color: #e7d9b9; font-family: var(--font-serif); font-size: 19px;
}
.brand-name { font-family: var(--font-serif); letter-spacing: .18em; font-size: 15px; }
.brand-sub { font-size: 9px; letter-spacing: .26em; color: rgba(244,240,230,.44); margin-top: 2px; text-transform: uppercase; }
.landing-nav-right { display: flex; align-items: center; gap: 18px; font-size: 11px; color: rgba(244,240,230,.56); letter-spacing: .06em; }
.live-pill { display: flex; align-items: center; gap: 7px; border: 1px solid rgba(244,240,230,.16); padding: 6px 12px; border-radius: 999px; }
.live-pill .status-dot { box-shadow: 0 0 0 3px rgba(111, 174, 127, .1); background: #7fb18a; }
.landing-main { display: grid; grid-template-columns: 1.17fr .83fr; gap: 66px; padding: 88px 0 70px; align-items: end; }
.landing-kicker { display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .28em; color: #c6a66f; margin-bottom: 28px; }
.landing-kicker::before { content: ""; width: 34px; height: 1px; background: rgba(198,166,111,.6); }
.landing h1 {
  font-family: var(--font-serif);
  font-size: clamp(42px, 4.7vw, 68px);
  font-weight: 400; line-height: 1.18; letter-spacing: .02em; margin: 0;
  color: #f3efe4;
}
.landing h1 em { font-style: normal; color: #d6bb8a; }
.landing-lede { max-width: 520px; margin-top: 26px; font-size: 13px; line-height: 2; color: rgba(244,240,230,.58); }
.landing-lede strong { color: rgba(244,240,230,.86); font-weight: 500; }
.landing-proof { display: flex; gap: 34px; margin-top: 43px; }
.landing-proof .item { border-top: 1px solid rgba(244,240,230,.14); padding-top: 12px; min-width: 108px; }
.landing-proof .num { font-family: var(--font-serif); font-size: 25px; color: #e9dcc2; }
.landing-proof .label { font-size: 10px; color: rgba(244,240,230,.36); letter-spacing: .12em; margin-top: 3px; }
.portal-menu { display: flex; flex-direction: column; gap: 10px; }
.portal-card {
  display: grid; grid-template-columns: 42px 1fr 32px; align-items: center; gap: 16px;
  padding: 22px 20px; border: 1px solid rgba(244,240,230,.13);
  background: rgba(249,246,237,.055); border-radius: 2px 18px 2px 18px;
  transition: .25s ease; position: relative; overflow: hidden;
}
.portal-card:hover { background: rgba(249,246,237,.1); border-color: rgba(214,187,138,.36); transform: translateX(-5px); }
.portal-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: #d6bb8a; opacity: 0; transition: .2s; }
.portal-card:hover::after { opacity: 1; }
.portal-icon { width: 40px; height: 40px; border: 1px solid rgba(244,240,230,.15); display: grid; place-items: center; color: #d6bb8a; }
.portal-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 20px; letter-spacing: .1em; color: #f4efe3; }
.portal-card p { font-size: 11px; color: rgba(244,240,230,.42); margin-top: 3px; }
.portal-arrow { width: 30px; height: 30px; border: 1px solid rgba(244,240,230,.15); border-radius: 50%; display: grid; place-items: center; color: rgba(244,240,230,.62); }
.portal-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border-top: 1px solid rgba(244,240,230,.1); font-size: 10px; letter-spacing: .08em; color: rgba(244,240,230,.32); }
.portal-foot .pulse { display: flex; align-items: center; gap: 7px; }
.portal-foot .pulse .status-dot { width: 5px; height: 5px; }
.landing-service-line { font-family: var(--font-serif); color: rgba(244,240,230,.3); writing-mode: vertical-rl; letter-spacing: .32em; font-size: 10px; position: absolute; right: -38px; top: 50px; }
.landing-orbit {
  position: absolute; right: 2%; bottom: -110px; width: 420px; height: 420px;
  border: 1px solid rgba(214,187,138,.1); border-radius: 50%; pointer-events: none;
}
.landing-orbit::before { content: ""; position: absolute; inset: 54px; border: 1px solid rgba(214,187,138,.08); border-radius: 50%; }
.landing-orbit::after { content: ""; position: absolute; width: 7px; height: 7px; background: #c6a66f; border-radius: 50%; top: 50%; right: -3px; box-shadow: 0 0 20px rgba(198,166,111,.4); }

@media (max-width: 900px) {
  .landing-wrap { width: calc(100% - 40px); }
  .landing-main { grid-template-columns: 1fr; gap: 45px; padding: 58px 0 46px; }
  .landing h1 { font-size: clamp(40px, 11vw, 60px); }
  .landing-nav-right .hide-mobile { display: none; }
  .landing-proof { gap: 20px; }
  .portal-foot { flex-direction: column; align-items: flex-start; }
  .landing-service-line { display: none; }
}
@media (max-width: 540px) {
  .landing-wrap { width: calc(100% - 32px); }
  .landing-nav { padding-top: 22px; }
  .landing-lede { font-size: 12px; }
  .landing-proof { gap: 12px; justify-content: space-between; }
  .landing-proof .item { min-width: 0; flex: 1; }
  .landing-proof .num { font-size: 21px; }
  .portal-card { grid-template-columns: 36px 1fr 28px; padding: 18px 15px; gap: 12px; }
  .portal-icon { width: 34px; height: 34px; }
  .portal-card h3 { font-size: 18px; }
  .live-pill { padding: 5px 9px; font-size: 9px; }
}

/* ---------- Login ---------- */
.login-screen { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; background: var(--paper); }
.login-art {
  position: relative; overflow: hidden; padding: 44px 56px; color: var(--cream);
  background:
    radial-gradient(ellipse at 22% 15%, rgba(195, 164, 107, .17), transparent 35%),
    linear-gradient(150deg, #14241c, #1d392c 58%, #14231b);
  display: flex; flex-direction: column; justify-content: space-between;
}
.login-art::before { content: ""; position: absolute; width: 460px; height: 690px; border: 1px solid rgba(226,207,167,.13); border-radius: 230px 230px 0 0; right: -80px; bottom: -200px; }
.login-art::after { content: ""; position: absolute; width: 280px; height: 420px; border: 1px solid rgba(226,207,167,.08); border-radius: 140px 140px 0 0; right: 15px; bottom: -200px; }
.login-art .brand-lockup { position: relative; z-index: 1; }
.login-quote { position: relative; z-index: 1; max-width: 470px; }
.login-quote .vertical { font-family: var(--font-serif); font-size: clamp(37px, 4vw, 58px); line-height: 1.35; font-weight: 400; color: #f0eadc; }
.login-quote .vertical em { color: #d3b787; font-style: normal; }
.login-quote p { margin-top: 28px; max-width: 390px; font-size: 12px; line-height: 2; color: rgba(244,240,230,.46); }
.login-art-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; font-size: 10px; letter-spacing: .08em; color: rgba(244,240,230,.32); border-top: 1px solid rgba(244,240,230,.1); padding-top: 22px; }
.login-panel-wrap { display: flex; align-items: center; justify-content: center; padding: 40px; position: relative; }
.login-panel { width: min(390px, 100%); }
.login-panel .eyebrow { margin-bottom: 12px; }
.login-panel h2 { font-family: var(--font-serif); font-size: 32px; font-weight: 400; letter-spacing: .04em; }
.login-panel .login-desc { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.login-form { margin-top: 34px; display: flex; flex-direction: column; gap: 18px; }
.login-form .input { min-height: 48px; border-radius: 3px; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding-left: 0; font-size: 14px; }
.login-form .input:focus { box-shadow: none; border-bottom-color: var(--jade); }
.login-form .field > label { font-size: 10px; letter-spacing: .13em; color: rgba(23,37,30,.46); text-transform: uppercase; }
.login-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); }
.login-hint code { background: var(--sage-soft); padding: 2px 7px; border-radius: 4px; font-size: 10px; font-family: var(--font-sans); color: var(--jade-deep); }
.login-submit { margin-top: 4px; border-radius: 3px; min-height: 48px; letter-spacing: .12em; background: var(--jade); }
.login-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: rgba(23,37,30,.32); font-size: 10px; letter-spacing: .08em; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-other { display: flex; gap: 9px; }
.login-other a { flex: 1; text-align: center; border: 1px solid var(--line); padding: 10px 7px; font-size: 11px; color: var(--ink-3); border-radius: 3px; transition: .18s; }
.login-other a:hover { border-color: var(--jade); color: var(--jade); }
.login-foot { margin-top: 36px; font-size: 10px; color: rgba(23,37,30,.34); line-height: 1.8; }
.login-back { position: absolute; top: 30px; right: 34px; font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.login-back:hover { color: var(--ink); }
.login-error { background: var(--rust-soft); color: var(--rust); padding: 11px 14px; border-radius: 4px; font-size: 11px; }
.trial-card { border: 1px solid rgba(49,95,76,.2); background: rgba(223,233,226,.45); padding: 14px 16px; border-radius: 4px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.trial-card .t { font-size: 12px; font-weight: 700; }
.trial-card .s { font-size: 10px; color: var(--muted); margin-top: 2px; }
.trial-card .btn { background: transparent; border: 1px solid rgba(49,95,76,.35); color: var(--jade); min-height: 32px; font-size: 11px; }
.trial-card .btn:hover { background: var(--jade); color: #fff; }

@media (max-width: 900px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-art { min-height: 240px; padding: 28px; }
  .login-quote { margin-top: 30px; }
  .login-quote .vertical { font-size: 32px; }
  .login-quote p { display: none; }
  .login-art-foot { display: none; }
  .login-panel-wrap { padding: 26px 24px 44px; align-items: flex-start; }
  .login-back { top: 18px; right: 20px; }
}

/* ---------- Staff shell ---------- */
.staff-app { min-height: 100vh; background: var(--cream); }
.sidebar {
  position: fixed; width: var(--sidebar-width); top: 0; bottom: 0; left: 0; z-index: 30;
  background: #172820; color: #dfe7df; display: flex; flex-direction: column;
  padding: 24px 16px 16px; transition: transform .25s ease;
}
.sidebar::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .25; background-image: radial-gradient(circle at 22% 10%, rgba(201,165,106,.14), transparent 30%); }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 2px 10px 26px; position: relative; z-index: 1; }
.sidebar-brand .brand-symbol { width: 32px; height: 32px; font-size: 16px; border-color: rgba(226,207,167,.3); }
.sidebar-brand .brand-name { font-size: 14px; color: #f0ebdf; letter-spacing: .17em; }
.sidebar-brand .brand-sub { font-size: 8px; color: rgba(231,225,208,.34); letter-spacing: .15em; }
.sidebar-context { position: relative; z-index: 1; margin: 0 6px 18px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); border-radius: 8px; padding: 11px 11px; display: flex; align-items: center; gap: 9px; }
.sidebar-context .avatar { width: 27px; height: 27px; font-size: 12px; background: rgba(214,187,138,.17); color: #dcc59a; }
.sidebar-context .ctx-name { font-size: 11px; color: #e8e3d5; font-weight: 600; line-height: 1.3; }
.sidebar-context .ctx-sub { font-size: 9px; color: rgba(238,235,225,.38); margin-top: 2px; }
.sidebar-nav { position: relative; z-index: 1; flex: 1; overflow: auto; padding: 0 3px; }
.nav-label { font-size: 8px; letter-spacing: .22em; color: rgba(238,235,225,.25); padding: 16px 9px 7px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; margin: 2px 0;
  border-radius: 7px; color: rgba(238,235,225,.57); font-size: 12px; transition: .18s;
  position: relative;
}
.nav-item:hover { background: rgba(255,255,255,.055); color: rgba(255,250,240,.9); }
.nav-item.active { background: rgba(224,213,188,.1); color: #f3ebda; }
.nav-item.active::before { content: ""; position: absolute; left: -3px; top: 11px; bottom: 11px; width: 2px; background: #c9a56a; }
.nav-item .icon { width: 17px; height: 17px; opacity: .76; }
.nav-item.active .icon { color: #d6bb8a; opacity: 1; }
.nav-badge { margin-left: auto; min-width: 17px; height: 17px; display: grid; place-items: center; background: rgba(201,165,106,.18); color: #ddc08b; border-radius: 999px; font-size: 9px; padding: 0 4px; font-family: var(--num); }
.sidebar-foot { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.08); padding: 13px 5px 0; }
.sidebar-user { display: flex; align-items: center; gap: 9px; padding: 5px; }
.sidebar-user .avatar { width: 29px; height: 29px; font-size: 12px; background: rgba(255,255,255,.09); color: #e9dfc9; }
.sidebar-user .name { font-size: 11px; color: #e4dfd2; font-weight: 600; }
.sidebar-user .role { font-size: 9px; color: rgba(238,235,225,.33); }
.sidebar-links { display: flex; gap: 12px; padding: 9px 5px 0; font-size: 9px; color: rgba(238,235,225,.35); }
.sidebar-links a:hover { color: #e7dcc7; }
.sidebar-close { display: none; }

.staff-main { margin-left: var(--sidebar-width); min-height: 100vh; }
.topbar {
  height: var(--topbar-height); border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 34px; position: sticky; top: 0; z-index: 20;
  background: rgba(243,239,229,.87); backdrop-filter: blur(18px);
}
.topbar-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.mobile-menu-btn { display: none; border: 1px solid var(--line); background: transparent; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; }
.page-eyebrow { font-size: 9px; letter-spacing: .17em; color: rgba(23,37,30,.4); text-transform: uppercase; }
.page-title-small { font-size: 16px; font-weight: 700; letter-spacing: .02em; margin-top: 1px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.top-status { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; font-size: 10px; color: var(--ink-3); background: rgba(255,255,255,.38); }
.top-search { width: 210px; }
.top-search .input { min-height: 34px; border-radius: 999px; font-size: 11px; background: rgba(255,255,255,.5); }
.top-icon-btn { border: 1px solid var(--line); background: rgba(255,255,255,.35); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; position: relative; color: var(--ink-3); }
.top-icon-btn:hover { background: var(--white); color: var(--ink); }
.top-icon-btn .dot { position: absolute; top: 5px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.top-icon-btn .icon { width: 16px; height: 16px; }
.top-avatar-btn { border: 0; background: transparent; display: flex; align-items: center; gap: 8px; padding: 3px; }
.top-avatar-btn .chev { color: var(--muted); }
.top-avatar-btn .icon { width: 13px; height: 13px; }
.page { padding: 30px 34px 60px; max-width: 1520px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-head .eyebrow { margin-bottom: 8px; }
.page-head h1 { font-family: var(--font-serif); font-size: 31px; line-height: 1.3; font-weight: 400; letter-spacing: .03em; }
.page-head .desc { color: var(--muted); font-size: 12px; margin-top: 5px; max-width: 650px; line-height: 1.8; }
.page-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.section-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-label h2 { font-size: 13px; font-weight: 700; letter-spacing: .03em; }
.section-label .sub { font-size: 10px; color: var(--muted); }
.backdrop { display: none; position: fixed; inset: 0; z-index: 25; background: rgba(15,25,19,.38); backdrop-filter: blur(2px); }
.backdrop.show { display: block; }

/* ---------- Dashboard ---------- */
.hero-strip {
  position: relative; overflow: hidden; min-height: 178px;
  border-radius: 2px 24px 2px 24px; padding: 30px 34px;
  color: #f4efe3; background:
    radial-gradient(ellipse at 85% 25%, rgba(201,165,106,.18), transparent 40%),
    linear-gradient(118deg, #1b3327, #264737 60%, #1b3125);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px;
  box-shadow: var(--shadow-md);
}
.hero-strip::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(217,195,153,.14); right: 80px; top: -230px; }
.hero-strip .eyebrow { color: rgba(216,190,143,.72); }
.hero-strip h2 { font-family: var(--font-serif); font-weight: 400; font-size: 31px; margin-top: 9px; letter-spacing: .02em; }
.hero-strip .hero-sub { color: rgba(244,240,230,.5); font-size: 11px; margin-top: 9px; max-width: 540px; line-height: 1.8; }
.hero-right { text-align: right; min-width: 160px; position: relative; z-index: 1; }
.hero-right .big { font-family: var(--font-serif); font-size: 34px; color: #e7d8b8; line-height: 1; }
.hero-right .small { margin-top: 7px; font-size: 9px; letter-spacing: .12em; color: rgba(244,240,230,.37); }
.hero-actions { display: flex; gap: 8px; margin-top: 21px; position: relative; z-index: 1; }
.hero-actions .btn { border-radius: 3px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #f0e8d8; font-size: 11px; }
.hero-actions .btn:hover { background: rgba(255,255,255,.15); }
.hero-actions .btn.gold { background: #d8bd8b; border-color: #d8bd8b; color: #2b3d2f; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.kpi-card { background: rgba(255,254,251,.78); border: 1px solid var(--line); border-radius: 12px; padding: 17px 18px; position: relative; overflow: hidden; }
.kpi-card .label { font-size: 10px; color: rgba(23,37,30,.5); letter-spacing: .04em; display: flex; align-items: center; gap: 6px; }
.kpi-card .value { font-family: var(--font-serif); font-size: 29px; line-height: 1.1; margin-top: 11px; letter-spacing: -.02em; }
.kpi-card .value .unit { font-family: var(--font-sans); font-size: 11px; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.kpi-card .delta { font-size: 10px; margin-top: 8px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.kpi-card .delta .up { color: var(--jade); font-weight: 600; }
.kpi-card .delta .gold { color: var(--gold); font-weight: 600; }
.kpi-card .corner { position: absolute; right: 15px; top: 15px; opacity: .45; color: var(--jade); }
.kpi-card .corner .icon { width: 16px; height: 16px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr); gap: 18px; margin-top: 18px; }
.dash-col { display: flex; flex-direction: column; gap: 18px; }
.appointment-line { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.appointment-line:first-child { border-top: 0; padding-top: 0; }
.appointment-line .time { width: 47px; font-family: var(--num); font-size: 13px; font-weight: 600; color: var(--ink-2); flex: none; }
.appointment-line .info { flex: 1; min-width: 0; }
.appointment-line .info .who { font-size: 12px; font-weight: 650; }
.appointment-line .info .what { font-size: 10px; color: var(--muted); margin-top: 1px; }
.appointment-line .right { display: flex; align-items: center; gap: 8px; flex: none; }
.quick-list { display: flex; flex-direction: column; }
.quick-row { display: flex; gap: 11px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.quick-row:first-child { border-top: 0; padding-top: 0; }
.quick-row .qi { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--sage-soft); color: var(--jade); }
.quick-row .qi.gold { background: var(--gold-soft); color: #866134; }
.quick-row .qi.rust { background: var(--rust-soft); color: var(--rust); }
.quick-row .qi .icon { width: 14px; height: 14px; }
.quick-row .txt { flex: 1; min-width: 0; }
.quick-row .txt .t { font-size: 11px; font-weight: 600; }
.quick-row .txt .s { font-size: 10px; color: var(--muted); margin-top: 2px; line-height: 1.55; }
.quick-row .go { color: rgba(23,37,30,.35); }
.quick-row:hover .go { color: var(--jade); }
.mini-chart { display: flex; align-items: flex-end; height: 82px; gap: 7px; padding-top: 15px; }
.mini-chart .bar-wrap { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.mini-chart .bar { width: 100%; max-width: 28px; border-radius: 3px 3px 1px 1px; background: rgba(49,95,76,.17); min-height: 2px; transition: .3s; }
.mini-chart .bar.hi { background: var(--jade); }
.mini-chart .bar-wrap:hover .bar { background: #c9a56a; }
.mini-chart .day { font-size: 8px; color: rgba(23,37,30,.37); }
.chart-legend { display: flex; gap: 15px; font-size: 9px; color: var(--muted); }
.chart-legend span { display: inline-flex; gap: 5px; align-items: center; }
.chart-legend i { width: 6px; height: 6px; border-radius: 2px; background: var(--jade); }
.agent-flow-list { display: flex; flex-direction: column; }
.agent-flow { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line-soft); cursor: pointer; }
.agent-flow:first-child { border-top: 0; }
.agent-flow:hover .af-arrow { color: var(--jade); transform: translateX(2px); }
.af-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--jade); position: relative; }
.af-dot::after { content: ""; position: absolute; inset: -4px; border: 1px solid rgba(49,95,76,.18); border-radius: 50%; }
.af-dot.wait { background: var(--gold); }
.af-dot.fail { background: var(--rust); }
.agent-flow .af-main { flex: 1; min-width: 0; }
.agent-flow .af-t { font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-flow .af-s { font-size: 9px; color: var(--muted); margin-top: 2px; }
.af-quality { font-family: var(--num); font-size: 11px; color: var(--jade); font-weight: 600; }
.af-arrow { color: rgba(23,37,30,.28); transition: .18s; }
.funnel { display: flex; gap: 6px; align-items: stretch; margin-top: 14px; }
.funnel-step { flex: 1; padding: 10px 9px; background: var(--paper-2); border-radius: 6px; position: relative; }
.funnel-step .n { font-family: var(--num); font-size: 18px; }
.funnel-step .l { font-size: 8px; color: var(--muted); margin-top: 1px; }
.funnel-step::after { content: "›"; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); color: rgba(23,37,30,.2); z-index: 1; font-size: 14px; }
.funnel-step:last-child::after { display: none; }
.funnel-step:first-child { background: var(--jade-soft); }
.funnel-step:last-child { background: var(--gold-soft); }

.lib-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.lib-chip { border: 1px solid var(--line, #e3e0d8); background: var(--paper-2, #f7f5f0); color: #4b4842; border-radius: 999px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.lib-chip.active { background: #1f3a2c; color: #fff; border-color: #1f3a2c; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.lib-card { border: 1px solid rgba(23,37,30,.1); border-radius: 10px; padding: 12px; background: #fff; }
.lib-card.match { border-color: #c9a56a; background: rgba(201,165,106,.08); }
.lib-card h4 { font-size: 13px; margin: 6px 0 4px; color: #17251e; }
.lib-benefit { font-size: 12px; color: #315f4c; font-weight: 600; }
.lib-note { font-size: 11px; color: #8a857c; margin-top: 4px; line-height: 1.5; }
.lib-card.highlight { outline: 2px solid #c9a56a; box-shadow: 0 0 0 4px rgba(201,165,106,.18); }
.gap-card { border-color: rgba(201,165,106,.5); }
.gap-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(23,37,30,.06); }
.gap-row:first-child { border-top: none; }
.gap-main { flex: 1; min-width: 0; }
.gap-title { font-weight: 600; color: #17251e; font-size: 13px; }
.gap-sub { font-size: 11px; color: #8a857c; margin-top: 2px; }
.gap-rec { font-size: 11px; color: #6b7280; }
.gap-rec b { color: #315f4c; }
.tag-warn { background: #c9a56a; color: #fff; border-color: #c9a56a; }

/* ---------- Tables / lists ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 9px; letter-spacing: .08em; color: rgba(23,37,30,.43); font-weight: 600; text-transform: uppercase; padding: 9px 13px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; background: rgba(248,245,237,.5); }
.table td { padding: 13px; border-bottom: 1px solid var(--line-soft); font-size: 12px; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(223,233,226,.18); }
.table .main-cell { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.table .main-cell .who { font-weight: 650; font-size: 12px; }
.table .main-cell .meta { font-size: 9px; color: var(--muted); margin-top: 1px; }
.table .actions { display: flex; gap: 5px; align-items: center; justify-content: flex-end; white-space: nowrap; }
.table .money { font-family: var(--num); font-weight: 600; }
.table .soft { color: var(--muted); }
.row-click { cursor: pointer; }
.empty {
  text-align: center; padding: 38px 20px; color: var(--muted); font-size: 12px;
  border: 1px dashed var(--line); border-radius: 10px; margin: 14px; background: rgba(255,255,255,.24);
}
.empty .icon { width: 25px; height: 25px; margin: 0 auto 10px; opacity: .38; }
.empty strong { display: block; color: var(--ink-3); font-weight: 600; margin-bottom: 3px; }
.list-note { color: rgba(23,37,30,.43); font-size: 10px; }
.mini-table .table td { padding: 10px 12px; }
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 15px 20px; border-bottom: 1px solid var(--line-soft); }
.filter-bar .search-box { min-width: 180px; }
.filter-bar .input, .filter-bar .select { min-height: 34px; font-size: 11px; }
.table-footer { display: flex; justify-content: space-between; align-items: center; padding: 13px 20px; border-top: 1px solid var(--line-soft); font-size: 10px; color: var(--muted); }
.pager { display: flex; align-items: center; gap: 8px; }
.pager-info { font-size: 11px; color: var(--muted); white-space: nowrap; }
.pager .btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ---------- Appointments ---------- */
.checkin-station {
  border: 1px solid rgba(49,95,76,.19); background:
    linear-gradient(120deg, rgba(223,233,226,.65), rgba(255,254,251,.7) 60%);
  border-radius: 14px; padding: 20px 22px; display: grid; grid-template-columns: minmax(240px, 1.4fr) auto; gap: 20px; align-items: center;
}
.checkin-station .left { display: flex; align-items: center; gap: 18px; }
.checkin-station .icon-bubble { width: 45px; height: 45px; border-radius: 50%; background: var(--jade); display: grid; place-items: center; color: #f4ede0; flex: none; }
.checkin-station .icon-bubble .icon { width: 20px; height: 20px; }
.checkin-station h3 { font-family: var(--font-serif); font-weight: 400; font-size: 20px; }
.checkin-station p { font-size: 10px; color: var(--muted); margin-top: 2px; }
.checkin-form { display: flex; gap: 8px; }
.checkin-form .input { min-width: 240px; background: #fff; }
.date-nav { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: rgba(255,255,255,.42); }
.date-nav button { width: 28px; height: 28px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.date-nav button:hover { background: var(--white); color: var(--ink); }
.date-nav .day-label { padding: 0 10px; font-size: 11px; font-weight: 600; min-width: 90px; text-align: center; }
.appointment-detail-row { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.appointment-detail-row:last-child { border-bottom: 0; }
.appointment-detail-row .k { color: var(--muted); }
.appointment-detail-row .v { font-weight: 600; text-align: right; }
.code-pill { font-family: var(--num); font-size: 11px; letter-spacing: .08em; background: var(--ink); color: var(--cream); padding: 5px 9px; border-radius: 3px; display: inline-flex; gap: 5px; align-items: center; }
.code-pill.light { background: var(--sage-soft); color: var(--jade-deep); }
.appt-summary { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; padding: 18px 20px; background: var(--paper-2); border-radius: 10px; }
.appt-summary .big { font-family: var(--num); font-size: 28px; }
.appt-summary .lbl { font-size: 9px; color: var(--muted); }
.appt-summary .divider-v { height: 32px; }
.receipt-box { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 18px; text-align: center; }
.receipt-box .check { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: var(--jade-soft); color: var(--jade); display: grid; place-items: center; }
.receipt-box h3 { font-family: var(--font-serif); font-weight: 400; font-size: 22px; }
.receipt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; text-align: left; }
.receipt-grid .ri { background: var(--paper-2); padding: 10px 12px; border-radius: 7px; }
.receipt-grid .ri .k { font-size: 9px; color: var(--muted); }
.receipt-grid .ri .v { font-family: var(--num); font-size: 17px; margin-top: 2px; }

/* ---------- Customer detail / modals ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15,26,19,.38); z-index: 80; backdrop-filter: blur(2px); animation: fadein .2s ease; }
.drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: min(480px, 100%); z-index: 81;
  background: var(--paper); box-shadow: -20px 0 70px rgba(15,30,22,.18);
  display: flex; flex-direction: column; animation: slidein .25s cubic-bezier(.22,.8,.32,1);
}
.drawer.wide { width: min(600px, 100%); }
.drawer-head { padding: 24px 25px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.drawer-head h2 { font-family: var(--font-serif); font-size: 24px; font-weight: 400; }
.drawer-head .sub { font-size: 10px; color: var(--muted); margin-top: 3px; }
.drawer-close { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: transparent; display: grid; place-items: center; color: var(--muted); }
.drawer-close:hover { background: var(--white); color: var(--ink); }
.drawer-body { padding: 22px 25px 32px; overflow-y: auto; flex: 1; }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 25px; display: flex; justify-content: flex-end; gap: 8px; background: rgba(251,249,243,.8); }
.member-card {
  position: relative; overflow: hidden; color: #f3ecdc; border-radius: 3px 18px 3px 18px;
  padding: 20px 21px; background:
    radial-gradient(ellipse at 90% 0%, rgba(200,164,105,.22), transparent 45%),
    linear-gradient(135deg, #1c3428, #294c3b);
  box-shadow: 0 13px 35px rgba(23,42,32,.16);
}
.member-card::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(230,210,174,.14); right: -50px; top: -100px; }
.member-card .mc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.member-card .mc-brand { font-family: var(--font-serif); letter-spacing: .18em; font-size: 13px; }
.member-card .mc-level { font-size: 9px; border: 1px solid rgba(230,210,174,.28); color: #dec89d; padding: 3px 8px; border-radius: 999px; letter-spacing: .08em; }
.member-card .mc-name { font-family: var(--font-serif); font-size: 22px; margin-top: 22px; letter-spacing: .06em; }
.member-card .mc-no { font-family: var(--num); font-size: 9px; color: rgba(243,236,220,.44); letter-spacing: .13em; margin-top: 2px; }
.member-card .mc-bottom { display: flex; gap: 26px; margin-top: 20px; position: relative; z-index: 1; }
.member-card .mc-metric .k { font-size: 8px; color: rgba(243,236,220,.4); letter-spacing: .08em; }
.member-card .mc-metric .v { font-family: var(--num); font-size: 19px; color: #f0e2c4; margin-top: 1px; }
.member-card .mc-metric .v small { font-size: 9px; color: rgba(240,226,196,.5); }
.detail-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.detail-metrics .dm { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 11px; }
.detail-metrics .dm .k { font-size: 9px; color: var(--muted); }
.detail-metrics .dm .v { font-family: var(--num); font-size: 18px; margin-top: 2px; }
.tab-row { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-top: 20px; overflow-x: auto; }
.tab-row button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 0 10px; font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tab-row button.active { color: var(--ink); border-color: var(--jade); }
.timeline { position: relative; padding-left: 19px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 8px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 18px; }
.tl-item::before { content: ""; position: absolute; left: -19px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--sage); }
.tl-item.done::before { background: var(--jade); border-color: var(--jade); }
.tl-item.gold::before { border-color: var(--gold); background: var(--gold-soft); }
.tl-item .tl-time { font-size: 9px; color: rgba(23,37,30,.37); letter-spacing: .04em; }
.tl-item .tl-t { font-size: 11px; font-weight: 600; margin-top: 2px; }
.tl-item .tl-d { font-size: 10px; color: var(--muted); margin-top: 2px; line-height: 1.55; }
.tl-item .tl-amount { font-family: var(--num); font-weight: 600; font-size: 12px; }
.ledger-list .item { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.ledger-list .item:last-child { border-bottom: 0; }
.ledger-list .t { font-size: 11px; font-weight: 600; }
.ledger-list .s { font-size: 9px; color: var(--muted); margin-top: 2px; }
.ledger-list .amount { font-family: var(--num); font-weight: 600; font-size: 12px; text-align: right; white-space: nowrap; }
.ledger-list .amount.pos { color: var(--jade); }
.ledger-list .amount.neg { color: var(--rust); }

@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes slidein { from { transform: translateX(35px); opacity: .7; } to { transform: translateX(0); opacity: 1; } }
@keyframes modalin { from { transform: translateY(12px) scale(.99); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

.modal-backdrop { position: fixed; inset: 0; background: rgba(15,26,19,.4); backdrop-filter: blur(3px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadein .18s ease; }
.modal {
  width: min(540px, 100%); max-height: 88vh; background: var(--paper);
  border-radius: 4px 20px 4px 20px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden; animation: modalin .24s cubic-bezier(.22,.8,.32,1);
}
.modal.wide { width: min(720px, 100%); }
.modal.slim { width: min(430px, 100%); }
.modal-head { padding: 22px 24px 15px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-head h2 { font-family: var(--font-serif); font-size: 23px; font-weight: 400; }
.modal-head .sub { font-size: 10px; color: var(--muted); margin-top: 2px; }
.modal-body { padding: 20px 24px; overflow-y: auto; }
.modal-foot { padding: 14px 24px; border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-end; gap: 8px; background: rgba(251,249,243,.75); }
.modal-close { border: 1px solid var(--line); width: 29px; height: 29px; background: transparent; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.modal-close:hover { color: var(--ink); background: #fff; }
.confirm-copy { font-size: 12px; line-height: 1.8; color: var(--ink-3); }
.confirm-copy strong { color: inherit; }
.danger-note { background: var(--rust-soft); color: #853b2b; padding: 11px 13px; font-size: 11px; border-radius: 7px; line-height: 1.65; }
.info-note { background: var(--sage-soft); color: var(--jade-deep); padding: 11px 13px; font-size: 11px; border-radius: 7px; line-height: 1.65; }
.gold-note { background: var(--gold-soft); color: #755329; padding: 11px 13px; font-size: 11px; border-radius: 7px; line-height: 1.65; }
.quick-amounts { display: flex; gap: 7px; flex-wrap: wrap; }
.quick-amounts button { border: 1px solid var(--line); background: rgba(255,255,255,.4); padding: 6px 13px; border-radius: 999px; font-size: 11px; }
.quick-amounts button.active { border-color: var(--jade); color: var(--jade); background: var(--jade-soft); }

/* ---------- Toast ---------- */
.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto; min-width: 250px; max-width: 380px; background: var(--ink); color: #f4efe3;
  padding: 12px 15px; border-radius: 4px 12px 4px 12px; box-shadow: var(--shadow-md);
  font-size: 12px; line-height: 1.55; display: flex; align-items: flex-start; gap: 9px;
  animation: toastin .25s ease;
}
.toast .ticon { margin-top: 1px; color: #c9a56a; flex: none; }
.toast.success .ticon { color: #91b69c; }
.toast.error .ticon { color: #e0a08d; }
.toast.error { background: #3b241e; }
.toast.out { animation: toastout .2s ease forwards; }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toastout { to { opacity: 0; transform: translateY(5px); } }

/* ---------- Marketing / agent / reports ---------- */
.campaign-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.campaign-card {
  position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 3px 18px 3px 18px;
  padding: 21px; display: flex; flex-direction: column; min-height: 235px; transition: .2s;
}
.campaign-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.campaign-card.off { opacity: .58; }
.campaign-card .badge { font-size: 9px; letter-spacing: .1em; color: var(--gold); text-transform: uppercase; }
.campaign-card h3 { font-family: var(--font-serif); font-size: 21px; font-weight: 400; margin-top: 12px; line-height: 1.35; }
.campaign-card .desc { font-size: 11px; line-height: 1.8; color: var(--muted); margin-top: 7px; flex: 1; }
.campaign-card .benefit { font-size: 11px; color: var(--jade-deep); background: var(--jade-soft); padding: 8px 10px; border-radius: 5px; margin-top: 13px; }
.campaign-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: 10px; color: var(--muted); }
.campaign-card .deco { position: absolute; width: 100px; height: 100px; border: 1px solid rgba(178,134,78,.12); border-radius: 50%; right: -50px; top: -50px; }
.create-card { border: 1px dashed rgba(49,95,76,.3); background: rgba(255,255,255,.28); display: grid; place-items: center; text-align: center; min-height: 235px; border-radius: 3px 18px 3px 18px; color: var(--muted); }
.create-card:hover { background: rgba(223,233,226,.25); }
.create-card .plus { width: 38px; height: 38px; border-radius: 50%; background: var(--jade-soft); color: var(--jade); display: grid; place-items: center; margin: 0 auto 8px; }
.create-card .t { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.create-card .s { font-size: 10px; margin-top: 2px; }
.metric-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.simple-metric { padding: 17px 19px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.simple-metric .k { font-size: 9px; color: var(--muted); letter-spacing: .06em; }
.simple-metric .v { font-family: var(--font-num); font-size: 25px; margin-top: 5px; }
.simple-metric .v small { font-size: 10px; color: var(--muted); }

.chart-card { padding: 20px 22px; }
.bars-large { display: flex; align-items: flex-end; gap: 12px; height: 190px; padding-top: 10px; }
.bars-large .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; position: relative; }
.bars-large .stem { width: 100%; max-width: 34px; border-radius: 4px 4px 1px 1px; background: rgba(49,95,76,.16); position: relative; min-height: 3px; transition: .3s; }
.bars-large .col:hover .stem { background: var(--jade); }
.bars-large .stem .val { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-family: var(--num); font-size: 8px; color: var(--muted); white-space: nowrap; opacity: 0; transition: .15s; }
.bars-large .col:hover .stem .val { opacity: 1; }
.bars-large .lab { font-size: 8px; color: rgba(23,37,30,.37); white-space: nowrap; }
.rank-list .rank { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.rank-list .rank:last-child { border-bottom: 0; }
.rank-list .rno { width: 21px; font-family: var(--num); font-size: 10px; color: rgba(23,37,30,.35); }
.rank-list .rname { flex: 1; font-size: 11px; font-weight: 600; }
.rank-list .rbar { width: 90px; height: 4px; border-radius: 999px; background: rgba(23,37,30,.07); overflow: hidden; }
.rank-list .rbar span { display: block; height: 100%; background: var(--jade); border-radius: inherit; }
.rank-list .rval { font-family: var(--num); font-size: 10px; width: 60px; text-align: right; }
.agent-hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; margin-bottom: 18px; }
.agent-status-card { padding: 24px; border-radius: 3px 20px 3px 20px; color: #f3ecdf; background: linear-gradient(130deg, #1a3024, #2b4b3b); position: relative; overflow: hidden; }
.agent-status-card::after { content: ""; position: absolute; width: 300px; height: 300px; border: 1px solid rgba(201,165,106,.16); border-radius: 50%; right: -100px; top: -180px; }
.agent-status-card .eyebrow { color: rgba(214,187,138,.7); }
.agent-status-card h2 { font-family: var(--font-serif); font-weight: 400; font-size: 29px; margin-top: 8px; }
.agent-status-card p { font-size: 11px; color: rgba(243,236,223,.49); margin-top: 6px; line-height: 1.75; max-width: 460px; }
.agent-status-card .row { display: flex; gap: 27px; margin-top: 20px; position: relative; z-index: 1; }
.agent-status-card .row .k { font-size: 8px; color: rgba(243,236,223,.38); }
.agent-status-card .row .v { font-family: var(--num); font-size: 21px; color: #e9d8b7; margin-top: 2px; }
.emergency-card { border: 1px solid rgba(163,79,60,.22); background: rgba(247,228,223,.4); padding: 24px; border-radius: 3px 20px 3px 20px; }
.emergency-card .icon { width: 24px; height: 24px; color: var(--rust); }
.emergency-card h3 { font-family: var(--font-serif); font-size: 21px; font-weight: 400; margin-top: 12px; }
.emergency-card p { font-size: 10px; line-height: 1.75; color: var(--muted); margin-top: 5px; }
.emergency-card .btn { margin-top: 16px; }
.quality-badge { display: inline-flex; align-items: center; gap: 4px; font-family: var(--num); font-size: 10px; color: var(--jade); font-weight: 700; }
.quality-badge.mid { color: var(--gold); }
.quality-badge.low { color: var(--rust); }
.trace-tabs { padding: 14px 24px 0; }
.trace-summary { background: var(--paper-2); border-radius: 9px; padding: 13px 14px; margin-bottom: 18px; }
.trace-summary .request { font-size: 12px; line-height: 1.6; }
.trace-summary .meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 8px; font-size: 9px; color: var(--muted); }
.trace-steps { position: relative; padding-left: 22px; }
.trace-steps::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: 6px; width: 1px; background: var(--line); }
.trace-step { position: relative; padding: 0 0 19px; opacity: 1; transition: .25s; }
.trace-step.dim { opacity: .28; }
.trace-step.current .step-card { border-color: rgba(49,95,76,.4); box-shadow: 0 0 0 2px rgba(49,95,76,.07); }
.trace-step::before { content: ""; position: absolute; left: -22px; top: 5px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--sage); background: var(--paper); z-index: 1; }
.trace-step.ok::before { background: var(--jade); border-color: var(--jade); }
.trace-step.retry::before { background: var(--gold-soft); border-color: var(--gold); }
.trace-step.error::before { background: var(--rust-soft); border-color: var(--rust); }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.step-phase { font-size: 8px; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; font-weight: 700; }
.step-time { font-size: 8px; color: rgba(23,37,30,.35); }
.step-decision { font-size: 11px; line-height: 1.65; margin-top: 4px; color: var(--ink-3); }
.step-card { margin-top: 8px; border: 1px solid var(--line-soft); border-radius: 7px; background: rgba(255,255,255,.4); overflow: hidden; }
.step-card-head { padding: 7px 10px; font-size: 9px; color: var(--muted); border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; }
.step-json { margin: 0; padding: 9px 10px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; color: var(--ink-3); white-space: pre-wrap; word-break: break-word; max-height: 150px; overflow: auto; background: rgba(247,243,233,.5); }
.replay-controls { display: flex; gap: 8px; align-items: center; }
.replay-progress { height: 3px; background: var(--line-soft); border-radius: 999px; flex: 1; overflow: hidden; }
.replay-progress span { display: block; height: 100%; background: var(--gold); width: 0; transition: width .4s; }
.usage-chart { display: flex; align-items: flex-end; gap: 9px; height: 130px; padding-top: 10px; }
.usage-chart .u-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; height: 100%; }
.usage-chart .u-bar { width: 100%; max-width: 26px; background: var(--gold-soft); border-radius: 3px 3px 1px 1px; min-height: 2px; }
.usage-chart .u-lbl { font-size: 8px; color: var(--muted); }
.run-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.run-status { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--muted); }
.run-status .d { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.run-status.completed .d { background: var(--jade); }
.run-status.failed .d, .run-status.blocked .d { background: var(--rust); }
.run-status.awaiting_user .d { background: var(--gold); }

/* ---------- Settings ---------- */
.settings-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-nav { position: sticky; top: calc(var(--topbar-height) + 20px); display: flex; flex-direction: column; gap: 2px; }
.settings-nav button { text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 6px; font-size: 11px; color: var(--muted); font-weight: 600; }
.settings-nav button:hover { background: rgba(255,255,255,.35); color: var(--ink); }
.settings-nav button.active { background: var(--white); color: var(--jade); box-shadow: var(--shadow-sm); }
.settings-section { margin-bottom: 18px; scroll-margin-top: calc(var(--topbar-height) + 24px); }
.settings-section .section-body { padding: 0 24px 22px; }
.setting-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 15px 0; border-top: 1px solid var(--line-soft); }
.setting-row:first-child { border-top: 0; }
.setting-row .k { font-size: 12px; font-weight: 600; }
.setting-row .d { font-size: 10px; color: var(--muted); margin-top: 2px; max-width: 520px; line-height: 1.65; }
.setting-row .control { flex: none; }
.setting-row .control .input { width: 160px; }
.setting-row .control .input.sm { width: 120px; }
.save-bar { position: sticky; bottom: 15px; background: var(--ink); color: var(--cream); display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; border-radius: 7px; box-shadow: var(--shadow-md); z-index: 5; }
.save-bar .txt { font-size: 11px; color: rgba(244,240,230,.63); }
.save-bar .btn { background: #d6bb8a; color: #26372b; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.35); gap: 16px; }
.toggle-row .t { font-size: 12px; font-weight: 600; }
.toggle-row .d { font-size: 10px; color: var(--muted); margin-top: 2px; }
.toggle-row + .toggle-row { margin-top: 8px; }
.health-check { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 11px; }
.health-check:first-child { border-top: 0; }
.health-check .ok { color: var(--jade); }
.health-check .bad { color: var(--rust); }
.health-check .detail { margin-left: auto; color: var(--muted); font-size: 9px; text-align: right; }

/* ---------- H5 ---------- */
.h5-stage {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(194,161,105,.15), transparent 30%),
    radial-gradient(ellipse at 80% 90%, rgba(55,93,72,.14), transparent 34%),
    #eae5d9;
  display: flex; justify-content: center; padding: 0;
}
.h5-frame {
  width: min(500px, 100%); min-height: 100vh; background: #f7f3e9;
  position: relative; box-shadow: 0 0 80px rgba(31,50,38,.09);
  display: flex; flex-direction: column;
}
.h5-top {
  padding: max(18px, env(safe-area-inset-top)) 20px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: sticky; top: 0; z-index: 15;
  background: rgba(247,243,233,.9); backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(23,37,30,.05);
}
.h5-brand { display: flex; align-items: center; gap: 9px; }
.h5-brand .brand-symbol { width: 29px; height: 29px; border-color: rgba(49,95,76,.3); color: var(--jade); font-size: 14px; }
.h5-brand .t { font-family: var(--font-serif); font-size: 14px; letter-spacing: .12em; }
.h5-brand .s { font-size: 8px; letter-spacing: .1em; color: var(--muted); margin-top: -1px; }
.h5-menu-btn { border: 1px solid rgba(23,37,30,.12); width: 34px; height: 34px; background: rgba(255,255,255,.45); border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); }
.h5-content { flex: 1; padding-bottom: 92px; min-height: calc(100vh - 60px); }
.h5-page { padding: 18px 20px 20px; animation: h5in .28s ease; }
@keyframes h5in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.h5-bottom {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 30; width: min(500px, 100%);
  background: rgba(251,249,243,.94); backdrop-filter: blur(17px);
  border-top: 1px solid rgba(23,37,30,.07); padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.h5-nav-item { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px; color: rgba(23,37,30,.38); font-size: 9px; border-radius: 9px; transition: .18s; }
.h5-nav-item .icon { width: 20px; height: 20px; }
.h5-nav-item.active { color: var(--jade); }
.h5-nav-item.active .icon { stroke-width: 1.9; }
.h5-nav-item .navdot { position: absolute; }
.h5-hero { position: relative; margin: 0 0 19px; padding: 24px 22px 21px; border-radius: 3px 22px 3px 22px; overflow: hidden; color: #f3ede0; background: radial-gradient(ellipse at 85% 10%, rgba(201,165,106,.19), transparent 42%), linear-gradient(130deg, #1c3428, #2a4c3b 64%, #1a2f23); min-height: 182px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 15px 38px rgba(30,50,38,.16); }
.h5-hero::after { content: ""; position: absolute; width: 210px; height: 210px; right: -75px; top: -80px; border-radius: 50%; border: 1px solid rgba(231,215,181,.16); }
.h5-hero .brandline { font-size: 9px; letter-spacing: .2em; color: rgba(229,211,174,.65); }
.h5-hero h1 { font-family: var(--font-serif); font-size: 31px; line-height: 1.27; font-weight: 400; margin-top: 9px; letter-spacing: .03em; }
.h5-hero .tagline { color: rgba(243,237,224,.49); font-size: 10px; line-height: 1.7; margin-top: 8px; max-width: 290px; }
.h5-hero .hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 15px; position: relative; z-index: 1; }
.h5-hero .mini { font-size: 9px; color: rgba(243,237,224,.4); display: flex; align-items: center; gap: 6px; }
.h5-member-chip { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.13); border-radius: 999px; padding: 5px 10px; font-size: 9px; display: flex; align-items: center; gap: 5px; color: #eadbbf; }
.h5-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 22px; }
.h5-action { border: 1px solid rgba(23,37,30,.08); background: rgba(255,255,255,.46); border-radius: 10px; padding: 13px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--ink-3); transition: .18s; }
.h5-action:hover { background: #fff; border-color: rgba(49,95,76,.2); transform: translateY(-2px); }
.h5-action .ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-soft); color: var(--jade); }
.h5-action .ico .icon { width: 15px; height: 15px; }
.h5-action .l { font-size: 10px; font-weight: 600; }
.h5-action.gold .ico { background: var(--gold-soft); color: #8b6534; }
.h5-section { margin-top: 23px; }
.h5-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.h5-section-head h2 { font-family: var(--font-serif); font-size: 19px; font-weight: 400; letter-spacing: .03em; }
.h5-section-head .more { border: 0; background: none; padding: 0; font-size: 9px; color: var(--muted); display: flex; align-items: center; gap: 3px; }
.h5-agent-entry { position: relative; overflow: hidden; border: 1px solid rgba(49,95,76,.16); background: linear-gradient(115deg, rgba(223,233,226,.75), rgba(255,253,247,.68)); border-radius: 3px 16px 3px 16px; padding: 17px 17px; display: flex; gap: 13px; align-items: center; }
.h5-agent-entry .orb { width: 39px; height: 39px; border-radius: 50%; display: grid; place-items: center; color: #e9d7b6; background: var(--jade-deep); flex: none; box-shadow: 0 0 0 5px rgba(49,95,76,.06); }
.h5-agent-entry .orb .icon { width: 18px; height: 18px; }
.h5-agent-entry .t { font-size: 12px; font-weight: 700; }
.h5-agent-entry .s { font-size: 10px; color: var(--muted); line-height: 1.6; margin-top: 2px; }
.h5-agent-entry .go { margin-left: auto; color: var(--jade); }
.h5-campaign-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 1px 1px 8px; scrollbar-width: none; }
.h5-campaign-scroll::-webkit-scrollbar { display: none; }
.h5-campaign {
  flex: 0 0 245px; border-radius: 3px 15px 3px 15px; padding: 16px;
  background: linear-gradient(135deg, #fbf8f0, #f5efe1); border: 1px solid rgba(178,134,78,.15);
  position: relative; overflow: hidden;
}
.h5-campaign::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; border: 1px solid rgba(178,134,78,.13); right: -32px; top: -38px; }
.h5-campaign .badge { font-size: 8px; letter-spacing: .1em; color: var(--gold); }
.h5-campaign h3 { font-family: var(--font-serif); font-size: 17px; font-weight: 400; margin-top: 7px; line-height: 1.4; }
.h5-campaign .benefit { font-size: 10px; color: #71522e; margin-top: 8px; }
.h5-campaign .btn { margin-top: 11px; min-height: 29px; font-size: 10px; padding: 4px 12px; border-radius: 3px; }
.h5-service-card { display: flex; gap: 13px; padding: 13px 0; border-top: 1px solid rgba(23,37,30,.07); align-items: center; }
.h5-service-card:first-child { border-top: 0; }
.h5-service-card .thumb { width: 59px; height: 59px; border-radius: 3px 9px 3px 9px; flex: none; background: linear-gradient(135deg, #dfe8df, #f1ede2); position: relative; overflow: hidden; display: grid; place-items: center; color: var(--sage); }
.h5-service-card .thumb .icon { width: 22px; height: 22px; opacity: .7; }
.h5-service-card .thumb::after { content: ""; width: 30px; height: 50px; position: absolute; border: 1px solid rgba(49,95,76,.16); border-radius: 50%; transform: rotate(35deg); }
.h5-service-card .info { flex: 1; min-width: 0; }
.h5-service-card .t { font-size: 12px; font-weight: 650; }
.h5-service-card .s { font-size: 9px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.h5-service-card .price { font-family: var(--num); font-size: 13px; font-weight: 600; margin-top: 4px; }
.h5-service-card .price small { font-size: 8px; font-weight: 400; color: var(--muted); }
.h5-service-card > .btn { min-height: 28px; padding: 4px 11px; font-size: 9px; border-radius: 999px; }
.h5-store-card { background: rgba(255,255,255,.43); border: 1px solid var(--line); border-radius: 9px; padding: 14px; }
.h5-store-card .row { display: flex; align-items: flex-start; gap: 9px; padding: 5px 0; font-size: 10px; color: var(--ink-3); }
.h5-store-card .icon { width: 14px; height: 14px; color: var(--jade); margin-top: 1px; }
.h5-store-card .muted { color: var(--muted); }
.h5-phone-gate { border: 1px solid rgba(49,95,76,.16); background: rgba(255,255,255,.48); border-radius: 3px 16px 3px 16px; padding: 21px; }
.h5-phone-gate h2 { font-family: var(--font-serif); font-size: 23px; font-weight: 400; }
.h5-phone-gate p { font-size: 10px; color: var(--muted); line-height: 1.75; margin-top: 5px; }
.h5-phone-gate .field { margin-top: 14px; }
.h5-phone-gate .btn { margin-top: 12px; }
.h5-member-card-wrap { margin-bottom: 17px; }
.h5-member-actions { display: flex; gap: 7px; margin-top: 11px; }
.h5-member-actions .btn { flex: 1; min-height: 34px; font-size: 10px; border-radius: 4px; }
.h5-tile { background: rgba(255,255,255,.45); border: 1px solid var(--line); border-radius: 9px; padding: 15px; }
.h5-tile .k { font-size: 9px; color: var(--muted); }
.h5-tile .v { font-family: var(--num); font-size: 23px; margin-top: 2px; }
.h5-tile .v small { font-size: 9px; color: var(--muted); }
.h5-member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.h5-quick-list .item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid rgba(23,37,30,.07); }
.h5-quick-list .item:first-child { border-top: 0; }
.h5-quick-list .qi { width: 29px; height: 29px; border-radius: 50%; background: var(--sage-soft); display: grid; place-items: center; color: var(--jade); flex: none; }
.h5-quick-list .qi.gold { background: var(--gold-soft); color: #886231; }
.h5-quick-list .txt { flex: 1; min-width: 0; }
.h5-quick-list .t { font-size: 11px; font-weight: 600; }
.h5-quick-list .s { font-size: 9px; color: var(--muted); margin-top: 1px; }
.h5-quick-list .go { color: rgba(23,37,30,.3); }
.h5-appointment-card { border: 1px solid var(--line); background: rgba(255,255,255,.48); border-radius: 3px 12px 3px 12px; padding: 13px 14px; margin-bottom: 8px; }
.h5-appointment-card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.h5-appointment-card .date { font-family: var(--num); font-size: 13px; font-weight: 600; }
.h5-appointment-card .service { font-size: 11px; margin-top: 4px; }
.h5-appointment-card .meta { font-size: 9px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.h5-claim-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid rgba(23,37,30,.07); padding: 11px 0; }
.h5-claim-card:last-child { border-bottom: 0; }
.h5-claim-card .t { font-size: 11px; font-weight: 600; }
.h5-claim-card .s { font-size: 9px; color: var(--muted); margin-top: 2px; }
.h5-referral-card { background: linear-gradient(130deg, #f5eedf, #fbf8f0); border: 1px solid rgba(178,134,78,.2); border-radius: 3px 16px 3px 16px; padding: 18px; }
.h5-referral-card .code { font-family: var(--num); font-size: 25px; letter-spacing: .13em; color: #5e4729; margin-top: 8px; }
.h5-referral-card .desc { font-size: 10px; color: #80663f; line-height: 1.7; margin-top: 5px; }
.h5-referral-stats { display: flex; gap: 19px; margin-top: 14px; }
.h5-referral-stats .k { font-size: 8px; color: #917853; }
.h5-referral-stats .v { font-family: var(--num); font-size: 16px; color: #5d4526; }
.h5-profile-head { display: flex; align-items: center; gap: 13px; padding: 5px 0 17px; }
.h5-profile-head .avatar { width: 48px; height: 48px; font-size: 19px; }
.h5-profile-head .name { font-family: var(--font-serif); font-size: 22px; }
.h5-profile-head .sub { font-size: 9px; color: var(--muted); margin-top: 2px; }
.h5-settings-list { background: rgba(255,255,255,.42); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.h5-settings-list .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border-top: 1px solid rgba(23,37,30,.06); font-size: 11px; }
.h5-settings-list .row:first-child { border-top: 0; }
.h5-settings-list .row .l { display: flex; align-items: center; gap: 9px; }
.h5-settings-list .row .icon { width: 15px; height: 15px; color: var(--jade); }
.h5-settings-list .row .v { font-size: 9px; color: var(--muted); }
.h5-settings-list button.row { width: 100%; border-left: 0; border-right: 0; background: transparent; text-align: left; }
.h5-settings-list button.row:hover { background: rgba(223,233,226,.25); }
.h5-privacy-note { font-size: 9px; line-height: 1.8; color: var(--muted); padding: 12px 3px; }
.h5-empty { text-align: center; padding: 37px 16px; }
.h5-empty .mark { width: 45px; height: 45px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 12px; color: var(--sage); }
.h5-empty h3 { font-family: var(--font-serif); font-size: 19px; font-weight: 400; }
.h5-empty p { font-size: 10px; color: var(--muted); line-height: 1.7; margin-top: 4px; }
.h5-empty .btn { margin-top: 15px; min-height: 34px; font-size: 10px; }
.h5-booking-steps { display: flex; gap: 0; margin-bottom: 18px; }
.h5-booking-steps .st { flex: 1; font-size: 9px; color: rgba(23,37,30,.35); text-align: center; padding-top: 8px; border-top: 1px solid rgba(23,37,30,.1); position: relative; }
.h5-booking-steps .st.active { color: var(--jade); border-color: var(--jade); font-weight: 600; }
.h5-select-service { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.h5-select-service button { text-align: left; border: 1px solid var(--line); background: rgba(255,255,255,.42); padding: 12px; border-radius: 8px; }
.h5-select-service button.selected { border-color: var(--jade); background: #fff; box-shadow: 0 0 0 2px rgba(49,95,76,.06); }
.h5-select-service .t { font-size: 11px; font-weight: 650; }
.h5-select-service .m { font-size: 9px; color: var(--muted); margin-top: 3px; }
.h5-select-service .p { font-family: var(--num); font-size: 12px; margin-top: 7px; color: var(--jade-deep); }
.h5-date-strip { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.h5-date-strip::-webkit-scrollbar { display: none; }
.h5-date-strip button { flex: 0 0 54px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.36); padding: 8px 3px; text-align: center; }
.h5-date-strip button.selected { background: var(--jade); border-color: var(--jade); color: #fff; }
.h5-date-strip .w { font-size: 8px; opacity: .65; }
.h5-date-strip .d { font-family: var(--num); font-size: 15px; margin-top: 2px; }
.h5-date-strip .n { font-size: 7px; opacity: .55; margin-top: 1px; }
.h5-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.h5-slots button { border: 1px solid var(--line); background: rgba(255,255,255,.4); min-height: 38px; border-radius: 7px; font-family: var(--num); font-size: 12px; }
.h5-slots button.selected { background: var(--jade); border-color: var(--jade); color: #fff; }
.h5-slots button[disabled] { opacity: .3; text-decoration: line-through; pointer-events: none; }
.h5-book-summary { background: var(--sage-soft); border-radius: 8px; padding: 12px 13px; display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: var(--jade-deep); }
.h5-book-summary strong { font-family: var(--num); font-size: 13px; }
.h5-flight { display: flex; justify-content: center; padding: 30px 20px 0; }
.h5-success { text-align: center; padding: 13px 8px 10px; }
.h5-success .check { width: 57px; height: 57px; border-radius: 50%; background: var(--jade-soft); color: var(--jade); display: grid; place-items: center; margin: 0 auto 14px; }
.h5-success h2 { font-family: var(--font-serif); font-weight: 400; font-size: 26px; }
.h5-success p { font-size: 10px; color: var(--muted); line-height: 1.7; margin-top: 5px; }
.h5-success .code-big { display: inline-block; font-family: var(--num); letter-spacing: .12em; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 3px; margin-top: 14px; font-size: 12px; }
.h5-success .rows { text-align: left; margin-top: 17px; background: var(--paper-2); border-radius: 8px; padding: 4px 13px; }
.h5-success .rows .r { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 10px; }
.h5-success .rows .r:first-child { border-top: 0; }
.h5-success .rows .r span:first-child { color: var(--muted); }
.h5-bottom-sheet { position: fixed; inset: 0; z-index: 120; background: rgba(15,26,19,.32); backdrop-filter: blur(2px); display: flex; align-items: flex-end; justify-content: center; }
.h5-sheet { width: min(500px, 100%); background: var(--paper); border-radius: 18px 18px 0 0; max-height: 88vh; overflow-y: auto; animation: sheetup .25s cubic-bezier(.22,.8,.32,1); padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.h5-sheet-body { padding: 18px 20px 19px; }
.h5-sheet h2 { font-family: var(--font-serif); font-size: 22px; font-weight: 400; }
.h5-sheet .sub { font-size: 10px; color: var(--muted); line-height: 1.7; margin-top: 3px; }
.h5-sheet-actions { display: flex; gap: 10px; margin-top: 14px; }
@keyframes sheetup { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }

/* Chat */
.chat-overlay { position: fixed; inset: 0; z-index: 110; background: rgba(15,26,19,.27); display: flex; justify-content: center; align-items: stretch; backdrop-filter: blur(2px); }
.chat-panel { width: min(520px, 100%); background: #f8f4ea; display: flex; flex-direction: column; height: 100dvh; animation: chatin .25s ease; }
@keyframes chatin { from { transform: translateY(12px); opacity: .7; } to { transform: none; opacity: 1; } }
.chat-head { padding: max(15px, env(safe-area-inset-top)) 18px 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-soft); background: rgba(251,249,243,.9); backdrop-filter: blur(14px); }
.chat-back { border: 0; background: rgba(23,37,30,.06); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.chat-head .orb { width: 33px; height: 33px; border-radius: 50%; background: var(--jade-deep); color: #ead9b9; display: grid; place-items: center; }
.chat-head .orb .icon { width: 16px; height: 16px; }
.chat-head .t { font-size: 12px; font-weight: 700; }
.chat-head .s { font-size: 8px; color: var(--muted); display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px 17px 120px; scroll-behavior: smooth; }
.chat-date { text-align: center; font-size: 8px; color: rgba(23,37,30,.3); margin: 4px 0 17px; letter-spacing: .08em; }
.chat-msg { display: flex; gap: 8px; margin-bottom: 13px; align-items: flex-start; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-avatar { width: 25px; height: 25px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--jade-deep); color: #e7d6b5; font-family: var(--font-serif); font-size: 11px; }
.chat-msg.user .chat-avatar { background: var(--sage-soft); color: var(--jade-deep); font-family: var(--font-sans); font-size: 9px; }
.chat-bubble { max-width: 84%; font-size: 12px; line-height: 1.75; }
.chat-msg.agent .chat-bubble { background: #fffefb; border: 1px solid var(--line-soft); padding: 11px 13px; border-radius: 2px 12px 12px 12px; color: var(--ink-2); box-shadow: 0 2px 7px rgba(23,37,30,.035); }
.chat-msg.user .chat-bubble { background: var(--jade); color: #f6f2e8; padding: 10px 13px; border-radius: 12px 2px 12px 12px; }
.chat-bubble .ai-label { font-size: 8px; color: rgba(23,37,30,.35); margin-top: 7px; padding-top: 6px; border-top: 1px solid rgba(23,37,30,.06); display: flex; align-items: center; gap: 4px; }
.chat-bubble .ai-label .icon { width: 10px; height: 10px; }
.chat-cards { margin-top: 9px; display: flex; flex-direction: column; gap: 5px; }
.chat-card { border: 1px solid var(--line); background: var(--paper-2); padding: 9px 10px; border-radius: 6px; font-size: 10px; }
.chat-card .cc-t { font-weight: 700; font-size: 10px; }
.chat-card .cc-s { color: var(--muted); font-size: 9px; margin-top: 1px; }
.chat-trace-toggle { margin-top: 8px; border: 0; background: none; padding: 0; color: var(--jade); font-size: 9px; display: flex; align-items: center; gap: 4px; font-weight: 600; }
.chat-trace { margin-top: 8px; border-top: 1px solid var(--line-soft); padding-top: 7px; }
.chat-trace .ct { font-size: 8px; color: var(--muted); display: flex; gap: 5px; padding: 3px 0; }
.chat-trace .ct b { color: var(--ink-3); font-weight: 600; flex: none; }
.chat-trace .ct span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.chat-actions button { border: 1px solid rgba(49,95,76,.22); background: rgba(223,233,226,.3); color: var(--jade); padding: 5px 9px; border-radius: 999px; font-size: 9px; }
.chat-actions button:hover { background: var(--jade); color: #fff; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 13px 33px; }
.chat-suggestions button { border: 1px solid var(--line); background: rgba(255,255,255,.42); color: var(--ink-3); padding: 6px 10px; border-radius: 999px; font-size: 9px; }
.chat-typing { display: flex; gap: 4px; padding: 5px 2px; }
.chat-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--sage); animation: typing 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-composer { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 13px calc(10px + env(safe-area-inset-bottom)); background: rgba(248,244,234,.94); border-top: 1px solid var(--line-soft); backdrop-filter: blur(15px); display: flex; gap: 8px; align-items: flex-end; }
.chat-composer .input { border-radius: 20px; min-height: 40px; max-height: 90px; padding: 9px 15px; font-size: 12px; resize: none; background: #fff; }
.chat-send { width: 38px; height: 38px; border-radius: 50%; background: var(--jade); color: #fff; border: 0; display: grid; place-items: center; flex: none; }
.chat-send[disabled] { opacity: .4; }
.chat-phone-banner { margin: 0 0 10px; border: 1px solid rgba(178,134,78,.22); background: var(--gold-soft); color: #755329; border-radius: 7px; padding: 9px 11px; font-size: 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-phone-banner button { border: 0; background: transparent; color: #6b4b26; font-weight: 700; font-size: 9px; text-decoration: underline; }
.chat-empty { text-align: center; padding: 35px 18px 20px; }
.chat-empty .orb { width: 50px; height: 50px; border-radius: 50%; background: var(--jade-deep); color: #e7d6b5; display: grid; place-items: center; margin: 0 auto 12px; }
.chat-empty h2 { font-family: var(--font-serif); font-size: 24px; font-weight: 400; }
.chat-empty p { font-size: 10px; color: var(--muted); margin-top: 5px; line-height: 1.7; }
.chat-empty-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 15px; }
.chat-empty-chips button { border: 1px solid var(--line); background: rgba(255,255,255,.55); padding: 7px 11px; border-radius: 999px; font-size: 9px; }
.chat-empty-chips button:hover { border-color: var(--jade); color: var(--jade); }

/* H5 portal sheet */
.switch-menu { position: fixed; inset: 0; z-index: 130; background: rgba(15,26,19,.35); display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(2px); }
.switch-sheet { width: min(500px, 100%); background: var(--paper); border-radius: 18px 18px 0 0; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); animation: sheetup .22s ease; }
.switch-sheet h2 { font-family: var(--font-serif); font-size: 22px; font-weight: 400; }
.switch-sheet p { font-size: 10px; color: var(--muted); margin-top: 3px; }
.switch-links { display: grid; gap: 7px; margin-top: 16px; }
.switch-link { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.45); border-radius: 8px; padding: 12px; text-align: left; }
.switch-link .si { width: 29px; height: 29px; border-radius: 50%; background: var(--sage-soft); color: var(--jade); display: grid; place-items: center; }
.switch-link .t { font-size: 11px; font-weight: 600; }
.switch-link .s { font-size: 9px; color: var(--muted); margin-top: 1px; }
.switch-link .go { margin-left: auto; color: var(--muted); }
.switch-link:hover { border-color: rgba(49,95,76,.3); }

/* Landing / login foot */
.landing-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.landing-meta .m { font-size: 9px; color: rgba(244,240,230,.31); letter-spacing: .06em; }
.login-demo-creds { margin-top: 20px; padding: 12px 14px; background: rgba(23,37,30,.04); border-radius: 4px; font-size: 10px; color: var(--muted); line-height: 1.8; }
.login-demo-creds strong { color: var(--ink-3); font-weight: 600; }

/* Pagination / util */
.loading-panel { display: grid; place-items: center; min-height: 300px; color: var(--muted); font-size: 11px; gap: 12px; }
.spinner { width: 22px; height: 22px; border: 2px solid rgba(23,37,30,.1); border-top-color: var(--jade); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, rgba(23,37,30,.05), rgba(23,37,30,.09), rgba(23,37,30,.05)); background-size: 200% 100%; animation: sk 1.8s infinite; border-radius: 5px; }
@keyframes sk { to { background-position: -200% 0; } }
.error-panel { border: 1px solid rgba(163,79,60,.2); background: var(--rust-soft); padding: 15px 18px; border-radius: 8px; font-size: 12px; color: var(--rust); }
.code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; background: rgba(23,37,30,.06); padding: 1px 5px; border-radius: 3px; }
.kv-inline { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 10px; color: var(--muted); }
.kv-inline b { color: var(--ink-3); font-weight: 600; }
.note-line { font-size: 9px; color: rgba(23,37,30,.36); line-height: 1.7; }
.copy-field { display: flex; gap: 7px; align-items: center; }
.copy-field .input { font-family: var(--num); letter-spacing: .08em; font-size: 12px; }
.empty-view { padding: 55px 20px; text-align: center; color: var(--muted); }
.empty-view h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 400; color: var(--ink-3); }
.empty-view p { font-size: 11px; margin-top: 4px; }
.switch-portal-link { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); }
.switch-portal-link:hover { color: var(--ink); }
.notification-drawer .n-item { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.notification-drawer .n-item:last-child { border-bottom: 0; }
.notification-drawer .n-t { font-size: 12px; font-weight: 600; display: flex; gap: 7px; align-items: center; }
.notification-drawer .n-b { font-size: 10px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.notification-drawer .n-time { font-size: 8px; color: rgba(23,37,30,.3); margin-top: 3px; }
.unread-pill { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }
.mini-tag { font-size: 8px; padding: 1px 6px; border-radius: 3px; background: rgba(23,37,30,.06); color: var(--muted); }
.mono { font-family: "SFMono-Regular", Consolas, monospace; }
.stat-strip { display: flex; gap: 24px; flex-wrap: wrap; }
.stat-strip .st .n { font-family: var(--num); font-size: 19px; }
.stat-strip .st .l { font-size: 8px; color: var(--muted); margin-top: 1px; }
.tool-empty { border: 1px dashed var(--line); padding: 23px; border-radius: 8px; text-align: center; color: var(--muted); font-size: 10px; }

/* Responsive */
@media (min-width: 1000px) {
  .h5-stage { padding: 22px 0; align-items: flex-start; }
  .h5-frame { min-height: calc(100vh - 44px); border-radius: 22px; overflow: hidden; }
  .h5-bottom { bottom: 22px; border-radius: 0 0 22px 22px; }
  .h5-frame { min-height: calc(100vh - 44px); border-radius: 22px; overflow: hidden; }
  .h5-top { border-radius: 22px 22px 0 0; }
  .chat-panel { border-radius: 18px; height: min(860px, calc(100vh - 44px)); margin: 22px 0; }
  .chat-overlay { align-items: center; }
  .chat-composer { position: static; border-radius: 0 0 18px 18px; }
  .chat-body { padding-bottom: 20px; }
  .chat-panel { overflow: hidden; }
}
@media (max-width: 1280px) {
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .dashboard-grid { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); }
  .campaign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .page { padding: 26px 24px 55px; }
  .topbar { padding: 0 24px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .agent-hero { grid-template-columns: 1fr; }
  .hero-strip { padding: 25px 25px; }
  .hero-strip h2 { font-size: 27px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --sidebar-width: 0px; }
  .sidebar { transform: translateX(-100%); width: 260px; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: grid; position: absolute; right: 15px; top: 22px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #eee; place-items: center; z-index: 3; }
  .staff-main { margin-left: 0; }
  .mobile-menu-btn { display: flex; }
  .topbar { padding: 0 18px; height: 64px; }
  .top-search { display: none; }
  .top-status { display: none; }
  .page { padding: 22px 18px 48px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 15px; }
  .page-head h1 { font-size: 27px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; }
  .settings-nav button { white-space: nowrap; }
  .checkin-station { grid-template-columns: 1fr; }
  .checkin-form .input { min-width: 0; flex: 1; }
  .topbar-right .top-avatar-btn span { display: none; }
  .campaign-grid { grid-template-columns: 1fr; }
}
/* 首页卡片：只调整尺寸与对比度；所有文字仍由后台下发，未作任何改写 */
.h5-store-foot-head { margin-top: 23px; }
.h5-store-foot { margin-top: 0; padding: 6px 20px 20px; border-radius: 3px 22px 3px 22px; color: #f3ede0; background: radial-gradient(ellipse at 85% 10%, rgba(201,165,106,.19), transparent 42%), linear-gradient(130deg, #1c3428, #2a4c3b 64%, #1a2f23); box-shadow: 0 15px 38px rgba(30,50,38,.16); }
.h5-store-foot .mini { display: flex; gap: 6px; line-height: 1.65; font-size: 12px !important; color: rgba(243,237,224,.92) !important; }
.h5-store-foot .mini .icon { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.h5-page-compact .h5-hero .hero-bottom .mini { font-size: 11px; }
.h5-page-compact .h5-member-chip { font-size: 11px; padding: 7px 12px; }
.h5-page-compact .h5-action { padding: 15px 4px 12px; }
.h5-page-compact .h5-action .ico { width: 34px; height: 34px; }
.h5-page-compact .h5-action .ico .icon { width: 17px; height: 17px; }
.h5-page-compact .h5-action .l { font-size: 12px; }
.h5-page-compact .h5-agent-entry .t { font-size: 14px; }
.h5-page-compact [data-open-need] .t { font-size: 17px; line-height: 1.5; }
.h5-page-compact .h5-agent-entry .s { font-size: 12px; }
.h5-page-compact .h5-section-head .more { font-size: 11px; }
.h5-page-compact .h5-ai-entry h3 { font-size: 22px; }
.h5-page-compact .h5-ai-entry p { font-size: 12px; }
.h5-page-compact .h5-ai-entry .ai-entry-badge,
.h5-page-compact .h5-ai-entry .ai-entry-reason { font-size: 10px; }
.h5-page-compact .h5-campaign h3 { font-size: 18px; }
.h5-page-compact .h5-campaign .benefit { font-size: 12px; }
.h5-page-compact .h5-service-card { padding: 15px 0; }
.h5-page-compact .h5-service-card .t { font-size: 14px; }
.h5-page-compact .h5-service-card .s { font-size: 11px; }
.h5-page-compact .h5-service-card .price { font-size: 15px; }
.h5-page-compact .h5-service-card .price small { font-size: 10px; }
.h5-page-compact .h5-campaign .btn,
.h5-page-compact .h5-service-card > .btn,
.h5-page-compact .h5-ai-entry .btn,
.h5-page-compact .h5-fold-actions .btn { min-height: 40px; padding: 8px 16px; font-size: 12px; }

@media (max-width: 640px) {
  .kpi-grid { gap: 9px; }
  .kpi-card { padding: 14px; }
  .kpi-card .value { font-size: 23px; }
  .kpi-card .label { font-size: 9px; }
  .hero-strip { flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px; }
  .hero-right { text-align: left; display: flex; gap: 18px; align-items: baseline; }
  .hero-right .small { margin: 0; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .appointment-line .right .btn { padding: 4px 8px; font-size: 10px; min-height: 26px; }
  .table th, .table td { padding: 10px 10px; }
  .table { min-width: 820px; }
  .filter-bar { padding: 12px 13px; }
  .page { padding: 18px 13px 45px; }
  .card-head { padding: 16px 16px 0; }
  .card-body { padding: 16px; }
  .campaign-card { min-height: 210px; padding: 17px; }
  .drawer-head { padding: 20px 18px 14px; }
  .drawer-body { padding: 18px; }
  .modal { border-radius: 4px 16px 4px 16px; }
  .modal-head { padding: 19px 18px 13px; }
  .modal-body { padding: 17px 18px; }
  .modal-foot { padding: 12px 18px; }
  .toast-root { left: 14px; right: 14px; bottom: 14px; }
  .toast { min-width: 0; width: 100%; }
  .agent-status-card, .emergency-card { padding: 19px; }
  .checkin-station { padding: 16px; }
  .checkin-station .left { align-items: flex-start; }
  .table .actions .btn { font-size: 10px; padding: 4px 8px; }
  .top-icon-btn { width: 32px; height: 32px; }
  .campaign-grid { grid-template-columns: 1fr; }
  .h5-page { padding: 14px 16px 18px; }
  .h5-hero { padding: 20px 18px 18px; }
  .h5-hero h1 { font-size: 28px; }
  .h5-frame { box-shadow: none; }
}

/* Customer intelligence / cumulative profile layer */
.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, .6fr);
  gap: 22px;
  background: radial-gradient(circle at 88% 18%, rgba(178,134,78,.16), transparent 32%), linear-gradient(128deg, #1c3428, #2a4c3b 66%, #1a2f23);
  color: #f2ebdc;
  border-radius: 4px 26px 4px 26px;
  padding: 27px 29px;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 46px rgba(25,44,33,.12);
}
.profile-hero::after { content: ""; position: absolute; right: -70px; bottom: -100px; width: 280px; height: 280px; border: 1px solid rgba(230,212,177,.14); border-radius: 50%; }
.profile-hero-copy { position: relative; z-index: 1; }
.profile-hero h2 { font-family: var(--font-serif); font-size: 27px; line-height: 1.4; font-weight: 400; margin: 11px 0 7px; letter-spacing: .02em; }
.profile-hero p { max-width: 710px; font-size: 11px; line-height: 1.9; color: rgba(242,235,220,.65); }
.profile-hero-mark { border-left: 1px solid rgba(230,212,177,.2); padding-left: 24px; display: flex; flex-direction: column; justify-content: center; gap: 2px; position: relative; z-index: 1; }
.profile-hero-mark span { font-family: var(--font-num); font-size: 33px; line-height: 1.1; color: #ead8b8; margin-top: 10px; }
.profile-hero-mark small { font-size: 9px; letter-spacing: .08em; color: rgba(242,235,220,.45); }
.ai-pill { display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(230,212,177,.25); background: rgba(255,255,255,.06); color: #ecd9b6; border-radius: 999px; padding: 5px 10px; font-size: 9px; letter-spacing: .05em; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.profile-tag { display: inline-flex; align-items: center; gap: 3px; border: 1px solid rgba(49,95,76,.15); background: var(--sage-soft); color: var(--jade-deep); border-radius: 999px; padding: 3px 8px; font-size: 9px; line-height: 1.4; white-space: nowrap; }
.profile-tag small { opacity: .55; font-size: 8px; }
.profile-tag.value { border-color: rgba(178,134,78,.2); background: var(--gold-soft); color: #6d512f; }
.profile-tag.consent { border-color: rgba(69,107,122,.16); background: #e7eef0; color: #3f6470; }
.profile-tag.historic { opacity: .48; background: transparent; text-decoration: line-through; }
.profile-hero .profile-tag { border-color: rgba(230,212,177,.22); background: rgba(255,255,255,.08); color: #edddc0; }
.profile-metric-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; margin-bottom: 16px; }
.profile-breakdown { display: flex; flex-direction: column; gap: 12px; }
.breakdown-row { font-size: 10px; }
.breakdown-row b { font-family: var(--font-num); font-size: 13px; }
.breakdown-bar { height: 4px; border-radius: 99px; background: rgba(23,37,30,.06); margin-top: 5px; overflow: hidden; }
.breakdown-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--jade), #7b9c86); }
.profile-type-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.profile-next-list { display: flex; flex-direction: column; gap: 2px; }
.profile-next-item { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; border-top: 1px solid var(--line-soft); background: transparent; padding: 11px 0; color: var(--ink); }
.profile-next-item:first-child { border-top: 0; }
.profile-next-item:hover { background: rgba(223,233,226,.22); }
.profile-next-item .avatar { flex: none; }
.profile-next-item .grow { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.profile-next-item b { font-size: 11px; }
.profile-next-item small { color: var(--muted); font-size: 9px; }
.profile-next-item em { font-size: 10px; color: var(--ink-3); font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-next-item .icon { color: var(--muted); flex: none; }
.profile-segment { display: inline-block; border-radius: 4px; background: var(--jade-soft); color: var(--jade-deep); padding: 4px 8px; font-size: 10px; line-height: 1.4; }
.profile-fact { display: flex; flex-direction: column; gap: 1px; }
.profile-fact b { font-family: var(--font-num); font-size: 12px; }
.profile-fact small { font-size: 9px; color: var(--muted); }
.profile-drawer-head { display: flex; gap: 14px; align-items: flex-start; padding: 3px 0 15px; border-bottom: 1px solid var(--line-soft); }
.profile-drawer-head .avatar-lg { width: 54px; height: 54px; font-size: 20px; flex: none; }
.profile-drawer-head h2 { font-family: var(--font-serif); font-weight: 400; font-size: 25px; }
.profile-drawer-head .soft { font-size: 10px; color: var(--muted); margin-top: 2px; }
.profile-ai-card { margin-top: 16px; border: 1px solid rgba(178,134,78,.2); background: linear-gradient(120deg, #fbf4e6, #f7f1e5 65%, #f3ead9); border-radius: 4px 16px 4px 16px; padding: 18px 19px; }
.profile-ai-card h3 { font-family: var(--font-serif); font-size: 21px; font-weight: 400; margin-top: 10px; }
.profile-ai-card p { font-size: 11px; line-height: 1.85; color: #66573e; margin: 6px 0 12px; }
.profile-ai-card .ai-pill { border-color: rgba(178,134,78,.25); background: #fffaf0; color: #806338; }
.profile-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.profile-metric { background: rgba(255,255,255,.48); border: 1px solid var(--line); border-radius: 9px; padding: 12px 13px; }
.profile-metric .k { font-size: 8px; color: var(--muted); letter-spacing: .05em; }
.profile-metric .v { font-family: var(--font-num); font-size: 17px; margin-top: 3px; }
.profile-section { margin-top: 23px; padding-top: 19px; border-top: 1px solid var(--line-soft); }
.profile-section .form-grid { margin-top: 10px; }
.profile-segment-list { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-segment-list span { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); background: rgba(255,255,255,.42); border-radius: 8px; padding: 8px 11px; font-size: 11px; }
.profile-segment-list small { font-size: 8px; color: var(--muted); letter-spacing: .05em; }
.profile-signal-list, .profile-history-list, .profile-touchpoint-list { display: flex; flex-direction: column; gap: 7px; }
.profile-signal { display: flex; gap: 9px; align-items: flex-start; font-size: 10px; }
.profile-signal .signal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); margin-top: 5px; flex: none; box-shadow: 0 0 0 4px rgba(139,162,146,.12); }
.profile-signal b { font-size: 10px; font-weight: 600; }
.profile-signal small { display: block; color: var(--muted); font-size: 9px; }
.profile-signal em { display: block; color: var(--ink-3); font-size: 9px; font-style: normal; margin-top: 2px; }
.profile-history-item { display: flex; align-items: center; gap: 8px; font-size: 9px; color: var(--muted); border-bottom: 1px solid var(--line-soft); padding: 6px 0; flex-wrap: wrap; }
.profile-history-item b { color: var(--jade); font-family: var(--font-num); }
.profile-history-item span { color: var(--ink-3); }
.profile-history-item em { color: var(--gold); font-style: normal; }
.profile-touchpoint-list > div { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; border-bottom: 1px solid var(--line-soft); padding: 7px 0; font-size: 10px; }
.profile-touchpoint-list small { color: var(--muted); font-size: 9px; }
.profile-touchpoint-list b { font-weight: 600; }
.profile-empty { color: var(--muted); font-size: 10px; }
@media (max-width: 1100px) {
  .profile-metric-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .profile-hero { grid-template-columns: 1fr; padding: 22px; }
  .profile-hero-mark { border-left: 0; border-top: 1px solid rgba(230,212,177,.2); padding: 15px 0 0; flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .profile-hero-mark span { margin-top: 0; font-size: 25px; }
  .profile-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .profile-metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-hero h2 { font-size: 23px; }
  .profile-metric-grid { grid-template-columns: 1fr 1fr; }
}

/* H5 proactive AI operations card */
.h5-ai-entry {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 18px 17px 17px;
  border: 1px solid rgba(178,134,78,.22);
  border-radius: 3px 18px 3px 18px;
  background: linear-gradient(125deg, #fbf4e8, #f8f1e4 62%, #f2e7d3);
  box-shadow: 0 10px 28px rgba(87,66,35,.06);
}
.h5-ai-entry::after { content: ""; position: absolute; width: 135px; height: 135px; border: 1px solid rgba(178,134,78,.13); border-radius: 50%; right: -55px; top: -64px; }
.h5-ai-entry .ai-entry-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.h5-ai-entry .ai-entry-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 8px; letter-spacing: .08em; color: #8b6c3e; border: 1px solid rgba(178,134,78,.22); border-radius: 999px; padding: 4px 8px; background: rgba(255,255,255,.36); }
.h5-ai-entry h3 { position: relative; z-index: 1; font-family: var(--font-serif); font-size: 20px; line-height: 1.45; font-weight: 400; margin-top: 10px; color: #3f3322; }
.h5-ai-entry p { position: relative; z-index: 1; font-size: 10px; line-height: 1.8; color: #756346; margin-top: 6px; }
.h5-ai-entry .ai-entry-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.h5-ai-entry .ai-entry-reason { font-size: 8px; color: #9b835e; line-height: 1.5; max-width: 64%; }
.h5-ai-entry .btn { min-height: 31px; font-size: 10px; border-radius: 999px; padding: 5px 14px; }
.h5-ai-entry .ai-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; position: relative; z-index: 1; }
.h5-ai-entry .ai-tags span { font-size: 8px; border: 1px solid rgba(49,95,76,.13); background: rgba(255,255,255,.35); color: var(--jade); border-radius: 999px; padding: 3px 7px; }
.h5-profile-extra { margin-top: 13px; border: 1px solid rgba(49,95,76,.12); background: rgba(255,255,255,.32); border-radius: 8px; padding: 10px 12px; }
.h5-profile-extra summary { font-size: 10px; color: var(--jade); cursor: pointer; list-style: none; display: flex; align-items: center; gap: 5px; }
.h5-profile-extra summary::-webkit-details-marker { display: none; }
.h5-profile-extra summary::before { content: "+"; font-family: var(--font-num); font-size: 13px; color: var(--gold); }
.h5-profile-extra[open] summary::before { content: "−"; }
.h5-profile-extra .field label { font-size: 9px; }
.h5-profile-extra .hint { margin-top: 7px; }

/* ---------- H5 首页：首屏聚焦与折叠（只新增，不改动上方既有规则） ---------- */
.h5-page-compact .h5-section { margin-top: 16px; }
.h5-page-compact .h5-section-head { margin-bottom: 8px; }
.h5-page-compact .h5-actions { margin-bottom: 12px; }
.h5-page-compact .h5-agent-entry { margin-bottom: 12px; }
.h5-hero.h5-hero-compact { min-height: 142px; padding: 18px 20px 16px; margin-bottom: 14px; }
.h5-hero.h5-hero-compact h1 { font-size: 26px; margin-top: 6px; line-height: 1.24; }
.h5-hero.h5-hero-compact .tagline { margin-top: 6px; font-size: 9px; max-width: 260px; }
.h5-hero.h5-hero-compact .hero-bottom { margin-top: 10px; }
.h5-ai-entry .ai-entry-links { position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 9px; }
.h5-ai-entry .ai-entry-links .text-btn { font-size: 9px; padding: 0; }
.h5-ai-entry .ai-entry-links .text-btn[data-journey-chat] { color: #8b6c3e; }
.h5-ai-entry .ai-entry-links .text-btn[data-journey-dismiss] { color: #9a9284; }
.h5-ai-entry .ai-entry-links .icon { width: 11px; height: 11px; }
.h5-fold-body { padding-top: 2px; }
.h5-fold-body[hidden] { display: none; }
.h5-fold-actions { display: flex; justify-content: center; padding: 10px 0 2px; }
.h5-fold-actions .btn { min-height: 30px; font-size: 10px; border-radius: 999px; padding: 5px 16px; }
.h5-section-head .more.folded-open .icon { transform: rotate(180deg); }
.h5-section-head .more .icon { width: 11px; height: 11px; transition: transform .18s; }
.h5-store-card.compact { padding: 10px 12px; }
.h5-store-card.compact .row { padding: 3px 0; font-size: 9px; }
.note-line.h5-home-foot { text-align: center; padding: 14px 0 4px; font-size: 9px; }
@media (max-width: 640px) {
  .h5-bottom { background: #fbf9f3; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .h5-page-compact .h5-section { margin-top: 14px; }
}

/* 新访客首屏引导：一句明确主张 + 一个主按钮（纯展示层，不影响自动接管链路） */
.h5-guide { background: #fff; border: 1px solid rgba(23,51,40,.08); border-radius: 16px; padding: 16px 18px; margin-bottom: 14px; }
.h5-guide h3 { font-size: 17px; line-height: 1.5; margin: 0 0 6px; color: var(--ink); }
.h5-guide p { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 0 0 12px; }
.h5-guide .btn { width: 100%; min-height: 42px; }
