* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #111827;
    color: #e5e7eb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    min-height: 84px;
    background: #1f2937;
    padding: 14px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 12px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: #e5e7eb;
    text-decoration: none;
}

.brand-logo-mark {
    height: 30px;
    width: auto;
    max-width: 120px;
    flex: 0 0 auto;
}

.brand-text {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.topbar-status {
    font-size: 12px;
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 7px 12px;
}

.topbar-account {
    font-size: 12px;
    color: #9ca3af;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: #e5e7eb;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.topbar-button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.topbar-button.is-active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
    box-shadow: inset 0 -2px 0 #93c5fd;
}

.topbar-button:focus-visible,
.brand-link:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.topbar-logout-form {
    display: inline-flex;
    margin: 0;
}

.page-shell {
    padding: 24px;
    flex: 1 0 auto;
}

.site-footer {
    padding: 12px 24px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.4;
}

.site-footer p {
    margin: 0;
}

.login-shell {
    width: 100%;
    min-height: calc(100vh - 210px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 5vh, 52px) 0 clamp(16px, 3vh, 28px);
}

.login-card {
    width: min(540px, 100%);
    padding: 32px;
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.login-brand {
    margin-bottom: 18px;
}

.login-brand-logo {
    display: block;
    width: clamp(190px, 38vw, 210px);
    max-width: 100%;
    height: auto;
}

.login-product-name {
    margin: 14px 0 16px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #cbd5e1;
}

.login-card h1 {
    margin: 0 0 8px;
    font-size: 1.9rem;
}

.login-support-text {
    margin: 0 0 18px;
    color: #cbd5e1;
}

.login-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.login-form .form-actions {
    width: 100%;
    margin-top: 4px;
}

.login-form .primary-button {
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 14px;
}

.hero-card,
.card,
.stat-card {
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.hero-card {
    padding: 24px;
    margin-bottom: 18px;
}

.hero-card h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
}

.hero-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.5;
    max-width: 860px;
}

.status-pill {
    display: inline-flex;
    margin-top: 12px;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(34, 197, 94, 0.14);
    color: #bbf7d0;
    font-size: 13px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    padding: 18px;
}

.stat-label {
    display: block;
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
}

.layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
}

.card {
    padding: 18px;
}

.card-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.card h2 {
    margin: 0 0 12px 0;
    font-size: 20px;
}

.todo-list {
    margin: 0;
    padding-left: 20px;
    color: #cbd5e1;
    line-height: 1.8;
}

.contract-list-filters {
    margin-top: 12px;
}

.contract-list-filters .form-actions {
    grid-column: 1 / -1;
}

.muted-text {
    color: #9ca3af;
    line-height: 1.5;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 12px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field span {
    color: #9ca3af;
    font-size: 13px;
}

.form-field input,
.form-field select {
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #111827;
    color: #e5e7eb;
    padding: 0 12px;
    font-size: 14px;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: rgba(147, 197, 253, 0.8);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.primary-button,
.secondary-button {
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.primary-button {
    border: 1px solid rgba(59, 130, 246, 0.65);
    background: rgba(37, 99, 235, 0.28);
    color: #dbeafe;
}

.secondary-button {
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(30, 41, 59, 0.55);
    color: #d1d5db;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 11px 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
    color: #9ca3af;
    font-weight: 600;
    font-size: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-active {
    background: rgba(34, 197, 94, 0.15);
    color: #bbf7d0;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fde68a;
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #bfdbfe;
}

.badge-sla {
    background: rgba(59, 130, 246, 0.15);
    color: #bfdbfe;
    white-space: nowrap;
}

.technician-hero-card {
    padding: 18px 20px;
    margin-bottom: 12px;
}

.technician-hero-card h1 {
    font-size: 24px;
    margin-bottom: 6px;
}

.technician-hero-card p {
    font-size: 14px;
    line-height: 1.45;
}

.technician-card-stack {
    gap: 12px;
}

.technician-search-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(180px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.technician-search-field {
    min-width: 0;
}

.technician-status-field {
    min-width: 0;
}

.technician-search-actions {
    display: flex;
    align-items: flex-end;
}

.technician-search-actions .primary-button {
    white-space: nowrap;
}

.technician-search-hint {
    margin-top: 10px;
}

.technician-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.technician-contract-table {
    min-width: 880px;
    border-collapse: collapse;
}

.technician-contract-table th,
.technician-contract-table td {
    padding: 10px 12px;
    vertical-align: top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.technician-contract-table thead th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.technician-contract-table tbody tr.technician-contract-row:hover,
.technician-contract-table tbody tr.technician-contract-row:focus-within {
    background: rgba(255, 255, 255, 0.03);
}

.technician-contract-table .technician-col-customer {
    width: 27%;
}

.technician-contract-table .technician-col-status {
    width: 15%;
}

.technician-contract-table .technician-col-sla {
    width: 8%;
}

.technician-contract-table .technician-col-on-call {
    width: 30%;
}

.technician-contract-table .technician-col-callers {
    width: 13%;
}

.technician-contract-table .technician-col-action {
    width: 7%;
    white-space: nowrap;
}

.technician-customer-name {
    font-weight: 600;
    line-height: 1.35;
}

.technician-contract-ref {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.35;
}

.technician-status-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.technician-status-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 999px;
}

.technician-status-badge.badge-active {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
}

.technician-status-badge.badge-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #fcd34d;
}

.technician-status-badge.badge-info {
    background: rgba(148, 163, 184, 0.14);
    color: #cbd5e1;
}

.technician-activity-hint {
    font-size: 12px;
    line-height: 1.3;
}

.technician-sla-text {
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
    line-height: 1.35;
    white-space: nowrap;
}

.technician-on-call-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.technician-on-call-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.35;
}

.technician-on-call-area {
    font-size: 13px;
    color: #e2e8f0;
}

.technician-on-call-window {
    font-size: 12px;
    color: #94a3b8;
}

.technician-on-call-empty {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.35;
}

.technician-caller-text {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.35;
}

.technician-caller-warn {
    font-size: 12px;
    font-weight: 500;
}

.technician-caller-numbers {
    font-size: 13px;
    line-height: 1.35;
    list-style: none;
}

.technician-row-action {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #93c5fd;
    white-space: nowrap;
    text-decoration: none;
}

.technician-row-action::after {
    content: "›";
    margin-left: 6px;
    color: #94a3b8;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.15s ease;
}

.technician-row-action:hover {
    color: #bfdbfe;
    background: rgba(147, 197, 253, 0.08);
    text-decoration: none;
}

.technician-row-action:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
    text-decoration: none;
}

.technician-caller-numbers__summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.technician-caller-numbers__summary::-webkit-details-marker {
    display: none;
}

.technician-caller-numbers__summary::marker {
    content: "";
    display: none;
}

.technician-caller-numbers[open] .technician-caller-numbers__summary::after {
    transform: rotate(90deg);
}

.technician-caller-numbers__list {
    margin: 6px 0 0 0;
    padding: 8px 10px;
    list-style: none;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
}

.technician-caller-numbers__item {
    padding: 3px 0;
    color: #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.45;
}


.table-link {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 600;
}

.table-link:hover {
    text-decoration: underline;
}

.flash-container {
    margin: 12px 24px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 1200px;
}

.flash-message {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: min(900px, 100%);
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(30, 41, 59, 0.85);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.flash-message-fade-out {
    opacity: 0;
    transform: translateY(-6px);
}

.flash-success {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.35);
    width: 100%;
    max-width: min(900px, 100%);
    border-radius: 12px;
}

.flash-warning {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.35);
}

.flash-error,
.flash-danger {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.35);
}

.flash-info {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.3);
}

.wizard-nav {
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 18px;
}

.wizard-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}

.wizard-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.wizard-progress-label {
    margin: 0 0 14px 0;
    color: #9ca3af;
    font-size: 13px;
}

.wizard-steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 8px;
}

.wizard-step-item {
    margin: 0;
}

.wizard-step-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #9ca3af;
    border: 1px solid transparent;
    font-size: 13px;
}

.wizard-step-current .wizard-step-link {
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(59, 130, 246, 0.35);
}

.wizard-step-completed .wizard-step-link {
    color: #cbd5e1;
}

.wizard-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 11px;
    font-weight: 700;
}

.wizard-step-current .wizard-step-number {
    background: rgba(37, 99, 235, 0.45);
    color: #ffffff;
}

.wizard-action-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard-action-bar-full-span {
    width: 100%;
}

.form-grid > .wizard-action-bar-full-span {
    grid-column: 1 / -1;
}

.wizard-action-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.wizard-action-group-start {
    justify-content: flex-start;
}

.wizard-action-group-end {
    justify-content: flex-end;
    margin-left: auto;
}

.wizard-action-primary,
.wizard-action-secondary {
    min-height: 44px;
    padding: 10px 16px;
}

.wizard-action-primary:focus-visible,
.wizard-action-secondary:focus-visible {
    outline: none;
    border-color: rgba(147, 197, 253, 0.8);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.wizard-action-form {
    margin: 0;
}

@media (max-width: 640px) {
    .wizard-action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .wizard-action-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .wizard-action-group-end {
        margin-left: 0;
    }

    .wizard-action-primary,
    .wizard-action-secondary {
        width: 100%;
        text-align: center;
    }
}

.wizard-form {
    margin-top: 12px;
}

.wizard-fieldset {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px;
    margin: 0 0 14px 0;
}

.wizard-fieldset legend {
    color: #e5e7eb;
    font-weight: 700;
    padding: 0 6px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-section-title {
    margin: 8px 0 0 0;
    color: #e5e7eb;
    font-size: 16px;
}

.field-hint {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

.form-error-summary {
    margin: 0 0 16px 0;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, 0.45);
    background: rgba(127, 29, 29, 0.35);
    color: #fecaca;
}

.form-error-summary ul {
    margin: 8px 0 0 0;
    padding-left: 18px;
}

.form-error-summary li {
    margin: 4px 0;
}

.field-error {
    color: #fca5a5;
    font-size: 12px;
    line-height: 1.4;
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
    border-color: rgba(248, 113, 113, 0.85);
}

.form-field.is-invalid input:focus,
.form-field.is-invalid select:focus,
.form-field.is-invalid textarea:focus {
    border-color: rgba(248, 113, 113, 0.95);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
}

.wizard-fieldset.is-invalid {
    border-color: rgba(248, 113, 113, 0.45);
}

.form-field textarea {
    min-height: 100px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #111827;
    color: #e5e7eb;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.form-field textarea:focus {
    outline: none;
    border-color: rgba(147, 197, 253, 0.8);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 10px;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e5e7eb;
    font-size: 14px;
}

.checkbox-field input {
    width: 16px;
    height: 16px;
}

.wizard-services-step {
    width: 100%;
}

.wizard-services-page-header {
    margin: 0 0 22px 0;
}

.wizard-services-page-header h2 {
    margin: 0 0 6px 0;
}

.wizard-services-intro {
    margin: 0;
    max-width: 40rem;
}

.wizard-services-form {
    width: 100%;
    max-width: none;
}

.wizard-services-form .wizard-action-bar {
    width: 100%;
}

.wizard-services-form .wizard-services-contingent-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wizard-contingent-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    width: 100%;
}

.wizard-contingent-type-fieldset {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.wizard-services-section-subheading {
    margin: 0 0 12px 0;
    color: #e5e7eb;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.wizard-contingent-hours-panel {
    grid-column: 2 / -1;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.38);
    box-sizing: border-box;
}

.wizard-contingent-hours-panel.is-disabled {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.32);
}

/* One layout column: panel spans 2 tracks + 1 gap → (100% - gap) / 2. */
.wizard-contingent-hours-content {
    width: 100%;
    max-width: calc((100% - 16px) / 2);
    margin-inline: auto;
}

.wizard-services-contingent-hours-field {
    margin: 0;
    width: 100%;
}

.wizard-services-contingent-hours-field > label {
    display: block;
    margin-bottom: 6px;
    color: #e5e7eb;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.wizard-services-contingent-hours-field.is-disabled > label,
.wizard-contingent-hours-panel.is-disabled .wizard-services-contingent-hours-field > label {
    color: #9ca3af;
}

.wizard-services-contingent-hours-field select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 1rem;
}

.wizard-services-contingent-hours-field select:disabled,
.wizard-contingent-hours-panel.is-disabled select {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    cursor: not-allowed;
}

.wizard-services-contingent-hours-hint {
    margin: 8px 0 0 0;
    color: #9ca3af;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.4;
}

.wizard-services-section.is-invalid {
    border-color: rgba(248, 113, 113, 0.45);
}

.wizard-services-section {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-inline-size: 0;
    margin: 0 0 22px 0;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.28);
    box-sizing: border-box;
}

.wizard-services-section-heading {
    margin: 0;
    padding: 0;
    color: #e5e7eb;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.wizard-services-section-heading + .wizard-services-section-hint {
    margin: 6px 0 18px 0;
}

.wizard-services-section-heading + .wizard-services-section-content {
    margin-top: 18px;
}

.wizard-services-section-hint {
    margin: 0 0 18px 0;
    color: #9ca3af;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    max-width: 40rem;
}

.wizard-services-section-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.wizard-services-section-footnote {
    display: block;
    margin-top: 12px;
}

.wizard-services-contingent-field > label,
.wizard-exclusive-field > label,
.wizard-exclusive-field > .wizard-exclusive-field-label {
    color: #9ca3af;
    font-size: 13px;
}

.wizard-services-contingent-field.is-disabled > label,
.wizard-exclusive-field.is-disabled > label,
.wizard-exclusive-field.is-disabled > .wizard-exclusive-field-label {
    color: #6b7280;
}

.wizard-services-contingent-field select:disabled,
.wizard-exclusive-field select:disabled,
.wizard-exclusive-field input:disabled {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    cursor: not-allowed;
}

.wizard-services-contingent-disabled-reason,
.wizard-exclusive-disabled-reason {
    margin: 0;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.4;
}

.wizard-on-call-phones.is-hidden {
    display: none;
}

.wizard-on-call-phones-hint {
    margin: 0 0 8px 0;
}

.wizard-on-call-hotline-notice {
    margin: 0 0 12px 0;
    padding: 12px 14px;
    border: 1px solid rgba(147, 197, 253, 0.28);
    border-radius: 10px;
    background: rgba(30, 64, 175, 0.12);
    color: #dbeafe;
    line-height: 1.4;
}

.wizard-choice-group {
    display: grid;
    gap: 16px;
    width: 100%;
    margin-top: 0;
    align-items: stretch;
}

.wizard-choice-group--services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wizard-choice-group--sla {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wizard-choice-group--contingent {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wizard-choice-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    column-gap: 16px;
    row-gap: 0;
    align-items: start;
    width: 100%;
    height: 100%;
    min-height: 140px;
    min-width: 0;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(30, 41, 59, 0.42);
    color: #e5e7eb;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.wizard-choice-card:hover {
    border-color: rgba(148, 163, 184, 0.45);
    background: rgba(30, 41, 59, 0.55);
}

.wizard-choice-card:has(.wizard-choice-input:checked) {
    border-color: rgba(96, 165, 250, 0.7);
    background: rgba(37, 99, 235, 0.12);
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.2);
}

.wizard-choice-card:has(.wizard-choice-input:focus-visible) {
    outline: 2px solid rgba(147, 197, 253, 0.95);
    outline-offset: 2px;
    border-color: rgba(96, 165, 250, 0.85);
}

.wizard-choice-input {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    width: 18px;
    height: 18px;
    margin: 2px 0 0 0;
    accent-color: #60a5fa;
}

.wizard-choice-card-body {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    height: 100%;
}

.wizard-choice-card-title {
    padding-right: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #e5e7eb;
}

.wizard-choice-card-text {
    padding-right: 8px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #9ca3af;
}

.wizard-choice-badge {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.4);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    pointer-events: none;
}

.wizard-choice-badge--info {
    border-color: rgba(96, 165, 250, 0.24);
    background: rgba(30, 64, 175, 0.16);
    color: rgba(191, 219, 254, 0.78);
}

.wizard-choice-badge--success {
    border-color: rgba(74, 222, 128, 0.22);
    background: rgba(6, 78, 59, 0.16);
    color: rgba(187, 247, 208, 0.72);
}

.wizard-choice-badge--warning {
    border-color: rgba(251, 191, 36, 0.22);
    background: rgba(120, 53, 15, 0.16);
    color: rgba(253, 230, 138, 0.72);
}

.wizard-choice-card:has(.wizard-choice-input:checked) .wizard-choice-badge--info {
    border-color: rgba(147, 197, 253, 0.58);
    background: rgba(30, 64, 175, 0.38);
    color: #dbeafe;
}

.wizard-choice-card:has(.wizard-choice-input:checked) .wizard-choice-badge--success {
    border-color: rgba(134, 239, 172, 0.52);
    background: rgba(6, 78, 59, 0.42);
    color: #dcfce7;
}

.wizard-choice-card:has(.wizard-choice-input:checked) .wizard-choice-badge--warning {
    border-color: rgba(252, 211, 77, 0.52);
    background: rgba(120, 53, 15, 0.38);
    color: #fef3c7;
}

.wizard-choice-card--required {
    border-style: solid;
}

.wizard-choice-card.is-disabled,
.wizard-choice-card--required.is-disabled {
    opacity: 1;
    cursor: default;
}

.wizard-choice-card.is-disabled .wizard-choice-card-title::after {
    content: "";
}

.wizard-choice-card.is-disabled .wizard-choice-input:disabled {
    cursor: default;
}

.wizard-step-unavailable .wizard-step-link-disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.wizard-step-text {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    gap: 5px;
    min-width: 0;
    flex: 1;
}

.wizard-step-status-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    max-width: 100%;
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.wizard-step-status-badge[hidden] {
    display: none;
}

.wizard-step-status-badge--warning {
    border-color: rgba(251, 191, 36, 0.28);
    background: rgba(120, 53, 15, 0.18);
    color: rgba(253, 230, 138, 0.88);
}

@media (max-width: 1100px) {
    .wizard-choice-group--sla {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wizard-choice-group--services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wizard-choice-group--contingent {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .wizard-contingent-hours-panel {
        grid-column: 1 / -1;
    }

    .wizard-contingent-hours-content {
        max-width: none;
    }

    .wizard-services-contingent-hours-field {
        max-width: none;
    }
}

@media (max-width: 960px) {
    .wizard-services-form .wizard-services-contingent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 16px;
    }

    .login-card {
        padding: 22px;
    }
}

@media (max-width: 720px) {
    .wizard-services-form .wizard-services-contingent-grid {
        grid-template-columns: 1fr;
    }

    .wizard-choice-group--contingent {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .wizard-choice-group--sla,
    .wizard-choice-group--services,
    .wizard-choice-group--contingent {
        grid-template-columns: 1fr;
    }
}

.price-placeholder,
.placeholder-notice {
    margin: 16px 0;
    padding: 14px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.price-notice {
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.price-summary-table {
    margin-top: 16px;
}

/* AP-051: Wizard pricing step — local hierarchy and responsive layout */
.wizard-pricing-step .wizard-pricing-panel,
.wizard-pricing-step .wizard-pricing-section {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.28);
}

.wizard-pricing-step .wizard-pricing-section:first-of-type {
    margin-top: 18px;
}

.wizard-pricing-step .wizard-pricing-section .form-section-title {
    margin-top: 0;
}

.wizard-pricing-step .wizard-pricing-section--result {
    padding: 18px 18px 16px;
    border-color: rgba(96, 165, 250, 0.35);
    border-left: 3px solid rgba(96, 165, 250, 0.85);
    background: rgba(30, 58, 138, 0.22);
}

.wizard-pricing-step .wizard-pricing-section--infrastructure,
.wizard-pricing-step .wizard-pricing-section--composition {
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(15, 23, 42, 0.22);
}

.wizard-pricing-step .wizard-pricing-section--conditions {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.34);
}

.wizard-pricing-step .wizard-pricing-total-result {
    margin-top: 10px;
}

.wizard-pricing-step .wizard-pricing-total-result .price-total {
    margin: 4px 0 10px 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #f8fafc;
}

.wizard-pricing-step .wizard-pricing-infrastructure-hint {
    margin: 8px 0 0 0;
    font-size: 0.92rem;
}

.wizard-pricing-step .wizard-pricing-composition-hint {
    margin: 8px 0 0 0;
    font-size: 0.92rem;
}

.wizard-pricing-step .wizard-pricing-table-scroll {
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wizard-pricing-step .wizard-pricing-table {
    margin-top: 0;
    width: 100%;
    min-width: 360px;
    border-collapse: collapse;
}

.wizard-pricing-step .wizard-pricing-table th,
.wizard-pricing-step .wizard-pricing-table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard-pricing-step .wizard-pricing-table th {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.wizard-pricing-step .wizard-pricing-current-condition {
    margin: 14px 0 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.35);
}

.wizard-pricing-step .wizard-pricing-current-condition p {
    margin: 4px 0;
}

.wizard-pricing-step .wizard-pricing-current-condition-title {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #e5e7eb;
}

.wizard-pricing-step .wizard-pricing-error-summary {
    margin-top: 14px;
}

.wizard-pricing-step .wizard-pricing-conditions .form-grid {
    margin-top: 12px;
}

.wizard-pricing-step .wizard-pricing-conditions .form-grid .wizard-exclusive-field input {
    min-height: 44px;
    height: 44px;
}

.wizard-pricing-step .wizard-pricing-conditions .form-grid .wizard-exclusive-field input:focus,
.wizard-pricing-step .wizard-pricing-conditions .form-grid .wizard-exclusive-field input:focus-visible {
    outline: none;
    border-color: rgba(147, 197, 253, 0.8);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

@media (max-width: 900px) {
    .wizard-pricing-step .wizard-pricing-panel,
    .wizard-pricing-step .wizard-pricing-section {
        padding: 12px 14px;
    }

    .wizard-pricing-step .wizard-pricing-section--result {
        padding: 14px 14px 12px;
    }
}

@media (max-width: 480px) {
    .wizard-pricing-step .wizard-pricing-panel,
    .wizard-pricing-step .wizard-pricing-section {
        margin-top: 12px;
        padding: 12px;
    }

    .wizard-pricing-step .wizard-pricing-section--result {
        padding: 14px 12px 12px;
    }

    .wizard-pricing-step .wizard-pricing-total-result .price-total {
        font-size: 1.75rem;
    }
}

.wizard-form-actions {
    margin-top: 18px;
}

.wizard-summary {
    margin: 16px 0;
}

.wizard-summary h3 {
    margin: 16px 0 8px 0;
    font-size: 1rem;
}

.wizard-summary-list {
    margin: 0 0 8px 0;
    padding-left: 20px;
}

/* AP-052: Wizard review step — local sales-oriented summary layout */
.wizard-review-step .wizard-review-summary {
    margin: 18px 0 8px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wizard-review-step .wizard-review-section {
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.28);
}

.wizard-review-step .wizard-review-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 12px;
}

.wizard-review-step .wizard-review-section-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
    color: #f8fafc;
}

.wizard-review-step .wizard-review-edit-link {
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.35;
    color: #94a3b8;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.wizard-review-step .wizard-review-edit-link:hover {
    color: #cbd5e1;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wizard-review-step .wizard-review-edit-link:focus-visible {
    color: #e2e8f0;
    text-decoration: underline;
    text-underline-offset: 2px;
    outline: 2px solid rgba(148, 163, 184, 0.95);
    outline-offset: 3px;
    border-radius: 4px;
}

.wizard-review-step .wizard-review-customer-grid,
.wizard-review-step .wizard-review-on-call-windows,
.wizard-review-step .wizard-review-pricing-secondary {
    display: grid;
    gap: 10px 14px;
    margin: 0;
}

.wizard-review-step .wizard-review-customer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wizard-review-step .wizard-review-customer-item,
.wizard-review-step .wizard-review-on-call-window,
.wizard-review-step .wizard-review-pricing-secondary > div {
    min-width: 0;
}

.wizard-review-step .wizard-review-customer-item dt,
.wizard-review-step .wizard-review-on-call-window dt,
.wizard-review-step .wizard-review-pricing-secondary dt {
    margin: 0;
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 500;
    line-height: 1.3;
}

.wizard-review-step .wizard-review-customer-item dd,
.wizard-review-step .wizard-review-on-call-window dd,
.wizard-review-step .wizard-review-pricing-secondary dd {
    margin: 2px 0 0 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.35;
}

.wizard-review-step .wizard-review-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wizard-review-step .wizard-review-services {
    margin-top: 0;
    width: 100%;
    min-width: 360px;
    border-collapse: collapse;
}

.wizard-review-step .wizard-review-services th,
.wizard-review-step .wizard-review-services td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard-review-step .wizard-review-services th:last-child,
.wizard-review-step .wizard-review-services td:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.wizard-review-step .wizard-review-services th {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.9rem;
}

.wizard-review-step .wizard-review-sla {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.wizard-review-step .wizard-review-on-call-windows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wizard-review-step .wizard-review-subsection-title {
    margin: 14px 0 6px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e5e7eb;
}

.wizard-review-step .wizard-review-phone-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wizard-review-step .wizard-review-phone-chip {
    display: inline-block;
    max-width: 100%;
    margin: 0;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.45);
    color: #e5e7eb;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.35;
    pointer-events: none;
}

.wizard-review-step .wizard-review-on-call-status {
    margin: 0;
}

.wizard-review-step .wizard-review-effective-price {
    margin: 0 0 10px 0;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(74, 222, 128, 0.22);
    background: rgba(6, 78, 59, 0.18);
}

.wizard-review-step .wizard-review-effective-price-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #bbf7d0;
}

.wizard-review-step .wizard-review-effective-price-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #86efac;
    font-variant-numeric: tabular-nums;
}

.wizard-review-step .wizard-review-price-details,
.wizard-review-step .wizard-review-pricing-secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 10px;
}

.wizard-review-step .wizard-review-pricing-status {
    margin: 0;
}

.wizard-review-step .wizard-review-internal-reason {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.45;
}

.wizard-review-step .wizard-review-internal-hint {
    margin: 8px 0 0 0;
    font-size: 0.9rem;
}

.wizard-review-step .wizard-review-save-notice {
    margin: 18px 0 8px 0;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.34);
    color: #e5e7eb;
    line-height: 1.45;
}

.wizard-review-step .wizard-review-break-word {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.wizard-review-step .wizard-review-break-email {
    overflow-wrap: anywhere;
    word-break: break-all;
}

.wizard-review-step .wizard-review-break-phone {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 1024px) {
    .wizard-review-step .wizard-review-pricing-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .wizard-review-step .wizard-review-section {
        padding: 12px 14px;
    }

    .wizard-review-step .wizard-review-customer-grid,
    .wizard-review-step .wizard-review-on-call-windows,
    .wizard-review-step .wizard-review-pricing-secondary {
        grid-template-columns: 1fr;
    }

    .wizard-review-step .wizard-review-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .wizard-review-step .wizard-review-effective-price-value {
        font-size: 1.7rem;
    }

    .wizard-review-step .wizard-review-edit-link {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .wizard-review-step .wizard-review-section {
        padding: 12px;
    }
}

.wizard-mode-fieldset {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin: 0;
}

.wizard-mode-fieldset legend {
    padding: 0 8px;
    font-weight: 600;
}

.wizard-mode-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.wizard-mode-card-form {
    margin: 0;
}

.wizard-mode-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    min-height: 140px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: rgba(30, 41, 59, 0.65);
    color: #e5e7eb;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.wizard-mode-card:hover,
.wizard-mode-card:focus-visible {
    border-color: rgba(96, 165, 250, 0.85);
    background: rgba(37, 99, 235, 0.18);
    outline: none;
}

.wizard-mode-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #dbeafe;
}

.wizard-mode-card-text {
    font-size: 0.92rem;
    line-height: 1.45;
    color: #9ca3af;
}

@media (max-width: 900px) {
    .wizard-mode-cards {
        grid-template-columns: 1fr;
    }
}

.wizard-mode-panel {
    margin-top: 16px;
}

.wizard-mode-panel-intro {
    margin: 6px 0 0 0;
}

.wizard-step-locked .wizard-step-link-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.wizard-step-link-disabled {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #6b7280;
    border: 1px solid transparent;
    font-size: 13px;
}

.wizard-customer-card {
    margin-top: 16px;
}

/* AP-048: compact contract-data summary for existing customers */
.wizard-contract-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    margin: 12px 0 16px 0;
}

.wizard-contract-summary__item {
    min-width: 0;
}

.wizard-contract-summary__item dt {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.75);
    margin-bottom: 2px;
}

.wizard-contract-summary__item dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.wizard-contract-summary__item.is-missing dd {
    font-weight: 500;
}

.wizard-customer-disclosure {
    margin-top: 12px;
}

.wizard-customer-disclosure__summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 4px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    color: #93c5fd;
    font-weight: 600;
    line-height: 1.35;
}

.wizard-customer-disclosure__summary::-webkit-details-marker {
    display: none;
}

.wizard-customer-disclosure__summary::marker {
    content: "";
    display: none;
}

.wizard-customer-disclosure__summary::before {
    content: "›";
    display: inline-block;
    margin-right: 8px;
    color: #94a3b8;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.15s ease;
}

.wizard-customer-disclosure[open] > .wizard-customer-disclosure__summary::before {
    transform: rotate(90deg);
}

.wizard-customer-disclosure__summary:hover {
    color: #bfdbfe;
}

.wizard-customer-disclosure__summary:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
    border-radius: 6px;
}

.wizard-customer-disclosure__body {
    padding-top: 8px;
}

.wizard-customer-completion-hint {
    margin: 0 0 14px 0;
    padding: 10px 12px;
    border-left: 3px solid rgba(148, 163, 184, 0.7);
    background: rgba(148, 163, 184, 0.08);
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.45;
}

@media (max-width: 560px) {
    .wizard-contract-summary {
        grid-template-columns: 1fr;
    }
}

/* AP-047 / UX-Nachbesserung: Kundenschritt – zwei Sub-Panels */
.wizard-customer-editor {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-top: 8px;
}

.wizard-customer-form {
    margin-top: 12px;
    min-width: 0;
}

.wizard-customer-required-note {
    margin: 0 0 14px 0;
    color: #9ca3af;
    font-size: 0.9rem;
}

.wizard-customer-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    min-width: 0;
}

.wizard-customer-section {
    margin: 0;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.55);
    min-inline-size: 0;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wizard-customer-section-heading {
    margin: 0 0 14px 0;
    color: #e5e7eb;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.wizard-customer-section .form-field {
    width: 100%;
    min-width: 0;
}

.wizard-customer-section .form-field input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.wizard-customer-section .field-error {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.wizard-customer-address-row {
    display: grid;
    grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.3fr);
    gap: 12px;
    min-width: 0;
}

.wizard-customer-address-row .form-field {
    min-width: 0;
}

.wizard-customer-editor > .wizard-action-bar {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 900px) {
    .wizard-customer-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .wizard-customer-address-row {
        grid-template-columns: 1fr;
    }
}

.wizard-customer-details {
    display: grid;
    gap: 10px;
    margin: 12px 0 16px 0;
}

.wizard-customer-details dt {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.75);
    margin-bottom: 2px;
}

.wizard-customer-details dd {
    margin: 0;
    font-weight: 600;
}

.wizard-new-draft-notice {
    margin-top: 16px;
    line-height: 1.5;
}

.wizard-inline-form {
    display: inline;
}

.wizard-form-actions .wizard-inline-form + .wizard-inline-form {
    margin-left: 10px;
}

.technician-status-box {
    border-left: 4px solid rgba(59, 130, 246, 0.65);
}

.technician-section {
    margin-bottom: 22px;
}

/* AP-058: Contract detail — local layout aligned with AP-057 completion language */
.contract-detail {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 100%;
}

.contract-detail-section {
    margin-bottom: 22px;
}

.contract-detail-header {
    border-left: 4px solid rgba(59, 130, 246, 0.65);
}

.contract-detail-header h1 {
    margin: 0 0 12px 0;
}

.contract-detail-header-meta {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 16px;
}

.contract-detail-header-item {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.28);
}

.contract-detail-header-item dt {
    margin: 0 0 4px 0;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
}

.contract-detail-header-item dd {
    margin: 0;
    font-weight: 600;
}

.contract-detail-actions .contract-detail-action-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 12px;
}

.contract-detail-primary-actions,
.contract-detail-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contract-detail-primary-actions {
    flex: 1 1 auto;
}

.contract-detail-secondary-actions {
    margin-left: auto;
}

.contract-detail-action-primary,
.contract-detail-action-secondary {
    min-height: 44px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
}

.contract-detail-action-primary:focus-visible,
.contract-detail-action-secondary:focus-visible {
    outline: none;
    border-color: rgba(147, 197, 253, 0.8);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.contract-detail-notice {
    margin: 0;
    line-height: 1.5;
}

.contract-detail-pricing-secondary {
    margin: 12px 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 14px;
}

.contract-detail-pricing-secondary > div {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.28);
}

.contract-detail-pricing-secondary dt {
    margin: 0 0 4px 0;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
}

.contract-detail-pricing-secondary dd {
    margin: 0;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.contract-detail-price-primary {
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: rgba(37, 99, 235, 0.1);
}

.contract-detail-price-primary-label {
    margin: 0 0 6px 0;
    color: #93c5fd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.contract-detail-price-primary-value {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #f8fafc;
}

.contract-detail-price-meta {
    margin: 12px 0 0 0;
    font-size: 0.9rem;
}

.contract-detail-subsection-title {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 650;
    color: #e2e8f0;
}

.contract-detail-customer-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contract-detail-customer-panel {
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.28);
    min-width: 0;
}

.contract-detail-customer-grid {
    margin: 0;
    display: grid;
    gap: 10px;
}

.contract-detail-customer-grid > div {
    margin: 0;
}

.contract-detail-customer-grid dt {
    margin: 0 0 4px 0;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
}

.contract-detail-customer-grid dd {
    margin: 0;
    font-weight: 600;
}

.contract-detail-service-group + .contract-detail-service-group {
    margin-top: 14px;
}

.contract-detail-service-list {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1.55;
}

.contract-detail-service-list > li {
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contract-detail-service-list > li::marker {
    content: "";
}

.contract-detail-service-list > li + li {
    margin-top: 8px;
}

.contract-detail-sla-block,
.contract-detail-contingent-block,
.contract-detail-on-call-block {
    margin: 0 0 14px 0;
}

.contract-detail-on-call-block {
    margin-bottom: 0;
}

.contract-detail-phone-list {
    list-style: none;
    margin: 12px 0 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contract-detail-phone-chip {
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.4);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.contract-detail-break-word {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contract-detail-break-email {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contract-detail-break-phone {
    overflow-wrap: anywhere;
    word-break: break-word;
    font-variant-numeric: tabular-nums;
}

.contract-detail-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
}

@media (max-width: 920px) {
    .contract-detail-actions .contract-detail-action-groups {
        flex-direction: column;
        align-items: stretch;
    }

    .contract-detail-primary-actions,
    .contract-detail-secondary-actions {
        width: 100%;
        margin-left: 0;
    }

    .contract-detail-primary-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contract-detail-secondary-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .contract-detail-action-primary {
        width: 100%;
    }

    .contract-detail-secondary-actions .contract-detail-action-secondary {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
    }

    .contract-detail-customer-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .contract-detail-secondary-actions {
        flex-direction: column;
    }

    .contract-detail-secondary-actions .contract-detail-action-secondary {
        width: 100%;
        flex: 1 1 auto;
    }

    .contract-detail-price-primary-value {
        font-size: 1.35rem;
    }
}

.technician-relevance-heading {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: #dbeafe;
}

.technician-relevance-note {
    margin: 0 0 10px 0;
    color: #fde68a;
    line-height: 1.5;
}

.technician-highlight-grid .technician-stat-value {
    font-size: 22px;
}

.technician-caller-card {
    border-left: 4px solid rgba(34, 197, 94, 0.45);
}

.technician-caller-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.9;
    font-size: 16px;
}

.technician-service-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.service-booked,
.technician-service-badge.service-booked {
    background: rgba(34, 197, 94, 0.15);
    color: #bbf7d0;
}

.service-hint,
.technician-service-badge.service-hint {
    background: rgba(245, 158, 11, 0.18);
    color: #fde68a;
}

.technician-hints-card {
    border-left: 4px solid rgba(245, 158, 11, 0.45);
}

.technician-hints-list {
    margin: 0;
    padding-left: 20px;
    color: #fde68a;
    line-height: 1.7;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

/* Shared horizontal scroll container (contracts index, audit). */
.table-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll > table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
}

@media (max-width: 960px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-right {
        width: 100%;
    }

    .topbar-button {
        flex: 1 1 auto;
        min-width: calc(50% - 6px);
    }

    .topbar-logout-form {
        flex: 1 1 auto;
        min-width: calc(50% - 6px);
    }

    .topbar-logout-form .topbar-button {
        width: 100%;
    }

    .stats-grid,
    .layout-grid,
    .form-grid,
    .wizard-steps-list,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .technician-search-toolbar {
        grid-template-columns: 1fr;
    }
}

/* AP-057: Wizard completion page — local success/summary/action hierarchy */
.wizard-completion .completion-success {
    margin: 0 0 18px 0;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.08);
}

.wizard-completion .completion-success h2 {
    margin: 0 0 8px 0;
}

.wizard-completion .completion-success-lead {
    margin: 0;
    color: #d1d5db;
}

.wizard-completion .completion-summary {
    margin: 0 0 16px 0;
}

.wizard-completion .completion-summary-title {
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.wizard-completion .completion-summary-list {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 16px;
}

.wizard-completion .completion-summary-item {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.28);
}

.wizard-completion .completion-summary-item dt {
    margin: 0 0 4px 0;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
}

.wizard-completion .completion-summary-item dd {
    margin: 0;
    font-weight: 600;
}

.wizard-completion .completion-next-hint {
    margin: 0 0 4px 0;
    color: #d1d5db;
}

.wizard-completion .completion-actions {
    align-items: stretch;
}

.wizard-completion .completion-primary-actions,
.wizard-completion .completion-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wizard-completion .completion-primary-actions {
    flex: 1 1 auto;
}

.wizard-completion .completion-secondary-actions {
    margin-left: auto;
}

.wizard-completion .completion-action-detail {
    font-weight: 700;
}

/* AP-057 Nachbesserung: Tablet — stack PDF/Detail; pair overview/new below */
@media (max-width: 920px) {
    .wizard-completion .completion-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wizard-completion .completion-primary-actions,
    .wizard-completion .completion-secondary-actions {
        width: 100%;
        margin-left: 0;
    }

    .wizard-completion .completion-primary-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wizard-completion .completion-secondary-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .wizard-completion .completion-actions .wizard-action-primary,
    .wizard-completion .completion-actions .completion-action-detail {
        width: 100%;
        text-align: center;
    }

    .wizard-completion .completion-secondary-actions .wizard-action-secondary {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .wizard-completion .completion-secondary-actions {
        flex-direction: column;
    }

    .wizard-completion .completion-secondary-actions .wizard-action-secondary {
        width: 100%;
        flex: 1 1 auto;
        text-align: center;
    }
}

/* AP-062: Customer scope / IT environment (wizard input) */
.customer-scope-step .customer-scope-groups {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 16px;
}

.customer-scope-step .customer-scope-group {
    margin: 0;
    padding: 14px 16px 16px;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.28);
}

.customer-scope-step .customer-scope-group-title {
    padding: 0 6px;
    color: #e5e7eb;
    font-size: 0.95rem;
    font-weight: 650;
}

.customer-scope-step .customer-scope-fields {
    display: grid;
    gap: 14px 16px;
    margin-top: 10px;
}

.customer-scope-step .customer-scope-group--two-columns .customer-scope-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-scope-step .customer-scope-group--three-columns .customer-scope-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customer-scope-step .customer-scope-field {
    min-width: 0;
    gap: 0;
}

.customer-scope-step .customer-scope-field-label {
    display: block;
    margin: 0 0 6px;
    color: #e5e7eb;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.customer-scope-step .customer-scope-quantity-input {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    height: 44px;
    box-sizing: border-box;
}

.customer-scope-step .customer-scope-field-help {
    margin: 6px 0 0;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.35;
}

/* AP-064: shared read-only Kundenumfang cards (Pricing / Review / Detail) */
.infrastructure-readonly-groups {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}

.infrastructure-readonly-group-title {
    margin: 0 0 8px 0;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 650;
}

.infrastructure-readonly-grid {
    margin: 0;
    display: grid;
    gap: 10px 14px;
}

.infrastructure-readonly-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.infrastructure-readonly-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.infrastructure-readonly-item {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.28);
    min-width: 0;
}

.infrastructure-readonly-item dt {
    margin: 0 0 4px 0;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

.infrastructure-readonly-item dd {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #f8fafc;
    line-height: 1.25;
}

@media (max-width: 900px) {
    .customer-scope-step .customer-scope-group--two-columns .customer-scope-fields,
    .customer-scope-step .customer-scope-group--three-columns .customer-scope-fields,
    .infrastructure-readonly-grid--two,
    .infrastructure-readonly-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .customer-scope-step .customer-scope-group {
        padding: 12px;
    }

    .customer-scope-step .customer-scope-group--two-columns .customer-scope-fields,
    .customer-scope-step .customer-scope-group--three-columns .customer-scope-fields,
    .infrastructure-readonly-grid--two,
    .infrastructure-readonly-grid--three {
        grid-template-columns: minmax(0, 1fr);
    }
}
