/* Site Risk workspace: mineral paper, deep teal and measured linework. */
:root{--ink:#102e30;--teal:#125c56;--paper:#f4f5ef;--line:#cdd6ce;--lime:#dbf29a;--muted:#516668;--primary:#155d54;--primary-2:#124e48;--primary-soft:#e2eee2;--sr-green:#155d54;--sr-line:var(--line)}
html body,html body:not(.mode-login){background:var(--paper)!important;color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif}
html [hidden]{display:none!important}
html body *{box-sizing:border-box}
html :focus-visible{outline:3px solid #268f88!important;outline-offset:3px}
html body .shell{grid-template-columns:232px minmax(0,1fr);max-width:none}
html body .main{width:100%;min-width:0;max-width:1640px;margin:0 auto;padding:18px clamp(18px,3vw,52px) 64px;overflow-wrap:anywhere}
.main :where(div,section,article,form,aside,fieldset,header,input,select,textarea){min-width:0}
html body :is(.sidebar,.mobile-sidebar){background:#102f32!important;padding:16px 12px;border:0;color:#ebf1e8}
html body :is(.sidebar,.mobile-sidebar) .brand{align-items:flex-start;text-align:left;padding:12px 10px 20px;margin:0;border-bottom:1px solid #345052;gap:12px}
html body :is(.sidebar,.mobile-sidebar) .brand-logo-bubble{background:#fff!important;width:146px;min-height:0;padding:9px;border:0;border-radius:3px;box-shadow:none}
html body :is(.sidebar,.mobile-sidebar) .brand-title{align-items:flex-start;text-align:left;line-height:1.4}
html body :is(.sidebar,.mobile-sidebar) .brand-title b{color:#fff;font-size:15px}
html body :is(.sidebar,.mobile-sidebar) .brand-title span{color:#b3c7c5}
html body .nav{gap:2px}
.nav-heading,.work-head>p,.hero-kicker,.signal small,.ledger small,.workspace-path,.entry-form label{font-family:"SFMono-Regular",Consolas,monospace}
.nav-heading{color:#a2b9b8;text-transform:uppercase;letter-spacing:.15em;font-size:10px;padding:21px 11px 8px}
html body .nav button{border:0!important;background:transparent;color:#e0eae7!important;padding:10px 12px;border-radius:4px!important;gap:11px;box-shadow:none!important;min-height:38px}
html body .nav button:hover{background:#25494b}
html body .nav button.active{background:var(--lime)!important;color:#123335!important}
html body .nav button .label{font-size:14px;color:inherit!important}
html body .nav button .ico{width:20px;height:20px;min-width:20px;background:transparent!important;color:inherit!important;border:0;box-shadow:none}
html body .nav button .ico svg{width:18px;height:18px;color:inherit!important}
html body .topbar{padding:0 0 15px;margin:0 0 26px;background:transparent!important;border:0;border-bottom:1px solid var(--line);border-radius:0!important;box-shadow:none!important}
.workspace-path{font-size:12px;color:var(--muted)}.workspace-path span{padding:0 8px;color:#748d86}
html body .search,html body .iconbtn,html body .userchip{border-radius:5px!important;border:1px solid var(--line);background:#fff;box-shadow:none!important}
html body .search{padding:9px 12px;max-width:480px}
html body .work-head{margin:0 0 20px}
.work-head>p,.hero-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.13em;font-weight:650;margin:0 0 8px}
.work-head h1,.entry h1,.entry h2{letter-spacing:-.055em;line-height:1.04;margin:0}
.work-head h1{font-size:clamp(32px,3.5vw,54px);font-weight:650}
.atlas-hero{isolation:isolate;position:relative;background:#092f32;color:#f7faed;display:flex;align-items:center;padding:clamp(24px,3.2vw,48px);min-height:230px;border-radius:7px;overflow:hidden}
.atlas-hero:before{position:absolute;content:"";inset:0 0 0 36%;background:url('/site-drawing.webp') center/cover;z-index:-1;mask-image:linear-gradient(to right,transparent,#000 30%)}
.atlas-hero>div{max-width:52%}.atlas-hero p{max-width:42ch;color:#c2d4ce;line-height:1.5;margin-bottom:0}
.atlas-hero .hero-kicker{color:var(--lime);margin:0}
.hero-score{display:block;color:#f1ffcc;font-size:clamp(46px,5.8vw,88px);font-weight:550;letter-spacing:-.065em;line-height:1.12;margin:8px 0}
.atlas-hero h2{font-size:clamp(17px,2vw,24px);margin:0;letter-spacing:-.03em}
.signal-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);margin:16px 0 32px;border-radius:6px;overflow:hidden}
.signal{background:#fff;border:0;text-align:left;display:grid;grid-template-columns:1fr auto;align-content:start;gap:6px;padding:clamp(14px,1.8vw,24px);cursor:pointer;color:var(--ink)}
.signal:hover,.ledger button:hover{background:#eaf2e4}.signal-icon{grid-column:2;grid-row:1/3;color:var(--teal)}
.signal-icon svg{width:20px;height:20px}.signal>span:not(.signal-icon){grid-row:1;font-size:14px;font-weight:600}
.signal strong{grid-row:2;font-size:38px;line-height:1.15;letter-spacing:-.05em}.signal small{grid-column:1/-1;color:var(--muted);font-size:11px}
.work-title,.tool-actions,.folder-panel{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.work-title{justify-content:space-between;margin:30px 0 12px}
.work-title h2,.folder-panel h2{margin:0;font-size:22px;letter-spacing:-.04em}
.surface,html body:not(.mode-login) .card{background:#fff!important;border:1px solid var(--line)!important;border-radius:7px!important;box-shadow:none!important}
.surface{padding:20px}.ledger{padding:0;overflow:hidden}.ledger>p{padding:0 18px}
.ledger-row{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:15px 20px;background:white;color:var(--ink);width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
button.ledger-row{cursor:pointer}.ledger-row:last-child{border-bottom:0}.ledger-row b,.ledger-row small{display:block}.ledger-row b{margin-top:3px;font-size:16px}.ledger small{font-size:11px;color:var(--muted)}
.ledger-score,.ledger-row>span{text-align:right}.ledger-score strong{font-size:23px;letter-spacing:-.04em}.late{color:#a62e22;font-weight:700}
.folder-icon svg{width:42px;height:42px;color:var(--teal)}.folder-panel .btn{margin-left:auto}.folder-panel p{margin-bottom:0}
.fire-response{width:min(100%,460px);display:grid;gap:8px}.fire-response textarea{min-height:76px}.fire-response button{justify-self:start}.history{margin-top:20px}.history summary{cursor:pointer;font-weight:700}.history summary+.card{margin-top:14px}.response p{white-space:pre-wrap}
html body :is(.btn,.btn-primary),html body:not(.mode-login) .btn{background:var(--teal)!important;color:white!important;border-radius:5px!important;box-shadow:none!important;font-size:14px;letter-spacing:0}
html body .btn.secondary,html body:not(.mode-login) .btn.secondary{background:#fff!important;color:var(--ink)!important;border:1px solid var(--line)}
html body .btn.danger{background:#97382e!important}
html body :is(input,select,textarea){border-radius:5px;border-color:var(--line);max-width:100%}
html body .page-head.card{border-top:3px solid var(--teal)!important}
html body .section-heading-row,html body .form-actions,html body .resource-buttons{flex-wrap:wrap;row-gap:12px}
.admin-task-row,.client-task-card{flex-wrap:wrap}.client-task-card>div{flex:1 1 230px}
html body .table-wrap{max-width:100%;overflow:auto}
html body.mode-login{height:auto}.entry{min-height:100svh;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
.entry-art{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;padding:clamp(28px,5vw,80px);background:#092f32 url('/site-drawing.webp') center 75%/min(105%,900px) auto no-repeat;color:white}
.wordmark{width:170px;padding:8px;background:white;border-radius:2px}
.entry-art h1{font-size:clamp(54px,7vw,108px);color:#f1ffcc;font-weight:550;margin-top:36px}
.standards{display:flex;align-items:center;gap:16px;background:white;padding:10px 14px;border-radius:3px}
.standards img{width:auto;max-width:64px;height:25px;object-fit:contain}
.entry-form{align-self:center;justify-self:center;width:min(380px,82%);display:grid;gap:10px;padding:30px 0}
.entry-form h2{font-size:48px}.entry-form p{margin:0 0 18px;color:var(--muted)}.entry-form label{margin-top:12px}.entry-form .btn{margin-top:10px;padding:14px}
@media(max-width:1100px){.signal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){html body .shell{grid-template-columns:minmax(0,1fr)}html body .topbar{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:10px}
html body .topbar .mobile-only{flex:none;width:40px;height:40px}html body .topbar .search{order:0;flex:1;min-width:0}html body .topbar .actions{display:flex;order:0;width:auto;margin-left:auto;flex-wrap:nowrap;gap:6px}
html body .topbar .actions .iconbtn{width:36px;height:36px}html body .topbar .userchip{width:auto}
.mobile-sidebar:not(.open){visibility:hidden}.mobile-sidebar.open{visibility:visible}}
@media(max-width:650px){html body .main{padding:12px 14px 40px}
html body .topbar{flex-wrap:wrap;margin-bottom:20px}html body .topbar .search{order:4;flex:1 0 100%;max-width:none}html body .topbar .actions .meta{display:none}
.workspace-path{font-size:10px;flex:1}.workspace-path span,.workspace-path b{display:none}
.atlas-hero{min-height:190px}.atlas-hero>div{max-width:78%}.atlas-hero:before{inset:0 0 0 40%;opacity:.33}
.signal{padding:14px}.signal-grid{margin-bottom:20px}.ledger-row{padding:14px;gap:8px}.ledger-row>span,.ledger-score{max-width:40%}
.entry{grid-template-columns:1fr;min-height:100svh;align-content:start}.entry-art{padding:24px;min-height:195px;background-size:66% auto;background-position:140% center}.entry-art h1{font-size:38px;margin-top:20px}.entry .standards{margin-top:10px;padding:5px 8px}.standards img{height:16px}.entry-form{width:min(420px,calc(100% - 42px));padding:30px 0}
html body .main :is(.grid.cols-2,.grid.cols-3,.grid.cols-4,.admin-split,.registry-kpis,.module-grid,.risk-meta-grid){grid-template-columns:minmax(0,1fr)!important}
html body .monitoring-score-panel,html body .registry-hero-score{min-width:0}.folder-panel .btn{margin-left:0}.tool-actions{gap:7px}
}
.main .admin-split,.main .admin-split>.card,.company-filter{min-width:0!important}
.main .company-filter{width:min(260px,100%)}
@media(max-width:1100px){html body .main .admin-split{grid-template-columns:minmax(0,1fr)!important}}
html body .main .eyebrow{display:block;background:transparent;padding:0;color:var(--teal);letter-spacing:.13em;font:600 11px/1.5 Consolas,monospace;text-transform:uppercase}
.main>.sub:empty{display:none}
.main .admin-task-row,.main .client-task-card{border-radius:6px;box-shadow:none}
html body .modal-card{border-radius:8px!important;border-top:4px solid var(--teal);padding:clamp(16px,3vw,32px)}
html body .modal-body-wrap{min-width:0}
@media(max-width:650px){.modal-overlay{padding:8px}.modal-card{max-height:calc(100vh - 16px)}.modal-card .grid{grid-template-columns:minmax(0,1fr)!important}.mobile-sidebar-head>.brand{min-width:0;flex:1}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:0s!important;animation-duration:0s!important}}
@media(max-width:980px){
  html body .topbar .actions>.iconbtn,html body .topbar .actions>.dropdown{flex:0 0 auto}
}
@media(max-width:650px){
  html body .topbar .actions .dropdown .userchip{width:36px;min-width:36px;height:36px;justify-content:center;padding:2px;gap:0}
  html body .topbar .userchip>span{display:none}
  html body .topbar .actions{flex:0 0 auto;max-width:100%}
}

/* Shared control geometry, including controls mounted inside dialogs. */
html body select:not([multiple]):not([size]), html body select[size="1"] {
  -webkit-appearance:none; appearance:none;
  min-height:44px; padding:10px 42px 10px 14px!important;
  background-color:white;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6' stroke='%23344f50' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important; background-size:16px 16px!important;
  background-position:right 14px center!important; line-height:1.4;
}
@media(forced-colors:active){html body select:not([multiple]):not([size]){appearance:auto;background-image:none!important}}
html body .main .eyebrow {
  display:table;max-width:100%;width:fit-content;
  padding:5px 11px 5px 12px;margin:0 0 10px;line-height:1.4;
  background:#edf4eb!important;color:#24554c!important;
  border:0!important;border-inline-start:3px solid #69a491!important;border-radius:0 4px 4px 0!important;
}
html body .shell .nav button .ico, html body .shell .nav button .ico svg {
  color:#def0eb!important;background:transparent!important;box-shadow:none!important;
}
html body .shell .nav button.active {
  color:#f0faf3!important;background:#244c4c!important;box-shadow:inset 3px 0 #d4ed9e!important;
}
html body:not(.mode-login) .main .topbar {
  padding:12px clamp(12px,1.6vw,24px);border:1px solid var(--line);
  background:#fafbf7!important;border-radius:8px!important;gap:12px;align-items:center;
}
.workspace-path{line-height:1.5;min-width:0}
html body .topbar .actions{align-items:center;gap:10px}
html body .topbar .userchip{min-width:0;gap:9px;padding:6px 10px;min-height:40px;line-height:1.25}
html body .topbar .userchip .meta{line-height:1.25;text-align:left}
html body .topbar .top-action-badge{right:-4px;top:-5px;font-size:10px;min-width:17px;height:17px;line-height:17px}
html body .topbar .menu{padding:5px;min-width:148px;border-radius:6px}
html body .topbar .menu button{padding:11px 13px;border-radius:4px}
html body .topbar .menu button:hover{background:#edf3ec}
.atlas-hero{min-height:158px;padding:clamp(18px,1.8vw,28px) clamp(20px,2.5vw,36px)}
.atlas-hero>div{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:clamp(12px,1.7vw,26px);row-gap:4px;align-items:center;max-width:57%}
.atlas-hero .hero-kicker{grid-column:1/-1}
.atlas-hero .hero-score{grid-column:1;grid-row:2/4;font-size:clamp(42px,4.5vw,68px);line-height:1;margin:0}
.atlas-hero h2{grid-column:2;align-self:end;font-size:clamp(16px,1.5vw,22px);line-height:1.25}
.atlas-hero h2+p{grid-column:2;align-self:start;margin:0;line-height:1.45;font-size:14px}
.atlas-hero:before{background-size:auto 132%;background-position:center 48%;background-repeat:no-repeat}
.entry-art h1{font-size:clamp(43px,5.4vw,82px);letter-spacing:.008em;line-height:1.03}
.entry-tagline{margin:14px 0 0;color:#f2f8e9;font-size:clamp(16px,1.45vw,23px);line-height:1.4}
html body .main .table{border-collapse:collapse;border-spacing:0}
html body .main .table thead th{padding:12px 14px;background:#f3f6f1;border-bottom:1px solid var(--line)}
html body .main .table tbody tr td{padding:14px;border:0;border-bottom:1px solid var(--line);border-radius:0!important;vertical-align:middle;line-height:1.45}
html body .main .table tbody tr:last-child td{border-bottom:0}
html body .main .table .btn.small,.directory-action{white-space:nowrap;overflow-wrap:normal}
.directory-layout>.card{min-width:0}
html body .main .directory-layout{grid-template-columns:minmax(0,1fr);gap:20px}
html body .main .directory-table{table-layout:auto;min-width:0}
.directory-table .muted{margin-top:3px;font-size:.9em}
.directory-table td:last-child{width:1%;text-align:right}
.directory-table th:last-child{width:1%}
.directory-layout .section-heading-row{align-items:end;gap:12px}
.directory-layout .company-filter{margin:0 0 6px}
@media(min-width:1600px){html body .main .directory-layout{grid-template-columns:minmax(0,1.5fr) minmax(370px,1fr);align-items:start}}
@media(max-width:700px){
  .atlas-hero{min-height:148px}
  .atlas-hero>div{max-width:80%;grid-template-columns:minmax(0,1fr);row-gap:5px}
  .atlas-hero .hero-score,.atlas-hero h2,.atlas-hero h2+p{grid-column:1;grid-row:auto}
  .atlas-hero h2+p{font-size:13px}
  .atlas-hero:before{inset:0 0 0 44%;opacity:.34}
  .entry-art h1{font-size:clamp(32px,7vw,45px);margin-top:16px}
  .entry-tagline{font-size:15px;margin:8px 0}
  html body .topbar .actions{gap:6px}
  html body .main .users-directory thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .users-directory,.users-directory tbody{display:block}
  html body .main .users-directory tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:14px 2px;border-bottom:1px solid var(--line)}
  html body .main .users-directory tbody tr td{display:block;width:auto;text-align:left;border:0;padding:0}
  .users-directory td:first-child{grid-column:1;grid-row:1}
  .users-directory td:nth-child(2),.users-directory td:nth-child(3){grid-column:1;font-size:12px;color:var(--muted)}
  .users-directory .directory-action{grid-column:2;grid-row:1/4;align-self:center}
  .directory-layout .company-filter{width:100%}
}
@media(max-width:410px){.atlas-hero>div{max-width:95%}.entry-art{background-position:170% center}}
