.panel-sidebar{overflow-y:auto}.panel-sidebar .product-icon{font-size:11px;font-weight:600}.panel-nav-symbol{width:17px;text-align:center;font-size:19px;line-height:1}.panel-nav-count{margin-left:auto}.panel-sidebar progress,.account-plan progress{width:100%;height:5px;accent-color:#667089;display:block;margin:15px 0}.panel-account{padding:16px 6px 0;font-size:10px;color:#5e6370}.button.quiet{border:0;min-height:0;padding:5px;font-size:10px;color:#696e7c;margin-left:8px}.panel-main{max-width:none;padding:35px 40px;min-height:calc(100vh - 70px)}.panel-heading{display:flex;justify-content:space-between;align-items:start;gap:20px;margin:3px 0 28px}.panel-heading h1{font-size:30px;font-weight:550;letter-spacing:-.035em}.panel-heading p{font-size:13px;margin-top:10px}.panel-section{margin-top:36px}.panel-section h2{font-size:19px;letter-spacing:-.02em;margin-bottom:18px}.panel-section .section-heading{margin:0}.panel-section .section-heading a{font-size:11px;color:#5c6376}.live-state{display:flex;align-items:center;white-space:nowrap;gap:2px;font-size:10px;color:#8b7762}.live-state .dot{background:#b19876;width:5px;height:5px}.live-state.connected{color:#47735d}.live-state.connected .dot{background:#438b68}.dashboard-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:15px}.dashboard-stats article,.detail-stats article{border:1px solid #e1e3e7;border-radius:13px;padding:22px;display:flex;flex-direction:column;gap:20px}.dashboard-stats article span,.detail-stats article span{font-size:12px;color:#6c707c}.dashboard-stats strong{font-size:32px;font-weight:550;letter-spacing:-.04em}.monitor-table-wrap{border:1px solid #e1e3e7;border-radius:12px;overflow:auto}.monitor-table td{font-size:11px;padding:20px 16px}.monitor-table th{padding:14px 16px}.monitor-table th:first-child,.monitor-table td:first-child{padding-left:22px}.monitor-name{display:block;max-width:290px}.monitor-name strong{display:block;font-size:12px;font-weight:550;color:#262930}.monitor-name small{display:block;margin-top:7px;color:#666c7b;font-size:10px;overflow:hidden;text-overflow:ellipsis}.monitor-name:hover strong{text-decoration:underline}.monitor-state{display:inline-flex;align-items:center;gap:1px;font-size:10px;white-space:nowrap;color:#347758;background:#f0f7f1;padding:6px 9px;border-radius:20px;font-weight:450;letter-spacing:0}.monitor-state .dot{width:5px;height:5px;margin-right:5px}.state-error{color:#a45338;background:#faf0e9}.state-error .dot{background:#ba7255}.state-pending,.state-queued{background:#f3f3ed;color:#807d4d}.state-pending .dot,.state-queued .dot{background:#a4a06c}.state-paused{background:#f1f1ee;color:#777}.state-paused .dot{background:#888}.monitor-filters{display:flex;gap:12px;margin-bottom:24px}.monitor-filters input{max-width:380px}.monitor-filters select{width:auto;max-width:220px}.last-update{font-size:10px;margin-top:20px;color:#686e7c}.panel-empty{text-align:center;border:1px dashed #d2d6e2;border-radius:14px;padding:65px 20px;background:#f9fafd}.panel-empty img{opacity:.7;margin-bottom:22px}.panel-empty h2{font-size:24px}.panel-empty p{font-size:13px;margin:12px 0 25px}.plain-empty{padding:35px;border:1px solid #e1e3e7;border-radius:12px;font-size:13px;color:#686e7c}.changes-list{display:grid;gap:15px}.change-card{padding:24px;border:1px solid #e1e3e7;border-radius:12px;min-width:0}.change-card>div:first-child{display:flex;justify-content:space-between;gap:20px;align-items:start}.change-card h3{font-size:15px;overflow-wrap:anywhere}.change-card time{font-size:10px;color:#666c7c;white-space:nowrap}.change-card pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.8;color:#424a5d;max-height:260px;overflow:auto}.change-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.change-actions .button{font-size:11px;min-height:35px;padding:8px 12px}.source-url{font-size:12px;color:#676d7e;overflow-wrap:anywhere;display:block;margin-top:8px}.panel-notice{border:1px solid #d6dae6;background:#edf0f7;padding:14px 17px;border-radius:8px;font-size:12px;line-height:1.8;margin-bottom:15px;color:#505972;overflow-wrap:anywhere}.panel-notice.error{background:#fff6ef;border-color:#f0dccb;color:#91532f}.panel-login{max-width:560px;margin:60px auto}.panel-login h1{font-size:43px;font-weight:520;letter-spacing:-.05em;margin:20px 0}.panel-login>p{font-size:14px;margin:14px 0 25px}.panel-login label{display:grid;gap:9px;font-size:12px;color:#5e6472}.panel-login input{margin-bottom:20px;min-height:48px}.panel-login .button{margin-bottom:15px}.login-code{font-size:34px;display:block;letter-spacing:.2em;font-weight:500;margin:20px 0 12px}.panel-login #login-challenge p{font-size:13px;margin-bottom:10px}.panel-login #login-challenge{border-top:1px solid #dcdfe8;margin-top:20px}.panel-main.editor-main{padding:0;height:calc(100vh - 70px);min-height:0;overflow:hidden}.editor-layout{display:grid;grid-template-columns:minmax(330px,430px) minmax(0,1fr);height:100%;grid-template-rows:minmax(0,1fr) auto}.editor-column{overflow-y:auto;padding:28px 26px;border-right:1px solid #e2e4e8}.editor-intro{margin-bottom:23px}.editor-intro h1{font-size:27px;letter-spacing:-.04em}.editor-intro p{font-size:12px;margin-top:9px}.setup-card{padding:23px;border:1px solid #dfe1e6;border-radius:14px;margin-bottom:20px;background:#fff}.setup-card h2{font-size:16px;display:flex;align-items:center;gap:10px;letter-spacing:-.02em;margin-bottom:20px}.setup-number{display:grid;place-items:center;background:#232528;color:#fff;border-radius:50%;font-size:11px;font-weight:500;width:24px;height:24px;flex-shrink:0}.setup-card label,.preference-form label{display:flex;flex-direction:column;gap:9px;font-size:12px;color:#4f5563;margin:18px 0}.setup-card h3{font-size:12px;font-weight:550;margin:22px 0 12px}.setup-card input,.setup-card select{border-color:#d1d5de;font-size:12px;min-height:43px}.setup-card .checkbox{flex-direction:row;align-items:center;gap:9px;font-size:11px;line-height:1.7}.setup-card .checkbox input{min-height:0;height:14px;width:14px}.url-actions{display:flex;align-items:center;gap:12px}.url-actions .button{padding:8px 16px;min-height:35px;font-size:12px}.rule-cards{display:grid;grid-template-columns:1fr 1fr;gap:9px}.rule-cards .rule-card{margin:0;padding:13px;border:1px solid #dfe1e8;border-radius:11px;position:relative;cursor:pointer;display:flex;flex-direction:column;gap:9px;min-height:135px;color:#24272e;transition:background .1s,border-color .1s}.rule-card.checked{border-color:#565c6c;box-shadow:0 0 0 2px #d7dbe4;background:#f9fafd}.rule-card input{position:absolute;right:10px;top:11px;width:14px!important;height:14px;min-height:0;accent-color:#272b34;margin:0}.rule-glyph{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#edeff3;color:#6e7588;font-size:15px}.checked .rule-glyph{color:white;background:#2b303d}.rule-card strong{font-size:12px;font-weight:550;line-height:1.4}.rule-card small{font-size:10px;color:#666c7d;line-height:1.6}.segmented{display:flex;gap:3px;border-radius:9px;padding:4px;background:#ebedf1;margin-bottom:17px}.segmented button{flex:1;min-width:0;border:1px solid transparent;border-radius:7px;font-size:11px;color:#646a7a;padding:9px 6px;line-height:1.5}.segmented button.selected{background:#fff;border-color:#d1d5de;color:#262c3a;box-shadow:0 1px 2px #1015250a}.selection-chip{background:#f1f2f5;display:flex;align-items:center;gap:8px;padding:10px;border-radius:7px;margin-bottom:6px}.selection-chip>span{background:#587cca;color:#fff;font-size:10px;padding:4px 7px;border-radius:4px}.selection-chip code{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.selection-chip button{border:0;font-size:19px;padding:0 3px;color:#5c6477}.selection-chip:nth-child(2)>span{background:#ba7a3c}#selection-settings>.small{font-size:10px;line-height:1.8;margin:9px 0}#selection-settings>.text-link{background:none;border:0;color:#3c4a6d;padding:10px 0;font-size:11px}#accessible-regions{margin:12px 0}#accessible-regions summary{font-size:11px;cursor:pointer;color:#555f7a}#region-options{max-height:260px;overflow:auto;display:grid;gap:5px;margin-top:12px}.region-option{padding:10px;text-align:left;border:1px solid #d8dce5;border-radius:6px;font-size:11px;background:#fff;display:grid;gap:4px;color:#51596c;line-height:1.6}.region-option small{font-size:9px;color:#666d7e}.region-option.selected{background:#e5e9f2;border-color:#8391b7}.interval-presets{display:flex;flex-wrap:wrap;gap:6px}.interval-presets button{border:0;background:#edeef2;border-radius:20px;padding:9px 13px;font-size:11px;color:#585e6e}.interval-presets button.selected{background:#23262f;color:#fff}.interval-presets button:disabled{opacity:.4}.telegram-destination{display:inline-flex;gap:2px;align-items:center;background:#eceff5;border:1px solid #d4dbe8;color:#3b5178;padding:9px 12px;font-size:10px;border-radius:20px;line-height:1.6}.advanced-options{margin-top:22px;border-top:1px solid #dfe2eb;padding-top:16px}.advanced-options>summary{font-size:11px;color:#656d82;cursor:pointer;line-height:1.8}.advanced-options>.small{font-size:10px}.preview-column{background:#f5f6f8;min-width:0;overflow:auto;padding:28px 30px}.preview-instruction{display:inline-block;background:#eef2fc;color:#4d70c4;border-radius:25px;padding:11px 17px;font-size:11px;line-height:1.7;margin-bottom:25px}.browser-capture{border:1px solid #d9e0ee;box-shadow:0 0 0 3px #e7ebf4;border-radius:12px;overflow:hidden;background:#fff}.capture-bar{height:39px;display:flex;align-items:center;padding:8px 12px;gap:15px;background:#fafbfc;border-bottom:1px solid #e7e9ee;font-size:9px;color:#afb4c1}.capture-bar>span:last-child{background:#fff;border:1px solid #dbdee6;color:#636b80;border-radius:5px;padding:5px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.capture-surface{position:relative;cursor:crosshair;line-height:0}.capture-surface img{display:block;width:100%;height:auto;user-select:none}.capture-surface #selection-overlay{position:absolute;inset:0;pointer-events:none}.region-box{position:absolute;border:2px solid #527ddf;background:#527ddf08;border-radius:4px;box-shadow:0 0 0 2px #527ddf22}.region-box b{position:absolute;right:0;top:0;line-height:1;padding:5px 7px;background:#527ddf;color:white;font-size:9px;border-radius:0 0 0 4px}.region-1{border-color:#bf8346;background:#bf834608;box-shadow:0 0 0 2px #bf834622}.region-1 b{background:#bf8346}.region-2{border-color:#6a7a9b;background:#6a7a9b08}.region-2 b{background:#6a7a9b}#hover-region{position:absolute;pointer-events:none;border:1px solid #5f85dd;background:#5f85dd16}.capture-caption{font-size:9px;color:#666c7c;line-height:1.9;margin-top:16px}.preview-empty{min-height:450px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;border:1px dashed #d3d7e2;border-radius:12px;background:#f9fafd;gap:20px}.preview-empty h2{font-size:21px;max-width:450px;color:#666d7f}.preview-empty p{font-size:12px;overflow-wrap:anywhere}.preview-empty img{opacity:.4}.preview-retry{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.preview-retry .button{font-size:11px;padding:9px 12px;min-height:35px}.loading-spinner{height:28px;width:28px;border:2px solid #d7dce9;border-top-color:#677393;border-radius:50%;animation:preview-spin 1s linear infinite}@keyframes preview-spin{to{transform:rotate(360deg)}}.source-extraction{padding:25px}.source-extraction pre,.extracted-text{font:11px/1.9 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;color:#4a5265;max-height:370px;overflow:auto;margin:15px 0 0}.source-extraction p{font-size:12px}.editor-save{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #dcdfe7;padding:15px 26px;background:#fff;z-index:3;box-shadow:0 -3px 14px #31395004}.editor-save>div:first-child{max-width:650px}.editor-save p{font-size:12px;line-height:1.7;color:#3a4255}.editor-save small{font-size:9px;color:#636c84;display:block;margin-top:4px}.editor-save>div:last-child{display:flex;gap:8px;flex-shrink:0}.editor-save .button{font-size:12px;min-height:40px}.mobile-editor-tabs{display:none}.monitor-detail-heading h1{font-size:29px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.monitor-detail-heading>div>p{font-size:12px;margin-top:12px}.detail-actions{display:flex;gap:10px;margin:24px 0 30px}.danger{color:#9a5b44}.detail-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:30px}.detail-stats article{gap:17px}.detail-stats strong{font-size:17px;font-weight:500;line-height:1.6}.detail-tabs{display:flex;gap:27px;border-bottom:1px solid #dadee7;margin:30px 0 25px;overflow:auto}.detail-tabs button{padding:13px 0;border:0;border-bottom:2px solid transparent;font-size:13px;color:#6d7589;white-space:nowrap}.detail-tabs button.selected{color:#1d2538;border-bottom-color:#1d263c}.detail-overview{display:grid;grid-template-columns:minmax(0,2fr) minmax(230px,1fr);gap:20px}.observed-price{font-size:30px;color:#3c4a6e}.panel-main dl{margin:22px 0;font-size:12px}.panel-main dt{color:#6a7286;margin-top:18px;font-size:11px}.panel-main dd{margin:7px 0 0;color:#363d4e;line-height:1.8;overflow-wrap:anywhere}.history-note{font-size:12px;margin-bottom:20px}.account-plan{max-width:700px;border:1px solid #d7dbe7;border-radius:13px;padding:35px}.account-plan h2{font-size:21px;margin:20px 0}.account-plan>strong{font-size:38px;font-weight:500;letter-spacing:-.04em}.account-plan>strong>small{font-size:20px;color:#6e7893;letter-spacing:0}.account-plan p{font-size:12px;margin:22px 0}.account-plan>a{margin:10px 15px 0 0}.preference-form{max-width:550px}.preference-form label{margin:0 0 24px}.preference-form .button{margin-top:5px}#toast{position:fixed;bottom:22px;right:25px;z-index:30;background:#262b38;color:white;max-width:400px;padding:15px 22px;border-radius:10px;font-size:12px;line-height:1.8;box-shadow:0 10px 40px #0002}#panel-backdrop{display:none}
@media(min-width:1700px){.editor-layout{grid-template-columns:475px minmax(0,1fr)}.editor-column{padding:32px}.setup-card{padding:25px}.preview-column{padding:35px 40px}.rule-card strong{font-size:13px}.rule-card small{font-size:11px}}
@media(max-width:1200px){.panel-main{padding:30px}.editor-layout{grid-template-columns:350px minmax(0,1fr)}.editor-column{padding:22px 18px}.setup-card{padding:18px}.preview-column{padding:25px 20px}.dashboard-stats{gap:10px}.dashboard-stats article{padding:17px}.dashboard-stats article span{font-size:10px}.dashboard-stats strong{font-size:28px}.editor-save>div:first-child{max-width:400px}.editor-save p{font-size:11px}}
@media(max-width:950px){.editor-layout{grid-template-columns:330px minmax(0,1fr)}.preview-column{padding:20px 15px}.preview-instruction{font-size:9px;padding:9px 12px}.setup-card{padding:16px}.editor-save{padding:14px 18px;gap:12px}.editor-save p{font-size:10px}.editor-save .button{font-size:11px;padding:10px 13px}.detail-stats{gap:10px}.detail-stats strong{font-size:14px}.detail-overview{grid-template-columns:1fr}.dashboard-stats{grid-template-columns:repeat(3,1fr)}.panel-heading h1{font-size:27px}.monitor-filters{flex-wrap:wrap}.monitor-filters input{max-width:none;flex-basis:100%}.monitor-filters select{flex:1;max-width:none}}
@media(max-width:800px){.editor-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;height:calc(100% - 45px)}.mobile-editor-tabs{display:flex;height:45px;border-bottom:1px solid #dee1e9;padding:4px 20px;gap:12px;background:#f5f7fb}.mobile-editor-tabs button{font-size:12px;padding:7px 17px;border:0;border-radius:6px;color:#6a748e}.mobile-editor-tabs button.selected{background:white;box-shadow:0 0 0 1px #d5dae8;color:#303c5c}.editor-column{padding:25px;max-width:650px;margin:auto;width:100%;height:100%}.preview-column{display:none}.editor-layout.show-preview>.editor-column{display:none}.editor-layout.show-preview>.preview-column{display:block}.editor-layout .editor-save{grid-row:2}.editor-save>div:first-child{flex:1;min-width:0}.rule-cards{grid-template-columns:1fr 1fr}.setup-card{padding:23px}.rule-card strong{font-size:13px}.rule-card small{font-size:11px}.rule-cards .rule-card{padding:17px;min-height:145px}.capture-caption{font-size:10px}}
@media(max-width:700px){.panel-sidebar{width:250px}.panel-main{padding:28px 20px;min-height:calc(100vh - 62px)}.panel-main.editor-main{height:calc(100dvh - 62px);min-height:0}.panel-heading{gap:15px;flex-wrap:wrap}.panel-heading h1{font-size:28px}.panel-heading .button{font-size:12px;padding:10px 17px}.panel-heading p{font-size:12px}.dashboard-stats{grid-template-columns:1fr 1fr;gap:12px}.dashboard-stats article{padding:20px}.dashboard-stats article span{font-size:11px}.dashboard-stats strong{font-size:30px}.panel-workspace .topbar{gap:7px}.panel-workspace .top-actions{gap:10px}.live-state{font-size:8px}.panel-workspace .breadcrumb{max-width:45%;overflow:hidden;white-space:nowrap}.panel-workspace .breadcrumb strong{overflow:hidden;text-overflow:ellipsis}.panel-workspace .breadcrumb>a{display:none}.panel-empty{padding:45px 22px}.panel-empty h2{font-size:24px}.panel-login{margin:20px auto}.panel-login h1{font-size:38px}.panel-login>p{font-size:13px}.panel-main .plain-empty{padding:25px;font-size:12px}.change-card{padding:20px}.change-card>div:first-child{flex-direction:column;gap:8px}.source-url{font-size:11px}.panel-empty p{font-size:12px}.editor-column{padding:22px 16px}.editor-save{padding:13px 15px;gap:12px;flex-wrap:wrap}.editor-save>div:first-child{flex-basis:100%;max-width:none}.editor-save>div:last-child{width:100%;justify-content:flex-end}.editor-save p{font-size:11px}.editor-save .button{min-height:38px;font-size:12px}.editor-save small{font-size:9px}.setup-card{padding:21px}.setup-card label{font-size:12px}.rule-cards .rule-card{padding:13px;min-height:135px}.rule-card strong{font-size:12px}.rule-card small{font-size:10px}.preview-column{padding:23px 16px}.preview-instruction{font-size:11px;line-height:1.7;padding:11px 14px;margin-bottom:20px}.monitor-detail-heading h1{font-size:26px;gap:10px}.detail-stats{grid-template-columns:1fr}.detail-stats article{padding:20px;gap:12px}.detail-stats strong{font-size:18px}.detail-actions{gap:7px}.detail-actions .button{font-size:11px;min-height:38px;padding:9px 12px}.detail-tabs{gap:23px}.detail-tabs button{font-size:12px}.account-plan{padding:26px}.account-plan h2{font-size:22px}.preference-form{padding:23px}#toast{left:20px;right:20px;bottom:20px;max-width:none}.menu-open #panel-backdrop:not([hidden]){display:block;position:fixed;inset:0;border:0;background:#0c122155;z-index:9}}

.change-entry{padding:12px 0;border-bottom:1px solid #eee;overflow-wrap:anywhere}.change-entry p,.change-entry del{white-space:pre-wrap;display:block;margin:6px 0}.change-entry a{font-weight:600}.capture-surface{cursor:crosshair}#hover-region{pointer-events:none;background:rgba(55,103,240,.12);outline:2px solid #376ef0}
.panel-sidebar{background:linear-gradient(165deg,#f9fbfd,#f5f9fd 65%,#f5f7ff)}
.panel-sidebar .nav-item.active{background:#e3ecf7;color:#172d4b}
.detail-stats article:nth-child(3n+1){background:#f3f6fb}.detail-stats article:nth-child(3n+2){background:#f2f7fd}.detail-stats article:nth-child(3n){background:#f2f5ff}
.panel-login{background:linear-gradient(145deg,#fff 70%,#f0f4fb);border:1px solid #e4e8ef;border-radius:24px;padding:32px;max-width:650px}
.auth-divider{margin:26px 0 18px;display:flex;align-items:center;gap:15px;color:#666b73}.auth-divider:before,.auth-divider:after{content:'';height:1px;background:#dce1e9;flex:1}
#email-form,#verify-email,#digest-form{display:grid;gap:16px}.email-actions{display:flex;flex-wrap:wrap;gap:10px}.email-actions .quiet{font-size:13px}
#email-settings{margin-top:24px}.preference-form h2{margin-bottom:12px}
.panel-main{padding-bottom:max(32px,env(safe-area-inset-bottom))}
@media(max-width:700px){.panel-login{padding:22px 18px}.panel-login h1{font-size:30px}}
/* Client-rendered preview. The frame scrolls inside a fixed viewport so a long page
   cannot push the editor's save bar off screen; its height comes from the frame's
   own measurement, clamped by the server's cap. */
.simplified-preview{border:1px solid #d9e0ee;box-shadow:0 0 0 3px #e7ebf4;border-radius:12px;overflow:hidden;background:#fff}
#preview-frame{display:block;width:100%;height:520px;max-height:1000px;border:0;background:#fff}
@media(max-width:700px){#preview-frame{height:62vh}}

.preview-mode-label{font-size:12px;color:var(--muted,#646971);margin:0 0 8px}
.preview-device{display:flex;justify-content:flex-end;gap:6px;margin-bottom:8px}
.preview-device button{border:1px solid #d7d9de;background:#fff;border-radius:7px;padding:5px 10px;font:inherit;font-size:12px;cursor:pointer}
.styled-viewport{position:relative;height:72vh;min-height:520px;max-height:850px;overflow:hidden}
#preview-frame.is-styled{position:absolute;left:0;top:0;max-height:none;width:1440px;transform-origin:0 0}
@media(max-width:700px){.styled-viewport{min-height:420px;height:65vh}}

.editor-update{position:fixed;z-index:150;left:50%;top:14px;transform:translateX(-50%);display:flex;align-items:center;gap:14px;max-width:calc(100vw - 24px);padding:12px 16px;background:#e9edff;color:#403521;border:1px solid #8295df;border-radius:10px;box-shadow:0 4px 24px #0002;font-size:14px}
.editor-update button{flex-shrink:0;border:0;border-radius:8px;padding:9px 14px;background:#212327;color:white;cursor:pointer;font:inherit}
.guided-preview{border:1px solid #dcdee4;border-radius:16px;background:#fff;padding:26px}
.guided-heading{display:flex;align-items:flex-start;gap:14px}.guided-heading h2{margin:0 0 6px;font-size:24px}.guided-heading p,.guided-instruction{color:#616673;line-height:1.5;margin:0 0 16px}
.guided-icon{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border-radius:12px;background:#e6ebf4;color:#2a4670;font-size:24px}
.guided-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}.guided-search{display:grid;gap:7px;font-weight:600}.guided-search input{width:100%;box-sizing:border-box;border:1px solid #d0d4de;border-radius:9px;padding:12px;font:inherit;background:#fff}
.candidate-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;max-height:540px;overflow:auto;margin:12px 0;padding:2px}
.candidate-card{display:flex;flex-direction:column;gap:8px;align-items:flex-start;text-align:left;background:#f8f9fb;border:1px solid #dcdee4;border-radius:11px;padding:15px;min-width:0;cursor:pointer;font:inherit;color:#23252a;overflow-wrap:anywhere}
.candidate-card:hover,.candidate-card:focus-visible{outline:2px solid #8392aa;outline-offset:0}.candidate-card.selected{background:#e8edf5;border-color:#335281}.candidate-card strong{font-size:15px;line-height:1.4}.candidate-card>span:not(.candidate-tag){font-size:13px;color:#5e6472}.candidate-card small{margin-top:auto;color:#274574;font-size:12px;font-weight:600}.candidate-tag{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#616673}
.guided-result{margin-top:20px;border-top:1px solid #e1e3e8;padding-top:16px}.guided-result h3{color:#274574}.guided-result pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f1f3f7;padding:14px;border-radius:10px;font:14px/1.6 inherit;max-height:280px;overflow:auto}.available-reading p{padding:10px;border-bottom:1px solid #e9ebf0;font:inherit;overflow-wrap:anywhere}
@media(max-width:700px){.guided-preview{padding:17px}.guided-heading h2{font-size:21px}.candidate-list{grid-template-columns:1fr}.editor-update{width:calc(100vw - 48px);flex-wrap:wrap}}

/* The flight currency bar (CUR-03): the existing segmented control, at a phone-sized target.
   Colours come from tokens only, so it needs no dark counterpart. */
.flight-currency{display:flex;flex-direction:column;gap:9px;font-size:12px;color:var(--muted);margin-bottom:17px}
.flight-currency .segmented{margin-bottom:0}
.flight-currency .segmented button{min-height:44px}

/* ---- Dark theme for the account application (THEME-01). As in styles.css, the light rules
   above are untouched and this block only restates the colours they hardcode. The region
   highlights and status dots keep their saturated hues: they read on either background. ---- */
@media(prefers-color-scheme:dark){
#preview-frame,.browser-capture,.candidate-card,.capture-bar,.capture-bar>span:last-child,
.detail-stats article:nth-child(3n),.detail-stats article:nth-child(3n+1),.detail-stats article:nth-child(3n+2),
.editor-save,.editor-update,.guided-preview,.guided-result pre,.guided-search input,.mobile-editor-tabs,
.mobile-editor-tabs button.selected,.panel-empty,.panel-login,.panel-notice,.panel-sidebar,.preview-column,
.preview-device button,.preview-empty,.region-option,.rule-card.checked,.segmented button.selected,
.setup-card,.simplified-preview{background:var(--surface)}
.candidate-card.selected,.interval-presets button,.segmented,.selection-chip,.rule-glyph,
.state-paused,.state-pending,.state-queued,.region-option.selected,.dashboard-stats article,
.detail-stats article,.change-card,.change-entry,.account-plan,.advanced-options{background:var(--surface-2)}
.auth-divider:before,.auth-divider:after{background:var(--line)}
/* The dark chips invert, exactly as the primary button does, or they vanish. */
#toast,.checked .rule-glyph,.editor-update button,.interval-presets button.selected,
.setup-number{background:var(--ink);color:var(--bg)}
.menu-open #panel-backdrop:not([hidden]){background:#000000aa}
/* Status and notice colours, lightened to stay legible on a dark plate. */
.monitor-state,.telegram-destination,.guided-icon{background:var(--mint);color:#6fcfaa}
.telegram-destination{border-color:#3d4655}
.candidate-card small,.guided-result h3{color:#6f94cf}
.state-error{background:#2b1f18;color:#e8a07e}
.panel-notice.error{background:#2b1f18;border-color:#5d4433;color:#e8a07e}
.danger{color:#e8a07e}
.state-paused .dot{background:var(--muted)}
.detail-tabs button.selected{border-color:var(--ink)}
.preview-instruction{background:var(--sky);color:#9db6ee}
/* Dimmed inks. */
#accessible-regions summary,#selection-settings>.text-link,.advanced-options>summary,.auth-divider,
.button.quiet,.candidate-card>span:not(.candidate-tag),.candidate-tag,.capture-bar,
.capture-bar>span:last-child,.capture-caption,.change-card time,.dashboard-stats article span,
.detail-stats article span,.detail-tabs button,.editor-save small,.guided-heading p,.guided-instruction,
.interval-presets button,.last-update,.live-state,.live-state.connected,.mobile-editor-tabs button,
.monitor-name small,.observed-price,.panel-account,.panel-login label,.panel-main dt,.panel-notice,
.panel-section .section-heading a,.plain-empty,.preview-empty h2,.preview-mode-label,.region-option,
.region-option small,.rule-card small,.rule-glyph,.segmented button,.selection-chip button,
.setup-card label,.preference-form label,.source-extraction pre,.extracted-text,.source-url,
.state-paused,.state-pending,.state-queued,.account-plan>strong>small{color:var(--muted)}
/* Inks that were nearly black. */
.candidate-card,.change-card pre,.detail-tabs button.selected,.editor-save p,.editor-update,
.mobile-editor-tabs button.selected,.monitor-name strong,.panel-main dd,.rule-cards .rule-card,
.segmented button.selected{color:var(--ink)}
.panel-sidebar .nav-item.active{background:var(--aqua);color:#a0b8d9}
/* Hairlines. */
.account-plan,.advanced-options,.available-reading p,.capture-bar,.capture-bar>span:last-child,
.change-card,.change-entry,.dashboard-stats article,.detail-stats article,.detail-tabs,.editor-column,
.editor-save,.guided-result,.loading-spinner,.mobile-editor-tabs,.monitor-table-wrap,.panel-login,
.panel-login #login-challenge,.panel-notice,.plain-empty,.rule-cards .rule-card,.setup-card,
.browser-capture,.candidate-card,.guided-preview,.guided-search input,.panel-empty,.preview-device button,
.preview-empty,.region-option,.segmented button.selected,.setup-card input,.setup-card select,
.simplified-preview,.rule-card.checked{border-color:var(--line)}
.panel-sidebar progress,.account-plan progress,.rule-card input{accent-color:var(--green)}
/* Shadows and rings. */
#toast,.editor-save,.editor-update,.segmented button.selected,.browser-capture,
.mobile-editor-tabs button.selected,.simplified-preview{box-shadow:0 2px 10px #00000055}
.rule-card.checked{box-shadow:0 0 0 1px #3a3f4a}
}

.capture-scroll{overflow:auto;max-height:75vh;background:#f1f3f6}.capture-tools{display:flex;justify-content:flex-end;gap:6px;padding:8px 12px;border-bottom:1px solid #dbdee6}.capture-tools button{border:1px solid #d2d6de;background:transparent;color:inherit;border-radius:7px;padding:5px 10px;font:inherit;font-size:12px;cursor:pointer}.capture-tools button[aria-pressed=true]{background:#e9edf5;color:#26324c}
