/* app.css - Site Induction additions on top of core.css. Big, simple worker screens. */
.center { text-align: center; }
.lbl { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 5px; color: var(--deep); }
.grid1 { display: grid; grid-template-columns: 1fr; }
.btn.big { min-height: 72px; font-size: 1.2rem; margin: 4px 0 16px; }
.btn.small { min-height: 44px; width: auto; padding: 6px 14px; font-size: .95rem; }
.pill.warn { background: #f8e9c9; color: #7a4f0b; }
.stat b.bad { color: var(--danger); }
.checks { list-style: none; padding: 0; margin: 0 0 14px; }
.checks li a { display: flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.checks li.ok a { color: var(--ok); font-weight: 600; }
.logoprev { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; text-align: center; }
.logoprev img { max-height: 90px; max-width: 100%; }
.lock { max-width: 420px; margin: 30px auto; text-align: center; }
.lock input, #xpin { text-align: center; font-size: 1.6rem; letter-spacing: .4em; }
.kvs { display: grid; gap: 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee5cf; }
.kv > span { color: var(--muted); font-size: .92rem; flex: 0 0 42%; }
.kv > b { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.sigimg { width: 100%; max-width: 420px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-top: 8px; display: block; }

/* kiosk (worker) mode */
body.kiosk .bar { background: var(--deep); }
.bar .lang { flex-direction: column; font-size: 1.2rem; gap: 0; }
.bar .lang small { font-size: .65rem; font-weight: 700; letter-spacing: .05em; }
.wk { max-width: 640px; margin: 0 auto; }
.wk h1 { font-size: 1.6rem; }
.wk .en { display: block; font: italic .82em/1.35 var(--sans); color: var(--muted); margin-top: 2px; }
.wk h1 .en, .wk h3 .en { font-size: .55em; font-family: var(--sans); }
.wprog { margin-bottom: 10px; }
.wk-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(246,241,228,.97); border-top: 1px solid var(--line); }
.wk-actions .btn { min-height: 62px; font-size: 1.1rem; }
.wk-actions .btn.primary { flex: 2; }
.lead { font-size: 1.15rem; }
.welcome { text-align: center; padding-top: 10px; }
.welcome .notice { text-align: left; }
.biglogo { max-width: 220px; max-height: 110px; object-fit: contain; background: #fff; border-radius: 12px; padding: 8px; border: 1px solid var(--line); }
.langs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.langbtn { min-height: 72px; border-radius: 14px; border: 2px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 600 1.15rem var(--sans); color: var(--deep); cursor: pointer; }
.langbtn span { font: 400 .8rem var(--sans); color: var(--muted); }
.langbtn.on { border-color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.opt { font-style: normal; font-weight: 400; color: var(--muted); font-size: .85em; }
label.f > span .en { display: inline; margin-left: 6px; font-size: .85em; }
.tick { display: flex; gap: 14px; align-items: center; min-height: 72px; padding: 12px 14px; margin: 18px 0 8px; border: 2px solid var(--gold); border-radius: 14px; background: #fffaf0; font-weight: 600; cursor: pointer; }
.tick input { width: 34px; height: 34px; min-height: 34px; }
.tick.on { border-color: var(--ok); background: #e5f1e8; }
.tick .en { font-weight: 400; }
.decl .tick { margin: 8px 0; min-height: 60px; }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.rules { padding-left: 1.4em; margin: 0; } .rules li { padding: 8px 0; border-bottom: 1px solid #eee5cf; font-size: 1.05rem; }
.ppegrid, .ppepick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.ppeitem { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; font-weight: 600; }
.ppeitem svg { width: 72px; height: 72px; }
.ppeitem.pick { position: relative; cursor: pointer; }
.ppeitem.pick input { position: absolute; top: 8px; left: 8px; }
.ppeitem.pick:has(input:not(:checked)) svg { opacity: .3; }
.card.fire { border-color: var(--danger); border-width: 2px; }
.card ol, .card ul { padding-left: 1.3em; margin: 0; } .card li { padding: 4px 0; }
.note { background: #fff; border-left: 4px solid var(--gold); padding: 8px 12px; border-radius: 6px; }
.enonly { font-size: .85rem; color: var(--warn); }
.contact { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; display: grid; gap: 2px; }
.contact .role { color: var(--muted); font-size: .92rem; } .contact b { font-size: 1.2rem; }
.contact a { font-size: 1.1rem; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.haz { background: #fff8e1; border: 2px solid #E8B923; border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; }
.haz h3 { margin: 0 0 4px; } .haz p { margin: 0; }
.plan { margin: 0 0 12px; } .plan img { width: 100%; border-radius: 12px; border: 1px solid var(--line); } .plan figcaption { color: var(--muted); font-size: .9rem; }
.stopsign { width: 110px; height: 110px; margin: 0 auto 10px; background: var(--danger); color: #fff; font: 800 1.6rem var(--sans); display: flex; align-items: center; justify-content: center; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
ul.big { font-size: 1.1rem; padding-left: 1.2em; } ul.big li { padding: 6px 0; }
.card.help p { margin: 6px 0; }
h1.q { font-size: 1.35rem; }
.opts { display: grid; gap: 10px; }
.opts .opt { min-height: 62px; text-align: left; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font: 600 1.02rem var(--sans); color: var(--ink); cursor: pointer; }
.opts .opt .en { font-weight: 400; }
.opts .opt.right { border-color: var(--ok); background: #e5f1e8; }
.opts .opt.wrong { border-color: var(--danger); background: #fbe9e6; text-decoration: line-through; }
.opts .opt[disabled]:not(.right) { opacity: .55; }
.feedback .good { color: var(--ok); font-weight: 700; font-size: 1.1rem; } .feedback .bad { color: var(--danger); font-weight: 700; }
.sighead { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
canvas.sig { width: 100%; height: 200px; background: #fff; border: 2px dashed var(--green); border-radius: 14px; touch-action: none; display: block; }
.wphoto { width: 100%; max-height: 50vh; object-fit: contain; border-radius: 12px; margin: 8px 0 12px; background: #000; }
.done { text-align: center; padding-top: 30px; }
.bigtick { width: 110px; height: 110px; margin: 0 auto 12px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 4rem; display: flex; align-items: center; justify-content: center; }
.handback { font-size: 1.2rem; font-weight: 600; background: var(--paper); border: 2px solid var(--gold); border-radius: 14px; padding: 14px; }
@media (min-width: 700px) {
  .langs { grid-template-columns: repeat(3, 1fr); }
  .ppegrid, .ppepick { grid-template-columns: repeat(4, 1fr); }
  .wk h1 { font-size: 1.9rem; }
  .wk-actions { justify-content: center; } .wk-actions .btn { max-width: 300px; }
}
@media (max-width: 380px) { .g-resp { grid-template-columns: 1fr; } }
/* keep focused/scrolled-to controls clear of the sticky top bar and fixed bottom buttons */
body.kiosk main { padding-bottom: 40px; }
.tick, .opt, .wk input, .wk textarea, canvas.sig { scroll-margin: 90px 0 120px; }
.wk-actions .btn { flex: 1; white-space: nowrap; padding: 10px 12px; }
.wk-actions .btn.primary { flex: 2; }

/* ---------- 1.1: card photos, certificates ---------- */
.cardshots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.cardslot { border: 2px dashed var(--line); border-radius: 14px; padding: 10px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.cardslot.has { border-style: solid; border-color: var(--ok); }
.cardslot img { width: 100%; aspect-ratio: 1.586; object-fit: cover; border-radius: 8px; background: #eee; }
.cardph { aspect-ratio: 1.586; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; background: var(--paper); border-radius: 8px; color: var(--muted); }
.cardslot .btn { min-height: 52px; padding: 8px; }
.cardslot label.btn input { display: none; }
.certrow { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 2px; margin-bottom: 10px; background: #fffef9; }
.certrow .del, .person .del, .itemcard .del { position: absolute; top: 4px; right: 4px; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--danger); font-size: 1.3rem; cursor: pointer; }
.certrow select { padding-right: 40px; }
.certfile { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.certfile img { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.pdfchip { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 10px; background: #fbe9e6; color: #8a2a1c; font-weight: 600; overflow-wrap: anywhere; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 88px; min-height: 44px; cursor: pointer; font: inherit; }
.thumb img { width: 120px; height: 76px; object-fit: cover; border-radius: 6px; }
.thumb small { color: var(--muted); font-size: .75rem; }
.item .thumb img { width: 64px; height: 44px; }
.pdfthumb { width: 64px; height: 44px; display: flex; align-items: center; justify-content: center; background: #fbe9e6; color: #8a2a1c; font-weight: 800; border-radius: 6px; }

/* ---------- 1.1: contacts with photos ("Who's who") ---------- */
.person { position: relative; display: flex; gap: 12px; align-items: flex-start; border-bottom: 1px solid #eee5cf; padding: 8px 40px 4px 0; margin-bottom: 8px; }
.person .grow { flex: 1; min-width: 0; }
.pphoto { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; flex: 0 0 96px; }
.pphoto .btn { width: 100%; padding: 6px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--paper); border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; flex: 0 0 auto; }
.avatar.big { width: 84px; height: 84px; font-size: 2.3rem; }
.whoswho .contact { display: flex; align-items: center; gap: 14px; }
.whoswho .cinfo { display: grid; gap: 2px; min-width: 0; }
.whoswho.small .avatar { width: 48px; height: 48px; font-size: 1.4rem; }
@media (max-width: 380px) { .person { flex-direction: column; } .pphoto { flex-direction: row; width: auto; flex: none; } }

/* ---------- 1.1: emergency / welfare items ---------- */
.itemcard { position: relative; }
.itemcard h3 { margin: 0 0 6px; }
.items { display: grid; gap: 10px; margin: 8px 0 12px; }
.itemw { background: #fff; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; }
.itemph { display: flex; gap: 4px; overflow-x: auto; background: #111; }
.itemph img { height: 190px; max-width: 100%; object-fit: cover; flex: 0 0 auto; }
.itemph img:only-child { width: 100%; }
.itemtx { padding: 10px 14px; }
.itemtx h3 { margin: 0 0 4px; font-size: 1.15rem; }
.itemtx .loc { margin: 0; font-size: 1.15rem; font-weight: 700; }
.seeplan { margin: 6px 0 0; color: var(--green); font-weight: 600; }
@media (min-width: 700px) { .items { grid-template-columns: 1fr 1fr; } }

/* ---------- 1.1: site layout plans ---------- */
.pz { position: relative; overflow: hidden; touch-action: none; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; user-select: none; -webkit-user-select: none; }
.pz-in { position: absolute; inset: 0; transform-origin: 0 0; }
.pz-in img { width: 100%; height: 100%; display: block; pointer-events: none; }
.pz-route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pz-route polyline { fill: none; stroke: #0D47A1; stroke-dasharray: 2 1; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.pin { position: absolute; width: 30px; height: 30px; margin: 0; padding: 0; border-radius: 50%; border: 2px solid #fff; color: #fff; font: 800 .85rem var(--sans); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.45); transform: translate(-50%, -50%) scale(var(--inv, 1)); cursor: grab; touch-action: none; }
.pz-zoom { display: flex; gap: 8px; justify-content: center; margin: 8px 0; }
.pz-zoom .btn { width: 64px; flex: 0 0 auto; font-size: 1.3rem; }
.legend { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 6px; }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend .dot { width: 26px; height: 26px; border-radius: 50%; color: #fff; font: 800 .8rem var(--sans); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.legend .routekey { width: 26px; height: 0; border-top: 4px dashed #0D47A1; flex: 0 0 auto; }
@media (min-width: 700px) { .legend { grid-template-columns: 1fr 1fr; } }
.planbox { margin-bottom: 16px; }
.planitem img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.planitem .btn.small { flex: 0 0 auto; }
.planed { position: fixed; inset: 0; z-index: 45; background: var(--cream); display: flex; flex-direction: column; overflow: auto; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.pe-top { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.pe-top input { flex: 1; }
.pe-tools .row { display: flex; gap: 8px; margin-top: 8px; }
.pe-tools p { margin: 6px 0; }
.pe-stage { margin-top: 4px; }

/* ---------- 1.1: quiz editor ---------- */
.qlist { display: grid; gap: 8px; margin: 10px 0 14px; }
.qitem { border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; background: #fff; }
.qitem:not(.on) { opacity: .75; }
.qitem .check { margin: 0; }
.qbtns { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 0 6px 40px; }
.qbtns .btn.small { min-height: 44px; }
.qopt { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.qopt input[type=radio] { width: 28px; height: 28px; min-height: 28px; flex: 0 0 auto; }
.qopt input[type=text] { flex: 1; }
.qph { width: 100%; max-height: 40vh; object-fit: contain; border-radius: 12px; margin: 6px 0 12px; background: #fff; border: 1px solid var(--line); }

/* ---------- 1.1: onboarding ---------- */
.steps8 { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.steps8 a, .steps8 button { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; width: 100%; font: 600 1.05rem var(--sans); text-align: left; cursor: pointer; }
.steps8 .num { width: 34px; height: 34px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: 0 0 auto; }
.steps8 .grow { flex: 1; display: grid; }
.steps8 small { color: var(--green); font-size: .8rem; font-weight: 700; }
.steps8 li.ok .num { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps8 li.ok a, .steps8 li.ok button { color: var(--muted); }
.steps8 li.next a, .steps8 li.next button { border-color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); background: #fffaf0; }
.steps8 button[disabled] { opacity: .55; }
.stepof { margin: 8px 0 -6px; color: var(--muted); font-weight: 700; font-size: .85rem; letter-spacing: .03em; text-transform: uppercase; }
details.adv { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; margin: 14px 0; background: #fff; }
details.adv > summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; cursor: pointer; color: var(--deep); }
.intro { position: fixed; inset: 0; z-index: 70; background: var(--deep); color: #f6f1e4; display: flex; flex-direction: column; padding: 24px 16px calc(16px + env(safe-area-inset-bottom)); }
.intro-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.intro-track::-webkit-scrollbar { display: none; }
.intro .slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 12px; }
.intro .ic { font-size: 4.5rem; margin-bottom: 16px; }
.intro h2 { color: #f6f1e4; font-size: 1.6rem; max-width: 420px; }
.intro .dots { display: flex; justify-content: center; gap: 8px; margin: 12px 0; }
.intro .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); }
.intro .dots i.on { background: var(--gold); }
.intro .row { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; width: 100%; }
.intro .btn.ghost { color: #f6f1e4; }
.intro .btn { min-height: 56px; }

/* v1.2 (8 Nov 2026): set-up on ONE scrolling page; plainer look (thin lines instead of boxes, 2 button styles, bigger text) */
body { font-size: 18px; }
.btn.gold { background: var(--green); border-color: var(--green); color: #fff; }
.btn.danger { border-color: var(--green); color: var(--green); }
.btn.big { min-height: 64px; font-size: 1.12rem; }
.progline { margin: 0 0 12px; font-size: 1rem; color: var(--deep); }
.progline .progress { display: block; margin-top: 6px; }
details.ssec { border-top: 1px solid var(--line); }
details.ssec > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 64px; cursor: pointer; font: 700 1.2rem var(--serif); color: var(--deep); }
details.ssec > summary::-webkit-details-marker { display: none; }
details.ssec > summary::after { content: '\25BE'; font: 1.2rem var(--sans); color: var(--muted); }
details.ssec[open] > summary::after { content: '\25B4'; }
details.ssec .num, .ssec-end .num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--cream); border: 2px solid var(--line); font: 700 1rem var(--sans); color: var(--deep); }
details.ssec.ok .num { background: var(--ok); border-color: var(--ok); color: #fff; }
details.ssec .st { font: 600 .85rem var(--sans); color: var(--muted); }
details.ssec.ok .st { color: var(--ok); }
.ssec-body { padding: 0 0 18px; }
.ssec-body .card { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 0 0; }
.ssec-body h3 { margin-top: 16px; }
.ssec-end { border-top: 1px solid var(--line); padding-top: 14px; }
.ssec-end h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
#setup-go { margin-bottom: 12px; }
.iconbtn.lab { font: 600 1rem var(--sans); padding: 0 10px; min-width: 0; white-space: nowrap; }
