/* TimeArrive User Guide (en + ar). Screen and A4 print styles. No inline styles or scripts (CSP). */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/tajawal-arabic-400-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/tajawal-arabic-500-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/tajawal-arabic-700-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/tajawal-arabic-800-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/tajawal-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/tajawal-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/tajawal-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/tajawal-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --primary: #2563EB; --primary-soft: #EFF6FF; --accent: #7C3AED; --ink: #0F172A; --muted: #475569; --faint: #64748B;
  --ground: #F8FAFC; --surface: #FFFFFF; --line: #E2E8F0;
  --success: #047857; --success-soft: #ECFDF5; --warning: #92400E; --warning-soft: #FFFBEB; --danger: #B91C1C; --danger-soft: #FEF2F2;
  --gradient: linear-gradient(120deg, #2563EB 0%, #7C3AED 100%);
  --font: 'Inter', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --radius: 14px;
  color-scheme: light;
}
html[lang="ar"] { --font: 'Tajawal', 'Inter', system-ui, 'Segoe UI', Tahoma, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 16.5px; line-height: 1.65; }
html[lang="ar"] body { font-size: 17.5px; line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
code, .mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .88em; background: #F1F5F9; border: 1px solid var(--line); border-radius: 6px; padding: 0 .35em; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
kbd, .ui { font-family: var(--font); font-weight: 600; font-size: .95em; background: var(--primary-soft); color: #1E3A8A; border-radius: 6px; padding: .05em .4em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { height: 30px; width: auto; }
.brand span { font-weight: 600; color: var(--muted); font-size: 15px; white-space: nowrap; border-inline-start: 1px solid var(--line); padding-inline-start: 12px; }
.topbar .sp { flex: 1; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 14px/1 var(--font); padding: 10px 14px; border-radius: 10px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #CBD5E1; }
.btn.pri { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.pri:hover { background: #1D4ED8; }
.btn svg { width: 16px; height: 16px; }

/* ---------- layout ---------- */
.layout { max-width: 1240px; margin: 0 auto; padding: 24px 16px 64px; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; align-items: start; }
.toc { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 8px 10px; font-size: 14.5px; }
.toc summary { list-style: none; cursor: pointer; font-weight: 700; padding: 10px 8px; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: '▾'; color: var(--faint); }
.toc[open] summary::after { content: '▴'; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc li a b { color: var(--faint); font-weight: 600; min-width: 1.4em; }
.toc li a:hover { background: var(--ground); color: var(--ink); }
.toc li a.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.toc li a.on b { color: var(--primary); }
article { min-width: 0; max-width: 860px; }

/* ---------- cover and contents ---------- */
.cover { background: var(--ink); color: #fff; border-radius: 22px; padding: 56px 48px; position: relative; overflow: hidden; margin-bottom: 28px; }
.cover::before { content: ''; position: absolute; inset: auto -20% -60% 30%; height: 120%; background: radial-gradient(closest-side, rgba(124,58,237,.55), transparent); }
.cover::after { content: ''; position: absolute; inset: -50% 40% auto -20%; height: 110%; background: radial-gradient(closest-side, rgba(37,99,235,.55), transparent); }
.cover > * { position: relative; z-index: 1; }
.cover .logo { height: 54px; width: auto; filter: brightness(0) invert(1); }
.cover h1 { font-size: 46px; line-height: 1.1; margin: 44px 0 12px; letter-spacing: -.02em; }
html[lang="ar"] .cover h1 { letter-spacing: 0; line-height: 1.35; }
.cover .lead { font-size: 19px; color: #CBD5E1; max-width: 560px; margin: 0; }
.cover .meta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.cover .meta span { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: #E2E8F0; }
.cover .dests { margin-top: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 640px; }
.cover .dests div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 12px; font-size: 14px; font-weight: 600; text-align: center; }
.contents { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 28px; }
.contents h2 { margin: 0 0 12px; font-size: 22px; }
.contents ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.contents li { break-inside: avoid; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.contents li a { color: var(--ink); text-decoration: none; display: flex; gap: 10px; }
.contents li a b { color: var(--primary); min-width: 1.6em; }
.contents li small { display: block; color: var(--faint); padding-inline-start: 2.2em; font-size: 13px; line-height: 1.4; }

/* ---------- chapters ---------- */
.chapter { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 36px 40px; margin-bottom: 28px; }
.chapter > header { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.chapter .num { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
html[lang="ar"] .chapter .num { letter-spacing: 0; font-size: 15px; }
.chapter h2 { font-size: 31px; line-height: 1.2; margin: 4px 0 6px; letter-spacing: -.01em; }
html[lang="ar"] .chapter h2 { letter-spacing: 0; line-height: 1.4; }
.chapter .intro { color: var(--muted); margin: 0; font-size: 1.05em; }
h3 { font-size: 21px; margin: 32px 0 8px; line-height: 1.3; }
h4 { font-size: 17px; margin: 22px 0 6px; }
p { margin: 0 0 12px; }
ul.plain { padding-inline-start: 1.2em; margin: 0 0 14px; }
ul.plain li { margin: 4px 0; }

/* numbered steps */
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 10px 0 18px; }
ol.steps > li { counter-increment: s; position: relative; padding-inline-start: 46px; margin: 0 0 12px; min-height: 32px; }
ol.steps > li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font: 700 15px/30px 'Inter', sans-serif; text-align: center; }
ol.steps > li > ul { margin: 6px 0 0; padding-inline-start: 1.1em; }

/* callouts */
.tip, .warn, .note { border-radius: 12px; padding: 12px 16px 12px 16px; margin: 14px 0 18px; border: 1px solid; display: flex; gap: 12px; }
.tip::before, .warn::before, .note::before { flex: 0 0 auto; font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 999px; height: fit-content; margin-top: 2px; }
.tip { background: var(--success-soft); border-color: #A7F3D0; }
.tip::before { content: var(--tip, 'Tip'); background: #D1FAE5; color: var(--success); }
.warn { background: var(--warning-soft); border-color: #FDE68A; }
.warn::before { content: var(--warn, 'Important'); background: #FEF3C7; color: var(--warning); }
.note { background: var(--primary-soft); border-color: #BFDBFE; }
.note::before { content: var(--note, 'Note'); background: #DBEAFE; color: #1E40AF; }
html[lang="ar"] { --tip: 'نصيحة'; --warn: 'مهم'; --note: 'ملاحظة'; }
.tip > div, .warn > div, .note > div { min-width: 0; }
.tip p:last-child, .warn p:last-child, .note p:last-child { margin: 0; }

/* tables */
.tw { overflow-x: auto; margin: 10px 0 18px; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
html[lang="ar"] table { font-size: 16px; }
th, td { text-align: start; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #F1F5F9; font-weight: 700; font-size: .92em; color: #334155; }
tr:last-child td { border-bottom: 0; }
td.nw, th.nw { white-space: nowrap; }

/* badges for kinds / states */
.b { display: inline-block; font-weight: 700; font-size: .85em; border-radius: 999px; padding: .1em .65em; white-space: nowrap; }
.b.ok { background: #D1FAE5; color: #047857; } .b.late { background: #FEF3C7; color: #92400E; } .b.out { background: #DBEAFE; color: #1D4ED8; }
.b.mut { background: #E2E8F0; color: #334155; } .b.bad { background: #FEE2E2; color: #B91C1C; }

/* message bubbles */
.msgs { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 12px 0 18px; }
.msg { background: #E7FFDB; border: 1px solid #C6EBB4; border-radius: 4px 14px 14px 14px; padding: 12px 14px; max-width: 620px; }
html[dir="rtl"] .msg { border-radius: 14px 4px 14px 14px; }
.msg .mh { font-size: 12.5px; font-weight: 700; color: #166534; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; display: flex; justify-content: space-between; gap: 10px; }
html[lang="ar"] .msg .mh { text-transform: none; letter-spacing: 0; font-size: 14px; }
.msg .mt { margin: 0; }
.msg .alt { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed #B6D9A4; color: #334155; }
.msg .mf { font-size: 12.5px; color: #64748B; margin-top: 6px; }
.msg .mb { margin-top: 8px; border-top: 1px solid #C6EBB4; padding-top: 6px; text-align: center; font-weight: 600; color: #0369A1; font-size: 14px; }

/* flow diagram */
.flow { display: grid; grid-template-columns: 1fr auto 2fr; gap: 14px; align-items: center; margin: 16px 0 22px; }
.flow .src { background: var(--ink); color: #fff; border-radius: 14px; padding: 18px; text-align: center; font-weight: 700; }
.flow .src small { display: block; font-weight: 400; color: #CBD5E1; margin-top: 4px; }
.flow .arr { font-size: 26px; color: var(--accent); }
html[dir="rtl"] .flow .arr { transform: scaleX(-1); }
.flow .dst { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.flow .dst div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--ground); font-size: 14.5px; line-height: 1.4; }
.flow .dst b { display: block; color: var(--primary); }

/* ---------- figures ---------- */
figure.shot { margin: 18px 0 24px; break-inside: avoid; page-break-inside: avoid; }
figure.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
html[lang="ar"] figure.shot figcaption { font-size: 15px; }
figure.shot figcaption b { color: var(--ink); margin-inline-end: 4px; }
figure.dev .frame { background: #0B1220; border-radius: 18px; padding: 14px; box-shadow: 0 10px 30px rgba(15,23,42,.18), inset 0 0 0 2px #1E293B; max-width: 720px; }
figure.dev .scr { position: relative; border-radius: 6px; overflow: hidden; }
figure.web .frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 28px rgba(15,23,42,.08); background: #fff; }
figure.web .frame::before { content: ''; display: block; height: 26px; background: #F1F5F9 radial-gradient(circle at 16px 13px, #F87171 4px, transparent 5px), radial-gradient(circle at 32px 13px, #FBBF24 4px, transparent 5px), radial-gradient(circle at 48px 13px, #34D399 4px, transparent 5px); background-color: #F1F5F9; border-bottom: 1px solid var(--line); }
figure.web.cap .frame img { max-height: 760px; width: 100%; object-fit: cover; object-position: top; }
figure.phone .frame { background: #0B1220; border-radius: 30px; padding: 9px; max-width: 280px; box-shadow: 0 10px 30px rgba(15,23,42,.18); }
figure.phone .frame img { border-radius: 22px; }
.row { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0 24px; align-items: start; }
.row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row figure.shot { margin: 0; }
.row figure.phone .frame { max-width: none; }

/* callout numbers on device screenshots */
.co { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: #F59E0B; color: #111827; font: 800 15px/28px 'Inter', sans-serif; text-align: center; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 2px 6px rgba(0,0,0,.4); }
.co.s1 { left: 15%; top: 15%; } .co.s2 { left: 66%; top: 15%; } .co.s3 { left: 86%; top: 15%; } .co.s4 { left: 22%; top: 82%; } .co.s5 { left: 73%; top: 82%; }
.co.c1 { left: 14%; top: 23%; } .co.c2 { left: 33%; top: 27%; } .co.c3 { left: 33%; top: 52%; } .co.c4 { left: 13%; top: 71%; }
html[lang="ar"] .co.s1 { left: 86%; } html[lang="ar"] .co.s2 { left: 30%; } html[lang="ar"] .co.s3 { left: 12%; }
html[lang="ar"] .co.c1 { left: 86%; } html[lang="ar"] .co.c2 { left: 67%; } html[lang="ar"] .co.c3 { left: 67%; } html[lang="ar"] .co.c4 { left: 87%; }
ol.keys { list-style: none; padding: 0; margin: 8px 0 18px; counter-reset: k; }
ol.keys li { counter-increment: k; position: relative; padding-inline-start: 38px; margin-bottom: 8px; }
ol.keys li::before { content: counter(k); position: absolute; inset-inline-start: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: #F59E0B; color: #111827; font: 800 14px/26px 'Inter', sans-serif; text-align: center; }

.backtop { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--faint); text-decoration: none; }
.foot { text-align: center; color: var(--faint); font-size: 14px; padding: 8px 0 40px; }
.print-only { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
  .toc { position: static; max-height: none; }
  .brand span { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar-in { gap: 8px; }
  .btn { padding: 9px 10px; font-size: 13px; }
  .btn .lbl { display: none; }
  .cover { padding: 36px 22px; border-radius: 16px; }
  .cover h1 { font-size: 34px; margin-top: 30px; }
  .cover .dests { grid-template-columns: 1fr 1fr; }
  .contents { padding: 18px; }
  .contents ol { columns: 1; }
  .chapter { padding: 22px 16px; border-radius: 14px; }
  .chapter h2 { font-size: 25px; }
  .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  figure.dev .frame { padding: 8px; border-radius: 12px; }
  .co { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 12px; line-height: 22px; }
  .flow { grid-template-columns: 1fr; }
  .flow .arr { transform: rotate(90deg); justify-self: center; }
  html[dir="rtl"] .flow .arr { transform: rotate(90deg); }
}

/* ---------- print (A4) ---------- */
@page { size: A4; margin: 16mm 16mm 18mm 16mm;
  @bottom-center { content: counter(page); font: 600 9pt 'Inter', 'Tajawal', sans-serif; color: #64748B; }
}
@page :first { @bottom-center { content: none; } }
@page cover { margin: 0; @bottom-center { content: none; } }
@media print {
  html { scroll-behavior: auto; }
  body { background: #fff; font-size: 11pt; line-height: 1.5; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html[lang="ar"] body { font-size: 11.5pt; line-height: 1.58; }
  .topbar, .toc, .backtop, .foot, .no-print { display: none !important; }
  .print-only { display: block; }
  .layout { display: block; padding: 0; max-width: none; }
  article { max-width: none; }
  a { color: inherit; text-decoration: none; }
  .cover { page: cover; border-radius: 0; margin: 0; width: 210mm; height: 296.5mm; padding: 30mm 22mm; display: flex; flex-direction: column; break-after: page; overflow: hidden; }
  .cover h1 { font-size: 36pt; margin-top: 70mm; }
  .cover .lead { font-size: 15pt; }
  .cover .grow { flex: 1; }
  .contents { border: 0; padding: 0; margin: 0; break-after: page; }
  .contents h2 { font-size: 22pt; margin-bottom: 8mm; }
  .contents ol { columns: 1; }
  .contents li { padding: 1.7mm 0; font-size: 12pt; }
  .contents li small { font-size: 9.5pt; }
  .chapter { border: 0; border-radius: 0; padding: 0; margin: 0; break-before: page; }
  .chapter > header { padding-bottom: 4mm; margin-bottom: 5mm; border-bottom: 2px solid var(--primary); }
  .chapter h2 { font-size: 22pt; }
  h3 { font-size: 14pt; margin-top: 7mm; break-after: avoid; }
  h4 { font-size: 12pt; break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  table { font-size: 9.5pt; }
  html[lang="ar"] table { font-size: 10.5pt; }
  .tw { overflow: visible; }
  tr, .tip, .warn, .note, .msg, ol.steps > li { break-inside: avoid; }
  figure.shot { break-inside: avoid; margin: 4mm 0 6mm; }
  figure.shot figcaption { font-size: 9pt; }
  html[lang="ar"] figure.shot figcaption { font-size: 10pt; }
  figure.dev .frame { max-width: 118mm; padding: 2.6mm; border-radius: 4mm; box-shadow: none; }
  figure.web .frame { box-shadow: none; max-width: 160mm; }
  figure.web .frame img { max-height: 118mm; width: 100%; object-fit: cover; object-position: top; }
  figure.web.tall .frame { max-width: 120mm; }
  figure.web.tall .frame img { max-height: 150mm; }
  figure.phone .frame { box-shadow: none; padding: 1.8mm; border-radius: 6mm; max-width: 52mm; }
  figure.phone .frame img { border-radius: 4.5mm; }
  .row { gap: 5mm; margin: 4mm 0 6mm; }
  .row figure.phone .frame { max-width: 52mm; }
  .row.two figure.dev .frame { max-width: none; }
  .msgs { gap: 3mm; }
  .co { box-shadow: 0 0 0 2px #fff; }
}
.mut { color: var(--faint); }
[lang="ar"] { font-family: 'Tajawal', 'Inter', system-ui, 'Segoe UI', Tahoma, sans-serif; }
[lang="en"] { font-family: 'Inter', system-ui, 'Segoe UI', Tahoma, sans-serif; }

html[lang="ar"] i, html[lang="ar"] em { font-style: normal; font-weight: 500; color: #1E293B; }
