:root {
  color-scheme: dark;
  --bg: #0b1220; --surface: #141c2c; --raised: #1c2638; --fg: #e7eef8;
  --muted: #8d9bb0; --line: #2a364c; --primary: #3b82f6; --primary-fg: #f8fbff;
  --up: #ff5a6a; --down: #6aa7ff;
  --font: "IBM Plex Sans KR", "Apple SD Gothic Neo", sans-serif;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6fb; --surface: #ffffff; --raised: #e7eef8; --fg: #142033;
  --muted: #5c6b82; --line: #d5deea; --primary: #2563eb; --primary-fg: #ffffff;
  --up: #e11d48; --down: #2563eb;
}
* { box-sizing: border-box; }
html { overflow-anchor: none; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
main { position: relative; max-width: 80rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
h1 { margin: 0 0 1.1rem; font-size: 1.7rem; letter-spacing: -0.03em; text-align: center; }
h1 a.brand { color: inherit; text-decoration: none; }
h1 a.brand:hover { text-decoration: underline; }
h1 .home-btn, a.home-btn { position: absolute; top: 1.5rem; left: 1rem; z-index: 25; display: inline-flex; width: 2.6rem; height: 2.6rem; margin: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); align-items: center; justify-content: center; text-decoration: none; }
a.home-btn:hover { text-decoration: none; }
main > h1 { padding: 0 3rem; }
h1 .ver { color: var(--muted); font-size: 0.72em; font-weight: 500; }
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; }
.sheet-back { position: absolute; inset: 0; background: rgba(8, 12, 20, .46); }
.sheet-card { position: relative; width: min(26rem, calc(100% - 1.5rem)); margin: 0; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem 1rem 1.15rem; max-height: min(36rem, calc(100vh - 2rem)); overflow: auto; animation: sheet-in .22s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.sheet-head h2 { margin: 0; font-size: 1.15rem; }
.close-emoji { border: 0; background: transparent; font-size: 1.15rem; line-height: 1; width: 2rem; height: 2rem; border-radius: 999px; }
.sec-row { display: flex; align-items: center; gap: 0.65rem; padding: 0.7rem 0.15rem; border-top: 1px solid var(--line); cursor: grab; user-select: none; touch-action: none; }
.sec-row.dragging { opacity: 0.45; }
.sec-row.off { opacity: 0.45; }
.sec-row .grip { color: var(--muted); letter-spacing: -0.12em; }
.sec-row .sec-name { flex: 1; }
.sec-row .sec-state { color: var(--muted); font-size: 0.8rem; }
.account { position: absolute; top: 1.5rem; right: 1rem; z-index: 25; }
.appmenu { position: absolute; top: 1.5rem; left: 1rem; z-index: 25; }
.appmenu > button { width: 2.6rem; height: 2.6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; }
.snap-list { margin-top: 0.8rem; overflow-x: auto; }
.snap-head, .snap-row { display: grid; grid-template-columns: 8.2rem 5.2rem 6.2rem minmax(7.6rem, 0.9fr) minmax(10rem, 1.15fr) minmax(10rem, 1.15fr) 4.4rem; column-gap: 0.7rem; align-items: center; min-width: 54rem; }
.snap-head { padding: 0.2rem 0 0.55rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; }
.snap-head .num, .snap-sum, .snap-rate, .snap-fx, .snap-delta { text-align: right; }
.snap-head .act, .snap-drop { text-align: center; }
.snap-row { border-bottom: 1px solid var(--line); }
.snap-line { display: contents; cursor: pointer; }
.snap-when { display: inline-flex; align-items: center; gap: 0.28rem; padding: 0.75rem 0; white-space: nowrap; }
.snap-when .ico { flex: none; }
.snap-fx, .snap-sum, .snap-rate, .snap-delta { padding: 0.75rem 0; white-space: nowrap; }
.snap-fx { font-size: 0.72rem; color: var(--muted); }
.snap-sum strong { font-weight: 700; }
.snap-pnl, .snap-delta { font-size: 0.78rem; line-height: 1.35; font-weight: 650; }
.snap-drop { margin: 0; display: flex; justify-content: center; }
.snap-drop button { height: 2rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 0 0.7rem; font-size: 0.75rem; }
.snap-detail { padding: 0.7rem 0.85rem 0.85rem; margin: 0.35rem 0 0.55rem; min-width: 54rem; background: var(--raised); border-radius: 0.75rem; }
.account > button { width: 2.6rem; height: 2.6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; }
.account-menu { position: absolute; right: 0; top: 3rem; width: max-content; background: var(--surface); border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.3rem; display: grid; box-shadow: 0 12px 28px rgba(8, 12, 20, .22); }
.account-menu a, .account-menu button { display: block; width: 100%; text-align: left; padding: 0.4rem 0.7rem; border-radius: 0.55rem; color: inherit; text-decoration: none; border: 0; background: transparent; font-size: 0.78rem; white-space: nowrap; }
.account-menu a:hover, .account-menu button:hover { background: var(--raised); }
.foot { margin-top: 1.6rem; text-align: center; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.28rem 0.55rem; margin: 0 0 0.5rem; }
.legal-links button { margin: 0; padding: 0; border: 0; background: none; color: var(--muted); font-size: 0.8rem; text-decoration: underline; text-underline-offset: 0.14rem; cursor: pointer; }
.legal-links button:hover { color: var(--fg); }
.legal-links span { color: var(--muted); font-size: 0.8rem; }
.legal-body { padding: 1.05rem 1.05rem 1.25rem; }
.legal-body p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.65; }
.notes-open { display: inline-block; margin: 0 auto 0.35rem; padding: 0; border: 0; background: none; color: var(--muted); font-size: 0.8rem; text-decoration: underline; cursor: pointer; }
.copy { margin: 0; text-align: center; color: var(--muted); font-size: 0.75rem; }
.notes-card { width: min(36rem, calc(100% - 1.5rem)); padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.notes-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem 0.85rem 0.85rem 1rem; border-bottom: 1px solid var(--line); }
.notes-head h2 { margin: 0; font-size: 1.15rem; }
.note-now { margin-left: 0.45rem; color: var(--muted); font-size: 0.82rem; font-weight: 500; }
.notes-body { flex: 1; min-height: 0; overflow: auto; padding: 0.15rem 1rem 1.15rem; }
.sheet-tools { display: flex; align-items: center; gap: 0.15rem; flex: none; }
.notes-copy { width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--fg); display: inline-flex; align-items: center; justify-content: center; }
.notes-copy svg { display: block; width: 18px; height: 18px; }
.notes-copy:hover, .notes-copy.on { background: var(--raised); }
.notes-toast { position: absolute; left: 50%; top: 3.35rem; z-index: 4; transform: translateX(-50%); margin: 0; padding: 0.42rem 0.75rem; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 0.78rem; white-space: nowrap; }
.notes-card .note:first-of-type { margin-top: 0.85rem; }
.note { margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }
.note:first-of-type { margin-top: 0.35rem; padding-top: 0; border-top: 0; }
.note-ver { margin: 0 0 0.35rem; font-weight: 650; }
.note-ver span { margin-left: 0.4rem; color: var(--muted); font-weight: 450; font-size: 0.82rem; }
.note ul { margin: 0; padding-left: 1.15rem; }
.note li { margin: 0.18rem 0; }
.auth-wrap { max-width: 26rem; margin: 4rem auto; }
.auth-wrap h1 { font-size: 1.45rem; }
.auth-wrap a { color: var(--primary); }
.g-recaptcha { margin-top: 0.9rem; }
.set-label { margin: 0.9rem 0 0.45rem; }
.set-split { margin-top: 1rem; padding-top: 0.95rem; border-top: 1px solid var(--line); }
.style-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; }
.style-pick button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; min-height: 4.6rem; border-radius: 0.8rem; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 0.75rem; padding: 0.45rem; }
.style-pick button.on { color: var(--fg); border-color: var(--primary); background: var(--raised); }
.icon svg { display: block; }
.muted { color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-end; justify-content: space-between; }
header.row { margin-bottom: 1rem; align-items: center; }
#tools { align-items: center; }
#account { width: auto; min-width: 14rem; }
.hold-tools { display: flex; align-items: center; gap: 0.45rem; margin-left: auto; }
#holdingsBox #account { height: 2rem; min-width: 11rem; border-radius: 999px; padding: 0 0.75rem; background: var(--bg); }
.panel, .card, article.item { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; }
.panel { padding: 1.25rem; }
main > section.panel + section.panel { margin-top: 2.5rem; }
.cards { display: grid; gap: 0.75rem; margin-top: 1rem; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { overflow: hidden; }
.card, article.item { padding: 1rem; }
.value { margin: 0.5rem 0 0; font-size: 1.35rem; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
label { display: grid; gap: 0.25rem; margin-top: 0.75rem; }
input, select {
  height: 2.75rem; border-radius: 0.75rem; border: 1px solid var(--line);
  background: var(--bg); padding: 0 0.75rem; min-width: 0; width: 100%;
}
.secret { display: flex; gap: 0.5rem; align-items: center; }
.secret input { flex: 1; width: auto; min-width: 0; }
.secret button.ghost { width: auto; margin: 0; flex: none; white-space: nowrap; padding: 0 0.9rem; }
button.primary, button.ghost {
  height: 2.75rem; border-radius: 0.75rem; border: 0; padding: 0 0.9rem; font-weight: 650;
}
button.primary { background: var(--primary); color: var(--primary-fg); width: 100%; margin-top: 0.9rem; }
button.ghost { background: var(--surface); border: 1px solid var(--line); }
button.link { background: none; border: 0; color: var(--muted); height: 2.75rem; text-decoration: underline; }
h2 { margin: 0; font-size: 1.2rem; }
.asof { margin-left: auto; color: var(--muted); font-size: 0.8rem; font-weight: 500; white-space: nowrap; }
.addline { display: flex; gap: 0.5rem; margin-top: 0.75rem; align-items: center; }
.addline input, .addline select { flex: 1; width: auto; min-width: 0; }
.addline select { max-width: 16rem; }
.addline select#externalCur { flex: none; width: 3.1rem; max-width: 3.1rem; padding-left: 0.35rem; padding-right: 0.15rem; }
select.avgcur { width: 2.9rem; flex: none; height: 2.25rem; border: 1px solid var(--line); border-radius: 0.55rem; background: var(--surface); color: inherit; padding: 0 0.15rem; }
.addline button.ghost { width: auto; margin-top: 0; flex: none; white-space: nowrap; padding: 0 1.05rem; }
.spark { display: block; width: 42px; height: 28px; margin-left: auto; }
.news-list { display: grid; }
.news-card { display: grid; gap: 0.25rem; width: 100%; text-align: left; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 0.75rem 0; cursor: pointer; color: inherit; text-decoration: none; }
.news-card .full { display: none; }
.news-card.open .short { display: none; }
.news-card.open .full { display: block; }
.news-card:disabled { cursor: default; }
#newsList, #xPosts { margin-top: 1rem; column-count: 1; column-gap: 0.75rem; }
@media (min-width: 720px) { #newsList, #xPosts { column-count: 2; } }
@media (min-width: 1100px) { #newsList, #xPosts { column-count: 3; } }
.news-symbol, .x-person { break-inside: avoid; margin: 0 0 0.75rem; min-width: 0; height: auto; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 0.9rem; padding: 0.85rem 0.9rem 0.35rem; }
.news-list { flex: 1; }
.news-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.35rem; }
.news-hide { border: 0; background: transparent; color: var(--muted); height: 1.6rem; padding: 0 0.25rem; font-size: 1.05rem; line-height: 1; }
.news-card strong { white-space: normal; }
.x-person h3 { margin: 0; font-size: 1rem; }
.x-person p { margin: 0.25rem 0 0; }
.x-post { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; cursor: pointer; }
.x-body { flex: 1; min-width: 0; }
.x-body p { margin: 0.25rem 0 0; white-space: pre-wrap; }
.x-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 0.55rem; flex: none; background: var(--raised); }
.x-go { margin-left: auto; align-self: center; flex: none; }
.x-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.x-chips button { height: 2rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; padding: 0 0.7rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.35rem; }
.x-chips .logo-wrap { width: 18px; height: 18px; }
.x-mini { width: 18px; height: 18px; border-radius: 999px; object-fit: cover; flex: none; background: var(--raised); }
.x-ko { margin: 0.35rem 0 0; color: var(--muted); }
.boot { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(7, 11, 18, .55); color: #fff; }
.boot-box { display: flex; flex-direction: column; align-items: center; }
.boot-box img { width: 7.5rem; height: auto; margin-bottom: 0.9rem; border-radius: 20px; }
.boot p { display: flex; align-items: center; gap: 0.75rem; margin: 0; font-size: 1.2rem; font-weight: 650; }
.boot .spin { width: 1.35rem; height: 1.35rem; border-color: rgba(255,255,255,.35); border-top-color: #fff; }
strong.ip { color: var(--primary); }
.guide-line { margin: 0.85rem 0 0; }
a.guide { display: inline-flex; color: var(--muted); font-size: 0.8rem; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.28rem 0.7rem; background: transparent; }
.rsi-set { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.55rem; flex-wrap: wrap; }
.rsi-set > span { min-width: 5.2rem; font-size: 0.85rem; }
.rsi-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.rsi-chips button { height: 2rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 0 0.7rem; font-size: 0.78rem; }
.rsi-chips button.on { color: var(--fg); border-color: var(--primary); background: var(--raised); }
.busy { display: flex; align-items: center; gap: 0.7rem; margin: 0.5rem 0 1rem; }
.busy[hidden] { display: none; }
.spin { width: 1.15rem; height: 1.15rem; border: 2px solid var(--line); border-top-color: var(--primary, #4c8dff); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
#market, #watch, #screen, #external, #news, #xfeed { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.m-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 0.65rem; margin-top: 0.85rem; }
.m-card { border: 1px solid var(--line); border-radius: 0.9rem; padding: 0.8rem 0.9rem; background: var(--raised); }
.btc-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.75rem; }
.btc-card .spark { width: min(100%, 18rem); height: 4rem; }
.m-card strong { font-size: 0.95rem; }
.m-card .px { margin: 0.25rem 0 0; font-size: 1.2rem; font-weight: 650; }
.m-card p { margin: 0.15rem 0 0; }
.sector { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr) 4.6rem; gap: 0.55rem; align-items: center; margin: 0.28rem 0; font-size: 0.86rem; }
.sector-track { position: relative; height: 0.55rem; }
.sector-track i { position: absolute; left: 50%; top: -0.15rem; bottom: -0.15rem; width: 1px; background: var(--line); }
.sector-track b { position: absolute; top: 0; height: 100%; border-radius: 99px; }
.sector-track b.up { background: var(--up); }
.sector-track b.down { background: var(--down); }
.rank-tabs { margin-top: 0.7rem; }
.rank-toggle { margin-top: 0.85rem; height: 2.15rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 0 0.85rem; }
.volmeter { display: inline-flex; align-items: center; gap: 0.4rem; min-width: 6.6rem; color: var(--muted); }
.volmeter-track { position: relative; width: 3.4rem; height: 0.28rem; border-radius: 999px; background: var(--line); }
.volmeter-track > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--muted); }
.volmeter-track > span::before { content: ""; position: absolute; left: 0; top: 50%; width: 0.42rem; height: 0.42rem; border-radius: 999px; background: var(--fg); transform: translate(-15%, -50%); }
.volmeter b { font-weight: 500; font-size: 0.78rem; color: var(--muted); }
#cryptoDesk { overflow-x: auto; }
#cryptoDesk table { min-width: 68rem; }
.rank-row { display: flex; align-items: center; gap: 0.65rem; padding: 0.35rem 0.7rem; margin-top: 0.35rem; border: 1px solid var(--line); border-radius: 0.85rem; background: var(--raised); }
.rank-side { margin-left: auto; text-align: right; display: grid; gap: 0; }
.rank-side span:first-child { font-weight: 650; }
.rank-side span + span { font-size: 0.68rem; line-height: 1.15; }
.unit { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.unit button { height: 2rem; border: 0; background: transparent; padding: 0 0.8rem; }
.unit button.on { background: var(--primary); color: var(--primary-fg); }
.avgpre { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.2rem; }
td input.num { height: 2.25rem; }
.named { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.logo-wrap { width: 28px; height: 28px; border-radius: 999px; overflow: hidden; flex: none; background: var(--raised); }
.logo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-wrap.cash-mark { display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
main > .tabs.roc-tabs { margin-bottom: 1.25rem; }
.tabs button { height: 2.4rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; padding: 0 0.85rem; cursor: grab; touch-action: pan-y; }
.tabs button.dragging { cursor: grabbing; position: relative; z-index: 2; opacity: 0.9; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.tabs button.on { background: var(--primary); color: var(--primary-fg); border-color: transparent; }
.tabtools { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; align-items: center; }
.sum-flag { display: inline-flex; align-items: center; gap: 0.35rem; height: 2.15rem; color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.sum-flag[hidden] { display: none; }
.sum-flag input { width: 0.95rem; height: 0.95rem; margin: 0; }
.sorts { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-left: auto; }
.sorts button { display: inline-flex; align-items: center; gap: 0.28rem; }
.sort-ico, .sort-ico .hi, .sort-ico .lo { color: inherit; }
.sort-ico .hi, .sort-ico .lo { fill: none; stroke: currentColor; }
.sorts button[data-dir="desc"] .hi, .sorts button[data-dir="asc"] .lo { opacity: 0.3; }
.sorts button.on, .sorts button.on:hover { color: var(--fg); background: transparent; border-color: var(--line); }
.gold-don { width: 100%; height: 2.6rem; margin: 0.35rem 0 0.9rem; border-radius: 0.7rem; border: 1px solid var(--line); background: var(--bg); color: inherit; padding: 0 0.75rem; }
.home-pick { display: grid; gap: 0.75rem; }
.home-pick a { display: block; padding: 1.15rem 1rem; border: 1px solid var(--line); border-radius: 0.9rem; text-decoration: none; color: inherit; background: var(--bg); }
.home-pick a strong { display: block; font-size: 1.05rem; }
.home-pick a span { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.85rem; }
.gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem 1.2rem; }
.gate .copy { position: static; margin: 1.5rem 0 0; }
.gate-wrap { width: min(54rem, 100%); }
.gate-lead { margin: 0 0 1.35rem; text-align: center; font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 700; letter-spacing: -0.04em; }
.gate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch; }
.gate-card { display: flex; flex-direction: column; min-height: 18rem; padding: 1.45rem 1.3rem 1.35rem; border: 1px solid var(--line); border-radius: 1.15rem; background: var(--surface); color: inherit; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease; }
.gate-card:hover { border-color: var(--primary); box-shadow: 0 14px 34px rgba(37, 99, 235, 0.13); }
.gate-card h2 { margin: 0 0 0.9rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); font-size: 1.35rem; letter-spacing: -0.03em; }
.gate-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.65rem; }
.gate-card li { font-size: 0.98rem; line-height: 1.45; }
#macroLens.tabs { margin: 0.9rem 0 1rem; }
.macro-top { display: grid; grid-template-columns: 16rem 1fr; gap: 0.8rem; align-items: stretch; }
.macro-verdict { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: 0.9rem; padding: 0.9rem 0.95rem 1rem; background: var(--bg); box-sizing: border-box; }
.macro-verdict h3 { margin: 0.2rem 0 0.75rem; font-size: 1.55rem; letter-spacing: -0.04em; }
.macro-bar { display: flex; height: 0.55rem; border-radius: 999px; overflow: hidden; background: var(--raised); }
.macro-bar i { display: block; height: 100%; }
#macro { --macro-good: var(--primary); margin-top: 2.5rem; }
.yf-bar { position: relative; margin: 2.5rem 0 0.85rem; }
.yf-bar:not([hidden]) + #macro { margin-top: 0; }
.yf-strip { display: flex; align-items: center; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.yf-strip::-webkit-scrollbar { display: none; width: 0; height: 0; }
.yf-strip article { display: grid; grid-template-columns: minmax(0, max-content) 3.6rem; justify-content: start; column-gap: 0.4rem; align-content: center; flex: 1 0 8.6rem; min-width: 0; padding: 0.05rem 0.45rem; border-left: 1px solid var(--line); overflow: hidden; color: var(--fg); }
.yf-strip article:first-child { border-left: 0; padding-left: 0.05rem; }
.yf-strip b, .yf-strip strong, .yf-strip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yf-strip b { grid-column: 1; font-size: 0.68rem; font-weight: 650; color: var(--fg); }
.yf-strip strong { grid-column: 1; font-size: 0.8rem; font-weight: 700; letter-spacing: -0.03em; }
.yf-strip span { grid-column: 1; font-size: 0.62rem; letter-spacing: -0.02em; color: var(--fg); }
.yf-strip svg { grid-column: 2; grid-row: 1 / span 3; width: 3.6rem; height: 2.15rem; align-self: center; color: var(--fg); }
.yf-strip polygon { fill: currentColor; opacity: 0.2; stroke: none; }
.yf-strip line.base { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 2; opacity: 0.85; }
.yf-strip polyline { fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linejoin: round; stroke-linecap: round; }
.yf-strip article.up strong { color: var(--up); }
.yf-strip article.down strong { color: var(--down); }
.yf-strip article.up svg { color: var(--up); }
.yf-strip article.down svg { color: var(--down); }
.yf-tip { position: absolute; z-index: 6; max-width: 16rem; margin: 0; padding: 0.45rem 0.65rem; border: 1px solid var(--line); border-radius: 0.7rem; background: var(--surface); color: var(--fg); box-shadow: 0 10px 24px rgba(0,0,0,.16); font-size: 0.75rem; line-height: 1.45; pointer-events: none; }
.yf-tip[hidden] { display: none; }
.yf-nav { position: absolute; top: 0; bottom: 0; z-index: 4; width: 1.7rem; padding: 0; border: 0; color: var(--fg); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.yf-nav.prev { left: 0; justify-content: flex-start; background: linear-gradient(90deg, var(--bg) 35%, transparent); }
.yf-nav.next { right: 0; justify-content: flex-end; background: linear-gradient(270deg, var(--bg) 35%, transparent); }
.yf-nav svg { display: block; }
.macro-bar .good { background: var(--macro-good); }
.macro-bar .mid { background: #b7c0ce; }
.macro-bar .bad { background: var(--up); }
.macro-count { display: flex; justify-content: space-between; gap: 0.4rem; margin: 0.45rem 0 0.7rem; font-size: 0.78rem; }
.macro-count .good { color: var(--macro-good); }
.macro-count .mid { color: var(--muted); }
.macro-count .bad { color: var(--up); }
.macro-note { margin: auto 0 0; padding: 0.7rem 0.75rem; border-radius: 0.7rem; background: var(--surface); color: var(--muted); font-size: 0.84rem; line-height: 1.5; }
.macro-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; height: 100%; align-items: stretch; }
.macro-col { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; border: 1px solid var(--line); border-top: 3px solid var(--macro, var(--line)); border-radius: 0.85rem; padding: 0.55rem 0.7rem 0.2rem; background: var(--bg); }
.macro-col.good { --macro: var(--macro-good); }
.macro-col.mid { --macro: #8b95a7; }
.macro-col.bad { --macro: var(--up); }
.macro-col header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; }
.macro-col header span { color: var(--muted); font-size: 0.8rem; }
.macro-col article { padding: 0.55rem 0; border-top: 1px solid var(--line); }
.macro-col article p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
.macro-line { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.86rem; }
.macro-line span { white-space: nowrap; }
.macro-chart-head, .macro-tiles article { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.macro-chart-head { margin: 1rem 0 0.4rem; }
.macro-span { display: flex; gap: 0.4rem; }
.macro-span button { height: 2.15rem; padding: 0 0.75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: var(--muted); font-size: 0.8rem; }
.macro-span button:hover { color: var(--fg); background: var(--bg); }
.macro-span button.on { color: var(--fg); background: var(--bg); }
.macro-plot { position: relative; display: grid; grid-template-columns: 1fr 4.8rem; align-items: stretch; height: 17rem; border: 1px solid var(--line); border-radius: 0.8rem; overflow: hidden; background: #fff; }
html:not([data-theme="light"]) .macro-plot { background: var(--surface); }
#macroChart { width: 100%; height: 100%; display: block; background: transparent; border: 0; border-radius: 0; }
.macro-ylabels { position: relative; }
.macro-ylabels span { position: absolute; left: 0.4rem; transform: translateY(-50%); font-size: 0.75rem; line-height: 1; white-space: nowrap; }
.macro-ylabels .hi { color: var(--macro-good); }
.macro-ylabels .mid { color: var(--muted); }
.macro-ylabels .lo { color: var(--up); }
#macroChart .band-high { fill: color-mix(in srgb, var(--macro-good) 7%, transparent); }
#macroChart .band-low { fill: rgba(255, 90, 106, .055); }
#macroChart .guide-high, #macroChart .guide-mid, #macroChart .guide-low { stroke-width: 1; }
#macroChart .guide-high { stroke: var(--macro-good); stroke-dasharray: 3 4; }
#macroChart .guide-mid { stroke: var(--muted); stroke-dasharray: 2 4; }
#macroChart .guide-low { stroke: var(--up); stroke-dasharray: 3 4; }
#macroChart .macro-area { stroke: none; }
#macroChart .macro-path { fill: none; stroke: var(--fg); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
#macroChart .macro-ma { fill: none; stroke: #7f93ad; stroke-width: 1.5; stroke-dasharray: 6 4; }
#macroChart .macro-year { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 1.2 3.5; }
#macroChart .macro-cross { stroke: var(--fg); stroke-width: 1; stroke-dasharray: 3 3; opacity: .55; }
#macroChart .macro-dot { fill: var(--fg); stroke: var(--bg); stroke-width: 2; }
#macroChart text { font-size: 12px; }
#macroChart text.hi { fill: var(--macro-good); }
#macroChart text.mid { fill: var(--muted); }
#macroChart text.lo { fill: var(--up); }
.macro-tip { position: absolute; z-index: 3; min-width: 9.2rem; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--surface); box-shadow: 0 10px 28px rgba(0,0,0,.18); pointer-events: none; font-size: 0.75rem; line-height: 1.45; }
.macro-tip[hidden] { display: none; }
.macro-tip b { display: block; margin: 0.1rem 0 0.15rem; font-size: 0.95rem; }
.macro-legend { display: flex; flex-wrap: wrap; gap: 0.45rem 0.9rem; margin: 0.5rem 0 0; color: var(--muted); font-size: 0.75rem; }
.macro-legend i { display: inline-block; width: 1.15rem; margin-right: 0.28rem; vertical-align: middle; border-top: 2px solid var(--fg); }
.macro-legend i.dash { border-top: 2px dashed #7f93ad; }
.macro-legend i.dot { border-top: 2px dotted var(--muted); }
.macro-legend i.hi, .macro-legend i.lo { width: 0.7rem; height: 0.7rem; border: 0; border-radius: 0.15rem; }
.macro-legend i.hi { background: color-mix(in srgb, var(--macro-good) 45%, transparent); }
.macro-legend i.lo { background: rgba(255, 90, 106, .35); }
.macro-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; margin-top: 0.8rem; }
.macro-tiles article { border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.7rem 0.75rem; background: var(--bg); align-items: flex-start; }
.macro-tiles article > div { display: flex; align-items: center; gap: 0.55rem; }
.macro-tiles article.good { box-shadow: inset 0 2px 0 var(--macro-good); }
.macro-tiles article.bad { box-shadow: inset 0 2px 0 var(--up); }
.macro-tiles article.mid { box-shadow: inset 0 2px 0 #b7c0ce; }
.macro-tiles span, .macro-tiles em { color: var(--muted); font-style: normal; font-size: 0.75rem; }
.macro-badge { display: inline-flex; align-items: center; height: 1.35rem; padding: 0 0.5rem; border-radius: 999px; font-size: 0.72rem; font-weight: 650; }
.macro-badge.good { color: var(--macro-good); background: color-mix(in srgb, var(--macro-good) 16%, transparent); }
.macro-badge.mid { color: var(--muted); background: var(--raised); }
.macro-badge.bad { color: var(--up); background: rgba(255, 90, 106, .16); }
.macro-tiles strong { font-size: 1rem; }
@media (max-width: 900px) {
  .macro-top, .macro-cols, .macro-tiles { grid-template-columns: 1fr; }
}
.gate-card b.live { color: var(--primary); font-weight: 700; }
.faq { margin-top: 1.35rem; }
.faq h3 { margin: 0 0 0.55rem; font-size: 0.92rem; font-weight: 600; color: var(--muted); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.85rem 0.15rem; border: 0; background: transparent; text-align: left; font-size: 1rem; font-weight: 650; }
.faq-item button span { width: 0.5rem; height: 0.5rem; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); transition: transform .22s ease; flex: none; }
.faq-item.open button span { transform: rotate(225deg); margin-top: 0.25rem; }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.faq-item.open .faq-body { grid-template-rows: 1fr; }
.faq-body > div { overflow: hidden; }
.faq-body p { margin: 0 0 0.35rem; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.faq-body p:last-child { margin-bottom: 0.85rem; }
.faq-body a { color: inherit; }
@media (max-width: 760px) {
  .gate-grid { grid-template-columns: 1fr; align-content: start; padding-top: 0.5rem; }
  .gate-card { min-height: 0; }
}
.logo-wrap.gold-mark { display: inline-flex; align-items: center; justify-content: center; color: #c4a15a; font-size: 0.72rem; font-weight: 700; }
.tabtools button { height: 2.15rem; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); padding: 0 0.75rem; color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.tabtools button:hover { color: var(--fg); background: var(--bg); }
.dock { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.dock > button, .dock .unit { box-shadow: 0 8px 22px rgba(15, 23, 42, .18); }
.titleline { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.titleline .asof { margin-left: 0; }
button.ghost.slim { height: 2.15rem; padding: 0 0.8rem; font-size: 0.85rem; }
.dock > button { width: 2.6rem; height: 2.6rem; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; }
.sumline { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.sumline span { display: grid; gap: 0.15rem; }
.sumline em { font-style: normal; }
.sumline strong { font-size: 1.05rem; font-weight: 650; }
#externalFx { margin-left: auto; }
a.toss, a.tv { display: inline-flex; align-items: center; gap: 0.28rem; height: 2rem; padding: 0 0.6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-size: 0.82rem; white-space: nowrap; }
a.toss svg, a.tv svg { flex: none; display: block; }


.error { margin-top: 1rem; background: var(--raised); border: 1px solid var(--line); color: var(--up); border-radius: 0.75rem; padding: 0.75rem 1rem; }
.up { color: var(--up); } .down { color: var(--down); }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; table-layout: fixed; font-variant-numeric: tabular-nums; }
#desk col.c-name { width: 18%; }
#desk col.c-qty { width: 9%; }
#desk col.c-money { width: 12%; }
#desk col.c-rsi { width: 9%; }
#desk col.c-chart { width: 5%; }
#desk col.c-go { width: 11%; }
#externalDesk col.c-name { width: 15%; }
#externalDesk col.c-qty { width: 8%; }
#externalDesk col.c-money { width: 12%; }
#externalDesk col.c-rsi { width: 8%; }
#externalDesk col.c-chart { width: 5%; }
#externalDesk col.c-act { width: 6%; }
#externalDesk col.c-go { width: 10%; }
#cryptoHoldDesk col.c-name { width: 16%; }
#cryptoHoldDesk col.c-qty { width: 8%; }
#cryptoHoldDesk col.c-money { width: 11%; }
#cryptoHoldDesk col.c-rsi { width: 8%; }
#cryptoHoldDesk col.c-chart { width: 6%; }
#cryptoHoldDesk col.c-act { width: 6%; }
#cryptoHoldDesk col.c-go { width: 12%; }
#watchDesk col.c-name { width: 22%; }
#watchDesk col.c-money { width: 14%; }
#watchDesk col.c-rsi { width: 10%; }
#watchDesk col.c-chart { width: 5%; }
#watchDesk col.c-act { width: 7%; }
#watchDesk col.c-go { width: 8%; }
#screenDesk col.c-name { width: 24%; }
#screenDesk col.c-money { width: 14%; }
#screenDesk col.c-rsi { width: 11%; }
#screenDesk col.c-chart { width: 5%; }
#screenDesk col.c-go { width: 10%; }
th, td { padding: 0.55rem 0.35rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
th { color: var(--muted); font-weight: 500; }
th.name, td.name { text-align: left; }
.desk { display: none; margin-top: 1rem; overflow-x: hidden; }
.phone { display: grid; gap: 0.75rem; margin-top: 1rem; }
@media (min-width: 768px) { .desk { display: block; } .phone { display: none; } }
.meta { font-size: 0.875rem; }
button.tiny, a.tiny { width: auto; margin: 0; height: 2.25rem; padding: 0 0.75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: inherit; text-decoration: none; display: inline-flex; align-items: center; }
button.tiny.danger { background: var(--primary); color: var(--primary-fg); border-color: transparent; }
.desk-page h1 { text-align: left; margin: 0; font-size: 1.35rem; }
.desk-top { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.desk-top nav { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.desk-top a { display: inline-flex; align-items: center; height: 2.15rem; padding: 0 0.8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: inherit; text-decoration: none; font-size: 0.82rem; }
.desk-body { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.me-head { display: flex; align-items: center; gap: 1.4rem; }
.me-face { width: 9.5rem; height: 9.5rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.me-head p { margin: 0.28rem 0; }
.leave-box { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.leave-box h3 { margin: 0 0 0.35rem; font-size: 0.95rem; }
button.soft { width: auto; height: 2.5rem; padding: 0 1.05rem; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: var(--muted); font-size: 0.9rem; font-weight: 650; transition: background .16s ease, color .16s ease, border-color .16s ease; }
button.soft:hover:not(:disabled) { background: color-mix(in srgb, var(--raised) 78%, var(--fg)); color: var(--fg); }
button.soft:disabled { opacity: 0.4; cursor: not-allowed; }
.api-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; margin-top: 0.9rem; }
.api-actions button { height: 2.5rem; padding: 0 1.05rem; border-radius: 999px; font-size: 0.9rem; font-weight: 650; transition: background .16s ease, color .16s ease, border-color .16s ease; }
.api-actions button.primary { width: auto; margin: 0; border: 1px solid transparent; }
.api-actions button.primary:hover { background: color-mix(in srgb, var(--primary) 82%, white); }
.desk-side { display: grid; gap: 0.35rem; align-content: start; }
.desk-side a { display: block; padding: 0.7rem 0.8rem; border-radius: 0.75rem; border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; }
.desk-side a.on { background: var(--primary); color: var(--primary-fg); border-color: transparent; }
.desk-main { margin: 0; overflow-x: auto; }
.desk-main label { display: grid; gap: 0.3rem; margin-top: 0.75rem; }
.desk-main input { height: 2.5rem; border: 1px solid var(--line); background: var(--bg); border-radius: 0.65rem; padding: 0 0.7rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.8rem; align-items: center; }
.filters input, .filters select { width: auto; flex: 1 1 9rem; max-width: 14rem; min-width: 0; height: 2.25rem; border: 1px solid var(--line); background: var(--bg); border-radius: 0.6rem; padding: 0 0.55rem; }
.member-actions { margin: 0.8rem 0 0; justify-content: flex-start; }
.list-add { margin: 0 0 0.75rem; }
.desk-main table.grid .id-head,
.desk-main table.grid .id-cell { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-weight: inherit; }
.desk-main table.grid input[type="checkbox"] { width: 1.05rem; height: 1.05rem; min-width: 1.05rem; max-width: 1.05rem; margin: 0; flex: 0 0 auto; accent-color: var(--primary); }
table.grid .id-cell a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
html[data-theme="light"] .dock > #themeDark,
html:not([data-theme="light"]) .dock > #themeLight { display: none; }
.desk-main textarea { width: 100%; min-height: 6.5rem; border: 1px solid var(--line); background: var(--bg); border-radius: 0.65rem; padding: 0.6rem 0.7rem; resize: vertical; }
.desk-main input[type="file"] { height: auto; padding: 0.4rem 0; border: 0; background: transparent; }
.og-preview { display: block; margin-top: 0.55rem; max-width: 16rem; border-radius: 0.7rem; border: 1px solid var(--line); }
.dock > button.on { color: var(--primary); border-color: var(--primary); }
table.grid { width: 100%; border-collapse: collapse; font-size: 0.84rem; table-layout: auto; }
table.grid th, table.grid td { border-bottom: 1px solid var(--line); padding: 0.45rem 0.3rem; text-align: left; vertical-align: middle; white-space: normal; overflow: visible; text-overflow: clip; }
table.grid th { color: var(--muted); font-weight: 600; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0.5rem; margin-bottom: 0.9rem; }
.stat-grid article { border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.7rem 0.75rem; background: var(--raised); }
.stat-grid strong { display: block; font-size: 1.15rem; }
@media (max-width: 760px) { .desk-body { grid-template-columns: 1fr; } }
.roc-wrap { max-width: 56rem; margin: 1.5rem auto 3rem; padding: 0 1rem 2rem; }
.roc-wrap h1 { text-align: left; }
.roc-grid { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 7.5rem 7.5rem; gap: 0.7rem; align-items: end; margin-top: 0.8rem; }
.roc-grid label, .roc-month { margin-top: 0; }
.roc-note { margin: 0.75rem 0 0; font-size: 0.82rem; line-height: 1.5; }
.roc-pick { position: relative; display: block; }
.roc-list { position: absolute; z-index: 8; left: 0; right: 0; top: calc(100% + 0.25rem); max-height: 16rem; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 0.75rem; box-shadow: 0 12px 28px rgba(8, 12, 20, .18); }
.roc-list button { display: block; width: 100%; text-align: left; height: auto; padding: 0.48rem 0.7rem; border: 0; border-radius: 0; background: transparent; }
.roc-list button:hover { background: var(--raised); }
.roc-year { margin-top: 1.15rem; }
.roc-year h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.roc-months { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1rem; }
.roc-month { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.15rem 0.45rem; align-items: center; }
.roc-month input { height: 2.45rem; }
.roc-hint { grid-column: 2; color: var(--muted); font-size: 0.72rem; line-height: 1.3; }
.roc-sum { margin: 1rem 0 0.4rem; font-size: 1.02rem; }
.roc-sum b { color: var(--up); }
.roc-table { width: 100%; border-collapse: collapse; margin: 0.35rem 0 0.9rem; font-size: 0.82rem; }
.roc-table th, .roc-table td { border-bottom: 1px solid var(--line); padding: 0.38rem 0.3rem; text-align: right; }
.roc-table th:first-child, .roc-table td:first-child { text-align: left; }
.roc-table th { color: var(--muted); font-weight: 600; }
.roc-paste { display: block; margin-top: 0.8rem; }
.roc-paste textarea { width: 100%; min-height: 8rem; border: 1px solid var(--line); background: var(--bg); border-radius: 0.7rem; padding: 0.6rem 0.7rem; }
.roc-file label { flex: 1; margin: 0; }
.roc-file input[type="file"] { height: auto; padding: 0.45rem 0; border: 0; background: transparent; }
.roc-file button.primary { width: auto; min-width: 8rem; margin-top: 0; }
.roc-manual { margin: 1.4rem 0 0.35rem; font-size: 1rem; }
.roc-excerpt { white-space: pre-wrap; max-height: 16rem; overflow: auto; padding: 0.7rem; border: 1px solid var(--line); border-radius: 0.7rem; background: var(--bg); font-size: 0.75rem; }
.roc-monthline td { text-align: left; font-weight: 700; background: var(--raised); }
.roc-note-row td { text-align: left; color: var(--muted); font-size: 0.75rem; }
@media (max-width: 800px) {
  .roc-grid, .roc-months, .roc-file { grid-template-columns: 1fr; display: grid; }
  .roc-file button.primary { width: 100%; }
}
