:root {
  --reg-ink:#003a7d; --reg-paper:#fff; --reg-wash:#f3f9ff; --reg-line:#c9ddec;
  --reg-muted:#48657c; --install-gold:#ffdc54; --install-gold-edge:#c7a423;
  --reg-shadow:0 4px 18px rgb(0 58 125 / 9%); --install-shadow:0 2px 4px rgb(0 58 125 / 15%);
}
html.reg-page #payStage .pay-card, html.reg-page [data-view="checkout"] .checkout-card {
  background:var(--reg-paper); color:var(--reg-ink); border:1px solid var(--reg-line); border-radius:8px; box-shadow:var(--reg-shadow);
}
html.reg-page #payStage .pay-card { padding:24px; }
html.reg-page #payFields { color:var(--reg-ink); }
html.reg-page #payFields h2, html.reg-page #payFields h3, html.reg-page #payFields .field-label,
html.reg-page #payChosen, html.reg-page #payNote { text-shadow:none!important; -webkit-text-stroke:0!important; letter-spacing:0; }
html.reg-page #payFields h2 { font-size:24px; font-weight:600; margin:18px 0 12px; }
html.reg-page #payFields h3 { font-size:18px; font-weight:500; }
html.reg-page #payChosen { display:flex; flex-direction:column; gap:4px; background:var(--reg-wash); border:0; border-right:3px solid var(--install-gold); border-radius:0; padding:12px 14px; font-size:16px; line-height:1.5; box-shadow:none; }
.reg-course-title,.reg-course-amount { font-weight:600; }
html.reg-page #payNote { background:transparent; color:var(--reg-muted); font-size:14px; font-weight:400; padding:6px 0; border:0; box-shadow:none; }
html.reg-page .pay-progress { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:14px 0 20px; }
html.reg-page .pay-progress span { min-height:34px; background:var(--reg-wash); color:var(--reg-muted); border:1px solid var(--reg-line); border-radius:4px; padding:6px; box-shadow:none; }
html.reg-page .pay-progress span b { font-size:14px; font-weight:400; color:inherit; text-shadow:none; }
html.reg-page .pay-progress span.is-on { background:var(--reg-ink); color:var(--reg-paper); }
html.reg-page #payFields .field-label { font-size:15px; font-weight:500; }
html.reg-page #payFields input { background:var(--reg-paper); color:var(--reg-ink); border:1px solid var(--reg-line); border-radius:5px; min-height:46px; font-size:16px; box-shadow:none; }
html.reg-page #payFields .field-line { margin-bottom:14px; }
html.reg-page #payFields .pay-next-student, html.reg-page #payFields button[type="submit"] { width:100%; min-height:48px; font-size:17px; font-weight:500; border-radius:5px; border:1px solid var(--reg-ink); background:var(--reg-ink); color:var(--reg-paper); text-shadow:none; box-shadow:none; }
html.reg-page #payFields [data-pay-prev], html.reg-page #payFields [data-pay-back] { background:var(--reg-paper); color:var(--reg-ink); border:1px solid var(--reg-line); border-radius:5px; min-height:42px; box-shadow:none; text-shadow:none; }
html.reg-page #payFields button:focus-visible { outline:3px solid var(--install-gold); outline-offset:3px; }
.install-reminder { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:10px; margin:8px auto; width:min(780px,calc(100% - 24px)); padding:9px 12px; background:var(--install-gold); color:var(--reg-ink); border:1px solid var(--install-gold-edge); border-radius:5px; font-size:14px; }
.install-reminder button { color:var(--reg-ink); border:1px solid var(--install-gold-edge); background:var(--reg-paper); border-radius:4px; padding:5px 9px; min-height:36px; cursor:pointer; }
#recordingsStage { padding: max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom)); }
#recordingsStage .rec-list-card { max-height:calc(100dvh - max(24px,env(safe-area-inset-top)) - max(24px,env(safe-area-inset-bottom))); display:flex; flex-direction:column; min-height:0; overflow:hidden; }
#recordingsStage h2,#recordingsStage .sched-hint,#recordingsStage .sched-x { flex-shrink:0; }
#recordingsList { min-height:0; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; touch-action:pan-y; }
@media(max-width:1024px) {
  #recordingsList { gap:7px; padding:3px; }
  #recordingsList .dated-rec-row { gap:8px; padding:8px; }
  #recordingsList .dated-rec-play { padding:8px; font-size:15px; }
  #recordingsList .dated-rec-mark { width:34px; height:34px; min-width:34px; min-height:34px; }
}
@media(max-width:600px) {
  html.reg-page #payStage .pay-card { padding:18px 14px; }
  html.reg-page #payFields .pay-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:0; }
  html.reg-page .pay-progress span b { font-size:13px; }
  body.is-learn .top-nav .site-install-help { display:inline-flex!important; position:relative; overflow:hidden; align-items:center; justify-content:center; height:30px; min-height:30px; flex:0 1 auto; padding:3px 8px; background:var(--install-gold); color:var(--reg-ink); border:1px solid var(--install-gold-edge); border-radius:5px; box-shadow:var(--install-shadow); cursor:pointer; }
  body.is-learn .top-nav .site-install-help .sih-full { display:none; }
  body.is-learn .top-nav .site-install-help .sih-compact { display:inline-flex; align-items:center; gap:4px; font-size:11px; line-height:1.1; font-weight:500; white-space:nowrap; }
  body.is-learn .top-nav .site-install-help::after { content:""; position:absolute; inset:-50% auto -50% -60%; width:25%; background:linear-gradient(100deg,transparent,var(--reg-paper),transparent); opacity:.5; transform:skewX(-20deg); animation:install-glint 9s infinite; pointer-events:none; }
  body.is-learn .top-nav .site-install-help:focus-visible { outline:2px solid var(--reg-ink); outline-offset:2px; }
  body.is-learn .top-nav .site-install-help:active { transform:translateY(1px); box-shadow:none; }
}
@keyframes install-glint { 0%,85% { left:-60%; } 100% { left:150%; } }
@media(prefers-reduced-motion:reduce) { body.is-learn .top-nav .site-install-help::after { animation:none; display:none; } }

html.reg-page .pay-nav { display:flex; flex-direction:column-reverse; gap:10px; }
html.reg-page .pay-nav [data-pay-back] { align-self:center; }
html.reg-page #payFields .pay-claim-alarm .claim-alarm-title, html.reg-page #payFields .pay-claim-alarm .claim-alarm-copy { text-shadow:none!important; -webkit-text-stroke:0!important; }
html.reg-page #payFields .pay-claim-alarm .claim-alarm-title { font-size:20px; line-height:1.4; }

html.reg-page #payChosen, html.reg-page #payChosen span { color:var(--reg-ink)!important; font-weight:400; text-shadow:none!important; -webkit-text-stroke:0!important; }
html.reg-page #payFields [data-pay-back] { font-size:15px; font-weight:400; }
@media(max-width:600px) { body.is-learn .top-nav .learning-nav-logo { display:none!important; } body.is-learn .top-nav .site-install-help { order:4; } }

html.reg-page .checkout-page { color:var(--reg-ink); }
html.reg-page .checkout-page h1 { font-size:26px; font-weight:600; text-shadow:none; }
html.reg-page .checkout-course { font-weight:500; font-size:18px; }
html.reg-page .checkout-price span, html.reg-page .checkout-facts b { font-weight:400; }
html.reg-page .checkout-actions .btn { background:var(--reg-ink); color:var(--reg-paper); border:1px solid var(--reg-ink); border-radius:5px; box-shadow:none; font-weight:500; text-shadow:none; min-height:48px; }
html.reg-page .checkout-actions [data-reopen-pay] { background:var(--reg-paper); color:var(--reg-ink); border:1px solid var(--reg-line); }
.checkout-payments { display:flex; gap:12px; align-items:center; justify-content:center; font-size:16px; }
.checkout-payments select { background:var(--reg-paper); color:var(--reg-ink); border:1px solid var(--reg-line); min-height:44px; padding:6px 16px; border-radius:4px; }
/* iOS width fix: grid tracks default to `auto`, so iOS Safari's native date control (and long text) set a min-content width wider than the phone; in RTL the card then grows to the left. Bound every track and child. */
html.reg-page #payStage, html.reg-page #payStage .pay-stage-form, html.reg-page #payStage .pay-card, html.reg-page [data-view="checkout"] .checkout-card { box-sizing:border-box; max-width:100%; min-width:0; }
html.reg-page #payFields, html.reg-page #payFields .pay-step, html.reg-page #payFields .pay-student-fields, html.reg-page #payFields .pay-nav { min-width:0; max-width:100%; }
html.reg-page #payFields .field-line, html.reg-page #payFields .field-control { grid-template-columns:minmax(0,1fr); min-width:0; max-width:100%; }
html.reg-page #payFields .field-line > *, html.reg-page #payFields .field-control > input { min-width:0; max-width:100%; box-sizing:border-box; }
html.reg-page #payFields input[type="date"] { -webkit-appearance:none; appearance:none; display:block; width:100%; min-width:0; text-align:right; font-size:16px; }
html.reg-page #payFields input[type="date"]::-webkit-date-and-time-value { text-align:right; min-width:0; }
html.reg-page #payFields input, html.reg-page #payFields button { scroll-margin-top:96px; scroll-margin-bottom:24px; }
html.reg-page #payFields .pay-next-student, html.reg-page #payFields button[type="submit"], html.reg-page [data-view="checkout"] .btn-pay { box-shadow:none!important; text-shadow:none!important; -webkit-text-stroke:0!important; filter:none!important; }
/* After-payment success: real email status, full password, direct login CTA */
.thanks-mail-notice { display:flex; align-items:flex-start; gap:8px; max-width:640px; margin:10px auto; padding:10px 12px; box-sizing:border-box; border:1.5px solid #9fd8b8; border-radius:8px; background:#effaf3; color:#0f5132; font-size:16px; line-height:1.5; text-align:right; overflow-wrap:anywhere; }
.thanks-mail-notice[data-status="sent"] { animation:thanks-mail-pulse 2.4s ease-in-out 3; }
.thanks-mail-icon { flex:0 0 auto; font-size:18px; line-height:1.4; }
@keyframes thanks-mail-pulse { 50% { box-shadow:0 0 0 5px rgba(25,135,84,.14); } }
@media (prefers-reduced-motion: reduce) { .thanks-mail-notice { animation:none !important; } }
.login-creds .thanks-password { font-size:18px; letter-spacing:.02em; white-space:normal; overflow-wrap:anywhere; word-break:break-all; user-select:all; }
.login-creds .thanks-password[data-state="unavailable"] { font-size:16px; letter-spacing:0; word-break:normal; }
.thanks-login-cta { display:block; box-sizing:border-box; width:100%; max-width:420px; margin:14px auto 6px; padding:12px 16px; min-height:48px; border-radius:8px; background:var(--navy,#003a7d); color:#fff; font-size:17px; font-weight:600; text-align:center; text-decoration:none; box-shadow:none; }
.thanks-login-cta:focus-visible { outline:3px solid #f0b429; outline-offset:3px; }
.thanks-site-link { margin:4px 0 10px; text-align:center; font-size:16px; overflow-wrap:anywhere; }
[data-view="thanks"] .thanks-page, [data-view="thanks"] .mail, [data-view="thanks"] .login-creds, [data-view="thanks"] .login-creds p { min-width:0; max-width:100%; box-sizing:border-box; }
/* Registration gate: two subject choices + compact existing-student login */
.need-register-choices { gap:10px; }
.need-register-choices .need-register-subject { display:block; box-sizing:border-box; width:100%; min-height:48px; padding:12px 14px; font-size:17px; font-weight:600; text-decoration:none; text-align:center; box-shadow:none; text-shadow:none; }
.need-register-login-row { margin:6px 0 0 !important; font-size:16px; font-weight:500 !important; }
.need-register-login-row .need-register-login { display:inline; min-height:44px; padding:10px 6px; background:none; border:0; color:var(--navy,#003a7d); font:inherit; font-weight:700; text-decoration:underline; cursor:pointer; box-shadow:none; }
.need-register-card { max-height:calc(100dvh - 24px); overflow:auto; box-sizing:border-box; }

/* Admin landing price-table editor */
.pt-editor{display:grid;gap:10px;max-width:100%;min-width:0;font-size:16px}
.pt-editor label{display:grid;gap:4px;min-width:0}
.pt-editor input,.pt-editor select{font-size:16px;max-width:100%;min-width:0}
.pt-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:8px;border:1px solid var(--line,#c9d6ee);border-radius:12px;padding:10px;min-width:0}
.pt-check{display:flex!important;align-items:center;gap:6px}
.pt-row-actions{display:flex;gap:6px}.pt-row-actions button{min-width:44px;min-height:44px}
.pt-warn{color:#8a4b00;font-weight:600}.pt-charge{color:#003a7d}
.pt-preview{border:1px dashed #41d9f8;border-radius:12px;padding:10px;overflow-wrap:anywhere}
.pt-preview table{width:100%}.pt-preview small{display:block;opacity:.75}
.pt-host-row td{white-space:normal}

/* Product save recovery status (staff only, rendered by products-20260909lab.js). */
.product-save-issues{position:fixed;inset-inline:12px;bottom:12px;z-index:90;max-width:560px;margin-inline:auto;background:#fff;color:#003a7d;border:2px solid #c0392b;border-radius:14px;box-shadow:0 8px 24px rgba(0,58,125,.18);padding:10px 14px;font-size:15px;line-height:1.45;direction:rtl}
.product-save-issues ul{margin:0 0 8px;padding-inline-start:18px}
.product-save-issues li{overflow-wrap:anywhere}
.product-save-issues-actions{display:flex;flex-wrap:wrap;gap:8px}
.product-save-issues-actions .btn{min-height:40px;padding:6px 12px;font-size:15px}

/* Fresh-version button (app-update-20261104.js) */
.app-update-btn {
  position: fixed; inset-inline-start: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(50%);
  z-index: 9999; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: #003a7d; color: #fff; font: 600 15px/1 Heebo, "Noto Sans Hebrew", sans-serif;
  box-shadow: 0 8px 24px rgba(0, 58, 125, .28); cursor: pointer;
}
.app-update-btn:focus-visible { outline: 3px solid #41d9f8; outline-offset: 2px; }

/* Pricing admin: compact search/filter and copy-settings panel */
.pricing-admin .pc-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.pricing-admin .pc-search { flex: 1 1 200px; min-width: 0; min-height: 40px; font-size: 16px; padding: 0 12px; border: 1px solid #dbe6fb; border-radius: 10px; }
.pricing-admin .pc-bar select { min-height: 40px; font-size: 16px; border-radius: 10px; border: 1px solid #dbe6fb; padding: 0 10px; }
.pricing-admin .pc-copy { margin: 0 0 12px; border: 1px solid #dbe6fb; border-radius: 12px; padding: 8px 12px; background: #f7f9ff; }
.pricing-admin .pc-copy summary { cursor: pointer; font-weight: 600; color: #003a7d; min-height: 32px; display: flex; align-items: center; }
.pricing-admin .pc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; margin-top: 8px; }
.pricing-admin .pc-grid fieldset { border: 1px solid #dbe6fb; border-radius: 10px; padding: 6px 10px; min-width: 0; }
.pricing-admin .pc-targets { max-height: 220px; overflow: auto; }
.pricing-admin .pc-check { display: flex; gap: 6px; align-items: center; min-height: 32px; font-size: 14px; }
.pricing-admin .pc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pricing-admin .pc-preview { font-size: 14px; margin-top: 8px; }
.pricing-admin .pc-item { padding: 4px 0; border-bottom: 1px dashed #dbe6fb; }
.pricing-admin .pc-item ul { margin: 2px 0; padding-inline-start: 18px; }
.pricing-admin .pc-note { color: #003a7d; font-weight: 600; }

/* Product purchase link entry + in-card pricing (2026-11-05) */
.product-entry{max-width:520px;margin:24px auto;padding:24px 20px;background:#fff;border-radius:18px;box-shadow:0 10px 30px rgba(0,58,125,.12);text-align:center;display:grid;gap:14px}
.product-entry h1{font-size:clamp(1.25rem,4.5vw,1.6rem);color:#003a7d;margin:0}
.product-entry-price{font-size:1.6rem;font-weight:800;color:#003a7d;margin:0;display:grid;gap:2px}
.product-entry-price small{font-size:.9rem;font-weight:500;color:#45507a}
.product-entry-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.product-entry-actions .btn{min-height:48px;white-space:normal;line-height:1.25;padding:10px 12px}
.product-entry-existing{background:#fff;color:#003a7d;border:2px solid #003a7d}
.product-entry-terms{display:flex;gap:8px;align-items:center;justify-content:center;font-size:.95rem}
@media (max-width:420px){.product-entry-actions{grid-template-columns:minmax(0,1fr)}}
#payForm.is-existing-buy .field-line:has(#payPassword),#payForm.is-existing-buy .field-line:has(#payPasswordConfirm),#payForm.is-existing-buy #payPasswordWarning,#payForm.is-existing-buy #payPasswordConfirmWarning{display:none}
#payForm.is-existing-buy input[readonly]{background:#eef2fb}
.purchase-alerts{margin:0 0 12px;padding:10px 12px;border:1px solid #e3b3b3;background:#fff6f6;border-radius:12px;font-size:.9rem}.purchase-alerts ul{margin:6px 0 0;padding:0 18px 0 0;display:grid;gap:6px}.purchase-alerts .btn{padding:4px 8px;font-size:.8rem}
.prices-page:has(#productEntry) > :not(#productEntry){display:none!important}

.product-modal-card .product-pricing-section{margin:0 0 12px;padding:12px;border:1px solid #d6dbe6;border-radius:8px;background:#fafbfd}
.product-modal-card .product-pricing-section h3{margin:0 0 8px;font-size:1rem;font-weight:600}
.product-modal-card .product-pricing{display:grid;gap:10px}
.product-modal-card .product-pricing-state{margin:0;font-size:.88rem;font-weight:600}
.product-modal-card .product-pricing-state.is-active{color:#14632f}.product-modal-card .product-pricing-state.is-needs_pricing,.product-modal-card .product-pricing-state.is-inactive{color:#9b1c1c}
.product-modal-card .product-pricing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.product-modal-card .product-pricing-grid label,.product-modal-card .product-pricing-link{display:grid;gap:3px;font-size:.85rem;font-weight:500}
.product-modal-card .product-pricing-grid input,.product-modal-card .product-pricing-url{width:100%;min-width:0;height:38px;padding:0 8px;border:1px solid #b9c2d3;border-radius:6px;font:inherit;background:#fff}
.product-modal-card .product-pricing-url{font-size:.8rem;color:#22304d}
.product-modal-card .product-pricing-actions{display:flex;flex-wrap:wrap;gap:8px}
.product-modal-card .pp-btn{height:40px;padding:0 14px;border:1px solid #2e7d4f;border-radius:7px;background:#e6f4ea;color:#123d24;font:inherit;font-size:.92rem;font-weight:500;box-shadow:none;cursor:pointer}
.product-modal-card .pp-btn:hover{background:#d3ecdc}
.product-modal-card .pp-btn:focus-visible{outline:2px solid #123d24;outline-offset:2px}
.product-modal-card .product-pricing-copy{margin:0;font-size:.82rem;color:#14632f}.product-modal-card .product-pricing-copy.is-error{color:#9b1c1c}
@media (max-width:420px){.product-modal-card .product-pricing-grid{grid-template-columns:minmax(0,1fr)}}
.product-modal-card .product-pricing-link[hidden]{display:none}