/* pages.css: Signed-in app pages, after core.css. Sections keep the order the pages relied on. */

/* ---- equipment ---- */
.equipment-page {--eq-ink:#41465b;--eq-muted:#62677a;--eq-line:#e7e3ed;color:var(--eq-ink);min-width:0;}
.equipment-page h1,.equipment-page h2,.equipment-page h3,.equipment-page p,.equipment-page dd {overflow-wrap:anywhere;}
.equipment-page h2 {font:700 23px/1.3 var(--display);letter-spacing:-.5px;}
.equipment-page h3 {font:700 18px/1.4 var(--display);letter-spacing:-.3px;}
.equipment-page p {line-height:1.65;}
.equipment-optional>summary {cursor:pointer;min-height:44px;padding:10px 0;font-weight:700;font-size:18px;}
.equipment-optional>summary small {font-weight:400;font-size:14px;}
.equipment-optional[open]>.form-grid {padding-top:18px;}
.equipment-page .button {min-height:44px;font-size:14px;white-space:normal;text-align:center;}
.equipment-page a:focus-visible,.equipment-page button:focus-visible,.equipment-page summary:focus-visible {outline:3px solid #655093;outline-offset:4px;}
.garage-tabs {display:flex;flex-wrap:wrap;gap:5px;max-width:100%;width:max-content;padding:5px;background:#ece8f3;border-radius:14px;margin:-7px 0 26px;}
.garage-tabs a {display:flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;max-width:100%;padding:10px 20px;font-weight:600;border-radius:10px;color:#5e5873;text-align:center;white-space:normal;overflow-wrap:anywhere;}
.garage-tabs a[aria-current="page"] {background:#fff;color:#4d5177;box-shadow:0 3px 10px #4945600a;}
@media(max-width:540px){.garage-tabs{width:100%;gap:3px;padding:4px;}.garage-tabs a{flex:1 1 auto;padding:10px 7px;font-size:14px;}}
.equipment-tabs {display:flex;gap:5px;max-width:100%;width:max-content;padding:5px;background:#ece8f3;border-radius:14px;margin:-7px 0 26px;}
.equipment-tabs a {padding:11px 24px;font-weight:600;border-radius:10px;color:#5e5873;}
.equipment-tabs a[aria-current="page"] {background:#fff;color:#4d5177;box-shadow:0 3px 10px #4945600a;}
.equipment-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;}
.equipment-card {overflow:hidden;min-width:0;}
.equipment-art {position:relative;display:grid;place-items:center;aspect-ratio:1.75;background:#eeeaf7;color:#8581af;overflow:hidden;}
.equipment-card:nth-child(3n+2) .equipment-art {background:#e6f0eb;color:#729889;}
.equipment-card:nth-child(3n+3) .equipment-art {background:#f8ece2;color:#ac9076;}
.equipment-art>svg {width:62px;height:62px;stroke-width:1.2;}
.equipment-art img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.equipment-kind,.equipment-archived-tag {position:absolute;top:14px;left:14px;background:#ffffffed;padding:6px 10px;border-radius:9px;font-size:12px;font-weight:600;color:#5d5a75;}
.equipment-archived-tag {left:auto;right:14px;background:#f5eddf;color:#785f3e;}
.equipment-card-body {padding:22px;}
.equipment-card h2 {margin:0 0 6px;}
.equipment-card-body>p {margin:0;min-height:25px;font-size:14px;color:var(--eq-muted);}
.equipment-card-reading {display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:20px 0;margin:12px 0 15px;border-block:1px solid var(--eq-line);}
.equipment-card-reading span {font-size:13px;color:var(--eq-muted);}
.equipment-card-reading strong {font:700 18px var(--display);text-align:right;}
.equipment-card-links {display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px;font-weight:600;color:#646799;}
.equipment-card-links a {padding-block:8px;}
.equipment-footnote {margin:26px 0 12px;color:var(--eq-muted);font-size:14px;}
.equipment-text-link {color:#5e6295;text-decoration:underline;text-underline-offset:4px;font-size:14px;font-weight:600;}
.equipment-empty {padding:48px 25px;text-align:center;}
.equipment-empty-icon {display:grid;place-items:center;width:74px;height:74px;margin:0 auto 22px;border-radius:22px;background:#eeebf8;color:#8981b5;}
.equipment-empty-icon svg {width:34px;height:34px;}
.equipment-empty h2 {margin:0 0 12px;}
.equipment-empty p {max-width:600px;margin:0 auto 24px;color:var(--eq-muted);}
.equipment-empty small {display:block;max-width:600px;margin:24px auto 0;color:var(--eq-muted);font-size:13px;line-height:1.6;}
.equipment-back {display:inline-block;margin-bottom:20px;color:#686a91;font-size:14px;font-weight:600;overflow-wrap:anywhere;}
.equipment-actions {display:flex;gap:10px;flex-wrap:wrap;}
.equipment-notice {display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px;padding:23px 26px;border:1px solid #e9dcc4;border-radius:18px;background:#fcf6ec;}
.equipment-notice h2 {font-size:19px;margin:0 0 6px;}
.equipment-notice p {margin:0;color:#716451;font-size:14px;}
.equipment-notice form {flex-shrink:0;}
.equipment-overview {display:grid;grid-template-columns:minmax(180px,.75fr) minmax(0,1.25fr);overflow:hidden;}
.equipment-detail-art {display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:250px;position:relative;overflow:hidden;background:#eeebf5;color:#928aa9;}
.equipment-detail-art>svg {width:75px;height:75px;stroke-width:1.1;}
.equipment-detail-art>span {font-size:13px;margin-top:17px;color:var(--eq-muted);}
.equipment-detail-art img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.equipment-overview-body {min-width:0;padding:27px 32px;}
.equipment-private {display:block;color:var(--eq-muted);font-size:12px;font-weight:600;margin-bottom:22px;}
.equipment-current>span,.equipment-current>strong {display:block;}
.equipment-current>span {font-size:14px;color:var(--eq-muted);}
.equipment-current>strong {font:700 clamp(25px,3vw,36px)/1.3 var(--display);margin-top:4px;overflow-wrap:anywhere;}
.equipment-meter-form {display:flex;align-items:flex-end;gap:10px;margin-top:20px;max-width:400px;}
.equipment-meter-form .field {min-width:0;flex:1;}
.equipment-meter-form .button {flex-shrink:0;margin-bottom:0;}
.equipment-page .equipment-help {font-size:14px;color:var(--eq-muted);line-height:1.6;}
.equipment-stat-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0;}
.equipment-stat-grid>article {padding:22px;min-width:0;}
.equipment-stat-grid span,.equipment-stat-grid strong,.equipment-stat-grid small {display:block;}
.equipment-stat-grid span {font-size:14px;color:var(--eq-muted);}
.equipment-stat-grid strong {font:700 28px/1.3 var(--display);margin-top:8px;overflow-wrap:anywhere;}
.equipment-stat-grid small {font-size:12px;color:var(--eq-muted);line-height:1.5;margin-top:8px;}
.equipment-details {padding:22px 26px;margin-bottom:25px;}
.equipment-details summary {cursor:pointer;font-weight:600;padding-block:3px;}
.equipment-details>div {padding-top:18px;}
.equipment-facts {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:0;}
.equipment-facts dt,.equipment-due-facts dt {font-size:13px;color:var(--eq-muted);}
.equipment-facts dd,.equipment-due-facts dd {font-size:15px;font-weight:600;margin:6px 0 0;}
.equipment-notes {white-space:pre-wrap;color:var(--eq-muted);font-size:14px;overflow-wrap:anywhere;}
.equipment-section {margin-top:24px;overflow:hidden;}
.equipment-section-heading {display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 26px;}
.equipment-section-heading h2 {margin:0 0 6px;}
.equipment-section-heading p {margin:0;font-size:14px;color:var(--eq-muted);}
.equipment-section-heading>.button {flex-shrink:0;}
.equipment-schedule {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:0 26px 20px;}
.equipment-interval {min-width:0;border:1px solid var(--eq-line);border-radius:16px;padding:21px;background:#fdfcfe;}
.equipment-interval-top {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.equipment-interval-top>span:last-child {font-size:12px;color:var(--eq-muted);overflow-wrap:anywhere;}
.equipment-status {display:inline-block;width:max-content;max-width:100%;padding:5px 9px;border-radius:9px;font-size:12px;font-weight:600;background:#eeeaf7;color:#71648d;}
.equipment-status.overdue {background:#f8e5e3;color:#99554e;}
.equipment-status.soon {background:#fcf0db;color:#80602f;}
.equipment-status.later {background:#e6f1ec;color:#456c5a;}
.equipment-interval h3 {margin:16px 0 7px;}
.equipment-interval-frequency {margin:0;color:var(--eq-muted);font-size:13px;}
.equipment-due-facts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:21px 0;}
.equipment-due-facts small {display:block;margin-top:4px;color:var(--eq-muted);font-size:12px;line-height:1.5;}
.equipment-unknown {padding:11px 13px;border-radius:10px;background:#f2eff8;color:#736486;font-size:13px;}
.equipment-interval-actions {display:flex;align-items:center;gap:18px;flex-wrap:wrap;border-top:1px solid var(--eq-line);padding-top:17px;margin-top:18px;}
.equipment-remove {border:0;padding:10px 0;background:none;color:#925e61;text-decoration:underline;text-underline-offset:4px;cursor:pointer;font-size:14px;}
.equipment-section-note {font-size:13px;color:var(--eq-muted);background:#f6f4f9;border-top:1px solid var(--eq-line);margin:0;padding:18px 26px;}
.equipment-section-empty {text-align:center;padding:24px 26px 42px;}
.equipment-section-empty h3 {margin:0 0 8px;}
.equipment-section-empty p {max-width:600px;margin:0 auto;font-size:14px;color:var(--eq-muted);}
.equipment-record {display:grid;grid-template-columns:132px minmax(0,1fr) auto;gap:24px;padding:25px 26px;border-top:1px solid var(--eq-line);}
.equipment-record-date strong {display:block;font-size:14px;margin-bottom:11px;}
.equipment-record-body h3 {margin:0 0 5px;}
.equipment-record-body>p {margin:0;color:var(--eq-muted);font-size:14px;}
.equipment-record-facts {display:flex;align-items:center;gap:18px 30px;flex-wrap:wrap;margin-top:16px;}
.equipment-record-facts small,.equipment-record-facts strong {display:block;}
.equipment-record-facts small {font-size:12px;color:var(--eq-muted);margin-bottom:4px;}
.equipment-record-facts strong {font-size:15px;}
.equipment-record-actions {display:flex;align-items:flex-start;gap:15px;}
.equipment-record-actions a {padding-block:10px;}
.equipment-record-notes {margin-top:10px;}
.equipment-record-notes summary {cursor:pointer;color:#696788;font-size:13px;}
.equipment-pagination {display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:18px;padding:23px;border-top:1px solid var(--eq-line);font-size:14px;}
.equipment-bottom-actions,.equipment-bottom-actions>div {display:flex;align-items:center;gap:20px;flex-wrap:wrap;}
.equipment-bottom-actions {justify-content:space-between;margin:24px 0 0;}
.equipment-form-page {max-width:920px;margin:0 auto;}
.equipment-form {padding:30px;}
.equipment-form-section+ .equipment-form-section {border-top:1px solid var(--eq-line);padding-top:26px;margin-top:28px;}
.equipment-form-section h2 {font-size:21px;margin:0 0 19px;}
.equipment-form-section>.equipment-help {margin:0 0 19px;}
.equipment-form-section .form-grid+ .equipment-help {margin:17px 0 0;}
.equipment-page .form-grid {gap:23px 22px;}
.equipment-page .field {min-width:0;font-size:14px;}
.equipment-page .field>span {font-size:14px;}
.equipment-page .field input,.equipment-page .field select,.equipment-page .field textarea {width:100%;max-width:100%;min-width:0;font-size:16px;line-height:1.5;min-height:46px;}
.equipment-page .field textarea {resize:vertical;}
.equipment-page .field input[type="file"] {font-size:14px;padding:10px;height:auto;overflow:hidden;}
.equipment-page .field input[type="file"]::file-selector-button {padding:5px 8px;border:0;border-radius:7px;background:#e8e3f2;color:#575273;font:inherit;margin-right:8px;}
.equipment-page .field small {font-size:12px;line-height:1.6;font-weight:400;}
.equipment-page .field>small {display:block;margin-top:6px;color:var(--eq-muted);}
.equipment-page .field select:disabled {color:#6e6b7c;background:#f1eef5;opacity:1;}
.equipment-form-actions {display:flex;justify-content:flex-end;gap:12px;border-top:1px solid var(--eq-line);padding-top:25px;margin-top:30px;}
.equipment-existing-file {display:flex;align-items:center;flex-wrap:wrap;gap:18px;padding:16px;border:1px solid var(--eq-line);border-radius:12px;background:#f9f7fc;}
.equipment-existing-file img {width:80px;height:65px;border-radius:8px;object-fit:cover;}
.equipment-check {display:flex;align-items:center;gap:10px;font-size:14px;}
.equipment-check input {width:18px;height:18px;flex-shrink:0;}
.equipment-errors {margin-bottom:24px;padding:20px 24px;border:1px solid #e7c7c3;border-radius:15px;background:#fff3f0;color:#93584e;}
.equipment-errors h2 {font-size:19px;margin:0 0 10px;}
.equipment-errors ul {margin:0;padding-left:22px;}
.equipment-errors li {margin-top:7px;font-size:14px;line-height:1.5;}
.equipment-errors p {font-size:13px;margin:12px 0 0;}
.equipment-page [hidden] {display:none!important;}
/* Only standalone equipment actions grow on phones; links inside explanatory
   prose and native checkbox controls retain their existing layout. */
@media(max-width:900px){
    .equipment-card-links a{gap:4px}
    .equipment-card-links a,.equipment-back,
    .equipment-interval-actions .equipment-text-link,
    .equipment-record-facts .equipment-text-link,
    .equipment-record-actions .equipment-text-link,
    .equipment-bottom-actions .equipment-text-link,
    .equipment-remove{
        display:inline-flex;align-items:center;min-width:44px;min-height:44px;
    }
    .equipment-details>summary,.equipment-record-notes>summary{
        min-height:44px;padding-block:10px;
    }
}
@media(max-width:1200px){.equipment-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.equipment-record{grid-template-columns:120px minmax(0,1fr);}.equipment-record-actions{grid-column:2;}.equipment-overview-body{padding:25px;}}
@media(max-width:760px){.equipment-stat-grid{gap:12px;}.equipment-stat-grid>article{padding:18px;}.equipment-stat-grid strong{font-size:24px;}.equipment-schedule{grid-template-columns:minmax(0,1fr);}.equipment-facts{grid-template-columns:minmax(0,1fr);gap:18px;}.equipment-overview{grid-template-columns:minmax(0,1fr);}.equipment-detail-art{min-height:220px;max-height:300px;aspect-ratio:2.2;}.equipment-form{padding:24px;}.equipment-notice{align-items:flex-start;flex-direction:column;}}
@media(max-width:540px){.equipment-grid,.equipment-stat-grid{grid-template-columns:minmax(0,1fr);}.equipment-stat-grid{gap:10px;}.equipment-stat-grid>article{padding:18px 21px;}.equipment-stat-grid strong{font-size:27px;}.equipment-tabs{width:100%;}.equipment-tabs a{flex:1;text-align:center;padding-inline:14px;}.equipment-empty{padding:35px 22px;}.equipment-actions{width:100%;}.equipment-actions>.button{flex:1;}.equipment-overview-body{padding:22px;}.equipment-section-heading{align-items:flex-start;flex-direction:column;padding:22px;}.equipment-section-heading>.button{width:100%;}.equipment-schedule{padding:0 18px 18px;}.equipment-interval{padding:18px;}.equipment-section-note{padding:17px 22px;}.equipment-record{grid-template-columns:minmax(0,1fr);gap:17px;padding:22px;}.equipment-record-date{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;}.equipment-record-date strong{margin:0;}.equipment-record-actions{grid-column:auto;gap:25px;}.equipment-bottom-actions{align-items:flex-start;flex-direction:column;gap:12px;}.equipment-form{padding:22px 18px;}.equipment-form-page .page-intro h1{font-size:29px;}.equipment-form .form-grid{grid-template-columns:minmax(0,1fr);}.equipment-form .field-span-2{grid-column:auto;}.equipment-form-actions{flex-direction:column-reverse;gap:10px;}.equipment-form-actions>.button{width:100%;min-height:48px;}.equipment-errors{padding:20px;}.equipment-meter-form{gap:8px;}.equipment-meter-form>.button{padding-inline:12px;}.equipment-due-facts{gap:12px;}.equipment-interval-actions{gap:15px;}.equipment-details{padding:21px;}}

/* ---- fuel-corrections ---- */
/* B10a derived fuel context. No changes to entry controls or modal scrolling. */
.fuel-distance-review {display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 24px; padding: 20px 23px; border: 1px solid #edddce; border-radius: 16px; background: #fff6ed; color: #684a32;}
.fuel-distance-review h2 {margin: 0 0 6px; font: 700 18px/1.4 var(--display); color: #67472f; letter-spacing: -.25px;}
.fuel-distance-review p {max-width: 820px; margin: 0; color: #70573f; font-size: 14px; line-height: 1.7;}
.fuel-distance-review > a {flex-shrink: 0; min-height: 44px;}
.fuel-distance-source, .fuel-calculation-status {display: block; margin-top: 5px; color: #655c70; font-size: 12px; line-height: 1.55; white-space: normal;}
.fuel-calculation-note {display: block; width: 250px; max-width: 100%; margin-top: 7px; color: #745338; font-size: 12px; line-height: 1.65; white-space: normal; overflow-wrap: anywhere;}
.household-record .fuel-calculation-context {margin: 16px 0 0; padding: 13px 16px; border-radius: 11px; background: #fff5eb; border: 1px solid #f0dfcc;}
.household-record .fuel-calculation-context .fuel-calculation-status {margin: 0; color: #67472f; font-size: 14px; font-weight: 700;}
.household-record .fuel-calculation-context .fuel-calculation-note {width: auto; margin-top: 5px; font-size: 14px;}
.household-facts .fuel-distance-source {margin-top: 3px; font-weight: 400;}
.household-page .field .fuel-reading-help, .field .fuel-reading-help, .fuel-reading-help {color: #665d71; font-size: 13px; line-height: 1.65; white-space: normal;}
@media (max-width: 600px) {
    .fuel-distance-review {align-items: flex-start; flex-direction: column; gap: 13px; padding: 18px;}
    .fuel-distance-review h2 {font-size: 18px;}
    .fuel-distance-review p {font-size: 14px;}
    .fuel-distance-review > a {align-self: flex-start;}
}

/* ---- vin-lookup ---- */
/* Optional vehicle-form assistance; no global or landing-page overrides. */
#vehicle-vin-help {color: #62596f; font-size: 13px; line-height: 1.5;}
.vin-lookup {min-width: 0; border: 1px solid #ded6ec; border-radius: 12px; background: #f9f7fc; color: #40394c;}
.vin-lookup > summary {min-height: 48px; padding: 14px 16px; cursor: pointer; font-size: 14px; font-weight: 700; line-height: 1.5;}
.vin-lookup > summary span {margin-left: 6px; color: #62596f; font-size: 12px; font-weight: 400;}
.vin-lookup > summary:focus-visible, .vin-lookup .button:focus-visible, .vin-lookup-option:has(input:focus-visible) {outline: 3px solid #8971b3; outline-offset: 3px;}
.vin-lookup-body {padding: 0 16px 16px;}
.vin-lookup-body p {margin: 0 0 12px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere;}
.vin-lookup-body .vin-lookup-note, .vin-lookup .field small {color: #62596f; font-size: 13px; line-height: 1.5;}
.vin-lookup-controls {display: flex; align-items: flex-start; flex-wrap: wrap; gap: 14px; margin-top: 18px;}
.vin-lookup-controls .field {flex: 1 1 210px;}
.vin-lookup-controls > .button {margin-top: 27px;}
.vin-lookup .button {min-height: 46px; max-width: 100%; white-space: normal; line-height: 1.4; text-align: center; color: #514066; border: 1px solid #c4b5d8; background: #fff; font-size: 14px;}
.vin-lookup button, .vin-lookup input {scroll-margin-block: 140px;}
.vin-lookup .button:disabled {cursor: default; opacity: 1; color: #6b6574; background: #eeeaf3; border-color: #d5cddd; box-shadow: none;}
.vin-lookup-body .vin-lookup-status {margin: 14px 0 0;}
.vin-lookup-status:empty {display: none;}
.vin-lookup[data-state="error"] .vin-lookup-status {color: #8a3942;}
.vin-lookup-results {margin-top: 18px; padding-top: 16px; border-top: 1px solid #ded6ec;}
.vin-lookup [hidden] {display: none !important;}
.vin-lookup-body .vin-lookup-source {color: #62596f; font-size: 12px;}
.vin-lookup fieldset {min-width: 0; margin: 0 0 16px; padding: 0; border: 0;}
.vin-lookup legend {padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 15px;}
.vin-lookup-options {display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px;}
.vin-lookup-option {display: flex; min-width: 0; gap: 10px; padding: 12px; border: 1px solid #e1dbea; border-radius: 9px; background: #fff; cursor: pointer;}
.vin-lookup-option > input {flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: #705391;}
.vin-lookup-option > span {min-width: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5;}
.vin-lookup-option strong, .vin-lookup-option small {display: block;}
.vin-lookup-option small {margin-top: 3px; color: #62596f; font-size: 12px;}
.vin-lookup-option:has(input:checked) {border-color: #a48bc5; background: #f4effb;}
@media (max-width: 640px) {
    .vin-lookup button, .vin-lookup input {scroll-margin-block: 12px;}
    .vin-lookup > summary, .vin-lookup-body {padding-left: 13px; padding-right: 13px;}
    .vin-lookup-controls {flex-direction: column; align-items: stretch;}
    .vin-lookup-controls .field {flex: 0 1 auto;}
    .vin-lookup-controls > .button {margin-top: 0;}
    .vin-lookup-options {grid-template-columns: minmax(0,1fr);}
    .vin-lookup-results > .button {width: 100%;}
}

/* ---- household ---- */
/* Household pages use full-page, native forms and stay usable without JavaScript. */
.household-page{--hh-ink:#30394b;--hh-muted:#636c7d;--hh-line:#e5e5ed;display:grid;gap:22px;max-width:1240px;margin:0 auto;color:var(--hh-ink);font-size:14px;line-height:1.55;overflow-wrap:anywhere}
.household-page *{min-width:0}.household-page .page-intro{margin:0}.household-page .page-intro p{color:var(--hh-muted);font-size:14px}.household-page h1{overflow-wrap:anywhere}.household-page h2{margin:0;font:800 19px/1.35 var(--display)}.household-page h3{margin:0;font:750 16px/1.4 var(--display)}.household-page p{margin:7px 0;color:var(--hh-muted)}.household-page .card{box-shadow:0 4px 22px #48517404;border:1px solid var(--hh-line);border-radius:19px;background:#fff}.household-narrow{max-width:800px}.household-kicker{display:block;margin-bottom:8px;color:#687299;font-size:11px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.household-back,.household-link{color:#5468a2;font-weight:700;text-decoration:none}.household-back{justify-self:start}.household-back:hover,.household-link:hover{text-decoration:underline}.household-page .button{min-height:44px;max-width:100%;height:auto;white-space:normal;text-align:center;font-size:12px;line-height:1.45;overflow-wrap:anywhere}.household-page a:focus-visible,.household-page button:focus-visible,.household-page summary:focus-visible,.household-page input:focus-visible,.household-page textarea:focus-visible,.household-page select:focus-visible{outline:3px solid #6583bc;outline-offset:3px}.household-intro-note{display:flex;align-items:center;gap:20px;padding:22px 24px;background:linear-gradient(110deg,#f0edf9,#edf6f4);border:1px solid #e7e4ef;border-radius:19px}.household-intro-note h2{font-size:17px}.household-mark{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:16px;background:#fff9}.household-mark svg,.household-overview-art svg{width:28px;fill:none;stroke:#8794b4;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.household-section{display:grid;gap:15px}.household-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.household-heading p{margin-bottom:0;font-size:12px}.household-count{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:9px;background:#f1eef9;color:#626d9b;font-weight:800}.household-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.household-asset-card{overflow:hidden}.household-art{display:grid;height:150px;overflow:hidden;place-items:center;background:linear-gradient(125deg,#eeeff9,#edf5f3)}.household-art svg{width:80px;fill:none;stroke:#a0adca;stroke-width:1;stroke-linecap:round;stroke-linejoin:round}.household-art img{width:100%;height:100%;object-fit:cover}.household-asset-body{padding:20px}.household-meta,.household-asset-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--hh-muted)}.household-asset-body h3{margin-top:10px;font-size:21px}.household-asset-body h3 a{color:var(--hh-ink)}.household-asset-body p{font-size:12px}.household-asset-footer{align-items:flex-start;flex-wrap:wrap;margin-top:20px;padding-top:14px;border-top:1px solid #eeeef3}.household-role,.household-status{display:inline-block;align-self:start;padding:4px 9px;border-radius:8px;background:#f0edf8;color:#63688b;font-size:10px;font-weight:800;line-height:1.5}.household-role.owner,.household-status.later{background:#eaf4ef;color:#477568}.household-role.contributor{background:#edf1fc;color:#506599}.household-status.overdue{background:#fbecef;color:#9a475d}.household-status.soon{background:#fff3de;color:#89651e}.household-status.unknown{background:#f0f1f5;color:#687180}.household-empty{padding:34px 24px;text-align:center}.household-empty p{max-width:570px;margin:9px auto 18px}.household-empty h1{font-size:26px}.household-notice{padding:20px 22px;border:1px solid #e4e3ef;border-radius:14px;background:#f6f4fb}.household-notice h2{font-size:15px}.household-notice p{font-size:12px}.household-notice.success{background:#eff7f3;border-color:#dcece4}.household-form{display:grid;gap:22px;padding:28px}.household-form form{display:grid;gap:18px}.household-form .field,.household-inline-form .field{display:grid;gap:8px}.household-page .field>span{font-size:12px;font-weight:700;color:#485367}.household-page .field small,.household-help{color:var(--hh-muted);font-size:12px;font-weight:400}.household-page .field input,.household-page .field select,.household-page .field textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:46px;background:#fff;border:1px solid #dcdfe9;border-radius:10px;color:var(--hh-ink);font:400 14px/1.5 var(--font);padding:11px 12px}.household-page .field textarea{resize:vertical;min-height:110px}.household-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}.household-span{grid-column:1/-1}.household-form-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px;padding-top:22px;border-top:1px solid var(--hh-line)}.household-check{display:flex;align-items:flex-start;gap:11px;cursor:pointer;font-size:13px}.household-check input{flex:0 0 18px;width:18px;height:18px;margin:3px 0;accent-color:#7285b8}.household-role-options{display:grid;gap:12px;margin:0;padding:0;border:0}.household-role-options legend{margin-bottom:12px;font-size:13px;font-weight:700}.household-role-options label{display:flex;gap:13px;padding:18px;border:1px solid var(--hh-line);border-radius:13px;cursor:pointer}.household-role-options label:has(input:checked){border-color:#a8b4d7;background:#f6f7fc}.household-role-options input{flex:0 0 17px;width:17px;height:17px;margin-top:3px;accent-color:#7285b8}.household-role-options strong,.household-role-options small{display:block}.household-role-options small{margin-top:5px;color:var(--hh-muted);font-size:12px}.household-errors{padding:20px;border:1px solid #e8cad3;border-radius:12px;background:#fff1f4;color:#963c55}.household-errors h2{font-size:16px}.household-errors p,.household-errors a{color:#873e53;font-size:13px}.household-errors a{text-decoration:underline}.household-invite-link{font-size:13px!important;overflow-wrap:anywhere;word-break:break-all}.household-section-card{padding:24px}.household-section-card>.household-heading{margin-bottom:22px}.household-people{display:grid}.household-person{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:23px 0;border-top:1px solid var(--hh-line)}.household-person:first-child{border-top:0;padding-top:0}.household-person:last-child{padding-bottom:0}.household-person p{font-size:12px}.household-person-actions{display:grid;gap:18px;max-width:480px}.household-inline-form{display:flex;align-items:flex-end;gap:10px}.household-inline-form label{flex:1}.household-remove-details{margin-top:14px;padding-top:14px;border-top:1px solid var(--hh-line)}.household-remove-details summary{cursor:pointer;color:#976075;font-weight:700;font-size:12px}.household-remove-details form{display:grid;justify-items:start;gap:15px;margin-top:16px}.household-danger{color:#a34e68!important}.household-actions{display:flex;flex-wrap:wrap;gap:10px}.household-overview{display:grid;grid-template-columns:160px minmax(0,1fr);align-items:center;overflow:hidden}.household-overview-art{display:grid;align-self:stretch;min-height:158px;place-items:center;background:linear-gradient(130deg,#eceaf7,#eaf4ee)}.household-overview-art img{width:100%;height:100%;max-height:210px;object-fit:cover}.household-overview>div:last-child{padding:22px 26px}.household-overview h2{margin-top:12px;font-size:26px}.household-overview p{font-size:12px}.household-tabs{display:flex;flex-wrap:wrap;gap:7px;padding:6px;background:#eeedf4;border-radius:13px}.household-tabs a{display:grid;min-height:43px;align-items:center;padding:9px 18px;border-radius:9px;color:#657084;font-size:12px;font-weight:700}.household-tabs a[aria-current]{background:#fff;color:#485b93;box-shadow:0 2px 7px #5d63800b}.household-record{padding:23px 0;border-top:1px solid var(--hh-line)}.household-record:first-child{border-top:0;padding-top:0}.household-record:last-child{padding-bottom:0}.household-record-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.household-record-date{display:block;margin-bottom:5px;color:#7e8797;font-size:11px}.household-record-heading p{font-size:12px}.household-facts{display:flex;flex-wrap:wrap;gap:15px 30px;margin:20px 0}.household-facts dt{font-size:10px;color:#727d8e}.household-facts dd{margin:3px 0 0;font-weight:700;font-size:14px}.household-record-notes{margin:14px 0}.household-record-notes summary{cursor:pointer;font-size:12px;font-weight:700;color:#626f96}.household-notes{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.household-schedule{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.household-interval{padding:21px;background:#fafafd;border:1px solid #e8e8f0;border-radius:14px}.household-interval h3{margin-top:12px}.household-interval>p{font-size:12px}.household-activity{display:grid;gap:22px;padding:0;margin:0;list-style:none}.household-activity li{display:flex;gap:14px}.household-activity-dot{flex:0 0 10px;height:10px;border-radius:50%;background:#b9b5d6;margin-top:6px}.household-activity p{margin:2px 0;font-size:12px}.household-activity time{color:#7f899a;font-size:11px}.household-pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:16px;color:var(--hh-muted);font-size:12px}.household-upload input{padding:8px!important;font-size:12px!important}.household-upload input::file-selector-button{margin-right:8px;border:0;border-radius:6px;background:#edf0f8;color:#536896;padding:8px;font:inherit;cursor:pointer}
@media(max-width:760px){.household-grid,.household-schedule{grid-template-columns:1fr}.household-person{flex-direction:column;gap:16px}.household-person-actions{width:100%;max-width:none}.household-page .page-intro,.household-heading{align-items:flex-start;flex-direction:column;gap:14px}.household-heading .household-count{align-self:flex-start;width:30px;flex-basis:30px}.household-form,.household-section-card{padding:22px}.household-art{height:160px}}
@media(max-width:480px){.household-page{gap:18px}.household-form-grid{grid-template-columns:1fr;gap:18px}.household-form,.household-section-card{padding:18px}.household-form .field input,.household-form .field select,.household-form .field textarea{font-size:16px}.household-form-actions{align-items:stretch;flex-direction:column-reverse}.household-form-actions .button{width:100%}.household-overview{grid-template-columns:1fr}.household-overview-art{min-height:100px;max-height:145px}.household-overview-art img{height:145px}.household-overview>div:last-child{padding:20px}.household-intro-note{padding:19px;align-items:flex-start;gap:13px}.household-mark{flex-basis:37px;width:37px;height:37px;border-radius:10px}.household-mark svg{width:22px}.household-intro-note h2{font-size:15px}.household-intro-note p{font-size:12px}.household-tabs{gap:4px}.household-tabs a{padding:9px 12px;flex:1 0 28%;text-align:center}.household-inline-form{flex-direction:column;align-items:stretch;width:100%}.household-record-heading{align-items:flex-start}.household-record-heading>.button{flex-shrink:0}.household-facts{gap:14px 22px}.household-notice{padding:17px}.household-role-options label{padding:15px}.household-empty{padding:27px 18px}.household-actions{width:100%}.household-actions .button{flex:1}.household-page .page-intro h1{font-size:29px}}
.household-upcoming{display:grid;gap:18px}.household-upcoming article{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:18px;border-bottom:1px solid var(--hh-line)}.household-upcoming article:last-child{padding-bottom:0;border:0}.household-upcoming h3{margin-top:8px}.household-upcoming p{font-size:12px}@media(max-width:480px){.household-upcoming article{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.household-page *{scroll-behavior:auto;transition:none}}
/* Invitation email stays a separate, optional native action after link creation. */
.household-invitation-result .household-notice p,.household-invitation-result .household-help{font-size:14px}.household-invitation-result .household-invite-link{font-size:16px!important}.household-invitation-actions{display:flex;align-items:flex-start;justify-content:flex-end;flex-wrap:wrap;gap:14px;padding-top:20px;border-top:1px solid var(--hh-line)}.household-invitation-actions form{display:grid;gap:8px;flex:0 1 260px}.household-invitation-actions .button{font-size:14px}.household-invitation-actions [data-household-email-progress]:empty{display:none}.household-invitation-link-action,.household-invitation-email-summary .household-link{display:inline-flex;align-items:center;min-height:44px;justify-self:start}.household-invitation-email-summary{margin-top:10px}.household-invitation-email-summary p{margin-bottom:0}.household-errors:focus{outline:3px solid #6583bc;outline-offset:3px}.household-invitation-actions button[aria-disabled=true]{opacity:.7;cursor:wait}
@media(max-width:480px){.household-invitation-actions{flex-direction:column;align-items:stretch}.household-invitation-actions form{flex-basis:auto}.household-invitation-actions .button{width:100%}}
/* Household overview: native invitation entry, with existing asset-scoped routes. */
.household-home .household-invite-entry{display:grid;gap:14px}
.household-home .household-intro-note p{font-size:16px;line-height:1.55}
.household-home .household-invite-chooser{background:#fff;border:1px solid #dcdfea;border-radius:14px;overflow:hidden}
.household-home .household-invite-chooser>summary{padding:16px 20px;min-height:54px;box-sizing:border-box;cursor:pointer;color:#42568c;background:#f2f3fb;font-size:16px;font-weight:750;line-height:1.4}
.household-home .household-invite-chooser>summary:hover{background:#eceef9}
.household-home .household-invite-chooser>summary:focus-visible{outline-offset:-4px}
.household-home .household-invite-chooser[open]>summary{border-bottom:1px solid #dcdfea}
.household-home .household-invite-options{padding:8px 20px 20px}
.household-home .household-invite-options>p,.household-home .household-invite-empty{font-size:16px;line-height:1.55}
.household-home .household-invite-options ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0 0;padding:0;list-style:none}
.household-home [data-household-invite-item]{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;gap:3px 16px;padding:14px 16px;min-height:72px;box-sizing:border-box;border:1px solid #e0e3ed;border-radius:11px;color:#30394b;background:#fff;text-decoration:none}
.household-home [data-household-invite-item]:hover{background:#f6f7fc;border-color:#aab6d7}
.household-home [data-household-invite-item]>span:first-child{grid-column:1;font-size:14px;color:#636c7d}
.household-home [data-household-invite-item]>strong{grid-column:1;font-size:16px;line-height:1.45;font-weight:650;overflow-wrap:anywhere}
.household-home .household-invite-arrow{grid-column:2;grid-row:1/3;align-self:center;font-size:20px;color:#5468a2}
.household-home .household-invite-verification{padding:12px 14px;background:#f6f4fb;border-radius:10px}
.household-home .household-invite-empty{margin:0;padding:0 4px}
.household-home .household-owner-actions{display:flex;flex-wrap:wrap;gap:4px 18px}
.household-home .household-owner-actions a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;line-height:1.45}
@media(max-width:600px){.household-home .household-invite-options ul{grid-template-columns:1fr}.household-home .household-invite-options{padding:8px 16px 16px}.household-home .household-invite-chooser>summary{padding:15px 16px}.household-home .household-owner-actions a{font-size:16px}}
/* Inline role controls need the same phone-readable type as full-page forms. */
@media(max-width:640px){.household-page .field input:not([type=file]),.household-page .field select,.household-page .field textarea{font-size:16px}}
/* Dates and facts carry useful record context, not decorative fine print. */
.household-record-date,
.household-facts dt,
.household-activity time {color: var(--hh-muted);}
.household-count {color: #53618c;}
.household-tabs a {color: #596477;}
.household-tabs a[aria-current] {color: #485b93;}
@media screen and (max-width: 900px) {
    .household-back,
    .household-record > .household-link,
    .household-notice > .household-link,
    .household-empty > .household-link,
    .household-invitation-email-summary > .household-link {
        display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
    }
    .household-remove-details > summary,
    .household-record-notes > summary {
        box-sizing: border-box; min-height: 44px; padding: 12px 2px;
    }
    .household-check {box-sizing: border-box; min-height: 44px; padding-block: 10px;}
    .household-tabs a {min-height: 44px;}
}

/* ---- feedback ---- */
.feedback-inbox-filters {display: flex; flex-wrap: wrap; align-items: end; gap: 16px; padding: 24px;}
.feedback-inbox-filters .field {flex: 1 1 180px;}
.feedback-inbox-count {color: var(--muted); font-size: 14px; margin: 24px 0 14px;}
.feedback-inbox-list {display: grid; gap: 18px;}
.feedback-inbox-entry, .feedback-inbox-empty {min-width: 0; padding: 28px; overflow-wrap: anywhere;}
.feedback-inbox-meta {color: #71687f; font-size: 12px;}
.feedback-inbox-entry h2, .feedback-inbox-empty h2 {font: 700 21px/1.4 var(--display); margin: 8px 0;}
.feedback-inbox-entry header p {color: #71687f; margin: 0; font-size: 14px;}
.feedback-inbox-message {white-space: pre-wrap; line-height: 1.75; font-size: 15px; padding: 20px 0; margin: 0;}
.feedback-inbox-context {display: grid; gap: 12px; padding: 16px; background: #f8f6fc; border-radius: 12px; font-size: 13px;}
.feedback-inbox-context dt {color: #71687f; margin-bottom: 3px;}
.feedback-inbox-context dd {margin: 0;}
.feedback-status-form {display: flex; flex-wrap: wrap; align-items: end; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px;}
.feedback-status-form .field {flex: 0 1 240px;}
.feedback-status-form small {color: #71687f; font-size: 12px; flex: 1 1 200px; padding-block: 12px;}
.feedback-inbox-pagination {display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; font-size: 14px;}
@media (max-width: 640px) {
    .feedback-inbox-entry, .feedback-inbox-empty, .feedback-inbox-filters {padding: 20px;}
    .feedback-status-form .field, .feedback-status-form button, .feedback-inbox-filters button {width: 100%; flex-basis: 100%;}
    .feedback-inbox-filters input, .feedback-inbox-filters select, .feedback-status-form select {min-width: 0; width: 100%;}
}

/* ---- moderation ---- */
/* Reporting stays in normal document flow, including small mobile viewports. */
.safety-page {max-width: 1000px; margin: 0 auto; padding-bottom: 40px; overflow-wrap: anywhere;}
.safety-intro {display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px;}
.safety-intro h1 {margin: 0 0 10px; font: 750 clamp(28px, 4vw, 40px)/1.2 var(--display); letter-spacing: -1px;}
.safety-intro p, .safety-review header p {margin: 0; color: #73697f; line-height: 1.7;}
.safety-intro > .button {flex-shrink: 0;}
.safety-panel {background: #fff; border: 1px solid #e8e1ef; border-radius: 20px; padding: 26px; min-width: 0;}
.safety-panel h2 {font: 700 23px/1.4 var(--display); margin: 8px 0 20px;}
.safety-panel p {line-height: 1.7;}
.safety-label {font-size: 12px; color: #74618e;}
.safety-form {display: grid; gap: 20px; margin-top: 22px;}
.safety-form .field, .safety-filters .field {min-width: 0; font-size: 14px;}
.safety-form .field input, .safety-form .field select, .safety-form .field textarea, .safety-filters select {font-size: 16px; width: 100%; max-width: 100%;}
.safety-form .field small {font-size: 12px; font-weight: 400;}
.safety-form .field > span {flex-wrap: wrap; gap: 5px 12px;}
.safety-form p {margin: 0;}
.safety-form-grid {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;}
.safety-note {padding: 14px 16px; border-radius: 12px; background: #f6f3fa; color: #6a5e7b; font-size: 13px; line-height: 1.7;}
.safety-actions {display: flex; align-items: center; flex-wrap: wrap; gap: 14px;}
.safety-actions .button {min-height: 46px;}
.safety-actions > span {font-size: 13px; color: #73697f;}
.safety-history {margin-top: 36px;}
.safety-history h2 {font-size: 24px;}
.safety-history > p, .safety-history-item small {color: #73697f;}
.safety-list {display: grid; gap: 18px;}
.safety-history-item header, .safety-review > header {display: flex; justify-content: space-between; align-items: start; gap: 16px;}
.safety-review header h2 {margin-bottom: 7px;}
.safety-review header p {font-size: 13px;}
.safety-badge {display: inline-flex; padding: 6px 11px; border-radius: 30px; font-size: 12px; color: #675480; background: #eee7f7; flex-shrink: 0;}
.safety-text {white-space: pre-wrap; overflow-wrap: anywhere;}
.safety-errors {padding: 18px; border-radius: 14px; border: 1px solid #ebc9c1; background: #fff4ef; color: #895147; margin-bottom: 24px; font-size: 15px; line-height: 1.7;}
.safety-errors ul {padding-left: 22px; margin-bottom: 0;}
.safety-filters {display: flex; align-items: end; gap: 16px; flex-wrap: wrap;}
.safety-filters .field {min-width: 220px;}
.safety-preview, .safety-audit {border-top: 1px solid #eee8f3; margin-top: 22px; padding-top: 12px;}
.safety-preview summary, .safety-audit summary {cursor: pointer; padding-block: 12px; font-weight: 600; color: #685185;}
.safety-plan-items {padding-left: 22px;}
.safety-plan-items li {padding: 10px 0; line-height: 1.7;}
.safety-plan-items span, .safety-audit li > span {display: block; font-size: 13px; color: #73697f;}
.safety-audit ol {padding-left: 22px;}
.safety-audit li {padding-block: 12px; font-size: 13px; line-height: 1.7;}
.safety-pagination {display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; font-size: 14px;}
@media(max-width: 600px) {
    .safety-intro {align-items: start; flex-direction: column;}
    .safety-panel {padding: 20px 16px; border-radius: 16px;}
    .safety-form-grid {grid-template-columns: minmax(0, 1fr);}
    .safety-history-item header, .safety-review > header {flex-direction: column; gap: 10px;}
    .safety-form .field > span {display: grid;}
    .safety-actions {align-items: stretch; flex-direction: column;}
    .safety-actions .button {width: 100%;}
    .safety-filters .field {flex: 1;}
}

/* ---- import ---- */
/* Staged CSV import: readable forms and bounded preview on phones and desktops. */
.import-steps{display:flex;gap:12px;flex-wrap:wrap;padding:0;margin:0 0 24px;list-style:none;color:var(--muted,#667584);font-size:.9rem}.import-steps li{padding:9px 14px;border-radius:999px;background:#edf0f4}.import-steps [aria-current=step]{background:#e8e1f8;color:#463668;font-weight:700}.import-steps .is-done{background:#e4f2eb;color:#356b54}
.import-flow-card{padding:28px;margin-bottom:24px;min-width:0}.import-flow-card h2{margin:6px 0 12px}.import-destination{display:flex;gap:20px;justify-content:space-between;align-items:center}.import-destination p{margin:0}.import-hint,.import-mapping>p{line-height:1.65;color:var(--muted,#667584)}.import-mapping{margin-top:20px;border-top:1px solid #e6e9ef;padding-top:20px}.import-mapping summary{font-weight:700;cursor:pointer;padding:4px 0}.import-mapping-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.import-mapping-grid .field,.import-mapping-grid select{min-width:0;max-width:100%}.import-mapping-grid select{width:100%}.import-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.import-summary{display:flex;gap:16px;flex-wrap:wrap;margin:20px 0}.import-summary>span{background:#f3f1f9;border-radius:12px;padding:14px 18px}.import-summary strong{font-size:1.35rem;margin-right:5px}.import-summary .has-errors,.import-error{color:#8b3549;background:#fff0f2}.import-error{padding:16px;border-radius:12px;line-height:1.6}.import-preview-scroll{max-width:100%;overflow:auto;border:1px solid #e5e9ef;border-radius:14px;max-height:560px}.import-preview-scroll:focus-visible{outline:3px solid #a095ca;outline-offset:3px}.import-preview-table{width:100%;border-collapse:collapse;font-size:.9rem}.import-preview-table th,.import-preview-table td{text-align:left;vertical-align:top;padding:13px 16px;border-bottom:1px solid #e9ecf0;min-width:130px;max-width:300px;overflow-wrap:anywhere;white-space:normal}.import-preview-table thead th{position:sticky;top:0;background:#f6f5fa;z-index:1;font-size:.8rem}.import-preview-table th:first-child{min-width:72px}.import-preview-table td.import-row-result{min-width:220px}.import-row-result small{display:block;margin-top:8px}.import-row-result ul{padding-left:16px;margin:8px 0 0;color:#8b3549}.import-status{display:inline-block;padding:4px 9px;border-radius:7px;font-weight:600;font-size:.8rem}.import-status.ready{background:#e4f2eb;color:#356b54}.import-status.duplicate{background:#f3ecd9;color:#766025}.import-status.invalid{background:#fde5eb;color:#8b3549}.import-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px}.import-pagination span{font-size:.85rem;color:var(--muted,#667584)}.import-confirm{display:grid;gap:20px;margin-top:24px}.import-confirm-check{display:flex;gap:12px;align-items:flex-start;line-height:1.6;cursor:pointer}.import-confirm-check input{flex:0 0 auto;width:20px;height:20px;margin-top:3px}.import-confirm .button{justify-self:start}.import-confirm .button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:680px){.import-flow-card{padding:20px 16px}.import-mapping-grid{grid-template-columns:1fr}.import-destination{align-items:flex-start;flex-direction:column}.import-steps{gap:6px;font-size:.8rem}.import-steps li{padding:8px 10px}.import-summary{gap:8px}.import-summary>span{flex:1;min-width:105px;padding:12px}.import-summary strong{display:block}.import-confirm .button{width:100%;justify-self:stretch;white-space:normal}.import-preview-scroll{max-height:460px}.import-actions .button{width:100%}.import-confirm-check{font-size:.9rem}}

/* B02 cards are scoped separately; legacy batch presentation above is unchanged. */
.imports-page{--imports-ink:#303b4e;--imports-muted:#626d7b;--imports-line:#e1e6ed;display:grid;gap:22px;max-width:1200px;margin:0 auto;color:var(--imports-ink);font:400 14px/1.65 var(--font,sans-serif);overflow-wrap:anywhere}
.imports-page *{box-sizing:border-box;min-width:0}.imports-page [hidden]{display:none!important}.imports-page h1{font:800 33px/1.2 var(--display,sans-serif);letter-spacing:-.03em;margin:0}.imports-page h2{font:750 20px/1.4 var(--display,sans-serif);margin:0}.imports-page h3{font:750 16px/1.45 var(--display,sans-serif);margin:0}.imports-page h4{font-size:14px;margin:0}.imports-page p{margin:8px 0 0;color:var(--imports-muted)}.imports-page .card{background:#fff;border:1px solid var(--imports-line);border-radius:17px;box-shadow:0 4px 22px #48517404}.imports-page .button{min-height:44px;max-width:100%;height:auto;white-space:normal;text-align:center;line-height:1.5;font-size:14px;padding:11px 17px;overflow-wrap:anywhere}.imports-page .button:disabled{opacity:.6;cursor:not-allowed}.imports-page a:focus-visible,.imports-page button:focus-visible,.imports-page input:focus-visible,.imports-page select:focus-visible,.imports-page summary:focus-visible,.imports-page [tabindex]:focus-visible{outline:3px solid #587bb5;outline-offset:3px}.imports-page :target{scroll-margin-top:100px}.imports-page .imports-help{font-size:13px;line-height:1.6}.imports-link{color:#476092;font-weight:700;text-decoration:underline;min-height:44px;display:inline-flex;align-items:center}.imports-heading p{max-width:700px}.imports-steps{list-style:none;padding:0;margin:0;display:flex;gap:10px;flex-wrap:wrap;font-size:13px}.imports-steps li{padding:8px 13px;border-radius:9px;background:#f0f2f6;color:#5e6877}.imports-steps [aria-current]{background:#eae4f5;color:#54477c;font-weight:700}.imports-steps .is-done{background:#eaf4ef;color:#477660}.imports-state{padding:32px;text-align:center}.imports-state h2{margin:10px 0}.imports-state>.button{margin-top:20px}.imports-state p{max-width:680px;margin:10px auto}.imports-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:22px}.imports-state .imports-actions{justify-content:center}.imports-upload-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:24px;align-items:start}.imports-upload{padding:28px;display:grid;gap:23px}.imports-upload>.button{justify-self:start}.imports-upload-help{display:grid;gap:20px}.imports-notice{padding:20px 23px;border:1px solid #e4e0ef;border-radius:14px;background:#f6f3fb}.imports-notice h2{font-size:16px}.imports-notice p{font-size:13px}.imports-templates{padding:23px;display:grid;gap:8px}.imports-templates h2{font-size:17px}.imports-field{display:grid;align-content:start;gap:8px;margin:0}.imports-field>span{font-size:13px;font-weight:700;color:#465267}.imports-field>small{font-size:12px;font-weight:400;color:var(--imports-muted)}.imports-field input,.imports-field select{width:100%;max-width:100%;min-height:46px;font:400 16px/1.45 var(--font,sans-serif);color:var(--imports-ink);background:#fff;border:1px solid #d3dce8;border-radius:10px;padding:11px 12px}.imports-field input[type=file]{padding:9px}.imports-field input::file-selector-button{padding:9px 11px;border:0;border-radius:7px;background:#ece6f5;color:#594b7e;font:inherit;margin-right:9px;cursor:pointer}.imports-field [aria-invalid=true]{border-color:#b86278}.imports-field .imports-field-error{display:grid;gap:4px;color:#8b3650;font-size:12px;font-weight:500}.imports-errors{padding:20px 22px;border:1px solid #e4bfca;border-radius:14px;background:#fff1f4;color:#833b50;scroll-margin-top:100px}.imports-page .imports-errors p{color:#833b50}.imports-errors h2{font-size:18px}.imports-errors ul{padding-left:21px;margin:10px 0 0}.imports-errors li+li{margin-top:5px}.imports-errors a{color:#833b50}.imports-context{padding:23px 26px;background:linear-gradient(110deg,#f1edf9,#eef6f3)!important;display:flex;gap:20px;align-items:center;justify-content:space-between}.imports-context h2{font-size:22px}.imports-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:750;color:#69718a}.imports-interpretation>summary{font-size:16px;font-weight:700;cursor:pointer;padding:22px 26px;min-height:44px}.imports-interpretation>form{padding:0 26px 26px}.imports-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:21px;margin-top:21px}.imports-format,.imports-defaults{margin:28px 0 0;padding:22px 0 0;border:0;border-top:1px solid var(--imports-line)}.imports-format>legend,.imports-defaults>legend{padding:0 14px 0 0;font-size:17px;font-weight:750}.imports-namespace{margin-top:25px;padding:19px;background:#f7f8fb;border:1px solid #e4e7ee;border-radius:12px}.imports-source-metadata{margin-top:20px}.imports-source-metadata summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:600}.imports-source-metadata pre{margin:10px 0;padding:16px;background:#f5f6fa;border-radius:10px;white-space:pre-wrap;overflow-wrap:anywhere;font:400 13px/1.6 var(--font,sans-serif)}.imports-preview{display:grid;gap:21px}.imports-totals{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.imports-totals>span{padding:14px;border:1px solid #e4e6ef;border-radius:12px;background:#f6f5fb;font-size:13px}.imports-totals strong{font-size:23px;display:block;font-weight:750}.imports-rows{display:grid;gap:17px}.imports-row{padding:23px}.imports-row-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.imports-badge{display:inline-block;padding:5px 10px;border-radius:7px;font-size:12px;font-weight:700;background:#eef0f5;color:#58677b}.imports-badge.is-ready{background:#e7f3ec;color:#416e59}.imports-badge.is-review{background:#f8efd9;color:#78612f}.imports-badge.is-error{background:#fae5eb;color:#8b4056}.imports-row-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 22px;margin:20px 0 0}.imports-row-summary dt{font-size:12px;color:var(--imports-muted)}.imports-row-summary dd{margin:3px 0 0;font-size:15px;font-weight:600;white-space:pre-wrap}.imports-row-errors,.imports-row-warnings{margin:17px 0 0;padding:13px 15px 13px 32px;border-radius:10px;font-size:13px;line-height:1.65}.imports-row-errors{background:#fff0f3;color:#813d53}.imports-row-warnings{background:#faf3e6;color:#735f37}.imports-row-errors li+li,.imports-row-warnings li+li{margin-top:5px}.imports-row>p{font-size:13px}.imports-decision{padding:15px 17px;margin:21px 0 0;background:#fbf8f0;border:1px solid #eae2cf;border-radius:11px;display:grid;gap:6px}.imports-decision legend{padding:0 7px;font-size:14px;font-weight:700}.imports-decision label,.imports-check{display:flex;align-items:flex-start;gap:12px;min-height:44px;cursor:pointer;font-size:14px;line-height:1.7}.imports-decision label{align-items:center}.imports-decision input,.imports-check input{width:20px;height:20px;flex:0 0 20px;accent-color:#7661ac;margin:3px 0 0}.imports-decision input{margin:0}.imports-decision:disabled{opacity:.7}.imports-row-details{margin-top:20px;border-top:1px solid var(--imports-line)}.imports-row-details>summary{min-height:44px;padding:12px 0 0;cursor:pointer;font-size:13px;font-weight:700}.imports-comparison{display:grid;gap:15px;margin-top:17px}.imports-comparison>section{border:1px solid #e5e8ef;border-radius:10px;padding:14px}.imports-comparison h4{margin:0 0 10px}.imports-comparison dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0}.imports-comparison dt{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#687187}.imports-comparison dd{white-space:pre-wrap;overflow-wrap:anywhere;margin:3px 0 0;font-size:14px}.imports-preview-actions{display:flex;gap:15px;align-items:center;flex-wrap:wrap;margin-top:21px}.imports-preview-actions p{margin:0}.imports-pagination{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-top:21px}.imports-pagination>span{font-size:13px;color:var(--imports-muted);text-align:center}.imports-confirm{padding:25px;display:grid;gap:20px}.imports-confirm>.button{justify-self:start}.imports-check input{margin-top:3px}.imports-progress{margin:0!important;padding:13px 16px;border-radius:10px;background:#edf5f1;color:#47735e!important}
@media(max-width:850px){.imports-upload-layout{grid-template-columns:1fr}.imports-row-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.imports-totals{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.imports-grid{grid-template-columns:1fr}.imports-context{align-items:flex-start;flex-direction:column}.imports-context form,.imports-context .button{width:100%}.imports-row-heading{align-items:flex-start;flex-direction:column;gap:9px}.imports-comparison dl{grid-template-columns:1fr;gap:13px}.imports-pagination{flex-direction:column;align-items:stretch}.imports-pagination .button{width:100%}.imports-preview-actions{align-items:stretch;flex-direction:column}.imports-confirm>.button{width:100%;justify-self:stretch}}
@media(max-width:380px){.imports-page{gap:18px}.imports-page h1{font-size:28px}.imports-upload,.imports-state,.imports-context,.imports-row,.imports-confirm{padding:18px}.imports-notice{padding:17px}.imports-interpretation>summary{padding:18px}.imports-interpretation>form{padding:0 18px 18px}.imports-errors{padding:17px}.imports-totals{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.imports-row-summary{grid-template-columns:1fr;gap:13px}.imports-actions{flex-direction:column;align-items:stretch}.imports-actions .button{width:100%}.imports-namespace{padding:14px}.imports-upload>.button{width:100%;justify-self:stretch}}
@media(prefers-reduced-motion:reduce){.imports-page *{scroll-behavior:auto;transition:none}}
.imports-source-metadata dl{margin:10px 0;padding:16px;background:#f5f6fa;border-radius:10px;display:grid;gap:12px}.imports-source-metadata dt{font-size:12px;font-weight:700}.imports-source-metadata dd{font-size:13px;margin:3px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.imports-review-again{padding:21px;display:grid;gap:12px}.imports-review-again>.button{justify-self:start}.imports-review-again p{margin:0}

/* ---- documents ---- */
/* Owner-only documents and private archives. No fixed action bar or local drafts. */
.documents-page,.garage-archive-page{--b04-ink:#30394b;--b04-muted:#59677a;--b04-line:#e1e5ed;display:grid;gap:22px;max-width:1120px;margin:0 auto;color:var(--b04-ink);font:400 15px/1.6 var(--font,sans-serif);overflow-wrap:anywhere}
.documents-page *,.garage-archive-page *{box-sizing:border-box;min-width:0}
.documents-page [hidden],.garage-archive-page [hidden]{display:none!important}
.documents-page h1,.garage-archive-page h1{margin:0;font:800 32px/1.2 var(--display,sans-serif);letter-spacing:-.03em}
.documents-page h2,.garage-archive-page h2{margin:0;font:750 19px/1.4 var(--display,sans-serif)}
.documents-page h3,.garage-archive-page h3{margin:8px 0 0;font-size:17px}
.documents-page p,.garage-archive-page p{margin:8px 0 0;color:var(--b04-muted)}
.documents-page .card,.garage-archive-page .card{border:1px solid var(--b04-line);border-radius:17px;background:#fff;box-shadow:0 5px 22px #48517404}
.documents-page .button,.garage-archive-page .button{min-height:44px;max-width:100%;height:auto;white-space:normal;line-height:1.4;text-align:center;padding:12px 18px;font-size:14px;overflow-wrap:anywhere}
.documents-page :is(a,button,input,select,summary):focus-visible,.garage-archive-page :is(a,button,input,summary):focus-visible{outline:3px solid #5578b5;outline-offset:3px}
.b04-narrow{max-width:760px}.b04-heading{display:flex;align-items:center;justify-content:space-between;gap:22px}.b04-heading>div{flex:1}.b04-heading>.button{flex-shrink:0}.b04-back,.b04-link{display:inline-flex;align-items:center;min-height:44px;justify-self:start;color:#405b96;font-weight:700;text-decoration:none}.b04-back:hover,.b04-link:hover{text-decoration:underline}.b04-danger-link{color:#994752!important}.b04-help,.b04-meta{font-size:13px}.b04-empty{padding:30px;text-align:center}.b04-empty p{max-width:650px;margin:10px auto 22px}.b04-notice{padding:20px;border:1px solid #e3def0;border-radius:13px;background:#f6f3fb}.b04-notice>.button,.b04-notice>.b04-actions{margin-top:16px}.b04-notice h2{font-size:17px}.b04-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.b04-start-actions{justify-content:flex-start}.b04-actions form{max-width:100%}.b04-list{display:grid;gap:14px}.b04-item{padding:22px;display:flex;align-items:center;gap:22px}.b04-item-body{flex:1}.b04-item h2{margin-top:8px}.b04-item-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px 18px;max-width:45%}.b04-status{display:inline-block;padding:5px 10px;border-radius:7px;background:#efebf8;color:#605088;font-size:12px;font-weight:750}.b04-success{background:#edf5ef;color:#3f6b52}.b04-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:14px;font-size:14px}.b04-filters{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) auto;align-items:start;gap:18px;padding:22px}.b04-filters>.b04-actions{padding-top:30px}.documents-page .field{display:grid;align-content:start;gap:8px;margin:0}.documents-page .field>span{font-size:14px;font-weight:700;color:#414e63}.documents-page .field small{font-size:13px;font-weight:400;color:var(--b04-muted)}.documents-page .field :is(input,select){width:100%;max-width:100%;min-height:46px;border:1px solid #d5dbe7;border-radius:10px;background:#fff;color:var(--b04-ink);font:400 16px/1.4 var(--font,sans-serif);padding:11px 12px}.documents-page .field input[type=file]{padding:10px;font-size:16px;overflow:hidden}.documents-page .field input[type=file]::file-selector-button{border:0;border-radius:7px;padding:9px 10px;margin-right:10px;color:#405278;background:#eef1f8;font:inherit}.b04-form{padding:28px;display:grid;gap:22px}.b04-fields{border:0;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.b04-fields:disabled{opacity:1}.b04-fields:disabled input,.b04-fields:disabled select{background:#f4f5f8;color:#576277}.b04-span{grid-column:1/-1}.b04-form-actions{border-top:1px solid var(--b04-line);padding-top:20px;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px}.b04-check{display:flex;align-items:flex-start;gap:12px;min-height:44px;padding:10px 0;cursor:pointer;color:var(--b04-ink)}.b04-check input{width:22px;height:22px;flex:0 0 22px;margin:2px 0;accent-color:#647db0}.b04-danger{background:#a34c5c!important;border-color:#a34c5c!important;color:#fff!important}.b04-errors{padding:20px;border:1px solid #ddb8c1;background:#fff4f6;border-radius:13px;color:#753c4b}.b04-errors h2{color:#753c4b!important;font-size:17px}.b04-errors ul{margin:12px 0 0;padding-left:22px}.b04-errors a{display:inline-block;min-height:32px;color:#753c4b;text-decoration:underline}.b04-field-error{display:grid;gap:4px;font-size:13px;color:#973f53!important}.documents-page [aria-invalid=true]{border-color:#ae5b6e!important}.b04-progress{font-size:14px;font-weight:650}.b04-archive-intro,.b04-archive-job{padding:26px}.b04-archive-intro>p:first-child{margin-top:0}.b04-details{margin-top:18px;border-top:1px solid var(--b04-line);padding-top:12px}.b04-details summary{min-height:44px;padding:10px 0;cursor:pointer;color:#405b96;font-weight:700}.b04-details>div,.b04-details>form{padding:0 0 4px}.b04-details p{font-size:14px}.b04-request-form{margin-top:22px}.b04-archive-job{display:grid;gap:20px}.b04-archive-job h2{margin-top:10px}.b04-archive-job>p{margin-top:0}.b04-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0}.b04-facts dt{font-size:13px;color:var(--b04-muted)}.b04-facts dd{margin:4px 0 0;font-size:15px;font-weight:700}.b04-cancel{margin-top:0}.b04-cancel summary{color:#994752}.b04-cancel form{display:grid;gap:12px}.b04-cancel .button{justify-self:start}.b04-sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:800px){.b04-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.b04-filters>.b04-actions{grid-column:1/-1;padding-top:0}.b04-item-actions{max-width:42%}}
@media(max-width:550px){.documents-page,.garage-archive-page{gap:18px}.documents-page h1,.garage-archive-page h1{font-size:28px}.b04-heading{align-items:stretch;flex-direction:column;gap:16px}.b04-heading>.button{align-self:flex-start}.b04-item{align-items:stretch;flex-direction:column;gap:15px;padding:20px}.b04-item-actions{max-width:100%;justify-content:flex-start}.b04-item-actions>.button{width:100%}.b04-filters,.b04-fields{grid-template-columns:minmax(0,1fr)}.b04-filters{padding:18px}.b04-span{grid-column:auto}.b04-form,.b04-archive-intro,.b04-archive-job{padding:20px}.b04-form-actions{flex-direction:column-reverse}.b04-form-actions>.button{width:100%}.b04-empty{padding:24px 20px}.b04-facts{grid-template-columns:minmax(0,1fr)}.b04-archive-job>.b04-actions{align-items:stretch;flex-direction:column}.b04-archive-job>.b04-actions>form>.button{width:100%}.b04-archive-job>.b04-actions>.button{width:100%}}

/* ---- handoff ---- */
.handoff-page{--b05-ink:#283149;--b05-muted:#58647a;--b05-line:#dce2ee;max-width:1100px;margin-inline:auto;min-width:0;color:#283149;overflow-wrap:anywhere}.h06-heading{margin:18px 0 24px}.h06-heading h1{font-size:clamp(27px,4vw,36px);line-height:1.25;margin:0 0 10px}.h06-heading p,.h06-help,.h06-settings p{color:#58647a;line-height:1.6}.h06-card,.h06-form{padding:26px;margin-bottom:22px}.h06-card h2,.h06-form h2{font-size:22px;margin:0 0 14px}.h06-card h3{font-size:17px;margin:24px 0 10px}.h06-card p,.h06-form p{line-height:1.65}.h06-card p:first-child{margin-top:0}.h06-card p:last-child{margin-bottom:0}.h06-form{display:grid;gap:20px}.h06-form p{margin:0}.h06-form .field{min-width:0;display:grid;gap:8px}.h06-form .field small{color:#58647a;line-height:1.55;font-size:14px;font-weight:400}.h06-form input:not([type=checkbox]):not([type=hidden]),.h06-form select{width:100%;min-width:0;max-width:100%;min-height:44px;font-size:16px}.h06-form select{padding-right:28px}.h06-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.h06-check{display:flex;gap:12px;align-items:flex-start;min-height:44px;padding:10px 0;line-height:1.6;cursor:pointer}.h06-check input{width:20px;height:20px;min-width:20px;margin:3px 0 0;accent-color:#6756aa}.h06-check span{min-width:0}.handoff-page .button{min-height:44px;line-height:1.5;white-space:normal;text-align:center;max-width:100%}.h06-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0}.h06-link{display:inline-flex;align-items:center;min-height:44px;color:#5142a0;text-decoration:underline;text-underline-offset:3px;line-height:1.5}.h06-actions [aria-current=page]{background:#e9e4f8;border-color:#b5a6d8}.h06-status{display:inline-block;font-size:14px;border:1px solid #d5d1e7;border-radius:999px;background:#f0edfa;padding:5px 12px}.h06-row{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px;margin:16px 0}.h06-row>div{min-width:0}.h06-row h2{font-size:21px;margin:12px 0}.h06-row p{margin:7px 0;line-height:1.6;color:#58647a}.h06-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:20px;margin:16px 0}.h06-facts div{min-width:0}.h06-facts dt{color:#58647a;font-size:14px;margin-bottom:6px}.h06-facts dd{margin:0;line-height:1.55}.h06-effect-list{padding-left:22px;line-height:1.7}.h06-effect-list li{margin:12px 0}.h06-errors,.h06-notice{padding:22px;border:1px solid #cfc4e9;border-radius:16px;background:#f7f3fc;margin:0 0 22px;line-height:1.65}.h06-errors h2,.h06-notice h2{font-size:20px;margin:0 0 8px}.h06-errors a{color:#513e87;display:inline-flex;align-items:center;min-height:44px}.h06-progress{color:#58647a}.h06-edit,.h06-settings{margin:20px 0}.h06-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.handoff-page :focus-visible{outline:3px solid #6951ae;outline-offset:3px}.handoff-page [hidden]{display:none!important}.handoff-context{padding:16px 20px;margin:16px 0;border:1px solid #ddd7eb;border-radius:14px;background:#f7f4fc;line-height:1.6;overflow-wrap:anywhere}.handoff-context p{margin:0 0 10px}.handoff-context .button{min-height:44px;white-space:normal}.handoff-context .h06-actions{margin:0}
.handoff-page .button,.handoff-context .button{font-family:inherit;font-size:16px;font-weight:700}
@media(max-width:768px){.h06-row{align-items:flex-start;flex-direction:column}.h06-grid{grid-template-columns:1fr}}
@media(max-width:420px){.h06-card,.h06-form,.h06-row{padding:19px 17px}.h06-actions{align-items:stretch;flex-direction:column}.h06-actions .button{width:100%}.h06-facts{grid-template-columns:1fr}.h06-heading h1{font-size:28px}.h06-errors,.h06-notice{padding:18px}.handoff-context{padding:16px}}
@media print{.h06-heading,.h06-form,.h06-card:not(.h06-provenance),.h06-actions,.h06-edit,.h06-settings,.h06-link,.h06-errors,.h06-notice,.handoff-context,.handoff-page noscript{display:none!important}.handoff-page{max-width:none!important;margin:0!important;padding:0!important}.h06-provenance{padding:0;margin:0 0 18px;border:0;box-shadow:none;background:#fff;color:#111;break-inside:avoid}.handoff-page .buyer-report{display:block!important}}

/* ---- experience-shell ---- */
/* Signed-in navigation and context. Entry forms keep their own layout. */
.experience-shell .app-content,
.experience-shell .main-content {background: #fff;}
.experience-shell .sidebar {padding-top: 24px;}
.experience-shell .main-nav {margin-top: 24px;}
.experience-shell .nav-label {
    margin: 22px 13px 6px;
    color: #666172;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}
.experience-shell .nav-item {margin-block: 2px; color: #5f5b6d; font-weight: 500; border-radius: 9px;}
.experience-shell .nav-item.active {color: #594587; background: #f1edf8; font-weight: 700;}
.experience-shell .nav-item svg {color: #7a728c;}
.experience-shell .nav-item.active svg {color: inherit;}
.experience-shell .topbar {
    min-height: 60px;
    height: auto;
    justify-content: flex-start;
    gap: 16px;
    padding-block: 12px;
    background: #fff;
    backdrop-filter: none;
}
.experience-shell .topbar-title {
    display: block;
    min-width: 0;
    max-width: none;
    margin: 0;
}
.experience-shell .topbar-title span {
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}
/* Selected asset names must also wrap in the existing page heading. */
.experience-shell .page-intro > div {min-width: 0; max-width: 100%;}
.experience-shell .page-intro h1 {overflow-wrap: anywhere;}
.experience-shell .topbar .icon-button,
.experience-shell .sidebar .icon-button {width: 44px; height: 44px; flex: 0 0 44px;}
.experience-shell .sidebar .nav-item {min-height: 44px;}
.experience-shell .sidebar-user {margin-top: auto; padding-top: 18px;}
.experience-shell .shell-context {
    min-width: 0;
    max-width: 100%;
    padding: 12px clamp(22px, 4vw, 52px);
    /* Native select option widths must not expand the page in WebKit.
       Existing context padding leaves room for the 3px + 3px focus outline. */
    overflow: clip;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.experience-shell .shell-vehicle-view {
    display: grid;
    grid-template-columns: auto fit-content(420px) auto; /* Wide enough for a full vehicle name. */
    justify-content: start;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.experience-shell .shell-vehicle-view label {
    color: #50536a;
    font-size: 14px;
    font-weight: 600;
}
.experience-shell .shell-vehicle-view select {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 44px;
    padding: 0 34px 0 12px;
    border: 1px solid #b8b7c9;
    border-radius: 10px;
    color: #34384d;
    background: #fff;
    font-size: 16px;
    font-weight: 500;
}
.experience-shell .shell-vehicle-view .button {
    min-height: 44px;
    padding: 10px 18px;
    border-color: #b8b7c9;
    color: #45465e;
    font-size: 14px;
    line-height: 1.4;
}
.experience-shell .shell-asset-context {display: flex; align-items: center; gap: 12px; font-size: 14px;}
.experience-shell .shell-asset-context a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: #62518f;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.experience-shell .shell-asset-context > span {color: #7a748a;}
.experience-shell .shell-asset-context strong {min-width: 0; overflow-wrap: anywhere; color: #50536a; font-weight: 600;}
.experience-shell .empty-context-actions {display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px;}
.experience-shell .empty-context-actions .button {min-height: 44px; margin: 0;}
.experience-shell .shell-context :focus-visible,
.experience-shell .topbar :focus-visible,
.experience-shell .sidebar :focus-visible {outline: 3px solid #7663a6; outline-offset: 3px;}
@media (max-width: 900px) {
    .experience-shell .topbar {min-height: 60px; padding-block: 8px;}
    .experience-shell .shell-context {padding-inline: 20px;}
    .experience-shell .shell-vehicle-view {grid-template-columns: auto minmax(0, 1fr) auto;}
}
@media (max-width: 640px) {
    .experience-shell .topbar {padding-inline: 12px;}
    .experience-shell .shell-context {padding: 10px 16px 12px;}
    .experience-shell .shell-vehicle-view {grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px;}
    .experience-shell .shell-vehicle-view label {grid-column: 1 / -1;}
    .experience-shell .shell-asset-context {gap: 8px; align-items: flex-start;}
    .experience-shell .shell-asset-context > span,
    .experience-shell .shell-asset-context strong {padding-block: 11px; line-height: 1.55;}
    .experience-shell .empty-context-actions {width: 100%; flex-direction: column;}
    .experience-shell .empty-context-actions .button {font-size: 16px;}
}
@media screen and (min-width: 901px) {
    /* The page h1 names the task; desktop needs only its asset selector here.
       On phones the sticky menu/title remains, with context in normal flow. */
    .experience-shell .topbar-with-context {display: none;}
}
@media print {
    .experience-shell .shell-context {display: none;}
}

/* ---- vehicle-setup ---- */
.vehicle-setup-page .vehicle-setup-form { gap: 22px; }
.vehicle-setup-page .vehicle-optional-sections { display: grid; flex-shrink: 0; gap: 12px; }
.vehicle-setup-page .vehicle-optional { border: 1px solid #ded9ec; border-radius: 14px; background: #fff; min-width: 0; }
.vehicle-setup-page .vehicle-optional > summary { display: none; align-items: center; gap: 12px; min-height: 56px; padding: 14px 18px; cursor: pointer; color: #34304b; font-size: 16px; font-weight: 700; list-style: none; }
.vehicle-setup-page .vehicle-setup-enhanced .vehicle-optional > summary { display: flex; }
.vehicle-setup-page .vehicle-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 18px; border-bottom: 1px solid #e9e4f2; border-radius: 14px 14px 0 0; background: #f8f6fc; color: #34304b; font-size: 16px; }
.vehicle-setup-page .vehicle-section-heading small { color: #665f78; font-size: 13px; font-weight: 400; }
.vehicle-setup-page .vehicle-setup-enhanced .vehicle-section-heading { display: none; }
.vehicle-setup-page .vehicle-optional > summary::-webkit-details-marker { display: none; }
.vehicle-setup-page .vehicle-optional > summary::before { content: '+'; flex: 0 0 18px; text-align: center; color: #6b598f; font-size: 21px; line-height: 1; font-weight: 500; }
.vehicle-setup-page .vehicle-optional[open] > summary::before { content: '−'; }
.vehicle-setup-page .vehicle-optional > summary small { margin-left: auto; color: #665f78; font-size: 13px; font-weight: 400; }
.vehicle-setup-page .vehicle-optional[open] > summary { border-bottom: 1px solid #e9e4f2; background: #f8f6fc; border-radius: 14px 14px 0 0; }
.vehicle-setup-page .vehicle-optional > .form-grid { padding: 18px; }
.vehicle-setup-page .vehicle-optional .live-value-note { margin: 0; }
.vehicle-setup-page .vehicle-setup-form .field > small { color: #665f78; font-size: 13px; line-height: 1.5; }
.vehicle-setup-page .vehicle-more-options { border-top: 1px solid #e9e4f2; margin-top: 8px; }
.vehicle-setup-page .vehicle-quick-links a { color: #625578; font-size: 14px; }
.vehicle-setup-page .vehicle-more-options > summary { min-height: 44px; padding: 12px 0; color: #625578; font-size: 14px; cursor: pointer; }
.vehicle-setup-page .vehicle-more-options nav { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-bottom: 4px; }
.vehicle-setup-page .vehicle-more-options a { display: inline-flex; align-items: center; min-height: 44px; color: #625578; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.vehicle-setup-page summary:focus-visible { outline: 3px solid #8170b7; outline-offset: 3px; border-radius: 8px; }
.vehicle-setup-page .vehicle-card h2, .vehicle-setup-page .vehicle-card p, .vehicle-setup-page .modal-header h2 { overflow-wrap: anywhere; }
@media (max-width: 600px) {
    .vehicle-setup-page .vehicle-optional > summary { padding: 14px; }
    .vehicle-setup-page .vehicle-optional > .form-grid { padding: 15px 12px; }
    .vehicle-setup-page .vehicle-setup-form input, .vehicle-setup-page .vehicle-setup-form select { font-size: 16px; }
    .vehicle-setup-page .vehicle-quick-links a, .vehicle-setup-page .vehicle-more-options a { min-height: 44px; font-size: 15px; }
}

/* ---- dashboard-overview ---- */
/* B12: signed-in overview only. Existing forms and other pages stay unchanged. */
.dashboard-overview {--overview-muted:#626577; --overview-line:#e6e3ed; color:#303446; font-size:16px; line-height:1.55;}
.dashboard-overview *, .dashboard-overview *::before, .dashboard-overview *::after {min-width:0;}
.dashboard-overview h2 {margin:0; color:#303446; font:750 21px/1.35 var(--display); letter-spacing:-.45px;}
.dashboard-overview h3 {color:#303446;}
.dashboard-overview p {margin:6px 0 0; color:var(--overview-muted);}
.dashboard-overview a:focus-visible, .dashboard-overview summary:focus-visible, .dashboard-overview button:focus-visible {outline:3px solid #6652a2; outline-offset:4px;}
.dashboard-overview .button {min-height:44px; font-size:15px; box-shadow:none;}
.dashboard-overview .button-primary {background:#7562ad; color:#fff;}
.dashboard-overview .button-primary:hover {background:#625092;}
.dashboard-overview .button-secondary {border-color:#d8d3e5; color:#4c4763;}
.dashboard-overview .button-ghost {background:#f4f2f8; color:#57516a;}
.dashboard-overview .overview-heading {align-items:center; gap:24px; margin-bottom:28px;}
.dashboard-overview .overview-heading h1 {margin:0 0 6px; font-size:clamp(28px,2.8vw,36px); letter-spacing:-1px;}
.dashboard-overview .overview-heading p {font-size:16px;}
.dashboard-overview .overview-eyebrow {display:block; color:#656075; font-size:12px; line-height:1.5; font-weight:700; letter-spacing:.75px; text-transform:uppercase;}
.dashboard-overview .overview-actions {display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px;}
.dashboard-overview .overview-heading > .overview-actions {justify-content:flex-end; flex:0 1 440px; padding-top:0;}
.dashboard-overview .overview-text-link {display:inline-flex; min-height:44px; align-items:center; gap:7px; color:#62508e; font-size:15px; font-weight:700; line-height:1.4; text-decoration:underline; text-decoration-color:#c9c0df; text-underline-offset:4px; overflow-wrap:anywhere;}
.dashboard-overview .overview-text-link:hover {color:#443361; text-decoration-color:currentColor;}
.dashboard-overview .overview-card {margin-bottom:28px; overflow:hidden; border:1px solid var(--overview-line); border-radius:12px; background:#fff; box-shadow:none;}
.dashboard-overview .overview-card:not(.overview-attention):not(.overview-first-record) {border:0; border-top:1px solid var(--overview-line); border-radius:0;}
.dashboard-overview .overview-section-heading {display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:24px 26px 18px;}
.dashboard-overview .overview-section-heading > div {flex:1;}
.dashboard-overview .overview-section-heading p {font-size:14px;}
.dashboard-overview .overview-section-heading > a {flex-shrink:0;}
.dashboard-overview .overview-count {display:inline-grid; min-width:26px; height:26px; margin-left:5px; padding:0 7px; place-items:center; border-radius:7px; background:#eee9f8; color:#66508d; vertical-align:middle; font:700 13px/1 var(--font); letter-spacing:0;}
.dashboard-overview .overview-attention {border-color:#e8dece; background:#fffdf9;}
.dashboard-overview .overview-attention-list, .dashboard-overview .overview-records, .dashboard-overview .overview-assets-list {list-style:none; margin:0; padding:0;}
.dashboard-overview .overview-attention-list {padding:0 26px 8px;}
.dashboard-overview .overview-attention-list li + li {border-top:1px solid #eee6dd;}
.dashboard-overview .overview-attention-item {display:grid; grid-template-columns:112px minmax(0,1fr) 20px; gap:16px; align-items:start; padding:17px 0; border-radius:6px;}
.dashboard-overview .overview-attention-item:hover .overview-attention-body > strong {text-decoration:underline; text-underline-offset:3px;}
.dashboard-overview .overview-attention-status {width:fit-content; padding:5px 9px; border-radius:8px; font-size:12px; font-weight:700; line-height:1.5; overflow-wrap:anywhere;}
.dashboard-overview .overview-status-overdue {background:#f8e6df; color:#884633;}
.dashboard-overview .overview-status-review {background:#eee9f8; color:#66508d;}
.dashboard-overview .overview-status-soon {background:#f8edd5; color:#79551e;}
.dashboard-overview .overview-attention-body {display:grid; gap:3px;}
.dashboard-overview .overview-attention-body > strong {font-size:16px; font-weight:700; overflow-wrap:anywhere;}
.dashboard-overview .overview-attention-body > span, .dashboard-overview .overview-attention-body > small {color:var(--overview-muted); font-size:14px; line-height:1.5; overflow-wrap:anywhere;}
.dashboard-overview .overview-attention-body .overview-due {color:#555365;}
.dashboard-overview .overview-arrow {align-self:center; color:#766488; font-size:20px;}
.dashboard-overview .overview-attention-footer {display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 14px; padding:10px 26px 16px; border-top:1px solid #eee6dd; color:var(--overview-muted); font-size:14px;}
.dashboard-overview .overview-attention-footer > div {display:flex; flex-wrap:wrap; gap:4px 18px;}
.dashboard-overview .overview-metrics-section {margin-bottom:30px;}
.dashboard-overview .overview-summary-heading {padding:0 0 14px; align-items:center;}
.dashboard-overview .overview-metrics {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; border-block:1px solid var(--overview-line);}
.dashboard-overview .overview-metric {display:flex; flex-direction:column; padding:22px 24px; border:0; border-radius:0; background:#fff; box-shadow:none;}
.dashboard-overview .overview-metric + .overview-metric {border-left:1px solid var(--overview-line);}
.dashboard-overview .overview-metric-mpg {background:#f8f6fc;}
.dashboard-overview .overview-metric > span {color:#59596c; font-size:14px; font-weight:600;}
.dashboard-overview .overview-metric > strong {margin:6px 0 8px; color:#303446; font:800 clamp(27px,2.6vw,36px)/1.2 var(--display); letter-spacing:-1.1px; overflow-wrap:anywhere;}
.dashboard-overview .overview-metric > strong small {font:600 14px/1.4 var(--font); color:#646076; letter-spacing:0;}
.dashboard-overview .overview-metric > p {margin:auto 0 0; color:var(--overview-muted); font-size:13px; line-height:1.55;}
.dashboard-overview .overview-chart-legend {display:flex; flex-wrap:wrap; gap:12px 24px; padding:0 26px 8px; color:#575869; font-size:14px;}
.dashboard-overview .overview-chart-legend span {display:flex; align-items:center; gap:8px;}
.dashboard-overview .overview-chart-legend i {display:block; width:20px; height:3px; border-radius:2px;}
.dashboard-overview .overview-real-dot {background:#788bd1;}
.dashboard-overview .overview-computer-dot {background:#b46e8c;}
.dashboard-overview .overview-trend .chart-wrap {height:270px; padding:8px 22px 0;}
.dashboard-overview .overview-trend:not(.overview-chart-enabled) .chart-wrap,
.dashboard-overview .overview-trend:not(.overview-chart-enabled) .overview-chart-legend {display:none;}
.dashboard-overview .overview-chart-note {padding:0 26px 22px; font-size:13px; line-height:1.5;}
.dashboard-overview .overview-chart-note a {text-decoration:underline;}
.dashboard-overview .overview-early-note {display:flex; align-items:flex-start; gap:16px; margin:0 0 28px; padding:18px 22px; border:0; border-left:3px solid #ddd3eb; border-radius:0; background:#faf9fc;}
.dashboard-overview .overview-note-symbol {display:grid; width:34px; height:34px; flex:0 0 34px; place-items:center; border-radius:10px; background:#eee8f9; color:#6a548f; font-size:21px;}
.dashboard-overview .overview-early-note strong {font-size:16px;}
.dashboard-overview .overview-early-note p {font-size:14px; max-width:780px;}
.dashboard-overview .overview-early-note .overview-text-link {margin-top:4px;}
.dashboard-overview .overview-records {padding:0 26px 12px;}
.dashboard-overview .overview-records li + li {border-top:1px solid #eeeaf2;}
.dashboard-overview .overview-record {display:grid; grid-template-columns:62px minmax(0,1fr) minmax(110px,auto) 20px; gap:18px; align-items:center; padding:17px 0; border-radius:6px;}
.dashboard-overview .overview-record time {display:flex; flex-direction:column; gap:2px; color:#666477; font-size:13px;}
.dashboard-overview .overview-record time strong {font-size:14px; color:#454359;}
.dashboard-overview .overview-record-body {display:grid; justify-items:start; gap:3px;}
.dashboard-overview .overview-record-body > strong {font-size:16px; overflow-wrap:anywhere;}
.dashboard-overview .overview-record:hover .overview-record-body > strong {text-decoration:underline; text-underline-offset:3px;}
.dashboard-overview .overview-record-body small, .dashboard-overview .overview-record-amount small {font-size:13px; color:var(--overview-muted); overflow-wrap:anywhere;}
.dashboard-overview .overview-record-kind {font-size:11px; font-weight:700; color:#62548b;}
.dashboard-overview .overview-kind-maintenance {color:#456b59;}
.dashboard-overview .overview-kind-expense {color:#855941;}
.dashboard-overview .overview-record-amount {display:grid; gap:3px; text-align:right;}
.dashboard-overview .overview-record-amount strong {font-size:16px; white-space:nowrap;}
.dashboard-overview .overview-other-assets {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px;}
.dashboard-overview .overview-other-assets > :only-child {grid-column:1/-1;}
.dashboard-overview .overview-equipment .overview-section-heading, .dashboard-overview .overview-shared .overview-section-heading {flex-wrap:wrap; gap:5px 18px; padding-bottom:12px;}
.dashboard-overview .overview-equipment .overview-section-heading,
.dashboard-overview .overview-shared .overview-section-heading {background:transparent;}
.dashboard-overview .overview-equipment-cost {display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; padding:20px 26px 4px;}
.dashboard-overview .overview-equipment-cost > strong {font:750 26px/1.2 var(--display);}
.dashboard-overview .overview-equipment-cost > span {color:var(--overview-muted); font-size:14px;}
.dashboard-overview .overview-equipment-cost small {display:block; font-size:13px;}
.dashboard-overview .overview-assets-list {padding:7px 26px;}
.dashboard-overview .overview-assets-list li + li {border-top:1px solid #eeebf3;}
.dashboard-overview .overview-assets-list a {display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:2px 15px; min-height:60px; padding:11px 0;}
.dashboard-overview .overview-assets-list strong {font-size:15px; overflow-wrap:anywhere;}
.dashboard-overview .overview-assets-list span {color:var(--overview-muted); font-size:13px;}
.dashboard-overview .overview-assets-list a:hover strong {text-decoration:underline;}
.dashboard-overview .overview-section-note {padding:0 26px 22px; font-size:13px;}
.dashboard-overview .overview-welcome {display:flex; align-items:flex-start; gap:24px; padding:28px; border:0; border-left:3px solid #d9cee9; border-radius:0; background:#faf9fc;}
.dashboard-overview .overview-welcome-icon {display:grid; width:64px; height:64px; flex:0 0 64px; place-items:center; border:1px solid #ddd3ee; border-radius:18px; background:#ede6f9; color:#745da1;}
.dashboard-overview .overview-welcome-icon svg {width:34px; height:34px; stroke-width:1.4;}
.dashboard-overview .overview-welcome h2 {font-size:25px;}
.dashboard-overview .overview-welcome p {max-width:650px; margin:10px 0 22px; font-size:16px;}
.dashboard-overview .overview-setup-link {margin-top:16px;}
.dashboard-overview .overview-first-record {display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px; padding:28px; background:#f6f3fc; border-color:#e1d8ef;}
.dashboard-overview .overview-first-record > div:first-child {max-width:550px; flex:1 1 320px;}
.dashboard-overview .overview-first-record h2 {margin-top:6px;}
.dashboard-overview .overview-first-record p {font-size:15px;}
.dashboard-overview .overview-details {margin-bottom:0; border:0; border-top:1px solid var(--overview-line); border-radius:0; background:#fff; box-shadow:none;}
.dashboard-overview .overview-details > summary {display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:82px; padding:21px 4px; cursor:pointer; list-style:none;}
.dashboard-overview .overview-details > summary::-webkit-details-marker {display:none;}
.dashboard-overview .overview-details > summary strong {display:block; font-size:17px; font-weight:700;}
.dashboard-overview .overview-details > summary small {display:block; margin-top:3px; color:var(--overview-muted); font-size:14px; overflow-wrap:anywhere;}
.dashboard-overview .overview-disclosure-icon {font-size:24px; color:#746188; transition:transform .15s;}
.dashboard-overview .overview-details[open] > summary {border-bottom:1px solid var(--overview-line);}
.dashboard-overview .overview-details[open] > summary .overview-disclosure-icon {transform:rotate(45deg);}
.dashboard-overview .overview-details-body {padding:0 24px 24px;}
.dashboard-overview .overview-detail-links {display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; padding-top:8px;}
.dashboard-overview .overview-details .ownership-grid {grid-template-columns:minmax(0,1fr);}
.dashboard-overview .overview-details .ownership-section {margin:22px 0;}
.dashboard-overview .overview-details .ownership-section-title {flex-wrap:wrap; gap:6px 14px;}
.dashboard-overview .overview-details .ownership-section-title > span {color:var(--overview-muted); font-size:14px;}
.dashboard-overview .overview-details .card {box-shadow:none;}
.dashboard-overview .overview-details .card-header {flex-wrap:wrap; padding:22px 22px 0;}
.dashboard-overview .overview-details .card-kicker, .dashboard-overview .overview-details .card-subtitle {color:var(--overview-muted); font-size:13px;}
.dashboard-overview .overview-details .value-badge small {color:#615574; font-size:12px;}
.dashboard-overview .overview-details .value-badge strong {color:#514267; font-size:21px;}
.dashboard-overview .overview-details .ownership-ledger-top {padding:20px 22px; gap:12px;}
.dashboard-overview .overview-details .ownership-ledger-top small {color:#616074; font-size:12px; text-transform:none;}
.dashboard-overview .overview-details .ownership-ledger-top span {color:var(--overview-muted); font-size:12px;}
.dashboard-overview .overview-details .ownership-ledger-top strong {font-size:24px; overflow-wrap:anywhere;}
.dashboard-overview .overview-details .ownership-cost-table {margin:0 22px;}
.dashboard-overview .overview-details .ownership-cost-table > div {min-height:44px; gap:10px; padding:10px 12px; font-size:14px;}
.dashboard-overview .overview-details .ownership-cost-table > div:first-child {font-size:12px; color:#5e596c; text-transform:none;}
.dashboard-overview .overview-details .ownership-cost-table span {color:#5e596c;}
.dashboard-overview .overview-details .ownership-cost-table b {color:#363447;}
.dashboard-overview .overview-details .valuation-footer {flex-wrap:wrap; padding:20px 22px;}
.dashboard-overview .overview-details .valuation-footer strong {font-size:14px;}
.dashboard-overview .overview-details .valuation-footer span, .dashboard-overview .overview-details .valuation-footer small {color:var(--overview-muted); font-size:13px;}
.dashboard-overview .overview-details .valuation-actions {flex-wrap:wrap;}
.dashboard-overview .overview-details .ownership-stat-grid {grid-template-columns:repeat(5,minmax(0,1fr)); margin:16px 22px 0;}
.dashboard-overview .overview-details .ownership-stat-grid small {color:var(--overview-muted); font-size:12px;}
.dashboard-overview .overview-details .ownership-stat-grid strong {font-size:20px; overflow-wrap:anywhere;}
.dashboard-overview .overview-details .ownership-stat-grid em {color:var(--overview-muted); font-size:13px;}
.dashboard-overview .overview-details .high-low-list {margin:18px 22px 22px;}
.dashboard-overview .overview-details .high-low-list > div {font-size:14px;}
.dashboard-overview .overview-details .high-low-list span {color:var(--overview-muted);}
.dashboard-overview .overview-comparison {padding:22px 25px;}
.dashboard-overview .overview-comparison p {font-size:14px;}
.dashboard-overview .overview-comparison-values {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; margin:0 0 16px;}
.dashboard-overview .overview-comparison-values > div {padding:15px; background:#f7f5fb; border-radius:12px;}
.dashboard-overview .overview-comparison-values dt {color:#5d586e; font-size:14px; overflow-wrap:anywhere;}
.dashboard-overview .overview-comparison-values dd {margin:7px 0 0; font:750 21px/1.3 var(--display); overflow-wrap:anywhere;}
.dashboard-overview .overview-comparison-values dd small {font:600 13px var(--font);}
@media (max-width:1100px) {
 .dashboard-overview .overview-heading {display:block;}
 .dashboard-overview .overview-heading > .overview-actions {justify-content:flex-start; margin-top:14px;}
 .dashboard-overview .overview-metrics {gap:0;}
 .dashboard-overview .overview-metric {padding:20px;}
 .dashboard-overview .overview-other-assets {grid-template-columns:minmax(0,1fr); gap:0;}
 .dashboard-overview .overview-details .ownership-stat-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:640px) {
 .dashboard-overview {font-size:16px;}
 .dashboard-overview h2 {font-size:20px;}
 .dashboard-overview .overview-section-heading {flex-wrap:wrap; gap:6px 14px; padding:20px 20px 14px;}
 .dashboard-overview .overview-section-heading > div {flex-basis:100%;}
 .dashboard-overview .overview-section-heading > a {flex-shrink:1;}
 .dashboard-overview .overview-summary-heading {padding:0 0 12px;}
 .dashboard-overview .overview-heading {margin-bottom:23px;}
 .dashboard-overview .overview-actions .button {flex:1 1 auto;}
 .dashboard-overview .overview-actions .overview-text-link {font-size:15px;}
 .dashboard-overview .overview-metrics {grid-template-columns:minmax(0,1fr); gap:0;}
 .dashboard-overview .overview-metric + .overview-metric {border-left:0; border-top:1px solid var(--overview-line);}
 /* Labels keep a readable width; larger text can wrap the value onto a new row. */
 .dashboard-overview .overview-metric {display:flex; flex-direction:row; flex-wrap:wrap; gap:4px 14px; padding:18px 20px;}
 .dashboard-overview .overview-metric > span {flex:1 1 9em; min-width:min(100%,9em); align-self:center; font-size:14px;}
 .dashboard-overview .overview-metric > strong {flex:0 1 auto; max-width:100%; margin:0 0 0 auto; font-size:28px; text-align:right;}
 .dashboard-overview .overview-metric > p {flex:1 0 100%; margin-top:4px; font-size:13px;}
 .dashboard-overview .overview-metric > .metric-inline-link {flex:1 0 100%;}
 .dashboard-overview .overview-attention-list {padding:0 20px 7px;}
 .dashboard-overview .overview-attention-item {grid-template-columns:minmax(0,1fr) 20px; gap:8px 12px;}
 .dashboard-overview .overview-attention-status {grid-column:1;}
 .dashboard-overview .overview-attention-body {grid-column:1;}
 .dashboard-overview .overview-attention-item > .overview-arrow {grid-column:2; grid-row:1/3;}
 .dashboard-overview .overview-attention-footer {padding:10px 20px 14px;}
 .dashboard-overview .overview-chart-legend {padding:0 20px 8px; gap:10px 16px; font-size:13px;}
 .dashboard-overview .overview-trend .chart-wrap {height:235px; padding:4px 10px 0;}
 .dashboard-overview .overview-chart-note {padding:0 20px 20px;}
 .dashboard-overview .overview-early-note {gap:10px; padding:18px;}
 .dashboard-overview .overview-note-symbol {display:none;}
 .dashboard-overview .overview-records {padding:0 20px 7px;}
 .dashboard-overview .overview-record {grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; padding:18px 0;}
 .dashboard-overview .overview-record time {grid-column:1/-1; flex-direction:row; gap:5px; font-size:12px;}
 .dashboard-overview .overview-record time strong {font-size:12px; font-weight:500; color:var(--overview-muted);}
 .dashboard-overview .overview-record-body {grid-column:1; grid-row:2;}
 .dashboard-overview .overview-record-amount {grid-column:2; grid-row:2; max-width:100px;}
 .dashboard-overview .overview-record > .overview-arrow {display:none;}
 .dashboard-overview .overview-record-amount small {font-size:12px;}
 .dashboard-overview .overview-assets-list {padding:7px 20px;}
 .dashboard-overview .overview-equipment-cost {padding:18px 20px 4px;}
 .dashboard-overview .overview-section-note {padding:0 20px 20px;}
 .dashboard-overview .overview-welcome {display:block; padding:25px;}
 .dashboard-overview .overview-welcome-icon {margin-bottom:20px;}
 .dashboard-overview .overview-welcome h2 {font-size:23px;}
 .dashboard-overview .overview-first-record {padding:24px; gap:20px;}
 .dashboard-overview .overview-details > summary {padding:20px;}
 .dashboard-overview .overview-details > summary strong {font-size:16px;}
 .dashboard-overview .overview-details-body {padding:0 12px 18px;}
 .dashboard-overview .overview-details .ownership-section-title {padding:0 7px;}
 .dashboard-overview .overview-details .card-header {padding:18px 14px 0;}
 .dashboard-overview .overview-details .ownership-ledger-top {grid-template-columns:minmax(0,1fr); padding:16px 14px;}
 .dashboard-overview .overview-details .ownership-cost-table {margin:0 14px;}
 .dashboard-overview .overview-details .ownership-cost-table > div {grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px 10px; gap:8px 12px; font-size:14px;}
 .dashboard-overview .overview-details .ownership-cost-table > div:not(:first-child) > span {grid-column:1/-1;}
 .dashboard-overview .overview-details .ownership-cost-table > div:first-child {font-size:13px;}
 .dashboard-overview .overview-details .ownership-cost-table > div:first-child > span {display:none;}
 .dashboard-overview .overview-details .ownership-cost-table b, .dashboard-overview .overview-details .ownership-cost-table strong {text-align:left;}
 .dashboard-overview .overview-details .ownership-cost-table b, .dashboard-overview .overview-details .ownership-cost-table strong {overflow-wrap:anywhere;}
 .dashboard-overview .overview-details .ownership-stat-grid {margin:14px 14px 0;}
 .dashboard-overview .overview-details .valuation-footer {padding:18px 14px;}
 .dashboard-overview .overview-details .high-low-list {margin:16px 14px;}
 .dashboard-overview .overview-details .high-low-list > div {grid-template-columns:1fr 1fr; font-size:13px;}
 .dashboard-overview .overview-details .high-low-list span {grid-column:1/-1;}
 .dashboard-overview .overview-details .high-low-list strong {text-align:left;}
 .dashboard-overview .overview-detail-links {padding-inline:7px;}
 .dashboard-overview .overview-comparison {padding:20px;}
 .dashboard-overview .overview-comparison-values {grid-template-columns:minmax(0,1fr);}
}
@media (max-width:360px) {
 .dashboard-overview .overview-heading > .overview-actions .button {width:100%;}
 .dashboard-overview .overview-welcome, .dashboard-overview .overview-first-record {padding:22px 20px;}
 .dashboard-overview .overview-metric {column-gap:8px;}
 .dashboard-overview .overview-metric > strong {font-size:25px;}
 .dashboard-overview .overview-metric > strong small {font-size:12px;}
 .dashboard-overview .overview-details .ownership-cost-table {margin-inline:8px;}
}
@media (prefers-reduced-motion:reduce) {.dashboard-overview .overview-disclosure-icon {transition:none;}}

/* ---- vehicle-comparison ---- */
.dashboard-overview .vehicle-comparison { color:#40394f; }
.dashboard-overview .overview-heading p { overflow-wrap:anywhere; }
.vehicle-comparison .comparison-scope { margin:0 0 16px; color:#62586f; font-size:14px; line-height:1.6; }
.dashboard-overview .comparison-values { gap:14px; align-items:stretch; }
.comparison-values > div { min-width:0; padding:18px; border:1px solid #e6e0ed; border-radius:13px; background:#fff; }
.comparison-values > .comparison-own { background:#f5f1fc; }
.dashboard-overview .comparison-values dt { margin:0; color:#544963; font-size:15px; line-height:1.5; font-weight:600; overflow-wrap:anywhere; }
.dashboard-overview .comparison-values dd { margin:12px 0; color:#393244; font-size:28px; line-height:1.25; font-weight:700; }
.dashboard-overview .comparison-values dd small { font-size:14px; font-weight:600; }
.dashboard-overview .comparison-values .comparison-state { font-size:18px; line-height:1.5; }
.dashboard-overview .comparison-values p { margin:8px 0 0; color:#62586f; font-size:14px; line-height:1.6; font-weight:400; }
.comparison-coverage span { display:block; font-weight:600; }
.vehicle-comparison .comparison-method { margin-top:20px; border-top:1px solid #e6e0ed; }
.comparison-method > summary { display:list-item; min-height:48px; padding:16px 0 10px; color:#61517f; font-size:15px; font-weight:600; cursor:pointer; }
.comparison-criteria { display:grid; grid-template-columns:1fr 1fr; gap:14px 28px; }
.comparison-criteria > section { min-width:0; }.comparison-criteria h3 { margin:12px 0 8px; font-size:16px; }
.comparison-criteria ul { margin:0; padding-left:20px; }.comparison-criteria li { padding-bottom:6px; overflow-wrap:anywhere; }
.vehicle-comparison .comparison-method p, .comparison-criteria li { color:#62586f; font-size:15px; line-height:1.7; }
.vehicle-comparison .comparison-method p { margin:12px 0; }
.comparison-discovery { margin-top:20px; border-top:1px solid #e6e0ed; padding-top:10px; }
.comparison-discovery > div { display:flex; flex-wrap:wrap; gap:4px 24px; }
.vehicle-comparison .overview-text-link { min-height:44px; font-size:14px; }
.vehicle-comparison .comparison-discovery p, .vehicle-comparison .comparison-unavailable { margin:8px 0 0; color:#62586f; font-size:14px; line-height:1.6; }
.comparison-method > summary:focus-visible, .vehicle-comparison a:focus-visible { outline:3px solid #8470b8; outline-offset:3px; border-radius:3px; }
@media(max-width:760px) { .dashboard-overview .comparison-values { grid-template-columns:minmax(0,1fr); }.comparison-criteria { grid-template-columns:minmax(0,1fr); } }
@media(max-width:640px) { .dashboard-overview .vehicle-comparison { padding:18px; }.comparison-values > div { padding:16px; }.vehicle-comparison .overview-text-link { font-size:15px; } }

/* ---- record-save ---- */
.record-save-state {margin: 18px 28px 0; padding: 16px; border: 1px solid #ddd5ef; border-radius: 12px; background: #f7f4fc; color: #4d4265;}
.record-save-state[hidden], .record-save-recovery-actions form[hidden] {display: none;}
.record-save-state.record-save-error {border-color: #f1c9c3; background: #fff1ef; color: #a94d40;}
.record-save-state p {margin: 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere;}
.record-save-state .record-save-help {margin-top: 8px; font-size: 14px;}
.record-save-recovery-actions {display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px;}
.record-save-recovery-actions:empty {display: none;}
.record-save-recovery-actions form {margin: 0;}
.record-save-recovery-actions .button {min-height: 44px; font-size: 14px;}
.record-save-fields {min-width: 0; margin: 0; padding: 0; border: 0;}
.record-save-fields:disabled input, .record-save-fields:disabled textarea, .record-save-fields:disabled select {opacity: 1; color: #626378; -webkit-text-fill-color: #626378;}
/* Long native option labels can paint outside their box in narrow WebKit layouts. */
.service-receipt-picker.field select {min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;appearance:none;-webkit-appearance:none;padding-right:36px;background-image:linear-gradient(45deg,transparent 50%,var(--muted,#626378) 50%),linear-gradient(135deg,var(--muted,#626378) 50%,transparent 50%);background-position:calc(100% - 19px) 50%,calc(100% - 14px) 50%;background-size:5px 5px;background-repeat:no-repeat;}
.service-receipt-remove.field>span {justify-content:flex-start;align-items:center;gap:10px;min-height:44px;}
.service-receipt-remove.field input[type=checkbox] {width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:0;padding:0;accent-color:var(--green);}
@media (max-width: 640px) {
    .record-save-state {margin: 16px 16px 0; padding: 14px;}
    .record-save-recovery-actions {flex-direction: column;}
    .record-save-recovery-actions .button {width: 100%; font-size: 16px;}
}

/* ---- service-context ---- */
.service-reuse, .service-candidates, .service-context-note, .service-context-notice { color: #40394f; }
.service-reuse { margin: -10px 0 24px; border: 1px solid #e2ddef; border-radius: 14px; background: #fff; }
.service-reuse > summary { min-height: 52px; padding: 15px 18px; color: #5e4f80; font-size: 16px; font-weight: 700; cursor: pointer; }
.service-reuse > summary span { display: inline; margin-left: 10px; color: #685f79; font-size: 14px; font-weight: 400; overflow-wrap: anywhere; }
.service-context-list { padding: 0 18px 12px; }
.service-context-list > p { margin: 6px 0 12px; color: #655d72; font-size: 14px; line-height: 1.6; }
.service-context-list article { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid #ebe6f2; }
.service-context-list article > div { flex: 1; min-width: 0; }
.service-context-list strong, .service-context-list span, .service-context-list small { display: block; overflow-wrap: anywhere; }
.service-context-list strong { font-size: 16px; line-height: 1.5; }
.service-context-list span, .service-context-list small { margin-top: 4px; color: #655d72; font-size: 14px; line-height: 1.55; }
.service-context-list a, .service-candidates > header > a, .service-candidates > footer a, .service-baseline-actions a { display: inline-flex; min-height: 44px; align-items: center; color: #61517f; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.service-context-list a { flex: 0 0 auto; }
.service-candidates { margin-bottom: 24px; }
.service-candidates > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px 0; }
.service-candidates h2 { margin: 0; font-size: 20px; line-height: 1.4; }
.service-candidates header p { margin: 7px 0 0; color: #655d72; font-size: 14px; overflow-wrap: anywhere; }
.service-candidates-guidance { margin: 15px 22px; color: #655d72; font-size: 15px; line-height: 1.6; }
.service-candidates > footer { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 8px 22px 16px; border-top: 1px solid #ebe6f2; }
.service-context-note { flex: 0 0 auto; padding: 16px 18px; margin-bottom: 18px; border: 1px solid #dfd8ec; border-radius: 12px; background: #f8f5fc; }
.service-context-note[hidden] { display: none; }
.service-context-note > strong, .service-context-note > span { display: block; overflow-wrap: anywhere; }
.service-context-note > strong { font-size: 16px; }
.service-context-note > span { margin-top: 5px; font-size: 14px; color: #5e526f; }
.service-context-note p { margin: 10px 0 0; font-size: 14px; line-height: 1.6; }
.service-context-note small { display: block; margin-top: 10px; color: #645b74; font-size: 13px; line-height: 1.6; }
.service-context-notice { margin: 0 0 20px; padding: 15px 18px; border: 1px solid #e2ddec; border-radius: 12px; background: #faf8fd; font-size: 15px; line-height: 1.6; }
.service-baseline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; }
.service-context-rule-actions { flex-wrap: wrap; }
.service-context-rule-actions > a { display: inline-flex; min-height: 44px; align-items: center; color: #61517f; font-size: 14px; }
.service-context-rule-actions button { min-height: 44px; font-size: 14px; }
.service-context-rule-actions .remove-rule { color: #93474f; }
.modal-form[data-draft-form^="maintenance:"] .schedule-rule-picker { margin-bottom: 18px; }
.modal-form[data-draft-form^="maintenance:"] .schedule-rule-picker .field-hint { color: #625578 !important; font-size: 14px; line-height: 1.5; }
.service-reuse > summary:focus-visible, .service-context-list a:focus-visible, .service-candidates a:focus-visible, .service-baseline-actions a:focus-visible { outline: 3px solid #8470b8; outline-offset: 3px; border-radius: 4px; }
@media (max-width: 640px) {
    .service-reuse > summary span { display: block; margin: 5px 0 0; }
    .service-context-list article { align-items: flex-start; flex-direction: column; gap: 3px; }
    .service-context-list article a { width: 100%; }
    .service-candidates > header { padding: 18px 16px 0; }
    .service-candidates-guidance { margin-inline: 16px; }
    .service-candidates > footer { padding-inline: 16px; }
    .service-context-note { padding: 14px; }
}

/* ---- metric-evidence ---- */
.metric-inline-link, .metric-explanation-links a { display:inline-flex; align-items:center; min-height:44px; color:#61517f; font-size:14px; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.overview-metric > .metric-inline-link { margin-top:8px; }
.metric-explanation-links { display:flex; flex-wrap:wrap; gap:4px 22px; padding:0 24px 12px; }
.fuel-chart-scope { margin:0; padding:0 24px 14px; color:#62596f; font-size:14px; line-height:1.5; }
.fuel-evidence-trend:not(.overview-chart-enabled) .chart-wrap, .fuel-evidence-trend:not(.overview-chart-enabled) .fuel-chart-legend { display:none; }
.fuel-evidence-trend .legend-green { background:#788bd1; }.fuel-evidence-trend .legend-purple { background:#b46e8c; }
.fuel-evidence-trend .card-header { flex-wrap:wrap; gap:14px; }
.fuel-evidence-trend .big-inline-metric { max-width:100%; }
.fuel-evidence-trend .big-inline-metric small { display:block; color:#62576f; font-size:14px; line-height:1.5; white-space:normal; }
.metric-period-form { min-width:240px; max-width:100%; margin:0; }
.metric-period-form label { display:block; margin-bottom:7px; color:#62576f; font-size:14px; font-weight:600; }
.metric-period-form > div { display:flex; gap:10px; }
.metric-period-form select { min-width:0; width:100%; min-height:44px; border:1px solid #c8bfd9; border-radius:10px; padding:9px 12px; color:#40394f; background:#fff; font-size:16px; }
.metric-period-form .button { min-height:44px; flex:none; font-size:14px; }
.metric-period-form select:focus-visible { outline:3px solid #8470b8; outline-offset:3px; }
.metric-period-explanation { margin:14px 0 24px; padding:0 4px; }
.metric-period-boundary { border-left:3px solid #c8bcdf; padding-left:12px; }
.metric-outside-period { color:#62517b; font-size:14px; line-height:1.5; }
.metric-evidence { color:#40394f; }
.metric-evidence-nav { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px 24px; margin:-6px 0 20px; }
.metric-evidence-nav > div { display:flex; flex-wrap:wrap; gap:8px 22px; }
.metric-evidence a:not(.button) { color:#61517f; text-decoration:underline; text-underline-offset:3px; }
.metric-evidence-nav a, .metric-record-actions a, .metric-evidence-card > header > a, .metric-interval-anchor a { display:inline-flex; align-items:center; min-height:44px; font-size:14px; font-weight:600; }
.metric-evidence-nav a[aria-current] { color:#393244; text-decoration-thickness:2px; }
.metric-evidence-summary, .metric-evidence-notice { padding:24px 26px; margin-bottom:24px; }
.metric-evidence h2 { margin:6px 0 0; font-size:22px; line-height:1.35; }
.metric-evidence p { line-height:1.65; }
.metric-evidence-summary > p, .metric-evidence-notice p { margin:14px 0 0; font-size:15px; color:#61586e; }
.metric-evidence-eyebrow { color:#625571; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.metric-formula { display:flex; flex-wrap:wrap; align-items:center; gap:10px 32px; margin-top:17px; }
.metric-formula > div { display:flex; align-items:baseline; gap:8px; }
.metric-formula strong { font-size:36px; letter-spacing:-1.1px; line-height:1.25; overflow-wrap:anywhere; }
.metric-formula span { font-size:16px; color:#655b73; }
.metric-formula p { margin:0; font-size:16px; color:#51485e; }
.metric-explanation { margin-top:18px; border-top:1px solid #e9e4ef; }
.metric-explanation > summary { min-height:48px; padding:15px 0 9px; color:#61517f; font-size:15px; font-weight:600; cursor:pointer; }
.metric-explanation p { margin:8px 0; color:#62586f; font-size:15px; line-height:1.65; }
.metric-evidence-card { margin-bottom:24px; }
.metric-evidence-card > header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:22px 26px; border-bottom:1px solid #e9e4ef; }
.metric-evidence-card > header > div { min-width:0; }
.metric-evidence-card > header h2 { margin:0; overflow-wrap:anywhere; }
.metric-evidence-card > header p { margin:7px 0 0; font-size:14px; color:#655c73; }
.metric-record-list { padding:0 26px; }
.metric-record { padding:20px 0 15px; border-bottom:1px solid #e9e4ef; }
.metric-record:last-child { border-bottom:0; }
.metric-record-title strong { display:block; font-size:16px; line-height:1.5; overflow-wrap:anywhere; }
.metric-record-title span { display:block; margin-top:4px; color:#655c73; font-size:14px; line-height:1.55; overflow-wrap:anywhere; }
.metric-record-facts, .metric-cost-breakdown { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px 22px; margin:16px 0 10px; }
.metric-record-facts dt, .metric-cost-breakdown dt { font-size:14px; color:#655c73; line-height:1.5; }
.metric-record-facts dd, .metric-cost-breakdown dd { margin:4px 0 0; font-size:16px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; }
.metric-record-facts small { color:#655c73; font-size:14px; line-height:1.5; }
.metric-record-note { margin:10px 0 0; color:#665c72; font-size:14px; }
.metric-record-actions { display:flex; flex-wrap:wrap; gap:3px 24px; }
.metric-interval-anchor { margin:20px 26px 0; padding:16px 18px 8px; background:#f7f4fc; border:1px solid #e5deef; border-radius:12px; }
.metric-interval-anchor strong, .metric-interval-anchor span { display:block; font-size:15px; line-height:1.6; }
.metric-interval-anchor span { margin-top:6px; color:#62576f; }
.metric-list-intro { margin:18px 26px 0; font-size:14px; color:#62576f; }
.metric-pagination { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px 16px; padding:18px 26px; border-top:1px solid #e9e4ef; }
.metric-pagination span { color:#62576f; font-size:14px; }
.metric-pagination .button { min-height:44px; font-size:14px; }
.metric-empty { margin:0; padding:24px 0; font-size:15px; color:#62576f; }
.metric-cost-breakdown { grid-template-columns:repeat(3,minmax(0,1fr)); padding-top:16px; border-top:1px solid #e9e4ef; }
.metric-cost-record { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 24px; }
.metric-cost-amount { text-align:right; }.metric-cost-amount strong, .metric-cost-amount span { display:block; }
.metric-cost-amount strong { font-size:18px; line-height:1.5; }.metric-cost-amount span { margin-top:4px; font-size:14px; color:#655c73; }
.metric-cost-record .metric-record-actions { grid-column:1/-1; }
.metric-export-note { font-size:14px; color:#62576f; }
.ownership-metric-basis { margin:0 24px 20px; }.metric-basis-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px 24px; }
.metric-basis-grid h3 { font-size:16px; margin:10px 0; color:#40394f; }
.metric-evidence a:focus-visible, .metric-explanation summary:focus-visible, .metric-inline-link:focus-visible { outline:3px solid #8470b8; outline-offset:3px; border-radius:3px; }
@media(max-width:640px) {
 .metric-period-form { width:100%; min-width:0; }.metric-period-form .button { font-size:16px; }
 .metric-evidence-summary, .metric-evidence-notice { padding:20px 18px; }.metric-evidence h2 { font-size:21px; }
 .metric-evidence-card > header { flex-direction:column; padding:20px 18px 12px; gap:3px; }
 .metric-record-list { padding-inline:18px; }.metric-record-facts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px 14px; }
 .metric-record-facts dt { font-size:14px; }.metric-record-facts dd { font-size:16px; }
 .metric-interval-anchor { margin:18px 18px 0; padding:14px 14px 6px; }.metric-list-intro { margin-inline:18px; }
 .metric-cost-breakdown { grid-template-columns:1fr; gap:9px; }.metric-cost-breakdown > div { display:flex; justify-content:space-between; gap:15px; align-items:baseline; }.metric-cost-breakdown dd { margin:0; }
 .metric-cost-record { grid-template-columns:1fr; }.metric-cost-amount { text-align:left; margin-top:4px; }
 .metric-pagination { padding:16px 18px; }.metric-pagination span { flex-basis:100%; order:-1; }
 .ownership-metric-basis { margin-inline:18px; }.metric-basis-grid { grid-template-columns:1fr; }
 .fuel-chart-scope, .metric-explanation-links { padding-inline:18px; }
}

/* ---- fill-up ---- */
/* A private receipt-like confirmation, without adding another logging workflow. */
.fill-up-summary {max-width:920px;margin-inline:auto;padding-bottom:24px;}
.fill-up-back {display:inline-flex;align-items:center;min-height:44px;margin-bottom:14px;color:var(--muted);text-decoration:underline;text-underline-offset:4px;}
.fill-up-heading {display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;}
.fill-up-heading>div {min-width:0;}
.fill-up-heading h1 {margin:6px 0 8px;font-size:clamp(25px,3vw,34px);line-height:1.2;}
.fill-up-heading p {margin:0;color:var(--muted);overflow-wrap:anywhere;}
.fill-up-heading .card-kicker {overflow-wrap:anywhere;}
.fill-up-heading .button {flex-shrink:0;}
.fill-up-economy,.fill-up-details {padding:clamp(20px,3vw,30px);margin-bottom:22px;}
.fill-up-economy {border-top:3px solid var(--green);}
.fill-up-economy-top,.fill-up-details>header {display:flex;align-items:flex-start;justify-content:space-between;gap:18px;}
.fill-up-economy h2,.fill-up-details h2 {font-size:18px;margin:0;}
.fill-up-real-mpg {margin:8px 0 10px;font-size:clamp(34px,5vw,48px);font-weight:750;line-height:1.2;letter-spacing:-1px;}
.fill-up-real-mpg small {font-size:17px;font-weight:500;letter-spacing:0;color:var(--muted);}
.fill-up-unmeasured {font-size:clamp(22px,3.5vw,30px);letter-spacing:-.4px;}
.fill-up-status {flex-shrink:0;padding:6px 10px;border-radius:8px;background:var(--green-soft);color:var(--green-dark);font-size:13px;font-weight:600;}
.fill-up-calculation-note,.fill-up-interval {margin:10px 0 0;max-width:65ch;color:var(--muted);font-size:15px;line-height:1.6;}
.fill-up-computer {display:grid;grid-template-columns:1fr auto;gap:6px 16px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line);}
.fill-up-computer>span {font-size:15px;}
.fill-up-computer>strong {font-size:18px;}
.fill-up-computer>small {grid-column:1/-1;color:var(--muted);font-size:14px;}
.fill-up-details>header {margin-bottom:22px;align-items:center;}
.fill-up-details>header>span {font-size:14px;color:var(--muted);}
.fill-up-facts {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px 20px;margin:0;}
.fill-up-facts>div {min-width:0;}
.fill-up-facts dt {font-size:14px;color:var(--muted);margin-bottom:5px;overflow-wrap:anywhere;}
.fill-up-facts dd {margin:0;font-weight:650;font-size:18px;overflow-wrap:anywhere;}
.fill-up-facts small {display:block;margin-top:4px;font-size:13px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere;}
.fill-up-text {padding-top:20px;margin-top:22px;border-top:1px solid var(--line);}
.fill-up-text h3 {font-size:15px;margin:0 0 8px;}
.fill-up-text p {font-size:15px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;color:var(--muted);}
.fill-up-receipt {margin-top:24px;}
@media(max-width:740px) {.fill-up-facts {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:480px) {
    .fill-up-facts {grid-template-columns:repeat(auto-fit,minmax(min(100%,6.5em),1fr));}
    .fill-up-heading {align-items:stretch;flex-direction:column;gap:16px;}
    .fill-up-heading .button {width:100%;min-height:46px;}
    .fill-up-economy-top {flex-direction:column;gap:6px;}
    .fill-up-status {flex-shrink:1;max-width:100%;}
    .fill-up-computer {grid-template-columns:minmax(0,1fr);}
    .fill-up-computer>small {grid-column:auto;}
    .fill-up-receipt {width:100%;}
}

/* ---- save-progress ---- */
/* Native POST progress. Uses the existing light/pastel and dark tokens. */
.save-progress-dialog {width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:28px;border:1px solid var(--line);border-radius:20px;background:var(--card);color:var(--ink);box-shadow:var(--shadow);text-align:center;}
.save-progress-dialog::backdrop {background:rgba(24,22,36,.45);}
.save-progress-dialog h2 {margin:18px 0 10px;font-size:24px;line-height:1.3;}
.save-progress-dialog p,.save-progress-notice p {margin:0;color:var(--muted);font-size:15px;line-height:1.65;overflow-wrap:anywhere;}
.save-progress-dialog .button {margin-top:22px;min-height:44px;font-size:15px;white-space:normal;}
.save-progress-spinner {display:block;width:36px;height:36px;margin:auto;border:3px solid var(--green-soft);border-top-color:var(--green-dark);border-radius:50%;animation:save-progress-turn .9s linear infinite;}
html[data-theme="dark"] .save-progress-spinner {border-color:var(--green-soft);border-top-color:var(--green-dark);}
.save-progress-notice {margin:0 0 18px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--green-soft);color:var(--ink);}
.save-progress-notice .button {margin-top:12px;min-height:44px;font-size:15px;}
.save-progress-dialog :focus-visible,.save-progress-review:focus-visible {outline:3px solid var(--green-dark);outline-offset:3px;}
.save-progress-dialog h2:focus:not(:focus-visible) {outline:none;}
@keyframes save-progress-turn {to {transform:rotate(360deg);}}
@media(max-width:640px) {.save-progress-dialog {padding:22px;}.save-progress-dialog .button,.save-progress-notice .button {width:100%;}}
@media(prefers-reduced-motion:reduce) {.save-progress-spinner {animation:none;}}
[data-fuel-field] {min-width:0;}
[data-fuel-field="full_tank"],[data-fuel-field="towed_trailer"],[data-fuel-field="receipt"] {grid-column:1/-1;}
[data-fuel-field="full_tank"] > .field-hint {display:block;margin-top:8px;line-height:1.5;}
[data-fuel-field="receipt"] .upload-field {margin-top:0;}
[data-fuel-field="receipt"] .household-upload {max-width:100%;}
[data-layout-arranging="true"] [data-fuel-field] {display:none!important;}


/* Car overview (dashboard, one vehicle). Plain layout, one accent; tokens below. */
.car-overview{--co-card:#fff;--co-line:#e5dfd5;--co-line-soft:#eee9e1;--co-ink:#1e2230;--co-text:#3d4250;--co-muted:#5b6070;--co-accent:#5a48b5;--co-accent-ink:#fff;--co-accent-soft:#eeebfa;--co-accent-soft-text:#4a4560;--co-track:#ece7df;--co-soon-bg:#fdf0e1;--co-soon:#8a4006;--co-over-bg:#fbe4e0;--co-over:#a12d1e;--co-good-bg:#e7f3ec;--co-good:#23704a;--co-gas:#b06f24;--co-service:#00897b;max-width:680px;margin:0 auto;display:flex;flex-direction:column;gap:28px;color:var(--co-ink);font-family:var(--font);font-size:15px;line-height:1.45}
html:not([data-theme="dark"]) body:has(.car-overview){--canvas:#fcfaf7}
html[data-theme="dark"] .car-overview{--co-card:#24212f;--co-line:#3a3548;--co-line-soft:#322e3f;--co-ink:#f1eef8;--co-text:#d6d1e2;--co-muted:#aba5ba;--co-accent:#a99bf0;--co-accent-ink:#17142a;--co-accent-soft:#2f2945;--co-accent-soft-text:#d6d1e2;--co-track:#3a3548;--co-soon-bg:#3d2e1c;--co-soon:#f3b77a;--co-over-bg:#44232a;--co-over:#ffb4a8;--co-good-bg:#1e3a2c;--co-good:#8fd6ae;--co-gas:#b8782c;--co-service:#00a090}
.car-overview a{color:var(--co-accent)}
.car-overview svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.co-head h1{margin:0;font:800 30px/1.1 var(--display);letter-spacing:-.5px;color:var(--co-ink)}
.co-head p{margin:4px 0 0;color:var(--co-muted)}
.co-head strong{color:var(--co-ink);font-weight:600}
.car-overview .co-mile{display:flex;align-items:center;gap:18px;padding:18px 20px;color:var(--co-ink);text-decoration:none}
.car-overview .co-mile:hover{border-color:var(--co-accent)}
.co-mile>strong{flex:none;font:800 40px/1 var(--display);letter-spacing:-1px}
.co-mile>span{display:flex;flex-direction:column;gap:2px}
.co-mile b{font-size:16px}
.co-mile>span>span{color:var(--co-muted);font-size:14px}
.co-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.car-overview .co-action{min-height:52px;border-radius:16px;border:1px solid #d9d2c6;background:var(--co-card);color:var(--co-ink);display:flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:16px;text-decoration:none}
.car-overview .co-action-primary{background:var(--co-accent);border-color:var(--co-accent);color:var(--co-accent-ink)}
.co-action svg{width:20px;height:20px}
.co-status{display:flex;gap:14px;align-items:flex-start;background:var(--co-card);border:1px solid var(--co-line);border-radius:20px;padding:18px}
.co-status-overdue{border-color:var(--co-over);background:var(--co-over-bg)}
.co-status p{margin:0;color:var(--co-text)}
.co-status .co-status-headline{margin-bottom:6px;font:800 21px/1.2 var(--display);color:var(--co-ink)}
.co-mascot{flex:none;width:64px;height:64px}
.co-mascot img{width:64px;height:64px;display:block}
.co-mascot-dark,html[data-theme="dark"] .co-mascot-light{display:none!important}
html[data-theme="dark"] .co-mascot-dark{display:block!important}
.co-section{display:flex;flex-direction:column;gap:12px}
.co-section h2{margin:0;padding:0 4px;font:800 19px var(--display);color:var(--co-ink)}
.co-section-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.co-section-head h2{padding:0 0 0 4px}
.co-section-head a{font-weight:600;font-size:14px;padding:0 4px}
.co-card{background:var(--co-card);border:1px solid var(--co-line);border-radius:20px}
.co-list{display:flex;flex-direction:column;overflow:hidden}
.car-overview .co-row{display:flex;flex-direction:column;gap:8px;padding:16px 18px;color:var(--co-ink);text-decoration:none;border-bottom:1px solid var(--co-line-soft)}
.co-row:last-child{border-bottom:0}
a.co-row:hover{background:var(--co-accent-soft)}
.co-row-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.co-row-top strong{font-size:16px}
.co-badge{font-size:14px;font-weight:600;color:var(--co-text);white-space:nowrap}
.co-badge-soon,.co-badge-overdue{font-size:13px;padding:3px 10px;border-radius:999px;background:var(--co-soon-bg);color:var(--co-soon)}
.co-badge-overdue{background:var(--co-over-bg);color:var(--co-over)}
.co-progress{display:block;height:8px;border-radius:4px;background:var(--co-track);overflow:hidden}
.co-progress span{display:block;height:8px;border-radius:4px;background:var(--co-accent)}
.co-muted{color:var(--co-muted);font-size:14px}
.car-overview .co-track{display:flex;align-items:center;gap:14px;background:var(--co-accent-soft);border-radius:20px;padding:16px 18px;color:var(--co-ink);text-decoration:none}
.co-track>span:nth-child(2){display:flex;flex-direction:column;gap:2px;flex:1}
.co-track>span:nth-child(2)>span{color:var(--co-accent-soft-text);font-size:14px}
.co-track strong{font-size:16px}
.co-track-icon{width:40px;height:40px;flex:none;border-radius:20px;background:var(--co-card);display:flex;align-items:center;justify-content:center;color:var(--co-accent)}
.co-track-icon svg{width:20px;height:20px}
.co-chevron{width:18px;height:18px;flex:none;color:var(--co-accent);stroke-width:2.2}
.co-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.co-stat{padding:16px;border-radius:18px}
.co-stat strong{display:block;font:800 26px var(--display)}
.co-stat span{color:var(--co-muted);font-size:14px}
.co-costs{padding:16px 18px;display:flex;flex-direction:column;gap:12px}
.co-costs-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.co-costs-total strong:first-child{font-size:16px}
.co-costs-total strong:last-child{font:800 20px var(--display)}
.co-costs-bar{display:flex;gap:2px;height:10px;border-radius:5px;overflow:hidden}
.co-costs-bar span{display:block;height:10px}
.co-costs-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:14px}
.co-costs-list li{display:flex;justify-content:space-between;gap:12px}
.co-costs-list li>span:first-child{display:flex;align-items:center;gap:8px}
.co-costs-list i{width:10px;height:10px;border-radius:3px;display:inline-block}
.co-cost-other{background:var(--co-accent)}.co-cost-gas{background:var(--co-gas)}.co-cost-service{background:var(--co-service)}
.co-driving{padding:18px;display:flex;flex-direction:column;gap:16px}
.co-mpg{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}
.co-mpg>div{display:flex;flex-direction:column;gap:6px}
.co-mpg strong{font:800 40px/1 var(--display);letter-spacing:-1px}
.co-mpg small{font-size:18px;letter-spacing:0;color:var(--co-muted)}
.co-spark{width:112px;height:44px;flex:none;color:var(--co-accent)}
.co-spark polyline{stroke-width:2.5}
.co-spark circle{fill:currentColor;stroke:none}
.co-spark circle.co-spark-last{fill:var(--co-card);stroke:currentColor;stroke-width:2.5}
.co-insight{display:flex;gap:12px;align-items:flex-start}
.co-mpg+.co-insight{padding-top:14px;border-top:1px solid var(--co-line-soft)}
.co-insight p{margin:0;color:var(--co-text)}
.co-insight strong{color:var(--co-ink)}
.co-insight-icon{width:32px;height:32px;flex:none;border-radius:16px;display:flex;align-items:center;justify-content:center;background:var(--co-track);color:var(--co-text)}
.co-insight-good .co-insight-icon{background:var(--co-good-bg);color:var(--co-good)}
.co-insight-icon svg{width:18px;height:18px;stroke-width:2.2}
.car-overview .co-recent{flex-direction:row;justify-content:space-between;align-items:center;gap:12px}
.co-recent>span{display:flex;flex-direction:column}
.co-more{display:flex;flex-wrap:wrap;gap:8px 18px;padding:0 4px;font-size:14px;font-weight:600}
@media(max-width:640px){
  .car-overview{gap:24px}
  .co-actions{order:99;position:sticky;bottom:0;z-index:5;margin:0 -15px -45px;padding:12px 15px 18px;background:var(--canvas);border-top:1px solid var(--co-line)}
}

/* Fill-up form: one-tap highway choices and a live preview. */
.highway-picker{display:flex;flex-direction:column;gap:8px}
.highway-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.highway-choices button{min-height:44px;border-radius:12px;border:1px solid #d9d2c6;background:#fff;color:var(--ink);font:600 14px var(--font);cursor:pointer}
.highway-choices button[aria-pressed="true"]{border:2px solid #5a48b5;background:#eeebfa;color:#3f3290}
.highway-exact{display:flex;align-items:center;gap:10px}
.highway-exact>span:first-child{font-size:14px;font-weight:600;color:var(--muted);white-space:nowrap}
.highway-exact .input-suffix{max-width:140px}
.fuel-preview{padding:12px 14px;border-radius:14px;background:#eeebfa;color:#2f2a4a;font-weight:600;font-size:14px}
html[data-theme="dark"] .highway-choices button{background:#24212f;border-color:#3a3548;color:#f1eee8}
html[data-theme="dark"] .highway-choices button[aria-pressed="true"]{border-color:#a99bf0;background:#2f2945;color:#f1eef8}
html[data-theme="dark"] .fuel-preview{background:#2f2945;color:#f1eef8}
.co-mix{display:flex;flex-direction:column;gap:6px;padding-top:14px;border-top:1px solid var(--co-line-soft)}
.co-mix-labels{display:flex;justify-content:space-between;font-size:14px;color:var(--co-text)}
.co-mix-labels strong{color:var(--co-ink);font-size:16px}
.co-mix-bar{display:block;height:10px;border-radius:5px;background:var(--co-gas);overflow:hidden}
.co-mix-bar span{display:block;height:10px;background:var(--co-accent)}
.co-ratings{border-top:1px solid var(--co-line-soft);padding-top:12px}
.co-ratings summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600;color:var(--co-accent)}
.co-ratings-form{display:flex;flex-direction:column;gap:10px}
.co-ratings-form p{margin:0}
.co-ratings-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.co-ratings-fields label{display:flex;flex-direction:column;gap:4px;font-weight:600;font-size:14px}
.co-ratings-fields input{min-height:46px;border-radius:12px;border:1px solid #d9d2c6;padding:0 12px;font:500 16px var(--font);background:var(--co-card);color:var(--co-ink)}
.co-ratings-save{min-height:46px;border-radius:14px;border:0;background:var(--co-accent);color:var(--co-accent-ink);font:700 15px var(--font);cursor:pointer}
html[data-theme="dark"] .co-ratings-fields input{border-color:var(--co-line)}

/* Fill in the gaps: one question at a time. */
.catchup{max-width:560px}
.catchup-back{font-weight:600;font-size:14px}
.catchup-form{display:flex;flex-direction:column;gap:14px}
.catchup-step{margin:0}
.catchup-question{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.catchup-question legend{padding:0;display:flex;flex-direction:column;gap:4px;margin-bottom:6px}
.catchup-question legend h1{margin:0;font:800 26px/1.2 var(--display);color:var(--co-ink)}
.catchup-question legend span{font-size:17px;color:var(--co-text)}
.catchup-question>p{margin:0}
.catchup-options{display:flex;flex-direction:column;gap:10px}
.catchup-option{position:relative;display:flex;align-items:center;min-height:56px;padding:0 16px;border:1px solid #d9d2c6;border-radius:16px;background:var(--co-card);font-weight:600;font-size:16px;cursor:pointer}
.catchup-option input{width:22px;height:22px;margin:0 12px 0 0;accent-color:var(--co-accent);flex:none}
.catchup-option:has(input:checked){border:2px solid var(--co-accent);background:var(--co-accent-soft)}
.catchup-option:has(input:focus-visible){outline:3px solid var(--co-accent);outline-offset:2px}
.catchup-note{margin:0}
.catchup-form p{margin:0}
.catchup-actions button{font:700 16px var(--font);cursor:pointer}
.catchup-done{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:40px 8px}
.catchup-done .co-mascot,.catchup-done .co-mascot img{width:96px;height:96px}
.catchup-done h1{margin:0;font:800 26px var(--display);color:var(--co-ink)}
.catchup-done p{margin:0;color:var(--co-text);max-width:420px}
.catchup-done .co-action{min-width:240px;padding:0 20px}
html[data-theme="dark"] .catchup-option{border-color:var(--co-line)}

/* Fill-up field order */
.fuel-order-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.fuel-order-toggle{min-height:44px;border:0;background:none;padding:0 4px;color:#5a48b5;font:600 14px var(--font);cursor:pointer}
.fuel-order-help{margin:0 0 10px;padding:10px 12px;border-radius:12px;background:#f6f3ee;color:#3d4250;font-size:14px}
.fuel-order-button{min-height:44px;padding:0 12px;border-radius:10px;border:1px solid #d9d2c6;background:#fff;color:#1e2230;font:600 13px var(--font);cursor:pointer}
.fuel-order-button:hover{background:#f6f3ee}
html[data-theme="dark"] .fuel-order-toggle{color:#a99bf0}
html[data-theme="dark"] .fuel-order-help{background:#2f2945;color:#f1eef8}
html[data-theme="dark"] .fuel-order-button{background:#24212f;border-color:#3a3548;color:#f1eef8}
.fuel-ordering [data-fuel-order="main"],.fuel-ordering .log-details,.fuel-ordering .modal-actions{display:none!important}
.fuel-order-panel{display:grid;gap:8px}
.fuel-order-panel[hidden]{display:none}
.fuel-order-group{margin:8px 0 0;color:#5d6270;font:600 13px var(--font)}
.fuel-order-list{list-style:none;margin:0;padding:0;border:1px solid #e5dfd5;border-radius:14px;background:#fff;overflow:hidden;counter-reset:fo}
.fuel-order-list li{counter-increment:fo;border-top:1px solid #efeae2}
.fuel-order-list li:first-child{border-top:0}
.fuel-order-row{display:flex;align-items:center;width:100%;min-height:48px;padding:0 14px;border:0;background:none;color:#1e2230;font:600 15px var(--font);text-align:left;cursor:pointer}
.fuel-order-row::before{content:counter(fo) ".";min-width:28px;color:#8a8f9c;font-weight:500}
.fuel-order-row:hover{background:#f8f6f2}
.fuel-order-row[aria-pressed="true"]{background:#efeafc;box-shadow:inset 4px 0 0 #5a48b5;color:#2c2170}
.fuel-order-empty{padding:14px;color:#66707c;font-size:14px}
.modal-panel:has(.fuel-ordering){scroll-padding:180px 0 140px}
.fuel-order-bar{position:sticky;bottom:0;z-index:2;margin:6px -4px 0;padding:10px 4px 14px;background:#fff;border-top:1px solid #e5dfd5}
.fuel-order-picked{margin:0 0 8px;color:#3d4250;font:600 14px var(--font)}
.fuel-order-tools{display:flex;flex-wrap:wrap;gap:8px}
.fuel-order-button:disabled{opacity:.4;cursor:default}
html[data-theme="dark"] .fuel-order-list{background:#1d1b26;border-color:#3a3548}
html[data-theme="dark"] .fuel-order-list li{border-color:#2e2a3b}
html[data-theme="dark"] .fuel-order-row{color:#f1eef8}
html[data-theme="dark"] .fuel-order-row:hover{background:#25222f}
html[data-theme="dark"] .fuel-order-row[aria-pressed="true"]{background:#2f2945;box-shadow:inset 4px 0 0 #a99bf0;color:#fff}
html[data-theme="dark"] .fuel-order-group,html[data-theme="dark"] .fuel-order-picked{color:#d6d1e4}
html[data-theme="dark"] .fuel-order-bar{background:var(--nav)!important;border-color:var(--line)}

/* Garage overview: one card per vehicle. */
.go-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.car-overview .go-card{display:flex;align-items:center;gap:14px;padding:14px;color:var(--co-ink);text-decoration:none}
.go-card:hover{border-color:#c9c0b2}
.go-photo{width:72px;height:72px;flex:none;border-radius:16px;object-fit:cover;background:#f1eee8}
.go-photo-empty{display:flex;align-items:center;justify-content:center;color:var(--co-muted)}
.go-photo-empty svg{width:32px;height:32px}
.go-body{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.go-name{font:800 18px var(--display)}
.go-line{font-size:14px;font-weight:600;color:var(--co-text)}
.go-line-overdue{color:var(--co-over)}
.go-line-soon{color:var(--co-soon)}
.go-stats{display:flex;gap:14px;font-size:13px;color:var(--co-muted)}
.go-stats strong{color:var(--co-ink);font-size:15px}
html[data-theme="dark"] .go-photo{background:#2f2945}
/* Official ratings lookup */
.ratings-card{display:flex;flex-direction:column;gap:14px}
.ratings-title{margin:0;font:800 26px/1.2 var(--display);color:var(--co-ink)}
.ratings-help{margin:0;color:var(--co-text);font-size:16px;line-height:1.55}
.ratings-versions{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}
.ratings-versions form{margin:0}
.ratings-version{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:10px 16px;border:1px solid #d9d2c6;border-radius:16px;background:var(--co-card);color:var(--co-ink);font:inherit;text-align:left;cursor:pointer}
.ratings-version:hover,.ratings-version:focus-visible{border-color:var(--co-accent);background:var(--co-accent-soft)}
.ratings-version > span:first-child{flex:1;min-width:0}
.ratings-version strong{display:block;font-size:16px}
.ratings-version small{display:block;margin-top:2px;color:var(--co-text);font-size:14px}
.ratings-use{flex:none;color:var(--co-accent);font-weight:700;font-size:14px}
.ratings-manual{margin:4px 0 0;font-weight:600}
.ratings-source{margin:0;color:var(--co-text);font-size:13px;line-height:1.5}
.imports-detected{margin:0 0 12px;padding:12px 14px;border-radius:12px;background:#eef8f1;color:#1f5a37;font-size:15px;line-height:1.5}
html[data-theme="dark"] .imports-detected{background:#1e3a2c;color:#c8eed8}
.imports-switching p{margin:8px 0 0;line-height:1.55}

/* Site readiness: weekly household counts for the operator. */
.growth-panel{margin-bottom:18px}.growth-panel h2{margin:0 0 6px}.growth-panel h3{margin:22px 0 8px;font-size:16px}
.growth-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:16px 0 0}
.growth-grid>div{padding:14px 16px;border:1px solid var(--line);border-radius:12px}
.growth-grid dt{color:var(--muted);font-size:13px}.growth-grid dd{margin:4px 0 0;font:800 26px var(--display)}.growth-grid small{color:var(--muted);font:500 13px var(--font)}
.growth-sources{display:grid;gap:6px;max-width:420px;margin:0;padding:0;list-style:none}.growth-sources li{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid var(--line)}

/* Import: where your records come from. */
.imports-switching .imports-badge{margin-top:8px}
.imports-source-steps{margin:12px 0 0;padding-left:20px;font-size:13px;line-height:1.6;color:var(--imports-muted)}
.imports-source-steps li+li{margin-top:6px}
.imports-switching p.imports-source-tip{padding-left:12px;border-left:2px solid #d8cfe8}
.imports-switching a{color:#476092;font-weight:700;text-decoration:underline}
@media(min-width:851px){.imports-page [data-import-source-note]{display:none!important}}

/* Import: one units confirmation, and matched columns tucked away for recognised files. */
.imports-units>span{display:flex;gap:10px;align-items:center;font-size:15px;color:var(--ink)}
.imports-units input[type=checkbox]{width:20px;height:20px;margin:0;flex:none;accent-color:#5b45b0}
.imports-matches{margin:6px 0 18px;border:1px solid #e3e0ea;border-radius:14px;padding:4px 16px}
.imports-matches[open]{padding-bottom:16px}
.imports-matches>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700}
.imports-matches>p{margin-top:4px}

/* Garage overview: a quiet data note, spending, past vehicles and one-line recent records. */
.go-check{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-radius:14px;background:var(--co-card);border:1px dashed var(--co-line);color:var(--co-text);font-size:14px;text-decoration:none}
.go-check strong{color:var(--co-ink)}
.go-check a{color:inherit;text-decoration:none;flex:1}
.go-check .co-snooze{margin:0}
.go-spend-note{margin:8px 2px 0;font-size:13px}
.car-overview .go-past{flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
.go-past-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.go-past-cost{display:flex;flex-direction:column;align-items:flex-end;flex:none;text-align:right}
.go-past-cost .co-muted{font-size:12px}
.car-overview .go-recent-list .co-recent{padding:11px 18px}
.go-recent-list .go-recent-line{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.go-recent-list .go-recent-line .co-muted{font-size:14px}
.go-recent-list .co-recent>strong{flex:none;font-weight:700}
.co-status-soon{border-color:#ecd9a8;background:#fdf7e8}

/* Snooze: a small button beside anything that's due. */
.car-overview .co-row-link{display:flex;flex-direction:column;gap:8px;color:inherit;text-decoration:none}
.car-overview .co-row:has(.co-row-link:hover){background:var(--co-accent-soft)}
.co-snooze{display:flex;justify-content:flex-end;margin:2px 0 0}
.co-snooze-button{min-height:36px;padding:6px 14px;border:1px solid var(--co-line);border-radius:999px;background:var(--co-card);color:var(--co-text);font:600 13px var(--font);cursor:pointer}
.co-snooze-button:hover{border-color:var(--co-muted);color:var(--co-ink)}
.co-badge-snoozed{font-size:13px;padding:3px 10px;border-radius:999px;background:#eeedf3;color:#5c6075}
.co-status .co-snooze{justify-content:flex-start;margin-top:10px}
.car-overview .co-row.co-row-snoozable{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;column-gap:12px}
.co-row-snoozable .co-snooze{margin:0}
.co-row-snoozable .co-snooze-button{min-height:32px;padding:4px 12px;font-size:12px}
@media (max-width: 520px){.car-overview .co-row.co-row-snoozable{grid-template-columns:1fr}.co-row-snoozable .co-snooze{margin-top:8px}}

/* Fuel log on phones: one card per fill-up, tap to open it. The table stays on wider screens. */
.fuel-cards{display:none;margin:0;padding:0 16px 8px;list-style:none}
.fuel-cards li+li{border-top:1px solid var(--line,#ece7f1)}
.fuel-card{display:flex;flex-direction:column;gap:3px;padding:12px 2px;color:var(--ink);text-decoration:none}
.fuel-card-top{display:flex;justify-content:space-between;gap:12px;font-size:16px}
.fuel-card-line{color:var(--muted);font-size:14px;line-height:1.4}
.fuel-card-line b{color:var(--ink);font-weight:700}
.fuel-card-badge{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:999px;background:#fff1e3;color:#8a5a2b;font-size:12px;font-weight:700}
.fuel-card-flag .fuel-card-top strong:first-child::before{content:"";display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:50%;background:#d98b3a;vertical-align:middle}
.fuel-check-note{margin:6px 0 0;color:var(--muted);font-size:14px}
.fuel-check-note a{font-weight:700}
@media (max-width: 640px){
  .fuel-cards{display:block}
  .log-card .fuel-history-scroll,.log-card .fuel-scroll-hint{display:none}
}

/* Maintenance: items with no known last service wait in one prompt. */
.maintenance-gaps{margin:18px 0 4px;padding:18px 20px;border:1px solid #e6e1f0;border-radius:16px;background:#faf8fd}
.maintenance-gaps-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.maintenance-gaps-head h3{margin:0 0 4px;font-size:17px}
.maintenance-gaps-head p{margin:0;color:var(--muted);font-size:14px;max-width:46ch}
.maintenance-gaps-actions{display:flex;flex-wrap:wrap;gap:8px}
.maintenance-gaps-list{margin-top:12px}
.maintenance-gaps-list>summary{cursor:pointer;min-height:40px;display:flex;align-items:center;font-weight:700;color:var(--purple,#5b45b0)}
.maintenance-gaps-list .recommendation-grid{margin-top:10px}

/* Trends: stacked monthly spending, mileage small multiples, cost per mile by year.
   Gas, service and other use the shared cost colours (checked for colour-blind separation). */
.trends-page{--tr-gas:#b06f24;--tr-service:#00897b;--tr-other:#5a48b5;--tr-line:#5a48b5;--tr-grid:#ece8f2;--tr-axis:#6b6679;--tr-surface:#fff;display:grid;gap:22px}
.trends-card{padding:22px 24px}
.trends-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:10px}
.trends-head h2,.trends-card-group>h2{margin:0;font-size:19px}
.trends-head p{margin:4px 0 0;color:var(--muted);font-size:14px}
.trends-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:0;padding:0;list-style:none;font-size:14px;color:var(--muted)}
.trends-legend b{color:var(--ink);font-weight:700}
.tr-swatch{display:inline-block;width:12px;height:12px;margin-right:6px;border-radius:3px;vertical-align:-1px}
.tr-swatch.tr-gas{background:var(--tr-gas)}.tr-swatch.tr-service{background:var(--tr-service)}.tr-swatch.tr-other{background:var(--tr-other)}
.trends-chart{display:block;width:100%;height:auto;overflow:visible}
.trends-page .trends-chart :is(rect,circle,text,path){stroke:none;stroke-width:0}
.trends-page .trends-chart :is(line,polyline){fill:none}
.trends-page .trends-chart .tr-dot{stroke:var(--tr-surface);stroke-width:2}
.trends-page .trends-chart .tr-axis{font-weight:500}
.trends-chart .tr-gas{fill:var(--tr-gas)}.trends-chart .tr-service{fill:var(--tr-service)}.trends-chart .tr-other{fill:var(--tr-other)}
.trends-chart .tr-grid{stroke:var(--tr-grid);stroke-width:1}
.trends-chart .tr-axis{fill:var(--tr-axis);font-size:11px;font-family:var(--font)}
.trends-chart .tr-hit{fill:transparent;cursor:default}
.trends-chart .tr-bar:hover .tr-hit{fill:var(--tr-grid);opacity:.55}
.trends-chart .tr-line{fill:none;stroke:var(--tr-line);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.trends-chart .tr-dot{fill:var(--tr-line);stroke:var(--tr-surface);stroke-width:2}
.trends-chart circle.tr-hit:hover{fill:var(--tr-line);fill-opacity:.12}
.trends-table{margin-top:10px}
.trends-table summary{cursor:pointer;min-height:40px;display:flex;align-items:center;font-weight:700;color:var(--purple,#5b45b0)}
.trends-table table{width:100%;border-collapse:collapse;font-size:14px}
.trends-table th,.trends-table td{padding:7px 8px;text-align:right;border-bottom:1px solid var(--tr-grid)}
.trends-table th:first-child,.trends-table td:first-child{text-align:left}
.trends-card-group{display:grid;gap:12px}
.trends-mpg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.trends-mpg-card{padding:16px 18px}
.trends-mpg-card h3{margin:0 0 8px;font-size:15px}
.tr-tag{margin-left:6px;padding:1px 8px;border-radius:999px;background:#eeedf3;color:#5c6075;font-size:12px;font-weight:700}
.trends-note{margin:6px 0 0;color:var(--muted);font-size:13px}
.trends-note b{color:var(--ink)}
.trends-empty{margin:6px 0 0;padding:14px 0;color:var(--muted)}
.trends-card-group>.trends-empty{padding:18px 20px}
.trends-cpm{display:grid;gap:10px;margin:8px 0 0;padding:0;list-style:none}
.trends-cpm li{display:grid;grid-template-columns:48px 1fr minmax(120px,auto);align-items:center;gap:12px}
.tr-year{font-weight:700}
.tr-track{height:12px;border-radius:6px;background:var(--tr-grid);overflow:hidden}
.tr-track i{display:block;height:100%;border-radius:6px;background:var(--tr-other)}
.tr-value{display:flex;flex-direction:column;align-items:flex-end;text-align:right}
.tr-value small{color:var(--muted);font-size:12px}
@media (max-width: 640px){.trends-card{padding:18px 16px}.trends-cpm li{grid-template-columns:44px 1fr auto}}
.trends-chart.tr-narrow{display:none}
@media (max-width: 640px){.trends-chart.tr-wide{display:none}.trends-chart.tr-narrow{display:block}}

/* Recalls on the car overview. */
.co-recalls-note{margin:0 0 10px;font-size:14px;line-height:1.5}
.car-overview .co-recall{gap:6px}
.co-recall-text{color:var(--co-text);font-size:14px;line-height:1.5}
.co-recall-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:4px;font-size:13px}
.co-recall-actions a{color:var(--co-accent);font-weight:700}
.co-recall-actions form{margin:0}
.gs-switch-note{margin-top:10px;font-size:14px;color:var(--muted)}
.gs-switch-note a{font-weight:700}

/* UI review, Nov 2026: readable sizes and calmer cards on signed-in pages. */
/* Nothing a person reads is smaller than 12px. */
.table-wrap th {padding-inline: 14px; font-size: 12px; letter-spacing: .4px;}
.table-wrap td {padding-inline: 14px; font-size: 14px;}
.table-wrap :is(th, td):first-child {padding-left: 24px;}
:is(.block-muted, .unit, .mpg-estimate, .detail-chips span, .detail-chips a, .vehicle-dot, .status-badge,
    .schedule-provenance, .type-label, .timeline-date small, .timeline-meta small, .legend, .cost-legend span,
    .guide-steps span, .driving-mix-labels span, .driving-mix-labels small, .field-hint, .care-metrics small) {font-size: 12px;}
.action-table .fuel-distance-source {white-space: nowrap;}
/* Edit and delete in record tables: a visible icon on a 36px target. */
.table-action {width: 36px; height: 36px; color: var(--muted); font-size: 17px;}
/* Fuel log "Dash accuracy": the sentence carries it; no decorative ring. */
.logging-guide:after {display: none;}
/* Maintenance summary: one compact row on a phone instead of three tall cards. */
@media (max-width: 640px) {
    .care-metrics {grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;}
    .care-metrics article {flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px;}
    .care-metrics .metric-icon {display: none;}
    .care-metrics strong {font-size: 15px;}
}
/* Maintenance plan cards: tinted buttons for card actions, Remove as red text. */
.service-context-rule-actions .remove-rule {background: transparent; border-color: transparent;}
/* Dashboard links under Recent: 44px tap height. */
.co-more a {display: inline-flex; min-height: 44px; align-items: center;}
.co-more {gap: 0 18px;}
/* Empty dashboard: the same rounded card as other empty states. */
.dashboard-overview .overview-welcome {border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 20px; background: var(--card, #fff);}
.garage-empty {min-height: 0; padding: 48px 24px;}
/* Garage placeholder art: brand lavender first, then the other pastels. */
.vehicle-art {background: #f0ebf9;}
.vehicle-art-2 {background: #edf3ef;}
.vehicle-art svg {stroke: #7b6fb0;}
