/* Unified visual finish: calm surfaces, stronger hierarchy and consistent controls. */
:root {
  --surface-1:#111821;
  --surface-2:#151e29;
  --surface-3:#1b2633;
  --line:rgba(161,179,199,.14);
  --text-strong:#f3f6fa;
  --text-soft:#aab8c7;
  --accent-soft:color-mix(in srgb,var(--brand-accent) 13%,#111821);
  --radius-card:16px;
  --shadow-card:0 14px 38px rgba(0,0,0,.2);
}
::selection{background:color-mix(in srgb,var(--brand-accent) 55%,#243141);color:#fff}
body{background:radial-gradient(ellipse at 50% -12%,#192432 0,transparent 48%),#090d12;color:#dce4ec;line-height:1.55}
.top{min-height:78px;background:rgba(9,13,18,.92);border-bottom:1px solid rgba(180,196,211,.12);backdrop-filter:blur(18px);padding-inline:max(calc((100vw - 1240px)/2),clamp(16px,4vw,52px))}
.brand{gap:14px}.brand small{font-size:8px;letter-spacing:.16em;color:#aab9c8}.brand b{font-size:15px;letter-spacing:-.02em}
.top-right{gap:12px}.top-right .secure{padding:8px 11px;border:1px solid rgba(132,205,164,.16);border-radius:99px;background:rgba(70,164,112,.06);font-size:10px}
.theme-toggle{border:1px solid rgba(181,197,213,.2);border-radius:9px;background:#151d27;color:#e5ebf1;padding:9px 12px;font:600 10px 'DM Sans',Arial,sans-serif}
.nav{min-height:50px;background:rgba(16,22,30,.96);border-color:rgba(161,179,199,.12);gap:5px;padding-inline:max(calc((100vw - 1240px)/2),clamp(12px,3.2vw,42px));box-shadow:0 8px 24px rgba(0,0,0,.1)}
.nav a{padding:0 12px;border-radius:9px 9px 0 0;font-size:10px;transition:background .22s,color .22s}
.nav a:hover{background:rgba(255,255,255,.045)}.nav a.on{background:linear-gradient(180deg,rgba(255,255,255,.055),transparent);color:#fff}
.container{max-width:1240px;padding:35px 0 64px}
.page-head{margin-bottom:27px}.page-head h1{font-size:clamp(25px,3vw,34px);letter-spacing:-.045em;color:var(--text-strong)}.page-head p{max-width:700px;font-size:12px;color:var(--text-soft)}
.eyebrow{font-size:9px;letter-spacing:.16em;text-transform:uppercase}
.panel,.stat,.feature,.service-card,.unit-card,.team-card,.task-card,.application-card,.request-card{border-radius:var(--radius-card);border-color:var(--line);background:linear-gradient(145deg,rgba(23,32,43,.98),rgba(16,22,30,.98));box-shadow:0 7px 24px rgba(0,0,0,.13)}
.panel{padding:24px}.panel h2{font-size:15px;letter-spacing:-.015em}.panel .section-head{gap:14px}
.stat{padding:20px;min-height:128px}.stat span{font-size:10px;letter-spacing:.015em}.stat strong{font-size:30px;letter-spacing:-.06em}.stat small{font-size:9px}
.dashboard-welcome{border-radius:18px;padding:26px 28px;background:radial-gradient(ellipse at 85% 20%,color-mix(in srgb,var(--brand-accent) 15%,transparent),transparent 40%),linear-gradient(120deg,#182332,#10161e);border-color:var(--line);box-shadow:var(--shadow-card)}
.dashboard-welcome h1{font-size:clamp(22px,3vw,30px);letter-spacing:-.045em}.dashboard-welcome p{font-size:11px}
.dashboard-security{border-radius:14px;padding:18px;background:linear-gradient(145deg,#1b1c1c,#15171a);border-color:rgba(211,170,90,.18);border-left-width:3px}
.dashboard-columns{gap:18px}.dashboard-stack{gap:18px}.dashboard-panel{padding:23px}
.hero{min-height:470px;border-radius:22px;padding:clamp(30px,5vw,64px);border-color:rgba(180,196,211,.16);box-shadow:0 28px 80px rgba(0,0,0,.28)}
.hero h1{font-size:clamp(34px,5vw,58px);max-width:700px;letter-spacing:-.06em}.hero-content>p{font-size:14px;max-width:530px}.hero-search{border-radius:11px;height:48px;max-width:460px}.hero-search button{width:50px}.hero-buttons{gap:11px}.hero-trust{font-size:10px;flex-wrap:wrap}
.art-card{border:1px solid rgba(255,255,255,.13);border-radius:13px;padding:17px 19px;backdrop-filter:blur(16px)}.card-a{right:5px}.card-b{left:0}
.landing-section{padding-top:70px}.section-title{margin-bottom:34px}.section-title h2{font-size:clamp(22px,3vw,30px);letter-spacing:-.045em}.section-title p{font-size:12px}
.feature-grid,.service-grid,.unit-grid,.team-grid{gap:16px}.feature,.service-card{padding:24px;border-radius:15px}.feature>span,.service-icon,.unit-icon{width:42px;height:42px;border-radius:12px;font-size:19px}.feature h3,.service-card b{font-size:14px}.feature p,.service-card p{font-size:11px;line-height:1.75}
.public-help{margin-top:34px;padding:27px 30px;border-radius:17px;background:linear-gradient(120deg,#151d27,#11171f);border-color:var(--line)}.public-help h2{font-size:19px}.public-help p{font-size:11px}
.btn,.secondary,.out{border-radius:9px;font-size:11px}.btn{padding:13px 17px}.btn.primary{box-shadow:0 9px 22px color-mix(in srgb,var(--brand-accent) 23%,transparent)}
.auth-wrap{padding-block:48px}.auth{border-radius:18px;padding:36px;background:linear-gradient(145deg,#161f2a,#10161e);border-color:var(--line);box-shadow:0 30px 90px rgba(0,0,0,.32)}.auth h1{font-size:30px;letter-spacing:-.05em}
.auth input:not([type=hidden]):not([type=checkbox]),.auth select,.auth textarea,.form-stack input,.form-stack textarea,.form-stack select,.staff-form input,.staff-form select{border-radius:9px;min-height:44px}
.auth textarea,.form-stack textarea{min-height:110px}.auth .btn.primary{min-height:49px;border-radius:10px}
.search-bar input{height:46px;border-radius:9px}.category-row a{padding:8px 13px;border-radius:99px;transition:transform .2s,background .2s,border-color .2s}.category-row a:hover{transform:translateY(-2px);background:var(--accent-soft)}
.table-card,.table-scroll{border-radius:13px}.table-scroll{border:1px solid var(--line)}.table-scroll table{min-width:620px}.table-scroll th{padding:13px 14px;background:#18212c;color:#aab8c7;letter-spacing:.08em}.table-scroll td{padding:14px;color:#d0d9e2;border-color:rgba(161,179,199,.1);font-size:11px}.table-scroll tbody tr:nth-child(even){background:rgba(255,255,255,.014)}.table-scroll tbody tr:hover{background:rgba(255,255,255,.045)}
.tag{border:1px solid transparent;padding:6px 10px;font-size:9px;letter-spacing:.015em}.tag.review{border-color:rgba(219,182,102,.18)}.tag.done{border-color:rgba(85,190,137,.16)}.tag.pending{border-color:rgba(221,116,121,.17)}
.alert,.success{padding:14px 16px;border-radius:11px;font-size:11px}.empty{padding:34px 20px;border:1px dashed var(--line);border-radius:12px;background:rgba(255,255,255,.012)}
.link-list a,.quick-links a{padding:14px 3px;font-size:11px;transition:padding .2s,color .2s}.link-list a:hover,.quick-links a:hover{padding-left:8px;color:#fff}
.announcement{padding:16px 0}.date-box{border-radius:10px;background:rgba(255,255,255,.025)}
.unit-meta{padding-top:14px}.unit-card p{min-height:42px;line-height:1.7}
footer{padding:22px max(calc((100vw - 1240px)/2),clamp(16px,4vw,52px));background:#0b1016;border-color:var(--line);font-size:10px}
body.theme-light{background:radial-gradient(ellipse at 50% -12%,#e5edf4 0,transparent 50%),#f3f6f9;color:#263849}
body.theme-light .top{background:rgba(23,59,92,.96);border-color:rgba(255,255,255,.16)}
body.theme-light .nav{background:rgba(255,255,255,.96);box-shadow:0 8px 24px rgba(23,59,92,.07)}
body.theme-light .nav a:hover{background:rgba(23,59,92,.055);color:#173b5c}body.theme-light .nav a.on{background:linear-gradient(180deg,rgba(23,59,92,.06),transparent);color:#173b5c}
body.theme-light .panel,body.theme-light .stat,body.theme-light .feature,body.theme-light .service-card,body.theme-light .unit-card,body.theme-light .team-card,body.theme-light .task-card,body.theme-light .application-card,body.theme-light .request-card{background:linear-gradient(145deg,#fff,#f9fbfd);border-color:#e1e8ef;box-shadow:0 8px 24px rgba(23,59,92,.055)}
body.theme-light .panel h2,body.theme-light .feature h3,body.theme-light .page-head h1{color:#20384f}
body.theme-light .dashboard-welcome{background:radial-gradient(ellipse at 85% 20%,color-mix(in srgb,var(--brand-accent) 11%,transparent),transparent 40%),linear-gradient(120deg,#fff,#f4f8fb);border-color:#e1e8ef;box-shadow:0 16px 40px rgba(23,59,92,.08)}
body.theme-light .dashboard-welcome h1{color:#20384f}body.theme-light .dashboard-security{background:linear-gradient(145deg,#fffcf5,#fff);border-color:#f0e3c9}
body.theme-light .hero{box-shadow:0 28px 75px rgba(23,59,92,.16)}
body.theme-light .auth{background:linear-gradient(145deg,#fff,#f7f9fb);border-color:#e0e7ed;box-shadow:0 25px 65px rgba(23,59,92,.1)}
body.theme-light .table-scroll{border-color:#e1e8ef}body.theme-light .table-scroll th{background:#edf3f7;color:#586e80}body.theme-light .table-scroll td{color:#42596d;border-color:#e9eef2}body.theme-light .table-scroll tbody tr:nth-child(even){background:#f8fafc}body.theme-light .table-scroll tbody tr:hover{background:#edf4f8}
body.theme-light .empty{border-color:#dbe4eb;background:rgba(23,59,92,.015)}body.theme-light .link-list a:hover,body.theme-light .quick-links a:hover{color:#173b5c}
body.theme-light footer{background:#fff;border-color:#e1e8ef}
@media(max-width:900px){.container{padding-top:27px}.dashboard-columns{gap:14px}.panel{padding:20px}.hero{min-height:420px}.art-card{min-width:175px}}
@media(max-width:760px){.top{min-height:68px}.top-right .secure{display:none}.nav{min-height:46px}.container{padding:22px 0 42px}.hero{border-radius:17px;padding:32px 25px}.landing-section{padding-top:48px}.feature-grid,.service-grid,.unit-grid,.team-grid{gap:11px}.feature,.service-card{padding:19px}.dashboard-welcome{padding:21px;border-radius:15px}.dashboard-panel{padding:19px}.public-help{padding:21px;border-radius:14px}.auth-wrap{padding-block:25px}.auth{padding:28px 21px;border-radius:15px}.table-scroll{border-radius:10px}}
@media(max-width:480px){.page-head{margin-bottom:19px}.page-head h1{font-size:23px}.hero{padding:28px 19px}.hero h1{font-size:31px}.hero-search{height:45px}.hero-art{transform:scale(.94);transform-origin:top center;margin-inline:-8px}.feature-grid,.service-grid,.unit-grid,.team-grid{grid-template-columns:1fr}.feature,.service-card{padding:20px}.dashboard-stats{gap:9px}.dashboard-stats .stat{min-height:112px}.dashboard-stats .stat strong{font-size:22px}.panel{padding:17px}.public-help{margin-inline:0}.section-title{text-align:left}.section-title h2{font-size:23px}.table-scroll table{min-width:560px}}

/* Editorial polish and richer component states. */
body{font-size:14px;line-height:1.62;background-image:radial-gradient(ellipse at 50% -15%,rgba(44,77,108,.24),transparent 52%),linear-gradient(rgba(148,169,191,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(148,169,191,.018) 1px,transparent 1px),linear-gradient(180deg,#0b1016,#090d12 55%,#0b1016);background-size:auto,42px 42px,42px 42px,auto}
.top{min-height:82px;padding-inline:max(calc((100vw - 1320px)/2),clamp(16px,4vw,56px));box-shadow:0 10px 32px rgba(0,0,0,.19)}
.brand{gap:15px}.brand small{font-size:8px;letter-spacing:.19em}.brand b{font-size:16px}
.top-right .out,.top-right .theme-toggle{min-height:38px;display:inline-flex;align-items:center;justify-content:center}
.nav{min-height:54px;padding-inline:max(calc((100vw - 1320px)/2),clamp(12px,3.2vw,46px));gap:3px}
.nav a{padding-inline:13px;font-size:10px;letter-spacing:.005em}.nav a.on{font-weight:700}
.container{max-width:1320px;padding-top:43px;padding-bottom:72px}
.page-head{position:relative;align-items:center;padding:0 0 21px;border-bottom:1px solid rgba(161,179,199,.1)}
.page-head>div:first-child{position:relative;padding-left:17px}.page-head>div:first-child::before{content:"";position:absolute;left:0;top:5px;bottom:5px;width:3px;border-radius:9px;background:linear-gradient(180deg,var(--brand-accent),color-mix(in srgb,var(--brand-accent) 15%,transparent))}
.page-head h1{font-size:clamp(28px,3.3vw,38px);line-height:1.12}.page-head p{font-size:12px;line-height:1.65}
.panel,.stat,.feature,.service-card,.unit-card,.team-card,.task-card,.application-card,.request-card{border-radius:18px;background:linear-gradient(145deg,rgba(24,34,46,.98),rgba(15,22,31,.98));border-color:rgba(166,184,203,.13);box-shadow:0 12px 34px rgba(0,0,0,.17)}
.panel{padding:27px}.panel h2{font-size:16px;line-height:1.35}.panel .muted,.panel>p{line-height:1.75}
.section-head{margin-bottom:21px}.section-head h2{font-size:16px}.section-head p{font-size:10px;line-height:1.6}
.stats,.dashboard-stats{gap:15px}.stat{min-height:138px;padding:22px}.stat span{font-size:11px}.stat strong{font-size:34px}.stat small{font-size:10px}
.dashboard-welcome{min-height:148px;padding:30px 34px;border-radius:20px}.dashboard-welcome h1{font-size:clamp(26px,3.2vw,36px)}.dashboard-welcome p{font-size:12px}
.dashboard-columns{grid-template-columns:minmax(0,1.55fr) minmax(270px,.72fr);gap:20px}.dashboard-stack{gap:20px}.dashboard-panel{padding:26px}
.dashboard-request{padding:15px 0}.dashboard-request b{font-size:11px}.dashboard-request small{font-size:10px}
.dashboard-security{border-radius:15px;padding:20px}.dashboard-security b{font-size:11px}.dashboard-security p{font-size:10px}
.hero{min-height:510px;border-radius:24px;padding:clamp(34px,6vw,76px);background-color:#101924}.hero-content{max-width:620px}.hero .eyebrow{margin-bottom:14px}.hero h1{max-width:680px;font-size:clamp(38px,5.1vw,64px);line-height:1.05}.hero-content>p{font-size:15px;line-height:1.8}.hero-trust{margin-top:24px;font-size:11px}
.art-orb{filter:saturate(.82);}.art-card{min-width:220px;padding:19px 21px;border-radius:15px}.art-card span{font-size:9px}.art-card b{font-size:13px}
.landing-section{padding:82px 10px 0}.section-title{max-width:680px;margin-bottom:39px}.section-title h2{font-size:clamp(25px,3vw,34px);line-height:1.2}.section-title p{font-size:13px;line-height:1.75}
.feature-grid,.service-grid,.unit-grid,.team-grid{gap:18px}.feature,.service-card{min-height:190px;padding:27px;border-radius:18px}.feature h3,.service-card b{font-size:15px}.feature p,.service-card p{font-size:12px;line-height:1.75}.feature-link i,.service-card i{font-size:10px;margin-top:18px}
.public-help{padding:30px 34px;border-radius:18px}.public-help h2{font-size:21px}.public-help p{font-size:12px;line-height:1.75}
.auth-wrap{min-height:calc(100vh - 230px);padding:56px 18px}.auth{width:min(100%,540px);padding:42px;border-radius:20px}.auth h1{font-size:32px}.auth>p,.auth form>p{font-size:13px;line-height:1.75}.auth label,.form-stack label,.staff-form label{font-size:11px;line-height:1.5}.auth input:not([type=hidden]):not([type=checkbox]),.auth select,.auth textarea,.form-stack input,.form-stack textarea,.form-stack select,.staff-form input,.staff-form select{min-height:48px;padding-inline:14px;font-size:13px;border-radius:10px}.auth textarea,.form-stack textarea{padding:13px;min-height:124px}
.staff-form{gap:15px}.identity-grid{gap:15px}.form-stack{gap:10px}
.permission-grid{gap:10px}.permission{min-height:62px;padding:12px 13px;border-radius:11px;background:rgba(255,255,255,.018);border-color:rgba(166,184,203,.13);transition:transform .2s,border-color .2s,background .2s}.permission:hover{transform:translateY(-2px);background:rgba(255,255,255,.04);border-color:color-mix(in srgb,var(--brand-accent) 44%,transparent)}.permission b{font-size:10px}.permission small{font-size:9px}
.table-scroll{border-radius:14px;background:rgba(8,12,17,.2)}.table-scroll table{min-width:680px}.table-scroll th{padding:15px 16px;font-size:9px}.table-scroll td{padding:15px 16px;font-size:11px;line-height:1.6}.table-scroll td:first-child{font-weight:600}.table-scroll tbody tr:last-child td{border-bottom:0}
.alert,.success{display:flex;align-items:flex-start;gap:10px;padding:15px 17px;border-radius:12px;line-height:1.65}.alert::before,.success::before{font-weight:800;font-size:14px}.alert::before{content:"!"}.success::before{content:"✓"}
.empty{padding:42px 24px;border-radius:16px;font-size:12px;line-height:1.7}
.task-card{padding:23px}.task-card-title h2{font-size:15px}.task-card-main p{font-size:12px}.task-meta{font-size:10px}.team-card{padding:25px}.team-card h2{font-size:16px}.team-member-list>div{padding:11px 0;font-size:12px}
.badge-grid{gap:14px}.earned-badge{padding:21px 14px;border-radius:15px}.earned-badge-icon{width:58px;height:58px;font-size:26px}.earned-badge b{font-size:11px}.earned-badge small,.earned-badge time{font-size:9px}
.btn,.secondary,.out,.theme-toggle{min-height:40px;padding:10px 15px;border-radius:10px;font-size:11px}.btn.primary{font-weight:700;letter-spacing:.01em}.btn.reject{border:1px solid rgba(236,132,138,.18)}
.status-pill{padding:8px 12px;border:1px solid rgba(86,194,141,.13);font-size:10px}
.crumb{font-size:10px;letter-spacing:.01em}
body.theme-light{background-image:radial-gradient(ellipse at 50% -15%,rgba(73,124,163,.1),transparent 52%),linear-gradient(rgba(49,83,112,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(49,83,112,.03) 1px,transparent 1px),linear-gradient(180deg,#f8fafc,#f0f4f7 55%,#f8fafc);background-size:auto,42px 42px,42px 42px,auto}
body.theme-light .panel,body.theme-light .stat,body.theme-light .feature,body.theme-light .service-card,body.theme-light .unit-card,body.theme-light .team-card,body.theme-light .task-card,body.theme-light .application-card,body.theme-light .request-card{background:linear-gradient(145deg,#fff,#f8fafc);border-color:#e1e8ef;box-shadow:0 12px 32px rgba(28,65,96,.07)}
body.theme-light .page-head{border-color:#e0e7ed}body.theme-light .page-head>div:first-child::before{background:linear-gradient(180deg,var(--brand-accent),color-mix(in srgb,var(--brand-accent) 24%,white))}
body.theme-light .permission{background:#fbfcfd;border-color:#e1e8ef}body.theme-light .permission:hover{background:#f5f8fa;border-color:color-mix(in srgb,var(--brand-accent) 34%,#dce5ec)}
body.theme-light .table-scroll{background:#fff}body.theme-light .table-scroll tbody tr:last-child td{border-color:transparent}
body.theme-light .dashboard-security{background:linear-gradient(145deg,#fffdf8,#fff);box-shadow:0 12px 30px rgba(91,67,24,.06)}
body.theme-light .top-right .secure{color:#e0f3e8;background:rgba(70,164,112,.12);border-color:rgba(160,239,193,.22)}
@media(max-width:980px){.dashboard-columns{grid-template-columns:minmax(0,1.3fr) minmax(250px,.8fr)}.container{max-width:none;margin-inline:24px}}
@media(max-width:760px){.container{margin-inline:16px;padding-top:27px;padding-bottom:46px}.top{min-height:68px}.nav{min-height:47px}.page-head{align-items:flex-start;padding-bottom:16px}.page-head>div:first-child{padding-left:13px}.dashboard-columns{grid-template-columns:1fr}.dashboard-welcome{min-height:auto;padding:23px}.hero{min-height:0;padding:35px 25px}.landing-section{padding-top:54px}.feature-grid,.service-grid,.unit-grid,.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.feature,.service-card{min-height:175px}.panel{padding:21px}.auth-wrap{padding:30px 8px}.auth{padding:30px 24px}.table-scroll table{min-width:620px}}
@media(max-width:520px){.container{margin-inline:13px}.top-right{gap:6px}.top-right .out{padding-inline:9px}.page-head h1{font-size:24px}.page-head .status-pill{white-space:nowrap}.stats,.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat,.dashboard-stats .stat{min-height:112px;padding:15px}.stat strong,.dashboard-stats .stat strong{font-size:24px}.feature-grid,.service-grid,.unit-grid,.team-grid{grid-template-columns:1fr}.feature,.service-card{min-height:auto}.public-help{align-items:flex-start;flex-direction:column}.public-help .btn{width:100%}.staff-form{grid-template-columns:1fr}.permission-grid{grid-template-columns:1fr}.panel{padding:17px}.dashboard-panel{padding:18px}.dashboard-welcome h1{font-size:24px}.auth{padding:27px 20px}.auth h1{font-size:27px}.hero{padding:29px 19px}.hero h1{font-size:clamp(30px,9vw,38px)}.hero .btn{min-height:44px}.hero-art{margin-top:13px}}
@media print{body{background:#fff!important;color:#111!important}.top,.nav,.theme-toggle,.out,button{display:none!important}.container{max-width:none;margin:0;padding:0}.panel,.stat,.feature{box-shadow:none!important;background:#fff!important;color:#111!important;border:1px solid #bbb!important;break-inside:avoid}footer{background:#fff!important;color:#333!important}}
