:root {
  --primary: #2152C9;
  --primary-weak: color-mix(in srgb, var(--primary) 9%, #fff);
  --primary-soft: color-mix(in srgb, var(--primary) 16%, #fff);
  --primary-deep: color-mix(in srgb, var(--primary) 78%, #000);
  --bg: #F2F4F7;
  --surface: #FFFFFF;
  --text: #191F28;
  --text-2: #4E5968;
  --text-3: #8B95A1;
  --line: #E8EBEF;
  --line-2: #F2F4F6;
  --green: #0E9F6E;
  --green-weak: #E7F7F0;
  --orange: #E8590C;
  --orange-weak: #FFF1E7;
  --red: #E5484D;
  --red-weak: #FDECEC;
  --yellow: #FFB800;
  --radius: 20px;
  --radius-sm: 14px;
  --appbar-h: 56px;
  --tabbar-h: 64px;
  --max: 480px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
html[data-fs="l"] { font-size: 18px; }
html[data-fs="xl"] { font-size: 20px; }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: #E4E8EE;
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.app {
  position: relative;
  max-width: var(--max);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow-x: clip;
}
@media (min-width: 520px) {
  .app { box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), 0 20px 60px rgba(15, 23, 42, .12); }
}

/* App bar */
.appbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--appbar-h);
  display: flex; align-items: center; gap: 4px;
  padding: 0 8px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.appbar.is-white { background: color-mix(in srgb, #fff 90%, transparent); }
.appbar.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.appbar-title {
  flex: 1; min-width: 0;
  font-size: 1.0625rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 4px;
}
.appbar-brand { display: flex; align-items: center; gap: 10px; padding-left: 8px; flex: 1; min-width: 0; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
}
.brand-name { font-weight: 800; font-size: clamp(0.875rem, 4.3vw, 1.0625rem); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--text);
  transition: background .15s;
}
.icon-btn:active { background: rgba(0, 0, 0, .06); }
.icon-btn.is-on { color: var(--yellow); }

/* View & transitions */
.view {
  padding: 4px 16px calc(var(--tabbar-h) + var(--safe-b) + 28px);
  outline: none;
}
.view.no-tabbar { padding-bottom: calc(96px + var(--safe-b)); }
.view.anim-push { animation: push .28s cubic-bezier(.2, .8, .2, 1); }
.view.anim-pop { animation: pop .24s cubic-bezier(.2, .8, .2, 1); }
.view.anim-fade { animation: fade .2s ease; }
@keyframes push { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view { animation: none !important; } }

/* Ad slots (관리자 설정의 광고 코드). 화면을 이동해도 view 밖에 있어 다시 그려지지 않는다. */
.ad-slot { margin: 4px 16px 12px; text-align: center; overflow: hidden; min-width: 0; }
.ad-slot > * { max-width: 100%; }
.ad-slot iframe, .ad-slot img { max-width: 100%; }
.ad-label { display: block; margin-bottom: 4px; font-size: .6875rem; color: var(--text-3, #8B95A1); text-align: left; }
.app.has-ad-bottom .view { padding-bottom: 16px; }
.ad-bottom { margin-top: 8px; margin-bottom: calc(var(--tabbar-h) + var(--safe-b) + 28px); }
.app.has-ad-bottom .view.no-tabbar + .ad-bottom { margin-bottom: calc(96px + var(--safe-b)); }

/* Tab bar */
.tabbar {
  position: fixed; z-index: 40;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: var(--max);
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding: 0 6px var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #A3ACB8; font-size: .6875rem; font-weight: 600;
  transition: color .15s;
}
.tab svg { width: 24px; height: 24px; }
.tab.is-active { color: var(--text); }
.tab.is-active svg { color: var(--primary); }

/* Bottom CTA */
.cta-bar {
  position: fixed; z-index: 40;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: var(--max);
  padding: 12px 16px calc(12px + var(--safe-b));
  display: flex; gap: 8px;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 52px; padding: 0 20px;
  border-radius: 16px;
  font-weight: 700; font-size: 1rem;
  transition: transform .1s, background .15s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:active { background: var(--primary-deep); }
.btn-soft { background: var(--primary-weak); color: var(--primary); }
.btn-gray { background: #E9EDF2; color: var(--text-2); }
.btn-white { background: #fff; color: var(--primary); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: .875rem; }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* Cards & sections */
.section { margin-top: 28px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 0 4px 12px; }
.section-title { font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.02em; }
.section-sub { font-size: .875rem; color: var(--text-3); margin-top: 2px; }
.more-link { font-size: .875rem; color: var(--text-3); font-weight: 600; display: flex; align-items: center; gap: 2px; }
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 12px; }
.muted { color: var(--text-3); }

/* Home */
.home-top { padding: 8px 4px 0; }
.home-eyebrow { font-size: .875rem; color: var(--text-2); font-weight: 600; }
.hero {
  position: relative; overflow: hidden;
  margin-top: 12px;
  border-radius: 24px;
  padding: 24px 22px 22px;
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%),
    linear-gradient(150deg, var(--primary) 0%, var(--primary-deep) 100%);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 30%, transparent);
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  font-size: .8125rem; font-weight: 700;
}
.hero-title { position: relative; margin-top: 14px; font-size: 1.5rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.03em; max-width: 72%; }
.hero-text { position: relative; margin-top: 8px; font-size: .9375rem; opacity: .86; max-width: 72%; }
.hero-art { position: absolute; right: -4px; top: 14px; width: 96px; height: 96px; opacity: .9; pointer-events: none; }
.hero .btn { margin-top: 20px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile {
  background: var(--surface);
  border-radius: 18px;
  padding: 16px 12px 14px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
  min-height: 116px;
  transition: transform .1s;
}
.tile:active { transform: scale(.97); }
.tile-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--c, var(--primary));
  background: color-mix(in srgb, var(--c, var(--primary)) 12%, #fff);
}
.tile-name { font-size: .9375rem; font-weight: 700; line-height: 1.3; }
.tile-sub { font-size: .75rem; color: var(--text-3); margin-top: -6px; }

.progress-card { display: flex; flex-direction: column; gap: 14px; }
.progress-row { display: flex; align-items: center; gap: 14px; }
.ring { width: 64px; height: 64px; flex-shrink: 0; position: relative; }
.ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: .9375rem; }
.progress-title { font-weight: 700; font-size: 1rem; }
.progress-text { font-size: .875rem; color: var(--text-2); margin-top: 2px; }

.notice-line {
  margin-top: 28px; padding: 14px 16px;
  border-radius: 14px;
  background: #E9EDF2;
  font-size: .8125rem; color: var(--text-2);
  display: flex; gap: 8px; align-items: flex-start;
}
.notice-line svg { margin-top: 2px; color: var(--text-3); }

/* List rows */
.list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  padding: 16px 18px;
  min-height: 64px;
  position: relative;
  transition: background .12s;
}
.row:active { background: var(--line-2); }
.row + .row::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 1px; background: var(--line-2); }
.row-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--c, var(--primary));
  background: color-mix(in srgb, var(--c, var(--primary)) 11%, #fff);
}
.row-body { flex: 1; min-width: 0; }
.row-title { font-weight: 700; font-size: 1rem; line-height: 1.4; }
.row-sub { font-size: .875rem; color: var(--text-3); margin-top: 2px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-end { color: #B0B8C1; display: flex; align-items: center; gap: 6px; }
.row-end .pill { margin-right: 2px; }

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  height: 24px; padding: 0 9px;
  border-radius: 999px;
  font-size: .75rem; font-weight: 700;
  background: var(--primary-weak); color: var(--primary);
  white-space: nowrap;
}
.pill-green { background: var(--green-weak); color: var(--green); }
.pill-orange { background: var(--orange-weak); color: var(--orange); }
.pill-red { background: var(--red-weak); color: var(--red); }
.pill-gray { background: #EEF1F4; color: var(--text-2); }

/* Situation grid */
.sit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sit-card {
  background: var(--surface);
  border-radius: 18px; padding: 16px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
  min-height: 108px;
  transition: transform .1s;
}
.sit-card:active { transform: scale(.97); }
.sit-title { font-weight: 700; font-size: .9375rem; line-height: 1.4; }
.sit-card-cta { background: var(--primary-weak); box-shadow: none; color: var(--primary); }
.sit-card-cta .tile-icon { background: #fff; }

/* Page header */
.page-head { padding: 8px 4px 18px; }
.page-title { font-size: 1.625rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.page-desc { margin-top: 6px; color: var(--text-2); font-size: .9375rem; }

/* Wizard */
.wizard-progress { display: flex; gap: 6px; margin: 4px 4px 22px; }
.wizard-progress span { flex: 1; height: 4px; border-radius: 4px; background: #DDE2E8; transition: background .25s; }
.wizard-progress span.on { background: var(--primary); }
.q-step { font-size: .875rem; font-weight: 700; color: var(--primary); margin: 0 4px; }
.q-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; margin: 6px 4px 6px; }
.q-help { color: var(--text-2); font-size: .9375rem; margin: 0 4px 20px; }
.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  padding: 18px;
  background: var(--surface);
  border-radius: 18px;
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  transition: border-color .15s, background .15s;
}
.option:active { background: var(--line-2); }
.option.is-selected { border-color: var(--primary); background: var(--primary-weak); }
.option-emoji {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  background: var(--line-2); display: grid; place-items: center; color: var(--text-2);
}
.option.is-selected .option-emoji { background: #fff; color: var(--primary); }
.option-title { font-weight: 700; font-size: 1.0625rem; }
.option-sub { font-size: .875rem; color: var(--text-3); margin-top: 1px; }
.helper {
  margin-top: 16px; padding: 16px;
  background: var(--surface); border-radius: 16px;
  font-size: .9375rem; color: var(--text-2);
}
.helper-row { display: flex; gap: 8px; margin-top: 10px; }
.input {
  width: 100%; min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 1.0625rem;
  outline: none;
  transition: border-color .15s;
}
.input:focus { border-color: var(--primary); }

/* Result */
.result-hero { text-align: center; padding: 18px 8px 8px; }
.result-badge {
  width: 76px; height: 76px; border-radius: 26px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
}
.result-badge.likely { background: var(--green-weak); color: var(--green); }
.result-badge.check { background: var(--primary-weak); color: var(--primary); }
.result-badge.notyet { background: var(--orange-weak); color: var(--orange); }
.result-badge.unknown { background: #EEF1F4; color: var(--text-2); }
.result-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; }
.result-text { margin-top: 8px; color: var(--text-2); font-size: 1rem; }
.answer-list { display: flex; flex-direction: column; gap: 10px; }
.answer-row { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.answer-row span:first-child { color: var(--text-3); flex-shrink: 0; }
.answer-row span:last-child { font-weight: 600; text-align: right; }
.bullet { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; color: var(--text-2); }
.bullet + .bullet { margin-top: 10px; }
.bullet svg { margin-top: 2px; color: var(--primary); }
.card-title { font-size: 1.0625rem; font-weight: 800; margin-bottom: 12px; }

/* Checklist */
.check-head { display: flex; align-items: center; gap: 16px; }
.check-meter { flex: 1; }
.meter { height: 10px; border-radius: 10px; background: #E6EAF0; overflow: hidden; margin-top: 10px; }
.meter > i { display: block; height: 100%; width: 0; border-radius: 10px; background: var(--primary); transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.meter.green > i { background: var(--green); }
.check-item {
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%; text-align: left;
  padding: 16px 18px;
  position: relative;
}
.check-item + .check-item::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 1px; background: var(--line-2); }
.check-box {
  width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0;
  border: 2px solid #CDD3DB; background: #fff;
  display: grid; place-items: center;
  color: transparent;
  transition: all .15s;
}
.check-item.is-done .check-box { background: var(--primary); border-color: var(--primary); color: #fff; }
.check-name { font-weight: 700; font-size: 1rem; line-height: 1.4; }
.check-item.is-done .check-name { color: var(--text-3); text-decoration: line-through; text-decoration-color: #C5CCD4; }
.check-note { font-size: .875rem; color: var(--text-3); margin-top: 3px; line-height: 1.45; }
.group-label { font-size: .8125rem; font-weight: 700; color: var(--text-3); margin: 22px 6px 8px; }

/* Guide detail */
.doc-head { padding: 6px 4px 18px; }
.doc-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.doc-title { font-size: 1.625rem; font-weight: 800; line-height: 1.32; letter-spacing: -0.03em; }
.doc-summary { margin-top: 10px; color: var(--text-2); font-size: 1rem; }
.facts { padding: 6px 0; }
.fact { display: flex; gap: 14px; padding: 14px 18px; align-items: flex-start; }
.fact + .fact { border-top: 1px solid var(--line-2); }
.fact-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-weak); color: var(--primary); flex-shrink: 0; }
.fact-label { font-size: .8125rem; color: var(--text-3); font-weight: 600; }
.fact-value { font-size: 1rem; font-weight: 700; line-height: 1.45; margin-top: 1px; }
.prose { font-size: 1.0625rem; line-height: 1.75; color: #333D4B; }
.prose > *:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.1875rem; font-weight: 800; color: var(--text);
  margin: 30px 0 10px; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
}
.prose h3::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: var(--primary); }
.prose h4 { font-size: 1.0625rem; margin: 18px 0 6px; }
.prose p { margin: 0 0 12px; }
.prose strong { color: var(--text); font-weight: 700; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--yellow) 32%, transparent) 62%); }
.prose ul { list-style: none; padding: 0; margin: 0 0 14px; }
.prose ul li { position: relative; padding-left: 22px; margin: 6px 0; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: .7; }
.prose ol { list-style: none; padding: 0; margin: 4px 0 16px; counter-reset: step; }
.prose ol li {
  counter-increment: step;
  position: relative;
  padding: 2px 0 14px 44px;
  min-height: 34px;
}
.prose ol li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: .875rem; font-weight: 800;
  display: grid; place-items: center;
}
.prose ol li:not(:last-child)::after {
  content: ""; position: absolute; left: 14px; top: 34px; bottom: 2px;
  width: 2px; background: var(--primary-soft);
}
.table-wrap { margin: 6px -4px 16px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.prose table { width: 100%; border-collapse: collapse; font-size: .875rem; line-height: 1.5; overflow-wrap: normal; word-break: keep-all; }
.prose th { background: #F5F7FA; color: var(--text-2); font-weight: 700; text-align: left; }
.prose th, .prose td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 600; color: var(--text); }
.card .chips { margin: 12px 0 0; }
.source {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .875rem; color: var(--text-3);
  padding: 4px 4px 0;
}
.source b { color: var(--text-2); font-weight: 600; }
.check-badge { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-weight: 700; font-size: .8125rem; margin-top: 12px; }
.link-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; border-radius: 18px;
  background: var(--primary-weak);
  color: var(--primary);
  font-weight: 700;
}
.link-card .row-sub { color: color-mix(in srgb, var(--primary) 70%, #fff); }

/* Accordion */
.acc { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.acc + .acc { margin-top: 10px; }
.acc-q { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 18px; font-weight: 700; font-size: 1rem; line-height: 1.45; }
.acc-q .q { color: var(--primary); font-weight: 800; }
.acc-q .chev { margin-left: auto; color: #B0B8C1; transition: transform .2s; }
.acc.is-open .acc-q .chev { transform: rotate(180deg); }
.acc-a { display: none; padding: 0 18px 18px 44px; color: var(--text-2); font-size: .9375rem; line-height: 1.7; }
.acc.is-open .acc-a { display: block; animation: fade .2s ease; }
.acc-a p { margin: 0; }

/* Chips / segments */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip {
  flex-shrink: 0; height: 38px; padding: 0 15px;
  border-radius: 999px;
  background: #fff; color: var(--text-2);
  font-weight: 600; font-size: .9375rem;
  box-shadow: inset 0 0 0 1px var(--line);
}
.chip.is-on { background: var(--text); color: #fff; box-shadow: none; }
.segment { display: flex; background: #E6EAF0; border-radius: 14px; padding: 4px; gap: 4px; }
.segment button { flex: 1; min-height: 42px; border-radius: 11px; font-weight: 700; font-size: .9375rem; color: var(--text-2); }
.segment button.is-on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

/* Branch */
.branch { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; }
.branch + .branch { margin-top: 10px; }
.branch-top { display: flex; align-items: center; gap: 8px; }
.branch-name { font-size: 1.125rem; font-weight: 800; }
.branch-addr { margin-top: 8px; font-size: .9375rem; color: var(--text); }
.branch-dir { margin-top: 4px; font-size: .875rem; color: var(--text-3); display: flex; gap: 6px; }
.branch-note { margin-top: 10px; font-size: .875rem; background: var(--orange-weak); color: var(--orange); padding: 10px 12px; border-radius: 12px; }
.branch-phone { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1rem; color: var(--text); }
.branch-phone svg { color: var(--text-3); }
.branch-actions { display: flex; gap: 8px; margin-top: 14px; }
.branch-actions .btn { flex: 1; }
.info-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow);
}
.info-num { display: block; font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; }
.row .info-num { font-size: 1.0625rem; }
div.row:active { background: none; }

/* Search */
.search-box { position: relative; margin-bottom: 16px; }
.search-box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search-box .input { padding-left: 46px; background: #fff; border-color: transparent; box-shadow: var(--shadow); }
.search-box .input:focus { border-color: var(--primary); }

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-month { font-size: 1.1875rem; font-weight: 800; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow { font-size: .75rem; font-weight: 700; color: var(--text-3); padding: 4px 0 8px; }
.cal-dow:first-child { color: var(--red); }
.cal-day {
  aspect-ratio: 1 / 1; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 600; font-size: .9375rem;
  position: relative;
  transition: background .12s;
}
.cal-day:active { background: var(--line-2); }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--primary-soft); }
.cal-day.is-work { background: var(--primary); color: #fff; }
.cal-day.is-future { color: #C5CCD4; pointer-events: none; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--surface); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.stat span { font-size: .8125rem; color: var(--text-3); }

/* Status timeline */
.timeline { position: relative; }
.tl-item { display: flex; gap: 14px; padding: 4px 0 18px; position: relative; }
.tl-item:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 0; width: 2px; background: var(--line); }
.tl-item.is-done:not(:last-child)::after { background: var(--primary-soft); }
.tl-dot {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: #EEF1F4; color: var(--text-3);
  font-weight: 800; font-size: .875rem;
}
.tl-item.is-done .tl-dot { background: var(--primary); color: #fff; }
.tl-item.is-now .tl-dot { background: #fff; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.tl-title { font-weight: 700; font-size: 1rem; }
.tl-sub { font-size: .875rem; color: var(--text-3); margin-top: 2px; }
.tl-body { flex: 1; min-width: 0; padding-top: 4px; }
.tl-action { margin-top: 10px; }

/* Calculator */
.calc-input { display: flex; align-items: center; gap: 8px; }
.calc-input .input { text-align: center; font-size: 1.5rem; font-weight: 800; }
.step-btn { width: 52px; height: 52px; border-radius: 14px; background: #EEF1F4; display: grid; place-items: center; flex-shrink: 0; }
.big-num { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; font-size: .9375rem; }
.kv + .kv { border-top: 1px solid var(--line-2); }
.kv span:first-child { color: var(--text-2); }
.kv span:last-child { font-weight: 700; text-align: right; }

/* Sheet & toast */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .4); animation: fade .2s ease; }
.sheet {
  position: fixed; z-index: 61;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: var(--max);
  max-height: 85vh; overflow-y: auto;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 10px 20px calc(20px + var(--safe-b));
  animation: sheet-up .26s cubic-bezier(.2, .8, .2, 1);
}
.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 5px; background: #DDE2E8; margin: 0 auto 18px; }
@keyframes sheet-up { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.sheet-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.sheet-text { color: var(--text-2); margin-bottom: 18px; }
.sheet-actions { display: flex; gap: 8px; }
.sheet-actions .btn { flex: 1; }

.toast {
  position: fixed; z-index: 70;
  left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px);
  transform: translate(-50%, 20px);
  max-width: calc(min(100vw, var(--max)) - 40px);
  padding: 12px 18px; border-radius: 14px;
  background: rgba(25, 31, 40, .94); color: #fff;
  font-size: .9375rem; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.empty { text-align: center; padding: 48px 20px; color: var(--text-3); }
.empty svg { margin: 0 auto 12px; color: #C5CCD4; }
.empty-title { font-weight: 700; color: var(--text-2); font-size: 1.0625rem; }

.stack > * + * { margin-top: 12px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.row-actions { display: flex; gap: 8px; }
.row-actions .btn { flex: 1; }
.disclaimer-text { font-size: .875rem; color: var(--text-2); line-height: 1.7; }
.app-ver { text-align: center; font-size: .8125rem; color: var(--text-3); margin-top: 20px; }
