:root {
    color-scheme: light;
    --ink: #172026;
    --muted: #63717c;
    --line: #d9e1e7;
    --panel: #ffffff;
    --bg: #f4f7f9;
    --accent: #0f766e;
    --accent-dark: #115e59;
    --warn: #b45309;
}

html {
    overflow-x: hidden;
    overflow-x: clip;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
}

body:has(.login-shell) {
    background:
        radial-gradient(circle at 12% 28%, rgba(15, 118, 110, 0.1), transparent 32%),
        radial-gradient(circle at 88% 72%, rgba(23, 32, 38, 0.07), transparent 30%),
        var(--bg);
}

body:has(.login-shell) .page {
    width: min(1320px, calc(100% - 32px));
    padding: 20px 0 32px;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px clamp(16px, 5vw, 64px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

.brand-logo {
    display: block;
    width: auto;
    height: 48px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-weight: 650;
}

.nav-toggle {
    display: none;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 9px;
    color: var(--ink);
    background: transparent;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    color: var(--accent);
    background: #eef6f5;
}

.nav-toggle svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.nav-item,
.nav-profile {
    display: inline-grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    min-width: 64px;
    min-height: 48px;
    padding: 2px 6px;
    text-align: center;
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-profile:hover,
.nav-profile:focus-visible {
    color: var(--accent);
}

.nav-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-item-label {
    font-size: 13px;
    line-height: 1.1;
    white-space: nowrap;
}

.nav-requests,
.nav-notifications {
    position: relative;
}

.nav-badge {
    position: absolute;
    top: -3px;
    right: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #c2410c;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.notification-unread {
    border-left: 4px solid var(--accent);
}

.nav-profile {
    margin-left: auto;
    color: var(--ink);
}

.nav-profile span {
    max-width: 96px;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-profile:hover span,
.nav-profile:focus-visible span {
    color: var(--accent);
}

.page {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0 64px;
}

.page-toolbar {
    background: var(--bg);
}

.page-toolbar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 0;
}

.page-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.page-toolbar-actions form {
    margin: 0;
}

.page-toolbar-actions .button {
    min-height: 42px;
    padding: 10px 16px;
    white-space: nowrap;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 32px;
    align-items: center;
    padding: clamp(32px, 7vw, 80px) 0;
}

.home-hero {
    width: min(900px, 100%);
    margin-inline: auto;
    padding: 34px 0 18px;
}

.home-hero-copy {
    max-width: none;
}

.home-hero h1,
.profile-header h1 {
    font-size: clamp(36px, 5vw, 58px);
}

.home-search-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.home-search-single {
    width: min(900px, 100%);
    margin: 0 auto 16px;
}

.home-search-grid .search-panel {
    align-content: start;
}

.home-search-grid h2 {
    margin-bottom: 4px;
    font-size: 22px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 16px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 0.98;
}

h2 {
    font-size: 28px;
}

h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

.lead {
    max-width: 680px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.search-panel,
.form-card,
.vehicle-card,
.empty-state,
.timeline-item,
.meta-grid > div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 12px 28px rgba(23, 32, 38, 0.06);
}

.search-panel,
.form-card {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.workshop-search-grid {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

label {
    color: var(--ink);
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

textarea {
    resize: vertical;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--accent);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

button:hover,
.button:hover {
    background: var(--accent-dark);
}

.button-small {
    min-height: 36px;
    padding: 8px 12px;
}

.nav-button {
    gap: 7px;
}

.nav-button .nav-icon {
    width: 20px;
    height: 20px;
}

.section {
    padding: 28px 0;
}

.section.compact {
    padding-bottom: 0;
}

.section-heading,
.detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.detail-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
}

.detail-header > div:nth-child(2) {
    min-width: 0;
}

.section-heading span,
.muted {
    color: var(--muted);
}

.section-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.vehicle-card {
    display: grid;
    gap: 18px;
    align-content: space-between;
    padding: 18px;
}

.vehicle-card-main {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.vehicle-card-main > div {
    min-width: 0;
}

.vehicle-vin {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.vehicle-card-photo {
    width: 96px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #eef6f5;
}

.vehicle-card-photo-empty {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    align-items: stretch;
}

.document-card {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    height: 100%;
}

.document-card h3 {
    margin-bottom: 4px;
}

.document-card-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "title"
        "status";
    gap: 7px;
    align-items: center;
}

.document-card-title-row h3 {
    grid-area: title;
    min-width: 0;
    margin: 0;
}

.document-card-title-row > .muted {
    grid-area: status;
    min-width: 0;
    margin: 0;
    font-size: 14px;
}

.document-card-title-row .vignette-lookup-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    margin: 0;
}

.document-card-summary {
    position: relative;
    display: grid;
    grid-template-rows: auto auto;
    min-height: 0;
    align-content: start;
}

.document-card-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}

.document-card-summary:has(.vignette-lookup-menu) .document-card-heading {
    padding-right: 44px;
}

.document-card-heading .eyebrow {
    margin-bottom: 0;
}

.document-type-icon {
    display: inline-grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 8px;
    color: var(--accent);
    background: #eef6f5;
}

.document-type-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.document-status-expired {
    border-color: #ef4444;
}

.document-status-expiring {
    border-color: #f59e0b;
}

.document-status-valid {
    border-color: #10b981;
}

.document-form {
    display: grid;
    gap: 10px;
}

.vignette-lookup {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 48px));
    padding: 12px;
    border: 1px solid #b8d7d2;
    border-radius: 7px;
    background: #f1f9f8;
    box-shadow: 0 14px 34px rgba(23, 32, 38, 0.18);
}

.vignette-lookup-menu {
    position: relative;
    width: max-content;
}

.vignette-lookup-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid #d97706;
    border-radius: 999px;
    color: #5f370e;
    background: #fbbf24;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.document-card-title-row .vignette-lookup-trigger {
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    min-height: 36px;
    border-radius: 50%;
}

.document-card-title-row .vignette-lookup {
    right: 0;
    left: auto;
}

.document-card-title-row .lookup-action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.document-card-title-row .vignette-lookup-tooltip {
    right: 0;
    left: auto;
}

.vignette-lookup-trigger::-webkit-details-marker {
    display: none;
}

.vignette-lookup-trigger svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vignette-lookup-trigger:hover,
.vignette-lookup-trigger:focus-visible,
.vignette-lookup-menu[open] > .vignette-lookup-trigger {
    border-color: #b45309;
    color: #fff;
    background: #d97706;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

.vignette-lookup-tooltip {
    position: absolute;
    z-index: 30;
    bottom: calc(100% + 9px);
    left: 0;
    display: none;
    width: 260px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #fff;
    background: #263238;
    box-shadow: 0 8px 20px rgba(23, 32, 38, 0.18);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.vignette-lookup-trigger:hover .vignette-lookup-tooltip,
.vignette-lookup-trigger:focus-visible .vignette-lookup-tooltip {
    display: block;
}

.vignette-lookup-menu[open] .vignette-lookup-tooltip {
    display: none;
}

.vignette-lookup p {
    margin: 0;
}

.vignette-lookup-heading,
.vignette-lookup-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.vignette-lookup-heading span {
    padding: 3px 8px;
    border-radius: 999px;
    color: #065f46;
    background: #d1fae5;
    font-size: 12px;
    font-weight: 800;
}

.vignette-lookup-heading span.lookup-status-invalid {
    color: #991b1b;
    background: #fee2e2;
}

.vignette-lookup-details {
    display: grid;
    gap: 6px;
    margin: 0;
}

.vignette-lookup-details > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.vignette-lookup-details dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.vignette-lookup-details dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

.vignette-lookup-actions {
    justify-content: flex-start;
}

.technical-inspection-captcha-form {
    display: grid;
    gap: 7px;
}

.technical-inspection-captcha {
    width: 108px;
    height: 58px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
    image-rendering: auto;
}

.technical-inspection-captcha-form label {
    font-size: 13px;
    font-weight: 800;
}

.technical-inspection-captcha-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.technical-inspection-captcha-controls input {
    min-width: 0;
    text-transform: uppercase;
}

.document-upload-form,
.vehicle-document-files {
    display: grid;
    gap: 8px;
}

.document-upload-label {
    font-weight: 800;
}

.document-upload-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.document-upload-controls input[type="file"] {
    min-width: 0;
    width: 100%;
}

.vehicle-document-files {
    margin-top: 2px;
}

.vehicle-document-file-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
    align-items: center;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fbfc;
}

.vehicle-document-filename {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-file-icon-button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 6px;
    border: 0;
    border-radius: 6px;
    color: var(--accent);
    background: transparent;
}

.document-file-icon-button:hover,
.document-file-icon-button:focus-visible {
    color: #fff;
    background: var(--accent);
}

.document-file-icon-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.document-file-delete {
    color: #b91c1c;
}

.document-file-delete:hover,
.document-file-delete:focus-visible {
    background: #b91c1c;
}

.document-file-rename-form {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.document-file-rename-form[hidden] {
    display: none;
}

.list-search {
    margin-bottom: 14px;
    box-shadow: none;
}

.vehicle-list {
    display: grid;
    gap: 10px;
}

.workshop-operations {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 12px 28px rgba(23, 32, 38, 0.06);
}

.section.compact.workshop-operations {
    padding-bottom: 22px;
}

.workshop-operations-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.workshop-operations-header h2 {
    margin-bottom: 6px;
}

.workshop-primary-actions,
.workshop-vehicle-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.workshop-primary-actions {
    justify-content: flex-end;
}

.workshop-vehicle-search {
    margin-bottom: 0;
    background: #f8fbfc;
}

.workshop-vehicle-tabs {
    display: grid;
    gap: 14px;
}

.workshop-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.workshop-tab-list {
    display: inline-flex;
    gap: 6px;
    width: fit-content;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfc;
}

.workshop-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 6px;
    color: var(--muted);
    font-weight: 850;
    cursor: pointer;
}

.workshop-tab span {
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    color: var(--ink);
    background: #e2e8f0;
    font-size: 13px;
    text-align: center;
}

.workshop-tab-panel {
    display: none;
}

.workshop-tab-input:first-of-type:checked ~ .workshop-tab-list .workshop-tab:first-child,
.workshop-tab-input:nth-of-type(2):checked ~ .workshop-tab-list .workshop-tab:nth-child(2) {
    color: #fff;
    background: var(--accent);
}

.workshop-tab-input:first-of-type:checked ~ .workshop-tab-list .workshop-tab:first-child span,
.workshop-tab-input:nth-of-type(2):checked ~ .workshop-tab-list .workshop-tab:nth-child(2) span {
    color: var(--accent);
    background: #fff;
}

.workshop-tab-input:first-of-type:checked ~ .workshop-tab-panel-private,
.workshop-tab-input:nth-of-type(2):checked ~ .workshop-tab-panel-client {
    display: block;
}

.workshop-tab-description {
    margin-bottom: 12px;
}

.workshop-vehicle-item {
    grid-template-columns: minmax(220px, 1.2fr) minmax(160px, 0.7fr) auto;
}

.workshop-vehicle-actions {
    justify-content: flex-end;
}

.workshop-admin {
    margin-top: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.workshop-admin > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    font-weight: 850;
    cursor: pointer;
    list-style: none;
}

.workshop-admin > summary::-webkit-details-marker {
    display: none;
}

.workshop-admin > summary::after {
    content: "+";
    color: var(--accent);
    font-size: 24px;
    line-height: 1;
}

.workshop-admin[open] > summary::after {
    content: "−";
}

.workshop-admin > summary small {
    margin-left: auto;
    color: var(--muted);
    font-weight: 700;
}

.workshop-admin-content {
    padding: 0 18px 20px;
    border-top: 1px solid var(--line);
}

.workshop-danger-zone {
    margin-top: 18px;
    padding-top: 20px;
    border-top: 1px solid #fecaca;
}

.vehicle-list-item {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.8fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.vehicle-list-item h3,
.vehicle-list-item p {
    margin-bottom: 4px;
}

.vehicle-list-item span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    color: var(--ink);
    font-weight: 750;
}

.pagination a.active {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent);
}

.empty-state {
    padding: 22px;
    color: var(--muted);
}

.page-intro {
    position: relative;
    padding: clamp(28px, 5vw, 52px) clamp(24px, 5vw, 60px);
    overflow: hidden;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 22px;
    background:
        radial-gradient(circle at 15% 15%, rgba(15, 118, 110, 0.13), transparent 34%),
        radial-gradient(circle at 88% 90%, rgba(15, 118, 110, 0.08), transparent 32%),
        var(--panel);
    box-shadow: 0 18px 45px rgba(23, 32, 38, 0.07);
}

.page-intro h1 {
    max-width: 780px;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.03;
}

.page-intro .lead {
    max-width: 720px;
    margin-bottom: 0;
}

.page-intro--centered {
    max-width: 960px;
    margin: 0 auto 8px;
    text-align: center;
}

.page-intro--centered h1,
.page-intro--centered .lead {
    margin-right: auto;
    margin-left: auto;
}

.section-heading.page-intro {
    align-items: center;
    margin-bottom: 24px;
}

.section-heading.page-intro h1:last-child {
    margin-bottom: 0;
}

.checks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.check-card,
.check-privacy-note,
.obligation-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 12px 28px rgba(23, 32, 38, 0.06);
}

.check-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 390px;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: clamp(24px, 4vw, 36px);
    overflow: hidden;
    border-radius: 18px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.check-card::after {
    position: absolute;
    top: -70px;
    right: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(15, 118, 110, 0.055);
    content: "";
    pointer-events: none;
}

.check-card:hover {
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: 0 20px 42px rgba(23, 32, 38, 0.1);
    transform: translateY(-3px);
}

.check-card-icon {
    display: grid;
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(15, 118, 110, 0.1);
    border-radius: 16px;
    color: var(--accent);
    background: #eef6f5;
}

.check-card-icon svg {
    width: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.check-card > div {
    min-width: 0;
}

.check-card .eyebrow {
    margin-bottom: 12px;
    letter-spacing: 0.035em;
}

.check-card h2 {
    margin-bottom: 14px;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.12;
}

.check-card p:not(.eyebrow) {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.check-card .button {
    width: 100%;
    margin-top: auto;
    text-align: center;
}

.check-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
    gap: 20px;
    align-items: start;
}

.mvr-check-form form,
.vignette-check-form form,
.technical-inspection-check-form,
.technical-inspection-check-form form,
.check-fields {
    display: grid;
    gap: 16px;
}

.technical-inspection-check-form select {
    width: 100%;
}

.liability-insurance-check-form,
.liability-insurance-check-form form,
.liability-insurance-policies {
    display: grid;
    gap: 16px;
}

.liability-insurance-check-form select {
    width: 100%;
}

.liability-insurance-policy {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f4f8f7;
}

.liability-insurance-check-form altcha-widget {
    display: block;
    max-width: 280px;
}

.vignette-check-form select {
    width: 100%;
}

.vignette-check-result {
    max-width: 760px;
}

.vignette-check-result .form-card {
    display: grid;
    gap: 18px;
}

.sensitive-data-consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    padding: 14px;
    border-radius: 7px;
    background: #f4f8f7;
}

.sensitive-data-consent input[type="checkbox"] {
    width: 20px;
    min-height: 20px;
    margin-top: 2px;
}

.sensitive-data-consent p,
.sensitive-data-consent small {
    grid-column: 2;
    margin: 0;
    color: var(--muted);
}

.check-privacy-note {
    padding: 22px;
}

.check-privacy-note a,
.back-link {
    color: var(--accent);
    font-weight: 800;
}

.check-result-message {
    margin-top: 26px;
}

.obligation-list {
    display: grid;
    gap: 14px;
}

.obligation-card {
    padding: 20px;
}

.obligation-card-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.obligation-amount {
    color: var(--accent-dark);
    font-size: 22px;
    white-space: nowrap;
}

.obligation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 18px 0 0;
}

.obligation-details div {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.obligation-details dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.obligation-details dd {
    margin: 4px 0 0;
    font-weight: 800;
}

@media (max-width: 760px) {
    .document-card-summary {
        min-height: 0;
    }

    .checks-grid,
    .check-layout {
        grid-template-columns: 1fr;
    }

    .page-intro {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .page-intro--centered {
        text-align: left;
    }

    .page-intro--centered h1,
    .page-intro--centered .lead {
        margin-left: 0;
    }

    .check-card {
        min-height: 0;
    }

    .obligation-card-heading {
        display: grid;
    }
}

.form-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
    gap: 32px;
    align-items: start;
    padding-top: 32px;
}

.contact-email {
    display: inline-flex;
    margin-top: 22px;
    color: var(--accent);
    font-size: 18px;
    font-weight: 800;
}

.contact-email:hover,
.contact-email:focus-visible {
    text-decoration: underline;
}

.contact-form textarea {
    min-height: 180px;
}

.guide-hero {
    max-width: 960px;
    margin-right: auto;
    margin-left: auto;
}

.guide-hero h1 {
    max-width: 760px;
}

.marketing-hero {
    max-width: 960px;
}

.marketing-hero h1 {
    max-width: 1040px;
    font-size: clamp(38px, 3.8vw, 56px);
    line-height: 1.04;
}

.marketing-hero .lead {
    max-width: none;
}

.guide-section {
    margin-top: 42px;
}

.guide-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.guide-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 12px 28px rgba(23, 32, 38, 0.06);
}

.guide-card svg {
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    padding: 9px;
    border-radius: 8px;
    color: var(--accent);
    background: #eef6f5;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.guide-card p,
.guide-steps p,
.guide-cta p {
    color: var(--muted);
    line-height: 1.55;
}

.guide-checks .section-heading .lead {
    margin-bottom: 0;
}

.guide-checks-note {
    display: grid;
    grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
    gap: 18px 28px;
    margin-top: 16px;
    padding: 24px;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 14px;
    background: #eef6f5;
}

.guide-checks-note h3,
.guide-checks-note .eyebrow {
    margin-bottom: 0;
}

.guide-checks-note ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 22px;
    line-height: 1.55;
}

.guide-checks-note > .muted {
    grid-column: 2;
    margin: 0;
}

.guide-steps ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-steps li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.guide-steps li > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    background: var(--accent);
    font-weight: 850;
}

.guide-steps strong {
    display: block;
    margin: 2px 0 5px;
    font-size: 17px;
}

.guide-workshop,
.guide-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7fafb;
}

.guide-workshop .lead {
    max-width: 820px;
    font-size: 16px;
}

.guide-cta {
    margin-top: 42px;
    background: var(--panel);
    box-shadow: 0 12px 28px rgba(23, 32, 38, 0.06);
}

.guide-cta h2 {
    margin-bottom: 8px;
}

.marketing-content {
    max-width: none;
}

.marketing-content p,
.marketing-faq p,
.marketing-links .guide-card p {
    color: var(--muted);
    line-height: 1.65;
}

.marketing-faq {
    max-width: 860px;
}

.marketing-faq details {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.marketing-faq details + details {
    margin-top: 10px;
}

.marketing-faq summary {
    cursor: pointer;
    font-weight: 800;
}

.marketing-faq p {
    margin: 12px 0 0;
}

.marketing-links .guide-card a {
    display: inline-block;
    margin-top: 8px;
    font-weight: 800;
}

.profile-header {
    margin-bottom: 22px;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.profile-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 12px;
}

.profile-summary-card {
    justify-items: center;
    padding: 22px;
    text-align: center;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    color: #fff;
    background: var(--accent);
    font-size: 28px;
    font-weight: 850;
    letter-spacing: 1px;
}

.profile-summary-card h2 {
    margin-bottom: 8px;
    font-size: 24px;
}

.profile-summary-list {
    display: grid;
    gap: 12px;
    width: 100%;
    margin: 4px 0;
    text-align: left;
}

.profile-summary-list > div {
    display: grid;
    gap: 3px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.profile-summary-list dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
}

.profile-summary-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.profile-summary-card > .button {
    width: 100%;
}

.profile-card {
    box-shadow: 0 10px 24px rgba(23, 32, 38, 0.05);
}

.profile-main {
    display: grid;
    gap: 18px;
}

.profile-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(23, 32, 38, 0.05);
}

.profile-panel > .section-heading,
.profile-sidebar > .section-heading {
    margin-bottom: 0;
}

.profile-panel .form-card {
    padding: 0;
    border: 0;
    box-shadow: none;
}

.profile-panel .timeline {
    gap: 10px;
}

.profile-panel .timeline-item {
    box-shadow: none;
}

.profile-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.profile-edit-grid > div {
    min-width: 0;
}

.profile-notification-preferences {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfc;
}

.notification-channel-options {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    row-gap: 12px;
    margin-top: 10px;
}

.profile-notification-preferences input[type="checkbox"],
.notification-channel-checkbox {
    flex: 0 0 auto;
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
}

.notification-channel-options > label {
    margin: 0;
    line-height: 1.35;
}

.profile-notification-preferences .form-help {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.profile-field-wide {
    grid-column: 1 / -1;
}

.profile-form-actions {
    display: flex !important;
    justify-content: flex-end;
    padding-top: 4px;
}

.profile-form-actions button {
    min-width: 220px;
}

.profile-danger {
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff;
}

.profile-danger summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
}

.profile-danger summary::-webkit-details-marker {
    display: none;
}

.profile-danger summary::after {
    content: "+";
    color: #b91c1c;
    font-size: 24px;
    line-height: 1;
}

.profile-danger[open] summary::after {
    content: "−";
}

.profile-danger summary span {
    display: grid;
    gap: 3px;
}

.profile-danger summary small {
    color: var(--muted);
    font-weight: 500;
}

.profile-danger-content {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-top: 1px solid #fecaca;
}

.profile-danger-content p {
    max-width: 680px;
}

.service-form {
    max-width: 760px;
}

.workshop-legal-form {
    width: min(100%, 820px);
    max-width: none;
}

.workshop-legal-selector {
    display: grid;
    gap: 10px;
}

.workshop-registration-status {
    display: grid;
    gap: 3px;
    padding: 14px 16px;
    border: 1px solid #9ccfc8;
    border-radius: 10px;
    background: #eef8f6;
}

.workshop-registration-status span,
.workshop-registration-status small {
    color: var(--muted);
}

.workshop-registration-status strong {
    color: var(--accent-dark);
    font-size: 20px;
}

.workshop-legal-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.workshop-legal-card {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 92px;
    padding: 16px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.workshop-legal-card:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.workshop-legal-card.is-selected {
    border-color: var(--accent);
    background: #effaf8;
    box-shadow: 0 0 0 3px rgba(20, 132, 119, 0.1);
}

.workshop-legal-card input {
    position: absolute;
    width: 1px;
    min-height: 1px;
    height: 1px;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.workshop-legal-card:focus-within {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}

.workshop-legal-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 9px;
    color: var(--muted);
    background: #eef2f6;
}

.workshop-legal-card.is-selected .workshop-legal-icon {
    color: #fff;
    background: var(--accent);
}

.workshop-legal-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.workshop-legal-card > span:last-child {
    display: grid;
    gap: 4px;
}

.workshop-legal-card strong {
    font-size: 17px;
}

.workshop-legal-card small,
.workshop-form-section-heading span {
    color: var(--muted);
    font-weight: 500;
    line-height: 1.35;
}

.workshop-legal-card em {
    display: inline-flex;
    width: fit-content;
    margin-top: 7px;
    padding: 3px 7px;
    border-radius: 999px;
    color: #0f5e57;
    background: #d7f0ec;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.workshop-company-fields {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #b9ded8;
    border-radius: 10px;
    background: #f4fbfa;
}

.workshop-company-fields[hidden] {
    display: none;
}

.workshop-form-section-heading {
    display: grid !important;
    gap: 3px;
    padding-top: 4px;
}

.workshop-form-section-heading strong {
    font-size: 18px;
}

.workshop-company-grid,
.workshop-contact-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.workshop-company-wide {
    grid-column: 1 / -1;
}

.workshop-listing-settings {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid #b9ded8;
    border-radius: 10px;
    background: #f4fbfa;
}

.form-card .workshop-listing-toggle {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.workshop-listing-toggle input[type="checkbox"],
.workshop-listing-field-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    accent-color: var(--accent);
}

.workshop-listing-toggle label {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
}

.workshop-listing-toggle input {
    grid-column: 1;
    grid-row: 1;
}

.workshop-listing-field-options {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 9px 10px;
    margin-top: 8px;
}

.workshop-listing-field-options label {
    margin: 0;
    font-weight: 650;
}

.workshop-listing-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.workshop-listing-wide {
    grid-column: 1 / -1;
}

.workshop-listing-note {
    margin: 0;
    font-size: 14px;
}

.workshop-media-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.workshop-media-preview {
    display: block;
    width: 100%;
    max-width: 360px;
    height: 150px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    object-fit: cover;
}

.workshop-logo-preview {
    object-fit: contain;
    padding: 12px;
}

.workshop-card-photo {
    width: calc(100% + 36px);
    height: 170px;
    margin: -18px -18px 16px;
    border-radius: 8px 8px 0 0;
    object-fit: cover;
}

.workshop-card-logo-wrap {
    display: grid;
    min-height: 120px;
    margin-bottom: 16px;
    place-items: center;
}

.workshop-card-logo {
    max-width: 220px;
    max-height: 100px;
}

.form-card > div {
    display: grid;
    gap: 8px;
}

.form-card ul {
    margin: 4px 0 0;
    padding-left: 18px;
    color: var(--warn);
}

.form-card .required:after {
    content: " *";
    color: var(--warn);
}

.form-card .vin-unknown-option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 3px 10px;
    align-items: start;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f8fbfc;
}

.vin-unknown-option input[type="checkbox"] {
    grid-column: 1;
    grid-row: 1;
    width: 20px;
    height: 20px;
    min-height: 20px;
    margin: 1px 0 0;
    padding: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.vin-unknown-option label {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    line-height: 1.35;
    cursor: pointer;
}

.vin-unknown-option .form-help,
.vin-unknown-option .help-text,
.vin-unknown-option ul {
    grid-column: 2;
    margin: 0;
}

.vin-unknown-option .form-help,
.vin-unknown-option .help-text {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.login-card {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    padding: clamp(24px, 3vw, 34px);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 64px rgba(10, 20, 24, 0.28);
    backdrop-filter: blur(8px);
}

.login-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: clamp(660px, calc(100svh - 210px), 780px);
    margin: 0;
    padding: clamp(28px, 4vw, 52px);
    overflow: hidden;
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 24px;
    background: #172026;
    box-shadow: 0 24px 60px rgba(23, 32, 38, 0.16);
}

.login-visual {
    position: absolute;
    inset: 0;
    margin: 0;
    overflow: hidden;
    background: #e8ecec;
}

.login-visual::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(5, 15, 17, 0.72) 0%, rgba(5, 15, 17, 0.12) 48%, rgba(5, 15, 17, 0.45) 100%),
        linear-gradient(0deg, rgba(5, 15, 17, 0.28), transparent 45%);
    pointer-events: none;
}

.login-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.login-visual-copy {
    position: absolute;
    z-index: 1;
    top: clamp(34px, 5vw, 64px);
    left: clamp(28px, 5vw, 64px);
    width: min(390px, calc(100% - 580px));
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

.login-visual-title {
    margin-bottom: 24px;
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.login-benefits {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.login-benefits li {
    display: flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(8, 32, 33, 0.54);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(8px);
    font-size: 15px;
    font-weight: 750;
}

.login-benefits svg {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #6ee7d8;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-card-header {
    display: block;
    margin-bottom: 6px;
}

.login-card-header .eyebrow {
    margin-bottom: 8px;
}

.login-card-header h1 {
    margin: 0;
    font-size: clamp(38px, 4.2vw, 54px);
    line-height: 1;
}

.auth-divider {
    display: flex !important;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.social-login-actions {
    display: grid;
    gap: 10px;
    justify-self: center;
    width: min(100%, 400px);
}

.social-login-button {
    position: relative;
    width: 100%;
    border: 1px solid var(--line);
    color: #3c4043;
    background: #fff;
    font-size: 16px;
    font-weight: 500;
}

.social-login-button:hover {
    color: var(--ink);
    background: #f8fafc;
}

.social-login-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.facebook-login-button:not(:disabled) {
    border-color: var(--line);
    color: #3c4043;
    background: #fff;
    font-weight: 500;
}

.facebook-login-button:not(:disabled):hover {
    color: #3c4043;
    background: #f8fafc;
}

.social-provider-icon {
    position: absolute;
    left: 24px;
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
}

.google-mark svg {
    width: 24px;
    height: 24px;
}

.facebook-mark {
    border-radius: 50%;
    color: #fff;
    background: #1877f2;
    font-family: Arial, sans-serif;
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
}

.auth-register-link {
    margin: 2px 0 0;
    color: var(--muted);
    text-align: center;
}

.social-registration-card {
    align-content: start;
}

.social-profile-summary {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.social-profile-summary strong {
    font-size: 18px;
}

.social-profile-summary > span:last-child {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.social-profile-provider {
    color: var(--accent);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.social-registration-card form {
    display: grid;
    gap: 14px;
}

.repair-form-shell {
    display: grid;
    gap: 22px;
    padding-top: 24px;
}

.repair-form-header {
    max-width: 1120px;
}

.repair-form-header h1 {
    margin-bottom: 8px;
}

.repair-form-card {
    justify-self: center;
    width: min(100%, 1120px);
}

.choice-group {
    display: grid;
    gap: 10px;
}

.choice-options {
    display: grid;
    gap: 8px;
}

.choice-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-weight: 750;
}

.choice-option input[type="radio"] {
    flex: 0 0 auto;
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
}

.vehicle-settings-compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    max-width: 430px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfc;
}

.vehicle-settings-compact > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.vehicle-settings-options {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.compact-choice-option {
    justify-self: end;
    gap: 8px;
    max-width: 270px;
    font-size: 14px;
    line-height: 1.25;
}

.compact-choice-option input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
}

@media (max-width: 640px) {
    .vehicle-settings-compact {
        grid-template-columns: 1fr;
        margin-left: 0;
        max-width: none;
    }

    .compact-choice-option {
        justify-self: start;
        max-width: none;
    }

    .vehicle-settings-options {
        justify-items: start;
    }
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.meta-grid > div {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 16px;
}

.meta-grid span {
    color: var(--muted);
    font-size: 13px;
}

.meta-grid strong {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.vehicle-notes {
    margin: -8px 0 24px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.vehicle-notes span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.vehicle-notes p {
    margin: 0;
}

.timeline {
    display: grid;
    gap: 12px;
}

.repair-history-tabs {
    display: grid;
    gap: 14px;
}

.repair-history-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.repair-history-tab-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    width: fit-content;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfc;
}

.repair-history-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--muted);
    font-weight: 850;
    cursor: pointer;
}

.repair-history-tab span {
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    color: var(--ink);
    background: #e2e8f0;
    font-size: 13px;
    text-align: center;
}

.repair-history-panel {
    display: none;
}

.repair-history-tab-input:first-of-type:checked ~ .repair-history-tab-list .repair-history-tab:first-child,
.repair-history-tab-input:nth-of-type(2):checked ~ .repair-history-tab-list .repair-history-tab:nth-child(2) {
    color: #fff;
    background: var(--accent);
}

.repair-history-tab-input:first-of-type:checked ~ .repair-history-tab-list .repair-history-tab:first-child span,
.repair-history-tab-input:nth-of-type(2):checked ~ .repair-history-tab-list .repair-history-tab:nth-child(2) span {
    color: var(--accent);
    background: #fff;
}

.repair-history-tab-input:first-of-type:checked ~ .repair-history-panel-mechanics,
.repair-history-tab-input:nth-of-type(2):checked ~ .repair-history-panel-owner {
    display: block;
}

.repair-history-list {
    display: grid;
    gap: 10px;
}

.repair-history-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.repair-history-card-main {
    display: grid;
    grid-template-columns: minmax(86px, 110px) minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
}

.repair-history-date time {
    color: var(--accent);
    font-weight: 900;
    white-space: nowrap;
}

.repair-history-summary {
    min-width: 0;
}

.repair-history-summary h3 {
    margin: 0 0 4px;
    overflow-wrap: anywhere;
    font-size: 17px;
}

.repair-history-summary p {
    margin: 0 0 8px;
}

.repair-history-summary small {
    display: block;
    color: var(--muted);
    font-weight: 700;
}

.repair-history-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.repair-history-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    margin: 0;
}

.repair-history-meta div {
    min-width: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fbfc;
}

.repair-history-meta dt {
    margin: 0 0 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.repair-history-meta dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 800;
}

.repair-history-activities {
    display: grid;
    gap: 4px;
}

.repair-history-activities > span {
    display: block;
}

.repair-history-text {
    display: block;
    overflow-wrap: anywhere;
}

.numeric {
    text-align: right;
    white-space: nowrap;
}

.nowrap {
    white-space: nowrap;
}

.table-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
}

.table-actions .button-small {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 13px;
}

.timeline-item {
    padding: 18px;
}

.repair-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.timeline-item time {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.repair-activities {
    display: grid;
    gap: 12px;
    padding-top: 8px;
}

.repair-activities .section-heading {
    margin-bottom: 0;
}

.repair-activities h2 {
    margin-bottom: 0;
    font-size: 22px;
}

.activity-list {
    display: grid;
    gap: 12px;
}

.cost-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.activity-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) repeat(3, minmax(82px, 0.5fr));
    gap: 12px;
    align-items: end;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfc;
}

.activity-remove {
    grid-column: 1 / -1;
    justify-self: end;
    min-height: 46px;
}

.repair-activity-list {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.repair-activity-list > div {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fbfc;
}

.repair-activity-list span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.repair-activity-list small {
    color: var(--muted);
    font-weight: 750;
}

.repair-costs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.repair-costs > div {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fbfc;
}

.repair-costs span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.flash {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 6px;
    background: #ecfdf5;
    color: #065f46;
    font-weight: 700;
}

.flash-error {
    background: #fef2f2;
    color: #991b1b;
}

@media (max-width: 1040px) {
    .activity-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) repeat(3, minmax(110px, 0.6fr));
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }
}

@media (max-width: 900px) {
    .activity-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-shell {
        min-height: 610px;
        padding: 24px;
    }

    .login-card {
        width: min(100%, 440px);
    }

    .login-visual-copy {
        top: 24px;
        left: 24px;
        width: 230px;
    }

    .login-visual-title {
        margin-bottom: 16px;
        font-size: 27px;
    }

    .login-benefits li {
        padding: 7px 10px;
        font-size: 13px;
    }
}

@media (max-width: 760px) {
    .guide-checks-note {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .guide-checks-note > .muted {
        grid-column: auto;
    }

    .page-toolbar-inner {
        align-items: stretch;
        flex-direction: column;
        padding-top: 16px;
    }

    .page-toolbar-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .page-toolbar-actions .button,
    .page-toolbar-actions form {
        width: 100%;
    }

    .workshop-legal-options,
    .workshop-company-grid,
    .workshop-contact-grid,
    .workshop-listing-values,
    .workshop-media-fields {
        grid-template-columns: 1fr;
    }

    .workshop-company-wide {
        grid-column: auto;
    }

    .workshop-listing-wide {
        grid-column: auto;
    }

    .profile-edit-grid {
        grid-template-columns: 1fr;
    }

    .profile-field-wide {
        grid-column: auto;
    }

    .profile-form-actions,
    .profile-form-actions button {
        width: 100%;
    }

    .brand-logo {
        height: 42px;
    }

    .section-heading,
    .repair-item-header,
    .detail-header,
    .workshop-operations-header {
        align-items: stretch;
        flex-direction: column;
    }

    .detail-header {
        display: flex;
    }

    .site-header {
        align-items: center;
        flex-flow: row wrap;
        gap: 10px;
        padding: 10px 16px;
    }

    .nav-ready .site-header {
        flex-wrap: nowrap;
    }

    .nav-ready .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-ready .nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - 63px);
        padding: 10px 16px 16px;
        overflow-y: auto;
        border-bottom: 1px solid var(--line);
        background: #fff;
        box-shadow: 0 18px 32px rgba(23, 32, 38, 0.14);
    }

    .nav-ready .nav.is-open {
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
    }

    .nav:not(.is-open) {
        flex-basis: 100%;
        justify-content: center;
    }

    .nav .nav-item,
    .nav .nav-profile,
    .nav .nav-button {
        display: flex;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        min-height: 48px;
        padding: 9px 12px;
        text-align: left;
    }

    .nav .nav-item-label,
    .nav .nav-profile span,
    .nav .nav-button span {
        max-width: none;
        color: inherit;
        font-size: 15px;
        font-weight: 750;
    }

    .nav .nav-profile {
        margin-left: 0;
    }

    .nav .nav-badge {
        position: static;
        margin-left: auto;
        border: 0;
    }

    .workshop-primary-actions,
    .workshop-vehicle-actions {
        justify-content: stretch;
    }

    .workshop-primary-actions .button,
    .workshop-vehicle-actions .button {
        flex: 1 1 140px;
    }

    .workshop-tab-list {
        width: 100%;
    }

    .workshop-tab {
        flex: 1 1 140px;
        justify-content: center;
    }

    .workshop-admin > summary {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .workshop-admin > summary small {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .hero,
    .form-shell,
    .home-search-grid {
        grid-template-columns: 1fr;
    }

    .login-shell {
        display: block;
        min-height: 0;
        margin: 0;
        padding: 16px 0 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    body:has(.login-shell) .page {
        padding-top: 16px;
    }

    .login-visual {
        display: none;
    }

    .login-card {
        width: 100%;
        background: #fff;
        backdrop-filter: none;
    }

    .guide-steps ol,
    .guide-workshop,
    .guide-cta {
        grid-template-columns: 1fr;
    }

    .search-row,
    .workshop-search-grid {
        grid-template-columns: 1fr;
    }

    .activity-row {
        grid-template-columns: 1fr;
    }

    .cost-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-list-item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .repair-history-card-main {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .repair-history-actions {
        justify-content: stretch;
    }

    .repair-history-actions .button {
        flex: 1 1 120px;
    }

    .repair-history-meta {
        grid-template-columns: 1fr;
    }

    .repair-history-tab-list {
        width: 100%;
    }

    .repair-history-tab {
        flex: 1 1 140px;
        justify-content: center;
    }

    .repair-history-image-attachment {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .repair-history-image-attachment > img {
        width: 64px;
    }

    .repair-history-image-preview {
        display: none !important;
    }

    h1 {
        font-size: 42px;
    }
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.button-secondary {
    background: #475569;
}

.button-secondary:hover {
    background: #334155;
}

.button-danger {
    background: #b91c1c;
}

.button-danger:hover {
    background: #991b1b;
}

.danger-zone {
    margin-top: 22px;
    border-color: #fecaca;
}

.legal-page {
    width: min(860px, 100%);
    margin: 0 auto;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 12px 28px rgba(23, 32, 38, 0.06);
}

.legal-page h2 {
    margin-top: 28px;
}

.legal-page p,
.legal-page li {
    line-height: 1.65;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 24px;
    color: var(--muted);
    font-size: 14px;
}

.footer-link {
    min-height: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    font-size: inherit;
    font-weight: inherit;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: var(--accent);
    background: transparent;
}

.cookie-consent {
    position: fixed;
    z-index: 100;
    right: 20px;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    box-shadow: 0 18px 48px rgba(23, 32, 38, 0.2);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent strong {
    display: block;
    margin-bottom: 5px;
    font-size: 17px;
}

.cookie-consent p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.5;
}

.cookie-consent p a {
    color: var(--accent);
    font-weight: 700;
}

.cookie-consent-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

@media (max-width: 720px) {
    .cookie-consent {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .cookie-consent-actions button {
        flex: 1;
    }
}

.android-app-banner {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    width: min(760px, calc(100% - 24px));
    margin: 12px auto 0;
    padding: 12px;
    border: 1px solid #99f6e4;
    border-radius: 10px;
    background: #f0fdfa;
    box-shadow: 0 12px 28px rgba(23, 32, 38, 0.14);
}

.android-app-banner[hidden] {
    display: none;
}

.android-app-banner img {
    border-radius: 10px;
}

.android-app-banner-copy {
    display: grid;
    gap: 2px;
}

.android-app-banner-copy span {
    color: var(--muted);
    font-size: 14px;
}

.android-app-banner-close {
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    color: var(--muted);
    background: transparent;
    font-size: 26px;
}

@media (max-width: 620px) {
    .android-app-banner {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .android-app-banner .button {
        grid-column: 1 / -1;
        width: 100%;
    }
}


.autocomplete-field {
    display: grid;
    gap: 6px;
}

.catalog-combobox {
    position: relative;
}

.catalog-dropdown {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(23, 32, 38, 0.14);
}

.catalog-dropdown[hidden],
.catalog-add-panel[hidden] {
    display: none;
}

.catalog-dropdown-search input,
.catalog-add-panel input {
    width: 100%;
}

.catalog-dropdown-list {
    display: grid;
    gap: 4px;
    max-height: 212px;
    overflow-y: auto;
    padding-right: 2px;
}

.catalog-option,
.catalog-add-toggle {
    justify-content: flex-start;
    min-height: 38px;
    padding: 8px 10px;
    color: var(--ink);
    background: transparent;
    font-weight: 700;
    text-align: left;
}

.catalog-option:hover,
.catalog-option:focus-visible {
    color: var(--ink);
    background: #eef6f5;
}

.catalog-empty {
    padding: 9px 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.catalog-add-toggle {
    color: var(--accent);
    border-top: 1px solid var(--line);
    border-radius: 0;
}

.catalog-add-toggle:hover,
.catalog-add-toggle:focus-visible {
    color: #fff;
    background: var(--accent);
}

.catalog-add-panel {
    display: grid;
    gap: 8px;
}

.suggestions {
    display: grid;
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(23, 32, 38, 0.1);
}

.suggestions[hidden] {
    display: none;
}

.suggestion-item,
.suggestion-add {
    justify-content: flex-start;
    min-height: 38px;
    padding: 8px 10px;
    color: var(--ink);
    background: transparent;
    font-weight: 700;
    text-align: left;
}

.suggestion-item:hover,
.suggestion-item:focus-visible {
    color: var(--ink);
    background: #eef6f5;
}

.suggestion-add {
    color: var(--accent);
    border-top: 1px solid var(--line);
    border-radius: 0;
}

.suggestion-add:hover,
.suggestion-add:focus-visible {
    color: #fff;
    background: var(--accent);
}

.vehicle-photo {
    width: 160px;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #e8eef1;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.repair-attachments,
.repair-history-attachments {
    display: grid;
    gap: 8px;
}

.repair-history-image-attachment {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: min(100%, 520px);
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #f8fbfc;
    text-decoration: none;
}

.repair-history-image-attachment > img {
    width: 72px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #fff;
}

.repair-history-image-attachment > span:not(.repair-history-image-preview),
.repair-history-file-attachment {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 800;
}

.repair-history-image-preview {
    position: absolute;
    left: 88px;
    bottom: calc(100% + 10px);
    z-index: 20;
    display: none;
    width: min(420px, 72vw);
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(23, 32, 38, 0.22);
}

.repair-history-image-preview img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 6px;
}

.repair-history-image-attachment:hover .repair-history-image-preview,
.repair-history-image-attachment:focus-visible .repair-history-image-preview {
    display: block;
}

.attachment-list {
    display: grid;
    gap: 8px;
}

.attachment-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.repair-history-attachments {
    margin-top: 8px;
}

.ownership-flow-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 20px;
    align-items: start;
}

.info-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.info-card li + li {
    margin-top: 10px;
}

.document-upload-group {
    display: grid;
    gap: 14px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--muted);
    background: #e8eef2;
    font-size: 12px;
    font-weight: 800;
}

.status-pending {
    color: #92400e;
    background: #fef3c7;
}

.status-approved {
    color: #166534;
    background: #dcfce7;
}

.status-rejected {
    color: #991b1b;
    background: #fee2e2;
}

@media (max-width: 760px) {
    .ownership-flow-grid {
        grid-template-columns: 1fr;
    }
}
.repair-assistant-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
}

.repair-assistant-toggle {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--accent, #3b82f6);
    color: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.28);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.repair-assistant-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.34);
}

.repair-assistant-toggle svg {
    width: 54px;
    height: 54px;
}

.repair-assistant-panel {
    position: absolute;
    right: 0;
    bottom: 86px;
    display: none;
    width: min(410px, calc(100vw - 32px));
    height: min(650px, calc(100vh - 126px));
    overflow: hidden;
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 18px;
    background: var(--panel);
    color: var(--text, #0f172a);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.repair-assistant-widget.is-open .repair-assistant-panel {
    display: block;
}

.repair-assistant-widget.is-open .repair-assistant-toggle {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent, #3b82f6) 20%, transparent);
}

.repair-assistant-button.is-recording,
.repair-assistant-actions [data-repair-assistant-record].is-recording {
    background: #dc2626;
    box-shadow: 0 0 0 7px rgba(220, 38, 38, 0.13);
}

.repair-assistant-window {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%;
    min-height: 0;
}

.repair-assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.18);
}

.repair-assistant-header h2,
.repair-assistant-header .eyebrow {
    margin: 0;
}

.repair-assistant-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.12);
    color: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.repair-assistant-messages {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding: 22px;
    overflow-y: auto;
    background: color-mix(in srgb, var(--surface, #fff) 95%, var(--primary, #2563eb));
}

.repair-assistant-message {
    align-self: flex-start;
    max-width: min(86%, 560px);
    padding: 14px 16px;
    border: 1px solid rgba(100, 116, 139, 0.16);
    border-radius: 4px 18px 18px;
    background: var(--surface, #fff);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.repair-assistant-message.is-user {
    align-self: flex-end;
    border-color: transparent;
    border-radius: 18px 4px 18px 18px;
    background: var(--primary, #2563eb);
    color: #fff;
}

.repair-assistant-message.is-error {
    border-color: rgba(185, 28, 28, 0.25);
    background: #fef2f2;
    color: #991b1b;
}

.repair-assistant-message p {
    margin: 5px 0 0;
    white-space: pre-wrap;
}

.repair-assistant-upgrade-form {
    margin-top: 14px;
}

.repair-assistant-repair {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(100, 116, 139, 0.18);
}

.repair-assistant-repair .button {
    margin-left: auto;
}

.repair-assistant-candidates {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.repair-assistant-candidate {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--accent, #0f766e) 35%, transparent);
    border-radius: 9px;
    color: var(--accent-dark, #115e59);
    background: color-mix(in srgb, var(--accent, #0f766e) 8%, white);
    font: inherit;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.repair-assistant-candidate:hover,
.repair-assistant-candidate:focus-visible {
    border-color: var(--accent, #0f766e);
    background: color-mix(in srgb, var(--accent, #0f766e) 14%, white);
}

.repair-assistant-candidate:disabled {
    opacity: 0.55;
    cursor: wait;
}

.repair-assistant-draft {
    display: grid;
    grid-template-columns: minmax(90px, auto) 1fr;
    gap: 6px 12px;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(100, 116, 139, 0.18);
    font-size: 0.92rem;
}

.repair-assistant-draft dt {
    font-weight: 750;
    color: var(--muted, #64748b);
}

.repair-assistant-draft dd {
    margin: 0;
}

.repair-assistant-history {
    margin: 12px 0 0;
    padding: 12px 0 0 20px;
    border-top: 1px solid rgba(100, 116, 139, 0.18);
}

.repair-assistant-history li + li {
    margin-top: 6px;
}

.repair-assistant-history a {
    color: var(--accent-dark, #115e59);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.repair-history-card {
    scroll-margin-top: 110px;
}

.repair-history-card:target {
    outline: 3px solid color-mix(in srgb, var(--accent, #0f766e) 32%, transparent);
    outline-offset: 4px;
}

.repair-assistant-thinking-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 7px;
    color: var(--muted, #64748b);
}

.repair-assistant-thinking-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.repair-assistant-thinking-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent, #0f766e);
    animation: repair-assistant-thinking 1.1s infinite ease-in-out;
}

.repair-assistant-thinking-dots i:nth-child(2) { animation-delay: 140ms; }
.repair-assistant-thinking-dots i:nth-child(3) { animation-delay: 280ms; }

@keyframes repair-assistant-thinking {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.repair-assistant-response-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.repair-assistant-composer {
    max-height: min(430px, 72vh);
    padding: 18px 22px 22px;
    overflow-y: auto;
    border-top: 1px solid rgba(100, 116, 139, 0.18);
}

.repair-assistant-composer label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.repair-assistant-composer textarea {
    width: 100%;
    min-height: 82px;
    max-height: 150px;
    resize: vertical;
}

.repair-assistant-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.repair-assistant-actions [data-repair-assistant-document-button] {
    flex-basis: 100%;
}

.repair-assistant-status {
    margin-top: 8px;
    color: var(--muted, #64748b);
    font-size: 0.92rem;
}

.repair-assistant-status.is-error {
    color: #b91c1c;
}

.repair-assistant-permission-help {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(185, 28, 28, 0.22);
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
}

.repair-assistant-permission-help p {
    margin: 3px 0 7px;
    font-size: 0.9rem;
    line-height: 1.28;
}

.repair-assistant-permission-diagnostic {
    padding: 7px 9px;
    border-radius: 7px;
    background: rgba(153, 27, 27, 0.07);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem !important;
    overflow-wrap: anywhere;
}

.repair-assistant-permission-details {
    margin: 5px 0 8px;
    font-size: 0.84rem;
}

.repair-assistant-permission-details summary {
    cursor: pointer;
    font-weight: 750;
}

.repair-assistant-permission-details ol {
    margin: 8px 0 0;
    padding-left: 20px;
}

.repair-assistant-permission-details code {
    font-size: 0.78rem;
}

.repair-assistant-window:has(.repair-assistant-permission-help:not([hidden])) {
    grid-template-rows: auto 0 minmax(0, 1fr);
}

.repair-assistant-window:has(.repair-assistant-permission-help:not([hidden])) .repair-assistant-messages {
    display: none;
}

.repair-assistant-window:has(.repair-assistant-permission-help:not([hidden])) .repair-assistant-composer {
    display: grid;
    grid-row: 3;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 8px;
    height: 100%;
    max-height: none;
    overflow: hidden;
    padding-top: 12px;
}

.repair-assistant-window:has(.repair-assistant-permission-help:not([hidden])) .repair-assistant-composer label,
.repair-assistant-window:has(.repair-assistant-permission-help:not([hidden])) .repair-assistant-permission-help,
.repair-assistant-window:has(.repair-assistant-permission-help:not([hidden])) .repair-assistant-actions {
    margin: 0;
}

.repair-assistant-window:has(.repair-assistant-permission-help:not([hidden])) .repair-assistant-composer textarea {
    min-height: 70px;
}

.repair-assistant-window:has(.repair-assistant-permission-help:not([hidden])) .repair-assistant-permission-help {
    min-height: 0;
    overflow-y: auto;
}

@media (max-width: 700px) {
    .repair-assistant-widget {
        right: 14px;
        bottom: 14px;
    }

    .repair-assistant-toggle {
        width: 64px;
        height: 64px;
    }

    .repair-assistant-toggle svg {
        width: 50px;
        height: 50px;
    }

    .repair-assistant-panel {
        right: 0;
        bottom: 78px;
        width: min(410px, calc(100vw - 28px));
        height: min(680px, calc(100vh - 104px));
        border-radius: 16px;
    }

    .repair-assistant-header {
        padding: 14px 16px;
    }

    .repair-assistant-header h2 {
        font-size: 1.45rem;
    }

    .repair-assistant-messages {
        padding: 14px;
    }

    .repair-assistant-composer {
        max-height: 72vh;
        padding: 14px;
    }

    .repair-assistant-message {
        max-width: 94%;
    }

    .repair-assistant-actions {
        flex-direction: column-reverse;
    }

    .repair-assistant-actions .button,
    .repair-assistant-repair .button {
        width: 100%;
    }

    .repair-assistant-repair {
        align-items: stretch;
        flex-direction: column;
    }

}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-locale {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 0;
}

.nav-locale-button {
    display: inline-grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    min-width: 64px;
    min-height: 48px;
    margin: 0;
    padding: 2px 6px;
    border: 0;
    border-radius: 9px;
    color: var(--muted);
    background: transparent;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-locale-button:hover,
.nav-locale-button:focus-visible {
    color: var(--accent);
    background: #eef6f5;
}

.nav-locale-button.is-active {
    color: var(--accent);
    background: #eef6f5;
}

.nav-locale-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
}

.nav-locale-icon img {
    display: block;
    width: 24px;
    height: 16px;
    border: 1px solid rgba(100, 116, 139, 0.24);
    border-radius: 2px;
    object-fit: cover;
}

@media (max-width: 760px) {
    .nav .nav-locale {
        display: flex;
        width: 100%;
        gap: 4px;
        padding: 4px 8px;
    }

    .nav .nav-locale-button {
        flex: 1;
    }
}

.premium-plan-summary {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid rgba(111, 76, 255, 0.25);
    border-radius: 14px;
    background: rgba(111, 76, 255, 0.06);
}

.premium-plan-summary ul {
    margin: 10px 0;
    padding-left: 20px;
}

.premium-plan-summary li + li {
    margin-top: 6px;
}

.premium-trial-state {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(234, 179, 8, 0.12);
}

.premium-trial-dialog {
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 28px;
    border: 0;
    border-radius: 20px;
    background: var(--surface, #fff);
    color: inherit;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
    overflow-y: auto;
}

.email-verification-dialog {
    width: min(560px, calc(100vw - 32px));
    padding: 28px;
    border: 0;
    border-radius: 20px;
    background: var(--surface, #fff);
    color: inherit;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.email-verification-dialog::backdrop {
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(3px);
}

.email-verification-dialog-close-form {
    position: absolute;
    top: 12px;
    right: 12px;
}

.email-verification-dialog-close {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
}

.email-verification-dialog h2 {
    margin-top: 4px;
    padding-right: 32px;
}

.email-verification-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.email-verification-dialog-actions form {
    margin: 0;
}

.premium-trial-dialog::backdrop {
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(3px);
}

.premium-trial-dialog-close-form {
    position: absolute;
    top: 12px;
    right: 12px;
}

.premium-trial-dialog-close {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
}

.premium-trial-dialog-heading {
    padding-right: 32px;
}

.premium-trial-benefits {
    margin: 22px 0;
}

.premium-trial-benefits ul {
    display: grid;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.premium-trial-benefits li {
    display: grid;
    gap: 3px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.premium-trial-benefits span {
    color: var(--muted);
}

.premium-trial-form {
    display: grid;
    gap: 10px;
}

.premium-trial-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 8px;
}

.premium-trial-consent input {
    width: auto;
    margin-top: 4px;
}

@media (max-width: 700px) {
    .premium-trial-dialog {
        padding: 22px 18px;
    }

    .premium-trial-dialog .action-row {
        display: grid;
    }
}
