@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b1420;
  --bg-2: #0e1a28;
  --panel: rgba(18, 31, 46, .92);
  --panel-2: #142337;
  --panel-3: #182a3f;
  --line: rgba(194, 213, 234, .12);
  --line-strong: rgba(194, 213, 234, .2);
  --text: #edf3f8;
  --muted: #91a2b5;
  --muted-2: #6e8094;
  --orange: #ff8a4c;
  --orange-2: #ffad73;
  --green: #4fe0a5;
  --red: #ff7575;
  --blue: #80b9ef;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0,0,0,.28);
  font-family: 'Manrope', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); }
body { position: relative; min-width: 320px; min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--text); background: radial-gradient(ellipse at 78% -8%, rgba(49, 100, 145, .2), transparent 34%), linear-gradient(145deg, #0b1420 0%, #0c1724 48%, #0a131e 100%); }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.hidden { display: none !important; }
.ambient { position: fixed; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(1px); }
.ambient-one { width: 520px; height: 520px; top: 16%; right: -360px; background: radial-gradient(circle, rgba(255,138,76,.075), transparent 68%); }
.ambient-two { width: 560px; height: 560px; top: 65%; left: -430px; background: radial-gradient(circle, rgba(72,135,190,.08), transparent 68%); }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.brand-mark { position: relative; display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; background: linear-gradient(145deg, #ff9a5e, #e96935); box-shadow: 0 8px 24px rgba(255,112,58,.19), inset 0 1px 0 rgba(255,255,255,.3); color: #1a1b20; }
.brand-mark b { position: relative; z-index: 1; font-size: 13px; font-weight: 900; letter-spacing: -1px; }
.brand-mark i { position: absolute; width: 30px; height: 30px; right: -14px; bottom: -15px; border: 1px solid rgba(25,31,38,.38); border-radius: 9px; transform: rotate(45deg); }
.brand-mark.small { flex-basis: 29px; width: 29px; height: 29px; border-radius: 9px; }
.brand-mark.small b { font-size: 10px; }
.brand-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.brand-copy strong { color: #f5f7fa; font-size: 12px; font-weight: 800; letter-spacing: .13em; line-height: 1.15; white-space: nowrap; }
.brand-copy small { color: #7f92a7; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .09em; white-space: nowrap; }
.eyebrow, .panel-kicker, .form-kicker, .manual-tag, .howto-title { color: var(--orange-2); font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: .14em; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.eyebrow-line { display: inline-block; width: 25px; height: 1px; background: var(--orange); }
.eyebrow-divider { color: #52677d; }

/* login */
.login-screen { position: relative; z-index: 1; display: grid; min-height: 100svh; place-items: center; padding: 36px 24px 22px; }
.login-frame { width: min(100%, 1110px); }
.login-topline { display: flex; align-items: center; justify-content: space-between; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.secure-label, .form-status { display: inline-flex; align-items: center; gap: 8px; color: #92a5b9; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .1em; }
.secure-label i, .form-status i, .top-context i, .live-indicator span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(79,224,165,.1), 0 0 14px rgba(79,224,165,.45); }
.login-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .82fr); gap: clamp(36px, 8vw, 100px); align-items: center; padding: clamp(48px, 8vh, 94px) 3.4% clamp(42px, 7vh, 82px); }
.login-story { max-width: 540px; }
.login-story h1 { margin: 0; color: #f4f7fb; font-size: clamp(54px, 7vw, 88px); font-weight: 700; letter-spacing: -.075em; line-height: .98; }
.login-story h1 em, .intro h1 em { color: var(--orange); font-style: normal; }
.login-lead { max-width: 420px; margin: 26px 0 34px; color: #9cacc0; font-size: 15px; line-height: 1.85; }
.login-benefits { display: grid; gap: 19px; }
.benefit-item { display: flex; align-items: flex-start; gap: 14px; }
.benefit-number { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--orange-2); font-family: 'DM Mono', monospace; font-size: 10px; }
.benefit-item span:last-child { display: grid; gap: 4px; }
.benefit-item strong { color: #e5edf5; font-size: 12px; font-weight: 700; }
.benefit-item small { color: #8294a8; font-size: 11px; line-height: 1.6; }
.login-card { position: relative; padding: 31px; overflow: hidden; border: 1px solid rgba(189,210,234,.15); border-radius: 24px; background: linear-gradient(150deg, rgba(24,42,62,.97), rgba(15,28,43,.98)); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.045); }
.login-card::before { position: absolute; top: -70px; right: -65px; width: 180px; height: 180px; border: 1px solid rgba(255,138,76,.16); border-radius: 42px; content: ''; transform: rotate(35deg); }
.login-card-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 26px; }
.form-status { color: #81bba6; font-size: 8px; }
.form-status i { width: 6px; height: 6px; }
.login-card h2 { position: relative; margin: 0 0 9px; color: #f1f5f9; font-size: 27px; letter-spacing: -.05em; }
.login-copy { position: relative; margin: 0 0 28px; color: #91a2b5; font-size: 12px; line-height: 1.7; }
#loginForm { position: relative; }
#loginForm label, #manualForm label { display: block; margin-bottom: 9px; color: #91a4b8; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .11em; }
.phone-field { display: flex; align-items: center; min-height: 54px; padding: 0 15px; border: 1px solid rgba(173,196,220,.17); border-radius: 13px; background: rgba(5,13,22,.36); transition: border-color .2s, box-shadow .2s, background .2s; }
.phone-field:focus-within { border-color: rgba(255,138,76,.68); background: rgba(5,13,22,.55); box-shadow: 0 0 0 4px rgba(255,138,76,.09); }
.phone-prefix { padding-right: 12px; border-right: 1px solid var(--line-strong); color: #a9bacb; font-family: 'DM Mono', monospace; font-size: 12px; }
.phone-field input { width: 100%; min-width: 0; padding: 15px 0 15px 13px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; letter-spacing: .04em; }
.phone-field input::placeholder, .manual-input-row input::placeholder { color: #617489; }
.login-submit { display: flex; width: 100%; min-height: 54px; align-items: center; justify-content: space-between; margin-top: 15px; padding: 0 17px 0 19px; border: 0; border-radius: 13px; background: linear-gradient(105deg, #ff9c62, #f47a42); box-shadow: 0 10px 22px rgba(239,111,56,.19), inset 0 1px 0 rgba(255,255,255,.28); color: #1b2027; cursor: pointer; font-size: 12px; font-weight: 800; transition: transform .2s, filter .2s; }
.login-submit:hover { filter: brightness(1.07); transform: translateY(-1px); }
.login-submit:disabled { cursor: wait; filter: grayscale(.35); opacity: .7; }
.login-submit svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-error { min-height: 18px; margin: 10px 0 0; color: #ff9292; font-size: 11px; line-height: 1.5; }
.login-security { display: flex; align-items: flex-start; gap: 11px; margin-top: 17px; padding: 14px; border: 1px solid rgba(117,177,154,.16); border-radius: 13px; background: rgba(66,143,115,.07); }
.security-icon { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border-radius: 8px; background: rgba(79,224,165,.1); color: var(--green); font-size: 17px; }
.login-security span:last-child { display: grid; gap: 3px; }
.login-security strong { color: #b8dfd0; font-size: 10px; }
.login-security small { color: #849d9b; font-size: 9px; line-height: 1.5; }
.login-footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px 3.4% 0; border-top: 1px solid var(--line); color: #6f8297; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .1em; }
.login-footer span:last-child { display: flex; align-items: center; gap: 9px; }
.login-footer i, .app-footer i { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
.install-login-btn { margin-top: 15px; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; }

/* app header and content */
.app-shell { position: relative; z-index: 1; min-height: 100vh; }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; min-height: 77px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 max(28px, calc((100vw - 1160px) / 2)); border-bottom: 1px solid var(--line); background: rgba(10,20,32,.86); backdrop-filter: blur(20px); }
.top-actions { display: flex; align-items: center; gap: 22px; }
.top-context { display: inline-flex; align-items: center; gap: 9px; color: #8093a8; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .12em; }
.top-context i { width: 6px; height: 6px; }
.account-bar { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 9px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.035); }
.account-avatar { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(255,138,76,.24); border-radius: 10px; background: rgba(255,138,76,.1); color: var(--orange-2); font-size: 12px; font-weight: 800; }
.account-copy { display: grid; min-width: 0; gap: 2px; }
.account-copy strong { max-width: 150px; overflow: hidden; color: #e5edf5; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.account-copy small { color: #71859b; font-family: 'DM Mono', monospace; font-size: 8px; }
.logout-btn { display: inline-flex; align-items: center; gap: 7px; margin-left: 5px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: transparent; color: #a4b4c5; cursor: pointer; font-size: 9px; transition: all .2s; }
.logout-btn:hover { border-color: rgba(255,138,76,.4); color: var(--orange-2); }
.install-btn { padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel-2); color: #dce7f1; cursor: pointer; font-size: 10px; }
.main-wrap { width: min(100% - 48px, 1160px); margin: 0 auto; padding: 58px 0 28px; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 33px; }
.intro-copy { max-width: 690px; }
.intro h1 { margin: 0; color: #f1f5f9; font-size: clamp(38px, 5vw, 58px); font-weight: 700; letter-spacing: -.065em; line-height: 1.1; }
.scan-batch-status { margin: 10px 0 0; color: #91a3b7; font: 10px/1.6 'DM Mono', monospace; letter-spacing: .02em; }
.subcopy { max-width: 570px; margin: 14px 0 0; color: #91a3b7; font-size: 13px; line-height: 1.7; }
.intro-side { display: flex; align-items: center; gap: 25px; padding-bottom: 5px; }
.live-indicator { display: inline-flex; align-items: center; gap: 9px; color: #95b6a9; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .1em; white-space: nowrap; }
.live-indicator span { width: 6px; height: 6px; }
.intro-code { display: flex; align-items: center; gap: 10px; padding-left: 20px; border-left: 1px solid var(--line-strong); }
.intro-code strong { color: rgba(255,255,255,.18); font-size: 39px; font-weight: 600; letter-spacing: -.08em; line-height: 1; }
.intro-code span { color: #71849a; font-family: 'DM Mono', monospace; font-size: 8px; line-height: 1.65; letter-spacing: .08em; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); align-items: stretch; gap: 17px; }
.scanner-panel, .manual-panel, .history-section { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(20,36,53,.96), rgba(15,28,43,.97)); box-shadow: 0 18px 45px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.025); }
.scanner-panel { min-width: 0; padding: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-title-wrap { display: flex; min-width: 0; align-items: center; gap: 13px; }
.section-index { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid rgba(255,138,76,.27); border-radius: 11px; background: rgba(255,138,76,.08); color: var(--orange-2); font-family: 'DM Mono', monospace; font-size: 10px; }
.panel-title-wrap > div { min-width: 0; }
.panel-kicker { margin: 0 0 5px; color: #778da4; font-size: 8px; letter-spacing: .13em; }
.panel-title-wrap h2 { margin: 0; color: #edf3f8; font-size: 17px; font-weight: 700; letter-spacing: -.035em; }
.panel-title-wrap p:last-child { margin: 4px 0 0; color: #8799ad; font-size: 10px; }
.camera-state { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(145,164,184,.16); border-radius: 99px; background: rgba(255,255,255,.025); color: #a4b4c5; font-family: 'DM Mono', monospace; font-size: 9px; }
.camera-state i { width: 6px; height: 6px; border-radius: 50%; background: #7c8b9b; }
.camera-state.live { border-color: rgba(79,224,165,.2); background: rgba(79,224,165,.06); color: #8ddbb9; }
.camera-state.live i { background: var(--green); box-shadow: 0 0 11px rgba(79,224,165,.55); }
.video-wrap { position: relative; display: grid; min-height: 285px; aspect-ratio: 16 / 9; place-items: center; overflow: hidden; border: 1px solid rgba(141,166,191,.18); border-radius: 17px; background: radial-gradient(ellipse at center, #15263a 0, #0b1420 76%); }
.video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #050b12; }
.camera-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; padding: 25px; background: radial-gradient(ellipse at 50% 44%, rgba(43,75,105,.26), transparent 55%); text-align: center; }
.camera-placeholder strong { margin-top: 7px; color: #d8e3ed; font-size: 12px; font-weight: 700; }
.camera-placeholder small { max-width: 280px; color: #7d92a8; font-size: 10px; line-height: 1.6; }
.placeholder-symbol { position: relative; display: grid; width: 62px; height: 62px; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 21px; opacity: .84; }
.placeholder-symbol span { width: 20px; height: 20px; border-color: var(--orange); border-style: solid; }
.placeholder-symbol span:nth-child(1) { border-width: 2px 0 0 2px; border-radius: 5px 0 0; }
.placeholder-symbol span:nth-child(2) { border-width: 2px 2px 0 0; border-radius: 0 5px 0 0; }
.placeholder-symbol span:nth-child(3) { border-width: 0 0 2px 2px; border-radius: 0 0 0 5px; }
.placeholder-symbol span:nth-child(4) { border-width: 0 2px 2px 0; border-radius: 0 0 5px; }
.placeholder-symbol b { position: absolute; top: 30px; left: 12px; width: 38px; height: 1px; background: var(--orange); box-shadow: 0 0 12px rgba(255,138,76,.7); }
.video-wrap.active .camera-placeholder { display: none; }
.scan-overlay { position: absolute; inset: 5% 3%; opacity: 0; pointer-events: none; transition: opacity .2s; }
.video-wrap.active .scan-overlay { opacity: 1; }
.scan-corner { position: absolute; width: 29px; height: 29px; border-color: #ff9b65; border-style: solid; filter: drop-shadow(0 0 5px rgba(255,138,76,.75)); }
.scan-corner.tl { top: 0; left: 0; border-width: 2px 0 0 2px; border-radius: 5px 0 0; }
.scan-corner.tr { top: 0; right: 0; border-width: 2px 2px 0 0; border-radius: 0 5px 0 0; }
.scan-corner.bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-radius: 0 0 0 5px; }
.scan-corner.br { right: 0; bottom: 0; border-width: 0 2px 2px 0; border-radius: 0 0 5px; }
.scan-beam { position: absolute; top: 3%; left: 2%; width: 96%; height: 2px; border-radius: 99px; background: linear-gradient(90deg, transparent, #ff9d64 16%, #ffe1c9 50%, #ff9d64 84%, transparent); box-shadow: 0 0 13px 2px rgba(255,138,76,.58); animation: scan 1.7s linear infinite alternate; }
.scan-beam::before { content: ""; position: absolute; top: -11px; left: 0; width: 100%; height: 24px; border-top: 1px solid rgba(255,156,101,.16); border-bottom: 1px solid rgba(255,156,101,.16); background: linear-gradient(180deg, transparent, rgba(255,138,76,.12) 48%, rgba(255,138,76,.19) 50%, rgba(255,138,76,.12) 52%, transparent); }
@keyframes scan { from { top: 3%; opacity: .62; } to { top: 94%; opacity: 1; } }
.camera-caption { position: absolute; right: 13px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.13); border-radius: 7px; background: rgba(5,12,20,.56); color: #c0cfdd; font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: .1em; backdrop-filter: blur(8px); }
.camera-caption i { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.camera-caption span { color: #7e91a5; }
.camera-actions { display: flex; align-items: center; gap: 10px; margin-top: 15px; }
.primary-btn { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border: 0; border-radius: 12px; background: linear-gradient(105deg, #ff9b60, #f27943); box-shadow: 0 8px 20px rgba(239,111,56,.16), inset 0 1px 0 rgba(255,255,255,.26); color: #1d2229; cursor: pointer; font-size: 11px; font-weight: 800; transition: transform .2s, filter .2s; }
.primary-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.primary-btn:disabled { cursor: not-allowed; filter: grayscale(.45); opacity: .58; }
.primary-btn svg, .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line-strong); border-radius: 11px; background: rgba(255,255,255,.04); color: #c0ccd8; cursor: pointer; }
.icon-btn.available { display: grid; }
.icon-btn.on { border-color: rgba(255,138,76,.45); background: rgba(255,138,76,.12); color: var(--orange-2); }
.text-btn { min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: #9caec0; cursor: pointer; font-size: 10px; transition: all .2s; }
.text-btn:hover:not(:disabled) { border-color: var(--line-strong); color: #e7eef5; }
.text-btn:disabled { cursor: not-allowed; opacity: .38; }
.stop-btn { margin-left: auto; }
.scanner-footnote { display: flex; align-items: flex-start; gap: 9px; margin-top: 13px; }
.info-dot { display: grid; flex: 0 0 16px; width: 16px; height: 16px; place-items: center; border: 1px solid rgba(128,185,239,.28); border-radius: 50%; color: var(--blue); font-family: Georgia, serif; font-size: 10px; font-style: italic; }
.scanner-footnote p { margin: 0; color: #7f91a5; font-size: 9px; line-height: 1.6; }

/* manual panel */
.manual-panel { display: flex; min-width: 0; flex-direction: column; padding: 24px; }
.manual-topline { display: flex; align-items: center; justify-content: space-between; }
.manual-tag { color: #758aa0; font-size: 8px; }
.manual-heading { display: flex; align-items: center; gap: 12px; margin-top: 25px; }
.manual-icon { display: grid; width: 41px; height: 41px; place-items: center; border: 1px solid rgba(128,185,239,.2); border-radius: 13px; background: rgba(128,185,239,.08); color: var(--blue); }
.manual-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.manual-heading strong { color: #e9f0f6; font-size: 16px; letter-spacing: -.035em; }
.manual-copy { margin: 14px 0 23px; color: #8b9db0; font-size: 10px; line-height: 1.75; }
#manualForm { margin-top: 0; }
.manual-input-row { display: flex; gap: 8px; }
.manual-input-row input { width: 100%; min-width: 0; height: 47px; padding: 0 12px; border: 1px solid rgba(173,196,220,.16); border-radius: 11px; outline: 0; background: rgba(5,13,22,.38); color: #ecf3f8; font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .025em; transition: border-color .2s, box-shadow .2s; }
.manual-input-row input:focus { border-color: rgba(128,185,239,.55); box-shadow: 0 0 0 4px rgba(128,185,239,.08); }
.manual-submit { display: grid; flex: 0 0 47px; width: 47px; height: 47px; place-items: center; border: 0; border-radius: 11px; background: #dce9f4; color: #172536; cursor: pointer; transition: all .2s; }
.manual-submit:hover { background: #fff; transform: translateX(1px); }
.manual-submit svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.manual-divider { height: 1px; margin: 25px 0 20px; background: var(--line); }
.howto-title { margin-bottom: 16px; color: #74889e; font-size: 8px; }
.howto-list { display: grid; gap: 14px; }
.howto-list > div { display: flex; gap: 11px; align-items: flex-start; }
.howto-list > div > span { color: var(--orange-2); font-family: 'DM Mono', monospace; font-size: 9px; }
.howto-list p { display: grid; gap: 3px; margin: 0; }
.howto-list strong { color: #ccd7e2; font-size: 10px; font-weight: 700; }
.howto-list small { color: #778ba0; font-size: 9px; line-height: 1.5; }
.privacy-note { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; padding: 12px; border: 1px solid rgba(79,224,165,.13); border-radius: 12px; background: rgba(79,224,165,.045); }
.privacy-note > span { color: var(--green); font-size: 17px; }
.privacy-note p { display: grid; gap: 3px; margin: 0; }
.privacy-note strong { color: #a9d9c5; font-size: 9px; }
.privacy-note small { color: #78978d; font-size: 8px; line-height: 1.5; }

/* personal history */
.history-section { margin-top: 18px; padding: 24px; }
.history-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.history-heading .eyebrow { margin-bottom: 8px; }
.history-heading h2 { display: flex; align-items: center; gap: 11px; margin: 0; color: #eaf1f7; font-size: 20px; letter-spacing: -.045em; }
.count-pill { display: inline-grid; min-width: 25px; height: 25px; place-items: center; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(255,255,255,.04); color: #a9bacb; font-family: 'DM Mono', monospace; font-size: 9px; font-weight: 400; }
.history-subcopy { margin: 7px 0 0; color: #7f92a7; font-size: 10px; }
.history-actions { display: flex; gap: 8px; }
.clear-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 35px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.025); color: #9eb0c2; cursor: pointer; font-size: 9px; transition: all .2s; }
.clear-btn:hover:not(:disabled) { border-color: rgba(255,138,76,.3); color: var(--orange-2); }
.clear-btn:disabled { opacity: .45; cursor: wait; }
.clear-btn span { font-size: 15px; }
.history-table-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, .32fr); gap: 15px; padding: 0 14px 10px; border-bottom: 1px solid var(--line); color: #6f8499; font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: .1em; }
.history-table-head span:last-child { text-align: right; }
.empty-state { display: flex; min-height: 160px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; color: #7c90a5; text-align: center; }
.empty-icon { display: grid; width: 38px; height: 38px; place-items: center; margin-bottom: 5px; border: 1px solid var(--line); border-radius: 12px; color: #829ab1; }
.empty-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.empty-state strong { color: #bfccd8; font-size: 11px; }
.empty-state > span:last-child { color: #788da2; font-size: 9px; }
.results-list { display: grid; }
.history-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, .32fr); gap: 15px; align-items: center; min-height: 63px; padding: 10px 14px; border-bottom: 1px solid rgba(194,213,234,.075); transition: background .2s; }
.history-row:hover { background: rgba(255,255,255,.025); }
.history-marker { display: none; }
.history-details { display: grid; min-width: 0; gap: 4px; }
.history-details strong { overflow: hidden; color: #dce7f0; font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: .015em; text-overflow: ellipsis; white-space: nowrap; }
.history-details span { color: #71879c; font-size: 9px; }
.history-value { color: #a5b5c5; font-family: 'DM Mono', monospace; font-size: 10px; text-align: right; }
.history-value.cod { color: var(--green); font-weight: 500; }
.history-value.non { color: #a0b2c4; }
.history-value.missing { color: #e6b27a; }
.history-value.error { color: #ff9292; }
.history-value.pending { color: var(--blue); }
.history-row::after { content: attr(data-state); display: none; }
.app-footer { display: flex; justify-content: space-between; gap: 15px; padding: 20px 5px 0; color: #667b90; font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: .1em; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: #99aabd; font-size: 9px; }
.footer-brand b { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 6px; background: rgba(255,138,76,.14); color: var(--orange-2); font-size: 8px; }
.app-footer > span:last-child { display: inline-flex; align-items: center; gap: 8px; }

/* result dialog and toast */
.result-dialog { position: fixed; width: min(430px, calc(100vw - 26px)); max-width: none; max-height: min(90svh, 760px); padding: 0; overflow: auto; border: 1px solid rgba(183,207,231,.18); border-radius: 24px; background: #132235; box-shadow: 0 30px 100px rgba(0,0,0,.6); color: var(--text); }
.result-dialog::backdrop { background: rgba(2,8,14,.76); backdrop-filter: blur(7px); }
.dialog-grabber { display: none; }
.dialog-content { position: relative; padding: 26px; text-align: center; }
.dialog-brand { display: flex; align-items: center; gap: 9px; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: #aab9c8; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .09em; text-align: left; }
.dialog-brand small { color: #748ba1; }
.modal-close { position: absolute; top: 23px; right: 22px; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.04); color: #a8b7c6; cursor: pointer; font-size: 19px; line-height: 1; }
.modal-close:disabled { opacity: .35; cursor: wait; }
.modal-icon { display: grid; width: 63px; height: 63px; place-items: center; margin: 29px auto 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 20px; background: rgba(255,255,255,.04); color: #dfe9f2; font-size: 29px; font-weight: 700; }
.modal-icon.cod { border-color: rgba(79,224,165,.28); background: rgba(79,224,165,.1); color: var(--green); }
.modal-icon.non { border-color: rgba(128,185,239,.25); background: rgba(128,185,239,.08); color: var(--blue); }
.modal-icon.missing { border-color: rgba(255,185,116,.25); background: rgba(255,185,116,.08); color: #ffc17e; }
.modal-icon.error { border-color: rgba(255,117,117,.25); background: rgba(255,117,117,.08); color: var(--red); }
.modal-eyebrow { margin: 0 0 8px; color: var(--orange-2); font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: .15em; }
.modal-title { margin: 0; }
.dialog-content h2 { margin: 0; color: #f3f6fa; font-size: 26px; letter-spacing: -.055em; }
.modal-message { max-width: 310px; margin: 10px auto 20px; color: #97a9bb; font-size: 11px; line-height: 1.7; }
.modal-resi-block { display: grid; gap: 7px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(4,12,21,.24); }
.modal-resi-block span, .modal-amount-panel span { color: #788da2; font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: .13em; }
.modal-resi-block strong { color: #dbe6ef; font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.modal-amount-panel { display: grid; gap: 7px; margin-top: 9px; padding: 18px; border: 1px solid rgba(79,224,165,.22); border-radius: 14px; background: linear-gradient(135deg, rgba(79,224,165,.12), rgba(79,224,165,.045)); }
.modal-amount-panel strong { color: var(--green); font-size: clamp(29px, 8vw, 38px); font-weight: 800; letter-spacing: -.055em; }
.modal-continue { width: 100%; min-height: 49px; margin-top: 17px; border: 0; border-radius: 12px; background: linear-gradient(105deg, #ff9b60, #f27943); color: #1d2229; cursor: pointer; font-size: 11px; font-weight: 800; }
.modal-continue:disabled { cursor: wait; filter: grayscale(.4); opacity: .6; }
.modal-footnote { margin: 13px 0 0; color: #6e8298; font-size: 9px; }
.modal-spinner { width: 24px; height: 24px; border: 2px solid rgba(255,255,255,.18); border-top-color: var(--orange); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; z-index: 100; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); max-width: min(390px, calc(100vw - 36px)); padding: 13px 16px; border: 1px solid rgba(194,213,234,.18); border-radius: 12px; background: #1b2c40; box-shadow: 0 14px 42px rgba(0,0,0,.35); color: #e1ebf4; font-size: 11px; line-height: 1.5; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .22s, transform .22s; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .login-layout { grid-template-columns: minmax(0, .9fr) minmax(330px, .9fr); gap: 35px; padding-right: 0; padding-left: 0; }
  .login-story h1 { font-size: 62px; }
  .workspace-grid { grid-template-columns: minmax(0, 1.25fr) minmax(270px, .85fr); }
  .scanner-panel, .manual-panel { padding: 19px; }
  .video-wrap { min-height: 250px; }
}
@media (max-width: 700px) {
  .login-screen { padding: 20px 17px 17px; }
  .login-topline { padding-bottom: 19px; }
  .secure-label { font-size: 8px; }
  .login-layout { grid-template-columns: 1fr; gap: 25px; padding: 37px 0 30px; }
  .login-story h1 { font-size: clamp(52px, 14vw, 68px); }
  .login-lead { margin: 14px 0 19px; font-size: 12px; }
  .login-benefits { display: none; }
  .login-card { padding: 23px; border-radius: 20px; }
  .login-card-head { margin-bottom: 21px; }
  .login-card h2 { font-size: 24px; }
  .login-copy { margin-bottom: 22px; }
  .login-footer { padding: 15px 0 0; font-size: 7px; }
  .topbar { position: relative; min-height: 68px; padding: 0 17px; }
  .brand { gap: 9px; }
  .brand-mark { flex-basis: 36px; width: 36px; height: 36px; border-radius: 11px; }
  .brand-copy strong { font-size: 10px; }
  .brand-copy small { font-size: 7px; }
  .top-actions { gap: 8px; }
  .top-context { display: none; }
  .account-bar { gap: 7px; padding: 5px; border: 0; background: transparent; }
  .account-avatar { width: 29px; height: 29px; }
  .account-copy strong { max-width: 96px; font-size: 9px; }
  .account-copy small { font-size: 7px; }
  .logout-btn { margin: 0; padding: 7px; font-size: 8px; }
  .main-wrap { width: calc(100% - 30px); padding-top: 35px; }
  .intro { align-items: flex-start; margin-bottom: 22px; }
  .intro .eyebrow { margin-bottom: 13px; font-size: 8px; }
  .intro h1 { font-size: clamp(36px, 10vw, 45px); }
  .subcopy { max-width: 330px; margin-top: 9px; font-size: 11px; }
  .intro-side { display: none; }
  .workspace-grid { grid-template-columns: 1fr; gap: 12px; }
  .scanner-panel, .manual-panel, .history-section { padding: 17px; border-radius: 18px; }
  .panel-head { margin-bottom: 14px; }
  .panel-title-wrap h2 { font-size: 15px; }
  .panel-title-wrap p:last-child { font-size: 9px; }
  .section-index { flex-basis: 31px; width: 31px; height: 31px; }
  .video-wrap { min-height: 225px; aspect-ratio: 4 / 3; border-radius: 14px; }
  .camera-actions { gap: 7px; }
  .primary-btn { min-height: 44px; padding: 0 13px; font-size: 10px; }
  .icon-btn { width: 41px; height: 41px; }
  .text-btn { min-height: 38px; padding: 0 8px; font-size: 9px; }
  .scanner-footnote { margin-top: 11px; }
  .manual-heading { margin-top: 19px; }
  .manual-copy { max-width: 360px; margin: 11px 0 18px; }
  .manual-divider { margin: 19px 0 16px; }
  .howto-list { grid-template-columns: 1fr 1fr; gap: 13px 10px; }
  .howto-list > div:last-child { grid-column: 1 / -1; }
  .privacy-note { margin-top: 20px; }
  .history-section { margin-top: 12px; }
  .history-heading { align-items: flex-start; margin-bottom: 17px; }
  .history-heading h2 { gap: 8px; font-size: 16px; }
  .history-subcopy { max-width: 230px; font-size: 9px; line-height: 1.5; }
  .history-actions { flex-direction: column; gap: 6px; }
  .clear-btn { min-height: 31px; justify-content: center; font-size: 8px; }
  .history-table-head { grid-template-columns: minmax(0, 1fr) minmax(92px, .55fr); gap: 8px; padding: 0 7px 9px; font-size: 7px; }
  .history-table-head span:last-child { text-align: right; }
  .history-row { position: relative; grid-template-columns: minmax(0, 1fr) minmax(92px, .55fr); gap: 8px; min-height: 62px; padding: 10px 7px; }
  .history-details strong { font-size: 9px; }
  .history-details span { font-size: 8px; }
  .history-value { font-size: 9px; text-align: right; }
  .app-footer { flex-direction: column; gap: 9px; padding-top: 17px; font-size: 7px; }
  .app-footer > span:last-child { flex-wrap: wrap; }
  .result-dialog { width: 100%; max-width: none; max-height: min(88svh, 720px); margin: auto 0 0; border-radius: 23px 23px 0 0; }
  .dialog-grabber { display: block; width: 39px; height: 4px; margin: 9px auto 0; border-radius: 9px; background: rgba(255,255,255,.2); }
  .dialog-content { padding: 20px 22px max(24px, env(safe-area-inset-bottom)); }
  .dialog-brand { padding-bottom: 16px; font-size: 8px; }
  .modal-close { top: 17px; right: 19px; }
  .modal-icon { width: 57px; height: 57px; margin: 23px auto 13px; }
  .dialog-content h2 { font-size: 23px; }
}
@media (max-width: 380px) {
  .brand-copy strong { font-size: 9px; letter-spacing: .1em; }
  .brand-copy small { font-size: 6px; }
  .account-copy { display: none; }
  .login-footer { flex-direction: column; gap: 7px; }
  .camera-state { padding: 6px 8px; font-size: 8px; }
  .camera-caption { right: 8px; bottom: 8px; font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* V5.30.0 — MINIMAL COURIER UI */
.login-screen { padding: 24px 16px; }
.login-frame { width: min(100%, 420px); }
.login-topline { justify-content: center; padding: 0; border: 0; }
.login-layout { display: block; padding: 22px 0 0; }
.login-card { padding: 28px; border-radius: 20px; }
.login-card h2 { margin-bottom: 6px; font-size: 25px; }
.login-copy { margin-bottom: 20px; }
.login-card::before { opacity: .35; }
.brand-copy small { color: #8999aa; font-family: 'Manrope', sans-serif; font-size: 9px; letter-spacing: .18em; }
.topbar { min-height: 66px; padding: 0 max(18px, calc((100vw - 900px) / 2)); }
.main-wrap { width: min(100% - 32px, 900px); padding: 28px 0 24px; }
.intro { margin-bottom: 15px; }
.intro h1 { font-size: clamp(25px, 4vw, 32px); letter-spacing: -.045em; }
.workspace-grid { grid-template-columns: minmax(0, 1.55fr) minmax(245px, .75fr); gap: 12px; }
.scanner-panel, .manual-panel, .history-section { border-radius: 17px; }
.scanner-panel { padding: 17px; }
.panel-head { margin-bottom: 12px; }
.panel-title-wrap { gap: 0; }
.panel-title-wrap h2 { font-size: 15px; }
.panel-title-wrap p:last-child { display: none; }
.camera-state { padding: 6px 9px; font-family: 'Manrope', sans-serif; font-size: 10px; }
.video-wrap { min-height: 300px; aspect-ratio: 4 / 3; border-radius: 13px; }
.camera-placeholder { gap: 7px; }
.camera-placeholder strong { margin-top: 1px; font-size: 12px; }
.camera-placeholder small { display: none; }
.placeholder-symbol { width: 54px; height: 54px; gap: 17px; }
.placeholder-symbol span { width: 18px; height: 18px; }
.placeholder-symbol b { top: 26px; left: 10px; width: 34px; }
.camera-caption { right: 9px; bottom: 9px; padding: 6px 8px; font-size: 8px; }
.camera-actions { gap: 8px; margin-top: 11px; }
.primary-btn { min-height: 45px; font-size: 11px; }
.text-btn { min-height: 40px; font-size: 10px; }
.scanner-footnote { margin: 9px 0 0; color: #8498ad; font-size: 10px; line-height: 1.4; }
.manual-panel { padding: 20px; }
.manual-heading { margin: 0 0 20px; }
.manual-heading strong { color: #edf3f8; font-size: 15px; }
.manual-heading .manual-icon, .manual-topline, .manual-copy, .manual-divider, .howto-title, .howto-list, .privacy-note { display: none !important; }
#manualForm label { margin-bottom: 7px; font-family: 'Manrope', sans-serif; font-size: 9px; }
.manual-input-row input { min-width: 0; font-size: 12px; }
.manual-submit { flex: 0 0 42px; width: 42px; height: 42px; }
.history-section { margin-top: 12px; padding: 17px; }
.history-heading { align-items: center; margin-bottom: 14px; }
.history-heading h2 { margin: 0; color: #edf3f8; font-size: 16px; letter-spacing: -.025em; }
.history-heading .eyebrow, .history-subcopy { display: none !important; }
.history-actions { flex-direction: row; gap: 6px; }
.clear-btn { min-height: 32px; padding: 0 10px; font-size: 10px; }
.history-table-head { padding: 0 9px 8px; font-size: 8px; }
.empty-state { min-height: 76px; padding: 20px 8px; }
.empty-state .empty-icon, .empty-state span { display: none !important; }
.empty-state strong { color: #8799ad; font-size: 11px; font-weight: 500; }
.history-row { min-height: 58px; padding: 10px 9px; }
.history-details strong { font-size: 11px; }
.history-details span { font-size: 9px; }
.history-value { font-size: 10px; }
.app-footer { display: none !important; }
.dialog-content { padding: 22px; }
.dialog-brand { padding-bottom: 13px; font-family: 'Manrope', sans-serif; font-size: 10px; font-weight: 800; }
.modal-eyebrow, .modal-footnote { display: none !important; }
.modal-icon { margin: 23px auto 12px; }
.dialog-content h2 { font-size: 24px; }
.modal-message { margin: 7px auto 16px; font-size: 11px; }
.modal-resi-block { gap: 5px; padding: 12px; }
.modal-resi-block span, .modal-amount-panel span { font-family: 'Manrope', sans-serif; font-size: 9px; }
.modal-continue { min-height: 46px; margin-top: 13px; font-size: 11px; }
.toast { font-size: 10px; }
@media (max-width: 700px) {
  .login-screen { padding: 18px 16px; }
  .login-layout { padding-top: 18px; }
  .login-card { padding: 23px; }
  .topbar { min-height: 60px; padding: 0 14px; }
  .main-wrap { width: calc(100% - 24px); padding-top: 20px; }
  .intro { margin-bottom: 12px; }
  .intro h1 { font-size: 25px; }
  .workspace-grid { grid-template-columns: 1fr; gap: 10px; }
  .scanner-panel, .manual-panel, .history-section { padding: 14px; border-radius: 15px; }
  .video-wrap { min-height: 230px; aspect-ratio: 4 / 3; }
  .manual-panel { display: flex; align-items: center; gap: 12px; }
  .manual-heading { flex: 0 0 auto; margin: 0; }
  .manual-heading strong { font-size: 12px; }
  #manualForm { display: flex; min-width: 0; flex: 1; align-items: center; gap: 7px; }
  #manualForm label { display: none; }
  .manual-input-row { flex: 1; min-width: 0; }
  .manual-input-row input { min-height: 42px; padding: 0 10px; font-size: 11px; }
  .manual-submit { flex-basis: 39px; width: 39px; height: 39px; }
  .history-section { margin-top: 10px; }
  .history-heading { margin-bottom: 11px; }
  .history-heading h2 { font-size: 15px; }
  .history-table-head { grid-template-columns: minmax(0,1fr) minmax(70px,.5fr); font-size: 7px; }
  .history-row { grid-template-columns: minmax(0,1fr) minmax(70px,.5fr); min-height: 54px; }
  .history-details strong { font-size: 10px; }
  .history-details span { font-size: 8px; }
  .history-value { font-size: 9px; }
}
@media (max-width: 380px) {
  .manual-panel { gap: 8px; }
  .manual-heading strong { font-size: 11px; }
  .manual-input-row input { padding: 0 7px; font-size: 10px; }
}


/* 2WH package scanner feedback */
.history-marker.added, .history-value.added { color: var(--green); }
.history-marker.duplicate, .history-value.duplicate { color: #e9bd74; }
body.package-mode .history-table-head { grid-template-columns: minmax(0, 1fr) auto; }
body.package-mode .history-section { border-color: rgba(79,224,165,.2); }


/* 2WH dual-mode toolbar and scan feedback */
.two-wh-tools { display: flex; align-items: stretch; gap: 9px; margin: 0 0 14px; }
.feedback-tools { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: -6px 0 12px; }
.two-wh-mode-switch { display: flex; min-width: 0; flex: 1; gap: 5px; padding: 4px; border: 1px solid rgba(194,213,234,.12); border-radius: 13px; background: rgba(4,12,21,.3); }
.two-wh-mode-btn { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding: 9px 11px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #8194a9; cursor: pointer; text-align: left; transition: background .18s, border-color .18s, color .18s; }
.two-wh-mode-btn > span { color: #71869c; font-family: 'DM Mono', monospace; font-size: 7px; letter-spacing: .1em; }
.two-wh-mode-btn > strong { color: #aebdcb; font-size: 10px; font-weight: 800; }
.two-wh-mode-btn > small { color: #71859a; font-size: 8px; line-height: 1.35; }
.two-wh-mode-btn.active { border-color: rgba(79,224,165,.24); background: rgba(79,224,165,.085); }
.two-wh-mode-btn.active > span, .two-wh-mode-btn.active > strong { color: var(--green); }
.two-wh-mode-btn.active > small { color: #91b9aa; }
.sound-toggle { flex: 0 0 auto; align-self: center; min-height: 42px; padding: 0 11px; white-space: nowrap; }
.sound-toggle.is-muted { color: #74879b; border-style: dashed; }
body.cod-check-mode .scanner-footnote { color: #9ab5cc; }

@media (max-width: 520px) {
  .two-wh-tools { flex-direction: column; }
  .two-wh-mode-btn { padding: 8px 8px; }
  .two-wh-mode-btn > strong { font-size: 9px; }
  .two-wh-mode-btn > small { font-size: 7px; }
  .feedback-tools .sound-toggle { align-self: flex-end; min-height: 34px; }
}

/* Separate account modes for driver and operator login */
.login-select,
.login-text-input {
  display:block;
  width:100%;
  margin:7px 0 16px;
  font:inherit;
  outline:none;
}
.login-select {
  min-height:54px;
  padding:0 15px;
  border:1px solid rgba(173,196,220,.17);
  border-radius:13px;
  background:rgba(5,13,22,.36);
  color:var(--text);
  color-scheme:dark;
  font-size:14px;
  transition:border-color .2s, box-shadow .2s, background .2s;
}
.login-select:focus {
  border-color:rgba(255,138,76,.68);
  background:rgba(5,13,22,.55);
  box-shadow:0 0 0 4px rgba(255,138,76,.09);
}
.login-select option { color:#edf3f8; background-color:#0e1c2b; }
.login-text-input {
  min-height:54px;
  padding:15px 15px;
  border:1px solid rgba(173,196,220,.17);
  border-radius:13px;
  background:rgba(5,13,22,.36);
  color:var(--text);
  font-size:14px;
  letter-spacing:.01em;
  transition:border-color .2s, box-shadow .2s, background .2s;
}
.login-text-input:focus {
  border-color:rgba(255,138,76,.68);
  background:rgba(5,13,22,.55);
  box-shadow:0 0 0 4px rgba(255,138,76,.09);
}
.login-text-input::placeholder { color:#617489; opacity:1; }
#driverLoginFields,#operatorLoginFields { margin:0; }
#operatorLoginFields label,
#driverLoginFields label { display:block; margin-top:8px; }
.operator-password-panel { margin-top:12px; }
.operator-password-panel h3 { margin:0 0 8px; color:var(--text,#172033); }
.operator-password-panel form { margin-top:14px; }
.operator-password-panel .login-submit { width:100%; justify-content:center; }



/* Operator can select any active courier across 2WH and 4WH. */
.operator-courier-panel {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(124, 153, 184, .22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(20, 36, 53, .96), rgba(15, 28, 43, .97));
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
}
.operator-courier-heading { display:flex; flex-direction:column; gap:5px; margin-bottom:14px; }
.operator-courier-heading strong { color:#edf3f8; font-size:14px; }
.operator-courier-heading span { color:#8ea1b6; font-size:11px; line-height:1.5; }
.operator-courier-panel label { display:block; margin-bottom:7px; color:#8ea1b6; font-size:9px; font-weight:700; letter-spacing:.1em; }
.operator-courier-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; }
.operator-courier-select {
  min-width:0; min-height:44px; padding:10px 12px;
  border:1px solid rgba(141,166,191,.22); border-radius:11px;
  background:#0e1c2b; color:#e9f0f7; font:inherit; font-size:12px;
}
.operator-courier-use {
  min-height:44px; padding:0 16px; border:0; border-radius:11px;
  background:var(--orange,#ff8a4c); color:#142033; font:inherit; font-size:11px; font-weight:800;
}
.operator-courier-use:disabled { opacity:.45; cursor:not-allowed; }
.operator-courier-summary { margin:12px 0 0; color:#d9e8f6; font-size:11px; font-weight:700; }
.operator-courier-feedback { margin:5px 0 0; color:#8ea1b6; font-size:10px; line-height:1.5; }
@media (max-width:520px) {
  .operator-courier-panel { padding:14px; }
  .operator-courier-controls { grid-template-columns:1fr; }
  .operator-courier-use { width:100%; }
}


/* Compact scan-session counters replace the PWA history feed. */
.scan-queue-status {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  margin:0 0 11px;
  padding:7px 11px;
  border:1px solid rgba(255,156,101,.18);
  border-radius:9px;
  background:rgba(255,138,76,.045);
  color:#a9bacb;
  font-family:'DM Mono',monospace;
  font-size:8px;
  line-height:1.45;
}
.scan-queue-status::before {
  content:"";
  flex:0 0 6px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#7c8b9b;
}
.scan-queue-status.busy::before {
  background:var(--green);
  box-shadow:0 0 9px rgba(79,224,165,.55);
}
@media (max-width:520px) {
  .scan-queue-status { margin-bottom:9px; padding:7px 9px; font-size:7px; }
}

.scan-session-stats {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin:0 0 13px;
}
.scan-session-stat {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:43px;
  padding:8px 12px;
  border:1px solid rgba(194,213,234,.12);
  border-radius:11px;
  background:rgba(5,13,22,.28);
}
.scan-session-stat span {
  color:#91a2b5;
  font-family:'DM Mono',monospace;
  font-size:8px;
  font-weight:600;
  letter-spacing:.1em;
}
.scan-session-stat strong {
  color:#edf3f8;
  font-size:18px;
  font-weight:800;
  font-variant-numeric:tabular-nums;
  line-height:1;
}
.scan-session-stat.success strong { color:var(--green); }
.scan-session-stat.duplicate strong { color:#e9bd74; }
@media (max-width:520px) {
  .scan-session-stats { gap:7px; margin-bottom:11px; }
  .scan-session-stat { min-height:40px; padding:7px 10px; }
  .scan-session-stat span { font-size:7px; }
  .scan-session-stat strong { font-size:16px; }
}
