:root {
  color-scheme: light;
  --bg: #f4f7fb; --surface: #ffffff; --surface-alt: #eef3f9;
  --text: #0f2233; --dim: #5b7186; --border: #dce6ef;
  --accent: #2e97db; --accent-dark: #1a6fb0; --units-red: #e31837;
  --navy: #0a1628; --radius: 14px;
  --font-display: "Archivo", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0a1628; --surface: #122238; --surface-alt: #182c47;
    --text: #eef4fa; --dim: #9db2c6; --border: #243a56;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); }
button, input, textarea, select { min-height: 2.25rem; font: inherit; }
button { cursor: pointer; }
.wrap { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }

/* Header / footer */
.site-header { background: #0a1628; color: #fff; padding-top: max(1.25rem, env(safe-area-inset-top)); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; }
.logo-chip { background: #fff; border-radius: .5rem; padding: .5rem .75rem; }
.logo-chip.small { padding: .375rem .625rem; }
.units-logo { height: 2.5rem; width: auto; display: block; }
.units-logo-footer { height: 2rem; width: auto; display: block; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin: 0; line-height: 1.25; }
@media (min-width: 640px) { .brand-name { font-size: 1.125rem; } }
.brand-sub { color: rgba(255,255,255,.7); font-size: .8rem; margin: .15rem 0 0; }
.powered { margin-left: auto; display: flex; align-items: center; gap: .625rem; }
.powered-text { text-align: right; }
.powered-label { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: rgba(255,255,255,.6); margin: 0; }
.powered-name { font-family: var(--font-display); font-weight: 700; font-size: .875rem; margin: 0; line-height: 1.3; }
.spheres { width: 38px; height: 38px; border-radius: 24%; object-fit: cover; }
.spheres.small { width: 30px; height: 30px; }
.site-header h1 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; line-height: 1.2; margin: 1.25rem 0 0; }
@media (min-width: 640px) { .site-header h1 { font-size: 1.875rem; } }
.intro { margin: .35rem 0 0; max-width: 42rem; font-size: .875rem; line-height: 1.55; color: rgba(255,255,255,.75); }
.view-tabs { margin: 1rem 0 1.25rem; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; max-width: 42rem; }
.tab { border: 0; border-radius: .5rem; padding: .625rem 1rem; font-family: var(--font-display); font-size: .875rem; font-weight: 700; background: rgba(255,255,255,.1); color: #fff; }
.tab.active { background: var(--accent); }
.gradient-bar { height: 6px; background: linear-gradient(90deg, #FF6B1A, #1A7FFF, #00C896); }
.site-footer { background: #0a1628; color: #fff; margin-top: 2.5rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.footer-name { font-family: var(--font-display); font-size: .875rem; font-weight: 700; margin: 0; }
.footer-sub { font-size: .75rem; color: rgba(255,255,255,.65); margin: .15rem 0 0; }
.footer-strong { color: #fff; }
.footer-powered { align-items: center; }
main.wrap { padding-bottom: 2.5rem; }

/* Cards, chips, badges */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.chip { display: inline-block; border-radius: 999px; padding: .25rem .625rem; font-size: 11px; font-weight: 700; }
.chip-social { background: #E3F1FC; color: #14639E; }
.chip-google { background: #E6F7F1; color: #0B7A5C; }
.chip-blog { background: #FDECEF; color: #B30F27; }
.badge { display: inline-block; border-radius: 999px; padding: .25rem .625rem; font-size: 11px; font-weight: 700; color: #fff; }
.badge-approved { background: #0B7A5C; }
.badge-changes { background: #E31837; }
.badge-pending { background: #8A6D00; }
.chip-rich { background: #fef3c7; color: #78350f; }
.chip-ready { background: #f0f9ff; color: #075985; }
.chip-edited { background: #ede9fe; color: #5b21b6; }
.chip-verified { background: #d1fae5; color: #064e3b; }
.chip-navy { background: #0A1628; color: #fff; }
@media (prefers-color-scheme: dark) {
  .chip-rich { background: #453309; color: #fcd34d; }
  .chip-ready { background: #12314a; color: #7dd3fc; }
  .chip-edited { background: #2e1065; color: #c4b5fd; }
  .chip-verified { background: #064e3b; color: #a7f3d0; }
}

/* Summary */
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.25rem; }
@media (min-width: 1024px) { .summary-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1rem; }
.stat .k { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); margin: 0; }
.stat .v { font-family: var(--font-display); font-size: 1.875rem; font-weight: 800; margin: .25rem 0 0; }
.stat .s { font-size: .75rem; color: var(--dim); margin: .15rem 0 0; }
.summary-row2 { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-top: .75rem; }
@media (min-width: 640px) { .summary-row2 { grid-template-columns: 1fr 2fr; } }
.rich-banner { border: 1px solid #fcd34d; background: #fffbeb; border-radius: var(--radius); padding: 1rem; }
.rich-banner .t { font-size: .875rem; font-weight: 700; color: #78350f; margin: 0; }
.rich-banner .d { font-size: .75rem; line-height: 1.5; color: #92400e; margin: .25rem 0 0; }
@media (prefers-color-scheme: dark) { .rich-banner { background: #2b2003; border-color: #92600a; } .rich-banner .t { color: #fcd34d; } .rich-banner .d { color: #fde68a; } }
.progress { height: 10px; border-radius: 999px; background: var(--surface-alt); overflow: hidden; margin-top: .75rem; }
.progress > div { height: 100%; background: #00C896; border-radius: 999px; transition: width .3s; }

/* Filters */
.filters { margin-top: 1.5rem; padding: 1rem; }
.pillrow { display: flex; flex-wrap: wrap; gap: .5rem; }
.pillrow + .pillrow { margin-top: .75rem; }
.pill { border: 0; border-radius: 999px; padding: .5rem .875rem; font-size: .875rem; font-weight: 600; background: var(--surface-alt); color: var(--text); }
.pill.on-accent { background: var(--accent); color: #fff; }
.pill.on-navy { background: #0A1628; color: #fff; }
.pill.on-amber { background: #f59e0b; color: #fff; }
.pill.on-sky { background: #0284c7; color: #fff; }
.pill-amber { background: #fef3c7; color: #78350f; }
.pill-sky { background: #f0f9ff; color: #075985; }
@media (prefers-color-scheme: dark) { .pill-amber { background: #453309; color: #fcd34d; } .pill-sky { background: #12314a; color: #7dd3fc; } .pill.on-navy { background: #eef4fa; color: #0A1628; } }
.search { width: 100%; border: 1px solid var(--border); border-radius: .5rem; background: var(--surface); color: var(--text); padding: .625rem .875rem; font-size: .875rem; margin-top: .75rem; }
.showing { font-size: .75rem; color: var(--dim); margin: .5rem 0 0; }

/* Post grid + cards */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.25rem; }
@media (min-width: 768px) { .post-grid { grid-template-columns: 1fr 1fr; } .post-grid > :last-child:nth-child(odd) { grid-column: span 2; } }
@media (min-width: 1280px) { .post-grid { grid-template-columns: repeat(3, 1fr); } .post-grid > :last-child:nth-child(odd) { grid-column: auto; } }
.post-card { display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 1px 3px rgba(10,22,40,.06); height: 100%; }
.post-card img.hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.asset-strip { border-bottom: 1px solid var(--border); background: var(--surface-alt); padding: .375rem 1rem; font-family: ui-monospace, monospace; font-size: 11px; color: var(--dim); word-break: break-all; }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 1rem; }
.post-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.post-date { font-family: var(--font-display); font-size: .875rem; font-weight: 700; }
.post-type { font-size: .75rem; color: var(--dim); }
.post-head .chip { margin-left: auto; }
.blog-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; line-height: 1.35; margin: .625rem 0 0; }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; align-items: center; }
.rich-note { margin: .5rem 0 0; border-radius: .5rem; background: #fffbeb; padding: .5rem .75rem; font-size: .75rem; line-height: 1.5; color: #78350f; }
@media (prefers-color-scheme: dark) { .rich-note { background: #2b2003; color: #fde68a; } }
.copy { margin: .75rem 0 0; white-space: pre-wrap; font-size: .875rem; line-height: 1.6; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent-dark); font-weight: 600; font-size: .875rem; text-decoration: underline; align-self: flex-start; margin-top: .25rem; min-height: 0; }
.linkish.small { font-size: .75rem; color: var(--dim); }
.reviewer-note { margin: .5rem 0 0; border-radius: .5rem; background: #fef2f2; padding: .5rem .75rem; font-size: .75rem; line-height: 1.5; color: #7f1d1d; }
.image-status { margin: .5rem 0 0; border-radius: .5rem; background: #ecfdf5; padding: .5rem .75rem; font-size: .75rem; line-height: 1.5; color: #064e3b; }
@media (prefers-color-scheme: dark) { .reviewer-note { background: #450a0a; color: #fca5a5; } .image-status { background: #022c22; color: #6ee7b7; } }
.err { margin: .5rem 0 0; border-radius: .5rem; background: #fef2f2; padding: .5rem .75rem; font-size: .75rem; color: #991b1b; }
.panel { margin-top: .75rem; }
.panel label { font-size: .75rem; font-weight: 700; display: block; }
.panel textarea, .panel input[type="text"] { margin-top: .25rem; width: 100%; border: 1px solid var(--border); border-radius: .5rem; background: var(--surface); color: var(--text); padding: .75rem; font-size: .875rem; line-height: 1.5; }
.panel .btnrow { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.radio-list { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }
.radio-item { display: flex; align-items: center; gap: .5rem; border-radius: .5rem; background: var(--surface-alt); padding: .5rem .75rem; font-size: .875rem; cursor: pointer; }
.actions { margin-top: auto; padding-top: 1rem; }
.actions .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.actions .row2 { display: flex; gap: .5rem; margin-top: .5rem; }
.btn { border-radius: .5rem; padding: .625rem .5rem; font-size: .875rem; font-weight: 700; border: 0; }
.btn-primary { background: var(--accent); color: #fff; flex: 1; }
.btn-primary:disabled { opacity: .45; cursor: default; }
.btn-outline-accent { background: transparent; border: 2px solid var(--accent); color: var(--accent-dark); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-red { background: var(--units-red); color: #fff; flex: 1; }
.btn-ghost { background: var(--surface-alt); color: var(--dim); }
.btn-link-red { background: none; border: 0; color: var(--units-red); font-size: .75rem; font-weight: 600; text-decoration: underline; flex: 1; padding: .5rem; }
.btn-link-dim { background: none; border: 0; color: var(--dim); font-size: .75rem; font-weight: 600; text-decoration: underline; padding: .5rem; }

/* Locations */
.health { margin-top: 1.25rem; padding: 1rem; }
.health h2 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin: 0; }
.health .sub { font-size: .75rem; color: var(--dim); margin: .25rem 0 0; }
.health-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .75rem; }
@media (min-width: 1024px) { .health-grid { grid-template-columns: repeat(4, 1fr); } }
.health-stat { background: var(--surface-alt); border-radius: .5rem; padding: .75rem; }
.health-stat .v { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; margin: 0; }
.health-stat .l { font-size: .75rem; line-height: 1.35; color: var(--dim); margin: .25rem 0 0; }
.conflicts { margin-top: .75rem; border: 1px solid #fcd34d; background: #fffbeb; border-radius: .5rem; padding: .875rem; }
.conflicts .t { font-size: .875rem; font-weight: 700; color: #78350f; margin: 0; }
.conflicts .d { font-size: .75rem; color: #92400e; margin: .25rem 0 0; }
.conflicts ul { margin: .5rem 0 0; padding-left: 1.25rem; font-size: .875rem; line-height: 1.6; color: #78350f; }
@media (prefers-color-scheme: dark) { .conflicts { background: #2b2003; border-color: #92600a; } .conflicts .t, .conflicts ul { color: #fde68a; } .conflicts .d { color: #fcd34d; } }
.health-note { font-size: .75rem; line-height: 1.5; color: var(--dim); margin: .75rem 0 0; }
.featured { margin-top: 1rem; display: block; width: 100%; text-align: left; border: 2px solid var(--accent); border-radius: var(--radius); background: var(--surface); padding: 1.25rem; box-shadow: 0 2px 8px rgba(46,151,219,.15); color: var(--text); }
.featured .fname { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; margin: .5rem 0 0; }
.featured .fmeta { font-size: .875rem; line-height: 1.6; color: var(--dim); margin: .25rem 0 0; }
.featured .fcta { font-size: .875rem; font-weight: 600; color: var(--accent-dark); margin: .5rem 0 0; }
.chip-home { background: var(--units-red); color: #fff; }
.loc-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-top: 1rem; }
@media (min-width: 640px) { .loc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .loc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .loc-grid { grid-template-columns: repeat(4, 1fr); } .loc-grid > :last-child { grid-column: span 4; } }
@media (min-width: 1024px) and (max-width: 1279px) { .loc-grid > :nth-last-child(2) { grid-column: span 2; } }
@media (min-width: 640px) and (max-width: 1023px) { .loc-grid > :last-child { grid-column: span 2; } }
.loc-tile { display: flex; flex-direction: column; height: 100%; text-align: left; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 1rem; color: var(--text); }
.loc-tile .lname { font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1.35; }
.loc-tile .lmeta { font-size: .875rem; color: var(--dim); margin-top: .25rem; }
.loc-tile .lphone { font-size: .75rem; color: var(--dim); margin-top: .25rem; }
.loc-tile .lbadges { margin-top: auto; padding-top: .75rem; display: flex; flex-wrap: wrap; gap: .375rem; }
.detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.detail-head h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; margin: 0; }
.field-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; border-bottom: 1px solid var(--border); padding: .625rem 0; }
.field-row:last-child { border-bottom: 0; }
.field-row .fl { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); }
.field-row .fv { font-size: .875rem; font-weight: 600; text-align: right; }
.field-row a.fv { color: var(--accent-dark); text-decoration: underline; word-break: break-all; }
.field-row .none { font-size: .875rem; color: var(--dim); }
.notes-box { margin-top: 1rem; border-radius: .5rem; background: var(--surface-alt); padding: .875rem; }
.notes-box .nt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); margin: 0; }
.notes-box .nb { font-size: .875rem; line-height: 1.6; margin: .25rem 0 0; white-space: pre-wrap; }
.audit-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-top: .75rem; }
@media (min-width: 1024px) { .audit-grid { grid-template-columns: repeat(3, 1fr); } }
.audit-block { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 1rem; height: 100%; }
.audit-block h4 { font-family: var(--font-display); font-size: .875rem; font-weight: 700; margin: 0; }
.audit-block .verdict { font-size: .8rem; line-height: 1.55; margin: .5rem 0 0; white-space: pre-wrap; word-break: break-word; }
.audit-block .fact { font-size: .8rem; line-height: 1.5; margin: .35rem 0 0; color: var(--text); }
.audit-block .fact b { color: var(--text); }
.audit-block .plat { margin-top: .5rem; border-top: 1px dashed var(--border); padding-top: .5rem; }
.audit-block .plat:first-of-type { border-top: 0; }
.back-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: .5rem; padding: .5rem .875rem; font-size: .875rem; font-weight: 600; }
.cta-wide { margin-top: 1rem; width: 100%; border: 0; border-radius: .5rem; background: var(--accent); color: #fff; padding: .75rem 1rem; font-family: var(--font-display); font-size: .875rem; font-weight: 700; }
@media (min-width: 640px) { .cta-wide { width: auto; } }
.center-msg { text-align: center; font-size: .875rem; color: var(--dim); margin: 2.5rem 0; }
.load-err { margin-top: 2.5rem; border: 1px solid #fecaca; background: #fef2f2; border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.load-err p { font-size: .875rem; font-weight: 600; color: #7f1d1d; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Sign-in gate */
.gate { position: fixed; inset: 0; z-index: 50; background: linear-gradient(160deg, #0a1628 0%, #12294a 60%, #1a6fb0 130%); display: flex; align-items: center; justify-content: center; padding: 1rem; overflow-y: auto; }
.gate[hidden] { display: none; }
.gate-card { background: var(--surface); border-radius: var(--radius); max-width: 24rem; width: 100%; padding: 1.75rem; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.gate-logo { display: inline-block; border: 1px solid var(--border); }
.gate-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; margin: 1rem 0 0; }
.gate-sub { font-size: .875rem; line-height: 1.55; color: var(--dim); margin: .5rem 0 0; }
.gate-label { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 1rem 0 .35rem; }
.gate-input { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: .5rem; padding: .625rem .75rem; font-size: 1rem; font-family: inherit; background: var(--surface); color: var(--text); }
.gate-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gate-error { font-size: .85rem; font-weight: 600; color: #b30f27; margin: .75rem 0 0; }
.gate-btn { width: 100%; margin-top: 1.25rem; border: 0; border-radius: .5rem; background: var(--accent); color: #fff; padding: .75rem 1rem; font-family: var(--font-display); font-size: .95rem; font-weight: 700; cursor: pointer; }
.gate-btn:disabled { opacity: .6; cursor: wait; }
.gate-note { font-size: .78rem; line-height: 1.55; color: var(--dim); margin: 1rem 0 0; }
.rail-user { font-size: .78rem; font-weight: 600; color: var(--dim); margin: 0 0 .5rem; line-height: 1.5; }

/* Console shell + left rail */
.console-shell { display: grid; grid-template-columns: 1fr; gap: 1.25rem; padding-top: 1.25rem; }
@media (min-width: 900px) { .console-shell { grid-template-columns: 15rem 1fr; align-items: start; } }
.console-main { min-width: 0; }
.rail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
@media (min-width: 900px) { .rail { position: sticky; top: 1rem; } }
.rail-head { font-family: var(--font-display); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .75rem; }
.rail-group { border-top: 1px solid var(--border); padding: .75rem 0 .25rem; }
.rail-group:first-of-type { border-top: 0; padding-top: 0; }
.rail-group-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin: 0 0 .5rem; }
.rail-item { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: .875rem; font-weight: 700; padding: .5rem .625rem; border-radius: .5rem; cursor: pointer; margin: 0 0 .25rem; }
.rail-item:hover { background: var(--surface-alt); }
.rail-item.active { background: var(--accent); color: #fff; }
.rail-item .rail-desc { display: block; font-family: inherit; font-size: .72rem; font-weight: 500; color: var(--dim); margin-top: .15rem; line-height: 1.45; }
.rail-item:hover .rail-desc { color: var(--dim); }

/* Owners lane */
.owners-head { margin: 1.25rem 0 1rem; }
.owners-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; margin: 0; }
.owners-lede { font-size: .9rem; line-height: 1.6; color: var(--dim); margin: .5rem 0 0; max-width: 46rem; }
.owners-lede strong { color: var(--text); }
.owners-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 0 0 1rem; }
@media (min-width: 720px) { .owners-grid { grid-template-columns: 1fr 1fr; } }
.owner-card { padding: 1.25rem; }
.owner-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; }
.owner-card p { font-size: .875rem; line-height: 1.6; color: var(--dim); margin: 0; }
.owner-card a { color: var(--accent-dark); font-weight: 600; }
.owner-lane-tag { font-size: 11px !important; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-dark) !important; margin: 0 0 .5rem !important; }
.owner-steps { margin: 0 0 1rem; }
.owner-ol { margin: 0; padding-left: 1.25rem; font-size: .875rem; line-height: 1.65; color: var(--dim); }
.owner-ol li { margin: .35rem 0; }
.owner-ol strong { color: var(--text); }
.owners-note { font-size: .875rem; font-weight: 600; line-height: 1.6; margin: 0 0 1.5rem; }
