:root {
  --bg: #09111f;
  --bg-2: #0f172a;
  --panel: rgba(15, 23, 42, 0.88);
  --panel-strong: rgba(17, 24, 39, 0.96);
  --panel-soft: rgba(30, 41, 59, 0.72);
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --accent: #f9ba00;
  --accent-2: #ffd76a;
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --blue: #38bdf8;
  --violet: #a78bfa;
  --shadow: 0 18px 50px rgba(0,0,0,0.28);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249,186,0,0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(56,189,248,0.08), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 17, 31, 0.82);
  backdrop-filter: blur(14px);
}

.brand-block {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-logo {
  width: 150px !important;
  height: 150px !important;
  object-fit: contain;
  border-radius: 16px;
}

.brand-copy {
  min-width: 0;
}

.brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(249,186,0,0.22);
  background: rgba(249,186,0,0.10);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.topbar h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

select,
button {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text);
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  transition: 160ms ease;
}

select:focus,
button:focus {
  border-color: rgba(249,186,0,0.45);
  box-shadow: 0 0 0 3px rgba(249,186,0,0.12);
}

button {
  background: linear-gradient(180deg, #ffd76a 0%, #f9ba00 100%);
  color: #1b1b1b;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(249,186,0,0.18);
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-top: 8px;
}

h2 {
  margin: 28px 0 6px;
  font-size: 20px;
  font-weight: 450;
  letter-spacing: -0.012em;
}

.section-subtitle {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  display: grid;
  gap: 16px;
  margin-bottom: 8px;
}

.hero-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-card,
.card,
.chart-card,
.persona-card {
  background: linear-gradient(180deg, rgba(17,24,39,0.96) 0%, rgba(15,23,42,0.94) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  pointer-events: none;
}

.hero-live {
  border-color: rgba(249,186,0,0.22);
}

.label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.value {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.008em;
  margin-bottom: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.card {
  padding: 18px;
}

.card-title {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.card-value {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: -0.008em;
}

.card-meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 6px;
}

.persona-card {
  padding: 18px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.persona-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  opacity: 0.95;
}

.persona-ceo::before { background: linear-gradient(90deg, var(--accent), #f97316); }
.persona-cfo::before { background: linear-gradient(90deg, #22c55e, #84cc16); }
.persona-cto::before { background: linear-gradient(90deg, #38bdf8, #2563eb); }
.persona-chief::before { background: linear-gradient(90deg, #f472b6, #ec4899); }
.persona-manager::before { background: linear-gradient(90deg, #a78bfa, #7c3aed); }

.persona-role {
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.persona-title {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.persona-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 16px 0 10px;
}

.persona-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

.chart-card {
  padding: 18px 18px 12px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 14px;
}

.chart-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.chart-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.chart-badge {
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

canvas {
  width: 100%;
  display: block;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015) 0%, rgba(255,255,255,0.01) 100%);
  border-radius: 16px;
}

.table-wrap {
  overflow-x: auto;
  background: linear-gradient(180deg, rgba(17,24,39,0.96) 0%, rgba(15,23,42,0.94) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

.status-ok { color: var(--ok); }
.status-warn { color: var(--warn); }
.status-bad { color: var(--bad); }

@media (max-width: 1200px) {
  .persona-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }

  .hero-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar {
    padding: 16px;
  }

  .brand-block {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions select,
  .topbar-actions button {
    flex: 1;
  }

  .persona-grid,
  .hero-4,
  .grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 22px 16px 44px;
  }

  .topbar h1 {
    font-size: 26px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }
}

/* --- LOGO FIX --- */
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
}

.topbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar h1 {
  font-size: 22px;
  font-weight: 500;
}

.subtitle {
  font-size: 13px;
}

/* Optional: logo container feel */
.brand-logo {
  background: rgba(255,255,255,0.04);
  padding: 6px;
}

.clinic-highlight-card,
.clinic-waste-card {
  position: relative;
  overflow: hidden;
}

.clinic-highlight-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 22px 0 0 22px;
  background: var(--line-strong);
}

.clinic-highlight-card.risk-ok::before { background: var(--ok); }
.clinic-highlight-card.risk-warn::before { background: var(--warn); }
.clinic-highlight-card.risk-bad::before { background: var(--bad); }

.clinic-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.clinic-rank-badge,
.clinic-mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.clinic-mini-badge {
  color: var(--accent-2);
  border-color: rgba(249,186,0,0.20);
  background: rgba(249,186,0,0.10);
}

.clinic-risk-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.clinic-highlight-card.risk-ok .clinic-risk-value { color: var(--ok); }
.clinic-highlight-card.risk-warn .clinic-risk-value { color: var(--warn); }
.clinic-highlight-card.risk-bad .clinic-risk-value { color: var(--bad); }

.clinic-risk-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.clinic-metric-row,
.clinic-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
}

.clinic-metric-row span,
.clinic-total-row span {
  color: var(--muted);
}

.clinic-metric-row strong,
.clinic-total-row strong {
  color: var(--text);
  font-size: 15px;
}

.clinic-total-row {
  margin-top: 8px;
  padding-top: 14px;
  border-bottom: 0;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.clinic-total-row span,
.clinic-total-row strong {
  color: var(--accent-2);
  font-weight: 800;
}

.clinic-section {
  display: grid;
  gap: 16px;
}

.clinic-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(249,186,0,0.20);
  background: rgba(249,186,0,0.08);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.clinic-mini-chart {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)),
    var(--panel);
  box-shadow: var(--shadow);
}

.clinic-mini-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.clinic-mini-chart-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.clinic-mini-chart-subtitle {
  color: var(--muted);
  font-size: 12px;
}

.clinic-mini-chart-bars {
  display: grid;
  gap: 12px;
}

.clinic-mini-chart-row {
  display: grid;
  grid-template-columns: 140px 1fr 72px;
  align-items: center;
  gap: 12px;
}

.clinic-mini-chart-label {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.clinic-mini-chart-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}

.clinic-mini-chart-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(249,186,0,0.65), rgba(249,186,0,1));
}

.clinic-mini-chart-value {
  text-align: right;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .clinic-mini-chart-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .clinic-mini-chart-value {
    text-align: left;
  }
}

.clinic-mini-chart-row.is-leader {
  border: 1px solid rgba(249,186,0,0.25);
  box-shadow: 0 0 24px rgba(249,186,0,0.08);

  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(249,186,0,0.06);
}

.clinic-leader-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(249,186,0,0.22);
  background: rgba(249,186,0,0.12);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.clinic-mini-chart-fill.is-leader {
  box-shadow: 0 0 18px rgba(249,186,0,0.35);
  background: linear-gradient(90deg, rgba(255,208,64,0.78), rgba(249,186,0,1));
}

.clinic-mini-chart-value.is-leader {
  color: #ffd86b;
}

.intake-section{
  margin-top:24px;
  padding:24px;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:20px;
  background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
}

.section-head{
  margin-bottom:18px;
}

.section-head h2{
  margin:0 0 6px 0;
  font-size:22px;
}

.section-subtitle{
  margin:0;
  color:rgba(255,255,255,0.68);
}

.intake-form{
  display:block;
}

.intake-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
}

.intake-grid label{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.intake-grid label span{
  font-size:13px;
  color:rgba(255,255,255,0.72);
}

.intake-grid input,
.intake-grid select,
.intake-grid textarea{
  width:100%;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.04);
  color:#fff;
  border-radius:12px;
  padding:12px 14px;
  outline:none;
}

.intake-grid textarea{
  resize:vertical;
  min-height:110px;
}

.intake-grid input:focus,
.intake-grid select:focus,
.intake-grid textarea:focus{
  border-color:rgba(88,166,255,0.55);
  box-shadow:0 0 0 3px rgba(88,166,255,0.12);
}

.intake-wide{
  grid-column:1 / -1;
}

.intake-actions{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:18px;
}

.intake-actions button{
  border:0;
  border-radius:12px;
  padding:12px 18px;
  font-weight:600;
  cursor:pointer;
}

.intake-status{
  font-size:14px;
  color:rgba(255,255,255,0.72);
}

.intake-status.pending{ color:#f5c451; }
.intake-status.success{ color:#59d39b; }
.intake-status.error{ color:#ff7b72; }

@media (max-width: 900px){
  .intake-grid{
    grid-template-columns:1fr;
  }

  .intake-wide{
    grid-column:auto;
  }

  .intake-actions{
    flex-direction:column;
    align-items:flex-start;
  }
}

.intake-launcher-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.intake-launcher-copy{
  color:rgba(255,255,255,0.72);
}

.intake-open-btn{
  border:0;
  border-radius:12px;
  padding:12px 18px;
  font-weight:700;
  cursor:pointer;
}

#modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(3,8,20,0.72);
  backdrop-filter:blur(6px);
  z-index:999;
  padding:40px 20px;
  overflow:auto;
}

#modal > div{
  width:min(1120px, 100%);
  margin:0 auto;
  background:linear-gradient(180deg, #08152f 0%, #0b1b3d 100%);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:24px;
  box-shadow:0 24px 80px rgba(0,0,0,0.45);
  padding:28px;
}

.intake-modal-shell{
  display:block;
}

.intake-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.intake-modal-head h2{
  margin:0 0 6px 0;
  font-size:28px;
}

.intake-modal-close{
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.04);
  color:#fff;
  border-radius:12px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:700;
}

@media (max-width: 900px){
  .intake-launcher-row,
  .intake-modal-head{
    flex-direction:column;
    align-items:flex-start;
  }

  #modal{
    padding:20px 12px;
  }

  #modal > div{
    padding:18px;
    border-radius:18px;
  }
}


/* --- FINAL LOGO SIZE OVERRIDE 20260404 --- */
.brand-logo{
  width:180px !important;
  height:180px !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:contain;
  border-radius:16px;
}


.brand-at{
  color: var(--accent-2);
}


.at { color: #f9ba00; font-weight: 600; }


.brand-at{color:#f9ba00 !important;font-weight:700 !important;text-shadow:0 0 8px rgba(249,186,0,0.6) !important;}


h1 .brand-at{color:#f9ba00 !important;text-shadow:0 0 6px rgba(249,186,0,0.6);} 


/* INCIDENT INTAKE V1 VISUAL OVERRIDES */
main.container > section{
  margin-top: 18px;
}

.section-head{
  margin-top: 28px;
  margin-bottom: 14px;
}

.grid,
.persona-grid,
.chart-grid{
  row-gap: 18px;
}

.card,
.chart-card,
.persona-card,
.hero-card{
  min-height: 132px;
}

.incident-launcher-section{
  margin-top: 26px;
  padding: 22px;
  border: 1px solid rgba(0,83,48,.45);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(0,85,48,.26), rgba(0,85,48,.12)),
    linear-gradient(180deg, rgba(12,23,42,.92), rgba(8,18,37,.88));
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}

.incident-launcher-section .section-head{
  margin-top: 0;
  margin-bottom: 10px;
}

.incident-launcher-section .section-subtitle,
.incident-launcher-section .intake-launcher-copy{
  color: #d7e7df;
}

.incident-launcher-section .intake-open-btn{
  background: #005530;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.12);
}

.incident-launcher-section .intake-open-btn:hover{
  filter: brightness(1.08);
  transform: translateY(-1px);
}

#incidentRecentList .card{
  border-color: rgba(0,83,48,.35);
  background: linear-gradient(180deg, rgba(0,85,48,.10), rgba(8,18,37,.82));
}

@media (max-width: 900px){
  main.container > section{
    margin-top: 16px;
  }

  .section-head{
    margin-top: 22px;
  }

  .incident-launcher-section{
    padding: 18px;
  }
}


/* INCIDENT MODAL GREEN ACCENT */
#incidentIntakeTemplate .intake-modal-shell{
  border: 1px solid rgba(0,83,48,.55);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(0,85,48,.10), rgba(0,85,48,.04)),
    linear-gradient(180deg, rgba(8,18,37,.97), rgba(5,12,26,.96));
  box-shadow:
    0 0 0 1px rgba(0,83,48,.12) inset,
    0 24px 60px rgba(0,0,0,.35);
}

#incidentIntakeTemplate .intake-modal-head{
  border-bottom: 1px solid rgba(0,83,48,.35);
  padding-bottom: 14px;
  margin-bottom: 16px;
  position: relative;
}

#incidentIntakeTemplate .intake-modal-head::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,83,48,0), rgba(0,83,48,.9), rgba(0,83,48,0));
}

#incidentIntakeTemplate h2{
  color: #eaf6ef;
}

#incidentIntakeTemplate .section-subtitle{
  color: #cfe2d8;
}

#incidentIntakeTemplate .intake-grid input,
#incidentIntakeTemplate .intake-grid select,
#incidentIntakeTemplate .intake-grid textarea{
  border-color: rgba(0,83,48,.28);
  background: linear-gradient(180deg, rgba(18,30,50,.96), rgba(14,25,44,.94));
}

#incidentIntakeTemplate .intake-grid input:focus,
#incidentIntakeTemplate .intake-grid select:focus,
#incidentIntakeTemplate .intake-grid textarea:focus{
  border-color: #005530;
  box-shadow:
    0 0 0 1px rgba(0,83,48,.22),
    0 0 0 4px rgba(0,83,48,.12);
}

#incidentIntakeTemplate .intake-actions button{
  background: #005530;
  color: #fff;
  border: 1px solid rgba(255,255,255,.10);
}

#incidentIntakeTemplate .intake-actions button:hover{
  filter: brightness(1.08);
  transform: translateY(-1px);
}

#incidentIntakeTemplate .intake-modal-close{
  background: rgba(0,83,48,.14);
  border: 1px solid rgba(0,83,48,.38);
  color: #eaf6ef;
}

#incidentIntakeTemplate .intake-modal-close:hover{
  background: rgba(0,83,48,.24);
}

#incidentIntakeTemplate .intake-status.success{
  color: #9fe0bb;
}

#incidentIntakeTemplate .intake-status.error{
  color: #ffb4b4;
}


/* INCIDENT INTAKE V1 SPACING POLISH */
.incident-launcher-section .intake-launcher-row{
  align-items:flex-start;
  gap:18px;
  flex-wrap:wrap;
}

.incident-launcher-section .intake-launcher-copy{
  flex:1 1 420px;
  line-height:1.6;
}

.incident-launcher-section .intake-open-btn{
  min-width:220px;
  min-height:48px;
}

#incidentRecentList{
  margin-top:18px !important;
}

#incidentIntakeTemplate .intake-form{
  display:grid;
  gap:18px;
}

#incidentIntakeTemplate .intake-grid{
  gap:16px;
}

#incidentIntakeTemplate .intake-grid label{
  gap:10px;
}

#incidentIntakeTemplate .intake-actions{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-top:6px;
  padding-top:8px;
}

#incidentIntakeTemplate .intake-actions button{
  min-width:240px;
  min-height:48px;
}

#incidentIntakeTemplate .intake-status{
  flex:1 1 260px;
  line-height:1.5;
  padding-top:10px;
}

@media (max-width: 900px){
  .incident-launcher-section .intake-launcher-row{
    align-items:stretch;
  }

  .incident-launcher-section .intake-open-btn,
  #incidentIntakeTemplate .intake-actions button{
    width:100%;
    min-width:0;
  }

  #incidentIntakeTemplate .intake-actions{
    flex-direction:column;
    align-items:stretch;
  }

  #incidentIntakeTemplate .intake-status{
    padding-top:0;
  }
}


/* HEADER INCIDENT CTA */
.header-incident-btn{
  height: 48px;
  min-width: 260px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, #0a6a3d 0%, #005530 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 28px rgba(0,85,48,0.28);
}

.header-incident-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 16px 32px rgba(0,85,48,0.34);
}

.topbar-actions{
  flex-wrap: wrap;
}

.topbar-actions #facilitySelect{
  min-width: 220px;
}

@media (max-width: 900px){
  .header-incident-btn{
    width: 100%;
    min-width: 0;
    order: -1;
  }

  .topbar-actions{
    align-items: stretch;
  }
}


/* Zero@Brain / yönetici metin kartları için daha sakin typography */
#executiveSummary .card-value,
#aiSummary .card-value,
#routingDecision .card-value,
#facilitySummary .card-value {
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
}


#personaCards .card-value {
  font-weight: 600 !important;
  line-height: 1.28 !important;
  letter-spacing: -0.015em !important;
  word-break: break-word !important;
}

/* Metin bazlı büyük kartlarda aşırı vurmayı azalt */
#executiveSummary .card,
#aiSummary .card,
#routingDecision .card,
#facilitySummary .card {
  min-height: 140px;
}

/* Sayısal vurgu kalsın */
#executiveSummary .card:first-child .card-value,
#facilitySummary .card:nth-child(2) .card-value,
#facilitySummary .card:nth-child(3) .card-value {
  font-weight: 500;
}

/* Uzun Brain metinlerinde rahat okuma */
#aiSummary .card-value,
#executiveSummary .card-value {
  word-break: break-word;
}


/* Global typography softening — Zero@Hospital inceliği */
.persona-role,
.persona-title,
.chart-badge,
.chart-kicker,
.clinic-kicker,
.clinic-risk-value,
.clinic-rank-badge,
.clinic-mini-badge,
.trend-card strong,
#trendSummaryPill {
  font-weight: 500;
}

.persona-value {
  font-weight: 400;
}

.persona-note,
.section-subtitle,
.card-meta,
.subtitle {
  font-weight: 400;
}

.persona-value,
.card-value,
.value {
  line-height: 1.26;
  letter-spacing: -0.012em;
}

/* V3.2 persona typography softening */
#personaCards .persona-card {
  padding: 18px 20px 16px !important;
}

#personaCards .persona-role {
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  opacity: 0.74 !important;
  margin-bottom: 12px !important;
}

#personaCards .persona-title {
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  opacity: 0.58 !important;
  margin-bottom: 18px !important;
}

#personaCards .persona-note {
  font-size: 12px !important;
  line-height: 1.40 !important;
  font-weight: 400 !important;
  opacity: 0.60 !important;
  margin-top: 14px !important;
}

/* =========================
   ROLE EXEC PANEL v1
========================= */

.role-exec-panel{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.role-exec-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  flex-wrap:wrap;
}

.role-exec-hero{
  flex:1 1 640px;
  max-width:760px;
}

.role-exec-eyebrow{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#8fa3bf;
  opacity:.9;
  margin-bottom:6px;
}

.role-exec-role{
  font-size:34px;
  font-weight:800;
  line-height:1.1;
  color:#ffffff;
}

.role-exec-summary{
  margin-top:12px;
  font-size:16px;
  line-height:1.6;
  color:#dbe7ff;
  max-width:820px;
}

.role-exec-badges{
  display:flex;
  gap:10px;
  align-items:flex-start;
  flex-wrap:wrap;
}

.role-exec-badge{
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.05);
  color:#e8f1ff;
  white-space:nowrap;
}

.role-exec-badge--critical{
  background:rgba(213,22,53,0.16);
  border-color:rgba(255,107,129,0.24);
  color:#ff8aa0;
}

.role-exec-badge--warning{
  background:rgba(249,186,0,0.16);
  border-color:rgba(249,186,0,0.24);
  color:#f9ba00;
}

.role-exec-badge--stable{
  background:rgba(46,204,113,0.16);
  border-color:rgba(46,204,113,0.24);
  color:#54d98c;
}

.role-exec-badge--neutral{
  background:rgba(255,255,255,0.06);
  border-color:rgba(255,255,255,0.14);
  color:#d7e3ff;
}

.role-exec-kpi-strip{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:12px;
}

.role-exec-kpi{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:16px;
  padding:14px 14px 12px;
  backdrop-filter:blur(6px);
}

.role-exec-kpi-label{
  font-size:12px;
  line-height:1.2;
  color:#93a8c6;
}

.role-exec-kpi-value{
  margin-top:6px;
  font-size:18px;
  line-height:1.2;
  font-weight:800;
  color:#ffffff;
}

.role-exec-kpi-sub{
  margin-top:4px;
  font-size:11px;
  line-height:1.3;
  color:#7f94b2;
}

.role-exec-main{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(280px,1fr);
  gap:20px;
  align-items:stretch;
}

.role-exec-block{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:18px;
  padding:16px;
}

.role-exec-block-title{
  margin-bottom:12px;
  font-size:14px;
  font-weight:700;
  color:#f2f6ff;
  opacity:.92;
}

.role-exec-decision-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
}

.role-exec-decision-card{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.04);
  border-radius:14px;
  padding:12px;
}

.role-exec-decision-label{
  margin-bottom:6px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#8fa3bf;
}

.role-exec-decision-text{
  font-size:14px;
  line-height:1.5;
  color:#ecf3ff;
}

.role-exec-trend{
  display:flex;
  flex-direction:column;
  gap:12px;
  height:100%;
  justify-content:center;
}

.role-exec-trend-bars{
  display:flex;
  align-items:flex-end;
  gap:8px;
  height:92px;
}

.role-exec-trend-bars span{
  width:10px;
  background:linear-gradient(180deg,#58b8ff,#18e0ff);
  border-radius:999px;
  box-shadow:0 0 14px rgba(24,224,255,0.16);
}

.role-exec-trend-meta{
  font-size:12px;
  line-height:1.4;
  color:#8ea2bf;
}

.role-exec-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.role-exec-action{
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.05);
  color:#ffffff;
  padding:10px 16px;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
  transition:opacity .18s ease, transform .18s ease;
}

.role-exec-action--primary{
  background:#f9ba00;
  color:#081225;
  border:none;
}

.role-exec-action:hover{
  opacity:.9;
  transform:translateY(-1px);
}

.role-exec-empty{
  padding:18px;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;
  background:rgba(255,255,255,0.04);
  color:#ffffff;
}

#modal .role-exec-panel{
  display:flex !important;
  flex-direction:column !important;
  gap:24px !important;
}

#modal .role-exec-main{
  display:grid !important;
  grid-template-columns:minmax(0,2fr) minmax(280px,1fr) !important;
  gap:20px !important;
}

#modal .role-exec-kpi-strip{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr)) !important;
  gap:12px !important;
}

#modal .role-exec-decision-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr)) !important;
  gap:12px !important;
}

@media (max-width: 900px){
  .role-exec-main{
    grid-template-columns:1fr;
  }

  #modal .role-exec-main{
    grid-template-columns:1fr !important;
  }

  .role-exec-role{
    font-size:28px;
  }

  .role-exec-summary{
    font-size:15px;
  }
}


.kpi-badge {
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #9fe870;
}


.kpi-badge {
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #9fe870;
}


.kpi-badge {
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #9fe870;
}

