:root{--bg:#f5f7f8;--surface:#fff;--ink:#192e30;--muted:#7c898b;--line:#e8edee;--green:#167d66;--green-dark:#126653;--green-light:#edf7f2;--shadow:0 4px 20px #233c4210;--radius:14px;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);font-size:16px}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.46}button,a{transition:background .16s,color .16s,box-shadow .16s}a{color:var(--green);text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #9bdcc8;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #b0dfce;border-color:#79bca6}svg.icon{width:19px;height:19px;display:block;stroke-width:1.7;flex-shrink:0}span[data-icon]{display:inline-flex;align-items:center;justify-content:center}h1,h2,h3,p{margin:0}h1{font-size:32px;line-height:1.5;letter-spacing:-.8px;font-weight:650}h2{font-size:16px;font-weight:650}h3{font-size:16px;font-weight:650}small{font-size:14px}strong{font-weight:600}[hidden]{display:none!important}
.sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:white;border-right:1px solid var(--line);padding:32px 17px 20px;z-index:10;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;padding:0 11px;color:var(--ink);font-size:21px;font-weight:700;letter-spacing:-.6px}.brand small{display:block;color:#8b9798;font-size:12px;font-weight:400;letter-spacing:1.7px;margin-top:4px}.workspace{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:10px;padding:14px 10px;margin:32px 0 28px}.workspace strong{font-size:14px;display:block}.workspace small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.fixed-dot{width:5px;height:5px;background:#b9c5c5;border-radius:50%;margin-left:auto}.br-flag{display:inline-flex;position:relative;width:29px;height:21px;background:#278a4b;border-radius:4px;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden}.br-flag:before{content:"";width:18px;height:14px;background:#f5db5d;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}.br-flag i{position:absolute;width:9px;height:9px;border-radius:50%;background:#31598c}.br-flag.small{width:23px;height:16px;border-radius:3px}.br-flag.small:before{width:16px;height:12px}.br-flag.small i{width:7px;height:7px}.nav-label{font-size:12px;color:#9aa5a6;letter-spacing:2px;padding:0 16px;margin-bottom:13px}.nav-item{display:flex;width:100%;gap:12px;align-items:center;background:transparent;border:0;color:#7a8889;text-align:left;padding:13px 15px;margin:4px 0;border-radius:8px;font-size:15px}.nav-item.active{background:var(--green-light);color:var(--green);font-weight:600}.nav-item:hover{background:#f2f6f5}.nav-count{margin-left:auto;color:var(--green);font-size:12px;padding:2px 6px;background:#e0f0e9;border-radius:4px}.sidebar-bottom{margin-top:auto;padding-top:40px}.local-status{display:flex;align-items:flex-start;gap:8px;padding:20px 16px 16px;border-top:1px solid var(--line);margin-top:14px;font-size:14px}.local-status>span{width:6px;height:6px;border-radius:50%;background:#4aab84;margin-top:5px}.local-status small{display:block;color:#97a2a3;font-size:12px;margin-top:6px}.quit-button{display:flex;gap:10px;color:#8e9a9b;background:none;border:0;padding:10px 17px;font-size:14px}.quit-button svg{width:15px;height:15px}.version{font-size:12px;color:#adb6b7;letter-spacing:1px;padding:20px 16px 0}.app-main{margin-left:224px}.topbar{height:78px;padding:0 39px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line)}.breadcrumb{font-size:14px;color:#8b9798;display:flex;gap:17px;align-items:center}.breadcrumb span{color:#d2d9d9}.breadcrumb strong{color:#526364;font-size:14px;font-weight:500}.topbar-right{display:flex;align-items:center;gap:23px}.local-pill{font-size:12px;color:#899695;display:flex;align-items:center;gap:6px}.local-pill span{width:5px;height:5px;background:#6db194;border-radius:50%}.mode-control{display:flex;align-items:center;gap:7px;border:1px solid #e2e9e7;border-radius:7px;padding:8px 9px;color:#617571}.mode-control svg{width:15px;height:15px}.mode-control select{border:0;background:none;color:#526b62;font-size:14px;outline:none;cursor:pointer;padding-right:4px}.user-avatar{height:29px;width:29px;display:grid;place-items:center;background:#f0eee9;color:#7e867c;border-radius:50%;font-size:12px}main{max-width:1536px;padding:25px 39px 0;margin:0 auto}.notice{display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.7;padding:11px 15px;background:#eef3f7;border:1px solid #e0e8ee;border-radius:8px;color:#687e8d;margin-bottom:28px}.notice svg{width:15px;height:15px}.notice.live{background:#edf6f1;border-color:#dcece2;color:#60806e}.notice.error{background:#fff0ed;border-color:#f2d8d0;color:#aa5b49}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 28px}.page-heading p{font-size:14px;color:var(--muted);margin-top:8px;line-height:1.8}.eyebrow{font-size:12px;font-weight:600;color:#819b93;letter-spacing:1.8px;margin-bottom:8px}.button{border:1px solid transparent;border-radius:7px;padding:11px 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;font-size:14px;font-weight:500;min-height:39px}.button svg{height:16px;width:16px}.button.primary{background:var(--green);color:#fff;box-shadow:0 3px 5px #176a5c12}.button.primary:hover:not(:disabled){background:var(--green-dark)}.button.secondary{background:#fff;border-color:#dee6e4;color:#546a64}.button.secondary:hover:not(:disabled){background:#f7faf8}.text-button{display:inline-flex;gap:8px;align-items:center;border:0;background:transparent;font-size:14px;color:var(--green);padding:7px 0}.text-button:hover{color:#0c503f}.text-button svg{width:14px;height:14px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:22px}.stat-card{background:#fff;border:1px solid var(--line);padding:21px 22px 19px;border-radius:var(--radius);box-shadow:0 2px 4px #243c4203}.stat-label{display:flex;justify-content:space-between;align-items:center;color:#6b7d7d;font-size:14px}.stat-label svg{color:#a3b4b0;width:17px;height:17px}.stat-value{font-size:34px;line-height:1.4;letter-spacing:-1.1px;font-weight:600;font-variant-numeric:tabular-nums;margin:13px 0 8px}.stat-foot{font-size:12px;color:#96a2a2;display:flex;align-items:center;gap:5px}.mini-dot{width:4px;height:4px;background:#7dba9e;border-radius:50%}.stat-card.accent{background:linear-gradient(115deg,#eff7f0,#f8fbf2);border-color:#e0ecdd}.stat-card.accent .stat-value{color:var(--green)}.stat-card.accent .stat-label svg{color:#73a48a}.overview-grid{display:grid;grid-template-columns:minmax(0,1.95fr) minmax(270px,1fr);gap:21px;margin-bottom:24px}.card{border:1px solid var(--line);background:white;border-radius:var(--radius);overflow:hidden}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:23px 24px 18px}.card-heading h2{display:flex;align-items:center;gap:8px}.card-heading h2 svg{width:18px;height:18px;color:#76988d}.card-heading p{font-size:12px;margin-top:8px;color:#9ba6a6}.badge{display:inline-flex;gap:6px;align-items:center;font-size:12px;border-radius:5px;padding:5px 8px;white-space:nowrap;font-weight:500}.badge.neutral{background:#f0f3f4;color:#889798}.badge.slot{color:#368565;background:#ebf5ed}.badge.betting{color:#a7823c;background:#faf3e4}.badge.pending{color:#89948e;background:#f3f5f0}.badge.relevant{color:#398563;background:#eaf4ee}.badge.irrelevant{color:#9a9290;background:#f3f1f0}.badge.country{color:#53775e;background:#f2f6ef}.badge.error{color:#b46d57;background:#fcf0eb}.badge.running{background:#edf4fb;color:#5883a4}.scope-line{display:grid;grid-template-columns:1.25fr 1.1fr 1fr 1fr;gap:12px;margin:4px 24px 23px;padding-bottom:22px;border-bottom:1px solid #edf1ef}.field-label{font-size:12px;display:block;color:#99a5a4;margin-bottom:11px}.scope-line strong{display:flex;align-items:center;gap:6px;font-size:15px;white-space:nowrap;font-variant-numeric:tabular-nums}.scope-line small{font-weight:400;font-size:12px;color:#9aa5a2}.fixed-label{font-size:12px;color:#a4aea5;font-weight:400;border:1px solid #e7ece5;border-radius:3px;padding:1px 3px}.task-progress{margin:0 24px}.task-progress>div{display:flex;justify-content:space-between;gap:20px;font-size:12px;color:#788b84;margin-bottom:12px}.task-progress #taskMessage{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:75%}.task-progress #taskCounter{white-space:nowrap;color:#a5afaa}.task-progress progress{appearance:none;width:100%;height:5px;border:0;display:block;border-radius:9px;overflow:hidden;background:#eef2ef}.task-progress progress::-webkit-progress-bar{background:#eef2ef}.task-progress progress::-webkit-progress-value{background:#6eaf91;border-radius:9px}.task-progress progress:indeterminate{background:linear-gradient(90deg,#eef2ef,#93c5ad,#eef2ef);animation:pulse 1.5s ease infinite}.task-actions{display:flex;align-items:center;gap:17px;margin:20px 24px 19px}.task-actions .button{min-height:33px;padding:7px 12px;font-size:12px}.task-actions #taskSettings{margin-left:auto}.task-actions .text-button{font-size:12px}.log-details{border-top:1px solid #f0f3f1}.log-details summary{padding:12px 24px;font-size:12px;color:#90a099;cursor:pointer}.log-details summary span{float:right;color:#a5afa9}.log-details pre{max-height:190px;overflow:auto;margin:0;padding:14px 24px;background:#f7faf8;color:#718179;font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.subtle{font-size:12px;color:#9ea9a5}.distribution .card-heading{padding-bottom:22px}.distribution-row{margin:0 24px 18px}.distribution-row>div{display:flex;align-items:center;font-size:14px;color:#718279;gap:7px;margin-bottom:8px}.distribution-row>div>span:last-child{margin-left:auto;font-size:14px;font-weight:600;color:#52645c}.legend-dot{width:6px;height:6px;border-radius:2px}.legend-dot.slot{background:#6ba88b}.legend-dot.betting{background:#cfb57e}.legend-dot.other{background:#b2c0c4}.distribution-row progress{appearance:none;display:block;height:5px;width:100%;border:0;background:#f0f3f1;border-radius:4px;overflow:hidden}.distribution-row progress::-webkit-progress-bar{background:#f1f4f2}.slot-progress::-webkit-progress-value{background:#83b398}.bet-progress::-webkit-progress-value{background:#d2bc8b}.other-progress::-webkit-progress-value{background:#b7c4c6}.muted-note{color:#9aa69d;font-size:12px;line-height:1.8;display:flex;gap:6px;margin:3px 24px 19px}.muted-note svg{height:13px;width:13px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:14px}thead{color:#98a4a2;background:#fafcfb;font-weight:400}th{font-weight:400;padding:13px 24px;border-top:1px solid #f1f4f2;border-bottom:1px solid #edf1ee;font-size:12px}td{padding:16px 24px;border-bottom:1px solid #f0f3f1;color:#65766f}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdfb}.account-cell{display:flex;gap:10px;align-items:center;max-width:230px}.account-avatar{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;font-size:14px;font-weight:600;flex-shrink:0;background:#e7eee8;color:#719079}.avatar-1{background:#f1eae2;color:#a88b69}.avatar-2{background:#e7ecf0;color:#7992a5}.avatar-3{background:#efe8ef;color:#a184a5}.avatar-4{background:#f1ede0;color:#a69562}.account-info{min-width:0}.account-info strong{font-size:14px;color:#40564d;display:block;overflow:hidden;text-overflow:ellipsis;max-width:200px}.account-info small{display:block;font-size:12px;color:#a4aca7;max-width:200px;overflow:hidden;text-overflow:ellipsis;margin-top:5px}.numeric{font-variant-numeric:tabular-nums;color:#556c60}.domain-text{max-width:190px;overflow:hidden;text-overflow:ellipsis;display:block;color:#657f72;font-size:14px}.cell-sub{display:block;color:#a5afaa;font-size:12px;margin-top:5px}.row-action{background:#fff;border:1px solid #e6ece8;border-radius:5px;color:#688073;font-size:12px;padding:5px 9px}.row-action:hover{background:#edf5ee}.empty-state{padding:44px 20px 48px;display:flex;flex-direction:column;align-items:center;text-align:center;color:#8e9f95}.empty-icon{padding:13px;background:#f1f6f1;border-radius:12px;color:#8fad98;margin-bottom:14px}.empty-state h3{font-size:15px;font-weight:500;color:#6c8174;margin-bottom:8px}.empty-state p{font-size:14px;line-height:1.8;max-width:400px}.empty-state button{margin-top:15px}.compact h1{font-size:30px}.compact{margin-bottom:24px}.heading-actions{display:flex;gap:10px}.filter-bar{padding:18px 22px;display:flex;align-items:center;gap:12px}.search-box{display:flex;align-items:center;gap:8px;border:1px solid #e4eae6;border-radius:7px;padding:0 12px;background:#fff;min-width:170px;flex:1;max-width:340px}.search-box svg{height:15px;width:15px;color:#9baaa0}.search-box input{border:0;outline:none;box-shadow:none;min-width:0;width:100%;padding:10px 0;font-size:14px;color:#556c5e;background:transparent}.search-box input::placeholder{color:#a7b1aa}select{border:1px solid #e2e9e4;border-radius:6px;background:#fff;color:#788a7e;padding:9px 10px;font-size:14px}.result-count{margin-left:auto;color:#96a69b;font-size:12px;white-space:nowrap}.pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:14px 24px;color:#91a096;font-size:12px}.pagination:empty{display:none}.pagination button{border:1px solid #e1e8e3;background:white;border-radius:4px;padding:4px 8px;color:#74917f}footer{padding:25px 0 24px;color:#a7b1ac;font-size:12px;display:flex;align-items:center;gap:9px}.icon-button{padding:6px;background:transparent;border:0;border-radius:6px;color:#8c9e91}.icon-button:hover{background:#eff5f0}.icon-button svg{width:18px;height:18px}dialog{border:1px solid #e0e8e1;box-shadow:0 20px 70px #172f3029;border-radius:16px;color:var(--ink);padding:0;background:#fff}dialog::backdrop{background:#233b3444;backdrop-filter:blur(2px)}.settings-dialog{width:min(650px,calc(100vw - 30px));max-height:90vh}.dialog-heading{padding:23px 26px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.dialog-heading h2{font-size:20px;font-weight:600}.dialog-heading .eyebrow{font-size:12px;margin-bottom:5px}.dialog-scroll{padding:0 26px;max-height:calc(90vh - 155px);overflow:auto}.settings-section{padding:24px 0;border-bottom:1px solid #edf2ed}.settings-section:last-of-type{border:0}.settings-section h3{margin-bottom:8px}.settings-section p{font-size:14px;color:#8c9c90;line-height:1.8;margin-bottom:16px}.settings-section label,.review-form label{display:block;font-size:14px;color:#728476;margin:12px 0 6px}.settings-section input:not([type=checkbox]),textarea,.review-form select{width:100%;border:1px solid #dfe7e0;background:#fff;border-radius:6px;padding:10px 11px;color:#385842;font-size:14px;line-height:1.6;resize:vertical}.settings-section label>input,.settings-section label>textarea,.review-form label>textarea,.review-form label>select{display:block;margin-top:7px}.key-row{display:flex;align-items:center;gap:9px}.key-row input{min-width:0;flex:1}.key-row .text-button{white-space:nowrap}.field-help{font-size:12px;color:#95a295;display:block;margin-top:9px;line-height:1.6}.fixed-country{display:flex;gap:12px;align-items:center;background:#f2f7ef;border:1px solid #e3eddf;border-radius:8px;padding:14px;margin:16px 0}.fixed-country strong{font-size:14px;color:#59784f}.fixed-country small{display:block;font-size:12px;color:#91a087;margin-top:6px}.fixed-country>span:last-child{margin-left:auto;color:#9aac93}.fixed-country>span:last-child svg{width:15px;height:15px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 18px}.check-row{display:flex!important;align-items:flex-start;gap:10px}.check-row input{margin-top:3px;accent-color:var(--green)}.check-row small{display:block;font-size:12px;color:#95a092;line-height:1.7;margin-top:6px}.storage-note{font-size:12px;color:#a0aa9d;overflow-wrap:anywhere;line-height:1.8;padding-bottom:20px}.dialog-footer{display:flex;justify-content:space-between;align-items:center;padding:17px 26px;border-top:1px solid var(--line);gap:14px}.dialog-footer>span{font-size:14px;color:#a57a62}.detail-dialog{position:fixed;left:auto;right:0;top:0;bottom:0;margin:0;border-radius:15px 0 0 15px;width:min(490px,95vw);height:100vh;max-height:100vh}.detail-dialog .dialog-scroll{max-height:calc(100vh - 350px);padding-top:23px;padding-bottom:15px}.detail-header{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:24px}.detail-group{margin:20px 0}.detail-group h3{color:#97a491;font-size:12px;font-weight:400;margin-bottom:9px}.detail-group p,.detail-group a{font-size:14px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap}.detail-group ul{padding-left:18px;font-size:14px;line-height:1.9;color:#718270}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.review-form{position:absolute;bottom:0;left:0;right:0;background:white;padding:12px 26px 22px;border-top:1px solid var(--line)}.review-form label{margin-top:9px}.review-form select{padding:7px}.review-form textarea{font-size:14px}.review-form button{margin-top:10px;width:100%}.toast{position:fixed;bottom:26px;left:calc(50% + 80px);transform:translateX(-50%);background:#294a3c;color:#fff;border:1px solid #3c5f4e;border-radius:9px;box-shadow:var(--shadow);padding:12px 18px;font-size:14px;max-width:70vw;z-index:100}.history-logs{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.9;color:#728170;padding:17px;background:#f7faf5;border-radius:8px;margin:20px 0}.history-summary{padding-top:18px;color:#6d806a;font-size:14px;line-height:2}.error-text{color:#b3765d}.row-wrap{max-width:340px;white-space:normal;line-height:1.7}.history-mode{color:#9aa494;font-size:12px}
@keyframes pulse{0%,100%{opacity:.5}50%{opacity:1}}
@media(min-width:1600px){main{padding-top:34px}.page-heading{margin-bottom:31px}.stat-card{padding:24px}.stat-value{font-size:39px}.overview-grid{grid-template-columns:2fr 1fr}.card-heading{padding-top:26px}.scope-line{margin-top:10px;margin-bottom:27px}.task-actions{margin-top:27px;margin-bottom:23px}}
@media(max-width:1150px){.sidebar{width:190px;padding-left:12px;padding-right:12px}.brand{font-size:20px;padding:0 8px;gap:8px}.brand img{width:31px;height:31px}.workspace{padding-left:8px;gap:7px}.workspace strong{font-size:12px}.workspace small{font-size:12px}.app-main{margin-left:190px}.topbar{padding:0 24px}main{padding:22px 24px 0}.stat-grid{gap:12px}.stat-card{padding:17px 15px}.stat-foot{font-size:12px}.stat-value{font-size:30px}.overview-grid{grid-template-columns:1fr;gap:18px}.distribution{display:none}.page-heading h1{font-size:28px}.card-heading{padding:21px}.scope-line{margin-left:21px;margin-right:21px}th,td{padding-left:20px;padding-right:20px}}
@media(max-width:760px){.sidebar{width:67px;padding:23px 8px}.brand{padding:0 8px}.brand>span,.workspace,.nav-label,.nav-item:not(.active) .nav-count,.sidebar-bottom .local-status,.version{display:none}.brand img{width:32px;height:32px}.sidebar nav{margin-top:33px}.nav-item{font-size:0;padding:13px 15px;gap:0;position:relative}.nav-item .nav-count{font-size:12px;position:absolute;top:4px;right:4px;padding:1px 4px}.quit-button{font-size:0;padding:16px}.sidebar-bottom{padding-top:10px}.app-main{margin-left:67px}.topbar{height:65px;padding:0 18px}.topbar-right{gap:12px}.local-pill,.user-avatar{display:none}main{padding:18px 16px 0}.notice{font-size:12px;padding:9px 12px;margin-bottom:22px}.page-heading{align-items:flex-start;flex-direction:column;gap:16px}.page-heading h1{font-size:26px}.page-heading p{font-size:14px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-card{padding:16px}.stat-label{font-size:12px}.stat-value{font-size:32px}.scope-line{grid-template-columns:1fr 1fr;row-gap:20px}.task-actions{gap:10px}.task-actions #taskSettings{margin-left:0}.task-progress>div{font-size:12px}.task-progress #taskMessage{max-width:65%}.card-heading{padding:19px}.card-heading h2{font-size:15px}.filter-bar{flex-wrap:wrap;padding:15px;gap:9px}.search-box{flex-basis:100%;max-width:none}.filter-bar select{font-size:12px}footer{font-size:12px;flex-wrap:wrap;gap:5px}.dialog-heading,.dialog-footer{padding:19px}.dialog-scroll{padding:0 19px}.form-grid{gap:0 10px}.form-grid label{font-size:12px}.key-row{flex-wrap:wrap}.key-row input{flex-basis:100%}.toast{left:50%;max-width:90vw}.history-mode{display:none}.recent-card th:nth-child(4),.recent-card td:nth-child(4){display:none}.review-form{padding-left:19px;padding-right:19px}.detail-dialog .dialog-scroll{padding-left:19px;padding-right:19px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

#profilesTable{max-height:600px;overflow:auto}#sourceTable{max-height:500px;overflow:auto}
.server-login{display:grid;place-items:center;min-height:100vh;padding:24px;background:#f4f8f5}.server-login .login-card{width:min(440px,100%);background:#fff;padding:40px;border:1px solid #e0e8e1;border-radius:16px;box-shadow:0 18px 55px #254e3210}.login-card h1{font-size:29px;margin:14px 0}.login-card p{line-height:1.7;color:#647c6c;font-size:15px}.login-card .eyebrow{margin-top:18px;font-size:12px}.login-card label{display:block;font-size:15px;margin-top:22px}.login-card input{display:block;width:100%;margin-top:9px;padding:12px;border:1px solid #dfe7e0;border-radius:7px;font-size:16px}.login-card .button{width:100%;justify-content:center;margin-top:10px}.login-card .login-error{min-height:24px;color:#a74b3c;margin-top:15px}.login-card small{display:block;margin-top:25px;line-height:1.8;color:#84958a;font-size:14px}

.story-image{display:block;max-width:100%;max-height:min(560px,max(180px,calc(100vh - 470px)));margin:12px auto;object-fit:contain;border-radius:12px;background:#edf2f2}.story-image-download{display:inline-block;margin:0 18px 12px 0}.story-preview small{display:block;color:var(--muted);line-height:1.6}
.manual-keywords-card{margin-bottom:24px}.manual-keyword-form{display:grid;grid-template-columns:190px minmax(180px,1fr) auto;gap:18px;align-items:end;padding:0 24px}.manual-keyword-form label{display:flex;flex-direction:column;gap:9px;font-size:14px;color:#657c70;align-self:start}.manual-keyword-form select{width:100%;padding:11px}.manual-keyword-form textarea{min-height:90px}.manual-keyword-form .button{margin-bottom:2px;white-space:nowrap}.manual-keyword-note,.manual-keyword-status{margin:12px 24px;font-size:14px;line-height:1.8}.manual-keyword-status{color:#4e7768;min-height:20px}.configured-keywords{border-top:1px solid var(--line);padding:17px 24px;color:#688073;font-size:14px}.configured-keywords summary{cursor:pointer}.keyword-list-group{margin:20px 0 10px}.keyword-list-group h3{font-size:14px;font-weight:500;margin-bottom:10px}.keyword-list-group h3 small{font-weight:400;color:#96a69b;margin-left:7px}.keyword-chips{display:flex;gap:8px;flex-wrap:wrap}.keyword-chip{display:flex;align-items:center;gap:9px;padding:5px 8px 5px 11px;background:#f0f6f3;border:1px solid #e0ebe5;border-radius:7px;max-width:100%;overflow-wrap:anywhere}.remove-keyword{border:0;border-radius:4px;background:transparent;color:#668477;font-size:18px;line-height:20px;min-width:24px}.remove-keyword:hover{background:#dfece5}.remove-keyword:disabled{opacity:.35;cursor:not-allowed}@media(max-width:950px){.manual-keyword-form{grid-template-columns:1fr 2fr}.manual-keyword-form .button{grid-column:2;justify-self:end}}@media(max-width:600px){.manual-keyword-form{grid-template-columns:1fr;padding:0 19px}.manual-keyword-form .button{grid-column:1;justify-self:stretch;justify-content:center}.manual-keyword-note,.manual-keyword-status{margin-left:19px;margin-right:19px}.configured-keywords{padding:17px 19px}}

/* Readable type at desktop and narrow widths. Keep contrast and hierarchy clear. */
body{line-height:1.55}h1,h2,h3,.card-heading h2,.dialog-heading h2{font-weight:700}strong,.account-info strong,.numeric,.scope-line strong{font-weight:650}
.nav-item,.button,.row-action,.text-button,.filter-bar select,.configured-keywords summary{font-weight:600}
th{font-weight:650;color:#50645b}td{color:#3d544a;line-height:1.65}.account-info strong{color:#263f35}.domain-text{color:#3d6655;font-weight:550}.badge{font-weight:600}
.subtle,.cell-sub,.field-help,.stat-foot,.stat-label,.page-heading p,.account-info small,.detail-group h3,.settings-section p,.settings-section label,.review-form label,.manual-keyword-note,.result-count,.scope-line small,.storage-note,.history-mode,.task-progress>div,.task-log summary,.keyword-list-group h3 small,.version,footer{color:#60746a}
.eyebrow,.nav-label{color:#687b73;font-weight:600}.search-box input::placeholder,textarea::placeholder{color:#76877f;opacity:1}
.card-heading{gap:18px}.filter-bar{flex-wrap:wrap}.filter-bar select{max-width:100%}.heading-actions{flex-wrap:wrap}.task-actions{flex-wrap:wrap}.scope-line>div{min-width:0}.scope-line{column-gap:18px}.account-info small{line-height:1.5}.detail-dialog{width:min(560px,95vw)}
@media(max-width:760px){.notice{line-height:1.7}.scope-line{row-gap:22px}.task-progress>div{gap:10px;align-items:flex-start}.task-progress #taskMessage{max-width:60%}.dialog-footer{flex-wrap:wrap}.filter-bar .result-count{margin-left:0}}
.settings-dialog[open],.detail-dialog[open]{display:flex;flex-direction:column;overflow:hidden}.settings-dialog .dialog-scroll,.detail-dialog .dialog-scroll{flex:1;min-height:0;max-height:none;overflow:auto}.settings-dialog .dialog-heading,.settings-dialog .dialog-footer,.detail-dialog .dialog-heading{flex-shrink:0}.detail-dialog .review-form{position:static;flex-shrink:0}

.sidebar{overflow-y:auto}.sidebar>*{flex-shrink:0}.workspace small{text-wrap:balance}@media(min-width:761px){.workspace{margin-top:22px;margin-bottom:16px}.sidebar-bottom{padding-top:18px}.version{padding-top:8px;letter-spacing:.3px}}

@media(min-width:761px) and (max-height:800px){.sidebar{padding-top:24px;padding-bottom:12px}.workspace{margin:18px 0 14px;padding:10px 8px}.nav-item{padding:9px 12px;margin:3px 0}.sidebar-bottom{padding-top:10px}.local-status{padding:12px 12px 8px;margin-top:8px}.version{padding-top:4px}}
