:root {
  --field: #163c2c;
  --field-deep: #0f2e22;
  --field-bright: #215a40;
  --chalk: #f8f7f1;
  --paper: #f3f1e9;
  --paper-strong: #fffefa;
  --ink: #17231d;
  --ink-soft: #5c675f;
  --ink-faint: #889189;
  --line: #dfe1da;
  --line-dark: rgba(255, 255, 255, .14);
  --amber: #d99636;
  --amber-soft: #f5e4c5;
  --mint: #b9d9c8;
  --danger: #a94a3d;
  --shadow: 0 18px 45px rgba(27, 43, 34, .08);
  --radius: 18px;
  --sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.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: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: var(--chalk);
  color: var(--field);
  border-radius: 8px;
}
.skip-link:focus { transform: none; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 254px minmax(0, 1fr); }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: 254px;
  padding: 28px 18px 18px;
  overflow-y: auto;
  color: rgba(255,255,255,.75);
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(255,255,255,.035) 50%, transparent calc(50% + .5px)),
    var(--field-deep);
  border-right: 1px solid rgba(255,255,255,.08);
}
.sidebar::after {
  content: "";
  position: absolute;
  top: 49%;
  left: 50%;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255,255,255,.035);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 44px; color: white; text-decoration: none; }
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 11px;
  background: rgba(255,255,255,.06);
}
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; position: absolute; background: var(--chalk); opacity: .92; }
.brand-mark::before { width: 19px; height: 1px; }
.brand-mark::after { width: 1px; height: 19px; }
.brand-mark span { width: 8px; height: 8px; border: 1px solid var(--chalk); border-radius: 50%; background: transparent; }
.brand-type { display: flex; flex-direction: column; line-height: 1.1; }
.brand-type strong { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; }
.brand-type small { margin-top: 4px; color: rgba(255,255,255,.48); font: 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.nav-label { margin: 0 12px 9px; color: rgba(255,255,255,.35); font: 10px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.nav-list { display: grid; gap: 4px; }
.nav-item {
  display: grid;
  grid-template-columns: 21px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  color: rgba(255,255,255,.63);
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: .2s ease;
}
.nav-item svg { width: 19px; }
.nav-item:hover { color: white; background: rgba(255,255,255,.05); }
.nav-item.active { color: white; background: rgba(255,255,255,.1); box-shadow: inset 3px 0 var(--amber); }
.nav-count { display: grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px; color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); border-radius: 20px; font: 10px/1 var(--mono); }
.nav-count.warm { color: #fff1d8; background: rgba(217,150,54,.24); }
.sidebar-spacer { flex: 1; min-height: 28px; }
.view-switcher { margin-bottom: 14px; }
.view-button {
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  cursor: pointer;
  text-align: left;
}
.view-button:hover { background: rgba(255,255,255,.08); }
.view-button > span:nth-child(2), .profile-mini > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.view-button strong, .profile-mini strong { overflow: hidden; color: white; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.view-button small, .profile-mini small { overflow: hidden; margin-top: 2px; color: rgba(255,255,255,.42); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.view-button svg { width: 16px; color: rgba(255,255,255,.35); }
.profile-mini { display: grid; grid-template-columns: 38px 1fr 8px; align-items: center; gap: 10px; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.08); }
.avatar { display: grid; place-items: center; flex: none; border-radius: 50%; font: 10px/1 var(--mono); font-weight: 500; }
.coach-avatar { width: 34px; height: 34px; color: var(--field-deep); background: var(--amber-soft); }
.client-avatar { width: 38px; height: 38px; color: white; background: var(--field-bright); border: 1px solid rgba(255,255,255,.12); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #69c58f; box-shadow: 0 0 0 3px rgba(105,197,143,.12); }

.workspace { grid-column: 2; min-width: 0; max-width: 100%; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 0 clamp(22px, 4vw, 58px);
  background: rgba(243,241,233,.9);
  border-bottom: 1px solid rgba(28,45,35,.08);
  backdrop-filter: blur(18px);
}
.mobile-menu { display: none; width: 40px; height: 40px; place-items: center; color: var(--ink); background: transparent; border: 0; cursor: pointer; }
.mobile-menu svg { width: 22px; }
.search-wrap { position: relative; display: flex; align-items: center; min-width: 0; width: min(380px, 42vw); }
.search-wrap > svg { position: absolute; left: 13px; width: 17px; color: var(--ink-faint); pointer-events: none; }
.search-wrap input {
  width: 100%;
  height: 40px;
  padding: 0 52px 0 40px;
  color: var(--ink);
  background: rgba(255,255,255,.65);
  border: 1px solid transparent;
  border-radius: 10px;
  outline: 0;
}
.search-wrap input:focus { background: white; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(33,90,64,.08); }
.search-wrap kbd { position: absolute; right: 10px; padding: 3px 6px; color: var(--ink-faint); background: var(--paper); border: 1px solid var(--line); border-radius: 5px; font: 10px/1 var(--mono); }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; width: 100%; max-height: 360px; padding: 7px; overflow-y: auto; background: var(--paper-strong); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.search-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px; color: var(--ink); background: none; border: 0; border-radius: 8px; cursor: pointer; text-align: left; }
.search-result:hover, .search-result:focus { background: var(--paper); outline: none; }
.search-result span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result small { flex: none; color: var(--ink-faint); font: 9px/1 var(--mono); text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.auth-button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 10px; color: var(--ink-soft); background: rgba(255,255,255,.58); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 9px; white-space: nowrap; }
.auth-button:hover { color: var(--field); background: white; }
.connection-dot { width: 6px; height: 6px; background: var(--ink-faint); border-radius: 50%; }
.auth-button.connected .connection-dot { background: #63a97e; box-shadow: 0 0 0 3px rgba(99,169,126,.12); }
.save-state { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-faint); font-size: 10px; }
.save-state span { width: 6px; height: 6px; border-radius: 50%; background: #63a97e; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 700; transition: .2s ease; }
.button svg { width: 16px; }
.button-primary { color: white; background: var(--field); box-shadow: 0 8px 20px rgba(22,60,44,.14); }
.button-primary:hover { background: var(--field-bright); transform: translateY(-1px); }
.button-secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button-secondary:hover { background: var(--paper); }
.button-danger { color: var(--danger); background: #fff8f6; border-color: #eadbd6; }
.button-danger:hover { color: white; background: var(--danger); border-color: var(--danger); }

main { width: min(1280px, 100%); min-width: 0; margin: 0 auto; padding: 0 clamp(22px, 4vw, 58px) 80px; }
.page { display: none; min-width: 0; max-width: 100%; animation: page-in .35s ease both; }
.page.active { display: block; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 47px 0 32px; }
.page-heading h1 { margin: 3px 0 5px; font-family: var(--serif); font-size: clamp(38px, 5vw, 56px); font-weight: 600; line-height: 1; letter-spacing: -.035em; }
.date-line, .eyebrow { margin: 0; color: var(--field-bright); font: 10px/1.2 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.heading-copy { margin: 0; color: var(--ink-soft); font-size: 13px; }
.section-notes { margin: -12px 0 24px; background: rgba(255,254,250,.72); border: 1px solid var(--line); border-radius: 13px; }
.section-notes[open] { background: var(--paper-strong); box-shadow: 0 12px 30px rgba(27,43,34,.05); }
.section-notes summary { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 58px; padding: 0 16px; cursor: pointer; list-style: none; }
.section-notes summary::-webkit-details-marker { display: none; }
.section-notes summary:focus-visible { outline: 3px solid rgba(33,90,64,.15); outline-offset: 2px; border-radius: inherit; }
.section-note-mark { display: grid; place-items: center; width: 30px; height: 30px; color: var(--field); background: #e7f0ea; border-radius: 8px; font: 10px/1 var(--mono); }
.section-note-heading { display: flex; min-width: 0; flex-direction: column; }
.section-note-heading strong { font-size: 11px; }
.section-note-heading small { overflow: hidden; color: var(--ink-faint); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.section-note-chevron { width: 16px; color: var(--ink-faint); transition: transform .2s ease; }
.section-notes[open] .section-note-chevron { transform: rotate(180deg); }
.section-note-editor { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.section-note-editor textarea { width: 100%; min-height: 118px; margin-top: 15px; padding: 13px 14px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 9px; outline: 0; resize: vertical; }
.section-note-editor textarea:focus { border-color: var(--field-bright); box-shadow: 0 0 0 3px rgba(33,90,64,.08); }
.section-note-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.section-note-actions span { color: var(--ink-faint); font-size: 8px; }
.section-note-actions .button { min-height: 34px; font-size: 10px; }
.section-note-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.today-heading { align-items: center; padding-top: 42px; }
.week-marker { display: flex; gap: 7px; }
.day { display: grid; place-items: center; width: 31px; height: 31px; color: var(--ink-faint); border: 1px solid var(--line); border-radius: 50%; font: 10px/1 var(--mono); }
.day.complete { color: var(--field); background: var(--mint); border-color: var(--mint); }
.day.current { color: white; background: var(--field); border-color: var(--field); box-shadow: 0 0 0 4px rgba(22,60,44,.08); }

.method-creed {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  margin: 0 0 18px;
  padding: 20px 25px;
  background: var(--paper-strong);
  border: 1px solid rgba(23,35,29,.09);
  border-left: 4px solid var(--amber);
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(27,43,34,.05);
}
.creed-label { display: flex; align-items: center; gap: 11px; }
.creed-mark { display: grid; place-items: center; width: 37px; height: 37px; flex: none; color: white; background: var(--field); border-radius: 50%; font: 500 14px/1 var(--serif); }
.creed-label > span:last-child { display: flex; flex-direction: column; }
.creed-label strong { font-family: var(--serif); font-size: 16px; line-height: 1.05; }
.creed-label small { margin-top: 4px; color: var(--ink-faint); font: 8px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.method-creed blockquote { margin: 0; padding-left: 26px; color: var(--ink); border-left: 1px solid var(--line); font-family: var(--serif); font-size: clamp(25px, 3vw, 36px); font-weight: 600; line-height: 1.05; letter-spacing: -.025em; }
.method-creed blockquote em { color: var(--field-bright); font-weight: 500; }

.mission-card { position: relative; padding: 27px 31px 26px; overflow: hidden; color: white; background: var(--field); border-radius: 20px; box-shadow: 0 22px 46px rgba(22,60,44,.18); }
.pitch-lines::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(90deg, transparent 49.92%, rgba(255,255,255,.09) 50%, transparent 50.08%),
    radial-gradient(circle at 50% 50%, transparent 0 58px, rgba(255,255,255,.08) 59px 60px, transparent 61px),
    linear-gradient(120deg, rgba(255,255,255,.045), transparent 40%);
  pointer-events: none;
}
.mission-kicker { position: relative; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.66); font: 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.live-dot { width: 7px; height: 7px; background: var(--amber); border-radius: 50%; box-shadow: 0 0 0 5px rgba(217,150,54,.12); }
.mission-kicker .icon-button { margin-left: auto; }
.mission-text { position: relative; max-width: 820px; margin: 22px 0 25px; font-family: var(--serif); font-size: clamp(26px, 3.5vw, 40px); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; }
.mission-text > span { display: block; }
.mission-practice { margin-top: 10px; color: #f2c77d; font-family: var(--sans); font-size: clamp(15px, 1.55vw, 19px); font-weight: 700; line-height: 1.2; letter-spacing: .01em; }
.mission-meta { position: relative; display: flex; flex-wrap: wrap; gap: 12px 28px; color: rgba(255,255,255,.56); font-size: 10px; }
.mission-meta span { display: flex; align-items: center; gap: 7px; }
.mission-meta svg { width: 15px; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.icon-button:hover { color: var(--field); background: var(--paper); }
.icon-button svg { width: 16px; }
.icon-button.light { color: rgba(255,255,255,.65); border-color: rgba(255,255,255,.18); }
.icon-button.light:hover { color: white; background: rgba(255,255,255,.08); }
.mission-empty { display: flex; align-items: center; gap: 13px; min-height: 78px; padding: 15px 18px; color: var(--ink-soft); background: rgba(255,254,250,.72); border: 1px dashed #cbd1cb; border-radius: 14px; }
.mission-empty-mark { display: grid; width: 38px; height: 38px; flex: none; place-items: center; color: var(--field); background: var(--mint); border-radius: 50%; font: 14px/1 var(--serif); }
.mission-empty > div { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.mission-empty strong { color: var(--ink); font-size: 12px; }
.mission-empty small { margin-top: 2px; color: var(--ink-faint); font-size: 9px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr); gap: 18px; min-width: 0; margin-top: 18px; }
.dashboard-grid.single-panel { grid-template-columns: 1fr; }
.dashboard-grid > *, .panel, .mission-card { min-width: 0; max-width: 100%; }
.panel, .goal-card, .opportunity-card, .task-column, .video-card, .resource-group { background: var(--paper-strong); border: 1px solid rgba(23,35,29,.09); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(255,255,255,.8); }
.panel { padding: 24px; }
.panel-header, .section-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-header { margin-bottom: 17px; }
.panel-header h2, .section-header h2 { margin: 5px 0 0; font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.text-link { color: var(--ink-soft); font-size: 11px; font-weight: 600; text-decoration: none; }
.text-link:hover { color: var(--field); }
.text-link span { margin-left: 4px; }
.trend { padding: 5px 8px; color: var(--field-bright); background: #e3eee7; border-radius: 20px; font: 9px/1 var(--mono); }
.task-list { display: grid; }
.task-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto 30px; align-items: center; gap: 9px; min-height: 52px; border-top: 1px solid var(--line); }
.task-row:first-child { border-top: 0; }
.task-check { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; color: transparent; background: transparent; border: 1px solid #c7ccc7; border-radius: 6px; cursor: pointer; }
.task-check svg { width: 13px; stroke-width: 2.5; }
.task-check:hover { border-color: var(--field); }
.task-row.done .task-check { color: white; background: var(--field); border-color: var(--field); }
.task-row.done .task-title { color: var(--ink-faint); text-decoration: line-through; }
.task-title { min-width: 0; font-size: 12px; font-weight: 600; }
.task-owner { display: flex; align-items: center; gap: 7px; color: var(--ink-faint); font-size: 9px; }
.owner-dot { width: 22px; height: 22px; font-size: 7px; }
.item-delete { display: grid; width: 30px; height: 30px; flex: none; place-items: center; padding: 0; color: #95685f; background: transparent; border: 1px solid #eadbd6; border-radius: 7px; cursor: pointer; transition: .18s ease; }
.item-delete:hover, .item-delete:focus-visible { color: white; background: var(--danger); border-color: var(--danger); outline: none; transform: translateY(-1px); }
.item-delete:focus-visible { box-shadow: 0 0 0 3px rgba(169,74,61,.16); }
.item-delete svg { width: 14px; }
.item-delete:disabled { cursor: wait; opacity: .5; transform: none; }
.inline-add { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 7px; margin-top: 8px; padding: 10px 11px; color: var(--ink-faint); background: var(--paper); border: 1px dashed #cfd3cd; border-radius: 10px; }
.inline-add input { width: 100%; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 11px; }
.inline-add button { color: var(--field); background: transparent; border: 0; cursor: pointer; font-size: 10px; font-weight: 700; }
.pulse-score { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 15px; padding: 7px 0 20px; }
.score-ring { --size: 68px; position: relative; display: grid; grid-template-columns: auto auto; place-content: center; width: var(--size); height: var(--size); border-radius: 50%; background: conic-gradient(var(--field) calc(var(--progress) * 1%), #e5e7e1 0); }
.score-ring::before { content: ""; position: absolute; inset: 6px; background: var(--paper-strong); border-radius: 50%; }
.score-ring strong, .score-ring span { position: relative; z-index: 1; line-height: 1; }
.score-ring strong { font: 23px/1 var(--serif); }
.score-ring span { align-self: end; margin-bottom: 3px; color: var(--ink-faint); font-size: 8px; }
.pulse-score > div:last-child strong { font-family: var(--serif); font-size: 17px; }
.pulse-score p { margin: 3px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.metric-list { display: grid; gap: 15px; }
.metric-list > div { position: relative; display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; color: var(--ink-soft); font-size: 9px; }
.metric-list strong { color: var(--ink); font: 11px/1 var(--mono); }
.metric-list small { color: var(--ink-faint); }
.metric-list i { position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; overflow: hidden; background: #e9ebe6; border-radius: 3px; }
.metric-list i::after { content: ""; display: block; width: var(--width); height: 100%; background: var(--field-bright); border-radius: inherit; }

.section-block { padding-top: 43px; }
.section-header { margin-bottom: 18px; }
.quick-links-block { padding-top: 28px; }
.quick-link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.quick-link { display: grid; grid-template-columns: 34px minmax(0, 1fr) 15px; align-items: center; gap: 10px; min-height: 70px; padding: 12px; background: var(--paper-strong); border: 1px solid rgba(23,35,29,.09); border-radius: 12px; text-decoration: none; transition: .2s ease; }
.quick-link:hover { transform: translateY(-2px); border-color: var(--mint); box-shadow: 0 10px 24px rgba(27,43,34,.06); }
.quick-link-copy { display: flex; min-width: 0; flex-direction: column; }
.quick-link-copy strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.quick-link-copy small { overflow: hidden; margin-top: 2px; color: var(--ink-faint); font-size: 7px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.quick-link > svg { width: 13px; color: var(--ink-faint); }
.goal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.goal-card { display: flex; flex-direction: column; min-height: 260px; padding: 22px; transition: .2s ease; }
.goal-card:hover, .video-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.goal-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.goal-card-actions { display: flex; align-items: center; gap: 7px; }
.goal-number { color: var(--field-bright); font: 10px/1 var(--mono); }
.goal-status { padding: 5px 8px; color: var(--field); background: #e7f0ea; border-radius: 20px; font: 8px/1 var(--mono); text-transform: uppercase; }
.goal-card h3 { margin: 24px 0 7px; font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
.goal-card p { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.goal-progress { margin-top: auto; padding-top: 24px; }
.goal-progress div { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--ink-faint); font: 9px/1 var(--mono); }
.goal-progress strong { color: var(--ink); font-weight: 500; }
.goal-progress i { display: block; height: 5px; overflow: hidden; background: #e9ebe6; border-radius: 5px; }
.goal-progress i::after { content: ""; display: block; width: var(--progress); height: 100%; background: var(--field-bright); border-radius: inherit; }
.goal-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.goal-links a { padding: 5px 8px; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; font-size: 8px; text-decoration: none; }
.goal-links a:hover { color: var(--field); border-color: var(--mint); }
.goal-grid.compact .goal-card { min-height: 225px; }

.opportunity-list { display: grid; gap: 10px; }
.opportunity-card { display: grid; grid-template-columns: minmax(180px, 1.1fr) 150px minmax(220px, 1.4fr) auto; align-items: center; gap: 20px; padding: 17px 19px; }
.opportunity-card h3 { margin: 0 0 3px; font-family: var(--serif); font-size: 17px; }
.opportunity-card p { margin: 0; color: var(--ink-faint); font-size: 9px; }
.stage-pill { display: inline-flex; align-items: center; gap: 7px; width: max-content; padding: 6px 9px; color: var(--ink-soft); background: var(--paper); border-radius: 20px; font: 8px/1 var(--mono); }
.stage-pill::before { content: ""; width: 6px; height: 6px; background: var(--amber); border-radius: 50%; }
.stage-pill.discovery::before { background: #63a97e; }
.stage-pill.warm-path::before { background: #778bd2; }
.next-step { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; }
.date-tile { display: grid; place-items: center; width: 38px; height: 40px; color: var(--field); background: #e7f0ea; border-radius: 8px; font: 13px/1 var(--mono); }
.date-tile small { color: var(--ink-faint); font-size: 7px; text-transform: uppercase; }
.next-step strong { display: block; overflow: hidden; margin-bottom: 2px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.next-step span { color: var(--ink-faint); font-size: 8px; }
.notes-button { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 9px; }
.notes-button:hover { color: var(--field); border-color: var(--mint); }
.notes-button svg { width: 14px; }
.note-indicator { position: absolute; top: -3px; right: -3px; width: 7px; height: 7px; background: var(--amber); border: 2px solid var(--paper-strong); border-radius: 50%; }
.opportunity-actions { display: flex; align-items: center; gap: 7px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
.filter-chip { padding: 8px 12px; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 20px; cursor: pointer; font-size: 9px; }
.filter-chip:hover, .filter-chip.active { color: white; background: var(--field); border-color: var(--field); }

.task-board { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 17px; }
.task-column { padding: 22px; }
.task-column-header { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.task-column-header .avatar { width: 36px; height: 36px; }
.task-column-header div:nth-child(2) { flex: 1; }
.task-column-header h2 { margin: 0; font-family: var(--serif); font-size: 20px; }
.task-column-header p { margin: 2px 0 0; color: var(--ink-faint); font-size: 9px; }
.task-column-header .count { color: var(--ink-faint); font: 10px/1 var(--mono); }
.task-column .task-list { margin-top: 5px; }
.task-column .task-row { min-height: 58px; }
.task-due { color: var(--ink-faint); font-size: 8px; }
.task-due.overdue { color: var(--danger); }

.recorder-card { display: grid; grid-template-columns: 1fr minmax(320px, .75fr); gap: 50px; padding: 35px; overflow: hidden; color: white; background: var(--field); border-radius: 20px; box-shadow: 0 22px 46px rgba(22,60,44,.18); }
.recorder-copy, .recorder-control { position: relative; z-index: 1; }
.light-eyebrow { color: #a9cdb9; }
.recorder-copy h2 { margin: 14px 0 10px; font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); font-weight: 500; line-height: .98; letter-spacing: -.03em; }
.recorder-copy > p:last-child { max-width: 47ch; margin: 0; color: rgba(255,255,255,.58); font-size: 10px; }
.recorder-control { align-self: center; padding: 19px; background: rgba(8,30,21,.38); border: 1px solid rgba(255,255,255,.12); border-radius: 15px; }
.recorder-title-field { display: block; margin-bottom: 7px; color: rgba(255,255,255,.52); font: 8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.recorder-control input { width: 100%; padding: 10px 11px; color: white; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: 8px; outline: 0; }
.recorder-control input::placeholder { color: rgba(255,255,255,.35); }
.recorder-control input:focus { border-color: rgba(242,199,125,.65); box-shadow: 0 0 0 3px rgba(242,199,125,.08); }
.recording-status { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 8px; margin: 16px 0; color: rgba(255,255,255,.62); font-size: 9px; }
.recording-status > span { width: 7px; height: 7px; background: #799387; border-radius: 50%; }
.recording-status > span.live { background: #e25d4b; box-shadow: 0 0 0 5px rgba(226,93,75,.12); animation: record-pulse 1.4s infinite; }
.recording-status time { font: 10px/1 var(--mono); }
@keyframes record-pulse { 50% { box-shadow: 0 0 0 8px rgba(226,93,75,0); } }
.recorder-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.record-button, .stop-button { min-height: 40px; border-radius: 8px; cursor: pointer; font-size: 10px; font-weight: 700; }
.record-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--field-deep); background: var(--amber-soft); border: 0; }
.record-button span { width: 8px; height: 8px; background: #c34f3e; border-radius: 50%; }
.stop-button { color: white; background: transparent; border: 1px solid rgba(255,255,255,.18); }
.stop-button:disabled, .record-button:disabled { cursor: not-allowed; opacity: .42; }
.voice-section-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 38px 0 16px; }
.voice-section-header h2 { margin: 5px 0 0; font-family: var(--serif); font-size: 27px; line-height: 1; }
.voice-section-header > span { color: var(--ink-faint); font-size: 8px; }
.voice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.voice-card { padding: 19px; background: var(--paper-strong); border: 1px solid rgba(23,35,29,.09); border-radius: 15px; }
.voice-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.voice-card-actions { display: flex; align-items: center; gap: 7px; }
.voice-card h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 19px; line-height: 1.1; }
.voice-card p { margin: 0; color: var(--ink-faint); font-size: 8px; }
.voice-card audio { width: 100%; height: 36px; margin-top: 16px; }
.voice-local { padding: 4px 6px; color: #7b6747; background: #fbf3e5; border-radius: 5px; font: 7px/1 var(--mono); text-transform: uppercase; }

.video-upload-card { position: relative; display: grid; grid-template-columns: 1fr minmax(360px, .8fr); gap: 52px; padding: 36px; overflow: hidden; color: white; background: var(--field); border-radius: 20px; box-shadow: 0 22px 46px rgba(22,60,44,.18); }
.video-upload-copy, .video-upload-form { position: relative; z-index: 1; }
.video-upload-copy h2 { margin: 14px 0 10px; font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); font-weight: 500; line-height: .98; letter-spacing: -.03em; }
.video-upload-copy > p:last-child { max-width: 48ch; margin: 0; color: rgba(255,255,255,.6); font-size: 10px; }
.video-upload-form { align-self: center; padding: 19px; background: rgba(8,30,21,.38); border: 1px solid rgba(255,255,255,.12); border-radius: 15px; }
.video-upload-form > input { width: 100%; padding: 10px 11px; color: white; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: 8px; outline: 0; }
.video-upload-form > input::placeholder { color: rgba(255,255,255,.35); }
.video-upload-form > input:focus { border-color: rgba(242,199,125,.65); box-shadow: 0 0 0 3px rgba(242,199,125,.08); }
.video-dropzone { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 12px; padding: 13px; color: rgba(255,255,255,.74); background: rgba(255,255,255,.055); border: 1px dashed rgba(255,255,255,.23); border-radius: 10px; cursor: pointer; transition: .2s ease; }
.video-dropzone:hover, .video-dropzone.dragging { background: rgba(255,255,255,.09); border-color: rgba(242,199,125,.7); }
.video-dropzone input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.video-drop-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--field-deep); background: var(--amber-soft); border-radius: 10px; font: 22px/1 var(--serif); }
.video-dropzone > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.video-dropzone strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.video-dropzone small { margin-top: 3px; color: rgba(255,255,255,.43); font-size: 8px; }
.upload-progress { margin-top: 13px; }
.upload-progress > div { display: flex; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.66); font-size: 8px; }
.upload-progress > div span { font: 9px/1 var(--mono); }
.upload-progress > i { display: block; height: 5px; margin-top: 7px; overflow: hidden; background: rgba(255,255,255,.12); border-radius: 5px; }
.upload-progress > i span { display: block; width: 0; height: 100%; background: var(--amber-soft); border-radius: inherit; transition: width .2s ease; }
.button-light { color: var(--field-deep); background: var(--amber-soft); border: 0; }
.button-light:hover { background: white; transform: translateY(-1px); }
.video-upload-button { width: 100%; margin-top: 13px; }
.video-upload-button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.video-upload-status { margin: 9px 0 0; color: rgba(255,255,255,.46); font-size: 8px; text-align: center; }
.video-file-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.video-file-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 18px; background: var(--paper-strong); border: 1px solid rgba(23,35,29,.09); border-radius: 15px; }
.video-file-icon { display: grid; place-items: center; width: 48px; height: 54px; color: var(--field); background: #e7f0ea; border-radius: 10px; font: 9px/1 var(--mono); }
.video-file-body { min-width: 0; }
.video-file-body h3 { overflow: hidden; margin: 0 0 3px; font-family: var(--serif); font-size: 19px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.video-file-body > p { overflow: hidden; margin: 0; color: var(--ink-faint); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.video-file-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.video-download-button, .video-delete-button { min-height: 32px; padding: 0 11px; border-radius: 7px; cursor: pointer; font-size: 9px; font-weight: 700; }
.video-download-button { color: white; background: var(--field); border: 1px solid var(--field); }
.video-delete-button { color: var(--danger); background: transparent; border: 1px solid var(--line); }
.video-download-button:disabled, .video-delete-button:disabled { cursor: wait; opacity: .55; }

.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.video-card { position: relative; overflow: hidden; transition: .2s ease; }
.video-card-delete { position: absolute; top: 10px; left: 10px; z-index: 3; color: #7e463d; background: rgba(255,254,250,.93); border-color: rgba(255,255,255,.8); box-shadow: 0 5px 15px rgba(8,23,17,.16); }
.video-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; color: white; background: var(--field); text-decoration: none; }
.video-thumb::before { content: ""; position: absolute; inset: 0; background: var(--video-image, linear-gradient(135deg, #173d2d, #347052)); background-position: center; background-size: cover; filter: saturate(.7); }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(8,23,17,.55)); }
.play-button { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; color: var(--field); background: rgba(255,255,255,.93); border-radius: 50%; box-shadow: 0 8px 25px rgba(0,0,0,.18); }
.play-button svg { width: 18px; margin-left: 2px; fill: currentColor; stroke: none; }
.video-duration { position: absolute; z-index: 2; right: 10px; bottom: 9px; padding: 4px 6px; color: white; background: rgba(7,17,12,.72); border-radius: 4px; font: 8px/1 var(--mono); }
.video-copy { padding: 17px; }
.video-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--field-bright); font: 8px/1 var(--mono); text-transform: uppercase; }
.video-meta span:last-child { color: var(--ink-faint); }
.video-card h3 { margin: 11px 0 6px; font-family: var(--serif); font-size: 19px; line-height: 1.12; }
.video-card p { margin: 0; color: var(--ink-soft); font-size: 9px; line-height: 1.5; }

.directory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.directory-search { position: relative; display: flex; align-items: center; width: min(420px, 100%); }
.directory-search svg { position: absolute; left: 12px; width: 16px; color: var(--ink-faint); }
.directory-search input { width: 100%; height: 42px; padding: 0 14px 0 38px; color: var(--ink); background: var(--paper-strong); border: 1px solid var(--line); border-radius: 9px; outline: none; }
.directory-search input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(33,90,64,.08); }
.directory-toolbar > span { color: var(--ink-faint); font: 9px/1 var(--mono); }
.directory-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.resource-group { overflow: hidden; }
.resource-group-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.resource-group-header h2 { margin: 0; font-family: var(--serif); font-size: 19px; }
.resource-group-header span { color: var(--ink-faint); font: 9px/1 var(--mono); }
.resource-list { display: grid; }
.resource-entry { display: grid; grid-template-columns: minmax(0, 1fr) 30px; align-items: center; gap: 8px; padding-right: 12px; border-top: 1px solid var(--line); }
.resource-entry:first-child { border-top: 0; }
.resource-link { display: grid; grid-template-columns: 35px 1fr 17px; align-items: center; gap: 11px; min-height: 65px; padding: 10px 0 10px 19px; text-decoration: none; }
.resource-link:hover { background: #f7f6f0; }
.resource-icon { display: grid; place-items: center; width: 35px; height: 35px; color: var(--field); background: #e7f0ea; border-radius: 8px; font: 9px/1 var(--mono); }
.resource-link strong { display: block; overflow: hidden; margin-bottom: 2px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.resource-link small { display: block; overflow: hidden; color: var(--ink-faint); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.resource-link > svg { width: 14px; color: var(--ink-faint); }
.quick-link-item { position: relative; min-width: 0; }
.quick-link-item .quick-link { height: 100%; padding-right: 46px; }
.quick-link-delete { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); }
.quick-link-delete:hover, .quick-link-delete:focus-visible { transform: translateY(calc(-50% - 1px)); }
.empty-state { grid-column: 1 / -1; padding: 48px; color: var(--ink-soft); background: var(--paper-strong); border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); font-family: var(--serif); font-size: 20px; }

.dialog { width: min(620px, calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 0; color: var(--ink); background: var(--paper-strong); border: 0; border-radius: 20px; box-shadow: 0 28px 90px rgba(9,24,17,.28); }
.dialog::backdrop { background: rgba(8,25,17,.65); backdrop-filter: blur(5px); }
.dialog-shell { padding: 25px; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.dialog-header h2 { margin: 5px 0 0; font-family: var(--serif); font-size: 29px; line-height: 1; }
.type-picker { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.type-picker input { position: absolute; opacity: 0; pointer-events: none; }
.type-picker span { display: block; padding: 8px 11px; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: 20px; cursor: pointer; font-size: 9px; }
.type-picker input:focus + span { box-shadow: 0 0 0 3px rgba(33,90,64,.1); }
.type-picker input:checked + span { color: white; background: var(--field); border-color: var(--field); }
.dynamic-fields, .field-grid { display: grid; gap: 15px; }
.field { display: grid; gap: 7px; color: var(--ink-soft); font-size: 10px; font-weight: 600; }
.field > span { display: flex; align-items: center; justify-content: space-between; }
.field small { color: var(--ink-faint); font-size: 8px; font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 12px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px; outline: none; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--field-bright); box-shadow: 0 0 0 3px rgba(33,90,64,.08); }
.two-col { grid-template-columns: 1fr 1fr; margin-bottom: 15px; }
.notes-form .field { margin-bottom: 15px; }
.security-note { display: flex; align-items: flex-start; gap: 8px; margin: 5px 0 0; padding: 10px; color: #7b6747; background: #fbf3e5; border-radius: 8px; font-size: 8px; }
.security-note svg { flex: none; width: 14px; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); }
.dialog-actions-spacer { flex: 1; }
.auth-copy { margin: -3px 0 18px; color: var(--ink-soft); font-size: 11px; }
.auth-code-field { margin-top: 13px; }
.auth-code-field input { letter-spacing: .22em; font-family: var(--mono); font-size: 14px; font-weight: 600; }
.auth-submit { width: 100%; margin-top: 12px; }
.auth-alternative { width: 100%; margin-top: 8px; }
.signed-in-card { display: flex; align-items: center; gap: 12px; padding: 15px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.signed-in-card > div { display: flex; flex-direction: column; }
.signed-in-card strong { font-size: 12px; }
.signed-in-card small { color: var(--ink-faint); font-size: 9px; }
.setup-pending { display: flex; flex-direction: column; gap: 3px; margin-top: 16px; padding: 11px; color: #7b6747; background: #fbf3e5; border-radius: 8px; font-size: 9px; }
.setup-pending strong { font-size: 10px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; padding: 12px 16px; color: white; background: var(--field-deep); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; box-shadow: var(--shadow); font-size: 10px; animation: toast-in .25s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

body.client-mode .coach-only, body.client-mode .coach-field { display: none !important; }
body.client-mode .view-button .coach-avatar { color: white; background: var(--field-bright); }

@media (max-width: 1050px) {
  .goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opportunity-card { grid-template-columns: minmax(170px, 1fr) 120px minmax(200px, 1fr) auto; gap: 12px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { transform: translateX(-102%); transition: transform .25s ease; box-shadow: 20px 0 50px rgba(8,25,17,.2); }
  body.menu-open .sidebar { transform: none; }
  .workspace { width: 100%; }
  .mobile-menu { display: grid; }
  .topbar { padding: 0 18px; }
  .search-wrap { flex: 1 1 0; min-width: 0; width: 0; }
  .topbar-actions { flex: none; gap: 0; }
  .save-state { display: none; }
  .auth-button { max-width: 104px; }
  .auth-button span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .mobile-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(8,25,17,.55); }
  .mobile-scrim:not([hidden]) { display: block; }
  main { padding-inline: 20px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .opportunity-card { grid-template-columns: 1fr auto; }
  .recorder-card { grid-template-columns: 1fr; gap: 25px; }
  .video-upload-card { grid-template-columns: 1fr; gap: 25px; }
  .opportunity-card > .stage-pill { justify-self: end; grid-column: 2; grid-row: 1; }
  .opportunity-card > .next-step { grid-column: 1 / -1; }
  .opportunity-actions { grid-column: 1 / -1; }
  .notes-button { flex: 1; justify-content: center; }
}

@media (max-width: 620px) {
  .topbar { gap: 8px; min-height: 64px; }
  .topbar-actions .button { width: 40px; padding: 0; font-size: 0; }
  .search-wrap kbd { display: none; }
  .search-wrap input { padding-right: 12px; }
  .page-heading { align-items: flex-start; padding: 34px 0 25px; }
  .page-heading .button { flex: none; width: 40px; padding: 0; overflow: hidden; font-size: 0; }
  .page-heading .button::first-letter { font-size: 18px; }
  .today-heading { display: block; }
  .week-marker { margin-top: 20px; }
  .method-creed { grid-template-columns: 1fr; gap: 15px; padding: 18px; }
  .method-creed blockquote { padding: 16px 0 0; border-top: 1px solid var(--line); border-left: 0; font-size: 27px; }
  .mission-card { padding: 23px 21px; }
  .mission-empty { align-items: flex-start; flex-wrap: wrap; }
  .mission-empty .button { width: 100%; }
  .mission-text { margin-top: 18px; }
  .mission-meta span:last-child { display: none; }
  .panel { padding: 20px; }
  .panel-header h2, .section-header h2 { font-size: 22px; }
  .goal-grid, .video-grid, .directory-groups, .task-board { grid-template-columns: 1fr; }
  .quick-link-grid, .video-file-grid { grid-template-columns: 1fr; }
  .voice-grid { grid-template-columns: 1fr; }
  .recorder-card { padding: 24px 20px; }
  .video-upload-card { padding: 24px 20px; }
  .recorder-actions { grid-template-columns: 1fr; }
  .goal-card { min-height: 230px; }
  .opportunity-card { padding: 16px; }
  .task-owner { font-size: 0; }
  .task-owner .avatar { margin-right: 0; }
  .directory-toolbar { align-items: stretch; flex-direction: column; }
  .directory-toolbar > span { align-self: flex-end; }
  .two-col { grid-template-columns: 1fr; }
  .dialog-shell { padding: 20px; }
  .dialog-header h2 { font-size: 25px; }
  .type-picker { display: grid; grid-template-columns: repeat(3, 1fr); }
  .type-picker span { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .sidebar, .topbar, .button, .icon-button, .item-delete, .inline-add, .notes-button { display: none !important; }
  .workspace { grid-column: 1 / -1; }
  main { width: 100%; padding: 0; }
  .page { display: block; break-after: page; }
  .panel, .goal-card, .opportunity-card { break-inside: avoid; box-shadow: none; }
}
