/* Alex Morgan Control Center - 3Pillars brand system
   navy 283147 · offwhite F4F4F3 · darkgray 4F4F4F · lavender AD84C6
   bluepurple 8784C7 · mutedblue 5D739A · steelblue 6997AF · teal 84ACB6
   slate 6F8183 · mauve 96607D · sand EDECE9 · deepnavy 1A2851            */

:root {
  --navy: #283147;
  --deepnavy: #1A2851;
  --offwhite: #F4F4F3;
  --darkgray: #4F4F4F;
  --lavender: #AD84C6;
  --bluepurple: #8784C7;
  --mutedblue: #5D739A;
  --steelblue: #6997AF;
  --teal: #84ACB6;
  --slate: #6F8183;
  --mauve: #96607D;
  --sand: #EDECE9;
  --line: rgba(93, 115, 154, 0.30);
  --ink: #000E36;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
  color: var(--darkgray);
  min-height: 100vh;
  min-height: 100dvh;
}

button { font: inherit; cursor: pointer; }
a { color: var(--mutedblue); }

/* ============================== auth pages ============================== */

body.auth {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(135, 132, 199, 0.20), transparent 60%),
    radial-gradient(900px 480px at -10% 100%, rgba(173, 132, 198, 0.14), transparent 55%),
    linear-gradient(165deg, var(--deepnavy) 0%, var(--navy) 55%, #2E3A58 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}

.glow { position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.glow-a { width: 420px; height: 420px; top: -140px; right: -100px; background: rgba(135, 132, 199, 0.18); }
.glow-b { width: 380px; height: 380px; bottom: -160px; left: -120px; background: rgba(132, 172, 182, 0.12); }

.auth-wrap {
  position: relative;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mark-ring {
  width: 76px; height: 76px;
  border: 1px solid rgba(244, 244, 243, 0.45);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.mark-ring::after {
  content: ''; position: absolute; inset: 5px;
  border: 1px solid rgba(173, 132, 198, 0.55);
  border-radius: 50%;
}
.mark-ring span {
  color: var(--offwhite);
  font-size: 22px; font-weight: 500; letter-spacing: 0.16em;
  padding-left: 0.16em; /* optically recenter tracked text */
}

.wordmark {
  margin-top: 22px;
  color: var(--offwhite);
  font-size: clamp(21px, 5.4vw, 26px);
  font-weight: 400;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
}
.tagline {
  margin-top: 10px;
  color: var(--teal);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.52em;
  padding-left: 0.52em;
}

.card {
  margin-top: 34px;
  width: 100%;
  background: var(--offwhite);
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: 0 24px 70px rgba(10, 16, 34, 0.45);
  text-align: left;
}

.card-title {
  color: var(--navy);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 6px;
}

.hint { color: var(--slate); font-size: 12.5px; line-height: 1.55; margin: 6px 0 4px; }
.error { color: #8A3B5C; font-size: 13px; line-height: 1.5; margin: 8px 0; font-weight: 500; }
.notice { color: #2F6B60; font-size: 13px; line-height: 1.5; margin: 8px 0; font-weight: 500; }

.stack { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }

.field span {
  display: block;
  color: var(--slate);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 6px;
}
.field input, .text-input, .code-input {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #D8D8D4;
  border-radius: 9px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .text-input:focus, .code-input:focus {
  border-color: var(--lavender);
  box-shadow: 0 0 0 3px rgba(173, 132, 198, 0.22);
}

.code-input {
  text-align: center;
  font-size: 24px;
  letter-spacing: 0.5em;
  padding-left: calc(14px + 0.5em);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  border-radius: 9px;
  padding: 13px 20px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #FFFFFF; }
.btn-primary:hover { background: var(--deepnavy); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(26, 40, 81, 0.35); }
.btn-secondary { background: transparent; color: var(--navy); border: 1px solid var(--mutedblue); }
.btn-secondary:hover { border-color: var(--navy); transform: translateY(-1px); }
.btn-danger { background: var(--mauve); color: #FFFFFF; }
.btn-danger:hover { background: #7E4E67; }

.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 6px;
  color: var(--slate); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #DCDCD8; }

.qr { display: block; margin: 14px auto 6px; border-radius: 10px; border: 1px solid #DCDCD8; }
.secret { text-align: center; font-size: 11px; color: var(--slate); margin-bottom: 6px; word-break: break-all; }
.secret code { font-size: 11px; }

.auth-foot {
  margin-top: 26px;
  color: rgba(244, 244, 243, 0.55);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ============================== app shell =============================== */

body.app { background: var(--offwhite); display: flex; flex-direction: column; }

.topbar {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 4vw, 42px);
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 2px 18px rgba(26, 40, 81, 0.28);
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px;
  border: 1px solid rgba(244, 244, 243, 0.45);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--offwhite);
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em;
  padding-left: 0.12em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { color: var(--offwhite); font-size: 12.5px; font-weight: 600; letter-spacing: 0.26em; }
.brand-text em { color: var(--teal); font-size: 9.5px; font-style: normal; letter-spacing: 0.22em; text-transform: uppercase; }

.topnav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 26px); }
.topnav a {
  color: rgba(244, 244, 243, 0.82);
  text-decoration: none;
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.topnav a:hover { color: #FFFFFF; }
.topnav a.on { color: #FFFFFF; border-bottom-color: var(--lavender); }

.session-chip {
  border: 1px solid rgba(132, 172, 182, 0.6);
  color: var(--teal);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
}

.linklike {
  background: none; border: none;
  color: rgba(244, 244, 243, 0.82);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0 0 3px;
}
.linklike:hover { color: #FFFFFF; }
.content .linklike { color: var(--mutedblue); text-transform: none; letter-spacing: 0; font-size: 13px; text-decoration: underline; }
.content .linklike.danger { color: var(--mauve); }

.content {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 48px) clamp(18px, 4vw, 42px) 30px;
  flex: 1;
}

.hero .kicker {
  color: var(--slate);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 10px;
}
.hero h1 {
  color: var(--navy);
  font-size: clamp(26px, 4.6vw, 36px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.memo {
  margin-top: 30px;
  background: var(--sand);
  border-left: 3px solid var(--lavender);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex; gap: 18px;
  align-items: flex-start;
}
.memo-mark {
  flex: none;
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--offwhite);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
  padding-left: 0.1em;
}
.memo-from {
  color: var(--slate);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 7px;
}
.memo-body p { font-size: 14.5px; line-height: 1.68; }
.memo-body p + p { margin-top: 10px; }
.memo-cta a { color: var(--mauve); font-weight: 500; }

.modules {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.module {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.module:hover {
  transform: translateY(-3px);
  border-color: var(--lavender);
  box-shadow: 0 14px 34px rgba(40, 49, 71, 0.12);
}
.module-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.module-n {
  width: 34px; height: 34px;
  background: var(--navy);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.pill {
  background: var(--sand);
  color: var(--slate);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.module h3 { color: var(--navy); font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.module p { font-size: 13px; line-height: 1.62; }

.panel {
  margin-top: 30px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
}
.panel h2 { color: var(--navy); font-size: 19px; font-weight: 600; }
.panel-sub { color: var(--slate); font-size: 12.5px; margin: 6px 0 16px; }
.panel .hint { margin-top: 12px; }
.empty { color: var(--slate); font-size: 13px; margin: 10px 0 16px; }

.table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 13px; }
.table th {
  background: var(--navy);
  color: #FFFFFF;
  text-align: left;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 9px 12px;
}
.table td { padding: 10px 12px; border-bottom: 1px solid #E7E7E3; }
.table tbody tr:nth-child(even) { background: var(--offwhite); }

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.row .text-input { max-width: 320px; }

.pagefoot {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 16px clamp(18px, 4vw, 42px) 26px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid #E2E2DE;
  color: var(--slate);
  font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ------------------------------ home stats ------------------------------ */
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.stat {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--slate);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: border-color 0.15s, transform 0.15s;
}
.stat:hover { border-color: var(--lavender); transform: translateY(-1px); }
.stat strong { color: var(--navy); font-size: 14px; font-weight: 600; margin-right: 5px; }
.stat-alert { border-color: var(--mauve); }
.stat-alert strong { color: var(--mauve); }

.module-live { text-decoration: none; display: block; color: inherit; }
.module-live h3::after { content: ' \2192'; color: var(--lavender); }
.module-future { opacity: 0.72; }
.pill-live { background: var(--navy); color: #FFFFFF; }
.memo-body code { font-size: 13px; background: #FFFFFF; border-radius: 5px; padding: 1px 6px; color: var(--navy); }

/* ---- home: needs you ---- */
.needs h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.needs-count {
  background: var(--mauve); color: #fff;
  border-radius: 999px; padding: 1px 9px;
  font-size: 12px; font-weight: 600;
}
.needs-list { display: flex; flex-direction: column; }
.needs-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 4px;
  border-top: 1px solid var(--sand);
  text-decoration: none; color: var(--darkgray);
  transition: background 0.12s;
}
.needs-row:first-child { border-top: none; }
.needs-row:hover { background: var(--offwhite); }
.needs-tag {
  flex: none; width: 74px;
  text-align: center;
  background: var(--sand); color: var(--slate);
  border-radius: 6px; padding: 4px 0;
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.needs-tag-yes { background: #3D6B76; color: #fff; }
.needs-tag-blocked { background: rgba(150, 96, 125, 0.18); color: var(--mauve); }
.needs-text { flex: 1; font-size: 14px; font-weight: 500; color: var(--navy); }
.needs-sub { display: block; color: var(--slate); font-size: 11px; font-weight: 400; margin-top: 2px; letter-spacing: 0.04em; }
.needs-kind {
  flex: none; color: var(--slate);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.needs-clear { border-left: 3px solid var(--teal); }
.needs-clear-text { color: var(--slate); font-size: 14px; line-height: 1.6; }

/* ---- home: today grid (brief + route) ---- */
.today-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.today-card {
  display: flex; flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
  text-decoration: none; color: inherit;
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.today-card:hover { transform: translateY(-2px); border-color: var(--lavender); box-shadow: 0 12px 30px rgba(40, 49, 71, 0.10); }
.today-brief { border-left: 3px solid var(--lavender); }
.today-route { border-left: 3px solid var(--teal); }
.today-eyebrow {
  color: var(--slate);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.today-badge { background: var(--sand); color: var(--slate); border-radius: 999px; padding: 1px 9px; font-size: 11px; letter-spacing: 0; }
.today-badge-alert { background: var(--mauve); color: #fff; }
.today-snippet { font-size: 14px; line-height: 1.62; color: var(--darkgray); }
.today-muted { color: var(--slate); }
.today-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.today-list li { font-size: 14px; color: var(--navy); }
.today-list strong { font-weight: 600; }
.today-org { color: var(--slate); font-size: 12px; margin-left: 7px; }
.today-note { display: block; color: var(--slate); font-size: 12.5px; font-weight: 400; margin-top: 2px; }
.today-more { margin-top: 16px; color: var(--mutedblue); font-size: 12.5px; font-weight: 600; }

/* ---- home: board focus ---- */
.focus-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.focus-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.focus-item {
  display: block;
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  transition: transform 0.14s, box-shadow 0.14s;
}
.focus-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(40, 49, 71, 0.10); }
.focus-item.status-active  { border-left-color: var(--teal); }
.focus-item.status-waiting { border-left-color: var(--steelblue); }
.focus-item.status-blocked { border-left-color: var(--mauve); }
.focus-item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.focus-entity { color: var(--slate); font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.focus-item h3 { color: var(--navy); font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.focus-next { color: var(--darkgray); font-size: 12.5px; line-height: 1.5; margin-top: 6px; }
.focus-updated { display: block; color: var(--slate); font-size: 10.5px; margin-top: 9px; letter-spacing: 0.04em; }

@media (max-width: 720px) {
  .today-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .needs-row { flex-wrap: wrap; gap: 8px 14px; }
  .needs-kind { width: 100%; padding-left: 88px; }
}

/* --------------------------------- board -------------------------------- */
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.toggle-link { font-size: 12px; color: var(--mutedblue); }

.board-group { margin-top: 30px; }
.board-entity {
  color: var(--navy);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding-bottom: 8px; margin-bottom: 12px;
  border-bottom: 2px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.board-count {
  background: var(--sand); color: var(--slate);
  border-radius: 999px; padding: 2px 9px;
  font-size: 10px; letter-spacing: 0;
}

.board-item {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.board-item.status-active  { border-left-color: var(--teal); }
.board-item.status-waiting { border-left-color: var(--steelblue); }
.board-item.status-blocked { border-left-color: var(--mauve); }
.board-item.status-done    { border-left-color: #C9C9C4; opacity: 0.75; }

.board-item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.board-item-head h3 { color: var(--navy); font-size: 15.5px; font-weight: 600; }

.status-pill {
  flex: none;
  border-radius: 999px; padding: 3px 11px;
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.status-pill-active  { background: rgba(132, 172, 182, 0.25); color: #3D6B76; }
.status-pill-waiting { background: rgba(105, 151, 175, 0.22); color: #3D6884; }
.status-pill-blocked { background: rgba(150, 96, 125, 0.18); color: var(--mauve); }
.status-pill-done    { background: var(--sand); color: var(--slate); }

.board-summary { font-size: 13.5px; line-height: 1.6; margin-top: 8px; }
.board-next {
  margin-top: 10px;
  background: var(--sand);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px; line-height: 1.55;
}
.board-next span {
  display: block;
  color: var(--slate);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 3px;
}

.board-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 12px;
  color: var(--slate); font-size: 11px;
}
.board-actions { display: flex; align-items: center; gap: 12px; }
.board-actions form { display: flex; align-items: center; gap: 6px; }

.status-select {
  font: inherit; font-size: 11.5px;
  color: var(--darkgray);
  border: 1px solid #D8D8D4; border-radius: 6px;
  padding: 4px 6px; background: #FFFFFF;
}
.btn-mini { padding: 5px 12px; font-size: 11px; border-radius: 6px; background: var(--navy); color: #fff; border: none; }
.btn-mini:hover { background: var(--deepnavy); }

/* --------------------------------- brief -------------------------------- */
/* Day Sheet (brief v3), same rules as scripts/brief.py SHEET_CSS; keep in sync */
.brief-sheet { margin-top: 6px; }
@page { size: Letter; margin: 0.45in 0.5in 0.45in 0.5in; }
.sheet { font-family: 'Montserrat','Avenir Next','Helvetica Neue',Arial,sans-serif; color:#4F4F4F; font-size:11.5pt; line-height:1.4; max-width:7.5in; margin:0 auto; }
.sheet * { box-sizing:border-box; margin:0; padding:0; }
.sheet .page { page-break-after: always; }
.sheet .page:last-child { page-break-after: auto; }
.sheet .head { display:flex; justify-content:space-between; align-items:flex-end; border-bottom:3px solid #283147; padding-bottom:8pt; margin-bottom:14pt; gap:12pt; }
.sheet .head .day { font-size:30pt; font-weight:700; color:#283147; letter-spacing:-0.5pt; line-height:1; white-space:nowrap; }
.sheet .head .day.p2 { font-size:20pt; }
.sheet .head .sub { font-size:9.5pt; color:#8A8F9C; text-transform:uppercase; letter-spacing:1.2pt; margin-top:5pt; }
.sheet .head .right { text-align:right; font-size:9.5pt; color:#8A8F9C; flex:none; }
.sheet .head .right b { color:#283147; font-size:11pt; display:block; }
.sheet .lab { font-size:9pt; font-weight:700; letter-spacing:1.6pt; text-transform:uppercase; color:#5D739A; margin:0 0 7pt; display:flex; align-items:center; gap:8pt; }
.sheet .lab::after { content:""; flex:1; height:1px; background:rgba(93,115,154,.3); }
.sheet .lab .cnt { background:#EDECE9; color:#283147; border-radius:10pt; padding:1pt 7pt; font-size:8.5pt; letter-spacing:0; text-transform:none; }
.sheet .top3 { display:flex; gap:10pt; margin-bottom:16pt; }
.sheet .t { flex:1; background:#F4F4F3; border-left:5px solid #283147; border-radius:4pt; padding:9pt 10pt 9pt 11pt; min-height:78pt; }
.sheet .t .n { font-size:22pt; font-weight:700; color:#283147; line-height:1; margin-bottom:5pt; }
.sheet .t .what { font-size:12pt; font-weight:600; color:#000E36; line-height:1.25; }
.sheet .t .why { font-size:9pt; color:#8A8F9C; margin-top:5pt; }
.sheet .t.a { border-left-color:#96607D; } .sheet .t.b { border-left-color:#5D739A; } .sheet .t.c { border-left-color:#84ACB6; }
.sheet .cols { display:flex; gap:18pt; }
.sheet .col { flex:1; min-width:0; }
.sheet .col.wide { flex:1.25; }
.sheet .ev { display:flex; gap:9pt; padding:4.5pt 0; border-bottom:1px solid rgba(93,115,154,.18); align-items:baseline; }
.sheet .ev .tm { width:46pt; flex:none; font-weight:700; color:#283147; font-size:10.5pt; }
.sheet .ev .ti { flex:1; color:#000E36; font-weight:600; }
.sheet .ev .pr { font-size:9pt; color:#8A8F9C; display:block; font-weight:400; }
.sheet .ev.block .ti, .sheet .ev.block .tm { color:#5D739A; font-weight:500; }
.sheet .ev.now { background:#FFF7E8; margin:0 -6pt; padding-left:6pt; padding-right:6pt; border-radius:3pt; }
.sheet .ev.flag .ti { color:#B8554C; }
.sheet .d { display:flex; gap:8pt; padding:6pt 0; border-bottom:1px solid rgba(93,115,154,.18); }
.sheet .d .box { width:12pt; height:12pt; border:1.5px solid #283147; border-radius:2pt; margin-top:2pt; flex:none; }
.sheet .d .q { color:#000E36; font-weight:600; }
.sheet .d .q small { display:block; font-weight:400; color:#8A8F9C; font-size:9pt; margin-top:1pt; }
.sheet .chips { display:flex; flex-wrap:wrap; gap:6pt; }
.sheet .chip { background:#EDECE9; border-radius:12pt; padding:3pt 9pt; font-size:9.5pt; color:#283147; }
.sheet .chip b { color:#000E36; }
.sheet .sys { margin-top:16pt; border-top:2px solid #EDECE9; padding-top:8pt; display:flex; gap:14pt; flex-wrap:wrap; font-size:9pt; color:#8A8F9C; }
.sheet .sys span::before { content:""; display:inline-block; width:7pt; height:7pt; border-radius:50%; margin-right:5pt; background:#4E9A6E; vertical-align:middle; }
.sheet .sys span.amb::before { background:#D98E2B; } .sheet .sys span.red::before { background:#B8554C; } .sheet .sys span.gray::before { background:#C9CCD3; }
.sheet .area { display:flex; gap:8pt; padding:4pt 0; border-bottom:1px solid rgba(93,115,154,.18); }
.sheet .area .dot { width:8pt; height:8pt; border-radius:50%; background:#4E9A6E; margin-top:5pt; flex:none; }
.sheet .area .dot.amb { background:#D98E2B; } .sheet .area .dot.red { background:#B8554C; } .sheet .area .dot.gray { background:#C9CCD3; }
.sheet .area .nm { width:78pt; font-weight:700; color:#283147; font-size:10.5pt; flex:none; }
.sheet .area .nx { flex:1; color:#000E36; font-size:10pt; line-height:1.3; }
.sheet .area .nx small { display:block; color:#8A8F9C; font-size:9pt; font-weight:400; }
.sheet .shipped { font-size:10pt; color:#4F4F4F; line-height:1.5; }
.sheet .tasks h4 { font-size:9.5pt; color:#283147; margin:8pt 0 3pt; text-transform:uppercase; letter-spacing:1pt; }
.sheet .tasks h4:first-of-type { margin-top:0; }
.sheet .tk { display:flex; gap:7pt; padding:2pt 0; font-size:10.5pt; color:#000E36; }
.sheet .tk .box { width:10pt; height:10pt; border:1.3px solid #5D739A; border-radius:2pt; margin-top:3pt; flex:none; }
.sheet .tk.due .box { border-color:#B8554C; }
.sheet .tk .when { color:#B8554C; font-weight:700; font-size:9pt; margin-left:4pt; }
.sheet .more { font-size:9pt; color:#8A8F9C; margin-top:3pt; }
@media screen and (max-width: 640px) {
  .sheet { font-size:15px; }
  .sheet .top3, .sheet .cols { flex-direction:column; }
  .sheet .head .day { font-size:26px; }
  .sheet .page { margin-bottom:28px; }
}
@media print { .sheet { max-width:none; } }

.brief-doc {
  margin-top: 26px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(22px, 4vw, 40px);
}
.brief-head {
  display: flex; gap: 16px; align-items: center;
  padding-bottom: 18px; margin-bottom: 22px;
  border-bottom: 2px solid var(--sand);
}
.brief-date { color: var(--navy); font-size: 17px; font-weight: 600; margin-top: 3px; }
.brief-body { font-size: 14.5px; line-height: 1.7; color: var(--darkgray); }
.brief-body h2 {
  color: var(--navy); font-size: 19px; font-weight: 600;
  margin: 26px 0 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--sand);
}
.brief-body h3 { color: var(--navy); font-size: 15.5px; font-weight: 600; margin: 20px 0 8px; }
.brief-body h4 {
  color: var(--slate); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin: 16px 0 6px;
}
.brief-body p { margin: 8px 0; }
.brief-body ul { margin: 8px 0 8px 20px; }
.brief-body li { margin: 5px 0; }
.brief-body a { color: var(--mutedblue); }
.brief-body strong { color: var(--ink); }
.brief-nav {
  display: flex; justify-content: space-between;
  margin-top: 16px;
  font-size: 12.5px;
}

/* ------------------------------- approvals ------------------------------ */
.approval {
  margin-top: 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 3px solid var(--lavender);
  border-radius: 12px;
  padding: 20px 22px;
}
.approval-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.approval-head h3 { color: var(--navy); font-size: 16px; font-weight: 600; }
.approval-body {
  margin-top: 10px;
  background: var(--offwhite);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13.5px; line-height: 1.65;
}
.approval-body p { margin: 6px 0; }
.approval-body ul { margin: 6px 0 6px 18px; }
.approval-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 14px;
  color: var(--slate); font-size: 11px;
}
.approval-actions { display: flex; gap: 10px; }
.btn-approve { background: #3D6B76; color: #FFFFFF; padding: 9px 22px; }
.btn-approve:hover { background: #2F5560; transform: translateY(-1px); }
.approval-actions .btn-danger { padding: 9px 22px; }

/* -------------------------------- messages ------------------------------ */
.thread { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; align-items: flex-end; }
.msg-kevin { justify-content: flex-end; }
.msg-mark {
  flex: none;
  width: 30px; height: 30px;
  background: var(--navy); color: var(--offwhite);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 500; letter-spacing: 0.08em;
}
.msg-bubble {
  max-width: min(560px, 82%);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px; line-height: 1.6;
}
.msg-alex .msg-bubble { background: var(--sand); border-bottom-left-radius: 4px; }
.msg-kevin .msg-bubble { background: var(--navy); color: #F4F4F3; border-bottom-right-radius: 4px; }
.msg-time { display: block; margin-top: 6px; font-size: 10px; opacity: 0.65; }

.composer {
  margin-top: 22px;
  display: flex; gap: 12px; align-items: flex-end;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.composer textarea {
  flex: 1;
  border: none; outline: none; resize: vertical;
  font: inherit; font-size: 14px; color: var(--ink);
  min-height: 60px;
  background: transparent;
}

@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; }
  .brand-text strong { letter-spacing: 0.18em; }
  .memo { flex-direction: column; }
  .board-meta { flex-direction: column; align-items: flex-start; }
  .composer { flex-direction: column; align-items: stretch; }
}

/* ---- the route (network module) ---- */
.route-org { font-weight: 400; opacity: 0.7; font-size: 0.85em; margin-left: 6px; }
.route-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pill-cold { background: #7A2E2E; color: #F4F4F3; border-color: #7A2E2E; }
.route-overdue { border-left: 3px solid #B84A3A; }
.route-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; margin-right: 6px; }
.route-notes { font-size: 12.5px; opacity: 0.8; }
.route-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.route-note { max-width: 180px; font-size: 12px; }
.route-date { max-width: 140px; font-size: 12px; }
.route-add { flex-wrap: wrap; }
.route-add .text-input { min-width: 140px; }
@media (max-width: 640px) {
  .route-form { width: 100%; }
  .route-note { max-width: none; flex: 1; }
  .board-actions { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ========================= sandwich menu (2026-07-22) ========================
   Replaces the topnav link row. Mechanics in menu.js match 3pillars.ai:
   fade via opacity and visibility, body scroll lock, aria state, focus
   handoff, closes on X, Escape, or any link click. */
.burger {
  width: 44px; height: 44px;
  border: 0; background: transparent;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 0; cursor: pointer;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--offwhite); border-radius: 2px; transition: background 0.15s; }
.burger:hover span { background: var(--lavender); }

.menu {
  position: fixed; inset: 0; z-index: 200;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(135, 132, 199, 0.20), transparent 60%),
    radial-gradient(900px 480px at -10% 100%, rgba(173, 132, 198, 0.14), transparent 55%),
    linear-gradient(165deg, var(--deepnavy) 0%, var(--navy) 55%, #2E3A58 100%);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  overflow-y: auto;
}
.menu.open { opacity: 1; visibility: visible; }
body.menu-locked { overflow: hidden; }

.menu-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 42px);
}
.menu-x {
  width: 44px; height: 44px;
  border: 0; background: transparent;
  color: var(--offwhite); font-size: 32px; line-height: 1; cursor: pointer;
}
.menu-x:hover { color: var(--lavender); }

.menu-body {
  width: min(1080px, 100%); margin: 0 auto;
  padding: 20px clamp(18px, 4vw, 42px) 70px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 34px 44px;
}
.menu-label {
  color: var(--teal);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(132, 172, 182, 0.35);
}
.menu-group a {
  display: flex; align-items: baseline; gap: 12px;
  color: var(--offwhite); text-decoration: none;
  font-size: clamp(17px, 2vw, 20px); font-weight: 500; letter-spacing: 0.01em;
  padding: 7px 0;
  transition: color 0.15s;
}
.menu-group a:hover { color: var(--lavender); }
.menu-group a small {
  font-size: 10px; font-weight: 600; color: rgba(244, 244, 243, 0.45);
  min-width: 20px; letter-spacing: 0.08em;
}
.menu-foot {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid rgba(244, 244, 243, 0.18);
  color: rgba(244, 244, 243, 0.55); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ===================== home flat rows (2026-07-22) ==========================
   In motion and the module directory flatten to one row per card. Overrides
   the card rules above; markup unchanged. */
.focus-list { display: flex; flex-direction: column; gap: 0; }
.focus-item {
  display: flex; align-items: center; gap: 14px;
  background: transparent;
  border: none; border-left: 3px solid var(--line);
  border-top: 1px solid var(--sand);
  border-radius: 0;
  padding: 11px 12px;
}
.focus-item:first-child { border-top: none; }
.focus-item:hover { transform: none; box-shadow: none; background: var(--offwhite); }
.focus-item.status-active  { border-left-color: var(--teal); }
.focus-item.status-waiting { border-left-color: var(--steelblue); }
.focus-item.status-blocked { border-left-color: var(--mauve); }
.focus-item-top { display: contents; }
.focus-entity { order: 0; flex: none; width: 92px; margin: 0; }
.focus-item h3 { order: 1; flex: none; max-width: 34%; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.focus-next { order: 2; flex: 1; min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.focus-item .status-pill { order: 3; flex: none; }
.focus-updated { order: 4; flex: none; margin: 0; }

.modules {
  display: flex; flex-direction: column; gap: 0;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.module {
  display: flex; align-items: center; gap: 14px;
  border: none; border-top: 1px solid var(--sand);
  border-radius: 0;
  padding: 12px 18px;
}
.module:first-child { border-top: none; }
.module:hover { transform: none; box-shadow: none; border-color: var(--sand); background: var(--offwhite); }
.module-top { display: contents; }
.module-n { order: 0; width: 28px; height: 28px; font-size: 11px; }
.module h3 { order: 1; flex: none; margin: 0; font-size: 14.5px; }
.module p { order: 2; flex: 1; min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.module .pill { order: 3; flex: none; }

@media (max-width: 860px) {
  .focus-item, .module { flex-wrap: wrap; row-gap: 4px; }
  .focus-item h3 { max-width: none; }
  .focus-next, .module p { flex: 1 1 100%; white-space: normal; }
}
