/* Minimal compiled Tailwind subset for demo (not full) */
*{box-sizing:border-box}html{line-height:1.5}body{margin:0}
.min-h-screen{min-height:100vh}.bg-gray-50{background-color:#f9fafb}.bg-white{background-color:#fff}
.text-gray-900{color:#111827}.text-gray-600{color:#4b5563}.text-gray-500{color:#6b7280}
.text-blue-700{color:#1d4ed8}
.border{border:1px solid #e5e7eb}.border-b{border-bottom:1px solid #e5e7eb}.rounded{border-radius:.375rem}
.rounded-full{border-radius:9999px}.shadow{box-shadow:0 1px 2px rgba(0,0,0,.05)}
.hover\:underline:hover{text-decoration:underline}
.max-w-5xl{max-width:64rem}.max-w-sm{max-width:24rem}.mx-auto{margin-left:auto;margin-right:auto}
.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}
.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}
.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}
.p-4{padding:1rem}.p-6{padding:1.5rem}
.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}
.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}
.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}
.grid{display:grid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}
.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.md\:col-span-2{grid-column:span 2 / span 2}
.flex{display:flex}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-end{justify-content:flex-end}.ml-auto{margin-left:auto}
.text-xs{font-size:.75rem}.text-sm{font-size:.875rem}.text-lg{font-size:1.125rem}.text-xl{font-size:1.25rem}
.text-left{text-align:left}.text-right{text-align:right}
.font-medium{font-weight:500}.font-semibold{font-weight:600}
.w-full{width:100%}
.px-3{padding-left:.75rem;padding-right:.75rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}
.py-1{padding-top:.25rem;padding-bottom:.25rem}
.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}
.bg-blue-600{background-color:#2563eb}.text-white{color:#fff}
.hover\:shadow:hover{box-shadow:0 1px 3px rgba(0,0,0,.1)}
.border-t{border-top:1px solid #e5e7eb}

/* Modern extras */
.container{width:100%;max-width:1100px;margin-left:auto;margin-right:auto;padding-left:clamp(1rem,4vw,2rem);padding-right:clamp(1rem,4vw,2rem)}
.card{background:#fff;border:1px solid #e5e7eb;border-radius:.5rem;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.card-header{padding:.75rem 1rem;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between}
.card-body{padding:1rem}
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem .9rem;border-radius:.375rem;border:1px solid transparent;font-weight:500}
.btn-primary{background:#2563eb;color:#fff}
.btn-secondary{background:#f3f4f6;border-color:#e5e7eb;color:#111827}
.btn:hover{filter:brightness(0.98)}
.input{border:1px solid #e5e7eb;border-radius:.375rem;padding:.5rem .75rem}
.input:focus{outline:none;box-shadow:0 0 0 3px rgba(37,99,235,.2);border-color:#93c5fd}
.table{width:100%;border-collapse:separate;border-spacing:0}
.table th{font-size:.8rem;text-transform:uppercase;letter-spacing:.02em;color:#6b7280;background:#f9fafb}
.table th,.table td{padding:.6rem .5rem;border-top:1px solid #e5e7eb}
.table tr:hover{background:#f9fafb}
.badge{display:inline-flex;align-items:center;font-weight:600;font-size:.75rem;border-radius:9999px;padding:.15rem .5rem}
.badge.green{background:#dcfce7;color:#166534}
.badge.amber{background:#fef3c7;color:#92400e}
.badge.red{background:#fee2e2;color:#991b1b}
.badge.blue{background:#dbeafe;color:#1d4ed8}
.muted{color:#6b7280}
.justify-between{justify-content:space-between}
.mr-2{margin-right:.5rem}
.mb-6{margin-bottom:1.5rem}
.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem*var(--tw-space-y-reverse))}
.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem*var(--tw-space-y-reverse))}

/* Graphical counter meter */
.meter{display:flex;gap:0;width:180px;height:10px;background:#f3f4f6;border-radius:9999px;overflow:hidden}
.meter .seg{height:100%}
.meter .green{background:#22c55e}
.meter .amber{background:#f59e0b}
.meter .red{background:#ef4444}
.meter .blue{background:#3b82f6}
.small{font-size:.75rem}
.iconbtn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid #e5e7eb;border-radius:.375rem;padding:0 .25rem;color:#374151;background:#fff;margin-right:.25rem}
.iconbtn:hover{background:#f3f4f6}
.rowclick{cursor:pointer}
.toggle{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:.375rem;border:1px solid #e5e7eb;background:#fff;color:#6b7280}
.toggle.on{border-color:#c7d2fe;color:#1f2937;box-shadow:0 0 0 3px rgba(59,130,246,.2)}
.toggle.green{background:#dcfce7;color:#166534;border-color:#bbf7d0}
.toggle.red{background:#fee2e2;color:#991b1b;border-color:#fecaca}
.toggle.gray{background:#f3f4f6;color:#374151;border-color:#e5e7eb}
.faded{opacity:.6}

/* Stronger colors for selected outer buttons (do not affect middle which has .faded) */
.toggle.on.green:not(.faded){background:#16a34a;color:#ffffff;border-color:#15803d;box-shadow:0 0 0 3px rgba(22,163,74,.25)}
.toggle.on.red:not(.faded){background:#dc2626;color:#ffffff;border-color:#b91c1c;box-shadow:0 0 0 3px rgba(220,38,38,.25)}

/* Premium theme overrides */
:root{
  --font-body:"Source Sans 3", sans-serif;
  --font-display:"Sora", sans-serif;
  --ink-900:#0b1220;
  --ink-700:#334155;
  --ink-600:#475569;
  --ink-500:#64748b;
  --brand-700:#1e3a8a;
  --brand-600:#2f5aff;
  --brand-500:#4b7bff;
  --accent-500:#22d3ee;
  --card:rgba(255,255,255,.96);
  --card-strong:rgba(255,255,255,.98);
  --card-border:rgba(15,23,42,.08);
  --shadow-soft:0 10px 30px rgba(15,23,42,.08);
  --shadow:0 20px 50px rgba(15,23,42,.14);
}

body{
  color:var(--ink-900);
  background:
    radial-gradient(1100px 520px at 12% -12%, rgba(47,90,255,.14), transparent 60%),
    radial-gradient(900px 500px at 90% -10%, rgba(34,211,238,.16), transparent 55%),
    linear-gradient(180deg,#f6f7fb 0%,#eef2f7 55%,#f7f8fc 100%);
  position:relative;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(15,23,42,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.04) 1px, transparent 1px);
  background-size:48px 48px;
  opacity:.18;
  z-index:-1;
}

h1,h2,h3,.page-title{font-family:var(--font-display);letter-spacing:-.01em;color:var(--ink-900)}

a{color:var(--brand-600);text-decoration:none}
a:hover{color:var(--brand-700);text-decoration:none}

.bg-gray-50{background:transparent}
.bg-white{background:var(--card)}
.text-gray-900{color:var(--ink-900)}
.text-gray-700{color:var(--ink-700)}
.text-gray-600{color:var(--ink-600)}
.text-gray-500{color:var(--ink-500)}
.text-blue-700{color:var(--brand-700)}
.bg-blue-600{background:linear-gradient(135deg,var(--brand-600),var(--accent-500))}
.border,.border-b,.border-t{border-color:var(--card-border)}
.shadow{box-shadow:var(--shadow-soft)}

header{
  position:sticky;top:0;z-index:30;
  background:linear-gradient(180deg,rgba(255,255,255,.85),rgba(255,255,255,.72));
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--card-border);
}
header .container{gap:1rem}
header a{font-weight:600}
header nav a{
  padding:.35rem .8rem;border-radius:9999px;transition:all .2s ease;
  color:var(--ink-700);
}
header nav a:hover{background:rgba(47,90,255,.06);color:var(--brand-700)}
.bg-gray-100{background:rgba(47,90,255,.14)!important;color:var(--brand-700)!important}
.brand{
  color:var(--ink-900);
  flex-shrink:0;
  min-height:36px;
  gap:.55rem;
}
.brand-logo{
  height:34px;
  width:auto;
  display:block;
}
.brand-label{
  font-family:var(--font-display);
  font-size:1.22rem;
  font-weight:700;
  line-height:1;
  letter-spacing:-.01em;
  color:var(--ink-900);
}

main{animation:pageIn .5s ease}
@keyframes pageIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

.container{max-width:1180px}
.card{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:16px;
  box-shadow:var(--shadow-soft);
  transition:box-shadow .2s ease;
}
.card:hover{box-shadow:var(--shadow)}
.card-header{border-bottom:1px solid var(--card-border)}
.card-body{padding:1.1rem}

.btn{
  border-radius:9999px;
  padding:.55rem 1rem;
  font-weight:600;
  letter-spacing:.01em;
  box-shadow:0 8px 18px rgba(47,90,255,.18);
}
.btn-primary{
  background:linear-gradient(135deg,var(--brand-600),var(--accent-500));
  color:#fff;border:0;
}
.btn-secondary{
  background:var(--card-strong);
  color:var(--ink-700);
  border:1px solid var(--card-border);
  box-shadow:none;
}
.btn:hover{filter:brightness(1.02)}

.input{
  background:rgba(255,255,255,.9);
  border:1px solid rgba(15,23,42,.12);
  border-radius:12px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.input:focus{outline:none;box-shadow:0 0 0 4px rgba(47,90,255,.18);border-color:rgba(47,90,255,.4)}

.table{border-spacing:0 6px}
.table th,.table td{border:0;padding:.75rem .7rem}
.table th{background:transparent;color:var(--ink-500);font-weight:600}
.table td{background:var(--card-strong);border:1px solid var(--card-border)}
.table tr td:first-child{border-top-left-radius:12px;border-bottom-left-radius:12px}
.table tr td:last-child{border-top-right-radius:12px;border-bottom-right-radius:12px}
.table tr:hover td{background:rgba(255,255,255,.96)}

.badge,.pill{border-radius:9999px;padding:.2rem .6rem;font-weight:700}
.badge.green,.pill.green{background:rgba(34,197,94,.15);color:#166534}
.badge.amber,.pill.amber{background:rgba(245,158,11,.16);color:#92400e}
.badge.red,.pill.red{background:rgba(239,68,68,.15);color:#991b1b}
.badge.blue,.pill.blue{background:rgba(59,130,246,.14);color:#1d4ed8}

.meter{height:8px;background:rgba(15,23,42,.08)}
.meter .green{background:linear-gradient(90deg,#16a34a,#22c55e)}
.meter .amber{background:linear-gradient(90deg,#f59e0b,#fbbf24)}
.meter .red{background:linear-gradient(90deg,#ef4444,#f87171)}
.meter .blue{background:linear-gradient(90deg,#2563eb,#38bdf8)}

.meter-stats{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem .7rem;
  margin-top:.32rem;
}
.meter-stat{
  font-weight:700;
  letter-spacing:.01em;
}
.meter-stat.green{color:#15803d}
.meter-stat.amber{color:#b45309}
.meter-stat.red{color:#b91c1c}
.meter-stat.blue{color:#1d4ed8}

.iconbtn{
  width:30px;height:30px;border-radius:10px;
  background:var(--card-strong);
  border:1px solid var(--card-border);
  box-shadow:0 6px 12px rgba(15,23,42,.08);
}
.iconbtn:hover{background:rgba(255,255,255,.92)}
.rowclick:hover{background:rgba(47,90,255,.03)}

dialog{
  background:transparent;
  border:0;
  padding:0;
  max-width:none;
}
dialog::backdrop{background:rgba(2,6,23,.42);backdrop-filter:blur(4px)}
#modal>form{
  width:min(820px, calc(100vw - 2rem));
  max-height:calc(100vh - 3rem);
  overflow:auto;
  background:var(--card-strong);
  border:1px solid var(--card-border);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:1.2rem 1.25rem 1.15rem;
}
#modal>form .text-lg.font-semibold{margin-bottom:.2rem}
#modal>form .small{line-height:1.45}
#modal>form .grid{gap:.9rem}
#modal>form .card{border-radius:14px}
#modal>form .flex.gap-2{margin-top:.95rem}
form label{
  font-size:.82rem;
  font-weight:700;
  letter-spacing:.01em;
  color:var(--ink-700);
}
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form input[type="date"],
form input[type="search"],
form select,
form textarea{
  border-radius:12px;
}
form input[type="file"]{
  padding:.35rem 0;
}

/* Dashboard layout */
.dashboard-hero{padding:1.6rem;margin-bottom:1.6rem}
.hero-body{display:grid;gap:1.6rem}
@media (min-width: 900px){
  .hero-body{grid-template-columns:1.2fr .8fr;align-items:center}
}
.eyebrow{font-size:.72rem;text-transform:uppercase;letter-spacing:.16em;color:var(--ink-500);font-weight:700}
.page-title{font-size:1.9rem;margin:.35rem 0 .4rem}
.hero-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.9rem}

.hero-panel{background:var(--card-strong);border:1px solid var(--card-border);border-radius:14px;padding:1.1rem;box-shadow:var(--shadow-soft)}
.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.8rem}
.panel-title{font-weight:700;color:var(--ink-900)}
.panel-badge{background:rgba(47,90,255,.12);color:var(--brand-700);font-weight:700;padding:.2rem .6rem;border-radius:9999px;font-size:.75rem}
.panel-row{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.4rem 0;border-top:1px dashed rgba(15,23,42,.08)}
.panel-row:first-of-type{border-top:0;padding-top:.2rem}
.panel-label{font-weight:600;color:var(--ink-700)}
.panel-pills{display:flex;flex-wrap:wrap;gap:.35rem;justify-content:flex-end}
.role-tags{display:flex;flex-wrap:wrap;gap:.4rem;margin:.6rem 0 .2rem}
.role-tag{padding:.25rem .65rem;border-radius:9999px;background:rgba(47,90,255,.12);color:var(--brand-700);font-size:.75rem;font-weight:700}

.switch-control{display:inline-flex;align-items:center;gap:.55rem;cursor:pointer;user-select:none}
.switch-input{position:absolute;opacity:0;pointer-events:none}
.switch-track{
  position:relative;display:inline-flex;align-items:center;
  width:44px;height:24px;border-radius:9999px;
  background:rgba(148,163,184,.35);border:1px solid rgba(148,163,184,.48);
  transition:all .18s ease;
}
.switch-thumb{
  position:absolute;left:2px;top:2px;width:18px;height:18px;border-radius:50%;
  background:#fff;box-shadow:0 2px 6px rgba(15,23,42,.2);
  transition:transform .18s ease;
}
.switch-input:checked + .switch-track{
  background:linear-gradient(135deg,var(--brand-600),var(--accent-500));
  border-color:rgba(47,90,255,.45);
}
.switch-input:checked + .switch-track .switch-thumb{transform:translateX(20px)}
.switch-input:focus-visible + .switch-track{box-shadow:0 0 0 4px rgba(47,90,255,.22)}
.switch-input:disabled + .switch-track{opacity:.5}

.action-icons{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:.42rem;
}
.action-icons .iconbtn{
  margin-right:0;
}
.action-icons .iconbtn svg{
  display:block;
  flex:0 0 auto;
}
.switch-control.is-disabled{opacity:.6;cursor:not-allowed}
.switch-text{font-size:.85rem;font-weight:600;color:var(--ink-700)}
.profile-notify-header{
  align-items:center;
  justify-content:flex-start;
  gap:1rem;
}

.pref-row{
  display:flex;align-items:center;justify-content:flex-start;gap:.65rem;
  padding:.45rem 0;border-top:1px dashed rgba(15,23,42,.08);
}
.pref-row:first-child{border-top:0;padding-top:0}
.pref-label{display:inline-block}

.stat-grid{display:grid;gap:1rem;margin-bottom:1.6rem}
@media (min-width: 900px){
  .stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
.stat-card{padding:1.1rem;position:relative;overflow:hidden}
.stat-card::after{content:"";position:absolute;right:-50px;top:-60px;width:160px;height:160px;background:radial-gradient(circle,rgba(47,90,255,.22),transparent 70%);opacity:.6}
.stat-title{font-weight:600;color:var(--ink-600);font-size:.9rem}
.stat-metric{font-family:var(--font-display);font-size:1.6rem;margin:.2rem 0 .5rem;color:var(--ink-900)}
.stat-pills{display:flex;flex-wrap:wrap;gap:.35rem}
.stat-link{display:inline-flex;margin-top:.65rem;font-weight:600;color:var(--brand-700)}
.stat-accent::after{background:radial-gradient(circle,rgba(34,211,238,.35),transparent 70%)}

.action-list{display:flex;flex-direction:column;gap:.45rem;margin-top:.4rem}
.action-link{display:inline-flex;align-items:center;gap:.45rem;padding:.45rem .7rem;border-radius:12px;background:rgba(47,90,255,.08);color:var(--brand-700);font-weight:600}
.action-link:hover{background:rgba(47,90,255,.08)}

.ops-card{margin:0 auto 1rem;max-width:1120px}
.ops-card .card-header{padding:.9rem 1.1rem .8rem}
.ops-card .card-body{padding:1.1rem 1.1rem 1.2rem}
.focus-block .exec-title{margin-bottom:.35rem}
.focus-block>.empty-note{padding-top:.15rem}

.table-card{margin:0 auto 1rem;max-width:1120px}
.table-card:last-of-type{margin-bottom:0}
.table-card .card-header{align-items:flex-end;padding:.9rem 1.1rem .8rem}
.table-card .card-body{padding:.85rem 1.1rem 1rem}
.table-card .table{margin-top:.15rem;border-spacing:0 .5rem}
.table-card .table th{padding:.35rem .75rem .45rem}
.table-card .table td{padding:.8rem .75rem}
.table-card .table tr td{background:rgba(255,255,255,.84)}
.table-card .table tr:hover td{background:rgba(255,255,255,.96)}
.table-card .table .table-empty{
  background:rgba(241,245,249,.62);
  border:1px dashed rgba(15,23,42,.12);
  color:var(--ink-600);
  border-radius:12px;
  padding:.85rem .9rem;
}

.compliance-bar{display:flex;flex-direction:column;gap:1.2rem;justify-content:flex-start;padding:1.4rem;margin:0 auto 1.2rem;width:100%;max-width:940px}
@media (min-width: 900px){
  .compliance-bar{
    flex-direction:row;
    align-items:center;
    gap:2rem;
    width:max-content;
    max-width:100%;
  }
}
.compliance-title{font-family:var(--font-display);font-size:1.6rem;margin:.2rem 0;color:var(--ink-900)}
.compliance-note{font-size:.85rem;color:var(--ink-600)}
.compliance-controls{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin-top:.85rem}
.range-pills{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}
.range-pill{display:inline-flex;align-items:center;justify-content:center;padding:.25rem .65rem;border-radius:9999px;border:1px solid var(--card-border);background:rgba(255,255,255,.72);color:var(--ink-700);font-weight:800;font-size:.75rem;transition:background .12s ease,border-color .12s ease,color .12s ease}
.range-pill:hover{background:rgba(47,90,255,.08);border-color:rgba(47,90,255,.2);color:var(--brand-700)}
.range-pill.active{background:rgba(47,90,255,.14);border-color:rgba(47,90,255,.24);color:var(--brand-700)}
.compliance-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.btn-sm{padding:.4rem .75rem;font-size:.85rem;border-radius:.5rem}
.compliance-right{display:flex;align-items:center;gap:1rem}
.shield-figure{position:relative;width:108px;height:108px;display:flex;align-items:center;justify-content:center}
.shield-glow{position:absolute;inset:-10px;border-radius:9999px;filter:blur(16px);opacity:.8}
.shield-figure.ok .shield-glow{background:radial-gradient(circle, rgba(34,197,94,.55), transparent 65%)}
.shield-figure.bad .shield-glow{background:radial-gradient(circle, rgba(239,68,68,.5), transparent 65%)}
.shield-icon{width:100%;height:100%}
.shield-icon path{stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;fill:rgba(255,255,255,.9)}
.shield-figure.ok .shield-icon path:first-of-type{stroke:#16a34a}
.shield-figure.bad .shield-icon path:first-of-type{stroke:#dc2626}
.shield-figure.ok .shield-check{stroke:#16a34a}
.shield-figure.bad .shield-x{stroke:#dc2626}
.shield-text{display:flex;flex-direction:column;gap:.2rem}
.shield-status{font-family:var(--font-display);font-size:1.2rem;font-weight:700;color:var(--ink-900)}
.shield-sub{font-size:.85rem;color:var(--ink-600)}

.kpi-grid{display:grid;gap:1rem;margin-bottom:1.6rem}
@media (min-width: 900px){
  .kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
.kpi-card{padding:1.1rem;position:relative;overflow:hidden;border-top:2px solid transparent}
.kpi-card::after{content:"";position:absolute;inset:auto -30px -50px auto;width:150px;height:150px;background:radial-gradient(circle,rgba(47,90,255,.1),transparent 70%);opacity:.45}
.kpi-urgent{border-color:rgba(239,68,68,.2);background:linear-gradient(135deg,rgba(239,68,68,.035),rgba(255,255,255,.96))}
.kpi-soon{border-color:rgba(245,158,11,.2);background:linear-gradient(135deg,rgba(245,158,11,.035),rgba(255,255,255,.96))}
.kpi-ok{border-color:rgba(34,197,94,.2);background:linear-gradient(135deg,rgba(34,197,94,.03),rgba(255,255,255,.96))}
.kpi-due{border-color:rgba(59,130,246,.2);background:linear-gradient(135deg,rgba(59,130,246,.03),rgba(255,255,255,.96))}
.kpi-urgent::after{background:radial-gradient(circle,rgba(239,68,68,.12),transparent 70%)}
.kpi-soon::after{background:radial-gradient(circle,rgba(245,158,11,.12),transparent 70%)}
.kpi-ok::after{background:radial-gradient(circle,rgba(34,197,94,.1),transparent 70%)}
.kpi-due::after{background:radial-gradient(circle,rgba(59,130,246,.1),transparent 70%)}
.kpi-label{font-size:.8rem;color:var(--ink-500);font-weight:600}
.kpi-value{font-family:var(--font-display);font-size:1.8rem;margin:.2rem 0;color:var(--ink-900)}
.kpi-meta{font-size:.75rem;color:var(--ink-600)}
.kpi-link{display:block;color:inherit;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}
.kpi-link:hover{transform:translateY(-1px);box-shadow:var(--shadow-soft)}
.kpi-link:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(47,90,255,.18),var(--shadow-soft)}

.entity-stack{display:flex;flex-direction:column;gap:1rem;margin:0 auto 1.9rem;max-width:1120px}
.entity-card .card-header{padding:.9rem 1.1rem .8rem}
.entity-card .entity-card-header-link{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  color:var(--ink-900);
  transition:background .12s ease,color .12s ease;
}
.entity-card .entity-card-header-link:hover{
  color:var(--brand-700);
  background:rgba(47,90,255,.04);
}
.entity-card .entity-card-header-link:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(47,90,255,.18) inset;
}
.entity-card .card-body{padding:.9rem}
.entity-layout{display:grid;gap:.55rem;align-items:center}
@media (min-width: 900px){
  .entity-layout{grid-template-columns:minmax(220px,.64fr) 1px minmax(0,1.56fr)}
}
.entity-graph{display:flex;align-items:center;justify-content:center;min-height:120px;padding:0 .1rem}
.entity-divider{
  height:1px;
  background:rgba(15,23,42,.12);
  margin:0 .1rem;
}
@media (min-width: 900px){
  .entity-divider{
    width:1px;
    height:calc(100% - .8rem);
    margin:.4rem 0;
  }
}
.entity-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.entity-stat{
  position:relative;
  padding:.35rem .9rem;
  min-height:104px;
  display:grid;
  grid-template-rows:2.35rem minmax(1.8rem,auto) 2.35rem;
  align-content:center;
  justify-items:center;
  text-align:center;
}
.entity-stat + .entity-stat::before{
  content:"";
  position:absolute;
  left:0;
  top:16%;
  bottom:16%;
  width:1px;
  background:rgba(15,23,42,.12);
}
.entity-stat-label{font-size:.78rem;font-weight:700;color:var(--ink-500);line-height:1.2;display:flex;align-items:flex-end}
.entity-stat-value{font-family:var(--font-display);font-size:1.55rem;line-height:1.1;color:var(--ink-900);margin:0;display:flex;align-items:center}
.entity-stat-meta{font-size:.74rem;color:var(--ink-600);line-height:1.35;display:flex;align-items:flex-start}
.entity-stat.green .entity-stat-value{color:#16a34a}
.entity-stat.amber .entity-stat-value{color:#d97706}
.entity-stat.red .entity-stat-value{color:#dc2626}
.entity-stat.blue .entity-stat-value{color:#2563eb}

.dashboard-split{display:grid;gap:1.2rem;margin-bottom:1.6rem}
@media (min-width: 900px){
  .dashboard-split{grid-template-columns:1.1fr .9fr}
}
.exec-card .card-body{display:flex;flex-direction:column;gap:1.1rem}
.exec-section{display:flex;flex-direction:column;gap:.45rem}
.exec-title{font-weight:700;color:var(--ink-900)}
.exec-pills{display:flex;flex-wrap:wrap;gap:.35rem}
.exec-meta{font-size:.8rem;color:var(--ink-600)}
.exec-divider{height:1px;background:rgba(15,23,42,.08)}

.ops-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-bottom:1.1rem}
.focus-block{margin-top:.2rem}
.focus-list{display:flex;flex-direction:column;gap:.7rem;margin-top:.55rem}
.focus-item{display:flex;gap:.7rem;align-items:flex-start;padding:.72rem;border-radius:12px;background:rgba(255,255,255,.7);border:1px solid var(--card-border)}
.focus-main{display:flex;flex-direction:column;gap:.2rem}
.focus-meta{font-size:.75rem;color:var(--ink-600)}
.empty-note{font-size:.85rem;color:var(--ink-600);padding:.6rem 0}

/* Dashboard status matrices */
.status-grid{--sigil-size:28px;display:grid;gap:1rem;margin:0 auto 1.6rem;max-width:760px}
@media (min-width: 900px){
  .status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.status-card .card-header{padding:.6rem .85rem}
.status-card .card-body{padding:.75rem .85rem}
.status-card .panel-title{font-size:1.05rem}
.status-card .pill{font-size:.7rem;padding:.15rem .5rem}

.audit-stream-card{margin-top:1rem}
.audit-stream{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:.8rem;
}
.audit-stream::before{
  content:"";
  position:absolute;
  left:.72rem;
  top:1rem;
  bottom:1rem;
  width:2px;
  border-radius:9999px;
  background:linear-gradient(180deg,rgba(47,90,255,.18),rgba(15,23,42,.06));
}
.audit-day-break{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:.8rem;
  align-items:center;
  margin:.15rem 0 .1rem 2rem;
}
.audit-day-label{
  display:inline-flex;
  align-items:center;
  padding:.3rem .7rem;
  border-radius:9999px;
  border:1px solid rgba(47,90,255,.16);
  background:rgba(255,255,255,.9);
  color:var(--brand-700);
  font-size:.74rem;
  font-weight:800;
  letter-spacing:.02em;
  box-shadow:var(--shadow-soft);
}
.audit-day-line{
  height:1px;
  background:linear-gradient(90deg,rgba(47,90,255,.16),rgba(15,23,42,.05));
}
.audit-item{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:2rem minmax(0,1fr);
  gap:1rem;
  align-items:flex-start;
}
.audit-node-column{
  display:flex;
  justify-content:center;
  padding-top:.9rem;
}
.audit-node{
  width:14px;
  height:14px;
  border-radius:9999px;
  border:3px solid rgba(255,255,255,.95);
  box-shadow:0 0 0 4px rgba(47,90,255,.08),0 10px 20px rgba(15,23,42,.12);
  background:rgba(148,163,184,.85);
}
.audit-node.green{background:#16a34a}
.audit-node.red{background:#dc2626}
.audit-node.amber{background:#d97706}
.audit-node.blue{background:#2563eb}
.audit-entry-panel{
  background:rgba(255,255,255,.88);
  border:1px solid var(--card-border);
  border-radius:18px;
  box-shadow:var(--shadow-soft);
  padding:1rem 1.05rem;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.audit-entry-panel:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow);
}
.audit-entry-panel.green{border-color:rgba(34,197,94,.18);background:linear-gradient(135deg,rgba(34,197,94,.035),rgba(255,255,255,.96))}
.audit-entry-panel.red{border-color:rgba(239,68,68,.2);background:linear-gradient(135deg,rgba(239,68,68,.04),rgba(255,255,255,.96))}
.audit-entry-panel.amber{border-color:rgba(245,158,11,.22);background:linear-gradient(135deg,rgba(245,158,11,.04),rgba(255,255,255,.96))}
.audit-entry-panel.blue{border-color:rgba(59,130,246,.18);background:linear-gradient(135deg,rgba(59,130,246,.03),rgba(255,255,255,.96))}
.audit-entry-head{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:flex-start;
}
.audit-entry-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:.18rem;
}
.audit-entry-title-row{
  display:flex;
  align-items:center;
  gap:.55rem;
  flex-wrap:wrap;
}
.audit-entry-title{
  margin:0;
  font-family:var(--font-display);
  font-size:1.02rem;
  font-weight:700;
  color:var(--ink-900);
}
.audit-entry-time{
  white-space:nowrap;
  font-family:var(--font-display);
  font-size:1.15rem;
  font-weight:700;
  color:var(--ink-900);
}
.audit-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  margin-top:.8rem;
}
.audit-details{
  margin-top:.9rem;
  border-top:1px solid rgba(15,23,42,.08);
  padding-top:.75rem;
}
.audit-details summary{
  cursor:pointer;
  list-style:none;
  font-size:.85rem;
  font-weight:700;
  color:var(--brand-700);
}
.audit-details summary::-webkit-details-marker{display:none}
.audit-details-body{
  margin:.7rem 0 0;
  padding:.9rem 1rem;
  border-radius:14px;
  border:1px solid var(--card-border);
  background:rgba(248,250,252,.92);
  color:var(--ink-800);
  font-size:.77rem;
  line-height:1.5;
  white-space:pre-wrap;
  overflow:auto;
}
.audit-no-details{margin-top:.8rem}
@media (max-width: 760px){
  .audit-stream::before{left:.62rem}
  .audit-item{grid-template-columns:1.6rem minmax(0,1fr);gap:.7rem}
  .audit-day-break{margin-left:1.6rem}
  .audit-entry-head{flex-direction:column}
  .audit-entry-time{font-size:1rem}
}

.status-matrix{
  --sigil-cols:12;
  --sigil-size-max:56px;
  --sigil-size:28px;
  width:100%;
  max-width:100%;
}
.status-matrix-grid{
  --sigil-gap:.2rem;
  display:grid;
  grid-template-columns:repeat(var(--sigil-cols), var(--sigil-size));
  grid-auto-rows:var(--sigil-size);
  gap:var(--sigil-gap);
  align-content:start;
  justify-content:center;
}
.status-matrix-comb{
  --comb-col:calc(var(--sigil-size) * 0.9);
  --comb-row:calc(var(--sigil-size) * 0.9);
  display:grid;
  grid-template-columns:repeat(var(--sigil-cols), var(--comb-col));
  grid-auto-rows:var(--comb-row);
  column-gap:0;
  row-gap:calc(var(--sigil-size) * 0.05);
  padding-bottom:calc(var(--sigil-size) * 0.5);
  align-content:start;
  justify-content:center;
}
.status-help{margin-top:.55rem}
.sigil{
  width:var(--sigil-size);
  height:var(--sigil-size);
  display:inline-block;
  position:relative;
  border:1px solid rgba(15,23,42,.14);
  box-shadow:0 6px 12px rgba(15,23,42,.08);
  transition:transform .12s ease,box-shadow .12s ease,filter .12s ease;
  cursor:pointer;
  transform:translateY(var(--sigil-y,0px));
}
.sigil:hover{transform:translateY(calc(var(--sigil-y,0px) - 1px));box-shadow:var(--shadow-soft);filter:saturate(1.06);z-index:2}
.sigil:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(47,90,255,.18),var(--shadow-soft)}
.sigil-hex{
  border:0;
  background:transparent !important;
  box-shadow:none;
}
.sigil-hex:hover{box-shadow:none}
.sigil-shape{
  display:block;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}
.sigil-shape-hex{
  clip-path:polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
  background:var(--sigil-fill, transparent);
  border:1px solid var(--sigil-border, rgba(15,23,42,.14));
  box-shadow:0 6px 12px rgba(15,23,42,.08);
}
.sigil-hex:hover .sigil-shape-hex{box-shadow:var(--shadow-soft);filter:saturate(1.06)}
.sigil[data-tip]::after{
  content:attr(data-tip);
  position:absolute;
  left:50%;
  bottom:calc(100% + 8px);
  transform:translate(-50%, 0);
  min-width:max-content;
  max-width:260px;
  padding:.42rem .56rem;
  border-radius:10px;
  background:rgba(15,23,42,.94);
  color:#f8fafc;
  font-size:.72rem;
  line-height:1.35;
  white-space:pre-line;
  text-align:left;
  box-shadow:0 10px 22px rgba(15,23,42,.28);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  z-index:40;
  transition:opacity .08s ease,visibility .08s ease;
}
.sigil[data-tip]::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:calc(100% + 4px);
  transform:translateX(-50%);
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  border-top:5px solid rgba(15,23,42,.94);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  z-index:40;
  transition:opacity .08s ease,visibility .08s ease;
}
.sigil[data-tip]:hover::after,
.sigil[data-tip]:hover::before,
.sigil[data-tip]:focus-visible::after,
.sigil[data-tip]:focus-visible::before{opacity:1;visibility:visible}
.sigil-square{border-radius:6px}
.sigil.green{--sigil-fill:linear-gradient(135deg,#16a34a,#22c55e);--sigil-border:rgba(22,163,74,.4);background:var(--sigil-fill);border-color:var(--sigil-border)}
.sigil.amber{--sigil-fill:linear-gradient(135deg,#f59e0b,#fbbf24);--sigil-border:rgba(245,158,11,.4);background:var(--sigil-fill);border-color:var(--sigil-border)}
.sigil.red{--sigil-fill:linear-gradient(135deg,#ef4444,#f87171);--sigil-border:rgba(239,68,68,.4);background:var(--sigil-fill);border-color:var(--sigil-border)}
