@charset "UTF-8";

:root {
  --paper: #f5f5ef;
  --card: #fffefa;
  --ink: #1d3431;
  --muted: #596f65;
  --line: #dfe6de;
  --teal: #176b5e;
  --teal-dark: #123f38;
  --pale: #e5f0e7;
  --warn: #a56c27;
  --font: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { outline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
a { color: inherit; text-decoration: none; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#captcha-frame-holder iframe { border: 0; width: 100%; height: 128px; margin-top: 10px; background: #fff; border-radius: 8px; }
#captcha-message { margin: 0 0 8px; }
.browser-guide { max-height: 65vh; line-height: 1.8; }
.browser-guide p { margin: 0; }
#browser-dialog { width: min(760px, calc(100vw - 32px)); }
.app-shell { width: min(1416px, calc(100% - 112px)); margin: 0 auto; }
.topbar { height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #dce3db; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; display: block; position: relative; border-radius: 13px; background: var(--teal-dark); overflow: hidden; }
.brand-mark span { position: absolute; width: 25px; height: 11px; left: 8px; border: 2px solid #c7e7cd; border-left: 0; border-right: 0; border-radius: 50%; transform: rotate(-24deg); }
.brand-mark span:first-child { top: 11px; }
.brand-mark span:last-child { top: 19px; transform: rotate(24deg); }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-size: 16px; letter-spacing: .08em; line-height: 1; }
.brand-copy small { color: #899894; font-size: 8px; letter-spacing: .19em; font-weight: 700; }
.top-actions, .sites-actions { display: flex; align-items: center; gap: 10px; }
.button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 0 16px; border: 1px solid transparent; border-radius: 8px; white-space: nowrap; font-size: 13px; font-weight: 650; transition: background .18s, border-color .18s, transform .18s; }
.button:not(:disabled):hover { transform: translateY(-1px); }
.button svg { width: 17px; height: 17px; }
.button-primary { background: var(--teal); color: white; }
.button-primary:hover:not(:disabled) { background: #12594e; }
.button-dark { background: var(--teal-dark); color: white; }
.button-dark:hover:not(:disabled) { background: #1e554c; }
.button-outline { background: transparent; color: var(--ink); border-color: #d6dfd7; }
.button-outline:hover:not(:disabled) { background: #ebf0e9; border-color: #c5d3c7; }
.button-quiet { color: #5e736c; background: transparent; }
.button-quiet:hover:not(:disabled) { background: #e9eee7; }
.intro { min-height: 260px; display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 58px 0 43px; }
.eyebrow, .overline { margin: 0; color: #7c9188; font-size: 10px; font-weight: 750; letter-spacing: .15em; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow-line { display: inline-block; width: 22px; height: 2px; background: #438b79; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 19px 0 12px; font-family: Georgia, "Songti SC", "SimSun", serif; font-size: clamp(36px, 3.5vw, 53px); font-weight: 600; letter-spacing: .025em; line-height: 1.26; }
h1 span { color: var(--teal); }
.intro-copy { margin: 0; color: #7c8e86; font-size: 13px; line-height: 1.7; }
.intro-aside { padding-bottom: 3px; text-align: right; }
.local-seal { display: inline-flex; align-items: center; gap: 7px; color: #4f7568; font-size: 12px; font-weight: 650; }
.seal-dot, .status-key i { width: 7px; height: 7px; border-radius: 50%; background: #65a987; box-shadow: 0 0 0 4px #dfebe0; }
.intro-aside p { margin: 12px 0 0; color: #98a59c; font-size: 11px; letter-spacing: .08em; }
.connection-error { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; padding: 13px 16px; border: 1px solid #ebd4c8; border-radius: 8px; background: #fcf0eb; color: #965f4b; font-size: 12px; line-height: 1.5; }
.connection-error button { flex: 0 0 auto; padding: 4px 0; border: 0; background: none; color: #85513f; font-weight: 700; }
.overview { display: grid; grid-template-columns: minmax(0, 1fr) 310px; overflow: hidden; border: 1px solid #d8e3d9; border-radius: 14px; background: #eef5ec; box-shadow: 0 8px 30px rgba(33, 70, 55, .035); }
.overview-main { min-height: 290px; padding: 28px 34px 26px; }
.section-kicker { display: flex; align-items: center; gap: 12px; color: #78958a; font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.kicker-rule { width: 35px; height: 1px; background: #b7cfc0; }
.overview-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-top: 34px; }
.overview-heading h2 { margin: 7px 0 0; font-family: Georgia, "Songti SC", "SimSun", serif; font-size: 21px; font-weight: 600; }
.status-key { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; color: #6e8b7e; font-size: 11px; }
.status-key i { display: block; width: 6px; height: 6px; }
.total-list { min-height: 69px; display: flex; flex-wrap: wrap; align-items: end; gap: 22px 36px; margin-top: 20px; }
.total-item { min-width: 130px; max-width: 100%; }
.total-name { margin-bottom: 4px; color: #6d8c7d; font-size: 11px; font-weight: 600; }
.total-amount { display: flex; align-items: baseline; gap: 6px; color: #173e35; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 3.1vw, 40px); font-weight: 500; line-height: 1.1; overflow-wrap: anywhere; }
.total-amount span:first-child { min-width: 0; overflow-wrap: anywhere; }
.total-amount span:last-child { flex-shrink: 0; }
.total-currency { font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.total-sub { margin: 6px 0 0; color: #8ca497; font-size: 10px; }
.total-placeholder { align-self: center; margin: 0; color: #99aca0; font-size: 15px; }
.overview-note { margin: 24px 0 0; color: #81988b; font-size: 11px; line-height: 1.7; }
.overview-side { display: flex; flex-direction: column; padding: 29px 28px 23px; background: #e1eee2; border-left: 1px solid #d4e5d6; }
.side-topline { display: flex; justify-content: space-between; align-items: center; color: #86a294; font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.side-topline span:last-child { color: #6b9880; font-size: 18px; }
.overview-side h3 { margin: 30px 0 7px; font-family: Georgia, "Songti SC", "SimSun", serif; font-size: 18px; font-weight: 600; }
.side-caption { margin: 0; color: #82a092; font-size: 11px; line-height: 1.65; }
.stale-list { display: grid; gap: 10px; margin: 19px 0; }
.stale-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: #5f7c6d; font-size: 11px; }
.stale-item span { min-width: 0; overflow-wrap: anywhere; }
.stale-item strong { max-width: 65%; color: #385e4e; font-family: Georgia, "Times New Roman", serif; font-size: 16px; text-align: right; overflow-wrap: anywhere; }
.side-empty { margin: 0; color: #a0b6a7; font-size: 12px; }
.side-bottom { display: flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 16px; border-top: 1px solid #cfe2d2; color: #87a396; font-size: 10px; line-height: 1.55; }
.side-symbol { color: #69a283; font-size: 21px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 254, 250, .65); }
.metric { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 11px; padding: 20px 25px 18px; }
.metric + .metric { border-left: 1px solid #e7ebe5; }
.metric-index { color: #b2beb5; font-size: 9px; letter-spacing: .08em; }
.metric-label { grid-column: 1; color: #70847a; font-size: 12px; }
.metric strong { grid-column: 2; grid-row: 2 / 4; align-self: center; color: #23473d; font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.metric small { color: #a9b7ad; font-size: 8px; font-weight: 700; letter-spacing: .09em; }
.sites-section { padding-top: 79px; }
.sites-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.sites-heading h2 { margin: 15px 0 8px; font-family: Georgia, "Songti SC", "SimSun", serif; font-size: 29px; font-weight: 600; letter-spacing: .035em; }
.sites-heading h2 span { display: inline-flex; width: 26px; height: 26px; justify-content: center; align-items: center; vertical-align: middle; margin-left: 5px; border-radius: 50%; background: #e5ece4; color: #698679; font-family: var(--font); font-size: 11px; letter-spacing: 0; }
.sites-heading > div > p:last-child { margin: 0; color: #8b9990; font-size: 12px; }
.sites-actions { padding-bottom: 2px; gap: 20px; }
.auto-refresh, .enable-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.auto-refresh > span:first-child, .enable-row > span:first-child { display: grid; gap: 4px; }
.auto-refresh strong, .enable-row strong { font-size: 12px; font-weight: 650; }
.auto-refresh small, .enable-row small { color: #9aa9a0; font-size: 10px; }
.switch { position: relative; display: inline-flex; flex: 0 0 auto; width: 34px; height: 20px; }
.switch input { position: absolute; width: 100%; height: 100%; z-index: 1; margin: 0; opacity: 0; cursor: pointer; }
.switch input:disabled { cursor: not-allowed; }
.switch-track { width: 100%; height: 100%; border-radius: 99px; background: #cbd6cd; transition: background .2s; }
.switch-track::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; content: ""; transition: transform .2s; box-shadow: 0 1px 2px #0002; }
.switch input:checked + .switch-track { background: #348977; }
.switch input:checked + .switch-track::after { transform: translateX(14px); }
.switch input:focus-visible + .switch-track { outline: 3px solid #8ec9b3; outline-offset: 2px; }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 34px; border-bottom: 1px solid #dfe6de; }
.filters { display: flex; gap: 27px; }
.filter { position: relative; padding: 0 0 17px; border: 0; background: transparent; color: #92a097; font-size: 12px; font-weight: 600; }
.filter.active { color: #225e50; }
.filter.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #247562; content: ""; }
.search-box { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 8px 10px; border: 1px solid #e2e8e0; border-radius: 7px; background: #fcfdf9; color: #8ca096; }
.search-box:focus-within { border-color: #86b5a1; }
.search-box svg { width: 15px; height: 15px; flex: 0 0 auto; }
.search-box input { width: 150px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.search-box input::placeholder { color: #a7b3ab; }
.search-hint { padding: 2px 5px; border: 1px solid #e8ede6; border-radius: 4px; color: #b8c1ba; font-size: 9px; white-space: nowrap; }
.site-list { display: grid; gap: 10px; padding-top: 14px; }
.site-card { display: grid; grid-template-columns: minmax(205px, 1.3fr) minmax(145px, 1fr) minmax(145px, .9fr) auto; align-items: center; gap: 24px; min-height: 112px; padding: 20px 22px; border: 1px solid #e2e8e0; border-radius: 10px; background: var(--card); transition: border-color .18s, box-shadow .18s; }
.site-card:hover { border-color: #c5d9c9; box-shadow: 0 6px 22px #244c3910; }
.site-card.is-disabled { background: #fafbf7; }
.site-identity { display: flex; min-width: 0; align-items: flex-start; gap: 13px; }
.site-avatar { display: flex; flex: 0 0 auto; width: 42px; height: 42px; justify-content: center; align-items: center; border: 1px solid #dceae0; border-radius: 10px; background: #eff6ef; color: #4e8b70; font-family: Georgia, "Songti SC", serif; font-size: 17px; font-weight: 700; }
.site-details { min-width: 0; }
.site-name { margin: 0 0 5px; color: #234138; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.site-address { overflow: hidden; max-width: 255px; color: #9aa99e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.site-display-name { overflow: hidden; max-width: 255px; margin-top: 5px; color: #90a298; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.site-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; }
.site-id { margin-right: 3px; color: #a6b3aa; font-size: 10px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 4px; background: #e8f4ea; color: #408566; font-size: 10px; font-weight: 650; line-height: 1; }
.badge::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.badge.warning { background: #fbf0dd; color: #aa742c; }
.badge.error { background: #f9eae6; color: #b66c59; }
.badge.muted { background: #edf0ec; color: #92a198; }
.site-column-label { margin-bottom: 8px; color: #a1b0a5; font-size: 9px; font-weight: 700; letter-spacing: .09em; }
.site-amount { color: #24483e; font-family: Georgia, "Times New Roman", serif; font-size: 24px; line-height: 1.15; overflow-wrap: anywhere; }
.site-amount small { margin-left: 5px; color: #7d9588; font-family: var(--font); font-size: 10px; font-weight: 700; }
.site-amount.is-empty { color: #b0beb3; }
.site-usage { margin-top: 6px; color: #96a79a; font-size: 10px; overflow-wrap: anywhere; }
.activity-time { color: #5f756a; font-size: 11px; line-height: 1.45; }
.activity-error { max-width: 200px; margin-top: 5px; color: #b16c56; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.reconnect-link { margin: 7px 0 0; padding: 0; border: 0; background: transparent; color: #176b5e; font-size: 11px; font-weight: 700; }
.reconnect-link:hover:not(:disabled) { text-decoration: underline; }
.site-actions { display: grid; gap: 12px; justify-items: end; }
.site-controls { display: flex; gap: 5px; }
.icon-button { display: inline-flex; width: 34px; height: 34px; justify-content: center; align-items: center; padding: 0; border: 1px solid #e4ebe3; border-radius: 7px; background: #fffefa; color: #748d80; }
.icon-button:hover:not(:disabled) { border-color: #bad3c1; background: #eff6ef; color: #26725f; }
.icon-button.danger:hover:not(:disabled) { border-color: #e9c9bd; background: #fcf1ed; color: #ad6c58; }
.icon-button svg { width: 16px; height: 16px; }
.site-enable { display: flex; align-items: center; gap: 7px; color: #99aaa0; font-size: 10px; cursor: pointer; }
.site-enable .switch { width: 30px; height: 18px; }
.site-enable .switch-track::after { width: 12px; height: 12px; }
.site-enable .switch input:checked + .switch-track::after { transform: translateX(12px); }
.empty-state { min-height: 318px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 14px; padding: 34px 20px; border: 1px dashed #d5e2d5; border-radius: 11px; background: #fbfcf7; text-align: center; }
.empty-illustration { position: relative; width: 77px; height: 77px; margin-bottom: 23px; }
.empty-orbit { position: absolute; inset: 9px; border: 1px solid #d8e9da; border-radius: 50%; }
.orbit-one { transform: scaleX(.72) rotate(38deg); }
.orbit-two { transform: scaleX(.72) rotate(-38deg); }
.empty-core { position: absolute; inset: 19px; display: grid; place-items: center; border-radius: 50%; background: #e8f3e9; color: #488e72; font-size: 24px; font-weight: 300; }
.empty-state h3 { margin: 9px 0 8px; font-family: Georgia, "Songti SC", "SimSun", serif; font-size: 20px; font-weight: 600; }
.empty-state > p:not(.overline) { margin: 0 0 19px; color: #92a197; font-size: 12px; line-height: 1.8; }
.empty-state .button { min-height: 40px; }
.plus-icon { font-size: 20px; font-weight: 400; line-height: 1; }
.footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 86px; padding: 23px 0 28px; border-top: 1px solid #dce4db; color: #9baaa0; font-size: 10px; letter-spacing: .05em; }
.footer strong { color: #71877a; }
.footer-divider { margin: 0 7px; color: #c8d3c9; }
.footer-dot { margin: 0 4px; color: #8ab398; font-size: 7px; }

dialog { width: min(660px, calc(100% - 32px)); max-height: min(850px, calc(100dvh - 32px)); padding: 0; border: 1px solid #dce7dd; border-radius: 14px; background: #fffefa; color: var(--ink); box-shadow: 0 25px 90px #102c2280; }
dialog::backdrop { background: rgba(24, 43, 36, .55); }
dialog form { display: flex; flex-direction: column; max-height: min(850px, calc(100dvh - 32px)); }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 27px 30px 21px; border-bottom: 1px solid #e8ede6; }
.dialog-header h2 { margin: 8px 0 6px; font-family: Georgia, "Songti SC", "SimSun", serif; font-size: 24px; font-weight: 600; }
.dialog-header p:last-child { margin: 0; color: #92a198; font-size: 11px; line-height: 1.6; }
.dialog-close { flex: 0 0 auto; }
.dialog-body { display: grid; gap: 17px; min-height: 0; overflow-y: auto; padding: 22px 30px 24px; }
.form-settings, .field-group { display: grid; gap: 17px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field, .field-row { min-width: 0; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { color: #3e5a4e; font-size: 12px; font-weight: 700; }
.field label span { color: #b88759; }
.field input, .field select { width: 100%; height: 40px; padding: 0 11px; border: 1px solid #dbe5dc; border-radius: 7px; outline: none; background: #fff; color: #294a3e; font-size: 12px; }
.field input:focus, .field select:focus { border-color: #6eaa90; box-shadow: 0 0 0 3px #e2f1e7; }
.field input::placeholder { color: #b5c1b8; }
.field small { color: #99a99e; font-size: 10px; line-height: 1.55; }
.field input:read-only { background: #f3f6f1; color: #7b8f82; }
.field select:disabled, .field input:disabled { color: #8b9c91; background: #f3f6f1; }
.account-note { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid #dceadf; border-radius: 8px; background: #f4f9f3; }
.account-note > div { display: grid; gap: 5px; }
.account-note strong { font-size: 12px; }
.account-note small, .inline-note { color: #829b8a; font-size: 10px; line-height: 1.6; }
.account-note .button { min-height: 36px; }
.inline-note { padding: 10px 12px; border-radius: 6px; background: #f2f7ef; }
.totp-panel { display: grid; gap: 12px; padding: 17px; border: 1px solid #cce1d0; border-radius: 9px; background: #f1f8f0; }
.totp-panel h3 { margin: 0; font-size: 16px; }
.totp-panel > p:not(.overline) { margin: 0; color: #799184; font-size: 11px; line-height: 1.6; }
.enable-row { justify-content: space-between; padding: 14px; border: 1px solid #e4ece3; border-radius: 8px; background: #fafcf8; }
.security-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 7px; background: #eef6ed; color: #708f7d; }
.security-note > span { color: #60a180; font-size: 16px; line-height: 1; }
.security-note p { margin: 0; font-size: 10px; line-height: 1.7; }
.form-error { margin: 0; padding: 10px 12px; border-radius: 6px; background: #fbedeb; color: #a45445; font-size: 12px; line-height: 1.5; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 30px; border-top: 1px solid #e8ede6; background: #fffefa; }
.dialog-footer .button { min-width: 92px; }
.toast { position: fixed; z-index: 10; right: 24px; bottom: 24px; max-width: min(390px, calc(100% - 48px)); padding: 13px 17px; border-radius: 8px; background: #1e4c40; color: white; font-size: 12px; line-height: 1.5; box-shadow: 0 10px 30px #18362933; overflow-wrap: anywhere; }
.toast.is-error { background: #854c3c; }
.is-spinning { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 1050px) {
  .app-shell { width: calc(100% - 64px); }
  .overview { grid-template-columns: minmax(0, 1fr) 260px; }
  .site-card { grid-template-columns: minmax(170px, 1.3fr) minmax(120px, 1fr) minmax(125px, .9fr) auto; gap: 14px; padding: 18px; }
  .site-address { max-width: 195px; }
}
@media (max-width: 760px) {
  .app-shell { width: calc(100% - 36px); }
  .topbar { height: 76px; }
  .brand-copy strong { font-size: 14px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-mark span { left: 6px; }
  .top-actions { gap: 5px; }
  .top-actions .button { min-width: 39px; min-height: 39px; padding: 0 10px; }
  .top-actions .button-quiet span, .top-actions .button-outline span { display: none; }
  .top-actions .button-primary { padding: 0 12px; }
  .intro { min-height: auto; padding: 45px 0 32px; }
  .intro-aside { display: none; }
  h1 { margin-top: 16px; font-size: 37px; }
  .intro-copy { font-size: 12px; }
  .overview { grid-template-columns: 1fr; }
  .overview-main { min-height: 0; padding: 24px; }
  .overview-heading { margin-top: 27px; }
  .total-list { gap: 18px 25px; }
  .total-amount { font-size: 31px; }
  .overview-side { padding: 21px 24px; border-top: 1px solid #d4e5d6; border-left: 0; }
  .overview-side h3 { margin-top: 14px; }
  .stale-list { margin: 14px 0; }
  .side-bottom { padding-top: 12px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { padding: 16px 18px; }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid #e7ebe5; }
  .sites-section { padding-top: 56px; }
  .sites-heading { align-items: start; flex-direction: column; }
  .sites-heading h2 { font-size: 26px; }
  .sites-actions { width: 100%; justify-content: space-between; }
  .list-toolbar { margin-top: 26px; }
  .filters { gap: 20px; }
  .search-hint { display: none; }
  .search-box input { width: 110px; }
  .site-card { grid-template-columns: 1fr 1fr; align-items: start; gap: 19px 15px; padding: 18px; }
  .site-identity { grid-column: 1 / -1; }
  .site-address { max-width: calc(100vw - 145px); }
  .site-figure { grid-column: 1; }
  .site-activity { grid-column: 2; }
  .site-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid #edf1eb; }
  .site-controls { order: 2; }
  .footer { margin-top: 60px; }
  .footer > span:last-child { font-size: 8px; }
}
@media (max-width: 400px) {
  .brand-copy small { letter-spacing: .08em; }
  .top-actions .button-primary { padding: 0 9px; }
  .top-actions .button-primary span { font-size: 12px; }
  .filters { gap: 13px; }
  .search-box input { width: 88px; }
  .field-row { grid-template-columns: 1fr; }
  .account-note { align-items: flex-start; flex-direction: column; }
  .dialog-header, .dialog-body { padding-right: 20px; padding-left: 20px; }
  .dialog-footer { padding-right: 20px; padding-left: 20px; }
}
@media (max-width: 375px) {
  .top-actions .button-primary span { display: none; }
  .top-actions .button-primary { width: 39px; }
}
.browser-guide { line-height: 1.7; }
.browser-guide ol { padding-left: 22px; }
.browser-guide li { margin-bottom: 8px; }
.extension-path { display: block; overflow-wrap: anywhere; margin: 14px 0; padding: 12px; background: #f1f4ee; border-radius: 8px; }
#browser-pair-code { display: block; width: 100%; margin-top: 14px; padding: 10px; border: 1px solid #cad5c5; border-radius: 8px; }
#browser-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }

/* A shared reading scale keeps account data and forms comfortable at normal zoom. */
.brand-copy strong { font-size: 20px; }
.brand-copy small, .eyebrow, .overline, .section-kicker, .side-topline,
.metric-index, .metric small { font-size: 11px; color: #61796c; }
.intro { min-height: 190px; padding: 32px 0; }
.intro-copy { font-size: 17px; color: var(--muted); }
.local-seal { font-size: 16px; }
.intro-aside p { font-size: 14px; color: var(--muted); letter-spacing: 0; }
.button { min-height: 48px; padding: 9px 18px; font-size: 16px; line-height: 1.4; }
.button svg { width: 20px; height: 20px; flex-shrink: 0; }
.overview { grid-template-columns: minmax(0, 1fr) 330px; }
.overview-heading { margin-top: 24px; align-items: center; flex-wrap: wrap; }
.overview-heading h2 { font-size: 26px; }
.overview-side h3 { margin-top: 22px; font-size: 23px; }
.total-amount { font-size: clamp(40px, 4vw, 52px); line-height: 1.2; font-variant-numeric: tabular-nums; }
.total-name, .total-currency { font-size: 16px; color: #456b58; }
.total-sub, .overview-note, .status-key, .side-caption, .side-empty,
.side-bottom, .stale-item { font-size: 14px; color: #526d5e; }
.stale-item strong { font-size: 24px; }
.total-placeholder { font-size: 17px; color: var(--muted); }
.metric { gap: 7px 12px; padding: 20px 24px; }
.metric-label { font-size: 16px; color: #4c6558; }
.metric strong { font-size: 36px; font-variant-numeric: tabular-nums; }
.sites-section { padding-top: 48px; }
.sites-heading h2 { font-size: 32px; }
.sites-heading h2 span { width: 32px; height: 32px; font-size: 15px; }
.sites-heading > div > p:last-child { font-size: 16px; color: var(--muted); }
.auto-refresh strong, .enable-row strong, .field label, .account-note strong { font-size: 16px; }
.auto-refresh small, .enable-row small { font-size: 14px; color: var(--muted); }
.filter { min-height: 48px; padding-bottom: 14px; font-size: 16px; color: #596e62; }
.filter.active { font-weight: 750; }
.search-box { min-height: 46px; padding: 9px 13px; }
.search-box input { width: 200px; font-size: 16px; }
.search-box input::placeholder, .field input::placeholder { color: #718478; }
.search-hint { display: none; }
.site-list { gap: 14px; padding-top: 18px; }
.site-card { grid-template-columns: minmax(240px, 1.4fr) minmax(160px, 1fr) minmax(180px, 1fr) auto; gap: 22px; min-height: 150px; padding: 24px; border-color: #d4dfd3; border-radius: 13px; }
.site-card > * { min-width: 0; }
.site-avatar { width: 48px; height: 48px; font-size: 23px; }
.site-name { margin-bottom: 7px; font-size: 20px; line-height: 1.45; }
.site-address, .site-display-name { max-width: 100%; font-size: 14px; color: var(--muted); }
.site-id { font-size: 13px; color: var(--muted); }
.site-badges { gap: 7px; margin-top: 10px; }
.badge { padding: 5px 8px; font-size: 13px; line-height: 1.35; color: #256c4b; }
.badge.warning { color: #825112; }
.badge.error { color: #954433; }
.badge.muted { color: #5a6c60; }
.site-column-label { font-size: 12px; color: #5c7566; letter-spacing: .03em; }
.site-amount { font-size: 34px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.site-amount small { font-size: 15px; color: #526e5e; }
.site-usage, .activity-time, .site-enable { font-size: 14px; color: var(--muted); line-height: 1.65; }
.activity-error, .reconnect-link { max-width: 100%; font-size: 14px; line-height: 1.6; }
.site-controls { gap: 7px; }
.icon-button { width: 42px; height: 42px; color: #476c56; }
.icon-button svg { width: 19px; height: 19px; }
.site-enable { gap: 10px; }
.empty-state h3 { font-size: 26px; }
.empty-state > p:not(.overline) { font-size: 16px; color: var(--muted); }
.empty-state .button { min-height: 48px; }
.footer { margin-top: 56px; font-size: 13px; color: var(--muted); }
.footer > span:last-child { font-size: 11px; }
dialog { width: min(760px, calc(100% - 32px)); }
.dialog-header h2 { font-size: 28px; }
.dialog-header p:last-child, .field small, .account-note small, .inline-note,
.security-note p, .totp-panel > p:not(.overline) { font-size: 14px; color: var(--muted); line-height: 1.75; }
.field input, .field select { height: 48px; font-size: 16px; }
.dialog-body, .form-settings, .field-group { gap: 22px; }
.totp-panel h3 { font-size: 20px; }
.form-error, .toast, .connection-error { font-size: 16px; line-height: 1.65; }
.extension-path { font-size: 14px; line-height: 1.7; }
#browser-pair-code { min-height: 48px; font: 16px/1.5 Consolas, monospace; }
.dialog-footer .button { white-space: normal; }

@media (max-width: 1100px) and (min-width: 761px) {
  .site-card { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px 32px; }
  .site-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
  .site-figure { justify-self: start; }
  .overview { grid-template-columns: minmax(0, 1fr) 290px; }
  .metric { padding: 18px; }
}
@media (min-width: 761px) {
  h1 { font-size: clamp(36px, 3.4vw, 48px); }
  h1 br { display: none; }
}
@media (max-width: 760px) {
  .topbar { min-height: 88px; height: auto; padding: 16px 0; flex-wrap: wrap; gap: 14px; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy small { display: none; }
  .top-actions .button { min-height: 44px; min-width: 44px; }
  .top-actions .button-primary span { font-size: 15px; }
  .intro { min-height: auto; padding: 30px 0; }
  .intro-copy { font-size: 16px; }
  .overview { grid-template-columns: minmax(0, 1fr); }
  .overview-main, .overview-side { padding: 22px; }
  .total-amount { font-size: 42px; }
  .metric { padding: 18px 16px; }
  .sites-section { padding-top: 36px; }
  .list-toolbar { flex-wrap: wrap; gap: 8px; }
  .filters { width: 100%; gap: 26px; }
  .search-box { width: 100%; margin-bottom: 14px; }
  .search-box input { min-width: 0; width: 100%; }
  .site-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 14px; padding: 20px; }
  .site-identity, .site-actions { grid-column: 1 / -1; }
  .site-figure { grid-column: 1; }
  .site-activity { grid-column: 2; }
  .site-name { font-size: 19px; }
  .site-amount { font-size: 32px; }
  .site-actions { padding-top: 16px; flex-wrap: wrap; gap: 14px; }
  .footer { flex-wrap: wrap; gap: 8px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 375px) {
  .topbar { justify-content: center; }
  .top-actions { width: 100%; justify-content: space-between; }
  .top-actions .button-primary { width: auto; }
  .top-actions .button-primary span { display: inline; }
  .site-card { grid-template-columns: minmax(0, 1fr); }
  .site-figure, .site-activity { grid-column: 1; }
}

/* Compact dashboard: totals first, with supporting details kept quiet. */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(100%, 420px); padding: 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.login-card h1 { margin: 0 0 8px; font: 650 26px/1.4 var(--font); letter-spacing: 0; }
.login-card > p { font-size: 16px; color: var(--muted); }
.login-card form { display: grid; gap: 20px; margin-top: 24px; }
.login-card .field { margin: 0; }
:root { --paper: #f5f7f6; --card: #ffffff; }
.app-shell { width: min(1240px, calc(100% - 48px)); }
.topbar { height: 78px; min-height: 78px; }
.brand-copy strong { font-size: 20px; letter-spacing: 0; }
h1, h2, h3, .overview-heading h2, .sites-heading h2, .dialog-header h2,
.total-amount, .stale-item strong, .metric strong, .site-amount { font-family: var(--font); letter-spacing: 0; }
.total-amount, .stale-item strong, .metric strong, .site-amount { font-variant-numeric: lining-nums tabular-nums; font-weight: 600; }
.intro { min-height: 0; padding: 24px 0 16px; align-items: center; }
h1 { margin: 0; font-size: 26px; line-height: 1.4; font-weight: 650; }
.intro-aside { padding: 0; }
.intro-aside p { margin: 0; font-size: 14px; letter-spacing: 0; }
.overview { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
.overview-main { min-height: 0; padding: 22px 26px 18px; }
.overview-heading { margin: 0; }
.overview-heading h2 { margin: 0; font-size: 16px; font-weight: 500; color: var(--muted); }
.total-list { min-height: 0; align-items: start; margin-top: 16px; gap: 20px 48px; }
.total-item { min-width: 150px; }
.total-name { font-size: 14px; margin-bottom: 6px; }
.total-amount { font-size: 38px; line-height: 1.25; }
.total-currency { font-size: 15px; letter-spacing: 0; }
.total-sub { font-size: 13px; margin-top: 4px; }
.overview-note { margin-top: 16px; font-size: 13px; }
.overview-side { display: block; padding: 12px 26px; border: 0; border-top: 1px solid var(--line); background: #fafcfb; }
.overview-side summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.overview-side summary span { margin-left: 12px; font-size: 13px; }
.stale-list { max-width: 480px; margin: 12px 0 2px; }
.stale-item { font-size: 14px; }
.stale-item strong { font-size: 18px; }
.metrics { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; border: 0; border-radius: 0; background: none; }
.metric { display: flex; align-items: baseline; gap: 8px; padding: 0; border: 0 !important; }
.metric-label { font-size: 14px; }
.metric strong { font-size: 16px; }
.sites-section { padding-top: 28px; }
.sites-heading { align-items: center; gap: 16px; }
.sites-heading h2 { margin: 0; font-size: 22px; }
.sites-heading h2 span { width: auto; height: auto; margin-left: 8px; background: none; font-size: 16px; }
.sites-actions { gap: 18px; padding: 0; }
.auto-refresh small { font-size: 12px; }
.auto-refresh strong { font-size: 14px; }
.list-toolbar { margin-top: 18px; }
.site-list { gap: 0; padding-top: 12px; }
.site-card { grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 1fr) minmax(180px, 1fr) auto; min-height: 120px; gap: 24px; padding: 18px 22px; border-radius: 0; box-shadow: none; }
.site-card + .site-card { border-top: 0; }
.site-card:first-child { border-radius: 10px 10px 0 0; }
.site-card:last-child { border-radius: 0 0 10px 10px; }
.site-card:only-child { border-radius: 10px; }
.site-card:hover { box-shadow: none; background: #fcfefd; border-color: var(--line); }
.site-name { margin-bottom: 3px; font-size: 18px; }
.site-badges { margin-top: 6px; gap: 8px; }
.site-column-label { margin-bottom: 4px; font-size: 13px; letter-spacing: 0; }
.site-amount { font-size: 28px; }
.site-amount small { font-size: 14px; }
.site-actions { gap: 8px; }
.site-enable { font-size: 13px; }
.badge { font-size: 12px; padding: 3px 6px; }
.footer { justify-content: center; margin-top: 28px; padding: 18px 0; font-size: 13px; }
@media (max-width: 1050px) {
  .site-card { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 16px; }
  .site-activity { grid-column: 1 / 3; grid-row: 2; }
  .site-activity .site-column-label { display: none; }
  .site-actions { grid-column: 3; grid-row: 1 / 3; display: grid; }
}
@media (max-width: 760px) {
  .app-shell { width: calc(100% - 28px); }
  .topbar { min-height: 72px; height: auto; gap: 8px; padding: 12px 0; }
  .brand-copy strong { font-size: 18px; }
  .intro { padding: 20px 0 12px; }
  h1 { font-size: 23px; }
  .overview-main { padding: 18px; }
  .total-list { gap: 18px 26px; }
  .total-item { min-width: 120px; }
  .total-amount { font-size: 30px; }
  .overview-side { padding: 12px 18px; }
  .overview-side summary span { margin-left: 6px; }
  .metrics { gap: 8px 16px; }
  .sites-section { padding-top: 24px; }
  .sites-heading { align-items: stretch; }
  .list-toolbar { margin-top: 16px; }
  .site-card { grid-template-columns: minmax(0, 1fr) minmax(110px, .75fr); padding: 18px 14px; gap: 12px; }
  .site-identity { grid-column: 1; }
  .site-figure { grid-column: 2; grid-row: 1; text-align: right; }
  .site-amount { font-size: 25px; }
  .site-activity { grid-column: 1 / -1; grid-row: 2; }
  .site-actions { grid-column: 1 / -1; grid-row: 3; display: flex; padding-top: 10px; }
  .site-address { font-size: 13px; }
  .activity-time, .activity-error { font-size: 13px; }
}
