/* ==========================================================================
   ClareDEX — TUPL 스타일 에디토리얼 UI
   warm paper · navy · gold / single column
   ========================================================================== */

:root {
  --paper: #faf8f4;
  --paper-2: #f4f1ea;
  --paper-3: #efeae0;
  --card: #ffffff;
  --navy: #161e2e;
  --navy-2: #1f2a3d;
  --ink: #1b1f27;
  --ink-2: #3a3f48;
  --body: #4e535c;
  --muted: #8b8f98;
  --faint: #a9adb4;
  --line: #eae5da;
  --line-2: #ddd7c9;
  --gold: #f2c94c;
  --gold-hover: #eabf3c;
  --gold-deep: #9a7b22;
  --signal: #b4453b;
  --up: #b4453b;
  --down: #1f57b8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(22, 30, 46, 0.04), 0 24px 48px -36px rgba(22, 30, 46, 0.4);
  --serif: "Noto Serif KR", "Nanum Myeongjo", Georgia, "Times New Roman", serif;
  --sans: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1080px;
  --column: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: #f7e6b0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.col { width: 100%; max-width: var(--column); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 64px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 9px; height: 9px; background: var(--gold);
  transform: rotate(45deg); border-radius: 1.5px; flex: none;
}
.brand-name {
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  letter-spacing: 0.2em; color: var(--ink);
}
.brand-sub {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
  color: var(--faint); padding-left: 10px; margin-left: 2px;
  border-left: 1px solid var(--line-2); text-transform: uppercase;
}
.main-nav { display: flex; gap: 26px; }
.main-nav a {
  text-decoration: none; font-size: 13.5px; color: #6b7078;
  padding: 4px 0; transition: color .15s;
}
.main-nav a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.link-quiet { font-size: 13.5px; color: #6b7078; text-decoration: none; }
.link-quiet:hover { color: var(--ink); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer;
  text-decoration: none; font-weight: 600; line-height: 1;
  padding: 12px 20px; font-size: 14px;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #1b1f27; }
.btn-gold:hover { background: var(--gold-hover); }
.btn-dark { background: var(--navy); color: #fbfaf6; }
.btn-dark:hover { background: var(--navy-2); }
.btn-signal { background: var(--signal); color: #fff; }
.btn-signal:hover { background: #9d3a31; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); background: #fff; }
.btn-sm { padding: 9px 15px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { padding: 15px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* --------------------------------------------------------------- ticker */
.ticker {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ticker-inner {
  display: flex; align-items: center; height: 34px; gap: 0;
  overflow-x: auto; scrollbar-width: none;
  font-size: 11.5px; color: #6b7078;
}
.ticker-inner::-webkit-scrollbar { display: none; }
.ticker-live {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em;
  color: var(--gold-deep); padding-right: 14px; margin-right: 4px;
  border-right: 1px solid rgba(22, 30, 46, .08);
}
.live-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold-deep);
  box-shadow: 0 0 0 0 rgba(154, 123, 34, .5); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(154, 123, 34, .35); }
  70% { box-shadow: 0 0 0 6px rgba(154, 123, 34, 0); }
  100% { box-shadow: 0 0 0 0 rgba(154, 123, 34, 0); }
}
.tick {
  display: inline-flex; align-items: baseline; gap: 5px; flex: none;
  padding: 0 14px; border-right: 1px solid rgba(22, 30, 46, .06);
  white-space: nowrap;
}
.tick b { font-weight: 500; color: #4e535c; font-size: 11px; letter-spacing: .02em; }
.tick em { font-style: normal; font-size: 10.5px; font-family: var(--mono); }
.tick em.up { color: var(--up); }
.tick em.down { color: var(--down); }
.tick-skeleton { color: var(--faint); }
.ticker-note {
  margin-left: auto; flex: none; padding-left: 14px;
  font-size: 10px; color: var(--faint); white-space: nowrap;
}

/* --------------------------------------------------------------- section label */
.section-label {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 12px; font-size: 12px; color: #7d828a; letter-spacing: .01em;
}
.section-label::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
  flex: none;
}

/* --------------------------------------------------------------- hero */
.hero { padding: 74px 0 0; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .24em; color: var(--gold-deep);
  font-weight: 500; text-transform: uppercase;
}
.eyebrow .bar { display: none; }
.hero h1 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.34; letter-spacing: -0.03em;
  margin: 20px auto 0; max-width: 560px; color: var(--ink);
}
.hero-rule {
  display: block; width: 34px; height: 2px; background: var(--gold);
  margin: 24px auto 0;
}
.hero-sub {
  margin: 18px auto 0; font-size: 15px; color: var(--muted); letter-spacing: -0.005em;
}

/* --------------------------------------------------------------- featured */
.featured {
  margin-top: 46px; background: var(--navy); color: #f7f5ef;
  border-radius: var(--radius); padding: 34px 38px 32px;
  box-shadow: var(--shadow);
}
.featured-label {
  margin: 0 0 14px; font-size: 11.5px; letter-spacing: .04em; color: var(--gold);
  font-weight: 500;
}
.featured-label .dot { opacity: .45; margin: 0 5px; }
.featured-label .grade-tag { color: #ffb2a7; }
.featured h2 {
  margin: 0; font-family: var(--sans); font-weight: 700;
  font-size: clamp(21px, 2.6vw, 27px); line-height: 1.45; letter-spacing: -0.02em;
  color: #fff; overflow-wrap: anywhere;
}
.featured-body {
  margin: 14px 0 0; font-size: 14.5px; line-height: 1.85; color: rgba(247, 245, 239, .74);
  max-width: 96%;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.featured .btn { margin-top: 24px; }

/* --------------------------------------------------------------- carousel */
.carousel-block { margin-top: 58px; }
.carousel { position: relative; }
.story-card {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm); padding: 24px 28px 22px; min-height: 186px;
}
.story-card.is-active { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.story-label { margin: 0 0 10px; }
.story-card h3 {
  margin: 0; font-family: var(--sans); font-size: 19px; font-weight: 700;
  line-height: 1.45; letter-spacing: -0.015em; color: var(--ink);
  overflow-wrap: anywhere;
}
.story-card h3 a { text-decoration: none; }
.story-card h3 a:hover { color: var(--gold-deep); }
.story-excerpt {
  margin: 10px 0 0; font-size: 13.5px; line-height: 1.75; color: var(--body);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.story-time { margin: 14px 0 0; font-size: 11.5px; color: var(--faint); }
.carousel-dots { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 16px; }
.dot-btn {
  width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%;
  background: #d8d2c4; cursor: pointer; transition: all .2s;
}
.dot-btn.is-active { width: 20px; border-radius: 3px; background: var(--navy); }
.dot-btn:hover { background: #b9b2a2; }

/* --------------------------------------------------------------- latest feed */
.latest { margin-top: 64px; }
.latest-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 14px;
}
.latest-head .section-label { margin-bottom: 0; }
.latest-meta { margin: 0; font-size: 11.5px; color: var(--muted); }
.latest-meta strong { color: var(--ink-2); font-weight: 600; }

/* 관심자산 1초 미리보기 → 휴대폰 인증 퍼널 */
.watch-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 2px; }
.watch-strip-label {
  margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); flex: none;
}
.watch-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.watch-chip {
  border: 1px solid var(--line-2); background: #fff; color: #555b64;
  border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 500;
  letter-spacing: .01em; cursor: pointer; transition: all .15s;
}
.watch-chip:hover { border-color: var(--ink-2); color: var(--ink); }
.watch-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fbfaf6; }
.watch-chip.is-empty { color: var(--faint); border-style: dashed; }
.watch-chip.is-empty[aria-pressed="true"] { color: #fbfaf6; border-style: solid; }

.convert-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 12px 0 16px; padding: 10px 14px; text-decoration: none;
  background: #fbf7ec; border: 1px solid #eadfc4; border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm); color: var(--ink); font-size: 13px; line-height: 1.5;
  transition: background .15s ease, border-color .15s ease;
}
.convert-bar:hover { background: #f8f1de; border-color: #ddcaa2; }
.convert-bar b { font-weight: 700; }
.convert-main { min-width: 0; }
.convert-arrow { color: var(--gold-deep); font-weight: 700; }
.convert-count {
  flex: none; font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em;
  color: #8a7a4a;
}

.filters { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 4px 0 22px; }
.chip {
  border: 1px solid var(--line-2); background: transparent; color: #6b7078;
  border-radius: 6px; padding: 6px 13px; font-size: 12.5px; cursor: pointer;
  transition: all .15s; display: inline-flex; align-items: center; gap: 5px;
}
.chip:hover { border-color: #b9b2a2; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fbfaf6; border-color: var(--navy); }
.chip-s .imp-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--signal); }

.feed { display: flex; flex-direction: column; gap: 12px; }
.feed-item {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm); padding: 24px 28px 20px;
}
.feed-item.is-s { border-left-color: var(--signal); }
.feed-label { margin: 0 0 10px; }
.card-label { font-size: 11.5px; color: #83888f; letter-spacing: .01em; }
.card-label .dot { margin: 0 4px; opacity: .6; }
.grade-tag { font-weight: 600; letter-spacing: .03em; }
.badge-imp { white-space: nowrap; }
.badge-s { color: var(--signal); }
.badge-a { color: #8a7a4a; }
.badge-b { color: #9aa0a6; }

.feed-item h3 {
  margin: 0; font-family: var(--sans); font-size: clamp(17px, 2vw, 20px); font-weight: 700;
  line-height: 1.5; letter-spacing: -0.018em; overflow-wrap: anywhere;
}
.feed-item h3 a { text-decoration: none; }
.feed-item h3 a:hover { color: var(--gold-deep); }
.feed-body {
  margin: 10px 0 0; font-size: 13.5px; line-height: 1.8; color: var(--body);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.impact-line {
  margin: 8px 0 0; font-size: 13px; line-height: 1.75; color: #6b7078;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.impact-line span {
  color: var(--gold-deep); font-weight: 600; font-size: 11px;
  letter-spacing: .04em; margin-right: 2px;
}
.impact-line span::after { content: " ·"; margin-right: 5px; opacity: .7; }
.feed-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: nowrap;
  margin-top: 16px; font-size: 11.5px; color: var(--faint);
}
.src-meta {
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.src-meta b { font-weight: 500; color: #7d828a; }
.src-meta .dot { opacity: .5; margin: 0 2px; }
.src-meta time { font-family: var(--mono); font-size: 11px; letter-spacing: .01em; }
.feed-foot time { font-family: var(--mono); font-size: 11px; letter-spacing: .01em; }
.story-time .dot { opacity: .5; margin: 0 2px; }
.source-link {
  font-size: 12px; color: #6b7078; text-decoration: none;
  border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
.source-link:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.feed-empty {
  padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13.5px;
  border: 1px dashed var(--line-2); border-radius: var(--radius-sm);
}
.feed-empty a { color: var(--ink); }

/* --------------------------------------------------------------- schedule */
.schedule { margin-top: 72px; }
.next-event {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm); padding: 24px 28px 20px;
}
.next-title {
  margin: 0 0 10px; font-family: var(--sans); font-size: 18px; font-weight: 700;
  line-height: 1.45; letter-spacing: -0.015em;
}
.next-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.next-org { margin: 0; font-size: 12px; color: var(--muted); }
.next-clock {
  margin: 0; font-family: var(--mono); font-size: 22px; font-weight: 500;
  letter-spacing: .02em; color: var(--navy); font-variant-numeric: tabular-nums;
}
.next-sub { margin: 12px 0 0; font-size: 11.5px; color: var(--faint); line-height: 1.7; }
.next-sub a { color: #6b7078; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.next-check {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap;
  margin: 10px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.65;
}
.next-check span { min-width: 0; }
.next-check a {
  flex: none; font-size: 11.5px; color: var(--gold-deep); text-decoration: none;
  border-bottom: 1px solid #e6d6a8;
}
.next-check a:hover { color: var(--ink); border-bottom-color: var(--line-2); }

.event-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.event { display: block; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.ev-row {
  display: grid; grid-template-columns: 62px minmax(0, 1fr) 86px 34px;
  gap: 14px; align-items: center;
}
.ev-check {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap;
  margin: 3px 0 0 76px; font-size: 11.5px; line-height: 1.6; color: #7d828a;
}
.ev-check span { min-width: 0; }
.ev-check a {
  flex: none; font-size: 11px; color: var(--gold-deep); text-decoration: none;
  border-bottom: 1px solid #e6d6a8;
}
.ev-check a:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.dday { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--navy); }
.ev-main { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-main b {
  display: inline; font-size: 14px; font-weight: 600; line-height: 1.5;
  letter-spacing: -0.01em;
}
.ev-main em { display: inline; font-style: normal; font-size: 11.5px; color: var(--faint); margin-left: 7px; }
.ev-when { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: right; }
.event .grade-tag { font-size: 11px; text-align: right; }
.event-empty { padding: 26px 2px; color: var(--muted); font-size: 13.5px; list-style: none; }

/* --------------------------------------------------------------- plans */
.plans { margin-top: 72px; }
.plan-card {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.plan-col { padding: 28px 30px 26px; display: flex; flex-direction: column; }
.plan-col.pro { background: #f7f4ec; border-left: 1px solid var(--line); }
.plan-tag {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em;
  color: var(--gold-deep); text-transform: uppercase;
}
.plan-col h3 {
  margin: 12px 0 14px; font-family: var(--sans); font-size: 17px; font-weight: 700;
  line-height: 1.45; letter-spacing: -0.015em;
}
.plan-col ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.plan-col li { position: relative; padding-left: 14px; font-size: 13px; color: var(--body); line-height: 1.6; }
.plan-col li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 3px; height: 3px; border-radius: 50%; background: var(--gold-deep);
}
.plan-col .btn { margin-top: auto; align-self: flex-start; }
.plan-fine { margin: auto 0 0; font-size: 11px; color: var(--faint); line-height: 1.7; }

/* 사이드바·구형 카드 클래스 호환 (관리자 화면) */
.note-card {
  font-size: 11.5px; color: var(--muted); line-height: 1.7; padding: 16px 18px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------- footer */
.site-footer { margin-top: 84px; border-top: 1px solid var(--line); background: var(--paper-2); }
.site-footer .col { padding-top: 40px; padding-bottom: 32px; }
.footer-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.footer-line { margin: 0; font-size: 12.5px; color: var(--muted); }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 20px 0 0;
  font-size: 12px; color: #6b7078;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.compliance {
  margin: 24px 0 0; font-size: 11px; color: #8b8f98; line-height: 1.9;
}
.compliance strong { color: #6b7078; font-weight: 600; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--faint);
}

/* --------------------------------------------------------------- signup */
.auth-shell { padding: 56px 0 20px; }
.auth-head { text-align: center; }
.auth-head .eyebrow { display: inline-block; }
.auth-head h1 {
  font-family: var(--sans); font-weight: 700; font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.36; letter-spacing: -0.025em; margin: 16px auto 0; max-width: 480px;
}
.auth-head .hero-rule { margin: 20px auto 0; }
.auth-head .lead {
  margin: 16px auto 0; max-width: 460px; font-size: 14px; color: var(--muted);
  line-height: 1.8;
}
.req-note {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap;
  margin: 18px auto 0; padding: 8px 14px;
  background: #fbf7ec; border: 1px solid #eadfc4; border-radius: 999px;
  font-size: 12px; color: var(--ink-2); line-height: 1.5;
}
.req-note b { font-weight: 700; color: var(--ink); }
.auth-card {
  max-width: 540px; margin: 32px auto 0; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 32px 26px;
}
.auth-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; }
.step-dot { height: 2px; flex: 1; background: var(--line); border-radius: 2px; }
.step-dot.on { background: var(--gold); }
.auth-card h2 {
  font-family: var(--sans); font-size: 19px; font-weight: 700;
  margin: 0 0 6px; letter-spacing: -0.02em;
}
.auth-card .hint { font-size: 12.5px; color: var(--muted); margin: 0 0 20px; line-height: 1.7; }

.divider {
  display: flex; align-items: center; gap: 12px; color: var(--faint);
  font-size: 11px; margin: 20px 0; letter-spacing: .04em;
}
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: var(--radius-sm); padding: 12px; font-size: 13.5px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--line-2); cursor: pointer; background: #fff;
  width: 100%;
}
.btn-social:hover { border-color: var(--ink-2); }
.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.social-row .soon { font-size: 10px; color: var(--faint); font-weight: 500; }
@media (max-width: 420px) { .social-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.field input {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 13px;
  font-size: 14px; background: #fff; outline: none; transition: border-color .15s;
}
.field input:focus { border-color: var(--ink-2); }
.field .err { color: var(--signal); font-size: 11.5px; margin-top: 5px; min-height: 15px; }
.field .err.ok { color: #2f6b4a; }
.field input[readonly] { background: var(--paper-2); color: var(--muted); }
.auth-fine { font-size: 11px; color: var(--muted); line-height: 1.75; margin: 14px 0 0; }
.auth-aside-note {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--faint); line-height: 1.7;
}
.auth-benefits {
  list-style: none; padding: 0; margin: 28px auto 0; max-width: 540px; display: grid; gap: 12px;
}
.auth-benefits li {
  position: relative; padding-left: 16px; font-size: 13px; color: var(--body); line-height: 1.7;
}
.auth-benefits li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}
.auth-benefits b { font-weight: 600; color: var(--ink); }

.watch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 12px; }
.watch-opt {
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; cursor: pointer;
  padding: 13px 8px; text-align: center; transition: all .15s; position: relative;
}
.watch-opt b { display: block; font-size: 13.5px; font-weight: 600; }
.watch-opt span { font-size: 10.5px; color: var(--muted); }
.watch-opt[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fbfaf6; }
.watch-opt[aria-pressed="true"] span { color: rgba(251, 250, 246, .6); }
.watch-opt[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: 6px; right: 8px; font-size: 10px; color: var(--gold);
}
.phone-row { display: flex; gap: 8px; align-items: stretch; }
.phone-row input { flex: 1; min-width: 0; }
.phone-send { flex: none; padding: 11px 15px; font-size: 12.5px; border-radius: var(--radius-sm); }
.code-timer { font-family: var(--mono); font-size: 10.5px; color: var(--signal); font-weight: 500; margin-left: 4px; }
.demo-note {
  margin: 10px 0 12px; padding: 11px 13px; border-radius: var(--radius-sm); background: var(--paper-2);
  border: 1px solid var(--line); font-size: 12px; color: var(--body); line-height: 1.7;
}
.demo-note b { color: var(--gold-deep); }
.demo-note code {
  font-family: var(--mono); font-size: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 6px; color: var(--signal); font-weight: 600; letter-spacing: .04em;
}
.watch-count { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.watch-count b { color: var(--ink); }
.success-panel { text-align: center; padding: 6px 0 2px; }
.success-icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 18px;
}
.success-panel h2 { margin-bottom: 8px; }
.success-panel p { font-size: 13px; color: var(--muted); }
.watch-summary { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 16px 0 22px; }
.watch-summary span {
  font-size: 11.5px; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 11px;
}

/* --------------------------------------------------------------- admin blog */
.admin-shell { padding: 34px 0 30px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-head h1 { font-family: var(--sans); font-weight: 700; font-size: 26px; margin: 8px 0 4px; letter-spacing: -0.025em; }
.admin-head p { margin: 0; font-size: 13px; color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 22px; align-items: start; }
.draft-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.draft-list-head {
  padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 11px;
  font-family: var(--mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase;
  display: flex; justify-content: space-between;
}
.draft-item {
  display: block; width: 100%; text-align: left; padding: 14px 16px; background: transparent;
  border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.draft-item:last-child { border-bottom: 0; }
.draft-item:hover { background: var(--paper-2); }
.draft-item[aria-current="true"] { background: #fbf7ec; box-shadow: inset 3px 0 0 var(--gold); }
.draft-item b { display: block; font-size: 13.5px; line-height: 1.45; margin-bottom: 5px; font-weight: 600; }
.draft-item span { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.draft-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.draft-panel-head { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.draft-panel-head h2 { font-family: var(--sans); font-size: 20px; font-weight: 700; margin: 0 0 8px; line-height: 1.4; letter-spacing: -0.02em; }
.draft-kws { display: flex; gap: 6px; flex-wrap: wrap; }
.draft-kws span { font-size: 11px; background: var(--paper-2); color: var(--ink-2); padding: 3px 8px; border-radius: 5px; }
.draft-tabs { display: flex; gap: 4px; padding: 14px 20px 0; border-bottom: 1px solid var(--line); }
.tab {
  border: 0; background: transparent; padding: 8px 14px 12px; cursor: pointer; font-size: 13px;
  color: var(--muted); border-bottom: 2px solid transparent;
}
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--navy); font-weight: 600; }
.draft-body { padding: 24px; }
.draft-body h3 { font-family: var(--sans); font-size: 16px; font-weight: 700; margin: 24px 0 8px; }
.draft-body h3:first-child { margin-top: 0; }
.draft-body p, .draft-body li { font-size: 14px; color: var(--body); line-height: 1.8; }
.draft-body ul { padding-left: 18px; }
.draft-body img { border-radius: var(--radius-sm); border: 1px solid var(--line); }
.copy-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-2);
  background: #fff; border-radius: var(--radius-sm); padding: 9px 13px; font-size: 12.5px; cursor: pointer;
  text-decoration: none;
}
.copy-btn:hover { border-color: var(--ink-2); }
.copy-btn.primary { background: var(--navy); color: #fbfaf6; border-color: var(--navy); }
.copy-btn.primary:hover { background: var(--navy-2); }
.copy-btn.copied { border-color: #2f6b4a; color: #2f6b4a; background: #eef6f1; }
.code-view {
  background: var(--navy); color: #e8e2d2; border-radius: var(--radius-sm); padding: 18px;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.7; white-space: pre-wrap;
  word-break: break-all; max-height: 460px; overflow: auto;
}
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--navy); color: #fbfaf6; padding: 12px 20px; border-radius: var(--radius-sm);
  font-size: 13px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 200;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.notice {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: #fbf7ec; border: 1px solid #eadfc4; font-size: 12.5px; color: var(--body);
  line-height: 1.7; margin-bottom: 18px;
}
.notice b { color: var(--gold-deep); }
.notice code, .auth-fine code {
  font-family: var(--mono); font-size: 11.5px; background: var(--paper-3);
  border-radius: 4px; padding: 1px 5px; color: var(--ink-2);
}
.section-meta { font-size: 12px; color: var(--muted); }
.section-meta strong { color: var(--ink); font-weight: 600; }

/* 운영자 로그인 게이트 (/admin) */
.admin-gate-card {
  max-width: 430px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 26px 20px; box-shadow: var(--shadow);
}
.admin-gate-card .btn { margin-top: 6px; }
.admin-gate-card .auth-fine { margin: 12px 0 0; font-size: 11px; color: var(--muted); line-height: 1.7; }

/* --------------------------------------------------------------- misc */
.reveal { animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------- signup OTP · 동의 모달 */
.verify-row { display: flex; gap: 8px; align-items: stretch; }
.verify-row input { flex: 1; min-width: 0; }
.btn-code {
  flex: none; border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  border-radius: var(--radius-sm); padding: 11px 13px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s;
}
.btn-code:hover { border-color: var(--ink-2); background: var(--paper-2); }
.btn-code[disabled] { opacity: .55; cursor: not-allowed; }
.otp-box {
  margin: 8px 0 2px; padding: 11px 13px; border-radius: var(--radius-sm);
  background: var(--paper-2); border: 1px solid var(--line);
  font-size: 11.5px; color: var(--body); line-height: 1.7;
}
.otp-box b { color: var(--gold-deep); }
.otp-box .code {
  font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: .12em;
  color: var(--signal); background: #fff; border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 7px; display: inline-block; margin: 4px 0;
}
.verified-pill { color: #2f6b4a; font-size: 11.5px; font-weight: 600; }
.hint-inline { font-size: 11px; color: var(--faint); margin-top: 3px; line-height: 1.6; }
.consent { margin: 14px 0 4px; padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-2); }
.consent-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.consent-row label { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.consent-row input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--navy); }
.btn-view {
  flex: none; border: 1px solid var(--line-2); background: #fff; color: #6b7078;
  border-radius: 999px; padding: 3px 10px; font-size: 11px; cursor: pointer;
}
.btn-view:hover { border-color: var(--ink-2); color: var(--ink); }
.consent-fine { margin: 7px 0 0; font-size: 10.5px; color: var(--faint); line-height: 1.6; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(22, 30, 46, .55);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-card {
  width: 100%; max-width: 640px; max-height: 86vh; display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 20px 22px 14px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.modal-head p { margin: 5px 0 0; font-size: 11px; color: var(--faint); }
.modal-close {
  flex: none; border: 0; background: transparent; font-size: 15px; color: var(--muted);
  cursor: pointer; padding: 2px 6px;
}
.modal-body { padding: 18px 22px; overflow-y: auto; font-size: 12.5px; color: var(--body); line-height: 1.8; }
.modal-body h4 { margin: 18px 0 6px; font-size: 13px; color: var(--ink); font-weight: 700; }
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { margin: 0 0 10px; }
.modal-body ul { margin: 0 0 10px; padding-left: 17px; }
.modal-body li { margin-bottom: 4px; }
.modal-body table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 11px; }
.modal-body th, .modal-body td { border: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; }
.modal-body th { background: var(--paper-2); font-weight: 600; color: var(--ink-2); }
.modal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 22px; border-top: 1px solid var(--line); background: var(--paper-2);
}
.modal-foot .meta { font-size: 11px; color: var(--faint); }

/* 오늘 확인 0건일 때 최근 확인 건수 병기 */
.latest-meta .recent-note { color: var(--faint); font-size: 11.5px; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .main-nav { gap: 20px; }
  .admin-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .col { padding: 0 20px; }
  .main-nav { display: none; }
  .hero { padding-top: 52px; }
  .featured { padding: 26px 22px 24px; margin-top: 36px; }
  .featured-body { max-width: 100%; font-size: 14px; }
  .story-card, .feed-item, .next-event { padding: 20px 20px 18px; }
  .story-card { min-height: 0; }
  .plan-card { grid-template-columns: 1fr; }
  .plan-col.pro { border-left: 0; border-top: 1px solid var(--line); }
  .next-clock { font-size: 19px; }
  .ev-row { grid-template-columns: 48px minmax(0, 1fr) auto; row-gap: 2px; }
  .ev-row .grade-tag { grid-column: 3; }
  .ev-when { grid-column: 2; text-align: left; }
  .ev-main { white-space: normal; }
  .ev-main em { display: block; margin-left: 0; }
  .ev-check { margin-left: 0; }
  .watch-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-shell { padding-top: 40px; }
  .auth-card { padding: 24px 20px 22px; }
  .latest-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-bottom { flex-direction: column; gap: 4px; }
}
@media (max-width: 480px) {
  .header-inner { height: 58px; gap: 14px; }
  .header-actions .link-quiet { display: none; }
  .hero h1 { font-size: 25px; }
  .ev-main b { white-space: normal; }
}

/* ------------------------------------------------- 1단계 휴대폰 가입 퍼널 */
.vf-step-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.vf-badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--paper-2); border: 1px solid var(--line-2); color: var(--ink-2);
  border-radius: 999px; padding: 3px 9px;
}
.vf-badge.alarm { background: #fbf1ef; border-color: #edcfc9; color: #8a2f27; }
.vf-step-note { font-size: 11px; color: var(--faint); }
.brief-card {
  margin: 18px 0 4px; padding: 16px 16px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--paper-2);
}
.brief-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.brief-head b { font-size: 12.5px; color: var(--ink); letter-spacing: -0.01em; }
.brief-head span { font-family: var(--mono); font-size: 10.5px; color: var(--gold-deep); }
.brief-empty { margin: 10px 0 2px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.brief-sub {
  margin: 14px 0 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint);
}
.brief-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.brief-list li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 12.5px; line-height: 1.6;
}
.brief-list li a { text-decoration: none; color: var(--ink); font-weight: 500; }
.brief-list li a:hover { text-decoration: underline; }
.brief-meta { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.brief-none { font-size: 12px; color: var(--muted); background: #fff; }
.mini-grade {
  display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px;
  border-radius: 4px; font-family: var(--mono); font-size: 10px; font-weight: 600; color: #fff;
  margin-right: 4px; vertical-align: 1px;
}
.mini-grade.g-S { background: #B3261E; }
.mini-grade.g-A { background: #8C6B2F; }
.mini-grade.g-B { background: #6b6e75; }
.brief-dday {
  display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 600;
  color: #8a2f27; background: #fbf1ef; border: 1px solid #edcfc9; border-radius: 4px;
  padding: 1px 5px; margin-right: 6px;
}
.brief-ev b { font-size: 12.5px; font-weight: 600; }

.alarm-block { margin-top: 26px; }
.alarm-card {
  border: 1px solid var(--line-2); border-radius: var(--radius); background: #fbfaf6;
  padding: 20px 18px 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 1px 2px rgba(22, 30, 46, .03);
}
.alarm-title {
  font-family: var(--sans); font-size: 18px; font-weight: 700; line-height: 1.45;
  letter-spacing: -0.02em; margin: 4px 0 8px;
}
.alarm-sub { margin: 0 0 12px; font-size: 12.5px; color: var(--body); line-height: 1.75; }

/* 내 폰에 도착할 문자 미리보기 — 번호 입력란 바로 위 미니 말풍선 */
.sms-preview {
  margin: 2px 0 16px; padding: 12px 13px 11px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #f5f5f1, #eff0ea);
}
.sms-preview-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sms-preview-title { font-size: 11px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; }
.sms-preview-time { font-family: var(--mono); font-size: 10px; color: var(--faint); white-space: nowrap; }
.sms-bubble {
  margin: 9px 0 0; padding: 10px 12px 11px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 1px 2px rgba(22, 30, 46, .04);
}
.sms-line {
  margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--ink-2); letter-spacing: -0.01em;
  word-break: keep-all;
}
.sms-line:first-child { font-weight: 700; color: var(--ink); }
.sms-line + .sms-line { margin-top: 3px; }
.sms-preview-note { margin: 9px 0 0; font-size: 11px; color: var(--muted); line-height: 1.65; }
.opt-tag {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 1px 6px; margin-left: 4px; vertical-align: 2px;
}

.reserved-card {
  margin: 6px 0 20px; padding: 14px 14px 10px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2);
}
.reserved-head {
  margin: 0 0 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.reserved-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.reserved-list li {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: baseline;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 11px;
}
.reserved-when { font-family: var(--mono); font-size: 11.5px; color: var(--ink); font-weight: 500; }
.reserved-when em { display: block; font-style: normal; font-family: var(--sans); font-size: 10px; color: var(--muted); }
.reserved-title { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.reserved-fine { margin: 10px 0 0; font-size: 10.5px; color: var(--faint); line-height: 1.6; }
/* --------------------------------------------------- 타점 비상벨 (메인 바) */
.alert-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin: 4px 0 26px; padding: 13px 16px;
  border: 1px solid #e2d3ae; border-radius: var(--radius);
  background: linear-gradient(180deg, #fdf7e6, #faf1d9);
  text-decoration: none; transition: border-color .15s ease, background .15s ease;
}
.alert-bar:hover { border-color: var(--gold-deep); background: #faf0d2; }
.alert-bar-main { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.alert-bar-sub {
  font-family: var(--mono); font-size: 11px; color: var(--gold-deep); letter-spacing: 0.01em;
}
@media (max-width: 480px) {
  .alert-bar { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; }
  .alert-bar-main { font-size: 13.5px; }
}

/* ------------------------------------------------ 타점 비상벨 (가입 화면) */
.alt-panel {
  margin: 4px 0 14px; padding: 13px 13px 11px;
  border: 1px solid #e6d9b8; border-radius: var(--radius);
  background: linear-gradient(180deg, #fdfaf1, #fbf6e8);
}
.alt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.alt-title { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.alt-live { font-family: var(--mono); font-size: 10px; color: var(--gold-deep); }
.alt-now {
  list-style: none; display: flex; gap: 6px; margin: 9px 0 0; padding: 0;
}
.alt-now li {
  flex: 1 1 0; min-width: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 7px 8px; text-align: center;
}
.alt-now span { display: block; font-size: 10px; color: var(--muted); letter-spacing: 0.02em; }
.alt-now b { display: block; font-family: var(--mono); font-size: 13px; color: var(--ink); margin-top: 1px; }
.alt-hint { margin: 9px 0 0; font-size: 11px; color: var(--body); line-height: 1.6; }
.alt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.alt-chip {
  font-family: var(--sans); font-size: 11.5px; line-height: 1.2; padding: 6px 10px;
  border: 1px solid var(--line-2); border-radius: 999px; background: #fff;
  color: var(--ink-2); cursor: pointer; transition: all .12s ease;
}
.alt-chip:hover { border-color: var(--ink-2); color: var(--ink); }
.alt-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fbfaf6; font-weight: 700; }
.alt-custom { display: flex; gap: 6px; margin: 9px 0 0; flex-wrap: wrap; }
.alt-custom select, .alt-custom input {
  font-size: 12px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); min-width: 0;
}
.alt-custom select { flex: 0 0 auto; }
.alt-custom input { flex: 1 1 92px; font-family: var(--mono); }
.btn-mini {
  font-size: 12px; font-weight: 700; padding: 6px 11px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper-2); color: var(--ink);
}
.btn-mini:hover { border-color: var(--ink-2); background: #fff; }
.alt-panel .err { min-height: 0; margin-top: 6px; }
.alt-state { margin: 7px 0 0; font-size: 11px; color: var(--muted); line-height: 1.6; }
.alt-state.is-on { color: #2f6b4a; }
.alt-state b { color: var(--ink); }
.alert-summary {
  margin: 4px 0 16px; padding: 11px 13px; text-align: left;
  border: 1px dashed var(--line-2); border-radius: var(--radius); background: #fff;
}
.alert-summary.is-on { border-style: solid; border-color: #e2d3ae; background: #fdfaf1; }
.alert-summary-head {
  margin: 0 0 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.alert-summary-body { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.65; }
.alert-summary-body b { color: var(--ink); }
.alert-summary-body span { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.alert-summary-body a { color: var(--gold-deep); font-weight: 700; text-decoration: none; }

@media (max-width: 480px) {
  .alt-now b { font-size: 12px; }
  .alt-chip { font-size: 11px; padding: 6px 9px; }
}

@media (max-width: 480px) {
  .alarm-title { font-size: 16.5px; }
  .reserved-list li { grid-template-columns: 1fr; gap: 3px; }
}
