/* Presentation only: existing controls, data and handlers are retained. */
#workspace{--polish-border:#e1e7ef;--polish-muted:#647487}
#workspace .topbar{gap:10px}#workspace-tabs{scrollbar-width:thin;scrollbar-color:#becbda transparent;scroll-padding-inline:12px}.workspace-tab>button{padding:8px 11px;font-size:13px}
#workspace .reference-toolbar,#workspace .account-toolbar{gap:7px;align-items:center;row-gap:9px}
#workspace .reference-toolbar button,#workspace .account-toolbar button{white-space:nowrap;min-height:34px;border-radius:7px}
#workspace .reference-toolbar input{flex:1 1 180px;min-width:150px;max-width:260px}
#workspace .account-toolbar #pool-search{flex:1 1 170px;margin-left:0;max-width:250px}
#workspace .account-toolbar{margin-bottom:16px;padding-bottom:4px}
#workspace .reference-toolbar #ammo-open,#workspace .reference-toolbar #script-open,#workspace .reference-toolbar #market-open,#workspace .reference-toolbar #campaign-statistics,#workspace .reference-toolbar #campaign-batch-export{background:#f5f8fc;color:#42617f;border:1px solid var(--polish-border);box-shadow:none}
#workspace .reference-toolbar [data-campaign-batch=delete]:not(:disabled){background:#fff3f2;color:#b64b45;border:1px solid #f1cecb}
#workspace .reference-toolbar [data-campaign-batch=finish]:not(:disabled){background:#fff8ec;color:#896326;border:1px solid #ead8b5}
#workspace .reference-toolbar button:disabled{color:#8391a2!important;background:#f5f7fa!important}
#workspace .reference-group-layout{height:var(--polish-list-height,calc(100dvh - 200px));min-height:240px}
#workspace .reference-screen-tasks{height:var(--polish-list-height,calc(100dvh - 100px));min-height:300px}
#workspace .reference-pager{flex-wrap:nowrap;gap:7px;padding:12px 8px;white-space:nowrap;font-size:12px;min-height:54px;box-sizing:border-box;border-top:1px solid #edf1f5;background:#fff}
#workspace .reference-pager button{padding:6px 9px;min-width:28px;flex:none}#workspace .reference-pager select{padding:6px 8px;max-width:114px;flex:none}
#workspace .reference-groups{min-width:0}.reference-group-line .reference-group{overflow:hidden;text-overflow:ellipsis}.reference-group-search{gap:5px}
#workspace .reference-group-layout .reference-table-wrap{min-height:0}.reference-table-wrap th{position:sticky;top:0;z-index:1}.reference-table-wrap td.reference-empty{border-bottom:0!important}
#campaign-list:has(.campaign-empty) .reference-task-table{min-width:0!important;width:100%;table-layout:fixed}
#campaign-list:has(.campaign-empty) .reference-task-table th{white-space:normal;overflow-wrap:anywhere;padding:12px 7px}
#campaign-list:has(.campaign-empty) .reference-task-table th:first-child{width:30px}
#workspace #campaign-list:has(.campaign-empty) .reference-task-table td[colspan]{height:280px!important}
#view-campaigns .campaign-empty{padding:26px 16px;min-width:0;max-width:100%;box-sizing:border-box;text-align:center}
#view-campaigns .campaign-empty p{max-width:360px;margin:10px auto 18px;line-height:1.6;white-space:normal}
#view-campaigns .campaign-empty>div{justify-content:center;flex-wrap:wrap}
#workspace .account-table .pool-account-meta{font-size:12px;color:#697789;line-height:1.5;margin-top:4px}
#workspace .account-table .account-identity{line-height:1.45}.account-table td{font-variant-numeric:tabular-nums}
#workspace .reference-service-layout table td,#workspace .reference-group-layout td{line-height:1.5;font-size:13px}
.reference-table-wrap td .text-button{padding:5px 3px;margin-right:7px}.reference-table-wrap tbody tr:hover{background:#f5f9fe}
#service-inbox-context:not([hidden]){display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:9px 12px;margin:0 0 12px;border:1px solid #dbe8f6;background:#f3f8ff;border-radius:7px;color:#365d84;font-size:13px}
#service-inbox-context .text-button{margin:0;padding:4px 0;color:#2875b9}.inbox-list-empty p,.campaign-empty p{color:#69798b!important}
.reference-operation-dialog{max-height:90dvh;overflow:auto;scrollbar-gutter:stable}.reference-operation-dialog input:not([type=checkbox]):not([type=radio]),.reference-operation-dialog select,.reference-operation-dialog textarea{box-sizing:border-box;width:100%;border:1px solid #dce3ed;border-radius:7px;padding:10px 12px;font:inherit;color:#425269;background:#fff}
.reference-operation-dialog textarea{line-height:1.6;resize:vertical;min-height:100px}.reference-operation-dialog label{line-height:1.5;color:#536579}
.reference-operation-dialog table{width:100%;border-collapse:collapse;font-size:13px}.reference-operation-dialog table th,.reference-operation-dialog table td{padding:11px 12px;text-align:left;border-bottom:1px solid #e8edf4;vertical-align:top;overflow-wrap:anywhere}.reference-operation-dialog table th{background:#f4f7fb;font-weight:600;color:#566c84}.reference-operation-dialog progress{width:100%;height:8px;accent-color:#388bd0;margin:4px 0 16px}
.account-results-table .account-result-reason{line-height:1.65;overflow-wrap:anywhere}.account-progress-footer{color:#66788d}.account-results-table th{position:sticky;top:0;z-index:1}
#statistics-stats article{padding:14px 16px;gap:7px}#statistics-stats article span{color:#65768b}#statistics-stats article strong{font-size:25px}
@media(min-width:1200px){#workspace .account-table th:first-child,#workspace .account-table td:first-child{position:sticky;left:0;background:#fff;z-index:2}#workspace .account-table th:nth-child(2),#workspace .account-table td:nth-child(2){position:sticky;left:var(--polish-selection-width,48px);background:#fff;z-index:2}#workspace .account-table th:first-child,#workspace .account-table th:nth-child(2){z-index:3;background:#f3f7f8}}
@media(min-width:761px) and (max-width:1100px){#workspace .sidebar{width:180px;padding:22px 13px}#workspace .main-wrap{margin-left:180px}#workspace .brand{font-size:24px}#workspace .brand span{font-size:13px}#workspace .sidebar nav>.nav{font-size:14px;gap:12px;padding:11px 12px;min-height:46px}#workspace .reference-service-layout{grid-template-columns:minmax(0,1fr);min-height:0}.reference-service-nav{flex-direction:row;overflow-x:auto;gap:5px;padding:8px 10px;border-right:0;border-bottom:1px solid #e7edf4}.reference-side-link{flex:none;white-space:nowrap;padding:9px 12px;font-size:13px}#workspace .reference-service-layout>section{padding:16px}#workspace .reference-group-layout{grid-template-columns:150px minmax(0,1fr)}#view-tgpool .resizable-account-layout{--account-default-groups-width:150px}#workspace .view{padding:18px}#workspace #view-tgpool{padding:18px 14px 0}#workspace .reference-toolbar button{font-size:12px;padding:8px 10px}#workspace .account-toolbar button{padding:8px 11px}#statistics-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}#statistics-stats article{padding:11px 10px}#statistics-stats article span{font-size:11px}#statistics-stats article strong{font-size:23px}}
@media(max-width:760px){#workspace .reference-group-layout{grid-template-columns:125px minmax(0,1fr)}#workspace .reference-pager{gap:4px;padding:10px 4px;font-size:11px}#workspace .reference-pager select{max-width:94px;padding:5px}#workspace .reference-pager button{padding:5px 7px;min-width:24px}.reference-operation-dialog{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px);padding:20px}#statistics-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#workspace #view-tgpool{min-height:480px}.account-pagination{gap:6px}}

.reference-operation-dialog .result-success{color:#23805c;font-weight:600}.reference-operation-dialog .result-failed{color:#bf4747;font-weight:600}.reference-operation-dialog .result-running{color:#297ab7}
.reference-empty .polish-empty-message{display:block;position:sticky;left:0;width:var(--polish-empty-width,100%);max-width:100%;white-space:normal;text-align:center}
@media(max-width:480px){#workspace .reference-group-layout{grid-template-columns:105px minmax(0,1fr)}#workspace .reference-pager{gap:3px;font-size:10px}#workspace .reference-pager select{max-width:90px}#workspace .reference-group-search input{padding-inline:6px}}
