:root {
  --bg: #f4f5f7; --panel: #fff; --ink: #16181d; --ink-2: #4a505c; --ink-3: #8a909c; --line: #e3e6eb;
  --side: #14161b; --side-ink: #c9ced8; --side-hi: #ffffff;
  --accent: #e8590c; --accent-ink: #fff; --accent-soft: #fff1e8;
  --ok: #2f9e44; --ok-soft: #ebfbee; --warn: #e67700; --warn-soft: #fff4e0; --err: #e03131; --err-soft: #fff0f0; --info: #1c7ed6; --info-soft: #e7f5ff;
  --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14.5px; color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.45; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 18px 0 8px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.prewrap { white-space: pre-wrap; }

/* Shell */
.shell { display: flex; min-height: 100vh; }
.side { width: 228px; background: var(--side); color: var(--side-ink); padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; flex-shrink: 0; }
.brand { color: var(--side-hi); font-weight: 700; font-size: 15.5px; padding: 4px 10px 18px; display: flex; gap: 10px; align-items: center; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 13px; }
.brand small { display: block; font-weight: 500; color: var(--ink-3); font-size: 11.5px; }
.nav a { display: flex; align-items: center; justify-content: space-between; color: var(--side-ink); padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: #22252d; color: var(--side-hi); text-decoration: none; }
.nav a.on { background: #2a2e38; color: var(--side-hi); }
.nav .sep { height: 1px; background: #262a33; margin: 10px 6px; }
.nav .badge { background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 700; }
.side .foot { margin-top: auto; font-size: 12.5px; padding: 10px; border-top: 1px solid #262a33; }
.side .foot form { display: inline; }
.side .foot button { background: none; border: 0; color: var(--ink-3); cursor: pointer; padding: 0; font: inherit; }
.side .foot a { color: var(--side-ink); }
.main { flex: 1; min-width: 0; padding: 26px 32px 60px; max-width: 1320px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.topbar .sub { color: var(--ink-3); margin-top: 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Panels */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > h2 { padding: 16px 18px 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi .n { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.kpi .l { color: var(--ink-3); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.kpi.alert .n { color: var(--err); }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; background: #fafbfc; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfbfc; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.group-row td { background: #f6f7f9; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.table-wrap { overflow-x: auto; }

/* Forms */
label { display: block; font-weight: 600; font-size: 12.5px; color: var(--ink-2); margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=tel], input[type=search], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #cfd4dc; border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(232,89,12,.25); border-color: var(--accent); }
textarea { min-height: 90px; resize: vertical; }
.field { margin-bottom: 14px; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; color: var(--ink); }
.check input { width: auto; }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline > * { width: auto; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 4px; margin: 0 0 16px; }
legend { font-weight: 700; padding: 0 6px; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid #cfd4dc; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #f6f7f9; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #d9480f; }
.btn.danger { color: var(--err); border-color: #f3c0c0; }
.btn.sm { padding: 4px 10px; font-size: 12.5px; }
.btn.ghost { border-color: transparent; background: transparent; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; }
form.inline-form { display: inline; }

/* Pills / status */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.st-inquiry { background: #f1effc; color: #6741d9; }
.st-hold { background: var(--warn-soft); color: #b35c00; }
.st-confirmed { background: var(--ok-soft); color: #2b8a3e; }
.st-completed { background: var(--info-soft); color: #1864ab; }
.st-cancelled { background: #f1f3f5; color: #868e96; text-decoration: line-through; }
.st-new { background: var(--accent-soft); color: var(--accent); }
.st-converted { background: var(--ok-soft); color: #2b8a3e; }
.st-declined, .st-archived { background: #f1f3f5; color: #868e96; }
.st-active { background: var(--ok-soft); color: #2b8a3e; }
.st-repair { background: var(--warn-soft); color: #b35c00; }
.st-retired { background: #f1f3f5; color: #868e96; }
.tag-short { background: var(--err-soft); color: var(--err); }
.tag-tent { background: #f1effc; color: #6741d9; }
.tag-ok { background: var(--ok-soft); color: #2b8a3e; }

.flash { padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; border: 1px solid; }
.flash-ok { background: var(--ok-soft); border-color: #b2f2bb; color: #2b8a3e; }
.flash-warn { background: var(--warn-soft); border-color: #ffd8a8; color: #b35c00; }
.flash-err { background: var(--err-soft); border-color: #ffc9c9; color: #c92a2a; }
.flash-info { background: var(--info-soft); border-color: #a5d8ff; color: #1864ab; }
.flash a { font-weight: 700; margin-left: 6px; }
.errors { background: var(--err-soft); border: 1px solid #ffc9c9; color: #c92a2a; border-radius: 8px; padding: 10px 14px 10px 30px; margin-bottom: 16px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 12px; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters input, .filters select { width: auto; }

dl.meta { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 0; }
dl.meta dt { color: var(--ink-3); font-size: 12.5px; }
dl.meta dd { margin: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.list li:last-child { border-bottom: 0; }
.empty { color: var(--ink-3); padding: 20px; text-align: center; }
.note-box { background: #fffbea; border: 1px solid #ffe8a3; border-radius: 8px; padding: 12px 14px; white-space: pre-wrap; }
.lastyear { border-left: 3px solid var(--accent); }
.bar { height: 8px; background: #eef0f3; border-radius: 99px; overflow: hidden; min-width: 80px; }
.bar > span { display: block; height: 100%; background: var(--accent); }
.scanbox { display: flex; gap: 8px; }
.scanbox input { font-size: 18px; padding: 12px; font-family: ui-monospace, Menlo, monospace; }
.seg { display: inline-flex; border: 1px solid #cfd4dc; border-radius: 8px; overflow: hidden; }
.seg a { padding: 8px 14px; color: var(--ink-2); font-weight: 600; }
.seg a.on { background: var(--ink); color: #fff; }
.seg a:hover { text-decoration: none; }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.cal .dow { background: #fafbfc; padding: 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; }
.cal .day { background: #fff; min-height: 112px; padding: 6px; position: relative; }
.cal .day.out { background: #fafbfc; }
.cal .day.out .dn { color: #c1c6cf; }
.cal .dn { font-size: 12px; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; }
.cal .dn a { color: inherit; }
.cal .day.today .dn span { background: var(--accent); color: #fff; border-radius: 99px; padding: 0 7px; }
.cal .ev { display: block; font-size: 12px; padding: 2px 6px; border-radius: 5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.cal .ev:hover { text-decoration: none; filter: brightness(.96); }
.cal .ev.prep { background: transparent !important; border: 1px dashed #cfd4dc; color: var(--ink-3) !important; font-weight: 500; }
.cal .add { visibility: hidden; color: var(--ink-3); }
.cal .day:hover .add { visibility: visible; }

/* Auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth .card { width: 100%; max-width: 400px; padding: 28px; }
.auth .brand { color: var(--ink); padding: 0 0 18px; }

@media (max-width: 960px) {
  .shell { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; padding: 10px; }
  .nav { display: flex; overflow-x: auto; gap: 2px; }
  .nav .sep { display: none; }
  .nav a { white-space: nowrap; }
  .side .foot { display: none; }
  .brand { padding-bottom: 8px; }
  .main { padding: 18px 14px 40px; }
  .g2, .g3, .g4, .split { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .cal .day { min-height: 70px; }
  .cal .ev { font-size: 10.5px; }
}
@media print {
  .side, .no-print, .flash { display: none !important; }
  .main { padding: 0; }
  .card { box-shadow: none; border: 0; }
}

/* Gear photos + online lookup */
.thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex-shrink: 0; }
.thumb.sm { width: 28px; height: 28px; }
.thumb.ph { display: inline-grid; place-items: center; color: #c1c6cf; font-size: 16px; background: #f6f7f9; }
.with-thumb { display: flex; gap: 10px; align-items: center; }
.photo-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.photo-box { width: 120px; height: 120px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; background: #fff; overflow: hidden; flex-shrink: 0; }
.photo-box img { width: 100%; height: 100%; object-fit: contain; }
.hero-img { width: 100%; max-height: 280px; object-fit: contain; background: #fff; border-radius: 8px; }
.lookup-results { display: grid; gap: 10px; margin-top: 10px; }
.lr { display: flex; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; align-items: flex-start; }
.lr.picked { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(232,89,12,.15); }
.lr .imgs { display: flex; gap: 6px; flex-wrap: wrap; width: 132px; flex-shrink: 0; }
.lr .imgs img { width: 62px; height: 62px; object-fit: contain; border: 2px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.lr .imgs img.on { border-color: var(--accent); }
.lr .imgs .none { width: 128px; height: 62px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 6px; color: var(--ink-3); font-size: 12px; }
.lr .body { flex: 1; min-width: 0; }
.lr .body strong { display: block; }
.lr .meta { color: var(--ink-3); font-size: 12.5px; margin: 2px 0 4px; }
.lr .desc { font-size: 13px; color: var(--ink-2); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid #cfd4dc; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Show times on the event form */
.show-head, .show-row { display: grid; grid-template-columns: 150px 120px 120px 1fr 36px; gap: 8px; align-items: center; }
.show-head { font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.show-row { margin-bottom: 8px; }
.show-list { list-style: none; margin: 0; padding: 0; }
.show-list li { padding: 3px 0; line-height: 1.35; }
@media (max-width: 700px) {
  .show-head { display: none; }
  .show-row { grid-template-columns: 1fr 1fr; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
  .show-row input[name=show_label] { grid-column: 1 / -1; }
}

/* Venue picker */
.venue-pick { position: relative; }
.venue-menu { position: absolute; left: 0; right: 0; top: 62px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(16,24,40,.12); z-index: 20; max-height: 320px; overflow: auto; }
.vm-item { padding: 8px 12px; cursor: pointer; display: flex; flex-direction: column; border-bottom: 1px solid #f1f3f5; }
.vm-item span { font-size: 12.5px; color: var(--ink-3); }
.vm-item.on, .vm-item:hover { background: var(--accent-soft); }
.vm-web { color: var(--accent); font-weight: 600; }

/* Phone / Home Screen app */
.tabbar { display: none; }
@media (max-width: 960px) {
  .side { padding-top: calc(10px + env(safe-area-inset-top)); padding-left: calc(10px + env(safe-area-inset-left)); padding-right: calc(10px + env(safe-area-inset-right)); }
  .main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(20,22,27,.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid #262a33; }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #8a909c; font-size: 11px; font-weight: 600; padding: 4px 0; text-decoration: none; }
  .tabbar a span { font-size: 20px; line-height: 1; }
  .tabbar a.on { color: #fff; }
  .tabbar a.on span { color: var(--accent); }
  input, select, textarea { font-size: 16px; } /* stops iPhone zooming into fields */
}
.auth { padding-top: calc(20px + env(safe-area-inset-top)); }
@media print { .tabbar { display: none !important; } }

/* iPhone app */
#faceid-lock { position: fixed; inset: 0; z-index: 9999; background: #14161b; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; font-weight: 600; }
#faceid-lock img { width: 76px; height: 76px; border-radius: 18px; }
.in-app .scanbox .btn { padding-left: 12px; padding-right: 12px; }

/* no double-tap zoom (pinch still works on the website; the app disables zoom entirely) */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
.setpw { display: inline-block; vertical-align: top; }
.setpw > summary { list-style: none; display: inline-block; cursor: pointer; }
.setpw > summary::-webkit-details-marker { display: none; }
.setpw[open] { display: block; margin-bottom: 4px; }

/* Phone calendar: compact month + day list */
.calm { display: none; }
@media (max-width: 700px) {
  .cal, .cal-legend, .hide-phone { display: none !important; }
  .calm { display: block; }
  .calm-grid { display: grid; grid-template-columns: repeat(7, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 4px 8px; touch-action: pan-y; }
  .calm-dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-3); padding: 4px 0 6px; }
  .calm-day { appearance: none; border: 0; background: none; font: inherit; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 0 4px; min-height: 48px; cursor: pointer; border-radius: 10px; }
  .calm-day .n { font-size: 16px; font-weight: 600; width: 32px; height: 32px; line-height: 32px; border-radius: 99px; text-align: center; }
  .calm-day.out { color: #c1c6cf; }
  .calm-day.today .n { color: var(--accent); font-weight: 800; }
  .calm-day.sel .n { background: var(--accent); color: #fff; }
  .calm-day .dots { display: flex; gap: 3px; height: 6px; align-items: center; }
  .calm-day .dot { width: 6px; height: 6px; border-radius: 99px; display: block; }
  .calm-day .dot.st-confirmed { background: #2b8a3e; } .calm-day .dot.st-hold { background: #f08c00; }
  .calm-day .dot.st-inquiry { background: #7950f2; } .calm-day .dot.st-completed { background: #1c7ed6; }
  .calm-day .dot.prep { background: #adb5bd; }
  .calm-day .dots b { font-size: 10px; line-height: 6px; color: var(--ink-3); }
  .calm-list { margin-top: 14px; }
  .calm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 16px; }
  .calm-empty { color: var(--ink-3); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
  .calm-ev { display: block; position: relative; background: #fff; border: 1px solid var(--line); border-left: 5px solid #adb5bd; border-radius: 10px; padding: 12px 12px 12px 14px; margin-bottom: 8px; color: var(--ink); }
  .calm-ev:hover { text-decoration: none; }
  .calm-ev .nm { font-weight: 700; font-size: 16px; padding-right: 86px; }
  .calm-ev .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-2); font-size: 14px; margin-top: 4px; }
  .calm-ev .pill { position: absolute; top: 12px; right: 10px; }
  .calm-ev.bar-confirmed { border-left-color: #2b8a3e; } .calm-ev.bar-hold { border-left-color: #f08c00; }
  .calm-ev.bar-inquiry { border-left-color: #7950f2; } .calm-ev.bar-completed { border-left-color: #1c7ed6; }
  .calm-ev.prep { border-left-style: dashed; color: var(--ink-2); }
  .calm-ev.prep .nm { font-weight: 500; font-size: 15px; }
  .calm-hint { text-align: center; margin-top: 14px; }
}

/* In-app camera scanner */
body.scanning { overflow: hidden; }
#scanner { position: fixed; inset: 0; z-index: 9999; background: #000; color: #fff; }
#scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#scanner .sc-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 38%, rgba(0,0,0,.55) 70%); pointer-events: none; }
#scanner .sc-top { position: absolute; left: 0; right: 0; top: 0; padding: calc(env(safe-area-inset-top, 0px) + 56px) 24px 0; text-align: center; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
#scanner .sc-title { font-size: 22px; font-weight: 800; }
#scanner .sc-sub { font-size: 15px; opacity: .85; margin-top: 4px; }
#scanner .sc-frame { position: absolute; left: 50%; top: 50%; width: min(68vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%); }
#scanner .sc-frame i { position: absolute; width: 44px; height: 44px; border: 5px solid #fff; border-radius: 6px; transition: border-color .1s; }
#scanner .sc-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
#scanner .sc-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
#scanner .sc-frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
#scanner .sc-frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
#scanner.hit .sc-frame i { border-color: #40c057; }
#scanner .sc-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 12px; padding: 0 20px calc(env(safe-area-inset-bottom, 0px) + 24px); }
#scanner .sc-btn { flex: 1; appearance: none; border: 0; border-radius: 14px; font: inherit; font-size: 18px; font-weight: 700; padding: 16px; background: rgba(255,255,255,.18); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#scanner .sc-cancel { background: #fff; color: #16181d; }
#scanner .sc-torch { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 104px); appearance: none; border: 0; border-radius: 99px; width: 72px; height: 72px; font-size: 26px; line-height: 1; background: rgba(255,255,255,.18); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
#scanner .sc-torch[hidden] { display: none; }
#scanner .sc-torch span { font-size: 11px; font-weight: 700; }
#scanner .sc-torch.on { background: #ffd43b; color: #16181d; }
