/* M365 Copilot Skills: learning the new Microsoft 365 Copilot (Home, Code, Autopilot).
   Follows the shared reading and design rules (C:\Users\sangyas\.claude\CLAUDE.md): made for a dyslexic reader and
   meant to be pretty. One sans-serif font (Nunito Sans), no italics, no all-capital labels, 18px text with 1.7 line
   spacing, lines about 65 characters wide, a warm cream ground, one accent (deep blue-teal) with soft tints,
   Lucide icons on every area, topic and section.
   Type: 14 label, 16 note, 18 body, 22 card title, 28 page title. Weights 400 and 700 only. */
:root {
  --ground: #f5f1e8; --ink: #1f2629; --muted: #5b6468; --card: #ffffff;
  --line: rgba(31, 38, 41, 0.12); --soft: #f8f5ee;
  --accent: #1d5c73; --accent-2: #2f7f96; --accent-soft: #e2eef2; --accent-tint: #eef5f7;
  --warm: #b5653a; --warm-soft: #f7ebe2;
  --shadow: 0 1px 2px rgba(20, 30, 36, 0.05), 0 8px 24px rgba(20, 30, 36, 0.07);
  --font: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", monospace;
  --r: 16px;
  --read: 700px; /* about 65 characters of 18px text */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.7; letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; line-height: 1.25; margin: 0; text-wrap: balance; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
b, strong { font-weight: 700; }
em, i { font-style: normal; }
.hidden { display: none !important; }
.label { font-size: 14px; color: var(--muted); font-weight: 700; }
.note { font-size: 16px; color: var(--muted); }
svg.lucide { width: 1em; height: 1em; flex: 0 0 auto; }

/* Round icon badge, used on tiles, topic heads and the password screen */
.badge { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 24px; flex: 0 0 auto; }
.badge.big { width: 64px; height: 64px; border-radius: 18px; font-size: 32px; }
.secLabel { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--accent); }
.secLabel svg { font-size: 20px; }

/* ---------- Password ---------- */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: linear-gradient(145deg, var(--accent), var(--accent-2)); }
.gatePanel { width: 100%; max-width: 460px; background: var(--card); border-radius: 22px; padding: 30px 26px; box-shadow: 0 18px 50px rgba(10, 20, 26, 0.3); }
.gatePanel .badge { margin-bottom: 14px; }
.gatePanel h2 { font-size: 28px; color: var(--accent); margin: 0 0 6px; }
.gateRow { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.gateInput { flex: 1; min-width: 160px; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 18px; background: #fff; }
.gateInput:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.gateRow .btn { min-height: 50px; padding: 0 26px; }
.gateError { color: var(--warm); font-size: 16px; font-weight: 700; margin: 12px 0 0; }

/* ---------- Frame ---------- */
.app { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 24px; background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff; }
.headerText { text-decoration: none; flex: 1 1 0; min-width: 0; }
.header h1 { font-size: 28px; }
.header .tagline { font-size: 16px; opacity: .92; line-height: 1.4; margin-top: 2px; }
.header .sub { font-size: 14px; opacity: .82; line-height: 1.4; }
.navToggle { display: none; flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; border-radius: 999px; font-size: 20px; line-height: 1; align-items: center; justify-content: center; }

/* The three areas, like the tabs in the new Copilot */
.areas { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.14); }
.area { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; text-decoration: none; font-weight: 700; color: rgba(255,255,255,.9); }
.area svg { font-size: 18px; }
.area:hover { background: rgba(255,255,255,.14); }
.area.active { background: #fff; color: var(--accent); }

.workspace { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.nav { position: sticky; top: 110px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; padding: 18px 14px 40px; border-right: 1px solid var(--line); }
.canvas { padding: 30px 36px 64px; min-width: 0; max-width: 1100px; }
.loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--ground); color: var(--muted); }

/* ---------- Topic menu ---------- */
.navTop { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.search { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 18px; }
.search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.navClose, .navBackdrop { display: none; }
.navArea { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; padding: 0 12px; font-weight: 700; font-size: 22px; color: var(--accent); }
.navArea:first-child { margin-top: 6px; }
/* Menu group headings: copied from her Dyslexia app (her pick, 2026-09-30). The one place capitals are allowed. */
.navGroup { margin: 16px 0 4px; padding: 0 12px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.navItem { display: flex; gap: 12px; align-items: center; width: 100%; text-decoration: none; border-radius: 12px; padding: 8px 12px; min-height: 46px; line-height: 1.35; font-size: 17px; }
.navItem svg { font-size: 20px; color: var(--accent); }
.navItem:hover { background: rgba(31, 38, 41, 0.05); }
.navItem.active { background: #fff; box-shadow: inset 3px 0 0 var(--accent), var(--shadow); }
.navEmpty { padding: 12px; }

/* ---------- Area page ---------- */
.hero { display: flex; gap: 22px; align-items: flex-start; margin: 0 0 32px; padding: 28px 30px; border-radius: 22px; color: #fff; background: linear-gradient(130deg, var(--accent), var(--accent-2)); box-shadow: var(--shadow); }
.hero .badge { background: rgba(255,255,255,.18); color: #fff; }
.hero h2 { font-size: 28px; margin: 2px 0 10px; }
.hero p { max-width: 62ch; }
.hero .status { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.14); font-size: 16px; }
.hero .status svg { font-size: 20px; margin-top: 3px; }
.shelf { margin: 0 0 34px; }
.shelf > .label { margin: 0 0 12px; font-size: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tile { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile h3 { font-size: 22px; color: var(--accent); margin: 2px 0 6px; }
.tile .note { margin: 0; }

/* ---------- Topic page ---------- */
.topicHead { display: flex; gap: 18px; align-items: flex-start; margin: 0 0 22px; max-width: var(--read); }
.topicHead h2 { font-size: 28px; color: var(--accent); margin: 2px 0 8px; }
.bigIdea { font-size: 18px; line-height: 1.6; }
.block { margin: 0 0 30px; max-width: var(--read); }
.intro { padding: 16px 20px; border-radius: 14px; background: var(--accent-tint); }
.steps { display: grid; gap: 12px; }
.step { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.step .n { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 999px; background: linear-gradient(140deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 18px; margin: 5px 0 4px; }
.step p { margin: 0; }

.prompts { display: grid; gap: 14px; }
.prompt { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.prompt h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 10px; }
.prompt h3 svg { color: var(--accent); font-size: 20px; }
.prompt .text { background: var(--accent-tint); border-radius: 12px; padding: 14px 16px; margin: 0 0 12px; white-space: pre-wrap; }
.prompt .code { font-family: var(--mono); font-size: 16px; line-height: 1.6; overflow-x: auto; white-space: pre; background: #1f2d33; color: #e8f1f3; }
.prompt .foot { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.prompt .credit { flex: 1 1 200px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; }
.btn.ghost { background: #fff; color: var(--accent); }
.btn.done { background: var(--accent-soft); color: var(--accent); }
.practice { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); margin: 0 0 14px; max-width: var(--read); }
.panel ul { margin: 0; padding-left: 0; list-style: none; }
.panel li { display: flex; gap: 10px; margin: 0 0 10px; }
.panel li:last-child { margin-bottom: 0; }
.panel li > svg { font-size: 20px; margin-top: 4px; }
.panel.watch { background: var(--warm-soft); border-color: transparent; box-shadow: none; }
.panel.watch .secLabel, .panel.watch li > svg { color: var(--warm); }
.sources li { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.sources li:last-child { border-bottom: 0; }
.sources li > svg { color: var(--accent); }
.sources a { font-weight: 700; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.sources a:hover { color: var(--accent); }

/* ---------- Simple / Advanced ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 24px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.tab { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; border-radius: 999px; padding: 0 22px; min-height: 44px; font-weight: 700; font-size: 16px; color: var(--muted); }
.tab.active { background: var(--accent); color: #fff; }

/* ---------- Phone ---------- */
@media (max-width: 900px) {
  .header { flex-wrap: wrap; padding: 10px 16px; gap: 10px 12px; }
  .header h1 { font-size: 22px; }
  .navToggle { display: flex; }
  .areas { order: 3; width: 100%; }
  .area { flex: 1; justify-content: center; padding: 0 8px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .nav { position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; width: min(86vw, 340px); height: 100vh; height: 100dvh; max-height: none; background: var(--ground); border-right: 1px solid var(--line); transform: translateX(-102%); transition: transform .2s ease; }
  .nav.open { transform: none; }
  .nav { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; height: 100dvh; }
  .navClose { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; border-radius: 999px; }
  .navBackdrop { position: fixed; inset: 0; z-index: 30; background: rgba(18, 24, 28, .35); display: none; touch-action: none; }
  .navBackdrop.open { display: block; }
  .canvas { padding: 18px 16px 48px; }
  .hero { flex-direction: column; gap: 14px; padding: 22px 20px; }
  .topicHead { gap: 14px; }
  .topicHead .badge.big { width: 52px; height: 52px; font-size: 26px; }
  .topicHead h2, .hero h2 { font-size: 22px; }
  .step, .prompt, .panel, .tile { padding: 16px; }
  .step { gap: 12px; }
  .step .n { flex-basis: 34px; width: 34px; height: 34px; font-size: 16px; }
}

/* ---------- Inside a step: click paths and points ---------- */
.stepBody { min-width: 0; flex: 1; }
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin: 8px 0 2px; }
.path svg { color: var(--muted); font-size: 16px; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 2px 12px; border-radius: 10px; background: var(--accent-tint); border: 1px solid var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 16px; line-height: 1.4; }
.points { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.points li { display: flex; gap: 10px; align-items: flex-start; }
.points li svg { color: var(--accent); font-size: 20px; margin-top: 5px; }
.after { margin: 8px 0 0 !important; }

/* ---------- Wayfinding Map: like the Course Journey in Spardha Music ---------- */
.navItem.navFixed { font-weight: 700; color: var(--accent); }
.navItem.navFixed + .navArea { margin-top: 18px; }
.journeyHead { margin: 0 0 22px; max-width: var(--read); }
.journeyHead h2 { font-size: 28px; color: var(--accent); margin: 0 0 8px; }
.journeyGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.journeyTile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.journeyTile:hover { border-color: var(--accent); transform: translateY(-2px); }
.journeyTile h3 { font-size: 22px; color: var(--accent); }
.journeyTile .note { margin: 2px 0 0; line-height: 1.55; }
@media (max-width: 1100px) { .journeyGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .journeyGrid { grid-template-columns: minmax(0, 1fr); gap: 12px; } .journeyTile { padding: 18px; } .journeyHead h2 { font-size: 22px; } }

/* Collapsible area bars on the Wayfinding Map */
.journeyGroup { margin: 0 0 16px; border-radius: 20px; background: var(--accent-tint); border: 1px solid var(--accent-soft); overflow: hidden; }
.groupBar { display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; color: #fff; background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
.groupBar::-webkit-details-marker { display: none; }
.groupBar .badge { background: rgba(255,255,255,.18); color: #fff; }
.groupText { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.groupName { font-size: 22px; font-weight: 700; line-height: 1.3; }
.groupSub { font-size: 16px; opacity: .9; }
.groupToggle { display: flex; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 999px; align-items: center; justify-content: center; background: rgba(255,255,255,.16); font-size: 22px; transition: transform .2s ease; }
.journeyGroup[open] .groupToggle { transform: rotate(180deg); }
.groupBar:focus-visible { outline: 3px solid var(--warm); outline-offset: -3px; }
.groupBody { padding: 6px 22px 24px; }
.shelfHead { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; font-size: 18px; font-weight: 700; color: var(--accent); }
.shelfHead::after { content: ""; flex: 1; height: 1px; background: var(--accent-soft); }
@media (max-width: 600px) {
  .groupBar { padding: 12px 14px; gap: 12px; }
  .groupBar .badge { width: 40px; height: 40px; font-size: 20px; border-radius: 12px; }
  .groupBody { padding: 4px 12px 16px; }
  .groupName { font-size: 20px; }
  .groupLine { display: none; } /* on the phone the bar shows only the counts, so it stays one line */
}
@media (max-width: 420px) { .area svg { display: none; } .area { font-size: 15px; padding: 0 4px; } }

/* ---------- The ladder of autonomy (adapted from her AI Learning app, 2026-10-02): rails on both sides ---------- */
.ladder { max-width: var(--read); }
.ladderEnd { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); margin: 0 0 8px 4px; }
.ladderEnd svg { color: var(--accent); font-size: 16px; }
.rungs { list-style: none; margin: 0 0 8px; padding: 4px 16px; border-left: 6px solid var(--accent-2); border-right: 6px solid var(--accent-2); border-radius: 6px; }
.rungs li { margin: 10px 0; }
.rung { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; position: relative; }
.rung::before, .rung::after { content: ""; position: absolute; top: 50%; width: 16px; height: 4px; background: var(--accent-2); }
.rung::before { left: -17px; } .rung::after { right: -17px; }
a.rung:hover { border-color: var(--accent); }
.rung > svg { font-size: 22px; color: var(--accent); }
.rungNum { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.rungText { min-width: 0; display: flex; flex-direction: column; }
.rungTitle { font-weight: 700; color: var(--accent); line-height: 1.35; }
.rungTag { font-weight: 400; color: var(--muted); font-size: 16px; }
.rungAdds { font-size: 16px; color: var(--muted); line-height: 1.5; }
.rungTags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.actsTag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; border: 1px solid var(--line); }
.actsTag svg { font-size: 15px; }
.actsTag.you { background: var(--accent-tint); color: var(--accent); }
.actsTag.mixed { background: var(--soft); color: var(--muted); }
.actsTag.own { background: var(--warm-soft); color: #8a4a26; border-color: rgba(181,101,58,.3); }
.ladderNote { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; }
.ladderNote svg { color: var(--accent); font-size: 20px; margin-top: 3px; flex: 0 0 auto; }

/* ---------- Side by side: two stacks (declarative vs custom engine agents) ---------- */
.block.wide { max-width: none; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.compareCard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.compareHead { display: flex; gap: 14px; align-items: center; margin: 0 0 14px; }
.compareHead h3 { font-size: 22px; color: var(--accent); }
.compareHead .note { display: block; }
.stack { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.layer { border-radius: 12px; padding: 10px 14px; background: var(--soft); border: 1px solid var(--line); }
.layer .label { display: block; margin-bottom: 6px; }
.layerChips { display: flex; flex-wrap: wrap; gap: 6px; }
.layer .chip { background: #fff; }
.layer.engine { background: var(--accent); border-color: var(--accent); }
.layer.engine .label { color: #fff; }
.layer.engine .chip { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); color: #fff; }
.compareCard .points li { font-size: 16px; line-height: 1.5; }
@media (max-width: 900px) {
  .compare { grid-template-columns: minmax(0, 1fr); }
  .rungs { padding: 2px 10px; }
  .rung { padding: 10px 12px; gap: 10px; }
  .rung::before { left: -11px; width: 10px; } .rung::after { right: -11px; width: 10px; }
  .areas { gap: 2px; } .area { padding: 0 4px; font-size: 15px; gap: 5px; }
}

/* Key words: term on its own line, meaning under it */
.terms { margin: 0; display: grid; gap: 10px; }
.terms > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.terms dt { font-weight: 700; color: var(--accent); }
.terms dd { margin: 2px 0 0; }
.groupBody > .ladder { margin-top: 18px; }

/* ---------- Collapsible groups in the left menu (2026-10-11, as in AI Learning): closed at first, the current topic's group opens ---------- */
.navBox { margin: 0; }
summary.navGroup { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 2px; padding: 10px 12px; min-height: 44px; border-radius: 12px; cursor: pointer; list-style: none; }
summary.navGroup::-webkit-details-marker { display: none; }
summary.navGroup:hover { background: rgba(31, 38, 41, 0.05); }
summary.navGroup:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
summary.navGroup svg { flex: 0 0 auto; font-size: 18px; color: var(--muted); transition: transform .2s ease; }
.navBox[open] > summary.navGroup svg { transform: rotate(180deg); }
.navBox[open] > summary.navGroup { color: var(--accent); }
.navBox[open] > summary.navGroup svg { color: var(--accent); }
.navBox[open] { padding-bottom: 6px; }

/* ---------- Easy way back to the Wayfinding Map (her ask, October 18, 2026) ---------- */
.headerText { display: block; min-height: 44px; color: inherit; }
.mapFab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 25; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 24px; border-radius: 999px; background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; box-shadow: 0 8px 24px rgba(18, 24, 28, .28); }
.mapFab svg { font-size: 22px; }
.mapFab:hover { filter: brightness(1.08); }
.mapFab:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }
.canvas { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.backToMap { display: flex; width: fit-content; min-height: 52px; margin: 28px 0 0; padding: 0 24px; font-size: 18px; background: var(--accent-tint); border-width: 2px; }
.backToMap svg { font-size: 22px; }
.backToMap:hover { background: var(--accent-soft); }
@media (max-width: 600px) { .backToMap { width: 100%; } }

/* ---------- The sneak peek (2026-10-18): the real map, faded and not clickable, under an invitation card ---------- */
.gatePanel .label { margin: 0 0 6px; }
.gatePanel .noKey a, .gatePanel .peekSelf a { color: var(--accent); font-weight: 700; }
body:not(.peek) .peekOnly { display: none; }
body.peek .gateOnly { display: none; }
#peekSlot .gatePanel { max-width: 640px; margin: 0 0 32px; border: 1px solid var(--accent-soft); box-shadow: 0 18px 50px rgba(10, 20, 26, 0.16); }
body.peek .journeyTile, body.peek .navItem, body.peek .area { pointer-events: none; }
body.peek .journeyTile { opacity: .55; filter: saturate(.75); }
body.peek .navItem, body.peek .area { opacity: .6; }
body.peek .mapFab { display: none; }

/* ---------- Welcome, her Home page (2026-10-24): the banner, the 4 areas, her favorite skills, then the map ---------- */
.homeBlock { margin: 0 0 36px; }
.homeHead { display: flex; align-items: center; gap: 10px; font-size: 22px; color: var(--accent); margin: 0 0 4px; }
.homeHead svg { font-size: 26px; }
.homeLine { margin: 0 0 16px; max-width: var(--read); color: var(--muted); }
.homeTiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1100px; }
.homeTile { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
a.homeTile:hover { border-color: var(--accent); transform: translateY(-2px); }
.homeTile h3 { font-size: 18px; color: var(--accent); margin: 0 0 4px; line-height: 1.35; }
.homeTileText { display: flex; flex-direction: column; flex: 1; }
.homeTile .note { display: block; flex: 1; }
.homeCount { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--accent); }
.homeCount svg { font-size: 16px; }
.openMap { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 28px; border-radius: 999px; background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; font-size: 22px; text-decoration: none; box-shadow: var(--shadow); margin: 6px 0 40px; }
.openMap svg { font-size: 26px; }
#peekSlot { margin: 8px 0 0; }
@media (max-width: 1200px) { .homeTiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .homeTiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .homeTile { flex-direction: row; align-items: flex-start; padding: 16px; }
  .openMap { font-size: 18px; width: 100%; justify-content: center; padding: 0 18px; }
}
/* ---------- Download PDF (her ask, 2026-11-01): a button beside the tabs, then a small card ---------- */
.topicBar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 28px; }
.topicBar .tabs { margin: 0; }
.pdfBtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 20px; border-radius: 999px; background: #fff; border: 2px solid var(--accent); color: var(--accent); font-weight: 700; box-shadow: var(--shadow); }
.pdfBtn:hover { background: var(--accent-tint); }
.pdfBtn svg { font-size: 18px; }
.pdfShade { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 24, 28, .45); }
.pdfCard { width: min(100%, 440px); background: var(--card); border-radius: 20px; padding: 26px; box-shadow: 0 20px 60px rgba(10, 20, 26, .3); }
.pdfHead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pdfHead h3 { font-size: 22px; color: var(--accent); }
.pdfAsk { font-weight: 700; margin-bottom: 10px; }
.pdfPick { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); cursor: pointer; }
.pdfPick input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.pdfPick svg { font-size: 20px; color: var(--accent); }
.pdfStatus { min-height: 27px; margin: 10px 0; }
.pdfActions { display: flex; gap: 10px; flex-wrap: wrap; }
.pdfGo { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 auto; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; }
.pdfGo svg { font-size: 20px; }
.pdfCancel { min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--muted); }
.pdfGo:disabled, .pdfCancel:disabled { opacity: .55; cursor: default; }
@media (max-width: 900px) {
  .topicBar .tabs { width: 100%; justify-content: center; }
  .pdfBtn { width: 100%; justify-content: center; }
}
.pdfGo:focus-visible, .pdfCancel:focus-visible, .pdfBtn:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
/* ---------- Download all as PDF (her ask, 2026-11-01): last in the menu and at the end of the map ---------- */
.navPdfAll { border: 0; background: transparent; text-align: left; cursor: pointer; margin-top: 18px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; padding-top: 14px; }
.pdfAllWrap { margin: 28px 0 8px; }
