:root {
    --bg: #07090d; --panel: #141920; --text: #f1f5f9; --muted: #aab4c0; --line: #2c3440; --accent: #2563eb; --accent-text: #ffffff; --link: #7cb4ff; --danger: #ef4444;
    --chip: rgba(255, 255, 255, .05); --chip-line: rgba(255, 255, 255, .16); --glow: rgba(59, 130, 246, .38);
    --cols: 2; --row: 120px;
}
:root[data-theme="light"] { --bg: #eef2f7; --panel: #ffffff; --text: #0f172a; --muted: #475569; --line: #cbd5e1; --accent: #0369a1; --accent-text: #ffffff; --link: #0369a1; --danger: #b91c1c;
    --chip: #ffffff; --chip-line: #cbd5e1; --glow: rgba(3, 105, 161, .25); }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(900px 520px at 85% -12%, rgba(37, 99, 235, .14), transparent 70%) fixed, var(--bg); color: var(--text); font: 18px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--link); }
h1 { font-size: 1.6rem; margin: 0 0 .6rem; }
h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
main { max-width: 1200px; margin: 0 auto; padding: 0 16px 48px; }
.top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; max-width: 1200px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.5rem; letter-spacing: -.01em; color: var(--link); text-decoration: none; margin-right: auto; }
.brand .ico { width: 34px; height: 34px; }
.brand em { color: var(--text); font-style: normal; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.lang, .pill, .tab, .aplay, .aopen { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.lang .ico { width: 18px; height: 18px; }
.status { color: var(--muted); font-size: .9rem; }
button, select, input, textarea { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; min-height: 48px; }
input, select, textarea { width: 100%; }
input[type="checkbox"] { width: 24px; min-height: 24px; height: 24px; flex: none; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; }
button.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
button.quiet { background: none; border-color: transparent; color: var(--muted); }
button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
label { display: block; font-size: .95rem; color: var(--muted); }
label input, label select, label textarea { margin-top: 4px; color: var(--text); }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.check input { margin: 2px 0 0; }
.card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 16px auto; }
.card { max-width: 520px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 12px; align-items: flex-end; }
.row > label { flex: 1; }
.wrap { flex-wrap: wrap; }
.error { color: var(--danger); font-weight: 600; margin: 0; }
.notice { color: var(--link); }
.small { font-size: .9rem; color: var(--muted); }
.pwfield { display: flex; gap: 6px; }
.key, .codes { font: 1.25rem/1.6 ui-monospace, Menlo, Consolas, monospace; background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 14px; overflow-wrap: anywhere; white-space: pre-wrap; user-select: all; }
.devices { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.devices li { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.doc { max-width: 760px; }
.doc section { margin-bottom: 40px; }

.bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 18px; }
.tabs, .bar-right { display: flex; gap: 10px; flex-wrap: wrap; }
.tab { border-radius: 14px; padding: 10px 22px; background: var(--chip); border-color: var(--chip-line); }
.tab[aria-pressed="true"] { border-color: #3b82f6; background: rgba(37, 99, 235, .14); box-shadow: 0 0 0 1px #3b82f6, 0 0 18px var(--glow); }
.pill { border-radius: 999px; padding: 10px 18px; background: transparent; border-color: var(--chip-line); }
.pill { position: relative; }
.pill.primary { background: var(--accent); border-color: var(--accent); }
@media (max-width: 599px) {
    .pill { width: 48px; padding: 0; border-radius: 50%; }
    .pill .ico { width: 22px; height: 22px; }
    .pill .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .tab { padding: 10px 16px; }
}
@media (min-width: 600px) and (max-width: 1000px) { .pill { padding: 10px 14px; } .tab { padding: 10px 16px; } .tabs, .bar-right { gap: 8px; } }
.empty { color: var(--muted); }

/* The grid: 2 columns on a phone, 4 in the car's window (about 770 px), 6 when it is full screen. Order is the list order. */
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: var(--row); grid-auto-flow: dense; gap: 12px; }
@media (min-width: 700px) { :root { --cols: 4; --row: 130px; } }
@media (min-width: 1100px) { :root { --cols: 6; --row: 140px; } }
/* Tiles are always dark, whatever the page's theme, so their white text reads in sunlight; the colours below are their lightest point (contrast tested in privatedash-asettelu) */
.tile { position: relative; border-radius: 18px; padding: 14px; color: #fff; text-decoration: none; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0;
    border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 10px 28px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .07); }
.s2x1, .s2x2, .s4x2 { grid-column: span 2; }
.s2x2, .s4x2 { grid-row: span 2; }
@media (min-width: 700px) { .s4x2 { grid-column: span 4; } }
a.tile:active { filter: brightness(1.2); }
.tname { font-size: 1.25rem; font-weight: 700; overflow-wrap: anywhere; }
.thost { font-size: .85rem; opacity: .9; overflow-wrap: anywhere; }
.tilebody { min-height: 0; }
.tilebody.note { overflow: auto; height: 100%; justify-content: flex-start; }
.tilebody.note p { margin: .6rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-style: italic; color: #dfe5ec; }
.tilebody.note::after { content: ""; display: block; width: 72px; height: 2px; margin-top: 14px; border-radius: 2px; background: #3b82f6; }
.nhead { display: flex; align-items: center; gap: 8px; color: #9cc3ff; }
.nhead .tname { font-size: 1.1rem; font-weight: 600; }
.tilebody.link { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1px; }
.tmark { width: 38px; height: 38px; margin-bottom: 4px; border-radius: 11px; display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; line-height: 1; background: rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.t-link .tname { font-size: 1.1rem; font-weight: 600; }
.t-link .thost { opacity: .8; }
@media (min-width: 700px) { .tmark { width: 46px; height: 46px; font-size: 1.7rem; } }
.clock { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.clock .time { font-size: 2.6rem; font-weight: 300; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.s2x1 .clock .time { font-size: 3.4rem; }
.s2x2 .clock .time { font-size: clamp(4rem, 11vw, 6.4rem); }
.clock .date { margin-top: 6px; font-size: 1.05rem; color: #c3ccd6; text-transform: capitalize; }
.c-slate, .c-gray { background: linear-gradient(160deg, #1f2833, #10151c); }
.c-red { background: linear-gradient(160deg, #b91c1c, #4a0b0d); } .c-orange { background: linear-gradient(160deg, #b45309, #4a2204); }
.c-green { background: linear-gradient(160deg, #15803d, #06341a); } .c-teal { background: linear-gradient(160deg, #0f766e, #05302d); }
.c-blue { background: linear-gradient(160deg, #1d4ed8, #0c1f5c); } .c-violet { background: linear-gradient(160deg, #6d28d9, #2c0f5a); }
.c-pink { background: linear-gradient(160deg, #be185d, #4d0a26); }
:root[data-theme="light"] .c-slate { background: linear-gradient(160deg, #475569, #263040); } :root[data-theme="light"] .c-gray { background: linear-gradient(160deg, #374151, #1d2430); }
.tile.editing { outline: 2px dashed rgba(255, 255, 255, .6); outline-offset: -4px; cursor: grab; justify-content: space-between; }
.tile.editing .tilebody { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 0; }
.tile.editing.t-artist .tilebody { bottom: 14px; }
.tile.editing .thost { display: none; }
.tile.editing .tname { font-size: 1rem; }
.ctls { display: flex; flex-wrap: wrap; gap: 4px; position: relative; z-index: 1; margin-top: auto; }
.ctl { min-height: 36px; min-width: 36px; padding: 4px 8px; background: rgba(0, 0, 0, .45); color: #fff; border-color: rgba(255, 255, 255, .35); }
@media print { .top, .bar, button { display: none; } body { background: #fff; color: #000; } .key, .codes { border-color: #000; background: #fff; } }

/* Music: library, upload and player */
.library h1 { margin: 0; font-size: 1.4rem; }
.usage { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.usage progress, .uploads progress { flex: 1; min-width: 140px; height: 10px; accent-color: var(--accent); }
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; text-align: center; margin-bottom: 14px; }
.drop.over { border-color: var(--accent); background: var(--panel); }
.drop .hint { color: var(--muted); font-size: .9rem; margin: 10px 0 0; }
.file { display: none; }
.uploads { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.uploads li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .9rem; }
.uploads .un { flex: 1 1 100%; overflow-wrap: anywhere; font-weight: 600; }
.uploads .us { color: var(--muted); }
.tracks { list-style: none; padding: 0; margin: 0 0 120px; display: grid; gap: 6px; }
.track { display: grid; grid-template-columns: 48px 1fr auto auto; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; }
.track[aria-current="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cover { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--line); display: grid; place-items: center; color: var(--muted); font-size: 1.4rem; }
.tmain { display: grid; text-align: left; border: 0; background: none; padding: 4px 6px; min-width: 0; }
.tt { font-weight: 600; overflow-wrap: anywhere; }
.ts, .td { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.td { text-align: right; white-space: nowrap; }
.track .empty, li.empty { color: var(--muted); padding: 14px; }
.np { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 56px 1fr auto; grid-template-areas: "c t b" "s s s"; gap: 6px 12px; align-items: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); z-index: 5; }
.np.compact { position: static; border: 1px solid var(--line); border-radius: 14px; }
.np-cover { grid-area: c; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.np-text { grid-area: t; min-width: 0; }
.np-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-sub { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-sub.error { color: var(--danger); }
.np-row { grid-area: b; display: flex; gap: 6px; }
.np-btn { min-width: 52px; min-height: 52px; font-size: 1.3rem; padding: 4px 10px; }
.np-play { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.np-seekrow { grid-area: s; display: flex; align-items: center; gap: 10px; }
.np-seek { flex: 1; min-height: 36px; padding: 0; accent-color: var(--accent); background: none; border: 0; }
.np-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .85rem; min-width: 3ch; }
@media (min-width: 700px) { .np:not(.compact) { max-width: 900px; margin: 0 auto; left: 0; right: 0; border-radius: 14px 14px 0 0; border: 1px solid var(--line); } }
.np[hidden] { display: none; }

/* playlists and the player tile */
.lists { display: grid; gap: 8px; margin: 10px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; border-radius: 22px; padding: 6px 16px; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.chip.add { border-style: dashed; }
.tactions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.addto { max-width: 9rem; min-height: 40px; }
.tilebody.player { display: flex; flex-direction: column; gap: 6px; height: 100%; justify-content: space-between; }
.tilebody.player .np.compact { grid-template-columns: 1fr auto; grid-template-areas: "t b" "s s"; padding: 6px 8px; }
.tilebody.player .np-cover { display: none; }
.tilebody.player .np-btn { min-width: 48px; min-height: 48px; }
.tilebody.player .hint { margin: 0; font-size: .85rem; opacity: .85; }

/* wallpaper and photos */
.wall { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .5; pointer-events: none; }
.wall[hidden] { display: none; }
.photogrid { list-style: none; padding: 0; margin: 10px 0 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: grid; gap: 6px; justify-items: start; }
.photo.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.photo img, .blankph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; height: auto; }
.blankph { display: grid; place-items: center; background: var(--line); }

/* video: shown over the page while watching; otherwise the element is not in the page and only its sound plays */
.watch { position: fixed; inset: 0; z-index: 50; background: #000; color: #fff; display: grid; grid-template-rows: auto 1fr auto; }
.watch-bar { display: flex; gap: 10px; padding: 8px 12px; justify-content: space-between; }
.watch-stage { display: grid; place-items: center; min-height: 0; }
.watch video.watching { max-width: 100%; max-height: 100%; background: #000; }
.watch .np { position: static; }
.watch:fullscreen .watch-bar, .watch:fullscreen .np { opacity: .9; }

/* weather and electricity price tiles */
.tilebody.live { justify-content: flex-start; gap: 2px; overflow: hidden; }
.tilebody.live .wbig { font-size: clamp(1.4rem, 5vw, 2.2rem); font-weight: 700; line-height: 1.1; }
.tilebody.live .wsub { font-size: .95rem; opacity: .95; }
.tilebody.live .wsrc { margin-top: auto; font-size: .7rem; opacity: .75; }
.wnext { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; font-size: .9rem; }
.wnext li { display: flex; justify-content: space-between; gap: 10px; }
.wnext .wcheap { font-weight: 600; }

.np-shared { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.np-all, .np-adj { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; }
.np-all[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 700; }
.np-note { opacity: .75; font-size: .85em; }


/* The artist card and view */
/* On the start page the cover fills the whole tile; the words sit on a dark scrim at the bottom so they read in sunlight */
.tilebody.artist { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.tilebody.artist[hidden] { display: none; }
.tilebody.artist > .aart { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.tilebody.artist > .aart::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, .72) 52%, rgba(0, 0, 0, .9)); }
.tilebody.artist .ainfo { position: relative; gap: 6px; text-shadow: 0 1px 3px #000; }
.tilebody.artist .tname { font-size: 1.15rem; }
.tilebody.artist .aabout { color: #ece6e0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tilebody.artist .wsrc { font-size: .7rem; color: #d8d0c8; }
.tilebody.artist button { text-shadow: none; }
.s2x1 .tilebody.artist .wsrc { display: none; }
.aplaying { display: grid; gap: 1px; min-width: 0; }
.alabel { font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: #c9d1da; }
.asongnames { font-size: .9rem; color: #dfe5ec; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asongnames[hidden] { display: none; }
.tilebody.artist .alabel, .tilebody.artist .asongnames { display: none; } /* the cover-filled card keeps to the song playing; the wide one has room for more */
/* The wide card (4x2 in the car): words on the left, the cover on the right, as the tile measures itself */
.t-artist { container-type: inline-size; }
@container (min-width: 600px) {
    .tilebody.artist { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr); gap: 24px; }
    .tilebody.artist > .aart { position: relative; inset: auto; grid-column: 2; grid-row: 1; height: 100%; width: calc(2 * var(--row) - 16px); border-radius: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
    .tilebody.artist > .aart::after { display: none; }
    .tilebody.artist .ainfo { grid-column: 1; grid-row: 1; align-content: center; gap: 8px; padding-left: 8px; text-shadow: none; }
    .tilebody.artist .tname { font-size: 1.5rem; font-weight: 600; }
    .tilebody.artist .aabout { color: #b9c3ce; }
    .tilebody.artist .aplaying { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 10px; margin-top: 2px; }
    .tilebody.artist .anow { font-size: 1.1rem; font-weight: 600; }
    .tilebody.artist .anow:empty { display: none; }
    .tilebody.artist .alabel { display: block; }
    .tilebody.artist .asongnames:not([hidden]) { display: block; }
}
.aart { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #000; }
.aart img, .aart video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aart video { opacity: 0; transition: opacity .6s; }
.aart video.on { opacity: 1; }
.ainfo { display: grid; gap: 8px; min-width: 0; }
.ainfo .row { display: flex; flex-wrap: wrap; gap: 8px; }
.aabout { margin: 0; font-size: .9em; color: var(--muted); }
.anow { font-weight: 700; min-height: 1.2em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aopen { min-height: 44px; }
.artistview { position: fixed; inset: 0; z-index: 40; overflow-y: auto; background: #0b0709; color: #f6efe9; display: grid; grid-template-rows: auto 1fr auto; }
.artistview .np { position: sticky; bottom: 0; }
.ahead { position: relative; height: 34vh; overflow: hidden; } /* a set height: in the view's grid an overflow-hidden row would otherwise shrink to nothing */
.aphoto { display: block; width: 100%; height: 34vh; object-fit: cover; object-position: center 35%; }
.ahead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11, 7, 9, 0) 40%, #0b0709); }
.aclose { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 12px; z-index: 41; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: rgba(0, 0, 0, .7); color: #fff; font: inherit; }
.abody { display: grid; gap: 20px; padding: 0 16px 24px; grid-template-columns: 1fr; margin-top: -48px; position: relative; }
.aside { display: grid; gap: 10px; align-content: start; }
.aside .aart { max-width: 320px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.aside h2 { margin: 4px 0 0; font-size: 1.8em; color: #ffb648; }
.artistview .aabout { color: #d9cfc6; }
.asongs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.asong { width: 100%; min-height: 56px; display: grid; grid-template-columns: 2em 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 8px 12px; border-radius: 10px; border: 1px solid #3b2a2a; background: #170f11; color: inherit; font: inherit; }
.asong .an { grid-row: 1 / 3; opacity: .6; }
.asong .aw { font-size: .85em; color: #c4b6aa; }
.asong[aria-current="true"] { border-color: #ffb648; background: #2a1810; }
.asong[aria-current="true"] .at { color: #ffb648; font-weight: 700; }
.alyrics { min-height: 8em; }
.alyrics p { margin: .3em 0; font-size: 1.25em; line-height: 1.35; color: #b9aca1; transition: color .3s; }
.alyrics p.past { color: #6f6259; }
.alyrics p.now { color: #fff; font-weight: 700; font-size: 1.45em; }
.artistview .wsrc { color: #c4b6aa; }
@media (min-width: 760px) { .abody { grid-template-columns: minmax(240px, 340px) 1fr; } }
@media (prefers-reduced-motion: reduce) { .aart video { display: none; } }
.asave { min-height: 44px; }
.acar { margin: 0; font-size: .9em; color: #c4b6aa; }

/* Feedback box and the owner's feedback desk */
.lang, .fbopen { display: inline-flex; align-items: center; gap: 8px; }
.fbopen .ico { width: 20px; height: 20px; }
@media (max-width: 599px) {
    .fbopen { width: 48px; padding: 0; justify-content: center; position: relative; }
    .fbopen .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.feedback form .ico { width: 20px; height: 20px; }
.feedback button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
fieldset.chips { border: 0; padding: 0; margin: 0; }
fieldset.chips legend { color: var(--muted); font-size: .95rem; margin-bottom: 6px; padding: 0; }
.choice { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px 6px 12px; border: 1px solid var(--chip-line); border-radius: 24px; color: var(--text); cursor: pointer; }
.choice input { width: 20px; height: 20px; min-height: 20px; margin: 0; accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: rgba(37, 99, 235, .18); }
.fbitems { list-style: none; padding: 0; margin: 0; }
.fbitem { margin: 0 0 14px; }
.fbhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fbtext { white-space: pre-wrap; overflow-wrap: anywhere; }
.fbbadge { font-size: .85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--chip-line); color: var(--muted); }
.fbbadge.s-reviewing, .fbbadge.s-planned, .fbbadge.s-building { color: var(--link); border-color: var(--link); }
.fbbadge.s-done, .fbbadge.s-answered { color: #4ade80; border-color: #4ade80; }
:root[data-theme="light"] .fbbadge.s-done, :root[data-theme="light"] .fbbadge.s-answered { color: #15803d; border-color: #15803d; }
.fbsteps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0; counter-reset: fbstep; }
.fbsteps li { counter-increment: fbstep; font-size: .85rem; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); }
.fbsteps li::before { content: counter(fbstep) ". "; }
.fbsteps li.past { color: var(--text); border-color: var(--accent); }
.fbsteps li.past::before { content: "✓ "; color: var(--accent); }
.fbsteps li.now { color: var(--accent-text); background: var(--accent); border-color: var(--accent); font-weight: 600; }
.fbsteps li.declined { background: var(--danger); border-color: var(--danger); color: #fff; }
.fbsteps li.declined::before { content: ""; }
.fbhist { list-style: none; padding: 0 0 0 14px; margin: 8px 0; border-left: 2px solid var(--accent); }
.fbhist li { margin: 0 0 10px; }
.fbhist .fbtext { margin: 4px 0 0; }
.admin .chips a.chip { display: inline-flex; align-items: center; border: 1px solid var(--chip-line); color: var(--text); text-decoration: none; }
.admin .chips a.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.fblist { list-style: none; padding: 0; }
.fblist li a { display: block; padding: 14px 16px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.fblist li a:hover, .fblist li a:focus-visible { border-color: var(--link); }

/* The owner's account view */
.admin table.limits { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: .95rem; }
.admin table.limits th, .admin table.limits td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.admin table.limits th { color: var(--muted); font-weight: 500; }
.admin form.inline { display: inline; margin-left: 8px; }
.admin form.row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.admin form.row input { flex: 1 1 200px; }
.admin nav.chips { margin: 0 0 12px; }

.admin section.capacity { margin: 16px 0; }
.admin .meters { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.admin .meters > div { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.admin .meters progress { width: 100%; accent-color: var(--accent); }
.admin .warn { color: var(--danger); font-size: .9rem; }
