:root { --ink: #203c37; --muted: #7b8780; --paper: #f5f5ef; --line: #e0e5da; --green: #176c54; --serif: "Georgia", "Songti SC", "Noto Serif CJK SC", "SimSun", serif; --sans: "Aptos", "Microsoft YaHei", "PingFang SC", sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--sans); font-size: 14px; background: var(--paper); background-image: radial-gradient(#d7dfd5 0.5px, transparent 0.5px); background-size: 14px 14px; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #68a897; outline-offset: 3px; }
[hidden] { display: none !important; }
.sidebar { position: fixed; width: 230px; height: 100dvh; background: #f9faf5; border-right: 1px solid var(--line); padding: 34px 23px; display: flex; flex-direction: column; z-index: 2; }
.brand { display: flex; align-items: center; gap: 13px; font-weight: 650; font-size: 19px; letter-spacing: -.7px; }
.brand-mark { font-family: var(--serif); font-weight: 700; width: 40px; height: 40px; background: var(--green); color: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; letter-spacing: -3px; }
.brand-mark span { font-family: var(--sans); font-size: 17px; margin: -15px 2px 0 0; }
.brand small { display: block; font-size: 9px; letter-spacing: 1.8px; margin-top: 5px; color: var(--muted); }
.nav-label { color: #9aa298; font-size: 10px; letter-spacing: 1.7px; margin: 60px 14px 18px; }
.nav-item, .nav-secondary { padding: 15px 14px; display: flex; gap: 12px; align-items: center; border-radius: 9px; }
.nav-item { background: #e8eee3; font-weight: 600; }
.nav-secondary { color: #788477; margin-top: 8px; }
.nav-secondary:hover { color: var(--ink); background: #f0f2e9; }
.nav-icon { font-size: 19px; line-height: 1; }
.nav-count { margin-left: auto; font-size: 11px; padding: 3px 7px; background: white; border-radius: 5px; }
.sidebar-bottom { margin-top: auto; font-size: 12px; }
.local-dot, .connection::before { display: inline-block; background: #458567; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; }
.sidebar-bottom small { display: block; font-size: 10px; color: var(--muted); margin: 12px 0 24px; line-height: 1.8; }
.version { font-size: 8px; color: #9da498; letter-spacing: 1px; }
main { margin-left: 230px; padding: 0 46px; max-width: 1680px; }
.topbar { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: #738076; font-size: 12px; }
.slash { margin: 0 12px; color: #b1b8aa; }
.connection { font-size: 11px; display: inline-flex; align-items: center; color: #658272; }
.connection::before { content: ""; }
.connection.offline { color: #a34c36; }
.connection.offline::before { background: #a34c36; }
.hero { padding: 46px 0 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.eyebrow { font-size: 9px; font-weight: 600; letter-spacing: 2px; color: #899786; margin: 0 0 16px; }
h1 { font-family: var(--serif); font-size: clamp(30px, 3.3vw, 46px); font-weight: 500; letter-spacing: -1px; margin: 0; line-height: 1.3; }
h1 span { color: #89a981; }
.hero-description { color: #7b877b; margin: 16px 0 0; font-size: 12px; }
.button { border: 1px solid #d8e0d3; border-radius: 7px; padding: 10px 15px; background: white; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; line-height: 1.4; font-size: 12px; transition: background .15s; }
.button:hover:not(:disabled) { background: #eff4ea; }
.button.primary { background: var(--green); border-color: var(--green); color: white; }
.button.primary:hover:not(:disabled) { background: #10553f; }
.hero .button { padding: 13px 22px; }
.plus { font-size: 22px; line-height: 15px; font-weight: 300; margin-right: 4px; }
.button.small { font-size: 11px; padding: 6px 10px; }
.stats { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; }
.stat { background: #fffefa; border: 1px solid var(--line); border-radius: 11px; padding: 24px 25px 20px; min-height: 160px; position: relative; overflow: hidden; }
.stat-label { font-size: 11px; color: #738072; display: flex; justify-content: space-between; align-items: center; }
.stat-label span { font-size: 8px; letter-spacing: 1.3px; opacity: .8; }
.stat-value { font-family: var(--serif); font-size: 40px; margin: 15px 0 9px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat-value small { font-family: var(--sans); font-size: 11px; color: #8e9988; margin-left: 12px; }
.stat-foot { font-size: 10px; color: #879181; }
.balance-stat { background: #dce9cd; border-color: #d3e1c3; }
.balance-stat .stat-label, .balance-stat .stat-foot { color: #627954; }
.balance-decoration { position: absolute; right: 15px; bottom: -16px; font-size: 142px; color: #b5cca0; line-height: 1; pointer-events: none; transform: rotate(-9deg); opacity: .65; }
.balance-stat .stat-value, .balance-stat .stat-foot { position: relative; z-index: 1; }
.routing { margin-top: 35px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.section-heading > div { display: flex; align-items: center; gap: 11px; }
.section-index { font-family: var(--serif); font-size: 13px; color: #94a48c; }
h2 { font-size: 15px; font-weight: 600; margin: 0; }
.section-hint { color: #8b9786; font-size: 10px; }
.routing-grid { border: 1px solid var(--line); border-radius: 10px; background: #fffefa; display: grid; grid-template-columns: 1fr 1fr; }
.route-control, .poll-control { padding: 21px 24px 17px; }
.route-control { border-right: 1px solid var(--line); }
.route-control label, .poll-heading > label { font-size: 12px; font-weight: 600; }
select { display: block; width: 100%; border: 1px solid var(--line); color: #3e5140; background: #f8f9f3; padding: 10px 12px; border-radius: 6px; margin-top: 11px; font-size: 12px; }
.routing p { color: #8c9686; font-size: 10px; margin: 11px 0 0; line-height: 1.5; }
.poll-heading { display: flex; align-items: center; justify-content: space-between; }
.switch { position: relative; width: 32px; height: 19px; display: inline-block; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; z-index: 1; cursor: pointer; }
.switch-track { background: #dce2d5; border-radius: 20px; position: absolute; inset: 0; transition: background .2s; }
.switch-track::before { content: ""; position: absolute; height: 13px; width: 13px; left: 3px; top: 3px; border-radius: 50%; background: white; transition: transform .2s; }
.switch input:checked + .switch-track { background: var(--green); }
.switch input:checked + .switch-track::before { transform: translateX(13px); }
.switch input:focus-visible + .switch-track { outline: 3px solid #68a897; outline-offset: 3px; }
.interval-control { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 11px; color: #74806f; min-height: 34px; flex-wrap: wrap; }
.interval-control input { background: #f8f9f3; border: 1px solid var(--line); border-radius: 5px; width: 66px; padding: 7px 9px; color: var(--ink); }
.interval-control .button { margin-left: auto; }
.account-section { margin-top: 35px; background: #fffefa; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.account-heading { padding: 20px 23px; margin: 0; border-bottom: 1px solid var(--line); }
.count-label { color: #96a18f; font-size: 10px; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 15px 23px; gap: 16px; }
.search-field { display: flex; gap: 8px; align-items: center; color: #9aa592; border: 1px solid var(--line); padding: 7px 11px; border-radius: 6px; max-width: 270px; width: 100%; }
.search-field span { font-size: 22px; line-height: 20px; }
.search-field input { width: 100%; background: transparent; border: 0; outline-offset: 5px; font-size: 11px; color: var(--ink); min-width: 0; }
.search-field input::placeholder { color: #9ca594; }
.cache-note { color: #9aa391; font-size: 10px; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th { font-size: 10px; font-weight: 500; color: #899780; background: #f6f8f1; padding: 13px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { padding-left: 23px; }
th:last-child, td:last-child { padding-right: 23px; }
td { padding: 20px 14px; border-bottom: 1px solid #ecf0e6; font-size: 11px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.identity { display: flex; align-items: center; gap: 11px; min-width: 165px; }
.avatar { border-radius: 9px; background: #edf0e5; color: #73835e; font-family: var(--serif); font-size: 16px; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.email { font-weight: 550; overflow-wrap: anywhere; max-width: 240px; font-size: 11px; }
.account-id { color: #a1aa97; font-size: 9px; margin-top: 5px; }
.status-pill { border-radius: 4px; padding: 4px 7px; background: #e9f1e4; color: #64825a; font-size: 9px; white-space: nowrap; display: inline-block; }
.status-pill.disabled { background: #efeee7; color: #9a9785; }
.status-pill.warning { background: #f8eddb; color: #a27b43; }
.plan { display: block; color: #9ca590; font-size: 9px; margin-top: 7px; }
.money { font-family: var(--serif); font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.expiry { display: block; font-size: 9px; color: #9ca48f; margin-top: 6px; white-space: nowrap; }
.checked-time { color: #89957e; white-space: nowrap; }
.balance-error { color: #af6a45; font-size: 9px; margin-top: 5px; max-width: 170px; }
.row-actions { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.row-actions .button { font-size: 10px; padding: 7px 10px; }
.text-button { border: 0; padding: 4px 0; background: transparent; color: #7b8a73; font-size: 11px; }
.text-button:hover { color: var(--green); }
.selected-account { color: var(--green); font-size: 10px; }
.empty-state { padding: 35px 20px 43px; text-align: center; }
.empty-mark { display: inline-block; font-size: 31px; color: #8ba77a; background: #eef3e7; width: 53px; height: 53px; border-radius: 15px; line-height: 53px; }
.empty-state h3 { font-family: var(--serif); font-size: 18px; font-weight: 500; margin: 16px 0 10px; }
.empty-state p { color: #909c86; font-size: 11px; line-height: 1.8; }
.empty-state .button { margin-top: 8px; }
.no-results { text-align: center; padding: 36px; color: var(--muted); }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 27px 0 30px; font-size: 9px; color: #8f9b82; }
footer code { color: #6c8061; font-size: 10px; margin-left: 8px; }
footer > span:last-child { letter-spacing: 1.5px; font-size: 8px; }
dialog { width: min(570px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; padding: 27px 30px; color: var(--ink); box-shadow: 0 24px 100px #183a332b; background: #fffefa; }
dialog::backdrop { background: #203c3766; backdrop-filter: blur(4px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; }
.dialog-top .eyebrow { margin: 0; }
.icon-button { border: 0; background: #f1f3ec; color: #7a8872; border-radius: 50%; width: 28px; height: 28px; font-size: 22px; line-height: 20px; }
dialog h2 { font-family: var(--serif); font-size: 28px; font-weight: 500; margin-top: 17px; }
.dialog-description { color: #87927d; font-size: 11px; margin: 13px 0 25px; line-height: 1.8; }
.import-step { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 12px; }
.step-number { background: #e7efdc; width: 26px; height: 26px; border-radius: 50%; text-align: center; line-height: 26px; font-family: var(--serif); color: #628457; flex-shrink: 0; }
.import-step h3 { font-size: 13px; margin: 3px 0 8px; font-weight: 600; }
.import-step p { color: #8d9782; font-size: 10px; margin: 0; line-height: 1.6; }
.auth-link-box { border: 1px solid var(--line); background: #f5f7ee; border-radius: 8px; padding: 12px; }
textarea { width: 100%; border: 1px solid var(--line); background: #fafbf6; border-radius: 7px; padding: 11px 12px; color: var(--ink); resize: vertical; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
#auth-url { background: transparent; border: 0; padding: 0; font-family: "Consolas", monospace; font-size: 10px; color: #718263; min-height: 60px; }
.link-actions { display: flex; gap: 8px; margin-top: 10px; }
.import-note { color: #939c88; font-size: 10px; line-height: 1.8; margin: 9px 0 17px; }
.dialog-actions { border-top: 1px solid var(--line); padding-top: 17px; display: flex; align-items: center; justify-content: space-between; }
.inline-message { padding: 10px 12px; font-size: 11px; background: #f9eae2; color: #a1593c; border-radius: 6px; line-height: 1.7; margin-bottom: 15px; overflow-wrap: anywhere; }
.toast { position: fixed; bottom: 27px; left: calc(50% + 100px); transform: translateX(-50%); background: #203c37; color: white; padding: 13px 20px; border-radius: 9px; box-shadow: 0 5px 25px #203c3730; max-width: min(560px, calc(100vw - 32px)); font-size: 12px; z-index: 5; line-height: 1.7; }
.toast.error { background: #8e4e37; }
.topbar-actions { display: flex; gap: 18px; align-items: center; }
.login-page { display: grid; place-items: center; min-height: 100vh; background: radial-gradient(ellipse at 15% 15%, #dde9ca 0, transparent 60%), var(--bg, #f4f5eb); padding: 24px; }
.login-card { margin: 0; padding: 42px; width: min(100%, 490px); background: #fafbf6; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 70px #203c3710; }
.login-card h1 { font-size: 36px; }
.login-card form { display: grid; gap: 14px; margin-top: 30px; }
.login-card label { font-size: 13px; }
.login-card input { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); }
.login-note { margin-top: 24px; font-size: 11px; color: #7d8b73; line-height: 1.8; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.hero { animation: appear .4s ease both; }
.stats { animation: appear .4s .08s ease both; }
.routing { animation: appear .4s .14s ease both; }
.account-section { animation: appear .4s .2s ease both; }
@media (min-width: 1600px) { main { padding-left: 70px; padding-right: 70px; } }
@media (max-width: 1150px) { .sidebar { width: 196px; padding: 29px 16px; } main { margin-left: 196px; padding: 0 28px; } .brand { gap: 9px; font-size: 17px; } .stat { padding: 20px; } .route-control, .poll-control { padding: 20px; } .stat-label span { display: none; } .row-actions { flex-wrap: wrap; } }
@media (max-width: 850px) { .sidebar { width: 76px; padding: 25px 16px; align-items: center; } .brand > span:last-child, .nav-label, .nav-item, .nav-secondary, .sidebar-bottom { display: none; } main { margin-left: 76px; padding: 0 24px; } .hero { padding-top: 35px; } .section-hint { display: none; } .routing-grid { grid-template-columns: 1fr; } .route-control { border-right: 0; border-bottom: 1px solid var(--line); } .stats { gap: 11px; } .stat { padding: 18px 15px; min-height: 145px; } .stat-value { font-size: 33px; } .stat-value small { display: none; } table { min-width: 700px; } .toast { left: calc(50% + 38px); } }
@media (max-width: 600px) { .sidebar { position: relative; width: 100%; height: 64px; padding: 14px 20px; border-right: 0; border-bottom: 1px solid var(--line); align-items: flex-start; } .brand { font-size: 17px; } .brand > span:last-child { display: block; } .brand small { display: none; } .brand-mark { height: 34px; width: 34px; border-radius: 10px; } main { margin-left: 0; padding: 0 18px; } .topbar { height: 56px; font-size: 10px; } .connection { font-size: 9px; } .slash { margin: 0 5px; } .hero { padding: 28px 0 24px; align-items: flex-start; flex-direction: column; gap: 20px; } .eyebrow { font-size: 8px; letter-spacing: 1.6px; margin-bottom: 12px; } h1 { font-size: 33px; } .hero-description { font-size: 11px; line-height: 1.8; margin-top: 10px; } .hero .button { width: 100%; } .stats { grid-template-columns: 1fr 1fr; gap: 12px; } .balance-stat { grid-column: 1 / -1; min-height: 150px; } .balance-stat .stat-value { font-size: 40px; } .stat { min-height: 132px; } .stat-foot { font-size: 9px; } .routing, .account-section { margin-top: 26px; } .account-heading { padding: 16px; gap: 8px; } .account-heading .button { padding: 8px 10px; font-size: 10px; } .section-heading > div { gap: 8px; } h2 { font-size: 14px; } .list-toolbar { padding: 13px 16px; } .cache-note { display: none; } .search-field { max-width: none; } .route-control, .poll-control { padding: 18px; } footer { flex-direction: column; gap: 12px; line-height: 1.8; } footer code { display: block; margin-left: 0; } .toast { left: 50%; width: max-content; } dialog { padding: 21px; } dialog h2 { font-size: 25px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
