/* 요즘 · 맑은 물 디자인
   배치: 폰 폭 한 줄(최대 600px), 위 안개 유리 머리줄 + 아래 고정 메뉴. 맑은 청록 한 가지 포인트, 판정은 물방울 색 */
:root {
  --bg: #F2F8F9; --bg2: #E2F1F4; --surface: #FFFFFF; --surface2: #F6FAFB;
  --ink: #0B2531; --ink2: #2B4552; --muted: #5E7682; --line: #E0ECEF; --line2: #CCDEE3;
  --aqua: #0D8CA1; --aqua-hi: #63D5E2; --aqua-ink: #FFFFFF; --aqua-text: #0A7689; --aqua-soft: #E1F3F6;
  --true: #16855A; --true-soft: #E2F4EB; --false: #C4443A; --false-soft: #FBE8E5;
  --ctx: #A26C0E; --ctx-soft: #F8EFDB; --pend: #3D60D2; --pend-soft: #E7EDFB;
  --shadow: 0 1px 2px rgba(11, 37, 49, .04), 0 8px 28px rgba(11, 37, 49, .06);
  --shadow-up: 0 -1px 0 var(--line), 0 -8px 24px rgba(11, 37, 49, .04);
  --scrim: rgba(5, 22, 30, .45); --glass: rgba(242, 248, 249, .84);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --r: 18px; --tabs-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #06141B; --bg2: #0B2430; --surface: #0D212B; --surface2: #11293A;
  --ink: #E2F0F3; --ink2: #BCD2D9; --muted: #89A4AF; --line: #173340; --line2: #22424F;
  --aqua: #2DB4C7; --aqua-hi: #85E6F0; --aqua-ink: #032129; --aqua-text: #6AD2E0; --aqua-soft: #0C3440;
  --true: #52C98F; --true-soft: #0F3324; --false: #F27C70; --false-soft: #3A1816;
  --ctx: #E6AE52; --ctx-soft: #33260F; --pend: #8FA7FF; --pend-soft: #1A2550;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .25); --shadow-up: 0 -1px 0 var(--line);
  --scrim: rgba(0, 0, 0, .6); --glass: rgba(6, 20, 27, .82);
  color-scheme: dark;
} }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--ink); letter-spacing: -.005em;
  background: radial-gradient(140% 50% at 50% -12%, var(--bg2), transparent 62%) fixed, var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  word-break: keep-all; overflow-wrap: anywhere;
}
.mono, .hashline, .kv dd, .vlog, .codebox { word-break: break-all; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; border-radius: 8px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
[hidden] { display: none !important; }

.app { max-width: 600px; margin: 0 auto; min-height: 100%; position: relative; padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px) + 12px); }

/* 머리줄 */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  background: var(--bg); background: var(--glass); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
}
.top.lined { box-shadow: 0 1px 0 var(--line); }
.logo { display: flex; align-items: center; gap: 7px; background: none; border: 0; padding: 4px 2px; }
.logo svg { width: 26px; height: 26px; }
.logo .word { font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.top-r { display: flex; align-items: center; gap: 6px; }
.pill { display: flex; align-items: center; gap: 5px; border: 1px solid var(--line2); background: var(--surface); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; color: var(--ink2); }
.pill b { font-family: var(--mono); color: var(--aqua-text); font-weight: 700; }
.iconbtn { position: relative; width: 40px; height: 40px; border: 0; background: none; border-radius: 12px; display: grid; place-items: center; color: var(--ink); }
.iconbtn svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn i { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; border-radius: 9px; padding: 0 4px; background: var(--false); color: var(--surface); font: 700 10px/17px var(--mono); text-align: center; font-style: normal; }

/* 아래 메뉴 */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: center;
  background: var(--surface); box-shadow: var(--shadow-up);
  padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 6px) max(8px, env(safe-area-inset-left, 0px));
}
.tabs-in { width: 100%; max-width: 600px; display: grid; grid-template-columns: repeat(5, 1fr); }
.tab { background: none; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 52px; font-size: 11px; color: var(--muted); position: relative; border-radius: 12px; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab[aria-current="page"] { color: var(--aqua-text); font-weight: 700; }
.tab[aria-current="page"] svg { stroke-width: 2.1; }
.tab .plus { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; color: var(--aqua-ink); background: linear-gradient(160deg, var(--aqua-hi), var(--aqua)); box-shadow: 0 6px 16px rgba(13, 140, 161, .28); }
.tab .plus svg { stroke-width: 2.3; }
.tab .cnt { position: absolute; top: 3px; left: calc(50% + 7px); min-width: 17px; height: 17px; border-radius: 9px; padding: 0 4px; background: var(--pend); color: var(--surface); font: 700 10px/17px var(--mono); }

/* 공통 */
.view { display: block; outline: none; }
.pad { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.h1 { font-size: 24px; font-weight: 800; letter-spacing: -.035em; margin: 0; line-height: 1.3; text-wrap: balance; }
.sub { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.lbl { font-size: 11.5px; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.meta { font-size: 12.5px; color: var(--muted); }
.meta b { font-weight: 600; color: var(--ink2); font-variant-numeric: tabular-nums; }
.group { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.list > * + * { border-top: 1px solid var(--line); }
.pins { margin-bottom: 12px; }
.pinrow { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 11px 16px; width: 100%; }
.pinrow:active { background: var(--surface2); }
.pinrow .pt { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--muted); font-size: 18px; line-height: 1; flex: none; }
.anchor svg, .blk-top > svg { width: 18px; height: 18px; flex: none; color: var(--aqua-text); }
.li .r svg { width: 20px; height: 20px; color: var(--aqua-text); }
.ev .w { text-align: right; font-size: 11px; color: var(--muted); line-height: 1.2; }
.ev .w b { display: block; font: 700 16px/1.2 var(--mono); color: var(--ink); }
.section { padding: 22px 0 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.section h2 { margin: 0; font-size: 16px; font-weight: 750; letter-spacing: -.02em; }
.section span { font-size: 12.5px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.empty { padding: 28px 20px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.6; }
.empty svg { width: 44px; height: 44px; display: block; margin: 0 auto 10px; opacity: .9; }
.err { color: var(--false); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line2); background: var(--surface); border-radius: 14px; padding: 12px 16px; font-weight: 700; font-size: 15px; width: 100%; min-height: 48px; color: var(--ink); }
.btn.primary { border: 0; color: var(--aqua-ink); background: linear-gradient(160deg, var(--aqua-hi) -40%, var(--aqua) 70%); box-shadow: 0 6px 18px rgba(13, 140, 161, .25); }
.btn.soft { border-color: transparent; background: var(--aqua-soft); color: var(--aqua-text); }
.btn.ghost { border-color: transparent; background: none; color: var(--muted); font-weight: 600; }
.btn.danger { color: var(--false); border-color: color-mix(in srgb, var(--false) 45%, transparent); }
.btn.sm { width: auto; min-height: 36px; padding: 7px 12px; font-size: 13.5px; border-radius: 11px; }
.btn:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.row { display: flex; gap: 8px; }
.row > .btn { flex: 1; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .8s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes rot { to { transform: rotate(360deg); } }

/* 판정 물방울 */
.vb { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px 2px 6px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.5; }
.vb svg { width: 13px; height: 13px; flex: none; }
.vb-true { background: var(--true-soft); color: var(--true); }
.vb-false { background: var(--false-soft); color: var(--false); }
.vb-ctx { background: var(--ctx-soft); color: var(--ctx); }
.vb-pend { background: var(--pend-soft); color: var(--pend); }
.vb-talk { background: var(--surface2); color: var(--muted); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.vb-team { background: var(--aqua-soft); color: var(--aqua-text); }
.vb.big { font-size: 14px; padding: 4px 12px 4px 8px; }
.vb.big svg { width: 16px; height: 16px; }

/* 홈 */
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 14px; padding: 0 14px; box-shadow: inset 0 0 0 1px var(--line); margin-top: 4px; }
.search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { border: 0; background: none; padding: 12px 0; width: 100%; font-size: 15px; outline: none; }
.search input::placeholder { color: var(--muted); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px 2px; margin: 0 -16px; scrollbar-width: none; scroll-padding: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; color: var(--ink2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; font-weight: 700; }
.sorts { display: flex; gap: 18px; padding: 12px 2px 10px; }
.sorts button { background: none; border: 0; padding: 4px 0; font-size: 14px; color: var(--muted); }
.sorts button[aria-pressed="true"] { color: var(--ink); font-weight: 750; box-shadow: inset 0 -2px 0 var(--aqua); }
.card { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; padding: 15px 16px; cursor: pointer; width: 100%; }
.card:active { background: var(--surface2); }
.card:focus-visible { outline: 2px solid var(--aqua); outline-offset: -2px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gal { font-size: 12.5px; color: var(--aqua-text); font-weight: 700; }
.tag { font-size: 11px; font-weight: 800; color: var(--aqua-text); background: var(--aqua-soft); border-radius: 5px; padding: 1px 5px; margin-left: 6px; letter-spacing: .02em; }
.card-title { font-size: 16px; font-weight: 650; line-height: 1.45; letter-spacing: -.02em; text-wrap: pretty; overflow-wrap: anywhere; }
.claimline { font-size: 13.5px; color: var(--ink2); background: var(--surface2); border-radius: 10px; padding: 7px 10px; box-shadow: inset 0 0 0 1px var(--line); overflow-wrap: anywhere; }
.prog { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.prog .bar { flex: 1; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.prog .bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--aqua-hi), var(--pend)); }
.more { padding: 14px 0; }
.skel { height: 92px; background: linear-gradient(90deg, var(--surface) 30%, var(--surface2) 50%, var(--surface) 70%); background-size: 300% 100%; animation: shim 1.4s ease infinite; }
@keyframes shim { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* 글 보기 */
.back { display: inline-flex; align-items: center; gap: 2px; background: none; border: 0; padding: 8px 4px; font-size: 14.5px; color: var(--muted); font-weight: 600; }
.back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.article { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.article h1 { margin: 0; font-size: 21px; line-height: 1.4; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere; }
.article .body { font-size: 16px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.veil { position: relative; border-radius: 12px; overflow: hidden; min-height: 150px; }
.veil .body { filter: blur(6px); user-select: none; pointer-events: none; }
.veil-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 12px; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.veil-msg b { color: var(--false); }
.recs { display: flex; justify-content: center; gap: 10px; padding-top: 6px; }
.rec { display: flex; flex-direction: column; align-items: center; min-width: 92px; border: 0; box-shadow: inset 0 0 0 1px var(--line2); border-radius: 16px; background: var(--surface); padding: 9px 14px; font-size: 12.5px; color: var(--muted); }
.rec b { font: 700 19px/1.2 var(--mono); color: var(--ink); }
.rec[aria-pressed="true"].up { box-shadow: inset 0 0 0 1.5px var(--aqua); background: var(--aqua-soft); color: var(--aqua-text); }
.rec[aria-pressed="true"].up b { color: var(--aqua-text); }
.rec[aria-pressed="true"].down { background: var(--surface2); box-shadow: inset 0 0 0 1.5px var(--muted); }
.tools { display: flex; justify-content: flex-end; gap: 4px; }

.claim { margin-top: 12px; padding: 18px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.claim::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--aqua-hi), var(--aqua)); opacity: .9; }
.claim.st-true::before { background: var(--true); } .claim.st-false::before { background: var(--false); } .claim.st-ctx::before { background: var(--ctx); }
.claim-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.claim-text { font-size: 17.5px; font-weight: 750; line-height: 1.5; letter-spacing: -.025em; overflow-wrap: anywhere; }
.tally { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--line); gap: 2px; }
.tally i { display: block; height: 100%; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.tally .t { background: var(--true); } .tally .f { background: var(--false); } .tally .c { background: var(--ctx); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.legend b { font-family: var(--mono); color: var(--ink2); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gauge { background: var(--surface2); border-radius: 12px; padding: 9px 10px; box-shadow: inset 0 0 0 1px var(--line); }
.gauge .k { font-size: 11px; color: var(--muted); font-weight: 600; }
.gauge .v { font: 700 15px/1.3 var(--mono); }
.gauge .v small { font-size: 11px; color: var(--muted); font-weight: 500; }
.gauge.ok .v { color: var(--true); }
.blocklink { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; color: var(--aqua-text); padding: 12px 14px; border-radius: 14px; background: var(--aqua-soft); width: 100%; }
.blocklink .bl { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.blocklink .bl b { font-size: 14.5px; font-weight: 750; }
.blocklink .bl > span { font-size: 12.5px; color: var(--ink2); overflow-wrap: anywhere; }
.blocklink .mono { font-size: 12px; }
.blocklink svg { width: 20px; height: 20px; flex: none; }
.blocklink .chev { color: var(--aqua-text); }
.mine { font-size: 13.5px; background: var(--aqua-soft); color: var(--aqua-text); border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.hist-line { font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line2); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.ev { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 13px 16px; }
.ev.me { background: var(--aqua-soft); }
.ev-title { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.ev-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cmt { padding: 13px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; }
.cmt .who { font-size: 12.5px; color: var(--muted); }
.cmt .who b { color: var(--ink); font-weight: 700; }
.cmt .who .op { color: var(--aqua-text); font-weight: 700; }
.cmt p { margin: 0; font-size: 15px; grid-column: 1; white-space: pre-wrap; overflow-wrap: anywhere; }
.cup { grid-row: 1 / 3; grid-column: 2; align-self: center; border: 0; box-shadow: inset 0 0 0 1px var(--line2); background: var(--surface); border-radius: 10px; padding: 5px 10px; font: 600 12.5px var(--mono); color: var(--muted); }
.cup[aria-pressed="true"] { color: var(--aqua-text); box-shadow: inset 0 0 0 1.5px var(--aqua); }
.cform { display: flex; gap: 8px; padding: 12px 0 8px; position: sticky; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px)); background: var(--bg); }
.cform input { flex: 1; min-width: 0; border: 0; box-shadow: inset 0 0 0 1px var(--line2); border-radius: 14px; padding: 12px 14px; background: var(--surface); font-size: 15px; }
.cform .btn { width: auto; }

/* 검증소 · 체인 · 내 정보 */
.hero { padding: 8px 0 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stat { background: var(--surface); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.stat b { display: block; font: 750 22px/1.2 var(--mono); letter-spacing: -.02em; }
.stat span { font-size: 12px; color: var(--muted); }
.hot { color: var(--false); font-weight: 700; }
.tagline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.chain-state { margin-top: 14px; border-radius: 16px; padding: 14px 16px; font-size: 14px; display: flex; gap: 12px; align-items: center; }
.chain-state.ok { background: var(--true-soft); color: var(--true); }
.chain-state.bad { background: var(--false-soft); color: var(--false); }
.chain-state.idle { background: var(--surface); color: var(--ink2); box-shadow: var(--shadow); }
.chain-state svg { width: 26px; height: 26px; flex: none; }
.vlog { font: 12px/1.6 var(--mono); color: var(--muted); max-height: 160px; overflow: auto; padding: 10px 12px; background: var(--surface2); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.blk { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.blk:active { background: var(--surface2); }
.blk-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.blk-no { font: 700 14px var(--mono); }
.blk-kind { font-size: 11.5px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line2); border-radius: 6px; padding: 0 6px; font-weight: 600; }
.blk-time { margin-left: auto; font: 11.5px var(--mono); color: var(--muted); }
.blk .claim-text { font-size: 14.5px; font-weight: 650; }
.hashline { font: 11.5px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: 12.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.ok-t { color: var(--true); font-weight: 700; } .bad-t { color: var(--false); font-weight: 700; }
.anchor { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.links { display: flex; gap: 8px; flex-wrap: wrap; }
.links a { font-size: 13px; color: var(--aqua-text); font-weight: 700; text-decoration: none; padding: 6px 10px; border-radius: 10px; background: var(--aqua-soft); }

.me-card { padding: 22px 20px 18px; position: relative; overflow: hidden; }
.me-card .wave { position: absolute; inset: auto 0 0 0; height: 60%; opacity: .5; pointer-events: none; }
.me-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; position: relative; }
.big { font: 800 52px/1 var(--mono); letter-spacing: -.04em; color: var(--aqua-text); }
.big small { font: 600 15px var(--font); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.grade { font-size: 15px; font-weight: 750; }
.meter { height: 10px; border-radius: 6px; background: var(--line); margin-top: 16px; position: relative; overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: linear-gradient(90deg, var(--aqua-hi), var(--aqua)); transition: width .6s; }
.ticks { position: relative; height: 18px; font: 11px var(--mono); color: var(--muted); margin-top: 4px; }
.ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ticks span:first-child { transform: none; } .ticks span:last-child { transform: translateX(-100%); }
.mystats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; position: relative; }
.mystats div { border-top: 1px solid var(--line); padding-top: 10px; font-size: 12px; color: var(--muted); }
.mystats b { display: block; font: 750 18px/1.3 var(--mono); color: var(--ink); }
.glist > div { padding: 12px 16px; font-size: 14px; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; }
.glist > div.on { background: var(--aqua-soft); }
.glist b { font-weight: 750; }
.glist span { color: var(--ink2); }
.li { padding: 13px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14.5px; }
.li.link { cursor: pointer; }
.li .r { color: var(--muted); font-size: 13px; text-align: right; flex: none; }
.li .l { min-width: 0; overflow-wrap: anywhere; }
.delta { font: 750 14px var(--mono); }
.delta.up { color: var(--true); } .delta.down { color: var(--false); }
.noti { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; padding: 14px 16px; font-size: 14.5px; width: 100%; }
.noti i { width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; }
.noti.unread i { background: var(--aqua); }
.noti small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* 처음 화면 */
.welcome { min-height: calc(100vh - 140px); display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-top: 8px; padding-bottom: 24px; }
.welcome .drop { width: 76px; height: 76px; }
.welcome h1 { margin: 0; font-size: 34px; font-weight: 850; letter-spacing: -.05em; line-height: 1.2; }
.welcome h1 span { color: var(--aqua-text); }
.welcome .lead { margin: 0; font-size: 16.5px; color: var(--ink2); line-height: 1.65; text-wrap: pretty; }
.promise { display: flex; flex-direction: column; }
.promise > div { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px 16px; align-items: start; }
.promise .ic { width: 36px; height: 36px; border-radius: 12px; background: var(--aqua-soft); display: grid; place-items: center; color: var(--aqua-text); }
.promise .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.promise b { display: block; font-size: 15px; }
.promise span { font-size: 13.5px; color: var(--muted); }
.steps { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.steps div { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.steps div.on { color: var(--ink); font-weight: 650; }
.steps div.done { color: var(--true); }
.steps svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* 입력 · 시트 */
.form { display: flex; flex-direction: column; gap: 16px; padding-top: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink2); }
.field input, .field select, .field textarea { font-weight: 400; font-size: 16px; color: var(--ink); border: 0; box-shadow: inset 0 0 0 1px var(--line2); border-radius: 14px; padding: 13px 14px; background: var(--surface); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus, .cform input:focus, .search:focus-within { outline: none; box-shadow: inset 0 0 0 2px var(--aqua); }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.65; }
.field small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.field small.bad { color: var(--false); font-weight: 700; }
.field small.good { color: var(--true); font-weight: 700; }
.count { align-self: flex-end; font: 11.5px var(--mono); color: var(--muted); margin-top: -2px; }
.switch { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; background: var(--surface); border-radius: 16px; padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--line2); cursor: pointer; }
.switch input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--aqua); flex: none; }
.switch b { display: block; font-weight: 700; }
.switch small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.sheet-wrap { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.sheet-bg { position: absolute; inset: 0; background: var(--scrim); border: 0; padding: 0; }
.sheet { position: relative; width: 100%; max-width: 600px; background: var(--bg); border-radius: 26px 26px 0 0; padding: 10px max(18px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 18px) max(18px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 14px; max-height: 92vh; overflow-y: auto; animation: up .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(48px); opacity: .3; } to { transform: none; opacity: 1; } }
.grab { width: 42px; height: 5px; border-radius: 3px; background: var(--line2); margin: 0 auto 2px; }
.sheet h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.quote { margin: 0; font-size: 14.5px; color: var(--ink2); border-left: 3px solid var(--aqua-hi); padding: 2px 0 2px 12px; overflow-wrap: anywhere; }
.seg { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; grid-template-columns: repeat(3, 1fr); min-width: 0; }
.seg legend { font-size: 13.5px; font-weight: 700; color: var(--ink2); margin-bottom: 6px; padding: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.seg span { display: block; text-align: center; border-radius: 14px; padding: 12px 4px; font-size: 15px; font-weight: 700; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line2); }
.seg input:focus-visible + span { outline: 2px solid var(--aqua); outline-offset: 2px; }
.seg input:disabled + span { opacity: .35; }
.seg .o-true input:checked + span { background: var(--true-soft); color: var(--true); box-shadow: inset 0 0 0 2px var(--true); }
.seg .o-false input:checked + span { background: var(--false-soft); color: var(--false); box-shadow: inset 0 0 0 2px var(--false); }
.seg .o-ctx input:checked + span { background: var(--ctx-soft); color: var(--ctx); box-shadow: inset 0 0 0 2px var(--ctx); }
.seg .o-st input:checked + span { background: var(--aqua-soft); color: var(--aqua-text); box-shadow: inset 0 0 0 2px var(--aqua); }
.hint { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.hint b { color: var(--ink); font-family: var(--mono); }
.codebox { width: 100%; min-height: 110px; font: 12px/1.5 var(--mono); border: 0; box-shadow: inset 0 0 0 1px var(--line2); border-radius: 12px; padding: 10px 12px; background: var(--surface); resize: vertical; overflow-wrap: anywhere; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px) + 16px); z-index: 50; width: calc(100% - 32px); max-width: 560px; background: var(--ink); color: var(--bg); border-radius: 16px; padding: 13px 16px; font-size: 14.5px; line-height: 1.5; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); animation: tin .28s cubic-bezier(.2, .8, .2, 1); user-select: text; }
@keyframes tin { from { transform: translate(-50%, 16px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.fresh { animation: pop .5s ease; }
@keyframes pop { from { transform: translateY(6px); opacity: .2; } to { transform: none; opacity: 1; } }
.install { display: flex; gap: 12px; align-items: center; padding: 14px 16px; }
.install .ic { width: 42px; height: 42px; flex: none; }
.install div { flex: 1; min-width: 0; font-size: 13.5px; color: var(--muted); }
.install b { display: block; color: var(--ink); font-size: 15px; }
.foot { text-align: center; font-size: 12px; color: var(--muted); padding: 24px 0 8px; line-height: 1.7; }

@media (min-width: 640px) { .app { padding-top: 8px; } }
@media (max-width: 340px) { .gauges, .stats { grid-template-columns: 1fr 1fr; } .h1 { font-size: 21px; } .big { font-size: 44px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
