/* Workout Log — Palette 1 "Espresso & Amber" only (design\palettes.md). Plates use their own colours (APP.md).
   Gradients only in the blurred background shapes and glass surfaces (palettes.md Notes).
   Rule for contrast: muted text (#B8A898) only on glass/cards, never directly over a background shape. */
:root {
  --bg: #1C1410;
  --surface: #2E221B;
  --primary: #FFB020;
  --accent: #E8D9C4;
  --text: #F5EDE3;
  --muted: #B8A898;
  --on-primary: #1C1410;

  --glass: rgba(46, 34, 27, 0.70);        /* surface at 70%: AA for all text even over the brightest shape */
  --glass-solid: #2E221B;                 /* used when blur isn't supported */
  --edge: rgba(232, 217, 196, 0.14);      /* accent, translucent */
  --well: rgba(28, 20, 16, 0.55);         /* background, translucent: inputs inside glass */
  --soft: rgba(232, 217, 196, 0.10);      /* accent, translucent: secondary buttons */
  --scrim: rgba(28, 20, 16, 0.62);
  --shadow: 0 18px 40px rgba(28, 20, 16, 0.45);

  --r-card: 28px;
  --r-mid: 20px;
  --tap: 48px;
  --gutter: 18px;
  --nav-h: 76px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.4; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; font-variant-numeric: tabular-nums; overflow-x: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
::selection { background: var(--primary); color: var(--on-primary); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { display: inline-grid; place-items: center; flex: none; line-height: 0; }

/* ---------- Background shapes ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.backdrop i { position: absolute; border-radius: 50%; filter: blur(56px); will-change: transform; }
.backdrop .b1 { width: 320px; height: 320px; left: -110px; top: -90px; background: var(--primary); opacity: .38; }
.backdrop .b2 { width: 260px; height: 260px; right: -100px; top: 32%; background: var(--accent); opacity: .24; }
.backdrop .b3 { width: 300px; height: 300px; left: -90px; bottom: 6%; background: var(--primary); opacity: .26; }
.backdrop .b4 { width: 220px; height: 220px; right: -60px; bottom: -80px; background: var(--primary); opacity: .20; }
@media (prefers-reduced-motion: no-preference) {
  .backdrop .b1 { animation: drift1 26s ease-in-out infinite alternate; }
  .backdrop .b2 { animation: drift2 32s ease-in-out infinite alternate; }
  @keyframes drift1 { to { transform: translate(40px, 30px) scale(1.08); } }
  @keyframes drift2 { to { transform: translate(-30px, 40px) scale(.94); } }
}

/* ---------- Glass ---------- */
.glass { background: var(--glass-solid); border: 1px solid var(--edge); box-shadow: var(--shadow); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass { background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15); }
}
.card { border-radius: var(--r-card); padding: 18px; margin-top: 12px; }
.card.tight { padding: 6px 18px; }

/* ---------- Layout ---------- */
.app { max-width: 520px; margin: 0 auto; min-height: 100dvh; }
.screen { padding: max(18px, env(safe-area-inset-top)) var(--gutter) calc(var(--nav-h) + 40px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: no-preference) {
  .screen.enter { animation: screenIn 220ms cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes screenIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row.start { justify-content: flex-start; }
.grow { flex: 1; min-width: 0; }
.label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.big { font-size: 32px; font-weight: 800; line-height: 1.1; }
.h1 { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.15; }
.h2 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { color: var(--muted); font-size: 15px; margin: 6px 0 0; }

/* Header on main screens */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.greet { display: flex; align-items: center; gap: 12px; min-width: 0; }
.greet small { display: block; color: var(--accent); font-size: 14px; }
.greet .h1 { font-size: 25px; }
.icon-btn { width: var(--tap); height: var(--tap); border-radius: 50%; display: grid; place-items: center; color: var(--text); flex: none; }
.icon-btn.glass { box-shadow: none; }

/* Avatar */
.avatar { border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 800; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.ring { box-shadow: 0 0 0 3px var(--primary); }

/* ---------- Buttons ---------- */
.pill { width: 100%; min-height: 56px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; text-align: center; }
.pill.sm { min-height: var(--tap); width: auto; font-size: 16px; padding: 0 20px; }
.pill.ghost { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.pill.soft { background: var(--soft); color: var(--text); font-weight: 700; font-size: 16px; min-height: var(--tap); }
.pill:disabled { background: var(--soft); color: var(--muted); box-shadow: none; cursor: default; }
.btn-text { width: 100%; min-height: var(--tap); margin-top: 6px; color: var(--muted); font-weight: 700; text-align: center; }
.link { color: var(--primary); font-weight: 700; min-height: 44px; padding: 0 2px; }
.tag { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 700; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; color: var(--on-primary); background: var(--accent); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }

/* ---------- Bottom navigation ---------- */
/* Bars that content scrolls behind use a denser glass so their labels stay clear. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .nav.glass { background: rgba(46, 34, 27, .88); } .sticky-foot.glass { background: var(--glass-solid); } }
.nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: 496px; height: var(--nav-h); border-radius: 999px; display: grid; grid-template-columns: 1fr 1fr 84px 1fr 1fr; align-items: center; padding: 0 6px; z-index: 5; }
.nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; font-size: 11px; font-weight: 700; color: var(--muted); border-radius: 999px; }
.nav button[aria-current="page"] { color: var(--primary); }
.nav .fab { width: 68px; height: 68px; min-height: 0; margin: -34px auto 0; border-radius: 50%; background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 26px rgba(255, 176, 32, .35), 0 0 0 6px var(--bg); }
@media (prefers-reduced-motion: no-preference) {
  .nav .fab { transition: transform 160ms ease; }
  .nav .fab:active { transform: scale(.94); }
}

/* ---------- Home ---------- */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.days span { height: 44px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.days span.on { background: var(--primary); color: var(--on-primary); }
.days span.today { box-shadow: inset 0 0 0 2px var(--primary); color: var(--text); }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 8px 0; border-top: 1px solid var(--edge); text-align: left; }
.list-item:first-child { border-top: 0; }
.list-item b { display: block; font-size: 16px; }
.list-item small { display: block; color: var(--muted); font-size: 13px; }
.list-item .val { font-weight: 800; font-size: 17px; text-align: right; flex: none; }
.list-item .val small { font-weight: 600; }
.card-btn { display: block; width: 100%; text-align: left; }

/* ---------- Workout ---------- */
.entry-card { border-radius: var(--r-card); padding: 16px 12px 14px; margin-top: 12px; }
.entry-head { display: flex; align-items: flex-start; gap: 8px; padding: 0 6px 6px; }
.entry-head .h2 { font-size: 19px; }
.entry-last { color: var(--muted); font-size: 13px; margin-top: 2px; }
.entry-saved { color: var(--muted); font-size: 12px; }
.set { display: grid; grid-template-columns: 34px minmax(0, 1fr) 14px 70px 48px; align-items: center; gap: 6px; min-height: 56px; }
.set-n { width: 34px; height: 40px; border-radius: 12px; color: var(--muted); font-weight: 800; display: grid; place-items: center; }
.box { position: relative; height: 48px; border-radius: 16px; background: var(--well); display: flex; align-items: center; }
.box input { width: 100%; min-width: 0; height: 100%; background: transparent; border: 0; border-radius: 16px; text-align: center; font-size: 19px; font-weight: 800; padding: 0 6px; }
.box input:focus { outline: none; }
.box:focus-within { box-shadow: inset 0 0 0 2px var(--primary); }
.box.w input { text-align: right; padding-right: 2px; }
.box .unit { color: var(--muted); font-size: 13px; font-weight: 700; padding-right: 4px; flex: none; }
.box .pl { width: 34px; height: 34px; margin-right: 6px; border-radius: 50%; background: rgba(255, 176, 32, .16); color: var(--primary); display: grid; place-items: center; flex: none; }
.times { color: var(--muted); text-align: center; font-weight: 700; }
.tick { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--muted); }
.tick[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.entry-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.wo-head { padding-bottom: 4px; }
.wo-head .h1 { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-actions .pill { padding: 0 12px; font-size: 15px; }

/* ---------- Exercises ---------- */
.search { display: flex; align-items: center; gap: 10px; height: 54px; border-radius: 999px; padding: 0 18px; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; color: var(--text); font-size: 17px; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--primary); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 12px calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter) 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.chip.glass { box-shadow: none; }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.chip select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; font-weight: 700; font-size: 14px; padding-right: 2px; }
.chip select:focus { outline: none; }
.chip option { background: var(--surface); color: var(--text); }
.ex-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 12px 14px; border-radius: 24px; margin-top: 8px; text-align: left; }
.ex-row.glass { box-shadow: none; }
.ex-av { width: 44px; height: 44px; border-radius: 16px; background: rgba(255, 176, 32, .14); color: var(--primary); display: grid; place-items: center; flex: none; }
.ex-row .t { flex: 1; min-width: 0; }
.ex-row .t b { display: block; font-size: 16px; line-height: 1.25; }
.ex-row .t small { color: var(--muted); font-size: 13px; }
.ex-row .lt { text-align: right; font-size: 13px; color: var(--muted); flex: none; max-width: 40%; }
.ex-row .lt b { display: block; color: var(--text); font-size: 15px; }
.create-row { margin-top: 10px; }
.steps { margin: 8px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.steps li { margin-bottom: 6px; }
.saved-box { border-radius: var(--r-mid); background: var(--well); padding: 12px 14px; margin-top: 12px; }

/* ---------- Dialogs ---------- */
dialog { color: var(--text); border: 0; padding: 0; background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: var(--scrim); }
.screen-dlg { width: 100%; height: 100%; margin: 0; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.screen-dlg::backdrop { background: var(--bg); }
.screen-dlg .dlg-body { position: relative; max-width: 520px; margin: 0 auto; min-height: 100%; padding: max(14px, env(safe-area-inset-top)) var(--gutter) max(28px, env(safe-area-inset-bottom)); isolation: isolate; }
.screen-dlg .dlg-body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(260px 260px at 90% 0%, rgba(255, 176, 32, .30), transparent 70%), radial-gradient(240px 240px at 0% 55%, rgba(232, 217, 196, .16), transparent 70%), radial-gradient(260px 260px at 100% 100%, rgba(255, 176, 32, .20), transparent 70%); }
.dlg-head { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.dlg-head .h2 { font-size: 22px; }

dialog.sheet { width: 100%; max-width: 520px; margin: auto auto 0; }
.sheet .dlg-body { background: var(--glass-solid); border: 1px solid var(--edge); border-bottom: 0; border-radius: 32px 32px 0 0; padding: 12px var(--gutter) max(22px, env(safe-area-inset-bottom)); max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; box-shadow: var(--shadow); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sheet .dlg-body { background: rgba(46, 34, 27, .86); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
}
.sheet.tall .dlg-body { min-height: 80dvh; }
.sheet h2 { margin: 0; font-size: 21px; font-weight: 800; }
.grab { width: 42px; height: 5px; border-radius: 3px; background: var(--muted); opacity: .5; margin: 0 auto 14px; }
.hint { color: var(--muted); margin: 6px 0 14px; font-size: 15px; }
@media (prefers-reduced-motion: no-preference) {
  dialog.sheet[open] .dlg-body { animation: sheetUp 240ms cubic-bezier(.2, .8, .2, 1) both; }
  dialog.screen-dlg[open] .dlg-body { animation: screenIn 220ms cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}
.field { width: 100%; height: 56px; border-radius: var(--r-mid); background: var(--well); border: 1px solid var(--edge); padding: 0 18px; font-size: 18px; font-weight: 700; margin-top: 10px; }
.field:focus { outline: none; box-shadow: inset 0 0 0 2px var(--primary); border-color: transparent; }
.field::placeholder { color: var(--muted); opacity: 1; font-weight: 600; }
.field-note { min-height: 22px; margin: 8px 2px 8px; color: var(--accent); font-size: 15px; }
.choose-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.btn-row { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-radius: 18px; background: var(--well); font-weight: 700; font-size: 17px; text-align: left; }
.btn-row.current { box-shadow: inset 0 0 0 2px var(--primary); }
.btn-row .ic { color: var(--primary); }

/* Settings rows */
.srow { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px; border-top: 1px solid var(--edge); font-size: 16px; font-weight: 600; text-align: left; }
.srow:first-child { border-top: 0; }
.srow .v { color: var(--muted); display: flex; align-items: center; gap: 4px; text-align: right; }
.privacy { color: var(--accent); font-size: 13px; text-align: center; margin-top: 18px; }

/* Plates settings */
.plate-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plate-row { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 6px 8px 6px 6px; min-height: 62px; }
.plate-row.glass { box-shadow: none; }
.plate-row label.tickbox { flex: 1; display: flex; align-items: center; gap: 12px; min-height: var(--tap); cursor: pointer; }
.plate-row input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 28px; height: 28px; margin: 0 0 0 8px; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--muted); display: grid; place-items: center; flex: none; }
.plate-row input[type="checkbox"]:checked { background: var(--primary); box-shadow: none; }
.plate-row input[type="checkbox"]:checked::after { content: ""; width: 12px; height: 7px; border: solid var(--on-primary); border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); }
.swatch { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--bg); font-weight: 800; font-size: 14px; flex: none; }
.plate-row .pw { font-weight: 700; font-size: 17px; }
.plate-row.off .swatch { opacity: .35; }
.plate-row.off .pw { color: var(--muted); }
.plate-row select { height: 44px; border-radius: 12px; background: var(--well); border: 1px solid var(--edge); padding: 0 10px; font-weight: 600; font-size: 15px; max-width: 132px; }
.plate-row select:disabled { opacity: .4; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.presets button { min-height: var(--tap); min-width: 76px; padding: 0 16px; border-radius: 999px; background: var(--well); border: 1px solid var(--edge); font-weight: 700; }
.presets button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.custom-bar { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.custom-bar input { width: 130px; height: var(--tap); border-radius: 14px; background: var(--well); border: 1px solid var(--edge); padding: 0 14px; font-weight: 700; font-size: 18px; }
.custom-bar input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--primary); }

/* ---------- Plate Loader ---------- */
.ld-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.seg { display: flex; background: var(--well); border-radius: 999px; padding: 3px; border: 1px solid var(--edge); flex: none; }
.seg button { min-width: 48px; height: 40px; border-radius: 999px; font-weight: 800; color: var(--muted); text-align: center; }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.hero { border-radius: 26px; padding: 14px 4px; background: var(--well); }
.hero svg { display: block; width: 100%; height: auto; max-height: 30vh; }
.hero .plate { transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  .hero .plate.enter { animation: plateIn 220ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 35ms); }
  @keyframes plateIn { from { opacity: 0; transform: translateX(var(--dx)); } to { opacity: 1; transform: none; } }
}
.result { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px 2px 0; }
.result-main { font-size: 32px; font-weight: 800; line-height: 1.12; margin-top: 2px; overflow-wrap: anywhere; }
.result-main.small { font-size: 25px; }
.result-main.long { font-size: 27px; }
.result-main.xlong { font-size: 22px; }
.meta { color: var(--muted); font-size: 15px; margin-top: 4px; }
.picks { display: flex; gap: 10px; padding-top: 12px; }
.picks:empty { display: none; }
.pick { flex: 1; min-height: 58px; border-radius: 20px; background: var(--primary); color: var(--on-primary); font-size: 21px; font-weight: 800; text-align: center; }
.pick.secondary { background: var(--well); color: var(--text); box-shadow: inset 0 0 0 2px var(--primary); }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.round { width: 72px; height: 72px; border-radius: 50%; background: var(--soft); color: var(--text); font-size: 40px; font-weight: 800; line-height: 1; display: grid; place-items: center; flex: none; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.round:disabled { opacity: .4; }
.target { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: center; }
.target input { width: 100%; min-width: 0; background: transparent; border: 0; text-align: right; font-size: 60px; font-weight: 800; line-height: 1.1; padding: 0; letter-spacing: -.02em; caret-color: var(--primary); }
.target input:focus { outline: none; box-shadow: 0 3px 0 0 var(--primary); }
.target .u { font-size: 19px; font-weight: 700; color: var(--muted); margin-left: 4px; flex: none; }
.ld-actions { display: flex; gap: 10px; margin-top: 16px; }
.ld-actions .pill { flex: 1; }
.ld-actions .pill.sm { flex: none; }
.save-res { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 60px; border-top: 1px solid var(--edge); text-align: left; }
.save-res:first-child { border-top: 0; }

/* ---------- Welcome / import ---------- */
.ava-big { width: 132px; height: 132px; border-radius: 50%; margin: 0 auto; position: relative; display: grid; place-items: center; background: var(--soft); border: 2px dashed rgba(232, 217, 196, .45); font-size: 46px; font-weight: 800; color: var(--muted); }
.ava-big.has { border: 0; box-shadow: 0 0 0 3px var(--primary); }
.ava-big img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ava-big .cam { position: absolute; right: -2px; bottom: 2px; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--surface); }
.ava-opts { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.ava-opts button { min-height: 44px; }
.lift-card { border-radius: 26px; padding: 14px 14px 12px; margin-top: 10px; }
.lift-card .lh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 4px; }
.opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; border-radius: 16px; padding: 6px 12px; margin-top: 6px; background: var(--well); font-weight: 700; font-size: 15px; text-align: left; }
.opt[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--primary); }
.radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--muted); flex: none; }
.opt[aria-checked="true"] .radio { box-shadow: inset 0 0 0 7px var(--primary); }
.opt small { color: var(--muted); font-weight: 600; margin-left: auto; font-size: 12px; flex: none; }
.sticky-foot { position: sticky; bottom: 0; z-index: 2; margin: 18px calc(-1 * var(--gutter)) 0; padding: 14px var(--gutter) max(18px, env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; border-bottom: 0; }
#importBody { padding-bottom: 0; }

/* ---------- Install prompt & toast ---------- */
.install { display: flex; align-items: center; gap: 10px; border-radius: var(--r-mid); padding: 10px 6px 10px 16px; margin-top: 12px; font-size: 14px; }
.install-text { flex: 1; display: flex; flex-direction: column; color: var(--muted); }
.install-text strong { color: var(--text); font-size: 15px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 30px + env(safe-area-inset-bottom)); transform: translate(-50%, 8px); background: var(--accent); color: var(--bg); font-weight: 700; padding: 12px 18px; border-radius: 999px; opacity: 0; pointer-events: none; max-width: calc(100% - 32px); text-align: center; z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: no-preference) { .toast { transition: opacity 180ms ease, transform 180ms ease; } }

/* Short screens */
@media (max-height: 700px) {
  .round { width: 64px; height: 64px; }
  .target input { font-size: 52px; }
  .result-main { font-size: 28px; }
}
