/* Ranglar bir joyda — keyin o'zgartirish oson */
:root {
  --bg: #0D0E12;
  --card: #17191F;
  --border: #24262E;
  --accent: #B8F35A;
  --text: #F2F3F5;
  --muted: #8B8F9A;
  --tabbar-h: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); color: var(--text); font-family: 'Manrope', system-ui, sans-serif; }
body { min-height: 100vh; }

/* Tabbar ostida qolmasligi uchun pastdan joy qoldiramiz */
#view { padding: 20px 16px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }

h1 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.card h3 { font-size: 15px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.badge { display: inline-block; background: var(--accent); color: #0D0E12; font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 99px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex;
  background: var(--card); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar button {
  flex: 1; height: var(--tabbar-h); background: none; border: 0; color: #9A9DA8;
  font: 600 11px 'Manrope', sans-serif; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; cursor: pointer;
  transition: color .15s;
}
.tabbar button .ic { width: 24px; height: 24px; }
.tabbar button.active { color: #B8F35A; }

/* HUD */
.hud { max-width: 640px; margin: 0 auto; padding: 14px 16px 0; cursor: pointer; }
.hud-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; }
.hud-top { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14px; }
.lvl { display: flex; align-items: center; gap: 8px; }
.lvl b { background: var(--accent); color: #0D0E12; border-radius: 8px; padding: 2px 8px; font-weight: 800; }
.streak { color: #FFB84D; }
.bar { height: 8px; background: var(--border); border-radius: 99px; margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .5s; }
.xp-note { color: var(--muted); font-size: 12px; margin-top: 6px; }

/* Nishonlar oynasi */
.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; z-index: 10; }
.sheet[hidden], .hud[hidden], .toast[hidden] { display: none; }
.sheet-body { background: var(--bg); border-top: 1px solid var(--border); border-radius: 20px 20px 0 0;
  width: 100%; max-width: 640px; margin: 0 auto; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 80vh; overflow: auto; }
.sheet-body h2 { font-size: 18px; margin-bottom: 14px; }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.badge-item { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 6px; text-align: center; }
.badge-item .e { font-size: 28px; }
.badge-item .t { font-size: 12px; font-weight: 700; margin-top: 4px; }
.badge-item .d { font-size: 10px; color: var(--muted); margin-top: 2px; }
.badge-item.locked { opacity: .35; filter: grayscale(1); }
.btn { width: 100%; padding: 12px; border-radius: 12px; border: 0; background: var(--accent); color: #0D0E12; font: 800 14px 'Manrope', sans-serif; }

.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabbar-h) + 20px); max-width: 608px; margin: 0 auto;
  background: var(--accent); color: #0D0E12; font-weight: 800; padding: 12px 16px; border-radius: 12px; z-index: 20; text-align: center; }

/* ---- Kun: jadval ---- */
.seg { display: flex; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 3px; margin-bottom: 14px; }
.seg button { flex: 1; padding: 9px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 700 13px 'Manrope', sans-serif; }
.seg button.on { background: var(--accent); color: #0D0E12; }

.timeline { position: relative; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.row.link { cursor: pointer; }
.row .time { width: 58px; font-weight: 800; font-size: 14px; line-height: 1.2; }
.row .time small { display: block; color: var(--muted); font-weight: 600; font-size: 11px; }
.row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex: none; }
.row .what { font-size: 14px; font-weight: 600; flex: 1; }
.row .note { color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 3px; line-height: 1.4; }
.row .em { margin-right: 8px; }
.row.past { opacity: .45; }
.row.now { border-color: var(--accent); background: rgba(184, 243, 90, .08); box-shadow: 0 0 0 1px var(--accent); }
.row.now .dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.now-badge { margin-left: 8px; background: var(--accent); color: #0D0E12; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 99px; vertical-align: 1px; }

/* ---- Vazifalar ---- */
.ring-card { display: flex; align-items: center; gap: 16px; }
.ring { width: 110px; height: 110px; flex: none; }
.ring-bg { fill: none; stroke: var(--border); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .5s; }
.ring-text { fill: var(--text); font: 800 24px 'Manrope', sans-serif; }

.task { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; cursor: pointer; }
.task .check { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--border); display: grid; place-items: center; font-weight: 800; color: #0D0E12; flex: none; }
.task .t-title { flex: 1; font-size: 14px; font-weight: 600; }
.task .xp { color: var(--accent); font-weight: 800; font-size: 12px; }
.task.done { border-color: rgba(184, 243, 90, .35); }
.task.done .check { background: var(--accent); border-color: var(--accent); }
.task.done .t-title { color: var(--muted); text-decoration: line-through; }

/* ---- Sport ---- */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.card-head h3 { margin: 0; }
.muted-sm { color: var(--muted); font-size: 11px; text-align: right; }
.hint { color: var(--muted); font-size: 12px; margin: 8px 0 12px; }
.ex-list { list-style: none; margin: 12px 0 4px; }
.ex-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13px; }
.ex-list b { color: var(--accent); white-space: nowrap; }
.done-box { background: rgba(184, 243, 90, .1); border: 1px solid rgba(184, 243, 90, .35); color: var(--accent); font-weight: 700; padding: 12px; border-radius: 12px; text-align: center; font-size: 14px; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.wd { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 8px 0; text-align: center; }
.wd small { display: block; color: var(--muted); font-size: 10px; font-weight: 700; margin-bottom: 4px; }
.wd span { font-size: 16px; }
.wd.rest { opacity: .5; }
.wd.today { border-color: var(--accent); }
.wd.done { background: var(--accent); border-color: var(--accent); }
.wd.done small, .wd.done span { color: #0D0E12; font-weight: 800; }

.tgt { margin-top: 14px; }
.tgt-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.tgt-top .warn { color: #FF7A59; }
.bar.over i { background: #FF7A59; }
.tgt-in { display: flex; gap: 6px; margin-top: 8px; }
input[type=number] { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: var(--text); padding: 9px 10px; font: 600 13px 'Manrope', sans-serif; }
input[type=number]:focus { outline: none; border-color: var(--accent); }
.chip { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 9px 12px; font: 700 12px 'Manrope', sans-serif; cursor: pointer; white-space: nowrap; }
.chip.go { background: var(--accent); border-color: var(--accent); color: #0D0E12; }
.w-in { display: flex; gap: 6px; margin: 10px 0 8px; }

/* Grafik */
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.c-grid { stroke: var(--border); stroke-width: 1; }
.c-ax { fill: var(--muted); font: 600 10px 'Manrope', sans-serif; }
.c-val { fill: var(--text); font: 800 11px 'Manrope', sans-serif; }
.c-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-dot { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.c-hit { fill: transparent; cursor: pointer; }
.c-plan { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
.c-next { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 4; opacity: .6; }
.c-band { fill: var(--muted); opacity: .5; }
.tip { position: absolute; transform: translate(-50%, -140%); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 5px 9px; font-size: 12px; font-weight: 700; pointer-events: none; white-space: nowrap; }
.tip[hidden] { display: none; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 11px; font-weight: 600; margin-top: 8px; }
.legend i { display: inline-block; width: 16px; margin-right: 6px; vertical-align: middle; }
.lg-line { border-top: 2px solid var(--accent); }
.lg-plan { border-top: 2px dashed var(--muted); }
.wt { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12px; }
.wt td { padding: 7px 4px; border-top: 1px solid var(--border); color: var(--muted); }
.wt td b { color: var(--text); }
.wt .good { color: var(--accent); font-weight: 700; }
.wt .bad { color: #FF7A59; font-weight: 700; }

/* Mashg'ulot oynasi */
.runner { position: fixed; inset: 0; background: var(--bg); z-index: 30; display: flex; justify-content: center; }
.runner[hidden] { display: none; }
#runner-body { width: 100%; max-width: 640px; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.r-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; margin-bottom: 12px; }
.r-x { background: var(--card); border: 1px solid var(--border); color: var(--text); width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }
.r-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.r-sub { color: var(--muted); font-size: 14px; font-weight: 600; }
.r-sub b { color: var(--text); }
.r-name { font-size: 26px; font-weight: 800; line-height: 1.2; padding: 0 8px; }
.r-big { font-size: 88px; font-weight: 800; color: var(--accent); line-height: 1; }
.r-big small { font-size: 22px; color: var(--muted); font-weight: 700; }
.r-big.rest { color: var(--text); }
.r-row { display: flex; gap: 8px; }
.r-row .btn { flex: 1; }

/* ---- Rus tili ---- */
.h2 { font-size: 16px; font-weight: 800; margin: 20px 0 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2 .card { margin-bottom: 0; }
.link-card { text-align: left; color: var(--text); font-family: inherit; cursor: pointer; }


.l-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.l-title { font-size: 20px; font-weight: 800; }
.back { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: 16px; cursor: pointer; flex: none; }

.fc { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 22px 16px; text-align: center; margin-bottom: 12px; }
.fc-ru { font-size: 34px; font-weight: 800; line-height: 1.15; display: inline-block; }
.fc-ru.big { font-size: 64px; color: var(--accent); }
.fc-lat { font-size: 18px; margin-top: 8px; color: var(--text); font-weight: 600; }
.fc-uz { font-size: 16px; color: var(--muted); margin-top: 4px; font-weight: 600; }
.st { color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.spk { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: var(--accent); display: inline-grid; place-items: center; vertical-align: middle; margin-left: 8px; cursor: pointer; flex: none; }
.spk svg { width: 18px; height: 18px; }
.spk.loading { opacity: .4; }
.ex { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); text-align: left; }
.ex-lab { color: var(--accent); font-size: 11px; font-weight: 800; margin-bottom: 4px; }
.ex-ru { font-size: 17px; font-weight: 700; }
.lat { color: var(--text); font-size: 14px; margin-top: 3px; font-weight: 600; }
.uz { color: var(--muted); font-size: 13px; margin-top: 2px; }
.ex-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); text-align: left; }
.card.ex-row { padding: 14px 16px; border: 1px solid var(--border); margin-bottom: 8px; }
.pat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.pat-ru { font-size: 22px; font-weight: 800; color: var(--accent); }
.pat-lat { font-size: 14px; font-weight: 600; margin-top: 2px; }
.pat-uz { color: var(--muted); font-size: 13px; margin-top: 2px; }
.r-row .chip[disabled] { opacity: .35; }
.r-row .chip { flex: none; }

.btn[hidden] { display: none; }

.alpha { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.al { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.al-ch { font-size: 30px; font-weight: 800; color: var(--accent); }
.al-lat { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; min-height: 30px; }
.al-w { font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.al-w .spk { width: 30px; height: 30px; margin: 0; }
.al-w .spk svg { width: 15px; height: 15px; }
.al-u { font-size: 11px; color: var(--muted); margin-top: 2px; }
.done-screen { text-align: center; padding-top: 24px; }

/* ---- So'z yodlash ---- */
.stats4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.stats4 div { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 4px; text-align: center; }
.stats4 b { display: block; font-size: 17px; font-weight: 800; }
.stats4 small { display: block; color: var(--muted); font-size: 10px; font-weight: 700; margin-top: 3px; }
.stats4 .hot b { color: var(--accent); }
.btn.off { background: var(--card); color: var(--muted); border: 1px solid var(--border); margin-top: 10px; }
.btn + .btn, .done-box + .btn, .btn + .done-box { margin-top: 10px; }
input[type=text] { width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: 12px; color: var(--text); padding: 14px; font: 700 17px 'Manrope', sans-serif; }
input[type=text]:focus { outline: none; border-color: var(--accent); }
#t-form[hidden] { display: none; }
.fb { border-radius: 16px; padding: 16px; border: 1px solid var(--border); background: var(--card); }
.fb-head { font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.fb-word { display: flex; align-items: center; font-size: 26px; font-weight: 800; }
.fb.correct { border-color: var(--accent); background: rgba(184, 243, 90, .1); }
.fb.correct .fb-head { color: var(--accent); }
.fb.almost { border-color: #FFB84D; background: rgba(255, 184, 77, .1); }
.fb.almost .fb-head { color: #FFB84D; }
.fb.wrong { border-color: #FF7A59; background: rgba(255, 122, 89, .1); }
.fb.wrong .fb-head { color: #FF7A59; }
.fb .ex { border-top-color: rgba(255, 255, 255, .1); }

/* ---- O'yin: bosqichlar, yulduzlar, combo ---- */
.stg-list { display: grid; gap: 10px; margin: 14px 0 4px; }
.stg { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--accent); color: var(--text); font-family: inherit; cursor: pointer; }
.stg.locked { border-color: var(--border); opacity: .45; }
.stg.done { border-color: rgba(184, 243, 90, .35); }
.stg-n { width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: #0D0E12; font-weight: 800; display: grid; place-items: center; flex: none; }
.stg.locked .stg-n { background: var(--border); color: var(--muted); }
.stg-t { flex: 1; }
.stg-t b { display: block; font-size: 15px; }
.stg-t small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.stg .go { color: var(--accent); font-size: 14px; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 16px; white-space: nowrap; }
.stars.big { font-size: 52px; letter-spacing: 6px; margin-bottom: 6px; }
.stars.dim { color: var(--muted); }
.combo-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.combo { background: var(--card); border: 1px solid var(--border); border-radius: 99px; padding: 4px 12px; color: var(--text); }
.combo.hot { border-color: #FFB84D; color: #FFB84D; box-shadow: 0 0 12px rgba(255, 184, 77, .25); }
.opts { display: grid; gap: 8px; margin-bottom: 12px; }
.opt { text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); color: var(--text); font: 700 15px 'Manrope', sans-serif; cursor: pointer; }
.opt.right { border-color: var(--accent); background: rgba(184, 243, 90, .12); }
.opt.wrong { border-color: #FF7A59; background: rgba(255, 122, 89, .12); }
textarea { width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: 12px; color: var(--text); padding: 14px; font: 600 16px 'Manrope', sans-serif; resize: none; }
textarea:focus { outline: none; border-color: var(--accent); }
.ans { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16px; font-weight: 700; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.ans .spk { flex: none; }

/* ---- Eslatma sozlamalari ---- */
.rem-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; margin-bottom: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.rem-t b { display: block; font-size: 14px; }
.rem-t small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.sw { width: 48px; height: 28px; border-radius: 99px; border: 1px solid var(--border); background: var(--bg); position: relative; flex: none; cursor: pointer; transition: background .15s; }
.sw i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.sw.on { background: rgba(184, 243, 90, .2); border-color: var(--accent); }
.sw.on i { transform: translateX(20px); background: var(--accent); }

/* ---- Imlo ---- */
.tiles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; min-height: 48px; }
.tile { min-width: 44px; height: 48px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--text); font: 800 20px 'Manrope', sans-serif; cursor: pointer; }
.tile.on { border-color: var(--accent); color: var(--accent); }
.tile.used { opacity: .25; display: inline-grid; place-items: center; cursor: default; }
.tile.gap { display: inline-grid; place-items: center; background: none; border-style: dashed; color: var(--muted); cursor: default; }
.tiles.ans { padding: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; }
.word-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.ltr { font: 800 28px 'Manrope', sans-serif; min-width: 22px; text-align: center; }
.blank { width: 44px; height: 52px; text-align: center; font: 800 26px 'Manrope', sans-serif; color: var(--accent); background: var(--card); border: 2px solid var(--accent); border-radius: 12px; }
.blank:focus { outline: none; box-shadow: 0 0 0 3px rgba(184, 243, 90, .25); }
.dif { display: flex; align-items: center; gap: 2px; margin: 4px 0; flex-wrap: wrap; }
.dl { width: 58px; color: var(--muted); font-size: 11px; font-weight: 700; }
.dif span:not(.dl) { display: inline-block; min-width: 24px; text-align: center; font: 800 22px 'Manrope', sans-serif; border-radius: 6px; padding: 2px 0; }
.dok { color: var(--accent); }
.dbad { color: #FF7A59; background: rgba(255, 122, 89, .15); }
.dgap { color: var(--muted); }

/* ---- Sport: profil, halqalar, suv, yurish, menyu ---- */
.s-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.s-btns { display: flex; gap: 6px; flex: none; }
.goals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.goal { text-align: center; position: relative; }
.mring { width: 84px; height: 84px; }
.mr-bg { fill: none; stroke: var(--border); stroke-width: 8; }
.mr-fg { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .5s; }
.mr-fg.over { stroke: #FF7A59; }
.goal .gc { position: absolute; top: 28px; left: 0; right: 0; font-size: 22px; }
.gl { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 4px; }
.gv { font-size: 15px; font-weight: 800; }
.gv small { font-size: 11px; color: var(--muted); font-weight: 600; }
.gv.over { color: #FF7A59; }
.glasses { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.glass { height: 46px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--border); display: grid; place-items: center; cursor: pointer; }
.glass svg { width: 22px; height: 22px; }
.glass.on { color: #6CC8FF; border-color: #6CC8FF; background: rgba(108, 200, 255, .08); }
.walk-time { font-size: 44px; font-weight: 800; text-align: center; color: var(--accent); margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.ex2 { list-style: none; margin: 10px 0 4px; }
.ex-item { border-top: 1px solid var(--border); padding: 10px 0; cursor: pointer; }
.ex-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.ex-line b { color: var(--accent); white-space: nowrap; }
.ex-det { display: none; color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 6px; }
.ex-det b { color: var(--text); }
.ex-item.open .ex-det { display: block; }
.how { color: var(--muted); font-size: 13px; line-height: 1.55; text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; width: 100%; }
.how b { color: var(--text); }
.meal.eaten { border-color: rgba(184, 243, 90, .4); background: rgba(184, 243, 90, .05); }
.meal-name { font-weight: 700; margin: 4px 0 8px; }
.ml { list-style: none; }
.ml li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); font-size: 13px; }
.ml b { color: var(--muted); white-space: nowrap; font-weight: 700; }
.x { background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; padding: 0 4px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.alt { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.alt-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.fld { margin-bottom: 12px; }
.fld label { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.fld input[type=number] { width: 100%; }
