@font-face { font-family: "Baloo 2"; src: url("fonts/Baloo2.ttf"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Caveat Brush"; src: url("fonts/CaveatBrush.ttf"); font-display: swap; }

:root {
  color-scheme: light;
  --creme: #FBF1EC;
  --weiss: #FFFBFC;
  --rosa: #F6D3DC;
  --rosa-hell: #FCEBF0;
  --rosa-mittel: #E9A9BA;
  --bordeaux: #6E1A2E;
  --bordeaux-dunkel: #4A0F1E;
  --text: #4A0F1E;
  --muted: #8A5A66;
  --ok: #3F7A4F;
  --warn: #B4472F;
  --shadow: 0 8px 24px rgba(110, 26, 46, .10);
  --radius: 24px;
  --tab-h: 76px;
  --on-accent: #FFFBFC;
  --good-bg: #E4F1E7;
}

* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body {
  background: var(--creme);
  color: var(--text);
  font-family: "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom));
}
button, input, select { font: inherit; color: inherit; }
h2, h3 { margin: 0; line-height: 1.1; }
h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
a { color: inherit; }
[hidden] { display: none !important; }

.emoji { font-family: "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Emoji", sans-serif; font-weight: 400; }
.script { font-family: "Caveat Brush", cursive; font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }

/* Brush-stroke label, the signature element from the Instagram posts */
.brush {
  display: inline-block;
  font-weight: 800;
  padding: 2px 22px 6px;
  clip-path: polygon(2% 12%, 9% 0, 30% 7%, 55% 1%, 78% 6%, 97% 0, 100% 30%, 98% 62%, 100% 92%, 82% 100%, 60% 94%, 35% 100%, 12% 95%, 0 100%, 2% 70%, 0 40%);
}
.brush.dark { background: var(--bordeaux); color: var(--on-accent); }
h2.brush { font-size: 26px; transform: rotate(-1.5deg); margin: 8px 0 16px; }

.top { padding: calc(14px + env(safe-area-inset-top)) 16px 4px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .brush { font-size: 22px; transform: rotate(-2deg); white-space: nowrap; }
.brand .handle { font-size: 17px; color: var(--bordeaux); white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

main { max-width: 520px; margin: 0 auto; padding: 8px 16px; }
.view { display: flex; flex-direction: column; gap: 14px; }

.card {
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--weiss); box-shadow: var(--shadow);
  font-size: 24px; font-weight: 800; color: var(--bordeaux); cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 8px 22px; border-radius: 999px; border: 0;
  background: var(--bordeaux); color: var(--on-accent); font-weight: 800; font-size: 17px; cursor: pointer;
}
.btn.ghost { background: var(--rosa-hell); color: var(--bordeaux); }
.btn.danger { background: transparent; color: var(--warn); }
.btn:active { transform: scale(.97); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; }

input, select {
  width: 100%; min-height: 48px; padding: 8px 14px; border-radius: 14px;
  border: 2px solid var(--rosa); background: var(--weiss); font-size: 17px;
}
input:focus, select:focus { outline: none; border-color: var(--bordeaux); }

/* Day navigation */
.daynav { display: flex; align-items: center; justify-content: space-between; }
.daylabel { text-align: center; display: flex; flex-direction: column; }
.daylabel span { font-size: 24px; font-weight: 800; }
.daylabel small { color: var(--muted); font-size: 15px; }

/* Summary ring */
.summary { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; }
.avg-deficit { grid-column: 1 / -1; border-top: 2px solid var(--rosa-hell); padding-top: 12px; font-size: 15px; }
.avg-deficit:empty { display: none; }
.avg-deficit .row { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.avg-deficit .row b.good { color: var(--ok); }
.avg-deficit .row b.bad { color: var(--warn); }
.avg-deficit p { margin: 8px 0 0; color: var(--muted); }
.entry .t { color: var(--bordeaux); font-weight: 800; }

/* Journal */
.journal { display: flex; flex-direction: column; gap: 12px; }
.journal .meal-head { margin: 0; }
.j-row { display: grid; grid-template-columns: 1fr; gap: 4px; }
.j-label { font-weight: 700; }
.j-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.j-dot { min-height: 44px; border: 0; border-radius: 12px; background: var(--rosa-hell); color: var(--bordeaux); font-weight: 800; cursor: pointer; }
.j-dot.on { background: var(--bordeaux); color: var(--on-accent); }
.j-ends { display: flex; justify-content: space-between; color: var(--muted); }
.j-choice { display: flex; gap: 8px; flex-wrap: wrap; }
.j-choice .chip, .j-cycle .chip { box-shadow: none; background: var(--rosa-hell); }
.j-choice .chip.active, .j-cycle .chip.active { background: var(--bordeaux); color: var(--on-accent); }
.j-cycle { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; border-top: 2px solid var(--rosa-hell); padding-top: 10px; }
.ring-wrap { position: relative; width: 118px; height: 118px; flex: none; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring-bg { stroke: var(--rosa-hell); }
.ring-fg { stroke: var(--bordeaux); stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.ring-fg.over { stroke: var(--warn); }
.ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-num { font-size: 30px; font-weight: 800; line-height: 1; }
.ring-sub { font-size: 14px; color: var(--muted); }
.sum-side { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.sum-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 6px; }
.sum-row b { font-size: 18px; white-space: nowrap; }

/* Macro bars */
.macros { display: grid; gap: 12px; }
.macro-top { display: flex; justify-content: space-between; font-weight: 600; }
.macro-top b { font-weight: 800; }
.bar { height: 12px; border-radius: 6px; background: var(--rosa-hell); overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--rosa-mittel), var(--bordeaux)); transition: width .5s ease; }
.bar i.over { background: var(--warn); }

/* Water */
.water-head { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 10px; }
.glasses { display: flex; flex-wrap: wrap; gap: 8px; }
.glass {
  width: 44px; height: 52px; border: 0; cursor: pointer; padding: 0;
  border-radius: 6px 6px 14px 14px; background: var(--rosa-hell);
  position: relative; overflow: hidden;
}
.glass::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: #7FB7D9; transition: height .3s ease; }
.glass.full::after { height: 78%; }

/* Meals */
.meal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.meal-head h3 { margin: 0; }
.meal-head small { color: var(--muted); font-weight: 600; }
.entry {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%;
  padding: 10px 0; border: 0; border-top: 2px solid var(--rosa-hell); background: none; text-align: left; cursor: pointer;
}
.entry .n { font-weight: 700; }
.entry .k { font-weight: 800; text-align: right; }
.entry .d { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.add-line { margin-top: 8px; width: 100%; min-height: 44px; border: 2px dashed var(--rosa-mittel); border-radius: 14px; background: none; color: var(--bordeaux); font-weight: 700; cursor: pointer; }
.empty { color: var(--muted); font-size: 15px; margin: 4px 0 0; }

.notice { background: var(--rosa); }
.legal a { color: var(--bordeaux); font-weight: 700; }
.notice p { margin: 6px 0 0; }
.insta { display: flex; flex-direction: column; align-items: center; text-decoration: none; background: var(--rosa); text-align: center; }
.insta .script { font-size: 26px; }

/* Tabs */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--weiss); box-shadow: 0 -6px 24px rgba(110, 26, 46, .10);
}
.tabs button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; padding: 6px 0; }
.tabs button .emoji { font-size: 22px; }
.tabs button.active { color: var(--bordeaux); }
.tabs .add-fab {
  justify-self: center; width: 64px; height: 64px; border-radius: 50%; margin-top: -26px;
  background: var(--bordeaux); color: var(--on-accent); font-size: 38px; font-weight: 600; line-height: 1;
  box-shadow: 0 10px 24px rgba(110, 26, 46, .35);
}
.tabs button[data-view="today"] { order: -2; }
.tabs button[data-view="ideas"] { order: -1; }
.tabs button { font-size: 13px; }

/* Ideas */
.ideas { display: grid; gap: 14px; }
.idea { padding: 0; overflow: hidden; }
.idea img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--rosa-hell); }
.idea-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.idea-body h3 { margin: 0; font-size: 22px; }
.idea-body p { margin: 0; }
.idea-macros { font-weight: 700; }
.idea details { font-size: 15px; }
.idea summary { font-weight: 700; color: var(--bordeaux); cursor: pointer; }
.idea ul { margin: 6px 0 0; padding-left: 20px; color: var(--muted); }
.ideas.compact .idea { display: grid; grid-template-columns: 110px 1fr; }
.ideas.compact .idea img { height: 100%; aspect-ratio: auto; }
.ideas.compact .idea-body { padding: 12px 14px; gap: 6px; }
.ideas.compact .idea-body h3 { font-size: 18px; }
.ideas.compact .btn { min-height: 40px; font-size: 15px; padding: 6px 14px; }
textarea { width: 100%; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--rosa); background: var(--weiss); font: inherit; font-size: 17px; resize: vertical; }
textarea:focus { outline: none; border-color: var(--bordeaux); }

/* Sheets */
.sheet-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(74, 15, 30, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  background: var(--creme); border-radius: 28px 28px 0 0;
  padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
  animation: up .25s ease;
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.lead { font-size: 26px; color: var(--bordeaux); margin: 0 0 10px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--rosa-hell); padding: 4px; border-radius: 999px; margin-bottom: 14px; }
.seg button { border: 0; background: none; min-height: 40px; border-radius: 999px; font-weight: 700; color: var(--bordeaux); cursor: pointer; font-size: 15px; }
.seg button.active { background: var(--bordeaux); color: var(--on-accent); }
.seg.small { margin: 4px 0; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.chip { flex: none; border: 0; border-radius: 999px; padding: 6px 14px; min-height: 44px; background: var(--weiss); color: var(--bordeaux); font-weight: 700; font-size: 15px; box-shadow: var(--shadow); cursor: pointer; }
#quick-amounts { flex-wrap: wrap; overflow: visible; }
.chip.active { background: var(--bordeaux); color: var(--on-accent); }

.list { display: flex; flex-direction: column; gap: 8px; }
.food {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center;
  padding: 12px 14px; border: 0; border-radius: 16px; background: var(--weiss); box-shadow: var(--shadow); text-align: left; cursor: pointer;
}
.food .n { font-weight: 700; }
.food .k { font-weight: 800; white-space: nowrap; }
.food .d { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }

.plan { margin-bottom: 12px; }
#online:not(:empty) { margin: 10px 0 4px; }
#online .online-head { margin-top: 6px; }
.loading-dots::after { content: ""; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.online-head { margin: 18px 0 10px; }
.plan p { margin: 4px 0 10px; }

.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 15px; }
.form label > span { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.form label > span input { flex: 1; }
.form label.check { flex-direction: row; align-items: center; gap: 10px; }
.form label.check input { width: 22px; min-height: 22px; accent-color: var(--bordeaux); }
#goals-form label { flex-direction: row; justify-content: space-between; align-items: center; }
#goals-form label > span { width: 60%; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.inline-form { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.inline-form input { flex: 1; }

.pick { display: flex; flex-direction: column; }
.amount-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.amount-row select:disabled { opacity: 1; background: var(--rosa-hell); }
.pick b { font-size: 22px; }
.pick small { color: var(--muted); }
.preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: var(--weiss); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); text-align: center; }
.preview div { display: flex; flex-direction: column; }
.preview b { font-size: 20px; }
.preview small { color: var(--muted); font-size: 13px; }

/* Scanner */
.scan-box { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--bordeaux-dunkel); }
.scan-box video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; left: 12%; right: 12%; top: 32%; bottom: 32%; border: 3px solid var(--rosa); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .25); }

/* Charts */
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font-family: "Baloo 2", system-ui, sans-serif; fill: var(--muted); font-size: 12px; }

.toast {
  position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); z-index: 30;
  transform: translateX(-50%) translateY(-20px); opacity: 0; pointer-events: none;
  background: var(--bordeaux); color: var(--on-accent); padding: 10px 20px; border-radius: 18px; font-weight: 700;
  transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 700px) {
  .brand { justify-content: center; }
}

/* Trends */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid3 label > span { flex-direction: column; align-items: stretch; gap: 2px; }
.big-stat { display: flex; flex-direction: column; margin: 4px 0 12px; }
.big-stat b { font-size: 34px; line-height: 1.1; }
.big-stat.good b { color: var(--ok); }
.big-stat.bad b { color: var(--warn); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; background: var(--rosa-hell); border-radius: 16px; padding: 10px 6px; margin: 8px 0; }
.stat-row div { display: flex; flex-direction: column; }
.stat-row b { font-size: 20px; }
.stat-row small { color: var(--muted); font-size: 12px; line-height: 1.2; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 1px; border: 2px solid var(--rosa-hell); background: var(--weiss); border-radius: 16px; padding: 10px 12px; cursor: pointer; color: var(--text); }
.tile.active { border-color: var(--bordeaux); background: var(--rosa-hell); }
.tile small { color: var(--muted); font-weight: 700; }
.tile b { font-size: 20px; }
.tile b em { font-style: normal; font-size: 13px; color: var(--muted); }
.tile span { font-size: 12px; color: var(--muted); }
.tile .trend { color: var(--bordeaux); font-weight: 800; }
.nut { margin: 8px 0; }
.nut-top { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 15px; }
.nut-top small { color: var(--muted); font-weight: 500; }
.bar i.full { background: var(--ok); }
.bar i.low { background: linear-gradient(90deg, var(--rosa-mittel), var(--warn)); }
.hint { background: var(--rosa-hell); border-radius: 14px; padding: 10px 12px; margin: 10px 0 0; font-size: 15px; }
.hint.good { background: var(--good-bg); }
h4 { margin: 14px 0 4px; font-size: 17px; }
.gap { border-left: 4px solid var(--warn); padding: 4px 0 4px 10px; margin: 8px 0; font-size: 15px; }
.gap span { color: var(--muted); }
.table-wrap { overflow-x: auto; }
.cycle-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: center; }
.cycle-table th, .cycle-table td { padding: 6px 4px; border-bottom: 1px solid var(--rosa-hell); }
.cycle-table thead th { font-size: 12px; color: var(--muted); }
.cycle-table tbody th { text-align: left; font-weight: 700; }

/* Recipes */
.recipe .idea-body { gap: 6px; }
.tag-cat { align-self: flex-start; background: var(--rosa-hell); color: var(--bordeaux); font-weight: 700; font-size: 13px; padding: 2px 10px; border-radius: 999px; }
.recipe .btn-row { margin: 4px 0 0; }
.recipe .btn-row .btn { flex: 1; min-height: 42px; padding: 6px 12px; font-size: 15px; }
.ideas.compact .recipe { display: block; }
#recipe-search { margin-top: 2px; }
#recipe-new { width: 100%; margin-top: 4px; }
.empty-state p { margin: 6px 0 0; }
.paste-link summary { font-weight: 700; color: var(--bordeaux); cursor: pointer; }
.ing { display: grid; grid-template-columns: 1fr 84px 26px 44px; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 2px solid var(--rosa-hell); }
.ing-name { font-weight: 700; font-size: 15px; }
.ing input { min-height: 40px; padding: 4px 8px; }
.ing-unit { color: var(--muted); font-weight: 700; }
.icon-btn.small { width: 44px; height: 44px; font-size: 16px; box-shadow: none; background: var(--rosa-hell); }
.ing-search { display: flex; flex-direction: column; gap: 6px; }
.span4 { grid-column: 1 / -1; margin: 0; }

/* Sharing */
#share-week { width: 100%; margin-top: 4px; }
.challenge { border-top: 2px solid var(--rosa-hell); padding-top: 8px; margin-top: 8px; }
.challenge p { margin: 4px 0 0; }
.challenge .btn-row { margin: 6px 0 0; }
.small-btn { min-height: 44px; padding: 4px 14px; font-size: 14px; }
.challenge-form { margin-top: 12px; }

/* Favorites & copy */
.pick-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.fav { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--weiss); box-shadow: var(--shadow); font-size: 26px; color: var(--bordeaux); cursor: pointer; }
.fav.on { background: var(--bordeaux); color: #FFD45C; }
.list-head { margin: 10px 0 2px; font-size: 16px; color: var(--muted); }
.add-line.copy { border-style: solid; border-color: var(--rosa); background: var(--rosa-hell); }
#copy-day { min-height: 48px; }
.hitrate { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; margin: 10px 0; font-size: 15px; }
.hitrate .bar { grid-column: 1 / -1; margin: 0; }
.explain { margin: 4px 0 0; padding-left: 18px; font-size: 15px; line-height: 1.45; }
.explain li { margin: 3px 0; }
#goal-explain summary { font-weight: 700; color: var(--bordeaux); cursor: pointer; }

/* Dark mode: follows the system unless chosen in the profile */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;
  --creme: #1C1114;
  --weiss: #2A1A1F;
  --rosa: #4A2630;
  --rosa-hell: #3A2228;
  --rosa-mittel: #8C4A5E;
  --bordeaux: #C04F74;
  --bordeaux-dunkel: #F3DDE3;
  --text: #F6E6EA;
  --muted: #C9A3AD;
  --ok: #6FBF82;
  --warn: #E2775C;
  --good-bg: #233A2B;
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --creme: #1C1114;
  --weiss: #2A1A1F;
  --rosa: #4A2630;
  --rosa-hell: #3A2228;
  --rosa-mittel: #8C4A5E;
  --bordeaux: #C04F74;
  --bordeaux-dunkel: #F3DDE3;
  --text: #F6E6EA;
  --muted: #C9A3AD;
  --ok: #6FBF82;
  --warn: #E2775C;
  --good-bg: #233A2B;
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
/* Chart colors are SVG attributes; map them to the theme */
.chart [fill="#6E1A2E"] { fill: var(--bordeaux); }
.chart [stroke="#6E1A2E"] { stroke: var(--bordeaux); }
.chart [fill="#E9A9BA"] { fill: var(--rosa-mittel); }
.chart [fill="#FCEBF0"] { fill: var(--rosa-hell); }
.chart [fill="#B4472F"] { fill: var(--warn); }

@keyframes slideL { from { transform: translateX(30px); opacity: .4; } }
@keyframes slideR { from { transform: translateX(-30px); opacity: .4; } }
.daynav.slide-l { animation: slideL .25s ease; }
.daynav.slide-r { animation: slideR .25s ease; }
.notice.refeed { background: #FFE9C7; color: #4A2A0F; }
.notice.refeed p { margin: 4px 0 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notice.refeed { background: #4A3417; color: #FBE7C8; } }
:root[data-theme="dark"] .notice.refeed { background: #4A3417; color: #FBE7C8; }

/* Avatar */
.avatar { border-radius: 50%; overflow: hidden; padding: 0; border: 0; background: var(--rosa); display: flex; align-items: center; justify-content: center; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar .emoji, .avatar .initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.avatar .initials { background: var(--bordeaux); color: var(--on-accent); font-weight: 800; }
.avatar .neutral { background: var(--rosa-hell); opacity: .8; }
.avatar-mini { width: 42px; height: 42px; margin-left: auto; font-size: 24px; cursor: pointer; box-shadow: var(--shadow); }
.avatar-mini .initials { font-size: 17px; }
.avatar-big { width: 112px; height: 112px; font-size: 60px; margin: 0 auto; box-shadow: var(--shadow); }
.avatar-big .initials { font-size: 40px; }
.me-card { display: flex; flex-direction: column; gap: 12px; }
.me-card .btn-row { justify-content: center; margin: 0; }
.me-card > p { text-align: center; margin: 0; }
.me-name { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 15px; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.emoji-pick { aspect-ratio: 1; border: 2px solid transparent; border-radius: 12px; background: var(--rosa-hell); font-size: 22px; cursor: pointer; min-height: 44px; }
.emoji-pick.on { border-color: var(--bordeaux); }
.color-row { display: flex; gap: 8px; flex-wrap: wrap; }
.color-pick { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--weiss); box-shadow: 0 0 0 2px var(--rosa); cursor: pointer; }
.color-pick.on { box-shadow: 0 0 0 3px var(--bordeaux); }
.avatar-maker p { margin: 0; }
@media (min-width: 700px) { .avatar-mini { margin-left: 16px; } }
