:root {
  color-scheme: light;
  --bg: #f6f7fa; --paper: #fff; --ink: #22242d; --muted: #686d7b; --faint: #858996;
  --edge: #e7e8ee; --line: #eeeff3; --soft: #f7f7fa; --accent: #6b56c5; --accent-hover: #5b46b4;
  --violet: #f2effa; --cache: #f8f7fc; --cache-edge: #ddd8ec; --wallet: #242530;
  --green: #29805a; --green-bg: #edf8f1; --amber: #8b571d; --amber-bg: #fff6e7;
  --red: #af4149; --red-bg: #fff0f1; --shadow: 0 5px 18px rgba(34, 36, 45, .025);
  font: 14px/1.5 Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #181922; --paper: #21222e; --ink: #f1eff6; --muted: #b2afc1; --faint: #a09cad;
  --edge: #353545; --line: #323241; --soft: #252632; --accent: #ae9af4; --accent-hover: #c2b2f9;
  --violet: #312847; --cache: #242332; --cache-edge: #433a5a; --wallet: #242530;
  --green: #90d6ae; --green-bg: #253a32; --amber: #efc58d; --amber-bg: #403329;
  --red: #f4a1a7; --red-bg: #422b34; --shadow: 0 5px 18px rgba(0, 0, 0, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; }
body { margin: 0; background: var(--bg); color: var(--ink); }
main:focus { outline: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { background: transparent; border: 0; }
button:disabled { opacity: .5; cursor: default; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; vertical-align: middle; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
.skip { position: fixed; top: -60px; left: 12px; z-index: 60; padding: 8px 14px; border-radius: 8px; background: var(--paper); }
.skip:focus { top: 8px; }
.ico { display: inline-block; width: 16px; height: 16px; flex: none; vertical-align: -.2em; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.stack > * + * { margin-top: 14px; }
.topbar { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--edge); background: var(--bg); }
.nav-wrap { max-width: 1440px; padding: 0 36px; margin: auto; display: flex; align-items: center; gap: 26px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 750; letter-spacing: -.035em; white-space: nowrap; flex: none; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; flex: none; color: #fff; border-radius: 10px; background: linear-gradient(145deg, #8877e6, #654cb8 60%, #48329b); box-shadow: inset 0 1px 1px #ffffff40, 0 3px 8px #5a45a931; font-size: 20px; font-weight: 780; line-height: 1; letter-spacing: -.08em; }
.brand .mark { padding-right: 2px; }
.nav-link .ico { pointer-events: none; }
.topnav { display: flex; min-width: 0; align-items: stretch; gap: 6px; align-self: stretch; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.nav-link { display: flex; align-items: center; justify-content: center; gap: 7px; position: relative; flex: none; padding: 0 7px; min-height: 48px; color: var(--muted); white-space: nowrap; }
.nav-link .ico, .head-link .ico { width: 15px; height: 15px; }
.nav-link:hover, .head-link:hover { color: var(--accent); }
.nav-link[aria-current="page"] { color: var(--accent); font-weight: 650; }
.nav-link[aria-current="page"]::after { content: ""; background: var(--accent); position: absolute; inset: auto 2px 0; height: 2px; border-radius: 2px 2px 0 0; }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: none; }
.head-link, .icon-btn, .person, .subtle, .text-link, .button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.head-link, .icon-btn, .person { color: var(--muted); padding: 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; }
.icon-btn:hover, .person:hover { background: var(--soft); color: var(--accent); }
.theme-button .ico { width: 19px; height: 19px; }
.person { display: flex; gap: 9px; border-radius: 24px; }
.avatar { display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: 50%; background: var(--violet); border: 1px solid var(--cache-edge); color: var(--accent); font-weight: 700; }
.person-wrap { position: relative; }
.account-menu { position: absolute; right: 0; top: 48px; width: 210px; padding: 8px; border: 1px solid var(--edge); border-radius: 14px; background: var(--paper); box-shadow: 0 9px 36px #17112820; }
.account-menu[hidden] { display: none; }
.menu-info { padding: 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-action { display: flex; align-items: center; gap: 8px; text-align: left; padding: 9px 10px; width: 100%; border-radius: 8px; }
.menu-action:hover { background: var(--violet); }
.mobile-more { display: none; }
.workspace { max-width: 1200px; padding: 30px 36px 40px; margin-inline: auto; min-height: calc(100vh - 135px); }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.eyebrow { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.page-heading h1 { font-size: 27px; line-height: 38px; font-weight: 700; letter-spacing: -.045em; }
.page-heading p:not(.eyebrow) { color: var(--muted); margin-top: 4px; font-size: 13px; }
.head-tools { display: flex; align-items: center; gap: 18px; }
.subtle { color: var(--muted); padding: 0; }
.subtle:hover, .text-link:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.refresh { background: var(--paper); border: 1px solid var(--edge); height: 44px; width: 42px; }
.refresh.busy .ico { animation: spin .55s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.card { background: var(--paper); border: 1px solid var(--edge); border-radius: 19px; box-shadow: var(--shadow); min-width: 0; }
.cache-grid, .stats-grid, .lower-grid { display: grid; gap: 18px; }
.cache-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cache-block { margin-bottom: 22px; }
.cache-card { min-height: 160px; padding: 19px 25px 17px; border: 1px solid var(--cache-edge); background: var(--cache); }
.split { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.split .ico { color: var(--faint); }
.cache-card .ico { color: var(--accent); opacity: .63; width: 15px; height: 15px; }
.cache-card h2, .section-head h2 { font-size: 14px; font-weight: 700; }
.dash-value { color: var(--accent); font-size: 40px; line-height: 1; font-weight: 700; margin-top: 18px; margin-bottom: 15px; }
.cache-track { height: 4px; border-radius: 9px; background: var(--violet); margin-bottom: 9px; }
.cache-track > span { display: block; height: 4px; border-radius: inherit; background: var(--accent); }
.cache-card p:last-child { font-size: 11px; color: var(--muted); }
.tooltip-wrap { position: relative; display: inline-flex; margin-top: 11px; }
.tooltip-wrap button { font-size: 11px; gap: 5px; }
.tooltip-wrap .ico { width: 12px; height: 12px; }
.tooltip { display: none; position: absolute; top: 23px; left: 0; width: min(310px, 82vw); z-index: 3; padding: 12px 14px; border: 1px solid var(--edge); border-radius: 10px; color: var(--muted); background: var(--paper); box-shadow: var(--shadow); font-size: 12px; }
.tooltip-wrap:hover .tooltip, .tooltip-wrap:focus-within .tooltip { display: block; }
.stats-grid { grid-template-columns: 1.35fr 1fr 1fr; margin-bottom: 20px; }
.stat-card { padding: 23px 25px 25px; min-height: 202px; }
.stat-card h2 { color: var(--muted); font-size: 14px; font-weight: 690; }
.stat-card .split .ico { width: 16px; height: 16px; }
.stat-value { display: flex; align-items: baseline; gap: 5px; margin-top: 20px; font-weight: 730; font-size: 36px; line-height: 1.18; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.stat-value small { color: var(--muted); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.stat-meta { margin: 8px 0 14px; color: var(--muted); font-size: 12px; }
.foot-note { color: var(--muted); font-size: 11px; }
.stat-card .text-link { font-size: 12px; }
.wallet { border-color: transparent; background: radial-gradient(ellipse at 95% -35%, #6d607b63, transparent 80%), linear-gradient(125deg, #262730, #23242e 80%); color: #fff; }
.wallet h2 { display: flex; align-items: center; color: #d9d4e7; gap: 7px; }
.wallet .split .ico { color: #c6bdd8; }
.wallet .stat-value { color: #fff; font-size: 44px; margin-top: 20px; line-height: 1.2; }
.wallet .stat-value small { color: #d2c5ee; font-size: 24px; }
.wallet .pill { background: #ffffff06; color: #ddd5ee; border-color: #ffffff24; padding-inline: 6px; }
.wallet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 17px; font-size: 12px; }
.wallet-actions .subtle { color: #d4cce2; }
.button { min-height: 38px; padding: 8px 14px; border: 1px solid var(--edge); border-radius: 9px; background: var(--paper); font-weight: 650; }
.button:hover { border-color: var(--cache-edge); background: var(--soft); }
.button.primary { background: #6954c2; border-color: #6954c2; color: #fff; }
.button.primary:hover { background: #5b46b0; border-color: #5b46b0; }
.button.lilac { background: #eee8fe; border-color: #eee8fe; color: #3f3458; gap: 15px; }
.button.lilac:hover { background: #e4dafa; }
.button.danger { border-color: transparent; color: var(--red); background: var(--red-bg); }
.button.compact { padding: 5px 10px; font-size: 12px; min-height: 32px; }
.pill { display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid var(--line); background: var(--soft); color: var(--muted); border-radius: 6px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.pill.green { color: var(--green); background: var(--green-bg); border-color: transparent; }
.pill.violet { color: var(--accent); background: var(--violet); border-color: transparent; }
.pill.amber { color: var(--amber); background: var(--amber-bg); border-color: transparent; }
.text-link { color: var(--accent); padding: 0; font-weight: 600; }
.text-link .ico { width: 14px; height: 14px; }
.lower-grid { grid-template-columns: 1.75fr 1fr; gap: 20px; align-items: stretch; }
.overview, .connect, .recent, .panel { padding: 23px 25px; }
.overview, .connect { min-height: 491px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-head + .muted, .section-head .muted { margin-top: 3px; font-size: 12px; }
.overview-totals { margin-top: 20px; align-items: flex-end; color: var(--muted); font-size: 12px; }
.overview-money { font-size: 28px; line-height: 1.3; color: var(--ink); letter-spacing: -.045em; margin-top: 2px; }
.overview-money small { font-size: 17px; color: var(--muted); margin-right: 3px; }
.chart { display: grid; place-items: center; position: relative; min-height: 128px; margin-top: 18px; border-block: 1px solid var(--line); background: repeating-linear-gradient(0deg, transparent 0px, transparent 40px, var(--line) 41px, transparent 42px); }
.no-usage { display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: 11px; padding: 8px 18px; text-align: center; background: var(--paper); }
.no-usage strong { color: var(--ink); font-size: 12px; font-weight: 600; }
.no-usage .ico { width: 20px; height: 20px; margin-bottom: 3px; }
.chart-bars { height: 112px; width: 100%; display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); align-items: end; gap: clamp(10px, 3vw, 30px); padding: 8px 20px 0; }
.chart-bar { height: var(--bar, 4px); min-height: 3px; background: color-mix(in srgb, var(--accent) 65%, var(--paper)); border-radius: 5px 5px 0 0; }
.chart-bar:last-child { background: var(--accent); }
.chart-labels { font-size: 11px; color: var(--muted); padding-top: 9px; }
.chart-detail { border-bottom: 1px solid var(--line); padding: 16px 0 12px; color: var(--muted); font-size: 11px; }
.chart-detail strong { color: var(--ink); font-weight: 600; }
.overview-foot { margin-top: 14px; font-size: 11px; color: var(--muted); }
.overview-foot .text-link { color: var(--muted); }
.connect .pill { font-size: 10px; padding: 2px 6px; }
.connect-title { display: flex; align-items: center; gap: 10px; margin-top: 21px; }
.connect-title .mark { width: 38px; height: 38px; }
.connect-title h3 { font-size: 15px; font-weight: 720; }
.connect-title p { font-size: 11px; margin-top: 2px; color: var(--muted); }
.os-field { border: 0; padding: 0; margin: 19px 0 8px; }
.os-field legend { padding: 0; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.os-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.os-option { position: relative; background: var(--paper); border: 1px solid var(--edge); border-radius: 10px; min-height: 65px; display: block; padding: 10px 12px; cursor: pointer; }
.os-option:has(input:checked) { border-color: var(--accent); background: var(--violet); }
.os-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.os-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.os-option b { font-size: 13px; }
.os-option small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.os-option .ico { display: none; position: absolute; top: 10px; right: 9px; color: var(--accent); width: 13px; height: 13px; }
.os-option:has(input:checked) .ico { display: inline-block; }
.connect-note { font-size: 11px; color: var(--muted); margin: 5px 0 12px; }
.download-button { width: 100%; min-height: 43px; font-size: 12px; }
.release-note { margin-top: 14px; font-size: 11px; color: var(--muted); line-height: 1.8; }
.connect-links, .connect-foot { font-size: 11px; margin-top: 10px; color: var(--muted); }
.connect-foot { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 16px; min-height: 29px; }
.underlined { text-decoration: underline; text-underline-offset: 2px; }
.recent { margin-top: 20px; }
.empty { text-align: center; padding: 43px 18px; display: grid; justify-items: center; gap: 8px; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--accent); background: var(--violet); border-radius: 13px; margin-bottom: 4px; }
.empty-icon .ico { width: 21px; height: 21px; }
.empty h3 { color: var(--ink); font-size: 14px; }
.empty p { font-size: 12px; }
.empty .button, .empty .text-link { margin-top: 6px; }
footer { border-top: 1px solid var(--edge); max-width: 1128px; padding: 20px 0 26px; margin: auto; color: var(--muted); font-size: 12px; }
.footer-brand { color: var(--ink); font-weight: 700; }
.demo-text { color: var(--faint); margin-left: 10px; }
.panel + .panel { margin-top: 18px; }
.panel-title { margin-bottom: 18px; }
.toolbar, .control-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar { margin-bottom: 17px; }
.toolbar .push { margin-left: auto; }
.field, .input, .select, textarea.input { min-width: 0; }
.input, .select {
  border: 1px solid var(--edge); border-radius: 9px; padding: 8px 11px; min-height: 38px; background: var(--paper); color: var(--ink);
}
.input::placeholder { color: var(--faint); }
.input[type="date"] { min-width: 138px; }
.input.wide, .field .input, .field .select { width: 100%; }
.field { display: grid; gap: 6px; font-size: 13px; }
.field strong { font-weight: 650; }
.field small { color: var(--muted); }
.search-field { position: relative; display: flex; align-items: center; min-width: 180px; }
.search-field .ico { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.search-field .input { padding-left: 34px; width: 100%; }
.table-wrap { border: 1px solid var(--edge); border-radius: 12px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: 13px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--soft); color: var(--muted); font-weight: 650; font-size: 12px; }
tr:last-child td { border-bottom: 0; }
td .text-link { font-size: 12px; }
.table-empty { padding: 37px 10px; text-align: center; color: var(--muted); }
.mini-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.mini-metric { padding: 17px 19px; }
.mini-metric span { display: block; font-size: 12px; color: var(--muted); }
.mini-metric b { display: block; margin-top: 5px; font-size: 24px; letter-spacing: -.035em; }
.choice-bar { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px; background: var(--soft); border: 1px solid var(--edge); border-radius: 10px; width: fit-content; }
.choice-bar button { padding: 6px 12px; border-radius: 7px; color: var(--muted); }
.choice-bar button[aria-pressed="true"] { color: var(--accent); background: var(--paper); font-weight: 650; box-shadow: 0 1px 4px #0001; }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.detail-card { padding: 18px 19px; display: flex; flex-direction: column; gap: 11px; }
.detail-card h2 { font-size: 15px; overflow-wrap: anywhere; }
.detail-card p { color: var(--muted); font-size: 12px; }
.detail-icon { display: grid; place-items: center; width: 33px; height: 33px; flex: none; border-radius: 9px; color: var(--accent); background: var(--violet); }
.detail-icon .ico { width: 17px; height: 17px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.callout { background: var(--violet); color: var(--accent); padding: 12px 14px; border-radius: 10px; font-size: 12px; }
.error { color: var(--red); font-size: 12px; }
code, pre { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
code { background: var(--soft); padding: 2px 5px; border-radius: 4px; overflow-wrap: anywhere; }
pre { background: var(--soft); border: 1px solid var(--edge); padding: 13px; border-radius: 9px; font-size: 12px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
details { border: 1px solid var(--edge); padding: 12px 15px; border-radius: 10px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 650; }
details[open] summary { margin-bottom: 9px; }
dialog { background: var(--paper); color: var(--ink); border: 1px solid var(--edge); border-radius: 17px; box-shadow: 0 16px 60px #12112035; padding: 0; width: min(480px, calc(100% - 28px)); }
dialog::backdrop { background: #19142765; }
.dialog-head { padding: 18px 21px 13px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 17px; }
.dialog-head .icon-btn { width: 30px; height: 30px; border-radius: 8px; }
.dialog-content { padding: 19px 21px 22px; }
.password-form { display: grid; gap: 13px; }
.password-form button[type="submit"] { justify-self: end; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 21px; }
.toast { position: fixed; z-index: 25; right: 24px; bottom: 24px; max-width: calc(100vw - 48px); background: var(--ink); color: var(--paper); padding: 10px 15px; border-radius: 9px; box-shadow: var(--shadow); font-size: 13px; pointer-events: none; }
.toast:empty { display: none; }
.chat-log { min-height: 300px; display: flex; flex-direction: column; gap: 16px; max-height: 52vh; overflow: auto; padding-bottom: 14px; }
.message { white-space: pre-wrap; overflow-wrap: anywhere; align-self: flex-start; background: var(--soft); border: 1px solid var(--edge); border-radius: 12px; padding: 11px 14px; max-width: 85%; }
.message.me { align-self: flex-end; background: var(--violet); }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; }
.chat-compose textarea { flex: 1; resize: vertical; min-height: 61px; }
.board { min-height: 450px; height: min(61vh, 650px); position: relative; overflow: auto; border: 1px solid var(--edge); border-radius: 11px; background: radial-gradient(var(--cache-edge) 1px, transparent 0) 0 0/18px 18px var(--soft); }
.board-space { position: relative; min-width: 570px; min-height: 450px; height: 100%; }
.note { position: absolute; width: 190px; background: var(--paper); border: 1px solid var(--cache-edge); border-radius: 11px; overflow: hidden; box-shadow: var(--shadow); }
.note header { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 5px 8px; background: var(--violet); color: var(--accent); cursor: grab; touch-action: none; font-size: 12px; }
.note header:active { cursor: grabbing; }
.note textarea { display: block; width: 100%; height: 78px; border: 0; background: transparent; resize: none; padding: 8px; font-size: 12px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 13px; }
.preview-still { display: grid; place-items: center; aspect-ratio: 16/9; background: radial-gradient(ellipse at 60% 25%, #7564b4, #29273e 73%); border-radius: 9px; color: #ece5ff; }
.preview-still .ico { width: 34px; height: 34px; }
.header-status { margin-left: 2px; }
.header-status[hidden] { display: none; }
.topnav:empty { display: none; }
.nav-wrap.signed-out { display: flex; }
.workspace.guest { display: grid; align-items: start; padding-block: clamp(36px, 8vh, 104px) clamp(30px, 5vh, 65px); }
.auth-card { width: min(100%, 442px); justify-self: center; padding: clamp(22px, 5vw, 36px); box-shadow: 0 10px 34px #19142b0a; }
.auth-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.auth-title h1 { font-size: 26px; letter-spacing: -.045em; }
.auth-card .choice-bar { width: 100%; margin-bottom: 22px; }
.auth-card .choice-bar button { flex: 1; }
.auth-card form { display: grid; gap: 13px; }
.auth-card .field { gap: 8px; font-weight: 620; }
.auth-card .input { min-height: 42px; text-decoration: none; }
.auth-card .button { width: 100%; min-height: 42px; }
.auth-card .error:empty { display: none; }
.auth-demo { display: grid; gap: 9px; text-align: center; margin-top: 20px; padding-top: 19px; border-top: 1px solid var(--line); }
.loading { display: grid; justify-items: center; align-content: center; color: var(--muted); min-height: 145px; }
.loading .ico { animation: spin .8s linear infinite; margin-bottom: 8px; }
.error-state { display: grid; gap: 11px; justify-items: start; }
.error-state h1 { font-size: 21px; }
.cache-value-number { font-size: 32px; }
.cache-track { position: relative; }
.cache-track > progress { appearance: none; position: absolute; width: 100%; height: 4px; border: none; top: 0; left: 0; border-radius: 9px; color: var(--accent); }
.cache-track > progress::-webkit-progress-bar { background: var(--violet); border-radius: 9px; }
.cache-track > progress::-webkit-progress-value { background: var(--accent); border-radius: 9px; }
.cache-track > progress::-moz-progress-bar { background: var(--accent); border-radius: 9px; }
.chart-bars { align-items: stretch; padding-bottom: 0; }
.chart-bar { width: 100%; align-self: end; background: color-mix(in srgb, var(--accent) 42%, var(--paper)); cursor: pointer; }
.chart-bar[aria-pressed="true"], .chart-bar:hover { background: var(--accent); }
.chart-bar:last-child:not([aria-pressed="true"]) { background: color-mix(in srgb, var(--accent) 42%, var(--paper)); }
.connect-endpoint { display: grid; gap: 7px; margin-top: 17px; }
.endpoint-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 4px 2px 8px; border: 1px solid var(--edge); border-radius: 8px; background: var(--soft); }
.endpoint-line code { font-size: 11px; background: transparent; min-width: 0; }
.endpoint-line .icon-btn { width: 30px; height: 30px; border-radius: 7px; }
.notice-trigger { position: relative; }
.notice-badge { position: absolute; top: -4px; right: -6px; min-width: 18px; padding: 0 4px; border: 2px solid var(--paper); border-radius: 12px; background: var(--accent); color: white; font-size: 10px; font-weight: 740; line-height: 15px; }
.notice-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.notice-toolbar[hidden] { display: none; }
.notice-toolbar input { flex: 1 1 180px; }
.notice-meta { margin-bottom: 12px; }
.notice-meta:empty, .notice-error:empty { display: none; }
.notice-error { margin-bottom: 10px; }
.notice-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.notice-entry { width: 100%; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; color: inherit; background: var(--paper); border: 1px solid var(--edge); border-radius: 8px; cursor: pointer; }
.notice-entry:hover:not(:disabled), .notice-entry:focus-visible { background: var(--soft); border-color: var(--accent); }
.notice-entry-title { font-weight: 630; overflow-wrap: anywhere; }
.notice-entry-meta { display: flex; flex-shrink: 0; align-items: center; gap: 7px; white-space: nowrap; }
.notice-unread { color: var(--accent); background: var(--violet); }
.notice-detail { display: grid; gap: 10px; }
.notice-detail h3 { font-size: 18px; overflow-wrap: anywhere; }
.notice-detail-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.notice-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.notice-empty { padding: 16px 0; }
@media (max-width: 520px) { .notice-entry { align-items: flex-start; flex-direction: column; gap: 4px; } }
.recent-table { margin-top: 15px; }
.clipboard-field { position: fixed; left: -1000px; top: 0; width: 1px; height: 1px; }
@media (min-width: 1340px) {
  .topnav { gap: 6px; }
  .nav-link { padding-inline: 8px; }
}
@media (max-width: 1180px) {
  .nav-wrap { padding-inline: 24px; gap: 21px; }
  .nav-actions { gap: 8px; }
  .head-link span { display: none; }
  footer { margin-inline: 36px; }
}
@media (max-width: 830px) {
  .nav-wrap { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding-inline: 18px; }
  .brand, .nav-actions { min-height: 54px; }
  .topnav { grid-row: 2; grid-column: 1 / -1; }
  .nav-link { min-height: 42px; padding-inline: 8px; }
  .workspace { padding-inline: 20px; }
  .overview, .connect { min-height: auto; }
  footer { margin-inline: 20px; }
  .lower-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card, .cache-card, .overview, .connect, .recent, .panel { padding-inline: 19px; }
}
@media (max-width: 570px) {
  .workspace { padding: 21px 14px 30px; }
  .page-heading { flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
  .page-heading h1 { font-size: 24px; }
  .head-tools { gap: 9px; }
  .head-tools .subtle { font-size: 12px; }
  .head-tools .refresh { width: 33px; height: 33px; border-radius: 9px; }
  .cache-grid, .stats-grid { gap: 9px; }
  .cache-card { min-height: 135px; padding: 13px; }
  .cache-card h2 { font-size: 12px; }
  .dash-value { margin: 13px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 150px; padding: 15px 13px; }
  .stat-card.wallet { grid-column: 1 / -1; }
  .stat-value { font-size: 30px; margin-top: 12px; }
  .wallet .stat-value { font-size: 37px; }
  .mini-metrics { grid-template-columns: 1fr 1fr; }
  .pair, .cards-grid { grid-template-columns: 1fr; }
  .head-link { min-width: 28px; min-height: 38px; }
  .brand { gap: 5px; font-size: 18px; }
  .brand .mark { width: 34px; height: 34px; }
  .theme-button { width: 34px; }
  .person .ico { display: none; }
  .avatar { width: 33px; min-width: 33px; height: 33px; }
  .toolbar .push { margin-left: 0; }
  .chat-compose { align-items: stretch; flex-direction: column; }
  .panel, .overview, .connect, .recent { padding: 17px 15px; }
  footer { margin-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; scroll-behavior: auto !important; }
}
