:root {
  --ink: #171a1f;
  --muted: #6f747c;
  --line: #dedfd9;
  --paper: #f2f1eb;
  --surface: #faf9f4;
  --white: #fffefa;
  --acid: #d9ff43;
  --acid-deep: #b9e41b;
  --orange: #ff6b35;
  --blue: #5176ff;
  --green: #1c8e5f;
  --red: #d84b45;
  --shadow: 0 12px 36px rgba(32, 34, 30, .08);
  --sans: "Segoe UI", Arial, sans-serif;
  --ko: "Malgun Gothic", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--ko); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; z-index: 20; display: flex; flex-direction: column; padding: 26px 18px 18px; background: #1b1e1d; color: #f7f7ee; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 27px; border-bottom: 1px solid #343735; }
.brand strong { display: block; font: 800 15px/1 var(--sans); letter-spacing: .06em; }
.brand small { display: block; margin-top: 5px; color: #a4aaa3; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.brand-mark { width: 34px; height: 34px; position: relative; transform: rotate(-8deg); }
.brand-mark span { position: absolute; width: 17px; height: 17px; border-radius: 2px; background: var(--acid); border: 2px solid #1b1e1d; }
.brand-mark span:nth-child(1) { top: 0; left: 0; }
.brand-mark span:nth-child(2) { right: 0; top: 6px; }
.brand-mark span:nth-child(3) { bottom: 0; left: 5px; }

.main-nav { display: grid; gap: 6px; padding: 24px 0; }
.nav-item { border: 0; background: transparent; color: #aeb3ad; min-height: 46px; padding: 0 12px; display: flex; align-items: center; gap: 11px; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 600; text-align: left; transition: .18s ease; }
.nav-item:hover { background: #292c2a; color: #fff; }
.nav-item.active { background: var(--acid); color: #161917; }
.nav-item b { margin-left: auto; min-width: 20px; padding: 2px 5px; border-radius: 10px; background: rgba(255,255,255,.1); font: 500 10px var(--mono); text-align: center; }
.nav-item.active b { background: rgba(0,0,0,.12); }
.nav-icon { width: 18px; font: 500 20px/1 var(--mono); text-align: center; }
.side-section { margin-top: 10px; padding: 0 9px; }
.side-label, .eyebrow { color: #777d76; font: 600 10px/1.3 var(--mono); letter-spacing: .14em; }
.exchange-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.exchange-cloud span { padding: 6px 8px; border: 1px solid #434743; border-radius: 2px; color: #c0c5bf; font: 500 10px var(--mono); }
.side-card { display: flex; gap: 10px; align-items: flex-start; margin: auto 0 16px; padding: 13px 12px; border: 1px solid #383b38; background: #232624; border-radius: 4px; }
.side-card strong, .side-card small { display: block; }
.side-card strong { font-size: 12px; }
.side-card small { margin-top: 4px; color: #9ca29b; font-size: 10px; }
.pulse-dot { flex: none; width: 7px; height: 7px; margin-top: 3px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 0 4px rgba(217,255,67,.1); }
.sync-card { margin: 0 0 16px; padding: 12px; border: 1px solid #383b38; background: #232624; border-radius: 4px; }
.sync-card-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.sync-card strong { color: #f7f7ee; font-size: 12px; }
.sync-card small { color: #a4aaa3; font-size: 12px; text-align: right; }
.sync-card input { width: 100%; height: 34px; margin-top: 10px; padding: 0 9px; border: 1px solid #3f443f; border-radius: 3px; background: #1b1e1d; color: #f7f7ee; outline: 0; font-size: 12px; }
.sync-card input:focus { border-color: var(--acid); }
.sync-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 7px; }
.sync-actions button { min-height: 31px; border: 1px solid #3f443f; border-radius: 3px; background: #2b2f2b; color: #d8ddd6; cursor: pointer; font-size: 12px; font-weight: 700; }
.sync-actions button:hover { border-color: #56604a; color: var(--acid); }
.side-footer { display: flex; align-items: center; justify-content: space-between; color: #777d77; font: 10px var(--mono); }
.text-button { padding: 0; border: 0; color: #a2a7a1; background: none; cursor: pointer; font: 10px var(--ko); }
.text-button:hover { color: var(--acid); }

.main-content { grid-column: 2; min-width: 0; padding: 0 30px 48px; }
.topbar { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #d5d6d0; }
.topbar-left { display: flex; align-items: center; gap: 16px; }
.page-heading p { margin: 0 0 8px; color: #767c75; font: 500 10px var(--mono); letter-spacing: .13em; }
.page-heading p span { color: var(--ink); }
.page-heading h1 { margin: 0; font: 800 24px/1.1 var(--sans); letter-spacing: -.04em; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.account-button { height: 40px; padding: 0 12px 0 7px; display: flex; align-items: center; gap: 8px; border: 1px solid #d5d6d0; border-radius: 3px; background: var(--white); color: var(--ink); cursor: pointer; }
.account-button > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #242925; color: var(--acid); font: 800 12px var(--mono); }
.account-button strong { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.global-search { width: 260px; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #d2d3cd; background: rgba(255,255,255,.45); border-radius: 3px; }
.global-search span { color: #6c716b; font-size: 19px; }
.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 12px; }
kbd { color: #8a8e88; border: 1px solid #d0d1cb; background: #e7e6e0; padding: 2px 5px; border-radius: 3px; font: 9px var(--mono); }
.icon-button, .menu-toggle { width: 40px; height: 40px; border: 1px solid #d2d3cd; background: var(--surface); border-radius: 3px; cursor: pointer; }
.menu-toggle { display: none; }
.primary-button, .secondary-button { min-height: 40px; border-radius: 3px; padding: 0 16px; cursor: pointer; font-size: 12px; font-weight: 700; }
.primary-button { border: 1px solid #171a1f; background: #171a1f; color: white; }
.primary-button:hover { background: #2d312f; }
.primary-button span { color: var(--acid); font-size: 15px; }
.secondary-button { border: 1px solid var(--line); background: var(--white); }

.snapshot-banner { min-height: 42px; margin-top: 18px; padding: 8px 11px; display: flex; align-items: center; gap: 10px; border: 1px solid #cfdb9b; background: #eff5d4; border-radius: 3px; }
.snapshot-banner p { margin: 0; flex: 1; color: #4e5539; font-size: 12px; line-height: 1.45; }
.snapshot-banner strong { color: #343927; }
.snapshot-banner button { border: 0; background: none; color: #73795c; font-size: 17px; cursor: pointer; }
.snapshot-icon { color: #87972e; }

.view { display: none; padding-top: 22px; }
.view.active { display: block; animation: enter .28s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card { position: relative; overflow: hidden; min-height: 137px; padding: 19px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 2px 0 rgba(23,26,31,.02); }
.metric-card::after { content: ''; position: absolute; right: -19px; bottom: -35px; width: 90px; height: 90px; border: 1px solid #e2e3dc; transform: rotate(34deg); }
.metric-card.accent { background: var(--acid); border-color: #bedb3a; }
.metric-card.accent::after { border-color: rgba(23,26,31,.15); }
.metric-label { display: flex; justify-content: space-between; align-items: center; color: #656b64; font: 600 10px var(--mono); letter-spacing: .08em; }
.metric-card.accent .metric-label { color: #5b641e; }
.metric-trend { letter-spacing: 0; color: var(--green); }
.metric-value { margin: 24px 0 5px; font: 800 29px/1 var(--sans); letter-spacing: -.045em; }
.metric-detail { color: #6f756e; font-size: 12px; }
.metric-card.accent .metric-detail { color: #5f672a; }

.overview-grid { display: grid; grid-template-columns: 1.28fr .72fr; gap: 12px; margin-top: 12px; }
.lower-grid { grid-template-columns: 1fr 1fr; }
.panel { border: 1px solid var(--line); background: var(--surface); box-shadow: 0 3px 0 rgba(23,26,31,.02); }
.panel-header { min-height: 73px; padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e1e2dc; }
.panel-header h2, .checklist-panel h2 { margin: 5px 0 0; font: 800 17px/1.2 var(--sans); letter-spacing: -.02em; }
.link-button { border: 0; padding: 0; background: none; color: #555b54; cursor: pointer; font-size: 12px; }
.link-button span { color: var(--ink); font-size: 14px; }
.live-label { display: flex; align-items: center; gap: 5px; color: #5f655e; font: 500 9px var(--mono); }
.live-label i { width: 5px; height: 5px; border-radius: 50%; background: #6e8c00; box-shadow: 0 0 0 3px #dfe9bd; }

.priority-list { padding: 5px 19px 12px; }
.priority-item { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 13px; min-height: 82px; border-bottom: 1px solid #e5e5df; cursor: pointer; }
.priority-item:last-child { border-bottom: 0; }
.priority-item:hover .priority-title { color: #586d00; }
.priority-rank { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #d0d1ca; font: 500 9px var(--mono); }
.priority-item:first-child .priority-rank { background: var(--acid); border-color: #bedb3a; }
.priority-title { font-size: 13px; font-weight: 700; transition: .15s; }
.priority-meta { margin-top: 6px; color: #70766f; font-size: 11px; line-height: 1.45; }
.priority-right { text-align: right; }
.priority-right strong { display: block; font: 600 10px var(--mono); }
.priority-right span { display: inline-block; margin-top: 6px; padding: 4px 7px; font: 600 9px var(--mono); border-radius: 2px; }

.pipeline { padding: 15px 18px 5px; }
.pipeline-row { display: grid; grid-template-columns: 86px 1fr 24px; align-items: center; gap: 10px; min-height: 41px; }
.pipeline-row span { font-size: 11px; color: #535952; }
.pipeline-row b { font: 600 10px var(--mono); }
.pipeline-track { height: 6px; background: #e3e4de; overflow: hidden; }
.pipeline-track i { display: block; height: 100%; background: #252a27; }
.pipeline-row.hot .pipeline-track i { background: var(--acid-deep); }
.pipeline-foot { margin: 12px 18px 18px; padding: 13px; background: #202421; color: white; }
.pipeline-foot > div:first-child { display: flex; justify-content: space-between; font-size: 11px; }
.pipeline-foot strong { font: 600 13px var(--mono); color: var(--acid); }
.progress-track { height: 3px; margin: 9px 0 7px; background: #404440; }
.progress-track i { display: block; width: 0; height: 100%; background: var(--acid); transition: width .3s; }
.pipeline-foot small { color: #a6aca6; font-size: 10px; }

.profit-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 17px 19px; background: #dedfd9; }
.profit-cell { background: var(--surface); padding: 10px; }
.profit-cell span { display: block; color: #6f756e; font: 600 9px var(--mono); }
.profit-cell strong { display: block; margin-top: 7px; font: 700 14px var(--mono); }
.profit-cell.negative strong { color: var(--red); }
.profit-bars { padding: 6px 19px 17px; }
.profit-bar-row { display: grid; grid-template-columns: 62px 1fr 65px; align-items: center; gap: 9px; min-height: 25px; }
.profit-bar-row span { color: #565c55; font-size: 11px; }
.profit-bar-row b { text-align: right; font: 600 10px var(--mono); }
.profit-bar { height: 5px; background: #e1e2dc; }
.profit-bar i { height: 100%; display: block; background: #242925; }
.profit-bar-row:first-child i { background: var(--acid-deep); }
.mono-pill, .date-badge { padding: 5px 7px; border: 1px solid #d8d9d3; background: #efeee8; font: 500 8px var(--mono); }
.deadline-list { padding: 6px 19px 12px; }
.deadline-row { display: grid; grid-template-columns: 45px 1fr auto; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid #e5e5df; }
.deadline-row:last-child { border: 0; }
.deadline-date { font: 500 9px var(--mono); }
.deadline-date strong { display: block; font-size: 15px; }
.deadline-title { font-size: 12px; font-weight: 700; }
.deadline-title span { display: block; margin-top: 4px; color: #747a73; font-weight: 400; font-size: 10px; }
.d-day { padding: 4px 6px; border: 1px solid #ddd4c5; background: #f5e7d8; color: #a64e2f; font: 500 8px var(--mono); }

.table-panel { min-height: 600px; }
.table-toolbar { padding: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.table-toolbar h2 { margin: 6px 0 0; font: 800 19px var(--sans); }
.table-toolbar h2 em { color: #8d928c; font: 500 12px var(--mono); font-style: normal; }
.filter-row { display: flex; gap: 7px; }
select { height: 34px; padding: 0 28px 0 10px; border: 1px solid #d5d6d0; border-radius: 2px; outline: none; background: var(--white); color: #4f544f; font-size: 9px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1030px; }
th { height: 44px; padding: 0 12px; background: #e9e8e2; color: #666c65; text-align: left; font: 600 10px var(--mono); letter-spacing: .04em; }
td { height: 72px; padding: 9px 12px; border-bottom: 1px solid #e3e4de; font-size: 12px; }
tbody tr { cursor: pointer; transition: background .15s; }
tbody tr:hover { background: #f0f2e8; }
.event-name { max-width: 230px; }
.event-name strong { display: block; font-size: 12px; }
.event-name span { display: block; max-width: 220px; margin-top: 6px; color: #747a73; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.exchange-code { display: inline-grid; place-items: center; width: 27px; height: 27px; margin-right: 7px; background: #272b28; color: var(--acid); border-radius: 2px; font: 600 8px var(--mono); }
.mono { font-family: var(--mono); }
.grade { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 700 9px var(--mono); }
.grade-A { background: var(--acid); }
.grade-B { background: #d9e2ff; color: #3850a4; }
.grade-C { background: #f4dfc8; color: #9b5a29; }
.grade-D { background: #ead9d8; color: #9f4c48; }
.status-select { max-width: 118px; height: 31px; padding-left: 8px; font-size: 10px; font-weight: 600; }
.row-more { border: 0; background: none; cursor: pointer; font-size: 17px; }
.empty-state { display: none; min-height: 260px; place-items: center; align-content: center; gap: 7px; color: #90958f; }
.empty-state strong { color: #5e635d; font-size: 13px; }
.empty-state span { font-size: 10px; }

.telegram-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 1px; padding: 0 20px 18px; background: linear-gradient(#0000 18px, #dedfd9 18px); }
.telegram-stat { min-height: 58px; padding: 12px; background: var(--surface); border: 1px solid #e1e2dc; }
.telegram-stat span { display: block; color: #747a73; font: 600 9px var(--mono); }
.telegram-stat strong { display: block; margin-top: 8px; font: 800 16px var(--sans); }
.category-pill, .risk-pill { display: inline-flex; align-items: center; min-height: 25px; padding: 0 8px; border-radius: 12px; font: 700 10px var(--ko); white-space: nowrap; }
.category-pill { background: #e8edcf; color: #4e5d12; }
.risk-pill { background: #e7e6e0; }
.risk-낮음 { background: #dcebdc; color: #1c6e4c; }
.risk-보통 { background: #f4dfc8; color: #8a5329; }
.risk-높음 { background: #ead9d8; color: #9f4c48; }
.row-actions { display: flex; align-items: center; gap: 6px; }
.row-link { min-height: 28px; padding: 0 8px; display: inline-grid; place-items: center; border: 1px solid #d7d8d2; background: var(--white); color: #4f544f; border-radius: 2px; text-decoration: none; cursor: pointer; font: 700 10px var(--ko); }
.row-link:hover { border-color: #aeb3ad; background: #f0f2e8; }
.new-event-badge, .urgent-event-badge { display: inline-flex; padding: 3px 5px; margin-right: 4px; border-radius: 2px; font: 800 12px var(--mono); font-style: normal; }
.new-event-badge { background: var(--acid); color: #273000; }
.urgent-event-badge { background: #f4d5cf; color: #a33b2e; }

.reward-layout { display: grid; grid-template-columns: 1fr 300px; gap: 12px; }
.reward-ledger { min-height: 540px; }
.reward-list { padding: 10px 19px; }
.reward-item { display: grid; grid-template-columns: 1fr 110px 110px 105px; gap: 12px; align-items: center; min-height: 75px; border-bottom: 1px solid #e2e3dd; }
.reward-item h3 { margin: 0 0 5px; font-size: 13px; }
.reward-item p { margin: 0; color: #747a73; font-size: 10px; }
.reward-item div > span { display: block; margin-bottom: 5px; color: #747a73; font: 500 9px var(--mono); }
.reward-item div > strong { font: 600 11px var(--mono); }
.checklist-panel { align-self: start; padding: 20px; }
.checklist-panel h2 { margin-bottom: 20px; }
.checklist-panel label { display: flex; align-items: center; gap: 9px; min-height: 41px; border-bottom: 1px solid #e1e2dc; color: #50564f; font-size: 12px; }
.checklist-panel input { accent-color: #1f2420; }
.check-note { margin-top: 18px; padding: 14px; background: #e8edcf; }
.check-note strong { font-size: 10px; }
.check-note p { margin: 7px 0 0; color: #686e51; font-size: 9px; line-height: 1.6; }

.ipo-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.ipo-stat { min-height: 112px; padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.ipo-stat span { display: block; color: #747a73; font: 700 12px var(--mono); }
.ipo-stat strong { display: block; margin-top: 13px; font: 800 23px var(--sans); }
.ipo-stat small { display: block; margin-top: 8px; color: #747a73; font-size: 12px; }
.ipo-alert { margin: 16px 20px 0; padding: 13px 15px; border-left: 4px solid var(--acid-deep); background: #eff5d4; color: #555b42; font-size: 12px; line-height: 1.5; }
.ipo-alert strong { color: var(--ink); }
.ipo-table { min-width: 1180px; }
.ipo-table td:nth-child(2) > strong { display: block; font-size: 12px; white-space: nowrap; }
.ipo-urgency { display: inline-flex; margin-top: 7px; padding: 4px 7px; border-radius: 2px; background: #e7e6e0; color: #555b54; font-size: 12px; font-weight: 800; white-space: nowrap; }
.ipo-urgency.urgent { background: #f4d5cf; color: #a33b2e; }
.ipo-urgency.soon { background: #f4dfc8; color: #8a5329; }
.ipo-urgency.done { background: #dcebdc; color: #1c6e4c; }
.ipo-urgency.closed { background: #e7e6e0; color: #747a73; }
.ipo-status-select { max-width: 118px; height: 34px; padding-left: 8px; border: 1px solid #d5d6d0; font-size: 12px; font-weight: 700; }
.ipo-allocation { display: block; max-width: 118px; margin-top: 6px; color: #747a73; font-size: 12px; }
.ipo-deposit-note { display: block; margin-top: 6px; color: #747a73; font: 700 12px var(--ko); white-space: nowrap; }
.danger-link { color: #a64e2f; }
.profit-link { border-color: #b8ca64; background: #eff5d4; color: #4e5d12; }
.field-help { display: block; margin-top: 7px; color: #747a73; font-size: 12px; line-height: 1.45; }
.settlement-preview { padding: 15px; border-left: 4px solid var(--acid-deep); background: #eff5d4; font: 800 17px var(--mono); }
.auth-modal { width: min(520px,100%); }
.auth-content { padding: 22px; }
.auth-lead { margin: 0 0 18px; color: #5d625c; font-size: 13px; line-height: 1.6; }
.social-login { width: 100%; min-height: 46px; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #d5d6d0; border-radius: 3px; cursor: pointer; font-size: 13px; font-weight: 800; }
.social-login b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.social-login.google { background: white; color: #333; }
.social-login.google b { color: #4285f4; border: 1px solid #ddd; }
.social-login.kakao { background: #fee500; color: #191919; border-color: #ead300; }
.social-login.kakao b { background: #191919; color: #fee500; }
.auth-config-note { display: block; margin-top: 14px; color: #a64e2f; font-size: 12px; text-align: center; }
.signed-user-card { display: flex; align-items: center; gap: 12px; padding: 14px; background: #202421; color: white; }
.signed-user-card > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--acid); color: #202421; font-weight: 900; }
.signed-user-card strong, .signed-user-card small { display: block; }
.signed-user-card small { margin-top: 4px; color: #aeb3ad; font-size: 12px; }
.profile-form { display: grid; gap: 13px; margin-top: 18px; }
.profile-form label { color: #656a64; font-size: 12px; font-weight: 700; }
.profile-form input[type="text"], .profile-form input:not([type]) { width: 100%; height: 40px; margin-top: 7px; padding: 0 10px; border: 1px solid #d5d6d0; }
.compare-consent { display: flex; align-items: center; gap: 8px; line-height: 1.45; }
.identity-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.identity-section h3 { margin: 5px 0 0; font-size: 15px; }
.identity-section > p { color: #747a73; font-size: 12px; line-height: 1.5; }
.identity-row { min-height: 43px; display: grid; grid-template-columns: 1fr auto 64px; align-items: center; gap: 8px; border-top: 1px solid #e3e4de; font-size: 12px; }
.identity-row b { color: #747a73; font-size: 12px; }
.identity-row button { min-height: 29px; border: 1px solid #d5d6d0; background: white; cursor: pointer; font-weight: 700; }
.identity-row button:disabled { opacity: .45; cursor: default; }
.auth-signout { width: 100%; margin-top: 18px; }

.calendar-layout { display: grid; grid-template-columns: 1fr 340px; gap: 12px; }
.calendar-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.calendar-actions .secondary-button { min-width: 40px; padding: 0 11px; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); padding: 14px 18px 0; gap: 6px; }
.calendar-weekdays span { color: #747a73; font: 700 12px var(--ko); text-align: center; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(102px, 1fr)); gap: 6px; padding: 12px 18px 18px; overflow-x: auto; }
.calendar-day { min-height: 105px; padding: 10px; border: 1px solid #dedfd9; background: var(--white); border-radius: 3px; cursor: pointer; text-align: left; display: grid; align-content: start; gap: 8px; }
.calendar-day:hover { border-color: #b8beb4; background: #f5f7ec; }
.calendar-day.selected { outline: 2px solid #1b1e1d; background: #eff5d4; }
.calendar-day.muted { opacity: .48; }
.calendar-date-num { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e9e8e2; font-weight: 800; }
.calendar-day strong { min-height: 18px; font: 800 14px var(--mono); color: #1c8e5f; }
.calendar-day strong.negative, .day-record b.negative { color: var(--red); }
.calendar-day small { color: #747a73; line-height: 1.35; }
.day-panel { align-self: start; min-height: 620px; }
.day-record-list { padding: 12px 18px; }
.day-record { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; padding: 13px 0; border-bottom: 1px solid #e3e4de; }
.day-record strong { display: block; font-size: 13px; }
.day-record span { display: block; margin-top: 5px; color: #747a73; font-size: 12px; }
.day-record b { color: #1c8e5f; font: 800 13px var(--mono); }
.day-record p { grid-column: 1 / -1; margin: 0; color: #555b54; font-size: 12px; line-height: 1.5; }
.day-record button { justify-self: start; min-height: 28px; border: 1px solid #ddd4c5; background: #f5e7d8; color: #a64e2f; border-radius: 2px; cursor: pointer; font-weight: 700; }

.analytics-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; }
.analytics-hero { grid-row: span 2; padding: 30px; color: white; background: #1d211e; }
.analytics-hero .eyebrow { color: #929892; }
.analytics-hero h2 { margin: 70px 0 7px; color: var(--acid); font: 800 43px var(--sans); letter-spacing: -.05em; }
.analytics-hero p { color: #8f958f; font-size: 10px; }
.formula { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 65px; padding-top: 18px; border-top: 1px solid #3b403c; font: 500 9px var(--mono); }
.formula i { color: #737a73; font-style: normal; }
.formula strong { color: var(--acid); }
.ranking-list { padding: 8px 19px 16px; }
.ranking-row { display: grid; grid-template-columns: 24px 110px 1fr 75px; align-items: center; gap: 10px; min-height: 34px; }
.ranking-row > span:first-child { font: 500 9px var(--mono); color: #929792; }
.ranking-name { font-size: 9px; font-weight: 700; }
.ranking-bar { height: 5px; background: #e1e2dc; }
.ranking-bar i { display: block; height: 100%; background: #252a27; }
.ranking-row b { text-align: right; font: 500 9px var(--mono); }
.quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 20px; gap: 10px; }
.quality-item { padding: 15px; background: #ebeae4; }
.quality-item span { color: #7f847e; font: 500 8px var(--mono); }
.quality-item strong { display: block; margin-top: 10px; font: 700 19px var(--sans); }
.community-panel { margin-top: 12px; }
.community-login-note { padding: 28px 20px; color: #747a73; font-size: 12px; text-align: center; }
.community-table { min-width: 760px; }
.community-table tr.me { background: #eff5d4; }
.rank-nickname { font-weight: 800; }
.rank-provider { display: inline-flex; margin-left: 5px; padding: 2px 4px; background: #e7e6e0; font-size: 12px; }

.drawer-overlay { position: fixed; inset: 0; z-index: 39; background: rgba(19,22,20,.28); opacity: 0; pointer-events: none; transition: .25s; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.detail-drawer { position: fixed; z-index: 40; inset: 0 0 0 auto; width: min(470px, 100%); padding: 31px; overflow-y: auto; background: var(--white); box-shadow: -20px 0 55px rgba(0,0,0,.13); transform: translateX(101%); transition: transform .28s ease; }
.detail-drawer.open { transform: translateX(0); }
.drawer-close { position: absolute; top: 20px; right: 22px; border: 0; background: none; font-size: 23px; cursor: pointer; }
.drawer-exchange { display: inline-block; margin-top: 22px; color: #747a73; font: 500 9px var(--mono); letter-spacing: .12em; }
.drawer-title { margin: 12px 30px 8px 0; font: 800 25px/1.25 var(--sans); letter-spacing: -.035em; }
.drawer-sub { color: #8b908a; font-size: 10px; }
.drawer-score { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 28px 0; background: var(--line); border: 1px solid var(--line); }
.drawer-score > div { padding: 16px; background: var(--surface); }
.drawer-score span { display: block; color: #91968f; font: 500 8px var(--mono); }
.drawer-score strong { display: block; margin-top: 8px; font: 700 17px var(--mono); }
.drawer-section { margin-top: 24px; }
.drawer-section h3 { margin: 0 0 11px; font: 800 12px var(--sans); }
.drawer-section p { margin: 0; color: #5d625c; font-size: 10px; line-height: 1.75; }
.drawer-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-info div { padding: 12px; border: 1px solid #e1e2dc; }
.drawer-info span, .drawer-info strong { display: block; }
.drawer-info span { color: #979b95; font-size: 8px; }
.drawer-info strong { margin-top: 6px; font: 500 9px var(--mono); }
.drawer-actions { display: flex; gap: 8px; margin-top: 28px; }
.drawer-actions a { flex: 1; display: grid; place-items: center; min-height: 40px; text-decoration: none; }

.modal-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(20,23,21,.5); opacity: 0; pointer-events: none; transition: .2s; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal { width: min(650px, 100%); max-height: 92vh; overflow-y: auto; background: var(--surface); box-shadow: var(--shadow); transform: translateY(10px); transition: .2s; }
.modal-overlay.open .modal { transform: none; }
.modal-header { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 5px 0 0; font: 800 18px var(--sans); }
.modal-header button { border: 0; background: none; font-size: 22px; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 22px; }
.form-grid label { color: #656a64; font-size: 9px; font-weight: 600; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; margin-top: 7px; border: 1px solid #d5d6d0; border-radius: 2px; background: var(--white); outline: none; font-size: 10px; }
.form-grid input, .form-grid select { height: 38px; padding: 0 10px; }
.form-grid textarea { padding: 10px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: #6d736b; box-shadow: 0 0 0 2px #eaeddf; }
.form-wide { grid-column: 1 / -1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 22px 22px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 25px; padding: 11px 15px; background: #202420; color: white; border-radius: 3px; box-shadow: var(--shadow); font-size: 10px; opacity: 0; transform: translate(-50%, 15px); pointer-events: none; transition: .22s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid, .lower-grid { grid-template-columns: 1fr; }
  .reward-layout { grid-template-columns: 1fr; }
  .calendar-layout { grid-template-columns: 1fr; }
  .calendar-grid { grid-template-columns: repeat(7, minmax(90px, 1fr)); }
  .ipo-summary { grid-template-columns: repeat(2, 1fr); }
  .checklist-panel { width: 100%; }
}

@media (max-width: 780px) {
  .app-shell { display: block; }
  .sidebar { transform: translateX(-102%); transition: transform .25s; box-shadow: 12px 0 30px rgba(0,0,0,.18); }
  .sidebar.open { transform: translateX(0); }
  .main-content { padding: 0 16px 35px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .topbar { min-height: 86px; }
  .topbar-actions .global-search { position: fixed; z-index: 18; left: 16px; right: 16px; top: 93px; width: auto; display: none; background: var(--white); box-shadow: var(--shadow); }
  .global-search.open { display: flex; }
  .page-heading h1 { font-size: 19px; }
  .page-heading p { display: none; }
  .topbar-actions .primary-button { width: 40px; padding: 0; font-size: 0; }
  .topbar-actions .primary-button span { font-size: 18px; }
  .account-button { width: 40px; padding: 0 6px; }
  .account-button strong { display: none; }
  .snapshot-banner { align-items: flex-start; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 120px; }
  .overview-grid { margin-top: 10px; }
  .priority-item { grid-template-columns: 28px 1fr; }
  .priority-right { grid-column: 2; text-align: left; margin-top: -10px; padding-bottom: 10px; }
  .profit-summary { grid-template-columns: 1fr 1fr; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .filter-row { overflow-x: auto; }
  .reward-item { grid-template-columns: 1fr 1fr; padding: 15px 0; }
  .telegram-summary { grid-template-columns: 1fr 1fr; }
  .ipo-summary { grid-template-columns: 1fr 1fr; }
  .analytics-grid { grid-template-columns: 1fr; }
  .analytics-hero { grid-row: auto; }
  .analytics-hero h2 { margin-top: 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
}

@media (max-width: 450px) {
  .topbar-actions .icon-button { display: none; }
  .page-heading h1 { font-size: 17px; }
  .panel-header { padding: 15px; }
  .priority-list, .deadline-list, .profit-bars { padding-left: 15px; padding-right: 15px; }
  .pipeline-row { grid-template-columns: 70px 1fr 20px; }
  .formula { flex-wrap: wrap; }
}

/* Readability guard: keep dashboard text at 12px or larger. */
.brand small,
.nav-item b,
.side-label,
.eyebrow,
.exchange-cloud span,
.side-card small,
.side-footer,
.text-button,
.page-heading p,
kbd,
.metric-label,
.live-label,
.priority-rank,
.priority-meta,
.priority-right strong,
.priority-right span,
.pipeline-row span,
.pipeline-row b,
.pipeline-foot > div:first-child,
.pipeline-foot small,
.profit-cell span,
.profit-bar-row span,
.profit-bar-row b,
.mono-pill,
.date-badge,
.deadline-date,
.deadline-title span,
.d-day,
select,
th,
.event-name span,
.exchange-code,
.grade,
.status-select,
.empty-state span,
.telegram-stat span,
.category-pill,
.risk-pill,
.row-link,
.reward-item p,
.reward-item div > span,
.reward-item div > strong,
.check-note strong,
.check-note p,
.analytics-hero p,
.formula,
.ranking-row > span:first-child,
.ranking-name,
.ranking-row b,
.quality-item span,
.drawer-exchange,
.drawer-sub,
.drawer-score span,
.drawer-section p,
.drawer-info span,
.drawer-info strong,
.form-grid label,
.form-grid input,
.form-grid select,
.form-grid textarea,
.toast {
  font-size: 12px !important;
}
