
/* Wide and short, as on the Xeneon Edge: the two volumes share a line and the audio
   switches follow their name, so the controls fit without scrolling. */
@container dcw (min-width: 640px) and (max-height: 439px) {
  :root[data-style="liquid"] .dc-panel--controls { gap: 12px; }
  :root[data-style="liquid"] .dc-ctl-vols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  :root[data-style="liquid"] .dc-ctl-audio { flex-direction: row; align-items: center; gap: 14px; }
  :root[data-style="liquid"] .dc-ctl-audio > .dc-chips { flex: 1 1 auto; min-width: 0; }
}

/* Volumes: the number between two bare glyphs. */
:root[data-style="liquid"] .dc-vol-lbl { font-size: 13px; font-weight: 600; color: var(--muted-text); }
:root[data-style="liquid"] .dc-vol-val { font-weight: 700; }
:root[data-style="liquid"] .dc-vol-btn { width: 36px; height: 36px; border-radius: 10px; }

:root[data-style="liquid"] .dc-chip { padding: 8px 12px; font-size: 13px; }
:root[data-style="liquid"] :is(.dc-sec-label, .dc-guild) { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted-text); }
:root[data-style="liquid"] .dc-guild { border-color: transparent; background: none; }
:root[data-style="liquid"] button.dc-guild:hover { background: var(--lg-key); color: var(--text); }
:root[data-style="liquid"] .dc-chan:not(.is-active) { border-color: transparent; background: none; }
:root[data-style="liquid"] .dc-chan:not(.is-active):hover:not(:disabled) { background: var(--lg-key); }
:root[data-style="liquid"] .dc-tab-badge { background: var(--color-danger); }
:root[data-style="liquid"] .dc-guild-all-btn { padding: 6px 8px; border: 0; border-radius: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted-text); }
:root[data-style="liquid"] .dc-guild-all-btn:hover { background: var(--lg-key); color: var(--text); }

/* How many: a number after the name, no plate. */
:root[data-style="liquid"] :is(.dc-guild-count, .dc-chan-count) { min-width: 0; height: auto; padding: 0; border-radius: 0; background: none; font-size: 13px; font-weight: 600; color: var(--muted-text); }

/* Who is in a channel, under its name: a small face and the name, as Discord's own
   channel list shows them. */
:root[data-style="liquid"] .dc-chan-members { gap: 4px 14px; padding: 2px 4px 6px 30px; }
:root[data-style="liquid"] .dc-chan-members .dc-member { gap: 7px; padding: 2px; font-size: 13px; font-weight: 500; color: var(--muted-text); }
:root[data-style="liquid"] .dc-chan-members .dc-member.is-speaking { color: var(--text); }
:root[data-style="liquid"] .dc-chan-members .dc-av { width: 24px; height: 24px; }
:root[data-style="liquid"] .dc-chan-members .dc-av-initial { font-size: 11px; }

/* The soundboard: each sound a soft key with its name, the preview a bare glyph on it;
   whether it played is said in colour. */
:root[data-style="liquid"] .dc-sound-hint { padding: 0; border: 0; background: none; font-size: 13px; font-weight: 500; color: var(--muted-text); }
:root[data-style="liquid"] .dc-sound-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
:root[data-style="liquid"] .dc-sound { min-height: 48px; border: 0; border-radius: 10px; background: var(--lg-key); }
:root[data-style="liquid"] .dc-sound:hover { background: var(--lg-key-hover); }
:root[data-style="liquid"] .dc-sound-play { padding-left: 12px; font-size: 14px; font-weight: 600; }
:root[data-style="liquid"] .dc-sound-play.ok { background: none; color: var(--color-success); }
:root[data-style="liquid"] .dc-sound-play.err { background: none; color: var(--color-danger); }
:root[data-style="liquid"] .dc-sound-prev { width: 40px; border: 0; background: none; color: var(--muted-text); }
:root[data-style="liquid"] .dc-sound-prev:hover { background: none; color: var(--text); }

/* The notification feed, as a list of messages: the face, who and when on a line,
   what they said under it; no plates. Reply is a word with its glyph, lit under the
   pointer, so a column of keys does not outshout the messages. */
:root[data-style="liquid"] .dc-notif-list { gap: 2px; }
:root[data-style="liquid"] .dc-notif { align-items: center; gap: 12px; padding: 8px 6px 8px 8px; border: 0; border-radius: 12px; background: none; }
:root[data-style="liquid"] .dc-notif.is-tappable:hover { background: var(--lg-key); }
:root[data-style="liquid"] .dc-notif-ico { width: 36px; height: 36px; }
:root[data-style="liquid"] .dc-notif-title { font-size: 14px; font-weight: 700; color: var(--text); }
:root[data-style="liquid"] .dc-notif-time { font-size: 12px; font-weight: 500; opacity: 1; color: var(--muted-text); }
:root[data-style="liquid"] .dc-notif-body { margin-top: 2px; font-size: 14px; font-weight: 400; color: color-mix(in srgb, var(--text) 86%, transparent); }
:root[data-style="liquid"] .dc-notif-reply { min-height: 36px; padding: 6px 10px; border: 0; border-radius: 10px; background: none; font-size: 13px; font-weight: 600; color: var(--muted-text); }
:root[data-style="liquid"] .dc-notif-reply:is(:hover, :focus-visible) { border: 0; background: var(--lg-key); color: var(--text); }
:root[data-style="liquid"] .dc-notif-reply.ok { color: var(--color-success); }
:root[data-style="liquid"] .dc-notif-reply.err { color: var(--color-danger); }

/* Nothing to show yet: one quiet line in the middle of the tab, and the way to change
   that as a soft key under it, not a line stuck in the corner over an empty well. */
:root[data-style="liquid"] .dc-notif-empty { margin: auto; align-items: center; gap: 12px; padding: 16px; opacity: 1; text-align: center; font-size: 14px; font-weight: 500; color: var(--muted-text); }
:root[data-style="liquid"] .dc-chan-empty { margin: auto; }
:root[data-style="liquid"] .dc-sound-grid:has(> .dc-sound-empty) { display: flex; align-items: center; justify-content: center; }
:root[data-style="liquid"] :is(.dc-sound-empty, .dc-chan-empty) { padding: 16px; opacity: 1; text-align: center; font-size: 14px; font-weight: 500; color: var(--muted-text); }
:root[data-style="liquid"] .dc-notif-cta { min-height: 40px; padding: 9px 16px; border: 0; border-radius: 10px; background: var(--lg-key); font-size: 14px; font-weight: 600; color: var(--text); }
:root[data-style="liquid"] .dc-notif-cta:hover { background: var(--lg-key-hover); }

/* Discord is not running: the glyph and the words in the text's colours, the one key
   to open it in Discord's colour, with no glow under it. */
:root[data-style="liquid"] .dc-launch-ico { color: var(--muted-text); }
:root[data-style="liquid"] .dc-launch-msg { font-size: 15px; font-weight: 700; }
:root[data-style="liquid"] .dc-launch-btn { min-height: 44px; padding: 10px 22px; border: 0; border-radius: 12px; box-shadow: none; font-size: 15px; font-weight: 600; }

/* ── The faders, as in the mixer: the level is the fill, no handle ─────────── */

:root[data-style="liquid"] :is(.obs-audio-slider, .dc-mctl-range) {
  -webkit-appearance: none;
  appearance: none;
  height: 30px;
  margin: 0;
  border-radius: 10px;
  background: linear-gradient(to right, var(--mix-fill) 0 var(--fill, 0%), var(--mix-track) var(--fill, 0%) 100%);
  box-shadow: inset 0 0 0 1px var(--mix-edge);
  touch-action: pan-y;
}
:root[data-style="liquid"] :is(.obs-audio-slider, .dc-mctl-range)::-webkit-slider-runnable-track { height: 30px; background: transparent; }
:root[data-style="liquid"] :is(.obs-audio-slider, .dc-mctl-range)::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 2px;
  height: 30px;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
:root[data-style="liquid"] :is(.obs-audio-slider, .dc-mctl-range)::-moz-range-thumb {
  width: 2px;
  height: 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
:root[data-style="liquid"] :is(.obs-audio-slider, .dc-mctl-range)::-moz-range-progress { background: transparent; }
:root[data-style="liquid"] :is(.obs-audio-slider, .dc-mctl-range):focus-visible { outline: 2px solid rgba(var(--accent-rgb), 0.8); outline-offset: 2px; }
:root[data-style="liquid"] :is(.obs-audio-row.is-muted .obs-audio-slider, .dc-mctl-row:has(.dc-mctl-mute.on) .dc-mctl-range) { filter: none; opacity: 0.45; }

/* ── Watching: YouTube and Twitch ──────────────────────────────────────────── */

:root[data-style="liquid"] :is(.yt-now-title, .tww-now-title) { font-size: 15px; font-weight: 700; }
:root[data-style="liquid"] :is(.yt-now-sub, .tww-now-sub) { font-size: 13px; font-weight: 500; color: var(--muted-text); }

/* Play and pause on the one filled key, in YouTube's red; the other keys are glyphs. */
:root[data-style="liquid"] .yt-playpause { width: 40px; height: 40px; border-radius: 30%; background: #e00000; color: #fff; }
:root[data-style="liquid"] .yt-playpause:hover:not(:disabled) { background: #f01a1a; color: #fff; }
:root[data-style="liquid"] :is(.yt-prev, .yt-next) { color: var(--text); }
:root[data-style="liquid"] :is(.yt-ib, .tww-ib).is-on { background: none; color: var(--text); }
:root[data-style="liquid"] :is(.yt-ib, .tww-ib).is-on:hover:not(:disabled) { background: var(--lg-key); }

/* The progress line: thin, no handle, the watched part in red. */
:root[data-style="liquid"] .yt-seek { height: 28px; touch-action: pan-y; }
:root[data-style="liquid"] .yt-seek::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(to right, #e00000 0 var(--fill, 0%), var(--mix-track) var(--fill, 0%) 100%);
}
:root[data-style="liquid"] .yt-seek:is(:hover, :active, :focus-visible):not(:disabled)::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; }
:root[data-style="liquid"] .yt-seek::-webkit-slider-thumb {
  width: 2px;
  height: 5px;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
:root[data-style="liquid"] .yt-seek::-moz-range-track { height: 5px; border-radius: 3px; background: var(--mix-track); }
:root[data-style="liquid"] .yt-seek::-moz-range-progress { height: 5px; border-radius: 3px; background: #e00000; }
:root[data-style="liquid"] .yt-seek::-moz-range-thumb { width: 2px; height: 5px; border: 0; border-radius: 0; background: transparent; }
:root[data-style="liquid"] .yt-time { font-size: 12px; font-weight: 600; }

/* A narrow tile, as a phone: bare glyphs can stand closer and give a little of their
   width, so the keys keep the one row the narrow layout asks for. */
@container ytw (max-width: 540px) {
  :root[data-style="liquid"] .yt-bar { column-gap: 2px; }
  :root[data-style="liquid"] .yt-bar .yt-ib:not(.yt-playpause) { flex: 1 0 28px; max-width: 34px; }
}

/* The library: the open tab names the tile, as on the tiles' own tabs. The service's
   name before it read as a second open tab; the player already says which one it is.
   A channel's game and title take a line each. */
:root[data-style="liquid"] :is(.yt-logo, .tww-logo) { display: none; }
:root[data-style="liquid"] :is(.yt-row-name, .tww-row-name) { font-weight: 600; }
:root[data-style="liquid"] .tww-row-viewers { color: var(--muted-text); font-weight: 600; }
:root[data-style="liquid"] .yt-row-play { background: var(--lg-key); color: var(--text); }
:root[data-style="liquid"] .tww-row-sub { display: flex; flex-direction: column; -webkit-line-clamp: none; }
:root[data-style="liquid"] .tww-row-sub > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A note in the list (nothing here yet, loading, how to search): quiet words in the
   middle of the list, not a dark plate; a failure keeps the words' own colour. */
:root[data-style="liquid"] :is(.yt-list-note, .tww-list-note) { justify-self: center; max-width: 40ch; padding: 20px 12px; border: 0; border-radius: 0; background: none; text-align: center; font-size: 14px; font-weight: 500; color: var(--muted-text); }
:root[data-style="liquid"] :is(.yt-list-err, .tww-list-err) { color: var(--text); }
:root[data-style="liquid"] :is(.yt-list, .tww-list):has(> :is(.yt-list-note, .tww-list-note):only-child) { align-content: center; }
:root[data-style="liquid"] .tww-note-btn { display: block; min-height: 40px; margin: 12px auto 0; padding: 9px 16px; border-radius: 10px; background: var(--lg-key); font-size: 14px; font-weight: 600; color: var(--text); }
:root[data-style="liquid"] .tww-note-btn:hover { background: var(--lg-key-hover); }

/* Twitch's chat beside the picture: a well like every card; its name and channel in
   the tile's sizes; the field at its foot holds the emotes and the send glyphs. */
:root[data-style="liquid"] .tww-card--chat { border-color: transparent; background: var(--lg-well); }
:root[data-style="liquid"] .tww-chat-title { font-size: 15px; font-weight: 700; }
:root[data-style="liquid"] .tww-chat-chan { font-size: 13px; font-weight: 500; color: var(--muted-text); }
:root[data-style="liquid"] .tww-chat-note { font-size: 14px; color: var(--muted-text); }
:root[data-style="liquid"] .tww-chat-log { gap: 6px; font-size: 14px; line-height: 1.45; }
:root[data-style="liquid"] .tww-chat-text { opacity: 1; }
:root[data-style="liquid"] .tww-chat-send .tww-chat-emo { align-self: stretch; width: 36px; height: auto; border-radius: 0; }

/* The two floating panels, the account menu and the emotes: the panel colour, thick
   enough for sentences, as the notifications are (liquid-chrome.css), but opaque:
   with no blur inside a tile (invariants: blur only through data-tile-glass) the
   chat lines behind read through even a 94% panel. A widget window loads no
   liquid-chrome.css, hence the fallbacks. The chosen account wears a check, not a
   radio dot. */
:root[data-style="liquid"] :is(.tww-acct-pop, .tww-emopick.is-open) {
  border-color: var(--lg-edge, rgba(255, 255, 255, 0.1));
  border-radius: 14px;
  background: rgb(var(--panel-rgb));
  box-shadow: var(--lg-rim, 0 0 #0000), var(--lg-lift, 0 12px 32px rgba(3, 4, 10, 0.32));
}
:root[data-style="liquid"] .tww-acct-state { font-size: 13px; font-weight: 500; color: var(--muted-text); }
:root[data-style="liquid"] .tww-acct-opt { min-height: 44px; border-radius: 10px; font-size: 14px; font-weight: 600; }
:root[data-style="liquid"] .tww-acct-opt:hover { background: var(--lg-key); }
:root[data-style="liquid"] .tww-acct-dot { width: 6px; height: 11px; margin: 0 4px 3px; border: solid currentColor; border-width: 0 2px 2px 0; border-radius: 0; transform: rotate(45deg); visibility: hidden; }
:root[data-style="liquid"] .tww-acct-opt.is-on .tww-acct-dot { border: solid currentColor; border-width: 0 2px 2px 0; visibility: visible; }
:root[data-style="liquid"] .tww-acct-login { min-height: 44px; border-radius: 10px; background: #9146ff; font-size: 14px; font-weight: 600; }
:root[data-style="liquid"] .tww-acct-login:hover { background: #a370ff; }
:root[data-style="liquid"] .tww-emopick-item:hover { background: var(--lg-key); }
:root[data-style="liquid"] .tww-emopick-note { padding: 8px 6px; opacity: 1; font-size: 14px; color: var(--muted-text); }

/* ── YouTube Live ─────────────────────────────────────────────────────────── */

/* The number first; the health is a word in its colour. */
:root[data-style="liquid"] .ytl-viewers-num { font-weight: 800; }
:root[data-style="liquid"] .ytl-stats { font-weight: 500; }
:root[data-style="liquid"] .ytl-health { gap: 0; margin-top: 4px; opacity: 1; font-size: 13px; font-weight: 600; color: var(--muted-text); }
:root[data-style="liquid"] .ytl-health-good { color: var(--color-success); }
:root[data-style="liquid"] .ytl-health-ok { color: var(--color-warn); }
:root[data-style="liquid"] .ytl-health-bad { color: var(--color-danger); }
:root[data-style="liquid"] .ytl-priv.is-on { background: var(--lg-thumb); color: var(--text); }
:root[data-style="liquid"] .ytl-msg-who { font-weight: 700; }

/* Wide: the count fills the column beside the chat as the tile's headline, and the
   keys sit at the bottom, on the line of the chat field. */
@container ytlw (min-width: 620px) and (max-height: 760px) {
  :root[data-style="liquid"] .ytl-cards { grid-template-rows: minmax(0, 1fr) auto; }
  :root[data-style="liquid"] .ytl-card--info { grid-row: 1; display: flex; flex-direction: column; justify-content: center; }
  :root[data-style="liquid"] .ytl-card--actions { grid-row: 2; }
  :root[data-style="liquid"] .ytl-info { gap: 6px; }
  :root[data-style="liquid"] .ytl-viewers-num { font-size: clamp(2.1rem, 15cqh, 4.6rem); }
}

/* ── Streamer.bot ─────────────────────────────────────────────────────────── */

/* The feed reads as a list of notifications, as Discord's above: the kind is a glyph
   in its colour on no square, the name leads, the amount is words rather than a tag
   and the kind a quiet word, so six events are not six colours of text. The glyph
   and the time sit on the line of the name, whatever follows it. */
:root[data-style="liquid"] .sbw-feed { gap: 2px; }
:root[data-style="liquid"] .sbw-evt { gap: 12px; padding: 8px 6px 8px 8px; border: 0; border-radius: 12px; background: none; }
:root[data-style="liquid"] .sbw-evt-ico { width: 28px; height: 20px; border-radius: 0; background: none; }
:root[data-style="liquid"] .sbw-evt-ico svg { width: 20px; height: 20px; }
:root[data-style="liquid"] .sbw-evt-main { gap: 3px; }
:root[data-style="liquid"] .sbw-evt-line { gap: 0 8px; line-height: 20px; }
:root[data-style="liquid"] .sbw-evt-user { font-size: 14px; font-weight: 700; }
:root[data-style="liquid"] .sbw-evt-type { font-size: 13px; font-weight: 500; color: var(--muted-text); }
:root[data-style="liquid"] .sbw-evt-amt { padding: 0; border-radius: 0; background: none; font-size: 13px; font-weight: 600; color: var(--text); }
:root[data-style="liquid"] .sbw-evt-text { font-size: 14px; color: color-mix(in srgb, var(--text) 86%, transparent); }
:root[data-style="liquid"] .sbw-evt-age { padding-top: 2px; font-size: 12px; font-weight: 500; color: var(--muted-text); }

/* A global is a name and its value, and the value is what a glance looks for: bright,
   on lines split by a hairline rather than a plate each. */
:root[data-style="liquid"] .sbw-globals { gap: 0; }
:root[data-style="liquid"] .sbw-global { min-height: 44px; padding: 10px 8px; border: 0; border-bottom: 1px solid var(--lg-sep); border-radius: 0; background: none; }
:root[data-style="liquid"] .sbw-global:last-child { border-bottom: 0; }
:root[data-style="liquid"] .sbw-global-name { font-size: 14px; font-weight: 500; color: var(--muted-text); }
:root[data-style="liquid"] .sbw-global-val { font-size: 15px; font-weight: 700; color: var(--text); }
:root[data-style="liquid"] .sbw-empty { padding: 16px; font-size: 14px; font-weight: 500; color: var(--muted-text); }
