:root {
  --screen-width: 430px;
  --ink: #243544;
  --detail-ink: #465165;
  --muted: #616b78;
  --bg: #eef3f3;
  --white: #fff;
  --green: #087745;
  --lime: #83b93d;
  --navy: #263b4e;
  --blue: #052778;
  --line: #dfe2e2;
}

@font-face { font-family: "Nunito Sans"; src: url("../assets/NunitoSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../assets/NunitoSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../assets/NunitoSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../assets/NunitoSans-Bold.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100%; margin: 0; background: #e4ebeb; }
body, button { font-family: "Nunito Sans", "Avenir Next", "Segoe UI", Arial, sans-serif; color: var(--ink); }
button { padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 2.35; stroke-linecap: round; stroke-linejoin: round; }
.svg-defs { position: absolute; width: 0; height: 0; }
.app-loading .device { visibility: hidden; }
.site-block-screen.hidden { display: none; }
.site-block-screen { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: #c0c0c0; font-family: Arial, sans-serif; }
.site-block-card { width: min(100%, 500px); padding: 15px; border: 2px solid; border-color: #dfdfdf #808080 #808080 #dfdfdf; background: #c0c0c0; text-align: left; box-shadow: inset 1px 1px #ffffff, inset -1px -1px #dfdfdf; }
.site-block-badge { display: block; background: #000080; color: #ffffff; padding: 2px 4px; margin-bottom: 10px; font-size: 11px; font-weight: bold; }
.site-block-card h1 { margin: 10px 0; font-size: 18px; line-height: 1.2; color: #000000; font-weight: bold; word-wrap: break-word; }
.site-block-card p { margin: 10px 0; color: #000000; font-size: 12px; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; font-family: Courier, monospace; }
.site-block-card button { display: block; width: auto; min-height: 22px; padding: 2px 12px; margin-top: 15px; border: 2px solid; border-color: #dfdfdf #808080 #808080 #dfdfdf; background: #c0c0c0; color: #000000; font-size: 11px; font-weight: bold; cursor: pointer; }
.site-blocked .device { display: none; }
.device { position: relative; width: 100%; max-width: var(--screen-width); min-height: 100vh; min-height: 100svh; margin: 0 auto; overflow-x: hidden; background: var(--white); }
.screen { display: none; width: 100%; min-height: 100vh; min-height: 100svh; }
.screen.active { display: block; }

/* Main tab screens */
.main-screen { padding-bottom: 84px; background: var(--bg); }
.home-screen { position: relative; min-height: 100vh; min-height: 100svh; padding-bottom: 101px; }
.home-main, .tab-main { padding: max(30px, env(safe-area-inset-top, 0px)) 24px 22px; }
.home-main h1, .tab-main h1 { margin: 0 0 17px; font-size: 33px; line-height: 1.2; letter-spacing: -.8px; font-weight: 600; color: var(--ink); }
.feature-card { display: block; width: 100%; height: 112px; margin-bottom: 17px; padding: 27px 17px 22px; border-radius: 10px; background: var(--white); }
.feature-card strong { display: block; margin-top: 18px; font-size: 17px; line-height: 22px; font-weight: 700; }
.points-icon { position: relative; display: block; width: 38px; height: 17px; }
.points-icon::before { content: ""; position: absolute; top: 7px; left: 0; width: 37px; height: 5px; border-radius: 5px; background: #2d3d49; }
.points-icon i { position: absolute; top: 1px; left: 13px; width: 18px; height: 18px; border: 5px solid #45bd45; border-radius: 50%; background: #edf5f5; box-shadow: 0 3px 6px rgba(0,0,0,.16); }
.vehicle-card { padding-top: 22px; }
.vehicle-card strong { margin-top: 17px; }
.registration-icon { display: block; width: 45px; height: 31px; }
.registration-icon img { display: block; width: 45px; height: 31px; object-fit: contain; }

.licence-banner { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; padding: 26px 25px; border-radius: 10px; background: linear-gradient(152deg, #243545, #5b84a7); color: #fff; }
.licence-banner strong { display: block; font-size: 18px; line-height: 24px; font-weight: 700; }
.licence-banner small { display: block; padding-top: 5px; font-size: 14px; line-height: 20px; }
.licence-banner svg { width: 17px; height: 17px; margin-top: 1px; stroke-width: 2.6; }
.compact { position: absolute; left: 24px; right: 24px; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); width: auto; height: 105px; border-radius: 10px 10px 0 0; }
.hub-banner { height: 204px; margin-bottom: 16px; }

.app-tab-screen .tab-main { padding-top: max(30px, env(safe-area-inset-top, 0px)); }
.menu-card { margin-bottom: 16px; padding: 0 16px; overflow: hidden; border-radius: 10px; background: #fff; }
.menu-row { display: block; width: 100%; min-height: 71px; padding: 22px 0 19px; border-bottom: 1px solid var(--line); }
.menu-row:last-child { border-bottom: 0; }
.menu-row strong { display: block; font-size: 16px; line-height: 22px; font-weight: 500; }
.menu-row small { display: block; margin-top: 5px; color: var(--muted); font-size: 13.5px; line-height: 19px; }
.action-list .menu-row { min-height: 68px; }
.scan-card .menu-row { min-height: 67px; display: flex; align-items: center; gap: 13px; padding: 0; }
.scan-card svg { width: 18px; height: 18px; }
.profile-card h2 { margin: 0; padding: 26px 0 6px; font-size: 17px; line-height: 22px; font-weight: 700; }
.profile-main .menu-row { min-height: 67px; }
.with-chevron { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.with-chevron svg { flex: 0 0 auto; width: 19px; height: 19px; }

.bottom-nav { position: fixed; z-index: 20; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; width: 100%; max-width: var(--screen-width); height: calc(64px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid #e4e8e8; background: #fff; }
.bottom-nav.hidden { display: none; }
.nav-link { flex: 1; padding-top: 6px; color: #263542; text-align: center; }
.nav-link span { display: flex; align-items: center; justify-content: center; width: 62px; height: 29px; margin: 0 auto 1px; border-radius: 30px; }
.nav-link svg { width: 23px; height: 23px; stroke-width: 2.6; }
.nav-link:first-child svg { width: 29px; height: 25px; }
.vicroads-logo * { stroke: none; }
.nav-link strong { display: block; font-size: 12px; line-height: 18px; font-weight: 500; }
.nav-link.selected { color: var(--green); }
.nav-link.selected span { background: #e8eeee; }
.nav-link.selected strong { font-weight: 700; }

/* Digital licence details */
.details-screen { padding-top: max(14px, env(safe-area-inset-top, 0px)); color: var(--detail-ink); background: #fff; }
.page-header { position: relative; display: flex; align-items: center; justify-content: center; height: 48px; }
.page-header button { position: absolute; top: 7px; left: 13px; width: 34px; height: 34px; padding: 6px; }
.page-header svg { width: 23px; height: 23px; color: #10161a; stroke-width: 2.5; }
.page-header h1, .qr-header h1 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 700; color: #3f485e; }
.refreshed { height: 31px; margin: 6px 0 0; color: #555d70; font-size: 12.5px; line-height: 20px; text-align: center; }
.digital-card { width: 100%; box-shadow: 0 2px 5px rgba(0,0,0,.15); }
.digital-card > header { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 16px 20px 13px; color: #fff; background: var(--blue); }
.digital-card > header strong { display: block; margin-bottom: 5px; font-size: 13.5px; line-height: 16px; }
.digital-card > header span { font-size: 14px; line-height: 18px; font-weight: 500; }
.vic-wordmark { display: flex; align-items: center; gap: 2px; margin-top: 1px; color: #fff; font-size: 15px; line-height: 18px; font-weight: 800; letter-spacing: -.8px; }
.vic-wordmark svg { width: 28px; height: 23px; fill: currentColor; }
.licence-face { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(12px,5.35vw,21px); height: 263px; padding: 20px clamp(15px,5.1vw,20px); background: radial-gradient(circle at 63% 52%,rgba(245,174,158,.3),transparent 58px),repeating-linear-gradient(16deg,rgba(255,255,255,.19) 0 2px,transparent 2px 6px),#cff0d1; }
.portrait-frame { position: relative; width: 100%; height: 223px; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,.38); }
.portrait-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-photo { z-index: 1; opacity: 1; transition: opacity .16s ease; }
.portrait-photo.is-loading { opacity: 0; }
.consent { width: 100%; height: 223px; padding: 18px 13px 12px; border-radius: 8px; background: #fff; text-align: center; }
.consent p { margin: 0 0 28px; color: #51596b; font-size: 12.5px; line-height: 17px; }
.consent strong { display: block; margin: 0 0 16px; color: #344054; font-size: 12px; line-height: 16px; }
.consent button { width: min(125px,100%); height: 34px; border-radius: 18px; color: #fff; background: var(--navy); font-size: 12px; font-weight: 700; text-align: center; }
.detail-tabs { display: flex; height: 38px; margin: 37px 20px 38px; padding: 1px; border: 1px solid #eaebec; border-radius: 21px; }
.detail-tabs button { flex: 1; border-radius: 19px; color: #7f8596; font-size: 14px; font-weight: 700; text-align: center; }
.detail-tabs .selected { color: #fff; background: var(--navy); }
.detail-panel { display: none; padding: 0 20px 36px; }
.detail-panel.active { display: block; }
.detail-panel h2 { margin: 0 0 19px; color: #475166; font-size: 20px; line-height: 25px; font-weight: 700; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px 15px; padding: 18px 0 16px; border-top: 1px solid #dbdcdf; border-bottom: 1px solid #dbdcdf; }
.detail-panel label { display: block; margin-bottom: 6px; color: #70798a; font-size: 14px; line-height: 18px; }
.detail-panel strong { color: var(--detail-ink); font-size: 16px; line-height: 20px; font-weight: 700; }
.address { padding: 18px 0; border-top: 1px solid #dbdcdf; border-bottom: 1px solid #dbdcdf; }
#licencePanel .address { border-top: 0; }
.more-details { padding-top: 18px; }
.more-details img { display: block; width: 100%; max-width: 360px; height: 96px; margin-top: 12px; object-fit: contain; object-position: left center; transition: opacity .16s ease; }
.more-details img.is-loading { opacity: 0; }
.age-current { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.age-current svg { width: 26px; height: 26px; color: #238f50; fill: #238f50; stroke: #fff; }
.licence-summary h2 { margin-bottom: 20px; font-size: 20px; line-height: 26px; }
#licencePanel .licence-summary .field-grid { padding: 18px 0 18px; gap: 19px 15px; border-bottom: 0; }
#licencePanel .licence-summary .address { padding: 18px 0 23px; border-top: 1px solid #dbdcdf; border-bottom: 1px solid #dbdcdf; }
.licence-signature { height: 112px; margin: 0 -20px; padding: 19px 20px 13px; overflow: hidden; }
.licence-signature img { display: block; width: 100%; height: 58px; margin-top: 8px; object-fit: contain; object-position: left center; transition: opacity .16s ease; }
.licence-signature img.is-loading { opacity: 0; }
#licencePanel .section-title { margin: 0 -20px; padding: 16px 20px; color: #465165; background: #ebedf0; font-size: 16px; line-height: 21px; font-weight: 700; }
.licence-data { margin: 0 -20px; padding: 20px 20px 25px; }
.licence-data > div { margin-bottom: 26px; }
.licence-data > div:last-child { margin-bottom: 0; }
.licence-data label, .other-data label { margin-bottom: 8px; font-size: 15px; line-height: 20px; }
.licence-data strong, .other-data strong { font-size: 17px; line-height: 22px; }
.current-status { display: flex; align-items: center; gap: 10px; }
.current-status svg { width: 21px; height: 21px; color: #2d9f36; fill: #2d9f36; stroke: #fff; }
.other-data { margin: 0 -20px; padding: 20px 20px 35px; }
.other-data > div { position: relative; padding: 0 0 20px; margin-bottom: 19px; border-bottom: 1px solid #dbdcdf; }
.other-data > div:last-child { margin: 0; padding: 0; border-bottom: 0; }
.card-number-toggle { position: absolute; right: -5px; bottom: 17px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: #161a1c; }
.card-number-toggle svg { width: 24px; height: 24px; }
.card-number-toggle.revealed svg { opacity: .45; }
.barcode-data label { margin-bottom: 14px; }
.barcode { display: block; width: calc(100% - 50px); height: 58px; margin-left: 10px; background: repeating-linear-gradient(90deg,#0e1011 0 4px,#fff 4px 8px,#0e1011 8px 13px,#fff 13px 16px,#0e1011 16px 19px,#fff 19px 25px,#0e1011 25px 30px,#fff 30px 33px); }
.barcode-data svg { position: absolute; right: 0; bottom: 17px; width: 22px; height: 22px; color: #13181b; stroke-width: 2.2; }

/* Licence QR reveal */
.qr-screen { padding-top: max(14px,env(safe-area-inset-top,0px)); color: var(--detail-ink); background: #fff; }
.qr-header { position: relative; display: flex; justify-content: center; align-items: center; height: 55px; }
.qr-header button, .intro-close { position: absolute; top: 13px; right: 20px; color: #15202a; font-size: 18px; line-height: 26px; font-weight: 600; }
.qr-graphic { position: relative; width: 310px; height: 310px; margin: 8px auto 28px; overflow: hidden; }
.qr-graphic img { position: absolute; top: -118px; left: -42px; width: 393px; max-width: none; transition: opacity .16s ease; }
.qr-graphic img.is-loading { opacity: 0; }
.expires { margin: 0 0 32px; color: #3d455a; font-size: 20px; line-height: 26px; font-weight: 500; text-align: center; }
.expires strong { margin-left: 5px; color: #21272e; font-size: 22px; font-weight: 700; }
.qr-copy { padding: 0 33px 36px; color: #485266; }
.qr-copy p { margin: 0 0 27px; font-size: 14px; line-height: 19px; }
.qr-copy h2 { margin: 0 0 9px; font-size: 15.5px; line-height: 21px; }
.qr-copy ul { margin: 0; padding-left: 25px; font-size: 14px; line-height: 27px; }

/* Local web-style overlay pages */
.web-screen { padding-top: max(8px,env(safe-area-inset-top,0px)); background: #fff; }
.web-header { position: sticky; top: 0; z-index: 2; height: 56px; border-bottom: 3px solid #d9dcdf; background: #fff; }
.web-close-icon { position: absolute; top: 10px; left: 16px; width: 34px; height: 34px; }
.web-close-icon span::before, .web-close-icon span::after { content: ""; position: absolute; top: 16px; left: 7px; width: 21px; height: 2px; border-radius: 2px; background: #25313b; }
.web-close-icon span::before { transform: rotate(45deg); }
.web-close-icon span::after { transform: rotate(-45deg); }
.web-share { position: absolute; top: 10px; right: 15px; width: 36px; height: 36px; }
.web-share span, .web-share span::before, .web-share span::after { position: absolute; width: 5px; height: 5px; border: 2px solid #25313b; border-radius: 50%; content: ""; }
.web-share span { top: 16px; right: 5px; }
.web-share span::before { top: -12px; right: 10px; }
.web-share span::after { top: 10px; right: 10px; }
.web-share::before, .web-share::after { content: ""; position: absolute; right: 14px; width: 15px; height: 2px; background: #25313b; transform-origin: right center; }
.web-share::before { top: 15px; transform: rotate(-28deg); }
.web-share::after { top: 24px; transform: rotate(28deg); }
.web-progress { position: absolute; bottom: -3px; left: 0; width: 0; height: 3px; background: #0b86de; transition: width .45s ease; }
.web-progress.loading { width: 12%; }
.web-progress.loaded { width: 100%; }
.loading-view { display: flex; align-items: center; justify-content: center; height: calc(100svh - 70px); }
.loading-view.hidden { display: none; }
.loader { width: 48px; height: 48px; border: 4px solid #d6efd6; border-right-color: #49b344; border-bottom-color: #49b344; border-radius: 50%; animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.web-content { display: none; }
.web-content.active { display: block; }
.web-page { padding: 47px 24px 34px; color: #263543; }
.web-page h1 { margin: 0 0 0; font-size: 25px; line-height: 32px; font-weight: 500; }
.demerit-page { padding-top: 48px; }
.demerit-page > h1 { display: flex; align-items: center; height: 51px; margin: 0; padding: 0 17px; color: #fff; background: #243543; font-size: 17px; }
.traffic-icon { display: inline-flex; justify-content: center; align-items: center; width: 18px; height: 27px; margin-right: 15px; color: #fff; background: #f6aa13; border-radius: 6px; font-weight: 800; }
.demerit-page > p { margin: 20px 18px 17px; font-size: 15px; line-height: 22px; }
.points-summary { margin: 0 18px; padding: 18px 18px 19px; border: 1px solid #a8adb1; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.16); }
.below-limit { display: flex; align-items: center; gap: 13px; margin-bottom: 8px; color: #087745; }
.below-limit svg { width: 30px; height: 30px; fill: #087745; stroke: #fff; }
.below-limit strong { font-size: 14px; line-height: 19px; }
.points-title { position: relative; min-height: 75px; color: #263543; font-size: 22px; line-height: 25px; }
.points-title b { position: absolute; top: -1px; right: 15px; color: #c50912; font-size: 56px; line-height: 60px; font-weight: 500; }
.points-bar { display: flex; height: 16px; margin: 13px 0 11px; overflow: hidden; border-radius: 9px; background: #d7d9db; }
.points-bar i { width: 9%; border-right: 1px solid #fff; background: #d30913; }
.points-range { display: flex; justify-content: space-between; margin-bottom: 22px; }
.points-range span:last-child { text-align: right; }
.points-range b { display: block; color: #087745; font-size: 15px; }
.points-range span:last-child b { color: #c50912; }
.points-range small { color: #606878; font-size: 12px; }
.points-summary hr { margin: 0 0 25px; border: 0; border-top: 1px solid #d8dadb; }
.points-summary p { margin: 0 0 10px; font-size: 13px; line-height: 20px; color: #5f6775; }
.bullet { display: block; margin-bottom: 27px; color: #535c6b; font-size: 13px; }
.bullet::before { content: "• "; }
.learn { color: #5f6775; }
.web-note { margin-top: 22px !important; color: #5f6775; font-size: 13px !important; line-height: 19px !important; }

.vehicle-page { padding-top: 0; }
.vehicle-page h1 { margin-bottom: 22px; }
.vehicle-record { margin-bottom: 31px; border: 1px solid #dadcdd; }
.vehicle-record h2 { display: flex; align-items: center; height: 62px; margin: 0; padding: 0 18px; color: #fff; background: #243543; font-size: 18px; font-weight: 500; }
.record-car { display: inline-flex; width: 44px; height: 28px; margin-right: 10px; align-items: center; justify-content: flex-start; }
.record-car img { display: block; max-width: 44px; max-height: 28px; object-fit: contain; }
.vehicle-record > div { display: grid; grid-template-columns: 51% 49%; min-height: 66px; padding: 15px 16px; border-bottom: 1px solid #d1d3d5; font-size: 13px; }
.vehicle-record > div:last-child { border-bottom: 0; }
.vehicle-record label { color: #3d4757; }
.vehicle-record strong { font-size: 14px; color: #253443; }
.vehicle-record strong small { color: #858c96; }
.vehicle-record em { font-style: normal; font-weight: 500; }
.vehicle-record a { color: var(--lime); text-decoration: underline; font-weight: 700; }
.action-icon { display: inline-block; min-width: 22px; color: var(--lime); text-decoration: none; }
.calendar-mini { width: 14px; height: 14px; min-width: 14px; margin-right: 4px; border: 1px solid var(--lime); background: repeating-linear-gradient(90deg, transparent 0 4px, rgba(131,185,61,.35) 4px 5px), repeating-linear-gradient(0deg, transparent 0 4px, rgba(131,185,61,.35) 4px 5px); vertical-align: -2px; }
.paid { color: #83909b !important; }
.record-actions { min-height: 196px !important; }
.record-actions a { display: block; margin-bottom: 10px; line-height: 17px; }
.vehicle-record.tinted > div { background: #ffe1e1; }

/* Scanner intro */
.intro-screen { position: relative; padding: max(72px,calc(env(safe-area-inset-top,0px) + 58px)) 30px 32px; color: #15212a; background: #fff; text-align: center; }
.intro-screen h1 { margin: 84px 0 44px; font-size: 22px; line-height: 28px; font-weight: 700; }
.scan-illustration { display: grid; grid-template-columns: 32px 32px; gap: 8px; width: 78px; height: 78px; margin: 0 auto 126px; padding: 3px; border-left: 4px solid var(--ink); border-right: 4px solid var(--ink); }
.scan-illustration span { border: 9px solid #42af3c; }
.intro-screen p { margin: 0 0 22px; font-size: 16px; line-height: 21px; }
.next-button { display: block; width: 100%; height: 53px; margin: 106px 0 20px; border-radius: 28px; color: #fff; background: #243543; font-size: 17px; font-weight: 600; text-align: center; }
.intro-screen > small { display: block; color: #6d737c; font-size: 12px; line-height: 16px; }

/* Scanner */
.scanner-screen { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; color: #15212a; background: #111820; }
.scanner-header { position: relative; z-index: 4; display: flex; align-items: center; justify-content: center; height: max(80px,calc(env(safe-area-inset-top,0px) + 66px)); padding-top: env(safe-area-inset-top,0px); background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.1); }
.scanner-header h1 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; color: #33425b; }
.scanner-header button { position: absolute; top: max(21px,calc(env(safe-area-inset-top,0px) + 20px)); right: 20px; color: #061323; font-size: 22px; line-height: 28px; font-weight: 500; }
.camera-stage { position: relative; height: calc(100vh - 80px); height: calc(100svh - 80px); min-height: 560px; overflow: hidden; background: radial-gradient(circle at 50% 36%, #25313b 0, #151e26 58%, #101820 100%); }
.camera-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s ease; }
.camera-stage.video-ready video { opacity: 1; }
.camera-placeholder { position: absolute; top: 147px; left: 50%; display: flex; width: 250px; height: 250px; transform: translateX(-50%); flex-direction: column; align-items: center; justify-content: center; gap: 21px; color: rgba(238,242,245,.82); font-size: 18px; font-weight: 700; text-align: center; }
.camera-placeholder svg { width: 58px; height: 58px; fill: none; stroke: currentColor; stroke-width: 2.8; }
.camera-stage.video-ready .camera-placeholder { display: none; }
.scan-frame { position: absolute; top: 92px; left: 50%; width: 260px; height: 260px; transform: translateX(-50%); }
.scan-frame::before { content: ""; position: absolute; inset: 25px; border: 1px solid rgba(255,255,255,.32); border-radius: 19px; }
.scan-frame span { position: absolute; width: 58px; height: 58px; border-color: #43bf44; }
.scan-frame span:nth-child(1) { top: 0; left: 0; border-top: 8px solid #43bf44; border-left: 8px solid #43bf44; border-radius: 24px 0 0 0; }
.scan-frame span:nth-child(2) { top: 0; right: 0; border-top: 8px solid #43bf44; border-right: 8px solid #43bf44; border-radius: 0 24px 0 0; }
.scan-frame span:nth-child(3) { bottom: 0; right: 0; border-right: 8px solid #43bf44; border-bottom: 8px solid #43bf44; border-radius: 0 0 24px 0; }
.scan-frame span:nth-child(4) { bottom: 0; left: 0; border-bottom: 8px solid #43bf44; border-left: 8px solid #43bf44; border-radius: 0 0 0 24px; }
.scanner-panel { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; min-height: 298px; padding: 36px 30px calc(32px + env(safe-area-inset-bottom,0px)); border-radius: 28px 28px 0 0; background: #fff; text-align: center; }
.scanner-panel h2 { margin: 0 0 23px; color: #071522; font-size: 22px; line-height: 28px; font-weight: 800; }
.scanner-panel p { margin: 0 auto 31px; max-width: 316px; color: #59657d; font-size: 16px; line-height: 24px; }
.scanner-action { width: 100%; height: 58px; border-radius: 30px; color: #fff; background: #243543; font-size: 20px; font-weight: 800; text-align: center; }
.scanner-action:disabled { opacity: 1; cursor: default; }
.scan-result { display: block; min-height: 18px; margin-top: 14px; color: #2b7d2f; font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }

@media (min-width: 431px) { .device { box-shadow: 0 0 0 1px rgba(0,0,0,.05); } }
.admin-edit-button { position: fixed; z-index: 50; right: 18px; bottom: calc(86px + env(safe-area-inset-bottom,0px)); padding: 10px 16px; border-radius: 999px; color: #fff; background: #243543; font-size: 14px; font-weight: 800; text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.inline-editor { position: fixed; z-index: 120; inset: 0; overflow: auto; padding: 16px; background: rgba(17,24,32,.65); }
.inline-editor form { width: min(820px,100%); margin: 20px auto; padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 22px 60px rgba(0,0,0,.28); }
.inline-editor header, .inline-editor footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inline-editor h1 { margin: 0; font-size: 20px; line-height: 26px; }
.inline-editor button { padding: 10px 16px; border-radius: 999px; color: #fff; background: #243543; font-weight: 800; }
.inline-editor h2 { margin: 0 0 12px; font-size: 18px; line-height: 24px; color: #243544; }
.editor-tabs { display: flex; gap: 8px; margin: 18px -2px 16px; padding: 2px 2px 8px; overflow-x: auto; }
.editor-tabs button { flex: 0 0 auto; color: #243543; background: #eef3f3; box-shadow: none; }
.editor-tabs button.selected { color: #fff; background: #087745; }
.editor-panel { display: none; }
.editor-panel.active { display: block; }
.editor-help { margin: 0 0 12px; color: #667085; font-size: 13px; line-height: 19px; }
.inline-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.inline-grid label { display: grid; gap: 6px; color: #667085; font-size: 12px; font-weight: 800; }
.inline-grid input, .inline-grid textarea { width: 100%; padding: 10px 11px; border: 1px solid #d6dbe1; border-radius: 10px; font: inherit; }
.inline-grid textarea { min-height: 92px; resize: vertical; }
.inline-grid .wide-field, .inline-grid .image-field { grid-column: 1 / -1; }
.image-upload-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.image-upload-row button, .vehicle-icon-upload button { border-radius: 10px; white-space: nowrap; }
.screen-reader-file { position: absolute; width: 1px !important; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.image-field small, .vehicle-icon-upload small { min-height: 18px; color: #2b7d2f; font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.json-editor { width: 100%; min-height: 260px; padding: 12px; border: 1px solid #d6dbe1; border-radius: 10px; font: 12px/18px Consolas, monospace; resize: vertical; }
.vehicle-icon-list { display: grid; gap: 10px; margin-top: 12px; }
.vehicle-icon-upload { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: end; margin-top: 12px; }
.vehicle-icon-upload label { display: grid; gap: 6px; color: #667085; font-size: 12px; font-weight: 800; }
.vehicle-icon-upload input { width: 100%; padding: 10px 11px; border: 1px solid #d6dbe1; border-radius: 10px; font: inherit; }
#inlineVehiclesJson { min-height: 170px; font-family: Consolas, monospace; font-size: 12px; }
#inlineEditMessage { color: #2b7d2f; font-size: 13px; }
@media (max-width: 640px) {
  .inline-editor { padding: 10px; }
  .inline-editor form { margin: 8px auto; padding: 14px; }
  .inline-grid, .image-upload-row, .vehicle-icon-upload { grid-template-columns: 1fr; }
}
@media (max-width: 370px) {
  .home-main, .tab-main { padding-right: 17px; padding-left: 17px; }
  .compact { left: 17px; right: 17px; }
  .consent { padding-right: 8px; padding-left: 8px; }
  .consent p { margin-bottom: 18px; font-size: 11.5px; }
  .intro-screen h1 { margin-top: 60px; }
  .scan-frame { width: 230px; height: 230px; }
}
