:root {
  color-scheme: dark;
  --bg: #08080b;
  --surface: #101015;
  --surface-2: #15151c;
  --surface-3: #1a1a23;
  --border: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.15);
  --text: #f5f3ff;
  --muted: #9f9baa;
  --muted-2: #777381;
  --purple: #d71920;
  --purple-2: #9d080e;
  --purple-soft: rgba(215,25,32,.14);
  --green: #4ade80;
  --green-soft: rgba(74,222,128,.12);
  --yellow: #facc15;
  --yellow-soft: rgba(250,204,21,.11);
  --red: #fb7185;
  --red-soft: rgba(251,113,133,.12);
  --blue: #60a5fa;
  --blue-soft: rgba(96,165,250,.12);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 24px 80px rgba(0,0,0,.42);
  --sidebar-width: 248px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 90% -10%, rgba(157,8,14,.14), transparent 35%), var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
input, select, textarea {
  width: 100%; border: 1px solid var(--border); background: #0d0d12; color: var(--text);
  border-radius: 12px; padding: 13px 14px; outline: none; transition: border-color .18s, box-shadow .18s, background .18s;
}
input:focus, select:focus, textarea:focus { border-color: rgba(215,25,32,.72); box-shadow: 0 0 0 4px rgba(215,25,32,.12); background: #101017; }
textarea { resize: vertical; }
label > span { display: block; margin: 0 0 7px; color: #c8c4d0; font-size: 13px; font-weight: 650; }

.is-hidden { display: none !important; }
.eyebrow { display: block; color: #938d9f; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.muted-label { color: var(--muted-2); font-size: 12px; }
.glass-card { background: rgba(15,15,21,.86); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: blur(24px); }

.login-view { min-height: 100vh; display: grid; place-items: center; padding: 28px; overflow: hidden; position: relative; }
.login-view::before { content: ""; position: absolute; width: 540px; height: 540px; border-radius: 50%; background: radial-gradient(circle, rgba(215,25,32,.2), rgba(118,7,11,.05) 48%, transparent 70%); filter: blur(8px); }
.login-orbit { position: absolute; border: 1px solid rgba(215,25,32,.19); border-radius: 50%; transform: rotate(-12deg); pointer-events: none; }
.orbit-a { width: 760px; height: 260px; }
.orbit-b { width: 880px; height: 380px; transform: rotate(17deg); opacity: .45; }
.login-card { position: relative; z-index: 2; width: min(520px, 100%); border-radius: 28px; padding: 34px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand strong { display: block; font-size: 16px; letter-spacing: .16em; }
.brand small { display: block; margin-top: 2px; color: #8c8696; font-size: 8px; letter-spacing: .32em; }
.brand-mark { position: relative; width: 38px; height: 38px; border: 2px solid rgba(255,255,255,.82); border-radius: 50%; display: grid; place-items: center; }
.brand-mark::after { content: ""; position: absolute; width: 48px; height: 12px; border: 2px solid var(--purple); border-left-color: transparent; border-right-color: transparent; border-radius: 50%; transform: rotate(-11deg); }
.brand-mark span { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 42% 40%, #f0444d, #9d080e 45%, #09090b 75%); box-shadow: 0 0 20px rgba(215,25,32,.55); }
.login-copy { margin: 38px 0 25px; }
.login-copy h1 { margin: 10px 0 13px; max-width: 450px; font-size: clamp(29px, 6vw, 42px); line-height: 1.05; letter-spacing: -.04em; }
.login-copy p { margin: 0; max-width: 430px; color: var(--muted); line-height: 1.6; }
.login-form { display: grid; gap: 15px; }
.form-status { min-height: 18px; margin: -4px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.security-strip { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; margin-top: 20px; padding-top: 19px; border-top: 1px solid var(--border); color: #8e8998; font-size: 11px; }
.security-strip span { display: inline-flex; align-items: center; gap: 7px; }

.primary-button, .secondary-button, .logout-button, .text-button, .icon-button, .profile-button, .workshop-selector, .nav-item, .close-button {
  border: 0; background: none;
}
.primary-button, .secondary-button { min-height: 46px; border-radius: 13px; padding: 0 17px; font-weight: 760; transition: transform .16s, border-color .16s, background .16s, box-shadow .16s; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; background: linear-gradient(135deg, #d71920, #9d080e); box-shadow: 0 10px 30px rgba(157,8,14,.24); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 13px 34px rgba(157,8,14,.34); }
.secondary-button { border: 1px solid var(--border-strong); background: rgba(255,255,255,.025); }
.secondary-button:hover { border-color: rgba(215,25,32,.48); background: var(--purple-soft); }
.compact { min-height: 39px; padding: 0 14px; font-size: 13px; }
.full-width { width: 100%; }
.text-button { color: #aaa2ba; font-size: 12px; font-weight: 700; }
.text-button:hover { color: #fff; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0,1fr); }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; border-right: 1px solid var(--border); background: rgba(9,9,13,.95); padding: 25px 16px 18px; backdrop-filter: blur(18px); }
.sidebar-brand { padding: 0 10px 24px; }
.main-nav { display: grid; gap: 5px; }
.nav-item { width: 100%; min-height: 45px; border-radius: 12px; display: flex; align-items: center; gap: 12px; padding: 0 12px; color: #938e9c; text-align: left; transition: color .16s, background .16s; }
.nav-item:hover { color: #ded9e8; background: rgba(255,255,255,.035); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(215,25,32,.18), rgba(215,25,32,.06)); box-shadow: inset 3px 0 0 var(--purple); }
.nav-icon { width: 24px; text-align: center; color: #aaa1bb; font-size: 17px; }
.nav-item.active .nav-icon { color: #ff5961; }
.nav-item > span:nth-child(2) { flex: 1; font-size: 13px; font-weight: 680; }
.nav-badge { min-width: 21px; height: 21px; border-radius: 999px; display: grid; place-items: center; background: var(--purple); color: #fff; font-size: 10px; }
.sidebar-footer { margin-top: auto; display: grid; gap: 12px; }
.plan-mini { border: 1px solid var(--border); border-radius: 15px; padding: 14px; background: linear-gradient(135deg, rgba(215,25,32,.1), rgba(255,255,255,.015)); }
.plan-mini span, .plan-mini small { display: block; color: var(--muted-2); font-size: 10px; }
.plan-mini strong { display: block; margin: 5px 0 4px; font-size: 13px; }
.logout-button { width: 100%; min-height: 40px; border-radius: 11px; color: #8f8998; text-align: left; padding: 0 13px; }
.logout-button:hover { color: #fff; background: rgba(255,255,255,.035); }

.main-area { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 15; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; border-bottom: 1px solid var(--border); background: rgba(8,8,11,.82); backdrop-filter: blur(20px); }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 14px; }
.workshop-selector { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0 0; }
.workshop-selector strong { font-size: 14px; }
.workshop-selector span { color: var(--muted); }
.sync-chip { height: 31px; border: 1px solid var(--border); border-radius: 999px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; color: #9c97a5; font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 11px rgba(74,222,128,.65); }
.icon-button { position: relative; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 12px; display: grid; place-items: center; color: #aaa5b0; }
.icon-button:hover { color: #fff; border-color: rgba(215,25,32,.4); }
.notification-button b { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; background: var(--purple); color: #fff; font-size: 9px; }
.profile-button { display: flex; align-items: center; gap: 9px; padding: 0; text-align: left; }
.profile-avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg,#262231,#17151d); border: 1px solid var(--border); font-size: 11px; font-weight: 800; }
.profile-copy strong, .profile-copy small { display: block; }
.profile-copy strong { font-size: 12px; }
.profile-copy small { margin-top: 2px; color: var(--muted-2); font-size: 10px; }
.mobile-menu-button { display: none; }

.content-wrap { max-width: 1600px; margin: 0 auto; padding: 32px 30px 60px; }
.view { display: none; }
.view.active-view { display: block; animation: viewIn .22s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 25px; }
.page-heading h2 { margin: 7px 0 7px; font-size: clamp(25px,3vw,36px); line-height: 1.05; letter-spacing: -.035em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.metric-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 13px; margin-bottom: 16px; }
.metric-card { position: relative; overflow: hidden; min-height: 132px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); padding: 18px; }
.metric-card::after { content: ""; position: absolute; width: 80px; height: 80px; border-radius: 50%; right: -25px; top: -25px; background: var(--metric-glow, rgba(215,25,32,.1)); filter: blur(4px); }
.metric-card .metric-top { display: flex; justify-content: space-between; color: #8f8997; font-size: 11px; }
.metric-card .metric-icon { color: var(--metric-color, var(--purple)); font-size: 17px; }
.metric-card strong { display: block; margin: 18px 0 5px; font-size: 29px; letter-spacing: -.04em; }
.metric-card small { color: var(--muted-2); font-size: 10px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(280px,.8fr); gap: 16px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(150deg, rgba(255,255,255,.028), rgba(255,255,255,.01)); padding: 20px; }
.panel-wide { min-width: 0; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-heading h3 { margin: 5px 0 0; font-size: 16px; }
.flush-panel { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 14px 10px; border-bottom: 1px solid rgba(255,255,255,.055); text-align: left; }
th { color: #777281; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
td { color: #c9c5d0; font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(255,255,255,.018); }
.table-main { display: block; color: #f1edf7; font-weight: 700; }
.table-sub { display: block; margin-top: 3px; color: #75707e; font-size: 10px; }
.status-pill, .healthy-pill, .warning-pill, .read-only-pill { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; white-space: nowrap; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.status-pill { min-height: 24px; padding: 0 9px; }
.status-received { color: #a5b4fc; background: rgba(99,102,241,.12); }
.status-diagnosis { color: #7dd3fc; background: rgba(56,189,248,.1); }
.status-waiting_approval { color: #fde047; background: var(--yellow-soft); }
.status-in_service { color: #ff777e; background: var(--purple-soft); }
.status-ready { color: #86efac; background: var(--green-soft); }
.status-delivered { color: #a7f3d0; background: rgba(16,185,129,.1); }
.status-overdue { color: #fda4af; background: var(--red-soft); }
.healthy-pill { min-height: 25px; padding: 0 10px; color: #86efac; background: var(--green-soft); }
.warning-pill { min-height: 25px; padding: 0 10px; color: #fde68a; background: var(--yellow-soft); }
.read-only-pill { min-height: 30px; padding: 0 12px; color: #ff9196; background: var(--purple-soft); border: 1px solid rgba(215,25,32,.18); }
.amount { color: #f0ecf7; font-weight: 700; }

.stack-list { display: grid; gap: 8px; }
.stack-item { display: grid; grid-template-columns: 39px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.055); border-radius: 12px; padding: 10px; }
.stack-date { width: 39px; height: 39px; border-radius: 10px; display: grid; place-items: center; background: var(--purple-soft); color: #ff777e; font-size: 10px; font-weight: 800; }
.stack-copy strong, .stack-copy small { display: block; }
.stack-copy strong { font-size: 11px; }
.stack-copy small { margin-top: 3px; color: var(--muted-2); font-size: 9px; }
.stack-item > small { color: #8e8996; font-size: 9px; }
.workflow-bars { display: grid; gap: 14px; }
.workflow-row { display: grid; grid-template-columns: 140px minmax(100px,1fr) 34px; align-items: center; gap: 12px; }
.workflow-row > span { color: #9d98a5; font-size: 11px; }
.workflow-track { height: 8px; border-radius: 999px; background: #0c0c11; overflow: hidden; }
.workflow-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#9d080e,#f0444d); }
.workflow-row strong { text-align: right; font-size: 11px; }
.security-summary ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 1px; }
.security-summary li { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); color: #8f8a97; font-size: 11px; }
.security-summary li strong { color: #c7efcf; font-size: 10px; }

.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.search-field { flex: 1; position: relative; }
.search-field > span { position: absolute; z-index: 2; left: 14px; top: 13px; color: #6f6a77; font-size: 17px; }
.search-field input { padding-left: 41px; }
.toolbar select { width: 190px; }
.customer-avatar { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--purple-soft); color: #ff777e; font-size: 10px; font-weight: 800; }
.customer-cell { display: flex; align-items: center; gap: 10px; }

.vehicle-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.vehicle-card { border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); overflow: hidden; }
.vehicle-card-top { height: 178px; position: relative; overflow: hidden; background: #090a0c; }
.vehicle-photo { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; transform: scale(1.015); transition: transform .32s ease, filter .32s ease; }
.vehicle-card:hover .vehicle-photo { transform: scale(1.055); filter: saturate(1.06) contrast(1.03); }
.vehicle-photo-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.05) 34%, rgba(0,0,0,.72) 100%), linear-gradient(90deg, rgba(var(--unit-accent-rgb),.12), transparent 42%); }
.vehicle-photo-badge { position: absolute; left: 12px; bottom: 11px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; background: rgba(4,5,6,.72); color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .12em; backdrop-filter: blur(8px); }
.plate-tag { position: absolute; z-index: 2; top: 12px; right: 12px; min-height: 27px; display: grid; place-items: center; padding: 0 9px; border: 1px solid rgba(255,255,255,.32); border-radius: 6px; background: rgba(245,246,248,.92); color: #111315; box-shadow: 0 6px 18px rgba(0,0,0,.35); font-size: 10px; font-weight: 950; letter-spacing: .1em; }
.vehicle-card-body { padding: 16px; }
.vehicle-card-body h3 { margin: 0 0 4px; font-size: 15px; }
.vehicle-card-body > p { margin: 0; color: var(--muted); font-size: 10px; }
.vehicle-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 15px; }
.vehicle-stat { border: 1px solid rgba(255,255,255,.055); border-radius: 10px; padding: 9px; }
.vehicle-stat span, .vehicle-stat strong { display: block; }
.vehicle-stat span { color: var(--muted-2); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.vehicle-stat strong { margin-top: 4px; font-size: 10px; }
.vehicle-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.055); }
.vehicle-card-foot span { color: var(--muted-2); font-size: 9px; }

.order-board { display: grid; grid-template-columns: repeat(3,minmax(250px,1fr)); gap: 13px; align-items: start; }
.order-column { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.012); }
.order-column-heading { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; border-bottom: 1px solid var(--border); }
.order-column-heading h3 { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.order-column-heading span { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.055); color: #aaa4b1; font-size: 9px; }
.order-column-body { min-height: 120px; display: grid; gap: 9px; padding: 9px; }
.order-card { border: 1px solid rgba(255,255,255,.07); border-radius: 13px; background: #111117; padding: 13px; transition: border-color .16s, transform .16s; }
.order-card:hover { transform: translateY(-1px); border-color: rgba(215,25,32,.28); }
.order-card-top { display: flex; justify-content: space-between; gap: 12px; }
.order-card .order-number { color: #a99dbb; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.order-card h4 { margin: 9px 0 4px; font-size: 12px; }
.order-card p { margin: 0; color: var(--muted-2); font-size: 9px; line-height: 1.5; }
.order-card-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.05); color: #8d8795; font-size: 9px; }

.review-summary-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 15px; }
.review-summary-grid article { border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.02); padding: 16px; }
.review-summary-grid span { display: block; color: var(--muted-2); font-size: 10px; }
.review-summary-grid strong { display: block; margin-top: 7px; font-size: 25px; }
.review-list { display: grid; gap: 10px; }
.review-card { display: grid; grid-template-columns: 58px minmax(0,1.3fr) minmax(140px,.7fr) auto; align-items: center; gap: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.018); padding: 14px; }
.review-date-box { width: 58px; height: 58px; border-radius: 13px; display: grid; place-items: center; background: var(--purple-soft); color: #ff777e; }
.review-date-box strong, .review-date-box span { display: block; text-align: center; }
.review-date-box strong { font-size: 18px; }
.review-date-box span { font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.review-main h3 { margin: 0 0 5px; font-size: 13px; }
.review-main p, .review-detail p { margin: 0; color: var(--muted-2); font-size: 10px; }
.review-detail strong { display: block; margin-bottom: 4px; font-size: 11px; }
.review-actions { display: flex; gap: 7px; }

.notification-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(270px,.7fr); gap: 16px; }
.notification-list { display: grid; gap: 9px; align-content: start; }
.notification-item { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; align-items: start; border: 1px solid var(--border); border-radius: 15px; background: rgba(255,255,255,.018); padding: 14px; }
.notification-item.unread { background: linear-gradient(90deg, rgba(215,25,32,.09), rgba(255,255,255,.015)); border-color: rgba(215,25,32,.18); }
.notification-type-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--purple-soft); color: #ff777e; }
.notification-copy h3 { margin: 1px 0 5px; font-size: 12px; }
.notification-copy p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.notification-copy small { display: block; margin-top: 7px; color: var(--muted-2); font-size: 8px; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); margin-top: 4px; }
.preference-panel h3 { margin: 6px 0 18px; }
.toggle-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.toggle-row span { margin: 0; }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row strong { color: #d5d0dc; font-size: 11px; }
.toggle-row small { margin-top: 4px; color: var(--muted-2); font-size: 9px; font-weight: 400; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-row i { position: relative; flex: 0 0 auto; width: 38px; height: 22px; border-radius: 999px; background: #25242b; transition: background .15s; }
.toggle-row i::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #8e8996; transition: transform .15s, background .15s; }
.toggle-row input:checked + i { background: var(--purple-2); }
.toggle-row input:checked + i::after { transform: translateX(16px); background: #fff; }
.privacy-note { margin: 15px 0 0; color: var(--muted-2); font-size: 9px; line-height: 1.55; }

.subscription-grid { display: grid; grid-template-columns: minmax(280px,.75fr) minmax(0,1.35fr); gap: 16px; }
.plan-card { border: 1px solid rgba(215,25,32,.25); border-radius: var(--radius-lg); padding: 24px; background: radial-gradient(circle at 90% 5%, rgba(215,25,32,.18), transparent 35%), linear-gradient(145deg,rgba(255,255,255,.04),rgba(255,255,255,.012)); }
.plan-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 31px; }
.plan-code { color: #655d71; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.plan-card h3 { margin: 7px 0 13px; font-size: 25px; }
.price-line { display: flex; align-items: baseline; gap: 7px; }
.price-line strong { font-size: 36px; letter-spacing: -.05em; }
.price-line span { color: var(--muted); font-size: 11px; }
.demo-price-note { color: var(--muted-2); font-size: 9px; }
.feature-list { list-style: none; margin: 23px 0; padding: 0; display: grid; gap: 11px; }
.feature-list li { position: relative; padding-left: 21px; color: #bbb5c3; font-size: 10px; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: #86efac; }
.subscription-details { display: grid; gap: 14px; align-content: start; }
.amount-label { color: #d8d2e0; font-size: 20px; font-weight: 800; }
.payment-method { display: flex; align-items: center; gap: 13px; border-top: 1px solid rgba(255,255,255,.055); padding-top: 16px; }
.card-symbol { width: 42px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: #23212a; color: #aaa3b3; }
.payment-method strong, .payment-method small { display: block; }
.payment-method strong { font-size: 11px; }
.payment-method small { margin-top: 4px; color: var(--muted-2); font-size: 9px; }
.usage-list { display: grid; gap: 16px; }
.usage-list > div > div { display: flex; justify-content: space-between; color: #aaa4b1; font-size: 10px; }
.usage-list strong { color: #d4cedb; }
progress { width: 100%; height: 7px; margin-top: 8px; border: 0; border-radius: 999px; overflow: hidden; background: #0c0c11; }
progress::-webkit-progress-bar { background: #0c0c11; }
progress::-webkit-progress-value { background: linear-gradient(90deg,#9d080e,#f0444d); border-radius: 999px; }
progress::-moz-progress-bar { background: linear-gradient(90deg,#9d080e,#f0444d); border-radius: 999px; }
.invoice-panel { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.invoice-panel h3 { margin: 6px 0 5px; }
.invoice-panel p { margin: 0; color: var(--muted); font-size: 10px; }

.security-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.security-card { display: grid; grid-template-columns: 45px minmax(0,1fr) auto; gap: 14px; align-items: start; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.018); padding: 18px; }
.security-icon { width: 45px; height: 45px; border-radius: 13px; display: grid; place-items: center; background: var(--purple-soft); color: #ff777e; font-size: 18px; }
.security-card small { color: #746e7b; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.security-card h3 { margin: 6px 0 6px; font-size: 14px; }
.security-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.security-note-panel { margin-top: 14px; display: flex; justify-content: space-between; gap: 25px; align-items: center; }
.security-note-panel h3 { margin: 6px 0 7px; }
.security-note-panel p { max-width: 760px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.locked-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.locked-actions span { border: 1px solid var(--border); border-radius: 999px; padding: 7px 10px; color: #8d8795; font-size: 9px; }

.app-modal { width: min(600px,calc(100% - 24px)); border: 1px solid var(--border-strong); border-radius: 21px; background: #101015; color: var(--text); padding: 0; box-shadow: var(--shadow); }
.app-modal::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.app-modal form { padding: 22px; }
.large-modal { width: min(720px,calc(100% - 24px)); }
.modal-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 22px; }
.modal-heading h3 { margin: 6px 0 0; font-size: 21px; }
.close-button { width: 35px; height: 35px; border: 1px solid var(--border); border-radius: 10px; color: #938d9c; font-size: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.field-span-2 { grid-column: span 2; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 9px; width: min(360px,calc(100% - 40px)); }
.toast { border: 1px solid var(--border-strong); border-radius: 14px; background: rgba(18,18,24,.96); box-shadow: 0 18px 55px rgba(0,0,0,.4); padding: 13px 15px; display: flex; gap: 11px; align-items: start; animation: toastIn .2s ease; }
.toast i { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--purple); }
.toast strong, .toast span { display: block; }
.toast strong { font-size: 11px; }
.toast span { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.45; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
.mobile-overlay { display: none; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(3,1fr); }
  .vehicle-grid { grid-template-columns: repeat(2,1fr); }
  .order-board { grid-template-columns: repeat(2,minmax(250px,1fr)); }
}

@media (max-width: 860px) {
  .app-shell { display: block; }
  .sidebar { transform: translateX(-102%); transition: transform .22s ease; }
  .app-shell.menu-open .sidebar { transform: translateX(0); }
  .main-area { width: 100%; }
  .mobile-menu-button { display: grid; }
  .mobile-overlay { position: fixed; z-index: 18; inset: 0; background: rgba(0,0,0,.58); }
  .app-shell.menu-open + .mobile-overlay { display: block; }
  .topbar { padding: 0 18px; }
  .content-wrap { padding: 25px 18px 50px; }
  .profile-copy, .sync-chip { display: none; }
  .dashboard-grid, .notification-layout, .subscription-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .security-grid { grid-template-columns: 1fr; }
  .review-card { grid-template-columns: 52px 1fr auto; }
  .review-detail { display: none; }
  .security-note-panel { align-items: flex-start; flex-direction: column; }
  .locked-actions { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .login-view { padding: 14px; }
  .login-card { padding: 24px 19px; }
  .security-strip { justify-content: flex-start; }
  .topbar { min-height: 68px; }
  .topNotificationButton { display:none; }
  .content-wrap { padding-inline: 13px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading .primary-button { width: 100%; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 113px; padding: 14px; }
  .metric-card strong { margin-top: 13px; font-size: 24px; }
  .panel { padding: 15px; }
  .vehicle-grid, .order-board, .review-summary-grid { grid-template-columns: 1fr; }
  .toolbar, .orders-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar select { width: 100%; }
  .review-card { grid-template-columns: 52px 1fr; }
  .review-actions { grid-column: 1 / -1; }
  .review-actions button { flex: 1; }
  .notification-item { grid-template-columns: 38px minmax(0,1fr) auto; }
  .security-card { grid-template-columns: 42px minmax(0,1fr); }
  .security-card > .healthy-pill, .security-card > .warning-pill { grid-column: 2; justify-self: start; }
  .invoice-panel { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .field-span-2 { grid-column: auto; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions button { width: 100%; }
}

/* =========================================================
   AJUSTE DE LEGIBILIDADE — FONTE AUMENTADA
   Mantém o layout original, com tipografia mais confortável
   em notebooks, monitores e celulares.
   ========================================================= */
body { font-size: 16px; line-height: 1.5; }
:root { --sidebar-width: 270px; }

label > span { font-size: 15px; }
.eyebrow { font-size: 12px; }
.muted-label { font-size: 14px; }
.brand strong { font-size: 18px; }
.brand small { font-size: 11px; letter-spacing: .24em; }
.login-copy p { font-size: 16px; }
.form-status { font-size: 14px; }
.security-strip { font-size: 13px; }
.primary-button, .secondary-button { min-height: 49px; font-size: 15px; }
.compact { min-height: 43px; font-size: 14px; }
.text-button { font-size: 14px; }

.nav-item { min-height: 50px; }
.nav-icon { font-size: 20px; }
.nav-item > span:nth-child(2) { font-size: 15px; }
.nav-badge { min-width: 24px; height: 24px; font-size: 12px; }
.plan-mini span, .plan-mini small { font-size: 12px; }
.plan-mini strong { font-size: 15px; }
.logout-button { min-height: 45px; font-size: 14px; }

.workshop-selector strong { font-size: 16px; }
.sync-chip { height: 35px; font-size: 13px; }
.notification-button b { min-width: 21px; height: 21px; font-size: 11px; }
.profile-avatar { font-size: 13px; }
.profile-copy strong { font-size: 14px; }
.profile-copy small { font-size: 12px; }

.page-heading p { font-size: 15px; }
.metric-card { min-height: 150px; padding: 19px; }
.metric-card .metric-top { font-size: 14px; }
.metric-card .metric-icon { font-size: 20px; }
.metric-card strong { font-size: 34px; }
.metric-card small { font-size: 13px; }
.panel-heading h3 { font-size: 19px; }

th { font-size: 12px; }
td { font-size: 14px; }
.table-sub { font-size: 12px; }
.status-pill, .healthy-pill, .warning-pill, .read-only-pill { font-size: 11px; min-height: 31px; padding-inline: 11px; }

.stack-date { width: 44px; height: 44px; font-size: 12px; }
.stack-copy strong { font-size: 14px; }
.stack-copy small, .stack-item > small { font-size: 12px; }
.workflow-row > span, .workflow-row strong { font-size: 13px; }
.security-summary li { font-size: 13px; }
.security-summary li strong { font-size: 12px; }
.customer-avatar { width: 39px; height: 39px; font-size: 12px; }

.plate-tag { font-size: 11px; }
.vehicle-card-body h3 { font-size: 18px; }
.vehicle-card-body > p { font-size: 13px; }
.vehicle-stat span { font-size: 11px; }
.vehicle-stat strong { font-size: 13px; }
.vehicle-card-foot span { font-size: 12px; }

.order-column-heading { min-height: 54px; }
.order-column-heading h3 { font-size: 13px; }
.order-column-heading span { min-width: 25px; height: 25px; font-size: 11px; }
.order-card { padding: 16px; }
.order-card .order-number { font-size: 11px; }
.order-card h4 { font-size: 15px; }
.order-card p, .order-card-meta { font-size: 12px; }

.review-summary-grid span { font-size: 13px; }
.review-summary-grid strong { font-size: 30px; }
.review-date-box span { font-size: 11px; }
.review-main h3 { font-size: 16px; }
.review-main p, .review-detail p { font-size: 13px; }
.review-detail strong { font-size: 14px; }

.notification-copy h3 { font-size: 15px; }
.notification-copy p { font-size: 13px; }
.notification-copy small { font-size: 11px; }
.toggle-row strong { font-size: 14px; }
.toggle-row small { font-size: 12px; }
.privacy-note { font-size: 12px; }

.plan-code { font-size: 12px; }
.price-line span { font-size: 14px; }
.demo-price-note { font-size: 12px; }
.feature-list li { font-size: 13px; line-height: 1.55; }
.payment-method strong { font-size: 14px; }
.payment-method small { font-size: 12px; }
.usage-list > div > div { font-size: 13px; }
.invoice-panel p { font-size: 13px; }

.security-card small { font-size: 11px; }
.security-card h3 { font-size: 17px; }
.security-card p, .security-note-panel p { font-size: 13px; }
.locked-actions span { font-size: 12px; }
.toast strong { font-size: 14px; }
.toast span { font-size: 12px; }

input, select, textarea { font-size: 15px; padding: 14px 15px; }

@media (max-width: 620px) {
  body { font-size: 16px; }
  .content-wrap { padding-inline: 16px; }
  .metric-card { min-height: 132px; padding: 16px; }
  .metric-card strong { font-size: 30px; }
  .metric-card .metric-top { font-size: 13px; }
  .page-heading h2 { font-size: 30px; }
}


/* =========================================================
   IDENTIDADE VISUAL — GW SOLUTIONS
   Logo aplicada a partir da marca enviada pelo cliente.
   ========================================================= */
.brand-logo { display: block; width: 100%; height: auto; object-fit: contain; object-position: left center; }
.brand-logo-login { width: min(330px, 88%); max-height: 78px; }
.brand-logo-sidebar { width: 215px; max-height: 58px; }
.sidebar-brand { min-height: 72px; align-items: center; }
@media (max-width: 720px) {
  .brand-logo-login { width: min(310px, 94%); }
  .brand-logo-sidebar { width: 205px; }
}


/* =========================================================
   REDESIGN TOTAL — IDENTIDADE DO CLIENTE GW SOLUTIONS
   Preto automotivo, vermelho da marca e acabamento metálico.
   ========================================================= */
:root {
  color-scheme: dark;
  --bg: #060708;
  --surface: #0d0f11;
  --surface-2: #121417;
  --surface-3: #181b1f;
  --border: rgba(225, 228, 232, .11);
  --border-strong: rgba(225, 228, 232, .22);
  --text: #f5f6f7;
  --muted: #a9adb4;
  --muted-2: #777c84;
  --purple: #d71920;
  --purple-2: #9d080e;
  --purple-soft: rgba(215, 25, 32, .14);
  --brand-red: #d71920;
  --brand-red-bright: #f0444d;
  --brand-red-dark: #76070b;
  --silver: #d7d8dc;
  --steel: #8b9199;
  --green: #45d483;
  --radius-sm: 7px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 28px 90px rgba(0,0,0,.58);
  --sidebar-width: 292px;
}

html, body { background: var(--bg); }
body {
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    radial-gradient(circle at 100% 0%, rgba(215,25,32,.13), transparent 30%),
    #060708;
  background-size: 44px 44px, 44px 44px, auto, auto;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, transparent 0 68%, rgba(215,25,32,.025) 68% 69%, transparent 69%);
}

input, select, textarea {
  border-radius: 6px;
  border-color: rgba(215,216,220,.16);
  background: #090b0d;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(240,68,77,.82);
  box-shadow: 0 0 0 4px rgba(215,25,32,.13);
  background: #0c0e10;
}
label > span { color: #d2d4d8; }
.eyebrow { color: #c0c3c8; letter-spacing: .18em; }
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  margin-right: 9px;
  vertical-align: middle;
  background: var(--brand-red);
  box-shadow: 0 0 12px rgba(215,25,32,.65);
}

/* LOGIN */
.login-view {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px;
  background:
    radial-gradient(circle at 12% 15%, rgba(215,25,32,.13), transparent 26%),
    linear-gradient(135deg, #050607, #0c0d0f 56%, #070809);
}
.login-view::before {
  width: 760px;
  height: 760px;
  right: -340px;
  bottom: -440px;
  background: radial-gradient(circle, rgba(215,25,32,.14), transparent 66%);
  filter: none;
}
.login-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr);
  overflow: hidden;
  border: 1px solid rgba(215,216,220,.18);
  border-radius: 12px;
  background: #090a0c;
  box-shadow: 0 38px 120px rgba(0,0,0,.68), 0 0 0 1px rgba(215,25,32,.08);
}
.login-shell::before {
  content: "";
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  width: 48%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red), transparent);
  box-shadow: 0 0 18px rgba(215,25,32,.7);
}
.login-brand-panel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #050506;
}
.login-brand-panel::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 22px;
  border: 1px solid rgba(240,68,77,.42);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 91% 100%, 0 100%);
  pointer-events: none;
}
.login-brand-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
  filter: contrast(1.08) saturate(.94) brightness(.72);
}
.login-brand-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,5,6,.18), rgba(4,5,6,.05) 45%, rgba(4,5,6,.48)),
    linear-gradient(0deg, rgba(4,5,6,.97), transparent 58%),
    linear-gradient(180deg, rgba(4,5,6,.18), transparent 30%);
}
.login-brand-content {
  position: absolute;
  z-index: 3;
  left: 56px;
  right: 56px;
  bottom: 54px;
}
.brand-kicker {
  display: inline-flex;
  padding: 9px 13px;
  border-left: 3px solid var(--brand-red);
  background: rgba(5,6,7,.76);
  color: #f1f2f3;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .13em;
}
.login-brand-content h2 {
  max-width: 610px;
  margin: 22px 0 14px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: .98;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.login-brand-content p {
  max-width: 590px;
  margin: 0;
  color: #c1c4ca;
  font-size: 16px;
  line-height: 1.65;
}
.login-brand-content blockquote {
  max-width: 560px;
  margin: 27px 0 0;
  padding: 14px 0 0 18px;
  border-left: 2px solid rgba(215,25,32,.76);
  color: #d6d8dc;
  font-size: 14px;
  font-style: italic;
  line-height: 1.55;
}
.login-brand-content blockquote small {
  display: block;
  margin-top: 8px;
  color: #f0444d;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .18em;
}
.login-card {
  position: relative;
  z-index: 4;
  width: auto;
  min-width: 0;
  border: 0;
  border-left: 1px solid rgba(215,216,220,.13);
  border-radius: 0;
  padding: 55px 44px 38px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.025), transparent 32%),
    #0b0d0f;
  box-shadow: none;
  backdrop-filter: none;
}
.login-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 120px;
  height: 120px;
  border-right: 3px solid rgba(215,25,32,.72);
  border-bottom: 3px solid rgba(215,25,32,.72);
  pointer-events: none;
}
.login-wordmark-frame {
  overflow: hidden;
  border: 1px solid rgba(215,216,220,.13);
  border-bottom: 2px solid var(--brand-red);
  border-radius: 7px;
  background: #070809;
  box-shadow: inset 0 0 35px rgba(215,25,32,.05);
}
.brand-logo-login {
  display: block;
  width: 100%;
  max-height: none;
  aspect-ratio: 2.64 / 1;
  object-fit: cover;
  object-position: center;
}
.login-copy { margin: 38px 0 26px; }
.login-copy h1 {
  margin: 12px 0 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.02;
  text-transform: uppercase;
}
.login-copy p { color: #aeb2b9; font-size: 15px; }
.security-strip {
  justify-content: flex-start;
  color: #959aa2;
  border-top-color: rgba(215,216,220,.13);
}

/* BUTTONS */
.primary-button {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #f15058;
  background: linear-gradient(135deg, #e12831, #a3070d 72%);
  box-shadow: 0 12px 34px rgba(128,5,10,.35), inset 0 1px 0 rgba(255,255,255,.22);
}
.primary-button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-105%) skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: transform .35s ease;
}
.primary-button:hover::before { transform: translateX(105%) skewX(-22deg); }
.primary-button:hover { box-shadow: 0 15px 40px rgba(168,7,14,.44); }
.secondary-button {
  border-radius: 6px;
  border-color: rgba(215,216,220,.24);
  background: linear-gradient(180deg, #17191c, #0c0e10);
}
.secondary-button:hover {
  border-color: rgba(240,68,77,.72);
  background: rgba(215,25,32,.11);
}
.text-button { color: #d2d4d8; }
.text-button:hover { color: var(--brand-red-bright); }

/* SIDEBAR / TOPBAR */
.sidebar {
  border-right: 1px solid rgba(215,216,220,.14);
  background:
    linear-gradient(180deg, rgba(215,25,32,.035), transparent 18%),
    #080a0c;
  padding: 18px 15px;
}
.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 2px;
  height: 170px;
  background: linear-gradient(var(--brand-red), transparent);
  box-shadow: 0 0 16px rgba(215,25,32,.8);
}
.sidebar-brand {
  position: relative;
  min-height: 132px;
  padding: 0 8px 22px;
  border-bottom: 1px solid rgba(215,216,220,.11);
}
.brand-logo-sidebar {
  display: block;
  width: 100%;
  height: 82px;
  max-height: none;
  border-radius: 5px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(215,216,220,.12);
}
.sidebar-brand > span {
  display: block;
  margin-top: 10px;
  color: #a7abb1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
}
.main-nav { margin-top: 13px; gap: 7px; }
.nav-item {
  min-height: 50px;
  border-radius: 5px;
  padding: 0 14px;
  color: #9da1a8;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}
.nav-item:hover {
  color: #f4f4f5;
  background: linear-gradient(90deg, rgba(255,255,255,.065), transparent);
}
.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(215,25,32,.34), rgba(215,25,32,.08));
  box-shadow: inset 3px 0 0 var(--brand-red);
}
.nav-item.active .nav-icon { color: #ff5961; }
.nav-badge, .notification-button b { background: var(--brand-red); }
.plan-mini {
  border-radius: 7px;
  border-left: 3px solid var(--brand-red);
  background: linear-gradient(135deg, rgba(215,25,32,.13), rgba(255,255,255,.018));
}
.logout-button { border-radius: 5px; }
.logout-button:hover { color: #fff; background: rgba(215,25,32,.1); }

.topbar {
  min-height: 82px;
  border-bottom: 1px solid rgba(215,216,220,.13);
  background: rgba(7,9,10,.91);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 30px;
  bottom: -1px;
  width: min(260px, 30vw);
  height: 2px;
  background: linear-gradient(90deg, var(--brand-red), transparent);
  box-shadow: 0 0 14px rgba(215,25,32,.56);
}
.workshop-selector strong { color: #f0f1f2; }
.sync-chip, .icon-button, .profile-avatar {
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(0,0,0,.08));
}
.icon-button:hover { border-color: rgba(240,68,77,.55); }
.profile-avatar {
  border-bottom: 2px solid var(--brand-red);
  color: #f8f8f8;
}

/* HEADINGS AND CONTENT */
.content-wrap { padding-top: 36px; }
.page-heading {
  position: relative;
  padding: 0 0 22px 18px;
  border-bottom: 1px solid rgba(215,216,220,.11);
}
.page-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 24px;
  width: 4px;
  background: var(--brand-red);
  box-shadow: 0 0 14px rgba(215,25,32,.55);
}
.page-heading h2 {
  text-transform: uppercase;
  letter-spacing: -.025em;
}
.page-heading p { color: #a9adb4; }

/* CARDS / PANELS */
.metric-card, .panel, .vehicle-card, .order-column, .review-card,
.notification-item, .plan-card, .payment-method, .security-card,
.app-modal, .toast {
  border-radius: 8px;
  border-color: rgba(215,216,220,.13);
  background:
    linear-gradient(145deg, rgba(255,255,255,.025), transparent 35%),
    #0d0f11;
}
.metric-card {
  min-height: 152px;
  border-top: 2px solid var(--metric-color, var(--brand-red));
}
.metric-card::before {
  width: 116px;
  height: 116px;
  right: -35px;
  top: -38px;
  background: radial-gradient(circle, var(--metric-glow), transparent 66%);
}
.metric-card::after, .panel::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 34px;
  border-right: 1px solid rgba(240,68,77,.46);
  border-bottom: 1px solid rgba(240,68,77,.46);
  pointer-events: none;
}
.panel { position: relative; }
.panel-heading h3 { text-transform: uppercase; letter-spacing: .02em; }
.flush-panel { overflow: hidden; }

table thead {
  background: linear-gradient(90deg, rgba(215,25,32,.14), rgba(255,255,255,.018));
}
th {
  color: #c8cbd0;
  border-bottom-color: rgba(240,68,77,.24);
}
td { border-bottom-color: rgba(215,216,220,.075); }
tbody tr:hover { background: rgba(215,25,32,.045); }

.status-in_service, .read-only-pill, .stack-date, .customer-avatar,
.review-date-box, .notification-type-icon, .security-icon {
  color: #ff777e;
  background: rgba(215,25,32,.13);
}
.read-only-pill { border-color: rgba(215,25,32,.25); }
.workflow-track i, progress::-webkit-progress-value {
  background: linear-gradient(90deg, #8f070d, #f0444d);
}
progress::-moz-progress-bar { background: linear-gradient(90deg, #8f070d, #f0444d); }
.unread-dot, .toast i { background: var(--brand-red); }

.vehicle-card {
  overflow: hidden;
  border-top: 2px solid rgba(215,25,32,.65);
}
.plate-tag { border-radius: 4px; border-color: rgba(215,216,220,.22); }
.order-column-heading {
  border-bottom: 1px solid rgba(215,25,32,.2);
  background: linear-gradient(90deg, rgba(215,25,32,.1), transparent);
}
.order-card {
  border-radius: 6px;
  border-left: 2px solid rgba(215,25,32,.48);
}
.review-date-box { border-bottom: 2px solid var(--brand-red); }
.notification-item.unread { border-left: 3px solid var(--brand-red); }
.toggle-row input:checked + i { background: var(--brand-red-dark); }
.security-note-panel {
  border-left: 3px solid var(--brand-red);
}
.healthy-pill { border-color: rgba(69,212,131,.2); }

/* MODALS */
.app-modal {
  background: #0c0e10;
  border-top: 2px solid var(--brand-red);
}
.close-button {
  border-radius: 5px;
  border-color: rgba(215,216,220,.18);
}
.close-button:hover { border-color: var(--brand-red); color: #fff; }

/* Scrollbar */
* { scrollbar-color: #6f080c #0b0d0f; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b0d0f; }
::-webkit-scrollbar-thumb { background: #5f090d; border: 2px solid #0b0d0f; }
::-webkit-scrollbar-thumb:hover { background: #a50d14; }

@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; max-width: 650px; }
  .login-brand-panel { min-height: 380px; }
  .login-brand-content { left: 35px; right: 35px; bottom: 34px; }
  .login-brand-content h2 { font-size: 38px; }
  .login-card { border-left: 0; border-top: 1px solid rgba(215,216,220,.13); }
}
@media (max-width: 620px) {
  .login-view { padding: 10px; }
  .login-shell { min-height: 0; }
  .login-brand-panel { min-height: 280px; }
  .login-brand-panel::after { inset: 12px; }
  .login-brand-content { left: 25px; right: 25px; bottom: 24px; }
  .brand-kicker { font-size: 9px; letter-spacing: .08em; }
  .login-brand-content h2 { margin-top: 14px; font-size: 29px; }
  .login-brand-content p, .login-brand-content blockquote { display: none; }
  .login-card { padding: 32px 22px 28px; }
  .sidebar-brand { min-height: 124px; }
  .brand-logo-sidebar { height: 76px; }
  .page-heading { padding-left: 14px; }
}


/* =========================================================
   ACABAMENTO V6 — LOGO HQ, VISUAL NATURAL E LEDS EM MOVIMENTO
   ========================================================= */

/* Remove os travessões e filetes decorativos anteriores. */
.eyebrow::before,
.page-heading::before,
.topbar::after,
.sidebar::after,
.login-shell::before {
  display: none !important;
  content: none !important;
}

.page-heading {
  padding-left: 0;
}

/* Logo em PNG de alta resolução, sem recorte forçado. */
.brand-logo {
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.brand-logo-sidebar {
  width: 100%;
  height: 94px;
  padding: 3px;
  object-fit: contain;
  object-position: center;
  background: #050607;
  border: 1px solid rgba(215,216,220,.14);
  box-shadow: 0 8px 25px rgba(0,0,0,.34), inset 0 0 28px rgba(215,25,32,.035);
}

.sidebar-brand {
  min-height: 145px;
}

.brand-logo-login {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  object-position: center;
  background: #050607;
}

/* Moldura de LEDs vermelhos percorrendo todo o contorno da tela. */
.led-perimeter {
  position: fixed;
  z-index: 9999;
  inset: 3px;
  pointer-events: none;
  border: 1px solid rgba(215,25,32,.22);
  border-radius: 8px;
  box-shadow:
    inset 0 0 12px rgba(215,25,32,.07),
    0 0 8px rgba(215,25,32,.08);
  overflow: hidden;
}

.led-edge {
  position: absolute;
  display: block;
  overflow: hidden;
  filter: drop-shadow(0 0 4px rgba(255,20,31,.95));
}

.led-edge::before {
  content: "";
  position: absolute;
  display: block;
}

.led-edge-top,
.led-edge-bottom {
  left: 8px;
  right: 8px;
  height: 4px;
}

.led-edge-top { top: 0; }
.led-edge-bottom { bottom: 0; }

.led-edge-top::before,
.led-edge-bottom::before {
  width: 175px;
  height: 100%;
  background:
    radial-gradient(circle at 12px 50%, #fff 0 1px, #ff1724 2px 3px, transparent 7px),
    radial-gradient(circle at 43px 50%, #fff 0 1px, #ff1724 2px 3px, transparent 7px),
    radial-gradient(circle at 74px 50%, #fff 0 1px, #ff1724 2px 3px, transparent 7px),
    radial-gradient(circle at 105px 50%, #fff 0 1px, #ff1724 2px 3px, transparent 7px),
    radial-gradient(circle at 136px 50%, #fff 0 1px, #ff1724 2px 3px, transparent 7px),
    linear-gradient(90deg, transparent, rgba(255,19,31,.88), transparent);
}

.led-edge-top::before {
  left: -190px;
  animation: led-run-top 5.2s linear infinite;
}

.led-edge-bottom::before {
  right: -190px;
  animation: led-run-bottom 5.2s linear infinite 2.6s;
}

.led-edge-left,
.led-edge-right {
  top: 8px;
  bottom: 8px;
  width: 4px;
}

.led-edge-left { left: 0; }
.led-edge-right { right: 0; }

.led-edge-left::before,
.led-edge-right::before {
  width: 100%;
  height: 175px;
  background:
    radial-gradient(circle at 50% 12px, #fff 0 1px, #ff1724 2px 3px, transparent 7px),
    radial-gradient(circle at 50% 43px, #fff 0 1px, #ff1724 2px 3px, transparent 7px),
    radial-gradient(circle at 50% 74px, #fff 0 1px, #ff1724 2px 3px, transparent 7px),
    radial-gradient(circle at 50% 105px, #fff 0 1px, #ff1724 2px 3px, transparent 7px),
    radial-gradient(circle at 50% 136px, #fff 0 1px, #ff1724 2px 3px, transparent 7px),
    linear-gradient(180deg, transparent, rgba(255,19,31,.88), transparent);
}

.led-edge-right::before {
  top: -190px;
  animation: led-run-right 5.2s linear infinite 1.3s;
}

.led-edge-left::before {
  bottom: -190px;
  animation: led-run-left 5.2s linear infinite 3.9s;
}

@keyframes led-run-top {
  to { transform: translateX(calc(100vw + 390px)); }
}

@keyframes led-run-right {
  to { transform: translateY(calc(100vh + 390px)); }
}

@keyframes led-run-bottom {
  to { transform: translateX(calc(-100vw - 390px)); }
}

@keyframes led-run-left {
  to { transform: translateY(calc(-100vh - 390px)); }
}

@media (max-width: 620px) {
  .brand-logo-sidebar { height: 84px; }
  .sidebar-brand { min-height: 132px; }
  .led-perimeter { inset: 2px; border-radius: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .led-edge::before { animation: none !important; }
  .led-perimeter { box-shadow: inset 0 0 10px rgba(215,25,32,.08); }
}


/* =========================================================
   REFINAMENTO V7 — TELA DE ACESSO EQUILIBRADA
   Evita sobreposição sobre a fotografia e melhora a hierarquia.
   ========================================================= */
.login-shell {
  width: min(1160px, 100%);
  min-height: 650px;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, .82fr);
  border-radius: 16px;
}

.login-brand-panel {
  min-height: 650px;
}

.login-brand-panel::after {
  inset: 18px;
  border-color: rgba(240,68,77,.34);
  clip-path: polygon(0 0, 100% 0, 100% 91%, 94% 100%, 0 100%);
}

.login-brand-photo {
  object-position: center 31%;
  filter: contrast(1.08) saturate(.96) brightness(.78);
  transform: scale(1.015);
}

.login-brand-overlay {
  background:
    linear-gradient(90deg, rgba(3,4,5,.10), rgba(3,4,5,.02) 54%, rgba(3,4,5,.50)),
    linear-gradient(0deg, rgba(3,4,5,.97) 0%, rgba(3,4,5,.75) 20%, rgba(3,4,5,.12) 53%, transparent 72%),
    linear-gradient(180deg, rgba(3,4,5,.20), transparent 28%);
}

.login-brand-content {
  left: 42px;
  right: 42px;
  bottom: 36px;
  max-width: 610px;
  padding: 24px 26px 22px;
  border: 1px solid rgba(225,228,232,.17);
  border-left: 4px solid var(--brand-red);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(9,10,12,.92), rgba(7,8,9,.76));
  box-shadow: 0 22px 60px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(10px);
}

.brand-kicker {
  padding: 0;
  border-left: 0;
  background: transparent;
  color: #f0f1f3;
  font-size: 11px;
  letter-spacing: .15em;
}

.login-brand-content h2 {
  max-width: 540px;
  margin: 15px 0 10px;
  font-size: clamp(31px, 3.35vw, 48px);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-transform: none;
}

.login-brand-content p {
  max-width: 555px;
  color: #c4c7cc;
  font-size: 15px;
  line-height: 1.55;
}

.login-brand-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}

.login-brand-features span {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(225,228,232,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: #d5d7da;
  font-size: 11px;
  font-weight: 750;
}

.login-card {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 46px 34px;
}

.login-card::after {
  width: 74px;
  height: 74px;
  border-width: 2px;
  opacity: .72;
}

.login-wordmark-frame {
  width: min(310px, 100%);
  margin-bottom: 27px;
  padding: 7px 12px;
  border: 1px solid rgba(225,228,232,.14);
  border-bottom: 1px solid rgba(240,68,77,.54);
  background: linear-gradient(180deg, #090a0c, #050607);
  box-shadow: 0 12px 32px rgba(0,0,0,.32), inset 0 0 28px rgba(215,25,32,.035);
}

.brand-logo-login {
  aspect-ratio: 3.15 / 1;
  object-fit: contain;
}

.login-copy {
  margin: 0 0 24px;
}

.login-copy .eyebrow {
  color: #c7c9cd;
  font-size: 11px;
}

.login-copy h1 {
  max-width: none;
  margin: 10px 0 11px;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -.04em;
  text-transform: none;
}

.login-copy p {
  max-width: 390px;
  color: #b1b5bc;
  font-size: 15px;
  line-height: 1.55;
}

.login-form {
  gap: 14px;
}

.login-form input {
  min-height: 54px;
}

.login-form .primary-button,
.login-form .secondary-button {
  min-height: 50px;
}

.security-strip {
  gap: 9px 14px;
  margin-top: 18px;
  padding-top: 17px;
  font-size: 11px;
}

@media (max-width: 980px) {
  .login-shell {
    max-width: 700px;
    grid-template-columns: 1fr;
  }
  .login-brand-panel {
    min-height: 390px;
  }
  .login-brand-content {
    left: 30px;
    right: 30px;
    bottom: 26px;
    max-width: 570px;
  }
  .login-card {
    min-height: auto;
    padding: 40px 38px 32px;
  }
}

@media (max-width: 620px) {
  .login-shell {
    border-radius: 11px;
  }
  .login-brand-panel {
    min-height: 245px;
  }
  .login-brand-photo {
    object-position: center 24%;
  }
  .login-brand-content {
    left: 17px;
    right: 17px;
    bottom: 17px;
    padding: 14px 16px;
  }
  .brand-kicker {
    font-size: 8px;
  }
  .login-brand-content h2 {
    margin: 8px 0 0;
    font-size: 24px;
  }
  .login-brand-content p,
  .login-brand-features {
    display: none;
  }
  .login-card {
    padding: 29px 22px 24px;
  }
  .login-wordmark-frame {
    width: 255px;
    margin-bottom: 23px;
  }
  .login-copy h1 {
    font-size: 35px;
  }
  .security-strip {
    justify-content: flex-start;
  }
}

/* =========================================================
   REVISÃO V8 — FORMULÁRIOS, MODAIS, SESSÃO E BOTÕES
   ========================================================= */
button, [role="button"], input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(255, 91, 99, .95);
  outline-offset: 3px;
}
button:disabled {
  cursor: not-allowed;
  opacity: .58;
  transform: none !important;
  box-shadow: none !important;
}
.primary-button > span,
.primary-button > strong,
.secondary-button > span {
  position: relative;
  z-index: 1;
}
.primary-button:active:not(:disabled),
.secondary-button:active:not(:disabled),
.icon-button:active:not(:disabled),
.nav-item:active:not(:disabled) {
  transform: translateY(1px) scale(.995);
}
.primary-button.is-busy {
  padding-right: 46px;
}
.primary-button.is-busy::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 17px;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: buttonSpinner .72s linear infinite;
}
@keyframes buttonSpinner { to { transform: rotate(360deg); } }

.workshop-selector,
.profile-button {
  border-radius: 7px;
  transition: background .18s ease, box-shadow .18s ease;
}
.workshop-selector { padding: 8px 10px; margin-left: -10px; }
.profile-button { padding: 6px 8px; margin-right: -8px; }
.workshop-selector:hover,
.profile-button:hover {
  background: rgba(215,25,32,.075);
  box-shadow: inset 0 0 0 1px rgba(240,68,77,.16);
}

.app-modal {
  width: min(620px, calc(100% - 28px));
  max-height: min(88vh, 790px);
  overflow: hidden;
  margin: auto;
  isolation: isolate;
}
.app-modal[open] {
  animation: modalEnter .18s ease-out both;
}
.app-modal::backdrop {
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(8px) saturate(.72);
  animation: backdropEnter .18s ease-out both;
}
@keyframes modalEnter {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes backdropEnter { from { opacity: 0; } to { opacity: 1; } }
.app-modal form {
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 790px);
  padding: 26px 27px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.large-modal { width: min(760px, calc(100% - 28px)); }
.modal-heading {
  position: relative;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 21px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(215,216,220,.10);
}
.modal-heading > div { min-width: 0; }
.modal-heading h3 {
  margin: 5px 0 0;
  font-size: clamp(22px, 3vw, 27px);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.modal-heading p {
  max-width: 500px;
  margin: 8px 0 0;
  color: #9ea3aa;
  font-size: 13px;
  line-height: 1.5;
}
.close-button {
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}
.close-button:hover { background: rgba(215,25,32,.10); }
.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 15px;
}
.form-grid label {
  min-width: 0;
  display: block;
}
.form-grid label > span {
  min-height: 23px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
  color: #d9dbdf;
  font-size: 14px;
}
.form-grid label > span b,
.required-note b { color: #ff555d; }
.form-grid input,
.form-grid select,
.form-grid textarea {
  min-height: 53px;
  border-radius: 7px;
  border-color: rgba(215,216,220,.16);
  background: #090b0d;
  font-size: 15px;
}
.form-grid textarea {
  min-height: 118px;
  line-height: 1.5;
}
.form-grid input::placeholder,
.form-grid textarea::placeholder { color: #646970; opacity: 1; }
.form-grid select:disabled {
  cursor: not-allowed;
  color: #72777e;
  background: #080a0c;
  opacity: .72;
}
.form-grid label.has-error > span { color: #ff8b91; }
.form-grid [aria-invalid="true"] {
  border-color: #ef3f48 !important;
  box-shadow: 0 0 0 3px rgba(239,63,72,.12) !important;
  background: rgba(63,8,12,.28) !important;
}
.field-error {
  min-height: 18px;
  display: block;
  margin: 6px 2px -4px;
  color: #ff8d93;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}
.field-error:empty { display: none; }
.form-alert {
  flex: 0 0 auto;
  margin: -2px 0 17px;
  padding: 11px 13px;
  border: 1px solid rgba(239,63,72,.36);
  border-left: 3px solid #ef3f48;
  border-radius: 6px;
  background: rgba(94,8,14,.20);
  color: #ffd1d4;
  font-size: 13px;
  line-height: 1.45;
}
.form-alert[hidden] { display: none; }
.required-note {
  margin: 13px 0 0;
  color: #797e85;
  font-size: 12px;
}
.modal-actions {
  position: sticky;
  z-index: 2;
  bottom: -24px;
  flex: 0 0 auto;
  margin: 22px -27px -24px;
  padding: 17px 27px 24px;
  border-top: 1px solid rgba(215,216,220,.10);
  background: linear-gradient(180deg, rgba(12,14,16,.92), #0c0e10 28%);
  backdrop-filter: blur(12px);
}
.modal-actions .secondary-button,
.modal-actions .primary-button {
  min-width: 138px;
}

.toggle-row:focus-within {
  box-shadow: 0 0 0 3px rgba(215,25,32,.10);
  border-radius: 7px;
}
.notification-item { cursor: pointer; }
.notification-item:focus-within,
.notification-item:hover { border-color: rgba(240,68,77,.26); }

@media (max-width: 620px) {
  .app-modal,
  .large-modal {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }
  .app-modal form {
    max-height: calc(100dvh - 16px);
    padding: 21px 17px 18px;
  }
  .modal-heading { margin-bottom: 18px; padding-bottom: 15px; }
  .modal-heading p { font-size: 12px; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .field-span-2 { grid-column: auto; }
  .modal-actions {
    bottom: -18px;
    margin: 20px -17px -18px;
    padding: 14px 17px 18px;
  }
  .modal-actions .secondary-button,
  .modal-actions .primary-button { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .app-modal[open], .app-modal::backdrop, .primary-button.is-busy::after {
    animation-duration: .001ms !important;
  }
}


/* Troca de oficinas — seletor, isolamento visual e transição */
.workshop-switcher { position: relative; min-width: 240px; }
.workshop-selector {
  min-width: 250px;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 10px;
  margin: 2px 0 0 -10px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-align: left;
}
.workshop-selector-copy { min-width: 0; display: grid; gap: 2px; }
.workshop-selector-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workshop-selector-copy small { color: #858792; font-size: 10px; font-weight: 720; letter-spacing: .055em; text-transform: uppercase; }
.workshop-chevron { flex: 0 0 auto; font-size: 18px; color: #b5b7be; transition: transform .2s ease, color .2s ease; }
.workshop-selector.menu-open { border-color: rgba(239,36,47,.32); background: rgba(215,25,32,.08); box-shadow: 0 0 0 3px rgba(215,25,32,.06); }
.workshop-selector.menu-open .workshop-chevron { transform: rotate(180deg); color: #ff3944; }
.workshop-selector:disabled { cursor: wait; opacity: .72; }

.workshop-menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 10px);
  left: -10px;
  width: min(390px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid rgba(255,255,255,.13);
  border-top-color: rgba(255,47,58,.58);
  border-radius: 16px;
  background: rgba(10,11,14,.97);
  box-shadow: 0 24px 70px rgba(0,0,0,.66), 0 0 30px rgba(215,25,32,.08);
  backdrop-filter: blur(22px);
  transform-origin: top left;
  animation: workshopMenuIn .18s ease-out both;
}
.workshop-menu[hidden] { display: none !important; }
@keyframes workshopMenuIn { from { opacity: 0; transform: translateY(-7px) scale(.98); } to { opacity: 1; transform: none; } }
.workshop-option {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #e9eaed;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.workshop-option + .workshop-option { margin-top: 4px; }
.workshop-option:hover, .workshop-option:focus-visible { outline: none; border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.05); transform: translateX(2px); }
.workshop-option.active { border-color: rgba(239,36,47,.28); background: linear-gradient(90deg, rgba(215,25,32,.16), rgba(215,25,32,.035)); }
.workshop-option-mark { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: #131419; color: #b6b8c0; font-size: 12px; font-weight: 850; }
.workshop-option.active .workshop-option-mark { border-color: rgba(255,58,69,.5); background: #b70f17; color: white; box-shadow: 0 0 18px rgba(215,25,32,.25); }
.workshop-option-copy { min-width: 0; display: grid; gap: 4px; }
.workshop-option-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.workshop-option-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #858792; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.workshop-option-status { display: inline-flex; align-items: center; gap: 6px; color: #8f929b; font-size: 10px; font-weight: 760; }
.workshop-option-status i { width: 7px; height: 7px; border-radius: 50%; background: #35d879; box-shadow: 0 0 10px rgba(53,216,121,.48); }

.workshop-transition {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease, visibility .24s ease;
}
.workshop-transition.active { visibility: visible; opacity: 1; pointer-events: auto; }
.workshop-transition-backdrop { position: absolute; inset: 0; background: rgba(2,3,5,.88); backdrop-filter: blur(16px); }
.workshop-transition-backdrop::before,
.workshop-transition-backdrop::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, #ef2430 20%, #ff6670 50%, #ef2430 80%, transparent); box-shadow: 0 0 18px rgba(239,36,48,.72); }
.workshop-transition-backdrop::before { top: 0; animation: workshopScanDown 1s ease-in-out infinite; }
.workshop-transition-backdrop::after { bottom: 0; animation: workshopScanUp 1s ease-in-out infinite; }
@keyframes workshopScanDown { 0% { transform: translateY(0); opacity: .3; } 50% { transform: translateY(48vh); opacity: 1; } 100% { transform: translateY(100vh); opacity: 0; } }
@keyframes workshopScanUp { 0% { transform: translateY(0); opacity: .3; } 50% { transform: translateY(-48vh); opacity: 1; } 100% { transform: translateY(-100vh); opacity: 0; } }
.workshop-transition-card {
  position: relative;
  width: min(430px, calc(100% - 36px));
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 30px 28px 26px;
  border: 1px solid rgba(255,255,255,.12);
  border-top-color: #ef2430;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(18,19,23,.98), rgba(7,8,11,.98));
  box-shadow: 0 30px 100px rgba(0,0,0,.72), 0 0 45px rgba(215,25,32,.12);
  opacity: 0;
  transform: translateY(14px) scale(.97);
  transition: opacity .28s ease, transform .28s ease;
}
.workshop-transition.active .workshop-transition-card { opacity: 1; transform: none; }
.workshop-transition.leaving .workshop-transition-card { opacity: 0; transform: translateY(-10px) scale(1.015); }
.workshop-transition-card img { width: min(240px, 74%); height: 68px; object-fit: contain; margin-bottom: 8px; filter: drop-shadow(0 0 14px rgba(215,25,32,.12)); }
.workshop-transition-card > span { color: #ff4651; font-size: 10px; font-weight: 900; letter-spacing: .2em; }
.workshop-transition-card > strong { color: #f7f7f8; font-size: clamp(23px, 5vw, 31px); text-align: center; }
.workshop-transition-card > small { color: #90929b; font-size: 12px; text-align: center; }
.workshop-transition-progress { width: 100%; height: 3px; margin-top: 15px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.07); }
.workshop-transition-progress i { display: block; width: 38%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, transparent, #ef2430, #ff8088, #ef2430, transparent); box-shadow: 0 0 15px rgba(239,36,48,.7); animation: workshopProgress 1s linear infinite; }
@keyframes workshopProgress { from { transform: translateX(-110%); } to { transform: translateX(310%); } }
body.workshop-switching .app-shell { transform: scale(.992); filter: brightness(.58) saturate(.7); transition: transform .3s ease, filter .3s ease; }
body:not(.workshop-switching) .app-shell { transition: transform .3s ease, filter .3s ease; }

@media (max-width: 720px) {
  .workshop-switcher { min-width: 0; flex: 1; }
  .workshop-selector { width: min(270px, calc(100vw - 150px)); min-width: 0; }
  .workshop-selector-copy small { display: none; }
  .workshop-menu { position: fixed; top: 70px; left: 12px; right: 12px; width: auto; transform-origin: top center; }
  .workshop-option { grid-template-columns: 36px minmax(0,1fr); }
  .workshop-option-status { grid-column: 2; margin-top: -4px; }
}

@media (prefers-reduced-motion: reduce) {
  .workshop-menu, .workshop-transition-backdrop::before, .workshop-transition-backdrop::after,
  .workshop-transition-progress i { animation: none !important; }
  .workshop-transition, .workshop-transition-card, body.workshop-switching .app-shell,
  body:not(.workshop-switching) .app-shell { transition-duration: .01ms !important; }
}


/* =========================================================
   PERFIS VISUAIS V10 — TEMA, LOGO E USUÁRIO POR OFICINA
   ========================================================= */
:root {
  --unit-accent: #d71920;
  --unit-accent-bright: #ff5962;
  --unit-accent-dark: #76070b;
  --unit-accent-rgb: 215,25,32;
  --unit-secondary: #d7d8dc;
  --unit-secondary-rgb: 215,216,220;
  --unit-bg: #060708;
  --unit-surface: #0d0f11;
  --unit-surface-2: #121417;
  --unit-surface-3: #181b1f;
  --unit-logo-filter: none;
  --brand-red: var(--unit-accent);
  --brand-red-bright: var(--unit-accent-bright);
  --brand-red-dark: var(--unit-accent-dark);
  --purple: var(--unit-accent);
  --purple-2: var(--unit-accent-dark);
  --purple-soft: rgba(var(--unit-accent-rgb), .14);
  --bg: var(--unit-bg);
  --surface: var(--unit-surface);
  --surface-2: var(--unit-surface-2);
  --surface-3: var(--unit-surface-3);
}

body {
  transition: background-color .42s ease, color .25s ease;
}
.brand-logo { transition: filter .42s ease, opacity .25s ease, transform .3s ease; }
.brand-lockup { position: relative; min-width: 0; }
.brand-lockup .brand-logo { width: 100%; }
.unit-logo-badge {
  position: absolute;
  z-index: 4;
  right: 8px;
  bottom: 6px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(var(--unit-secondary-rgb), .34);
  border-left: 3px solid var(--unit-accent);
  border-radius: 4px;
  background: rgba(4,6,8,.9);
  box-shadow: 0 8px 24px rgba(0,0,0,.42), 0 0 16px rgba(var(--unit-accent-rgb), .22);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.login-wordmark-frame .unit-logo-badge { right: 10px; bottom: 9px; }
.sidebar-brand .brand-lockup { width: 100%; }
.sidebar-brand .unit-logo-badge { right: 7px; bottom: 7px; }
.transition-brand-lockup { position: relative; width: min(250px, 76%); margin-bottom: 10px; }
.transition-brand-lockup img { width: 100%; margin: 0; }
.transition-brand-lockup .unit-logo-badge { right: 2px; bottom: 2px; }

html[data-workshop="principal"] body {
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    radial-gradient(circle at 100% 0%, rgba(var(--unit-accent-rgb),.14), transparent 31%),
    var(--unit-bg);
  background-size: 44px 44px, 44px 44px, auto, auto;
}
html[data-workshop="zona-sul"] {
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
}
html[data-workshop="zona-sul"] body {
  background:
    linear-gradient(180deg, rgba(var(--unit-accent-rgb),.035), transparent 28%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 32px),
    radial-gradient(circle at 86% 4%, rgba(var(--unit-accent-rgb),.19), transparent 34%),
    var(--unit-bg);
}
html[data-workshop="motos"] {
  --radius-sm: 5px;
  --radius: 7px;
  --radius-lg: 10px;
}
html[data-workshop="motos"] body {
  background:
    linear-gradient(135deg, rgba(var(--unit-accent-rgb),.035) 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(315deg, rgba(255,255,255,.016) 25%, transparent 25%) 0 0 / 22px 22px,
    radial-gradient(circle at 96% 0%, rgba(var(--unit-accent-rgb),.2), transparent 31%),
    var(--unit-bg);
}

.sidebar, .topbar, .metric-card, .panel, .vehicle-card, .order-column, .review-card,
.notification-item, .plan-card, .payment-method, .security-card, .app-modal, .toast {
  transition: border-color .35s ease, background .35s ease, box-shadow .35s ease, border-radius .35s ease;
}
.sidebar {
  background: linear-gradient(180deg, rgba(var(--unit-accent-rgb),.05), transparent 19%), var(--unit-bg);
}
.sidebar::after, .topbar::after, .page-heading::before, .eyebrow::before {
  background: linear-gradient(var(--unit-accent), transparent);
  box-shadow: 0 0 16px rgba(var(--unit-accent-rgb),.7);
}
.topbar::after, .eyebrow::before { background: linear-gradient(90deg, var(--unit-accent), transparent); }
.primary-button {
  border-color: color-mix(in srgb, var(--unit-accent-bright) 76%, white 24%);
  background: linear-gradient(135deg, var(--unit-accent-bright), var(--unit-accent-dark) 74%);
  box-shadow: 0 12px 34px rgba(var(--unit-accent-rgb),.27), inset 0 1px 0 rgba(255,255,255,.22);
}
.primary-button:hover { box-shadow: 0 15px 42px rgba(var(--unit-accent-rgb),.4); }
.secondary-button:hover, .icon-button:hover { border-color: rgba(var(--unit-accent-rgb),.7); background: rgba(var(--unit-accent-rgb),.11); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(var(--unit-accent-rgb),.34), rgba(var(--unit-accent-rgb),.07));
  box-shadow: inset 3px 0 0 var(--unit-accent);
}
.nav-item.active .nav-icon, .text-button:hover { color: var(--unit-accent-bright); }
.nav-badge, .notification-button b, .unread-dot, .toast i { background: var(--unit-accent); }
.plan-mini, .notification-item.unread, .security-note-panel { border-left-color: var(--unit-accent); }
.profile-avatar { border-bottom-color: var(--unit-accent); }
.metric-card { border-top-color: var(--metric-color, var(--unit-accent)); }
.workshop-selector.menu-open { border-color: rgba(var(--unit-accent-rgb),.42); background: rgba(var(--unit-accent-rgb),.09); box-shadow: 0 0 0 3px rgba(var(--unit-accent-rgb),.07); }
.workshop-selector.menu-open .workshop-chevron { color: var(--unit-accent-bright); }
.workshop-menu { border-top-color: var(--unit-accent); box-shadow: 0 24px 70px rgba(0,0,0,.66), 0 0 32px rgba(var(--unit-accent-rgb),.13); }
.workshop-option { --option-accent: var(--unit-accent); --option-accent-rgb: var(--unit-accent-rgb); }
.workshop-option.active { border-color: rgba(var(--option-accent-rgb),.32); background: linear-gradient(90deg, rgba(var(--option-accent-rgb),.2), rgba(var(--option-accent-rgb),.035)); }
.workshop-option.active .workshop-option-mark { border-color: var(--option-accent); background: var(--option-accent); box-shadow: 0 0 20px rgba(var(--option-accent-rgb),.3); }
.workshop-theme-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 1px; color: #8f929b; font-size: 9px; font-weight: 780; letter-spacing: .07em; text-transform: uppercase; }
.workshop-theme-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--option-accent); box-shadow: 0 0 10px rgba(var(--option-accent-rgb),.72); }

html[data-workshop="zona-sul"] .sidebar { background: linear-gradient(180deg, rgba(var(--unit-accent-rgb),.11), transparent 25%), rgba(5,11,17,.97); }
html[data-workshop="zona-sul"] .topbar { background: rgba(5,12,19,.9); }
html[data-workshop="zona-sul"] .nav-item { border-radius: 999px; clip-path: none; }
html[data-workshop="zona-sul"] .metric-card,
html[data-workshop="zona-sul"] .panel,
html[data-workshop="zona-sul"] .vehicle-card,
html[data-workshop="zona-sul"] .order-column,
html[data-workshop="zona-sul"] .review-card { background: linear-gradient(145deg, rgba(var(--unit-accent-rgb),.055), transparent 38%), var(--unit-surface); }
html[data-workshop="zona-sul"] .content-wrap::before { content: ""; position: fixed; z-index: -1; inset: 82px 0 0 var(--sidebar-width); pointer-events: none; background: linear-gradient(100deg, transparent 52%, rgba(var(--unit-accent-rgb),.03)); }

html[data-workshop="motos"] .sidebar { background: linear-gradient(180deg, rgba(var(--unit-accent-rgb),.12), transparent 20%), #0a0704; }
html[data-workshop="motos"] .topbar { background: rgba(12,8,4,.92); }
html[data-workshop="motos"] .nav-item { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
html[data-workshop="motos"] .metric-card,
html[data-workshop="motos"] .panel,
html[data-workshop="motos"] .vehicle-card,
html[data-workshop="motos"] .order-column,
html[data-workshop="motos"] .review-card {
  border-color: rgba(var(--unit-secondary-rgb),.14);
  background: linear-gradient(135deg, rgba(var(--unit-accent-rgb),.07), transparent 40%), var(--unit-surface);
}
html[data-workshop="motos"] .page-heading h2 { font-style: italic; letter-spacing: -.035em; }
html[data-workshop="motos"] .profile-avatar { transform: skewX(-7deg); }
html[data-workshop="motos"] .profile-avatar > * { transform: skewX(7deg); }

.login-view {
  background: radial-gradient(circle at 12% 15%, rgba(var(--unit-accent-rgb),.15), transparent 28%), linear-gradient(135deg, var(--unit-bg), var(--unit-surface-2) 56%, var(--unit-bg));
}
.login-shell { box-shadow: 0 38px 120px rgba(0,0,0,.68), 0 0 0 1px rgba(var(--unit-accent-rgb),.12); }
.login-shell::before { background: linear-gradient(90deg, var(--unit-accent), transparent); box-shadow: 0 0 18px rgba(var(--unit-accent-rgb),.7); }
.login-brand-panel::after { border-color: rgba(var(--unit-accent-rgb),.48); }
.login-brand-overlay { background: linear-gradient(90deg, rgba(4,5,6,.16), rgba(4,5,6,.04) 45%, rgba(4,5,6,.55)), linear-gradient(0deg, rgba(4,5,6,.98), transparent 62%); }
.login-card::after { border-right-color: var(--unit-accent); border-bottom-color: var(--unit-accent); }
.login-wordmark-frame { border-bottom-color: var(--unit-accent); box-shadow: inset 0 0 35px rgba(var(--unit-accent-rgb),.07); }

html[data-workshop="zona-sul"] .login-brand-photo { filter: hue-rotate(184deg) saturate(.82) contrast(1.08) brightness(.66); }
html[data-workshop="motos"] .login-brand-photo { filter: sepia(.18) saturate(1.2) hue-rotate(338deg) contrast(1.12) brightness(.63); }
html[data-workshop="zona-sul"] .login-shell { border-radius: 22px; }
html[data-workshop="motos"] .login-shell { border-radius: 6px; }

.workshop-transition {
  --transition-accent: var(--unit-accent);
  --transition-accent-bright: var(--unit-accent-bright);
  --transition-accent-rgb: var(--unit-accent-rgb);
}
.workshop-transition-backdrop::before,
.workshop-transition-backdrop::after { background: linear-gradient(90deg, transparent, var(--transition-accent) 20%, var(--transition-accent-bright) 50%, var(--transition-accent) 80%, transparent); box-shadow: 0 0 18px rgba(var(--transition-accent-rgb),.72); }
.workshop-transition-card { border-top-color: var(--transition-accent); box-shadow: 0 30px 100px rgba(0,0,0,.72), 0 0 48px rgba(var(--transition-accent-rgb),.17); }
.workshop-transition-card > span { color: var(--transition-accent-bright); }
.workshop-transition-progress i { background: linear-gradient(90deg, transparent, var(--transition-accent), var(--transition-accent-bright), var(--transition-accent), transparent); box-shadow: 0 0 15px rgba(var(--transition-accent-rgb),.7); }
.transition-theme-name { color: var(--transition-accent-bright) !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.led-edge { filter: hue-rotate(var(--unit-led-hue, 0deg)); }
html[data-workshop="zona-sul"] { --unit-led-hue: 184deg; }
html[data-workshop="motos"] { --unit-led-hue: 28deg; }

@media (max-width: 720px) {
  .unit-logo-badge { min-height: 21px; padding-inline: 7px; font-size: 8px; }
  .sidebar-brand .unit-logo-badge { right: 5px; bottom: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  body, .brand-logo, .sidebar, .topbar, .metric-card, .panel, .vehicle-card, .order-column, .review-card { transition-duration: .01ms !important; }
}


/* Acesso e detalhamento das ordens de serviço */
.order-card-accessible {
  position: relative;
  cursor: pointer;
  outline: none;
}
.order-card-accessible::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow .18s ease;
}
.order-card-accessible:hover::after,
.order-card-accessible:focus-visible::after {
  box-shadow: inset 0 0 0 1px rgba(var(--unit-accent-rgb), .62), 0 0 24px rgba(var(--unit-accent-rgb), .08);
}
.order-card-accessible:focus-visible {
  transform: translateY(-1px);
}
.order-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.order-access-button {
  min-width: 132px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--unit-accent-bright), var(--unit-accent) 52%, var(--unit-accent-dark));
  box-shadow: 0 10px 24px rgba(var(--unit-accent-rgb), .30), inset 0 1px 0 rgba(255,255,255,.24);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .035em;
  cursor: pointer;
  opacity: 1;
  transition: transform .17s ease, filter .17s ease, box-shadow .17s ease, border-color .17s ease;
}
.order-access-button:hover,
.order-access-button:focus-visible {
  border-color: rgba(255,255,255,.72);
  filter: brightness(1.12) saturate(1.08);
  box-shadow: 0 13px 30px rgba(var(--unit-accent-rgb), .46), 0 0 0 3px rgba(var(--unit-accent-rgb), .16), inset 0 1px 0 rgba(255,255,255,.30);
  transform: translateY(-1px);
  outline: none;
}
.order-access-button:active {
  transform: translateY(1px);
  filter: brightness(.96);
  box-shadow: 0 6px 16px rgba(var(--unit-accent-rgb), .28), inset 0 1px 4px rgba(0,0,0,.28);
}
.order-access-button span {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.17);
  font-size: 15px;
  line-height: 1;
}
@media (max-width: 720px) {
  .order-access-button { width: 100%; min-height: 44px; font-size: 12.5px; }
}

.order-card { padding: 0; overflow: hidden; }
.order-card-photo-wrap { position: relative; height: 132px; overflow: hidden; background: #08090b; }
.order-card-photo { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; transition: transform .28s ease, filter .28s ease; }
.order-card:hover .order-card-photo, .order-card:focus-visible .order-card-photo { transform: scale(1.045); filter: saturate(1.06) contrast(1.04); }
.order-card-photo-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.68)); pointer-events: none; }
.order-card-photo-wrap .order-card-top { position: absolute; z-index: 2; left: 11px; right: 11px; top: 10px; }
.order-card-content { padding: 13px; }
.order-card-content h4 { margin-top: 0; }
.order-overview-photo { flex: 0 0 132px; width: 132px; height: 78px; overflow: hidden; border: 1px solid rgba(var(--unit-accent-rgb), .28); border-radius: 8px; background: #08090b; box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.order-overview-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.order-details-modal { width: min(900px, calc(100% - 28px)); }
.order-details-heading { margin-bottom: 16px; }
.order-overview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 17px 18px;
  border: 1px solid rgba(var(--unit-accent-rgb), .24);
  border-left: 3px solid var(--unit-accent);
  border-radius: 10px;
  background: linear-gradient(100deg, rgba(var(--unit-accent-rgb), .11), rgba(255,255,255,.018));
}
.order-overview-main { display: flex; align-items: center; gap: 15px; min-width: 0; }
.order-details-number {
  flex: 0 0 auto;
  padding: 9px 11px;
  border: 1px solid rgba(var(--unit-accent-rgb), .34);
  border-radius: 7px;
  background: rgba(var(--unit-accent-rgb), .10);
  color: var(--unit-accent-bright);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .07em;
}
.order-overview-main div { min-width: 0; }
.order-overview-main strong { display: block; font-size: 20px; line-height: 1.15; }
.order-overview-main small { display: block; margin-top: 5px; color: #959ba3; font-size: 12px; }
.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 19px;
}
.order-detail-card {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  background: rgba(255,255,255,.018);
}
.order-detail-card-wide { grid-column: 1 / -1; }
.order-detail-label {
  display: block;
  margin-bottom: 7px;
  color: var(--unit-accent-bright);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .11em;
}
.order-detail-card strong { display: block; font-size: 15px; }
.order-detail-card p { margin: 6px 0 0; color: #8f959d; font-size: 12px; line-height: 1.45; }
.order-status-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  margin-top: 5px;
}
.order-timeline-step {
  position: relative;
  min-width: 0;
  padding-top: 17px;
  color: #6f757d;
  font-size: 9px;
  font-weight: 760;
  line-height: 1.25;
  text-align: center;
}
.order-timeline-step::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.order-timeline-step.done,
.order-timeline-step.current { color: #dfe3e8; }
.order-timeline-step.done::before,
.order-timeline-step.current::before {
  background: var(--unit-accent);
  box-shadow: 0 0 10px rgba(var(--unit-accent-rgb), .45);
}
.order-timeline-step.current::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translateX(-50%);
  border: 2px solid var(--unit-surface);
  border-radius: 50%;
  background: var(--unit-accent-bright);
  box-shadow: 0 0 12px rgba(var(--unit-accent-rgb), .72);
}
.order-edit-grid { padding-top: 2px; }
.order-edit-grid input[readonly] {
  color: #8f959d;
  background: rgba(255,255,255,.025);
  cursor: default;
}
.order-details-actions { flex-wrap: wrap; }
#printOrderButton { margin-right: auto; }

@media (max-width: 720px) {
  .order-details-modal { width: calc(100% - 16px); }
  .order-overview-banner { align-items: flex-start; flex-direction: column; }
  .order-overview-main strong { font-size: 17px; }
  .order-detail-grid { grid-template-columns: 1fr; }
  .order-detail-card-wide { grid-column: auto; }
  .order-status-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 11px; }
  .order-details-actions { flex-direction: column-reverse; }
  #printOrderButton { margin-right: 0; }
}

@media (max-width: 720px) {
  .vehicle-card-top { height: 190px; }
  .order-card-photo-wrap { height: 150px; }
  .order-overview-photo { width: 100%; max-width: 260px; height: 118px; flex-basis: auto; }
  .order-overview-main { align-items: flex-start; flex-wrap: wrap; }
}


/* =========================================================
   AJUSTE V13 — ENQUADRAMENTO DAS IMAGENS DOS VEÍCULOS
   Fotos mais baixas, veículo inteiro e recorte uniforme.
   ========================================================= */
.vehicle-card-top {
  height: 148px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 72%, rgba(var(--unit-accent-rgb), .12), transparent 38%),
    #080a0d;
}
.vehicle-photo {
  width: 100%;
  height: 100%;
  padding: 7px 10px;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.vehicle-card:hover .vehicle-photo {
  transform: scale(1.018);
  filter: saturate(1.04) contrast(1.02);
}
.vehicle-photo-shade {
  background: linear-gradient(180deg, transparent 52%, rgba(0,0,0,.62) 100%), linear-gradient(90deg, rgba(var(--unit-accent-rgb),.08), transparent 42%);
}

.order-card-photo-wrap {
  height: 108px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 76%, rgba(var(--unit-accent-rgb), .13), transparent 40%),
    #080a0d;
}
.order-card-photo {
  width: 100%;
  height: 100%;
  padding: 5px 8px;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.order-card:hover .order-card-photo,
.order-card:focus-visible .order-card-photo {
  transform: scale(1.016);
  filter: saturate(1.04) contrast(1.02);
}
.order-card-photo-shade {
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.46));
}
.order-overview-photo {
  flex: 0 0 160px;
  width: 160px;
  height: 96px;
  padding: 4px;
  background: radial-gradient(circle at 50% 75%, rgba(var(--unit-accent-rgb), .14), transparent 45%), #080a0d;
}
.order-overview-photo img {
  object-fit: contain;
  object-position: center;
}

@media (max-width: 720px) {
  .vehicle-card-top { height: 158px; }
  .order-card-photo-wrap { height: 120px; }
  .order-overview-photo { width: 100%; max-width: 280px; height: 132px; flex-basis: auto; }
}


/* =========================================================
   AJUSTE V14 — FOTOS COMPLETAS E PROPORCIONAIS
   Os arquivos já possuem margem segura; cards usam recorte uniforme.
   ========================================================= */
.vehicle-card-top {
  height: 168px;
  background: #08090b;
}
.vehicle-photo {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  object-position: center;
  transform: none;
}
.vehicle-card:hover .vehicle-photo { transform: scale(1.012); }
.order-card-photo-wrap {
  height: 126px;
  background: #08090b;
}
.order-card-photo {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  object-position: center;
  transform: none;
}
.order-card:hover .order-card-photo,
.order-card:focus-visible .order-card-photo { transform: scale(1.01); }
.order-card-photo-shade {
  background: linear-gradient(180deg, rgba(0,0,0,.02) 20%, rgba(0,0,0,.34) 100%);
}
.order-overview-photo {
  width: 190px;
  height: 112px;
  padding: 0;
  overflow: hidden;
}
.order-overview-photo img { object-fit: cover; object-position: center; }
@media (max-width: 720px) {
  .vehicle-card-top { height: 176px; }
  .order-card-photo-wrap { height: 132px; }
  .order-overview-photo { width: 100%; max-width: 310px; height: 142px; }
}


/* =========================================================
   MENU LATERAL REFINADO — V15
   Ícones vetoriais consistentes, navegação mais legível e
   destaque ativo mais natural, sem alterar as telas internas.
   ========================================================= */
.main-nav {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 0 1px;
}
.nav-item {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 54px;
  padding: 6px 12px 6px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 10px;
  clip-path: none !important;
  background: transparent;
  color: #a7abb4;
  box-shadow: none;
  transform: translateX(0);
  transition: color .18s ease, background .18s ease, border-color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}
.nav-item::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--unit-accent);
  box-shadow: 0 0 14px rgba(var(--unit-accent-rgb), .75);
  opacity: 0;
  transform: scaleY(.45);
  transition: opacity .18s ease, transform .18s ease;
}
.nav-item::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 92% 50%, rgba(var(--unit-accent-rgb), .12), transparent 35%),
    linear-gradient(90deg, rgba(255,255,255,.04), transparent 72%);
  opacity: 0;
  transition: opacity .18s ease;
}
.nav-item:hover {
  color: #f3f4f6;
  border-color: rgba(255,255,255,.075);
  background: rgba(255,255,255,.026);
  transform: translateX(3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
}
.nav-item:hover::after { opacity: 1; }
.nav-item.active {
  color: #fff;
  border-color: rgba(var(--unit-accent-rgb), .28);
  background:
    linear-gradient(90deg, rgba(var(--unit-accent-rgb), .18), rgba(var(--unit-accent-rgb), .055) 62%, transparent),
    rgba(255,255,255,.018);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 10px 30px rgba(0,0,0,.2),
    0 0 18px rgba(var(--unit-accent-rgb), .055);
  transform: translateX(0);
}
.nav-item.active::before { opacity: 1; transform: scaleY(1); }
.nav-item.active::after { opacity: 1; }
.nav-item > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 720;
  letter-spacing: -.012em;
  white-space: nowrap;
}
.nav-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(255,255,255,.048), rgba(255,255,255,.012));
  color: #aeb3bd;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: color .18s ease, border-color .18s ease, background .18s ease,
              box-shadow .18s ease, transform .18s ease;
}
.nav-icon svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item:hover .nav-icon {
  color: #e5e7eb;
  border-color: rgba(255,255,255,.15);
  transform: scale(1.03);
}
.nav-item.active .nav-icon {
  color: var(--unit-accent-bright);
  border-color: rgba(var(--unit-accent-rgb), .52);
  background: linear-gradient(145deg, rgba(var(--unit-accent-rgb), .24), rgba(var(--unit-accent-rgb), .08));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 18px rgba(var(--unit-accent-rgb), .16);
}
.nav-item[data-view="notifications"] { margin-top: 9px; }
.nav-item[data-view="notifications"]::marker { display: none; }
.nav-badge {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--unit-bg);
  border-radius: 999px;
  background: var(--unit-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(var(--unit-accent-rgb), .32);
}
.logout-button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: left;
  color: #969ba5;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.logout-button::before {
  content: "↪";
  display: inline-block;
  margin-right: 10px;
  font-size: 18px;
  transform: rotate(180deg);
  vertical-align: -1px;
}
.logout-button:hover {
  color: #fff;
  border-color: rgba(var(--unit-accent-rgb), .23);
  background: rgba(var(--unit-accent-rgb), .075);
}
html[data-workshop="zona-sul"] .nav-item,
html[data-workshop="motos"] .nav-item {
  clip-path: none !important;
}
html[data-workshop="zona-sul"] .nav-item { border-radius: 13px; }
html[data-workshop="motos"] .nav-item { border-radius: 8px; }
html[data-workshop="motos"] .nav-icon { border-radius: 7px; }
@media (max-height: 780px) and (min-width: 981px) {
  .sidebar { padding-top: 14px; padding-bottom: 12px; }
  .sidebar-brand { min-height: 118px; padding-bottom: 14px; }
  .brand-logo-sidebar { height: 72px; }
  .main-nav { gap: 4px; margin-top: 10px; }
  .nav-item { min-height: 48px; }
  .nav-icon { width: 31px; height: 31px; flex-basis: 31px; }
  .nav-icon svg { width: 17px; height: 17px; }
  .nav-item[data-view="notifications"] { margin-top: 5px; }
  .plan-mini { padding-top: 12px; padding-bottom: 12px; }
}
@media (max-width: 980px) {
  .main-nav { gap: 7px; }
  .nav-item { min-height: 54px; }
  .nav-item:hover { transform: none; }
}


/* =========================================================
   SESSÃO ESTÁVEL E BOTÃO DE SAÍDA — V17
   Corrige o deslocamento ao trocar de tela e remove o símbolo
   que era renderizado como emoji pelo navegador.
   ========================================================= */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.app-shell {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
.main-area,
.content-wrap,
.view,
.page-heading,
.panel,
.order-board,
.orders-toolbar,
.table-shell {
  min-width: 0;
  max-width: 100%;
}
.sidebar {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.sidebar-brand {
  flex: 0 0 auto;
}
.main-nav {
  flex: 0 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { width: 0; height: 0; }
.sidebar-footer {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  margin-top: auto;
  padding-top: 8px;
  background: linear-gradient(180deg, transparent, rgba(5,5,8,.94) 18%, rgba(5,5,8,.99));
}
/* Nada no menu deve andar lateralmente ao clicar ou passar o mouse. */
.nav-item,
.nav-item:hover,
.nav-item:active,
.nav-item.active {
  transform: none !important;
}
.logout-button {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 8px 11px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  color: #d3d6dc;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 8px 24px rgba(0,0,0,.16);
  transform: none !important;
  transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.logout-button::before,
.logout-button::after {
  content: none !important;
  display: none !important;
}
.logout-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--unit-accent-rgb), .38);
  border-radius: 10px;
  background: rgba(var(--unit-accent-rgb), .105);
  color: var(--unit-accent-bright);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 15px rgba(var(--unit-accent-rgb), .08);
}
.logout-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logout-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.logout-copy strong,
.logout-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logout-copy strong {
  color: #f1f3f5;
  font-size: 13.5px;
  font-weight: 760;
  letter-spacing: -.01em;
}
.logout-copy small {
  color: #818791;
  font-size: 10.5px;
  font-weight: 560;
}
.logout-button:hover,
.logout-button:focus-visible {
  color: #fff;
  border-color: rgba(var(--unit-accent-rgb), .42);
  background: linear-gradient(145deg, rgba(var(--unit-accent-rgb), .13), rgba(var(--unit-accent-rgb), .035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 28px rgba(0,0,0,.2), 0 0 18px rgba(var(--unit-accent-rgb), .08);
  outline: none;
}
.logout-button:hover .logout-icon,
.logout-button:focus-visible .logout-icon {
  border-color: rgba(var(--unit-accent-rgb), .65);
  background: rgba(var(--unit-accent-rgb), .18);
}
.logout-button:active {
  transform: none !important;
  background: rgba(var(--unit-accent-rgb), .16);
}
.logout-button:disabled {
  cursor: wait;
  opacity: .62;
}
@media (max-height: 760px) and (min-width: 981px) {
  .sidebar-footer { gap: 8px; padding-top: 5px; }
  .plan-mini { padding: 10px 12px; }
  .logout-button { min-height: 50px; padding-top: 6px; padding-bottom: 6px; }
  .logout-icon { width: 34px; height: 34px; }
}
@media (max-width: 980px) {
  .sidebar { height: 100dvh; }
  .logout-button { min-height: 56px; }
}

/* =========================================================
   GW Solutions Cloud Realtime v1 — chat, presença e nuvem
   ========================================================= */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.online-users-chip {
  height: 35px;
  border: 1px solid rgba(75, 213, 145, .28);
  border-radius: 999px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9de8bf;
  background: rgba(34, 131, 83, .09);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.online-users-chip .status-dot { background: #43d990; box-shadow: 0 0 12px rgba(67, 217, 144, .65); }
.online-users-chip.is-offline { color: #938d99; border-color: var(--border); background: rgba(255,255,255,.02); }
.online-users-chip.is-offline .status-dot { background: #77727d; box-shadow: none; }
.sync-chip.is-syncing { color: #ffd28c; border-color: rgba(255, 178, 65, .35); }
.sync-chip.is-syncing .status-dot { background: #ffb241; animation: gwCloudPulse .85s ease-in-out infinite alternate; }
.sync-chip.is-offline { color: #ff9c9c; border-color: rgba(255, 84, 84, .35); }
.sync-chip.is-offline .status-dot { background: #ff5656; box-shadow: 0 0 12px rgba(255, 86, 86, .5); }
@keyframes gwCloudPulse { to { transform: scale(1.45); opacity: .55; } }

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
}
.chat-panel {
  min-height: 610px;
  display: grid;
  grid-template-rows: auto minmax(340px, 1fr) auto auto;
  overflow: hidden;
  padding: 0;
}
.chat-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 19px 21px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(var(--unit-accent-rgb), .08), transparent);
}
.chat-panel-heading h3 { margin: 4px 0 0; }
.chat-messages {
  min-height: 360px;
  max-height: 58vh;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at 20% 15%, rgba(var(--unit-accent-rgb), .055), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.012), rgba(0,0,0,.04));
}
.chat-empty {
  margin: auto;
  text-align: center;
  display: grid;
  gap: 6px;
  color: var(--muted);
}
.chat-empty strong { color: var(--text); font-size: 17px; }
.chat-message {
  width: min(78%, 620px);
  border: 1px solid var(--border);
  border-radius: 17px 17px 17px 5px;
  padding: 12px 14px;
  background: rgba(255,255,255,.035);
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  animation: chatMessageIn .2s ease both;
}
.chat-message.mine {
  align-self: flex-end;
  border-radius: 17px 17px 5px 17px;
  border-color: rgba(var(--unit-accent-rgb), .38);
  background: linear-gradient(145deg, rgba(var(--unit-accent-rgb), .20), rgba(var(--unit-accent-rgb), .075));
}
.chat-message.other { align-self: flex-start; }
.chat-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.chat-message-meta strong { color: var(--unit-accent-bright); font-size: 12px; }
.chat-message-meta time { color: var(--muted); font-size: 10px; white-space: nowrap; }
.chat-message p { margin: 0; line-height: 1.52; color: #e9e7eb; overflow-wrap: anywhere; }
@keyframes chatMessageIn { from { opacity: 0; transform: translateY(6px); } }
.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  padding: 15px 17px 8px;
  border-top: 1px solid var(--border);
  background: rgba(5, 6, 8, .82);
}
.chat-input-wrap { display: block; }
.chat-input-wrap textarea {
  width: 100%;
  min-height: 50px;
  max-height: 150px;
  resize: vertical;
  border-radius: 13px;
  margin: 0;
}
.chat-compose .primary-button { min-width: 112px; align-self: stretch; }
.chat-helper { padding: 0 18px 14px; color: var(--muted); }

.presence-panel { padding: 21px; }
.presence-panel > h3 { margin: 5px 0 7px; }
.presence-panel > p { margin: 0 0 18px; color: var(--muted); line-height: 1.5; }
.presence-list { display: grid; gap: 9px; }
.presence-user {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}
.presence-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(145deg, var(--unit-accent), var(--unit-accent-dark));
  box-shadow: 0 0 18px rgba(var(--unit-accent-rgb), .15);
}
.presence-user div { min-width: 0; display: grid; gap: 3px; }
.presence-user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.presence-user small { color: var(--muted); }
.presence-user > i { width: 9px; height: 9px; border-radius: 50%; background: #65616a; }
.presence-user.online > i { background: #43d990; box-shadow: 0 0 10px rgba(67,217,144,.65); }
.presence-user.offline { opacity: .64; }
.presence-empty { padding: 15px; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); text-align: center; }
.presence-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.presence-note .status-dot { margin-top: 4px; flex: 0 0 auto; }

.login-card .form-status:not(:empty) { color: #ffaaaa; }
.workshop-selector[disabled], body.gw-single-workshop .workshop-selector { cursor: default; }

@media (max-width: 1050px) {
  .chat-layout { grid-template-columns: 1fr; }
  .presence-panel { order: -1; }
  .presence-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .online-users-chip { display: none; }
  .chat-panel { min-height: 540px; }
  .chat-messages { padding: 14px; max-height: 55vh; }
  .chat-message { width: 92%; }
  .chat-compose { grid-template-columns: 1fr; }
  .chat-compose .primary-button { min-height: 46px; }
  .presence-list { grid-template-columns: 1fr; }
}
