/* style.css - layout & komponenty. Barvy viz themes.css (CSS proměnné). */

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.screen { display: none; flex: 1; padding: 16px 16px 90px; }
.screen.active { display: block; }

h1, h2, h3 { margin: 0 0 8px; font-family: var(--font-display); }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
p { line-height: 1.5; color: var(--text-muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 10px; padding: 12px 18px;
  font-size: 15px; font-weight: 600; cursor: pointer; background: var(--surface-alt);
  color: var(--text); font-family: var(--font-display);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); width: 100%; }
.btn-secondary { background: transparent; border-color: var(--border); }
.btn-ghost { background: transparent; color: var(--accent); padding: 8px 10px; }
.btn-danger { background: var(--status-expired-bg); color: var(--status-expired); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 10px; font-size: 13px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.field input[type="text"], .field input[type="number"], .field input[type="date"], .field select, .field textarea {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 15px;
}
.field textarea { resize: vertical; min-height: 60px; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }

.stepper-dots { display: flex; gap: 6px; justify-content: center; margin: 14px 0 20px; }
.stepper-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.stepper-dots span.active { background: var(--accent); width: 20px; border-radius: 4px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow);
}

.hero { text-align: center; padding: 40px 8px 20px; }
.hero .icon { font-size: 48px; margin-bottom: 10px; }

.counter { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.counter button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface-alt); color: var(--text); font-size: 18px; cursor: pointer; line-height: 1;
}
.counter input { width: 56px; text-align: center; border: none; background: transparent; font-size: 17px; font-weight: 700; color: var(--text); }
.counter-label { font-size: 15px; }
.counter-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.counter-row:last-child { border-bottom: none; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 14px; cursor: pointer;
  font-family: var(--font-display);
}
.chip.selected { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }

.checklist-select { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.checklist-select:last-child { border-bottom: none; }
.checklist-select input { width: 20px; height: 20px; }
.checklist-select .cs-name { font-weight: 600; }
.checklist-select .cs-count { color: var(--text-muted); font-size: 13px; margin-left: auto; }

/* Dashboard */
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.summary-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; text-align: center; }
.summary-tile .num { font-size: 20px; font-weight: 700; }
.summary-tile .lbl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .02em; }
.summary-tile.ok .num { color: var(--status-ok); }
.summary-tile.missing .num { color: var(--status-missing); }
.summary-tile.expiring .num { color: var(--status-expiring); }
.summary-tile.expired .num { color: var(--status-expired); }

.progress-bar { height: 8px; border-radius: 4px; background: var(--surface-alt); overflow: hidden; margin: 6px 0 16px; }
.progress-bar > div { height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s; }

.banner {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--status-check-bg); color: var(--status-check); margin-bottom: 14px; font-size: 14px;
}
.banner.critical { background: var(--status-expired-bg); color: var(--status-expired); }

.item-row {
  display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.item-row:last-child { border-bottom: none; }
.item-row .badge-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.item-row .item-info { flex: 1; min-width: 0; }
.item-row .item-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-row .item-sub { font-size: 12px; color: var(--text-muted); }
.item-row .item-status-label { font-size: 12px; font-weight: 700; flex-shrink: 0; }

.qty-stepper { display: flex; gap: 4px; flex-shrink: 0; }
.qty-btn, .btn-quick {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-alt); color: var(--text); font-size: 16px; line-height: 1;
  cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.qty-btn:active, .btn-quick:active { transform: translateY(1px); }
.btn-quick { color: var(--status-ok); font-size: 14px; font-weight: 700; }

.badge-dot.ok { background: var(--status-ok); }
.badge-dot.missing { background: var(--status-missing); }
.badge-dot.expiring_soon { background: var(--status-expiring); }
.badge-dot.expired { background: var(--status-expired); }
.badge-dot.needs_check { background: var(--status-check); }

.status-text.ok { color: var(--status-ok); }
.status-text.missing { color: var(--status-missing); }
.status-text.expiring_soon { color: var(--status-expiring); }
.status-text.expired { color: var(--status-expired); }
.status-text.needs_check { color: var(--status-check); }

.category-row {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--border); cursor: pointer;
}
.category-row:last-child { border-bottom: none; }
.category-row .cat-name { font-weight: 600; }
.category-row .cat-meta { font-size: 12px; color: var(--text-muted); }
.category-row .cat-chevron { color: var(--text-muted); }

.cat-actions { display: flex; gap: 4px; }
.cat-actions .btn-ghost { font-size: 16px; padding: 6px 8px; }

/* Checklist mode */
.checklist-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.checklist-item { display: flex; align-items: center; gap: 12px; padding: 14px 6px; border-bottom: 1px solid var(--border); }
.checklist-item input[type="checkbox"] { width: 24px; height: 24px; flex-shrink: 0; accent-color: var(--accent); }
.checklist-item .ci-name { font-size: 15px; font-weight: 600; }
.checklist-item .ci-meta { font-size: 12px; color: var(--text-muted); }
.checklist-item.packed .ci-name { text-decoration: line-through; color: var(--text-muted); }
.checklist-group-title { margin-top: 18px; margin-bottom: 4px; font-size: 12px; }

/* Feed */
.feed-item { padding: 12px 4px; border-bottom: 1px solid var(--border); }
.feed-item:last-child { border-bottom: none; }
.feed-item .fi-source { font-size: 11px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.feed-item .fi-title { font-weight: 600; margin: 3px 0; }
.feed-item .fi-date { font-size: 11px; color: var(--text-muted); }
.feed-item a { color: var(--text); text-decoration: none; }
.feed-offline-note { font-size: 13px; color: var(--text-muted); background: var(--surface-alt); padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }

/* Bottom nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 560px; display: flex; background: var(--surface);
  border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  z-index: 20;
}
.bottom-nav button {
  flex: 1; background: none; border: none; color: var(--text-muted); font-size: 11px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; cursor: pointer;
  font-family: var(--font-display);
}
.bottom-nav button .nav-icon { font-size: 20px; }
.bottom-nav button.active { color: var(--accent); }

/* App header (persistent brand bar above every screen) */
.app-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.app-header-brand { display: flex; align-items: baseline; gap: 8px; min-width: 0; overflow: hidden; }
.app-header-name {
  font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--text);
  white-space: nowrap;
}
.app-header-sub {
  font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-header-version {
  font-family: var(--font-body); font-size: 11px; color: var(--text-muted);
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: 999px;
  padding: 2px 8px; white-space: nowrap; flex-shrink: 0;
}

/* Top bar */
.top-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 4px; }
.top-bar h1 { margin: 0; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10, 14, 13, 0.5); display: none;
  align-items: flex-end; justify-content: center; z-index: 50;
}
.modal-overlay.active { display: flex; }
body > .modal-overlay { position: fixed; z-index: 100; }
.modal-sheet {
  background: var(--surface); width: 100%; max-width: 560px; border-radius: 18px 18px 0 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); max-height: 88vh; overflow-y: auto;
}
.modal-sheet .modal-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-sheet .modal-title button { background: none; border: none; font-size: 22px; color: var(--text-muted); cursor: pointer; }

.photo-preview { width: 100%; max-height: 160px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; display: none; }
.photo-preview.active { display: block; }

.theme-swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.theme-swatch {
  border-radius: 12px; padding: 10px 6px; text-align: center; border: 2px solid var(--border);
  cursor: pointer; font-size: 12px; font-weight: 600; background: var(--surface); color: var(--text);
}
.theme-swatch.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.theme-swatch span { font-family: var(--font-display); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Each swatch is itself a data-theme scope (see app.js), so this gradient,
   the icon badge below and the label's font-family all resolve to THAT
   theme's own variables - the preview shows the real palette, symbol and
   typeface, not the active theme's. */
.swatch-preview {
  position: relative; height: 34px; border-radius: 6px; margin-bottom: 6px;
  background: linear-gradient(135deg, var(--bg), var(--accent)); border: 1px solid var(--border);
}
.swatch-icon-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 22px; height: 22px; border-radius: 50%; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.swatch-icon-badge svg { width: 13px; height: 13px; fill: var(--accent); display: block; }

.empty-state { text-align: center; padding: 30px 10px; color: var(--text-muted); }

.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; border-bottom: 1px solid var(--border); }
.settings-row:last-child { border-bottom: none; }

.back-link { color: var(--accent); background: none; border: none; font-size: 15px; font-weight: 600; cursor: pointer; padding: 4px 0 12px; display: inline-flex; align-items: center; gap: 4px; }

/* Per-theme watermark emblem - subtle, fixed, non-interactive; swapped by
   renderThemeEmblem() in app.js whenever the theme changes. Sits in the
   corner at very low opacity so it reads as a quiet brand mark rather than
   competing with real content (see js/theme-icons.js for the per-theme SVG). */
.theme-emblem {
  position: fixed; right: 8px; bottom: 78px; width: 96px; height: 96px;
  opacity: 0.07; pointer-events: none; color: var(--accent); z-index: 5;
}
.theme-emblem svg { width: 100%; height: 100%; display: block; fill: currentColor; }

@media (min-width: 600px) {
  #app { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
  .theme-emblem { right: calc(50vw - 280px + 8px); }
}

/* ========================================================================== */
/* OMNIA VISUAL REFRESH — RCv0.65                                             */
/* A calm civil-protection aesthetic: field kit + modern mobile utility.       */
/* ========================================================================== */
:root {
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-float: 0 12px 34px rgba(18, 28, 25, .10), 0 2px 8px rgba(18, 28, 25, .06);
  --content-pad: 18px;
}

body {
  background:
    radial-gradient(circle at 50% -15%, color-mix(in srgb, var(--accent) 11%, transparent) 0, transparent 34rem),
    var(--bg);
  letter-spacing: -.005em;
}

#app { position: relative; overflow: hidden; }
#app::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .18; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}
#app > * { position: relative; z-index: 1; }

.screen { padding: 20px var(--content-pad) 104px; }
h1 { font-size: clamp(25px, 7vw, 31px); line-height: 1.08; letter-spacing: -.035em; }
h2 { font-size: 23px; line-height: 1.15; letter-spacing: -.025em; }
h3 { margin-top: 24px; margin-bottom: 10px; font-size: 11px; font-weight: 800; letter-spacing: .11em; }
p { margin-top: 7px; }

.app-header {
  min-height: 62px; padding: 10px var(--content-pad); border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.app-header { align-items: center; }
.app-brand-mark { display: block; flex: 0 0 42px; width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(70, 26, 6, .16)); }
.app-header-brand { flex: 1; flex-direction: column; align-items: flex-start; gap: 0; margin-left: 0; }
.app-header-name { font-size: 13px; letter-spacing: .09em; line-height: 1.15; }
.app-header-sub { font-size: 10px; letter-spacing: .03em; opacity: .85; }
.app-header-version { border: 1px solid var(--border); border-radius: 999px; padding: 5px 8px; background: var(--surface-alt); font-size: 9px; letter-spacing: .08em; }

.card {
  border-radius: var(--radius-md); border-color: color-mix(in srgb, var(--border) 82%, transparent);
  box-shadow: var(--shadow); overflow: hidden;
}
.btn { min-height: 48px; border-radius: 14px; font-weight: 750; letter-spacing: .005em; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-primary { box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 22%, transparent); }
.btn-primary:hover { box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 30%, transparent); transform: translateY(-1px); }
.btn-secondary { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.btn-ghost { border-radius: 11px; }
.btn-ghost:hover { background: var(--accent-soft); }

/* Onboarding */
#screen-onboarding { max-width: 520px; margin: 0 auto; }
.hero { padding: 56px 10px 32px; }
.hero .icon {
  width: 104px; height: 104px; margin: 0 auto 26px; display: grid; place-items: center; font-size: 50px;
  border-radius: 30px; background: linear-gradient(145deg, var(--accent-soft), var(--surface)); border: 1px solid var(--border);
  box-shadow: var(--shadow-float); transform: rotate(-2deg); position: relative;
}
.hero .icon::after { content: "72H"; position: absolute; right: -8px; bottom: 9px; padding: 4px 6px; border-radius: 7px; background: var(--accent); color: var(--accent-contrast); font: 800 9px/1 var(--font-body); letter-spacing: .08em; transform: rotate(5deg); }
.hero h1 { font-size: clamp(31px, 9vw, 40px); }
.hero p { max-width: 410px; margin: 13px auto 0; font-size: 15px; line-height: 1.65; }
.counter-row { min-height: 58px; }
.counter button { width: 38px; height: 38px; border-radius: 12px; font-size: 20px; background: var(--surface-alt); }
.chip { border-radius: 999px; padding: 9px 13px; font-weight: 700; }

/* Dashboard — summary reads as an instrument panel */
#screen-dashboard .top-bar { padding: 6px 0 14px; }
#screen-dashboard .top-bar::after { content: "PŘIPRAVENOST"; margin-left: auto; margin-right: 8px; font-size: 9px; font-weight: 800; letter-spacing: .12em; color: var(--text-muted); }
#screen-dashboard .top-bar .btn-ghost { order: 3; width: 40px; height: 40px; padding: 0; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.summary-grid { gap: 9px; margin-bottom: 12px; }
.summary-tile { position: relative; padding: 16px 8px 13px; border-radius: 15px; text-align: left; overflow: hidden; }
.summary-tile::after { content: ""; position: absolute; width: 42px; height: 42px; border-radius: 50%; right: -15px; top: -15px; background: currentColor; opacity: .08; }
.summary-tile .num { font-size: 25px; line-height: 1; font-variant-numeric: tabular-nums; }
.summary-tile .lbl { margin-top: 7px; font-size: 9px; font-weight: 800; letter-spacing: .075em; }
.progress-bar { height: 11px; border-radius: 999px; margin: 3px 0 22px; padding: 2px; border: 1px solid var(--border); background: var(--surface); }
.progress-bar > div { border-radius: 999px; box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 35%, transparent); }
.banner { border-radius: 14px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); padding: 13px 14px; box-shadow: none; }

.item-row, .category-row { min-height: 58px; transition: background .15s ease, transform .15s ease; }
.item-row:hover, .category-row:hover { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.category-row { padding: 13px 5px; gap: 12px; }
.category-row::before { content: ""; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent); }
.category-row .cat-name { font-size: 15px; }
.category-row .cat-chevron { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-alt); font-size: 18px; }
.badge-dot { box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 10%, transparent); }

/* Checklist: intentionally large targets for stressful use */
#screen-checklist .card { padding: 4px 14px; }
.checklist-header { padding-top: 3px; }
#checklist-progress { padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.checklist-item { min-height: 66px; padding: 12px 4px; }
.checklist-item input[type="checkbox"] { appearance: none; width: 28px; height: 28px; border: 2px solid var(--border); border-radius: 9px; background: var(--surface); display: grid; place-content: center; }
.checklist-item input[type="checkbox"]::before { content: "✓"; font-weight: 900; color: var(--accent-contrast); transform: scale(0); transition: transform .12s ease; }
.checklist-item input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.checklist-item input[type="checkbox"]:checked::before { transform: scale(1); }

/* Inputs & sheets */
.field input[type="text"], .field input[type="number"], .field input[type="date"], .field select, .field textarea { min-height: 46px; border-radius: 12px; background: var(--surface-alt); border-color: transparent; box-shadow: inset 0 0 0 1px var(--border); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 38%, transparent); border-color: var(--accent); }
.modal-overlay { background: rgba(8, 12, 11, .62); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.modal-sheet { border-radius: 26px 26px 0 0; box-shadow: 0 -18px 60px rgba(0,0,0,.22); }
.modal-sheet::before { content: ""; display: block; width: 42px; height: 4px; border-radius: 999px; background: var(--border); margin: -5px auto 14px; }

/* Navigation */
.bottom-nav { width: calc(100% - 20px); max-width: 540px; left: 50%; transform: translateX(-50%); bottom: max(10px, env(safe-area-inset-bottom)); border: 1px solid var(--border); border-radius: 20px; padding: 6px; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 12px 36px rgba(0,0,0,.14); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.bottom-nav button { min-height: 50px; border-radius: 14px; transition: background .15s ease, color .15s ease; }
.bottom-nav button.active { background: var(--accent-soft); }
.bottom-nav button .nav-icon { font-size: 19px; line-height: 1; }
.back-link { font-size: 13px; padding-bottom: 16px; }

.theme-emblem { width: 130px; height: 130px; bottom: 92px; opacity: .045; }

@media (min-width: 600px) {
  #app { margin-top: 18px; margin-bottom: 18px; min-height: calc(100vh - 36px); border: 1px solid var(--border); border-radius: 28px; box-shadow: 0 24px 70px rgba(15,25,22,.13); }
  .app-header { border-radius: 28px 28px 0 0; }
  .screen { padding-left: 24px; padding-right: 24px; }
  .bottom-nav { bottom: 28px; }
  .modal-sheet { border-radius: 26px; margin-bottom: 20px; }
}

@media (max-width: 380px) {
  :root { --content-pad: 14px; }
  .summary-grid { gap: 6px; }
  .summary-tile { padding: 13px 6px 11px; }
  .summary-tile .num { font-size: 21px; }
  .summary-tile .lbl { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* RCv0.66 — readiness instrument and category pictograms */
#screen-dashboard .top-bar::after { display: none; }
.readiness-panel {
  --readiness-tone: var(--accent);
  display: flex; align-items: center; gap: 19px; min-height: 150px;
  padding: 19px; margin: 0 0 14px; border-radius: 22px;
  color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  background: radial-gradient(circle at 94% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 48%),
    linear-gradient(145deg, var(--surface), var(--surface-alt));
  box-shadow: var(--shadow-float); position: relative; overflow: hidden;
}
.readiness-panel::after { content: ""; position: absolute; width: 116px; height: 116px; right: -48px; bottom: -62px; transform: rotate(45deg); border: 13px solid color-mix(in srgb, var(--accent) 9%, transparent); pointer-events: none; }
.readiness-panel[data-level="starting"] { --readiness-tone: var(--status-missing); }
.readiness-panel[data-level="building"] { --readiness-tone: var(--status-expiring); }
.readiness-panel[data-level="empty"] { --readiness-tone: var(--text-muted); }
.readiness-mark { flex: 0 0 102px; }
.readiness-ring {
  --readiness: 0%; width: 102px; height: 102px; display: grid; place-items: center;
  border-radius: 50%; background: conic-gradient(var(--readiness-tone) var(--readiness), color-mix(in srgb, var(--readiness-tone) 13%, var(--surface)) 0);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--readiness-tone) 18%, transparent);
  position: relative; isolation: isolate;
}
.readiness-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface); z-index: -1; }
.readiness-ring span { font-size: 27px; font-weight: 800; letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--readiness-tone); }
.readiness-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; z-index: 1; }
.readiness-eyebrow { color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.readiness-copy strong { font-size: clamp(18px, 4.6vw, 23px); line-height: 1.15; }
.readiness-copy > span:last-child { color: var(--text-muted); font-size: 12px; line-height: 1.4; }
.summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-row { border-radius: 11px; }
.category-row::before { display: none; }
.cat-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 13px; color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent); }
.cat-icon svg { width: 23px; height: 23px; }
.cat-content { flex: 1; min-width: 0; }
.cat-meter { display: block; height: 3px; width: min(150px, 70%); margin-top: 8px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 14%, var(--surface-alt)); overflow: hidden; }
.cat-meter::before { content: ""; display: block; width: var(--cat-progress); height: 100%; border-radius: inherit; background: var(--accent); }
.category-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* RCv0.67 — immediate action and packing flow */
.next-action { display: flex; align-items: center; gap: 13px; margin: -6px 0 20px; padding: 13px 14px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--status-expiring) 34%, var(--border)); background: color-mix(in srgb, var(--status-expiring) 8%, var(--surface)); }
.next-action[hidden] { display: none; }
.next-action-icon { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: var(--status-expiring); background: color-mix(in srgb, var(--status-expiring) 15%, var(--surface)); font-weight: 900; }
.next-action-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.next-action-copy > span { color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.next-action-copy strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-action-copy small { color: var(--text-muted); font-size: 11px; }
.next-action button { flex: 0 0 36px; height: 38px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--text); font-size: 23px; cursor: pointer; }
.next-action button:focus-visible { outline: 2px solid var(--accent); }
.packing-panel { padding: 17px 18px; margin: 19px 0 15px; border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border)); border-radius: 18px; background: linear-gradient(140deg, var(--surface), var(--surface-alt)); box-shadow: var(--shadow); }
.packing-panel > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12px; color: var(--text-muted); font-weight: 700; }
.packing-panel strong { color: var(--accent); font-size: 24px; font-variant-numeric: tabular-nums; }
.packing-track { height: 11px; padding: 2px; margin: 12px 0 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-alt); }
.packing-track span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .2s ease; }
.packing-panel small { color: var(--text-muted); font-size: 11px; }
.checklist-group-title { display: flex; align-items: center; gap: 9px; margin: 25px 2px 9px; color: var(--text); font-size: 13px; text-transform: none; letter-spacing: 0; }
.checklist-group-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: var(--accent); background: var(--accent-soft); }
.checklist-group-icon svg { width: 17px; height: 17px; }
.checklist-group-count { margin-left: auto; color: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.checklist-item { min-height: 72px; gap: 14px; cursor: pointer; }
.checklist-item .ci-copy { flex: 1; min-width: 0; }
.checklist-item .ci-name { line-height: 1.3; }
.checklist-item .ci-meta { margin-top: 5px; font-size: 11px; }
.checklist-item.packed { opacity: .6; }
.checklist-item:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }

/* RCv0.68 — consistent theme typography across native controls and new surfaces */
button, input, select, textarea { font-family: var(--font-body); }
.btn, .btn-ghost, .chip, .bottom-nav button, .cat-name, .checklist-group-title,
.readiness-copy strong, .next-action-copy strong, .category-overview-copy strong,
.category-overview-percent, .summary-tile .num { font-family: var(--font-display); }
.readiness-copy > span, .next-action-copy > span, .next-action-copy small,
.packing-panel small, .item-info, .ci-copy, .field label { font-family: var(--font-body); }
.next-action button, .qty-btn, .btn-quick, .cat-actions button { font-family: var(--font-display); }
.readiness-ring span, .packing-panel strong, .item-sub, .checklist-group-count { font-family: var(--font-body); font-variant-numeric: tabular-nums; }

.category-overview { display: flex; align-items: center; gap: 14px; padding: 15px; margin: 4px 0 16px; border-radius: 17px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); background: linear-gradient(140deg, var(--surface), var(--surface-alt)); box-shadow: var(--shadow); }
.category-overview-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.category-overview-icon svg { width: 26px; height: 26px; }
.category-overview-copy { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.category-overview-copy > span { color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.category-overview-copy strong { font-size: 14px; line-height: 1.2; }
.category-overview-track { height: 4px; margin-top: 5px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, var(--surface-alt)); }
.category-overview-track span { display: block; width: 0; height: 100%; background: var(--accent); border-radius: inherit; }
.category-overview-percent { color: var(--accent); font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.item-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 12px; min-height: 76px; padding: 13px 6px; }
.item-row .badge-dot { width: 8px; height: 8px; align-self: start; margin-top: 7px; }
.item-row .item-info { min-width: 0; }
.item-row .item-name { white-space: normal; overflow-wrap: anywhere; line-height: 1.28; font-size: 14px; }
.item-detail { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-top: 6px; line-height: 1.3; }
.item-row .item-sub { font-size: 11px; }
.item-row .item-status-label { border-radius: 7px; padding: 3px 6px; font-size: 10px; background: var(--surface-alt); }
.item-status-label.ok { background: var(--status-ok-bg); }
.item-status-label.missing { background: var(--status-missing-bg); }
.item-status-label.expiring_soon { background: var(--status-expiring-bg); }
.item-status-label.expired { background: var(--status-expired-bg); }
.item-status-label.needs_check { background: var(--status-check-bg); }
.item-actions { justify-self: end; }
.item-row .qty-btn, .item-row .btn-quick { width: 36px; height: 38px; border-radius: 10px; font-size: 19px; }
.item-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 10px; }
@media (max-width: 380px) {
  .item-row { gap: 8px; }
  .item-row .qty-btn, .item-row .btn-quick { width: 32px; height: 36px; }
  .category-overview { gap: 10px; padding: 12px; }
  .category-overview-icon { flex-basis: 40px; width: 40px; height: 40px; }
}

/* RCv0.69 — hand drawn, theme colored UI symbols */
.ui-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.ui-icon { width: 22px; height: 22px; display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero .icon .ui-icon { width: 60px; height: 60px; color: var(--accent); stroke-width: 1.35; filter: drop-shadow(0 6px 8px color-mix(in srgb, var(--accent) 20%, transparent)); }
.hero .icon img { display: block; width: 78px; height: 78px; object-fit: contain; filter: drop-shadow(0 5px 7px rgba(70, 26, 6, .15)); }
.ob-heading { display: flex; align-items: center; gap: 12px; }
.ob-heading .ui-icon { box-sizing: content-box; width: 24px; height: 24px; padding: 9px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.bottom-nav .nav-icon { width: 23px; height: 23px; stroke-width: 1.8; }
.bottom-nav button.active .nav-icon { filter: drop-shadow(0 2px 4px color-mix(in srgb, var(--accent) 25%, transparent)); }
#screen-dashboard .top-bar .btn-ghost { display: grid; place-items: center; }
#screen-dashboard .top-bar .btn-ghost .ui-icon { width: 21px; height: 21px; }

/* RCv0.70 — restrained visual alerts for expired supplies */
.item-row.is-expired { background: linear-gradient(90deg, color-mix(in srgb, var(--status-expired) 7%, transparent), transparent 58%); }
.item-row.is-expired .badge-dot { box-shadow: 0 0 0 4px var(--status-expired-bg), 0 0 11px color-mix(in srgb, var(--status-expired) 45%, transparent); }
.item-row.is-expiring .badge-dot { box-shadow: 0 0 0 4px var(--status-expiring-bg), 0 0 7px color-mix(in srgb, var(--status-expiring) 27%, transparent); }
.item-row.is-focus-urgent .badge-dot { animation: alert-glow 3.2s ease-in-out infinite; }
.next-action[data-alert="expired"] { border-color: color-mix(in srgb, var(--status-expired) 45%, var(--border)); background: linear-gradient(110deg, color-mix(in srgb, var(--status-expired) 10%, var(--surface)), var(--surface)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--status-expired) 10%, transparent), 0 0 24px color-mix(in srgb, var(--status-expired) 12%, transparent); animation: panel-glow 3.2s ease-in-out infinite; }
.next-action[data-alert="expired"] .next-action-icon { background: var(--status-expired-bg); color: var(--status-expired); }
.category-overview[data-alert="expired"] { border-color: color-mix(in srgb, var(--status-expired) 31%, var(--border)); }

/* RCv0.71 — four distinct status symbols and live category shares */
.summary-tile::after { display: none; }
.summary-tile { min-width: 0; padding: 12px 10px 13px; }
.summary-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 22px; margin-bottom: 8px; }
.summary-symbol { width: 19px; height: 19px; stroke-width: 1.8; }
.summary-tile.ok .summary-symbol { color: var(--status-ok); }
.summary-tile.missing .summary-symbol { color: var(--status-missing); }
.summary-tile.expiring .summary-symbol { color: var(--status-expiring); }
.summary-tile.expired .summary-symbol { color: var(--status-expired); }
.summary-tile.review .summary-symbol, .summary-tile.review .num { color: var(--status-check); }
.item-row .item-status-label { color: var(--text); }
.summary-share { padding: 3px 5px; border-radius: 6px; background: var(--surface-alt); color: var(--text-muted); font: 700 10px/1 var(--font-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary-tile .num { margin-top: 1px; }
@media (max-width: 380px) {
  .summary-tile { padding: 10px 5px; }
  .summary-symbol { width: 16px; height: 16px; }
  .summary-share { font-size: 8px; padding: 3px; }
}
@keyframes alert-glow {
  0%, 100% { box-shadow: 0 0 0 4px var(--status-expired-bg), 0 0 8px color-mix(in srgb, var(--status-expired) 30%, transparent); }
  50% { box-shadow: 0 0 0 6px var(--status-expired-bg), 0 0 18px color-mix(in srgb, var(--status-expired) 70%, transparent); }
}
@keyframes panel-glow {
  0%, 100% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--status-expired) 10%, transparent), 0 0 14px color-mix(in srgb, var(--status-expired) 8%, transparent); }
  50% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--status-expired) 20%, transparent), 0 0 25px color-mix(in srgb, var(--status-expired) 18%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .item-row.is-focus-urgent .badge-dot, .next-action[data-alert="expired"] { animation: none; }
}
@media (max-width: 380px) {
  .readiness-panel { gap: 12px; padding: 15px; min-height: 125px; }
  .readiness-mark { flex-basis: 82px; }
  .readiness-ring { width: 82px; height: 82px; }
  .readiness-ring span { font-size: 22px; }
  .summary-grid { gap: 5px; }
  .summary-tile { padding: 12px 5px; }
  .summary-tile .num { font-size: 19px; }
  .summary-tile .lbl { font-size: 7px; overflow-wrap: anywhere; }
}
