/* <no-missing-fonts> The IBM Plex Sans Arabic files were never uploaded to the site (fonts/ does not exist), so every visit made 4
   failed requests and the browser used the fallback font anyway. The font-family lists below are unchanged. */

:root {
  --ink: #14213d;
  --muted: #5c6b7a;
  --line: #e4eaf1;
  --paper: #eef3f8;
  --surface: #fff;
  --accent: #0f6e6b;
  --deep: #0f3d4c;
  --navy: #12324d;
  --coral: #c4492c;
  --mint: #e7f6f4;
  --warn: #9a4d12;
  --warn-bg: #fff6e8;
  --soft: #f2f6fa;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #f8fbff, var(--paper) 42%);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
button { font: inherit; cursor: pointer; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 12px;
  font: inherit;
  font-size: 16px;
}
textarea { min-height: 88px; }
#raw { min-height: 140px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); background: #fff; }
label { display: block; margin: 12px 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, var(--deep), var(--accent));
}
.gate h1 { margin: 0; font-size: clamp(32px, 6vw, 44px); }
.gate p { margin: 0; color: var(--mint); }
.brandline { display: flex; align-items: center; gap: 8px; }
.word { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: 0.12em; }
@media (max-width: 900px) { .word { font-size: 20px !important; letter-spacing: 0.08em; } }
.logo { width: 56px; height: 46px; }
.logo.sm { width: 48px; height: 40px; }
.langbtn {
  width: min(440px, 100%);
  border: 0;
  border-radius: 18px;
  padding: 22px 16px;
  background: var(--navy);
  color: #fff;
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 700;
}
.langbtn.install { background: #fff; color: #0f3d4c; text-decoration: none; display: block; text-align: center; }
#langgate { position: fixed; inset: 0; z-index: 80; }
body.ready #langgate { display: none; }
body:not(.ready) #shell { display: none; }
header {
  background: linear-gradient(135deg, var(--deep), var(--accent));
  color: #fff;
  padding: 18px 16px;
}
.top { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
header p { max-width: 1040px; margin: 10px auto 0; color: var(--mint); font-size: 14px; line-height: 1.6; }
.pill { border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; }
.trial { background: var(--warn-bg); color: var(--warn); text-align: center; padding: 8px 12px; font-size: 14px; font-weight: 700; }
main { width: min(1040px, 100%); margin: 0 auto; padding: 16px; display: grid; gap: 16px; }
/* <mobile-grid-fit> one column that may shrink: on 360px phones the cards were 14px wider than the screen (sideways scrolling) */
@media (max-width: 979px) { main { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 980px) {
  main { grid-template-columns: minmax(320px, 430px) 1fr; align-items: start; }
  .form { position: sticky; top: 16px; }
}
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: 0 12px 30px rgba(20,33,61,.06); }
h2 { margin: 16px 0 8px; font-size: 18px; color: var(--deep); }
h2:first-child { margin-top: 0; }
.lead { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 10px; }
.actions, .pair { display: grid; gap: 8px; }
.pair { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .pair { grid-template-columns: 1fr; } }
.actions { margin-top: 12px; }
button.primary, button.navy, button.soft, button.wide, button.red, button.yellow {
  border: 0;
  border-radius: 12px;
  min-height: 48px;
  padding: 12px;
  font-weight: 700;
  font-size: 16px;
}
.primary { background: var(--accent); color: #fff; }
.navy { background: var(--navy); color: #fff; }
.red { background: #c4492c; color: #fff; }
.yellow { background: #f5c518; color: #1a1a1a; border-color: #e0b000; }
.soft { background: var(--soft); color: var(--navy); }
.wide { width: 100%; margin-top: 12px; }
.status { color: var(--accent); font-weight: 700; font-size: 14px; min-height: 1.2em; }
.warnings { margin: 8px 0 0; padding: 0 18px; color: #d32f2f; font-weight: 700; font-size: 14px; }
.found { margin-top: 12px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 12px; }
.found p { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 700; }
.found dt { font-size: 12px; color: var(--muted); font-weight: 700; }
.found dd { margin: 0 0 8px; font-weight: 650; }
.paywall { position: fixed; inset: 0; background: rgba(15,61,76,.62); display: none; align-items: center; justify-content: center; z-index: 20; padding: 16px; }
.paywall.show { display: flex; }
.paycard { width: min(440px, 100%); background: #fff; border-radius: 22px; padding: 20px; text-align: center; }
html[lang="en"] .paycard { direction: ltr; }
html[lang="ar"] .paycard { direction: rtl; }
.price { font-size: 28px; font-weight: 700; color: var(--accent); margin: 8px 0 12px; }
.label { width: 100%; max-width: 760px; margin-inline: auto; overflow: visible; border: 1px solid #d7e4ea; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(15,61,76,.12); }
.label-head { display: flex; justify-content: space-between; gap: 10px; padding: 16px 18px; color: #fff; background: linear-gradient(135deg, var(--deep), var(--accent)); }
.label-brand { font-size: clamp(16px, 4vw, 22px); font-weight: 700; word-break: break-word; color: #fff; }
.label-sub { margin-top: 4px; font-size: 12px; opacity: .85; }
.label-pill { align-self: center; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; background: rgba(255,255,255,.12); padding: 6px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.label-block { padding: 16px 18px 6px; }
.label-tag { font-size: 11px; font-weight: 700; color: var(--accent); }
.label-who { margin-top: 4px; font-size: clamp(22px, 4vw, 32px); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.label-phone { display: inline-block; margin-top: 8px; border-radius: 10px; background: var(--mint); padding: 7px 12px; color: var(--deep); font-size: clamp(16px, 3vw, 22px); font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.label-addrbox { margin: 12px 16px; border: 1px solid #d5ebe8; border-radius: 14px; background: #f7fbfb; padding: 14px; min-height: auto; height: auto; overflow: visible; }
.label-addr { margin-top: 4px; font-size: clamp(22px, 3.4vw, 28px); font-weight: 700; line-height: 1.35; color: #111; white-space: pre-wrap; overflow-wrap: anywhere; }
.label-city { margin-top: 8px; color: var(--deep); font-size: clamp(18px, 3vw, 24px); font-weight: 700; }
.label-country { margin-top: 4px; color: var(--coral); font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.label-note { margin-top: 8px; font-size: 14px; }
.label-split { display: grid; grid-template-columns: 1.4fr .8fr; }
.label-cell { padding: 14px 18px 16px; }
.label-cell + .label-cell { background: #fff8f3; }
.label-cod { margin-top: 4px; color: var(--coral); font-size: clamp(20px, 4vw, 28px); font-weight: 700; direction: ltr; }
.label-mark { display: flex; align-items: center; justify-content: center; gap: 8px; border-top: 1px solid var(--line); padding: 8px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .2em; }
body.ticket .label { max-width: 320px; border-radius: 12px; }
body.ticket-58 .label { max-width: 200px !important; width: 200px; }
body.ticket-72 .label { max-width: 260px !important; width: 260px; }
body.ticket-80 .label { max-width: 300px !important; width: 300px; }
body.ticket-90 .label { max-width: 340px !important; width: 340px; }
body.ticket-100 .label { max-width: 380px !important; width: 380px; }
body.ticket-110 .label { max-width: 420px !important; width: 420px; }
body.ticket .label-head { color: #111; background: #fff; border-bottom: 2px solid #111; }
body.ticket .label-brand { color: #111; }
body.ticket .label-pill { border: 1px solid #111; background: #fff; color: #111; }
body.ticket .label-phone, body.ticket .label-addrbox, body.ticket .label-cell + .label-cell { border-color: #111; background: #fff; color: #111; }
body.ticket .label-tag, body.ticket .label-city, body.ticket .label-cod, body.ticket .label-country { color: #111; }
body.ticket .label-split { grid-template-columns: 1fr; }
body.ticket .label-cell + .label-cell { border-top: 1px solid #111; }
@media (max-width: 640px) {
  .label-split { grid-template-columns: 1fr; }
  .label-cell + .label-cell { border-top: 1px solid var(--line); }
}
@media print {
  .no-print, #langgate, #authgate, #paywall { display: none !important; }
  body { background: #fff; }
  main, section, .card { display: block; border: 0 !important; background: transparent !important; padding: 0 !important; box-shadow: none !important; }
  .label { max-width: none; margin: 0 auto; box-shadow: none; page-break-inside: auto; break-inside: auto; }
  body.ticket .label {
    width: calc(100% - 6mm);
    max-width: none;
    margin: 0 auto;
    box-sizing: border-box;
    border-radius: 2mm;
  }
  body.ticket-58 .label-head,
  body.ticket-72 .label-head,
  body.ticket-80 .label-head,
  body.ticket-90 .label-head,
  body.ticket-100 .label-head,
  body.ticket-110 .label-head { gap: 2mm; padding: 2.5mm 3mm 2mm; }
  body.ticket-58 .label-mark,
  body.ticket-72 .label-mark,
  body.ticket-80 .label-mark,
  body.ticket-90 .label-mark,
  body.ticket-100 .label-mark,
  body.ticket-110 .label-mark { padding: 5mm 3mm 4mm; }
  body.ticket-58 .label-block,
  body.ticket-72 .label-block { padding: 3mm 3mm 1mm; }
  body.ticket-58 .label-cell,
  body.ticket-72 .label-cell { padding: 3mm; }
  body.ticket-58 .label-addr { font-size: 12pt; line-height: 1.25; }
  body.ticket-72 .label-addr { font-size: 14pt; line-height: 1.25; }
  body.ticket-58 .label-city,
  body.ticket-72 .label-city { font-size: 11pt; }
  body.ticket-58 .label-note,
  body.ticket-72 .label-note { font-size: 9pt; }
  .label-addr { font-size: 18pt; font-weight: 700; color: #000; line-height: 1.3; }
  .label-brand { color: #000 !important; }
  .label-head { background: #fff !important; color: #000 !important; }
  @page { size: A4; margin: 10mm; }
}

html[lang="en"] .label-who,
html[lang="en"] .label-addr,
html[lang="en"] .label-city,
html[lang="en"] .label-phone {
  overflow-wrap: anywhere;
  word-break: break-word;
}
html[lang="en"] .label-phone,
html[lang="en"] .label-city,
html[lang="en"] .label-addr {
  direction: ltr;
  unicode-bidi: isolate;
}

/* === FIXES v2 === */
/* Phone number always LTR even in RTL mode */
.label-phone { direction: ltr !important; unicode-bidi: isolate !important; }

/* Label pill RED */
.label-pill { background: #c4492c !important; border-color: #c4492c !important; color: #fff !important; }

/* AI parse button */
.ai-btn { background: linear-gradient(135deg, #0f6e6b, #0f3d4c); color:#fff; position:relative; overflow:hidden; }
.ai-btn::after { content:'✨'; position:absolute; right:14px; top:50%; transform:translateY(-50%); font-size:18px; }

.top-actions { display:flex; align-items:center; gap:8px; }
.subscribe-pill { background:#f5c518; color:#1a1a1a; border-color:#e0b000; font-weight:700; }
#btnLangTop { background:#d32f2f; color:#fff; border-color:#d32f2f; }
.payment-option { margin:12px 0; padding:12px; border:1px solid #d7e4ea; border-radius:14px; background:#fbfdfd; }
.payment-option > strong { display:block; margin-bottom:8px; }
#paypal-button-container, #card-button-container { min-height:42px; }
.pay-link{display:flex;align-items:center;justify-content:center;text-decoration:none;text-align:center;min-height:48px;margin-top:16px;cursor:pointer}
.pay-hint{font-size:13px;line-height:1.7;opacity:.75;margin:10px 0 0;text-align:center}

/* Installed app (desktop/phone) keeps top button colors */
#btnSubscribe.subscribe-pill,
#btnLangTop {
  -webkit-appearance: none;
  appearance: none;
  opacity: 1;
}
#btnSubscribe.subscribe-pill {
  background: #f5c518 !important;
  color: #1a1a1a !important;
  border-color: #e0b000 !important;
}
#btnLangTop {
  background: #d32f2f !important;
  color: #fff !important;
  border-color: #d32f2f !important;
}
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: window-controls-overlay) {
  #btnSubscribe.subscribe-pill {
    background: #f5c518 !important;
    color: #1a1a1a !important;
    border-color: #e0b000 !important;
  }
  #btnLangTop {
    background: #d32f2f !important;
    color: #fff !important;
    border-color: #d32f2f !important;
  }
}



/* PRINT FIX: prevent an extra blank A4 page without changing label content/design */
@media print {
  html, body {
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body {
    overflow: visible !important;
  }
  main {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  main > section:not(:has(#sheet)) {
    display: none !important;
  }
  main > section:has(#sheet) {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    break-after: auto !important;
    page-break-after: auto !important;
  }
  #sheet, #sheet .label {
    min-height: 0 !important;
    height: auto !important;
    break-before: auto !important;
    break-after: avoid !important;
    page-break-before: auto !important;
    page-break-after: avoid !important;
    margin-bottom: 0 !important;
  }
  .label {
    margin: 0 auto !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }
}


@media print {
  @page { margin: 0; }
  body { margin: 0; }
}

@media print {
  @page { margin: 0; }
  .label { margin-bottom: 0; }
}







@media print {
  body.ticket-58 .label,
  body.ticket-72 .label {
    width: calc(100% - 6mm) !important;
    max-width: none !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
}

/* <ios-ticket-width> iPhone/iPad ignore the roll size set with @page and print on A4, so "100% of the page" stretched the
   58/72 mm label across the whole sheet. min() caps the width at the roll width: on a real 58/72 mm page nothing changes
   (100% - 6mm is already the smaller value); on an A4 page the label keeps its true physical size. */
@media print {
  body.ticket-58 .label { width: min(calc(100% - 6mm), 52mm) !important; }
  body.ticket-72 .label { width: min(calc(100% - 6mm), 66mm) !important; }
}



/* 58mm roll: keep the payment pill inside the label (it was cut off at the edge) */
@media print {
  body.ticket-58 .label-head { flex-wrap: wrap; }
  body.ticket-58 .label-pill { font-size: 8pt; padding: 1mm 2mm; }
}

/* <phone-ticket-fit> On a phone the on-screen preview of a wide roll (90/100/110 mm = 340-420px) was wider than the panel,
   which made iOS zoom the whole page out. The preview width is now capped to the screen width. Screen only: printing is unchanged. */
@media screen {
  body.ticket-80 .label  { width: min(300px, calc(100vw - 70px)) !important; }
  body.ticket-90 .label  { width: min(340px, calc(100vw - 70px)) !important; }
  body.ticket-100 .label { width: min(380px, calc(100vw - 70px)) !important; }
  body.ticket-110 .label { width: min(420px, calc(100vw - 70px)) !important; }
}

/* <print-hide-legal> The Terms/Privacy links are never part of a printed label. */
@media print {
  #legal-foot, #legal-auth { display: none !important; }
}

/* <auth-compact> The sign-in page used the huge language-screen buttons, so "Subscribe now" fell below the fold. Smaller, one-line buttons. */
#authgate .langbtn { font-size: 18px; padding: 12px 14px; border-radius: 12px; }
#authgate #btnAuthSubmit { font-size: 20px; padding: 13px 14px; }
#authgate #btnAuthToggle, #authgate #btnForgot { width: auto; font-size: 15px; padding: 11px 8px !important; line-height: 1.25; }
#authgate #btnAuthLang { margin-top: 0 !important; }
#authgate #btnAuthSubscribe { margin-top: 8px !important; }
#authgate h1#authTitle { font-size: 24px !important; margin: 4px 0 !important; }
#authgate #authSub { margin: 2px 0 8px !important; }
#authgate #authMsg { margin: 4px 0 !important; }

/* <redesign-v104> Teal wave design for the language page and the sign-in page. Visual only: no ids, no display rules (app.js hides buttons with inline display). */

#langgate,#authgate{background-image:
 radial-gradient(1.6px 1.6px at 8px 8px, rgba(255,255,255,.16) 99%, transparent 100%),
 url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%201200%20800%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%233ddbb0%22%20stop-opacity%3D%22.35%22/%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%230f6e6b%22%20stop-opacity%3D%220%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20d%3D%22M0%20560C220%20470%20380%20640%20640%20600S1020%20430%201200%20500V800H0Z%22%20fill%3D%22url%28%23g%29%22/%3E%3Cpath%20d%3D%22M0%20640C260%20560%20420%20720%20700%20680S1040%20560%201200%20620%22%20fill%3D%22none%22%20stroke%3D%22%237fe8c8%22%20stroke-opacity%3D%22.35%22%20stroke-width%3D%222%22/%3E%3Cpath%20d%3D%22M700%200C860%20120%201000%2060%201200%20220V0Z%22%20fill%3D%22%233ddbb0%22%20fill-opacity%3D%22.10%22/%3E%3Cpath%20d%3D%22M0%20120C120%20200%20220%20140%20330%20260%22%20fill%3D%22none%22%20stroke%3D%22%237fe8c8%22%20stroke-opacity%3D%22.22%22%20stroke-width%3D%222%22/%3E%3C/svg%3E"),
 radial-gradient(900px 520px at 85% 8%, rgba(80,220,190,.18), transparent 60%),
 radial-gradient(800px 500px at 8% 92%, rgba(240,192,64,.10), transparent 60%),
 linear-gradient(180deg,#0e3a49,#0f6e6b) !important;
 background-size:16px 16px,100% 100%,auto,auto,auto !important;background-repeat:repeat,no-repeat,no-repeat,no-repeat,no-repeat !important}
#btnAuthBack,#btnLangBack,#btnLangAuth{background:rgba(255,255,255,.12) !important;border:1.5px solid rgba(255,255,255,.5) !important;box-shadow:none !important;backdrop-filter:blur(6px);color:#fff !important;font-weight:700 !important;letter-spacing:.2px !important}

#btnAuthBack,#btnLangBack,#btnLangAuth{height:46px !important;padding:0 20px !important;border-radius:999px !important;font-size:16px !important;align-items:center !important;gap:9px !important}
#btnLangAuth::before{content:"";width:20px;height:20px;background:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E") center/contain no-repeat}
#btnInstall::before{content:"";width:20px;height:20px;background:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 11l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center/contain no-repeat}
#btnInstall{height:48px;padding:0 24px !important;font-weight:700 !important;box-shadow:0 6px 18px rgba(0,0,0,.28),0 0 22px rgba(40,220,110,.45) !important}
@media (min-width:900px){#btnAuthBack,#btnLangBack,#btnLangAuth{height:50px !important;font-size:17px !important;padding:0 24px !important}#btnInstall{height:54px;font-size:19px !important;padding:0 30px !important}}

#langgate .brandline{position:relative;margin-bottom:26px}
#langgate .brandline::after{content:"";position:absolute;left:50%;bottom:-12px;width:180px;height:2px;margin-left:-90px;background:linear-gradient(90deg,transparent,#7fe8c8,transparent);box-shadow:0 0 14px 2px rgba(127,232,200,.55)}
#langgate h1{position:relative;display:flex;align-items:center;gap:16px;justify-content:center}
#langgate h1::before,#langgate h1::after{content:"";width:clamp(36px,12vw,150px);height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.55))}
#langgate h1::after{transform:scaleX(-1)}
#langgate #pickAr,#langgate #pickEn{position:relative;order:1;display:flex;align-items:center;justify-content:center;font-size:24px !important;padding:20px 72px !important;border-radius:999px !important;min-height:72px;backdrop-filter:blur(6px)}
#langgate #pickAr{background:linear-gradient(180deg,#ffffff,#e4f2f0) !important;color:#12324d !important;box-shadow:0 12px 30px rgba(0,0,0,.30),0 0 0 4px rgba(127,232,200,.25) !important}
#langgate #pickEn{order:2;background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.05)) !important;color:#fff !important;border:1.5px solid rgba(255,255,255,.55) !important;box-shadow:0 8px 22px rgba(0,0,0,.18) !important}
#langgate #pickAr::before,#langgate #pickEn::before{content:"";position:absolute;inset-block:14px;inset-inline-start:0;width:64px;background-size:30px;background-repeat:no-repeat;background-position:center;border-inline-end:1px solid rgba(18,50,77,.22)}
#langgate #pickEn::before{border-inline-end-color:rgba(255,255,255,.35)}
#langgate #pickAr::after,#langgate #pickEn::after{content:"";position:absolute;inset-inline-end:26px;top:50%;width:22px;height:22px;margin-top:-11px;background-size:contain;background-repeat:no-repeat}
#langgate #pickAr::before{background-image:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2312324d%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229.5%22/%3E%3Cellipse%20cx%3D%2212%22%20cy%3D%2212%22%20rx%3D%224%22%20ry%3D%229.5%22/%3E%3Cpath%20d%3D%22M2.5%2012h19M4%207h16M4%2017h16%22/%3E%3C/svg%3E")} #langgate #pickAr::after{background-image:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2312324d%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M15%205l-7%207%207%207%22/%3E%3C/svg%3E")}
#langgate #pickEn::before{background-image:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229.5%22/%3E%3Cellipse%20cx%3D%2212%22%20cy%3D%2212%22%20rx%3D%224%22%20ry%3D%229.5%22/%3E%3Cpath%20d%3D%22M2.5%2012h19M4%207h16M4%2017h16%22/%3E%3C/svg%3E")} #langgate #pickEn::after{background-image:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M15%205l-7%207%207%207%22/%3E%3C/svg%3E")}
#langgate #btnInstall{order:3;display:inline-flex;align-items:center;gap:10px;background:linear-gradient(180deg,#2fd36b,#14a04a) !important;color:#fff !important;border:none !important;font-size:15px !important;padding:10px 20px !important;width:auto !important;min-width:0 !important;margin-top:14px !important;border-radius:999px !important}
#langgate #installMsg{order:4}
#langgate #legal-lang{order:9;margin-top:24px;display:flex;align-items:center;gap:18px;flex-wrap:nowrap;white-space:nowrap;justify-content:center;padding:12px 24px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.28);font-size:14px;color:#fff;backdrop-filter:blur(6px)}
#langgate #legal-lang a{color:#fff;text-decoration:none;display:inline-flex;align-items:center;gap:8px}
#langgate #legal-lang svg{width:18px;height:18px}
#langgate #legal-lang b{width:1px;height:18px;background:rgba(255,255,255,.35)}

@media (min-width:900px){
#langgate{gap:22px !important}
#langgate .logo{width:86px;height:72px}
#langgate .brandline .word{font-size:38px !important}
#langgate .brandline{margin-bottom:34px}
#langgate h1{font-size:64px !important}
#langgate p{font-size:24px !important}
#langgate #pickAr,#langgate #pickEn{width:min(700px,100%) !important;font-size:32px !important;min-height:92px;padding:24px 110px !important}
#langgate #pickAr::before,#langgate #pickEn::before{width:92px;background-size:40px;inset-block:18px}
#langgate #pickAr::after,#langgate #pickEn::after{width:28px;height:28px;margin-top:-14px;inset-inline-end:36px}
#langgate #btnInstall{font-size:18px !important;padding:13px 28px !important;margin-top:18px !important}
#langgate #legal-lang{font-size:17px;padding:15px 34px;gap:26px;margin-top:34px}
#langgate #legal-lang svg{width:22px;height:22px}
#langgate #legal-lang b{height:22px}
}

#authgate > div{max-width:470px;margin:34px auto;padding:26px 24px 22px !important;border-radius:26px;background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.22);box-shadow:0 20px 50px rgba(0,0,0,.25);backdrop-filter:blur(8px);width:calc(100% - 28px) !important;height:fit-content !important;min-height:0 !important;margin-top:64px !important}
#authgate .word{color:#fff !important}
#authgate .brandline{position:relative;margin-bottom:10px}
#authgate .brandline::after{content:"";position:absolute;left:50%;bottom:-8px;width:140px;height:2px;margin-left:-70px;background:linear-gradient(90deg,transparent,#7fe8c8,transparent);box-shadow:0 0 12px 2px rgba(127,232,200,.5)}
#authgate #authEmail,#authgate #authPass{width:100%;padding:16px 50px 16px 16px !important;font-size:16px !important;border-radius:14px !important;border:1.5px solid transparent !important;background-repeat:no-repeat !important;background-position:right 16px center !important;background-size:22px !important}
#authgate #authEmail{background-image:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%238a98a3%22%20stroke-width%3D%221.8%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222.5%22/%3E%3Cpath%20d%3D%22M3.5%207l8.5%206%208.5-6%22/%3E%3C/svg%3E") !important}
#authgate #authPass{background-image:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%238a98a3%22%20stroke-width%3D%221.8%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%2210.5%22%20width%3D%2214%22%20height%3D%2210%22%20rx%3D%222.5%22/%3E%3Cpath%20d%3D%22M8%2010.5V8a4%204%200%200%201%208%200v2.5%22/%3E%3C/svg%3E") !important}
#authgate div:has(> #authEmail){flex-direction:column !important;gap:10px !important;width:100% !important;max-width:none !important;margin:12px 0 !important}
#authgate #btnAuthSubmit{background:linear-gradient(180deg,#434a52,#22272c) !important;color:#fff !important;border:1px solid rgba(255,255,255,.18) !important;font-size:19px !important;font-weight:800 !important;padding:16px !important;max-width:none !important;box-shadow:0 10px 24px rgba(0,0,0,.28) !important;border-radius:14px !important}
#authgate #legal-auth{margin-top:14px !important;font-size:14px !important;color:#fff !important;max-width:none !important}
#authgate div:has(> #btnAuthToggle){max-width:none !important;margin:2px 0 !important;width:100% !important}
#authgate #btnAuthToggle,#authgate #btnForgot{white-space:nowrap;background:transparent !important;border:none !important;text-decoration:underline;font-size:15px !important;padding:8px 6px !important;color:#fff !important;box-shadow:none !important}
#authgate #btnAuthSubscribe{background:linear-gradient(180deg,#f6cf55,#eab92f) !important;color:#12324d !important;font-weight:800 !important;border:none !important;box-shadow:0 8px 20px rgba(0,0,0,.30) !important;max-width:none !important;font-size:16px !important;border-radius:14px !important;padding:13px !important}
#authgate #btnAuthLang{background:linear-gradient(180deg,#4ab8ff,#1f7fe0) !important;color:#fff !important;border:none !important;text-decoration:none !important;width:auto !important;min-width:190px;height:46px;padding:0 24px !important;border-radius:999px !important;font-size:16px !important;font-weight:700 !important;opacity:1;margin:8px auto 0 !important;display:flex;align-items:center;justify-content:center;gap:9px;box-shadow:0 6px 18px rgba(0,0,0,.28),0 0 22px rgba(70,170,255,.4) !important}
#authgate #btnAuthLang::before{content:"";width:20px;height:20px;background:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E") center/contain no-repeat}

@media (min-width:900px){
#authgate > div{display:grid !important;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);column-gap:52px;align-items:start;max-width:1120px !important;width:calc(100% - 80px) !important;margin:4vh auto 0 !important;padding:34px 48px 30px !important;text-align:center}
#authgate > div > *:not(#auth-promo){grid-column:1 !important;width:100% !important;max-width:none !important;margin-left:0 !important;margin-right:0 !important}
#authgate > div > .brandline{justify-content:center}
#authgate #auth-promo{grid-column:2 !important;grid-row:1 / span 14 !important;align-self:center;text-align:start}
#authgate .logo{width:66px;height:55px}
#authgate .brandline .word{font-size:30px !important}
#authgate h1#authTitle{font-size:34px !important}
#authgate #authSub{font-size:18px !important}
#authgate #authEmail,#authgate #authPass{font-size:18px !important;padding:17px 56px 17px 18px !important;background-size:24px !important}
#authgate #btnAuthSubmit{font-size:22px !important;padding:17px !important}
#authgate #legal-auth{font-size:15px !important}
#authgate #btnAuthToggle,#authgate #btnForgot{font-size:17px !important}
#authgate #btnAuthSubscribe{font-size:18px !important;padding:14px !important}
#authgate #btnAuthLang{font-size:16px !important}
#auth-promo{padding:34px 34px;border-radius:22px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.2);color:#fff}
#auth-promo h2{color:#fff !important;margin:0 0 20px;font-size:30px;line-height:1.35}
#auth-promo ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:18px}
#auth-promo li{display:flex;align-items:flex-start;gap:14px;font-size:19px;line-height:1.55;color:#eaf7f5}
#auth-promo li svg{flex:0 0 28px;width:28px;height:28px}
#auth-promo .price{margin-top:26px;padding-top:18px;border-top:1px solid rgba(255,255,255,.22);font-size:18px;color:#cfe9e5}
#auth-promo .price b{color:#f0c040;font-size:26px}
}
@media (max-width:899px){#auth-promo{display:none}}

#authgate[dir="ltr"] #authEmail,#authgate[dir="ltr"] #authPass{padding:16px 16px 16px 50px !important;background-position:left 16px center !important}
@media (min-width:900px){#authgate[dir="ltr"] #authEmail,#authgate[dir="ltr"] #authPass{padding:17px 18px 17px 56px !important}}
#auth-promo>span{display:block}
body:not(.ready) #legal-foot{display:none !important}
#authgate #authMsg:not(:empty){width:100%;box-sizing:border-box;padding:11px 14px;border-radius:12px;background:rgba(8,20,28,.55);border:1px solid rgba(255,255,255,.18);font-size:15px;font-weight:700;line-height:1.6;text-shadow:none}
@media (min-width:900px){#authgate > div > #btnAuthLang{width:auto !important;min-width:210px;justify-self:center;margin:10px auto 6px !important;height:48px}}
/* </redesign-v104> */

/* <redesign-inside-v110> App page (after language/sign-in): same teal design. Screen only (print untouched); no display !important so app.js can still hide buttons. */
@media screen {
body{background:radial-gradient(900px 420px at 85% -5%,rgba(61,219,176,.16),transparent 60%),radial-gradient(800px 420px at 5% 40%,rgba(240,192,64,.07),transparent 60%),linear-gradient(180deg,#eaf4f3,#f3f7fa 40%) !important}
#shell header{background-image:radial-gradient(1.6px 1.6px at 8px 8px,rgba(255,255,255,.14) 99%,transparent 100%),url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%201200%20300%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M0%20220C220%20150%20380%20270%20640%20235S1020%20130%201200%20190V300H0Z%22%20fill%3D%22%233ddbb0%22%20fill-opacity%3D%22.18%22/%3E%3Cpath%20d%3D%22M0%20250C260%20190%20420%20290%20700%20260S1040%20190%201200%20240%22%20fill%3D%22none%22%20stroke%3D%22%237fe8c8%22%20stroke-opacity%3D%22.35%22%20stroke-width%3D%222%22/%3E%3Cpath%20d%3D%22M800%200C900%2080%201050%2040%201200%20120V0Z%22%20fill%3D%22%233ddbb0%22%20fill-opacity%3D%22.12%22/%3E%3C/svg%3E"),linear-gradient(135deg,#0e3a49,#0f6e6b) !important;background-size:16px 16px,100% 100%,auto !important;background-repeat:repeat,no-repeat,no-repeat !important;border-radius:0 0 30px 30px;padding:18px 16px 22px !important;box-shadow:0 14px 34px rgba(14,58,73,.25)}
#shell header .word{letter-spacing:.14em}
#shell header .pill,#btnShellBack,#btnLogout{height:40px;display:inline-flex;align-items:center;gap:7px;padding:0 18px !important;background:rgba(255,255,255,.12) !important;border:1.5px solid rgba(255,255,255,.5) !important;color:#fff !important;font-weight:700 !important;font-size:15px !important;border-radius:999px !important;backdrop-filter:blur(6px);box-shadow:none !important}
#btnLangTop{background:rgba(255,255,255,.12) !important;border-color:rgba(255,255,255,.5) !important;color:#fff !important}
#shell header #subtitle{color:#d7f3ee !important;font-size:15px !important}
#trial:not(:empty){display:block;width:fit-content;max-width:calc(100% - 32px);margin:16px auto 0 !important;padding:9px 20px !important;border-radius:999px;background:#fff !important;color:#0f6e6b !important;border:1.5px solid #bfe3df;box-shadow:0 8px 20px rgba(15,61,76,.08)}
#trial:empty{display:none}
main .card{border:none !important;border-radius:26px !important;box-shadow:0 20px 44px rgba(15,61,76,.10) !important;padding:22px !important;background:#fff}
main h2{border-inline-start:4px solid #2fcaa6;padding-inline-start:10px;color:#0f3d4c !important}
main .lead{color:#5c6b7a}
main .card label{color:#35566b !important;font-size:13px !important}
main .card input,main .card textarea,main .card select{background:#fff !important;border:1.5px solid #d3e2e5 !important;border-radius:14px !important;padding:13px !important}
main .card input:focus,main .card textarea:focus,main .card select:focus{border-color:#2fcaa6 !important;box-shadow:0 0 0 4px rgba(47,202,166,.18) !important}
#btnLang{background:#eaf5ff !important;color:#1b6fc2 !important;border:1.5px solid #bcdcfb !important;border-radius:999px !important;display:flex;align-items:center;justify-content:center;gap:9px;min-height:46px;margin-top:0 !important;margin-bottom:14px}
#btnLang::before{content:"";width:20px;height:20px;background:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231b6fc2%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22/%3E%3Cpath%20d%3D%22M3%2012h18M12%203c3%203%203%2015%200%2018M12%203c-3%203-3%2015%200%2018%22/%3E%3C/svg%3E") center/contain no-repeat}
#btnParse{background:linear-gradient(180deg,#148a78,#0d6b62) !important;color:#fff !important;border-radius:16px !important;min-height:54px;font-size:18px !important;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 8px 18px rgba(13,107,98,.28)}
main .soft{background:#fff !important;border:1.5px solid #cfe0e3 !important;color:#12324d !important;border-radius:14px !important}
#btnPrint{background:linear-gradient(180deg,#434a52,#22272c) !important;border-radius:16px !important;min-height:54px;font-size:18px !important;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 10px 22px rgba(0,0,0,.22)}
#btnPrint::before{content:"";width:22px;height:22px;background:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.9%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M7%209V3h10v6M7%2017H5a2%202%200%200%201-2-2v-4a2%202%200%200%201%202-2h14a2%202%200%200%201%202%202v4a2%202%200%200%201-2%202h-2%22/%3E%3Crect%20x%3D%227%22%20y%3D%2214%22%20width%3D%2210%22%20height%3D%227%22%20rx%3D%221%22/%3E%3C/svg%3E") center/contain no-repeat}
#btnPrintLabel{background:linear-gradient(180deg,#4ab8ff,#1f7fe0) !important;color:#fff !important;border-radius:16px !important;min-height:54px;font-size:18px !important;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 10px 22px rgba(31,127,224,.30)}
#btnPrintLabel::before{content:"";width:22px;height:22px;background:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%225%22%20r%3D%223%22/%3E%3Ccircle%20cx%3D%226%22%20cy%3D%2212%22%20r%3D%223%22/%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2219%22%20r%3D%223%22/%3E%3Cpath%20d%3D%22M8.6%2010.5l6.8-4M8.6%2013.5l6.8%204%22/%3E%3C/svg%3E") center/contain no-repeat}
#sheet{background:radial-gradient(1.4px 1.4px at 8px 8px,rgba(15,110,107,.16) 99%,transparent 100%) 0 0/16px 16px,#f1f7f7;border-radius:20px;padding:22px 12px}
#legal-foot a{display:inline-block;background:#fff;border:1px solid #cfe0e3;border-radius:999px;padding:7px 18px;margin:0 6px !important;color:#12324d !important;text-decoration:none;font-weight:700}
main .soft{min-height:50px;display:flex;align-items:center;justify-content:center;gap:9px;font-size:16px !important;font-weight:800 !important;border-radius:14px !important}
#btnSample{background:linear-gradient(180deg,#e9f8f4,#d3efe8) !important;border:1.5px solid #8fd1c3 !important;color:#0b5e5a !important;box-shadow:0 4px 0 #9fd4c8,0 8px 16px rgba(15,110,107,.14) !important}
#btnSample::before{content:"";width:20px;height:20px;background:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%230f6e6b%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%203H7a2%202%200%200%200-2%202v14a2%202%200%200%200%202%202h10a2%202%200%200%200%202-2V8z%22/%3E%3Cpath%20d%3D%22M14%203v5h5M9%2013h6M9%2017h6%22/%3E%3C/svg%3E") center/contain no-repeat}
#btnClear{background:linear-gradient(180deg,#fff1ef,#fddcd7) !important;border:1.5px solid #f0a99e !important;color:#a8341f !important;box-shadow:0 4px 0 #f0b9af,0 8px 16px rgba(196,73,44,.12) !important}
#btnClear::before{content:"";width:20px;height:20px;background:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23b3402c%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%207h16M10%2011v6M14%2011v6M6%207l1%2013h10l1-13M9%207V4h6v3%22/%3E%3C/svg%3E") center/contain no-repeat}
#btnSample:active,#btnClear:active{transform:translateY(3px);box-shadow:0 1px 0 rgba(0,0,0,.1) !important}
#shell header #btnLangTop{background:#fff !important;color:#0f4c56 !important;border:none !important;font-weight:800 !important;box-shadow:0 4px 0 rgba(0,0,0,.22),0 8px 16px rgba(0,0,0,.18) !important}
#shell header #btnLangTop::before{content:"";width:18px;height:18px;background:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%230f4c56%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22/%3E%3Cpath%20d%3D%22M3%2012h18M12%203c3%203%203%2015%200%2018M12%203c-3%203-3%2015%200%2018%22/%3E%3C/svg%3E") center/contain no-repeat}
#shell header #btnLogout{background:linear-gradient(180deg,#ee7152,#cf4c2d) !important;color:#fff !important;border:none !important;font-weight:800 !important;box-shadow:0 4px 0 #9b3620,0 8px 16px rgba(0,0,0,.2) !important}
#shell header #btnLogout{line-height:37px}
#shell header #btnLogout::before{content:"";display:inline-block;vertical-align:middle;margin-inline-end:7px;margin-top:-3px;width:18px;height:18px;background:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M15%204h3a2%202%200%200%201%202%202v12a2%202%200%200%201-2%202h-3M10%208l-4%204%204%204M6%2012h10%22/%3E%3C/svg%3E") center/contain no-repeat}
html[lang="en"] #shell header #btnLogout::before{transform:scaleX(-1)}
}
/* </redesign-inside-v110> */

/* <signup-btn-narrow> the top-right "إنشاء حساب / Sign up" button is longer than the old one: compact on phones so it never touches Back; very small phones show the Arabic word only */
@media (max-width:420px){#langgate #btnLangAuth{font-size:13px !important;padding:0 12px !important;gap:6px !important;height:42px !important}#langgate #btnLangAuth::before{width:16px !important;height:16px !important}}
@media (max-width:380px){#langgate #btnLangAuth span:nth-of-type(2),#langgate #btnLangAuth span:nth-of-type(3){display:none}}
/* </signup-btn-narrow> */

/* <short-wait> buttons of the language page are locked while the answer arrives (no spinner, no dimming) */
#langgate.busy #pickAr,#langgate.busy #pickEn{pointer-events:none}
/* </short-wait> */

/* <subscribe-yellow> inside the tool: the small "اشترك" button in the header and the "اشترك الآن" button of the payment window are yellow (same yellow as the sign-up page); screen only, no display rules (app.js hides/shows these buttons) */
@media screen{
#shell header #btnSubscribe.subscribe-pill{background:linear-gradient(180deg,#f6cf55,#eab92f) !important;color:#12324d !important;border:1.5px solid rgba(255,255,255,.55) !important;font-weight:800 !important;box-shadow:0 5px 14px rgba(0,0,0,.25),0 0 18px rgba(246,207,85,.35) !important;backdrop-filter:none !important}
#paypalSubscribeLink.pay-link{background:linear-gradient(180deg,#f6cf55,#eab92f) !important;color:#12324d !important;font-weight:800 !important;box-shadow:0 8px 20px rgba(234,185,47,.45) !important}
}
/* </subscribe-yellow> */

/* <signin-left> language page: left button "دخول / Sign in" (opens login) next to the right "إنشاء حساب / Sign up". On phones both are compact, Arabic only below 380px, and the logo moves down so the two buttons have their own row */
@media (max-width:420px){#langgate #btnLangBack{font-size:13px !important;padding:0 12px !important;gap:6px !important;height:42px !important}}
@media (max-width:380px){#langgate #btnLangBack span:nth-of-type(2),#langgate #btnLangBack span:nth-of-type(3){display:none}}
@media (max-width:520px){#langgate .brandline{margin-top:52px !important}}
/* </signin-left> */

/* <legal-lang-fit> the Privacy | Terms pill of the language page was 1 px wider than a 360px phone (and cut at 320px): smaller padding and gaps on small screens */
@media (max-width:420px){#langgate #legal-lang{box-sizing:border-box;max-width:calc(100% - 16px);padding:11px 14px !important;gap:12px !important;font-size:13px !important}#langgate #legal-lang svg{width:16px !important;height:16px !important}}
/* </legal-lang-fit> */

/* <auth-back-on-top> on a computer window narrower than about 1250px the sign-up card reached the Back button and covered it (it could not be clicked): the button sits above the card */
#authgate #btnAuthBack{z-index:30}
/* </auth-back-on-top> */

/* <shop-phone> the shop's own phone under its name on the label (optional; empty = nothing is drawn) */
.label-shopphone { margin-top: 2px; font-size: clamp(12px, 3.2vw, 15px); font-weight: 600; opacity: .95; }
body.ticket-58 .label-shopphone, body.ticket-72 .label-shopphone { font-size: 10pt; }

/* <shop-box> framed shop data: name + phone + logo */
.shopbox { border: 2px solid #bfe3da; background: #f3fbf8; border-radius: 18px; padding: 12px 14px 12px; margin: 12px 0 14px; min-width: 0; }
.shopbox legend { padding: 0 8px; font-weight: 800; color: #0f3d4c; font-size: 15px; }
.shopbox-hint { margin: 0 0 6px; font-size: 12.5px; color: #5c6b7a; }
.logorow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 2px; }
.logorow img { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; border: 1.5px solid #d3e2e5; background: #fff; padding: 3px; }
.logorow button { width: auto; padding: 10px 16px; border-radius: 14px; border: 1.5px solid #cfe0e3; background: #fff; color: #12324d; font-weight: 800; font-size: 15px; font-family: inherit; cursor: pointer; }
.logorow button.danger { border-color: #f0c4c4; background: #fff5f5; color: #b03a3a; }
.logorow [hidden], #logoPreview[hidden] { display: none !important; }
.label-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.label-shoplogo { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; background: #fff; padding: 2px; flex: none; }
body.ticket .label-shoplogo { width: 11mm; height: 11mm; border-radius: 0; padding: 0; }
body.ticket-58 .label-shoplogo { width: 8mm; height: 8mm; }
@media print { .label-shoplogo { -webkit-print-color-adjust: exact; print-color-adjust: exact; } body.ticket-58 .label-shoplogo, body.ticket-72 .label-shoplogo { filter: grayscale(1) contrast(1.3); } } /* <logo-gray-print-only> gray only on the small 58/72 mm rolls; 80 mm and wider and A4 print in colour */
#logoMsg:empty { display: none; margin: 0; }
.label-shopphone { white-space: nowrap; }
body.ticket .label-shoplogo { width: 9mm; height: 9mm; }
body.ticket-58 .label-id { flex: 1 1 100%; }
body.ticket-58 .label-shopphone { white-space: normal; }
body.ticket-58 .label-head, body.ticket-72 .label-head { flex-wrap: wrap; }
body.ticket-72 .label-id { flex: 1 1 100%; }

/* <logo-tall> the logo keeps its own shape: fixed height, width follows (the old square box made wide logos tiny) */
.label-shoplogo { width: auto; height: 60px; max-width: 130px; }
body.ticket .label-shoplogo { width: auto; height: 14mm; max-width: 28mm; }
body.ticket-58 .label-shoplogo { height: 11mm; max-width: 20mm; }
body.ticket .label-head { flex-wrap: wrap; }
body.ticket .label-id { min-width: min(100%, max-content); }
.label-head { flex-wrap: wrap; }
.label-id { min-width: min(100%, max-content); }
body.ticket-58 .label-shoplogo { max-width: 14mm; }
body.ticket-58 .label-shopphone { white-space: nowrap; font-size: 9pt; }
body.ticket-58 .label-id { gap: 2mm; }

/* <pro-plan> upgrade button + comparison window */
.pro-pill { background: linear-gradient(135deg,#f6c445,#e8a317) !important; color: #3a2a00 !important; padding: 9px 16px; font-size: 15px; font-weight: 800; border: 0 !important; }
.pro-pill[hidden], .pro-modal[hidden] { display: none !important; }
.pro-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(10,30,45,.55); display: flex; align-items: center; justify-content: center; padding: 14px; overflow-y: auto; }
.pro-card { background: #fff; color: #12324d; border-radius: 22px; padding: 18px 16px 14px; width: 100%; max-width: 392px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.pro-card h2 { margin: 0; text-align: center; font-size: 19px; color: #0f3d4c; }
.pro-sub { text-align: center; color: #5c6b7a; font-size: 13px; margin: 4px 0 12px; }
.pro-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 6px; padding: 9px 0; border-top: 1px solid #e3edf0; font-size: 14px; align-items: center; text-align: center; }
.pro-grid.pro-head { border-top: 0; padding: 0 0 4px; font-weight: 900; }
.pro-col { background: #eef3f5; border-radius: 12px; padding: 8px 4px; display: flex; flex-direction: column; font-size: 14px; }
.pro-col b { font-size: 17px; }
.pro-col.pro-gold { background: linear-gradient(135deg,#f6c445,#e8a317); color: #3a2a00; }
.pro-feat { text-align: start; color: #35566b; font-weight: 700; }
.pro-yes { font-weight: 800; color: #0f6b4f; }
.pro-go { width: 100%; margin-top: 12px; padding: 14px; border: 0; border-radius: 16px; background: #0f3d4c; color: #fff; font-weight: 900; font-size: 17px; font-family: inherit; cursor: pointer; }
.pro-go:disabled { opacity: .6; cursor: default; }
.pro-note { text-align: center; color: #6b7b88; font-size: 12px; margin: 8px 0 0; min-height: 0; }
.pro-note:empty { display: none; }
.pro-later { display: block; margin: 8px auto 0; background: none; border: 0; color: #35566b; font-weight: 700; font-size: 14px; font-family: inherit; cursor: pointer; padding: 6px 12px; }
#shell header #btnUpgrade { background: linear-gradient(135deg,#f6c445,#e8a317) !important; color: #3a2a00 !important; border: 0 !important; font-weight: 800 !important; backdrop-filter: none; box-shadow: 0 4px 12px rgba(0,0,0,.25) !important; }
#shell header #btnUpgrade[hidden] { display: none !important; }

/* <pro-plan> store logo is a Pro feature (locked state) */
.pro-badge { display: inline-block; background: linear-gradient(135deg,#f6c445,#e8a317); color: #3a2a00; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 900; margin-inline-start: 6px; }
.pro-badge[hidden], .pro-unlock[hidden], #btnLogoPick[hidden] { display: none !important; }
.logorow .pro-unlock { border: 0; background: linear-gradient(135deg,#f6c445,#e8a317); color: #3a2a00; font-weight: 900; }
.logorow .pro-unlock { border: 1.5px solid #c98d0e; border-bottom-width: 4px; box-shadow: 0 2px 6px rgba(232,163,23,.35); }
.logorow .pro-unlock:active { border-bottom-width: 1.5px; transform: translateY(2px); }
.logo-lock { width: 52px; height: 52px; border-radius: 12px; border: 1.5px dashed #c9d8dc; background: #f4f8f9; display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.logo-lock[hidden] { display: none !important; }

.pro-no { color: #8a99a6; font-weight: 700; }

/* <pro-support> */
#shell header #btnSupport { cursor: pointer; }
#shell header #btnSupport[hidden] { display: none !important; }
.pro-modal[hidden] { display: none !important; }
.sup-mail { text-align: center; font-size: 19px; font-weight: 800; background: #eef6f5; border-radius: 12px; padding: 12px 8px; margin: 12px 0; user-select: all; word-break: break-all; }
.sup-row { display: flex; gap: 8px; }
.sup-row .pro-go { flex: 1; text-align: center; text-decoration: none; display: block; box-sizing: border-box; }
.sup-row .sup-alt { background: #fff !important; color: #0f3d4c !important; border: 1.5px solid #0f3d4c !important; }
/* <cancel-sub> */
.manage-sub { display: flex; width: fit-content; align-items: center; gap: 6px; margin: 8px auto 0; padding: 7px 16px; border: 1.5px solid #0f6b63; border-radius: 999px; background: #fff; color: #0f6b63; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 1px 0 rgba(15,107,99,.15); }
.manage-sub[hidden] { display: none !important; }
.sub-info { background: #eef6f5; border-radius: 12px; padding: 12px; margin: 12px 0; line-height: 1.9; font-size: 15px; }
.sub-info b { color: #0f3d4c; }
.sub-confirm { text-align: center; font-weight: 700; line-height: 1.8; margin: 8px 0; }
.sub-confirm[hidden], #subModal [hidden] { display: none !important; }
.sub-danger { background: #b3261e !important; }
.manage-sub::before { content: ""; width: 15px; height: 15px; background: no-repeat center/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6b63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3'/><path d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z'/></svg>"); }

/* <track> delivery tracking: QR block on the label + the switch in the shop box */
.trackrow { display: flex; align-items: center; gap: 12px; margin: 12px 0 6px; padding: 12px 14px; background: #fff; border: 1.5px solid #cfe3df; border-radius: 14px; font-weight: 800; color: #0f3d4c; cursor: pointer; }
.trackrow:has(input:checked) { border-color: #0f6b63; background: #eaf6f3; }
.trackrow:has(input:disabled) { background: #f6f8f8; color: #7a8a92; cursor: default; }
.trackrow input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: #0f6b63; }
.trackrow-t { display: block; font-size: 15px; }
.trackrow-t small { display: block; margin-top: 2px; font-weight: 600; color: #5c6b7a; font-size: 12.5px; }
.trackrow[hidden], .tracklock[hidden] { display: none !important; }
.tracklock { width: auto; border: 0; border-radius: 14px; padding: 10px 16px; font-family: inherit; font-size: 15px; cursor: pointer; margin-top: 6px; background: linear-gradient(135deg,#f6c445,#e8a317); color: #3a2a00; font-weight: 900; }
.label-track { display: flex; align-items: center; gap: 12px; border-top: 1.5px dashed #111; padding: 10px 16px; }
.lt-qr { flex: none; line-height: 0; }
.lt-qr svg { width: 110px; height: 110px; display: block; }
.lt-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lt-txt b { font-size: 16px; letter-spacing: .06em; color: #111; }
.lt-txt span { font-size: 11px; color: #5c6b7a; }
body.ticket-58 .label-track { flex-direction: column; text-align: center; gap: 4px; padding: 6px 4px; }
body.ticket-58 .lt-qr svg { width: 100%; max-width: 170px; height: auto; }
body.ticket-72 .lt-qr svg, body.ticket-80 .lt-qr svg { width: 120px; height: 120px; }
body.ticket-90 .lt-qr svg, body.ticket-100 .lt-qr svg, body.ticket-110 .lt-qr svg { width: 140px; height: 140px; }
@media print {
  .label-track { border-top: 1px dashed #000; padding: 2.5mm 3mm; break-inside: avoid; }
  .lt-qr svg { width: 26mm; height: 26mm; }
  body.ticket-58 .lt-qr svg { width: 34mm; height: 34mm; }
  body.ticket-72 .lt-qr svg, body.ticket-80 .lt-qr svg, body.ticket-90 .lt-qr svg { width: 30mm; height: 30mm; }
  body.ticket-100 .lt-qr svg, body.ticket-110 .lt-qr svg { width: 34mm; height: 34mm; }
  .lt-txt b { color: #000; } .lt-txt span { color: #000; }
}

/* <track> delivery log */
.track-log-btn { display: flex; width: fit-content; margin: 8px auto 0; align-items: center; gap: 8px; border: 1.5px solid #0f6b63; background: #fff; color: #0f6b63; border-radius: 999px; padding: 8px 18px; font-family: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.track-log-btn[hidden] { display: none !important; }
.tl-card { max-height: 88vh; display: flex; flex-direction: column; gap: 8px; }
.tl-sum { display: flex; gap: 8px; }
.tl-sum div { flex: 1; border-radius: 12px; padding: 7px 4px; text-align: center; font-weight: 800; font-size: 12px; }
.tl-sum b { display: block; font-size: 20px; }
.tl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tl-chip { border: 1.5px solid #c9d9d8; background: #fff; color: #12324d; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tl-chip.on { background: #0f6b63; color: #fff; border-color: #0f6b63; }
.tl-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 60px; }
.tl-it { border: 1px solid #c9d9d8; border-radius: 14px; padding: 9px 12px; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; }
.tl-nm { font-weight: 800; font-size: 15px; word-break: break-word; }
.tl-tag { font-weight: 800; font-size: 12px; border-radius: 999px; padding: 3px 11px; align-self: start; white-space: nowrap; }
.tl-g { background: #dff3e8; color: #12663a; } .tl-r { background: #fdeeed; color: #b3261e; } .tl-y { background: #fff3cf; color: #7a5b00; }
.tl-rs { font-size: 13px; color: #3a5662; grid-column: 1 / 3; word-break: break-word; }
.tl-tm { font-size: 12px; color: #6a8590; grid-column: 1 / 3; }
.tl-foot { font-size: 12px; color: #6a8590; text-align: center; line-height: 1.6; margin: 0; }
#trackModal [hidden] { display: none !important; }

/* the manage-subscription and delivery-log buttons share one line (they wrap on a narrow phone) */
.sub-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px auto 0; }
.sub-row:not(:has(> :not([hidden]))) { display: none; }
.sub-row .manage-sub, .sub-row .track-log-btn { margin: 0; }

/* delivery log button: navy with a gold border and gold text so the Pro feature stands out */
.sub-row .track-log-btn, .track-log-btn { background: #0f3d4c; color: #ffd666; border: 1.5px solid #ffd666; box-shadow: 0 4px 12px rgba(15,61,76,.4); }

/* new-status counter on the delivery-log button */
.track-log-btn { position: relative; }
.tl-badge { position: absolute; top: -9px; left: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #f0364a; color: #fff; font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(240,54,74,.5); }
.tl-badge[hidden] { display: none !important; }

/* customer tracking link button + the small address line under the tracking number */
.track-copy { background: #fff; color: #0f3d4c; border: 2px solid #0f3d4c; border-radius: 16px; padding: 12px; font-family: inherit; font-weight: 800; font-size: 16px; cursor: pointer; }
.track-copy[hidden] { display: none !important; }
/* <track-msg-card> the customer message shown as a WhatsApp-like bubble with a clear copy button */
.tm-card { margin-top: 12px; background: #fff; border: 1.5px solid #cfe3df; border-radius: 16px; padding: 14px; box-shadow: 0 4px 14px rgba(15,61,76,.08); }
.tm-card[hidden] { display: none !important; }
.tm-ttl { font-weight: 800; color: #0f3d4c; font-size: 15px; margin-bottom: 10px; }
.tm-bubble { background: #dcf8c6; border-radius: 12px 12px 2px 12px; padding: 12px 14px; font-size: 15px; line-height: 1.75; color: #111; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.tm-bubble .tm-link { color: #0b6bcb; text-decoration: underline; direction: ltr; unicode-bidi: isolate; }
button.tm-copy { margin-top: 12px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid #0f6b63; background: #fff; color: #0f6b63; border-radius: 12px; padding: 11px; min-height: 48px; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; }
button.tm-copy svg { width: 20px; height: 20px; flex: none; }
button.tm-copy.done { background: #0f6b63; color: #fff; }
@media print { .tm-card { display: none !important; } }
.lt-url { font-size: 10.5px !important; color: #333 !important; }
.lt-url i { font-style: normal; font-weight: 700; unicode-bidi: isolate; }

/* <compact-label> shorter thermal tickets (all widths): product + amount side by side, tighter boxes, smaller QR, the courier-page text in one line */
body.ticket .label-split { grid-template-columns: 1.2fr 1fr; }
body.ticket .label-cell + .label-cell { border-top: 0; border-inline-start: 1px solid #111; }
body.ticket .label-cell { padding: 8px 12px 10px; }
body.ticket .label-block { padding: 10px 12px 4px; }
body.ticket .label-addrbox { margin: 8px 10px; padding: 9px 10px; }
body.ticket .label-city { margin-top: 4px; }
body.ticket .label-note { margin-top: 4px; }
body.ticket .label-cod { font-size: 17px; white-space: nowrap; }
body.ticket .label-cell .label-addr { font-size: 17px; }
body.ticket .label-track { padding: 6px 10px; gap: 10px; }
body.ticket .lt-qr svg, body.ticket-72 .lt-qr svg, body.ticket-80 .lt-qr svg, body.ticket-90 .lt-qr svg, body.ticket-100 .lt-qr svg, body.ticket-110 .lt-qr svg { width: 84px; height: 84px; }
body.ticket .lt-txt { min-width: 0; flex: 1; }
body.ticket .lt-txt b { white-space: nowrap; text-align: start; }
body.ticket .lt-txt { align-items: flex-start; }
/* narrow rolls: product and amount under each other again; the QR block stays in a row with a smaller code */
body.ticket-58 .label-split, body.ticket-72 .label-split { grid-template-columns: 1fr; }
body.ticket-58 .label-cell + .label-cell, body.ticket-72 .label-cell + .label-cell { border-inline-start: 0; border-top: 1px solid #111; }
body.ticket-58 .label-track { flex-direction: row; text-align: start; gap: 6px; padding: 5px 6px; }
body.ticket-58 .lt-qr svg { width: 64px; height: 64px; max-width: none; }
body.ticket-58 .lt-txt b, body.ticket-72 .lt-txt b { font-size: 11px; letter-spacing: 0; white-space: normal; overflow-wrap: anywhere; }
body.ticket-58 .lt-txt span { font-size: 9px; }
@media print {
  body.ticket .label-head { padding: 2mm 3mm 1.5mm; }
  body.ticket .label-block { padding: 2mm 3mm 0.5mm; }
  body.ticket .label-addrbox { margin: 1.5mm 2.5mm; padding: 2mm 2.5mm; }
  body.ticket .label-cell { padding: 1.5mm 3mm 2mm; }
  body.ticket .label-cod { font-size: 13pt; }
  body.ticket .label-cell .label-addr { font-size: 13pt; }
  body.ticket-90 .label-cod, body.ticket-100 .label-cod, body.ticket-110 .label-cod, body.ticket-90 .label-cell .label-addr, body.ticket-100 .label-cell .label-addr, body.ticket-110 .label-cell .label-addr { font-size: 15pt; }
  body.ticket .label-track { padding: 1.5mm 3mm; gap: 3mm; }
  body.ticket .lt-qr svg, body.ticket-72 .lt-qr svg, body.ticket-80 .lt-qr svg, body.ticket-90 .lt-qr svg, body.ticket-100 .lt-qr svg, body.ticket-110 .lt-qr svg { width: 22mm; height: 22mm; }
  body.ticket-72 .lt-qr svg { width: 20mm; height: 20mm; }
  body.ticket-58 .label-track { padding: 1.5mm 2mm; gap: 2mm; }
  body.ticket-58 .lt-qr svg { width: 19mm; height: 19mm; }
  body.ticket-58 .lt-txt b, body.ticket-72 .lt-txt b { font-size: 8pt; }
  body.ticket-58 .lt-txt span { font-size: 6.5pt; }
  body.ticket .label-mark { padding: 2mm 3mm 1.5mm; }
}
body.ticket .lt-url { display: block; white-space: normal; overflow-wrap: anywhere; }
body.ticket-80 .label-split, body.ticket-90 .label-split { grid-template-columns: 1fr 1fr; }
body.ticket-80 .label-cell .label-addr, body.ticket-90 .label-cell .label-addr { font-size: 15px; }
@media print { body.ticket .lt-url { font-size: 7pt !important; } body.ticket-58 .lt-url { font-size: 6pt !important; } }
@media print { body.ticket-80 .label-cell .label-addr { font-size: 11.5pt; } body.ticket-80 .label-cod { font-size: 12pt; } body.ticket-90 .label-cell .label-addr { font-size: 12.5pt; } }
/* 80 mm: a long product name goes under the amount instead of a tall two-column block */
body.ticket-80 .label-split { grid-template-columns: 1fr; }
body.ticket-80 .label-cell + .label-cell { border-inline-start: 0; border-top: 1px solid #111; }
body.ticket-58 .lt-txt b { font-size: 10px; }
@media print { body.ticket-58 .lt-txt b { font-size: 7.5pt; letter-spacing: 0; } body.ticket-58 .lt-url { font-size: 5.5pt !important; } body.ticket-58 .lt-qr svg { width: 18mm; height: 18mm; } }
/* all rolls: amount is the big number, product a plain line */
body.ticket .label-cell .label-addr { font-size: 15px; font-weight: 700; }
body.ticket .label-cod { font-size: 20px; }
@media print { body.ticket .label-cell .label-addr { font-size: 11.5pt; } body.ticket .label-cod { font-size: 14pt; } body.ticket-90 .label-cell .label-addr, body.ticket-100 .label-cell .label-addr, body.ticket-110 .label-cell .label-addr { font-size: 12.5pt; } body.ticket-90 .label-cod, body.ticket-100 .label-cod, body.ticket-110 .label-cod { font-size: 15pt; } }

/* <a4-two> two labels on one A4 sheet */
.a4two-box { margin: 6px 0 2px; }
.a4two-box[hidden] { display: none !important; }
button.a4two-btn { border: 2px solid #0f6b63; background: #fff; color: #0f6b63; border-radius: 14px; padding: 12px; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
button.a4two-btn.is-held { border-color: #b3261e; color: #b3261e; background: #fff6f5; }
.a4two-hint { margin: 4px 2px 0; font-size: 12.5px; color: #5c6b7a; text-align: center; }
.held { margin-top: 14px; }
.held[hidden] { display: none !important; }
.cutline { display: flex; align-items: center; gap: 10px; margin: 10px 0; color: #888; font-size: 13px; font-weight: 700; }
.cutline::before, .cutline::after { content: ""; flex: 1; border-top: 2px dashed #999; }
@media print {
  body.a4-two #sheetHeld { margin: 0; }
  body.a4-two #sheetHeld[hidden] { display: none; }
  /* both labels must stay on ONE sheet, also on the shorter Letter paper (phones often default to it): each label is a block that is never split,
     and the whole pair is capped to the page height so the second label cannot be pushed to a new page */
  body.a4-two #sheet, body.a4-two #sheetHeld, body.a4-two .label { break-inside: avoid; page-break-inside: avoid; }
  body.a4-two .label { border: 1px dashed #999; border-radius: 4mm; width: 120mm; max-width: 120mm; margin: 0 auto; }
  body.a4-two .label-track { break-inside: avoid; }
  body.a4-two .label-head { padding: 3mm 5mm; }
  body.a4-two .label-block { padding: 2.5mm 5mm 0.5mm; }
  body.a4-two .label-who { font-size: 18pt; }
  body.a4-two .label-sub { margin-top: 1mm; }
  body.a4-two .label-note { margin-top: 1mm; font-size: 10pt; }
  body.a4-two .label-phone { margin-top: 1.5mm; padding: 1.5mm 3mm; font-size: 14pt; }
  body.a4-two .label-addrbox { margin: 2mm 4mm; padding: 2.5mm 4mm; }
  body.a4-two .label-addr { font-size: 14pt; line-height: 1.25; }
  body.a4-two .label-cell .label-addr { font-size: 12pt; }
  body.a4-two .label-cod { font-size: 15pt; }
  body.a4-two .label-split { grid-template-columns: 1fr 1fr; }
  body.a4-two .label-city { margin-top: 1mm; font-size: 13pt; }
  body.a4-two .label-cell { padding: 1.5mm 5mm 2.5mm; }
  body.a4-two .label-track { padding: 1.5mm 5mm; }
  body.a4-two .lt-qr svg { width: 20mm; height: 20mm; }
  body.a4-two .label-mark { padding: 1.5mm; }
  body.a4-two .cutline { margin: 2.5mm 0; color: #666; font-size: 10pt; break-inside: avoid; }
  body.a4-two .cutline::before, body.a4-two .cutline::after { border-top: 2px dashed #666; }
}

/* <tall-script> */
/* <tall-fix> Thai, Lao, Khmer, Myanmar, Tibetan, Sinhala: small letters with marks above and below. The text itself is made a little larger
   (relative to its own line, so a name stays a big name and a note stays a note) and the lines get more room. */
.label .tall { line-height: 1.55 !important; }
.label .tall > bdi { font-size: 1.12em; }
/* <phone-one-line> a phone number never breaks in the middle ("+975 / 17123456") */
.label-phone { white-space: nowrap; max-width: 100%; }
body.ticket-58 .label-phone { font-size: 15px; padding: 6px 8px; }
@media print { body.ticket-58 .label-phone { font-size: 11pt; } }

/* <prepaid> warning before printing a "paid" order */
#warnings li.warn-paid { background: #fff4cc; border: 1.5px solid #e8b400; color: #5a4300; border-radius: 10px; padding: 10px 12px; font-weight: 800; list-style: none; margin-bottom: 6px; }
#warnings li.warn-paid span { display: block; }
#warnings li.warn-paid button.paid-yes { margin-top: 8px; width: 100%; border: 2px solid #b8860b; background: #fff; color: #5a4300; border-radius: 10px; padding: 9px; font: inherit; font-weight: 800; cursor: pointer; }

/* <ko-words> Korean: break only at spaces ("울트라" stays whole), as in Korean typography; Chinese and Japanese are not affected */
.label .ko, html[lang] .label .ko { word-break: keep-all; }

/* <track-cust-lang> tracking lines: black and readable on a thermal printer; the customer's line first, the courier's line apart */
.label .lt-txt span { color: #111; font-size: 12.5px; }
.label .lt-txt .lt-cust { font-size: 13.5px; font-weight: 700; margin-top: 3px; white-space: normal; overflow-wrap: anywhere; }
.label .lt-txt .lt-en { font-size: 11px; color: #5c6b7a; }
.label .lt-txt .lt-cour { font-size: 12.5px; font-weight: 700; margin-top: 5px; padding-top: 4px; border-top: 1px dashed #999; }
@media print { .label .lt-txt .lt-en { color: #000; } }

/* <track-lines-size> the customer's tracking line keeps its size (the small link rule above was shrinking it);
   scripts with small letters (Tibetan, Thai, Khmer, Myanmar...) get bigger tracking lines, and long lines wrap instead of running out */
.label .lt-txt .lt-cust { font-size: 13.5px !important; color: #111 !important; }
.label .lt-txt .lt-cust.tall { font-size: 16px !important; line-height: 1.5 !important; }
.label .lt-txt .lt-cour { white-space: normal; overflow-wrap: anywhere; }
.label .lt-txt .lt-cour.tall { font-size: 15px; line-height: 1.5 !important; }
.label .lt-txt .label-tag.tall { font-size: 13px; line-height: 1.5 !important; }

/* <log-cards> the counters are buttons (filters) */
.tl-sum .tl-stat { flex: 1; border: 2px solid transparent; border-radius: 12px; padding: 7px 4px; text-align: center; font: inherit; font-weight: 800; font-size: 12px; cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,.08); transition: transform .08s, box-shadow .08s; }
.tl-sum .tl-stat:hover { transform: translateY(-1px); box-shadow: 0 3px 6px rgba(0,0,0,.12); }
.tl-sum .tl-stat:active { transform: translateY(1px); box-shadow: none; }
.tl-sum .tl-stat.on { border-color: currentColor; box-shadow: 0 0 0 2px #fff inset, 0 3px 8px rgba(0,0,0,.15); }
.tl-sum .tl-stat.tl-g { color: #12663a; } .tl-sum .tl-stat.tl-r { color: #b3261e; } .tl-sum .tl-stat.tl-y { color: #7a5b00; }
.tl-chips[hidden] { display: none; }

/* <log-search> */
.tl-search { width: 100%; box-sizing: border-box; border: 1.5px solid #c9d9d8; border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 14px; background: #fff; color: #12324d; }
.tl-search:focus { outline: none; border-color: #0f6b63; box-shadow: 0 0 0 3px rgba(15,107,99,.15); }
.tl-nores { margin: 4px 0 0; font-size: 13px; color: #5c6b7a; text-align: center; }

/* <log-delete> */
.tl-it { position: relative; }
.tl-del { position: absolute; bottom: 8px; inset-inline-end: 10px; border: 0; background: transparent; font-size: 15px; line-height: 1; padding: 4px; border-radius: 8px; cursor: pointer; opacity: .55; }
.tl-del:hover, .tl-del:focus-visible { opacity: 1; background: #fdeeed; }
.tl-delall { display: block; margin: 8px auto 0; border: 1.5px solid #f1c9c6; background: #fff; color: #b3261e; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tl-delall:hover { background: #fdeeed; }
.tl-delall[hidden] { display: none; }
.tl-confirm { position: absolute; inset: 0; background: rgba(18,50,77,.45); display: flex; align-items: center; justify-content: center; border-radius: inherit; padding: 16px; z-index: 5; }
.tl-confirm[hidden] { display: none; }
.tl-cf-box { background: #fff; border-radius: 14px; padding: 18px 16px 14px; max-width: 320px; width: 100%; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.tl-cf-t { font-weight: 800; font-size: 16px; margin: 0 0 6px; color: #12324d; }
.tl-cf-w { font-size: 13px; color: #b3261e; margin: 0 0 10px; }
.tl-cf-m { font-size: 13px; color: #b3261e; margin: 0 0 6px; min-height: 0; }
.tl-cf-b { display: flex; gap: 8px; }
.tl-cf-b button { flex: 1; border-radius: 10px; padding: 9px; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.tl-cf-yes { background: #b3261e; color: #fff; border: 0; } .tl-cf-yes:disabled { opacity: .6; }
.tl-cf-no { background: #fff; color: #12324d; border: 1.5px solid #c9d9d8; }
.tl-card { position: relative; }

/* <log-hide> */
.tl-del.tl-back { opacity: 1; font-size: 12.5px; font-weight: 800; color: #0f6b63; background: #e6f3f1; padding: 5px 10px; border-radius: 999px; }
.tl-delall.tl-back { color: #0f6b63; border-color: #b9dcd7; } .tl-delall.tl-back:hover { background: #e6f3f1; }
.tl-hidview { display: block; margin: 2px auto 0; border: 0; background: transparent; color: #3a5662; font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 4px 8px; }
.tl-hidview[hidden], .tl-hidnote[hidden] { display: none; }
.tl-hidnote { margin: 0; font-size: 12.5px; color: #5c6b7a; text-align: center; }
.tl-it .tl-del.tl-back { position: static; grid-column: 1 / -1; justify-self: start; margin-top: 6px; }

/* <log-trash-red> the bin is red on a light red circle, easy to see */
.tl-it .tl-del:not(.tl-back) { opacity: 1; color: #c62828; background: #fdecea; border: 1px solid #f5c6c2; width: 32px; height: 32px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.tl-it .tl-del:not(.tl-back):hover, .tl-it .tl-del:not(.tl-back):focus-visible { background: #c62828; color: #fff; border-color: #c62828; }
.tl-it .tl-tm { grid-column: 1; align-self: center; }
.tl-it .tl-del, .tl-it .tl-del.tl-back { position: static; grid-column: 2; justify-self: center; align-self: center; margin: 0; }

/* <log-back-top> */
.tl-chip.tl-backtop { background: #0f6b63; color: #fff; border: 0; font-weight: 800; padding: 7px 16px; box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.tl-chip.tl-backtop:hover { background: #0c5850; }

/* <log-restore-icon> the bring-back button: same round button as the bin, in green */
.tl-it .tl-del.tl-back { width: 32px; height: 32px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #0f6b63; background: #e6f3f1; border: 1px solid #b9dcd7; font-size: 0; }
.tl-it .tl-del.tl-back:hover, .tl-it .tl-del.tl-back:focus-visible { background: #0f6b63; color: #fff; border-color: #0f6b63; }
/* <log-pages> */
.tl-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; margin-top: 6px; }
.tl-pager[hidden] { display: none; }
.tl-pg { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 9px; border: 1px solid #c9d9d8; background: #fff; color: #12324d; font: inherit; font-weight: 800; font-size: 13.5px; cursor: pointer; }
.tl-pg:hover:not(:disabled) { background: #eef6f5; }
.tl-pg.on { background: #0f6b63; color: #fff; border-color: #0f6b63; cursor: default; }
.tl-pg:disabled:not(.on) { opacity: .35; cursor: default; }
.tl-pg-arrow { font-size: 18px; line-height: 1; }
.tl-pg-gap { color: #6a8590; padding: 0 2px; }

/* <log-close-btn> the log's Close is a real button (it used the plain "later" link style) */
#btnTlClose { display: block; width: 100%; max-width: 260px; margin: 6px auto 0; padding: 10px 16px; border-radius: 12px; border: 1.5px solid #0f6b63; background: #fff; color: #0f6b63; font: inherit; font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer; box-shadow: 0 2px 0 rgba(15,107,99,.15); }
#btnTlClose:hover, #btnTlClose:focus-visible { background: #0f6b63; color: #fff; }
/* <log-close-btn> smaller and softer (merchant's choice) */
#btnTlClose { width: auto; max-width: none; min-width: 120px; padding: 6px 22px; border-radius: 999px; border: 1px solid #c9d9d8; background: #f3f8f7; color: #3a5662; font-size: 13.5px; font-weight: 700; box-shadow: none; }
#btnTlClose:hover, #btnTlClose:focus-visible { background: #e3efed; color: #12324d; border-color: #b9cfcd; }
/* <log-close-btn> soft black (merchant's choice) */
#btnTlClose { background: #3b4148; color: #fff; border-color: #3b4148; }
#btnTlClose:hover, #btnTlClose:focus-visible { background: #2a2f35; color: #fff; border-color: #2a2f35; }

/* <courier-app-share> */
.courier-app-btn { display: block; width: 100%; margin-top: 8px; border: 1.5px solid #25a366; background: #effaf3; color: #14713f; border-radius: 12px; padding: 9px 12px; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.courier-app-btn:hover { background: #25a366; color: #fff; }
/* <courier-app-share> softer (merchant's choice): a calm WhatsApp green, smaller */
.courier-app-btn { background: #f2f8f4; border: 1px solid #cfe6d8; color: #2e7a52; font-size: 13.5px; font-weight: 700; padding: 7px 12px; border-radius: 12px; }
.courier-app-btn:hover, .courier-app-btn:focus-visible { background: #e4f2e9; color: #24663f; border-color: #b7dbc4; }
/* <courier-app-share> soft yellow (merchant's choice) */
.courier-app-btn { background: #fdf6dd; border: 1px solid #ecd98f; color: #7a5b00; }
.courier-app-btn:hover, .courier-app-btn:focus-visible { background: #faedbf; color: #6a4f00; border-color: #e2c96a; }
/* <courier-app-share> looks like a real button: a raised edge, a soft shadow, and it presses down when tapped */
.courier-app-btn { background: linear-gradient(#fef8e3, #fbefc6); border: 1px solid #e0c766; border-bottom: 3px solid #d2b44a; box-shadow: 0 2px 5px rgba(122,91,0,.15); padding: 9px 12px 8px; font-weight: 800; color: #6e5200; transition: transform .06s, box-shadow .06s; }
.courier-app-btn:hover, .courier-app-btn:focus-visible { background: linear-gradient(#fdf3d2, #f8e6a8); border-color: #d6ba50; border-bottom-color: #c7a83c; color: #5e4600; }
.courier-app-btn:active { transform: translateY(2px); border-bottom-width: 1px; box-shadow: 0 1px 2px rgba(122,91,0,.15); }

/* <pass-eye> an eye inside the password box shows or hides what was typed; the lock stays as the box's sign */
#authgate .pass-wrap { position: relative; display: block; width: 100%; }
#authgate .pass-wrap #authPass { padding-left: 52px !important; }
#authgate[dir="ltr"] .pass-wrap #authPass { padding-right: 52px !important; }
#authgate .pass-eye { position: absolute; top: 50%; left: 8px; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent center / 22px no-repeat; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%235a6b78%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%2012s3.6-7%2010-7%2010%207%2010%207-3.6%207-10%207S2%2012%202%2012z%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22/%3E%3C/svg%3E"); }
#authgate[dir="ltr"] .pass-eye { left: auto; right: 8px; }
#authgate .pass-eye:hover, #authgate .pass-eye:focus-visible { background-color: #eef3f6; outline: none; }
#authgate .pass-eye[aria-pressed="true"] { background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%230f6b63%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%2012s3.6-7%2010-7%2010%207%2010%207-3.6%207-10%207S2%2012%202%2012z%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22/%3E%3Cpath%20d%3D%22M4%204l16%2016%22/%3E%3C/svg%3E"); }
#authgate #authPass { unicode-bidi: plaintext; } /* <pass-eye> a shown password keeps its own order (no "!" jumping to the wrong end on the Arabic page) */

/* <log-period> Today / Yesterday / 7 days / All, above the three counters */
.tl-per { display: flex; gap: 6px; margin: 0 0 8px; }
.tl-per .tl-pr { flex: 1; border: 1.5px solid #d6e3e1; background: #fff; color: #33505f; border-radius: 999px; padding: 6px 4px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.tl-per .tl-pr.on { background: #0f6b63; border-color: #0f6b63; color: #fff; }

/* <couriers> the merchant's delivery people */
.cr-add { display: flex; flex-direction: column; gap: 7px; border: 2px dashed #b9cfcb; border-radius: 14px; padding: 10px; }
.cr-add input { width: 100%; box-sizing: border-box; }
.cr-add #crPhone { direction: ltr; text-align: start; }
.cr-addb { border: 0; border-radius: 12px; padding: 10px; background: #0f6b63; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.cr-it { border: 1.5px solid #dfe9e7; border-radius: 14px; padding: 9px 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 6px; }
.cr-it.cr-off { opacity: .6; }
.cr-hd { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cr-nm { font-size: 16px; color: #12324d; }
.cr-no { font-size: 12.5px; font-weight: 800; color: #0f6b63; background: #e6f2f0; border-radius: 999px; padding: 1px 8px; direction: ltr; }
.cr-st { font-size: 12px; font-weight: 700; color: #a32020; }
.cr-ph { font-size: 13px; color: #5d7380; text-align: start; }
.cr-bt { display: flex; gap: 6px; flex-wrap: wrap; }
.cr-b { border: 1.5px solid #cfdcda; background: #fff; color: #12324d; border-radius: 10px; padding: 6px 10px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.cr-b.cr-wa { background: #25d366; border-color: #25d366; color: #fff; }
.cr-b.cr-stop { color: #a32020; border-color: #e3b0b0; }
.cr-b.cr-on { color: #17703f; border-color: #9fd3b4; }
.cr-b.cr-save { background: #0f6b63; border-color: #0f6b63; color: #fff; }
.cr-b.cr-new { color: #7a5200; border-color: #f0c75e; }
.cr-in { width: 100%; box-sizing: border-box; }
.tl-crsel { width: 100%; border: 1.5px solid #d6e3e1; border-radius: 12px; padding: 7px 10px; font: inherit; font-weight: 700; color: #12324d; background: #fff; margin: 0 0 6px; }
.tl-it .tl-who { color: #12324d; }
/* <log-compact> more room for the orders: thinner period buttons, one-line counters, smaller notes */
.tl-card { gap: 6px; }
.tl-card h2#tlTitle { margin: 0 0 2px; font-size: 19px; }
.tl-per { margin: 0; }
.tl-per .tl-pr { padding: 4px 4px; font-size: 12px; }
.tl-crsel { padding: 5px 10px; margin: 0; font-size: 13px; }
.tl-sum .tl-stat { padding: 5px 4px; display: flex; align-items: center; justify-content: center; gap: 5px; line-height: 1.25; }
.tl-sum .tl-stat b { display: inline; font-size: 17px; }
.tl-search { padding: 7px 14px; }
.tl-foot { font-size: 11px; line-height: 1.5; }
@media (min-width: 900px) and (min-height: 700px) {
  #trackModal .tl-card { max-width: 470px; max-height: 92vh; }
}

/* <returns> purple = back at the merchant */
.tl-p { background: #efe9fb; color: #5b3fa0; }
.tl-sum .tl-stat.tl-p { color: #5b3fa0; }
.tl-sum { gap: 6px; }
.tl-sum .tl-stat { font-size: 11.5px; }
.tl-it .tl-retb { grid-column: 1; justify-self: start; margin-top: 4px; border: 1.5px solid #c9b8f0; background: #fff; color: #5b3fa0; border-radius: 10px; padding: 3px 10px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }

/* <fee> the courier's fee for this parcel */
.fee-row { display: flex; gap: 8px; }
.fee-row #courierFee { flex: 1; min-width: 0; font-weight: 800; text-align: left; direction: ltr; }
.fee-hint { display: block; font-size: 11.5px; color: #6a8590; margin: 4px 0 8px; line-height: 1.5; }
.tl-due { background: #12324d; color: #fff; border-radius: 12px; padding: 7px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tl-due-l { font-weight: 800; font-size: 13px; } .tl-due-l small { display: block; opacity: .8; font-size: 11px; font-weight: 600; }
.tl-due-v { font-size: 19px; color: #ffd54a; white-space: nowrap; }
.tl-it .tl-fee { color: #7a5200; }
.fee-row .fee-cur-box { position: relative; flex: none; width: 110px; }
.fee-row .fee-cur-sel { width: 100%; height: 100%; box-sizing: border-box; border: 1.5px solid #cfdcda; border-radius: 12px; padding: 0 8px; font: inherit; font-weight: 800; color: transparent; background: #fff; cursor: pointer; }
.fee-row .fee-cur-sel option, .fee-row .fee-cur-sel optgroup { color: #12324d; }
.fee-row .fee-cur-show { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; color: #12324d; pointer-events: none; }
.fee-row .fee-cur-show::after { content: "\25BE"; font-size: 12px; color: #6a8590; }

/* <top-rows> subscription line + "Manage subscription" on one row; delivery log + delivery people on the next */
.trial-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 16px auto 0; padding: 0 16px; }
.trial-row #trial:not(:empty) { margin: 0 !important; max-width: 100%; }
.trial-row .manage-sub { margin: 0; }
.sub-row .track-log-btn.cr-open[hidden] { display: none !important; }
/* <couriers-icon> a drawn "people" icon in the button's own yellow (the emoji is grey/black on Windows) */
.sub-row .track-log-btn.cr-open::before { content: ""; width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: no-repeat center/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='8' r='3.5'/><path d='M2.5 20c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/><circle cx='17' cy='9' r='2.8'/><path d='M16.5 14.2c3 .2 5 2.3 5 5.3'/></svg>"); mask: no-repeat center/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='8' r='3.5'/><path d='M2.5 20c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/><circle cx='17' cy='9' r='2.8'/><path d='M16.5 14.2c3 .2 5 2.3 5 5.3'/></svg>"); }

/* <settle> pay a delivery person */
.tl-due { flex-wrap: wrap; }
.tl-due-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tl-settle { border: 0; border-radius: 999px; background: #ffd54a; color: #12324d; font: inherit; font-size: 12px; font-weight: 800; padding: 4px 12px; cursor: pointer; }
.tl-settle.sure { background: #2fbf71; color: #fff; }
.tl-due-hint { font-size: 10.5px; opacity: .8; }
.tl-settled { flex-basis: 100%; font-size: 12px; font-weight: 700; color: #9ff0c4; }
.tl-undo { border: 0; background: transparent; color: #ffd54a; text-decoration: underline; font: inherit; font-weight: 800; cursor: pointer; padding: 0 4px; }
/* <log-short> short screens (big browser zoom): the whole window scrolls, so many orders fit instead of a tiny inner list */
@media (max-height: 760px) {
  #trackModal .tl-card { overflow-y: auto; max-height: 96vh; }
  #trackModal .tl-list { overflow: visible; flex: none; }
  #trackModal .tl-card h2#tlTitle { font-size: 17px; }
  #trackModal .tl-sum .tl-stat b { font-size: 15px; }
  #trackModal .tl-foot { display: none; }
}

/* <log-range> 📅 a chosen from / to */
.tl-per .tl-pr.tl-cal { flex: 0 0 44px; font-size: 15px; padding: 2px 0; }
.tl-range { display: flex; gap: 8px; }
.tl-range[hidden] { display: none; }
.tl-range { align-items: stretch; }
.tl-range .tl-rg { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 1.5px solid #d6e3e1; border-radius: 12px; padding: 6px 12px; background: #f6faf9; cursor: pointer; }
.tl-range .tl-rg:hover { border-color: #0f6b63; background: #fff; }
.tl-range .tl-rg::after { content: ""; width: 16px; height: 16px; flex: none; margin-inline-start: auto; background: #0f6b63; -webkit-mask: no-repeat center/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><rect x='3' y='5' width='18' height='16' rx='3'/><path d='M3 10h18M8 3v4M16 3v4'/></svg>"); mask: no-repeat center/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><rect x='3' y='5' width='18' height='16' rx='3'/><path d='M3 10h18M8 3v4M16 3v4'/></svg>"); }
.tl-range .tl-rg-l { font-size: 11.5px; font-weight: 700; color: #6a8590; }
.tl-range .tl-rg-v { font-size: 13.5px; color: #12324d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-range .tl-rg.empty .tl-rg-v { color: #9aaeb6; font-weight: 600; }
.tl-range .tl-rg-in { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; cursor: pointer; }
.tl-range .tl-rg-x { flex: none; width: 34px; border: 1.5px solid #d6e3e1; border-radius: 12px; background: #fff; color: #6a8590; font-weight: 800; cursor: pointer; }
.tl-due[hidden] { display: none !important; }
@media (max-width: 560px) { .tl-range .tl-rg { padding: 6px 8px; gap: 5px; } .tl-range .tl-rg-v { font-size: 13px; } }
.tl-it .tl-fee { white-space: nowrap; }
/* <couriers> a clearly visible light-blue "Close" */
#crModal #btnCrClose { display: block; margin: 10px auto 0; min-width: 150px; background: #e3f2fd; color: #1565c0; border: 1.5px solid #90caf9; border-radius: 999px; padding: 9px 22px; font-size: 15px; font-weight: 800; }
#crModal #btnCrClose:hover { background: #d0e8fc; }

/* <no-cod> empty price question */
.nocod-bg{position:fixed;inset:0;z-index:9999;background:rgba(18,50,77,.45);display:flex;align-items:center;justify-content:center;padding:16px}
.nocod{width:100%;max-width:360px;background:#fff;border-radius:18px;padding:22px 20px 18px;box-shadow:0 12px 40px rgba(0,0,0,.25);text-align:center;color:#12324d}
.nocod-ic{font-size:34px;line-height:1}
.nocod-h{font-size:19px;font-weight:800;margin:8px 0 6px}
.nocod-s{font-size:14px;color:#4a6275;margin-bottom:14px;line-height:1.7}
.nocod-s b{color:#12324d;font-size:15px}
.nocod button{display:block;width:100%;border-radius:999px;padding:12px;font:inherit;font-weight:800;font-size:15px;margin-top:9px;cursor:pointer}
.nocod-yes{background:#0f6b63;color:#fff;border:0}
.nocod-no{background:#fff;color:#0f6b63;border:1.5px solid #0f6b63}
@media print{.nocod-bg{display:none!important}}

/* <fee-later> add a forgotten courier fee from the log */
.tl-it .tl-feeb,.tl-it .tl-feex{grid-column:1;justify-self:start}
.tl-feeb{border:1.5px dashed #c99a2e;background:#fffaf0;color:#8a5a00;border-radius:999px;padding:4px 12px;font:inherit;font-size:13px;font-weight:800;cursor:pointer;margin-top:6px}
.tl-feex{display:inline-flex;align-items:center;gap:6px;margin-top:6px;background:#fffaf0;border:1.5px solid #e6c77a;border-radius:999px;padding:3px 4px 3px 10px}
.tl-feex input{width:70px;border:0;background:transparent;font:inherit;font-weight:800;font-size:15px;outline:none;text-align:center}
.tl-feecur{font-weight:800;color:#8a5a00;font-size:13px}
.tl-feesv{border:0;background:#0f6b63;color:#fff;border-radius:999px;padding:5px 14px;font:inherit;font-size:13px;font-weight:800;cursor:pointer}

/* <part-pay> how much did you pay? */
.tl-pay{flex-basis:100%;display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:6px;background:#fff;border-radius:999px;padding:4px 4px 4px 12px;color:#12324d;font-weight:800;font-size:13px}
.tl-pay input{width:76px;border:0;font:inherit;font-size:16px;font-weight:800;text-align:center;outline:none;background:#fff8e1;border-radius:8px;padding:5px 4px}
.tl-pay-cur{font-weight:800;color:#12324d}
.tl-pay-ok{border:0;background:#0f6b63;color:#fff;border-radius:999px;padding:7px 14px;font:inherit;font-weight:800;cursor:pointer;margin-inline-start:auto}
.tl-pay-no{border:0;background:none;color:#8094a3;font:inherit;font-size:12px;cursor:pointer;padding:6px}

/* <courier-week> the courier's last 7 days, as on his phone */
.tl-wkb{flex-basis:100%;margin-top:8px;border:1.5px solid rgba(255,255,255,.45);background:transparent;color:#fff;border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.tl-wkb.on{background:#fff;color:#12324d}
.tl-wkx{flex-basis:100%;background:#fff;color:#12324d;border-radius:12px;padding:6px 8px;margin-top:8px}
.tl-wk{width:100%;border-collapse:collapse;font-size:13px}
.tl-wk th,.tl-wk td{padding:5px 3px;text-align:center;border-top:1px solid #eef3f2}
.tl-wk th{border-top:0;color:#6b7f8c}
.tl-wk td:first-child{text-align:start;font-weight:700}
.tl-wk .tl-wkd{color:#6b7f8c;font-weight:600;font-size:11px}
.tl-wk .g{color:#0d7a45;font-weight:800}.tl-wk .r{color:#b42318;font-weight:800}.tl-wk .y{color:#8a5a00;font-weight:800;white-space:pre;line-height:1.35}
.tl-wk tr.now td{background:#f2fbf6}
.tl-wk tr.tot td{border-top:2px solid #12324d;font-weight:800;background:#f6f8fa}
.tl-wkx small{display:block;color:#6b7f8c;font-size:11px;margin-top:6px}

/* <log-cal> the site's own calendar (the browser's one speaks the browser's language) */
.tl-range { position: relative; }
.tl-range button.tl-rg { font: inherit; text-align: start; }
.tl-range .tl-rg.open { border-color: #0f6b63; background: #fff; box-shadow: 0 0 0 3px rgba(15,107,99,.12); }
.tl-cal { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 30; width: min(320px, 100%); background: #fff; border: 1.5px solid #d6e3e1; border-radius: 16px; box-shadow: 0 14px 34px rgba(18,50,77,.22); padding: 10px; }
.tl-cal-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.tl-cal-t { color: #12324d; font-size: 15px; }
.tl-cal-n { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid #d6e3e1; background: #f6faf9; color: #0f6b63; font-size: 22px; line-height: 1; font-weight: 800; cursor: pointer; }
.tl-cal-n:disabled { opacity: .3; cursor: default; }
.tl-cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.tl-cal-w { text-align: center; font-size: 11.5px; font-weight: 800; color: #6a8590; padding: 4px 0; }
.tl-cal-d { height: 36px; border: 0; border-radius: 10px; background: transparent; color: #12324d; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.tl-cal-d:hover:not(:disabled) { background: #e8f3f1; }
.tl-cal-d:disabled { color: #c3d0d4; cursor: default; }
.tl-cal-d.now { box-shadow: inset 0 0 0 1.5px #0f6b63; }
.tl-cal-d.in { background: #e8f3f1; border-radius: 4px; }
.tl-cal-d.other { background: #cfe7e3; }
.tl-cal-d.sel { background: #0f6b63; color: #fff; }
.tl-cal-f { display: flex; justify-content: space-between; margin-top: 8px; border-top: 1px solid #eef3f2; padding-top: 8px; }
.tl-cal-a { border: 0; background: none; color: #0f6b63; font: inherit; font-weight: 800; font-size: 13.5px; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.tl-cal-a:hover { background: #e8f3f1; }

/* <ret-fee> the return fee uses the fee's currency: shown, not chosen */
.fee-row .fee-cur-box.fee-cur-fixed { border: 1.5px solid #cfdcda; border-radius: 12px; background: #f6faf9; }
.fee-row .fee-cur-box.fee-cur-fixed .fee-cur-show::after { content: none; }
.fee-row #courierRetFee { flex: 1; min-width: 0; font-weight: 800; text-align: left; direction: ltr; }

/* <code-title> the tracking number as the title of each order */
.tl-it .tl-codet { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-it .tl-code { display: inline-flex; align-items: center; gap: 6px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 15px; font-weight: 800; letter-spacing: .06em; color: #12324d; background: #eef6f5; border: 1px solid #d3e6e3; border-radius: 9px; padding: 3px 9px; direction: ltr; unicode-bidi: isolate; }
.tl-it .tl-code::before { content: "\1F4E6"; font-family: system-ui, sans-serif; letter-spacing: 0; font-size: 13px; }
.tl-it .tl-cname { font-weight: 700; font-size: 13.5px; color: #4a6275; }

/* <code-title> the customer's name on the same line as the tracking number (cut with "…" when too long) */
.tl-it .tl-codet { flex-wrap: nowrap; min-width: 0; }
.tl-it .tl-code { flex: none; }
.tl-it .tl-cname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-it .tl-code { font-size: 14px; letter-spacing: .02em; padding: 3px 7px; gap: 4px; }
.tl-it .tl-cname { font-size: 14px; color: #12324d; }

/* <meta-order> the bin stays quiet (grey) until it is pointed at or touched, so it is not pressed by mistake */
.tl-it .tl-del:not(.tl-back) { color: #8a9ba5; background: #f3f6f7; border-color: #e1e8ea; }
.tl-it .tl-del:not(.tl-back):hover, .tl-it .tl-del:not(.tl-back):focus-visible, .tl-it .tl-del:not(.tl-back):active { background: #c62828; color: #fff; border-color: #c62828; }
.tl-it .tl-when { white-space: nowrap; }
.tl-it .tl-who, .tl-it .tl-fee { white-space: nowrap; }

.tl-wkx small { white-space: pre-line; line-height: 1.6; } /* <wk-cur> two short lines under the 7-day table */

/* <courier-weeks> week navigation and the month line */
.tl-wknav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 6px; }
.tl-wkrg { font-size: 14px; color: #12324d; }
.tl-wkgo { width: 32px; height: 32px; border-radius: 10px; border: 1.5px solid #d6e3e1; background: #f6faf9; color: #0f6b63; font-size: 20px; font-weight: 800; line-height: 1; cursor: pointer; }
.tl-wkgo:disabled { opacity: .3; cursor: default; }
.tl-wk tr.fut td { color: #b7c4c9; }
.tl-wk tr.tot.mon td { border-top: 1px solid #12324d; background: #eef6f5; }

.tl-wk th { font-size: 12px; line-height: 1.3; font-weight: 800; } .tl-wk th.g { color: #0d7a45; } .tl-wk th.r { color: #b42318; } .tl-wk th.y { color: #8a5a00; } /* <wk-head> */
/* <month-pay> pay one past month only, checked week by week */
.tl-monb{display:block;width:100%;margin-top:10px;border:0;border-radius:12px;padding:10px 12px;background:#ffd54a;color:#14324d;font:inherit;font-weight:800;font-size:14px;cursor:pointer}
.tl-monb:hover{filter:brightness(1.04)}
.tl-mon{margin-top:10px;background:#fff;color:#12324d;border-radius:14px;padding:12px}
.tl-mon-t{font-weight:800;font-size:15px;margin-bottom:6px}
.tl-mon-from{font-size:12px;color:#6a8590;margin-bottom:6px}
.tl-monwk tr.pd td{color:#6a8590;font-weight:700}
.tl-monwk tr.left td{background:#fff7d6;font-size:14px;font-weight:800}
.tl-mon-lb{display:block;width:100%;margin-top:10px;border:1.5px dashed #9fc3be;background:#fff;color:#0f6b63;border-radius:10px;padding:8px;font:inherit;font-weight:800;cursor:pointer}
.tl-mon-ls{margin-top:6px;font-size:12.5px;max-height:240px;overflow:auto}
.tl-mon-ls div{display:flex;justify-content:space-between;gap:8px;padding:5px 4px;border-top:1px solid #eef3f2}
.tl-mon-ls code{font-weight:800;color:#12324d}.tl-mon-ls span{color:#6a8590}.tl-mon-ls b{color:#8a5a00;white-space:nowrap}
.tl-mon-nt{font-size:12px;color:#6a8590;margin-top:8px}
.tl-mon-act{display:flex;gap:8px;margin-top:12px}
.tl-mon-ok{flex:2;background:#0f6b63;color:#fff;border:0;border-radius:12px;padding:11px;font:inherit;font-weight:800;font-size:14px;cursor:pointer}
.tl-mon-ok:disabled{opacity:.6}
.tl-mon-no{flex:1;background:#fff;border:1.5px solid #d6e3e1;border-radius:12px;font:inherit;font-weight:800;color:#6a8590;cursor:pointer}
.tl-monb,.tl-mon{flex-basis:100%;box-sizing:border-box}
.tl-settle.wide{flex-basis:100%;display:block;width:100%;margin-top:8px;border-radius:12px;padding:10px 12px;font-size:14px;background:#fff;color:#14324d}
/* <month-view> week / month tabs side by side */
.tl-wktabs{flex-basis:100%;display:flex;gap:8px}
.tl-wktabs .tl-wkb{flex:1 1 0;min-width:0}
