/* DARK SPACE: extended from the supplied Sitemap Generator theme.
   Hierarchy comes from borders, spacing and surfaces, not heavy type. */
:root {
    --bg: #0b0f16;
    --panel: #121923;
    --panelAlt: #0f141d;
    --border: #2b3647;
    --borderSoft: #334155;
    --text: #e6edf7;
    --textSoft: #b6c2d1;
    --muted: #8291a5;
    --heading: #f5f7fb;
    --accent: #6ca3ff;
    --accentDeep: #2852d1;
    --good: #78c391;
    --warn: #e7ad6a;
    --danger: #ec9393;
    --fontBody: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --fontMono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); color-scheme: dark; }
body { margin: 0; min-height: 100vh; color: var(--text); font: 14px/1.55 var(--fontBody); background: radial-gradient(ellipse at 85% -20%, rgba(40,82,209,.09), transparent 55%), var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #bad3ff; }
button, input, select, textarea { font: inherit; }
button, .button { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
input, select, textarea { width: 100%; min-height: 40px; padding: 9px 11px; color: var(--text); background: #0c121b; border: 1px solid var(--border); border-radius: 7px; outline: none; font-weight: 400; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,163,255,.12); }
input::placeholder, textarea::placeholder { color: #687a91; }
input[readonly] { color: var(--muted); }
input:disabled, select:disabled, button:disabled { cursor: not-allowed; opacity: .5; }
input[type=checkbox] { width: 17px; min-height: 17px; height: 17px; accent-color: var(--accent); }
textarea { resize: vertical; min-height: 98px; }
select { padding-right: 26px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
fieldset { min-width: 0; }
h1,h2,h3,h4,p { margin: 0; }
h1,h2,h3,h4,strong,b { font-weight: 500; }
h1 { color: var(--heading); font-size: 29px; line-height: 1.25; letter-spacing: -.035em; }
h2 { font-size: 17px; color: var(--heading); line-height: 1.35; }
h3 { font-size: 15px; color: var(--heading); }
h4 { font-size: 13px; }
small { font-size: 12px; }
pre, code, .mono, .numberInput { font-family: var(--fontMono); }
code { color: #a7c9f5; font-size: .9em; overflow-wrap: anywhere; }
pre { margin: 0; font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.muted { color: var(--muted); }
.goodText { color: var(--good); }
.warningText { color: var(--warn); }
.dangerText { color: var(--danger); }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 9px; }
.srOnly { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skipLink { position: fixed; top: -80px; left: 20px; z-index: 1500; padding: 12px; background: var(--panel); border: 1px solid var(--accent); }
.skipLink:focus { top: 10px; }
.appHeader { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #223044; background: rgba(11,15,22,.95); backdrop-filter: blur(12px); }
.appHeaderInner { max-width: 1540px; min-height: 72px; padding: 12px 38px; margin: 0 auto; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; gap: 12px; align-items: center; color: var(--text); flex-shrink: 0; }
.brandMark { display: grid; place-items: center; width: 37px; height: 39px; border: 1px solid #4b6d9f; border-radius: 9px; background: linear-gradient(145deg,#1e3049,#111a29); color: #c9dcfa; font-size: 13px; letter-spacing: .05em; font-weight: 500; }
.brandText { display: flex; flex-direction: column; gap: 1px; font-size: 15px; }
.brandText small { color: var(--muted); font-size: 8px; letter-spacing: .14em; }
.profileSwitcher { margin-left: auto; max-width: 300px; width: 26vw; }
.profileSwitcher select { min-height: 35px; padding: 6px 28px 6px 12px; font-size: 12px; background: #101822; }
.headerActions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.localIndicator { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--muted); }
.localIndicator i { width: 5px; height: 5px; background: var(--good); border-radius: 50%; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid #3c4c63; border-radius: 11px; background: #182332; color: #b4c8e4; font: 500 13px var(--fontMono); }
.avatar.small { width: 30px; height: 30px; border-radius: 50%; font-size: 11px; }
.userMenu { position: relative; }
.userMenu summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 12px; }
.userMenu summary::-webkit-details-marker { display: none; }
.userDropdown { position: absolute; top: 43px; right: 0; width: 220px; border: 1px solid var(--borderSoft); padding: 10px; border-radius: 9px; background: #131c29; box-shadow: 0 15px 40px #0008; }
.userDropdown a, .userDropdown button, .menuRole { display: block; padding: 9px; text-align: left; width: 100%; color: var(--textSoft); }
.userDropdown button { border: 0; background: none; }
.userDropdown button .icon { margin-right: 7px; }
.userDropdown a:hover, .userDropdown button:hover { background: #ffffff08; border-radius: 5px; }
.menuRole { font-size: 10px; text-transform: uppercase; color: var(--accent); letter-spacing: .1em; border-bottom: 1px solid var(--border); }
.page { max-width: 1420px; width: calc(100% - 150px); margin: 0 40px 0 110px; padding: 35px 0 45px; min-height: calc(100vh - 142px); }
.appFooter { border-top: 1px solid #1e2939; width: calc(100% - 150px); max-width: 1420px; margin: 0 40px 0 110px; padding: 16px 0 24px; display: flex; justify-content: space-between; color: #6f8096; font-size: 10px; letter-spacing: .03em; }
.separator { padding: 0 8px; color: #3a4b62; }
.pageHeading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.pageHeading p { color: var(--muted); margin-top: 9px; font-size: 13px; max-width: 700px; }
.headingAction { flex-shrink: 0; display: flex; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 9px 15px; border: 1px solid var(--borderSoft); border-radius: 7px; background: #16202e; color: var(--text); font-size: 12px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.button:hover { color: #fff; border-color: #516886; background: #1b293b; }
.button.primary { background: #244874; border-color: #4774ae; color: #e2eeff; }
.button.primary:hover { background: #2b5588; border-color: #719bdb; }
.button.ghost { background: #111923; }
.button.danger { border-color: #784345; color: #e9a9a9; background: #321f25; }
.button.small { min-height: 31px; padding: 10px; font-size: 12px; }
.button .icon { width: 16px; height: 16px; }
.iconButton { border: 1px solid var(--border); background: #0d141f; color: var(--textSoft); width: 39px; height: 39px; border-radius: 8px; display: inline-grid; place-items: center; }
.iconButton:hover { border-color: var(--accent); color: var(--accent); }
.metricsGrid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 25px; }
.metricCard { border: 1px solid var(--border); border-radius: 11px; padding: 16px 19px; min-width: 0; background: linear-gradient(120deg,rgba(36,53,76,.23),transparent 85%),var(--panel); position: relative; }
.metricCard::before { content: ""; position: absolute; left: -1px; top: 22px; width: 2px; height: 27px; background: #658dc2; }
.metricCard.good::before { background: var(--good); }
.metricCard.warning::before { background: var(--warn); }
.metricLabel { color: var(--textSoft); display: flex; align-items: center; gap: 8px; font-size: 11px; }
.metricLabel .icon { color: #7b9bc6; width: 17px; height: 17px; }
.metricValue { margin-top: 10px; font-size: 30px; font-weight: 400; line-height: 1.25; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.metricDetail { margin-top: 7px; color: var(--muted); font-size: 10px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; min-width: 0; }
.panel + .panel, .panel + .metricsGrid { margin-top: 18px; }
.panelHeader { padding: 17px 20px; border-bottom: 1px solid #243145; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panelHeader h2 { font-size: 15px; }
.panelHeader small { color: var(--muted); font-size: 11px; }
.panelHeader .headingGroup { display: flex; align-items: center; gap: 10px; }
.panelHeader .headingGroup .icon { color: #85a4d2; }
.panelBody { padding: 20px; }
.panelBody > p { color: var(--textSoft); margin-bottom: 15px; }
.twoColumns { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(300px,1fr); gap: 18px; }
.twoColumns > .panel { margin-top: 0; }
.equalColumns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.equalColumns > .panel { margin-top: 0; }
.stack { display: grid; gap: 18px; }
.toolbar { padding: 13px 20px; border-bottom: 1px solid #243145; display: flex; align-items: center; gap: 12px; }
.toolbar .searchField { max-width: 330px; }
.searchField { position: relative; width: 100%; }
.searchField > .icon { position: absolute; top: 11px; left: 11px; width: 16px; height: 16px; color: var(--muted); }
.searchField input { padding-left: 35px; min-height: 37px; font-size: 12px; }
.toolbarSelect { max-width: 170px; font-size: 12px; min-height: 37px; }
.toolbarMeta { margin-left: auto; color: var(--muted); font-size: 11px; }
.tableWrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { background: #101723; color: #8b9db5; font-size: 9px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: 12px 18px; border-bottom: 1px solid #2b384b; white-space: nowrap; }
th button { border: 0; background: none; color: inherit; text-transform: inherit; font-size: inherit; letter-spacing: inherit; padding: 0; }
td { border-bottom: 1px solid #233044; padding: 14px 18px; font-size: 12px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #6ca3ff04; }
.cellTitle { color: #dce7f7; font-size: 13px; }
.cellSecondary { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.alignRight { text-align: right; }
.actions { display: flex; justify-content: flex-end; gap: 6px; }
.recordName { display: flex; align-items: center; gap: 11px; }
.recordName .avatar { width: 33px; height: 35px; font-size: 10px; border-radius: 7px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #3c485b; color: #b1bdd0; background: #91a1b809; padding: 3px 8px; border-radius: 5px; font-size: 10px; font-weight: 400; line-height: 1.4; white-space: nowrap; }
.badge.good { border-color: #37604a; color: #9cd6b1; background: #4b91651a; }
.badge.warning { border-color: #65533c; color: #ddb47e; background: #9d743115; }
.badge.blue { border-color: #365781; color: #a5c6f5; background: #4377b015; }
.badge.good::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #85cba1; }
.alert { padding: 12px 16px; margin-bottom: 18px; border: 1px solid #3c587f; border-left: 3px solid var(--accent); border-radius: 7px; background: #162437; font-size: 12px; color: #c0d4f1; overflow-wrap: anywhere; }
.alert.success { border-color: #325742; border-left-color: var(--good); background: #12261e; color: #a4d7b8; }
.alert.error { border-color: #6e3e42; border-left-color: var(--danger); background: #2d1c22; color: #edb2b2; }
.alert.warning { border-color: #5e4b33; border-left-color: var(--warn); background: #241f18; color: #d6b388; }
.callout { padding: 11px 14px; border-left: 2px solid #456b9f; background: #152033; border-radius: 0 6px 6px 0; color: #a5b7d0; font-size: 12px; margin: 16px 0; }
.callout:last-child { margin-bottom: 0; }
.emptyState { text-align: center; padding: 55px 22px; }
.emptyIcon { width: 52px; height: 52px; display: grid; place-items: center; background: #1c293b; border: 1px solid #354b69; color: #8badde; border-radius: 12px; margin: 0 auto 16px; }
.emptyState p { color: var(--muted); font-size: 13px; max-width: 440px; margin: 11px auto 21px; }
.formGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { color: #b2c0d3; font-size: 12px; }
.field.full, .fullWidth { grid-column: 1 / -1; }
.field small, .help { color: var(--muted); font-size: 11px; }
.checkField { display: flex; align-items: center; gap: 9px; color: var(--textSoft); font-size: 12px; padding: 8px 0; }
.formActions { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.formSection { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #253247; }
.formSection h3 { margin-bottom: 14px; padding-left: 10px; border-left: 2px solid #5884bc; }
.dangerZone { margin-top: 25px; border-color: #4e343d; }
.dangerZone summary { padding: 15px 20px; cursor: pointer; color: #d4a3a8; font-size: 12px; }
.dangerZone form { padding: 0 20px 20px; }
.dangerZone .field { max-width: 420px; margin: 12px 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; margin-bottom: 18px; }
.breadcrumb .icon { width: 12px; height: 12px; }
.profileHeading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.profileIdentity { display: flex; align-items: center; gap: 15px; min-width: 0; }
.profileAvatar { width: 51px; height: 56px; border-radius: 11px; background: linear-gradient(135deg,#223954,#152335); font-size: 16px; }
.titleWithBadge { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.profileMeta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.profileMeta b { color: #b6c7df; margin-left: 4px; }
.profileMeta .mono { font-size: 9px; color: #6a7e99; }
.profileSummary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin: 22px 0 18px; }
.levelPills { display: flex; gap: 7px; }
.levelPill { display: flex; gap: 8px; align-items: center; padding: 4px 9px; background: #142033; border: 1px solid #334966; border-radius: 5px; font: 13px var(--fontMono); color: #b6d2fb; }
.levelPill > span { color: #809abc; font-size: 10px; }
.contextTimers { display: flex; flex-wrap: wrap; gap: 20px; color: #92a6c2; font-size: 10px; }
.contextTimers > span { display: flex; align-items: center; gap: 7px; }
.contextTimers .icon { width: 15px; height: 15px; }
.countdown { font-family: var(--fontMono); font-size: 11px; white-space: nowrap; }
.profileTabs { display: flex; overflow-x: auto; gap: 3px; border-bottom: 1px solid var(--border); margin-bottom: 24px; scrollbar-width: thin; }
.profileTabs a { flex: 0 0 auto; padding: 12px 16px 13px; color: #8fa1b9; font-size: 12px; border-bottom: 2px solid transparent; white-space: nowrap; }
.profileTabs a:hover, .profileTabs a.active { color: #cfe1fc; border-bottom-color: #77a7ee; background: linear-gradient(0deg,#6ca3ff0d,transparent 85%); }
.sectionIntro { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.sectionIntro p { color: var(--muted); font-size: 12px; }
.moduleFieldset { border: 0; margin: 0; padding: 0; }
.moduleForm { position: relative; }
.saveBar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 17px; margin-top: 20px; background: rgba(18,25,35,.97); border: 1px solid var(--border); border-radius: 9px; position: sticky; bottom: 12px; z-index: 25; box-shadow: 0 6px 24px #0004; }
.saveMeta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.saveMeta .icon { width: 14px; height: 14px; }
.unsavedMark { border-left: 1px solid var(--border); padding-left: 9px; color: #e0b87f; }
.numberInput { text-align: right; font-size: 12px; min-height: 36px; padding: 8px 10px; }
.numberInput[data-invalid=true] { border-color: #b85f69; }
.resourceHeader, .resourceRow { display: grid; grid-template-columns: minmax(180px,1.3fr) repeat(2,minmax(115px,1fr)) minmax(100px,.8fr); align-items: center; column-gap: 18px; }
.resourceHeader { color: #8da1bc; background: #101723; padding: 10px 20px; border-bottom: 1px solid var(--border); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.resourceHeader > :not(:first-child) { text-align: right; }
.resourceGroup { padding: 8px 20px; color: #7293bd; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; background: #6ca3ff04; border-top: 1px solid #243044; border-bottom: 1px solid #1d293a; }
.resourceRow { padding: 12px 20px; border-bottom: 1px solid #1e2b3e; }
.resourceRow:last-child { border-bottom: 0; }
.resourceRow:hover { background: #6ca3ff03; }
.resourceName { font-size: 12px; color: #c7d5e9; }
.resourceName small { display: block; font-size: 9px; color: #7f93ae; margin-top: 2px; }
.resourceTotal { text-align: right; color: #a6c5ef; font: 13px var(--fontMono); }
.notApplicable { color: #42546e; text-align: right; font-size: 11px; }
.mobileLabel { display: none; }
.speedupGrid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.speedupGrid .field { padding: 10px; border: 1px solid #273649; border-radius: 7px; background: #0f1722; gap: 8px; }
.speedupGrid .field > span { font-family: var(--fontMono); color: #98b4d9; font-size: 11px; }
.speedupTotal { color: #a8c7ef; font-family: var(--fontMono); font-size: 14px; }
.processPanels { display: grid; gap: 18px; }
.processPanels .panel { margin: 0; }
.progressGrid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.progressCard { border-top: 2px solid #4c719e; }
.progressCard .panelBody { padding: 17px; }
.progressCard h3 { font-size: 13px; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.classCode { display: grid; place-items: center; width: 29px; height: 31px; border: 1px solid #36537b; background: #17273b; border-radius: 5px; color: #a2c5f5; font-family: var(--fontMono); }
.progressCard .field > span { font-size: 10px; }
.nextLevel { border-top: 1px solid #27374c; margin-top: 20px; padding-top: 16px; }
.nextLevel h4 { font-size: 11px; color: #b2c5e0; margin-bottom: 12px; }
.trackPair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.trackControl { display: flex; align-items: center; gap: 4px; }
.trackControl select { font-family: var(--fontMono); padding: 7px; min-height: 35px; font-size: 12px; }
.trackControl > span { font-size: 10px; color: #7489a5; }
progress { appearance: none; display: block; width: 100%; height: 4px; margin-top: 11px; border: 0; border-radius: 4px; overflow: hidden; background: #263448; accent-color: #719bd0; }
progress::-webkit-progress-bar { background: #263448; }
progress::-webkit-progress-value { background: #719bd0; }
progress::-moz-progress-bar { background: #719bd0; }
.nextNotice { min-height: 16px; margin-top: 9px; font-size: 9px; color: #9cacc2; }
.stockStrip { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 12px 16px; border: 1px solid #2e4260; background: #131f30; border-radius: 8px; margin-bottom: 18px; font-size: 11px; }
.stockStrip strong { color: #adc9f0; font-family: var(--fontMono); margin-left: 5px; font-size: 14px; }
.stockStrip a { margin-left: auto; font-size: 11px; }
.researchGrid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.researchCard .panelHeader { padding: 15px; }
.researchCard .panelBody { padding: 15px; }
.researchCard .field > span { font-size: 10px; }
.researchMeta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: #8095b0; font-size: 10px; }
.researchCosts { border-top: 1px solid #26364a; margin-top: 14px; padding-top: 10px; }
.researchCosts summary { cursor: pointer; color: #96b3da; font-size: 10px; }
.researchCosts table { margin-top: 8px; }
.researchCosts th, .researchCosts td { padding: 7px 5px; font-size: 9px; }
.pseudoTable { overflow: hidden; }
.collectionHeader { display: grid; grid-template-columns: minmax(170px,1.7fr) 108px minmax(175px,1.2fr) 113px; gap: 20px; padding: 11px 20px; color: #8299b7; background: #101723; text-transform: uppercase; font-size: 9px; letter-spacing: .11em; border-bottom: 1px solid #2b394e; }
.collectionRecord { border-bottom: 1px solid #263347; }
.collectionRecord:last-child { border-bottom: 0; }
.collectionMain { display: grid; grid-template-columns: minmax(170px,1.7fr) 108px minmax(175px,1.2fr) 113px; gap: 20px; padding: 15px 20px; align-items: center; }
.collectionMain > * { min-width: 0; }
.collectionName { display: flex; align-items: center; gap: 12px; }
.collectionName h3 { font-size: 13px; }
.collectionName small { color: #8397b3; font-size: 10px; display: block; margin-top: 2px; }
.collectionName .avatar { width: 38px; height: 43px; font-size: 10px; border-radius: 7px; }
.collectionName img { object-fit: cover; width: 42px; height: 43px; border: 1px solid #526581; border-radius: 8px; }
.collectionMain select { min-height: 35px; font-size: 11px; padding: 7px 23px 7px 9px; }
.collectionStatus select { color: #a7c3e8; }
.starControl { display: flex; flex-wrap: nowrap; align-items: center; gap: 1px; }
.starControl button { padding: 2px; border: none; background: none; color: #536780; display: grid; place-items: center; min-width: 23px; min-height: 32px; }
.starControl .icon { width: 20px; height: 20px; }
.starControl button.active { color: #d0ad72; }
.starControl button.active svg { fill: #ad8d5140; }
.starControl button:hover { color: #e8ca99; }
.collectionDetails { padding: 0 20px 12px 70px; }
.collectionDetails summary { cursor: pointer; color: #718eae; font-size: 10px; }
.featureRows { margin-top: 9px; border-left: 2px solid #2c425e; padding-left: 13px; max-width: 700px; }
.featureRow { display: flex; gap: 12px; justify-content: space-between; font-size: 10px; padding: 5px 0; color: #94abc8; }
.featureRow code { color: #647f9e; margin-left: auto; }
.featureRow b { font-family: var(--fontMono); color: #bad0ed; min-width: 55px; text-align: right; }
.artifactExtra { display: flex; align-items: center; gap: 12px; padding: 0 20px 13px 75px; font-size: 10px; color: #94aaca; }
.artifactExtra .numberInput { max-width: 125px; }
.artifactExtra .badge { margin-left: auto; }
.starExplainer { color: #7f96b6; font-size: 9px; margin-top: 5px; }
.timerGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.timerCard .timerValue { margin: 20px 0 8px; }
.timerValue .countdown { font-size: 27px; font-weight: 400; letter-spacing: -.03em; }
.timerExpiry { font-size: 10px; color: #7d91ae; min-height: 18px; }
.durationInputs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 15px; }
.durationInputs .field > span { font-size: 10px; }
.timerMode { margin-top: 20px; border-top: 1px solid #2c3b50; padding-top: 16px; }
.summaryList { margin: 0; }
.summaryList > div { padding: 11px 0; display: flex; gap: 15px; justify-content: space-between; border-bottom: 1px solid #233247; font-size: 12px; }
.summaryList > div:last-child { border-bottom: none; }
.summaryList dt { color: #859bb7; }
.summaryList dd { margin: 0; color: #bed0e8; text-align: right; }
.quickLink { display: flex; align-items: center; gap: 13px; padding: 15px 20px; border-bottom: 1px solid #233247; color: #bdcce1; }
.quickLink:last-child { border-bottom: 0; }
.quickLink > .icon { color: #7e9dca; }
.quickLink .icon:last-child { width: 13px; margin-left: auto; }
.quickLink small { display: block; font-size: 10px; color: #7e95b4; margin-top: 3px; }
.notesText { white-space: pre-wrap; overflow-wrap: anywhere; color: #b4c2d6; font-size: 12px; }
.codePanel { max-height: 480px; overflow: auto; background: #0b121c; padding: 17px; border: 1px solid #2d405d; border-radius: 8px; color: #9dbbdf; }
.codePanel pre { white-space: pre; }
.checkList { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.checkList .checkField { padding: 11px 0; border-bottom: 1px solid #223249; }
.checkList .checkField span small { display: block; color: #778da9; }
.roleRecord { padding: 18px 20px; border-bottom: 1px solid #27344a; }
.roleRecord:last-child { border-bottom: 0; }
.roleRecord summary { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.roleRecord summary small { color: var(--muted); }
.roleRecord form { margin-top: 18px; }
.diagnosticsGrid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.diagnosticItem { padding: 15px; border: 1px solid #2a3c52; border-radius: 8px; background: #101a26; }
.diagnosticItem h3 { font-size: 12px; color: #afc2dc; margin-bottom: 10px; }
.diagnosticItem .badge { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.secretBox { padding: 16px; border: 1px solid #4a6946; border-left: 3px solid var(--good); background: #14241d; border-radius: 8px; margin-bottom: 22px; }
.secretBox code { display: block; color: #b2d8ba; font-size: 12px; overflow-wrap: anywhere; margin: 10px 0; }
.secretBox p { color: #9ebaa5; font-size: 11px; }
.revealArea { margin-top: 16px; padding: 16px; border: 1px solid #3a5276; background: #111f30; border-radius: 8px; }
.revealArea output { font-family: var(--fontMono); color: #c3d7f5; display: block; margin: 12px 0; overflow-wrap: anywhere; }
.pagination { padding: 12px 20px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: var(--muted); font-size: 10px; border-top: 1px solid #263448; }
.authPage { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.authCard { width: min(450px,100%); padding: 30px; background: #121923; border: 1px solid #30435f; border-radius: 14px; box-shadow: 0 22px 85px #0004; }
.authCard .brand { margin-bottom: 32px; }
.authCard h1 { font-size: 25px; }
.authCard > p { margin: 10px 0 23px; color: #8fa4c1; font-size: 12px; }
.authCard .field { margin: 18px 0; }
.authCard .button { width: 100%; margin-top: 7px; }
.authFoot { border-top: 1px solid #28384d; padding-top: 17px; margin-top: 24px; color: #7085a1; font-size: 10px; }
.authCard code { display: block; margin: 16px 0; padding: 13px; background: #0b121c; border: 1px solid #2d405d; border-radius: 6px; font-size: 11px; }
/* Offer's floating navigation, adapted to the entire application. */
.sectionsToggle { position: fixed; left: 18px; top: 50%; z-index: 1200; width: 58px; height: 58px; padding: 0; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(108,163,255,.72); border-radius: 16px; background: linear-gradient(145deg,rgba(27,43,66,.98),rgba(12,20,31,.98)); color: #dceaff; box-shadow: 0 10px 28px #0006; transition: left .2s ease, transform .2s ease, opacity .2s ease; }
.sectionsToggle .icon { width: 27px; height: 27px; }
.sectionsToggle:hover, .sectionsToggle:focus-visible { transform: translateY(-50%) scale(1.04); border-color: var(--accent); }
.sectionsBackdrop { position: fixed; inset: 0; z-index: 1250; background: rgba(3,7,12,.68); backdrop-filter: blur(3px); opacity: 0; transition: opacity .24s ease; }
.sectionsBackdrop.isVisible { opacity: 1; }
.sectionsDrawer { position: fixed; inset: 0 auto 0 0; z-index: 1300; width: min(370px,88vw); display: flex; flex-direction: column; padding: 25px 22px 17px; background: radial-gradient(circle at top left,rgba(108,163,255,.1),transparent 28%),linear-gradient(180deg,#121b27,#0d141e); border-right: 1px solid var(--borderSoft); box-shadow: 18px 0 46px #0007; transform: translateX(-104%); visibility: hidden; transition: transform .26s ease, visibility 0s linear .26s; }
body.sectionsOpen { overflow: hidden; }
body.sectionsOpen .sectionsDrawer { transform: translateX(0); visibility: visible; transition: transform .26s ease, visibility 0s; }
body.sectionsOpen .sectionsToggle { opacity: 0; pointer-events: none; }
.sectionsDrawerHeader { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-bottom: 19px; border-bottom: 1px solid var(--borderSoft); }
.sectionsDrawerHeader h2 { font-size: 22px; }
.sectionsDrawerHeader .eyebrow { font-size: 9px; margin-bottom: 5px; }
.drawerContext { display: flex; align-items: center; gap: 11px; margin: 17px 0 5px; padding: 12px; border: 1px solid #335379; border-radius: 8px; background: #1c304b4d; font-size: 13px; }
.drawerContext small { display: block; color: #8ba5c8; font-size: 10px; margin-top: 3px; }
.contextIndicator { width: 3px; height: 28px; background: #81a7dc; border-radius: 2px; }
.sectionsNav { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 3px 18px 0; scrollbar-width: thin; scrollbar-color: #40516a transparent; }
.navGroupLabel { font-size: 9px; text-transform: uppercase; letter-spacing: .16em; color: #7a91af; margin: 23px 10px 9px; }
.sectionsNavLink { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 3px 0; border: 1px solid transparent; border-radius: 7px; color: #a9bcd6; font-size: 12px; line-height: 1.4; transition: background .15s ease,border-color .15s ease; }
.sectionsNavLink > .icon { width: 17px; height: 17px; color: #7d9bc5; }
.sectionsNavLink:hover { color: #dce8fb; border-color: #334762; background: #ffffff04; }
.sectionsNavLink.isActive { border-color: #436692; background: #6ca3ff11; color: #d5e6ff; box-shadow: inset 2px 0 #80a9e2; }
.drawerFoot { border-top: 1px solid #26354a; padding-top: 13px; font-size: 9px; color: #697f9d; }
.noScriptNav { padding: 20px; display: flex; gap: 12px; }
@media (min-width: 1650px) {
    .page, .appFooter { margin-left: auto; margin-right: auto; }
}
@media (max-width: 1150px) {
    .twoColumns { grid-template-columns: 1fr; }
    .metricsGrid { gap: 10px; }
    .metricCard { padding: 14px; }
    .researchGrid { grid-template-columns: 1fr 1fr; }
    .progressGrid { grid-template-columns: 1fr 1fr; }
    .collectionHeader, .collectionMain { grid-template-columns: minmax(155px,1.5fr) 88px minmax(165px,1fr) 105px; gap: 12px; }
    .resourceHeader, .resourceRow { grid-template-columns: minmax(155px,1.2fr) 1fr 1fr 95px; gap: 12px; }
}
@media (max-width: 920px) {
    .appHeaderInner { padding: 12px 22px; gap: 15px; }
    .page, .appFooter { width: calc(100% - 96px); margin-left: 76px; margin-right: 20px; }
    .sectionsToggle { left: 10px; width: 48px; height: 53px; }
    .equalColumns, .timerGrid { grid-template-columns: 1fr; }
    .metricsGrid { grid-template-columns: 1fr 1fr; }
    .headerActions .localIndicator { display: none; }
    .speedupGrid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .checkList { grid-template-columns: 1fr; }
}
@media (max-width: 699px) {
    .page { width: calc(100% - 50px); margin: 0 14px 0 36px; padding-top: 23px; }
    .appFooter { width: calc(100% - 38px); margin: 0 14px 0 24px; padding-bottom: 22px; }
    .appFooter > span:last-child { display: none; }
    .appHeaderInner { min-height: 66px; padding: 10px 15px; flex-wrap: wrap; gap: 11px; }
    .brand { gap: 9px; }
    .brandText { font-size: 13px; }
    .brandText small { font-size: 7px; }
    .brandMark { width: 31px; height: 34px; font-size: 11px; }
    .profileSwitcher { order: 3; width: 100%; max-width: none; }
    .profileSwitcher select { min-height: 32px; font-size: 11px; }
    .userName { display: none; }
    .pageHeading { align-items: flex-start; margin-bottom: 21px; gap: 10px; }
    h1 { font-size: 24px; }
    .pageHeading p { font-size: 12px; }
    .eyebrow { font-size: 9px; }
    .headingAction .button { padding: 10px; font-size: 13px; }
    .metricsGrid { gap: 10px; margin-bottom: 18px; }
    .metricCard { padding: 13px 14px; }
    .metricValue { font-size: 26px; }
    .metricLabel { font-size: 14px; gap: 6px; }
    .metricDetail { font-size: 9px; }
    .panelHeader, .panelBody { padding: 15px; }
    .toolbar { padding: 12px 15px; flex-wrap: wrap; gap: 9px; }
    .toolbar .searchField { max-width: none; }
    .toolbarMeta { font-size: 10px; }
    .formGrid { grid-template-columns: 1fr; gap: 16px; }
    .formActions { flex-wrap: wrap; }
    .profileHeading { align-items: flex-start; gap: 8px; }
    .profileIdentity { gap: 10px; }
    .profileAvatar { display: none; }
    .profileHeading .button { font-size: 0; padding: 8px; min-width: 34px; }
    .profileHeading .button .icon { width: 17px; }
    .profileMeta { gap: 9px 13px; margin-top: 7px; font-size: 10px; }
    .profileMeta .mono { flex-basis: 100%; font-size: 8px; }
    .profileSummary { margin-top: 18px; gap: 15px; }
    .contextTimers { gap: 8px 18px; font-size: 9px; }
    .contextTimers .countdown { font-size: 10px; }
    .profileTabs { margin-bottom: 21px; }
    .profileTabs a { padding: 10px 12px; font-size: 11px; }
    .sectionIntro { flex-direction: column; gap: 7px; }
    .resourceHeader { display: none; }
    .resourceRow { grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 14px 15px; }
    .resourceName { grid-column: 1; grid-row: 1; font-size: 12px; }
    .resourceTotal { grid-column: 2; grid-row: 1; font-size: 13px; }
    .resourceInput { grid-row: 2; }
    .resourceInput.single { grid-column: 1 / -1; }
    .notApplicable { display: none; }
    .resourceName small { font-size: 8px; }
    .mobileLabel { display: block; font-size: 9px; color: #788eaa; margin-bottom: 5px; }
    .resourceGroup { padding: 8px 15px; font-size: 9px; }
    .speedupGrid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
    .speedupGrid .field { padding: 7px; }
    .progressGrid { gap: 10px; }
    .progressCard .panelBody { padding: 12px; }
    .progressCard h3 { gap: 6px; font-size: 11px; margin-bottom: 14px; }
    .classCode { width: 24px; height: 28px; font-size: 11px; }
    .trackPair { gap: 5px; }
    .trackControl { gap: 2px; }
    .trackControl select { font-size: 11px; padding: 5px 2px; }
    .trackControl > span { font-size: 8px; }
    .nextLevel { padding-top: 12px; margin-top: 15px; }
    .nextLevel h4 { font-size: 10px; }
    .researchGrid { grid-template-columns: 1fr; }
    .saveBar { bottom: 7px; padding: 10px 12px; gap: 7px; }
    .saveMeta { font-size: 9px; max-width: 58%; }
    .saveMeta > .icon { display: none; }
    .saveBar .button { padding: 10px; font-size: 11px; }
    .unsavedMark { padding: 0; border: 0; }
    .collectionHeader { display: none; }
    .collectionMain { grid-template-columns: minmax(0,1fr) 110px; gap: 12px; padding: 15px; }
    .collectionName { grid-column: 1; grid-row: 1; gap: 8px; }
    .collectionName .avatar { width: 28px; height: 35px; font-size: 8px; }
    .collectionName img { width: 33px; height: 37px; }
    .collectionName h3 { font-size: 12px; }
    .collectionName small { font-size: 8px; }
    .collectionStatus { grid-column: 2; grid-row: 1; }
    .collectionXp { grid-column: 1; grid-row: 2; display: flex; align-items: center; gap: 7px; }
    .collectionXp .mobileLabel { margin: 0; font-size: 9px; }
    .collectionXp .numberInput { max-width: 100px; }
    .collectionStars { grid-column: 2; grid-row: 2; }
    .collectionMain.captainMain { grid-template-columns: minmax(0,1fr) 168px; gap: 12px 8px; }
    .captainMain .collectionStatus { justify-self: end; width: 103px; }
    .starControl button { min-width: 23px; padding: 1px; }
    .starControl .icon { width: 20px; height: 20px; }
    .collectionDetails { padding: 0 15px 12px; }
    .featureRows { padding-left: 10px; }
    .featureRow code { display: none; }
    .featureRow { font-size: 9px; }
    .artifactExtra { padding: 0 15px 12px; flex-wrap: wrap; gap: 8px; }
    .artifactExtra .badge { margin-left: 0; font-size: 9px; }
    .artifactExtra .numberInput { max-width: 110px; }
    .diagnosticsGrid { grid-template-columns: 1fr 1fr; }
    .stackedTable thead { display: none; }
    .stackedTable tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 15px; gap: 7px 13px; border-bottom: 1px solid #243044; }
    .stackedTable td { border: none; padding: 0; font-size: 11px; }
    .stackedTable .primaryCell { grid-column: 1; grid-row: 1; }
    .stackedTable .secondaryCell { grid-column: 1; font-size: 10px; }
    .stackedTable .actionCell { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
    .stackedTable .actionCell .actions { flex-direction: column; }
    .stackedTable .hideMobile { display: none; }
    .sectionsToggle { left: -28px; width: 58px; height: 58px; border-radius: 0 16px 16px 0; border-left: 0; }
    .sectionsToggle:hover, .sectionsToggle:focus-visible, .sectionsToggle:active { left: -18px; }
    .sectionsDrawer { width: min(360px,92vw); padding: 21px 16px 14px; }
}
@media (max-width: 374px) {
    .page, .appFooter { margin-left: 22px; margin-right: 10px; width: calc(100% - 32px); }
    .collectionMain.captainMain { grid-template-columns: minmax(0,1fr) 147px; padding: 13px 10px; }
    .starControl button { min-width: 20px; }
    .starControl .icon { width: 17px; height: 17px; }
    .collectionName .avatar { display: none; }
    .progressGrid { grid-template-columns: 1fr; }
    .pageHeading { flex-direction: column; }
    .headingAction { align-self: flex-end; }
    .sectionsToggle { left: -32px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.sectionBelow { margin-top: 20px; }
.credentialSummary { cursor: pointer; color: #aac5e9; font-size: 12px; }
.speedupFoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.timerHelp { margin-top: 16px; }

/* New game-account roster entry: compact pseudo-table for adding all profiles in one pass. */
.accountProfilesSection { padding-bottom: 0; }
.accountProfilesIntro { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.accountProfilesIntro h3 { margin-bottom: 6px; }
.accountProfilesIntro .help { max-width: 760px; }
.accountProfileHeader, .accountProfileRow { display: grid; grid-template-columns: minmax(185px,1.45fr) 105px minmax(145px,1.1fr) repeat(4,58px) 39px; gap: 9px; align-items: center; }
.accountProfileHeader { padding: 9px 11px; color: #8299b7; background: #101723; border: 1px solid #2b394e; border-bottom: 0; border-radius: 8px 8px 0 0; text-transform: uppercase; font-size: 9px; letter-spacing: .09em; }
.accountProfileHeader > :nth-child(n+4):nth-child(-n+7) { text-align: center; }
.accountProfileRows { border: 1px solid #2b394e; border-radius: 0 0 8px 8px; overflow: hidden; }
.accountProfileRow { position: relative; padding: 11px; background: #101822; border-bottom: 1px solid #243145; box-shadow: inset 2px 0 #4b709f; }
.accountProfileRow:last-child { border-bottom: 0; }
.accountProfileRow:hover { background: #111b28; }
.accountProfileField { display: block; min-width: 0; }
.accountProfileField input, .accountProfileField select { min-height: 35px; padding: 6px 8px; font-size: 11px; }
.accountProfileField select { padding-right: 22px; }
.accountProfileField.levelField select { text-align: center; font-family: var(--fontMono); }
.accountProfileRemove { width: 35px; height: 35px; border-radius: 7px; }
.accountProfileRemove .icon { width: 15px; height: 15px; }
.accountProfileRemove:disabled { visibility: hidden; }

@media (max-width: 920px) {
    .accountProfileHeader, .accountProfileRow { grid-template-columns: minmax(150px,1.35fr) 84px minmax(120px,1fr) repeat(4,50px) 35px; gap: 7px; }
    .accountProfileHeader { padding-left: 9px; padding-right: 9px; }
    .accountProfileRow { padding: 9px; }
}

@media (max-width: 699px) {
    .accountProfilesIntro { align-items: center; gap: 10px; }
    .accountProfilesIntro .button { flex: 0 0 auto; padding: 9px 10px; }
    .accountProfileHeader { display: none; }
    .accountProfileRows { border-radius: 8px; background: transparent; overflow: visible; border: 0; display: grid; gap: 10px; }
    .accountProfileRow { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; padding: 13px 42px 13px 13px; border: 1px solid #2b394e; border-radius: 8px; box-shadow: inset 2px 0 #4b709f; }
    .accountProfileRow:last-child { border-bottom: 1px solid #2b394e; }
    .accountProfileField.profileNameField { grid-column: 1 / -1; }
    .accountProfileField:nth-child(2) { grid-column: span 2; }
    .accountProfileField:nth-child(3) { grid-column: span 2; }
    .accountProfileField.levelField { grid-column: span 1; }
    .accountProfileRemove { position: absolute; top: 13px; right: 8px; }
    .accountProfileField input, .accountProfileField select { min-height: 34px; }
}

@media (max-width: 374px) {
    .accountProfilesIntro { align-items: flex-start; flex-direction: column; }
    .accountProfilesIntro .button { align-self: flex-end; }
    .accountProfileRow { padding-right: 39px; gap: 8px 6px; }
}

/* Dashboard account-first roster: profiles stay visually nested under their game login. */
.dashboardAccountGroups { display: grid; gap: 16px; padding: 16px; }
.dashboardAccountGroup { overflow: hidden; border: 1px solid #2b394e; border-radius: 10px; background: #0f1722; box-shadow: inset 2px 0 #4c709f; }
.dashboardAccountHeader { display: grid; grid-template-columns: minmax(220px,1fr) auto auto; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid #2b394e; background: linear-gradient(90deg,#152236,#111a26 62%,#101721); }
.dashboardAccountIdentity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.dashboardAccountIdentity h3 { font-size: 14px; color: #d8e5f6; }
.dashboardAccountIcon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid #365379; border-radius: 7px; background: #18283b; color: #91b4e6; }
.dashboardAccountIcon .icon { width: 18px; height: 18px; }
.dashboardAccountStats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.dashboardAccountActions { min-width: 76px; text-align: right; }
.dashboardProfileHeader, .dashboardProfileRow { display: grid; grid-template-columns: minmax(170px,1.35fr) minmax(105px,.7fr) minmax(145px,.9fr) minmax(115px,.75fr) minmax(155px,1fr) 39px; column-gap: 16px; align-items: center; }
.dashboardProfileHeader { padding: 9px 14px; color: #8299b7; background: #101723; border-bottom: 1px solid #243145; text-transform: uppercase; font-size: 9px; letter-spacing: .09em; }
.dashboardProfileRows { background: #0f1722; }
.dashboardProfileRow { padding: 11px 14px; border-bottom: 1px solid #213047; }
.dashboardProfileRow:last-child { border-bottom: 0; }
.dashboardProfileRow:hover { background: #6ca3ff05; }
.dashboardProfileIdentity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dashboardProfileIdentity .avatar { width: 31px; height: 31px; border-radius: 7px; font-size: 9px; }
.dashboardProfileLocation, .dashboardProfileLevels, .dashboardProfileShield, .dashboardProfileUpdate { min-width: 0; font-size: 11px; }
.dashboardProfileLocation .cellSecondary { margin-top: 2px; }
.dashboardProfileLevels { color: #a9c7ef; white-space: nowrap; }
.dashboardProfileUpdate .cellSecondary { margin-top: 0; }
.dashboardProfileAction { display: flex; justify-content: flex-end; }
.dashboardProfileAction .button { width: 33px; min-height: 31px; padding: 6px; }
.dashboardProfileAction .icon { width: 14px; height: 14px; }
.dashboardAccountEmpty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; color: var(--muted); font-size: 11px; }

@media (max-width: 1150px) {
    .dashboardProfileHeader, .dashboardProfileRow { grid-template-columns: minmax(160px,1.3fr) minmax(95px,.7fr) minmax(130px,.9fr) minmax(110px,.75fr) minmax(125px,.9fr) 35px; gap: 11px; }
}

@media (max-width: 920px) {
    .dashboardAccountGroups { padding: 13px; gap: 13px; }
    .dashboardProfileHeader, .dashboardProfileRow { grid-template-columns: minmax(150px,1.2fr) minmax(95px,.75fr) minmax(125px,.9fr) minmax(105px,.75fr) 35px; }
    .dashboardProfileHeader > :nth-child(5), .dashboardProfileRow .dashboardProfileUpdate { display: none; }
    .dashboardProfileHeader > :nth-child(6) { display: block; }
}

@media (max-width: 699px) {
    .dashboardAccountGroups { padding: 10px; gap: 12px; }
    .dashboardAccountHeader { grid-template-columns: minmax(0,1fr) auto; gap: 9px; padding: 12px; }
    .dashboardAccountIdentity { grid-column: 1; }
    .dashboardAccountStats { grid-column: 1; justify-content: flex-start; padding-left: 45px; }
    .dashboardAccountActions { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-width: 0; }
    .dashboardAccountActions .button { padding: 8px 9px; }
    .dashboardProfileHeader { display: none; }
    .dashboardProfileRows { display: grid; }
    .dashboardProfileRow { grid-template-columns: minmax(0,1fr) auto; gap: 7px 12px; padding: 12px; }
    .dashboardProfileIdentity { grid-column: 1; grid-row: 1; }
    .dashboardProfileLocation { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 4px 9px; align-items: baseline; }
    .dashboardProfileLocation .cellSecondary { margin: 0; }
    .dashboardProfileLevels { grid-column: 1; grid-row: 3; }
    .dashboardProfileShield { grid-column: 1; grid-row: 4; }
    .dashboardProfileUpdate { display: block !important; grid-column: 1; grid-row: 5; }
    .dashboardProfileAction { grid-column: 2; grid-row: 1 / span 5; align-self: center; }
    .dashboardProfileLocation .mobileLabel, .dashboardProfileLevels .mobileLabel, .dashboardProfileShield .mobileLabel, .dashboardProfileUpdate .mobileLabel { display: inline-block; min-width: 70px; margin: 0 5px 0 0; }
    .dashboardAccountEmpty { padding: 12px; }
}

@media (max-width: 374px) {
    .dashboardAccountHeader { padding: 10px; }
    .dashboardAccountIcon { width: 30px; height: 30px; }
    .dashboardAccountStats { padding-left: 41px; }
    .dashboardProfileRow { padding: 10px; }
}

/* R8 Dashboard account controls: ordering metadata, credential access and collapsible profile groups. */
.dashboardAccountHeader { grid-template-columns: minmax(210px,1fr) minmax(190px,.9fr) auto auto; }
.dashboardAccountCredential { display: flex; align-items: center; justify-content: flex-start; gap: 6px; min-width: 0; color: #8fa4c1; font-size: 10px; }
.dashboardAccountEmail { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #a9bdd8; }
.dashboardPasswordButton { flex: 0 0 auto; padding: 2px 0; border: 0; background: none; color: #89b4ef; font-size: 10px; font-weight: 500; }
.dashboardPasswordButton:hover, .dashboardPasswordButton:focus-visible { color: #c8ddfa; }
.dashboardPasswordState { flex: 0 0 auto; font-size: 10px; }
.dashboardAccountActions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; text-align: right; }
.dashboardAccountToggle { width: 33px; height: 31px; flex: 0 0 auto; }
.dashboardAccountToggle .icon { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .16s ease; }
.dashboardAccountToggle[aria-expanded="false"] .icon { transform: rotate(0deg); }
.accountProfiles[hidden] { display: none !important; }
.dashboardCredentialDialog { width: min(460px,calc(100vw - 32px)); padding: 0; color: var(--text); background: #121923; border: 1px solid #39506f; border-radius: 11px; box-shadow: 0 24px 85px #0009; }
.dashboardCredentialDialog::backdrop { background: rgba(3,7,12,.72); backdrop-filter: blur(3px); }
.dashboardCredentialForm { padding: 20px; }
.dashboardCredentialDialogHeader { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-bottom: 15px; margin-bottom: 14px; border-bottom: 1px solid #2a394e; }
.dashboardCredentialDialogHeader .eyebrow { margin-bottom: 4px; }
.dashboardCredentialDialogAccount { margin-bottom: 16px; color: #8fa4c1; font-size: 11px; overflow-wrap: anywhere; }
.dashboardCredentialForm .formActions { margin-top: 18px; }
.dashboardCredentialOutput { display: block; min-height: 18px; margin-top: 17px; padding: 11px 13px; color: #c3d7f5; background: #0b121c; border: 1px solid #2d405d; border-radius: 6px; font-family: var(--fontMono); font-size: 12px; overflow-wrap: anywhere; }
.dashboardCredentialForm .help { display: block; margin-top: 8px; }

@media (max-width: 920px) {
    .dashboardAccountHeader { grid-template-columns: minmax(190px,1fr) minmax(175px,.85fr) auto auto; gap: 10px; }
    .dashboardAccountCredential { font-size: 9px; }
    .dashboardPasswordButton, .dashboardPasswordState { font-size: 9px; }
}

@media (max-width: 699px) {
    .dashboardAccountHeader { grid-template-columns: minmax(0,1fr) auto; }
    .dashboardAccountIdentity { grid-column: 1; grid-row: 1; }
    .dashboardAccountCredential { grid-column: 1; grid-row: 2; padding-left: 45px; }
    .dashboardAccountStats { grid-column: 1; grid-row: 3; padding-left: 45px; }
    .dashboardAccountActions { grid-column: 2; grid-row: 1 / span 3; align-self: center; flex-direction: column; }
    .dashboardAccountActions .button { width: 100%; }
}

@media (max-width: 374px) {
    .dashboardAccountCredential, .dashboardAccountStats { padding-left: 41px; }
}
