@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/vendor/fonts/inter/inter-latin-wght-normal.woff2) format("woff2-variations"); }

:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #fbfbfa;
  --soft: #f1f1ef;
  --soft-2: #e7e7e4;
  --line: #e7e6e3;
  --line-2: #d6d5d1;
  --ink: #1c1c1e;
  --on-ink: #ffffff;
  --muted: #6e6e73;
  --accent: #e5484d;
  --accent-ink: #cf3a3f;
  --accent-soft: #fdeceb;
  --good: #1f9d55;
  --warn: #d4402c;
  --shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.18);
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.04);
  --radius: 14px;
  --side-w: 248px;
  --tab-h: 62px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
:root[data-scheme="dark"] {
  color-scheme: dark;
  --bg: #111112;
  --surface: #1a1a1c;
  --surface-2: #1d1d20;
  --soft: #242427;
  --soft-2: #2e2e32;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --ink: #f2f2f3;
  --on-ink: #151517;
  --muted: #9a9aa1;
  --accent: #ff6369;
  --accent-ink: #ff7c81;
  --accent-soft: rgba(255, 99, 105, 0.14);
  --good: #3dd68c;
  --warn: #ff7563;
  --shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-s: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.5; cursor: default; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; line-height: 1.15; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 620; }
h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hint { color: var(--muted); font-size: 13px; }
.fine { color: var(--muted); font-size: 13px; text-align: center; }
.error { color: var(--warn); font-weight: 600; }
.grow { flex: 1 1 auto; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.end { justify-content: flex-end; }
.row.wrap { flex-wrap: wrap; }
.gap6 { gap: 6px; }
.gap8 { gap: 8px; }
.col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pad { padding: 20px; }

.ico { display: inline-block; flex: none; width: var(--s, 20px); height: var(--s, 20px); background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-style: normal; line-height: 1; }

/* ---------- Grundlayout ---------- */
#app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); height: 100dvh; }
#app.loading #side, #app.loading #tabs { visibility: hidden; }
#app.solo { grid-template-columns: 1fr; }
#app.solo #side, #app.solo #tabs { display: none; }
#main { overflow: auto; min-width: 0; position: relative; }
.boot { padding: 40px; color: var(--muted); }

#side { display: flex; flex-direction: column; gap: 14px; padding: 18px 12px; border-right: 1px solid var(--line); background: var(--surface-2); overflow: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.brand strong { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.brand.big { justify-content: center; margin-bottom: 6px; }
.brand.big img { width: 44px; height: 44px; border-radius: 12px; }
.brand.big strong { font-size: 26px; }
.newbtn { justify-content: center; }
.sidenav { display: flex; flex-direction: column; gap: 1px; }
.navlink { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-weight: 550; color: var(--muted); }
.navlink .ico { --s: 18px; }
.navlink:hover { background: var(--soft); color: var(--ink); }
.navlink.on { background: var(--soft-2); color: var(--ink); }
.navlink .badge { margin-left: auto; }
.sideplans { display: flex; flex-direction: column; gap: 1px; padding-top: 6px; border-top: 1px solid var(--line); }
.sideplans h4 { margin: 10px 10px 6px; }
.planfilter { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.planfilter:hover { background: var(--soft); }
.planfilter input { position: absolute; opacity: 0; pointer-events: none; }
.planfilter .box { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: var(--c); color: #fff; border: 1.5px solid var(--c); }
.planfilter .box .ico { --s: 12px; }
.planfilter.off .box { background: transparent; color: transparent; }
.planfilter.off { color: var(--muted); }
.planfilter small { color: var(--muted); }
.planfilter:has(input:focus-visible) { outline: 2px solid var(--ink); }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.me:hover { background: var(--soft); }
.me span { flex: 1; }

#tabs { display: none; }
#fab { display: none; }

/* ---------- Knöpfe, Felder, Chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 120ms; }
.btn:hover:not(:disabled) { background: var(--soft); }
.btn.primary, .btn.dark { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn.primary:hover:not(:disabled), .btn.dark:hover:not(:disabled) { background: var(--ink); opacity: 0.88; }
.btn.danger { background: var(--warn); border-color: var(--warn); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--soft); }
.btn.ghost.danger { color: var(--warn); background: transparent; }
.btn.small { min-height: 34px; padding: 5px 11px; font-size: 14px; border-radius: 9px; }
.btn.wide { width: 100%; }
.btn.done { background: color-mix(in srgb, var(--good) 12%, var(--surface)); border-color: transparent; color: var(--good); }
.iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); }
.iconbtn:hover { background: var(--soft); color: var(--ink); }
.link { border: 0; background: none; color: var(--accent-ink); font-weight: 600; padding: 8px; text-decoration: underline; }
.minilink { color: var(--muted); font-weight: 550; font-size: 13px; text-decoration: none; padding: 2px 6px; border-radius: 6px; border: 0; background: none; }
.minilink:hover { background: var(--soft); color: var(--ink); }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }

input, select, textarea { width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); outline: none; transition: border-color 120ms, box-shadow 120ms; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent); }
textarea { resize: vertical; min-height: 80px; }
input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; width: 18px; min-height: 18px; height: 18px; margin: 0; padding: 0;
  border: 1.5px solid var(--line-2); border-radius: 5px; background: var(--surface) center / 12px 12px no-repeat; cursor: pointer;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
:root[data-scheme="dark"] input[type="checkbox"] { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151517' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
input[type="checkbox"]:hover { border-color: var(--muted); }
input[type="checkbox"]:checked { background-color: var(--ink); border-color: var(--ink); background-image: var(--tick); }
input[type="checkbox"]:focus { box-shadow: none; }
input[type="checkbox"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.flabel { font-size: 13px; font-weight: 600; color: var(--muted); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 550; white-space: nowrap; text-decoration: none; }
button.chip:hover, a.chip:hover { background: var(--soft); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chip.cat { border-color: transparent; background: var(--soft); color: var(--ink); }
.chip.cat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.chip.cat .emoji { display: none; }
.chip.cat.pick { cursor: pointer; border: 1px solid transparent; }
.chip.cat.pick .ico { color: var(--c); }
.chip.cat.pick::before { display: none; }
.chip.cat.pick:hover { background: color-mix(in srgb, var(--c) 10%, var(--soft)); }
.chip.cat.pick.on { background: color-mix(in srgb, var(--c) 18%, var(--surface)); border-color: var(--c); color: var(--ink); }
.chip.add { border-style: dashed; color: var(--muted); background: transparent; }
.chip.st { border-color: transparent; background: var(--soft); color: var(--muted); }
.chip.st.erledigt { background: color-mix(in srgb, var(--good) 12%, var(--surface)); color: var(--good); }
.chip.plan .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); }
.chip.mood { padding: 7px 13px; font-size: 14px; }
.chip.mood .emoji { font-size: 15px; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--soft); }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-weight: 550; color: var(--muted); min-height: 34px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.seg.small button { padding: 4px 10px; min-height: 30px; font-size: 13px; }

.avatar { display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: 50%; background: var(--c); color: #fff; font-size: calc(var(--s) * 0.4); font-weight: 650; box-shadow: 0 0 0 2px var(--surface); }
.avatar.guest { background: color-mix(in srgb, var(--c) 20%, var(--surface)); color: color-mix(in srgb, var(--c) 80%, var(--ink)); }
.avatars { display: inline-flex; align-items: center; }
.avatars .avatar + .avatar { margin-left: -7px; }
.avatars .more { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }

.sticker { display: inline-grid; place-items: center; flex: none; width: var(--s, 36px); height: var(--s, 36px); border-radius: 10px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); font-size: calc(var(--s, 36px) * 0.5); }

.hscroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.hscroll::-webkit-scrollbar { display: none; }

/* ---------- Seiten ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 40px) 110px; display: flex; flex-direction: column; gap: 18px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kicker { font-size: 13px; font-weight: 550; color: var(--muted); margin-bottom: 2px; }
.block { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.blockhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.blockhead > .muted { font-size: 13px; }
.rows { display: flex; flex-direction: column; gap: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 280px); gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.strip::-webkit-scrollbar { display: none; }
.strip > * { scroll-snap-align: start; }

.entryrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; }
.entryrow:hover { border-color: var(--line-2); }
.entryrow .text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.entryrow .text strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entryrow .text .muted { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entryrow .rel { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.datebadge { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 44px; height: 46px; border-radius: 10px; background: var(--soft); border-top: 3px solid var(--c); }
.datebadge .dm { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.datebadge b { font-size: 18px; font-weight: 650; line-height: 1.05; }

/* Karten */
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; cursor: pointer; transition: border-color 120ms; }
.card:hover { border-color: var(--line-2); }
.card.status-erledigt { opacity: 0.6; }
.card.match { border-color: color-mix(in srgb, #e0a800 60%, var(--line)); }
.cover { position: relative; aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.cover img, .hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cardbody { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; flex: 1; }
.cardbody h3 { line-height: 1.3; font-size: 16px; font-weight: 620; }
.cardtop { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); min-width: 0; }
.catline { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catline .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.catline .emoji { font-size: 13px; }
.stlabel { margin-left: auto; padding: 1px 7px; border-radius: 6px; background: var(--soft); font-weight: 600; font-size: 11px; color: var(--muted); }
.stlabel.erledigt { color: var(--good); background: color-mix(in srgb, var(--good) 12%, var(--surface)); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 7px; min-width: 0; }
.facts li > span:not(.ico) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts li.when { color: var(--ink); font-weight: 550; }
.facts em { font-style: normal; color: var(--muted); }
.facts.big { font-size: 15px; color: var(--ink); gap: 9px; }
.facts.big .ico { color: var(--muted); }
.facts.big li > span:not(.ico) { white-space: normal; }
.cardfoot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; min-height: 30px; }
.boardtag { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 12px; font-weight: 550; color: var(--muted); white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.cardfoot .votes { flex-wrap: nowrap; flex: none; gap: 4px; }
.cardfoot .by { flex: none; display: inline-flex; }
.boardtag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }

.votes { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.vote { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-weight: 550; font-size: 13px; color: var(--muted); }
.vote:hover { background: var(--soft); }
.vote b { color: var(--ink); }
.votes.compact .vote { min-height: 28px; padding: 3px 7px; gap: 4px; }
.vote.v2.on { background: color-mix(in srgb, var(--good) 14%, var(--surface)); border-color: transparent; color: var(--good); }
.vote.v1.on { background: color-mix(in srgb, #d97706 14%, var(--surface)); border-color: transparent; color: #b45309; }
.vote.v0.on { background: var(--soft-2); border-color: transparent; color: var(--ink); }
.vote.on b { color: inherit; }
.votegroups { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-size: 14px; }
.vg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.who { display: inline-flex; align-items: center; gap: 5px; font-weight: 550; }
.voters { display: inline-flex; }
.voters .avatar + .avatar { margin-left: -6px; }
.matchtag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 6px; background: color-mix(in srgb, #e0a800 16%, var(--surface)); color: #8a6100; font-size: 11px; font-weight: 650; }
:root[data-scheme="dark"] .matchtag { color: #f5c542; }

.empty-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty-state .emoji { font-size: 32px; }
.empty-state h3 { color: var(--ink); font-size: 17px; }
.empty-state p { max-width: 440px; }

.boardtabs { padding: 2px 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.searchbox { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--muted); }
.searchbox:focus-within { border-color: var(--ink); }
.searchbox input { border: 0; padding-left: 0; box-shadow: none !important; min-height: 38px; background: transparent; }
.searchbox.big { padding: 2px 4px 2px 14px; }
.searchbox.big input { min-height: 44px; font-size: 16px; }
.sortsel { width: auto; min-height: 38px; }
.filterrow { display: flex; gap: 8px; align-items: center; }

/* ---------- Heute ---------- */
.todayhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wxnow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; text-decoration: none; }
.wxnow .emoji { font-size: 20px; }
.wxnow small { color: var(--muted); font-weight: 500; }
.weekstrip { overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * clamp(16px, 3vw, 40px)); padding: 2px clamp(16px, 3vw, 40px) 4px; scroll-snap-type: x proximity; }
.weekstrip::-webkit-scrollbar { display: none; }
.weekgrid { display: grid; grid-template-columns: repeat(var(--days), 64px); grid-auto-rows: auto; gap: 6px; width: max-content; }
.daycell { grid-row: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); scroll-snap-align: start; }
.daycell:hover { border-color: var(--line-2); }
.daycell .wd { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.daycell .dn { font-size: 19px; font-weight: 650; line-height: 1.15; }
.daycell .wx { font-size: 11px; font-weight: 550; color: var(--muted); display: flex; align-items: center; gap: 2px; min-height: 16px; }
.daycell .wx .emoji { font-size: 12px; }
.daycell .dots { display: flex; gap: 3px; min-height: 6px; }
.daycell .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.daycell.weekend { background: var(--surface-2); }
.daycell.today .dn { color: var(--accent); }
.daycell.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.daycell.on .dn { color: var(--on-ink); }
.daycell.on .wd, .daycell.on .wx { color: color-mix(in srgb, var(--on-ink) 65%, transparent); }
.wbar { display: flex; align-items: center; gap: 6px; min-width: 0; height: 24px; padding: 0 8px; border: 0; border-radius: 6px; background: color-mix(in srgb, var(--c) 16%, var(--surface)); border-left: 3px solid var(--c); color: var(--ink); font-size: 12px; font-weight: 550; text-align: left; white-space: nowrap; overflow: hidden; }
.wbar .emoji { display: none; }
.wbar span { overflow: hidden; text-overflow: ellipsis; }
.daypanel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.daycard { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.daycard .dayhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.daycard .dayhead h2 { font-size: 20px; }
.timeline { position: relative; display: flex; flex-direction: column; gap: 6px; }
.tl { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 10px; align-items: stretch; }
.tl .time { padding-top: 10px; font-weight: 600; font-size: 13px; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.tl .time small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.tlcard { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px 9px 14px; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--c) 9%, var(--surface)); text-align: left; overflow: hidden; }
.tlcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.tlcard:hover { background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.tlcard > .emoji { display: none; }
.tlcard .text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tlcard strong { font-size: 15px; font-weight: 600; }
.tlcard .muted { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlcard.past { opacity: 0.5; }
.tlcard img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.nowline { display: grid; grid-template-columns: 50px 1fr; gap: 10px; align-items: center; color: var(--accent); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nowline::after { content: ""; height: 2px; border-radius: 2px; background: var(--accent); }
.nowline span { text-align: right; }
.daynone { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 4px 0; color: var(--muted); }
.daynone strong { font-weight: 550; }
.upnext { display: flex; flex-direction: column; gap: 14px; }
.daygroup h4 { display: flex; align-items: center; gap: 8px; }
.persfilter { display: flex; gap: 6px; flex-wrap: wrap; }
.personchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 550; }
.personchip:hover { background: var(--soft); }
.personchip.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.personchip.on .avatar { box-shadow: 0 0 0 2px var(--ink); }
.discteaser { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.discteaser:hover { border-color: var(--line-2); }
.discteaser > .ico { color: var(--muted); }
.discteaser h3 { font-size: 15px; }
.discteaser p { color: var(--muted); font-size: 13px; }

/* ---------- Entdecken ---------- */
.dischead { display: flex; flex-direction: column; gap: 12px; }
.locrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.locchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 550; font-size: 13px; }
.moods { display: flex; gap: 6px; flex-wrap: wrap; }
.discgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.disccard { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.disccard:hover { border-color: var(--line-2); }
.disccard .cardbody p { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.disccard .acts { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }
.postergrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.poster { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; background: none; text-align: left; }
.poster .pimg { position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--soft); }
.poster:hover .pimg { outline: 2px solid var(--line-2); }
.poster .pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster .pimg.empty { display: grid; place-items: center; font-size: 36px; }
.poster strong { font-size: 14px; font-weight: 600; line-height: 1.25; }
.poster small { color: var(--muted); font-size: 12px; }
.savedmark { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--on-ink); }
.tmdbsheet { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 22px; }
.tmdbsheet .pimg { aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--soft); }
.tmdbsheet .pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tmdbsheet .info { display: flex; flex-direction: column; gap: 12px; }
.providers { display: flex; flex-wrap: wrap; gap: 6px; }
.attrib { font-size: 12px; color: var(--muted); }
.suggest { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.suggest:empty { display: none; }
.suggestopt { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; }
.suggestopt:hover { background: var(--soft); }
.suggestopt img, .suggestopt .ph { width: 34px; height: 50px; border-radius: 6px; object-fit: cover; flex: none; background: var(--soft); display: grid; place-items: center; }
.suggestopt span { display: flex; flex-direction: column; min-width: 0; }
.suggestopt small { color: var(--muted); }
.skeleton { border-radius: var(--radius); background: var(--soft); min-height: 240px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }

/* ---------- Pläne und Einstellungen ---------- */
.plangrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.plancard { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; position: relative; border-top: 3px solid var(--c); }
.planmain { display: flex; align-items: center; gap: 12px; padding: 14px; text-decoration: none; }
.planmain .text { display: flex; flex-direction: column; }
.planicon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: color-mix(in srgb, var(--c) 78%, var(--ink)); flex: none; }
.planicon.soft { --c: var(--muted); }
.planfoot { display: flex; align-items: center; gap: 8px; padding: 8px 12px 10px 14px; border-top: 1px solid var(--line); }
.memberlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.memberlist li { display: flex; align-items: center; gap: 10px; }
.invitebox { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 10px; background: var(--soft); }
.invitebox code { flex: 1 1 0; width: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.palette { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); background: var(--c); box-shadow: 0 0 0 1px var(--line-2); }
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }
.catedit { display: flex; flex-wrap: wrap; gap: 6px; }
.catform { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--soft); }
.iconpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.iconopt { display: grid; place-items: center; height: 40px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--muted); }
.iconopt:hover { color: var(--c); }
.iconopt.on { background: color-mix(in srgb, var(--c) 18%, var(--surface)); border-color: var(--c); color: var(--c); }
.iconopt .emoji { font-size: 20px; }
.section.glow { padding: 14px; border-radius: 12px; background: var(--soft); }
.settings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.settings > * { min-width: 0; }
.setcard { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.setcard h3 { display: flex; align-items: center; gap: 10px; }
.setcard h3 .sticker { --s: 30px; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.installhint { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.installhint .emoji { font-size: 22px; }

/* ---------- Blatt / Fenster ---------- */
.shade { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.32); opacity: 0; transition: opacity 140ms; }
.shade.open { opacity: 1; }
.sheet { position: relative; width: min(100%, 520px); max-height: calc(100dvh - 40px); overflow: auto; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); transform: translateY(8px); transition: transform 160ms ease-out; }
.sheet.wide { width: min(100%, 680px); }
.shade.open .sheet { transform: none; }
.askbox { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.close { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9px; background: var(--surface); color: var(--muted); }
.close:hover { background: var(--soft); color: var(--ink); }
.editorhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.editorhead .close { position: static; }

.detailtop { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.detail .hero { position: relative; aspect-ratio: 16 / 9; max-height: 300px; width: 100%; background: var(--soft); overflow: hidden; }
.detailbody { display: flex; flex-direction: column; gap: 16px; padding: 18px 22px 22px; }
.detailbody h2 { font-size: 24px; font-weight: 700; line-height: 1.2; }
.section { display: flex; flex-direction: column; gap: 6px; }
.links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.links a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--soft); text-decoration: none; font-weight: 550; }
.links a span { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links a small { color: var(--muted); font-weight: 400; }
.notes { white-space: pre-wrap; }
.meta { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.actions { padding-top: 12px; border-top: 1px solid var(--line); }

.editor, .plansheet { display: flex; flex-direction: column; gap: 16px; padding: 18px 22px 0; }
.plansheet { padding-bottom: 22px; }
.linkgrab { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 10px; background: var(--soft); color: var(--muted); }
.linkgrab input { border: 0; background: transparent; box-shadow: none !important; color: var(--ink); min-height: 38px; padding: 0 4px; }
.editor > .hint { margin-top: -10px; }
.imagepick { display: flex; align-items: center; gap: 14px; }
.imagepick img, .imagepick .noimg { width: 120px; aspect-ratio: 16 / 10; border-radius: 10px; object-fit: cover; flex: none; }
.noimg { display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--c); font-size: 28px; }
.catpick { display: flex; flex-wrap: wrap; gap: 6px; }
.peoplepick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.peoplepick.others { margin-top: 2px; }
.personchip.ghost { border-style: dashed; background: transparent; color: var(--muted); }
.personchip.ghost:hover { color: var(--ink); }
.personadd { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 12px; border: 1px dashed var(--line-2); border-radius: 999px; }
.personadd input { border: 0; min-height: 30px; padding: 0; width: 130px; background: transparent; box-shadow: none !important; font-size: 13px; }
.whenrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 8px; }
.mini { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); flex: 1 1 140px; }
.timefield { position: relative; }
.timefield input { font-variant-numeric: tabular-nums; }
.timelist { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; min-width: 100%; max-height: 216px; overflow: auto; padding: 4px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); scrollbar-width: thin; }
.timelist button { display: block; width: 100%; padding: 7px 10px; border: 0; border-radius: 7px; background: none; color: var(--ink); text-align: left; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.timelist button:hover { background: var(--soft); }
.timelist button.on { background: var(--ink); color: var(--on-ink); }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 550; cursor: pointer; }
.placelist { display: flex; flex-direction: column; gap: 4px; }
.placelist:empty { display: none; }
.placeopt { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; }
.placeopt:hover { background: var(--soft); }
.placeopt span { display: flex; flex-direction: column; min-width: 0; }
.placeopt small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.placechosen { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 10px; background: var(--soft); font-weight: 550; }
.cost { width: 120px; }
.linkedit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.linkedit li { display: flex; align-items: center; gap: 8px; }
.linkedit small { white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sticky { position: sticky; bottom: 0; padding: 12px 0 16px; background: var(--surface); border-top: 1px solid var(--line); }
details.more summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
details.more[open] { display: flex; flex-direction: column; gap: 10px; }
.moresheet { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px 26px; }
.moresheet h2 { margin-bottom: 6px; }
.morelink { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; text-decoration: none; font-weight: 550; border: 0; background: none; text-align: left; width: 100%; }
.morelink:hover, .morelink:active { background: var(--soft); }
.morelink .ico { color: var(--muted); }

/* ---------- Anmelden ---------- */
.authwrap { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.authcard { width: min(100%, 380px); display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.authform { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.invitehead { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: var(--soft); text-align: left; }
.invitehead div { display: flex; flex-direction: column; }
.invitehead strong { font-size: 18px; color: var(--ink); }

/* ---------- Kalender ---------- */
.calpage { max-width: none; height: 100%; padding-bottom: 20px; }
.calwrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; height: 100%; min-height: 560px; }
.calendar { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 14px; min-height: 0; }
.ideas { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: auto; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
.ideas h3 { font-size: 14px; }
.idealist { display: flex; flex-direction: column; gap: 4px; }
.idea { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 8px; background: var(--surface); text-align: left; font-weight: 550; font-size: 13px; cursor: grab; color: var(--ink); }
.idea .ico { color: var(--c); }
.fc { --fc-border-color: var(--line); --fc-today-bg-color: transparent; --fc-neutral-bg-color: var(--soft); --fc-page-bg-color: var(--surface); --fc-list-event-hover-bg-color: var(--soft); --fc-event-border-color: transparent; font-size: 13px; }
.fc .fc-toolbar-title { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.fc .fc-button { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); border-radius: 8px !important; font-weight: 550; text-transform: none; padding: 5px 11px; box-shadow: none !important; margin: 0 2px !important; font-size: 13px; }
.fc .fc-button:hover { background: var(--soft); color: var(--ink); }
.fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:not(:disabled):active { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.fc .fc-button:disabled { opacity: 0.45; }
.fc .fc-col-header-cell-cushion { font-weight: 600; color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: 0.04em; padding: 8px 4px; text-decoration: none; }
.fc .fc-daygrid-day-number { font-weight: 550; text-decoration: none; padding: 5px 7px; font-variant-numeric: tabular-nums; }
.fc .fc-day-today .fc-daygrid-day-number { background: var(--accent); color: #fff; border-radius: 999px; margin: 3px; padding: 2px 7px; }
.fc .fc-daygrid-event, .fc .fc-timegrid-event { border-radius: 5px; padding: 0 3px; box-shadow: none; }
.fc .fc-daygrid-dot-event .fc-daygrid-event-dot { display: none; }
.fc .fc-daygrid-dot-event { background: var(--c, var(--fc-event-bg-color)); color: #fff; }
.fc .fc-daygrid-dot-event:hover { background: color-mix(in srgb, var(--c, var(--fc-event-bg-color)) 85%, #000); }
.fc-entry { display: flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap; color: #fff; font-weight: 550; }
.fc-entry span { overflow: hidden; text-overflow: ellipsis; }
.fc-entry b { font-weight: 650; opacity: 0.9; }
.fc-entry > .ico { opacity: 0.9; }
.fc-list .fc-entry > .ico { color: var(--c, var(--muted)); }
.fc-entry .avatars { margin-left: auto; flex: none; padding-left: 2px; }
.fc-entry .avatar { box-shadow: 0 0 0 1.5px var(--c, #fff); font-size: 7px; }
.fc-entry .avatars .avatar + .avatar { margin-left: -5px; }
.fc-entry .avatars .more { color: inherit; font-size: 10px; margin-left: 2px; }
.fc-entry .rep { opacity: 0.8; flex: none; }
.fc-daygrid-event .fc-entry .rep { display: none; }
.fc-list .fc-entry { flex-wrap: wrap; }
.fc-list .fc-entry .fc-title { flex: 1 1 0; min-width: 0; }
.fc-with { flex-basis: 100%; padding-left: 17px; color: var(--muted); font-weight: 400; font-size: 12px; }
.fc-list .fc-entry { color: var(--ink); white-space: normal; }
.fc-list .fc-list-event-title { width: 100%; }
.fc .fc-list-event-dot { border-width: 5px; }
.fc .fc-list-day-cushion { background: var(--soft); }
.fc .status-erledigt { opacity: 0.5; }
.fc .fc-daygrid-week-number { background: transparent; color: var(--muted); font-size: 10px; }
.fc a { text-decoration: none; }
.fc .fc-highlight { background: var(--soft); }
.fc .fc-timegrid-now-indicator-line { border-color: var(--accent); }
.fc .fc-more-link { color: var(--muted); font-weight: 550; }

/* ---------- Karte ---------- */
.mappage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; height: 100%; }
.mapcol { position: relative; display: flex; flex-direction: column; min-height: 0; }
.mapbar { position: absolute; z-index: 500; top: 12px; left: 60px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.mapbar > * { pointer-events: auto; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.map { flex: 1; min-height: 0; background: var(--soft); }
:root[data-scheme="dark"] .leaflet-tile-pane { filter: brightness(0.62) invert(1) contrast(0.9) hue-rotate(200deg) saturate(0.35) brightness(0.9); }
.maplist { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; overflow: auto; border-left: 1px solid var(--line); background: var(--surface-2); }
.maplist h3 { margin-bottom: 6px; }
.maprow { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; }
.maprow .text { display: flex; flex-direction: column; min-width: 0; }
.maprow small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pinmini { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; flex: none; font-size: 14px; }
.pin { background: none; border: 0; }
.pinbody { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); color: #fff; }
.pinbody .emoji, .pinbody .ico { transform: rotate(45deg); font-size: 14px; }
.mappop { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font: 14px/1.4 var(--font); }
.mappop img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.mappop strong { font-size: 15px; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--ink); }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-container { font-family: var(--font); }
.leaflet-bar a { background: var(--surface); color: var(--ink); border-color: var(--line); }

#toast { position: fixed; z-index: 90; left: 50%; bottom: 28px; transform: translate(-50%, 8px); max-width: min(92vw, 480px); padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--on-ink); font-weight: 550; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity 160ms, transform 160ms; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ---------- Handy ---------- */
/* ---------- Ideen ---------- */
.navbadge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: auto; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; }
.tab .navbadge { position: absolute; top: 5px; left: calc(50% + 6px); margin: 0; min-width: 16px; height: 16px; font-size: 10px; box-shadow: 0 0 0 2px var(--surface); }
.chip.plan .badge { min-width: 16px; height: 16px; font-size: 10px; }
.chip.plan.on .badge { box-shadow: 0 0 0 1.5px var(--ink); }
.ideabox { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.idealine { display: flex; align-items: center; gap: 10px; }
.idealine > .ico { color: #e0a800; flex: none; }
.ideainput { flex: 1; min-width: 0; min-height: 44px; font-size: 16px; }
.ideabox .catpick { flex-wrap: nowrap; }
.ideabox .hint { margin: 0; }
.blockhead h2 { display: flex; align-items: center; gap: 8px; }
.blockhead h2 .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 650; }
.idealist { display: flex; flex-direction: column; gap: 6px; }
.ideaitem { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.ideaitem:hover { border-color: var(--line-2); }
.ideaitem.low { opacity: 0.55; }
.ideaico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--c) 15%, var(--surface)); color: var(--c); flex: none; }
.ideaitem .text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ideaitem .text strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ideaitem .text small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ideaside { display: flex; align-items: center; gap: 10px; flex: none; }
.ivotes { display: flex; gap: 6px; flex: none; }
.ivotes.compact .vote { min-height: 30px; padding: 3px 7px; }
.reacts { display: flex; gap: 4px; }
.react { position: relative; display: inline-flex; }
.react.none { opacity: 0.35; }
.react i { position: absolute; right: -4px; bottom: -3px; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--muted); }
.react.v2 i { color: var(--good); }
.react.v1 i { color: #d97706; }

@media (max-width: 860px) {
  .ideaitem { flex-wrap: wrap; row-gap: 10px; }
  .ideaitem:has(> .btn) .text, .ideaitem:has(> .ivotes:not(.compact)) .text { flex-basis: calc(100% - 50px); }
  .ideaitem > .btn { margin-left: 50px; }
  .ideaitem > .ivotes:not(.compact) { flex-basis: 100%; gap: 6px; }
  .ideaitem > .ivotes:not(.compact) .vote { flex: 1; justify-content: center; padding: 5px 6px; gap: 5px; white-space: nowrap; }
  .blockhead:has(h2 .count) { flex-direction: column; align-items: flex-start; gap: 2px; }
  .hide-s { display: none; }
}

@media (max-width: 860px) {
  #app { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  #side { display: none; }
  #main { grid-row: 1; }
  #tabs { display: flex; grid-row: 2; justify-content: space-around; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); }
  .tab { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; text-decoration: none; font-size: 11px; font-weight: 550; color: var(--muted); }
  .tab .ico { --s: 22px; }
  .tab.on { color: var(--ink); }
  .tab.on .ico { color: var(--accent); }
  #fab { display: grid; place-items: center; position: fixed; z-index: 40; right: 16px; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); width: 54px; height: 54px; border: 0; border-radius: 16px; background: var(--ink); color: var(--on-ink); box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.35); }
  #app.solo ~ #fab, body:has(#app.solo) #fab { display: none; }
  .hide-mobile { display: none !important; }
  .page { padding: 18px 16px 100px; gap: 14px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
  .shade { place-items: end center; padding: 0; }
  .sheet, .sheet.wide { width: 100%; max-height: 94dvh; border-radius: 16px 16px 0 0; transform: translateY(24px); }
  .editor, .plansheet { padding: 16px 16px 0; }
  .plansheet { padding-bottom: 26px; }
  .detailbody { padding: 16px 16px 26px; }
  .detailbody h2 { font-size: 22px; }
  .vlabel { display: none; }
  .daypanel { grid-template-columns: minmax(0, 1fr); }
  .daycard { padding: 14px; }
  .weekstrip { margin: 0 -16px; padding: 2px 16px 4px; }
  .weekgrid { grid-template-columns: repeat(var(--days), 54px); gap: 5px; }
  .discgrid { grid-template-columns: 1fr; }
  .postergrid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
  .tmdbsheet { grid-template-columns: 110px minmax(0, 1fr); padding: 16px 16px 24px; gap: 14px; }
  .strip { grid-auto-columns: 80%; }
  .twocol { grid-template-columns: 1fr; }
  .calwrap { grid-template-columns: 1fr; grid-template-rows: minmax(480px, 1fr) auto; }
  .calpage { height: auto; min-height: 100%; }
  .calendar { padding: 8px; min-height: 520px; }
  .fc .fc-toolbar-title { font-size: 17px; }
  .fc .fc-button { padding: 4px 9px; }
  .mappage { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 34%; }
  .maplist { border-left: 0; border-top: 1px solid var(--line); padding: 12px; }
  .mapbar { left: 54px; }
  #toast { bottom: calc(var(--tab-h) + 24px); }
}
