:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--page);--page:#f4f6f8;--surface:#fff;--soft:#f4f7f9;--hover:#eef5f1;--tint:#eaf4ed;font-synthesis:none;--ink:#182733;--muted:#71808f;--line:#e5eaee;--green:#19805c;--nav:#111e2d;--blue:#326bc4;--radius:16px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:42px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);padding:10px 15px;font-size:14px;font-weight:600}button:hover{background:var(--soft)}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #76a9fa;outline-offset:2px}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}input,select,textarea{width:100%;min-height:43px;border:1px solid #dce3e8;border-radius:8px;padding:10px 11px;background:var(--surface);color:var(--ink);font-size:14px}input:focus,select:focus,textarea:focus{outline:2px solid #b4d1f5;border-color:#5286c6}input[type=checkbox]{width:18px;min-height:18px;accent-color:var(--green)}input[type=date]{min-width:0}input[type=number]{font-variant-numeric:tabular-nums}textarea{resize:vertical;min-height:85px}label{font-size:13px;color:#526372;display:block}label>input,label>select,label>textarea{margin-top:7px}label.check{display:flex;align-items:center;gap:9px;color:var(--ink);font-size:14px}.check input{margin:0}.primary{background:var(--nav);color:#fff;border-color:var(--nav)}.primary:hover{background:#283b4f}.green-button{background:#e6f3ec;color:#146948;border-color:#cfe6d8}.danger{color:#b4413f}.quiet{border-color:transparent;background:transparent;color:var(--muted)}.small{min-height:32px;padding:6px 10px;font-size:12px}.icon-button{min-width:40px;padding:8px}.positive{color:var(--green)}.negative{color:#be4b49}.muted{color:var(--muted)}.tiny{font-size:12px}.mono{font-variant-numeric:tabular-nums}.nowrap{white-space:nowrap}.loading{padding:15vh 20px;text-align:center;color:var(--muted)}.shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--nav);color:#dce6ee;padding:33px 20px 22px;position:fixed;inset:0 auto 0 0;width:224px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:12px;align-items:center;font-size:20px;letter-spacing:-.6px;font-weight:750}.brand img{width:36px;height:36px}.brand small{display:block;font-size:11px;color:#8198ac;letter-spacing:2.6px;margin-top:4px;font-weight:500}.workspace{margin:37px 0 26px;border:1px solid #2e3d4d;border-radius:10px;padding:13px 12px;font-size:13px}.workspace span{display:block;font-size:11px;color:#8096a9;margin-bottom:6px}.nav{display:flex;flex-direction:column;gap:8px}.nav button{text-align:left;display:flex;align-items:center;gap:13px;background:transparent;border:0;color:#9db0c1;font-weight:500;padding:13px;min-height:47px}.nav button:hover{background:#1b2d40;color:white}.nav button.active{background:#26394c;color:white}.nav svg{width:18px;height:18px;flex-shrink:0}.sidebar-bottom{margin-top:auto;border-top:1px solid #2b3b4a;padding-top:20px}.user-row{display:flex;gap:10px;align-items:center;font-size:13px}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#32485b;color:#c4e6d5;font-weight:700}.user-row small{display:block;color:#8399ac;font-size:11px;margin-top:4px}.sidebar-bottom button{color:#92a7b8;margin-top:9px}.main{grid-column:2;min-width:0;padding:0 40px 45px;max-width:1900px}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.topbar b{color:#536577;font-weight:500}.status-dot:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#419e71;margin-right:7px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:32px 0 25px}h1{font-size:29px;letter-spacing:-1px;font-weight:650;line-height:1.2;margin:0 0 8px}h2{font-size:17px;font-weight:650;letter-spacing:-.3px;margin:0}h3{font-size:15px;margin:0}p{line-height:1.55;margin:8px 0}.page-heading p{font-size:14px;color:var(--muted);margin:0}.filters{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:23px}.filter-primary,.filter-more{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.filter-primary>label{flex:1;min-width:140px}.filter-primary .period{flex:1.7;min-width:258px}.date-pair{display:flex;align-items:center;gap:6px;margin-top:7px}.date-pair input{font-size:13px;padding:10px 8px;min-width:120px}.filter-more{padding-top:16px;margin-top:16px;border-top:1px solid var(--line)}.filter-more>label{flex:1;min-width:145px}.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.chip{background:#f0f4f7;border-radius:6px;color:#476175;border:0;padding:5px 9px;min-height:28px;font-size:12px;font-weight:400}.filter-reset{color:#326bc4;font-size:12px;border:0;min-height:28px;padding:5px;background:transparent}.cards{display:grid;grid-template-columns:1.35fr 1.1fr 1fr 1fr;gap:16px;margin-bottom:23px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:23px;min-width:0}.card.hero{background:#eaf4ed;border-color:#d7e9de}.card-label{font-size:13px;color:#607567;display:flex;justify-content:space-between;align-items:center}.card:not(.hero) .card-label{color:var(--muted)}.card-value{font-size:32px;letter-spacing:-1.3px;white-space:nowrap;font-weight:650;margin:15px 0 10px;font-variant-numeric:tabular-nums}.card-foot{color:#7d8d85;font-size:12px}.card-foot button{font-size:12px;padding:0;min-height:20px;text-align:left;color:var(--blue);border:0;background:transparent}.grid-two{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(280px,1fr);gap:20px;margin-bottom:23px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);min-width:0;overflow:hidden}.panel-head{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-head p{font-size:12px;color:var(--muted);margin:5px 0 0}.panel-body{padding:0 24px 24px}.chart{width:100%;height:190px;display:block;overflow:visible}.chart-labels{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);padding:8px 0}.money-lines{display:grid;gap:17px;margin:4px 0}.money-line{display:flex;align-items:center;justify-content:space-between;font-size:13px;gap:12px}.money-line span:before{content:"";display:inline-block;width:8px;height:8px;background:#c7d3dd;border-radius:3px;margin-right:9px}.money-line:nth-child(2) span:before{background:#7fa49a}.money-line:nth-child(3) span:before{background:#475f70}.money-line:nth-child(4) span:before{background:#a7bba8}.money-line b{font-weight:550;font-variant-numeric:tabular-nums}.money-total{border-top:1px solid var(--line);padding-top:17px;margin-top:19px;display:flex;justify-content:space-between;font-size:14px}.note{font-size:12px;line-height:1.6;color:var(--muted)}.notice{display:flex;align-items:flex-start;gap:12px;border:1px solid #eddfbc;background:#fffaf0;padding:16px 20px;border-radius:12px;font-size:13px;color:#896628;margin-bottom:22px;line-height:1.55}.notice svg{width:19px;flex-shrink:0;margin-top:2px}.notice a,.notice button{color:#846018}.notice p{margin:2px 0 0;font-size:12px}.notice.neutral{background:#f0f5fa;color:#536e84;border-color:#d8e4ef}.empty{padding:50px 25px;text-align:center;color:var(--muted);font-size:14px}.empty strong{display:block;color:var(--ink);font-size:18px;margin-bottom:8px}.table-scroll{overflow:auto;max-width:100%;overscroll-behavior-x:contain}.data-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px;font-variant-numeric:tabular-nums}.data-table th{font-size:11px;color:#6b7e8d;font-weight:500;text-align:right;background:#fafbfc;padding:13px 17px;border-block:1px solid var(--line)}.data-table td{padding:16px 17px;text-align:right;border-bottom:1px solid #eef1f4}.data-table th:first-child,.data-table td:first-child{text-align:left}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover td{background:#f8fafb}.data-table tfoot td{background:#f0f5f3;font-weight:650;border-top:1px solid #d8e5df}.row-title{font-weight:550}.badge{display:inline-block;padding:4px 8px;border-radius:5px;font-size:11px;font-weight:500;background:#edf4ee;color:#44725b}.badge.amber{color:#a57a31;background:#faf1dc}.badge.gray{background:#eef2f5;color:#687f91}.table-footer{padding:14px 23px;font-size:12px;color:var(--muted);border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:20px;flex-wrap:wrap}.segments{display:flex;padding:4px;background:#e9eef2;border-radius:9px;gap:3px;flex-wrap:wrap}.segments button{min-height:33px;font-weight:500;font-size:12px;padding:7px 12px;border:0;background:transparent;color:#6c7f8e}.segments button.active{background:var(--surface);box-shadow:0 1px 3px #18273312;color:var(--ink)}.toolbar select{width:auto;max-width:210px}.section-gap{margin-top:24px}.entry-top{display:grid;grid-template-columns:170px 1fr 1fr;gap:16px;padding:22px 24px;border-bottom:1px solid var(--line)}.entry-table{min-width:1040px}.entry-table th,.entry-table td{padding:10px 7px}.entry-table td:first-child,.entry-table th:first-child{padding-left:20px}.entry-table input{width:91px;padding:9px 8px}.entry-table select{width:130px;padding:9px 6px;font-size:12px}.entry-table .country-input{width:120px}.entry-table .num{width:38px;font-size:11px;color:var(--muted)}.entry-table .row-remove{min-width:28px;min-height:36px;padding:5px;font-size:18px;color:#99a6b0}.entry-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 23px;flex-wrap:wrap}.entry-actions>div{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.draft-state{font-size:12px;color:var(--muted)}.entry-hint{padding:0 23px 20px}.settings-tabs{display:flex;gap:8px;overflow:auto;padding:0 0 17px;margin-bottom:16px;scrollbar-width:thin}.settings-tabs button{white-space:nowrap;border:0;background:transparent;color:var(--muted);font-weight:500}.settings-tabs button.active{background:var(--nav);color:#fff}.settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.setting-card{background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:22px;display:flex;flex-direction:column;gap:12px}.setting-card.archived{opacity:.65}.setting-card p{font-size:13px;color:var(--muted);margin:0;min-height:40px}.setting-card .setting-actions{margin-top:auto;display:flex;gap:8px;flex-wrap:wrap}.setting-icon{height:36px;width:36px;border-radius:10px;display:grid;place-items:center;background:#eef3f6;color:#53748e;margin-bottom:3px}.setting-icon svg{width:18px}.settings-empty{border:1px dashed #ccd7df;border-radius:13px;padding:30px;text-align:center;color:var(--muted)}dialog{border:0;border-radius:18px;padding:0;width:min(650px,calc(100% - 30px));max-height:90vh;box-shadow:0 24px 100px #0c20333b;color:var(--ink)}dialog.wide{width:min(920px,calc(100% - 30px))}dialog::backdrop{background:#10203070;backdrop-filter:blur(3px)}.modal-head{padding:24px 26px 16px;display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--line)}.modal-head h2{font-size:20px}.modal-body{padding:22px 26px;overflow:auto}.modal-foot{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding:18px 26px;flex-wrap:wrap}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .span2{grid-column:1/-1}.form-section{font-size:12px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);margin:23px 0 13px}.check-list{display:grid;grid-template-columns:1fr 1fr;gap:11px;max-height:190px;overflow:auto;border:1px solid var(--line);padding:12px;border-radius:8px}.check-list label{display:flex;align-items:center;gap:7px;font-size:13px}.check-list input{margin:0}.country-list{margin-top:10px;max-height:180px}.country-search{margin-bottom:8px}.form-error{color:#a63d3d;font-size:13px;background:#fff0ef;padding:12px;border-radius:8px;margin-top:15px}.form-error:empty{display:none}.preview-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.preview-cell{background:var(--soft);border-radius:10px;padding:15px}.preview-cell span{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}.preview-cell strong{font-size:18px;font-variant-numeric:tabular-nums}.access-url{overflow-wrap:anywhere;background:var(--soft);padding:15px;font-size:13px;border-radius:8px;margin:15px 0}.auth-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-brand{background:var(--nav);padding:60px;display:flex;flex-direction:column;justify-content:space-between;color:white}.auth-brand h1{font-size:48px;line-height:1.13;letter-spacing:-1.8px;max-width:500px;margin-bottom:20px}.auth-brand p{color:#8ca5ba;max-width:400px;font-size:16px}.auth-mark{border:1px solid #3b5266;border-radius:16px;padding:28px;max-width:400px;display:flex;align-items:center;gap:18px;margin:50px 0}.auth-mark svg{width:56px;height:56px;color:#99d0b0}.auth-mark b{display:block;font-size:17px}.auth-mark span{display:block;font-size:12px;color:#8ca5ba;margin-top:8px}.auth-form{display:flex;align-items:center;justify-content:center;padding:35px}.auth-inner{max-width:360px;width:100%}.auth-inner h1{font-size:28px}.auth-inner p{color:var(--muted);font-size:14px;margin:12px 0 28px}.auth-inner label{margin-bottom:18px}.auth-inner button{width:100%;margin-top:10px}.auth-inner .brand{display:none}.auth-footer{font-size:12px;color:#6e8497}.flash{animation:flash .5s ease}@keyframes flash{from{background:#def0e4}to{background:transparent}}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);padding:13px 22px;background:#203a30;color:white;border-radius:10px;font-size:14px;z-index:100;max-width:calc(100vw - 30px);box-shadow:0 8px 25px #18332620;display:none}#toast.show{display:block}#toast.error{background:#8f3b38}.mobile-brand{display:none}.audit-details{white-space:normal;text-align:left;max-width:600px;overflow-wrap:anywhere}.audit-details ul{padding-left:20px;line-height:1.8;font-size:12px}.compare-table td{padding:12px!important}.metric-help{display:grid;gap:14px}.metric-help div{border-bottom:1px solid var(--line);padding-bottom:12px;font-size:13px}.metric-help b{display:block;margin-bottom:5px}.issue-list{margin:0;padding-left:18px;font-size:12px;line-height:1.7;color:#916b2e}.mini-summary{display:flex;gap:18px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.mini-summary strong{color:var(--ink);font-size:14px;margin-left:5px}.screen-error{border:1px solid #eed3d0;background:#fff5f4;border-radius:12px;padding:24px;margin:30px 0}.link-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(min-width:1500px){.main{padding-inline:50px}.card-value{font-size:37px}.cards{gap:20px}}
@media(max-width:1200px){.sidebar{width:192px;padding-inline:14px}.shell{grid-template-columns:192px minmax(0,1fr)}.main{padding-inline:25px}.card{padding:19px}.card-value{font-size:27px}.cards{gap:12px}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-two{grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr)}}
@media(max-width:950px){.cards{grid-template-columns:1fr 1fr}.grid-two{grid-template-columns:1fr}.filter-primary>label{min-width:150px}.filter-primary .period{min-width:100%}.entry-top{grid-template-columns:1fr 1fr}.entry-top>label:first-child{grid-column:1/-1}.auth-brand{padding:35px}.auth-brand h1{font-size:35px}}
@media(max-width:700px){.shell{display:block}.sidebar{width:100%;height:66px;top:auto;bottom:0;right:0;flex-direction:row;padding:0 6px;align-items:center;box-shadow:0 -3px 18px #142e4014;border-radius:0;background:var(--surface);border-top:1px solid var(--line)}.sidebar>.brand,.workspace,.sidebar-bottom{display:none}.nav{flex-direction:row;width:100%;gap:0;justify-content:space-around}.nav button{color:#7c8d9c;display:flex;flex-direction:column;gap:5px;text-align:center;align-items:center;padding:8px 5px;font-size:10px;min-height:52px;flex:1;border-radius:9px}.nav button.active{background:#edf4ef;color:#246f51}.nav button:hover{background:#f3f6f7;color:#34516b}.nav svg{width:19px;height:19px}.main{padding:0 16px 95px}.topbar{height:63px}.topbar .breadcrumb{display:none}.mobile-brand{display:flex;align-items:center;gap:8px;color:var(--ink);font-size:16px;letter-spacing:-.5px;font-weight:700}.mobile-brand img{width:28px;height:28px}.topbar .status-dot{font-size:11px}.page-heading{margin:25px 0 20px;align-items:flex-start;gap:10px}.page-heading h1{font-size:26px}.page-heading p{font-size:12px;line-height:1.6}.page-heading .primary{font-size:12px;white-space:nowrap;padding:9px 11px;min-height:38px}.filters{padding:13px;margin-bottom:18px}.filter-primary{gap:12px}.filter-primary>label{min-width:0;flex-basis:40%}.filter-primary .period{min-width:100%}.filter-primary>button{flex:1}.filter-more{gap:12px}.filter-more>label{flex-basis:40%;min-width:0}.filter-more select{max-width:100%}.cards{gap:10px;margin-bottom:18px}.card{padding:17px 14px;border-radius:12px}.card-label{font-size:11px}.card-value{font-size:27px;letter-spacing:-1.1px;margin:13px 0 9px}.card-foot{font-size:10px;line-height:1.5}.panel{border-radius:12px}.panel-head{padding:19px 17px}.panel-head h2{font-size:15px}.panel-head p{font-size:11px}.panel-body{padding:0 17px 19px}.notice{padding:14px;font-size:12px}.notice p{font-size:11px}.grid-two{gap:18px;margin-bottom:18px}.table-footer{padding:12px 16px;font-size:11px}.data-table td{padding:14px 14px}.data-table th{padding:12px 14px}.toolbar{gap:12px}.segments{width:100%;justify-content:space-between}.segments button{padding:8px;font-size:11px}.toolbar select{font-size:13px;min-width:150px}.entry-top{padding:18px 16px;gap:14px}.entry-top>label:first-child{grid-column:auto}.entry-top>label:nth-child(2){grid-column:auto}.entry-top>label:last-child{grid-column:1/-1}.entry-actions{padding:15px;align-items:stretch}.entry-actions>div{width:100%}.entry-actions .primary{flex:1}.entry-hint{padding:0 16px 17px}.settings-grid{grid-template-columns:1fr}.settings-tabs{margin-inline:-16px;padding-inline:16px;gap:2px}.settings-tabs button{font-size:12px;padding-inline:12px}.setting-card{padding:19px}.auth-page{display:block}.auth-brand{display:none}.auth-form{min-height:100vh;padding:28px}.auth-inner .brand{display:flex;margin-bottom:55px}.auth-inner .brand small{color:#788c9b}.auth-inner .brand img{width:40px;height:40px}.modal-head{padding:20px 18px 14px}.modal-body{padding:19px 18px}.modal-foot{padding:15px 18px}.form-grid{gap:15px}.form-grid label{min-width:0}.check-list{grid-template-columns:1fr}.preview-grid{gap:10px}.preview-cell{padding:12px}.preview-cell strong{font-size:16px}.chart{height:165px}.status-text{display:none}.topbar button{font-size:11px;min-height:30px;padding:4px 8px}.table-scroll{scrollbar-width:thin}.entry-table{min-width:1040px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}

@media(max-width:700px){
 .entry-table{min-width:0;display:block;white-space:normal}.entry-table thead{display:none}.entry-table tbody{display:block}.entry-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px 12px;padding:18px 16px 24px;position:relative;border-bottom:1px solid var(--line)}.entry-table td{display:block;text-align:left;padding:0!important;border:0!important;min-width:0}.entry-table td:before{content:attr(data-label);display:block;font-size:12px;color:#6c7c88;margin-bottom:7px;line-height:1.4}.entry-table input,.entry-table select,.entry-table .country-input{width:100%;max-width:100%;font-size:14px;min-height:44px}.entry-table .num{grid-column:1/-1;width:auto;font-size:13px;font-weight:600;color:#42617a}.entry-table .num:before{content:'Строка ';display:inline;font-size:13px;color:#42617a}.entry-table td:last-child{position:absolute;right:12px;top:9px}.entry-table td:last-child:before{display:none}.entry-table td:nth-last-child(2){grid-column:1/-1;background:#f4f8f6;padding:10px 12px!important;border-radius:8px}.entry-table td:nth-last-child(2):before{display:inline;margin-right:12px}.entry-table td:nth-last-child(2) br{display:none}.entry-table td:nth-last-child(2) b{margin-left:10px}.entry-table tbody tr:hover td{background:transparent}.card-label{font-size:12px}.card-foot{font-size:11px}.badge{font-size:11px}.check-list label{font-size:14px}
}

.telegram-open{display:block;text-align:center;padding:14px 16px;border-radius:9px;font-size:14px;margin-top:16px;color:#fff;text-decoration:none;font-weight:600}.telegram-open:hover{background:#283b4f;text-decoration:none}.auth-inner #telegram-pending p{margin:16px 0;font-size:14px}.telegram-wait{padding:14px;border-radius:9px;background:#eaf4ed;color:#247b57;font-size:13px;line-height:1.6}.password-login{border-top:1px solid var(--line);margin-top:27px;padding-top:20px}.password-login summary{cursor:pointer;color:var(--muted);font-size:13px;min-height:34px}.password-login[open] summary{margin-bottom:15px}#telegram-pending[hidden]{display:none}

/* Shared searchable selectors and calendar. */
.choice-wrap{display:block;position:relative;min-width:0;width:100%}.choice-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;opacity:0;pointer-events:none;clip-path:inset(50%)}.choice-button{width:100%;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;font-weight:400;border-color:var(--line);background:var(--surface);padding:10px 12px;min-height:43px}.choice-button>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.choice-button.placeholder{color:var(--muted)}.choice-icon{color:#8494a1;flex-shrink:0}label>.choice-wrap{margin-top:7px}.date-pair>.choice-wrap{flex:1;min-width:0}.choice-button.invalid{border-color:#bb4b49}.choice-popover{position:fixed;inset:auto;margin:0;padding:7px;border:1px solid #dce5e9;border-radius:14px;background:var(--surface);color:var(--ink);box-shadow:0 16px 55px #10253326;z-index:200;overflow:auto;overscroll-behavior:contain}.choice-popover::backdrop{background:transparent}.choice-search{position:sticky;top:-7px;background:var(--surface);padding:3px 2px 9px;z-index:1}.choice-search input{background:var(--soft);border:1px solid #e7ecef;border-radius:9px}.choice-options{display:flex;flex-direction:column;gap:3px}.choice-option{text-align:left;border:0;background:transparent;font-weight:400;padding:11px;min-height:42px;flex-shrink:0}.choice-option:hover,.choice-option:focus{background:var(--hover);outline:none}.choice-option[aria-selected=true]{background:#e8f3ed;color:#1c7455;font-weight:600}.choice-empty{color:var(--muted);padding:12px}.calendar-head{display:flex;align-items:center;gap:2px;padding:3px 0 9px}.calendar-head button{border:0;padding:6px;min-height:36px}.calendar-nav{min-width:32px;font-size:24px}.calendar-title{flex:1;text-transform:capitalize}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}.calendar-weekday{font-size:11px;color:var(--muted);text-align:center;padding:7px 0}.calendar-day{padding:0;border:0;min-height:36px;font-size:13px;font-weight:400}.calendar-day.selected{background:var(--nav);color:#fff}.calendar-pick-grid{grid-template-columns:repeat(3,1fr)}.calendar-period{padding:10px 4px;border:0}.calendar-foot{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:9px;padding-top:5px}.calendar-foot button{font-size:12px}.spend-panel{max-width:760px}.spend-history-row{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--line);font-size:14px}.spend-history-row small{display:block;color:var(--muted);margin-top:5px}.assistant-nav-icon{color:#9ed7be;width:18px;text-align:center;font-size:20px}
/* Private assistant, separate from the current page. */
.assistant-panel{position:fixed;inset:14px 14px 14px auto;width:470px;max-width:calc(100vw - 28px);z-index:55;background:var(--surface);border:1px solid #dde6e5;border-radius:20px;box-shadow:0 24px 90px #0f253236;display:flex;flex-direction:column;overflow:hidden}.assistant-panel[hidden]{display:none}.assistant-header{display:flex;align-items:center;gap:10px;padding:17px 16px;border-bottom:1px solid var(--line);background:linear-gradient(120deg,#f5faf7,#fff)}.assistant-emblem{width:38px;height:38px;border-radius:12px;background:#132b28;color:#bbe7cf;display:grid;place-items:center;font-size:23px;flex-shrink:0}.assistant-header>div:nth-child(2){flex:1;min-width:0}.assistant-header h2{font-size:16px}.assistant-header span{font-size:10px;color:var(--muted)}.assistant-header button{padding:5px;min-width:28px}.chat-messages{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 18px}.chat-welcome{padding:35px 10px;text-align:center}.chat-orbit{font-size:37px;margin:5px auto 24px;color:#3c8d69;background:#ecf5ef;width:78px;height:78px;display:grid;place-items:center;border-radius:26px}.chat-welcome h2{font-size:24px;letter-spacing:-.7px}.chat-welcome p{font-size:14px;color:var(--muted);max-width:290px;margin:12px auto 25px}.chat-suggestions{display:flex;flex-direction:column;gap:9px;text-align:left}.chat-suggestions button{font-weight:500;text-align:left;padding:14px;border-radius:12px;font-size:13px}.chat-suggestions span{float:right;color:#7b9487}.chat-composer{margin:0 12px 12px;border:1px solid #dce6e1;border-radius:14px;padding:8px;background:#fafcfb;box-shadow:0 3px 12px #172c2210}.chat-composer textarea{border:0;outline:none;background:transparent;font-size:14px;min-height:65px;max-height:180px;resize:none;box-shadow:none;padding:9px}.chat-compose-actions{display:flex;align-items:center;gap:9px;padding:2px 3px}.chat-attach{cursor:pointer;font-size:12px;color:#527364;border-radius:7px;display:flex;align-items:center;gap:5px;min-height:36px;padding:4px}.chat-attach>span{font-size:24px}.chat-hint{font-size:10px;color:#899890;flex:1}.chat-send{border-radius:10px;min-width:38px;min-height:36px;font-size:20px;padding:1px 8px}.chat-message{margin-bottom:22px;overflow-wrap:anywhere;font-size:14px;line-height:1.65}.chat-message-label{font-size:11px;color:#8b9992;margin-bottom:6px}.chat-message.user{margin-left:35px;background:#eef4f0;border:1px solid #e0ebe3;border-radius:14px 14px 4px 14px;padding:11px 13px}.chat-message.assistant{padding:3px 1px}.chat-message code{background:var(--soft);border-radius:4px;padding:1px 4px}.chat-file{display:inline-flex;align-items:center;gap:6px;font-size:11px;max-width:100%;overflow-wrap:anywhere;background:var(--surface);border:1px solid #dfe7e2;border-radius:7px;padding:6px 8px;margin:3px}.chat-file button{padding:0;border:0;min-height:20px;min-width:20px}.chat-files{max-height:100px;overflow:auto}.chat-thinking{display:flex;align-items:center;gap:4px;padding:12px 0;color:var(--muted)}.chat-thinking i{width:5px;height:5px;border-radius:50%;background:#83aa93;animation:chat-dot 1.4s infinite}.chat-thinking i:nth-child(2){animation-delay:.2s}.chat-thinking i:nth-child(3){animation-delay:.4s}.chat-thinking span{font-size:11px;margin-left:7px}.chat-history{max-height:40%;overflow:auto;border-bottom:1px solid var(--line);padding:8px 12px;background:#f9fbfa}.chat-history[hidden]{display:none}.chat-history button{width:100%;border:0;background:transparent;text-align:left;font-size:13px;font-weight:400}.chat-history button.active{background:#eaf2ed}.chat-history small{display:block;color:var(--muted);margin-top:4px;font-size:10px}.assistant-panel.dragging{outline:3px solid #88bca2;outline-offset:-5px}#chat-error{font-size:12px;margin:0;padding:0 7px}#chat-stop{font-size:11px;padding:4px;min-height:32px}@keyframes chat-dot{50%{opacity:.25;transform:translateY(-2px)}}
@media(min-width:1500px){body.chat-open .main{padding-right:520px}}
@media(max-width:700px){.assistant-panel{inset:0;width:100%;max-width:100%;border:0;border-radius:0;height:100dvh}.chat-composer{margin-bottom:max(12px,env(safe-area-inset-bottom))}.chat-messages{padding:16px}.assistant-header{padding-top:max(15px,env(safe-area-inset-top))}body.chat-open{overflow:hidden}.assistant-header span{font-size:9px}.choice-button{font-size:13px;padding:10px;min-height:44px}.calendar-day{min-height:38px}.nav #assistant-open{font-size:10px}.chat-welcome{padding-top:25px}.date-pair{min-width:0}.filter-primary .period{min-width:0;width:100%}}
@media(prefers-reduced-motion:reduce){.chat-thinking i{animation:none}}

/* Visibility also applies to flex/grid form elements and filtered checklist rows. */
[hidden]{display:none!important}
.check-search{margin-bottom:8px}
/* Project workspace, independently sized filters, and both color themes. */
.filter-primary{display:grid;grid-template-columns:minmax(260px,1.5fr) repeat(2,minmax(130px,1fr)) auto;align-items:end;gap:14px}.buyer-filters .filter-primary{grid-template-columns:minmax(260px,1.5fr) minmax(150px,1fr) auto}.filter-primary>label,.filter-primary .period{min-width:0;width:auto}.date-pair{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;min-width:0}.date-pair .choice-wrap{min-width:0;width:100%}.date-pair .choice-button{padding-inline:10px}.filter-primary>button{min-height:43px;white-space:nowrap;padding:10px 14px}.filters .chips{gap:7px 12px;flex-wrap:wrap}.filters .filter-reset{white-space:normal;text-align:left}.spend-panel>.panel-body{padding:24px}.nav button>svg,.assistant-nav-icon{width:20px;height:20px;flex-shrink:0;display:grid;place-items:center;line-height:20px}.nav-label{line-height:15px;white-space:nowrap}.theme-toggle{min-width:32px;font-size:21px;padding:3px 6px;line-height:26px}.status-dot{gap:6px}.buyer-name{color:var(--ink);font-weight:600}.link-error{max-width:560px;margin:12vh auto;padding:25px}.link-error h1{margin:35px 0 15px}.panel-form{padding:24px}.field-title{font-size:13px;color:var(--muted);margin:0 0 10px}.back-link{margin:0 0 14px;padding-left:0}.project-offers{display:grid;gap:18px}.offer-card .panel-head{padding-bottom:18px}.direction-list{padding:0 22px 15px}.direction-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:15px 0;border-top:1px solid var(--line)}.direction-row>div:first-child{min-width:0;overflow-wrap:anywhere}.direction-row .link-actions{flex-wrap:nowrap}.direction-row small{display:block;margin-top:5px;font-size:12px;color:var(--muted)}.add-direction{margin-top:10px}.context-caption{margin:0 0 20px;font-size:13px;color:var(--muted);line-height:1.6}.region-buttons{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}.rates-cards{display:grid;gap:12px}.rate-card{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px}.rate-card small{display:block;color:var(--muted);font-size:12px;margin-bottom:7px}.rate-card p{color:var(--muted);font-size:12px;margin:7px 0 0}.rate-card h3{font-size:15px;margin:0}.country-prices{border-top:1px solid var(--line);padding-top:18px}.country-prices h3{font-size:15px;margin:0}.rate-search-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}.rate-bulk{display:flex;align-items:center;gap:8px;margin:10px 0}.rate-bulk input{max-width:130px}.country-rate-list{max-height:340px;overflow:auto;border:1px solid var(--line);border-radius:10px}.country-rate{display:grid;grid-template-columns:18px minmax(0,1fr) 105px 12px;gap:10px;align-items:center;padding:9px 12px;border-bottom:1px solid var(--line);font-size:13px}.country-rate>input{margin:0!important}.country-rate:last-child{border-bottom:0}.country-rate>input[type=text]{padding:8px 10px;min-height:36px;width:100%}.country-rate>input[type=checkbox]{width:16px}.country-rate>span:last-child{color:var(--muted)}.preview-cell small{display:block;color:var(--muted);margin-bottom:7px}.review-record{padding:16px 0;border-bottom:1px solid var(--line)}.review-record:first-child{padding-top:0}.review-record h3{font-size:15px;margin:0}.review-record .small{margin-top:12px}.check-group{cursor:pointer;min-height:30px;border:0;white-space:nowrap}.audit-filters{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}.audit-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:15px 20px;border-bottom:1px solid var(--line)}.audit-row:last-child{border:0}.audit-row strong{font-size:14px}.audit-row p{margin:4px 0;color:var(--muted);font-size:12px;overflow-wrap:break-word}.audit-row small{font-size:11px;color:var(--muted)}.audit-change-list{padding-left:19px;line-height:1.8;font-size:14px;overflow-wrap:break-word}.audit-change-list li{margin-bottom:12px}.assistant-header #chat-history{font-size:11px;padding:7px;border-radius:8px;white-space:nowrap}.assistant-header #chat-history.active{background:var(--tint);color:var(--green)}
[data-theme=dark]{color-scheme:dark;--page:#101720;--surface:#18232f;--soft:#202e3c;--hover:#263a3c;--tint:#1d3832;--ink:#e6edf5;--muted:#9bafc1;--line:#2c3b4b;--green:#7ad8ad;--blue:#8bb4ff;--nav:#0b131d}[data-theme=dark] body{background:var(--page);color:var(--ink)}[data-theme=dark] button,[data-theme=dark] input,[data-theme=dark] textarea,[data-theme=dark] select{color:var(--ink);border-color:var(--line)}[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea{background:var(--surface)}[data-theme=dark] .quiet,[data-theme=dark] .filter-reset{background:transparent}[data-theme=dark] .primary{background:#97d4b6;color:#10241c;border-color:#97d4b6}[data-theme=dark] .primary:hover{background:#afe7cc}[data-theme=dark] .card.hero{background:var(--tint);border-color:#2a5146}[data-theme=dark] .card-foot,[data-theme=dark] .card-label{color:#a5bdaf}[data-theme=dark] .positive{color:var(--green)}[data-theme=dark] .negative{color:#ff9b92}[data-theme=dark] .data-table th,[data-theme=dark] .data-table tfoot td,[data-theme=dark] .segments{background:var(--soft);color:var(--ink)}[data-theme=dark] .data-table tbody tr:hover td{background:var(--hover)}[data-theme=dark] .segments button.active{background:var(--surface);color:var(--ink)}[data-theme=dark] .badge{background:var(--tint);color:var(--green)}[data-theme=dark] .badge.amber,[data-theme=dark] .notice{background:#382f20;color:#f5ca80;border-color:#665234}[data-theme=dark] .notice.neutral{background:#213347;border-color:#354e6b;color:#b4cee8}[data-theme=dark] .badge.gray,[data-theme=dark] .setting-icon{background:var(--soft);color:var(--muted)}[data-theme=dark] .choice-popover{border-color:var(--line);background:var(--surface)}[data-theme=dark] .choice-search{background:var(--surface)}[data-theme=dark] .choice-search input{background:var(--soft);border-color:var(--line)}[data-theme=dark] .choice-option[aria-selected=true]{background:var(--tint);color:var(--green)}[data-theme=dark] .calendar-day.selected{background:#88c9ab;color:#10241c}[data-theme=dark] dialog{background:var(--surface)}[data-theme=dark] .form-error,[data-theme=dark] .screen-error{background:#432a2c;color:#ffb0a4;border-color:#684044}[data-theme=dark] .assistant-panel{background:var(--surface);border-color:var(--line)}[data-theme=dark] .assistant-header{background:linear-gradient(120deg,#1c342f,var(--surface))}[data-theme=dark] .chat-composer,[data-theme=dark] .chat-history{background:var(--soft);border-color:var(--line)}[data-theme=dark] .chat-message.user{background:var(--tint);border-color:#345348}[data-theme=dark] .chat-history button.active,[data-theme=dark] .chat-orbit{background:var(--tint);color:var(--green)}[data-theme=dark] .chat-file{background:var(--surface);border-color:var(--line)}[data-theme=dark] .entry-table td:nth-last-child(2){background:var(--soft)}[data-theme=dark] .chat-attach,[data-theme=dark] .chat-hint{color:var(--muted)}[data-theme=dark] .nav button.active{background:var(--tint);color:var(--green)}
@media(max-width:1050px){.filter-primary,.buyer-filters .filter-primary{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-primary .period{grid-column:1/-1;min-width:0;max-width:100%;width:100%}.filter-primary>button{justify-self:end;grid-column:1/-1;min-height:36px}.buyer-filters .filter-primary>button{grid-column:2;align-self:end}}
@media(max-width:700px){.date-pair{width:100%}.filter-primary{gap:14px 12px}.filters{padding:17px 14px}.filter-primary>label{flex-basis:auto}.filter-primary>button{font-size:12px;padding:8px 12px;flex:none}.filter-primary .period{grid-column:1/-1;min-width:100%}.date-pair .choice-button{font-size:14px;min-height:44px}.chips{margin-top:14px}.filter-reset{font-size:12px;padding:4px}.buyer-filters .filter-primary{grid-template-columns:minmax(0,1fr) auto}.buyer-filters .filter-primary>label:not(.period){grid-column:1}.buyer-filters .filter-primary>button{grid-column:2;max-width:140px}.nav button{justify-content:center;gap:5px;min-width:0;height:58px;padding:7px 2px}.nav-label{font-size:10px;line-height:14px}.assistant-nav-icon{font-size:21px;height:20px;line-height:20px}.sidebar{height:calc(66px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}.main{padding-bottom:calc(90px + env(safe-area-inset-bottom))}.spend-panel>.panel-body{padding:24px 17px 22px}.panel-form{padding:22px 17px}.project-config .panel-head{padding-bottom:0}.direction-list{padding:0 16px 15px}.direction-row{align-items:flex-start;flex-wrap:wrap}.direction-row .link-actions{gap:6px}.direction-row .small{font-size:12px;padding:7px 10px}.rate-card{padding:16px;align-items:flex-start;flex-wrap:wrap}.rate-card h3{line-height:1.5}.rate-search-row{grid-template-columns:1fr}.rate-bulk{display:grid;grid-template-columns:1fr 1fr}.rate-bulk button:last-child{grid-column:1/-1}.rate-bulk input{max-width:none;width:100%}.country-rate{grid-template-columns:16px minmax(0,1fr) 78px 10px;gap:7px;padding:10px 8px;font-size:12px}.country-rate-list{max-height:300px}.audit-filters{grid-template-columns:1fr;gap:12px}.audit-row{padding:14px;gap:10px}.audit-row strong{font-size:13px;line-height:1.5}.audit-row p{line-height:1.5}.audit-row .small{padding:7px 9px;font-size:11px}.audit-change-list{font-size:13px}.theme-toggle{font-size:20px!important;min-width:30px}.status-dot:before{display:none}[data-theme=dark] .sidebar{background:var(--surface)}.assistant-header #chat-history{font-size:10px;padding:6px}.assistant-header>div:nth-child(2)>span{display:none}}
@media(max-width:360px){.buyer-filters .filter-primary{grid-template-columns:1fr}.buyer-filters .filter-primary>button{grid-column:1;justify-self:end}.date-pair .choice-button{font-size:12px;padding-inline:7px}.nav-label{font-size:9px}}
[data-theme=dark] label{color:var(--muted)}[data-theme=dark] .check-list label,[data-theme=dark] .country-rate>span:first-of-type{color:var(--ink)}[data-theme=dark] .quiet,[data-theme=dark] .filter-reset,[data-theme=dark] .nav button,[data-theme=dark] .settings-tabs button{border-color:transparent}[data-theme=dark] .settings-tabs button.active{background:var(--tint);color:var(--green)}[data-theme=dark] .choice-button:disabled{color:var(--muted)}
.button-link{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 14px;border:1px solid var(--line);border-radius:9px;font-size:14px;color:var(--ink);text-decoration:none}.access-url{width:100%;min-width:0}

@media(pointer:coarse){.choice-search input{font-size:16px}}

.archive-switch{display:inline-flex;margin-bottom:18px;max-width:100%}.archive-switch button{display:flex;align-items:center;gap:8px}.archive-switch span{font-size:11px;opacity:.75}.archive-confirm-name{font-size:20px;font-weight:650;margin:0 0 14px}.archive-confirm-name+p{line-height:1.6}.project-config>.panel-head{flex-wrap:wrap}.offer-card>.panel-head{flex-wrap:wrap}.setting-card.archived{opacity:1}.setting-card.archived .setting-icon{opacity:.65}

.report-actions{align-items:flex-end}.report-grouping{font-size:12px;min-width:170px}.report-period-note{margin:-6px 0 20px}.period-detail{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:5px;white-space:normal;min-width:160px;max-width:230px;line-height:1.5}

@media(max-width:380px){.direction-row{grid-template-columns:minmax(0,1fr);gap:10px}.direction-row .link-actions{justify-self:start}}

.chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-bottom:1px solid var(--line);background:var(--surface)}.chat-toolbar button{font-size:12px;min-height:38px;white-space:nowrap}.chat-toolbar #chat-history.active{background:var(--tint);color:var(--green)}.chat-history-row{display:grid;grid-template-columns:minmax(0,1fr) 38px;align-items:center;gap:6px}.chat-history-row [data-conversation]{min-width:0}.chat-history-row [data-conversation]>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-history .chat-delete{width:38px;min-width:38px;min-height:38px;padding:8px;display:grid;place-items:center;color:var(--muted)}.chat-history .chat-delete:hover{background:var(--surface);color:var(--ink)}.chat-delete-title{font-weight:600;overflow-wrap:anywhere}
