/* رُسن — the three designs inspired by the daily operations report's cover (night port, navy, teal glow),
   loaded after app.css. «classic» keeps the original look; every rule here is for the new designs.

   Shared by night / report / tower: the masthead (الترويسة) — the yard at night from satellite imagery
   with the drawing's lanes glowing — the phone tab bar and drawer, the iPad rail, and the meeting screen. */

/* ================================================================ shared frame */
.tabbar, .drawer-scrim, .drawer-x { display: none; }
.preview-bar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 16px; font-size: 13.5px;
  font-weight: 600; background: #ffb547; color: #2b1a00; }
.preview-bar a { color: #2b1a00; text-decoration: underline; }
.preview-bar svg.i { width: 16px; height: 16px; }

:root:not([data-design="classic"]) {
  --mast-h: clamp(210px, 22vw, 300px);
  --mast-tilt: 42deg;
  --mast-glow: #36d1c4; --mast-glow-2: #7fe6dc; --mast-lamp: 1;
  --mast-shade: linear-gradient(180deg, rgba(4, 11, 24, .92) 0%, rgba(4, 11, 24, .45) 38%, rgba(4, 11, 24, .30) 62%, rgba(4, 11, 24, .82) 100%);
  --pill-bg: rgba(54, 209, 196, .12); --pill-line: rgba(127, 230, 220, .55); --pill-ink: #c9f6f1;
}
:root:not([data-design="classic"]) .top { display: none; }

.mast { position: relative; isolation: isolate; overflow: hidden; color: #fff; min-height: var(--mast-h);
  padding: 14px 28px 30px; display: flex; flex-direction: column; background: #06101f; }
.mast-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; perspective: 1100px; }
.mast-art { position: absolute; left: -22%; top: -60%; width: 144%; height: 210%;
  transform: rotateX(var(--mast-tilt)); transform-origin: 50% 62%; }
.mast-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mast-shade { position: absolute; inset: 0; z-index: -1; background: var(--mast-shade); }
.mast-shade::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 110%, rgba(54, 209, 196, .16), transparent 70%); }

/* the drawing on the satellite mosaic */
.hz-survey polyline { stroke: rgba(170, 205, 255, .16); stroke-width: 1.2; }
.hz-zones polygon { fill: rgba(54, 209, 196, .03); stroke: rgba(127, 230, 220, .45); stroke-width: 1.4; }
.hz-lanes-glow line { stroke: var(--mast-glow); stroke-width: 4; opacity: .22; stroke-linecap: round; }
.hz-lanes line { stroke: var(--mast-glow-2); stroke-width: 1; opacity: .5; stroke-linecap: round; }
.hz-lamps { opacity: var(--mast-lamp); }
.hz-truck { fill: #fff1c4; }
@media (prefers-reduced-motion: reduce) { .hz-trucks { display: none; } }

.mast-bar { position: absolute; top: 12px; left: 20px; right: 20px; z-index: 2; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; pointer-events: none; }
.mast-bar > * { pointer-events: auto; }
/* the brand at the top, as on the report's cover: the logos, then «رُسن» large with the tagline beneath */
.mast-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding-top: 4px; }
.mast-logos { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 10px; }
.mast-name { font-size: clamp(42px, 4.6vw, 70px); font-weight: 800; line-height: 1.08; color: #fff;
  text-shadow: 0 0 30px rgba(54, 209, 196, .35), 0 3px 18px rgba(0, 0, 0, .55); }
.mast-tag { font-size: clamp(12.5px, 1.05vw, 15px); font-weight: 500; color: rgba(225, 236, 250, .9); letter-spacing: .01em; }
.mast-mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; white-space: nowrap; }
.mast-mark svg { width: 26px; height: 26px; color: var(--mast-glow-2); stroke-width: 1.6; }
.mast-mark i { font-style: normal; font-size: 11.5px; letter-spacing: .22em; opacity: .75; }
.mast-sep { width: 1px; height: 34px; background: rgba(255, 255, 255, .45); }
.mast-logo { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.mast-logo.logo_jiptr { height: 15px; }
.mast-util { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
/* a photo (the report's cover or an uploaded one): lighter shade, it is already a night picture */
.mast--report .mast-shade, .mast--photo .mast-shade {
  background: linear-gradient(180deg, rgba(4, 11, 24, .55) 0%, rgba(4, 11, 24, .22) 42%, rgba(4, 11, 24, .74) 100%); }
.mast-photo { object-position: 50% 45%; }
/* the yard photo: raised so the cranes on the skyline sit behind the page title */
.mast--report .mast-photo { object-position: 50% 34%; }
.mast-clock { font-size: 15px; font-weight: 600; color: rgba(225, 236, 250, .9); padding: 0 6px; }
.mast-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; color: #eaf3ff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; padding: 6px 10px;
  cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mast-btn:hover { background: rgba(255, 255, 255, .16); }
.mast-btn[aria-pressed="true"] { background: var(--mast-glow); color: #03201d; border-color: transparent; }
.mast-btn svg.i { width: 16px; height: 16px; }
.mast-menu { display: none; }

.mast-body { margin-top: auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: 14px; }
.mast-pill { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 8px 20px; border-radius: 99px;
  color: var(--pill-ink); background: var(--pill-bg); border: 1px solid var(--pill-line);
  box-shadow: 0 0 24px rgba(54, 209, 196, .28), inset 0 0 14px rgba(54, 209, 196, .14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.mast h1 { font-size: clamp(20px, 2vw, 29px); font-weight: 700; line-height: 1.25; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .55); }
.mast .sub { color: rgba(222, 234, 249, .86); font-size: clamp(13px, 1.1vw, 15.5px); max-width: 900px; }
.mast-tools { position: absolute; bottom: 16px; inset-inline-end: 24px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mast-tools .btn { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .26);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mast-tools .btn:hover { background: rgba(255, 255, 255, .2); }
.mast-tools .btn.primary { background: var(--mast-glow); color: #032420; border-color: transparent; }
.mast-tools :is(input, select) { color-scheme: dark; background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .26); }
.mast-tools .datebar { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); }
.mast-tools .datebar a, .mast-tools .datebar button { color: #fff; }
.mast-tools svg.i { color: currentColor; }

/* a page whose content is itself the picture (الساحة الحية): a slim masthead */
.mast.mast--slim { --mast-h: 0px; padding-bottom: 16px; }
.mast.mast--slim .mast-body { flex-direction: column; justify-content: center; gap: 6px; padding-top: 10px; }   /* the English line under the Arabic, as on every page */
.mast.mast--slim h1 { font-size: clamp(19px, 1.8vw, 25px); }
.mast.mast--slim .mast-name { font-size: clamp(54px, 5.4vw, 84px); }
.mast.mast--slim .sub { display: none; }
.mast.mast--slim .mast-tools { position: static; justify-content: center; margin-top: 10px; }

/* ================================================================ 1) ليل الميناء — Night Port (dark throughout) */
:root[data-design="night"]:not([data-theme="light"]) {
  color-scheme: dark;
  --page: #050c18; --surface: #0b1628; --surface-2: #0f1e35; --ink: #e8f0fb; --ink-2: #b4c3d8; --muted: #8094b0;
  --line: #172840; --line-strong: #24395b; --grid: #172840; --axis: #2a4063;
  --accent: #36d1c4; --accent-ink: #6fe3d8; --accent-soft: rgba(54, 209, 196, .13);
  --side: #040a14; --side-2: #0c182b; --side-3: #142644; --side-ink: #d6e2f2; --side-muted: #7489a6; --side-line: rgba(127, 180, 255, .08);
  --brand-1: #36d1c4; --brand-2: #155e7a; --nav-on: #36d1c4; --nav-on-icon: #7fe6dc;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 14px 34px rgba(0, 0, 0, .32);
  --radius: 16px;
  --series-1: #36d1c4; --series-2: #ffb547; --series-3: #7aa7ff; --series-4: #f472b6;
  --series-5: #a78bfa; --series-6: #4ade80; --series-7: #fb923c; --series-8: #f87171; --ref: #6b7f9c;
  --good-ink: #4ade80; --warning-ink: #fbbf24; --serious-ink: #fb923c; --critical-ink: #f87171;
  --good-soft: rgba(74, 222, 128, .12); --warning-soft: rgba(251, 191, 36, .12); --serious-soft: rgba(251, 146, 60, .12); --critical-soft: rgba(248, 113, 113, .12);
  --seq-1: #0d3b4a; --seq-2: #0f5560; --seq-3: #147076; --seq-4: #1f9a96; --seq-5: #36d1c4; --seq-6: #9af0e8;
  --seq-ink-light: #ffffff; --seq-ink-dark: #041b19;
}
:root[data-design="night"]:not([data-theme="light"]) body { background: radial-gradient(1400px 700px at 85% -10%, rgba(54, 209, 196, .07), transparent 60%),
  radial-gradient(900px 500px at 0% 30%, rgba(122, 167, 255, .05), transparent 60%), var(--page); }
:root[data-design="night"]:not([data-theme="light"]) :is(.card, .stat, .kpi, .team-card, .tl-item, .vol, .gauge, .module, .form-card, .facility, .site-item) {
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008)), var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); }
:root[data-design="night"]:not([data-theme="light"]) .stat-value, :root[data-design="night"]:not([data-theme="light"]) .kpi-value { color: #f3f8ff; }
:root[data-design="night"]:not([data-theme="light"]) .btn { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
:root[data-design="night"]:not([data-theme="light"]) .btn.primary { background: var(--accent); color: #03201d; border-color: transparent; }
:root[data-design="night"]:not([data-theme="light"]) .nav a.on { background: linear-gradient(270deg, rgba(54, 209, 196, .16), transparent); box-shadow: inset -3px 0 0 var(--nav-on); }
:root[data-design="night"]:not([data-theme="light"]) .side { background: linear-gradient(180deg, #06101f, #040a14); border-inline-start: 1px solid var(--side-line); }
:root[data-design="night"]:not([data-theme="light"]) .t thead th { background: var(--surface-2); color: var(--ink-2); }
:root[data-design="night"] [data-theme-toggle] { display: none; }

/* ---------------------------------------------------------------- 1b) نهار الميناء — the same design by day
   (زر نهاري / ليلي, js/daynight.js; برج المراقبة shares it, with its own touches after its section): light pages in the night design's blues and teal, the yard photo in calm
   morning light under a soft veil, navy text. data-theme="light" comes from the server (the rosn_mode cookie). */
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] {
  color-scheme: light;
  --page: #eef3f7; --surface: #ffffff; --surface-2: #f4f7fa; --ink: #0b1a2e; --ink-2: #41526a; --muted: #6f7f95;
  --line: #dde5ee; --line-strong: #c8d3df; --grid: #e4eaf1; --axis: #c2cdda;
  --accent: #0e7f77; --accent-ink: #0b6a63; --accent-soft: #e1f3f1;
  --side: #ffffff; --side-2: #eef4f8; --side-3: #e1eaf2; --side-ink: #16283f; --side-muted: #6b7b91; --side-line: #e3e9f0;
  --brand-1: #36d1c4; --brand-2: #155e7a; --nav-on: #0e7f77; --nav-on-icon: #0e7f77;
  --shadow: 0 1px 2px rgba(11, 26, 46, .05), 0 8px 24px rgba(11, 26, 46, .06);
  --radius: 16px;
  --series-1: #0e8f86; --series-2: #e08a1e; --series-3: #3b6fd8; --series-4: #d14f8e;
  --series-5: #7b5ad6; --series-6: #2f9e5b; --series-7: #e06a2c; --series-8: #d64545; --ref: #8a97a8;
  --seq-1: #d8f1ee; --seq-2: #ade3dd; --seq-3: #7ccfc6; --seq-4: #45b3a8; --seq-5: #1c9187; --seq-6: #0b6a63;
  --seq-ink-light: #06201d; --seq-ink-dark: #ffffff;
  --pill-bg: rgba(255, 255, 255, .66); --pill-line: rgba(14, 127, 119, .42); --pill-ink: #0b5f59;
}
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] body { background: radial-gradient(1400px 700px at 85% -10%, rgba(54, 209, 196, .09), transparent 60%),
  radial-gradient(900px 500px at 0% 30%, rgba(122, 167, 255, .07), transparent 60%), var(--page); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] :is(.stat, .kpi) { box-shadow: var(--shadow), inset 0 3px 0 #36d1c4; }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .side { background: #ffffff; border-inline-start: 1px solid var(--line); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] :is(.brand-name, .who) { color: var(--ink); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .nav a.on { color: var(--ink); background: linear-gradient(270deg, rgba(14, 127, 119, .12), transparent);
  box-shadow: inset -3px 0 0 var(--nav-on); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .tabbar { background: rgba(255, 255, 255, .96); border-top-color: var(--line); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .tabbar :is(a, button) { color: #5d6e86; }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .tabbar a.on { color: var(--accent); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .drawer-x { background: var(--side-2); color: var(--side-ink); }
/* the masthead on the morning photo: a light veil and navy type (a satellite mosaic stays a night picture) */
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .mast:is(.mast--report, .mast--photo) { background: #dfe8f1; color: var(--ink); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .mast:is(.mast--report, .mast--photo) .mast-shade {
  background: linear-gradient(180deg, rgba(241, 246, 250, .66) 0%, rgba(241, 246, 250, .16) 40%, rgba(241, 246, 250, .22) 62%, rgba(238, 243, 247, .9) 100%); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .mast:is(.mast--report, .mast--photo) .mast-shade::after {
  background: radial-gradient(60% 80% at 50% 110%, rgba(54, 209, 196, .12), transparent 70%); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .mast:is(.mast--report, .mast--photo) :is(h1, .mast-name) { color: #0b1a2e;
  text-shadow: 0 0 22px rgba(255, 255, 255, .95), 0 1px 3px rgba(255, 255, 255, .9); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .mast:is(.mast--report, .mast--photo) :is(.sub, .mast-tag, .mast-clock) { color: #22354e;
  text-shadow: 0 0 12px rgba(255, 255, 255, .9); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .mast:is(.mast--report, .mast--photo) .mast-pill { box-shadow: 0 2px 14px rgba(11, 26, 46, .1); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .mast:is(.mast--report, .mast--photo) :is(.mast-btn, .mast-tools .btn) {
  color: #10233b; background: rgba(255, 255, 255, .68); border-color: rgba(16, 35, 59, .16); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .mast:is(.mast--report, .mast--photo) :is(.mast-btn, .mast-tools .btn):hover { background: rgba(255, 255, 255, .9); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .mast:is(.mast--report, .mast--photo) .mast-tools .btn.primary { background: var(--accent); color: #fff; border-color: transparent; }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .mast:is(.mast--report, .mast--photo) .mast-tools :is(input, select) { color-scheme: light;
  background: rgba(255, 255, 255, .78); color: #10233b; border-color: rgba(16, 35, 59, .18); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .mast:is(.mast--report, .mast--photo) .mast-tools .datebar { background: rgba(255, 255, 255, .6); border-color: rgba(16, 35, 59, .14); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .mast:is(.mast--report, .mast--photo) .mast-tools .datebar :is(a, button) { color: #10233b; }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .mast:is(.mast--report, .mast--photo) .mast-sep { background: rgba(16, 35, 59, .3); }
/* the report cover's two logos are white: dark on the morning sky (uploaded colour logos are left as they are) */
/* a logo with a colour version (Mawani's official logo) shows it by day; the others are set dark */
.mast-logo.logo-day { display: none; }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] :is(.mast--report, .mast--photo, .login-night--report, .login-night--photo) .mast-logo.logo-night { display: none; }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] :is(.mast--report, .mast--photo, .login-night--report, .login-night--photo) .mast-logo.logo-day { display: block; }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] :is(.mast--report, .mast--photo, .login-night--report, .login-night--photo) :is(.mast-logo.logo_mawani, .mast-logo.logo_jiptr):not(.logo-day) {
  filter: brightness(0); opacity: .78; }
/* the sign-in page by day */
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] body.is-login { background: #e9eff5; }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .login-night:is(.login-night--report, .login-night--photo) { color: var(--ink); background: #e9eff5; }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .login-night:is(.login-night--report, .login-night--photo) .mast-shade {
  background: linear-gradient(180deg, rgba(241, 246, 250, .6), rgba(241, 246, 250, .14) 45%, rgba(236, 242, 247, .86)); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .login-night:is(.login-night--report, .login-night--photo) .ln-name { color: #0b1a2e;
  text-shadow: 0 0 34px rgba(255, 255, 255, .95), 0 2px 6px rgba(255, 255, 255, .8); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .login-night:is(.login-night--report, .login-night--photo) .ln-tag { color: #22354e; text-shadow: 0 0 14px rgba(255, 255, 255, .9); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .login-night:is(.login-night--report, .login-night--photo) .mast-sep { background: rgba(16, 35, 59, .3); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .login-night:is(.login-night--report, .login-night--photo) .mast-btn {
  color: #10233b; background: rgba(255, 255, 255, .68); border-color: rgba(16, 35, 59, .16); }

/* the sign-in card by day: white glass over the morning photo */
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .login-night .login-card { background: rgba(255, 255, 255, .84); border-color: rgba(16, 35, 59, .1);
  color: var(--ink); box-shadow: 0 22px 60px rgba(11, 26, 46, .18); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .login-night .login-card :is(label, .brand-site, .login-foot) { color: #4a5b72; }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .login-night .login-card .brand-name { color: var(--ink); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .login-night .login-card input { color-scheme: light; background: #fff; color: var(--ink); border-color: var(--line-strong); }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .login-night .login-card .btn.primary { background: var(--accent); color: #fff; }

/* the toggle: the sun and «نهاري» at night, the moon and «ليلي» by day; never the glowing «pressed» look */
.daynight-btn[aria-pressed] { background: rgba(255, 255, 255, .08); color: #eaf3ff; border-color: rgba(255, 255, 255, .18); }
.daynight-btn[aria-pressed]:hover { background: rgba(255, 255, 255, .16); }
:root[data-theme="light"] .daynight-btn :is(.dn-sun, .dn-to-day), :root:not([data-theme="light"]) .daynight-btn :is(.dn-moon, .dn-to-night) { display: none; }
.ln-mode { position: absolute; top: 18px; left: 20px; z-index: 3; }
@media (max-width: 700px) { .daynight-btn span { display: none; } .ln-mode { top: 12px; left: 12px; } }

/* ================================================================ 2) التقرير التنفيذي — Executive Report (light pages, night cover) */
:root[data-design="report"] {
  --page: #eef2f7; --surface: #ffffff; --surface-2: #f5f8fb; --ink: #0a1a33; --ink-2: #3f5068; --muted: #75839a;
  --line: #dfe6ef; --line-strong: #c7d2df;
  --accent: #0a5bae; --accent-ink: #094e95; --accent-soft: #e5effa;
  --side: #0a1a33; --side-2: #12284a; --side-3: #1b3660; --side-ink: #dce6f3; --side-muted: #8ba0bd;
  --brand-1: #14a8a0; --brand-2: #0a5bae; --nav-on: #22c3b9; --nav-on-icon: #7fe6dc;
  --shadow: 0 1px 2px rgba(10, 26, 51, .05), 0 8px 24px rgba(10, 26, 51, .06);
  --radius: 14px;
  --series-1: #0a5bae; --series-2: #14a8a0; --series-3: #f08c2e; --series-4: #8b5cf6;
  --series-5: #e0567a; --series-6: #2f9e44; --series-7: #64748b; --series-8: #d6453d;
  --mast-tilt: 0deg;
}
@media (prefers-color-scheme: dark) { :root[data-design="report"]:not([data-theme="light"]) {
  --page: #07101e; --surface: #0e1a2d; --surface-2: #13223a; --ink: #eaf1fa; --ink-2: #b5c3d6; --muted: #8394ac;
  --line: #1b2c46; --line-strong: #283f62; --accent: #5ea2ea; --accent-ink: #8cbcf0; --accent-soft: #13284a;
  --side: #050c18; --side-2: #0e1d35; --side-3: #172b4d; } }
:root[data-design="report"][data-theme="dark"] {
  --page: #07101e; --surface: #0e1a2d; --surface-2: #13223a; --ink: #eaf1fa; --ink-2: #b5c3d6; --muted: #8394ac;
  --line: #1b2c46; --line-strong: #283f62; --accent: #5ea2ea; --accent-ink: #8cbcf0; --accent-soft: #13284a;
  --side: #050c18; --side-2: #0e1d35; --side-3: #172b4d; }
:root[data-design="report"] .mast { --mast-h: clamp(200px, 19vw, 270px); margin: 16px 20px 0; border-radius: 18px;
  box-shadow: 0 18px 40px rgba(10, 26, 51, .22); }
:root[data-design="report"] .mast-art { left: -6%; top: -18%; width: 112%; height: 136%; }
:root[data-design="report"] :is(.card, .stat, .kpi, .team-card) { border: 1px solid var(--line); box-shadow: var(--shadow); }
:root[data-design="report"] :is(.stat, .kpi) { box-shadow: var(--shadow), inset 0 3px 0 #14a8a0; }
:root[data-design="report"] .section-head h2, :root[data-design="report"] .card-title > span:first-child { color: var(--ink); }
:root[data-design="report"] .content { padding-top: 22px; }
:root[data-design="report"] .nav a.on { box-shadow: inset -3px 0 0 var(--nav-on); }

/* ================================================================ 3) برج المراقبة — Control Tower (top menu, dark) */
:root[data-design="tower"]:not([data-theme="light"]) {
  color-scheme: dark;
  --page: #07111f; --surface: #0c1a2f; --surface-2: #11223c; --ink: #e9f1fc; --ink-2: #b6c5da; --muted: #8496b1;
  --line: #182c49; --line-strong: #25406a; --grid: #182c49; --axis: #2b4570;
  --accent: #2dd4bf; --accent-ink: #5eead4; --accent-soft: rgba(45, 212, 191, .12);
  --side: rgba(6, 14, 27, .92); --side-2: #10213b; --side-3: #18305a; --side-ink: #dbe6f5; --side-muted: #7f93b2; --side-line: rgba(140, 170, 255, .1);
  --brand-1: #2dd4bf; --brand-2: #8b5cf6; --nav-on: #2dd4bf; --nav-on-icon: #99f6e4;
  --shadow: 0 10px 30px rgba(0, 0, 0, .3);
  --radius: 12px;
  --series-1: #2dd4bf; --series-2: #a78bfa; --series-3: #fbbf24; --series-4: #60a5fa;
  --series-5: #f472b6; --series-6: #4ade80; --series-7: #fb923c; --series-8: #f87171; --ref: #6f84a6;
  --good-ink: #4ade80; --warning-ink: #fbbf24; --serious-ink: #fb923c; --critical-ink: #f87171;
  --good-soft: rgba(74, 222, 128, .12); --warning-soft: rgba(251, 191, 36, .12); --serious-soft: rgba(251, 146, 60, .12); --critical-soft: rgba(248, 113, 113, .12);
  --seq-1: #13304a; --seq-2: #1b4a64; --seq-3: #22667c; --seq-4: #2a8f98; --seq-5: #2dd4bf; --seq-6: #a7f3e7;
  --seq-ink-light: #ffffff; --seq-ink-dark: #04201c;
  --mast-tilt: 30deg; --mast-glow: #2dd4bf; --mast-glow-2: #a5f3e9;
  --pill-bg: linear-gradient(90deg, rgba(45, 212, 191, .16), rgba(139, 92, 246, .16)); --pill-line: rgba(167, 139, 250, .6); --pill-ink: #e3dcff;
}
:root[data-design="tower"]:not([data-theme="light"]) body { background: linear-gradient(180deg, #081426, #07111f 40%); }
:root[data-design="tower"] [data-theme-toggle] { display: none; }
:root[data-design="tower"] :is(.card, .stat, .kpi, .team-card, .tl-item, .vol, .gauge, .module, .form-card) {
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
:root[data-design="tower"] :is(.stat, .kpi)::before { content: ""; display: block; height: 2px; margin: -1px -1px 10px; border-radius: 2px;
  background: linear-gradient(90deg, #2dd4bf, #8b5cf6); }
:root[data-design="tower"] .btn { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
:root[data-design="tower"] .btn.primary { background: linear-gradient(90deg, #2dd4bf, #22b8a6); color: #032420; border-color: transparent; }
:root[data-design="tower"] .t thead th { background: var(--surface-2); color: var(--ink-2); }
:root[data-design="tower"] .mast { --mast-h: clamp(190px, 17vw, 250px); }

/* برج المراقبة by day: the shared day colours (section 1b), its teal-and-violet accents, a white bar on top */
:root[data-design="tower"][data-theme="light"] {
  --radius: 12px; --mast-tilt: 30deg;
  --series-2: #7b5ad6; --series-5: #e0a01e;
  --pill-bg: rgba(255, 255, 255, .7); --pill-line: rgba(124, 92, 230, .42); --pill-ink: #3f3496;
}
:root[data-design="tower"][data-theme="light"] body { background: linear-gradient(180deg, #e9f0f6, #eef3f7 40%); }
@media (min-width: 1101px) {
  :root[data-design="tower"][data-theme="light"] .side { background: rgba(255, 255, 255, .92); border-inline-start: 0; border-bottom: 1px solid var(--line); }
  :root[data-design="tower"][data-theme="light"] .nav a.on { background: rgba(14, 127, 119, .1); box-shadow: inset 0 -2px 0 var(--nav-on); }
}

/* on the phone the menu slides over the tab bar: a solid ground, so the tabs do not show through */
@media (max-width: 700px) { :root[data-design="tower"]:not([data-theme="light"]) .side { background: #07111f; } }

/* the menu across the top on large screens */
@media (min-width: 1101px) {
  :root[data-design="tower"] .shell { flex-direction: column; }
  :root[data-design="tower"] .side { width: auto; height: auto; position: sticky; top: 0; z-index: 30; flex-direction: row; align-items: center;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--side-line); }
  :root[data-design="tower"] .brand { border: 0; padding: 10px 18px; flex: none; }
  :root[data-design="tower"] .brand-site { display: none; }
  :root[data-design="tower"] .brand-mark { width: 34px; height: 34px; }
  :root[data-design="tower"] .nav { flex-direction: row; overflow-x: auto; padding: 8px 6px; gap: 2px; flex: 1; scrollbar-width: thin; }
  :root[data-design="tower"] .nav-label { display: none; }
  :root[data-design="tower"] .nav a { white-space: nowrap; padding: 7px 11px; font-size: 14px; }
  :root[data-design="tower"] .nav a.on { box-shadow: inset 0 -2px 0 var(--nav-on); background: rgba(45, 212, 191, .1); }
  :root[data-design="tower"] .side-foot { margin: 0; border: 0; padding: 6px 14px; display: flex; align-items: center; gap: 10px; flex: none; }
  :root[data-design="tower"] .side-foot .who-role { display: none; }
  :root[data-design="tower"] .side-actions { margin: 0; flex-wrap: nowrap; }
  :root[data-design="tower"] .side-actions span { display: none; }
  :root[data-design="tower"] .content { max-width: 1680px; }
}

/* ================================================================ devices */
/* iPad and small laptops: the menu becomes an icon rail; full names on hover/focus */
@media (min-width: 701px) and (max-width: 1100px) {
  :root:not([data-design="classic"]) .shell { flex-direction: row; }
  :root:not([data-design="classic"]) .side { width: 72px; position: sticky; top: 0; height: 100vh; overflow: visible; z-index: 20;
    transition: width .18s ease; }
  :root:not([data-design="classic"]) .side:hover, :root:not([data-design="classic"]) .side:focus-within { width: 252px;
    box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  :root:not([data-design="classic"]) .side:not(:hover):not(:focus-within) :is(.brand > div:last-child, .nav-label, .side-foot, .nav a > :not(svg)) { display: none; }
  :root:not([data-design="classic"]) .side:not(:hover):not(:focus-within) .nav a { font-size: 0; justify-content: center; padding: 11px 0; }
  :root:not([data-design="classic"]) .side:not(:hover):not(:focus-within) .nav a svg.i { width: 21px; height: 21px; }
  :root:not([data-design="classic"]) .side:not(:hover):not(:focus-within) .brand { justify-content: center; padding: 16px 0; }
  :root:not([data-design="classic"]) .side .nav { flex-direction: column; overflow-y: auto; overflow-x: hidden; }
  :root:not([data-design="classic"]) .side .nav-label { display: block; }
  :root:not([data-design="classic"]) .side .nav a { white-space: nowrap; }
  :root:not([data-design="classic"]) .side .nav a.on { box-shadow: inset -3px 0 0 var(--nav-on); }
  :root:not([data-design="classic"]) .side-foot { display: block; }
  :root:not([data-design="classic"]) .mast { padding: 12px 20px 24px; }
  :root:not([data-design="classic"]) .mast-tools { position: static; justify-content: center; margin-top: 14px; }
  :root:not([data-design="classic"]) .content { padding: 20px 20px 36px; }
}

/* phones: a bottom tab bar, the full menu in a drawer from the side, a shorter masthead */
@media (max-width: 700px) {
  :root:not([data-design="classic"]) body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  :root:not([data-design="classic"]) .shell { flex-direction: column; }
  :root:not([data-design="classic"]) .side { position: fixed; top: 0; bottom: 0; right: 0; width: min(86vw, 320px); height: 100%; z-index: 60;
    transform: translateX(105%); transition: transform .22s ease; overflow-y: auto; display: flex; flex-direction: column; }
  :root:not([data-design="classic"]).drawer-open .side { transform: none; box-shadow: -20px 0 50px rgba(0, 0, 0, .45); }
  :root:not([data-design="classic"]) .side .nav { flex-direction: column; overflow: visible; padding: 8px 10px 14px; }
  :root:not([data-design="classic"]) .side .nav-label { display: block; }
  :root:not([data-design="classic"]) .side .nav a { white-space: normal; padding: 10px 10px; }
  :root:not([data-design="classic"]) .side .nav a.on { box-shadow: inset -3px 0 0 var(--nav-on); }
  :root:not([data-design="classic"]) .side-foot { display: block; margin-top: auto; padding: 14px 16px 22px; }
  :root:not([data-design="classic"]) .drawer-x { display: grid; place-items: center; position: absolute; top: 12px; left: 12px; width: 36px; height: 36px;
    border-radius: 10px; border: 0; background: var(--side-2); color: var(--side-ink); cursor: pointer; z-index: 2; }
  :root:not([data-design="classic"]).drawer-open .drawer-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(2, 8, 18, .55); }
  :root:not([data-design="classic"]) .mast { --mast-h: 0px; padding: 10px 14px 18px; margin: 0; border-radius: 0; }
  :root:not([data-design="classic"]) .mast-menu { display: inline-flex; }
  :root:not([data-design="classic"]) .mast-bar { top: 10px; left: 10px; right: 10px; }
  :root:not([data-design="classic"]) .mast-brand { padding-top: 34px; }
  :root:not([data-design="classic"]) .mast-logos { gap: 10px; margin-bottom: 6px; }
  :root:not([data-design="classic"]) .mast-logo { height: 28px; max-width: 110px; }
  :root:not([data-design="classic"]) .mast-logo.logo_jiptr { height: 11px; }
  :root:not([data-design="classic"]) .mast-sep { height: 24px; }
  :root:not([data-design="classic"]) .mast-name { font-size: 56px; }
  :root:not([data-design="classic"]) .mast-tag { font-size: 12.5px; }
  :root:not([data-design="classic"]) .mast-clock, :root:not([data-design="classic"]) [data-present] { display: none; }
  :root:not([data-design="classic"]) .mast-body { padding-top: 16px; gap: 6px; align-items: center; text-align: center; }
  :root:not([data-design="classic"]) .mast-pill { font-size: 10.5px; padding: 6px 13px; letter-spacing: .12em; }
  :root:not([data-design="classic"]) .mast h1 { font-size: 19px; }
  :root:not([data-design="classic"]) .mast .sub { font-size: 13px; }
  :root:not([data-design="classic"]) .mast-tools { position: static; justify-content: center; margin-top: 12px; }
  :root:not([data-design="classic"]) .content { padding: 14px 12px 28px; }
  :root:not([data-design="classic"]) .foot { display: none; }
  :root:not([data-design="classic"]) .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; justify-content: space-around; align-items: flex-end;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(6, 14, 27, .94); border-top: 1px solid rgba(127, 180, 255, .14);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  :root[data-design="report"]:not([data-theme="dark"]) .tabbar { background: rgba(255, 255, 255, .96); border-top-color: var(--line); }
  .tabbar :is(a, button) { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; font-size: 11.5px;
    font-weight: 600; color: #9fb2cc; background: none; border: 0; padding: 4px 2px; text-decoration: none; cursor: pointer; }
  :root[data-design="report"]:not([data-theme="dark"]) .tabbar :is(a, button) { color: #5d6e86; }
  .tabbar svg.i { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--mast-glow); }
  :root[data-design="report"]:not([data-theme="dark"]) .tabbar a.on { color: #0a5bae; }
  .tabbar .tab-fab { flex: 0 0 auto; margin-top: -22px; }
  .tabbar .tab-fab svg.i { width: 26px; height: 26px; padding: 13px; box-sizing: content-box; border-radius: 50%; color: #032420;
    background: linear-gradient(135deg, var(--mast-glow), #1b9e93); box-shadow: 0 8px 22px rgba(54, 209, 196, .45); }
}

/* meeting screen (وضع شاشة العرض): no menus, larger type — for the screen in the meeting room */
:root.present:not([data-design="classic"]) { font-size: 118%; }
:root.present:not([data-design="classic"]) body { font-size: 17.5px; }
:root.present:not([data-design="classic"]) :is(.side, .tabbar, .foot) { display: none !important; }
:root.present:not([data-design="classic"]) .shell { display: block; }
:root.present:not([data-design="classic"]) .content { max-width: none; padding: 26px 40px 40px; }
:root.present:not([data-design="classic"]) .mast { --mast-h: clamp(220px, 20vw, 360px); }
:root.present:not([data-design="classic"]) .mast h1 { font-size: clamp(32px, 3.4vw, 60px); }
:root.present:not([data-design="classic"]) .mast-clock { font-size: 22px; }
:root.present:not([data-design="classic"]) :is(.stat-value, .kpi-value) { font-size: 1.35em; }
@media (min-width: 2200px) {
  :root:not([data-design="classic"]) { font-size: 112%; }
  :root:not([data-design="classic"]) body { font-size: 17px; }
  :root:not([data-design="classic"]) .content { max-width: 2100px; }
}
@media print {
  .mast, .tabbar, .preview-bar { display: none !important; }
  :root:not([data-design="classic"]) .top { display: flex !important; }
}

/* ================================================================ the chooser page (الواجهة والتصميم) */
.dz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 14px; }
.dz-card { display: flex; flex-direction: column; gap: 12px; padding: 0; overflow: hidden; }
.dz-card.is-applied { outline: 2px solid var(--good); }
.dz-card.is-preview { outline: 2px solid var(--accent); }
.dz-swatch { position: relative; height: 110px; display: grid; grid-template-columns: 2fr 1.2fr .6fr .6fr; }
.dz-swatch span:nth-child(1) { background: var(--c1); } .dz-swatch span:nth-child(2) { background: var(--c2); }
.dz-swatch span:nth-child(3) { background: var(--c3); } .dz-swatch span:nth-child(4) { background: var(--c4); }
.dz-swatch b { position: absolute; bottom: 10px; inset-inline-start: 14px; color: #fff; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .25); font-family: system-ui, sans-serif; }
.dz-night { --c1: #050d1a; --c2: #0d1d36; --c3: #36d1c4; --c4: #ffb547; }
.dz-report { --c1: #0a1a33; --c2: #eef2f7; --c3: #0a5bae; --c4: #14a8a0; }
.dz-tower { --c1: #07111f; --c2: #0f2240; --c3: #2dd4bf; --c4: #8b5cf6; }
.dz-classic { --c1: #0b1f3a; --c2: #edf1f5; --c3: #1d4f8f; --c4: #f07a2b; }
.dz-body { padding: 0 16px; display: flex; flex-direction: column; gap: 6px; }
.dz-body h2 { font-size: 19px; }
.dz-body p { margin: 0; color: var(--ink-2); font-size: 14px; }
.dz-state { display: flex; gap: 6px; flex-wrap: wrap; min-height: 26px; }
.dz-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 16px; margin-top: auto; }
.dz-logo { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.dz-logo-prev { width: 120px; height: 44px; display: grid; place-items: center; background: #0a1a33; border-radius: 8px; }
.dz-logo-prev img { max-width: 110px; max-height: 36px; }

/* rows of figures fill the width in the new designs */
:root:not([data-design="classic"]) .stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }


/* ================================================================ sign-in page on the night yard */
.login-night { position: relative; isolation: isolate; min-height: 100vh; overflow: hidden; color: #fff; background: #06101f;
  display: flex; flex-direction: column; padding: 22px 28px; }
.login-night .mast-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; perspective: 1100px; }
.login-night .mast-art { left: -30%; top: -46%; width: 160%; height: 200%; transform: rotateX(48deg); transform-origin: 50% 70%; }
/* the far edge of the yard fades into a night sky with a glow on the horizon, as in the report's photo */
.login-night--satellite .mast-media { -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 30%, rgba(0, 0, 0, .6) 40%, #000 54%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 30%, rgba(0, 0, 0, .6) 40%, #000 54%); }
body.is-login { padding-bottom: 0 !important; background: #06101f; }
.login-night::before { content: ""; position: absolute; inset: 0; z-index: -3;
  background: radial-gradient(70% 22% at 50% 24%, rgba(54, 209, 196, .20), transparent 70%),
              radial-gradient(40% 14% at 30% 26%, rgba(255, 181, 71, .10), transparent 70%),
              linear-gradient(180deg, #030914 0%, #071630 30%, #06101f 100%); }
:root[data-design="report"] .login-night .mast-art { transform: none; left: -10%; top: -10%; width: 120%; height: 120%; }
.login-night .mast-shade { background: linear-gradient(180deg, rgba(4, 11, 24, .9), rgba(4, 11, 24, .35) 45%, rgba(4, 11, 24, .85)); }
.ln-top { display: flex; align-items: center; justify-content: center; gap: 14px; }
.ln-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px); gap: 48px; align-items: center;
  max-width: 1180px; width: 100%; margin: 0 auto; padding: 30px 0; }
.ln-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ln-intro { align-items: center; text-align: center; }
.ln-name { font-size: clamp(72px, 9vw, 132px); font-weight: 800; line-height: 1; color: #fff;
  text-shadow: 0 0 40px rgba(54, 209, 196, .4), 0 4px 24px rgba(0, 0, 0, .55); }
.ln-tag { font-size: clamp(15px, 1.4vw, 19px); font-weight: 500; color: rgba(225, 236, 250, .92); margin-top: -2px; }
.ln-intro .mast-pill { margin-top: 12px; }
.ln-top .mast-logo { height: 50px; } .ln-top .mast-logo.logo_jiptr { height: 19px; } .ln-top .mast-sep { height: 40px; }
.login-night--report .mast-photo, .login-night--photo .mast-photo { object-position: 50% 50%; }
.login-night--report .mast-shade, .login-night--photo .mast-shade {
  background: linear-gradient(180deg, rgba(4, 11, 24, .55), rgba(4, 11, 24, .25) 45%, rgba(4, 11, 24, .8)); }
.login-night .login-card { background: rgba(8, 20, 38, .72); border: 1px solid rgba(127, 200, 255, .18); color: #eaf2fd;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.login-night .login-card :is(label, .brand-site, .login-foot) { color: #b9c9de; }
.login-night .login-card .brand-name { color: #fff; }
.login-night .login-card input { color-scheme: dark; background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .2); }
.login-night .login-card .btn.primary { background: var(--mast-glow); color: #032420; border-color: transparent; }
.login-night .login-card .brand-mark { background: linear-gradient(135deg, var(--mast-glow), #155e7a); }
@media (max-width: 860px) {
  .login-night { padding: 16px; }
  .login-night .mast-art { left: -60%; top: -8%; width: 220%; height: 140%; transform: rotateX(34deg); }
  .login-night--satellite .mast-media { -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 12%, #000 34%);
    mask-image: linear-gradient(180deg, transparent 0%, transparent 12%, #000 34%); }
  :root[data-design="report"] .login-night .mast-art { transform: none; left: -50%; top: 0; width: 200%; height: 100%; }
  .ln-body { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 18px 0; }
  .ln-name { font-size: 72px; }
  .ln-tag { font-size: 14.5px; }
  .ln-top .mast-logo { height: 34px; } .ln-top .mast-logo.logo_jiptr { height: 13px; } .ln-top .mast-sep { height: 28px; }
}
@media (max-width: 700px) {
  :root:not([data-design="classic"]) .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  :root:not([data-design="classic"]) .stat { padding: 12px 13px; }
  :root:not([data-design="classic"]) .stat-value { font-size: 22px; }
}

/* the brand is the centre of the page, as on the report's cover: name, tagline, then the sign-in card */
.ln-body { grid-template-columns: minmax(0, 440px); justify-content: center; gap: 26px; padding: 8px 0 20px; }
.ln-intro { margin-top: 2vh; }
.login-night .login-card { width: 100%; }

/* page tools (dates, buttons) sit at the top corner on large screens, clear of the centred title */
@media (min-width: 1101px) {
  .mast-tools { top: 56px; bottom: auto; inset-inline-end: 20px; max-width: 34%; justify-content: flex-start; }
  .mast.mast--slim .mast-tools { position: absolute; margin: 0; }
}

/* the partner logos in the bottom-left corner (of the masthead, and of the sign-in screen) */
.mast-logos { position: absolute; bottom: 16px; left: 22px; margin: 0; z-index: 2; gap: 14px; }
.mast-logo { height: 34px; } .mast-logo.logo_jiptr { height: 13px; } .mast-sep { height: 28px; }
@media (min-width: 1101px) {
  .mast.has-logos .mast-body { padding-inline: 230px; }
}
@media (max-width: 1100px) {
  .mast-logos { position: static; justify-content: flex-end; margin-top: 14px; }
}
@media (max-width: 700px) {
  :root:not([data-design="classic"]) .mast-logos { margin-top: 12px; }
  :root:not([data-design="classic"]) .mast-brand { padding-top: 30px; }
}
.ln-logos { position: absolute; bottom: 22px; left: 28px; display: flex; align-items: center; gap: 16px; }
.ln-logos .mast-logo { height: 44px; } .ln-logos .mast-logo.logo_jiptr { height: 17px; } .ln-logos .mast-sep { height: 36px; }
.ln-credit { position: absolute; bottom: 26px; right: 28px; }
.ln-credit .credit { color: rgba(214, 228, 245, .82); }
.ln-credit .credit-team { color: #fff; }
.ln-credit .credit-logo { height: 24px; }
/* the dark designs by day: the navy logo in the white menu and on the morning photo */
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] :is(.side-credit, .ln-credit) .cl-white { display: none; }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] :is(.side-credit, .ln-credit) .cl-dark { display: block; }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .login-night:is(.login-night--report, .login-night--photo) .ln-credit .credit { color: #34465e; }
:root:is([data-design="night"], [data-design="tower"])[data-theme="light"] .login-night:is(.login-night--report, .login-night--photo) .ln-credit .credit-team { color: #0b1a2e; }
@media (max-width: 860px) {
  .ln-logos { position: static; justify-content: flex-end; padding: 6px 4px 0; }
  .ln-logos .mast-logo { height: 30px; } .ln-logos .mast-logo.logo_jiptr { height: 12px; } .ln-logos .mast-sep { height: 24px; }
  .ln-credit { position: static; display: flex; justify-content: center; padding: 14px 4px 4px; }
  .ln-credit .credit { justify-content: center; font-size: 12px; }
  .ln-credit .credit-rights { order: 9; flex-basis: 100%; text-align: center; margin-top: 2px; }   /* its own line, under the credit */
  .ln-credit .rights-sep { display: none; }
}

/* pages other than «منطقة التفويج مباشر» carry no brand block: the page's name is the title */
.mast:not(.mast--slim) h1 { font-size: clamp(28px, 3.1vw, 44px); font-weight: 800; }
.mast:not(.mast--slim) .mast-body { gap: 10px; }
@media (max-width: 700px) {
  :root:not([data-design="classic"]) .mast:not(.mast--slim) h1 { font-size: 24px; }
  :root:not([data-design="classic"]) .mast:not(.mast--slim) .mast-body { padding-top: 44px; }
}
