@import url('./families.css');
/* Semantic bindings are shared by the shell, embedded reports and workspaces. */
html[data-atlas-palette]{--bg:var(--atlas-canvas);--panel:var(--atlas-panel);--paper:var(--atlas-panel);--ink:var(--atlas-fg);--muted:var(--atlas-muted);--line:var(--atlas-edge);--edge:var(--atlas-edge);--blue:var(--atlas-accent);--cyan:var(--atlas-accent);--teal:var(--atlas-accent);--teal-light:var(--atlas-selection);--mint:var(--atlas-chart-2);--copper:var(--atlas-chart-4);--gold:var(--atlas-chart-4);--lime:var(--atlas-chart-2);--orange:var(--atlas-chart-4);--nav:var(--atlas-shell);--shadow:0 12px 32px #00000018;color:var(--atlas-fg);background:var(--atlas-canvas)}
html[data-atlas-palette] body{background:var(--atlas-canvas);color:var(--atlas-fg)}
.appearance-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;color:var(--atlas-muted);background:var(--atlas-panel);border:1px solid var(--atlas-edge);border-radius:6px;padding:7px 11px;cursor:pointer;font:12px 'Segoe UI','Microsoft YaHei',sans-serif;white-space:nowrap}.appearance-button:hover{color:var(--atlas-accent);border-color:var(--atlas-accent)}.appearance-button>span{font-size:17px;line-height:1}.appearance-button:focus-visible{outline:2px solid var(--atlas-accent);outline-offset:3px}
dialog.appearance-dialog{position:fixed;inset:0;width:560px;max-width:calc(100vw - 48px);max-height:85vh;margin:auto;padding:24px;border:1px solid var(--atlas-edge);border-radius:14px;box-shadow:0 30px 100px #00000040;background:var(--atlas-panel);color:var(--atlas-fg);font:13px/1.6 'Segoe UI','Microsoft YaHei',sans-serif;overflow:auto}dialog.appearance-dialog::backdrop{background:#00000066;backdrop-filter:blur(8px)}.appearance-dialog>header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:0 0 22px;padding:0;border:0;background:none}.appearance-dialog h2{font-size:20px;font-weight:600;margin:0 0 6px;color:var(--atlas-fg)}.appearance-dialog p{font-size:12px;color:var(--atlas-muted);margin:0}.appearance-dialog>header>button{font-size:24px;line-height:1;border:0;background:none;color:var(--atlas-muted);cursor:pointer}.appearance-palettes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.appearance-palettes>button{display:flex;flex-direction:column;gap:3px;align-items:start;border:1px solid var(--atlas-edge);border-radius:8px;background:var(--atlas-well);color:var(--atlas-fg);padding:12px;text-align:left;cursor:pointer}.appearance-palettes>button[aria-checked=true]{border-color:var(--atlas-accent);box-shadow:inset 0 0 0 1px var(--atlas-accent)}.appearance-palettes strong{font-size:13px;color:var(--atlas-fg);font-weight:550}.appearance-palettes small{font-size:11px;color:var(--atlas-muted)}.appearance-sample{width:100%;height:53px;position:relative;border-radius:5px;overflow:hidden;display:flex;border:1px solid #80808030;margin-bottom:7px;background:var(--sample-light)}.appearance-sample i{width:50%;height:100%;background:var(--sample-dark)}.appearance-sample i+i{background:var(--sample-light)}.appearance-sample b{position:absolute;left:14px;top:14px;height:24px;width:55%;border:1px solid #80808033;background:var(--sample-accent);border-radius:4px}.appearance-sample[data-sample=graphite]{--sample-light:#f5f6f8;--sample-dark:#191c22;--sample-accent:#afb7ff}.appearance-sample[data-sample=blue]{--sample-light:#f3f7fc;--sample-dark:#192330;--sample-accent:#a2c9ff}.appearance-sample[data-sample=green]{--sample-light:#f3f7f4;--sample-dark:#192720;--sample-accent:#a3d5b5}.appearance-sample[data-sample=sand]{--sample-light:#f8f5f0;--sample-dark:#241e19;--sample-accent:#e5bc93}.appearance-modes{display:flex;gap:6px;padding:5px;background:var(--atlas-well);border:1px solid var(--atlas-edge);border-radius:7px;margin-top:20px}.appearance-modes>button{font:inherit;flex:1;border:0;border-radius:4px;padding:7px 12px;background:transparent;color:var(--atlas-muted);cursor:pointer}.appearance-modes>button[aria-checked=true]{background:var(--atlas-selection);color:var(--atlas-fg)}.appearance-dialog .appearance-note{margin:14px 0 0}.appearance-dialog .appearance-error{color:var(--atlas-fg);min-height:20px;margin-top:8px}.appearance-dialog>footer{display:flex;justify-content:flex-end;gap:10px;margin-top:10px}.appearance-dialog>footer>button{padding:8px 17px;border:1px solid var(--atlas-edge);border-radius:6px;background:var(--atlas-well);color:var(--atlas-fg);font:inherit;cursor:pointer}.appearance-dialog>footer>.appearance-save{color:var(--atlas-accent-contrast);background:var(--atlas-accent);border-color:var(--atlas-accent)}.appearance-dialog button:focus-visible{outline:2px solid var(--atlas-accent);outline-offset:3px}.appearance-dialog button:disabled{cursor:default;opacity:.5}

html[data-atlas-mode=light]{--atlas-shadow-color:#17243a14}html[data-atlas-mode=dark]{--atlas-shadow-color:#00000040}html[data-atlas-palette] .card-followers b{color:var(--atlas-fg)}

html[data-atlas-embedded] :is(.atlas-bar,.command-bar,.dashboard-top,.workspace-bar){display:none}.workspace-frame{width:100%;height:100%;border:0;background:var(--bg)}.surface:has(>.workspace-frame){padding:0;overflow:hidden}

.communication-switch{display:flex;border:1px solid var(--line);border-radius:5px;padding:3px;gap:3px}.communication-switch[hidden]{display:none}.communication-switch button{font-size:11px;padding:5px 9px;border-radius:3px;color:var(--muted)}.communication-switch button.active{background:var(--atlas-selection);color:var(--ink)}.module-context{font-size:11px;color:var(--muted)}

/* Embedded social pages retain module navigation while sharing the main shell. */
html[data-atlas-embedded] body>header:has(.social-nav){display:flex;height:46px;min-height:46px;padding:0 38px;gap:0;background:var(--atlas-canvas);border-bottom:1px solid var(--atlas-edge)}html[data-atlas-embedded] body>header:has(.social-nav)>:not(.social-nav){display:none}html[data-atlas-embedded] body>header .social-nav{display:flex;align-items:center;gap:28px;height:46px}html[data-atlas-embedded] body>header .social-nav a{padding:13px 0}

/* Six palettes keep their family names and readable previews. */
.appearance-palettes{grid-template-columns:repeat(3,minmax(0,1fr))}.appearance-palettes small{font-size:10px}@media(max-width:520px){.appearance-palettes{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Autofill must use the same text and surface pair as the active theme. */
html[data-atlas-palette] :is(input,textarea){caret-color:currentColor}
html[data-atlas-palette] :is(input,textarea)::placeholder{color:var(--atlas-muted);opacity:1}
html[data-atlas-palette] :is(input,textarea):is(:-webkit-autofill,:autofill){color:var(--atlas-fg)!important;-webkit-text-fill-color:var(--atlas-fg)!important;box-shadow:0 0 0 1000px var(--atlas-well) inset!important;-webkit-box-shadow:0 0 0 1000px var(--atlas-well) inset!important;caret-color:var(--atlas-fg)}
