:root{color-scheme:light dark}#appearanceOptions{margin-top:8px}#appearanceButton{font-size:12px}.settings-appearance{padding:12px 0;border-bottom:1px solid var(--linea);margin-bottom:15px}.gear-button{font-size:13px;white-space:nowrap}.shared-scene{min-height:80px;display:grid;align-content:center;gap:6px;padding:12px;border:1px dashed var(--tenue);border-radius:8px;font-size:12px}.file-preview-actions{display:flex;gap:6px;align-items:center}.file-preview-actions a{flex:1}.file-preview-actions button,.history-controls button{font-size:11px;padding:5px 7px}.history-controls{display:flex;gap:6px;margin:10px 0}.file-preview-dialog{width:min(90vw,780px);max-height:85vh;border:1px solid var(--linea-2);border-radius:12px;padding:18px}.file-preview-dialog::backdrop{background:color-mix(in srgb,var(--corteza) 47%,transparent)}.file-preview-dialog img,.file-preview-dialog video,.file-preview-dialog canvas{max-width:100%;height:auto;display:block;margin:auto}.file-preview-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere}.file-preview-dialog audio{max-width:100%}.preview-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.preview-toolbar strong{overflow-wrap:anywhere}.preview-toolbar button{flex-shrink:0}
html[data-theme=dark]{--surface:var(--roble);--surface-alt:var(--texto);--text:var(--linea);--muted:var(--linea-2);background:var(--roble);color:var(--text)}html[data-theme=dark] body{background:var(--roble);color:var(--text)}html[data-theme=dark] .panel,html[data-theme=dark] .summary-card,html[data-theme=dark] .norm-card,html[data-theme=dark] .module-row,html[data-theme=dark] .notice-card,html[data-theme=dark] .statement,html[data-theme=dark] .media-row,html[data-theme=dark] form,html[data-theme=dark] dialog,html[data-theme=dark] .embedded main,html[data-theme=dark] main:has(#transferForm),html[data-theme=dark] .file-transfer-body iframe{background:var(--surface);color:var(--text);border-color:var(--texto)}html[data-theme=dark] h1,html[data-theme=dark] h2,html[data-theme=dark] h3,html[data-theme=dark] strong,html[data-theme=dark] .notice-title,html[data-theme=dark] .module-row strong,html[data-theme=dark] .metric-row strong{color:var(--text)}html[data-theme=dark] a,html[data-theme=dark] .description summary,html[data-theme=dark] .file-transfer-panel>summary{color:var(--linea-2)}html[data-theme=dark] p,html[data-theme=dark] small,html[data-theme=dark] .source-note,html[data-theme=dark] .speaker,html[data-theme=dark] .meta,html[data-theme=dark] .notice-preview,html[data-theme=dark] .eyebrow,html[data-theme=dark] .module-row small{color:var(--muted)}html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea,html[data-theme=dark] button,html[data-theme=dark] .secondary-btn,html[data-theme=dark] .file-button{background:var(--surface-alt);color:var(--text);border-color:var(--texto)}html[data-theme=dark] .notice-read,html[data-theme=dark] .chip,html[data-theme=dark] .tag,html[data-theme=dark] .pending,html[data-theme=dark] .count-badge,html[data-theme=dark] .fx-stat,html[data-theme=dark] .news-tab{background:var(--surface-alt);color:var(--linea);border-color:var(--texto)}html[data-theme=dark] .news-item:hover,html[data-theme=dark] .module-row:hover{background:var(--texto)}html[data-theme=dark] .warning,html[data-theme=dark] #error{background:var(--texto);color:var(--linea)}html[data-theme=dark] .file-transfer-body,html[data-theme=dark] article,html[data-theme=dark] .notice-card,html[data-theme=dark] .shared-scene{border-color:var(--texto)}html[data-theme=dark] .news-item p,html[data-theme=dark] .submetric,html[data-theme=dark] .hint,html[data-theme=dark] .empty,html[data-theme=dark] .source-warning{color:var(--muted)}html[data-theme=dark] #filePreviewStatus{color:var(--muted)}
html[data-theme=dark]{--pc-bg:var(--roble);--pc-surface:var(--roble);--pc-ink:var(--linea);--pc-ink-2:var(--linea);--pc-muted:var(--linea-2);--pc-line:var(--texto);--pc-line-2:var(--texto);--pc-brand:var(--linea-2);--pc-brand-50:var(--castano);--pc-ok:var(--linea-2);--pc-ok-50:var(--roble);--pc-warn:var(--linea-2);--pc-warn-50:var(--texto);--pc-crit:var(--linea);--pc-crit-50:var(--texto);--pc-violet:var(--linea);--pc-violet-50:var(--texto);--pc-teal:var(--linea-2);--pc-teal-50:var(--roble);--pc-shadow:0 8px 24px #0003}
html[data-theme=dark] body.pc-redesign :is(.d-topic,.d-norm,.d-tile,.d-ai,.d-ai-sugg button,.d-ai-form:focus-within,.d-seg button[aria-pressed=true]){background:var(--pc-surface);color:var(--pc-ink);border-color:var(--pc-line)}html[data-theme=dark] .pc-sheet{background:var(--pc-surface);color:var(--pc-ink)}

body.embedded .pc-site-intro{display:none}

/* The dashboard's original header and news container use fixed light colors. */
body.pc-redesign .gear-button{width:40px;height:40px;padding:0;display:grid;place-items:center;flex-shrink:0}
html[data-theme=dark] .pc-topbar,
html[data-theme=dark] body.pc-redesign .d-top{background:color-mix(in srgb,var(--roble) 94%,transparent);color:var(--linea);border-color:var(--texto)}
html[data-theme=dark] body.pc-redesign .news-list,
html[data-theme=dark] body.pc-redesign .news-item{background:var(--roble);color:var(--linea);border-color:var(--texto)}
html[data-theme=dark] body.pc-redesign .news-item:hover{background:var(--texto)}
html[data-theme=dark] body.pc-redesign .brand-title,
html[data-theme=dark] body.pc-redesign .news-item strong,
html[data-theme=dark] body.pc-redesign .news-loading strong{color:var(--linea)}
html[data-theme=dark] body.pc-redesign .clock,
html[data-theme=dark] body.pc-redesign .today,
html[data-theme=dark] body.pc-redesign .news-item p{color:var(--linea)}
html[data-theme=dark] body.pc-redesign .news-meta,
html[data-theme=dark] body.pc-redesign .news-loading,
html[data-theme=dark] body.pc-redesign .topbar .eyebrow{color:var(--linea-2)}
html[data-theme=dark] body.pc-redesign .news-tag{background:var(--castano);color:var(--linea)}
html[data-theme=dark] body.pc-redesign .news-link{color:var(--linea-2)}
html[data-theme=dark] body.pc-redesign .profile-content{background:var(--roble);color:var(--linea);border-color:var(--texto)}
html[data-theme=dark] body.pc-redesign .icon-btn{background:var(--texto);color:var(--linea);border-color:var(--texto)}
@media(max-width:600px){body.pc-redesign .d-top-in{gap:8px}body.pc-redesign .d-top-right{gap:6px}body.pc-redesign .d-brand{gap:8px}body.pc-redesign .brand-title{font-size:13px}}
@media(max-width:380px){body.pc-redesign .brand-title{max-width:84px;line-height:1.2}}

body.pc-redesign .d-hero{grid-template-columns:minmax(0,1fr)}
body.pc-redesign #sourceDialog{width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow-y:auto;overscroll-behavior:contain}
body.pc-redesign .settings-notifications{padding:0 0 16px;margin:0 0 16px;border-bottom:1px solid var(--pc-line)}
body.pc-redesign .settings-notifications h3{font-size:15px;margin:0 0 8px}
body.pc-redesign .settings-controls{display:grid;gap:4px}
body.pc-redesign .settings-controls .d-pref{padding:10px 0}
body.pc-redesign .settings-controls>.secondary-btn{justify-self:start}
body.pc-redesign .settings-notifications .notification-help{font-size:13px;line-height:1.6}
body.pc-redesign .settings-notifications .notification-help ol{padding-left:20px}
body.pc-redesign .settings-notifications .notification-tests{display:flex;gap:8px;flex-wrap:wrap}

body dialog.file-preview-dialog{position:fixed;inset:0;margin:auto;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}
