:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #6b7280;
  --line: #e5e9f0;
  --paper: #ffffff;
  --surface: #f4f6f9;
  --nav: #111a2d;
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --green: #16835d;
  --green-soft: #e7f7f0;
  --amber: #a85f05;
  --amber-soft: #fff3dc;
  --red: #b44242;
  --red-soft: #fff0f0;
  --shadow: 0 12px 32px rgba(20, 33, 61, 0.07);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body { margin: 0; color: var(--ink); background: var(--surface); font-size: 16px; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }

.app-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 30px 20px 22px; color: #d8dfeb; background: var(--nav); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px; color: white; font-weight: 760; font-size: 1.2rem; letter-spacing: -.02em; }
.brand-mark { width: 32px; height: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; transform: skew(-6deg); }
.brand-mark i { display: block; border-radius: 5px; background: #4f8cff; }
.brand-mark i:last-child { background: #f9b44b; }
.nav { display: grid; gap: 7px; margin-top: 48px; }
.nav-link { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 12px; color: #99a7bd; font-weight: 620; font-size: .94rem; }
.nav-link:hover, .nav-link.active { color: white; background: rgba(255,255,255,.08); }
.nav-icon { width: 20px; text-align: center; font-size: 1.2rem; }
.sidebar-foot { width: 100%; margin-top: auto; display: flex; align-items: center; gap: 11px; padding: 14px 10px 2px; border: 0; border-top: 1px solid rgba(255,255,255,.09); color: inherit; background: transparent; text-align: left; cursor: pointer; }
.sidebar-foot strong, .sidebar-foot span { display: block; }
.sidebar-foot strong { color: white; font-size: .9rem; }
.sidebar-foot span { margin-top: 3px; color: #8491a7; font-size: .76rem; }
.account-avatar { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; background: #2a3851; color: white; font-weight: 750; font-size: .82rem; }

.main { padding: 34px clamp(24px, 4vw, 64px) 60px; overflow: hidden; }
.topbar, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar h1 { margin: 2px 0 0; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.12; letter-spacing: -.04em; }
.eyebrow { margin: 0; color: var(--muted); font-size: .76rem; font-weight: 760; text-transform: uppercase; letter-spacing: .09em; }
.button { border: 0; border-radius: 12px; padding: 12px 18px; cursor: pointer; font-weight: 700; }
.button.primary { color: white; background: var(--blue); box-shadow: 0 7px 18px rgba(37,99,235,.23); }
.button.secondary { color: var(--ink); border: 1px solid var(--line); background: white; }
.button.ghost { color: var(--blue); background: var(--blue-soft); }
.button.full { width: 100%; }
.button:hover { transform: translateY(-1px); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.prototype-pill { padding: 6px 9px; border: 1px solid #ccd8f0; border-radius: 999px; color: #5370a3; background: #f5f8ff; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }

.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.summary-card { padding: 21px 22px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: var(--shadow); }
.summary-label, .summary-note { display: block; color: var(--muted); }
.summary-label { font-size: .86rem; font-weight: 650; }
.summary-card > strong { display: block; margin: 8px 0; color: var(--ink); font-size: 1.75rem; letter-spacing: -.04em; }
.summary-note { font-size: .82rem; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; }
.dot.green { background: #20a875; box-shadow: 0 0 0 4px #e4f8f0; }

.section-heading { margin: 38px 0 17px; }
.section-heading h2 { margin: 4px 0 0; font-size: 1.35rem; letter-spacing: -.025em; }
.text-link { color: var(--blue); font-weight: 700; font-size: .9rem; }
.screen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.screen-card { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.screen-visual { position: relative; min-height: 158px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 18px; border-radius: 12px; color: white; background: linear-gradient(135deg, #244695, #4d7ff3); }
.screen-visual::before { content: ""; position: absolute; inset: -50% -20% auto auto; width: 220px; height: 220px; border: 42px solid rgba(255,255,255,.12); border-radius: 50%; }
.screen-visual.amber { background: linear-gradient(135deg, #b75a22, #efb134); }
.screen-visual.violet { background: linear-gradient(135deg, #6337a1, #9b64dd); }
.screen-visual.dark { background: linear-gradient(135deg, #444c5d, #252c39); }
.screen-visual span, .screen-visual small { position: relative; z-index: 1; }
.screen-visual span { font-size: 1.16rem; font-weight: 780; }
.screen-visual small { margin-top: 4px; opacity: .78; }
.screen-card-body { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px 5px 11px; }
.screen-card h3 { margin: 0; font-size: 1.02rem; }
.screen-card p { margin: 5px 0 0; color: var(--muted); font-size: .84rem; }
.status { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; font-size: .76rem; font-weight: 750; }
.status.success { color: var(--green); background: var(--green-soft); }
.status.loading { color: var(--amber); background: var(--amber-soft); }
.status.offline { color: var(--red); background: var(--red-soft); }
.screen-meta { display: flex; justify-content: space-between; gap: 12px; padding: 9px 5px 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.screen-meta strong { color: #4b5563; text-align: right; }
.progress { height: 5px; margin: -2px 5px 9px; overflow: hidden; border-radius: 999px; background: #edf0f5; }
.progress i { display: block; height: 100%; border-radius: inherit; background: #e39620; }
.screen-card.muted { background: #fbfcfd; }

.page-lead { max-width: 720px; margin: 18px 0 28px; color: var(--muted); line-height: 1.65; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 20px; }
.search-field { width: min(420px, 55%); display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.search-field input { width: 100%; padding: 12px 0; border: 0; outline: 0; color: var(--ink); }
.segmented { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.segmented button { padding: 7px 11px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; }
.segmented button.active { color: var(--ink); background: var(--surface); font-weight: 700; }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.media-card, .group-card, .panel, .table-card, .notice { border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.media-card { overflow: hidden; }
.media-thumb { min-height: 156px; display: grid; place-content: center; gap: 26px; color: white; background: linear-gradient(135deg, #244695, #4d7ff3); }
.media-thumb.amber, .group-cover.amber { background: linear-gradient(135deg, #b75a22, #efb134); }
.media-thumb.violet { background: linear-gradient(135deg, #6337a1, #9b64dd); }
.media-thumb.rose { background: linear-gradient(135deg, #9f3756, #e87798); }
.media-thumb.green { background: linear-gradient(135deg, #16735e, #4fb293); }
.media-thumb > span { justify-self: center; font-size: 1.55rem; }
.media-thumb small { font-weight: 650; opacity: .8; }
.media-card-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; }
.media-card h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .93rem; }
.media-card p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; }
.icon-button { flex: 0 0 auto; border: 0; border-radius: 9px; padding: 7px 9px; color: #697386; background: transparent; cursor: pointer; font-size: 1rem; }
.icon-button:hover { background: var(--surface); }

.group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.group-card { padding: 13px; }
.group-cover { height: 126px; display: flex; align-items: flex-end; justify-content: space-between; padding: 17px; border-radius: 12px; color: white; background: linear-gradient(135deg, #244695, #4d7ff3); }
.group-cover > span { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.25); border-radius: 15px; background: rgba(255,255,255,.14); font-size: 1.5rem; font-weight: 800; }
.group-cover small { font-weight: 700; opacity: .8; }
.group-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 4px 11px; }
.group-main h2 { margin: 0; font-size: 1.12rem; }
.group-main p { margin: 5px 0 0; color: var(--muted); font-size: .83rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; padding: 3px 4px 5px; }
.chip { padding: 6px 9px; border-radius: 8px; color: #536075; background: #f1f4f8; font-size: .76rem; font-weight: 650; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .72fr); gap: 18px; margin-top: 28px; align-items: start; }
.panel { padding: 20px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.panel h2 { margin: 0; font-size: 1.05rem; }
.panel p { margin: 5px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.playlist { display: grid; gap: 9px; margin-top: 15px; }
.playlist-item { position: relative; display: grid; grid-template-columns: 22px 25px 46px minmax(140px, 1fr) auto 102px; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; transition: opacity .15s ease, border-color .15s ease, box-shadow .15s ease; }
.playlist-item.dragging { opacity: .45; }
.playlist-item.drop-before::before, .playlist-item.drop-after::after { content: ''; position: absolute; z-index: 2; left: 8px; right: 8px; height: 3px; border-radius: 99px; background: var(--blue); box-shadow: 0 0 0 2px white; }
.playlist-item.drop-before::before { top: -6px; }
.playlist-item.drop-after::after { bottom: -6px; }
.playlist-item.saving { opacity: .72; }
.drag { color: #8e98aa; cursor: grab; user-select: none; touch-action: none; font-size: 1.1rem; }
.drag:active { cursor: grabbing; }
.drag:focus-visible { border-radius: 5px; outline: 3px solid #cddcff; outline-offset: 2px; }
.order { color: var(--muted); font-size: .8rem; }
.mini-thumb { display: grid; place-items: center; width: 46px; height: 38px; border-radius: 8px; color: white; background: #3f6ed5; }
.mini-thumb.violet { background: #794aad; }
.mini-thumb.rose { background: #bc5374; }
.playlist-name strong, .playlist-name span { display: block; }
.playlist-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.playlist-name span { margin-top: 3px; color: var(--muted); font-size: .74rem; }
.duration { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.duration input { width: 52px; margin: 0 4px; padding: 7px 6px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.duration-static { color: var(--muted); font-size: .8rem; }
.playlist-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.playlist-actions .icon-button { width: 32px; height: 32px; padding: 0; }
.playlist-actions .icon-button:disabled { opacity: .28; cursor: default; background: transparent; }
.side-panel > p { margin-bottom: 18px; }
.member-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.member-row strong, .member-row small { display: block; }
.member-row strong { font-size: .85rem; }
.member-row small { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.device-symbol { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--blue); background: var(--blue-soft); }
.side-panel .full { margin-top: 14px; }

.table-card { margin-top: 28px; overflow: hidden; }
.table-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.table-toolbar strong { color: var(--ink); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); background: #fafbfc; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
td { font-size: .85rem; }
td strong, td small { display: block; }
td small { margin-top: 4px; color: var(--muted); font-size: .72rem; }
td select { padding: 7px 25px 7px 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; }
.status.neutral { color: #536075; background: #eef1f5; }
.notice { margin-top: 28px; padding: 20px 22px; border-left: 4px solid #f0a328; box-shadow: none; }
.notice p { margin: 6px 0 0; color: var(--muted); line-height: 1.55; }

.dialog-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(9, 16, 29, .64); backdrop-filter: blur(5px); }
.dialog { width: min(540px, 100%); max-height: calc(100vh - 36px); overflow: auto; padding: 24px; border-radius: 20px; background: white; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.dialog-head { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.dialog h2 { margin: 4px 0 0; font-size: 1.4rem; }
.dialog form { display: grid; gap: 15px; }
.dialog label:not(.dropzone):not(.radio-card):not(.selection-card), .login-card label { display: grid; gap: 7px; color: #4d586b; font-size: .82rem; font-weight: 650; }
.dialog input:not([type=radio]):not([type=checkbox]):not([type=file]), .dialog select, .login-card input { width: 100%; padding: 11px 12px; border: 1px solid #d9dee7; border-radius: 10px; color: var(--ink); background: white; outline: 0; }
.dialog input:focus, .dialog select:focus, .login-card input:focus { border-color: #7fa5fa; box-shadow: 0 0 0 3px #e7efff; }
.code-input { font-size: 1.18rem; letter-spacing: .12em; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 8px; }
.steps { display: grid; gap: 9px; margin: 0 0 21px; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .84rem; }
.steps li > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #7b8799; background: #edf0f4; font-weight: 750; }
.steps li.active { color: var(--ink); font-weight: 700; }
.steps li.active > span { color: white; background: var(--blue); }
.steps li.done > span { color: var(--green); background: var(--green-soft); }
.dropzone { position: relative; min-height: 190px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 24px; border: 2px dashed #cbd4e2; border-radius: 16px; text-align: center; cursor: pointer; background: #fafcff; }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone small { max-width: 360px; color: var(--muted); line-height: 1.45; }
.upload-selection { margin: 0; color: var(--ink); font-size: .86rem; font-weight: 650; overflow-wrap: anywhere; }
.media-error { display: block; max-width: 320px; margin-top: 6px; color: var(--red); line-height: 1.35; }
.drop-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--blue); background: var(--blue-soft); font-size: 1.35rem; }
fieldset { display: grid; gap: 8px; padding: 0; border: 0; }
legend { margin-bottom: 8px; color: #4d586b; font-size: .82rem; font-weight: 650; }
.radio-card { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.radio-card span, .radio-card strong, .radio-card small { display: block; }
.radio-card small { margin-top: 4px; color: var(--muted); }
.selection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #4d586b; font-size: .82rem; }
.selection-toolbar label { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 7px !important; cursor: pointer; white-space: nowrap; }
.selection-list { display: grid; gap: 8px; max-height: 330px; overflow: auto; padding-right: 3px; }
.selection-card { display: grid; grid-template-columns: auto 38px minmax(0, 1fr); align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; background: #fff; }
.selection-card.action-card { width: 100%; grid-template-columns: 38px minmax(0, 1fr); color: inherit; font: inherit; text-align: left; }
.selection-card:hover { border-color: #aac2f4; background: #f8fbff; }
.selection-card.selected { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 1px var(--blue); }
.selection-card.disabled { cursor: not-allowed; opacity: .55; background: #f6f7f9; }
.selection-card input { width: 17px; height: 17px; accent-color: var(--blue); }
.selection-card strong, .selection-card small { display: block; }
.selection-card strong { color: var(--ink); font-size: .84rem; }
.selection-card small { margin-top: 3px; color: var(--muted); font-size: .73rem; line-height: 1.35; }
.selection-symbol { display: grid; place-items: center; width: 38px; height: 34px; border-radius: 9px; color: #fff; font-size: .82rem; }
.selection-symbol.blue { background: #4268bd; }
.selection-symbol.amber { background: #c8792d; }
.selection-symbol.violet { background: #794aad; }
.selection-symbol.green { background: #25856f; }
.selection-symbol.dark { background: #3a4353; }
.form-note { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; transform: translateY(18px); padding: 12px 16px; border-radius: 11px; color: white; background: #17233a; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.visible { transform: translateY(0); opacity: 1; }

.focused-mode .sidebar { display: none; }
.focused-mode .app-shell { display: block; }
.focused-mode .main { min-height: 100vh; padding: 0; }
.tv-mode { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 28px; padding: 50px 24px; color: white; background: radial-gradient(circle at 50% 20%, #253b69, #0a1222 62%); text-align: center; }
.tv-brand, .login-brand { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 780; }
.tv-card { width: min(760px, 100%); padding: clamp(30px, 5vw, 58px); border: 1px solid rgba(255,255,255,.12); border-radius: 28px; background: rgba(255,255,255,.07); box-shadow: 0 28px 80px rgba(0,0,0,.25); }
.tv-card .eyebrow { color: #9eb7e8; }
.tv-card h1 { margin: 12px 0; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.045em; }
.tv-card > p:not(.eyebrow) { max-width: 570px; margin: 0 auto; color: #bac7dd; line-height: 1.6; }
.pairing-code { margin: 34px auto 24px; color: #ffce77; font-size: clamp(3rem, 9vw, 5.8rem); font-weight: 800; letter-spacing: .12em; }
.tv-wait { display: flex; align-items: center; justify-content: center; gap: 9px; color: #b6c4db; }
.tv-wait i { width: 9px; height: 9px; border-radius: 50%; background: #59d5a5; box-shadow: 0 0 0 6px rgba(89,213,165,.12); }
.tv-back { color: white; background: rgba(255,255,255,.12); }
.tv-footnote { color: #72829d; font-size: .75rem; }

.login-screen { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 25px; padding: 30px; background: #eff3f8; }
.login-brand { color: var(--ink); }
.login-card { width: min(410px, 100%); display: grid; gap: 17px; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 22px 70px rgba(20,33,61,.12); }
.login-card h1 { margin: 0 0 7px; font-size: 2rem; }
.activation-lead { margin: -3px 0 3px; color: var(--muted); line-height: 1.55; }
.form-error { margin: 0; padding: 11px 12px; border-radius: 10px; color: var(--red); background: var(--red-soft); font-size: .84rem; line-height: 1.45; }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }

@media (max-width: 1080px) {
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .app-shell { grid-template-columns: 78px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .brand span:last-child, .nav-link:not(.active)::after, .nav-link { font-size: 0; }
  .brand { justify-content: center; padding: 0; }
  .nav-link { justify-content: center; padding: 12px; }
  .nav-icon { font-size: 1.25rem; }
  .sidebar-foot > div:not(.account-avatar) { display: none; }
  .sidebar-foot { justify-content: center; padding-inline: 0; }
  .summary-grid { grid-template-columns: 1fr; }
  .playlist-item { grid-template-columns: 20px 24px 42px minmax(120px, 1fr) 96px; }
  .duration, .duration-static { grid-column: 4 / 5; }
  .playlist-actions { grid-column: 5 / 6; grid-row: 1 / span 2; }
}

@media (max-width: 650px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 20; top: auto; bottom: 0; width: 100%; height: auto; padding: 8px 10px max(8px, env(safe-area-inset-bottom)); }
  .brand, .sidebar-foot { display: none; }
  .nav { grid-template-columns: repeat(5, 1fr); gap: 2px; margin: 0; }
  .nav-link { display: grid; justify-items: center; gap: 2px; padding: 7px 2px; font-size: .65rem; }
  .nav-link.active { font-size: .65rem; }
  .main { padding: 22px 16px 92px; }
  .topbar { align-items: flex-start; }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; }
  .prototype-pill { display: none; }
  .button { padding: 10px 12px; font-size: .8rem; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .summary-card { padding: 16px; }
  .summary-card:last-child { grid-column: 1 / -1; }
  .screen-grid { grid-template-columns: 1fr; }
  .screen-visual { min-height: 132px; }
  .media-grid, .group-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; }
  .playlist-item { grid-template-columns: 18px 35px minmax(100px, 1fr) 92px; }
  .playlist-item .order { display: none; }
  .duration, .duration-static { grid-column: 3 / 4; }
  .playlist-actions { grid-column: 4 / 5; }
  .topbar h1 { max-width: 180px; }
  .topbar .button { font-size: .75rem; }
  .dialog { padding: 19px; }
  .selection-toolbar { align-items: flex-start; flex-direction: column; }
  .pairing-code { letter-spacing: .06em; }
}
