:root {
  color-scheme: dark;
  --ink: #edf4ef;
  --muted: #91a69b;
  --line: rgba(218, 236, 226, 0.13);
  --panel: rgba(17, 42, 32, 0.88);
  --panel-soft: #18382c;
  --green: #55a17b;
  --green-light: #a8dbbf;
  --gold: #edbd63;
  --cream: #f3f0e8;
  --black: #0a1511;
  font-family: Inter, Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
button { font: inherit; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 4%, rgba(230, 177, 83, 0.18), transparent 26rem),
    radial-gradient(circle at 8% 35%, rgba(46, 127, 91, 0.15), transparent 30rem),
    var(--black);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.11;
  background-image: radial-gradient(#fff 0.6px, transparent 0.6px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 14px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 20, 15, 0.76);
  backdrop-filter: blur(18px);
}

.back-link {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms, transform 160ms;
}

.back-link:hover, .back-link:focus-visible { border-color: var(--gold); outline: none; transform: translateX(-2px); }
.brand-copy { line-height: 1.1; }
.brand-copy p { margin: 0 0 4px; color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: 0.16em; }
.brand-copy strong { font-size: 15px; }
.demo-badge { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 10px; font-weight: 800; }
.demo-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--green-light); box-shadow: 0 0 0 4px rgba(168, 219, 191, 0.1); }

main { position: relative; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 70px 0 88px; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: 0.2em; }
.hero h1 { margin: 0; font-size: clamp(42px, 6vw, 70px); line-height: 1.04; letter-spacing: -0.06em; }
.hero h1 em { color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.hero-copy { max-width: 590px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

.period-anchor { width: 208px; height: 52px; flex: 0 0 auto; }
.period-control { display: flex; width: 208px; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10, 27, 20, 0.65); transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease; }
.period-control button { min-width: 62px; padding: 10px 14px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
.period-control button.is-active { color: #15271f; background: var(--gold); }
.period-control.is-floating { position: fixed; top: 18px; right: max(24px, calc((100vw - 1180px) / 2)); z-index: 20; border-color: rgba(237, 189, 99, 0.3); background: rgba(10, 27, 20, 0.9); box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.035); backdrop-filter: blur(18px); animation: period-dock 240ms cubic-bezier(.2, .8, .25, 1); }
.period-control button:focus-visible, .view-tabs button:focus-visible, .focus-card button:focus-visible { outline: 2px solid var(--green-light); outline-offset: 2px; }

.view-tabs { display: flex; gap: 28px; margin: 62px 0 24px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.view-tabs::-webkit-scrollbar { display: none; }
.view-tabs button { position: relative; padding: 0 2px 16px; border: 0; color: var(--muted); background: none; cursor: pointer; font-size: 14px; font-weight: 800; }
.view-tabs button::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; content: ""; background: transparent; }
.view-tabs button.is-active { color: var(--ink); }
.view-tabs button.is-active::after { background: var(--gold); }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric { min-width: 0; padding: 24px 25px; border: 1px solid var(--line); border-radius: 18px; background: rgba(19, 45, 35, 0.76); transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.metric:hover { border-color: rgba(168, 219, 191, 0.26); transform: translateY(-3px); box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16); }
.metric--primary { background: linear-gradient(145deg, #346f56, #265340); }
.metric > span { display: block; color: #afc2b7; font-size: 11px; font-weight: 800; }
.metric strong { display: block; margin: 10px 0 7px; overflow: hidden; font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.055em; text-overflow: ellipsis; }
.metric small { color: #8fb8a3; font-size: 10px; font-weight: 700; }
.metric--primary small { color: #d1eadc; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); gap: 12px; margin-top: 12px; }
.panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease; }
.panel:hover { border-color: rgba(168, 219, 191, 0.22); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.13); }
.panel--wide { min-height: 340px; padding: 27px 30px 24px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-heading p { margin: 0 0 5px; color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: 0.17em; }
.panel-heading h2 { margin: 0; font-size: 20px; letter-spacing: -0.03em; }
.panel-heading > span { color: var(--muted); font-size: 10px; }

.line-chart { min-height: 235px; margin-top: 22px; }
.line-chart svg { display: block; width: 100%; height: 235px; overflow: visible; }
.grid-line { stroke: rgba(218, 236, 226, 0.09); stroke-width: 1; }
.trend-area { fill: url(#trend-gradient); }
.trend-line { fill: none; stroke: var(--gold); stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.trend-dot { fill: var(--panel-soft); stroke: var(--gold); stroke-width: 2; }
.trend-dot, .radar-dot, .session-bubble { transform-box: fill-box; transform-origin: center; transition: filter 160ms ease, r 160ms ease, transform 160ms ease; }
.trend-dot:hover, .radar-dot:hover { filter: drop-shadow(0 0 7px rgba(237, 189, 99, 0.75)); transform: scale(1.5); }
.axis-label { fill: #779083; font-size: 9px; }

.focus-card { display: flex; min-height: 340px; flex-direction: column; padding: 27px 28px; background: linear-gradient(155deg, rgba(36, 85, 64, 0.95), rgba(17, 43, 33, 0.95)); }
.focus-score { position: relative; display: flex; margin-top: 31px; padding: 18px; flex-direction: column; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 15px; background: rgba(5, 19, 13, 0.28); }
.focus-score span { color: var(--green-light); font-size: 9px; font-weight: 900; }
.focus-score strong { margin-top: 7px; font-size: 19px; }
.focus-score b { position: absolute; right: 17px; bottom: 17px; color: var(--gold); font-size: 20px; }
.focus-card > p { margin: 17px 0 20px; color: #a9bdb2; font-size: 12px; line-height: 1.65; }
.focus-card button { display: flex; min-height: 45px; margin-top: auto; align-items: center; justify-content: space-between; padding: 0 15px; border: 0; border-radius: 12px; color: #1a281f; background: var(--gold); cursor: pointer; font-size: 12px; font-weight: 900; }

.volume-chart { display: flex; height: 220px; align-items: end; gap: 5px; margin-top: 29px; }
.volume-day { position: relative; width: 100%; min-width: 3px; height: var(--height); border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--green) var(--shade), #234135); transition: background 150ms, transform 150ms; }
.volume-day:hover { z-index: 2; background: var(--gold); transform: scaleY(1.03); transform-origin: bottom; }
.volume-day::after { position: absolute; bottom: calc(100% + 7px); left: 50%; display: none; padding: 5px 7px; border-radius: 6px; color: #16251e; content: attr(data-label); background: var(--cream); font-size: 9px; font-weight: 800; white-space: nowrap; transform: translateX(-50%); }
.volume-day:hover::after { display: block; }

.achievement-card { display: flex; min-height: 340px; padding: 28px; flex-direction: column; justify-content: end; color: #183126; background: var(--cream); }
.achievement-icon { display: grid; width: 48px; height: 48px; margin-bottom: auto; place-items: center; border-radius: 50%; color: #f3f0e8; background: #317357; font-size: 24px; }
.achievement-card p { margin: 0 0 8px; color: #60776a; font-size: 10px; font-weight: 900; }
.achievement-card h2 { max-width: 240px; margin: 0 0 12px; font-size: 25px; line-height: 1.25; letter-spacing: -0.045em; }
.achievement-card > span:last-child { color: #6c7e74; font-size: 12px; }

.visual-atlas { padding-top: 18px; }
.atlas-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.atlas-heading p { margin: 0 0 9px; color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: 0.2em; }
.atlas-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.045em; }
.atlas-heading > span { max-width: 310px; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: right; }
.atlas-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.atlas-card { min-height: 360px; padding: 28px 30px; }
.atlas-card--growth { grid-column: span 8; }
.atlas-card--balance { grid-column: span 4; display: flex; align-items: center; flex-direction: column; }
.atlas-card--balance .panel-heading { width: 100%; }
.atlas-card--heatmap { grid-column: span 7; }
.atlas-card--radar { grid-column: span 5; }
.atlas-card--sessions { grid-column: span 12; min-height: 400px; }

.growth-chart { height: 245px; margin-top: 23px; }
.growth-chart svg, .radar-chart svg, .session-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.growth-area { fill: url(#growth-gradient); }
.growth-line { fill: none; stroke: #8fd0ad; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }
.growth-guide { stroke: rgba(255, 255, 255, 0.08); stroke-dasharray: 3 6; }
.growth-label { fill: #789085; font-size: 9px; }
.growth-value { fill: var(--gold); font-size: 12px; font-weight: 900; }

.answer-orbit { position: relative; display: grid; width: 190px; height: 190px; margin: 28px 0 22px; place-items: center; border-radius: 50%; background: conic-gradient(var(--gold) 0 var(--answer-rate), #315c49 var(--answer-rate) 100%); box-shadow: 0 0 0 12px rgba(237, 189, 99, 0.035); }
.answer-orbit::before { position: absolute; width: 130px; height: 130px; border-radius: 50%; content: ""; background: #142f25; box-shadow: inset 0 0 0 1px var(--line); }
.answer-orbit span { position: relative; display: flex; flex-direction: column; text-align: center; }
.answer-orbit strong { font-family: Georgia, serif; font-size: 42px; font-weight: 400; letter-spacing: -0.045em; }
.answer-orbit small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.answer-legend { display: flex; width: 100%; gap: 8px; margin-top: auto; }
.answer-legend p { display: grid; width: 100%; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin: 0; padding: 12px; border-radius: 10px; color: var(--muted); background: rgba(255, 255, 255, 0.035); font-size: 9px; }
.answer-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.answer-legend p + p i { background: #315c49; }
.answer-legend b { color: var(--ink); font-size: 11px; }

.focus-heatmap { display: grid; grid-template-columns: 40px repeat(7, minmax(22px, 1fr)); gap: 7px; margin-top: 32px; }
.heatmap-label { display: grid; min-height: 39px; place-items: center; color: #789085; font-size: 9px; }
.heatmap-cell { position: relative; min-height: 39px; padding: 0; border: 0; border-radius: 7px; background: color-mix(in srgb, var(--gold) var(--intensity), #18392d); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035); cursor: pointer; transition: filter 140ms ease, transform 140ms ease, box-shadow 140ms ease; }
.heatmap-cell:hover, .heatmap-cell:focus-visible, .heatmap-cell.is-selected { z-index: 1; outline: none; filter: brightness(1.18); transform: scale(1.08); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.62), 0 8px 18px rgba(0, 0, 0, 0.2); }
.heatmap-cell::after { position: absolute; bottom: calc(100% + 6px); left: 50%; z-index: 2; display: none; padding: 5px 7px; border-radius: 6px; color: #17271f; content: attr(data-label); background: var(--cream); font-size: 9px; font-weight: 800; white-space: nowrap; transform: translateX(-50%); }
.heatmap-cell:hover::after { display: block; }
.heatmap-scale { display: flex; align-items: center; justify-content: end; gap: 5px; margin-top: 18px; color: var(--muted); font-size: 8px; }
.heatmap-scale i { width: 18px; height: 7px; border-radius: 2px; background: #224537; }
.heatmap-scale i:nth-of-type(2) { background: #486044; }.heatmap-scale i:nth-of-type(3) { background: #766f49; }.heatmap-scale i:nth-of-type(4) { background: #aa8e51; }.heatmap-scale i:nth-of-type(5) { background: var(--gold); }
.heatmap-insight { display: flex; min-height: 18px; align-items: center; gap: 8px; margin: 13px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.heatmap-insight > i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(237, 189, 99, 0.08); }
.heatmap-insight.is-updating > i { animation: insight-pulse 380ms ease; }

.radar-chart { height: 270px; margin-top: 13px; }
.radar-grid { fill: none; stroke: rgba(218, 236, 226, 0.12); }
.radar-axis { stroke: rgba(218, 236, 226, 0.08); }
.radar-shape { fill: rgba(237, 189, 99, 0.22); stroke: var(--gold); stroke-linejoin: round; stroke-width: 2; }
.radar-dot { fill: var(--panel-soft); stroke: var(--gold); stroke-width: 2; }
.radar-label { fill: #a8bbb1; font-size: 9px; font-weight: 700; }

.session-chart { height: 275px; margin-top: 20px; }
.session-grid { stroke: rgba(218, 236, 226, 0.09); }
.session-axis-label { fill: #789085; font-size: 9px; }
.session-bubble { fill: rgba(82, 166, 124, 0.46); stroke: #83c5a3; stroke-width: 1.5; }
.session-bubble.is-evening { fill: rgba(237, 189, 99, 0.42); stroke: var(--gold); }
.session-bubble:hover { filter: drop-shadow(0 0 8px rgba(237, 189, 99, 0.65)); transform: scale(1.18); }
.session-bubble:focus { outline: none; filter: drop-shadow(0 0 9px rgba(237, 189, 99, 0.82)); transform: scale(1.18); }
.session-insight { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.session-insight i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(237, 189, 99, 0.08); }

.experiment-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 82px 0 24px; padding-top: 48px; border-top: 1px solid var(--line); }
.experiment-heading span { color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .2em; }
.experiment-heading h2 { margin: 9px 0 0; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.04em; }
.experiment-heading p { max-width: 330px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; text-align: right; }
.experiment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.experiment-card { min-height: 390px; padding: 28px 30px; }

.calendar-chart { display: grid; height: 260px; grid-auto-flow: column; grid-auto-columns: minmax(9px, 1fr); grid-template-rows: repeat(7, 1fr); gap: 5px; margin-top: 25px; }
.calendar-day { position: relative; min-width: 0; padding: 0; border: 0; border-radius: 4px; background: color-mix(in srgb, var(--green-light) var(--intensity), #19382d); cursor: pointer; transition: filter 140ms ease, transform 140ms ease; }
.calendar-day.is-outside { opacity: .13; }.calendar-day.is-empty { visibility: hidden; }
.calendar-day:hover, .calendar-day:focus-visible { z-index: 2; outline: none; filter: brightness(1.25); transform: scale(1.18); }
.calendar-day::after { position: absolute; bottom: calc(100% + 6px); left: 50%; z-index: 4; display: none; padding: 5px 7px; border-radius: 6px; color: #17271f; content: attr(data-label); background: var(--cream); font-size: 8px; font-weight: 800; white-space: nowrap; transform: translateX(-50%); }
.calendar-day:hover::after, .calendar-day:focus-visible::after { display: block; }

.flow-chart, .stream-chart { height: 285px; margin-top: 20px; }
.flow-chart svg, .stream-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.flow-band { fill: none; stroke-linecap: round; opacity: .52; transition: opacity 160ms ease; }
.flow-band:hover { opacity: .92; }
.flow-node { rx: 9; fill: #23483a; stroke: rgba(218, 236, 226, .16); }
.flow-node.is-result { fill: #665a36; }.flow-node.is-next { fill: #315e49; }
.flow-label { fill: #dbe8e0; font-size: 9px; font-weight: 800; }.flow-value { fill: var(--gold); font-size: 12px; font-weight: 900; }

.word-treemap { display: grid; height: 270px; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr); gap: 6px; margin-top: 24px; }
.tree-cell { position: relative; display: flex; min-width: 0; padding: 13px; align-items: flex-start; justify-content: flex-end; flex-direction: column; overflow: hidden; border: 0; border-radius: 11px; color: #f2f7f4; background: color-mix(in srgb, var(--tree-color) var(--mastery), #17352a); cursor: pointer; text-align: left; transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.tree-cell:hover, .tree-cell:focus-visible, .tree-cell.is-selected { z-index: 1; outline: none; filter: brightness(1.13); transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0, 0, 0, .22); }
.tree-cell strong { display: block; max-width: 100%; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.tree-cell span { margin-top: 4px; color: rgba(255, 255, 255, .7); font-size: 8px; }
.tree-cell:nth-child(1) { grid-column: span 3; grid-row: span 2; }.tree-cell:nth-child(2) { grid-column: span 2; grid-row: span 2; }.tree-cell:nth-child(3) { grid-row: span 2; }.tree-cell:nth-child(4) { grid-column: span 2; grid-row: span 2; }.tree-cell:nth-child(5) { grid-column: span 3; }.tree-cell:nth-child(6) { grid-column: span 1; }
.treemap-insight { display: flex; align-items: center; gap: 8px; margin: 13px 0 0; color: var(--muted); font-size: 9px; }
.treemap-insight i { width: 6px; height: 6px; border-radius: 50%; background: var(--green-light); box-shadow: 0 0 0 4px rgba(168, 219, 191, .07); }

.stream-layer { stroke: rgba(255, 255, 255, .08); stroke-width: 1; transition: filter 160ms ease, opacity 160ms ease; }
.stream-layer:hover { filter: brightness(1.18); opacity: .92; }
.stream-guide { stroke: rgba(218, 236, 226, .08); stroke-dasharray: 3 6; }
.stream-label { fill: #789085; font-size: 9px; }
.stream-legend { display: flex; justify-content: center; gap: 20px; margin-top: 4px; color: var(--muted); font-size: 9px; }
.stream-legend span { display: flex; align-items: center; gap: 6px; }.stream-legend i { width: 8px; height: 8px; border-radius: 50%; background: #4d9873; }.stream-legend span:nth-child(2) i { background: var(--gold); }.stream-legend span:nth-child(3) i { background: #b7c8bd; }

.pattern-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 12px; }
.pattern-types, .rhythm-panel, .mistakes-panel { padding: 30px; }
.pattern-types { grid-row: span 2; min-height: 650px; }
.type-bars { display: grid; gap: 24px; margin-top: 42px; }
.type-row { display: grid; grid-template-columns: 124px 1fr 78px; align-items: center; gap: 15px; }
.type-row > span { font-size: 12px; font-weight: 800; }
.type-row > div { height: 10px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, 0.07); }
.type-row i { display: block; width: var(--accuracy); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3f8a68, var(--gold)); }
.type-row p { margin: 0; color: var(--muted); font-size: 10px; text-align: right; }
.type-row p strong { display: block; color: var(--ink); font-size: 15px; }

.rhythm-summary { display: flex; align-items: center; justify-content: space-around; gap: 24px; margin: 32px 0; }
.donut { position: relative; display: grid; width: 142px; height: 142px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: conic-gradient(#edf2e9 0 53%, var(--gold) 53% 72%, #4a9b75 72%); }
.donut::before { position: absolute; width: 92px; height: 92px; border-radius: 50%; content: ""; background: #143228; }
.donut span { position: relative; display: flex; flex-direction: column; text-align: center; }
.donut strong { font-size: 11px; }
.donut small { margin-top: 3px; color: var(--gold); font-size: 18px; font-weight: 900; }
.legend p { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; min-width: 110px; margin: 10px 0; color: var(--muted); font-size: 10px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend .green { background: #4a9b75; }.legend .gold { background: var(--gold); }.legend .cream { background: #edf2e9; }
.legend b { color: var(--ink); }
.weekday-bars { display: flex; height: 92px; align-items: end; justify-content: space-between; gap: 8px; padding-top: 15px; border-top: 1px solid var(--line); }
.weekday-bars p { display: flex; width: 100%; height: 100%; margin: 0; align-items: center; flex-direction: column; justify-content: end; gap: 7px; color: var(--muted); font-size: 9px; }
.weekday-bars i { display: block; width: 100%; max-width: 20px; height: var(--height); border-radius: 4px 4px 1px 1px; background: #3e8062; }
.weekday-bars p.is-best i { background: var(--gold); }

.mistake-list { display: grid; gap: 15px; margin-top: 28px; }
.mistake-list p { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 0; padding-bottom: 11px; font-size: 11px; }
.mistake-list p > span { color: var(--muted); font-size: 9px; }
.mistake-list i { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; overflow: hidden; border-radius: 5px; background: rgba(255, 255, 255, 0.07); }
.mistake-list i::after { display: block; width: var(--score); height: 100%; content: ""; background: #b58357; }

.weekly-report { overflow: hidden; border-radius: 24px; color: #193128; background: var(--cream); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25); }
.weekly-cover { display: flex; min-height: 330px; align-items: end; justify-content: space-between; padding: 55px 60px; color: var(--ink); background: radial-gradient(circle at 82% 25%, rgba(234, 188, 98, 0.22), transparent 20rem), #173c2e; }
.weekly-cover p { margin: 0 0 18px; color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: 0.2em; }
.weekly-cover h2 { margin: 0; font-size: clamp(42px, 6vw, 66px); line-height: 1.06; letter-spacing: -0.06em; }
.weekly-cover > strong { font-family: Georgia, serif; font-size: 94px; font-weight: 400; letter-spacing: -0.07em; }
.weekly-cover > strong small { color: #81978c; font-family: Inter, sans-serif; font-size: 13px; letter-spacing: 0; }
.weekly-story { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: 54px 60px; border-bottom: 1px solid #d2d8d2; }
.weekly-story span, .weekly-columns section > span { color: #49715e; font-size: 9px; font-weight: 900; letter-spacing: 0.18em; }
.weekly-story p { margin: 15px 0 0; color: #52685d; font-size: 14px; line-height: 1.9; }
.weekly-story p strong { color: #17382a; }
.weekly-story blockquote { margin: 0; color: #315c48; font-family: Georgia, "Noto Serif KR", serif; font-size: 22px; line-height: 1.6; }
.weekly-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 50px 60px; }
.weekly-columns section + section { padding-left: 60px; border-left: 1px solid #d2d8d2; }
.weekly-columns h3 { margin: 10px 0 27px; font-size: 24px; }
.weekly-columns ol { margin: 0; padding: 0; list-style: none; }
.weekly-columns li { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid #d2d8d2; }
.weekly-columns li b, .goal-card i { color: #739083; font-size: 10px; font-style: normal; }
.weekly-columns li p { margin: 0; color: #607168; font-size: 11px; line-height: 1.65; }
.weekly-columns li strong { display: block; color: #18372a; font-size: 14px; }
.goal-card { display: flex; align-items: center; gap: 17px; margin-top: 10px; padding: 18px; border-radius: 14px; background: #e1e6df; }
.goal-card p { margin: 0; color: #66786e; font-size: 10px; line-height: 1.55; }
.goal-card strong { color: #19382b; font-size: 14px; }
.weekly-report footer { display: flex; justify-content: space-between; padding: 20px 60px; color: #77877f; background: #e5e8e2; font-size: 8px; font-weight: 800; letter-spacing: 0.12em; }

.parent-report { overflow: hidden; border-radius: 25px; color: #20342b; background: #f1eee6; box-shadow: 0 30px 90px rgba(0, 0, 0, .24); }
.parent-cover { display: flex; min-height: 245px; align-items: end; justify-content: space-between; padding: 48px 58px; color: #f1f6f2; background: radial-gradient(circle at 84% 22%, rgba(237, 189, 99, .2), transparent 19rem), #254d3c; }
.parent-cover p { margin: 0 0 15px; color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .19em; }
.parent-cover h2 { margin: 0 0 10px; font-size: clamp(38px, 6vw, 58px); letter-spacing: -.055em; }
.parent-cover > div > span { color: #9fb4a8; font-size: 11px; }
.parent-seal { display: grid; width: 112px; height: 112px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(237, 189, 99, .45); border-radius: 50%; color: var(--gold); text-align: center; }
.parent-seal span { align-self: end; font-size: 8px; font-weight: 800; }.parent-seal strong { align-self: start; margin-top: 4px; font-family: Georgia, serif; font-size: 38px; font-weight: 400; }
.parent-opening { display: grid; grid-template-columns: 150px 1fr; gap: 38px; padding: 46px 58px; border-bottom: 1px solid #d7d8d1; }
.parent-opening > span { color: #48705d; font-size: 10px; font-weight: 900; }
.parent-opening p { max-width: 750px; margin: 0; color: #617168; font-family: Georgia, "Noto Serif KR", serif; font-size: 19px; line-height: 1.85; }
.parent-opening strong { color: #28523f; }
.parent-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #d7d8d1; }
.parent-stats p { margin: 0; padding: 34px 42px; border-right: 1px solid #d7d8d1; }.parent-stats p:last-child { border-right: 0; }
.parent-stats span { display: block; margin-bottom: 8px; color: #6a7c72; font-size: 9px; font-weight: 800; }.parent-stats strong { font-family: Georgia, serif; font-size: 40px; font-weight: 400; }.parent-stats small { margin-left: 5px; color: #77877f; }
.parent-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.parent-note { min-height: 260px; padding: 42px 48px; border-bottom: 1px solid #d7d8d1; }.parent-note + .parent-note { border-left: 1px solid #d7d8d1; }
.parent-note > span { display: inline-flex; padding: 7px 10px; border-radius: 99px; color: #28533f; background: #dce7df; font-size: 8px; font-weight: 900; }
.parent-note--support > span { color: #775d36; background: #e9dfca; }
.parent-note h3 { margin: 22px 0 13px; font-size: 22px; letter-spacing: -.035em; }.parent-note p { margin: 0; color: #65766d; font-size: 12px; line-height: 1.8; }
.parent-message { grid-column: span 2; display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 38px 48px; background: #e6e9e2; }
.parent-message p { margin: 0; color: #688075; font-size: 9px; font-weight: 900; letter-spacing: .08em; }.parent-message blockquote { margin: 0; color: #315743; font-family: Georgia, "Noto Serif KR", serif; font-size: 21px; }
.share-footer { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 48px; color: #75847c; background: #dcdfd8; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.share-footer button { display: flex; min-height: 42px; align-items: center; gap: 24px; padding: 0 15px; border: 0; border-radius: 10px; color: #f1f5f2; background: #315d48; cursor: pointer; font-size: 10px; font-weight: 900; transition: transform 160ms ease, background 160ms ease; }.share-footer button:hover { background: #3e735a; transform: translateY(-2px); }

.week-share-report { overflow: hidden; border: 1px solid rgba(237, 189, 99, .22); border-radius: 25px; background: radial-gradient(circle at 88% 12%, rgba(237, 189, 99, .17), transparent 25rem), #10291f; box-shadow: 0 30px 90px rgba(0, 0, 0, .28); }
.share-topline { display: flex; justify-content: space-between; padding: 25px 48px; border-bottom: 1px solid var(--line); color: #81958a; font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.share-hero { position: relative; min-height: 420px; padding: 62px 58px; overflow: hidden; }
.share-hero::after { position: absolute; top: 64px; right: -70px; width: 330px; height: 330px; border: 1px solid rgba(237, 189, 99, .22); border-radius: 50%; content: ""; box-shadow: 0 0 0 34px rgba(237, 189, 99, .035), 0 0 0 70px rgba(237, 189, 99, .02); }
.share-hero > p { margin: 0 0 18px; color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .2em; }.share-hero h2 { position: relative; z-index: 1; margin: 0; font-size: clamp(44px, 7vw, 74px); line-height: 1.04; letter-spacing: -.065em; }.share-hero h2 em { color: var(--gold); font-family: Georgia, serif; font-weight: 400; }
.share-big-number { position: absolute; right: 60px; bottom: 54px; z-index: 1; display: flex; align-items: end; gap: 13px; }.share-big-number strong { font-family: Georgia, serif; font-size: 84px; font-weight: 400; line-height: .8; }.share-big-number span { color: #82968b; font-size: 8px; font-weight: 900; line-height: 1.5; letter-spacing: .11em; }
.share-score-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.share-score-row > div { padding: 30px 34px; border-right: 1px solid var(--line); }.share-score-row > div:last-child { border-right: 0; }.share-score-row span { display: block; color: #82968b; font-size: 9px; }.share-score-row strong { display: block; margin: 9px 0 17px; font-size: 23px; }.share-score-row i { display: block; height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .07); }.share-score-row b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4b9a73, var(--gold)); transition: width 450ms ease; }
.share-week-rhythm { display: flex; align-items: end; justify-content: space-between; gap: 35px; padding: 42px 48px; }.share-week-rhythm p { margin: 0 0 7px; color: var(--gold); font-size: 8px; font-weight: 900; letter-spacing: .18em; }.share-week-rhythm h3 { margin: 0; font-size: 22px; }.share-days { display: flex; gap: 9px; }.share-day { display: flex; align-items: center; flex-direction: column; gap: 8px; color: #71877b; font-size: 8px; }.share-day i { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-style: normal; }.share-day.is-active i { border-color: var(--gold); color: #1d3127; background: var(--gold); box-shadow: 0 0 0 6px rgba(237, 189, 99, .06); }
.share-highlight { display: flex; align-items: center; gap: 22px; margin: 0 48px; padding: 27px; border: 1px solid rgba(237, 189, 99, .18); border-radius: 17px; background: rgba(237, 189, 99, .055); }.share-highlight > span { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #183025; background: var(--gold); font-size: 22px; }.share-highlight p { margin: 0 0 6px; color: #899c91; font-size: 8px; font-weight: 900; letter-spacing: .15em; }.share-highlight h3 { margin: 0 0 5px; font-size: 22px; }.share-highlight h3 strong { color: var(--gold); }.share-highlight small { color: #8ca096; font-size: 10px; }
.share-quote { margin: 0; padding: 60px 48px; color: #dbe7df; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(27px, 4vw, 42px); line-height: 1.45; text-align: center; }
.share-footer--dark { color: #70847a; border-top: 1px solid var(--line); background: rgba(5, 19, 13, .26); }.share-footer--dark button { color: #17271f; background: var(--gold); }.share-footer--dark button:hover { background: #f4c973; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 5; padding: 13px 17px; border-radius: 12px; color: #14231c; background: var(--green-light); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3); font-size: 11px; font-weight: 900; }

.motion-ready .reveal-item { opacity: 0; transform: translateY(18px); }
.motion-ready .reveal-item.is-revealed { opacity: 1; transform: translateY(0); transition: opacity 520ms cubic-bezier(.2, .8, .2, 1), transform 520ms cubic-bezier(.2, .8, .2, 1); transition-delay: var(--reveal-delay, 0ms); }
.view-panel.is-refreshing .metric strong { animation: metric-pop 320ms cubic-bezier(.2, .9, .3, 1); }
.is-chart-entering .trend-line, .is-chart-entering .growth-line, .is-chart-entering .radar-shape { animation: draw-line 650ms cubic-bezier(.2, .75, .25, 1) both; }
.is-chart-entering .trend-area, .is-chart-entering .growth-area { animation: fade-chart 520ms ease both; }
.is-chart-entering .volume-day, .is-chart-entering .heatmap-cell { animation: rise-cell 380ms cubic-bezier(.2, .8, .25, 1) both; animation-delay: var(--motion-delay, 0ms); }
.is-chart-entering .session-bubble { animation: bubble-in 450ms cubic-bezier(.2, .85, .25, 1) both; animation-delay: var(--motion-delay, 0ms); }

@keyframes metric-pop { 0% { opacity: .45; transform: translateY(5px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes draw-line { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes fade-chart { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-cell { from { opacity: 0; transform: scaleY(.25); transform-origin: bottom; } to { opacity: 1; transform: scaleY(1); } }
@keyframes bubble-in { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes insight-pulse { 50% { transform: scale(1.8); box-shadow: 0 0 0 8px rgba(237, 189, 99, 0.04); } }
@keyframes period-dock { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 900px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .pattern-grid { grid-template-columns: 1fr; }
  .pattern-types { grid-row: auto; min-height: auto; }
  .weekly-cover { min-height: 290px; padding: 42px; }
  .weekly-cover > strong { font-size: 70px; }
  .weekly-story, .weekly-columns { gap: 36px; padding: 40px 42px; }
  .weekly-columns section + section { padding-left: 36px; }
  .atlas-card--growth, .atlas-card--heatmap, .atlas-card--radar { grid-column: span 12; }
  .atlas-card--balance { grid-column: span 12; }
  .experiment-grid { grid-template-columns: 1fr; }
  .parent-cover, .parent-opening, .parent-note, .parent-message { padding-right: 40px; padding-left: 40px; }
}

@media (max-width: 640px) {
  .topbar { min-height: 68px; padding: 0 16px; }
  main { width: calc(100% - 28px); padding: 46px 0 60px; }
  .hero { align-items: flex-start; flex-direction: column; }
  .hero h1 { font-size: 43px; }
  .period-control { width: 100%; }
  .period-anchor { width: 100%; }
  .period-control button { width: 100%; }
  .period-control.is-floating { top: 12px; right: 14px; left: 14px; width: auto; }
  .view-tabs { margin-top: 45px; gap: 15px; }
  .view-tabs button { flex: 1; font-size: 12px; }
  .metric { padding: 20px; }
  .metric strong { font-size: 28px; }
  .panel--wide, .focus-card, .achievement-card, .pattern-types, .rhythm-panel, .mistakes-panel { padding: 23px 20px; }
  .type-row { grid-template-columns: 100px 1fr 55px; gap: 10px; }
  .volume-chart { gap: 3px; }
  .visual-atlas { padding-top: 8px; }
  .atlas-heading { align-items: flex-start; flex-direction: column; }
  .atlas-heading > span { text-align: left; }
  .atlas-card { min-height: 330px; padding: 23px 20px; }
  .focus-heatmap { grid-template-columns: 31px repeat(7, minmax(0, 1fr)); gap: 4px; }
  .heatmap-cell, .heatmap-label { min-height: 32px; }
  .heatmap-scale i { width: 13px; }
  .session-chart { height: 240px; }
  .view-tabs { gap: 7px; }
  .view-tabs button { min-width: max-content; flex: 0 0 auto; padding-inline: 8px; font-size: 11px; white-space: nowrap; }
  .experiment-heading { align-items: flex-start; margin-top: 58px; padding-top: 38px; flex-direction: column; }
  .experiment-heading p { text-align: left; }
  .experiment-card { min-height: 350px; padding: 23px 20px; }
  .calendar-chart { height: 230px; gap: 3px; }
  .flow-chart, .stream-chart { height: 250px; }
  .weekly-cover { min-height: 330px; align-items: flex-start; padding: 35px 28px; flex-direction: column; }
  .weekly-cover > strong { margin-top: auto; font-size: 68px; }
  .weekly-story, .weekly-columns { grid-template-columns: 1fr; gap: 32px; padding: 35px 28px; }
  .weekly-story blockquote { font-size: 19px; }
  .weekly-columns section + section { padding: 32px 0 0; border-top: 1px solid #d2d8d2; border-left: 0; }
  .weekly-report footer { gap: 10px; padding: 17px 28px; flex-direction: column; }
  .parent-cover { min-height: 285px; align-items: flex-start; padding: 35px 28px; flex-direction: column; }
  .parent-seal { width: 88px; height: 88px; align-self: flex-end; }
  .parent-opening { grid-template-columns: 1fr; gap: 14px; padding: 34px 28px; }.parent-opening p { font-size: 17px; }
  .parent-stats { grid-template-columns: 1fr; }.parent-stats p { padding: 24px 28px; border-right: 0; border-bottom: 1px solid #d7d8d1; }.parent-stats p:last-child { border-bottom: 0; }
  .parent-sections { grid-template-columns: 1fr; }.parent-note { min-height: 0; padding: 34px 28px; }.parent-note + .parent-note { border-left: 0; }
  .parent-message { grid-column: auto; align-items: flex-start; padding: 30px 28px; flex-direction: column; }.parent-message blockquote { font-size: 18px; }
  .share-footer { align-items: flex-start; padding: 18px 28px; flex-direction: column; }.share-footer button { width: 100%; justify-content: space-between; }
  .share-topline { padding: 20px 24px; }.share-hero { min-height: 430px; padding: 42px 28px; }.share-hero h2 { font-size: 46px; }
  .share-big-number { right: 28px; bottom: 50px; }.share-big-number strong { font-size: 70px; }
  .share-score-row { grid-template-columns: 1fr; }.share-score-row > div { padding: 24px 28px; border-right: 0; border-bottom: 1px solid var(--line); }.share-score-row > div:last-child { border-bottom: 0; }
  .share-week-rhythm { align-items: flex-start; padding: 34px 28px; flex-direction: column; }.share-days { width: 100%; justify-content: space-between; gap: 3px; }.share-day i { width: 31px; height: 31px; }
  .share-highlight { margin: 0 20px; padding: 22px; }.share-quote { padding: 48px 28px; font-size: 27px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .motion-ready .reveal-item { opacity: 1; transform: none; }
  .is-chart-entering * { animation: none !important; }
}
