/* =====================================================================
   PFDC-SMHQ Family Portal — Powered by AOS
   Design system: premium executive dark base, desaturated teal accent,
   editorial serif display (Fraunces) + refined grotesque body (Hanken).
   ===================================================================== */

:root {
  /* Palette — tinted darks, never pure black */
  --ink-900: #0c1311;
  --ink-850: #0f1816;
  --ink-800: #131e1b;
  --ink-750: #182522;
  --ink-700: #1d2c28;
  --ink-600: #28403a;
  --line: rgba(160, 214, 200, 0.12);
  --line-strong: rgba(160, 214, 200, 0.22);

  --paper: #f4f1e9;
  --paper-card: #fbfaf6;
  --paper-ink: #1b2420;
  --paper-muted: #5d6a64;

  --fog-100: #e7efec;
  --fog-200: #c7d6d0;
  --fog-300: #9fb3ab;
  --fog-400: #74867f;

  /* Accent — desaturated AOS teal/green, plus warm signal */
  --aos: #4ea692;
  --aos-bright: #67c4ad;
  --aos-deep: #2f6f60;
  --aos-glow: rgba(78, 166, 146, 0.16);
  --gold: #c8a96a;
  --rose: #c97a6d;
  --amber: #d4a24c;

  /* Status semantics */
  --st-draft: #8a8f8c;
  --st-pending: #d4a24c;
  --st-changes: #c97a6d;
  --st-approved: #4ea692;
  --st-published: #67c4ad;
  --st-archived: #6b7672;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 18px 40px -24px rgba(0,0,0,0.7);
  --shadow-float: 0 30px 70px -30px rgba(0,0,0,0.8);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--ink-900);
  color: var(--fog-100);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  min-height: 100vh;
}

/* Atmospheric background layers */
.atmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(78,166,146,0.16), transparent 60%),
    radial-gradient(900px 520px at 6% 108%, rgba(47,111,96,0.18), transparent 60%),
    linear-gradient(180deg, var(--ink-900), var(--ink-850) 60%, var(--ink-900));
}
.atmos::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--aos-bright); font-weight: 600;
}
.muted { color: var(--fog-300); }
.tiny { font-size: 0.78rem; }

/* ---------- Brand lockup ---------- */
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; position: relative; flex: none;
  background: linear-gradient(150deg, var(--aos-deep), var(--ink-700));
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font-family: var(--display); font-size: 1.02rem; line-height: 1; }
.brand-name b { font-weight: 600; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fog-400); }

.powered {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fog-300); border: 1px solid var(--line); border-radius: 100px;
  padding: 0.34rem 0.7rem; background: rgba(78,166,146,0.05);
}
.powered .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--aos-bright); box-shadow: 0 0 0 3px var(--aos-glow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
  border: 1px solid var(--line-strong); background: var(--ink-750); color: var(--fog-100);
  padding: 0.7rem 1.15rem; border-radius: 100px; font-weight: 600; font-size: 0.9rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--aos); }
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: linear-gradient(135deg, var(--aos), var(--aos-deep));
  border-color: transparent; color: #06120f;
}
.btn-primary:hover { box-shadow: 0 14px 30px -14px var(--aos); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 0.42rem 0.8rem; font-size: 0.8rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.pad { padding: 1.4rem 1.5rem; }

/* ---------- Status chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.04em; padding: 0.28rem 0.66rem; border-radius: 100px;
  border: 1px solid var(--line-strong); background: var(--ink-750); color: var(--fog-200);
  text-transform: capitalize;
}
.chip .led { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip[data-s="draft"]      { color: var(--st-draft); }
.chip[data-s="pending"]    { color: var(--st-pending); }
.chip[data-s="changes"]    { color: var(--st-changes); }
.chip[data-s="approved"]   { color: var(--st-approved); }
.chip[data-s="published"]  { color: var(--st-published); }
.chip[data-s="rejected"]   { color: var(--rose); }
.chip[data-s="archived"]   { color: var(--st-archived); }
.chip[data-tone="rose"]  { color: var(--rose); }
.chip[data-tone="gold"]  { color: var(--gold); }
.chip[data-tone="aos"]   { color: var(--aos-bright); }

/* ---------- App shell ---------- */
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; align-self: start; height: 100vh;
  border-right: 1px solid var(--line); padding: 1.5rem 1.1rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
}
.nav { display: flex; flex-direction: column; gap: 0.25rem; }
.nav a {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.62rem 0.8rem; border-radius: 12px;
  color: var(--fog-300); font-weight: 500; font-size: 0.92rem; transition: all 0.2s var(--ease);
}
.nav a svg { width: 18px; height: 18px; opacity: 0.85; flex: none; }
.nav a:hover { background: var(--ink-750); color: var(--fog-100); }
.nav a.active { background: var(--aos-glow); color: var(--aos-bright); border: 1px solid var(--line-strong); }
.nav-label { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fog-400); padding: 0 0.8rem; margin-top: 0.4rem; }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.8rem; }
.fam-switch {
  border: 1px solid var(--line); border-radius: 14px; padding: 0.8rem; background: var(--ink-800);
  display: flex; align-items: center; gap: 0.7rem;
}
.fam-switch .av { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(140deg, var(--aos-deep), var(--ink-700)); display: grid; place-items: center; font-family: var(--display); color: var(--aos-bright); font-size: 1rem; flex: none; }

.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.1rem 2rem; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink-900) 82%, transparent); backdrop-filter: blur(14px);
}
.topbar .greet { display: flex; flex-direction: column; gap: 0.15rem; }
.topbar .greet h2 { font-size: 1.18rem; }
.topbar-actions { display: flex; align-items: center; gap: 0.7rem; }

.content { padding: 2rem; max-width: var(--maxw); margin: 0 auto; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 0 0 1.1rem; flex-wrap: wrap; }
.section-head h3 { font-size: 1.5rem; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 1.1rem; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.span-2 { grid-column: span 2; }

/* ---------- Athlete card ---------- */
.ath-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--ink-800); box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
  display: flex; flex-direction: column;
}
.ath-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.ath-photo {
  aspect-ratio: 16 / 11; position: relative; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 70% 0%, var(--ink-600), var(--ink-850));
}
.ath-photo .mono {
  font-family: var(--display); font-size: 3.4rem; color: var(--aos-bright); opacity: 0.92;
  letter-spacing: -0.03em;
}
.ath-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(12,19,17,0.9)); }
.ath-photo .pill-row { position: absolute; left: 0.9rem; bottom: 0.85rem; z-index: 2; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.ath-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.7rem; }
.ath-body h4 { font-family: var(--display); font-size: 1.28rem; font-weight: 500; }
.ath-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--fog-300); }
.ath-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.phase-line { font-size: 0.86rem; color: var(--fog-200); }
.ath-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.2rem; }
.ath-foot .upd { font-size: 0.74rem; color: var(--fog-400); }

/* ---------- Progress ring ---------- */
.ring { --p: 60; width: 58px; height: 58px; flex: none; display: grid; place-items: center; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring .val { position: absolute; font-size: 0.82rem; font-weight: 700; }

/* ---------- Stat tiles ---------- */
.stat { padding: 1.1rem 1.2rem; }
.stat .k { font-family: var(--display); font-size: 1.9rem; color: var(--fog-100); }
.stat .l { font-size: 0.78rem; color: var(--fog-300); letter-spacing: 0.02em; }
.stat .delta { font-size: 0.74rem; font-weight: 600; }
.delta.up { color: var(--aos-bright); }
.delta.down { color: var(--rose); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 1.4rem; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.tl-item { position: relative; padding: 0 0 1.2rem 0.4rem; }
.tl-item::before { content: ""; position: absolute; left: -1.18rem; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink-700); border: 2px solid var(--aos); }
.tl-item.done::before { background: var(--aos); }
.tl-item .when { font-size: 0.72rem; color: var(--fog-400); letter-spacing: 0.04em; text-transform: uppercase; }
.tl-item h5 { margin: 0.15rem 0 0.2rem; font-size: 0.98rem; font-family: var(--body); font-weight: 600; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 0.4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; overflow-x: auto; }
.tabs button {
  background: none; border: none; color: var(--fog-300); padding: 0.7rem 0.95rem; font-size: 0.9rem; font-weight: 600;
  border-bottom: 2px solid transparent; white-space: nowrap; transition: all 0.2s var(--ease);
}
.tabs button:hover { color: var(--fog-100); }
.tabs button.active { color: var(--aos-bright); border-bottom-color: var(--aos); }
.tabpane { display: none; animation: fade 0.4s var(--ease); }
.tabpane.active { display: block; }

/* ---------- Media / evidence ---------- */
.media-tile { overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--ink-800); }
.media-thumb { aspect-ratio: 16/10; position: relative; display: grid; place-items: center; background: radial-gradient(120% 120% at 60% 0%, var(--ink-600), var(--ink-850)); }
.media-thumb .play { width: 48px; height: 48px; border-radius: 50%; background: rgba(78,166,146,0.22); border: 1px solid var(--aos); display: grid; place-items: center; backdrop-filter: blur(4px); }
.media-thumb .play svg { width: 18px; height: 18px; }
.media-thumb .dur { position: absolute; right: 0.6rem; bottom: 0.6rem; font-size: 0.7rem; background: rgba(12,19,17,0.7); padding: 0.15rem 0.45rem; border-radius: 6px; }
.media-info { padding: 0.85rem 0.95rem; display: flex; flex-direction: column; gap: 0.4rem; }
.media-info h5 { font-family: var(--body); font-weight: 600; font-size: 0.92rem; }

/* ---------- Comments / messages ---------- */
.thread { display: flex; flex-direction: column; gap: 1rem; }
.msg { display: flex; gap: 0.85rem; }
.msg .who { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; }
.msg.staff .who { background: var(--aos-glow); color: var(--aos-bright); border: 1px solid var(--line-strong); }
.msg.family .who { background: var(--ink-700); color: var(--fog-200); border: 1px solid var(--line); }
.msg .bubble { background: var(--ink-800); border: 1px solid var(--line); border-radius: 14px; padding: 0.8rem 1rem; flex: 1; }
.msg.staff .bubble { background: linear-gradient(180deg, rgba(78,166,146,0.08), var(--ink-800)); }
.msg .meta { display: flex; gap: 0.6rem; align-items: center; font-size: 0.74rem; color: var(--fog-400); margin-bottom: 0.3rem; }
.composer { display: flex; gap: 0.7rem; align-items: flex-end; margin-top: 1.2rem; }

/* ---------- Forms ---------- */
label.fld { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.82rem; color: var(--fog-300); font-weight: 600; }
input, textarea, select {
  font-family: inherit; font-size: 0.95rem; color: var(--fog-100); background: var(--ink-850);
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 0.75rem 0.9rem; width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--fog-400); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--aos); box-shadow: 0 0 0 3px var(--aos-glow); }
textarea { resize: vertical; min-height: 90px; }
.field-err { color: var(--rose); font-size: 0.78rem; min-height: 1rem; }

/* ---------- Banners ---------- */
.banner {
  display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.9rem 1.1rem; border-radius: 14px;
  border: 1px solid var(--line-strong); background: rgba(78,166,146,0.06); font-size: 0.88rem;
}
.banner svg { width: 18px; height: 18px; flex: none; color: var(--aos-bright); margin-top: 2px; }
.banner.warn { background: rgba(212,162,76,0.08); border-color: rgba(212,162,76,0.3); }
.banner.warn svg { color: var(--amber); }

/* ---------- Footer ---------- */
.portal-foot {
  position: relative; z-index: 1; border-top: 1px solid var(--line); margin-top: 2rem;
  padding: 1.6rem 2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  color: var(--fog-400); font-size: 0.82rem;
}
.portal-foot a:hover { color: var(--aos-bright); }
.foot-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- Empty / skeleton ---------- */
.empty { text-align: center; padding: 3rem 1rem; color: var(--fog-400); }
.empty svg { width: 38px; height: 38px; opacity: 0.5; margin-bottom: 0.8rem; }
.skel { background: linear-gradient(90deg, var(--ink-750), var(--ink-700), var(--ink-750)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; animation: rise 0.7s var(--ease) forwards; }
.reveal:nth-child(2) { animation-delay: 0.06s; }
.reveal:nth-child(3) { animation-delay: 0.12s; }
.reveal:nth-child(4) { animation-delay: 0.18s; }
.reveal:nth-child(5) { animation-delay: 0.24s; }
.reveal:nth-child(6) { animation-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-only { display: flex !important; }
  .g-3, .g-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .content { padding: 1.4rem; }
  .topbar { padding: 0.9rem 1.2rem; }
}
.mobile-only { display: none; }

@media (max-width: 560px) {
  .topbar .greet h2 { font-size: 1rem; }
  .section-head h3 { font-size: 1.25rem; }
  .hide-sm { display: none !important; }
}

/* ---------- Modal ---------- */
.modal-ov {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1.2rem;
  background: rgba(6, 11, 9, 0.66); backdrop-filter: blur(8px); animation: fade 0.25s var(--ease);
}
.modal { width: min(620px, 100%); max-height: 88vh; overflow: auto; background: var(--ink-800); box-shadow: var(--shadow-float); animation: rise 0.35s var(--ease); }
.modal-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); background: var(--ink-800); }
.modal-head h3 { font-size: 1.25rem; }
.modal-body { padding: 1.4rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.6rem; transform: translateX(-50%) translateY(20px); z-index: 60;
  background: var(--ink-700); border: 1px solid var(--line-strong); color: var(--fog-100);
  padding: 0.8rem 1.2rem; border-radius: 100px; font-size: 0.88rem; font-weight: 600;
  box-shadow: var(--shadow-float); opacity: 0; pointer-events: none; transition: all 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Login ---------- */
.login-wrap { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 1.1fr 0.9fr; }
.login-aside {
  padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  border-right: 1px solid var(--line);
  background: linear-gradient(160deg, var(--ink-850), var(--ink-900));
}
.login-aside .hero-copy { max-width: 460px; margin: auto 0; }
.login-aside h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.04; margin: 0.8rem 0 1rem; }
.login-aside h1 em { font-style: italic; color: var(--aos-bright); }
.feat-row { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.6rem; }
.feat-row .f { display: flex; gap: 0.7rem; align-items: center; font-size: 0.92rem; color: var(--fog-200); }
.feat-row .f svg { width: 18px; height: 18px; color: var(--aos-bright); flex: none; }
.login-panel { display: grid; place-items: center; padding: 2rem; }
.login-card { width: min(440px, 100%); }

.fam-pick {
  display: flex; align-items: center; gap: 0.9rem; width: 100%; text-align: left;
  background: var(--ink-800); border: 1px solid var(--line); border-radius: 16px; padding: 0.9rem 1rem;
  color: var(--fog-100); transition: all 0.25s var(--ease);
}
.fam-pick:hover { border-color: var(--aos); transform: translateX(3px); }
.fam-pick .av { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(140deg, var(--aos-deep), var(--ink-700)); display: grid; place-items: center; font-family: var(--display); color: var(--aos-bright); font-size: 1.2rem; flex: none; }

/* ---------- Athlete hero responsive ---------- */
@media (max-width: 760px) { .ath-hero { grid-template-columns: 1fr !important; } .ath-hero .ath-photo { aspect-ratio: 16/9 !important; } }

@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-aside { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =====================================================================
   Phase 2 — brand logos + Family Operating Picture components
   ===================================================================== */

/* Logos wired into the brand slots */
.brand-mark .logo-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.powered .aos-badge { width: 15px; height: 15px; border-radius: 50%; object-fit: cover; }

/* Operating Picture hero */
.oppic-hero { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: 1.4rem; align-items: stretch; margin-bottom: 1.6rem; }
.oppic-lead h3 { font-size: 1.6rem; margin: .5rem 0 .2rem; }
.oppic-next { background: var(--ink-850); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; justify-content: center; }
.conf-band { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1rem; padding: .5rem .85rem; border-radius: 100px; border: 1px solid var(--line-strong); background: var(--ink-850); }
.conf-band svg { width: 17px; height: 17px; }
.conf-band[data-tone="aos"] { color: var(--aos-bright); }
.conf-band[data-tone="gold"] { color: var(--gold); }
.conf-band[data-tone="rose"] { color: var(--rose); }
.conf-band b { color: var(--fog-100); }

/* Executive Summary card */
.exec-card { display: flex; flex-direction: column; gap: .85rem; padding: 1.2rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-800); box-shadow: var(--shadow-card); transition: transform .35s var(--ease), border-color .35s var(--ease); }
.exec-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.exec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.exec-id { display: flex; gap: .7rem; align-items: center; min-width: 0; }
.exec-id .av { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(140deg, var(--aos-deep), var(--ink-700)); display: grid; place-items: center; font-family: var(--display); color: var(--aos-bright); font-size: 1.15rem; flex: none; }
.exec-id h4 { font-family: var(--display); font-size: 1.2rem; font-weight: 500; }
.exec-status { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.lane { display: flex; flex-direction: column; gap: .3rem; }
.lane-k { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fog-400); }
.lane .chip { width: fit-content; max-width: 100%; }
.exec-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.exec-foot .conf { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .82rem; }
.exec-foot .conf .led { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.exec-foot[data-tone="aos"] .conf { color: var(--aos-bright); }
.exec-foot[data-tone="gold"] .conf { color: var(--gold); }
.exec-foot[data-tone="rose"] .conf { color: var(--rose); }

/* Priorities & Risks */
.priorities .prio { display: flex; align-items: center; gap: .8rem; padding: .75rem .2rem; border-bottom: 1px solid var(--line); color: var(--fog-100); transition: padding .2s var(--ease); }
.priorities .prio:last-child { border-bottom: none; }
.priorities .prio:hover { padding-left: .5rem; }
.priorities .prio .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--aos); }
.priorities .prio[data-tone="rose"] .dot { background: var(--rose); }
.priorities .prio[data-tone="gold"] .dot { background: var(--gold); }
.priorities .prio .prio-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.priorities .prio .prio-body b { font-size: .9rem; font-weight: 600; }
.priorities .prio svg { width: 16px; height: 16px; color: var(--fog-400); flex: none; }
.allclear { display: flex; gap: .8rem; align-items: center; color: var(--fog-200); padding: .4rem 0; }
.allclear svg { width: 22px; height: 22px; color: var(--aos-bright); flex: none; }

/* Task rows */
.task { display: flex; gap: .7rem; align-items: center; font-size: .9rem; cursor: pointer; }
.task input { width: auto; }

/* Journey timeline present marker */
.timeline.journey .tl-item.present::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200,169,106,.18); }
.timeline.journey .tl-item.present .when { color: var(--gold); }
.here-tag { display: inline-block; margin-top: .25rem; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(200,169,106,.4); border-radius: 100px; padding: .1rem .5rem; }

@media (max-width: 980px) {
  .oppic-hero { grid-template-columns: 1fr; }
  .lanes { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   Family Operating Environment — centers + responsive system
   ===================================================================== */

/* ---------- Notification Center ---------- */
.notif-row { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem .2rem; border-bottom: 1px solid var(--line); }
.notif-row:last-child { border-bottom: none; }
.notif-ic, .toggle-ic, .doc-ic, .opp-ic, .meet-ic, .role-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex: none; background: var(--aos-glow); border: 1px solid var(--line-strong); color: var(--aos-bright); }
.notif-ic svg, .toggle-ic svg, .role-ic svg, .opp-ic svg, .meet-ic svg { width: 18px; height: 18px; }
.toggle-row { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-of-type { border-bottom: none; }
.toggle-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.toggle-txt b { font-size: .92rem; }
.switch { appearance: none; -webkit-appearance: none; width: 44px; height: 25px; border-radius: 100px; background: var(--ink-700); border: 1px solid var(--line-strong); position: relative; flex: none; cursor: pointer; transition: background .2s var(--ease); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--fog-300); transition: transform .2s var(--ease), background .2s var(--ease); }
.switch:checked { background: var(--aos-deep); border-color: var(--aos); }
.switch:checked::after { transform: translateX(19px); background: var(--aos-bright); }
.switch:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Document Center ---------- */
.doc-tile { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--ink-800); }
.doc-ic { color: var(--gold); background: rgba(200,169,106,.1); border-color: rgba(200,169,106,.28); }
.doc-body { flex: 1; min-width: 0; }
.doc-body h5 { font-family: var(--body); font-weight: 600; font-size: .96rem; margin: 0; }
.doc-tile .ath-meta { align-items: center; }

/* ---------- Family Calendar ---------- */
.cal-month { margin-bottom: 1.6rem; }
.cal-month-label { font-family: var(--display); font-size: 1.15rem; margin-bottom: .8rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.cal-event { display: flex; gap: 1rem; align-items: stretch; padding: .95rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--ink-800); border-left: 3px solid var(--aos); }
.cal-event[data-tone="gold"] { border-left-color: var(--gold); }
.cal-event[data-tone="rose"] { border-left-color: var(--rose); }
.cal-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; flex: none; border-right: 1px solid var(--line); padding-right: .8rem; }
.cal-date .cal-d { font-family: var(--display); font-size: 1.7rem; line-height: 1; color: var(--fog-100); }
.cal-date .cal-wd { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fog-400); margin-top: .2rem; }
.cal-info { min-width: 0; display: flex; flex-direction: column; gap: .15rem; justify-content: center; }
.cal-info h5 { font-family: var(--body); font-weight: 600; font-size: .98rem; margin: .1rem 0 0; }
.cal-type { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--aos-bright); font-weight: 600; }
.cal-type svg { width: 13px; height: 13px; }

/* ---------- Financial Center ---------- */
.fin-list { display: flex; flex-direction: column; }
.fin-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .85rem .2rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fin-row:last-child { border-bottom: none; }
.fin-row[data-s="due"] { background: rgba(201,122,109,.06); border-radius: 10px; padding-left: .7rem; padding-right: .7rem; }

/* ---------- Opportunity Center ---------- */
.opp-card { border-left: 3px solid var(--aos); }
.opp-card[data-tone="gold"] { border-left-color: var(--gold); }
.opp-card[data-tone="rose"] { border-left-color: var(--rose); }
.opp-ic { color: var(--gold); background: rgba(200,169,106,.1); border-color: rgba(200,169,106,.28); }
.opp-action { display: flex; gap: .5rem; align-items: center; font-size: .86rem; color: var(--aos-bright); font-weight: 600; border-top: 1px solid var(--line); padding-top: .7rem; }
.opp-action svg { width: 15px; height: 15px; flex: none; }

/* ---------- Meeting Request Center ---------- */
.meet-row { display: flex; gap: 1rem; align-items: flex-start; }
.meet-ic { color: var(--aos-bright); }

/* ---------- Workspace Administration ---------- */
.role-card .role-ic { width: 40px; height: 40px; }
.matrix { width: 100%; border-collapse: collapse; font-size: .9rem; }
.matrix thead th { text-align: left; color: var(--fog-400); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: .5rem .4rem; font-weight: 600; }
.matrix tbody td { padding: .7rem .4rem; border-top: 1px solid var(--line); vertical-align: middle; }
.matrix tbody tr td:first-child { font-weight: 600; }

/* ---------- Video Journey Center hero ---------- */
.vjc-hero { display: grid; grid-template-columns: 320px 1fr; overflow: hidden; }
.vjc-hero-thumb { position: relative; display: grid; place-items: center; min-height: 200px; background: radial-gradient(120% 120% at 60% 0%, var(--ink-600), var(--ink-850)); }
.vjc-hero-thumb .play { width: 58px; height: 58px; border-radius: 50%; background: rgba(78,166,146,.22); border: 1px solid var(--aos); display: grid; place-items: center; backdrop-filter: blur(4px); }
.vjc-hero-thumb .play svg { width: 22px; height: 22px; }
.vjc-hero-thumb .dur { position: absolute; right: .7rem; bottom: .7rem; font-size: .72rem; background: rgba(12,19,17,.7); padding: .15rem .5rem; border-radius: 6px; }
.vjc-hero-info { display: flex; flex-direction: column; justify-content: center; }

/* ---------- Explore AOS ---------- */
.explore-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }
.explore-hero .powered { flex: none; }

/* ---------- Mobile bottom navigation ---------- */
.bottom-nav { display: none; }
.menu-sheet .nav a { padding: .6rem .7rem; border-radius: 10px; }
.menu-sheet .nav a:hover { background: var(--ink-750); }

/* =====================================================================
   Responsive system — desktop / tablet / phone
   ===================================================================== */

/* Tablet: collapse the sidebar to bottom-nav, keep multi-column where it fits. */
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-only { display: flex !important; }
  .content { padding: 1.4rem; padding-bottom: 5.5rem; }
  .topbar { padding: 0.9rem 1.2rem; }
  .oppic-hero { grid-template-columns: 1fr; }
  .vjc-hero { grid-template-columns: 1fr; }
  .explore-hero { flex-direction: column; }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: color-mix(in srgb, var(--ink-900) 92%, transparent); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: .4rem .3rem calc(.4rem + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .bottom-nav a, .bottom-nav button {
    display: flex; flex-direction: column; align-items: center; gap: .15rem; flex: 1;
    background: none; border: none; color: var(--fog-400); font-size: .62rem; font-weight: 600;
    padding: .35rem .2rem; border-radius: 10px; letter-spacing: .02em;
  }
  .bottom-nav a svg, .bottom-nav button svg { width: 21px; height: 21px; }
  .bottom-nav a.active { color: var(--aos-bright); }
}

/* Tablet range keeps two columns; only true phones collapse to one. */
@media (max-width: 980px) and (min-width: 620px) {
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .g-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 619px) {
  .g-3, .g-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .cal-event { gap: .7rem; }
}

@media (max-width: 560px) {
  .topbar .greet h2 { font-size: 1rem; }
  .section-head h3 { font-size: 1.25rem; }
  .hide-sm { display: none !important; }
  .lanes { grid-template-columns: 1fr 1fr; }
}

/* ---------- Staff & Founder Console additions (Phase 2) ---------- */
.g-4 { grid-template-columns: repeat(4, 1fr); }
.mini-sel {
  width: auto; padding: 0.32rem 0.5rem; font-size: 0.78rem; font-weight: 600;
  border-radius: 9px; background: var(--ink-850, rgba(255,255,255,0.03));
}
@media (max-width: 1024px) { .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g-4 { grid-template-columns: 1fr; } }
