/* web/app.css
   The pages' styles (checkpoint 2 plan, C2.5b). Tokens and the quiet surfaces come from the hackathon's brand.css
   (pollen-hack/artifacts/pollen/src/brand.css: colors, buttons, panels, tables); the layout is our own. The look follows
   pollenpass.com, kept quiet: a pearl page with a still wash of the brand colors, gold pills for the main action, and the
   site's type (Cormorant Garamond italic for titles and the wordmark, DM Sans for the rest). The fonts are served from
   this origin (src/http/pages.ts, font-src 'self'), so the policy still loads nothing from elsewhere; until one arrives,
   the system's own stands in. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
}
:root {
  --brand-pearl: hsl(40 20% 98%);
  --brand-paper: hsl(40 15% 96%);
  --brand-sand: hsl(35 20% 90%);
  --brand-ink: hsl(30 10% 15%);
  --brand-muted: hsl(30 4% 43%);
  --brand-gold: hsl(44 95% 58%);
  --brand-gold-soft: hsl(46 90% 80%);
  --brand-gold-deep: hsl(38 90% 42%);
  --brand-lilac: hsl(280 40% 85%);
  --brand-blush: hsl(320 35% 88%);
  --brand-sky: hsl(200 35% 88%);
  --brand-chrome: linear-gradient(90deg, var(--brand-lilac), var(--brand-blush), var(--brand-gold-soft), var(--brand-sky));
  --line: hsl(30 10% 15% / 0.1);
  --app-font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --app-font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --app-font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --surface: hsl(0 0% 100% / 0.82);
  --glow: 0 0 24px 2px hsl(44 95% 58% / 0.55);
  /* The map's person colors (the prototype's four, in the team's order; web/map.js cycles them lighter past four), a
     removed teammate's grey, and the hover label's pill. */
  --map-p1: hsl(205 70% 52%);
  --map-p2: hsl(280 55% 60%);
  --map-p3: hsl(150 50% 42%);
  --map-p4: hsl(18 85% 58%);
  --map-former: hsl(30 4% 62%);
  --map-pill: hsl(30 10% 13%);
  --map-pill-ink: hsl(40 20% 97%);
}

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

[hidden] {
  display: none !important;
}

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

/* Pearl, with the site's wash held still: lilac top right, gold near the title, sky bottom left. */
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(60vw 50vh at 100% 0%, hsl(280 40% 85% / 0.45), transparent 70%),
    radial-gradient(45vw 35vh at 25% 12%, hsl(46 90% 80% / 0.35), transparent 70%),
    radial-gradient(60vw 50vh at 0% 100%, hsl(200 35% 88% / 0.55), transparent 70%),
    var(--brand-pearl);
  background-attachment: fixed;
  color: var(--brand-ink);
  font: 15px/1.55 var(--app-font-sans);
}

.topbar {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand-chrome);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--app-font-display);
  font-style: italic;
  font-size: 24px;
  font-weight: 500;
}
/* The member web app's nav (Memories, Team, AI tools), after the brand: the page shown underlined in gold. */
.topnav {
  display: flex;
  align-self: stretch;
  gap: 4px;
  margin-left: 28px;
}
.topnav-link {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 2px solid transparent;
  color: var(--brand-muted);
  font: 500 14px/1 var(--app-font-sans);
  text-decoration: none;
  white-space: nowrap;
}
.topnav-link:hover {
  color: var(--brand-ink);
}
.topnav-link[aria-current="page"] {
  color: var(--brand-ink);
  border-bottom-color: var(--brand-gold);
}
.topnav-link:focus-visible {
  outline: 2px solid var(--brand-gold-deep);
  outline-offset: -2px;
}
/* The setup page's account: the email, then the team, small and grey, in the header's top right. */
.account {
  margin: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--brand-muted);
  text-align: right;
}
.account[hidden] {
  display: none;
}
.account span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* The bee is 16x16 pixel art: drawn at exactly twice its grid so every pixel stays square and sharp. */
.bee {
  display: block;
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.card {
  margin: 40px auto 64px;
  padding: 0 20px;
}
.card.narrow {
  max-width: 560px;
}
.card.wide {
  max-width: 880px;
}

h1 {
  font-family: var(--app-font-display);
  font-style: italic;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 14px;
}
h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 0 0 12px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 8px;
}
p {
  margin: 0 0 12px;
}
/* A heading that has to wrap splits into even lines; a paragraph never ends on one lone word (Georgia, 11/10). */
h1,
h2 {
  text-wrap: balance;
}
p,
li {
  text-wrap: pretty;
}
/* The line under a short page's title: the next thing to read after it (Georgia, 11/10). */
.lead {
  font-size: 17px;
  color: var(--brand-ink);
}
.muted {
  color: var(--brand-muted);
}
/* The setup page's two intro lines read as one paragraph. */
#memory {
  margin-bottom: 0;
}
.warning {
  background: hsl(46 80% 95%);
  color: hsl(38 50% 28%);
  border-left: 3px solid var(--brand-gold-deep);
  padding: 10px 14px;
  border-radius: 6px;
}

code,
pre {
  font-family: var(--app-font-mono);
  font-size: 13px;
}
code {
  background: var(--brand-paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px 22px;
  margin: 20px 0;
}
.inset {
  background: var(--brand-pearl);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px 18px;
  margin: 16px 0;
}

.copyable {
  position: relative;
  margin: 0 0 12px;
}
.block {
  margin: 0;
  padding: 12px 14px;
  background: var(--brand-pearl);
  border: 1px solid var(--line);
  border-radius: 7px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 320px;
  overflow: auto;
}
.block.prompt {
  font-family: var(--app-font-sans);
  font-size: 14px;
}
.copy {
  margin-top: 8px;
}

/* The main action is the site's glowing gold pill; the rest are quiet outlined pills, like its chips. */
.primary-button,
.secondary-button {
  font: 500 14px var(--app-font-sans);
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.primary-button {
  background: var(--brand-gold);
  color: var(--brand-ink);
  border: 1px solid transparent;
  font-weight: 600;
  box-shadow: var(--glow);
}
.primary-button:hover:not(:disabled) {
  background: var(--brand-gold-soft);
}
.primary-button:active:not(:disabled),
.secondary-button:active:not(:disabled) {
  transform: scale(0.97);
}
.secondary-button {
  border: 1px solid hsl(30 10% 15% / 0.3);
  background: hsl(0 0% 100% / 0.6);
  color: var(--brand-ink);
  font-size: 13px;
  padding: 7px 14px;
}
.secondary-button:hover:not(:disabled) {
  background: #fff;
  border-color: hsl(30 10% 15% / 0.6);
}
.primary-button:disabled,
.secondary-button:disabled {
  background: var(--brand-paper);
  color: hsl(30 4% 60%);
  border-color: var(--line);
  box-shadow: none;
  cursor: default;
}
/* Keyboard focus: the site's gold ring on the main action, its dashed gold outline everywhere else. */
.primary-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-pearl), 0 0 0 5px hsl(38 90% 42% / 0.7), var(--glow);
}
.secondary-button:focus-visible,
.subtle-link:focus-visible,
summary:focus-visible,
input:not([type="radio"]):not([type="checkbox"]):focus-visible {
  outline: 2px dashed var(--brand-gold-deep);
  outline-offset: 3px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.subtle-link {
  color: var(--brand-muted);
}
/* The privacy policy link: the sign-in page's last line and the setup page's footer (decision 39). */
/* Always the smallest, lightest text on its page (Georgia, 11/10). */
.fine {
  margin: 24px 0 0;
  font-size: 12px;
  color: var(--brand-muted);
}
.page-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--brand-muted);
}

/* The short pages (sign-in, Sign-in stopped) sit centered, like pollenpass.com's opening screen (Georgia, 11/10). */
.card.center {
  max-width: 640px;
  margin-top: 14vh;
  text-align: center;
}
.card.center .actions {
  justify-content: center;
  margin-top: 28px;
}
/* The sign-in page's hierarchy (Georgia, 11/10): the promise, the grey line, then 40px, the work-account hint over the button. Scoped to the sign-in page: the setup page's header also has an #account. */
[data-page="sign-in"] #body,
[data-page="sign-in"] #account {
  font-size: 18px;
  color: var(--brand-ink);
  text-wrap: balance;
}
[data-page="sign-in"] #body {
  margin: 18px 0 0;
}
[data-page="sign-in"] #account {
  margin: 0;
}
.card.center .sign-in-actions {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}
[data-page="sign-in"] #work-account {
  font-size: 13px;
  margin: 0;
}
.card.center .message {
  text-align: left;
}

/* Sign in with Google, in Google's light style, which its branding rules require for app verification
   (developers.google.com/identity/branding-guidelines): white fill, a 1px #747775 border, #1f1f1f words, the standard
   color G on white at 20px. Pill-shaped like the other buttons; never gold. The G is Google's own, cropped from the light
   icon in its sign-in asset bundle (THIRD_PARTY_NOTICES.md); the policy allows data: images. */
.google-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #747775;
  color: #1f1f1f;
  font: 500 14px/20px var(--app-font-sans);
  cursor: pointer;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}
.google-button::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: url("data:image/png;base64,iVBORw0KGgoAAAAN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9M6JiGWlL2MQn+tKdsRpn7SAiLTXmH/TQLwsDx8sjBJALZAJmsMS+2zSxecare8fLUt13/80w3XVYB0aG/9Ofvyljvstu0/so0Cme9I4hyogTqIDCPLGEpACkxoMlDCoeVTAH0aA40LEAAnpnIGya3eRPiS+cvsQ2e/wi5d2N1f0ncdIIPFbRndZf+9e4P9/cavyyKf8anL7pwBuhUp32TQsjUi252ACVqUYfoGQKwQgM0kWeuaadqunr/C/vrM1W557XV1JzZtAMvdu+vJn9jXtq+xbz/5MweorVADLOdoD/thOrbeVkJAI6qQwEVxrA+LDCsMi+vVk5xBu3H5JbZ6/ul26YnLWnVMR+CYAMwdf7a+z9YMP2zf2fVTu2/4EXtCU/xAKzvQKnN5UiI1LNGtWfCGemfbuXOW6ZHYmXbJ/BfLr5goMs2hYwqwcyw8bVm/d7Otk//Fc5sNwOiGJZ+t8U0zwGRg+hvqm23zembZ3L5Zdt6cpTZXzwvPE7SVc5fqsdf8SZ8fdrY3HfH/B316Y8ybOvF1AAAAAElFTkSuQmCC") center / 20px 20px no-repeat;
}
.google-button:hover:not(:disabled) {
  background: #f8f9fa;
  box-shadow: 0 1px 3px hsl(0 0% 0% / 0.15);
}
.google-button:disabled {
  opacity: 0.6;
  cursor: default;
}
.google-button:focus-visible {
  outline: 2px dashed var(--brand-gold-deep);
  outline-offset: 3px;
}

/* The privacy policy page (web/privacy.html, built from docs/legal/privacy.md). */
.policy h2 {
  margin-top: 28px;
}
.policy ul {
  margin: 0 0 12px;
  padding-left: 20px;
}
.policy li {
  margin-bottom: 8px;
}
/* The date line under the title: smaller and in italic (Georgia, 11/10). */
.policy .updated {
  font-size: 13px;
  font-style: italic;
  color: var(--brand-muted);
}

.message {
  background: hsl(280 25% 96%);
  color: hsl(280 10% 30%);
  border: 1px solid hsl(280 20% 88%);
  border-radius: 7px;
  padding: 10px 14px;
}
.status {
  color: var(--brand-muted);
}

/* How Pollen works (notice version 3): what a memory is, the two kinds side by side, "Good to know", then an example
   behind "See an example". On the Allow page it follows a rule, not a box (Georgia, 11/10), below Allow and Cancel (Daniel, 11/17). */
[data-page="consent"] .notice {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
}
.notice-kinds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 12px;
}
.kind {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
}
.kind h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
}
/* The page's only icons (Georgia, 11/10): people for Work, a lock for Personal. */
.kind-icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kind p {
  margin: 0;
  font-size: 14px;
}
/* Equal tiles, neither looks selected: a soft tint each from the page's colors, gold and lilac, with one border. */
.kind.work {
  background: hsl(46 90% 91%);
  color: hsl(38 55% 22%);
}
.kind.personal {
  background: hsl(280 40% 93%);
  color: hsl(280 25% 26%);
}
/* "To switch, just say:" and the user's bubble from the example, still: one sentence, no animation. */
.notice-switch {
  margin: 0 0 16px;
}
/* "just say:" and the bubble never part across a line break. */
.notice-tail {
  white-space: nowrap;
}
.bubble.static {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
  animation: none;
}
.notice-list {
  padding-left: 20px;
  margin: 0 0 16px;
}
.notice-list li {
  margin-bottom: 8px;
}
.example {
  margin: 0 0 16px;
}
.example summary,
.off summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 600;
  color: hsl(38 70% 30%);
}
.off {
  margin-top: 2px;
}
.off summary {
  font-size: 14px;
  font-weight: 500;
}
.off p {
  margin: 4px 0 0;
  font-size: 14px;
}
.example summary:focus-visible,
.off summary:focus-visible {
  outline: 2px solid var(--brand-gold-deep);
  outline-offset: 2px;
  border-radius: 4px;
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--brand-paper);
  border-radius: 12px;
}
.bubble {
  max-width: 85%;
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.bubble.you {
  align-self: flex-end;
  background: var(--brand-sand);
}
.bubble.ai {
  align-self: flex-start;
  background: hsl(0 0% 100%);
  border: 1px solid var(--line);
}
.bubble ul {
  margin: 2px 0 0;
  padding-left: 18px;
}
.bubble ul ul {
  margin: 0;
}
.bubble .pollen {
  font-weight: 600;
  color: hsl(38 70% 30%);
}
/* Each opening plays the chat in, one message after another; with reduced motion they're all there at once. */
.example[open] .bubble {
  animation: bubble-in 0.4s ease-out both;
}
.example[open] .bubble:nth-child(1) {
  animation-delay: 0.1s;
}
.example[open] .bubble:nth-child(2) {
  animation-delay: 0.6s;
}
.example[open] .bubble:nth-child(3) {
  animation-delay: 1.2s;
}
.example[open] .bubble:nth-child(4) {
  animation-delay: 1.7s;
}
@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.example .caption {
  margin: 10px 0 0;
  font-size: 14px;
}
/* The line above the one button: clicking it records that the notice was read (no checkbox, Georgia, 11/10). */
.notice-confirm {
  font-size: 14px;
  margin: 0 0 4px;
}
/* On the Allow page the line sits above Allow and Cancel: space above it, close to the buttons, so it reads with Allow,
   not with who is signed in (Daniel, 11/18). */
[data-page="consent"] .notice-confirm {
  margin: 24px 0 0;
}
[data-page="consent"] .notice-confirm:not([hidden]) + .actions {
  margin-top: 10px;
}
/* Read by a screen reader, not shown: who says each line of the example. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 480px) {
  .notice-kinds {
    grid-template-columns: 1fr;
  }
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.check input {
  accent-color: var(--brand-gold-deep);
  width: 16px;
  height: 16px;
}

.table-wrap {
  overflow-x: auto;
}
.connections {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.connections th {
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  color: var(--brand-muted);
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
}
.connections td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
}
/* Connected tools: a closed panel under the steps; the summary is the label, like the steps' "Run the command yourself". */
.connections-box summary {
  cursor: pointer;
  width: fit-content;
  font-weight: 500;
}
/* The heading sits inside the summary, so the label stays a heading for screen readers and looks as before. */
.connections-box summary h2 {
  display: inline;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
}
#setup-status:empty {
  margin: 0;
}
.connections-box[open] summary {
  margin-bottom: 14px;
}
/* On a phone the table scrolls inside its box rather than splitting words or the button. */
.connections .secondary-button {
  white-space: nowrap;
}

/* The AI tools page (web app v1): the tool list on the left, the chosen tool's guide on the right. */
.card.wide.tools-page {
  max-width: 1040px;
}
.tools-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 24px;
}
.toollist-col {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 8px;
}
/* The count sits under the list. */
.toollist-col .muted {
  margin: 0;
  font-size: 13px;
}
.toollist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toollist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--brand-ink);
  font: 500 14px var(--app-font-sans);
  text-align: left;
  cursor: pointer;
}
.toollist-item:hover {
  border-color: hsl(30 10% 15% / 0.22);
}
/* The tool whose guide shows: a gold outline and bold name. */
.toollist-item[aria-pressed="true"] {
  border-color: var(--brand-gold-deep);
  box-shadow: 0 0 0 1px var(--brand-gold-deep);
}
.toollist-item:focus-visible {
  outline: 2px dashed var(--brand-gold-deep);
  outline-offset: 3px;
}
.toollist-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.toollist-item .tool-name {
  font-size: 15px;
}
/* The status pill: grey until the tool connects, green after. */
.pill {
  flex: none;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--brand-paper);
  color: var(--brand-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pill.on {
  background: hsl(140 40% 92%);
  border-color: hsl(140 35% 68%);
  color: hsl(140 45% 22%);
}
/* A tool that has just connected: its pill turns green with one small pop. */
@keyframes pill-on {
  from {
    background: var(--brand-paper);
    transform: scale(0.8);
  }
  60% {
    transform: scale(1.12);
  }
  to {
    background: hsl(140 40% 92%);
    transform: scale(1);
  }
}
.pill.just-on {
  animation: pill-on 600ms ease-out;
}
/* The list's last item: dashed, never a tool, it reopens the question. */
.toollist-add {
  justify-content: center;
  border-style: dashed;
  background: none;
  color: var(--brand-muted);
  font-size: 13px;
}
.toollist-add:hover {
  color: var(--brand-ink);
}

/* The guide: its title, a connected tool's green line, then the steps. */
.guide-title {
  font-family: var(--app-font-display);
  font-style: italic;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 4px;
}
.tool-status {
  margin: 12px 0 16px;
}
.connected-line {
  margin: 0;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid hsl(140 35% 68%);
  background: hsl(140 40% 94%);
  color: hsl(140 45% 22%);
  font-weight: 600;
}
.again-line {
  margin: 12px 0 0;
  font-size: 14px;
}
.again {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: var(--brand-gold-deep);
  text-underline-offset: 3px;
  cursor: pointer;
}
/* Menu paths in a step drawn as chips, a › between each. */
.path {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 4px;
  vertical-align: baseline;
}
.chip {
  position: relative;
  padding: 1px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
}
.chip + .chip {
  margin-left: 18px;
}
.chip + .chip::before {
  content: "›";
  position: absolute;
  left: -13px;
  color: var(--brand-muted);
  font-weight: 400;
}
.warnline {
  margin: 10px 0 0;
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--brand-gold-soft);
  font-size: 14px;
}
.steps-later {
  margin: 4px 0 16px;
  font-size: 14px;
}
/* If something goes wrong: each fix closed until asked for. */
.help {
  margin-top: 8px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--line);
}
.help h3 {
  margin: 0 0 4px;
  font-size: 15px;
}
.help-item {
  padding: 8px 0;
}
.help-item summary {
  cursor: pointer;
  width: fit-content;
  font-size: 14px;
}
.help-item p {
  margin: 8px 0 0;
  font-size: 14px;
}

.steps-intro {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--brand-muted);
}

/* The question: one large card per tool, native tick boxes inside. */
.picker {
  border: 0;
  margin: 28px 0 0;
  padding: 0;
  min-width: 0;
}
.picker-legend {
  padding: 0;
  margin-bottom: 10px;
  font-weight: 600;
}
.picker-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.tool-card:hover {
  border-color: hsl(30 10% 15% / 0.22);
}
/* The chosen card carries the brand's chrome as its border, the same band as under the header. */
.tool-card:has(input:checked) {
  border-color: transparent;
  background: linear-gradient(var(--brand-pearl), var(--brand-pearl)) padding-box, var(--brand-chrome) border-box;
}
.tool-card:has(input:focus-visible) {
  outline: 2px solid var(--brand-gold-deep);
  outline-offset: 3px;
}
.tool-card input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--brand-gold-deep);
  cursor: pointer;
}
.tool-text {
  display: grid;
  gap: 2px;
}
.tool-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.tool-connected {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-ink);
}
.picker .actions {
  margin-top: 16px;
}
/* Asking for another tool (C3.23): one small grey line under Continue, underlined so it reads as clickable; never the
   page's focus. */
.other-tool {
  margin-top: 12px;
}
.other-open {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.other-open:hover {
  color: var(--brand-ink);
}
.other-form {
  display: grid;
  gap: 6px;
  max-width: 420px;
  margin-top: 4px;
}
.other-label {
  font-size: 14px;
  font-weight: 600;
}
.other-row {
  display: flex;
  gap: 8px;
}
.other-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid hsl(30 10% 15% / 0.25);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
}
.other-form .message {
  margin: 4px 0 0;
}
.other-asked {
  margin: 8px 0 0;
  font-size: 13px;
}
.tool-card:has(input:disabled) {
  cursor: default;
}
.tool-card input:disabled {
  cursor: default;
}
.tool-detail {
  font-size: 13px;
  line-height: 1.4;
  color: var(--brand-muted);
}

/* The chosen tool's guide: numbered step cards. */
.steps {
  margin: 0;
  padding: 24px 26px 10px;
}
.step-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 12px;
}
.step {
  position: relative;
  padding: 16px 18px 16px 62px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--brand-pearl);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-gold);
  font-family: var(--app-font-display);
  font-style: italic;
  font-size: 19px;
  font-weight: 500;
}
.step-line {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  margin: 4px 0 0;
  max-width: 62ch;
}
.copy-prompt {
  margin-top: 14px;
  min-width: 240px;
  padding: 14px 28px;
  font-size: 16px;
}
.peek {
  margin-top: 12px;
}
/* One project (11/18): a small grey line right under Copy prompt, its last words a text button underlined like the
   computer switch, so every project stays the clear default. */
.scope-line {
  margin: 10px 0 0;
  font-size: 14px;
}
.scope-switch {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--brand-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.scope-switch:hover {
  color: var(--brand-ink);
}
.scope-line + .peek {
  margin-top: 4px;
}
.peek summary,
.more-item summary {
  cursor: pointer;
  width: fit-content;
}
.peek summary {
  font-size: 14px;
  color: var(--brand-muted);
}
.peek[open] summary {
  margin-bottom: 10px;
}
.peek .muted {
  font-size: 14px;
}

/* Below the steps, the alternatives: one project, the command on its own, and the steps without Node, each closed
   until asked for. */
.more {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 4px 0;
}
.more > .scope-line {
  margin: 12px 0;
}
.more-item {
  padding: 12px 0;
}
.more-item + .more-item {
  border-top: 1px solid var(--line);
}
.more-item summary {
  font-weight: 500;
}
.more-item[open] summary {
  margin-bottom: 12px;
}
/* This computer (decision 16): the line a switch moves focus to, the switch itself, and the notes under a command. */
.computer-line {
  margin: 0;
}
.computer-line:focus:not(:focus-visible) {
  outline: none;
}
/* A text button, quiet like "See what this does", with a 44px tap target that adds little height around its words. */
.computer-switch {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -6px 0 -2px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--brand-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.computer-switch:hover {
  color: var(--brand-ink);
}
.manual .computer-switch {
  margin: -12px 0 0;
}
.manual .computer-line {
  margin-bottom: 12px;
}
.command-note {
  font-size: 14px;
  margin: 0 0 6px;
}

/* A copy button that worked turns the bee's leaf green for two seconds. */
.primary-button.is-copied,
.secondary-button.is-copied,
.primary-button.is-copied:hover:not(:disabled),
.secondary-button.is-copied:hover:not(:disabled) {
  background: hsl(140 40% 92%);
  border-color: hsl(140 35% 68%);
  color: hsl(140 45% 22%);
  box-shadow: none;
}

.confirm {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
  max-width: 440px;
  color: var(--brand-ink);
  box-shadow: 0 12px 40px hsl(30 10% 15% / 0.12);
}
.confirm::backdrop {
  background: hsl(30 10% 15% / 0.3);
}

/* Narrower than the two columns fit: the list goes above the guide, two tools a row. */
@media (max-width: 820px) {
  .tools-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .toollist-col {
    position: static;
  }
  .toollist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toollist-add {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .topbar {
    padding: 0 16px;
    gap: 12px;
  }
  .account {
    max-width: 55%;
  }
  .topnav {
    margin-left: 4px;
    gap: 0;
  }
  .topnav-link {
    padding: 0 6px;
  }
  .card {
    margin-top: 24px;
  }
  h1 {
    font-size: 34px;
  }
  .panel {
    padding: 16px;
  }
  .picker-cards {
    gap: 10px;
  }
  .tool-card {
    flex-direction: column;
    gap: 8px;
    padding: 14px;
  }
  .tool-name {
    font-size: 17px;
  }
  .steps {
    padding: 20px 16px 4px;
  }
  .step {
    padding: 14px 14px 14px 54px;
  }
  .step::before {
    left: 12px;
  }
  .guide-title {
    font-size: 26px;
  }
  .toollist-item {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
  }
  .toollist-add {
    align-items: center;
    justify-content: center;
  }
  .copy-prompt {
    width: 100%;
    min-width: 0;
  }
  /* Each connection becomes a stacked card: the tool in bold, one muted line, a full-width Disconnect. The table
     markup and its roles stay for screen readers; the header row is hidden visually only. */
  .connections,
  .connections tbody,
  .connections tr,
  .connections td {
    display: block;
  }
  .connections thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .connections tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    row-gap: 2px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .connections tr:last-child {
    border-bottom: 0;
    padding-bottom: 4px;
  }
  .connections td {
    border: 0;
    padding: 0;
  }
  .connections .conn-tool {
    flex-basis: 100%;
    font-size: 15px;
    font-weight: 600;
  }
  .connections .conn-how,
  .connections .conn-used,
  .connections .conn-instructions {
    font-size: 13px;
    color: var(--brand-muted);
  }
  .connections .conn-used,
  .connections .conn-instructions {
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid hsl(30 10% 15% / 0.18);
  }
  .connections .conn-instructions::before {
    content: attr(data-label) " ";
  }
  .connections .conn-action {
    flex-basis: 100%;
    margin-top: 10px;
  }
  .connections .conn-action .secondary-button {
    width: 100%;
    padding: 9px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pill.just-on {
    animation: none;
  }
  .tool-card,
  .primary-button,
  .secondary-button,
  .google-button {
    transition: none;
  }
  .primary-button:active:not(:disabled),
  .secondary-button:active:not(:disabled) {
    transform: none;
  }
  .example[open] .bubble {
    animation: none;
  }
}

/* A phone: the header wraps in two rows, the brand and the account on the first, the nav across the second. */
@media (max-width: 480px) {
  .topbar {
    height: auto;
    flex-wrap: wrap;
    row-gap: 0;
    padding-top: 8px;
  }
  .brand {
    min-height: 36px;
  }
  .account {
    flex: 1 1 0;
    max-width: none;
  }
  .topnav {
    order: 3;
    flex: 1 0 100%;
    height: 40px;
    margin: 4px 0 0 -6px;
  }
}

/* The Memories list (web app v1): the prototype's pageMem list, in the guide's quiet panels. Rows are buttons that open
   a drawer from the right; Undo and errors are a pill at the bottom of the page. */
.mem-panel .mem-title {
  font-size: 34px;
  margin-bottom: 4px;
}
.mem-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 16px 0 12px;
}
.mem-search {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid hsl(30 10% 15% / 0.2);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-ink);
  font: 14px var(--app-font-sans);
}
.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--brand-paper);
}
.seg-button {
  min-height: 34px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--brand-muted);
  font: 500 13px var(--app-font-sans);
  cursor: pointer;
}
.seg-button[aria-pressed="true"] {
  background: #fff;
  color: var(--brand-ink);
  box-shadow: 0 1px 3px hsl(30 10% 15% / 0.15);
}
.seg-button:focus-visible,
.mem-row:focus-visible,
.toast button:focus-visible {
  outline: 2px dashed var(--brand-gold-deep);
  outline-offset: 2px;
}
.seg-button:disabled {
  cursor: default;
}
.mem-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mem-rows li {
  border-top: 1px solid var(--line);
}
.mem-row {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 8px;
  border: 0;
  background: none;
  color: var(--brand-ink);
  font: 15px/1.45 var(--app-font-sans);
  text-align: left;
  cursor: pointer;
  border-radius: 7px;
}
.mem-row:hover {
  background: hsl(0 0% 100% / 0.7);
}
.mem-summary {
  overflow-wrap: anywhere;
}
.mem-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  font-size: 13px;
  color: var(--brand-muted);
}
.mem-tag {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.mem-tag.work {
  background: hsl(46 90% 91%);
  color: hsl(38 55% 22%);
}
.mem-tag.personal {
  background: hsl(280 40% 93%);
  color: hsl(280 25% 26%);
}
.mem-when {
  color: hsl(38 55% 28%);
  font-size: 13px;
}
.mem-empty {
  margin: 12px 0;
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: hsl(30 10% 5% / 0.35);
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  width: min(460px, 100%);
  overflow-y: auto;
  padding: 20px 22px 28px;
  background: var(--brand-pearl);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px hsl(30 10% 5% / 0.15);
}
.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}
.drawer-summary {
  font-family: var(--app-font-display);
  font-style: italic;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.mem-detail,
.mem-link {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mem-link {
  font-family: var(--app-font-mono);
  font-size: 13px;
}
.drawer-note {
  margin: 10px 0 0;
  font-size: 13px;
}
.secondary-button.danger {
  color: hsl(352 70% 36%);
  border-color: hsl(352 50% 50% / 0.45);
}
/* Toasts stack upward from the bottom: one line per pending delete's Undo, so none hides another. */
.toast-slot {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 100%;
  padding: 10px 16px;
  border-radius: 20px;
  background: var(--brand-ink);
  color: var(--brand-pearl);
  font-size: 14px;
  box-shadow: 0 6px 24px hsl(0 0% 0% / 0.25);
}
.toast.error {
  background: hsl(352 55% 32%);
}
.toast button {
  border: 0;
  background: none;
  color: var(--brand-gold);
  font: 600 14px var(--app-font-sans);
  cursor: pointer;
}

/* Usage (web app v1, Task 12): a row's total, and the drawer's line naming who used it. */
.mem-uses {
  color: hsl(38 55% 28%);
}
.mem-usage {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: hsl(38 55% 24%);
}
.mem-usage li + li {
  margin-top: 2px;
}
.mem-controls .seg + .seg {
  margin-left: 2px;
}

/* The Team page (web app v1, Task 12): the prototype's pageTeam. People and Since Friday side by side, the flow below. */
.team-head {
  padding-bottom: 14px;
}
.team-head .mem-title {
  font-size: 34px;
  margin-bottom: 4px;
}
.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0 18px;
}
.team-page h2 {
  margin-top: 0;
}
.people {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.people th {
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  color: var(--brand-muted);
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
}
.people td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  vertical-align: middle;
}
.people .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.people-name {
  font-weight: 600;
  white-space: nowrap;
}
.you-tag {
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: hsl(46 90% 91%);
  color: hsl(38 55% 22%);
  font-size: 12px;
  font-weight: 600;
}
.tool-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tool-badge {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}
.tool-badge.on {
  background: hsl(46 90% 91%);
  color: hsl(38 55% 22%);
}
.tool-badge.off {
  border: 1px dashed hsl(30 10% 15% / 0.25);
  color: var(--brand-muted);
}
.badge-name {
  font-weight: 600;
}
.people-tools {
  width: 100%;
}
.since-row {
  display: grid;
  gap: 4px;
  padding: 10px 8px;
  font-size: 15px;
  line-height: 1.45;
}
.since-author {
  font-weight: 600;
  color: var(--brand-ink);
}
.flow-drawing {
  display: block;
  width: 100%;
  height: auto;
  max-width: 760px;
}
.fl-band {
  fill: none;
  stroke: var(--brand-gold);
  stroke-opacity: 0.55;
}
.fl-name {
  font: 600 13px var(--app-font-sans);
  fill: var(--brand-ink);
}
.fl-end {
  text-anchor: end;
}
.fl-count {
  font-weight: 400;
  fill: var(--brand-muted);
}
/* The flow's rows as text: read by screen readers beside the drawing, which they skip; shown instead of it on a phone. */
.flow-list {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  /* The lead names the drawing's left and right, so it goes with the drawing. */
  .flow-svg,
  .flow-lead {
    display: none;
  }
  .flow-list {
    position: static;
    width: auto;
    height: auto;
    margin: 8px 0 0;
    padding: 0 0 0 18px;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }
  .flow-list li {
    padding: 4px 0;
  }
  /* Each teammate becomes a stacked card: the name, then the four tools, then the work count. */
  .people,
  .people tbody,
  .people tr,
  .people td {
    display: block;
  }
  .people thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .people tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .people tr:last-child {
    border-bottom: 0;
  }
  .people td {
    border: 0;
    padding: 2px 0;
  }
  .people .num {
    text-align: left;
    font-size: 13px;
    color: var(--brand-muted);
  }
  .people .people-work::before {
    content: attr(data-label) " ";
  }
}

/* The team memory map (web app v1, Task 15): the prototype's home hero, above the list and wider than it. web/map.js
   draws on the canvas; every word here is set by script from copy.js. No inline styles (style-src 'self'): states are
   classes. A phone shows the list only. */
.map-section {
  margin: 0 0 24px;
}
/* Only the map is wider than the list's card; the progress strip, the note and the nudge keep the card's width. */
.map-stage {
  position: relative;
  left: 50%;
  width: min(1240px, calc(100vw - 40px));
  height: min(72vh, 720px);
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: hsl(0 0% 100% / 0.5);
  transform: translateX(-50%);
}
/* A sideways drag turns the map; an up-and-down one still scrolls the page on a touch screen. */
.map-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}
.map-canvas:focus-visible {
  outline: 2px dashed var(--brand-gold-deep);
  outline-offset: -4px;
}
.map-canvas.pick {
  cursor: pointer;
}
.map-canvas.dragging {
  cursor: grabbing;
}
.map-drag {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 13px;
  color: var(--brand-muted);
  pointer-events: none;
}
.map-card {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 6px 24px hsl(30 10% 15% / 0.08);
  font-size: 14px;
}
.map-card p {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.map-card-who {
  font-weight: 600;
}
.map-card-uses {
  color: var(--brand-muted);
  font-size: 13px;
}
.map-card ul.map-card-uses {
  margin: 0 0 6px;
  padding-left: 18px;
}
.map-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.map-card-who .mem-tag {
  margin-left: 6px;
  font-weight: 500;
}
.map-search {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: flex;
  width: min(640px, calc(100% - 44px));
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 6px 24px hsl(30 10% 15% / 0.08);
  transform: translateX(-50%);
}
.map-q {
  flex: 1;
  appearance: none;
  min-width: 0;
  padding: 12px 18px;
  border: 0;
  background: none;
  color: var(--brand-ink);
  font: 14px var(--app-font-sans);
}
/* One clear control: the Clear button (it calls clearSearch), not the browser's own search cross too. */
.map-q::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.map-go,
.map-clear {
  margin: 6px 6px 6px 0;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font: 600 13px var(--app-font-sans);
  cursor: pointer;
}
.map-go {
  background: var(--brand-gold);
  color: var(--brand-ink);
}
.map-go:disabled {
  cursor: default;
  opacity: 0.6;
}
.map-clear {
  background: var(--brand-paper);
  color: var(--brand-ink);
}
.map-go:focus-visible,
.map-clear:focus-visible {
  outline: 2px dashed var(--brand-gold-deep);
  outline-offset: 2px;
}
.map-note {
  position: absolute;
  left: 50%;
  bottom: 78px;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  color: var(--brand-muted);
  transform: translateX(-50%);
}
.map-failed {
  margin: 0;
}
.map-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.map-progress p {
  margin: 0;
  font-weight: 600;
}
.map-bar {
  width: 220px;
  max-width: 100%;
  height: 8px;
  border: 0;
  border-radius: 4px;
  background: var(--brand-paper);
  overflow: hidden;
  appearance: none;
}
.map-bar::-webkit-progress-bar {
  background: var(--brand-paper);
}
.map-bar::-webkit-progress-value {
  background: var(--brand-gold);
}
.map-bar::-moz-progress-bar {
  background: var(--brand-gold);
}
.map-nudge {
  margin: 10px 4px 0;
  font-size: 14px;
  color: var(--brand-muted);
}
.map-nudge > span::after {
  content: "·";
  margin: 0 8px;
}
@media (max-width: 700px) {
  .map-section {
    display: none;
  }
}

/* The setup reveal (web app v1, Task 16): the welcome card, and the first memory's row pulse when the map isn't shown. */
.reveal {
  margin: 0 0 18px;
}
.reveal h2 {
  margin-top: 0;
}
.reveal p {
  margin: 0 0 8px;
}
.reveal-first {
  font-weight: 600;
}
@keyframes mem-arrive {
  0% {
    background: hsl(46 90% 80% / 0.9);
    box-shadow: inset 3px 0 0 var(--brand-gold-deep), 0 0 0 0 hsl(44 95% 58% / 0.6);
  }
  60% {
    box-shadow: inset 3px 0 0 var(--brand-gold-deep), 0 0 0 10px hsl(44 95% 58% / 0);
  }
  100% {
    background: hsl(46 90% 80% / 0.3);
    box-shadow: inset 3px 0 0 var(--brand-gold-deep);
  }
}
.mem-row.arrive {
  background: hsl(46 90% 80% / 0.3);
  box-shadow: inset 3px 0 0 var(--brand-gold-deep);
}
/* The pulse only when motion is welcome; with reduced motion the row keeps the still highlight above. */
@media (prefers-reduced-motion: no-preference) {
  .mem-row.arrive {
    animation: mem-arrive 1.4s ease-out 2;
  }
}

.map-results {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 6px 24px hsl(30 10% 15% / 0.08);
}
.map-results[hidden] { display: none; }
.map-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px 10px 26px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--brand-ink);
  font: 14px var(--app-font-sans);
  text-align: left;
  cursor: pointer;
  position: relative;
}
.map-result:last-child {
  border-bottom: 0;
}
.map-result:hover {
  background: var(--brand-paper);
}
.map-result:focus-visible {
  outline: 2px dashed var(--brand-gold-deep);
  outline-offset: -3px;
}
.map-result-who {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-muted);
}
/* Each result's person color, as a dot at its left edge. */
.map-result::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--person, var(--map-former));
}

/* The map's left panel (11/25): a dot's card and the search's results, together, so the map reads left to right. */
.map-side {
  position: absolute;
  top: 64px;
  left: 18px;
  bottom: 86px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(340px, 40%);
  pointer-events: none;
}
.map-side[hidden] { display: none; }
.map-side > * {
  pointer-events: auto;
}
/* Both fit the panel and scroll inside it, so neither reaches the search bar: the card keeps its full height up to all
   but the results' minimum; the results take what is left. */
.map-side > .map-card {
  flex: 0 0 auto;
  max-height: calc(100% - 82px);
  overflow-y: auto;
}
.map-side > .map-results {
  flex: 0 1 auto;
  min-height: 72px;
}
.map-card[hidden] { display: none; }

/* The filter: everyone, or one person; each chip shows its person's color, so it doubles as the legend. */
.map-filter {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 140px;
  z-index: 2;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  /* The row's empty space still turns the map; only the chips take clicks. */
  pointer-events: none;
}
.map-filter > * {
  pointer-events: auto;
  flex: 0 0 auto;
}
.map-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-ink);
  font: 500 13px var(--app-font-sans);
  cursor: pointer;
}
.map-chip[aria-pressed="true"] {
  border-color: var(--brand-ink);
  background: var(--brand-ink);
  color: var(--brand-pearl);
}
.map-chip:focus-visible {
  outline: 2px dashed var(--brand-gold-deep);
  outline-offset: 2px;
}
.map-chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--person, var(--map-former));
}
[data-person="1"] { --person: var(--map-p1); }
[data-person="2"] { --person: var(--map-p2); }
[data-person="3"] { --person: var(--map-p3); }
[data-person="4"] { --person: var(--map-p4); }
[data-light="1"] .map-chip-dot,
.map-result[data-light="1"]::before {
  opacity: 0.6;
}
.map-card-who[data-person]::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--person, var(--map-former));
}

/* While GET /api/map loads (11/25): the stage holds its full size with a soft pulse, so nothing below it moves when the
   map arrives. The controls wait for the map. */
.map-loading {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--brand-muted);
  font-size: 14px;
}
.map-stage.loading .map-loading {
  display: flex;
}
.map-stage.loading .map-canvas,
.map-stage.loading .map-search,
.map-stage.loading .map-filter,
.map-stage.loading .map-drag {
  visibility: hidden;
}
.map-loading-orb {
  width: 180px;
  height: 120px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 40%, var(--map-p1) 0 3px, transparent 4px),
    radial-gradient(circle at 62% 30%, var(--map-p2) 0 3px, transparent 4px),
    radial-gradient(circle at 48% 66%, var(--map-p3) 0 3.5px, transparent 4.5px),
    radial-gradient(circle at 76% 58%, var(--map-p4) 0 3px, transparent 4px),
    radial-gradient(circle at 20% 70%, var(--map-p2) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 84% 40%, var(--map-p1) 0 2.5px, transparent 3.5px),
    radial-gradient(ellipse at center, hsl(44 95% 58% / 0.16), transparent 70%);
  opacity: 0.85;
}
@media (prefers-reduced-motion: no-preference) {
  .map-loading-orb {
    animation: map-loading 1.6s ease-in-out infinite;
  }
}
@keyframes map-loading {
  0%, 100% { transform: scale(0.94) rotate(0deg); opacity: 0.55; }
  50% { transform: scale(1.04) rotate(8deg); opacity: 1; }
}

/* The Team page's two-way flow (11/25): bands from your memories in gold, bands into your AI tools in blue. */
.fl-band.in {
  stroke: var(--map-p1);
  stroke-opacity: 0.45;
}
.fl-node {
  fill: var(--brand-gold-deep);
}
.fl-node.you {
  fill: var(--brand-ink);
}
