/* The routine generator page (/schedule-generator/, body.generator), on top of /style.css.
   Editor column (paste → review → share) beside a sticky phone preview on a butter panel; stacks on phones.
   Brand tokens come from style.css; these are the few extra ones the preview phone and editor need (tokens.json). */

:root {
  --primary-pressed: #584941; --panel: var(--butter); --frame: var(--cocoa); --screen: var(--cream); --screen-card: #FFFFFF;
  --normal-chip: var(--lavender-tint); --normal-on: var(--cocoa); --hint-bg: var(--butter);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%233A2A22' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary-pressed: #E1CB8F; --panel: #33261F; --frame: #120D0A; --screen: #231A15; --screen-card: #33261F;
    --normal-chip: transparent; --normal-on: #B9B0EE; --hint-bg: #4B4038;
    --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23FFFBF2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"] {
  --primary-pressed: #E1CB8F; --panel: #33261F; --frame: #120D0A; --screen: #231A15; --screen-card: #33261F;
  --normal-chip: transparent; --normal-on: #B9B0EE; --hint-bg: #4B4038;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23FFFBF2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.gen { font-size: 16px; line-height: 1.5; padding-bottom: 24px; }
:where(.gen) :is(button, input, select, textarea) { font: inherit; color: inherit; }
.gen h2, .gen h3 { line-height: 1.15; letter-spacing: 0; }
.gen :focus-visible { outline-offset: 2px; border-radius: 6px; }
.gen a.btn { color: inherit; text-decoration: none; }
.gen a.btn-primary { color: var(--on-primary); }
.gen [hidden] { display: none !important; }



/* Hero */
.g-hero { padding-block: 28px 40px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.g-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
.g-hero p { color: var(--text-2); font-size: 18px; margin: 14px 0 0; max-width: 46ch; }
.g-go { margin-top: 22px; }
/* The rotating word: its box glides to the new word's width while the word is faded out, so the line eases instead of jumping. */
.rot { display: inline-block; white-space: nowrap; vertical-align: bottom; transition: width 280ms var(--ease); }
.rot > span { display: inline-block; background: linear-gradient(transparent 62%, var(--panel) 62%); padding-inline: 2px; }
.rot > span:first-child, #demoNote1, #demoNote2, #demoTime, #demoTitle { transition: opacity 280ms var(--ease), transform 280ms var(--ease); }
.swap-out { opacity: 0; transform: translateY(-0.3em); }
.swap-in { opacity: 0; transform: translateY(0.3em); transition: none !important; }
@media (max-width: 860px) { .g-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 16px 32px; } .g-hero p { font-size: 17px; } }
/* Before → after: the note you were given, and two phones where one person's Done reaches the other */
.g-demo { background: var(--panel); border-radius: var(--r-xl); padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1.1fr); gap: 10px; align-items: center; }
.g-note { background: var(--screen-card); border-radius: 6px; padding: 12px 14px; transform: rotate(-2.5deg); box-shadow: 0 6px 16px rgba(35, 26, 21, 0.12); font-size: 13px; line-height: 1.35; }
.g-note-h { font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
.g-note p { margin: 0 0 6px; border-bottom: 1px solid var(--divider); padding-bottom: 4px; }
.g-arrow { width: 28px; color: var(--text-2); }
.g-phones { display: grid; gap: 10px; }
.g-notif { background: var(--screen-card); border-radius: var(--r-lg); padding: 10px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; box-shadow: 0 6px 16px rgba(35, 26, 21, 0.1); font-size: 14px; }
.g-notif b { grid-row: span 2; font-variant-numeric: tabular-nums; align-self: center; }
.g-notif span { font-weight: 600; }
.g-notif small { color: var(--text-2); font-size: 12px; }
.g-notif.done b { color: var(--done); }
@media (max-width: 400px) { .g-demo { padding: 16px; grid-template-columns: minmax(0, 1fr); } .g-arrow { justify-self: center; transform: rotate(90deg); } .g-note { transform: rotate(-1.5deg); } }

.grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .grid { grid-template-columns: minmax(0, 1fr); } }

/* Steps */
.steps { display: grid; gap: 36px; min-width: 0; }
.step { display: grid; gap: 14px; min-width: 0; }
.step-h { display: flex; align-items: baseline; gap: 12px; }
.step-n { font-family: var(--display); font-weight: 700; font-size: 15px; width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: inline-grid; place-items: center; background: var(--panel); color: var(--text); transform: translateY(-2px); }
.step-h h2 { font-size: 26px; font-weight: 600; }
.hint { color: var(--text-2); font-size: 14px; margin: 0; }

/* Paste */
.paste { background: var(--surface); border: 1px solid var(--border-input); border-radius: var(--r-lg); overflow: hidden; }
.paste textarea { display: block; width: 100%; min-height: 190px; resize: vertical; border: 0; background: transparent; padding: 16px 18px;
  font-size: 15px; line-height: 1.55; font-variant-numeric: tabular-nums; }
.paste textarea:focus-visible { outline: none; }
.paste:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.paste-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-top: 1px solid var(--divider); }
.paste-bar .grow { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-lg);
  border: 1px solid var(--border-input); background: transparent; font-weight: 600; cursor: pointer; transition: background-color 150ms var(--ease), transform 150ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-pressed); }
.btn[disabled] { opacity: 0.4; cursor: default; }
.btn svg { width: 18px; height: 18px; }
.linkish { border: 0; background: none; padding: 6px 2px; color: var(--link); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.chip-btn { border: 1px solid var(--border-input); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 500; cursor: pointer; }
.chip-btn:hover { background: var(--surface); }

.status { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--divider); }
.status svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.status.ok svg { color: var(--done); }
.status.err { color: var(--text); } .status.err svg { color: var(--critical-text); }
.status.busy svg { color: var(--normal); animation: spin 1s linear infinite; }
.status ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); }
@keyframes spin { to { transform: rotate(360deg); } }


/* How to start */
.start { display: grid; gap: 10px; }
.start-q { font-size: 14px; font-weight: 600; color: var(--text-2); }
.start-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .start-opts { grid-template-columns: minmax(0, 1fr); } }
.opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--border-input);
  background: transparent; cursor: pointer; transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease); min-width: 0; }
.opt:active { transform: scale(0.99); }
.opt svg { width: 26px; height: 26px; flex: none; color: var(--text-2); margin-top: 1px; }
.opt span { display: grid; gap: 2px; min-width: 0; }
.opt b { font-size: 16px; }
.opt small { font-size: 13px; color: var(--text-2); }
.opt[aria-checked="true"] { background: var(--surface); border: 2px solid var(--text); padding: 13px 15px; }
.opt[aria-checked="true"] svg { color: var(--text); }
.hint.small { font-size: 13px; }
.paste { position: relative; }
.drop-hint { position: absolute; inset: 0; display: grid; place-items: center; background: var(--surface); border: 2px dashed var(--focus); border-radius: var(--r-lg);
  font-weight: 600; color: var(--link); opacity: 0; pointer-events: none; transition: opacity 150ms var(--ease); }
.paste.dragging .drop-hint { opacity: 1; }
.i-cam { display: none; }
.touch .i-cam { display: inline; } .touch .i-up { display: none; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; background: var(--hint-bg); border-radius: 999px; padding: 4px 6px 4px 12px; max-width: 100%; }
.file-chip button { border: 0; background: none; cursor: pointer; font-size: 13px; text-decoration: underline; padding: 2px 6px; }

.privacy { display: grid; gap: 6px; }
.privacy p { margin: 0; display: flex; gap: 10px; font-size: 14px; color: var(--text-2); }
.privacy p svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--text); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--text); }
.consent a { color: var(--link); font-weight: 600; }
.consent.need { animation: nudge 300ms var(--ease); }
@keyframes nudge { 30% { transform: translateX(-4px); } 70% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .consent.need { animation: none; } }
.unsure { padding-left: 30px; font-size: 13px !important; }
.unsure .linkish { padding: 0; font-size: 13px; }
/* Routine fields */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.fields .wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: minmax(0, 1fr); } }
label.f { display: grid; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
label.f small { font-weight: 400; color: var(--text-2); }
.inp { width: 100%; min-height: 44px; border: 1px solid var(--border-input); border-radius: var(--r-md); background: var(--surface); padding: 9px 12px; font-size: 16px; }
.inp.big { font-family: var(--display); font-weight: 600; font-size: 22px; padding: 6px 12px; }
.inp::placeholder, .row .t::placeholder, .row .d::placeholder { color: var(--text-2); opacity: 0.6; font-weight: 400; }
.desk-only { display: none; }
@media (pointer: fine) { .desk-only { display: inline; } }
.err-line { display: flex; gap: 6px; align-items: center; color: var(--critical-text); font-size: 14px; font-weight: 500; }
.err-line svg { width: 16px; height: 16px; }

/* Reminder rows */
.list { display: grid; border-top: 1px solid var(--divider); }
.row { display: grid; grid-template-columns: 28px 104px minmax(0, 1fr) auto; gap: 8px 14px; padding: 14px 0; border-bottom: 1px solid var(--divider); align-items: start; }
.row.enter { animation: rowIn 260ms var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.row .time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 17px; padding: 8px 8px; }
.row .main { display: grid; gap: 6px; min-width: 0; }
.row .t { border: 1px solid transparent; background: transparent; font-weight: 600; font-size: 17px; padding: 6px 8px; border-radius: 10px; width: 100%; }
.row .d { border: 1px solid transparent; background: transparent; font-size: 15px; color: var(--text-2); padding: 4px 8px; border-radius: 10px; width: 100%;
  resize: none; overflow: hidden; line-height: 1.45; min-height: 30px; }
.row .t:hover, .row .d:hover { border-color: var(--divider); }
.row .t:focus, .row .d:focus { border-color: var(--border-input); background: var(--surface); outline: none; }
.row .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-left: 8px; }
.prio { border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease); min-height: 32px; }
.prio svg { width: 14px; height: 14px; }
.prio.high { background: var(--critical-fill); color: var(--on-critical); border: 1px solid var(--critical-fill); }
.prio.normal { background: var(--normal-chip); color: var(--normal-on); border: 1px solid var(--normal); }
.sel { appearance: none; -webkit-appearance: none; border: 1px solid var(--border-input); border-radius: 999px; background: var(--surface) var(--chev) no-repeat right 10px center / 12px 12px; font-size: 13px; padding: 4px 30px 4px 12px; min-height: 32px; max-width: 100%; cursor: pointer; }
.nmini { width: 56px; border: 1px solid var(--border-input); border-radius: 999px; background: var(--surface); font-size: 13px; padding: 4px 8px; min-height: 32px; text-align: center; }
.meta .lbl { font-size: 13px; color: var(--text-2); }
.days { display: flex; gap: 4px; flex-wrap: wrap; }
.days button { width: 34px; height: 32px; border-radius: 999px; border: 1px solid var(--border-input); background: transparent; font-size: 12px; font-weight: 600; cursor: pointer; }
.days button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.guess { font-size: 12px; font-weight: 600; color: var(--normal); border: 1px dotted var(--normal); border-radius: 999px; padding: 3px 10px; }
.del { border: 0; background: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; color: var(--text-2); display: grid; place-items: center; }
.del:hover { background: var(--surface); color: var(--text); }
.del svg { width: 18px; height: 18px; }
.empty { padding: 22px 0; color: var(--text-2); border-bottom: 1px solid var(--divider); }
.skel { height: 64px; border-bottom: 1px solid var(--divider); display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; }
.skel i { display: block; height: 14px; border-radius: 7px; background: var(--divider); animation: pulse 1.4s ease-in-out infinite; }
.skel i + i { width: 70%; }
@keyframes pulse { 50% { opacity: 0.45; } }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* Phones: each reminder is a card. Top line: grip, time, ✕; then the full-width text boxes, then priority and repeat. */
@media (max-width: 560px) {
  .row { grid-template-columns: 28px auto minmax(0, 1fr) auto; grid-template-areas: "grip time . del" "main main main main"; gap: 10px 8px; padding: 14px 0 16px; }
  .row .grip { grid-area: grip; } .row .time { grid-area: time; } .row .main { grid-area: main; } .row .del { grid-area: del; }
  .row .time { width: auto; min-width: 118px; padding: 8px 10px; font-size: 16px; }
  .row .time::-webkit-calendar-picker-indicator { display: none; }
  .row .t, .row .d { border-color: var(--border-input); background: var(--surface); }
  .row .t { font-size: 16px; padding: 9px 12px; }
  .row .d { font-size: 15px; padding: 8px 12px; min-height: 40px; }
  .row .meta { padding-left: 0; }
  .tools .lbl { flex-basis: 100%; }
  .tools .grow { display: none; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .linkish { align-self: center; }
}

/* Share */
.linkbox { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.linkbox output { flex: 1 1 260px; min-width: 0; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; padding: 12px 14px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border-input); overflow-wrap: anywhere; user-select: all; }
.share-note { display: grid; gap: 4px; font-size: 14px; color: var(--text-2); }
.share-note p { margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.share-note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }

/* List tools */
.tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); }
.tools .lbl { font-weight: 600; }
.tools .grow { flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--border-input); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; min-height: 34px; }
.seg button + button { border-left: 1px solid var(--border-input); }
.seg button:hover { background: var(--surface); }
.grip { width: 28px; height: 40px; border: 0; background: none; cursor: grab; color: var(--text-2); display: grid; place-items: center; border-radius: 8px; touch-action: none; }
.grip:hover { background: var(--surface); color: var(--text); }
.grip svg { width: 14px; height: 20px; }
.row.dragging { position: relative; z-index: 3; background: var(--surface); box-shadow: 0 10px 28px rgba(35, 26, 21, 0.18); border-radius: var(--r-md); transition: none; cursor: grabbing; }
.row.shift { transition: transform 180ms var(--ease); }
.row.flash { animation: flash 900ms var(--ease); }
@keyframes flash { 0% { background: var(--hint-bg); } 100% { background: transparent; } }
/* Preview */
.pv-col { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); display: grid; gap: 12px; }
@media (max-width: 960px) { .pv-col { position: static; } }
.pv-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); text-align: center; }
.panel { background: var(--panel); border-radius: var(--r-xl); padding: 28px 24px; display: grid; place-items: center; }
.phone { width: 100%; max-width: 340px; background: var(--frame); border-radius: 44px; padding: 10px; }
.screen { background: var(--screen); border-radius: 35px; height: 640px; overflow-y: auto; overscroll-behavior: contain; position: relative; scrollbar-width: thin; }
.screen-in { padding: 34px 18px 22px; display: grid; gap: 14px; }
.notch { position: sticky; top: 0; height: 0; z-index: 2; }
.notch::before { content: ""; position: absolute; left: 50%; top: 10px; width: 92px; height: 24px; margin-left: -46px; border-radius: 14px; background: var(--frame); }
.pv-brand { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.pv-brand svg { width: 16px; height: 16px; }
.pv-title { font-size: 28px; font-weight: 700; overflow-wrap: anywhere; }
.pv-title.placeholder { color: var(--text-2); }
.pv-sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.pv-list { display: grid; gap: 8px; }
.pv-row { background: var(--screen-card); border-radius: var(--r-lg); padding: 12px 14px; display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 2px 10px; }
.pv-row .tm { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; grid-row: span 3; padding-top: 1px; }
.pv-row .tt { font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.pv-row .dd { font-size: 13px; color: var(--text-2); line-height: 1.35; overflow-wrap: anywhere; white-space: pre-line; }
.pv-row .mm { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; font-size: 12px; color: var(--text-2); }
.pv-crit { display: inline-flex; align-items: center; gap: 4px; background: var(--critical-fill); color: var(--on-critical); border-radius: 999px; padding: 1px 8px; font-weight: 600; }
.pv-crit svg { width: 11px; height: 11px; }
.pv-more { justify-self: center; border: 0; background: none; color: var(--link); font-weight: 600; font-size: 14px; cursor: pointer; padding: 6px; }
.pv-cta { background: var(--screen-card); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 8px; }
.pv-cta h3 { font-size: 20px; font-weight: 600; }
.pv-cta p { margin: 0; font-size: 13px; color: var(--text-2); }
.pv-cta button { margin-top: 4px; min-height: 46px; border-radius: var(--r-lg); border: 0; background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: 15px; cursor: pointer; }
.pv-disc { font-size: 11px; color: var(--text-2); text-align: center; margin: 0; }
.pv-empty { font-size: 14px; color: var(--text-2); text-align: center; padding: 24px 8px; border: 1px dashed var(--border-input); border-radius: var(--r-lg); }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translate(-50%, 16px); opacity: 0;
  background: var(--primary); color: var(--on-primary); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; pointer-events: none;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease); max-width: calc(100% - 32px); text-align: center; z-index: 10; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.jump { display: none; }
@media (max-width: 960px) { .jump { display: inline-flex; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .row.enter { animation: fadeOnly 150ms linear both; }
  @keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
  .status.busy svg, .skel i { animation: none; }
  .btn:active { transform: none; }
  .toast { transition: opacity 150ms linear; transform: translate(-50%, 0); }
}
.foot { margin-top: 40px; color: var(--text-2); font-size: 13px; max-width: 70ch; }

/* FAQ */
.faq { padding-block: 32px 8px; max-width: 46rem; }
.faq h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--divider); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; background: var(--chev) no-repeat center / 12px 12px; transition: transform 150ms var(--ease); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq h3 { font: 600 1.0625rem/1.35 var(--body); margin: 0; }
.faq p { color: var(--text-2); margin: 0 0 16px; }

/* Step 3: onto a phone. Phone look (html.touch) and computer look (the rest) differ; see generator.js renderLink. */
html.touch .on-desk, html:not(.touch) .on-touch { display: none !important; }
.sh { display: grid; gap: 10px; justify-items: start; }
html.touch .sh { justify-items: stretch; }
html.touch .sh-wide { width: 100%; min-height: 52px; }
.sh-lbl { font-size: 14px; font-weight: 600; color: var(--text-2); margin: 8px 0 0; }
.sh-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; margin: 0; }
.sh-meta .linkish { padding: 2px 0; font-size: 13px; }
.sh .linkbox { width: 100%; }
.pulse { animation: pulse 400ms var(--ease); }
@keyframes pulse { 50% { transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.qr-card { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r-lg); padding: 16px; max-width: 520px; }
.qr-card b { display: block; font-size: 16px; }
.qr-card p { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }
/* The QR stays dark on light in dark mode too (primitives, not semantic tokens), or cameras struggle. */
.qr { width: 168px; flex: none; aspect-ratio: 1; background: var(--cream); padding: 8px; border-radius: var(--r-md); }
.qr svg { display: block; width: 100%; height: 100%; }
.qr svg rect { fill: var(--cream); } .qr svg path { fill: var(--cocoa); }
@media (max-width: 420px) { .qr-card { flex-direction: column; text-align: center; } }

/* The printed sheet («Imprimir»): plain black on white, one A4. */
.ps { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  body * { visibility: hidden; }
  .ps, .ps * { visibility: visible; }
  .ps { display: block; position: absolute; inset: 0; color: #000; background: #fff; font: 11pt/1.4 var(--body); }
  .ps-brand { font-weight: 700; margin: 0; }
  .ps h1 { font-size: 24pt; margin: 4mm 0 1mm; }
  .ps-sub { margin: 0 0 6mm; }
  .ps-qr { display: flex; gap: 8mm; align-items: center; border: 1px solid #000; border-radius: 4mm; padding: 6mm; margin-bottom: 8mm; break-inside: avoid; }
  .ps-qr .qr { width: 42mm; padding: 0; background: #fff; }
  .ps-qr .qr svg rect { fill: #fff; } .ps-qr .qr svg path { fill: #000; }
  .ps-qr h2 { font-size: 15pt; margin: 0 0 2mm; } .ps-qr ol { margin: 0 0 3mm; padding-left: 5mm; } .ps-qr p { margin: 0; }
  .ps-url { font-family: ui-monospace, Menlo, monospace; }
  .ps-list { columns: 2; column-gap: 10mm; padding-left: 0; list-style: none; margin: 0; }
  .ps-list.one { columns: 1; }
  .ps-list li { break-inside: avoid; margin-bottom: 3mm; }
  .ps-list li b { font-variant-numeric: tabular-nums; margin-right: 2mm; }
  .ps-list li span { display: block; font-size: 9.5pt; }
  .ps-foot { margin-top: 8mm; font-size: 8.5pt; }
  .toast { display: none; }
}
