:root {
  --bg: #F4F6F9; --card: #FFFFFF; --line: #DDE3EA; --line2: #EEF1F5; --ink: #142033; --ink2: #3A4A60; --mut: #5A6577;
  --pri: #1F4FB8; --pri2: #163A8A; --navy: #0F1B2D; --navy2: #24395C;
  --color-active: #1F4FB8;
  --chart: #8FB0F0; --chart-ink: #1F3F8F; --chart-rain: #5B8DEF;
  --dash: #9AA6B5;
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Noto Sans KR', system-ui, -apple-system, 'Malgun Gothic', sans-serif; font-size: 14px; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--pri); } a:hover { color: var(--pri2); }
.num, .kpi .val, .home-metric .val, .cat-stat b, .cat-kpis b, table.t .num,
.hbar .v, .voice-n, .stt-scale-tax b, .stt-scale-kpis b { font-variant-numeric: tabular-nums; }
.time, .asof, td.time { font-variant-numeric: normal; font-feature-settings: normal; }
h1 { margin: 4px 0 0; font-size: 26px; font-weight: 700; }
h2, h3 { margin: 0; }

/* 상단 바 */
.topbar { position: sticky; top: 0; z-index: 2000; background: var(--navy); color: #fff; padding: 0 24px; }
.topbar-in { max-width: 1440px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; min-height: 64px; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand b { display: block; font-size: 16px; line-height: 20px; }
.brand small { display: block; font-size: 12px; color: #AFC0D8; line-height: 16px; }
.logo { width: 32px; height: 32px; border-radius: 8px; background: #3B6FE0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.mainnav { display: flex; flex-wrap: wrap; gap: 2px; flex: 1 1 auto; }
.nav { color: #C9D5E6; text-decoration: none; padding: 10px 11px; border-radius: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav:hover { color: #fff; background: #1A2B45; }
.nav.on { background: var(--navy2); color: #fff; }
.topmeta { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: #D5DFEC; white-space: nowrap; }
.asof { letter-spacing: .02em; opacity: .92; }
.asof .lab { color: #AFC0D8; margin-right: 6px; font-size: 12px; }
.live { display: flex; align-items: center; gap: 6px; } .live i { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; }
.me { display: flex; align-items: center; gap: 8px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: #C2185B; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; }

/* 레이아웃 */
.wrap { max-width: 1440px; margin: 0 auto; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.foot { font-size: 12px; padding: 8px 0 24px; color: var(--mut); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.crumb { font-size: 13px; color: var(--mut); }
.path-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 12px; font-size: 13px; color: var(--mut); line-height: 1.4; }
.path-crumb[hidden] { display: none !important; }
.path-crumb a { color: var(--pri); text-decoration: none; font-weight: 500; }
.path-crumb a:hover { text-decoration: underline; }
.path-crumb .sep { color: #B0BAC8; user-select: none; }
.path-crumb .here { color: var(--ink2); font-weight: 600; }
.crumb-switch { position: relative; display: inline-flex; align-items: center; }
.crumb-switch > summary { list-style: none; cursor: pointer; color: var(--pri); font-weight: 700; font-size: 12px; padding: 2px 4px; line-height: 1; user-select: none; }
.crumb-switch > summary::-webkit-details-marker { display: none; }
.crumb-switch-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 160px; max-height: 320px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 8px 24px rgba(20, 30, 40, .12); display: flex; flex-direction: column; gap: 2px; }
.crumb-switch-menu a { color: var(--ink2) !important; font-weight: 500; text-decoration: none; padding: 7px 10px; border-radius: 8px; }
.crumb-switch-menu a:hover, .crumb-switch-menu a.on { background: #E8F0FB; color: var(--pri) !important; }
.lead { margin: 6px 0 0; font-size: 14px; color: var(--mut); }
.row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.row.map-row { align-items: stretch; }
.col-main { flex: 999 1 640px; min-width: 0; } .col-side { flex: 1 1 360px; min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.grid-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.flex { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }

/* 카드 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; min-width: 0; }
.card.p0 { padding: 0; overflow: hidden; }
.card.soft { background: #F5F8FE; border-color: #BFD0F2; }
.card.gray { background: #F7F9FB; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.card.p0 > .card-head { padding: 16px 20px; }
.ttl { margin: 0; font-size: 16px; font-weight: 700; }
.mut { color: var(--mut); } .small { font-size: 13px; } .s13 { font-size: 13px; } .b { font-weight: 700; }
.dash, .na { color: var(--dash); }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.notice { font-size: 12px; color: var(--mut); margin: 12px 0 0; }
.kpi { padding: 16px; }
.kpi .lab { font-size: 13px; color: var(--mut); }
.kpi .val { font-size: 28px; font-weight: 700; margin-top: 6px; }
.kpi .val small { font-size: 13px; color: var(--mut); font-weight: 400; margin-left: 4px; }
.kpi .sub { font-size: 12px; color: var(--mut); margin-top: 4px; }
.tone-red { color: #C42B2B; } .tone-orange { color: #B45309; } .tone-green { color: #18794E; } .tone-blue { color: var(--pri); }

/* 버튼·입력 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid #C9D2DD; background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #F7F9FB; color: var(--ink); }
.btn.pri { background: var(--pri); border-color: var(--pri); color: #fff; } .btn.pri:hover { background: var(--pri2); }
.btn.red { background: #C42B2B; border-color: #C42B2B; color: #fff; }
.btn.sm { min-height: 32px; font-size: 13px; padding: 0 10px; }
.btn.block { width: 100%; }
.input { min-height: 40px; border: 1px solid #C9D2DD; border-radius: 8px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; }
.fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid #C9D2DD; background: #fff; font-size: 14px; }
.fchip select, .fchip input { border: 0; font: inherit; background: transparent; color: var(--ink); }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--mut); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 8px; background: #EEF3FC; color: #163A8A; font-size: 13px; }
.chip .k { font-size: 12px; opacity: .8; }
.chip.solid { background: var(--pri); color: #fff; }
.chip.ghost { background: transparent; border: 1px dashed #9AAAC0; color: var(--ink2); }

/* 배지 */
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.b-red { color: #C42B2B; background: #FDECEC; min-width: 44px; text-align: center; }
.b-orange { color: #9A3412; background: #FFEDD5; min-width: 44px; text-align: center; }
.b-yellow { color: #854D0E; background: #FEF08A; min-width: 44px; text-align: center; }
.b-green { color: #18794E; background: #E6F4EC; min-width: 44px; text-align: center; }
.b-gray { color: var(--ink2); background: #EEF1F5; } .b-blue { color: var(--pri); background: #E3EAF6; }
.b-purple { color: #6B4EA8; background: #F1ECF9; } .b-teal { color: #0F6E6E; background: #E0F2F1; }
.pill { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px; }

/* 탭 */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { padding: 12px 16px; font-size: 14px; color: var(--mut); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--pri); }
.tab .cnt { font-size: 12px; padding: 1px 7px; border-radius: 999px; margin-left: 4px; background: #EEF1F5; color: var(--ink2); font-weight: 500; }
.tab.on .cnt { background: var(--pri); color: #fff; }
.seg { display: inline-flex; gap: 4px; background: #E6EAF0; padding: 4px; border-radius: 10px; }
.seg a { min-height: 36px; padding: 0 14px; border-radius: 8px; display: inline-flex; align-items: center; font-size: 14px; color: var(--mut); text-decoration: none; }
.seg a.on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(15,27,45,.12); }
.fold summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before { content: "▸"; color: var(--mut); }
.fold[open] summary::before { content: "▾"; }
.fold .pills { margin-top: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; text-decoration: none; background: #fff; color: var(--ink); border: 1px solid #C9D2DD; }
.pills a.on { background: var(--color-active); color: #fff; border-color: var(--color-active); }
.pills .n { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: #EEF1F5; color: var(--ink2); }
.pills a.on .n { background: rgba(255,255,255,.22); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* 표 */
.table-wrap { overflow-x: auto; }
table.t { border-collapse: collapse; width: 100%; font-size: 13px; }
table.t th { text-align: left; font-weight: 500; color: var(--mut); font-size: 12px; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #F7F9FB; }
table.t td { padding: 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; vertical-align: middle; }
table.t th.num, table.t td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.t thead th { position: sticky; top: 0; z-index: 2; }
table.t td a.row-link { color: var(--ink2); text-decoration: none; font-weight: 500; }
table.t tr:hover td a.row-link { color: var(--pri); text-decoration: underline; }
table.t tr.hl td { background: #F5F8FE; }
table.t tr.total td { background: #F7F9FB; font-weight: 700; }
table.t.center td, table.t.center th { text-align: center; }
td .s { display: block; font-size: 12px; color: var(--mut); margin-top: 2px; }
.warn { color: #B45309; font-weight: 700; } .danger { color: #C42B2B; font-weight: 700; }
.na { display: inline-block; font-size: 11px; color: var(--mut); background: #EEF1F5; padding: 2px 6px; border-radius: 4px; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; }

/* 막대 */
.track { height: 8px; background: var(--line2); border-radius: 4px; } .fill { height: 8px; border-radius: 4px; }
.hbar { display: grid; grid-template-columns: var(--lw, 120px) minmax(0, 1fr) var(--vw, 110px); gap: 10px; align-items: center; font-size: 13px; }
.hbar .track, .hbar .fill { height: 12px; }
.hbar .v { text-align: right; font-weight: 700; }
.vchart { display: grid; gap: 6px; align-items: end; border-bottom: 1px solid #C9D2DD; margin-top: 14px; }
.vchart .col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 3px; }
.vchart .col span { font-size: 11px; }
.vchart .bar { width: 100%; max-width: 44px; border-radius: 4px 4px 0 0; }
.vlabels { display: grid; gap: 6px; margin-top: 4px; } .vlabels span { font-size: 11px; color: var(--mut); text-align: center; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--mut); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.stackbar { display: flex; height: 16px; border-radius: 6px; overflow: hidden; gap: 2px; }

/* 기타 */
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.kv > div > span:first-child { display: block; font-size: 12px; color: var(--mut); }
.kv > div > span:last-child { display: block; font-size: 18px; font-weight: 700; }
.list-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; background: #F7F9FB; border-radius: 8px; font-size: 13px; }
.box { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.secnav { display: flex; gap: 2px; overflow-x: auto; padding: 6px; }
.secnav a { color: var(--ink2); text-decoration: none; padding: 10px 12px; border-radius: 8px; white-space: nowrap; }
.secnav a:hover { background: #EEF1F5; }
.mapbox { position: relative; height: 560px; border-radius: 10px; overflow: hidden; background: #d5e7f2; }
#ops-map { height: 560px; width: 100%; }
.cluster { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.cluster .c { border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(15,27,45,.3); }
.cluster .n { font-size: 12px; font-weight: 500; margin-top: 2px; }
.alert-item { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-decoration: none; color: var(--ink); }
.alert-item:hover { border-color: #9AAAC0; color: var(--ink); }
.alert-item.on { border: 2px solid var(--pri); background: #EEF3FC; }
.step { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 10px; background: #F7F9FB; border: 1px solid var(--line); list-style: none; }
.step .num { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: #DDE3EA; color: var(--ink2); }
.step.done { background: #E6F4EC; border-color: #B9DFC9; } .step.done .num { background: #18794E; color: #fff; }
.step.now { background: #EEF3FC; border: 2px solid var(--pri); } .step.now .num { background: var(--pri); color: #fff; }
.lane { position: relative; flex: 1; height: 26px; background: #F4F6F9; border-radius: 6px; overflow: hidden; }
.lane .future { position: absolute; left: 44.1%; right: 0; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, #EEF1F5 0 6px, #F7F9FB 6px 12px); }
.lane .now { position: absolute; left: 44.1%; top: 0; bottom: 0; width: 2px; background: #C42B2B; }
.lane .bd { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; min-width: 3px; }
.lane .st { position: absolute; bottom: 3px; width: calc(4.16% - 2px); margin-left: 1px; background: #18794E; border-radius: 2px 2px 0 0; }
.habit-cell { height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.h-O { background: #E6F4EC; color: #18794E; } .h-X { background: #FEF3E2; color: #B45309; } .h-- { background: #EEF1F5; }
.heat { padding: 8px; border-radius: 6px; }
@media (max-width: 640px) { .wrap { padding: 16px; } .topbar { padding: 0 16px; } }

/* 데이터 카탈로그 */
.cat-hero { background: var(--navy); color: #fff; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.cat-hero h2 { margin: 0; font-size: 16px; color: #fff; }
.cat-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.cat-kpis span, .cat-note, .cat-hero small { color: #AFC0D8; font-size: 12px; }
.cat-kpis b { display: block; font-size: 22px; margin-top: 4px; }
.cat-trend { position: relative; height: 168px; }
.cat-trend svg { position: absolute; left: 0; right: 0; top: 0; height: 140px; width: 100%; }
.cat-trend .cat-bars.fit { overflow: hidden; gap: 2px; height: 158px; padding-bottom: 18px; box-sizing: border-box; }
.cat-trend .cat-bar { flex: 1 1 0; min-width: 0; position: relative; }
.cat-trend .cat-bar span { position: absolute; left: 0; bottom: -16px; color: #AFC0D8; font-size: 9px; white-space: nowrap; }
.cat-trend .cat-bar span.end { left: auto; right: 0; }
.cat-trend polyline, .cat-line polyline, .cat-line path { fill: none; stroke: #7EB6FF; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dist-plot.line { position: relative; }
.dist-plot.line .cat-line { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; border-radius: 0; }
.dist-plot.line .cat-line path { vector-effect: non-scaling-stroke; }
.cat-layout { display: flex; gap: 20px; align-items: flex-start; }
.cat-side { width: 270px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.cat-side fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cat-side legend { font-weight: 700; margin-bottom: 4px; }
.cat-side label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; }
.cat-side select, .cat-inline select, .cat-side input[type="date"], .cat-inline input[type="date"] { font: inherit; font-weight: 400; min-height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: #fff; }
.cat-check { flex-direction: row !important; align-items: center; font-weight: 500 !important; gap: 8px; }
.cat-check em { margin-left: auto; color: var(--mut); font-style: normal; font-size: 12px; }
.cat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.cat-card { display: flex; flex-direction: column; gap: 12px; }
.cat-stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.cat-stat b { font-size: 28px; }
.cat-stat span, .cat-hide { color: var(--mut); }
.cat-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.cat-seg a { text-decoration: none; color: var(--ink2); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.cat-seg a.on { background: var(--color-active); border-color: var(--color-active); color: #fff; }
.btn.is-off { pointer-events: none; opacity: .62; color: var(--ink2); border-color: #D5DDE6; }
.cat-bars { display: flex; align-items: stretch; gap: 4px; height: 140px; overflow-x: auto; padding: 8px 0 22px; box-sizing: border-box; }
.cat-bars.fit { overflow: hidden; }
.cat-bars.fit .cat-bar { flex: 1 1 0; min-width: 0; }
.cat-bars.tall { height: 160px; }
.cat-bars.has-pct { padding-bottom: 34px; }
.cat-bar { flex: 1 0 18px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; position: relative; padding: 0 0 18px; box-sizing: border-box; }
.cat-bars.has-pct .cat-bar { padding-bottom: 30px; }
.cat-bar i { display: block; width: 100%; min-height: 0; background: var(--chart); border-radius: 3px 3px 0 0; }
.cat-bar span, .cat-bar em,
.posture-col span, .posture-col em { position: absolute; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--mut); font-style: normal; line-height: 1.1; }
.cat-bar span, .posture-col span { bottom: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-bars.has-pct .cat-bar span, .posture-col span { bottom: 14px; }
.cat-bar em, .posture-col em { top: auto; bottom: 0; }
.posture-bars { display: flex; align-items: stretch; gap: 8px; height: 100%; padding: 4px 0 34px; box-sizing: border-box; }
.posture-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; padding: 0 0 30px; box-sizing: border-box; gap: 4px; }
.posture-ico { object-fit: contain; display: block; margin: 0 auto 2px; }
.posture-ico[src*="lie.svg"] { width: 18px; height: 3.25px; margin-top: 11.52px; }
.posture-ico[src*="stand.svg"] { width: 7.25px; height: 14.77px; }
.posture-ico[src*="sit.svg"] { width: 7.77px; height: 13.97px; margin-top: 0.8px; }
.posture-ico[src*="walk.svg"] { width: 9.52px; height: 14.54px; margin-top: 0.23px; }
.posture-ico[src*="fall.svg"] { width: 13.48px; height: 13.56px; margin-top: 1.21px; }
.posture-ico[src*="off.svg"] { width: 7.88px; height: 10.25px; margin-top: 4.52px; }
.posture-track { width: 100%; flex: 1 1 auto; min-height: 48px; display: flex; align-items: flex-end; }
.posture-track i { display: block; width: 100%; background: var(--chart); border-radius: 3px 3px 0 0; }
.posture-col img { width: 22px !important; height: 22px !important; margin: 0 !important; object-fit: contain; filter: grayscale(1) opacity(.75); flex: none; }
.posture-col img[src*="fall.svg"] { filter: none; }
.cat-line { width: 100%; height: 130px; background: #F7F9FB; border-radius: 8px; }
.cat-hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; height: 120px; }
.cat-hours.tall { height: 180px; }
.cat-hours { padding-bottom: 20px; box-sizing: border-box; }
.cat-hour { position: relative; background: transparent; border-radius: 3px; }
.cat-hour i { background: var(--chart) !important; }
.cat-hour b { background: var(--chart-ink) !important; }
.cat-hour span { position: absolute; left: 0; right: 0; bottom: -18px; text-align: center; font-size: 12px; color: var(--mut); }
.cat-words { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.cat-words li { background: #F4F0FA; border-radius: 999px; padding: 4px 8px; font-size: 12px; }
.cat-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cat-dates { display: flex; gap: 6px; overflow-x: auto; }
.cat-date { width: 46px; flex: none; text-align: center; font-size: 11px; color: var(--mut); }
.cat-date.rain .cat-plot { outline: 2px solid #3B82C4; }
.cat-plot { position: relative; height: auto; min-height: 0; min-width: 0; overflow: hidden; box-sizing: border-box; background: #F7F9FB; border-radius: 6px; }
.cat-weather { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.cat-weather article { background: #F7F9FB; border-radius: 10px; padding: 12px; }
.cat-weather h3 { font-size: 14px; }
.cat-item-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; background: #F7F9FC; border-color: #E4EAF2; }
.cat-item-intro-col h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--pri); }
.cat-item-intro-col p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink2); }
.cat-period { display: block; }
.cat-period form { display: flex; flex-direction: column; gap: 12px; }
.cat-period-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cat-period-title { display: flex; flex-direction: column; gap: 2px; min-width: 200px; }
.cat-period-title b { font-size: 15px; color: var(--ink); }
.cat-period-title span { font-size: 12px; color: var(--mut); font-weight: 400; }
.cat-period-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; flex: 1; min-width: 0; }
.cat-period-item .cat-period-top { align-items: center; }
.cat-period-span { white-space: nowrap; }
@media (max-width: 800px) {
  .cat-item-intro { grid-template-columns: 1fr; gap: 18px; }
}
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pills button { font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); background: #fff; border: 1px solid #D5DDE6; border-radius: 999px; min-height: 36px; padding: 0 14px; }
.cat-pills button.on { background: var(--color-active); border-color: var(--color-active); color: #fff; }
.cat-period-dates { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cat-period-dates[hidden] { display: none !important; }
.cat-period-dates label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); font-weight: 500; }
.cat-period-dates input { font: inherit; font-weight: 400; min-height: 36px; border: 1px solid #D5DDE6; border-radius: 8px; padding: 0 10px; background: #fff; color: var(--ink); }
.cat-period-more { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.cat-period-more[hidden] { display: none; }
.cat-period-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.cat-period-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; }
.cat-filter form { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; }
.cat-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--mut); }
.cat-field small { font-weight: 400; }
.cat-field select, .cat-field input[type="date"] { font: inherit; font-weight: 400; min-height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: #fff; color: var(--ink); min-width: 120px; }
.cat-view { margin-left: auto; flex-direction: row; align-items: flex-end; gap: 10px; }
.cat-seg.ink { display: inline-flex; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cat-seg.ink a { border: 0; border-radius: 0; border-right: 1px solid var(--line); }
.cat-seg.ink a:last-child { border-right: 0; }
.cat-seg.ink a.on { background: var(--color-active); border-color: var(--color-active); color: #fff; }
.dist { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; }
.dist-y { display: flex; flex-direction: column; justify-content: space-between; height: 220px; font-size: 12px; text-align: right; color: var(--mut); }
.dist-y.labs { height: auto; gap: 6px; }
.dist-plot, .dist-meta { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; }
.dist-plot { height: 220px; border-bottom: 1px solid #C9D2DD; background: repeating-linear-gradient(to top, transparent 0 54px, #EEF1F5 54px 55px); }
.dist-col { position: relative; height: 100%; }
.dist-col i { position: absolute; left: 12%; right: 12%; border-radius: 3px; background: var(--chart); }
.dist-col b { position: absolute; left: 4%; right: 4%; height: 3px; border-radius: 2px; background: var(--chart-ink); }
.dist-meta { text-align: center; font-size: 12px; }
.dist-meta div { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.dist-meta .end { color: #C2185B; }
.dist-legend { display: flex; gap: 12px; font-size: 12px; color: var(--mut); }
.dist-legend i { width: 10px; height: 10px; display: inline-block; background: var(--chart); margin-right: 4px; }
.dist-legend i.stt { background: var(--chart); }
.dist-legend i.rain { background: var(--chart-rain); box-shadow: inset 0 0 0 2px #1F4FB8; background-image: repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(255,255,255,.35) 2px, rgba(255,255,255,.35) 4px); }
.dist-legend i.rain.stt { background: var(--chart-rain); }
.wx { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.wx-sun { background: #FEF3C7; color: #92400E; }
.wx-cloud { background: #E5E7EB; color: #374151; }
.wx-rain { background: #DBEAFE; color: #1E40AF; }
.wx-snow { background: #EDE9FE; color: #5B21B6; }
.cat-split, .cat-stack { display: flex; flex-direction: column; gap: 18px; }
.wx-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(140px, auto); gap: 10px; align-items: center; }
.wx-track { position: relative; height: 18px; background: #EEF1F5; border-radius: 4px; }
.wx-track.is-empty { opacity: .45; }
.wx-none { background: #EEF1F5; color: var(--dash); }
.wx-track i { position: absolute; top: 2px; height: 14px; border-radius: 3px; background: var(--chart); }
.wx-track b { position: absolute; top: 0; width: 4px; height: 18px; border-radius: 2px; background: var(--chart-ink); }
.word-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.word-cols article { border: 1px solid #EEF1F5; border-radius: 10px; padding: 14px; }
.word-list { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.word-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 42px; gap: 8px; align-items: center; font-size: 12px; }
.word-row i { display: block; height: 10px; border-radius: 4px; background: #6B4EA8; }
.voice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.voice-card, .voice-scenes article { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.voice-card.life { background: #F7F5FC; border-color: #E4DCF3; }
.voice-card h3, .voice-scenes h3 { margin: 0; font-size: 16px; }
.voice-n, .voice-scenes b { display: block; font-size: 26px; margin: 6px 0; }
.voice-meta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 10px 0; }
.voice-meta div { background: #F7F9FB; border-radius: 8px; padding: 6px 8px; }
.voice-card.life .voice-meta div { background: #fff; }
.voice-meta dt { color: var(--mut); font-size: 11px; }
.voice-meta dd { margin: 2px 0 0; font-weight: 700; }
.voice-scenes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 900px) {
  .cat-layout, .cat-split, .voice-scenes { grid-template-columns: 1fr; flex-direction: column; }
  .cat-side { width: 100%; }
  .cat-view { margin-left: 0; }
}

.grid-kpi.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-kpi.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-kpi.five .val { font-size: 22px; }
.grid-kpi.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-kpi.six .val { font-size: 22px; }
.home-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: -14px 0 0; }
.home-title h1 { margin: 0; }
.home-title .home-lead { margin: 0; font-size: 13px; }
.home-metrics-bottom { margin-top: 14px; }
.home-search-card { margin-bottom: 12px; }
.home-search-label { flex: 1 1 420px; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border: 2px solid var(--pri); border-radius: 10px; }
.home-search-label input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 17px; background: transparent; }
.home-cat-main { margin-top: 8px; }
.home-board { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
/* off: JS가 지도 카드 높이에 남색을 맞춤. on: 남색만 아래로 늘어남 */
.row.map-row.home-row { align-items: flex-start; gap: 14px; }
.home-hold {
  margin: 0; flex: 1 1 0; min-width: 0; align-self: flex-start;
  display: flex; flex-direction: column; box-sizing: border-box;
}
.home-hold .cat-hold {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 16px 48px;
  flex: 1; align-items: start; min-height: 0; overflow: hidden;
}
.home-row.tenure-detail-on .home-hold { height: auto !important; max-height: none !important; overflow: visible; }
.home-row.tenure-detail-on .home-hold .cat-hold { overflow: visible; }
.home-hold .cat-tenure-note { margin-bottom: 8px; }
.home-hold .cat-years { gap: 8px; max-height: none; overflow: visible; }
.home-hold .cat-year-plot { height: 8px; }
.home-hold .cat-cover-list { max-height: none; overflow: visible; gap: 5px; }
.home-hold .cat-cover-track { height: 8px; }
.home-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.home-metric { display: flex; flex-direction: column; gap: 4px; min-height: 96px; text-decoration: none; color: inherit; }
.home-metric:hover { border-color: var(--pri); color: inherit; }
.home-metric .lab { font-size: 13px; color: var(--mut); }
.home-metric .val { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.home-metric .val small { margin-left: 2px; font-size: 12px; font-weight: 500; color: var(--mut); }
.home-metric .sub, .home-metric .cmp, .home-metric .go { font-size: 12px; color: var(--mut); }
.home-metric .go { color: var(--pri); font-weight: 700; margin-top: auto; }
.home-metric .cmp { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line2); }
.home-cluster { background: transparent; border: 0; }
.home-map-col { flex: 0 0 480px; width: 480px; max-width: 480px; min-width: 0; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.home-map-col .card-head { gap: 4px; }
.home-map-col .mt12 { margin-top: 0; }
.home-map-col .notice { margin: 0; font-size: 11px; line-height: 1.35; }
.home-row { flex-wrap: nowrap; }
.home-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.home-search, .home-more { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 10px; }
.home-search { background: var(--pri); border: 2px solid var(--pri); color: #fff; }
.home-search:hover { background: var(--pri2); border-color: var(--pri2); color: #fff; }
.home-more { background: transparent; border: 0; color: var(--pri); font-weight: 700; min-height: auto; padding: 0; font-size: 15px; }
.home-more:hover { background: transparent; color: var(--pri2); text-decoration: underline; }
.home-stat-title, .home-map-col .ttl { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.home-metric .val small { margin-left: 4px; }
.chip-parsed { background: #E8F0FF; color: #163A8A; text-decoration: none; border: 0; }
.chip-parsed:hover { background: #D7E5FF; color: #163A8A; text-decoration: none; }
.chip-example { border-radius: 999px; background: #F7F9FB; }
.home-cluster { background: transparent !important; border: none !important; }
.home-pin {
  width: 100%; height: 100%; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(15,27,45,.35);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  background: #1F4FB8;
}
.home-pin.s1 { font-size: 11px; background: #3B6FE0; }
.home-pin.s2 { font-size: 12px; background: #1F4FB8; }
.home-pin.s3 { font-size: 13px; background: #1A449E; }
.home-pin.s4 { font-size: 14px; background: #163A8A; }
.home-pin.s5 { font-size: 15px; background: #0F2A66; }
#map-full { right: 12px !important; top: 12px !important; bottom: auto !important; }
.leaflet-disabled { opacity: .55 !important; filter: grayscale(.2); outline: 1px dashed #9AAAC0; }
#home-box.mapbox { width: 100%; height: auto; aspect-ratio: 480 / 400; }
#home-map { height: 100%; width: 100%; }
#home-people { scroll-margin-top: 96px; }
#home-box.mapbox:fullscreen, #home-box.mapbox:-webkit-full-screen { height: 100vh; width: 100%; aspect-ratio: auto; border-radius: 0; }
#home-box.mapbox:fullscreen #home-map, #home-box.mapbox:-webkit-full-screen #home-map { height: 100%; }
@media (max-width: 1100px) {
  .home-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .home-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .home-row { flex-wrap: wrap; }
  .home-map-col { flex: 1 1 100%; width: 100%; max-width: none; }
  .home-hold .cat-hold { grid-template-columns: 1fr; }
}
.tone-pri { color: var(--pri); }
@media (max-width: 720px) { .home-metrics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .home-metrics { grid-template-columns: 1fr; } }
.side-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.side-stack .card { flex: 1 1 auto; }
.stt-sources { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; color: var(--mut); font-size: 13px; }
.stt-sources .tag { border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.stt-sources .tag.stt { background: #E8F1FB; color: #1F4FB8; }
.stt-sources .tag.voice { background: #F3EEF9; color: #6B4EA8; }
.stt-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: 12px; }
.stt-cloud { position: relative; min-height: 360px; }
.stt-cloud canvas { display: block; width: 100%; height: 360px; }
.cat-cloud { position: relative; min-height: 180px; }
.cat-cloud canvas { display: block; width: 100%; }
.cat-seg.ink button { font: inherit; cursor: pointer; color: var(--ink2); background: #fff; border: 0; border-right: 1px solid var(--line); padding: 6px 10px; font-size: 13px; }
.cat-seg.ink button.on { background: var(--color-active); color: #fff; }
.cat-seg.ink button:last-child { border-right: 0; }
tr.is-pick td { background: #F3EEF9; }
.stt-tip { position: fixed; z-index: 30; background: #142033; color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; pointer-events: none; }
.word-bar { display: inline-block; width: 72px; height: 8px; margin-right: 6px; background: #EEF1F5; border-radius: 4px; vertical-align: middle; }
.word-bar i { display: block; height: 100%; background: #1F4FB8; border-radius: 4px; }
.stt-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stt-cats article { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stt-cats .val { font-size: 22px; font-weight: 700; margin: 6px 0; }
.stt-samples { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stt-samples article { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stt-samples audio { width: 100%; margin: 8px 0; }
.stt-chart { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 180px; }
.stt-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stt-chart polyline { fill: none; stroke: #E24B4A; stroke-width: 2; }
.stt-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column-reverse; }
.stt-col i { display: block; width: 100%; }
.stt-col .c1 { background: #6B4EA8; }
.stt-col .c2 { background: #1F4FB8; }
.stt-col .c3 { background: #D9822B; }
.stt-col .c4 { background: #18794E; }
.stt-meta { display: flex; gap: 3px; margin-top: 6px; }
.stt-meta > div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 9px; }
.cat-hold { display: grid; grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.28fr); gap: 24px 40px; align-items: start; }
.cat-tenure h2, .cat-cover h2 { margin: 0; font-size: 15px; font-weight: 700; color: #fff; }
.cat-tenure-head { display: flex; align-items: center; gap: 10px; width: 100%; }
.cat-tenure-toggle {
  margin-left: auto; padding: 5px 10px; border: 1px solid rgba(175,192,216,.35);
  border-radius: 8px; background: rgba(255,255,255,.08); cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600; color: #D5DFEC; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.cat-tenure-toggle .cat-tenure-ico { flex: 0 0 auto; opacity: .95; }
.cat-tenure-toggle .ico-on { display: none; }
.cat-tenure-toggle[aria-pressed="true"] .ico-off { display: none; }
.cat-tenure-toggle[aria-pressed="true"] .ico-on { display: block; }
.cat-tenure-toggle em { font-style: normal; color: #AFC0D8; }
.cat-tenure-toggle[aria-pressed="true"] {
  color: #fff; border-color: rgba(143,203,255,.55); background: rgba(143,203,255,.16);
}
.cat-tenure-toggle[aria-pressed="true"] em { color: #8FCBFF; }
.cat-tenure-toggle:hover { color: #fff; border-color: rgba(255,255,255,.45); }
.cat-year-block { display: flex; flex-direction: column; gap: 4px; }
/* 자세히보기 off(기본)에서는 성별·연령대 블록을 전부 숨김 */
.cat-tenure .cat-year-detail { display: none !important; }
.cat-tenure[data-detail="on"] .cat-year-detail {
  display: flex !important; flex-direction: column; gap: 4px;
  margin: 2px 0 4px; padding: 0;
  border: 0;
}
.cat-tenure-legend {
  display: none; flex-direction: column; gap: 4px;
  margin: 0 0 10px; font-size: 11px; color: #AFC0D8;
}
.cat-tenure[data-detail="on"] .cat-tenure-legend:not([hidden]) { display: flex; }
.cat-tenure-legend .cat-leg-row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.cat-tenure-legend i {
  display: inline-block; width: 8px; height: 8px; border-radius: 2px;
  margin-right: 4px; vertical-align: -1px;
}
.cat-demo-row {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 4px; align-items: center;
}
.cat-demo-row > span {
  white-space: nowrap; color: #AFC0D8;
  font-size: 11px; text-align: right; padding-right: 4px; line-height: 1.2;
  border: 0; background: transparent;
}
.cat-demo-plot {
  width: 100%; height: 8px; display: flex; gap: 0; background: transparent;
  border-radius: 999px; overflow: visible; position: relative;
}
.cat-demo-plot i {
  display: block; height: 100%; min-width: 0; cursor: default; position: relative;
}
.cat-demo-plot i:first-child { border-radius: 999px 0 0 999px; }
.cat-demo-plot i:last-child { border-radius: 0 999px 999px 0; }
.cat-demo-plot i:only-child { border-radius: 999px; }
.cat-demo-plot i[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  z-index: 5; padding: 3px 7px; border-radius: 6px; white-space: nowrap;
  font-size: 11px; font-weight: 600; line-height: 1.2; color: #fff;
  background: rgba(20, 32, 52, .96); pointer-events: none;
}
.cat-tenure-note { margin: 8px 0 16px; font-size: 12px; line-height: 1.45; color: #AFC0D8; max-width: 36em; }
.cat-years { display: flex; flex-direction: column; gap: 8px; }
.cat-year { display: grid; grid-template-columns: 92px minmax(0, 1fr) 4.25rem; gap: 8px 4px; align-items: center; color: #D5DFEC; font-size: 13px; min-width: 0; text-align: left; text-decoration: none; padding: 2px 0; border-radius: 8px; }
.cat-year:hover { color: #fff; }
.cat-year:hover span { border-color: rgba(175,192,216,.55); background: rgba(255,255,255,.08); color: #fff; }
.cat-year-plot { width: 100%; height: 10px; display: block; background: #24344C; border-radius: 999px; overflow: hidden; }
.cat-year i { display: block; height: 100%; background: #6EA8FF; border-radius: 999px; min-width: 2px; }
.cat-year b { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.cat-year span { white-space: nowrap; color: #D5DFEC; border: 1px solid rgba(175,192,216,.32); border-radius: 6px; padding: 5px 8px; background: rgba(255,255,255,.04); font-size: 12px; text-align: center; line-height: 1.2; }
.cat-tenure-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.cat-tenure-foot span { display: block; font-size: 12px; color: #AFC0D8; }
.cat-tenure-foot b { display: block; margin-top: 4px; font-size: 18px; color: #fff; font-weight: 700; }
.cat-cover-head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.cat-cover-range { font-size: 12px; color: #AFC0D8; white-space: nowrap; }
.cat-cover-axis { position: relative; height: 16px; margin: 0 0 6px 96px; }
.cat-cover-axis i { position: absolute; top: 0; font-style: normal; font-size: 11px; color: #AFC0D8; white-space: nowrap; transform: translateX(-50%); }
.cat-cover-axis i:first-child { transform: none; }
.cat-cover-axis i:last-child { transform: translateX(-50%); }
.cat-cover-list { display: flex; flex-direction: column; gap: 7px; }
.cat-cover-line { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; }
.cat-cover-line > span { font-size: 12px; color: #D5DFEC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-cover-track { position: relative; height: 10px; background: #24344C; border-radius: 999px; overflow: hidden; }
.cat-cover-track i { position: absolute; top: 0; bottom: 0; background: #D7E3F7; border-radius: 999px; min-width: 4px; }
.cat-cover p.cat-cover-g { margin: 16px 0 4px; font-size: 13px; font-weight: 700; color: #D5DFEC; }
.cat-cover-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 64px 64px; gap: 10px; align-items: center; margin-top: 6px; }
.cat-cover-row > span, .cat-cover-head em, .cat-cover-head small { font-size: 13px; color: #D5DFEC; }
.cat-cover-row em, .cat-cover-row small { font-style: normal; font-size: 13px; color: #fff; text-align: right; }
.cat-cover-row small { color: #C5D3E8; font-weight: 400; }
.cat-cover-cells { display: flex; gap: 1px; height: 12px; }
.cat-cover-cells i { flex: 1 1 0; min-width: 0; border-radius: 1px; background: #24344C; }
.cat-cover-cells i.lv1 { background: #1E3A6E; }
.cat-cover-cells i.lv2 { background: #2F5FBE; }
.cat-cover-cells i.lv3 { background: #3B6FE0; }
.cat-cover-cells i.lv4 { background: #9CC4FF; }
.cat-kpis.four { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .cat-hold { grid-template-columns: 1fr; }
}
.page-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.page-head-actions { flex: none; }
.cat-item-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
.cat-item-tabs a { flex: none; min-height: 34px; padding: 6px 12px; }
.cat-filter-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; width: 100%; }
.cat-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto; gap: 12px 14px; align-items: end; width: 100%; }
.cat-filter-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-left: auto; }
.cat-field.is-dim { opacity: .45; pointer-events: none; }
.cat-field .tip, .tip { display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center; border-radius: 50%; background: #EEF1F5; color: var(--mut); font-size: 11px; cursor: help; margin-left: 4px; }
.cat-field em { font-style: normal; font-weight: 400; margin-left: 6px; }
.src-badge { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: #EEF1F5; color: var(--ink2); padding: 2px 6px; border-radius: 4px; }
.empty-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: #F7F9FB; }
.empty-banner p { margin: 0; color: var(--ink2); font-size: 14px; }
.kpi-range .val { font-size: 20px; }
.kpi-text .val { font-size: 16px; font-weight: 600; color: var(--ink2); }
.kpi .val { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.cat-bar.is-zero i { background: #EEF1F5; min-height: 4px; }
.cat-bars.has-grid { background: repeating-linear-gradient(to top, transparent 0 42px, #EEF1F5 42px 43px); border-radius: 8px; }
.posture-stack { display: flex; flex-direction: column; gap: 12px; }
.posture-stack .stackbar { height: 18px; border-radius: 8px; }
.posture-legend { display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: 13px; color: var(--ink2); }
.posture-legend img { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.posture-ico { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.col-precip { width: 48px; max-width: 56px; color: var(--dash); }
.nowrap { white-space: nowrap; }
@media (max-width: 1100px) {
  .cat-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-filter-actions { grid-column: 1 / -1; }
}
.cat-spans { display: flex; flex-direction: column; gap: 8px; }
.cat-span { display: grid; grid-template-columns: 92px 64px 1fr; gap: 8px; align-items: center; font-size: 12px; }
.cat-span .track { position: relative; height: 12px; background: #24344C; border-radius: 6px; }
.cat-span .track i { position: absolute; top: 0; bottom: 0; right: 0; background: #3B6FE0; border-radius: 6px; }
.cat-span .track i.wait { left: 0; right: 0; background: transparent; border: 1px dashed #F5B544; }
.cat-ask { display: flex; flex-direction: column; gap: 12px; }
.cat-qs { display: flex; flex-direction: column; gap: 6px; }
.cat-qs .q { display: flex; gap: 8px; align-items: center; text-decoration: none; color: inherit; padding: 8px; border-radius: 8px; }
.cat-qs .q[hidden] { display: none; }
.cat-qs .q.on, .cat-qs .q:hover { background: #F7F4FB; }
.cat-qs .q i { width: 8px; height: 8px; border-radius: 50%; background: #C9D2DD; flex: none; }
.cat-qs .q.on i { background: #6B4EA8; }
.cat-qs em { margin-left: auto; font-style: normal; color: var(--mut); }
.cat-qresult { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid #ECE6F6; padding-top: 12px; }
.cat-topic-line { display: grid; grid-template-columns: 140px 1fr 40px; gap: 8px; align-items: center; font-size: 12px; }
.cat-topic-line i { display: block; height: 8px; background: #6B4EA8; border-radius: 4px; }
.cat-section { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.cat-section-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.cat-section-head p { margin: 4px 0 0; color: var(--mut); font-size: 13px; }
.cat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.cat-cards-rhythm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cat-cards-rhythm .cat-card.is-rhythm-strip { grid-column: 1 / -1; }
.cat-cards-activity { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cat-cards-device { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cat-cards-talk { grid-template-columns: 1fr; max-width: none; }
.cat-card {
  min-height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 18px;
  overflow: hidden; box-sizing: border-box; min-width: 0;
}
.cat-card-head { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.cat-card .ttl { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; min-width: 0; }
.cat-card .cat-desc {
  margin: 0; color: var(--ink2); font-size: 13px; line-height: 1.45;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  word-break: keep-all; overflow-wrap: anywhere;
}
.cat-panel {
  background: #F5F7FA; border-radius: 12px; padding: 12px 12px 10px;
  display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-width: 0; overflow: hidden;
}
.cat-panel-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  min-height: 48px; flex: 0 0 auto; overflow: hidden;
}
.cat-panel-meta {
  flex: 0 0 auto; text-align: right; line-height: 1.3; max-width: 42%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cat-panel-top > .cat-panel-meta:only-child { max-width: 100%; margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-card .cat-stat {
  min-height: 0; margin: 0; flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 2px;
  min-width: 0; flex: 1 1 auto; overflow: hidden;
}
.cat-card .cat-stat b { font-size: 22px; line-height: 1.15; }
.cat-card .cat-stat span {
  display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; line-height: 1.3;
}
.cat-card .cat-stat.is-empty b { color: var(--mut); }
.cat-card .cat-stat.is-empty span { font-size: 13px; white-space: normal; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; }
.cat-note-slot {
  height: 44px; min-height: 44px; max-height: 44px;
  display: flex; align-items: stretch; flex: 0 0 44px;
  box-sizing: border-box; overflow: hidden;
}
.cat-note-slot:empty { visibility: hidden; }
.cat-card .cat-viz { height: 168px; min-height: 168px; max-height: 168px; display: flex; align-items: stretch; overflow: hidden; min-width: 0; }
.cat-card .cat-viz > * { width: 100%; min-width: 0; }
.cat-card .cat-viz .cat-bars, .cat-card .cat-viz .posture-bars, .cat-card .cat-viz .cat-line, .cat-card .cat-viz .cat-cloud { height: 100%; }
.cat-card .cat-viz .cat-bars { padding-top: 4px; padding-bottom: 34px; box-sizing: border-box; }
.cat-card .cat-viz .cat-bars .cat-bar { padding-bottom: 30px; }
.cat-card .cat-viz .cat-bars .cat-bar span { bottom: 14px; }
.cat-card .cat-viz .cat-bars .cat-bar em { bottom: 0; }
.cat-card .cat-viz .posture-bars { align-items: stretch; height: 100%; padding: 4px 0 34px; box-sizing: border-box; }
.cat-card .cat-viz-blank, .cat-card .cat-viz.is-empty { background: #EEF2F6; border-radius: 8px; }
.cat-card .cat-warn { margin: 0; width: 100%; }
.cat-block { min-height: 0; overflow: hidden; }
.cat-block h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--pri); }
.cat-block p {
  margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink2);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  word-break: keep-all; overflow-wrap: anywhere;
}
.cat-card-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0 0; border-top: 1px solid #E8EDF3; min-height: 36px; min-width: 0;
}
.cat-card-foot > span {
  display: block; line-height: 1.3; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cat-more { display: inline-flex; align-items: center; flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--pri); text-decoration: none; line-height: 1.3; }
.cat-more:hover { text-decoration: underline; }
.cat-tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; font-style: normal; vertical-align: middle; flex: 0 0 auto; }
.cat-tag.real { background: #DCFCE7; color: #166534; }
.cat-tag.sample { background: #FEF3C7; color: #92400E; }
.cat-tag.new { background: #DBEAFE; color: #1D4ED8; }
.cat-card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; min-width: 0; }
.cat-card-title-left { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.cat-ask-change {
  flex: 0 0 auto; font-size: 12px; font-weight: 700; color: #fff; background: #EA580C;
  border-radius: 8px; padding: 4px 10px; text-decoration: none; line-height: 1.2;
}
.cat-ask-change:hover { filter: brightness(0.95); }
.cat-card.is-rhythm { border-color: var(--line, #E2E8F0); box-shadow: none; }
.cat-card.is-ask { border-color: #EA580C; box-shadow: inset 0 0 0 1px #FDBA74; }
.cat-card .cat-stat.rhythm b { font-size: 22px; letter-spacing: -0.02em; }
.cat-card .cat-viz-rhythm {
  height: auto; min-height: 0; max-height: none; overflow: hidden;
  flex-direction: column; gap: 8px;
}
.cat-card-rhythm .cat-panel { gap: 10px; }
.cat-card-rhythm .cat-note-slot { display: none; }
.cat-card-talk { overflow: visible; }
.cat-card-talk .cat-panel { height: auto; min-height: 0; max-height: none; overflow: visible; }
.cat-card-talk .cat-block p { -webkit-line-clamp: 3; }
.cat-stt { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cat-stt-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px; align-items: stretch; min-width: 0;
}
.cat-stt-topics {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
  justify-content: center;
}
.cat-stt-cloud {
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  background: #fff; border-radius: 10px; padding: 10px 12px; box-sizing: border-box;
  overflow: hidden;
}
.cat-stt-cloud-label { margin: 0; }
.cat-stt-cloud .cat-cloud {
  position: relative; min-height: 200px; height: 200px; width: 100%;
  overflow: hidden; border-radius: 8px;
}
.cat-stt-cloud .cat-cloud canvas {
  display: block; width: 100% !important; height: 100% !important;
  max-width: 100%;
}
.cat-stt-top { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cat-stt .cat-stat { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.cat-stt .cat-stat span { white-space: normal; }
.cat-stt-meta { margin: 0; }
.cat-role-bar {
  display: flex; height: 28px; border-radius: 8px; overflow: hidden; background: #EDE9FE; min-width: 0;
}
.cat-role-bar i {
  display: flex; align-items: center; justify-content: center; height: 100%;
  font-style: normal; font-size: 11px; font-weight: 700; color: #fff; min-width: 0;
  overflow: hidden; white-space: nowrap; padding: 0 4px; box-sizing: border-box;
}
.cat-role-bar i.on { box-shadow: inset 0 0 0 2px #fff; }
.cat-stt-cap { margin: 0; }
.cat-topic-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cat-topic-row {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 48px;
  gap: 8px; align-items: center; font-size: 13px; min-width: 0;
}
.cat-topic-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); }
.cat-topic-track { height: 10px; background: #EDE9FE; border-radius: 999px; overflow: hidden; min-width: 0; }
.cat-topic-track b { display: block; height: 100%; background: #7C3AED; border-radius: 999px; }
.cat-topic-row em { font-style: normal; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.cat-voice-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.cat-voice-chips span {
  display: inline-flex; align-items: center; max-width: 100%;
  border: 1px solid #C4B5FD; color: #5B21B6; background: #F5F3FF;
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 720px) {
  .cat-stt-split { grid-template-columns: 1fr; }
  .cat-stt-cloud .cat-cloud { min-height: 180px; height: 180px; }
}
/* 생활 리듬: 0–24시 한 그래프에 두 색 나란히 + 아래 4종 얇은 스트립 */
.cat-day {
  display: flex; flex-direction: column; gap: 4px;
  background: #F8FAFC; border-radius: 10px; padding: 10px 10px 6px;
  min-width: 0; overflow: hidden;
}
.cat-day-plot { position: relative; height: 96px; min-width: 0; }
.cat-day-cols {
  display: flex; align-items: flex-end; gap: 1px; height: 100%;
  min-width: 0;
}
.cat-day-col {
  flex: 1 1 0; min-width: 0; height: 100%;
  display: flex; align-items: flex-end; justify-content: center; gap: 1px;
}
.cat-day-col i {
  flex: 1 1 0; min-width: 0; max-width: 8px;
  display: block; border-radius: 2px 2px 0 0;
}
.cat-day-col i.is-zero { opacity: 0.12; min-height: 2px; height: 2% !important; }
.cat-day-med {
  position: absolute; top: 0; bottom: 0; width: 0;
  border-left: 2px dashed #64748B; pointer-events: none;
  transform: translateX(-1px);
}
.cat-day-axis { position: relative; height: 16px; color: var(--mut); font-size: 11px; }
.cat-day-axis span { position: absolute; transform: translateX(-50%); }
.cat-day-axis span:first-child { transform: none; left: 0 !important; }
.cat-day-axis span:last-child { transform: none; left: auto !important; right: 0; }
.cat-day-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ink2); min-height: 18px;
}
.cat-day-legend i {
  display: inline-block; width: 10px; height: 10px; border-radius: 2px;
  margin-right: 4px; vertical-align: -1px;
}
.cat-rhythm-strip {
  display: flex; flex-direction: column; gap: 3px;
  padding: 2px 0 0; min-width: 0;
}
.cat-rhythm-strip-row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr);
  gap: 6px; align-items: center; min-width: 0;
}
.cat-rhythm-strip-row > span {
  font-size: 10px; font-weight: 700; letter-spacing: -0.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cat-rhythm-strip-cells {
  display: flex; gap: 1px; height: 8px; min-width: 0; border-radius: 2px; overflow: hidden;
}
.cat-rhythm-strip-cells i { flex: 1 1 0; min-width: 0; display: block; height: 100%; }
/* 하루 리듬 점 분포 */
.cat-bee { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cat-bee-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; align-items: flex-end; }
.cat-bee-clocks { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.cat-bee-clock { display: flex; flex-direction: column; gap: 2px; min-width: 64px; }
.cat-bee-clock b { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.cat-bee-clock span { font-size: 12px; color: var(--ink2); font-weight: 600; }
.cat-bee-counts { text-align: right; line-height: 1.45; max-width: 280px; }
.cat-bee-plot {
  display: flex; flex-direction: column; gap: 8px;
  background: #F8FAFC; border-radius: 12px; padding: 12px 12px 8px; min-width: 0;
}
.cat-bee-row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px; align-items: center; min-width: 0;
}
.cat-bee-lab { font-size: 13px; font-weight: 700; }
.cat-bee-track {
  position: relative; height: 28px; background: #EEF2F7; border-radius: 6px; overflow: hidden; min-width: 0;
}
.cat-bee-iqr {
  position: absolute; top: 4px; bottom: 4px; opacity: 0.22; border-radius: 4px; pointer-events: none;
}
.cat-bee-dot {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  transform: translate(-50%, -50%); opacity: 0.72; pointer-events: auto;
}
.cat-bee-med {
  position: absolute; top: 2px; bottom: 2px; width: 0;
  border-left: 2px solid #0F172A; transform: translateX(-1px); pointer-events: none;
}
.cat-bee-stat { font-size: 11px; line-height: 1.35; word-break: keep-all; }
.cat-bee-axis {
  position: relative; height: 16px; margin: 2px 0 0;
  margin-left: 46px; margin-right: calc(minmax(140px, 0.42fr));
  color: var(--mut); font-size: 11px;
}
.cat-bee-axis { margin-left: 46px; margin-right: 0; }
.cat-bee-axis span { position: absolute; transform: translateX(-50%); }
.cat-bee-axis span:first-child { transform: none; left: 0 !important; }
.cat-bee-axis span:last-child { transform: none; left: auto !important; right: 0; }
.cat-bee-note, .cat-bee-why { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink2); word-break: keep-all; }
.cat-bee-why { color: #1D4ED8; }
.cat-bee-why b { font-weight: 700; }
@media (max-width: 900px) {
  .cat-bee-row { grid-template-columns: 36px minmax(0, 1fr); }
  .cat-bee-stat { grid-column: 2; }
  .cat-bee-axis { margin-left: 46px; }
}
/* 그룹 안 카드 패널 높이 맞춤 (한 줄에 카드가 1장만 있어도 동일) */
.cat-card-activity .cat-panel,
.cat-card-device .cat-panel,
.cat-card-default .cat-panel { height: 308px; min-height: 308px; max-height: 308px; box-sizing: border-box; }
.cat-card-rhythm .cat-panel { height: 200px; min-height: 200px; max-height: 200px; box-sizing: border-box; }
.cat-card-rhythm:not(.is-rhythm-strip) .cat-day-plot { height: 64px; }
.cat-card-rhythm:not(.is-rhythm-strip) .cat-desc { -webkit-line-clamp: 1; }
.cat-card-rhythm:not(.is-rhythm-strip) .cat-block { display: none; }
.cat-card-rhythm:not(.is-rhythm-strip) .cat-stat.rhythm b { font-size: 18px; }
.cat-card-rhythm.is-rhythm-strip .cat-panel {
  height: auto; min-height: 0; max-height: none;
}
.cat-card-rhythm.is-rhythm-strip .cat-panel-top { display: none; }
.cat-card-rhythm.is-rhythm-strip .cat-block { display: none; }
.cat-card-rhythm.is-rhythm-strip .cat-desc { -webkit-line-clamp: 2; }

/* 하루 리듬 상세 */
.ry-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ry-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ry-card { gap: 12px; min-width: 0; }
.ry-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ry-card-head .ttl { margin: 0; font-size: 17px; }
.ry-person { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink2); }
.ry-week { display: flex; flex-direction: column; gap: 6px; background: #F8FAFC; border-radius: 10px; padding: 10px; }
.ry-week-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; align-items: center; }
.ry-week-lab { font-size: 12px; color: var(--ink2); white-space: nowrap; }
.ry-week-track { position: relative; height: 18px; background: #fff; border-radius: 4px; overflow: hidden; border: 1px solid #E2E8F0; }
.ry-week-seg { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; opacity: 0.85; }
.ry-week-axis { position: relative; height: 14px; margin-left: 80px; color: var(--mut); font-size: 11px; }
.ry-week-axis span { position: absolute; transform: translateX(-50%); }
.ry-week-axis span:first-child { transform: none; left: 0 !important; }
.ry-week-axis span:last-child { transform: none; left: auto !important; right: 0; }
.ry-legend { display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: 12px; color: var(--ink2); }
.ry-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.ry-why { margin: 0; font-size: 12px; line-height: 1.5; color: #1D4ED8; word-break: keep-all; }
.ry-scatter-title { margin: 0; font-size: 14px; font-weight: 700; }
.ry-scatter { display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: minmax(180px, 220px) 18px; gap: 4px 6px; }
.ry-scatter-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; color: var(--mut); text-align: right; padding: 4px 0; }
.ry-scatter-plot { position: relative; background: #F8FAFC; border-radius: 10px; border: 1px solid #E2E8F0; overflow: hidden; }
.ry-scatter-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; transform: translate(-50%, -50%); opacity: 0.75; }
.ry-scatter-x { grid-column: 2; display: flex; justify-content: space-between; font-size: 11px; color: var(--mut); }
.ry-big { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.ry-hist { display: flex; align-items: flex-end; gap: 4px; height: 128px; padding: 4px 0 26px; background: #F8FAFC; border-radius: 10px; }
.ry-hist.short { height: 90px; }
.ry-hist-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.ry-hist-col i { display: block; width: 70%; max-width: 28px; border-radius: 3px 3px 0 0; min-height: 2px; }
.ry-hist-col span { position: absolute; bottom: -21px; font-size: 11px; color: var(--ink2); white-space: nowrap; }
.ry-ranges { display: flex; flex-direction: column; gap: 8px; }
.ry-range-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 64px; gap: 8px; align-items: center; font-size: 12px; }
.ry-range-track { position: relative; height: 12px; background: #F1F5F9; border-radius: 999px; overflow: hidden; }
.ry-range-track b { position: absolute; top: 2px; bottom: 2px; border-radius: 999px; opacity: 0.85; }
.ry-range-track i { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid #0F172A; transform: translateX(-1px); }
.ry-range-row em { font-style: normal; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ry-radius-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.ry-radar-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; background: #FBFCFE; border: 1px solid #E2E8F0; border-radius: 12px; }
.ry-radar-title { margin: 0; align-self: flex-start; font-size: 14px; font-weight: 700; }
.ry-radar { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto; overflow: visible; }
.ry-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid #E2E8F0; border-radius: 50%; pointer-events: none; }
.ry-ring em { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); font-style: normal; font-size: 10px; color: #64748B; background: #FBFCFE; padding: 0 3px; line-height: 1; white-space: nowrap; }
.ry-ring-med { border: 2px dashed #EA7A2C; z-index: 1; }
.ry-home { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 11px; font-weight: 700; color: #fff; background: #0F172A; border-radius: 6px; padding: 3px 6px; z-index: 2; }
.ry-radar-dot { position: absolute; width: 5px; height: 5px; border-radius: 50%; transform: translate(-50%, -50%); opacity: 0.8; }
.ry-radar-note { margin: 0; font-size: 11px; color: var(--mut); text-align: center; }
.ry-radius-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ry-radius-kpis span { display: block; font-size: 12px; color: var(--mut); }
.ry-radius-kpis b { display: block; margin-top: 2px; font-size: 18px; }
@media (max-width: 980px) {
  .ry-grid2, .ry-grid3, .ry-radius-grid { grid-template-columns: 1fr; }
}
.cat-card-activity .cat-viz .cat-bars,
.cat-card-device .cat-viz .cat-bars { padding-bottom: 34px; }
.cat-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.cat-kpi.tight { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.cat-kpi-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.cat-kpi-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; color: var(--mut); }
.cat-kpi-card b { font-size: 22px; font-weight: 800; line-height: 1.2; }
.cat-kpi-card b.time { font-size: 20px; }
.cat-kpi-card.is-empty b { color: var(--mut); }
.cat-insight { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cat-insight-card { min-width: 0; overflow: hidden; }
.cat-insight-card .ttl { display: block; font-size: 17px; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.cat-plot { background: #F8FAFC; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; height: auto; min-width: 0; overflow: hidden; box-sizing: border-box; }
.cat-insight-card .cat-bars { height: 160px; background: transparent; padding: 4px 0 0; }
.cat-insight-card .cat-bars.has-pct { padding-bottom: 38px; }
.cat-insight-card .cat-bars.has-pct .cat-bar { padding-bottom: 32px; }
.cat-insight-card .cat-bars.has-pct .cat-bar span { bottom: 16px; }
.cat-insight-card .cat-bars.has-pct .cat-bar em { bottom: 0; color: var(--ink2); font-weight: 600; }
.cat-cum { display: flex; height: 14px; border-radius: 6px; overflow: hidden; background: #E2E8F0; }
.cat-cum i { display: block; height: 100%; background: #5EEAD4; border-right: 1px solid #fff; }
.cat-cum i:nth-child(2) { background: #2DD4BF; }
.cat-cum i:nth-child(3) { background: #14B8A6; }
.cat-cum i:nth-child(4) { background: #0D9488; }
.cat-cum i:nth-child(5) { background: #0F766E; }
.cat-cum i:nth-child(n+6) { background: #134E4A; }
.cat-cum-marks { display: flex; gap: 14px; flex-wrap: wrap; }
.cat-cum-marks .mean { color: #B91C1C; font-weight: 700; }
.cat-use { margin: 0; font-size: 13px; line-height: 1.6; color: #334155; background: #F8FAFC; border-radius: 8px; padding: 9px 12px; }
.cat-hour-plot { display: flex; flex-direction: column; gap: 4px; }
.cat-hour-plot .cat-bars { height: 150px; background: transparent; padding: 0; }
.cat-bars.no-axis { padding-bottom: 0; }
.cat-bars.no-axis .cat-bar { padding-bottom: 0; }
.cat-hour-axis { display: flex; justify-content: space-between; padding: 0 2px; color: var(--mut); font-size: 12px; line-height: 1.2; }
.cat-plot-auto { height: auto; min-height: 0; overflow: hidden; box-sizing: border-box; }
.cat-night-axis { display: flex; justify-content: space-between; margin: 4px 0 2px 56px; padding: 0 2px; color: var(--mut); font-size: 12px; line-height: 1.2; }
.cat-night-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; min-width: 0; }
.cat-night-lab { flex: 0 0 48px; width: 48px; text-align: right; }
.cat-night-track { position: relative; flex: 1 1 auto; min-width: 0; height: 14px; background: #EEF2FF; border-radius: 4px; overflow: hidden; }
.cat-night-bar { position: absolute; top: 0; bottom: 0; max-width: 100%; background: #818CF8; border-radius: 4px; box-sizing: border-box; }
.cat-people-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.cat-tag-legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 4px 0 2px; font-size: 13px; color: var(--ink2); }
.cat-tag-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cat-tag.pending { background: #E0E7FF; color: #3730A3; }
.cat-cum-wrap { position: relative; }
.cat-cum-label { font-size: 12px; font-weight: 700; color: var(--ink2); margin: 0 0 4px; }
.cat-cum-marks.pos { position: relative; height: 40px; overflow: hidden; }
.cat-cum-marks.pos span { position: absolute; top: 12px; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 700; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.cat-cum-marks.pos span::before { content: ""; position: absolute; left: 50%; top: -12px; height: 10px; border-left: 2px solid currentColor; }
.cat-cum-marks.pos .mean { color: #B91C1C; }
.cat-scatter { display: flex; gap: 0; min-width: 0; width: 100%; }
.cat-scatter-y { position: relative; width: 40px; flex: none; height: 210px; font-size: 12px; color: var(--mut); }
.cat-scatter-y span { position: absolute; right: 6px; }
.cat-scatter-y span:nth-child(1) { top: 0; }
.cat-scatter-y span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.cat-scatter-y span:nth-child(3) { bottom: 0; }
.cat-scatter svg { flex: 1 1 auto; min-width: 0; width: 100%; height: 210px; display: block; background: #fff; border-radius: 6px; }
.cat-scatter-x { display: flex; justify-content: space-between; margin-left: 40px; margin-top: 4px; font-size: 12px; color: var(--mut); min-width: 0; }
.cat-mode { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; min-width: 0; }
.cat-mode-row { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 13px; min-width: 0; }
.cat-mode-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-mode-row i.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.cat-mode-track { height: 10px; background: #F1F5F9; border-radius: 999px; overflow: hidden; }
.cat-mode-track b { display: block; height: 100%; border-radius: 999px; }
.cat-people-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 960px) {
  .cat-insight { grid-template-columns: 1fr; }
}
.cat-people-list { display: flex; flex-direction: column; gap: 10px; max-height: 720px; overflow: auto; }
.cat-person-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; background: #fff; }
.cat-person-card.on { border-color: var(--pri); background: #F3F7FF; box-shadow: inset 0 0 0 1px var(--pri); }
.cat-person-card:hover { border-color: #A8BDDD; }
.cat-spark { display: flex; align-items: flex-end; gap: 2px; height: 36px; }
.cat-spark i { flex: 1 1 0; min-width: 0; background: var(--chart); border-radius: 2px 2px 0 0; }
.cat-people-detail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cat-people-head h3 { margin: 0; font-size: 20px; }
.cat-heat-block, .cat-day-block { display: flex; flex-direction: column; gap: 10px; }
.cat-heat-block h4, .cat-day-block h4 { margin: 0; font-size: 14px; }
.cat-heat-legend i { display: inline-block; width: 10px; height: 10px; margin: 0 2px; border-radius: 2px; vertical-align: middle; background: #D7E8D4; }
.cat-heat-legend i:nth-child(2) { background: #A9D4A4; }
.cat-heat-legend i:nth-child(3) { background: #6FBA6A; }
.cat-heat-legend i:nth-child(4) { background: #3E8F45; }
.cat-heat { display: grid; grid-template-columns: repeat(var(--cols, 53), minmax(0, 1fr)); gap: 2px; }
.cat-heat span { aspect-ratio: 1; border-radius: 2px; background: #EEF2F6; }
.cat-heat .lv1 { background: #D7E8D4; }
.cat-heat .lv2 { background: #A9D4A4; }
.cat-heat .lv3 { background: #6FBA6A; }
.cat-heat .lv4 { background: #3E8F45; }
.cat-heat-months { display: flex; justify-content: space-between; gap: 8px; color: var(--mut); font-size: 12px; }
.cat-day-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-day-chips a { text-decoration: none; color: var(--ink2); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.cat-day-chips a.on { background: var(--color-active); border-color: var(--color-active); color: #fff; }
.cat-day-chart { position: relative; display: flex; flex-direction: column; gap: 8px; }
.cat-day-chart .cat-bars { height: 160px; background: #F5F7FA; border-radius: 12px; padding: 10px; }
.cat-day-marks { position: relative; height: 18px; margin-top: -4px; }
.cat-day-marks .mark { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; color: var(--mut); white-space: nowrap; }
.cat-day-marks .mark.out { color: #C45C1A; }
@media (max-width: 960px) {
  .cat-overview, .cat-people-layout { grid-template-columns: 1fr; }
}
.cat-card.is-ask { border: 2px solid #EA580C; }
.ask-mark { color: #6B4EA8; font-size: 12px; font-weight: 700; }
.cat-warn {
  background: #FFF8E8; color: #8A5300; border-radius: 8px; padding: 6px 10px;
  font-size: 12px; line-height: 1.35; width: 100%; box-sizing: border-box;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.cat-warn::before { content: "ⓘ "; }
.badge.b-blue { background: #D9E6FF; color: #163A8A; }
.badge.b-teal { background: #CCFBF1; color: #0F766E; border: 1px solid #5EEAD4; }
.cat-stat.period b { font-size: 18px; font-weight: 700; color: var(--ink); }
.cat-pop { position: relative; }
.cat-pop summary { list-style: none; cursor: pointer; }
.cat-cards { overflow: visible; }
.cat-card { overflow: hidden; }
.cat-card.is-stt,
.cat-card-talk { overflow: visible; }
.cat-pop div { position: absolute; z-index: 8; top: calc(100% + 6px); left: 0; width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; box-shadow: 0 8px 24px rgba(20, 30, 40, .12); }
.cat-seg button { font: inherit; cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.cat-seg button.on { background: var(--color-active); color: #fff; border-color: var(--color-active); }
.stt-kpi2, .topic-grid, .unit-grid, .prompt-grid { display: grid; gap: 12px; }
.stt-kpi2 { grid-template-columns: 1fr 1fr; }
.stt-scale { background: #F4F7FB; border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.stt-scale-top { display: grid; grid-template-columns: 1fr 200px; gap: 16px; align-items: end; }
.stt-scale .eyebrow { color: #1F4FB8; font-size: 12px; font-weight: 700; }
.stt-scale h2 { font-size: 26px; margin: 6px 0; }
.stt-scale-tax { text-align: right; }
.stt-scale-tax span, .stt-scale-tax small { color: var(--mut); font-size: 12px; }
.stt-scale-tax b { font-size: 40px; line-height: 1; color: #1F4FB8; }
.stt-scale-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.stt-scale-kpis div { background: #fff; border-radius: 10px; padding: 12px; }
.stt-scale-kpis span, .stt-scale-kpis small { display: block; color: var(--mut); font-size: 12px; }
.stt-scale-kpis b { display: block; font-size: 22px; margin: 6px 0; }
.topic-grid, .unit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prompt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.topic-card, .unit-grid article, .prompt-grid div { border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-decoration: none; color: inherit; }
.topic-card .track, .role-row { display: flex; align-items: center; gap: 8px; }
.topic-card .track { height: 8px; background: #EEF1F5; border-radius: 4px; }
.topic-card .track i, .role-row i { display: block; height: 8px; border-radius: 4px; background: #6B4EA8; }
.role-row { font-size: 13px; margin: 6px 0; }
.role-row span { width: 140px; flex: none; }
.role-row em { margin-left: auto; font-style: normal; color: var(--mut); }
.role-row.quiz i { background: #B45309; }
.role-row.muted i { background: #9AA6B5; }
.stt-roles { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; }
.stt-scenes, .stt-asks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stt-scene, .stt-asks a, .stt-seasons article { border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: inherit; text-decoration: none; background: #fff; }
.stt-scene .when { margin: 8px 0 12px; font-weight: 700; }
.stt-scene-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stt-scene-metrics span, .stt-asks span, .stt-dates small { display: block; color: var(--mut); font-size: 12px; font-weight: 400; }
.stt-scene-metrics b, .stt-asks b { display: block; font-size: 18px; margin-top: 2px; }
.stt-scene i { width: 10px; height: 10px; border-radius: 50%; }
.stt-season-head { margin-top: 8px; }
.stt-season-head h3, .stt-asks strong { font-size: 15px; }
.stt-seasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stt-seasons .is-봄 { background: #F3FAF6; }
.stt-seasons .is-여름 { background: #F3FBFA; }
.stt-seasons .is-가을 { background: #FBF7F1; }
.stt-seasons .is-겨울 { background: #F4F7FB; }
.stt-dates { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.stt-dates a { background: #fff; border-radius: 8px; padding: 6px 8px; font-size: 12px; color: inherit; text-decoration: none; }
.stt-asks p { color: var(--ink); font-size: 13px; margin: 8px 0 0; }
.stt-cats article.is-wait { border: 1px dashed #C9D2DD; }
.cat-seg .is-wait { padding: 6px 10px; color: var(--mut); font-size: 13px; }
.stt-legend { display: flex; gap: 12px; font-size: 12px; }
.stt-meta .end { color: #C42B2B; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
@media (max-width: 900px) {
  .grid-kpi.four, .grid-kpi.five, .grid-kpi.six, .stt-split, .stt-cats, .stt-samples, .stt-kpi2, .stt-scale-top, .stt-scale-kpis, .topic-grid, .unit-grid, .prompt-grid, .cat-cards, .stt-roles, .stt-scenes, .stt-asks, .stt-seasons { grid-template-columns: 1fr 1fr; }
  .cat-section .cat-cards { grid-template-columns: 1fr 1fr; }
  .cat-cards-rhythm { grid-template-columns: 1fr 1fr; }
  .cat-section .cat-cards-talk { grid-template-columns: 1fr; max-width: none; }
}
@media (max-width: 640px) {
  .cat-section .cat-cards,
  .cat-cards-activity,
  .cat-cards-device,
  .cat-cards-rhythm { grid-template-columns: 1fr; }
}
/* 하루 리듬 상세 · 기상·취침 */
.ry-big-line { display: flex; align-items: baseline; gap: 6px; margin: 0; flex-wrap: wrap; }
.ry-big-line span { font-size: 13px; color: var(--ink2); }
.ry-range-row.is-weekend span { color: #DC2626; }
.ry-range-axis { position: relative; height: 16px; margin: 0 72px 0 80px; font-size: 12px; color: var(--ink2); }
.ry-range-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ry-range-axis span:last-child { transform: translateX(-100%); }
.ry-split { display: flex; height: 22px; border-radius: 6px; overflow: hidden; font-size: 11px; }
.ry-split i { display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; }

/* 하루 리듬 상세 · 외출 시간(세 칸) */
.ry-sec-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ry-sec-head .ttl { margin: 0; }
.ry-fine { display: flex; gap: 8px; align-items: stretch; }
.ry-fine-main { flex: 1; min-width: 0; }
.ry-fine { flex-direction: column; }
.ry-fine.has-zero { flex-direction: row; }
.ry-fine-main { display: flex; flex-direction: column; }
.ry-fine-plot { position: relative; display: flex; align-items: flex-end; gap: 1px; height: 96px; border-bottom: 1px solid #E2E8F0; }
.ry-fine-plot i { flex: 1; min-height: 1px; }
.ry-fine-med { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed #0F172A; }
.ry-fine-axis { position: relative; height: 18px; font-size: 11px; color: var(--ink2); }
.ry-fine-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; top: 3px; }
.ry-fine-axis span:first-child { transform: none; }
.ry-fine-axis span:last-child { transform: translateX(-100%); }
.ry-fine-zero { width: 28px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 114px; font-size: 11px; }
.ry-fine-zero b { font-size: 10px; margin-bottom: 2px; }
.ry-fine-zero i { width: 100%; background: #CBD5E1; border-bottom: 1px solid #E2E8F0; }
.ry-fine-zero span { height: 18px; color: var(--ink2); padding-top: 3px; }
.ry-fine-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink2); }
.ry-as { display: flex; flex-direction: column; gap: 10px; }
.ry-as-axis, .ry-as-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 84px; gap: 8px; align-items: center; }
.ry-as-axis { font-size: 11px; }
.ry-as-axis > div { position: relative; height: 14px; color: var(--mut); }
.ry-as-axis i { position: absolute; transform: translateX(-50%); font-style: normal; white-space: nowrap; }
.ry-as-axis i:first-child { transform: none; }
.ry-as-axis i:last-child { transform: translateX(-100%); }
.ry-as-axis > span:last-child { text-align: right; }
.ry-as-row { padding: 6px 0; border-top: 1px solid #F1F5F9; }
.ry-as-row > b { font-size: 13px; }
.ry-as-lines { display: flex; flex-direction: column; gap: 5px; }
.ry-as-track { position: relative; height: 7px; background: #F1F5F9; border-radius: 999px; }
.ry-as-track s { position: absolute; top: 0; bottom: 0; border-radius: 999px; text-decoration: none; }
.ry-as-track u { position: absolute; top: -2px; bottom: -2px; width: 3px; border-radius: 2px; transform: translateX(-1px); text-decoration: none; }
.ry-as-val { display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; color: var(--ink2); line-height: 1.5; white-space: nowrap; }
/* 개인 리듬 · 사람 고르기 */
.ry-person-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ry-person-pick { display: flex; flex-direction: column; gap: 4px; flex: 1 1 260px; max-width: 420px; }
.ry-person-pick select { font: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid #CBD5E1; border-radius: 8px; background: #fff; }
.ry-person-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ry-person-kpis > div { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; padding: 8px 10px; min-width: 0; }
.ry-person-kpis span { display: block; font-size: 11px; color: var(--mut); }
.ry-person-kpis b { display: block; font-size: 17px; margin-top: 2px; }
.ry-person-kpis em { display: block; font-style: normal; font-size: 11px; color: var(--ink2); margin-top: 2px; word-break: keep-all; }
@media (max-width: 720px) { .ry-person-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 하루 리듬 상세 · 이동 분포(그림 왼쪽 · 수치 오른쪽) */
.ry-dist-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ry-dist-side { min-width: 0; }
.ry-dist-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: 11px; color: var(--ink2); }
.ry-dist-legend span { display: inline-flex; align-items: center; gap: 4px; }
.ry-dist-legend i, .ry-dist-name i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25); }
.ry-radar-dot { box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.28); transition: opacity 0.15s; }
.ry-radar-dot.is-off { opacity: 0.06; }
.ry-ring-med { transition: width 0.2s, height 0.2s; }
.ry-dist-hint { color: var(--pri); }
.ry-dist-groups { display: flex; flex-direction: column; gap: 4px; }
.ry-dist-group {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) 56px 40px; gap: 8px; align-items: center;
  width: 100%; padding: 6px 8px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; font: inherit; font-size: 12px; text-align: left; cursor: pointer; color: inherit;
}
.ry-dist-group:hover { background: #F8FAFC; }
.ry-dist-group.on { background: #EFF4FF; border-color: #BFD0FF; }
.ry-dist-group:focus-visible { outline: 2px solid var(--pri); outline-offset: 1px; }
.ry-dist-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.ry-dist-group em { font-style: normal; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ry-dist-group small { color: var(--mut); text-align: right; font-size: 11px; }
@media (max-width: 900px) { .ry-dist-grid { grid-template-columns: 1fr; } }
.ry-dist-group .ry-range-track { display: block; }
.ry-as-row > b.ry-dist-name { font-size: 12px; }
.ry-dist-groups.ry-as { gap: 0; }
.ry-dist-row { grid-template-columns: 96px minmax(0, 1fr) 76px; padding: 4px 0; }
.ry-dist-pick, .ry-dist-line {
  border: 1px solid transparent; border-radius: 6px; background: transparent; font: inherit; color: inherit; cursor: pointer; text-align: left;
}
.ry-dist-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 4px 6px; font-size: 12px; }
.ry-dist-pick small { color: var(--mut); font-size: 11px; padding-left: 15px; }
.ry-dist-line { display: block; width: 100%; padding: 4px 4px; }
.ry-dist-pick:hover, .ry-dist-line:hover { background: #F8FAFC; }
.ry-dist-pick.on, .ry-dist-line.on { background: #EFF4FF; border-color: #BFD0FF; }
.ry-dist-pick:focus-visible, .ry-dist-line:focus-visible { outline: 2px solid var(--pri); outline-offset: 1px; }
.ry-dist-row .ry-as-lines { gap: 0; }
.ry-dist-line .ry-as-track { display: block; width: 100%; }
.ry-dist-row .ry-as-val { line-height: 1.9; }

/* 기기 사용 카드 (화면·충전·조도) */
.dv-since { margin-left: auto; flex: 0 0 auto; font-style: normal; font-size: 11px; color: var(--mut); background: #F1F5F9; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.dv { display: flex; flex-direction: column; gap: 10px; background: #F8FAFC; border-radius: 12px; padding: 16px; }
.dv-top { display: flex; flex-direction: column-reverse; gap: 2px; }
.dv-head { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.dv-sub { margin: 4px 0 0; font-size: 13px; color: var(--ink2); line-height: 1.45; word-break: keep-all; }
.dv-meta { align-self: flex-end; font-size: 12px; color: var(--mut); white-space: nowrap; line-height: 1.3; }
.dv-chart { margin-top: 18px; }
.dv-plot { position: relative; height: 120px; }
.dv-band { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.dv-cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid #CBD5E1; }
.dv-cols i { flex: 1; min-height: 1px; border-radius: 2px 2px 0 0; }
.dv-mark { position: absolute; top: -4px; bottom: 0; width: 0; border-left: 1.5px dashed; z-index: 1; }
.dv-mark em { position: absolute; top: -14px; left: 3px; font-style: normal; font-size: 11px; font-weight: 700; white-space: nowrap; }
.dv-mark.is-right em { left: auto; right: 3px; }
.dv-axis { position: relative; height: 16px; font-size: 11px; color: var(--mut); }
.dv-axis span { position: absolute; top: 3px; transform: translateX(-50%); white-space: nowrap; }
.dv-axis span:first-child { transform: none; }
.dv-axis span:last-child { transform: translateX(-100%); }
.dv-cap { margin: 0; font-size: 11px; color: var(--mut); line-height: 1.45; word-break: keep-all; }
.dv-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dv-boxes > div { background: #fff; border: 1px solid #E2E8F0; border-radius: 10px; padding: 8px 12px; min-width: 0; }
.dv-boxes span { display: block; font-size: 11px; color: var(--mut); }
.dv-boxes b { display: block; font-size: 17px; margin-top: 2px; }
.cat-card.is-device .cat-panel { height: auto; min-height: 0; max-height: none; overflow: visible; background: transparent; padding: 0; }
.cat-card.is-device .dv { flex: 1 1 auto; }
.cat-card.is-device .cat-desc, .cat-card.is-device .cat-block p { display: block; -webkit-line-clamp: unset; overflow: visible; }
.cat-card.is-device .cat-card-title { align-items: center; }


/* 하루 리듬 상세 · 취침 원그래프 + 막대 */
.ry-bed { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; }
.ry-donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ry-donut { position: relative; width: 116px; height: 116px; border-radius: 50%; }
.ry-donut span { position: absolute; inset: 20px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: var(--ink2); }
.ry-donut span b { font-size: 22px; color: var(--ink); line-height: 1.1; }
.ry-donut-legend { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--ink2); white-space: nowrap; }
.ry-donut-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.ry-bed-bars { min-width: 0; }
@media (max-width: 700px) { .ry-bed { grid-template-columns: 1fr; } }
/* 외출 정보 · 세 카드 높이가 같을 때 그래프가 남는 높이를 채움 */
.ry-fill .ry-fine { flex: 1 1 auto; min-height: 120px; }
.ry-fill .ry-fine:not(.has-zero) .ry-fine-plot { flex: 1 1 auto; height: auto; min-height: 96px; }
.ry-fill .ry-fine.has-zero .ry-fine-main .ry-fine-plot { flex: 1 1 auto; height: auto; min-height: 96px; }
.ry-fill .ry-fine-zero { height: auto; }
.ry-fill .ry-fine-zero i { flex: 0 0 auto; }

/* 개인 리듬 · 한 사람의 하루를 여러 기록 줄로 */
.pd { display: flex; flex-direction: column; gap: 12px; }
.pd-strip { display: flex; gap: 3px; overflow-x: auto; padding-bottom: 2px; }
.pd-day { position: relative; flex: 1 0 30px; min-width: 30px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 0 6px; border: 1px solid #E2E8F0; border-radius: 8px; background: #fff; color: var(--ink2); text-decoration: none; overflow: hidden; }
.pd-day em { font-style: normal; font-size: 10px; color: var(--mut); }
.pd-day b { font-size: 13px; font-weight: 700; position: relative; z-index: 1; }
.pd-day i { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: #2F855A; }
.pd-day s { position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: #E07A3A; text-decoration: none; }
.pd-day.is-weekend em, .pd-day.is-weekend b { color: #DC2626; }
.pd-day.is-none { background: #F8FAFC; color: #CBD5E1; }
.pd-day.is-none b { color: #CBD5E1; }
.pd-day:hover { border-color: #94A3B8; }
.pd-day.on { border: 2px solid #0F172A; background: #F1F5F9; }
.pd-note { margin: 0; font-size: 12px; color: var(--mut); line-height: 1.5; word-break: keep-all; }
.pd-head { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: #F8FAFC; border-radius: 12px; }
.pd-nav { display: flex; align-items: center; gap: 8px; }
.pd-nav b { font-size: 16px; }
.pd-arrow { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #CBD5E1; border-radius: 6px; background: #fff; color: var(--ink); text-decoration: none; font-size: 16px; line-height: 1; }
.pd-arrow.is-off { color: #CBD5E1; border-color: #E2E8F0; }
.pd-story { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; word-break: keep-all; }
.pd-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-facts span { font-size: 12px; background: #fff; border: 1px solid #E2E8F0; border-radius: 999px; padding: 3px 10px; color: var(--ink2); }
.pd-read { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-height: 22px; font-size: 13px; color: var(--ink2); padding: 0 2px; }
.pd-read b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pd-read em { font-style: normal; color: var(--mut); font-size: 11px; }
.pd-read .pd-r-state { font-weight: 700; color: var(--ink); }
.pd-board { display: flex; flex-direction: column; }
.pd-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: stretch; }
.pd-lanes { position: relative; display: flex; flex-direction: column; cursor: crosshair; }
.pd-lanes > .pd-row { border-top: 1px solid #F1F5F9; padding: 8px 0; }
.pd-lab { display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.pd-lab b { font-size: 13px; }
.pd-lab span { font-size: 11px; color: var(--mut); }
.pd-axis-row .pd-axis { position: relative; height: 18px; font-size: 11px; color: var(--ink2); }
.pd-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.pd-axis span:first-child { transform: none; }
.pd-axis span:last-child { transform: translateX(-100%); }
.pd-over { position: absolute; top: 0; bottom: 0; left: 122px; right: 0; pointer-events: none; z-index: 2; }
.pd-grid { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed #E2E8F0; }
.pd-gap { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(-45deg, rgba(148, 163, 184, 0.18) 0 4px, transparent 4px 8px); }
.pd-cursor { display: none; position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid #0F172A; }
.pd-track { position: relative; min-width: 0; }
.pd-track em { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; color: var(--mut); }
.pd-flow { height: 44px; }
.pd-band { position: absolute; bottom: 10px; height: 16px; border-radius: 3px; }
.pd-sleep { background: #7B79E5; }
.pd-sleep.is-unknown, .pd-k-unknown { background: repeating-linear-gradient(-45deg, #C7C6F5 0 3px, #EEEEFC 3px 6px); }
.pd-out { background: #E07A3A; }
.pd-open { position: absolute; bottom: 13px; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: #fff; border: 2px solid #E07A3A; box-sizing: border-box; }
.pd-pin { position: absolute; top: 4px; bottom: 26px; width: 0; border-left: 2px solid currentColor; }
.pd-pin::before { content: ""; position: absolute; top: -3px; left: -5px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pd-pin.is-wake, .pd-st.is-wake { color: #B7791F; }
.pd-pin.is-sleep, .pd-st.is-sleep { color: #5B59C8; }
.pd-pin.is-out, .pd-pin.is-in, .pd-st.is-out, .pd-st.is-in { color: #C2410C; }
.pd-st { white-space: nowrap; }
.pd-st i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 2px; }
.pd-then { margin: 0 10px; color: var(--mut); font-weight: 400; }
.pd-steps { height: 64px; border-bottom: 1px solid #E2E8F0; }
.pd-steps i { position: absolute; bottom: 0; width: calc(100% / 48 - 2px); margin-left: 1px; background: #2F855A; border-radius: 2px 2px 0 0; min-height: 2px; }
.pd-dist { height: 56px; }
.pd-dist svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pd-dist polyline { fill: none; stroke: #2563EB; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.pd-dist { border-bottom: 1px solid #E2E8F0; }
.pd-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink2); }
.pd-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.pd-k-sleep { background: #7B79E5; }
.pd-legend i.pd-k-pin { width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.pd-k-pin.is-wake { background: #B7791F; }
.pd-k-pin.is-out { background: #C2410C; }
.pd-k-pin.is-sleep { background: #5B59C8; }
.pd-k-out { background: #E07A3A; }
.pd-k-open { width: 10px !important; height: 10px !important; border-radius: 50% !important; border: 2px solid #E07A3A; box-sizing: border-box; background: #fff; }
.pd-k-gap { background: repeating-linear-gradient(-45deg, rgba(148, 163, 184, 0.45) 0 3px, transparent 3px 6px); border: 1px solid #E2E8F0; }
@media (max-width: 700px) { .pd-row { grid-template-columns: 80px minmax(0, 1fr); } .pd-over { left: 90px; } }

/* 기기 사용 상세 · 홈 카드 점 분포 */
.dv-bee { position: relative; display: flex; flex-direction: column; gap: 6px; }
.dv-bee-marks { position: absolute; left: 46px; right: 0; top: 0; bottom: 22px; pointer-events: none; }
.dvx-hours { margin-top: 14px; }
.dvx-hours .dv-plot { height: 130px; }
.dvx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.dvx-facts div { display: flex; flex-direction: column; gap: 2px; background: #F8FAFC; border-radius: 10px; padding: 10px 12px; }
.dvx-facts span { font-size: 12px; color: var(--ink2); font-weight: 600; }
.dvx-facts b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.dvx-facts em { font-style: normal; font-size: 12px; color: var(--mut); word-break: keep-all; }
.dvx-split { display: flex; height: 22px; border-radius: 6px; overflow: hidden; }
.dvx-split i { display: block; height: 100%; }
.dvx-split-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink2); }
.dvx-split-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }
.dvx-split-legend em { font-style: normal; color: var(--mut); }
.dvx-compare { display: flex; flex-direction: column; gap: 14px; padding: 8px 0; }
.dvx-cmp-row { display: grid; grid-template-columns: 92px 1fr 56px; align-items: center; gap: 10px; }
.dvx-cmp-row span { font-size: 14px; font-weight: 700; }
.dvx-cmp-track { height: 26px; background: #F1F5F9; border-radius: 6px; overflow: hidden; }
.dvx-cmp-track i { display: block; height: 100%; border-radius: 6px; }
.dvx-cmp-row b { font-size: 22px; font-weight: 800; text-align: right; }
.dv-boxes-note { margin: -4px 0 0; font-size: 12px; color: var(--mut); }
.dv-boxes { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); }
.dv-bee .cat-bee-row { grid-template-columns: 46px minmax(0, 1fr); }
.dv-bee .cat-bee-lab { white-space: nowrap; }
.dv-bee .cat-bee-axis, .dv-bee-marks { margin-left: 0; left: 56px; }
.dv-bee .cat-bee-axis { margin-left: 56px; left: 0; }
.dvx-sub { margin: 6px 0 0; font-size: 14px; font-weight: 700; }
.dvx-groups { display: flex; flex-direction: column; gap: 8px; }
.dvx-group { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 10px; }
.dvx-group-lines { display: flex; flex-direction: column; gap: 3px; }
.dvx-gl { display: grid; grid-template-columns: 16px minmax(0, 1fr) 40px; align-items: center; gap: 6px; font-size: 12px; }
.dvx-gl em { font-style: normal; color: var(--ink2); }
.dvx-gl-track { height: 9px; background: #F1F5F9; border-radius: 4px; overflow: hidden; }
.dvx-gl-track i { display: block; height: 100%; border-radius: 4px; }
.dvx-gl b { text-align: right; font-weight: 700; }
.dvx-hist { height: 150px; padding-bottom: 38px; }
.dvx-hist .ry-hist-col span { bottom: -35px; display: flex; flex-direction: column; align-items: center; line-height: 1.3; text-align: center; }
.dvx-hist .ry-hist-col span b { font-weight: 700; color: var(--ink); }
.gait-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.gait-boxes > div { background: #fff; border: 1px solid #E2E8F0; border-radius: 10px; padding: 8px 12px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gait-boxes span { font-size: 12px; color: var(--ink2); font-weight: 700; }
.gait-boxes b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.gait-boxes em { font-style: normal; font-size: 11px; color: var(--mut); word-break: keep-all; }
.gait-note { margin: 6px 0 0; font-size: 12px; color: var(--mut); line-height: 1.45; word-break: keep-all; }
.motion-stack { display: flex; flex-direction: column; width: 100%; min-width: 0; gap: 4px; }
.gait-note b { color: var(--ink2); margin-right: 4px; }
.motion-stack { height: 100%; }
.motion-stack .gait-boxes { margin-top: 6px; flex: none; }
.motion-stack .gait-boxes > div { padding: 5px 10px; }
.motion-stack .gait-boxes b { font-size: 17px; }
.cat-card .cat-viz .motion-stack .posture-bars { flex: none; height: 108px; padding: 2px 0 0; }
.motion-stack .posture-track { min-height: 20px; }
.motion-stack .gait-boxes em { display: none; }

/* 걸음 카드 · 사람마다 다른 일주일 */
.pw { display: flex; flex-direction: column; gap: 8px; background: #F8FAFC; border-radius: 12px; padding: 14px; height: 100%; box-sizing: border-box; min-width: 0; }
.pw-head { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.pw-sub { margin: 2px 0 0; font-size: 11px; color: var(--mut); line-height: 1.4; word-break: keep-all; }
.pw-people { display: flex; flex-direction: column; gap: 6px; }
.pw-who { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink2); margin-bottom: 2px; min-width: 0; }
.pw-who em { font-style: normal; color: #fff; font-weight: 700; border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.pw-who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-avg { margin-left: auto; color: var(--mut); }
.pw-grid { display: flex; flex-direction: column; gap: 1px; }
.pw-row { display: grid; grid-template-columns: 34px 14px minmax(0, 1fr) 52px; align-items: center; gap: 5px; border-radius: 4px; padding: 2px 3px; }
.pw-row span { font-size: 9px; color: var(--mut); line-height: 1; }
.pw-cells { display: grid; grid-template-columns: repeat(24, 1fr); gap: 1px; }
.pw-cells i { display: block; height: 5px; border-radius: 1px; }
.pw-axis { display: grid; grid-template-columns: 34px 14px minmax(0, 1fr) 52px; gap: 5px; padding: 0 3px; align-items: start; }
.pw-axis div { position: relative; height: 12px; font-size: 9px; color: var(--mut); }
.pw-axis i { position: absolute; font-style: normal; transform: translateX(-50%); }
.pw-axis i:first-child { transform: none; }
.pw-axis i:last-child { transform: translateX(-100%); }
.pw-types { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 11px; color: var(--ink2); margin-top: auto; }
.pw-types i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.cat-card.is-pw .cat-panel, .cat-card.is-gait .cat-panel { padding: 0; background: none; }

/* 자세 카드 · 보폭·보속 머리 */
.gt { display: flex; flex-direction: column; gap: 6px; background: #F8FAFC; border-radius: 12px; padding: 14px; height: 100%; box-sizing: border-box; min-width: 0; }
.gt-nums { display: flex; gap: 18px; }
.gt-nums div { display: flex; flex-direction: column; }
.gt-nums span { font-size: 11px; font-weight: 700; color: var(--ink2); }
.gt-nums b { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.gt-sub { margin: 2px 0 0; font-size: 11px; color: var(--mut); line-height: 1.4; word-break: keep-all; }
.gt-hist { display: flex; align-items: flex-end; gap: 3px; height: 74px; padding-bottom: 14px; position: relative; }
.gt-hist div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.gt-hist i { display: block; background: #A78BFA; border-radius: 2px 2px 0 0; min-height: 2px; }
.gt-hist span { position: absolute; bottom: -14px; left: 0; right: 0; text-align: center; font-size: 9px; color: var(--mut); white-space: nowrap; }
.gt-cap { margin: 0; font-size: 10px; color: var(--mut); }
.gt-posture { margin-top: auto; border-top: 1px solid #E2E8F0; padding-top: 6px; }
.gt-posture-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--mut); margin-bottom: 4px; }
.gt-posture-head b { color: var(--ink); font-size: 12px; }
.gt-strip { display: flex; height: 12px; border-radius: 4px; overflow: hidden; }
.gt-strip i { display: block; height: 100%; }
.gt-legend { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 10px; color: var(--ink2); margin-top: 4px; }
.gt-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 3px; }
.gt-p1 { background: #60A5FA; } .gt-p2 { background: #34D399; } .gt-p3 { background: #FBBF24; }
.gt-p4 { background: #A78BFA; } .gt-p5 { background: #CBD5E1; } .gt-p6 { background: #EF4444; }
.pw-cells i { height: 7px; }
.pw-people { gap: 8px; }
.pw-head { font-size: 18px; }

/* 날씨에 따라 · 같은 사람 평소 대비 */
.wxe-head { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; word-break: keep-all; }
.wxe-grid { gap: 24px; margin-top: 4px; }
.wxe-title { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.wxe-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 52px 64px; align-items: center; gap: 10px; padding: 5px 0; }
.wxe-row > span { font-size: 13px; font-weight: 700; }
.wxe-track { position: relative; height: 18px; background: #F1F5F9; border-radius: 4px; }
.wxe-track s { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 0; border-left: 2px solid #94A3B8; }
.wxe-track i { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; }
.wxe-track i.is-neg { background: #F97316; }
.wxe-track i.is-pos { background: #22C55E; }
.wxe-row b { font-size: 16px; font-weight: 800; text-align: right; }
.wxe-row b.is-neg { color: #C2410C; }
.wxe-row em { font-style: normal; font-size: 11px; color: var(--mut); text-align: right; }
.wxe-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--mut); padding: 0 140px 0 86px; }
@media (max-width: 900px) { .wxe-axis { padding: 0; } }
.wxe-scale { padding-top: 0; }
.wxe-scale div { display: flex; justify-content: space-between; font-size: 11px; color: var(--mut); }
.wxe-scale i { font-style: normal; }
.wxe-row { grid-template-columns: 76px minmax(0, 1fr) 52px 96px; }
.gt-hist.is-empty { align-items: center; justify-content: center; background: #F1F5F9; border-radius: 8px; padding: 0; }
.gt-hist.is-empty p { margin: 0; font-size: 12px; color: var(--mut); }

/* 위치·이동거리 카드 · 연령대별 생활 반경 */
.rd { display: flex; flex-direction: column; gap: 10px; background: #F8FAFC; border-radius: 12px; padding: 14px; height: 100%; box-sizing: border-box; min-width: 0; }
.rd-head { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; word-break: keep-all; }
.rd-sub { margin: 2px 0 0; font-size: 12px; color: var(--ink2); line-height: 1.4; word-break: keep-all; }
.rd-groups { display: flex; flex-direction: column; gap: 7px; }
.rd-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 44px 46px; align-items: center; gap: 8px; font-size: 12px; }
.rd-row.is-few { opacity: .45; }
.rd-age { display: flex; align-items: center; gap: 5px; color: var(--ink2); white-space: nowrap; }
.rd-age i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.rd-track { height: 14px; background: #E2E8F0; border-radius: 4px; overflow: hidden; }
.rd-track i { display: block; height: 100%; background: #3B82F6; border-radius: 4px; }
.rd-row b { text-align: right; font-weight: 800; }
.rd-row em { font-style: normal; color: var(--mut); font-size: 11px; white-space: nowrap; }
.rd-bands { margin-top: auto; border-top: 1px solid #E2E8F0; padding-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.rd-bands-head { display: flex; flex-direction: column; gap: 1px; }
.rd-bands-head b { font-size: 12px; }
.rd-bands-head span { font-size: 11px; color: var(--mut); word-break: keep-all; }
.rd-strip { display: flex; height: 12px; border-radius: 4px; overflow: hidden; }
.rd-strip i { display: block; height: 100%; }
.rd-legend { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 11px; color: var(--ink2); }
.rd-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.rd-legend small { color: var(--mut); font-size: 10px; }
.rd-meta { margin: 0; font-size: 10px; color: var(--mut); }
.cat-card.is-radius .cat-panel { padding: 0; background: none; }

/* 이동거리 · 걸음×이동거리 산점도 */
.dsc { display: flex; flex-direction: column; gap: 10px; background: #F8FAFC; border-radius: 12px; padding: 14px; }
.dsc-svg { width: 100%; height: auto; display: block; }
.dsc-t { font-size: 12px; fill: #64748B; }
.dsc-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dsc-mode { display: flex; gap: 8px; align-items: flex-start; background: #fff; border-radius: 8px; padding: 8px 10px; }
.dsc-mode > i { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex: none; }
.dsc-mode b { display: block; font-size: 14px; }
.dsc-mode b span { font-size: 16px; font-weight: 800; margin-left: 2px; }
.dsc-mode em { display: block; font-style: normal; font-size: 11px; color: #64748B; word-break: keep-all; }
.dsc-note { margin: 0; font-size: 11px; color: #64748B; }
@media (max-width: 640px) { .dsc-modes { grid-template-columns: 1fr; } }

/* STT · 워드클라우드 단어로 녹음 찾기 */
.wv { align-content: start; min-width: 0; }
.wv.is-loading { opacity: .55; transition: opacity .15s; }
.wv-head .ttl { margin: 0; }
.wv-list { display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow-y: auto; }
.wv-list article { border: 1px solid var(--line, #E2E8F0); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.wv-list audio { width: 100%; height: 36px; }
.wv-list p { margin: 0; }

/* 자세 더보기 */
.mo-strip { display: flex; height: 22px; border-radius: 6px; overflow: hidden; }
.mo-strip i { display: block; height: 100%; }
.mo-rows { display: flex; flex-direction: column; gap: 10px; }
.mo-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 64px 90px; align-items: center; gap: 12px; }
.mo-name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.mo-name img { width: 20px; height: 20px; object-fit: contain; }
.mo-track { height: 18px; background: #F1F5F9; border-radius: 5px; overflow: hidden; }
.mo-track i { display: block; height: 100%; border-radius: 5px; }
.mo-row b { font-size: 20px; font-weight: 800; text-align: right; }
.mo-row em { font-style: normal; color: var(--mut); font-size: 12px; text-align: right; }
.mo-hours { display: flex; align-items: flex-end; gap: 3px; height: 220px; padding-bottom: 18px; }
.mo-col { flex: 1; height: 100%; display: flex; flex-direction: column; position: relative; min-width: 0; }
.mo-stack { flex: 1; display: flex; flex-direction: column-reverse; border-radius: 3px; overflow: hidden; background: #F8FAFC; }
.mo-stack i { display: block; width: 100%; }
.mo-col span { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--mut); }
.mo-col.is-thin .mo-stack { background: repeating-linear-gradient(45deg, #F8FAFC, #F8FAFC 3px, #EEF2F6 3px, #EEF2F6 6px); }
.mo-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink2); }
.mo-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.mo-people { display: flex; flex-direction: column; gap: 6px; }
.mo-p { display: grid; grid-template-columns: 150px minmax(0, 1fr) 70px 100px; align-items: center; gap: 10px; font-size: 13px; }
.mo-p > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.mo-p small { font-weight: 400; color: var(--mut); }
.mo-p > b { text-align: right; font-size: 15px; }
.mo-p > b.is-high { color: #7C3AED; }
.mo-p > em { font-style: normal; color: var(--mut); font-size: 12px; text-align: right; }
.mo-p-head { font-size: 11px; color: var(--mut); }
.mo-p-head > span, .mo-p-head > b { font-weight: 600; font-size: 11px; color: var(--mut); }
.mo-pstrip { display: flex; height: 14px; border-radius: 4px; overflow: hidden; background: #F1F5F9; }
.mo-pstrip i { display: block; height: 100%; }
@media (max-width: 640px) {
  .mo-row { grid-template-columns: 90px minmax(0, 1fr) 52px; }
  .mo-row em { display: none; }
  .mo-p { grid-template-columns: 96px minmax(0, 1fr) 52px; }
  .mo-p > em { display: none; }
}

.mo-odd { display: flex; flex-direction: column; gap: 6px; }
.mo-o { display: grid; grid-template-columns: 150px 80px minmax(0, 1fr) 56px 56px; align-items: center; gap: 10px; font-size: 13px; }
.mo-o > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.mo-o small { font-weight: 400; color: var(--mut); }
.mo-o > b { text-align: right; color: #7C3AED; font-size: 15px; }
.mo-o > em { font-style: normal; text-align: right; color: var(--mut); }
.mo-o-head, .mo-o-head > span:first-child, .mo-o-head > b { font-size: 11px; color: var(--mut); font-weight: 600; }
.mo-otrack { position: relative; height: 14px; background: #F1F5F9; border-radius: 4px; overflow: hidden; }
.mo-otrack i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.mo-otrack i.is-day { background: #A78BFA; }
.mo-otrack i.is-usual { background: #94A3B8; z-index: 1; height: 5px; top: 4.5px; }
@media (max-width: 640px) { .mo-o { grid-template-columns: 90px 64px minmax(0, 1fr) 48px; } .mo-o > em { display: none; } }

/* 걸음 카드 · 날씨·요일·미세먼지 */
.sl { display: flex; flex-direction: column; gap: 10px; background: #F8FAFC; border-radius: 12px; padding: 14px; height: 100%; box-sizing: border-box; min-width: 0; }
.sl-head { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; word-break: keep-all; }
.sl-sub { margin: 2px 0 0; font-size: 12px; color: var(--ink2); word-break: keep-all; }
.sl-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sl-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; background: #fff; border-radius: 8px; padding: 8px; }
.sl-title { font-size: 12px; color: var(--ink); margin-bottom: 2px; }
.sl-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 34px; align-items: center; gap: 4px; font-size: 11px; }
.sl-row > span { color: var(--ink2); white-space: nowrap; }
.sl-row.is-empty { opacity: .45; }
.sl-track { position: relative; height: 10px; background: #F1F5F9; border-radius: 3px; }
.sl-track s { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: #94A3B8; }
.sl-track i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.sl-track i.is-neg { background: #F97316; }
.sl-track i.is-pos { background: #22C55E; }
.sl-row em { font-style: normal; font-weight: 700; text-align: right; color: var(--ink); }
.sl-row em.is-neg { color: #C2410C; }
.sl-empty { margin: 2px 0 0; font-size: 10px; color: var(--mut); }
.sl-note { margin: 0; font-size: 10px; color: var(--mut); line-height: 1.4; }
.cat-card.is-sl .cat-panel, .cat-card.is-sv .cat-panel { padding: 0; background: none; }
/* STT 카드 · 이 데이터만의 특징 */
.sv { display: flex; flex-direction: column; gap: 10px; background: #F8FAFC; border-radius: 12px; padding: 14px; height: 100%; box-sizing: border-box; min-width: 0; }
.sv-head { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; word-break: keep-all; }
.sv-sub { margin: 2px 0 0; font-size: 12px; color: var(--ink2); word-break: keep-all; line-height: 1.4; }
.sv-strip { display: flex; height: 16px; border-radius: 5px; overflow: hidden; }
.sv-strip i { display: block; height: 100%; }
.sv-legend { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 11px; color: var(--ink2); margin-top: 4px; }
.sv-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.sv-cap { margin: 2px 0 0; font-size: 10px; color: var(--mut); }
.sv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.sv-grid > div { background: #fff; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; }
.sv-grid b { font-size: 20px; font-weight: 800; color: #4F46E5; line-height: 1.1; }
.sv-grid span { font-size: 12px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.sv-grid em { font-style: normal; font-size: 10px; color: var(--mut); }

/* STT 더보기 · 이 STT만의 특징 */
.stt-why { display: flex; flex-direction: column; gap: 12px; background: #EEF2FF; border: 1px solid #C7D2FE; border-radius: 14px; padding: 16px; margin: 4px 0 8px; }
.stt-why-head h3 { margin: 4px 0 4px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; word-break: keep-all; color: #1E1B4B; }
.stt-why-head .eyebrow { font-size: 12px; font-weight: 700; color: #4F46E5; }
.stt-why-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.stt-why-grid > div { background: #fff; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.stt-why-grid b { font-size: 24px; font-weight: 800; color: #4F46E5; line-height: 1.1; }
.stt-why-grid strong { font-size: 13px; color: #1E1B4B; }
.stt-why-grid p { margin: 0; font-size: 12px; color: var(--ink2); line-height: 1.45; word-break: keep-all; }
@media (max-width: 1000px) { .stt-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stt-why-grid { grid-template-columns: 1fr; } }

.sl-title small { font-weight: 400; font-size: 10px; color: var(--mut); }

.pw-wx { font-size: 11px; line-height: 1; text-align: center; color: #64748B; font-weight: 400; }
.pw-air { display: block; width: 8px; height: 8px; border-radius: 50%; background: #E2E8F0; }
.pw-air.is-good, .pw-wxkey i.is-good { background: #22C55E; }
.pw-air.is-mid, .pw-wxkey i.is-mid { background: #FACC15; }
.pw-air.is-bad, .pw-wxkey i.is-bad { background: #EF4444; }
.pw-wxkey { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 10px; color: var(--mut); }
.pw-wxkey i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 0 3px 0 6px; vertical-align: 0; }
.pw-link { margin: 0; font-size: 11px; color: var(--ink2); background: #fff; border-radius: 6px; padding: 6px 8px; line-height: 1.4; word-break: keep-all; }
.pw-link b { color: var(--ink); }
.cat-card.is-pw .cat-panel { height: auto; min-height: 0; max-height: none; overflow: visible; }
.pw-axis i { white-space: nowrap; }

/* 걸음 카드 · 날씨가 보이게 */
.pw-row.is-rain { background: #DBEAFE; }
.pw-row.is-snow { background: #E0E7FF; }
.pw-row.is-rain .pw-wx, .pw-row.is-snow .pw-wx { color: #1D4ED8; font-weight: 700; }
.pw-bar { position: relative; height: 7px; background: #E2E8F0; border-radius: 2px; overflow: hidden; }
.pw-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #059669; border-radius: 2px; }
.pw-bar i.is-low { background: #F97316; }
.pw-bar s { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: #0F172A; opacity: .55; }
.pw-air { font-style: normal; font-size: 9px; font-weight: 700; color: #DC2626; text-align: center; line-height: 1; }
.pw-lead { margin: 3px 0 0; font-size: 12px; font-weight: 700; color: var(--ink2); word-break: keep-all; }
.pw-wxkey i.is-rainkey { display: inline-block; width: 12px; height: 8px; border-radius: 2px; background: #DBEAFE; border: 1px solid #93C5FD; margin: 0 4px 0 0; vertical-align: -1px; }
.pw-lowkey { color: #EA580C; }

/* STT 카드 · 실제 기록 한 건 */
.sv-scene { background: #fff; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; margin-top: auto; }
.sv-scene-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; }
.sv-scene-top b { color: #4F46E5; }
.sv-scene-top span { color: var(--mut); font-size: 11px; }
.sv-turn { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; align-items: start; }
.sv-turn em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--mut); padding-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-turn p { margin: 0; font-size: 13px; line-height: 1.45; border-radius: 8px; padding: 6px 9px; word-break: keep-all; }
.sv-turn.is-ai p { background: #F1F5F9; color: var(--ink2); }
.sv-turn.is-me em { color: #4F46E5; }
.sv-turn.is-me p { background: #EEF2FF; color: #1E1B4B; font-weight: 600; }
.sv-scene audio { width: 100%; height: 34px; }
.sv-noplay { margin: 0; font-size: 11px; color: var(--mut); }
.sv-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.sv-facts span { display: flex; flex-direction: column; background: #F8FAFC; border-radius: 6px; padding: 5px 8px; min-width: 0; }
.sv-facts small { font-size: 10px; color: var(--mut); }
.sv-facts b { font-size: 13px; }
.sv-facts i { font-style: normal; font-size: 10px; color: var(--ink2); }

.stt-why-scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stt-why-scenes .sv-scene { margin-top: 0; }
@media (max-width: 1000px) { .stt-why-scenes { grid-template-columns: 1fr; } }

/* STT 카드 · 왼쪽 특징·실제 기록, 오른쪽 워드클라우드 */
.sv.sv-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.sv-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sv-cloud { display: flex; flex-direction: column; gap: 6px; min-width: 0; background: #fff; border-radius: 10px; padding: 10px 12px; }
.sv-cloud-label { margin: 0; font-size: 12px; font-weight: 700; color: var(--ink); }
.sv-cloud-label span { font-weight: 400; color: var(--mut); font-size: 11px; margin-left: 6px; }
.sv-cloud .cat-cloud { flex: 1; min-height: 300px; }
@media (max-width: 900px) { .sv.sv-split { grid-template-columns: 1fr; } }

/* STT 카드 v3 · 규모 → 특징 → 실제 기록 / 주제 라벨 + 워드클라우드 */
.sv-scale { margin: 0; font-size: 12px; color: var(--ink2); background: #fff; border-radius: 6px; padding: 5px 9px; }
.sv-scale b { color: #4F46E5; margin-right: 4px; }
.sv-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sv-why > div { background: #fff; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.sv-why b { font-size: 22px; font-weight: 800; color: #4F46E5; line-height: 1.1; }
.sv-why span { font-size: 12px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.sv-why em { font-style: normal; font-size: 10.5px; color: var(--mut); line-height: 1.35; word-break: keep-all; }
.sv-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.sv-tags span { font-size: 11px; background: #EEF2FF; color: #3730A3; border-radius: 999px; padding: 2px 8px; }
.sv-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sv-topics { background: #fff; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; }
.sv-trow { display: grid; grid-template-columns: 120px minmax(0, 1fr) 44px; align-items: center; gap: 8px; font-size: 12px; }
.sv-trow span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink2); }
.sv-trow div { height: 10px; background: #F1F5F9; border-radius: 3px; overflow: hidden; }
.sv-trow i { display: block; height: 100%; border-radius: 3px; }
.sv-trow b { text-align: right; font-size: 12px; }
.sv-side .sv-cloud { flex: 1; }
.sv-side .sv-cloud .cat-cloud { min-height: 220px; }
@media (max-width: 640px) { .sv-why { grid-template-columns: 1fr; } }

/* 걸음 카드 · 그림 범례 */
.pw-axis em { font-style: normal; font-size: 9px; color: var(--mut); text-align: center; grid-column: 4 / span 2; }
.pw-keys { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 8px; background: #fff; border-radius: 8px; padding: 8px 10px; }
.pw-key { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pw-key > b { font-size: 11px; color: var(--ink); }
.pw-ramp { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; height: 8px; }
.pw-ramp i { display: block; border-radius: 1px; }
.pw-ramp-t { display: flex; justify-content: space-between; font-size: 9px; color: var(--mut); }
.pw-ramp-t em { font-style: normal; }
.pw-demo { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 6px; font-size: 10px; color: var(--ink2); }
.pw-demo em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-demo .pw-bar { width: 40px; }
.pw-rainchip { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 12px; background: #DBEAFE; border-radius: 3px; color: #1D4ED8; font-size: 10px; }
.pw-badair { color: #DC2626; }
@media (max-width: 640px) { .pw-keys { grid-template-columns: 1fr; } }

/* STT 더보기 · 주제 카드 */
.tb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tb-card { border: 1px solid var(--line, #E2E8F0); border-top: 4px solid var(--tc); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 9px; min-width: 0; background: #fff; }
.tb-head b { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.tb-no { font-size: 11px; color: var(--mut); font-weight: 600; }
.tb-head span { display: block; font-size: 11px; color: var(--mut); margin-top: 2px; }
.tb-dur { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.tb-dur small { font-size: 11px; color: var(--ink2); }
.tb-dur b { font-size: 15px; }
.tb-dur em { grid-column: 2 / span 2; font-style: normal; font-size: 10px; color: var(--tc); font-weight: 700; margin-top: -4px; }
.tb-dur-track { position: relative; height: 10px; background: #F1F5F9; border-radius: 3px; }
.tb-dur-track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--tc); border-radius: 3px; opacity: .85; }
.tb-dur-track s { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #334155; }
.tb-subs { display: flex; flex-direction: column; gap: 3px; }
.tb-subs > div { display: grid; grid-template-columns: 92px minmax(0, 1fr) 40px; align-items: center; gap: 6px; font-size: 11px; }
.tb-subs span { color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-subs > div > div { height: 6px; background: #F1F5F9; border-radius: 3px; overflow: hidden; }
.tb-subs i { display: block; height: 100%; background: var(--tc); opacity: .55; }
.tb-subs b { text-align: right; font-size: 11px; }
.tb-scene { display: flex; flex-direction: column; gap: 5px; background: #F8FAFC; border-radius: 8px; padding: 8px; }
.tb-scene .sv-turn { grid-template-columns: 68px minmax(0, 1fr); }
.tb-scene .sv-turn p { font-size: 12px; padding: 5px 8px; }
.tb-scene audio { width: 100%; height: 32px; }
.tb-q { margin: 0; font-size: 12px; color: var(--ink2); line-height: 1.45; word-break: keep-all; }
.tb-q small { display: block; font-size: 10px; color: var(--mut); }
.tb-q b { color: var(--tc); }
.tb-more { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--tc); text-decoration: none; }
@media (max-width: 1100px) { .tb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tb-grid { grid-template-columns: 1fr; } }

.pw-demo em { white-space: normal; overflow: visible; line-height: 1.25; }
.pw-wxset { display: inline-flex; justify-content: center; width: 40px; font-size: 10px; color: #64748B; font-weight: 700; }
.pw-keys { grid-template-columns: 1fr 1.1fr 1fr; }

/* 활동·이동 카드 손질 */
.pw-row > span { font-size: 10px; color: var(--ink2); line-height: 1.1; white-space: nowrap; }
.pw-row > span small { margin-left: 2px; color: var(--mut); font-size: 9px; }
.pw-row .pw-cells i { height: 12px; }
.pw-row .pw-bar { height: 10px; }
.pw-axis em { grid-column: 4; }
.cat-card.is-radius .cat-panel { height: auto; min-height: 0; max-height: none; overflow: visible; }
.rd-ride { display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: 8px; padding: 8px 10px; }
.rd-ride-svg { width: 100%; height: auto; display: block; }
.rd-ride-modes { display: flex; gap: 12px; font-size: 11px; color: var(--ink2); }
.rd-ride-modes i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.gt-figs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-bottom: 6px; }
.gt-fig { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border-radius: 8px; padding: 6px 2px; min-width: 0; }
.gt-fig img { width: 22px; height: 22px; object-fit: contain; }
.gt-fig b { font-size: 14px; font-weight: 800; }
.gt-fig span { font-size: 10px; color: var(--ink2); white-space: nowrap; display: flex; align-items: center; gap: 3px; }
.gt-fig span i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; }
.gt-fig.is-zero { opacity: .45; }
.rd-ride-svg .dsc-t { font-size: 26px; font-weight: 600; }

/* 걸음 범례를 세로로 쌓는다 */
.pw-keys { grid-template-columns: 1fr !important; gap: 8px; }
.pw-key { flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
.pw-key > b { min-width: 118px; }
.pw-key .pw-ramp { width: 120px; }
.pw-key .pw-ramp-t { width: 120px; }
.pw-key-ramp { display: flex; flex-direction: column; gap: 2px; }
.pw-demo { grid-template-columns: 40px auto; }

.rd-radar { width: min(100%, 300px); margin: 4px auto 0; }

.song-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.song-kpis div { background: #F5F3FF; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.song-kpis b { font-size: 20px; font-weight: 800; color: #6B4EA8; }
.song-kpis span { font-size: 12px; color: var(--ink2); }
@media (max-width: 640px) { .song-kpis { grid-template-columns: 1fr 1fr; } }

.song-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; }
.song-top { display: flex; flex-direction: column; gap: 6px; background: #F8FAFC; border-radius: 10px; padding: 10px 12px; }
.song-top > div { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 40px; align-items: center; gap: 8px; font-size: 12px; }
.song-top span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-top small, .song-list small { color: var(--mut); font-weight: 400; }
.song-top > div > div { height: 8px; background: #EDE9FE; border-radius: 3px; overflow: hidden; }
.song-top i { display: block; height: 100%; background: #6B4EA8; }
.song-top em { font-style: normal; text-align: right; font-weight: 700; }
.song-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.song-list article { border: 1px solid var(--line, #E2E8F0); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.song-list audio { width: 100%; height: 32px; }
@media (max-width: 900px) { .song-grid, .song-list { grid-template-columns: 1fr; } }

.song-all { color: #6B4EA8; }
.song-kpis span { word-break: keep-all; }
.song-list-full { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .song-list-full { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .song-list-full { grid-template-columns: 1fr; } }

/* 걸음 더보기 · 다른 기록과 함께 */
.sc-head { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; word-break: keep-all; }
.sc-row, .sc-scale { display: grid; grid-template-columns: 170px minmax(0, 1fr) 56px 86px; align-items: center; gap: 10px; }
.sc-row span { display: flex; flex-direction: column; font-size: 13px; }
.sc-row span small { font-size: 11px; color: var(--mut); }
.sc-track { position: relative; height: 14px; background: #F1F5F9; border-radius: 4px; }
.sc-track s { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: #334155; }
.sc-track i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.sc-track i.is-neg { background: #F97316; }
.sc-track i.is-pos { background: #10B981; }
.sc-row em { font-style: normal; font-weight: 800; font-size: 17px; text-align: right; }
.sc-row em.is-neg { color: #C2410C; }
.sc-row em.is-pos { color: #047857; }
.sc-n { font-size: 11px; color: var(--mut); text-align: right; }
.sc-scale div { display: flex; justify-content: space-between; font-size: 10px; color: var(--mut); }
.sc-scale i { font-style: normal; }
@media (max-width: 640px) { .sc-row, .sc-scale { grid-template-columns: 110px minmax(0, 1fr) 48px; } .sc-n, .sc-scale small { display: none; } }

/* 걸음 더보기 · 한 사람의 날마다 걸음 */
.sp-people { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-people a { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line, #E2E8F0); border-radius: 999px; padding: 4px 10px 4px 4px; font-size: 12px; color: inherit; text-decoration: none; background: #fff; }
.sp-people a.on { border-color: #1D4ED8; background: #EFF6FF; }
.sp-people em { font-style: normal; color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 2px 7px; }
.sp-people small { color: var(--mut); }
.sp-head { display: flex; flex-direction: column; gap: 4px; }
.sp-head b { font-size: 16px; }
.sp-verdict { margin: 0; font-size: 15px; font-weight: 700; color: #1E3A8A; background: #EFF6FF; border-radius: 8px; padding: 8px 12px; word-break: keep-all; }
.sp-pw { background: #F8FAFC; }
.sp-pw .pw-row .pw-cells i { height: 13px; }

/* 걸음 더보기 · 한 사람: 날짜별 막대 + 시간대별 비교 */
.sp-charts { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.sp-box { background: #F8FAFC; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sp-title { margin: 0; font-size: 14px; font-weight: 800; }
.sp-title span { font-size: 11px; font-weight: 400; color: var(--mut); margin-left: 6px; }
.sp-bars { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 210px; padding-bottom: 30px; box-sizing: border-box; }
.sp-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; min-width: 0; }
.sp-bar i { display: block; width: 100%; background: #A7F3D0; border-radius: 3px 3px 0 0; min-height: 2px; }
.sp-bar.is-rain i { background: #2563EB; }
.sp-bar.is-snow i { background: #818CF8; }
.sp-bar.is-low i { background: #FDBA74; }
.sp-bar.is-none i { background: transparent; }
.sp-bar em { font-style: normal; font-size: 12px; color: #1D4ED8; line-height: 1; margin-bottom: 2px; }
.sp-bar span { position: absolute; bottom: -24px; font-size: 11px; color: var(--mut); white-space: nowrap; }
.sp-usual { position: absolute; left: 0; right: 0; border-top: 2px dashed #334155; z-index: 1; pointer-events: none; }
.sp-usual span { position: absolute; right: 0; top: -18px; font-size: 11px; font-weight: 700; color: #334155; background: #F8FAFC; padding: 0 4px; }
.sp-key { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--ink2); }
.sp-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.k-rain { background: #2563EB; } .k-snow { background: #818CF8; } .k-dry { background: #10B981; } .k-low { background: #FDBA74; }
.sp-hours { width: 100%; height: auto; }
.sp-t { font-size: 18px; fill: #64748B; }
@media (max-width: 900px) { .sp-charts { grid-template-columns: 1fr; } }

/* 걸음 · 미세먼지 칸 */
.pw-row, .pw-axis { grid-template-columns: 34px 14px 26px minmax(0, 1fr) 52px; }
.pw-axis em { grid-column: 5; }
.pw-aq { display: inline-block; font-style: normal; font-size: 9px; font-weight: 700; line-height: 1; text-align: center; padding: 2px 0; border-radius: 3px; color: #94A3B8; background: #F1F5F9; }
.pw-aq.is-good { color: #166534; background: #DCFCE7; }
.pw-aq.is-mid { color: #854D0E; background: #FEF9C3; }
.pw-aq.is-bad { color: #FFFFFF; background: #DC2626; }
.pw-demo.pw-demo-aq { grid-template-columns: auto minmax(0, 1fr); }
.pw-aqset { display: inline-flex; gap: 3px; }
.pw-aqset .pw-aq { width: 28px; font-size: 10px; }
.pw-aq-h { font-size: 8px; color: var(--mut); line-height: 1.05; text-align: center; }
.pw-key b small { font-weight: 400; font-size: 10px; color: var(--mut); }
.sp-aq { position: absolute; bottom: -8px; left: 0; right: 0; height: 5px; border-radius: 2px; background: #E2E8F0; }
.sp-aq.is-good { background: #22C55E; }
.sp-aq.is-mid { background: #FACC15; }
.sp-aq.is-bad { background: #DC2626; }
.sp-aq-key b { font-size: 12px; color: var(--ink2); margin-right: 4px; }
.pw-aq-dot { display: inline-block; width: 12px; height: 5px; border-radius: 2px; background: #E2E8F0; margin-right: 4px; vertical-align: 2px; }
.pw-aq-dot.is-good { background: #22C55E; }
.pw-aq-dot.is-mid { background: #FACC15; }
.pw-aq-dot.is-bad { background: #DC2626; }
.sp-air { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; padding: 10px 12px; background: #F8FAFC; border-radius: 8px; }
.sp-air > b { font-size: 13px; }
.sp-air-rows { display: flex; flex-wrap: wrap; gap: 8px 16px; width: 100%; }
.sp-air-rows span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.sp-air-rows span.is-empty { color: var(--mut); font-weight: 400; }
.sp-air-rows .pw-aq { width: 34px; font-size: 11px; }
.sp-air-rows small { font-weight: 400; color: var(--mut); }
.sp-air-rows span.is-empty .pw-aq { color: #94A3B8; background: #F1F5F9; }

/* 걸음 카드 · 범례(표 한 장으로) */
.pk { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0; background: #fff; border-radius: 8px; padding: 2px 12px; }
.pk-row { display: contents; }
.pk-row > b, .pk-row > .pk-val { padding: 7px 0; border-top: 1px solid #EEF2F6; }
.pk-row:first-child > b, .pk-row:first-child > .pk-val { border-top: 0; }
.pk-row > b { font-size: 11px; color: var(--ink); line-height: 16px; }
.pk-val { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
.pk-item { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink2); white-space: nowrap; }
.pk-item .pw-bar { width: 34px; height: 8px; }
.pk-item .pw-rainchip { width: 28px; }
.pk-item .pw-aq { width: 28px; font-size: 10px; }
.pk-wx { font-size: 11px; color: #64748B; letter-spacing: 1px; }
.pk-note { flex-basis: 100%; font-style: normal; font-size: 10px; color: var(--mut); line-height: 1.3; }
.pk-ramp { display: inline-flex; flex-direction: column; gap: 2px; width: 150px; }
.pk-ramp > span:first-child { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; height: 8px; }
.pk-ramp > span:first-child i { display: block; border-radius: 1px; }
.pk-ramp-t { display: flex; justify-content: space-between; font-size: 9px; color: var(--mut); }
.pk-ramp-t em { font-style: normal; }

/* 홈 · STT와 음성(대화의 깊이 + 노래) */
.cat-card.is-sv .cat-panel { padding: 0; background: none; }
.sd { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sd-top { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 16px; align-items: center; background: #F8FAFC; border-radius: 12px; padding: 12px 16px; }
.sd-hold b { display: block; font-size: 11px; color: #6D28D9; margin-bottom: 2px; }
.sd-hold span { font-size: 12px; color: var(--ink2); word-break: keep-all; line-height: 1.45; }
.sd-ten > b { display: block; font-size: 14px; font-weight: 800; margin-bottom: 6px; word-break: keep-all; }
.sd-ten .sv-strip { height: 10px; border-radius: 5px; }
.sd-ten p { margin: 4px 0 0; font-size: 11px; color: var(--mut); }
.sd-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.sd-depth { background: #F8FAFC; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sd-kick { font-size: 11px; font-weight: 700; color: #6D28D9; }
.sd-head { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; word-break: keep-all; }
.sd-sub { margin: 0; font-size: 12px; color: var(--ink2); word-break: keep-all; line-height: 1.45; }
.sd-lab { margin: 8px 0 0; font-size: 12px; font-weight: 700; color: var(--ink); }
.sd-lab span { font-weight: 400; color: var(--mut); margin-left: 6px; }
.sd-bar { display: flex; height: 26px; border-radius: 6px; overflow: hidden; }
.sd-bar i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; color: #fff; min-width: 2px; }
.sd-bar i.is-q { color: #475569; }
.sd-bar i.is-d { color: #3B0764; }
.sd-keys { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 11px; color: var(--ink2); }
.sd-keys i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.sd-cap { margin: 0; font-size: 10.5px; color: var(--mut); line-height: 1.4; word-break: keep-all; }
.sd-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; margin-top: 6px; }
.sd-box { background: #fff; border: 1px solid #EEF2F6; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sd-box-t { margin: 0; font-size: 12px; font-weight: 700; color: var(--ink); word-break: keep-all; }
.sd-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; align-items: end; height: 128px; }
.sd-col { display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; min-width: 0; }
.sd-col em { font-style: normal; font-size: 11px; font-weight: 700; color: #6D28D9; }
.sd-col > div { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.sd-col > div i { display: block; width: 100%; background: #8B5CF6; border-radius: 3px 3px 0 0; min-height: 2px; }
.sd-col:nth-child(4) > div i, .sd-col:nth-child(5) > div i { background: #6D28D9; }
.sd-col span { font-size: 10px; color: var(--ink2); white-space: nowrap; }
.sd-col small { font-size: 9px; color: var(--mut); }
.sd-col.is-few { opacity: .45; }
.sd-turn { border-radius: 8px; padding: 7px 9px; }
.sd-turn em { font-style: normal; font-size: 10px; font-weight: 700; color: #6D28D9; display: block; margin-bottom: 2px; }
.sd-turn p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ink); word-break: keep-all; }
.sd-turn.is-ai { background: #F5F3FF; }
.sd-turn.is-me { background: #F1F5F9; }
.sd-turn.is-me em { color: #334155; }
.sd-scene audio { width: 100%; height: 30px; }
.sd-chip { align-self: flex-start; font-size: 10px; font-weight: 700; color: #6D28D9; background: #EDE9FE; border-radius: 999px; padding: 3px 9px; }
.sd-note { margin: 6px 0 0; font-size: 10.5px; color: var(--mut); }
.sd-song { background: #1E1033; color: #F5F3FF; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sd-song .sd-kick { color: #C4B5FD; }
.sd-song .sd-head { color: #fff; }
.sd-song .sd-sub { color: #DDD6FE; }
.sd-song .sd-cap { color: #A78BFA; margin-top: auto; }
.sd-tracks { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.sd-track { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: rgba(255,255,255,.06); border-radius: 10px; padding: 9px 12px; }
.sd-track.is-on { background: rgba(167,139,250,.18); }
.sd-play { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #A78BFA; color: #1E1033; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sd-play.is-off { opacity: .4; cursor: default; }
.sd-tinfo { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.sd-tinfo b { font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sd-tinfo span { font-size: 11px; color: #C4B5FD; }
.sd-prog { flex-basis: 100%; height: 4px; background: rgba(255,255,255,.14); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.sd-prog i { display: block; height: 100%; width: 0; background: #C4B5FD; }
.sd-track > em { font-style: normal; font-size: 11px; color: #DDD6FE; }
.sd-more { align-self: flex-end; font-size: 12px; font-weight: 700; color: #DDD6FE; text-decoration: none; }
.sd-more:hover { color: #fff; }
@media (max-width: 1100px) { .sd-body, .sd-top { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .sd-grid { grid-template-columns: 1fr; } .sd-head { font-size: 19px; } }

/* n개월 이상 막대 = 항목별 보유 기간 막대와 같은 색(성별 파랑·분홍과 겹치지 않게) */
.cat-year .cat-year-plot i { background: #D7E3F7; }

/* 카드 설명은 잘리지 않고 전부 보이게 */
.cat-card .cat-desc { display: block; -webkit-line-clamp: unset; overflow: visible; }

/* 홈 · STT · 목소리로 본 말하기 지표 */
.ss { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; background: #F8FAFC; border-radius: 12px; padding: 16px; }
.ss-left, .ss-right { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ss-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ss-head .sd-kick { display: block; margin-bottom: 2px; }
.ss-badge { font-style: normal; font-size: 11px; font-weight: 700; color: #6D28D9; background: #EDE9FE; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.ss-chart { width: 100%; height: auto; display: block; }
.ss-grid { stroke: #E2E8F0; stroke-width: 1; }
.ss-axis { stroke: #CBD5E1; stroke-width: 1; }
.ss-t { font-size: 11px; fill: #64748B; }
.ss-line { fill: none; stroke: #7C3AED; stroke-width: 2.5; stroke-linejoin: round; }
.ss-dot { fill: #7C3AED; }
.ss-peer { fill: none; stroke: #C4B5FD; stroke-width: 2; stroke-dasharray: 6 4; }
.ss-cut { stroke: #DC2626; stroke-width: 1.5; stroke-dasharray: 4 3; }
.ss-cut-t { font-size: 12px; font-weight: 700; fill: #DC2626; }
.ss-keys { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 11px; color: var(--ink2); }
.ss-keys i { display: inline-block; width: 18px; height: 0; vertical-align: 3px; margin-right: 5px; }
.ss-keys i.k-line { border-top: 3px solid #7C3AED; }
.ss-keys i.k-peer { border-top: 2px dashed #C4B5FD; }
.ss-rt { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--ink); }
.ss-rt span { display: block; font-size: 11px; font-weight: 400; color: var(--mut); margin-top: 2px; }
.ss-table { display: grid; gap: 10px 12px; align-items: center; }
.ss-th { font-size: 11px; color: var(--mut); }
.ss-th small { font-size: 10px; }
.ss-rh { font-size: 12px; color: var(--ink); }
.ss-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ss-cell em { font-style: normal; font-size: 12px; color: var(--ink); white-space: nowrap; }
.ss-cell i { display: block; height: 6px; background: #E2E8F0; border-radius: 3px; overflow: hidden; }
.ss-cell s { display: block; height: 100%; background: #7C3AED; border-radius: 3px; text-decoration: none; }
@media (max-width: 1100px) { .ss { grid-template-columns: 1fr; } }
.ss-nocut { margin: 0; font-size: 12px; color: #475569; background: #fff; border: 1px dashed #CBD5E1; border-radius: 8px; padding: 6px 10px; word-break: keep-all; }

/* 새 홈 · 기간 안내 한 줄 */
.lh-range { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 14px 0 4px; padding: 10px 14px; background: #fff; border: 1px solid #E2E8F0; border-radius: 10px; }
.lh-range b { font-size: 14px; color: var(--ink); }
.lh-range span { font-size: 12px; color: var(--mut); }
/* 새 홈 · 월·요일·계절·날씨 카드 */
.cat-card .cat-panel:has(.lc), .cat-card .cat-panel:has(.lu) { padding: 0; background: none; }
.lc { display: flex; flex-direction: column; gap: 8px; background: #F8FAFC; border-radius: 12px; padding: 12px 14px; min-width: 0; }
.lc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lc-one { font-size: 13px; color: var(--ink); }
.lc-users { font-size: 12px; font-weight: 700; color: #1D4ED8; background: #EFF6FF; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.lc-metrics, .lc-dims { display: flex; flex-wrap: wrap; gap: 4px; }
.lc-metrics button, .lc-dims button { border: 1px solid #CBD5E1; background: #fff; color: var(--ink2); border-radius: 999px; font-size: 12px; padding: 3px 10px; cursor: pointer; }
.lc-metrics button.on { background: #1E3A8A; border-color: #1E3A8A; color: #fff; }
.lc-dims button.on { background: #E0E7FF; border-color: #A5B4FC; color: #1E3A8A; font-weight: 700; }
.lc-head { margin: 2px 0 0; font-size: 15px; font-weight: 800; color: var(--ink); word-break: keep-all; line-height: 1.35; }
.lc-bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.lc-bars.is-month { gap: 2px; }
.lc-bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.lc-bar em { font-style: normal; font-size: 11px; font-weight: 700; color: #1E3A8A; white-space: nowrap; }
.lc-bars.is-month .lc-bar em { font-size: 9px; writing-mode: vertical-rl; transform: rotate(180deg); height: 34px; }
.lc-bar > div { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.lc-bar i { display: block; width: 100%; background: #6366F1; border-radius: 4px 4px 0 0; min-height: 3px; }
.lc-bar span { font-size: 11px; color: var(--ink2); white-space: nowrap; }
.lc-bars.is-month .lc-bar span { font-size: 9px; }
.lc-bar.is-few { opacity: .35; }
.lc-empty { margin: auto; font-size: 12px; color: var(--mut); }
.lc-cap { margin: 0; font-size: 10.5px; color: var(--mut); line-height: 1.4; word-break: keep-all; }
/* 오래 쓴 사람의 변화 */
.lu { display: flex; flex-direction: column; gap: 8px; background: #F8FAFC; border-radius: 12px; padding: 12px 14px; }
.lu-sub { margin: 0; font-size: 12px; color: var(--ink2); word-break: keep-all; }
.lu-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 10px; align-items: center; background: #fff; border: 1px solid #EEF2F6; border-radius: 10px; padding: 8px 10px; }
.lu-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lu-who b { font-size: 13px; }
.lu-who span { font-size: 10.5px; color: var(--mut); word-break: keep-all; }
.lu-who em { font-style: normal; font-size: 11.5px; font-weight: 700; color: #1E3A8A; }
.lu-svg { width: 100%; height: 56px; }
.lu-svg polyline { fill: none; stroke: #6366F1; stroke-width: 2; vector-effect: non-scaling-stroke; }
/* STT · 언제 말하나 / 먼저 말 건 장면 */
.st2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; }
.st2-when, .st2-scene { background: #F8FAFC; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st2-heat { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.st2-hrow { display: grid; grid-template-columns: 18px repeat(24, minmax(0, 1fr)); gap: 2px; align-items: center; }
.st2-hrow span { font-size: 10px; color: var(--ink2); }
.st2-hrow i { display: block; height: 14px; background: #7C3AED; border-radius: 2px; }
.st2-hax { position: relative; height: 14px; margin-left: 20px; }
.st2-hax em { position: absolute; font-style: normal; font-size: 9px; color: var(--mut); transform: translateX(-50%); }
.st2-rows { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.st2-r { display: grid; grid-template-columns: minmax(0, 1.4fr) 74px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 12px; color: var(--ink); }
.st2-rh { font-size: 10.5px; color: var(--mut); }
.st2-r > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st2-r > span:nth-child(2) { text-align: right; font-variant-numeric: tabular-nums; }
.st2-p { display: flex; align-items: center; gap: 6px; }
.st2-p i { flex: 1; height: 6px; background: #E2E8F0; border-radius: 3px; overflow: hidden; }
.st2-p s { display: block; height: 100%; background: #7C3AED; text-decoration: none; }
.st2-p em { font-style: normal; font-size: 11px; font-weight: 700; color: #6D28D9; width: 34px; text-align: right; }
.st2-ex { margin: 0 0 4px; font-size: 11px; color: var(--ink2); background: #fff; border-radius: 6px; padding: 5px 8px; line-height: 1.45; word-break: keep-all; }
.st2-ex b { color: #6D28D9; font-weight: 700; }
@media (max-width: 1100px) { .st2 { grid-template-columns: 1fr; } }
.lc [hidden], .lu [hidden] { display: none !important; }
.cat-card .cat-panel:has(.lc), .cat-card .cat-panel:has(.lu) { height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; }
.cat-card .cat-panel:has(.lc) .cat-viz, .cat-card .cat-panel:has(.lc) > * { overflow: visible; }

/* 홈 · 생활 리듬 V10 */
.rv { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.rv-bar { background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 12px 18px; display: flex; flex-direction: column; gap: 10px; }
.rv-row1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rv-lab { font-size: 14px; }
.rv-seg { display: inline-flex; background: #F1F5F9; border-radius: 10px; padding: 4px; gap: 2px; }
.rv-seg button { border: 0; background: none; padding: 7px 16px; border-radius: 8px; font-size: 14px; color: var(--ink2); cursor: pointer; }
.rv-seg button.on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(15,23,42,.12); }
.rv-note { font-size: 13px; color: var(--ink2); }
.rv-gap { flex: 1; }
.rv-hint { font-size: 12px; color: var(--mut); }
.rv-mode { border: 0; background: #0F172A; color: #fff; font-weight: 700; font-size: 14px; border-radius: 8px; padding: 9px 16px; cursor: pointer; }
.rv-mode.is-back { background: #fff; color: var(--ink); border: 1px solid #CBD5E1; }
.rv-row2 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; border-top: 1px solid #EEF2F6; padding-top: 10px; }
.rv-row2[hidden] { display: none; }
.rv-pl { font-size: 12px; color: var(--mut); margin-right: 4px; }
.rv-row2 button { border: 1px solid #CBD5E1; background: #fff; border-radius: 8px; padding: 5px 11px; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.rv-row2 button.on { background: #2563EB; border-color: #2563EB; color: #fff; }
.rv-pnote { font-size: 12px; color: var(--mut); margin-left: 6px; }
.rv [hidden] { display: none !important; }
.rv-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.rv-grid2 + .rv-card, [data-rv-single] > .rv-card, [data-rv-compare] > .rv-card { margin-top: 14px; }
.rv-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 18px 20px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rv-card h3 { margin: 0; font-size: 16px; }
.rv-sub { margin: 0; font-size: 12.5px; color: var(--ink2); word-break: keep-all; }
.rv-foot { margin: 4px 0 0; font-size: 12px; color: var(--mut); }
.rv-box { background: #F8FAFC; border-radius: 10px; padding: 12px 14px; }
.rv-hhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.rv-hhead b { font-weight: 800; }
.rv-hhead small { font-size: 11px; color: var(--mut); white-space: nowrap; }
.rv-up { font-style: normal; font-size: 11px; font-weight: 700; color: #C2410C; }
.rv-down { font-style: normal; font-size: 11px; font-weight: 700; color: #1D4ED8; }
.rv-same { font-style: normal; font-size: 11px; color: var(--ink2); }
.rv-svg { width: 100%; height: auto; display: block; }
.rv-t { font-size: 11px; fill: #64748B; }
.rv-xl { font-size: 12px; font-weight: 700; fill: #0F172A; }
.rv-strong { font-weight: 800; fill: #C2410C; }
.rv-axis { stroke: #CBD5E1; }
.rv-grid { stroke: #E2E8F0; }
.rv-dash { stroke: #94A3B8; stroke-width: 1.5; stroke-dasharray: 4 3; }
.rv-medline { stroke: #0F172A; stroke-width: 2.5; }
.rv-whisk { stroke: #64748B; stroke-width: 1.5; }
.rv-lane { fill: #EEF2F6; }
.rv-rowlab { font-size: 15px; font-weight: 800; }
.rv-ctitle { font-size: 13px; font-weight: 800; }
.rv-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink2); }
.rv-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.rv-leg i.k-dash { width: 14px; height: 0; border-top: 2px dashed #94A3B8; border-radius: 0; vertical-align: 3px; }
.rv-big { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 26px; margin-bottom: 6px; }
.rv-big > div { display: flex; flex-direction: column; }
.rv-big b { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.rv-big span { font-size: 12px; color: var(--ink2); }
.rv-big small { margin-left: auto; font-size: 12px; color: var(--ink2); }
.rv-cap { margin: 4px 0 0; font-size: 11px; color: var(--mut); }
.rv-banner { background: #0F172A; color: #fff; border-radius: 14px; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.rv-kick { display: block; font-size: 12px; font-weight: 700; color: #93C5FD; margin-bottom: 4px; }
.rv-banner b { font-size: 22px; font-weight: 800; line-height: 1.35; word-break: keep-all; }
.rv-totals { display: flex; gap: 22px; }
.rv-totals div { display: flex; flex-direction: column; gap: 2px; }
.rv-totals span { font-size: 11px; color: #CBD5E1; }
.rv-totals b { font-size: 22px; }
.rv-totals .t-wake { color: #FCD34D; } .rv-totals .t-out { color: #FDBA74; } .rv-totals .t-in { color: #93C5FD; } .rv-totals .t-sleep { color: #C4B5FD; }
.rv-dayhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.rv-legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink2); }
.rv-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 4px; vertical-align: -2px; }
.rv-legend .k-sleep { background: #E0E7FF; } .rv-legend .k-home { background: #F1F5F9; border: 1px solid #E2E8F0; } .rv-legend .k-out { background: #F97316; }
.rv-src { margin: 0; font-size: 11.5px; color: var(--mut); }
@media (max-width: 640px) { .rv-grid2 { grid-template-columns: 1fr; } }

/* 홈 · 기기 사용 V11 */
.dv-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dv-grid3[hidden], [data-dv-compare][hidden] { display: none !important; }
[data-dv-compare] .dv-grid3 { margin-top: 14px; }
.dv-ch { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dv-since { font-style: normal; font-size: 11px; color: var(--ink2); background: #F1F5F9; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.dv-meta { text-align: right; font-size: 11.5px; color: var(--ink2); }
.dv-big { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 2px; word-break: keep-all; }
.dv-line { margin: 0 0 6px; font-size: 13px; color: var(--ink2); word-break: keep-all; }
.dv-rl { font-size: 12px; font-weight: 800; }
.dv-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.dv-boxes > div { background: #fff; border: 1px solid #E2E8F0; border-radius: 10px; padding: 9px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dv-boxes span { font-size: 11px; color: var(--ink2); word-break: keep-all; }
.dv-boxes b { font-size: 16px; font-weight: 800; color: #0F172A; word-break: keep-all; }
.dv-boxes small { font-size: 10px; color: var(--mut); word-break: keep-all; }
@media (max-width: 900px) { .dv-grid3:not(.dv-only) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .dv-grid3:not(.dv-only) { grid-template-columns: 1fr; } }

/* 홈 위쪽: 요약 지표 → 항목별 보유 기간(데이터 수) → 지도·연속 기록 접기 */
.home-metrics-top { margin: 6px 0 14px; }
.home-cover-top { margin-bottom: 14px; padding: 18px 22px; }
.home-cover-top .cat-cover { width: 100%; }
.cat-cover-head-row { display: flex; align-items: baseline; gap: 12px; }
.cat-cover-unit { font-size: 11.5px; color: #94A3B8; }
.home-cover-top .cat-cover-line { grid-template-columns: 110px minmax(0, 1fr) 64px !important; display: grid; align-items: center; gap: 12px; }
.home-cover-top .cat-cover-axis { margin-left: 122px; margin-right: 76px; }
.cat-cover-n { font-size: 13px; font-weight: 700; color: #E2E8F0; text-align: right; font-variant-numeric: tabular-nums; }
.home-fold { margin-bottom: 14px; background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; }
.home-fold > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; font-size: 14px; font-weight: 700; color: var(--ink); }
.home-fold > summary::-webkit-details-marker { display: none; }
.home-fold > summary em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--mut); }
.home-fold > summary em::after { content: " ▾"; }
.home-fold[open] > summary em { font-size: 0; }
.home-fold[open] > summary em::after { content: "접기 ▴"; font-size: 12px; }
.home-fold[open] { padding-bottom: 10px; }
.home-fold .home-board { padding: 0 12px; }

/* 생활 리듬 · 규칙성 */
.rv-reg { margin-bottom: 14px; }
.rv-reghead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rv-regrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rv-regcol { background: #F8FAFC; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rv-regcol > b { font-size: 14px; font-weight: 800; }
.rv-regbig { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; color: #0F172A; }
.rv-regbig small { font-size: 16px; margin-left: 2px; }
.rv-regl { font-size: 11.5px; color: var(--ink2); word-break: keep-all; }
.rv-regbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: 4px 0 2px; background: #E2E8F0; }
.rv-regbar i { display: block; height: 100%; }
.rv-regline { margin: 6px 0 0; font-size: 14px; color: #BFDBFE; font-weight: 700; }
[data-rv-compare] > .rv-reg { margin-top: 14px; }
@media (max-width: 1100px) { .rv-regrow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-fold .cat-hold { display: block !important; grid-template-columns: 1fr !important; }
.home-fold .cat-tenure { width: 100%; max-width: none; }

/* 홈 첫 화면 압축: 생활 리듬 색 부분이 첫 화면에 걸리도록 */
.home-title { margin-bottom: 8px; }
.home-metrics-top { margin: 0 0 10px; }
.home-metrics-top .home-metric { min-height: 0; padding: 10px 14px; gap: 2px; }
.home-metrics-top .home-metric .lab { font-size: 12px; }
.home-metrics-top .home-metric .val { font-size: 18px; line-height: 1.2; }
.home-metrics-top .home-metric .sub { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-cover-top { margin-bottom: 10px; padding: 12px 18px 14px; }
.home-cover-top .cat-cover-head-row h2 { font-size: 14px; margin: 0; }
.cat-cover-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; margin-top: 6px; }
.home-cover-top .cat-cover-list { gap: 4px; }
.home-cover-top .cat-cover-track { height: 8px; }
.home-cover-top .cat-cover-line { grid-template-columns: 96px minmax(0, 1fr) 52px !important; gap: 10px; }
.home-cover-top .cat-cover-axis { margin: 0 62px 4px 106px; height: 14px; }
.home-cover-top .cat-cover-n { font-size: 12px; }
.home-fold { margin-bottom: 10px; }
.home-fold > summary { padding: 8px 16px; font-size: 13px; }
@media (max-width: 900px) { .cat-cover-cols { grid-template-columns: 1fr; } }

/* 홈 첫 화면: 요약 지표(왼쪽 세로) + 항목별 보유 기간(오른쪽) 한 줄 */
main.wrap:has(> .home-top) { gap: 12px; }
.home-title { margin-bottom: 0; }
.home-top { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.home-top > .home-metrics-top, .home-top > .home-cover-top { margin: 0; }
.home-top .home-metrics { grid-template-columns: 1fr; gap: 6px; height: 100%; }
.home-top .home-metric { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 8px; padding: 7px 12px; }
.home-top .home-metric .lab { grid-column: 1; }
.home-top .home-metric .val { grid-column: 2; text-align: right; font-size: 17px; }
.home-top .home-metric .sub { grid-column: 1 / -1; }
.home-fold { margin: 0; }
.cat-section-head { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.cat-section-head p { margin: 0; }
@media (max-width: 1000px) {
  .home-top { grid-template-columns: 1fr; }
  .home-top .home-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.home-top .home-metric { padding: 8px 12px; align-items: center; }
.home-top .home-metric .sub { display: none; }
.home-top .home-metrics { grid-auto-rows: 1fr; }
.rv-bar { padding-top: 8px; padding-bottom: 8px; }

/* 지도·연속 기록: 제목 줄 버튼으로 열고, 닫혀 있을 땐 자리를 차지하지 않음 */
details.home-fold:not([open]) { display: none; }
.home-fold.is-open { padding: 0 0 10px; margin-top: 14px; }
.home-fold-h { padding: 12px 18px 8px; font-size: 15px; font-weight: 800; color: var(--ink); }
.home-fold-btn { margin-left: auto; align-self: center; border: 1px solid #CBD5E1; background: #fff; color: var(--ink); border-radius: 999px; padding: 5px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.home-fold-btn:hover { border-color: var(--pri); color: var(--pri); }
.home-fold-btn[aria-expanded="true"] { background: #EFF6FF; border-color: #93C5FD; }

/* 생활 리듬: 하루 리듬 카드의 자세히 보기 */
.rv-cardhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rv-more { font-size: 13px; font-weight: 700; color: var(--pri); text-decoration: none; white-space: nowrap; }
.rv-more:hover { text-decoration: underline; }
.rv-legend .rv-more { margin-right: 6px; }
/* 하루 리듬 상세 · 규칙성 */
.rg-card { padding: 16px 18px; }
.rg-h3 { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.rg [hidden] { display: none !important; }
.rg-tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.rg-tabs-row .rg-h3 { margin: 0; }
.rg-tablewrap { overflow-x: auto; }
.rg-table { width: 100%; border-collapse: separate; border-spacing: 3px; font-variant-numeric: tabular-nums; }
.rg-table th { font-size: 12px; font-weight: 700; color: var(--ink2); padding: 4px 6px; white-space: nowrap; }
.rg-table tbody th { text-align: left; font-size: 13px; font-weight: 800; }
.rg-table td { text-align: center; font-size: 13px; font-weight: 700; color: #0F172A; padding: 8px 4px; border-radius: 6px; min-width: 44px; }
.rg-table td.rg-dark { color: #fff; }
.rg-table td.rg-hi::after { content: " ▲"; font-size: 10px; }
.rg-table td.rg-lo::after { content: " ▼"; font-size: 10px; }
.rg-table td.rg-none { color: var(--mut); background: #F1F5F9; }
.rg-table .rg-base { background: #F8FAFC; color: var(--ink); border-left: 2px solid #E2E8F0; }

/* 카드 아래 자세히 보기 */
.rv-morerow { display: flex; justify-content: flex-end; margin-top: 10px; padding-top: 10px; border-top: 1px solid #EEF2F7; }
.dv-card, [data-dv-compare] .rv-card { display: flex; flex-direction: column; }
.dv-card .rv-morerow, [data-dv-compare] .rv-card .rv-morerow { margin-top: auto; }
.dv-card > div[data-dv-screen], .dv-card > div[data-dv-charge], .dv-card > div[data-dv-lux] { margin-bottom: 10px; }

/* 보유 기간: 연도 줄 오른쪽 '전체 건수' */
.home-cover-top .cat-cover-axis { position: relative; }
.home-cover-top .cat-cover-axis .cat-cover-axn { position: absolute; top: 0; left: auto; right: -62px; width: 56px; text-align: right; transform: none; font-size: 11px; font-weight: 700; color: #E2E8F0; white-space: nowrap; }

/* 하루 리듬 상세 · 더 들여다보기 */
.rm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.rm-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.rm-pick label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink2); }
.rm-pick select { border: 1px solid #CBD5E1; border-radius: 8px; padding: 5px 8px; font-size: 13px; background: #fff; color: var(--ink); }
.rm-wait { display: flex; flex-direction: column; gap: 4px; padding: 18px; }
.rm-wait span { font-size: 13px; color: var(--mut); }
.rm-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rm-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.rm-ch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rm-ch h3 { margin: 0; font-size: 16px; font-weight: 800; }
.rm-ch h3 i { font-style: normal; margin-right: 6px; }
.rm-tag { font-style: normal; font-size: 11px; font-weight: 700; color: #1D4ED8; background: #DBEAFE; padding: 2px 8px; border-radius: 999px; }
.rm-sub { margin: 0; font-size: 12.5px; color: var(--mut); word-break: keep-all; }
.rm-box { background: #F8FAFC; border-radius: 10px; padding: 12px 14px; }
.rm-note { margin: 0; background: #EFF6FF; color: #1E3A8A; font-weight: 700; font-size: 13px; padding: 10px 14px; border-radius: 8px; word-break: keep-all; }
.rm-cap { margin: 6px 0 0; font-size: 11.5px; color: var(--mut); }
.rm-foot { margin: 0; font-size: 11.5px; color: var(--mut); word-break: keep-all; }
.rm-plot { position: relative; height: 190px; margin-left: 34px; }
.rm-hline { position: absolute; left: 0; right: 0; border-top: 1px solid #E2E8F0; }
.rm-hline span { position: absolute; left: -34px; top: -8px; font-size: 11px; color: var(--mut); }
.rm-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.rm-col { position: relative; }
.rm-whisk { position: absolute; left: 50%; width: 2px; margin-left: -1px; background: #94A3B8; }
.rm-iqr { position: absolute; left: 30%; right: 30%; background: #FCD9A8; border-radius: 4px; }
.rm-dot { position: absolute; left: 50%; width: 11px; height: 11px; margin: 0 0 -5px -5px; border-radius: 50%; background: #D97706; border: 2px solid #fff; }
.rm-labs { position: static; margin: 8px 0 0 34px; }
.rm-labs > div { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11.5px; text-align: center; }
.rm-labs .rm-sl { font-size: 14px; color: #4338CA; }
.rm-labs .rm-wk { font-size: 12.5px; color: #B45309; }
.rm-wh { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; }
.rm-wh span { color: var(--mut); }
.rm-wrow { display: grid; grid-template-columns: 96px minmax(0, 1fr) 42px 82px; gap: 10px; align-items: center; margin: 6px 0; font-size: 12.5px; }
.rm-wrow > span { font-weight: 700; white-space: nowrap; }
.rm-wrow em { font-style: normal; color: var(--ink2); font-size: 12px; text-align: right; }
.rm-track { position: relative; height: 14px; background: #E2E8F0; border-radius: 4px; overflow: hidden; }
.rm-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.rm-tiles4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rm-tiles5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.rm-tile { background: #F8FAFC; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rm-tile > span { font-size: 12px; font-weight: 700; color: var(--ink2); }
.rm-tile > b { font-size: 20px; font-weight: 800; }
.rm-tile > small { font-size: 11px; color: var(--mut); word-break: keep-all; }
.rm-tile .rm-big { font-size: 26px; }
.rm-tile .is-warn { color: #C2410C; }
.rm-pr { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 6px; font-size: 11px; color: var(--mut); }
.rm-pr .rm-track { height: 10px; }
.rm-track i.is-n { background: #94A3B8; }
.rm-track i.is-l { background: #D97706; }
.rm-lv { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.rm-lv small { font-size: 11px; color: var(--mut); }
.rm-lv b { font-size: 18px; font-weight: 800; color: #B45309; }
.rm-svg { width: 100%; height: auto; display: block; margin-top: 4px; }
.rm-axis { stroke: #CBD5E1; }
.rm-t { font-size: 11px; fill: #64748B; }
.rm-gtable { display: flex; flex-direction: column; gap: 6px; }
.rm-grow { display: grid; grid-template-columns: 130px minmax(0, 1fr) 70px minmax(0, 1fr) 80px minmax(0, 1fr) 46px; gap: 10px; align-items: center; }
.rm-ghead > div > b { font-size: 12px; }
.rm-gt { position: relative; height: 16px; }
.rm-gt i { position: absolute; transform: translateX(-50%); font-style: normal; font-size: 10.5px; color: var(--mut); white-space: nowrap; }
.rm-gl { display: flex; gap: 6px; align-items: baseline; font-size: 13px; }
.rm-gl small { font-size: 11px; color: var(--mut); }
.rm-gtrack { position: relative; height: 18px; background: #F1F5F9; border-radius: 5px; }
.rm-grng { position: absolute; top: 5px; height: 8px; border-radius: 4px; }
.rm-gdot { position: absolute; top: 3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid #fff; }
.rm-gbar { position: absolute; left: 0; top: 5px; height: 8px; border-radius: 4px; background: #93C5FD; }
.rm-gv { font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 1100px) { .rm-grid2 { grid-template-columns: 1fr; } .rm-tiles5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rm-tiles4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .rm-grow { grid-template-columns: 90px repeat(3, minmax(0, 1fr) 54px); } }

.rm-svg { max-height: 170px; }
.rm-v { font-size: 12px; font-weight: 700; fill: #334155; }

/* 상세 맨 위 · 홈과 같은 그림(쌓인 기록 전부) */
.hv { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--line, #d8dee8); }
.hv-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hv-head .ttl { margin: 0; }
.hv-card { padding: 16px 18px; }
.dv-grid3.dv-only { grid-template-columns: minmax(0, 640px); }
.dv-grid3 > [hidden] { display: none !important; }

/* 홈 대화 · 순이가 말을 건 뒤 */
.te { background: #F8FAFC; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.te-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.te-tag { font-style: normal; font-size: 11px; font-weight: 700; color: #4F46E5; background: #EEF2FF; border-radius: 999px; padding: 2px 8px; }
.te-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.te-tabs button { border: 1px solid var(--line, #E2E8F0); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; color: var(--ink2); cursor: pointer; }
.te-tabs button.on { background: #0F172A; border-color: #0F172A; color: #fff; }
.te-pane { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
.te-pane[hidden] { display: none; }
.te-plot { background: #fff; border-radius: 10px; padding: 12px; min-width: 0; }
.te-who { margin: 0 0 8px; font-size: 12px; color: var(--mut); }
.te-grid { display: grid; grid-template-columns: 58px minmax(0, 1fr); row-gap: 6px; align-items: end; }
.te-lab { font-size: 11px; color: var(--ink2); line-height: 1.2; align-self: center; }
.te-lab small { display: block; color: var(--mut); font-size: 10px; }
.te-talk { position: relative; height: 22px; }
.te-talk .te-zero { position: absolute; left: 33.33%; top: 0; bottom: 0; border-left: 2px dashed #2563EB; }
.te-talk em { position: absolute; left: calc(33.33% + 6px); top: 2px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: #2563EB; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.te-bars { position: relative; display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); gap: 2px; align-items: end; height: 110px; border-bottom: 1px solid #CBD5E1; }
.te-bars i { display: block; background: #94A3B8; border-radius: 2px 2px 0 0; min-height: 0; }
.te-bars i.is-after { background: #16A34A; }
.te-bars i.is-none { background: repeating-linear-gradient(45deg, #E2E8F0 0 3px, transparent 3px 6px); height: 100% !important; opacity: .5; }
.te-bars .te-zero { position: absolute; left: 33.33%; top: 0; bottom: 0; border-left: 2px dashed #2563EB; }
.te-strip { display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); gap: 2px; height: 12px; }
.te-strip i { display: block; background: #E2E8F0; border-radius: 2px; }
.te-strip i.is-none { background: transparent; border: 1px dashed #E2E8F0; }
.te-strip i.is-scr { background: #334155; }
.te-strip i.is-out { background: #F97316; }
.te-ax { position: relative; height: 16px; }
.te-ax em { position: absolute; transform: translateX(-50%); font-style: normal; font-size: 10px; color: var(--mut); white-space: nowrap; }
.te-ax em:first-child { transform: none; }
.te-ax em:last-child { transform: translateX(-100%); }
.te-read { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--ink); line-height: 1.4; word-break: keep-all; }
.te-sum { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; font-size: 12px; color: var(--ink2); }
.te-sum span { display: inline-flex; align-items: center; gap: 6px; background: #F8FAFC; border-radius: 8px; padding: 4px 10px; }
.te-sum span i { width: 10px; height: 10px; border-radius: 2px; background: #94A3B8; }
.te-sum span.is-a i { background: #16A34A; }
.te-sum span b { font-size: 15px; color: var(--ink); }
.te-sum span.is-a b { color: #15803D; }
.te-sum em { font-style: normal; color: var(--mut); font-weight: 700; }
.te-zone { position: absolute; top: 2px; white-space: nowrap; font-style: normal; font-size: 10px; font-weight: 700; pointer-events: none; }
.te-zone.is-b { left: 2px; color: #64748B; }
.te-zone.is-a { right: 4px; color: #15803D; }
.te-go { position: absolute; top: 0; bottom: 0; border-left: 2px solid #F97316; pointer-events: none; }
.te-go em { position: absolute; top: 44px; left: 4px; font-style: normal; font-size: 10px; font-weight: 700; color: #C2410C; background: #FFF7ED; border-radius: 4px; padding: 0 4px; white-space: nowrap; }
.te-nodata { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 12px; font-weight: 700; color: #64748B; background: #fff; border-radius: 6px; padding: 2px 8px; }
.te-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 11px; color: var(--mut); }
.te-legend span { display: inline-flex; align-items: center; gap: 4px; }
.te-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.te-legend .lg-b { background: #94A3B8; } .te-legend .lg-a { background: #16A34A; } .te-legend .lg-scr { background: #334155; } .te-legend .lg-out { background: #F97316; }
.te-facts { margin: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 6px 10px; align-content: start; background: #fff; border-radius: 10px; padding: 12px; font-size: 12px; }
.te-facts dt { color: var(--mut); }
.te-facts dd { margin: 0; color: var(--ink); font-weight: 600; word-break: keep-all; line-height: 1.45; }
.te-cap { margin: 0; font-size: 12px; color: #1E3A8A; background: #EFF6FF; border-radius: 8px; padding: 8px 10px; word-break: keep-all; line-height: 1.5; }
.te-wait { margin: 0; font-size: 13px; color: var(--mut); padding: 24px 0; }
/* 덜 움직인 날, 말도 달라지나 */
.tl { background: #F8FAFC; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tl-grid { display: grid; grid-template-columns: 120px minmax(0, 1fr); row-gap: 6px; align-items: center; background: #fff; border-radius: 10px; padding: 12px; }
.tl-lab { font-size: 12px; color: var(--ink2); font-weight: 600; }
.tl-row { display: grid; grid-template-columns: repeat(var(--nd), minmax(0, 1fr)); gap: 3px; }
.tl-row i { display: block; height: 18px; border-radius: 3px; }
.tl-hi, .tl-keys .tl-hi { background: #2563EB; }
.tl-mid, .tl-keys .tl-mid { background: #CBD5E1; }
.tl-lo, .tl-keys .tl-lo { background: #F97316; }
.tl-none, .tl-keys .tl-none { background: #F1F5F9; }
.tl-row i.is-on { outline: 2px solid #0F172A; outline-offset: 1px; }
.tl-ax { position: relative; height: 14px; }
.tl-ax em { position: absolute; transform: translateX(-50%); font-style: normal; font-size: 10px; color: var(--mut); }
.tl-ax em:first-child { transform: none; }
.tl-ax em:last-child { transform: translateX(-100%); }
.tl-keys { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--ink2); }
.tl-keys span { display: inline-flex; align-items: center; gap: 4px; }
.tl-keys i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.tl-note { margin: 0; font-size: 13px; color: #1E3A8A; background: #EFF6FF; border-radius: 8px; padding: 8px 10px; word-break: keep-all; line-height: 1.5; }
@media (max-width: 900px) { .te-pane { grid-template-columns: 1fr; } .tl-grid { grid-template-columns: 84px minmax(0, 1fr); } }

/* 홈 · 활동·이동 '보는 기준' */
.act-bar { margin-bottom: 12px; }
[data-act-cards] { transition: opacity .15s; }

/* 보속·보폭 시계열 */
.gs-svg { display: block; width: 100%; height: auto; }
.gs-grid { stroke: #EEF2F6; stroke-width: 1; }
.gs-t { font-size: 10px; fill: #94A3B8; }
.gs-lab { font-size: 9px; fill: #475569; }
.gs-name { font-size: 10px; fill: #64748B; }
.gs-home { background: #fff; border: 1px solid #EEF2F6; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.gs-h { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.gs-h b { font-size: 14px; }
.gs-h span, .gs-ax { font-size: 11px; color: var(--mut); margin: 0; }
.gs-collect { font-size: 11px; color: var(--ink2); background: #F1F5F9; border-radius: 8px; padding: 6px 8px; margin: 8px 0; word-break: keep-all; line-height: 1.45; }
.gc { display: flex; flex-direction: column; gap: 12px; }
.gc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.gc-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.gc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gc-table th, .gc-table td { border: 1px solid #E2E8F0; padding: 6px 8px; text-align: left; white-space: nowrap; }
.gc-table th { background: #F8FAFC; font-weight: 700; }
.gc-sum td { font-weight: 700; }
.gc-rows { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gc-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; border-top: 1px solid #EEF2F6; padding-top: 8px; }
.gc-lab b { display: block; font-size: 13px; }
.gc-lab span { font-size: 12px; color: var(--mut); }
.gc-plots[hidden] { display: none; }
.gc-ov { display: grid; }
.gc-ov > svg { grid-area: 1 / 1; }
.gc-ov > svg + svg .gs-grid, .gc-ov > svg + svg .gs-t, .gc-ov > svg + svg .gs-name { visibility: hidden; }
.gc-xlab { font-size: 11px; color: var(--mut); text-align: center; }
.gc-keys { display: flex; gap: 12px; font-size: 12px; }
.gc-keys[hidden] { display: none; }
.gc-keys i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; }
@media (max-width: 900px) { .gc-body { grid-template-columns: 1fr; } }

.cat-card.is-gait .cat-panel { height: auto; min-height: 0; max-height: none; overflow: visible; }

.dv-merit { margin-top: 12px; }
.dv-merit p { -webkit-line-clamp: 4; }
.rv-card.dv-card { display: flex; flex-direction: column; }
.rv-card.dv-card .dv-merit { margin-top: auto; padding-top: 14px; }
.rv-card.dv-card .dv-merit { min-height: 116px; box-sizing: border-box; }
.rv-card.dv-card .dv-merit + .rv-morerow { margin-top: 0; }
/* 덜 움직인 날 · 답 먼저 */
.tl-answer { background: #fff; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.tl-verdict { margin: 0; font-size: 15px; color: var(--ink); word-break: keep-all; }
.tl-verdict b { font-size: 17px; margin-right: 4px; }
.tl-cmp { display: flex; flex-direction: column; gap: 8px; }
.tl-cmp-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 48px; align-items: center; gap: 10px; font-size: 13px; }
.tl-cmp-track { height: 16px; background: #F1F5F9; border-radius: 4px; overflow: hidden; }
.tl-cmp-track i { display: block; height: 100%; background: #94A3B8; }
.tl-cmp-track i.is-lo { background: #F97316; }
.tl-cmp-row em { font-style: normal; font-weight: 800; text-align: right; }
.tl-cmp-cap { margin: 0; font-size: 12px; color: var(--mut); }
.tl-ex { display: flex; flex-direction: column; gap: 8px; }
.tl-ex-h { margin: 0; font-size: 14px; }
.tl-ex-sub { margin: 0; font-size: 12px; color: var(--ink2); line-height: 1.6; word-break: keep-all; }
.tl-ex-sub i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; }
.hv > .tl { margin-top: 4px; }
.tl-ax em { white-space: nowrap; }
/* 덜 움직인 날 · 한 분의 한 달 그래프 */
.tl-chart { background: #fff; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.tl-ch-t { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.tl-ch-t span { font-weight: 400; font-size: 12px; color: var(--mut); margin-left: 6px; }
.tl-svg { display: block; width: 100%; height: auto; }
.tl-band { fill: #FEF08A; opacity: .55; }
.tl-t { font-size: 11px; fill: #94A3B8; }
.tl-bar { fill: #CBD5E1; }
.tl-bar-lo { fill: #F97316; }
.tl-usual { stroke: #475569; stroke-width: 1.5; stroke-dasharray: 5 4; }
.tl-usual-t { font-size: 11px; fill: #475569; font-weight: 700; }
.tl-axis { stroke: #E2E8F0; }
.tl-line { fill: none; stroke: #94A3B8; stroke-width: 1.5; }
.tl-dot { fill: #64748B; }
.tl-dot-lo { fill: #F97316; stroke: #fff; stroke-width: 1.5; }
.tl-chart { max-width: 940px; }
.tl-usual-t { paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.tl-dash { display: inline-block; width: 18px; border-top: 2px dashed #475569; vertical-align: middle; margin: 0 2px; }
/* 생활 리듬 비교 · 그래프 안 숫자 */
.rv-in-lab { font-size: 11px; font-weight: 700; }
.rv-bar-lab { font-size: 11px; font-weight: 600; fill: #fff; }
.rv-bar-lab.is-dur { font-size: 12.5px; font-weight: 800; }
.rv-day-lab { font-size: 12px; font-weight: 700; }
.rv-halo { paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.dv-in-lab { font-size: 8.5px; font-weight: 700; }
.dv-seg-lab { font-size: 9px; font-weight: 700; fill: #fff; }
.dv-seg-lab.is-dark { fill: #1E3A8A; }

/* 홈 첫 줄: 왼쪽 위 작은 카드 2×2 · 왼쪽 아래 연령대 | 오른쪽 항목별 보유 기간 */
.home-top:has(> .home-age) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "met cov" "age cov"; }
.home-top:has(> .home-age) > .home-metrics-top { grid-area: met; }
.home-top:has(> .home-age) > .home-age { grid-area: age; }
.home-top:has(> .home-age) > .home-cover-top { grid-area: cov; }
.home-top:has(> .home-age) .home-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); height: 100%; }
.home-age { display: flex; flex-direction: column; padding: 10px 14px 12px; margin: 0; }
.home-age .lab { font-size: 13px; color: var(--mut); }
.home-age-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: 8px 0 4px; background: var(--line2); }
.home-age-bar i { display: block; height: 100%; }
.home-age-list { list-style: none; margin: 8px 0 0; padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 4px; font-size: 12px; }
.home-age-list li { display: grid; grid-template-columns: 58px minmax(0, 1fr) 30px; align-items: center; gap: 6px; white-space: nowrap; }
.home-age-list li span { color: var(--mut); }
.home-age-track { height: 8px; border-radius: 4px; background: var(--line2); overflow: hidden; }
.home-age-track i { display: block; height: 100%; border-radius: 4px; }
.home-age-list li b { text-align: right; font-weight: 700; }
@media (max-width: 1000px) { .home-top:has(> .home-age) { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "met" "age" "cov"; } }
/* 연령대 왼쪽 · 사물 태그별 센서 수집 건수(왼쪽 아래를 둘로 나눔 · 오른쪽 보유 기간 카드 너비는 그대로) */
.home-top:has(> .home-tag) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); grid-template-areas: "met met cov" "tag age cov"; }
.home-top:has(> .home-tag) > .home-tag { grid-area: tag; }
.home-tag { display: flex; flex-direction: column; padding: 10px 14px 12px; margin: 0; min-width: 0; }
.home-tag .lab { font-size: 13px; color: var(--mut); }
.home-tag .lab small { font-size: 11px; margin-left: 4px; }
.home-tag-list { list-style: none; margin: 8px 0 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(6, auto); align-content: space-around; column-gap: 12px; row-gap: 3px; font-size: 11.5px; }
.home-tag-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 4px; white-space: nowrap; }
.home-tag-list li span { color: var(--mut); overflow: hidden; text-overflow: ellipsis; }
.home-tag-list li b { font-weight: 700; font-variant-numeric: tabular-nums; }
.home-tag-track { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: var(--line2); overflow: hidden; margin-top: 1px; }
.home-tag-track i { display: block; height: 100%; background: #2563EB; border-radius: 2px; }
.home-tag-wait { margin: 10px 0 0; font-size: 12px; color: var(--mut); line-height: 1.5; }
@media (max-width: 1000px) { .home-top:has(> .home-tag) { grid-template-columns: 1fr; grid-template-areas: "met" "tag" "age" "cov"; } }

/* 상세: 아래 묶음 제목 */
.hv-head-recent { margin: 18px 0 -4px; padding-top: 14px; border-top: 1px solid var(--line); }

/* 상세 맨 위: 카드 한 장이면 줄 전체를 쓴다 */
.hv .cat-cards-activity.hv-act { grid-template-columns: minmax(0, 1fr) !important; }
.hv .cat-more { display: none; }

/* 하루 리듬 · 나이대·성별: 나이 묶음 + 남/여 표시 */
.rm-grow { grid-template-columns: 178px minmax(0, 1fr) 70px minmax(0, 1fr) 80px minmax(0, 1fr) 46px; }
.rm-grow.is-newage { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line2); }
.rm-gl { align-items: center; }
.rm-gage { width: 70px; flex: none; }
.rm-sx { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; line-height: 16px; }
.rm-sx.is-m { color: #1D4ED8; background: #DBEAFE; }
.rm-sx.is-f { color: #BE185D; background: #FCE7F3; }
@media (max-width: 900px) { .rm-grow { grid-template-columns: 150px repeat(3, minmax(0, 1fr) 54px); } .rm-gage { width: 62px; } }
/* 상세 · 활동·이동 카드 한 장: 길게 늘이지 않고 두 칸으로 나눠 담는다 */
.hv .hv-act > .cat-card { padding: 18px 22px; }
.hv .hv-act > .cat-card > .cat-panel { height: auto !important; max-height: none !important; overflow: visible; }
/* 걸음: 왼쪽 두 분의 하루 칸, 오른쪽 읽는 법 */
.hv .hv-act .pw { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); gap: 10px 28px; align-items: start; }
.hv .hv-act .pw > .pw-top { grid-column: 1 / -1; }
.hv .hv-act .pw > .pw-people { grid-column: 1; }
.hv .hv-act .pw > .pk { grid-column: 2; margin-top: 0; padding: 12px 14px; border-radius: 10px; background: var(--bg); }
/* 이동거리: 왼쪽 나이별 막대, 오른쪽 이동 분포 */
.hv .hv-act .rd { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr); grid-template-rows: auto 1fr; gap: 10px 32px; align-items: start; }
.hv .hv-act .rd > :first-child { grid-column: 1; grid-row: 1; }
.hv .hv-act .rd > .rd-groups { grid-column: 1; grid-row: 2; align-self: start; }
.hv .hv-act .rd > .rd-ride { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
.hv .hv-act .rd > .rd-ride .rd-radar { margin: 0 auto; }
.hv .hv-act .rd-groups .rd-row { padding: 4px 0; }
/* 보속·보폭·자세: 왼쪽 걷는 모습, 오른쪽 자세 */
.hv .hv-act .gt { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px 32px; align-items: start; }
.hv .hv-act .gt > * { grid-column: 1; }
.hv .hv-act .gt > .gt-posture { grid-column: 2; grid-row: 1 / span 5; margin-top: 0; padding: 12px 14px; border-radius: 10px; background: var(--bg); }
@media (max-width: 900px) {
  .hv .hv-act .pw, .hv .hv-act .rd, .hv .hv-act .gt { display: block; }
}

/* 활동·이동 자세히 보기 · 추가 카드(act_detail) */
.ad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 2px; }
.ad-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; margin: 0; }
.ad-wide { grid-column: 1 / -1; }
.ad-wait { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 18px; }
.ad-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ad-h h3 { margin: 0; font-size: 15px; }
.ad-h em { font-style: normal; font-size: 11px; color: var(--mut); background: var(--line2); border-radius: 10px; padding: 1px 8px; }
.ad-sub { margin: 0; font-size: 13px; color: var(--ink2); line-height: 1.55; }
.ad-lab { margin: 6px 0 0; font-size: 12px; font-weight: 700; color: var(--ink2); }
.ad-note { margin: auto 0 0; padding: 9px 12px; border-radius: 8px; background: #EEF4FF; color: var(--pri2); font-size: 12.5px; font-weight: 600; }
.ad-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; height: 150px; align-items: end; }
.ad-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.ad-col i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: #BBF7D0; min-height: 2px; }
.ad-col.on i { background: #16A34A; }
.ad-col.warn i { background: #F97316; }
.ad-col.lo i { background: #E2E8F0; }
.ad-col.sel span { color: var(--pri); font-weight: 800; }
.ad-col em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink2); white-space: nowrap; }
.ad-col span { font-size: 11px; color: var(--mut); white-space: nowrap; }
.ad-cols12 .ad-col i { background: #FED7AA; }
.ad-cols12 .ad-col.on i { background: #EA580C; }
.ad-cols12 .ad-col em { font-size: 10px; }
.ad-rng { display: flex; flex-direction: column; gap: 7px; }
.ad-rrow { display: grid; grid-template-columns: 118px minmax(0, 1fr) 76px; gap: 10px; align-items: center; font-size: 12.5px; }
.ad-rrow > span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.ad-rrow > span i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.ad-rrow small { color: var(--mut); font-size: 11px; margin-left: 2px; }
.ad-rrow > b { text-align: right; }
.ad-rtrack { position: relative; height: 14px; border-radius: 7px; background: var(--line2); }
.ad-rbar { position: absolute; top: 3px; height: 8px; border-radius: 4px; }
.ad-rdot { position: absolute; top: 2px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.ad-raxis .ad-rtrack { background: none; height: 12px; }
.ad-raxis em { position: absolute; transform: translateX(-50%); font-style: normal; font-size: 10.5px; color: var(--mut); white-space: nowrap; }
.ad-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ad-tiles4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ad-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; background: var(--bg); }
.ad-tile span { font-size: 12px; color: var(--ink2); }
.ad-tile small { font-size: 11px; color: var(--mut); }
.ad-big { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.ad-stack { display: flex; height: 28px; border-radius: 6px; overflow: hidden; }
.ad-stack i { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; font-style: normal; }
.ad-stack b { font-size: 11.5px; color: #fff; white-space: nowrap; padding: 0 6px; }
.ad-s1 { background: #FDBA74; } .ad-s1 b { color: #7C2D12; }
.ad-s2 { background: #F97316; }
.ad-s3 { background: #C2410C; }
.ad-bars { display: flex; flex-direction: column; gap: 7px; }
.ad-brow { display: grid; grid-template-columns: 150px minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: 12.5px; }
.ad-brow > span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.ad-brow > span i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.ad-brow small { color: var(--mut); font-size: 11px; }
.ad-brow > b { text-align: right; }
.ad-btrack { height: 12px; border-radius: 6px; background: var(--line2); overflow: hidden; }
.ad-btrack i { display: block; height: 100%; border-radius: 6px; background: #94A3B8; }
.ad-btrack i.is-warn { background: #F97316; }
.ad-svg { width: 100%; height: auto; }
.ad-axis { stroke: var(--line); }
.ad-line { fill: none; stroke: #16A34A; stroke-width: 2.5; }
.ad-dot { fill: #16A34A; stroke: #fff; stroke-width: 2; }
.ad-vl { font-size: 11px; font-weight: 700; fill: var(--ink); }
.ad-xl { font-size: 11px; fill: var(--mut); }
.ad-rings { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ad-ring { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ad-ring svg { width: 100%; max-width: 210px; height: auto; }
.ad-ring p { margin: 0; font-size: 13px; }
.ad-ring small { color: var(--mut); font-size: 11px; margin-left: 4px; }
.ad-grid { fill: none; stroke: #CBD5E1; stroke-dasharray: 3 3; }
.ad-gl { font-size: 8px; fill: #94A3B8; }
.ad-home { fill: var(--ink); }
.ad-hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; height: 170px; }
.ad-hour { display: flex; flex-direction: column; border-radius: 3px; overflow: hidden; background: var(--line2); }
.ad-hour i { display: block; width: 100%; }
.ad-hour.is-none { opacity: .3; }
.ad-hx { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; font-size: 10.5px; color: var(--mut); }
.ad-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink2); }
.ad-legend span { display: flex; align-items: center; gap: 5px; }
.ad-legend i { width: 10px; height: 10px; border-radius: 2px; }
@media (max-width: 900px) { .ad { grid-template-columns: 1fr; } .ad-rings { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ad-rings { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ad-tiles, .ad-tiles4 { grid-template-columns: 1fr; } }
.ad-wide .ad-tiles4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* 낮에 오래 누운 날: 왼쪽 분포, 오른쪽 연령대 */
.ad-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: start; }
.ad-split > .ad-h, .ad-split > .ad-sub, .ad-split > .ad-note { grid-column: 1 / -1; }
.ad-split > .ad-cols { grid-column: 1; grid-row: 3 / span 2; }
.ad-split > .ad-lab, .ad-split > .ad-bars { grid-column: 2; }
.ad-split > .ad-lab { grid-row: 3; margin-top: 0; }
.ad-split > .ad-bars { grid-row: 4; align-self: start; }
@media (max-width: 900px) { .ad-wide .ad-tiles4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ad-split { display: flex; } }

/* 상세 · 기기: 보는 기준 상자 안에 [맨 위 카드 | 옆 카드] 반반 + 나머지 카드 · 모두 같은 칸을 따른다 */
.hv .rv.dv[data-dv-detail] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.hv .rv.dv[data-dv-detail] > * { grid-column: 1 / -1; }
.hv .rv.dv[data-dv-detail] > .rv-bar { grid-row: 1; }
.hv .rv.dv[data-dv-detail] > [data-dv-single] { grid-column: 1; grid-row: 2; grid-template-columns: 1fr !important; margin: 0; }
.hv .rv.dv[data-dv-detail] > [data-dv-compare] { grid-row: 2; }
.hv .rv.dv[data-dv-detail] > [data-dv-compare] > .dv-grid3 { grid-template-columns: 1fr !important; margin: 0; }
.hv .rv.dv[data-dv-detail] > .dv-more { display: contents; }
.hv .rv.dv[data-dv-detail] > .dv-more[hidden] > * { display: none; }
.hv .rv.dv[data-dv-detail] > .dv-more > .dv-side { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; }
.hv .rv.dv[data-dv-detail] > .dv-more > .dv-side > .card { flex: 1; margin: 0; }
.hv .rv.dv[data-dv-detail] > .dv-more > .dv-body { grid-column: 1 / -1; grid-row: 3; }
.hv .rv.dv[data-dv-detail] > .rv-src { grid-row: 4; }
.hv .rv.dv[data-dv-detail] [data-dv-banner] { display: none !important; }
.hv .rv.dv.is-loading .dv-more > * { opacity: .45; }
.dv-side-per { margin: 0; font-size: 11.5px; font-weight: 700; color: var(--pri); }
@media (max-width: 1000px) {
  .hv .rv.dv[data-dv-detail] { grid-template-columns: 1fr; }
  .hv .rv.dv[data-dv-detail] > .dv-more > .dv-side { grid-column: 1; grid-row: 3; }
  .hv .rv.dv[data-dv-detail] > .dv-more > .dv-body { grid-row: 4; }
  .hv .rv.dv[data-dv-detail] > .rv-src { grid-row: 5; }
}

/* 대화 자세히 보기 · 말로도 남는 하루 / 다섯 단계 / 말 빠르기 (services/talk_day) */
.td { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; margin: 0; }
.td-lead { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink2); }
.td-ex { border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; background: var(--bg); }
.td-ex-h { margin: 0 0 8px; font-size: 12.5px; color: var(--ink2); }
.td-line { display: flex; flex-direction: column; gap: 4px; position: relative; padding-left: 4px; }
.td-it { display: grid; grid-template-columns: 52px 12px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: 13px; padding: 3px 6px; border-radius: 6px; }
.td-it.is-event { grid-template-columns: 52px minmax(0, 1fr) auto; background: #FFF7ED; }
.td-t { font-variant-numeric: tabular-nums; color: var(--mut); font-size: 12px; }
.td-ev { font-weight: 800; color: #C2410C; }
.td-src { font-style: normal; font-size: 11px; color: #C2410C; }
.td-dot { width: 10px; height: 10px; border-radius: 50%; }
.td-say { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-lv { font-style: normal; font-size: 11px; border: 1.5px solid; border-radius: 10px; padding: 0 7px; color: var(--ink2); white-space: nowrap; }
.td-voice { font-size: 11px; color: var(--pri); border: 1px solid var(--pri); border-radius: 10px; padding: 0 6px; }
.td-play { width: 22px; height: 22px; font-size: 10px; }
.td-cov { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.td-cov > div { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 12px; border-radius: 8px; background: var(--bg); font-size: 12.5px; }
.td-cov b { font-size: 18px; }
.td-2 { gap: 18px; }
.td-g { display: flex; flex-direction: column; gap: 6px; }
.td-lad { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.td-step { display: grid; grid-template-columns: 10px 1fr; gap: 2px 6px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--bg); font-size: 12px; }
.td-step i { width: 10px; height: 10px; border-radius: 2px; grid-row: 1; }
.td-step b { font-size: 13px; }
.td-step span { grid-column: 1 / -1; color: var(--mut); font-size: 11.5px; }
.td-step em { grid-column: 1 / -1; font-style: normal; font-weight: 800; font-size: 18px; }
.td-stack { display: flex; height: 18px; border-radius: 6px; overflow: hidden; background: var(--line2); }
.td-stack.sm { height: 14px; }
.td-stack i { display: block; height: 100%; }
.td-bands { display: flex; flex-direction: column; gap: 6px; }
.td-band { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 12.5px; }
.td-band small { color: var(--mut); font-size: 11px; margin-left: 5px; }
.td-band > b { text-align: right; }
.td-line-svg { fill: none; stroke: #7C3AED; stroke-width: 2.5; }
.td-dot-pt { fill: #7C3AED; stroke: #fff; stroke-width: 2; }
.td-dot-slow { fill: #DC2626; stroke: #fff; stroke-width: 2; }
.td-4 { margin-top: 4px; }
.hv > .td { margin-top: 0; }
@media (max-width: 900px) { .td-lad { grid-template-columns: repeat(2, minmax(0, 1fr)); } .td-cov { grid-template-columns: 1fr; } .td-it { grid-template-columns: 46px 10px minmax(0, 1fr) auto; } .td-lv { display: none; } }
/* 연령대: 줄 높이·간격을 항목별 보유 기간과 같게 고정(19px 줄 · 4px 간격). 남는 높이는 위 데이터 규모 카드가 맡는다. */
.home-top:has(> .home-age) .home-age-list { flex: none; justify-content: flex-start; gap: 4px; }
.home-top:has(> .home-age) .home-age-list li { height: 19px; }
/* 화면 상태 자세히 보기 · 보는 기준 밖 카드(dm/_screen_more.html) */
.sm-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
@media (max-width: 1000px) { .sm-grid2 { grid-template-columns: 1fr; } }
.sm-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; margin: 0; }
.sm-ch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sm-ch h3 { margin: 0; font-size: 16px; }
.sm-sub { margin: 0; font-size: 12px; color: var(--mut); line-height: 1.5; }
.sm-box { background: #F8FAFC; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.sm-bh { font-size: 13px; }
.sm-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 40px; align-items: center; gap: 8px; font-size: 12px; }
.sm-row > span { font-weight: 600; color: #334155; }
.sm-row > b { text-align: right; }
.sm-row.is-sm { grid-template-columns: 52px minmax(0, 1fr); }
.sm-row.is-sm > span { font-weight: 400; color: var(--mut); }
.sm-row.is-hot > span { color: #B45309; font-weight: 700; }
.sm-track { height: 16px; border-radius: 5px; background: #E2E8F0; overflow: hidden; }
.sm-track i { display: block; height: 100%; border-radius: 5px; }
.sm-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sm-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; font-size: 12px; color: var(--mut); }
.sm-foot b { font-size: 20px; color: #4F46E5; }
.sm-foot b.is-out { color: #B45309; }
.sm-tiny { margin: 0; font-size: 11px; color: var(--mut); line-height: 1.45; }
.sm-note { margin: 0; background: #EFF6FF; border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 600; color: #1E3A8A; }
/* 기기 자세히 보기(화면·충전·밝기) · 보는 기준 안 세 카드(맨 위 카드 · 옆 카드 · 칸 카드)를 한 줄로 */
@media (min-width: 1001px) {
  .hv .rv.dv[data-dv-detail] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hv .rv.dv[data-dv-detail] > .dv-more > .dv-body { grid-column: 3; grid-row: 2; display: flex; flex-direction: column; }
  .hv .rv.dv[data-dv-detail] > .dv-more > .dv-body > .stack { flex: 1; display: flex; flex-direction: column; }
  .hv .rv.dv[data-dv-detail] > .dv-more > .dv-body > .stack > .card { flex: 1; margin: 0; }
}
/* 버튼 강약: '한번에 비교하기'는 보조(테두리), '자세히 보기'는 눈에 띄게(옅은 파랑 바탕 · 테두리 · 올리면 진한 파랑) */
.rv-mode { background: #fff; color: #334155; border: 1px solid #CBD5E1; font-weight: 600; font-size: 13px; padding: 7px 14px; }
.rv-mode:hover { border-color: #94A3B8; background: #F8FAFC; }
.rv-mode.is-back { background: #fff; color: #334155; border: 1px solid #CBD5E1; }
.rv-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: #1D4ED8;
           background: #EFF6FF; border: 1px solid #93C5FD; border-radius: 8px; padding: 7px 16px; }
.rv-more:hover { text-decoration: none; background: #2563EB; border-color: #2563EB; color: #fff; }

/* 기기 사용 · 화면: 밤 0–5시에 켠 날 강조 / 밝기: 칸별 막대 제목 */
.dv .dv-line.dv-hl { font-size: 15px; color: #334155; margin-top: 4px; }
.dv .dv-line.dv-hl b { font-size: 20px; color: #7C3AED; margin-left: 4px; }
.dv .dv-strip-t { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 12.5px; font-weight: 600; color: #475569; }
.dv .dv-strip-t i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* 보속·보폭 홈 카드 · 오랜 기간 변화(앞으로 꺼냄) */
.gt-trend { display: flex; flex-direction: column; gap: 2px; }
.gt-trend-t { margin: 0 0 2px; font-size: 12.5px; font-weight: 700; color: #334155; }
.gt-trend-t span { font-weight: 400; color: var(--mut); margin-left: 4px; }
.gt-trend .gs-svg { width: 100%; height: auto; display: block; }

/* 대화 · 장면별 대답 비율 */
.tr { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #E2E8F0; }
.tr-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.tr .sm-row { grid-template-columns: 150px minmax(0, 1fr) 40px; }
@media (max-width: 900px) { .tr-grid { grid-template-columns: 1fr; } }
.gt-trend-v { margin: 4px 0 0; font-size: 12.5px; color: #334155; }
.gt-trend-v b { margin-right: 4px; }
/* 대화 자세히 보기 · 쌓인 기록 전부 규모(services/stt_all) */
.sa-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sa-nums div { background: #fff; border-radius: 10px; padding: 12px; }
.sa-nums span, .sa-nums small { display: block; color: var(--mut); font-size: 12px; }
.sa-nums b { display: block; font-size: 22px; margin: 4px 0 2px; color: #1F4FB8; font-variant-numeric: tabular-nums; }
.sa-years { background: #fff; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.sa-years-t { margin: 0 0 2px; font-size: 13px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sa-years-t span { font-weight: 400; font-size: 11px; color: var(--mut); display: inline-flex; align-items: center; gap: 4px; }
.sa-years-t i, .sa-bars i { display: inline-block; border-radius: 2px; }
.sa-years-t i { width: 10px; height: 8px; }
.sa-year { display: grid; grid-template-columns: 64px minmax(0, 1fr) 150px; align-items: center; gap: 8px; font-size: 12px; }
.sa-year b { font-variant-numeric: tabular-nums; }
.sa-year b small { font-weight: 400; color: var(--mut); font-size: 10px; margin-left: 3px; }
.sa-year > span { color: var(--ink2); text-align: right; font-variant-numeric: tabular-nums; }
.sa-bars { display: flex; flex-direction: column; gap: 2px; }
.sa-bars i { height: 7px; min-width: 2px; }
.sa-years .is-p { background: #4F46E5; }
.sa-years .is-n { background: #A5B4FC; }
@media (max-width: 640px) {
  .sa-nums { grid-template-columns: 1fr; }
  .sa-year { grid-template-columns: 52px minmax(0, 1fr); }
  .sa-year > span { grid-column: 2; text-align: left; }
}
/* 덜 움직인 날 · 답(왼쪽)과 한 분의 한 달(오른쪽)을 나란히 */
.tl-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 14px; align-items: start; }
@media (max-width: 1000px) { .tl-two { grid-template-columns: 1fr; } }

/* 보속·보폭·자세 홈 카드(다시 짬) · 머리글 / 자세(필터) / 보속·보폭(측정 기간 전체) */
.gt-lead b { display: block; font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; word-break: keep-all; }
.gt-lead p { margin: 4px 0 0; font-size: 12.5px; color: #475569; word-break: keep-all; }
.gt-blk { background: #fff; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.gt-blk-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.gt-blk-h b { font-size: 13px; }
.gt-blk-h span { font-size: 11.5px; color: var(--mut); word-break: keep-all; }
.gt-blk .gt-strip { height: 14px; }
.gt-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 3px 8px; font-size: 12px; color: #334155; }
.gt-keys span { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.gt-keys span i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.gt-keys span b { margin-left: auto; font-variant-numeric: tabular-nums; }
.gt-keys span.is-zero { opacity: .45; }
.gt-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.gt-tbl th { font-weight: 600; color: var(--mut); font-size: 11.5px; text-align: right; padding: 0 0 4px; }
.gt-tbl th:first-child, .gt-tbl td:first-child { text-align: left; }
.gt-tbl td { text-align: right; padding: 5px 0; border-top: 1px solid #EEF2F6; white-space: nowrap; }
.gt-tbl td:first-child b { font-size: 13px; }
.gt-tbl td:first-child small { color: var(--mut); font-size: 11px; margin-left: 2px; }
.gt-tbl td.gt-ch { font-weight: 700; color: #334155; padding-left: 6px; }
.gt-tbl td .gt-ar { color: #94A3B8; margin: 0 2px; }
.gt-note { margin: 0; font-size: 11.5px; color: var(--mut); line-height: 1.45; word-break: keep-all; }
.gt-g { display: flex; flex-direction: column; gap: 2px; }
.gt-g-t { margin: 2px 0 0; font-size: 12.5px; color: #334155; font-variant-numeric: tabular-nums; }
.gt-g-t b { margin-right: 4px; }
.gt-g-t em { font-style: normal; font-weight: 700; margin-left: 4px; }
.gt-svg { display: block; width: 100%; height: auto; overflow: visible; }
.gt-st { font-size: 12px; fill: #94A3B8; }
.gt-sl { font-size: 13px; font-weight: 700; fill: #334155; }
.gt-base { stroke: #94A3B8; stroke-width: 1; stroke-dasharray: 3 3; }
.gt-fig b { white-space: nowrap; }

/* 홈 · 활동·이동 한번에 비교하기(services/act_compare) */
.ac-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ac-card h3 { margin: 0; font-size: 16px; }
.ac-card .rv-morerow { margin-top: auto; }
.ac-sub { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: #334155; }
.ac-zero { stroke: #64748B; stroke-width: 1; }
.ac-end { font-size: 11px; font-weight: 700; }
.ac-in { font-size: 10px; font-weight: 700; fill: #fff; }

/* 홈 첫 줄(다시 짬): 왼쪽 = 같은 시간축에 합쳐 보기 · 오른쪽 = 요약 숫자 / 사물 태그 · 연령대(예전 왼쪽 배치 그대로) */
.home-top:has(> .home-align) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "aln met met" "aln tag age"; }
.home-top:has(> .home-align) > .home-align { grid-area: aln; }
@media (max-width: 1000px) { .home-top:has(> .home-align) { grid-template-columns: 1fr; grid-template-areas: "aln" "met" "tag" "age"; } }
.home-align { margin: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ha-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ha-head h2 { margin: 0; font-size: 17px; line-height: 1.35; letter-spacing: -0.02em; word-break: keep-all; }
.ha-head h2 em { font-style: normal; color: #1F4FB8; }
.ha-tag { flex: none; font-size: 11px; font-weight: 700; color: #1F4FB8; border: 1px solid #93C5FD; border-radius: 999px; padding: 2px 8px; }
.ha-lead { margin: 0; font-size: 12.5px; color: var(--ink2); line-height: 1.5; word-break: keep-all; }
.ha-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid #E2E8F0; }
.ha-tbl { width: 100%; border-collapse: collapse; font-size: 12px; text-align: center; white-space: nowrap; }
.ha-tbl caption { caption-side: top; background: #1E3A8A; color: #fff; font-weight: 700; font-size: 13px; padding: 7px 8px; }
.ha-tbl th { background: #1E40AF; color: #fff; font-weight: 600; padding: 6px 6px; }
.ha-tbl td { padding: 6px 6px; border-top: 1px solid #EEF2F6; color: #334155; }
.ha-tbl td.ha-t { font-weight: 700; color: var(--ink); }
.ha-tbl td.ha-x { color: #1F4FB8; font-weight: 700; }
.ha-tbl tbody tr:nth-child(even) td { background: #F8FAFC; }
.ha-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.ha-foot p { margin: 0; font-size: 11.5px; color: var(--mut); word-break: keep-all; }
.ha-more { flex: none; font-size: 13px; font-weight: 700; color: var(--pri); text-decoration: none; border: 1px solid #BFDBFE; background: #EFF6FF; border-radius: 8px; padding: 6px 12px; }
.ha-more:hover { background: #DBEAFE; }
/* 아래 줄 가운데: 항목별 보유 기간 */
.home-row > .home-cover-mid { flex: 1 1 0; min-width: 0; margin: 0; align-self: flex-start; box-sizing: border-box; }
@media (max-width: 1000px) { .home-row > .home-cover-mid { flex: 1 1 100%; } }
/* 더보기 화면 */
.al-page { display: flex; flex-direction: column; gap: 14px; }
.al-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .al-grid { grid-template-columns: 1fr; } }
.al-box { display: flex; flex-direction: column; gap: 6px; }
.al-box h3 { margin: 0; font-size: 15px; }
.al-box ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; color: #334155; }
.al-src { display: flex; flex-direction: column; gap: 8px; }
.al-src div { border: 1px solid #E2E8F0; border-radius: 10px; padding: 10px 12px; background: #fff; }
.al-src b { display: block; font-size: 14px; color: #1F4FB8; }
.al-src span { font-size: 12.5px; color: #475569; }
.al-line { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; text-align: center; border-top: 2px solid #1E40AF; padding-top: 10px; margin-top: 4px; }
.al-line div { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.al-line b { color: #1E40AF; font-size: 14px; }
.al-bottom { background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 14px; padding: 16px 20px; text-align: center; font-size: 17px; font-weight: 700; line-height: 1.6; word-break: keep-all; }
.al-bottom em { font-style: normal; color: #1D4ED8; }
.al-uses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.al-uses div { background: #1E3A8A; color: #fff; border-radius: 10px; padding: 12px; text-align: center; font-weight: 700; font-size: 14px; }
@media (max-width: 700px) { .al-uses, .al-line { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-cover-mid .cat-cover-axis i:first-child { transform: translateX(-100%); }

/* 홈 제목 줄 오른쪽 · 연구 근거(논문 · IRB) */
.home-title:has(> .home-research) { align-items: center; }
.home-research { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #1E3A8A; background: #fff; border: 1px solid #93C5FD; border-radius: 10px; padding: 8px 14px; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.home-research b { font-size: 14px; }
.home-research span { font-size: 12px; color: #475569; padding-left: 8px; border-left: 1px solid #CBD5E1; }
.home-research i { font-style: normal; font-weight: 700; }
.home-research:hover { background: #EFF6FF; border-color: #2563EB; color: #1E3A8A; }
.rs-page { display: flex; flex-direction: column; gap: 14px; }
.rs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 800px) { .rs-grid { grid-template-columns: 1fr; } }
.rs-box { display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.rs-box h2 { margin: 0; font-size: 18px; }
.rs-empty { margin: 0; padding: 18px; border: 1px dashed #CBD5E1; border-radius: 10px; color: var(--mut); font-size: 13px; text-align: center; word-break: keep-all; }

/* 연속으로 기록이 쌓인 사람 · n개월을 누르면 그 줄만 성별·연령대 */
button.cat-year { width: 100%; border: 0; background: none; font: inherit; cursor: pointer; }
.cat-year[aria-expanded="true"] span { border-color: #6EA8FF; background: rgba(110,168,255,.18); color: #fff; }
.cat-tenure .cat-year-block.is-open .cat-year-detail { display: flex !important; flex-direction: column; gap: 4px; margin: 2px 0 4px; }
.cat-tenure.has-open .cat-tenure-legend { display: flex; }

/* 아래 줄 가운데 항목별 보유 기간 · 남색 칸 높이에 맞춰 줄 간격을 고르게 벌림 */
.home-cover-mid .cat-cover { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.home-cover-mid .cat-cover-cols { flex: 1; grid-template-rows: minmax(0, 1fr); }
.home-cover-mid .cat-cover-col { display: flex; flex-direction: column; min-height: 0; }
.home-cover-mid .cat-cover-list { flex: 1; justify-content: space-between; gap: 6px; padding-bottom: 4px; }

/* 홈 · 대화 묶음과 검색 사이를 검색과 지도 묶음 사이만큼(38px) */
.home-cat-main + .home-search-card { margin-top: 26px; }

/* 동시간대 정렬 표 · 확정안 */
.ha-tbl td { height: 18px; }
.ha-tbl td.ha-n { text-align: right; padding-right: 14px; font-variant-numeric: tabular-nums; }
.ha-tbl tr.ha-gap td { padding: 2px 6px; color: #94A3B8; letter-spacing: 2px; text-align: left; }
.ha-tbl td.ha-t { font-variant-numeric: tabular-nums; }

/* 동시간대 정렬 · 누구의 하루인지 */
.ha-who { margin: 0; padding: 7px 12px; background: #F1F6FF; border: 1px solid #DBE7FB; border-radius: 8px; font-size: 12px; color: #475569; word-break: keep-all; line-height: 1.5; }
.ha-who b { color: #1E3A8A; }
.ha-note { margin: 0; font-size: 11.5px; color: var(--mut); }
.ha-tbl td.ha-x { text-align: left; font-weight: 600; }

/* 동시간대 정렬 카드 · 줄마다 한 줄로(첫 화면에 아래 그래프 꼭지가 보이게 낮춤) */
.home-align { padding: 12px 14px; gap: 6px; }
.home-align .ha-head h2 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-align .ha-lead { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-align .ha-tbl { font-size: 11.5px; }
.home-align .ha-tbl caption { padding: 5px 10px; font-size: 12px; }
.home-align .ha-cap { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; overflow: hidden; max-width: 100%; }
.home-align .ha-cap b { flex: none; }
.home-align .ha-tbl caption span { font-weight: 400; font-size: 11.5px; color: #DBEAFE; overflow: hidden; text-overflow: ellipsis; }
.home-align .ha-tbl th { padding: 4px 5px; }
.home-align .ha-tbl td { padding: 3px 5px; height: auto; }
.home-align .ha-tbl tr.ha-gap td { padding: 0 6px; line-height: 10px; font-size: 10px; }
.home-align .ha-foot p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-align .ha-tbl { font-size: 11px; }
.home-align .ha-tbl th, .home-align .ha-tbl td { padding-left: 3px; padding-right: 3px; }
.home-align .ha-tbl td.ha-n { padding-right: 8px; }
.home-align .ha-cap { width: 0; min-width: 100%; }

/* 오른쪽 위 요약 숫자 4칸은 낮게, 아래 사물 태그·연령대는 그만큼 높게 */
.home-top:has(> .home-align) { grid-template-rows: 116px minmax(0, 1fr); }
@media (max-width: 1000px) { .home-top:has(> .home-align) { grid-template-rows: none; } }

/* 홈 첫 줄 비율(피그마 수정안 2026-12-01): 왼쪽 정렬 카드를 넓게 · 오른쪽 두 칸은 좁게 */
.home-top:has(> .home-align) { grid-template-columns: minmax(0, 2.8fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .home-top:has(> .home-align) { grid-template-columns: 1fr; } }
/* 사물 태그 · 한 줄에 하나 · 6개만 · 더보기로 아래로 펼침(칸 높이는 그대로, 안쪽 판만 겹쳐 늘어남) */
.home-top > .home-tag { position: relative; padding: 0; background: none; border: 0; box-shadow: none; overflow: visible; }
.home-tag-in { position: absolute; top: 0; left: 0; right: 0; min-height: 100%; box-sizing: border-box; display: flex; flex-direction: column; padding: 10px 14px 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.home-tag.is-open .home-tag-in { z-index: 30; box-shadow: 0 10px 28px rgba(15, 23, 42, .16); }
.home-tag .home-tag-list { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-rows: none; align-content: space-between; row-gap: 4px; }
.home-tag .home-tag-list li.is-more { display: none; }
.home-tag.is-open .home-tag-list li.is-more { display: grid; }
.home-tag.is-open .home-tag-list { flex: none; align-content: start; row-gap: 6px; }
.home-tag-more { align-self: flex-end; margin-top: 6px; border: 0; background: none; padding: 0; font: inherit; font-size: 12px; font-weight: 700; color: var(--pri); cursor: pointer; }
.home-tag-more span { font-weight: 400; color: var(--mut); }
@media (max-width: 1000px) { .home-tag-in { position: static; } }
.home-align .ha-foot p { font-size: 12px; }

/* 하나의 시간축(홈 동시간대 정렬 더보기) */
.tl { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; }
.tl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tl-eye { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #1F4FB8; display: flex; align-items: center; gap: 6px; }
.tl-eye i { width: 7px; height: 7px; border-radius: 50%; background: #2563EB; }
.tl-head h1 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.tl-who { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid #EEF2F6; font-size: 13px; color: #475569; }
.tl-who p { margin: 0; }
.tl-who b { color: #1E3A8A; }
.tl-how { color: var(--mut); }
.tl-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tl-pick > span { font-size: 13px; color: var(--mut); width: 150px; }
.tl-pick-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.tl-pick-btns button { border: 1px solid #CBD5E1; background: #fff; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13px; color: #334155; cursor: pointer; display: inline-flex; gap: 6px; align-items: baseline; }
.tl-pick-btns button b { font-variant-numeric: tabular-nums; }
.tl-pick-btns button.on { background: #1E3A8A; border-color: #1E3A8A; color: #fff; }
.tl-lanes { display: flex; flex-direction: column; }
.tl-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; border-top: 1px solid #EEF2F6; }
.tl-row.tl-axis { border-top: 0; }
.tl-lab { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 0; border-right: 1px dashed #E2E8F0; }
.tl-lab b { font-size: 14px; }
.tl-lab span { font-size: 12px; color: var(--mut); }
.tl-plot { position: relative; min-height: 58px; }
.tl-plot::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--sel); width: 2px; margin-left: -1px; background: #1E3A8A; opacity: .55; pointer-events: none; transition: left .25s; }
.tl-plot::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--sel); width: 3%; margin-left: -1.5%; background: #DBEAFE; opacity: .45; pointer-events: none; transition: left .25s; }
.tl-axis .tl-plot { min-height: 22px; }
.tl-axis .tl-plot::after, .tl-axis .tl-plot::before { display: none; }
.tl-axis .tl-plot span { position: absolute; top: 4px; transform: translateX(-50%); font-size: 11px; color: var(--mut); }
.tl-steps i { position: absolute; bottom: 6px; max-height: calc(100% - 22px); background: #93C5FD; border-radius: 2px 2px 0 0; min-height: 2px; z-index: 1; }
.tl-steps i.is-out { background: #2563EB; }
.tl-out { position: absolute; top: 4px; bottom: 6px; background: #EFF6FF; border-radius: 6px; }
.tl-out em { position: absolute; top: 2px; left: 6px; font-style: normal; font-size: 11px; color: #1E40AF; white-space: nowrap; }
.tl-sig svg { position: absolute; left: 0; right: 0; top: 4px; width: 100%; height: 30px; }
.tl-scr, .tl-chg { position: absolute; left: 0; right: 0; height: 7px; }
.tl-scr { top: 38px; }
.tl-chg { top: 48px; }
.tl-scr i { position: absolute; width: 5px; height: 7px; margin-left: -2.5px; border-radius: 1.5px; background: #E2E8F0; }
.tl-scr i.on { background: #64748B; }
.tl-chg i { position: absolute; height: 7px; border-radius: 2px; background: #FBBF24; }
.tl-chip { position: absolute; top: 9px; font-size: 11.5px; white-space: nowrap; border-radius: 999px; padding: 3px 9px; border: 1px solid; }
.tl-chip.is-ai { background: #F5F3FF; border-color: #DDD6FE; color: #5B21B6; }
.tl-chip.is-me { top: 32px; background: #ECFDF5; border-color: #A7F3D0; color: #047857; }
.tl-ev s { position: absolute; left: 0; right: 0; top: 18px; border-top: 1px solid #CBD5E1; }
.tl-ev span { position: absolute; top: 13px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11.5px; }
.tl-ev span i { width: 9px; height: 9px; border-radius: 50%; background: #1E3A8A; border: 2px solid #fff; box-shadow: 0 0 0 1px #1E3A8A; }
.tl-ev span b { font-size: 12px; }
.tl-ev span em { font-style: normal; color: var(--mut); font-size: 11px; }
.tl-ev { min-height: 64px; }
.tl-note { background: #F1F6FF; border: 1px solid #DBE7FB; border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.tl-note-t { display: flex; align-items: baseline; gap: 10px; }
.tl-note-t b { font-size: 22px; color: #1E3A8A; font-variant-numeric: tabular-nums; }
.tl-note-t span { font-size: 16px; font-weight: 700; }
.tl-note p { margin: 0; font-size: 14px; color: #334155; }
.tl-vals { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tl-vals div { background: #fff; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tl-vals span { font-size: 11.5px; color: var(--mut); }
.tl-vals b { font-size: 14px; word-break: keep-all; }
.tl-note p.tl-src { font-size: 11.5px; color: var(--mut); }
.tl-flow { margin: 0; display: flex; justify-content: center; gap: 14px; font-size: 13px; color: #475569; flex-wrap: wrap; }
.tl-flow i { font-style: normal; color: #94A3B8; }
.al-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) {
  .tl-row { grid-template-columns: 96px minmax(0, 1fr); }
  .tl-pick > span { width: auto; }
  .tl-vals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .al-why { grid-template-columns: 1fr; }
  .tl-chip { font-size: 10.5px; }
}
.tl-out em { z-index: 2; background: rgba(239,246,255,.9); padding: 0 4px; border-radius: 4px; font-weight: 700; }
.tl-steps { min-height: 70px; }
.tl-steps i { max-height: calc(100% - 26px); }
.tl-chip em { font-style: normal; }
.tl-ev span { white-space: nowrap; }
.tl-plot { overflow: visible; }
.tl { overflow: hidden; }
@media (max-width: 900px) { .tl-chip em { display: none; } .tl { padding: 16px; } }

/* 동시간대 정렬 표 · 정렬 통일: 머리줄과 모든 칸 가운데 */
.ha-tbl th, .ha-tbl td, .ha-tbl td.ha-t, .ha-tbl td.ha-n, .ha-tbl td.ha-x, .home-align .ha-tbl td.ha-n { text-align: center; padding-right: 3px; }
.ha-tbl tr.ha-gap td { text-align: center; }
.tl-axis .tl-plot span { font-variant-numeric: tabular-nums; }
.tl-axis .tl-plot span::before { content: ""; position: absolute; left: 50%; top: -4px; height: 3px; border-left: 1px solid #CBD5E1; }
.tl-axis .tl-plot .tl-unit { position: absolute; right: -14px; top: 4px; font-style: normal; font-size: 11px; color: var(--mut); }
@media (max-width: 900px) { .tl-axis .tl-plot span.is-odd { color: transparent; } }
.tl-axis-lab { font-size: 11px; color: var(--mut); padding-top: 4px; text-align: right; padding-right: 12px; }
.tl-axis .tl-plot span { white-space: nowrap; }
.tl-axis .tl-plot span:last-child { transform: translateX(-100%); }

/* 하나의 시간축(한 사람의 하루 · services/align_live) */
.lv { display: flex; flex-direction: column; gap: 14px; padding: 20px 24px; }
.lv-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.lv-head h1 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.lv-lead { margin: 6px 0 0; font-size: 13px; color: #475569; }
.lv-ctl { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 18px; background: #F8FAFC; border-radius: 12px; padding: 14px 16px; }
.lv-ctl-who { display: flex; flex-direction: column; gap: 6px; }
.lv-k { font-size: 12px; color: var(--mut); }
.lv-ctl-who select { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 10px; border: 1px solid #CBD5E1; border-radius: 8px; background: #fff; }
.lv-stats { margin: 0; font-size: 12px; color: #475569; }
.lv-ctl-day { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lv-day-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lv-day-nav b { font-size: 17px; font-variant-numeric: tabular-nums; }
.lv-wx { font-size: 13px; color: #475569; }
.lv-note { margin-left: auto; font-size: 12px; color: var(--mut); }
.lv-days { display: flex; gap: 6px; flex-wrap: wrap; }
.lv-days a { display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 5px 8px; border: 1px solid #E2E8F0; border-radius: 8px; background: #fff; text-decoration: none; color: #334155; }
.lv-days a em { font-style: normal; font-size: 11px; color: var(--mut); }
.lv-days a b { font-size: 14px; font-variant-numeric: tabular-nums; }
.lv-days a small { font-size: 10px; color: #94A3B8; }
.lv-days a.on { border-color: #1E3A8A; box-shadow: 0 0 0 1px #1E3A8A; }
.lv-empty { margin: 0; padding: 24px; text-align: center; color: var(--mut); }
.lv-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lv-pick > span { font-size: 13px; color: var(--mut); }
.lv-lanes { display: flex; flex-direction: column; }
.lv-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px; gap: 14px; border-top: 1px solid #EEF2F6; }
.lv-row.lv-axis { border-top: 0; }
.lv-lab { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 0; }
.lv-lab b { font-size: 14px; }
.lv-lab span { font-size: 11.5px; color: var(--mut); }
.lv-side { display: flex; flex-direction: column; justify-content: center; gap: 2px; font-size: 12px; color: #334155; }
.lv-side span:first-child { font-weight: 700; }
.lv-plot { position: relative; min-height: 54px; }
.lv-plot::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--sel); width: 2px; margin-left: -1px; background: #1E3A8A; z-index: 6; pointer-events: none; transition: left .25s; }
.lv-axis .lv-plot { min-height: 20px; }
.lv-axis .lv-plot::after { display: none; }
.lv-axis .lv-plot span { position: absolute; top: 3px; transform: translateX(-50%); font-size: 11px; color: var(--mut); white-space: nowrap; }
.lv-gap { position: absolute; top: 4px; bottom: 4px; background: repeating-linear-gradient(135deg, #EEF1F5 0 4px, #F8FAFC 4px 8px); z-index: 0; }
.lv-hr { position: absolute; top: 0; bottom: 0; border-left: 1px dashed #EEF2F6; }
.lv-flow { min-height: 62px; }
.lv-sleep { position: absolute; top: 16px; height: 10px; background: #C7D2FE; border-radius: 3px; z-index: 1; }
.lv-outb { position: absolute; top: 16px; height: 10px; background: #F97316; border-radius: 3px; z-index: 2; }
.lv-outb em { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 700; color: #C2410C; white-space: nowrap; }
.lv-pin { position: absolute; top: 15px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; z-index: 3; }
.lv-pin i { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #64748B; }
.lv-pin b { font-size: 11px; white-space: nowrap; }
.lv-pin.is-wake i { border-color: #D97706; } .lv-pin.is-wake b { color: #B45309; }
.lv-pin.is-out i, .lv-pin.is-in i { border-color: #EA580C; } .lv-pin.is-out b { color: #C2410C; }
.lv-pin.is-in i { border-color: #2563EB; } .lv-pin.is-in b { color: #1D4ED8; }
.lv-pin.is-sleep i { border-color: #6366F1; } .lv-pin.is-sleep b { color: #4338CA; }
.lv-talk { min-height: 62px; }
.lv-chip { position: absolute; top: 6px; font: inherit; font-size: 11.5px; white-space: nowrap; border-radius: 999px; padding: 3px 9px; border: 1px solid; background: #fff; z-index: 3; }
.lv-chip b { font-variant-numeric: tabular-nums; }
.lv-chip.is-ai { border-color: #A78BFA; color: #5B21B6; }
.lv-chip.is-me { top: 32px; border-color: #7C3AED; color: #5B21B6; }
.lv-chip.is-quiz { top: 32px; border-color: #10B981; color: #047857; }
.lv-chip.is-song { top: 32px; border-color: #F43F5E; color: #BE123C; }
button.lv-chip { cursor: pointer; }
button.lv-chip:hover { background: #F5F3FF; }
.lv-steps i:not(.lv-gap):not(.lv-hr) { position: absolute; bottom: 4px; width: 0.55%; max-height: calc(100% - 8px); background: #16A34A; border-radius: 1px 1px 0 0; min-height: 2px; z-index: 1; }
.lv-line svg { position: absolute; left: 0; right: 0; top: 6px; width: 100%; height: calc(100% - 12px); z-index: 1; }
.lv-line polyline { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.lv-chg { position: absolute; bottom: 4px; height: 5px; background: #F59E0B; border-radius: 2px; z-index: 2; }
.lv-sun { position: absolute; top: 2px; transform: translateX(-50%); font-style: normal; font-size: 11px; color: #A16207; white-space: nowrap; z-index: 2; }
.lv-scr i:not(.lv-gap):not(.lv-hr) { position: absolute; top: 18px; width: 0.69%; height: 16px; background: #1E293B; border-radius: 1px; z-index: 1; }
.lv-legend { margin: 0; font-size: 12px; color: var(--mut); }
.lv-detail { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; background: #F1F6FF; border: 1px solid #DBE7FB; border-radius: 12px; padding: 16px 18px; }
.lv-now { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lv-now-t { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lv-now-t b { font-size: 26px; color: #1E3A8A; font-variant-numeric: tabular-nums; }
.lv-now-t span { font-size: 18px; font-weight: 800; }
.lv-now-t em { font-style: normal; font-size: 13px; color: #475569; }
.lv-vals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lv-vals div { background: #fff; border: 1px solid #E2E8F0; border-radius: 8px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lv-vals span { font-size: 11.5px; color: var(--mut); }
.lv-vals b { font-size: 16px; word-break: keep-all; }
.lv-vals em { font-style: normal; font-size: 11.5px; color: #64748B; }
.lv-chain-t { margin: 4px 0 0; font-size: 13px; font-weight: 700; }
.lv-chain { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lv-chain div { background: #fff; border: 1px solid #CBD5E1; border-radius: 8px; padding: 6px 10px; display: flex; flex-direction: column; font-size: 12.5px; }
.lv-chain div b { font-size: 11.5px; }
.lv-chain div.is-ai, .lv-chain div.is-me { border-color: #A78BFA; } .lv-chain div.is-ai b, .lv-chain div.is-me b { color: #6D28D9; }
.lv-chain div.is-out { border-color: #FB923C; } .lv-chain div.is-out b { color: #C2410C; }
.lv-chain div.is-in { border-color: #93C5FD; } .lv-chain div.is-in b { color: #1D4ED8; }
.lv-chain div.is-walk { border-color: #4ADE80; } .lv-chain div.is-walk b { color: #15803D; }
.lv-chain div.is-quiz { border-color: #6EE7B7; } .lv-chain div.is-quiz b { color: #047857; }
.lv-chain i { font-style: normal; color: #94A3B8; }
.lv-usual { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lv-usual-t { margin: 0 0 4px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.lv-usual-t b { font-size: 14px; }
.lv-usual-t span { font-size: 11.5px; color: var(--mut); }
.lv-usual-row { display: grid; grid-template-columns: 96px auto minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid #DBE7FB; font-size: 13px; }
.lv-usual-row span { font-size: 12px; color: var(--mut); }
.lv-usual-row b { font-variant-numeric: tabular-nums; }
.lv-usual-row em { font-style: normal; color: #475569; }
.lv-usual-n { margin: 4px 0 0; font-size: 11.5px; color: var(--mut); }
.lv-raw tr.is-on td { background: #EFF6FF !important; font-weight: 700; }
@media (max-width: 1000px) {
  .lv { padding: 16px; }
  .lv-ctl { grid-template-columns: 1fr; }
  .lv-note { margin-left: 0; }
  .lv-row { grid-template-columns: 84px minmax(0, 1fr); }
  .lv-side { grid-column: 2; flex-direction: row; gap: 8px; flex-wrap: wrap; padding-bottom: 6px; }
  .lv-detail { grid-template-columns: 1fr; }
  .lv-vals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lv-chip { font-size: 10.5px; padding: 2px 6px; }
  .lv-pin b { font-size: 10px; }
}
.lv { overflow: hidden; }
.lv-chip em { font-style: normal; }
@media (max-width: 1000px) { .lv-chip em { display: none; } .lv-plot { overflow: hidden; } .lv-plot.lv-flow { overflow: visible; } }

/* 홈 동시간대 정렬 · 순이–어르신 대화 두 칸 */
.ha-tbl td.ha-say { color: #94A3B8; }
.ha-tbl td.ha-say span { display: inline-block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; cursor: help; }
.ha-tbl td.ha-ai span { color: #1F4FB8; }
.ha-tbl td.ha-me span { color: #9A3412; font-weight: 600; }
.ha-tbl th.ha-th-ai { background: #1D4ED8; } .ha-tbl th.ha-th-me { background: #9A3412; }

/* 넛지 효과 · 순이가 말린 뒤 새벽 TV (홈 대화 카드 + /home/nudge) */
.nd { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nd-sub { margin: 0; font-size: 12px; color: var(--mut); word-break: keep-all; }
.nd-kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nd-kpi > div { background: #F5F8FF; border: 1px solid #DBE7FB; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nd-kpi span { font-size: 11.5px; color: #475569; }
.nd-kpi b { font-size: 20px; color: #1E3A8A; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.nd-kpi b em { font-style: normal; color: #94A3B8; font-weight: 400; margin: 0 4px; font-size: 15px; }
.nd-kpi b small { font-size: 12px; font-weight: 500; color: #64748B; margin-left: 3px; }
.nd-kpi i { font-style: normal; font-size: 11px; color: #64748B; word-break: keep-all; }
.nd-chart { width: 100%; height: auto; display: block; }
.nd-zone { fill: #EEF4FF; }
.nd-zt { font-size: 10px; fill: #3B5BA9; text-anchor: middle; font-weight: 700; }
.nd-grid { stroke: #E2E8F0; stroke-width: 1; }
.nd-yt { font-size: 10px; fill: #94A3B8; text-anchor: end; }
.nd-xt { font-size: 10px; fill: #64748B; text-anchor: middle; }
.nd-xt.is-0 { fill: #9A3412; font-weight: 700; }
.nd-bar { fill: #FDBA74; opacity: .75; }
.nd-line { fill: none; stroke: #1D4ED8; stroke-width: 2.2; stroke-linejoin: round; }
.nd-dot { fill: #fff; stroke: #1D4ED8; stroke-width: 2; }
.nd-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: #475569; }
.nd-legend i { display: inline-block; width: 14px; height: 8px; margin-right: 5px; vertical-align: middle; border-radius: 2px; }
.nd-legend .lg-line { height: 3px; background: #1D4ED8; }
.nd-legend .lg-bar { background: #FDBA74; }
.nd-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nd-foot p { margin: 0; font-size: 11.5px; color: var(--mut); word-break: keep-all; }
.nd-page { display: flex; flex-direction: column; gap: 14px; }
.nd-page > .card { padding: 16px 18px; }
.nd-people h2 { margin: 0; font-size: 16px; }
.nd-ph { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nd-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.nd-filter button { border: 1px solid #CBD5E1; background: #fff; border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 12px; cursor: pointer; color: #334155; }
.nd-filter button.on { background: #1E3A8A; color: #fff; border-color: #1E3A8A; }
.nd-how { margin: 8px 0 6px; font-size: 12px; color: #64748B; }
.nd-late-k { font-weight: 700; color: #9A3412; }
.nd-axis, .nd-strip-row { display: grid; grid-template-columns: 70px 1fr 74px; align-items: center; gap: 8px; }
.nd-axis { margin-left: 190px; margin-right: 110px; }
.nd-axis > div { position: relative; height: 16px; }
.nd-axis em { position: absolute; transform: translateX(-50%); font-style: normal; font-size: 10.5px; color: #94A3B8; }
.nd-row { display: grid; grid-template-columns: 180px 1fr 100px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #EEF2F6; }
.nd-row[hidden] { display: none; }
.nd-who { display: flex; flex-direction: column; gap: 1px; font-size: 11.5px; color: #64748B; }
.nd-who b { font-size: 13px; color: var(--ink); }
.nd-strips { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nd-sl { font-size: 11px; color: #475569; text-align: right; }
.nd-strip { width: 100%; height: 22px; display: block; background: #F8FAFC; border-radius: 4px; }
.nd-late { fill: #FFF7ED; stroke: #F97316; stroke-width: 2; stroke-dasharray: 8 5; vector-effect: non-scaling-stroke; }
.nd-pt { stroke: #3B82F6; stroke-width: 1.5; opacity: .45; vector-effect: non-scaling-stroke; }
.nd-pt.is-late { stroke: #EA580C; stroke-width: 2; opacity: .9; }
.nd-axis em { white-space: nowrap; }
.nd-axis em.is-end { transform: translateX(-100%); }
.nd-sv { font-size: 11px; color: #64748B; }
.nd-sv b { font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.nd-diff { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: #64748B; }
.nd-diff b { font-size: 15px; }
.nd-row.is-down .nd-diff b { color: #1D4ED8; }
.nd-row.is-up .nd-diff b { color: #B91C1C; }
.nd-note { margin: 10px 0 0; font-size: 11.5px; color: var(--mut); word-break: keep-all; }
@media (max-width: 900px) {
  .nd-kpi { grid-template-columns: 1fr; }
  .nd-row { grid-template-columns: 1fr; }
  .nd-axis { margin: 0; }
  .nd-foot { flex-direction: column; align-items: flex-start; }
}

/* 보속·보폭 카드 · 분석 근거 링크 */
.gt-ev-row { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.gt-ev { flex: none; font-size: 12px; font-weight: 700; color: var(--pri); text-decoration: none; }
.gt-ev:hover { text-decoration: underline; }

/* 연구 근거 화면(논문·실증보고서·IRB·보속보폭 근거) */
.rs-page { display: flex; flex-direction: column; gap: 14px; }
.rs-jump { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-jump a { font-size: 12.5px; color: #1E3A8A; background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 999px; padding: 4px 12px; text-decoration: none; font-weight: 600; }
.rs-box { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 70px; min-height: 0; }
.rs-box h2 { margin: 0; font-size: 17px; }
.rs-flow { display: flex; align-items: stretch; gap: 8px; }
.rs-stage { flex: 1; min-width: 0; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.rs-stage p { margin: 0; font-size: 12.5px; color: #475569; word-break: keep-all; line-height: 1.5; }
.rs-st-h { display: flex; align-items: baseline; gap: 8px; }
.rs-st-h b { font-size: 18px; color: #1E3A8A; }
.rs-st-h span { font-size: 12px; color: #64748B; }
.rs-stage .rs-n { font-weight: 700; color: var(--ink); font-size: 13.5px; }
.rs-stage .rs-why { color: #9A3412; }
.rs-arrow { align-self: center; font-style: normal; color: #94A3B8; font-size: 18px; }
.rs-first { background: #F5F8FF; border: 1px solid #DBE7FB; border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.rs-first > b { font-size: 13px; color: #1E3A8A; }
.rs-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rs-kv div { display: flex; flex-direction: column; gap: 2px; }
.rs-kv span { font-size: 12px; color: #64748B; }
.rs-kv b { font-size: 18px; color: var(--ink); }
.rs-kv i { font-style: normal; font-size: 11.5px; color: #64748B; }
.rs-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rs-item { border: 1px solid #E2E8F0; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.rs-item h3 { margin: 0; font-size: 14px; line-height: 1.4; word-break: keep-all; }
.rs-item h3 a { color: #1E3A8A; text-decoration: none; }
.rs-item h3 a:hover { text-decoration: underline; }
.rs-item ul, .rs-dnx { margin: 0; padding-left: 18px; font-size: 12.5px; color: #334155; line-height: 1.6; word-break: keep-all; }
.rs-meta { display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: #64748B; flex-wrap: wrap; }
.rs-tag { font-style: normal; font-weight: 700; color: #1F4FB8; border: 1px solid #93C5FD; border-radius: 999px; padding: 1px 8px; }
.rs-venue, .rs-who, .rs-group { margin: 0; font-size: 12px; color: #64748B; word-break: keep-all; }
.rs-sub { margin: 0; font-size: 14px; }
.rs-terms { border-top: 1px solid #EEF2F6; padding-top: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.rs-terms table { border-collapse: collapse; }
.rs-terms th { text-align: left; padding: 3px 12px 3px 0; color: #1E3A8A; }
.rs-terms td { padding: 3px 12px 3px 0; color: #334155; }
.rs-terms p { margin: 0; font-size: 11.5px; color: #64748B; }
.rs-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rs-tbl th, .rs-tbl td { border-top: 1px solid #EEF2F6; padding: 6px 8px; text-align: left; vertical-align: top; word-break: keep-all; }
.rs-tbl thead th { background: #1E40AF; color: #fff; border: 0; }
.rs-tbl tbody th { color: #1E3A8A; width: 110px; white-space: nowrap; }
.rs-irb th { width: 90px; }
.rs-miss { color: #9A3412; }
.rs-big { margin: 0; font-size: 15px; font-weight: 700; color: #1E3A8A; word-break: keep-all; }
.rs-two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.rs-mini { font-size: 12.5px; color: #475569; }
.rs-note { margin: 0; font-size: 11.5px; color: var(--mut); word-break: keep-all; }
@media (max-width: 900px) {
  .rs-flow { flex-direction: column; } .rs-arrow { transform: rotate(90deg); }
  .rs-list, .rs-two-col, .rs-kv { grid-template-columns: 1fr; }
}

/* 홈 동시간대 정렬 · 핵심 열 + 크게 보기 모달 */
.home-align .ha-cap { align-items: center; }
.ha-zoom { margin-left: auto; flex: none; font: inherit; font-size: 12px; font-weight: 700; color: #1E3A8A; background: #fff; border: 0; border-radius: 6px; padding: 3px 10px; cursor: pointer; }
.ha-zoom:hover { background: #DBEAFE; }
.home-align .ha-tbl td.ha-say span { max-width: 260px; }
.ha-modal { width: min(1280px, 94vw); max-height: 88vh; padding: 0; border: 0; border-radius: 14px; box-shadow: 0 20px 60px rgba(15, 23, 42, .35); }
.ha-modal::backdrop { background: rgba(0, 0, 0, .5); }
.ha-modal[open] { display: flex; flex-direction: column; }
.ha-m-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 18px; background: #1E3A8A; color: #fff; }
.ha-m-head > div { display: flex; flex-direction: column; gap: 2px; }
.ha-m-head b { font-size: 16px; }
.ha-m-head span { font-size: 12.5px; color: #DBEAFE; }
.ha-close { flex: none; width: 34px; height: 34px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .15); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.ha-close:hover { background: rgba(255, 255, 255, .3); }
.ha-m-body { overflow: auto; padding: 0; }
.ha-tbl.is-full { font-size: 13px; }
.ha-tbl.is-full th { position: sticky; top: 0; z-index: 1; padding: 8px 8px; }
.ha-tbl.is-full td { padding: 7px 8px; vertical-align: top; }
.ha-tbl.is-full td.ha-say { white-space: normal; min-width: 260px; text-align: left; }
.ha-tbl.is-full td.ha-say span { display: inline; max-width: none; overflow: visible; cursor: auto; line-height: 1.5; }
.ha-m-note { margin: 0; padding: 10px 18px; font-size: 12px; color: var(--mut); border-top: 1px solid #EEF2F6; }

/* 홈 지도 크게 보기 · 모달(전체화면 아님) */
.map-dim { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 9990; }
.map-x { display: none; }
#home-box.mapbox.is-big { position: fixed; z-index: 10000; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1100px, 92vw); height: min(780px, 86vh); aspect-ratio: auto; border-radius: 14px; box-shadow: 0 20px 60px rgba(15, 23, 42, .4); }
#home-box.is-big #map-full { display: none; }
#home-box.is-big .map-x { display: block; position: absolute; right: 12px; top: 12px; z-index: 600; width: 36px; height: 36px; border: 1px solid #C9D2DD; border-radius: 8px; background: #fff; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(15, 23, 42, .15); }
#home-box.is-big .map-x:hover { background: #F1F5F9; }
/* 연구 근거 · 목록 화면 + 한 건 자세히 */
.rs-flowbar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; text-decoration: none; color: inherit; min-height: 0; }
.rs-flowbar:hover { border-color: #93C5FD; }
.rs-fb-k { font-weight: 700; font-size: 14px; color: #1E3A8A; white-space: nowrap; }
.rs-fb-steps { flex: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: #475569; }
.rs-fb-steps b { color: #1E3A8A; margin-right: 6px; }
.rs-fb-steps i { font-style: normal; color: #94A3B8; }
.rs-flowbar em { font-style: normal; font-size: 12.5px; font-weight: 600; color: #1F4FB8; white-space: nowrap; }
.rs-grp h2 span { font-size: 13px; color: #64748B; font-weight: 600; margin-left: 4px; }
.rs-rows { display: flex; flex-direction: column; }
.rs-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 20px; gap: 14px; align-items: center; padding: 12px 6px; border-top: 1px solid #EEF2F6; text-decoration: none; color: inherit; border-radius: 8px; }
.rs-row:first-child { border-top: 0; }
.rs-row:hover { background: #F5F8FF; }
.rs-row-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 11.5px; color: #64748B; }
.rs-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rs-row-main b { font-size: 14px; line-height: 1.4; color: var(--ink); word-break: keep-all; }
.rs-row:hover .rs-row-main b { color: #1E3A8A; }
.rs-row-sub { font-size: 12px; color: #64748B; word-break: keep-all; }
.rs-row-one { font-size: 12.5px; color: #334155; word-break: keep-all; }
.rs-row-go { font-style: normal; font-size: 22px; color: #94A3B8; }
.rs-back { align-self: flex-start; font-size: 12.5px; font-weight: 600; color: #1F4FB8; text-decoration: none; }
.rs-back:hover { text-decoration: underline; }
.rs-h1 { word-break: keep-all; line-height: 1.35; }
.rs-link { align-self: flex-start; font-size: 12.5px; font-weight: 600; color: #1F4FB8; }
.rs-box.rs-terms { border-top: 0; padding-top: 18px; }
@media (max-width: 900px) { .rs-row { grid-template-columns: minmax(0, 1fr) 20px; } .rs-row-meta { flex-direction: row; grid-column: 1 / -1; } .rs-flowbar { flex-wrap: wrap; } }
.rs-studies { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.rs-study { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.rs-study .rs-tbl th, .rs-study .rs-tbl td { border-top-color: #E2E8F0; }
.rs-study .rs-why { margin: 0; font-size: 12px; color: #9A3412; word-break: keep-all; }
.rs-time { display: block; }
.rs-time b { color: #1E3A8A; margin-right: 4px; }
