/*
 * JSM Insights theme: the approved dark plum-and-mint look (Main, SaveReport and Charts mockups), built on the
 * arounda-sales.css tokens. Dark only. Loaded after app.css, so it wins over Tailwind's base at equal specificity;
 * rules that restyle Jsm.RazorLibrary markup start with .dark to match the library's dark: variants.
 */

:root {
  --ins-bg: #0b0812;
  --ins-pop: #23192f;
  --ins-field: #30223e;
  --ins-text: #f6f1fc;
  --ins-soft: #ddd3e9;
  --ins-muted: #c0b6ce;
  --ins-subtle: #a69ab8;
  --ins-accent: #bd83ff;
  --ins-link: #d5b2ff;
  --ins-mint: #46e2b2;
  --ins-negative: #ffa0b2;
  --ins-warning: #f6dd92;
  --ins-line: rgb(220 199 246 / 11%);
  --ins-line-bright: rgb(220 199 246 / 26%);
  --ins-hair: rgb(220 199 246 / 6%);
  --ins-font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", sans-serif;
  --ins-mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace;
  color-scheme: dark;
  scrollbar-color: #4a3a5c transparent;
}

body {
  margin: 0;
  color: var(--ins-text);
  background: var(--ins-bg);
  font-family: var(--ins-font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { color: #fff; background: #765097; }
:focus-visible { outline: 2px solid var(--ins-mint); outline-offset: 3px; }

/* Page and star-field shell */
.ar { min-height: 100vh; padding: 28px; background: radial-gradient(ellipse at 75% 0%, rgb(107 66 136 / 23%), transparent 54%), radial-gradient(ellipse at 5% 74%, rgb(53 34 79 / 19%), transparent 45%), var(--ins-bg); }
.shell { position: relative; isolation: isolate; max-width: 1400px; margin: 0 auto; padding: 22px 28px 26px; border: 1px solid var(--ins-line); border-radius: 30px; background: radial-gradient(ellipse at 78% 0%, rgb(157 104 190 / 19%), transparent 37%), radial-gradient(ellipse at 5% 22%, rgb(69 39 96 / 13%), transparent 35%), #120e1c; box-shadow: 0 32px 100px rgb(0 0 0 / 30%), inset 0 1px 0 rgb(255 255 255 / 4%); }
.shell::before, .shell::after { position: absolute; inset: 0 0 auto; z-index: -1; height: 400px; max-height: 100%; border-radius: inherit; content: ""; pointer-events: none; background-repeat: no-repeat; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 56%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 56%, transparent 100%); }
.shell::before { opacity: .6; background-image: radial-gradient(ellipse 105px 48px at 87% 1%, rgb(235 213 253 / 37%), transparent 90%), radial-gradient(ellipse 125px 54px at 80% 15%, rgb(209 174 235 / 27%), transparent 90%), radial-gradient(ellipse 130px 65px at 73% 31%, rgb(180 135 215 / 18%), transparent 90%), radial-gradient(ellipse 260px 110px at 91% 14%, rgb(103 67 146 / 12%), transparent 90%), linear-gradient(133deg, transparent 51%, rgb(181 137 213 / 4%) 57%, rgb(227 194 250 / 15%) 62%, rgb(159 109 196 / 5%) 67%, transparent 73%); }
.shell::after { opacity: .6; background-image: radial-gradient(circle at 46.9% 11.3%, rgb(224 208 247 / 54%) 0 .6px, transparent 1.1px), radial-gradient(circle at 52.6% 29.1%, rgb(224 208 247 / 54%) 0 .6px, transparent 1.1px), radial-gradient(circle at 57.3% 45.2%, rgb(224 208 247 / 54%) 0 .6px, transparent 1.1px), radial-gradient(circle at 60.1% 20.8%, rgb(249 239 255 / 90%) 0 .7px, transparent 1.3px), radial-gradient(circle at 63.4% 34.7%, rgb(224 208 247 / 54%) 0 .7px, transparent 1.2px), radial-gradient(circle at 67.9% 25.4%, rgb(224 208 247 / 54%) 0 .6px, transparent 1.1px), radial-gradient(circle at 70.2% 4.9%, rgb(224 208 247 / 54%) 0 .5px, transparent 1px), radial-gradient(circle at 73.8% 38.6%, rgb(249 239 255 / 90%) 0 .8px, transparent 1.4px), radial-gradient(circle at 76.6% 27.2%, rgb(224 208 247 / 54%) 0 .6px, transparent 1.1px), radial-gradient(circle at 79.4% 48.8%, rgb(224 208 247 / 54%) 0 .6px, transparent 1.1px), radial-gradient(circle at 82.1% 31.4%, rgb(224 208 247 / 54%) 0 .65px, transparent 1.15px), radial-gradient(circle at 85.2% 55.7%, rgb(249 239 255 / 90%) 0 .7px, transparent 1.35px), radial-gradient(circle at 88.6% 18.6%, rgb(224 208 247 / 54%) 0 .6px, transparent 1.1px), radial-gradient(circle at 92.3% 8.8%, rgb(224 208 247 / 54%) 0 .55px, transparent 1.05px), radial-gradient(circle at 95.1% 42.4%, rgb(224 208 247 / 54%) 0 .55px, transparent 1.1px); }

/* Header: brand, Claude status pill, account pill */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ins-text); font-size: 20px; font-weight: 650; letter-spacing: -.6px; text-decoration: none; }
.brand:hover { color: #fff; }
.word { display: flex; flex-direction: column; line-height: 1; }
.jsm { margin: 0 0 4px 1px; color: var(--ins-subtle); font-size: 10px; font-weight: 650; letter-spacing: .24em; }
.ins { color: var(--ins-text); font-size: 22px; font-weight: 650; letter-spacing: -.6px; }
.idot { position: relative; display: inline-block; }
.spark { position: absolute; left: 50%; top: .05em; width: .46em; height: .46em; transform: translateX(-50%); fill: var(--ins-mint); filter: drop-shadow(0 0 3px rgb(70 226 178 / 70%)); }
.mark { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 13px; border: 1px solid rgb(70 226 178 / 34%); background: radial-gradient(circle at 78% 22%, rgb(70 226 178 / 30%), transparent 58%), linear-gradient(150deg, #2b2040, #140f1e); box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%), 0 6px 18px rgb(0 0 0 / 25%); }
.right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 4px 12px; border: 1px solid var(--ins-line); border-radius: 999px; color: var(--ins-muted); background: rgb(255 255 255 / 3%); font-size: 12px; font-weight: 500; white-space: nowrap; }
button.pill { font-family: inherit; cursor: pointer; }
button.pill:hover { border-color: rgb(229 207 255 / 40%); color: #fff; }
button.pill:disabled { cursor: progress; }
.dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ins-mint); box-shadow: 0 0 10px rgb(70 226 178 / 30%); }
.dot-wait { background: var(--ins-subtle); box-shadow: none; }
.dot-bad { background: var(--ins-negative); box-shadow: 0 0 10px rgb(255 160 178 / 30%); }
.avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgb(220 199 246 / 24%); color: #f5e8ff; background: linear-gradient(145deg, #796083, #433052); font-size: 12px; font-weight: 650; }

/* Account pill: the library's JsmUserMenu (name, email, sign out) dressed as the mockup's .acct */
.dark .acct-menu > div > button { min-height: 48px; padding: 5px 15px 5px 6px; gap: 10px; border: 1px solid var(--ins-line); border-radius: 999px; color: var(--ins-text); background: rgb(255 255 255 / 3%); }
.dark .acct-menu > div > button:hover { border-color: rgb(229 207 255 / 40%); background: rgb(255 255 255 / 5%); }
/* The menu's first child is its name block, so the avatar is drawn here with Font Awesome's user glyph. */
.dark .acct-menu > div > button::before { content: "\f007"; display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgb(220 199 246 / 24%); color: #f5e8ff; background: linear-gradient(145deg, #796083, #433052); font-family: "Font Awesome 6 Free"; font-size: 13px; font-weight: 900; }.dark .acct-menu > div > button p { color: var(--ins-text); font-size: 13px; font-weight: 550; line-height: 1.35; }
.dark .acct-menu > div > button p + p { color: var(--ins-muted); font-size: 11px; font-weight: 400; }
.dark .acct-menu > div > button > :last-child { color: var(--ins-subtle); }
.dark .acct-menu .absolute { border-color: var(--ins-line-bright); border-radius: 18px; background: var(--ins-pop); box-shadow: 0 24px 100px rgb(0 0 0 / 50%); }
.dark .acct-menu .absolute > div { border-color: var(--ins-line); }
.dark .acct-menu .absolute p { color: var(--ins-muted); }
.dark .acct-menu .absolute p:first-child { color: var(--ins-text); }
.dark .acct-menu .absolute a { color: var(--ins-soft); }
.dark .acct-menu .absolute :is(a, button):hover { background: rgb(255 255 255 / 5%); }
.dark .acct-menu .absolute button { color: var(--ins-negative); }
.dark .acct-menu .absolute button:hover { background: rgb(255 160 178 / 10%); }

/* Page heading */
.head { margin: 32px 0 24px; }
h1.t { font-size: clamp(28px, 2.6vw, 38px); font-weight: 550; line-height: 1.15; letter-spacing: -1.4px; }
.sub { margin-top: 9px; max-width: 66ch; color: var(--ins-muted); font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--ins-line-bright); border-radius: 999px; color: var(--ins-text); background: linear-gradient(150deg, #35283f, #251c31); box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%), 0 4px 12px rgb(0 0 0 / 8%); font: inherit; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { border-color: rgb(229 207 255 / 48%); color: #fff; }
.btn-p { border-color: #eee1fb; color: #281a36; background: linear-gradient(135deg, #f6effe, #e3cefa); box-shadow: 0 3px 17px rgb(204 160 245 / 11%); }
.btn-p:hover { border-color: #fff; color: #281a36; box-shadow: 0 3px 24px rgb(204 160 245 / 22%); }
.btn:disabled { cursor: not-allowed; opacity: .5; }
.btn:disabled:hover { border-color: var(--ins-line-bright); color: var(--ins-text); }
.btn-p:disabled:hover { border-color: #eee1fb; color: #281a36; box-shadow: 0 3px 17px rgb(204 160 245 / 11%); }
.btn-wrap { white-space: normal; text-align: left; }
.btn-icon { min-height: 36px; min-width: 36px; padding: 0 10px; }
.btn-on { border-color: var(--ins-accent); background: linear-gradient(150deg, #4a3560, #2e2140); box-shadow: 0 0 0 3px rgb(189 131 255 / 12%); }
.link-btn { color: var(--ins-link); font-size: 12px; font-weight: 600; cursor: pointer; }
.link-btn:hover { color: #efe0ff; }
.link-btn:disabled { cursor: not-allowed; opacity: .4; }

/* Panels, tiles and type */
.panel { position: relative; min-width: 0; padding: 24px; border: 1px solid var(--ins-line); border-radius: 24px; background: linear-gradient(140deg, #271d35, #1c1426 70%); box-shadow: 0 18px 50px rgb(0 0 0 / 15%), inset 0 1px 0 rgb(255 255 255 / 3%); }
.panel-hi { border-color: rgb(206 169 242 / 30%); background: radial-gradient(ellipse at 91% 0%, rgb(123 86 155 / 24%), transparent 53%), linear-gradient(140deg, #271d35, #1c1426 75%); box-shadow: 0 18px 50px rgb(0 0 0 / 15%), inset 0 1px 0 rgb(234 210 255 / 20%); }
.ptitle { font-size: 19px; font-weight: 500; line-height: 1.25; letter-spacing: -.4px; }
.ptitle-sm { font-size: 15px; letter-spacing: -.2px; }
.kind { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 550; white-space: nowrap; }
.k-data { color: #75e7be; background: rgb(70 226 178 / 10%); }
.kpi { min-width: 0; padding: 20px 22px; border: 1px solid var(--ins-line); border-radius: 20px; background: linear-gradient(135deg, rgb(53 38 70 / 64%), rgb(29 21 40 / 90%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 2%); }
.kpi-hi { border-color: rgb(189 131 255 / 29%); background: linear-gradient(135deg, rgb(76 48 94 / 68%), rgb(34 23 47 / 95%)); }
.klabel { color: var(--ins-muted); font-size: 13px; }
.kv { display: block; margin: 12px 0 8px; font-size: 34px; font-weight: 550; font-variant-numeric: tabular-nums; line-height: 1.1; letter-spacing: -1.3px; }
.kfoot { color: var(--ins-subtle); font-size: 12px; }
.err-text { color: var(--ins-negative); font-size: 12px; }

/* Composer and example prompts */
.composer { padding: 18px 18px 16px 22px; }
.composer:has(textarea:focus-visible) { outline: 2px solid var(--ins-mint); outline-offset: 3px; }
.composer-icon { padding-top: 9px; color: var(--ins-mint); }
.composer textarea, .composer textarea:focus { flex: 1; width: 100%; min-height: 78px; resize: none; padding: 8px 0; border: 0; outline: none; box-shadow: none; color: var(--ins-text); background: transparent; font: inherit; font-size: 17px; line-height: 1.6; }
.composer textarea::placeholder { color: var(--ins-subtle); opacity: 1; }
.composer textarea:disabled { opacity: .6; }
.hint { color: var(--ins-subtle); font-size: 12px; }
.kbd { display: inline-flex; justify-content: center; min-width: 22px; padding: 1px 6px; border: 1px solid var(--ins-line-bright); border-radius: 6px; color: var(--ins-muted); background: rgb(255 255 255 / 4%); font: 600 11px/1.4 var(--ins-font); }
.ex { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 0 18px; border: 1px solid var(--ins-line); border-radius: 999px; color: var(--ins-text); background: rgb(255 255 255 / 3%); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.ex:hover { border-color: rgb(229 207 255 / 40%); background: rgb(255 255 255 / 5%); color: #fff; }
.ex:disabled { cursor: not-allowed; opacity: .5; }
.ex svg { flex: none; color: var(--ins-subtle); }

/* The question as asked, and what Insights understood */
.ask { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px 14px 12px; border: 1px solid var(--ins-line); border-radius: 22px; background: rgb(255 255 255 / 3%); }
.ask-label { color: var(--ins-subtle); font-size: 12px; }
.ask-q { font-size: 15px; }
.ask-a { margin-top: 2px; color: var(--ins-soft); font-size: 14px; line-height: 1.55; }

/* Run state: one colour and icon per state */
.state { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border: 1px solid var(--state-line); border-radius: 20px; color: var(--ins-soft); background: var(--state-bg); }
.state-icon, .state-label { color: var(--state); }
.state-label { font-size: 14px; font-weight: 550; }
.state-meta { color: var(--ins-subtle); font-size: 12px; font-variant-numeric: tabular-nums; }
.state-msg { margin-top: 2px; font-size: 14px; line-height: 1.55; }
.state-think { --state: var(--ins-link); --state-line: rgb(189 131 255 / 28%); --state-bg: rgb(189 131 255 / 7%); }
.state-run { --state: #8fd0f7; --state-line: rgb(26 137 197 / 38%); --state-bg: rgb(26 137 197 / 8%); }
.state-ask { --state: var(--ins-warning); --state-line: rgb(246 221 146 / 28%); --state-bg: rgb(246 221 146 / 6%); }
.state-done { --state: var(--ins-mint); --state-line: rgb(70 226 178 / 28%); --state-bg: rgb(70 226 178 / 6%); }
.state-empty { --state: var(--ins-muted); --state-line: var(--ins-line-bright); --state-bg: rgb(255 255 255 / 2%); border-style: dashed; }
.state-unsupported { --state: #f2a9d6; --state-line: rgb(198 91 147 / 38%); --state-bg: rgb(198 91 147 / 8%); }
.state-denied { --state: #ffb994; --state-line: rgb(214 103 63 / 40%); --state-bg: rgb(214 103 63 / 8%); }
.state-failed { --state: var(--ins-negative); --state-line: rgb(255 160 178 / 34%); --state-bg: rgb(255 160 178 / 8%); }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border: 1px solid rgb(246 221 146 / 28%); border-radius: 20px; color: var(--ins-warning); background: rgb(246 221 146 / 6%); font-size: 14px; }

/* Clarification */
.clarify { border-color: rgb(246 221 146 / 30%); }
.clarify-icon { color: var(--ins-warning); }
.clarify-q { font-size: 17px; line-height: 1.6; }
.eyebrow { color: var(--ins-warning); font-size: 12px; font-weight: 550; }
.opt-tag { padding: 1px 8px; border-radius: 999px; color: var(--ins-muted); background: rgb(255 255 255 / 7%); font-size: 11px; font-weight: 500; }
.input { min-height: 44px; padding: 11px 13px; border: 1px solid var(--ins-line-bright); border-radius: 12px; color: var(--ins-text); background: var(--ins-field); font: inherit; font-size: 14px; line-height: 1.4; }
.input::placeholder { color: var(--ins-subtle); opacity: 1; }
.input:focus { border-color: var(--ins-line-bright); box-shadow: none; outline: 2px solid var(--ins-mint); outline-offset: 2px; }
.input:disabled { cursor: not-allowed; opacity: .6; }
.input-search { padding-left: 36px; padding-right: 32px; border-radius: 999px; }

/* Lists */
.bullets { display: grid; gap: 6px; margin-top: 12px; color: var(--ins-soft); font-size: 14px; line-height: 1.6; }
.bullets li { display: flex; gap: 10px; }
.bullets li::before { flex: none; width: 6px; height: 6px; margin-top: .62em; border-radius: 50%; background: var(--ins-accent); content: ""; }
.assume { display: grid; gap: 4px; margin-top: 12px; padding-left: 20px; color: var(--ins-muted); font-size: 14px; line-height: 1.6; list-style: disc; }
.assume li::marker { color: var(--ins-subtle); }

/* SQL */
.mono-hint { color: var(--ins-subtle); font: 11px/1.4 var(--ins-mono); }
.code { max-height: 18rem; overflow: auto; margin: 0; padding: 14px 16px; border: 1px solid var(--ins-hair); border-radius: 16px; color: var(--ins-soft); background: rgb(11 8 18 / 55%); font: 12px/1.65 var(--ins-mono); white-space: pre-wrap; overflow-wrap: anywhere; }

/* Results table: JsmTable's frame as a panel, a pill header row, hairline rows and tabular numbers */
.dark .res-table div.shadow-soft { border-color: var(--ins-line); border-radius: 24px; background: linear-gradient(140deg, #271d35, #1c1426 70%); box-shadow: 0 18px 50px rgb(0 0 0 / 15%), inset 0 1px 0 rgb(255 255 255 / 3%); }
.dark .res-table div.border-b { border-color: var(--ins-hair); }
.res-table .overflow-auto { padding: 0 16px 8px; }
.res-th { position: sticky; top: 0; z-index: 10; padding: 11px 14px; border-bottom: 1px solid transparent; color: var(--ins-muted); background: #2e243a; font-size: 12px; font-weight: 500; text-align: left; white-space: nowrap; }
.res-th-num { text-align: right; }
.res-th:first-child { border-radius: 999px 0 0 999px; }
.res-th:last-child { border-radius: 0 999px 999px 0; }
.res-td { padding: 13px 14px; border-bottom: 1px solid var(--ins-hair); color: var(--ins-soft); font-size: 14px; white-space: nowrap; vertical-align: middle; }
.num { text-align: right; color: var(--ins-text); font-weight: 500; font-variant-numeric: tabular-nums; }
.res-row:hover .res-td { background: rgb(255 255 255 / 3%); }
.res-row:last-child .res-td { border-bottom: 0; }
.res-card { padding: 16px 18px; border: 1px solid var(--ins-line); border-radius: 20px; background: linear-gradient(135deg, rgb(53 38 70 / 64%), rgb(29 21 40 / 90%)); }
.res-dl > div + div { border-top: 1px solid var(--ins-hair); }
.res-dl dt { color: var(--ins-muted); font-size: 12px; }
.res-dl dd { color: var(--ins-soft); font-size: 14px; }
.res-dl dd.num { color: var(--ins-text); }
.hl { padding: 0 2px; border-radius: 4px; color: #2e1e3d; background: var(--ins-warning); }
.search-icon { color: var(--ins-subtle); }
button.search-icon:hover { color: #fff; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 16px; border: 1px dashed var(--ins-line-bright); border-radius: 20px; background: rgb(255 255 255 / 2%); text-align: center; }
.menu { padding: 6px; border: 1px solid var(--ins-line-bright); border-radius: 18px; background: var(--ins-pop); box-shadow: 0 24px 100px rgb(0 0 0 / 50%); }
.menu-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; }
.menu-row:hover { background: rgb(255 255 255 / 5%); }
.check { display: flex; flex: none; align-items: center; justify-content: center; width: 16px; height: 16px; border: 1px solid var(--ins-line-bright); border-radius: 5px; }
.check-on { border-color: var(--ins-accent); color: #281a36; background: var(--ins-accent); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid rgb(255 255 255 / 3%); border-radius: 999px; background: rgb(255 255 255 / 5%); }
.seg button { min-height: 32px; padding: 5px 12px; border: 1px solid transparent; border-radius: 999px; color: var(--ins-muted); background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.seg button:hover { color: #fff; background: rgb(255 255 255 / 4%); }
.seg button[aria-pressed="true"] { border-color: rgb(220 199 246 / 10%); color: var(--ins-text); background: #51415f; box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%), 0 1px 5px rgb(0 0 0 / 10%); }

/* Vega tooltip: the light lavender card */
#vg-tooltip-element.custom-theme { min-width: 180px; padding: 11px 14px; border: 1px solid #fff; border-radius: 13px; color: #2e1e3d; background: #f4eafa; box-shadow: 0 8px 30px rgb(0 0 0 / 24%); font-family: var(--ins-font); font-size: 12px; line-height: 1.5; }
#vg-tooltip-element.custom-theme td.key { padding-right: 14px; color: #5d496e; font-size: 11px; }
#vg-tooltip-element.custom-theme td.value { font-weight: 650; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .kv { font-size: 26px; letter-spacing: -.8px; }
}

@media (max-width: 560px) {
  .ar { padding: 10px; }
  .shell { padding: 16px; border-radius: 24px; }
  .panel { padding: 18px 16px; border-radius: 20px; }
  .dark .acct-menu > div > button { padding: 5px; }
  /* The name stays in the accessibility tree: it is the button's only accessible name. */
  .dark .acct-menu > div > button > :first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dark .acct-menu > div > button > :last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ar .animate-pulse { animation: none; }
}

@media (forced-colors: active) {
  .shell::before, .shell::after { display: none; }
  .panel, .kpi, .btn, .pill, .ex, .state, .notice { border: 1px solid CanvasText; }
}
