.success-payment-capture { display:inline-flex; white-space:nowrap; min-height:22px; align-items:center; justify-content:center; margin:0 2px; padding:1px 5px; color:var(--amber,#f0b429); background:transparent; border:0; border-radius:4px; box-shadow:none; font:inherit; text-decoration:none; vertical-align:middle; }
.success-payment-capture:hover { color:#1c1c1e; background:#f0b429; filter:none; text-decoration:none; transform:none; }
.success-payment-capture:disabled { color:#9aa0a6; background:transparent; cursor:progress; }:root { color-scheme: dark; --bg:#07100f; --panel:#0d1a18; --line:#1d3530; --text:#eaf8f3; --muted:#89aaa1; --lime:#72f5b1; --cyan:#68d9f5; --red:#ff6d73; }
* { box-sizing:border-box; }
html,body { overflow-x:hidden; }
body { margin:0; min-height:100vh; background:radial-gradient(circle at 20% -10%,#143c31 0,transparent 38%),var(--bg); color:var(--text); font:14px/1.5 Inter,"PingFang SC","Microsoft YaHei",sans-serif; }
header { padding:24px max(18px,3vw) 18px; display:flex; align-items:end; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); }
header > div:first-child { min-width:0; }
.eyebrow { color:var(--lime); letter-spacing:.18em; font-size:11px; margin:0 0 6px; }
h1 { font-size:clamp(26px,3vw,38px); line-height:1.08; margin:0; letter-spacing:-.035em; }
.subtitle { color:var(--muted); margin:10px 0 0; }
.header-controls { display:flex; min-width:0; align-items:flex-end; gap:10px; }
.settings-trigger { width:86px; height:58px; display:grid; place-content:center; gap:1px; flex:0 0 auto; color:var(--lime); }
.settings-trigger .settings-icon { font-size:22px; line-height:1; }
.settings-trigger > span:last-child { font-size:11px; }
.auth { display:grid; grid-template-columns:minmax(180px,1fr) auto; align-items:center; gap:8px; min-width:min(330px,100%); max-width:100%; }
.auth label { color:var(--muted); grid-column:1/-1; font-size:12px; }
input,select,textarea { width:100%; color:var(--text); background:#071310; border:1px solid var(--line); border-radius:8px; padding:10px 12px; outline:none; }
input:focus,select:focus,textarea:focus { border-color:var(--lime); box-shadow:0 0 0 3px #72f5b119; }
button { border:1px solid #66daa3; border-radius:8px; padding:9px 15px; background:var(--lime); color:#042016; cursor:pointer; font-weight:700; }
button:hover { filter:brightness(1.08); }
button:disabled { cursor:wait; filter:none; opacity:.55; }
button.secondary { background:transparent; color:var(--text); border-color:var(--line); }
button.danger { background:transparent; color:var(--red); border-color:#65363a; }
main { width:96vw; max-width:1800px; margin:16px auto 60px; }
.notice { padding:8px 12px; border:1px solid var(--line); background:#0b1916; border-radius:8px; color:var(--muted); margin-bottom:10px; }
.notice.ok { color:var(--lime); }.notice.error { color:var(--red); border-color:#65363a; }
.metrics { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }
.metrics article,.panel { background:linear-gradient(145deg,#10201d,#0a1513); border:1px solid var(--line); border-radius:12px; }
.metrics article { padding:9px 13px; border-radius:10px; }
.metrics span { display:block; color:var(--muted); font-size:11px; line-height:1.35; }
.metrics strong { display:block; font:700 22px/1.15 ui-monospace,SFMono-Regular,Consolas,monospace; margin-top:2px; }
.toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:8px 0; padding:8px 11px; border-radius:10px; }
.toolbar > div { display:flex; flex-wrap:wrap; gap:6px; }
.toolbar button { padding:6px 11px; font-size:12px; }
.toolbar code { color:var(--cyan); font-size:11px; }
.notification-actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; }
.toolbar .notification-button { display:inline-flex; align-items:center; gap:6px; color:var(--text); }
.notification-dot { width:7px; height:7px; flex:0 0 auto; border-radius:50%; background:#66718d; box-shadow:0 0 0 3px #66718d1f; }
.notification-button[data-enabled="true"] .notification-dot { background:var(--lime); box-shadow:0 0 0 3px #72f5b11f,0 0 10px #72f5b166; }
.tabs { display:flex; gap:6px; overflow:auto; padding:8px 0; }
.tab { color:var(--muted); background:transparent; border-color:transparent; white-space:nowrap; }
.tab.active { color:var(--lime); background:#12251f; border-color:var(--line); }
.tab-page { display:none; padding:18px; }.tab-page.active { display:block; }
.section-head { display:flex; justify-content:space-between; align-items:center; gap:15px; margin-bottom:14px; }
h2 { font-size:18px; margin:0; }.section-head span { color:var(--muted); font-size:12px; }
.section-head .stock-history-summary.error { color:var(--red); }
.stock-history-head { flex-wrap:wrap; }
.stock-history-head > h2 { flex:0 0 auto; }
.stock-history-filters { display:flex; flex:1 1 460px; min-width:0; align-items:center; gap:8px; }
.stock-history-filter { display:flex; flex:1 1 210px; min-width:0; align-items:center; gap:6px; color:var(--muted); font-size:11px; white-space:nowrap; }
.stock-history-filter select { width:100%; min-width:0; height:34px; padding:5px 28px 5px 9px; font-size:11px; }
.stock-history-store-filter { flex-grow:1.2; }
.stock-history-summary { flex:0 1 auto; max-width:100%; }
.section-tip { margin:3px 0 0; color:var(--muted); font-size:11px; }
.table-wrap { overflow:auto; max-height:58vh; }
table { width:100%; border-collapse:collapse; white-space:nowrap; }
th,td { text-align:left; padding:10px 11px; border-bottom:1px solid var(--line); }
th { position:sticky; top:0; background:#0d1a18; color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.06em; }
td.message { max-width:300px; overflow:hidden; text-overflow:ellipsis; }
.task-table { width:100%; min-width:0; table-layout:fixed; }
.task-table th,.task-table td { width:auto; min-width:0; }
.task-table th { padding:clamp(5px,.45vw,8px) clamp(3px,.4vw,8px); font-size:clamp(9px,.62vw,11px); line-height:1.15; }
.task-table td { padding:clamp(5px,.4vw,7px) clamp(3px,.4vw,8px); font-size:clamp(10px,.72vw,12px); line-height:1.32; white-space:normal; overflow-wrap:anywhere; }
.task-table td.apple-id { font-size:clamp(9px,.66vw,11px); }
.task-table .badge { padding:2px clamp(3px,.3vw,6px); font-size:clamp(9px,.58vw,10px); }
.task-table .task-select-column { min-width:30px; width:30px; text-align:center; }
.task-table td.task-select-cell { text-align:center; }
.task-table td.remark,.task-table td.email,.task-table td.message,.task-table td.apple-id { max-width:none; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; white-space:normal; }
.task-table td.stores,.task-table td.model { overflow:hidden; text-overflow:ellipsis; overflow-wrap:normal; white-space:nowrap; }
.task-table td.remark { min-width:80px; }
.task-table td.message { min-width:90px; }
.task-table td.apple-id { min-width:90px; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; }
.task-table th:nth-child(1),.task-table td:nth-child(1) { width:3%; }
.task-table th:nth-child(2),.task-table td:nth-child(2) { width:3%; }
.task-table th:nth-child(3),.task-table td:nth-child(3) { width:8%; }
.task-table th:nth-child(4),.task-table td:nth-child(4) { width:11%; }
.task-table th:nth-child(5),.task-table td:nth-child(5) { width:4%; }
.task-table th:nth-child(6),.task-table td:nth-child(6),.task-table th:nth-child(7),.task-table td:nth-child(7) { width:3.5%; }
.task-table th:nth-child(8),.task-table td:nth-child(8) { width:5%; }
.task-table th:nth-child(9),.task-table td:nth-child(9) { width:7%; }
.task-table th:nth-child(10),.task-table td:nth-child(10),.task-table th:nth-child(11),.task-table td:nth-child(11) { width:8%; }
.task-table th:nth-child(12),.task-table td:nth-child(12) { width:9%; }
.task-table th:nth-child(13),.task-table td:nth-child(13) { width:3.5%; }
.task-table th:nth-child(14),.task-table td:nth-child(14),.task-table th:nth-child(15),.task-table td:nth-child(15) { width:6%; }
.task-table th:nth-child(16),.task-table td:nth-child(16) { width:9%; }
.task-table tr.incomplete td { background:#2b241a44; }
.task-table tbody tr { cursor:default; }
.task-table tr.selected td { background:#153d356e; }
.task-table tr.selected.incomplete td { background:#30432f70; }
.task-table tr.context-row td { box-shadow:inset 0 1px #72f5b177,inset 0 -1px #72f5b177; }
body.task-drag-selecting,body.task-drag-selecting * { user-select:none!important; cursor:cell!important; }
#tab-tasks > .table-wrap { max-height:52vh; }
.task-log-panel { margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
.task-log-head { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:8px; }
.task-log-head h3 { margin:0; font-size:12px; }
.task-log-head > div:first-child > span { display:block; margin-top:2px; color:var(--muted); font-size:9px; }
.task-log-actions { display:flex; align-items:center; gap:8px; }
.task-log-actions button { padding:5px 9px; font-size:10px; }
.log-toggle { display:flex; align-items:center; gap:6px; color:var(--text); font-size:10px; cursor:pointer; user-select:none; }
.log-toggle input { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; opacity:0; pointer-events:none; }
.log-toggle-track { position:relative; width:34px; height:18px; flex:0 0 auto; border:1px solid #37534c; border-radius:999px; background:#14221f; transition:.18s ease; }
.log-toggle-track::after { content:''; position:absolute; top:2px; left:2px; width:12px; height:12px; border-radius:50%; background:#78968d; transition:.18s ease; }
.log-toggle input:checked + .log-toggle-track { border-color:#3aa977; background:#174c39; }
.log-toggle input:checked + .log-toggle-track::after { left:18px; background:var(--lime); }
.log-toggle input:focus-visible + .log-toggle-track { outline:2px solid var(--cyan); outline-offset:2px; }
.log-toggle input:disabled + .log-toggle-track { opacity:.55; }
.events.task-events { min-height:104px; max-height:230px; gap:0; padding:3px 7px; overflow:auto; border:1px solid #18322c; border-radius:8px; background:#06100e99; }
.task-events .event { grid-template-columns:122px 96px 58px minmax(0,1fr); gap:8px; padding:5px 3px; font-size:10px; line-height:1.35; }
.task-events .event time,.task-events .event .kind,.task-events .event .sequence { font:9px/1.35 ui-monospace,Consolas,monospace; }
.task-events .event .sequence { color:#73e8ff; font-weight:700; text-align:center; }
.task-events .event > span:last-child { min-width:0; overflow-wrap:anywhere; font-size:10px; font-weight:400; }
.event .event-remark { color:#9cf1c8; font-weight:700; }
.event-empty { display:grid; min-height:86px; place-items:center; color:var(--muted); font-size:11px; }
.event[data-level="error"] > span:last-child { color:#ff9ba0; }
.event[data-level="warn"] > span:last-child { color:#ffd27a; }
.stock-history-table { width:max-content; min-width:100%; table-layout:auto; }
.stock-history-table th,.stock-history-table td { width:auto; min-width:max-content; }
.stock-history-table td { padding:8px 10px; font-size:12px; }
.stock-history-table td.stock-history-model,.stock-history-table td.stock-history-store { max-width:360px; overflow:hidden; text-overflow:ellipsis; }
.stock-history-table td.stock-history-time,.stock-history-table td.stock-history-sku { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; }
.stock-history-table td.stock-history-source { text-align:center; }
.stock-history-table td.stock-history-empty { min-width:100%; padding:28px 12px; color:var(--muted); text-align:center; }
.success-table-wrap { width:100%; max-width:100%; overflow:auto; }
.success-section-title { display:flex; align-items:center; min-width:0; gap:12px; }
.success-record-actions { display:flex; align-items:center; gap:6px; }
.success-record-actions button { min-height:28px; padding:4px 10px; font-size:11px; white-space:nowrap; }
.success-table { width:max-content; max-width:none; min-width:100%; table-layout:auto; }
.success-table th,.success-table td { width:auto; height:32px; padding:3px 5px; overflow:hidden; font-size:clamp(9px,.57vw,12px); line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.success-table th { min-width:max-content; }
.success-table td { min-width:34px; max-width:220px; }
.success-table td.success-time,.success-table td.success-order,.success-table td.success-account,.success-table td.success-sku { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; }
.success-table td.success-copy,.success-table td.success-duration,.success-table td.success-sequence,.success-table td.success-quantity { text-align:center; font-variant-numeric:tabular-nums; }
.success-table td.success-copy { min-width:72px; max-width:82px; }
.success-table th.success-select-cell,.success-table td.success-select-cell { width:32px; min-width:32px; max-width:32px; padding-inline:4px; text-align:center; }
.success-table td.success-time { min-width:142px; max-width:172px; }
.success-table td.success-remark,.success-table td.success-account,.success-table td.success-email { min-width:84px; max-width:190px; }
.success-table td.success-store,.success-table td.success-model,.success-table td.success-message { min-width:96px; max-width:240px; }
.success-table tr.selected td { background:#153d356e; }
.success-table tr.context-row td { box-shadow:inset 0 1px #68d9f580,inset 0 -1px #68d9f580; }
.success-table td.success-empty { height:64px; padding:18px 10px; color:var(--muted); text-align:center; white-space:normal; }
.success-table .badge { max-width:100%; padding:1px 4px; overflow:hidden; font-size:inherit; text-overflow:ellipsis; vertical-align:middle; white-space:nowrap; }
.success-copy-button { max-width:100%; min-height:24px; padding:2px 5px; overflow:hidden; font-size:inherit; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
.success-duration-trigger { min-height:0; padding:1px 3px; color:#ffd76a; background:transparent; border:0; border-radius:4px; box-shadow:none; font:700 inherit; font-variant-numeric:tabular-nums; cursor:pointer; }
.success-duration-trigger:hover { color:#fff0a8; background:transparent; filter:none; text-decoration:underline; text-underline-offset:2px; }
.success-duration-trigger:focus-visible { outline:2px solid var(--cyan); outline-offset:2px; }
.success-select { width:14px; height:14px; margin:0; padding:0; vertical-align:middle; accent-color:var(--lime); }
body.success-drag-selecting,body.success-drag-selecting * { user-select:none!important; cursor:cell!important; }
.success-order-link { color:var(--cyan); text-decoration:none; }
.success-order-link:hover { text-decoration:underline; text-underline-offset:2px; }
.success-table td.success-payment-qr,.success-table td.success-payment-link { min-width:78px; max-width:132px; text-align:center; }
.success-payment-qr-button { min-width:40px; height:28px; min-height:28px; margin:0; padding:2px 7px; overflow:hidden; color:#061722; background:#8eeaff; border:1px solid #6fd9f5; border-radius:5px; box-shadow:none; font-size:10px; font-weight:700; vertical-align:middle; }
.success-payment-qr-button:hover { filter:brightness(1.06); transform:none; }
.success-payment-qr-button img { display:block; width:22px; height:22px; object-fit:contain; image-rendering:auto; }
.success-payment-open-inline,.success-payment-copy-link { display:inline-flex; min-height:22px; align-items:center; justify-content:center; margin:0 2px; padding:1px 4px; color:var(--cyan); background:transparent; border:0; border-radius:4px; box-shadow:none; font:inherit; text-decoration:none; vertical-align:middle; }
.success-payment-open-inline:hover,.success-payment-copy-link:hover { color:#fff; background:#52b7d522; filter:none; text-decoration:underline; text-underline-offset:2px; transform:none; }
.success-payment-dialog { width:min(520px,calc(100vw - 28px)); }
.success-payment-card { text-align:center; }
.success-payment-card .scan-head { text-align:left; }
.success-payment-meta { margin:-6px 0 12px; color:var(--muted); font-size:12px; text-align:left; }
.success-payment-qr-frame { display:grid; width:min(320px,72vw); min-height:min(320px,72vw); place-items:center; margin:0 auto 14px; padding:14px; color:var(--muted); background:#fff; border:1px solid #74d7ee; border-radius:14px; box-shadow:0 18px 48px #0006; }
.success-payment-qr-frame img { display:block; width:100%; height:auto; max-height:292px; object-fit:contain; }
.success-payment-qr-frame p { max-width:220px; margin:0; color:#40516a; font-size:12px; }
.success-payment-link-label { margin:0 0 5px; color:var(--muted); font-size:11px; text-align:left; }
.success-payment-link-text { display:block; max-height:90px; padding:8px 10px; overflow:auto; color:#dff8ff; background:#07131e; border:1px solid var(--line); border-radius:7px; font:11px ui-monospace,SFMono-Regular,Consolas,monospace; overflow-wrap:anywhere; text-align:left; white-space:pre-wrap; }
.success-payment-open { display:inline-flex; min-height:32px; align-items:center; justify-content:center; padding:5px 12px; color:#05141f; background:var(--cyan); border:1px solid var(--cyan); border-radius:8px; font-size:12px; font-weight:700; text-decoration:none; }
.success-payment-open:hover { filter:brightness(1.08); }
.row-edit-button { max-width:none; margin:-4px -5px; padding:4px 5px; overflow:visible; color:var(--text); background:transparent; border:0; font:inherit; text-align:left; text-overflow:clip; white-space:normal; overflow-wrap:anywhere; }
.row-edit-button:hover { color:var(--lime); filter:none; text-decoration:underline; }
.row-edit-button .needs-info { margin-left:7px; color:#ffd27a; font-size:10px; }
.task-select { width:14px; height:14px; margin:0; padding:0; vertical-align:middle; accent-color:var(--lime); }
.task-context-menu { position:fixed; z-index:1200; display:grid; min-width:210px; padding:6px; border:1px solid #68d9f56b; border-radius:10px; background:#071a1bf2; box-shadow:0 18px 52px #000b; backdrop-filter:blur(18px); }
.task-context-menu[hidden] { display:none; }
.task-context-menu button { min-height:34px; padding:7px 10px; color:var(--text); background:transparent; border:0; border-radius:7px; font-weight:600; text-align:left; white-space:nowrap; }
.task-context-menu button:hover,.task-context-menu button:focus-visible { color:#fff; background:#68d9f526; filter:none; outline:none; }
.task-context-menu button.danger { color:#ff9ba0; border:0; }
.task-context-menu button:disabled { color:#68857d; background:transparent; cursor:not-allowed; opacity:.62; }
.task-menu-separator { display:block; height:1px; margin:4px 3px; background:#24453e; }
.sort-button { display:flex; width:100%; align-items:center; gap:3px; margin:-4px; padding:4px; border:0; color:inherit; background:transparent; font:inherit; line-height:inherit; letter-spacing:inherit; text-transform:inherit; white-space:normal; }
.sort-button:hover { color:var(--text); filter:none; }
.sort-indicator::before { content:'↕'; opacity:.32; }
th[aria-sort="ascending"] .sort-indicator::before { content:'↑'; color:var(--lime); opacity:1; }
th[aria-sort="descending"] .sort-indicator::before { content:'↓'; color:var(--lime); opacity:1; }
.badge { display:inline-flex; border-radius:999px; border:1px solid var(--line); padding:3px 8px; font-size:11px; color:var(--cyan); }
.badge.good { color:var(--lime); border-color:#285f47; }.badge.bad { color:var(--red); border-color:#65363a; }
.mini { font-size:11px; padding:5px 8px; }
label { color:var(--muted); }
textarea { min-height:260px; resize:vertical; font:12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace; }
textarea.settings { min-height:420px; margin-bottom:12px; }
.events { display:grid; gap:7px; max-height:58vh; overflow:auto; }
.event { display:grid; grid-template-columns:150px 90px 64px 1fr; gap:12px; border-bottom:1px solid var(--line); padding:8px 4px; }
.event time,.event .kind,.event .sequence { color:var(--muted); font:11px ui-monospace,Consolas,monospace; }
.event .sequence { color:var(--cyan); font-weight:700; text-align:center; }
.scan-dialog { width:min(440px,calc(100vw - 28px)); padding:0; color:var(--text); background:#0b1916; border:1px solid #285046; border-radius:16px; box-shadow:0 24px 90px #000b; }
.scan-dialog::backdrop { background:#020807d9; backdrop-filter:blur(5px); }
.scan-card { padding:22px; }
.scan-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:18px; }
.scan-head .eyebrow { margin-bottom:4px; }
.icon-button { width:38px; height:38px; padding:0; font-size:24px; line-height:1; }
.qr-frame { display:grid; place-items:center; width:min(300px,100%); aspect-ratio:1; margin:0 auto; padding:14px; overflow:hidden; color:#47645c; background:#f6fffb; border-radius:13px; }
.qr-frame img { display:block; width:100%; height:100%; object-fit:contain; }
.qr-frame img[hidden] { display:none; }
.qr-loading { text-align:center; font-weight:700; }
.scan-status { margin:16px 0 4px; color:var(--lime); text-align:center; font-weight:700; }
.scan-status.error { color:var(--red); }
.scan-hint { margin:0 auto; max-width:330px; color:var(--muted); text-align:center; font-size:12px; }
.scan-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:18px; }
.scan-footer > span { color:var(--cyan); font:12px ui-monospace,SFMono-Regular,Consolas,monospace; }
.scan-footer > div { display:flex; gap:8px; }
body:has(.scan-dialog[open]) { overflow:hidden; }
.settings-dialog { width:min(780px,calc(100vw - 28px)); max-height:calc(100vh - 28px); padding:0; color:var(--text); background:#0b1916; border:1px solid #285046; border-radius:16px; box-shadow:0 24px 90px #000b; }
.settings-dialog::backdrop { background:#020807d9; backdrop-filter:blur(5px); }
.settings-card { padding:22px; }
.settings-hint { margin:-6px 0 12px; color:var(--muted); font-size:12px; }
.settings-dialog textarea.settings { min-height:min(55vh,520px); margin:0; }
.settings-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:14px; }
body:has(.settings-dialog[open]) { overflow:hidden; }
.notification-dialog { width:min(720px,calc(100vw - 28px)); overflow:auto; }
.notification-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.notification-form-grid > label { display:grid; min-width:0; gap:5px; color:var(--muted); font-size:11px; }
.notification-form-grid > label.wide { grid-column:1/-1; }
.notification-form-grid .notification-switch { display:flex; min-height:38px; align-items:center; gap:8px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:#07131088; color:var(--text); font-size:12px; }
.notification-form-grid .notification-switch[hidden] { display:none!important; }
.notification-switch input[type="checkbox"] { width:15px; height:15px; margin:0; padding:0; flex:0 0 auto; accent-color:var(--lime); }
.notification-dialog .form-status { margin:12px 0 0; }
.notification-dialog .form-status.ok { color:var(--lime); }
.notification-dialog .form-status.error { color:var(--red); }
.row-dialog { --text:#edfaff; --muted:#8fb4c3; --cyan:#39e7ff; --lime:#39e7ff; --line:rgba(57,231,255,.24); width:min(1240px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); padding:0; color:var(--text); background:rgba(6,25,36,.97); border:1px solid rgba(57,231,255,.38); border-radius:14px; box-shadow:0 24px 80px rgba(0,0,0,.62); backdrop-filter:blur(22px); }
.row-dialog { overflow:auto; }
.row-dialog::backdrop { background:rgba(0,7,13,.66); backdrop-filter:blur(4px); }
.row-card { padding:18px; }
.row-dialog .scan-head { margin-bottom:14px; }
.row-dialog .scan-head h2 { color:var(--cyan); font-size:19px; }
.row-dialog .eyebrow { color:var(--cyan); }
.task-batch-controls { display:flex; align-items:center; gap:10px; margin:-2px 0 10px; padding:9px 11px; border:1px solid rgba(57,231,255,.2); border-radius:9px; background:rgba(3,20,29,.55); }
.task-batch-controls[hidden] { display:none; }
.task-batch-controls > div { min-width:0; margin-right:auto; }
.task-batch-controls strong { display:block; color:#dffaff; font-size:13px; }
.task-batch-controls span { display:block; color:var(--muted); font-size:10px; }
.task-batch-controls label { display:flex; align-items:center; gap:5px; padding:4px 7px; color:#dffaff; border:1px solid rgba(57,231,255,.2); border-radius:7px; background:rgba(7,32,44,.78); font-size:11px; white-space:nowrap; cursor:pointer; }
.task-batch-controls input { width:14px; height:14px; min-height:14px; margin:0; padding:0; accent-color:var(--cyan); }
.row-dialog.batch-edit-mode .single-edit-only { display:none; }
.row-form-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.row-form-grid > label,.catalog-filters > label { display:grid; gap:3px; min-width:0; color:var(--muted); font-size:11px; }
.row-form-grid .field-span-2 { grid-column:span 2; }
.row-form-grid .wide { grid-column:1/-1; }
.row-dialog input,.row-dialog select,.row-dialog textarea { min-height:28px; padding:4px 8px; color:var(--text); background:rgba(4,21,31,.76); border:1px solid var(--line); border-radius:8px; font-size:12px; }
.row-dialog input:focus,.row-dialog select:focus,.row-dialog textarea:focus { border-color:var(--cyan); box-shadow:none; outline:1px solid var(--cyan); }
.row-dialog input[readonly] { color:#bcecf4; background:rgba(3,20,29,.72); }
.row-dialog button { min-height:28px; padding:3px 10px; color:var(--text); background:rgba(12,47,62,.62); border:1px solid rgba(57,231,255,.45); border-radius:8px; font-weight:400; }
.row-dialog button:hover { background:linear-gradient(135deg,rgba(57,231,255,.25),rgba(255,93,177,.12)); filter:none; }
.row-dialog button.secondary { color:var(--text); background:rgba(12,47,62,.62); border-color:rgba(57,231,255,.45); }
.row-dialog .icon-button { width:34px; height:34px; min-height:34px; padding:0; font-size:20px; }
.row-dialog .row-form-actions button:last-child { color:#04202a; background:var(--cyan); font-weight:700; }
.catalog-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-bottom:2px; }
.catalog-picker { min-width:0; padding:9px 10px; border:1px solid rgba(57,231,255,.18); border-radius:9px; background:rgba(3,20,29,.5); }
.catalog-picker-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px; }
.catalog-picker-head > div:first-child { min-width:0; }
.catalog-picker-head strong { color:#dffaff; font-size:13px; }
.catalog-picker-head small { margin-left:8px; color:var(--muted); font-size:11px; font-weight:400; }
.catalog-picker-buttons { display:flex; gap:6px; flex:0 0 auto; }
.catalog-picker .compact { min-height:28px; padding:3px 10px; font-size:11px; }
.catalog-search { width:100%; min-height:32px!important; margin-bottom:6px; }
.catalog-options { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-rows:minmax(27px,max-content); align-content:start; gap:4px; height:150px; overflow-y:scroll; overflow-x:hidden; padding:1px; border:1px solid rgba(116,219,235,.16); border-radius:6px; background:rgba(1,14,21,.35); scrollbar-width:thin; scrollbar-color:rgba(57,231,255,.55) transparent; }
.catalog-option { display:flex!important; align-items:center; gap:4px; min-width:0; min-height:27px; padding:3px 5px; border:1px solid rgba(57,231,255,.08); border-radius:5px; background:rgba(7,32,44,.78); color:#bfe4eb; font-size:10px; line-height:1.2; cursor:pointer; }
.catalog-option:hover { border-color:rgba(57,231,255,.18); background:rgba(57,231,255,.13); }
.catalog-option:has(input:checked) { border-color:rgba(57,231,255,.3); background:rgba(7,32,44,.78); box-shadow:none; }
.catalog-option input { flex:0 0 auto; width:15px!important; height:15px!important; min-height:15px!important; margin:0; padding:0; accent-color:var(--cyan); }
.catalog-option span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.catalog-empty { grid-column:1/-1; display:grid; place-items:center; min-height:70px; color:var(--muted); font-size:11px; }
.catalog-actions { display:flex; align-items:center; gap:6px; margin-top:5px; }
.catalog-actions button { padding:3px 8px; font-size:11px; }
.catalog-tags { display:flex; flex-wrap:wrap; gap:3px; min-height:17px; margin-top:4px; }
.catalog-tag { display:inline-flex; align-items:center; gap:3px; max-width:100%; padding:2px 5px; border:1px solid rgba(57,231,255,.3); border-radius:999px; color:#bcecf4; background:transparent; font-size:10px; }
.catalog-tag span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.catalog-tag button { min-height:0; padding:0; color:var(--muted); background:transparent!important; border:0; font-size:13px; line-height:1; }
.catalog-native { display:none; }
.catalog-status { min-height:18px; margin:8px 0 -4px; color:var(--cyan); font-size:11px; }
.catalog-status.error { color:var(--red); }
.form-status { min-height:21px; margin:14px 0 0; color:var(--muted); font-size:12px; }
.form-status.error { color:var(--red); }
.row-form-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:10px; }
body:has(.row-dialog[open]) { overflow:hidden; }
@media (max-width:1320px) { header { align-items:stretch; flex-direction:column; }.header-controls { justify-content:flex-end; } }
@media (max-width:900px) { header { align-items:stretch; flex-direction:column; }.header-controls { align-items:stretch; }.metrics { grid-template-columns:repeat(2,1fr); }.toolbar { align-items:flex-start; flex-direction:column; }.task-table { min-width:980px; }.row-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.catalog-options { grid-template-columns:repeat(2,minmax(0,1fr)); }.catalog-filters { grid-template-columns:1fr 1fr; }.task-batch-controls { align-items:flex-start; flex-wrap:wrap; }.task-batch-controls > div { flex:1 0 100%; } }
@media (max-width:520px) { .header-controls { flex-direction:column; }.settings-trigger { width:100%; height:48px; display:flex; align-items:center; justify-content:center; gap:7px; }.auth { min-width:0; }.metrics { grid-template-columns:1fr; }.event { grid-template-columns:1fr; gap:3px; }.task-log-head { align-items:flex-start; flex-direction:column; }.task-log-actions { width:100%; justify-content:space-between; }.scan-card,.row-card,.settings-card { padding:14px; }.scan-footer { align-items:stretch; flex-direction:column; }.scan-footer > div { display:grid; grid-template-columns:1fr 1fr; }.row-form-grid { grid-template-columns:1fr; }.row-form-grid .wide,.row-form-grid .field-span-2 { grid-column:auto; }.catalog-filters,.catalog-options { grid-template-columns:1fr; }.catalog-picker-head { align-items:flex-start; flex-direction:column; }.catalog-picker-head small { display:block; margin:3px 0 0; }.catalog-picker-buttons { width:100%; }.catalog-picker-buttons button { flex:1; }.task-context-menu { min-width:min(230px,calc(100vw - 12px)); }.task-batch-controls label { flex:1; justify-content:center; } }
@media (max-width:520px) { .notification-form-grid { grid-template-columns:1fr; }.notification-form-grid > label.wide { grid-column:auto; }.notification-dialog .settings-actions { display:grid; grid-template-columns:1fr 1fr; }.notification-dialog .settings-actions button:last-child { grid-column:1/-1; }.notification-actions { width:100%; }.notification-actions .notification-button { flex:1; justify-content:center; } }
@media (max-width:520px) { .success-section-head { align-items:flex-start; flex-direction:column; gap:8px; }.success-section-title { width:100%; flex-wrap:wrap; }.success-record-actions { margin-left:auto; }.success-section-head > #success-summary { max-width:100%; } }

/* Compact server dashboard: keep the hero short and let the artwork remain visible. */
.shizuku-theme .hero-shell { min-height:300px; background:linear-gradient(135deg,rgba(15,20,48,.78),rgba(9,12,29,.62) 56%,rgba(17,14,40,.7)); }
.shizuku-theme .hero-shell::after { background:linear-gradient(90deg,rgba(7,9,24,.82) 0%,rgba(7,9,24,.62) 42%,rgba(7,9,24,.08) 72%,rgba(7,9,24,.18) 100%); }
.shizuku-theme .hero-main { display:grid; min-height:278px; grid-template-columns:minmax(0,600px) minmax(24px,1fr) auto; grid-template-areas:"copy copy copy" "metrics . controls"; column-gap:12px; row-gap:12px; align-items:end; }
.shizuku-theme .hero-copy { grid-area:copy; }
.shizuku-theme .hero-mascot { z-index:2; top:-70px; opacity:.98; filter:drop-shadow(0 24px 36px rgba(33,73,150,.3)); }
.shizuku-theme .hero-mascot img { filter:saturate(1.02) contrast(1.04) brightness(1.05); }
.shizuku-theme .host-metrics { position:relative; z-index:5; left:auto; right:auto; bottom:auto; grid-area:metrics; display:grid; width:100%; min-width:0; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.shizuku-theme .host-metric { min-width:0; padding:5px 8px 4px; overflow:hidden; border:1px solid rgba(143,195,255,.2); border-radius:8px; background:linear-gradient(145deg,rgba(35,44,84,.46),rgba(19,23,54,.36)); box-shadow:inset 0 1px rgba(255,255,255,.06),0 6px 16px rgba(0,0,0,.09); backdrop-filter:blur(9px); }
.shizuku-theme .host-metric span { display:block; color:#a9b7d8; font-size:8px; letter-spacing:.05em; }
.shizuku-theme .host-metric strong { display:block; margin-top:1px; color:#eaf8ff; font:700 14px/1.15 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:nowrap; text-shadow:0 0 14px rgba(123,214,255,.18); }
.shizuku-theme .host-metric small { display:block; margin-top:1px; overflow:hidden; color:#7f8bad; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.shizuku-theme .host-metric[data-host-state=good] strong { color:#a8f4d8; }.shizuku-theme .host-metric[data-host-state=warn] strong { color:#ffd58b; }
.shizuku-theme .hero-shell .header-controls { position:relative; z-index:6; left:auto; right:auto; bottom:auto; grid-area:controls; width:auto; margin:0; padding:0; align-items:flex-end; border:0; background:transparent; box-shadow:none; backdrop-filter:none; }
.shizuku-theme .hero-shell .header-controls .settings-trigger { box-shadow:0 8px 22px rgba(0,0,0,.16); }

@media (max-width:1320px) {
  .shizuku-theme .hero-main { grid-template-columns:minmax(0,580px) minmax(16px,1fr) auto; }
  .shizuku-theme .hero-mascot { right:-4%; }
}
@media (max-width:900px) {
  .shizuku-theme .hero-shell { min-height:346px; }
  .shizuku-theme .hero-main { min-height:302px; grid-template-columns:minmax(0,1fr); grid-template-areas:"copy" "metrics" "controls"; row-gap:8px; }
  .shizuku-theme .host-metrics { width:min(580px,100%); }
  .shizuku-theme .hero-shell .header-controls { width:100%; justify-content:flex-end; }
  .shizuku-theme .hero-mascot { top:-42px; right:-62px; opacity:.86; }
  .shizuku-theme .hero-shell::after { background:linear-gradient(90deg,rgba(7,9,24,.84) 0%,rgba(7,9,24,.62) 52%,rgba(7,9,24,.1) 100%); }
}
@media (max-width:600px) {
  .shizuku-theme .hero-shell { min-height:370px; }
  .shizuku-theme .hero-main { min-height:322px; }
  .shizuku-theme .host-metrics { width:100%; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
  .shizuku-theme .host-metric { min-width:0; padding:5px 7px 4px; }
  .shizuku-theme .hero-shell .header-controls { display:grid; grid-template-columns:84px minmax(0,1fr); width:100%; align-items:end; }
  .shizuku-theme .hero-shell .settings-trigger { width:84px; height:48px; }
  .shizuku-theme .hero-shell .auth { grid-template-columns:minmax(0,1fr) 54px; width:100%; }
  .shizuku-theme .hero-mascot { top:-8px; right:-94px; opacity:.74; }
}

/* Shizuku · Water Opal Edition */
.shizuku-theme {
  --bg:#070816;
  --panel:#101329;
  --panel-strong:#151936;
  --panel-soft:rgba(16,19,41,.72);
  --line:rgba(156,187,255,.18);
  --line-strong:rgba(133,220,255,.42);
  --text:#f4f7ff;
  --muted:#a3accb;
  --lime:#83e9ff;
  --cyan:#83e9ff;
  --blue:#75a7ff;
  --lavender:#b99bff;
  --pink:#f0a6dc;
  --red:#ff8aa5;
  min-width:320px;
  background:
    radial-gradient(circle at 18% -8%,rgba(91,172,255,.2),transparent 34rem),
    radial-gradient(circle at 92% 6%,rgba(185,142,255,.16),transparent 32rem),
    radial-gradient(circle at 50% 110%,rgba(80,219,255,.08),transparent 42rem),
    linear-gradient(160deg,#080918 0%,#090c1d 48%,#070814 100%);
  color:var(--text);
  font-family:Inter,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif;
}
.shizuku-theme::selection { color:#07101d; background:#9eeeff; }
.page-aurora { position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none; }
.page-aurora::before { content:''; position:absolute; inset:0; opacity:.22; background-image:radial-gradient(circle,rgba(226,239,255,.7) 0 1px,transparent 1.5px); background-size:54px 54px; mask-image:linear-gradient(to bottom,#000,transparent 76%); }
.page-aurora span { position:absolute; width:34rem; aspect-ratio:1; border-radius:50%; filter:blur(90px); opacity:.12; animation:shizuku-drift 18s ease-in-out infinite alternate; }
.page-aurora span:nth-child(1) { top:-18rem; left:-8rem; background:#50dfff; }
.page-aurora span:nth-child(2) { top:22%; right:-18rem; background:#a07cff; animation-delay:-7s; }
.page-aurora span:nth-child(3) { bottom:-22rem; left:34%; background:#7ba9ff; animation-delay:-12s; }
@keyframes shizuku-drift { to { transform:translate3d(4rem,3rem,0) scale(1.12); } }

.hero-shell { position:relative; display:block; min-height:342px; padding:0 max(18px,3vw) 18px; overflow:hidden; isolation:isolate; border-bottom:1px solid rgba(146,209,255,.24); background:linear-gradient(135deg,rgba(15,20,48,.94),rgba(9,12,29,.82) 56%,rgba(17,14,40,.9)); box-shadow:0 24px 80px rgba(0,0,0,.26); }
.hero-shell::before { content:''; position:absolute; inset:0; z-index:-2; background:radial-gradient(circle at 76% 22%,rgba(112,218,255,.18),transparent 22rem),linear-gradient(115deg,transparent 0 52%,rgba(153,126,255,.08) 52% 53%,transparent 53%); }
.hero-shell::after { content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; background:linear-gradient(90deg,rgba(7,9,24,.98) 0%,rgba(7,9,24,.88) 42%,rgba(7,9,24,.25) 72%,rgba(7,9,24,.52) 100%); }
.hero-main { position:relative; width:min(100%,1800px); min-height:260px; margin:0 auto; }
.hero-copy { position:relative; z-index:3; max-width:780px; padding-top:34px; }
.hero-kicker { display:flex; align-items:center; gap:9px; }
.theme-gem { display:grid; width:25px; height:25px; place-items:center; color:#d7f8ff; border:1px solid rgba(142,226,255,.54); border-radius:9px; background:linear-gradient(145deg,rgba(101,213,255,.24),rgba(177,125,255,.22)); box-shadow:0 0 24px rgba(112,214,255,.22),inset 0 0 12px rgba(255,255,255,.12); animation:gem-pulse 3.6s ease-in-out infinite; }
@keyframes gem-pulse { 50% { transform:translateY(-2px) rotate(8deg); box-shadow:0 0 34px rgba(112,214,255,.4),inset 0 0 14px rgba(255,255,255,.18); } }
.hero-shell .eyebrow { margin:0; color:#a8edff; font-size:10px; font-weight:700; letter-spacing:.22em; text-shadow:0 0 18px rgba(123,225,255,.28); }
.hero-shell h1 { margin:15px 0 0; letter-spacing:-.045em; }
.hero-shell h1 span { display:block; }
.hero-shell h1 span:first-child { color:#bfc8e6; font-size:clamp(15px,1.35vw,20px); font-weight:600; letter-spacing:.06em; }
.hero-shell h1 span:last-child { width:fit-content; margin-top:2px; color:transparent; background:linear-gradient(100deg,#fff 5%,#dff8ff 35%,#b8ceff 68%,#e2c6ff 100%); -webkit-background-clip:text; background-clip:text; font-size:clamp(30px,3.2vw,50px); font-weight:800; line-height:1.08; filter:drop-shadow(0 8px 28px rgba(70,160,255,.2)); }
.hero-shell .subtitle { display:flex; align-items:center; gap:10px; margin:14px 0 0; color:#aeb9d6; font-size:12px; }
.hero-shell .subtitle i { width:4px; height:4px; border-radius:50%; background:#9ae9ff; box-shadow:0 0 10px #73dfff; }
.hero-pills { display:flex; flex-wrap:wrap; gap:7px; margin-top:20px; }
.hero-pills span { display:inline-flex; align-items:center; gap:6px; min-height:28px; padding:5px 10px; color:#d4def5; border:1px solid rgba(143,195,255,.17); border-radius:999px; background:linear-gradient(145deg,rgba(35,44,84,.54),rgba(19,23,54,.42)); box-shadow:inset 0 1px rgba(255,255,255,.04); font-size:10px; backdrop-filter:blur(14px); }
.hero-pills b { color:#9ceaff; font-size:11px; }
.hero-mascot { position:absolute; z-index:1; top:-54px; right:1.5%; width:390px; height:340px; margin:0; pointer-events:none; filter:drop-shadow(0 24px 36px rgba(33,73,150,.26)); }
.hero-mascot img { position:absolute; top:0; right:0; width:340px; height:auto; object-fit:contain; object-position:top center; filter:saturate(.96) contrast(1.02); mask-image:linear-gradient(to bottom,#000 0 77%,transparent 98%); }
.mascot-halo { position:absolute; z-index:-1; top:70px; right:16px; width:270px; height:170px; border:1px solid rgba(130,222,255,.16); border-radius:50%; box-shadow:0 0 70px rgba(103,170,255,.16),inset 0 0 70px rgba(179,129,255,.08); transform:rotate(-13deg); }
.mascot-halo::before,.mascot-halo::after { content:''; position:absolute; inset:18px; border:1px dashed rgba(168,198,255,.15); border-radius:inherit; }
.mascot-halo::after { inset:42px; border-style:solid; }
.hero-shell .header-controls { position:relative; z-index:5; display:flex; width:min(100%,1800px); min-width:0; margin:0 auto; padding:10px; align-items:flex-end; justify-content:flex-end; gap:10px; border:1px solid rgba(143,197,255,.14); border-radius:14px; background:linear-gradient(135deg,rgba(14,18,42,.76),rgba(16,19,44,.56)); box-shadow:0 16px 46px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.035); backdrop-filter:blur(18px); }
.hero-shell .settings-trigger { width:84px; height:52px; color:#c8f4ff; border-color:rgba(130,221,255,.25); background:rgba(26,33,68,.52); }
.hero-shell .settings-trigger:hover { border-color:rgba(130,221,255,.55); background:rgba(42,54,101,.68); box-shadow:0 0 24px rgba(86,200,255,.12); }
.hero-shell .settings-icon { color:#9deaff; text-shadow:0 0 15px rgba(110,224,255,.52); }
.hero-shell .auth { grid-template-columns:minmax(190px,280px) auto; min-width:0; }
.hero-shell .auth label { color:#929dbc; font-size:10px; letter-spacing:.06em; }

.shizuku-theme main { position:relative; z-index:2; width:min(96vw,1800px); margin:16px auto 36px; }
.shizuku-theme input,.shizuku-theme select,.shizuku-theme textarea { color:#edf3ff; border-color:rgba(145,183,255,.2); background:rgba(8,11,28,.72); box-shadow:inset 0 1px rgba(255,255,255,.025); }
.shizuku-theme input::placeholder,.shizuku-theme textarea::placeholder { color:#69728e; }
.shizuku-theme input:focus,.shizuku-theme select:focus,.shizuku-theme textarea:focus { border-color:#7bdfff; box-shadow:0 0 0 3px rgba(123,223,255,.1),0 0 28px rgba(92,170,255,.08); }
.shizuku-theme button { position:relative; overflow:hidden; color:#07101c; border-color:rgba(157,230,255,.68); background:linear-gradient(135deg,#b9f5ff,#79dfff 58%,#a8c5ff); box-shadow:0 8px 22px rgba(69,181,255,.12),inset 0 1px rgba(255,255,255,.66); transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,filter .18s ease; }
.shizuku-theme button::after { content:''; position:absolute; inset:0; pointer-events:none; background:linear-gradient(110deg,transparent 15%,rgba(255,255,255,.3) 46%,transparent 72%); transform:translateX(-130%); transition:transform .55s ease; }
.shizuku-theme button:hover { transform:translateY(-1px); filter:brightness(1.05); box-shadow:0 11px 28px rgba(72,184,255,.2),inset 0 1px rgba(255,255,255,.7); }
.shizuku-theme button:hover::after { transform:translateX(130%); }
.shizuku-theme button:active { transform:translateY(0) scale(.98); }
.shizuku-theme button.secondary { color:#dce8ff; border-color:rgba(143,184,255,.22); background:linear-gradient(145deg,rgba(35,43,84,.74),rgba(20,24,55,.78)); box-shadow:inset 0 1px rgba(255,255,255,.035); }
.shizuku-theme button.danger { color:#ffc0cf; border-color:rgba(255,125,163,.24); background:linear-gradient(145deg,rgba(91,31,61,.42),rgba(47,22,47,.58)); }
.shizuku-theme button:focus-visible { outline:2px solid #a7efff; outline-offset:2px; }

.shizuku-theme .notice { position:relative; min-height:40px; padding:9px 14px 9px 40px; overflow:hidden; color:#b2bdd8; border-color:rgba(140,184,255,.15); border-radius:12px; background:linear-gradient(100deg,rgba(18,23,52,.82),rgba(13,17,38,.72)); box-shadow:inset 0 1px rgba(255,255,255,.035); backdrop-filter:blur(14px); }
.shizuku-theme .notice::before { content:''; position:absolute; top:50%; left:17px; width:9px; height:9px; border-radius:50%; background:#7cdfff; box-shadow:0 0 0 5px rgba(124,223,255,.08),0 0 18px rgba(124,223,255,.65); transform:translateY(-50%); }
.shizuku-theme .notice::after { content:''; position:absolute; inset:0; pointer-events:none; background:linear-gradient(90deg,transparent,rgba(141,220,255,.04),transparent); transform:translateX(-100%); animation:notice-sweep 6s linear infinite; }
@keyframes notice-sweep { to { transform:translateX(100%); } }
.shizuku-theme .notice.ok { color:#bff8ed; }
.shizuku-theme .notice.ok::before { background:#85f4d1; box-shadow:0 0 0 5px rgba(133,244,209,.08),0 0 18px rgba(133,244,209,.62); }
.shizuku-theme .notice.error { color:#ffc4d0; border-color:rgba(255,120,153,.26); }
.shizuku-theme .notice.error::before { background:#ff89a7; box-shadow:0 0 0 5px rgba(255,137,167,.08),0 0 18px rgba(255,137,167,.62); }

.shizuku-theme .metrics { gap:10px; }
.shizuku-theme .metrics article,.shizuku-theme .panel { position:relative; overflow:hidden; border-color:rgba(141,181,255,.15); background:linear-gradient(145deg,rgba(23,28,61,.88),rgba(12,16,37,.9)); box-shadow:0 16px 38px rgba(0,0,0,.15),inset 0 1px rgba(255,255,255,.035); backdrop-filter:blur(18px); }
.shizuku-theme .metrics article { min-height:88px; padding:14px 15px 12px 58px; }
.shizuku-theme .metrics article::before { content:attr(data-icon); position:absolute; top:15px; left:14px; display:grid; width:32px; height:32px; place-items:center; color:#bceeff; border:1px solid rgba(135,219,255,.23); border-radius:11px; background:linear-gradient(145deg,rgba(83,182,255,.17),rgba(160,120,255,.15)); box-shadow:0 0 24px rgba(87,178,255,.08); font-size:15px; }
.shizuku-theme .metrics article::after { content:''; position:absolute; right:-24px; bottom:-36px; width:90px; height:90px; border:1px solid rgba(153,210,255,.08); border-radius:50%; box-shadow:inset 0 0 26px rgba(150,111,255,.06); }
.shizuku-theme .metrics article:hover { border-color:rgba(135,216,255,.3); transform:translateY(-2px); box-shadow:0 18px 46px rgba(0,0,0,.22),0 0 28px rgba(77,174,255,.06); }
.shizuku-theme .metrics span { color:#9da8c7; font-size:10px; letter-spacing:.04em; }
.shizuku-theme .metrics strong { color:#f5f8ff; font-size:22px; text-shadow:0 0 22px rgba(123,214,255,.14); }
.shizuku-theme .metrics small { display:block; margin-top:3px; color:#68728e; font-size:9px; }

.shizuku-theme .toolbar { border-radius:13px; }
.shizuku-theme .toolbar code { color:#86ddf7; opacity:.78; }
.shizuku-theme .action-dock::before { content:''; position:absolute; inset:0 auto 0 0; width:2px; background:linear-gradient(#7fe9ff,#aa8dff); box-shadow:0 0 16px rgba(121,223,255,.54); }
.shizuku-theme .tabs { position:sticky; top:8px; z-index:40; width:max-content; max-width:100%; margin:12px 0 8px; padding:5px; gap:3px; border:1px solid rgba(137,177,255,.13); border-radius:13px; background:rgba(9,12,29,.8); box-shadow:0 12px 36px rgba(0,0,0,.16); backdrop-filter:blur(20px); scrollbar-width:none; }
.shizuku-theme .tabs::-webkit-scrollbar { display:none; }
.shizuku-theme .tab { min-height:34px; padding:7px 13px; color:#8792b0; border-radius:9px; }
.shizuku-theme .tab.active { color:#e9f8ff; border-color:rgba(125,222,255,.24); background:linear-gradient(145deg,rgba(67,134,205,.24),rgba(106,79,171,.22)); box-shadow:inset 0 1px rgba(255,255,255,.05),0 0 22px rgba(77,177,255,.08); }
.shizuku-theme .tab.active::before { content:'◆'; margin-right:7px; color:#8ce9ff; font-size:8px; }
.shizuku-theme .tab-page { padding:18px; border-radius:16px; }
.shizuku-theme .tab-page::before { content:''; position:absolute; inset:0 0 auto; height:1px; background:linear-gradient(90deg,transparent,rgba(126,222,255,.34),rgba(179,139,255,.22),transparent); }
.shizuku-theme .section-head { margin-bottom:12px; }
.shizuku-theme h2 { color:#eef6ff; letter-spacing:-.02em; }
.shizuku-theme .section-head h2::before { content:'◇'; margin-right:8px; color:#8deaff; font-size:12px; }
.shizuku-theme .section-head > span { display:inline-flex; align-items:center; min-height:26px; padding:4px 9px; border:1px solid rgba(139,186,255,.12); border-radius:999px; background:rgba(24,29,61,.55); }
.shizuku-theme .section-tip { color:#77829f; }

.shizuku-theme .table-wrap { border:1px solid rgba(137,177,255,.11); border-radius:12px; background:rgba(7,10,27,.5); scrollbar-color:rgba(119,195,255,.48) rgba(10,13,31,.6); scrollbar-width:thin; }
.shizuku-theme .table-wrap::-webkit-scrollbar,.shizuku-theme .events::-webkit-scrollbar,.shizuku-theme .catalog-options::-webkit-scrollbar { width:7px; height:7px; }
.shizuku-theme .table-wrap::-webkit-scrollbar-thumb,.shizuku-theme .events::-webkit-scrollbar-thumb,.shizuku-theme .catalog-options::-webkit-scrollbar-thumb { border-radius:999px; background:linear-gradient(#79dcff,#a38dff); }
.shizuku-theme .table-wrap::-webkit-scrollbar-track,.shizuku-theme .events::-webkit-scrollbar-track,.shizuku-theme .catalog-options::-webkit-scrollbar-track { background:rgba(8,11,27,.65); }
.shizuku-theme th { color:#8995b5; border-color:rgba(141,179,255,.11); background:#131835; }
.shizuku-theme td { color:#d9e2f6; border-color:rgba(141,179,255,.085); }
.shizuku-theme tbody tr { transition:background .16s ease,box-shadow .16s ease; }
.shizuku-theme tbody tr:nth-child(even) td { background:rgba(118,146,218,.018); }
.shizuku-theme tbody tr:hover td { background:rgba(97,170,238,.07); }
.shizuku-theme .task-table tr.incomplete td { background:rgba(128,100,183,.07); }
.shizuku-theme .task-table tr.selected td { background:rgba(86,181,222,.12); box-shadow:inset 0 1px rgba(132,226,255,.13),inset 0 -1px rgba(132,226,255,.13); }
.shizuku-theme .task-table tr.context-row td { box-shadow:inset 0 1px rgba(144,231,255,.55),inset 0 -1px rgba(144,231,255,.55); }
.shizuku-theme .sort-button { color:inherit; background:transparent; box-shadow:none; }
.shizuku-theme .sort-button:hover { color:#dceaff; transform:none; box-shadow:none; }
.shizuku-theme .row-edit-button { color:#dbe7fa; background:transparent; box-shadow:none; }
.shizuku-theme .row-edit-button:hover { color:#9cecff; transform:none; box-shadow:none; text-decoration:none; }
.shizuku-theme .row-edit-button .needs-info { display:inline-flex; padding:1px 5px; color:#efceff; border:1px solid rgba(205,154,255,.2); border-radius:999px; background:rgba(143,91,191,.1); }
.shizuku-theme .task-select { accent-color:#8ce8ff; }
.shizuku-theme .badge { color:#9deaff; border-color:rgba(122,218,255,.22); background:rgba(55,143,189,.08); }
.shizuku-theme .badge.good { color:#91f5d3; border-color:rgba(110,238,197,.24); background:rgba(72,184,146,.08); }
.shizuku-theme .badge.bad { color:#ff9db4; border-color:rgba(255,118,157,.25); background:rgba(177,62,100,.08); }
.shizuku-theme .task-log-panel { border-color:rgba(141,185,255,.13); }
.shizuku-theme .task-log-head h3 { color:#ecf5ff; }
.shizuku-theme .task-events,.shizuku-theme #event-list { border-color:rgba(136,178,255,.11); background:linear-gradient(145deg,rgba(7,10,25,.72),rgba(12,15,36,.62)); }
.shizuku-theme .event { position:relative; border-color:rgba(143,180,255,.09); }
.shizuku-theme .event::before { content:''; position:absolute; top:13px; left:0; width:4px; height:4px; border-radius:50%; background:#86e7ff; box-shadow:0 0 9px rgba(134,231,255,.7); }
.shizuku-theme .event time,.shizuku-theme .event .kind { color:#75809d; }
.shizuku-theme .event[data-level="warn"] { background:linear-gradient(90deg,rgba(255,195,112,.045),transparent 48%); }
.shizuku-theme .event[data-level="error"] { background:linear-gradient(90deg,rgba(255,111,151,.055),transparent 48%); }
.shizuku-theme .log-toggle-track { border-color:rgba(139,181,255,.26); background:#151a36; }
.shizuku-theme .log-toggle input:checked + .log-toggle-track { border-color:#79dfff; background:linear-gradient(90deg,#3f8bc0,#7c75c5); }
.shizuku-theme .log-toggle input:checked + .log-toggle-track::after { background:#d9faff; box-shadow:0 0 10px rgba(143,233,255,.72); }

.shizuku-theme .task-context-menu { border-color:rgba(128,222,255,.3); background:linear-gradient(150deg,rgba(18,23,50,.97),rgba(9,12,29,.98)); box-shadow:0 24px 70px rgba(0,0,0,.56),0 0 38px rgba(86,169,255,.08); }
.shizuku-theme .task-context-menu button { color:#dfe9fa; background:transparent; box-shadow:none; }
.shizuku-theme .task-context-menu button:hover { color:#fff; background:linear-gradient(90deg,rgba(95,188,231,.15),rgba(151,112,211,.12)); transform:none; box-shadow:none; }
.shizuku-theme .task-menu-separator { background:linear-gradient(90deg,transparent,rgba(140,197,255,.22),transparent); }

.shizuku-theme dialog { color:#edf4ff; border-color:rgba(136,218,255,.3); background:linear-gradient(150deg,rgba(19,24,53,.98),rgba(8,11,28,.99)); box-shadow:0 30px 100px rgba(0,0,0,.68),0 0 60px rgba(85,154,255,.1); }
.shizuku-theme dialog::backdrop { background:rgba(3,5,16,.78); backdrop-filter:blur(8px) saturate(.8); }
.shizuku-theme .scan-card,.shizuku-theme .settings-card,.shizuku-theme .row-card { position:relative; }
.shizuku-theme .scan-card::before,.shizuku-theme .settings-card::before,.shizuku-theme .row-card::before { content:''; position:absolute; inset:0 0 auto; height:1px; background:linear-gradient(90deg,transparent,#84e8ff,#b89dff,transparent); }
.shizuku-theme .scan-head h2,.shizuku-theme .row-dialog .scan-head h2 { color:#edf7ff; }
.shizuku-theme .icon-button { color:#cbeeff; background:rgba(30,38,78,.56); }
.shizuku-theme .qr-frame { position:relative; border:1px solid rgba(131,222,255,.32); background:linear-gradient(145deg,#f7fbff,#e7f8ff); box-shadow:0 0 0 7px rgba(125,219,255,.035),0 22px 55px rgba(2,10,31,.36); }
.shizuku-theme .qr-frame::before,.shizuku-theme .qr-frame::after { content:'◆'; position:absolute; color:#8edfff; font-size:11px; text-shadow:0 0 12px #7adfff; }
.shizuku-theme .qr-frame::before { top:-8px; left:-7px; }
.shizuku-theme .qr-frame::after { right:-7px; bottom:-8px; }
.shizuku-theme .scan-status { color:#a5edff; }
.shizuku-theme .scan-hint,.shizuku-theme .settings-hint { color:#8f9bb8; }
.shizuku-theme .row-dialog { --text:#edf4ff; --muted:#91a0c0; --cyan:#83e9ff; --lime:#83e9ff; --line:rgba(135,197,255,.21); background:linear-gradient(150deg,rgba(15,20,47,.99),rgba(8,11,28,.99)); }
.shizuku-theme .row-dialog input,.shizuku-theme .row-dialog select,.shizuku-theme .row-dialog textarea { color:#edf4ff; border-color:rgba(132,190,255,.2); background:rgba(7,10,27,.72); }
.shizuku-theme .task-batch-controls,.shizuku-theme .catalog-picker { border-color:rgba(132,193,255,.17); background:linear-gradient(145deg,rgba(18,24,55,.7),rgba(10,14,34,.72)); }
.shizuku-theme .task-batch-controls label { color:#dce8fa; border-color:rgba(135,196,255,.2); background:rgba(25,32,68,.78); }
.shizuku-theme .catalog-options { border-color:rgba(132,191,255,.14); background:rgba(5,8,23,.5); }
.shizuku-theme .catalog-option { color:#b9c7df; border-color:rgba(129,187,255,.08); background:rgba(24,31,67,.7); }
.shizuku-theme .catalog-option:hover { border-color:rgba(127,221,255,.24); background:rgba(75,145,200,.12); }
.shizuku-theme .catalog-option:has(input:checked) { color:#e9f8ff; border-color:rgba(126,221,255,.35); background:linear-gradient(135deg,rgba(74,159,211,.2),rgba(117,88,180,.18)); box-shadow:inset 0 0 18px rgba(104,197,255,.05); }
.shizuku-theme .catalog-tag { color:#d5e8f8; border-color:rgba(125,219,255,.27); background:rgba(48,109,154,.09); }
.shizuku-theme .form-status,.shizuku-theme .catalog-status { color:#91a4c5; }

.site-footer { display:flex; width:min(96vw,1800px); margin:0 auto 24px; padding:12px 4px; align-items:center; justify-content:space-between; gap:14px; color:#5f6a87; border-top:1px solid rgba(139,180,255,.1); font-size:10px; letter-spacing:.04em; }
.site-footer span:first-child { color:#8b9abd; letter-spacing:.14em; }
.site-footer i { color:#85e6ff; font-style:normal; text-shadow:0 0 12px rgba(111,220,255,.5); }

@media (max-width:1320px) {
  .hero-shell { min-height:360px; }
  .hero-main { min-height:270px; }
  .hero-copy { max-width:690px; }
  .hero-mascot { right:-4%; width:360px; }
  .hero-mascot img { width:320px; }
  .hero-shell .header-controls { justify-content:flex-end; }
}

@media (max-width:900px) {
  .hero-shell { min-height:346px; padding-inline:14px; }
  .hero-main { min-height:258px; }
  .hero-copy { max-width:72%; padding-top:26px; }
  .hero-shell h1 span:last-child { font-size:clamp(28px,5vw,38px); }
  .hero-mascot { top:-26px; right:-76px; width:330px; opacity:.66; }
  .hero-mascot img { width:286px; }
  .hero-shell::after { background:linear-gradient(90deg,rgba(7,9,24,.98) 0%,rgba(7,9,24,.86) 52%,rgba(7,9,24,.28) 100%); }
  .hero-shell .header-controls { flex-direction:row; align-items:flex-end; }
  .shizuku-theme .task-table { min-width:1180px; }
  .shizuku-theme .task-table th:nth-child(1),.shizuku-theme .task-table td:nth-child(1) { position:sticky; left:0; z-index:12; width:42px; min-width:42px; background:#121631; }
  .shizuku-theme .task-table th:nth-child(2),.shizuku-theme .task-table td:nth-child(2) { position:sticky; left:42px; z-index:11; width:48px; min-width:48px; background:#121631; }
  .shizuku-theme .task-table th:nth-child(3),.shizuku-theme .task-table td:nth-child(3) { position:sticky; left:90px; z-index:10; width:138px; min-width:138px; background:#121631; box-shadow:8px 0 18px rgba(3,5,16,.26); }
  .shizuku-theme .task-table tbody tr:hover td:nth-child(-n+3) { background:#1a2746; }
  .shizuku-theme .task-table tr.selected td:nth-child(-n+3) { background:#183450; }
  .shizuku-theme .row-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:600px) {
  .shizuku-theme { font-size:13px; }
  .page-aurora::before { background-size:38px 38px; opacity:.14; }
  .hero-shell { min-height:370px; padding:0 10px 12px; }
  .hero-main { min-height:245px; }
  .hero-copy { max-width:88%; padding:22px 4px 0; }
  .hero-shell h1 { margin-top:12px; }
  .hero-shell h1 span:first-child { font-size:14px; }
  .hero-shell h1 span:last-child { max-width:310px; font-size:26px; line-height:1.12; }
  .hero-shell .subtitle { max-width:300px; flex-wrap:wrap; gap:5px 7px; font-size:10px; }
  .hero-pills { max-width:250px; margin-top:15px; gap:5px; }
  .hero-pills span { min-height:25px; padding:4px 8px; font-size:9px; }
  .hero-mascot { top:4px; right:-100px; width:286px; opacity:.48; }
  .hero-mascot img { width:244px; }
  .mascot-halo { width:210px; height:130px; }
  .hero-shell .header-controls { display:grid; grid-template-columns:94px minmax(0,1fr); width:100%; padding:8px; align-items:end; }
  .hero-shell .settings-trigger { width:94px; height:55px; padding:5px; white-space:nowrap; }
  .hero-shell .auth { grid-template-columns:minmax(0,1fr) 54px; width:100%; }
  .hero-shell .auth input { min-width:0; }
  .shizuku-theme main { width:calc(100vw - 16px); margin-top:10px; }
  .shizuku-theme .notice { padding-right:10px; font-size:11px; }
  .shizuku-theme .metrics { display:flex; gap:8px; overflow-x:auto; padding:1px 0 8px; scroll-snap-type:x mandatory; scrollbar-width:none; }
  .shizuku-theme .metrics::-webkit-scrollbar { display:none; }
  .shizuku-theme .metrics article { flex:0 0 148px; min-height:82px; padding:12px 12px 10px 52px; scroll-snap-align:start; }
  .shizuku-theme .metrics article::before { top:13px; left:12px; width:30px; height:30px; }
  .shizuku-theme .metrics strong { font-size:19px; }
  .shizuku-theme .action-dock { align-items:stretch; padding:8px; }
  .shizuku-theme .action-dock > div { display:grid; grid-template-columns:1fr 1fr; width:100%; }
  .shizuku-theme .action-dock button { min-height:44px; padding:8px; }
  .shizuku-theme .action-dock code { display:block; width:100%; padding:3px 2px 0; overflow:hidden; text-overflow:ellipsis; }
  .shizuku-theme .tabs { top:6px; width:100%; margin-top:8px; overflow-x:auto; }
  .shizuku-theme .tab { flex:0 0 auto; min-height:42px; padding:9px 13px; }
  .shizuku-theme .tab-page { padding:11px 9px; border-radius:13px; }
  .shizuku-theme .section-head { align-items:flex-start; margin-bottom:9px; }
  .shizuku-theme .section-head h2 { font-size:16px; }
  .shizuku-theme .section-head > span { max-width:44%; min-height:24px; padding:3px 7px; font-size:9px; text-align:right; }
  .shizuku-theme .stock-history-head { align-items:stretch; }
  .shizuku-theme .stock-history-filters { order:3; display:grid; grid-template-columns:1fr; flex-basis:100%; width:100%; gap:6px; }
  .shizuku-theme .stock-history-filter { width:100%; }
  .shizuku-theme .stock-history-filter select { min-height:40px; font-size:12px; }
  .shizuku-theme .stock-history-head > .stock-history-summary { max-width:calc(100% - 120px); white-space:normal; }
  .shizuku-theme .section-tip { max-width:260px; font-size:9px; }
  .shizuku-theme #tab-tasks > .table-wrap { max-height:45dvh; }
  .shizuku-theme .task-table { min-width:1180px; }
  .shizuku-theme .task-table th { font-size:10px; }
  .shizuku-theme .task-table td { font-size:11px; }
  .shizuku-theme .task-table tbody tr { touch-action:pan-x pan-y; -webkit-touch-callout:none; }
  .shizuku-theme .task-table th:nth-child(1),.shizuku-theme .task-table td:nth-child(1) { width:44px; min-width:44px; }
  .shizuku-theme .task-table th:nth-child(2),.shizuku-theme .task-table td:nth-child(2) { left:44px; width:46px; min-width:46px; }
  .shizuku-theme .task-table th:nth-child(3),.shizuku-theme .task-table td:nth-child(3) { left:90px; width:132px; min-width:132px; }
  .shizuku-theme .task-log-head { align-items:flex-start; flex-direction:column; }
  .shizuku-theme .task-log-actions { width:100%; min-height:44px; justify-content:space-between; gap:6px; overflow-x:auto; }
  .shizuku-theme .log-toggle { flex:0 0 auto; min-height:40px; }
  .shizuku-theme .task-events { max-height:210px; }
  .shizuku-theme .event { grid-template-columns:76px 64px 48px minmax(128px,1fr); gap:5px; padding:8px 2px 8px 7px; }
  .shizuku-theme .event time,.shizuku-theme .event .kind,.shizuku-theme .event .sequence { font-size:9px; }
  .shizuku-theme .task-context-menu.mobile-sheet { position:fixed!important; inset:auto 8px 8px!important; display:grid; grid-template-columns:1fr 1fr; width:auto; min-width:0; max-height:min(72dvh,560px); padding:10px; gap:5px; overflow:auto; border-radius:18px; animation:sheet-in .2s ease-out; }
  .shizuku-theme .task-context-menu.mobile-sheet::before { content:'任务操作'; grid-column:1/-1; padding:4px 6px 9px; color:#edf7ff; font-size:14px; font-weight:700; }
  .shizuku-theme .task-context-menu.mobile-sheet button { min-height:44px; text-align:center; }
  .shizuku-theme .task-context-menu.mobile-sheet .task-menu-separator { grid-column:1/-1; }
  .shizuku-theme.task-menu-open { overflow:hidden; }
  .shizuku-theme.task-menu-open main { z-index:auto; }
  .shizuku-theme.task-menu-open::before { content:''; position:fixed; inset:0; z-index:1190; background:rgba(3,5,16,.62); backdrop-filter:blur(4px); }
  @keyframes sheet-in { from { opacity:0; transform:translateY(22px); } }
  .shizuku-theme .scan-dialog,.shizuku-theme .settings-dialog { width:calc(100vw - 12px); max-height:calc(100dvh - 12px); margin:auto 6px 6px; border-radius:20px 20px 12px 12px; }
  .shizuku-theme .scan-card,.shizuku-theme .settings-card { padding:16px; }
  .shizuku-theme .row-dialog { width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; margin:0; border:0; border-radius:0; }
  .shizuku-theme .row-card { min-height:100%; padding:12px; }
  .shizuku-theme .row-dialog .scan-head { position:sticky; top:-12px; z-index:30; margin:-12px -12px 12px; padding:12px; background:rgba(13,17,40,.96); backdrop-filter:blur(18px); }
  .shizuku-theme .row-form-grid { grid-template-columns:1fr; gap:8px; }
  .shizuku-theme .row-form-grid .wide,.shizuku-theme .row-form-grid .field-span-2 { grid-column:auto; }
  .shizuku-theme .row-dialog input,.shizuku-theme .row-dialog select { min-height:44px; font-size:14px; }
  .shizuku-theme .catalog-filters,.shizuku-theme .catalog-options { grid-template-columns:1fr; }
  .shizuku-theme .catalog-options { height:38dvh; }
  .shizuku-theme .catalog-option { min-height:44px; padding:7px 8px; font-size:12px; }
  .shizuku-theme .catalog-picker-buttons,.shizuku-theme .catalog-actions { width:100%; }
  .shizuku-theme .catalog-picker-buttons button,.shizuku-theme .catalog-actions button { min-height:42px; flex:1; }
  .shizuku-theme .row-form-actions { position:sticky; bottom:-12px; z-index:30; margin:10px -12px -12px; padding:10px 12px calc(10px + env(safe-area-inset-bottom)); background:rgba(12,16,38,.96); backdrop-filter:blur(18px); }
  .shizuku-theme .row-form-actions button { flex:1; min-height:46px; }
  .site-footer { width:calc(100vw - 20px); align-items:flex-start; flex-direction:column; gap:4px; }
}

@media (max-width:390px) {
  .hero-shell h1 span:last-child { max-width:300px; font-size:25px; }
  .hero-pills span:nth-child(2) { display:none; }
  .hero-mascot { right:-116px; opacity:.42; }
  .hero-shell .header-controls { grid-template-columns:92px minmax(0,1fr); }
  .hero-shell .settings-trigger { width:92px; }
  .shizuku-theme .metrics article { flex-basis:140px; }
}

@media (prefers-reduced-motion:reduce) {
  .page-aurora span,.theme-gem,.shizuku-theme .notice::after { animation:none!important; }
  .shizuku-theme button,.shizuku-theme .metrics article { transition:none!important; }
}
@media (max-width:520px) { .task-events .event { min-width:331px; grid-template-columns:76px 64px 48px minmax(128px,1fr); gap:5px; } }

/* Account proxy pool */
.proxy-controls { display:flex; align-items:center; justify-content:flex-end; gap:8px; margin-bottom:8px; padding:8px 10px; border:1px solid var(--line); border-radius:11px; background:rgba(7,19,16,.48); }
.proxy-check-status { margin-right:auto; min-width:0; color:var(--muted); font-size:12px; line-height:1.5; }
.proxy-latency { font-variant-numeric:tabular-nums; white-space:nowrap; }
.proxy-controls button { min-height:36px; padding:7px 11px; white-space:nowrap; }
.proxy-binding-hint { min-height:18px; margin:0 0 8px; color:var(--muted); font-size:11px; }
.proxy-binding-hint.error { color:var(--red); }
.proxy-pool-switch { display:flex; align-items:center; gap:6px; margin:0 0 8px; padding:5px; overflow:auto; border:1px solid var(--line); border-radius:10px; background:rgba(7,19,16,.42); }
.proxy-pool-tab { min-height:32px; padding:6px 12px; color:var(--muted); background:transparent; border-color:transparent; white-space:nowrap; }
.proxy-pool-tab.active,.proxy-pool-tab[aria-selected="true"] { color:var(--text); border-color:var(--line); background:rgba(57,231,255,.12); box-shadow:inset 0 1px rgba(255,255,255,.04); }
.proxy-pool-tab span { display:inline-flex; min-width:20px; margin-left:4px; padding:1px 5px; justify-content:center; border-radius:999px; color:var(--cyan); background:rgba(57,231,255,.1); font-size:10px; font-variant-numeric:tabular-nums; }
.proxy-table { width:max-content; min-width:100%; table-layout:auto; }
.proxy-table th,.proxy-table td { width:auto; min-width:max-content; }
.proxy-table td { padding:8px 10px; font-size:12px; }
.proxy-table td.proxy-address { max-width:420px; overflow:hidden; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; text-overflow:ellipsis; }
.proxy-table td.proxy-account { max-width:300px; overflow:hidden; text-overflow:ellipsis; }
.proxy-table td.proxy-empty { min-width:100%; padding:28px 12px; color:var(--muted); text-align:center; }
.proxy-table .proxy-delete { padding:4px 8px; font-size:11px; }
.proxy-import-dialog { width:min(720px,calc(100vw - 28px)); max-height:calc(100vh - 28px); padding:0; color:var(--text); background:#0b1916; border:1px solid #285046; border-radius:16px; box-shadow:0 24px 90px #000b; }
.proxy-import-dialog::backdrop { background:#020807d9; backdrop-filter:blur(5px); }
.proxy-card { padding:22px; }
.proxy-import-options { display:grid; grid-template-columns:minmax(160px,.55fr) minmax(220px,1fr); gap:8px; margin-bottom:12px; }
.proxy-import-options label,.proxy-lines-label { display:grid; gap:4px; color:var(--muted); font-size:11px; }
#proxy-lines { min-height:260px; margin-top:4px; }
.proxy-import-file { margin-right:auto; }
body:has(.proxy-import-dialog[open]) { overflow:hidden; }
.shizuku-theme .proxy-controls { border-color:rgba(176,211,255,.16); background:rgba(10,13,32,.48); box-shadow:inset 0 1px rgba(255,255,255,.035); }
.shizuku-theme .proxy-pool-switch { border-color:rgba(176,211,255,.16); background:rgba(10,13,32,.42); }
.shizuku-theme .proxy-pool-tab.active,.shizuku-theme .proxy-pool-tab[aria-selected="true"] { border-color:rgba(139,226,255,.3); background:linear-gradient(135deg,rgba(75,145,200,.2),rgba(117,88,180,.17)); }
.shizuku-theme .proxy-card { position:relative; }
.shizuku-theme .proxy-card::before { content:''; position:absolute; inset:0 0 auto; height:1px; background:linear-gradient(90deg,transparent,#84e8ff,#b89dff,transparent); }

@media (max-width:980px) {
  .proxy-controls { justify-content:stretch; flex-wrap:wrap; }
  .proxy-check-status { flex-basis:100%; }
  .proxy-controls button { width:100%; }
}
@media (max-width:600px) {
  .proxy-controls { padding:8px; }
  .proxy-controls button { min-height:44px; }
  .proxy-pool-switch { margin-top:2px; }
  .proxy-pool-tab { flex:1 0 auto; min-height:40px; }
  .proxy-import-options { grid-template-columns:1fr; }
  .shizuku-theme .proxy-import-dialog { width:calc(100vw - 12px); max-height:calc(100dvh - 12px); margin:auto 6px 6px; border-radius:20px 20px 12px 12px; }
  .shizuku-theme .proxy-card { padding:16px; }
}

/* Shizuku · Flat Glass Layer */
.shizuku-theme {
  --glass-surface:rgba(15,19,45,.58);
  --glass-surface-soft:rgba(10,14,34,.46);
  --glass-surface-strong:rgba(18,23,53,.78);
  --glass-line:rgba(176,211,255,.2);
  --glass-line-strong:rgba(139,226,255,.4);
  --glass-highlight:rgba(255,255,255,.075);
  --glass-shadow:0 14px 38px rgba(1,3,16,.18),inset 0 1px var(--glass-highlight);
  --glass-blur:blur(24px) saturate(135%);
}

.hero-shell {
  border-color:var(--glass-line);
  background:rgba(8,11,29,.72);
  box-shadow:0 1px rgba(255,255,255,.035),0 18px 54px rgba(1,3,16,.18);
  -webkit-backdrop-filter:var(--glass-blur);
  backdrop-filter:var(--glass-blur);
}
.hero-shell::before {
  background:
    radial-gradient(circle at 78% 18%,rgba(117,211,255,.2),transparent 23rem),
    radial-gradient(circle at 58% 84%,rgba(174,133,255,.1),transparent 28rem);
}
.hero-shell::after { background:linear-gradient(90deg,rgba(7,9,24,.96) 0%,rgba(7,9,24,.82) 44%,rgba(7,9,24,.2) 74%,rgba(7,9,24,.42) 100%); }

.theme-gem,
.shizuku-theme .hero-pills span,
.hero-shell .header-controls,
.shizuku-theme .notice,
.shizuku-theme .metrics article,
.shizuku-theme .panel,
.shizuku-theme .tabs,
.shizuku-theme .table-wrap,
.shizuku-theme .task-events,
.shizuku-theme #event-list,
.shizuku-theme .task-context-menu,
.shizuku-theme dialog,
.shizuku-theme .task-batch-controls,
.shizuku-theme .catalog-picker {
  border-color:var(--glass-line);
  background:var(--glass-surface);
  background-clip:padding-box;
  box-shadow:var(--glass-shadow);
  -webkit-backdrop-filter:var(--glass-blur);
  backdrop-filter:var(--glass-blur);
}

.theme-gem {
  border-radius:8px;
  background:rgba(131,219,255,.14);
  box-shadow:inset 0 1px rgba(255,255,255,.12);
}
.shizuku-theme .hero-pills span {
  border-color:rgba(176,211,255,.16);
  background:rgba(21,27,61,.46);
  box-shadow:inset 0 1px rgba(255,255,255,.055);
  -webkit-backdrop-filter:blur(14px) saturate(125%);
  backdrop-filter:blur(14px) saturate(125%);
}
.hero-shell .header-controls {
  border-radius:16px;
  background:rgba(15,19,45,.5);
  box-shadow:0 12px 34px rgba(1,3,16,.14),inset 0 1px var(--glass-highlight);
}

.shizuku-theme input,
.shizuku-theme select,
.shizuku-theme textarea,
.shizuku-theme .row-dialog input,
.shizuku-theme .row-dialog select,
.shizuku-theme .row-dialog textarea {
  border-color:rgba(176,211,255,.18);
  background:rgba(7,10,27,.5);
  box-shadow:inset 0 1px rgba(255,255,255,.035);
  -webkit-backdrop-filter:blur(12px) saturate(120%);
  backdrop-filter:blur(12px) saturate(120%);
}
.shizuku-theme input:focus,
.shizuku-theme select:focus,
.shizuku-theme textarea:focus {
  border-color:rgba(139,226,255,.76);
  box-shadow:0 0 0 3px rgba(123,223,255,.1);
}

.shizuku-theme button {
  border-color:rgba(181,237,255,.58);
  background:rgba(142,226,255,.9);
  box-shadow:none;
  transition:transform .16s ease,border-color .16s ease,background-color .16s ease,color .16s ease;
}
.shizuku-theme button::after { display:none; }
.shizuku-theme button:hover {
  border-color:rgba(218,248,255,.82);
  background:rgba(165,235,255,.96);
  box-shadow:none;
  filter:none;
}
.shizuku-theme button.secondary {
  color:#e3ecff;
  border-color:rgba(176,211,255,.2);
  background:rgba(132,165,255,.09);
  box-shadow:inset 0 1px rgba(255,255,255,.035);
}
.shizuku-theme button.secondary:hover { border-color:rgba(147,224,255,.4); background:rgba(132,191,255,.16); }
.shizuku-theme button.danger { color:#ffc1d0; border-color:rgba(255,142,173,.26); background:rgba(184,71,111,.1); }
.shizuku-theme button.danger:hover { border-color:rgba(255,157,183,.42); background:rgba(184,71,111,.17); }

.shizuku-theme .notice {
  border-radius:14px;
  background:rgba(14,18,43,.55);
  box-shadow:inset 0 1px var(--glass-highlight);
}
.shizuku-theme .metrics article,
.shizuku-theme .panel {
  border-color:var(--glass-line);
  background:var(--glass-surface);
  box-shadow:var(--glass-shadow);
}
.shizuku-theme .metrics article::before {
  border-color:rgba(139,226,255,.24);
  background:rgba(115,192,255,.11);
  box-shadow:inset 0 1px rgba(255,255,255,.06);
}
.shizuku-theme .metrics article::after { display:none; }
.shizuku-theme .metrics article:hover {
  border-color:rgba(139,226,255,.34);
  background:rgba(22,28,62,.67);
  box-shadow:0 16px 42px rgba(1,3,16,.2),inset 0 1px rgba(255,255,255,.09);
}
.shizuku-theme .action-dock::before { width:1px; box-shadow:none; }

.shizuku-theme .tabs {
  border-color:rgba(176,211,255,.16);
  background:rgba(10,13,32,.62);
  box-shadow:0 10px 30px rgba(1,3,16,.14),inset 0 1px rgba(255,255,255,.05);
}
.shizuku-theme .tab { background:transparent; box-shadow:none; }
.shizuku-theme .tab:hover { color:#dce9ff; background:rgba(128,188,255,.08); box-shadow:none; transform:none; }
.shizuku-theme .tab.active {
  border-color:rgba(139,226,255,.25);
  background:rgba(112,181,255,.14);
  box-shadow:inset 0 1px rgba(255,255,255,.06);
}
.shizuku-theme .section-head > span { border-color:rgba(176,211,255,.15); background:rgba(129,166,255,.07); }

.shizuku-theme .table-wrap {
  border-color:rgba(176,211,255,.14);
  background:rgba(7,10,28,.38);
  box-shadow:inset 0 1px rgba(255,255,255,.025);
  -webkit-backdrop-filter:blur(14px) saturate(120%);
  backdrop-filter:blur(14px) saturate(120%);
}
.shizuku-theme th { background:#131835; }
.shizuku-theme .task-table thead th { z-index:20; background:#131835; background-clip:padding-box; }
.shizuku-theme .task-table thead th:nth-child(-n+3) { z-index:24; }
.shizuku-theme tbody tr:nth-child(even) td { background:rgba(132,167,235,.018); }
.shizuku-theme tbody tr:hover td { background:rgba(100,177,239,.075); }
.shizuku-theme .task-table tr.incomplete td { background:rgba(134,105,191,.075); }
.shizuku-theme .task-table tr.selected td { background:rgba(91,184,224,.13); }

.shizuku-theme .task-events,
.shizuku-theme #event-list {
  border-color:rgba(176,211,255,.13);
  background:rgba(6,9,25,.36);
  box-shadow:inset 0 1px rgba(255,255,255,.025);
  -webkit-backdrop-filter:blur(14px) saturate(120%);
  backdrop-filter:blur(14px) saturate(120%);
}
.shizuku-theme .event[data-level="warn"],
.shizuku-theme .event[data-level="error"] { background:transparent; }
.shizuku-theme .log-toggle-track { background:rgba(74,86,130,.2); }
.shizuku-theme .log-toggle input:checked + .log-toggle-track { border-color:#79dfff; background:rgba(89,170,217,.68); }

.shizuku-theme .task-context-menu {
  border-color:rgba(139,226,255,.3);
  background:rgba(13,17,40,.8);
  box-shadow:0 22px 62px rgba(0,0,0,.42),inset 0 1px rgba(255,255,255,.075);
}
.shizuku-theme .task-context-menu button:hover { background:rgba(117,188,255,.12); }

.shizuku-theme dialog,
.shizuku-theme .row-dialog {
  border-color:rgba(139,226,255,.28);
  background:rgba(12,16,39,.82);
  box-shadow:0 28px 86px rgba(0,0,0,.5),inset 0 1px rgba(255,255,255,.08);
  -webkit-backdrop-filter:blur(28px) saturate(140%);
  backdrop-filter:blur(28px) saturate(140%);
}
.shizuku-theme dialog::backdrop { background:rgba(3,5,16,.66); -webkit-backdrop-filter:blur(8px) saturate(90%); backdrop-filter:blur(8px) saturate(90%); }
.shizuku-theme .icon-button { background:rgba(132,181,255,.1); box-shadow:none; }
.shizuku-theme .task-batch-controls,
.shizuku-theme .catalog-picker { background:rgba(17,22,51,.48); box-shadow:inset 0 1px rgba(255,255,255,.035); }
.shizuku-theme .task-batch-controls label,
.shizuku-theme .catalog-option { border-color:rgba(176,211,255,.12); background:rgba(126,166,230,.075); }
.shizuku-theme .catalog-options { background:rgba(5,8,23,.35); }
.shizuku-theme .catalog-option:hover { border-color:rgba(139,226,255,.24); background:rgba(111,188,235,.12); }
.shizuku-theme .catalog-option:has(input:checked) { border-color:rgba(139,226,255,.34); background:rgba(104,178,231,.16); box-shadow:inset 0 1px rgba(255,255,255,.04); }

@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))) {
  .hero-shell { background:#0a0d22; }
  .hero-shell .header-controls,
  .shizuku-theme .notice,
  .shizuku-theme .metrics article,
  .shizuku-theme .panel,
  .shizuku-theme .tabs,
  .shizuku-theme .task-context-menu { background:#111630; }
  .shizuku-theme dialog,.shizuku-theme .row-dialog { background:#0e122c; }
}

@media (max-width:900px) {
  .shizuku-theme .task-table th:nth-child(1),.shizuku-theme .task-table td:nth-child(1),
  .shizuku-theme .task-table th:nth-child(2),.shizuku-theme .task-table td:nth-child(2),
  .shizuku-theme .task-table th:nth-child(3),.shizuku-theme .task-table td:nth-child(3) { background:rgba(18,22,49,.96); }
  .shizuku-theme .task-table tbody tr:hover td:nth-child(-n+3) { background:rgba(26,39,70,.97); }
  .shizuku-theme .task-table tr.selected td:nth-child(-n+3) { background:rgba(24,52,80,.97); }
}

@media (max-width:600px) {
  .shizuku-theme {
    --glass-surface:rgba(15,19,45,.68);
    --glass-surface-soft:rgba(10,14,34,.6);
    --glass-blur:blur(16px) saturate(125%);
    --glass-shadow:0 10px 28px rgba(1,3,16,.16),inset 0 1px var(--glass-highlight);
  }
  .hero-shell { background:rgba(8,11,29,.8); }
  .shizuku-theme .row-dialog .scan-head,
  .shizuku-theme .row-form-actions { background:rgba(13,17,40,.88); -webkit-backdrop-filter:blur(16px) saturate(125%); backdrop-filter:blur(16px) saturate(125%); }
  .shizuku-theme .task-context-menu.mobile-sheet { background:rgba(13,17,40,.86); }
}

.success-timing-dialog { width:min(920px,calc(100vw - 28px)); overflow:hidden; }
.success-timing-card { min-width:0; }
.success-timing-card .scan-head { margin-bottom:10px; }
.success-timing-meta { margin:0 0 10px; color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.success-timing-summary { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:2px 14px; margin-bottom:10px; padding:11px 13px; border:1px solid rgba(104,217,245,.22); border-radius:10px; background:rgba(6,16,28,.46); }
.success-timing-summary span { color:var(--muted); font-size:11px; }
.success-timing-summary strong { grid-row:1/3; grid-column:2; color:#ffd76a; font:700 20px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:nowrap; }
.success-timing-summary small { min-width:0; overflow:hidden; color:var(--text); font:10px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace; text-overflow:ellipsis; white-space:nowrap; }
.success-timing-note { margin:0 0 8px; color:var(--muted); font-size:11px; }
.success-timing-table-wrap { width:100%; max-height:min(54vh,520px); overflow:auto; border:1px solid rgba(104,217,245,.2); border-radius:10px; background:rgba(4,12,23,.42); }
.success-timing-table { width:100%; min-width:760px; table-layout:auto; white-space:nowrap; }
.success-timing-table th,.success-timing-table td { padding:9px 10px; font-size:11px; }
.success-timing-table th { background:#101d31; }
.success-timing-table td.success-timing-action { color:var(--cyan); font-weight:700; }
.success-timing-table td.success-timing-time,.success-timing-table td.success-timing-duration { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-variant-numeric:tabular-nums; }
.success-timing-table td.success-timing-duration { color:#ffd76a; font-weight:700; }
.success-timing-table td.success-timing-explain { color:var(--muted); white-space:normal; }
.success-timing-empty { height:92px; color:var(--muted); text-align:center; white-space:normal; }
.shizuku-theme .success-duration-trigger,.shizuku-theme .success-duration-trigger:hover { min-height:0; padding:1px 3px; color:#ffe27d; background:transparent; border:0; box-shadow:none; transform:none; }
.shizuku-theme .success-timing-summary { border-color:rgba(139,226,255,.2); background:rgba(7,11,29,.42); box-shadow:inset 0 1px rgba(255,255,255,.035); }

@media (max-width:600px) {
  .success-timing-dialog { width:calc(100vw - 12px); max-height:calc(100dvh - 12px); margin:auto 6px 6px; }
  .success-timing-card { padding:15px 12px 12px; }
  .success-timing-summary { grid-template-columns:minmax(0,1fr) auto; padding:9px 10px; }
  .success-timing-summary strong { font-size:17px; }
  .success-timing-summary small { white-space:normal; }
  .success-timing-table-wrap { max-height:52dvh; }
  .success-timing-table th,.success-timing-table td { padding:8px; font-size:10px; }
  .success-timing-card .settings-actions button { width:100%; min-height:42px; }
}

/* Bark device list: each saved phone keeps a visible remark so the operator can
   delete exactly the right one later. */
.bark-devices { display:flex; flex-direction:column; gap:8px; }
.bark-devices-title { font-size:12px; color:var(--muted,#94a3b8); }
.bark-device-list { display:flex; flex-direction:column; gap:6px; }
.bark-device-empty { margin:0; font-size:12px; color:var(--muted,#94a3b8); }
.bark-device-row { display:grid; grid-template-columns:auto 1fr auto; gap:8px; align-items:center; }
.bark-device-row .bark-device-key { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12px; opacity:.8; white-space:nowrap; }
.bark-device-row input { min-width:0; }
.bark-device-remove { min-height:34px; padding:0 10px; }
.bark-device-add { display:grid; grid-template-columns:1fr 1.4fr auto; gap:8px; align-items:center; }
@media (max-width:720px) {
  .bark-device-row { grid-template-columns:1fr auto; }
  .bark-device-row .bark-device-key { grid-column:1 / -1; }
  .bark-device-add { grid-template-columns:1fr; }
}