:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #153933;
  background: #f4f5ee;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 5%;
  border-bottom: 1px solid #d8dfd4;
  background: #fff;
}
.brand {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 5px;
  color: inherit;
  text-decoration: none;
}
.brand span {
  display: block;
  font-size: 9px;
  letter-spacing: 4px;
}
.badge,
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.badge {
  background: #e4edc3;
  padding: 9px 12px;
  border-radius: 20px;
  margin-left: auto;
}
.notice {
  background: #173e36;
  color: #ecf4dc;
  text-align: center;
  padding: 11px 20px;
  font-size: 12px;
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 48px 28px;
  min-height: 72vh;
}
h1 {
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin: 18px 0 24px;
}
h2 {
  font-size: 26px;
  letter-spacing: -0.7px;
  margin: 0 0 18px;
}
h3 {
  font-size: 18px;
  margin: 0 0 14px;
}
p {
  line-height: 1.65;
}
.muted,
small {
  color: #60766a;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
.hero p {
  max-width: 540px;
}
.card {
  background: white;
  border: 1px solid #d8dfd4;
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.grid .card {
  margin: 0;
}
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #bdcabe;
  border-radius: 7px;
  background: #fff;
  color: #183c32;
  font: inherit;
}
textarea {
  min-height: 95px;
  resize: vertical;
}
input[type="checkbox"] {
  width: auto;
  margin-right: 9px;
}
button {
  font: inherit;
  font-weight: 650;
  border: 1px solid #b9c9bb;
  border-radius: 7px;
  background: #fff;
  color: #183c32;
  padding: 11px 17px;
  cursor: pointer;
}
button:hover {
  background: #edf3df;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.primary {
  background: #173e36;
  color: #fff;
  border-color: #173e36;
}
.primary:hover {
  background: #285c4e;
}
.danger {
  background: #a83322;
  border-color: #a83322;
  color: white;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}
nav button.active {
  background: #173e36;
  color: white;
}
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.sectionhead h1 {
  font-size: 38px;
  margin: 0;
}
.pill {
  display: inline-block;
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 20px;
  background: #edf2e1;
}
.signal {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 18px;
  margin-bottom: 10px;
}
.signal small {
  display: block;
  margin-top: 6px;
}
video {
  display: block;
  background: #09231f;
  width: 100%;
  border-radius: 12px;
  max-height: 480px;
}
.detail {
  border-top: 1px solid #e1e7db;
  padding: 13px 0;
  overflow-wrap: anywhere;
}
code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
#message:not(:empty) {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  background: #163c34;
  color: white;
  padding: 16px 24px;
  border-radius: 10px;
  box-shadow: 0 5px 30px #0003;
  z-index: 10;
}
footer {
  padding: 26px 5%;
  border-top: 1px solid #d8dfd4;
  color: #60766a;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.empty {
  padding: 40px;
  text-align: center;
  border: 1px dashed #b8c7b6;
  border-radius: 12px;
}
.steps {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.steps strong {
  display: block;
  font-size: 28px;
  color: #7a946a;
}
.steps p {
  font-size: 13px;
}
.review {
  margin-top: 20px;
}
.warning {
  background: #fff2dc;
  padding: 15px;
  border-radius: 8px;
  font-size: 13px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #78993b;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  header {
    padding: 18px;
    gap: 12px;
  }
  .badge {
    font-size: 9px;
    max-width: 180px;
  }
  .hero,
  .split {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  main {
    padding: 30px 18px;
  }
  h1 {
    letter-spacing: -1.5px;
  }
  .card {
    padding: 20px;
  }
  footer {
    gap: 20px;
  }
  .sectionhead {
    align-items: start;
  }
  .steps {
    gap: 10px;
  }
}

.incident-snapshot{display:block;max-width:100%;max-height:360px;border-radius:12px;margin-top:16px}

.journey{margin-top:24px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:12px;border-bottom:1px solid #e2e5df;font-size:14px;overflow-wrap:anywhere}th{font-weight:700}nav{flex-wrap:wrap}button[disabled]{opacity:.5;cursor:not-allowed}.detail form{max-width:660px}.journey .card{display:flex;flex-direction:column}.journey button{margin-top:auto}#back-signals,#back-sites{margin-bottom:20px}
[hidden]{display:none !important}

.setup-progress{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:0 0 24px}.setup-progress div{display:flex;align-items:center;gap:8px;padding:12px;border:1px solid #d8dfd4;border-radius:10px;background:#fff;font-size:12px}.setup-progress strong{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#edf2e1}.setup-progress .done{border-color:#78993b;background:#f5f8eb}.setup-progress .done strong{background:#173e36;color:#fff}.compact-card{display:flex;align-items:end;justify-content:space-between;gap:20px}.compact-card label{flex:1;margin:0}.check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px 16px}.check-grid label{font-weight:500;margin:0;padding:8px;border-bottom:1px solid #edf0e9}.analytics-form{padding:8px 0}.ai-summary{background:#f7f9ef;border-color:#b9c99c}
@media(max-width:760px){.setup-progress{grid-template-columns:1fr}.compact-card{display:block}.check-grid{grid-template-columns:1fr}}


/* AI-first client dashboard */
.client-hero{display:flex;justify-content:space-between;gap:36px;align-items:center;background:linear-gradient(135deg,#123b33,#1b574a);color:#f7fbf5;border-radius:22px;padding:34px;margin-bottom:22px;box-shadow:0 18px 45px #14372f22}
.client-hero h2{font-size:34px;margin:6px 0 12px;max-width:720px}.client-hero p{max-width:760px}.client-hero .eyebrow{color:#cfe6a5}.client-hero .actions button:not(.primary){background:#ffffff12;color:white;border-color:#ffffff44}.client-hero .primary{background:#eef6cf;color:#173e36;border-color:#eef6cf}
.reef-status{min-width:230px;background:#ffffff12;border:1px solid #ffffff2f;border-radius:16px;padding:18px;display:flex;gap:12px;align-items:center}.reef-status small,.reef-status strong{display:block}.reef-status strong{margin-top:5px;font-size:15px}.status-dot{width:14px;height:14px;border-radius:50%;background:#e5a73c;box-shadow:0 0 0 6px #ffffff13}.status-dot.live{background:#b6d75a}.status-dot.setup{background:#e5a73c}
.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}.metric-card{background:white;border:1px solid #d8dfd4;border-radius:15px;padding:20px;display:flex;flex-direction:column;gap:5px}.metric-card strong{font-size:34px;line-height:1}.metric-card small{font-weight:800;letter-spacing:.7px;color:#60766a;text-transform:uppercase}.metric-card span{font-size:12px;color:#60766a}
.client-columns{display:grid;grid-template-columns:1.5fr .8fr;gap:20px}.card-heading{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:8px}.card-heading h3{margin-top:5px}
.site-row{display:grid;grid-template-columns:1.1fr .8fr 1.2fr;gap:16px;align-items:center;padding:16px 0;border-top:1px solid #e7ece4}.site-row small{display:block;margin-top:5px}.site-progress{height:8px;background:#e9eee5;border-radius:20px;overflow:hidden}.site-progress span{display:block;width:var(--progress);height:100%;background:#78993b;border-radius:20px}.pill.good{background:#e6f2cf}.pill.attention{background:#fff0cf}
.intelligence-card{background:#f7f9ef}.big-number{font-size:64px;line-height:1;font-weight:900;letter-spacing:-4px;margin:20px 0 10px}.intelligence-rule{display:grid;gap:7px;margin-top:22px}.intelligence-rule span{background:white;border:1px solid #d8dfd4;border-radius:10px;padding:10px;font-size:12px;font-weight:700}.intelligence-rule b{text-align:center;color:#78993b}
.activity-list{margin-top:6px}.activity-row{width:100%;display:grid;grid-template-columns:16px 1fr auto;gap:14px;align-items:center;text-align:left;border:0;border-top:1px solid #e7ece4;border-radius:0;padding:15px 0;background:transparent}.activity-row:hover{background:#f8faf4}.activity-row small{display:block;margin-top:5px;max-width:760px}.activity-icon{width:11px;height:11px;border-radius:50%;background:#c3ccc2}.activity-icon.filtered{background:#8fb35b}.activity-icon.alert{background:#b94a39}.activity-icon.pending{background:#d6a54b}.empty-state{text-align:center;padding:32px 12px}.sandbox-footnote{text-align:center;color:#738278;font-size:12px;margin-top:8px}
@media(max-width:900px){.metric-grid{grid-template-columns:repeat(2,1fr)}.client-columns{grid-template-columns:1fr}.client-hero{align-items:flex-start}.site-row{grid-template-columns:1fr}.reef-status{min-width:0}}
@media(max-width:620px){.client-hero{display:block;padding:24px}.client-hero h2{font-size:29px}.reef-status{margin-top:22px}.metric-grid{grid-template-columns:1fr 1fr}.metric-card strong{font-size:28px}.activity-row{grid-template-columns:12px 1fr}.activity-row>span:last-child{grid-column:2}.card-heading{display:block}.card-heading button{margin-top:8px}}


/* Admin operations experience */
.header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.header-actions .pill{white-space:nowrap}
.admin-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;background:#fff;border:1px solid #d8dfd4;border-radius:18px;padding:26px;margin-bottom:20px}.admin-hero h2{font-size:32px;margin:5px 0 8px}.admin-hero p{margin:0;max-width:720px}.admin-metrics{grid-template-columns:repeat(6,1fr)}.admin-columns{display:grid;grid-template-columns:1.5fr .7fr;gap:20px}.admin-site-row{grid-template-columns:1.2fr .7fr 1.2fr}.quick-actions button{width:100%;display:flex;justify-content:space-between;align-items:center;margin-top:9px;text-align:left}.preview-toolbar{position:sticky;top:0;z-index:3;box-shadow:0 8px 20px #173e3614}.preview-toolbar select{max-width:420px}
@media(max-width:1100px){.admin-metrics{grid-template-columns:repeat(3,1fr)}.admin-columns{grid-template-columns:1fr}}
@media(max-width:700px){.admin-metrics{grid-template-columns:repeat(2,1fr)}.admin-hero{display:block}.admin-hero .actions{margin-top:18px}.admin-site-row{grid-template-columns:1fr}.header-actions{align-items:flex-end;flex-direction:column}}




/* =========================================================
   REEF PRISM CONTROL — light intelligence / operations system
   Distinct from Vigilant Vision and Deepstack
   ========================================================= */
:root{
  --prism-bg:#f4f2ed;
  --prism-paper:#fffefa;
  --prism-paper-2:#f9f7f2;
  --prism-ink:#17162b;
  --prism-muted:#69677a;
  --prism-line:#dcd8cf;
  --prism-cobalt:#3057e1;
  --prism-violet:#7357d9;
  --prism-coral:#f07167;
  --prism-lime:#b9d65d;
  --prism-amber:#eead42;
  --prism-red:#d94b54;
  --prism-shadow:0 16px 42px rgba(45,42,67,.09);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--prism-ink);
  background:var(--prism-bg);
}
html{background:var(--prism-bg)}
body{
  color:var(--prism-ink);
  background:
    linear-gradient(rgba(48,87,225,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(48,87,225,.045) 1px,transparent 1px),
    radial-gradient(circle at 92% 7%,rgba(115,87,217,.11),transparent 25rem),
    radial-gradient(circle at 4% 82%,rgba(240,113,103,.09),transparent 28rem),
    #f4f2ed;
  background-size:32px 32px,32px 32px,auto,auto,auto;
}
header{
  background:rgba(255,254,250,.92);
  color:var(--prism-ink);
  border-bottom:1px solid var(--prism-line);
  box-shadow:none;
  backdrop-filter:blur(14px);
  padding:16px 4%;
  min-height:82px;
}
.brand-logo{
  background:white;
  border:1px solid #d9d5cc;
  box-shadow:0 5px 14px rgba(31,29,54,.08);
  border-radius:10px;
}
.brand-logo img{height:44px;max-width:170px}
.badge{
  background:#ece9fb;color:#5844b1;border:1px solid #d4ccf3;
  border-radius:999px
}
.notice{
  background:#252344;
  color:#f8f5ff;
  border-bottom:0;
  box-shadow:inset 0 -1px 0 rgba(255,255,255,.08)
}
main{max-width:1380px;padding:42px 34px 68px}
h1,h2,h3{color:var(--prism-ink)}
h1{letter-spacing:-3px}
.muted,small{color:var(--prism-muted)}
.eyebrow{color:var(--prism-cobalt);letter-spacing:1.9px}
.card{
  background:rgba(255,254,250,.96);
  color:var(--prism-ink);
  border:1px solid var(--prism-line);
  box-shadow:var(--prism-shadow);
  border-radius:14px
}
.detail{border-top-color:#e4e0d8}
input,select,textarea{
  background:#fff;color:var(--prism-ink);
  border:1px solid #cfcbd0;
  box-shadow:0 1px 0 rgba(255,255,255,.8)
}
input:focus,select:focus,textarea:focus{
  border-color:var(--prism-cobalt);
  outline:3px solid rgba(48,87,225,.10);
  outline-offset:0
}
button{
  background:#fff;color:#26243c;border:1px solid #cfcbd0;border-radius:8px;
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease
}
button:hover{
  background:#fbfaff;border-color:#aca7c2;
  transform:translateY(-1px);box-shadow:0 6px 16px rgba(49,45,79,.08)
}
.primary{
  background:var(--prism-cobalt);color:#fff;border-color:var(--prism-cobalt);
  box-shadow:0 8px 18px rgba(48,87,225,.20)
}
.primary:hover{background:#2448c8;border-color:#2448c8}
.danger{background:var(--prism-red);border-color:var(--prism-red);color:#fff}
nav{
  gap:3px;padding:5px;background:#ebe8e1;border:1px solid #dedad1;
  border-radius:10px;width:fit-content;max-width:100%
}
nav button{background:transparent;border-color:transparent;color:#6c687a;padding:9px 13px}
nav button:hover{background:#fff;color:#282541;transform:none;box-shadow:none}
nav button.active{
  background:#fff;color:var(--prism-cobalt);border-color:#d6d2cf;
  box-shadow:0 2px 8px rgba(36,32,62,.06)
}
.sectionhead{border-bottom:1px solid #dcd8cf;padding-bottom:22px}
.sectionhead h1{font-size:40px;color:var(--prism-ink)}
.pill{background:#eeecfb;color:#5b49b6;border:1px solid #d8d1f4}
.pill.good{background:#eff6d7;color:#526b12;border-color:#d6e5a5}
.pill.attention{background:#fff1d8;color:#936111;border-color:#f0d49c}
.warning{background:#fff3dc;color:#80591c;border:1px solid #efd3a2}
.empty{border-color:#cfcbd0;color:#777385;background:#faf8f3}
footer{background:#eeebe5;border-top:1px solid #d8d4ca;color:#77727d}
footer span{color:#5f55a9}

/* Prism landing */
.hero{align-items:stretch}
.hero>section:first-child{
  position:relative;padding:44px 36px 28px 0
}
.hero>section:first-child:before{
  content:"";position:absolute;left:-42px;top:14px;width:8px;height:112px;
  background:linear-gradient(180deg,var(--prism-cobalt),var(--prism-violet),var(--prism-coral));
  border-radius:8px
}
.hero>section:first-child h1{
  color:var(--prism-ink);
  background:none;-webkit-text-fill-color:initial;
  font-size:clamp(44px,6vw,78px)
}
.hero .steps>div{
  background:rgba(255,254,250,.78);border:1px solid #dcd8cf;
  border-radius:12px;padding:18px;box-shadow:0 8px 22px rgba(40,37,65,.04)
}
.steps strong{color:var(--prism-violet)}
.hero>.card{
  background:#fffefa;border-color:#d8d4cc;
  position:relative;overflow:hidden
}
.hero>.card:before{
  content:"";position:absolute;inset:0 0 auto 0;height:5px;
  background:linear-gradient(90deg,var(--prism-cobalt),var(--prism-violet),var(--prism-coral))
}

/* Client dashboard */
.client-hero{
  background:#252344;
  color:#fbf9ff;border:0;
  box-shadow:0 18px 46px rgba(37,35,68,.18);
  position:relative;overflow:hidden
}
.client-hero:after{
  content:"";position:absolute;right:-90px;top:-120px;width:330px;height:330px;border-radius:50%;
  border:70px solid rgba(255,255,255,.055);pointer-events:none
}
.client-hero h2{color:#fff}
.client-hero .eyebrow{color:#b9c7ff}
.client-hero .primary{background:#fff;color:#2f4dce;border-color:#fff}
.client-hero .actions button:not(.primary){background:transparent;color:#fff;border-color:#777397}
.reef-status{background:#302e54;border-color:#56527c}
.status-dot.live{background:var(--prism-lime);box-shadow:0 0 0 6px rgba(185,214,93,.14)}
.status-dot.setup{background:var(--prism-coral);box-shadow:0 0 0 6px rgba(240,113,103,.14)}
.metric-grid{gap:12px}
.metric-card{
  background:#fffefa;border-color:#ddd8cf;box-shadow:0 8px 24px rgba(40,36,66,.06);
  position:relative;overflow:hidden
}
.metric-card:before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#d9d4e7
}
.metric-card:nth-child(1):before{background:var(--prism-cobalt)}
.metric-card:nth-child(2):before{background:var(--prism-violet)}
.metric-card:nth-child(3):before{background:var(--prism-lime)}
.metric-card:nth-child(4):before{background:var(--prism-coral)}
.metric-card small{color:#777286}.metric-card strong{color:#201e37}.metric-card span{color:#777286}
.intelligence-card{
  background:
    linear-gradient(145deg,rgba(115,87,217,.08),rgba(48,87,225,.03)),
    #fffefa;
  border-color:#d9d3ef
}
.big-number{color:var(--prism-violet);text-shadow:none}
.intelligence-rule span{background:#fff;border-color:#ddd8cf;color:#353247}
.intelligence-rule b{color:var(--prism-coral)}
.site-progress{background:#e5e1da}
.site-progress span{background:linear-gradient(90deg,var(--prism-cobalt),var(--prism-violet))}
.activity-row{border-top-color:#e3dfd7;color:var(--prism-ink)}
.activity-row:hover{background:#f8f5ff}
.activity-icon.filtered{background:var(--prism-lime);box-shadow:none}
.activity-icon.alert{background:var(--prism-red);box-shadow:none}
.activity-icon.pending{background:var(--prism-amber)}
.sandbox-footnote{color:#7b7682}

/* Admin = editorial control room, not a dark SOC */
.admin-hero{
  background:
    linear-gradient(120deg,rgba(48,87,225,.08),rgba(115,87,217,.055) 58%,rgba(240,113,103,.08)),
    #fffefa;
  border-color:#dcd6e7;box-shadow:var(--prism-shadow);
  position:relative;overflow:hidden
}
.admin-hero:before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:6px;
  background:linear-gradient(180deg,var(--prism-cobalt),var(--prism-violet),var(--prism-coral))
}
.admin-hero h2{color:var(--prism-ink)}
.quick-actions button{background:#fff;border-color:#d8d3cf}
.quick-actions button span{color:var(--prism-coral)}
.preview-toolbar{background:#fffefa;border-color:#d9d5ce;box-shadow:0 10px 26px rgba(40,36,66,.08)}

/* Incident intelligence */
.ai-summary{
  background:
    linear-gradient(135deg,rgba(48,87,225,.07),rgba(115,87,217,.06)),
    #fffefa;
  border-color:#d8d2ed;box-shadow:0 12px 32px rgba(57,47,100,.08)
}
.ai-summary .eyebrow{color:var(--prism-violet)}
video{background:#17162b;border:1px solid #cbc6d5}
.incident-snapshot{border:1px solid #d5d0ca}
.signal{background:#fff;border-color:#dcd7ce;color:var(--prism-ink)}
.signal:hover{background:#f7f4ff}
table{color:var(--prism-ink)}
th,td{border-bottom-color:#e0dcd4}
th{color:#716d7c}

/* Onboarding as structured blueprint */
.setup-progress{gap:8px}
.setup-progress div{background:#fffefa;border-color:#dcd7cf;color:#6d6878}
.setup-progress strong{background:#eeebf8;color:#5d4bb6}
.setup-progress .done{background:#f2f6df;border-color:#dce8ac}
.setup-progress .done strong{background:var(--prism-lime);color:#2c3910}
.check-grid label{border-bottom-color:#e4e0d8}
.compact-card{background:#fffefa}

/* remove command-center dark remnants */
*{scrollbar-color:#aaa5b6 #efebe4;scrollbar-width:thin}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:#efebe4}
::-webkit-scrollbar-thumb{background:#aaa5b6;border-radius:10px;border:2px solid #efebe4}

@media(max-width:900px){
  main{padding:30px 18px 48px}
  header{padding:14px 18px;min-height:72px}
  .brand-logo img{height:38px}
  nav{width:100%}
  .hero>section:first-child{padding-right:0}
  .hero>section:first-child:before{display:none}
}
@media(max-width:620px){
  .brand-logo{padding:5px 8px}.brand-logo img{height:34px;max-width:135px}
  .sectionhead h1{font-size:31px}
}


/* Approved REEF logo lockup */
.brand-logo{
  padding:5px 12px;
  background:#fff;
  border:1px solid #ddd8cf;
  border-radius:10px;
  box-shadow:0 4px 14px rgba(40,36,66,.07);
}
.brand-logo img{
  height:52px;
  width:auto;
  max-width:260px;
  object-fit:contain;
}
header{min-height:90px}
@media(max-width:900px){
  .brand-logo img{height:44px;max-width:220px}
  header{min-height:78px}
}
@media(max-width:620px){
  .brand-logo img{height:38px;max-width:185px}
}


/* Final REEF logo presentation — clean, unboxed, prominent */
.brand-logo{
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  display:flex;
  align-items:center;
  line-height:0;
}
.brand-logo img{
  height:64px;
  width:auto;
  max-width:310px;
  object-fit:contain;
  display:block;
}
header{
  min-height:96px;
  padding-top:14px;
  padding-bottom:14px;
}
@media(max-width:900px){
  .brand-logo img{height:54px;max-width:260px}
  header{min-height:82px}
}
@media(max-width:620px){
  .brand-logo img{height:46px;max-width:220px}
  header{min-height:72px}
}


/* Viewport containment + header clipping fix */
html,body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}
header{
  width:100%;
  max-width:100vw;
  overflow:visible;
}
.brand-logo{
  flex:0 1 auto;
  min-width:0;
  max-width:calc(100vw - 48px);
}
.brand-logo img{
  height:68px;
  width:auto;
  max-width:min(330px, calc(100vw - 56px));
  object-fit:contain;
  object-position:left center;
}
.notice{
  width:100%;
  max-width:100vw;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
  padding:11px 24px;
  line-height:1.35;
}
.sectionhead h1,
h1{
  overflow-wrap:anywhere;
  word-break:normal;
}
@media(max-width:900px){
  .brand-logo img{height:58px;max-width:min(285px,calc(100vw - 48px))}
}
@media(max-width:620px){
  .brand-logo img{height:50px;max-width:min(235px,calc(100vw - 40px))}
  .notice{font-size:11px;padding:10px 16px}
}


/* Final header fit */
header{padding-top:20px;padding-bottom:20px}
.brand-logo img{height:62px;max-width:300px}
.notice{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:38px;
  padding:9px 16px;
  text-align:center;
  white-space:normal;
  overflow:hidden;
}
@media(max-width:620px){
  header{padding-top:16px;padding-bottom:16px}
  .brand-logo img{height:50px;max-width:230px}
  .notice{min-height:34px;font-size:11px}
}


/* Client portal 1.0 */
.client-menu-button{display:none;margin:10px 0 12px;align-items:center;gap:8px;font-weight:800}
.onboarding-frame{display:block;width:100%;min-height:1500px;border:0;background:transparent;margin-top:14px}
.embedded-onboarding header,.embedded-onboarding .notice,.embedded-onboarding footer{display:none!important}
.embedded-onboarding main{max-width:none;padding:0;min-height:0}
.embedded-onboarding body{background:transparent}
.portal-intro{margin-bottom:20px}
.portal-intro h2{font-size:30px;margin:5px 0 10px}
.team-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px 0;border-top:1px solid #e4e0d8}
.team-row small{display:block;margin-top:4px}
.incident-record-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:14px}
.incident-record-head h2{margin-bottom:6px}
.incident-actions{margin-top:18px;background:#f8f6ff}
.client-nav{margin-bottom:22px}

@media(max-width:760px){
  .client-menu-button{display:inline-flex}
  .client-nav{display:none;width:100%;padding:8px;grid-template-columns:1fr;margin-bottom:18px}
  .client-nav.open{display:grid}
  .client-nav button{width:100%;text-align:left;padding:13px 14px}
  .incident-record-head{display:block}
  .incident-record-head .actions{margin-top:12px}
  .onboarding-frame{min-height:2200px}
}


/* Service readiness */
.readiness-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:18px}
.readiness-item{border:1px solid #ded9d1;border-radius:12px;padding:18px;background:#fffefa}
.readiness-item h3{margin:10px 0 8px}
.readiness-item p{margin:0;color:var(--prism-muted);font-size:13px;line-height:1.5}
.readiness-state{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase}
.readiness-state.working{background:#eff6d7;color:#526b12;border:1px solid #d6e5a5}
.readiness-state.simulated{background:#eeecfb;color:#5b49b6;border:1px solid #d8d1f4}
.readiness-state.attention{background:#fff1d8;color:#936111;border:1px solid #f0d49c}
.readiness-state.blocked{background:#fde5e8;color:#a12e3a;border:1px solid #efb9c0}


/* Progressive client onboarding */
.wizard-progress button{
  display:flex;align-items:center;gap:8px;padding:12px;border:1px solid #d8dfd4;
  border-radius:10px;background:#fff;color:inherit;text-align:left;box-shadow:none;transform:none
}
.wizard-progress button strong{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#eeebf8;color:#5d4bb6}
.wizard-progress button.done{border-color:#dce8ac;background:#f2f6df}
.wizard-progress button.done strong{background:var(--prism-lime);color:#2c3910}
.wizard-progress button.active{border-color:var(--prism-cobalt);box-shadow:0 0 0 3px rgba(48,87,225,.10);background:#fff}
.setup-step-section{scroll-margin-top:18px}
.onboarding-frame{min-height:620px;height:900px;transition:height .2s ease}
@media(max-width:760px){
  .wizard-progress{grid-template-columns:1fr}
  .wizard-progress button{width:100%}
  .onboarding-frame{min-height:700px;height:1000px}
}


/* Client incident center */
.incident-center-head{margin-bottom:18px}
.incident-center-title{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}
.incident-center-title h2{margin:4px 0 8px}
.incident-counts{display:flex;gap:10px;flex-wrap:wrap}
.incident-counts span{min-width:92px;padding:10px 12px;border:1px solid #ded9d1;border-radius:10px;background:#fffefa;font-size:12px;color:var(--prism-muted)}
.incident-counts strong{display:block;font-size:22px;color:var(--prism-ink)}
.incident-view-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
.incident-view-tabs button{border-radius:999px;padding:9px 13px}
.incident-view-tabs button.active{background:var(--prism-cobalt);color:#fff;border-color:var(--prism-cobalt)}
.incident-row{align-items:flex-start}
.incident-row-main{display:flex;flex-direction:column;gap:3px;text-align:left;min-width:0}
.incident-row-state{display:flex;flex-direction:column;align-items:flex-end;gap:6px;text-align:right;min-width:150px}
.incident-summary{max-width:680px;white-space:normal;line-height:1.4}
.signal.incident-row.filtered{opacity:.82}
.pill.danger{background:#fde5e8;color:#a12e3a;border-color:#efb9c0}
@media(max-width:760px){
  .incident-center-title{display:block}
  .incident-counts{margin-top:14px}
  .incident-row{display:block}
  .incident-row-state{align-items:flex-start;text-align:left;min-width:0;margin-top:10px}
}


/* Onboarding pricing preview */
.pricing-preview{border:1px solid #c8d3ef;background:#fffefa;border-radius:14px;padding:22px;margin:18px 0}.pricing-preview h3{margin-bottom:8px}.pricing-preview table{min-width:620px}.pricing-preview .recommended{background:#eef2ff;font-weight:700}.pricing-preview #pricing-estimate{padding:12px;background:#f1f4ff;border-radius:8px;margin-top:10px;font-size:14px;font-weight:700}

.hero .rule-example {
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid #d8d4cc;
  border-radius: 12px;
  background: #fffefa;
}
.rule-example img {
  display: block;
  width: 100%;
  height: auto;
}
.rule-example figcaption {
  padding: 12px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.rule-example figcaption strong {
  display: block;
}
@media (max-width: 760px) {
  .hero:has(.rule-example) > .card { grid-row: 1; }
}
