:root {
  --brand-primary: #a82738;
  --brand-primary-dk: #811d2b;
  --brand-primary-lt: #bd3547;
  --brand-accent: #a82738;
  --brand-accent-lt: #e7979e;
  --brand-light: #fbf0ef;
  --color-page-bg: #f5f4f0;
  --color-text: #242b30;
  --color-text-2: #465157;
  --color-text-muted: #687078;
  --color-border: #d8d9d5;
  --radius-lg: 12px;
}
.app-shell { background: var(--color-page-bg); }
.app-shell .sidebar { background: #20292e; border-right: 0; }
.app-shell .sidebar__logo { padding: 1.65rem 1.4rem 1.4rem; }
.app-shell .sidebar__logo-mark { padding: 0; border: 0; background: none; font-size: 1.6rem; letter-spacing: -.065em; gap: .6rem; }
.affordax-mark { width: 27px; height: 30px; flex-shrink: 0; }
.app-shell .sidebar__logo-sub { color: #bdc5c8; font-size: .65rem; letter-spacing: .13em; }
.sidebar-close { display: none; }
.navigation-open { overflow: hidden; }
.app-shell .sidebar__section-label { color: #a8b3b7; font-size: .62rem; letter-spacing: .12em; }
.app-shell .sidebar__link { color: #d1d7da; border-radius: 6px; min-height: 40px; margin: 3px 0; }
.app-shell .sidebar__link--active { color: #fff; background: #3c454a; box-shadow: none; }
.app-shell .sidebar__link--active::before { background: #e7979e; width: 3px; }
.app-shell .sidebar__user-avatar { background: #f1ded6; color: #5b3536; border-radius: 50%; }
.app-shell .topbar { background: #fdfdfb; backdrop-filter: none; box-shadow: none; border-bottom: 1px solid #e0e1dc; }
.app-shell .topbar__title { font-size: .95rem; font-weight: 650; }
.app-shell .portal-kicker { font-size: .6rem; letter-spacing: .1em; color: #687078; }
.workspace-hero { padding: .5rem 0 1.65rem; border: 0; border-bottom: 1px solid #d8d9d5; border-radius: 0; background: none; align-items: center; gap: 1.5rem; margin-bottom: 1.75rem; }
.workspace-hero .page-title { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.8rem); letter-spacing: -.045em; max-width: 32ch; }
.workspace-hero .page-subtitle { margin-top: .65rem; max-width: 66ch; font-size: .85rem; }
.workspace-hero__role { color: #a82738; font-size: .62rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; display: block; margin-bottom: .65rem; }
.main-content > .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 0; border: 1px solid #dedfd9; border-radius: 10px; background: #fff; overflow: hidden; margin-bottom: 2rem; }
.main-content > .stats-grid .stat-card { background: none; box-shadow: none; border: 0; border-right: 1px solid #e5e5df; border-radius: 0; padding: 1.3rem; }
.main-content > .stats-grid .stat-card:last-child { border-right: 0; }
.app-shell .stat-card::after { display: none; }
.app-shell .stat-card__value { color: #252e32; font-variant-numeric: tabular-nums; font-size: clamp(1.45rem, 2vw, 1.9rem); letter-spacing: -.04em; }
.app-shell .stat-card--attention { background: #fff8f1 !important; }
.app-shell .stat-card__label { color: #606b70; font-size: .64rem; letter-spacing: .07em; }
.app-shell .stat-card__sub { font-size: .7rem; color: #687078; }
.app-shell .card { box-shadow: none; border: 1px solid #dedfd9; overflow: hidden; }
.app-shell .card__header { padding: 1.25rem 1.4rem; background: #fdfdfb; }
.app-shell .card__title { font-size: .95rem; }
.app-shell .card__body { padding: 1.4rem; }
.app-shell .data-table { font-variant-numeric: tabular-nums; }
.app-shell .data-table thead th { background: #f1f2ee; color: #536067; font-size: .65rem; letter-spacing: .065em; padding-block: .85rem; }
.app-shell .data-table tbody td { padding-block: 1rem; border-bottom-color: #ecece7; }
.app-shell .data-table tbody tr:hover { background: #faf7f3; }
.app-shell .btn--primary, .auth-shell .btn--primary { background: #a82738; box-shadow: none; border-color: #a82738; color: #fff; }
.app-shell .btn--primary:hover, .auth-shell .btn--primary:hover { background: #811d2b; transform: none; box-shadow: none; }
.app-shell .btn { border-radius: 6px; min-height: 40px; }
.app-shell .btn--secondary { background: #fff; border-color: #d5d8d4; color: #323e44; }
.app-shell .input:focus, .app-shell .select:focus, .app-shell .textarea:focus { border-color: #a82738; box-shadow: 0 0 0 3px rgb(168 39 56 / .1); }
.app-shell .badge { border-radius: 4px; font-size: .67rem; font-weight: 650; }
.app-shell .workspace-section-heading { align-items: end; margin-bottom: .9rem; }
.app-shell .workspace-section-heading h2 { font-size: 1.05rem; margin-top: .4rem; }
.section-index { color: #9b3945; letter-spacing: .12em; font-size: .6rem; font-weight: 750; }
.workspace-date { color: #687078; font-size: .72rem; }
.action-inbox { margin-bottom: 2rem; }
.action-inbox__list { border: 1px solid #dedfd9; border-radius: 10px; background: #fff; overflow: hidden; }
.action-inbox__list li + li { border-top: 1px solid #e9e9e3; }
.action-inbox__list a { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; color: #242b30; }
.action-inbox__list a:hover { background: #fff8f5; text-decoration: none; }
.action-inbox__count { display: grid; place-items: center; min-width: 38px; height: 38px; padding: .3rem; border-radius: 8px; color: #a82738; background: #fbefed; font-weight: 750; font-variant-numeric: tabular-nums; }
.action-inbox__copy strong, .action-inbox__copy small { display: block; }
.action-inbox__copy small { color: #687078; line-height: 1.5; margin-top: .25rem; }
.action-inbox__arrow { margin-left: auto; color: #a82738; font-size: 1.25rem; }
.action-inbox__clear { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border: 1px solid #dbe2d9; background: #edf2eb; border-radius: 8px; }
.action-inbox__clear p { margin-top: .2rem; font-size: .8rem; color: #50644f; }
.action-inbox__check { color: #426941; font-size: 1.25rem; }
.app-shell .workspace-actions__grid { gap: .75rem; }
.app-shell .workspace-action { border-radius: 8px; background: #fdfdfb; padding: 1.1rem; box-shadow: none; border-color: #dedfd9; }
.app-shell .workspace-action:hover { border-color: #a82738; background: #fff; transform: none; text-decoration: none; }
.workspace-action__number { color: #a82738 !important; font-size: .65rem !important; letter-spacing: .06em; font-family: var(--font-mono); margin-bottom: .3rem; }
.app-shell .workspace-readiness__items { background: #fcfaf5; }
@media (max-width: 767px) {
  .workspace-date { display: none; }
  .main-content > .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-content > .stats-grid .stat-card { padding: 1rem; border-bottom: 1px solid #e5e5df; }
  .workspace-hero .page-title { font-size: 2rem; }
  .action-inbox__list a { padding: 1rem; gap: .75rem; }
}
:where(button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid #98721b; outline-offset: 3px; }
.workspace-search-trigger {
  min-height: 40px;
  border: 1px solid #d0dbd9;
  border-radius: 8px;
  background: #f6f8f7;
  color: #38515a;
  padding: .5rem .9rem;
  cursor: pointer;
}
.workspace-search {
  width: min(620px, calc(100% - 2rem));
  max-height: 80dvh;
  padding: 1.5rem;
  border: 1px solid #c8d6d2;
  border-radius: 18px;
  color: var(--color-text);
  box-shadow: 0 24px 80px rgb(0 0 0 / .25);
}
.workspace-search::backdrop { background: rgb(7 25 32 / .65); }
.workspace-search__header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1.5rem; }
.workspace-search__header h2 { margin-top: .3rem; font-size: 1.3rem; }
.workspace-search .input { width: 100%; }
.workspace-search__results { display: grid; gap: .25rem; max-height: 40dvh; overflow-y: auto; }
.workspace-search__result { padding: .8rem 1rem; border-radius: 8px; background: #f4f7f6; color: #173f4a; font-weight: 600; }
.workspace-search__result:hover { background: #e4efea; text-decoration: none; }
.workspace-search__count, .workspace-search__hint { color: #52696f; font-size: .8rem; margin: .8rem 0; }
.workspace-search kbd { padding: .15rem .3rem; border: 1px solid #d0dbd9; border-radius: 4px; font-size: .7rem; }
.payroll-progress { margin-bottom: 1.5rem; padding: 1.25rem; }
.payroll-progress__steps { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }
.payroll-progress__step { display: flex; align-items: center; gap: .5rem; color: #5d7379; font-size: .8rem; }
.payroll-progress__step > span:first-child { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #edf1f0; border: 1px solid #ccd8d4; }
.payroll-progress__step--complete { color: #2c6351; }
.payroll-progress__step--current { color: #123b4a; font-weight: 750; }
.payroll-progress__step--current > span:first-child { background: #123b4a; color: #fff; border-color: #123b4a; }
.payroll-progress__status { border-top: 1px solid #dce5e2; padding-top: 1rem; }
.payroll-progress__status p { margin-top: .5rem; color: #52696f; }
.connection-status:not([hidden]) { position: sticky; top: 0; z-index: 600; padding: .8rem 1.25rem; background: #fff2cf; color: #63450d; border-bottom: 1px solid #e8cd87; text-align: center; }
@media (max-width: 767px) {
  .sidebar-close { display: block; align-self: flex-end; margin: .75rem; padding: .65rem; border: 1px solid #8aa8ac; border-radius: 7px; background: transparent; color: #fff; cursor: pointer; }
  .workspace-hero { flex-direction: column; align-items: stretch; }
  .workspace-search-trigger { font-size: .75rem; padding: .5rem; }
  .app-shell .topbar__actions { gap: .4rem; }
  .app-shell .input, .app-shell .select, .app-shell .textarea { font-size: 1rem; }
  .workspace-search { padding: 1rem; }
}
@media print {
  .sidebar, .topbar, .workspace-search, .connection-status, .pwa-install, .toast-container { display: none !important; }
  .main-panel { margin-left: 0 !important; }
  .main-content { padding: 0 !important; max-width: none; }
  .card, .stat-card { break-inside: avoid; box-shadow: none; }
  .table-container { overflow: visible; }
}
:root { --auth-ink: #20292e; }
.auth-shell--welcome { background: var(--color-bg, #f5f4f0); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding: 0; gap: 0; }
.auth-introduction { background: var(--auth-ink); color: #fff; min-height: 100vh; padding: clamp(2rem, 5vw, 5rem); display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.auth-wordmark { color: #fff; display: inline-flex; align-items: center; gap: .7rem; font-size: 1.5rem; font-weight: 700; text-decoration: none; width: fit-content; }
.auth-wordmark:hover { color: #fff; }
.auth-eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin-bottom: 1rem; }
.auth-introduction .auth-eyebrow { color: #e7979e; }
.auth-introduction h1 { color: #fff; font-family: Georgia, serif; font-size: clamp(2.5rem, 4.5vw, 4.7rem); font-weight: 400; line-height: 1.08; letter-spacing: -.035em; margin-bottom: 1.5rem; }
.auth-introduction__body > p:not(.auth-eyebrow) { color: #c7cecf; max-width: 29rem; line-height: 1.7; }
.auth-principles { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.auth-principles li { padding: 1rem 0; border-top: 1px solid #485257; font-size: .85rem; }
.auth-principles span { color: #e7979e; font-variant-numeric: tabular-nums; margin-right: .8rem; }
.auth-introduction__footer { color: #b9c2c4; font-size: .75rem; }
.auth-shell--welcome .auth-card { background: transparent; box-shadow: none; border-radius: 0; justify-self: center; max-width: 460px; padding: 2.5rem; }
.auth-shell--welcome .auth-card__title, .auth-shell--welcome .auth-card__subtitle { text-align: left; }
.auth-shell--welcome .auth-card__title { font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
@media (max-width: 760px) {
  .main-content > .stats-grid > .stat-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .auth-shell--welcome { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .auth-introduction { min-height: auto; padding: 1.5rem; gap: 1.5rem; }
  .auth-introduction h1 { font-size: 2.2rem; margin-bottom: .75rem; }
  .auth-principles, .auth-introduction__footer { display: none; }
  .auth-shell--welcome .auth-card { padding: 2rem 1.5rem; }
}
.auth-shell--portal { background: #f5f4f0; padding: 2rem 1rem; }
.auth-shell--portal .auth-card { max-width: 460px; border: 1px solid #dedfd9; box-shadow: 0 10px 35px #20292e08; }
.auth-shell--portal .auth-wordmark { color: #20292e; margin: 0 auto 2rem; display: flex; }
.auth-shell--portal .auth-eyebrow { text-align: center; color: #687078; }
.auth-shell--portal .auth-card__title { font-family: Georgia, serif; font-size: 1.9rem; font-weight: 400; }
.auth-support-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; padding-top: 1.5rem; font-size: .8rem; }
.portal-support { min-height: 100vh; background: #f5f4f0; }
.portal-support__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem clamp(1rem, 4vw, 3rem); background: #20292e; }
.portal-support__form { max-width: 600px; margin: 3rem auto; padding: 0 1.5rem; }
.portal-support__form > p { color: #465157; margin: 1rem 0; }
.portal-support__form form { margin-top: 2rem; }
.portal-support > .auth-support-links { padding: 1.5rem; margin-top: auto; }
@media (max-width: 480px) {
  .auth-shell--portal .auth-card { padding: 2rem 1.25rem; }
}
