[data-paycheck-panel] { margin: 16px 0 24px; padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-secondary); min-width: 0; }
[data-paycheck-panel][hidden] { display: none; }
.paycheck-lead { border-top: 3px solid var(--primary); background: linear-gradient(115deg, color-mix(in srgb, var(--primary) 6%, var(--bg-secondary)), var(--bg-secondary)); }
.paycheck-lead .pay-heading h2 { font-size: 22px; }
.pay-tiles .pay-consumption-tile { box-shadow: inset 3px 0 var(--primary); }
.pay-cost-pair { display: inline-flex; flex-direction: column; gap: 2px; max-width: 100%; vertical-align: top; font-size: inherit; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.pay-cost-pair > strong, .pay-work-value { display: inline; color: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; }
.pay-work-value::before { content: ' · '; white-space: pre; }
.pay-cost-pair > strong ~ strong { font-size: .78em; font-weight: 500; opacity: .8; }
.pay-cost-pair .pay-work-value::before { content: none; }
.pay-unit-toggle { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-secondary); }
.pay-unit-toggle[hidden], .pay-rate-badge[hidden] { display: none; }
.pay-unit-toggle button { min-width: 40px; padding: 5px 9px; border: 0; border-radius: 999px; background: transparent; color: var(--text-secondary); font: inherit; font-size: 12px; cursor: pointer; }
.pay-unit-toggle button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.pay-rate-badge { position: relative; }
.pay-rate-badge summary { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-secondary); font-size: 12px; cursor: pointer; list-style: none; }
.pay-rate-badge summary::-webkit-details-marker { display: none; }
.pay-rate-badge summary strong { color: var(--primary); font-variant-numeric: tabular-nums; }
.pay-rate-popover { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: min(340px, calc(100vw - 32px)); padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-secondary); box-shadow: 0 12px 30px #10243a26; color: var(--text-primary); font-size: 13px; line-height: 1.5; }
.pay-rate-popover p { margin: 0 0 10px; }
.pay-rate-popover a { color: var(--primary); font-weight: 650; }
.pay-rate-badge[data-rate-state="estimated"] summary::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pay-rate-badge[data-rate-state="missing"] summary { border-color: var(--primary); }
.pay-rate-large { display: block; font-size: 19px; margin-bottom: 6px; }
.pay-rate-popover input { width: 100%; margin-top: 4px; }
.pay-rate-popover output { display: block; min-height: 1.5em; margin: 4px 0 8px; font-weight: 700; }
.earned-hours-link { border: 0; padding: 0; background: none; color: var(--primary); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.sidebar-caption.earned-hours-link { display: block; text-align: left; }
.earned-hours-dialog { width: min(660px, calc(100vw - 28px)); max-width: none; max-height: calc(100dvh - 28px); padding: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-secondary); color: var(--text-primary); }
.earned-hours-dialog::backdrop { background: #101e30aa; }
.earned-hours-content { display: flex; flex-direction: column; justify-content: center; gap: 16px; width: min(100%, 660px); min-height: min(460px, 85dvh); margin: auto; padding: clamp(18px, 4vw, 36px); }
.earned-hours-content h2, .earned-hours-content .eyebrow, .earned-hours-content footer { margin: 0; }
.earned-hours-content header, .earned-hours-content footer, .earned-hours-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.earned-hours-content header { justify-content: space-between; }
.earned-hours-body { touch-action: pan-y; line-height: 1.55; font-size: 17px; }
.earned-hours-body p { margin: 0 0 10px; }
.earned-hours-body ol { padding-left: 1.4em; }
.earned-hours-body li + li { margin-top: .55em; }
.earned-hours-art { --tone: #e3f4ea; --ink: #1d6b4f; display: grid; place-items: center; gap: 2px; min-height: 140px; margin-bottom: 18px; border-radius: 18px;
  background: var(--tone); color: var(--ink); font-weight: 800; font-size: clamp(34px, 7vw, 54px); line-height: 1.1; text-align: center; }
.earned-hours-art small { font-size: 15px; font-weight: 700; letter-spacing: .02em; opacity: .8; }
.earned-hours-dialog[data-tone="sun"] .earned-hours-art { --tone: #fff3d6; --ink: #8a5a00; }
.earned-hours-dialog[data-tone="sky"] .earned-hours-art { --tone: #e2f0fb; --ink: #1f5d8c; }
.earned-hours-dialog[data-tone="rose"] .earned-hours-art { --tone: #fde8ec; --ink: #a33a52; }
.earned-hours-content .eyebrow { color: var(--text-secondary); font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.earned-hours-content h2 { font-size: clamp(24px, 4vw, 30px); line-height: 1.2; }
#earned-hours-title:focus { outline: none; }
.earned-hours-fine { color: var(--text-secondary); font-size: 14px; }
.earned-hours-steps { display: grid; gap: 10px; padding: 0 !important; list-style: none; counter-reset: step; }
.earned-hours-steps li { counter-increment: step; position: relative; margin: 0 !important; padding: 12px 14px 12px 54px; border-radius: 14px; background: #f3f7f5; }
.earned-hours-steps li::before { content: counter(step); position: absolute; left: 14px; top: 50%; display: grid; place-items: center; width: 28px; height: 28px;
  margin-top: -14px; border-radius: 50%; background: #2d7256; color: #fff; font-size: 15px; font-weight: 800; }
.earned-hours-content footer .btn { min-height: 44px; font-size: 16px; }
.earned-hours-dots { display: flex; gap: 7px; margin-right: auto; }
.earned-hours-dots i { display: block; width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 50%; }
.earned-hours-dots .is-current { background: currentColor; }
.earned-hours-learn { display: grid; gap: 14px; padding: clamp(22px, 3vw, 32px); }
.earned-hours-learn > h2, .earned-hours-learn > p { margin: 0; }
.earned-hours-learn > h2 { font-size: 22px; line-height: 1.3; }
.earned-hours-learn > p { max-width: 72ch; line-height: 1.6; }
.earned-hours-learn > .eyebrow { font-size: 11px; line-height: 1.6; }
.earned-hours-learn > .earned-hours-actions { margin-top: 2px; }
.earned-hours-learn h3 { margin-top: 18px; }
.earned-hours-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 10px; }
.earned-hours-numbers a { display: grid; gap: 3px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; color: inherit; }
.earned-hours-numbers span { font-size: 12px; }
.earned-hours-coach { position: fixed; z-index: 25; right: 16px; bottom: 16px; width: min(350px, calc(100vw - 32px)); padding: 14px; box-shadow: 0 12px 30px #10243a26; }
.earned-hours-resume:not([hidden]) { position: fixed; z-index: 24; right: 16px; bottom: 16px; }
.earned-hours-highlight { outline: 3px solid #399c71; outline-offset: 4px; }
.earned-hours-lens { color: #2d7256; margin: 0 0 12px; font-size: .85rem; font-weight: 650; }
.earned-hours-lens span:first-child { margin-right: .25em; }
.earned-hours-signoff { margin-top: 24px; padding: 16px 0; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: .85rem; }
[id^="purchase-reflection-"]:not([hidden]) { margin: 0 0 16px; padding: 16px; }
/* Today and Paychecks reflections render their own ui-card frame (see CARD_GUIDE.md). */
#purchase-reflection-today:not([hidden]), #purchase-reflection-paychecks:not([hidden]) { margin: 0; padding: 0; }
.weekly-recap { display: grid; gap: 16px; min-width: 0; }
.weekly-recap p { margin: 0; line-height: 1.6; }
.weekly-recap-total { font-size: 16px; }
.weekly-recap-tip { padding: 14px 16px; border-left: 3px solid var(--primary); background: var(--bg-tertiary); border-radius: 0 10px 10px 0; font-size: 14px; }
.welcome-slide .weekly-recap-top { gap: 6px; }
.welcome-slide .weekly-recap-top li { padding: 8px 12px; background: #ffffff0d; color: #d5e4eb; }
.welcome-slide .weekly-recap-top .ui-card-row-head > * { color: inherit; font-size: 14px; }
.welcome-slide .weekly-recap-tip { background: transparent; border-color: var(--tone); padding: 0 0 0 12px; }
.purchase-take-back > p:not(.ui-card-sub) { font-size: 15px; }
.purchase-take-back > a { justify-self: start; font-weight: 650; }
.take-back-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.take-back-progress i { width: 22px; height: 8px; border-radius: 999px; background: var(--border); }
.take-back-progress i.is-done { background: #2d7256; }
.take-back-progress span { margin-left: 6px; color: var(--text-secondary); font-size: 13px; font-weight: 650; }
#purchase-reflection-transaction-review article { padding: 8px 0; border-top: 1px solid var(--border); }
[data-budget-equivalent] { display: block; }
.metric-value.pay-cost-value, .mtd-card-total.pay-cost-value { font-size: clamp(15px, 1.4vw, 18px); }
.pro-kpi .pay-cost-value, .plan-stat .pay-cost-value { font-size: 16px; }
.plan-stat .pay-cost-value, .plan-stat .pay-cost-pair { color: inherit; letter-spacing: inherit; text-transform: none; }
.plan-stat .pay-cost-pair { font-size: inherit; }
#categories-view .category-card-total.pay-cost-value { font-size: 18px; }
#categories-view .category-card-total .pay-cost-pair > strong { max-width: none; }
#categories-view .category-overview-summary .pay-cost-pair { font-size: clamp(23px, 2.3vw, 32px); }
#categories-view .category-overview-summary .pay-cost-pair > strong { font-size: inherit; }
#categories-view .category-overview-summary .pay-cost-pair > strong ~ strong { font-size: .78em; }
.pay-work-legend { margin: 0 0 12px; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
#upcoming-section .pay-work-legend { margin: 0 16px 10px; }
.pay-card-hours { order: 2; flex: 1 0 100%; min-width: 0; color: var(--text-primary); font-size: 12px; font-weight: 750; letter-spacing: -.2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pay-card-hours:empty { display: none; }
.pay-row-amount { font-size: 12px; white-space: normal; }
.pay-row-amount .pay-hours { display: inline; margin: 0; color: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; white-space: nowrap; }
.pay-row-amount .pay-hours:not(:empty)::before { content: ' · '; white-space: pre; }
@media (max-width: 640px) { .pay-card-hours { color: color-mix(in srgb, var(--tone) 80%, #0f172a); font-size: 10px; letter-spacing: -.3px; } .pay-row-amount { font-size: 12px; } }
.pay-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.pay-heading > div { min-width: 0; }
.pay-heading h2, .pay-empty h2 { font-size: 19px; line-height: 1.4; margin: 4px 0 6px; }
.pay-heading p, .pay-empty p { font-size: 13px; color: var(--text-secondary); max-width: 76ch; margin: 6px 0; }
.pay-heading .eyebrow { font-size: 10px; letter-spacing: .12em; color: var(--primary); }
.pay-status { display: inline-block; font-size: 11px; font-weight: 600; vertical-align: middle; padding: 4px 9px; border-radius: 20px; color: var(--text-secondary); background: var(--bg-tertiary); }
.pay-status.is-good, .pay-saved { color: var(--success); }
.pay-status.is-warn { color: var(--danger); }
.pay-tiles, .pay-category-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pay-tiles > div, .pay-category-row > div { min-width: 0; border-radius: 10px; padding: 14px; background: var(--bg-tertiary); }
.pay-tiles strong, .pay-category-row strong { display: block; font-size: 19px; line-height: 1.4; font-weight: 700; margin: 5px 0; overflow-wrap: anywhere; }
.pay-tiles .pay-cost-pair, .pay-category-row .pay-cost-pair { font-size: 16px; margin: 0; }
.pay-tiles small, .pay-category-row small, .pay-costs small, .pay-footer, .pay-chart p { display: block; font-size: 11px; color: var(--text-secondary); line-height: 1.6; }
.pay-hours { display: block; font-size: 11px; font-weight: 400; color: var(--text-secondary); line-height: 1.5; margin-top: 4px; white-space: normal; }
.pay-footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.pay-notice { padding: 10px 12px; background: var(--bg-tertiary); border-left: 3px solid var(--primary); font-size: 12px; margin-top: 14px; }
.paycheck-lead .pay-heading p, .paycheck-lead .pay-tiles small, .paycheck-lead .pay-notice, .paycheck-lead .pay-footer { font-size: 14px; line-height: 1.5; }
.paycheck-lead .pay-heading .eyebrow { font-size: 12px; }
.paycheck-lead .pay-status { font-size: 13px; }
.paycheck-lead .pay-tiles strong { font-size: 21px; }
.paycheck-lead:has(.pay-checkin) { padding: 0; border: 0; background: none; }
.pay-checkin { padding: clamp(16px, 2.5vw, 26px); border: 1px solid #d5d0ef; border-radius: 20px; background: linear-gradient(145deg, #f7f3ff, #fff 270px); color: #233446; overflow-wrap: anywhere; }
.pay-checkin-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 22px; }
.pay-checkin-heading > div { flex: 1; min-width: 0; }
.pay-checkin-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 18px; background: #ffdf93; color: #79500a; font-size: 30px; }
.pay-checkin .eyebrow { margin: 0 0 5px; color: #6442a0; font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.pay-checkin h2 { margin: 0; color: #233446; font-size: 24px; line-height: 1.3; }
.pay-checkin-heading p:last-child { margin: 5px 0 0; color: #4a5b70; font-size: 13px; }
.pay-checkin-badge { margin-left: auto; padding: 8px 12px; border-radius: 99px; background: #fff; color: #6442a0; font-size: 12px; }
.pay-checkin-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pay-dashboard-tile { display: inline-flex; gap: .75rem; align-items: center; padding: .8rem 1rem; font-weight: 700; }
.pay-dashboard-consumption { margin: .5rem 0 0; }
.pay-checkin-tile { display: flex; flex-direction: column; min-width: 0; padding: clamp(14px, 2vw, 20px); border: 1px solid #d8c9ef; border-radius: 16px; background: #f5efff; }
.pay-checkin-tile.is-over { border-color: #efcfaf; background: #fff3e5; }
.pay-checkin-tile.is-cash { border-color: #b7dfd1; background: #eafaef; }
.pay-checkin h3 { margin: 0; color: #233446; font-size: 15px; line-height: 1.5; }
.pay-checkin-tile > strong { display: block; margin: 9px 0; color: #6442a0; font-size: clamp(26px, 3vw, 34px); font-variant-numeric: tabular-nums; line-height: 1.3; }
.pay-checkin-tile.is-over > strong { color: #9c470e; }
.pay-checkin-inflows > summary { cursor: pointer; color: #086958; }
.pay-inflows-title { font-weight: 700; }
.pay-checkin-inflows > summary strong { display: block; margin: 9px 0; font-size: clamp(26px, 3vw, 34px); font-variant-numeric: tabular-nums; line-height: 1.3; }
.pay-inflows-breakdown { margin-top: 10px; }
.pay-inflows-breakdown small { display: block; }
.pay-inflows-breakdown ul { list-style: none; padding: 0; margin: 6px 0 0; }
.pay-inflows-breakdown li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid #b7dfd1; font-size: 13px; }
.pay-inflows-breakdown li span { min-width: 0; overflow-wrap: anywhere; }
.pay-inflows-breakdown li b { white-space: nowrap; }
.pay-checkin-history { margin-top: auto; padding: 10px 12px; border: 1px solid #23344624; border-radius: 10px; background: #ffffffa6; font-size: 13px; }
.pay-checkin-tile:has(> .pay-checkin-history) > :nth-last-child(2) { margin-bottom: 12px; }
.pay-calculation > summary { cursor: pointer; font-weight: 650; }
.pay-checkin-history b { font-size: 16px; font-variant-numeric: tabular-nums; }
.pay-checkin-history summary { cursor: pointer; }
.pay-checkin-history summary small { display: inline; }
.pay-checkin-history summary b { display: inline-block; margin-left: .4em; }
.pay-checkin-history-empty { color: #4a5b70; }
.pay-checkin p { font-size: 14px; line-height: 1.6; }
.pay-checkin-tile p { margin: 0 0 8px; }
.pay-checkin small { display: block; color: #4a5b70; font-size: 12px; line-height: 1.6; }
.pay-checkin-payday { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; padding: 4px; color: #4a5b70; }
.pay-checkin-payday > span:last-child { margin-left: auto; }
.pay-checkin-expected { margin: 0; padding: 4px; color: #4a5b70; font-size: 13px; }
.pay-checkin-next { padding: 12px 16px; border-left: 3px solid #bca3df; border-radius: 0 8px 8px 0; background: #f8f5fe; }
.pay-checkin-step { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 12px; background: #eee5ff; color: #6442a0; font-weight: 750; }
.pay-checkin-next > div { min-width: 0; flex: 1; }
.pay-checkin-next p { color: #4a5b70; margin: 4px 0; }
.pay-checkin-next .btn { min-height: 48px; max-width: 100%; padding: 12px 18px; border-radius: 16px; background: #6442a0; color: #fff; white-space: normal; text-align: center; }
.pay-checkin a { color: #6442a0; text-underline-offset: 3px; }
.pay-checkin-bottom { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 20px; margin-top: 8px; }
.pay-checkin-bottom:has(details[open]) { display: block; }
.pay-checkin-details { color: #4a5b70; font-size: 13px; }
.pay-checkin-details > summary { display: flex; align-items: center; gap: 6px; min-height: 40px; cursor: pointer; color: #6442a0; }
.pay-checkin-footer { font-size: 13px; }
.pay-checkin-footer a, .pay-checkin-details a { display: inline-flex; align-items: center; min-height: 48px; }
.pay-checkin :is(a, button, summary):focus-visible { outline: 3px solid #6442a0; outline-offset: 4px; border-radius: 8px; }
.pay-checkin.is-compact { padding: 14px 18px; border-radius: 18px; }
.pay-checkin.is-compact .pay-checkin-heading { gap: 10px; margin-bottom: 10px; }
.pay-checkin.is-compact .pay-checkin-icon { width: 34px; height: 34px; border-radius: 12px; font-size: 22px; }
.pay-checkin.is-compact h2 { font-size: 18px; }
.pay-checkin.is-compact .eyebrow, .pay-checkin.is-compact .pay-checkin-badge { display: none; }
.pay-checkin.is-compact .pay-checkin-heading p:last-child { margin: 2px 0 0; font-size: 11px; }
.pay-checkin.is-compact .pay-checkin-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pay-checkin.is-compact .pay-checkin-tile { padding: 10px 12px; border-radius: 12px; }
.pay-checkin.is-compact .pay-checkin-tile h3, .pay-checkin.is-compact .pay-inflows-title { font-size: 12px; }
.pay-checkin.is-compact .pay-checkin-tile > strong, .pay-checkin.is-compact .pay-checkin-inflows > summary strong { margin: 4px 0; font-size: clamp(18px, 2vw, 24px); }
.pay-checkin.is-compact .pay-checkin-tile p, .pay-checkin.is-compact .pay-checkin-tile small { font-size: 11px; line-height: 1.4; margin: 0; }
.pay-checkin.is-compact .pay-checkin-tile p { display: none; }
.pay-checkin.is-compact .pay-checkin-tile:not(.is-cash) small { display: none; }
.pay-checkin.is-compact .pay-checkin-payday { margin: 8px 0 0; font-size: 12px; }
.pay-checkin.is-compact .pay-checkin-details { margin-top: 0; padding-top: 0; }
.pay-checkin.is-compact .pay-checkin-details > summary { min-height: 40px; font-size: 12px; }
.pay-checkin.is-compact .pay-checkin-footer { margin-top: 0; }
.pay-checkin.is-compact .pay-checkin-footer a { min-height: 32px; font-size: 12px; }
.pay-checkin.is-compact .pay-checkin-bottom { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 16px; }
.pay-checkin.is-compact .pay-checkin-details { flex: 1; min-width: min(100%, 220px); }
.pay-checkin.is-compact .pay-checkin-footer { flex: none; padding-top: 4px; }
.pay-checkin.is-compact .pay-checkin-bottom:has(details[open]) { display: block; }
#paycheck-analytics { margin: 0; }
#paycheck-analytics > .pay-work-legend { display: none; }
#paycheck-analytics .pay-monthly { border: 0; margin: 0; padding: 0; }
.pay-consumption { display: grid; gap: 22px; }
.pay-consumption > .pay-heading { margin: 0; }
.pay-consumption .pay-tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.pay-consumption .pay-tiles > div { display: grid; align-content: start; gap: 8px; padding: 18px; }
.pay-consumption .pay-tiles strong { margin: 0; font-size: 22px; }
.pay-consumption .pay-tiles small { font-size: 13px; }
.pay-consumption-chart { display: grid; gap: 16px; margin: 0; padding: clamp(16px, 2vw, 22px); border: 1px solid var(--border); border-radius: 14px; }
.pay-consumption-chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.pay-consumption-chart figcaption small { color: var(--text-secondary); font-size: 12px; font-weight: 500; }
.pay-consumption-bars { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.pay-consumption-column { display: grid; grid-template-columns: 85px minmax(0, 1fr) 110px; align-items: center; gap: 10px 16px; min-width: 0; }
.pay-consumption-month { display: grid; gap: 3px; font-size: 14px; font-weight: 700; }
.pay-consumption-month small { color: var(--text-secondary); font-size: 12px; font-weight: 500; }
.pay-consumption-track { position: relative; height: 20px; background: var(--bg-tertiary); border-radius: 6px; }
.pay-consumption-track > span { display: block; height: 100%; background: #76609a; border-radius: inherit; }
.pay-consumption-column.is-current .pay-consumption-track > span { background: #477d82; }
.pay-consumption-column.is-partial-pay .pay-consumption-track > span { background: repeating-linear-gradient(135deg, #dbeafe 0 5px, #036985 5px 7px); }
.pay-consumption-limit { position: absolute; top: -4px; bottom: -4px; border-left: 2px dashed var(--text-secondary); }
.pay-consumption-percent { display: grid; gap: 3px; text-align: right; font-size: 16px; line-height: 1.4; }
.pay-consumption-percent small { color: var(--text-secondary); font-size: 11px; font-weight: 500; }
.pay-consumption-column.is-over .pay-consumption-percent { color: var(--danger); }
.pay-consumption-chart > p { margin: 0; max-width: 85ch; }
.pay-consumption-breakdown { padding-top: 16px; border-top: 1px solid var(--border); }
.pay-consumption-breakdown > summary { cursor: pointer; font-size: 14px; font-weight: 700; line-height: 1.5; }
.pay-consumption-footer { display: grid; justify-items: start; gap: 12px; }
.pay-consumption-footer > p { margin: 0; }
@media (max-width: 500px) {
  .pay-consumption-column { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .pay-consumption-track { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 600px) {
  .pay-checkin-tiles { grid-template-columns: minmax(0, 1fr); }
  .pay-checkin-badge { margin-left: 0; }
  .pay-checkin-payday > span:last-child { flex-basis: 100%; margin-left: 0; }
  .pay-checkin-next { flex-wrap: wrap; padding: 16px; gap: 10px; }
  .pay-checkin-next > div { flex-basis: 100%; }
  .pay-checkin-next .btn { display: flex; justify-content: center; width: 100%; }
}
.pay-detail { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 22px; }
.pay-detail h2 { font-size: 18px; }
.pay-detail h3 { font-size: 14px; }
.pay-detail p { font-size: 13px; line-height: 1.7; }
.pay-review, .pay-calculation { margin: 24px 0; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-tertiary); }
.pay-review { border-left: 4px solid var(--primary); }
.pay-review h3, .pay-calculation h3 { margin: 0 0 10px; font-size: 17px; }
.pay-review p, .pay-review li, .pay-calculation p, .pay-calculation li, .pay-calculation summary { font-size: 15px; line-height: 1.6; }
.pay-review ul, .pay-calculation ul { padding-left: 22px; }
.pay-review li, .pay-calculation li { margin: 8px 0; overflow-wrap: anywhere; }
.pay-calculation details { margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-secondary); }
.pay-calculation summary { cursor: pointer; font-weight: 700; }
.pay-detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.pay-detail-grid > section { min-width: 0; }
.pay-chart { margin: 16px 0; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(140deg, var(--bg-secondary), var(--bg-tertiary)); }
.pay-chart figcaption { font-size: 13px; font-weight: 700; }
.pay-chart figcaption small { display: block; color: var(--text-secondary); font-size: 11px; font-weight: 400; margin-top: 5px; }
.pay-chart svg { display: block; width: 100%; height: auto; overflow: visible; margin-top: 12px; }
.pay-chart svg text { fill: var(--text-secondary); font-size: 11px; }
.pay-line { fill: none; stroke: var(--primary); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.pay-line.is-projected { stroke-dasharray: 6 5; opacity: .7; }
.pay-zero { stroke: var(--text-secondary); stroke-width: 1; stroke-dasharray: 3 4; }
.pay-cushion-zone { fill: var(--danger); opacity: .07; }
.pay-deposit { fill: var(--success); stroke: var(--bg-secondary); stroke-width: 2; }
.pay-deposit.is-expected { fill: var(--bg-secondary); stroke: var(--success); stroke-dasharray: 2 2; }
.pay-day-strip { display: flex; gap: 3px; min-width: 0; }
.pay-coverage-day { height: 20px; border: 0; padding: 0; border-radius: 3px; flex: 1; background: var(--success); min-width: 0; cursor: pointer; }
.pay-coverage-day:hover, .pay-coverage-day:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.pay-chart-day { fill: transparent; cursor: pointer; }
.pay-chart-day:hover { fill: currentColor; fill-opacity: .08; }
.pay-coverage-day.is-timing_gap { background: #d3a33c; }
.pay-coverage-day.is-shortfall { background: #d77f91; }
.pay-coverage-day.is-red { background: var(--danger); }
.pay-coverage-day.is-red-unknown { background-image: repeating-linear-gradient(135deg, transparent 0 3px, rgba(30, 41, 59, .4) 3px 5px); }
.pay-coverage-day.is-projected { opacity: .5; }
.pay-costs { list-style: none; margin: 0; padding: 0; }
.pay-costs li { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.pay-costs li > span:last-child { text-align: right; }
.pay-costs strong { display: block; font-size: 13px; }
.pay-costs .pay-cost-pair { font-size: 12px; }
.pay-allocation-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.pay-allocation-heading .eyebrow, .pay-commitments > .eyebrow { margin: 0; color: var(--primary); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.pay-allocation-heading h3 { margin: 5px 0; font-size: 20px; letter-spacing: -.4px; }
.pay-allocation-total { text-align: right; }
.pay-allocation-total strong { display: block; color: var(--text-primary); font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.6px; }
.pay-allocation-total small, .pay-allocation-share small { display: block; color: var(--text-secondary); font-size: 10px; font-weight: 400; }
.pay-allocation-strip { display: flex; gap: 3px; height: 10px; overflow: hidden; border-radius: 6px; margin-top: 20px; background: var(--bg-tertiary); }
.pay-allocation-segment, .pay-allocation-card { --allocation-color: #376e9a; --allocation-soft: #edf4fa; }
.pay-allocation-segment:nth-child(4n+2), .pay-allocation-card:nth-child(4n+2) { --allocation-color: #76609a; --allocation-soft: #f3eff8; }
.pay-allocation-segment:nth-child(4n+3), .pay-allocation-card:nth-child(4n+3) { --allocation-color: #846126; --allocation-soft: #f8f3e8; }
.pay-allocation-segment:nth-child(4n+4), .pay-allocation-card:nth-child(4n+4) { --allocation-color: #477d82; --allocation-soft: #edf6f5; }
.pay-allocation-segment.is-saved, .pay-allocation-card.is-saved { --allocation-color: #277151; --allocation-soft: #edf7ef; }
.pay-allocation-segment { background: var(--allocation-color); flex-shrink: 1; min-width: 0; }
.pay-detail .pay-allocation-caption { margin: 10px 0 18px; color: var(--text-secondary); font-size: 11px; }
.pay-allocation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.pay-allocation-card { min-width: 0; padding: 18px; border: 1px solid var(--border); border-top: 3px solid var(--allocation-color); border-radius: 16px; background: linear-gradient(150deg, var(--bg-secondary), var(--allocation-soft)); box-shadow: var(--card-depth); }
.pay-allocation-card-heading { display: flex; align-items: flex-start; gap: 9px; }
.pay-allocation-rank { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px; color: var(--allocation-color); background: var(--allocation-soft); font-size: 10px; font-weight: 750; }
.pay-allocation-card h4 { flex: 1; min-width: 0; margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-primary); overflow-wrap: anywhere; }
.pay-allocation-share { flex: none; text-align: right; color: var(--allocation-color); font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; }
.pay-allocation-value { margin: 18px 0 16px; min-height: 66px; }
.pay-allocation-value strong { display: block; font-size: 19px; line-height: 1.4; letter-spacing: -.3px; font-variant-numeric: tabular-nums; color: var(--text-primary); overflow-wrap: anywhere; }
.pay-allocation-value .pay-cost-pair { font-size: 16px; }
.pay-allocation-card.is-saved .pay-allocation-value strong { color: var(--allocation-color); }
.pay-allocation-value > small { display: block; color: var(--text-secondary); font-size: 12px; line-height: 1.6; margin-top: 4px; }
.pay-allocation-track { height: 5px; background: var(--allocation-soft); border-radius: 5px; overflow: hidden; }
.pay-allocation-track > span { display: block; height: 100%; background: var(--allocation-color); border-radius: inherit; }
.pay-allocation-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 10px; margin-top: 10px; color: var(--text-secondary); font-size: 10px; line-height: 1.6; }
.pay-commitments { padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary)); }
.pay-commitments h3 { margin: 6px 0 16px; font-size: 18px; }
.pay-commitments .btn { max-width: 100%; white-space: normal; text-align: center; }
.pay-allocation-empty { margin-top: 18px; padding: 24px; border: 1px dashed var(--border); border-radius: 16px; background: var(--bg-tertiary); }
.pay-allocation-empty h4 { margin: 0; font-size: 15px; }
.pay-detail .pay-allocation-empty p { margin-bottom: 0; color: var(--text-secondary); }
.pay-history-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.pay-history-card { text-align: left; color: var(--text-primary); background: var(--bg-tertiary); padding: 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; overflow-wrap: anywhere; }
.pay-history-card.is-selected { border-color: var(--primary); }
.pay-history-card strong, .pay-history-card span, .pay-history-card small { display: block; margin: 5px 0; font-size: 12px; }
.pay-history-card strong { font-size: 16px; }
.pay-history-card small { color: var(--text-secondary); font-size: 10px; }
.pay-history-card .pay-history-bar { display: flex; height: 8px; overflow: hidden; border-radius: 6px; background: var(--border); }
.pay-history-bar [data-coverage="covered"] { background: var(--primary); }
.pay-history-bar [data-coverage="timing_gap"] { background: #d3a33c; }
.pay-history-bar [data-coverage="shortfall"] { background: #d77f91; }
[data-paycheck-panel] label { display: flex; flex-direction: column; gap: 6px; color: var(--text-secondary); font-size: 12px; min-width: 0; }
[data-paycheck-panel] select, [data-paycheck-panel] input:not([type=checkbox]) { min-width: 0; max-width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: 7px; color: var(--text-primary); background: var(--bg-tertiary); font: inherit; }
.pay-form-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.pay-form-row label { flex: 1; min-width: 150px; }
.pay-earners { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-bottom: 16px; }
.pay-earners fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 16px; min-width: 0; }
.pay-earners legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.pay-earners label { margin-top: 10px; }
.pay-earners p { font-size: 12px; color: var(--text-secondary); }
[data-paycheck-panel] .pay-confirm { flex-direction: row; align-items: center; margin: 16px 0; }
#paycheck-settings .pay-heading { margin-bottom: 22px; }
#paycheck-settings .pay-heading h2 { font-size: 24px; }
#paycheck-settings .pay-heading p { max-width: 72ch; font-size: 15px; line-height: 1.6; }
#paycheck-settings .pay-heading .eyebrow { font-size: 12px; }
#paycheck-settings > p { max-width: 90ch; margin: 0 0 14px; font-size: 15px; line-height: 1.6; }
#paycheck-settings > .pay-notice { max-width: 100%; margin: 0 0 20px; padding: 14px 16px; }
#paycheck-settings [data-pay-profile] { display: grid; gap: 20px; max-width: 1050px; margin-top: 24px; }
#paycheck-settings .pay-earners { grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 0; }
#paycheck-settings .pay-earners fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; padding: 20px; border-radius: 12px; }
#paycheck-settings .pay-earners legend { padding: 0 8px; color: var(--text-primary); font-size: 16px; }
#paycheck-settings .pay-earners p { grid-column: 1 / -1; margin: 0; font-size: 14px; line-height: 1.6; }
#paycheck-settings .btn-compact { min-height: 44px; padding: 10px 12px; font-size: 14px; line-height: 1.4; }
#paycheck-settings label { gap: 8px; color: var(--text-primary); font-size: 14px; font-weight: 600; line-height: 1.5; }
#paycheck-settings .pay-earners label { margin: 0; }
#paycheck-settings select, #paycheck-settings input:not([type=checkbox]) { min-height: 44px; padding: 10px 12px; font-size: 15px; font-weight: 400; }
#paycheck-settings select:focus-visible, #paycheck-settings input:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
#paycheck-settings .pay-form-row { align-items: stretch; gap: 20px; }
#paycheck-settings [data-pay-profile] > .muted { margin: 0; font-size: 14px; line-height: 1.6; }
#paycheck-settings .pay-confirm { align-items: flex-start; gap: 10px; margin: 0; font-weight: 400; }
#paycheck-settings .pay-confirm input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; }
#paycheck-settings [data-pay-profile] > button { justify-self: start; min-height: 44px; }
#paycheck-settings [data-pay-form-status] { margin: 0; font-size: 14px; line-height: 1.5; }
#paycheck-settings [data-pay-form-status]:empty { display: none; }
.pay-purchase-result { border-left: 3px solid var(--primary); padding: 4px 16px; margin-top: 20px; font-size: 13px; }
@media (max-width: 1000px) { .pay-tiles, .pay-category-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pay-history-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .pay-detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .workspace-bar, .workspace-actions { flex-wrap: wrap; }
  .paycheck-lead .pay-heading h2 { font-size: 20px; }
  [data-paycheck-panel] { padding: 15px; }
  .pay-heading h2 { font-size: 17px; }
  .pay-tiles strong { font-size: 17px; }
  .paycheck-lead .pay-tiles strong { font-size: 19px; }
  .pay-detail-grid { grid-template-columns: 1fr; gap: 16px; }
  .pay-history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay-form-row { flex-direction: column; align-items: stretch; }
  .pay-form-row label { min-width: 0; }
  #paycheck-settings .pay-heading h2 { font-size: 21px; }
  #paycheck-settings .pay-earners fieldset { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; }
  #paycheck-settings [data-pay-profile] > button { justify-self: stretch; }
  .pay-costs li { gap: 10px; }
  .pay-allocation-grid { grid-template-columns: 1fr; }
  .pay-allocation-total { text-align: left; }
  .pay-allocation-value { min-height: 0; }
  .pay-chart, .pay-commitments { padding: 15px; }
}
 .pay-guidelines { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin: 20px 0; }
 .pay-guide { border: 1px solid var(--border-color, #d5dce1); border-radius: 12px; padding: 16px; }
 .pay-guide h3 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
 .pay-guide small { color: var(--text-secondary); }
 .pay-guide-track { position: relative; height: 12px; margin: 14px 0; background: var(--bg-secondary, #e8edf0); border-radius: 6px; }
 .pay-guide-track span { display: block; height: 100%; background: #369c85; border-radius: inherit; }
 .pay-guide.is-review .pay-guide-track span { background: #b7791f; }
 .pay-guide-track i { position: absolute; top: -4px; height: 20px; width: 2px; background: var(--text-primary, #253743); }
.pay-month-hours { margin-block: 1rem; padding: 1rem; border: 1px solid var(--border, #b8c2cc); border-radius: 12px; }
.pay-month-hours-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .5rem; padding-block: .5rem; }
.pay-month-hours-row meter { display: block; width: 100%; }
.pay-month-hours-meter { position: relative; }
.pay-month-hours-gap { position: absolute; top: 30%; height: 40%; background: repeating-linear-gradient(45deg, #a76b21 0 3px, #f8daa4 3px 6px); }
.pay-month-hours-row meter::-webkit-meter-optimum-value { background: currentColor; }
.pay-month-hours-row meter::-moz-meter-bar { background: currentColor; }
.pay-month-hours-income meter { color: #248563; }
.pay-month-hours-spending meter { color: #3c72bd; }
.pay-month-hours-borrowed meter { color: #a76b21; }
.pay-allocation-bar { display: flex; height: .85rem; overflow: hidden; border-radius: .5rem; }
.pay-allocation-bar .is-committed { background: #a76b21; }
.pay-allocation-bar .is-spent { background: #3c72bd; }
.pay-allocation-bar .is-free { background: #248563; }
.paycheck-breakdown { min-width: 0; margin-block: 20px; padding: 20px; border: 1px solid var(--border, #b8c2cc); border-radius: 12px; background: var(--bg-secondary, #fff); overflow-wrap: anywhere; }
.paycheck-breakdown h2 { margin: 0 0 6px; font-size: 19px; }
.paycheck-breakdown p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-secondary, #52637a); }
.paycheck-breakdown-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-block: 18px 12px; font-weight: 650; }
.pay-allocation-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 16px; margin: 18px 0; }
.pay-allocation-legend > div { min-width: 0; }
.pay-allocation-legend dt { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.pay-allocation-legend dt i { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #248563; }
.pay-allocation-legend .is-committed dt i { background: #a76b21; }
.pay-allocation-legend .is-spent dt i { background: #3c72bd; }
.pay-allocation-legend dd { margin: 8px 0 0; font-size: 18px; }
.pay-allocation-help { border-top: 1px solid var(--border, #b8c2cc); padding-top: 12px; }
.pay-allocation-help summary { cursor: pointer; font-size: 13px; font-weight: 650; }
.pay-allocation-help p { margin-top: 10px; }
.paycheck-breakdown .pay-allocation-warning { margin-block: 12px; color: #a52d40; }
