/* Almond UI system. Loaded after styles.css: it defines each kind of element once, so the same element looks the
   same on every screen, in both themes. Change a value here (or a token below) and it changes everywhere. */

/* ---- Tokens ---- */
:root {
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --radius-card: 16px;              /* every card, tile, panel, dialog and the Practice box */
  --radius-control: 12px;           /* inputs, selects, disclosure boxes, option buttons, segmented controls, primary buttons */
  --radius-pill: 999px;             /* every action button */
  --control-h: 44px;                /* height of every button and icon button, which is also the tap target */
  --fs-note: 13px;                  /* hints, notes, status and error text */
  --fs-meta: 12px;                  /* timestamps and other small metadata */
  --danger: #b3402d;                /* the only red */
  --tile: #ede7dd;                  /* highlighted tiles and callouts */
  --track: color-mix(in srgb, var(--ink) 12%, transparent);   /* the empty part of every progress bar */
  --inverse-bg: #171512;            /* the Practice box is the inverse of the page: black box, white text (light mode) ... */
  --inverse-fg: #fffaf3;
  --inverse-muted: #c9c0b5;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] {
  --danger: #f08a76;
  --tile: #27231e;
  --inverse-bg: #f3ede4;            /* the Practice box is the inverse of the page: light box, dark text ... */
  --inverse-fg: #171512;
  --inverse-muted: #736b62;
}

/* ---- Icons: one drawn set (see the sprite in index.html), one stroke weight ---- */
.icon, .btn-icon { display:inline-block; flex:none; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; vertical-align:middle; }
.btn-icon, .primary-button .icon, .back-button .icon, .stepper .icon { width:16px; height:16px; }
.nav-icon .icon { width:22px; height:22px; }
.meta-icon { width:14px; height:14px; margin:-2px 3px 0 1px; }

/* ---- Buttons ---- */
button:disabled, [aria-disabled="true"] { opacity:.5; cursor:not-allowed; }
:where(button, a, summary, select, [tabindex="0"]):focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

/* action pills: Regenerate, Submit, Delete, Try again, Show more, Take the tour ... */
.secondary-button, .regen-button, .danger-button, .back-button {
  display:inline-flex; align-items:center; justify-content:center; flex:none; gap:10px;
  min-height:var(--control-h); margin:0; padding:0 18px;
  border:1px solid var(--accent); border-radius:var(--radius-pill); background:transparent; color:var(--accent);
  font:600 13px/1.2 var(--font-sans); text-align:left;
}
.regen-button, .danger-button { justify-content:space-between; }                /* label left, icon right */
@media (hover:hover) { .secondary-button:hover:not(:disabled), .regen-button:hover:not(:disabled) { background:var(--accent); color:var(--paper); } }
.danger-button { border-color:var(--danger); color:var(--danger); }
@media (hover:hover) { .danger-button:hover:not(:disabled) { background:var(--danger); color:var(--paper); } }
.back-button { border-color:var(--line); background:var(--surface); color:var(--muted); font-weight:500; }
@media (hover:hover) { .back-button:hover:not(:disabled) { border-color:var(--muted); color:var(--ink); } }

/* plain text actions: Cancel, Keep going, Skip tour */
.text-button { display:inline-flex; align-items:center; min-height:var(--control-h); padding:0 6px; border:0; background:transparent; color:var(--accent); font:600 13px/1.2 var(--font-sans); }
.text-button.inline { display:inline; min-height:0; padding:0; font:inherit; }

/* round icon buttons: Settings, Practice, delete, reset view */
.settings-button, .play-button, .icon-delete, .graph-reset {
  display:inline-grid; place-items:center; flex:none; width:var(--control-h); height:var(--control-h); margin:0; padding:0;
  border:1px solid var(--line); border-radius:50%; background:transparent; color:var(--muted); font-size:0;
}
.settings-button { background:color-mix(in srgb, var(--surface) 88%, transparent); }
.play-button { border-color:var(--accent); color:var(--accent); }
@media (hover:hover) { .play-button:hover:not(:disabled) { background:var(--accent); color:var(--paper); } }
@media (hover:hover) { .icon-delete:hover:not(:disabled) { border-color:var(--danger); color:var(--danger); } }
.graph-reset { position:absolute; top:10px; right:10px; z-index:2; background:color-mix(in srgb, var(--surface) 88%, transparent); }
@media (hover:hover) { .graph-reset:hover:not(:disabled), .settings-button:hover:not(:disabled) { border-color:var(--accent); color:var(--accent); } }
.practice-control .play-button { margin-right:0; }

/* primary (dark) button */
.primary-button { border-radius:var(--radius-pill); min-height:var(--control-h); }
.primary-button .btn-icon { margin-left:12px; }

/* one segmented control (capture mode, depth, card counts, theme ...) */
.segmented { display:inline-flex; flex-wrap:wrap; gap:3px; justify-self:start; max-width:100%; padding:3px; border:1px solid var(--line); border-radius:var(--radius-control); background:var(--surface); }
.seg-choice { min-height:40px; padding:0 16px; border:0; border-radius:calc(var(--radius-control) - 3px); background:transparent; color:var(--muted); font:500 14px/1 var(--font-sans); }
.seg-choice.active { background:var(--deep); color:var(--paper); }
.stepper button { width:40px; height:40px; }
.stepper input { height:40px; }

/* ---- Fields: one look for every input, textarea and select ---- */
input, textarea, select { font:400 16px/1.5 var(--font-sans); }      /* one size, whatever the field sits inside */
textarea, select, input:where(:not([type="radio"]):not([type="checkbox"]):not([type="file"])) { border-radius:var(--radius-control); }
.search-box input { border:0; box-shadow:none; background:transparent; }
.stepper input { padding:0; border-radius:0; border-width:0 1px; }
.section-picker select { padding:0 28px 0 12px; border:0; background:transparent; font-size:13px; min-height:var(--control-h); }
.file-pick { border-radius:var(--radius-control); }
.option-button, .advanced-options, .rating-buttons button { border-radius:var(--radius-control); }

/* ---- Surfaces: two tiers, one corner radius ---- */
.item-detail, .review-card, .analytics-panel, .library-group, .review-summary, .tour-card, .modal-card, .overview-grid article, .profile-card, .usage-summary,
.grade-panel, .regen-panel, .regen-tracking, .regen-cards, .analytics-kpi, .review-cta { border-radius:var(--radius-card); }
.item-detail, .review-card, .analytics-panel, .library-group { border:1px solid var(--line); background:color-mix(in srgb, var(--surface) 88%, transparent); }
.overview-grid article, .profile-card, .usage-summary, .grade-panel, .regen-panel, .regen-tracking, .regen-cards, .analytics-kpi { border:0; background:var(--tile); color:var(--ink); }
.regen-panel .regen-tracking { background:transparent; }
.review-summary { border:0; background:transparent; }
.profile-card p, .summary { color:var(--muted); }

/* the Practice box: the inverse of the page, outlined in the same orange as its play button; its text always contrasts with its fill */
.review-cta { border:1.5px solid var(--accent); background:var(--inverse-bg); color:var(--inverse-fg); }
.review-cta .review-cta-practice, .review-cta strong { color:var(--inverse-fg); }
.review-cta-label, .review-cta-detail { color:var(--inverse-muted); }
.review-cta-play .icon { width:22px; height:22px; margin-left:2px; }
.review-cta-play { padding-left:0; }

/* the usage box follows the theme's tile colour, so its text is always readable */
.usage-summary strong, .usage-summary .usage-percent { color:var(--ink); }
.usage-summary span { color:var(--muted); }

/* ---- Text ---- */
.form-note, .summary-note, .regen-note, .regen-pending, .advanced-hint, .history-row, .empty-copy, .review-note, .regen-done, .count-sum { font-size:var(--fs-note); line-height:1.55; }
.item-meta, .item-detail-line, .regen-progress-percent, .analytics-bar span, .group-heading span { font-size:var(--fs-meta); }
.empty-copy { margin:14px 0; }
.form-error, .form-note.is-error, .summary-note.is-error { color:var(--danger); }
.form-error:empty, .form-note:empty { min-height:0; }
.ready-inline { color:var(--sage); font-weight:600; }
.regen-inline { color:var(--accent); font-weight:600; }

/* ---- Progress bars: one height, one track ---- */
.regen-progress-track, .usage-track, .tour-bar { height:6px; overflow:hidden; border-radius:var(--radius-pill); background:var(--track); }
.regen-progress-track i, .usage-track i, .tour-bar i { background:var(--accent); }
.regen-progress.is-done .regen-progress-track i { background:var(--sage); }
.regen-progress.is-failed .regen-progress-track i { background:var(--danger); }
.regen-progress.is-failed .regen-progress-label { color:var(--danger); }

/* ---- Disclosure chevrons: one drawn chevron for every <details> ---- */
.library-group > summary::after, .advanced-options > summary::after, .insight > summary::after {
  content:""; flex:none; width:18px; height:18px; background:currentColor; -webkit-mask:var(--chevron) center/contain no-repeat; mask:var(--chevron) center/contain no-repeat;
  color:var(--accent); transform:none; transition:transform .15s ease;
}
.library-group[open] > summary::after, .advanced-options[open] > summary::after, .insight[open] > summary::after { transform:rotate(180deg); }
.advanced-options > summary::after { color:var(--muted); }
.insight > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; list-style:none; }
.insight > summary::-webkit-details-marker { display:none; }

/* ---- Confirm dialog and toasts (replace the browser's alert/confirm boxes) ---- */
.modal { position:fixed; inset:0; z-index:60; display:grid; place-items:center; padding:16px; background:color-mix(in srgb, #0d0b09 62%, transparent); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); }
.modal-card { width:min(100%, 400px); padding:22px; border:1px solid var(--line); background:var(--surface); box-shadow:0 24px 60px #0000004d; }
.modal-card h2 { margin:0 0 8px; font:500 24px/1.15 var(--font-serif); letter-spacing:-.01em; }
.modal-card p { margin:0; color:var(--muted); font-size:15px; line-height:1.55; }
.modal-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; margin-top:22px; }
.toast-stack { position:fixed; left:0; right:0; bottom:calc(92px + env(safe-area-inset-bottom)); z-index:70; display:grid; justify-items:center; gap:8px; padding:0 16px; pointer-events:none; }
.toast { pointer-events:auto; max-width:min(100%, 440px); padding:12px 16px; border:1px solid var(--line); border-left:3px solid var(--sage); border-radius:var(--radius-control); background:var(--surface); color:var(--ink); font:500 14px/1.4 var(--font-sans); box-shadow:0 10px 30px #00000026; }
.toast.is-error { border-color:var(--danger); color:var(--danger); }

/* ---- Settings: appearance ---- */
.theme-switch { display:grid; gap:10px; justify-items:start; margin:6px 0 18px; }

/* ---- People and lessons rows ---- */
.guideline-row .icon-delete { margin-left:4px; }

@media (max-width:560px) { .modal { align-items:end; padding:0; } .modal-card { width:100%; border-radius:var(--radius-card) var(--radius-card) 0 0; padding-bottom:calc(22px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion:reduce) { .library-group > summary::after, .advanced-options > summary::after, .insight > summary::after { transition:none; } }

/* ---- small hooks for the drawn icons ---- */
.is-error { color:var(--danger); }
.guideline-row { align-items:center; }
.tour-pill .icon { width:14px; height:14px; margin-left:6px; vertical-align:-2px; }
.tour-flow > .icon { color:var(--muted); }
.tour-task .icon { color:var(--sage); }
.search-box .icon { color:var(--muted); }
.item-detail .detail-back { display:inline-flex; width:max-content; margin:0 0 20px; }
.review-cta-play { color:var(--accent); }
.library-group > summary::after { margin-left:auto; }

/* the serif digits sit high in their line box; centre them optically in the Practice box */
.review-cta strong { line-height:1; transform:translateY(0.11em); }

/* stacked actions on the empty review screen */
.review-empty-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:24px; }

/* photos attached to developer feedback */
.feedback-entry-actions { display:flex; align-items:center; gap:6px; }
.implemented-tag { display:inline-flex; align-items:center; border:1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius:999px; color:var(--accent); font-size:11px; font-weight:700; letter-spacing:.03em; padding:2px 7px; text-transform:uppercase; }
.review-head { justify-content:flex-end; }
.review-footer,.summary-back-row { display:flex; justify-content:flex-start; margin-top:20px; }
.sequence-order { display:grid; gap:8px; margin:12px 0; }
.sequence-step { display:flex; align-items:center; gap:10px; width:100%; padding:11px; text-align:left; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--ink); }
.sequence-step.selected { border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.sequence-number { display:grid; place-items:center; flex:0 0 24px; width:24px; height:24px; border-radius:50%; background:var(--tile); color:var(--muted); font-size:12px; font-weight:700; }
.photo-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.photo-add { cursor:pointer; }
.photo-add.is-disabled { opacity:.5; pointer-events:none; }
.photo-strip { display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.photo-thumb { position:relative; display:block; width:88px; height:88px; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius-control); background:var(--tile); }
.photo-thumb img { display:block; width:100%; height:100%; object-fit:cover; }
.photo-remove { position:absolute; top:4px; right:4px; display:grid; place-items:center; width:32px; height:32px; padding:0; border:0; border-radius:50%; background:color-mix(in srgb, var(--inverse-bg) 82%, transparent); color:var(--inverse-fg); cursor:pointer; }

/* a sequence question: lead-in, then its steps as a lettered list */
.sequence-list { display:grid; gap:8px; margin:-8px 0 24px; padding:0; list-style:none; }
.sequence-list:empty { display:none; }
.sequence-list li { display:flex; align-items:baseline; gap:12px; padding:10px 12px; border:1px solid var(--line); border-radius:var(--radius-control); background:var(--surface); font-size:16px; line-height:1.45; }
.sequence-list li::before { content:attr(data-label); flex:none; display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:var(--tile); color:var(--muted); font-size:12px; font-weight:700; }
.review-footer { flex-wrap:wrap; gap:10px; }
.capture-progress:empty { display:none; }
.capture-progress { margin-top:12px; }
.sequence-list li > span { min-width:0; flex:1; overflow-wrap:anywhere; }

.developer-feedback-entry { flex-wrap:wrap; }
.developer-feedback-body { flex:1 1 220px; min-width:0; }
.feedback-entry-actions { margin-left:auto; }


/* topics inside a document */
.topics-section { margin-top:26px; padding-top:22px; border-top:1px solid var(--line); }
.topic-list { display:grid; gap:10px; margin:12px 0; }
.topic-row { display:grid; gap:12px; padding:14px; border:1px solid var(--line); border-radius:var(--radius-control); background:var(--surface); }
.topic-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.topic-words { display:grid; gap:4px; min-width:0; }
.topic-words strong { font-weight:600; overflow-wrap:anywhere; }
.topic-none { color:var(--muted); font-size:var(--fs-meta); }
.topic-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.topic-slot:empty { display:none; }
.topic-slot { display:grid; gap:10px; }
.topic-foot { display:grid; gap:10px; }
.topic-foot > .secondary-button, .topic-foot > .regen-button { justify-self:start; }

/* Home: the Practice banner holds the resume pill */
.review-banner { display:grid; justify-items:center; margin:26px 0 18px; border:1.5px solid var(--accent); border-radius:var(--radius-card); background:var(--inverse-bg); color:var(--inverse-fg); }
.review-banner .review-cta { width:100%; margin:0; border:0; border-radius:var(--radius-card); background:transparent; }
.resume-pill { min-height:34px; margin:-6px 0 16px; padding:0 16px; border:1px solid color-mix(in srgb, var(--inverse-fg) 45%, transparent); border-radius:var(--radius-pill); background:transparent; color:var(--inverse-fg); font:600 12px/1 var(--font-sans); }
@media (hover:hover) { .resume-pill:hover { background:color-mix(in srgb, var(--inverse-fg) 12%, transparent); } }

/* Review: Previous / Next above the card, End review below it */
.review-nav { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin:8px 0 16px; }
.review-next { display:grid; justify-items:end; gap:6px; }
.review-progress { color:var(--muted); font-size:var(--fs-note); }
.review-nav .back-button:disabled { opacity:.4; }
.review-end-row { display:flex; justify-content:center; margin-top:18px; }
.review-empty-actions { justify-content:space-between; }

/* pagination (library groups, topics) */
.pager { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:12px; }
.pager .back-button:disabled { opacity:.4; }
.pager-status { color:var(--muted); font-size:var(--fs-note); text-align:center; }

/* practice pill on the document */
.practice-pill { display:inline-flex; align-items:center; gap:10px; min-height:var(--control-h); margin:0; padding:0 18px 0 8px; border:1px solid var(--accent); border-radius:var(--radius-pill); background:transparent; color:var(--accent); font:600 13px/1.2 var(--font-sans); }
.practice-play { display:grid; place-items:center; flex:none; width:28px; height:28px; border-radius:50%; background:var(--accent); color:var(--paper); }
.practice-play .icon { width:13px; height:13px; margin-left:2px; fill:currentColor; }
@media (hover:hover) { .practice-pill:hover { background:var(--accent); color:var(--paper); } }
@media (hover:hover) { .practice-pill:hover .practice-play { background:var(--paper); color:var(--accent); } }

.topic-panel { padding:12px; }
.topic-panel .seg-choice { padding:0 12px; }

/* developer feedback tags */
.future-inline { color:var(--accent); font-weight:600; }

/* topics: side controls */
.topic-side { display:flex; align-items:center; gap:8px; flex:none; }

/* profile: per-point decisions */
.profile-progress:empty { display:none; }
.profile-progress { margin:14px 0; }
.point-list { display:grid; gap:10px; margin:12px 0; padding:0; list-style:none; }
.point { display:grid; gap:8px; padding:12px; border:1px solid var(--line); border-radius:var(--radius-control); background:var(--surface); }
.point-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.point-text { min-width:0; overflow-wrap:anywhere; line-height:1.5; }
.point.is-rejected .point-text { color:var(--muted); text-decoration:line-through; }
.point-tools { display:flex; flex:none; gap:6px; }
.point-tool { display:grid; place-items:center; width:36px; height:36px; padding:0; border:1px solid var(--line); border-radius:50%; background:transparent; color:var(--muted); }
.point-tool .icon { width:16px; height:16px; }
.point-tool:nth-child(1).is-on { border-color:var(--sage); color:var(--sage); background:color-mix(in srgb, var(--sage) 14%, transparent); }
.point-tool:nth-child(2).is-on { border-color:var(--danger); color:var(--danger); background:color-mix(in srgb, var(--danger) 12%, transparent); }
.point-tool:nth-child(3).is-on { border-color:var(--accent); color:var(--accent); background:color-mix(in srgb, var(--accent) 14%, transparent); }
.overall-feedback { margin:12px 0; }

.point-text { flex:1 1 220px; }
.point-tools { margin-left:auto; }

/* profile points: icons above the text, colours shared with the final buttons */
.point-head { display:grid; gap:10px; }
.point-text { flex:none; }
.point-tools { margin-left:0; }
.approve-button { border-color:var(--sage); color:var(--sage); }
@media (hover:hover) { .approve-button:hover:not(:disabled) { background:var(--sage); color:var(--paper); } }

/* rows of pills wrap onto the next line instead of overflowing the card */
.item-danger-row, .item-actions, .regen-actions, .topic-actions, .review-actions, .card-feedback-actions, .card-regen-actions,
.feedback-entry-actions, .modal-actions, .pager, .review-empty-actions, .review-nav, .tour-nav { flex-wrap:wrap; }
.secondary-button, .danger-button, .primary-button, .back-button, .regen-button { max-width:100%; }
.resume-pill { display:inline-flex; align-items:center; gap:8px; }
.resume-pill .btn-icon { width:12px; height:12px; }

/* how the profile helped, and the no-cards explanation */
.profile-note { margin:14px 0; padding:10px 14px; border-left:3px solid var(--accent); border-radius:0 var(--radius-control) var(--radius-control) 0; background:color-mix(in srgb, var(--accent) 9%, transparent); color:var(--ink); font-size:var(--fs-note); line-height:1.55; }
.profile-note .meta-icon { color:var(--accent); }
.no-cards-note { margin:16px 0; padding:14px 16px; border-left:3px solid var(--accent); border-radius:var(--radius-control); background:var(--tile); }
.no-cards-note strong { display:block; margin-bottom:4px; }
.no-cards-note p { margin:0 0 4px; color:var(--muted); line-height:1.55; }

/* topic rows: the play and delete buttons sit in the top-right corner only; text and controls below use the full width */
.topic-head { display:flow-root; }
.topic-side { float:right; margin:0 0 8px 12px; }
.topic-words { display:block; }
.topic-words > * + * { margin-top:4px; }
.topic-row .item-detail-line { display:block; overflow:visible; -webkit-line-clamp:unset; }     /* the whole sentence, whatever the height */

/* nothing may leave its border: long words, URLs and file names wrap inside their box instead of widening the page */
.app-shell { overflow-wrap:break-word; }
.workspace, .content-wrap, .view { min-width:0; max-width:100%; }
img, video, canvas { max-width:100%; height:auto; }
pre, code { white-space:pre-wrap; overflow-wrap:anywhere; }
input, textarea, select { max-width:100%; }

/* containers that hold text may shrink below their content: a long word wraps inside the box instead of widening the page */
.item-detail, .review-card, .grade-panel, .topic-row, .topic-words, .item-row, .item-entry, .profile-card, .point, .point-head, .point-text,
.developer-feedback-body, .link-row, .library-group-body, .analytics-panel, .modal-card, .tour-card, .no-cards-note, .regen-panel,
.pending-update, .card-options, .option-button, .answer-form, .item-meta, .hero-row > div { min-width:0; }

/* review ratings: four equal cells that may shrink, small labels that never split a word, and a plain prompt above them */
.rating-buttons { grid-template-columns:repeat(4, minmax(0, 1fr)); }
.rating-buttons button small { font-size:9px; letter-spacing:.04em; white-space:nowrap; overflow-wrap:normal; }
.rate-prompt { margin:16px 0 8px; color:var(--ink); font-size:14px; font-weight:600; }

/* Home's practice banner: the count never breaks, the label beside it wraps instead */
.review-cta strong { flex:none; white-space:nowrap; overflow-wrap:normal; }
.review-cta-practice { min-width:0; white-space:normal; }
.view > *, .item-list, .item-list > *, .library-list > *, .developer-feedback-history, .developer-feedback-entry, .queue-section, .analytics-columns > *,
.guideline-row, .guideline-row > span, .usage-document, .people-section, .account-section, .stack-form > * { min-width:0; }
.sequence-order, .sequence-step, .sequence-step > span, .sequence-list, .sequence-list li, .sequence-list li > span { min-width:0; }
.sequence-step > span:last-child { flex:1; text-align:left; }

/* the number in front of a document (#id) or a topic (#position) */
.row-number { color:var(--ink); font-weight:600; }

/* Skip tour: a pill at the top right of the card, in the flow so it lines up with the content below */
.tour-skip { position:static; display:flex; width:max-content; margin:0 0 14px auto; min-height:36px; padding:0 14px; }
.tour-skip[hidden] { display:none; }
