/* CrystalCore.Hello pro iOS – webová obdoba Android aplikace CrystalCoreHello.
   Barvy a rozměry podle res/values/colors.xml a themes.xml aplikace
   (administrace www_2027: šablona Nifty, schéma navy, tmavý motiv). */

@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url("../fonts/poppins_regular.ttf") format("truetype"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url("../fonts/poppins_medium.ttf") format("truetype"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url("../fonts/poppins_semibold.ttf") format("truetype"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url("../fonts/poppins_bold.ttf") format("truetype"); }

:root {
  --bg: #23292F;
  --surface: #293038;
  --primary: #24447F;
  --on-primary: #FFFFFF;
  --text: #FFFFFF;
  --hint: #A6ABB2;
  --divider: #4F5154;
  --primary-soft: rgba(79, 111, 173, .30);
  --primary-light: #8FA8DC;
  --link: #41A0F8;
  --outline: #4F5B73;
  --selected: #2E3F62;
  --up: #9ACB69;
  --down: #EF978C;
  --st-new: #EF7A7A;
  --st-active: #7FD18B;
  --st-measured: #F2CF5B;
  --st-production: #6DB8F7;
  --st-complaint: #F5A65B;
  --st-storno: #A0A0A0;
  --st-done: #C08BE0;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body {
  color: var(--text);
  font: 400 14px/1.45 Poppins, -apple-system, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--link); }
[hidden] { display: none !important; }

/* ---------- obrazovka ---------- */
#app { height: 100%; }
.screen {
  display: flex; flex-direction: column;
  height: 100%; max-width: 640px; margin: 0 auto;
  padding: calc(var(--safe-top) + 16px) calc(var(--safe-right) + 16px) calc(var(--safe-bottom) + 16px) calc(var(--safe-left) + 16px);
}
.screen.padded { padding-left: calc(var(--safe-left) + 24px); padding-right: calc(var(--safe-right) + 24px); }
.scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; position: relative; }
.page { overflow-y: auto; }   /* celá obrazovka se posouvá (hlavní, O aplikaci) */
.page .screen { height: auto; min-height: 100%; }

.title-bar {
  background: var(--primary); color: var(--on-primary);
  font-weight: 700; font-size: 18px; text-align: center; padding: 12px;
  flex: 0 0 auto; overflow-wrap: anywhere;
}
.title-bar.big { font-size: 20px; }
.subtitle { color: var(--hint); font-size: 16px; text-align: center; margin: 8px 0 24px; }
.msg { color: var(--text); font-size: 16px; padding: 4px 0; white-space: pre-line; }
.footer-note { color: var(--hint); font-size: 13px; text-align: center; padding: 12px 0; }
.footer-note.tap { cursor: pointer; }
.section-title { color: var(--primary-light); font-size: 12px; font-weight: 700; margin: 16px 0 8px; }
.hint { color: var(--hint); }
.small { font-size: 12px; }

/* ---------- tlačítka (Nifty: zaoblení 8, bez velkých písmen) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 10px 24px; border-radius: 8px; border: 1px solid transparent;
  background: var(--primary); color: var(--on-primary);
  font-weight: 500; font-size: 14px; letter-spacing: 0; text-decoration: none;
  cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  transition: filter .15s, background-color .15s, opacity .15s;
}
.btn:active { filter: brightness(1.18); }
.btn:disabled { opacity: .38; pointer-events: none; }
.btn.block { display: flex; width: 100%; }
.btn.outlined { background: transparent; border-color: var(--outline); color: var(--primary-light); }
.btn.outlined:active { background: rgba(143, 168, 220, .10); filter: none; }
.btn.text { background: transparent; color: var(--primary-light); padding-left: 12px; padding-right: 12px; }
.btn.tonal { background: var(--selected); color: var(--text); }
.btn .ico { width: 18px; height: 18px; flex: 0 0 auto; }
.btn.icon-only { padding: 0; width: 48px; min-height: 48px; border-radius: 8px; }
.btn.icon-only .ico { width: 24px; height: 24px; }
.mb12 { margin-bottom: 12px; }
.mb16 { margin-bottom: 16px; }
.mt12 { margin-top: 12px; }
.mt20 { margin-top: 20px; }

/* spodní řada akcí: ikona nad popiskem */
.actions { display: flex; gap: 8px; flex: 0 0 auto; margin-top: 16px; }
.actions .btn { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 4px; padding: 10px 4px; }
.actions .btn .ico { width: 22px; height: 22px; }
.actions .btn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* přepínač (MaterialButtonToggleGroup) */
.toggle { display: flex; flex: 0 0 auto; }
.toggle button {
  flex: 1 1 0; min-width: 0; min-height: 40px; padding: 8px 4px; cursor: pointer;
  background: transparent; border: 1px solid var(--outline); color: var(--primary-light);
  font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toggle button + button { border-left-width: 0; }
.toggle button:first-child { border-radius: 8px 0 0 8px; }
.toggle button:last-child { border-radius: 0 8px 8px 0; }
.toggle button.on { background: var(--selected); color: var(--text); border-color: var(--primary-light); }
.toggle button.on + button { border-left-color: var(--primary-light); }

/* ---------- pole formuláře (outlined, plovoucí popisek) ---------- */
.field { position: relative; margin-top: 12px; }
.field input, .field textarea, .field select {
  display: block; width: 100%; min-height: 56px; padding: 22px 14px 8px;
  background: transparent; border: 1px solid var(--outline); border-radius: 8px;
  font-size: 16px; outline: none; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.4; }
.field.dense input { min-height: 48px; padding: 18px 12px 5px; }
.field label {
  position: absolute; left: 12px; top: 17px; padding: 0 4px; pointer-events: none;
  color: var(--hint); font-size: 16px; transition: all .12s; background: var(--bg);
  max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.field.dense label { top: 13px; }
.field input:focus, .field textarea:focus, .field select:focus { border: 2px solid var(--primary-light); padding-left: 13px; }
.field input:focus + label, .field textarea:focus + label, .field select:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label, .field select + label {
  top: -8px; font-size: 12px; color: var(--primary-light);
}
.field input:not(:focus):not(:placeholder-shown) + label,
.field textarea:not(:focus):not(:placeholder-shown) + label,
.field select:not(:focus) + label { color: var(--hint); }
.field .error { color: var(--down); font-size: 12px; margin: 4px 14px 0; }
.field.invalid input, .field.invalid textarea { border-color: var(--down); }
.field select { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238FA8DC' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 24px; }
.field select option { background: var(--surface); }

.check { display: flex; align-items: center; gap: 10px; color: var(--hint); padding: 8px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--primary-light); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; cursor: pointer; }
.switch input { -webkit-appearance: none; appearance: none; width: 52px; height: 32px; border-radius: 16px; background: var(--surface); border: 2px solid var(--outline); position: relative; flex: 0 0 auto; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 6px; left: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--outline); transition: all .15s; }
.switch input:checked { background: var(--primary); border-color: var(--primary); }
.switch input:checked::after { left: 22px; top: 2px; width: 24px; height: 24px; background: #fff; }

/* ---------- karty a řádky údajů ---------- */
.card { background: var(--surface); border-radius: 16px; margin-bottom: 12px; overflow: hidden; }
.card.r12 { border-radius: 12px; }
.card.pad { padding: 14px; }
.card.tap { cursor: pointer; }
.card.tap:active, .row.tap:active, .menu-entry:active { background-color: rgba(255, 255, 255, .06); }
.row { display: flex; align-items: center; min-height: 60px; padding: 8px 16px; position: relative; text-decoration: none; color: inherit; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 56px; right: 0; height: 1px; background: var(--divider); }
.row > .ico { width: 24px; height: 24px; color: var(--primary-light); flex: 0 0 auto; margin-right: 16px; }
.row .txt { flex: 1 1 auto; min-width: 0; }
.row .lbl { color: var(--hint); font-size: 12px; }
.row .val { font-size: 16px; margin-top: 2px; white-space: pre-line; overflow-wrap: anywhere; }
.row .chev { width: 20px; height: 20px; color: var(--hint); flex: 0 0 auto; margin-left: 8px; }
.row.tap { cursor: pointer; }

.welcome { background: var(--surface); font-weight: 700; font-size: 18px; text-align: center; padding: 16px; margin-top: 20px; white-space: pre-line; }
.code-box { background: var(--surface); text-align: center; min-height: 64px; padding: 16px; font-size: 20px; margin-bottom: 24px; cursor: pointer; overflow-wrap: anywhere; }
.code-box:active { background: #313a44; }
.logo-wide { display: block; max-height: 50px; max-width: 100%; margin: 0 auto 20px; }
.logo-core { display: block; width: 88px; height: auto; margin: 0 auto 16px; }

.avatar { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; margin-right: 14px; }
.avatar.big { width: 80px; height: 80px; font-size: 28px; margin: 0 auto; }
.pill { display: inline-block; color: var(--primary-light); background: var(--primary-soft); border-radius: 12px; padding: 2px 10px; font-size: 12px; margin-top: 6px; }
.tag { display: inline-block; border-radius: 10px; padding: 2px 8px; font-size: 11px; font-weight: 700; }
.dot { display: inline-block; flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--hint); }
.stripe-card { display: flex; }
.stripe-card .stripe { width: 5px; flex: 0 0 auto; }
.stripe-card .body { flex: 1 1 auto; min-width: 0; padding: 12px 14px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flex { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1 1 auto; min-width: 0; }
.bold { font-weight: 700; }

/* uživatel */
.user-head { text-align: center; margin-top: 24px; }
.user-head .name { font-size: 20px; font-weight: 700; margin-top: 12px; }
.user-head .pill { font-size: 13px; margin-top: 8px; }

/* menu (bottom sheet) */
.menu-entry { display: flex; align-items: center; min-height: 64px; padding: 0 24px; cursor: pointer; }
.menu-entry .circle { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; margin-right: 16px; flex: 0 0 auto; }
.menu-entry .circle .ico { width: 24px; height: 24px; color: var(--primary-light); }
.menu-entry .t { flex: 1 1 auto; font-size: 16px; }
.menu-entry .chev { width: 24px; height: 24px; color: var(--hint); }

/* docházka */
.att-head { display: flex; align-items: center; gap: 12px; }
.att-head .dot { width: 14px; height: 14px; }
.att-worked { text-align: right; }
.att-worked .k { color: var(--hint); font-size: 12px; }
.att-worked .v { font-size: 24px; font-weight: 700; line-height: 1.2; }
.att-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.att-grid .btn { min-height: 56px; min-width: 0; padding: 8px; }
.att-grid .btn span, .card .flex .btn span { min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-rec { display: flex; align-items: center; padding: 6px 0; gap: 6px; }
.att-rec .tm { font-weight: 700; min-width: 52px; }
.att-rec .dot { width: 10px; height: 10px; }
.locked { background: var(--surface); padding: 14px; border-radius: 12px; margin-top: 12px; }

/* výkaz práce */
.ts-nav { margin-top: 12px; flex: 0 0 auto; }
.ts-nav .btn.icon-only { width: 44px; min-height: 44px; }
.week-label { flex: 1 1 auto; min-width: 0; min-height: 44px; background: none; border: 0; color: var(--text); font-weight: 700; font-size: 15px; cursor: pointer; border-radius: 8px; }
.week-label:active { background: rgba(255, 255, 255, .06); }
.ts-total { font-size: 28px; font-weight: 700; line-height: 1.2; }
.ts-progress { background: var(--selected); margin-top: 10px; }
.ts-progress div { background: var(--primary-light); transition: width .2s; }
.ts-day { display: flex; align-items: center; width: 100%; gap: 8px; background: none; border: 0; padding: 14px 4px 6px; font-weight: 700; font-size: 15px; text-align: left; cursor: pointer; }
.ts-day.today .grow { color: var(--primary-light); }
.ts-rec { margin-bottom: 6px; align-items: center; }
.ts-rec .stripe { width: 4px; align-self: stretch; }
.ts-rec .body { padding: 10px 8px 10px 12px; }
.ts-line { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ts-lock { width: 16px; height: 16px; color: var(--hint); flex: 0 0 auto; }
.ts-min { font-size: 16px; font-weight: 700; padding: 0 14px 0 8px; white-space: nowrap; }
.chip.quick, .chip.filter { border: 1px solid var(--outline); background: transparent; color: var(--text); padding: 6px 12px; cursor: pointer; }
.chip.quick:active { background: var(--selected); }
.chip.filter { flex: 0 0 auto; min-height: 48px; }
.chip.filter.on { background: var(--selected); border-color: var(--primary-light); }
.field.fixed label { top: -8px; font-size: 12px; }
.field input[type=date] { min-height: 56px; }
.field.disabled, .switch.disabled { opacity: .5; }
.dialog .d-form { overflow-y: auto; margin: 0 -24px; padding: 4px 24px 0; }
.dialog .field label { background: var(--surface); }

/* kniha úkolů */
.task-card { align-items: stretch; margin-bottom: 8px; }
.task-card .stripe { width: 4px; }
.task-card .body { padding: 10px 14px 10px 0; }
.task-check { display: flex; align-items: flex-start; padding: 12px 10px 0 12px; cursor: pointer; }
.task-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--primary-light); }
.task-note { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.task-card.done .task-note { text-decoration: line-through; opacity: .7; }
.overdue { color: var(--down); font-weight: 700; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

/* chat */
.chat-user { font-size: 13px; font-weight: 700; color: var(--st-active); }
.chat-user.me { color: var(--primary-light); }
.chat-msg { font-size: 15px; margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.card.important { box-shadow: inset 0 0 0 2px var(--primary-light); }
.compose-row { display: flex; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
.compose-row .field { flex: 1 1 auto; margin-top: 0; }
.compose-row textarea { min-height: 48px; max-height: 120px; padding: 18px 12px 6px; resize: none; }
.compose-row .btn.icon-only { margin-bottom: 0; }

/* pošta */
.mail-card { display: flex; }
.mail-card .bar { width: 4px; flex: 0 0 auto; background: transparent; }
.mail-card.unread .bar { background: var(--primary-light); }
.mail-card .body { flex: 1 1 auto; min-width: 0; padding: 10px 14px; }
.mail-card.unread .who, .mail-card.unread .subj { font-weight: 700; }
.mail-card .who { font-size: 15px; }
.mail-card .subj { font-size: 14px; }
.mail-card .ex { color: var(--hint); font-size: 13px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mail-card .ico { width: 16px; height: 16px; flex: 0 0 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--selected); border-radius: 8px; padding: 6px 6px 6px 12px; font-size: 14px; }
.chip button { background: none; border: 0; padding: 0; width: 22px; height: 22px; color: var(--hint); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chip button .ico { width: 18px; height: 18px; }

/* článek / zpráva */
.doc { padding: 8px 4px 24px; }
.doc h1 { font-size: 22px; line-height: 1.3; margin: 10px 0 6px; }
.doc .meta { color: var(--hint); font-size: 13px; }
.doc hr { border: 0; border-top: 1px solid var(--divider); margin: 12px 0; }
.doc .mod { color: var(--hint); font-size: 12px; margin-top: 16px; }
.doc table.hdr { border-collapse: collapse; font-size: 13px; }
.doc table.hdr td { padding: 1px 0; vertical-align: top; }
.doc table.hdr td.k { color: var(--hint); padding-right: 10px; white-space: nowrap; }
.doc .content-frame { display: block; width: 100%; border: 0; min-height: 40px; background: transparent; }
.files { margin-top: 16px; }
.files .t { color: var(--hint); font-size: 13px; margin-bottom: 6px; }
.files a { display: block; padding: 10px 12px; margin-bottom: 6px; border-radius: 10px; background: var(--surface); color: var(--link); text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.files a span { color: var(--hint); font-size: 12px; margin-left: 6px; }

/* zakázky */
.order-uid { color: var(--hint); font-size: 13px; }
.order-cust { font-size: 16px; font-weight: 700; margin-top: 6px; }
.order-price { color: var(--primary-light); font-size: 15px; font-weight: 700; white-space: nowrap; }
.status-pill { display: inline-block; border-radius: 12px; padding: 2px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.order-head { padding: 18px; margin-top: 16px; margin-bottom: 4px; }
.order-head .cust { font-size: 22px; font-weight: 700; margin-top: 10px; line-height: 1.25; }
.progress { height: 4px; border-radius: 2px; margin-top: 16px; overflow: hidden; }
.progress div { height: 100%; border-radius: 2px; }
.order-head .sep { height: 1px; background: var(--divider); margin: 14px 0; }
.order-head .price { color: var(--primary-light); font-size: 22px; font-weight: 700; text-align: right; }

/* monitoring */
.mchips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0 4px; }
.mchip { border-radius: 8px; padding: 6px 12px; font-size: 14px; }

/* webview */
.web-frame { flex: 1 1 auto; width: 100%; border: 0; background: #fff; margin-top: 12px; border-radius: 4px; }

/* ---------- toast, dialog, bottom sheet, tažení dolů ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 88px); transform: translateX(-50%) translateY(20px);
  max-width: min(90vw, 520px); background: #E6E8EB; color: #1d2126; border-radius: 22px;
  padding: 10px 18px; font-size: 14px; text-align: center; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 50; white-space: pre-line; box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 40; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.dialog { background: var(--surface); border-radius: 28px; padding: 24px; width: 100%; max-width: 420px; max-height: 85vh; display: flex; flex-direction: column; }
.dialog .d-icon { width: 24px; height: 24px; color: var(--primary-light); margin: 0 auto 16px; display: block; }
.dialog h2 { font-size: 22px; font-weight: 400; margin: 0 0 16px; text-align: center; line-height: 1.3; }
.dialog .d-msg { color: var(--hint); font-size: 14px; white-space: pre-line; overflow-y: auto; }
.dialog .d-list { overflow-y: auto; margin: 0 -24px; padding: 0 24px; }
.dialog .d-list label { display: flex; align-items: center; gap: 16px; min-height: 48px; font-size: 16px; cursor: pointer; }
.dialog .d-list input { width: 20px; height: 20px; accent-color: var(--primary-light); }
.dialog .d-btns { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.dialog .d-btns .spacer { flex: 1 1 auto; }

.sheet-wrap { align-items: flex-end; padding: 0; }
.sheet { background: var(--surface); width: 100%; max-width: 640px; border-radius: 28px 28px 0 0; padding: 0 0 calc(var(--safe-bottom) + 16px); max-height: 85vh; overflow-y: auto; animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(40%); opacity: .4; } }
.sheet .handle { width: 32px; height: 4px; border-radius: 2px; background: var(--hint); opacity: .5; margin: 16px auto 22px; }
.sheet .s-title { font-size: 20px; font-weight: 700; padding: 0 24px; }
.sheet .s-sub { color: var(--hint); font-size: 14px; padding: 0 24px; margin: 2px 0 12px; }

.ptr { position: absolute; left: 50%; top: 0; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; background: var(--surface); box-shadow: 0 2px 8px rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; z-index: 5; transform: translateY(-48px); opacity: 0; pointer-events: none; }
.ptr .spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--primary-light); border-right-color: transparent; }
.ptr.loading .spin { animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* QR skener */
.scanner { position: fixed; inset: 0; z-index: 45; background: #000; display: flex; flex-direction: column; }
.scanner video { flex: 1 1 auto; width: 100%; min-height: 0; object-fit: cover; }
.scanner .frame { position: absolute; left: 50%; top: 42%; width: min(70vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%); border: 3px solid rgba(255,255,255,.85); border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); pointer-events: none; }
.scanner .bar { padding: 16px 24px calc(var(--safe-bottom) + 20px); background: var(--bg); text-align: center; }
.scanner .bar p { margin: 0 0 12px; color: var(--hint); }

.install-tip { background: var(--surface); border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; color: var(--hint); font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.install-tip .ico { width: 20px; height: 20px; color: var(--primary-light); flex: 0 0 auto; margin-top: 1px; }
.install-tip button { margin-left: auto; background: none; border: 0; color: var(--hint); cursor: pointer; padding: 0 0 0 8px; font-size: 18px; line-height: 1; }

.ico { display: inline-block; fill: currentColor; }
