/* Heli North America: corporate HR workspace. Loaded after the base styles. */
:root {
  --bg: #f3f5f7;
  --paper: #fff;
  --ink: #233044;
  --muted: #697586;
  --line: #dfe4ea;
  --red: #b52a30;
  --red-light: #fbeff0;
  --sage: #edf1f6;
  --green: #26714f;
  --amber: #906118;
  --shadow: 0 5px 20px #1520350a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
body { font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font-family: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #7a9abc; outline-offset: 2px; }
button, a { transition: background-color .15s, border-color .15s, color .15s; }
input[type="checkbox"] { accent-color: var(--red); width: 16px; height: 16px; vertical-align: middle; }
.preview-bar { min-height: 32px; padding: 6px 24px; background: #e8ecf0; color: #475467; font-size: 10px; letter-spacing: .5px; border-bottom: 1px solid #d7dee6; }
.preview-bar button { color: #475467; font-size: 11px; }
.preview-dot { background: #b52a30; }
.bar-detail { opacity: .85; letter-spacing: 0; }
.shell { min-height: calc(100vh - 32px); align-items: stretch; }
.sidebar { width: 224px; padding: 26px 14px 0; background: #202b3b; color: #dce2ec; border-right: 0; position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #4b5669 transparent; }
.brand { gap: 12px; margin: 0 12px 25px; align-items: flex-start; }
.brand img { width: 130px; height: auto; padding: 9px 10px; background: #fff; border-radius: 3px; }
.brand .brand-name { color: #f5f7fb; font-size: 12px; font-weight: 500; letter-spacing: .1px; }
.company-caption { display: none; }
.nav-label { margin: 22px 12px 8px; color: #a7b2c1; font-size: 11px; font-weight: 600; letter-spacing: .15px; text-transform: none; }
.nav-item { margin: 3px 0; padding: 10px 12px; min-height: 40px; gap: 10px; border-radius: 5px; color: #c1cad7; font-size: 13px; line-height: 1.4; border-left: 2px solid transparent; }
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .9; }
.nav-item:hover { color: #fff; background: #2c384b; }
.nav-item.active { color: #fff; background: #344155; border-left-color: #e95659; font-weight: 600; }
.nav-count { background: #fff2; color: #fff; font-size: 10px; padding: 2px 6px; }
.sidebar-bottom { padding-top: 24px; }
.support-note { background: #293648; border: 1px solid #3b485a; border-radius: 5px; margin: 0 3px 15px; padding: 14px; line-height: 1.6; }
.support-note .little-mark { display: none; }
.support-note strong { font-size: 11px; font-weight: 400; color: #c8d0dd; }
.support-note button { color: #eef1f6; font-size: 12px; }
.persona { border-top-color: #3a4657; padding: 18px 8px; }
.persona strong { color: #f6f8fb; font-size: 12px; }
.persona small { color: #a9b5c5; font-size: 11px; }
.status-dot { background: #7dc79f; }
.avatar, .avatar.moss, .avatar.blue, .avatar.rose { background: #e9edf4; color: #475d7a; font-size: 11px; font-weight: 600; width: 36px; height: 36px; }
.persona .avatar { background: #44546a; color: #fff; }
.workspace { min-width: 0; background: var(--bg); }
.topbar { min-height: 66px; height: auto; padding: 14px 32px; background: #fff; color: #697586; font-size: 12px; gap: 18px; border-bottom-color: var(--line); }
#breadcrumb { font-weight: 500; color: #586579; }
.top-controls { gap: 9px; flex-shrink: 0; }
.top-controls label { font-size: 11px; text-transform: none; letter-spacing: 0; margin-left: 6px; }
.top-controls select { border-color: #d6dde6; background: #fff; color: #344054; font-size: 12px; padding: 8px 24px 8px 10px; border-radius: 4px; min-height: 34px; }
main { padding: 30px 32px; min-height: calc(100vh - 174px); max-width: 1660px; }
.eyebrow { font-size: 11px; font-weight: 600; color: #6c7789; letter-spacing: .5px; margin-bottom: 8px; }
.page-heading { margin-bottom: 24px; gap: 20px; align-items: center; }
.page-heading h1 { font-size: 32px; font-weight: 600; letter-spacing: -.7px; margin-bottom: 8px; }
.page-heading p { font-size: 13px; line-height: 1.65; color: #697586; max-width: 710px; }
.btn { font-size: 12px; font-weight: 500; padding: 9px 14px; min-height: 36px; border-radius: 4px; border-color: #cfd7e2; background: #fff; color: #344054; gap: 7px; line-height: 1.4; }
.btn:hover { background: #f3f5f8; border-color: #aebacb; }
.btn.primary { background: var(--red); border-color: var(--red); color: white; }
.btn.primary:hover { background: #962228; border-color: #962228; }
.btn.dark { background: #2e4059; border-color: #2e4059; color: white; }
.btn.soft { background: #eaf0f7; border-color: #dce4ef; color: #3c5578; }
.btn.small { font-size: 11px; min-height: 30px; padding: 6px 10px; }
.btn.danger { border-color: #e2b9bc; color: #a52630; }
.btn:disabled { opacity: .48; }
.actions { gap: 7px; }
.text-link, .back-link { color: #385d85; font-size: 12px; }
.back-link { display: inline-flex; margin: 0 0 16px; padding: 0; }
.back-link:hover { text-decoration: underline; }
.dashboard-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 22px 24px; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 5px; background: #fff; margin-bottom: 20px; }
.dashboard-band h2 { font-size: 20px; font-weight: 600; margin: 4px 0 6px; letter-spacing: -.3px; }
.dashboard-band p { margin: 0; color: var(--muted); font-size: 13px; }
.dashboard-band > div:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 150px; border-left: 1px solid var(--line); padding-left: 26px; }
.dashboard-band > div:last-child span, .dashboard-band small { font-size: 11px; color: var(--muted); }
.dashboard-band > div:last-child strong { font-size: 14px; font-weight: 600; }
.hero { background: #fff; border-color: var(--line); border-left: 3px solid var(--red); border-radius: 5px; padding: 23px 25px; min-height: 0; }
.hero-art { display: none; }
.hero-copy { max-width: 100%; }
.hero h2 { font-size: 23px; font-weight: 600; letter-spacing: -.4px; }
.hero p { font-size: 13px; color: var(--muted); max-width: 680px; }
.hero .eyebrow { color: var(--muted); font-size: 11px; }
.hero .btn { background: #fff; color: #3c5578; border-color: #cfd7e2; }
.metrics { gap: 14px; margin-bottom: 22px; }
.metric { border-color: var(--line); border-radius: 5px; padding: 18px 20px; box-shadow: 0 1px 2px #14203203; min-width: 0; }
.metric-top { font-size: 12px; color: #5c697c; gap: 10px; }
.metric-top svg { color: #8b98aa; }
.metric-number { font-size: 28px; font-weight: 600; letter-spacing: -.6px; margin: 12px 0 6px; color: #253449; line-height: 1.25; }
.metric-number span { color: #7a8799; }
.metric-sub { font-size: 11px; color: #697586; }
.metric-sub.positive, .positive { color: #26714f; }
.negative { color: #ac313a; }
.cols { gap: 20px; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); }
.cols.equal { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.panel { border-color: var(--line); border-radius: 6px; min-width: 0; }
.panel-head { padding: 20px 22px 16px; gap: 16px; }
.panel-head h2 { font-size: 15px; font-weight: 600; }
.panel-head p { font-size: 12px; line-height: 1.6; margin-top: 5px; color: var(--muted); }
.small-panel-content { padding: 0 22px 22px; font-size: 13px; }
.small-panel-content p { line-height: 1.7; color: var(--muted); }
.section-heading { display: flex; gap: 18px; justify-content: space-between; align-items: center; margin: 0 0 18px; }
.section-heading h2 { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.section-heading p { color: var(--muted); font-size: 13px; margin: 0; }
.quick-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 0 22px 22px; }
.quick-links .btn { justify-content: flex-start; padding: 13px 14px; min-height: 46px; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; padding: 15px 18px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.toolbar > input, .toolbar > select { min-height: 37px; padding: 8px 11px; border: 1px solid #ced6e1; border-radius: 4px; background: #fff; font-size: 13px; color: #344054; }
.toolbar > input { min-width: 180px; width: min(340px,100%); }
.toolbar > span { color: var(--muted); font-size: 12px; }
.toolbar .field { margin: 0; min-width: 150px; flex-direction: row; align-items: center; gap: 10px; }
.toolbar .field label { white-space: nowrap; }
.toolbar .field select { padding: 8px 11px; width: auto; min-width: 120px; }
.filters select, .filters input, .chip { border-color: #d3dbe5; background: #fff; color: #475467; font-size: 12px; border-radius: 4px; }
.chip.selected { color: #315378; background: #eaf0f7; border-color: #b7c6db; }
.status-label, .tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px; background: #edf0f5; color: #5b687a; white-space: nowrap; font-size: 11px; font-weight: 500; line-height: 1.6; }
.status-label.good, .tag.green { background: #eaf5ee; color: #246343; }
.status-label.warn, .tag.amber { background: #fff4df; color: #865910; }
.status-label.pending, .tag.blue { background: #eaf0fa; color: #355b90; }
.tag.red { background: #fcedef; color: #a73b43; }
.tag.gray { background: #edf0f4; color: #5d6879; }
.workflow-card { border: 1px solid var(--line); border-radius: 5px; background: #fff; margin: 0 20px 16px; padding: 18px; min-width: 0; }
main > .workflow-card { margin: 0 0 20px; }
.workflow-title { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.workflow-title > div:first-child { flex: 1; min-width: 190px; }
.workflow-title strong { font-size: 13px; font-weight: 600; }
.workflow-title > div:first-child > small { display: block; margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.workflow-title .status-label { margin-right: 6px; }
.pending-owner { border-left: 1px solid var(--line); padding-left: 16px; min-width: 122px; }
.pending-owner span { display: block; color: var(--muted); font-size: 11px; }
.pending-owner strong { display: block; color: #233044; margin-top: 3px; }
.flow-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(100px,1fr); list-style: none; margin: 20px 0 0; padding: 0 0 5px; overflow-x: auto; scrollbar-width: thin; }
.flow-steps li { display: flex; align-items: flex-start; gap: 7px; min-width: 100px; padding: 12px 8px 0 0; border-top: 2px solid #e0e5ec; color: #8490a2; }
.flow-steps li > i { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 21px; height: 21px; background: #eef1f5; color: #7d899c; border-radius: 50%; font-style: normal; font-size: 10px; font-weight: 600; }
.flow-steps li b { display: block; font-size: 11px; font-weight: 600; line-height: 1.4; }
.flow-steps li small { display: block; font-size: 10px; margin-top: 4px; line-height: 1.5; color: #7b8799; }
.flow-steps li em { display: inline-block; font-size: 10px; font-style: normal; padding: 1px 5px; margin-top: 4px; background: #f0f3f8; color: #536b8a; border-radius: 3px; }
.flow-steps li.complete { border-top-color: #72a98a; color: #2b6b49; }
.flow-steps li.complete > i { background: #e5f1e9; color: #2b6b49; }
.flow-steps li.current { border-top-color: #b52a30; color: #922329; }
.flow-steps li.current > i { background: #b52a30; color: #fff; }
.flow-steps li.current small { color: #475467; font-weight: 500; }
.audit-list { list-style: none; margin: 0; padding: 0 22px 22px; }
.audit-list li { display: grid; grid-template-columns: 115px minmax(0,1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid #e8ecf1; }
.audit-list li:last-child { border: 0; }
.audit-list li > span { color: #7b8796; font-size: 11px; }
.audit-list b { font-size: 12px; font-weight: 600; }
.audit-list p { margin: 4px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.approval-detail { padding: 20px 22px; }
.approval-detail .workflow-card { margin: 0 0 20px; }
.approval-detail h3 { font-size: 15px; font-weight: 600; }
.summary-strip { display: flex; flex-wrap: wrap; gap: 24px; padding: 15px 20px; margin: 16px 0; background: #eef2f7; border: 1px solid #dce3ed; border-radius: 5px; font-size: 13px; }
.summary-strip > div { display: flex; flex-direction: column; gap: 5px; }
.summary-strip small, .summary-strip span { font-size: 12px; color: #64748b; }
.summary-strip strong { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.table-scroll { width: 100%; max-width: 100%; overflow: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.panel > .table-scroll { border-left: 0; border-right: 0; border-bottom: 0; border-radius: 0; }
.data-table { font-size: 12px; border-collapse: separate; border-spacing: 0; white-space: nowrap; width: 100%; line-height: 1.5; }
.data-table th { font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0; color: #526074; background: #f6f8fa; padding: 12px 16px; border-top: 0; border-bottom: 1px solid #dfe5ed; vertical-align: middle; }
.data-table td { padding: 14px 16px; border-bottom: 1px solid #e8edf2; vertical-align: middle; color: #364152; }
.data-table tbody tr:hover td { background: #f9fafc; }
.data-table td.num { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.data-table td .block { display: block; color: #798497; font-size: 11px; margin-top: 3px; }
.data-table .btn { white-space: nowrap; }
.person-cell strong { font-size: 12px; font-weight: 600; color: #26364b; }
.person-cell small { color: #768398; font-size: 11px; }
.rule-table { white-space: normal; }
.rule-table td { font-size: 12px; line-height: 1.75; }
.table-scroll:has(.review-matrix), .table-scroll:has(.ledger-table) { max-height: min(68vh, 700px); }
.review-matrix { min-width: 810px; }
.review-matrix th, .ledger-table th { position: sticky; top: 0; z-index: 2; box-shadow: 0 1px 0 #dfe5ed; }
.review-matrix td:first-child { white-space: normal; min-width: 200px; max-width: 260px; }
.review-matrix input, .review-matrix select { min-height: 33px; border: 1px solid #cbd5e1; background: #fff; border-radius: 4px; padding: 7px 8px; font-size: 12px; color: #344054; width: 84px; }
.review-matrix input:disabled { color: #667085; background: #f0f3f7; }
.review-matrix .field { margin: 0; }
.selectbox { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #526074; line-height: 1.5; }
.selectbox input { flex-shrink: 0; width: 16px; height: 16px; padding: 0; }
.ledger-table { min-width: 1380px; font-variant-numeric: tabular-nums; }
.ledger-table th { white-space: normal; min-width: 86px; }
.ledger-table th:first-child { min-width: 40px; }
.ledger-table .newhire-row td { background: #fff9ea; }
.ledger-table .newhire-row:hover td { background: #fff4d9; }
.ledger-table tr.selected td { background: #edf2fa; }
.ledger-table .newhire-row td:first-child { box-shadow: inset 3px 0 #d6a64f; }
.ledger-table tr.selected td:first-child { box-shadow: inset 3px 0 #557aaa; }
.batchbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 13px 17px; margin-bottom: 15px; background: #eaf0f7; border: 1px solid #d5dfec; border-radius: 5px; font-size: 13px; color: #3c5577; }
.batchbar .actions { margin-left: auto; }
.profile-header { display: flex; align-items: center; gap: 18px; padding: 25px; border: 1px solid var(--line); border-radius: 6px 6px 0 0; background: #fff; }
.avatar.large { width: 66px; height: 66px; border-radius: 10px; font-size: 22px; background: #e8edf4; color: #405a7c; }
.profile-header .eyebrow { margin: 0; }
.profile-header h1 { font-size: 28px; font-weight: 600; margin: 3px 0 5px; letter-spacing: -.4px; }
.profile-header p { margin: 0; color: #697586; font-size: 13px; }
.profile-header > .status-label { margin-left: 6px; }
.profile-header > .right { margin-left: auto; }
.profile-tabs { display: flex; overflow-x: auto; gap: 20px; padding: 0 24px; margin: 0 0 24px; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 6px 6px; scrollbar-width: thin; }
.profile-tabs button { white-space: nowrap; padding: 16px 2px 13px; border-bottom: 3px solid transparent; font-size: 12px; font-weight: 500; color: #697586; }
.profile-tabs button:hover { color: #233044; }
.profile-tabs button.selected { color: #a42830; border-bottom-color: #b52a30; font-weight: 600; }
.key-values { margin: 0; padding: 0 22px 22px; }
.key-values > div { display: grid; grid-template-columns: minmax(110px,38%) minmax(0,1fr); gap: 16px; padding: 13px 0; border-top: 1px solid #e8edf2; font-size: 12px; line-height: 1.6; }
.key-values dt { color: #697586; }
.key-values dd { margin: 0; color: #344054; font-weight: 500; overflow-wrap: anywhere; }
.trend-chart { padding: 10px 22px 14px; }
.trend-chart svg { width: 100%; height: auto; max-height: 180px; }
.trend-values { display: flex; justify-content: space-between; gap: 10px; padding: 0 22px 18px; color: #65758a; font-size: 11px; text-align: center; font-variant-numeric: tabular-nums; }
.trend-chart .trend-values { padding: 3px 0 0; }
.trend-values > * { flex: 1; }
.trend-values b { font-size: 12px; color: #3d516c; font-weight: 600; }
.mini-nine { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin: 0 22px 14px; }
.mini-nine > div { min-height: 60px; display: flex; justify-content: center; align-items: center; padding: 9px; text-align: center; background: #f0f3f7; border: 1px solid #e0e5ec; border-radius: 3px; color: #69798f; font-size: 10px; line-height: 1.4; }
.mini-nine > div.selected { color: #a0252c; background: #fcecee; border: 2px solid #b52a30; font-weight: 600; }
.inset { padding: 0 22px 16px; }
.saved-note { margin-top: 18px; padding: 17px 0 0; border-top: 1px solid var(--line); }
.saved-note strong { font-size: 12px; font-weight: 600; }
.saved-note small { color: #8290a2; font-size: 11px; margin-left: 10px; }
.saved-note p { font-size: 13px; margin: 8px 0 0; color: #475467; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice, .note { background: #eff3f8; border: 1px solid #dce3ed; color: #50627a; font-size: 12px; line-height: 1.7; border-radius: 5px; padding: 14px 17px; margin: 16px 0; }
.notice.warn, .note.warm { color: #89601e; background: #fff8eb; border-color: #eeddb8; }
.notice.good { color: #2e6b4a; background: #eff7f2; border-color: #cfe4d7; }
.note.plain { background: #f7f9fb; color: #697586; border-color: var(--line); }
.panel > .notice { margin: 0 22px 22px; }
.warning, .form-error { color: #a32630; font-size: 12px; }
.tiny, .goal-meta, .progress-footer, .inline-meta { color: #748195; font-size: 11px; }
.goal-title, .task-main h3 { font-size: 13px; color: #344054; font-weight: 600; }
.task-main p { font-size: 11px; color: #788699; }
.task-row { border-top-color: #e8edf2; padding: 18px 22px; }
.task-icon { color: #566d8b; background: #edf1f7; }
.goal-row { border-top-color: #e8edf2; }
.progress { background: #e9edf3; height: 5px; }
.progress > span { background: #617fa4; }
.progress.amber > span { background: #bb944b; }
.threshold-chips { font-size: 11px; color: #68798d; }
.threshold-chips span { background: #eff3f8; }
.field { margin-bottom: 16px; gap: 7px; }
.field label { color: #475467; font-size: 12px; font-weight: 500; }
.field input, .field select, .field textarea { background: #fff; border-color: #cfd8e3; border-radius: 4px; color: #344054; font-size: 13px; padding: 10px 11px; min-height: 38px; }
.field textarea { min-height: 100px; }
.field small { color: #8290a2; font-size: 11px; }
.field input:disabled, .field select:disabled { color: #667085; background: #f3f5f8; }
.form-section { margin: 18px 0 24px; padding: 18px 20px 2px; border: 1px solid #dfe5ed; border-radius: 5px; min-width: 0; background: #fafbfd; }
.form-section legend { padding: 0 8px; font-size: 14px; color: #2f425d; font-weight: 600; }
.form-section > p { margin: -3px 0 18px; font-size: 12px; color: #718095; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
.form-grid .field:has(textarea) { grid-column: 1 / -1; }
.calc-out, .self-result { background: #eef3f8; color: #415b7c; border-radius: 5px; }
.calc-out span { color: #647893; font-size: 12px; }
.calc-out strong { font-size: 28px; font-weight: 600; }
.assessment-goal { border-top-color: #dfe5ed; }
.assessment-goal h3 { font-size: 14px; }
.library-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 20px; align-items: start; }
.library-sidebar { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 18px 16px; }
.library-sidebar h3 { margin: 0 0 14px; font-size: 13px; font-weight: 600; }
.library-sidebar .field { margin-bottom: 18px; }
.library-sidebar .field:last-child { margin-bottom: 0; }
.library-sidebar label { font-size: 11px; color: #63738a; }
.library-sidebar button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: 4px; text-align: left; border-radius: 4px; padding: 9px 10px; color: #586b84; font-size: 12px; }
.library-sidebar button.selected { background: #edf2f8; color: #244b7a; font-weight: 600; }
.library-sidebar button:hover { background: #f1f4f8; }
.library-content { min-width: 0; }
.library-content .toolbar { margin-bottom: 15px; }
.library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.library-item { border-color: var(--line); border-radius: 5px; padding: 20px; }
.library-item h3 { font-size: 14px; font-weight: 600; margin-top: 12px; }
.library-item p { font-size: 12px; line-height: 1.7; }
.import-preview { padding: 17px; background: #f5f7fa; border: 1px solid #dce3ed; border-radius: 5px; margin: 16px 0; font-size: 12px; max-height: 320px; overflow: auto; }
.import-preview h3 { font-size: 14px; margin: 0 0 12px; }
.import-preview ul { padding-left: 20px; color: #8b3138; line-height: 1.8; }
.library-content .data-table td:nth-child(2) { white-space: normal; min-width: 230px; }
.quote { font-family: inherit; font-size: 17px; font-weight: 400; color: #475a75; }
.quote::before { display: none; }
.hbar { font-size: 11px; color: #63758f; }
.hbar > div { background: #edf1f6; }
.hbar > div > span { background: #718aaa; }
.hbar b { color: #405977; }
.chart-legend { color: #5e728e; border-top-color: #e8edf2; font-size: 11px; }
.chart-legend i { background: #6b84a5; }
.chart-labels { color: #7c8da4; font-size: 10px; }
.nine-cell { background: #edf2f7; border-radius: 4px; }
.nine-cell.highlight { background: #dfece4; }
.nine-cell.low { background: #f7ebe7; }
.nine-cell strong { font-size: 11px; color: #536b88; }
.nine-cell span { color: #536b88; }
.axis { color: #708299; font-size: 10px; letter-spacing: .5px; }
.timeline-item { font-size: 12px; border-left-color: #d8e0eb; }
.timeline-item strong { color: #374b67; }
.timeline-item small { color: #73839a; font-size: 11px; }
.timeline-item.done:before { background: #6b8d77; border-color: #6b8d77; }
.timeline-item.active:before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px #f9edef; }
.accordion { border-radius: 5px; }
.accordion summary { font-size: 14px; }
.accordion p, .accordion li { font-size: 13px; color: #697586; }
.phase { border-radius: 5px; padding: 20px; }
.phase.current { background: #edf3f9; border-color: #b9cbe0; }
.phase-num, .phase small { color: #75859b; }
.phase h3 { font-size: 14px; font-weight: 600; }
.phase p { font-size: 12px; color: #6b7b90; }
.empty { font-size: 13px; color: #75849b; }
.breakdown > div { font-size: 12px; border-top-color: #e8edf2; }
.breakdown dt { color: #728299; }
.big-result { color: #344c6a; font-weight: 600; }
.email-frame { background: #eef1f4; }
dialog { width: min(600px,calc(100vw - 32px)); max-height: 90vh; border-color: #d8e0e9; border-radius: 8px; box-shadow: 0 20px 90px #14213540; }
dialog:has(.form-section), dialog:has(.review-matrix), dialog:has(.approval-detail) { width: min(920px,calc(100vw - 48px)); }
dialog::backdrop { background: #16233780; backdrop-filter: blur(2px); }
.modal-head { padding: 24px 26px 19px; border-bottom: 1px solid #e3e8ee; background: #fff; }
.modal-head h2 { font-size: 23px; font-weight: 600; color: #293c56; letter-spacing: -.3px; }
.modal-head p { font-size: 12px; color: #718096; }
.modal-close { background: #f0f3f7; color: #66768c; width: 30px; height: 30px; border-radius: 4px; }
.modal-body { padding: 20px 26px 26px; }
.modal-foot { border-top: 1px solid #e3e8ee; padding-top: 20px; margin-top: 22px; }
#toast { background: #263b56; font-size: 13px; border-radius: 5px; }
footer { margin: 0 32px; padding: 20px 0 24px; border-top-color: #dde4ec; font-size: 10px; color: #8793a3; gap: 14px; }
footer button { font-size: 10px; color: #687c97; }
footer img { width: 51px; height: auto; opacity: .8; }
html[lang="es"] .nav-item { font-size: 12px; }
html[lang="zh-Hans"] .eyebrow { letter-spacing: .5px; }
html[lang="zh-Hans"] .page-heading h1 { letter-spacing: 0; }
@media (min-width: 1550px) {
  .sidebar { width: 244px; padding-left: 20px; padding-right: 20px; }
  main { padding: 34px 40px; }
  .topbar { padding-left: 40px; padding-right: 40px; }
  .hero { min-height: 0; }
}
@media (max-width: 1200px) {
  .sidebar { width: 210px; padding-left: 12px; padding-right: 12px; }
  main { padding: 27px 24px; }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .metrics { gap: 11px; }
  .metric { padding: 17px 16px; }
  .workflow-card { margin-left: 16px; margin-right: 16px; padding: 16px; }
  .workflow-title { gap: 12px; }
  .flow-steps { grid-auto-columns: minmax(94px,1fr); }
  .flow-steps li { min-width: 94px; }
  .library-layout { grid-template-columns: 190px minmax(0,1fr); gap: 16px; }
  footer { margin: 0 24px; }
}
@media (max-width: 950px) {
  .sidebar { width: 190px; padding-left: 10px; padding-right: 10px; }
  .brand { margin-left: 10px; margin-right: 4px; }
  .brand .brand-name { font-size: 11px; }
  .nav-item, html[lang="es"] .nav-item { font-size: 12px; }
  .topbar { gap: 12px; padding: 13px 22px; }
  .top-controls label { display: none; }
  .top-controls select { font-size: 11px; }
  main { padding: 24px 22px; }
  .page-heading h1 { font-size: 29px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cols, .cols.equal { grid-template-columns: minmax(0,1fr); }
  .workflow-title > div:first-child { flex-basis: 55%; }
  .flow-steps { grid-auto-columns: minmax(106px,1fr); }
  .library-layout { grid-template-columns: minmax(0,1fr); }
  .library-sidebar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
  .library-sidebar h3 { width: 100%; margin-bottom: 0; }
  .library-sidebar .field { flex: 1; min-width: 130px; margin-bottom: 0; }
  .library-sidebar button { width: auto; }
  .profile-tabs { gap: 18px; }
}
@media (max-width: 650px) {
  .preview-bar { min-height: 27px; font-size: 9px; padding: 6px 15px; }
  .shell { display: block; }
  .sidebar { width: 100%; height: auto; position: static; padding: 15px 14px 7px; overflow: visible; border-bottom: 0; }
  .brand { flex-direction: row; gap: 12px; align-items: center; margin: 0 0 11px; }
  .brand img { width: 95px; padding: 7px 8px; }
  .brand .brand-name { font-size: 11px; }
  #nav { margin: 0; display: flex; gap: 4px; padding-bottom: 3px; scrollbar-width: thin; }
  .nav-item, html[lang="es"] .nav-item { min-height: 37px; width: auto; font-size: 11px; padding: 8px 10px; border-left: 0; border-bottom: 2px solid transparent; border-radius: 4px; }
  .nav-item.active { border-bottom-color: #e95659; }
  .nav-item svg { width: 15px; height: 15px; }
  .nav-label, .sidebar-bottom { display: none; }
  .topbar { min-height: 56px; padding: 11px 15px; gap: 8px; }
  .topbar > #breadcrumb { font-size: 10px; max-width: 86px; }
  .top-controls { gap: 6px; }
  .top-controls select { padding: 7px 5px; font-size: 11px; max-width: 132px; min-height: 33px; }
  #language { max-width: 82px; }
  main { padding: 22px 15px; min-height: calc(100vh - 220px); }
  .page-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 19px; gap: 14px; }
  .page-heading h1 { font-size: 27px; letter-spacing: -.4px; }
  .page-heading p { font-size: 12px; }
  .page-heading > .btn { margin-top: 0; }
  .eyebrow { font-size: 10px; }
  .dashboard-band { flex-direction: column; align-items: stretch; padding: 19px; gap: 16px; }
  .dashboard-band h2 { font-size: 18px; }
  .dashboard-band p { font-size: 12px; }
  .dashboard-band > div:last-child { border-left: 0; border-top: 1px solid var(--line); padding: 13px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 3px; }
  .dashboard-band > div:last-child span { grid-column: 1 / -1; }
  .dashboard-band > div:last-child small { align-self: center; }
  .metrics { gap: 10px; }
  .metric { padding: 16px 14px; }
  .metric-top { font-size: 11px; }
  .metric-number { font-size: 24px; margin: 10px 0 5px; }
  .metric-sub { font-size: 10px; }
  .hero { padding: 20px; min-height: 0; }
  .hero-copy, .hero p, html[lang="es"] .hero p { max-width: 100%; }
  .hero h2 { font-size: 22px; }
  .panel-head { padding: 18px 17px 15px; align-items: flex-start; }
  .panel-head h2 { font-size: 14px; }
  .panel-head p { font-size: 11px; }
  .small-panel-content { padding: 0 17px 18px; }
  .workflow-card { margin: 0 14px 14px; padding: 15px; }
  .workflow-title { gap: 13px; align-items: center; }
  .workflow-title > div:first-child { flex-basis: 100%; min-width: 0; }
  .workflow-title > div:first-child strong { display: block; margin-top: 8px; line-height: 1.5; }
  .pending-owner { border: 0; padding: 0; flex: 1; min-width: 0; }
  .flow-steps { margin-top: 17px; grid-auto-columns: 110px; }
  .flow-steps li { padding-top: 10px; }
  .quick-links { padding: 0 17px 18px; gap: 9px; }
  .quick-links .btn { font-size: 11px; padding: 11px; min-height: 48px; white-space: normal; }
  .toolbar { padding: 13px; gap: 10px; }
  .toolbar > input { width: 100%; min-width: 0; }
  .toolbar .field { min-width: 0; max-width: 100%; }
  .toolbar .field select { max-width: 220px; }
  .section-heading { flex-wrap: wrap; gap: 12px; }
  .section-heading h2 { font-size: 17px; }
  .section-heading p { font-size: 12px; }
  .table-scroll { border-radius: 4px; }
  .data-table th { font-size: 11px; padding: 11px 13px; }
  .data-table td { padding: 13px; font-size: 12px; }
  .data-table .btn { min-height: 32px; }
  .profile-header { gap: 13px; padding: 20px 17px; flex-wrap: wrap; }
  .avatar.large { width: 53px; height: 53px; font-size: 18px; border-radius: 8px; }
  .profile-header h1 { font-size: 23px; }
  .profile-header p { font-size: 11px; }
  .profile-header > .status-label { margin-left: 0; }
  .profile-header > .right { margin-left: auto; }
  .profile-tabs { padding: 0 17px; margin-bottom: 20px; gap: 18px; }
  .profile-tabs button { font-size: 11px; padding: 13px 0 11px; }
  .key-values { padding: 0 17px 17px; }
  .key-values > div { grid-template-columns: minmax(90px,36%) minmax(0,1fr); gap: 13px; font-size: 12px; }
  .trend-chart { padding: 10px 17px 12px; }
  .trend-values { padding-left: 17px; padding-right: 17px; gap: 5px; font-size: 10px; }
  .trend-values b { font-size: 11px; }
  .mini-nine { margin-left: 17px; margin-right: 17px; }
  .mini-nine > div { font-size: 10px; min-height: 61px; padding: 8px 5px; }
  .inset { padding-left: 17px; padding-right: 17px; }
  .saved-note small { display: block; margin: 4px 0 0; }
  .audit-list { padding: 0 17px 17px; }
  .audit-list li { grid-template-columns: 1fr; gap: 5px; padding: 13px 0; }
  .summary-strip { gap: 15px; padding: 14px; }
  .summary-strip strong { font-size: 19px; }
  .batchbar { padding: 13px; }
  .batchbar .actions { margin-left: 0; width: 100%; }
  .batchbar .btn { flex: 1; }
  .library-sidebar { gap: 12px; padding: 15px; }
  .library-sidebar .field { min-width: 120px; }
  .library-grid { grid-template-columns: minmax(0,1fr); }
  .library-item { padding: 18px; }
  .notice, .note { font-size: 12px; padding: 13px 15px; }
  .task-row { padding: 16px 17px; }
  .task-main h3 { font-size: 12px; }
  .task-row .btn.small { font-size: 10px; max-width: 95px; }
  .goal-title { font-size: 12px; }
  .form-grid, .two-up { grid-template-columns: minmax(0,1fr); gap: 0; }
  .form-section { margin: 13px 0 21px; padding: 16px 14px 1px; }
  .form-section legend { font-size: 13px; padding: 0 6px; }
  .form-section > p { font-size: 11px; }
  .field input, .field select, .field textarea { font-size: 16px; min-height: 42px; }
  dialog, dialog:has(.form-section), dialog:has(.review-matrix), dialog:has(.approval-detail) { width: calc(100vw - 20px); max-height: 94vh; border-radius: 6px; }
  .modal-head { padding: 20px 18px 16px; }
  .modal-head h2 { font-size: 21px; }
  .modal-head p { font-size: 12px; }
  .modal-body { padding: 18px; }
  .modal-foot { gap: 8px; flex-wrap: wrap; }
  .modal-foot .btn { min-height: 40px; }
  footer { margin: 0 15px; padding: 18px 0 22px; font-size: 10px; }
  footer button { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* V4 — compact graphite workspace, one brand accent, direct manipulation. */
:root {
  --bg: #fcfcfc; --ink: #28292d; --muted: #797b82; --line: #ececef;
  --red: #bd272d; --red-light: #fceff0; --sage: #f0f0f2; --shadow: none;
  --ease-ui: cubic-bezier(.2,.7,.2,1); --speed-ui: 180ms;
  font-family: "Aptos", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}
body { background: #fcfcfc; color: var(--ink); font-size: 13px; }
button, a, input, select, textarea { transition: background-color 160ms var(--ease-ui), border-color 160ms var(--ease-ui), color 160ms var(--ease-ui), transform 120ms var(--ease-ui); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #bf5155; outline-offset: 3px; }
button:not(:disabled):active, .btn:not(:disabled):active { transform: translateY(1px); }
.preview-bar { min-height: 26px; padding: 5px 22px; color: #6f727c; background: #fff; border-bottom: 1px solid #f1f1f3; font-size: 9px; letter-spacing: .4px; }
.preview-bar button { color: #787980; font-size: 10px; }
.preview-dot { background: #b0b1b7; width: 4px; height: 4px; margin-right: 6px; }
.shell { min-height: calc(100dvh - 26px); }
.sidebar { width: 184px; background: #fff; color: #575960; border-right: 1px solid #efeff2; padding: 22px 10px 0; height: calc(100dvh - 0px); scrollbar-color: #6f727c transparent; }
.brand { display: block; width: 144px; margin: 0 auto 27px; padding: 0; }
.brand-lockup { display: inline-flex; flex-direction: column; align-items: stretch; gap: 6px; width: 144px; flex-shrink: 0; color: #38393e; }
.brand-lockup img, .brand .brand-lockup img { display: block; width: 100%; height: auto; padding: 0; margin: 0; border-radius: 0; background: transparent; opacity: 1; }
.brand-region { display: block; width: 100%; height: auto; overflow: visible; }
.brand-region text { font: 500 13px Arial, sans-serif; fill: currentColor; }
.nav-label { margin: 20px 12px 7px; color: #6f727c; font-size: 9px; font-weight: 500; letter-spacing: .55px; text-transform: lowercase; }
.nav-label::first-letter { text-transform: uppercase; }
.nav-item, html[lang="es"] .nav-item { border: 0; border-radius: 7px; color: #6b6d75; padding: 9px 11px; min-height: 36px; font-size: 12px; gap: 9px; margin: 3px 0; line-height: 1.35; }
.nav-item svg { width: 16px; height: 16px; color: #6f727c; }
.nav-item:hover { background: #f6f6f7; color: #292a2e; }
.nav-item.active { background: #2d2e33; color: #fff; font-weight: 500; border: 0; }
.nav-item.active svg { color: #6f727c; }
.nav-count { background: #f1f1f3; color: #6f727c; font-weight: 500; }
.nav-item.active .nav-count { background: #ffffff24; color: #6f727c; }
.sidebar-bottom { padding-top: 24px; }
.persona { padding: 17px 8px; border-top: 1px solid #ededf0; gap: 8px; }
.persona strong { color: #565860; font-size: 11px; font-weight: 500; }
.persona small { color: #6f727c; font-size: 10px; }
.avatar, .avatar.moss, .avatar.blue, .avatar.rose, .persona .avatar { width: 32px; height: 32px; border-radius: 9px; background: #f0f0f3; color: #777983; font-size: 10px; }
.status-dot { background: #9eaaa0; }
.workspace { background: #fcfcfc; }
.topbar { background: #fcfcfc; border-bottom: 0; min-height: 65px; padding: 14px 30px; color: #6f727c; }
#breadcrumb { color: #6f727c; font-size: 11px; font-weight: 400; }
.top-controls label { color: #6f727c; font-size: 10px; }
.top-controls select { padding: 7px 22px 7px 10px; background: #fff; border: 1px solid #ededf0; color: #686a74; border-radius: 6px; min-height: 32px; font-size: 11px; }
main { padding: 17px 30px 32px; max-width: 1560px; min-height: calc(100dvh - 176px); }
.eyebrow { color: #6f727c; font-size: 9px; font-weight: 500; letter-spacing: .8px; margin-bottom: 7px; }
.page-heading { margin-bottom: 22px; align-items: center; gap: 20px; }
.page-heading h1 { color: #27282d; font-size: 28px; font-weight: 550; letter-spacing: -.8px; margin: 0 0 7px; line-height: 1.18; }
.page-heading p { color: #6f727c; font-size: 12px; max-width: 70ch; line-height: 1.6; text-wrap: pretty; }
.btn { min-height: 33px; border: 1px solid #e6e6eb; border-radius: 6px; padding: 8px 12px; background: #fff; color: #6b6c74; font-size: 11px; font-weight: 500; box-shadow: none; }
.btn:hover { background: #f4f4f6; border-color: #e6e6ed; }
.btn.primary { background: #bd272d; border-color: #bd272d; color: #fff; }
.btn.primary:hover { background: #a52228; border-color: #a52228; }
.btn.dark { background: #35363c; border-color: #35363c; color: #fff; }
.btn.soft { color: #6c6d76; background: #f1f1f4; border-color: transparent; }
.btn.small { font-size: 10px; min-height: 28px; padding: 5px 9px; }
.text-link, .back-link { color: #747680; font-size: 11px; }
.dashboard-band { background: transparent; border: 0; border-radius: 0; padding: 0 0 20px; margin-bottom: 0; }
.dashboard-band h2 { color: #4c4e57; font-size: 15px; font-weight: 500; margin: 4px 0; }
.dashboard-band p { color: #6f727c; font-size: 11px; }
.dashboard-band > div:last-child { border-color: #e6e6ed; padding-left: 20px; }
.dashboard-band > div:last-child span, .dashboard-band small { color: #6f727c; font-size: 10px; }
.dashboard-band > div:last-child strong { color: #666872; font-size: 12px; font-weight: 500; }
.metrics { background: #fff; border: 1px solid #ededf1; border-radius: 10px; gap: 0; padding: 4px 0; margin-bottom: 26px; }
.metric { background: transparent; border: 0; border-right: 1px solid #ededf1; box-shadow: none; border-radius: 0; margin: 12px 0; padding: 0 22px; }
.metric:last-child { border-right: 0; }
.metric-top { color: #6f727c; font-size: 11px; font-weight: 400; }
.metric-top svg { color: #6f727c; width: 14px; height: 14px; }
.metric-number { color: #404149; font-size: 26px; font-weight: 500; letter-spacing: -.7px; margin: 8px 0 4px; }
.metric-number span, .metric-sub, .metric-sub.positive { color: #6f727c; font-size: 10px; font-weight: 400; }
.cols { gap: 22px; }
.panel { background: #fff; border: 1px solid #efeff2; border-radius: 10px; box-shadow: none; }
.panel-head { padding: 18px 20px 16px; }
.panel-head h2 { color: #555760; font-size: 14px; font-weight: 500; }
.panel-head p { font-size: 11px; color: #6f727c; font-weight: 400; }
.section-heading h2 { font-size: 16px; font-weight: 500; color: #50525b; }
.section-heading p { font-size: 11px; color: #6f727c; }
.small-panel-content { color: #73757f; font-size: 12px; }
.small-panel-content > b { font-weight: 500; color: #6c6e78; }
.small-panel-content p { font-size: 11px; color: #6f727c; }
.quick-links { gap: 0; display: block; padding: 0 20px 14px; }
.quick-links .btn { display: flex; border: 0; border-top: 1px solid #f0f0f4; border-radius: 0; background: transparent; min-height: 42px; padding: 12px 0; color: #7e808b; }
.quick-links .btn::after { content: '↗'; margin-left: auto; color: #6f727c; font-size: 13px; }
.quick-links .btn:hover { color: #31333b; background: #fafafd; padding-left: 5px; }
.toolbar, .tablefilters, .table-filters { background: #fff; border: 1px solid #ededf2; border-radius: 8px; padding: 11px 14px; gap: 10px; margin-bottom: 14px; position: sticky; top: 0; z-index: 6; }
.toolbar > input, .toolbar > select { min-height: 33px; font-size: 11px; border-color: #e6e6ed; border-radius: 5px; color: #6e7080; }
.toolbar > input { width: min(300px,100%); }
.toolbar > span { font-size: 11px; color: #6f727c; }
.toolbar .field label { color: #6f727c; font-size: 10px; }
.toolbar .field select { font-size: 11px; padding: 7px 10px; min-height: 32px; }
.profile-tabs, .status-tabs { display: inline-flex; width: fit-content; max-width: 100%; padding: 4px; gap: 3px; margin: 0 0 20px; border: 1px solid #ebebf1; border-radius: 9px; background: #f3f3f6; overflow-x: auto; }
.profile-tabs button, .status-tabs button { padding: 8px 13px; border: 0; border-radius: 6px; font-size: 11px; color: #6f727c; font-weight: 400; white-space: nowrap; background: transparent; }
.profile-tabs button:hover, .status-tabs button:hover { color: #4c4e59; }
.profile-tabs button.selected, .status-tabs button.selected, .status-tabs button.active { color: #454751; background: #fff; border: 0; font-weight: 500; box-shadow: 0 1px 3px #3838450a; }
.status-tabs button small, .status-tabs button span { background: #ededf2; color: #6f727c; padding: 1px 5px; border-radius: 4px; margin-left: 5px; font-size: 9px; }
.request-group { margin: 0 0 23px; }
.request-group > header, .request-group > h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; padding: 0 3px; color: #7e808b; font-size: 11px; font-weight: 500; }
.request-group > header h3 { margin: 0; font-size: 12px; font-weight: 500; }
.workflow-card { border: 0; border-top: 1px solid #efeff4; border-radius: 0; padding: 19px 0; margin: 0 20px; }
.workflow-card:first-of-type { border-top: 0; }
main > .workflow-card, .stagger > .workflow-card, .request-group > .workflow-card { padding: 18px 20px; margin: 0; border: 1px solid #eeeef3; border-bottom-width: 0; background: #fff; }
.request-group > .workflow-card:first-of-type { border-radius: 8px 8px 0 0; }
.request-group > .workflow-card:last-child { border-bottom-width: 1px; border-radius: 0 0 8px 8px; }
.workflow-title strong { font-size: 12px; font-weight: 500; color: #696b76; }
.workflow-title > div:first-child > small { font-size: 10px; color: #6f727c; }
.pending-owner { border-color: #e6e6ed; min-width: 118px; }
.pending-owner span { color: #6f727c; font-size: 10px; }
.pending-owner strong { color: #747682; font-size: 11px; font-weight: 500; }
.status-label, .tag { border-radius: 5px; font-size: 10px; padding: 3px 7px; background: #f2f2f5; color: #6f727c; font-weight: 400; }
.status-label.pending, .tag.blue { background: #f1f1f5; color: #6f727c; }
.status-label.good { background: #f0f5f1; color: #6f727c; }
.status-label.warn, .tag.amber { background: #fbf6ed; color: #6f727c; }
.flow-steps { margin-top: 17px; }
.flow-steps li { border-top-color: #e6e6ed; color: #6f727c; padding-top: 10px; }
.flow-steps li > i { width: 17px; height: 17px; font-size: 9px; background: #f2f2f6; color: #6f727c; }
.flow-steps li b { font-size: 10px; font-weight: 400; color: #6f727c; }
.flow-steps li small { font-size: 9px; color: #6f727c; margin-top: 3px; }
.flow-steps li em { background: #f7f7f9; color: #6f727c; font-size: 9px; }
.flow-steps li.complete { border-top-color: #e6e6ed; color: #6f727c; }
.flow-steps li.complete > i { background: #f0f4f1; color: #6f727c; }
.flow-steps li.current { border-top-color: #b52a30; }
.flow-steps li.current > i { background: #b52a30; color: #fff; }
.flow-steps li.current b, .flow-steps li.current small { color: #8f5155; font-weight: 500; }
.profile-header { background: transparent; border: 0; padding: 0 0 23px; gap: 16px; border-radius: 0; }
.avatar.large { width: 59px; height: 59px; border-radius: 15px; font-size: 20px; color: #6f727c; background: #ededf2; font-weight: 400; }
.profile-header h1 { color: #353640; font-size: 25px; font-weight: 500; }
.profile-header p { color: #6f727c; font-size: 11px; }
.key-values > div { padding: 12px 0; border-color: #e6e6ed; font-size: 11px; }
.key-values dt { color: #6f727c; }
.key-values dd { color: #6e7080; font-weight: 400; }
.mini-nine > div { background: #f7f7fa; border-color: #e6e6ed; color: #6f727c; font-size: 9px; border-radius: 4px; }
.mini-nine > div.selected { border: 1px solid #bf5155; color: #a35a60; background: #fcf1f2; font-weight: 400; }
.trend-values b { color: #6f727c; font-weight: 400; font-size: 11px; }
.trend-values { color: #6f727c; font-size: 10px; }
.table-scroll { border: 1px solid #eeeef3; border-radius: 8px; background: #fff; }
.data-table { font-size: 12px; color: #7e808f; }
.data-table th { background: #fbfbfd; color: #6f727c; font-size: 10px; font-weight: 400; padding: 11px 14px; border-color: #e6e6ed; }
.data-table td { padding: 13px 14px; border-color: #e6e6ed; color: #6f727c; font-size: 12px; }
.data-table tbody tr:hover td { background: #fafafd; }
.data-table tbody tr:focus-within td { background: #fff9f9; }
.data-table td.num { font-size: 12px; font-weight: 500; color: #7e808f; }
.person-cell strong { color: #6d6f80; font-size: 11px; font-weight: 500; }
.person-cell small, .data-table td .block { color: #6f727c; font-size: 10px; }
.review-matrix td:first-child { color: #737586; }
.review-matrix input, .review-matrix select { border-color: #e6e6ed; color: #747685; border-radius: 5px; font-size: 11px; }
.ledger-table .newhire-row td { background: #fffbf3; }
.ledger-table .newhire-row:hover td { background: #fff8ed; }
.ledger-table tr.selected td { background: #f7f4f6; }
.ledger-table tr.selected td:first-child { box-shadow: inset 2px 0 #b52a30; }
.batchbar, .summary-strip { background: #f5f5f8; color: #6f727c; border: 1px solid #ececf3; border-radius: 7px; font-size: 11px; padding: 12px 15px; }
.summary-strip strong { color: #777987; font-size: 21px; font-weight: 500; }
.summary-strip small, .summary-strip span { font-size: 10px; color: #6f727c; }
.scorestrip, .score-strip { display: flex; gap: 22px; flex-wrap: wrap; padding: 16px 18px; background: #f8f8fb; border-radius: 7px; margin: 15px 0; }
.scorestrip strong, .score-strip strong { font-size: 23px; color: #747786; font-weight: 500; }
.draft-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; padding: 14px 0; border-bottom: 1px solid #ededf3; }
.library-sidebar { background: transparent; border: 0; border-right: 1px solid #ececf3; border-radius: 0; padding: 4px 20px 16px 0; }
.library-sidebar h3 { color: #6f727c; font-size: 11px; font-weight: 500; }
.library-sidebar label { color: #6f727c; }
.library-sidebar button { color: #6f727c; border-radius: 6px; }
.library-sidebar button.selected { background: #f0f0f5; color: #7a7d8d; font-weight: 400; }
.library-layout { grid-template-columns: 176px minmax(0,1fr); gap: 23px; }
.library-grid { gap: 12px; }
.library-item { border: 1px solid #eeeef4; padding: 19px; border-radius: 9px; }
.library-item h3 { color: #7b7d8e; font-size: 13px; font-weight: 500; }
.library-item p { color: #6f727c; font-size: 11px; }
.notice, .note, .note.plain { border: 0; border-radius: 6px; background: #f5f5f8; color: #6f727c; font-size: 11px; }
.notice.warn, .note.warm { background: #fcf8f0; color: #6f727c; }
.notice.good { background: #f2f6f3; color: #6f727c; }
.field label { color: #6f727c; font-size: 11px; font-weight: 400; }
.field input, .field select, .field textarea { border-color: #e6e6ed; border-radius: 6px; color: #707484; background: #fff; font-size: 12px; min-height: 37px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #e6e6ed; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #e6e6ed; }
.form-section { border: 0; border-top: 1px solid #ededf4; border-radius: 0; background: transparent; padding: 18px 0 0; margin: 14px 0 22px; }
.form-section legend { padding: 0 10px 0 0; color: #757988; font-size: 12px; font-weight: 500; }
.form-section > p { color: #6f727c; font-size: 11px; }
.form-grid { gap: 0 20px; }
.baseform, .base-form { display: grid; gap: 18px; }
.baseform .form-section, .base-form .form-section { margin: 0; }
.audit-list b { color: #6f727c; font-size: 11px; font-weight: 500; }
.audit-list li { border-color: #e6e6ed; }
.audit-list p { color: #6f727c; font-size: 11px; }
.audit-list li > span { color: #6f727c; font-size: 10px; }
.saved-note strong { color: #6f727c; font-weight: 500; }
.saved-note p { color: #6f727c; font-size: 12px; }
.hero { background: transparent; border: 0; border-bottom: 1px solid #ececf3; border-radius: 0; padding: 0 0 20px; }
.hero h2 { color: #676b7a; font-size: 22px; font-weight: 500; }
.hero p { color: #6f727c; font-size: 12px; }
.hero-art { display: none; }
.goal-title, .task-main h3 { color: #6f727c; font-size: 12px; font-weight: 500; }
.task-main p, .goal-meta, .progress-footer { color: #6f727c; font-size: 10px; }
.threshold-chips span { background: #f3f3f8; color: #6f727c; }
.progress { background: #f0f0f6; }
.progress > span { background: #b1b4c1; }
.calc-out, .self-result { background: #f5f5fa; color: #6f727c; }
.calc-out span { color: #6f727c; }
.calc-out strong { color: #6f727c; font-size: 26px; font-weight: 500; }
.quote { color: #6f727c; font-size: 16px; }
footer { margin: 0 30px; padding: 18px 0 24px; border-color: #e6e6ed; color: #6f727c; font-size: 9px; }
footer .brand-lockup { width: 88px; gap: 3px; color: #6f727c; }
footer .brand-lockup img { width: 100%; opacity: 1; }
footer button { color: #6f727c; font-size: 10px; }
footer > span:not(.brand-lockup) { margin-left: 7px; }
dialog, dialog:has(.form-section), dialog:has(.review-matrix), dialog:has(.approval-detail) { border: 0; border-left: 1px solid #e7e7ef; border-radius: 14px 0 0 14px; width: min(700px,92vw); max-width: 92vw; height: 100dvh; max-height: 100dvh; inset: 0 0 0 auto; margin: 0; box-shadow: -16px 0 80px #24233318; color: #747988; }
dialog:has(.review-matrix), dialog:has(.approval-detail) { width: min(950px,94vw); max-width: 94vw; }
dialog::backdrop { background: #2624322c; backdrop-filter: blur(2px); }
dialog[open] { animation: sheet-enter 230ms var(--ease-ui) both; }
.modal-head { position: sticky; top: 0; z-index: 8; background: #fff; border-color: #e6e6ed; padding: 25px 27px 21px; }
.modal-head h2 { color: #626877; font-size: 21px; font-weight: 500; letter-spacing: -.45px; }
.modal-head p { color: #6f727c; font-size: 11px; }
.modal-close { background: #f4f4f8; color: #6f727c; width: 28px; height: 28px; border-radius: 7px; }
.modal-body { padding: 23px 27px; }
.modal-foot { position: sticky; bottom: -23px; z-index: 7; padding: 17px 0 20px; margin-top: 24px; background: #fff; border-color: #e6e6ed; }
#toast { background: #454955; font-size: 12px; border-radius: 8px; box-shadow: 0 8px 24px #302c3714; transition: opacity 160ms var(--ease-ui), transform 180ms var(--ease-ui); }
.stagger { animation: workspace-enter 180ms var(--ease-ui) both; }
@keyframes workspace-enter { from { transform: translateY(4px); } to { transform: translateY(0); } }
@keyframes sheet-enter { from { transform: translateX(24px); } to { transform: translateX(0); } }
@media (min-width:1550px) { .sidebar { width: 196px; padding-left: 14px; padding-right: 14px; } main { padding: 20px 40px 34px; } .topbar { padding: 14px 40px; } }
@media (max-width:950px) { .sidebar { width: 170px; padding-left: 8px; padding-right: 8px; } .brand { width: 138px; } .brand-lockup { width: 138px; } .nav-item, html[lang="es"] .nav-item { font-size: 11px; gap: 7px; } main { padding: 17px 22px 28px; } .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .metric { padding: 0 18px; } .metric:nth-child(2) { border-right: 0; } .library-layout { grid-template-columns: 1fr; } .library-sidebar { border-right: 0; border-bottom: 1px solid #eeeef4; padding-bottom: 17px; } }
@media (max-width:650px) {
  .preview-bar { padding: 5px 15px; font-size: 8px; min-height: 25px; }
  .sidebar { position: static; height: auto; width: 100%; padding: 14px 13px 9px; border: 0; border-bottom: 1px solid #efeff4; }
  .brand { display: block; width: 116px; margin: 0 0 14px; }
  .brand-lockup { width: 116px; gap: 4px; }
  .brand .brand-lockup img { width: 100%; padding: 0; }
  #nav { gap: 4px; }
  .nav-item, html[lang="es"] .nav-item { padding: 8px 10px; min-height: 33px; font-size: 10px; border: 0; }
  .nav-item.active { border: 0; }
  .topbar { padding: 9px 15px; min-height: 53px; }
  .topbar > #breadcrumb { font-size: 9px; color: #6f727c; }
  .top-controls select { max-width: 129px; padding: 7px 5px; font-size: 10px; min-height: 31px; }
  #language { max-width: 78px; }
  main { padding: 17px 15px 26px; }
  .page-heading { margin-bottom: 19px; gap: 12px; }
  .page-heading h1 { font-size: 26px; }
  .page-heading p { font-size: 11px; }
  .dashboard-band { padding: 0 0 16px; gap: 11px; }
  .dashboard-band h2 { font-size: 14px; }
  .dashboard-band > div:last-child { padding: 11px 0 0; border-color: #e6e6ed; }
  .metrics { border-radius: 9px; padding: 0; margin-bottom: 22px; }
  .metric { padding: 0 14px; margin: 15px 0; }
  .metric-top { font-size: 10px; }
  .metric-number { font-size: 23px; }
  .metric-sub { font-size: 9px; }
  .panel-head { padding: 16px; }
  .panel-head p { font-size: 10px; }
  .workflow-card { margin: 0 16px; padding: 16px 0; }
  .workflow-title > div:first-child strong { font-size: 11px; margin-top: 7px; }
  .pending-owner strong { font-size: 10px; }
  .flow-steps { grid-auto-columns: 104px; }
  .quick-links { padding: 0 16px 13px; }
  .quick-links .btn { min-height: 39px; font-size: 11px; padding: 10px 0; }
  .profile-tabs, .status-tabs { display: flex; width: 100%; padding: 4px; border-radius: 8px; gap: 2px; }
  .profile-tabs button, .status-tabs button { padding: 8px 10px; font-size: 10px; }
  .profile-header { padding: 0 0 20px; gap: 12px; }
  .profile-header h1 { font-size: 23px; }
  .profile-header .avatar.large { width: 51px; height: 51px; border-radius: 13px; }
  .toolbar { padding: 10px; gap: 8px; }
  .toolbar > input { width: 100%; font-size: 11px; min-height: 34px; }
  .data-table td { font-size: 11px; padding: 12px; }
  .data-table th { font-size: 10px; padding: 10px 12px; }
  .data-table .btn { min-height: 30px; }
  .form-grid { gap: 0; }
  .field input, .field select, .field textarea { font-size: 16px; min-height: 42px; }
  .field label { font-size: 11px; }
  dialog, dialog:has(.form-section), dialog:has(.review-matrix), dialog:has(.approval-detail) { width: calc(100vw - 8px); max-width: calc(100vw - 8px); border-radius: 12px 0 0 12px; height: 100dvh; max-height: 100dvh; }
  .modal-head { padding: 21px 18px 17px; }
  .modal-head h2 { font-size: 20px; }
  .modal-body { padding: 18px; }
  .modal-foot { bottom: -18px; padding: 15px 0 18px; }
  footer { margin: 0 15px; gap: 10px; padding: 18px 0 23px; }
  footer .brand-lockup { width: 80px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  dialog[open], .stagger { transform: none; }
}
/* Workflow grouping and score emphasis shared by V4 screens. */
.table-filters, .tablefilters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.table-filters .field, .tablefilters .field { margin: 0; min-width: 130px; }
.table-filters input, .table-filters select, .tablefilters input, .tablefilters select { min-height: 34px; padding: 8px 10px; border: 1px solid #e7e7ee; border-radius: 5px; background: #fff; color: #6a6c76; font: inherit; }
.approval-category-links { display: flex; gap: 7px; flex-wrap: wrap; margin: 0 0 17px; }
.approval-category-links button, .approval-category-links a { display: inline-flex; gap: 7px; align-items: center; padding: 8px 12px; font-size: 11px; text-decoration: none; color: #777985; background: #f4f4f7; border: 1px solid #ededf2; border-radius: 6px; }
.approval-category-links .selected, .approval-category-links .active { background: #37383f; border-color: #37383f; color: #fff; }
.approval-group { margin-bottom: 25px; }
.approval-group > h2, .approval-group > h3 { color: #646773; font-size: 13px; font-weight: 500; margin: 0 0 12px; }
.approval-group > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.approval-group > header h2, .approval-group > header h3 { margin: 0; color: #646773; font-size: 13px; font-weight: 500; }
.draft-plan-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid #ededf3; }
.draft-plan-header h2, .draft-plan-header h3 { margin: 0 0 5px; font-size: 14px; font-weight: 500; color: #575a67; }
.draft-plan-header p { margin: 0; font-size: 11px; color: #767985; }
.weight-status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 6px 9px; background: #f1f1f5; border: 1px solid #e5e5ed; border-radius: 6px; color: #666976; font-size: 11px; font-variant-numeric: tabular-nums; }
.weight-status.good, .weight-status.valid { background: #f0f6f2; border-color: #d8e6dd; color: #4b765b; }
.weight-status.warn, .weight-status.invalid { background: #fff5f1; border-color: #f0ddd4; color: #9c6650; }
.review-score-summary { margin: 17px 0 22px; }
.review-score { display: inline-flex; align-items: baseline; gap: 4px; color: #4b4e5c; font-size: 22px; font-weight: 500; line-height: 1.25; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.review-score small, .review-score span { color: #848794; font-size: 11px; font-weight: 400; letter-spacing: 0; }
.review-score .btn { letter-spacing: 0; }
@media (max-width:650px) {
  .draft-plan-header { flex-wrap: wrap; padding: 15px 16px; gap: 11px; }
  .table-filters .field, .tablefilters .field { flex: 1; min-width: 120px; }
  .table-filters input, .table-filters select { max-width: 100%; }
  .approval-category-links { gap: 6px; }
  .approval-category-links button, .approval-category-links a { font-size: 10px; padding: 7px 10px; }
  .review-score { font-size: 20px; }
}
/* Dense records stay within their table; detailed records stay within the sheet. */
[hidden] { display: none !important; }
.stagger, .modal-body, #dialog-body, .form-grid > *, .form-section, .profile-grid > * { min-width: 0; }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; }
.table-scroll:focus-within { outline-offset: 2px; }
.data-table td:has(.definition) { min-width: 230px; max-width: 380px; white-space: normal; }
.definition { display: block; font-size: 11px; line-height: 1.55; color: #7f828d; font-weight: 400; margin-top: 5px; max-width: 48ch; overflow-wrap: anywhere; }
.data-table strong.block { display: block; margin: 4px 0 0; font-size: 12px; color: #5e616d; font-weight: 500; }
.group-row td, .data-table tbody .group-row:hover td { background: #f7f7fa; color: #747782; font-size: 11px; padding: 10px 14px; border-bottom: 1px solid #e8e8ef; }
.group-row strong { font-weight: 500; }
.group-row .tag { margin-left: 5px; }
.base-requests-table { min-width: 1040px; }
.base-requests-table td { vertical-align: top; }
.base-requests-table th:first-child { min-width: 36px; width: 36px; }
.base-requests-table th:last-child { min-width: 100px; }
.base-requests-table td:last-child .btn + .btn { margin: 6px 0 0; }
.base-requests-table td:nth-child(3) { min-width: 140px; }
.base-requests-table td:nth-child(6) { min-width: 170px; max-width: 220px; white-space: normal; }
.profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 26px; margin: 0 0 24px; }
.profile-field { display: flex; flex-direction: column; gap: 5px; border-bottom: 1px solid #ededf4; padding: 12px 0; }
.profile-field > span { color: #818490; font-size: 10px; line-height: 1.5; }
.profile-field > strong { color: #5d6170; font-size: 12px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; white-space: normal; }
.modal-body > .panel { margin: 0 0 16px; }
.modal-body > h3 { margin: 21px 0 12px; font-size: 13px; font-weight: 500; color: #5d6170; }
.modal-body > details { margin-top: 12px; padding: 13px 15px; border: 1px solid #ededf3; border-radius: 7px; font-size: 11px; color: #767b89; overflow-wrap: anywhere; }
.modal-body > details > summary { cursor: pointer; color: #606777; font-size: 12px; font-weight: 500; }
.modal-body > details p, .modal-body > details li { line-height: 1.7; }
.modal-body > details ul { padding-left: 18px; }
.modal-head > div { min-width: 0; }
.modal-head p { overflow-wrap: anywhere; }
.field input, .field select, .field textarea, .form-grid input, .form-grid select { min-width: 0; max-width: 100%; }
.field input[type="file"] { width: 100%; max-width: 100%; font-size: 12px; overflow: hidden; background: #fafafd; }
#b4-import-preview, #v4-lib-import-preview { min-width: 0; max-width: 100%; margin-top: 16px; }
#b4-import-preview .table-scroll, #v4-lib-import-preview .table-scroll { max-height: 48dvh; }
#b4-import-submit { position: sticky; bottom: 0; padding: 14px 0; background: #fff; z-index: 3; }
.audit-list time { color: #858a98; font-size: 10px; line-height: 1.6; }
.weight-status.complete { background: #f0f6f2; border-color: #d8e6dd; color: #4b765b; }
@media (max-width:650px) {
  .profile-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  .profile-field { display: grid; grid-template-columns: minmax(95px,40%) minmax(0,1fr); gap: 14px; align-items: start; padding: 11px 0; }
  .profile-field > strong { font-size: 11px; }
  .profile-field > span { font-size: 10px; }
  .definition { max-width: 36ch; font-size: 10px; }
  .data-table td:has(.definition) { min-width: 215px; max-width: 280px; }
  .table-filters > input { width: 100%; min-width: 0; }
  .table-filters .field select, .toolbar .field select { width: 100%; min-width: 0; max-width: 100%; }
  .modal-body > details { padding: 12px; }
  .field input[type="file"] { padding: 10px; min-height: 42px; }
  #b4-import-preview .table-scroll, #v4-lib-import-preview .table-scroll { max-height: 42dvh; }
  #b4-import-submit .btn { width: 100%; }
}
.ledger-table.base-approval-table { min-width: 1040px; }
.base-approval-table td { vertical-align: top; }
.base-approval-table th:first-child { min-width: 36px; width: 36px; }
.base-approval-table th:last-child { min-width: 100px; }
.base-approval-table td:last-child .btn + .btn { margin: 6px 0 0; }
.base-approval-table td:nth-child(3) { min-width: 140px; }
.base-approval-table td:nth-child(6) { min-width: 170px; max-width: 230px; white-space: normal; }
.base-meta { display: block; margin-top: 4px; color: #7e828f; font-size: 10px; font-weight: 400; line-height: 1.6; white-space: normal; }
.base-approval-table .base-meta { max-width: 30ch; }

/* Summary totals carry no inferred trend direction. */
.metric-top svg { display: none; }
