/* Team app additions on top of app.css (Apple HIG layer, Lato) */
.viewas.four { grid-template-columns: repeat(4, 1fr); }
.viewas.four button span { font-size: 11px; }
.side-foot a + a { margin-left: 2px; }

.tab { position: relative; }
.tab-badge { position: absolute; top: 4px; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; display: grid; place-items: center; }

.hero.short { height: 340px; }
.tile .v.big { font-size: 34px; letter-spacing: -0.03em; margin-top: 6px; line-height: 1; }
.tile .v.big small { font-size: 15px; color: var(--label-2); letter-spacing: 0; font-weight: 400; }
.tile .s b.red, .red { color: var(--red); font-weight: 700; }
.t-wide { grid-column: span 2; }
.section-h .count { font-size: 15px; font-weight: 700; color: var(--label-2); }
.ini.sm { width: 30px; height: 30px; font-size: 11px; }
.ini.big { width: 48px; height: 48px; font-size: 16px; }
.logo-sq { width: 60px; height: 60px; border-radius: 16px; background: var(--tint); color: #fff; font-weight: 900; font-size: 20px; display: grid; place-items: center; flex: none; }
.time-col { width: 54px; flex: none; font-weight: 900; font-size: 17px; color: var(--label); line-height: 1.1; }
.time-col small { display: block; font-size: 12px; font-weight: 400; color: var(--label-2); }
.act svg { flex: none; }
.act b.red { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 99px; background: var(--red); color: #fff; font-size: 12px; padding: 0 5px; vertical-align: 1px; }
.n-meta i.num { width: auto; height: 20px; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; font-style: normal; display: grid; place-items: center; }
.best { font-style: normal; font-size: 12px; font-weight: 700; color: #248A3D; background: #E3F5E8; padding: 2px 7px; border-radius: 99px; margin-left: 6px; }
.amt { font-weight: 700; font-size: 15px; white-space: nowrap; }
.thumb.after { background-image: url(img/meeting.jpg); }
.blk.blocked { background: repeating-linear-gradient(135deg, #D5D9E0 0 6px, #C7CCD4 6px 12px); color: #3C4350; }

/* horizontal bars (reports) */
.hbars { padding: 10px 16px; }
.hbar { display: grid; grid-template-columns: 86px 1fr 28px; align-items: center; gap: 10px; padding: 7px 0; font-size: 15px; }
.hbar i { height: 10px; border-radius: 6px; background: var(--tint); display: block; }
.hbar b { text-align: right; font-weight: 700; }

/* technician */
.job-hero { width: 100%; text-align: left; background: var(--tint); color: #fff; border-radius: 22px; padding: 18px; display: grid; gap: 6px; }
.job-hero .k { font-size: 13px; color: rgba(255,255,255,.75); }
.job-hero .disp { font-size: 30px; }
.job-hero .m { font-size: 15px; color: rgba(255,255,255,.85); }
.job-hero .row-meta { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 14px; font-weight: 700; }
.job-hero .row-meta > span:first-child { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.16); padding: 6px 12px; border-radius: 99px; }
.job-hero .row-meta svg { width: 16px; height: 16px; }
.progress-card { background: var(--sys-card); border-radius: 22px; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.progress-card .k { display: block; font-size: 13px; color: var(--label-2); }
.progress-card .disp { font-size: 26px; display: block; margin-top: 4px; }
.ring { --p: 50; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--tint) calc(var(--p) * 1%), var(--fill) 0); display: grid; place-items: center; flex: none; }
.ring span { width: 50px; height: 50px; border-radius: 50%; background: var(--sys-card); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.row.check .t1 { font-size: 16px; }
.row.check.ok .t1 { color: var(--label-2); text-decoration: line-through; text-decoration-color: var(--label-3); }
.tick-btn { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--label-3); display: grid; place-items: center; flex: none; color: #fff; }
.row.check.ok .tick-btn { background: #34C759; border-color: #34C759; }
.tick-btn svg { width: 16px; height: 16px; stroke-width: 3; }
.row.check + .row.check::before { left: 58px; }

/* scanner */
.app.dark-app { background: #000; }
.app.dark-app .statusbar { background: transparent; color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.scanner { min-height: 100%; height: 100%; background: radial-gradient(120% 80% at 50% 40%, #2a3344 0%, #0b0f17 70%); color: #fff; padding-top: 54px; display: flex; flex-direction: column; }
.scanner .nav-btn { background: rgba(255,255,255,.18); color: #fff; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.3); }
.viewfinder { position: relative; width: 250px; height: 250px; margin: 60px auto 0; border-radius: 28px; background: rgba(255,255,255,.04); }
.corner { position: absolute; width: 44px; height: 44px; border: 4px solid #fff; }
.corner.c-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 28px; }
.corner.c-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 28px; }
.corner.c-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 28px; }
.corner.c-br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 28px; }
.scanline { position: absolute; left: 22px; right: 22px; height: 2px; top: 50%; background: var(--red); border-radius: 2px; animation: scan 2.2s ease-in-out infinite alternate; }
@keyframes scan { from { top: 18%; } to { top: 82%; } }
.scan-hint { text-align: center; margin-top: 22px; font-size: 15px; color: rgba(255,255,255,.8); }
.scan-actions { margin-top: auto; padding: 0 16px 40px; display: grid; gap: 8px; }
.btn.quiet.light { color: #fff; }
@media (prefers-reduced-motion: reduce) { .scanline { animation: none; top: 50%; } }
.app.dark-app .screen { padding-bottom: 0; height: 100%; }

/* staff sign in */
.mfa-card { margin: 22px 16px 0; background: var(--sys-card); border-radius: 22px; padding: 26px 16px 20px; display: grid; justify-items: center; gap: 12px; }
.mfa-num { font-size: 84px; font-weight: 900; color: var(--tint); letter-spacing: -0.03em; line-height: 1; }
.mfa-wait { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--label-2); }
.spinner.sm { width: 18px; height: 18px; border-width: 2.5px; margin: 0; }
.code-field { font-size: 24px; font-weight: 700; letter-spacing: .12em; text-align: center; }
.face-ico { width: 84px; height: 84px; border-radius: 24px; background: var(--tint); color: #fff; display: grid; place-items: center; margin: 0 auto; }
.face-ico svg { width: 46px; height: 46px; stroke-width: 1.6; }

/* sales + models */
.viewas.five { grid-template-columns: repeat(6, 1fr); }
.viewas.five button { grid-column: span 2; }
.viewas.five button:nth-child(n+4) { grid-column: span 3; }
.viewas.five button span { font-size: 12px; }
.chip.model { background: var(--tint); color: #fff; }
.chip.model.bts { background: #8A4B2A; color: #fff; }
.stage-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 14px 16px 0; }
.stage-bar span { font-size: 11px; font-weight: 700; color: var(--label-2); display: grid; gap: 6px; }
.stage-bar i { height: 6px; border-radius: 3px; background: var(--fill-2); display: block; }
.stage-bar .done i { background: var(--tint); }
.stage-bar .cur i { background: var(--red); }
.stage-bar .cur { color: var(--label); }
.space-card { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 0 16px 10px; background: var(--sys-card); border-radius: 22px; padding: 10px 14px 10px 10px; text-align: left; }
.space-card .sp-img { width: 64px; height: 64px; border-radius: 14px; background: var(--fill) center/cover; flex: none; }
.space-card.big .sp-img { width: 84px; height: 84px; }
.space-card .txt { flex: 1; min-width: 0; }
.space-card .t1 { display: block; font-size: 17px; font-weight: 700; }
.space-card .t2 { display: block; font-size: 14px; color: var(--label-2); }
.space-card .t3 { display: block; font-size: 14px; color: var(--label); margin-top: 2px; }
.space-card .chip { align-self: flex-start; white-space: normal; text-align: center; max-width: 92px; }
.space-card .chev { width: 14px; height: 14px; color: var(--label-3); }
.hbar.wide { grid-template-columns: 140px 1fr 40px; }
.mini-ring { --p: 50; width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(var(--tint) calc(var(--p) * 1%), var(--fill-2) 0); flex: none; -webkit-mask: radial-gradient(circle, transparent 9px, #000 10px); mask: radial-gradient(circle, transparent 9px, #000 10px); }

/* six people + design */
.viewas.six { grid-template-columns: repeat(3, 1fr); }
.viewas.six button { grid-column: auto; }
.plan-card { margin: 16px 16px 0; background: var(--sys-card); border-radius: 22px; padding: 14px; }
.plan-card svg { width: 100%; height: auto; display: block; }
.plan-cap { display: block; font-size: 13px; color: var(--label-2); margin-top: 8px; }
