:root {
  color-scheme: light;
  --ink: #182b28;
  --muted: #788580;
  --subtle: #a2aaa6;
  --line: #e9eeeb;
  --paper: #fff;
  --canvas: #f6f8f5;
  --green: #176b50;
  --green-deep: #123d35;
  --green-soft: #eaf5ef;
  --amber: #ad761d;
  --amber-soft: #fbf3e2;
  --blue: #456eaa;
  --blue-soft: #eef3fa;
  --shadow: 0 12px 38px rgba(27, 57, 45, .08);
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; }
.app-shell { min-height: 100vh; }
.sidebar { width: 252px; position: fixed; inset: 0 auto 0 0; z-index: 10; display: flex; flex-direction: column; padding: 29px 18px 20px; background: #fff; border-right: 1px solid #edf0ed; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px; text-decoration: none; color: var(--green-deep); }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: var(--green-deep); color: #fff; font: 800 22px "Manrope", sans-serif; }
.brand strong { display: block; font: 800 18px "Manrope", sans-serif; letter-spacing: -.7px; }
.brand small { display: block; margin-top: 1px; font-size: 8px; font-weight: 700; letter-spacing: 1.7px; color: #8a9791; }
.workspace-label { margin: 51px 10px 11px; color: #a5ada9; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.nav-list { display: grid; gap: 5px; }
.nav-item { min-height: 43px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 7px; color: #697872; background: transparent; text-align: left; font-size: 13px; font-weight: 500; transition: background .18s, color .18s; }
.nav-item:hover { color: var(--green); background: #f7faf7; }
.nav-item.active { color: #17684e; background: #edf6f0; font-weight: 700; }
.nav-icon { width: 17px; color: #82908a; font-size: 17px; text-align: center; }
.nav-item.active .nav-icon { color: var(--green); }
.service-nav { display: none; margin-top: 8px; }
.service-role .service-nav { display: flex; }
.service-role .nav-item:not(.service-nav) { display: none; }
.sidebar-bottom { margin-top: auto; }
.support-card { padding: 16px 14px; border: 1px solid #ecf0ec; border-radius: 9px; background: #fbfcfb; }
.support-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 700; }
.support-card strong { display: block; margin: 11px 0 5px; font-size: 12px; }
.support-card p { margin: 0 0 11px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.support-card a { color: var(--green); font-size: 11px; font-weight: 700; text-decoration: none; }
.sidebar-foot { display: flex; align-items: center; gap: 7px; margin: 18px 9px 0; color: #89958f; font-size: 10px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #58a979; box-shadow: 0 0 0 3px #e7f4eb; }
.main-area { min-height: 100vh; margin-left: 252px; padding: 0 48px; max-width: 1600px; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e9eeeb; }
.breadcrumb { color: #89938e; font-size: 11px; }
.breadcrumb span { padding: 0 8px; color: #b6bfba; }
.breadcrumb strong { color: #3e5049; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.role-select-wrap { display: flex; align-items: center; gap: 8px; color: #86928c; font-size: 10px; }
.role-select-wrap select { padding: 7px 26px 7px 10px; border: 1px solid #e3e9e4; border-radius: 6px; color: #34483f; background: #fff; font-size: 11px; }
.icon-button { width: 32px; height: 32px; border: 1px solid #e7ece8; border-radius: 7px; color: #66766d; background: #fff; font-size: 16px; }
.install-ready { border-color: #8dc5a0; color: var(--green); background: var(--green-soft); }
.profile-button { display: flex; align-items: center; gap: 9px; padding: 0; border: 0; background: transparent; text-align: left; }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #e7efe8; color: #426d53; font-size: 10px; font-weight: 700; }
.profile-copy strong, .profile-copy small { display: block; }
.profile-copy strong { color: #33463c; font-size: 10px; font-weight: 700; }
.profile-copy small { margin-top: 3px; color: #94a099; font-size: 9px; }
.chevron { color: #8a968f; font-size: 15px; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 18px; }
.demo-banner { display: flex; align-items: center; gap: 9px; min-height: 36px; margin: 19px 0 28px; padding: 0 12px; border: 1px solid #eee4cb; border-radius: 6px; background: #fbf8ed; color: #81672d; font-size: 10px; font-weight: 700; }
.demo-banner > span:first-child { font-size: 13px; }
.banner-detail { color: #9a8961; font-weight: 400; }
.page-view { display: none; padding-bottom: 20px; }
.page-view.active { display: block; animation: fade-in .24s ease both; }
@keyframes fade-in { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.eyebrow { color: #8d9992; font-size: 9px; font-weight: 700; letter-spacing: 1.15px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 7px 0 6px; color: #193a30; font: 700 25px/1.3 "Manrope", sans-serif; letter-spacing: -.75px; }
.wave { color: #d4a34d; font-size: 18px; vertical-align: 3px; }
.muted { color: var(--muted); }
.welcome-row .muted { margin: 0; font-size: 12px; }
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 6px; font-size: 11px; font-weight: 700; text-decoration: none; transition: filter .15s, transform .15s; }
.button:hover { filter: brightness(.97); }
.button:active { transform: translateY(1px); }
.button.primary { color: #fff; border-color: var(--green-deep); background: var(--green-deep); }
.button.secondary { color: #52645a; border-color: #e2e8e3; background: #fff; }
.button.small { min-height: 31px; padding: 0 10px; font-size: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 33px; }
.stat-card { min-height: 114px; padding: 16px 17px; border: 1px solid #edf0ed; border-radius: 8px; background: #fff; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: #697971; font-size: 10px; font-weight: 500; }
.stat-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; font-size: 13px; font-weight: 700; }
.stat-icon.green { color: #43825e; background: #ecf5ee; }
.stat-icon.amber { color: #ad801f; background: #faf3e3; }
.stat-icon.blue { color: #5278b0; background: #edf2fa; }
.stat-card > strong { display: block; margin-top: 3px; color: #1d3d32; font: 700 24px "Manrope", sans-serif; letter-spacing: -.7px; }
.stat-card > small { display: block; margin-top: 2px; color: #99a39d; font-size: 9px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 13px; }
.section-heading h2, .table-toolbar h2 { margin: 0 0 4px; color: #29473a; font: 700 14px "Manrope", sans-serif; letter-spacing: -.2px; }
.section-heading .muted { margin: 0; font-size: 10px; }
.text-button { padding: 5px 0; border: 0; color: #337354; background: transparent; font-size: 10px; font-weight: 700; }
.text-button span { padding-left: 3px; }
.vehicle-list { display: grid; gap: 10px; }
.vehicle-card { min-height: 83px; display: grid; grid-template-columns: minmax(220px, 1.55fr) minmax(135px, .8fr) minmax(125px, .8fr) auto; align-items: center; gap: 16px; padding: 15px 17px; border: 1px solid #e9eeeb; border-radius: 8px; background: #fff; }
.vehicle-main { min-width: 0; display: flex; align-items: center; gap: 12px; }
.vehicle-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: #eef5f0; color: #538261; font-size: 17px; }
.vehicle-ident { min-width: 0; }
.vehicle-title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #29443a; font-size: 12px; font-weight: 700; }
.vehicle-type { padding: 3px 6px; border-radius: 4px; color: #74827a; background: #f3f5f3; font-size: 8px; font-weight: 500; }
.vehicle-subtitle { overflow: hidden; margin-top: 6px; color: #919c96; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-subtitle span { padding: 0 3px; color: #c0c8c2; }
.vehicle-due small, .vehicle-due strong { display: block; }
.vehicle-due small { margin-bottom: 6px; color: #a3ada7; font-size: 8px; letter-spacing: .6px; }
.vehicle-due strong { color: #495c52; font-size: 10px; font-weight: 600; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 4px; font-size: 8px; font-weight: 600; white-space: nowrap; }
.status-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-due { color: #9a742a; background: #fbf5e8; }
.status-overdue { color: #a7463f; background: #fbefed; }
.status-complete { color: #3f8059; background: #edf6ef; }
.status-valid { color: #3f8059; background: #edf6ef; }
.status-booked { color: #4c6eaa; background: #eff3fa; }
.vehicle-actions { display: flex; align-items: center; gap: 7px; }
.more-button { width: 27px; height: 29px; border: 1px solid #edf0ed; border-radius: 5px; color: #87938b; background: #fff; font-size: 17px; letter-spacing: 1px; }
.history-heading { margin-top: 31px; }
.activity-card, .table-card { border: 1px solid #e9eeeb; border-radius: 8px; background: #fff; }
.activity-row { min-height: 61px; display: flex; align-items: center; gap: 11px; padding: 10px 16px; border-bottom: 1px solid #f0f2f0; }
.activity-row:last-child { border-bottom: 0; }
.activity-dot { width: 28px; height: 28px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #5979a9; background: #eef2f9; font-size: 10px; }
.activity-dot.activity-green { color: #46815b; background: #edf5ef; }
.activity-copy { flex: 1; }
.activity-copy strong, .activity-copy small { display: block; }
.activity-copy strong { color: #4b5e54; font-size: 10px; font-weight: 600; }
.activity-copy small { margin-top: 4px; color: #9ba59f; font-size: 9px; }
.activity-amount { color: #486255; font-size: 10px; }
.table-card { overflow: hidden; }
.table-toolbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 12px 17px; border-bottom: 1px solid #edf0ed; }
.table-toolbar .muted { margin: 4px 0 0; font-size: 10px; }
.soft-pill { padding: 6px 9px; border: 1px solid #e9eeeb; border-radius: 20px; color: #738078; background: #fafbfa; font-size: 9px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 11px 16px; color: #98a39c; background: #fbfcfb; font-size: 8px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 16px; border-top: 1px solid #f0f2f0; color: #52645a; font-size: 10px; white-space: nowrap; }
td strong, td small { display: block; }
td strong { color: #384c41; font-size: 10px; }
td small { margin-top: 4px; color: #9aa49e; font-size: 9px; }
.table-empty { padding: 34px 16px; color: #95a098; text-align: center; }
.payment-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 650px; }
.date-pill { font-size: 10px; }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 34px 20px; color: #91a097; text-align: center; }
.empty-state > span { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 50%; color: #5e8a6c; background: #eef5ef; font-size: 16px; }
.empty-state > strong { color: #4d6154; font-size: 11px; }
.empty-state p { margin: 5px 0 12px; font-size: 10px; }
.hidden { display: none !important; }
.signed-out .app-shell, body:not(.signed-out) .auth-screen { display: none; }
.auth-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px 16px; }
.auth-card { width: min(420px, 100%); padding: 30px 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
.auth-brand { margin-bottom: 26px; }
.auth-card h1 { margin: 6px 0 8px; color: #1d4034; font: 700 22px "Manrope", sans-serif; letter-spacing: -.4px; }
.auth-card .muted { margin: 0 0 20px; font-size: 12px; line-height: 1.6; }
.auth-card .field input { font-size: 13px; }
.auth-submit { width: 100%; margin-top: 16px; }
.auth-foot { margin: 0; color: var(--muted); font-size: 11px; }
.vehicle-mode .appointment-field, .reschedule-mode .vehicle-field { display: none; }
.button[disabled] { opacity: .6; pointer-events: none; }
.page-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; padding: 16px 0 21px; border-top: 1px solid #e9eeeb; color: #98a29d; font-size: 9px; }
.page-footer b { padding: 0 4px; color: #c0c8c3; font-weight: 400; }

.modal { position: fixed; width: min(590px, calc(100% - 30px)); max-width: none; max-height: min(90vh, 900px); padding: 26px; overflow-y: auto; border: 1px solid #e5ebe6; border-radius: 12px; color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(17, 35, 29, .42); backdrop-filter: blur(2px); }
.modal-close-form { position: absolute; inset: 12px 12px auto auto; }
.modal-close { width: 29px; height: 29px; border: 0; border-radius: 50%; color: #718078; background: #f3f6f3; font-size: 20px; line-height: 1; }
.modal-head { display: flex; align-items: flex-start; gap: 13px; margin: 0 24px 22px 0; }
.modal-symbol { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: var(--green-soft); font-size: 17px; }
.service-symbol { color: #5278ad; background: #eff3fa; }
.modal-head h2, .modal h2 { margin: 5px 0; color: #1d4034; font: 700 19px "Manrope", sans-serif; letter-spacing: -.4px; }
.modal-head .muted, .modal > .muted { margin: 0; font-size: 10px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field { display: flex; flex-direction: column; gap: 7px; color: #52645a; font-size: 10px; font-weight: 600; }
.field input, .field select { width: 100%; min-height: 37px; padding: 8px 10px; border: 1px solid #e2e9e3; border-radius: 6px; outline: 0; color: #43574c; background: #fff; font-size: 10px; font-weight: 400; }
.field input:focus, .field select:focus { border-color: #85b79a; box-shadow: 0 0 0 3px #eaf5ee; }
.field input::placeholder { color: #b3bcb6; }
.field input[type=file] { min-height: unset; padding: 8px; }
.field small { color: #9aa59e; font-size: 9px; font-weight: 400; }
.span-2 { grid-column: span 2; }
.required { color: #bc6255; }
.optional { margin-left: auto; color: #a2ada5; font-size: 9px; font-weight: 400; }
.notice-box { display: flex; gap: 9px; margin-top: 17px; padding: 11px; border: 1px solid #eee9d9; border-radius: 6px; color: #987c40; background: #fcfaf3; }
.notice-box > span { flex: 0 0 auto; font-size: 13px; }
.notice-box p { margin: 0; color: #837957; font-size: 9px; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 21px; }
.compact-modal { width: min(440px, calc(100% - 30px)); }
.payment-mark { width: 43px; height: 43px; display: grid; place-items: center; margin: 4px auto 14px; border-radius: 50%; color: #44805b; background: #edf5ef; font: 700 19px "Manrope", sans-serif; }
.center { text-align: center; }
.compact-modal h2 { font-size: 18px; }
.payment-summary { display: flex; justify-content: space-between; margin-top: 18px; padding: 14px 0; border-top: 1px solid #edf0ed; border-bottom: 1px solid #edf0ed; color: #75817a; font-size: 10px; }
.payment-summary strong { color: #30493b; }
.form-section { margin: 18px 0 22px; padding-top: 16px; border-top: 1px solid #edf0ed; }
.form-section h3 { margin: 0 0 13px; color: #385346; font: 700 12px "Manrope", sans-serif; }
.inspection-modal { width: min(760px, calc(100% - 30px)); }
.checks-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 40px; padding: 5px 8px; border: 1px solid #edf0ed; border-radius: 6px; color: #5e6d64; font-size: 9px; }
.check-row select { max-width: 155px; min-height: 30px; padding: 5px 8px; border: 1px solid #e3e9e4; border-radius: 4px; color: #53645a; background: white; font-size: 9px; }
.measurements-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-note { margin: -5px 0 12px; font-size: 9px; line-height: 1.5; }
.photo-grid { gap: 12px; }
.certificate-modal { width: min(710px, calc(100% - 30px)); }
.certificate { padding: 8px 6px 16px; }
.certificate-brand { display: flex; align-items: center; gap: 11px; padding: 0 0 17px; border-bottom: 1px solid #e5ebe6; }
.certificate-brand .brand-mark { width: 36px; height: 36px; font-size: 19px; }
.certificate-brand strong, .certificate-brand small { display: block; }
.certificate-brand strong { color: #1c4436; font: 700 14px "Manrope", sans-serif; }
.certificate-brand small { margin-top: 3px; color: #85938a; font-size: 9px; }
.certificate-stamp { margin-left: auto; padding: 6px 9px; border: 1px solid #d6a75c; border-radius: 4px; color: #a2742c; font-size: 8px; font-weight: 700; line-height: 1.6; letter-spacing: .7px; text-align: center; }
.certificate-title { padding: 22px 0 12px; text-align: center; }
.certificate-title h1 { font-size: 22px; }
.certificate-title p { margin: 0; color: #77847b; font-size: 10px; }
.certificate-notice { margin: 8px 0 15px; padding: 9px; color: #956d2f; background: #fcf7e9; font-size: 9px; font-weight: 700; text-align: center; letter-spacing: .6px; }
.certificate-fields { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #e8ece8; border-left: 1px solid #e8ece8; }
.certificate-fields > div { min-height: 51px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 7px 9px; border-right: 1px solid #e8ece8; border-bottom: 1px solid #e8ece8; }
.certificate-fields small { color: #849188; font-size: 8px; text-transform: capitalize; }
.certificate-fields strong { color: #3a5043; font-size: 9px; }
.certificate-checks { margin-top: 16px; }
.certificate-checks h3 { margin-bottom: 8px; color: #405a49; font: 700 11px "Manrope", sans-serif; }
.certificate-checks > div { display: flex; justify-content: space-between; padding: 7px 9px; border-bottom: 1px solid #eef0ed; color: #69776e; font-size: 9px; }
.certificate-checks strong { color: #47805a; font-size: 9px; }
.certificate-footer { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 9px; border-top: 1px solid #e8ece8; color: #8e9992; font-size: 8px; }
.certificate-disclaimer { margin: 11px 0 0; color: #a37d3d; font-size: 9px; text-align: center; }
.toast { position: fixed; right: 24px; bottom: 22px; z-index: 30; max-width: min(390px, calc(100vw - 30px)); padding: 12px 16px; transform: translateY(12px); opacity: 0; border: 1px solid #dfe9e2; border-radius: 7px; color: #385543; background: #fff; box-shadow: var(--shadow); font-size: 11px; pointer-events: none; transition: .22s ease; }
.toast.visible { transform: translateY(0); opacity: 1; }

@media (min-width: 1450px) { .main-area { padding-right: 72px; padding-left: 72px; } }
@media (max-width: 1080px) {
  .main-area { padding: 0 28px; }
  .vehicle-card { grid-template-columns: minmax(190px, 1.5fr) minmax(120px, .8fr) auto; }
  .vehicle-status { display: none; }
  .vehicle-actions { justify-self: end; }
}
@media (max-width: 760px) {
  .sidebar { width: 252px; transform: translateX(-100%); box-shadow: none; transition: transform .2s, box-shadow .2s; }
  .sidebar.mobile-open { transform: translateX(0); box-shadow: 12px 0 35px rgba(22, 48, 36, .13); }
  .main-area { margin-left: 0; padding: 0 20px; }
  .mobile-menu { display: inline-grid; place-items: center; }
  .topbar { gap: 10px; }
  .breadcrumb { margin-right: auto; }
  .profile-copy, .chevron { display: none; }
  .topbar-actions { gap: 9px; }
  .role-select-wrap > span { display: none; }
  .demo-banner { flex-wrap: wrap; padding: 8px 11px; }
  .banner-detail { flex-basis: calc(100% - 26px); margin-left: 22px; }
  .vehicle-card { grid-template-columns: minmax(0, 1fr) auto; gap: 11px; padding: 13px; }
  .vehicle-due { grid-column: 1; padding-left: 50px; }
  .vehicle-actions { grid-column: 2; grid-row: 1 / span 2; }
  .stats-grid { gap: 9px; }
  .stat-card { min-height: 103px; padding: 12px; }
}
@media (max-width: 520px) {
  .main-area { padding: 0 14px; }
  .topbar { height: 62px; }
  .breadcrumb { font-size: 10px; }
  .role-select-wrap select { max-width: 115px; padding-right: 18px; }
  .demo-banner { margin: 13px 0 21px; }
  .welcome-row { align-items: flex-start; }
  .welcome-row .button { min-height: 34px; flex: 0 0 auto; padding: 0 10px; }
  .welcome-row .button span { display: none; }
  h1 { font-size: 21px; }
  .welcome-row .muted { max-width: 260px; font-size: 10px; line-height: 1.5; }
  .stats-grid { grid-template-columns: 1fr; gap: 8px; margin-bottom: 27px; }
  .stat-card { min-height: 84px; display: grid; grid-template-columns: 1fr auto; align-content: center; }
  .stat-top { grid-column: 1; }
  .stat-icon { grid-column: 2; grid-row: 1 / span 2; }
  .stat-card > strong { grid-column: 1; grid-row: 2; font-size: 20px; }
  .stat-card > small { grid-column: 1; }
  .payment-stats { grid-template-columns: 1fr; }
  .vehicle-card { grid-template-columns: minmax(0, 1fr); }
  .vehicle-due { padding-left: 50px; }
  .vehicle-actions { grid-column: 1; grid-row: auto; justify-self: start; padding-left: 50px; }
  .section-heading { align-items: flex-start; }
  .section-heading .text-button { padding-top: 2px; white-space: nowrap; }
  .page-footer { flex-direction: column; }
  .form-grid, .checks-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .measurements-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal { padding: 21px 17px; }
  .modal-actions .button { flex: 1; padding: 0 9px; font-size: 10px; }
  .certificate-fields { grid-template-columns: repeat(2, 1fr); }
  .certificate-brand strong { font-size: 11px; }
  .certificate-brand small { font-size: 8px; }
  .certificate-stamp { font-size: 7px; }
  .certificate-footer { gap: 12px; font-size: 7px; }
}
@media print {
  body * { visibility: hidden !important; }
  #certificate-dialog, #certificate-dialog * { visibility: visible !important; }
  #certificate-dialog { position: absolute; inset: 0; width: 100%; max-width: none; max-height: none; overflow: visible; padding: 0; border: 0; box-shadow: none; }
  #certificate-dialog::backdrop, .no-print { display: none !important; }
  .certificate { padding: 0; }
  @page { size: A4; margin: 17mm; }
}
