@import url("https://fonts.googleapis.com/css?family=Inter:300,300i,400,400i,700,700i&display=swap");
@import url("https://fonts.googleapis.com/css?family=Inter+Tight:300,300i,400,400i,500,500i,700,700i&display=swap");

:root {
    --orange: #ea5b0c;
    --orange-dark: #c94700;
    --orange-soft: #fff0e7;
    --brand-rgb: 234,91,12;
    --brand-sidebar: #171717;
    --brand-canvas: #f6f5f2;
    --brand-font: Inter, "Odoo Unicode Support Noto", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --brand-heading-font: "Inter Tight", "Odoo Unicode Support Noto", Inter, ui-sans-serif, sans-serif;
    --surface-2: #faf9f7;
    --ink: #151515;
    --ink-2: #292a2c;
    --muted: #73757a;
    --line: #e6e4df;
    --surface: #ffffff;
    --canvas: var(--brand-canvas);
    --success: #198754;
    --warning: #b76b00;
    --danger: #c73232;
    --shadow: 0 20px 60px rgba(26, 23, 20, .10);
    --sidebar: 276px;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { min-height: 100%; font-size: 16px; }
body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: var(--brand-font);
    transition: color .25s ease, background .25s ease;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .metric-card__value {
    font-family: var(--brand-heading-font);
    font-weight: 500;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }

.button {
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 720;
    font-size: .91rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .nav-item:focus-visible { outline: 3px solid rgba(var(--brand-rgb),.25); outline-offset: 2px; }
.button--primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(var(--brand-rgb),.23); }
.button--primary:hover { background: var(--orange-dark); }
.button--secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.button--secondary:hover { border-color: #bab7b0; background: #faf9f7; }
.button--dark { background: var(--ink); color: #fff; }
.button--ghost { background: transparent; color: var(--ink); border-color: transparent; }
.button--danger { background: #fff1f1; color: var(--danger); border-color: #ffd6d6; }
.button--small { min-height: 38px; padding: 0 13px; font-size: .84rem; border-radius: 8px; }
.button--wide { width: 100%; }
.button[disabled] { cursor: not-allowed; opacity: .55; transform: none; }
button > svg { width: 17px; height: 17px; flex: 0 0 auto; }

.field { display: grid; gap: 8px; }
.field > span:first-child { color: #494a4d; font-size: .84rem; font-weight: 680; }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d9d7d1;
    border-radius: 9px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 96px; padding-top: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(var(--brand-rgb),.10); }
.field--full { grid-column: 1 / -1; }
.field-hint { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.password-input { position: relative; display: block; }
.password-input input { padding-right: 60px; }
.password-input button { position: absolute; top: 0; right: 5px; height: 48px; border: 0; background: transparent; color: var(--orange-dark); font-weight: 700; font-size: .8rem; cursor: pointer; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .17em; font-size: .72rem; line-height: 1.3; font-weight: 800; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.eyebrow--orange { color: var(--orange); }
.alert { padding: 13px 15px; margin: 18px 0; border: 1px solid; border-radius: 9px; font-size: .87rem; line-height: 1.5; }
.alert ul { margin: 7px 0 0; padding-left: 19px; }
.alert--error { color: #8d2525; background: #fff1f1; border-color: #f3caca; }
.alert--success { color: #125f3b; background: #eefaf4; border-color: #c8e9d8; }

/* Authentication */
.auth-page { background: #fff; }
.auth-shell { min-height: 100svh; display: grid; grid-template-columns: minmax(440px, 1.1fr) minmax(420px, .9fr); }
.auth-visual {
    min-height: 100svh;
    padding: clamp(28px, 4vw, 62px);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #fff;
    background-color: #34312f;
    background-image: radial-gradient(circle at 14% 18%, rgba(var(--brand-rgb),.58), transparent 32%), radial-gradient(circle at 82% 76%, rgba(var(--brand-rgb),.22), transparent 38%), linear-gradient(135deg,#282523 0%,#51463f 52%,#171717 100%);
    background-position: center;
    background-size: cover;
}
.auth-visual::after { content: ""; position: absolute; inset: auto -10vw -26vh auto; width: 52vw; height: 52vw; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.auth-visual__overlay { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(11,11,11,.88) 0%, rgba(16,15,14,.52) 50%, rgba(20,18,16,.25) 100%); }
.auth-visual__top, .auth-visual__copy, .auth-visual__footer, .auth-visual__brand { position: relative; z-index: 1; }
.auth-visual__top { display: flex; align-items: center; gap: 15px; font-size: .7rem; letter-spacing: .2em; font-weight: 800; }
.auth-visual__line { width: 58px; height: 1px; background: rgba(255,255,255,.7); }
.auth-visual__copy { max-width: 690px; margin: auto 0 clamp(40px, 7vw, 92px); }
.auth-visual__copy .eyebrow { color: #ff8a49; }
.auth-visual__copy h1 { margin: 18px 0 18px; font-weight: 500; font-size: clamp(2.65rem, 4vw, 4.65rem); letter-spacing: -.045em; line-height: 1; }
.auth-visual__copy p { max-width: 480px; margin: 0; color: rgba(255,255,255,.75); font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.6; }
.auth-visual__footer { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.75); font-size: .78rem; letter-spacing: .04em; }
.auth-visual__brand { width: 200px; filter: brightness(0) invert(1); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #69db9d; box-shadow: 0 0 0 5px rgba(105,219,157,.14); }
.auth-panel { min-height: 100svh; padding: 32px clamp(28px, 5vw, 88px) 52px; display: flex; flex-direction: column; justify-content: center; position: relative; background: #fff; }
.auth-panel__inner { width: min(100%, 460px); margin: auto; }
.auth-logo { width: 195px; height: auto; margin-bottom: clamp(30px, 5vh, 52px); }
.auth-heading h2 { margin: 12px 0 10px; font-size: clamp(2rem, 3vw, 2.55rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 500; }
.auth-heading p { margin: 0; color: var(--muted); line-height: 1.65; font-size: .96rem; }
.auth-form { display: grid; gap: 18px; margin-top: 28px; }
.auth-form .button { margin-top: 4px; }
.auth-support { margin: 28px 0 0; text-align: center; color: var(--muted); font-size: .8rem; }
.auth-credit { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #999; font-size: .73rem; }
.auth-credit a { color: #666; text-decoration: none; font-weight: 700; }
.install-panel { justify-content: flex-start; overflow-y: auto; }
.install-panel .auth-panel__inner { margin: 0 auto; }
.install-panel .auth-logo { margin-bottom: 30px; }
.install-form { display: grid; gap: 18px; margin-top: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-section { margin: 7px 0 -5px; display: flex; align-items: center; gap: 12px; color: var(--orange); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.form-section::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.success-card { text-align: center; padding: 40px 0; }
.success-card__icon { width: 60px; height: 60px; margin: 0 auto 22px; display: grid; place-items: center; color: #fff; background: var(--success); border-radius: 50%; font-size: 1.5rem; }
.success-card h2 { font-size: 2rem; margin: 0 0 10px; }
.success-card p { color: var(--muted); line-height: 1.6; margin: 0 0 28px; }

/* Admin shell */
.app-shell { min-height: 100svh; display: block; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar); padding: 27px 18px 20px; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; color: #fff; background: var(--brand-sidebar); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 10px; }
.sidebar__brand { height: 62px; padding: 0 11px; display: flex; align-items: center; }
.sidebar__brand img { width: 178px; filter: brightness(0) invert(1); }
.sidebar__context { margin: 18px 8px 22px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: rgba(255,255,255,.04); }
.sidebar__context small { display: block; margin-bottom: 5px; color: #858585; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.sidebar__context strong { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .87rem; font-weight: 650; }
.nav-label { margin: 8px 13px 9px; color: #747474; font-size: .66rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 800; }
.nav-label--connect { margin-top: 24px; }
.nav { display: grid; gap: 4px; }
.nav-item { width: 100%; min-height: 44px; padding: 0 13px; border: 0; border-radius: 8px; display: flex; align-items: center; gap: 12px; color: #b9b9b9; background: transparent; text-align: left; font-weight: 610; font-size: .86rem; cursor: pointer; text-decoration: none; transition: color .16s ease, background .16s ease; }
.nav-item svg { width: 19px; height: 19px; stroke-width: 1.8; flex: 0 0 auto; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.is-active { color: #fff; background: var(--orange); }
.nav-item__count { min-width: 24px; height: 22px; margin-left: auto; padding: 0 7px; display: grid; place-items: center; color: #ddd; background: rgba(255,255,255,.08); border-radius: 20px; font-size: .67rem; }
.nav-item.is-active .nav-item__count { color: #fff; background: rgba(0,0,0,.18); }
.sidebar__footer { margin-top: auto; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.09); }
.user-mini { display: flex; align-items: center; gap: 11px; padding: 8px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #3b3b3b; font-size: .78rem; font-weight: 800; }
.user-mini__text { min-width: 0; }
.user-mini__text strong, .user-mini__text span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.user-mini__text strong { font-size: .8rem; }
.user-mini__text span { margin-top: 3px; color: #777; font-size: .68rem; }
.sidebar__signout { margin-left: auto; width: 34px; height: 34px; border: 0; display: grid; place-items: center; color: #858585; background: transparent; border-radius: 7px; cursor: pointer; }
.sidebar__signout:hover { color: #fff; background: rgba(255,255,255,.08); }
.sidebar__signout svg { width: 17px; }
.main-shell { width: calc(100% - var(--sidebar)); min-width: 0; margin-left: var(--sidebar); }
.topbar { height: 82px; padding: 0 clamp(22px, 3.4vw, 52px); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; background: rgba(246,245,242,.91); border-bottom: 1px solid rgba(216,213,207,.8); backdrop-filter: blur(16px); }
.topbar__left { display: flex; align-items: center; gap: 15px; }
.topbar h1 { margin: 0; font-size: 1.22rem; letter-spacing: -.02em; }
.topbar__sub { margin-top: 4px; color: var(--muted); font-size: .75rem; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.icon-button { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 9px; display: grid; place-items: center; background: #fff; color: var(--ink); cursor: pointer; }
.icon-button svg { width: 19px; height: 19px; }
.mobile-menu { display: none; }
.content { padding: 30px clamp(22px, 3.4vw, 52px) 54px; }
.page-view { display: none; animation: pageIn .24s ease; }
.page-view.is-active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.section-heading { margin: 0 0 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 0; font-size: 1.22rem; letter-spacing: -.02em; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: .82rem; }
.section-heading__actions { display: flex; gap: 9px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.metric-card { min-height: 142px; padding: 20px; position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.metric-card--accent { color: #fff; background: var(--orange); border-color: var(--orange); }
.metric-card--accent::after { content: ""; position: absolute; width: 130px; height: 130px; right: -48px; bottom: -62px; border: 18px solid rgba(255,255,255,.12); border-radius: 50%; }
.metric-card__label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .75rem; font-weight: 650; }
.metric-card--accent .metric-card__label { color: rgba(255,255,255,.75); }
.metric-card__label svg { width: 18px; height: 18px; }
.metric-card__value { margin-top: 20px; display: flex; align-items: baseline; gap: 8px; font-size: 2rem; font-weight: 700; letter-spacing: -.045em; }
.metric-card__value small { color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: 0; }
.metric-card--accent .metric-card__value small { color: rgba(255,255,255,.76); }
.metric-card__foot { margin-top: 7px; color: var(--muted); font-size: .72rem; }
.metric-card--accent .metric-card__foot { color: rgba(255,255,255,.74); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 18px; }
.dashboard-grid > *, .panel { min-width: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 5px 18px rgba(35,31,27,.025); }
.panel__header { min-height: 67px; padding: 0 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel__header h3 { margin: 0; font-size: .94rem; }
.panel__header p { margin: 4px 0 0; color: var(--muted); font-size: .72rem; }
.panel__body { padding: 20px; }
.network-list { display: grid; gap: 10px; }
.screen-row { min-height: 72px; padding: 12px 13px; display: grid; grid-template-columns: 46px minmax(0,1fr) auto auto; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s ease, transform .15s ease; }
.screen-row:hover { transform: translateY(-1px); border-color: #ccc8c0; }
.screen-row__preview { width: 46px; height: 29px; overflow: hidden; border-radius: 6px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #2a2927, #5d3c29 60%, var(--orange)); }
.screen-row__preview svg { width: 19px; }
.screen-row__preview video, .screen-row__preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.screen-row__text { min-width: 0; }
.screen-row__text strong, .screen-row__text span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.screen-row__text strong { font-size: .83rem; }
.screen-row__text span { margin-top: 4px; color: var(--muted); font-size: .7rem; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 30px; font-size: .68rem; font-weight: 750; white-space: nowrap; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill--online, .status-pill--active, .status-pill--ready { color: #16734a; background: #edf9f3; }
.status-pill--offline, .status-pill--draft { color: #777; background: #f1f1ef; }
.status-pill--pending, .status-pill--scheduled { color: #a35e00; background: #fff4df; }
.status-pill--paused, .status-pill--error { color: #a62d2d; background: #fff0f0; }
.quality-badge { min-width: 46px; padding: 5px 7px; color: var(--orange-dark); background: var(--orange-soft); border-radius: 6px; text-align: center; font-size: .66rem; font-weight: 830; }

.activity-list { display: grid; gap: 0; }
.activity-item { min-width: 0; padding: 14px 0; display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 11px; border-bottom: 1px solid var(--line); }
.activity-item > div:last-child { min-width: 0; }
.activity-item:first-child { padding-top: 0; }
.activity-item:last-child { padding-bottom: 0; border-bottom: 0; }
.activity-item__icon { width: 35px; height: 35px; display: grid; place-items: center; color: var(--orange); background: var(--orange-soft); border-radius: 8px; }
.activity-item__icon svg { width: 16px; }
.activity-item strong { display: -webkit-box; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .77rem; line-height: 1.4; }
.activity-item span { display: block; overflow-wrap: anywhere; margin-top: 3px; color: var(--muted); font-size: .68rem; line-height: 1.4; }

.toolbar { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toolbar__filters { display: flex; align-items: center; gap: 9px; }
.search-box { width: min(320px, 40vw); height: 42px; position: relative; }
.search-box svg { width: 17px; height: 17px; position: absolute; top: 12px; left: 13px; color: #949494; }
.search-box input { width: 100%; height: 100%; padding: 0 14px 0 40px; border: 1px solid var(--line); border-radius: 9px; background: #fff; outline: none; }
.search-box input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),.10); }
.segmented { display: inline-flex; padding: 3px; background: #eceae6; border-radius: 9px; }
.segmented button { height: 34px; padding: 0 11px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: .75rem; font-weight: 700; cursor: pointer; }
.segmented button.is-active { color: var(--ink); background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.media-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: transform .18s ease, box-shadow .18s ease; }
.media-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(26,23,20,.08); }
.media-card__visual { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: #242321; }
.media-card__visual video, .media-card__visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.media-card__visual--placeholder { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,#252525,#5d4738); }
.media-card__visual--placeholder svg { width: 34px; height: 34px; opacity: .75; }
.media-card__quality { position: absolute; top: 9px; left: 9px; padding: 5px 7px; color: #fff; background: rgba(0,0,0,.72); border-radius: 5px; backdrop-filter: blur(7px); font-size: .62rem; font-weight: 830; }
.media-card__duration { position: absolute; right: 9px; bottom: 9px; padding: 4px 6px; color: #fff; background: rgba(0,0,0,.72); border-radius: 4px; font-size: .62rem; }
.media-card__body { padding: 14px; }
.media-card__body strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .82rem; }
.media-card__meta { margin-top: 7px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .67rem; }
.empty-state { min-height: 280px; padding: 40px 24px; display: grid; place-items: center; text-align: center; border: 1px dashed #cec9c0; border-radius: 13px; background: rgba(255,255,255,.5); }
.empty-state__inner { max-width: 390px; }
.empty-state__icon { width: 58px; height: 58px; margin: 0 auto 18px; display: grid; place-items: center; color: var(--orange); background: var(--orange-soft); border-radius: 15px; }
.empty-state__icon svg { width: 25px; }
.empty-state h3 { margin: 0 0 8px; font-size: 1rem; }
.empty-state p { margin: 0 0 20px; color: var(--muted); font-size: .8rem; line-height: 1.55; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 16px; color: var(--muted); background: #faf9f7; border-bottom: 1px solid var(--line); text-align: left; text-transform: uppercase; letter-spacing: .09em; font-size: .62rem; }
.data-table td { padding: 15px 16px; border-bottom: 1px solid var(--line); font-size: .79rem; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fdfcfb; }
.table-title { display: flex; align-items: center; gap: 11px; }
.table-icon { width: 35px; height: 35px; display: grid; place-items: center; color: var(--orange); background: var(--orange-soft); border-radius: 8px; }
.table-icon svg { width: 17px; }
.table-title strong { display: block; font-size: .8rem; }
.table-title span { display: block; margin-top: 3px; color: var(--muted); font-size: .66rem; }
.table-actions { display: flex; justify-content: flex-end; gap: 5px; }
.table-action { width: 33px; height: 33px; border: 1px solid var(--line); border-radius: 7px; display: grid; place-items: center; color: #626262; background: #fff; cursor: pointer; }
.table-action svg { width: 15px; }

.playlist-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.playlist-card { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.playlist-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.playlist-card__icon { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 9px; }
.playlist-card__icon svg { width: 19px; }
.playlist-card h3 { margin: 16px 0 5px; font-size: .93rem; }
.playlist-card p { min-height: 36px; margin: 0; color: var(--muted); font-size: .73rem; line-height: 1.5; }
.playlist-card__stats { margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; }

.store-layout { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.55fr); gap: 18px; }
.store-list { display: grid; gap: 8px; }
.store-item { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; gap: 11px; text-align: left; background: #fff; cursor: pointer; }
.store-item.is-active { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(var(--brand-rgb),.10); }
.store-item__number { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 8px; color: var(--orange); background: var(--orange-soft); font-weight: 800; font-size: .72rem; }
.store-item strong { display: block; font-size: .78rem; }
.store-item span { display: block; margin-top: 3px; color: var(--muted); font-size: .65rem; }
.store-item .status-dot { margin-left: auto; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #a6a6a6; }
.status-dot--online { background: var(--success); box-shadow: 0 0 0 4px rgba(25,135,84,.10); }

.pair-card { min-height: 360px; padding: 34px; display: grid; place-items: center; overflow: hidden; position: relative; color: #fff; background: var(--brand-sidebar); border-radius: 13px; }
.pair-card::before { content: ""; position: absolute; width: 320px; height: 320px; left: -130px; bottom: -190px; border: 55px solid rgba(var(--brand-rgb),.35); border-radius: 50%; }
.pair-card__inner { width: min(100%, 520px); position: relative; text-align: center; }
.pair-card__inner img { width: 176px; margin-bottom: 28px; filter: brightness(0) invert(1); }
.pair-card__inner img.brand-logo--light:not(.brand-logo--auto-light) { filter: none; }
.pair-card h3 { margin: 0 0 9px; font-size: 1.55rem; letter-spacing: -.03em; }
.pair-card p { margin: 0 0 23px; color: #9f9f9f; font-size: .8rem; line-height: 1.6; }
.pair-input { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.pair-input input { min-width: 0; height: 50px; padding: 0 15px; color: #fff; background: #2a2a2a; border: 1px solid #444; border-radius: 9px; text-align: center; letter-spacing: .3em; font-size: 1.1rem; font-weight: 800; outline: none; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; padding: 22px; display: grid; place-items: center; background: rgba(15,14,13,.62); backdrop-filter: blur(5px); opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s ease; }
.modal-backdrop.is-open { opacity: 1; visibility: visible; }
.modal { width: min(100%, 620px); max-height: min(90vh, 800px); overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,.25); transform: translateY(8px); transition: transform .18s ease; }
.modal--playlist { width: min(100%, 820px); }
.modal-backdrop.is-open .modal { transform: translateY(0); }
.modal__header { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal__header h2 { margin: 0; font-size: 1rem; }
.modal__close { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.modal__body { padding: 22px; }
.modal__footer { padding: 15px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; }
.modal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.drop-zone { min-height: 218px; padding: 30px; display: grid; place-items: center; border: 1.5px dashed #c7c3bb; border-radius: 12px; background: #faf9f7; text-align: center; transition: border-color .18s ease, background .18s ease; }
.drop-zone.is-dragging { border-color: var(--orange); background: var(--orange-soft); }
.drop-zone__icon { width: 54px; height: 54px; margin: 0 auto 16px; display: grid; place-items: center; color: var(--orange); background: var(--orange-soft); border-radius: 14px; }
.drop-zone__icon svg { width: 25px; }
.drop-zone h3 { margin: 0 0 7px; font-size: .93rem; }
.drop-zone p { margin: 0 0 17px; color: var(--muted); font-size: .74rem; }
.upload-progress { margin-top: 18px; display: none; }
.upload-progress.is-active { display: block; }
.progress-track { height: 8px; overflow: hidden; background: #e9e7e2; border-radius: 99px; }
.progress-bar { width: 0; height: 100%; background: var(--orange); border-radius: inherit; transition: width .2s ease; }
.progress-meta { margin-top: 8px; display: flex; justify-content: space-between; color: var(--muted); font-size: .7rem; }
.playlist-add-panel { padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.playlist-add-panel__header { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.playlist-add-panel__header strong, .playlist-add-panel__header span { display: block; }
.playlist-add-panel__header strong { color: var(--ink); font-size: .82rem; }
.playlist-add-panel__header div span { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.selection-count { flex: 0 0 auto; padding: 5px 8px; color: var(--orange); background: var(--orange-soft); border-radius: 6px; font-size: .67rem; font-weight: 750; }
.playlist-media-picker { max-height: 240px; padding: 2px; overflow: auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; overscroll-behavior: contain; }
.playlist-media-picker__empty { grid-column: 1/-1; padding: 28px 14px; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; text-align: center; font-size: .74rem; }
.playlist-media-option { min-width: 0; padding: 7px; position: relative; display: grid; grid-template-columns: 62px minmax(0,1fr) 22px; align-items: center; gap: 9px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.playlist-media-option:hover { border-color: #bbb6ac; }
.playlist-media-option:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),.1); }
.playlist-media-option.is-selected { border-color: var(--orange); background: var(--orange-soft); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb),.13); }
.playlist-media-option input { position: absolute; opacity: 0; pointer-events: none; }
.playlist-media-option__thumb { width: 62px; aspect-ratio: 16/9; overflow: hidden; display: grid; place-items: center; color: #fff; background: #272727; border-radius: 6px; }
.playlist-media-option__thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.playlist-media-option__thumb svg { width: 20px; height: 20px; }
.playlist-media-option__text { min-width: 0; }
.playlist-media-option__text strong, .playlist-media-option__text small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.playlist-media-option__text strong { font-size: .72rem; }
.playlist-media-option__text small { margin-top: 4px; color: var(--muted); font-size: .63rem; }
.playlist-media-option__check { width: 20px; height: 20px; display: grid; place-items: center; color: transparent; border: 1px solid var(--line); border-radius: 6px; font-size: .65rem; font-weight: 850; }
.playlist-media-option.is-selected .playlist-media-option__check { color: #fff; border-color: var(--orange); background: var(--orange); }
.playlist-add-controls { margin-top: 12px; display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.photo-time-control { display: grid; gap: 6px; color: var(--muted); font-size: .66rem; }
.photo-time-control > span:last-child { display: flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: .72rem; font-weight: 650; }
.photo-time-control input, .playlist-editor__duration input { width: 76px; height: 38px; padding: 0 9px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; font: inherit; font-size: .75rem; font-weight: 700; outline: none; }
.photo-time-control input:focus, .playlist-editor__duration input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),.1); }
.playlist-editor-heading { margin: 20px 2px 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.playlist-editor-heading strong { color: var(--ink); font-size: .8rem; }
.playlist-editor-heading span { color: var(--muted); font-size: .67rem; }
.playlist-editor { display: grid; gap: 8px; }
.playlist-editor__item { padding: 10px; display: grid; grid-template-columns: 72px minmax(0,1fr) 132px auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.playlist-editor__thumb { width: 72px; aspect-ratio: 16/9; overflow: hidden; display: grid; place-items: center; color: #fff; background: #272727; border-radius: 6px; }
.playlist-editor__thumb video, .playlist-editor__thumb img { width: 100%; height: 100%; object-fit: cover; }
.playlist-editor__text { min-width: 0; }
.playlist-editor__text strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .78rem; }
.playlist-editor__text span { display: block; margin-top: 4px; color: var(--muted); font-size: .66rem; }
.playlist-editor__duration { display: grid; gap: 5px; color: var(--muted); font-size: .61rem; }
.playlist-editor__duration > span:last-child { display: flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: .67rem; font-weight: 650; }
.playlist-editor__duration input { width: 70px; height: 34px; }
.playlist-editor__duration--automatic strong { color: var(--ink-2); font-size: .7rem; }
.playlist-editor__actions { display: flex; gap: 4px; }
.playlist-editor__empty { padding: 35px 15px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 9px; font-size: .78rem; }

.toast-stack { position: fixed; z-index: 120; right: 22px; bottom: 22px; width: min(360px, calc(100vw - 44px)); display: grid; gap: 9px; }
.toast { padding: 14px 16px; display: grid; grid-template-columns: 24px 1fr; gap: 10px; color: #fff; background: #202020; border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.20); animation: toastIn .22s ease; }
.toast--error { background: #8d2525; }
.toast strong { display: block; font-size: .78rem; }
.toast span { display: block; margin-top: 3px; color: rgba(255,255,255,.7); font-size: .7rem; line-height: 1.4; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
.skeleton { overflow: hidden; position: relative; background: #eceae5; border-radius: 7px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg,transparent,rgba(255,255,255,.65),transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (max-width: 1180px) {
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .playlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    :root { --sidebar: 256px; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { min-height: 39svh; padding: 28px; justify-content: flex-end; }
    .auth-visual__top, .auth-visual__footer { display: none; }
    .auth-visual__copy { margin: 0; }
    .auth-visual__copy h1 { font-size: clamp(2.4rem, 8vw, 4rem); }
    .auth-visual__copy p { display: none; }
    .auth-panel { min-height: 61svh; padding: 36px 25px 58px; }
    .auth-logo { width: 175px; margin-bottom: 32px; }
    .auth-credit { bottom: 14px; }
    .install-shell .auth-visual { min-height: 240px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .store-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .sidebar { transform: translateX(-105%); transition: transform .22s ease; box-shadow: 24px 0 70px rgba(0,0,0,.25); }
    .sidebar.is-open { transform: translateX(0); }
    .main-shell { width: 100%; margin-left: 0; }
    .mobile-menu { display: grid; }
    .topbar { height: 72px; padding: 0 17px; }
    .topbar__sub { display: none; }
    .topbar__actions .button span { display: none; }
    .content { padding: 22px 16px 42px; }
    .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .metric-card { min-height: 126px; padding: 16px; }
    .metric-card__value { margin-top: 16px; font-size: 1.65rem; }
    .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .playlist-grid { grid-template-columns: 1fr; }
    .toolbar { align-items: stretch; flex-direction: column; }
    .toolbar__filters { width: 100%; }
    .search-box { width: 100%; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .section-heading__actions { width: 100%; }
    .section-heading__actions .button { flex: 1; }
    .section-heading > .button { width: 100%; }
    .panel { overflow-x: auto; }
    .data-table { min-width: 700px; }
    .screen-row { grid-template-columns: 42px minmax(0,1fr) auto; }
    .screen-row .quality-badge { display: none; }
    .modal-form { grid-template-columns: 1fr; }
    .pair-card { padding: 28px 18px; }
    .pair-input { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .auth-visual { min-height: 32svh; background-position: 37% center; }
    .auth-visual__copy h1 { margin-bottom: 0; font-size: 2.28rem; }
    .auth-visual__copy .eyebrow { font-size: .62rem; }
    .auth-panel { min-height: 68svh; padding-top: 28px; justify-content: flex-start; }
    .auth-panel__inner { margin-top: 0; }
    .auth-heading h2 { font-size: 1.85rem; }
    .form-grid { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 112px; }
    .media-grid { grid-template-columns: 1fr; }
    .topbar__actions .icon-button { display: none; }
    .modal-backdrop { padding: 10px; }
    .modal { max-height: 94vh; }
}

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

/* Universal branding, appearance and interaction extensions */
:root[data-theme="dark"] {
    --ink: #f4f2ee;
    --ink-2: #d6d3cd;
    --muted: #96938d;
    --line: #393734;
    --surface: #22211f;
    --surface-2: #2b2926;
    --canvas: #171614;
    --shadow: 0 20px 60px rgba(0,0,0,.34);
    color-scheme: dark;
}

.brand-wordmark { max-width: 100%; display: inline-flex; align-items: center; gap: 11px; text-align: left; line-height: 1; }
.brand-wordmark__mark { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: var(--orange); border-radius: 11px; font-size: .88rem; box-shadow: 0 9px 25px rgba(var(--brand-rgb),.25); }
.brand-wordmark strong, .brand-wordmark small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.brand-wordmark strong { color: var(--ink); font-family: var(--brand-heading-font); font-size: 1.02rem; font-weight: 700; letter-spacing: -.02em; }
.brand-wordmark small { margin-top: 5px; color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .04em; }
.brand-wordmark.brand-logo--light strong { color: #fff; }
.brand-wordmark.brand-logo--light small { color: rgba(255,255,255,.58); }
.brand-logo--auto-light { filter: brightness(0) invert(1) !important; }
.sidebar__brand .brand-wordmark { width: 100%; }
.sidebar__brand .brand-wordmark__mark { width: 38px; height: 38px; }
.sidebar__brand img:not(.brand-logo--auto-light) { filter: none; }
.pair-card__inner .brand-wordmark { margin: 0 auto 28px; justify-content: center; }

.button, .icon-button, .metric-card, .panel, .media-card, .playlist-card, .screen-row, .store-item { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.button:hover, .icon-button:hover { transform: translateY(-1px); }
.metric-card:hover, .media-card:hover, .playlist-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(var(--brand-rgb),.24); }
.theme-toggle { position: relative; }
.theme-icon { position: absolute; transition: opacity .2s ease, transform .25s ease; }
.theme-icon--sun { opacity: 0; transform: rotate(-35deg) scale(.7); }
:root[data-theme="dark"] .theme-icon--moon { opacity: 0; transform: rotate(35deg) scale(.7); }
:root[data-theme="dark"] .theme-icon--sun { opacity: 1; transform: rotate(0) scale(1); }

.view-switcher { display: inline-flex; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.view-switcher button { width: 39px; height: 38px; padding: 0; display: grid; place-items: center; color: var(--muted); border: 0; border-left: 1px solid var(--line); background: transparent; cursor: pointer; }
.view-switcher button:first-child { border-left: 0; }
.view-switcher button.is-active { color: #fff; background: var(--orange); }
.view-switcher svg { width: 16px; height: 16px; }
.media-grid.is-list { grid-template-columns: 1fr; gap: 8px; }
.media-grid.is-list .media-card { display: grid; grid-template-columns: 190px minmax(0,1fr); align-items: stretch; }
.media-grid.is-list .media-card__visual { aspect-ratio: 16 / 9; }
.media-grid.is-list .media-card__body { min-width: 0; display: flex; flex-direction: column; justify-content: center; }

.settings-stack { display: grid; gap: 18px; }
.branding-form { display: grid; gap: 22px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.colour-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.colour-field { min-height: 92px; padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.colour-field > span { font-size: .88rem; font-weight: 720; }
.colour-field small { color: var(--muted); font-size: .76rem; }
.colour-field input { width: 42px; height: 42px; grid-column: 2; grid-row: 1 / 3; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; }
.form-section small { color: var(--muted); font-size: .72rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
.brand-assets-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.brand-upload { min-width: 0; padding: 10px; display: grid; gap: 6px; position: relative; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: transform .18s ease, border-color .18s ease; }
.brand-upload:hover { transform: translateY(-2px); border-color: rgba(var(--brand-rgb),.42); }
.brand-upload--dark { color: #fff; background: #151515; }
.brand-upload--dark small { color: #949494; }
.brand-upload--wide { grid-column: span 2; }
.brand-upload__preview { min-height: 105px; padding: 14px; display: grid; place-items: center; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.brand-upload__preview--background { min-height: 132px; }
.brand-upload__preview--icon { aspect-ratio: 1; min-height: 0; }
.brand-upload__preview img { width: 100%; height: 100%; max-height: 110px; object-fit: contain; }
.brand-upload__preview--background img { max-height: 116px; object-fit: cover; }
.brand-upload__preview > span { display: grid; place-items: center; gap: 6px; color: var(--muted); }
.brand-upload__preview svg { width: 22px; height: 22px; }
.brand-upload strong { padding: 3px 2px 0; font-size: .86rem; }
.brand-upload > small { padding: 0 2px 4px; color: var(--muted); font-size: .75rem; }
.brand-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.brand-remove-row { display: flex; flex-wrap: wrap; gap: 8px; }

.app-loader { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 18px; color: #fff; background: var(--brand-sidebar); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.is-booting .app-loader { opacity: 1; visibility: visible; }
.app-loader strong { color: rgba(255,255,255,.76); font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; }
.app-loader__mark { width: 58px; height: 58px; border: 5px solid rgba(var(--brand-rgb),.22); border-top-color: var(--orange); border-radius: 50%; box-shadow: 0 0 28px rgba(var(--brand-rgb),.18); animation: loaderTurn .8s linear infinite; }
@keyframes loaderTurn { to { transform: rotate(360deg); } }

:root[data-theme="dark"] .auth-page,
:root[data-theme="dark"] .auth-panel,
:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .media-card,
:root[data-theme="dark"] .playlist-card,
:root[data-theme="dark"] .store-item,
:root[data-theme="dark"] .empty-state,
:root[data-theme="dark"] .icon-button,
:root[data-theme="dark"] .button--secondary,
:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .field textarea,
:root[data-theme="dark"] .search-box input,
:root[data-theme="dark"] .modal,
:root[data-theme="dark"] .modal__close,
:root[data-theme="dark"] .playlist-media-option,
:root[data-theme="dark"] .photo-time-control input,
:root[data-theme="dark"] .playlist-editor__duration input,
:root[data-theme="dark"] .playlist-editor__item,
:root[data-theme="dark"] .table-action { background: var(--surface); color: var(--ink); }
:root[data-theme="dark"] .playlist-media-option.is-selected { background: rgba(var(--brand-rgb),.14); }
:root[data-theme="dark"] .topbar { background: rgba(23,22,20,.91); border-color: var(--line); }
:root[data-theme="dark"] .data-table th,
:root[data-theme="dark"] .data-table tbody tr:hover,
:root[data-theme="dark"] .segmented,
:root[data-theme="dark"] .drop-zone { background: var(--surface-2); }
:root[data-theme="dark"] .field > span:first-child { color: var(--ink-2); }
:root[data-theme="dark"] .skeleton { background: #302e2b; }
:root[data-theme="dark"] .skeleton::after { background: linear-gradient(90deg,transparent,rgba(255,255,255,.07),transparent); }

@media (max-width: 900px) {
    .brand-assets-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-height: 760px) {
    .sidebar { padding: 15px 14px 12px; }
    .sidebar__brand { height: 46px; }
    .sidebar__context { margin: 8px 6px 10px; padding: 9px 11px; }
    .nav-label { margin-top: 5px; margin-bottom: 5px; }
    .nav-label--connect { margin-top: 9px; }
    .nav { gap: 2px; }
    .nav-item { min-height: 38px; }
    .sidebar__footer { padding-top: 7px; }
    .user-mini { padding: 5px 8px; }
    .avatar { width: 32px; height: 32px; }
}
@media (max-width: 760px) {
    .settings-grid, .colour-grid { grid-template-columns: 1fr; }
    .brand-assets-grid { grid-template-columns: 1fr 1fr; }
    .brand-upload--wide { grid-column: 1 / -1; }
    .media-grid.is-list .media-card { grid-template-columns: 128px minmax(0,1fr); }
    .playlist-editor__item { grid-template-columns: 62px minmax(0,1fr) auto; }
    .playlist-editor__thumb { width: 62px; }
    .playlist-editor__duration { grid-column: 2; }
    .playlist-editor__actions { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 500px) {
    .brand-assets-grid { grid-template-columns: 1fr; }
    .brand-upload--wide { grid-column: auto; }
    .media-grid.is-list .media-card { grid-template-columns: 108px minmax(0,1fr); }
    .modal-backdrop { padding: 8px; }
    .modal__body { padding: 15px; }
    .playlist-media-picker { grid-template-columns: 1fr; max-height: 210px; }
    .playlist-add-controls { align-items: stretch; flex-direction: column; }
    .playlist-add-controls .button { width: 100%; justify-content: center; }
    .playlist-editor-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
    .playlist-editor__item { grid-template-columns: 58px minmax(0,1fr); }
    .playlist-editor__thumb { width: 58px; }
    .playlist-editor__duration { grid-column: 1 / -1; }
    .playlist-editor__actions { grid-column: 1 / -1; grid-row: auto; justify-content: flex-end; }
}
