/* ================================================================
   MAISON FORGE · BRAND PORTAL
   tenant template · marianella instance
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #1C1C3A;
  --navy-deep:   #0B0F2E;
  --navy-2:      #14142E;
  --gold:        #E2C68D;
  --gold-deep:   #C9A24A;
  --gold-soft:   rgba(226,198,141,0.22);
  --gold-faint:  rgba(226,198,141,0.12);
  --ivory:       #F4EFE7;
  --ivory-soft:  rgba(244,239,231,0.78);
  --ivory-faint: rgba(244,239,231,0.45);
  --chocolate:   #2A1A13;
  --burgundy:    #5C1F35;
  --vermillion:  #D2452E;
  --mint:        #9FE3C8;

  --serif:  'GFS Didot', 'Didot', 'Bodoni 72', Georgia, serif;
  --body:   'Cormorant Garamond', 'Didot', Georgia, serif;
  --sans:   'Helvetica Neue', 'Helvetica', 'Inter', Arial, sans-serif;
  --mono:   'JetBrains Mono', 'SF Mono', 'Consolas', monospace;

  --rail-w: 248px;

  --fade: 220ms cubic-bezier(.16,1,.3,1);
}

html, body { height: 100%; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: var(--navy); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }

/* ================================================================
   SHELL — left rail + main
   ================================================================ */
.shell {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  min-height: 100vh;
}

/* -------- LEFT RAIL -------- */
.rail {
  background: var(--navy-deep);
  border-right: 1px solid var(--gold-faint);
  padding: 40px 28px 32px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.rail-brand { margin-bottom: 48px; }
.rail-logo {
  display: block;
  width: 100%;
  max-width: 168px;
  height: auto;
  margin-bottom: 14px;
}
.rail-rule {
  width: 72px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 14px;
}
.rail-tenant {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ivory);
}

.rail-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: auto; }
.rail-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 10px;
  border-left: 1px solid transparent;
  transition: border-color var(--fade), background var(--fade), color var(--fade);
  color: var(--ivory-soft);
}
.rail-link:hover { color: var(--ivory); background: rgba(226,198,141,0.04); }
.rail-link.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(226,198,141,0.06);
}
.rail-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  width: 28px;
  color: var(--gold);
  opacity: 0.7;
}
.rail-link.active .rail-num { opacity: 1; }
.rail-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.rail-foot { text-align: center; padding-top: 24px; border-top: 1px solid var(--gold-faint); }
.rail-foot-star { color: var(--gold); font-size: 14px; margin-bottom: 8px; }
.rail-foot-line {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  line-height: 1.7;
}
.rail-foot-tenant { color: var(--gold); opacity: 0.7; }

/* -------- MAIN -------- */
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 32px 56px 24px;
  border-bottom: 1px solid var(--gold-faint);
  position: sticky;
  top: 0;
  background: var(--navy);
  z-index: 5;
}
.topbar-page {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ivory);
  letter-spacing: 0.005em;
  line-height: 1;
}
.topbar-right { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ivory-soft);
}
.topbar-date {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--ivory-faint);
}

/* STATUS DOTS */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
}
.status-idle    { background: var(--gold); }
.status-working { background: var(--mint); box-shadow: 0 0 0 0 rgba(159,227,200,0.7); animation: pulseWork 2.2s infinite; }
.status-waiting { background: var(--gold); animation: pulseWait 1.8s infinite; }
.status-error   { background: var(--vermillion); }
@keyframes pulseWork {
  0%   { box-shadow: 0 0 0 0 rgba(159,227,200,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(159,227,200,0); }
  100% { box-shadow: 0 0 0 0 rgba(159,227,200,0); }
}
@keyframes pulseWait {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.6; }
}

/* ROUTE CONTAINER */
.route { flex: 1; }

/* -------- FOOTER -------- */
.foot {
  text-align: center;
  padding: 64px 56px 44px;
  border-top: 1px solid var(--gold-faint);
  margin-top: 40px;
}
.foot-star { color: var(--gold); font-size: 14px; margin-bottom: 22px; }
.foot-line {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 2;
}
.foot-sub { color: var(--ivory-faint); }

/* ================================================================
   PAGE SHARED
   ================================================================ */
.page { padding: 60px 56px 40px; }

.page-head { max-width: 920px; margin-bottom: 56px; }
.page-eyebrow {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  color: var(--gold);
  margin-bottom: 26px;
}
.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 88px;
  line-height: 1.15;
  color: var(--ivory);
  margin-bottom: 24px;
  letter-spacing: 0.005em;
  max-width: 26ch;
}
.page-title em { font-style: italic; color: var(--gold); }
.page-lede {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ivory-soft);
  max-width: 72ch;
  font-style: normal;
  font-weight: 400;
}
.page-star {
  color: var(--gold);
  font-size: 16px;
  margin-top: 36px;
  letter-spacing: 0.4em;
}
.page-ornament {
  text-align: center;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.6em;
  margin: 60px 0 20px;
  opacity: 0.7;
}

/* ================================================================
   TODAY
   ================================================================ */
.today-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-faint);
  margin-bottom: 48px;
}
.band {
  background: var(--navy);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  min-height: 640px;
}
.band-priorities { background: var(--navy-2); }

.band-head { margin-bottom: 28px; }
.band-num {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 12px;
}
.band-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.05;
  color: var(--ivory);
  margin-bottom: 10px;
}
.band-title em { font-style: italic; color: var(--gold); }
.band-sub {
  display: block;
  font-family: var(--body);
  font-size: 15px;
  font-style: italic;
  color: var(--ivory-faint);
}

.band-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--gold-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.band-foot-sep { color: var(--gold); }
.band-foot-link { color: var(--gold); border-bottom: 1px solid transparent; transition: border-color var(--fade); }
.band-foot-link:hover { border-bottom-color: var(--gold); }

/* OVERNIGHT */
.overnight-list { list-style: none; }
.ov-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--gold-faint);
}
.ov-item:last-child { border-bottom: none; }
.ov-time {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.06em;
  padding-top: 3px;
}
.ov-who {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lum-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--dot, var(--gold));
  display: inline-block;
}
.ov-what {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ivory);
  font-weight: 400;
}

/* PRIORITIES */
.pri-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.pri-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--gold-faint);
}
.pri-item:last-child { border-bottom: none; }
.pri-rank {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--gold);
  line-height: 1;
  padding-top: 4px;
}
.pri-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ivory);
  margin-bottom: 8px;
}
.pri-what {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ivory-soft);
  margin-bottom: 10px;
  font-weight: 400;
}
.pri-meta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  display: flex;
  gap: 10px;
}
.pri-sep { color: var(--gold); }

/* NEEDS YOU */
.needs-list { list-style: none; }
.need-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed var(--gold-faint);
}
.need-item:last-child { border-bottom: none; }
.need-status { display: flex; align-items: center; gap: 10px; }
.need-tag {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-soft);
}
.need-urgent .need-tag { color: var(--gold); }
.need-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ivory);
  line-height: 1.35;
  margin-bottom: 3px;
}
.need-from {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.need-action {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  padding: 9px 16px;
  transition: all var(--fade);
}
.need-action:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* STRIP */
.today-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--gold-faint);
  margin-top: 40px;
}
.strip-cell {
  padding: 28px 24px;
  border-right: 1px solid var(--gold-faint);
  text-align: center;
}
.strip-cell:last-child { border-right: none; }
.strip-num {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: 0;
}
.strip-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}

/* ================================================================
   CONSTELLATION
   ================================================================ */
.lum-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-faint);
}
.lum-tile {
  background: var(--navy);
  padding: 28px 26px 22px;
  display: flex;
  flex-direction: column;
  transition: background var(--fade);
  cursor: pointer;
  position: relative;
  min-height: 320px;
}
.lum-tile:hover { background: var(--navy-2); }
.lum-portrait-wrap {
  aspect-ratio: 1/1;
  margin-bottom: 18px;
  position: relative;
  background: radial-gradient(circle at center, rgba(226,198,141,0.04), transparent 70%);
  border: 1px solid var(--gold-faint);
  overflow: hidden;
}
.lum-portrait-wrap svg,
.lum-portrait-img { width: 100%; height: 100%; display: block; object-fit: contain; }
.lum-portrait-fallback {
  position: absolute; inset: 18%;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 64px;
  color: var(--gold);
}
.lum-tile-num {
  position: absolute;
  top: 16px; left: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  opacity: 0.8;
}
.lum-tile-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  color: var(--ivory);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.lum-tile-role {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1.3;
}
.lum-tile-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--gold-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.lum-tile-status { display: flex; align-items: center; gap: 7px; }
.lum-tile-ts { color: var(--ivory-faint); }

/* aura animations */
@keyframes twinkle {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
@keyframes pulseWave {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}
@keyframes waitingGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.22); }
}
@keyframes completedShimmer {
  0%   { opacity: 0.6; }
  50%  { opacity: 1; }
  100% { opacity: 0.6; }
}
.portrait-stars circle.twinkle { animation: twinkle 3.2s ease-in-out infinite; }
.portrait-stars circle.twinkle.d1 { animation-delay: 0s; }
.portrait-stars circle.twinkle.d2 { animation-delay: 0.8s; }
.portrait-stars circle.twinkle.d3 { animation-delay: 1.6s; }
.portrait-stars circle.twinkle.d4 { animation-delay: 2.4s; }

.aura-waiting .portrait-stars circle:first-child { animation: waitingGlow 2s ease-in-out infinite; r: 5; fill: #fff; }
.aura-error .portrait-stars { opacity: 0.4; }

/* ================================================================
   THINK TANK
   ================================================================ */
.think-back {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color var(--fade);
}
.think-back:hover { border-bottom-color: var(--gold); }

.think-grid {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 28px;
  align-items: flex-start;
}
.think-col { display: flex; flex-direction: column; gap: 28px; }
.think-col-main { gap: 32px; }

.tt-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.tt-label-inline { margin-bottom: 0; }

/* FACE */
.tt-face {
  border: 1px solid var(--gold-faint);
  padding: 20px 20px 18px;
  background: var(--navy-2);
}
.tt-face-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.tt-portrait {
  aspect-ratio: 4/5;
  position: relative;
  background: radial-gradient(circle at center, rgba(226,198,141,0.08), transparent 70%);
  border: 1px solid var(--gold-faint);
  margin-bottom: 16px;
  overflow: hidden;
}
.tt-portrait svg,
.tt-portrait .lum-portrait-img { width: 100%; height: 100%; display: block; object-fit: contain; }
.tt-portrait .lum-portrait-fallback {
  position: absolute; inset: 18%;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 96px;
  color: var(--gold);
}
.tt-face-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 6px;
}
.tt-face-ts {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ivory-faint);
  letter-spacing: 0.04em;
}

/* NOTES */
.tt-notes { border: 1px solid var(--gold-faint); padding: 18px; background: var(--navy-2); }
.tt-notes-area {
  width: 100%;
  min-height: 140px;
  background: transparent;
  border: none;
  outline: none;
  resize: vertical;
  color: var(--ivory);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
}
.tt-notes-area::placeholder { color: var(--ivory-faint); font-style: italic; }
.tt-notes-save {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
  margin-top: 10px;
  opacity: 0.7;
}

/* FILES */
.tt-files { border: 1px solid var(--gold-faint); background: var(--navy-2); }
.tt-files-toggle {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0 !important;
}
.tt-caret { transition: transform var(--fade); color: var(--gold); font-size: 14px; }
.tt-files.closed .tt-caret { transform: rotate(0deg); }
.tt-files.open   .tt-caret { transform: rotate(90deg); }
.tt-files-list { list-style: none; padding: 0 18px 14px; }
.tt-files.closed .tt-files-list { display: none; }
.tt-files-list li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed var(--gold-faint);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ivory-soft);
}
.tt-files-list li:last-child { border-bottom: none; }
.tt-file-meta { color: var(--ivory-faint); }

/* MAIN COL */
.tt-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gold-faint);
}
.tt-header-sub {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.tt-header-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--ivory);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
  text-transform: none;
}
.tt-header-role {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

/* BRIEF */
.tt-brief { padding-bottom: 10px; }
.tt-brief-lede {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ivory);
  margin-bottom: 28px;
  max-width: 62ch;
}
.tt-brief-lede em { color: var(--gold); font-style: italic; font-family: var(--serif); font-size: 18px; }
.tt-brief-cycle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--gold-faint);
}
.tt-cycle-head {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.tt-cycle-cell p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ivory-soft);
  font-weight: 400;
}

/* WORK SURFACE */
.tt-work-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-faint);
}
.tt-briefing, .tt-delegation {
  background: var(--navy-2);
  padding: 26px 26px;
}
.tt-briefing-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--gold-faint);
}
.tt-briefing-title {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.tt-briefing-time {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.tt-briefing-body p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ivory);
  margin-bottom: 12px;
  font-weight: 400;
}
.tt-briefing-body p em { color: var(--gold); font-style: italic; font-family: var(--serif); font-size: 16px; }
.tt-briefing-list {
  padding-left: 1.3em;
  margin: 10px 0 14px;
}
.tt-briefing-list li {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ivory);
  padding: 6px 0;
  font-weight: 400;
}

.tt-deleg-head {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--gold-faint);
}
.tt-deleg-list { list-style: none; }
.deleg-row {
  padding: 10px 0;
  border-bottom: 1px dashed var(--gold-faint);
  display: grid;
  grid-template-columns: 72px 20px 72px 1fr;
  gap: 6px;
  align-items: baseline;
}
.deleg-row:last-child { border-bottom: none; }
.deleg-from, .deleg-to {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.deleg-to { color: var(--mint); }
.deleg-arrow { font-family: var(--mono); color: var(--ivory-faint); }
.deleg-sub {
  grid-column: 1 / -1;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ivory-soft);
  line-height: 1.5;
  padding-top: 2px;
  font-weight: 400;
}

/* LOG */
.tt-log {
  border: 1px solid var(--gold-faint);
  background: var(--navy-2);
  padding: 18px 22px;
  max-height: 200px;
  overflow: auto;
}
.tt-log-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--gold-faint); }
.tt-log-filter {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.tt-log-list { list-style: none; }
.tt-log-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 6px 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ivory-soft);
  line-height: 1.5;
}
.log-ts { color: var(--gold); }

/* CHAT */
.think-col-4 {
  position: sticky;
  top: 56px;
  max-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
  justify-content: stretch;
}
.tt-chat {
  border: 1px solid var(--gold-faint);
  background: var(--navy-2);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: calc(100vh - 120px);
}
.tt-chat-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--gold-faint); }
.tt-chat-sub {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
  opacity: 0.8;
}
.tt-chat-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}
.chat-msg {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ivory);
  font-weight: 400;
}
.chat-them { padding-right: 12%; }
.chat-you  { padding-left: 18%; text-align: right; }
.chat-who {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.chat-ts {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ivory-faint);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.chat-you p {
  display: inline-block;
  background: rgba(226,198,141,0.1);
  border: 1px solid var(--gold-faint);
  padding: 8px 12px;
}

.tt-chat-form { border-top: 1px solid var(--gold-faint); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.tt-chat-input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--gold-faint);
  padding: 10px 12px;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 64px;
  outline: none;
  font-weight: 400;
}
.tt-chat-input::placeholder { color: var(--ivory-faint); font-style: italic; }
.tt-chat-input:focus { border-color: var(--gold); }
.tt-chat-send {
  align-self: flex-end;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 9px 16px;
  transition: background var(--fade);
}
.tt-chat-send:hover { background: var(--gold-deep); }

/* ================================================================
   CALENDAR
   ================================================================ */
.cal-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.cal-toolbar-left { display: flex; align-items: center; gap: 18px; }
.cal-nav {
  width: 32px; height: 32px;
  border: 1px solid var(--gold-faint);
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  transition: all var(--fade);
}
.cal-nav:hover { background: var(--gold); color: var(--navy); }
.cal-month {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--ivory);
}
.cal-toolbar-right { display: flex; gap: 0; border: 1px solid var(--gold-faint); }
.cal-view {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  padding: 9px 18px;
  border-right: 1px solid var(--gold-faint);
  transition: all var(--fade);
}
.cal-view:last-child { border-right: none; }
.cal-view-active { background: var(--gold); color: var(--navy); }

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--gold-faint);
  border-bottom: 1px solid var(--gold-faint);
  margin-bottom: 16px;
}
.leg-item {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  display: flex;
  align-items: center;
  gap: 7px;
}
.leg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--gold)); display: inline-block; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--gold-faint);
  background: var(--gold-faint);
  gap: 1px;
}
.cal-dow, .cal-day {
  background: var(--navy);
  padding: 14px 14px;
  min-height: 170px;
}
.cal-dow {
  min-height: 0;
  padding: 12px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}
.cal-day { display: flex; flex-direction: column; gap: 6px; }
.cal-day.off { background: var(--navy-deep); opacity: 0.55; }
.cal-day.today { background: var(--navy-2); outline: 1px solid var(--gold); outline-offset: -3px; position: relative; z-index: 2; }
.cal-date {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ivory-soft);
  margin-bottom: 6px;
}
.cal-day.today .cal-date { color: var(--gold); }
.cal-event {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ivory);
  padding: 7px 9px;
  border-left: 2px solid var(--evt, var(--gold));
  background: rgba(226,198,141,0.06);
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cal-event .cal-evt-time {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--evt, var(--gold));
  letter-spacing: 0.06em;
}

/* ================================================================
   VAULT
   ================================================================ */
.vault-toolbar { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.vault-search {
  flex: 1;
  min-width: 320px;
  background: transparent;
  border: 1px solid var(--gold-faint);
  padding: 11px 16px;
  color: var(--ivory);
  font-family: var(--body);
  font-size: 15px;
  font-style: italic;
  outline: none;
}
.vault-search:focus { border-color: var(--gold); }
.vault-search::placeholder { color: var(--ivory-faint); }
.vault-filters { display: flex; gap: 0; border: 1px solid var(--gold-faint); }
.vault-chip {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  padding: 11px 14px;
  border-right: 1px solid var(--gold-faint);
  transition: all var(--fade);
}
.vault-chip:last-child { border-right: none; }
.vault-chip:hover { color: var(--gold); }
.vault-chip-active { background: var(--gold); color: var(--navy); }

.vault-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: flex-start; }
.vault-list { list-style: none; border: 1px solid var(--gold-faint); max-height: 640px; overflow: auto; }
.vault-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gold-faint);
  cursor: pointer;
  align-items: center;
  transition: background var(--fade);
}
.vault-item:hover, .vault-item.active { background: var(--navy-2); }
.vault-item.active { border-left: 2px solid var(--gold); padding-left: 18px; }
.vault-item:last-child { border-bottom: none; }
.vault-ico {
  width: 30px; height: 30px;
  border: 1px solid var(--gold-faint);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.vault-name {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ivory);
  margin-bottom: 4px;
  word-break: break-all;
}
.vault-meta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.vault-size {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ivory-faint);
}

.vault-preview { border: 1px solid var(--gold-faint); background: var(--navy-2); position: sticky; top: 100px; }
.vault-preview-head { padding: 18px 22px; border-bottom: 1px solid var(--gold-faint); }
.vault-preview-name {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 6px;
  word-break: break-all;
}
.vault-preview-meta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.vault-preview-body {
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ivory-soft);
  max-height: 440px;
  overflow: auto;
  white-space: pre-wrap;
}
.vault-preview-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--gold-faint);
  display: flex;
  gap: 10px;
}
.vault-btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  padding: 9px 16px;
  transition: all var(--fade);
}
.vault-btn:hover { background: var(--gold); color: var(--navy); }
.vault-btn-ghost { color: var(--ivory-soft); border-color: var(--gold-faint); }

/* ================================================================
   PLAYBOOKS
   ================================================================ */
.pb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-faint);
}
.pb-card {
  background: var(--navy);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}
.pb-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 8px;
}
.pb-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  color: var(--ivory);
  line-height: 1.05;
  margin-bottom: 16px;
}
.pb-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ivory-soft);
  margin-bottom: 28px;
  max-width: 40ch;
}
.pb-cast { margin-bottom: 24px; padding: 16px 0; border-top: 1px solid var(--gold-faint); border-bottom: 1px solid var(--gold-faint); }
.pb-cast-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.pb-cast-list {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
}
.pb-steps { list-style: none; counter-reset: step; margin-bottom: 28px; }
.pb-steps li {
  counter-increment: step;
  padding: 10px 0 10px 40px;
  position: relative;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ivory);
  border-bottom: 1px dashed var(--gold-faint);
  font-weight: 400;
}
.pb-steps li:last-child { border-bottom: none; }
.pb-steps li::before {
  content: counter(step, lower-roman) ".";
  position: absolute;
  left: 0; top: 10px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 14px;
  width: 32px;
}
.pb-run {
  align-self: flex-start;
  margin-top: auto;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  padding: 12px 22px;
  transition: all var(--fade);
}
.pb-run:hover { background: var(--gold-faint); }

/* ================================================================
   DECISIONS
   ================================================================ */
.dec-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--gold-faint);
  border-bottom: 1px solid var(--gold-faint);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.dec-toolbar-left { display: flex; gap: 0; flex-wrap: wrap; }
.dec-chip {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  padding: 8px 13px;
  border: 1px solid var(--gold-faint);
  margin: 2px;
  transition: all var(--fade);
}
.dec-chip:hover { color: var(--gold); border-color: var(--gold-soft); }
.dec-chip-active { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.dec-count {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ivory-faint);
  letter-spacing: 0.06em;
}

.dec-feed { list-style: none; border: 1px solid var(--gold-faint); }
.dec-row {
  display: grid;
  grid-template-columns: 100px 120px 1fr;
  gap: 20px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--gold-faint);
  align-items: baseline;
}
.dec-row:last-child { border-bottom: none; }
.dec-ts {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.dec-who {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dec-text {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ivory-soft);
  font-weight: 400;
}
.dec-target {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--gold);
  padding: 1px 6px;
  border: 1px solid var(--gold-faint);
  margin-left: 6px;
  display: inline-block;
}

/* ================================================================
   SOUL
   ================================================================ */
.soul-head .page-star { color: var(--mint); }
.soul-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-faint);
}
.soul-card {
  background: var(--navy);
  padding: 34px 32px;
  position: relative;
  border-top: 2px solid var(--mint);
}
.soul-card-lg { grid-column: span 2; }
.soul-card-lg.soul-card:last-child { grid-column: span 3; }
.soul-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--mint);
  margin-bottom: 8px;
}
.soul-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  color: var(--ivory);
  margin-bottom: 24px;
}
.soul-title em { font-style: italic; color: var(--gold); }
.soul-row { margin-bottom: 20px; }
.soul-row:last-child { margin-bottom: 0; }
.soul-row-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.soul-row p {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ivory);
}
.soul-banned { display: flex; flex-wrap: wrap; gap: 6px; }
.soul-banned span {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--ivory);
  opacity: 0.5;
  text-decoration: line-through;
  text-decoration-color: var(--ivory);
  padding: 6px 12px;
  border: 1px solid rgba(244, 239, 231, 0.3);
  border-radius: 4px;
  display: inline-block;
}
.soul-stats { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 22px; }
.soul-stats li { border-top: 1px solid var(--gold-faint); padding-top: 10px; }
.ss-n {
  display: block;
  font-family: var(--serif);
  font-size: 32px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.ss-l {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.soul-ingredients p {
  font-family: var(--body);
  font-size: 16px;
  font-style: italic;
  color: var(--ivory);
  line-height: 1.5;
}
.soul-quote {
  border-left: 2px solid var(--mint);
  padding: 8px 0 8px 22px;
  margin-bottom: 22px;
}
.soul-quote p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ivory);
}
.soul-pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.soul-pill {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 14px;
  border: 1px solid var(--gold-soft);
}
.soul-landscape { list-style: none; }
.soul-landscape li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--gold-faint);
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
.soul-landscape li:last-child { border-bottom: none; }
.sl-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory);
}
.sl-angle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--gold);
}

.soul-deck-lede {
  font-family: var(--body);
  font-style: italic;
  font-size: 16px;
  color: var(--ivory-soft);
  margin-bottom: 22px;
}
.soul-deck {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.deck-card {
  border: 1px solid var(--gold-faint);
  padding: 18px 16px;
  background: var(--navy-2);
  min-height: 140px;
  display: flex;
  flex-direction: column;
}
.deck-card p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.3;
  color: var(--ivory);
  flex: 1;
}
.deck-meta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  margin-top: 12px;
}
.deck-badge {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 8px;
}
.deck-fav { border-color: var(--mint); background: linear-gradient(180deg, rgba(159,227,200,0.12) 0%, var(--navy-2) 100%); }

/* ================================================================
   SETTINGS
   ================================================================ */
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--gold-faint); border: 1px solid var(--gold-faint); }
.set-card { background: var(--navy); padding: 32px 32px; }
.set-card-head {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold-faint);
}
.set-list { list-style: none; }
.set-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 10px 0;
  border-bottom: 1px dashed var(--gold-faint);
}
.set-list div:last-child { border-bottom: none; }
.set-list dt {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  padding-top: 3px;
}
.set-list dd {
  font-family: var(--body);
  font-size: 16px;
  color: var(--ivory);
}
.set-integ { list-style: none; }
.set-integ li {
  padding: 11px 0;
  border-bottom: 1px dashed var(--gold-faint);
  font-family: var(--body);
  font-size: 16px;
  color: var(--ivory);
  display: flex;
  align-items: center;
  gap: 10px;
}
.set-integ li:last-child { border-bottom: none; }
.set-team { list-style: none; }
.set-team li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--gold-faint);
}
.set-team li:last-child { border-bottom: none; }
.team-av {
  width: 38px; height: 38px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
}
.team-n {
  font-family: var(--body);
  font-size: 16px;
  color: var(--ivory);
}
.team-r {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1200px) {
  .think-grid { grid-template-columns: 240px 1fr; }
  .think-col-4 { grid-column: 1 / -1; }
  .tt-chat { position: static; max-height: 540px; }
  .lum-grid { grid-template-columns: repeat(3, 1fr); }
  .soul-grid { grid-template-columns: repeat(2, 1fr); }
  .soul-card-lg { grid-column: span 2; }
  .soul-deck { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .today-grid { grid-template-columns: 1fr; }
  .today-strip { grid-template-columns: repeat(2, 1fr); }
  .strip-cell { border-right: 1px solid var(--gold-faint); border-bottom: 1px solid var(--gold-faint); }
  .pb-grid, .set-grid { grid-template-columns: 1fr; }
  .tt-work-grid { grid-template-columns: 1fr; }
  .vault-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; }
  .rail-nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 22px; }
  .page { padding: 32px 22px; }
  .lum-grid { grid-template-columns: repeat(2, 1fr); }
  .think-grid { grid-template-columns: 1fr; }
  .soul-grid { grid-template-columns: 1fr; }
  .soul-card-lg { grid-column: span 1; }
  .soul-deck { grid-template-columns: 1fr; }
  .tt-header-name { font-size: 56px; }
}

/* ================================================================
   PORTRAIT PLACEHOLDERS
   ================================================================ */
.portrait-frame {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  margin: 0 auto 12px;
}
.constellation-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait-placeholder {
  width: 100%;
  height: 100%;
  background: var(--navy-light, #252548);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-dim, rgba(226,198,141,0.3));
  border-radius: 50%;
}
.placeholder-initial {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold);
  font-style: italic;
}

/* in-think: hide topbar */
body.in-think .topbar { display: none; }

/* portrait placeholder frames */
.portrait-frame { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; position: relative; margin: 0 auto 12px; }
.constellation-portrait { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder { width: 100%; height: 100%; background: var(--navy-2, #252548); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(226,198,141,0.3); border-radius: 50%; }
.placeholder-initial { font-family: var(--serif); font-size: 28px; color: var(--gold); font-style: italic; }

/* Think Tank face radar */
.tt-portrait { position: relative; }
.tt-portrait::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid var(--mint);
  pointer-events: none;
  animation: ttRadar 1.8s ease-out infinite;
  opacity: 0;
}
@keyframes ttRadar {
  0%   { transform: scale(1.00); opacity: 0.7; }
  100% { transform: scale(1.30); opacity: 0;   }
}

/* ================================================================
   AURA STATES -- overlay system
   ================================================================ */
.lum-portrait-wrap { position: relative; }

.portrait-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
  pointer-events: none;
  opacity: 0;
}

.lum-tile { position: relative; overflow: hidden; }
.lum-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--fade);
  z-index: 0;
}
.lum-tile > * { position: relative; z-index: 1; }

/* WORKING */
.lum-tile.aura-working::before {
  background: #00E5CC;
  opacity: 0.28;
  mix-blend-mode: screen;
}
.aura-working .portrait-ring {
  border-color: #00E5CC;
  animation: radarPing 1.5s ease-out infinite;
}
@keyframes radarPing {
  0%   { transform: scale(1.00); opacity: 0.85; border-width: 2px; }
  100% { transform: scale(1.48); opacity: 0;    border-width: 0.5px; }
}

/* WAITING */
.lum-tile.aura-waiting::before {
  background: var(--gold);
  opacity: 0.28;
}

/* ERROR */
.lum-tile.aura-error::before {
  background: var(--vermillion);
  opacity: 0.28;
}
.lum-tile.aura-error {
  box-shadow: 0 0 20px 2px color-mix(in srgb, var(--vermillion) 30%, transparent);
  animation: errorBreathe 2.4s ease-in-out infinite;
}
@keyframes errorBreathe {
  0%, 100% { box-shadow: 0 0 16px 1px color-mix(in srgb, var(--vermillion) 22%, transparent); }
  50%      { box-shadow: 0 0 34px 5px color-mix(in srgb, var(--vermillion) 45%, transparent); }
}

/* ================================================================
   CHAT PANEL -- ivory paper on navy, gold border
   ================================================================ */

.tt-chat {
  background: var(--ivory);
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 32px 28px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
}

.tt-chat-head { border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); padding-bottom: 16px; margin-bottom: 20px; }
.tt-chat-head .tt-chat-title,
.tt-chat-head-title { color: #69451d; }
.tt-chat-sub { color: #69451d; opacity: 0.75; }
.tt-chat-scroll { color: #010101; }

.chat-msg { margin-bottom: 18px; }
.chat-msg p { color: #010101; }
.chat-msg .chat-who { color: #69451d; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.chat-msg .chat-ts  { color: #69451d; opacity: 0.55; font-size: 14px; margin-top: 4px; }

.chat-msg.chat-you {
  background: color-mix(in srgb, var(--gold) 18%, var(--ivory));
  border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent);
  padding: 10px 14px;
  border-radius: 2px;
  margin-left: auto;
  max-width: 80%;
}
.chat-msg.chat-you p { color: #010101; }

.tt-chat-form { border-top: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); padding-top: 16px; margin-top: 20px; display: flex; gap: 12px; align-items: flex-end; }
.tt-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #010101;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  resize: none;
  min-height: 44px;
  outline: none;
}
.tt-chat-input::placeholder { color: #69451d; opacity: 0.55; }
.tt-chat-send {
  color: #69451d;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 14px;
  background: transparent;
  border: 1px solid var(--gold);
  padding: 10px 20px;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--fade), color var(--fade);
}
.tt-chat-send:hover { background: var(--gold); color: var(--navy); }
