/* DocuScan Admin v8 — professional, readable control surface */
:root{
  --bg:#f3f5f7;--surface:#fff;--surface-soft:#f8fafb;--ink:#18232d;--muted:#68737d;
  --border:#dfe5e9;--brand:#ed641f;--brand-dark:#d44e0d;--brand-soft:#fff0e7;
  --brand-softer:#fff8f3;--success:#16805a;--success-soft:#e8f7f0;--danger:#c83f4d;
  --danger-soft:#fff0f2;--warning:#956200;--warning-soft:#fff6da;
  --shadow:0 16px 42px rgba(19,35,46,.07);--shadow-sm:0 4px 15px rgba(19,35,46,.055);
  --sidebar-w:278px;--topbar-h:82px;--radius:17px;--radius-sm:11px;
}
html{font-size:16px}body{background:linear-gradient(135deg,#f5f7f8 0%,#f1f3f5 100%);color:var(--ink);font-size:14px;line-height:1.55}
body::before{content:"";position:fixed;z-index:-1;right:-180px;top:-180px;width:540px;height:540px;border-radius:50%;background:radial-gradient(circle,rgba(237,100,31,.075),transparent 68%)}
a{color:var(--brand-dark)}
.sidebar{background:linear-gradient(180deg,#111d26 0%,#0b151d 58%,#081118 100%);box-shadow:9px 0 35px rgba(9,20,28,.12)}
.sidebar-brand{min-height:88px;padding:20px 21px;border-bottom:1px solid rgba(255,255,255,.075)}
.brand-mark{width:47px;height:47px;overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:13px;background:#fff;box-shadow:0 9px 24px rgba(0,0,0,.22)}
.brand-mark img{width:100%;height:100%;display:block;object-fit:contain;padding:4px}
.sidebar-brand strong{font-size:18px;letter-spacing:-.025em}.sidebar-brand span{color:#93a3ae;font-size:11px;letter-spacing:.04em}
.sidebar-nav{padding:10px 14px 20px}.nav-label{padding:18px 12px 7px;color:#6f828e;font-size:10px;letter-spacing:.13em}
.sidebar-nav a{min-height:46px;margin:4px 0;padding:0 13px;border:1px solid transparent;border-radius:11px;color:#b9c5cc;font-size:13px;font-weight:650}
.sidebar-nav a:hover{border-color:rgba(255,255,255,.07);background:rgba(255,255,255,.055)}
.sidebar-nav a.active{border-color:rgba(255,137,76,.27);background:linear-gradient(100deg,rgba(237,100,31,.95),rgba(203,70,10,.9));box-shadow:0 10px 26px rgba(204,72,12,.2)}
.nav-icon{width:24px;font-size:15px;font-weight:800}.nav-live{background:#46d18f}
.sidebar-bottom{padding:15px;border-color:rgba(255,255,255,.075)}.sidebar-domain small{color:#6f818d}.sidebar-domain strong{color:#d9e0e4;font-size:12px}.sidebar-logout{font-size:13px}
.topbar{height:var(--topbar-h);padding:0 32px;border-color:#e1e6e9;background:rgba(255,255,255,.88);box-shadow:0 3px 18px rgba(17,32,42,.035)}
.topbar-title{display:grid;gap:2px}.topbar-title small{color:#9a6a50;font-size:9px;font-weight:850;letter-spacing:.13em}.topbar-title strong{font-size:17px;letter-spacing:-.015em}
.topbar-actions{display:flex;align-items:center;gap:12px}.topbar-site-link{min-height:38px;display:flex;align-items:center;gap:7px;padding:0 12px;border:1px solid var(--border);border-radius:10px;background:#fff;color:#52616b;text-decoration:none;font-size:11px;font-weight:750}.topbar-site-link i{width:7px;height:7px;border-radius:50%;background:#28a96f;box-shadow:0 0 0 4px rgba(40,169,111,.1)}
.topbar-user{display:grid;grid-template-columns:39px auto 14px;align-items:center;gap:10px;padding:6px 9px 6px 7px;border:1px solid transparent;border-radius:12px;color:var(--ink);text-decoration:none}.topbar-user:hover{border-color:var(--border);background:#fff}.topbar-user b{color:#9aa3aa}.admin-avatar{width:39px;height:39px;border-radius:11px;background:linear-gradient(135deg,#f07a3e,#ce4a0c);box-shadow:0 6px 15px rgba(220,81,16,.17)}.topbar-user strong{font-size:12px}.topbar-user span{font-size:9px;color:#86919a}
.content{max-width:1700px;padding:30px 32px 46px}.page-heading-row{margin-bottom:24px}.eyebrow,.preview-label{color:#c74e13!important;font-size:10px!important;letter-spacing:.15em}.page-heading{margin-top:5px;font-size:31px;line-height:1.12;letter-spacing:-.04em}.page-subtitle{max-width:760px;margin-top:8px;color:var(--muted);font-size:13px;line-height:1.6}
.panel-card,.card,.tool-activity-panel,.tools-list-section{border:1px solid var(--border);border-radius:var(--radius);background:rgba(255,255,255,.97);box-shadow:var(--shadow-sm)}
.panel-card{padding:23px}.panel-card:hover{border-color:#d6dde1}.panel-card-head{margin-bottom:21px}.panel-card-head h2,.card h2{font-size:18px}.panel-card-head p,.card-sub{font-size:12px;line-height:1.55}
.panel-icon{width:39px;height:39px;border-radius:11px;font-size:11px}.panel-icon.purple{color:#c64c12;background:#fff0e7}
.section-title-row h2{font-size:18px}.section-title-row p{font-size:11px;line-height:1.5}
.btn-primary,.btn-secondary,.btn-ghost-danger,.btn-reply,.btn-delete{min-height:42px;border-radius:10px;padding:0 15px;font-size:12px;font-weight:780}
.btn-primary{background:linear-gradient(135deg,#f07131,#dd5412);box-shadow:0 8px 19px rgba(222,82,15,.19)}.btn-primary:hover{background:linear-gradient(135deg,#df5a19,#c94608)}
.btn-secondary{border-color:#dbe1e5;background:#fff;color:#44535d}.btn-secondary:hover{border-color:#f2b28f;background:#fff8f3;color:#b8430c}
.modern-form label,.field-group label,.stacked-form label{color:#3d4a53;font-size:12px;font-weight:750}
.field-group input,.field-group select,.field-group textarea,.modern-form input,.modern-form select,.modern-form textarea,.stacked-form input,.stacked-form textarea,.stacked-form select{min-height:45px;padding:11px 13px;border-color:#d9e0e4;border-radius:10px;background:#fff;color:#1f2b34;font-size:13px}
.field-group textarea,.modern-form textarea,.stacked-form textarea{min-height:132px;line-height:1.65}.field-group input:focus,.field-group select:focus,.field-group textarea:focus,.modern-form input:focus,.modern-form select:focus,.modern-form textarea:focus,.stacked-form input:focus,.stacked-form textarea:focus,.stacked-form select:focus{border-color:#ec8b5c;box-shadow:0 0 0 4px rgba(237,100,31,.09)}
.field-group small,.upload-zone small{color:#77838c!important;font-size:11px!important}.upload-zone{padding:17px;border:1px dashed #e2a481;border-radius:12px;background:linear-gradient(135deg,#fffaf7,#fff6ef)}.upload-zone label{font-size:12px}.upload-zone input[type=file]{font-size:12px}.upload-zone input[type=file]::file-selector-button{min-height:36px;margin-right:11px;padding:0 12px;border:0;border-radius:8px;background:#182832;color:#fff;font-weight:750;cursor:pointer}
.alert{border-radius:12px;font-size:12px}.count-pill{padding:7px 10px;font-size:10px}
.dashboard-hero{padding:30px;border-color:#f0c2a9;background:linear-gradient(135deg,#fff 0%,#fffaf7 58%,#ffede2 100%)}.dashboard-hero::after{background:rgba(237,100,31,.08)}.dashboard-hero h1{font-size:34px}.dashboard-hero>div>p{font-size:13px}.hero-status{font-size:11px}
.dashboard-quick a{min-height:78px;border-color:#e4e8eb;border-radius:13px}.dashboard-quick span{color:var(--brand-dark);background:var(--brand-soft)}.dashboard-quick b{font-size:12px}.dashboard-quick small{font-size:10px}
.dashboard-kpis>a{padding:17px;border-radius:14px}.dashboard-kpis small{font-size:10px}.dashboard-kpis strong{font-size:25px}.dashboard-kpis em{font-size:10px}.kpi-symbol.purple{color:#ca4c10;background:#fff0e7}
.chart-legend,.rank-list small,.latest-use-list small,.latest-use-list code,.latest-use-list em,.latest-use-list time,.operations-summary small{font-size:10px}.rank-list b,.latest-use-list b,.operations-summary b{font-size:12px}.bar-action{background:linear-gradient(#f47d40,#d95413)}.bar-open{background:#f8c5aa}.bar-day b,.bar-day small{font-size:10px}
.content-item{padding:16px;border-color:#e0e5e8;border-radius:13px}.content-item-status{font-size:9px}.content-item-title h3{font-size:14px}.content-item-main>p{font-size:12px!important}.content-item-main>small{font-size:10px!important}
.target-grid label,.check-options label{min-height:40px;border-color:#e1e6e9;background:#fafbfc;font-size:11px!important}.target-grid label:hover,.check-options label:hover{border-color:#eeaa86;background:#fff8f4}
.live-preview-card,.blog-guide,.builder-guide .panel-card:first-child{background:linear-gradient(150deg,#13242f,#0b171f);box-shadow:0 18px 42px rgba(8,22,30,.13)}.live-preview-card .preview-label,.builder-guide .preview-label{color:#ff9e6e!important}.notice-preview h3{font-size:19px}.notice-preview p,.preview-help{font-size:11px}.check-list li{font-size:11px}.check-list li::before{color:#ff965f}
.tool-admin-grid{gap:13px}.tool-admin-card{padding:18px;border-color:#dfe5e8}.tool-admin-title-row h2{font-size:17px!important}.tool-admin-card-head p,.tool-admin-desc{font-size:12px!important}.tool-metrics>div{padding:11px;background:#f7f9fa}.tool-metrics strong{font-size:18px!important}.tool-metrics span{font-size:9px!important}.tool-last-use{font-size:11px}.tools-stat-grid small,.tools-kpi small{font-size:10px!important}
.activity-table th,.admin-table th,.audit-table th{padding:12px;font-size:10px!important;background:#f5f7f8}.activity-table td,.admin-table td,.audit-table td{padding:12px;font-size:11px!important}.activity-table tbody tr:hover,.admin-table tbody tr:hover,.audit-table tbody tr:hover{background:#fff9f5}
.health-overview{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.health-card-head h2{font-size:14px}.health-card-head p,.health-card>small{font-size:10px}.health-card>strong{font-size:16px}.health-state{font-size:9px}.check-rows b,.check-rows strong{font-size:11px}.check-rows small{font-size:10px}.upload-check-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.remote-upload-status{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px;padding-top:15px;border-top:1px solid var(--border)}.remote-upload-status span{padding:8px 10px;border-radius:8px;background:#f3f6f7;color:#61707a;font-size:10px}.remote-upload-status b{color:#263740}
.deployment-map{background:linear-gradient(145deg,#12232e,#0a171f)}.deployment-map p{font-size:11px}.deployment-paths small{font-size:9px}.deployment-paths code{font-size:10px}
.mail-app,.list-panel{border-color:#dfe5e8}.message-row,.subscriber-row,.contact-row{font-size:12px}
.article-template-card,.blog-theme-card{border-color:rgba(255,255,255,.14)}.article-template-card span{font-size:13px}.article-template-card small,.blog-theme-card small{font-size:10px}.article-template-card:hover,.article-template-card.is-selected,.blog-theme-card:hover,.blog-theme-card.is-selected{border-color:#ff9863;background:rgba(237,100,31,.18)}
.account-avatar-large{background:linear-gradient(135deg,#f27b3e,#cf4c0d);box-shadow:0 12px 28px rgba(219,79,13,.18)}.account-card>p,.account-card dt,.account-card dd{font-size:11px}
.upload-progress-modal{background:rgba(7,18,25,.72)}.upload-progress-card{border:1px solid rgba(255,255,255,.3);border-radius:20px;box-shadow:0 30px 90px rgba(2,12,18,.38)}.upload-progress-icon{background:var(--brand-soft);color:var(--brand-dark)}.upload-progress-card>span{color:var(--brand-dark)}.upload-progress-bar{height:11px;background:#e8ecee}.upload-progress-bar i{background:linear-gradient(90deg,#f47b3d,#d74d0b)}.upload-progress-card p{font-size:12px;line-height:1.55}.upload-progress-actions{display:flex;justify-content:center;gap:8px;margin-top:18px}.upload-progress-actions button{min-height:38px;padding:0 14px;border:1px solid #dce2e6;border-radius:9px;background:#fff;color:#4f5e67;font-size:11px;font-weight:750;cursor:pointer}.upload-progress-actions button:last-child{border-color:var(--brand);background:var(--brand);color:#fff}.upload-progress-modal.has-error .upload-progress-icon,.upload-progress-modal.has-error .upload-progress-bar i{background:var(--danger)}
.auth-page{background:radial-gradient(circle at 12% 15%,rgba(237,100,31,.14),transparent 29%),radial-gradient(circle at 88% 82%,rgba(18,37,49,.11),transparent 30%),#f2f5f6}.auth-box{padding:37px;border-color:#dce2e5;box-shadow:0 25px 80px rgba(13,31,42,.13)}.auth-brand>span{padding:4px;border:1px solid #e4e7e9;background:#fff;box-shadow:0 9px 22px rgba(18,36,47,.12)}.auth-brand img{width:100%;height:100%;object-fit:contain}.auth-copy h1{font-size:30px}.auth-box button{background:linear-gradient(135deg,#f07131,#d94f0d)}
@media(max-width:1250px){.health-overview{grid-template-columns:repeat(2,1fr)}.topbar-site-link{display:none}}
@media(max-width:980px){:root{--sidebar-w:278px}.content{padding:24px}.upload-check-grid{grid-template-columns:1fr}}
@media(max-width:760px){.topbar{padding:0 18px}.topbar-title{margin-left:42px}.topbar-user>div:not(.admin-avatar),.topbar-user>b{display:none}.topbar-user{grid-template-columns:39px;padding:0;border:0}.content{padding:20px 16px 36px}.page-heading{font-size:27px}.health-overview{grid-template-columns:1fr}.panel-card{padding:18px}.topbar-actions{gap:4px}}
@media(max-width:520px){.topbar-title small{display:none}.topbar-title strong{font-size:14px}.page-heading{font-size:25px}.dashboard-hero h1{font-size:28px}.upload-progress-card{padding:25px 20px}.remote-upload-status{display:grid}}
