/* Owner console. Shared site palette; compact modules with explicit controls. */
.platform-cabinet-page .platform-header { min-height:64px; padding:10px 20px; background:var(--bg); border-color:var(--line); }
.platform-cabinet-page .platform-brand { font-size:18px; gap:10px; }
.platform-cabinet-page .platform-brand img { width:30px; height:30px; }
.platform-cabinet-page .platform-brand small { font-size:10px; }
.platform-cabinet-page .account-main { max-width:none; width:100%; margin:0; padding:20px 20px 48px; }
.pc-shell { display:grid; grid-template-columns:172px minmax(0,1fr); gap:20px; align-items:start; }
.pc-sidebar { position:sticky; top:20px; min-width:0; padding:10px 0; border-right:1px solid var(--line); }
.pc-sidebar-heading { padding:0 12px 12px; }
.pc-caption { margin:0; color:var(--muted); font-size:10px; font-weight:600; line-height:1.5; text-transform:uppercase; letter-spacing:.07em; text-decoration:none; }
.pc-sidebar-heading .pc-caption { display:block; color:var(--text); }
#pcNavToggle { display:none; }
.pc-sidebar nav { display:grid; gap:3px; padding-right:12px; }
.pc-nav-group { padding:16px 12px 6px; color:var(--muted); font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; }
.pc-sidebar nav a { display:flex; align-items:center; gap:10px; min-height:40px; padding:10px; border:1px solid transparent; border-radius:6px; color:var(--muted); font-size:12px; line-height:1.4; text-decoration:none; }
.pc-sidebar nav a > span { font-size:10px; font-variant-numeric:tabular-nums; opacity:.7; }
.pc-sidebar nav a:hover { color:var(--text); background:var(--panel-2); }
.pc-sidebar nav a[aria-current=page] { color:var(--purple-soft); border-color:rgba(128,107,194,.26); background:rgba(128,107,194,.1); }
.pc-sidebar-footer { margin:20px 12px 0; padding-top:10px; border-top:1px solid var(--line); }
.pc-back { display:flex; align-items:center; justify-content:space-between; min-height:36px; color:var(--muted); font-size:12px; text-decoration:none; }
.pc-content { min-width:0; }
.pc-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.pc-heading .pc-caption { margin-bottom:5px; color:var(--purple-soft); }
.pc-heading h1 { margin:0; font-size:24px; font-weight:650; line-height:1.25; letter-spacing:-.03em; }
.pc-heading-description { margin:6px 0 0; color:var(--muted); font-size:12px; line-height:1.5; }
.pc-heading-actions { display:flex; align-items:center; gap:12px; flex:none; }
.pc-updated { color:var(--muted); font-size:10px; line-height:1.5; font-variant-numeric:tabular-nums; }
#pcTitle { scroll-margin-top:20px; }
.pc-content h2 { margin:0; color:var(--text); font-size:14px; line-height:1.5; font-weight:600; letter-spacing:-.01em; }
.pc-content h3 { margin:14px 0 8px; font-size:12px; line-height:1.5; font-weight:600; }
.pc-content .account-button, .pc-dialog .account-button { min-height:36px; padding:8px 11px; border-radius:6px; font-size:12px; line-height:1.5; }
.pc-content .account-primary { color:#fff; background:var(--purple-button); border-color:var(--purple-button); }
.pc-content .account-button:disabled { opacity:.45; cursor:not-allowed; }
.pc-content .account-button:hover:not(:disabled) { background:var(--panel-2); border-color:var(--purple); }
.pc-content .account-primary:hover:not(:disabled) { background:var(--purple-button); filter:brightness(1.06); }
.account-danger { color:#ffacbc; border-color:rgba(255,102,128,.25); background:rgba(255,102,128,.06); }
.pc-content button:focus-visible, .pc-content input:focus-visible, .pc-content select:focus-visible, .pc-content summary:focus-visible, .pc-dialog button:focus-visible, .pc-dialog input:focus-visible { outline:2px solid var(--purple-soft); outline-offset:3px; }
.pc-card { min-width:0; padding:14px 16px; background:var(--panel); border:1px solid var(--line); border-radius:8px; }
.pc-card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:30px; padding-bottom:10px; margin-bottom:8px; border-bottom:1px solid var(--line); }
.pc-card-head a { flex:none; color:var(--purple-soft); font-size:10px; text-decoration:none; }
.pc-card-head .pc-actions { gap:8px; justify-content:flex-end; }
.pc-card-head .pc-caption { text-align:right; font-size:10px; }
.pc-rack { display:grid; gap:12px; align-items:start; }
.pc-overview-rack { grid-template-columns:1.1fr 1.3fr 1fr; }
.pc-users-rack { grid-template-columns:1.1fr 1fr; }
.pc-ai-rack { grid-template-columns:minmax(300px,.8fr) minmax(0,1.4fr); }
.pc-backups-rack { grid-template-columns:1.05fr 1fr .95fr; }
.pc-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:12px; }
.pc-metrics-two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.pc-overview-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); }
.pc-metric { display:grid; gap:6px; min-width:0; text-decoration:none; padding:13px 16px; }
.pc-metric > span { color:var(--muted); font-size:10px; }
.pc-metric strong { color:var(--text); font-size:24px; line-height:1.25; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.pc-metric .pc-value-text { font-size:18px; }
.pc-metric small { font-size:10px; line-height:1.45; color:var(--muted); }
a.pc-metric:hover { border-color:var(--purple); }
.pc-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.pc-section-toolbar { margin-bottom:12px; padding:0 0 10px; }
.pc-section-toolbar .pc-hint, .pc-section-toolbar .account-muted { margin:0; }
.pc-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.pc-hint, .pc-content .account-muted { margin:8px 0 12px; color:var(--muted); font-size:12px; line-height:1.55; overflow-wrap:anywhere; }
.pc-hint:empty { display:none; }
.pc-card > .pc-hint:last-child { margin-bottom:0; }
.pc-preview { margin:0 0 12px; padding:8px 12px; color:#d4bc91; background:rgba(247,185,85,.04); border:1px solid rgba(247,185,85,.15); border-radius:6px; font-size:10px; line-height:1.5; }
.pc-list { list-style:none; padding:0; margin:0; }
.pc-list > li { display:flex; align-items:center; gap:10px; min-width:0; padding:10px 0; }
.pc-list > li + li { border-top:1px solid var(--line); }
.pc-list strong, .pc-row-copy > strong { display:block; font-size:13px; font-weight:550; line-height:1.45; overflow-wrap:anywhere; }
.pc-list small, .pc-row-copy > small { display:block; margin-top:3px; color:var(--muted); font-size:10px; line-height:1.5; overflow-wrap:anywhere; }
.pc-row-copy { flex:1; min-width:0; }
.pc-list .account-button { flex:none; }
.pc-list .channel-avatar { width:30px; height:30px; font-size:13px; border-radius:7px; }
.channel-avatar { background:rgba(128,107,194,.1); border:1px solid rgba(128,107,194,.15); color:var(--purple-soft); border-radius:8px; }
.pc-badge { display:inline-flex; align-items:center; gap:5px; max-width:100%; flex:none; padding:3px 6px; border:1px solid var(--control-line); border-radius:4px; color:var(--muted); background:var(--panel-2); font-size:10px; line-height:1.45; overflow-wrap:anywhere; }
.pc-badge[data-tone=success], .pc-badge[data-tone=ok], .pc-journal-ok { color:#98d1ad; border-color:rgba(85,213,138,.18); background:rgba(85,213,138,.06); }
.pc-badge[data-tone=warning], .pc-badge[data-tone=warn], .pc-journal-warning { color:#e3c183; border-color:rgba(247,185,85,.2); background:rgba(247,185,85,.06); }
.pc-badge[data-tone=error], .pc-journal-error { color:#ffabbc; border-color:rgba(255,102,128,.2); background:rgba(255,102,128,.06); }
.pc-setting-row, .pc-control-row { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:60px; padding:10px 0; }
.pc-control-row { border-top:1px solid var(--line); }
.pc-setting-row .pc-row-copy, .pc-control-row .pc-row-copy { min-width:0; }
.pc-mode-switch { position:relative; flex:none; width:42px; height:24px; min-height:24px; padding:3px; border:1px solid var(--control-line); border-radius:15px; background:#272c36; cursor:pointer; }
.pc-mode-switch span { display:block; width:16px; height:16px; border-radius:50%; background:#c7ccd5; transition:transform .15s; }
.pc-mode-switch[aria-checked=true] { background:var(--purple-button); border-color:var(--purple-button); }
.pc-mode-switch[aria-checked=true] span { background:#fff; transform:translateX(18px); }
.pc-mode-switch:disabled { opacity:.4; cursor:not-allowed; }
.pc-help { margin:10px 0 0; padding-top:2px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; }
.pc-help summary, .pc-system-details summary, .pc-channel-operation summary, .pc-danger-zone summary { display:flex; align-items:center; gap:8px; min-height:36px; cursor:pointer; list-style:none; font-size:12px; line-height:1.45; }
.pc-help summary::-webkit-details-marker, .pc-system-details summary::-webkit-details-marker, .pc-channel-operation summary::-webkit-details-marker, .pc-danger-zone summary::-webkit-details-marker { display:none; }
.pc-help summary::before, .pc-system-details summary::before, .pc-channel-operation summary::before, .pc-danger-zone summary::before { content:'›'; font-size:16px; color:var(--muted); transition:transform .15s; }
.pc-help[open] > summary::before, .pc-system-details[open] > summary::before, .pc-channel-operation[open] > summary::before, .pc-danger-zone[open] > summary::before { transform:rotate(90deg); }
.pc-help > .pc-hint { margin-top:6px; }
.pc-resources { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:12px 0; }
.pc-resources > div { min-width:0; display:grid; gap:6px; padding:10px 0; }
.pc-resources span { color:var(--muted); font-size:10px; line-height:1.5; }
.pc-resources strong { font-size:12px; font-weight:550; line-height:1.5; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.pc-ai-rack .pc-resources { grid-template-columns:repeat(2,minmax(0,1fr)); }
.pc-ai-rack .pc-resources > div:first-child { grid-column:1/-1; border-bottom:1px solid var(--line); }
.pc-ai-list > li { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; align-items:start; }
.pc-ai-list .pc-ai-detail { grid-column:1/-1; display:grid; gap:3px; }
.pc-ai-list .pc-ai-detail small { margin:0; }
.pc-ai-list .pc-ai-detail progress { width:100%; height:5px; margin:4px 0; accent-color:var(--purple); }
.pc-content progress { appearance:none; border:0; border-radius:3px; overflow:hidden; background:var(--line); }
.pc-content progress::-webkit-progress-bar { background:var(--line); }
.pc-content progress::-webkit-progress-value { background:var(--purple); }
.pc-content progress::-moz-progress-bar { background:var(--purple); }
.pc-ai-list .account-button { grid-column:2; justify-self:end; }
.pc-ai-list .pc-ai-form { grid-column:1/-1; }
.pc-ai-form { margin-top:12px; padding-top:12px; border-top:1px solid var(--control-line); }
.pc-ai-form > label { display:grid; gap:6px; margin-bottom:12px; font-size:12px; line-height:1.5; }
.pc-ai-form > .pc-ai-toggle, .pc-ai-toggle { display:flex; align-items:flex-start; gap:9px; font-size:12px; line-height:1.6; }
.pc-ai-toggle input { flex:none; width:16px; height:16px; margin:2px 0 0; accent-color:var(--purple); }
.pc-content input:not([type=checkbox]):not([type=radio]), .pc-content select { width:100%; min-width:0; max-width:100%; min-height:36px; padding:8px 10px; color:var(--text); background:var(--bg); border:1px solid var(--control-line); border-radius:6px; font:inherit; font-size:12px; line-height:1.5; }
.pc-ai-form input[type=number] { width:min(100%,220px); }
.pc-ai-form select { width:100%; }
.pc-search { display:grid; gap:5px; min-width:0; width:min(100%,340px); color:var(--muted); font-size:10px; }
.pc-channel-filters { display:grid; grid-template-columns:minmax(0,340px) minmax(0,220px); gap:12px; align-items:end; padding:12px; background:var(--panel); border:1px solid var(--line); border-radius:7px; margin-bottom:12px; }
.pc-channel-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)); gap:12px; align-items:start; }
.pc-channel-card { display:flex; flex-direction:column; }
.pc-channel-heading { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.pc-channel-heading h2 { margin:0; }
.pc-channel-heading p { margin:3px 0 0; }
.pc-channel-card .pc-actions { margin:12px 0 0; padding-top:10px; border-top:1px solid var(--line); }
.pc-channel-card > .pc-badge { align-self:start; }
.pc-channel-operation { margin-top:12px; padding-top:6px; border-top:1px solid var(--line); font-size:12px; overflow-wrap:anywhere; }
.pc-onboarding { margin:0 0 12px; }
.pc-onboarding > label { display:block; margin:12px 0 6px; font-size:12px; }
.pc-onboarding > input { width:min(100%,380px) !important; }
.pc-onboarding .pc-actions { margin:12px 0; }
.pc-onboarding li { margin:6px 0; font-size:12px; line-height:1.5; }
.pc-detail-heading { display:flex; align-items:center; gap:12px; margin:10px 0 14px; flex-wrap:wrap; }
.pc-detail-heading .pc-row-copy { flex:1; min-width:100px; }
.pc-detail-heading h2 { font-size:22px; overflow-wrap:anywhere; }
.pc-detail-heading p { margin:4px 0 0; }
.pc-detail-heading .pc-caption { margin-bottom:4px; }
.pc-detail-heading .channel-avatar { width:44px; height:44px; font-size:19px; }
.pc-detail-grid { display:grid; grid-template-columns:1.3fr 1fr; gap:12px; margin:12px 0; }
.pc-detail-grid .account-button { margin:4px 4px 4px 0; }
.pc-channel-warning { margin:10px 0; padding:10px 12px; border:1px solid rgba(247,185,85,.2); border-radius:6px; color:#e3c183; background:rgba(247,185,85,.05); font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.pc-channel-warning[data-tone=error] { color:#ffabbc; border-color:rgba(255,102,128,.2); background:rgba(255,102,128,.05); }
.pc-danger-zone { margin-top:12px; border-color:rgba(255,102,128,.2); }
.pc-danger-zone summary { color:#ffabbc; }
.pc-danger-zone:not([open]), .pc-system-details:not([open]) { padding-block:4px; }
.pc-empty { padding:24px 16px; }
.pc-empty p { max-width:65ch; }
.pc-recovery-card { margin:0; }
.pc-inline-result { margin:12px 0 0; padding:12px; border:1px solid rgba(128,107,194,.3); border-radius:6px; background:rgba(128,107,194,.04); }
.pc-inline-result label { display:block; margin:8px 0 5px; color:var(--muted); font-size:10px; }
.pc-inline-result input { margin-bottom:10px; }
.pc-system-readiness { margin-bottom:12px; }
.pc-system-status-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; }
.pc-system-status-grid > .pc-system-metrics { display:contents; }
.pc-system-rack { grid-template-columns:minmax(250px,.95fr) minmax(280px,1.1fr) minmax(250px,1fr); }
.pc-system-network { grid-column:span 2; }
.pc-system-diagnostics { grid-column:1/-1; }
.pc-system-diagnostics > summary { justify-content:flex-start; }
.pc-system-diagnostics > summary .pc-caption { margin-left:auto; }
.pc-system-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:12px 0; }
.pc-system-metric { min-width:0; padding:8px 10px; border:1px solid var(--line); border-radius:5px; background:var(--bg); display:grid; align-content:start; gap:5px; }
.pc-system-metric > span, .pc-system-metric small { font-size:10px; line-height:1.5; color:var(--muted); overflow-wrap:anywhere; }
.pc-system-metric strong { font-size:18px; font-weight:550; line-height:1.3; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.pc-system-metric[data-tone=ok] > span::before, .pc-system-metric[data-tone=warn] > span::before, .pc-system-metric[data-tone=error] > span::before { content:''; display:inline-block; width:5px; height:5px; margin-right:6px; border-radius:50%; background:var(--green); vertical-align:2px; }
.pc-system-metric[data-tone=warn] > span::before { background:var(--amber); }
.pc-system-metric[data-tone=error] > span::before { background:var(--red); }
.pc-system-metric[data-tone=error] { border-color:rgba(255,102,128,.22); }
.pc-system-metric[data-tone=error] strong { color:#ffabbc; }
.pc-system-metric[data-tone=warn] strong { color:#e3c183; }
.pc-system-status-grid .pc-system-metric { border:0; border-left:1px solid var(--line); border-radius:0; background:transparent; padding:6px 10px; }
.pc-system-status-grid .pc-system-metric:first-child { border-left:0; }
.pc-system-timeline { display:flex; height:20px; gap:1px; margin:12px 0 8px; overflow:hidden; border-radius:3px; background:var(--control-line); }
.pc-system-timeline span { flex:1; min-width:0; }
.pc-system-timeline [data-tone=ok] { background:#438960; }
.pc-system-timeline [data-tone=warn] { background:#b08a48; }
.pc-system-timeline [data-tone=error] { background:#a84b5e; }
.pc-timeline-key { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:0 0 8px; font-size:10px; color:var(--muted); }
.pc-timeline-key span::before { content:''; display:inline-block; width:5px; height:5px; border-radius:1px; margin-right:5px; background:var(--control-line); }
.pc-timeline-key [data-tone=ok]::before { background:#438960; }
.pc-timeline-key [data-tone=warn]::before { background:#b08a48; }
.pc-timeline-key [data-tone=error]::before { background:#a84b5e; }
.pc-system-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.pc-system-visits .pc-system-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
.pc-system-columns > div { min-width:0; }
.pc-system-confirm { border-color:rgba(255,102,128,.25); }
.pc-system-confirm h3 { margin:0; }
.pc-system-maintenance .pc-list > li { padding:7px 0; }
.pc-system-maintenance .pc-list strong { font-size:12px; }
.pc-system-maintenance .pc-list small { font-size:10px; }
.pc-backup-current { margin:12px 0; padding:10px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.pc-backup-current h3 { margin-top:0; }
.pc-backup-current progress { width:100%; height:5px; accent-color:var(--purple); }
.pc-backup-current progress[data-paused=true] { accent-color:var(--muted); }
.pc-backup-policy h3 { margin:14px 0 6px; padding-top:8px; border-top:1px solid var(--line); }
#pcBackupCodeLabel { display:block; }
.pc-journal-filters { display:grid; grid-template-columns:minmax(140px,.8fr) minmax(140px,.8fr) minmax(0,1.5fr); gap:12px; margin:12px 0; }
.pc-journal-filters label { display:grid; gap:5px; min-width:0; font-size:10px; color:var(--muted); }
.pc-journal-event { align-items:start !important; }
.pc-journal-meta { display:grid; justify-items:end; gap:5px; flex:none; color:var(--muted); font-size:10px; font-variant-numeric:tabular-nums; }
.pc-journal-pages { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:12px; border-top:1px solid var(--line); font-size:12px; margin-top:12px; }
.pc-notifications { position:fixed; z-index:10002; right:max(16px,env(safe-area-inset-right)); bottom:max(16px,env(safe-area-inset-bottom)); width:min(400px,calc(100% - 24px)); display:grid; gap:8px; pointer-events:none; }
.pc-toast { pointer-events:auto; display:flex; align-items:start; gap:10px; padding:12px 14px; color:var(--text); background:var(--panel-2); border:1px solid var(--control-line); border-left:3px solid var(--green); border-radius:7px; box-shadow:0 8px 28px #0006; }
.pc-toast[data-tone=error] { border-left-color:var(--red); }
.pc-toast[data-tone=warning] { border-left-color:var(--amber); }
.pc-toast p { flex:1; min-width:0; margin:0; font-size:12px; line-height:1.55; overflow-wrap:anywhere; }
.pc-toast-close { flex:none; width:36px; height:36px; margin:-5px -5px -5px 0; border:0; border-radius:5px; background:transparent; color:var(--muted); font:20px/1 Inter,system-ui,sans-serif; cursor:pointer; }
.pc-toast-close:focus-visible { outline:2px solid var(--purple-soft); outline-offset:2px; }
.pc-dialog { width:min(480px,calc(100% - 24px)); max-height:calc(100dvh - 32px); overflow-y:auto; padding:22px; border:1px solid var(--control-line); border-radius:10px; background:var(--panel); color:var(--text); }
.pc-dialog::backdrop { background:#000a; }
.pc-dialog h2 { margin:8px 0 12px; font-size:20px; line-height:1.3; overflow-wrap:anywhere; }
.pc-dialog label:not(.pc-ai-toggle) { display:grid; gap:8px; margin:16px 0; font-size:12px; }
.pc-dialog input[type=text] { width:100%; min-height:40px; padding:10px; border:1px solid var(--control-line); border-radius:6px; background:var(--bg); color:var(--text); font:inherit; font-size:13px; }
.pc-dialog .pc-ai-toggle { margin:16px 0; font-size:12px; }
.pc-dialog-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; margin-top:16px; padding-top:14px; border-top:1px solid var(--line); }
.pc-dialog-open { overflow:hidden; }
/* Scale the console itself on desktop; keep browser zoom and mobile sizing intact. */
@media(min-width:1101px) {
    .platform-cabinet-page {
        --pc-body-size:clamp(14px,calc(12px + .15625vw),16px);
        --pc-label-size:clamp(12px,calc(10px + .15625vw),14px);
        --pc-module-title-size:clamp(16px,calc(14px + .15625vw),18px);
        --pc-heading-size:clamp(28px,calc(24px + .3125vw),32px);
        --pc-control-height:clamp(40px,calc(32px + .625vw),48px);
        --pc-desktop-gap:clamp(16px,.9375vw,24px);
        --pc-sidebar-width:clamp(196px,calc(144px + 4.0625vw),248px);
    }
    .platform-cabinet-page .platform-header { min-height:76px; padding:14px clamp(20px,1.25vw,32px); }
    .platform-cabinet-page .platform-brand { font-size:clamp(21px,calc(18px + .234375vw),24px); gap:12px; }
    .platform-cabinet-page .platform-brand img { width:38px; height:38px; }
    .platform-cabinet-page .platform-brand small,
    .platform-cabinet-page .account-dropdown { font-size:var(--pc-label-size); }
    .platform-cabinet-page .account-main { padding:clamp(20px,1.25vw,32px) clamp(20px,1.25vw,32px) 64px; }
    .pc-shell { grid-template-columns:var(--pc-sidebar-width) minmax(0,1fr); gap:var(--pc-desktop-gap); }
    .pc-sidebar { top:28px; }
    .pc-sidebar nav { gap:5px; padding-right:16px; }
    .pc-sidebar nav a { min-height:48px; padding:12px; font-size:var(--pc-body-size); }
    .pc-sidebar nav a > span, .pc-nav-group, .pc-caption, .pc-updated,
    .pc-card-head a, .pc-card-head .pc-caption, .pc-metric > span, .pc-metric small,
    .pc-preview, .pc-list small, .pc-row-copy > small, .pc-badge, .pc-resources span,
    .pc-search, .pc-inline-result label, .pc-system-metric > span, .pc-system-metric small,
    .pc-system-maintenance .pc-list small, .pc-timeline-key, .pc-journal-filters label,
    .pc-journal-meta { font-size:var(--pc-label-size); }
    .pc-back { min-height:44px; font-size:var(--pc-body-size); }
    .pc-heading { margin-bottom:24px; padding-bottom:20px; }
    .pc-heading h1, .pc-content .pc-detail-heading h2 { font-size:var(--pc-heading-size); }
    .pc-heading-description, .pc-content h3, .pc-hint, .pc-content .account-muted,
    .pc-list strong, .pc-row-copy > strong, .pc-help, .pc-help summary,
    .pc-system-details summary, .pc-channel-operation, .pc-channel-operation summary,
    .pc-danger-zone summary, .pc-resources strong, .pc-ai-form > label,
    .pc-ai-form > .pc-ai-toggle, .pc-ai-toggle, .pc-onboarding > label,
    .pc-onboarding li, .pc-channel-warning, .pc-system-maintenance .pc-list strong,
    .pc-journal-pages, .pc-toast p, .pc-dialog label:not(.pc-ai-toggle),
    .pc-dialog .pc-ai-toggle { font-size:var(--pc-body-size); }
    .pc-content h2 { font-size:var(--pc-module-title-size); }
    .pc-content .account-button, .pc-dialog .account-button,
    .pc-content input:not([type=checkbox]):not([type=radio]), .pc-content select {
        min-height:var(--pc-control-height); padding:10px 14px; font-size:var(--pc-body-size);
    }
    .pc-card { padding:18px clamp(18px,.859375vw,22px); }
    .pc-card-head { min-height:36px; padding-bottom:12px; margin-bottom:12px; }
    .pc-rack, .pc-metrics, .pc-detail-grid, .pc-system-status-grid,
    .pc-channel-grid, .pc-journal-filters { gap:var(--pc-desktop-gap); }
    .pc-metrics, .pc-system-readiness, .pc-section-toolbar, .pc-channel-filters { margin-bottom:var(--pc-desktop-gap); }
    .pc-metric { padding:18px 22px; gap:8px; }
    .pc-metric strong { font-size:var(--pc-heading-size); }
    .pc-metric .pc-value-text { font-size:clamp(22px,calc(20px + .15625vw),24px); }
    .pc-list > li { padding:13px 0; gap:14px; }
    .pc-list .channel-avatar { width:40px; height:40px; font-size:18px; }
    .pc-badge { padding:5px 8px; }
    .pc-setting-row, .pc-control-row { min-height:76px; padding:14px 0; }
    .pc-mode-switch { width:52px; height:30px; min-height:30px; padding:4px; }
    .pc-mode-switch span { width:20px; height:20px; }
    .pc-mode-switch[aria-checked=true] span { transform:translateX(22px); }
    .pc-help summary, .pc-system-details summary,
    .pc-channel-operation summary, .pc-danger-zone summary { min-height:44px; }
    .pc-ai-toggle input { width:20px; height:20px; }
    .pc-channel-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,clamp(320px,20vw,400px)),1fr)); }
    .pc-system-metric strong { font-size:clamp(22px,calc(20px + .15625vw),24px); }
    .pc-system-status-grid .pc-system-metric { padding:10px 14px; }
    .pc-system-timeline { height:26px; }
    .pc-notifications { width:min(480px,calc(100% - 32px)); }
    .pc-toast { padding:16px 18px; }
    .pc-toast-close { width:44px; height:44px; }
    .pc-dialog { width:min(600px,calc(100% - 32px)); padding:28px; }
    .pc-dialog h2 { font-size:26px; }
    .pc-dialog input[type=text] { min-height:48px; font-size:var(--pc-body-size); }
}
@media(min-width:1800px) {
    .pc-system-rack { grid-template-columns:minmax(280px,.85fr) minmax(360px,1.15fr) minmax(300px,1fr); }
    .pc-ai-rack { grid-template-columns:minmax(320px,.7fr) minmax(0,1.6fr); }
}
@media(max-width:1100px) {
    .pc-shell { grid-template-columns:154px minmax(0,1fr); gap:16px; }
    .pc-overview-rack, .pc-backups-rack { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .pc-overview-rack > :last-child, .pc-backup-policy { grid-column:1/-1; }
    .pc-system-rack { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .pc-system-network { grid-column:auto; }
    .pc-system-status-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .pc-ai-rack { grid-template-columns:minmax(260px,.85fr) minmax(0,1fr); }
}
@media(max-width:960px) {
    .pc-heading-description { max-width:42ch; }
    .pc-heading-actions { flex-wrap:wrap; justify-content:flex-end; max-width:160px; }
    .pc-overview-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .pc-overview-rack, .pc-users-rack, .pc-ai-rack, .pc-backups-rack { grid-template-columns:1fr; }
    .pc-detail-grid { grid-template-columns:1fr; }
}
@media(max-width:760px) {
    .platform-cabinet-page .platform-header { padding:10px 14px; }
    .platform-cabinet-page .account-main { padding:14px 12px 36px; }
    .pc-shell { grid-template-columns:1fr; gap:14px; }
    .pc-sidebar { position:static; padding:8px 10px; border:1px solid var(--line); border-radius:6px; background:var(--panel); }
    .pc-sidebar-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0; }
    #pcNavToggle { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:8px 12px; font-size:12px; }
    .pc-sidebar[data-nav-open=false] nav { display:none; }
    .pc-sidebar nav { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:10px; padding:0; }
    .pc-nav-group { grid-column:1/-1; }
    .pc-sidebar nav a { min-height:44px; }
    .pc-sidebar-footer { display:none; }
    .pc-heading { align-items:start; flex-wrap:wrap; gap:10px; padding-bottom:12px; margin-bottom:12px; }
    .pc-heading h1 { font-size:23px; }
    .pc-heading-description { max-width:none; }
    .pc-heading-actions { width:100%; max-width:none; flex-direction:row-reverse; justify-content:space-between; }
    .pc-content .account-button, .pc-dialog .account-button { min-height:44px; padding:10px 12px; font-size:12px; }
    .pc-content input:not([type=checkbox]):not([type=radio]), .pc-content select { min-height:44px; font-size:16px; }
    .pc-mode-switch { width:52px; height:32px; min-height:32px; padding:5px; }
    .pc-mode-switch span { width:20px; height:20px; }
    .pc-mode-switch[aria-checked=true] span { transform:translateX(20px); }
    .pc-setting-row { min-height:68px; }
    .pc-card { padding:12px 14px; }
    .pc-system-rack { grid-template-columns:1fr; }
    .pc-system-status-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .pc-system-status-grid .pc-system-metric { padding:8px; }
    .pc-system-metrics { gap:6px; }
    .pc-system-metric { padding:8px; }
    .pc-system-metric strong { font-size:14px; }
    .pc-system-metric small { font-size:10px; }
    .pc-system-diagnostics { grid-column:auto; }
    .pc-channel-filters, .pc-journal-filters { grid-template-columns:1fr; }
    .pc-search { width:100%; }
    .pc-channel-grid { grid-template-columns:1fr; }
    .pc-list > li { flex-wrap:wrap; gap:8px; }
    .pc-list .pc-row-copy { flex:1 1 60%; }
    .pc-card-head { flex-wrap:wrap; }
    .pc-card-head .pc-actions { justify-content:flex-start; }
    .pc-journal-meta { justify-items:start; display:flex; align-items:center; flex-wrap:wrap; }
    .pc-system-columns { grid-template-columns:1fr; }
    .pc-dialog { padding:20px 16px; }
    .pc-dialog-actions .account-button { flex:1 1 auto; }
    .pc-toast-close { width:44px; height:44px; }
    .pc-control-row { align-items:start; }
}
@media(max-width:380px) {
    .platform-cabinet-page .platform-brand { font-size:16px; }
    .platform-cabinet-page .platform-brand img { width:24px; height:24px; }
    .platform-cabinet-page .platform-brand small { font-size:10px; }
    .pc-metrics-two { grid-template-columns:1fr; }
    .pc-system-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .pc-resources { grid-template-columns:1fr; }
    .pc-ai-rack .pc-resources { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .pc-list .account-button { max-width:100%; }
}
@media(pointer:coarse) { .pc-mode-switch::after { content:''; position:absolute; inset:-10px -5px; } }
@media(prefers-reduced-motion:reduce) { .pc-mode-switch span, .pc-help summary::before, .pc-system-details summary::before, .pc-channel-operation summary::before, .pc-danger-zone summary::before { transition:none; } }
