/* =====================================================================
   Living Worlds — styles
   All values come from tokens.css (the mockup palette). The first half
   restyles the class names inherited from the BGA Network screens; the
   "Living Worlds screens" section at the end builds the mockup
   components (Home M1, Member expertise M2, organization profile M3).
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
:root { --header-h: 78px; --maxw: 1320px; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
svg.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.eyebrow svg.ic, .tiny svg.ic, .chip svg.ic { width: 13px; height: 13px; vertical-align: -2px; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 0.8em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(24px, 3vw, 30px); }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--accent-soft); color: var(--text); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------------
   Text treatments
   --------------------------------------------------------------------- */
.eyebrow { font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.eyebrow.teal { color: var(--accent-text); }
.eyebrow.amber { color: var(--warning); }

/* Page headline (was STACK word blocks) */
.stack { font-weight: 700; font-size: clamp(26px, 4vw, 38px); line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
.stack > span { display: inline; }
.stack > span + span::before { content: " "; }
.stack .blk { color: var(--accent-text); }
.stack.sm { font-size: clamp(22px, 3vw, 28px); }
.stack.xs { font-size: clamp(18px, 2.2vw, 22px); }

/* Highlight badge (was KARAOKE) */
.karaoke {
  display: inline-block; background: var(--accent-soft); color: var(--accent-text);
  font-weight: 600; font-size: 0.8em; padding: 0.1em 0.5em; border-radius: var(--radius-xs); line-height: 1.4;
}

/* Section label (was MARKER) */
.marker { padding: 0; }
.marker-title { font-weight: 650; font-size: 14px; }

/* Info bar (was TAPE) */
.tape {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px;
  background: var(--surface-2); border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius); padding: 12px 20px; font-size: 13px; color: var(--text-2);
}
.tape.standalone { border-top: 1px solid var(--line); border-radius: var(--radius); }
.tape b { color: var(--text); font-weight: 600; }
.tape .sep { color: var(--text-3); }
.tape a { color: inherit; }
@media (max-width: 640px) { .tape { gap: 4px 16px; padding: 10px 16px; } .tape .sep { display: none; } }

/* Callouts (was LADDER) */
.ladder {
  background: var(--accent-soft-2); border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-weight: 500; color: var(--text-2); font-size: 14px; line-height: 1.5;
}
.ladder .hl, .ladder b { color: var(--text); font-weight: 600; }
.quote {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 16px; color: var(--text-2); white-space: pre-line;
}
.quote.amber { background: var(--surface); border-color: var(--warning-line); }
.quote.teal { background: var(--accent-soft-2); border-color: var(--accent-line); }

/* Centred panel (was SLAB) */
.slab { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; text-align: center; box-shadow: var(--shadow); }
.slab .slab-title { font-weight: 650; font-size: 19px; line-height: 1.3; }
.slab .accent, .accent { color: var(--accent-text); }
.slab p { color: var(--text-2); margin: 10px auto 0; max-width: 52ch; }
.slab .actions { justify-content: center; margin-top: 16px; }

/* ---------------------------------------------------------------------
   Page hero panels (were illustrated scenes; data-art is ignored)
   --------------------------------------------------------------------- */
.scene {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%);
  border: 1px solid var(--line);
}
.scene-body { position: relative; padding: clamp(20px, 4vw, 40px); display: flex; flex-direction: column; justify-content: flex-end; min-height: inherit; gap: 12px; }
.scene.tall { min-height: 0; }
.scene.tall .scene-body { padding-block: clamp(32px, 6vw, 64px); }
.scene.mid { min-height: 0; }
.scene.short { min-height: 0; }
.scene .lede { color: var(--text-2); max-width: 60ch; font-size: 16px; margin: 0; }
.scene + .tape { margin-top: -10px; position: relative; }

/* ---------------------------------------------------------------------
   App shell (mockups: lockup left, centered nav, Member area pill, avatar)
   --------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  display: flex; align-items: center; gap: 14px; padding: 0 clamp(16px, 3vw, 36px);
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; color: var(--text); white-space: nowrap; flex: none; }
.brand:hover { text-decoration: none; }
.lockup { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 52px; height: 33px; flex: none; }
.lockup-text { display: flex; flex-direction: column; line-height: 1; }
.lockup-name { font-size: 25px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.lockup-tag { font-size: 11.5px; font-weight: 500; color: var(--text-3); margin-top: 5px; }
.brand.sm .logo-mark { width: 40px; height: 25px; }
.brand.sm .lockup-name { font-size: 19px; }
.brand.sm .lockup-tag { font-size: 10.5px; margin-top: 3px; }
.nav { display: flex; gap: 4px; margin: 0 auto; padding-left: 12px; }
.nav a {
  display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 500; font-size: 15px;
  padding: 10px 15px; border-radius: 10px; position: relative; white-space: nowrap;
}
.nav a:hover { background: var(--hover); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--deep); font-weight: 600; }
.nav a[aria-current="page"] .topbar .spacer { flex: 1; }
.nav ~ .spacer { display: none; }
.area-pill {
  display: inline-flex; align-items: center; gap: 9px; flex: none; padding: 10px 16px; border-radius: 10px;
  background: var(--accent-soft); color: var(--deep); font-weight: 600; font-size: 15px; white-space: nowrap;
}
.area-pill:hover { text-decoration: none; background: var(--accent-line); }
.area-pill[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--accent); }
.area-pill svg { width: 19px; height: 19px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  background: transparent; border: 1px solid transparent; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn svg { width: 21px; height: 21px; }
.me-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--text-2); border-radius: 999px; }
.me-btn .av { --s: 44px; background: var(--text); color: var(--surface); border: 0; font-weight: 600; font-size: 15px; }
.me-btn svg.ic { width: 18px; height: 18px; }
.me-btn:hover .av { background: var(--deep); }
.dot-badge {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--surface);
  font: 700 10px/14px var(--font-sans); text-align: center;
}
.nav .dot-badge { position: static; display: inline-block; border: 0; }
.menu { position: relative; flex: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; z-index: 40;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; display: none;
}
.menu.open .menu-panel { display: block; }
.menu-panel a, .menu-panel button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); background: none; border: 0; font: 500 14.5px var(--font-sans); cursor: pointer;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.menu-panel .who { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-panel .who small { display: block; color: var(--text-3); }

main { max-width: var(--maxw); margin: 0 auto; padding: clamp(18px, 3vw, 34px) clamp(16px, 3vw, 36px) 64px; }
main:focus { outline: none; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-head .sub { color: var(--text-2); margin: 6px 0 0; max-width: 70ch; font-size: 19px; }

.app-footer { border-top: 1px solid var(--line); background: var(--surface); }
.app-footer-in {
  max-width: var(--maxw); margin: 0 auto; padding: 18px clamp(16px, 3vw, 36px);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--text-3);
}
.footer-links { display: flex; gap: 20px; padding-left: 24px; border-left: 1px solid var(--line); }
.footer-links a { color: var(--text-2); }
.footer-note { margin-left: auto; }

.tabbar { display: none; }
@media (max-width: 1480px) { .topbar { gap: 10px; } .nav { gap: 2px; padding-left: 8px; } .nav a { padding: 9px 11px; font-size: 14.5px; } .area-pill { padding: 10px 13px; } }
@media (max-width: 1280px) { .lockup-tag { display: none; } .area-pill.staff span { display: none; } .area-pill.staff { padding: 10px; } }
@media (max-width: 1100px) {
  .nav { display: none; }
  .nav ~ .spacer { display: block; }
    .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; color: var(--text-3); font: 500 11.5px var(--font-sans); padding: 6px 0; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--accent-text); font-weight: 600; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar .dot-badge { top: 0; right: calc(50% - 22px); }
  main { padding-bottom: 96px; }
  .app-footer { padding-bottom: 72px; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .lockup-name { font-size: 21px; }
  .logo-mark { width: 44px; height: 28px; }
  .area-pill span { display: none; }
  .area-pill { padding: 10px; }
  .footer-links { border: 0; padding: 0; }
  .footer-note { margin-left: 0; }
}

/* ---------------------------------------------------------------------
   Layout helpers
   --------------------------------------------------------------------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.split-wide { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1020px) { .split { grid-template-columns: 1fr; } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .split-wide { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .grid-auto { grid-template-columns: 1fr; } }
.stack-v { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.nowrap { flex-wrap: nowrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--text-3); }
.soft { color: var(--text-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mt { margin-top: 16px; } .mt-l { margin-top: 28px; } .mb { margin-bottom: 16px; } .mt-s { margin-top: 8px; }
.section { margin-top: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pre { white-space: pre-line; }
.break { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------------
   Surfaces
   --------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.card.hover:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card.flat { background: var(--surface-2); }
.card.pad-l { padding: 24px; }
.card.private { border-color: var(--warning-line); background: var(--warning-soft); }
.card-title { font-weight: 650; font-size: 16px; color: var(--text); }
a.card-title:hover { color: var(--accent-text); text-decoration: none; }
.card .meta { color: var(--text-3); font-size: 13px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.item:hover { border-color: var(--line-strong); }
.item .grow > .row:first-child { margin-bottom: 2px; }
.item.private { border-color: var(--warning-line); }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; flex: none; }

/* ---------------------------------------------------------------------
   Controls
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px;
  font: 600 14px var(--font-sans); color: var(--text); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  cursor: pointer; white-space: nowrap; text-decoration: none; transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-teal { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); }
.btn-teal:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--hover); color: var(--text); }
.btn-danger { color: var(--danger); border-color: var(--danger-line); background: transparent; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { min-height: 32px; padding: 5px 11px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-upper { font-size: 14px; }
.btn[aria-busy="true"] { position: relative; color: transparent !important; }
.btn[aria-busy="true"]::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line-strong); border-top-color: var(--text); animation: spin 0.7s linear infinite;
}
.btn-primary[aria-busy="true"]::after { border-color: color-mix(in srgb, var(--accent-ink) 35%, transparent); border-top-color: var(--accent-ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.linkish { background: none; border: 0; padding: 0; color: var(--accent-text); font: inherit; cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.linkish.muted { color: var(--text-3); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label, fieldset > legend { font-weight: 600; font-size: 13px; color: var(--text-2); }
.field .hint { font-size: 12.5px; color: var(--text-3); }
.field .count { font-size: 12px; color: var(--text-3); text-align: right; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="number"], input[type="date"],
input[type="datetime-local"], select, textarea {
  width: 100%; min-height: 42px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px 12px; font: 400 15px var(--font-sans);
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-error { background: var(--danger-soft); border: 1px solid var(--danger-line); color: var(--danger); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; color: var(--text-2); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.check strong { color: var(--text); font-weight: 600; }

/* Chip pickers */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick span {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text-2); font: 500 13px var(--font-sans);
  background: var(--surface); cursor: pointer; user-select: none;
}
.pick:hover span { border-color: var(--accent); color: var(--text); }
.pick input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.pick input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.pick.big span { padding: 12px 14px; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; border-radius: var(--radius-sm); }
.pick.big span small { font-weight: 400; color: inherit; opacity: 0.85; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.choice-grid .pick span { height: 100%; }

/* Chips & badges */
.chip {
  display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 12px;
  padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); white-space: nowrap;
}
.chip svg { width: 12px; height: 12px; }
.chip.teal { background: var(--accent-soft); color: var(--accent-text); }
.chip.solid-teal { background: var(--accent); color: var(--accent-ink); }
.chip.violet { background: var(--surface-3); color: var(--text); }
.chip.solid-violet { background: var(--text); color: var(--surface); }
.chip.amber { background: var(--warning-soft); color: var(--warning); }
.chip.rose { background: var(--danger-soft); color: var(--danger); }
.chip.green { background: var(--success-soft); color: var(--success); }
.chip.outline { background: transparent; border: 1px solid var(--line-strong); }
.tag { font: 500 12.5px var(--font-sans); color: var(--text-2); background: var(--surface-2); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.label-badge {
  display: inline-flex; align-items: center; gap: 4px; cursor: help; font: 600 12px var(--font-sans);
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--accent-line); color: var(--accent-text);
}
.label-badge svg { width: 12px; height: 12px; }
.label-badge.member { border-color: var(--line-strong); color: var(--text); }
.label-badge.partner, .label-badge.investor { border-color: var(--line-strong); color: var(--text-2); }

/* Avatars */
.av {
  --s: 44px; width: var(--s); height: var(--s); flex: none; display: grid; place-items: center;
  font: 600 calc(var(--s) * 0.36) var(--font-sans); color: var(--text-2); text-transform: uppercase;
  border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line);
}
.av.org { border-radius: 9px; background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-line); }
.av.sm { --s: 32px; }
.av.lg { --s: 64px; }
.av.xl { --s: 84px; }
.av.bga { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Tabs */
.tabs { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; margin-bottom: 18px; scrollbar-width: thin; border-bottom: 1px solid var(--line); }
.tabs a, .tabs button {
  flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; margin-bottom: -1px;
  font: 500 14px var(--font-sans); color: var(--text-2); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
}
.tabs a:hover, .tabs button:hover { color: var(--text); text-decoration: none; }
.tabs [aria-current="page"], .tabs [aria-selected="true"] { color: var(--accent-text); border-bottom-color: var(--accent); font-weight: 600; }
.tabs .n { font-weight: 500; color: var(--text-3); }

/* Subnav (staff) */
.subnav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--header-h) + 20px); }
.subnav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text-2); font: 500 14px var(--font-sans); }
.subnav a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.subnav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.subnav .n { font: 600 11px var(--font-sans); background: var(--surface-3); color: var(--text-2); border-radius: 9px; padding: 1px 7px; }
.subnav .group { margin: 14px 12px 6px; }
@media (max-width: 820px) {
  .subnav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .subnav a { flex: none; border: 1px solid var(--line); }
  .subnav .group { display: none; }
}

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 600 12px var(--font-sans); color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--hover); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Timeline & thread */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; color: var(--text-2); font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 17px; bottom: 0; width: 1px; background: var(--line-strong); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; color: var(--text-3); font-size: 12px; }

.thread { display: flex; flex-direction: column; gap: 12px; max-height: 60vh; overflow-y: auto; padding: 4px 2px 8px; }
.msg { max-width: min(560px, 88%); align-self: flex-start; }
.msg .bubble { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; padding: 10px 14px; white-space: pre-line; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; }
.msg.mine .bubble { background: var(--accent-soft); border-color: var(--accent-line); border-radius: 12px 12px 3px 12px; }
.msg .by { font-size: 12px; color: var(--text-3); margin: 0 4px 4px; }
.msg.mine .by { text-align: right; }
.msg.system { align-self: center; max-width: 90%; text-align: center; }
.msg.system .bubble { background: transparent; border: 1px dashed var(--line-strong); color: var(--text-3); font-size: 13px; border-radius: 8px; }
.msg.intro { align-self: stretch; max-width: 100%; }
.msg.intro .bubble { background: var(--accent-soft-2); border-color: var(--accent-line); border-radius: 10px; }
.msg.contact .bubble { background: var(--accent-soft-2); border-color: var(--accent-line); }
.contact-card { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.contact-card a { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); padding: 6px 10px; border-radius: 6px; font-size: 13.5px; }
.composer { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; }
.composer textarea { min-height: 48px; max-height: 200px; }

/* Stats & charts */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .v { font-weight: 700; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .k { font: 600 12px var(--font-sans); color: var(--text-3); }
.stat .d { font-size: 12.5px; color: var(--text-3); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat-row .card { padding: 14px 16px; }
.funnel { display: flex; flex-direction: column; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 150px 1fr 48px; gap: 12px; align-items: center; font-size: 13.5px; }
.funnel-bar { height: 12px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.funnel-bar i { display: block; height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; }
.chart-tip {
  position: absolute; width: 260px; transform: translateY(-100%); pointer-events: none; z-index: 5;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-lg);
  padding: 8px 10px; font-size: 12.5px; color: var(--text); line-height: 1.45;
}
.chart-wrap .grid-line { stroke: var(--chart-grid); }
.chart-wrap .axis-line { stroke: var(--chart-axis); }
.chart-wrap .axis-text { fill: var(--text-3); }
.chart-wrap .value-text { fill: var(--text-2); }
.chart-wrap .wk .hit { fill: transparent; }
.chart-wrap .wk:hover .hit, .chart-wrap .wk:focus .hit { fill: var(--hover); }
.wk:focus { outline: none; }
code { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); background: var(--surface-2); padding: 1px 4px; border-radius: var(--radius-xs); }
.funnel-row .num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .funnel-row { grid-template-columns: 110px 1fr 40px; } }

/* Steps (onboarding) */
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.steps span { font: 500 13px var(--font-sans); color: var(--text-3); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.steps span.done { color: var(--success); border-color: var(--success); background: var(--success-soft); }
.steps span.now { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Pipeline board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.board-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.board-col h3 { display: flex; justify-content: space-between; align-items: center; font: 600 13px var(--font-sans); color: var(--text-2); }
.board-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; color: var(--text); display: block; }
.board-card:hover { border-color: var(--accent); text-decoration: none; }
.consent-dots { display: flex; gap: 6px; font-size: 12px; color: var(--text-3); }
.consent-dots b { font: 600 11px var(--font-sans); padding: 2px 6px; border-radius: 999px; background: var(--surface-3); color: var(--text-3); }
.consent-dots b.ok { background: var(--success-soft); color: var(--success); }
.consent-dots b.no { background: var(--danger-soft); color: var(--danger); }
.overdue { color: var(--danger); }

/* Empty states */
.empty { padding: 34px 20px; box-shadow: none; }
.empty .slab-title { font-size: 18px; }

/* Toasts */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(92vw, 520px); pointer-events: none; }
@media (max-width: 820px) { .toasts { bottom: 86px; } }
.toast {
  pointer-events: auto; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); padding: 11px 16px; border-radius: var(--radius-sm); font-size: 14px; animation: toast-in 0.2s ease-out;
}
.toast.error { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Modal (native dialog) */
dialog.modal {
  width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
dialog.modal.wide { width: min(860px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: var(--overlay); }
.modal-form { display: flex; flex-direction: column; max-height: calc(100vh - 34px); }
.modal-head { padding: 20px 22px 12px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 19px; margin-top: 4px; }
.modal-body { padding: 18px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* Notice banners */
.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius-sm); padding: 12px 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text-2); font-size: 14px; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent-text); }
.notice.amber { background: var(--warning-soft); border-color: var(--warning-line); }
.notice.amber svg { color: var(--warning); }
.notice.rose { background: var(--danger-soft); border-color: var(--danger-line); }
.notice.rose svg { color: var(--danger); }
.notice strong { color: var(--text); }

/* Loading */
.boot { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.boot .slab, .status-screen .slab { max-width: 440px; }
.status-screen { min-height: 70vh; display: grid; place-items: center; padding: 24px; }
.boot .bar { height: 3px; background: var(--surface-3); border-radius: 2px; overflow: hidden; margin-top: 16px; }
.boot .bar i { display: block; height: 100%; width: 30%; background: var(--accent); animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); min-height: 120px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Public pages */
.public-top { position: sticky; top: 0; z-index: 5; }
.footer { max-width: var(--maxw); margin: 0 auto; padding: 24px clamp(16px, 3vw, 32px) 40px; color: var(--text-3); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.prose { max-width: 72ch; color: var(--text-2); }
.prose h2 { color: var(--text); margin: 28px 0 10px; font-size: 18px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

/* Demo panel */
.demo-fab {
  position: fixed; left: 16px; bottom: 16px; z-index: 50; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 20px;
  background: var(--text); color: var(--surface); border: 0; cursor: pointer; box-shadow: var(--shadow-lg); font: 600 13px var(--font-sans);
}
.demo-fab svg { width: 16px; height: 16px; }
@media (max-width: 820px) { .demo-fab { bottom: 84px; left: 10px; padding: 8px 12px; } }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(440px, 100vw); z-index: 80; background: var(--surface);
  border-right: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(-102%); transition: transform 0.22s ease;
}
.drawer.open { transform: none; }
.drawer-head { padding: 18px 20px 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.drawer-body { padding: 16px 20px 30px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.persona { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text); cursor: pointer; font: inherit; }
.persona:hover { border-color: var(--accent); }
.persona.current { border-color: var(--accent); background: var(--accent-soft); }
.persona small { display: block; color: var(--text-3); font-size: 12.5px; }
.mail { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface-2); }
.mail .subj { font-weight: 600; }
.mail .body { color: var(--text-2); font-size: 13px; white-space: pre-line; margin-top: 6px; max-height: 120px; overflow: auto; }

.signin-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 820px) { .signin-split { grid-template-columns: minmax(0, 1fr); } }

/* First visit: the stages a new visitor goes through */
.fv { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fv li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-3); }
.fv strong { display: block; font-size: 15px; font-weight: 650; color: inherit; }
.fv small { display: block; font-size: 13px; color: var(--text-3); margin-top: 1px; }
.fv-mark { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--font-sans); background: var(--surface-2); color: var(--text-3); border: 1px solid var(--line-strong); }
.fv-mark svg { width: 14px; height: 14px; }
.fv li.done { color: var(--text-2); }
.fv li.done .fv-mark { background: var(--success-soft); border-color: var(--success-soft); color: var(--success); }
.fv li.now { color: var(--text); }
.fv li.now .fv-mark { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fv.stacked { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.fv-panel { margin-top: 16px; }
@media (max-width: 820px) { .fv { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* First visit guide (demo only), docked beside the app */
.jr-intro { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.jr-intro ol { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 13.5px; display: flex; flex-direction: column; gap: 3px; }
.jr { position: fixed; top: 0; right: 0; bottom: 0; width: 360px; z-index: 60; background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.jr[hidden], .pf-row[hidden] { display: none; }
body.has-journey { padding-right: 360px; }
.jr-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.jr-head > div { flex: 1; min-width: 0; }
.jr-head span { display: block; font-size: 13px; color: var(--text-3); }
.jr-head strong { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.jr-toggle { display: none; }
.jr-who { display: flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 13.5px; color: var(--text-2); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.jr-who svg { width: 15px; height: 15px; flex: none; }
.jr-steps { list-style: none; margin: 0; padding: 14px 16px 20px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; }
.jr-steps > li { position: relative; display: flex; gap: 11px; padding-bottom: 16px; }
.jr-steps > li:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 28px; bottom: 2px; width: 1px; background: var(--line-strong); }
.jr-mark { flex: none; position: relative; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font: 700 12.5px var(--font-sans); background: var(--surface); color: var(--text-3); border: 1px solid var(--line-strong); }
.jr-mark svg { width: 14px; height: 14px; }
.jr-body { flex: 1; min-width: 0; padding-top: 2px; }
.jr-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.jr-title strong { font-size: 14.5px; font-weight: 600; color: var(--text-3); line-height: 1.3; }
.jr-title .chip { flex: none; font-size: 11.5px; }
.jr-body p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-3); }
.jr-steps > li.done .jr-mark { background: var(--success-soft); border-color: var(--success-soft); color: var(--success); }
.jr-steps > li.done .jr-title strong { color: var(--text-2); }
.jr-steps > li.skip .jr-mark { background: var(--surface-2); }
.jr-steps > li.now .jr-mark { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.jr-steps > li.now .jr-body { background: var(--accent-soft-2, var(--accent-soft)); border-radius: var(--radius-sm); padding: 10px 11px 12px; margin-top: -3px; }
.jr-steps > li.now .jr-title strong { color: var(--text); font-size: 15px; }
.jr-steps > li.now .jr-body > p { color: var(--text-2); }
.jr-body .btn { margin-top: 10px; margin-right: 6px; }
.jr-note { font-size: 13px; }
.jr-try { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.jr-try span { width: 100%; font-size: 12.5px; color: var(--text-3); }
.linkchip { background: var(--surface); border: 1px solid var(--accent-line); border-radius: 999px; padding: 5px 11px; min-height: 30px; font: 500 12.5px var(--font-sans); color: var(--accent-text); cursor: pointer; }
.linkchip:hover { border-color: var(--accent); }
.jr-sub { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--text-3); }
.jr-sub li { display: flex; align-items: center; gap: 8px; }
.jr-sub i { width: 8px; height: 8px; margin: 0 3px; border-radius: 50%; background: var(--line-strong); }
.jr-sub svg { width: 14px; height: 14px; color: var(--success); }
.jr-sub li.done { color: var(--text-2); }
.jr-sub li.now { color: var(--text); font-weight: 600; }
.jr-sub li.now i { background: var(--accent); }
.jr-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.jr-foot p { margin: 0 0 8px; font-size: 14px; color: var(--text-2); }
/* The guide takes width from the page, so the top menu tightens earlier than usual */
@media (max-width: 1560px) {
  body.has-journey .lockup-tag { display: none; }
  body.has-journey .area-pill span { display: none; }
  body.has-journey .area-pill { padding: 10px; }
}
@media (max-width: 1280px) {
  body.has-journey { padding-right: 320px; }
  .jr { width: 320px; }
  body.has-journey .nav { padding-left: 0; }
  body.has-journey .nav a { padding: 8px 7px; font-size: 13.5px; }
  body.has-journey .topbar { gap: 6px; padding: 0 12px; }
}
@media (max-width: 1100px) {
  body.has-journey { padding-right: 0; padding-bottom: 180px; }
  .jr { top: auto; left: 0; width: auto; max-height: 56vh; border-left: 0; border-top: 1px solid var(--line); }
  body:has(.tabbar) .jr { bottom: 66px; }
  .jr-toggle { display: inline-flex; }
  .jr:not(.open) .jr-steps > li:not(.now) { display: none; }
  .jr:not(.open) .jr-steps { padding-bottom: 4px; }
  .jr.open .jr-toggle svg { transform: rotate(180deg); }
  body.has-journey .demo-fab { display: none; }
}

/* =====================================================================
   Living Worlds screens (mockups M1–M3)
   ===================================================================== */

/* Buttons in the mockup vocabulary */
.btn { border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 12px 24px; font-size: 16.5px; }
.btn-outline { background: var(--surface); border-color: var(--accent); color: var(--accent-text); }
.btn-outline:hover { background: var(--accent-soft-2); }
.btn-mint { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--deep); }
.btn-mint:hover { background: var(--accent-line); border-color: var(--accent-line); }
.btn .ic { width: 18px; height: 18px; }

/* Panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.panel h2 { font-size: 22px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 500; color: var(--accent-text); white-space: nowrap; }
.more .ic { width: 16px; height: 16px; }
.aside-note { font-size: 13px; color: var(--text-3); }
.h-section { font-size: 22px; }
.center { justify-content: center; text-align: center; }
.private-panel { border-color: var(--warning-line); background: var(--warning-soft); box-shadow: none; }
.private-panel h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; }

/* Icon tiles, org tiles, chips */
.itile { display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft-2); color: var(--accent); }
.itile .ic { width: 24px; height: 24px; }
.itile.lg { width: 60px; height: 60px; border-radius: 14px; }
.itile.lg .ic { width: 28px; height: 28px; }
.itile.round { border-radius: 50%; background: var(--accent-soft); }
.otile {
  display: inline-grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 14px;
  font-weight: 800; font-size: 22px; letter-spacing: -0.02em; background: var(--tile-neutral); color: var(--ink-neutral);
}
.otile.lg { width: 88px; height: 88px; border-radius: 16px; font-size: 30px; }
.otile.xl { width: 106px; height: 106px; border-radius: 18px; font-size: 36px; }
.otile.studio, .rchip.studio { background: var(--tile-studio); color: var(--ink-studio); }
.otile.builder, .rchip.builder { background: var(--tile-builder); color: var(--ink-builder); }
.otile.infra, .rchip.infra { background: var(--tile-infra); color: var(--ink-infra); }
.otile.investor, .rchip.investor { background: var(--tile-investor); color: var(--ink-investor); }
.otile.research, .rchip.research { background: var(--tile-research); color: var(--ink-research); }
.otile.neutral, .rchip.neutral { background: var(--tile-neutral); color: var(--ink-neutral); }
.rchip, .echip, .kind-chip, .topic-chip, .sample-chip, .when-chip {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; white-space: nowrap; font-weight: 600; line-height: 1.2;
}
.rchip { padding: 5px 12px; font-size: 13.5px; }
.echip { padding: 5px 12px; font-size: 13.5px; font-weight: 500; background: var(--accent-soft); color: var(--deep); }
.echip.research { background: var(--tile-research); color: var(--ink-research); }
.kind-chip { padding: 4px 10px; font-size: 12.5px; background: var(--accent-soft); color: var(--deep); }
.kind-chip.lilac { background: var(--tile-research); color: var(--ink-research); }
.kind-chip.sky { background: var(--tile-infra); color: var(--ink-infra); }
.kind-chip.rose { background: var(--tile-investor); color: var(--ink-investor); }
.topic-chip { padding: 6px 13px; font-size: 14px; background: var(--accent-soft); color: var(--deep); }
.sample-chip { padding: 4px 11px; font-size: 13px; font-weight: 500; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.when-chip { padding: 6px 12px; font-size: 13.5px; background: var(--accent-soft); color: var(--deep); }
.when-chip .ic { width: 15px; height: 15px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); font-size: 14px; }
.filter-chip .ic { width: 14px; height: 14px; }
.filter-chip:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-text); }

/* Breadcrumbs */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text-3); margin-bottom: 16px; }
.crumbs a { color: var(--text-2); }
.crumbs .ic { width: 15px; height: 15px; }
.crumbs [aria-current] { color: var(--text); font-weight: 500; }

/* Search field (Home + directory) */
.search-field { position: relative; flex: 1; min-width: 0; }
.search-field input[type="search"] { min-height: 56px; padding: 12px 52px 12px 50px; border-radius: 10px; font-size: 17px; border-color: var(--line-strong); }
.search-field .lead-ic { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--text-2); pointer-events: none; }
.search-go, .search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 8px; border: 0; background: transparent; color: var(--text-2); cursor: pointer;
}
.search-go:hover, .search-clear:hover { background: var(--hover); color: var(--accent-text); text-decoration: none; }
input[type="search"]::-webkit-search-cancel-button { display: none; }

/* ---- Home (M1) ---- */

/* ---- Opportunities: two views (M2, M6) ---- */
.dir-head { margin-bottom: 20px; }
.dir-head h1 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.03em; }
.dir-head .sub { font-size: clamp(17px, 1.6vw, 21px); color: var(--text-2); margin: 6px 0 0; }
.dd { position: relative; display: block; }
.dd select {
  min-height: 50px; padding: 10px 40px 10px 18px; border-radius: 10px; background: var(--surface); background-image: none;
  font: 500 15.5px var(--font-sans); color: var(--text); cursor: pointer; border-color: var(--line-strong);
}
.dd > .ic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; pointer-events: none; color: var(--text-2); }
.dd.set select { border-color: var(--accent); background: var(--accent-soft-2); color: var(--deep); font-weight: 600; }
.fit-note { display: flex; align-items: center; gap: 9px; margin: 16px 0 6px; color: var(--text-2); font-size: 14.5px; }
.fit-note .ic { color: var(--text); }
.result-count { color: var(--text-3); font-size: 14px; margin: 14px 0 10px; }
.opp-switch-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 14px; }
.opp-switch { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; max-width: 100%; }
.opp-switch a { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 9px; font-size: 16px; font-weight: 500; color: var(--text-2); }
.opp-switch a:hover { text-decoration: none; background: var(--hover); color: var(--text); }
.opp-switch a[aria-current] { background: var(--accent-soft); color: var(--deep); font-weight: 650; }
.opp-switch em { font-style: normal; font-size: 13px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.opp-switch a[aria-current] em { background: var(--surface); color: var(--deep); }
.opp-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.opp-search { flex: 1 1 320px; min-width: 0; }
.opp-filters .dd { flex: 0 1 190px; min-width: 150px; }
.opp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.opp-pill { display: inline-flex; align-items: center; min-height: 50px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 15px; font-weight: 500; color: var(--text-2); }
.opp-pill:hover { text-decoration: none; border-color: var(--accent-line); color: var(--text); }
.opp-pill[aria-current] { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--deep); font-weight: 600; }
.opp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.opp-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px 22px; }
.opp-top { display: flex; align-items: center; gap: 14px; width: 100%; margin-bottom: 14px; }
.opp-top > .grow { min-width: 0; }
.opp-top .otile, .opp-top .itile { flex: none; width: 52px; height: 52px; font-size: 18px; border-radius: 12px; }
.opp-org { display: block; font-size: 16.5px; font-weight: 650; color: var(--text); margin-bottom: 4px; }
.opp-top .rchip { padding: 3px 10px; font-size: 12.5px; }
.opp-hidden { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.opp-hidden .ic { flex: none; width: 15px; height: 15px; }
.opp-status { flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 12.5px; line-height: 1.3; }
.opp-status .ic { flex: none; width: 18px; height: 18px; }
.opp-status b { display: block; font-size: 14px; font-weight: 650; color: var(--text); }
.opp-status.closing { background: var(--warning-soft); color: var(--warning); }
.opp-status.closing b { color: var(--warning); }
.opp-card h3 { font-size: 21px; margin: 9px 0 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.opp-facets { width: 100%; margin: 0; }
.opp-facets > div { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.opp-facets .ic { grid-row: span 2; width: 21px; height: 21px; color: var(--accent); margin-top: 1px; }
.opp-facets dt { font-size: 14.5px; font-weight: 650; }
.opp-facets dd { margin: 1px 0 0; font-size: 15px; color: var(--text-2); line-height: 1.45; }
.opp-more { margin-bottom: 10px; font-size: 14px; font-weight: 500; color: var(--accent-text); }
.opp-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; width: 100%; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.opp-foot > .btn, .opp-foot > .opp-sent { margin-left: auto; }
.opp-why, .opp-sent { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--accent-text); min-width: 0; }
.opp-why .ic, .opp-sent .ic { flex: none; }
.opp-band { margin-top: 16px; }
.opp-sort { margin-left: auto; }
.mine-card h3 { font-size: 21px; margin: 10px 0 8px; }
.mine-card form { margin-top: 12px; }
.mine-card form .field { max-width: 280px; }
.mine-name { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.mine-name .ic { flex: none; width: 16px; height: 16px; }
.mine-answered { list-style: none; margin: 0 0 12px; padding: 0; font-size: 14.5px; color: var(--text-2); }
.mine-interests { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.mine-interest { display: flex; gap: 14px; align-items: flex-start; }
.mine-interest + .mine-interest { padding-top: 14px; border-top: 1px solid var(--line); }
.mine-interest p { margin: 3px 0 0; }
.fallback { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 16px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.fallback strong { font-size: 18px; }
.fallback p { margin: 4px 0 0; color: var(--text-2); font-size: 14.5px; }
.no-results { text-align: center; padding: 36px 24px; }
.no-results .illo { width: 220px; height: auto; margin: 0 auto 8px; display: block; }
.no-results h2 { font-size: 22px; }
.no-results p { color: var(--text-2); max-width: 56ch; margin: 10px auto 16px; }
.no-results .chip-row { margin-bottom: 16px; }
.dir-gate .no-results { margin-top: 6px; }

/* ---- Organization profile (M3) ---- */
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.profile-main, .profile-aside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.prof-head { display: flex; align-items: center; gap: 24px; }
.prof-head h1 { font-size: clamp(30px, 3.2vw, 42px); font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 4px; }
.prof-head .tagline { font-size: 18px; color: var(--text-2); margin: 0 0 14px; }
.cap-rows { list-style: none; margin: 0; padding: 0 4px; border: 1px solid var(--line); border-radius: var(--radius); }
.cap-rows li { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.cap-rows li + li { border-top: 1px solid var(--line); }
.cap-rows strong { font-size: 16.5px; }
.cap-rows p { margin: 3px 0 0; color: var(--text-2); font-size: 15px; }
.profile-pair .pair { display: flex; gap: 16px; align-items: flex-start; }
.pair h2 { font-size: 20px; margin: 4px 0 8px; }
.pair p { margin: 0 0 8px; color: var(--text-2); }
.pair .dots { color: var(--text); font-weight: 500; }
.ev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ev-card { display: flex; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); background: var(--surface); }
a.ev-card:hover { text-decoration: none; border-color: var(--accent-line); }
.ev-thumb { position: relative; flex: none; width: 168px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--accent-soft-2); }
.ev-thumb .poster, .ev-thumb .docart { width: 100%; height: 100%; display: block; }
.ev-thumb .play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(16, 33, 31, 0.72); color: #fff; }
.ev-thumb .play .ic { width: 20px; height: 20px; fill: currentColor; margin-left: 3px; }
.ev-thumb .dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(16, 33, 31, 0.78); color: #fff; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ev-body strong { font-size: 16px; }
.ev-body p { margin: 4px 0 8px; color: var(--text-2); font-size: 14px; }
.ev-meta { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-3); }
.ev-meta .ic { width: 16px; height: 16px; }
.lf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.lf-item { display: flex; gap: 12px; padding: 4px 18px; }
.lf-item:first-child { padding-left: 0; }
.lf-item + .lf-item { border-left: 1px solid var(--line); }
.lf-item strong { font-size: 15.5px; }
.lf-item p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.lf-ic { width: 30px; height: 30px; color: var(--accent); flex: none; }
.help-panel {
  position: relative; overflow: hidden; isolation: isolate; background: var(--deep); color: var(--on-deep);
  border-radius: var(--radius-lg); padding: 30px 28px 26px; box-shadow: var(--shadow);
}
.help-panel::before, .help-panel::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; background: var(--deep-2); }
.help-panel::before { width: 220px; height: 220px; right: -90px; top: -110px; }
.help-panel::after { width: 120px; height: 120px; right: 40px; top: -70px; opacity: .6; }
.help-panel h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--on-deep); }
.help-panel > p { color: var(--on-deep-2); margin: 8px 0 20px; font-size: 16.5px; }
.help-panel .btn-mint { min-height: 54px; font-size: 16.5px; }
.help-steps { list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-direction: column; gap: 18px; }
.help-steps li { display: flex; gap: 14px; }
.help-steps .num { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--on-deep-2); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.help-steps strong { font-size: 16.5px; }
.help-steps p { margin: 3px 0 0; color: var(--on-deep-2); font-size: 14.5px; }
.glance dl { margin: 10px 0 0; }
.glance dl > div { display: grid; grid-template-columns: 26px 120px minmax(0, 1fr); align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.glance dl .ic { color: var(--deep); width: 22px; height: 22px; }
.glance dt { font-weight: 650; }
.glance dd { margin: 0; color: var(--text-2); }
.lead-row { display: flex; gap: 14px; align-items: flex-start; margin: 12px 0 16px; }
.lead-row .av { background: var(--accent-soft); color: var(--deep); border: 0; font-weight: 600; }
.lead-row p { margin: 4px 0 0; color: var(--text-2); font-size: 14.5px; }
.own-panel p { margin: 8px 0 16px; }

/* ---- Link cards ---- */
.link-card {
  display: flex; align-items: center; gap: 16px; width: 100%; padding: 20px 22px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--text); font: inherit;
}
.link-card:hover { text-decoration: none; border-color: var(--accent-line); }
.link-card strong { display: block; font-size: 17px; }
.link-card span { color: var(--text-2); font-size: 14.5px; }
.link-card > .ic { width: 20px; height: 20px; color: var(--accent-text); }

/* ---- Boot ---- */
.boot-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 30px; box-shadow: var(--shadow); max-width: 440px; width: 100%; }
.boot-title { font-size: 20px; font-weight: 700; margin: 20px 0 6px; }
.boot-slow { margin: 14px 0 10px; font-size: 14.5px; color: var(--text-2); }

/* ---- Responsive ---- */
@media (max-width: 1180px) {
  .profile-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 1000px) {
  .profile-layout { display: flex; flex-direction: column; gap: 20px; }
  .profile-main, .profile-aside { display: contents; }
  .profile-main > *, .profile-aside > * { order: 3; }
  .profile-main > .prof-head { order: 1; }
  .profile-aside > .help-panel, .profile-aside > .own-panel { order: 2; }
  /* Approving a profile: read all of it first, answer at the end */
  .profile-aside > .approve-panel { order: 4; }
  .opp-cards { grid-template-columns: minmax(0, 1fr); }
  .lf-grid { grid-template-columns: 1fr; gap: 14px; }
  .lf-item, .lf-item:first-child { padding: 0; }
  .lf-item + .lf-item { border-left: 0; }
}
@media (max-width: 720px) {
  .panel { padding: 18px; border-radius: var(--radius); }
  .opp-switch { display: flex; width: 100%; }
  .opp-switch a { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 4px; padding: 9px 6px; font-size: 14.5px; text-align: center; }
  .opp-switch a > .ic { display: none; }
  .opp-search { flex-basis: 100%; }
  .opp-filters .dd { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .opp-sort { margin-left: 0; flex-basis: 100% !important; }
  .opp-pills { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; }
  .opp-pill { flex: none; min-height: 44px; }
  .opp-card { padding: 16px; }
  .opp-top { flex-wrap: wrap; }
  .opp-top > .grow { flex: 1 1 calc(100% - 66px); }
  .opp-card h3 { font-size: 19px; }
  .opp-foot .btn { width: 100%; }
  .prof-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .prof-head .otile.xl { width: 76px; height: 76px; font-size: 26px; }
  .profile-pair { grid-template-columns: 1fr; }
  .ev-grid { grid-template-columns: 1fr; }
  .ev-thumb { width: 128px; }
  .fallback .btn { width: 100%; }
}
@media (max-width: 600px) {
  .dd select { min-height: 46px; padding: 8px 34px 8px 12px; font-size: 14.5px; }
  .dd > .ic { right: 10px; }
}
@media (max-width: 420px) {
  .ev-card { flex-direction: column; }
  .ev-thumb { width: 100%; }
}

/* ---- Access levels (How Living Worlds works, Your access, closed directory) ---- */
.acc-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.acc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px 26px; }
.acc-card.current { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft-2), var(--shadow); }
.acc-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 16px; }
.acc-head h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc-head p { margin: 4px 0 8px; color: var(--text-2); font-size: 15.5px; }
.itile.studio { background: var(--tile-studio); color: var(--ink-studio); }
.acc-pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.acc-pill.mint { background: var(--accent-soft); color: var(--deep); }
.acc-pill.studio { background: var(--tile-studio); color: var(--ink-studio); }
.acc-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.acc-rows li { display: grid; grid-template-columns: 30px 170px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.acc-rows li:last-child { border-bottom: 0; }
.acc-rows strong { font-size: 15.5px; }
.acc-rows span:last-child { color: var(--text-2); font-size: 15px; }
.acc-mark { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; }
.acc-mark .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.acc-mark.yes { background: var(--accent-soft); color: var(--accent); }
.acc-mark.limited { background: var(--warning-soft); color: var(--warning); }
.acc-rules { margin-top: 20px; background: var(--deep); color: var(--on-deep); border-radius: var(--radius-lg); padding: 24px 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 24px; }
.acc-rules h2 { grid-column: 1 / -1; font-size: 21px; font-weight: 800; color: var(--on-deep); white-space: nowrap; }
.acc-rules > div { display: flex; gap: 12px; align-items: flex-start; }
.acc-rules > div > .ic { width: 22px; height: 22px; color: var(--on-deep-2); margin-top: 2px; flex: none; }
.acc-rules strong { display: block; font-size: 16px; }
.acc-rules p { margin: 2px 0 0; color: var(--on-deep-2); font-size: 14.5px; }
.acc-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
.acc-cta h2 { font-size: 20px; }
.acc-cta p { margin: 4px 0 0; color: var(--text-2); }
.acc-note { display: flex; gap: 9px; align-items: center; color: var(--text-2); font-size: 14.5px; margin: 18px 0 0; }
.acc-summary { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-top: 6px; }
.acc-summary-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.acc-requested { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px; border-radius: 10px;
  background: var(--accent-soft-2); color: var(--deep); font-size: 14.5px; font-weight: 500; }
.acc-requested .ic { color: var(--accent); }
.gate-list { list-style: none; margin: 0 auto 18px; padding: 0; max-width: 560px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.gate-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.gate-list strong { color: var(--text); }
.gate-more { display: inline-flex; margin-top: 14px; }
@media (max-width: 900px) {
  .acc-compare { grid-template-columns: 1fr; }
  .acc-rules { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 560px) {
  .acc-rows li { grid-template-columns: 30px minmax(0, 1fr); }
  .acc-rows li span:last-child { grid-column: 2; }
  .acc-card { padding: 18px; }
}

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

/* ---- Sessions (M7) ---- */
.ses-h { font-size: 16.5px; margin: 20px 0 10px; }
.ses-tight { margin: 6px 0 12px; }
.ses-card { display: flex; flex-direction: column; align-items: flex-start; color: var(--text); }
.ses-card:hover { text-decoration: none; border-color: var(--accent-line); }
.ses-card h3 { font-size: 21px; margin: 10px 0 6px; }
.ses-card p { margin: 0 0 8px; color: var(--text-2); font-size: 15px; }
.ses-card-when, .ses-card-who { display: flex; align-items: center; gap: 8px; }
.ses-card-when { color: var(--text) !important; font-weight: 500; }
.ses-card-when .ic, .ses-card-who .ic { flex: none; color: var(--accent); }
.ses-card-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; width: 100%; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.ses-preview-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; padding: 10px 16px; border-radius: 10px; background: var(--warning-soft); color: var(--warning); font-size: 15px; }
.ses-preview-bar .btn { margin-left: auto; }
.ses-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; grid-template-areas: "head side" "main side"; gap: 0 22px; align-items: start; }
.ses-head { grid-area: head; }
.ses-head .ses-back { display: flex; width: fit-content; }
.ses-main { grid-area: main; min-width: 0; }
.ses-side { grid-area: side; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ses-back { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-text); font-size: 14.5px; font-weight: 500; margin-bottom: 14px; }
.ses-title { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 6px; }
.ses-promise { font-size: 19px; color: var(--text-2); margin: 0 0 18px; }
.ses-sec { padding: 14px 20px 22px; }
.ses-sec > h2 { font-size: 20px; margin: 20px 0 10px; }
.ses-hero { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--accent-soft-2); border-radius: 12px; padding: 14px 18px; }
.ses-hero p { margin: 0; font-size: 25px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.ses-hero-art { width: 100%; height: auto; display: block; font-family: var(--font-sans); }
.ses-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ses-box { display: flex; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius); align-items: flex-start; background: var(--surface); }
.ses-box strong { display: block; font-size: 14.5px; line-height: 1.3; }
.ses-box p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--text-2); }
.ses-box.mint { background: var(--accent-soft-2); border-color: transparent; }
.ses-box.mint .itile { background: var(--surface); }
.ses-box.row-c { align-items: center; padding: 10px 12px; }
.ses-box.row-c .otile { width: 46px; height: 46px; font-size: 16px; border-radius: 11px; }
.ses-box.row-c > .ic { color: var(--text-2); }
.ses-box.row-c p { margin-top: 1px; }
.ses-box.plain .ses-big { width: 28px; height: 28px; color: var(--accent); flex: none; }
.ses-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--deep); font-weight: 700; }
.ses-side-head { display: flex; gap: 14px; align-items: center; }
.ses-side-head h2 { font-size: 21px; }
.ses-side-head p { margin: 2px 0 0; color: var(--text-2); font-size: 14.5px; }
.ses-meta { list-style: none; margin: 14px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.ses-meta li { display: flex; gap: 12px; align-items: center; }
.ses-meta .ic { width: 20px; height: 20px; color: var(--deep); flex: none; }
.ses-side .panel h2 { font-size: 19px; }
.ses-textarea { min-height: 96px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--placeholder); font-size: 15px; }
.ses-count { text-align: right; font-size: 13px; color: var(--text-3); margin: 6px 0 10px; }
.ses-res-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ses-res { display: flex; gap: 14px; align-items: center; }
.ses-res strong { font-size: 15.5px; }
.ses-res p { margin: 3px 0 0; color: var(--text-2); font-size: 14px; }
.ses-res > .ic { color: var(--text-2); }

.ses-rating { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ses-q textarea { width: 100%; }
button.ses-back { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
a.ses-box, a.ses-res { color: var(--text); }
a.ses-box:hover, a.ses-res:hover { text-decoration: none; border-color: var(--accent-line); }

/* ---- Insights (M8) ---- */
.ins-filters { margin-bottom: 20px; }
.opp-pill .ic { width: 18px; height: 18px; margin-right: 7px; }
.ins-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ins-list { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ins-card { display: flex; gap: 20px; align-items: center; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px 20px; }
.ins-card:hover { border-color: var(--accent-line); }
.ins-card.on { background: var(--accent-soft-2); border-color: var(--accent); }
.ins-card > .grow { min-width: 0; display: block; }
.ins-title { display: block; font-size: 20px; font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; margin: 9px 0 6px; }
.ins-text { display: block; color: var(--text-2); font-size: 15px; }
.ins-read { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--text-3); }
.ins-read .ic { flex: none; width: 17px; height: 17px; }
.ins-thumb img { width: 100%; aspect-ratio: 150 / 170; object-fit: cover; border-radius: 12px; display: block; }
.ins-preview { padding: 26px; position: sticky; top: calc(var(--header-h) + 18px); }
.ins-back { display: none !important; }
.ins-sample { display: flex; align-items: center; gap: 7px; margin: 10px 0 0; font-size: 13.5px; color: var(--text-3); }
.ins-sample .ic { flex: none; width: 15px; height: 15px; }
.ins-thumb { flex: none; width: 148px; }
.ins-thumb svg { width: 100%; height: auto; display: block; }
.ins-preview-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ins-source { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-3); }
.ins-source .ic { width: 16px; height: 16px; }
.ins-preview-title { font-size: 32px !important; font-weight: 800; letter-spacing: -0.025em; margin: 14px 0 8px; }
.ins-lede { font-size: 16.5px; margin: 0 0 16px; }
.ins-learn { list-style: none; margin: 0 0 8px; padding: 0 0 8px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--line); }
.ins-learn li { display: flex; gap: 16px; align-items: center; }
.ins-round { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft-2); color: var(--deep); }
.ins-round .ic { width: 24px; height: 24px; }
.ins-learn strong { display: block; font-size: 16px; }
.ins-learn span:not(.ins-round) { color: var(--text-2); font-size: 15px; }
.ins-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ins-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.ins-two .btn { padding: 10px 12px; font-size: 15px; }

.ins-related .ses-box strong { font-size: 14.5px; }
.ins-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }

/* ---- The BGA team's forms ---- */
.sf-row { grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
.sf-row > .ses-num { margin-top: 28px; }
.sf-row3 { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.3fr); }

@media (max-width: 1000px) {
  .ses-layout { display: flex; flex-direction: column; gap: 16px; }
  .ses-side { display: contents; }
  .ses-head { order: 1; }
  .ses-act { order: 2; width: 100%; }
  .ses-main { order: 3; width: 100%; }
  .ses-side > .panel:not(.ses-act) { order: 4; width: 100%; }
  .ins-layout { display: block; }
  .ins-layout .ins-preview { display: none; position: static; }
  #ins-page.show-preview .ins-list, #ins-page.show-preview .dir-head, #ins-page.show-preview .ins-filters { display: none; }
  #ins-page.show-preview .ins-preview { display: block; }
  .ins-back { display: inline-flex !important; }
}
@media (max-width: 720px) {
  .ses-three, .ins-two, .ins-related { grid-template-columns: minmax(0, 1fr); }
  .ses-hero { grid-template-columns: minmax(0, 1fr); }
  .ses-title { font-size: 30px; }
  .ses-sec { padding: 6px 16px 18px; }
  .ins-card { gap: 14px; padding: 14px; align-items: flex-start; }
  .ins-thumb { width: 86px; }
  .ins-title { font-size: 17.5px; }
  .ins-preview { padding: 18px; }
  .ins-preview-title { font-size: 25px !important; }
  .ins-read { align-items: flex-start; }
  .sf-row, .sf-row3 { grid-template-columns: minmax(0, 1fr); }
  .sf-row > .ses-num { margin-top: 0; }
}


/* ---------------------------------------------------------------------
   Home opens on Today; decisions answered in a side sheet
   --------------------------------------------------------------------- */
.today-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 26px 32px; border-radius: var(--radius-lg); background: var(--deep); color: var(--on-deep); }
.today-band small { display: block; font-size: 14.5px; color: var(--on-deep-2); margin-bottom: 4px; }
.today-band h1 { color: var(--on-deep); font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin: 0; }
.today-band p { margin: 6px 0 0; font-size: 17px; color: var(--on-deep-2); }
.today-progress { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 14.5px; color: var(--on-deep-2); }
.today-dots { display: flex; gap: 7px; }
.today-dots i { width: 38px; height: 7px; border-radius: 999px; background: var(--deep-2); }
.today-dots i.on { background: var(--logo-light); }

.dec-list { margin-top: 16px; padding: 6px 24px; }
.dec { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.dec:first-child { border-top: 0; }
.dec h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; margin: 7px 0 3px; }
.dec p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.dec p.dec-from, .sheet p.dec-from { display: flex; gap: 7px; margin-top: 6px; font-size: 14px; color: var(--accent-text); }
.dec-from .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.dec-title { all: unset; cursor: pointer; }
.dec-title:hover { color: var(--accent-text); }
.dec-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.dec-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.dec-btns { display: flex; gap: 8px; }
.dec-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--accent-soft); color: var(--accent-text); }
.dec-chip .ic { width: 14px; height: 14px; }
.dec-chip.amber { background: var(--warning-soft); color: var(--warning); }
.dec-chip.sky { background: var(--tile-infra); color: var(--ink-infra); }
.dec-chip.green { background: var(--success-soft); color: var(--success); }
.dec-link { display: inline-flex; align-items: center; gap: 7px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--accent-text); white-space: nowrap; cursor: pointer; }
.dec-link:hover { text-decoration: underline; }
.dec-link.quiet { color: var(--text-3); font-weight: 500; }
.dec-link .ic { width: 16px; height: 16px; }

.looks-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 24px 0 10px; }
.looks-head h2 { font-size: 19px; }
.looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.look { display: flex; gap: 13px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 15px 16px; color: inherit; text-decoration: none; }
.look:hover { border-color: var(--accent-line); }
.look .otile { flex: none; width: 46px; height: 46px; font-size: 16px; border-radius: 12px; }
.look small { display: block; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.look strong { display: block; font-size: 15.5px; line-height: 1.3; margin: 2px 0; }
.look span:not(.otile):not(.itile) { font-size: 13.5px; color: var(--text-3); }

.explore { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; }
.explore .search-field { flex: 1; }
.explore input[type="search"] { min-height: 46px; font-size: 15.5px; }
.explore-tiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.explore-tile { padding: 7px 13px; border: 0; border-radius: 999px; background: var(--accent-soft-2); color: var(--deep); font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.explore-tile:hover { background: var(--accent-soft); }
.quiet-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; margin: 14px 2px 0; font-size: 14.5px; color: var(--text-3); }
.quiet-line .ic { width: 16px; height: 16px; }
.quiet-line a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--accent-text); }

dialog.sheet { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(590px, 100vw); max-width: none; height: 100dvh; max-height: none; border: 0; padding: 0; background: var(--surface); box-shadow: var(--shadow-lg); color: var(--text); }
dialog.sheet[open] { display: flex; flex-direction: column; }
dialog.sheet::backdrop { background: var(--overlay); }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 30px 0; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 30px 20px; display: flex; flex-direction: column; gap: 14px; }
.sheet h2 { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.17; margin: 4px 0 0; outline: none; }
.sheet-lead { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--text-2); }
.sheet-label { display: block; margin-bottom: -7px; font-size: 14px; font-weight: 650; }
.sheet-quote { background: var(--accent-soft-2); border-radius: var(--radius); padding: 14px 16px; }
.sheet-quote div + div { margin-top: 9px; }
.sheet-quote b { display: block; font-size: 13.5px; font-weight: 650; }
.sheet-quote span { font-size: 14.5px; line-height: 1.4; color: var(--text-2); }
.sheet-facet { padding-top: 12px; border-top: 1px solid var(--line); }
.sheet-facet b { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 650; }
.sheet-facet b .ic { width: 16px; height: 16px; color: var(--accent); }
.sheet-facet p { margin: 3px 0 0; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.sheet-rule { display: flex; gap: 8px; margin: 0; font-size: 13.5px; color: var(--text-2); }
.sheet-rule .ic { flex: none; width: 16px; height: 16px; color: var(--accent); }
.sheet-foot { padding: 14px 30px 18px; border-top: 1px solid var(--line); }
.sheet-btns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 9px; }
.sheet-btns .btn { justify-content: center; }
.sheet-next { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 30px; margin-top: 10px; }
.sheet-side { display: inline-flex; gap: 16px; }
.sheet-done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 26px; }
.sheet-done p { margin: 6px 0 18px; font-size: 16px; color: var(--text-2); }
.sheet-tick { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--success); margin-bottom: 16px; }
.sheet-tick .ic { width: 46px; height: 46px; }
#hand-new[hidden] { display: none; }
.hand-subject { display: flex; align-items: center; gap: 12px; padding: 11px 13px; background: var(--surface-2); border-radius: 10px; font-size: 14.5px; line-height: 1.35; }

@media (max-width: 1000px) { .looks { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .today-band { display: block; padding: 18px; }
  .today-band h1 { font-size: 31px; }
  .today-band p { font-size: 15.5px; }
  .today-progress { align-items: flex-start; margin-top: 12px; }
  .dec-list { padding: 2px 15px; }
  .dec { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 15px 0; }
  .dec > .itile, .dec > .otile, .dec > .av { display: none; }
  .dec h3 { font-size: 17.5px; }
  .dec-act { align-items: stretch; }
  .dec-act > .btn { justify-content: center; }
  .dec-btns .btn { flex: 1; justify-content: center; }
  .dec-link { justify-content: center; }
  .explore { flex-direction: column; align-items: stretch; }
  .explore .btn { justify-content: center; }
  dialog.sheet { width: 100vw; }
  .sheet-top { padding: 16px 18px 0; }
  .sheet-body { padding: 8px 18px 16px; }
  .sheet-foot { padding: 12px 18px 14px; }
  .sheet h2 { font-size: 24px; }
}
