/* 桌面版外框與舊版 prototype/desktop/desktop.css 同步。 */
@media (min-width: 900px) {
    :root { --dw-ink: #1d2738; --dw-muted: #6e7786; --dw-line: #e4e7ec; --dw-soft: #f5f6f8; --dw-paper: #fffdfa; }
    html, body { width: 100%; height: 100%; overflow: hidden; background: #f3f4f6; }
    #app { width: 100%; height: 100%; overflow: hidden; }
    #app:has(> .dw-shell) > :not(.dw-shell):not(.pt-tabbar):not(.pt-page):not([hidden]) { visibility: hidden; }
    #app > .pt-tabbar { display: none; }
    .dw-root {
        width: 100vw; height: 100vh; min-width: 900px; overflow: hidden; color: var(--dw-ink);
        font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
    }
    .dw-root, .dw-root * { box-sizing: border-box; }
    .dw-root button, .dw-root input, .dw-root textarea { font: inherit; }
    .dw-root button { border: 0; color: inherit; background: none; cursor: pointer; }
    /* 圖示用。星圖（.ln-chart 裡的 svg）是畫作，不吃這條：不然俯視圖外多一圈白方框、斜看圖被縮成 16px 看不到。 */
    .dw-root svg:where(:not(.ln-chart svg)) { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .dw-shell { position: fixed; z-index: 25; inset: 0; display: flex; min-width: 900px; background: #f3f4f6; }
    .dw-shell-rail {
        flex: none; width: 76px; display: flex; flex-direction: column; align-items: center;
        padding: 12px 8px; border-right: 1px solid var(--dw-line); background: #f7f7f8;
    }
    .dw-shell-rail nav { display: flex; flex-direction: column; gap: 4px; width: 100%; }
    .dw-shell-rail nav a {
        height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
        border-radius: 10px; color: #6e7786; font-size: 11px; text-decoration: none;
    }
    .dw-shell-rail nav a.on { color: #1d2738; background: #e8eaee; font-weight: 600; }
    .dw-shell-rail nav svg { width: 20px; height: 20px; }
    .dw-shell-rail .ch-tab-icon { position: relative; display: inline-flex; }
    .dw-shell-rail .ch-tab-dot { position: absolute; top: -3px; right: -5px; width: 7px; height: 7px; border: 1px solid #f7f7f8; border-radius: 50%; background: #ff3b30; }
    .dw-shell-main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
    .dw-shell-keep { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
    .dw-shell-top {
        flex: none; height: 40px; display: flex; align-items: center; justify-content: space-between;
        padding: 0 16px; border-bottom: 1px solid var(--dw-line); background: #fff;
    }
    .dw-shell-top > b { font-size: 14px; }
    .dw-shell-top > div { display: flex; align-items: center; gap: 8px; }
    .dw-shell-top button { height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 8px; font-size: 14px; }
    .dw-shell-new { color: #fff !important; background: #1d2738 !important; }
    .dw-shell-panes { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; }
    .dw-shell-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--dw-line); }
    .dw-shell-pane:last-child { border-right: 0; }
    .dw-shell-pane > header {
        position: relative; z-index: 2; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 16px;
    }
    .dw-shell-pane > header > div:first-child { flex: 1; min-width: 0; }
    .dw-shell-who-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
    .dw-shell-who { max-width: 180px; overflow: hidden; font-size: 16px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
    .dw-shell-lib, .dw-shell-zhan {
        height: 26px; padding: 0 8px; border-radius: 7px; background: #f1f3f5; color: #1d2738; font-size: 12px; text-decoration: none; line-height: 26px;
    }
    .dw-shell-pane header small { display: block; margin-top: 2px; color: var(--dw-muted); font-size: 12px; }
    .dw-shell-horizon-trigger { min-width: 0; height: 28px; padding: 0 2px; overflow: hidden; color: #007aff !important; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
    .dw-shell-head-tools { display: flex; align-items: center; gap: 8px; }
    .dw-shell-more, .dw-shell-taiji { width: 32px; height: 32px; display: grid; place-items: center; position: relative; font-size: 20px !important; }
    .dw-shell-taiji.on { width: 28px; height: 28px; border-radius: 14px; color: #fff !important; background: #a21caf !important; }
    .dw-shell-kind { display: flex; padding: 2px; border-radius: 8px; background: #f1f3f5; }
    .dw-shell-kind button { padding: 6px 10px; border-radius: 6px; color: #6e7786; font-size: 13px; }
    .dw-shell-kind button.on { color: #1d2738; background: #fff; font-weight: 600; }
    .dw-shell-power { height: 28px; padding: 0 10px; border-radius: 8px; background: #f1f3f5 !important; color: #6e7786 !important; font-size: 13px; }
    .dw-shell-power.on { color: #1d2738 !important; background: #e8eaee !important; font-weight: 600; }
    .dw-shell-menu {
        position: absolute; z-index: 5; top: calc(100% + 4px); left: 16px; width: 240px; max-height: min(420px, 60vh); overflow: auto; padding: 6px;
        border: 1px solid var(--dw-line); border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(20, 29, 45, .12);
    }
    .dw-shell-menu button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; border-radius: 8px; text-align: left; }
    .dw-shell-menu button.on { background: #f1f3f5; }
    .dw-shell-menu button small { margin: 0; }
    .dw-shell-board { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; padding: 8px 16px 12px; background: #fafafa; }
    .dw-shell-board > [data-desktop-pane-mount] { flex: 1; min-height: 0; display: flex; flex-direction: column; }
    .dw-shell-blank { flex: 1; min-height: 0; background: #fafafa; }
    .dw-shell-board > [data-desktop-pane-mount] > .pt-compass { flex: 1; width: 100%; height: auto; min-height: 0; margin: 0; }
    .dw-shell-board .pt-board { width: 100%; max-width: none; height: 100%; min-height: 0; margin: 0; border-radius: 12px; overflow: hidden; }
    .dw-shell-board > [data-desktop-pane-mount] > .pt-bazi { width: 100%; max-width: none; margin: 0; }
    .dw-shell-board > [data-desktop-pane-mount] > .bz-title { width: 100%; height: 21px; margin: 0; }
    .dw-shell-board > [data-desktop-pane-mount] > #chart-zhan-mount { width: 100%; margin: 0; }
    .pt-root.pt-wide .dw-shell[data-desktop-tab="chart"] .dw-shell-board .pt-hua-pick button { flex: 0 1 22px; height: 24px; border-radius: 5px; font-size: 11.5px; }
    .pt-root.pt-wide .dw-shell[data-desktop-tab="chart"] .dw-shell-board .pt-board .pt-cell > .pt-foot-a:has(.pt-name-left) :is(.pt-hname, .pt-pname) { font-size: calc(11.5px * var(--desk-scale)); line-height: 1.15; }
    .dw-shell-full-hz { flex: none; width: auto; height: auto; min-height: 0; margin: 0 0 16px; padding: 0 16px; overflow: visible; background: #fafafa; }
    .dw-shell-full-hz > .pt-full-hz { margin: 0; border-radius: 0; box-shadow: none; }
    .dw-shell-full-hz .pt-ytop, .dw-shell-full-hz .pt-ybot { padding: 6px 0 !important; }
    .dw-shell-pane { position: relative; overflow: hidden; }
    .dw-pane-inkbar {
        position: absolute; z-index: 8; top: 54px; left: 50%; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--dw-line); border-radius: 11px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 5px 18px rgba(29, 39, 56, 0.12); transform: translateX(-50%);
    }
    .dw-shell-board { position: relative; }
    .dw-shell-board .dw-pane-ink { position: absolute; z-index: 7; inset: 0; width: 100%; height: 100%; pointer-events: none; }
    .dw-shell-board .dw-pane-ink.on { pointer-events: auto; cursor: crosshair; }
    .dw-shell-board .dw-pane-ink.erase { cursor: cell; }
    .dw-shell-pane > .pt-backdrop, .dw-shell-pane > .lb-drawer-shade { position: absolute; inset: 0; z-index: 20; }
    .dw-shell-pane > .pt-sheet, .dw-shell-pane > .lb-drawer.open {
        position: absolute; z-index: 21; right: 0; bottom: 0; left: 0; width: auto; max-height: 72%; transform: none;
    }
    .dw-shell-pane > #chart-menu, .dw-shell-pane > #kind-sheet, .dw-shell-pane > #horizon-sheet, .dw-shell-pane > #bazi-horizon { position: absolute; z-index: 20; inset: 0; }
    .dw-shell-pane > #school-page, .dw-shell-pane > #bazi-page {
        position: absolute; z-index: 24; inset: 0; width: auto; min-height: 0; overflow: auto; background: #f2f2f7;
    }
    .dw-shell-pane > #chart-zhan-mount { width: 100%; }
    .dw-shell-keep > .pt-root { flex: 1; width: 100%; min-height: 0; }
    .dw-shell[data-desktop-tab="chat"] .dw-shell-keep {
        display: grid; grid-template-columns: 340px minmax(0, 1fr); overflow: hidden; background: #fff;
    }
    .dw-chat-wait { grid-column: 2; grid-row: 1; display: grid; place-items: center; color: var(--dw-muted); font-size: 14px; background: #fff; }
    .dw-shell[data-desktop-tab="chat"] .dw-shell-keep:has(#chat-thread:not([hidden])) .dw-chat-wait,
    .dw-shell[data-desktop-tab="chat"] .dw-shell-keep:has(.pt-page:not(#chat-thread):not([hidden])) .dw-chat-wait { display: none; }
    .dw-shell[data-desktop-tab="chat"] #chat-list {
        position: relative; width: 340px; min-width: 0; height: 100vh; overflow: hidden; border-right: 1px solid var(--dw-line); padding-bottom: 0;
    }
    .dw-shell[data-desktop-tab="chat"] #chat-list .ch-list { min-height: 0; overflow-y: auto; }
    .dw-shell[data-desktop-tab="chat"] #chat-thread {
        position: relative; inset: auto; z-index: 1; width: 100%; min-width: 0; height: 100vh; min-height: 0; padding-bottom: 0;
    }
    .dw-shell[data-desktop-tab="chat"] #chat-thread .ch-thread-back { display: none; }
    .dw-shell[data-desktop-tab="chat"] #chat-thread .ex-stream { min-height: 0; }
    .dw-shell[data-desktop-tab="chat"] .pt-page:not(#chat-thread):not([hidden]) { grid-column: 2; }
    .dw-shell[data-desktop-tab="library"] .dw-shell-keep {
        display: grid; grid-template-columns: 320px minmax(360px, 1fr) 300px; overflow: hidden; background: #fff;
    }
    .dw-shell[data-desktop-tab="library"] #library-root {
        position: relative; inset: auto; grid-column: 1; grid-row: 1;
        width: 320px; height: 100vh; overflow-y: auto; border-right: 1px solid var(--dw-line);
    }
    .dw-library-preview { min-width: 0; display: flex; flex-direction: column; background: #f2f2f7; border-right: 1px solid var(--dw-line); }
    .dw-library-empty { flex: 1; display: grid; place-content: center; gap: 6px; color: var(--dw-muted); text-align: center; }
    .dw-library-empty p { margin: 0; font-size: 13px; }
    .dw-library-selected { height: 100%; display: flex; flex-direction: column; }
    .dw-library-selected > header, .dw-library-note > header { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--dw-line); background: #fff; }
    .dw-library-selected > header span, .dw-library-note em { color: var(--dw-muted); font-size: 13px; font-style: normal; }
    .dw-library-paper { flex: 1; display: grid; place-content: center; gap: 12px; margin: 24px; border: 1px solid var(--dw-line); border-radius: 12px; background: #fffdfa; text-align: center; }
    .dw-library-paper span, .dw-library-paper p { margin: 0; color: var(--dw-muted); }
    .dw-library-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px; border-top: 1px solid var(--dw-line); background: #fff; }
    .dw-library-actions button { height: 38px; border-radius: 8px; background: #1d2738; color: #fff; }
    .dw-library-note { display: flex; flex-direction: column; background: #fff; }
    .dw-library-note textarea { flex: 1; resize: none; border: 0; outline: 0; padding: 16px; color: var(--dw-ink); background: #fff; }
    .dw-shell[data-desktop-tab="home"] .dw-shell-keep { display: grid; grid-template-columns: 360px minmax(0, 1fr); overflow: hidden; background: #fff; }
    /* shell.css 的 #app .hm-list 是 absolute，不拉回格線的話右欄的我的道脈會掉進第一欄，蓋住好友清單 */
    .dw-shell[data-desktop-tab="home"] #home-list { position: relative; inset: auto; grid-column: 1; grid-row: 1; width: 360px; height: 100vh; overflow-y: auto; border-right: 1px solid var(--dw-line); }
    .dw-shell[data-desktop-tab="home"] .dw-home-dashboard { grid-column: 2; grid-row: 1; }
    .dw-home-dashboard { position: relative; min-width: 0; overflow: hidden; padding: 28px; background: linear-gradient(145deg, #f8f5ed, #eef1f5); }
    .dw-home-dashboard > header { display: flex; flex-direction: column; gap: 4px; }
    .dw-home-dashboard > header b { font-size: 24px; }
    .dw-home-dashboard > header span { color: var(--dw-muted); }
    .dw-home-cards { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
    .dw-home-cards button { min-height: 150px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 8px; padding: 20px; border: 1px solid rgba(116, 96, 57, .16); border-radius: 14px; background: rgba(255, 255, 255, .86); box-shadow: 0 12px 30px rgba(49, 43, 33, .06); text-align: left; }
    .dw-home-cards strong { font-size: 18px; }
    .dw-home-cards span { color: var(--dw-muted); font-size: 13px; line-height: 1.5; }
    .dw-home-sky-mark { position: absolute; inset: auto 8% 4% auto; width: min(46vw, 520px); aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(150, 118, 55, .25); border-radius: 50%; color: rgba(108, 83, 37, .5); }
    .dw-home-sky-mark::before, .dw-home-sky-mark::after, .dw-home-sky-mark i { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(150, 118, 55, .18); border-radius: 50%; }
    .dw-home-sky-mark::after { inset: 28%; }
    .dw-home-sky-mark i:nth-child(2) { transform: rotate(60deg); border-radius: 0; border-width: 1px 0 0; }
    .dw-home-sky-mark i:nth-child(3) { transform: rotate(-60deg); border-radius: 0; border-width: 1px 0 0; }
    .dw-shell[data-desktop-tab="home"] .pt-page:not([hidden]) { grid-column: 2; grid-row: 1; position: relative; inset: auto; width: 100%; height: 100vh; }
    .dw-shell[data-desktop-tab="media"] #media-root { height: 100vh; padding-bottom: 0; overflow: hidden; }
    .dw-shell[data-desktop-tab="media"] #media-root > .pt-nav { height: 52px; }
    .dw-shell[data-desktop-tab="media"] #media-feed { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; align-content: start; align-items: stretch; padding: 18px; overflow: auto; }
    .dw-shell[data-desktop-tab="media"] #media-feed > * { min-width: 0; margin: 0; }
    .dw-shell[data-desktop-tab="media"] #media-almanac { align-self: start; grid-column: 1; grid-row: 1 / span 2; }
    .dw-shell[data-desktop-tab="media"] #media-album-open { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; }
    .dw-shell[data-desktop-tab="media"] #media-rank-open { grid-column: 3; grid-row: 1 / span 2; align-self: stretch; }
    .dw-shell[data-desktop-tab="media"] #media-root > .md-merit { position: absolute; right: 18px; bottom: 18px; left: auto; width: calc((100% - 68px) / 3); }
}

@media (min-width: 900px) and (max-width: 1250px) {
    .dw-shell-pane > header { gap: 6px; padding-right: 10px; padding-left: 10px; }
    .dw-shell-who-line { gap: 5px; }
    .dw-shell-who { max-width: 115px; }
    .dw-shell-lib, .dw-shell-zhan { padding-right: 6px; padding-left: 6px; }
    .dw-shell-head-tools { gap: 5px; }
    .dw-shell-more, .dw-shell-taiji { width: 28px; height: 28px; }
    .dw-shell-kind button { padding-right: 7px; padding-left: 7px; }
    .dw-shell-board, .dw-shell-full-hz { padding-right: 10px; padding-left: 10px; }
    .dw-shell[data-desktop-tab="chat"] .dw-shell-keep { grid-template-columns: 300px minmax(0, 1fr); }
    .dw-shell[data-desktop-tab="chat"] #chat-list { width: 300px; }
    .dw-shell[data-desktop-tab="library"] .dw-shell-keep { grid-template-columns: 280px minmax(320px, 1fr) 240px; }
    .dw-shell[data-desktop-tab="library"] #library-root { width: 280px; }
    .dw-shell[data-desktop-tab="home"] .dw-shell-keep { grid-template-columns: 320px minmax(0, 1fr); }
    .dw-shell[data-desktop-tab="home"] #home-list { width: 320px; }
    .dw-home-cards { grid-template-columns: 1fr; }
    .dw-home-cards button { min-height: 92px; }
    .dw-shell[data-desktop-tab="media"] #media-feed { grid-template-columns: 1fr 1fr; }
    .dw-shell[data-desktop-tab="media"] #media-almanac { grid-column: 1 / -1; grid-row: 1; }
    .dw-shell[data-desktop-tab="media"] #media-album-open { grid-column: 1; grid-row: 2; }
    .dw-shell[data-desktop-tab="media"] #media-rank-open { grid-column: 2; grid-row: 2; }
}

/* 1920–2559 仍用 zoom 讓宮格與字一起放大，避免只放大星曜卻收掉雜曜。2560 改走下方專用字級、不再 zoom。 */
@media (min-width: 1800px) and (max-width: 2559px) {
    .dw-shell .dw-shell-pane { zoom: 1.25; }
}

@media (min-width: 1920px) {
    @container wcell (min-width: 0px) {
        .pt-root.pt-wide .dw-shell .pt-cell > * {
            --desk-scale: clamp(1, calc(1 + (min(100cqw, 100cqh) / 134.75px - 1) * 0.8), 1.5);
            --dw-foot: calc(1 + (var(--desk-scale) - 1) * 0.6);
            --star-fs: calc(15px * var(--desk-scale) * var(--fit, 1));
        }
        .pt-root.pt-wide .dw-shell .pt-pname,
        .pt-root.pt-wide .dw-shell .pt-hname,
        .pt-root.pt-wide .dw-shell .pt-gz-v { font-size: calc(16px * var(--dw-foot)); }
        .pt-root.pt-wide .dw-shell .pt-god,
        .pt-root.pt-wide .dw-shell .pt-gz,
        .pt-root.pt-wide .dw-shell .pt-ages,
        .pt-root.pt-wide .dw-shell .pt-hnames,
        .pt-root.pt-wide .dw-shell .pt-ages-btn { font-size: calc(12px * var(--dw-foot)); }
        .pt-root.pt-wide .dw-shell .pt-age-lines { font-size: calc(11px * var(--dw-foot) * var(--age-fit, 1)); }
        .pt-root.pt-wide .dw-shell .pt-gz-col .pt-god { font-size: calc(8.5px * var(--dw-foot)); }
    }

    .dw-shell .dw-shell-pane .dw-shell-full-hz .pt-lim { font-size: 12px; }
    .dw-shell .dw-shell-pane .dw-shell-full-hz .pt-ycell small { font-size: 11px; }
    .dw-shell .dw-shell-pane .dw-shell-full-hz .pt-ytop,
    .dw-shell .dw-shell-pane .dw-shell-full-hz .pt-ybot { padding: 8px 0 !important; }

    .dw-shell[data-desktop-tab="library"] .dw-shell-keep { grid-template-columns: 340px minmax(0, 1fr) 400px; }
    .dw-shell[data-desktop-tab="library"] #library-root { width: 340px; }
    .dw-shell[data-desktop-tab="library"] .dw-library-selected { container: dwlib / size; }
    .dw-shell[data-desktop-tab="library"] .dw-library-paper {
        width: min(calc(100% - 48px), calc((100cqh - 172px) * 1.04));
        align-self: center;
        margin-inline: auto;
    }
    .dw-shell[data-desktop-tab="library"] .dw-library-note header b { font-size: 18px; }
    .dw-shell[data-desktop-tab="library"] .dw-library-note textarea { padding: 20px; font-size: 17px; line-height: 1.75; }

    .dw-shell[data-desktop-tab="home"] :is(#profile-page, #person-page) > :not(.pt-nav):not(.ch-shade):not(.pt-backdrop) {
        width: 100%;
        max-width: 760px;
        margin-inline: auto;
    }

    .dw-shell[data-desktop-tab="chat"] .dw-shell-keep { grid-template-columns: 340px minmax(0, 1fr); }
    .dw-shell[data-desktop-tab="chat"] #chat-list { width: 340px; }

    .dw-shell[data-desktop-tab="media"] :is(.rk-feed, .rk-me) {
        width: 100%;
        max-width: 720px;
        margin-inline: auto;
    }
}

@media (min-width: 2560px) {
    @container wcell (min-width: 0px) {
        .pt-root.pt-wide .dw-shell .pt-cell > * {
            --desk-scale: clamp(1, calc(1 + (min(100cqw, 100cqh) / 134.75px - 1) * 0.8), 2);
        }
    }

    .dw-shell .dw-shell-pane .dw-shell-full-hz { margin-bottom: 20px; }
    .dw-shell .dw-shell-pane .dw-shell-full-hz .pt-lim { font-size: 14px; }
    .dw-shell .dw-shell-pane .dw-shell-full-hz .pt-ycell small { font-size: 13px; }
    .dw-shell .dw-shell-pane .dw-shell-full-hz .pt-ytop,
    .dw-shell .dw-shell-pane .dw-shell-full-hz .pt-ybot { padding: 10px 0 !important; }
    .dw-shell .dw-shell-who { font-size: 18px; }
    .dw-shell .dw-shell-pane header small { font-size: 13px; }

    .dw-shell[data-desktop-tab="library"] .dw-shell-keep { grid-template-columns: 380px minmax(0, 1fr) 480px; }
    .dw-shell[data-desktop-tab="library"] #library-root { width: 380px; }
    .dw-shell[data-desktop-tab="library"] .dw-library-note textarea { padding: 24px; font-size: 18px; }

    .dw-shell[data-desktop-tab="home"] .dw-shell-keep { grid-template-columns: 380px minmax(0, 1fr); }
    .dw-shell[data-desktop-tab="home"] #home-list { width: 380px; }
    .dw-shell[data-desktop-tab="home"] :is(#profile-page, #person-page) > :not(.pt-nav):not(.ch-shade):not(.pt-backdrop) { max-width: 840px; }

    .dw-shell[data-desktop-tab="chat"] .dw-shell-keep { grid-template-columns: 360px minmax(0, 1fr); }
    .dw-shell[data-desktop-tab="chat"] #chat-list { width: 360px; }

    .dw-shell[data-desktop-tab="media"] #media-feed { grid-template-columns: .95fr 1fr minmax(280px, .9fr); }
}
