:root {
  --bg: #f7f7f8;
  --sidebar: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f2f2f3;
  --line: #e5e5e7;
  --text: #202123;
  --muted: #73767d;
  --soft: #a2a5ab;
  --accent: #202123;
  --green: #16845d;
  --red: #c23b3b;
  --amber: #a86b12;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
.hidden { display: none !important; }
.muted, .page-heading p, .chat-heading p { color: var(--muted); line-height: 1.55; }
.eyebrow, .nav-caption { color: #85888e; font-size: 10px; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; min-width: 0; background: var(--sidebar); border-right: 1px solid var(--line); padding: 18px 13px 14px; display: flex; flex-direction: column; }
.new-chat { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--text); text-align: left; padding: 0 13px; font-weight: 600; margin-bottom: 25px; }
.new-chat:hover, .nav-item:hover, .history-item:hover { background: #f1f1f2; }
.nav-caption { margin: 0 10px 8px; }
.main-nav { display: grid; gap: 3px; }
.nav-item { height: 39px; border: 0; border-radius: 9px; background: transparent; color: #55585f; text-align: left; padding: 0 11px; font-size: 13px; font-weight: 500; }
.nav-item.active { background: #eeeeef; color: #17181a; font-weight: 650; }
.history-head { display: flex; align-items: center; justify-content: space-between; color: #81848a; font-size: 11px; font-weight: 650; margin: 29px 10px 9px; }
#chatCount { font-variant-numeric: tabular-nums; color: #a4a6ab; }
.chat-list { overflow: auto; display: grid; gap: 2px; }
.history-item { width: 100%; border: 0; background: transparent; color: #5e6066; text-align: left; padding: 9px 10px; border-radius: 8px; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.history-item.active { background: #f0f0f1; color: #1e1f21; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--line); padding: 13px 7px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.connection-line { color: #777a80; font-size: 10px; display: flex; align-items: center; gap: 7px; min-width: 0; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #a8abb0; display: inline-block; flex: none; }
.status-dot.online { background: var(--green); }
.status-dot.offline { background: var(--red); }
.logout-btn { border: 0; background: transparent; color: #777a80; font-size: 10px; padding: 5px; }
.main-area { min-width: 0; }
.topbar { height: 58px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; position: sticky; top: 0; background: rgba(247,247,248,.92); backdrop-filter: blur(14px); z-index: 5; }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: #85888d; font-size: 12px; }
.breadcrumb strong { color: #2b2c2f; font-weight: 650; }
.crumb-sep { color: #c7c8cc; }
.topbar-right { display: flex; align-items: center; gap: 11px; }
.mini-chip { padding: 6px 9px; border: 1px solid var(--line); border-radius: 20px; color: #666970; font-size: 10px; display: flex; align-items: center; gap: 7px; background: #fff; }
.icon-button { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #55585e; font-size: 17px; }
.view { display: none; padding: 30px 32px 48px; max-width: 1680px; margin: auto; }
.view.active-view { display: block; }
.chat-layout { display: grid; grid-template-columns: minmax(0,1fr) 265px; gap: 27px; max-width: 1450px; margin: 0 auto; }
.chat-column { display: flex; flex-direction: column; min-width: 0; min-height: calc(100vh - 110px); }
.chat-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 22px; }
.chat-heading h1, .page-heading h1, .library-heading h1 { font-size: 27px; line-height: 1.2; letter-spacing: -.045em; margin: 7px 0 5px; font-weight: 680; }
.chat-heading p, .page-heading p, .library-heading p { font-size: 12px; margin: 0; }
.model-picker { min-width: 185px; }
.model-picker label { display: block; font-size: 9px; font-weight: 650; letter-spacing: .1em; color: #85888e; margin-bottom: 6px; }
.model-picker select { width: 100%; background: #fff; color: #26272a; border: 1px solid #dedfe2; border-radius: 9px; padding: 10px 30px 10px 11px; font-size: 11px; outline: none; }
.messages { flex: 1; min-height: 280px; overflow: auto; padding: 10px 4px 18px; }
.welcome-block { max-width: 660px; margin: 58px auto 30px; text-align: center; }
.welcome-block h2 { font-size: 23px; letter-spacing: -.04em; margin: 0 0 7px; font-weight: 650; }
.welcome-block p { font-size: 12px; color: var(--muted); margin: 0 0 24px; }
.prompt-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; text-align: left; }
.prompt-card { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: #292a2d; text-align: left; min-height: 89px; }
.prompt-card:hover { background: #f1f1f2; border-color: #d0d1d5; }
.prompt-card strong { display: block; font-size: 12px; font-weight: 630; }
.prompt-card small { display: block; color: #85888e; font-size: 10px; margin-top: 6px; }
.message { display: flex; gap: 12px; margin: 0 auto 21px; max-width: 850px; align-items: flex-start; }
.message-avatar { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #e8e8e9; color: #55575c; font-size: 9px; font-weight: 700; }
.message.user .message-avatar { background: #e4e4e5; color: #313236; }
.message-body { min-width: 0; flex: 1; padding-top: 3px; }
.message-role { font-size: 10px; font-weight: 700; color: #74777d; margin-bottom: 7px; }
.message-content { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.72; color: #34363a; font-size: 13px; }
.message-content code { background: #ededee; border-radius: 4px; padding: 1px 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.composer { border: 1px solid #dedfe2; background: #fff; border-radius: 16px; padding: 10px 11px 8px; box-shadow: 0 4px 18px rgba(0,0,0,.035); }
.composer textarea { width: 100%; resize: none; max-height: 160px; min-height: 35px; outline: none; border: 0; background: transparent; color: var(--text); padding: 5px; font-size: 13px; line-height: 1.6; }
.composer textarea::placeholder { color: #a0a2a7; }
.composer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px 0 5px; color: #92949a; font-size: 9px; }
.send-button { width: 31px; height: 31px; border: 0; border-radius: 50%; background: #202123; color: #fff; font-size: 20px; font-weight: 650; }
.send-button:disabled { opacity: .3; cursor: not-allowed; }
.privacy-note { text-align: center; color: #9a9ca2; font-size: 9px; margin-top: 9px; }
.live-panel { border: 1px solid var(--line); background: #fff; border-radius: 15px; padding: 16px; height: max-content; position: sticky; top: 75px; }
.panel-title-row, .surface-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-title-row h3, .surface-head h3 { font-size: 14px; letter-spacing: -.02em; margin: 4px 0 0; }
.live-label { color: #5d7669; background: #eef5f0; border-radius: 20px; padding: 5px 8px; font-size: 9px; font-weight: 700; }
.mini-stats { margin-top: 17px; display: grid; gap: 13px; }
.mini-stat-head { display: flex; justify-content: space-between; align-items: center; color: #70737a; font-size: 10px; margin-bottom: 6px; }
.mini-stat-head strong { font-size: 10px; font-weight: 650; color: #292a2d; font-variant-numeric: tabular-nums; }
.progress-track { height: 6px; border-radius: 20px; background: #ebebed; overflow: hidden; }
.progress-fill { height: 100%; background: #6d7076; border-radius: 20px; transition: width .35s ease; }
.mini-stat-sub { color: #999ba0; font-size: 9px; margin-top: 5px; }
.text-link { border: 0; background: transparent; color: #45474d; font-size: 10px; margin-top: 17px; padding: 0; font-weight: 600; }
.panel-divider { height: 1px; background: var(--line); margin: 15px 0; }
.mini-hardware strong, .mini-hardware span { display: block; }
.mini-hardware strong { font-size: 11px; font-weight: 650; }
.mini-hardware span { color: #8c8f95; font-size: 9px; margin-top: 4px; }
.budget-head { display: flex; justify-content: space-between; align-items: center; font-size: 10px; margin-bottom: 7px; color: #71737a; }
.budget-head strong { color: #333438; font-size: 10px; font-variant-numeric: tabular-nums; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 auto 24px; max-width: 1380px; }
.page-heading h1 { font-size: 29px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; max-width: 1380px; margin: 0 auto 14px; }
.stat-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 17px; }
.stat-card .stat-label { font-size: 9px; font-weight: 700; letter-spacing: .09em; color: #85888e; }
.stat-card .stat-value { font-size: 24px; font-weight: 680; letter-spacing: -.05em; margin: 13px 0 6px; }
.stat-card .stat-foot { color: #8b8e94; font-size: 10px; }
.stat-card .progress-track { margin-top: 11px; }
.dashboard-lower { max-width: 1380px; margin: 0 auto; display: grid; grid-template-columns: 1.35fr 1fr; gap: 13px; }
.surface-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 18px; }
.surface-head { margin-bottom: 16px; }
.subtle-tag { font-size: 9px; color: #777a80; background: #f1f1f2; border-radius: 20px; padding: 5px 8px; }
.core-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.core-card { background: #f7f7f8; border: 1px solid #ededee; border-radius: 10px; padding: 12px; }
.core-card strong { font-size: 9px; color: #85888e; }
.core-card .core-value { font-size: 19px; font-weight: 680; margin: 9px 0; }
.core-card small { font-size: 9px; color: #898c92; }
.health-panel { display: grid; gap: 12px; }
.health-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #f0f0f1; padding-bottom: 10px; }
.health-row:last-child { border: 0; padding: 0; }
.health-row span { font-size: 10px; color: #85888e; }
.health-row strong { font-size: 10px; color: #3f4146; text-align: right; }
.health-good { color: var(--green) !important; }
.health-warn { color: var(--amber) !important; }
.gpu-card { max-width: 1380px; margin: 13px auto 0; }
.gpu-card p { font-size: 11px; max-width: 850px; }
.primary, .secondary, .danger-button, .danger-outline { border: 1px solid transparent; border-radius: 10px; padding: 10px 14px; font-size: 11px; font-weight: 650; }
.primary { background: #202123; color: #fff; }
.primary:hover { background: #383a3e; }
.secondary { background: #f1f1f2; border-color: #e5e5e7; color: #36383d; }
.secondary:hover { background: #e8e8e9; }
.danger-button { background: #c23b3b; color: #fff; }
.danger-button:hover { background: #a92f2f; }
.danger-outline { background: #fff; color: #a63737; border-color: #e7caca; }
.danger-outline:hover { background: #fff5f5; }
.full { width: 100%; margin-top: 16px; padding: 12px; }
/* Model library: streaming-service shelves */
.library-heading { max-width: 1380px; margin: 0 auto 19px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.library-heading h1 { font-size: 29px; }
.library-heading p { color: var(--muted); }
.library-counts { display: flex; align-items: baseline; gap: 6px; color: #898c92; font-size: 10px; white-space: nowrap; }
.library-counts strong { font-size: 14px; color: #333438; }
.library-counts i { width: 1px; height: 13px; background: #dddde0; margin: 0 5px; }
.library-toolbar { max-width: 1380px; margin: 0 auto 11px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.search-box { height: 39px; width: min(400px, 100%); display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #e1e1e4; background: #fff; border-radius: 10px; color: #8a8d92; }
.search-box span { font-size: 18px; }
.search-box input { width: 100%; border: 0; outline: 0; color: #303136; background: transparent; font-size: 11px; }
.search-box input::placeholder { color: #a0a2a7; }
.storage-pill { display: flex; align-items: center; gap: 9px; color: #85888e; font-size: 10px; }
.storage-pill strong { color: #292a2d; font-size: 11px; font-variant-numeric: tabular-nums; }
.storage-track { max-width: 1380px; height: 6px; border-radius: 20px; background: #e8e8ea; overflow: hidden; margin: 0 auto; }
.storage-foot { max-width: 1380px; margin: 7px auto 18px; display: flex; justify-content: space-between; color: #9a9ca2; font-size: 9px; }
.download-panel { max-width: 1380px; margin: 0 auto 24px; padding: 15px 17px 13px; border: 1px solid #dcdde0; background: #fff; border-radius: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.025); }
.download-top { display: flex; align-items: center; gap: 12px; }
.download-art { width: 43px; height: 43px; border-radius: 12px; background: #eeeeef; color: #4d4f54; display: grid; place-items: center; font-size: 12px; font-weight: 750; letter-spacing: -.03em; flex: none; }
.download-main { min-width: 0; flex: 1; }
.download-model { font-size: 12px; font-weight: 700; color: #26272a; }
.download-status { font-size: 10px; color: #85888e; margin-top: 4px; }
.download-percent { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.download-progress { margin: 13px 0 8px; height: 7px; border-radius: 20px; overflow: hidden; background: #ededee; }
.download-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 9px; color: #8b8e94; font-size: 9px; font-variant-numeric: tabular-nums; }
.download-meta strong { color: #45474d; font-weight: 650; }
.download-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.download-actions span { font-size: 9px; color: #96989e; }
.download-actions .danger-button { padding: 7px 10px; font-size: 9px; }
.model-shelf { max-width: 1380px; margin: 25px auto 28px; }
.shelf-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.shelf-head h2 { font-size: 16px; letter-spacing: -.025em; margin: 0; font-weight: 670; }
.shelf-head p { font-size: 10px; color: #92949a; margin: 4px 0 0; }
.shelf-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(205px, 245px); grid-auto-columns: 245px; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; padding: 2px 2px 12px; scrollbar-width: thin; scrollbar-color: #d0d1d4 transparent; }
.model-card { min-width: 0; border: 1px solid #e5e5e7; border-radius: 13px; background: #fff; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.model-card:hover { transform: translateY(-2px); box-shadow: 0 7px 21px rgba(0,0,0,.06); border-color: #d5d6d9; }
.model-cover { height: 94px; padding: 12px 13px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, #eeeeef, #fafafa); border-bottom: 1px solid #ededee; }
.model-cover[data-kind="Coding"] { background: linear-gradient(135deg, #e9ecea, #f8f9f8); }
.model-cover[data-kind="Reasoning"] { background: linear-gradient(135deg, #eeeaf1, #faf9fb); }
.model-cover[data-kind="Allround"] { background: linear-gradient(135deg, #e9edf1, #fafbfc); }
.model-cover-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.model-cover-tag { border-radius: 20px; background: rgba(255,255,255,.75); padding: 4px 7px; font-size: 8px; color: #62656b; font-weight: 700; }
.model-cover-mark { font-size: 24px; line-height: 1; letter-spacing: -.08em; color: #4d5056; font-weight: 760; }
.model-cover-bottom { font-size: 9px; color: #70737a; }
.model-card-body { padding: 12px; }
.model-card-title-row { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.model-card h3 { margin: 0; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.model-size { color: #73767d; font-size: 9px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.model-card .family { font-size: 9px; color: #92949a; margin-top: 4px; }
.model-card-note { height: 31px; overflow: hidden; color: #7c7f85; font-size: 9px; line-height: 1.45; margin: 9px 0 10px; }
.model-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.model-card-foot button { font-size: 9px; padding: 7px 10px; }
.installed-tag { font-size: 9px; color: var(--green); font-weight: 700; }
.model-state { font-size: 9px; color: #8a8d93; }
.model-card.is-installed { border-color: #d9e8df; }
.model-card.is-installed .model-cover { background: linear-gradient(135deg, #edf4ef, #fafcfb); }
.library-reset-row { max-width: 1380px; margin: 30px auto 0; border-top: 1px solid var(--line); padding: 17px 1px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.library-reset-row strong, .library-reset-row span { display: block; }
.library-reset-row strong { font-size: 11px; }
.library-reset-row span { color: #92949a; font-size: 9px; margin-top: 4px; }
.empty-state { font-size: 11px; color: #85888e; padding: 20px; border: 1px dashed #dddddf; border-radius: 12px; }
.settings-layout { max-width: 1380px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.settings-layout .surface-card h3 { font-size: 17px; margin: 8px 0; }
.settings-layout .surface-card p { font-size: 11px; }
.quota-value { display: flex; align-items: baseline; gap: 10px; margin: 27px 0 10px; }
.quota-value strong { font-size: 32px; letter-spacing: -.06em; }
.quota-value span { color: #85888e; font-size: 10px; }
.settings-layout input[type=range] { width: 100%; accent-color: #55585e; }
.range-labels { display: flex; justify-content: space-between; color: #8a8d93; font-size: 9px; margin: 7px 0 19px; }
.feedback { font-size: 10px; color: var(--green); margin-top: 10px; min-height: 14px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #efeff0; padding: 14px 0; }
.setting-row strong, .setting-row small { display: block; }
.setting-row strong { font-size: 11px; }
.setting-row small { font-size: 9px; color: #85888e; margin-top: 4px; }
/* Login and confirmation */
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: var(--bg); }
.login-card, .modal-card { width: min(420px,100%); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: 0 18px 60px rgba(0,0,0,.07); }
.login-brand { font-size: 13px; font-weight: 750; letter-spacing: -.02em; margin-bottom: 30px; }
.login-card h1 { font-size: 25px; letter-spacing: -.05em; margin: 7px 0; }
.login-card p, .modal-card p { font-size: 11px; color: #85888e; line-height: 1.6; margin: 0 0 22px; }
.login-card label, .modal-card label { display: block; color: #666970; font-size: 10px; font-weight: 600; margin: 13px 0 7px; }
.login-card input, .modal-card input { width: 100%; background: #fff; border: 1px solid #dedfe2; border-radius: 9px; padding: 12px; color: #25262a; outline: none; }
.login-card input:focus, .modal-card input:focus { border-color: #93969d; box-shadow: 0 0 0 3px rgba(0,0,0,.045); }
.login-foot { margin-top: 22px; border-top: 1px solid #efeff0; padding-top: 15px; color: #999ba0; font-size: 9px; }
.form-error { color: #bd3434; font-size: 10px; margin-top: 9px; min-height: 14px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(30,31,33,.42); backdrop-filter: blur(5px); z-index: 20; display: grid; place-items: center; padding: 20px; }
.modal-card { width: min(470px,100%); position: relative; }
.modal-card h2 { font-size: 21px; letter-spacing: -.04em; margin: 7px 0 9px; }
.modal-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; font-size: 22px; color: #777a80; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.loading-line { font-size: 10px; color: #8c8f95; padding: 12px; }
.mobile-menu { display: none; }
@media (max-width: 1150px) {
  .chat-layout { grid-template-columns: minmax(0,1fr) 235px; gap: 18px; }
  .view { padding: 25px 22px 40px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { height: auto; position: relative; padding: 11px 13px; border-right: 0; border-bottom: 1px solid var(--line); }
  .new-chat { position: absolute; right: 13px; top: 11px; width: auto; min-height: 34px; margin: 0; font-size: 10px; }
  .nav-caption, .history-head, .chat-list, .sidebar-bottom { display: none; }
  .main-nav { display: flex; gap: 4px; margin: 0; overflow: auto; padding-right: 110px; }
  .nav-item { white-space: nowrap; height: 34px; padding: 0 10px; font-size: 10px; }
  .topbar { height: 50px; padding: 0 15px; }
  .view { padding: 21px 14px 31px; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-column { min-height: calc(100vh - 245px); }
  .live-panel { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .panel-title-row, .text-link, .panel-divider { grid-column: 1/-1; }
  .mini-stats { margin-top: 0; }
  .chat-heading { align-items: flex-start; flex-direction: column; }
  .chat-heading h1 { font-size: 23px; }
  .model-picker { width: 100%; }
  .prompt-grid { grid-template-columns: 1fr; }
  .prompt-card { min-height: unset; }
  .dashboard-lower, .settings-layout { grid-template-columns: 1fr; }
  .page-heading, .library-heading { align-items: flex-start; flex-direction: column; }
  .library-counts { align-self: flex-start; }
  .library-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .storage-foot { flex-direction: column; gap: 4px; }
  .shelf-scroll { grid-auto-columns: 220px; }
  .library-reset-row { align-items: flex-start; flex-direction: column; }
  .stats-grid { gap: 8px; }
  .stat-card { padding: 13px; }
  .stat-card .stat-value { font-size: 20px; }
  .core-grid { grid-template-columns: repeat(2,1fr); }
  .mini-chip { display: none; }
}
@media (max-width: 420px) {
  .topbar-right { gap: 5px; }
  .breadcrumb { font-size: 10px; }
  .live-panel { grid-template-columns: 1fr; }
  .live-panel > * { grid-column: 1/-1; }
  .stat-card .stat-value { font-size: 18px; }
  .login-card, .modal-card { padding: 24px; }
  .download-meta { flex-direction: column; gap: 4px; }
}
