/* CSS | astra-refined.css | Modern browsers | Web-only typography, graphite/mint colors and scoped Configurations spacing; no application logic changes. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  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: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  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: 400 700;
  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;
}
:root {
  color-scheme: dark;
  --font-ui: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font: var(--font-ui);
  --font-mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --bg: #101214;
  --side-bg: #141619;
  --paper: #1a1d21;
  --panel: #1a1d21;
  --panel-2: #22262b;
  --well: #14171a;
  --input: #14171a;
  --navy: #141619;
  --line: #30363c;
  --line-soft: #272d33;
  --line-strong: #454f59;
  --text: #f0f2f4;
  --ink: #f0f2f4;
  --muted: #b2bbc5;
  --faint: #939faa;
  --brand: #a6e0ce;
  --accent: #a6e0ce;
  --accent-hover: #c1eddf;
  --on-accent: #14251f;
  --accent-soft: #a6e0ce12;
  --blue: var(--accent);
  --blue2: var(--accent-hover);
  --blue-strong: var(--accent);
  --blue-soft: var(--accent-soft);
  --accent-strong: var(--accent);
  --green: #86d5ae;
  --amber: #e5c18a;
  --red: #eea4ac;
  font-family: var(--font-ui);
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font-family: var(--font-ui); letter-spacing: 0; }
code, pre, textarea { font-family: var(--font-mono); }
h1, h2, h3, h4 { color: var(--text); font-family: var(--font-ui); font-style: normal; font-weight: 650; letter-spacing: -.035em; }
:focus-visible { outline-color: var(--accent); }
::selection { background: #a6e0ce33; color: #fff; }
input:not(.hp), select, textarea { background: var(--input); border-color: var(--line-strong); color: var(--text); }
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
input:focus, textarea:focus, select:focus, .search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #a6e0ce13; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }

/* Existing navigation and tables keep their structure; text is no longer tiny or monospaced. */
.app .sidebar, .workspace > .sidebar { background: var(--side-bg); border-color: var(--line-soft); }
.main, .workspace .topbar, .page-head { background: var(--bg); border-color: var(--line-soft); }
.side-item, button.bf-nav-heading, .workspace .navigation > a { color: var(--muted); font-size: 13px; font-weight: 500; }
.side-item .side-icon, .bf-nav-heading > span:last-child { color: var(--faint); }
.side-item:hover, button.bf-nav-heading:hover, .workspace .navigation > a:hover { background: #ffffff06; color: var(--text); }
.side-item.is-active, .workspace .navigation > a.is-active { background: #a6e0ce0c; box-shadow: inset 0 0 0 1px #a6e0ce19; color: var(--accent); }
.side-item.is-active .side-icon, .bf-sub-item.is-active .bf-sub-dot { color: var(--accent); }
.bf-sub-item.is-active .bf-sub-dot { background: var(--accent); box-shadow: none; }
.side-section-head, .nav-label, .brand-sub { color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.side-count, .side-user span:not(.user-avatar), .side-sync span:not(.live-dot), .side-share { font-family: var(--font-ui); color: var(--faint); font-size: 11px; }
.side-user b, .side-sync b, .user-row b { color: var(--text); font-size: 12px; }
.workspace-switch, .workspace .brand { color: var(--text); font-weight: 650; letter-spacing: -.025em; }
.user-avatar, .account-avatar, .accounts-table .account-avatar { background: #25332f; border-color: #3b534a; color: #c1e7da; font-family: var(--font-ui); }
.workspace-plan, .storage-plan { background: #1c2123; border-color: var(--line); }
.workspace-plan > span, .workspace-plan small, .storage-plan > span, .storage-plan small { color: var(--faint); font-size: 11px; }
.workspace-plan strong, .storage-plan strong { color: var(--text); font-size: 13px; }
.workspace-plan-meter { background: var(--line); }
.workspace-plan-meter i { background: var(--accent); }
.page-title h1 { font-size: 21px; font-weight: 650; }
.page-title p, .page-foot, .main-footer { color: var(--faint); font-size: 12px; }
.sync-pill, .connection, .breadcrumbs, .quiet-label { color: var(--muted); font-family: var(--font-ui); font-size: 12px; }
.main-footer a, .back-dashboard { color: var(--accent); }
.back-dashboard, .head-refresh, .mobile-menu, .sidebar-collapse { background: var(--panel); border-color: var(--line); color: var(--muted); }

.metric, .bfcard, .workspace-stat, .rate-panel, .table-panel, .godly-feed, .farm-card,
.workspace .metric, .fc-panel, body.is-embedded .panel { background: var(--panel); border-color: var(--line); }
.metric:hover, .bfcard:hover, .workspace-stat:hover, .fc-pack:hover, .fc-machine:hover { background: #1e2327; border-color: var(--line-strong); }
.workspace-stat-label, .metric-label, .bfcard small, .workspace .metric > span { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.workspace-stat-label .icon, .metric-label .icon, .farm-card-head h3 .icon { color: var(--accent); }
.metric-value, .bfcard b, #bfCards .bfcard b, #mm2Cards .bfcard b, .workspace-stat strong, .workspace .metric > strong {
  font-family: var(--font-ui); color: var(--text); font-size: 29px; font-weight: 650; line-height: 1.3; letter-spacing: -.045em; font-variant-numeric: tabular-nums; text-shadow: none;
}
.value-total, .metric-foot, .bfcard .bfsub, .workspace-stat small, .workspace .metric > small { font-family: var(--font-ui); color: var(--faint); font-size: 12px; letter-spacing: 0; }
.farm-card .metric-value { font-size: 23px; }
.workspace-section-heading h2, .panel-title h2, .rate-heading h2 { color: var(--text); font-size: 17px; font-weight: 650; }
.rate-name, .rate-value, .rate-per { font-family: var(--font-ui); font-size: 12px; font-variant-numeric: tabular-nums; }
.rate-name { color: var(--muted); }
.rate-per { color: var(--green); }
.rate-foot, .godly-feed-heading small { color: var(--faint); font-size: 11px; }
.rate-row, .rate-foot, .godly-list, .godly-item { border-color: var(--line-soft); }
.search-box, .segmented, .panel-head, .table-foot, .toolbar { background: var(--well); border-color: var(--line); }
.search-box input, .search-field input, .filter-field select { font-family: var(--font-ui); font-size: 14px; }
.data-table thead th, .fc-table th, .workspace table th { background: #1e2327 !important; border-color: var(--line); color: var(--muted); font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.data-table tbody td, .accounts-table tbody td, .workspace table td, .fc-table td { color: #d2d8de; font-family: var(--font-ui); font-size: 13px; border-color: var(--line-soft); }
.data-table td.num, .mono, .rate-value, .chip b, .page-tools, .bfstat b, .farm-acc { font-family: var(--font-ui); font-variant-numeric: tabular-nums; }
.data-table td.num { font-size: 13px; }
.data-table tbody tr:hover, .workspace table tbody tr:hover { background: #ffffff04; }
.data-table .account-name, .acc b, .who > b, .fc-cell-main { color: var(--text); font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.account-time, .account-sub, .acc span, .who > span, .fc-cell-sub, .accounts-table .updated-cell,
.account-health-table td small { color: var(--faint); font-family: var(--font-ui); font-size: 11px; }
#mainTbl .data-table th:last-child, #mainTbl .data-table td:last-child { background: inherit; }
.table-foot, .page-size, .page-size select, .pager span, .shown-label, .bf-track-pager, .fc-pager, .account-health-pager { font-family: var(--font-ui); font-size: 12px; color: var(--muted); }
#accMeta .per-page select, #mm2Meta .per-page select, #accMeta .pager span, #mm2Meta .pager span { font-family: var(--font-ui); font-size: 12px; color: var(--muted); }
.rarity-tag, .bfchip em, .mm2lv, .mm2bdg { font-family: var(--font-ui); font-size: 11px; line-height: 1.5; }

/* One accent for interaction; status colors remain semantically distinct. */
.design-primary, .design-secondary, .workspace .button, .button, .btn, .control-btn, .fbtn, .act-btn,
.account-status-actions button { font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: 0; border-color: var(--line-strong); background: var(--panel-2); color: var(--text); box-shadow: none; }
.design-primary, .workspace .button.primary, .button.primary, .btn.primary, .btn.primary:hover, .bigbtn,
.segmented button.is-active, #authGate button.go { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: none; }
.design-primary:hover, .workspace .button.primary:hover, .button.primary:hover, #authGate button.go:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); filter: none; }
.design-secondary:hover, .control-btn:hover, .fbtn:hover, .act-btn:hover, .btn:not(.primary):hover, .workspace .button:not(.primary):not(.danger):hover { background: #2a3137; border-color: #64736e; color: var(--text); }
.workspace .button.danger, .button.danger, .act-btn.danger, .control-btn.is-danger { background: #312326; border-color: #624048; color: #f0afb8; }
.act-btn.warn { background: #30291f; border-color: #60503a; color: var(--amber); }
.trackstats-tabs, .trackstats-subtabs { border-color: var(--line); }
.trackstats-tabs button, .trackstats-subtabs button, .view-tabs button, .segmented button { color: var(--muted); font-family: var(--font-ui); font-size: 13px; }
.trackstats-tabs button[aria-selected=true], .trackstats-subtabs button[aria-selected=true], .view-tabs button.is-active { background: #a6e0ce0e; border-color: #a6e0ce32; box-shadow: none; color: var(--accent); }
.trackstats-head h2, .farm-head h2 { color: var(--text); font-size: 25px; }
.trackstats-head p, .farm-head p, .trackstats-summary { color: var(--muted); font-size: 13px; }
.account-status-card { background: var(--panel); border-color: var(--line); border-top: 2px solid var(--bucket-color); border-radius: 10px; }
.account-status-card.is-empty { opacity: .72; }
.account-status-name { font-size: 12px; }
.account-status-value strong { color: var(--text); font-family: var(--font-ui); font-size: 27px; }
.account-status-value > span { font-family: var(--font-ui); font-variant-numeric: tabular-nums; }
.account-status-actions button { background: #ffffff03; border-color: var(--line); font-size: 12px; }
.account-cookie .fbtn, .account-cookie .mini, .fc-table .fc-actions .button, .fc-actions .button { font-family: var(--font-ui); font-size: 11px; min-height: 32px; }
.account-status-section h3 { color: var(--text); font-size: 15px; }
.account-status-section h3::before { background: var(--accent); }
.join-status-section h3::before { background: var(--green); }
.account-health-state { background: #242d34; border-color: #465561; color: #c7d5e2; font-family: var(--font-ui); font-size: 12px; }
.state-online, .state-auth_ok { background: #20342b; border-color: #3d5e4c; color: #a7dfbc; }
.state-permanently_banned, .state-banned { background: #36262c; border-color: #67434e; color: #f1b1bd; }
.state-facelock { background: #302b3b; border-color: #544965; color: #d1c0ed; }
.state-network_error, .state-auth_invalid, .state-access_denied { background: #332d23; border-color: #61513a; color: #ebc895; }
.fc-status { font-size: 11px; color: var(--muted); background: #ffffff07; }
.fc-status.is-online { color: #afe2c3; background: #284134; }
.fc-status.is-error { color: #f1b1bd; background: #36262c; }
.bulkbar { background: #1e2f29; border-color: #39584c; }
.inventory-sections section { background: var(--well); border-color: var(--line); }
.inventory-sections h3 { color: var(--text); font-size: 13px; }
.inventory-sections span { background: var(--panel-2); border-color: var(--line-strong); color: #cbd7d2; font-family: var(--font-ui); font-size: 12px; }
.inventory-sections small { color: var(--faint); font-size: 12px; }

/* Authentication and Fleet use the same readable surfaces as the dashboard. */
#authGate { background: var(--bg); }
#authGate .shell { background: #181c1f; border-color: #353d42; box-shadow: 0 24px 80px #0003; }
#authGate .art { background: #1d2425; border-color: #353d42; }
#authGate .form { background: #181c1f; }
.auth-eyebrow, #authGate .auth-eyebrow { color: #b3d9ce; font-size: 11px; font-weight: 600; letter-spacing: .1em; }
#authGate .art h2 { color: #f3f5f4; -webkit-text-fill-color: currentColor; font-family: var(--font-ui); font-size: 44px; font-weight: 650; font-style: normal; letter-spacing: -.045em; line-height: 1.2; }
#authGate .art p { color: #bac9c6; font-size: 14px; line-height: 1.8; }
#authGate .form h1 { font-size: 31px; font-weight: 650; letter-spacing: -.04em; }
#authGate .form .sub { color: var(--muted); font-size: 14px; line-height: 1.75; }
#authGate label { color: #d2d9dd; font-size: 13px; font-weight: 500; letter-spacing: 0; }
#authGate input:not(.hp) { color: var(--text); background: #131719; border: 1px solid #48545a; border-radius: 9px; font-size: 15px; height: 48px; }
#authGate input:not(.hp):focus { border-color: var(--accent); box-shadow: 0 0 0 3px #a6e0ce13; }
#authGate input::placeholder { color: #929fa6; }
#authGate button.go { min-height: 48px; font-size: 14px; font-weight: 700; }
#authGate .auth-password button { background: #293235; border-color: #455251; color: #c7e7dd; font-family: var(--font-ui); font-size: 12px; }
.auth-capabilities { color: #a1b4ae; font-size: 12px; }
.auth-capabilities b { color: #cad9d4; }
#authGate .link, #authGate .auth-note { color: var(--faint); font-size: 12px; }
#authGate .link a { color: var(--accent); }
#authGate .err { font-family: var(--font-ui); font-size: 13px; }
.workspace .eyebrow, .design-kicker { color: var(--faint); font-size: 11px; letter-spacing: .1em; }
.workspace .page-head h1 { font-size: 30px; font-weight: 650; }
.workspace .page-head p, .fc-heading p, .fc-message, .fc-pack p, .fc-pack .fc-assignment, .fc-machine p, .fc-guide, .fc-guide small { color: var(--muted); font-size: 13px; }
.fc-heading h2 { font-size: 20px; }
.fc-pack, .fc-machine { background: var(--well); border-color: var(--line); }
.fc-pack h3, .fc-machine strong { color: var(--text); font-size: 15px; }
.fc-pack select, .fc-controls select, .fc-controls > label { color: var(--muted); font-size: 13px; }
.fc-pack-icon { background: #25372f; border-color: #3d574c; color: var(--accent); }
.fc-guide { border-color: var(--line); background: var(--well); }
.fc-guide b { background: var(--panel-2); color: var(--accent); }
.dialog, .drawer, body.is-embedded .dialog, body.is-embedded .drawer, #tapSecretDialog { background: var(--panel); color: var(--text); border-color: var(--line-strong); }
.dialog-head, .dialog-foot { background: var(--panel); border-color: var(--line); }
.field label { color: #d0d8de; font-size: 13px; font-weight: 600; }
.field small, .dialog-foot .quiet-label, .fc-download-check { color: var(--muted); font-size: 12px; }
.field input, .field select, .field textarea { border-color: var(--line-strong); }
.toast { color: #d9ebe4; background: #23332c; border-color: #466353; }
.toast.is-error { color: #f2bec5; background: #38272d; border-color: #69454f; }
.motion-toggle { font-family: var(--font-ui); font-size: 11px; background: #1e2629; border-color: #3d4b4b; color: #b9d5cb; }

/* Restrained accent lighting; no new animation or JavaScript work is introduced. */
.intro-hero, .workspace-game, .workspace-game:nth-child(2) { background: var(--panel); border-color: var(--line); }
.intro-hero h2 { color: var(--text); font-weight: 650; letter-spacing: -.045em; }
.intro-hero h2 em { background: none; color: var(--accent); -webkit-text-fill-color: currentColor; }
.intro-kicker { color: var(--accent); font-size: 11px; letter-spacing: .1em; }
.intro-hero p, .workspace-game p { color: var(--muted); font-size: 14px; }
.workspace-game h3 { font-size: 17px; }
.workspace-game-count, .workspace-game-stats span, .workspace-state { color: var(--faint); font-size: 12px; }
.workspace-game-stats b { color: var(--text); font-family: var(--font-ui); font-size: 22px; font-variant-numeric: tabular-nums; }
.workspace-game-actions { border-color: var(--line); }
.workspace-game-actions .design-secondary, .workspace-game-actions .design-primary { font-size: 12px; }
.workspace-game-logo, .workspace-game:nth-child(2) .workspace-game-logo, .map-core, .map-satellite { background: #24332d; border-color: #3d554a; color: var(--accent); }
.workspace-activity-list { background: var(--panel); border-color: var(--line); }
.workspace-activity-row { border-color: var(--line-soft); }
.workspace-activity-row b { color: var(--text); font-size: 13px; }
.workspace-activity-row small, .map-caption { color: var(--muted); font-size: 12px; }
.map-orbit { border-color: #8bb9a93d; }
.map-orbit::after { border-color: #8bb9a92e; border-top-color: #b3dfcc; }
.map-orbit::before { background: var(--accent); box-shadow: 0 0 12px #a6e0ce55; }
.motion-atmosphere::before, .intro-hero::before, #authGate .art::before { background: radial-gradient(ellipse, #a6e0ce0c, transparent 67%); }
.motion-atmosphere::after { background: radial-gradient(ellipse, #a6e0ce08, transparent 67%); }
.intro-hero::after { background-image: linear-gradient(#ffffff03 1px,transparent 1px),linear-gradient(90deg,#ffffff03 1px,transparent 1px); }
.motion-ripple { background: #b9e5d52b; }

/* Public landing: same font, neutral panels and one accent instead of layered blue gradients. */
.nav { border-color: var(--line); }
.brand { letter-spacing: -.025em; }
.navlinks { color: var(--muted); font-size: 14px; }
.hero h1 { color: var(--text); font-size: clamp(40px,4.6vw,64px); font-weight: 650; letter-spacing: -.05em; }
.hero h1 span { background: none; -webkit-text-fill-color: currentColor; color: var(--accent); }
.hero .eyebrow, .kicker { color: var(--accent); font-size: 11px; letter-spacing: .1em; }
.lede, .section-head p, .feature p, .step p, .cta p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.preview, .feature, .step, .cta { background: var(--panel); border-color: var(--line); }
.preview-top, .pv-kpi, .pv-table, .landing-config, .landing-manager { background: var(--well); border-color: var(--line); }
.preview-label, .preview-demo, .pv-head small, .pv-kpi small, .pv-kpi em, .landing-config small, .landing-manager small, .landing-preview-foot, .footer, .micro { color: var(--faint); font-size: 12px; }
.pv-head b { color: var(--text); font-size: 18px; }
.pv-kpi b { color: var(--text); font-size: 18px; }
.landing-file-icon, .landing-manager-label, .iconbox, .stepnum { color: var(--accent); background: #25372f; border-color: #3d574c; font-family: var(--font-ui); }
.section-head h2, .cta h2 { font-weight: 650; letter-spacing: -.04em; }
.feature h3, .step b { color: var(--text); font-size: 17px; }
.tag { color: #b5e3c7; background: #263c30; border-color: #3d5e49; }
.tag.wait { color: var(--amber); background: #332d23; border-color: #61513a; }
.hero .preview::after { background: linear-gradient(110deg,transparent 28%,#a6e0ce08 48%,transparent 68%); }

@media (max-width: 760px) {
  .page-title h1 { font-size: 18px; }
  .page-title p { font-size: 11px; }
  .workspace-stat strong, .metric-value, .bfcard b, #bfCards .bfcard b, #mm2Cards .bfcard b, .workspace .metric > strong { font-size: 25px; }
  .workspace-stat-label, .workspace-stat small, .metric-label, .bfcard small, .metric-foot, .bfcard .bfsub { font-size: 11px; }
  .search-box input, .field input, .field select, .field textarea, #authGate input:not(.hp) { font-size: 16px; }
  #authGate .form { padding: 32px 25px; }
  #authGate .form h1 { font-size: 29px; }
  .workspace .page-head h1 { font-size: 27px; }
  .workspace .page-head p, .fc-heading p, .fc-message, .fc-guide, .fc-guide small { font-size: 12px; }
  .fc-heading h2, .is-config-library .fc-heading h2 { font-size: 22px; }
  .workspace-game-actions .design-secondary, .workspace-game-actions .design-primary { font-size: 11px; }
  .trackstats-head h2 { font-size: 22px; }
  .trackstats-head p { font-size: 12px; }
}
/* Restore existing per-stat text tones only while the Trackstats view is active. */
body:has(#trackStatsWorkspace:not([hidden])) #dashboardOverview :is(.metric-value, .metric-label .icon, .bfcard > b) {
  color: var(--tone, var(--c, var(--text)));
}

/* Override the older library reset without changing Fleet or the dashboard shell. */
body.is-config-library .fc-panel {
  min-width: 0;
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
body.is-config-library .fc-heading {
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}
body.is-config-library .fc-heading > div { display: grid; gap: 8px; flex: 1; min-width: 0; }
body.is-config-library .fc-heading .eyebrow { display: block; margin: 0; line-height: 1.5; }
body.is-config-library .fc-heading h2 { margin: 0; font-size: 24px; line-height: 1.35; letter-spacing: -.03em; }
body.is-config-library .fc-heading p { margin: 0; max-width: 72ch; font-size: 13px; line-height: 1.75; }
body.is-config-library .fc-heading > .button { align-self: flex-start; margin: 0; min-height: 40px; padding: 10px 16px; font-size: 12px; }
body.is-config-library .fc-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  padding: 16px;
  margin: 0 0 24px;
}
body.is-config-library .fc-guide > span { min-width: 0; gap: 10px; font-size: 12px; line-height: 1.6; }
body.is-config-library .fc-guide b { flex: 0 0 24px; width: 24px; height: 24px; font-size: 10px; }
body.is-config-library .fc-guide > small {
  display: block;
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
}
body.is-config-library .fc-library-toolbar { gap: 12px; margin-bottom: 16px; }
body.is-config-library .fc-library-toolbar input { flex: 1 1 240px; min-width: 0; min-height: 42px; font-size: 13px; }
body.is-config-library .fc-library-toolbar select { min-width: 0; min-height: 42px; font-size: 13px; }
body.is-config-library .fc-library-toolbar > .button { min-height: 42px; max-width: 100%; white-space: normal; }
body.is-config-library .fc-message { margin-bottom: 16px; overflow-wrap: anywhere; }
body.is-config-library .fc-bundles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 275px), 1fr)); gap: 16px; }
@media (max-width: 760px) {
  body.is-config-library .fc-panel { padding: 16px; margin-bottom: 16px; border-radius: 12px; }
  body.is-config-library .fc-heading { flex-direction: column; gap: 16px; margin-bottom: 20px; }
  body.is-config-library .fc-heading h2 { font-size: 22px; }
  body.is-config-library .fc-guide { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 20px; }
  body.is-config-library .fc-library-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  body.is-config-library .fc-library-toolbar input { grid-column: 1 / -1; width: 100%; font-size: 16px; }
  body.is-config-library .fc-library-toolbar select { width: 100%; font-size: 16px; }
  body.is-config-library .fc-library-toolbar > .quiet-label { justify-self: end; font-size: 11px; }
  body.is-config-library .fc-library-toolbar > .button { grid-column: 1 / -1; justify-self: start; }
  body.is-config-library .fc-bundles { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .motion-atmosphere, .motion-ripple { display: none; }
}

/* CSS | Astra shared theme v2 | Light porcelain surfaces, deep ink navigation, and cobalt accents. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter/vietnamese-v20.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: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter/latin-ext-v20.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: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter/latin-v20.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;
}
:root {
  color-scheme: light;
  --font-ui: "Inter", "Segoe UI", system-ui, sans-serif;
  --font: var(--font-ui);
  --bg: #f4f6fa;
  --side-bg: #14213b;
  --paper: #ffffff;
  --panel: #ffffff;
  --panel-2: #f2f5fb;
  --well: #f7f8fc;
  --input: #ffffff;
  --navy: #ffffff;
  --line: #dfe5ef;
  --line-soft: #e9edf4;
  --line-strong: #c7d1df;
  --text: #18243a;
  --ink: #18243a;
  --muted: #59677e;
  --faint: #626e83;
  --brand: #355bd6;
  --accent: #355bd6;
  --accent-hover: #294bb9;
  --on-accent: #ffffff;
  --accent-soft: #355bd61a;
  --blue: #355bd6;
  --blue2: #294bb9;
  --blue-strong: #294bb9;
  --blue-soft: #355bd61a;
  --accent-strong: #294bb9;
  --green: #17815d;
  --amber: #a66112;
  --red: #b33e50;
}

/* Scope pale navigation text to the navy sidebar, not the white dashboard. */
.app .sidebar, .workspace > .sidebar {
  --text: #edf2ff;
  --muted: #c1cce0;
  --faint: #aab8d1;
  --accent: #a7c0ff;
  --line: #30466d;
  --panel: #1b2b49;
}
.app .sidebar .side-item.is-active {
  color: #fff;
  background: #29477d;
  box-shadow: inset 3px 0 #86a8ff;
}
.app .sidebar .workspace-switch:hover, .app .sidebar .side-item:hover,
.app .sidebar .side-share:hover { background: #203254; color: #fff; }
.app .sidebar .side-sync { background: #1b2b49; border-color: #30466d; }
.app .sidebar .side-user .user-menu-btn { color: #c1cce0; }
.app .sidebar .live-dot { background: #79d4b0; }

body, .app, .main, .workspace, .workspace-main,
.workspace .topbar, .workspace main, body.is-embedded {
  background-color: var(--bg);
  color: var(--text);
}
body { font-weight: 450; font-optical-sizing: auto; }

/* Keep navigation anchored in deep navy while the work surface stays bright. */
.app .sidebar, .workspace > .sidebar, .workspace .sidebar {
  background: #14213b !important;
  border-color: #263757 !important;
  color: #edf2ff;
}
.workspace .brand, .workspace .brand > span, .workspace .user-row b,
.workspace .storage-plan strong, .workspace .storage-plan > span {
  color: #f0f4ff;
}
.workspace .brand-sub, .workspace .nav-label, .workspace .storage-plan small,
.workspace .user-row small { color: #aab8d1; }
.workspace .navigation > a { color: #c1cce0; }
.workspace .navigation > a:hover { background: #203254; color: #fff; }
.workspace .navigation > a.is-active {
  color: #fff;
  background: #29477d;
  box-shadow: inset 3px 0 #86a8ff;
}
.workspace .navigation > a.is-active b { color: #fff; }
.workspace .storage-plan, .workspace-plan {
  background: #1b2b49 !important;
  border-color: #30466d !important;
}
.workspace .user-avatar, .user-avatar, .account-avatar, .accounts-table .account-avatar {
  background: #29477d;
  border-color: #49669a;
  color: #e4ecff;
}

/* Calm white cards and crisp blue interaction states. */
.metric, .bfcard, .workspace-stat, .rate-panel, .table-panel, .godly-feed,
.farm-card, .workspace .metric, .fc-panel, .fc-pack, .fc-machine,
.workspace-game, .workspace-activity-list, .preview, .feature, .step, .cta,
body.is-embedded .panel {
  background: var(--panel) !important;
  border-color: var(--line) !important;
  box-shadow: 0 2px 8px #18243a08;
}
.metric:hover, .bfcard:hover, .workspace-stat:hover, .fc-pack:hover,
.fc-machine:hover, .workspace-game:hover {
  background: #fbfcff !important;
  border-color: #b9c9ed !important;
}
.main, .workspace .topbar, .workspace .page-head { border-color: var(--line); }
.workspace .page-head { background: transparent; }
.workspace .page-head h1, .page-title h1, h1, h2, h3, h4 { color: var(--text); }
.fc-pack b, .landing-config b, .landing-manager b { color: var(--text); }
.workspace .page-head p, .fc-heading p, .fc-message, .fc-pack p,
.fc-pack .fc-assignment, .fc-machine p, .fc-guide, .fc-guide small,
.page-title p, .page-foot, .main-footer { color: var(--muted); }
.workspace .eyebrow, .workspace .page-head .eyebrow,
.hero .eyebrow, .intro-kicker, .kicker { color: var(--accent); }
.workspace .metric > span, .workspace-stat-label, .metric-label,
.bfcard small { color: var(--muted); }
.metric-value, .bfcard b, #bfCards .bfcard b, #mm2Cards .bfcard b,
.workspace-stat strong, .workspace .metric > strong,
.workspace-game-stats b { color: var(--text); text-shadow: none; }

input:not(.hp), select, textarea, .search-box, .segmented,
.search-field input, .filter-field select, .fc-library-toolbar input,
.fc-library-toolbar select {
  color: var(--text);
  background: #fff;
  border-color: var(--line-strong);
}
.fc-controls select, .fc-pack select, .fc-library-toolbar select {
  color: var(--text) !important;
  background: #fff !important;
  border-color: var(--line-strong) !important;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus, .search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #355bd61c;
}
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
:focus-visible { outline-color: var(--accent); }
::selection { background: #355bd633; color: #14213b; }

.data-table thead th, .fc-table th, .workspace table th {
  background: #f0f3f9 !important;
  border-color: var(--line);
  color: #59677e;
}
.data-table tbody td, .accounts-table tbody td, .workspace table td,
.fc-table td { color: #334158; border-color: var(--line-soft); }
.data-table tbody tr:hover, .workspace table tbody tr:hover { background: #f5f8ff; }
.data-table .account-name, .acc b, .who > b, .fc-cell-main { color: var(--text); }
.account-time, .account-sub, .acc span, .who > span, .fc-cell-sub { color: var(--faint); }
.table-foot, .page-size, .pager span, .fc-pager { background: #f7f8fc; color: var(--muted); }

.design-primary, .workspace .button.primary, .button.primary, .btn.primary,
.bigbtn, .segmented button.is-active, #authGate button.go {
  color: #fff !important;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}
.design-primary:hover, .workspace .button.primary:hover, .button.primary:hover,
#authGate button.go:hover { background: var(--accent-hover) !important; border-color: var(--accent-hover) !important; }
.workspace .button, .button, .btn, .control-btn, .fbtn, .act-btn {
  color: var(--text);
  background: #fff;
  border-color: var(--line-strong);
  box-shadow: none;
}
.workspace .button:not(.primary):not(.danger):hover, .button:not(.primary):not(.danger):hover,
.btn:not(.primary):hover, .control-btn:hover, .fbtn:hover, .act-btn:hover,
.design-secondary:hover {
  background: #f2f5fc;
  border-color: #aebfe4;
  color: #203b7c;
}
.workspace .button.danger, .button.danger, .act-btn.danger, .control-btn.is-danger {
  color: #a83245;
  background: #fff5f6;
  border-color: #efcbd1;
}
.act-btn.warn { color: #8b520f; background: #fff8eb; border-color: #eed9b7; }
.trackstats-tabs button[aria-selected=true], .trackstats-subtabs button[aria-selected=true],
.view-tabs button.is-active { color: var(--accent); background: #edf2ff; border-color: #c7d5fa; }

/* Status colors keep meaning and remain readable on light surfaces. */
.account-health-state { color: #45536a; background: #f0f3f8; border-color: #d9e0ea; }
.state-online, .state-auth_ok, .fc-status.is-online { color: #176849; background: #e8f6ef; border-color: #bce4ce; }
.state-permanently_banned, .state-banned, .fc-status.is-error { color: #9c2c40; background: #fff0f2; border-color: #efc4cc; }
.state-facelock { color: #6243a0; background: #f4efff; border-color: #d9cafa; }
.state-network_error, .state-auth_invalid, .state-access_denied { color: #8d570f; background: #fff7e9; border-color: #efd8ae; }
.fc-status { color: var(--muted); background: #f0f3f8; }
.bulkbar { background: #edf3ff; border-color: #d3def8; }
.inventory-sections section { background: #f7f8fc; border-color: var(--line); }
.inventory-sections span { color: #34496f; background: #eef2fa; border-color: #d7e0ef; }

/* Brighter welcome and sign-in surfaces; no layout or behavior changes. */
.intro-hero {
  background: radial-gradient(ellipse at 88% 15%, #dbe6ff 0, transparent 42%), linear-gradient(120deg,#fff,#f0f4ff) !important;
  border-color: #dce5f7 !important;
}
.intro-hero h2, .hero h1 { color: var(--text); }
.intro-hero h2 em, .hero h1 span { color: var(--accent); -webkit-text-fill-color: currentColor; }
.intro-hero p, .hero .lede, .section-head p, .feature p, .step p, .cta p { color: var(--muted); }
.workspace-game:nth-child(2) { background: #fff !important; border-color: var(--line) !important; }
.workspace-game-logo, .workspace-game:nth-child(2) .workspace-game-logo,
.map-core, .map-satellite, .fc-pack-icon, .landing-file-icon,
.landing-manager-label, .iconbox, .stepnum {
  color: var(--accent); background: #edf2ff; border-color: #cfdbfa;
}
.map-orbit { border-color: #9fb4e655; }
.map-orbit::after { border-color: #b7c7e855; border-top-color: #6d8fe8; }
.map-orbit::before { background: var(--accent); box-shadow: 0 0 12px #355bd655; }
.motion-atmosphere::before, .intro-hero::before, #authGate .art::before {
  background: radial-gradient(ellipse,#355bd612,transparent 67%);
}
.motion-atmosphere::after { background: radial-gradient(ellipse,#355bd60b,transparent 67%); }
.intro-hero::after { background-image: linear-gradient(#355bd608 1px,transparent 1px),linear-gradient(90deg,#355bd608 1px,transparent 1px); }
.motion-ripple { background: #355bd626; }
.tag { color: #176849; background: #e8f6ef; border-color: #bce4ce; }
.tag.wait { color: #8d570f; background: #fff7e9; border-color: #efd8ae; }

#authGate { background: #f4f6fa; }
#authGate .shell { background: #fff; border-color: var(--line); box-shadow: 0 24px 70px #2436531a; }
#authGate .art { background: linear-gradient(145deg,#243f82,#355bd6); border-color: #294caa; }
#authGate .form { background: #fff; }
.auth-eyebrow, #authGate .auth-eyebrow { color: #d9e4ff; }
#authGate .art h2 { color: #fff; }
#authGate .art p, .auth-capabilities { color: #e0e8ff; }
.auth-capabilities b { color: #fff; }
#authGate label, .field label { color: #344158; }
#authGate input:not(.hp) { color: var(--text); background: #fff; border-color: var(--line-strong); }
#authGate input::placeholder { color: var(--faint); }
#authGate .auth-password button { color: #344158; background: #f2f5fb; border-color: var(--line); }
.fc-guide, .fc-pack, .fc-machine { background: #f7f8fc; }
.fc-guide b { color: var(--accent); background: #eaf0ff; }
.dialog, .drawer, body.is-embedded .dialog, body.is-embedded .drawer,
#tapSecretDialog { color: var(--text); background: #fff; border-color: var(--line); }
.dialog-head, .dialog-foot { background: #fff; border-color: var(--line); }
.toast { color: #164e39; background: #e8f6ef; border-color: #bce4ce; }
.toast.is-error { color: #9c2c40; background: #fff0f2; border-color: #efc4cc; }
.motion-toggle { color: #43536e; background: #fff; border-color: var(--line); }

@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
}

@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: 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: 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/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: 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: 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/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: 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: 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/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;
}
@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: 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;
}
/* CSS | typography.css | Modern browsers | Approved Be Vietnam Pro typography; retain the approved white/cobalt palette. */
:root {
  --font-ui: "Be Vietnam Pro", "Inter", "Segoe UI", system-ui, sans-serif;
  --font: var(--font-ui);
}
body { font-weight: 400; }
h1, h2, h3, h4, .page-title h1, .workspace .page-head h1,
.intro-hero h2, .hero h1, .fc-heading h2, .workspace-section-heading h2,
.panel-title h2, .rate-heading h2 { font-weight: 600; letter-spacing: -.025em; }
.metric-value, .bfcard b, #bfCards .bfcard b, #mm2Cards .bfcard b,
.workspace-stat strong, .workspace .metric > strong,
.workspace-game-stats b { font-weight: 600; }

/* CSS | alignment.css | Modern browsers | Restore readable light-theme headings and align narrow layouts without changing fonts, product copy or application logic. */
.section-head h2, .cta h2 {
  color: var(--text);
  -webkit-text-fill-color: currentColor;
  font-weight: 600;
}
.fc-pack-meta span { color: var(--muted); }
.fc-pack-meta b { color: var(--text); }
.workspace-state { color: #176849; background: #e8f6ef; border-color: #bce4ce; }
.workspace-state.is-offline { color: var(--muted); background: #f0f3f8; border-color: var(--line); }

#dashboardPageHead .page-title-wrap { flex: 1 1 auto; min-width: 0; }
#dashboardPageHead .page-title { flex: 1; min-width: 0; }
#dashboardPageHead .page-title p {
  display: block;
  max-width: none;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}
#dashboardPageHead .head-actions { flex: 0 0 auto; }
.hero-actions { flex-wrap: wrap; }
.preview-top { height: auto; min-height: 58px; flex-wrap: wrap; }
.preview-top img { flex-shrink: 0; }
.preview-label { flex: 1 1 150px; min-width: 0; }
.preview-demo { margin-left: auto; }

@media (max-width: 1000px) {
  .pv-kpi small { font-size: 11px; letter-spacing: .015em; }
}

@media (max-width: 1180px) {
  .workspace-stat-label { min-height: 3em; line-height: 1.5; align-items: flex-start; }
  .workspace-stat-label .icon { flex-shrink: 0; margin-top: .15em; }
  .workspace-stat small { display: block; }
}
@media (max-width: 760px) {
  #dashboardPageHead { flex-wrap: wrap; gap: 12px; align-items: center; }
  #dashboardPageHead .page-title-wrap { flex-basis: 100%; align-items: center; }
  #dashboardPageHead .head-actions { width: 100%; justify-content: flex-end; gap: 10px; }
  #dashboardPageHead .sync-pill { display: flex; }
  .pv-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pv-head small { margin: 0; }
  .fc-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .fc-heading > .button { align-self: flex-start; margin: 0; }
  .fc-guide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fc-guide > small { grid-column: 1 / -1; }
  .fc-library-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .fc-library-toolbar input { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .fc-library-toolbar select { width: 100%; min-width: 0; }
  .fc-library-toolbar > .quiet-label { justify-self: end; }
  .fc-library-toolbar > .button { grid-column: 1 / -1; justify-self: start; max-width: 100%; }
}
@media (max-width: 480px) {
  .pv-kpis { grid-template-columns: minmax(0, 1fr); }
  .pv-kpi { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
  .pv-kpi small, .pv-kpi em { grid-column: 1; }
  .pv-kpi b { grid-column: 2; grid-row: 1 / 3; margin: 0; text-align: right; }
}

/* CSS | sidebar-sync.css | Modern browsers | Keep the sidebar sync indicator and both text lines inside one padded, vertically centered card. */
.app .sidebar .side-sync {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #30466d;
  border-radius: 9px;
}
.app .sidebar .side-sync > .live-dot {
  position: relative;
  inset: auto;
  transform: none;
  width: 6px;
  height: 6px;
  margin: 0;
  justify-self: center;
}
.app .sidebar .side-sync > div { min-width: 0; }
.app .sidebar .side-sync b { display: block; margin: 0; line-height: 1.4; }
.app .sidebar .side-sync span:not(.live-dot) {
  display: block;
  margin: 3px 0 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Configuration form: override the older, more-specific navy form rules. */
#fcBundleDialog {
  color-scheme: light;
  color: #18243a;
  background: #ffffff;
  border-color: #c7d1df;
}
#fcBundleDialog .dialog-head,
#fcBundleDialog .dialog-body { color: #18243a; background: #ffffff; }
#fcBundleDialog .dialog-head { border-color: #dfe5ef; }
#fcBundleDialog .dialog-foot { color: #18243a; background: #f7f8fc; border-color: #dfe5ef; }
#fcBundleDialog .dialog-head h2 { color: #18243a; }
#fcBundleDialog .eyebrow { color: #294bb9; }
#fcBundleDialog .field label { color: #344158; }
#fcBundleDialog .field small,
#fcBundleDialog .quiet-label,
#fcBundleDialog .fc-download-check { color: #59677e; }
#fcBundleDialog .field input,
#fcBundleDialog .field select,
#fcBundleDialog .field textarea {
  color: #18243a;
  -webkit-text-fill-color: #18243a;
  background: #ffffff;
  border-color: #98a8bd;
  caret-color: #18243a;
}
#fcBundleDialog input::placeholder,
#fcBundleDialog textarea::placeholder { color: #59677e; -webkit-text-fill-color: #59677e; opacity: 1; }
#fcBundleDialog .field :is(input, select, textarea):disabled {
  color: #45536a;
  -webkit-text-fill-color: #45536a;
  background: #edf1f7;
  border-color: #b3bece;
  opacity: 1;
  cursor: not-allowed;
}
#fcBundleDialog select option { color: #18243a; background: #ffffff; }
#fcBundleDialog input::file-selector-button {
  color: #18243a;
  -webkit-text-fill-color: #18243a;
  background: #edf2ff;
  border: 1px solid #98a8bd;
  border-radius: 4px;
  padding: 5px 8px;
  margin-right: 8px;
}
#fcBundleDialog .field :is(input, select, textarea):focus-visible,
#fcBundleDialog button:focus-visible {
  outline: 2px solid #355bd6;
  outline-offset: 2px;
  border-color: #355bd6;
  box-shadow: 0 0 0 3px #355bd61c;
}
#fcBundleDialog .quiet { color: #344158; }
#fcBundleDialog .quiet:hover { color: #203b7c; background: #edf2ff; }
#fcBundleDialog .feedback { color: #9c2c40; }
#fcBundleDialog .button { color: #18243a; background: #ffffff; border-color: #98a8bd; }
#fcBundleDialog .button.primary { color: #ffffff; background: #355bd6; border-color: #355bd6; }
#fcBundleDialog .fc-saved-picker { padding: 12px; margin-bottom: 16px; background: #f7f8fc; border: 1px solid #c7d1df; border-radius: 8px; }
#fcBundleDialog .fc-saved-picker summary { color: #18243a; cursor: pointer; font-weight: 600; }
#fcBundleDialog .fc-saved-picker .quiet-label { font-size: 12px; }
#fcBundleDialog .fc-saved-picker select { width: 100%; min-height: 100px; }
#fcBundleDialog option:disabled { color: #59677e; -webkit-text-fill-color: #59677e; background: #edf1f7; }
#fcBundleDialog option:checked { color: #ffffff; -webkit-text-fill-color: #ffffff; background: #355bd6 linear-gradient(#355bd6, #355bd6); }

/* On touch layouts, let the document scroll instead of trapping the gesture in the app panel. */
@media (max-width: 980px) {
  body:has(.app) {
    height: auto;
    min-height: 100dvh;
    overflow-x: clip;
    overflow-y: auto;
  }
  .app {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .app .main {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
}

/* Keep the per-account cookie action easy to spot in both account tables. */
.account-cookie .cookie-action,
.bi-cookie .cookie-action {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #c5d4f3 !important;
  border-radius: 8px;
  background: #edf3ff;
  color: #274d9e !important;
  font-size: 11px;
  font-weight: 650;
}
.account-cookie .cookie-action:hover,
.bi-cookie .cookie-action:hover {
  border-color: #9eb5e6 !important;
  background: #e3ecff;
  color: #1d3f86 !important;
}
.account-cookie .cookie-action:disabled,
.bi-cookie .cookie-action:disabled {
  border-color: #dbe2ec !important;
  background: #f3f5f9;
  color: #66748a !important;
  opacity: 1;
  cursor: not-allowed;
}

/* Shared workspace polish: clearer grouping, readable counts and fewer competing edges. */
.app .main > .main-inner > #dashboardPageHead { background: #ffffff; }
.app .sidebar .side-item { border-radius: 10px; }
.app .sidebar .side-item.is-active { box-shadow: inset 3px 0 #9dbbff, 0 4px 12px #08132b18; }
.workspace-stat, .workspace-game, .fc-panel, .fc-pack, .fc-machine,
.table-panel, .account-status-card { border-radius: 14px; }
.workspace-stat, .workspace-game, .fc-panel { box-shadow: 0 3px 14px #18243a06; }
.workspace-game { padding: 25px; }
.workspace-game-logo { border-radius: 14px; }
.workspace .fc-panel .fc-heading { padding-bottom: 16px; border-bottom: 1px solid #e7ecf4; }
.workspace .fc-pack { box-shadow: 0 2px 8px #18243a04; }
.workspace .fc-pack .fc-actions { gap: 8px; }
.trackstats-workspace {
  padding: 22px 24px 10px;
  margin: 0 0 22px;
  border: 1px solid #dfe6f1;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 3px 14px #18243a05;
}
.trackstats-head { margin-bottom: 18px; gap: 18px; flex-wrap: wrap; }
.trackstats-head h2 { font-size: 26px; letter-spacing: -.035em; }
.trackstats-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.trackstats-actions .control-btn { min-height: 39px; padding: 9px 13px; }
.trackstats-actions .track-copy-all { background: #355bd6; border-color: #355bd6; color: #ffffff; }
.trackstats-actions .track-copy-all:hover { background: #294bb9; border-color: #294bb9; color: #ffffff; }
.track-copy-all .icon { width: 16px; height: 16px; }
.trackstats-tabs { gap: 6px; padding: 0 0 14px; border-color: #e7ecf4; }
.trackstats-tabs button { min-height: 40px; padding: 10px 15px; border-radius: 10px; }
.trackstats-tabs button[aria-selected=true] { background: #edf2ff; border-color: #dce5fc; box-shadow: none; color: #294bb9; }
.trackstats-summary { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 0 8px; color: #59677e; }
.trackstats-summary b { color: #18243a; font-weight: 600; font-variant-numeric: tabular-nums; }
.trackstats-subtabs { gap: 6px; padding: 6px 0 0; }
.trackstats-subtabs button { padding: 9px 13px; border-radius: 8px; }
.trackstats-subtabs button[aria-selected=true] { background: #f0f4fd; border-color: #d9e3f7; color: #294bb9; }
.account-status-card { padding: 16px; box-shadow: 0 2px 8px #18243a04; }
.account-status-card.is-empty { opacity: .85; }
.cookie-dialog {
  padding: 28px;
  border: 1px solid #d9e2ef;
  border-radius: 18px;
  background: #ffffff;
  color: #18243a;
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 28px);
  overflow: auto;
  box-shadow: 0 24px 80px #14213b26;
}
.cookie-dialog::backdrop { background: #14213b66; backdrop-filter: blur(4px); }
.cookie-dialog h2 { margin: 7px 0 12px; font-size: 23px; }
.cookie-dialog p { color: #59677e; font-size: 13px; line-height: 1.75; }
.cookie-dialog .design-secondary { background: #f6f8fc; color: #344158; border-color: #d8e1ef; }
.cookie-dialog .design-secondary:hover { background: #edf2fb; color: #203b7c; }
.cookie-dialog .design-dialog-actions { gap: 10px; margin-top: 22px; }
.cookie-dialog .design-error:empty { display: none; }
@media (max-width: 760px) {
  .trackstats-workspace { padding: 17px 16px 10px; border-radius: 13px; margin-bottom: 18px; }
  .trackstats-head { gap: 14px; margin-bottom: 16px; }
  .trackstats-head h2 { font-size: 23px; }
  .trackstats-actions { width: 100%; gap: 8px; }
  .trackstats-actions .control-btn { min-height: 42px; padding: 9px 11px; font-size: 11px; }
  .trackstats-tabs button { padding: 10px 11px; font-size: 11px; }
  .trackstats-summary { gap: 7px 14px; font-size: 11px; }
  .cookie-dialog { padding: 22px 18px; }
  .workspace-game { padding: 20px; }
}
