/* Pingora Queue — shared styles. Logical properties keep RTL (Arabic) and LTR in one sheet. */
:root {
  --ink: #0f2a30; --muted: #5b6f73; --line: #dbe5e3; --bg: #f4f7f6; --card: #fff;
  --brand: #123F46; --brand-2: #2E7457; --mint: #C5E8D5; --warn: #b4532a; --warn-bg: #fbeee6;
  --ok-bg: #e5f4ec; --err-bg: #fde8e8; --err: #a62626; --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.5 var(--font); color: var(--ink); background: var(--bg); min-height: 100vh; }
.page-guest main .card { box-shadow: 0 1px 2px #0f2a3012; }
a { color: var(--brand-2); }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; } h2 { font-size: 1.15rem; margin: 1.2rem 0 .5rem; } h3 { font-size: 1rem; margin: 1rem 0 .5rem; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--card); border-block-end: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--brand); text-decoration: none; font-weight: 600; }
.brand b { color: var(--brand-2); }
main { max-width: 760px; margin: 0 auto; padding: 16px; }
.page-owner main, .page-admin main { max-width: 980px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-block-end: 16px; }
.narrow { max-width: 420px; margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); } .small, small { font-size: .875rem; } .fine { font-size: .8rem; color: var(--muted); }
.block { display: block; } .grow { flex: 1; min-width: 0; } .break { word-break: break-all; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
label { display: flex; flex-direction: column; gap: 4px; margin-block: 10px; font-weight: 500; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; margin-block: 6px; }
input, select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-height: 44px; }
input.short { max-width: 9rem; }
input:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid var(--mint); outline-offset: 1px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; }
select.lang { min-height: 36px; padding: 4px 8px; }

.btn { font: inherit; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px; cursor: pointer; min-height: 44px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand, #fff); }
.btn-light { background: #fff; color: var(--brand); border-color: #fff; }
.btn-warn { background: var(--warn-bg); color: var(--warn); border-color: #f1c9b5; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-block { width: 100%; margin-block-start: 8px; } .btn-xl { font-size: 1.15rem; padding: 14px 22px; min-height: 56px; }
.btn.small { min-height: 36px; padding: 6px 10px; font-size: .9rem; }

.notice { padding: 10px 14px; border-radius: 10px; background: #eef3f2; margin: 10px 0; }
.notice.ok { background: var(--ok-bg); color: #1e5a40; } .notice.error { background: var(--err-bg); color: var(--err); }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #eef3f2; color: var(--muted); margin-inline-start: 6px; vertical-align: middle; }
.pill-online { background: var(--ok-bg); color: #1e5a40; } .pill-serving { background: var(--mint); color: var(--brand); }
.pill-break { background: #fff4d6; color: #7a5a00; } .pill-wrapping { background: var(--warn-bg); color: var(--warn); }

/* guest */
.venue-head { text-align: center; margin-block-end: 12px; } .svc-name { font-weight: 600; margin: 0; }
.service-list { display: grid; gap: 12px; }
.service-btn { display: flex; align-items: center; gap: 14px; width: 100%; text-align: start; font: inherit; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; color: var(--ink); min-height: 76px; }
.service-btn:hover:not(:disabled) { border-color: var(--brand-2); }
.service-btn:disabled { opacity: .55; cursor: not-allowed; }
.service-btn .prefix, .list-row .prefix { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--mint); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; }
.list-row .prefix { width: 36px; height: 36px; font-size: 1rem; }
.svc-text { display: flex; flex-direction: column; } .svc-text strong { font-size: 1.1rem; } .svc-text small { color: var(--muted); }
.big-number { font-size: clamp(3.5rem, 18vw, 6rem); font-weight: 800; letter-spacing: .02em; text-align: center; color: var(--brand); line-height: 1.1; margin: 8px 0; direction: ltr; font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.stats > div, .today > div { background: var(--bg); border-radius: 12px; padding: 12px; text-align: center; display: flex; flex-direction: column; }
.stat-n { font-size: 1.8rem; font-weight: 800; color: var(--brand); } .stat-n.small { font-size: 1.3rem; padding-block: .25rem; } .stat-n.text { font-size: 1rem; font-weight: 600; padding-block: .6rem; } .stat-l { font-size: .85rem; color: var(--muted); }
.alerts { border: 1px dashed var(--brand-2); border-radius: 12px; padding: 12px; margin: 12px 0; text-align: center; }
.alerts.compact { border: 0; margin-block-start: 20px; }
.called-screen { position: fixed; inset: 0; background: var(--brand-2); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; z-index: 10; animation: pulse 1.2s ease-in-out 3; }
.called-screen .big-number { color: #fff; font-size: clamp(4rem, 24vw, 8rem); }
.called-title { font-size: 1.6rem; font-weight: 700; margin: 0; } .called-counter { font-size: 1.5rem; margin: 0 0 24px; } .called-counter strong { font-size: 2rem; display: block; }
.called-screen .muted, .called-screen .fine { color: #e5f4ec; }
@keyframes pulse { 50% { background: #3d9470; } }
@media (prefers-reduced-motion: reduce) { .called-screen { animation: none; } }

/* staff */
.console-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-block-end: 16px; }
.serving { text-align: center; } .timer { font-size: 1.3rem; font-variant-numeric: tabular-nums; color: var(--muted); margin: 0; direction: ltr; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-block-start: 16px; }
.actions .btn-xl { min-width: 12rem; }
.idle { padding-block: 40px; }
.undo-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--brand); color: #fff; border-radius: var(--radius); padding: 10px 16px; margin-block-end: 16px; }
.queue-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-block-end: 12px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: .9rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice { flex-direction: row; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 12px; padding: 12px; margin: 0; cursor: pointer; font-weight: 600; }
.choice:has(input:checked) { border-color: var(--brand-2); background: var(--ok-bg); }
.choice.taken { opacity: .5; cursor: not-allowed; } .choice small { display: block; font-weight: 400; color: var(--muted); }
.choice input { min-height: auto; }
.reason { margin-block-start: 16px; }

/* owner */
.portal-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin-block-end: 12px; }
.today { display: grid; grid-template-columns: repeat(4, minmax(70px, 1fr)); gap: 8px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-block-end: 1px solid var(--line); margin-block-end: 16px; }
.tabs button { font: inherit; background: none; border: 0; border-block-end: 3px solid transparent; padding: 10px 14px; cursor: pointer; color: var(--muted); white-space: nowrap; min-height: 44px; }
.tabs button.active { color: var(--brand); border-color: var(--brand-2); font-weight: 700; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .section-head h2 { margin-block-start: 0; }
.list { display: grid; gap: 8px; margin-block: 12px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.list-row.inactive { opacity: .6; }
.edit-form { border: 2px solid var(--mint); border-radius: 12px; padding: 12px 16px; background: #fbfdfc; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; }
.qr-wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.qr { border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
@media print {
  .topbar, .tabs, .portal-head, .btn, .notice { display: none !important; }
  .card { border: 0; } .qr { width: 70vw; height: auto; border: 0; }
}
@media (max-width: 520px) {
  .today { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .actions .btn-xl { width: 100%; }
}

/* ---------- M2: pickup stage, transfer, feedback, supervisor board ---------- */
.btn-ready { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.panel-box { border: 2px solid var(--mint); border-radius: 12px; padding: 12px 16px; margin-top: 16px; text-align: start; background: #fbfdfc; }
.pickup-list { display: grid; gap: 8px; }
.pickup-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.pickup-row.ready { border-color: #b9dcc8; background: #f6fbf8; box-shadow: inset 4px 0 0 var(--brand-2); }
[dir=rtl] .pickup-row.ready { box-shadow: inset -4px 0 0 var(--brand-2); }
.pk-num { font-size: 1.5rem; font-weight: 800; color: var(--brand); direction: ltr; min-width: 4.5rem; }
.center-row { justify-content: center; margin-top: 12px; }
.feedback { margin-top: 16px; }
.stars { display: flex; justify-content: center; gap: 6px; direction: ltr; }
.star { font-size: 2rem; line-height: 1; background: none; border: 0; color: #d7c27a; cursor: pointer; min-width: 44px; min-height: 44px; border-radius: 10px; }
.star:hover, .star:focus-visible { color: #c79a1c; background: var(--bg); }
.pickup-fields { margin-top: 12px; }
.alert-card { border-color: #f1c9b5; background: var(--warn-bg); }
.board-queues { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bq { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.bq-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bq-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.bq-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; direction: ltr; }
.bq-list .btn.small { min-height: 36px; min-width: 36px; padding: 4px 8px; }
.page-staff .tabs { margin-bottom: 12px; }

/* ---------- platform admin ---------- */
.admin-toolbar { margin-bottom: 12px; flex-wrap: nowrap; }
.admin-toolbar input { flex: 1; min-width: 0; }
.venue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.venue-grid .card { margin: 0; }
.venue-card.inactive { opacity: .65; }
.vc-head { display: flex; gap: 12px; align-items: center; }
.vc-head h2 { margin: 0 0 4px; font-size: 1.1rem; }
.vc-head .prefix { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--mint); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.vc-head .pill { margin-inline-start: 0; }
.venue-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; color: var(--muted); margin: 8px 0; }
.venue-stats strong { color: var(--brand); }
.venue-card .btn.small, .subs .btn.small { min-height: 36px; padding: 6px 10px; font-size: .85rem; }
.sub-stats { grid-template-columns: repeat(6, minmax(70px, 1fr)); margin-bottom: 12px; }
.table-wrap { overflow-x: auto; }
table.subs { width: 100%; border-collapse: collapse; font-size: .92rem; }
.subs th, .subs td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.subs th { color: var(--muted); font-weight: 600; font-size: .8rem; }
.subs select { min-height: 36px; padding: 4px 8px; }
@media (max-width: 760px) { .sub-stats { grid-template-columns: repeat(3, 1fr); } .venue-grid { grid-template-columns: 1fr; } }
.venue-grid { align-items: start; }
.vc-head h2, .venue-card h2 { text-align: start; }
.venue-card .row:has(> label.grow) { align-items: end; }

/* ---------- branding on the guest page ---------- */
.venue-logo { display: block; max-height: 64px; max-width: 70%; margin: 0 auto 8px; object-fit: contain; }
.big-emoji { font-size: 3rem; }

/* ---------- help on fields: what it is, where it shows ---------- */
.wfield { margin-block: 12px; }
.wlabel { font-weight: 600; }
.whelp { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }
.wwhere { display: block; color: #1e5a40; background: var(--ok-bg); border-radius: 8px; padding: 4px 8px; font-weight: 400; font-size: .82rem; margin-top: 4px; width: fit-content; }
.guide-link { font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn { position: relative; }
.file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.logo-thumb { height: 48px; width: auto; max-width: 140px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: #fff; }
.logo-empty { color: var(--muted); font-size: .9rem; }
input[type=color] { width: 72px; height: 44px; padding: 4px; cursor: pointer; }

/* ---------- wizard ---------- */
.wizard { padding: 24px; }
.wiz-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 16px; overflow-x: auto; }
.wiz-steps li { flex: 1 0 auto; font-size: .82rem; color: var(--muted); border-bottom: 3px solid var(--line); padding: 6px 4px; white-space: nowrap; }
.wiz-steps li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink); font-weight: 700; font-size: .75rem; }
.wiz-steps li.done { color: var(--brand-2); border-color: var(--brand-2); }
.wiz-steps li.done span { background: var(--brand-2); color: #fff; }
.wiz-steps li.now { color: var(--brand); border-color: var(--brand); font-weight: 700; }
.wiz-steps li.now span { background: var(--brand); color: #fff; }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.wiz-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.previews { display: grid; gap: 16px; position: sticky; top: 72px; }
.kind-grid, .plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 6px 0; }
.kind, .plan { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px solid var(--line); border-radius: 12px; padding: 12px 8px; cursor: pointer; text-align: center; margin: 0; font-weight: 600; }
.kind input, .plan input { position: absolute; opacity: 0; pointer-events: none; }
.kind.on, .plan.on { border-color: var(--brand-2); background: var(--ok-bg); }
.kind:focus-within, .plan:focus-within { outline: 3px solid var(--mint); }
.kind-icon { font-size: 1.6rem; }
.plan small { font-weight: 400; color: var(--muted); }
.plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kinds, .plans { border: 0; padding: 0; margin: 12px 0; }
.kinds legend, .plans legend { font-weight: 600; padding: 0; }
.svc-row { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px 10px; margin-bottom: 10px; }
.svc-remove { display: flex; align-items: end; justify-content: end; padding-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.checklist { margin: 0; padding-inline-start: 20px; display: grid; gap: 10px; }
.staff-row { border-bottom: 1px dashed var(--line); }
@media (max-width: 820px) { .wiz-split { grid-template-columns: 1fr; } .previews { position: static; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }

/* ---------- live previews ---------- */
.pv-phone, .pv-tv { margin: 0; text-align: center; }
.pv-phone figcaption, .pv-tv figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.pv-screen { width: 220px; margin: 0 auto; border: 8px solid #1d2b2e; border-radius: 28px; background: var(--pv-bg); color: var(--pv-text); padding: 14px 10px; min-height: 300px; box-shadow: 0 8px 24px #0f2a3026; }
.pv-head { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .85rem; margin-bottom: 10px; }
.pv-logo { max-height: 36px; max-width: 120px; object-fit: contain; }
.pv-card { background: #fff; color: #0f2a30; border-radius: 12px; padding: 12px 8px; }
.pv-card small { color: #5b6f73; }
.pv-number { font-size: 2.6rem; font-weight: 800; color: var(--pv-brand); direction: ltr; line-height: 1.1; }
.pv-stats { display: flex; justify-content: space-around; font-size: .75rem; color: #5b6f73; margin: 6px 0 10px; }
.pv-btn { background: var(--pv-brand); color: var(--pv-on-brand); border-radius: 8px; padding: 8px; font-size: .8rem; font-weight: 700; }
.pv-list { display: grid; gap: 6px; }
.pv-svc { display: flex; align-items: center; gap: 8px; background: #fff; color: #0f2a30; border: 1px solid #dbe5e3; border-radius: 10px; padding: 8px; font-size: .82rem; font-weight: 600; text-align: start; }
.pv-prefix { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--pv-brand); color: var(--pv-on-brand); font-size: .85rem; flex: none; }
.pv-tv-screen { width: 280px; margin: 0 auto; aspect-ratio: 16 / 9; background: #0f2a30; color: #fff; border: 6px solid #1d2b2e; border-radius: 10px; display: grid; grid-template-columns: 1fr 64px; grid-template-rows: auto 1fr; gap: 6px; padding: 8px; font-size: .7rem; }
.pv-tv-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-weight: 700; }
.pv-tv-top img { height: 16px; background: #fff; border-radius: 3px; padding: 1px; }
.pv-tv-now { background: var(--pv-brand); color: var(--pv-on-brand); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pv-tv-now strong { font-size: 1.8rem; line-height: 1; direction: ltr; }
.pv-tv-qr { background: #fff; color: #123F46; border-radius: 6px; display: grid; place-items: center; font-size: 2rem; }

/* ---------- signup ---------- */
.signup { max-width: 640px; margin-inline: auto; }

/* ---------- printable poster ---------- */
.page-poster main { max-width: 210mm; }
.poster { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.poster-head { display: grid; gap: 8px; justify-items: center; }
.poster-logo { max-height: 90px; max-width: 60%; object-fit: contain; }
.poster-head h1 { font-size: 2rem; margin: 0; color: var(--pv-brand); }
.poster-lines { background: var(--pv-brand); color: var(--pv-on-brand); border-radius: 14px; padding: 12px 24px; width: 100%; }
.poster-line { margin: 4px 0; font-size: 1.5rem; font-weight: 800; color: inherit; }
.poster-qr { width: 70%; max-width: 360px; height: auto; }
.poster-sub p { margin: 2px 0; color: var(--muted); }
.poster-foot { color: var(--muted); font-size: .8rem; display: flex; align-items: center; gap: 6px; }
@media print {
  .page-poster .topbar { display: none !important; }
  .page-poster main { padding: 0; margin: 0; max-width: none; }
  .poster { border: 0; border-radius: 0; padding: 12mm; min-height: 270mm; align-content: center; }
  .poster-lines { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.kind, .plan { position: relative; }
.svc-row .grid-3 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

/* ---------- one-colour service icons ---------- */
.prefix, .pv-prefix { color: var(--brand) !important; background: color-mix(in srgb, var(--brand) 12%, #fff) !important; }
.prefix .svc-icon { width: 26px; height: 26px; }
.list-row .prefix .svc-icon { width: 20px; height: 20px; }
.pv-prefix .svc-icon { width: 16px; height: 16px; }
.kind-icon { color: var(--brand); display: grid; place-items: center; }
.kind.on .kind-icon { color: var(--brand-2); }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin-top: 6px; max-width: 640px; }
.icon-opt { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--brand); cursor: pointer; padding: 0; font: inherit; }
.icon-opt:hover { background: var(--bg); }
.icon-opt.on { border: 2px solid var(--brand); background: color-mix(in srgb, var(--brand) 12%, #fff); }
.icon-details { margin: 6px 0; }
.icon-details > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); min-height: 44px; }
.icon-details > summary .prefix { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; }

/* ---------- illustrated guide ---------- */
.page-help main { max-width: 980px; }
.guide-toc ol { columns: 2; column-gap: 32px; margin: 0; padding-inline-start: 20px; }
.guide-toc li { margin: 4px 0; break-inside: avoid; }
.guide-step { scroll-margin-top: 72px; }
.guide-step h2 { margin-top: 0; font-size: 1.3rem; color: var(--brand); }
.guide-list { padding-inline-start: 22px; display: grid; gap: 6px; margin: 0 0 12px; }
.guide-shots { display: grid; gap: 12px; margin-top: 12px; }
.guide-shots.many { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start; }
.guide-shots img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; display: block; box-shadow: 0 2px 8px #0f2a3014; }
@media (max-width: 640px) { .guide-toc ol { columns: 1; } }

/* Reports: scroll tables without widening the page, also in RTL. */
.report-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-block:16px}.report-filters label{display:grid;gap:6px}.report-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-block:16px}.report-metrics .card{display:grid;gap:8px}.report-metrics strong{font-size:1.6rem}.report-scroll{overflow-x:auto;max-width:100%}.report-table{border-collapse:collapse;width:100%;font-size:.85rem}.report-table th,.report-table td{padding:10px;text-align:start;border-bottom:1px solid #dce5e3;white-space:nowrap}.heatmap [data-level="1"]{background:#dceee8}.heatmap [data-level="2"]{background:#91c4ae}.heatmap [data-level="3"]{background:#235c50;color:white}.portal,.portal>.card{min-width:0} .d-slide{padding:20px;border-radius:16px;background:#fff;color:#123f46;overflow-wrap:anywhere}.d-slide p{white-space:pre-line}.d-slide h2{margin:0 0 8px}

.product-brand-logo{display:block;width:190px;height:auto;max-width:42vw}.product-switch{font-size:13px;color:#307b94;min-height:36px;display:inline-flex;align-items:center}
