/* TLW beta.10: quiet work surfaces. No TRV assets or framework copied. */
:root { --bg: #f8f9fb; --panel: #fff; --ink: #262b33; --muted: #606a77; --muted-2: #667180; --line: #e2e6ec; --line-strong: #b9c1cd; --nav: #252a32; --nav-2: #252a32; --red: #a92f3c; --radius: 8px; --shadow-sm: none; --surface-subtle: #f0f2f5; --action-bg: #a92f3c; --action-hover: #922735; --action-ink: #fff; --control-border: #84909e; --control-hover: #e7ebf0; --success-ink: #246344; --success-bg: #edf5f0; --warning-ink: #755214; --warning-bg: #f8f2e5; --danger-ink: #a42e3b; --danger-bg: #fbf0f2; --focus-ring: #2e719e; }
body { font-size: 14px; }
.shell { transition: none; }
.sidebar { background: var(--nav); padding-top: 12px; }
body.sidebar-collapsed { --sidebar: 64px; }
.sidebar-head { min-height: 57px; }
.sidebar .logo { width: 36px; height: 36px; border-radius: 0; background: transparent; box-shadow: none; color: #ed929b; font-size: 13px; }
.sidebar .brand { padding-bottom: 10px; }
.sidebar .environment-badge { display: none !important; }
.sidebar .brand strong { font-size: 12px; }
.sidebar .brand small { font-size: 10px; }
.nav-tools a, .sidebar-foot a, .sidebar-foot form button { border-color: transparent; border-radius: 5px; font-weight: 500; }
.nav-group { border: 0; }
.nav-subgroup { margin: 2px 0 4px 12px; border-left: 1px solid #46505b; }
.nav-group .nav-subgroup > summary { min-height: 40px; margin: 0; padding: 8px 10px; color: #c4cbd2; font-size: 11px; border-radius: 4px; }
.nav-group .nav-subgroup > a { margin-left: 8px; padding-left: 12px; }
.nav-group .nav-subgroup > summary::after { content: '›'; margin-left: auto; }
.nav-group .nav-subgroup[open] > summary::after { content: '⌄'; }
.module-source-section { margin: 0 0 24px; }
.module-source-section > h2 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 20px 0 12px; }
.module-source-section[hidden], .screen-card[hidden] { display: none; }
.mobile-operation-label { display: none; }
.topbar .menu { color: var(--ink); background: var(--panel); border: 1px solid var(--line-strong); box-shadow: none; }
.finance-head { padding: 0; margin-bottom: 12px; background: transparent; border: 0; }
.finance-head h1 { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 600; }
.finance-head .technical-details { border: 0; padding: 4px 0; }
.finance-toolbar .inline-search { display: flex; flex: 1; min-width: 0; gap: 8px; }
.finance-toolbar .inline-search input { flex: 1; min-width: 0; width: 100%; padding: 10px 12px; border: 1px solid var(--control-border); border-radius: 6px; color: var(--ink); background: var(--panel); font: inherit; }
.finance-toolbar .inline-search button { flex: 0 0 auto; min-height: 42px; }
@media (max-width: 900px) {
  .topbar-title .mobile-operation-label { display: block; color: var(--muted); font-size: 10px; line-height: 1.4; font-weight: 500; }
}
.nav-group summary { min-height: 40px; font-weight: 500; font-size: 12px; }
.nav-symbol { background: transparent; color: #c3c9d0; }
.nav-group .nav-overview { color: #eef0f3; font-weight: 600; }
.nav-group summary em { color: #a4aeb8; }
.nav-group a[aria-current="page"] { box-shadow: inset 2px 0 0 #d4585e; }
.topbar { min-height: 58px; padding: 7px 22px; background: var(--panel); border-color: var(--line); backdrop-filter: none; }
.topbar-title strong { font-size: 13px; font-weight: 600; }
.topbar-title small { font-size: 10px; color: var(--muted); }
.global-search input { height: 34px; border-radius: 6px; background: var(--bg); font-size: 12px; }
.user-chip { min-height: 36px; }
.user-chip b { font-weight: 500; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 12px; font-weight: 500; }
.topbar-actions .ghost { min-height: 32px; padding: 6px 10px; font-size: 11px; font-weight: 500; }
.content { padding: 28px 32px; }
.page-head h1 { font-size: clamp(22px, 2vw, 26px); font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.eyebrow { color: var(--muted); font-weight: 600; letter-spacing: .08em; font-size: 9px; }
.panel-head h2, .section-heading h2 { font-size: 18px; font-weight: 600; }
.module-card b, .screen-card .type { color: var(--muted); }
.module-icon, .heading-symbol { background: transparent; color: var(--muted); }
.panel, .screen-card, .field input, .field select, .field textarea, .filterbar, .source-strip { border-radius: 8px; box-shadow: none; }
.screen-card { min-height: 140px; }
.screen-card h3 { font-size: 15px; font-weight: 600; }
.button, button { font-weight: 600; }
.workspace-home { max-width: 1150px; margin: 0 auto; }
.workspace-intro { padding: 28px 0 30px; }
.workspace-intro h1 { margin: 0 0 7px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
.workspace-intro p { margin: 0; color: var(--muted); font-size: 13px; }
.workspace-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 32px; }
.workspace-shortcuts > a { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 100px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); text-decoration: none; }
.workspace-shortcuts > a:hover { border-color: var(--line-strong); background: var(--bg); }
.shortcut-symbol { display: grid; flex: 0 0 32px; height: 32px; place-items: center; color: var(--muted); font-size: 22px; font-weight: 400; }
.workspace-shortcuts strong, .workspace-shortcuts small { display: block; }
.workspace-shortcuts strong { margin-bottom: 5px; color: var(--ink); font-size: 14px; font-weight: 600; }
.workspace-shortcuts small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.shortcut-arrow { margin-left: auto; color: var(--muted-2); font-size: 16px; }
.workspace-section { border-top: 1px solid var(--line); }
.workspace-section > summary { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 12px 0; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 500; list-style: none; }
.workspace-section > summary::-webkit-details-marker { display: none; }
.workspace-section > summary::before { content: '›'; font-size: 18px; width: 10px; line-height: 1; }
.workspace-section[open] > summary::before { transform: rotate(90deg); }
.workspace-section[open] > summary { color: var(--ink); }
.workspace-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; padding: 0 0 20px 18px; }
.workspace-directory a { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 42px; padding: 8px 10px; border-radius: 6px; text-decoration: none; font-size: 13px; }
.workspace-directory a:hover { background: var(--line); }
.workspace-directory a > span:last-child { color: var(--muted-2); }
.workspace-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 8px 0 25px; }
.workspace-counts strong { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.workspace-counts span { color: var(--muted); font-size: 11px; }
.workspace-activity { padding: 0 0 20px; }
.workspace-activity .panel-head h2 { font-size: 14px; }
.workspace-activity .activity-list strong { font-weight: 400; }
.workspace-footnote { margin-top: 24px; color: var(--muted-2); font-size: 10px; }
/* One focused sign-in form, without a promotional side panel. */
.auth-shell { background: var(--bg); padding: 32px 20px; }
.auth-shell::before, .auth-story { display: none; }
.auth-layout { display: block; width: min(400px, 100%); min-height: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; overflow: visible; }
.login-card { max-width: none; padding: 24px 10px; background: transparent; }
.mobile-logo { display: block; width: auto; height: auto; margin: 0 0 34px; background: transparent; color: var(--red); box-shadow: none; font-size: 22px; font-weight: 800; letter-spacing: -.06em; text-align: left; }
.login-environment, .login-heading > .eyebrow { display: none; }
.login-heading { margin-bottom: 22px; }
.login-heading h2 { font-size: 26px; font-weight: 650; margin: 0 0 8px; letter-spacing: -.03em; }
.login-heading p { font-size: 13px; }
.passkey-button { min-height: 56px; padding: 12px 14px; border-radius: 8px; background: var(--panel); box-shadow: none; }
.passkey-button b { font-size: 12px; font-weight: 600; }
.passkey-button small { font-size: 10px; }
.passkey-symbol { width: 25px; height: 25px; color: var(--muted); background: transparent; }
.auth-divider { margin: 20px 0; font-size: 10px; }
.login-form .field > span { font-size: 12px; font-weight: 500; }
.login-form input { background: var(--panel); }
.login-submit { min-height: 44px; border-radius: 7px; font-size: 13px; }
.login-help { margin-top: 22px; font-size: 10px; }
.login-help strong { font-weight: 500; }
.privacy-note { margin-top: 16px; font-size: 10px; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #15171b; --panel: #1c1f25; --ink: #e8ecf2; --muted: #aeb7c4; --muted-2: #a1acbb; --line: #303641; --line-strong: #465160; --nav: #1b1e24; --nav-2: #1b1e24; --red: #ed929b; --surface-subtle: #252a33; --action-bg: #b63d48; --action-hover: #a73540; --control-border: #68788e; --control-hover: #303744; --success-ink: #a1d9b7; --success-bg: #21372e; --warning-ink: #e4c489; --warning-bg: #352e21; --danger-ink: #f2adb5; --danger-bg: #36272c; --focus-ring: #8cbbe3; }
  .topbar, .auth-shell { background: var(--bg); }
  .menu, .panel, .screen-card, .filterbar, .source-strip, .table td, .table th, .field input, .field select, .field textarea, .global-search input { background: var(--panel); }
  .login-card, .auth-layout { background: transparent; box-shadow: none; }
  .passkey-button { background: var(--panel); border-color: var(--line-strong); }
  .passkey-button:hover { background: var(--line); }
  .passkey-symbol { background: transparent; color: var(--muted); }
  .mobile-logo { color: #e27e84; box-shadow: none; }
  .module-icon, .heading-symbol, .metric-icon { color: var(--muted); background: transparent; }
  .login-submit { background: var(--action-bg); color: var(--action-ink); }
  .user-chip:hover { background: var(--panel); }
}
@media (max-width: 1050px) {
  .workspace-shortcuts { grid-template-columns: 1fr; gap: 10px; }
  .workspace-shortcuts > a { min-height: 78px; padding: 16px 18px; }
}
@media (max-width: 820px) {
  .topbar { padding: 8px 12px; min-height: 58px; }
  .content { padding: 20px; }
  .workspace-intro { padding: 14px 0 24px; }
  .workspace-directory, .workspace-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-shell { min-height: 100dvh; padding: 24px; }
  .auth-layout { min-height: 0; }
  .login-card { padding: 16px 0; }
}
@media (max-width: 420px) {
  .workspace-directory { grid-template-columns: 1fr; }
  .content { padding: 16px; }
}
@media print { .workspace-section:not([open]) { display: none; } }

/* Original supplied identity; no crop, recolouring or simulated logo. */
.brand-copy { min-width: 0; }
.brand-original { display: block; width: 172px; max-width: 100%; height: auto; padding: 6px; background: #fff; border-radius: 5px; }
.sidebar .brand > .logo { display: none; }
body.sidebar-collapsed:not(.sidebar-peek) .brand > .logo { display: grid; }
.login-brand-original { display: block; width: 210px; max-width: 100%; height: auto; margin: 0 0 28px; padding: 8px; background: #fff; border-radius: 6px; }

/* Shrink intrinsic form/file widths without clipping the document itself. */
fieldset, .field, .doc-upload > *, .reauth-box form, .screen-layout > *, .panel { min-width: 0; }
.field input, .field select, .field textarea, .doc-upload input { min-width: 0; max-width: 100%; }
.panel, .page-head, .doc-list a, .validation-list a { overflow-wrap: anywhere; }
.table { position: relative; max-width: 100%; }
.topbar { padding-top: calc(7px + env(safe-area-inset-top, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.sidebar { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.auth-shell { padding: max(24px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); }
@media (max-width: 820px) {
  .topbar { padding: calc(8px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px)); }
  .content { padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)); }
  .doc-upload input, .reauth-box input, .settings-form input { font-size: 16px; }
}

/* Shared component language: actions, statuses and data have separate roles. */
.content :where(button, .button, input[type="submit"]), .auth-shell button {
  min-height: 40px; padding: 10px 15px; border: 1px solid transparent;
  border-radius: 6px; background: var(--action-bg); color: var(--action-ink);
  font-size: 13px; font-weight: 600; line-height: 1.3; box-shadow: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.content :where(button, .button, input[type="submit"]):hover, .auth-shell button:hover { background: var(--action-hover); }
.content :is(button, .button):active, .auth-shell button:active { transform: none; }
.content :is(.ghost, .button.subtle), .auth-shell :is(.ghost, .passkey-button), .topbar .ghost {
  border-color: var(--control-border); background: var(--surface-subtle); color: var(--ink);
}
.content :is(.ghost, .button.subtle):hover, .auth-shell :is(.ghost, .passkey-button):hover, .topbar .ghost:hover { border-color: var(--control-border); background: var(--control-hover); }
.content .link, .auth-shell [data-password-toggle], .content .toast button {
  min-height: 32px; padding: 6px 8px; border-color: transparent; background: transparent; color: var(--red);
}
.content .link:hover, .auth-shell [data-password-toggle]:hover, .content .toast button:hover { background: var(--surface-subtle); }
.content .approve { border-color: var(--success-ink); background: var(--success-bg); color: var(--success-ink); }
.content .reject, .content button.danger { border-color: var(--danger-ink); background: var(--danger-bg); color: var(--danger-ink); }
.content .approve:hover { background: var(--success-bg); box-shadow: inset 0 0 0 1px var(--success-ink); }
.content .reject:hover, .content button.danger:hover { background: var(--danger-bg); box-shadow: inset 0 0 0 1px var(--danger-ink); }
.content .link.danger { border: 0; background: transparent; }
.danger { color: var(--danger-ink) !important; }
.auth-shell .passkey-button { min-height: 56px; text-align: left; }
.auth-shell .passkey-button small { color: var(--muted); }
.auth-shell .login-submit { min-height: 44px; background: var(--action-bg); color: var(--action-ink); }
.auth-shell .login-submit:hover { background: var(--action-hover); }
button:disabled { cursor: not-allowed; }
button[aria-busy="true"] { cursor: progress; }

.type, .tier, .badge, .status-pill { min-height: 23px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-subtle); color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .025em; line-height: 1.3; text-transform: none; }
.screen-card .type { padding: 0; border: 0; background: transparent; }
.tier.good, .badge.green, .status-pill.green { background: var(--success-bg); color: var(--success-ink); }
.tier.warn, .badge.amber, .badge.beta, .status-pill.amber { background: var(--warning-bg); color: var(--warning-ink); }
.badge.red, .status-pill.red { background: color-mix(in srgb, var(--danger, #a33) 14%, var(--panel, #fff)); color: var(--danger, #a33); border-color: color-mix(in srgb, var(--danger, #a33) 30%, var(--line)); }
.badges { flex-shrink: 0; align-items: center; padding-top: 8px; }
.page-head > div:first-child { min-width: 0; }
.page-head p { font-size: 13px; }
.panel-head h2, .form-panel legend { font-weight: 600; }
.records > .panel-head { flex-direction: column; gap: 14px; }
.records > .panel-head h2 { margin-top: 0; font-size: 16px; overflow-wrap: normal; }
.records .result-count { font-size: 13px; font-weight: 400; }
.field > span { color: var(--ink); font-size: 12px; font-weight: 500; }
.field input, .field select, .field textarea, .doc-upload input, .reauth-box input, .big-search input, .filterbar input, .records input[type="search"], .bonus-table input:not([type]), .bonus-table input[type="text"] { border-color: var(--control-border); background: var(--panel); color: var(--ink); border-radius: 6px; box-shadow: none; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--action-bg); }
input[type="file"]::file-selector-button { padding: 6px 10px; margin-right: 10px; border: 1px solid var(--control-border); border-radius: 4px; background: var(--surface-subtle); color: var(--ink); font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
input:focus, select:focus, textarea:focus { border-color: var(--focus-ring) !important; box-shadow: none; }
.table th, .table th:first-child { background: var(--surface-subtle); color: var(--muted); font-weight: 600; }
.table td, .table td:first-child { background: var(--panel); }
.table tbody tr:hover td, .table tbody tr:hover td:first-child { background: var(--surface-subtle); }
.record-data b { color: var(--ink); font-weight: 500; }
.sensitive-field > span i { border-radius: 3px; background: var(--surface-subtle); color: var(--muted); text-transform: none; }
.notice, .reauth-box { border-color: var(--line-strong); border-radius: 6px; background: var(--warning-bg); color: var(--warning-ink); }
.notice span, .reauth-box p { color: var(--warning-ink); }
.blocked { border-color: var(--line-strong); background: var(--surface-subtle); color: var(--muted); }
.toast { border-radius: 6px; }
.toast.ok { border-color: var(--success-ink); background: var(--success-bg); color: var(--success-ink); }
.toast.error { border-color: var(--danger-ink); background: var(--danger-bg); color: var(--danger-ink); }
.domain-advisory, .session-current, .passkey-item-icon, .security-illustration.small { background: var(--surface-subtle); color: var(--muted); }
.domain-advisory > span { background: var(--panel); }
.security-summary { background: var(--panel); color: var(--ink); }
.security-summary p { color: var(--muted); }
.security-illustration { width: 42px; height: 42px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 24px; }
.validation-state { min-height: 0; justify-content: flex-start; align-items: flex-start; gap: 15px; padding: 24px; }
.validation-icon { width: 28px; height: 28px; border-radius: 0; background: transparent; color: var(--muted); font-size: 23px; }
.validation-state h2 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.validation-state p { max-width: 610px; font-size: 13px; line-height: 1.65; }
.validation-state .actions { margin-top: 18px; padding-top: 0; border: 0; }
.validation-state .eyebrow { display: none; }
.technical-details { padding: 14px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.technical-details > summary { font-size: 12px; font-weight: 500; }
.technical-details .source-strip { border: 0; background: transparent; padding: 0; }
.evidence-grid span, .chips span { background: var(--surface-subtle); color: var(--muted); }
.evidence-grid div, .technical-strip { background: var(--surface-subtle); }
.flow-number, .empty-state > span, .profile-avatar { background: var(--surface-subtle); color: var(--muted); }
.flowstep > span { background: var(--surface-subtle); color: var(--ink); border-radius: 5px; }
.validation-list a:hover, .user-chip[aria-current="page"] { background: var(--surface-subtle); }
.auth-divider, .privacy-note { color: var(--muted); }
.login-help strong { color: var(--ink); }
.screen-card, .module-card, .flowstep, .role-card, .select-card { border-radius: 8px; box-shadow: none; }
.screen-card:hover, .module-card:hover { transform: none; box-shadow: none; }
@media (pointer: coarse) { .content :is(button,.button,input[type="submit"]), .auth-shell button { min-height: 44px; } }
@media (max-width: 820px) { .badges { padding-top: 0; } .validation-state { flex-direction: row; gap: 10px; padding: 18px; } .validation-icon { display: none; } }
@media (forced-colors: active) { button, .button, .badge, .tier, input, select, textarea { border: 1px solid ButtonText !important; } :focus-visible { outline-color: Highlight !important; } }

/* Use the supplied image at every navigation size, never a text substitute. */
body.sidebar-collapsed:not(.sidebar-peek) .sidebar .brand-copy { display: block; width: 46px; }
body.sidebar-collapsed:not(.sidebar-peek) .sidebar .brand-original { width: 46px; height: 34px; padding: 3px; object-fit: contain; border-radius: 4px; }
body.sidebar-collapsed:not(.sidebar-peek) .sidebar .brand { width: 46px; min-width: 46px; }

/* One quiet sign-in flow. Passkeys are suggested by the native credential UI. */
.auth-shell { align-items: center; }
.auth-layout { width: min(370px, 100%); }
.login-card { padding: 24px 0; }
.login-heading { margin-bottom: 26px; }
.login-heading h2 { font-size: 23px; font-weight: 600; }
.login-brand-original { width: 164px; margin-bottom: 30px; padding: 5px; }
.login-form { gap: 17px; }
.remember-option { display: flex; align-items: center; gap: 9px; min-height: 44px; color: var(--ink); font-size: 13px; cursor: pointer; }
.remember-option input { width: 17px; height: 17px; min-height: 17px; margin: 0; flex: 0 0 auto; }
.remember-help { margin-top: -15px; padding-left: 26px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.login-alternatives { margin-top: 12px; }
.auth-shell .login-alternatives .passkey-button { min-height: 44px; padding: 9px 5px; justify-content: center; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; }
.auth-shell .login-alternatives .passkey-button:hover { background: var(--surface-subtle); color: var(--ink); }
.passkey-hint { margin: 2px 0 0; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.5; }
.login-help-details { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.login-help-details summary { cursor: pointer; min-height: 44px; align-content: center; }
.login-help-details p { margin: 9px 0 0; }
@media (max-width: 820px) { .auth-shell { align-items: flex-start; } .login-card { padding-top: max(24px, 5vh); } .login-form .field input { font-size: 16px; } }
@media (max-height: 600px) { .login-card { padding-top: 8px; } .login-brand-original { width: 130px; margin-bottom: 20px; } }

/* beta.12 — progressive disclosure and one dominant action per work surface. */
.login-heading { margin-bottom: 22px; }
.login-brand-original { width: 148px; margin-bottom: 24px; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.login-options .remember-option { margin: 0; color: var(--muted); font-size: 12px; }
.auth-shell .passkey-inline { display: inline-flex; width: auto; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 5px 3px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; box-shadow: none; white-space: nowrap; }
.auth-shell .passkey-inline:hover { color: var(--ink); background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.auth-shell .password-icon-button { display: grid; place-items: center; top: 0; bottom: 0; right: 1px; margin-block: auto; width: 44px; height: 44px; min-width: 44px; padding: 0; color: var(--muted); }
.auth-shell .password-control input { padding-right: 50px; }
.password-icon-slash { display: none; }
.password-icon-button[aria-pressed=true] .password-icon-slash { display: block; }
.login-help-details { margin-top: 12px; padding-top: 0; border: 0; }
.login-help-details > summary { width: fit-content; margin: 0 auto; min-height: 44px; font-size: 12px; }
.login-help-details p { text-align: left; font-size: 12px; line-height: 1.6; }
.login-help-details[open] { padding-bottom: 8px; }
.login-form { gap: 15px; }
.login-submit { margin-top: 0; }

.account-menu { position: relative; }
.account-menu > summary { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 44px; min-height: 44px; padding: 3px; cursor: pointer; list-style: none; border-radius: 6px; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 12px; }
.account-chevron { color: var(--muted); font-size: 15px; }
.account-menu-panel { position: absolute; right: 0; top: calc(100% + 7px); width: 220px; max-width: calc(100vw - 24px); padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 25px #0002; z-index: 60; }
.account-menu-panel :is(a,button) { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 5px; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink); background: transparent; text-decoration: none; text-align: left; }
.account-menu-panel :is(a,button):hover { background: var(--surface-subtle); }
.account-menu-panel form { margin: 0; border-top: 1px solid var(--line); }

.workspace-intro { padding: 12px 0 24px; }
.workspace-intro h1 { font-size: clamp(24px,2vw,27px); }
.workspace-shortcuts { gap: 0 24px; margin-bottom: 24px; border-block: 1px solid var(--line); }
.workspace-shortcuts > a { min-height: 78px; padding: 14px 2px; border: 0; border-radius: 0; background: transparent; }
.workspace-shortcuts > a:hover { background: transparent; }
.workspace-shortcuts > a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.workspace-shortcuts strong { margin-bottom: 3px; }
.shortcut-symbol { flex-basis: 24px; font-size: 19px; }
.shortcut-arrow { font-size: 14px; }
.screen-grid { gap: 0 24px; }
.screen-card { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 16px; min-height: 0; padding: 17px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.screen-card:hover { border-color: var(--line-strong); background: transparent; }
.screen-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.screen-card h3 { grid-column: 1; margin: 5px 0 0; }
.screen-card-top { grid-column: 1; }
.screen-card-top .type { padding: 0; border: 0; background: transparent; font-weight: 400; font-size: 11px; text-transform: none; letter-spacing: 0; }
.screen-card footer { grid-column: 2; grid-row: 1 / 3; align-items: center; padding-top: 0; margin-top: 0; border: 0; font-size: 13px; }
.capability-help { margin: -5px 0 8px; color: var(--muted); font-size: 12px; }
.capability-help > summary { min-height: 44px; align-content: center; cursor: pointer; }
.capability-help dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 8px 0 18px; line-height: 1.6; }
.capability-help dt { font-weight: 500; color: var(--ink); }
.capability-help dd { margin: 0; }
.module-stats b { font-size: 24px; }
.form-panel .panel-head .eyebrow { display: none; }
.form-panel fieldset { margin-bottom: 16px; }
.form-section { border-top: 1px solid var(--line); }
.form-section > summary { min-height: 48px; padding: 13px 0; color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; }
.form-section > fieldset { padding: 4px 0 6px; }
.form-section:last-of-type { margin-bottom: 18px; }
.record { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 10px; }
.record-edit { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 44px; min-height: 44px; color: var(--ink); font-size: 12px; text-decoration: none; }
.record-edit:hover { text-decoration: underline; text-underline-offset: 3px; }
.record-details { grid-column: 1 / -1; }
.record-details > summary { min-height: 44px; padding: 12px 0 8px; color: var(--muted); font-size: 12px; cursor: pointer; }
.record-details[open] { padding-bottom: 8px; }
.record-data { margin-top: 3px; }
.records-export { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; }
@media (max-width:1050px) { .workspace-shortcuts > a + a { border-top: 1px solid var(--line); } }
@media (max-width:820px) { .account-name,.account-chevron { display: none; } .login-heading h2 { font-size: 22px; } .screen-card { padding-block: 16px; } .capability-help dl { grid-template-columns: 1fr; gap: 3px; } .capability-help dd { margin-bottom: 8px; } }
@media print { .account-menu { display: none; } }

/* candidate3 finance workflows: compact, operation-scoped, no promotional panels */
.finance-head h1{margin:.2rem 0}.finance-head p{margin:.25rem 0 0;max-width:72ch}.finance-toolbar{display:flex;gap:.75rem;align-items:center;justify-content:space-between;margin:0 0 1rem;flex-wrap:wrap}.inline-search{display:flex;gap:.5rem;flex:1;max-width:42rem}.inline-search input{min-width:12rem;flex:1}.finance-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(18rem,.85fr);gap:1rem;align-items:start}.finance-form fieldset{border:0;padding:0;margin:0;min-width:0}.finance-grid{display:grid;gap:.75rem}.finance-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.finance-section-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:1.4rem 0 .65rem}.finance-section-head h3{margin:0}.finance-lines{display:grid;gap:.7rem}.finance-line{border:1px solid var(--line,#d9dddf);border-radius:.75rem;padding:.8rem;background:color-mix(in srgb,var(--panel,#fff) 96%,transparent)}.finance-line.compact{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:.65rem;align-items:end}.finance-pallet{grid-template-columns:repeat(4,minmax(0,1fr))}.location-grid{margin-top:.65rem}.dimension-fields{display:flex;gap:.3rem}.dimension-fields input{min-width:0;width:33%}.finance-record-actions{display:flex;gap:.75rem;align-items:center;margin-top:1rem;flex-wrap:wrap}.finance-list{position:sticky;top:5rem}.finance-record{display:flex;justify-content:space-between;gap:.75rem;padding:.8rem 0;border-bottom:1px solid var(--line,#d9dddf)}.finance-record>div{display:grid;gap:.2rem}.finance-record small{opacity:.72}.finance-expiry-bar{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem}.table-wrap{overflow:auto}.check-field input{width:auto}.finance-form .notice{margin-top:.8rem}
@media (max-width:980px){.finance-layout{grid-template-columns:1fr}.finance-list{position:static}.finance-grid.three,.finance-line.compact,.finance-pallet{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.finance-grid.two,.finance-grid.three,.finance-line.compact,.finance-pallet{grid-template-columns:1fr}.finance-toolbar,.inline-search{align-items:stretch}.inline-search{max-width:none;width:100%}.finance-record{align-items:flex-start}.dimension-fields{display:grid;grid-template-columns:repeat(3,1fr)}.dimension-fields input{width:100%}}
.quotation-pallet-lines .pallet-line{background:color-mix(in srgb,var(--panel,#fff) 94%,var(--accent,#e62e3b) 6%)}
.field-inline{display:flex;gap:.35rem;align-items:stretch}.field-inline>*{min-width:0;flex:1}.pallet-output{display:block;margin-top:.3rem;color:var(--accent,#e62e3b);font-size:.78rem;font-weight:650}.quote-status{display:inline-flex;width:max-content;padding:.16rem .45rem;border-radius:999px;font-size:.72rem;font-weight:700;background:color-mix(in srgb,var(--muted,#69757a) 12%,transparent);opacity:1!important}.quote-status.proceeded{color:#198754;background:rgba(25,135,84,.12)}.quote-status.not_proceeded{color:#b42318;background:rgba(180,35,24,.1)}.quote-status.pending{color:#9a6700;background:rgba(154,103,0,.12)}.quotation-decision{display:grid;grid-template-columns:minmax(0,1fr) minmax(16rem,.8fr);gap:1rem;margin-top:1.25rem;padding:1rem;border-radius:.8rem;border:1px solid var(--line,#d9dddf);background:color-mix(in srgb,var(--panel,#fff) 92%,var(--accent,#e62e3b) 8%)}.quotation-decision h3{margin:.2rem 0}.quotation-decision p{margin:.25rem 0;opacity:.78}.decision-form{display:grid;gap:.55rem}.decision-form .actions{margin:0}.quotation-decision.is-final{border-left:.25rem solid #198754}.quotation-decision.is-pending{border-left:.25rem solid #d79b00}
@media (max-width:720px){.quotation-decision{grid-template-columns:1fr}.field-inline{flex-wrap:wrap}}

/* Keep touch targets generous without enlarging native checkbox controls. */
.field.check-field,.check-field.compact{display:flex;align-items:center;gap:.65rem;min-height:44px;cursor:pointer}
.field.check-field>input[type="checkbox"],.field.check-field>input[type="radio"],.check-field.compact>input[type="checkbox"]{width:18px;height:18px;min-width:18px;min-height:18px;max-width:18px;padding:0;flex:0 0 18px;order:-1;margin:0}
.field.check-field>span,.check-field.compact>span{margin:0;line-height:1.35}
.finance-record>div{min-width:0;overflow-wrap:anywhere}
.finance-record>a{flex-shrink:0;white-space:nowrap;align-self:center}
.reference-search-form{display:grid;gap:.65rem}
.reference-search-form>.field{gap:.35rem}
.reference-search-controls{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-height:44px}
.reference-search-controls>label{display:flex;align-items:center;gap:.5rem;min-height:44px;color:var(--muted);font-size:12px;white-space:nowrap}
.reference-search-controls>label input{width:17px;height:17px;margin:0;accent-color:var(--action-bg)}
.reference-search-controls>button{min-width:92px;margin:0}

/* beta.16 — identidad TLW: blanco limpio, rojo de marca y negro operativo. */
:root {
  --bg: #f7f7f6;
  --panel: #ffffff;
  --ink: #191b1e;
  --muted: #687078;
  --muted-2: #8b9399;
  --line: #e4e5e6;
  --line-strong: #c4c7ca;
  --nav: #16181b;
  --nav-2: #0d0e10;
  --red: #d74f48;
  --red-dark: #b93d38;
  --red-soft: #fff1ef;
  --action-bg: #d74f48;
  --action-hover: #b93d38;
  --action-ink: #ffffff;
  --surface-subtle: #f0f1f2;
  --control-border: #a4aab0;
  --control-hover: #e7e9ea;
  --focus-ring: #d74f48;
}
.sidebar { background: linear-gradient(160deg, var(--nav-2) 0%, var(--nav) 72%, #211719 100%); }
.sidebar-collapse { border-color: rgba(215,79,72,.42); background: rgba(215,79,72,.12); }
.sidebar-collapse:hover { border-color: var(--red); background: rgba(215,79,72,.24); }
.nav-symbol { color: #ea7770; }
.nav-group a:hover, .nav-group a[aria-current="page"] { background: rgba(215,79,72,.14); }
.nav-group a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--red); }
.brand-original, .login-brand-original {
  border: 1px solid rgba(215,79,72,.42);
  border-left: 3px solid var(--red);
  box-shadow: 0 5px 16px rgba(0,0,0,.24);
}
body.sidebar-collapsed:not(.sidebar-peek) .sidebar .brand-original { border-left-width: 2px; box-shadow: 0 3px 10px rgba(0,0,0,.24); }
.topbar { border-bottom-color: var(--line); }
.button.primary, .content :where(button, .button, input[type="submit"]), .auth-shell .login-submit { box-shadow: 0 2px 0 rgba(122,31,28,.15); }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111315;
    --panel: #1a1d20;
    --ink: #f4f5f6;
    --muted: #b7bec4;
    --muted-2: #9aa3aa;
    --line: #2f3438;
    --line-strong: #4a5157;
    --nav: #0b0c0e;
    --nav-2: #070809;
    --red: #ef6a63;
    --red-dark: #d9554f;
    --red-soft: #3a2322;
    --action-bg: #df5a54;
    --action-hover: #ee6d66;
    --surface-subtle: #23272b;
    --control-border: #626b73;
    --control-hover: #30363b;
    --focus-ring: #f18c86;
  }
  .sidebar { background: linear-gradient(160deg, #070809 0%, #0b0c0e 72%, #1b1113 100%); }
  .brand-original, .login-brand-original { border-color: rgba(239,106,99,.55); }
}
.report-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.report-filters .panel-head{margin-bottom:.8rem}
.report-results{overflow:hidden}
.report-results .table{overflow:auto;overscroll-behavior-inline:contain}
.report-results table{min-width:920px}
.report-results td small,.report-results td strong{display:block}
.report-results .metric-chip{display:inline-block;margin:.1rem .2rem .1rem 0;white-space:nowrap}
.report-results .muted{color:var(--muted)}
.responsive-table{width:100%;overflow:auto;overscroll-behavior-inline:contain}
.responsive-table table{width:100%;border-collapse:collapse}
.responsive-table th,.responsive-table td{padding:.75rem;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.responsive-table th{font-size:.78rem;color:var(--muted);font-weight:600}
.responsive-table td>small{display:block;margin-top:.25rem}
.responsive-table .inline-form{display:flex;gap:.75rem;flex-wrap:wrap}
.finance-toolbar .inline-search{min-width:0;flex-wrap:wrap}
.finance-toolbar .inline-search input{min-width:0;flex:1 1 12rem}
.finance-toolbar .inline-search select{min-width:0;max-width:100%;flex:1 1 10rem}
.mx-resource-table{min-width:640px}
@media(max-width:600px){
 .mx-resource-table,.mx-resource-table tbody,.mx-resource-table tr{display:block;min-width:0;width:100%}
 .mx-resource-table thead{display:none}
 .mx-resource-table tr{padding:1rem 0;border-bottom:1px solid var(--line)}
 .mx-resource-table td{display:grid;grid-template-columns:4.5rem minmax(0,1fr);gap:.5rem;padding:.4rem 0;border:0;width:auto;word-break:normal;overflow-wrap:anywhere}
 .mx-resource-table td::before{content:attr(data-label);font-size:.78rem;color:var(--muted);padding-top:.4rem}
 .mx-resource-table td:first-child,.mx-resource-table td:nth-child(2){display:block}
 .mx-resource-table td:first-child::before,.mx-resource-table td:nth-child(2)::before{display:none}
 .mx-resource-table td:first-child{font-size:1rem;font-weight:600}
 .mx-resource-table td:nth-child(2){font-size:.8rem;color:var(--muted)}
 .mx-resource-table td>.technical-details{grid-column:2;min-width:0}
 .mx-resource-table td>button{width:100%;min-width:0;white-space:normal}
 .mx-resource-table .badge{justify-self:start}
}
@media(max-width:600px){
 .finance-toolbar{display:flex;flex-direction:column;align-items:stretch}
 .finance-toolbar .inline-search{width:100%;max-width:none;display:flex;flex-wrap:wrap}
 .finance-toolbar>a{align-self:flex-start;min-height:40px;height:auto}
}

/* beta.17 — centro de mando y firma TLW. The dashboard stays quiet by
   default, using red only for attention states and action affordances. */
.sidebar {
  border-inline-end: 3px solid var(--red);
  background: linear-gradient(180deg, #090a0b 0%, #151719 68%, #381719 100%);
}
.sidebar-head { border-bottom: 1px solid rgba(215,79,72,.22); }
.brand-original { border-bottom: 3px solid var(--red); }
.workspace-intro { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; margin-bottom:1.1rem; }
.workspace-intro h1 { margin:.28rem 0 .35rem; font-size:clamp(28px,3vw,40px); letter-spacing:-.045em; }
.workspace-intro p { margin:0; color:var(--muted); }
.workspace-live { display:inline-flex; align-items:center; gap:.45rem; padding:.45rem .65rem; border:1px solid var(--line); border-radius:999px; color:var(--muted); font-size:.72rem; white-space:nowrap; }
.live-dot { width:.45rem; height:.45rem; border-radius:50%; background:#2b9b70; box-shadow:0 0 0 4px rgba(43,155,112,.12); }
.command-center { margin:0 0 1.35rem; padding:1.15rem; border:1px solid var(--line); border-top:3px solid var(--red); border-radius:14px; background:var(--panel); box-shadow:0 12px 30px rgba(15,18,20,.06); }
.command-center-head { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.command-center-head h2 { margin:.28rem 0 .3rem; font-size:1.18rem; letter-spacing:-.025em; }
.command-center-head p { margin:0; color:var(--muted); font-size:.82rem; }
.command-status { display:inline-flex; align-items:center; gap:.5rem; flex:0 0 auto; padding:.5rem .7rem; border:1px solid var(--line); border-radius:999px; font-size:.76rem; }
.command-dot { width:.55rem; height:.55rem; flex:0 0 auto; border-radius:50%; background:#2b9b70; box-shadow:0 0 0 4px rgba(43,155,112,.12); }
.command-status--attention .command-dot,.command-card--attention .command-dot { background:#c98a2b; box-shadow:0 0 0 4px rgba(201,138,43,.14); }
.command-status--critical .command-dot,.command-card--critical .command-dot { background:var(--red); box-shadow:0 0 0 4px rgba(215,79,72,.14); }
.command-status--neutral .command-dot,.command-card--neutral .command-dot { background:#9aa3a8; box-shadow:0 0 0 4px rgba(154,163,168,.14); }
.command-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.65rem; }
.command-card { display:flex; min-width:0; min-height:154px; flex-direction:column; padding:.8rem .85rem .75rem; border:1px solid var(--line); border-left:3px solid #2b9b70; border-radius:10px; background:var(--panel); }
.command-card--attention { border-left-color:#c98a2b; }
.command-card--critical { border-left-color:var(--red); }
.command-card--neutral { border-left-color:#9aa3a8; }
.command-card-top { display:flex; align-items:center; gap:.5rem; color:var(--muted); font-size:.72rem; font-weight:800; letter-spacing:.02em; }
.command-value { display:block; margin:.65rem 0 .25rem; color:var(--ink); font-size:clamp(1.6rem,2vw,2.05rem); letter-spacing:-.05em; line-height:1; }
.command-card p { min-height:2.5em; margin:0; color:var(--muted); font-size:.72rem; line-height:1.45; }
.command-action { display:inline-flex; align-items:center; justify-content:space-between; gap:.5rem; margin-top:auto; padding-top:.65rem; color:var(--red); font-size:.72rem; font-weight:850; text-decoration:none; }
.command-action:hover { text-decoration:underline; text-underline-offset:3px; }
.command-actions { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; margin-top:.9rem; padding-top:.8rem; border-top:1px solid var(--line); }
.command-actions-label { margin-right:.2rem; color:var(--muted); font-size:.72rem; font-weight:800; }
.command-actions a { display:inline-flex; align-items:center; gap:.45rem; padding:.38rem .55rem; border:1px solid rgba(215,79,72,.28); border-radius:7px; color:var(--red-dark); font-size:.72rem; font-weight:800; text-decoration:none; }
.command-actions a:hover { border-color:var(--red); background:var(--red-soft); }
@media(max-width:1180px) { .command-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:720px) { .workspace-intro,.command-center-head { align-items:flex-start; flex-direction:column; } .workspace-live { align-self:flex-start; } .command-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) { .command-center { padding:.8rem; } .command-grid { grid-template-columns:1fr; } .command-card { min-height:132px; } }
@media(prefers-color-scheme:dark) { .command-center { box-shadow:0 12px 30px rgba(0,0,0,.22); } .command-actions a:hover { background:var(--red-soft); } }

/* beta.18 — report tables: clear hierarchy, TLW contrast and scan-friendly
   rows without changing the underlying report data or export columns. */
.report-context { display:flex; align-items:center; gap:.45rem .9rem; flex-wrap:wrap; margin:0 0 .8rem; color:var(--muted); font-size:.72rem; }
.report-context span + span { padding-left:.9rem; border-left:1px solid var(--line); }
.report-context strong { color:var(--ink); font-weight:800; }
.report-results > .table, .content > .panel > .table { border-color:var(--line-strong); background:var(--panel); }
.content .table table { border-collapse:separate; border-spacing:0; }
.content .table th { background:var(--nav); color:#fff; border-bottom:2px solid var(--red); font-size:.69rem; font-weight:850; letter-spacing:.06em; line-height:1.25; text-transform:uppercase; white-space:nowrap; }
.content .table th:first-child { background:var(--nav); }
.content .table td { border-bottom:1px solid var(--line); background:var(--panel); color:var(--ink); line-height:1.4; }
.content .table tbody tr:nth-child(even) td { background:color-mix(in srgb,var(--surface-subtle) 42%,var(--panel)); }
.content .table tbody tr:hover td, .content .table tbody tr:hover td:first-child { background:var(--red-soft); }
.content .table tbody tr:last-child td { border-bottom:0; }
.report-results .table td:first-child strong { color:var(--red); font-weight:850; }
.report-results .table td small { color:var(--muted); font-size:.68rem; }
.report-results .metric-chip { display:inline-flex; align-items:center; min-height:22px; margin:.1rem .2rem .1rem 0; padding:.2rem .42rem; border:1px solid rgba(215,79,72,.3); border-radius:5px; background:var(--red-soft); color:var(--red-dark); font-size:.68rem; font-weight:800; white-space:nowrap; }
.content .table td[data-column*="status" i], .content .table td[data-column*="estado" i] { font-weight:800; }
.content .table td[data-column*="status" i]::first-letter, .content .table td[data-column*="estado" i]::first-letter { color:var(--red); }
@media(max-width:620px) { .report-context span + span { padding-left:0; border-left:0; } .content .table th,.content .table td { padding:.65rem .7rem; } }

/* beta.21 — radar ejecutivo: profundidad operativa sin convertir el inicio
   en un muro de tarjetas. Los detalles viven en bloques que se pueden leer
   en orden: periodos, dinero, mapa y decisiones. */
.command-deep { margin:0 0 1.4rem; padding:1.1rem; border:1px solid var(--line); border-radius:14px; background:var(--surface-subtle); }
.command-deep-head { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:.9rem; }
.command-deep-head h2 { margin:.28rem 0 .25rem; font-size:1.1rem; letter-spacing:-.025em; }
.command-deep-head p { margin:0; color:var(--muted); font-size:.76rem; }
.command-source { display:inline-flex; align-items:center; min-height:28px; padding:.3rem .55rem; border:1px solid var(--line); border-radius:999px; color:var(--muted); font-size:.68rem; white-space:nowrap; }
.command-periods { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.55rem; margin-bottom:.7rem; }
.command-period-card { min-width:0; padding:.72rem .78rem; border:1px solid var(--line); border-top:2px solid var(--nav); border-radius:9px; background:var(--panel); }
.command-period-card--attention { border-top-color:var(--red); }
.command-period-card span,.command-period-card small { display:block; color:var(--muted); font-size:.68rem; }
.command-period-card strong { display:block; margin:.28rem 0 .16rem; color:var(--ink); font-size:1.55rem; letter-spacing:-.055em; line-height:1; }
.command-period-card small { color:var(--muted-2); font-size:.64rem; }
.command-areas { margin:0 0 .7rem; padding:.85rem; border:1px solid var(--line); border-radius:10px; background:var(--panel); }
.command-areas .command-panel-head { margin-bottom:.62rem; }
.command-area-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.5rem; }
.command-area { min-width:0; border:1px solid var(--line); border-left:3px solid #9aa3a8; border-radius:8px; background:var(--surface-subtle); }
.command-area--ok { border-left-color:#2b9b70; }
.command-area--info { border-left-color:#6b8396; }
.command-area--attention { border-left-color:#c98a2b; }
.command-area--critical,.command-area--urgent { border-left-color:var(--red); }
.command-area summary { display:flex; align-items:center; gap:.42rem; min-height:38px; padding:.5rem .55rem; color:var(--ink); cursor:pointer; list-style:none; }
.command-area summary::-webkit-details-marker { display:none; }
.command-area-dot { width:.48rem; height:.48rem; flex:0 0 auto; border-radius:50%; background:#9aa3a8; box-shadow:0 0 0 3px rgba(154,163,168,.12); }
.command-area--ok .command-area-dot { background:#2b9b70; box-shadow:0 0 0 3px rgba(43,155,112,.12); }
.command-area--info .command-area-dot { background:#6b8396; box-shadow:0 0 0 3px rgba(107,131,150,.12); }
.command-area--attention .command-area-dot { background:#c98a2b; box-shadow:0 0 0 3px rgba(201,138,43,.12); }
.command-area--critical .command-area-dot,.command-area--urgent .command-area-dot { background:var(--red); box-shadow:0 0 0 3px rgba(215,79,72,.12); }
.command-area-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.7rem; font-weight:850; }
.command-area-status { margin-left:auto; color:var(--muted); font-size:.57rem; font-weight:900; letter-spacing:.04em; white-space:nowrap; }
.command-area-body { padding:.1rem .65rem .62rem 1.45rem; }
.command-area-body strong { display:block; margin-bottom:.2rem; color:var(--ink); font-size:.7rem; }
.command-area-body p { margin:.18rem 0; color:var(--muted); font-size:.64rem; line-height:1.38; }
.command-area-body p b { color:var(--ink); }
.command-area-body .command-action { padding-top:.35rem; font-size:.64rem; }
.command-area-summary { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:.35rem .65rem; color:var(--muted); font-size:.58rem; font-weight:700; letter-spacing:.02em; }
.command-area-summary__total { color:var(--ink); font-weight:850; }
.command-area-summary__ok::before, .command-area-summary__attention::before { display:inline-block; width:.42rem; height:.42rem; margin-right:.3rem; border-radius:50%; content:""; vertical-align:1px; }
.command-area-summary__ok::before { background:#2b9b70; }
.command-area-summary__attention::before { background:#c98a2b; }
.command-area-coverage { margin:.42rem 0 .5rem; }
.command-area-coverage__label { display:flex; align-items:center; justify-content:space-between; margin-bottom:.22rem; color:var(--muted); font-size:.58rem; }
.command-area-coverage__label b { color:var(--ink); font-size:.6rem; }
.command-area-progress { height:4px; overflow:hidden; border-radius:999px; background:var(--line); }
.command-area-progress span { display:block; height:100%; border-radius:inherit; background:var(--red); }
.command-area--ok .command-area-progress span { background:#2b9b70; }
.command-area--info .command-area-progress span { background:#6b8396; }
.command-area--attention .command-area-progress span { background:#c98a2b; }
.command-area-coverage small { display:block; margin-top:.25rem; color:var(--muted-2); font-size:.56rem; line-height:1.3; }
.command-area-facts { display:flex; flex-wrap:wrap; gap:.25rem .5rem; margin:.25rem 0 .42rem; color:var(--muted-2); font-size:.56rem; }
.command-area-facts span + span { padding-left:.5rem; border-left:1px solid var(--line-strong); }
@media(max-width:720px) { .command-area-summary { justify-content:flex-start; margin-top:.35rem; } }
.command-deep-columns { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; margin-bottom:.7rem; }
.command-deep-panel,.command-map-panel,.command-alerts { min-width:0; padding:.85rem; border:1px solid var(--line); border-radius:10px; background:var(--panel); }
.command-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:.7rem; margin-bottom:.7rem; }
.command-panel-head h3 { margin:.2rem 0 0; color:var(--ink); font-size:.9rem; letter-spacing:-.02em; }
.command-panel-head p { margin:.22rem 0 0; color:var(--muted); font-size:.68rem; }
.command-panel-kpi { flex:0 0 auto; color:var(--red); font-size:.68rem; font-weight:850; white-space:nowrap; }
.command-detail-grid { display:grid; gap:.48rem; }
.command-detail-grid > div { display:flex; align-items:baseline; justify-content:space-between; gap:.6rem; padding-top:.42rem; border-top:1px solid var(--line); }
.command-detail-grid span { color:var(--muted); font-size:.67rem; }
.command-detail-grid strong { color:var(--ink); font-size:.75rem; text-align:right; }
.command-map-panel { margin-bottom:.7rem; }
.command-map-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(190px,.8fr); gap:.8rem; align-items:stretch; }
.command-map-canvas { position:relative; min-width:0; overflow:hidden; border-radius:14px; background:#171a1d; }
.command-map-canvas svg { display:block; width:100%; height:auto; min-height:210px; }
.map-background { fill:url(#tlw-map-bg); }
.map-grid-line { fill:none; stroke:rgba(255,255,255,.07); stroke-width:1; }
.map-route { fill:none; stroke:rgba(255,255,255,.18); stroke-width:2; stroke-dasharray:5 6; }
.map-route--primary { stroke:var(--red); stroke-width:3; stroke-dasharray:none; opacity:.9; }
.map-route--secondary { stroke:#fff; stroke-width:1.5; opacity:.35; }
.map-hub-ring { fill:rgba(255,255,255,.05); stroke:rgba(255,255,255,.6); stroke-width:1.5; }
.map-hub-dot { fill:#fff; }
.map-hub text { fill:#fff; font-size:10px; font-weight:800; letter-spacing:.02em; }
.map-hub-region { fill:rgba(255,255,255,.6) !important; font-size:8px !important; font-weight:500 !important; }
.map-unit-pulse { fill:rgba(215,79,72,.24); stroke:rgba(215,79,72,.36); stroke-width:1; }
.map-unit-dot { fill:#ffb6ba; stroke:#fff; stroke-width:1; }
.command-map-note { display:block; padding:.45rem .65rem .55rem; color:rgba(255,255,255,.64); font-size:.62rem; }
.command-route-list { display:grid; align-content:start; gap:.48rem; }
.command-route-item { display:flex; align-items:flex-start; gap:.52rem; padding:.5rem .55rem; border:1px solid var(--line); border-radius:8px; background:var(--surface-subtle); }
.route-line { flex:0 0 3px; min-height:31px; border-radius:99px; background:var(--red); }
.command-route-item strong,.command-route-item small { display:block; }
.command-route-item strong { color:var(--ink); font-size:.69rem; line-height:1.3; }
.command-route-item small { margin-top:.15rem; color:var(--muted); font-size:.63rem; }
.command-map-empty { margin:.2rem 0; color:var(--muted); font-size:.7rem; line-height:1.45; }
.command-alerts { padding-bottom:.45rem; }
.command-alert-list { display:grid; gap:.48rem; }
.command-alert { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; gap:.65rem; padding:.6rem .65rem; border:1px solid var(--line); border-left:3px solid var(--line-strong); border-radius:8px; background:var(--panel); }
.command-alert--urgent { border-left-color:var(--red); }
.command-alert--attention { border-left-color:#c98a2b; }
.command-alert--info { border-left-color:#6b8396; }
.command-alert--ok { border-left-color:#2b9b70; }
.command-alert-badge { padding:.23rem .35rem; border-radius:4px; background:var(--surface-subtle); color:var(--muted); font-size:.59rem; font-weight:900; letter-spacing:.04em; }
.command-alert--urgent .command-alert-badge { background:var(--danger-bg); color:var(--danger-ink); }
.command-alert--attention .command-alert-badge { background:var(--warning-bg); color:var(--warning-ink); }
.command-alert strong { display:block; color:var(--ink); font-size:.74rem; }
.command-alert p { margin:.16rem 0 .22rem; color:var(--muted); font-size:.68rem; line-height:1.4; }
.command-alert small { display:block; color:var(--muted-2); font-size:.64rem; line-height:1.4; }
.command-alert small b { color:var(--ink); }
.command-alert a { align-self:center; color:var(--red); font-size:.66rem; font-weight:850; text-decoration:none; white-space:nowrap; }
.command-alert a:hover { text-decoration:underline; text-underline-offset:3px; }
@media(max-width:980px) { .command-deep-columns { grid-template-columns:1fr 1fr; } .command-deep-panel:last-child { grid-column:1 / -1; } }
@media(max-width:980px) { .command-area-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:720px) { .command-deep-head { align-items:flex-start; flex-direction:column; } .command-periods { grid-template-columns:repeat(2,minmax(0,1fr)); } .command-deep-columns { grid-template-columns:1fr; } .command-deep-panel:last-child { grid-column:auto; } .command-map-layout { grid-template-columns:1fr; } }
@media(max-width:720px) { .command-area-grid { grid-template-columns:1fr; } }
@media(max-width:480px) { .command-deep { padding:.75rem; } .command-period-card strong { font-size:1.35rem; } .command-alert { grid-template-columns:auto minmax(0,1fr); } .command-alert a { grid-column:2; justify-self:start; } }
@media(prefers-color-scheme:dark) { .command-deep { background:var(--surface-subtle); } .command-map-canvas { box-shadow:0 8px 22px rgba(0,0,0,.24); } }

/* beta.46 — estados financieros: lectura ejecutiva compacta y honesta. */
.command-financials { margin:0 0 .7rem; padding:.85rem; border:1px solid var(--line); border-radius:10px; background:var(--panel); }
.command-financials-head { margin-bottom:.35rem; }
.command-financials-head h3 { font-size:.95rem; }
.command-financial-source { display:inline-flex; align-items:center; max-width:48%; min-height:26px; padding:.28rem .5rem; border:1px solid rgba(43,155,112,.28); border-radius:999px; color:#267b5a; font-size:.61rem; font-weight:800; line-height:1.2; text-align:right; }
.command-financial-source--partial { border-color:rgba(201,138,43,.3); color:#93651e; }
.command-financial-note { margin:0 0 .62rem; padding:.48rem .58rem; border-left:2px solid #c98a2b; background:var(--surface-subtle); color:var(--muted); font-size:.65rem; line-height:1.42; }
.command-financial-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.55rem; }
.command-financial-card { min-width:0; padding:.68rem .7rem .62rem; border:1px solid var(--line); border-top:2px solid var(--nav); border-radius:8px; background:var(--surface-subtle); }
.command-financial-card:nth-child(1) { border-top-color:#2b9b70; }
.command-financial-card:nth-child(2) { border-top-color:var(--red); }
.command-financial-card:nth-child(3) { border-top-color:#6b8396; }
.command-financial-card .command-panel-head { align-items:center; margin-bottom:.42rem; }
.command-financial-card h4 { margin:.18rem 0 0; color:var(--ink); font-size:.82rem; letter-spacing:-.015em; }
.command-financial-mark { width:.52rem; height:.52rem; flex:0 0 auto; border-radius:50%; background:#2b9b70; box-shadow:0 0 0 4px rgba(43,155,112,.11); }
.command-financial-card:nth-child(2) .command-financial-mark { background:var(--red); box-shadow:0 0 0 4px rgba(215,79,72,.11); }
.command-financial-card:nth-child(3) .command-financial-mark { background:#6b8396; box-shadow:0 0 0 4px rgba(107,131,150,.11); }
.command-financial-rows { display:grid; gap:.36rem; }
.command-financial-row { min-width:0; padding:.42rem .48rem; border:1px solid var(--line); border-radius:6px; background:var(--panel); }
.command-financial-row-top { display:flex; align-items:baseline; justify-content:space-between; gap:.45rem; }
.command-financial-row-top span { min-width:0; color:var(--muted); font-size:.64rem; line-height:1.28; }
.command-financial-row-top b { flex:0 0 auto; color:#267b5a; font-size:.51rem; font-weight:900; letter-spacing:.045em; }
.command-financial-row strong { display:block; margin-top:.18rem; color:var(--ink); font-size:.78rem; letter-spacing:-.02em; text-align:right; }
.command-financial-row small { display:block; margin-top:.2rem; color:var(--muted-2); font-size:.58rem; line-height:1.35; }
.command-financial-row--referential { border-color:rgba(201,138,43,.3); }
.command-financial-row--referential .command-financial-row-top b { color:#93651e; }
.command-financial-row--unavailable { background:color-mix(in srgb,var(--surface-subtle) 60%,var(--panel)); }
.command-financial-row--unavailable .command-financial-row-top b { color:var(--muted-2); }
.command-financial-row--unavailable strong { color:var(--muted-2); font-weight:750; }
@media(max-width:980px) { .command-financial-grid { grid-template-columns:1fr 1fr; } .command-financial-card:last-child { grid-column:1 / -1; } }
@media(max-width:720px) { .command-financial-grid { grid-template-columns:1fr; } .command-financial-card:last-child { grid-column:auto; } .command-financial-source { max-width:100%; } }
@media(prefers-color-scheme:dark) { .command-financial-source { color:#82d2af; } .command-financial-source--partial { color:#edc16f; } .command-financial-row--unavailable { background:var(--surface-subtle); } }

/* beta.54 — expediente documental MX, alineado con los reportes RAINDE. */
.mx-docs-head{align-items:flex-start}.mx-docs-tabs{display:flex;gap:.4rem;flex-wrap:wrap;margin:.8rem 0 1rem;border-bottom:1px solid var(--line);padding-bottom:.45rem}.mx-docs-tabs a{display:inline-flex;min-height:38px;align-items:center;padding:.5rem .75rem;border-radius:8px;color:var(--muted);font-size:.78rem;font-weight:750;text-decoration:none}.mx-docs-tabs a:hover{background:var(--surface-subtle);color:var(--ink)}.mx-docs-tabs a.is-active{background:var(--red);color:#fff}.mx-docs-filter{margin-top:0}.mx-docs-table{margin-top:1rem}.mx-docs-table .table{min-width:1060px}.table-sub{display:block;margin-top:.2rem;color:var(--muted);font-size:.68rem;line-height:1.3}.mx-docs-legend{display:flex;align-items:center;gap:.35rem;color:var(--muted);font-size:.68rem}.mx-docs-dot{display:inline-block;width:.48rem;height:.48rem;border-radius:50%;background:#c98a2b}.mx-docs-dot.ok{margin-left:.35rem;background:#2b9b70}.doc-count{display:inline-flex;align-items:center;padding:.22rem .42rem;border-radius:999px;font-size:.68rem;font-weight:800}.doc-count.has-docs{background:var(--green-soft,#e9f7f0);color:var(--green,#16714f)}.doc-count.no-docs{background:var(--amber-soft,#fff5d9);color:var(--amber,#7d5708)}.mx-docs-detail{margin-top:1rem;border-top:3px solid var(--red)}.mx-docs-detail .panel-head p{margin:.2rem 0 0}.mx-docs-chain{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem;margin:1rem 0}.mx-docs-chain>div{min-width:0;padding:.62rem .68rem;border:1px solid var(--line);border-radius:8px;background:var(--surface-subtle)}.mx-docs-chain span,.mx-docs-chain strong{display:block}.mx-docs-chain span{color:var(--muted);font-size:.65rem}.mx-docs-chain strong{margin-top:.18rem;font-size:.78rem;overflow-wrap:anywhere}.mx-doc-list{display:grid;gap:.45rem}.mx-doc-list article{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.62rem .7rem;border:1px solid var(--line);border-radius:9px;background:var(--panel)}.mx-doc-list article>div{display:grid;min-width:0;gap:.15rem}.mx-doc-list strong{font-size:.78rem;overflow-wrap:anywhere}.mx-doc-list small{color:var(--muted);font-size:.65rem}.mx-doc-empty{border:1px dashed var(--line-strong);border-radius:9px}.mx-doc-upload{margin-top:1rem;padding-top:.8rem;border-top:1px solid var(--line)}.mx-doc-upload summary{color:var(--red);font-size:.8rem;font-weight:800;cursor:pointer}.mx-doc-upload form{margin-top:.8rem}.mx-doc-upload input[type=file]{min-height:44px;padding:.45rem}.muted{color:var(--muted);font-size:.7rem}.actions.compact{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center}.actions.compact .button,.actions.compact button{min-height:38px;padding:.45rem .7rem;font-size:.72rem}@media(max-width:900px){.mx-docs-chain{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.mx-docs-tabs{display:grid;grid-template-columns:1fr 1fr}.mx-docs-tabs a{justify-content:center;text-align:center}.mx-docs-chain{grid-template-columns:1fr}.mx-doc-list article{align-items:flex-start;flex-direction:column}.mx-docs-detail .panel-head{display:grid}.mx-docs-detail .panel-head .actions{justify-content:flex-start}.mx-docs-table{overflow:hidden}.mx-docs-table .table-wrap{margin-inline:-.25rem;padding-inline:.25rem}}

/* beta.50 — financial overview stays close to the operational summary. */
.command-financials--prominent { margin-top:.85rem; border-top:3px solid var(--red); }
.command-financials--prominent .command-financials-head h2 { margin:.18rem 0 0; color:var(--ink); font-size:1.02rem; letter-spacing:-.02em; }

/* beta.49 — reserva visual para la marca: el logotipo nunca invade "Resumen". */
@media (min-width:821px) {
  .sidebar-head {
    min-height:84px;
    flex:0 0 84px;
    align-items:flex-start;
  }
  .sidebar .brand {
    align-items:flex-start;
    padding-top:4px;
    padding-bottom:14px;
  }
  .sidebar .brand-original {
    width:148px;
    max-width:100%;
    max-height:58px;
    object-fit:contain;
  }
  .sidebar .nav-tools { margin-top:8px; }

  /* La barra compacta conserva su altura corta y su logo reducido. */
  body.sidebar-collapsed:not(.sidebar-peek) .sidebar-head {
    min-height:57px;
    height:57px;
    flex-basis:57px;
    align-items:center;
  }
  body.sidebar-collapsed:not(.sidebar-peek) .sidebar .brand {
    padding-top:0;
    padding-bottom:0;
  }
  body.sidebar-collapsed:not(.sidebar-peek) .sidebar .nav-tools { margin-top:0; }
}

/* Compact command center: progressive disclosure without JavaScript or hidden data. */
.workspace-home--compact { max-width:1100px; }
.workspace-home--compact .workspace-intro { padding:4px 0 18px; margin:0; align-items:center; }
.workspace-home--compact .workspace-intro h1 { font-size:clamp(24px,2.3vw,30px); }
.workspace-home--compact .command-status { flex-shrink:0; font-size:.72rem; box-shadow:none; }
.command-visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.workspace-home--compact .command-center { padding:0; border:0; background:none; box-shadow:none; margin:0 0 20px; }
.workspace-home--compact .command-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.workspace-home--compact .command-card { min-height:0; padding:14px; border:1px solid var(--line); border-radius:10px; box-shadow:none; }
.workspace-home--compact .command-card-top { font-size:.73rem; font-weight:600; }
.workspace-home--compact .command-dot { box-shadow:none; width:6px; height:6px; }
.workspace-home--compact .command-value { margin:8px 0 4px; font-size:1.65rem; line-height:1.1; }
.workspace-home--compact .command-card p { min-height:0; font-size:.72rem; line-height:1.45; margin:0 0 12px; }
.workspace-home--compact .command-action { font-size:.73rem; }
.command-focus { margin-bottom:20px; }
.command-focus-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:7px; }
.command-focus-head h2 { margin:0; font-size:.85rem; font-weight:650; }
.command-focus-head > span { font-size:.7rem; color:var(--muted); }
.command-focus-item { border-bottom:1px solid var(--line); }
.command-focus-item > summary { display:flex; align-items:center; gap:10px; padding:12px 0; min-height:44px; cursor:pointer; list-style:none; font-size:.79rem; }
.command-focus-item > summary > span:nth-child(2) { flex:1; min-width:0; overflow-wrap:anywhere; }
.command-focus-item .command-alert-badge { font-size:.58rem; padding:3px 5px; color:var(--muted); background:var(--surface-subtle); border-radius:4px; }
.command-focus-item--attention .command-alert-badge { color:#815717; background:#fff1d9; }
.command-focus-item--urgent .command-alert-badge { color:#a9272b; background:#fce4e5; }
.command-focus-body { padding:0 0 14px; max-width:760px; }
.command-focus-body p { margin:0 0 8px; font-size:.8rem; color:var(--muted); line-height:1.55; }
.command-fold { min-width:0; margin:0; border-bottom:1px solid var(--line); }
.command-explore { border-top:1px solid var(--line); }
.command-fold > summary { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:65px; padding:13px 0; cursor:pointer; list-style:none; }
.command-fold > summary > span:first-child { min-width:0; }
.command-fold > summary strong { display:block; font-size:.85rem; font-weight:600; color:var(--ink); }
.command-fold > summary small { display:block; margin-top:3px; color:var(--muted); font-size:.72rem; line-height:1.4; }
.command-fold > summary::-webkit-details-marker,.command-focus-item > summary::-webkit-details-marker { display:none; }
.command-disclosure-arrow { display:grid; place-items:center; flex:0 0 24px; width:24px; height:24px; color:var(--muted); font-size:20px; font-weight:400; }
details[open] > summary > .command-disclosure-arrow { transform:rotate(45deg); }
.command-fold > summary:hover strong,.command-focus-item > summary:hover { color:var(--red); }
.command-fold > summary:focus-visible,.command-focus-item > summary:focus-visible { outline:2px solid var(--red); outline-offset:3px; border-radius:4px; }
.command-fold-body { padding:2px 0 18px; }
.workspace-home--compact .command-fold-body.command-areas,
.workspace-home--compact .command-fold-body.command-map-panel,
.workspace-home--compact .command-financials { margin:0; padding:6px 0 18px; border:0; border-radius:0; box-shadow:none; background:none; }
.workspace-home--compact .command-financials { padding-bottom:0; }
.workspace-home--compact .workspace-shortcuts { margin:0 0 12px; }
.workspace-home--compact .workspace-footnote { margin-top:16px; }
@media(max-width:1000px) {
  .workspace-home--compact .command-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
  .workspace-home--compact .workspace-intro { flex-direction:row; align-items:flex-start; gap:12px; padding-bottom:16px; }
  .workspace-home--compact .workspace-intro h1 { font-size:24px; }
  .workspace-home--compact .workspace-intro .command-status { max-width:118px; white-space:normal; font-size:.65rem; padding:6px 8px; line-height:1.4; }
  .workspace-home--compact .command-card { padding:12px; }
  .workspace-home--compact .command-grid { gap:8px; }
  .command-fold > summary { min-height:66px; }
  .command-focus-head > span { white-space:nowrap; }
}
@media(max-width:360px) {
  .workspace-home--compact .workspace-intro { flex-direction:column; }
}
@media(prefers-color-scheme:dark) {
  .command-focus-item--attention .command-alert-badge { color:#edc16f; background:#3a2d19; }
  .command-focus-item--urgent .command-alert-badge { color:#ffaaaa; background:#421e22; }
}

/* beta.63 — a quiet overview; emphasis belongs to the current task/alert. */
.workspace-home--compact .command-grid {
  gap:0; border:1px solid var(--line); border-radius:10px;
  background:var(--panel); overflow:hidden;
}
.workspace-home--compact .command-card {
  padding:16px; border:0; border-radius:0; background:transparent;
}
.workspace-home--compact .command-card + .command-card { border-left:1px solid var(--line); }
.workspace-home--compact .command-card-top { font-size:12px; color:var(--muted); }
.workspace-home--compact .command-value { margin:10px 0 6px; font-size:26px; font-weight:600; }
.workspace-home--compact .command-card p { font-size:12px; line-height:1.5; margin-bottom:8px; }
.workspace-home--compact .command-action {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  min-height:44px; font-size:12px; font-weight:500; color:var(--ink);
  text-decoration:underline; text-decoration-color:var(--line-strong); text-underline-offset:4px;
}
.workspace-home--compact .command-action:hover { color:var(--red); text-decoration-color:currentColor; }
.workspace-home--compact .command-focus-item--urgent .command-action { color:var(--danger-ink); font-weight:600; }
.workspace-home--compact .command-action:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; border-radius:3px; }
.workspace-home--compact .command-focus { margin-block:24px; }
.workspace-home--compact .command-fold > summary strong { font-size:14px; }
.workspace-home--compact .command-fold > summary small { font-size:12px; }
.workspace-home--compact .command-fold[open] > summary { margin-bottom:8px; }
.workspace-home--compact .command-fold[open] > summary strong { color:var(--red); }
/* No coloured card caps or decorative status dots inside expanded details. */
.workspace-home--compact .command-financial-card { border-top:1px solid var(--line); background:var(--panel); }
.workspace-home--compact .command-financial-mark { display:none; }
.workspace-home--compact .command-period-card { box-shadow:none; border-top:1px solid var(--line); }
.workspace-home--compact .command-period-card strong { font-size:24px; }
.workspace-home--compact .command-deep-panel { box-shadow:none; }

/* Module names first, capability second; a single count beside the filter. */
.module-heading { margin-bottom:20px; }
.module-heading h1 { margin:0 0 8px; }
.module-filterbar { background:transparent; border:0; padding:0; gap:16px; }
.module-filterbar input { min-height:44px; }
.module-sections .screen-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 28px; }
.module-sections .screen-card { padding:16px 0; row-gap:5px; }
.module-sections .screen-card h3 { margin:0; font-size:14px; font-weight:550; line-height:1.45; }
.module-sections .screen-card-top { align-self:start; }
.module-sections .screen-card .type { font-size:12px; line-height:1.4; }
.module-sections .screen-card footer { color:var(--muted); }
.module-source-section > h2 { margin-top:24px; padding-bottom:8px; font-size:13px; color:var(--ink); }
.module-sections .screen-card:focus-visible { outline:2px solid var(--focus-ring); outline-offset:3px; border-radius:3px; }
.module-heading ~ .validation-catalog { padding:0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; }
.module-heading ~ .validation-catalog > summary { min-height:56px; padding:12px 0; }
.module-heading ~ .validation-catalog > summary b { font-size:13px; font-weight:500; }
.module-heading ~ .validation-catalog > summary small { font-size:12px; line-height:1.5; }
@media(min-width:1440px) {
  .module-sections .screen-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:1000px) {
  .workspace-home--compact .command-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .workspace-home--compact .command-card:nth-child(odd) { border-left:0; }
  .workspace-home--compact .command-card:nth-child(n+3) { border-top:1px solid var(--line); }
}
@media(max-width:600px) {
  .workspace-home--compact .command-card { padding:12px; }
  .workspace-home--compact .command-value { font-size:24px; }
  .module-sections .screen-grid { grid-template-columns:1fr; }
  .module-filterbar { flex-wrap:wrap; gap:8px; }
  .module-filterbar input { width:100%; flex-basis:100%; }
}
