:root {
    --primary: #4F6D6B;
    --primary-dark: #2A3F38;
    --primary-light: #628990;
    --secondary: #B1A08E;
    --secondary-dark: #7D6B58;
    --bg: #E0D8D5;
    --card: #FFFFFF;
    --input: #F5F1EF;
    --border: #D1C9C4;
    --border-light: #E8E2DF;
    --text: #2A3F38;
    --muted: #6B6560;
    --on-dark: #F5F1EF;
    --on-dark-muted: #C9D3CF;
    --h-bg: #FBF0D6; --h-fg: #7A5608; --h-c: #E0A526;
    --p-bg: #FBE3DC; --p-fg: #8A3520; --p-c: #E0735A;
    --g-bg: #ECE8F6; --g-fg: #4F4380; --g-c: #8C7BC4;
    --v-bg: #E1F0E7; --v-fg: #2D5B43; --v-c: #4FA273;
    --s-bg: #E0EEF3; --s-fg: #2B5868; --s-c: #4F9DB8;
    --b-bg: #E3ECEA; --b-fg: #2A3F38; --b-c: #4F6D6B;
    --ok: #4F6D6B; --ok-bg: #E1ECE7;
    --warn: #9A6620; --warn-bg: #FAEEDA;
    --bad: #A23B29; --bad-bg: #F7E0DA;
    --flex: #7D6B58; --flex-bg: #EFE8E1;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(42, 63, 56, 0.08);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    --nav-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.4; -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
body.has-sheet { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
b { font-weight: 700; }
small { font-size: 0.8em; }
.muted { color: var(--muted); margin: 4px 0; }
.small { font-size: 13px; }
.empty { color: var(--muted); padding: 16px 0; }

.btn { border: 0; border-radius: 10px; padding: 12px 16px; font-weight: 700; min-height: 44px; background: var(--input); color: var(--text); }
.btn.small { padding: 8px 12px; min-height: 40px; font-size: 14px; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.light { background: var(--on-dark); color: var(--primary-dark); }
.btn.ghost { background: transparent; border: 1px solid rgba(245, 241, 239, 0.35); color: var(--on-dark); }
.btn.ghost.dark { border-color: var(--border); color: var(--text); }
.btn.outline { background: var(--card); border: 1px solid var(--border); color: var(--text); }
.btn.danger { color: var(--bad); }
.btn.block { display: block; width: 100%; }
a.btn { text-decoration: none; text-align: center; line-height: 20px; }
.icon { border: 0; background: transparent; min-width: 44px; min-height: 44px; font-size: 24px; line-height: 1; color: inherit; border-radius: 10px; }
.link { border: 0; background: none; color: var(--primary); font-weight: 600; text-decoration: underline; padding: 6px 4px; min-height: 32px; }
.link.light { color: var(--on-dark); }

.top { background: var(--primary-dark); color: var(--on-dark); padding: calc(8px + env(safe-area-inset-top)) 12px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.08em; font-size: 15px; }
.back { color: var(--on-dark-muted); text-decoration: none; font-weight: 600; letter-spacing: 0; padding: 8px 6px; }
.sync { width: 8px; height: 8px; border-radius: 50%; background: #8A8F8C; }
.sync.ok { background: #8FD1A8; }
.sync.busy { background: #F2C14E; }
.sync.err { background: #F28B7A; }
.weeknav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.weeklabel { display: flex; flex-direction: column; align-items: center; min-width: 92px; }
.weeklabel small { color: var(--on-dark-muted); font-size: 11px; }
.weeklabel b { font-size: 16px; font-variant-numeric: tabular-nums; }
.status { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--input); color: var(--text); }
.top .chip { background: rgba(245, 241, 239, 0.14); color: var(--on-dark); }
.chip.st-validada { background: var(--ok); color: #fff; }
.chip.st-enviada { background: var(--secondary); color: var(--primary-dark); }
.inds { display: flex; gap: 4px; flex-wrap: wrap; }
.ind { border: 0; border-radius: 8px; padding: 5px 7px; font-size: 12px; background: rgba(245, 241, 239, 0.1); color: var(--on-dark); min-height: 36px; font-variant-numeric: tabular-nums; }
.ind.ok { color: #A9DDBE; }
.ind.warn { color: #F2CD7A; }
.ind.bad { color: #FFA897; background: rgba(162, 59, 41, 0.35); }
.ind.neutral { color: var(--on-dark-muted); }
.ind.on { outline: 2px solid var(--on-dark); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.top .btn.small { padding: 6px 10px; min-height: 36px; font-size: 13px; }
.ind.neutral { display: none; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); }
.tab { border: 0; background: none; min-height: 52px; font-weight: 600; color: var(--muted); border-radius: 10px; font-size: 14px; }
.tab.on { color: var(--primary-dark); font-weight: 800; background: var(--input); }

.main { padding: 12px 16px 24px; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); align-items: center; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ''; width: 14px; height: 14px; border-radius: 4px; border: 2px solid; }
.lg.st-vacia::before { background: var(--card); border: 1px dashed #A99E97; }
.lg.st-ambar::before { background: var(--warn-bg); border-color: var(--warn); }
.lg.st-rojo::before { background: var(--bad-bg); border-color: var(--bad); }
.lg.st-verde::before { background: var(--ok-bg); border-color: var(--ok); }
.lg.st-flex::before { background: var(--flex-bg); border-color: var(--flex); border-style: dashed; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); min-height: 40px; }
.switch input { width: 20px; height: 20px; accent-color: var(--primary); }

.card { background: var(--card); border-radius: var(--radius); border: 1px dashed #A99E97; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; transition: background-color 200ms, border-color 200ms, box-shadow 150ms; }
.card.st-ambar { background: var(--warn-bg); border: 2px solid var(--warn); }
.card.st-rojo { background: var(--bad-bg); border: 2px solid var(--bad); }
.card.st-verde { background: var(--ok-bg); border: 2px solid var(--ok); }
.card.st-flex { background: var(--flex-bg); border: 2px dashed var(--flex); }
.card.hl { box-shadow: 0 0 0 4px var(--primary-light); }
body.dragging .card.no-drop { opacity: 0.35; }
body.dragging .card.can-drop { box-shadow: 0 0 0 2px var(--primary-light); }
.card.over { box-shadow: 0 0 0 4px var(--primary) !important; transform: scale(1.01); }
.card-h { display: flex; align-items: center; gap: 6px; }
.grip { cursor: grab; color: var(--muted); font-size: 16px; padding: 4px 2px; user-select: none; }
.pill { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #EDE8E4; color: var(--muted); white-space: nowrap; }
.st-ambar .pill { background: var(--warn); color: #fff; }
.st-rojo .pill { background: var(--bad); color: #fff; }
.st-verde .pill { background: var(--ok); color: #fff; }
.st-flex .pill { background: var(--flex); color: #fff; }
.kcal { margin-left: auto; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.more { border: 0; background: rgba(42, 63, 56, 0.06); border-radius: 8px; min-width: 36px; min-height: 32px; font-size: 18px; line-height: 1; }
.errs { font-size: 12px; font-weight: 700; color: var(--bad); line-height: 1.3; }
.errs.soft { color: var(--warn); }
.dish { font-weight: 800; font-size: 14px; }
.dish.auto { font-weight: 700; color: var(--muted); }
.missing { display: flex; flex-wrap: wrap; gap: 4px; }
.add-missing { border: 1px dashed currentColor; border-radius: 8px; padding: 6px 8px; font-size: 13px; font-weight: 700; min-height: 36px; text-align: left; }
.add-missing.opt { opacity: 0.7; font-weight: 600; }
.st-ambar .add-missing:not(.opt), .st-rojo .add-missing:not(.opt) { border-style: solid; border-width: 2px; }
.s-h { background: var(--h-bg); color: var(--h-fg); }
.s-p { background: var(--p-bg); color: var(--p-fg); }
.s-g { background: var(--g-bg); color: var(--g-fg); }
.s-v { background: var(--v-bg); color: var(--v-fg); }
.s-s { background: var(--s-bg); color: var(--s-fg); }
.step { border-radius: 8px; padding: 4px; display: flex; flex-direction: column; gap: 4px; }
.step.empty { opacity: 0.7; }
.step-label { border: 0; background: none; text-align: left; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: inherit; padding: 4px 2px; min-height: 28px; }
.chip-food { background: var(--card); color: var(--text); border-radius: 6px; padding: 4px 6px; display: flex; flex-direction: column; gap: 4px; }
.chip-food.bad { outline: 2px solid var(--bad); }
.cf-top { display: flex; gap: 4px; align-items: flex-start; }
.cf-name { font-size: 13px; font-weight: 700; line-height: 1.2; flex: 1; min-width: 0; }
.x { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; min-width: 32px; min-height: 28px; }
.qty { display: flex; align-items: center; gap: 4px; }
.q { border: 1px solid var(--border); background: var(--input); border-radius: 8px; min-width: 40px; min-height: 36px; font-size: 18px; line-height: 1; font-weight: 700; }
.qin { width: 100%; min-width: 0; flex: 1; text-align: center; border: 1px solid var(--border-light); border-radius: 6px; padding: 6px 2px; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; background: var(--card); -moz-appearance: textfield; }
.qin::-webkit-outer-spin-button, .qin::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qin.bad { color: var(--bad); border-color: var(--bad); }
.u { font-size: 12px; color: var(--muted); }
.collapsed { border: 0; background: none; text-align: left; font-weight: 700; font-size: 13px; padding: 6px 2px; color: var(--primary-dark); min-height: 36px; }
.flexname { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.flexname input { border: 1px solid var(--border); border-radius: 8px; padding: 10px; font-weight: 700; color: var(--text); background: var(--card); min-height: 44px; }
.flextags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { border: 1px solid var(--border); background: var(--card); border-radius: 8px; padding: 8px 10px; font-size: 13px; min-height: 40px; }
.tag.on { background: var(--bad); border-color: var(--bad); color: #fff; font-weight: 700; }
.hint { margin: 0; font-size: 12px; color: var(--muted); }
.tplname { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 14px; }
.bstep { background: var(--card); border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.bstep.bad { outline: 2px solid var(--warn); }
.bl { font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.bf { font-size: 13px; line-height: 1.3; }
.bstep select { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 8px; background: var(--input); min-height: 40px; font-size: 14px; }

.total { border-radius: 10px; padding: 8px 10px; background: var(--card); border: 1px dashed #A99E97; display: flex; flex-direction: column; gap: 4px; }
.total.t-verde { background: var(--ok-bg); border: 2px solid var(--ok); }
.total.t-ambar { background: var(--warn-bg); border: 2px solid var(--warn); }
.total.t-rojo { background: var(--bad-bg); border: 2px solid var(--bad); }
.tk { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tk small { font-size: 12px; font-weight: 500; color: var(--muted); }
.bar { position: relative; height: 8px; border-radius: 4px; background: rgba(42, 63, 56, 0.1); overflow: hidden; }
.bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--primary); transition: width 250ms; }
.t-rojo .bar span { background: var(--bad); }
.t-ambar .bar span { background: var(--warn); }
.bar i { position: absolute; top: -2px; bottom: -2px; left: 90%; width: 2px; background: rgba(42, 63, 56, 0.35); }
.tl { font-size: 12px; font-weight: 700; }

.mob .daytabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; position: sticky; top: 0; z-index: 10; background: var(--bg); padding: 6px 0; }
.daytab { border: 0; border-radius: 10px; background: var(--card); min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; padding: 4px 0; }
.daytab b { font-size: 15px; }
.daytab small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.daytab i { width: 8px; height: 8px; border-radius: 50%; background: #CFC6C0; }
.daytab.t-verde i { background: var(--ok); }
.daytab.t-ambar i { background: var(--warn); }
.daytab.t-rojo i { background: var(--bad); }
.daytab.today { box-shadow: inset 0 -3px 0 var(--secondary); }
.daytab.on { background: var(--primary-dark); color: var(--on-dark); }
.daytab.on small { color: var(--on-dark-muted); }
.dayhead { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.dayhead h2 { margin: 0; font-size: 20px; }
.mslot { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ml { font-size: 13px; color: var(--muted); }
.ml b { color: var(--text); font-size: 15px; }
.mob .card { padding: 10px; }
.mob .cf-name { font-size: 15px; }
.mob .step-label { font-size: 12px; min-height: 36px; }
.mob .q { min-width: 44px; min-height: 44px; }
.mob .qin { min-height: 44px; }
.mob .add-missing { min-height: 44px; padding: 8px 12px; font-size: 14px; }
.mtools { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

.food { border: 1px solid var(--border-light); border-radius: 8px; padding: 6px 8px; text-align: left; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 13px; min-height: 36px; cursor: grab; }
.food.tpl { background: var(--b-bg); color: var(--b-fg); }
.food.lim { border-color: #D9A19A; }
.food.sel { background: var(--primary-dark); color: var(--on-dark); border-color: var(--primary-dark); }
.fn { font-weight: 700; }
.ic { display: inline-block; vertical-align: -2px; flex: none; }
.badge { display: inline-flex; align-items: center; margin-left: 4px; vertical-align: -1px; }
.b-sac { color: #B07D10; }
.b-ready { color: #2D7A55; }
.b-warn { color: var(--bad); }
.food.sel .badge { color: inherit; }
.filter .ic { margin-right: 2px; }
.ind .ic { margin-right: 2px; }
.pill .ic { width: 12px; height: 12px; }
.fq { font-size: 12px; opacity: 0.85; font-variant-numeric: tabular-nums; }
.fnote { width: 100%; font-size: 11px; font-weight: 700; color: var(--bad); }
.food.sel .fnote { color: #FFC2B5; }
.food.wide { display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px 12px; min-height: 56px; cursor: pointer; flex-wrap: nowrap; }
.food.wide .fn { display: flex; flex-direction: column; font-size: 15px; }
.food.wide small { font-weight: 400; font-size: 12px; opacity: 0.85; }
.food.wide em { font-style: normal; font-size: 12px; color: var(--bad); font-weight: 700; }
.fq.big { min-width: 64px; text-align: right; font-size: 16px; font-weight: 800; opacity: 1; }

.search { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-height: 44px; background: var(--card); font-size: 16px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter { border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 13px; min-height: 36px; }
.filter.on { background: var(--primary-dark); color: var(--on-dark); border-color: var(--primary-dark); }
.help { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.4; }

.sheet-bg, .modal-bg { position: fixed; inset: 0; background: rgba(20, 28, 25, 0.45); z-index: 40; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--card); border-radius: 18px 18px 0 0; max-height: 86vh; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2); }
.sh-h { display: flex; align-items: center; justify-content: space-between; }
.sh-h div { display: flex; flex-direction: column; }
.sh-h b { font-size: 18px; }
.sh-h small { color: var(--muted); font-size: 13px; }
.sh-steps { display: flex; gap: 4px; overflow-x: auto; }
.sstep { border: 0; border-radius: 8px; padding: 8px 10px; font-weight: 700; font-size: 13px; min-height: 40px; white-space: nowrap; opacity: 0.65; }
.sstep.on { opacity: 1; box-shadow: inset 0 0 0 2px currentColor; }
.sheet > * { flex-shrink: 0; }
.sheet > .sh-list { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; flex-shrink: 1; min-height: 120px; }

.modal { position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 32px)); max-height: 86vh; overflow-y: auto; background: var(--card); border-radius: 16px; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25); }
.mh { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 0 18px; font-size: 17px; }
.mb { padding: 6px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.mb p { margin: 0; }
.mb ul { margin: 0; padding-left: 18px; }
.menu { display: flex; flex-direction: column; gap: 8px; }
.copyform { display: flex; flex-direction: column; gap: 8px; }
.copyform input[type=text], .copyform input[type=date] { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; font-size: 16px; }
.copyform label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.cb { flex-direction: row !important; align-items: center; gap: 10px !important; font-size: 15px !important; color: var(--text) !important; min-height: 44px; }
.cb input { width: 22px; height: 22px; accent-color: var(--primary); }
.onb { display: flex; justify-content: space-between; align-items: center; }
.notice { background: var(--warn-bg); color: #5E410C; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 8px 0; }
.notice.bad { background: var(--bad-bg); color: #7A2414; }
.notice.ok { background: var(--ok-bg); color: var(--primary-dark); }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--primary-dark); color: var(--on-dark); padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; max-width: calc(100vw - 32px); opacity: 0; pointer-events: none; transition: opacity 200ms, transform 200ms; z-index: 60; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.warn { background: #6E3A12; }

.compra, .semanas, .reglas { max-width: 760px; margin: 0 auto; }
.ch { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ch h2, .semanas h2, .reglas h2 { margin: 4px 0; font-size: 22px; }
.prog { min-width: 120px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; font-size: 20px; font-variant-numeric: tabular-nums; }
.prog .bar { width: 120px; }
.ctools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.ctools label { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.ctools select { border: 1px solid var(--border); border-radius: 8px; padding: 8px; min-height: 40px; background: var(--card); }
.cat { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin: 18px 0 6px; color: var(--muted); }
.si { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 12px; padding: 4px 8px 4px 12px; margin-bottom: 6px; }
.si label { display: flex; align-items: center; gap: 12px; flex: 1; min-height: 56px; cursor: pointer; }
.si input { width: 26px; height: 26px; accent-color: var(--primary); flex: none; }
.sn { flex: 1; font-size: 16px; font-weight: 700; display: flex; flex-direction: column; }
.sn small { font-weight: 400; font-size: 12px; color: var(--muted); }
.sq { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.si.carro, .si.casa { background: transparent; border: 1px solid var(--border); }
.si.carro .sn, .si.carro .sq { text-decoration: line-through; color: var(--muted); }
.si.casa .sn, .si.casa .sq { color: var(--muted); }
.manual { display: flex; gap: 8px; margin: 12px 0; }
.manual input { flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-height: 44px; background: var(--card); font-size: 16px; }
.wrow { background: var(--card); border-radius: 12px; padding: 12px 14px; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.wrow.on { box-shadow: 0 0 0 2px var(--primary); }
.wrow > div:first-child { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.wact { display: flex; gap: 8px; flex-wrap: wrap; }
.reglas ul { background: var(--card); border-radius: 12px; padding: 12px 12px 12px 30px; margin: 8px 0 16px; }
.reglas li { margin: 6px 0; }
.reglas h3 { margin: 16px 0 4px; }
.reglas .btn { margin-top: 16px; }

.login { position: fixed; inset: 0; z-index: 70; background: var(--primary-dark); display: flex; align-items: center; justify-content: center; padding: 16px; }
.login[hidden] { display: none; }
.login-card { background: var(--card); border-radius: 16px; padding: 24px; width: min(360px, 100%); display: flex; flex-direction: column; gap: 12px; }
.login-card b { font-size: 20px; }
.login-card p { margin: 0; color: var(--muted); }
.login-card input { border: 1px solid var(--border); border-radius: 10px; padding: 12px; min-height: 48px; font-size: 16px; }
.err { color: var(--bad) !important; min-height: 20px; }

.desk, .board-wrap .toolbar { display: none; }

@media (min-width: 760px) {
    .actions { width: auto; }
    .ind.neutral { display: inline-block; }
    .ind { font-size: 13px; padding: 6px 9px; }
    .top { padding: 10px 16px; gap: 8px 16px; }
    .top .btn.small { padding: 8px 12px; min-height: 40px; font-size: 14px; }
    .sheet { left: 50%; right: auto; bottom: 50%; transform: translate(-50%, 50%); width: min(560px, calc(100vw - 32px)); border-radius: 18px; max-height: 80vh; }
}

@media (min-width: 1280px) {
    body { padding-bottom: 0; }
    .tabs { position: static; display: flex; gap: 4px; padding: 6px 16px; border-top: 0; border-bottom: 1px solid var(--border); }
    .tab { min-height: 40px; padding: 0 18px; }
    .toast { bottom: 24px; }
    .main.v-tablero { padding: 12px 16px; }
    .desk { display: flex; gap: 14px; align-items: flex-start; }
    .despensa { width: 260px; flex: none; background: var(--card); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 8px; max-height: calc(100vh - 16px); }
    .desp-h { display: flex; justify-content: space-between; align-items: baseline; }
    .desp-h h2 { margin: 0; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
    .desp-h span { font-size: 12px; color: var(--muted); }
    .picked { background: var(--primary-dark); color: var(--on-dark); border-radius: 8px; padding: 8px 10px; font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
    .desp-list { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
    .grp { display: flex; flex-direction: column; gap: 4px; }
    .grp { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
    .gh { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 10px; border-radius: 8px; background: var(--gbg); color: var(--gfg); display: flex; align-items: center; gap: 8px; }
    .gh small { margin-left: auto; font-weight: 600; text-transform: none; letter-spacing: 0; opacity: 0.85; }
    button.gh { width: 100%; border: 0; font-family: inherit; text-align: left; cursor: pointer; }
    .gh .ic-chev { flex: none; transition: transform 0.15s; }
    .gh[aria-expanded="true"] .ic-chev { transform: rotate(180deg); }
    .gh.g-b { --gbg: #4F6D6B; --gfg: #FFFFFF; }
    .gh.g-h { --gbg: #F2C766; --gfg: #3D2E05; }
    .gh.g-p { --gbg: #F0A08C; --gfg: #4A1C10; }
    .gh.g-g { --gbg: #B9ADE0; --gfg: #2A2150; }
    .gh.g-v { --gbg: #8FCBA8; --gfg: #163626; }
    .gh.g-s { --gbg: #93C9DB; --gfg: #133845; }
    .foods { display: flex; flex-direction: column; gap: 3px; }
    .foods[hidden] { display: none; }
    .despensa .food { display: flex; width: 100%; justify-content: space-between; flex-wrap: wrap; background: var(--card); color: var(--text); border: 1px solid var(--border-light); border-radius: 8px; padding: 7px 10px; }
    .despensa .food:hover { border-color: var(--primary-light); background: var(--input); }
    .despensa .food .fq { color: var(--muted); }
    .despensa .food.lim { border-color: #E3B3A8; }
    .despensa .food.sel { background: var(--primary-dark); color: var(--on-dark); border-color: var(--primary-dark); }
    .despensa .food.sel .fq { color: var(--on-dark-muted); }
    .board-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
    .board-wrap .toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
    .board { display: grid; grid-template-columns: 78px repeat(7, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
    .dh { background: var(--primary-dark); color: var(--on-dark); border-radius: 10px; text-align: center; padding: 6px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
    .dh.today { background: var(--secondary); color: var(--primary-dark); }
    .rh { display: flex; flex-direction: column; justify-content: center; gap: 2px; font-size: 13px; }
    .rh small { color: var(--muted); font-size: 11px; }
    .board .card { padding: 6px; gap: 4px; }
    .board .step { padding: 3px; gap: 3px; }
    .board .step-label { font-size: 10px; min-height: 22px; padding: 2px; }
    .board .chip-food { padding: 3px 4px; gap: 2px; }
    .board .cf-name { font-size: 12px; }
    .board .x { min-width: 22px; min-height: 22px; font-size: 15px; }
    .board .q { min-width: 24px; min-height: 26px; font-size: 14px; border-radius: 6px; }
    .board .qin { font-size: 12px; padding: 3px 0; }
    .board .u { display: none; }
    .board .add-missing { font-size: 11px; padding: 3px 6px; min-height: 26px; }
    .board .pill { font-size: 11px; padding: 2px 6px; }
    .board .kcal small { display: none; }
    .board .card-h { gap: 4px; }
    .board .more { min-width: 26px; min-height: 24px; font-size: 15px; }
    .board .bstep select { font-size: 12px; min-height: 30px; padding: 4px; }
    .board .bf { font-size: 12px; }
    .board .flexname input { min-height: 34px; padding: 6px; font-size: 13px; }
    .board .tag { min-height: 30px; padding: 4px 8px; font-size: 12px; }
    .board .total .tk { font-size: 15px; }
    .mob { display: none; }
}
