/* music.piogino.ch: sleeves on a light table, a yellow record label for what plays. */
@font-face { font-family: "Bricolage"; font-weight: 600 800; font-display: swap; src: url("/fonts/bricolage-grotesque.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff2") format("woff2"); }

/* --label: the yellow (a fill, with --label-ink on it); --accent: the same idea where it has to be read as text */
:root {
  --bg: #eef0f2; --surface: #ffffff; --ink: #15181d; --soft: #30353d; --muted: #5d646f; --rule: #d5d9de; --rule-strong: #15181d;
  --label: #ffd02e; --label-ink: #15181d; --accent: #7a5600; --accent-ink: #ffffff; --chip: #e3e6ea; --mark: #ffe98a; --bad: #b4232f; --good: #1f7a3a;
  --tint: 13%; --player: 0px;
  --display: "Bricolage", "Inter", system-ui, sans-serif; --serif: var(--display);
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --shadow: 0 10px 40px rgb(10 14 20 / 0.2);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101318; --surface: #1b1f26; --ink: #eef0f3; --soft: #cfd4db; --muted: #9aa2ae; --rule: #323843; --rule-strong: #cfd4db;
    --label: #ffd02e; --label-ink: #15181d; --accent: #ffd02e; --accent-ink: #15181d; --chip: #272d37; --mark: #6a5200; --bad: #ff7480; --good: #5fd08a;
    --tint: 22%; --shadow: 0 10px 40px rgb(0 0 0 / 0.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #101318; --surface: #1b1f26; --ink: #eef0f3; --soft: #cfd4db; --muted: #9aa2ae; --rule: #323843; --rule-strong: #cfd4db;
    --label: #ffd02e; --label-ink: #15181d; --accent: #ffd02e; --accent-ink: #15181d; --chip: #272d37; --mark: #6a5200; --bad: #ff7480; --good: #5fd08a;
    --tint: 22%; --shadow: 0 10px 40px rgb(0 0 0 / 0.6); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-bottom: var(--player); background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.link { border: 0; background: none; padding: 0; cursor: pointer; text-decoration: underline; color: inherit; font-size: inherit; }

/* ---------- the top ---------- */
.mast-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 12px; font-size: 0.8rem; color: var(--muted); }
.sites { display: flex; gap: 6px; }
.sites a { padding: 1px 9px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; font-weight: 500; line-height: 1.7; }
.sites a:hover { color: var(--ink); border-color: var(--muted); }
.mast-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; white-space: nowrap; }
.account { display: flex; align-items: center; gap: 10px; }
.me-button { border: 0; background: none; padding: 0; cursor: pointer; }
.theme-switch { border: 1px solid var(--rule); background: none; border-radius: 999px; padding: 2px 9px; font-size: 0.76rem; cursor: pointer; color: var(--muted); }
.mast-title { margin: 22px auto 18px; font: 800 clamp(2.5rem, 9vw, 4rem)/0.95 var(--display); letter-spacing: -0.04em; }
.mast-title a { text-decoration: none; }
.mast-title span { font-weight: 600; color: var(--muted); }

/* ---------- search, or a link ---------- */
.feed-wrap { padding-bottom: 60px; }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.add { display: flex; gap: 8px; }
.search { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); font-size: 1rem; scroll-margin-top: 10px; }
.search:focus, .field input:focus, .field textarea:focus, .field select:focus, .row input:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: transparent; }
.search-hint { margin: -4px 0 0; font-size: 0.85rem; color: var(--accent); font-weight: 500; }
#shareBtn.ready { box-shadow: 0 0 0 3px color-mix(in srgb, var(--label) 45%, transparent); }
.ask { display: grid; gap: 12px; grid-template-columns: 1fr 1fr auto; align-items: end; padding: 14px; border-radius: 12px; background: var(--surface); }
.ask p { grid-column: 1 / -1; margin: 0; font-size: 0.9rem; }
.ask .row { grid-column: 1 / -1; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kinds, .people { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kinds:empty, .people:empty { display: none; }
.chip { border: 1px solid transparent; border-radius: 999px; background: var(--chip); padding: 4px 12px; font-size: 0.84rem; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.my-app { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 0.84rem; color: var(--muted); white-space: nowrap; }
.my-app select { padding: 4px 6px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink); font-weight: 500; }
.count { margin: 10px 0 0; font-size: 0.82rem; color: var(--muted); }
.count:empty { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; background: var(--label); color: var(--label-ink); border-radius: 10px;
  padding: 9px 16px; font-size: 0.92rem; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: color-mix(in srgb, var(--label) 82%, #fff); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.small { padding: 6px 12px; font-size: 0.84rem; border-radius: 8px; }
.btn.bad { background: var(--bad); color: #fff; }
.badtext { color: var(--bad) !important; }

/* a person's name: in their color, outlined (as on the other piogino.ch sites) */
.person { --fg: var(--person-fg-light, var(--ink)); display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 999px; border: 1px solid currentColor;
  color: var(--fg); font-size: 0.8rem; font-weight: 600; line-height: 1.6; background: transparent; white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .person { --fg: var(--person-fg-dark, var(--ink)); } }
:root[data-theme="dark"] .person { --fg: var(--person-fg-dark, var(--ink)); }
button.person { cursor: pointer; padding: 3px 10px; }
button.person[aria-pressed="false"] { color: var(--muted); border-style: dashed; text-decoration: line-through; font-weight: 500; }
button.person.tick .box { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid currentColor; display: inline-grid; place-items: center; font-size: 9px; line-height: 1; }
button.person.tick[aria-pressed="true"] .box::after { content: "✓"; font-weight: 700; }

/* ---------- a recommendation ---------- */
.feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 16px; }
body.searching #feed { min-height: 100vh; }
.post { display: grid; grid-template-columns: 190px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 12px 22px; padding: 18px; border-radius: 14px; scroll-margin-top: 14px;
  background: color-mix(in srgb, var(--cover, var(--surface)) var(--tint), var(--surface)); content-visibility: auto; contain-intrinsic-size: auto 226px; }
.post.linked { box-shadow: 0 0 0 3px var(--label); }
.cover { position: relative; grid-row: 1 / 3; align-self: start; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--chip); }
button.cover { cursor: pointer; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.ph { position: absolute; inset: 0; background: radial-gradient(circle, var(--bg) 0 4%, var(--label) 4.5% 20%, var(--ink) 20.5% 46%, transparent 46.5%); }
.play { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--label); color: var(--label-ink); box-shadow: 0 2px 10px rgb(0 0 0 / 0.35); }
.play svg { width: 24px; height: 24px; fill: currentColor; }
.head { min-width: 0; }
.post h2 { margin: 0; font: 700 1.5rem/1.15 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; text-wrap: balance; }
.artist { margin: 3px 0 0; font-size: 1.05rem; font-weight: 500; }
.facts { margin: 3px 0 0; font-size: 0.85rem; color: var(--muted); }
.fix { display: grid; gap: 10px; }
.rest { grid-column: 2; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.takes { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.take { position: relative; width: 100%; }
.take.no-words { display: flex; align-items: center; gap: 8px; }
.take-text { margin-top: 4px; font-size: 1.02rem; line-height: 1.55; color: var(--soft); overflow-wrap: anywhere; }
.take-text :is(p, ul, ol, blockquote) { margin: 0 0 0.5em; }
.take-text > :last-child { margin-bottom: 0; }
.take-text mark { background: var(--mark); color: inherit; padding: 0 2px; border-radius: 2px; }
.take-text img.emote, .talk-text img.emote { display: inline-block; width: auto; height: 1.6em; vertical-align: -0.42em; margin: 0 1px; }
.take-edit { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.take:not(.no-words) > .take-edit { position: absolute; top: -2px; right: 0; }
.take-edit.wide, .inline-add { width: auto; height: auto; padding: 2px 0; border: 0; border-radius: 0; background: none; color: var(--accent); font-size: 0.88rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.take-edit svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.take-editor { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.take-editor textarea, .take-editor .live-editor { width: 100%; }
.take-editor textarea { padding: 9px 11px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); }
.take-editor .live-editor { --live-min-height: 4.5rem; font: 400 1rem/1.5 var(--sans); }
.inline-actions { align-self: flex-end; display: flex; gap: 8px; }
.draft-note { margin: 0; color: var(--muted); font-size: 0.82rem; }

/* where to listen */
.listen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.apps summary { cursor: pointer; font-size: 0.88rem; font-weight: 500; padding: 6px 0; }
.apps[open] { flex-basis: 100%; }
.apps-list { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.app { padding: 5px 11px; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 8px; font-size: 0.86rem; font-weight: 500; text-decoration: none; }
.app:hover { border-color: var(--ink); }
.app.search-only { border-style: dashed; font-weight: 400; color: var(--soft); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 0.82rem; color: var(--muted); }
.meta .tools { margin-left: auto; display: flex; gap: 10px; }
.tool { border: 0; background: none; padding: 4px 0; cursor: pointer; font-size: 0.82rem; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.tool:hover { color: var(--ink); } .tool.del:hover { color: var(--bad); }
.empty { margin: 48px 0; text-align: center; color: var(--muted); font-size: 1.05rem; }

/* ---------- the player ---------- */
.player { position: fixed; z-index: 50; left: 50%; bottom: 0; transform: translateX(-50%); width: min(620px, 100%); padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; background: var(--surface); box-shadow: 0 -4px 30px rgb(0 0 0 / 0.28); }
.player-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.player-head strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; }
.player-head select { max-width: 130px; padding: 4px 6px; border: 1px solid var(--rule); border-radius: 8px; background: var(--bg); font-size: 0.84rem; }
.player-frame iframe { display: block; width: 100%; height: 152px; border: 0; border-radius: 10px; }
.player-frame.list iframe { height: min(352px, 46vh); }
.player-frame.video iframe { height: auto; aspect-ratio: 16 / 9; max-height: 46vh; }

/* ---------- dialogs ---------- */
dialog { border: 0; border-radius: 10px; padding: 0; width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(10 12 15 / 0.55); }
.dialog-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.dialog-body h2, .panel-head h2 { margin: 0; font: 700 1.35rem/1.2 var(--serif); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.x { border: 0; background: none; font-size: 1.6rem; line-height: 1; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: var(--muted); }
.x:hover { background: var(--chip); color: var(--ink); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; font-weight: 600; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select, .row input:not([type="checkbox"]):not([type="color"]) { padding: 8px 10px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); font-weight: 400; font-size: 0.95rem; min-width: 0; }
.field textarea { resize: vertical; line-height: 1.5; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row > input { flex: 1 1 180px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { margin: 0; font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.msg { margin: 0; min-height: 1em; font-size: 0.85rem; color: var(--bad); }
.msg.ok { color: var(--good); }
.msg:empty { display: none; }
.check { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.counter { margin: -6px 0 0; font-size: 0.75rem; color: var(--muted); text-align: right; }
.counter.short { color: var(--bad); }
.counter.good { color: var(--good); }

dialog.panel { width: min(720px, calc(100vw - 24px)); height: min(820px, calc(100dvh - 24px)); }
dialog.panel[open] { display: flex; flex-direction: column; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 6px; }
.tabs { display: flex; gap: 4px; padding: 0 22px; border-bottom: 1px solid var(--rule); }
.tabs button { border: 0; background: none; padding: 8px 10px; cursor: pointer; font-weight: 600; font-size: 0.88rem; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.panel-body { flex: 1; overflow-y: auto; padding: 8px 22px 24px; }
.panel-body h3 { margin: 22px 0 6px; font: 700 1.05rem/1.2 var(--serif); }
.pill { font: 600 0.68rem var(--sans); padding: 1px 7px; border-radius: 999px; background: var(--chip); color: var(--muted); vertical-align: middle; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; background: var(--person); color: var(--person-ink); font-size: 0.7rem; font-weight: 700; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
input[type="color"] { width: 44px; height: 28px; border: 1px solid var(--rule); border-radius: 4px; background: none; padding: 2px; vertical-align: middle; }
.steps { padding-left: 1.2em; margin: 8px 0; }
.code { font: 600 0.95rem ui-monospace, monospace; letter-spacing: 0.08em; background: var(--chip); padding: 1px 6px; border-radius: 4px; user-select: all; }
.danger { margin-top: 24px; padding-top: 6px; border-top: 1px solid var(--rule); }
.danger h3 { color: var(--bad); }
.narrow { width: 5.5em; flex: none !important; }
.users { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; }
.users li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: 0.2s; max-width: calc(100vw - 32px);
  padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 0.9rem; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); color: #fff; }

/* ---------- footer, privacy ---------- */
.foot { padding: 16px 0 70px; font-size: 0.8rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.prose { max-width: 720px; padding-bottom: 40px; }
.prose h1 { font: 800 2.2rem/1.1 var(--display); letter-spacing: -0.03em; margin: 28px 0 6px; }
.prose h2 { font: 700 1.25rem/1.2 var(--display); margin: 26px 0 6px; }
.prose p, .prose li { color: var(--soft); }

/* @mentions in texts: the person's name in their color (as the name labels; app.js tints them) */
.mention { --person-fg: var(--person-fg-light, var(--accent)); color: var(--person-fg); font-weight: 600; white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mention { --person-fg: var(--person-fg-dark, var(--accent)); } }
:root[data-theme="dark"] .mention { --person-fg: var(--person-fg-dark, var(--accent)); }

/* sharing: a small icon at the end of the title */
.post h2 .share-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 6px; padding: 0; vertical-align: 0.05em; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.post h2 .share-icon:hover, .post h2 .share-icon:focus-visible { color: var(--ink); background: var(--chip); }
.post h2 .share-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* the discussion under a post */
.talk-toggle { padding: 2px 9px; border: 1px solid var(--rule); border-radius: 999px; background: none; color: var(--muted); font: 600 0.78rem var(--sans); cursor: pointer; }
.talk-toggle:hover, .talk-toggle[aria-expanded="true"] { color: var(--ink); border-color: var(--muted); }
.talk { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.talk-list { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; }
.talk-msg { padding-left: 10px; border-left: 3px solid var(--person, var(--rule)); }
.talk-head { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); }
.talk-del { font-size: 0.74rem; color: var(--muted); }
.talk-del:hover { color: var(--bad); }
.talk-text { font-size: 0.93rem; line-height: 1.5; }
.talk-text p { margin: 2px 0 0; }
.talk-text img.emote { display: inline-block; width: auto; height: 1.6em; vertical-align: -0.42em; }
.talk-empty { margin: 0; color: var(--muted); font-size: 0.85rem; }
.chat-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.chat-form textarea { flex: 1 1 240px; min-width: 0; padding: 7px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--bg); font: inherit; }
.chat-form .live-editor { flex: 1 1 240px; min-width: 0; --live-min-height: 2.6rem; font: 400 0.93rem/1.5 var(--sans); }
.chat-form .msg { flex-basis: 100%; margin: 0; }
.chat-form .msg:empty { display: none; }
.talk-toggle { display: inline-flex; align-items: center; gap: 5px; }
.talk-toggle svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

/* Telegram: which notices come (one setting for all three sites) */
.tg-notices { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.tg-notices fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 4px; }
.tg-notices legend { padding: 0; margin-bottom: 2px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tg-check { display: flex; align-items: flex-start; gap: 8px; font-size: 0.88rem; line-height: 1.35; cursor: pointer; }
.tg-check input { margin: 2px 0 0; flex: none; accent-color: var(--accent); }

/* feedback: the "F" at the bottom right (as on movies and books) */
.fb-button { position: fixed; z-index: 60; right: 16px; bottom: 16px; display: inline-flex; align-items: center; justify-content: center; height: 40px; min-width: 40px; padding: 0 14px; border: 0; border-radius: 20px; background: var(--ink); color: var(--bg); font: 600 0.95rem/1 var(--sans); cursor: pointer; box-shadow: var(--shadow); }
.fb-button .fb-word { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.2s; }
.fb-button:hover .fb-word, .fb-button:focus-visible .fb-word, .fb-button[aria-expanded="true"] .fb-word { max-width: 80px; }
.fb-panel { position: fixed; z-index: 61; right: 16px; bottom: 66px; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 90px); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 20px 60px rgb(0 0 0 / 0.3); }
.fb-head { display: flex; justify-content: space-between; align-items: center; }
.fb-close { border: 0; background: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.fb-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-kinds label { cursor: pointer; }
.fb-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.fb-kinds span { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--chip); font-size: 0.82rem; }
.fb-kinds input:checked + span { background: var(--ink); color: var(--bg); }
.fb-kinds input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fb-pick-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-hint { font-size: 0.78rem; color: var(--muted); }
.fb-picked { list-style: none; margin: 0; padding: 0; font-size: 0.8rem; display: flex; flex-direction: column; gap: 4px; }
.fb-picked:empty { display: none; }
.fb-picked li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; border-radius: 6px; background: var(--chip); }
.fb-bar { position: fixed; z-index: 62; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 0.88rem; box-shadow: var(--shadow); }
.fb-picking .fb-button { display: none; }
.fb-picking * { cursor: crosshair !important; }
.fb-hover { outline: 2px dashed var(--accent) !important; outline-offset: 2px; }
.fb-shown { outline: 3px solid #e11d48 !important; outline-offset: 3px; }
@media (max-width: 600px) { .fb-button { right: 12px; bottom: 12px; height: 36px; min-width: 36px; padding: 0 12px; } .fb-panel { right: 12px; bottom: 58px; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* feedback in the admin tab */
.feedback { list-style: none; margin: 0 0 8px; padding: 0; }
.feedback > li { padding: 12px; margin-bottom: 8px; border-radius: 10px; background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); }
.feedback > li.done { box-shadow: none; opacity: 0.7; }
.feedback > li.hint { background: none; box-shadow: none; padding: 4px 0; }
.fb-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.fb-meta span { color: var(--muted); font-size: 0.82rem; }
.fb-text { margin: 6px 0; white-space: pre-wrap; }
.fb-els { margin: 0 0 6px; padding-left: 18px; font-size: 0.82rem; color: var(--muted); }
.feedback .tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 0.85rem; }
.feedback-head h3 { margin-bottom: 0; }

.feedback-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* a notice's message: shown with a short glow when the page opens on it */
.talk-msg.arrived { animation: msg-arrived 2.4s ease-out; border-radius: 6px; }
@keyframes msg-arrived { 0%, 40% { background: color-mix(in srgb, var(--accent) 22%, transparent); } 100% { background: transparent; } }

/* linking Telegram: two ways side by side (this device, or the phone), then what happens */
.bot-link { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.tg-ways { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.tg-way { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; }
.tg-way-title { margin: 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tg-way p { margin: 0; }
.tg-way-phone { flex-direction: row; align-items: center; gap: 12px; }
.tg-way-phone > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tg-or { align-self: center; font-size: 0.78rem; font-style: italic; color: var(--muted); }
.bot-qr { flex: none; display: block; padding: 5px; background: #fff; border-radius: 8px; line-height: 0; }
.bot-qr img { width: 104px; height: auto; }
@media (max-width: 620px) { .tg-ways { grid-template-columns: 1fr; } .tg-or { justify-self: center; } }
.tg-way-phone code { align-self: flex-start; }

/* the "F" button stays above the player */
.fb-button { bottom: calc(16px + var(--player)); }

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .mast-title { margin: 18px auto 14px; }
  .search { font-size: 1rem; }
  .add .btn { padding: 9px 13px; }
  .add .search { padding: 12px; }
  .mast-tools { gap: 10px; }
  .rest { gap: 12px; }
  .meta { gap: 4px 12px; }
  .my-app { margin-left: 0; }
  .kinds { flex: 1 0 100%; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .kinds .chip { flex: none; }
  .post { grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto; gap: 14px; padding: 14px; }
  .cover { grid-row: auto; }
  .rest { grid-column: 1 / -1; }
  .post h2 { font-size: 1.22rem; }
  .artist { font-size: 0.98rem; }
  .head.fix { grid-column: 1 / -1; }
  .ask { grid-template-columns: 1fr; }
  .dialog-body { padding: 18px; }
  .panel-head, .tabs, .panel-body { padding-left: 16px; padding-right: 16px; }
}
/* fingers: about 44px to tap; fields of 16px (iPhones zoom in on smaller ones) */
@media (pointer: coarse) {
  input, select, textarea, .field input, .field textarea, .field select, .row input:not([type="checkbox"]):not([type="color"]), .my-app select, .player-head select { font-size: 16px; }
  .btn, .btn.small, .my-app select { min-height: 44px; }
  .chip, button.person.tick { min-height: 36px; }
  .app, .apps summary { padding-top: 10px; padding-bottom: 10px; }
  .take-edit.wide, .inline-add, .talk-toggle, .tool, .theme-switch, .link { min-height: 40px; }
  .sites a { padding: 6px 10px; }
  .take-edit:not(.wide), .post h2 .share-icon, .x { width: 40px; height: 40px; }
  .post h2 .share-icon { margin: -8px 0 -8px 2px; vertical-align: middle; }
}
