/* Readability refinements for the original page layouts. */
body {
    font-family: "Segoe UI", system-ui, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}
.workspace .page-heading h1, .auth-story h1, .public-hero h1, .public-inner-head h1 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -.025em;
}
.workspace .page-heading p, .workspace .card-heading p, .workspace .sheet-intro p,
.workspace .module-card p, .workspace .kpi-card small, .workspace .data-table td small {
    color: #475f6c;
    line-height: 1.45;
}
.workspace .card-heading p, .workspace .data-table td small,
.workspace .module-card p, .workspace .kpi-card small { font-size: 12px; }
.workspace .data-table { font-size: 13px; }
.workspace .data-table th, .workspace .entry-sheet th { letter-spacing: .045em; }
.workspace .sidebar .nav-link { font-size: 13px; }
.workspace .sidebar .nav-link:not(.active) { color: #d1dfe2; }
.workspace .sidebar .nav-label { color: #b2c8cb; }
.workspace .data-table .number, .workspace .kpi-value { font-variant-numeric: tabular-nums; }
input, select, textarea, .entry-sheet input, .entry-sheet select { font-size: 13px; }
input::placeholder, textarea::placeholder { color: #647a85; }
:where(a, button, select, input, textarea, summary):focus-visible {
    outline: 2px solid #318071;
    outline-offset: 2px;
}
.workflow-card .approval-code { display: block; max-width: 440px; margin: 10px 0; font: 700 15px ui-monospace, monospace; }
.assignment-redeem select { max-width: 230px; }
.assignment-redeem input { max-width: 230px; }

.stock-approval-dialog {
    box-sizing: border-box;
    width: min(28rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: clamp(1rem, 4vw, 1.75rem);
    color: #173342;
    background: #fff;
    border: 1px solid #c9d8d7;
    border-radius: 1rem;
    box-shadow: 0 1rem 4rem #142f4355;
}
.stock-approval-dialog::backdrop { background: #10263399; }
.stock-approval-dialog .button-group { display: flex; flex-wrap: wrap; gap: .6rem; }
.stock-approval-dialog [data-stock-pin] { margin-top: 1rem; }
.stock-approval-dialog [data-stock-pin] input { max-width: 9rem; letter-spacing: .25em; }

.auth-page {
    background: radial-gradient(ellipse at top left, #dcece5 0%, transparent 55%), #f3f7f6;
}
.auth-page .auth-form-card { border: 1px solid #d1dfda; }
.auth-page .auth-story { box-shadow: inset 0 0 0 1px #ffffff26; }
.public-hero-motion .hero-visual { filter: drop-shadow(0 14px 24px #17354522); }
@media (prefers-reduced-motion: no-preference) {
    .auth-layout, .public-hero-motion > div:first-child { animation: jpci-enter .5s ease-out both; }
    .public-hero-motion .hero-visual { animation: jpci-enter .6s .08s ease-out both; }
    .stock-approval-dialog[open] { animation: jpci-enter .2s ease-out both; }
}
@keyframes jpci-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stock-approval-dialog [data-approval-dismiss] { margin-top: .85rem; }

/* v9.7 shared record and identity refinements */
.kpi-grid.kpi-five{grid-template-columns:repeat(5,minmax(0,1fr))}.kpi-five .kpi-value{font-size:clamp(1.4rem,2.1vw,2rem)}.kpi-five .kpi-card{min-width:0}.kpi-five small{line-height:1.5}.purchase-payment-summary{display:flex;flex-wrap:wrap;gap:12px 24px;padding:20px 24px;border-top:1px solid var(--line);line-height:1.6}.purchase-payment-summary small{flex-basis:100%}.payment-details summary{cursor:pointer;min-height:32px;padding-top:5px}.payment-details small{white-space:normal;min-width:180px}.auth-links{gap:24px;justify-content:space-between;margin-top:24px}.auth-form-card .notice{overflow-wrap:anywhere}.account-email-form{display:grid;gap:12px}.account-email-form label{margin:0}.account-status{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}.purchase-order .badge{white-space:normal}
@media(max-width:1250px){.kpi-grid.kpi-five{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:850px){.kpi-grid.kpi-five{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.kpi-grid.kpi-five{grid-template-columns:1fr}.auth-links{gap:14px;flex-wrap:wrap}.purchase-payment-summary{padding:16px}}

/* v9.8 retained layout: six project metrics and non-interactive histories */
.sheet-field-help{display:block;max-width:260px;white-space:normal;font-size:11px;font-weight:400;line-height:1.45;margin-top:5px}.recorded{color:var(--text);background:var(--surface-soft)}.history-totals-table td{font-variant-numeric:tabular-nums}.kpi-five{align-items:stretch}.kpi-five .kpi-label{line-height:1.5;min-height:42px}.kpi-five .kpi-value{overflow-wrap:anywhere}

.kpi-grid.kpi-six{grid-template-columns:repeat(3,minmax(0,1fr))}.kpi-six .kpi-label{min-height:42px;line-height:1.5}.kpi-six .kpi-value{font-size:clamp(1.5rem,2.2vw,2rem);overflow-wrap:anywhere}.kpi-six .kpi-card{min-width:0}@media(max-width:1000px){.kpi-grid.kpi-six{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.kpi-grid.kpi-six{grid-template-columns:1fr}}

/* v9.9: retain the shared layout; make project review easier to scan. */
a.project-funding-card{display:block;color:inherit;text-decoration:none;min-width:0;transition:border-color .18s,box-shadow .18s}
a.project-funding-card:hover{border-color:var(--accent);box-shadow:0 6px 20px #142f4314}
a.project-funding-card:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.project-funding-card h3,.project-money-table td{overflow-wrap:anywhere}
.project-spending-details>summary{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;cursor:pointer;list-style:none}
.project-spending-details>summary::-webkit-details-marker{display:none}
.project-spending-details>summary strong{font-size:16px;display:block}
.project-spending-details>summary small{display:block;font-size:12px;color:var(--muted);line-height:1.6;margin-top:6px}
.project-spending-details>summary>span:first-child:before{content:'+';display:inline-block;margin-right:10px;font-weight:700;float:left}
.project-spending-details[open]>summary>span:first-child:before{content:'−'}
.project-posted-total{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700}
.project-review-ledger .card-heading,.project-money-table .table-actions{gap:12px}
.saved-request-choices{margin-top:16px;display:flex;flex-wrap:wrap;gap:10px}
#action-dialog input[name=code]{max-width:12rem;letter-spacing:.3em;font-variant-numeric:tabular-nums}
@media(max-width:600px){.project-spending-details>summary{align-items:flex-start;flex-direction:column;gap:12px;padding:18px}.project-posted-total{text-align:left}.saved-request-choices>*{width:100%;text-align:center}.project-review-ledger .card-heading{align-items:flex-start}.project-money-table{min-width:780px}}
@media(prefers-reduced-motion:reduce){a.project-funding-card{transition:none}}
.project-money-table{min-width:1100px}.project-money-table td:first-child{min-width:165px}.project-money-table td:nth-child(2){min-width:200px}.project-money-table td:nth-child(3){min-width:150px}.project-money-table td:nth-child(5){min-width:220px}

.project-expense-entry-action{padding:0 24px 20px}.project-expense-entry-action .btn{min-height:42px}@media(max-width:600px){.project-expense-entry-action{padding:0 18px 18px}}

/* v9.11: period controls and existing-layout request polish. */
.filter-bar .chosen-month{display:none}.filter-bar.selected-month .chosen-month{display:flex;flex-direction:column;min-width:0}.filter-bar .chosen-month input{min-width:165px}
.jpci-white-lines{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0;contain:strict}
.jpci-white-lines i{position:absolute;width:clamp(100px,19vw,310px);height:2px;background:linear-gradient(90deg,transparent,#fff 22%,#fff 85%,transparent);border-radius:100%;box-shadow:0 0 6px #fff,0 0 16px #ffffff90;opacity:0;transform:rotate(-46deg);animation:jpci-white-streak 12s linear infinite;will-change:transform,opacity}
.jpci-white-lines i:nth-child(1){left:3%;top:20%;animation-delay:-2s}.jpci-white-lines i:nth-child(2){left:35%;top:6%;animation-delay:-8s;animation-duration:16s}.jpci-white-lines i:nth-child(3){left:78%;top:16%;animation-delay:-5s;animation-duration:13s}.jpci-white-lines i:nth-child(4){left:12%;top:74%;animation-delay:-10s;animation-duration:15s}.jpci-white-lines i:nth-child(5){left:70%;top:82%;animation-delay:-4s;animation-duration:17s}.jpci-white-lines i:nth-child(6){left:45%;top:46%;animation-delay:-9s;animation-duration:18s}.jpci-white-lines i:nth-child(7){left:88%;top:58%;animation-delay:-1s;animation-duration:14s}
@keyframes jpci-white-streak{0%{opacity:0;transform:translate(-100px,100px) rotate(-46deg)}14%,68%{opacity:.48}100%{opacity:0;transform:translate(180px,-180px) rotate(-46deg)}}
.auth-layout,.public-page>main,.public-footer{position:relative;z-index:1}.auth-page>.auth-back,.auth-page>.theme-toggle,.public-nav{z-index:2}
.purchase-header-fields{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:22px}.purchase-items input{width:100%;min-width:220px}.purchase-items th:first-child{width:45px}.purchase-items th:last-child{width:70px}.purchase-item-list{margin:8px 0 12px;padding-left:20px;line-height:1.6;max-width:520px}.purchase-item-list li{overflow-wrap:anywhere}.po-price-panel{min-width:220px;max-width:370px}.po-price-panel form{padding:14px 0;display:grid;gap:12px}.po-price-panel label{white-space:normal;overflow-wrap:anywhere}.purchase-request-card .form-actions{flex-wrap:wrap}.badge.paid{background:var(--ui-success-bg);color:var(--ui-success)}.badge.unpaid,.badge.awaiting-price,.badge.partially-paid{background:var(--ui-warning-bg);color:var(--ui-warning)}
@media(max-width:640px){.purchase-header-fields{grid-template-columns:1fr}.purchase-request-card{padding:18px}.purchase-request-card .form-actions .btn{min-height:44px}.filter-bar.selected-month .chosen-month{width:100%}}
@media(prefers-reduced-motion:reduce){.jpci-white-lines i{animation:none;opacity:.18;will-change:auto}}
@media print{.jpci-white-lines{display:none!important}}

.badge.pending-approval{background:var(--ui-warning-bg);color:var(--ui-warning)}

/* v9.11.1: same white streaks behind workspace pages and navigation. */
.workspace .sidebar{isolation:isolate}
.sidebar .jpci-navigation-lines{position:absolute;inset:0;opacity:.3;z-index:0;border-radius:inherit}
.sidebar>.brand,.sidebar>.nav-label,.sidebar>nav,.sidebar>.sidebar-foot{position:relative;z-index:1}
.jpci-navigation-lines i{width:135px;animation-duration:22s}
:root[data-page-hidden] .jpci-white-lines i{animation-play-state:paused}

/* v9.11.2: Purchase Order approval dialog only; existing page grids stay intact. */
#purchase-approval-dialog{width:min(570px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border-radius:18px;overflow:auto;box-shadow:var(--ui-popup-shadow)}
#purchase-approval-dialog::backdrop{background:#071c2680;backdrop-filter:blur(5px)}
.po-approval-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:25px 26px 16px}.po-approval-heading .eyebrow{font-size:9px;letter-spacing:1.5px;margin-bottom:10px}.po-approval-heading [data-po-reference]{letter-spacing:.4px;margin-left:6px;color:var(--ui-muted)}
#purchase-approval-dialog h2{font-size:23px;line-height:1.25;letter-spacing:-.5px;margin:0}.po-approval-heading .icon-btn{flex:none;width:34px;height:34px;color:var(--ui-muted);border:1px solid var(--ui-line);background:var(--ui-inset);margin-top:0}
.po-approval-body{padding:0 26px 22px}#purchase-approval-dialog #purchase-approval-description{font-size:13px;line-height:1.7;margin:0 0 20px;color:var(--ui-muted)}
.po-approval-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.po-approval-choice{display:flex;gap:11px;align-items:flex-start;min-width:0;text-align:left;padding:16px 14px;border:1px solid var(--ui-line-strong);border-radius:12px;color:var(--ui-text);background:var(--ui-raised);transition:border-color .16s,background .16s,box-shadow .16s}.po-approval-choice strong{display:block;font-size:13px;line-height:1.4;margin-bottom:6px}.po-approval-choice small{display:block;color:var(--ui-muted);font-size:11px;line-height:1.55;font-weight:400}.po-choice-icon{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:8px;background:var(--ui-inset);color:var(--ui-accent)}.po-approval-choice:hover,.po-approval-choice.is-selected{background:var(--ui-accent-soft);border-color:var(--ui-accent)}.po-approval-choice:focus-visible{outline:2px solid var(--ui-focus);outline-offset:3px}
#purchase-approval-dialog .po-pin-panel{margin-top:20px;padding:18px;border-radius:12px;border:1px solid var(--ui-line);background:var(--ui-inset)}.po-pin-panel label{font-size:12px;line-height:1.5;color:var(--ui-heading)}.po-pin-panel label small{display:block;font-size:11px;font-weight:400;color:var(--ui-muted);margin-top:4px}.po-pin-controls{display:flex;gap:12px;align-items:stretch;margin-top:13px}.po-pin-controls input{width:135px;min-width:0;flex:0 1 135px;margin:0;min-height:46px;text-align:center;font-size:21px;letter-spacing:.3em;padding:8px 12px}.po-pin-controls .btn{flex:1;min-height:46px;margin:0;white-space:normal;line-height:1.5}.po-pin-panel .notice{font-size:12px;line-height:1.6;margin:14px 0 0}
#purchase-approval-dialog .po-approval-note{font-size:11px;line-height:1.6;color:var(--ui-muted);margin:17px 0 0}.po-approval-footer{padding:17px 26px;display:flex;align-items:center;gap:18px;border-top:1px solid var(--ui-line);background:var(--ui-raised)}.po-approval-footer .btn{flex:none;margin:0}.po-approval-footer small{font-size:11px;line-height:1.6;color:var(--ui-muted)}
@media(max-width:480px){.po-approval-heading{padding:21px 20px 15px}.po-approval-body{padding:0 20px 20px}.po-approval-choices{grid-template-columns:1fr;gap:10px}.po-approval-choice{align-items:center;padding:13px 14px}.po-approval-choice strong{margin-bottom:3px}.po-pin-controls{flex-direction:column}.po-pin-controls input{width:100%;flex:0 0 auto}.po-pin-controls .btn{width:100%}.po-approval-footer{padding:16px 20px;gap:12px;align-items:flex-start}.po-approval-footer small{font-size:10px}#purchase-approval-dialog h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){.po-approval-choice{transition:none}}
/* Purchase Order controls keep the existing page structure and theme. */
.workspace[data-workspace=purchase] .kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.purchase-items{table-layout:fixed;width:100%}.purchase-items th:first-child{width:42px}.purchase-items th:last-child{width:66px}.purchase-items .po-item-amount-column{width:205px}.workspace .purchase-items td{padding:12px 14px}.purchase-items input{min-width:0;width:100%}.purchase-items input[name=item_amount]{font-variant-numeric:tabular-nums}.po-pricing-preview{font-size:12px;line-height:1.6;color:var(--muted);margin:18px 0 0}
.po-saved-line{display:flex;align-items:baseline;justify-content:space-between;gap:16px;min-width:0}.po-saved-line span{overflow-wrap:anywhere;min-width:0}.po-saved-line strong{flex:0 0 auto;font-variant-numeric:tabular-nums;font-size:inherit}.po-incomplete{color:var(--muted)}
.po-payment-register{table-layout:fixed;min-width:840px;width:100%}.po-payment-register th:nth-child(1){width:40%}.po-payment-register th:nth-child(2){width:22%}.po-payment-register th:nth-child(3){width:22%}.po-payment-register th:nth-child(4){width:16%}.po-payment-register td{vertical-align:top;overflow-wrap:anywhere}.po-payment-register select{width:100%;min-height:42px}.po-payment-register .purchase-item-list{margin:14px 0 0;padding-left:18px}.po-supplier-name{font-weight:650;color:var(--text)}
.po-order-editor{display:grid;gap:10px;margin:0 0 10px}.po-order-editor .btn{justify-self:start;min-height:38px}.po-currency-input{display:flex;align-items:center;position:relative}.po-currency-input>span{position:absolute;left:12px;color:var(--muted);pointer-events:none}.po-currency-input input{width:100%;min-width:0;padding-left:30px;font-variant-numeric:tabular-nums}.po-order-editor .notice{margin:0;font-size:12px;padding:10px}.po-payment-details{margin-top:12px}.po-payment-details>summary,.po-payment-register .po-price-panel>summary{cursor:pointer;font-size:12px;line-height:1.5;min-height:32px;padding:6px 0}.po-payment-details small{margin-bottom:8px}.po-payment-register .po-price-panel{margin-top:12px;min-width:0}.po-payment-register .po-price-panel form{padding:0;margin:10px 0;min-width:0}.po-payment-register .po-price-panel label{font-size:11px;overflow-wrap:anywhere}
.po-payment-confirm{width:min(470px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:26px;overflow:auto}.po-payment-confirm h2{margin:0 0 12px}.po-payment-confirm p{line-height:1.7;color:var(--muted);margin-bottom:20px}.po-payment-confirm label{display:grid;gap:9px}.po-payment-confirm textarea{width:100%}.po-payment-confirm .form-actions{gap:12px;justify-content:flex-end;margin-top:24px}.po-payment-confirm .btn{min-height:44px}
@media(max-width:1050px){.purchase-items .po-item-amount-column{width:170px}}
@media(max-width:650px){.workspace[data-workspace=purchase] .kpi-grid{grid-template-columns:1fr}.workspace .purchase-request-card{padding:18px 14px}.purchase-items{min-width:0}.workspace .purchase-items th,.workspace .purchase-items td{padding:10px 5px;letter-spacing:0}.workspace .purchase-items th:first-child{width:32px}.workspace .purchase-items th:last-child{width:32px;font-size:0}.workspace .purchase-items th:last-child:after{content:'×';font-size:12px}.workspace .purchase-items .po-item-amount-column{width:104px}.workspace .purchase-items input{padding:10px 7px;font-size:13px}.workspace .purchase-items th{font-size:9px;white-space:normal}.po-payment-confirm{padding:20px}.po-payment-confirm .form-actions{flex-wrap:wrap}}
.po-payment-register .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.po-payment-register .sr-only{left:0;top:0;clip-path:inset(50%)}

/* v9.12: shared approval surfaces and supplier cash/change detail. */
.jpci-approval-dialog{width:min(570px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--ui-line-strong);border-radius:18px;overflow:auto;box-shadow:var(--ui-popup-shadow);color:var(--ui-text);background:var(--ui-surface)}
.jpci-approval-dialog::backdrop{background:#071c2680;backdrop-filter:blur(5px)}
.jpci-approval-dialog h2{font-size:23px;line-height:1.25;letter-spacing:-.5px;margin:0}
.jpci-approval-dialog .approval-description,.jpci-approval-dialog .po-approval-body>p{font-size:13px;line-height:1.7;margin:0 0 20px;color:var(--ui-muted)}
.jpci-approval-dialog .po-approval-heading .eyebrow span{letter-spacing:.4px;margin-left:6px;color:var(--ui-muted)}
.jpci-approval-dialog .po-pin-panel{margin-top:20px;padding:18px;border-radius:12px;border:1px solid var(--ui-line);background:var(--ui-inset)}
.jpci-approval-dialog .po-approval-note{font-size:11px;line-height:1.6;color:var(--ui-muted);margin:17px 0 0}
.jpci-approval-dialog [data-approval-dismiss]{margin-top:0}
.jpci-approval-dialog .po-pin-controls input{max-width:none}
.jpci-approval-dialog .approval-optional-note{margin-top:14px;color:var(--ui-muted);font-size:12px}.approval-optional-note summary{cursor:pointer;padding:4px 0}.approval-optional-note textarea{width:100%;margin-top:8px}
.approval-action-footer{justify-content:flex-end;flex-wrap:wrap}
.approval-record-card{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--ui-inset);border:1px solid var(--ui-line);border-radius:10px;margin-bottom:20px;overflow-wrap:anywhere}.approval-record-card small{font-size:9px;letter-spacing:1px;color:var(--ui-muted);display:block;margin-bottom:3px}.approval-record-card strong{font-size:13px;display:block}
.jpci-action-dialog #dialog-fields{display:grid;gap:16px}.jpci-action-dialog #dialog-fields>p,.jpci-action-dialog #dialog-fields>.approval-record-card{margin:0}.jpci-action-dialog #dialog-fields label{display:grid;gap:7px;font-size:12px}.jpci-action-dialog textarea{width:100%;min-height:85px}.jpci-action-dialog #dialog-message:not([hidden]){margin-top:18px}
.po-payment-register{min-width:1150px}.po-payment-register th:nth-child(1){width:31%}.po-payment-register th:nth-child(2){width:15%}.po-payment-register th:nth-child(3){width:13%}.po-payment-register th:nth-child(4){width:12%}.po-payment-register th:nth-child(5){width:17%}.po-payment-register th:nth-child(6){width:12%}
.po-payment-register .po-cash-cell>strong{font-size:15px;font-variant-numeric:tabular-nums}.po-payment-register .po-cash-cell>small{margin-top:7px;line-height:1.6}.po-payment-register .po-balance-due{font-weight:600;margin-top:9px}.po-record-payment{margin-top:12px}.po-payment-details small{display:block;line-height:1.7}
.po-payment-confirm.jpci-approval-dialog{padding:0;width:min(570px,calc(100vw - 32px))}.po-payment-confirm .po-approval-body>label{margin-top:18px}.po-payment-confirm label{display:grid;gap:8px;font-size:12px}.po-payment-confirm label small{color:var(--ui-muted);font-size:11px;font-weight:400}.po-payment-confirm input{font-variant-numeric:tabular-nums}.po-payment-confirm textarea{width:100%}
.payment-order-summary,.payment-math{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 20px}.payment-order-summary>div,.payment-math>div{min-width:0;padding:14px;border-radius:10px;background:var(--ui-inset);border:1px solid var(--ui-line)}.payment-order-summary span,.payment-math span{font-size:11px;color:var(--ui-muted);display:block;margin-bottom:6px}.payment-order-summary strong,.payment-math strong{font-size:18px;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.payment-math{margin:16px 0 10px}.payment-math>div:first-child{background:var(--ui-accent-soft)}.payment-math>div:first-child strong{color:var(--ui-accent)}[data-cash-note]{font-size:11px;color:var(--ui-muted);line-height:1.65;display:block}
@media(max-width:480px){.jpci-approval-dialog h2{font-size:21px}.approval-action-footer .btn{min-height:44px}.jpci-approval-dialog .po-approval-footer{flex-wrap:wrap}.jpci-approval-dialog .po-pin-panel{padding:14px}.payment-order-summary,.payment-math{gap:9px}.payment-order-summary>div,.payment-math>div{padding:11px}.payment-order-summary strong,.payment-math strong{font-size:16px}.po-payment-confirm .po-approval-body>label{margin-top:16px}}
.po-payment-register tr.po-row-updated{box-shadow:inset 3px 0 var(--ui-accent)}
.jpci-approval-dialog .po-approval-body>.po-approval-note{margin:17px 0 0;font-size:11px;line-height:1.6;color:var(--ui-muted)}

/* Account mail diagnostics retain the existing card layout and theme. */
.account-mail-check form{margin-top:18px}.account-mail-check .button-group{margin-top:16px}.account-mail-check .notice{margin-top:20px;overflow-wrap:anywhere}.account-mail-check .notice p{margin-top:12px;font-size:12px;line-height:1.7}

/* Account lifecycle controls use the existing workspace palette. */
.account-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}
.account-summary .card{display:flex;flex-direction:column;gap:12px}.account-summary strong{font-size:2rem}.account-summary span{font-size:.8rem;color:var(--muted)}
.account-directory-filters{display:flex;align-items:end;flex-wrap:wrap;gap:14px}.account-directory-filters label{flex:1 1 140px;margin:0}.account-directory-filters label:has(input){flex:2 1 210px}
.account-directory .card-heading{gap:16px;flex-wrap:wrap}.account-directory .card-heading p{margin:8px 0 0}.account-directory td:first-child{min-width:210px;overflow-wrap:anywhere}.account-directory td:last-child{min-width:180px}.account-directory .table-actions{flex-wrap:wrap;gap:8px}
.account-pagination{display:flex;align-items:center;justify-content:center;gap:16px;padding:18px}.account-invite-form{max-width:840px}
@media(max-width:900px){.account-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.account-summary{gap:10px}.account-summary .card{padding:16px}.account-summary strong{font-size:1.6rem}.account-directory-filters .btn{flex:1}.account-directory-toolbar{padding:16px}}
