/* Silk Loop: the desk's daily stock broadcast, as a landing page. LTR and RTL from one sheet (logical properties). */
:root {
  --ground: #141846;
  --ground-2: #0f1238;
  --raised: #232a72;
  --line: #2b3170;
  --mist: #eef0ff;
  --mist-2: #b9bdf0;
  --mist-3: #8f95d6;
  --paper: #f4f5fd;
  --paper-2: #e8eafb;
  --ink: #12143a;
  --ink-2: #393d6c;
  --ink-3: #5d6196;
  --rule: #d9dcf2;
  --saffron: #f4a822;
  --saffron-soft: #fff1d2;
  --saffron-ink: #2b1d00;
  --err: #b3263e;
  --glass: rgba(244, 245, 253, 0.86);
  --glass-rule: rgba(18, 20, 58, 0.12);
  --glass-seam: rgba(255, 255, 255, 0.95);
  --font: "Schibsted Grotesk", "Alexandria", system-ui, sans-serif;
  --font-data: "Changa", "Schibsted Grotesk", "Alexandria", sans-serif;
  --r: 18px;
  --rail: 288px;
  --bar: 64px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-step: cubic-bezier(0.34, 1.45, 0.64, 1);
  color-scheme: dark;
}
html[lang="ar"] { --font: "Alexandria", "Schibsted Grotesk", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 16px); scrollbar-color: var(--raised) var(--ground-2); }
body { margin: 0; background: var(--ground); color: var(--mist); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
html[lang="ar"] body { font-size: 17.5px; line-height: 1.75; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
::selection { background: var(--saffron); color: var(--saffron-ink); }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }
.num { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.pct { font-family: "Schibsted Grotesk", "Alexandria", sans-serif; font-weight: 600; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--saffron); color: var(--saffron-ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- top bar ---------- */
/* ---------- navigation chrome: light frosted glass that arrives as two panes and seals along a seam ---------- */
.bar, .rail { color: var(--ink); isolation: isolate; }
.bar::before, .bar::after, .rail::before, .rail::after { content: ""; position: absolute; z-index: -1; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); animation-duration: 820ms; animation-timing-function: var(--ease-out); animation-delay: 60ms; animation-fill-mode: both; }
.bar::before { inset: 0 50% 0 0; animation-name: pane-from-start; }
.bar::after { inset: 0 0 0 50%; animation-name: pane-from-end; box-shadow: inset 0 -1px 0 var(--glass-rule); }
.bar::before { box-shadow: inset 0 -1px 0 var(--glass-rule); }
.rail::before { inset: 0 0 50% 0; animation-name: pane-from-top; }
.rail::after { inset: 50% 0 0 0; animation-name: pane-from-bottom; }
html.is-shot .bar::before, html.is-shot .bar::after, html.is-shot .rail::before, html.is-shot .rail::after { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(213, 214, 228); animation: none; }
html.is-shot .glass-seam { display: none; }
html.is-shot .bar > *, html.is-shot .rail > * { animation: none; }
@keyframes pane-from-start { from { transform: translateX(-101%); } }
@keyframes pane-from-end { from { transform: translateX(101%); } }
@keyframes pane-from-top { from { transform: translateY(-101%); } }
@keyframes pane-from-bottom { from { transform: translateY(101%); } }
.glass-seam { position: absolute; z-index: 2; pointer-events: none; background: linear-gradient(var(--sd, 180deg), transparent, var(--glass-seam) 35%, var(--glass-seam) 65%, transparent); opacity: 0; animation: seam-glint 900ms var(--ease-out) 720ms both; }
.bar > .glass-seam { left: calc(50% - 1px); top: 0; bottom: 0; width: 2px; }
.rail > .glass-seam { top: calc(50% - 1px); left: 0; right: 0; height: 2px; --sd: 90deg; }
@keyframes seam-glint { 0% { opacity: 0; transform: scale(1, 0.2); } 30% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.rail > .glass-seam { animation-name: seam-glint-x; }
@keyframes seam-glint-x { 0% { opacity: 0; transform: scale(0.2, 1); } 30% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* the lettering settles once the panes have met */
.bar > :not(.glass-seam), .rail > :not(.glass-seam) { animation: glass-ink 420ms var(--ease-out) 440ms both; }
@keyframes glass-ink { from { opacity: 0; } }
.bar { position: sticky; top: 0; z-index: 40; height: var(--bar); display: flex; align-items: center; gap: 22px; padding-inline: 24px; overflow: hidden; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.mark__loop { width: 40px; height: 20px; color: var(--ink); }
.mark__en { font-family: "Schibsted Grotesk", sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.mark__ar { font-family: "Alexandria", sans-serif; font-weight: 600; font-size: 15px; color: var(--ink-3); padding-inline-start: 10px; border-inline-start: 1px solid var(--glass-rule); }
.clocks { display: flex; gap: 8px; margin-inline-start: 8px; }
.clock { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding-inline: 12px; border: 1px solid var(--glass-rule); border-radius: 999px; background: rgba(255, 255, 255, 0.55); font-family: var(--font-data); font-size: 15px; color: var(--ink-3); white-space: nowrap; }
.clock b { color: var(--ink); font-weight: 700; letter-spacing: 0.04em; }
.clock time { font-variant-numeric: tabular-nums; color: var(--ink); }
.clock__state { font-style: normal; display: inline-flex; align-items: center; gap: 6px; }
.clock__state::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--mist-3); }
.clock.is-open .clock__state { color: var(--ink); }
.clock.is-open .clock__state::before { background: var(--saffron); box-shadow: 0 0 0 3px color-mix(in srgb, var(--saffron) 25%, transparent); }
.bar__tools { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.cur { display: inline-flex; padding: 3px; border: 1px solid var(--glass-rule); border-radius: 999px; background: rgba(255, 255, 255, 0.55); }
.cur button { height: 28px; padding-inline: 10px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-family: var(--font-data); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; transition: background-color 160ms ease, color 160ms ease; }
.cur button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lang { height: 36px; padding-inline: 14px; border: 1px solid var(--glass-rule); border-radius: 999px; background: rgba(255, 255, 255, 0.55); color: var(--ink); font-weight: 600; font-size: 15px; }
html[lang="en"] .lang { font-family: "Alexandria", sans-serif; }
html[lang="ar"] .lang { font-family: "Schibsted Grotesk", sans-serif; }
.lang:hover { border-color: var(--ink-3); }
.cur button:hover { color: var(--ink); }
.bar .pill--mist { background: var(--ink); color: #fff; }
.bar .pill--mist:hover { background: #262a66; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding-inline: 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.pill:active { transform: scale(0.97); }
.pill--mist { background: var(--mist); color: var(--ink); }
.pill--mist:hover { background: #fff; }
.pill--ink { background: var(--ink); color: var(--paper); }
.pill--ink:hover { background: #262a66; }
.pill--lg { height: 52px; padding-inline: 26px; font-size: 17px; }

/* ---------- shell: channel rail + thread ---------- */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: calc(100vh - var(--bar)); }
.shell > * { min-width: 0; }
.rail { position: sticky; top: var(--bar); align-self: start; height: calc(100vh - var(--bar)); padding: 22px 16px; overflow-y: auto; overflow-x: hidden; }
.rail__title { font-family: var(--font-data); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding-inline: 14px; margin-bottom: 10px; }
html[lang="ar"] .rail__title { letter-spacing: 0; font-size: 14px; }
.rail__list { display: grid; gap: 2px; }
.ch { position: relative; isolation: isolate; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 14px; border-radius: 12px; text-decoration: none; color: var(--ink-2); transition: color 160ms ease; }
.ch::before, .ch::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(255, 255, 255, 0.92); box-shadow: inset 0 0 0 1px var(--glass-rule), 0 8px 18px -12px rgba(18, 20, 58, 0.45); opacity: 0; transition: transform 240ms var(--ease-out), opacity 160ms ease, background-color 160ms ease; }
.ch::before { clip-path: inset(0 calc(50% - 1px) 0 0); transform: translateX(-16px); }
.ch::after { clip-path: inset(0 0 0 calc(50% - 1px)); transform: translateX(16px); }
.ch:hover, .ch:focus-visible { color: var(--ink); }
.ch:hover::before, .ch:hover::after, .ch:focus-visible::before, .ch:focus-visible::after, .ch.is-here::before, .ch.is-here::after { opacity: 1; transform: none; }
.ch.is-here { color: #fff; }
.ch.is-here::before, .ch.is-here::after { background: var(--ink); box-shadow: 0 10px 22px -12px rgba(18, 20, 58, 0.7); }
.ch__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mist-3); }
.ch__dot.is-open { background: var(--saffron); box-shadow: 0 0 0 3px color-mix(in srgb, var(--saffron) 28%, transparent); }
.ch__name { flex: 1; min-width: 0; font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch__meta, .ch__time { font-family: var(--font-data); font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.ch.is-here .ch__meta, .ch.is-here .ch__time { color: var(--mist-2); }
.ch__time { display: none; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.ch--cta { margin-top: 12px; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.ch--cta .ch__name { font-weight: 700; }

.thread { padding: 18px clamp(16px, 3vw, 44px) 80px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; }
.thread > * { max-width: 1040px; width: 100%; }

/* ---------- chat furniture: bubbles with square tails, meta at the end ---------- */
.bub { position: relative; border-radius: var(--r); }
.bub--desk { background: var(--paper); color: var(--ink); padding: 18px 22px 10px; border-start-start-radius: 0; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 18px 40px -28px rgba(0, 0, 0, 0.6); }
.bub--desk::before, .rmsg::before { content: ""; position: absolute; top: 0; width: 11px; height: 14px; background: inherit; }
.bub--desk::before, .rmsg--desk::before { inset-inline-start: -10px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
html[dir="rtl"] .bub--desk::before, html[dir="rtl"] .rmsg--desk::before { clip-path: polygon(0 0, 100% 0, 0 100%); }
.bub--desk + .bub--desk.broadcast { border-start-start-radius: 6px; }
.bub--desk + .bub--desk.broadcast::before { display: none; }
.bub__meta { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.bub__meta time { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.meta__ico svg { width: 15px; height: 15px; }
.msg__body { color: var(--ink-2); max-width: 64ch; }
.h2 { font-weight: 800; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
html[lang="ar"] .h2 { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
.h2 + .msg__body { margin-top: 10px; }

.thread > .daychip { text-align: center; margin-bottom: -8px; }
.daychip span { display: inline-block; padding: 2px 12px; border-radius: 8px; background: var(--raised); color: var(--mist-2); font-weight: 600; font-size: 13px; line-height: 22px; }

/* the desk's first message: the headline, with its meta tucked beside the last line */
.msg--hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; }
.msg--hero h1 { grid-column: 1 / -1; font-weight: 800; font-size: clamp(36px, 3.5vw, 50px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; max-width: 24ch; }
html[lang="ar"] .msg--hero h1 { letter-spacing: 0; line-height: 1.16; font-weight: 700; font-size: clamp(30px, 2.9vw, 42px); max-width: 26ch; }
html[lang="ar"] .msg--hero .msg__body { line-height: 1.6; }
.msg--hero .msg__body { margin-top: 8px; font-size: 17px; }
.msg--hero .bub__meta { align-self: end; margin-top: 0; }
.hero { display: grid; gap: 14px; }

/* ---------- broadcast ---------- */
.broadcast { padding: 10px 0 0; }
.bc__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 18px 8px; border-bottom: 1px solid var(--rule); }
.bc__title { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.bc__date { font-family: var(--font-data); font-weight: 500; font-size: 15px; color: var(--ink-3); letter-spacing: 0; }
.bc__hubs { display: inline-flex; padding: 3px; background: var(--paper-2); border-radius: 999px; }
.bc__hubs button { height: 32px; padding-inline: 14px; border: 0; border-radius: 999px; background: none; font-weight: 700; font-size: 14.5px; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.bc__hubs button b { font-family: var(--font-data); font-weight: 700; letter-spacing: 0.04em; }
.bc__hubs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.bc__cols, .line { display: grid; grid-template-columns: 52px minmax(0, 1fr) 64px 132px 112px 60px; align-items: center; column-gap: 10px; padding-inline: 18px; }
.bc__cols { height: 28px; font-family: var(--font-data); font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
html[lang="ar"] .bc__cols { letter-spacing: 0; font-size: 13.5px; }
.bc__cols span:nth-child(n+4) { text-align: end; }
.bc__lines { border-top: 1px solid var(--rule); }
.bc__lines li { border-bottom: 1px solid var(--rule); }
.line { width: 100%; min-height: 40px; border: 0; background: none; color: var(--ink); text-align: start; padding-block: 4px; transition: background-color 140ms ease; }
.line:hover { background: var(--paper-2); }
.line__no { font-family: var(--font-data); font-weight: 700; font-size: 17px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.line__dev { min-width: 0; display: flex; gap: 8px; align-items: baseline; }
.line__dev b { font-weight: 700; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line__dev span { color: var(--ink-3); font-size: 14.5px; white-space: nowrap; }
.line__q, .line__p { justify-self: end; font-family: var(--font-data); font-weight: 600; font-size: 19px; font-variant-numeric: tabular-nums; white-space: nowrap; display: inline-flex; align-items: center; }
.line__p { font-weight: 700; }
.line__hub { justify-self: end; font-family: var(--font-data); font-weight: 700; font-size: 13px; letter-spacing: 0.05em; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 6px; padding: 1px 6px; }
.line__q small { font-family: var(--font); font-size: 11.5px; font-weight: 700; color: var(--saffron-ink); background: var(--saffron); border-radius: 999px; padding: 1px 6px; margin-inline-end: 6px; vertical-align: 2px; }
/* codes and grades keep their left-to-right order inside Arabic */
.gm, .line__dev span, .line__hub, .bc__hubs b, .clock time { direction: ltr; unicode-bidi: isolate; }
/* grade marks: told apart by drawing, not colour */
.gm { justify-self: start; display: inline-grid; place-items: center; min-width: 40px; height: 26px; padding-inline: 6px; border-radius: 7px; font-family: var(--font-data); font-weight: 700; font-size: 15px; border: 2px solid var(--ink); color: var(--ink); }
.gm[data-g="A+"] { background: var(--ink); color: var(--paper); }
.gm[data-g="B"] { border-width: 1px; }
.gm[data-g="C"] { border-width: 1.5px; border-style: dashed; }
.gm[data-g="P"] { border-width: 1px; background: repeating-linear-gradient(135deg, transparent 0 4px, var(--rule) 4px 6px); font-size: 13px; }
.line.is-picked { background: var(--saffron-soft); }
.line.is-picked .line__no { color: var(--saffron-ink); }
.line.is-picked .line__no::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); margin-inline-end: 6px; vertical-align: 2px; }
.line.is-held { background: var(--ink); color: var(--paper); }
.line.is-held .line__dev span, .line.is-held .line__no { color: var(--mist-2); }
.line.is-held .gm { border-color: var(--paper); color: var(--paper); }
.line.is-held .gm[data-g="A+"] { background: var(--paper); color: var(--ink); }
.line.is-held .line__hub { color: var(--mist-2); border-color: var(--raised); }
.bc__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 18px 10px; font-size: 14px; color: var(--ink-3); }
.link { border: 0; background: none; padding: 0; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }

/* rolling numbers: whole steps with a small overshoot */
.roll { display: inline-flex; direction: ltr; unicode-bidi: isolate; }
.rd { display: inline-block; height: 1.2em; line-height: 1.2em; overflow: hidden; vertical-align: bottom; }
.rd__s { display: flex; flex-direction: column; transition: transform 560ms var(--ease-step); }
.rd__s span { height: 1.2em; line-height: 1.2em; text-align: center; }
.rc { display: inline-block; height: 1.2em; line-height: 1.2em; }

/* ---------- composer: docked under the thread ---------- */
.composer { position: relative; z-index: 5; background: var(--raised); border-radius: var(--r); padding: 10px 12px 8px; box-shadow: 0 -10px 30px -12px rgba(8, 10, 34, 0.75), 0 18px 40px -26px rgba(0, 0, 0, 0.7); }
.composer__row { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.composer__field { display: flex; align-items: center; gap: 8px; font-family: var(--font-data); font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mist-3); }
html[lang="ar"] .composer__field { letter-spacing: 0; font-size: 13.5px; }
.composer__field--line { height: 46px; padding-inline: 12px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--ground-2); }
.composer__field--line:focus-within { border-color: var(--saffron); }
.composer__field--line input::placeholder { color: var(--mist-3); font-weight: 600; }
.composer__field--line input { flex: 1; width: 100%; min-width: 0; height: 100%; border: 0; background: none; color: var(--mist); font-family: var(--font-data); font-weight: 700; font-size: 20px; text-align: center; outline: none; font-variant-numeric: tabular-nums; }
.composer__quote { min-height: 46px; display: flex; align-items: center; gap: 10px; padding-inline: 14px; border-radius: 12px; background: var(--ground-2); border: 1px dashed var(--line); color: var(--mist-2); font-size: 15px; line-height: 1.3; min-width: 0; }
.composer__quote.has-line { border-style: solid; border-color: color-mix(in srgb, var(--saffron) 60%, var(--line)); color: var(--mist); }
.composer__quote b { font-family: var(--font-data); color: var(--saffron); font-weight: 700; }
.composer__quote bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper { display: inline-flex; align-items: stretch; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--ground-2); overflow: hidden; }
.stepper:focus-within { border-color: var(--saffron); }
.stepper button { width: 38px; border: 0; background: none; color: var(--mist); display: grid; place-items: center; }
.stepper button:hover { background: var(--line); }
.stepper input { width: 60px; height: 100%; border: 0; background: none; color: var(--mist); font-family: var(--font-data); font-weight: 700; font-size: 20px; text-align: center; outline: none; font-variant-numeric: tabular-nums; }
.send { height: 46px; padding-inline: 18px 14px; border: 0; border-radius: 12px; background: var(--saffron); color: var(--saffron-ink); font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.send svg { width: 20px; height: 20px; }
html[dir="rtl"] .send svg { transform: scaleX(-1); }
.send:hover { background: #ffb93f; }
.send:active { transform: scale(0.97); }
.composer__hint { margin-top: 6px; padding-inline: 4px; font-size: 13.5px; color: var(--mist-2); }
.composer__hint.is-err { color: #ffb4c0; }

/* replies in the thread */
.replies { display: grid; gap: 8px; }
.replies:empty { display: none; }
.rmsg { position: relative; max-width: min(620px, 88%); padding: 8px 12px 6px; border-radius: 14px; font-size: 16px; line-height: 1.45; scroll-margin-bottom: 150px; }
.rmsg.is-new { animation: arrive 280ms var(--ease-out) both; }
.rmsg--you { justify-self: end; background: var(--raised); color: var(--mist); border-start-end-radius: 0; }
.rmsg--you::before { inset-inline-end: -10px; clip-path: polygon(0 0, 100% 0, 0 100%); }
html[dir="rtl"] .rmsg--you::before { clip-path: polygon(0 0, 100% 0, 100% 100%); }
.rmsg--desk { justify-self: start; background: var(--paper); color: var(--ink); border-start-start-radius: 0; }
.rmsg--you + .rmsg--you, .rmsg--desk + .rmsg--desk { border-radius: 14px; }
.rmsg--you + .rmsg--you::before, .rmsg--desk + .rmsg--desk::before { display: none; }
.rmsg__quote { position: relative; display: grid; gap: 1px; margin-bottom: 6px; padding: 6px 10px 6px 16px; border-radius: 8px; background: rgba(8, 10, 40, 0.35); font-size: 14px; line-height: 1.35; color: var(--mist-2); }
html[dir="rtl"] .rmsg__quote { padding: 6px 16px 6px 10px; }
.rmsg__quote::before { content: ""; position: absolute; inset-block: 6px; inset-inline-start: 6px; width: 3px; border-radius: 2px; background: var(--mist-2); }
.rmsg__quote b { color: var(--mist); font-weight: 700; font-size: 13.5px; }
.rmsg__meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 2px; font-family: var(--font-data); font-size: 12.5px; color: var(--mist-3); }
.rmsg--desk .rmsg__meta { color: var(--ink-3); }
.tick { display: inline-grid; color: var(--mist-3); transition: color 240ms ease; }
.tick.is-read { color: var(--saffron); }
.typing { display: inline-flex; gap: 5px; align-items: center; height: 22px; padding-inline: 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
@keyframes arrive { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.att { margin-top: 8px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--paper-2); }
.att__icon, .file__icon { width: 42px; height: 48px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--font-data); font-weight: 700; font-size: 12.5px; letter-spacing: 0.06em; flex: none; }
.att b { display: block; font-size: 15px; }
.att small { display: block; color: var(--ink-3); font-size: 13.5px; }
.att__btns { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.att__btns button { height: 34px; padding-inline: 12px; border-radius: 999px; border: 1px solid var(--ink); background: none; font-weight: 700; font-size: 14px; color: var(--ink); }
.att__btns button:first-child { background: var(--ink); color: var(--paper); }
.att__btns button:disabled { opacity: 0.45; cursor: default; }

/* ---------- grades: one pinned definition list ---------- */
.gl { margin-top: 16px; border-top: 1px solid var(--rule); }
.gl__row { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: center; gap: 18px; padding: 11px 2px; border-bottom: 1px solid var(--rule); }
.gl dt { display: grid; grid-template-columns: 26px 56px minmax(0, 1fr); align-items: center; gap: 12px; }
.gl dt svg { width: 26px; height: 37px; color: var(--ink); }
.gl .gm { min-width: 54px; height: 34px; font-size: 19px; border-radius: 9px; }
.gl .gm[data-g="P"] { font-size: 14px; }
.gl dt b { font-weight: 800; font-size: 17.5px; letter-spacing: -0.01em; }
html[lang="ar"] .gl dt b { letter-spacing: 0; }
.gl dd { color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.grades__all { margin-top: 14px; font-size: 15px; color: var(--ink-2); padding: 10px 14px; background: var(--paper-2); border-radius: 12px; }

/* ---------- lot report: a file in the thread ---------- */
.file { margin-top: 16px; border: 1px solid var(--rule); border-radius: 14px; background: #fff; overflow: hidden; }
.file__head { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.file__head > div { flex: 1; min-width: 0; }
.file__head b { display: block; font-size: 16px; }
.file__head small { display: block; color: var(--ink-3); font-size: 14px; }
.file__dl { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding-inline: 14px; border-radius: 999px; border: 1px solid var(--ink); background: none; color: var(--ink); font-weight: 700; font-size: 14.5px; transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out); }
.file__dl:hover { background: var(--ink); color: var(--paper); }
.file__dl:active { transform: scale(0.97); }
.file__table { overflow-x: auto; }
.rep { width: 100%; border-collapse: collapse; font-size: 15px; }
.rep th { text-align: start; font-family: var(--font-data); font-weight: 600; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding: 10px 16px; background: var(--paper); }
html[lang="ar"] .rep th { letter-spacing: 0; font-size: 13.5px; }
.rep td { padding: 9px 16px; border-top: 1px solid var(--rule); white-space: nowrap; }
.rep .num { font-weight: 500; }

/* ---------- the loop: a shared route ---------- */
.loop__dir { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 3px; background: var(--paper-2); border-radius: 999px; margin-top: 14px; }
.loop__dir button { min-height: 34px; padding: 5px 14px; border: 0; border-radius: 999px; background: none; font-weight: 700; font-size: 14.5px; line-height: 1.25; color: var(--ink-2); }
.loop__dir button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.loop__map { margin-top: 10px; direction: ltr; }
.loop__svg { width: 100%; height: auto; overflow: visible; }
.loop__track { fill: none; stroke: var(--rule); stroke-width: 10; stroke-linecap: round; }
.loop__lit { fill: none; stroke: var(--ink); stroke-width: 10; stroke-linecap: round; }
.loop__node { fill: var(--paper); stroke: var(--ink); stroke-width: 4; }
.loop__tk rect { fill: var(--saffron); }
.loop__tk text { font-family: var(--font-data); font-weight: 700; font-size: 15px; fill: var(--saffron-ink); letter-spacing: 0.06em; }
/* city labels sit outside the two nodes, level with them: the nodes are at 20.8% and 79.2% across, 7.3% of the width above the drawing's foot */
.loop__ends { position: relative; height: 0; margin-top: -7.3%; margin-bottom: 7.3%; }
.loop__ends > span { position: absolute; top: 0; transform: translateY(-50%); display: grid; line-height: 1.2; white-space: nowrap; }
.loop__ends > span:first-child { right: calc(79.2% + 34px); justify-items: end; }
.loop__ends > span:last-child { left: calc(79.2% + 34px); justify-items: start; }
.loop__ends b { font-weight: 800; font-size: 17px; }
html[lang="ar"] .loop__ends b { font-family: "Alexandria", sans-serif; font-weight: 700; }
.loop__ends small { font-family: var(--font-data); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; color: var(--ink-3); }
/* stops sit in map order: west on the left, east on the right, whichever way the lot travels */
.loop__stops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; direction: ltr; }
.loop__stops[data-dir="eu"] { direction: rtl; }
.stop { direction: ltr; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rule); background: #fff; transition: background-color 200ms ease, border-color 200ms ease; }
html[dir="rtl"] .stop { direction: rtl; }
.stop b { display: block; font-size: 15.5px; }
.stop span { display: block; font-size: 14px; color: var(--ink-3); line-height: 1.4; margin-top: 2px; }
.stop.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.stop.is-on span { color: var(--mist-2); }
.loop__days { margin-top: 12px; text-align: center; font-family: var(--font-data); font-size: 18px; color: var(--ink-2); }
html[dir="rtl"] .loop__days { direction: rtl; }

/* ---------- steps: ticked one at a time ---------- */
.steps { margin-top: 18px; display: grid; max-width: 640px; counter-reset: st; }
.step { counter-increment: st; position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; padding-bottom: 20px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: counter(st); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 2px solid var(--ink); background: var(--paper); font-family: var(--font-data); font-weight: 700; font-size: 18px; transition: background-color 240ms ease, color 240ms ease; }
.step::after { content: ""; position: absolute; inset-inline-start: 19px; top: 46px; bottom: 6px; width: 2px; border-radius: 1px; background: var(--rule); transition: background-color 300ms ease; }
.step:last-child::after { display: none; }
.step.is-done::before { content: ""; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23f4f5fd' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; animation: tick 320ms var(--ease-out); }
.step.is-done::after { background: var(--ink); }
@keyframes tick { from { transform: scale(0.86); } }
.step > div { padding-top: 7px; }
.step b { display: block; font-size: 17px; }
.step span { display: block; font-size: 15px; color: var(--ink-2); line-height: 1.45; margin-top: 2px; }

/* ---------- terms ---------- */
.terms { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; border-top: 1px solid var(--rule); }
.terms div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.terms dt { font-weight: 700; }
.terms dd { color: var(--ink-2); }

/* ---------- account form ---------- */
.form { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: grid; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--ink); min-width: 0; }
.field input, .field select { width: 100%; height: 50px; border-radius: 12px; border: 1.5px solid var(--rule); background: #fff; padding-inline: 14px; font-weight: 500; font-size: 16px; color: var(--ink); outline: none; transition: border-color 140ms ease, box-shadow 140ms ease; }
.field input:focus, .field select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--saffron) 45%, transparent); }
.field.is-err input { border-color: var(--err); }
.field .err { font-weight: 600; font-size: 13.5px; color: var(--err); }
.field--set { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; }
.field--set legend { padding: 0; margin-bottom: 6px; }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; height: 46px; border-radius: 12px; border: 1.5px solid var(--rule); background: #fff; font-weight: 600; font-size: 15px; text-align: center; padding-inline: 6px; transition: border-color 140ms ease, background-color 140ms ease; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--saffron); outline-offset: 2px; }
.form__end { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form__demo { font-size: 14px; color: var(--ink-3); }
.account .replies { margin-top: 16px; }
.account .rmsg--desk { background: var(--paper-2); }

.foot { display: grid; gap: 6px; padding-top: 12px; font-size: 14px; color: var(--mist-3); max-width: 760px; }
.foot a { color: var(--mist-2); }

/* lot report dialog */
.dlg { border: 0; border-radius: var(--r); padding: 0; width: min(760px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.dlg::backdrop { background: rgba(10, 12, 40, 0.6); backdrop-filter: blur(2px); }
.dlg[open] { animation: arrive 240ms var(--ease-out); }
.dlg__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--rule); }
.dlg__head b { font-size: 17px; }
.dlg__x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule); background: none; display: grid; place-items: center; }

/* ---------- responsive ---------- */
@media (min-width: 721px) {
  .line__meta { display: contents; }
  .composer { position: sticky; bottom: 12px; }
}
@media (max-width: 1180px) {
  .clock { padding-inline: 10px; gap: 6px; }
  .clock__state { font-size: 0; gap: 0; }
  .gl__row { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  :root { --bar: 58px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: sticky; top: var(--bar); z-index: 30; height: auto; padding: 8px 12px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .rail::before { inset: 0 50% 0 0; animation-name: pane-from-start; box-shadow: inset 0 -1px 0 var(--glass-rule); }
  .rail::after { inset: 0 0 0 50%; animation-name: pane-from-end; box-shadow: inset 0 -1px 0 var(--glass-rule); }
  .rail > .glass-seam { top: 0; bottom: 0; left: calc(50% - 1px); right: auto; width: 2px; height: auto; --sd: 180deg; animation-name: seam-glint; }
  .rail__title { display: none; }
  .rail__list { grid-auto-flow: column; grid-auto-columns: max-content; gap: 6px; }
  .ch { min-height: 38px; padding: 6px 14px; gap: 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--glass-rule); }
  .ch__meta { display: none; }
  .ch__time { display: inline; color: var(--ink-3); }
  .ch--cta { margin-top: 0; }
  .clocks { display: none; }
  .mark__ar { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .bar { gap: 10px; padding-inline: 12px; }
  .bar .pill--mist { display: none; }
  .cur button { padding-inline: 8px; font-size: 13px; }
  .thread { padding: 14px 14px 64px; gap: 14px; }
  .bub--desk { padding: 14px 16px 8px; }
  .msg--hero { grid-template-columns: minmax(0, 1fr); }
  .msg--hero .bub__meta { margin-top: 8px; }
  .bc__head { flex-direction: column; align-items: flex-start; padding-inline: 14px; }
  .bc__cols { display: none; }
  .line { grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "no dev price" "no meta hub"; row-gap: 2px; padding-inline: 14px; padding-block: 9px; }
  .line__no { grid-area: no; align-self: start; padding-top: 2px; }
  .line__dev { grid-area: dev; flex-wrap: wrap; row-gap: 0; }
  .line__p { grid-area: price; }
  .line__meta { grid-area: meta; display: flex; gap: 10px; align-items: center; }
  .line__hub { grid-area: hub; }
  .composer__row { grid-template-columns: 116px minmax(0, 1fr); }
  .composer__quote { grid-column: 1 / -1; grid-row: 2; }
  .composer__qty { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .send { grid-column: 1 / -1; justify-content: center; }
  .gl__row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-block: 12px; }
  .gl dd { padding-inline-start: 38px; }
  .file__head { flex-wrap: wrap; }
  .file__dl { width: 100%; justify-content: center; }
  /* report rows stack: the IMEI on top, the four values under it */
  .rep thead { display: none; }
  .rep tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; padding: 10px 14px; border-top: 1px solid var(--rule); }
  .rep td { padding: 0; border: 0; white-space: normal; font-size: 14.5px; }
  .rep td:first-child { grid-column: 1 / -1; font-weight: 700; font-size: 15.5px; }
  .rep td[data-l]::before { content: attr(data-l) " "; color: var(--ink-3); font-size: 13px; font-weight: 500; }
  .loop__dir { display: grid; width: 100%; border-radius: 14px; }
  .loop__dir button { border-radius: 11px; }
  /* on a phone the drawing runs wider than its box so the loop fills the width; the side margins of the drawing are empty */
  .loop__map { overflow: hidden; }
  .loop__svg { width: 140%; max-width: none; margin-left: -20%; }
  .loop__ends { height: 40px; margin: 4px 0 0; }
  .loop__ends b { font-size: 15.5px; }
  .loop__ends > span { transform: none; }
  .loop__ends > span:first-child { right: auto; left: 0; justify-items: start; }
  .loop__ends > span:last-child { left: auto; right: 0; justify-items: end; }
  .loop__tk { transform: scale(2.2); }
  .loop__stops, .loop__stops[data-dir="eu"] { grid-template-columns: minmax(0, 1fr); direction: ltr; gap: 6px; }
  .terms { grid-template-columns: 1fr; }
  .terms div { grid-template-columns: 130px minmax(0, 1fr); }
  .form { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
