/* haircut b-shot — 약관·개인정보·환불·관리자 페이지 전용 스타일
   (고객 첫 화면·스튜디오는 web/src/styles.css, React)
   색·글꼴은 DESIGN.md v4 "Test Shoot"에 맞춤. 변수 이름(--teal 등)은 예전 그대로 두고 값만 바꿈. */

:root {
  --bg: #DCD8D1;
  --paper: #F3F1ED;
  --ink: #1B1A18;
  --mute: #5B5751;
  --line: #C9C4BB;
  --line-strong: #A9A399;
  --teal: #2440D8;
  --teal-dark: #1A31AE;
  --teal-tint: #E4E8FB;
  --photo-bg: #E8E5DF;
  --error: #B42318;
  --radius: 8px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ko: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:lang(ko), [lang="ko"] { font-family: var(--font-ko); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover:not(:disabled) { background: var(--teal-dark); }
.btn-line { border-color: var(--ink); background: transparent; }
.btn-line:hover:not(:disabled) { background: var(--paper); }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn-big { min-height: 52px; padding: 12px 26px; font-size: 16px; }
.cost-inline { font-weight: 500; font-size: .85em; opacity: .8; }
.btn-teal .cost-inline { border-left: 1px solid rgba(255,255,255,.35); padding-left: 8px; }
.btn-line .cost-inline { border-left: 1px solid var(--line-strong); padding-left: 8px; color: var(--mute); opacity: 1; }

/* ---------- 상단 ---------- */
.mode-banner {
  margin: 0;
  padding: 8px var(--gutter);
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-size: 14px;
  text-align: center;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; min-width: 0; }
.brand-name { font-weight: 800; font-variation-settings: "wdth" 120; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; }
.brand-sub { font-weight: 500; font-size: 12px; color: var(--mute); white-space: nowrap; }
.account { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.user-slot { display: flex; align-items: center; gap: 8px; }
.user-email { font-size: 13px; color: var(--mute); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.credit-pill { font-size: 14px; color: var(--mute); white-space: nowrap; }
.credit-pill strong { color: var(--ink); font-weight: 700; }

/* ---------- 작업 영역 ---------- */
.studio {
  display: grid;
  grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
  column-gap: 56px;
  padding: 0 var(--gutter) 56px;
  max-width: 1280px;
  margin: 0 auto;
}
.intro {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding: 36px 0 24px;
}
.intro h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
  max-width: 18ch;
  text-wrap: balance;
}
.lede { margin: 0; max-width: 44ch; color: var(--mute); font-size: 15px; line-height: 1.6; }

/* 결과 뷰어 */
.viewer {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px;
}
.viewer-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--mute);
  margin-bottom: 10px;
}
#viewer-label { color: var(--ink); font-weight: 600; }
#viewer-meta { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stage {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--photo-bg);
  border-radius: 2px;
  overflow: hidden;
}
.dropzone {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  cursor: pointer;
}
.stage[data-state="photo"] .dropzone { display: none; }
.stage[data-drag="true"] .dropzone,
.dropzone:hover { background: var(--teal-tint); border-color: var(--teal); }
.dropzone-title { font-weight: 600; font-size: 19px; }
.dropzone-hint { font-size: 14px; color: var(--mute); max-width: 30ch; }
.dropzone-btn { margin: 8px 0 6px; pointer-events: none; }
.dropzone-privacy { font-size: 12px; color: var(--mute); max-width: 34ch; }

.main-img { width: 100%; height: 100%; object-fit: contain; }

.grid-view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: start;
  gap: 8px;
  padding: 8px;
  background: var(--paper);
}
.grid-view figure { margin: 0; }
.grid-view img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); }
.grid-view figure:hover img { border-color: var(--teal); }
.grid-view figcaption { font-size: 11px; color: var(--mute); margin-top: 3px; line-height: 1.3; }

.stage-busy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(244, 245, 242, .86);
}
.busy-text { font-weight: 600; }
.busy-bar {
  position: relative;
  width: 160px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.busy-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--teal);
  animation: busy 1.2s ease-in-out infinite;
}
@keyframes busy { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* 사진 아래 비교 카드 (Now / After / +3 / +6) */
.frames {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.frame {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  font-size: 12px;
  color: var(--mute);
  text-align: left;
  cursor: pointer;
}
.frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.frame:hover { border-color: var(--line-strong); }
.frame[aria-pressed="true"] { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); color: var(--ink); font-weight: 600; }

/* 실행 바 */
.dock {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
  margin-top: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dock-info { display: flex; flex-direction: column; min-width: 0; }
.dock-label { font-weight: 600; }
.dock-sub { font-size: 13px; color: var(--mute); }
.dock-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.stage-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 12px;
}
.tool-actions { display: contents; }

.looks { margin-top: 18px; }
.looks-note { margin: 0 0 8px; font-size: 12px; color: var(--mute); }
.look-strip {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.look-strip button {
  position: relative;
  display: block;
  width: 64px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  cursor: pointer;
}
.look-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.look-strip button[aria-current="true"] { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.kind {
  display: block;
  padding: 2px 4px;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  border-top: 1px solid var(--line);
}
.kind-grow { color: var(--teal); }
.kind-worst { color: var(--error); }

/* ---------- 고르기 패널 ---------- */
.panel { min-width: 0; }
.mode-tabs {
  display: flex;
  gap: 28px;
  /* 밑줄을 테두리 대신 안쪽 그림자로: 선택 밑줄이 삐져나와 스크롤바가 생기지 않게 */
  box-shadow: inset 0 -1px 0 var(--line);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.mode-tabs::-webkit-scrollbar { display: none; }
.mode-tab {
  padding: 12px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--mute);
  cursor: pointer;
  white-space: nowrap;
}
.mode-tab:hover { color: var(--ink); }
.mode-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--teal); }

.pane { padding-top: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.chip {
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--mute);
  cursor: pointer;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: var(--paper); }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.style-list { margin-top: 6px; }
.style-option {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 18px;
  gap: 14px;
  align-items: center;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.style-option input { position: absolute; opacity: 0; pointer-events: none; }
.style-option:hover { background: rgba(255,255,255,.6); }
.style-option:has(input:checked) { background: var(--teal-tint); }
.style-option:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: -2px; }
.style-no { font-size: 12px; color: var(--mute); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.style-body { display: flex; flex-direction: column; min-width: 0; }
.style-name { font-weight: 600; font-size: 17px; }
.k-badge { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--teal); }
.style-desc { font-size: 13px; color: var(--mute); margin-top: 2px; }
.style-check {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper);
}
.style-option:has(input:checked) .style-check {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: inset 0 0 0 3px var(--teal-tint);
}

.colors { margin-top: 22px; }
.colors legend { font-size: 13px; color: var(--mute); margin-bottom: 10px; padding: 0; }
.colors legend span { color: var(--ink); font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch-dot {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,.12);
}
.swatch-dot.is-natural {
  background: var(--paper);
  background-image: linear-gradient(135deg, transparent 47%, var(--line-strong) 47%, var(--line-strong) 53%, transparent 53%);
}
.swatch input:checked + .swatch-dot { outline: 2px solid var(--teal); outline-offset: 2px; }
.swatch input:focus-visible + .swatch-dot { outline: 2px solid var(--ink); outline-offset: 2px; }

.pane-intro h3 { margin: 4px 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.pane-intro p { margin: 0; color: var(--mute); max-width: 52ch; }
.eyebrow-line { margin: 0; font-size: 13px; font-weight: 600; color: var(--teal); }
.pane-list { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pane-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

.status { min-height: 1.5em; margin: 14px 0 0; font-size: 14px; color: var(--mute); }
.status.is-error { color: var(--error); }

/* ---------- 아래 섹션 ---------- */
.features, .how, .seoul-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px var(--gutter);
}
.features { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2, .seoul-head h2, .how h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.2;
}
.section-head p { margin: 0; color: var(--mute); font-size: 15px; }

.tests { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.test {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.test-no { font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.test h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.test p { margin: 0; color: var(--mute); font-size: 15px; max-width: 60ch; }
.test-price { font-size: 14px; font-weight: 600; white-space: nowrap; }
.test-price.is-free { color: var(--teal); }

.seoul { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seoul-head { max-width: 60ch; margin-bottom: 20px; }
.seoul-head h2 { margin: 4px 0 8px; }
.seoul-head p:last-child { margin: 0; color: var(--mute); }
.seoul-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.seoul-item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.seoul-ko { font-size: 22px; font-weight: 700; color: var(--teal); }
.seoul-text h3 { margin: 0 0 2px; font-size: 16px; font-weight: 600; }
.seoul-text p { margin: 0; font-size: 14px; color: var(--mute); }
.seoul-item .btn { justify-self: start; }

.steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.steps li { counter-increment: step; padding: 18px 20px 18px 0; color: var(--mute); font-size: 15px; }
.steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.steps li::before { content: "Step " counter(step); display: block; font-size: 12px; color: var(--teal); font-weight: 600; margin-bottom: 6px; }
.steps strong { color: var(--ink); }
.privacy { margin: 24px 0 0; max-width: 70ch; font-size: 13px; color: var(--mute); }

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--mute);
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- 팝업 ---------- */
.sheet {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}
.sheet-wide { width: min(560px, calc(100vw - 32px)); }
.sheet::backdrop { background: rgba(28, 31, 30, .45); }
.sheet-close-form { position: absolute; top: 10px; right: 10px; margin: 0; }
.sheet-close {
  width: 40px; height: 40px;
  border: 0; background: none;
  font-size: 24px; line-height: 1; color: var(--mute);
  cursor: pointer;
}
.sheet-close:hover { color: var(--ink); }
.sheet-close:focus-visible { outline-offset: -4px; }
.sheet h2 { margin: 4px 0 6px; font-size: 24px; font-weight: 600; letter-spacing: -.015em; }
.sheet-sub { margin: 0 0 18px; color: var(--mute); font-size: 14px; }
.sheet-legal { margin: 14px 0 0; font-size: 12px; color: var(--mute); }

.packs { display: grid; gap: 8px; margin-bottom: 18px; }
.pack {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "credits price" "each price";
  gap: 0 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack:has(input:checked) { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: var(--teal-tint); }
.pack:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.pack-credits { grid-area: credits; font-weight: 600; }
.pack-each { grid-area: each; font-size: 13px; color: var(--mute); }
.pack-price { grid-area: price; font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.pack-best {
  position: absolute;
  top: -9px;
  left: 12px;
  padding: 1px 8px;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 2px;
}
.paypal-slot { min-height: 50px; }
.signin-box { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.signin-box p { margin: 0 0 10px; font-size: 14px; }

.key-box { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.key-box summary { cursor: pointer; font-weight: 600; color: var(--mute); }
.key-box p { color: var(--mute); }
.key-row { display: flex; gap: 8px; align-items: center; }
.key-row code, .key-row input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  font-size: 12px;
  word-break: break-all;
}
.key-restore { margin-top: 14px; }
.key-restore label { display: block; margin-bottom: 6px; font-weight: 600; }

.order-wrap { border: 1px solid var(--line); background: var(--bg); }
.order-wrap canvas { display: block; width: 100%; height: auto; }
.action-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- 휴대폰 ---------- */
@media (max-width: 900px) {
  .studio { grid-template-columns: minmax(0, 1fr); }
  .intro { flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 0 18px; }
  .panel { margin-top: 32px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 14px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .topbar { padding-top: 12px; padding-bottom: 12px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 18px; }
  .user-email { display: none; }
  .viewer { padding: 10px; }
  .dock-actions, .dock-actions .btn { width: 100%; }
  .style-option { grid-template-columns: 48px minmax(0, 1fr) 18px; gap: 10px; }
  .test { grid-template-columns: 36px minmax(0, 1fr); }
  .test-price { grid-column: 2; }
  .sheet { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .busy-bar::after { width: 100%; opacity: .5; }
}

/* 데스크톱: 스타일 목록이 길어도 사진 칸은 화면에 머묾 */
@media (min-width: 901px) {
  .stage-col { position: sticky; top: 16px; align-self: start; }
}
/* 휴대폰: 상단 계정 줄이 넘치면 아래로 내림 */
@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; }
  .account { width: 100%; flex-wrap: nowrap; gap: 8px; justify-content: space-between; }
  .account .credit-pill { margin-left: auto; }
  .account .btn { padding: 6px 12px; min-height: 40px; font-size: 14px; }
}

/* ---------- 약관·정책 페이지 ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 44px var(--gutter) 64px; }
.legal h1 { margin: 6px 0 6px; font-size: clamp(28px, 4vw, 36px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.legal-meta { margin: 0 0 28px; font-size: 13px; color: var(--mute); }
.legal section { padding: 18px 0; border-top: 1px solid var(--line); }
.legal h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.legal p, .legal li { color: #3A3F3D; font-size: 15px; line-height: 1.65; }
.legal p { margin: 0 0 10px; }
.legal a { color: var(--teal); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 12px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); }
.legal-table th { font-weight: 600; color: var(--mute); font-size: 13px; }

/* ---------- 관리자 ---------- */
.admin { max-width: 1280px; margin: 0 auto; padding: 32px var(--gutter) 64px; }
.admin h1 { margin: 0 0 12px; font-size: 26px; font-weight: 600; letter-spacing: -.015em; }
.admin h2 { margin: 0 0 10px; font-size: 19px; font-weight: 600; }
.admin-note { margin: 10px 0 0; font-size: 13px; color: var(--mute); }
.admin-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-block; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 2px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag-ok { border-color: var(--teal); color: var(--teal); background: var(--teal-tint); }
.tag-warn { border-color: var(--error); color: var(--error); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); border-top: 1px solid var(--ink); }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); }
.kpi span { font-size: 13px; color: var(--mute); }
.kpi strong { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.admin-search { display: flex; gap: 8px; margin-bottom: 10px; max-width: 420px; }
.admin-search input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper); }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
.admin-table th { font-size: 12px; font-weight: 600; color: var(--mute); }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table .btn { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.log-sub { font-size: 12px; color: var(--mute); }
.log-reason { white-space: normal; min-width: 200px; }
.kpi.is-cost strong { color: var(--mute); font-weight: 600; }
.kpi.is-net strong { color: var(--teal); }
#gate-google { max-width: 320px; }
