/* LESSDESK Practice Mentor — shared design language (from the approved
   docs/design contract). Lighter than the legacy app: navy is an
   accent, whitespace does the structure. */
:root {
  --navy: #1e3a5f; --ink: #2b3442; --muted: #7a8699;
  --line: #e8ecf1; --bg: #fafbfc; --card: #ffffff;
  --green: #2e7d32; --blue: #1565c0; --teal: #00695c;
  --amber: #b07d1a; --guard: #a94442;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* Footer pins to the viewport bottom on short pages (operator
     2026-11-08): the body is a full-height column and .site-foot
     takes margin-top auto. Auth/landing bodies override display. */
  min-height: 100vh; display: flex; flex-direction: column;
  box-sizing: border-box;
}

/* top bar */
header.app {
  display: flex; align-items: center; gap: 28px;
  padding: 18px 36px; background: var(--card); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; color: var(--navy); font-size: 1rem; }
.brand a { text-decoration: none; color: inherit; }
.brand span { font-weight: 400; color: var(--muted); }
nav.app { display: flex; gap: 6px; margin-left: 12px; }
nav.app a {
  padding: 7px 18px; border-radius: 18px; text-decoration: none;
  color: var(--muted); font-weight: 500; font-size: 0.92rem;
}
nav.app a.on { background: var(--navy); color: white; font-weight: 600; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: #e8edf3; color: var(--navy); font-weight: 700; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}

/* page scaffold */
.wrap2col {
  display: grid; grid-template-columns: 1fr 320px; gap: 28px;
  max-width: 1240px; margin: 0 auto; padding: 30px 36px 60px;
}
@media (max-width: 980px) { .wrap2col { grid-template-columns: 1fr; } }
.crumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
/* Page titles carry the orientation (operator 2026-11-14): the
   question is the first thing the eye should land on. */
h1.page { margin: 0 0 6px; font-size: 1.9rem; font-weight: 700;
  color: var(--navy); letter-spacing: -0.01em; }
@media (max-width: 640px) { h1.page { font-size: 1.55rem; } }
.sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  display: inline-block; padding: 6px 16px; border-radius: 16px;
  font-size: 0.86rem; font-weight: 500; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); cursor: pointer;
}
.chip.on { background: #eef2f7; border-color: var(--navy); color: var(--navy); font-weight: 600; }
.chip.sm { padding: 4px 13px; font-size: 0.8rem; }
.chiprow-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); margin: 14px 0 7px;
}

/* knowledge cards (brief sections + mentor cards share this grammar) */
.brief { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.bcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px 16px 24px; position: relative;
}
.bcard::before {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px;
  width: 3px; border-radius: 2px;
}
.bcard.legal::before { background: var(--green); }
.bcard.practice::before { background: var(--blue); }
.bcard.consider::before { background: var(--amber); }
.bcard.research::before { background: var(--teal); }
.btag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  margin-bottom: 8px;
}
.bcard.legal .btag { color: var(--green); }
.bcard.practice .btag { color: var(--blue); }
.bcard.consider .btag { color: var(--amber); }
.bcard.research .btag { color: var(--teal); }
.bcard ul { margin: 0; padding-left: 18px; }
.bcard li { margin-bottom: 10px; font-size: 0.9rem; line-height: 1.65; color: #3c4654; }
.bcard li:last-child { margin-bottom: 0; }
.cite { display: block; margin-top: 3px; font-size: 0.73rem; color: var(--muted); }
.cite b { color: var(--navy); font-weight: 600; }

/* right rail */
aside.rail { display: flex; flex-direction: column; gap: 14px; }
.rcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px;
}
.rcard .rtitle { display: block; color: var(--navy); font-size: 0.9rem; font-weight: 650; margin-bottom: 8px; }
.rcard p { margin: 0; font-size: 0.84rem; color: #455060; line-height: 1.6; }
.goal-input {
  width: 100%; border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; font: inherit; font-size: 0.86rem; color: var(--ink);
  min-height: 64px; resize: vertical; background: #fdfefe;
}
.rail-actions { display: flex; flex-direction: column; gap: 8px; }
.btn {
  border: none; border-radius: 8px; padding: 10px 18px;
  font-size: 0.86rem; font-weight: 600; cursor: pointer; width: 100%;
}
.btn.primary { background: var(--navy); color: white; }
.btn.quiet { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.outline {
  background: var(--card); color: var(--navy); border: 1px solid var(--navy);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn.outline:hover, .btn.outline:active { background: var(--navy); color: white; }
.foot-note {
  font-size: 0.72rem; color: var(--muted); text-align: center; padding: 2px 10px;
  font-style: italic;
}
.profile-line { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; font-size: 0.84rem; color: #455060; }
.profile-line i {
  font-style: normal; font-size: 0.68rem; font-weight: 700; color: var(--navy);
  background: #eef2f7; padding: 2px 9px; border-radius: 9px;
}

/* ── Experience engine additions ───────────────────────────────── */
.wrap1col { max-width: 1040px; margin: 0 auto; padding: 36px 36px 60px; }
.toprow { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }

/* context cards */
.ctx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
@media (max-width: 900px) { .ctx-grid { grid-template-columns: 1fr; } }
.ctx {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; cursor: pointer; text-decoration: none; color: inherit; display: block;
}
.ctx:hover { border-color: #c9d4e2; }
.ctx h2 { margin: 0 0 2px; font-size: 1.02rem; font-weight: 650; color: var(--navy); }
.ctx .kind { font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.02em; }
.minichips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.chip.soft { background: #f6f8fa; border-color: var(--line); color: #5a6678; font-weight: 500; }
.statline {
  display: flex; gap: 14px; font-size: 0.78rem; color: var(--muted);
  border-top: 1px solid #f1f4f7; padding-top: 11px;
}
.statline b { color: var(--ink); font-weight: 650; }
.ctx.new {
  border-style: dashed; background: transparent; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.9rem; gap: 6px; min-height: 150px;
}
.ctx.new b { color: var(--navy); font-weight: 650; }

/* context-new form */
.radio-row { display: block; font-size: 0.88rem; color: #3c4654; margin-bottom: 8px; }
.radio-row input { margin-right: 8px; }
.checkchip { display: inline-flex; align-items: center; gap: 6px; }
.checkchip input { margin: 0; }
.checkchip:has(input:checked) { background: #eef2f7; border-color: var(--navy); color: var(--navy); font-weight: 600; }
.klabel {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); margin: 10px 0 6px;
}

/* timeline */
.tl { position: relative; padding-left: 26px; margin-top: 18px; }
.tl::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: #e3e9f0; border-radius: 1px;
}
.month {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); margin: 18px 0 10px;
}
.ev {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 16px; margin-bottom: 10px;
}
.ev::before {
  content: ""; position: absolute; left: -23px; top: 18px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--card); border: 2.5px solid var(--navy);
}
.ev.reflect::before { border-color: #8fa3bb; }
.ev .head { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.ev .head b { color: var(--navy); font-size: 0.9rem; font-weight: 650; }
.ev .date { font-size: 0.76rem; color: var(--muted); }
.mode {
  font-size: 0.68rem; font-weight: 700; border-radius: 9px; padding: 1px 9px;
  letter-spacing: 0.04em;
}
.mode.obs { background: #eef2f7; color: var(--navy); }
.mode.ref { background: #f3f1fa; color: #6a5fa3; }
.ev p { margin: 5px 0 0; font-size: 0.83rem; color: #55606e; line-height: 1.6; }

/* workspace */
.fieldcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; margin-top: 14px;
}
.fieldlabel { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.fieldlabel b { font-size: 0.95rem; color: var(--navy); font-weight: 650; }
.fieldlabel span { font-size: 0.8rem; color: var(--muted); }
.people { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.person {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px; border-radius: 15px; font-size: 0.84rem; font-weight: 600;
  border: 1px solid #d9e2ec; cursor: pointer; font-family: inherit;
}
.person.on { background: #eef2f7; color: var(--navy); }
.person.off { background: var(--card); color: var(--muted); border-style: dashed; font-weight: 500; }
.person i {
  font-style: normal; width: 18px; height: 18px; border-radius: 50%;
  font-size: 0.66rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.person.on i { background: var(--navy); color: white; }
.person.off i { background: #eef1f5; color: var(--muted); }
.editor {
  min-height: 260px; border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 20px; font-size: 0.98rem; line-height: 1.75; color: var(--ink);
  background: #fdfefe; outline: none; white-space: pre-wrap;
}
.editor:empty::before { content: attr(data-placeholder); color: #a7b0bd; }
.editor .flag {
  background: #fdf1f1; border-bottom: 2px solid var(--guard); border-radius: 3px 3px 0 0;
  padding: 0 3px; cursor: pointer;
}
.flagmenu { display: inline-flex; gap: 5px; margin-left: 7px; vertical-align: middle; }
.flagmenu button {
  border: 1px solid var(--guard); background: white; color: var(--guard);
  border-radius: 11px; padding: 1px 10px; font-size: 0.72rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.flagmenu button.notname { border-color: #c5d0dd; color: var(--muted); }
.toolrow { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.btn.rec { background: #4caf50; color: white; width: auto; padding: 9px 20px; }
.btn.rec.live { background: #c62828; }
.guardnote { margin-left: auto; font-size: 0.78rem; color: var(--muted); }
.guardnote.warn b { color: var(--guard); font-weight: 650; }
.actions-row { display: flex; gap: 12px; align-items: center; margin-top: 20px; }

/* mentor sidebar */
.mhead { display: flex; align-items: baseline; gap: 8px; padding: 2px 4px; }
.mhead b { color: var(--navy); font-size: 0.95rem; font-weight: 650; }
.mhead span { font-size: 0.74rem; color: var(--muted); }
#mentorFeed { display: flex; flex-direction: column; gap: 12px; }
/* Recording guide — quiet collapsible card above the capture canvas. */
.rec-guide {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
}
.rec-guide > summary { cursor: pointer; list-style: none; padding: 10px 16px;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rec-guide > summary::-webkit-details-marker { display: none; }
.rec-guide > summary b { color: var(--navy); font-size: 0.86rem; font-weight: 650; }
.rec-guide > summary span { color: var(--muted); font-size: 0.78rem; }
.rec-guide > summary::after { content: "\25be"; color: var(--muted); font-size: 0.8rem; margin-left: auto; }
.rec-guide[open] > summary::after { content: "\25b4"; }
.rec-guide-body { padding: 0 16px 12px; }
.rec-guide-body p { margin: 0 0 7px; font-size: 0.8rem; color: #455060; line-height: 1.55; }
.rec-guide-body ul { margin: 0; padding-left: 18px; }
.rec-guide-body li { font-size: 0.79rem; color: #455060; line-height: 1.5; margin: 3px 0; }

/* Guided onboarding overlay (beta spec: spotlight the real UI). */
.tour-overlay { position: fixed; inset: 0; z-index: 180;
  background: rgba(30,58,95,0.34); }
.tour-overlay.clear { background: transparent; pointer-events: none; }
.tour-overlay.clear .tour-card { pointer-events: auto; }
.tour-card.float { top: auto; left: auto; right: 18px; bottom: 18px;
  transform: none; max-width: 350px; box-shadow: 0 10px 30px rgba(30,58,95,0.25); }
.tour-hole { position: fixed; z-index: 181; pointer-events: none;
  border: 3px solid var(--navy); border-radius: 12px;
  box-shadow: 0 0 0 100vmax rgba(30,58,95,0.34); }
.tour-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px 16px; max-width: 420px; box-shadow: 0 14px 40px rgba(30,58,95,0.22);
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 190;
  outline: none; }

.tour-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; padding-right: 22px; }
.tour-head b { color: var(--navy); font-size: 1rem; }
.tour-count { margin-left: auto; color: var(--muted); font-size: 0.74rem; white-space: nowrap; flex: none; }
.tour-card p { margin: 6px 0 0; font-size: 0.86rem; color: #455060; line-height: 1.6; }
.tour-tips { margin: 10px 0 0; padding-left: 20px; }
.tour-tips li { font-size: 0.82rem; color: var(--navy); font-weight: 550;
  line-height: 1.55; margin: 3px 0; }
.tour-card p.tour-note { font-size: 0.78rem; color: var(--amber); font-weight: 600; }
.tour-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.tour-actions .btn.primary { width: auto; padding: 9px 20px; }
.tour-x { position: absolute; top: 10px; right: 12px; border: none; background: none;
  color: var(--muted); font-size: 0.9rem; cursor: pointer; }
.tour-role { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.tour-role label { font-size: 0.8rem; color: var(--muted); font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tour-role select, .tour-role input { font: inherit; font-size: 0.86rem; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: white; }
.tour-go { display: inline-block; width: auto; padding: 9px 20px; margin-top: 12px;
  text-decoration: none; text-align: center; }
/* First-focus chips (operator 2026-11-10): the seven domains as
   single-select tap chips on the onboarding focus step. */
.tour-focus { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tour-chip { border: 1px dashed var(--line); background: transparent; color: #5d6b7a;
  border-radius: 12px; padding: 6px 13px; font: inherit; font-size: 0.8rem;
  font-weight: 600; cursor: pointer; }
.tour-chip:hover { color: var(--navy); border-color: var(--navy); }
.tour-chip.on { background: var(--navy); border: 1px solid var(--navy); color: #fff; }
.tour-resume { position: fixed; right: 18px; bottom: 18px; z-index: 170;
  background: var(--navy); color: white; border: none; border-radius: 20px;
  padding: 9px 18px; font: inherit; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; box-shadow: 0 6px 20px rgba(30,58,95,0.3); }
@media (max-width: 640px) {
  .tour-card { max-width: none; left: 12px !important; right: 12px; width: auto !important;
    transform: none; top: auto !important; bottom: 12px; position: fixed !important; }
}

/* Account menu on the header avatar. */
.acct-menu { position: relative; margin-left: auto; }
.acct-menu > summary { list-style: none; cursor: pointer; }
.acct-menu > summary::-webkit-details-marker { display: none; }
.acct-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 26px rgba(30,58,95,0.13); min-width: 220px; padding: 6px; }
.acct-pop .acct-who { padding: 9px 12px 7px; font-size: 0.74rem; color: var(--muted);
  border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct-pop a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 0.84rem;
  color: var(--ink); text-decoration: none; font-weight: 500; }
.acct-pop a:hover { background: #eef2f7; color: var(--navy); }

/* Context recognition card: slides open under the picked pill;
   unpicked pills grey but stay tappable. */
.ctx-detail { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, margin 0.3s ease; margin: 0; }
.ctx-detail.open { max-height: 540px; margin: 6px 0 2px; }
.ctx-detail-inner { background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--navy); border-radius: 10px; padding: 11px 14px; }
.ctx-detail-inner b { color: var(--navy); font-size: 0.9rem; }
.ctx-detail-inner .meta { color: var(--muted); font-size: 0.78rem; margin-left: 8px; }
.ctx-detail-inner .meta2 { color: var(--muted); font-size: 0.76rem; margin-top: 7px; }
#ctxChips .chip { transition: opacity 0.25s ease; }
#ctxChips.picked .chip:not(.on) { opacity: 0.35; }
#ctxChips.picked .chip:not(.on):hover { opacity: 1; }

/* Report Sections rail (wizard integration, 2026-11-02). */
.sp-plan { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0 10px; }
.sp-plan .sp-plan-label { font-size: 0.72rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-right: 2px; }
.section-nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.section-row { display: flex; align-items: center; gap: 9px; text-align: left;
  border: 1px solid var(--line); background: var(--card); border-radius: 9px;
  padding: 7px 11px; font: inherit; font-size: 0.82rem; color: var(--ink); cursor: pointer; }
.section-row .sn { width: 18px; height: 18px; border-radius: 50%; background: #e8edf3;
  color: var(--navy); font-size: 0.68rem; font-weight: 700; display: flex;
  align-items: center; justify-content: center; flex: none; }
.section-row.on { border-color: var(--navy); color: var(--navy); font-weight: 600; }
.section-row.tagged .sn { background: var(--navy); color: white; }
.section-row .sr-tag { margin-left: auto; font-size: 0.68rem; color: var(--green); font-weight: 700; }
.section-card { background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--navy); border-radius: 10px; padding: 13px 15px; }
.section-card .sc-head { display: flex; align-items: baseline; gap: 8px; }
.section-card .sc-head b { color: var(--navy); font-size: 0.9rem; }
.section-card .sc-count { margin-left: auto; color: var(--muted); font-size: 0.72rem; white-space: nowrap; }
.section-card .sc-sub { margin-top: 9px; font-size: 0.7rem; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.section-card .sc-needs { margin: 5px 0 0; padding-left: 17px; }
.section-card .sc-needs li { font-size: 0.79rem; color: #455060; line-height: 1.5; margin: 2px 0; }
.section-card .sq { margin-top: 6px; background: var(--bg); border-radius: 8px;
  padding: 7px 10px; font-size: 0.79rem; color: var(--navy); }
.section-card .sc-actions { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }

/* They-said row: one-tap reported-speech attribution under the editor. */
.say-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; }
.say-row .say-label { font-size: 0.76rem; color: var(--muted); font-weight: 600; }
.say-row .chip.say-chip { cursor: pointer; }

/* Newly added mentor review slides in on top; the rest shift down. */
@keyframes mentor-slide-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
.mcard.m-new { animation: mentor-slide-in 0.3s ease; }

.mcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px 14px 18px; position: relative;
}
.mcard::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 3px; border-radius: 2px; background: var(--navy);
}
.mcard.consider::before { background: var(--amber); }
.mcard.practice::before { background: var(--blue); }
.mcard.legal::before { background: var(--green); }
.mcard.mentor::before { background: var(--navy); }
.mcard .mtag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 5px; color: var(--navy);
}
.mcard.consider .mtag { color: var(--amber); }
.mcard.practice .mtag { color: var(--blue); }
.mcard.legal .mtag { color: var(--green); }
.mcard p { margin: 0; font-size: 0.85rem; line-height: 1.6; color: #455060; }
.advice-note {
  font-size: 0.72rem; color: var(--muted); text-align: center; padding: 2px 10px;
  font-style: italic;
}

/* ── Create engine additions ───────────────────────────────────── */
.choice {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 26px; margin-bottom: 16px; cursor: pointer;
  position: relative;
}
.choice.on { border: 1.5px solid var(--navy); }
.choice h2 { margin: 0 0 4px; font-size: 1.08rem; font-weight: 650; color: var(--navy); }
.choice .what { font-size: 0.9rem; color: #455060; margin: 0 0 4px; line-height: 1.65; }
.choice .isnot { font-size: 0.78rem; color: var(--muted); font-style: italic; }
.choice .radio {
  position: absolute; top: 22px; right: 24px; width: 20px; height: 20px;
  border-radius: 50%; border: 2px solid #c9d2dd; background: white;
}
.choice.on .radio { border-color: var(--navy); }
.choice.on .radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--navy);
}
.hintline { font-size: 0.78rem; color: var(--muted); }

.exp-row {
  display: flex; align-items: center; gap: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px;
  margin-bottom: 8px; cursor: pointer;
}
.exp-row.off { cursor: default; opacity: 0.75; background: transparent; border-style: dashed; }
.exp-row .eid {
  font-size: 0.68rem; font-weight: 700; color: var(--navy);
  background: #eef2f7; border-radius: 9px; padding: 1px 8px; flex-shrink: 0;
}
.exp-row.off .eid { background: #f1f3f6; color: var(--muted); }
.exp-row .grow { flex: 1; }
.exp-row b { font-size: 0.88rem; color: var(--navy); font-weight: 650; display: block; }
.exp-row .meta { font-size: 0.76rem; color: var(--muted); }

.subject {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 16px; overflow: hidden; margin-top: 6px;
}
.subject-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-bottom: 1px solid var(--line); background: #fcfdfe;
  flex-wrap: wrap;
}
.subject-head b { color: var(--navy); font-size: 0.95rem; font-weight: 650; }
.subject-head .right { margin-left: auto; font-size: 0.74rem; color: var(--muted); }
.pill { font-size: 0.7rem; font-weight: 700; border-radius: 10px; padding: 2px 10px; letter-spacing: 0.03em; }
.pill.ok { background: #edf5ee; color: var(--green); }
.pill.review { background: #fdf6e7; color: var(--amber); }
.pill.stale { background: #fdf1f1; color: var(--guard); }
.pill.ready { background: #eef2f7; color: var(--navy); }
.para { padding: 16px 20px; }
.para p { margin: 0 0 10px; font-size: 0.93rem; line-height: 1.75; color: #353f4e; }
.para .unsupported, .cw-draft-body .unsupported {
  background: #fdf6e7; border-bottom: 2px solid var(--amber);
  border-radius: 3px 3px 0 0; padding: 0 2px;
}
.prov { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.prov .lbl {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted); margin-right: 2px;
}
.src {
  font-size: 0.73rem; font-weight: 600; color: var(--navy);
  background: #eef2f7; border: 1px solid #d9e2ec; border-radius: 10px; padding: 2px 10px;
}
.src.stalesrc { background: #fdf1f1; border-color: #eccfcf; color: var(--guard); }
.warn {
  display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--amber); font-weight: 500;
}
.warn.stale { color: var(--guard); }
.warn.ready { color: var(--muted); }
.warn button {
  border: 1px solid currentColor; background: white; color: inherit;
  border-radius: 11px; padding: 2px 12px; font-size: 0.74rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.warn button.approve {
  border: none; background: var(--navy); color: white; border-radius: 8px;
  padding: 8px 18px; font-size: 0.84rem;
}
.outline { display: flex; flex-direction: column; gap: 8px; }
.orow { display: flex; align-items: center; gap: 9px; font-size: 0.84rem; color: #455060; }
.orow .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.ok { background: var(--green); }
.dot.review { background: var(--amber); }
.dot.stale { background: var(--guard); }
.dot.ready { background: #9fb2c8; }
.gate-note { font-size: 0.74rem; color: var(--amber); font-weight: 500; text-align: center; }
.btn.primary[disabled] { background: #c3cdd9; cursor: not-allowed; }

/* ── Practice page ─────────────────────────────────────────────── */
.domains { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.domain {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px;
}
.dhead { display: flex; align-items: baseline; gap: 10px; }
.dhead b { color: var(--navy); font-size: 0.92rem; font-weight: 650; }
.dlevel { margin-left: auto; font-size: 0.74rem; color: var(--muted); font-style: italic; }
.dbar {
  height: 6px; background: #eef1f5; border-radius: 3px; margin: 9px 0 7px; overflow: hidden;
}
.dbar span { display: block; height: 100%; background: var(--navy); border-radius: 3px; opacity: 0.85; }
.dmeta { font-size: 0.76rem; color: var(--muted); }
.dnote { font-style: italic; }

.refl {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; margin-bottom: 10px;
}
.refl .rhead { display: flex; align-items: baseline; gap: 10px; }
.refl .rhead b { color: var(--navy); font-size: 0.88rem; font-weight: 650; }
.refl .rhead span { margin-left: auto; font-size: 0.74rem; color: var(--muted); }
.refl p { margin: 5px 0 8px; font-size: 0.85rem; color: #55606e; line-height: 1.6; font-style: italic; }
.mkgoal {
  border: 1px solid #d9e2ec; background: white; color: var(--navy);
  border-radius: 11px; padding: 2px 12px; font-size: 0.74rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.mkgoal:disabled { color: var(--green); border-color: #cfe3d1; cursor: default; }

.prow { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.84rem; color: #455060; }
.prow span { flex: 1; }
.prow select, .prow input {
  font: inherit; font-size: 0.84rem; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink);
  max-width: 150px;
}
.goalrow {
  display: flex; gap: 9px; align-items: flex-start; font-size: 0.84rem;
  color: #3c4654; margin-bottom: 7px; cursor: pointer; line-height: 1.5;
}
.goalrow input { margin-top: 3px; }
.goalrow.done span { text-decoration: line-through; color: var(--muted); }

.ev-edit { margin-left: auto; font-size: 0.74rem; color: var(--navy); font-weight: 600; text-decoration: none; }
.ev-edit:hover { text-decoration: underline; }

.warn-btn {
  border: 1px solid #c5d0dd; background: white; color: var(--navy);
  border-radius: 8px; padding: 6px 14px; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.warn-btn.save { background: var(--navy); color: white; border-color: var(--navy); }
.warn-btn.live { background: #c62828; color: white; border-color: #c62828; }

/* ── Today strip (dashboard-lite) ──────────────────────────────── */
.today-grid {
  display: grid; grid-template-columns: 1fr 300px; gap: 14px; margin-bottom: 26px;
}
@media (max-width: 900px) { .today-grid { grid-template-columns: 1fr; } }
.hero {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 26px; background-size: cover;
  background-position: center 30%; overflow: hidden; min-height: 150px;
}
.hero-badge {
  position: absolute; top: 16px; right: 18px; width: 52px; height: 52px;
  border-radius: 12px;
}
.hero-kicker {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.hero-focus { font-size: 0.9rem; color: #3c4654; margin-bottom: 10px; padding-right: 70px; }
.hero-focus b { color: var(--navy); }
.hero-focus a { color: var(--navy); font-weight: 600; }
.hero-tip { margin: 0 0 4px; font-size: 0.93rem; line-height: 1.65; color: #353f4e; max-width: 620px; }
.today-side { display: flex; flex-direction: column; gap: 14px; }
.side-card {
  flex: 1; display: flex; flex-direction: column; gap: 3px; justify-content: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; text-decoration: none; color: inherit;
}
.side-card:hover { border-color: #c9d4e2; }
.side-card .sk {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.side-card b { color: var(--navy); font-size: 0.92rem; font-weight: 650; }
.side-card .sm2 { font-size: 0.76rem; color: var(--muted); }
.kind-badge { width: 18px; height: 18px; border-radius: 5px; vertical-align: -4px; margin-right: 5px; }

/* ── Home ──────────────────────────────────────────────────────── */
.home-wrap {
  max-width: 980px; margin: 0 auto; padding: 100px 36px 80px; text-align: center;
}
.home-greeting {
  margin: 0 0 48px; font-size: 2.1rem; font-weight: 650; color: var(--navy);
  letter-spacing: -0.01em;
}
.home-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 760px) { .home-tiles { grid-template-columns: 1fr; } .home-wrap { padding-top: 60px; } }
.home-tile {
  aspect-ratio: 1 / 0.82; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  text-decoration: none; transition: border-color 0.15s, transform 0.15s;
}
.home-tile:hover { border-color: var(--navy); transform: translateY(-2px); }
.home-tile .ht-name {
  font-size: 1.5rem; font-weight: 300; color: var(--navy);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.home-tile .ht-desc { font-size: 0.86rem; color: var(--muted); }

.brand a { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; object-fit: contain; }
/* Designer header lockup (loftydesignshop 2026-11-14): one outlined
   vector — mark + my.alli. */
.brand-lockup { height: 32px; width: auto; display: block; }
.brand span { white-space: nowrap; }
@media (max-width: 860px) { .brand span { display: none; } }

.mentor-toggle {
  margin-left: auto; border: 1px solid var(--navy); background: var(--navy);
  color: white; border-radius: 12px; padding: 2px 14px; font-size: 0.72rem;
  font-weight: 700; cursor: pointer; font-family: inherit;
}
.mentor-toggle.off { background: white; color: var(--muted); border-color: #c5d0dd; }
.capture-bar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: #f6f9fc; border: 1px solid #d9e2ec; border-radius: 12px;
  padding: 11px 16px; margin: 14px 0 0; font-size: 0.84rem; color: #3c4654;
}
.capture-bar b { color: var(--navy); }
.capture-bar button {
  border: none; background: var(--navy); color: white; border-radius: 8px;
  padding: 6px 14px; font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.capture-bar button.quietbtn { background: white; color: var(--muted); border: 1px solid var(--line); }

/* practice-language cues */
.mcard.reflect::before { background: #6a5fa3; }
.mcard.reflect .mtag { color: #6a5fa3; }
.mcard.minimize::before { background: var(--teal); }
.mcard.minimize .mtag { color: var(--teal); }
.cue-actions { display: flex; gap: 6px; margin-top: 9px; }
.cue-btn {
  border: 1px solid #6a5fa3; background: white; color: #6a5fa3;
  border-radius: 11px; padding: 2px 12px; font-size: 0.72rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.cue-btn.quiet { border-color: #c5d0dd; color: var(--muted); }

/* progressive steps + segmented mentor control */
.step-hidden { display: none !important; }
.step-hint { font-size: 0.78rem; color: var(--muted); margin: 2px 0 6px; }
.label-aside { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); margin-left: 8px; font-size: 0.78rem; }
.skip-link {
  border: none; background: transparent; color: var(--muted); font-size: 0.78rem;
  cursor: pointer; font-family: inherit; padding: 2px 0; text-decoration: underline;
}
.seg { margin-left: auto; display: inline-flex; border: 1px solid #c5d0dd; border-radius: 12px; overflow: hidden; }
.seg button {
  border: none; background: white; color: var(--muted); padding: 2px 13px;
  font-size: 0.72rem; font-weight: 700; cursor: pointer; font-family: inherit;
}
.seg button.on { background: var(--navy); color: white; }

.chip.ghost { border-style: dashed; color: var(--muted); background: transparent; text-decoration: none; display: inline-block; }
.chip.ghost:hover { color: var(--navy); border-color: var(--navy); }

/* sticky mentor rail + setup summary + add row */
.rail-sticky { position: sticky; top: 16px; align-self: flex-start;
  max-height: calc(100vh - 32px); overflow-y: auto; }
.setup-summary {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 16px; margin-bottom: 14px; font-size: 0.84rem; color: #3c4654;
}
.setup-summary b { color: var(--navy); }
.setup-summary button {
  margin-left: auto; border: 1px solid #c5d0dd; background: white; color: var(--navy);
  border-radius: 11px; padding: 2px 12px; font-size: 0.74rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.mentor-adds { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 0 4px; }
.mentor-adds .adds-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted); margin-right: 2px;
}
.mentor-adds button {
  border: 1px dashed #c5d0dd; background: transparent; color: var(--muted);
  border-radius: 12px; padding: 3px 12px; font-size: 0.74rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.mentor-adds button.on { border-style: solid; border-color: var(--navy); color: var(--navy); background: #eef2f7; }
.mcard.mentorreview::before { background: var(--navy); }
.mcard.mentorreview .mtag { color: var(--navy); }

/* Mentor audit sections (2026-10-26): STRENGTHS/GROW/CONSIDER/NEXT TIME
   render as labeled sub-blocks with light bold + lists. */
.mcard .msec { margin: 0 0 10px; }
.mcard .msec:last-child { margin-bottom: 0; }
.mcard .mlabel {
  display: block; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px;
  color: var(--navy);
}
.msec.m-strengths .mlabel { color: var(--green); }
.msec.m-grow .mlabel { color: var(--amber); }
.msec.m-consider .mlabel { color: #6a5fa3; }
.mcard .msec p { margin: 0 0 4px; }
.mcard .msec p:last-child { margin-bottom: 0; }
.mcard .msec ul { margin: 2px 0 4px 18px; padding: 0; }
.mcard .msec li { margin: 0 0 3px; font-size: 0.85rem; line-height: 1.55; color: #455060; }
.mcard b { color: var(--ink); }
.mcard.focus::before { background: var(--navy); }
.mcard.focus .mtag { color: var(--navy); }

/* Factor lists (2026-10-26): grouped socioecological matrix chips —
   first row shows, "show more" expands; workers add their own. */
.factor-gname {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted); margin: 8px 0 2px;
}
.factor-group:first-of-type .factor-gname { margin-top: 2px; }
.factor-foot { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.factor-foot .factor-custom { min-height: 0; max-width: 300px; padding: 7px 10px; font-size: 0.82rem; }
.factor-foot .chip { margin: 0; }

/* Carried-in practice-context overview above the capture workspace. */
.ctx-overview .label-aside { font-weight: 500; color: var(--muted); font-size: 0.74rem; margin-left: 4px; }
.ctx-overview .chips .chip { cursor: default; }

/* Re-entry check strip (2026-10-26): once-a-day stage confirmation on a
   selected context — amber = action, per the banner conventions. */
.ctx-confirm {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 2px 0 12px; padding: 9px 14px; border-radius: 10px;
  background: #fdf6e7; border: 1px solid #ecd9a8;
  font-size: 0.85rem; color: #5b4a1e;
}
.ctx-confirm b { color: #8a6514; }
.ctx-confirm .chip { margin: 0; }

/* home wallpaper + tile icons */
.home-bg { min-height: calc(100vh - 71px); }
body.has-wallpaper {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(250, 251, 252, 0.72), rgba(250, 251, 252, 0.55)),
    var(--wallpaper);
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
}
.ht-icon {
  width: 42px; height: 42px; display: inline-block;
  background: var(--navy); opacity: 0.85;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  margin-bottom: 2px;
}
.home-tile { background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(3px); }

/* ── Where-you-stand coverage card (operator 2026-11-03) ───────── */
.cov-card summary.cov-head {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  list-style: none; user-select: none;
}
.cov-card summary.cov-head::-webkit-details-marker { display: none; }
.cov-toggle { margin-left: auto; font-size: 0.72rem; color: var(--muted); }
.cov-toggle::after { content: "Hide"; }
.cov-card:not([open]) .cov-toggle::after { content: "Show"; }
.cov-sub { font-size: 0.76rem; color: var(--muted); margin: 6px 0 2px; }
.cov-card:not([open]) summary .rtitle::after {
  content: " ·"; color: var(--muted);
}
.cov-list { margin: 4px 0 2px; }
.cov-sec {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px;
  padding: 4px 0; border-bottom: 1px solid #eef1f5; font-size: 0.8rem;
}
.cov-sec:last-child { border-bottom: 0; }
.cov-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px;
  background: #cdd5df; align-self: center;
}
.cov-sec.ready .cov-dot { background: var(--green); }
.cov-sec.started .cov-dot { background: var(--amber); }
.cov-sec .cov-label { font-weight: 600; color: var(--ink); }
.cov-sec.missing .cov-label { font-weight: 500; color: var(--muted); }
.cov-count { margin-left: auto; font-size: 0.72rem; color: var(--muted); }
.cov-missing {
  flex-basis: 100%; font-size: 0.72rem; color: var(--amber);
  padding-left: 14px;
}
.cov-note { font-size: 0.72rem; color: var(--muted); margin-top: 8px;
  font-style: italic; }
#covSlot .cov-card { margin-top: 12px; }

/* Abbreviated where-you-stand under the picked context on the
   Experience page (operator 2026-11-03): just the not-yet-captured
   section labels as small chips. */
.cov-mini { margin-top: 9px; border-top: 1px solid var(--line, #e4e9ef);
  padding-top: 7px; }
.cov-mini summary.cov-head { display: flex; align-items: center;
  cursor: pointer; list-style: none; }
.cov-mini summary.cov-head::-webkit-details-marker { display: none; }
.cov-mini:not([open]) .cov-toggle::after { content: "Show"; }
.chip.cov-need { background: #fdf6e7; border-color: #ecd9ad;
  color: var(--amber); }
.cov-mini-link { display: inline-block; margin-top: 7px;
  font-size: 0.76rem; font-weight: 600; color: var(--navy);
  text-decoration: none; }
.cov-mini-link:hover { text-decoration: underline; }

/* Section-focus nudge (operator 2026-11-03): soft suggestion when a
   context tag sounds like a document section. */
.focus-nudge { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.focus-nudge .nudge-note { font-size: 0.78rem; color: var(--muted); }
.chip.nudge-add { background: #fdf6e7; border-color: #ecd9ad; color: var(--amber); }

/* Summary Focus/Tags segments (operator 2026-11-03): lighter + smaller,
   and the text column flexes so the Change button keeps its row. */
.setup-summary #setupSummaryText { flex: 1 1 0; min-width: 0; }
.setup-summary button { flex-shrink: 0; }
.sum-soft { font-size: 0.76rem; color: var(--muted); font-weight: 400; }

/* Edit mode (operator 2026-11-03): no mentor rail — one tidy centered
   column so the editor doesn't sprawl. */
.wrap2col.wrap-single { grid-template-columns: 1fr; max-width: 940px; }

/* Create workspace compact pass (operator 2026-11-03): draft leads,
   sources + guide fold away, smaller quieter type throughout. */
.cw-hint { font-size: 0.78rem; color: var(--muted); margin: 4px 0 0; }
.cw-p { font-size: 0.78rem; margin: 2px 0 8px; }
.cw-section .sc-needs li, .cw-section .sq { font-size: 0.78rem; }
.cw-section .exp-row .meta { font-size: 0.72rem; }
.cw-fold {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 16px; margin-bottom: 12px; }
.cw-fold > summary { cursor: pointer; display: flex; gap: 10px;
  align-items: baseline; font-size: 0.84rem; color: var(--navy); }
.cw-fold > summary .fold-sub { font-size: 0.73rem; color: var(--muted); font-weight: 400; }
.cw-fold > .fold-body { margin-top: 8px; }
.exp-item { margin-bottom: 4px; }
.exp-item .src-text { margin: 0 0 6px 26px; }
.src-text > summary { font-size: 0.72rem; color: var(--navy); font-weight: 600; cursor: pointer; }
.src-full { font-size: 0.78rem; white-space: pre-wrap; background: #f7f9fb;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  margin-top: 4px; max-height: 240px; overflow: auto; }
.cw-addmore > summary { font-size: 0.76rem; color: var(--navy); font-weight: 600; cursor: pointer; margin: 6px 0; }

/* ── myalli brand ────────────────────────────────────────────────────
   The designer's outlined lockups landed 2026-11-14 (loftydesignshop):
   brand/myalli_header.svg, myalli_signin.svg, myalli_logomark.svg,
   myalli_favicon.svg. The CSS wordmark remains only as a text fallback;
   colors follow the new sheet: navy #1F3B5B · teal #2E8B8B · coral
   #F18A73. */
.wordmark { font-weight: 800; letter-spacing: 0.01em; }
.wordmark .wm-my { color: #1f3b5b; }
.wordmark .wm-teal { color: #2e8b8b; }
.wordmark .wm-coral { color: #f18a73; }
/* Centered wrappers keep full width as flex items (auto cross-axis
   margins would otherwise shrink them to fit-content). */
.wrap2col, .wrap1col { width: 100%; box-sizing: border-box; }
.site-foot { text-align: center; padding: 28px 16px 18px;
  font-size: 0.74rem; color: var(--muted); margin-top: auto; }
.site-foot b { color: #2d6a74; letter-spacing: 0.05em; }
