/* CSS | astra-unified.css | Modern browsers | Astra's single final design system for all active web surfaces. */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/fonts/manrope/latin-v23.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/fonts/manrope/latin-ext-v23.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/fonts/manrope/vietnamese-v23.woff2') format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/be-vietnam-pro/latin-400-v12.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/be-vietnam-pro/latin-500-v12.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/be-vietnam-pro/latin-600-v12.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/be-vietnam-pro/latin-700-v12.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/be-vietnam-pro/latin-ext-400-v12.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/be-vietnam-pro/latin-ext-500-v12.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/be-vietnam-pro/latin-ext-600-v12.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/be-vietnam-pro/latin-ext-700-v12.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/be-vietnam-pro/vietnamese-400-v12.woff2') format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/be-vietnam-pro/vietnamese-500-v12.woff2') format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/be-vietnam-pro/vietnamese-600-v12.woff2') format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/be-vietnam-pro/vietnamese-700-v12.woff2') format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
:root {
  color-scheme: light;
  --a-canvas: #f5f7fb; --a-surface: #ffffff; --a-subtle: #f8faff; --a-tint: #edf2ff;
  --a-ink: #172c49; --a-muted: #53647d; --a-faint: #66778f;
  --a-brand: #315bd5; --a-brand-hover: #2349bd; --a-border: #dfe6f1; --a-border-strong: #cbd7e8;
  --a-success: #187451; --a-success-bg: #edf8f2; --a-warning: #8b5c0b; --a-warning-bg: #fff7e8;
  --a-danger: #ac354c; --a-danger-bg: #fff0f3; --a-violet: #6748ad; --a-violet-bg: #f4f0ff;
  --a-radius: 16px; --a-control-radius: 9px; --a-control-height: 40px;
  --a-shadow: 0 3px 16px #263d6505, 0 1px 3px #263d6503; --a-shadow-raised: 0 16px 48px #263d650d;
  --font-ui: 'Manrope', 'Segoe UI', system-ui, sans-serif; --font: var(--font-ui);
  --font-mono: 'Cascadia Code', ui-monospace, Consolas, monospace;
  --bg: var(--a-canvas); --paper: var(--a-surface); --panel: var(--a-surface); --panel-2: var(--a-subtle); --well: var(--a-subtle); --input: var(--a-surface);
  --text: var(--a-ink); --ink: var(--a-ink); --muted: var(--a-muted); --faint: var(--a-faint);
  --line: var(--a-border); --line-soft: #eaf0f7; --line-strong: var(--a-border-strong); --border: var(--a-border); --border2: var(--a-border-strong);
  --side-bg: var(--a-surface); --navy: var(--a-ink); --brand: var(--a-brand); --accent: var(--a-brand); --blue: var(--a-brand); --blue2: var(--a-brand-hover);
  --accent-hover: var(--a-brand-hover); --blue-strong: var(--a-brand-hover); --blue-soft: var(--a-tint); --accent-soft: var(--a-tint); --on-accent: #ffffff;
  --green: var(--a-success); --amber: var(--a-warning); --red: var(--a-danger); --radius: var(--a-radius); --radius-sm: var(--a-control-radius);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body { margin: 0; background: var(--a-canvas); color: var(--a-ink); font: 400 14px/1.6 var(--font-ui); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
body::before { display: none; }
.motion-atmosphere { display: block; opacity: .65; }
button, input, select, textarea, .mono { font-family: var(--font-ui); }
button, a { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
h1, h2, h3, h4 { color: var(--a-ink); font-family: var(--font-ui); font-weight: 600; letter-spacing: -.025em; }
[hidden], dialog:not([open]) { display: none !important; }
::selection { color: #172c49; background: #dce6ff; }
* { scrollbar-color: #c5d0e1 transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c5d0e1; border: 2px solid transparent; background-clip: padding-box; border-radius: 8px; }
:focus-visible { outline: 2px solid #315bd5; outline-offset: 3px; }
.icon, .nav-glyph { display: inline-block; width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20000; padding: 10px 16px; border-radius: 8px; color: #ffffff; background: var(--a-brand); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* Shared interaction primitives. ID scopes beat the historical per-page selectors. */
:is(#app, #authGate, .workspace, dialog, body[data-astra-page]) :is(.button, .btn, .control-btn, .fbtn, .act-btn, .design-primary, .design-secondary, .quiet, .motion-toggle) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--a-control-height); height: auto;
  padding: 9px 14px; border: 1px solid var(--a-border-strong); border-radius: var(--a-control-radius);
  color: var(--a-ink); background: var(--a-surface); font: 500 13px/1.4 var(--font-ui); letter-spacing: 0; white-space: nowrap;
  cursor: pointer; box-shadow: 0 1px 2px #263d6503; filter: none; transform: none; text-decoration: none;
  transition: background-color .16s, border-color .16s, color .16s, box-shadow .16s;
}
:is(#app, #authGate, .workspace, dialog, body[data-astra-page]) :is(.button, .btn, .control-btn, .fbtn, .act-btn, .design-secondary, .quiet):hover:not(:disabled) { color: var(--a-brand-hover); background: var(--a-subtle); border-color: #b1c3e4; transform: none; filter: none; }
:is(#app, #authGate, .workspace, dialog, body[data-astra-page]) :is(.button.primary, .btn.primary, .design-primary, .track-copy-all, button.go) { color: #ffffff !important; background: var(--a-brand) !important; border-color: var(--a-brand) !important; box-shadow: 0 3px 7px #315bd515; }
:is(#app, #authGate, .workspace, dialog, body[data-astra-page]) :is(.button.primary, .btn.primary, .design-primary, .track-copy-all, button.go):hover:not(:disabled) { background: var(--a-brand-hover) !important; border-color: var(--a-brand-hover) !important; }
:is(#app, #authGate, .workspace, dialog, body[data-astra-page]) :is(.button.danger, .act-btn.danger, .control-btn.is-danger) { color: var(--a-danger); background: #ffffff; border-color: #ebcad2; }
:is(#app, #authGate, .workspace, dialog, body[data-astra-page]) :is(.button.danger, .act-btn.danger, .control-btn.is-danger):hover:not(:disabled) { color: #922b40; background: var(--a-danger-bg); border-color: #dfa8b5; }
:is(#app, #authGate, .workspace, dialog, body[data-astra-page]) :is(.button, .btn, .control-btn, .fbtn, .act-btn, .design-primary, .design-secondary, .quiet):disabled {
  color: #8190a4 !important; background: #f5f7fb !important; border-color: #e4eaf3 !important; opacity: 1; box-shadow: none; filter: none; cursor: not-allowed;
}
:is(#app, #authGate, .workspace, dialog, body[data-astra-page]) :where(input:not([type=checkbox]):not([type=radio]):not([type=color]):not(.hp), select, textarea) {
  color-scheme: light; min-height: var(--a-control-height); padding: 9px 12px; border: 1px solid var(--a-border-strong); border-radius: var(--a-control-radius);
  color: var(--a-ink); -webkit-text-fill-color: currentColor; background-color: var(--a-surface); caret-color: var(--a-ink); font: 400 14px/1.5 var(--font-ui); box-shadow: none;
}
:is(#app, #authGate, .workspace, dialog, body[data-astra-page]) :is(input, textarea)::placeholder { color: #708198; -webkit-text-fill-color: #708198; opacity: 1; }
:is(#app, #authGate, .workspace, dialog, body[data-astra-page]) :is(input, select, textarea):focus { border-color: #8ca7ec; outline: none; box-shadow: 0 0 0 3px #315bd50f; }
:is(#app, #authGate, .workspace, dialog, body[data-astra-page]) :is(input, select, textarea):focus-visible { outline: 2px solid #315bd5; outline-offset: 2px; }
:is(#app, #authGate, .workspace, dialog, body[data-astra-page]) :is(input, select, textarea):disabled { color: #76879f; -webkit-text-fill-color: #76879f; background-color: #f5f7fb; border-color: #e4eaf3; opacity: 1; cursor: not-allowed; }
:is(#app, #authGate, .workspace, dialog, body[data-astra-page]) select:not([multiple]):not([size]) {
  appearance: none; color-scheme: light; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' stroke='%2353647d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 12px center; background-repeat: no-repeat;
}
:is(#app, #authGate, .workspace, dialog, body[data-astra-page]) select option { color: var(--a-ink); background: #ffffff; }
:is(#app, #authGate, .workspace, dialog, body[data-astra-page]) input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--a-brand); }
:is(#app, #authGate, .workspace, dialog, body[data-astra-page]) input::file-selector-button { margin: -4px 10px -4px -6px; padding: 7px 10px; border: 0; border-right: 1px solid var(--a-border); border-radius: 6px 0 0 6px; color: var(--a-brand-hover); background: var(--a-tint); font: 500 12px var(--font-ui); cursor: pointer; }
.search-box { min-height: 42px; height: 42px; background: #ffffff; border: 1px solid var(--a-border-strong); border-radius: var(--a-control-radius); }
:is(#app, .workspace) .search-box input { min-height: 0; padding: 0; border: 0; background: transparent; box-shadow: none; outline: none; }
.search-box > .icon { color: #76879f; }
.search-box kbd { color: #7d8ba0; background: #f6f8fc; border-color: var(--a-border); font-family: var(--font-ui); }
.field > label, #fcBundleDialog .field label { color: #3b506d; font-size: 12px; font-weight: 500; margin-bottom: 8px; }
.field small, .quiet-label, .fc-download-check { color: var(--a-muted); font-family: var(--font-ui); font-size: 12px; line-height: 1.6; }
.field textarea, code, pre { font-family: var(--font-mono); }

/* Navigation and application shell. */
.app, .main, .workspace, .workspace-main, .workspace main, body.is-embedded { background: var(--a-canvas); color: var(--a-ink); }
.app .sidebar, .workspace > .sidebar {
  --text: var(--a-ink); --muted: var(--a-muted); --faint: var(--a-faint); --accent: var(--a-brand); --panel: #ffffff; --line: var(--a-border);
  width: 248px; flex: 0 0 248px; background: #ffffff !important; border-color: var(--a-border) !important; color: var(--a-ink); box-shadow: none;
}
.workspace { grid-template-columns: 248px minmax(0, 1fr); }
.sidebar-scroll { padding: 27px 15px 16px; }
.sidebar-head { padding: 0 11px 30px; }
.app .sidebar .workspace-switch, .workspace .brand { color: var(--a-ink); font-size: 15px; font-weight: 650; letter-spacing: -.035em; }
.app .sidebar .workspace-switch:hover { color: var(--a-ink); background: transparent; }
.workspace-mark, .workspace-mark img, .workspace .brand img { width: 33px; height: 33px; border-radius: 10px; box-shadow: none; }
.brand-wordmark { display: grid; gap: 2px; }
.brand-wordmark small { color: #73839b; font-size: 9px; letter-spacing: .13em; font-weight: 500; text-transform: uppercase; }
.app .sidebar .side-section-head, .workspace .nav-label { margin: 0; padding: 11px 13px; color: #6b7c94; font-size: 9px; letter-spacing: .13em; font-weight: 600; }
.app-side-nav, .workspace .navigation { gap: 5px; }
.app .sidebar .side-item, .workspace .navigation > a { min-height: 43px; padding: 11px 13px; gap: 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #53647d; font-size: 13px; font-weight: 500; box-shadow: none; }
.app .sidebar .side-item:hover, .workspace .navigation > a:hover { color: var(--a-brand-hover); background: var(--a-subtle); }
.app .sidebar .side-item.is-active, .workspace .navigation > a.is-active { color: #2349bd; background: #edf2ff; border-color: #dce5ff; box-shadow: none; }
.side-icon, .workspace .navigation .nav-glyph { width: 18px; color: inherit; }
.workspace .navigation > a > span { display: flex; align-items: center; gap: 12px; }
.workspace .navigation > a b { margin-left: auto; padding: 2px 6px; color: #60718b; background: #f0f4fa; font-size: 10px; }
.workspace .navigation > a.is-active b { color: #2349bd; background: #ffffff; }
.sidebar-bottom { padding: 16px 19px 20px; background: transparent; }
.app .sidebar .workspace-plan, .workspace .storage-plan { padding: 15px; border: 1px solid #dfe7f5 !important; border-radius: 12px; background: #f8faff !important; }
.workspace-plan > span, .workspace .storage-plan > span { color: #687c9e; font-size: 9px; letter-spacing: .09em; }
.workspace-plan strong, .workspace .storage-plan strong { margin: 7px 0; color: #243d60; font-size: 12px; font-weight: 600; }
.workspace-plan small, .workspace .storage-plan small { color: #657992; font-size: 10px; line-height: 1.7; }
.workspace-plan-meter { height: 4px; margin-top: 13px; background: #e1e9f7; }
.workspace-plan-meter i { background: var(--a-brand); }
.app .sidebar .side-sync { margin-top: 12px; padding: 11px 12px; background: #ffffff; border-color: var(--a-border); }
.app .sidebar .side-sync b, .app .sidebar .side-user b, .workspace .user-row b { color: #243d60; font-size: 11px; }
.app .sidebar .side-sync span:not(.live-dot), .app .sidebar .side-user span:not(.user-avatar), .app .sidebar .side-share, .workspace .user-row small { color: #657992; font-size: 10px; }
.app .sidebar .side-share:hover { color: var(--a-brand-hover); background: var(--a-subtle); }
.app .sidebar .side-user { margin-top: 13px; padding-top: 16px; border-top-color: var(--a-border); }
.user-avatar, .app .sidebar .user-avatar, .workspace .user-avatar, .account-avatar { color: #315bd5; background: #edf2ff; border-color: #dae4fb; border-radius: 10px; }
.workspace .brand > span, .workspace .brand-sub { color: var(--a-ink); }
.workspace .brand-sub { font-size: 9px; letter-spacing: .13em; color: #73839b; }
#usermenu { padding: 7px; background: #ffffff; color: var(--a-ink); border: 1px solid var(--a-border); border-radius: 12px; box-shadow: var(--a-shadow-raised); }
#usermenu .menu-row, #usermenu .menu-signout { color: var(--a-muted); background: #ffffff; }
#usermenu .menu-signout:hover { background: var(--a-danger-bg); color: var(--a-danger); }
.main-inner { max-width: 1600px; padding: 0 32px 28px; }
#dashboardPageHead { min-height: 88px; margin: 0 -32px 26px; padding: 18px 32px; background: #ffffff; border-bottom: 1px solid var(--a-border); box-shadow: none; }
.page-title h1 { font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.page-title p { margin-top: 4px; color: #66778f; font-size: 11px; }
.title-tile { width: 36px; height: 36px; color: var(--a-brand); background: var(--a-tint); border: 1px solid #dfe7fb; border-radius: 10px; }
.head-actions { gap: 10px; }
.head-refresh, .mobile-menu, .sidebar-collapse { width: 36px; min-width: 36px; height: 36px; border: 1px solid var(--a-border); border-radius: 9px; color: #53647d; background: #ffffff; }
.sync-pill, .connection { padding: 6px 10px; border-radius: 7px; color: #2b6c55; background: #f0f8f4; font-size: 10px; }
.sync-pill:not(:has(.live-dot)) { color: #66778f; background: #f5f7fb; }
.live-dot, .online-dot { color: #187451; background: #299b71; box-shadow: none; animation: none; }
:is(#app, #authGate, .workspace, body[data-astra-page]) .motion-toggle { min-height: 32px; padding: 7px 9px; border-color: var(--a-border); font-size: 10px; color: #66778f; background: #ffffff; box-shadow: none; }
.workspace .topbar { min-height: 76px; padding: 15px 32px; background: #ffffff; border-color: var(--a-border); }
.workspace .breadcrumbs, .workspace .breadcrumbs b, .workspace .topbar-count { color: #657992; font-size: 11px; }
.workspace .breadcrumbs b { color: #334b6b; font-weight: 500; }
.workspace main { max-width: 1600px; padding: 27px 32px 32px; }
.workspace .page-head { background: transparent; border: 0; padding: 0; margin: 0 0 25px; }
.workspace .page-head h1 { color: var(--a-ink); font-size: 28px; letter-spacing: -.045em; }
.main-footer, .page-foot { margin-top: 28px; padding-top: 20px; border-color: var(--a-border); color: #6b7c94; font-size: 10px; }
.main-footer a { color: #536f9e; }
.main-inner.is-fleet-view { display: flex; flex-direction: column; height: 100dvh; min-height: 0; padding: 0 32px 20px; }
.main-inner.is-fleet-view > #dashboardPageHead { flex: 0 0 auto; margin-bottom: 0; }
.main-inner.is-fleet-view > #fleetEmbedView { display: flex; flex: 1 1 auto; min-height: 0; }
.main-inner.is-fleet-view .fleet-embed-view iframe { height: 100%; min-height: 0; background: var(--a-canvas); }
body.is-embedded { min-width: 0; }
body.is-embedded .motion-toggle { display: none !important; }
body.is-embedded main { padding: 24px 0 12px; }

/* Overview: a real-data snapshot, not a decorative chart. */
.intro-hero { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 40px; min-height: 300px; padding: 35px 38px; border: 0; border-radius: 20px; background: linear-gradient(118deg, #142e54, #254ba7) !important; box-shadow: 0 14px 38px #223e7d12; }
.intro-hero::before { display: block; z-index: 0; background: radial-gradient(circle, #78b5ff38, transparent 67%); }
.intro-hero::after { display: block; z-index: 0; opacity: .5; }
.intro-hero > div { position: relative; z-index: 1; min-width: 0; }
.intro-kicker, .intro-hero .intro-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 17px; color: #dce6ff; font-size: 9px; font-weight: 600; letter-spacing: .13em; }
.intro-kicker::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #b0c9ff; }
.intro-hero h2, .intro-hero h2 em { margin: 0; color: #ffffff; -webkit-text-fill-color: currentColor; font-size: clamp(32px, 3vw, 44px); font-weight: 600; font-style: normal; line-height: 1.18; letter-spacing: -.035em; }
.intro-hero h2 em { color: #c4d6ff; }
.intro-hero p { max-width: 380px; margin: 18px 0 24px; color: #dce6ff; font-size: 12px; line-height: 1.8; }
#app .intro-hero .design-primary { color: #244cb1 !important; background: #ffffff !important; border-color: #ffffff !important; }
#app .intro-hero .design-secondary { color: #ffffff; background: #ffffff0b; border-color: #ffffff3d; }
#app .intro-hero .design-secondary:hover { color: #ffffff; background: #ffffff18; border-color: #ffffff73; }
.intro-hero .intro-actions { margin-top: 24px; }
.intro-hero .workspace-connection-map { display: grid; place-items: center; min-height: 270px; width: 100%; max-width: 340px; margin-inline: auto; }
.intro-hero .map-orbit { width: 224px; height: 224px; border: 1px dashed #b9d4ff80; box-shadow: 0 0 42px #8bbaff0d, inset 0 0 42px #8bbaff0d; }
.intro-hero .map-orbit::before { background: #d2e5ff; box-shadow: 0 0 18px #a7cdffb0; }
.intro-hero .map-orbit::after { inset: 16px; border-color: #a4c7ff26; border-top-color: #d0e4ffb0; }
.intro-hero .map-orbit-inner { width: 166px; height: 166px; border-style: solid; border-color: #a5c9ff35; }
.intro-hero .map-orbit-inner::before { top: 16px; left: 16px; width: 5px; height: 5px; background: #8fd8ed; }
.intro-hero .map-orbit-inner::after { display: none; }
.intro-hero .map-core { width: 100px; height: 100px; border: 1px solid #ffffff8c; border-radius: 27px; background: #ffffff; box-shadow: 0 15px 45px #071b3e38, 0 0 0 8px #ffffff08; }
.intro-hero .map-core img { width: 68px; height: 68px; border-radius: 18px; }
.intro-hero .map-satellite { width: 48px; height: 48px; color: #244cb1; background: #ffffff; border-color: #d9e7ff; box-shadow: 0 8px 24px #071b3e20; }
.intro-hero .map-satellite img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.intro-hero .map-mam { left: 3%; top: 28px; }
.intro-hero .map-bf { right: 3%; bottom: 48px; color: #176582; background: #eefaff; border-color: #c9e9f7; }
.intro-hero .map-caption { bottom: 0; color: #dce6ff; font-size: 10px; }
.workspace-snapshot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 22px; padding: 15px 21px; margin-top: 16px; border: 1px solid var(--a-border); border-radius: 13px; color: var(--a-ink); background: #ffffff; box-shadow: var(--a-shadow); }
.snapshot-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; }
.snapshot-heading > span { color: #66778f; font-size: 9px; font-weight: 600; letter-spacing: .13em; }
.snapshot-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px; color: #27674e; background: #edf8f2; border-radius: 5px; font-size: 9px; }
.snapshot-chip .live-dot { width: 4px; height: 4px; }
.snapshot-row { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 0 0 0 20px; border-left: 1px solid #eaf0f7; }
.snapshot-heading + .snapshot-row { padding-left: 0; border-left: 0; }
.snapshot-game-mark { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #e0e8fb; border-radius: 10px; color: #315bd5; background: #f3f6ff; font-size: 9px; font-weight: 600; }
.snapshot-game-mark img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.snapshot-row > div { display: grid; gap: 2px; }
.snapshot-row b { color: #243d60; font-size: 11px; font-weight: 600; }
.snapshot-row small { color: #73839b; font-size: 10px; }
.snapshot-row > strong { margin-left: auto; color: #243d60; font-size: 20px; font-weight: 600; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.snapshot-footer { display: flex; align-items: center; gap: 7px; padding-top: 13px; margin-top: 4px; border-top: 1px solid #eaf0f7; color: #66778f; font-size: 10px; }
.snapshot-footer .icon { width: 14px; height: 14px; }
.workspace-metrics { gap: 14px; margin: 22px 0 32px; }
.workspace-stat, .workspace .metric, .metric, .bfcard, .bf-inventory .bi-card { min-width: 0; border: 1px solid var(--a-border) !important; border-radius: 13px; background: #ffffff !important; box-shadow: var(--a-shadow) !important; }
.workspace-stat { padding: 20px 21px; }
.workspace-stat-label, .metric-label, .workspace .metric > span, .bf-inventory .bi-card > span { color: #61718a; font-size: 11px; font-weight: 500; letter-spacing: 0; }
.workspace-stat-label .icon { color: var(--a-brand); width: 15px; height: 15px; }
.workspace-stat strong, .metric-value, .workspace .metric > strong, .bf-inventory .bi-card strong { color: var(--a-ink); font: 600 30px/1.2 var(--font-ui); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.workspace-stat small, .metric-foot, .value-total { color: #66778f; font: 400 11px/1.6 var(--font-ui); }
.workspace-section-heading { margin-bottom: 17px; }
.design-kicker, .eyebrow, .studio-eyebrow { color: #617697; font-family: var(--font-ui); font-size: 9px; font-weight: 600; letter-spacing: .13em; }
.workspace-section-heading h2 { margin-top: 5px; font-size: 18px; font-weight: 600; }
.workspace-games { gap: 18px; }
.workspace-game, .workspace-game:nth-child(2) { gap: 25px; padding: 25px; border: 1px solid var(--a-border) !important; border-radius: var(--a-radius); background: #ffffff !important; box-shadow: var(--a-shadow); }
.workspace-game-top { gap: 13px; }
.workspace-game-logo, .workspace-game:nth-child(2) .workspace-game-logo { width: 44px; height: 44px; border-radius: 12px; border-color: #dce6fd; color: var(--a-brand); background: var(--a-tint); }
.workspace-game-logo img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.workspace-game h3 { font-size: 16px; }
.workspace-game p { color: #66778f; font-size: 11px; }
.workspace-game-count { margin-left: auto; padding: 4px 7px; color: #27674e; background: #edf8f2; border-radius: 6px; font-size: 9px; }
.workspace-game-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.workspace-game-stats b { margin-bottom: 5px; color: #20395d; font-size: 24px; font-weight: 600; }
.workspace-game-stats span { color: #66778f; font-size: 10px; }
.workspace-game-actions { gap: 8px; border-color: #eaf0f7; padding-top: 19px; }
#app .workspace-game-actions :is(.design-primary, .design-secondary) { min-height: 36px; font-size: 10px; padding: 8px 11px; }
.workspace-activity { margin-top: 30px; }
.workspace-activity-list { display: grid; gap: 0; padding: 0 20px; border-color: var(--a-border); border-radius: var(--a-radius); background: #ffffff !important; box-shadow: var(--a-shadow); }
.workspace-activity-row { padding: 18px 0; background: transparent; border-color: #eaf0f7; }
.workspace-activity-row:first-child { border-top: 0; }
.workspace-activity-icon { color: var(--a-brand); background: #f2f5fd; border-radius: 10px; }
.workspace-activity-row b { color: var(--a-ink); font-size: 12px; }
.workspace-activity-row small { color: #66778f; font-size: 11px; }
.workspace-state { color: #187451; background: #edf8f2; border-color: #d6ebdf; font-size: 10px; }
.workspace-state.is-offline { color: #66778f; background: #f5f7fb; border-color: var(--a-border); }
.workspace-empty { padding: 25px 0; color: #66778f; font-size: 12px; }
.workspace-empty b { display: block; margin-bottom: 5px; color: var(--a-ink); font-size: 13px; }

/* Game workspaces, shared tables and diagnostics. */
.trackstats-workspace { padding: 25px 26px 0; margin: 0 0 22px; border: 1px solid var(--a-border); border-radius: var(--a-radius); background: #ffffff; box-shadow: var(--a-shadow); }
.trackstats-head { align-items: center; margin-bottom: 21px; }
.trackstats-head h2 { margin-top: 5px; color: var(--a-ink); font-size: 27px; font-weight: 600; letter-spacing: -.045em; }
.trackstats-actions { display: flex; gap: 8px; }
.trackstats-tabs { gap: 7px; padding: 0; border: 0; }
.trackstats-tabs button { min-height: 39px; padding: 9px 15px; border: 1px solid var(--a-border); border-radius: 9px; color: #53647d; background: #ffffff; font-size: 12px; font-weight: 500; }
.trackstats-tabs button[aria-selected=true] { color: #ffffff; background: var(--a-brand); border-color: var(--a-brand); box-shadow: none; }
.trackstats-summary { display: flex; flex-wrap: wrap; gap: 9px 23px; padding: 17px 0; margin-top: 19px; border-top: 1px solid #eaf0f7; color: #66778f; font-size: 11px; }
.trackstats-summary b { margin-right: 4px; color: #243d60; font-weight: 600; }
.trackstats-subtabs { gap: 3px; padding: 0; margin: 0 -7px; }
.trackstats-subtabs button { padding: 12px 13px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: #66778f; background: transparent; font-size: 11px; }
.trackstats-subtabs button[aria-selected=true] { color: var(--a-brand-hover); background: transparent; border: 0; border-bottom: 2px solid var(--a-brand); }
body:has(#trackStatsWorkspace:not([hidden])) #dashboardOverview #tiles :is(.metric-value, .metric-label .icon), .bf-inventory .bi-card strong { color: var(--a-ink); }
html[data-astra-view=mam] #dashboardOverview { display: block; }
html[data-astra-view=mam] #tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
html[data-astra-view=mam] #allRate { display: none !important; }
#tiles .metric { min-height: 111px; padding: 18px 20px; }
.metric::after, .metric::before, .bi-card::before { display: none; }
.metric-foot:empty { display: none; }
html[data-astra-view=mam] #accControls { display: flex; flex-wrap: wrap; gap: 9px; padding: 15px 17px; margin: 22px 0 0; border: 1px solid var(--a-border); border-radius: 14px 14px 0 0; background: #ffffff; }
html[data-astra-view=mam] #accControls .search-box { flex: 1 1 250px; min-width: 0; }
html[data-astra-view=mam] #accControls :is(.control-spacer, .control-divider, .script-btn) { display: none; }
html[data-astra-view=mam] #accControls .control-btn { flex: 0 0 auto; width: auto; }
html[data-astra-view=mam] #accMeta { margin: 0; padding: 11px 17px; border: 1px solid var(--a-border); border-top: 0; border-radius: 0 0 14px 14px; background: #ffffff; }
html[data-astra-view=mam] #mamLiteControls { margin-top: 18px; }
.segmented, .view-tabs { display: inline-flex; align-items: center; gap: 3px; height: auto; padding: 3px; border: 1px solid var(--a-border); border-radius: 10px; background: #f5f7fc; }
.segmented button, .view-tabs button { min-height: 32px; height: auto; padding: 7px 12px; color: #61718a; background: transparent; border: 1px solid transparent; border-radius: 7px; font-size: 11px; font-weight: 500; }
#app .segmented button.is-active, .workspace .view-tabs button.is-active, .fc-view-dialog .view-tabs button[aria-selected=true] { color: #2349bd !important; background: #ffffff !important; border-color: #e2e9f7 !important; box-shadow: 0 1px 4px #253f6e08; }
.table-panel, .account-health-table, .bf-inventory .bi-panel, .workspace .panel { border: 1px solid var(--a-border) !important; border-radius: 14px; background: #ffffff !important; box-shadow: var(--a-shadow); overflow: hidden; }
.account-health-table { overflow: auto; }
:is(#app, .workspace, #fcViewDialog) :is(.data-table, .bi-table, .fc-view-table table, .fc-table table, #tableWrap table) { border: 0; font-family: var(--font-ui); }
:is(#app, .workspace, #fcViewDialog) :is(.data-table, .bi-table, .fc-view-table table, .fc-table table, #tableWrap table) :is(th, td) { border-right: 0; border-left: 0; border-color: #eaf0f7; box-shadow: none; }
:is(#app, .workspace, #fcViewDialog) :is(.data-table, .bi-table, .fc-view-table table, .fc-table table, #tableWrap table) th { height: 45px; padding: 13px 15px; color: #61718a; background: #f8faff !important; font-size: 10px; font-weight: 600; letter-spacing: 0; text-transform: none; }
:is(#app, .workspace, #fcViewDialog) :is(.data-table, .bi-table, .fc-view-table table, .fc-table table, #tableWrap table) td { height: auto; padding: 16px 15px; color: #334b6b; background: #ffffff; font-size: 12px; }
:is(#app, .workspace, #fcViewDialog) :is(.data-table, .bi-table, .fc-view-table table, .fc-table table, #tableWrap table) tr:hover td { background: #f8faff; }
.data-table .account-name, .data-table .acc b, .bi-account b, .fc-cell-main { color: #20395d; font-size: 12px; font-weight: 600; }
.account-sub, .account-time, .bi-sub, .fc-cell-sub { color: #66778f; font-size: 10px; }
.table-foot, .fc-pager { background: #fbfcff; border-color: #eaf0f7; color: #66778f; font-size: 11px; }
:is(#app, .workspace) :is(.data-table, .bi-table) :is(.fbtn, .act-btn, .button), .bi-row-actions button { min-height: 31px; padding: 6px 9px; font-size: 10px; border-radius: 7px; }
#app :is(.account-cookie, .bi-cookie) .cookie-action { min-height: 32px; padding: 6px 9px; color: #274d9e !important; background: #edf3ff; border-color: #c5d4f3 !important; font-size: 10px; }
#app :is(.account-cookie, .bi-cookie) .cookie-action:disabled { color: #66748a !important; background: #f3f5f9 !important; border-color: #dbe2ec !important; opacity: 1; }
.bf-inventory .bi-layout { gap: 19px; grid-template-columns: 234px minmax(0, 1fr); }
.bf-inventory.bi-filters-collapsed .bi-layout { grid-template-columns: minmax(0, 1fr); }
.bf-inventory .bi-filters { padding: 17px 15px; border: 1px solid var(--a-border); border-radius: 14px; background: #ffffff; }
.bf-inventory :is(.bi-range-box, .bi-group) { border-color: var(--a-border); border-radius: 9px; background: #fbfcff; }
.bf-inventory .bi-field > span, .bf-inventory .bi-filter-section h3, .bf-inventory .bi-row-label { color: #61718a; font-size: 10px; }
.bf-inventory .bi-status { background: #f5f7fc; border-color: var(--a-border); }
.bf-inventory .bi-status button { color: #61718a; }
.bf-inventory .bi-status button[aria-pressed=true] { color: #2349bd; background: #ffffff; border-color: #dce5fb; }
.bf-inventory .bi-presets button, .bf-inventory button.bi-highlight { color: #53647d; background: #f8faff; border-color: #e2e9f7; }
.bf-inventory .bi-card { padding: 17px; }
.bf-inventory .bi-cards { gap: 10px; }
.bf-inventory .bi-section-heading h3 { color: #334b6b; font-size: 13px; font-weight: 600; }
.bf-inventory .bi-results-tools { padding: 13px 15px; gap: 8px; background: #ffffff; }
.bf-inventory .bi-results-tools > strong { font-size: 11px; color: #61718a; }
.bf-inventory .bi-pagination { padding: 10px 15px; background: #fbfcff; border-color: #eaf0f7; }
.bf-inventory .bi-chip { color: #455c7e; background: #f2f5fc; border-color: #e0e8f5; border-radius: 6px; }
.bf-inventory .bi-chip.bi-chip-warn { color: #8b5c0b; background: #fff7e8; }
.account-health-cards { gap: 22px; margin: 23px 0; }
.account-status-section h3 { margin-bottom: 11px; padding-left: 0; color: #334b6b; font-size: 13px; font-weight: 600; }
.account-status-section h3::before { display: none; }
.account-status-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.join-status-section .account-status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.account-status-card { --bucket-color: #6748ad; --bucket-bg: #f4f0ff; padding: 17px 15px; border: 1px solid var(--a-border); border-radius: 13px; background: #ffffff; box-shadow: var(--a-shadow); }
.account-status-card.bucket-live, .account-status-card.bucket-no_captcha { --bucket-color: #187451; --bucket-bg: #edf8f2; }
.account-status-card.bucket-dead, .account-status-card.bucket-permanently_banned { --bucket-color: #ac354c; --bucket-bg: #fff0f3; }
.account-status-card.bucket-warning { --bucket-color: #8b5c0b; --bucket-bg: #fff7e8; }
.account-status-card.bucket-captcha_v2 { --bucket-color: #285fb1; --bucket-bg: #edf4ff; }
.account-status-card.is-empty { opacity: 1; }
.account-status-name { display: inline-flex; padding: 4px 6px; margin: 0 0 9px; border-radius: 5px; color: var(--bucket-color); background: var(--bucket-bg); font-size: 9px; font-weight: 600; }
.account-status-value { margin: 0 0 13px; }
.account-status-value strong { color: var(--a-ink); font: 600 28px/1.2 var(--font-ui); letter-spacing: -.045em; }
.account-status-value > span { color: #66778f; font-size: 10px; }
.account-status-actions { gap: 6px; }
.account-status-actions button { min-height: 29px; padding: 6px; border: 1px solid var(--a-border); border-radius: 7px; color: #53647d; background: #ffffff; font-size: 9px; }
.account-status-actions button:hover:not(:disabled) { color: var(--a-brand-hover); background: var(--a-tint); }
.account-status-actions button:disabled { color: #8796ab; background: #f8faff; border-color: #eaf0f7; opacity: 1; cursor: not-allowed; }
.account-status-actions svg { width: 11px; height: 11px; }
.account-action-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 24px 0 13px; }
.account-action-toolbar > strong { color: #334b6b; font-size: 14px; font-weight: 600; }
.account-health-panel > .controls { padding: 15px; border: 1px solid var(--a-border); border-radius: 13px; background: #ffffff; }
.account-health-panel .controls .search-box { border-color: var(--a-border-strong); }
.account-health-pager { gap: 12px; margin: 14px 0; font-size: 11px; }
.account-health-message:empty { display: none; }
.account-health-state, .fc-status, .pill { border: 1px solid #dfe6f1; border-radius: 6px; color: #61718a; background: #f5f7fb; font: 500 10px/1.4 var(--font-ui); }
.state-online, .state-auth_ok, .fc-status.is-online { color: var(--a-success); background: var(--a-success-bg); border-color: #d6ebdf; }
.state-permanently_banned, .state-banned, .fc-status.is-error { color: var(--a-danger); background: var(--a-danger-bg); border-color: #f0d5dd; }
.state-facelock { color: var(--a-violet); background: var(--a-violet-bg); border-color: #e3daf4; }
.state-network_error, .state-auth_invalid, .state-access_denied { color: var(--a-warning); background: var(--a-warning-bg); border-color: #f0e1c3; }

/* The same pagination primitive on every table family. */
:is(#app, .workspace, #fcViewDialog) :is(.page-tools, .pager, .pagination, .fc-pager, .bf-track-pager, .bi-pagination) { --page-control-height: 34px; --page-control-bg: #ffffff; --page-control-text: #405774; --page-control-border: #cbd7e8; color: #53647d; font: 400 11px/1.5 var(--font-ui); font-variant-numeric: tabular-nums; }
:is(#app, .workspace, #fcViewDialog) :is(.page-tools, .pager, .pagination) { display: flex; align-items: center; gap: 8px; }
:is(#app, .workspace, #fcViewDialog) .page-tools { flex-wrap: wrap; justify-content: flex-end; }
:is(#app, .workspace, #fcViewDialog) :is(.page-size, .per-page, .pagination > label) { display: inline-flex; align-items: center; gap: 8px; padding: 0; color: #53647d; background: transparent; font: inherit; white-space: nowrap; }
:is(#app, .workspace, #fcViewDialog) :is(.page-size, .per-page, .pagination, .bi-pagination) select { appearance: none; color-scheme: light; min-height: var(--page-control-height); height: var(--page-control-height); min-width: 68px; width: auto; padding: 6px 29px 6px 11px; border: 1px solid var(--page-control-border); border-radius: 8px; color: var(--page-control-text); background-color: var(--page-control-bg); font: inherit; box-shadow: none; cursor: pointer; }
:is(#app, .workspace, #fcViewDialog) :is(.page-size, .per-page, .pagination, .bi-pagination) select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' stroke='%2353647d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 10px center; background-repeat: no-repeat; }
:is(#app, .workspace, #fcViewDialog) :is(.pager, .pagination, .fc-pager, .bf-track-pager, .bi-pagination) button { display: inline-flex; align-items: center; justify-content: center; min-width: var(--page-control-height); min-height: var(--page-control-height); height: var(--page-control-height); padding: 6px 11px; border: 1px solid var(--page-control-border); border-radius: 8px; color: var(--page-control-text); background: var(--page-control-bg); font: inherit; box-shadow: none; opacity: 1; filter: none; cursor: pointer; }
:is(#app, .workspace, #fcViewDialog) .pager button { width: var(--page-control-height); padding: 0; }
:is(#app, .workspace, #fcViewDialog) .pager button .icon { width: 14px; height: 14px; }
:is(#app, .workspace, #fcViewDialog) :is(.pager, .pagination, .fc-pager, .bf-track-pager, .bi-pagination) button:hover:not(:disabled), :is(#app, .workspace, #fcViewDialog) :is(.page-size, .per-page, .pagination, .bi-pagination) select:hover:not(:disabled) { color: #2349bd; background-color: #edf2ff; border-color: #a9bee8; }
:is(#app, .workspace, #fcViewDialog) :is(.pager, .pagination, .fc-pager, .bf-track-pager, .bi-pagination) button:disabled { color: #8796ab !important; background: #f5f7fb !important; border-color: #e4eaf3 !important; opacity: 1; filter: none; cursor: not-allowed; }
:is(#app, .workspace, #fcViewDialog) .pager span { display: inline-flex; align-items: center; justify-content: center; min-height: var(--page-control-height); min-width: 44px; padding: 0 4px; color: #53647d; background: transparent; font: inherit; }

/* Fleet and configuration library. */
.workspace .metrics { gap: 13px; margin-bottom: 24px; }
.workspace .metric { padding: 19px 21px; min-height: 110px; }
.workspace .metric > strong { margin-top: 10px; }
.fc-panel, body.is-config-library .fc-panel { padding: 24px; margin-bottom: 22px; border: 1px solid var(--a-border) !important; border-radius: var(--a-radius); background: #ffffff !important; box-shadow: var(--a-shadow); }
.fc-heading { align-items: center; gap: 20px; margin: 0 0 20px; padding-bottom: 19px; border-bottom: 1px solid #eaf0f7; }
.fc-heading h2, body.is-config-library .fc-heading h2 { color: var(--a-ink); font-size: 23px; font-weight: 600; letter-spacing: -.04em; }
.fc-heading .eyebrow { color: #617697; font-size: 9px; }
.fc-library-toolbar { gap: 9px; flex-wrap: wrap; }
.fc-library-toolbar input { min-width: 0; background-color: #ffffff; }
.fc-library-toolbar .quiet-label { font-size: 10px; }
.fc-library-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 19px 0; padding: 16px 18px; border: 1px solid #e3eaf7; border-radius: 12px; background: #f8faff; }
.fc-library-summary article { display: flex; align-items: baseline; gap: 11px; min-width: 0; }
.fc-library-summary strong { color: #264ba2; font-size: 23px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.fc-library-summary span { color: #61718a; font-size: 10px; }
.fc-message { padding: 0; margin-bottom: 16px; border: 0; color: #66778f; background: transparent; font-size: 11px; }
.fc-message.is-error { padding: 11px 13px; border: 1px solid #f0d5dd; border-radius: 9px; color: var(--a-danger); background: var(--a-danger-bg); }
.fc-bundles, body.is-config-library .fc-bundles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 17px; }
.fc-pack { display: flex; flex-direction: column; padding: 21px; gap: 0; min-width: 0; border: 1px solid var(--a-border); border-radius: 14px; background: #ffffff !important; box-shadow: none; }
.fc-pack:hover { border-color: #b9c9e9 !important; box-shadow: 0 5px 18px #263d6508; background: #ffffff !important; }
.fc-pack-top { align-items: center; gap: 11px; margin-bottom: 18px; }
.fc-pack-top h3 { margin: 0 0 3px; color: #20395d; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.fc-pack-top p { color: #66778f; font-size: 11px; }
.fc-pack-icon, .fc-pack-icon.is-blox { width: 41px; height: 41px; border: 1px solid #e0e8fb; border-radius: 11px; color: var(--a-brand); background: var(--a-tint); font-size: 10px; }
.fc-pack-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 0; margin-bottom: 0; border-top: 1px solid #eaf0f7; border-bottom: 1px solid #eaf0f7; }
.fc-pack-meta > span { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: #66778f; font-size: 10px; }
.fc-pack-meta b { color: #20395d; font-size: 23px; font-weight: 600; line-height: 1.4; }
.fc-pack-meta > span:last-child b { font-size: 16px; white-space: nowrap; }
.fc-assignment, .fc-pack .fc-assignment { margin: 14px 0 18px; color: #66778f; font-size: 11px; line-height: 1.7; }
.fc-card-primary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.fc-card-primary .button { width: 100%; padding: 9px 7px; font-size: 10px; white-space: normal; }
#fcBundles .fc-card-primary .button { min-width: 0; padding: 9px 7px; font-size: 12px; white-space: normal; }
.fc-pack > .fc-actions { flex-wrap: wrap; gap: 7px; padding-top: 12px; margin-top: 13px; border-top: 1px solid #eaf0f7; }
.workspace .fc-pack > .fc-actions .button { flex: 1 1 auto; min-height: 32px; padding: 7px 8px; border-color: #e1e8f4; color: #53647d; background: #f8faff; font-size: 9px; }
.workspace .fc-pack > .fc-actions .button.primary { color: #315bd5 !important; background: #edf2ff !important; border-color: #dce5fb !important; box-shadow: none; }
.workspace .fc-pack > .fc-actions .button:disabled { color: #8796ab !important; background: #f8faff !important; border-color: #eaf0f7 !important; }
.workspace .fc-pack > .fc-actions .fc-remove { flex: 0 0 auto; color: var(--a-danger); background: #ffffff; }
.fc-machine { padding: 19px; border-color: var(--a-border); border-radius: 12px; background: #f8faff !important; }
.fc-machine strong { color: #243d60; }
.fc-machine p { color: #61718a; font-size: 11px; }
.fc-history { padding-top: 16px; border-top: 1px solid #eaf0f7; color: #61718a; }
.fc-history summary { font-size: 11px; }
.fc-inventory-toggle { padding: 15px 18px; border: 1px solid var(--a-border); border-radius: 12px; color: #53647d; background: #ffffff; }
.panel-head, .toolbar { gap: 12px; background: #ffffff; border-color: #eaf0f7; }
.bulkbar { background: var(--a-tint); border-color: #dce5fb; color: #315bd5; }
#savedInventoryPanel .panel-head, #savedInventoryPanel .toolbar { background: var(--a-surface); background-image: none; color: var(--a-ink); border-color: var(--a-border); }
#savedInventoryPanel .table-foot { background: var(--a-subtle); background-image: none; color: var(--a-muted); border-color: var(--a-border); font-size: 12px; }
#savedInventoryPanel .bulkbar { background: var(--a-tint); color: var(--a-brand-hover); border-color: #dce5fb; }
#savedInventoryPanel #tableRows td { color: #334b6b; font: 400 13px/1.6 var(--font-ui); }
#savedInventoryPanel #tableRows td > b { color: var(--a-ink); font: 600 14px/1.6 var(--font-ui); }
#savedInventoryPanel #tableRows td > small { color: var(--a-muted); font: 400 12px/1.6 var(--font-ui); }
#savedInventoryPanel .badge, #savedInventoryPanel .badge.pending { padding: 4px 8px; color: var(--a-brand-hover); background: var(--a-tint); border: 1px solid #dce5fb; border-radius: 6px; font: 500 11px/1.5 var(--font-ui); }
#savedInventoryPanel .proxy-button { min-height: 32px; padding: 6px 10px; color: var(--a-brand-hover); background: var(--a-subtle); border: 1px solid var(--a-border-strong); border-radius: 8px; font: 500 12px/1.5 var(--font-ui); }
#savedInventoryPanel .proxy-button:hover:not(:disabled) { color: var(--a-brand-hover); background: var(--a-tint); border-color: #a9bee8; }
#savedInventoryPanel .proxy-button:disabled { color: #8190a4; background: #f5f7fb; border-color: #e4eaf3; opacity: 1; cursor: not-allowed; }
#savedInventoryPanel .endpoint { color: var(--a-muted); background: var(--a-subtle); border-color: var(--a-border); font: 400 12px/1.6 var(--font-ui); }
#savedInventoryPanel #tableRows tr:has(input:checked) td { background: var(--a-tint); }
#savedInventoryPanel #tableRows .empty { color: var(--a-muted); }
#savedInventoryPanel #tableRows .empty strong { color: var(--a-ink); }
.empty, .fc-empty, .farm-empty, .farm-none { color: #66778f; font-size: 12px; }
.fc-empty { padding: 32px; border: 1px dashed #d6e0f0; border-radius: 12px; background: #fbfcff; }
.fc-empty strong { color: #334b6b; font-weight: 600; }

/* Every overlay shares the same shell, fields, feedback and footer. */
dialog:is(.dialog, .drawer, .cookie-dialog, .bf-inventory-dialog), #tapSecretDialog { color-scheme: light; color: var(--a-ink); background: #ffffff; border: 1px solid #d4dfef; border-radius: 18px; max-width: calc(100vw - 28px); max-height: calc(100dvh - 28px); box-shadow: 0 28px 100px #152a4d33; }
body[data-astra-page=fleet] dialog:is(.dialog, .drawer) { color-scheme: light; color: var(--a-ink); background: var(--a-surface); border-color: var(--a-border-strong); }
dialog::backdrop { background: #14274466; backdrop-filter: blur(5px); }
.dialog[open], .drawer[open] { display: flex; flex-direction: column; overflow: hidden; }
.dialog-form { display: flex; flex-direction: column; min-height: 0; max-height: inherit; }
.dialog-head, #fcBundleDialog .dialog-head { flex: 0 0 auto; padding: 23px 26px; border-bottom: 1px solid #eaf0f7; background: #ffffff; }
.dialog-head h2, #fcBundleDialog .dialog-head h2 { color: #20395d; font-size: 22px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.dialog-head .eyebrow, #fcBundleDialog .eyebrow { display: block; margin-bottom: 6px; color: #617697; font-size: 9px; }
.dialog-body, #fcBundleDialog .dialog-body { min-height: 0; overflow: auto; padding: 24px 26px; background: #ffffff; }
.dialog-foot, #fcBundleDialog .dialog-foot { flex: 0 0 auto; gap: 10px; padding: 17px 26px; border-top: 1px solid #eaf0f7; color: #61718a; background: #fbfcff; }
.fc-view-dialog { width: min(900px, calc(100vw - 32px)); padding: 0; }
.fc-view-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.fc-view-meta > div { min-width: 0; padding: 13px; border: 1px solid #e4ebf7; border-radius: 9px; background: #f8faff; }
.fc-view-meta span { display: block; color: #66778f; font-size: 10px; margin-bottom: 5px; }
.fc-view-meta strong { color: #243d60; font-size: 12px; overflow-wrap: anywhere; }
.fc-view-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; }
.fc-view-toolbar .search-field { flex: 1 1 220px; max-width: 300px; }
.fc-view-toolbar input { width: 100%; }
.fc-view-table { max-height: 340px; border: 1px solid var(--a-border); border-radius: 10px; }
.fc-view-dialog table { width: 100%; border-collapse: collapse; }
.fc-view-dialog th, .fc-view-dialog td { white-space: nowrap; text-align: left; }
.fc-view-dialog th { position: sticky; top: 0; z-index: 1; }
.fc-view-dialog .feedback:empty { display: none; }
.fc-view-dialog .dialog-foot { flex-wrap: wrap; justify-content: flex-end; }
.fc-view-dialog .dialog-foot .quiet-label { margin-right: auto; font-size: 10px; }
#fcBundleDialog .fc-saved-picker { padding: 13px; border-color: #dfe7f5; border-radius: 10px; background: #f8faff; }
#fcBundleDialog .fc-saved-picker summary { color: #334b6b; font-size: 12px; }
#fcBundleDialog .field :is(input, select, textarea) { color: var(--a-ink); -webkit-text-fill-color: var(--a-ink); background-color: #ffffff; border-color: var(--a-border-strong); border-radius: var(--a-control-radius); }
#fcBundleDialog option:checked { color: #ffffff; -webkit-text-fill-color: #ffffff; background: #315bd5 linear-gradient(#315bd5, #315bd5); }
#fcBundleDialog option:disabled { color: #76879f; -webkit-text-fill-color: #76879f; background: #f5f7fb; }
.feedback, #fcBundleDialog .feedback, .design-error { color: var(--a-danger); font-size: 12px; line-height: 1.7; }
.cookie-dialog { width: min(480px, calc(100vw - 28px)); padding: 28px; }
.cookie-dialog h2 { margin: 9px 0 12px; color: #20395d; font-size: 24px; }
.cookie-dialog p { color: #61718a; font-size: 13px; line-height: 1.8; }
.cookie-dialog .design-dialog-actions { display: flex; gap: 10px; margin-top: 24px; }
.inventory-dialog { width: min(800px, calc(100vw - 28px)); }
.inventory-sections section { background: #f8faff; border-color: var(--a-border); border-radius: 10px; }
.inventory-sections h3 { color: #334b6b; font-size: 12px; }
.inventory-sections span { color: #53647d; background: #ffffff; border-color: #dfe7f5; font-family: var(--font-ui); font-size: 11px; }
.inventory-sections small { color: #66778f; }
#tapSecretDialog, #tapSecretDialog :is(th, td) { color: #334b6b; background: #ffffff; border-color: var(--a-border); }
.tap-secret-scroll, .tap-secret-scroll th { color: #61718a; background: #f8faff; border-color: var(--a-border); }
.tap-secret-columns h4 { color: var(--a-brand-hover); }
.toast { padding: 13px 17px; border: 1px solid #d6ebdf; border-radius: 11px; color: var(--a-success); background: #edf8f2; box-shadow: var(--a-shadow-raised); font: 500 12px/1.5 var(--font-ui); }
.toast.is-error { color: var(--a-danger); background: var(--a-danger-bg); border-color: #f0d5dd; }

/* Sign-in is part of the product, not a separate theme. */
#authGate { padding: 36px 24px; overflow: auto; background: radial-gradient(ellipse at 20% 20%, #e8efff, transparent 60%), #f5f7fb; }
#authGate .shell { display: grid; grid-template-columns: 1.05fr 1fr; width: min(1010px, 100%); min-height: 610px; border: 1px solid #dce5f2; border-radius: 22px; overflow: hidden; background: #ffffff; box-shadow: 0 24px 75px #263d6512; }
#authGate .art { padding: 38px; border: 0; background: linear-gradient(145deg, #142e54, #254ba7); }
#authGate .auth-eyebrow { color: #dce6ff; font-size: 9px; letter-spacing: .13em; }
#authGate .art img.logo { width: 44px; height: 44px; margin-top: 49px; border-radius: 12px; box-shadow: none; }
#authGate .art h2 { margin-top: 21px; color: #ffffff; -webkit-text-fill-color: currentColor; font-size: 43px; font-weight: 600; letter-spacing: -.045em; line-height: 1.14; }
#authGate .art p { margin-top: 18px; color: #dce6ff; font-size: 12px; line-height: 1.8; }
#authGate .auth-capabilities { gap: 13px; margin-top: 35px; color: #a9c2fa; font-size: 10px; }
#authGate .auth-capabilities span { padding-top: 13px; border-top: 1px solid #ffffff20; }
#authGate .auth-capabilities b { color: #edf3ff; font-size: 11px; font-weight: 400; }
#authGate .form { padding: 43px 47px; margin: 0; background: #ffffff; }
#authGate .auth-brand { margin-bottom: 29px; }
#authGate .auth-brand img { width: 34px; height: 34px; border-radius: 9px; }
#authGate .form h1 { color: var(--a-ink); font-size: 30px; font-weight: 600; letter-spacing: -.04em; }
#authGate .form .sub { color: #66778f; font-size: 12px; line-height: 1.8; }
#authGate label { margin: 20px 0 8px; color: #3b506d; font-size: 12px; font-weight: 500; }
#authGate input:not(.hp) { height: 45px; min-height: 45px; border-radius: 9px; font-size: 13px; }
#authGate .auth-password button { min-height: 28px; padding: 4px 7px; border: 0; color: #53647d; background: transparent; font: 500 10px var(--font-ui); }
#authGate button.go { min-height: 44px; border-radius: 9px; font-size: 12px; font-weight: 500; }
#authGate .link { padding-top: 17px; color: #66778f; font-size: 11px; line-height: 1.8; }

/* Public landing: the same font, product cards, spacing and interaction accent. */
body[data-astra-page=landing] { background: #fbfcff; }
body[data-astra-page=landing] .wrap { width: min(1200px, calc(100% - 64px)); max-width: 1200px; padding-left: 0; padding-right: 0; }
body[data-astra-page=landing] .nav { height: 84px; border-bottom: 1px solid #e6edf7; }
body[data-astra-page=landing] .brand { gap: 10px; color: var(--a-ink); font-size: 18px; font-weight: 650; letter-spacing: -.04em; }
body[data-astra-page=landing] .brand img { border-radius: 10px; box-shadow: none; }
body[data-astra-page=landing] .navlinks { color: #61718a; font-size: 12px; font-weight: 400; }
body[data-astra-page=landing] .hero { grid-template-columns: 1.05fr 1fr; gap: 65px; padding-top: 77px; padding-bottom: 79px; background: none; }
body[data-astra-page=landing] .hero .eyebrow { padding: 6px 10px; border: 1px solid #dfe7f5; border-radius: 7px; color: #536f9e; background: #f5f8ff; font-size: 9px; letter-spacing: .07em; }
body[data-astra-page=landing] .hero h1 { margin: 22px 0 21px; color: var(--a-ink); font-size: clamp(39px, 4.3vw, 62px); font-weight: 600; letter-spacing: -.04em; line-height: 1.12; }
body[data-astra-page=landing] .hero h1 span { color: var(--a-brand); background: none; -webkit-text-fill-color: currentColor; animation: none; }
body[data-astra-page=landing] .lede { max-width: 430px; margin-bottom: 27px; color: #61718a; font-size: 14px; line-height: 1.85; }
body[data-astra-page=landing] .hero-actions { gap: 9px; }
body[data-astra-page=landing] .hero-actions .btn { min-height: 43px; padding: 11px 17px; }
.landing-assurance { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; color: #66778f; font-size: 10px; }
.landing-assurance span { display: inline-flex; align-items: center; gap: 5px; }
.landing-assurance svg { width: 13px; height: 13px; color: #315bd5; }
body[data-astra-page=landing] .preview { padding: 0; border: 1px solid #d9e3f5; border-radius: 18px; background: #ffffff !important; box-shadow: 0 22px 60px #263d6512, 0 0 0 8px #f0f4fc; transform: none; }
body[data-astra-page=landing] .preview::after { display: block; background: linear-gradient(110deg, transparent 28%, #6197ff12 48%, transparent 68%); }
body[data-astra-page=landing] .preview-top { padding: 14px 18px; background: #f8faff; border-color: #e6edf7; }
.preview-window-dots { display: flex; gap: 4px; }
.preview-window-dots i { width: 5px; height: 5px; border-radius: 50%; background: #c3cee1; }
body[data-astra-page=landing] .preview-label { color: #61718a; font-size: 9px; letter-spacing: .09em; }
body[data-astra-page=landing] .preview-demo { color: #73839b; font-size: 8px; }
body[data-astra-page=landing] .preview-content { padding: 24px; }
body[data-astra-page=landing] .pv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 21px; }
body[data-astra-page=landing] .pv-head b { color: #20395d; font-size: 21px; letter-spacing: -.035em; }
body[data-astra-page=landing] .pv-head small { display: block; margin-top: 5px; color: #73839b; font-size: 10px; }
.preview-action { display: inline-flex; padding: 7px 9px; border-radius: 7px; color: #ffffff; background: #315bd5; font-size: 9px; white-space: nowrap; }
.landing-demo-tabs { display: flex; gap: 16px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid #eaf0f7; color: #73839b; font-size: 10px; }
.landing-demo-tabs b { position: relative; color: #315bd5; font-weight: 500; }
.landing-demo-tabs b::after { content: ''; position: absolute; left: 0; right: 0; bottom: -11px; height: 2px; background: #315bd5; border-radius: 2px; }
body[data-astra-page=landing] .landing-config { gap: 12px; margin: 10px 0; padding: 15px; border: 1px solid #e0e8f5; border-radius: 11px; background: #ffffff; }
body[data-astra-page=landing] .landing-config b { color: #243d60; font-size: 11px; }
body[data-astra-page=landing] .landing-config small { margin-top: 4px; color: #73839b; font-size: 9px; }
body[data-astra-page=landing] .landing-file-icon { width: 34px; height: 38px; border: 1px solid #dce5fb; border-radius: 8px; color: #315bd5; background: #f2f5fd; font-size: 8px; }
body[data-astra-page=landing] .tag { padding: 4px 6px; border-radius: 5px; border-color: #d6ebdf; color: #187451; background: #edf8f2; font-size: 9px; }
body[data-astra-page=landing] .tag.wait { color: #61718a; background: #f5f7fb; border-color: #e0e8f5; }
body[data-astra-page=landing] .landing-manager { margin-top: 17px; padding: 14px 0 0; border: 0; border-top: 1px solid #eaf0f7; background: transparent; }
body[data-astra-page=landing] .landing-manager b { color: #53647d; font-size: 10px; }
body[data-astra-page=landing] .landing-manager small { color: #73839b; font-size: 9px; }
body[data-astra-page=landing] .landing-manager-label { color: #61718a; background: #f5f7fb; border-color: #e0e8f5; font-size: 8px; }
body[data-astra-page=landing] .landing-preview-foot { padding-top: 18px; color: #73839b; font-size: 9px; }
body[data-astra-page=landing] .section { padding-top: 36px; padding-bottom: 40px; }
body[data-astra-page=landing] .section-head { max-width: 680px; margin-bottom: 28px; }
body[data-astra-page=landing] .section-head .kicker { color: #617697; font-size: 9px; letter-spacing: .12em; }
body[data-astra-page=landing] .section-head h2 { margin-top: 12px; color: var(--a-ink); font-size: 32px; font-weight: 600; letter-spacing: -.045em; }
body[data-astra-page=landing] .section-head p { margin-top: 10px; color: #61718a; font-size: 13px; }
body[data-astra-page=landing] .feature-grid { gap: 17px; }
body[data-astra-page=landing] .feature { padding: 26px; border: 1px solid var(--a-border); border-radius: 14px; background: #ffffff !important; box-shadow: var(--a-shadow); }
body[data-astra-page=landing] .feature:hover, body[data-astra-page=landing] .step:hover { transform: none; border-color: #b8c9eb; box-shadow: var(--a-shadow-raised); }
body[data-astra-page=landing] .iconbox, body[data-astra-page=landing] .stepnum { color: #315bd5; background: #edf2ff; border: 1px solid #dce5fb; border-radius: 10px; font: 600 11px var(--font-ui); }
body[data-astra-page=landing] .feature h3 { margin: 18px 0 10px; color: #243d60; font-size: 16px; font-weight: 600; }
body[data-astra-page=landing] .feature p, body[data-astra-page=landing] .step p { color: #61718a; font-size: 12px; line-height: 1.85; }
body[data-astra-page=landing] .step { padding: 23px; border: 1px solid var(--a-border); border-radius: 14px; background: #ffffff !important; box-shadow: var(--a-shadow); }
body[data-astra-page=landing] .step b { color: #243d60; font-size: 14px; font-weight: 600; }
body[data-astra-page=landing] .cta { padding: 31px; border: 1px solid #dce5fb; border-radius: 17px; background: #f0f4ff !important; box-shadow: none; }
body[data-astra-page=landing] .cta h2 { color: #243d60; font-size: 26px; font-weight: 600; }
body[data-astra-page=landing] .cta p { color: #61718a; font-size: 12px; }
body[data-astra-page=landing] .footer { margin-top: 20px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--a-border); color: #66778f; font-size: 11px; }

/* The standalone legacy key page remains visually consistent; behavior is unchanged. */
body[data-astra-page=keygen] { min-height: 100dvh; padding: 36px 20px; color: var(--a-ink); background: var(--a-canvas); }
body[data-astra-page=keygen] .wrap { max-width: 500px; }
body[data-astra-page=keygen] .card { padding: 30px; border: 1px solid var(--a-border); border-radius: 18px; background: #ffffff; box-shadow: var(--a-shadow-raised); }
body[data-astra-page=keygen] .logo { border: 0; border-radius: 9px; background: #ffffff url('/logo.webp') center/cover; box-shadow: none; }
body[data-astra-page=keygen] .brand { color: var(--a-ink); }
body[data-astra-page=keygen] .brand span { color: #617697; font-size: 9px; }
body[data-astra-page=keygen] h1 { color: var(--a-ink); font-size: 28px; font-weight: 600; }
body[data-astra-page=keygen] .sub, body[data-astra-page=keygen] .foot { color: #66778f; font-size: 12px; }
body[data-astra-page=keygen] :is(.primary, .secondary, .linkbtn) { min-height: 41px; border-radius: 9px; font-weight: 500; }
body[data-astra-page=keygen] .primary { color: #ffffff; background: var(--a-brand); }
body[data-astra-page=keygen] .secondary { color: #53647d; background: #ffffff; border-color: var(--a-border-strong); }
body[data-astra-page=keygen] .tab { color: #61718a; background: #f8faff; border-color: var(--a-border); font-weight: 500; }
body[data-astra-page=keygen] .tab.on { color: #315bd5; background: #edf2ff; border-color: #dce5fb; }
body[data-astra-page=keygen] .keybox { color: #2349bd; background: #f8faff; border-color: #b8c9eb; }

/* Explicit Motion: On wins over legacy reduced-motion CSS; Off remains a complete stop. */
:root[data-astra-motion=on] .intro-hero .map-orbit-inner { animation-duration: 22s !important; animation-direction: reverse !important; }
:root[data-astra-motion=on] .live-dot::after, :root[data-astra-motion=on] .online-dot::after { display: block; }
:root[data-astra-motion=on] body[data-astra-page=landing] .hero h1 span { background: linear-gradient(105deg, #2349bd 15%, #5483ed 45%, #2349bd 75%); background-size: 200% 100%; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
:root[data-astra-motion=on] :is(.workspace-stat, .workspace-game, .fc-pack, .fc-machine, .metric, .bfcard, .bi-card, .feature, .step) { transition: translate .28s var(--motion-ease), border-color .25s ease, box-shadow .25s ease !important; }
:root[data-astra-motion=on] :is(.design-primary, .design-secondary, .button, .btn, .control-btn, .act-btn, .head-refresh) { transition: translate .22s var(--motion-ease), scale .18s var(--motion-ease), background-color .2s ease, border-color .2s ease, box-shadow .2s ease !important; }
:root[data-astra-motion=on] :is(.side-item, .navigation > a) { transition: background-color .22s ease, color .22s ease, translate .25s var(--motion-ease) !important; }
:root[data-astra-motion=on] .motion-toggle[aria-pressed=true] { color: #2349bd; background: #edf2ff; border-color: #cfddfb; }
@media (hover: hover) and (pointer: fine) {
  :root[data-astra-motion=on] :is(.workspace-stat, .workspace-game, .fc-pack, .fc-machine, .metric, .bi-card, .feature, .step):hover { translate: 0 -4px; box-shadow: 0 12px 26px #263d650d !important; }
}
:root[data-astra-motion=off] :is(.design-primary, .design-secondary, .button, .btn, .fbtn, .control-btn, .act-btn, .head-refresh, #agGo, .workspace-game-logo, .fc-pack-icon, .iconbox, .stepnum, .bi-card) { translate: none !important; scale: none !important; rotate: none !important; }

/* Responsive layout is shared by standalone and embedded workspaces. */
@media (min-width: 981px) { .app.is-sidebar-collapsed .sidebar { width: 0; flex-basis: 0; border: 0; } }
@media (max-width: 1180px) {
  .app .sidebar, .workspace > .sidebar { width: 218px; flex-basis: 218px; }
  .workspace { grid-template-columns: 218px minmax(0, 1fr); }
  .intro-hero { gap: 25px; padding: 30px; }
  html[data-astra-view=mam] #tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-astra-page=landing] .hero { gap: 35px; }
}
@media (max-width: 980px) {
  body:has(.app) { height: auto; min-height: 100dvh; overflow-x: clip; overflow-y: auto; }
  .app, .app .main { height: auto; min-height: 100dvh; overflow: visible; }
  .app .sidebar, .workspace > .sidebar { position: fixed; width: min(285px, 86vw); height: 100dvh; z-index: 90; box-shadow: 16px 0 65px #172c4920; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .main-inner { padding-left: 22px; padding-right: 22px; }
  #dashboardPageHead { padding-left: 22px; padding-right: 22px; margin-left: -22px; margin-right: -22px; }
  .main-inner.is-fleet-view { padding: 0 22px 16px; }
  .bf-inventory .bi-table-scroll, .account-health-table { max-height: none; }
  .intro-hero { grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 760px) {
  :root { --a-control-height: 42px; }
  .main-inner { padding: 0 16px 24px; }
  #dashboardPageHead { min-height: 81px; margin: 0 -16px 20px; padding: 15px 16px; gap: 10px; flex-wrap: wrap; }
  .page-title-wrap { flex: 1 1 180px; gap: 8px; }
  .page-title h1 { font-size: 18px; }
  .page-title p { max-width: 230px; font-size: 10px; line-height: 1.6; }
  .title-tile { display: none; }
  .head-actions { margin-left: auto; gap: 7px; }
  .head-actions .sync-pill { padding: 5px 7px; font-size: 9px; }
  #app .head-actions .motion-toggle { width: auto; min-height: 32px; padding: 6px 8px; font-size: 9px; }
  #app .head-actions .motion-toggle::after { content: none; }
  .workspace .topbar { padding-left: 16px; padding-right: 16px; }
  .workspace .topbar { flex-wrap: wrap; gap: 10px; }
  .workspace .topbar-stats { width: 100%; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
  .workspace main { padding: 23px 16px; }
  .workspace .page-head h1 { font-size: 24px; }
  .workspace .page-head, .workspace .page-actions { flex-wrap: wrap; }
  .workspace .page-head .page-actions .button { margin-top: 0; }
  #savedInventoryPanel .pagination { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
  .main-inner.is-fleet-view { padding: 0 14px 14px; }
  .main-inner.is-fleet-view #dashboardPageHead { margin-left: -14px; margin-right: -14px; }
  .intro-hero { grid-template-columns: 1fr; gap: 26px; min-height: 0; padding: 26px 23px; border-radius: 16px; }
  .intro-hero h2, .intro-hero h2 em { font-size: 35px; }
  .intro-hero p { max-width: none; font-size: 12px; margin: 15px 0 20px; }
  .intro-hero .intro-kicker { margin-bottom: 14px; font-size: 8px; }
  .intro-hero .workspace-connection-map { min-height: 250px; max-width: 300px; }
  .intro-hero .map-orbit { width: 204px; height: 204px; }
  .intro-hero .map-orbit-inner { width: 154px; height: 154px; }
  .workspace-snapshot { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 18px; }
  .snapshot-heading { flex-direction: row; justify-content: space-between; align-items: center; }
  .snapshot-row { padding: 12px 0 0; border-left: 0; border-top: 1px solid #eaf0f7; }
  .snapshot-heading + .snapshot-row { padding-top: 0; border-top: 0; }
  .workspace-metrics { gap: 10px; margin: 17px 0 27px; }
  .workspace-stat { padding: 15px; }
  .workspace-stat-label { gap: 7px; font-size: 10px; }
  .workspace-stat strong { margin-top: 10px; font-size: 27px; }
  .workspace-stat small { font-size: 10px; }
  .workspace-games { grid-template-columns: 1fr; gap: 14px; }
  .workspace-game { gap: 22px; padding: 20px; }
  .workspace-game h3 { font-size: 15px; }
  .workspace-game p { font-size: 10px; }
  .workspace-game-count { padding: 4px 5px; font-size: 8px; }
  .workspace-game-stats { gap: 10px; }
  .workspace-game-stats b { font-size: 22px; }
  .workspace-game-actions { flex-wrap: wrap; }
  .workspace-section-heading h2 { font-size: 16px; }
  .workspace-activity-list { padding: 0 15px; }
  .workspace-activity-row { flex-wrap: wrap; gap: 10px; }
  .workspace-activity .workspace-section-heading > .design-secondary { min-height: 34px; padding: 7px 9px; font-size: 10px; }
  .trackstats-workspace { padding: 19px 17px 0; border-radius: 14px; }
  .trackstats-head { margin-bottom: 17px; gap: 10px; flex-wrap: nowrap; }
  .trackstats-head h2 { font-size: 23px; }
  .trackstats-actions { width: auto; flex: 0 0 auto; }
  #app .trackstats-actions .control-btn { min-height: 35px; padding: 7px 10px; font-size: 10px; }
  .studio-eyebrow { font-size: 8px; }
  .trackstats-tabs button { min-height: 39px; padding: 9px 12px; font-size: 11px; }
  .trackstats-summary { gap: 8px 16px; font-size: 10px; padding: 14px 0; margin-top: 16px; }
  .trackstats-subtabs button { font-size: 11px; }
  html[data-astra-view=mam] #tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #tiles .metric { min-height: 100px; padding: 16px; }
  #tiles .metric-value { font-size: 27px; }
  html[data-astra-view=mam] #accControls { gap: 8px; padding: 13px; }
  html[data-astra-view=mam] #accControls .search-box { flex-basis: 100%; }
  html[data-astra-view=mam] #accControls #statusFilter { flex: 1 1 100%; }
  html[data-astra-view=mam] #accControls .control-btn { flex: 1 1 120px; }
  html[data-astra-view=mam] #accMeta { flex-wrap: wrap; padding: 11px 13px; gap: 10px; }
  :is(#app, #authGate, .workspace, dialog, body[data-astra-page]) :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not(.hp), select, textarea) { font-size: 16px; }
  .account-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .join-status-section .account-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-status-card { padding: 14px; }
  .account-status-name { font-size: 9px; }
  .account-status-actions { grid-template-columns: 1fr; }
  .account-status-actions button { min-height: 32px; font-size: 10px; }
  .account-health-panel > .controls { padding: 13px; }
  .account-health-panel .controls .control-btn { flex: 1 1 120px; width: auto; }
  .bf-inventory .bi-card { padding: 14px; }
  .bf-inventory .bi-card strong { font-size: 26px; }
  .bf-inventory .bi-card > span { font-size: 10px; }
  .bf-inventory .bi-results-tools { padding: 12px; gap: 8px; }
  .bf-inventory .bi-results-tools > strong { flex-basis: 100%; }
  .bf-inventory .bi-results-tools .bi-spacer { display: none; }
  .bf-inventory .bi-results-tools button.track-copy-all { flex: 1 1 100%; }
  .bf-inventory .bi-results-tools .bi-inline-field { margin-left: auto; }
  :is(#app, .workspace, #fcViewDialog) :is(.page-tools, .pager, .pagination, .fc-pager, .bf-track-pager, .bi-pagination) { --page-control-height: 40px; }
  :is(#app, .workspace, #fcViewDialog) :is(.page-size, .per-page, .pagination, .bi-pagination) select { font-size: 16px; }
  .fc-panel, body.is-config-library .fc-panel { padding: 18px 15px; border-radius: 14px; }
  .fc-heading h2, body.is-config-library .fc-heading h2 { font-size: 23px; }
  .fc-library-summary { padding: 13px 11px; gap: 10px; }
  .fc-library-summary article { flex-direction: column; gap: 5px; align-items: flex-start; }
  .fc-library-summary span { font-size: 9px; line-height: 1.5; }
  .fc-pack { padding: 18px; }
  .fc-view-dialog { width: calc(100vw - 22px); max-height: calc(100dvh - 22px); }
  .dialog-head, #fcBundleDialog .dialog-head { padding: 19px 17px; }
  .dialog-head h2 { font-size: 20px; }
  .dialog-body, #fcBundleDialog .dialog-body { padding: 19px 17px; }
  .dialog-foot, #fcBundleDialog .dialog-foot { padding: 15px 17px; }
  .fc-view-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-view-toolbar .search-field { max-width: none; flex-basis: 100%; }
  .fc-view-dialog .fc-pager { flex-wrap: wrap; gap: 7px; }
  .fc-view-dialog .fc-pager > span:first-child, .fc-view-dialog .dialog-foot .quiet-label { flex-basis: 100%; }
  .cookie-dialog { padding: 24px 20px; }
  #authGate { align-items: flex-start; padding: 18px 12px; }
  #authGate .shell { grid-template-columns: 1fr; width: 100%; min-height: 0; border-radius: 16px; }
  #authGate .art { display: block; padding: 25px; }
  #authGate .art img.logo { display: none; }
  #authGate .art h2 { margin-top: 17px; font-size: 32px; }
  #authGate .art p { max-width: none; margin-bottom: 0; font-size: 11px; }
  #authGate .auth-capabilities { display: none; }
  #authGate .form { padding: 28px 25px; }
  #authGate .auth-brand { display: none; }
  #authGate .form h1 { font-size: 27px; }
  body[data-astra-page=landing] .wrap { width: calc(100% - 36px); }
  body[data-astra-page=landing] .nav { height: 72px; }
  body[data-astra-page=landing] .navlinks { display: none; }
  body[data-astra-page=landing] .hero { grid-template-columns: 1fr; padding-top: 43px; padding-bottom: 38px; gap: 36px; }
  body[data-astra-page=landing] .hero h1 { font-size: 43px; }
  body[data-astra-page=landing] .lede { font-size: 13px; }
  body[data-astra-page=landing] .preview { box-shadow: 0 16px 35px #263d650f, 0 0 0 5px #f0f4fc; border-radius: 14px; }
  body[data-astra-page=landing] .preview-content { padding: 19px 16px; }
  body[data-astra-page=landing] .pv-head { display: flex; gap: 8px; }
  body[data-astra-page=landing] .pv-head b { font-size: 18px; }
  body[data-astra-page=landing] .preview-top { padding: 12px 14px; }
  body[data-astra-page=landing] .preview-label { font-size: 8px; }
  body[data-astra-page=landing] .landing-config { padding: 12px 10px; }
  body[data-astra-page=landing] .landing-manager-label { display: none; }
  body[data-astra-page=landing] .section { padding-top: 27px; padding-bottom: 27px; }
  body[data-astra-page=landing] .section-head h2 { font-size: 28px; }
  body[data-astra-page=landing] .feature-grid { gap: 12px; }
  body[data-astra-page=landing] .feature { padding: 23px; }
  body[data-astra-page=landing] .cta { padding: 24px; }
  body[data-astra-page=landing] .cta h2 { font-size: 23px; }
}
@media (max-width: 380px) {
  .page-title-wrap { flex-basis: 165px; }
  .head-actions { flex-basis: 100%; justify-content: flex-end; }
  .workspace-game-count { display: none; }
  .intro-hero { padding: 24px 19px; }
  .intro-hero h2, .intro-hero h2 em { font-size: 32px; }
  .intro-actions { gap: 7px; }
  #app .intro-actions :is(.design-primary, .design-secondary) { padding: 9px 11px; font-size: 11px; }
  .trackstats-head h2 { font-size: 21px; }
  body[data-astra-page=landing] .hero h1 { font-size: 38px; }
  .landing-assurance { gap: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) { html:not([data-astra-motion=on]) *, html:not([data-astra-motion=on]) *::before, html:not([data-astra-motion=on]) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Visual refinement pass: stronger hierarchy, quieter surfaces and premium depth. */
:root {
  --a-canvas: #f2f5fa; --a-subtle: #f8faff; --a-tint: #edf2ff;
  --a-ink: #172c49; --a-muted: #53647d; --a-faint: #66778f;
  --a-brand: #4b5fdc; --a-brand-hover: #394bc1;
  --a-border: #dce4f0; --a-border-strong: #c7d4e7;
  --a-shadow: 0 10px 28px rgba(31, 55, 96, .07), 0 2px 5px rgba(31, 55, 96, .04);
  --a-shadow-raised: 0 20px 55px rgba(31, 55, 96, .13), 0 4px 10px rgba(31, 55, 96, .05);
}
body { background: radial-gradient(900px 500px at 92% -8%, #e5ebff 0, transparent 62%), var(--a-canvas); }
.app, .main, .workspace, .workspace-main, .workspace main, body.is-embedded { background: transparent; }
.app .sidebar, .workspace > .sidebar { background: #ffffff !important; box-shadow: 8px 0 30px rgba(33, 55, 95, .035); }
.sidebar-head { padding-bottom: 34px; }
.app .sidebar .side-item, .workspace .navigation > a { border-radius: 12px; }
.app .sidebar .side-item.is-active, .workspace .navigation > a.is-active { box-shadow: inset 3px 0 var(--a-brand), 0 5px 14px rgba(75, 95, 220, .08); }
.main-inner { max-width: 1540px; }
#dashboardPageHead { position: sticky; top: 0; z-index: 24; background: rgba(255,255,255,.88); backdrop-filter: blur(18px); box-shadow: 0 1px 0 rgba(220,228,240,.8), 0 8px 22px rgba(31,55,96,.035); }
.page-title h1, .workspace .page-head h1 { letter-spacing: -.05em; }
.head-refresh, .mobile-menu, .sidebar-collapse { box-shadow: 0 3px 10px rgba(31,55,96,.05); }
.intro-hero { min-height: 286px; padding: 32px 36px; border: 1px solid rgba(143,177,255,.32); background: linear-gradient(120deg, #132b50 0%, #243f8e 57%, #5268dc 100%) !important; box-shadow: 0 22px 48px rgba(40,67,143,.18), inset 0 1px 0 rgba(255,255,255,.13); }
.intro-hero::before { opacity: .9; }
.intro-hero::after { opacity: .34; }
.intro-hero h2, .intro-hero h2 em { letter-spacing: -.055em; }
.intro-hero .design-primary { box-shadow: 0 9px 20px rgba(12,31,83,.18); }
.intro-hero .design-secondary { box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.workspace-snapshot { margin-top: 18px; border-color: #d7e1ef; box-shadow: var(--a-shadow); }
.workspace-metrics { gap: 16px; margin-top: 24px; }
.workspace-stat, .workspace .metric, .metric, .bfcard, .bf-inventory .bi-card { position: relative; overflow: hidden; border-color: #d9e2ef !important; box-shadow: var(--a-shadow) !important; }
.workspace-stat::before, .metric::before, .bfcard::before, .bi-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #6c8cff, #b5c4ff); opacity: .95; }
.workspace-stat:nth-child(2)::before, .metric:nth-child(2)::before { background: linear-gradient(90deg, #3fc48b, #a4e7c8); }
.workspace-stat:nth-child(3)::before, .metric:nth-child(3)::before { background: linear-gradient(90deg, #a181ef, #d5c7ff); }
.workspace-stat:nth-child(4)::before, .metric:nth-child(4)::before { background: linear-gradient(90deg, #ed74ae, #ffc3df); }
.workspace-game, .workspace-game:nth-child(2) { border-color: #d8e2ef !important; box-shadow: var(--a-shadow); }
.workspace-game:first-child { background: linear-gradient(145deg, #ffffff, #f8faff) !important; }
.workspace-game:nth-child(2) { background: linear-gradient(145deg, #ffffff, #f8fbff) !important; }
.workspace-game-logo, .workspace-game:nth-child(2) .workspace-game-logo { box-shadow: 0 7px 15px rgba(65,91,185,.09); }
.workspace-game-actions { border-color: #e3eaf4; }
.trackstats-workspace, .fc-panel, .account-health-panel > .controls { border-color: #d8e2ef; box-shadow: var(--a-shadow); }
.trackstats-tabs button[aria-selected=true] { box-shadow: 0 7px 16px rgba(75,95,220,.18); }
.table-panel, .account-health-table, .bf-inventory .bi-panel, .workspace .panel { border-color: #d8e2ef !important; box-shadow: var(--a-shadow); }
:is(#app, .workspace, #fcViewDialog) :is(.data-table, .bi-table, .fc-view-table table, .fc-table table, #tableWrap table) tbody tr:nth-child(even) td { background: #fcfdff; }
:is(#app, .workspace, #fcViewDialog) :is(.data-table, .bi-table, .fc-view-table table, .fc-table table, #tableWrap table) tr:hover td { background: #f2f5ff; }
.fc-pack { border-color: #d8e2ef; box-shadow: 0 5px 18px rgba(31,55,96,.035); }
.fc-pack-icon, .fc-pack-icon.is-blox { box-shadow: 0 6px 14px rgba(75,95,220,.08); }
#savedInventoryPanel { box-shadow: var(--a-shadow); }
#savedInventoryPanel .panel-head { box-shadow: inset 0 -1px 0 #e8edf5; }
body[data-astra-page=landing] { background: radial-gradient(900px 480px at 88% -10%, #e8edff 0, transparent 65%), #f5f7fb; }
body[data-astra-page=landing] .hero { padding-top: 86px; }
body[data-astra-page=landing] .hero h1 { letter-spacing: -.065em; }
body[data-astra-page=landing] .preview { box-shadow: 0 26px 70px rgba(31,55,96,.13), 0 0 0 8px #edf1fb; }
body[data-astra-page=landing] .feature, body[data-astra-page=landing] .step { box-shadow: var(--a-shadow); }
body[data-astra-page=landing] .cta { box-shadow: var(--a-shadow); }
@media (max-width: 760px) {
  #dashboardPageHead { position: relative; backdrop-filter: none; }
  .intro-hero { padding: 27px 24px; box-shadow: 0 15px 34px rgba(40,67,143,.14); }
  .workspace-stat, .workspace-game { box-shadow: 0 7px 18px rgba(31,55,96,.06) !important; }
  body[data-astra-page=landing] .hero { padding-top: 48px; }
}
