:root{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei",sans-serif;color:#243047;background:#f5f6f8;font-size:13px;font-synthesis:none;--blue:#4263eb;--line:#e9ecf1;--muted:#8991a2;--red:#c85153;--green:#279174;--radius:14px}
*{box-sizing:border-box}
body{margin:0}
button,input,select{font:inherit}
button,a,input,select{touch-action:manipulation}
button,a{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.55}
a{color:inherit;text-decoration:none}
button{color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #4263eb42;outline-offset:2px}
[hidden]{display:none!important}
svg{width:18px;height:18px;vertical-align:middle;flex-shrink:0}
h1,h2,h3,p{margin:0}
h1{font-size:25px;letter-spacing:-.7px;font-weight:650;line-height:1.4}
h2{font-size:18px;font-weight:650;letter-spacing:-.3px}
h3{font-size:14px;font-weight:600}
.muted{color:var(--muted)}
.eyebrow{font-size:10px;font-weight:600;letter-spacing:1.8px;color:#9ba4b5;margin-bottom:7px}
.sidebar{position:fixed;left:0;top:0;bottom:0;width:204px;border-right:1px solid var(--line);background:#fcfcfd;padding:30px 18px;z-index:20;display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:650;padding:0 8px}
.brand small{display:block;font-size:8px;letter-spacing:1.5px;font-weight:550;color:#9aa3b2;margin-top:6px}
.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#4263eb;color:white;font-size:25px;font-weight:400;box-shadow:0 3px 7px #4263eb1a}
.nav-label{font-size:10px;color:#a5adba;margin:40px 13px 12px;letter-spacing:1px}
nav{display:flex;flex-direction:column;gap:5px}
nav a{display:flex;align-items:center;gap:11px;min-height:42px;padding:0 13px;border-radius:9px;color:#7e8797;font-weight:500;transition:background .15s}
nav a:hover{background:#f1f3f8}
nav a.active{color:var(--blue);background:#edf0ff;font-weight:600}
nav a .nav-count{font-size:10px;margin-left:auto;background:white;padding:2px 6px;border-radius:5px;color:var(--blue)}
.sidebar-bottom{margin-top:auto;display:flex;align-items:flex-start;gap:9px;padding:16px 7px 0;font-size:11px;color:#8e97a6}
.sidebar-bottom small{display:block;font-size:9px;color:#b2b8c3;margin-top:7px}
.online-dot{width:6px;height:6px;background:#65b79b;border-radius:50%;margin-top:4px;display:inline-block;flex-shrink:0}
.workspace{margin-left:204px;min-width:0}
.topbar{height:62px;border-bottom:1px solid var(--line);padding:0 32px;display:flex;align-items:center;justify-content:space-between;background:#ffffffb3}
.breadcrumb{font-size:11px;color:#a1a8b6}
.breadcrumb span{margin:0 13px;color:#ccd0d9}
.breadcrumb strong{font-weight:500;color:#5b667b}
.topbar-right{display:flex;align-items:center;gap:15px}
.mode-label{font-size:10px;color:#8e97a6}
.icon-button{width:32px;height:32px;display:inline-grid;place-items:center;border:1px solid transparent;border-radius:8px;background:transparent;color:#8690a2;font-size:21px;line-height:1}
.icon-button:hover{background:#eef1f7;color:#4263eb}
.text-button{border:0;background:transparent;color:#8791a3;font-size:11px;padding:8px}
.demo-banner{padding:10px 32px;background:#eff2ff;color:#6674a9;border-bottom:1px solid #e2e7fb;font-size:11px;line-height:1.6}
main{padding:30px 32px 20px;max-width:1510px;margin:auto;min-height:calc(100vh - 110px)}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:25px}
.page-heading p{color:#97a0af;font-size:11px;margin-top:8px;line-height:1.7}
.heading-actions{display:flex;gap:8px;flex-shrink:0}
.button{height:34px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 13px;border:1px solid #e3e7ee;background:white;border-radius:8px;font-size:11px;font-weight:500;white-space:nowrap;box-shadow:0 1px 2px #13234203}
.button svg{width:14px;height:14px}
.button:hover{background:#f7f8fc;border-color:#d5dbea}
.button.primary{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 2px 4px #4263eb12}
.button.primary:hover{background:#3656d9}
.button.quiet{background:transparent;box-shadow:none;border-color:transparent;color:#7b879b}
.button.full{width:100%;height:42px}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:23px}
.stat{border:1px solid var(--line);background:white;border-radius:var(--radius);padding:17px 19px;position:relative;overflow:hidden}
.stat-top{display:flex;align-items:center;justify-content:space-between;color:#8791a2;font-size:11px}
.stat-icon{color:#8f9bb6;display:grid;place-items:center;border-radius:7px;background:#f5f7fb;width:27px;height:27px}
.stat-value{font-size:30px;letter-spacing:-1px;font-weight:600;color:#2a3447;margin:9px 0 6px;font-variant-numeric:tabular-nums}
.stat-note{color:#a4acb9;font-size:10px}
.stat.up .stat-icon{background:#fcf0f0;color:var(--red)}
.stat.down .stat-icon{background:#eaf6f1;color:var(--green)}
.stat.unread .stat-icon{background:#edf0ff;color:var(--blue)}
.stat-value small{font-size:10px;letter-spacing:0;color:#a3adbb;font-weight:400;margin-left:7px}
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:18px}
.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 19px 15px}
.panel-heading h3{display:flex;align-items:center;gap:8px}
.panel-heading .sub{color:#a1a9b7;font-size:10px;font-weight:400}
.panel-heading .link{font-size:11px;color:#8b96ac;display:flex;align-items:center;gap:5px}
.panel-heading .link:hover{color:var(--blue)}
.overview-bottom{display:grid;grid-template-columns:1.06fr 1fr;gap:18px}
.overview-bottom .panel{margin-bottom:0}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;table-layout:auto;text-align:left}
th{background:#fafbfc;color:#9aa3b2;font-size:10px;font-weight:500;padding:11px 18px;white-space:nowrap;border-top:1px solid #f0f2f5;border-bottom:1px solid #f0f2f5}
td{padding:13px 18px;border-bottom:1px solid #f0f2f6;font-size:11px;vertical-align:middle}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:#fbfcff}
.product-cell{max-width:320px;min-width:170px}
.product-name{font-size:11px;font-weight:550;display:block;line-height:1.7;text-align:left;border:0;background:transparent;padding:0;color:#3c485e;word-break:break-word}
.product-name:hover{color:var(--blue)}
.product-meta{font-size:9px;color:#a7afbd;margin-top:3px;display:block;line-height:1.5}
.cell-site{max-width:160px;color:#8691a4;font-size:10px}
.price{font-variant-numeric:tabular-nums;font-size:13px;white-space:nowrap;color:#4c576c;font-weight:550}
.price small{font-size:10px;color:#aab1be;font-weight:400;margin-right:3px}
.old-price{color:#a5aebb;font-size:11px;font-weight:400}
.price-arrow{font-size:11px;color:#ccd1da;margin:0 9px}
.price-pair{white-space:nowrap}
.up-text{color:var(--red)}
.down-text{color:var(--green)}
.delta{font-size:10px;font-variant-numeric:tabular-nums;margin-top:5px}
.tag{font-size:9px;padding:4px 7px;border-radius:5px;display:inline-flex;gap:4px;align-items:center;line-height:1.2;white-space:nowrap;background:#f1f3f7;color:#8b96a8;font-weight:500}
.tag.up{background:#fcf0f0;color:var(--red)}
.tag.down{background:#eaf6f1;color:var(--green)}
.tag.success{background:#edf6f1;color:#4c9a7c}
.tag.running,.tag.queued{background:#edf1ff;color:#647fde}
.tag.failed,.tag.interrupted{background:#fff3e7;color:#b78340}
.tag.new,.tag.rules{background:#f2f0fb;color:#9281b5}
.tag-dot{width:4px;height:4px;border-radius:50%;background:currentColor}
.time{font-size:10px;color:#a0a9b9;white-space:nowrap;font-variant-numeric:tabular-nums}
.unread-dot{width:5px;height:5px;border-radius:50%;background:#6884ef;display:inline-block;margin-right:7px}
.table-actions{display:flex;gap:5px;align-items:center}
.table-actions .button{font-size:10px;height:28px;padding:0 9px}
.table-actions .icon-button{width:27px;height:27px}
.source-list{padding:0 19px 4px}
.source-line{display:flex;gap:11px;align-items:center;padding:14px 0;border-top:1px solid #f0f2f6}
.source-initial{width:32px;height:32px;background:#f0f3fb;color:#7c8faf;border:1px solid #e9edf5;border-radius:9px;display:grid;place-items:center;font-size:13px;flex-shrink:0}
.source-info{flex:1;min-width:0}
.source-info strong{font-size:11px;font-weight:550}
.source-info small{display:block;font-size:9px;color:#a1aabc;overflow:hidden;text-overflow:ellipsis;margin-top:5px;white-space:nowrap}
.source-line .tag{margin-left:auto}
.run-list{padding:0 19px 4px}
.run-line{padding:14px 0;border-top:1px solid #f0f2f6;display:flex;gap:11px;align-items:flex-start}
.run-symbol{width:24px;height:24px;border-radius:50%;background:#edf6f1;color:#5ca084;display:grid;place-items:center;font-size:10px;flex-shrink:0}
.run-symbol.failed,.run-symbol.interrupted{background:#fff3e7;color:#c3965c}
.run-symbol.running,.run-symbol.queued{background:#edf1ff;color:#6c81ca}
.run-info{flex:1;min-width:0}
.run-info strong{font-size:10px;font-weight:500}
.run-info p{color:#a4adbc;font-size:9px;margin-top:5px;line-height:1.5}
.run-line .time{font-size:9px}
.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:17px}
.search-box{position:relative;min-width:190px;flex:1;max-width:300px}
.search-box svg{position:absolute;left:11px;top:10px;width:14px;height:14px;color:#a0aabc}
.search-box input{padding-left:33px;width:100%}
input,select{height:35px;border:1px solid #e3e7ee;background:white;border-radius:8px;padding:0 10px;color:#566278;min-width:0;font-size:11px}
input::placeholder{color:#a9b1bf}
input[readonly]{background:#f6f7f9;color:#9aa3b3}
select{max-width:200px;padding-right:23px}
.toolbar .right{margin-left:auto;display:flex;gap:8px;align-items:center}
.toolbar label.check{display:flex;align-items:center;gap:5px;font-size:10px;color:#95a0b2}
.toolbar input[type=checkbox]{width:13px;height:13px;accent-color:var(--blue)}
.pagination{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;border-top:1px solid var(--line);font-size:10px;color:#a0a9b9;gap:10px}
.pagination>div{display:flex;align-items:center;gap:12px}
.pagination .button{height:28px;padding:0 10px;font-size:10px}
.source-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.source-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;min-width:0}
.source-card .source-head{display:flex;align-items:center;gap:11px}
.source-card .source-head>.tag{margin-left:auto}
.source-card h3{font-size:13px;word-break:break-word}
.source-card .source-url{display:block;font-size:10px;color:#9ca7ba;margin-top:7px;overflow-wrap:anywhere}
.source-details{display:grid;grid-template-columns:1fr 1fr;gap:15px 12px;margin:23px 0}
.source-details dt{font-size:9px;color:#a2acbb;margin-bottom:6px}
.source-details dd{margin:0;font-size:11px;font-variant-numeric:tabular-nums;color:#65728a}
.source-card-footer{border-top:1px solid var(--line);padding-top:14px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.source-card-footer .muted{font-size:9px}
.source-warning{background:#fff7ed;color:#ae8043;border-radius:7px;font-size:10px;padding:10px;line-height:1.7;margin:14px 0;word-break:break-word}
.progress-row{display:flex;gap:8px;align-items:center;min-width:100px}
progress{width:80px;height:4px;appearance:none;border:0;border-radius:4px;overflow:hidden;background:#edf0f7}
progress::-webkit-progress-bar{background:#edf0f7}
progress::-webkit-progress-value{background:#859af2}
progress::-moz-progress-bar{background:#859af2}
.message-cell{font-size:10px;color:#99a3b4;max-width:350px;line-height:1.8;word-break:break-word}
.empty{padding:55px 18px;text-align:center;color:#a0a9b8}
.empty-icon{color:#c1cadb;margin-bottom:13px}
.empty-icon svg{width:29px;height:29px}
.empty h3{color:#718099;font-size:13px;margin-bottom:8px}
.empty p{font-size:11px;line-height:1.8}
.empty .button{margin-top:18px}
.loading{padding:65px;text-align:center;color:#a0aabd;font-size:12px}
.page-footer{display:flex;justify-content:space-between;color:#b0b7c4;font-size:9px;padding:0 32px 20px;gap:12px}
.error-text{color:var(--red);font-size:11px;line-height:1.7;min-height:10px;margin:9px 0}
.error-panel{padding:24px}
.login-screen{min-height:100dvh;display:grid;place-items:center;padding:24px;background:#f5f6f9}
.login-card{width:360px;max-width:100%;background:#fff;border:1px solid var(--line);border-radius:21px;padding:34px;box-shadow:0 16px 65px #1f365707}
.brand-mark.large{width:44px;height:44px;font-size:31px;margin-bottom:24px}
.login-card h1{font-size:25px;margin-bottom:10px}
.login-card .muted{font-size:11px;line-height:1.8}
.login-card label{margin-top:28px}
.login-card input{width:100%;height:42px}
.login-hint{font-size:10px;color:#a5aebd;text-align:center;line-height:1.8;margin-top:24px}
.login-hint strong{font-weight:500}
dialog{border:1px solid #e3e7f0;border-radius:18px;padding:0;color:#354158;box-shadow:0 24px 100px #2036551a;max-width:calc(100vw - 32px);max-height:calc(100dvh - 48px)}
dialog::backdrop{background:#14253d36;backdrop-filter:blur(4px)}
.source-dialog{width:430px;padding:25px}
.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:22px}
.dialog-heading h2{line-height:1.5;word-break:break-word}
.dialog-heading .icon-button{flex-shrink:0}
.source-dialog label,.login-card label{display:block;font-size:11px;color:#7b879b;margin-bottom:8px}
.source-dialog input:not([type=checkbox]){width:100%;height:39px}
.source-dialog label:not(:first-child){margin-top:18px}
.field-hint{font-size:10px;color:#a2adbd;line-height:1.7;margin-top:7px}
.form-row{display:grid;grid-template-columns:1fr 1.6fr;gap:24px;align-items:end}
.input-unit{position:relative}
.input-unit input{padding-right:43px}
.input-unit span{position:absolute;right:12px;top:13px;font-size:10px;color:#a0aaba}
.switch-label{display:flex!important;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px!important}
.switch-label small{display:block;font-size:9px;margin-top:5px;color:#a4adbd}
.switch{appearance:none;width:31px;height:19px;border-radius:20px;background:#dfe3eb;position:relative;cursor:pointer;border:0;flex-shrink:0;padding:0}
.switch::after{content:'';position:absolute;left:3px;top:3px;width:13px;height:13px;background:white;border-radius:50%;box-shadow:0 1px 3px #26375022;transition:transform .15s}
.switch:checked{background:var(--blue)}
.switch:checked::after{transform:translateX(12px)}
.form-note{background:#f7f8fb;border-radius:8px;padding:11px;color:#99a3b5;line-height:1.8;font-size:10px;margin-top:22px}
.dialog-footer{display:flex;gap:8px;justify-content:flex-end;margin-top:15px}
.history-dialog{width:800px}
.history-head{padding:26px 27px 0}
.history-head .dialog-heading{margin-bottom:16px}
.detail-meta{color:#a2adbd;font-size:10px;margin-top:8px;line-height:1.7}
.detail-stats{display:flex;gap:36px;padding:17px 0 22px}
.detail-stats dt{font-size:10px;color:#a0aabc;margin-bottom:7px}
.detail-stats dd{margin:0;font-size:23px;font-weight:550;font-variant-numeric:tabular-nums;letter-spacing:-.6px}
.detail-stats .small-value{font-size:11px;letter-spacing:0;font-weight:400;margin-top:13px}
.chart-wrap{margin:0 27px 22px;border:1px solid #eef0f6;border-radius:10px;padding:14px 16px 12px;background:#fcfdff}
.chart-heading{display:flex;justify-content:space-between;font-size:10px;color:#9ca8bc;margin-bottom:12px}
.chart{display:block;width:100%;height:120px;overflow:visible}
.chart-line{fill:none;stroke:#7b93e8;stroke-width:2;vector-effect:non-scaling-stroke}
.chart-area{fill:#ecf1ff}
.chart-grid{stroke:#edf0f7;stroke-width:1;vector-effect:non-scaling-stroke}
.chart-dot{fill:#fff;stroke:#7590e8;stroke-width:2}
.chart-labels{display:flex;justify-content:space-between;font-size:9px;color:#b0b8c7;margin-top:8px}
.detail-section{padding:0 27px 14px;display:flex;justify-content:space-between;color:#a3adbd;font-size:10px}
.history-dialog .table-wrap{max-height:350px}
.history-dialog .table-wrap th{position:sticky;top:0}
.history-dialog td{font-size:10px}
.rule-value{max-width:220px;white-space:normal;word-break:break-word;font-size:10px;line-height:1.7;color:#929eb2}
.toast{position:fixed;bottom:25px;left:calc(50% + 100px);transform:translateX(-50%);background:#34425a;color:white;font-size:12px;line-height:1.6;padding:11px 18px;border-radius:10px;box-shadow:0 5px 25px #23355626;z-index:99;max-width:calc(100vw - 32px);width:max-content}
.toast.error{background:#9d4b4e}
.count-pill{display:inline-block;background:#f2f4f9;color:#97a4ba;font-size:9px;font-weight:400;padding:3px 6px;border-radius:5px}
.small-note{font-size:10px;color:#a3adbd;line-height:1.8;margin-top:15px}
.now-price-cell .delta{max-width:160px}
.tight{white-space:nowrap}
.intro-panel{padding:28px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.intro-panel p{font-size:11px;color:#9aa5b7;line-height:1.9;margin-top:8px}
.intro-panel h3{font-size:15px}
.no-margin{margin-bottom:0}

@media(min-width:1600px){main{padding-top:36px}
.workspace .topbar{padding-left:45px;padding-right:45px}
}

@media(max-width:1150px){.sidebar{width:175px;padding-left:12px;padding-right:12px}
.workspace{margin-left:175px}
main{padding:25px 22px}
.topbar{padding:0 22px}
.demo-banner{padding-left:22px;padding-right:22px}
.stats{gap:10px}
.stat{padding:14px}
.overview-bottom{grid-template-columns:1fr 1fr;gap:13px}
td,th{padding-left:13px;padding-right:13px}
.cell-site{max-width:130px}
.toast{left:calc(50% + 87px)}
}

@media(max-width:850px){.overview-bottom{grid-template-columns:1fr}
.source-cards{grid-template-columns:1fr}
.stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.page-heading{align-items:flex-start}
.heading-actions{padding-top:4px}
.stat-value{font-size:28px}
.sidebar{width:158px}
.brand{font-size:14px;gap:7px;padding:0 4px}
.brand-mark{width:30px;height:30px}
.brand small{font-size:7px}
.workspace{margin-left:158px}
.sidebar-bottom{font-size:9px}
.toolbar .right{margin-left:0}
.breadcrumb{font-size:10px}
.mode-label{display:none}
.overview .cell-site{display:none}
.overview th.site-column{display:none}
.page-footer{padding-left:22px;padding-right:22px}
.toast{left:calc(50% + 79px)}
}

@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}
}

.detail-stats dd .price{font-size:23px}
.detail-stats dd .price small{font-size:12px}

.source-actions{align-items:center;flex-wrap:wrap}
.source-actions .danger-quiet{margin-right:auto}
.button.danger-quiet{background:transparent;border-color:transparent;color:#b85b62}
.button.danger-quiet:hover{background:#fff1f1}
.button.danger{background:#b6535c;border-color:#b6535c;color:#fff}
.button.danger:hover{background:#a74750}
.change-notice{font-size:11px;line-height:1.8;color:#9c742f;background:#fff9ed;border:1px solid #f3e6c9;border-radius:8px;padding:10px 12px;margin-top:12px}
.delete-target{display:flex;flex-direction:column;gap:6px;background:#f7f8fb;padding:13px;border-radius:9px;overflow-wrap:anywhere}
.delete-target strong{font-size:13px;font-weight:550}
.delete-target span{font-size:11px;color:#96a2b5}
.delete-description{font-size:12px;line-height:1.9;color:#7d879b;margin-top:18px}
.archive-note,.history-source{overflow-wrap:anywhere;white-space:normal}
.source-dialog .source-actions .button,.delete-dialog .dialog-footer .button{min-height:44px}
.source-dialog .source-actions .danger-quiet{padding-left:0;padding-right:5px}

.collection-bar{border:1px solid #dfe6f7;background:#f8faff;border-radius:11px;padding:10px 13px;margin-bottom:14px}
.collection-bar-title{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#8a9ab4;margin-bottom:5px}
.collection-bar-title a{color:#627abd;text-decoration:none}
.collection-control{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 0}
.collection-name{font-size:11px;font-weight:500;min-width:0;overflow-wrap:anywhere}
.collection-name small{display:block;font-weight:400;color:#9ba7ba;font-size:10px;margin-top:4px}
.stop-button{color:#a1743e;border-color:#eadbc5;background:#fffaf3}
.stop-button:hover{background:#fff4e1}
.run-controls{margin-top:8px}
.tag.stopping{color:#ad803f;background:#fff7e8}
.tag.cancelled{color:#8e9bb0;background:#f2f4f8}
.source-card-footer{flex-wrap:wrap;gap:12px}
.source-card-footer .table-actions{flex-wrap:wrap;margin-left:auto}
.collection-control .table-actions{flex-shrink:0;gap:6px}
.source-card-footer .button,.collection-control .button,.run-controls .button{min-height:40px}


/* Shared additions; mobile layout is defined once below. */
.mobile-only,.filter-toggle{display:none}
.filter-options{display:contents}
.source-head>div{min-width:0}
.source-card-footer{flex-wrap:wrap}
.source-card-footer .table-actions{flex-wrap:wrap;margin-left:auto}

@media(max-width:650px){
 :root{--radius:10px;--muted:#8892a3}
 .sidebar{top:auto;bottom:0;right:0;width:auto;height:calc(56px + env(safe-area-inset-bottom));padding:3px 6px env(safe-area-inset-bottom);border:0;border-top:1px solid var(--line);background:#fffffff5;backdrop-filter:blur(12px)}
 .brand,.nav-label,.sidebar-bottom{display:none}
 nav{flex-direction:row;gap:2px;height:50px}
 nav a{flex:1;flex-direction:column;justify-content:center;gap:3px;padding:3px 0;min-height:44px;font-size:9px;position:relative;border-radius:8px}
 nav a svg{width:18px;height:18px}
 nav a .nav-count{position:absolute;right:7px;top:0;font-size:8px;padding:2px 4px}
 nav a.active{background:#f1f4ff}
 .workspace{margin-left:0;padding-bottom:calc(62px + env(safe-area-inset-bottom))}
 .topbar{height:42px;padding:0 12px}
 .breadcrumb{font-size:10px}.breadcrumb span{margin:0 7px}
 .topbar-right{gap:4px}.topbar .icon-button,.text-button{height:40px;min-width:40px}
 .demo-banner{padding:6px 12px;font-size:9px;line-height:1.5}
 main{padding:12px 10px 8px;min-height:calc(100dvh - 134px)}
 h1{font-size:20px;letter-spacing:-.5px}h2{font-size:17px}
 .page-heading{align-items:center;margin-bottom:12px;gap:8px}
 .page-heading .eyebrow,.page-heading p:not(.eyebrow){display:none}
 .heading-actions{padding:0;gap:5px}
 .button{height:34px;min-height:34px;padding:0 10px;font-size:11px;border-radius:7px;gap:5px}
 .button svg{width:13px;height:13px}
 .stats{gap:8px;margin-bottom:12px}
 .stat{padding:10px 12px;border-radius:10px}
 .stat-top{font-size:10px}.stat-icon{width:20px;height:20px}.stat-icon svg{width:14px;height:14px}
 .stat-value{font-size:24px;margin:4px 0;line-height:1.2}
 .stat-note{font-size:9px;line-height:1.4}
 .panel{border-radius:10px;margin-bottom:12px}
 .panel-heading{padding:10px 12px;min-height:42px}.panel-heading h3{font-size:12px}.panel-heading .sub{font-size:9px}.panel-heading .link{font-size:10px;min-height:28px}
 .overview-bottom{gap:12px}.source-list,.run-list{padding:0 12px 3px}
 .source-line,.run-line{padding:10px 0;gap:9px}.source-initial{width:28px;height:28px;border-radius:8px}
 .source-info small,.run-info p{margin-top:3px}
 .page-footer{padding:4px 12px 8px;font-size:8px;gap:5px;flex-wrap:wrap}
 .toast{left:50%;bottom:calc(68px + env(safe-area-inset-bottom));font-size:11px;padding:9px 12px}
 /* One search row. Filters remain expanded until the user closes them. */
 .toolbar{gap:6px;margin-bottom:10px;align-items:stretch}
 .search-box{max-width:none;min-width:0;flex:1}
 .toolbar input:not([type=checkbox]),.toolbar select{font-size:16px;height:36px}
 .search-box input{padding-left:30px}.search-box svg{top:11px;left:10px}
 .filter-toggle{display:inline-flex;height:36px;padding:0 10px}
 .filter-toggle.has-filters{color:var(--blue);border-color:#cdd6fc;background:#f4f6ff}
 .filter-options{display:none;width:100%;gap:6px;padding-top:2px;grid-template-columns:repeat(3,minmax(0,1fr))}
 .filters-open .filter-options,.run-toolbar .filter-options{display:grid}
 .run-toolbar .filter-options{grid-template-columns:repeat(2,minmax(0,1fr));padding-top:0}
 .toolbar select{width:100%;max-width:100%;padding-left:7px;padding-right:15px}
 .toolbar .right{grid-column:1/-1;margin:0;display:flex;justify-content:flex-end;gap:6px}
 .toolbar label.check{margin-right:auto;font-size:10px;min-height:34px;gap:5px}
 .toolbar input[type=checkbox]{width:16px;height:16px}
 .toolbar .right .button{height:34px;font-size:10px}
 /* Each item uses a title/price row and a small status/action row. */
 .responsive-table,.responsive-table tbody{display:block}
 .responsive-table thead{display:none}
 .responsive-table tr,.overview .responsive-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(96px,40%);padding:9px 12px 6px;gap:4px 10px;border-bottom:1px solid #edf0f5;align-items:center}
 .responsive-table tr:last-child{border-bottom:0}
 .responsive-table td{display:block;padding:0;border:0;min-width:0;max-width:none}
 .responsive-table .product-cell,.overview .responsive-table .product-cell{grid-column:1;grid-row:1;min-width:0;position:relative}
 .responsive-table .product-name{font-size:11px;line-height:17px;font-weight:550;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-height:34px}
 .responsive-table .product-name::after{content:'';position:absolute;inset:-4px 0;min-height:44px}
 .responsive-table .product-meta{font-size:9px;line-height:14px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .mobile-only{display:inline}
 .responsive-table .cell-site,.responsive-table .event-time,.responsive-table .product-history{display:none}
 .responsive-table .change-value,.responsive-table .now-price-cell,.overview .responsive-table .change-value{grid-column:2;grid-row:1;text-align:right;justify-self:stretch}
 .responsive-table .price{font-size:12px}.responsive-table .price small{font-size:9px}
 .price-pair{white-space:normal;overflow-wrap:anywhere}.old-price{font-size:10px}.price-arrow{margin:0 5px;font-size:10px}
 .delta{font-size:9px;margin-top:3px;line-height:1.4}
 .responsive-table .rule-value{font-size:9px;line-height:16px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
 .responsive-table .tag-cell,.overview .responsive-table .tag-cell{grid-column:1;grid-row:2;display:flex;gap:7px;align-items:center;justify-self:stretch;text-align:left;white-space:nowrap}
 .tag{font-size:8px;padding:3px 5px;gap:3px;border-radius:4px}.tag-dot{width:3px;height:3px}
 .responsive-table .time{font-size:8px}
 .responsive-table .event-action,.overview .responsive-table .event-action{grid-column:2;grid-row:2;justify-self:end;min-height:28px;display:flex;align-items:center;font-size:9px}
 .responsive-table .table-actions .button{height:28px;min-height:28px;padding:0 4px;font-size:9px;position:relative}
 .event-action .button::after{content:'';position:absolute;inset:-8px -4px}
 .responsive-table .product-status{grid-column:1;grid-row:2;min-height:25px;display:flex;align-items:center}
 .responsive-table .product-checked{grid-column:2;grid-row:2;text-align:right;justify-self:end}
 .product-checked .product-meta{font-size:8px;margin:0;line-height:12px}
 .runs-table tr{grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;padding-top:11px;padding-bottom:11px}
 .runs-table .run-status{grid-column:2;grid-row:1;justify-self:end}
 .runs-table .run-count{grid-column:1;grid-row:2}
 .runs-table .run-progress{grid-column:2;grid-row:2}.progress-row{min-width:90px;gap:6px}progress{width:55px}
 .runs-table .message-cell{grid-column:1/-1;grid-row:3;font-size:10px;line-height:1.6}
 .runs-table .message-cell .product-meta{display:inline;margin-left:7px;font-size:8px}
 .run-controls{margin-top:5px;text-align:right}
 .pagination{padding:7px 10px;font-size:9px;gap:6px}.pagination>div{gap:6px}.pagination .button{height:32px;min-height:32px;padding:0 8px;font-size:9px}
 /* Source cards use a compact header, two information rows, one action row. */
 .source-cards{gap:10px}.source-card{padding:12px;border-radius:10px}
 .source-card .source-head{gap:8px}.source-card h3{font-size:12px}.source-card .source-url{font-size:9px;margin-top:3px}
 .source-details{margin:13px 0;gap:9px 12px}.source-details>div{display:flex;align-items:center;gap:6px;justify-content:space-between;min-width:0}
 .source-details dt{font-size:9px;flex-shrink:0;margin:0}.source-details dd{font-size:10px;text-align:right;overflow-wrap:anywhere}
 .source-card-footer{padding-top:8px;gap:5px;display:block}
 .source-card-footer>.muted{display:none}
 .source-card-footer .table-actions{width:100%;justify-content:space-between;gap:6px;flex-wrap:nowrap}
 .source-card-footer .button{height:34px;min-height:34px;font-size:10px;padding:0 9px}
 .source-warning{font-size:10px;padding:8px;line-height:1.6;margin:10px 0}
 .small-note{font-size:9px;line-height:1.6;margin-top:10px}
 .collection-bar{padding:8px 10px;margin-bottom:10px;border-radius:9px}.collection-bar-title{font-size:9px;margin-bottom:2px}
 .collection-control{gap:6px;padding:3px 0}.collection-name{font-size:10px}.collection-name small{font-size:8px;margin-top:2px}
 .collection-control .table-actions{gap:4px}.collection-control .button,.run-controls .button{min-height:34px;height:34px;padding:0 7px;font-size:10px}
 .empty{padding:28px 14px}.empty-icon{margin-bottom:8px}.empty h3{font-size:12px}.empty p{font-size:10px}
 .intro-panel{padding:16px;display:block}.intro-panel .button{margin-top:12px}
 /* Forms retain 16px input text to avoid iPhone focus zoom. */
 dialog{max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px);border-radius:12px}
 .source-dialog{padding:16px;width:430px}.dialog-heading{gap:10px;margin-bottom:14px}.dialog-heading .eyebrow{display:none}
 .dialog-heading .icon-button{width:36px;height:36px;margin-top:-5px;margin-right:-5px}
 .source-dialog label,.login-card label{font-size:11px;margin-bottom:6px}.source-dialog label:not(:first-child){margin-top:12px}
 .source-dialog input:not([type=checkbox]),.login-card input{font-size:16px;height:38px}
 .field-hint{font-size:9px;margin-top:5px;line-height:1.6}.form-row{gap:12px;grid-template-columns:1fr 1.6fr}.input-unit span{top:12px}
 .switch-label small{font-size:8px;line-height:1.5;margin-top:3px}.source-dialog .switch-label{font-size:10px}
 .form-note{font-size:9px;line-height:1.7;padding:8px;margin-top:12px}.change-notice{font-size:10px;padding:8px;margin-top:9px}
 .error-text{margin:6px 0;min-height:0}.dialog-footer{margin-top:12px;gap:6px}
 .source-dialog .source-actions .button,.delete-dialog .dialog-footer .button{min-height:38px;height:38px;font-size:11px;padding:0 9px}
 .source-dialog .source-actions .danger-quiet{padding-left:0}
 .delete-description{font-size:11px;line-height:1.8;margin-top:13px}.delete-target{padding:10px}
 .history-dialog{max-width:calc(100vw - 16px)}.history-head{padding:16px 14px 0}.history-head h2{font-size:14px}
 .history-head .dialog-heading{margin-bottom:10px}.detail-meta{font-size:9px;line-height:1.5;margin-top:5px}
 .detail-stats{gap:20px;flex-wrap:wrap;padding:8px 0 13px;margin:0}.detail-stats dt{font-size:9px;margin-bottom:5px}
 .detail-stats dd,.detail-stats dd .price{font-size:20px}.detail-stats .small-value{font-size:10px;margin-top:8px}
 .chart-wrap{margin:0 14px 14px;padding:10px}.chart{height:85px}.chart-heading{font-size:9px;margin-bottom:7px}.chart-labels{font-size:8px;margin-top:5px}
 .detail-section{padding:0 14px 10px;font-size:9px}.history-dialog .table-wrap{max-height:300px}.history-dialog td,.history-dialog th{padding:9px 10px;font-size:9px}
 .login-card{padding:25px;border-radius:14px}.login-card .button{height:40px;font-size:12px}.loading{padding:35px 12px}
}

/* Mail setup follows the compact dialog system. */
textarea{font:inherit;resize:vertical;min-height:62px;border:1px solid #e3e7ee;border-radius:7px;padding:8px 10px;color:#566278;background:#fff;max-width:100%}
.mail-dialog{width:640px;padding:20px}
.mail-step{border-top:1px solid var(--line);padding:13px 0}
.mail-step h3{display:flex;align-items:center;gap:7px;margin-bottom:10px;font-size:12px}
.mail-step h3 b{display:grid;place-items:center;width:20px;height:20px;background:#edf1ff;color:var(--blue);border-radius:6px;font-size:10px}
.mail-step>select{width:100%;max-width:100%}
.mail-guide{font-size:11px;line-height:1.8;color:#7d889b;background:#f7f9fc;border-radius:8px;padding:10px;margin-top:8px}
.mail-guide a,.mail-help-link{color:var(--blue);font-size:10px;display:inline-block;margin-top:5px}
.mail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mail-field{display:flex;flex-direction:column;gap:5px;font-size:10px;color:#7b879b;margin:8px 0}
.mail-field input,.mail-field select,.mail-field textarea{width:100%;max-width:100%}
.mail-advanced{margin-top:10px;padding:9px 10px;background:#fafbfc;border:1px solid var(--line);border-radius:8px}
.mail-advanced summary{font-size:11px;color:#758299;cursor:pointer}
.mail-kinds{display:flex;flex-wrap:wrap;gap:5px 14px}.mail-kinds label{display:flex;align-items:center;gap:5px;font-size:10px;min-height:27px;color:#7f899b}.mail-kinds input{width:14px;height:14px;accent-color:var(--blue)}
.mail-enable{display:flex;justify-content:space-between;align-items:center;font-size:11px;gap:10px;margin-top:10px}.mail-enable small{display:block;font-size:9px;color:#98a2b3;margin-top:4px}
.mail-actions{display:flex;gap:7px;flex-wrap:wrap}.mail-actions .button{font-size:10px}
.mail-records{border-top:1px solid var(--line);padding-top:13px;margin-top:15px}.mail-records h3{font-size:12px;display:flex;align-items:center;justify-content:space-between}
.mail-record{padding:10px 0;border-top:1px solid #f0f2f5;font-size:10px}.mail-record>div{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.mail-record>div+div{justify-content:flex-start;margin-top:6px;line-height:1.6;color:#8b95a7}.mail-record strong{font-weight:500;overflow-wrap:anywhere}.mail-record .tag{flex-shrink:0}
@media(max-width:650px){.mail-dialog{padding:15px;max-width:calc(100vw - 16px)}.mail-dialog .dialog-heading{margin-bottom:9px}.mail-step{padding:10px 0}.mail-guide{font-size:10px;padding:8px}.mail-grid{gap:0 9px}.mail-field{font-size:10px}.mail-field input,.mail-field select,.mail-step>select,.mail-field textarea{font-size:16px;min-width:0}.mail-field input,.mail-field select,.mail-step>select{height:36px}.mail-grid .mail-field:has(input[type=password]){grid-column:1/-1}.mail-actions{gap:5px}.mail-actions .button{padding:0 8px;height:36px}.mail-kinds{gap:3px 10px}.mail-kinds label{min-height:30px}.mail-record>div:first-child{flex-wrap:wrap}.mail-record .time{font-size:9px}.mail-dialog .dialog-heading .field-hint{max-width:230px}}
