/* Shared readable text scale. Existing forms, routes and theme controls stay native. */
:root {
  --text-body:16px; --text-control:15px; --text-label:14px;
  --text-secondary:14px; --text-caption:14px;
  --chat-text-primary:16px; --chat-text-secondary:14px; --chat-text-caption:14px;
  --theme-text:#26364e; --theme-text-secondary:#53627a; --theme-text-muted:#5d6a80;
  --theme-accent:#6650af; --theme-accent-hover:#554096;
  --text:var(--theme-text); --text-muted:var(--theme-text-secondary);
  --border:var(--theme-border); --surface-muted:var(--theme-surface-soft);
  --warning-soft:var(--color-warning-soft); --warning-border:var(--color-warning);
}
:root[data-theme=dark] {
  --theme-text:#e7edf7; --theme-text-secondary:#bcc9dc; --theme-text-muted:#aab9cf;
  --theme-accent:#c2b0ff; --theme-accent-hover:#d0c2ff;
}
body {font-size:16px;line-height:1.55}
.workspace-content :is(p,li,dd,td) {line-height:1.6}
.workspace-content :is(small,dt,.field-helper) {font-size:14px;line-height:1.5}
.workspace-content :is(h3,h4) {color:var(--theme-text);line-height:1.4}
.workspace-content a:where(:not([class])) {color:var(--theme-accent)}
.workspace-content a:where(:not([class])):hover {text-decoration:underline;text-underline-offset:.15em}
.workspace-content :is(input,textarea)::placeholder {color:var(--theme-text-muted);opacity:1}
.workspace-content :is(input,textarea,select) {line-height:1.5}
.workspace-content :is(.primary-action,.primary-mini,.match-card__actions a),
.notification-button>span {color:var(--theme-accent-contrast);background:var(--theme-accent)}
:root[data-theme=dark] .notification-button>span {color:var(--theme-accent-contrast)}
.sidebar .main-nav {gap:2px;padding-bottom:8px}
.sidebar__brand {padding-bottom:14px}
.sidebar .nav-link {min-height:40px;padding:7px 10px;font-size:16px;line-height:1.35}
.sidebar .additional-hr-nav>.nav-link {font-size:15px}
.sidebar .sidebar-group-label {margin:12px 10px 3px!important;font-size:13px!important;line-height:1.4}
.sidebar .additional-hr-nav {margin:2px 0 6px}
.sidebar .additional-hr-nav>summary {min-height:40px;padding:7px 10px;font-size:15px;line-height:1.35}
.sidebar__bottom {margin-top:8px;padding-top:8px}
.sidebar__bottom small {color:var(--theme-text-secondary);font-size:13px!important;line-height:1.4}
.sidebar :is(.company-context,.dev-environment,.role-control) {line-height:1.4}
.sidebar .company-context small {color:var(--theme-text-secondary)}
.workspace-content :is(.company-monogram,.company-rail__item,.member-avatar,.employee-avatar,.hr-header-id,.hr-reminder),
.workspace-content :is(.hr-owner-badge,.hr-team-avatar) {color:var(--theme-accent);background:var(--theme-surface-accent);font-size:14px;line-height:1.4}
.workspace-content .company-rail__item--active {color:var(--theme-accent-contrast);background:var(--theme-accent)}
.workspace-content :is(.employee-state,.hire-state) {color:var(--color-success);background:var(--color-success-soft);font-size:14px}
.workspace-content :is(.hr-company-context,.company-rail,.match-panel__empty) {background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
.workspace-content .catalog-category-tabs a.is-active {background:var(--theme-surface-raised);color:var(--theme-accent)}
.workspace-content :is(.own-tabs,.favorite-tabs) button {color:var(--theme-text-secondary)}
.workspace-content :is(.own-tabs,.favorite-tabs) :is(span,b) {background:var(--theme-surface-soft);color:var(--theme-text-secondary)}
.workspace-content .need-empty :is(strong,small) {color:var(--color-success)}
.workspace-content :is(.journey-badge,.my-work-badge) {font-size:14px}
.workspace-content :is(.chat-thread,.chat-list) time {font-size:14px;color:var(--theme-text-secondary)}
.workspace-content .chat-ad-link {color:var(--theme-accent);font-size:14px}
.workspace-content .market-card__meta em {font-size:14px}
.workspace-content :is(.hr-list-filters>button,.hire-row>a,.hire-row>button,.hr-company-actions a,.member-actions>div) {background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
.workspace-content :is(.vacancy-card__facts span,.staff-stats i) {background:var(--theme-surface-soft);color:var(--theme-text-secondary)}
.workspace-content .chat-page__heading>span {background:var(--theme-surface-accent);color:var(--theme-accent)}
.sidebar .nav-link__badge {background:var(--theme-accent);color:var(--theme-accent-contrast);font-size:12px}
.workspace-content .calendar-month__days button[aria-current=date] {color:var(--theme-accent-contrast)}
.workspace-content .calendar-month__days button[aria-current=date] small {color:inherit}
.workspace-content .favorites-heading>span {background:var(--theme-surface-accent);color:var(--theme-accent)}
.workspace-content .member-actions .danger-action {color:var(--color-danger)}
.workspace-content .company-tab>span {color:var(--theme-accent);background:var(--theme-surface-accent)}
.public-page :is(.public-empty a,.public-card-bottom a,.public-detail-action .public-create) {color:var(--theme-accent)}
.public-page .public-eyebrow,.public-page .public-results-heading .public-eyebrow {font-size:13px;line-height:1.5}
.public-page .public-jobseeker {background:#26364e;color:#f4f6fb}
.public-page .public-jobseeker .public-eyebrow {color:#d7ccff;font-size:14px}
.public-page .public-jobseeker p:last-child {color:#d4deee;opacity:1}
.public-page :is(small,.public-demo-note,.public-demo-note strong,.public-demo-note small,.public-search label>span,.public-kind,.public-card-bottom>span) {font-size:14px;line-height:1.5}
.public-page .landing-preview-label {font-size:13px}
.workspace-content :is(.vacancy-history>summary strong,.notification-summary) {color:var(--theme-accent);background:var(--theme-surface-accent)}
@media (max-width:850px) {
  .sidebar .nav-link,.sidebar .additional-hr-nav>summary {min-height:44px;padding-block:8px}
  .sidebar__brand {padding-bottom:12px}
}

/* Existing populated recruitment needs use the same readable surfaces. */
.workspace-content .need-card :is(.need-count,.need-card__body>p,.need-templates>p){color:var(--theme-text-secondary)}
.workspace-content .need-card .need-type{color:var(--theme-accent);background:var(--theme-surface-accent)}
.workspace-content .need-card .need-type--temporary{color:var(--color-warning);background:var(--color-warning-soft)}
.workspace-content .need-card .need-live{color:var(--color-success);background:var(--color-success-soft)}
.workspace-content .need-card :is(.need-templates>p,.need-templates button){color:var(--theme-text);background:var(--theme-surface-soft);border-color:var(--theme-border)}
.workspace-content .need-card :is(.need-templates em,.need-template-action){color:var(--theme-accent)}
.workspace-content .vacancy-card--active .vacancy-card__status span {color:var(--color-success)}
.workspace-content .finance-page {--text-primary:var(--theme-text);color:var(--theme-text)}
.workspace-content .finance-page :is(.finance-audit-list time,.finance-audit-note) {font-size:14px;color:var(--theme-text-secondary)}
.workspace-content .finance-page .finance-status {font-size:14px;line-height:1.4;background:var(--theme-surface-soft);color:var(--theme-text-secondary)}
.workspace-content .finance-page :is(.finance-status--approved,.finance-status--paid,.finance-status--published,.finance-status--accepted) {background:var(--color-success-soft);color:var(--color-success)}
.workspace-content .finance-page :is(.finance-status--refunded,.finance-status--rejected,.finance-status--failed,.finance-audit-error) {background:var(--color-danger-soft);color:var(--color-danger)}
/* Disabled actions stay disabled while their labels remain readable. */
.workspace-content :is(button,input,select,textarea):disabled {opacity:1;color:var(--theme-text-muted);background:var(--theme-disabled);border-color:var(--theme-border);cursor:not-allowed}

/* Preserve the meaning of former employees and staffing notices. */
.workspace-content .employee-state--muted{color:var(--theme-text-secondary);background:var(--theme-surface-soft)}
.workspace-content .staff-stats .attention{color:var(--color-warning);background:var(--color-warning-soft)}
.workspace-content .staff-stats .covered{color:var(--color-success);background:var(--color-success-soft)}
.workspace-content .staff-stats .danger{color:var(--color-danger);background:var(--color-danger-soft)}

/* One native, full-row target in the menu and profile theme picker. */
.real-account-menu fieldset label,.theme-settings fieldset label{position:relative;display:flex;align-items:center;gap:12px;min-height:48px;padding:12px;border:1px solid transparent;border-radius:9px;color:var(--theme-text);cursor:pointer}
.theme-settings fieldset label{border-color:var(--theme-border);background:var(--theme-input-bg)}
.real-account-menu fieldset label>span,.theme-settings fieldset label>span{display:block;flex:1;min-width:0;min-height:0;padding:0;border:0;background:transparent;box-shadow:none;color:inherit;font-size:15px;line-height:1.45;text-align:left}
.real-account-menu fieldset label input,.theme-settings fieldset label input{position:static;flex:0 0 18px;width:18px;height:18px;margin:0;opacity:1;accent-color:var(--theme-accent)}
.real-account-menu fieldset label:hover,.theme-settings fieldset label:hover{background:var(--theme-surface-accent)}
.real-account-menu fieldset label:has(input:checked),.theme-settings fieldset label:has(input:checked){border-color:var(--theme-accent);background:var(--theme-surface-accent);color:var(--theme-accent)}
.theme-settings input:checked+span{border:0;background:transparent;box-shadow:none;color:inherit}
.theme-settings input:focus-visible+span{outline:0}
.real-account-menu fieldset label:focus-within,.theme-settings fieldset label:focus-within{outline:2px solid var(--theme-accent);outline-offset:2px}

/* Read the label before the number; keep the entire card as its original link. */
.role-dashboard__metrics .dashboard-metric{grid-template-columns:36px minmax(0,1fr) 14px;grid-template-rows:minmax(40px,auto) auto;align-items:center;gap:10px 12px;min-height:140px;padding:18px}
.dashboard-metric .dashboard-metric__copy{display:contents}
.dashboard-metric .dashboard-metric__icon{grid-column:1;grid-row:1;width:36px;height:36px;border-radius:10px}
.dashboard-metric .dashboard-metric__label{grid-column:2;grid-row:1;align-self:center;color:var(--theme-text-secondary);font-size:16px;font-weight:500;line-height:1.4;overflow-wrap:break-word}
.dashboard-metric .dashboard-metric__value{grid-column:2;grid-row:2;align-self:start;font-size:32px;font-weight:700;line-height:1.15;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--theme-text)}
.dashboard-metric .dashboard-metric__arrow{grid-column:3;grid-row:1;padding:0;align-self:center}
@media(max-width:850px){.role-dashboard__metrics .dashboard-metric{grid-template-columns:30px minmax(0,1fr);gap:10px;min-height:138px;padding:14px}.dashboard-metric .dashboard-metric__icon{width:30px;height:30px;border-radius:9px}.dashboard-metric .dashboard-metric__label{font-size:14px}.dashboard-metric .dashboard-metric__value{font-size:30px}.dashboard-metric .dashboard-metric__arrow{display:none}}
@media(max-width:360px){.role-dashboard__metrics .dashboard-metric{min-height:120px}}
