/* ARI Showcase: app, call and owner scenes (A2). Uses base.css tokens and the --b-* business theme. */
.ops-scene { align-items: center; justify-content: center; gap: 18px; }
.ops-scene .ic { flex: none; }
.ops-phonewrap { flex: none; display: flex; align-items: center; justify-content: center; }
.ops-side { gap: 12px; }
.ops-side p { font-size: 14.5px; line-height: 1.5; }
.ops-logo { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.ops-logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.ops-logo.big { width: 92px; height: 92px; border-radius: 26px; }
.ops-mono { font: 700 20px/1 var(--b-display); color: var(--b-primary); }
.ops-logo.big .ops-mono { font-size: 40px; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 12px/1 var(--b-body); white-space: nowrap; }
.pill.new { background: color-mix(in srgb, var(--b-primary) 14%, transparent); color: var(--ops-ptext, var(--b-primary)); }
.pill.booked { background: #dff3e4; color: #1d6b34; }
.pill.callback { background: #fdebc8; color: #7a4d00; }

/* ---------- app ---------- */
.ap { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--b-surface); color: var(--b-ink); font-family: var(--b-body); font-size: 15px; line-height: 1.4; }
.ap-sb { flex: none; height: 46px; padding: 0 30px 7px; display: flex; align-items: flex-end; justify-content: space-between; font: 600 15px/1 var(--b-body); background: var(--b-primary); color: var(--b-primary-ink); }
.ap-sig { display: flex; gap: 2px; align-items: flex-end; }
.ap-sig i { width: 3px; background: currentColor; border-radius: 1px; } .ap-sig i:nth-child(1){height:4px}.ap-sig i:nth-child(2){height:7px}.ap-sig i:nth-child(3){height:10px}.ap-sig i:nth-child(4){height:13px}
.ap-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 6px 18px 14px; background: var(--b-primary); color: var(--b-primary-ink); }
.ap-hname { min-width: 0; display: flex; flex-direction: column; }
.ap-hname b { font: 600 19px/1.15 var(--b-display); letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-hname span { font-size: 12.5px; opacity: .82; }
.ap-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 16px 16px 22px; -webkit-overflow-scrolling: touch; }
.ap-view { --ap-dx: 12px; }
.ap-view.in-f { animation: apStep .22s cubic-bezier(.2,.8,.2,1) both; } .ap-view.in-b { --ap-dx: -12px; animation: apStep .22s cubic-bezier(.2,.8,.2,1) both; }
[dir="rtl"] .ap-view.in-f { --ap-dx: -12px; } [dir="rtl"] .ap-view.in-b { --ap-dx: 12px; }
@keyframes apStep { from { opacity: 0; transform: translateX(var(--ap-dx)); } to { opacity: 1; transform: none; } }
@keyframes apIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.ap-tabs { flex: none; display: flex; padding: 6px 6px 18px; border-top: 1px solid color-mix(in srgb, var(--b-ink) 10%, transparent); background: var(--b-surface); }
.ap-tabs button { flex: 1; min-height: 52px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 500 11px/1 var(--b-body); color: color-mix(in srgb, var(--b-ink) 55%, transparent); position: relative; }
.ap-tabs button.is-on { color: var(--ops-ptext, var(--b-primary)); font-weight: 700; }
.ap-tabs button.is-on::before { content: ""; position: absolute; top: -7px; width: 28px; height: 3px; border-radius: 3px; background: var(--b-accent); }
.ap-h { margin: 6px 0 12px; font: 600 23px/1.2 var(--b-display); letter-spacing: -.01em; }
.ap-note { margin: -4px 0 12px; font-size: 13px; color: color-mix(in srgb, var(--b-ink) 62%, transparent); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ap-hero { position: relative; height: 168px; border-radius: 20px; overflow: hidden; margin-bottom: 12px; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--b-accent) 70%, var(--b-primary)) 0%, transparent 60%), repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 10px, transparent 10px 22px), var(--b-primary); }
.ap-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.62)); }
.ap-hero-t { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; }
.ap-hero-t span { font-size: 13px; opacity: .9; } .ap-hero-t b { font: 600 25px/1.15 var(--b-display); }
.ap-next { width: 100%; text-align: left; border: 0; border-radius: 18px; padding: 14px 44px 14px 16px; margin-bottom: 12px; position: relative; display: flex; flex-direction: column; gap: 3px; background: var(--b-accent); color: var(--ops-accent-ink); min-height: 76px; }
.ap-next b { font: 600 17px/1.2 var(--b-display); } .ap-next em { font-style: normal; font-size: 13.5px; opacity: .88; }
.ap-next .ic { position: absolute; right: 14px; top: 50%; margin-top: -10px; }
.ap-next .tag-sample { align-self: flex-start; background: rgba(0,0,0,.12); color: inherit; margin-bottom: 2px; }
.ap-qg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ap-q { min-height: 76px; border: 1.5px solid color-mix(in srgb, var(--b-ink) 12%, transparent); border-radius: 16px; background: var(--b-surface); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 12px 13px; text-decoration: none; color: var(--b-ink); text-align: left; }
.ap-q .ic { color: var(--ops-ptext, var(--b-primary)); } .ap-q b { font: 600 14.5px/1.2 var(--b-body); }
.ap-card { background: color-mix(in srgb, var(--b-ink) 4.5%, var(--b-surface)); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.ap-card h3 { margin: 0 0 8px; font: 600 14px/1.2 var(--b-body); display: flex; gap: 7px; align-items: center; color: color-mix(in srgb, var(--b-ink) 80%, transparent); }
.ap-card p { margin: 0 0 10px; }
.ap-row { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: 14.5px; align-items: center; }
.ap-row + .ap-row { border-top: 1px solid color-mix(in srgb, var(--b-ink) 8%, transparent); }
.ap-row span { color: color-mix(in srgb, var(--b-ink) 70%, transparent); } .ap-row b { font-weight: 600; text-align: right; }
.ap-row.stack { flex-direction: column; align-items: flex-start; gap: 1px; } .ap-row.stack b { text-align: left; }
.ap-call { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; border-radius: 16px; background: var(--b-primary); color: var(--b-primary-ink); text-decoration: none; font-weight: 700; font-size: 16px; }
.ap-btn { width: 100%; min-height: 52px; border: 0; border-radius: 16px; background: var(--b-primary); color: var(--b-primary-ink); font: 700 16px/1 var(--b-body); margin-top: 8px; }
.ap-btn.ghost { background: none; color: var(--ops-ptext, var(--b-primary)); box-shadow: inset 0 0 0 1.5px currentColor; }
.ap-btn[disabled] { opacity: .35; }
.ap-back { min-height: 44px; border: 0; background: none; color: var(--ops-ptext, var(--b-primary)); font: 600 14px/1 var(--b-body); display: inline-flex; align-items: center; gap: 4px; padding: 0; }
/* v5: numbered step dots (replace the 3-segment line) */
.ap-steps { list-style: none; display: flex; margin: 2px 0 14px; padding: 0; }
.ap-steps li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; font: 600 11.5px/1.15 var(--b-body); color: color-mix(in srgb, var(--b-ink) 50%, transparent); text-align: center; }
.ap-steps li::before { content: ""; position: absolute; top: 13px; inset-inline-end: 50%; width: 100%; height: 2px; background: color-mix(in srgb, var(--b-ink) 12%, transparent); z-index: 0; }
.ap-steps li:first-child::before { display: none; } .ap-steps li.on::before { background: var(--b-primary); }
.ap-steps li i { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 13px/1 var(--b-body); font-style: normal;
  background: var(--b-surface); border: 2px solid color-mix(in srgb, var(--b-ink) 18%, transparent); color: color-mix(in srgb, var(--b-ink) 55%, transparent); transition: background .2s, border-color .2s; }
.ap-steps li.on i { background: var(--b-primary); border-color: var(--b-primary); color: var(--b-primary-ink); }
.ap-steps li.now { color: var(--b-ink); } .ap-steps li.now i { box-shadow: 0 0 0 4px color-mix(in srgb, var(--b-primary) 18%, transparent); }
.ap-opt { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1.5px solid color-mix(in srgb, var(--b-ink) 14%, transparent); border-radius: 14px; background: var(--b-surface); padding: 8px 14px; margin-bottom: 8px; font: 500 15.5px/1.2 var(--b-body); color: var(--b-ink); text-align: left; }
.ap-opt.on { border-color: var(--b-primary); background: color-mix(in srgb, var(--b-primary) 8%, var(--b-surface)); }
.ap-box { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--b-ink) 25%, transparent); display: inline-flex; align-items: center; justify-content: center; color: transparent; flex: none; }
.ap-opt.on .ap-box { background: var(--b-primary); border-color: var(--b-primary); color: var(--b-primary-ink); }
.ap-step { display: inline-flex; align-items: center; gap: 4px; } .ap-step b { min-width: 22px; text-align: center; }
.ap-step button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--b-ink) 22%, transparent); background: var(--b-surface); color: var(--b-ink); display: inline-flex; align-items: center; justify-content: center; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ap-chip { min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--b-ink) 16%, transparent); background: var(--b-surface); font: 600 14.5px/1 var(--b-body); color: var(--b-ink); }
.ap-chip.on { background: var(--b-primary); color: var(--b-primary-ink); border-color: var(--b-primary); }
.ap-fld { display: block; margin-bottom: 10px; } .ap-fld span { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; color: color-mix(in srgb, var(--b-ink) 70%, transparent); }
.ap-fld input { width: 100%; min-height: 48px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--b-ink) 16%, transparent); padding: 0 12px; font: 16px var(--b-body); background: var(--b-surface); color: var(--b-ink); }
.ap-fld input:focus, .ap-comp input:focus { outline: 2px solid var(--b-primary); outline-offset: 1px; }
.ap-pick { width: 100%; border: 0; display: flex; align-items: center; gap: 12px; min-height: 64px; text-align: left; font-size: 16px; color: var(--b-ink); } .ap-pick b { flex: 1; font-weight: 600; } .ap-pick .ic:first-child { color: var(--ops-ptext, var(--b-primary)); }
.ap-done { text-align: center; padding-top: 14px; } .ap-done h2 { margin: 12px 0 6px; font: 600 25px/1.2 var(--b-display); } .ap-done p { margin: 0 auto 16px; max-width: 290px; color: color-mix(in srgb, var(--b-ink) 72%, transparent); }
.ap-done .ap-sum { text-align: left; }
.ap-check { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: var(--b-primary); color: var(--b-primary-ink); animation: apPop .4s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes apPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
[dir="rtl"] .ap-back .ic, [dir="rtl"] .ap-next .ic, [dir="rtl"] .ap-pick .ic:last-child, [dir="rtl"] .ap-lb-nav .ic { transform: scaleX(-1); }
.ap-tl { list-style: none; margin: 0 0 16px; padding: 0; } .ap-tl li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; color: color-mix(in srgb, var(--b-ink) 55%, transparent); }
.ap-tl li::before { content: ""; position: absolute; left: 11px; top: -22px; bottom: 22px; width: 2px; background: color-mix(in srgb, var(--b-ink) 14%, transparent); } .ap-tl li:first-child::before { display: none; }
.ap-tl li i { position: relative; z-index: 1; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--b-ink) 22%, transparent); background: var(--b-surface); display: inline-flex; align-items: center; justify-content: center; color: var(--b-primary-ink); }
.ap-tl li.done i { background: var(--b-primary); border-color: var(--b-primary); } .ap-tl li.done { color: var(--b-ink); }
.ap-tl li.now { color: var(--b-ink); font-weight: 700; } .ap-tl li.now i { border-color: var(--b-primary); box-shadow: 0 0 0 5px color-mix(in srgb, var(--b-primary) 18%, transparent); }
.ap-ph { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ap-slot { aspect-ratio: 1; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, var(--b-ink) 30%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; text-align: center; padding: 4px; background: var(--b-surface) center/cover; color: color-mix(in srgb, var(--b-ink) 70%, transparent); cursor: pointer; position: relative; }
.ap-slot input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.ap-slot.on { border-style: solid; border-color: var(--b-primary); color: #fff; justify-content: flex-end; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.ap-ok { display: flex; gap: 8px; align-items: center; font-weight: 600; color: #1d6b34; }
.ap-ck { width: 100%; min-height: 46px; border: 0; background: none; display: flex; align-items: center; gap: 12px; text-align: left; font: 15px var(--b-body); color: var(--b-ink); padding: 0; }
.ap-ck i { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid color-mix(in srgb, var(--b-ink) 28%, transparent); display: inline-flex; align-items: center; justify-content: center; color: transparent; flex: none; }
.ap-ck.on i { background: var(--b-primary); border-color: var(--b-primary); color: var(--b-primary-ink); } .ap-ck.on span { color: color-mix(in srgb, var(--b-ink) 60%, transparent); }
.ap-by { font-size: 12.5px; color: color-mix(in srgb, var(--b-ink) 60%, transparent); }
.ap-chathead { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 17px; } .ap-ai { height: 20px; padding: 0 7px; border-radius: 6px; font: 700 11px/20px var(--b-body); background: var(--b-accent); color: var(--ops-accent-ink); }
.ap-msgs { display: flex; flex-direction: column; gap: 8px; height: 392px; overflow-y: auto; padding: 2px 0 8px; }
.ap-m { max-width: 82%; padding: 10px 13px; border-radius: 18px; font-size: 14.5px; line-height: 1.4; animation: apIn .2s ease both; }
.ap-m.bot { align-self: flex-start; background: color-mix(in srgb, var(--b-ink) 7%, var(--b-surface)); border-bottom-left-radius: 6px; }
.ap-m.me { align-self: flex-end; background: var(--b-primary); color: var(--b-primary-ink); border-bottom-right-radius: 6px; }
.ap-m.typing { display: flex; gap: 4px; } .ap-m.typing i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--b-ink) 40%, transparent); animation: apDot 1s infinite; } .ap-m.typing i:nth-child(2){animation-delay:.15s}.ap-m.typing i:nth-child(3){animation-delay:.3s}
@keyframes apDot { 50% { transform: translateY(-4px); opacity: .5; } }
.ap-sugg { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; } .ap-sugg button { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--b-primary) 40%, transparent); background: none; color: var(--ops-ptext, var(--b-primary)); font: 600 13.5px/1 var(--b-body); }
.ap-comp { display: flex; gap: 8px; } .ap-comp input { flex: 1; min-height: 48px; border-radius: 24px; border: 1.5px solid color-mix(in srgb, var(--b-ink) 16%, transparent); padding: 0 16px; font: 16px var(--b-body); background: var(--b-surface); color: var(--b-ink); }
.ap-comp button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--b-primary); color: var(--b-primary-ink); display: flex; align-items: center; justify-content: center; }

/* ---------- v5: app flow pattern (service cards, week strip, receipt, ticket, status) ---------- */
.ap-sb { direction: ltr; }
.ap-tile-t { padding: 10px 12px; font: 600 15px/1.2 var(--b-display); font-style: normal; color: var(--b-primary-ink); text-align: center; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ap { --ap-line: color-mix(in srgb, var(--b-ink) 10%, transparent); --ap-soft: color-mix(in srgb, var(--b-ink) 4%, var(--b-surface)); --ap-dim: color-mix(in srgb, var(--b-ink) 62%, transparent); }
.ap-back { margin-bottom: 2px; }
/* chips that state the price rule */
.ap-chip-s { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font: 600 10.5px/1 var(--b-body); font-style: normal; letter-spacing: .01em; white-space: nowrap;
  background: color-mix(in srgb, var(--b-accent) 26%, var(--b-surface)); color: color-mix(in srgb, var(--b-ink) 82%, transparent); }
.ap-chip-s.q { background: var(--ap-soft); box-shadow: inset 0 0 0 1px var(--ap-line); color: var(--ap-dim); white-space: normal; height: auto; min-height: 20px; padding: 3px 7px; line-height: 1.2; }
.ap-price { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; }
.ap-price b { font: 700 14px/1.1 var(--b-body); color: var(--b-ink); font-variant-numeric: tabular-nums; }
.ap-price small { font-size: 11px; color: var(--ap-dim); }
/* service cards: two columns, photo or icon tile, name, price, check badge */
.ap-svcs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.ap-opt.ap-svc { position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; min-height: 0; margin: 0; padding: 0; overflow: hidden;
  border-radius: 18px; border: 1.5px solid var(--ap-line); background: var(--b-surface); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 16px -10px rgba(0,0,0,.25); text-align: start; transition: border-color .15s ease-out, transform .1s ease-out; }
.ap-opt.ap-svc:active { transform: scale(.98); }
.ap-opt.ap-svc.on { border-color: var(--b-primary); box-shadow: 0 0 0 1.5px var(--b-primary), 0 8px 20px -12px color-mix(in srgb, var(--b-primary) 70%, transparent); background: var(--b-surface); }
.ap-svc-ph { position: relative; display: block; height: 104px; overflow: hidden; background: var(--ap-soft); }
.ap-svc-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-svc-ph .ic, .ap-rc-ph .ic, .ap-sthead-ph .ic, .ap-rb-ph .ic, .ap-sp-ph .ic { display: none; }
.ap-svc-ph.tile, .ap-rc-ph.tile, .ap-sthead-ph.tile, .ap-rb-ph.tile, .ap-sp-ph.tile { display: flex; align-items: center; justify-content: center; color: var(--b-primary-ink);
  background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--b-accent) 65%, var(--b-primary)) 0%, transparent 70%), var(--b-primary); }
.tile .ic { display: block !important; opacity: .92; }
.ap-svc-t { display: flex; flex-direction: column; padding: 10px 12px 12px; min-width: 0; }
.ap-svc-t > b { font: 600 15px/1.22 var(--b-body); color: var(--b-ink); overflow-wrap: anywhere; }
.ap-svc .ap-box { position: absolute; top: 8px; inset-inline-end: 8px; width: 26px; height: 26px; background: rgba(255,255,255,.92); border-color: rgba(0,0,0,.12); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.ap-svc.on .ap-box { animation: apBadge .16s cubic-bezier(.2,.8,.2,1) both; }
@keyframes apBadge { from { transform: scale(.7); } to { transform: none; } }
.ap-svc.qty .ap-step { padding: 0 10px 10px; justify-content: space-between; }
.ap-svc.qty .ap-step button { width: 36px; height: 36px; }
.ap-svc.qty .ap-box { background: var(--b-primary); color: var(--b-primary-ink); border-color: var(--b-primary); }
/* sticky footer button with a running count */
.ap-foot { position: sticky; bottom: -22px; z-index: 3; margin: 14px -16px -22px; padding: 12px 16px 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--b-surface) 0%, transparent), var(--b-surface) 34%); }
.ap-foot .ap-btn { margin-top: 0; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--b-primary) 80%, transparent); }
.ap-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--b-primary-ink); color: var(--b-primary); font: 700 13px/24px var(--b-body); }
/* time: 7-day strip, grouped slots, window cards */
.ap-chips.ap-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 18px; flex-wrap: nowrap; }
.ap-chip.ap-day { min-height: 64px; padding: 0 2px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.ap-chip.ap-day small { font: 600 10.5px/1 var(--b-body); color: inherit; opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ap-chip.ap-day b { font: 700 18px/1 var(--b-body); font-variant-numeric: tabular-nums; }
.ap-slotgrp { margin-bottom: 14px; } .ap-slotgrp h4 { margin: 0 0 8px; display: flex; align-items: center; gap: 6px; font: 600 13px/1 var(--b-body); color: var(--ap-dim); }
.ap-chips.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 0; }
.ap-chip.ap-time { padding: 0 4px; border-radius: 14px; font-variant-numeric: tabular-nums; }
.ap-wins { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.ap-chip.ap-win { min-height: 76px; border-radius: 18px; padding: 12px 14px; display: flex; align-items: center; gap: 14px; text-align: start; }
.ap-win-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--b-primary) 10%, var(--b-surface)); color: var(--ops-ptext, var(--b-primary)); }
.ap-win-t { flex: 1; display: flex; flex-direction: column; gap: 3px; } .ap-win-t b { font: 600 16px/1.2 var(--b-body); } .ap-win-t small { font: 500 13px/1.2 var(--b-body); opacity: .72; }
.ap-chip.ap-win.on { background: color-mix(in srgb, var(--b-primary) 8%, var(--b-surface)); color: var(--b-ink); border-color: var(--b-primary); box-shadow: 0 0 0 1px var(--b-primary); }
.ap-chip.ap-win.on .ap-box { background: var(--b-primary); border-color: var(--b-primary); color: var(--b-primary-ink); }
/* receipt card */
.ap-rcpt { margin-top: 6px; padding: 0; overflow: hidden; background: var(--b-surface); border: 1.5px solid var(--ap-line); }
.ap-rcpt header { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--ap-soft); border-bottom: 1px dashed var(--ap-line); }
.ap-rc-ph { flex: none; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; display: block; } .ap-rc-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-rcpt header div { display: flex; flex-direction: column; min-width: 0; } .ap-rcpt header b { font: 600 15px/1.2 var(--b-body); } .ap-rcpt header span { font-size: 12.5px; color: var(--ap-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-rcpt .ap-row, .ap-lines .ap-row { padding: 9px 14px; } .ap-lines .ap-row { padding-inline: 0; }
.ap-row.ap-line span { color: var(--b-ink); } .ap-row.ap-line em { font-style: normal; color: var(--ap-dim); } .ap-row.ap-line b { font-variant-numeric: tabular-nums; font-weight: 500; }
.ap-row.ap-when span { display: inline-flex; align-items: center; gap: 6px; }
.ap-row.ap-tot { border-top: 1.5px solid color-mix(in srgb, var(--b-ink) 16%, transparent) !important; } .ap-row.ap-tot span { color: var(--b-ink); font-weight: 700; } .ap-row.ap-tot b { font: 700 18px/1 var(--b-body); font-variant-numeric: tabular-nums; }
.ap-rnote { margin: -4px 14px 12px; text-align: end; } .ap-lines .ap-rnote { margin-inline: 0; }
/* confirmation: drawn check + ticket */
.ap-check.ap-drawn { width: 84px; height: 84px; background: none; color: var(--ops-ptext, var(--b-primary)); animation: none; }
.ap-drawn svg { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ap-drawn .c { stroke-dasharray: 195; stroke-dashoffset: 0; fill: color-mix(in srgb, var(--b-primary) 10%, transparent); animation: apDraw .42s cubic-bezier(.2,.8,.2,1) both; }
.ap-drawn .k { stroke-dasharray: 44; stroke-dashoffset: 0; animation: apDrawK .26s cubic-bezier(.2,.8,.2,1) .3s both; }
@keyframes apDraw { from { stroke-dashoffset: 195; } } @keyframes apDrawK { from { stroke-dashoffset: 44; } }
.ap-ticket { position: relative; padding: 0; overflow: visible; background: var(--b-surface); border: 1.5px solid var(--ap-line); box-shadow: 0 14px 30px -20px rgba(0,0,0,.4); animation: apRise .28s cubic-bezier(.2,.8,.2,1) .2s both; margin: 4px 0 16px; }
@keyframes apRise { from { opacity: 0; transform: translateY(8px); } }
.ap-tk-h { display: flex; align-items: center; gap: 12px; padding: 14px; } .ap-tk-h > div { flex: 1; display: flex; flex-direction: column; text-align: start; }
.ap-tk-h > div span { font-size: 12px; color: var(--ap-dim); } .ap-tk-h > div b { font: 700 20px/1.15 var(--b-body); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ap-tk-cut { position: relative; height: 0; border-top: 1.5px dashed var(--ap-line); margin: 0 14px; }
.ap-tk-cut::before, .ap-tk-cut::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--b-surface); box-shadow: inset 0 0 0 1.5px var(--ap-line); }
.ap-tk-cut::before { inset-inline-start: -25px; clip-path: inset(0 0 0 50%); } .ap-tk-cut::after { inset-inline-end: -25px; clip-path: inset(0 50% 0 0); }
[dir="rtl"] .ap-tk-cut::before { clip-path: inset(0 50% 0 0); } [dir="rtl"] .ap-tk-cut::after { clip-path: inset(0 0 0 50%); }
.ap-ticket .ap-row { padding: 9px 14px; }
.ap-done-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .ap-done-row .ap-btn { font-size: 13.5px; line-height: 1.2; padding: 6px 8px; }
/* status */
.ap-sthead { position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 16px; background: var(--b-surface); border: 1.5px solid var(--ap-line); }
.ap-sthead-ph { display: block; height: 128px; overflow: hidden; } .ap-sthead-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-sthead-t { padding: 12px 14px 14px; } .ap-sthead-t .ap-h { margin: 0 0 6px; } .ap-sthead-t .ap-note { margin: 0; }
.ap-now { margin-top: 10px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: color-mix(in srgb, var(--b-primary) 9%, var(--b-surface)); }
.ap-now span { font: 600 12px/1 var(--b-body); color: var(--ap-dim); } .ap-now b { font: 700 15px/1.2 var(--b-body); color: var(--ops-ptext, var(--b-primary)); }
.ap-tl li i { width: 30px; height: 30px; color: color-mix(in srgb, var(--b-ink) 45%, transparent); }
.ap-tl li::before { left: auto; inset-inline-start: 14px; }
.ap-tl li.done i { color: var(--b-primary-ink); }
.ap-tl li.now i { color: var(--ops-ptext, var(--b-primary)); background: var(--b-surface); }
.ap-tl li.now i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--b-primary); opacity: 0; animation: apPulse .8s cubic-bezier(.2,.8,.2,1) .15s 1; }
@keyframes apPulse { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
.ap-blk { background: var(--b-surface); border: 1.5px solid var(--ap-line); border-radius: 18px; padding: 14px; }
.ap-blk h3 { color: var(--b-ink); font-size: 15px; } .ap-blk h3 .ic { color: var(--ops-ptext, var(--b-primary)); }
.ap-prog { margin-inline-start: auto; font: 600 12px/1 var(--b-body); color: var(--ap-dim); }
.ap-ph { gap: 8px; }
.ap-slot.ap-thumb { border: 0; padding: 0; justify-content: flex-end; align-items: stretch; gap: 0; overflow: hidden; background-size: cover; background-position: center; box-shadow: inset 0 -44px 30px -20px rgba(0,0,0,.6); }
.ap-slot.ap-thumb b { font: 600 11.5px/1.2 var(--b-body); color: #fff; padding: 0 7px 7px; text-align: start; }
.ap-slot.ap-thumb .tag-sample { position: absolute; top: 6px; inset-inline-start: 6px; font-size: 9.5px; padding: 2px 6px; background: rgba(0,0,0,.55); color: #fff; text-shadow: none; }
.ap-slot.tile { border-style: solid; }
.ap-addph { position: relative; margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font: 600 13.5px/1 var(--b-body); color: var(--ops-ptext, var(--b-primary)); cursor: pointer; }
.ap-addph input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ap-est p { color: var(--ap-dim); font-size: 14px; } .ap-lines { margin: 4px 0 6px; }
.ap-est .ap-btn.ghost, .ap-btn.ghost[data-act="ask"] { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ap-ok { min-height: 52px; justify-content: center; margin-top: 8px; border-radius: 16px; background: #e4f4e8; animation: apPop .3s cubic-bezier(.2,1.2,.4,1) both; }
.ap-ck { min-height: 50px; } .ap-ck + .ap-ck { border-top: 1px solid var(--ap-line); }
.ap-visit { flex-direction: row !important; align-items: center !important; gap: 12px !important; }
.ap-vi { flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--b-primary) 10%, var(--b-surface)); color: var(--ops-ptext, var(--b-primary)); font-style: normal; }
.ap-vt { display: flex; flex-direction: column; gap: 2px; color: inherit !important; } .ap-vt b { color: var(--b-ink); text-align: start; } .ap-vt span { font-size: 13.5px; color: var(--ap-dim); }
.ap-nh { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .ap-nh > div { display: flex; align-items: center; gap: 8px; } .ap-nh .ops-logo { width: 34px; height: 34px; border-radius: 10px; }
.ap-rebook { display: flex; align-items: center; gap: 12px; } .ap-rebook .ap-btn { margin: 0; flex: 1; padding: 0 12px; line-height: 1.2; }
.ap-rb-ph { flex: none; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; display: block; } .ap-rb-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-specials { padding: 6px 14px; }
.ap-row.ap-sp { gap: 12px; padding: 10px 0; } .ap-sp-ph { flex: none; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; display: block; } .ap-sp-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-sp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--b-ink) !important; } .ap-sp-t > b { font-weight: 600; text-align: start; }
/* in-frame lightbox */
.ap-lb { position: absolute; inset: 0; z-index: 20; background: rgba(8,9,11,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 28px; animation: apFade .18s ease-out both; }
@keyframes apFade { from { opacity: 0; } }
.ap-lb figure { margin: 0; width: 100%; display: flex; flex-direction: column; gap: 12px; animation: apZoom .24s cubic-bezier(.16,1,.3,1) both; }
@keyframes apZoom { from { transform: scale(.97); } }
.ap-lb img { width: 100%; max-height: 520px; object-fit: contain; border-radius: 14px; background: #000; }
.ap-lb figcaption { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; } .ap-lb figcaption span:last-child { margin-inline-start: auto; opacity: .7; font-variant-numeric: tabular-nums; }
.ap-lb figcaption .tag-sample { background: rgba(255,255,255,.18); color: #fff; }
.ap-lb-x { position: absolute; top: 52px; inset-inline-end: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; }
.ap-lb-nav { display: flex; gap: 12px; margin-top: 16px; } .ap-lb-nav button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; }
.ap :focus-visible { outline: 2px solid var(--b-primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ap-opt.ap-svc:active { transform: none; } }

/* ---------- call ---------- */
.cl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; color: #fff; padding: 96px 24px 40px; font-family: var(--b-body);
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--b-primary) 70%, #14171a) 0%, #0e1013 70%); }
.cl.is-sms { padding: 0; background: #f2f2f4; color: #111; }
.cl-top { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.cl-top b { font: 600 24px/1.2 var(--b-display); margin-top: 10px; } .cl-top > span { font-size: 15px; opacity: .78; }
.cl-av { position: relative; } .cl-av.ring::before, .cl-av.ring::after { content: ""; position: absolute; inset: -10px; border-radius: 34px; border: 2px solid rgba(255,255,255,.5); animation: clRing 1.4s ease-out infinite; } .cl-av.ring::after { animation-delay: .7s; }
@keyframes clRing { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.cl-go { margin-top: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; background: #2fb457; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(47,180,87,.45); }
.cl-hint { margin: 14px 0 0; font-size: 13px; opacity: .8; display: flex; gap: 6px; align-items: center; } .cl-hint .tag-sample { background: rgba(255,255,255,.16); color: #fff; }
.cl-who { margin-top: 30px; font: 600 14px/1 var(--b-body); padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.12); }
.cl-meter { margin: 26px 0 18px; display: flex; gap: 4px; align-items: center; height: 72px; } .cl-meter i { width: 6px; height: 100%; border-radius: 3px; background: #fff; transform: scaleY(.15); transition: background .2s; } .cl-meter i.ai { background: var(--b-accent); } .cl-meter i.cr { background: rgba(255,255,255,.85); }
.cl-cap { font-size: 18px; line-height: 1.4; text-align: center; max-width: 320px; margin: 0; min-height: 100px; }
.sms { width: 100%; height: 100%; display: flex; flex-direction: column; padding-top: 46px; }
.sms-h { text-align: center; padding: 10px 0 12px; background: #fafafa; border-bottom: 1px solid #ddd; display: flex; flex-direction: column; gap: 2px; } .sms-h b { font-size: 16px; } .sms-h span { font-size: 12px; color: #666; }
.sms-b { padding: 16px 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sms-t { align-self: center; font-size: 12px; color: #777; } .sms-m { max-width: 86%; background: #e3e3e8; border-radius: 20px; border-bottom-left-radius: 6px; padding: 11px 15px; font-size: 15.5px; line-height: 1.4; animation: apIn .35s ease both; }
.sms-s { font-size: 12px; color: #777; padding-left: 6px; }
.ops-console { width: 440px; max-width: 46vw; min-height: 0; max-height: 100%; }
.cn-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cn-b { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--stage-line); background: var(--stage-2); color: var(--chrome-ink); font: 600 14px/1 var(--chrome-font); display: inline-flex; align-items: center; gap: 8px; }
.cn-b.main { background: var(--chrome-ink); color: var(--stage); border-color: transparent; }
.cn-time { margin-left: auto; font: 600 15px/1 var(--chrome-font); font-variant-numeric: tabular-nums; color: var(--chrome-dim); }
.cn-tr { flex: 1 1 auto; min-height: 120px; overflow-y: auto; border: 1px solid var(--stage-line); border-radius: var(--r-m); background: var(--stage-2); padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.cn-empty { color: var(--chrome-dim); font-size: 14px; }
.cn-l { display: flex; flex-direction: column; gap: 1px; animation: apIn .25s ease both; font-size: 14.5px; line-height: 1.4; } .cn-l b { font-size: 11.5px; letter-spacing: .02em; color: var(--chrome-dim); font-weight: 600; } .cn-l.ai b { color: var(--chrome-accent); }
.cn-tk { border-radius: var(--r-m); background: var(--paper); color: var(--ink); padding: 12px 14px; animation: apIn .3s ease both; } .cn-tk .ap-row { padding: 4px 0; font-size: 13.5px; } .cn-tk .ap-row span { color: var(--dim); }
.cn-tkh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; } .cn-tk .cn-b.main { margin-top: 8px; background: var(--stage); color: #fff; width: 100%; justify-content: center; }
.cn-tk .pill.new { background: #e5ecff; color: #2748b8; }

/* ---------- owner ---------- */
.ops-owner .ow { flex: 1; min-width: 0; max-width: 860px; max-height: 100%; display: flex; flex-direction: column; border-radius: var(--r-l); overflow: hidden; background: var(--b-surface); color: var(--b-ink); font-family: var(--b-body); box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06); }
.ops-owner .ops-side { width: 280px; }
.ow-h { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid color-mix(in srgb, var(--b-ink) 10%, transparent); }
.ow-h > div { flex: 1; display: flex; flex-direction: column; } .ow-h b { font: 600 20px/1.2 var(--b-display); } .ow-h span:not(.tag-sample) { font-size: 13px; color: color-mix(in srgb, var(--b-ink) 62%, transparent); }
.ow-sum { flex: none; display: flex; gap: 10px; padding: 14px 20px; flex-wrap: wrap; align-items: stretch; }
.ow-c { flex: 1; min-width: 96px; border-radius: 14px; padding: 10px 14px; background: color-mix(in srgb, var(--b-ink) 5%, var(--b-surface)); display: flex; flex-direction: column; } .ow-c b { font: 700 26px/1.1 var(--b-display); font-variant-numeric: tabular-nums; } .ow-c span { font-size: 12.5px; color: color-mix(in srgb, var(--b-ink) 64%, transparent); }
.ow-c.new b { color: var(--ops-ptext, var(--b-primary)); } .ow-c.callback b { color: #9a5f00; } .ow-c.booked b { color: #1d6b34; }
.ow-live { flex-basis: 100%; font-size: 12.5px; font-weight: 600; color: var(--ops-ptext, var(--b-primary)); }
.ow-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 20px 18px; }
.ow-r { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid color-mix(in srgb, var(--b-ink) 9%, transparent); }
.ow-r.live { background: color-mix(in srgb, var(--b-accent) 14%, transparent); margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.ow-r.fresh { animation: owHi 3.6s ease-out both; }
@keyframes owHi { 0% { background: color-mix(in srgb, var(--b-accent) 70%, transparent); transform: translateY(-8px); opacity: 0; } 12% { opacity: 1; transform: none; } 100% { background: color-mix(in srgb, var(--b-accent) 14%, transparent); } }
.ow-s { flex: none; width: 88px; } .ow-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ow-m b { font-size: 15.5px; } .ow-m em { font: 600 11px/1 var(--b-body); font-style: normal; margin-left: 6px; padding: 3px 7px; border-radius: 6px; background: var(--b-accent); color: var(--ops-accent-ink); vertical-align: 2px; }
.ow-m span { font-size: 14.5px; } .ow-m small { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: color-mix(in srgb, var(--b-ink) 60%, transparent); }
.ow-a { flex: none; display: flex; gap: 6px; }
.ow-b { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--b-ink) 18%, transparent); background: var(--b-surface); color: var(--b-ink); font: 600 13.5px/1 var(--b-body); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ow-b.main { background: var(--b-primary); color: var(--b-primary-ink); border-color: transparent; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .ops-scene.is-on { flex-direction: column; }
  .ops-scene .ops-side, .ops-owner .ops-side, .ops-console { width: 100%; max-width: 560px; padding: 0; }
  .ops-app .ops-side { order: 2; }
  .ops-owner .ops-side { order: 0; } .ops-owner .ow { width: 100%; max-width: 760px; }
  .ops-call.is-on { overflow-y: auto; justify-content: flex-start; } .ops-call .ops-phonewrap, .ops-call .ops-console { flex: none; }
}
@media (max-width: 700px) {
  .scene[data-scene="app"].is-on { padding: 0; }
  .ops-app .ops-phonewrap, .ops-app .phone { width: 100%; height: 100%; flex: 1; }
  .ops-app .phone::before, .ops-app .phone-screen::after { display: none; }
  .ops-app .phone-screen { left: 0; top: 0; width: 100%; height: 100%; transform: none; border-radius: 0; }
  .ops-app .ops-side { display: none; }
  .ops-app .ap-sb { display: none; } .ops-app .ap-head { padding-top: 14px; }
  .ops-app .ap-tabs { padding-bottom: 8px; }
  .ops-app .ap-msgs { height: calc(100vh - 380px); min-height: 180px; }
  .ops-call.is-on { align-items: stretch; gap: 14px; }
  .ops-call .ops-phonewrap { width: 100%; }
  .ops-call .phone { width: 100%; height: 540px; } .ops-call .phone::before { border-radius: 28px; }
  .ops-call .phone-screen { left: 8px; top: 8px; width: calc(100% - 16px); height: calc(100% - 16px); transform: none; border-radius: 22px; } .ops-call .phone-screen::after { display: none; }
  .cl { padding: 56px 20px 24px; } .cl.is-sms { padding: 0; } .sms { padding-top: 0; }
  .ops-console { min-height: 0; } .cn-tr { min-height: 220px; flex: none; }
  .ops-owner.is-on { overflow-y: auto; justify-content: flex-start; }
  .ops-owner .ow { flex: none; max-height: none; }
  .ow-r { flex-wrap: wrap; align-items: flex-start; } .ow-s { width: auto; } .ow-m { flex-basis: calc(100% - 100px); } .ow-a { flex-basis: 100%; }
  .ow-r .ow-b { flex: 1; justify-content: center; }
  .ow-sum { padding: 12px; } .ow-c { min-width: 72px; padding: 8px 10px; } .ow-c b { font-size: 22px; }
  .ow-h { padding: 12px; } .ow-list { padding: 0 12px 14px; } .ow-r.live { margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
}

.ap-chips.grid { display: grid; grid-template-columns: 1fr 1fr; } .ap-chips.grid:first-of-type { display: flex; }
.ops-console .tag-sample, .ops-side .tag-sample { background: rgba(255,255,255,.12); color: var(--chrome-dim); }
.cl-meter { height: 120px; margin: 34px 0 24px; } .cl-cap { font-size: 19px; }

/* ---------- v2: lead note list ---------- */
.ops-not { margin: 0; padding: 0 0 0 18px; color: var(--chrome-dim); font-size: 13.5px; line-height: 1.5; }

/* ---------- v2: day scene ---------- */
/* R7 lane b: "Your day" redesign. Neutral surface, one caption, one card per moment, quiet colour for status only. */
.scene.ops-day { padding: 0; }
.scene.ops-day.is-on { display: block; }
.dy { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--paper); color: var(--ink); font-family: var(--b-body); font-variant-numeric: tabular-nums;
  --dy-ink: var(--ink); --dy-dim: var(--dim); --dy-line: var(--line); }
.dy-sky { display: none; }
.dy-cap { order: 0; flex: none; width: 100%; max-width: 596px; margin: 0 auto; padding: 22px 28px 0; text-align: left; color: var(--ink); display: grid; grid-template-columns: 1fr auto; column-gap: 20px; align-items: end; }
.dy-time { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font: 600 12px/1 var(--b-body); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.dy-time .dy-tag { background: none; border: 1px solid var(--line); color: var(--dim); text-transform: none; letter-spacing: 0; font-weight: 500; }
.dy-cap h2 { grid-column: 1; margin: 8px 0 0; font: 600 26px/1.15 var(--b-display); letter-spacing: -.01em; }
.dy-cap p { grid-column: 1; margin: 6px 0 0; max-width: 56ch; font-size: 15px; line-height: 1.5; color: var(--dim); min-height: 22px; }
.dy-act { grid-column: 2; grid-row: 2 / span 2; min-height: 0; padding: 0; }
.dy-act:empty { display: none; }
.dy-go { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 600 14px/1 var(--b-body); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.dy-stage { order: 1; position: relative; flex: 1; min-height: 0; width: 100%; max-width: 596px; margin: 16px auto 0; padding: 0 28px; }
.dy-m { position: absolute; inset: 0 28px; display: flex; align-items: flex-start; justify-content: flex-start; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.dy-m.past { transform: translateY(-8px); }
.dy-m.on { opacity: 1; transform: none; pointer-events: auto; }
.dy-card { width: min(560px, 100%); max-height: 100%; overflow: hidden; background: var(--paper); color: var(--ink); border-radius: var(--r-m); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05); font-size: 15px; line-height: 1.45; }
.dy-card small { font-size: 12.5px; color: var(--dim); }
.dy-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font: 500 11px/1 var(--b-body); font-style: normal; background: var(--fill); color: var(--dim); }
/* lock-screen moments (text, reminder): a phone, centred, plain bezel */
.dy-m:has(.dy-lock) { align-items: center; justify-content: center; }
.dy-lock { position: relative; width: min(300px, 100%); height: min(calc(100% - 20px), 560px); margin: 10px 0; border-radius: 40px; background: color-mix(in srgb, var(--b-primary) 62%, var(--ink)); color: #fff; padding: 52px 16px 22px; box-shadow: 0 0 0 8px var(--ink), 0 12px 32px rgba(0,0,0,.14); display: flex; flex-direction: column; gap: 20px; overflow: hidden; }
.dy-lock::before { content: ""; position: absolute; top: 13px; left: 50%; width: 88px; height: 24px; margin-left: -44px; border-radius: 14px; background: var(--ink); }
.dy-lk-time { text-align: center; display: flex; flex-direction: column; gap: 4px; } .dy-lk-time b { font: 600 60px/1 var(--b-display); letter-spacing: -.02em; } .dy-lk-time span { display: none; }
.dy-note { display: flex; gap: 12px; padding: 13px; border-radius: 18px; background: rgba(255,255,255,.92); color: var(--ink); animation: dyIn .5s .15s both; }
.dy-note .ops-logo { width: 34px; height: 34px; border-radius: 9px; } .dy-note small { color: var(--dim); font-size: 12px; } .dy-note p { margin: 3px 0 0; font-size: 14.5px; line-height: 1.38; }
@keyframes dyIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* call */
.dy-call { padding: 28px 28px 24px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 4px; }
.dy-call small { margin: 14px 0 2px; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; font-weight: 600; }
.dy-call b { font: 600 24px/1.2 var(--b-display); } .dy-call p { margin: 8px 0 6px; font-size: 17px; line-height: 1.45; max-width: 44ch; }
.dy-av .ops-logo.big { width: 48px; height: 48px; border-radius: 12px; } .dy-av { margin: 0; }
.dy-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); width: 100%; }
.dy-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; height: 28px; border-radius: 999px; background: var(--fill); color: var(--ink); font: 500 12.5px/1 var(--b-body); }
/* booking ticket */
.dy-ticket header, .dy-list header { display: flex; gap: 12px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.dy-ticket header small, .dy-list header small { color: var(--dim); } .dy-ticket header b, .dy-list header b { display: block; font: 600 18px/1.25 var(--b-display); }
.dy-rows { padding: 4px 24px; } .dy-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); } .dy-rows div:last-child { border-bottom: 0; } .dy-rows span { color: var(--dim); } .dy-rows b { text-align: right; font-weight: 600; }
.dy-ticket footer { display: flex; gap: 8px; align-items: center; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--fill); color: var(--ink); font-weight: 600; font-size: 14px; }
/* review */
.dy-rev { padding: 20px; display: flex; flex-direction: column; gap: 16px; } .dy-q, .dy-draft { padding: 0; border-radius: 0; }
.dy-q { padding-bottom: 16px; border-bottom: 1px solid var(--line); } .dy-q p { margin: 8px 0 0; font-size: 16px; font-style: italic; }
.dy-draft p { margin: 6px 0 14px; font-size: 15.5px; }
.dy-btns { display: flex; gap: 8px; } .dy-btns button { min-height: 44px; padding: 0 16px; border-radius: var(--r-s); border: 0; font: 600 14px/1 var(--b-body); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.dy-ok { background: var(--ink); color: var(--paper); } .dy-ok.done { background: #dff3e4; color: #1d6b34; } .dy-ed { background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
/* report: one main number, the rest as a ruled list */
.dy-rep header { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 24px 0; } .dy-rep header b { font: 600 14px/1.2 var(--b-body); color: var(--dim); } .dy-rep header span { font-size: 12.5px; color: var(--dim); }
.dy-nums { display: block; padding: 4px 24px 8px; }
.dy-nums div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.dy-nums div:first-child { display: block; border-top: 0; padding: 2px 0 16px; }
.dy-nums b { order: 2; font: 600 22px/1 var(--b-body); letter-spacing: -.01em; }
.dy-nums span { font-size: 14.5px; color: var(--dim); }
.dy-nums div:first-child b { display: block; font: 600 64px/1 var(--b-display); letter-spacing: -.02em; margin-bottom: 2px; color: var(--ink); }
.dy-nums div:first-child span { font-size: 15px; color: var(--ink); }
.dy-rep footer { padding: 4px 24px 18px; font-size: 12.5px; color: var(--dim); }
/* list */
.dy-lrows { padding: 4px 12px 10px; } .dy-lr { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); } .dy-lr:last-child { border-bottom: 0; }
.dy-lr i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line); } .dy-lr div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .dy-lr b { font-weight: 600; } .dy-lr span { font-size: 13.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dy-lr small { flex: none; }
.dy-lr em { font: 600 11px/1 var(--b-body); font-style: normal; padding: 3px 7px; border-radius: 999px; background: var(--b-accent); color: var(--ops-accent-ink); vertical-align: 2px; margin-left: 4px; }
.dy-lr.live { background: var(--fill); border-radius: var(--r-s); } .dy-lr.live i { background: var(--b-accent); }
/* time bar */
.dy-bar { order: 2; position: relative; flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 24px 14px 16px; background: var(--paper); border-top: 1px solid var(--line); }
.dy-play { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.dy-track { position: relative; flex: 1; padding: 0 30px; min-height: 54px; outline-offset: 4px; touch-action: none; cursor: pointer; }
.dy-rail { position: relative; height: 54px; touch-action: none; }
.dy-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; border-radius: 1px; background: var(--line); }
.dy-fill { position: absolute; left: 0; top: 13px; height: 2px; border-radius: 1px; background: var(--ink); transition: width .3s ease; }
.dy-stop { position: absolute; top: 0; width: 64px; margin-left: -32px; padding: 0; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: pointer; color: var(--dim); font: 500 11.5px/1 var(--b-body); white-space: nowrap; }
.dy-stop b { width: 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--dim); } .dy-stop.passed b { background: var(--ink); border-color: var(--ink); } .dy-stop.on { color: var(--ink); font-weight: 600; }
.dy-thumb { position: absolute; top: 5px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 10%, transparent); transition: left .3s ease; pointer-events: none; }
.dy-go:focus-visible, .dy-play:focus-visible, .dy-track:focus-visible { outline: 2px solid var(--b-primary); }
/* wide screens: caption left, card right, both centred vertically above the timeline */
@media (min-width: 1000px) {
  .dy { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 560px); grid-template-rows: minmax(0, 1fr); padding-bottom: 86px; justify-content: center; column-gap: 56px; }
  .dy-cap { grid-column: 1; grid-row: 1; align-self: center; margin: 0; padding: 0; display: block; max-width: none; }
  .dy-cap h2 { font-size: 30px; } .dy-cap .dy-act, .dy-act { margin-top: 18px; }
  .dy-stage { grid-column: 2; grid-row: 1; margin: 0; padding: 0; max-width: none; align-self: stretch; }
  .dy-m { inset: 28px 0; align-items: center; }
  .dy-bar { position: absolute; left: 0; right: 0; bottom: 0; }
}
@media (max-width: 999px) { .dy.is-lock .dy-cap { text-align: center; } .dy.is-lock .dy-time { justify-content: center; } .dy.is-lock .dy-act { text-align: center; } }
@media (max-width: 900px) {
  .dy-cap { padding: 16px 20px 0; grid-template-columns: 1fr; } .dy-act { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .dy-stage { margin-top: 14px; padding: 0 20px; } .dy-m { inset: 0 20px; }
}
@media (max-width: 700px) {
  .dy-cap { padding: 12px 16px 0; } .dy-cap h2 { font-size: 21px; } .dy-cap p { font-size: 14px; }
  .dy-stage { margin-top: 12px; padding: 0 16px; } .dy-m { inset: 0 16px; } .dy-card { font-size: 14px; }
  .dy-lock { height: min(calc(100% - 20px), 440px); width: min(236px, 100%); border-radius: 34px; padding: 44px 12px 14px; gap: 12px; } .dy-lk-time b { font-size: 44px; } .dy-note p { font-size: 13px; } .dy-note { padding: 10px; }
  .dy-call { padding: 18px 16px; } .dy-call b { font-size: 20px; } .dy-call p { font-size: 15px; }
  .dy-ticket header, .dy-list header { padding: 14px 16px; } .dy-rows { padding: 2px 16px; } .dy-ticket footer { padding: 12px 16px; }
  .dy-rev { padding: 14px; gap: 12px; } .dy-q p, .dy-draft p { font-size: 14.5px; }
  .dy-rep header { padding: 16px 16px 0; } .dy-nums { padding: 2px 16px 4px; } .dy-nums div:first-child b { font-size: 52px; } .dy-rep footer { padding: 4px 16px 14px; }
  .dy-lrows { padding: 2px 4px 6px; } .dy-lr { padding: 10px 8px; }
  .dy-bar { padding: 6px 10px 8px 6px; } .dy-track { padding: 0 24px; } .dy-stop { width: 50px; margin-left: -25px; font-size: 10px; letter-spacing: -.01em; }
}
@media (prefers-reduced-motion: reduce) { .dy-m, .dy-fill, .dy-thumb, .dy-note { transition: none !important; animation: none !important; } }

/* Clock times keep left-to-right order inside the Arabic phone screen ("9:00 am", never "am 9:00"). */
.phone-screen[dir="rtl"] .ap-time bdi, [dir="rtl"] .ap-row b, [dir="rtl"] .ap-when { unicode-bidi: isolate; direction: ltr; }
