:root {
    --bg: #f5f6f8;
    --ink: #192130;
    --muted: #667085;
    --line: #e6e9ef;
    --red: #dd3047;
    font-family: Arial, "Segoe UI", sans-serif;
    font-size: 16px;
    color: var(--ink);
    background: var(--bg);
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
textarea,
select {
    font: inherit;
}
button,
summary {
    cursor: pointer;
}
h1,
h2,
h3,
h4,
p {
    margin: 0;
}
h1 {
    font-size: 32px;
    letter-spacing: -1.1px;
    line-height: 1.2;
}
h2 {
    font-size: 22px;
    letter-spacing: -0.6px;
    line-height: 1.3;
}
h3 {
    font-size: 18px;
    letter-spacing: -0.25px;
    line-height: 1.4;
}
h4 {
    font-size: 16px;
}
p {
    line-height: 1.65;
}
input,
select,
textarea {
    width: 100%;
    border: 1px solid #d6dbe4;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    padding: 12px 13px;
    min-height: 46px;
}
textarea {
    resize: vertical;
    line-height: 1.6;
}
input::placeholder,
textarea::placeholder {
    color: #8690a0;
}
label {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 14px;
    font-weight: 600;
}
input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    accent-color: var(--red);
}
input[type="file"] {
    padding: 10px;
    font-size: 14px;
}
input[type="file"]::file-selector-button {
    border: 0;
    background: #edf0f5;
    border-radius: 5px;
    padding: 8px 12px;
    margin-right: 12px;
    color: var(--ink);
}
:focus-visible {
    outline: 3px solid #739bdd;
    outline-offset: 3px;
}
input:focus,
textarea:focus,
select:focus {
    border-color: #739bdd;
    outline: 2px solid #dbe7fa;
    outline-offset: 1px;
}
.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    vertical-align: middle;
    display: inline-block;
}
.muted {
    color: var(--muted);
}
.small {
    font-size: 14px;
}
.fine-print {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}
.section-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #7a8496;
    margin-bottom: 10px;
    line-height: 1.5;
}
.eyebrow {
    font-size: 11px;
    letter-spacing: 1.6px;
    font-weight: 700;
    color: #929db0;
}
.split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.inline-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    top: -70px;
    left: 260px;
    z-index: 100;
    background: white;
    padding: 14px;
}
.skip-link:focus {
    top: 10px;
}
.sidebar {
    width: 242px;
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    background: #151b27;
    color: #fff;
    padding: 32px 18px 18px;
    z-index: 10;
}
.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.2px;
    padding: 0 9px;
}
.brand-mark {
    background: var(--red);
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    font-size: 21px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -4px;
    padding: 0;
    color: #fff;
}
.brand-mark { object-fit: contain; }
.registration-login-link { margin-bottom: 20px; font-size: 14px; }
.registration-welcome { max-width: 760px; margin-inline: auto; padding: 44px 28px; }
.registration-welcome p { max-width: 540px; margin: 14px auto; }
.registration-welcome .btn { margin-top: 12px; }
.brand small {
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 500;
    display: block;
    margin-top: 7px;
    color: #a4acbd;
}
.workshop-name {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 40px 12px 28px;
}
.workshop-name strong {
    font-size: 21px;
    letter-spacing: -0.5px;
}
.workshop-name > span:last-child {
    font-size: 12px;
    color: #a9b2c2;
    line-height: 1.6;
}
.main-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nav-item {
    padding: 13px 14px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #b7c0cf;
    min-height: 48px;
    transition: background 0.15s;
}
.nav-item:hover {
    background: #202938;
    color: #fff;
}
.nav-item.active {
    color: #fff;
    background: #2c3545;
    box-shadow: inset 3px 0 var(--red);
}
.nav-item.active .icon {
    color: #ff7382;
}
.sidebar-bottom {
    margin-top: auto;
    padding-top: 40px;
}
.private-note {
    display: flex;
    gap: 12px;
    font-size: 12px;
    line-height: 1.6;
    color: #a5b0c2;
    padding: 0 12px 24px;
}
.private-note .icon {
    color: #7ca899;
    margin-top: 2px;
}
.account {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #303747;
}
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eef0f5;
    color: #525f76;
    font-size: 14px;
    font-weight: 700;
}
.account .avatar {
    background: #394458;
    color: #dee5f0;
}
.account > span:nth-child(2) {
    min-width: 0;
    flex: 1;
}
.account b {
    font-size: 12px;
    line-height: 1.4;
    display: block;
}
.account small {
    font-size: 11px;
    color: #a7b1c3;
    display: block;
    margin-top: 4px;
}
.icon-button {
    border: 0;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #a7b1c3;
    min-height: 40px;
}
.workspace {
    margin-left: 242px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.topbar {
    padding: 22px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background: #fff;
    min-height: 76px;
    font-size: 13px;
    color: var(--muted);
}
.topbar b {
    color: var(--ink);
    font-weight: 500;
}
.top-separator {
    margin: 0 12px;
    color: #c2c7d1;
}
.preview-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    background: #f3f5f8;
    border: 1px solid #e7eaf0;
    border-radius: 20px;
    padding: 7px 12px;
    color: #5b677c;
}
.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #7694bf;
    border-radius: 50%;
    flex-shrink: 0;
}
.preview-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 40px;
    background: #edf2fa;
    color: #4f6285;
    font-size: 12px;
    line-height: 1.5;
}
.preview-notice .icon {
    width: 15px;
    height: 15px;
}
.main-content {
    width: 100%;
    max-width: 1550px;
    margin: 0 auto;
    padding: 34px 40px 30px;
    flex: 1;
}
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}
.page-heading p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 10px;
}
.page-heading .section-label {
    font-size: 11px;
    text-transform: uppercase;
}
.btn {
    border-radius: 9px;
    min-height: 44px;
    padding: 12px 17px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    transition: background 0.15s;
}
.btn .icon {
    width: 18px;
    height: 18px;
}
.primary {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.primary:hover {
    background: #c7253b;
    border-color: #c7253b;
}
.secondary {
    background: #fff;
    border-color: #dce1e9;
    color: #3c485d;
}
.secondary:hover {
    background: #f6f8fb;
}
.quiet {
    background: transparent;
    color: #717c8f;
}
.quiet:hover {
    background: #eef0f5;
}
.danger {
    color: #bf253a;
    background: #fff;
    border-color: #efc9cf;
}
.full {
    width: 100%;
}
.align-start {
    align-self: flex-start;
}
.text-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #475b7d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}
.text-link:hover {
    text-decoration: underline;
}
.text-link .icon {
    width: 16px;
    height: 16px;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 20px 22px;
    transition: border 0.15s;
}
.stat:hover {
    border-color: #b5bfd1;
}
.stat-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7587;
}
.stat-label .icon {
    color: #96a0b0;
    width: 19px;
    height: 19px;
}
.stat strong {
    display: block;
    font-size: 38px;
    letter-spacing: -1.2px;
    line-height: 1;
    margin: 20px 0 16px;
}
.stat:last-child strong {
    color: var(--red);
}
.stat-foot {
    font-size: 11px;
    color: #818b9c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    line-height: 1.5;
}
.stat-foot .icon {
    width: 14px;
    height: 14px;
}
.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(270px, 1fr);
    gap: 24px;
}
.card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 26px;
    gap: 16px;
}
.card-heading .section-label {
    font-size: 10px;
    margin-bottom: 7px;
}
.card-heading h2 {
    font-size: 21px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    vertical-align: middle;
}
.neutral {
    background: #f0f2f6;
    color: #667085;
}
.demo {
    background: #f1f0f5;
    color: #847396;
    border: 1px solid #e5e0ed;
}
.green {
    background: #edf7f1;
    color: #33754f;
}
.amber {
    background: #fff4df;
    color: #967023;
}
.blue {
    background: #eef3fc;
    color: #4e6da2;
}
.violet {
    background: #f3effb;
    color: #7a61a3;
}
.queue-head {
    display: grid;
    grid-template-columns: 1fr 120px 16px;
    padding: 0 26px 13px;
    gap: 12px;
    font-size: 11px;
    color: #929baa;
    border-bottom: 1px solid var(--line);
}
.queue-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 23px 24px;
    border-bottom: 1px solid #eff1f5;
}
.queue-row:hover {
    background: #fafbfe;
}
.car-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    color: #748091;
    border-radius: 10px;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}
.car-symbol .icon {
    width: 26px;
    height: 26px;
}
.car-symbol.blue {
    background: #edf3fa;
    color: #7b97bd;
}
.car-symbol.red {
    background: #fff0f1;
    color: #d86978;
}
.car-symbol.large {
    width: 64px;
    height: 64px;
    border-radius: 14px;
}
.car-symbol.large .icon {
    width: 38px;
    height: 38px;
}
.queue-description {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}
.queue-description b {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    flex-wrap: wrap;
}
.queue-description > span {
    font-size: 13px;
    color: #606d81;
    line-height: 1.4;
}
.queue-description small {
    font-size: 11px;
    color: #919baa;
}
.queue-row > .icon {
    color: #abb3c0;
    width: 16px;
    height: 16px;
}
.card-bottom-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #697a97;
    padding: 19px 26px;
}
.card-bottom-link:hover {
    background: #fafbfe;
}
.card-bottom-link .icon {
    width: 17px;
    height: 17px;
}
.analysis-card {
    padding: 26px;
    background: linear-gradient(145deg, #fff 20%, #f2f5fb);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.analysis-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #ebeffa;
    color: #687fbc;
    margin-bottom: 20px;
}
.analysis-card .section-label {
    font-size: 10px;
    color: #7d8cab;
}
.analysis-card h2 {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 12px;
}
.analysis-card p {
    font-size: 13px;
    color: #76829a;
    margin-bottom: 20px;
    line-height: 1.8;
}
.analysis-state {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    color: #556789;
    margin-bottom: 23px;
    line-height: 1.6;
}
.analysis-state .dot {
    background: #6fa18d;
    margin-top: 5px;
}
.analysis-state small {
    display: block;
    color: #8d97a9;
    margin-top: 4px;
    font-size: 11px;
}
.analysis-card .btn {
    margin-top: auto;
    font-size: 12px;
    padding: 12px;
}
.analysis-card .fine-print {
    font-size: 11px;
    margin-top: 13px;
}
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 30px 0 20px;
}
.section-heading .section-label {
    font-size: 10px;
    margin-bottom: 7px;
}
.section-heading h2 {
    font-size: 22px;
}
.section-heading p {
    font-size: 14px;
    margin-top: 8px;
}
.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.recommendation-preview {
    padding: 22px;
    display: flex;
    flex-direction: column;
}
.recommendation-preview:hover {
    border-color: #bec9dd;
}
.recommendation-preview h3 {
    font-size: 16px;
    margin-top: 19px;
    margin-bottom: 12px;
    line-height: 1.5;
}
.recommendation-preview p {
    font-size: 12px;
    color: #7f8999;
    margin-bottom: 22px;
    line-height: 1.75;
}
.recommendation-car {
    border-top: 1px solid var(--line);
    padding-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #748197;
    font-size: 11px;
    margin-top: auto;
}
.recommendation-car > .icon {
    width: 16px;
    height: 16px;
}
.recommendation-car > .icon:last-child {
    margin-left: auto;
}
.workspace-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px 28px;
    font-size: 11px;
    color: #98a1b1;
}
.empty {
    padding: 45px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
}
.empty > .icon {
    width: 35px;
    height: 35px;
    color: #94a3bb;
    margin-bottom: 6px;
}
.empty h3 {
    font-size: 19px;
}
.empty p {
    font-size: 14px;
    color: var(--muted);
    max-width: 520px;
}
.wide {
    grid-column: 1/-1;
}
.heading-count {
    font-weight: 400;
    color: #9aa4b3;
    font-size: 0.7em;
    margin-left: 8px;
}
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.search-input {
    position: relative;
    flex: 1;
}
.search-input > .icon {
    position: absolute;
    left: 14px;
    top: 13px;
    color: #94a0b4;
}
.search-input input {
    padding-left: 43px;
}
.filter-bar select {
    width: 195px;
    font-size: 14px;
}
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.vehicle-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    padding: 24px;
    transition: border 0.15s;
}
.vehicle-card:hover {
    border-color: #adbad1;
}
.vehicle-card h2 {
    margin: 25px 0 10px;
    font-size: 23px;
}
.vehicle-card > p {
    font-size: 14px;
    color: #7e899a;
}
.vehicle-client {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #7e8d9e;
    font-size: 12px;
    margin: 24px 0;
}
.vehicle-client .icon {
    width: 17px;
    height: 17px;
    color: #81a091;
}
.vehicle-counts {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: #8b95a6;
}
.vehicle-counts b {
    font-size: 16px;
    color: #46546c;
    margin-right: 4px;
}
.vehicle-counts .icon {
    margin-left: auto;
    width: 16px;
}
.subtle-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 28px;
    font-size: 13px;
    color: #8994a6;
    max-width: 850px;
}
.subtle-note .icon {
    margin-top: 3px;
    color: #96a5bb;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-top: 26px;
    font-size: 14px;
    color: var(--muted);
}
.back-link {
    font-size: 13px;
    color: #7d8ca3;
    display: inline-block;
    margin-bottom: 24px;
}
.car-title {
    display: flex;
    align-items: center;
    gap: 20px;
}
.car-title h1 {
    margin-top: 10px;
}
.access-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #71927f;
}
.tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid #dfe4ec;
    margin-bottom: 26px;
    overflow: auto;
    scrollbar-width: thin;
}
.tabs a {
    padding: 16px 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    font-size: 14px;
    color: #7d8798;
    margin-bottom: -1px;
}
.tabs a:hover {
    color: var(--ink);
}
.tabs .active {
    color: var(--red);
    border-color: var(--red);
    font-weight: 600;
}
.stack {
    display: flex;
    flex-direction: column;
    gap: 19px;
}
.form-card {
    margin-bottom: 24px;
}
.form-card > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 25px;
    list-style: none;
    font-size: 14px;
    font-weight: 600;
}
.form-card > summary > span {
    display: flex;
    gap: 10px;
    align-items: center;
}
.form-card > summary .icon {
    color: #7e8ca4;
}
.form-card > .stack {
    padding: 0 25px 25px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 13px;
}
.optional {
    font-weight: 400;
    color: #949dac;
    display: inline;
}
.job-card {
    padding: 25px;
    margin-bottom: 20px;
}
.job-card > h3 {
    margin: 21px 0 12px;
    font-size: 21px;
}
.job-card > p {
    font-size: 15px;
    color: #64718a;
}
.preserve-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.edit-details {
    margin-top: 22px;
    background: #f8f9fb;
    border: 1px solid #eaeef4;
    border-radius: 9px;
}
.edit-details > summary {
    font-size: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #637696;
}
.edit-details .stack {
    padding: 12px 18px 20px;
}
.edit-details[open] > summary .icon {
    transform: rotate(90deg);
}
.work-result {
    margin-top: 20px;
    padding: 20px;
    background: #f2f7f4;
    border-radius: 8px;
}
.work-result p {
    font-size: 14px;
    color: #5b7667;
    margin-bottom: 10px;
}
.job-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: #93a0b1;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 24px;
}
.job-footer a {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #6c81a4;
}
.job-footer .icon {
    width: 16px;
    height: 16px;
}
.history-row {
    display: flex;
    gap: 25px;
    padding: 27px;
    border-bottom: 1px solid var(--line);
}
.history-row:last-child {
    border: 0;
}
.history-date {
    width: 58px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 3px;
}
.history-date b {
    font-size: 18px;
    color: #52637b;
}
.history-date span {
    font-size: 12px;
    color: #9aa6b5;
}
.history-body {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}
.history-items {
    margin: 10px 0;
    font-size: 14px;
}
.history-items ul {
    margin: 5px 0 0;
    padding-left: 18px;
}
.history-items li + li {
    margin-top: 4px;
}
.history-body h3 {
    font-size: 17px;
    margin-bottom: 10px;
}
.history-body p {
    font-size: 14px;
    color: #7d8a9f;
    margin-bottom: 10px;
}
.history-cost {
    font-size: 16px;
    color: #63728a;
    white-space: nowrap;
    padding-top: 2px;
}
.photos-card {
    margin-bottom: 24px;
}
.photos-card .card-heading h3 {
    font-size: 19px;
}
.photo-phases {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 0 25px 25px;
}
.photo-phase h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.phase-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #bd9760;
}
.phase-dot.after {
    background: #6ba38a;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.photo-grid figure {
    margin: 0;
    min-width: 0;
}
.photo-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
}
.photo-grid figcaption {
    font-size: 12px;
    color: #61748e;
    padding-top: 6px;
    line-height: 1.6;
}
.photo-grid small {
    display: block;
    color: #96a1b1;
    font-size: 11px;
}
.photo-placeholder {
    grid-column: 1/-1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    border: 1px dashed #cdd6e2;
    border-radius: 10px;
    min-height: 190px;
    background: #fafbfd;
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #94a1b4;
}
.photo-placeholder .icon {
    width: 32px;
    height: 32px;
    color: #b3bece;
}
.photo-upload {
    border-top: 1px solid var(--line);
}
.photo-upload > summary {
    padding: 20px 25px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    color: #627b9e;
}
.photo-upload .stack {
    padding: 4px 25px 25px;
}
.access-details {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: #8b97a9;
    font-size: 12px;
}
.access-details > summary {
    display: flex;
    align-items: center;
    gap: 8px;
}
.access-details p {
    margin: 16px 0;
    max-width: 800px;
}
.access-details form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}
.check-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-weight: 400;
    font-size: 13px;
}
.review-card {
    padding: 26px;
    margin-bottom: 22px;
}
.review-car {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6e809d;
    font-size: 13px;
    margin: 22px 0 15px;
    width: fit-content;
}
.review-car .icon {
    width: 17px;
    height: 17px;
}
.review-card > h3 {
    font-size: 21px;
    margin-bottom: 22px;
}
.evidence {
    padding: 18px 20px;
    background: #f6f8fb;
    border-radius: 8px;
    margin-bottom: 24px;
    border-left: 3px solid #cbd6e7;
}
.evidence .section-label {
    font-size: 10px;
    margin-bottom: 7px;
}
.evidence p {
    font-size: 14px;
    color: #647794;
}
.review-card .stack label {
    font-size: 13px;
}
.review-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.review-card .small .icon {
    width: 14px;
    height: 14px;
    margin-right: 5px;
}
.workflow {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-wrap: wrap;
}
.workflow > span {
    display: flex;
    align-items: center;
    gap: 9px;
}
.workflow b {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e6eaf1;
    border-radius: 50%;
    font-size: 12px;
    color: #8b96a8;
}
.workflow > .icon {
    width: 15px;
    height: 15px;
    color: #b1bac8;
}
.workflow .current {
    color: #5d7496;
}
.workflow .current b {
    background: #e6edfa;
    color: #607eaf;
}
.workflow .muted {
    color: #99a2b3;
}
.workflow .muted .icon {
    width: 14px;
    height: 14px;
}
.review-list {
    max-width: 950px;
}
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.padded {
    padding: 28px;
}
.padded h2 {
    margin-bottom: 22px;
}
.setting-list {
    margin: 0 0 20px;
    font-size: 14px;
}
.setting-list > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 17px 0;
    line-height: 1.6;
}
.setting-list dt {
    color: #8a94a5;
}
.setting-list dd {
    margin: 0;
    text-align: right;
    color: #556680;
}
.member-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 0 24px;
}
.member-row > span:nth-child(2) {
    flex: 1;
}
.member-row b {
    display: block;
    font-size: 14px;
    line-height: 1.5;
}
.member-row small {
    display: block;
    font-size: 12px;
    color: #8d99ab;
    margin-top: 5px;
    line-height: 1.5;
}
.padded > p {
    line-height: 1.8;
    margin-bottom: 18px;
}
.check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 14px;
    color: #74869c;
}
.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}
.check-list .icon {
    color: #88a491;
    width: 18px;
}
.audit-card {
    margin-top: 28px;
}
.audit-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid #f0f2f6;
    padding: 17px 26px;
    font-size: 13px;
    color: #77869c;
}
.audit-row > span {
    display: flex;
    align-items: center;
    gap: 10px;
}
.audit-row time {
    color: #9ca6b6;
    font-size: 12px;
    white-space: nowrap;
}
.invite-layout {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.05fr);
    gap: 26px;
    align-items: start;
}
.qr-print {
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
    padding: 35px 25px;
    gap: 20px;
}
.qr-print .section-label {
    margin: 0;
    font-size: 10px;
}
.qr-print h2 {
    font-size: 27px;
    line-height: 1.3;
}
.qr-print p {
    font-size: 13px;
    color: #8c96a7;
}
.qr-box {
    background: white;
    border: 1px solid #e8ebf0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}
.qr-box img,
.qr-box canvas {
    max-width: 100%;
    height: auto;
}
.qr-print strong {
    font-size: 16px;
}
.qr-print > .muted {
    font-size: 12px;
}
.invite-explanation {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.invite-explanation > .card {
    padding: 27px;
}
.invite-explanation h2 {
    font-size: 22px;
    margin-bottom: 14px;
}
.invite-explanation p {
    font-size: 14px;
    color: #8290a5;
}
.steps {
    counter-reset: steps;
    list-style: none;
    padding: 0;
    margin: 24px 0;
}
.steps li {
    position: relative;
    padding-left: 40px;
    margin: 24px 0;
    font-size: 14px;
}
.steps li:before {
    content: counter(steps);
    counter-increment: steps;
    position: absolute;
    left: 0;
    top: 0;
    background: #edf1f7;
    border-radius: 50%;
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #7f8fa8;
}
.steps b {
    display: block;
    line-height: 1.5;
}
.steps span {
    display: block;
    font-size: 12px;
    color: #8f9bad;
    line-height: 1.7;
    margin-top: 6px;
}
.invite-explanation h3 {
    margin-bottom: 16px;
}
.invite-explanation input {
    font-size: 12px;
    color: #8795ab;
    background: #fafbfe;
}
.button-row {
    display: flex;
    align-items: center;
    gap: 17px;
    flex-wrap: wrap;
    margin-top: 17px;
}
.copy-status {
    display: block;
    color: #568a6c;
    margin-top: 12px;
}
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 9px;
    padding: 16px 18px;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 22px;
    overflow-wrap: anywhere;
}
.alert .icon {
    margin-top: 3px;
}
.alert p {
    margin-top: 6px;
}
.alert.success {
    background: #ebf7ee;
    color: #36724b;
    border: 1px solid #cde7d4;
}
.alert.error {
    background: #fff0f1;
    color: #b34555;
    border: 1px solid #f1c8ce;
}
.alert.info {
    background: #eef3fb;
    color: #7186a7;
    font-size: 13px;
    margin-bottom: 0;
}
.standalone {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.login-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    width: 100%;
    max-width: 1080px;
    border-radius: 22px;
    background: white;
    box-shadow: 0 25px 90px #26385c0e;
    overflow: hidden;
    border: 1px solid #e8ecf2;
    min-height: 620px;
}
.login-story {
    padding: 43px;
    background: #172130;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 65px;
}
.login-story .brand {
    padding: 0;
}
.login-story h1 {
    font-size: 34px;
    line-height: 1.3;
    margin: 22px 0;
}
.login-story p {
    font-size: 15px;
    color: #a2b0c5;
    line-height: 1.9;
    max-width: 340px;
}
.story-foot {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #8ca1bb;
    font-size: 12px;
    line-height: 1.7;
}
.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
}
.login-panel h2 {
    font-size: 29px;
    margin-bottom: 12px;
}
.login-panel > p {
    font-size: 14px;
    margin-bottom: 32px;
}
.login-panel .stack {
    gap: 22px;
}
.login-panel .btn {
    margin-top: 7px;
    justify-content: space-between;
}
.login-help {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    line-height: 1.7;
    color: #99a4b6;
    margin: 27px 0 25px;
}
.login-help .icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}
.login-panel > .text-link {
    font-size: 12px;
    color: #8a99b0;
}
.standalone > .alert {
    width: 100%;
    max-width: 1080px;
}
.choose-card {
    width: 100%;
    max-width: 650px;
    padding: 35px;
}
.choose-card h1 {
    margin-bottom: 28px;
}
.choice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 25px 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 20px;
}
.choice-row small {
    display: block;
    color: #8a99b0;
    font-size: 13px;
    margin-top: 9px;
}
.invitation {
    max-width: 520px;
    width: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}
.invitation .section-label {
    font-size: 10px;
    margin: 0;
}
.invitation h1 {
    font-size: 30px;
}
.invitation-address {
    font-size: 13px;
    color: #8694aa;
    display: flex;
    gap: 6px;
    align-items: center;
}
.invitation-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f4f6fa;
    margin: 12px 0;
}
.invitation-art > .icon {
    width: 60px;
    height: 60px;
    color: #7f95b7;
}
.invitation-art > span {
    position: absolute;
    bottom: 6px;
    right: 0;
    background: #e1efe7;
    color: #5c9173;
    border: 4px solid white;
    border-radius: 50%;
    padding: 8px;
}
.invitation h2 {
    font-size: 27px;
    line-height: 1.35;
}
.invitation > p {
    font-size: 14px;
    color: #8b97ab;
}
.invitation .alert {
    text-align: left;
}
.invitation > .small {
    font-size: 12px;
    line-height: 1.7;
}
.invitation > .text-link {
    margin-top: 10px;
    font-size: 12px;
}
@media (max-width: 1250px) {
    .sidebar {
        width: 218px;
        padding-left: 12px;
        padding-right: 12px;
    }
    .workspace {
        margin-left: 218px;
    }
    .main-content {
        padding: 30px 26px;
    }
    .topbar,
    .preview-notice {
        padding-left: 26px;
        padding-right: 26px;
    }
    .stats {
        gap: 12px;
    }
    .stat {
        padding: 18px 15px;
    }
    .dashboard-columns {
        gap: 18px;
        grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr);
    }
    .queue-row {
        gap: 10px;
        padding: 21px 18px;
    }
    .queue-row .car-symbol {
        width: 36px;
        height: 40px;
    }
    .queue-row > .badge {
        font-size: 10px;
        padding: 5px 6px;
    }
    .queue-description b {
        font-size: 13px;
    }
    .queue-description > span {
        font-size: 12px;
    }
    .recommendation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .vehicle-grid {
        gap: 16px;
    }
    .vehicle-card {
        padding: 20px;
    }
    .vehicle-card .split {
        flex-wrap: wrap;
    }
    .vehicle-counts {
        gap: 10px;
        flex-wrap: wrap;
    }
    .analysis-card h2 {
        font-size: 22px;
    }
    .page-heading h1 {
        font-size: 29px;
    }
    .invite-layout {
        grid-template-columns: 1fr 1fr;
    }
    .member-row {
        flex-wrap: wrap;
    }
}
@media (max-width: 1000px) {
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stat strong {
        font-size: 34px;
        margin: 16px 0 12px;
    }
    .dashboard-columns {
        grid-template-columns: 1fr;
    }
    .analysis-card {
        display: none;
    }
    .vehicle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .car-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .settings-grid,
    .invite-layout {
        grid-template-columns: 1fr;
    }
    .qr-print {
        max-width: 520px;
        width: 100%;
        justify-self: center;
    }
    .page-heading > .btn {
        white-space: normal;
        text-align: center;
    }
    .workflow {
        gap: 12px;
        font-size: 12px;
    }
    .filter-bar {
        flex-wrap: wrap;
    }
    .search-input {
        min-width: 210px;
    }
    .history-cost {
        font-size: 14px;
    }
    .history-row {
        gap: 18px;
        padding: 23px;
    }
    .photo-grid {
        grid-template-columns: 1fr;
    }
    .review-card > .split {
        flex-wrap: wrap;
    }
}
@media (max-width: 760px) {
    .sidebar {
        position: relative;
        width: 100%;
        padding: 18px 18px 0;
        gap: 16px;
    }
    .brand {
        font-size: 16px;
        padding: 0;
    }
    .brand small {
        font-size: 8px;
        margin-top: 5px;
    }
    .brand-mark {
        width: 35px;
        height: 35px;
        font-size: 19px;
    }
    .workshop-name {
        position: absolute;
        top: 19px;
        right: 20px;
        margin: 0;
        text-align: right;
        gap: 2px;
    }
    .workshop-name .eyebrow {
        display: none;
    }
    .workshop-name strong {
        font-size: 16px;
    }
    .workshop-name > span:last-child {
        font-size: 10px;
        max-width: 150px;
    }
    .main-nav {
        flex-direction: row;
        justify-content: space-between;
        gap: 4px;
        overflow-x: auto;
    }
    .nav-item {
        border-radius: 8px 8px 0 0;
        min-height: 60px;
        padding: 10px 9px;
        flex-direction: column;
        gap: 6px;
        font-size: 10px;
        text-align: center;
        white-space: nowrap;
    }
    .nav-item .icon {
        width: 19px;
        height: 19px;
    }
    .nav-item.active {
        box-shadow: inset 0 -3px var(--red);
    }
    .sidebar-bottom {
        display: none;
    }
    .workspace {
        margin: 0;
    }
    .topbar {
        min-height: 56px;
        padding: 16px 20px;
        font-size: 11px;
    }
    .topbar > span:first-child {
        max-width: 65%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .top-separator {
        margin: 0 6px;
    }
    .preview-pill {
        font-size: 10px;
        padding: 6px 9px;
    }
    .preview-notice {
        padding: 11px 20px;
        font-size: 11px;
    }
    .main-content {
        padding: 25px 20px;
    }
    .page-heading {
        gap: 18px;
        align-items: flex-start;
        margin-bottom: 23px;
    }
    .page-heading h1 {
        font-size: 27px;
    }
    .page-heading p {
        font-size: 13px;
        line-height: 1.7;
    }
    .page-heading > .btn {
        font-size: 12px;
        padding: 10px;
        min-height: 42px;
        gap: 6px;
        max-width: 150px;
    }
    .page-heading .section-label {
        font-size: 10px;
        letter-spacing: 1px;
    }
    .stats {
        gap: 11px;
        margin-bottom: 22px;
    }
    .stat {
        padding: 17px 15px;
    }
    .stat-label {
        font-size: 12px;
        line-height: 1.5;
    }
    .stat-label .icon {
        width: 16px;
        height: 16px;
    }
    .stat-foot {
        font-size: 11px;
    }
    .stat strong {
        font-size: 32px;
    }
    .card-heading {
        padding: 21px;
    }
    .card-heading h2 {
        font-size: 20px;
    }
    .queue-head {
        font-size: 11px;
        padding-left: 20px;
        padding-right: 20px;
        grid-template-columns: 1fr 90px 0;
        gap: 0;
    }
    .queue-row {
        padding: 21px 16px;
        gap: 10px;
        flex-wrap: wrap;
    }
    .queue-row .car-symbol {
        width: 39px;
        height: 42px;
    }
    .queue-description {
        min-width: 150px;
    }
    .queue-description b {
        font-size: 14px;
    }
    .queue-description > span {
        font-size: 13px;
    }
    .queue-row > .badge {
        margin-left: 49px;
        order: 4;
    }
    .queue-row > .icon {
        margin-left: auto;
    }
    .section-heading {
        margin-top: 25px;
        align-items: flex-start;
    }
    .section-heading h2 {
        font-size: 20px;
    }
    .section-heading .text-link {
        font-size: 12px;
        max-width: 130px;
        text-align: right;
    }
    .recommendation-grid,
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
    .recommendation-preview h3 {
        font-size: 17px;
    }
    .recommendation-preview p {
        font-size: 13px;
    }
    .recommendation-car {
        font-size: 12px;
    }
    .workspace-footer {
        padding: 15px 20px 22px;
        gap: 12px;
        font-size: 11px;
    }
    .vehicle-card {
        padding: 24px;
    }
    .vehicle-card .split {
        flex-wrap: nowrap;
    }
    .vehicle-card h2 {
        font-size: 25px;
    }
    .vehicle-counts {
        font-size: 12px;
    }
    .filter-bar select {
        width: auto;
        flex: 1;
        min-width: 175px;
        font-size: 14px;
    }
    .search-input {
        min-width: 100%;
    }
    .subtle-note {
        font-size: 13px;
    }
    .car-title {
        gap: 14px;
        align-items: flex-start;
    }
    .car-title .car-symbol.large {
        width: 50px;
        height: 55px;
    }
    .car-title .car-symbol .icon {
        width: 30px;
        height: 30px;
    }
    .car-title h1 {
        font-size: 25px;
        margin-top: 9px;
    }
    .car-title p {
        font-size: 12px;
    }
    .car-heading {
        gap: 18px;
    }
    .tabs {
        gap: 23px;
    }
    .tabs a {
        font-size: 13px;
        padding: 14px 0;
    }
    .form-card > summary {
        font-size: 14px;
        padding: 20px;
    }
    .form-card > .stack {
        padding: 0 20px 20px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .form-footer .btn {
        width: 100%;
    }
    .job-card {
        padding: 20px;
    }
    .job-card > .split {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .job-card > .split .small {
        font-size: 12px;
    }
    .job-card > h3 {
        font-size: 20px;
    }
    .job-card > p {
        font-size: 14px;
    }
    .section-heading > .btn {
        font-size: 12px;
        padding: 11px;
        gap: 6px;
    }
    .section-heading > .btn .icon {
        width: 14px;
        height: 14px;
    }
    .section-heading p {
        font-size: 13px;
    }
    .edit-details > summary {
        font-size: 13px;
        padding: 14px;
    }
    .history-row {
        padding: 22px 18px;
        gap: 14px;
        flex-wrap: wrap;
    }
    .history-date {
        width: 44px;
    }
    .history-date b {
        font-size: 16px;
    }
    .history-body h3 {
        font-size: 16px;
    }
    .history-body p {
        font-size: 14px;
    }
    .history-cost {
        margin-left: 58px;
    }
    .photo-phases {
        padding: 0 20px 20px;
        gap: 16px;
    }
    .photo-placeholder {
        min-height: 155px;
        font-size: 12px;
        padding: 14px;
    }
    .photos-card .card-heading {
        flex-wrap: wrap;
    }
    .photos-card .card-heading h3 {
        font-size: 17px;
    }
    .photo-upload .stack {
        padding: 4px 20px 20px;
    }
    .review-card {
        padding: 21px;
    }
    .review-card > .split .small {
        font-size: 12px;
    }
    .review-card > h3 {
        font-size: 20px;
    }
    .review-actions .btn {
        font-size: 13px;
        padding: 11px 12px;
    }
    .review-card .small {
        font-size: 12px;
    }
    .workflow {
        gap: 10px;
        margin-top: 27px;
        font-size: 12px;
    }
    .workflow > span:last-child {
        width: 100%;
        margin: 6px 0;
    }
    .workflow > .icon:nth-of-type(2) {
        display: none;
    }
    .evidence {
        padding: 16px;
    }
    .evidence p {
        font-size: 14px;
    }
    .padded {
        padding: 23px;
    }
    .setting-list {
        font-size: 14px;
    }
    .setting-list > div {
        flex-wrap: wrap;
    }
    .setting-list dd {
        max-width: 70%;
    }
    .audit-row {
        padding: 16px 21px;
        flex-direction: column;
        gap: 9px;
        font-size: 13px;
    }
    .audit-row time {
        font-size: 12px;
        margin-left: 16px;
    }
    .check-list {
        font-size: 14px;
    }
    .qr-print {
        padding: 30px 20px;
    }
    .qr-print h2 {
        font-size: 25px;
    }
    .invite-explanation > .card {
        padding: 22px;
    }
    .invite-explanation h2 {
        font-size: 21px;
    }
    .alert {
        font-size: 14px;
        padding: 15px;
    }
    .standalone {
        padding: 20px;
    }
    .login-layout {
        display: flex;
        flex-direction: column;
        min-height: 0;
        border-radius: 17px;
    }
    .login-story {
        padding: 25px;
        gap: 30px;
    }
    .login-story > div,
    .story-foot {
        display: none;
    }
    .login-panel {
        padding: 33px 25px;
    }
    .login-panel h2 {
        font-size: 27px;
    }
    .login-panel .section-label {
        font-size: 11px;
    }
    .login-panel > .text-link {
        font-size: 13px;
    }
    .invitation {
        padding: 30px 24px;
    }
    .invitation h2 {
        font-size: 24px;
    }
    .invitation h1 {
        font-size: 29px;
    }
    .invitation-address {
        font-size: 13px;
    }
    .skip-link {
        left: 20px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
@media print {
    body {
        background: white;
    }
    .sidebar,
    .topbar,
    .preview-notice,
    .workspace-footer,
    .page-heading,
    .invite-explanation,
    .skip-link {
        display: none !important;
    }
    .workspace {
        margin: 0;
    }
    .main-content {
        padding: 0;
    }
    .invite-layout {
        display: block;
    }
    .qr-print {
        max-width: 150mm;
        width: 100%;
        margin: 20mm auto;
        border: 1px solid #ddd;
        break-inside: avoid;
        padding: 12mm;
    }
    .qr-print .brand-mark {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .qr-print .badge {
        border: 1px solid #ccc;
    }
    .qr-box {
        border: 0;
    }
}

.settings-logout {
    margin-top: 24px;
}
.stat-label {
    min-height: 34px;
}
.stat-foot {
    min-height: 32px;
}

.tabs {
    overflow-y: hidden;
    scrollbar-width: thin;
}
@media (max-width: 760px) {
    .sidebar {
        padding: 18px 12px 0;
    }
    .brand {
        margin-left: 6px;
    }
    .main-nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        overflow: visible;
        gap: 2px;
    }
    .nav-item {
        white-space: normal;
        font-size: 10px;
        padding: 10px 3px;
        line-height: 1.35;
        min-width: 0;
        min-height: 65px;
    }
    .nav-item span {
        min-height: 27px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        border: 0;
        background: #e9edf3;
        border-radius: 10px;
        padding: 4px;
        overflow: visible;
    }
    .tabs a {
        border: 0;
        padding: 12px 7px;
        margin: 0;
        white-space: normal;
        text-align: center;
        font-size: 12px;
        line-height: 1.4;
        border-radius: 7px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .tabs a.active {
        background: white;
        box-shadow: 0 1px 3px #30406012;
    }
    .history-row {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 14px;
    }
    .history-cost {
        grid-column: 2;
        margin: 0;
    }
    .history-body p {
        font-size: 14px;
    }
    .history-body h3 {
        font-size: 17px;
    }
    .page-heading {
        flex-wrap: wrap;
    }
    .workshop-name > span:last-child {
        max-width: 130px;
    }
    .review-list {
        min-width: 0;
    }
}

.history-count {
    font-size: 13px;
    color: #73839b;
    margin: -7px 0 21px;
}
.history-count b {
    font-weight: 600;
    color: #526781;
}
.help-tip { margin-top: 20px; padding: 18px 22px; border: 1px solid #dce4ef; border-radius: 16px; background: #f5f8fc; color: #42516a; }
.help-tip[hidden] { display: none; }
.help-tip p { margin: 8px 0 12px; line-height: 1.6; }
.help-tip button { border: 0; background: transparent; cursor: pointer; padding: 0; }
.help-toggle { flex-shrink: 0; min-height: 40px; }
.help-toggle[aria-pressed="true"] { border-color: #ed2340; color: #c91c35; background: #fff3f5; }
@media (max-width: 600px) { .topbar { height: auto; min-height: 64px; flex-wrap: wrap; gap: 10px; padding-block: 12px; } }
@media print { .help-tip, .help-toggle, [data-download-qr] { display: none !important; } }
.connection-form { padding: 24px; margin: 20px 0; max-width: 840px; }
.connection-form .form-stack { display: grid; gap: 14px; }
.connection-form label { display: grid; gap: 8px; font-weight: 600; }
.connection-form input, .connection-form textarea, .connection-form select { width: 100%; box-sizing: border-box; }
.connection-form summary { cursor: pointer; line-height: 1.5; }
.connection-form p { line-height: 1.6; overflow-wrap: anywhere; }
.connection-form h2, .connection-form h3 { margin-bottom: 12px; }
.connection-form .intake-notes { white-space: pre-wrap; }

/* Service workspace only: owner pages and public invitations keep their styles. */
.portal-app {
    --bg: #f4f5f7;
    --muted: #596579;
    font-family: "Segoe UI", Arial, sans-serif;
}
.portal-app .main-content { max-width: 1440px; }
.portal-app :is(h1, h2, h3, p, b, strong) { overflow-wrap: anywhere; }
.portal-app :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid #477bbd;
    outline-offset: 4px;
}
.portal-app :is(article, details, section)[id] { scroll-margin-top: 24px; }
.portal-app .section-label { color: #657187; letter-spacing: 1.2px; }
.portal-app .card { box-shadow: 0 3px 12px #19213003; }
.portal-app .page-heading h1 { font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -1.2px; }
.portal-app .page-heading { margin-bottom: 30px; }
.portal-app .preview-notice { background: #eef1f5; color: #526079; }
.portal-app .preview-notice b { font-weight: 600; }
.portal-app .help-toggle { font-size: 12px; min-height: 38px; white-space: nowrap; }
.portal-app .help-tip { position: static; margin: 0 0 24px; max-width: none; border: 1px solid #cbd9ee; background: #f1f6fd; padding: 20px 24px; border-radius: 12px; }
.portal-app .help-tip[hidden] { display: none; }
.portal-app .help-tip p { margin: 6px 0 12px; }
.portal-app .stat { border-radius: 14px; }
.portal-app .stat-label { font-size: 13px; color: #4b586c; }
.portal-app .stat-foot { color: #657187; font-size: 12px; }
.portal-app .stat:nth-child(3) strong { color: #33754f; }
.portal-app .stat:hover, .portal-app .action-card:hover { border-color: #adb9cc; box-shadow: 0 4px 16px #19213008; }
.portal-app .card-heading { flex-wrap: wrap; }
.portal-app .card-heading .text-link { font-size: 12px; }
.portal-app .queue-description small { color: #657187; }
.portal-app .queue-note { border-top: 1px solid var(--line); padding: 16px 24px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.portal-app .day-guide { padding: 26px; background: #f9fafc; }
.portal-app .day-guide > p { color: var(--muted); margin: 10px 0 20px; font-size: 14px; }
.portal-app .guide-link { display: flex; align-items: center; gap: 12px; padding: 19px 0; border-top: 1px solid var(--line); }
.portal-app .guide-link > .icon { color: #687a95; width: 20px; flex-shrink: 0; }
.portal-app .guide-link > span { flex: 1; min-width: 0; }
.portal-app .guide-link b { font-size: 14px; display: block; }
.portal-app .guide-link small { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 5px; }
.portal-app .guide-link:hover b { color: #bf253a; }
.portal-app .feature-icon { display: inline-flex; flex-shrink: 0; justify-content: center; align-items: center; width: 48px; height: 48px; background: #fceef0; color: #c72941; border-radius: 14px; }
.portal-app .feature-icon .icon { width: 24px; height: 24px; }
.portal-app .onboarding { padding: 32px; margin-bottom: 22px; }
.portal-app .onboarding-heading { display: flex; align-items: center; gap: 20px; }
.portal-app .onboarding-heading p { font-size: 14px; margin-top: 8px; }
.portal-app .start-steps { padding: 28px 0 0; margin: 28px 0 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--line); }
.portal-app .step-number { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid #d7dde7; border-radius: 50%; font-size: 13px; font-weight: 700; color: #5e6b80; margin-bottom: 16px; }
.portal-app .start-steps li:first-child .step-number { background: #dd3047; border-color: #dd3047; color: white; }
.portal-app .start-steps h3 { font-size: 17px; }
.portal-app .start-steps p { font-size: 14px; color: var(--muted); margin: 10px 0 14px; }
.portal-app .quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.portal-app .action-card { display: flex; align-items: flex-start; gap: 20px; padding: 26px; }
.portal-app .action-card .feature-icon { background: #eef2f8; color: #5c7190; }
.portal-app .action-card p { color: var(--muted); font-size: 14px; margin: 10px 0 14px; }
.portal-app .connect-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 24px; margin-bottom: 24px; align-items: start; }
.portal-app .connect-main, .portal-app .connect-aside { padding: 30px; }
.portal-app .connect-main > p { font-size: 14px; margin-top: 12px; }
.portal-app .form-stack { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.portal-app .identifier-input { max-width: 360px; font-size: 24px; font-weight: 600; letter-spacing: 3px; padding: 16px; }
.portal-app .identifier-input::placeholder { font-size: 17px; font-weight: 400; letter-spacing: 0; color: #6e7b8e; }
.portal-app .field-hint { font-size: 13px; font-weight: 400; line-height: 1.65; color: var(--muted); display: block; }
.portal-app [aria-invalid="true"] { border-color: #bf253a; }
.portal-app .next-step-note { display: flex; align-items: flex-start; gap: 13px; padding: 20px; background: #eef3f8; border-radius: 12px; margin: 24px 0; font-size: 14px; }
.portal-app .next-step-note > .icon { flex-shrink: 0; color: #5c7190; margin-top: 2px; }
.portal-app .next-step-note p { margin-top: 6px; color: #526079; font-size: 13px; }
.portal-app .next-step-note .text-link { font-size: inherit; text-decoration: underline; display: inline; }
.portal-app .connect-main .next-step-note { margin-bottom: 0; }
.portal-app .connect-aside { background: #fafbfc; }
.portal-app .connect-aside h2 { font-size: 21px; margin-top: 20px; }
.portal-app .connect-aside p { margin: 12px 0 20px; font-size: 14px; color: var(--muted); }
.portal-app .connect-aside .field-hint { margin-top: 16px; }
.portal-app .connection-form { max-width: none; padding: 26px; margin-bottom: 22px; }
.portal-app .connection-form .section-heading { margin: 0 0 12px; flex-wrap: wrap; }
.portal-app .pending-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--line); padding: 18px 0; }
.portal-app .pending-row:last-child { padding-bottom: 0; }
.portal-app .pending-row small { display: block; font-size: 12px; margin-top: 7px; color: var(--muted); }
.portal-app .intake-draft > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; list-style: none; }
.portal-app .intake-draft > summary::-webkit-details-marker { display: none; }
.portal-app .intake-draft summary small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 6px; }
.portal-app .intake-draft[open] > summary { margin-bottom: 18px; }
.portal-app .intake-draft[open] > summary > .icon { transform: rotate(45deg); }
.portal-app .filter-bar { flex-wrap: wrap; }
.portal-app .filter-bar select { flex: 1; min-width: 160px; width: auto; }
.portal-app .filter-bar .search-input { flex: 2; min-width: 220px; }
.portal-app .empty .btn { margin-top: 20px; }
.portal-app .heading-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.portal-app .history-cost { color: #526079; }
.portal-app .review-car, .portal-app .history-body p, .portal-app .history-date span, .portal-app .photo-placeholder, .portal-app .access-details { color: #596b85; }
.portal-app .sidebar { overflow-y: auto; }
.portal-app .workshop-name strong, .portal-app .account b { overflow-wrap: anywhere; }
@media (max-width: 1100px) {
    .portal-app .quick-actions, .portal-app .connect-layout { grid-template-columns: 1fr; }
    .portal-app .start-steps { gap: 20px; }
    .portal-app .page-heading { flex-wrap: wrap; }
}
@media (max-width: 760px) {
    .portal-app .sidebar { padding: 16px 16px 0; gap: 14px; overflow: visible; }
    .portal-app .workshop-name { position: static; text-align: left; padding: 0 0 4px; }
    .portal-app .workshop-name strong { font-size: 14px; }
    .portal-app .workshop-name > span:last-child { display: none; }
    .portal-app .main-nav { margin: 0 -4px; }
    .portal-app .nav-item { flex: 1; padding: 10px 6px; font-size: 10px; }
    .portal-app .main-content { padding: 24px 16px; }
    .portal-app .page-heading { flex-direction: column; gap: 16px; }
    .portal-app .page-heading > .btn { max-width: none; width: 100%; font-size: 14px; min-height: 46px; }
    .portal-app .topbar { padding: 10px 16px; gap: 12px; }
    .portal-app .topbar > span:first-child { flex: 1; max-width: none; }
    .portal-app .preview-notice { padding: 12px 16px; }
    .portal-app .start-steps, .portal-app .quick-actions { grid-template-columns: 1fr; }
    .portal-app .onboarding, .portal-app .connect-main, .portal-app .connect-aside, .portal-app .connection-form, .portal-app .day-guide { padding: 22px; }
    .portal-app .onboarding-heading { align-items: flex-start; gap: 14px; }
    .portal-app .onboarding-heading .feature-icon { display: none; }
    .portal-app .start-steps { gap: 22px; margin-top: 22px; padding-top: 22px; }
    .portal-app .start-steps li { padding-left: 46px; position: relative; }
    .portal-app .step-number { position: absolute; left: 0; top: 0; }
    .portal-app .action-card { padding: 22px; gap: 15px; }
    .portal-app .action-card .feature-icon { width: 38px; height: 38px; }
    .portal-app .section-heading { flex-wrap: wrap; gap: 14px; }
    .portal-app .section-heading .text-link { max-width: none; text-align: left; }
    .portal-app .stat { padding: 18px 14px; }
    .portal-app .stat-label { font-size: 12px; }
    .portal-app .stat-foot { font-size: 11px; }
    .portal-app .filter-bar .search-input { min-width: 100%; }
    .portal-app .filter-bar select { min-width: 100%; }
    .portal-app .heading-actions { width: 100%; }
    .portal-app .heading-actions .btn { flex: 1; }
    .portal-app .identifier-input { max-width: none; }
    .portal-app .workspace-footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .portal-app *, .portal-app *::before, .portal-app *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .portal-app .heading-actions, .portal-app .help-tip { display: none; }
}


/* Brand motif: the original RR mark, repair red and a continuous service route. */
.portal-app .service-story { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; overflow: hidden; padding: 26px 32px; margin-bottom: 28px; background: #192130; color: #fff; border-radius: 18px; }
.portal-app .service-story::after { content: ""; position: absolute; right: -42px; top: -80px; width: 125px; height: 380px; background: #dd3047; opacity: .1; transform: rotate(24deg); pointer-events: none; }
.portal-app .story-kicker { display: flex; align-items: center; gap: 10px; color: #c4cbd8; font-size: 9px; font-weight: 600; letter-spacing: 1.8px; }
.portal-app .story-kicker img { width: 26px; height: 26px; }
.portal-app .service-story h2 { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.17; letter-spacing: -.8px; margin: 18px 0 12px; }
.portal-app .service-story h2 em { color: #ff7b8c; font-style: normal; }
.portal-app .service-story p { color: #b5bfd0; font-size: 13px; line-height: 1.7; }
.portal-app .service-story-art { position: relative; z-index: 1; min-width: 0; max-width: 480px; width: 100%; justify-self: end; }
.portal-app .service-story-art svg { width: 100%; height: auto; display: block; }
.portal-app .journey-caption { display: flex; justify-content: space-around; color: #c0cad9; font-size: 10px; letter-spacing: .3px; margin-top: -7px; }
.portal-app .day-guide { position: relative; }
.portal-app .day-guide::before { content: ""; display: block; width: 35px; height: 4px; border-radius: 2px; background: #dd3047; margin-bottom: 23px; transform: skewX(-18deg); }
.portal-app .onboarding { border-top: 3px solid #dd3047; }
.portal-app .connect-aside .feature-icon { width: 72px; height: 72px; border-radius: 20px; transform: rotate(-6deg); box-shadow: 7px 7px 0 #f7dce1; margin: 4px 0 8px; }
.portal-app .connect-aside .feature-icon .icon { width: 38px; height: 38px; transform: rotate(6deg); }
.portal-app .vehicle-card { position: relative; }
.portal-app .vehicle-grid > div { display: flex; flex-direction: column; min-width: 0; }
.portal-app .vehicle-tile:hover { border-color: #adb9cc; }
.portal-app .vehicle-tile .problem-indicator:has(a) { margin: 0 16px 16px; }
.portal-app .vehicle-card h3 { margin: 22px 0 8px; font-size: 20px; }
.portal-app .vehicle-card .text-link { padding-top: 18px; margin-top: auto; }
.portal-app .vehicle-card > p { margin-bottom: 18px; }
.problem-indicator:empty { display: none; }
.problem-badge { display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: 12px 14px; margin-top: 10px; font-size: 14px; font-weight: 650; line-height: 1.4; background: #e9edf3; color: #46546c; }
.problem-badge.unread { background: #cf2440; color: #fff; box-shadow: 0 3px 9px #cf244025; }
.problem-badge.unread:hover { background: #b91c35; }
.problem-badge .icon { width: 19px; height: 19px; }
.problem-badge .problem-arrow { margin-left: auto; }
.live-problems { display: flex; align-items: center; gap: 12px; background: #fff0f3; border: 1px solid #efb0bd; color: #a4142c; border-radius: 12px; padding: 15px 18px; margin: 20px 0; font-size: 14px; font-weight: 600; }
.live-problems[hidden] { display: none; }
.live-problems a { margin-left: auto; text-decoration: underline; white-space: nowrap; }
.account-settings { align-items: start; }
.account-settings .form-stack { margin-top: 20px; }
.account-settings .setting-list dd { overflow-wrap: anywhere; }
.settings-help { margin-top: 16px; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
    .portal-app .service-story { padding: 24px; gap: 8px; grid-template-columns: 1fr; }
    .portal-app .service-story h2 { font-size: 28px; }
    .portal-app .service-story p br { display: none; }
    .portal-app .service-story-art { max-width: 340px; justify-self: center; margin-top: -8px; }
    .portal-app .story-kicker { font-size: 8px; letter-spacing: 1.2px; }
    .portal-app .journey-caption { margin-top: -12px; }
}
@media print { .portal-app .service-story { display: none; } }

.portal-app .nav-item .mobile-nav-label { display: none; }
@media (max-width: 760px) {
    .portal-app .nav-item .nav-label { display: none; }
    .portal-app .nav-item .mobile-nav-label { display: flex; }
}

/* History is the main workspace; brand details frame the actual records. */
.portal-app .history-brand { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:22px 0 28px; padding:22px 28px; border-radius:16px; color:#fff; background:#192130; border-left:4px solid #dd3047; }
.portal-app .history-brand .section-label { color:#f18c99; }
.portal-app .history-brand h2 { font-size:23px; margin:8px 0; }
.portal-app .history-brand p { color:#ccd3de; margin:0; max-width:520px; line-height:1.6; }
.portal-app .history-brand-art { flex:0 0 240px; width:240px; height:108px; color:#fff; }
.portal-app .vehicle-id { display:inline-block; font-size:13px; font-weight:750; letter-spacing:1px; color:#b31c31; background:#fff0f2; border:1px solid #f4d4da; border-radius:8px; padding:6px 10px; white-space:nowrap; }
.portal-app .vehicle-card .text-link { margin-top:16px; }
.portal-app .connection-status-link { display:flex; align-items:center; gap:12px; border:1px solid #eadcb9; background:#fff9e9; border-radius:12px; padding:16px; margin:20px 0; color:#695019; text-decoration:none; }
.portal-app .connection-status-link span { flex:1; }
.portal-app .history-row { position:relative; }
.portal-app .history-row::before { content:""; position:absolute; top:30px; left:0; width:3px; height:24px; background:#dd3047; border-radius:0 3px 3px 0; }
.portal-app .topbar { justify-content:flex-start; }
@media (max-width:760px) {
 .portal-app .main-nav { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .portal-app .topbar { display:none; }
 .portal-app .history-brand { padding:14px 16px; gap:12px; margin:18px 0; }
 .portal-app .history-brand h2 { font-size:16px; line-height:1.4; margin:4px 0 0; }
 .portal-app .history-brand p { display:none; }
 .portal-app .history-brand-art { flex-basis:76px; width:76px; height:45px; }
 .portal-app .car-heading .vehicle-id { margin-bottom:6px; }
}
@media (max-width:380px) { .portal-app .history-brand-art { display:none; } }
