/* Tag Your Content app shell. Ported from the v3 mockup Jotte approved on 22 Oct 2026 (build-mvp/mockups/v3/app.css):
   sessions as chats on the left, the tool on the right. Added: real controls with hover, focus and disabled states,
   a scrolling chat log, the file page, the narrow layout. */
@font-face { font-family: "Display"; src: url("fonts/Anton-Regular.ttf"); font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.ttf"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f4f4f3; --side: #eeeeec; --surface: #fdfdfc; --ink: #212121; --body: #4a4a48; --mute: #6b6b67; /* mockup #8a8a86 measured 3.0 to 3.4:1; darkened to pass AA for small text */
  --ghost: #cfcfcc; --line: #e5e5e2; --hover: #e6e6e3; --focus: #212121;
  --lime: #d1f864; --pink: #ffb8fc; --blue: #c3dbff; --yellow: #fffa64; --ok: #7cbf2a; --err: #b3261e;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { overflow: hidden; }
body {
  background: var(--bg); color: var(--ink); overflow: hidden;
  font: 400 14px/1.5 "Geist", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  display: grid; grid-template-columns: 232px 400px minmax(0, 1fr); height: 100vh; height: 100dvh;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* sidebar */
.side { background: var(--side); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow-y: auto; }
.side .logo { height: 40px; width: auto; align-self: flex-start; margin: 0 8px 14px; }
.ws { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; font-weight: 600; background: var(--surface); margin-bottom: 10px; }
.ws i { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: var(--bg); font-style: normal; font-size: 11px; display: grid; place-items: center; flex: none; }
.ws span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav, .sess { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--body);
  text-decoration: none; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; transition: background-color .15s var(--ease); }
.nav svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; flex: none; }
.nav:hover, .sess:hover { background: var(--hover); color: var(--ink); }
.nav.on, .sess.on { background: var(--surface); color: var(--ink); font-weight: 500; }
.group { font-size: 12px; color: var(--mute); margin: 18px 8px 4px; }
.sess { justify-content: space-between; }
.sess .st { font-size: 11.5px; color: var(--mute); display: flex; align-items: center; gap: 6px; font-weight: 400; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(124,191,42,.18); flex: none; }
.credits { margin-top: auto; background: var(--surface); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.credits .top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--mute); }
.credits b { font-size: 15px; color: var(--ink); font-weight: 600; }
.meter { height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--lime); }
.credits a { font-size: 13px; color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }
.credits a:hover { text-decoration-thickness: 2px; }

/* chat column */
.chat { background: var(--bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat header { height: 58px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.chat header h2 { font-size: 15px; font-weight: 600; margin: 0; }
.chat header .st { font-size: 12px; color: var(--mute); display: flex; align-items: center; gap: 6px; text-align: right; }
.log { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.log > :first-child { margin-top: auto; }
.bot { font-size: 14.5px; line-height: 1.5; margin: 0; }
.you { align-self: flex-end; background: var(--ink); color: var(--bg); padding: 7px 13px; border-radius: 16px 16px 4px 16px; max-width: 85%; overflow-wrap: anywhere; }
.past { opacity: .5; }
.note { font-size: 12.5px; color: var(--mute); }
.flash { font-size: 13.5px; color: var(--body); background: var(--surface); border: 1px dashed var(--ghost); border-radius: 12px; padding: 8px 12px; }
.err { color: var(--err); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.card.coach { flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 14px; margin-bottom: 8px; }
.card.coach p { margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 500;
  border: 1px solid transparent; background: none; line-height: 1.4; }
.chip.p { background: var(--lime); } .chip.r { background: var(--pink); } .chip.l { background: var(--blue); } .chip.c { background: var(--yellow); }
.chip.o { border-color: var(--ghost); }
button.chip { cursor: pointer; transition: filter .15s var(--ease), opacity .15s var(--ease); }
button.chip:hover { filter: brightness(.94); }
button.chip.o:hover { background: var(--hover); filter: none; }
button.chip.off { background: none; border-color: var(--ghost); color: var(--mute); text-decoration: line-through; }
button.chip .x { display: inline-block; width: 0; margin-left: 0; opacity: 0; overflow: hidden; font-weight: 600;
  transition: width .15s var(--ease), margin-left .15s var(--ease), opacity .15s var(--ease); text-decoration: none; }
button.chip:hover .x, button.chip:focus-visible .x { width: .8em; margin-left: 4px; opacity: .75; }
@media (hover: none) { button.chip .x { width: .8em; margin-left: 4px; opacity: .6; } }
button.chip.add { border: 1px dashed var(--ghost); color: var(--body); }
.chip .x { font-size: 11px; opacity: .55; }
.glabel { font-size: 11.5px; color: var(--mute); width: 100%; margin-top: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font: 500 14px "Geist", sans-serif; border: 0; cursor: pointer; text-decoration: none;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), opacity .15s var(--ease); }
.btn:hover { background: #3a3a39; }
.btn.ghost { background: none; color: var(--ink); border: 1px solid var(--ghost); height: 32px; padding: 0 12px; font-size: 13px; }
.btn.ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn.ghost.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.wide { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; pointer-events: none; }
.htmx-request .btn, .btn.htmx-request { opacity: .6; }
.step { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.step .ok { width: 20px; height: 20px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 11px; flex: none; }
.step .run { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ghost); border-top-color: var(--ink); flex: none; animation: spin 1s linear infinite; }
.step .wait { width: 20px; height: 20px; border-radius: 50%; border: 1.5px dashed var(--ghost); flex: none; }
.step .bad { width: 20px; height: 20px; border-radius: 50%; background: #f6d4d1; color: var(--err); display: grid; place-items: center; font-size: 12px; flex: none; }
.step span.m { margin-left: auto; color: var(--mute); font-size: 12.5px; white-space: nowrap; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .step .run { animation: none; border-top-color: var(--ghost); border-right-color: var(--ink); } * { transition: none !important; } }
.usecard { border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; transition: filter .15s var(--ease); }
.usecard:hover { filter: brightness(.96); }
.usecard b { font-weight: 600; font-size: 14px; }
.bot q, .usecard q { font-size: 13px; color: var(--body); quotes: "\201C" "\201D"; }
.lime { background: var(--lime); } .pink { background: var(--pink); } .blue { background: var(--blue); } .yellow { background: var(--yellow); }
.field { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 6px; } .stack .input { width: 100%; } .stack .btn { align-self: flex-start; margin-top: 6px; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; min-height: 0; margin: 8px 0; } .plan .price { font-size: 28px; font-weight: 600; margin: 0; } .plan .price small { font-size: 13px; font-weight: 400; color: var(--body); } .tip.plan { min-height: 0; gap: 4px; }
.input { height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 10px; font: 400 14px "Geist", sans-serif; color: var(--ink); min-width: 0; }
.input:hover { border-color: var(--ghost); }
.input:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.input.num { width: 90px; }
.code { background: var(--side); border-radius: 10px; padding: 10px 12px; font: 12px/1.5 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; max-height: 220px; overflow: auto; }
.composer { margin: 0 14px 14px; height: 50px; flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 14px; }
.composer:focus-within { border-color: var(--ink); }
.composer input { flex: 1; min-width: 0; border: 0; background: none; font: 400 14px "Geist", sans-serif; color: var(--ink); height: 100%; outline: none; }
.composer input::placeholder { color: var(--mute); }
.composer .send { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; border: 0; cursor: pointer; flex: none; }
.composer .send:hover { background: #3a3a39; }
.composer .send:disabled { opacity: .35; cursor: not-allowed; }
.composer.htmx-request .send { background: none; border: 2px solid var(--ghost); border-top-color: var(--ink); color: transparent; animation: spin 1s linear infinite; }
.composer.htmx-request input { color: var(--mute); }
.minitiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.minitiles a { aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--side); display: block; }
.minitiles img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* main */
.main { padding: 26px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; min-width: 0; min-height: 0; }
.main h1 { font-family: "Display", sans-serif; font-weight: 400; text-transform: uppercase; font-size: 40px; line-height: .95; margin: 0; letter-spacing: .005em; }
.main h1 span { color: var(--ghost); }
.bar { display: flex; gap: 10px; align-items: center; }
.search { flex: 1; height: 44px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; padding: 0 14px; color: var(--mute); gap: 10px; }
.search:hover { border-color: var(--ghost); }
.search:focus-within { border-color: var(--ink); }
.search input { flex: 1; min-width: 0; border: 0; background: none; height: 100%; font: 400 14.5px "Geist", sans-serif; color: var(--ink); outline: none; }
.search input::placeholder { color: var(--mute); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; }   /* tiles never so narrow a chip reads 'stud' */
.tile { min-width: 0; display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.tile .img { aspect-ratio: 9 / 14; border-radius: 12px; overflow: hidden; background: var(--side); position: relative; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s var(--ease); }
a.tile:hover img { transform: scale(1.02); }
.tile .img.whole img { object-fit: contain; }
a.tile:focus-visible { outline: none; }
a.tile:focus-visible .img { outline: 2px solid var(--focus); outline-offset: 2px; }
.tile .row { flex-wrap: nowrap; overflow: hidden; }
.tile .chip { font-size: 11.5px; padding: 2px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tile .chip.o.n { flex: none; }
.tile.busy .img::after { content: ""; position: absolute; inset: 0; background: rgba(244,244,243,.72); }
.tile.busy .lbl { position: absolute; left: 8px; bottom: 8px; z-index: 1; font-size: 11.5px; background: var(--surface); padding: 2px 8px; border-radius: 999px; }
.skel { height: 18px; width: 70%; border-radius: 999px; background: var(--side); }
.empty { color: var(--body); max-width: 46ch; display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.empty b { color: var(--ink); font-weight: 600; font-size: 15px; }

/* file page */
.back { font-size: 13px; color: var(--body); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; align-self: flex-start; padding: 4px 8px; margin-left: -8px; border-radius: 8px; }
.back:hover { background: var(--hover); color: var(--ink); }
.main h1.fname { font-family: "Geist", sans-serif; text-transform: none; line-height: 1.3; letter-spacing: 0; font-size: 20px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.frames { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.frames img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: var(--side); display: block; }
.frames.one { grid-template-columns: minmax(0, 360px); }
.frames.one img { aspect-ratio: auto; max-height: 420px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.prose { max-width: 70ch; color: var(--body); margin: 0; }
.prose.lead { color: var(--ink); font-size: 15.5px; }
.facets { display: flex; flex-direction: column; gap: 8px; }
.facet { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: baseline; }
.facet > span { font-size: 12px; color: var(--mute); }
.moments { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.moments li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; font-size: 13.5px; color: var(--body); }
.moments li span { color: var(--mute); font-variant-numeric: tabular-nums; }
details.more { display: flex; flex-direction: column; gap: 8px; }
details.more summary { cursor: pointer; font-size: 13px; color: var(--body); padding: 4px 0; width: max-content; }
details.more summary:hover { color: var(--ink); }
details.more[open] summary { margin-bottom: 8px; }
.path { font: 12px/1.5 ui-monospace, "SF Mono", Menlo, monospace; color: var(--mute); overflow-wrap: anywhere; }

/* credits, use cases, tips, settings */
.tasks { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.task { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); min-height: 64px; }
.task:first-child { border-top: 0; }
.task .n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.task .t { font-weight: 500; font-size: 14.5px; }
.task .plus { font-weight: 600; font-size: 14px; }
.task.done { color: var(--mute); }
.task.done .t { text-decoration: line-through; }
.big { font-family: "Display", sans-serif; font-size: 88px; line-height: .85; }
.big small { font-family: "Geist", sans-serif; font-size: 15px; color: var(--mute); margin-left: 8px; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tip { border-radius: 18px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; font-weight: 500; font-size: 14.5px; text-decoration: none; min-height: 140px; transition: filter .15s var(--ease); }
a.tip:hover { filter: brightness(.96); }
.tip small { font-weight: 400; color: var(--body); font-size: 12.5px; }
.tip q { font-weight: 400; font-size: 13px; color: var(--body); }
.tip .picked { font-size: 11.5px; font-weight: 500; background: var(--surface); border-radius: 999px; padding: 2px 8px; align-self: flex-start; }
.tip.try { color: var(--ink); } .tip.try:hover { filter: brightness(.97); }
.tip .go { font-size: 12.5px; font-weight: 500; margin-top: -18px; opacity: .55; transition: opacity .15s var(--ease); } .tip.try:hover .go { opacity: 1; }
.kv { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 0; }
.kv dt { color: var(--mute); font-size: 13px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* narrow screens: one pane at a time, the sidebar becomes a top bar */
.mbar { display: none; }
@media (max-width: 900px) and (min-width: 701px) {
  body { grid-template-columns: 200px 320px minmax(0, 1fr); }
}
@media (max-width: 700px) {
  body { display: flex; flex-direction: column; overflow: hidden; }
  .mbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--side); flex: none; }
  .mbar .logo { height: 30px; width: auto; }
  .mbar .seg { margin-left: auto; display: flex; background: var(--surface); border-radius: 999px; padding: 3px; gap: 2px; }
  .mbar .seg button { border: 0; background: none; border-radius: 999px; height: 32px; padding: 0 14px; font-weight: 500; font-size: 13px; cursor: pointer; color: var(--body); }
  .mbar .seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
  .mbar .menu { border: 1px solid var(--ghost); background: none; border-radius: 999px; height: 32px; padding: 0 12px; font-size: 13px; cursor: pointer; }
  .side { display: none; }
  body.menu-open .side { display: flex; position: fixed; inset: 52px 0 0 0; z-index: 5; padding: 16px; }
  body.menu-open .side .logo { display: none; }
  .chat, .main { flex: 1; min-height: 0; }
  body[data-pane="chat"] .main, body[data-pane="main"] .chat { display: none; }
  .chat { border-right: 0; }
  .log { padding: 16px; }
  .composer { margin: 0 12px 12px; }
  .main { padding: 18px 16px; gap: 14px; }
  .main h1 { font-size: 30px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cards3 { grid-template-columns: minmax(0, 1fr); }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .frames { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .task { grid-template-columns: 34px 1fr auto auto; gap: 10px; padding: 12px 14px; }
  .task .btn { grid-column: 2 / -1; justify-self: start; }
  .big { font-size: 64px; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .facet { grid-template-columns: 90px 1fr; }
}

/* sign-in page: the same tokens, one centred card */
body.auth { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; overflow: auto; padding: 16px; }
/* the sign-in screens stand in the site's world (Jotte, 30 Oct): its sky over the hills, the lime tag floating top left and
   the balloon needle planted on the hill bottom right (the hero has the flowers bottom left, so this is the same place
   from another side, not a copy). Images are the site's renders, small webp copies in static/auth. */
body.auth { position: relative; isolation: isolate; background: linear-gradient(rgba(253, 253, 252, .3), rgba(253, 253, 252, 0) 55%), url("auth/sky.webp") center bottom / cover no-repeat #bfe0f8; }
body.auth::before, body.auth::after { content: ""; position: fixed; z-index: -1; pointer-events: none; background: center / contain no-repeat; }
body.auth::before { background-image: url("auth/tag.webp"); width: clamp(110px, 14vw, 200px); aspect-ratio: 548 / 600; left: 6vw; top: 9vh; rotate: -14deg; animation: auth-bob 6s ease-in-out infinite alternate; }
body.auth::after { background-image: url("auth/needle.webp"); width: clamp(90px, 10vw, 150px); aspect-ratio: 500 / 1112; right: 7vw; bottom: 4vh; rotate: 12deg; transform-origin: 50% 100%; animation: auth-sway 7s ease-in-out infinite alternate; }
@keyframes auth-bob { to { translate: 0 -14px; rotate: -8deg; } }
@keyframes auth-sway { to { rotate: 6deg; } }
body.auth .authcard { box-shadow: 0 1px 2px rgba(33, 33, 33, .05), 0 30px 70px -24px rgba(33, 33, 33, .35); }
@media (max-width: 640px) { body.auth::before { left: -4vw; top: 2vh; width: 96px; } body.auth::after { right: -2vw; bottom: 0; width: 70px; } }
@media (prefers-reduced-motion: reduce) { body.auth::before, body.auth::after { animation: none; } }
.authcard { width: 100%; max-width: 380px; padding: 28px 24px; gap: 14px; }
.authcard .logo { height: 40px; width: auto; align-self: flex-start; }
.authcard h1 { font-size: 22px; font-weight: 600; margin: 4px 0 0; }
.authcard .btn { text-decoration: none; }
.sp-folders { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.sp-folders div { display: flex; justify-content: space-between; gap: 12px; }
.sp-folders span.m { color: var(--mute); white-space: nowrap; }
.fails { list-style: none; margin: 0; }
.fails li { display: flex; flex-direction: column; gap: 2px; }
.fails span.m { color: var(--mute); font-size: 12.5px; overflow-wrap: anywhere; }
.adminmsg summary { cursor: pointer; font-size: 13.5px; font-weight: 500; }
.msg { white-space: pre-wrap; overflow-wrap: anywhere; font: 400 12.5px/1.5 "Geist Mono", ui-monospace, monospace;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 8px 0;
  max-height: 260px; overflow-y: auto; }

/* show me your products */
.refs .refrow { align-items: center; gap: 10px; }
.refimg { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--side); flex: none; }
.refimg.empty { border: 1px dashed var(--ghost); background: none; }
.refname { min-width: 96px; }
.refhave { position: relative; display: inline-flex; }
.refx { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 13px; line-height: 1; padding: 0; cursor: pointer; opacity: 0; }
.refhave:hover .refx, .refx:focus-visible { opacity: 1; }
@media (hover: none) { .refx { opacity: 1; } }
.refname { flex: 1; font-weight: 500; }
.refpicks { gap: 6px; margin: -2px 0 10px 0; }
.refpick { padding: 0; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; width: 72px; height: 72px; overflow: hidden; }
.refpick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.refpick:hover { outline: 2px solid var(--ink); }
.refask { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; margin: 0 0 12px; }
.refask .q { margin: 0 0 6px; font-size: 13.5px; }
.refcand { width: 112px; height: 112px; object-fit: cover; border-radius: 10px; display: block; background: var(--side); }
.linkish { font-size: 12.5px; color: var(--mute); text-decoration: underline; cursor: pointer; }
.linkish:hover { color: var(--ink); }
.filenote { margin-top: 6px; }
.filenote .input { flex: 1 1 180px; font-size: 13px; }
.noteplan { margin-top: 6px; font-size: 13px; }
.noteplan ul { margin: 4px 0 6px; padding-left: 18px; }
.usehint { margin: 4px 0 0; }
.usecard .usestate { font-size: 12px; color: var(--mute); }

.quick { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 16px; }
.quick .chip { cursor: pointer; font: inherit; font-size: 12.5px; padding: 4px 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.quick .chip.o.on, .quick .chip.o.on:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }

.checks { display: flex; flex-direction: column; gap: 10px; }
.checkrow { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 10px; align-items: center; }
.checkrow .checkimg img { width: 132px; height: 132px; object-fit: cover; border-radius: 10px; display: block; }
.checkrow .row { flex-wrap: wrap; gap: 5px; }
.checkrow .chip { font-size: 12px; padding: 3px 9px; }
.checkrow .chip.on, .fileprods .chip.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.fileprods .chip { font-size: 12px; padding: 3px 9px; cursor: pointer; }
.checkrow .chip.ok.on { background: var(--lime, #d9f37a); color: var(--ink); border-color: transparent; }
.checkrow.done .checkimg img { outline: 2px solid var(--lime, #d9f37a); outline-offset: 2px; }

.teach { display: grid; gap: 14px; }
.teach .pair { display: grid; gap: 6px; }
.teach .q { font-weight: 600; color: var(--ink); }
.teach .pair .field { gap: 8px; }
.teach .pair .input { flex: 1; min-width: 0; }
.teach .pair.done .note { color: var(--body); }
.morechips { display: contents; }
.morechips summary { list-style: none; cursor: pointer; }
.morechips summary::-webkit-details-marker { display: none; }
.morechips[open] summary { display: none; }

/* Settings: subpages in the sidebar; the page full width, no session chat (Jotte, 5 Nov; was the bottom third, 29 Oct) */
.nav.sub { padding: 5px 8px 5px 34px; font-size: 13.5px; }
.nav.sub.cur { color: var(--ink); font-weight: 500; }
.nav.sub.cur::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); margin-left: -13px; margin-right: 2px; flex: none; }
@media (min-width: 701px) {
  body:not(.solo):has(#main[data-page="settings"]) { grid-template-columns: 232px minmax(0, 1fr); }
  body:not(.solo):has(#main[data-page="settings"]) .chat { display: none; }
}
.how3 { list-style: none; counter-reset: how; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 10px; padding: 0; }
.how3 li { counter-increment: how; display: flex; flex-direction: column; gap: 4px; padding-top: 6px; }
.how3 li::before { content: counter(how); font: 34px/1 "Display", sans-serif; color: var(--ink); }
.how3 li:nth-child(1)::before { color: var(--ink); }
.how3 b { font-weight: 600; color: var(--ink); }
.how3 span { font-size: 13px; color: var(--body); }
.aicard { margin: 22px 0 8px; max-width: 720px; }
.aicard h2, .aih { font-size: 15px; font-weight: 600; margin: 0; }
.aih { margin: 28px 0 10px; }
.aitools { display: flex; flex-direction: column; max-width: 720px; border-top: 1px solid var(--line); }
.aitool { border-bottom: 1px solid var(--line); }
.aitool summary { display: flex; align-items: baseline; gap: 10px; padding: 12px 2px; cursor: pointer; list-style: none; }
.aitool summary::-webkit-details-marker { display: none; }
.aitool summary .where { color: var(--mute); font-size: 13px; }
.aitool .st { margin-left: auto; font-size: 12px; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.st-tested { background: var(--lime); color: var(--ink); }
.st-untested { background: var(--side); color: var(--body); }
.st-admin { background: var(--blue); color: var(--ink); }
.aitool ol { margin: 0 0 10px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
ol.bot.steps { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.aitool .note { margin: 0 0 14px; }
.aitool code { font: 12px ui-monospace, "SF Mono", Menlo, monospace; background: var(--side); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .how3 { grid-template-columns: minmax(0, 1fr); } .aitool summary { flex-wrap: wrap; } .aitool .st { margin-left: 0; } }

/* Privacy and terms: public pages, one readable column */
html:has(body.legal) { overflow: auto; }
body.legal { display: block; overflow: visible; height: auto; background: var(--bg); }
.legalbar { max-width: 760px; margin: 0 auto; padding: 22px 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legalbar .logo { height: 46px; width: auto; display: block; }
.legalbar nav { display: flex; gap: 4px; }
.legalbar nav a { padding: 6px 12px; border-radius: 999px; color: var(--body); text-decoration: none; font-size: 13.5px; }
.legalbar nav a:hover { background: var(--hover); color: var(--ink); }
.legalbar nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.legaltext { max-width: 760px; margin: 0 auto; padding: 40px 24px 24px; color: var(--body); font-size: 15px; line-height: 1.65; }
.legaltext h1 { font: 400 64px/.9 "Display", sans-serif; text-transform: uppercase; color: var(--ink); margin: 0; }
.legaltext .updated { color: var(--mute); font-size: 13px; margin: 10px 0 28px; }
.legaltext h2 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 34px 0 8px; }
.legaltext p, .legaltext li { max-width: 68ch; }
.legaltext a { color: var(--ink); text-underline-offset: 3px; }
.legaltext ul { padding-left: 20px; }
.legaltext .short { background: var(--lime); color: var(--ink); border-radius: 18px; padding: 20px 24px 8px; }
.legaltext .short h2 { margin: 0 0 6px; }
.legaltext .short li { margin-bottom: 6px; }
.legaltext .tablewrap { overflow-x: auto; }
.legaltext table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legaltext th { text-align: left; color: var(--mute); font-weight: 500; font-size: 12.5px; padding: 0 12px 8px 0; border-bottom: 1px solid var(--line); }
.legaltext td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legaltext td:first-child { color: var(--ink); width: 48%; }
.legalfoot { max-width: 760px; margin: 0 auto; padding: 24px 24px 48px; color: var(--mute); font-size: 12.5px; }
.legallinks a { color: var(--mute); }
@media (max-width: 560px) { .legaltext h1 { font-size: 46px; } .legalbar .logo { height: 38px; } .legaltext { padding-top: 28px; } }

/* Sign in with Microsoft or Google: one light style, the provider's own logo on the left */
.btn.sso { background: var(--surface); color: var(--ink); border: 1px solid var(--ghost); gap: 10px; }
.btn.sso:hover { border-color: var(--ink); background: var(--surface); }
.btn.sso img { width: 18px; height: 18px; flex: none; }

/* the gateway's Connected AI apps page */
.conns { list-style: none; padding: 0; margin: 0 0 16px; }
.conns li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.conns form { margin: 0; }
.aikey { margin-top: 12px; max-width: 720px; }
/* Settings, Team */
.team { list-style: none; padding: 0; margin: 10px 0 12px; max-width: 720px; }
.team li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.team .who { display: flex; flex-direction: column; min-width: 0; }
.team .who .note { overflow-wrap: anywhere; }
.team .role { font-size: 13px; color: var(--mute, #6b6b68); }
.team .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.team li.pending .who b { font-weight: 500; }
.sent { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.sentrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tryqs { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.tryqs a { display: block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 13.5px; line-height: 1.35; }
.tryqs a:hover, .tryqs a:focus-visible { border-color: var(--ink); }
@media (max-width: 560px) { .team li { grid-template-columns: 1fr; } .team .acts { justify-content: flex-start; } }
/* Use cases: per use, the question in the company's own words, then what the library holds for it (a showcase:
   louder than the rest of the app on purpose, the brand's pastel panels with Anton heads) */
.lede { color: var(--body); max-width: 62ch; margin: 10px 0 24px; font-size: 15px; }
.uses { display: flex; flex-direction: column; gap: 14px; container-type: inline-size; padding-bottom: 24px; }
.use { border-radius: 22px; padding: 26px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
.use:nth-child(even) .usehead { order: 2; }
.usehead h2 { font: 400 24px/1 "Display", sans-serif; text-transform: uppercase; letter-spacing: .005em; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.usehead h2 i { font: 500 11.5px/1 "Geist", sans-serif; text-transform: none; background: var(--surface); border-radius: 999px; padding: 4px 9px; font-style: normal; }
.ask { font-size: 22px; line-height: 1.3; font-weight: 500; margin: 0; max-width: 30ch; text-wrap: pretty; }
.foundline { margin: 0 0 10px; font-size: 13.5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.foundline .matched { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.foundline .matched i { font-style: normal; font-size: 12px; background: color-mix(in srgb, var(--surface) 70%, transparent); border-radius: 999px; padding: 2px 9px; }
.mosaic { display: grid; grid-template-columns: 1.7fr 1fr 1fr; grid-template-rows: repeat(2, 132px); gap: 6px; }
.mosaic .m { position: relative; display: block; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.mosaic .m.big { grid-row: span 2; }
.mosaic .m img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.mosaic .m img.whole { object-fit: contain; padding: 10px; }
.mosaic a.m:hover img { transform: scale(1.04); }
.mosaic .m.skel { animation: skel 1.4s ease-in-out infinite; }
@keyframes skel { 50% { opacity: .5; } }
.mosaic .mom { position: absolute; left: 7px; right: 7px; bottom: 7px; color: var(--surface); background: rgb(33 33 33 / .72); border-radius: 9px; padding: 4px 8px; font-size: 12px; line-height: 1.35; width: fit-content; max-width: calc(100% - 14px); }
.useacts { margin-top: 12px; gap: 8px; }
@container (max-width: 760px) {
  .use { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px; }
  .use:nth-child(even) .usehead { order: 0; }
  .ask { font-size: 19px; max-width: none; }
  .mosaic { grid-template-rows: repeat(2, 104px); }
}
@media (prefers-reduced-motion: reduce) { .mosaic a.m img { transition: none; } .mosaic .m.skel { animation: none; } }

/* Resources and inspiration: the job leads, the caption says what the preview shows, the preview stays small */
.res { display: flex; flex-direction: column; gap: 18px; container-type: inline-size; padding-bottom: 24px; }
.hcase { background: var(--lime); border-radius: 22px; padding: 26px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.hcase-t { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.hcase h2 { font: 400 34px/.95 "Display", sans-serif; text-transform: uppercase; letter-spacing: .005em; margin: 0; max-width: 20ch; text-wrap: balance; }
.hcase .ccap { font-size: 14px; }
.hcase .btn { margin-top: 6px; }
.caseset { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.caseset h2 { font: 400 22px/1 "Display", sans-serif; text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.cases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; border-top: 1px solid var(--line); }
.cases li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); min-height: 64px; }
.ctext { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ctext b { font-weight: 500; font-size: 14.5px; line-height: 1.3; }
.ccap { font-size: 12.5px; color: var(--mute); line-height: 1.4; }
.ccap i { font-style: normal; font-size: 11px; font-weight: 500; color: var(--ink); background: var(--surface); border-radius: 999px; padding: 1px 7px; margin-right: 4px; white-space: nowrap; }
.cases .ccap i { background: var(--lime); }
.cprev { flex: none; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--ink) 8%, transparent); display: block; }
.cprev.big { width: 96px; height: 96px; border-radius: 14px; }
.cprev img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); }
.cprev img.whole { object-fit: contain; padding: 4px; }
a.cprev:hover img { transform: scale(1.06); }
a.cprev:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.reads { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.read { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.read:hover, .read:focus-visible { border-color: var(--ink); }
.read small { font-size: 11.5px; color: var(--mute); }
.read b { font-weight: 500; font-size: 15px; line-height: 1.3; }
.read span { font-size: 12.5px; color: var(--mute); }
.tips4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tips4 .tip { min-height: 110px; }
.hcase .btn { white-space: nowrap; }
@container (max-width: 720px) { .cases { grid-template-columns: minmax(0, 1fr); } .tips4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 420px) { .hcase { flex-direction: column; align-items: flex-start; padding: 20px; gap: 14px; } .hcase h2 { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .cprev img { transition: none; } }
/* onboarding: the proposed use cases, tapped off or kept */
.usepick { display: flex; flex-direction: column; gap: 6px; }
button.usecard { font: inherit; color: var(--ink); text-align: left; border: 1px solid transparent; cursor: pointer; }
button.usecard:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
button.usecard.off { background: none; border: 1px dashed var(--ghost); }
button.usecard.off b { color: var(--mute); text-decoration: line-through; }
button.usecard.off q { color: var(--mute); }

/* The page on the right can be closed so a session gets the full width (Jotte, 29 Oct); a nav link brings it back */
.paneclose { position: fixed; top: 13px; right: 16px; z-index: 4; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--body); display: grid; place-items: center; cursor: pointer; padding: 0; }
.paneclose:hover { color: var(--ink); border-color: var(--ghost); }
.paneclose svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.paneclose .open, body.solo .paneclose .x { display: none; }
body.solo .paneclose .open { display: block; }
@media (min-width: 701px) {
  body.solo:has(#main[data-page]) { grid-template-columns: 232px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  body.solo:has(#main[data-page]) .side { grid-row: 1; }
  body.solo:has(#main[data-page]) .main { display: none; }
  body.solo:has(#main[data-page]) .chat { grid-column: 2; grid-row: 1; border: 0; }
  body.solo .chat header { padding-right: 64px; }
  body.solo .log { padding-inline: max(20px, calc((100% - 760px) / 2)); }
  body.solo .composer { margin-inline: max(14px, calc((100% - 760px) / 2)); }
}
@media (max-width: 700px) { .paneclose { display: none; } }

/* Become a partner (Settings): a lime hero with the link, then how it works, the previews, the manager pitch with
   tilted photos, the brand kit, the WhatsApp band. The personal parts load from the gateway (/partners/card, payout). */
.partner { display: flex; flex-direction: column; gap: 44px; max-width: 980px; }
.partner h2 { font-family: "Display", sans-serif; font-weight: 400; text-transform: uppercase; font-size: 30px; line-height: 1; margin: 0 0 14px; }
.phero { background: var(--lime); border-radius: 28px; padding: 36px 36px 30px; display: grid; gap: 16px 28px; overflow: hidden;
  grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head money" "sub money" "card card"; }
.phero h1 { grid-area: head; font-size: clamp(40px, 5.6vw, 74px); line-height: .92; max-width: 11ch; }
.psub { grid-area: sub; }
.phero .pcard { grid-area: card; }
.pmoney { grid-area: money; display: grid; justify-items: end; align-content: start; text-align: right; }
.ptag { width: 120px; height: auto; transform: rotate(10deg); margin: -6px 6px -14px 0; pointer-events: none; }
.pamount { margin: 0; font: 400 clamp(56px, 6.4vw, 96px)/.9 "Display", sans-serif; letter-spacing: -.01em; white-space: nowrap; }
.pdream { margin: 10px 0 0; font-size: 15px; max-width: 24ch; }
.pyear { margin: 26px 0 0; max-width: 70ch; background: var(--surface); border-radius: 16px; padding: 14px 18px; color: var(--body); }
.pyear b { color: var(--ink); font-weight: 600; }
.psub { margin: 0; max-width: 54ch; font-size: 16px; color: var(--ink); }
.pcard { background: var(--surface); border-radius: 20px; padding: 16px; display: grid; gap: 12px; max-width: 660px; }
.pcard p { margin: 0; }
.plink { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.plink code { flex: 1 1 260px; min-width: 0; font: 500 15px "Geist", sans-serif; background: var(--bg); border-radius: 999px; padding: 9px 16px; overflow-wrap: anywhere; }
.pcode { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--body); }
.pcode code { font: 600 14px "Geist", sans-serif; letter-spacing: .04em; background: var(--pink); color: var(--ink); border-radius: 8px; padding: 4px 10px; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; color: var(--body); text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--ink); }
.pearn { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.pearn dt { font-size: 12px; color: var(--mute); }
.pearn dd { margin: 0; font: 400 24px/1.1 "Display", sans-serif; }
.pjoin .check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--body); }
.pjoin .check input { margin-top: 3px; }
.pjoin .btn { justify-self: start; }
.psteps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: pstep; }
.psteps li { counter-increment: pstep; display: grid; gap: 4px; align-content: start; }
.psteps li::before { content: counter(pstep); font: 400 104px/1 "Display", sans-serif; color: transparent; -webkit-text-stroke: 1.5px var(--ink); margin-bottom: 6px; }
.psteps b { font-size: 16px; font-weight: 600; }
.psteps span { color: var(--body); }
.psteps .note { margin: 12px 0 0; }
.plead { margin: -6px 0 16px; color: var(--body); font-size: 15px; }
.folders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.folder { position: relative; background: none; border: 0; border-radius: 22px; padding: 70px 10px 16px; cursor: pointer;
  display: grid; justify-items: center; gap: 2px; transition: background-color .2s var(--ease); }
.folder:hover { background: var(--side); }
.folder[aria-expanded="true"] { background: var(--surface); }
.fpeek { position: absolute; left: 50%; top: 14px; width: 190px; height: 130px; transform: translateX(-50%); }
.fpeek img { position: absolute; bottom: 0; width: 84px; height: 104px; object-fit: cover; background: var(--surface);
  border: 4px solid var(--surface); border-radius: 6px; box-shadow: 0 1px 3px rgba(33,33,33,.16);
  transform: translateY(var(--y, 0)) rotate(var(--r, 0)); transition: transform .4s var(--ease); }
.fpeek img.dark { background: var(--ink); }
.fpeek img:nth-child(1) { left: 8px; --r: -9deg; }
.fpeek img:nth-child(2) { left: 53px; --r: 2deg; --y: -10px; }
.fpeek img:nth-child(3) { left: 98px; --r: 10deg; }
.folder:hover .fpeek img, .folder[aria-expanded="true"] .fpeek img { --y: -22px; }
.folder:hover .fpeek img:nth-child(2), .folder[aria-expanded="true"] .fpeek img:nth-child(2) { --y: -32px; }
.fbody { position: relative; z-index: 1; width: 210px; max-width: 100%; height: auto; }
.fname { font: 400 24px/1 "Display", sans-serif; text-transform: uppercase; margin-top: 10px; }
.fcount { font-size: 12.5px; color: var(--mute); }
.fpanel { background: var(--surface); border-radius: 22px; padding: 20px; margin-top: 14px; }
.fhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.fhead h3 { margin: 0; font-size: 16px; font-weight: 600; }
.fhead p { margin: 2px 0 0; font-size: 13.5px; color: var(--body); max-width: 56ch; }
.fhead .btn span { color: var(--mute); font-weight: 400; }
.files { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 16px 12px; }
.files a { display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.files img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 6px; transition: border-color .15s var(--ease); }
.files img.dark { background: var(--ink); }
.files a:hover img { border-color: var(--ink); }
.files span { font-size: 12.5px; font-weight: 500; overflow-wrap: anywhere; line-height: 1.3; }
.files small { font-size: 12px; color: var(--mute); }
.ppitch ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; }
.ppitch li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 6px 18px; align-items: start; }
.ppitch li img { grid-row: span 2; width: 132px; height: 164px; object-fit: cover; border: 6px solid var(--surface); border-radius: 6px;
  box-shadow: 0 1px 2px rgba(33,33,33,.12); transform: rotate(-3deg); transition: transform .3s var(--ease); }
.ppitch li:nth-child(even) img { transform: rotate(3deg); }
.ppitch li:hover img { transform: rotate(0) scale(1.03); }
.ppitch q { font: 400 26px/1 "Display", sans-serif; text-transform: uppercase; quotes: "\201C" "\201D"; padding-top: 6px; }
.ppitch li p { margin: 0; color: var(--body); }
.pcomm { background: var(--pink); border-radius: 28px; padding: 30px 34px; display: grid; gap: 12px; justify-items: start; }
.pcomm h2 { margin: 0; }
.pcomm p { margin: 0; }
.ppay { display: grid; gap: 10px; max-width: 460px; }
.ppay h2 { font-size: 22px; margin: 0; }
.ppay p { margin: 0; }
.ppay .btn { justify-self: start; }
@media (max-width: 760px) {
  .partner { gap: 34px; }
  .phero { padding: 26px 20px 20px; border-radius: 22px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "money" "sub" "card"; }
  .pmoney { justify-items: start; text-align: left; grid-template-columns: auto auto; align-items: center; column-gap: 10px; }
  .pmoney .ptag { grid-column: 2; grid-row: 1; width: 72px; margin: 0; }
  .pdream { grid-column: 1 / -1; }
  .psteps ol, .ppitch ul { grid-template-columns: minmax(0, 1fr); }
  .folders { gap: 6px; }
  .folder { padding: 44px 2px 10px; }
  .fpeek { width: 110px; height: 80px; top: 8px; }
  .fpeek img { width: 48px; height: 60px; border-width: 3px; }
  .fpeek img:nth-child(2) { left: 31px; } .fpeek img:nth-child(3) { left: 56px; } .fpeek img:nth-child(1) { left: 6px; }
  .fname { font-size: 16px; }
  .files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .psteps ol { gap: 18px; }
  .psteps li::before { font-size: 72px; }
  .ppitch li { grid-template-columns: 96px minmax(0, 1fr); }
  .ppitch li img { width: 96px; height: 120px; }
  .pcomm { padding: 24px 20px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { .ppitch li img { transition: none; } }

/* the check after a test run, in the main pane */
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; font-size: 12.5px; color: var(--mute); counter-reset: st; }
.steps li { counter-increment: st; }
.steps li::before { content: counter(st) ". "; }
.steps li.on { color: var(--ink); font-weight: 600; }
.reviewgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; margin: 10px 0 16px; }
.rcard { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.rcard summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; }
.rcard summary::-webkit-details-marker { display: none; }
.rcard img, .rcard .noimg { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--side); }
.rcard[open] { align-self: start; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.rcard .guess { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 8px; }
.rcard .wrong { margin-left: auto; font-size: 12px; color: var(--mute); text-decoration: underline; }
.rcard.changed { border-color: var(--ink); }
.rcard .picker { padding: 0 8px 10px; display: grid; gap: 8px; }
.rcard .picker .row { gap: 4px; }
.rcard .picker .field { flex-direction: column; align-items: stretch; gap: 6px; }
.rcard .picker .input { flex: none; width: 100%; min-width: 0; }
.refgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 16px; }
.refcell { display: flex; flex-direction: column; gap: 6px; }
.refcell .refcand, .refcell .noimg { width: 100%; height: auto; aspect-ratio: 1; }
.fileprods details.pick summary { cursor: pointer; }
.map summary { cursor: pointer; font-size: 13.5px; font-weight: 500; }
.map ul { margin: 4px 0 8px; }
.support { align-items: center; gap: 8px; }
.why { font-size: 13px; }
