:root {
  --bg: #f5efe4;
  --bg-2: #ede4d4;
  --card: #fffbf4;
  --ink: #2a241d;
  --ink-2: #6d6255;
  --ink-3: #9a8e7f;
  --line: #e2d7c4;
  --accent: #c8502a;
  --accent-ink: #fff;
  --accent-soft: #f6dccf;
  --olive: #5f6f35;
  --olive-soft: #e3e6cf;
  --star: #e0a526;
  --chart: #c8502a;
  --grid: #ece3d3;
  --danger: #b23a2a;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 6px 20px rgba(60, 40, 20, .07);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --r: 18px;
  --tabbar: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171411;
    --bg-2: #211d18;
    --card: #231f1a;
    --ink: #f1e9dc;
    --ink-2: #bcae9b;
    --ink-3: #847866;
    --line: #362f27;
    --accent: #e8714a;
    --accent-ink: #1b1410;
    --accent-soft: #3d241a;
    --olive: #a9b878;
    --olive-soft: #2c3020;
    --star: #f0b739;
    --chart: #d8653f;
    --grid: #332c25;
    --danger: #ef7a66;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; margin: 0; }
a { color: var(--accent); }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

/* ---------------------------------------------------------------- Layout */
main {
  max-width: 980px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 18px) 16px calc(var(--tabbar) + env(safe-area-inset-bottom) + 28px);
}
.page-head { margin: 6px 2px 18px; }
.page-head .eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.page-head h1 { font-size: 34px; margin-top: 2px; }
.page-head p { color: var(--ink-2); margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-size: 17px; }

nav.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
nav.tabbar .inner { display: flex; width: 100%; max-width: 560px; }
nav.tabbar a {
  flex: 1; height: var(--tabbar); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-decoration: none; color: var(--ink-3); font-size: 11px; font-weight: 600;
}
nav.tabbar a svg { width: 25px; height: 25px; }
nav.tabbar a.on { color: var(--accent); }
nav.tabbar a.plus span.dot {
  width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: var(--shadow); margin-top: -4px;
}
nav.tabbar a.plus span.dot svg { width: 26px; height: 26px; }

@media (min-width: 900px) {
  nav.tabbar { top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid var(--line); padding: 0; }
  nav.tabbar a { flex-direction: row; gap: 8px; font-size: 14px; height: 56px; }
  nav.tabbar a svg { width: 20px; height: 20px; }
  nav.tabbar a.plus span.dot { width: 30px; height: 30px; margin: 0; }
  nav.tabbar a.plus span.dot svg { width: 18px; height: 18px; }
  main { padding-top: 84px; padding-bottom: 40px; }
}

/* ---------------------------------------------------------------- Bausteine */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 600; font-size: 15px; cursor: pointer;
  background: var(--bg-2); color: var(--ink); text-decoration: none; min-height: 44px;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.danger { color: var(--danger); }
.btn.small { padding: 7px 13px; min-height: 36px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 18px; height: 18px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--ink-2); }
.tiny { font-size: 13px; color: var(--ink-3); }
.section { margin: 28px 0; }
.section > h2 { font-size: 22px; margin: 0 2px 12px; }
.empty { text-align: center; padding: 50px 20px; color: var(--ink-2); }
.empty .big { font-size: 54px; margin-bottom: 8px; }
.empty h2 { color: var(--ink); margin-bottom: 6px; }

input[type=text], input[type=url], input[type=password], input[type=search], input[type=time], input[type=number], textarea {
  width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 12px;
  padding: 12px 14px; font-size: 16px; outline: none;
}
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 90px; line-height: 1.45; }
label.field { display: block; margin: 0 0 14px; }
label.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px 2px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 13px;
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; color: var(--ink-2);
}
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tag { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--olive-soft); color: var(--olive); }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .9s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; left: 50%; transform: translate(-50%, 20px); opacity: 0; transition: .25s;
  bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 16px); z-index: 50;
  background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- Bild / Emoji-Kachel */
.pic { position: relative; overflow: hidden; background: var(--bg-2); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic .emoji {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px;
  background: radial-gradient(circle at 30% 25%, hsl(var(--h) 70% 85%), hsl(calc(var(--h) + 30) 55% 70%));
}
@media (prefers-color-scheme: dark) {
  .pic .emoji { background: radial-gradient(circle at 30% 25%, hsl(var(--h) 35% 32%), hsl(calc(var(--h) + 30) 30% 20%)); }
}
.badge {
  position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  background: rgba(255, 251, 244, .92); color: #2a241d; backdrop-filter: blur(6px); display: inline-flex; gap: 4px; align-items: center;
}

/* ---------------------------------------------------------------- Heute */
.today { display: grid; gap: 18px; }
@media (min-width: 760px) { .today { grid-template-columns: repeat(3, 1fr); } }
.sugg { overflow: hidden; display: flex; flex-direction: column; }
.sugg .pic { aspect-ratio: 4 / 3; cursor: pointer; }
.sugg .pic .emoji { font-size: 84px; }
.sugg .body { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sugg h2 { font-size: 23px; cursor: pointer; }
.sugg .meta { font-size: 13.5px; color: var(--ink-3); font-weight: 500; }
.sugg .reason { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 16px; margin: 0; flex: 1; }
.sugg .acts { display: flex; gap: 8px; margin-top: 6px; }
.sugg .acts .btn { flex: 1; }
.sugg .acts .btn.on-yes { background: var(--olive); color: #fff; }
.sugg .acts .btn.on-no { background: var(--ink-3); color: var(--bg); }
.num { font-family: var(--serif); color: var(--accent); font-weight: 700; font-size: 15px; }

.banner {
  display: flex; gap: 12px; align-items: center; padding: 14px 16px; margin-bottom: 18px;
  background: var(--accent-soft); border-radius: var(--r); color: var(--ink);
}
.banner .t { flex: 1; font-size: 14.5px; }
.banner b { display: block; }

/* ---------------------------------------------------------------- Sammlung */
.search { position: relative; margin-bottom: 12px; }
.search input { padding-left: 42px; border-radius: 999px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--ink-3); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 10px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.tile { overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.tile .pic { aspect-ratio: 1; }
.tile .pic .emoji { font-size: 52px; }
.tile .body { padding: 10px 12px 12px; }
.tile h3 { font-size: 16px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .meta { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; display: flex; gap: 6px; align-items: center; }
.tile.busy .pic::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 55%, transparent); }
.tile .state { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; text-align: center; padding: 10px; font-size: 13px; font-weight: 600; }
.stars-mini { color: var(--star); letter-spacing: -1px; }
.count { font-size: 13px; color: var(--ink-3); margin: 4px 2px 0; }

/* ---------------------------------------------------------------- Rezept */
.recipe .hero { aspect-ratio: 16 / 11; border-radius: var(--r); margin: 0 0 18px; box-shadow: var(--shadow); max-height: 460px; width: 100%; }
.recipe .hero .emoji { font-size: 110px; }
@media (max-width: 640px) {
  .recipe .hero { margin: calc(-18px - env(safe-area-inset-top)) -16px 18px; border-radius: 0; width: calc(100% + 32px); box-shadow: none; aspect-ratio: 4 / 3.4; }
}
.back {
  position: fixed; z-index: 15; top: calc(env(safe-area-inset-top) + 10px); left: 12px;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgba(255, 251, 244, .9); color: #2a241d; box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.back svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .back { top: 70px; left: max(16px, calc(50% - 540px)); } }
.recipe h1 { font-size: 32px; }
.recipe .summary { font-family: var(--serif); font-size: 18px; color: var(--ink-2); margin: 10px 0 14px; font-style: italic; }
.facts { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 13px; color: var(--ink-2); }
.fact b { display: block; color: var(--ink); font-size: 15px; }
.source { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 600; text-decoration: none; margin-bottom: 8px; }
.source svg { width: 16px; height: 16px; }

.cols { display: grid; gap: 20px; }
@media (min-width: 820px) { .cols { grid-template-columns: 340px 1fr; align-items: start; } .cols .ing { position: sticky; top: 76px; } }
.panel { padding: 18px; }
.panel h2 { font-size: 21px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--bg-2); border-radius: 999px; padding: 3px; font-family: var(--sans); font-size: 14px; font-weight: 600; }
.stepper button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--card); cursor: pointer; font-size: 17px; line-height: 1; }
.stepper span { min-width: 78px; text-align: center; }
.ings { list-style: none; margin: 0; padding: 0; }
.ings .grp { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 14px 0 4px; }
.ings li.i { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); cursor: pointer; align-items: baseline; }
.ings li.i:last-child { border-bottom: 0; }
.ings .amt { min-width: 74px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ings .note { color: var(--ink-3); font-size: 13px; }
.ings li.done { opacity: .4; text-decoration: line-through; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 12px 12px 12px 50px; border-radius: 14px; cursor: pointer; margin-bottom: 4px; }
.steps li::before {
  content: counter(s); position: absolute; left: 10px; top: 11px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font: 700 15px/28px var(--serif); text-align: center;
}
.steps li.cur { background: var(--accent-soft); }
.steps li.cur::before { background: var(--accent); color: var(--accent-ink); }
.steps li.done { opacity: .45; }
.tips { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--olive-soft); font-size: 15px; }
.tips b { color: var(--olive); }

.rate { text-align: center; }
.starbar { display: inline-flex; gap: 4px; margin: 6px 0 10px; }
.starbar button { background: none; border: 0; font-size: 36px; line-height: 1; cursor: pointer; color: var(--line); padding: 2px; }
.starbar button.on { color: var(--star); }
.iconbtn { background: none; border: 0; cursor: pointer; padding: 6px; color: var(--ink-3); }
.iconbtn svg { width: 26px; height: 26px; }
.iconbtn.fav-on { color: var(--accent); }
.iconbtn.fav-on svg { fill: currentColor; }

.status-box { padding: 22px; text-align: center; }
.status-box .spinner { width: 34px; height: 34px; margin-bottom: 10px; }
.err { color: var(--danger); font-weight: 600; }

/* ---------------------------------------------------------------- Formulare / Profil */
.panel + .panel { margin-top: 14px; }
.profile-text { font-family: var(--serif); font-size: 17px; line-height: 1.55; white-space: pre-wrap; margin: 0; }
.steps-guide { margin: 0; padding-left: 20px; }
.steps-guide li { margin-bottom: 8px; }
code.box { display: block; background: var(--bg-2); border-radius: 10px; padding: 10px 12px; font-size: 13px; word-break: break-all; user-select: all; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 26px; height: 26px; left: 2px; top: 2px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch input:checked + span { background: var(--olive); }
.switch input:checked + span::after { transform: translateX(20px); }
.list-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }

dialog {
  border: 0; border-radius: 22px; padding: 0; background: var(--card); color: var(--ink); width: min(560px, calc(100% - 24px));
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
dialog::backdrop { background: rgba(20, 15, 10, .45); }
dialog form { padding: 20px; }
dialog h2 { margin-bottom: 14px; }

/* ---------------------------------------------------------------- Login */
.login-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login { width: 100%; max-width: 360px; padding: 28px 24px; text-align: center; }
.login .logo { font-size: 56px; }
.login h1 { font-size: 30px; margin: 4px 0 4px; }
.login p { color: var(--ink-2); margin: 0 0 22px; font-family: var(--serif); font-style: italic; }
.login input { margin-bottom: 10px; }
.login .btn { width: 100%; margin-top: 6px; }

/* ---------------------------------------------------------------- Ernährung */
.diet-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.opt {
  display: flex; gap: 10px; align-items: center; text-align: left; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 11px 12px; font-size: 14.5px;
}
.opt .e { font-size: 24px; line-height: 1; }
.opt small { display: block; color: var(--ink-3); font-size: 12px; line-height: 1.3; margin-top: 2px; }
.opt.on { border-color: var(--accent); background: var(--accent-soft); }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.chipset .chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chipset .chip.avoid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chipset .chip.avoid::after { content: " ✕"; opacity: .7; }
.chipset .chip.add { border-style: dashed; }
.warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; margin: 12px 0; background: color-mix(in srgb, var(--danger) 14%, var(--card)); color: var(--ink); font-size: 14.5px; }
.warn b { color: var(--danger); }
.sugg .warn { margin: 0; padding: 8px 10px; font-size: 13px; }
.badge.warnb { left: auto; right: 10px; background: var(--danger); color: #fff; }
.contains { font-size: 13px; color: var(--ink-3); margin: 6px 0 0; }
.link-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; padding: 16px 18px; margin-bottom: 14px; }
.link-card .e { font-size: 30px; }
.link-card .t { flex: 1; }
.link-card .t small { display: block; color: var(--ink-2); font-size: 13.5px; }
.link-card .arrow { color: var(--ink-3); font-size: 22px; }

/* ---------------------------------------------------------------- Wochenplan */
.days-pick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.daychip {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 8px 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--ink-3); font-weight: 600;
}
.daychip b { font-size: 17px; color: var(--ink); font-family: var(--serif); }
.daychip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.plan { display: flex; flex-direction: column; gap: 12px; }
.planday { display: flex; gap: 12px; padding: 10px; align-items: stretch; }
.planday .pic { width: 92px; flex: none; border-radius: 12px; aspect-ratio: 1; cursor: pointer; }
.planday .pic .emoji { font-size: 40px; }
.planday .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.planday .when { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.planday.today { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.planday.today .when { color: var(--accent); }
.planday.past { opacity: .5; }
.planday h3 { font-size: 17px; cursor: pointer; }
.planday .why { font-size: 13.5px; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.planday .tools { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; }
.shop .cat { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 16px 0 4px; }
.shop .cat:first-child { margin-top: 0; }
.shop label.item { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.shop label.item input { width: 22px; height: 22px; accent-color: var(--olive); flex: none; }
.shop label.item .n { flex: 1; }
.shop label.item .a { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shop label.item .f { display: block; font-size: 12px; color: var(--ink-3); }
.shop label.item.done .n, .shop label.item.done .a { text-decoration: line-through; opacity: .45; }
.plan-today { display: flex; gap: 14px; align-items: center; padding: 12px; margin-bottom: 18px; text-decoration: none; color: inherit; }
.plan-today .pic { width: 64px; height: 64px; border-radius: 12px; flex: none; }
.plan-today .pic .emoji { font-size: 30px; }
.plan-today small { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }

/* ---------------------------------------------------------------- Was hab ich da? */
.photo-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px; border: 2px dashed var(--line); border-radius: var(--r); cursor: pointer; color: var(--ink-2); font-weight: 600; background: var(--bg-2); }
.photo-btn input { display: none; }
.uses { font-size: 13px; margin: 0; color: var(--olive); font-weight: 600; }
.missing { font-size: 13px; margin: 0; color: var(--ink-3); }

/* ---------------------------------------------------------------- Statistik */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 14px 16px; }
.kpi .v { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.1; }
.kpi .l { font-size: 13px; color: var(--ink-2); }
.cols-chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding: 18px 0 0; border-bottom: 1px solid var(--grid); position: relative; }
.cols-chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; cursor: default; }
.cols-chart .col .bar { width: 100%; max-width: 24px; background: var(--chart); border-radius: 4px 4px 0 0; min-height: 0; }
.cols-chart .col .val { font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.cols-chart .col:hover .bar, .cols-chart .col.tip .bar { filter: brightness(1.12); }
.cols-x { display: flex; gap: 6px; margin-top: 6px; }
.cols-x span { flex: 1; text-align: center; font-size: 11px; color: var(--ink-3); }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(80px, 34%) 1fr; gap: 10px; align-items: center; font-size: 14px; }
.hbar .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.hbar .track { display: flex; align-items: center; gap: 8px; }
.hbar .fill { height: 14px; background: var(--chart); border-radius: 0 4px 4px 0; min-width: 4px; }
.hbar .num { font-size: 13px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.minilist { display: flex; flex-direction: column; }
.minilist a { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.minilist a:last-child { border-bottom: 0; }
.minilist .pic { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.minilist .pic .emoji { font-size: 22px; }
.minilist .t { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.minilist .m { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.chart-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none; z-index: 3; }
