:root{--brand-primary: #e31937;--brand-dark: #0f1419;--bg: #f4f5f7;--surface: #ffffff;--text: #1a1d21;--muted: #6b7280;--border: #e5e7eb;--radius: 14px;--shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);--nav-height: 64px}*{box-sizing:border-box}html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}#root{min-height:100vh}a{color:var(--brand-primary);text-decoration:none}h1,h2,h3,h4{margin:0;line-height:1.25}p{margin:0}.muted{color:var(--muted);font-size:.9rem}.error{color:#dc2626;font-size:.9rem}.notice{background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af;border-radius:10px;padding:10px 14px;font-size:.9rem;margin-bottom:14px}.notice.error{background:#fef2f2;border-color:#fecaca;color:#b91c1c}button,.primary,.secondary,.ghost{border:none;border-radius:10px;padding:12px 18px;font-size:.95rem;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;transition:filter .15s ease,transform .05s ease;text-decoration:none}.primary{background:var(--brand-primary);color:#fff}.primary:hover{filter:brightness(1.05)}.primary:active{transform:scale(.98)}.primary:disabled,.secondary:disabled,.ghost:disabled{opacity:.5;cursor:not-allowed}.secondary{background:#fff;color:var(--text);border:1px solid var(--border)}.ghost{background:transparent;color:var(--brand-primary);padding:6px 10px;font-weight:600}.primary.small,.secondary.small{padding:8px 14px;font-size:.85rem}input,select,textarea{width:100%;padding:12px 14px;border:1px solid var(--border);border-radius:10px;font-size:1rem;font-family:inherit;background:#fff;color:var(--text)}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--brand-primary);box-shadow:0 0 0 3px #e319371f}label{display:flex;flex-direction:column;gap:6px;font-size:.9rem;font-weight:500;color:var(--text);margin-bottom:14px}textarea{resize:vertical}.char-count{font-size:.8rem;color:var(--muted);text-align:right;margin-top:4px}.error-text{color:#dc2626;font-size:.85rem}.auth-shell{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.auth-panel{display:flex;flex-direction:column;justify-content:center;padding:48px;max-width:520px;width:100%;margin:0 auto}.auth-brand{display:flex;justify-content:center;margin-bottom:28px}.auth-brand img{height:48px}.brand-logo{height:44px;width:auto;object-fit:contain}.brand-name{font-size:1.4rem;font-weight:800;color:var(--brand-dark)}.shop-picker{display:flex;flex-direction:column;gap:6px;font-size:.9rem;font-weight:500;color:var(--text);margin-bottom:14px}.field-error{color:#dc2626;font-size:.8rem}.auth-title{font-size:1.8rem;text-align:center;margin-bottom:6px}.auth-subtitle{color:var(--muted);text-align:center;margin-bottom:28px}.auth-hero{background:linear-gradient(160deg,#0f1419,#1f2937);color:#fff;display:flex;align-items:flex-end;padding:56px}.hero-copy h2{font-size:2.2rem;max-width:420px;margin-bottom:12px}.hero-copy p{opacity:.8;max-width:400px}.status-stack{position:fixed;top:0;left:0;right:0;z-index:200;display:flex;flex-direction:column;gap:6px;padding:8px}.status-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px;border-radius:10px;font-size:.9rem;margin-bottom:18px;background:#fef3c7;border:1px solid #fde68a;color:#92400e}.status-banner.info{background:#eff6ff;border-color:#bfdbfe;color:#1e40af}.status-banner.warning{background:#fef3c7;border-color:#fde68a;color:#92400e}.status-banner.update{background:#ecfdf5;border-color:#a7f3d0;color:#047857}.status-banner.install{background:#f5f3ff;border-color:#ddd6fe;color:#5b21b6}.customer-app{display:flex;flex-direction:column;min-height:100vh}.customer-main{flex:1;padding:20px 20px calc(var(--nav-height) + 24px);max-width:860px;width:100%;margin:0 auto}.customer-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.customer-header h1{font-size:1.6rem;margin-bottom:4px}.customer-actions{display:flex;gap:10px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);margin-bottom:20px}.card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.card-header h1,.card-header h2{font-size:1.15rem}.customer-grid{display:grid;gap:20px}.customer-grid.two-column{grid-template-columns:1fr 1fr}@media (max-width: 760px){.auth-shell{grid-template-columns:1fr}.auth-hero{display:none}.customer-grid.two-column{grid-template-columns:1fr}.customer-header{flex-direction:column;align-items:flex-start}}.appointments-list{display:flex;flex-direction:column;gap:10px}.appointment-item{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--border);border-radius:10px;padding:12px 14px}.appointment-content strong{display:block;margin-bottom:2px}.appointment-actions{display:flex;gap:8px}.hero-card{background:linear-gradient(160deg,var(--brand-primary),#8f1026);color:#fff;border:none;display:flex;flex-direction:column;justify-content:space-between}.hero-eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:.75rem;font-weight:700;opacity:.85;margin-bottom:8px}.hero-card h2{font-size:1.5rem;margin-bottom:8px}.hero-description{opacity:.92;margin-bottom:20px}.quote-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid rgba(255,255,255,.25);padding-top:16px}.quote-amount{font-size:1.6rem;font-weight:700;margin-top:2px}.hero-card .primary{background:#fff;color:var(--brand-primary)}.hero-card .primary:hover{filter:none;color:#8f1026}.progress-tracker{display:flex;justify-content:space-between;margin-top:14px}.progress-step-item{display:flex;flex-direction:column;align-items:center;gap:8px;flex:1;position:relative;text-align:center}.progress-step-item:not(:last-child):after{content:"";position:absolute;top:8px;left:50%;width:100%;height:2px;background:var(--border);z-index:0}.progress-step-item.completed:not(:last-child):after{background:var(--brand-primary)}.progress-dot{width:16px;height:16px;border-radius:50%;border:3px solid var(--border);background:var(--surface);z-index:1}.progress-step-item.completed .progress-dot{background:var(--brand-primary);border-color:var(--brand-primary)}.progress-step-item.active .progress-dot{border-color:var(--brand-primary);box-shadow:0 0 0 5px #e3193726}.progress-label{font-size:.8rem;color:var(--muted);font-weight:500}.progress-step-item.active .progress-label{color:var(--brand-primary);font-weight:600}.progress-step-item.completed .progress-label{color:var(--text)}@media (max-width: 480px){.progress-label{font-size:.7rem}}.message-list{display:flex;flex-direction:column;gap:10px}.chat-preview{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.preview-content{flex:1}.preview-content p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.preview-time{font-size:.75rem;color:var(--muted);white-space:nowrap}.history-summary{display:flex;flex-direction:column;gap:10px}.history-item-summary{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--border);border-radius:10px;padding:10px 12px;font-size:.9rem}.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:var(--nav-height);background:var(--surface);border-top:1px solid var(--border);display:flex;justify-content:space-around;align-items:center;padding:6px 8px;z-index:100}.nav-item{display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--muted);font-size:.7rem;font-weight:500;flex:1;text-align:center}.nav-item.active{color:var(--brand-primary)}.nav-icon-wrap{position:relative;display:flex}.nav-badge{position:absolute;top:-6px;right:-10px;background:var(--brand-primary);color:#fff;font-size:.65rem;font-weight:700;border-radius:999px;min-width:18px;height:18px;padding:0 4px;display:flex;align-items:center;justify-content:center}.empty-state{text-align:center;padding:40px 20px;color:var(--muted)}.empty-state h3{color:var(--text);margin-bottom:8px}.empty-state p{margin-bottom:16px}.booking-container{max-width:860px;margin:0 auto}.booking-header{margin-bottom:20px}.back-link{display:inline-flex;align-items:center;gap:4px;color:var(--muted);font-size:.9rem;margin-bottom:16px;font-weight:500}.booking-progress{display:flex;gap:12px;margin-bottom:8px}.progress-step{display:flex;align-items:center;gap:8px;flex:1;opacity:.55}.progress-step.active,.progress-step.completed{opacity:1}.step-number{width:28px;height:28px;border-radius:50%;border:2px solid var(--border);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.85rem;flex-shrink:0}.progress-step.active .step-number{border-color:var(--brand-primary);color:var(--brand-primary)}.progress-step.completed .step-number{background:var(--brand-primary);border-color:var(--brand-primary);color:#fff}.step-title{font-weight:600;font-size:.9rem}.step-desc{font-size:.75rem;color:var(--muted)}@media (max-width: 560px){.step-desc{display:none}}.booking-main{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}.step-header{margin-bottom:20px}.step-header h2{font-size:1.3rem;margin-bottom:6px}.step-header p{color:var(--muted)}.vehicle-selector{display:flex;flex-direction:column;gap:10px}.vehicle-card{display:flex;align-items:center;gap:14px;border:1px solid var(--border);border-radius:12px;padding:14px;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}.vehicle-card.selected{border-color:var(--brand-primary);box-shadow:0 0 0 3px #e319371f}.vehicle-icon{width:44px;height:44px;border-radius:10px;background:#f1f2f4;display:flex;align-items:center;justify-content:center;color:var(--muted);flex-shrink:0}.vehicle-details{flex:1}.vehicle-details h3{font-size:1rem;margin-bottom:2px}.vehicle-mileage,.vehicle-last-service{font-size:.8rem;color:var(--muted)}.vehicle-radio .radio-dot{width:18px;height:18px;border-radius:50%;border:2px solid var(--border)}.vehicle-radio .radio-dot.selected{border-color:var(--brand-primary);background:var(--brand-primary);box-shadow:inset 0 0 0 3px #fff}.issues-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media (max-width: 560px){.issues-grid{grid-template-columns:1fr}}.issue-card{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--border);border-radius:12px;padding:14px;cursor:pointer;transition:border-color .15s ease,background .15s ease}.issue-card.selected{border-color:var(--brand-primary);background:#e319370a}.issue-icon{width:38px;height:38px;border-radius:8px;background:#f1f2f4;display:flex;align-items:center;justify-content:center;color:var(--muted);flex-shrink:0}.issue-content{flex:1}.issue-content h4{font-size:.95rem;margin-bottom:2px}.issue-content p{font-size:.8rem;color:var(--muted)}.issue-checkbox{width:22px;height:22px;border-radius:6px;border:2px solid var(--border);display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#fff;font-size:.8rem}.issue-card.selected .issue-checkbox{background:var(--brand-primary);border-color:var(--brand-primary)}.checkmark{font-weight:700}.selected-issues{margin-top:16px;font-size:.9rem}.datetime-selector{display:flex;flex-direction:column;gap:16px}.date-section h3,.time-section h3{font-size:1rem;margin-bottom:10px}.time-slots{display:flex;flex-wrap:wrap;gap:10px}.time-slot{padding:10px 16px;border:1px solid var(--border);border-radius:10px;font-size:.9rem;font-weight:600;cursor:pointer;position:relative}.time-slot.selected{border-color:var(--brand-primary);background:var(--brand-primary);color:#fff}.slot-hint{position:absolute;top:-8px;right:-8px;background:var(--brand-dark);color:#fff;font-size:.6rem;padding:2px 6px;border-radius:999px}.urgency-section,.notes-section{margin-bottom:20px}.urgency-section h3,.notes-section h3,.booking-summary h3{font-size:1rem;margin-bottom:12px}.urgency-options{display:flex;flex-direction:column;gap:8px}.urgency-option{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:10px;padding:12px 14px;cursor:pointer;font-weight:500}.urgency-option.selected{box-shadow:0 0 0 3px #e319371f}.urgency-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0}.booking-summary{background:#f9fafb;border:1px solid var(--border);border-radius:12px;padding:16px}.summary-item{display:flex;justify-content:space-between;padding:6px 0;font-size:.9rem}.summary-item span:first-child{color:var(--muted)}.booking-navigation{display:flex;justify-content:space-between;gap:12px;margin-top:24px}.track-container{max-width:860px;margin:0 auto}.service-status{border-top:1px solid var(--border);padding:16px 0}.service-status:first-of-type{border-top:none;padding-top:0}.status-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.status-header h2{font-size:1.1rem}.status-time{color:var(--muted);font-size:.85rem}.timeline{display:flex;flex-direction:column;gap:0;position:relative}.timeline-step{position:relative;padding-left:28px;padding-bottom:22px}.timeline-step:before{content:"";position:absolute;left:9px;top:4px;width:2px;height:100%;background:var(--border)}.timeline-step:last-child:before{height:12px}.timeline-step:after{content:"";position:absolute;left:4px;top:2px;width:12px;height:12px;border-radius:50%;border:2px solid var(--border);background:var(--surface)}.timeline-step.completed:after{background:var(--brand-primary);border-color:var(--brand-primary)}.timeline-step.active:after{border-color:var(--brand-primary);box-shadow:0 0 0 4px #e3193726}.step-content h4{font-size:.95rem;margin-bottom:2px}.step-content p{font-size:.82rem;color:var(--muted)}.step-time{font-size:.75rem;color:var(--muted);font-weight:500}.timeline-step.completed .step-time{color:var(--brand-primary)}.track-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}.quotes-container{max-width:860px;margin:0 auto}.quotes-list{display:flex;flex-direction:column;gap:14px}.quote-card{border:1px solid var(--border);border-radius:12px;padding:16px}.quote-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.quote-info h3{font-size:1rem;margin-bottom:2px}.quote-date{font-size:.82rem;color:var(--muted)}.quote-amount{text-align:right}.quote-amount .amount{display:block;font-size:1.3rem;font-weight:700}.status{display:inline-block;padding:3px 10px;border-radius:999px;font-size:.72rem;font-weight:600;text-transform:capitalize;background:#f1f2f4;color:var(--muted)}.status.approved,.status.completed,.status.paid{background:#ecfdf5;color:#047857}.status.rejected{background:#fef2f2;color:#b91c1c}.status.awaiting-approval,.status.pending,.status.draft,.status.in-progress,.status.unpaid{background:#fef3c7;color:#92400e}.quote-items{margin:14px 0}.items-label{font-size:.8rem;color:var(--muted);margin-bottom:4px}.quote-items ul{margin:0;padding-left:18px;font-size:.9rem;color:var(--text)}.quote-actions{display:flex;gap:10px;margin-top:4px}@media (max-width: 480px){.quote-header{flex-direction:column}.quote-amount{text-align:left}}.payments-container{max-width:860px;margin:0 auto}.payments-list{display:flex;flex-direction:column;gap:14px}.payment-card{border:1px solid var(--border);border-radius:12px;padding:16px}.payment-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.payment-info h3{font-size:1rem;margin-bottom:2px}.payment-date{font-size:.82rem;color:var(--muted)}.payment-amount{text-align:right}.payment-amount .amount{display:block;font-size:1.3rem;font-weight:700}.payment-details{margin-top:12px;display:flex;flex-direction:column;gap:4px}.detail-row{display:flex;justify-content:space-between;font-size:.9rem}.detail-row .label{color:var(--muted)}.payment-actions{margin-top:12px}@media (max-width: 480px){.payment-header{flex-direction:column}.payment-amount{text-align:left}}.history-container{max-width:860px;margin:0 auto}.history-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.stat-item{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px;text-align:center}.stat-label{display:block;font-size:.8rem;color:var(--muted);margin-bottom:6px}.stat-value{font-size:1.3rem;font-weight:700}.history-list{display:flex;flex-direction:column;gap:14px}.history-item-detailed{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px}.history-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.service-info h3{font-size:1rem;margin-bottom:2px}.service-date{font-size:.82rem;color:var(--muted)}.service-amount{text-align:right}.service-amount .amount{display:block;font-size:1.1rem;font-weight:700}.history-details{margin:12px 0;display:flex;flex-direction:column;gap:4px}.history-actions{display:flex;gap:10px}.vehicles-container{max-width:860px;margin:0 auto}.vehicles-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.vehicles-header h1{font-size:1.4rem;margin-bottom:4px}.vehicles-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}@media (max-width: 560px){.vehicles-grid{grid-template-columns:1fr}}.vehicle-card-detailed{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px}.vehicle-icon-large{width:56px;height:56px;border-radius:14px;background:#f1f2f4;display:flex;align-items:center;justify-content:center;color:var(--brand-primary);margin-bottom:12px}.vehicle-info h3{font-size:1.05rem;margin-bottom:8px}.vehicle-meta{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.vehicle-meta-item{background:#f1f2f4;border-radius:8px;padding:4px 10px;font-size:.8rem;color:var(--muted)}.vehicle-details h4{font-size:.9rem;margin-bottom:8px}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.detail-item{background:#f9fafb;border:1px solid var(--border);border-radius:8px;padding:8px;text-align:center}.detail-item .label{display:block;font-size:.7rem;color:var(--muted);margin-bottom:2px}.detail-item .value{font-size:.85rem;font-weight:600}.vehicle-footer{display:flex;gap:10px;margin-top:16px}.vehicle-form-container{max-width:720px;margin:0 auto}.form-grid{display:flex;flex-direction:column;gap:4px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}@media (max-width: 560px){.form-row{grid-template-columns:1fr}}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}.chat-container{display:flex;flex-direction:column;height:calc(100vh - var(--nav-height));max-width:860px;margin:0 auto}.chat-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 4px 16px}.chat-header h1{font-size:1.3rem;margin-bottom:4px}.connection-dot{display:inline-flex;align-items:center;gap:6px;font-size:.8rem;font-weight:600}.connection-dot:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--muted)}.connection-dot.online:before{background:#10b981}.connection-dot.offline:before{background:#ef4444}.messages-area{flex:1;overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:12px}.message{display:flex}.message.from-garage{justify-content:flex-start}.message.from-customer{justify-content:flex-end}.message-bubble{max-width:75%;padding:10px 14px;border-radius:14px}.message.from-garage .message-bubble{background:#f1f2f4;border-bottom-left-radius:4px}.message.from-customer .message-bubble{background:var(--brand-primary);color:#fff;border-bottom-right-radius:4px}.message-bubble strong{display:block;font-size:.75rem;margin-bottom:2px}.message-bubble p{font-size:.92rem;word-break:break-word}.message-time{display:block;font-size:.7rem;margin-top:4px;opacity:.6}.composer{display:flex;gap:10px;padding:14px 0 8px}.composer input{flex:1}.composer .primary{white-space:nowrap}.profile-container{max-width:720px;margin:0 auto}.profile-avatar{display:flex;align-items:center;gap:16px;margin-bottom:20px}.avatar-circle{width:64px;height:64px;border-radius:50%;background:var(--brand-primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.6rem;font-weight:700}.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.profile-links{display:flex;flex-direction:column;border-top:1px solid var(--border)}.profile-link{padding:16px 4px;border-bottom:1px solid var(--border);color:var(--text);font-weight:500;font-size:.95rem;text-align:left;background:none;cursor:pointer}.profile-link.logout{color:#dc2626}
