/* ════════════════════════════════════════════════════════════════════════════
   v7.css — the shell of v7: one token set, one type scale, one component kit, then the screens
   (SPEC-shell-and-builder-26sep2026.md v0.3, Part 0 and Part A; the mockup ux-mockup-v2-26sep2026.html is the reference rendering).
   Everything here lives under the root `.s7`, which the new shell mounts only when the organisation's setting `ui.shell` is «v7»
   (or `?shell=v7` on the local server). The old stylesheets stay for the screens not yet rebuilt; nothing here reaches them.
   Light is the default; dark redefines the same names under [data-theme="dark"] and, for «النظام», under prefers-color-scheme.
   No `left`/`right` in new rules: logical properties only (0.4). Every phone rule is a container query on the frame (0.3).
   ══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════ 0.1 the tokens ═══════════════ */
/* on the root — and on the body while the shell is up, for the toast that sits beside the root */
.s7,body.s7-on{
  --ground:#EEF2F5;--card:#FFFFFF;--sunk:#F3F6F8;--hover:#E9EFF3;--line:#D9E1E8;--line-2:#C9D3DC;
  --ink:#0E1B2A;--ink-2:#2B3A4A;--mut:#5B6B79;--mut-2:#8593A1;
  --navy:#0E1B2A;--navy-2:#12294A;--teal:#37BAC6;--teal-ink:#106F7A;--teal-soft:#DDF2F4;--on-teal:#06222A;--on-status:#FFFFFF;
  --amber:#B87E17;--amber-bg:#FBEFD9;--amber-ink:#7F5211;
  --green:#2E7D5B;--green-bg:#E3F2EA;--green-ink:#1F6B47;
  --rose:#B3261E;--rose-bg:#F8E3DE;--rose-ink:#8F3128;
  --purple:#5B5F97;--purple-bg:#EDE7F6;
  --shadow:0 10px 28px rgba(9,23,45,.16);--shadow-sm:0 2px 8px rgba(9,23,45,.08);
  --rail-w:248px;--rail-mini:64px;--top-h:52px;--sheet-w:440px;
  --r-s:6px;--r-m:10px;--r-l:14px;
  --ar:'Tajawal',system-ui,-apple-system,'Segoe UI',sans-serif;--en:'Inter','Tajawal',system-ui,-apple-system,'Segoe UI',sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .s7,:root:not([data-theme="light"]) body.s7-on{
  color-scheme:dark;
  --ground:#0F151C;--card:#1A2431;--sunk:#151D27;--hover:#223040;--line:#2C3A49;--line-2:#3A4A5C;
  --ink:#E4EBF2;--ink-2:#C7D2DD;--mut:#9FAFBE;--mut-2:#71818F;
  --navy:#1E2F4B;--navy-2:#2F4D7D;--teal-ink:#6FD3DD;--teal-soft:#123A3F;--on-teal:#06222A;--on-status:#0F151C;
  --amber:#E0A34A;--amber-bg:#3B2A12;--amber-ink:#F5C98A;--green:#4CC38A;--green-bg:#14301F;--green-ink:#8FE0B5;
  --rose:#F08A78;--rose-bg:#3D1D1D;--rose-ink:#F4A9A0;--purple:#B9A3E6;--purple-bg:#2A2140;
  --shadow:0 10px 28px rgba(0,0,0,.5);--shadow-sm:0 2px 8px rgba(0,0,0,.35);
}}
:root[data-theme="dark"] .s7,:root[data-theme="dark"] body.s7-on{
  color-scheme:dark;
  --ground:#0F151C;--card:#1A2431;--sunk:#151D27;--hover:#223040;--line:#2C3A49;--line-2:#3A4A5C;
  --ink:#E4EBF2;--ink-2:#C7D2DD;--mut:#9FAFBE;--mut-2:#71818F;
  --navy:#1E2F4B;--navy-2:#2F4D7D;--teal-ink:#6FD3DD;--teal-soft:#123A3F;--on-teal:#06222A;--on-status:#0F151C;
  --amber:#E0A34A;--amber-bg:#3B2A12;--amber-ink:#F5C98A;--green:#4CC38A;--green-bg:#14301F;--green-ink:#8FE0B5;
  --rose:#F08A78;--rose-bg:#3D1D1D;--rose-ink:#F4A9A0;--purple:#B9A3E6;--purple-bg:#2A2140;
  --shadow:0 10px 28px rgba(0,0,0,.5);--shadow-sm:0 2px 8px rgba(0,0,0,.35);
}

/* ═══════════════ the root and the old chrome ═══════════════ */
/* the new shell owns the viewport: the old top bar, header, hero, footer and floating assistant are hidden while it is on */
body.s7-on{background:var(--ground);overflow:hidden}
body.s7-on>.topbar,body.s7-on>header.site,body.s7-on>#main,body.s7-on>footer.site,body.s7-on #asstBtn,body.s7-on #asstPanel:not(.on),body.s7-on .side-rail{display:none!important}
/* …but a step's assistant, once opened («افتح المساعد», or by itself on a step that carries one), shows over the shell: hidden with the rest, it
   opened to nothing (20 Nov 2026, fusion decision 867, F18 — the 11 Nov fault: #asstPanel «on» and display:none) */
body.s7-on #asstPanel.on{display:flex!important}
/* …beside the shell, not over it, where there is room: the shell gives the panel its side, as the old page's body did (rail-open) */
@media (min-width:1024px){body.s7-on.rail-open .s7{inset-inline-end:400px}}
body.s7-on #wfToast{inset-inline:0;margin-inline:auto;width:max-content;bottom:22px;transform:none;background:var(--navy);color:#fff;padding:9px 16px;border-radius:10px;font-size:13px;font-weight:600;box-shadow:var(--shadow);max-width:min(70vw,560px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:opacity .2s}
/* the root is the frame (a container for the phone's queries); the shell inside it is the grid of the rail and the main column */
.s7{position:fixed;inset:0;z-index:50;background:var(--ground);color:var(--ink);font-family:var(--ar);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased;container:frame / inline-size;overflow:hidden}
.s7 .shell{position:absolute;inset:0;display:grid;grid-template-columns:var(--rail-w) minmax(0,1fr);height:100%}
.s7.mini .shell{grid-template-columns:var(--rail-mini) minmax(0,1fr)}
.s7.norail .shell{grid-template-columns:minmax(0,1fr)}
.s7.norail .rail{display:none}
.s7.site-mode .shell{display:block;overflow:auto}
body.en .s7,.s7.en{font-family:var(--en);font-size:13.5px}
.s7 *,.s7 *::before,.s7 *::after{box-sizing:border-box}
/* the old site's stylesheet pads every <section> 64 px above and below (chrome.css); the shell's own sections are the kit's — an old page drawn inside the frame (#s7content.legacy) keeps its own */
.s7 #s7content:not(.legacy) section{padding-block:0}
.s7 a{color:var(--teal-ink);text-decoration:none}
.s7 button:not(:where(.work *)),.s7 input:not(:where(.work *)),.s7 select:not(:where(.work *)),.s7 textarea:not(:where(.work *)){font:inherit;color:inherit}
.s7 button:not(:where(.work *)){cursor:pointer;background:none;border:0;padding:0;margin:0;text-align:inherit;line-height:inherit}
.s7 h1:not(:where(.work *)),.s7 h2:not(:where(.work *)),.s7 h3:not(:where(.work *)),.s7 h4:not(:where(.work *)){margin:0;line-height:1.3;text-wrap:balance;color:inherit}
.s7 p:not(:where(.work *)){margin:0}
.s7 :focus-visible{outline:2px solid var(--teal-ink);outline-offset:2px;border-radius:4px}
.s7 .in:focus-within:not(:where(.work *)),.s7 .in input:focus-visible:not(:where(.work *)),.s7 .in textarea:focus-visible:not(:where(.work *)){outline:0}
.s7 svg.i{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:inline-block;vertical-align:middle}
.s7 .num:not(:where(.work *)){font-family:var(--en);font-variant-numeric:tabular-nums}
.s7 .ltr{direction:ltr;unicode-bidi:isolate;font-family:var(--en)}
.s7 [hidden]{display:none!important}
@media (prefers-reduced-motion:reduce){.s7 *,.s7 *::before,.s7 *::after{transition:none!important;animation:none!important}}

/* ═══════════════ 0.2 the type scale ═══════════════ */
.s7 .page-h h1,.s7 h1.t1{font-size:22px;font-weight:800;line-height:1.3}
.s7 .lane-h h2,.s7 h2.t2{font-size:15px;font-weight:800}
.s7 h3.t3,.s7 .card .c-h h3{font-size:14px;font-weight:700}
.s7 .body:not(:where(.work *)){font-size:14px;font-weight:400;line-height:1.6}
.s7 .row .r-t,.s7 .mrow .r-t,.s7 .t-row{font-size:13px;font-weight:600}
.s7 .row .r-m,.s7 .mrow .r-m,.s7 .hint:not(:where(.work *)),.s7 .fh,.s7 .t-meta{font-size:12px;color:var(--mut)}
.s7 .btn:not(:where(.work *)){font-size:13px;font-weight:600}.s7 .btn.sm:not(:where(.work *)){font-size:12.5px}.s7 .btn.xs{font-size:12px}
.s7 .pill:not(:where(.work *)){font-size:12px;font-weight:700}
.s7 .ar-min{font-size:12px}

/* ═══════════════ 0.8 the component kit ═══════════════ */
/* button: pri navy · default outlined · gh ghost teal-ink · teal (the site only) · danger; sizes default / sm / xs; hover, focus, disabled, busy */
.s7 .btn:not(:where(.work *)){display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:7px 14px;border-radius:9px;border:1px solid var(--line-2);background:var(--card);color:var(--ink);font-weight:600;font-size:13px;white-space:nowrap;line-height:1.3;cursor:pointer;text-decoration:none;position:relative;min-height:34px;margin:0;box-shadow:none;transition:background .12s,border-color .12s}
.s7 .btn:hover:not(:where(.work *)){background:var(--hover);color:var(--ink)}
.s7 .btn.pri:not(:where(.work *)){background:var(--navy);border-color:var(--navy);color:#fff}
.s7 .btn.pri:hover:not(:where(.work *)){background:var(--navy-2);border-color:var(--navy-2);color:#fff}
.s7 .btn.teal:not(:where(.work *)){background:var(--teal);border-color:var(--teal);color:var(--on-teal)}
.s7 .btn.teal:hover:not(:where(.work *)){background:#2FA9B4;border-color:#2FA9B4;color:var(--on-teal)}
.s7 .btn.gh:not(:where(.work *)){border-color:transparent;background:transparent;color:var(--teal-ink)}
.s7 .btn.gh:hover:not(:where(.work *)){background:var(--teal-soft);color:var(--teal-ink)}
.s7 .btn.danger{color:var(--rose-ink);border-color:var(--rose)}
.s7 .btn.danger:hover{background:var(--rose-bg)}
.s7 .btn.sm:not(:where(.work *)){padding:5px 10px;font-size:12.5px;border-radius:8px;min-height:30px}
.s7 .btn.xs{padding:3px 8px;font-size:12px;border-radius:7px;min-height:26px}
.s7 .btn[disabled]:not(:where(.work *)),.s7 .btn.disabled{opacity:.5;pointer-events:none}
.s7 .btn.busy:not(:where(.work *)){pointer-events:none}
.s7 .btn.busy svg.i{display:none}
.s7 .btn.busy:not(:where(.work *))::before{content:"";width:13px;height:13px;border-radius:50%;border:2px solid currentColor;border-inline-end-color:transparent;animation:s7spin .8s linear infinite;flex:none}
@keyframes s7spin{to{transform:rotate(360deg)}}
.s7 .btn svg.i{width:15px;height:15px}
/* icon-only tool button (the top bar, card heads): always with an aria-label */
.s7 .t-btn{width:34px;height:34px;border-radius:9px;display:inline-grid;place-items:center;color:var(--mut);position:relative;flex:none;cursor:pointer}
.s7 .t-btn:hover{background:var(--hover);color:var(--ink)}
.s7 .t-btn.on{background:var(--navy);color:#fff}
.s7 .t-btn .n{position:absolute;top:3px;inset-inline-end:2px;background:var(--rose);color:var(--on-status);font-size:9px;border-radius:999px;padding:0 4px;line-height:14px;font-weight:700;font-family:var(--en)}
/* input: a container with an optional leading icon, the input, a trailing unit or icon */
.s7 .in:not(:where(.work *)){display:flex;align-items:center;gap:8px;min-height:38px;padding:6px 11px;border:1px solid var(--line-2);border-radius:9px;background:var(--card);font-size:13.5px;width:100%;text-align:start;color:var(--ink);margin:0;transition:border-color .12s,box-shadow .12s}
.s7 .in:hover:not(:where(.work *)){border-color:var(--mut-2)}
.s7 .in:focus-within:not(:where(.work *)),.s7 .in.focus{border-color:var(--teal-ink);box-shadow:0 0 0 3px var(--teal-soft)}
.s7 .in input:not(:where(.work *)),.s7 .in textarea:not(:where(.work *)){border:0;background:transparent;flex:1;min-width:0;outline:0;padding:0;margin:0;font-size:13.5px;color:var(--ink);box-shadow:none;width:auto;height:auto;line-height:1.5;border-radius:0}
.s7 .in input:not(:where(.work *))::placeholder,.s7 .in textarea:not(:where(.work *))::placeholder{color:var(--mut)}
.s7 .in .ph:not(:where(.work *)){color:var(--mut);flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s7 .in .cv{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s7 .in .tail{color:var(--mut);display:flex;align-items:center;gap:6px;font-size:12px;flex:none}
.s7 .in svg.i{color:var(--mut)}
.s7 .in.err:not(:where(.work *)){border-color:var(--rose)}
.s7 .in.err:focus-within:not(:where(.work *)){box-shadow:0 0 0 3px var(--rose-bg)}
.s7 .in[disabled]:not(:where(.work *)),.s7 .in.disabled{opacity:.5;pointer-events:none;background:var(--sunk)}
.s7 .in.area{align-items:flex-start;min-height:96px}
.s7 .in.area textarea{resize:vertical;min-height:80px;line-height:1.5}
.s7 .in input.num:not(:where(.work *)),.s7 input.num:not(:where(.work *)){direction:ltr;text-align:start;font-family:var(--en);font-variant-numeric:tabular-nums}
/* field: label (+ * required) · control · hint · error under it */
.s7 .f{display:flex;flex-direction:column;gap:5px;min-width:0}
.s7 .f.full{grid-column:1/-1}
.s7 .f label:not(:where(.work *)),.s7 .f .fl{font-size:12.5px;font-weight:700;display:flex;align-items:center;gap:6px;color:var(--ink);margin:0}
.s7 .f label .req:not(:where(.work *)){color:var(--rose)}
.s7 .f .fh{font-size:12px;color:var(--mut)}
.s7 .ferr{font-size:12px;color:var(--rose-ink)}
.s7 .fields{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}
/* bilingual field: two tabs «العربية» · «EN» over one input; the English tab types LTR */
.s7 .bil{display:flex;flex-direction:column}
.s7 .bil .bt:not(:where(.work *)){display:flex;gap:2px;align-self:flex-end;margin-bottom:-1px;position:relative;z-index:1}
.s7 .bil .bt button:not(:where(.work *)){font-size:12px;padding:2px 9px;border:1px solid var(--line-2);border-bottom:0;border-radius:7px 7px 0 0;color:var(--mut);background:var(--sunk);font-weight:700;min-height:22px}
.s7 .bil .bt button.on:not(:where(.work *)){background:var(--card);color:var(--ink)}
.s7 .bil .in:not(:where(.work *)){border-start-end-radius:0}
.s7 .bil .in input[dir="ltr"]:not(:where(.work *)){font-family:var(--en)}
/* select: the input as a button with the value and a caret; opens a searchable list */
.s7 .in.sel:not(:where(.work *)){cursor:pointer}
.s7 .dd{position:absolute;z-index:31;background:var(--card);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);min-width:220px;max-width:min(420px,calc(100cqw - 24px));max-height:280px;display:flex;flex-direction:column;overflow:hidden}
.s7 .dd .dd-q{display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid var(--line)}
.s7 .dd .dd-q input{border:0;outline:0;background:transparent;flex:1;min-width:0;font-size:13px;padding:0;margin:0;box-shadow:none;color:var(--ink)}
.s7 .dd .dd-l{overflow:auto;padding:4px}
.s7 .dd .dd-o{display:flex;align-items:center;gap:8px;width:100%;padding:7px 10px;border-radius:7px;font-size:13px;text-align:start;min-height:34px}
.s7 .dd .dd-o:hover,.s7 .dd .dd-o.sel{background:var(--hover)}
.s7 .dd .dd-o.on{color:var(--teal-ink);font-weight:700}
.s7 .dd .dd-e{padding:12px;color:var(--mut);font-size:12.5px;text-align:center}
/* people picker: avatar + name + role */
.s7 .av{width:28px;height:28px;border-radius:50%;background:var(--teal);color:var(--on-teal);display:inline-grid;place-items:center;font-weight:700;font-size:12px;flex:none;overflow:hidden;font-family:var(--ar)}
.s7 .av{position:relative}
.s7 .av img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}   /* over the initial, which shows if it does not load */
.s7 .av.n{background:var(--navy);color:#fff}.s7 .av.p{background:var(--purple);color:var(--on-status)}.s7 .av.a{background:var(--amber-ink);color:var(--on-status)}.s7 .av.g{background:var(--green);color:var(--on-status)}.s7 .av.t{background:var(--teal-ink);color:var(--on-status)}
.s7 .pp{display:flex;align-items:center;gap:7px;flex:1;min-width:0}
.s7 .pp .av{width:22px;height:22px;font-size:10px}
.s7 .pp .who{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s7 .pp .role{color:var(--mut);font-size:12px;white-space:nowrap}
/* tags: chips in the input and an inline input; × removes */
.s7 .tags{display:flex;flex-wrap:wrap;gap:5px;flex:1;min-width:0}
.s7 .tag:not(:where(.work *)){display:inline-flex;align-items:center;gap:4px;background:var(--sunk);border-radius:6px;padding:1px 7px;font-size:12px;color:var(--ink)}
.s7 .tag i:not(:where(.work *)),.s7 .tag button:not(:where(.work *)){font-style:normal;color:var(--mut);cursor:pointer;min-width:18px;min-height:18px;display:inline-grid;place-items:center}
.s7 .tags input{min-width:60px;flex:1}
/* rich text: a toolbar over the area */
.s7 .rtb{display:flex;gap:2px;padding:4px;border:1px solid var(--line-2);border-bottom:0;border-radius:9px 9px 0 0;background:var(--sunk)}
.s7 .rtb button{width:28px;height:26px;border-radius:6px;display:grid;place-items:center;color:var(--mut);font-weight:700;font-size:12px}
.s7 .rtb button:hover{background:var(--hover);color:var(--ink)}
.s7 .rtb+.in{border-start-start-radius:0;border-start-end-radius:0}
.s7 .in .rich:not(:where(.work *)){flex:1;min-width:0;min-height:80px;outline:0;line-height:1.55;font-size:13.5px}
/* file drop, and the files list */
.s7 .drop{border:1.5px dashed var(--line-2);border-radius:10px;padding:14px;text-align:center;color:var(--mut);font-size:12.5px;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;min-height:44px;position:relative}
.s7 .drop:hover,.s7 .drop.over{border-color:var(--teal-ink);background:var(--teal-soft);color:var(--teal-ink)}
.s7 .drop input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.s7 .drop.up{border-style:solid}
.s7 .drop .bar{position:absolute;inset-inline:0;bottom:0;height:3px;background:var(--teal-ink);border-radius:0 0 10px 10px}
.s7 .drop.err{border-color:var(--rose);color:var(--rose-ink)}
.s7 .files{display:flex;flex-direction:column;gap:6px}
.s7 .file{display:flex;align-items:center;gap:8px;font-size:12.5px;padding:6px 8px;border-radius:8px;border:1px solid var(--line);color:var(--ink)}
.s7 .file .fn{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
.s7 .file small{color:var(--mut);font-family:var(--en)}
/* switch */
.s7 .sw{width:40px;height:22px;border-radius:999px;background:var(--line-2);position:relative;transition:background .15s;flex:none;cursor:pointer;display:inline-block;padding:0;border:0}
.s7 .sw::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s;box-shadow:var(--shadow-sm)}
.s7 .sw.on,.s7 .sw[aria-checked="true"]{background:var(--teal-ink)}
.s7 .sw.on::after,.s7 .sw[aria-checked="true"]::after{transform:translateX(-18px)}
[dir="ltr"] .s7 .sw.on::after,[dir="ltr"] .s7 .sw[aria-checked="true"]::after{transform:translateX(18px)}
/* segmented: 2–3 buttons in a sunken track, one on */
.s7 .seg{display:inline-flex;background:var(--sunk);border:1px solid var(--line);border-radius:9px;padding:2px;gap:0;vertical-align:middle}
.s7 .seg button{padding:4px 12px;border-radius:7px;font-size:12.5px;color:var(--mut);font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:28px;white-space:nowrap}
.s7 .seg button.on,.s7 .seg button[aria-checked="true"]{background:var(--card);color:var(--ink);box-shadow:var(--shadow-sm)}
.s7 .seg.grow{display:flex}.s7 .seg.grow button{flex:1}
/* chip: on navy · q quiet */
.s7 .chip:not(:where(.work *)){display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;border:1px solid var(--line-2);font-size:12px;color:var(--ink-2);background:var(--card);line-height:1.5;white-space:nowrap;min-height:26px;margin:0}
.s7 .chip:hover:not(:where(.work *)){background:var(--hover)}
.s7 .chip.on:not(:where(.work *)){background:var(--navy);color:#fff;border-color:var(--navy)}
.s7 .chip.ok:not(:where(.work *)){background:var(--green-bg);color:var(--green-ink);border-color:transparent}
/* the keys (decision 81): a key still in Cloudflare that the worker no longer needs there says so in amber */
.s7 .set-row small.warn{color:var(--amber-ink);font-weight:600}
.s7 .set-row code{font-size:12.5px}
.s7 #s7keys{margin-top:14px;border-top:1px solid var(--line);padding-top:10px}.s7 #s7keys .set-sub{display:flex;align-items:center;gap:6px;font-size:14px;margin:4px 0 6px}
.s7 .chip.q{background:var(--sunk);border-color:transparent;color:var(--mut)}
/* pill: status only, never a button */
.s7 .pill:not(:where(.work *)){display:inline-flex;align-items:center;gap:5px;padding:1px 9px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.6;background:var(--sunk);color:var(--mut);white-space:nowrap;margin:0}
.s7 .pill .d:not(:where(.work *)){width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}
.s7 .pill.wait:not(:where(.work *)){background:var(--amber-bg);color:var(--amber-ink)}.s7 .pill.run:not(:where(.work *)){background:var(--teal-soft);color:var(--teal-ink)}.s7 .pill.done:not(:where(.work *)){background:var(--green-bg);color:var(--green-ink)}.s7 .pill.late{background:var(--rose-bg);color:var(--rose-ink)}.s7 .pill.info{background:var(--purple-bg);color:var(--purple)}
/* tabs */
.s7 .tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin-bottom:14px;overflow-x:auto;scrollbar-width:none}
.s7 .tabs button,.s7 .tabs a{padding:8px 12px;font-size:13px;color:var(--mut);border-bottom:2px solid transparent;margin-bottom:-1px;font-weight:600;white-space:nowrap;min-height:38px;display:inline-flex;align-items:center;gap:6px;background:none;border-top:0;border-inline:0;border-radius:0}
.s7 .tabs button.on,.s7 .tabs a.on{color:var(--ink);border-color:var(--teal-ink)}
.s7 .tabs .badge{margin-inline-start:2px}
/* card */
.s7 .card:not(:where(.work *)){background:var(--card);border:1px solid var(--line);border-radius:var(--r-l);box-shadow:none;padding:0;margin:0;color:var(--ink);min-width:0}
.s7 .card .c-h{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line);margin:0}
.s7 .card .c-h h3{font-size:14px;font-weight:700;flex:1;margin:0;letter-spacing:0}
.s7 .card .c-b{padding:14px 16px}
.s7 .hint:not(:where(.work *)){font-size:12px;color:var(--mut)}
/* table: sunken head, 8px cells, hover rows; wide tables scroll on the phone */
.s7 .tblw{overflow-x:auto;-webkit-overflow-scrolling:touch}
.s7 .tbl:not(:where(.work *)){width:100%;border-collapse:collapse;font-size:13px;margin:0}
.s7 .tbl th:not(:where(.work *)){font-size:12px;color:var(--mut);font-weight:700;text-align:start;padding:8px 10px;border-bottom:1px solid var(--line);background:var(--sunk);white-space:nowrap}
.s7 .tbl th button:not(:where(.work *)){color:inherit;font:inherit;display:inline-flex;align-items:center;gap:4px;min-height:24px}
.s7 .tbl th.on button:not(:where(.work *)){color:var(--ink)}
.s7 .tbl td:not(:where(.work *)){padding:8px 10px;border-bottom:1px solid var(--line);vertical-align:middle;white-space:nowrap;color:var(--ink)}
.s7 .tbl td.wrap{white-space:normal}
.s7 .tbl tr:last-child td:not(:where(.work *)){border-bottom:0}
.s7 .tbl tr[data-go]:hover td:not(:where(.work *)),.s7 .tbl tr.go:hover td:not(:where(.work *)){background:var(--hover);cursor:pointer}
.s7 .tbl .id,.s7 .id{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11.5px;color:var(--mut);direction:ltr;unicode-bidi:isolate;display:inline-block}
/* row (Today): app dot · title + meta · age/due · the primary action — always visible (no hover-only affordance) */
.s7 .rows{display:flex;flex-direction:column;gap:6px}
.s7 .row:not(:where(.work *)){display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;border-radius:12px;background:var(--card);border:1px solid var(--line);cursor:pointer;text-align:start;width:100%;color:var(--ink);margin:0}
.s7 .row:hover:not(:where(.work *)){border-color:var(--line-2);box-shadow:var(--shadow-sm)}
.s7 .row.sel:not(:where(.work *)){border-color:var(--teal-ink);box-shadow:0 0 0 2px var(--teal-soft)}
.s7 .row .ad,.s7 .ad{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:13px;flex:none;font-family:var(--ar)}
.s7 .row>span:not(:where(.work *)){min-width:0}
.s7 .row .r-t{display:block;font-weight:700;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}
.s7 .row .r-m{display:block;font-size:12px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
.s7 .row .r-m b{color:var(--ink-2);font-weight:600}
.s7 .row .r-end{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.s7 .row .age{font-size:12px;color:var(--mut);white-space:nowrap}
.s7 .row .age.late{color:var(--rose-ink);font-weight:700}
/* mini row: dot · title · pill · avatar · meta */
.s7 .mini-rows{display:flex;flex-direction:column;gap:2px}
.s7 .mrow{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:9px;cursor:pointer;width:100%;text-align:start;color:var(--ink);margin:0;min-height:40px}
.s7 .mrow:hover{background:var(--hover)}
.s7 .mrow .r-t{font-weight:600;font-size:13px;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s7 .mrow .r-m{font-size:12px;color:var(--mut);white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}   /* the row's end gives way before its title does */
.s7 .mrow .r-m.age{flex:none;overflow:visible}   /* …but an age is a word or two: whole, never «T..» (lane v7-check's run 13, § 2 row 2) */
.s7 .mrow .mt{flex:1;min-width:0}   /* a row's title takes the room its pill leaves, and wraps there — not a word a line (S-22) */
/* a long step's pill wraps and gives the title its room — the title keeps a third of the row (report run 12, § 2 row 4) */
.s7 .mrow .pill{white-space:normal;max-width:45%;text-align:start}
.s7 .mrow .r-t{min-width:33%}
.s7 .tm{width:auto;min-width:48px;white-space:nowrap;flex:none;font-size:12px;color:var(--mut);font-family:var(--en);font-variant-numeric:tabular-nums}   /* a time, or a date when the record has no hour: on one line (report run 12, § 2 row 4) */
/* dots and badges */
.s7 .dot{width:22px;height:22px;border-radius:7px;color:#fff;font-size:11px;display:inline-grid;place-items:center;font-weight:700;flex:none;font-family:var(--ar)}
.s7 .dot.sm{width:18px;height:18px;border-radius:5px;font-size:10px}
.s7 .badge:not(:where(.work *)){background:var(--rose);color:var(--on-status);font-size:10.5px;border-radius:999px;padding:1px 6px;font-weight:700;line-height:15px;min-width:17px;text-align:center;font-family:var(--en);display:inline-block}
.s7 .badge.q{background:var(--sunk);color:var(--mut)}
.s7 .kbd{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;border:1px solid var(--line);border-radius:4px;padding:0 5px;direction:ltr;color:var(--mut);line-height:16px;display:inline-block;background:transparent}
/* empty: says what will appear here */
.s7 .empty:not(:where(.work *)){border:1px dashed var(--line-2);border-radius:var(--r-l);padding:30px;text-align:center;color:var(--mut);font-size:13px;background:transparent;font-style:normal}
.s7 .empty b:not(:where(.work *)){display:block;color:var(--ink);margin-bottom:4px}
/* key/value list */
.s7 .kv{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;font-size:13px;margin:0}
.s7 .kv dt{color:var(--mut);white-space:nowrap}
.s7 .kv dd{margin:0;font-weight:600;min-width:0;overflow-wrap:anywhere}
/* progress strip: one .st per step — number or check · who/when · name · meta; done / now / wait */
.s7 .strip:not(:where(.work *)){display:flex;gap:6px;overflow-x:auto;padding:2px 0 6px;margin-bottom:16px;scrollbar-width:thin}
.s7 .st:not(:where(.work *)){flex:1;min-width:130px;padding:8px 10px;border-radius:10px;border:1px solid var(--line);background:var(--card);display:flex;flex-direction:column;gap:3px;text-align:start;position:relative;color:var(--ink)}
.s7 .st .n:not(:where(.work *)){font-size:12px;color:var(--mut);display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s7 .st .n i:not(:where(.work *)){width:18px;height:18px;border-radius:50%;border:1.5px solid var(--line-2);display:inline-grid;place-items:center;font-style:normal;font-size:11px;font-weight:700;flex:none;font-family:var(--en)}
.s7 .st b:not(:where(.work *)){font-size:12.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s7 .st small:not(:where(.work *)){font-size:12px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s7 .st.done .n i:not(:where(.work *)){background:var(--green);border-color:var(--green);color:var(--on-status)}
.s7 .st.now:not(:where(.work *)){border-color:var(--teal-ink);background:var(--teal-soft)}.s7 .st.now .n i:not(:where(.work *)){background:var(--teal-ink);border-color:var(--teal-ink);color:var(--on-status)}
.s7 .st.now .n:not(:where(.work *)){color:var(--teal-ink)}
.s7 .st.wait:not(:where(.work *)){border-style:dashed;background:transparent}   /* a step still to come: its border, never its words faded (C-01; was opacity .85 — 3.98:1) */
/* a finished step opens what was entered in it (14 Oct 2026, decision 153 #4): a button over the whole box, its ring on the box; the step read is pressed */
.s7 .st:has(> .st-go):not(:where(.work *)):hover{border-color:var(--teal-ink)}
.s7 .st .st-go:not(:where(.work *)){position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:inherit;background:transparent;cursor:pointer;color:inherit}
.s7 .st .st-go:not(:where(.work *)):focus-visible{outline:2px solid var(--teal-ink);outline-offset:2px}
.s7 .st:has(> .st-go[aria-pressed="true"]):not(:where(.work *)){border-color:var(--teal-ink);box-shadow:inset 0 0 0 1px var(--teal-ink)}
/* the finished step read above the open one: its card, and the linked records' side card, whose old list does not repeat the card's title */
.s7 .s7view .c-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.s7 .s7links .related .relhd>b{display:none}
/* sheet: a side panel from the inline end — head, body, action bar */
.s7 .scrim{position:absolute;inset:0;background:rgba(9,23,45,.35);z-index:20;backdrop-filter:blur(2px)}
.s7 .scrim.clear{background:transparent;backdrop-filter:none}
.s7 .sheet{position:absolute;top:0;bottom:0;inset-inline-end:0;width:var(--sheet-w);max-width:100%;background:var(--card);border-inline-start:1px solid var(--line);box-shadow:var(--shadow);z-index:22;display:flex;flex-direction:column;color:var(--ink)}
.s7 .sheet .sh-h{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line)}
.s7 .sheet .sh-h h3{font-size:15px;font-weight:800;flex:1;min-width:0}
.s7 .sheet .sh-b{flex:1;overflow:auto;padding:14px 16px;display:flex;flex-direction:column;gap:12px}
.s7 .d-act{display:flex;gap:8px;padding:12px 16px;border-top:1px solid var(--line);background:var(--card);flex-wrap:wrap;align-items:center}
.s7 .d-act .sp,.s7 .sp:not(:where(.work *)){flex:1}
.s7 .saved{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--green-ink)}
.s7 .saved .d{width:7px;height:7px;border-radius:50%;background:var(--green)}
.s7 .saved.busy{color:var(--mut)}.s7 .saved.busy .d{background:var(--mut-2)}
/* popover (notifications) and menu (the account) */
.s7 .pop:not(:where(.work *)){position:absolute;z-index:21;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);width:380px;max-width:calc(100% - 24px);top:calc(var(--top-h) + 6px);inset-inline-end:12px;overflow:hidden;color:var(--ink)}
.s7 .pop .pp-h{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line)}
.s7 .pop .pp-h h3{font-size:14px;font-weight:800;flex:1}
.s7 .pop .pp-b{max-height:60vh;overflow:auto;padding:6px}
.s7 .pop .p-f{display:flex;gap:10px;padding:8px 12px;border-top:1px solid var(--line);font-size:12px;color:var(--mut);align-items:center}
.s7 .menu{position:absolute;z-index:21;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);width:300px;max-width:calc(100% - 24px);padding:6px;top:52px;inset-inline-end:12px;max-height:calc(100% - 64px);overflow:auto;color:var(--ink)}
.s7 .menu .me-h{display:flex;align-items:center;gap:10px;padding:8px 8px 10px;border-bottom:1px solid var(--line);margin-bottom:4px}
.s7 .menu .me-h .av{width:36px;height:36px;font-size:14px}
.s7 .menu .me-h>div{min-width:0;flex:1}
.s7 .menu .me-h b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s7 .menu .me-h small{display:block;color:var(--mut);font-size:12px;direction:ltr;text-align:start;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:var(--en)}
.s7 .menu a,.s7 .menu button.mi{display:flex;align-items:center;gap:9px;padding:8px 9px;border-radius:8px;font-size:13px;color:var(--ink);width:100%;text-align:start;min-height:36px}
.s7 .menu a:hover,.s7 .menu button.mi:hover{background:var(--hover)}
.s7 .menu .mseg{display:flex;flex-direction:column;gap:5px;padding:8px 8px}
.s7 .menu .mseg>span{font-size:12px;color:var(--mut);display:flex;align-items:center;gap:6px}
.s7 .menu .track{display:flex;background:var(--sunk);border:1px solid var(--line);border-radius:9px;padding:2px}
.s7 .menu .track button{flex:1;padding:5px 6px;border-radius:7px;font-size:12px;color:var(--mut);font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px}
.s7 .menu .track button.on,.s7 .menu .track button[aria-checked="true"]{background:var(--card);color:var(--ink);box-shadow:var(--shadow-sm)}
.s7 .menu .sep{height:1px;background:var(--line);margin:5px 4px}
.s7 .menu.scope{top:8px;bottom:auto;inset-inline-start:8px;max-height:calc(100% - 16px);overflow:auto}
.s7 .menu.scope .r-it{min-height:38px}
.s7 .r-tiny{font-size:12px;color:var(--mut);padding:2px 10px 4px;line-height:1.45}
.s7.mini .r-tiny{display:none}
/* palette */
.s7 .pal{position:absolute;top:12%;inset-inline-start:50%;transform:translateX(-50%);width:min(640px,92%);background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);z-index:21;overflow:hidden;display:flex;flex-direction:column;max-height:76%;color:var(--ink)}
[dir="rtl"] .s7 .pal{transform:translateX(50%)}
.s7 .pal .p-in{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line)}
.s7 .pal .p-in input{flex:1;border:0;outline:0;background:transparent;font-size:15px;min-width:0;padding:0;margin:0;box-shadow:none;color:var(--ink)}
.s7 .pal .p-in svg.i{color:var(--mut)}
.s7 .pal .modes{display:flex;gap:4px;padding:8px 12px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none;flex:none}
.s7 .pal .modes .chip{padding:4px 12px;font-size:12.5px}
.s7 .pal .p-b{overflow:auto;padding:6px 8px;flex:1}
.s7 .pal .p-g{font-size:12px;color:var(--mut);padding:8px 8px 4px;letter-spacing:.04em}
.s7 .pal .p-r{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:9px;cursor:pointer;width:100%;text-align:start;color:var(--ink);min-height:40px}
.s7 .pal .p-r:hover,.s7 .pal .p-r.sel{background:var(--hover)}
.s7 .pal .p-r .ic{width:26px;height:26px;border-radius:7px;background:var(--sunk);display:grid;place-items:center;color:var(--mut);flex:none;overflow:hidden}
.s7 .pal .p-r .t{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13.5px;font-weight:600}
.s7 .pal .p-r .m{color:var(--mut);font-size:12px;white-space:nowrap}
.s7 .pal .p-f{display:flex;gap:14px;padding:8px 14px;border-top:1px solid var(--line);font-size:12px;color:var(--mut);flex-wrap:wrap}
.s7 .ask{margin:6px 8px;padding:12px;border-radius:10px;background:var(--teal-soft);font-size:13px;color:var(--ink)}
.s7 .ask b{display:block;margin-bottom:4px;color:var(--teal-ink)}
.s7 .ask .acts{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
/* a start with the model's reason after it is a long line: it wraps inside the answer's box (TASK 2499; TASK 2476's second piece) */
.s7 .ask .acts .btn{max-width:100%;height:auto;white-space:normal;text-align:start;line-height:1.5}
/* tooltip: the folded rail only */
.s7 .tip{position:absolute;z-index:30;pointer-events:none;background:var(--navy);color:#fff;font-size:12px;font-weight:600;padding:5px 9px;border-radius:7px;white-space:nowrap;box-shadow:var(--shadow-sm);opacity:0;transition:opacity .1s;font-family:var(--ar)}
.s7 .tip.on{opacity:1}
/* step note (the detail pane) */
.s7 .step-note{background:var(--sunk);border-radius:10px;padding:10px 12px;font-size:13px}
.s7 .step-note b{display:block;margin-bottom:2px}
/* page head */
.s7 .page-h{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.s7 .page-h h1{font-size:22px;font-weight:800}
.s7 .page-h .sub{color:var(--mut);font-size:13px;margin-top:2px}
.s7 .page-h .tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.s7 .page-h .tools .in.sel.sm{min-height:34px}
/* tiles (spaces, services, branches) */
.s7 .tiles:not(:where(.work *)){display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.s7 .tile:not(:where(.work *)){background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:8px;color:var(--ink);cursor:pointer;text-align:start;transition:border-color .15s,box-shadow .15s,transform .15s;margin:0;min-width:0}
.s7 .tile:hover:not(:where(.work *)){border-color:var(--teal-ink);box-shadow:var(--shadow-sm);transform:translateY(-2px)}
.s7 .tile .ti{width:38px;height:38px;border-radius:10px;background:var(--teal-soft);color:var(--teal-ink);display:grid;place-items:center;flex:none}
.s7 .tile h3:not(:where(.work *)){font-size:15px;font-weight:800;overflow-wrap:anywhere}
.s7 .tile p:not(:where(.work *)){margin:0;font-size:12.5px;color:var(--mut);line-height:1.5}
.s7 .tile .facts{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
.s7 .tile .facts span{font-size:12px;color:var(--mut);background:var(--sunk);padding:2px 8px;border-radius:999px}
.s7 .tile .cat:not(:where(.work *)){font-size:12px;color:var(--teal-ink);font-weight:700;background:var(--teal-soft);padding:2px 8px;border-radius:999px;align-self:flex-start}
/* starts (Today's «ابدأ» lane, an app's services) */
.s7 .starts{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.s7 .start{display:flex;align-items:center;gap:9px;padding:10px 12px;border-radius:11px;border:1px dashed var(--line-2);background:var(--card);text-align:start;font-weight:600;font-size:13px;color:var(--ink);min-height:44px;margin:0}
.s7 .start:hover{border-style:solid;border-color:var(--teal-ink);background:var(--teal-soft)}
.s7 .start .dot{width:24px;height:24px;border-radius:7px}
.s7 .start>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* timeline (activity) */
.s7 .tl{display:flex;flex-direction:column;gap:0;position:relative}
.s7 .tl-i{display:grid;grid-template-columns:22px 1fr;gap:8px;padding:4px 0 12px;position:relative}
.s7 .tl-i::before{content:"";position:absolute;inset-inline-start:10px;top:22px;bottom:-2px;width:2px;background:var(--line)}
.s7 .tl-i:last-child::before{display:none}
.s7 .tl-i .dt{width:22px;height:22px;border-radius:50%;background:var(--sunk);display:grid;place-items:center;color:var(--mut)}
.s7 .tl-i .dt svg.i{width:12px;height:12px}
.s7 .tl-i .dt.ok{background:var(--green-bg);color:var(--green-ink)}
.s7 .tl-i p{margin:0;font-size:12.5px}
.s7 .tl-i p b{font-weight:600}
.s7 .tl-i small{display:block;color:var(--mut);font-size:12px}
/* people (side card) */
.s7 .people:not(:where(.work *)){display:flex;flex-direction:column;gap:8px}
.s7 .person:not(:where(.work *)){display:flex;flex-direction:row;align-items:center;text-align:start;gap:9px;font-size:13px;padding:0;border:0;background:none;box-shadow:none;border-radius:0;transform:none}
.s7 .person:hover:not(:where(.work *)){box-shadow:none;transform:none}
.s7 .person .av{width:26px;height:26px;font-size:11px}
.s7 .person b:not(:where(.work *)){display:block;font-weight:600}
.s7 .person small:not(:where(.work *)){display:block;color:var(--mut);font-size:12px}
/* swatches */
.s7 .swatches{display:flex;gap:6px}
.s7 .swatches button{width:24px;height:24px;border-radius:7px;border:2px solid transparent;cursor:pointer;padding:0}
.s7 .swatches button.on{border-color:var(--ink)}
/* a quiet notice line */
.s7 .notice{background:var(--sunk);border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:12.5px;color:var(--mut)}
.s7 .notice.warn{background:var(--amber-bg);border-color:transparent;color:var(--amber-ink)}
.s7 .notice.err{background:var(--rose-bg);border-color:transparent;color:var(--rose-ink)}


/* ═══════════════ S-02 Today: the lanes and the detail pane ═══════════════ */
.s7 .today:not(:where(.work *)){display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,38%);gap:16px;align-items:start}
.s7 .lane{margin-bottom:22px}
.s7 .lane-h{display:flex;align-items:center;gap:8px;margin:0 0 8px;flex-wrap:wrap}
.s7 .lane-h h2{font-size:15px;font-weight:800}
.s7 .lane-h .cnt{color:var(--mut);font-size:12.5px;font-weight:600}
.s7 .lane-h .sp{flex:1}
.s7 .detail{position:sticky;top:0;background:var(--card);border:1px solid var(--line);border-radius:var(--r-l);overflow:hidden;max-height:calc(100cqh - 52px - 44px);display:flex;flex-direction:column}
.s7 .detail .d-h{padding:14px 16px 10px;border-bottom:1px solid var(--line)}
.s7 .detail .d-r1{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.s7 .detail .d-h .id{font-size:11.5px;color:var(--mut);font-family:ui-monospace,Menlo,monospace;direction:ltr;display:inline-block;background:var(--sunk);padding:2px 8px;border-radius:6px}
.s7 .detail .d-h h3{font-size:16px;font-weight:800;margin:6px 0 6px;overflow-wrap:anywhere}
.s7 .detail .d-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.s7 .detail .d-b{padding:14px 16px;display:flex;flex-direction:column;gap:14px;overflow:auto;min-height:0}
.s7 .detail .d-act{flex:none}
.s7 .detail .kv dd.ferr{color:var(--rose-ink)}
/* S-02's three views (Ahmed, 29 Sep): «حسب المساحة» and «التقويم» take the page across — the detail pane belongs to the list */
.s7 .today.wide:not(:where(.work *)){grid-template-columns:minmax(0,1fr)}
.s7 .lane-h .lane-a{font-size:12.5px;font-weight:700;color:var(--teal-ink);padding:2px 6px;border-radius:6px}
.s7 .lane-h .lane-a:hover{background:var(--teal-soft)}
/* the board: one column per space; a card's title opens the record, its button acts as the row's does */
.s7 .board:not(:where(.work *)){display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;align-items:start}
.s7 .bcol{background:var(--sunk);border:1px solid var(--line);border-radius:var(--r-l);padding:10px;display:flex;flex-direction:column;gap:8px;min-width:0}
.s7 .bcol-h{display:flex;align-items:center;gap:8px;font-weight:800;font-size:13.5px;padding:2px 2px 4px}
.s7 .bcol-h .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.s7 .bcol-h .cnt{font-size:12px;color:var(--mut);font-weight:700}
.s7 .bcard{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:4px;min-width:0}
.s7 .bcard:hover{border-color:var(--line-2);box-shadow:var(--shadow-sm)}
.s7 .bcard .bc-t{font-weight:700;font-size:13.5px;color:var(--ink);overflow-wrap:anywhere}
.s7 .bcard .bc-t:hover{text-decoration:underline}
.s7 .bcard .bc-m{font-size:12px;color:var(--mut)}
.s7 .bcard .bc-m b{color:var(--ink-2);font-weight:600}
.s7 .bcard .bc-e{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:2px}
.s7 .bcard .bc-e .sp{flex:1}
.s7 .bcard .age{font-size:12px;color:var(--mut);white-space:nowrap}
.s7 .bcard .age.late{color:var(--rose-ink);font-weight:700}
.s7 .bcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:8px}
/* the week: Sunday to Saturday, today marked; what waits for the person marked by a bar and its step's name */
.s7 .week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;align-items:stretch}
.s7 .week .day{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:6px;min-height:150px;min-width:0}
.s7 .week .day.is-today{border-color:var(--teal-ink);box-shadow:0 0 0 2px var(--teal-soft)}
.s7 .week .dh{display:flex;flex-direction:column;gap:1px;padding-bottom:4px;border-bottom:1px solid var(--line)}
.s7 .week .dh b{font-size:12.5px;font-weight:800}
.s7 .week .dh span{font-size:12px;color:var(--mut)}
.s7 .week .day.is-today .dh b{color:var(--teal-ink)}
.s7 .dit{display:flex;flex-direction:column;gap:2px;padding:6px 8px;border-radius:8px;background:var(--sunk);color:var(--ink);border-inline-start:3px solid var(--line-2);min-width:0}
.s7 .dit:hover{background:var(--hover)}
.s7 .dit b{font-size:12px;font-weight:700;overflow-wrap:anywhere}
.s7 .dit small{font-size:12px;color:var(--mut);overflow-wrap:anywhere}
.s7 .dit.mine{background:var(--amber-bg);border-inline-start-color:var(--amber)}
.s7 .dit.mine .wt{color:var(--amber-ink);font-weight:700}
.s7 .outwk{margin-top:16px}
/* ─── «التقويم»'s periods (Ahmed, 29 Sep 2026): the bar — ‹ «اليوم» › · the period's name · «الأسبوع · الشهر · الربع · السنة» ─── */
.s7 .cal-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px}
.s7 .cal-nav{display:flex;align-items:center;gap:4px}
.s7 .cal-nav .t-btn{width:34px;height:34px}
.s7 .cal-nav .prev .i{transform:scaleX(-1)}   /* the earlier period lies to the right in Arabic: its arrow points there */
[dir="ltr"] .s7 .cal-nav .prev .i{transform:none}
[dir="ltr"] .s7 .cal-nav .next .i{transform:scaleX(-1)}
.s7 .cal-t{font-size:15px;font-weight:800;margin:0}
.s7 .dit.span{border-inline-start-style:dashed}   /* a record across several days, on each of them */
/* the month: seven columns, Sunday to Saturday, a record's title a line in its day */
.s7 .cal-m .cm-h{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-bottom:6px;font-size:12px;font-weight:700;color:var(--mut);text-align:center}
.s7 .cal-m .dn-s{display:none}
.s7 .cal-m .cm-b{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.s7 .cal-m .cm-d{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:5px;display:flex;flex-direction:column;gap:3px;min-height:104px;min-width:0}
.s7 .cal-m .cm-d.blank{background:transparent;border-color:transparent}
.s7 .cal-m .cm-d.is-today{border-color:var(--teal-ink);box-shadow:0 0 0 2px var(--teal-soft)}
.s7 .cal-m .cm-n{display:flex;align-items:center;justify-content:space-between;gap:4px;width:100%;min-height:24px;padding:0 4px;border-radius:6px;font-size:12.5px;font-weight:700;color:var(--ink-2);background:transparent;border:0;cursor:pointer}
.s7 .cal-m .cm-n:hover{background:var(--hover)}
.s7 .cal-m .cm-d.is-today .cm-n{color:var(--teal-ink)}
.s7 .cal-m .cm-c{display:none;font-size:11px;font-weight:800;color:var(--on-status);background:var(--teal-ink);border-radius:999px;min-width:18px;padding:0 5px;text-align:center}
.s7 .cal-m .dit{padding:3px 6px;gap:0}
.s7 .cal-m .dit b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
.s7 .cal-m .dit small{display:none}
.s7 .cal-m .cm-more{align-self:flex-start;font-size:12px;font-weight:700;color:var(--teal-ink);background:transparent;border:0;padding:2px 6px;cursor:pointer}
/* the quarter: its three months side by side, each a list of its days */
.s7 .cal-q{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
.s7 .cal-q .cq-m{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:6px;min-width:0}
.s7 .cal-q .cq-h{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;min-height:34px;padding:4px 8px;border-radius:8px;font-size:13.5px;font-weight:800;color:var(--ink);background:var(--sunk);border:0;cursor:pointer}
.s7 .cal-q .cq-h:hover{background:var(--hover)}
.s7 .cal-q .cq-d{display:grid;grid-template-columns:28px minmax(0,1fr);gap:6px;align-items:start}
.s7 .cal-q .cq-d>b{font-size:13px;color:var(--mut);text-align:center;padding-top:6px}
.s7 .cal-q .cq-d.is-today>b{color:var(--teal-ink)}
.s7 .cal-q .cq-l{display:flex;flex-direction:column;gap:4px;min-width:0}
.s7 .cal-q .cq-none{margin:4px 8px}
/* the year: twelve months, each its days, a day with records marked; a month opens its month */
.s7 .cal-y{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.s7 .cal-y .cy-m{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:8px;min-width:0}
.s7 .cal-y .cy-m.now{border-color:var(--teal-ink)}
.s7 .cal-y .cy-h{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;min-height:34px;padding:4px 8px;border-radius:8px;font-size:13.5px;font-weight:800;color:var(--ink);background:transparent;border:0;cursor:pointer}
.s7 .cal-y .cy-h:hover{background:var(--hover)}
.s7 .cal-y .cy-g{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;margin-top:4px}
.s7 .cal-y .cy-g i{font-style:normal;font-size:10.5px;text-align:center;line-height:20px;border-radius:5px;color:var(--mut);font-family:var(--en);font-variant-numeric:tabular-nums}
.s7 .cal-y .cy-g i.has{background:var(--teal-soft);color:var(--teal-ink);font-weight:800}
.s7 .cal-y .cy-g i.is-today{outline:2px solid var(--teal-ink);outline-offset:-2px;color:var(--ink)}
.s7 .cal-q .cnt,.s7 .cal-y .cnt{font-size:11.5px;font-weight:700;color:var(--mut);background:var(--sunk);border-radius:999px;padding:0 8px;min-width:22px;text-align:center}
.s7 .outwk h3{font-size:13.5px;font-weight:800;margin:0 0 8px;color:var(--ink-2)}
/* ═══════════════ S-03 notifications: the rows of the popover ═══════════════ */
.s7 .nt{display:grid;grid-template-columns:auto 1fr;gap:10px;padding:9px 10px;border-radius:10px;width:100%;text-align:start;color:var(--ink)}
.s7 .nt:hover{background:var(--hover)}
.s7 .nt .av{width:30px;height:30px;font-size:12px}
.s7 .nt>span{min-width:0}
.s7 .nt .t{font-size:13px;display:block;color:var(--ink);overflow-wrap:anywhere}
.s7 .nt .t b{font-weight:700}
.s7 .nt .m{font-size:12px;color:var(--mut);display:flex;gap:8px;align-items:center;margin-top:2px;flex-wrap:wrap}
.s7 .nt.un .t::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--teal-ink);margin-inline-end:6px;vertical-align:middle}
.s7 .nt .acts{grid-column:2;display:flex;gap:6px;margin-top:6px;flex-wrap:wrap}
/* ═══════════════ S-04 the palette: the space question ═══════════════ */
.s7 .pal.pick{top:22%}
.s7 .pal.pick .p-in b{font-size:15px}
.s7 .pal.pick .start>span{white-space:normal;overflow:visible}   /* the space question names each space whole: two councils can share their first words */

/* ═══════════════ S-05 the record: header, strip, the form on the kit, the side cards ═══════════════ */
.s7 .rec-h{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.s7 .rec-h .r1{display:flex;align-items:center;gap:8px;flex-wrap:wrap;position:relative}
.s7 .rec-h .id{font-family:var(--en);font-size:12px;direction:ltr;display:inline-block;background:var(--sunk);padding:2px 8px;border-radius:6px;color:var(--mut);unicode-bidi:isolate}
/* who the record waits on can be two people and a step's name: the pill wraps inside the head rather than past the screen (S-22) */
.s7 .rec-h .r1 .pill{white-space:normal;max-width:100%;text-align:start}
.s7 .rec-h h1{font-size:22px;font-weight:800;margin:0;line-height:1.35}
.s7 .rec-h .meta{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12.5px;color:var(--mut);align-items:center}
.s7 .rec-h .meta b{color:var(--ink-2);font-weight:600}
.s7 .rec-h .acts{margin-inline-start:auto;display:flex;gap:6px;position:relative}
.s7 .rec-h .acts .t-btn{width:32px;height:32px}
.s7 .rec-h .acts .t-btn.on{color:var(--teal-ink);background:var(--teal-soft)}
.s7 .rec-h .acts .pop,.s7 .rec-h .acts .menu{position:absolute;top:calc(100% + 6px);inset-inline-end:0;inset-inline-start:auto;bottom:auto;z-index:30}
.s7 .rec-h .acts .pop{width:300px;padding:12px}
.s7 .rec-h .acts .pop .qr{display:grid;place-items:center;margin:8px 0}
.s7 .rec-h .acts .pop .url{font-family:var(--en);font-size:11.5px;direction:ltr;text-align:left;background:var(--sunk);border-radius:6px;padding:6px 8px;overflow-wrap:anywhere;color:var(--ink-2)}
.s7 .rec{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}
.s7 .rec>.side{display:flex;flex-direction:column;gap:12px;position:sticky;top:0}
.s7 .side .card .c-b{padding:10px 14px}
.s7 .side details.card>summary:not(:where(.work *)){list-style:none;cursor:default}
.s7 .side details.card>summary:not(:where(.work *))::-webkit-details-marker{display:none}
.s7 .side details.card>summary .c-h{pointer-events:none}
.s7 .form-h{display:flex;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.s7 .form-h h2{font-size:16px;font-weight:800;flex:1;margin:0}
.s7 .form-h .pill{font-size:12px;white-space:normal;max-width:100%;text-align:start}   /* a long «بانتظار …» wraps (S-22) */
.s7 .f-act{position:sticky;bottom:0;display:flex;align-items:center;gap:8px;padding:12px 16px;margin:16px -16px -16px;background:var(--card);border-top:1px solid var(--line);border-radius:0 0 var(--r-l) var(--r-l);flex-wrap:wrap;z-index:5}
.s7 .f-act .sp{flex:1}
.s7 .f-act .hint{font-size:12px;color:var(--mut)}
.s7 .f-act .btn{flex:none}
/* a step verified before it is sent (decision 80): the authenticator's code, or the passkey — on a line of its own under the hint */
.s7 .f-act .f-verify{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.s7 .f-act .f-verify .lead{flex:1 1 100%;font-size:12.5px;color:var(--mut);margin:0}
.s7 .f-act .f-verify .in{min-height:36px;width:150px;flex:none}
.s7 .f-act .f-verify .in input{text-align:center;letter-spacing:.12em}
.s7 .f-act .f-verify .d-say{flex:1 1 100%;color:var(--rose);font-size:12.5px;margin:0}
.s7 .f .in.rng:not(:where(.work *)){gap:6px}
.s7 .f .in.rng input:not(:where(.work *)){flex:1;min-width:0}
.s7 .f .in.rng .dash:not(:where(.work *)){color:var(--mut);flex:none}
/* the kit's date picker and time list (0.8 «Date / range» — 6 Oct 2026, P-37): a date is a select-like button; a range's two halves sit in one
   box without their own frame; the month pops under the field as the other lists do */
.s7 .f .in.sel.date .cv{flex:1;min-width:0;text-align:start}
.s7 .f .in.rng .in.sel:not(:where(.work *)){border:0;box-shadow:none;background:transparent;padding:0 4px;min-height:0;flex:1;width:auto;justify-content:center}
.s7 .f .fwrap.dt{display:flex;gap:8px;flex-wrap:wrap}
.s7 .f .fwrap.dt>.in.sel{flex:1 1 180px;min-width:0}
.s7 .dd.cal{min-width:280px;max-height:none;padding:8px 10px 10px}
.s7 .dd.cal .cal-h{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:6px}
.s7 .dd.cal .cal-h b{flex:1;text-align:center;font-size:13px;font-weight:800}
.s7 .dd.cal .cal-h .t-btn.next .i{transform:scaleX(-1)}
.s7 .dd.cal .cal-w,.s7 .dd.cal .cal-d{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.s7 .dd.cal .cal-w{font-size:12px;font-weight:700;color:var(--mut);text-align:center;margin-bottom:2px}
.s7 .dd.cal .cal-w span{min-height:22px;display:grid;place-items:center}
.s7 .dd.cal .cal-d button{min-height:34px;border-radius:7px;font-size:13px;color:var(--ink);display:grid;place-items:center}
.s7 .dd.cal .cal-d button:hover{background:var(--hover)}
.s7 .dd.cal .cal-d button.is-today{box-shadow:inset 0 0 0 1px var(--teal-ink);color:var(--teal-ink)}
.s7 .dd.cal .cal-d button.on{background:var(--navy);color:var(--on-status)}
.s7 .dd .dd-o.off{color:var(--mut);cursor:not-allowed}
/* a list cell's native select the old renderers keep behind the kit's select (P-11): there for the old suites and the change event, unseen */
.s7 .work select.s7hid{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;overflow:hidden;clip:rect(0 0 0 0)}
.s7 .waits a{color:var(--teal-ink);font-weight:600}
.s7 .f .fwrap{position:relative}
.s7 .f .fwrap .dd{top:calc(100% + 4px);inset-inline-start:0;width:100%;max-width:100%}
.s7 .f .in.sel .pp{flex:1}
.s7 .f .in .tags input{border:0;background:transparent;outline:0;padding:0;margin:0;font-size:13px;box-shadow:none;color:var(--ink);height:22px}
.s7 .f .in.tagbox{flex-wrap:wrap;align-items:center}
.s7 .f .in.tagbox .tail{margin-inline-start:auto}
.s7 .f .drop .fin{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;margin:0}
.s7 .f .files{margin-top:6px}
.s7 .f .file .fn{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
.s7 .f .file small{color:var(--mut);font-family:var(--en)}
.s7 .f .file button{color:var(--mut);min-width:24px;min-height:24px;display:inline-grid;place-items:center;border-radius:6px}
.s7 .f .file button:hover{background:var(--hover);color:var(--rose-ink)}
.s7 .f .file a{color:var(--ink);text-decoration:none;flex:1;min-width:0;display:flex;align-items:center;gap:8px}
/* what the old renderers draw inside the kit (a list of rows, a linked record's picker, a rating) keeps its own styles, framed as a field */
.s7 .f .legacy-in{font-size:13.5px}
.s7 .f .legacy-in select,.s7 .f .legacy-in input[type=text],.s7 .f .legacy-in input[type=number],.s7 .f .legacy-in input[type=date],.s7 .f .legacy-in textarea{width:100%;min-height:38px;padding:6px 11px;border:1px solid var(--line-2);border-radius:9px;background:var(--card);color:var(--ink);font-size:13.5px}
.s7 .f .legacy-in select:focus,.s7 .f .legacy-in input:focus,.s7 .f .legacy-in textarea:focus{border-color:var(--teal-ink);box-shadow:0 0 0 3px var(--teal-soft);outline:0}
.s7 .f .legacy-in .chips{display:flex;flex-wrap:wrap;gap:5px}
.s7 .f .legacy-in .chip{min-height:30px}
/* the old rich editor under the kit's toolbar look */
.s7 .f .rich.edit:not(:where(.work *)){border:0}
.s7 .f .rich.edit .richbar:not(:where(.work *)){display:flex;gap:2px;padding:4px;border:1px solid var(--line-2);border-bottom:0;border-radius:9px 9px 0 0;background:var(--sunk)}
.s7 .f .rich.edit .richbar button:not(:where(.work *)){width:28px;height:26px;min-height:26px;border-radius:6px;display:grid;place-items:center;color:var(--mut);font-weight:700;font-size:12px;border:0;background:transparent;padding:0;margin:0}
.s7 .f .rich.edit .richbar button:hover:not(:where(.work *)){background:var(--hover);color:var(--ink)}
.s7 .f .rich.edit .richbody:not(:where(.work *)){min-height:96px;padding:8px 11px;border:1px solid var(--line-2);border-radius:0 0 9px 9px;background:var(--card);color:var(--ink);font-size:13.5px;line-height:1.6;outline:0}
.s7 .f .rich.edit .richbody:focus:not(:where(.work *)){border-color:var(--teal-ink);box-shadow:0 0 0 3px var(--teal-soft)}
/* the closed record's outcome, the waiting card, the window's tally */
.s7 .outcome{display:flex;flex-direction:column;gap:6px}
.s7 .outcome b{font-size:15px}
.s7 .tally:not(:where(.work *)){display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0 12px}
.s7 .tally .bar:not(:where(.work *)){flex:1;min-width:120px;height:8px;border-radius:4px;background:var(--sunk);overflow:hidden}
.s7 .tally .bar i:not(:where(.work *)){display:block;height:100%;background:var(--green)}
.s7 .answers{display:flex;gap:8px;flex-wrap:wrap}
.s7 .rec .detail-legacy{margin-top:16px}
.s7 .rec .detail-legacy .c-b{padding:0 16px 8px}
.s7 .rec div.detail-legacy>.c-b{padding-top:14px}   /* the record's last card has no heading: its old parts start off its border */
/* the properties card's pencil: every value with its pen */
/* rows line up (14 Oct 2026, decision 159 #3 — Ahmed: «make sure rows are visually aligned»): the rows share one grid — the labels' column
   one width (28% of the card, never under 96px; a longer label wraps), the values all starting at the same edge — read-only and editing
   alike, on a phone and a desktop. Each row is a subgrid of it; a browser without subgrid keeps the row's own grid as before */
.s7 .props:not(:where(.work *)){display:grid;grid-template-columns:minmax(96px,28%) minmax(0,1fr) auto;gap:6px 10px;margin-top:10px;border-top:1px solid var(--line);padding-top:10px;align-items:start}
.s7 .props .pv{display:grid;grid-template-columns:minmax(70px,auto) minmax(0,1fr) auto;grid-template-columns:subgrid;grid-column:1/-1;gap:6px 10px;align-items:start;font-size:12.5px}
.s7 .props .pk:not(:where(.work *)){color:var(--mut);overflow-wrap:anywhere}
.s7 .props .pvv{min-width:0;overflow-wrap:anywhere;font-weight:600}
.s7 .props .pvv a:not(:where(.work *)){color:var(--teal-ink)}
.s7 .props .pvv.work{font-size:inherit;color:inherit}   /* a value drawn by the old code keeps the card's size and ink (its root, .work, sets the old page's) */
.s7 .props .cardpre:not(:where(.work *)){white-space:pre-wrap;font:inherit;margin:0;font-weight:400}
.s7 .props .legacy-in{grid-column:2/-1;display:flex;flex-direction:column;gap:6px}
.s7 .props .legacy-in select,.s7 .props .legacy-in input[type=text],.s7 .props .legacy-in input[type=number],.s7 .props .legacy-in input[type=date],.s7 .props .legacy-in input[type=url],.s7 .props .legacy-in textarea{width:100%;min-height:36px;padding:6px 10px;border:1px solid var(--line-2);border-radius:9px;background:var(--card);color:var(--ink);font-size:13px}
.s7 .props .legacy-in .fld.twin{display:flex;flex-direction:column;gap:4px}
.s7 .props .legacy-in .fld.twin>span{font-size:12px;color:var(--mut)}
.s7 .props .legacy-in .btns .b{min-height:32px;padding:4px 12px;border-radius:9px;border:1px solid var(--line-2);font-weight:600;font-size:12.5px}
.s7 .props .legacy-in .btns{display:flex;gap:6px;margin-top:6px}
/* round 2 (6 Oct 2026, the record page's core): the return notice at the top of the step card (P-27), the read-only summary above the fields
   (P-26 — its .props without the card's top rule), the figures row under the strip (P-26) */
.s7 .ret{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;padding:10px 12px;border-radius:10px;background:var(--rose-bg);color:var(--rose-ink);margin-bottom:12px;font-size:12.5px}
.s7 .ret svg.i{width:16px;height:16px}
.s7 .ret p{flex-basis:100%;margin:0;color:var(--ink);font-weight:500}
.s7 .ro-sum{margin-bottom:12px}
.s7 .ro-sum .props:not(:where(.work *)){border-top:0;margin-top:0;padding-top:0}
.s7 .rec-figs{display:flex;flex-wrap:wrap;gap:8px 18px;margin:-6px 0 14px;font-size:12.5px}
.s7 .rec-figs .fig{display:inline-flex;align-items:baseline;gap:6px}
.s7 .rec-figs .fig small{color:var(--mut);font-size:12px}
.s7 .rec-figs .fig b{font-weight:700;color:var(--ink)}
/* the record's meters, under the figures (25 Nov 2026, TASK 2479 — 40-record.js s7RecMetersHTML): a card of the kit across the page for
   each field drawn as meters. A row: its name · the bar · its figures, the rows of one card sharing their columns so the bars start and
   end together; a meter that speaks has its words under the row, in the muted ink. The track is the shell's sunk colour, the bar its
   green (amber for a count that is neither done nor late, rose for one that is late or not passed); the bar fills from the reader's side */
.s7 .rec-meters{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:10px;margin:0 0 14px}
.s7 .rec-meters .card.wide{grid-column:1/-1}   /* one meter that speaks is a bar across the page; the other cards share a row, each a column wide */
.s7 .rec-meters .m-rows{display:grid;grid-template-columns:fit-content(40%) minmax(0,1fr) auto;gap:10px 12px;align-items:center}
.s7 .rec-meters .meter{display:grid;grid-template-columns:fit-content(40%) minmax(0,1fr) auto;grid-template-columns:subgrid;grid-column:1/-1;gap:4px 12px;align-items:center;font-size:12.5px;line-height:1.5}
.s7 .rec-meters .m-k{font-weight:600;color:var(--ink);min-width:96px;overflow-wrap:anywhere}
.s7 .rec-meters .m-bar{display:flex;min-width:0;height:8px;border-radius:4px;background:var(--sunk);overflow:hidden}
.s7 .rec-meters .m-bar i{display:block;flex:none;height:100%;background:var(--green)}
.s7 .rec-meters .m-bar i.mid{background:var(--amber)}
.s7 .rec-meters .m-bar i.no{background:var(--rose)}
.s7 .rec-meters .m-n{color:var(--mut);white-space:nowrap}
.s7 .rec-meters .m-n .num{font-weight:700;color:var(--ink)}
.s7 .rec-meters .m-x{grid-column:1/-1;color:var(--mut);font-size:12px;overflow-wrap:anywhere}
.s7 .rec-meters .hint{color:var(--mut);font-size:12.5px}
/* ─── the old parts inside the shell (Ahmed, 29 Sep 2026: «the halls availability is not visible here» · «certain style sheets seem to have
   an issue with padding of text against the border» · «mobile view needs a deep review»). The record and the space page still draw some parts
   with the old code — a field the kit has no control for (the hall and its hour grid, a speaker's rows), a step with the assistant, the
   phases' old bodies, the documents, the referrals, an old section — and every rule of the old stylesheet for them sits under the old page's
   root, .work. So each such part's container carries .work too (40-record.js, 50-space.js): the old rules apply as in the old desk, and the
   kit's rules that could reach an old element stop at it (`:not(:where(.work *))` on their subject — no specificity added; the subject's
   classes are the old screens' own and its ancestors the boxes that hold an old part). Its colours are the new tokens, light and dark: ─── */
.s7 .work{
  --w-card:var(--card);--w-bg:var(--ground);--w-sunk:var(--sunk);--w-sunk-2:var(--hover);--w-tint:var(--sunk);
  --w-ink:var(--ink);--w-ink-2:var(--ink);--w-ink-3:var(--ink-2);--w-navy:var(--ink);--w-steel:var(--ink-2);
  --w-mut:var(--mut);--w-mut-2:var(--mut);   /* the old second grey is text in some 35 rules (the path's heads, the grid's hours): here it keeps 4.5:1 */
  --w-line:var(--line);--w-line-2:var(--line-2);--w-accent-line:var(--line-2);
  --w-link:var(--teal-ink);--w-teal-2:var(--teal-ink);--w-teal-bg:var(--teal-soft);
  --w-ok:var(--green);--w-ok-bg:var(--green-bg);--w-ok-line:var(--green);--w-warn:var(--amber);--w-warn-bg:var(--amber-bg);--w-warn-ink:var(--amber-ink);--w-err:var(--rose);--w-err-bg:var(--rose-bg);--w-err-line:var(--rose);
  --w-pri:var(--navy);--w-on-status:var(--on-status);--w-shadow:none;--w-shadow-2:var(--shadow-sm);
}
/* the old rules that write the brand teal as text (the path's heading and figures, the grid's picked hours and hall…): teal-ink here (C-01) */
.s7 .work .card.ledger h3,.s7 .work .card.ledger table.lt td.num,.s7 .work .ledger table.lt tbody tr:hover td.num,.s7 .work .cal th.me,.s7 .work .cal td.un.on,.s7 .work .proof .s,.s7 .work .richbar button:hover,.s7 .work .tbtot b,.s7 .work .bidrank{color:var(--teal-ink)}
/* the halls' grid: a free hour a green tile, a taken one a rose one — told apart at a glance, not by two pale tints; the legend's
   «موعدك» is the outline the picked hours wear (the old sheet gives that third swatch nothing to show) */
.s7 .work .cal td.fr,.s7 .work .callg i.fr{background:var(--green-bg);box-shadow:inset 0 0 0 1px var(--green)}
.s7 .work .cal td.bz,.s7 .work .callg i.bz{background:var(--rose)}
.s7 .work .cal td.bz.me{outline-color:var(--ink)}
.s7 .work .callg i.me{outline:2px solid var(--teal-ink);outline-offset:-2px}
/* the old field's hints and required marks, as under the old form's own field (.fld) — here the kit's field holds them */
.s7 .f .work .fhint{display:block;font-size:12px;color:var(--w-mut);margin-top:3px;font-style:normal;line-height:1.5}
.s7 .f .work em{color:var(--w-err);font-style:normal}
/* the path (the old desk's dark «ledger» card) wears the shell's card, so its rows stay legible when a phone stacks them */
.s7 .work .card.ledger{background:var(--card);color:var(--ink);border-color:var(--line)}
.s7 .work .card.ledger .pill{background:var(--sunk);color:var(--mut)}
.s7 .work .card.ledger table.lt th{color:var(--mut);border-bottom-color:var(--line)}
.s7 .work .card.ledger table.lt td{color:var(--ink);border-bottom-color:var(--line)}
.s7 .work .ledger table.lt tbody tr:hover td{background:var(--hover);color:var(--ink)}
.s7 .work .ledger table.lt tbody tr:hover td a{color:var(--teal-ink)}
/* the file box's own input stays reachable (the label opens it): out of sight, not out of the page */
.s7 .legacy .addoc{position:relative}
.s7 .legacy .addoc input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;display:block}

/* ═══════════════ S-07 the space page · S-08 its editor ═══════════════ */
.s7 .space-h{margin:-20px -24px 16px;padding:18px 24px 0;background:linear-gradient(180deg,color-mix(in srgb,var(--sp,var(--navy)) 12%,var(--card)),var(--card));border-bottom:1px solid var(--line)}
.s7 .space-h .sp-r1{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap}
.s7 .space-h .sp-mark{width:52px;height:52px;border-radius:14px;background:var(--sp,var(--navy));color:#fff;display:grid;place-items:center;font-weight:800;font-size:20px;flex:none}
.s7 .space-h .sp-t{flex:1;min-width:200px}
.s7 .space-h h1{font-size:22px;font-weight:800;margin:0;line-height:1.3}
.s7 .space-h .sp-sub{font-size:12.5px;color:var(--mut);margin-top:2px}
.s7 .space-h .sp-tag{font-size:13.5px;color:var(--ink-2);margin:6px 0 0;max-width:70ch}
.s7 .space-h .sp-acts{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.s7 .sp-nav{display:flex;gap:2px;overflow-x:auto;scrollbar-width:none;margin-top:12px;padding-bottom:0}
.s7 .sp-nav button{padding:8px 12px;font-size:13px;font-weight:600;color:var(--mut);border-bottom:2px solid transparent;white-space:nowrap;min-height:38px}
.s7 .sp-nav button:hover{color:var(--ink)}
.s7 .sp-sec{margin-bottom:22px;scroll-margin-top:12px}
.s7 .sp-sh{display:flex;align-items:baseline;gap:12px;margin-bottom:10px}
.s7 .sp-sh h2{font-size:15px;font-weight:800;margin:0;flex:1}
.s7 .sp-sh a{font-size:12.5px;color:var(--teal-ink);font-weight:600}
.s7 .tile .cat:not(:where(.work *)){font-size:12px;color:var(--mut);text-transform:none;display:block;margin-bottom:4px}
.s7 .tile h3:not(:where(.work *)){font-size:14px;font-weight:700;margin:0 0 4px}
.s7 .tile p:not(:where(.work *)){font-size:12.5px;color:var(--mut);margin:0;line-height:1.5}
.s7 .tile .facts{display:block;font-size:12px;color:var(--ink-2);margin-top:8px}
.s7 .tile .go:not(:where(.work *)){display:block;font-size:12.5px;color:var(--teal-ink);font-weight:600;margin-top:8px}
.s7 button.tile:not(:where(.work *)){text-align:start;cursor:pointer;width:100%}
.s7 .news{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
.s7 .ncard{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:var(--r-l);overflow:hidden;color:var(--ink);text-decoration:none}
.s7 .ncard:hover{border-color:var(--line-2);box-shadow:var(--shadow-sm)}
.s7 .ncard .im{display:block;height:120px;background:var(--sunk) center/cover no-repeat}
.s7 .ncard .nb{padding:10px 12px 12px}
.s7 .ncard .cat{font-size:12px;color:var(--mut);display:block;margin-bottom:4px}
.s7 .ncard h3{font-size:14px;font-weight:700;margin:0 0 4px}
.s7 .ncard p{font-size:12.5px;color:var(--mut);margin:0;line-height:1.5}
.s7 .about{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:12px;align-items:start}
.s7 .about .rich{font-size:14px;line-height:1.7;color:var(--ink)}
.s7 .about .rich p{margin:0 0 8px}
.s7 .about ul.facts{margin:10px 0 0;padding-inline-start:18px;font-size:13px;color:var(--ink-2)}
.s7 .about .kv dt{display:flex;align-items:center;gap:6px}
.s7 .about .kv a{color:var(--teal-ink);text-decoration:none;unicode-bidi:isolate}
.s7 .legacy-sec .card .c-b{padding:12px 16px}
/* the editor's rows: grip · name · state · the audience group */
.s7 .secs{display:flex;flex-direction:column;gap:6px}
.s7 .srow{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px 10px;align-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--card)}
.s7 .srow .seg{grid-column:2/-1;justify-self:start}
.s7 .srow.off{opacity:.7}
.s7 .srow.over{border-color:var(--teal-ink);box-shadow:0 0 0 3px var(--teal-soft)}
.s7 .srow.plain{grid-template-columns:minmax(0,1fr) auto}
.s7 .srow .grip{color:var(--mut-2);cursor:grab;display:grid;place-items:center;width:20px}
.s7 .srow[draggable="true"]{cursor:grab}
.s7 .srow .sn{min-width:0}
.s7 .srow .sn b{display:block;font-size:13px;font-weight:700;color:var(--ink)}
.s7 .srow .sn small{display:block;font-size:12px;color:var(--mut)}
.s7 .srow .sn .in{margin-top:4px}
.s7 .srow .stools{display:flex;gap:2px}
.s7 .srow .stools .t-btn{width:28px;height:28px}
.s7 .srow .stools .t-btn[disabled]{opacity:.35}
.s7 .secs-ft{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px}
.s7 .secs-ft .fwrap{position:relative}
.s7 .secs-ft .fwrap .dd{top:calc(100% + 4px);inset-inline-start:0}
.s7 .sh-sub{font-size:13px;font-weight:800;margin:14px 0 8px}
.s7 .sheet .f{margin-bottom:12px}
.s7 .sw-c{width:26px;height:26px;border-radius:50%;border:2px solid var(--card);box-shadow:0 0 0 1px var(--line-2);cursor:pointer}
.s7 .sw-c.on{box-shadow:0 0 0 2px var(--teal-ink)}
.s7 .swatches input[type=color]{width:28px;height:28px;border:0;background:none;padding:0;cursor:pointer}

/* ═══════════════ S-09 the app page · S-10 the records list ═══════════════ */
.s7 .app-h{align-items:center}
.s7 .app-h .app-t{display:flex;gap:12px;align-items:center;min-width:0}
.s7 .dot.big{width:44px;height:44px;border-radius:12px;font-size:16px}
.s7 .app-h .sub{font-size:12.5px;color:var(--mut);margin-top:2px}
.s7 .figs:not(:where(.work *)){display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:14px 0 20px}
.s7 .fig{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--r-l);background:var(--card);color:var(--ink);text-decoration:none;min-height:64px}
.s7 .fig:hover{border-color:var(--line-2);box-shadow:var(--shadow-sm)}
.s7 .fig b{font-size:22px;font-weight:800;line-height:1.1}
.s7 .fig span{font-size:12px;color:var(--mut)}
.s7 .fig.hot{border-color:var(--teal-ink);background:var(--teal-soft)}
.s7 .fig.hot b{color:var(--teal-ink)}
.s7 .app-svcs .start.svc{align-items:flex-start}
.s7 .app-svcs .start .st-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.s7 .app-svcs .start .st-t small{font-size:12px;color:var(--mut)}
.s7 .lst-f{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}
.s7 .lst-f .t-q{width:260px;min-height:36px;padding:4px 10px}
.s7 .lst-f .in.sm{min-height:36px;padding:4px 10px;width:auto}
.s7 .lst-f .in.sel.sm{min-width:160px}
.s7 .lst-f .in.rng.sm input{width:130px;flex:none}
.s7 .lst-f .fwrap{position:relative}
.s7 .lst-f .fwrap .dd{top:calc(100% + 4px);inset-inline-start:0;min-width:220px}
.s7 .rec-tbl th a{color:var(--mut);text-decoration:none;font-weight:700}
.s7 .rec-tbl th[aria-sort] a{color:var(--ink)}
.s7 .rec-tbl th .sort{color:var(--teal-ink)}
.s7 .rec-tbl td.id a{color:var(--teal-ink);text-decoration:none}
.s7 .rec-tbl td.ttl a{color:var(--ink);text-decoration:none;font-weight:600}
.s7 .rec-tbl td.ttl{min-width:200px}
.s7 .rec-tbl td .late{color:var(--rose-ink);font-weight:600}
.s7 .lst-ft{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--mut);margin-top:10px}
.s7 .lst-ft .sp{flex:1}

/* ═══════════════ S-11 settings — one hub ═══════════════ */
.s7 .settings{display:grid;grid-template-columns:200px minmax(0,1fr);gap:20px;align-items:start;margin-top:12px}
.s7 .s-idx{position:sticky;top:0;display:flex;flex-direction:column;gap:2px}
.s7 .s-idx .r-it{font-size:13px;min-height:36px}
.s7 .s-body{min-width:0;display:flex;flex-direction:column;gap:18px}
.s7 .s-sec h2{font-size:15px;font-weight:800;margin:0 0 8px}
.s7 .s-sec .card .c-b.secs{padding:0 14px}
.s7 .set-row{display:flex;align-items:center;gap:14px;padding:11px 0;border-bottom:1px solid var(--line);cursor:default}
.s7 .set-row:last-child{border-bottom:0}
.s7 .set-row .sn{flex:1;min-width:0}
.s7 .set-row .sn b{display:block;font-size:13.5px;font-weight:700}
.s7 .set-row .sn small{display:block;font-size:12px;color:var(--mut);margin-top:2px;line-height:1.5}
.s7 .set-row .sn small.lockh{color:var(--mut);display:inline-flex;align-items:center;gap:4px}
.s7 .set-row .sn small.lockh svg{width:12px;height:12px}
.s7 .set-row .sc{flex:none;display:flex;align-items:center;gap:8px;max-width:60%}
.s7 .set-row .sc .in{min-height:36px;padding:4px 10px;width:260px}
.s7 .set-row .sc .in.sel{width:auto;min-width:180px}
.s7 .set-row .sc .bil{width:280px}
.s7 .set-row .sc .fwrap{position:relative}
.s7 .set-row .sc .fwrap .dd{top:calc(100% + 4px);inset-inline-end:0;min-width:240px}
.s7 .set-row.lock .sc{opacity:.75}
.s7 .set-row .swatches{display:flex;gap:6px;flex-wrap:wrap}
.s7 .set-row .sw-c{width:26px;height:26px;border-radius:8px;border:2px solid transparent;cursor:pointer;padding:0}
.s7 .set-row .sw-c.on{border-color:var(--ink);box-shadow:0 0 0 2px var(--card) inset}
.s7 .set-row .sw-c:disabled{cursor:default;opacity:.6}
.s7 .set-row .sw[aria-disabled="true"]{cursor:default;opacity:.7}
.s7 .set-row .btn:disabled{opacity:.5}
.s7 .settings .secs-ft{display:flex;gap:10px;align-items:center;padding:10px 0;flex-wrap:wrap}
.s7 .settings .secs-ft .hint{font-size:12px}
.s7 .settings .mini-rows{padding:6px 0}
/* «الهوية» (lane public-portals, decision 105): the logos, the colours, the fonts, the shape, and what a visitor will see */
.s7 .lk-pic{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.s7 .lk-pic img{height:40px;width:auto;max-width:180px;object-fit:contain;border:1px solid var(--line);border-radius:8px;padding:4px;background:var(--card)}
.s7 .lk-pic img.on-dark{background:var(--navy)}
.s7 .set-row:has(.lk-wide){flex-direction:column;align-items:stretch;gap:8px}   /* the colours, the fonts, the home's blocks take the row, under their name */
.s7 .set-row:has(.lk-wide) .sc{max-width:none;flex:auto;min-width:0}
.s7 .set-row .sc :is(.lk-two,.lk-btn,.lk-blk,.lk-fonts) .in{width:auto;min-width:0}
.s7 .lk-cols{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:6px 10px;max-width:640px;min-width:0}
.s7 .lk-col{display:flex;align-items:center;gap:8px;font-size:12.5px;min-height:36px;cursor:pointer}
.s7 .lk-col input[type=color]{width:34px;height:30px;border:1px solid var(--line-2);border-radius:7px;padding:2px;background:var(--card);flex:none;cursor:pointer}
.s7 .lk-col span{display:flex;flex-direction:column;line-height:1.3;min-width:0;overflow-wrap:anywhere}
.s7 .lk-col small{color:var(--mut);font-size:11.5px}
.s7 .lk-fonts{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px 12px;max-width:640px;min-width:0}
.s7 .lk-font{display:flex;flex-direction:column;gap:3px}
.s7 .lk-say{color:var(--rose-ink);font-size:12.5px;margin:6px 0}
.s7 .lk-prev{margin:12px 0 4px;border:1px solid var(--line);border-radius:12px;overflow:hidden;max-width:520px;min-width:0}
.s7 .lk-prev .lk-ph{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;color:#fff}
.s7 .lk-prev .lk-ph img{height:28px;width:auto;max-width:160px;object-fit:contain}
.s7 .lk-prev .lk-pb{padding:5px 12px;font-size:12px;font-weight:700}
.s7 .lk-prev .lk-pc{margin:12px 14px 14px;border:1px solid;padding:12px 14px;display:flex;flex-direction:column;gap:2px}
.s7 .lk-prev .lk-pc b{font-size:16px}
.s7 .lk-blks{display:flex;flex-direction:column;max-width:640px;min-width:0}   /* the home's blocks (piece 4): a row each — its name, its page, ↑ ↓ ✕ */
.s7 .lk-blk{display:grid;grid-template-columns:minmax(110px,.8fr) minmax(0,1.2fr) auto;grid-template-areas:"n p t";gap:8px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line);font-size:13px;min-height:48px}
.s7 .lk-blk>b{grid-area:n;font-weight:700}
.s7 .lk-blk>.lk-p{grid-area:p}
.s7 .lk-blk>.lk-tools{grid-area:t}
.s7 .lk-tools{display:flex;gap:2px}
.s7 .lk-add{margin-top:8px;max-width:260px}
.s7 .lk-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:640px;min-width:0}
.s7 .lk-btn{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:8px;max-width:640px;min-width:0;align-items:center}
.s7 .s-sec .c-b p.hint{margin:10px 0 4px;font-size:12.5px}
.s7.dense .set-row{padding:7px 0}
.s7.dense .tbl td:not(:where(.work *)){padding:5px 10px}
.s7.dense .mrow{padding:5px 8px;min-height:34px}
.s7.dense .row:not(:where(.work *)){padding:8px 10px}

/* ═══════════════ S-12 the directory · S-13 my profile ═══════════════ */
.s7 .dir-tbl td.who a{display:inline-flex;align-items:center;gap:9px;color:var(--ink);text-decoration:none}
.s7 .dir-tbl td.who b{display:block;font-size:13px;font-weight:600}
.s7 .dir-tbl td.who small{display:block;font-size:12px;color:var(--mut)}
.s7 .dir-tbl td.caps{text-align:end}
.s7 .dir-tbl tr.caps-row td{background:var(--sunk);white-space:normal;padding:10px 14px}
.s7 .dir-tbl td a{color:var(--teal-ink);text-decoration:none}
.s7 .dir-tbl td.who a:hover b{text-decoration:underline}
.s7 .avs{display:inline-flex;align-items:center;vertical-align:middle;margin-inline-end:6px}
.s7 .avs .av{margin-inline-start:-6px;box-shadow:0 0 0 2px var(--card)}
.s7 .avs .av:first-child{margin-inline-start:0}
.s7 .av.xs{width:20px;height:20px;font-size:9px}
.s7 .av.lg{width:56px;height:56px;font-size:20px}
.s7 .caps-l{display:flex;flex-direction:column;gap:8px}
.s7 .cap{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px}
.s7 .cap>b{min-width:160px;font-weight:700}
.s7 .cap>b a{color:var(--ink);text-decoration:none}
.s7 .cap small.hint{font-size:12px}
.s7 .cap .pill{white-space:normal;max-width:100%;text-align:start}   /* «لجنة الملبوسات والإكسسوارات والمعادن الثمينة · أمين» wraps inside the card (S-22) */
.s7 .me-g{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start;margin-top:12px}
.s7 .me-g .card:first-child{grid-column:1 / -1}
.s7 .me-card{display:flex;align-items:center;gap:14px;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid var(--line)}
.s7 .me-card .me-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.s7 .me-card .me-t b{font-size:17px;font-weight:800}
.s7 .me-card .me-t .hint{font-size:12.5px}
.s7 .me-g .c-h .sp{flex:1}
.s7 .me-g .c-h .hint{font-size:12px;margin-inline-start:8px}

/* ═══════════════ the public site (S-17 … S-21) and the door (S-01) — piece 7 ═══════════════ */
.s7.site .shell{grid-template-columns:minmax(0,1fr)}
.s7.site .rail,.s7.site .top:not(:where(.work *)),.s7.site .bar-bottom{display:none}
.s7.site .content{padding:0}
.s7.site .content::after{display:none}
.s7 .site:not(:where(.work *)){min-height:100%;display:flex;flex-direction:column;background:var(--ground)}
.s7 .site .s-main{flex:1}
.s7 .site .wrap{max-width:1240px;margin:0 auto;padding:0 24px;width:100%}
.s7 .s-top{background:var(--navy);color:#fff;position:sticky;top:0;z-index:5}
.s7 .s-top .wrap{display:flex;align-items:center;gap:14px;height:60px}
.s7 .s-logo{display:flex;align-items:center;gap:9px;font-weight:800;font-size:15px;color:#fff;white-space:nowrap;text-decoration:none}
.s7 .s-logo .r-mark{background:var(--teal)}
.s7 .s-logo .r-mark i{background:var(--navy)}
.s7 .s-nav{display:flex;gap:2px;flex:1;min-width:0}
.s7 .s-nav .s-it{position:relative}
.s7 .s-nav .s-it>button,.s7 .s-nav .s-it>a{padding:8px 12px;color:rgba(255,255,255,.9);font-weight:600;font-size:13.5px;display:flex;align-items:center;gap:5px;border-radius:8px;white-space:nowrap;text-decoration:none;min-height:40px}
.s7 .s-nav .s-it>button svg{width:14px;height:14px}
.s7 .s-nav .s-it>button:hover,.s7 .s-nav .s-it>a:hover,.s7 .s-nav .s-it.open>button{background:rgba(255,255,255,.1);color:#fff}
.s7 .s-nav .s-mega{position:absolute;top:calc(100% + 8px);inset-inline-start:0;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:var(--r-l);box-shadow:var(--shadow);padding:18px 20px 12px;display:none;gap:14px 26px;width:max-content;max-width:min(880px,calc(100vw - 32px));z-index:6}
.s7 .s-nav .s-mega.m1{grid-template-columns:minmax(200px,1fr)}.s7 .s-nav .s-mega.m2{grid-template-columns:repeat(2,minmax(180px,1fr))}.s7 .s-nav .s-mega.m3{grid-template-columns:repeat(3,minmax(170px,1fr))}.s7 .s-nav .s-mega.m4{grid-template-columns:repeat(4,minmax(160px,1fr))}
.s7 .s-nav .s-it.open .s-mega,.s7 .s-nav .s-it:focus-within .s-mega{display:grid}
.s7 .s-nav .s-mega h4{font-size:12px;color:var(--teal-ink);font-weight:800;border-bottom:1px solid var(--line);padding-bottom:6px;margin:0 0 8px}
.s7 .s-nav .s-mega ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1px}
.s7 .s-nav .s-mega li a{display:block;padding:6px 8px;border-radius:7px;color:var(--ink);font-size:13px;text-decoration:none}
.s7 .s-nav .s-mega li a:hover{background:var(--teal-soft)}
.s7 .s-nav .s-mega .s-mfoot{grid-column:1/-1;border-top:1px solid var(--line);padding-top:10px;display:flex;justify-content:flex-end}
.s7 .s-nav .s-mega .s-mfoot a{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;background:var(--teal-soft);color:var(--teal-ink);font-weight:700;font-size:12.5px;text-decoration:none}
.s7 .s-acts{display:flex;align-items:center;gap:6px;margin-inline-start:auto;flex:none}
/* the header takes the window's width (the menus need it: five English entries do not fit the page's 1190 px), and English items are tighter */
.s7 .s-top .wrap{max-width:1320px}
.s7.en .s-nav .s-it>button,.s7.en .s-nav .s-it>a{padding:8px 9px;font-size:13px}
.s7 .s-acts .t-btn{color:rgba(255,255,255,.88)}
.s7 .s-acts .t-btn:hover{background:rgba(255,255,255,.12);color:#fff}
.s7 .s-acts .lang{font-weight:700;font-size:12.5px;padding:6px 10px;border-radius:8px;color:#fff;border:1px solid rgba(255,255,255,.3);min-height:34px;min-width:40px;background:transparent}
.s7 .s-menu-btn{display:none}
.s7 .mnav{display:none}
.s7 .site .sp-sh a,.s7 .site .s-foot a{text-decoration:none}
/* S-17 the home */
.s7 .site .s-hero{background:linear-gradient(135deg,#0E1B2A 0%,#12294A 60%,#0F6B74 130%);color:#fff;padding:44px 0 36px}
.s7 .site .s-hero .wrap{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:28px;align-items:center}
.s7 .site .s-hero h1{font-size:34px;font-weight:800;line-height:1.2;margin:0 0 8px;color:#fff}
.s7 .site .s-hero p{margin:0 0 18px;color:rgba(255,255,255,.82);font-size:15px;max-width:52ch}
.s7 .site .h-q{display:flex;gap:8px;align-items:stretch}
.s7 .site .h-q .in{flex:1;background:#fff;color:#0E1B2A;border-color:transparent;min-height:50px;font-size:15px;border-radius:var(--r-l)}
.s7 .site .h-q .in input{color:#0E1B2A}
.s7 .site .h-q .in input::placeholder{color:#5B6B79}
.s7 .site .h-q .btn{min-height:50px;border-radius:var(--r-l);padding:0 20px}
.s7 .site .tasks{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.s7 .site .tasks a{padding:5px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.3);color:#fff;font-size:12.5px;font-weight:600;text-decoration:none;min-height:32px;display:inline-flex;align-items:center}
.s7 .site .tasks a:hover{background:rgba(255,255,255,.12)}
.s7 .site .s-hero .stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}
/* lane v7-perf (28 Sep): the hero keeps its height while the store arrives — the task links' row and the figures hold their room, so
   what fills them moves nothing below (Lighthouse's CLS) */
.s7 .site .s-hero .tasks{min-height:34px}
.s7 .site .s-hero .stats{min-height:150px;align-content:start}
.s7 .site .s-hero .stat{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:var(--r-l);padding:14px 16px}
.s7 .site .s-hero .stat b{display:block;font-size:26px;font-weight:800;color:#6FD3DD}
.s7 .site .s-hero .stat span{font-size:12.5px;color:rgba(255,255,255,.85)}
/* the home's other blocks (lane public-portals, piece 4): a statement, a picture, the figures, a text, steps, a band; each in the look's tokens */
.s7 .site .s-hero .eyebrow{display:block;font-size:13px;font-weight:700;color:rgba(255,255,255,.75);margin-bottom:6px}
.s7 .site .s-hero.h-stmt{padding:64px 0 56px}
.s7 .site .s-hero.h-stmt h1{font-size:40px}
.s7 .site .s-hero.solo .wrap,.s7 .site .s-hero.h-pic .wrap{grid-template-columns:minmax(0,1fr)}   /* a statement with no figures beside it, a picture: one column */
.s7 .site .s-hero.solo .h-t,.s7 .site .s-hero.h-pic .h-t{max-width:760px}
.s7 .site .s-hero .h-b{display:flex;gap:10px;flex-wrap:wrap}
.s7 .site .h-b .btn{min-height:46px;padding:0 22px}
.s7 .site .h-b .btn.gh-l{background:transparent;color:#fff;border-color:rgba(255,255,255,.45)}
.s7 .site .h-b .btn.gh-l:hover{background:rgba(255,255,255,.12)}
.s7 .site .s-hero.h-pic{background-size:cover;background-position:center;padding:96px 0 88px}
.s7 .site .s-figs .figs{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.s7 .site .s-figs .fig{padding:18px 18px 16px}
.s7 .site .s-figs .fig b{display:block;font-size:30px;font-weight:800;color:var(--teal-ink);line-height:1.1}
.s7 .site .s-figs .fig span{font-size:13px;color:var(--mut)}
.s7 .site .s-text{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:24px;align-items:start}
.s7 .site .s-text .tx-h h2{font-size:24px;font-weight:800;margin:0 0 8px}
.s7 .site .s-text .tx-h p{margin:0 0 10px;color:var(--mut)}
.s7 .site .s-text .tx-h a{color:var(--teal-ink);font-weight:700;text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.s7 .site .s-steps ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;counter-reset:st}
.s7 .site .s-steps li{padding:16px;display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:start;font-size:13.5px}
.s7 .site .s-steps li:before{counter-increment:st;content:counter(st);width:32px;height:32px;border-radius:50%;background:var(--teal);color:var(--on-teal);display:grid;place-items:center;font-weight:800;font-family:var(--en)}
.s7 .site .s-cta{background:linear-gradient(135deg,var(--navy) 0%,var(--navy-2) 100%);color:#fff;padding:40px 0;margin-top:34px}
.s7 .site .s-cta .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.s7 .site .s-cta p{margin:0;font-size:20px;font-weight:700;max-width:60ch}
/* the header's own button, and its links in a drawer behind «☰» on every width (the look's «header») */
/* a store's products and a company's cases (lane public-portals, piece 5): their cards, the collections, a product's page, a case's page */
.s7 .site .it-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.s7 .site .it-grid.cases{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.s7 .site .it-card{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:var(--r-l);overflow:hidden;text-decoration:none;color:var(--ink);min-width:0}
.s7 .site .it-card:hover{border-color:var(--line-2);box-shadow:var(--shadow-sm)}
.s7 .site .it-card .im{display:block;aspect-ratio:4/3;background:var(--sunk) center/cover no-repeat;position:relative}
.s7 .site .it-card.case .im{aspect-ratio:16/9}
.s7 .site .it-card .nb{display:flex;flex-direction:column;gap:4px;padding:12px 14px 14px}
.s7 .site .it-card h3{font-size:15px;font-weight:800;margin:0;line-height:1.4}
.s7 .site .it-card p{margin:0;color:var(--mut);font-size:13px;line-height:1.6}
.s7 .site .it-card .cat,.s7 .site .it-info .cat,.s7 .site .it-dark .cat{font-size:12px;font-weight:700;color:var(--teal-ink)}
.s7 .site .it-price{font-size:15px;font-weight:800;color:var(--teal-ink)}
.s7 .site .it-badge{position:absolute;top:10px;inset-inline-start:10px;background:var(--teal);color:var(--on-teal);font-size:11.5px;font-weight:800;padding:3px 10px;border-radius:999px}
.s7 .site .it-colls{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.s7 .site .it-coll{display:grid;grid-template-columns:56px 1fr auto;align-items:center;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:var(--r-l);padding:10px 14px 10px 10px;text-decoration:none;color:var(--ink);min-height:76px}
.s7 .site .it-coll .im{width:56px;height:56px;border-radius:var(--r-m);background:var(--sunk) center/cover no-repeat}
.s7 .site .it-coll b{font-size:14px}
.s7 .site .it-p{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:22px;align-items:start;margin-bottom:18px}
.s7 .site .it-pic{position:relative;background:var(--card);border:1px solid var(--line);border-radius:var(--r-l);overflow:hidden;aspect-ratio:4/3}
.s7 .site .it-pic img{width:100%;height:100%;object-fit:cover;display:block}
.s7 .site .it-info .c-b{display:flex;flex-direction:column;gap:10px}
.s7 .site .it-info h1{font-size:26px;font-weight:800;margin:0;line-height:1.3}
.s7 .site .ph-h.it-trail{padding:14px 0 12px}
.s7 .site .ph-h.it-trail .crumb{margin:0}
.s7 .site .it-info .it-price{font-size:22px}
.s7 .site .it-opts{display:flex;flex-direction:column;gap:6px}
.s7 .site .it-opts .seg{flex-wrap:wrap}
.s7 .site .it-sum{margin:0;color:var(--ink-2);font-size:14px;line-height:1.7}
.s7 .site .it-ask{min-height:48px;justify-content:center;font-size:15px}
.s7 .site .ph-h.it-dark{background:linear-gradient(135deg,var(--navy) 0%,var(--navy-2) 100%);color:#fff;border-bottom:0;padding:34px 0 30px}
.s7 .site .ph-h.it-dark .crumb,.s7 .site .ph-h.it-dark .crumb a{color:rgba(255,255,255,.8)}
.s7 .site .ph-h.it-dark .cat{color:rgba(255,255,255,.85)}
.s7 .site .ph-h.it-dark h1{color:#fff;font-size:32px;margin-top:4px}
.s7 .site .ph-h.it-dark p{color:rgba(255,255,255,.85)}
.s7 .site .pg-b.it-case{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}   /* over .pg-b's column */
.s7 .site .it-case .pg-art{max-width:none}
.s7 .site .it-side .c-b{display:flex;flex-direction:column;gap:8px}
.s7 .site .it-side .h-b .btn.gh-l{color:var(--ink);border-color:var(--line-2)}
.s7 .site .it-more{color:var(--teal-ink);font-weight:700;text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.s7 .s-acts .btn.s-own{background:transparent;color:#fff;border-color:rgba(255,255,255,.45)}
.s7 .s-acts .btn.s-own:hover{background:rgba(255,255,255,.12)}
.s7 .mnav a.mnl.s-own{display:none}
.s7 .site.drawer .s-nav{visibility:hidden}
.s7 .site.drawer .s-menu-btn{display:inline-grid}
.s7 .site.drawer .mnav{display:block;position:sticky;top:60px;z-index:6;background:var(--card);border-bottom:1px solid var(--line);max-height:calc(100vh - 60px);overflow:auto;padding:4px max(14px,calc((100% - 1240px)/2)) 10px}
.s7 .site.drawer .mnav details{border-bottom:1px solid var(--line)}
.s7 .site.drawer .mnav summary{padding:12px 4px;font-weight:700;cursor:pointer;list-style:none;display:flex;justify-content:space-between;min-height:44px;align-items:center}
.s7 .site.drawer .mnav summary::-webkit-details-marker{display:none}
.s7 .site.drawer .mnav summary:after{content:"+";color:var(--teal-ink);font-weight:800}
.s7 .site.drawer .mnav details[open] summary:after{content:"−"}
.s7 .site.drawer .mnav .mnh{display:block;font-size:12px;color:var(--teal-ink);font-weight:800;padding:8px 4px 2px}
.s7 .site.drawer .mnav a{display:flex;align-items:center;padding:7px 12px;color:var(--ink);font-size:13.5px;min-height:40px;text-decoration:none}
.s7 .site.drawer .mnav a.mnl{padding:12px 4px;font-weight:700;font-size:14px;min-height:44px;border-bottom:1px solid var(--line)}
/* «ابدأ الخدمة»'s arrow points the reader's way: ← in Arabic, → in English */
.s7:not(.en) .svc-start .btn.teal svg{transform:scaleX(-1)}
/* the site's sections keep their own space (the shell's reset of the old <section> padding is an id rule: this one outranks it) */
.s7 #s7content .site .s-sec{padding:30px 0 4px;margin:0}
.s7 .site .s-sec .sp-sh h2{font-size:20px}
/* S-18 a service's page, S-19 the catalogue */
.s7 .site .ph-h{background:var(--card);border-bottom:1px solid var(--line);padding:22px 0 18px}
.s7 .site .ph-h .crumb{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12.5px;color:var(--mut);margin-bottom:8px}
.s7 .site .ph-h .crumb a{color:var(--teal-ink);text-decoration:none}
.s7 .site .ph-h .crumb i{font-style:normal;color:var(--mut-2)}
.s7 .site .ph-h .band{height:6px;border-radius:3px;background:linear-gradient(90deg,var(--teal),var(--navy-2));width:120px;margin-bottom:12px}
.s7 .site .ph-h h1{font-size:28px;font-weight:800;margin:0}
.s7 .site .ph-h p{margin:6px 0 0;color:var(--mut);max-width:62ch}
.s7 .site .svc-p{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start;padding-top:22px}
.s7 .site .facts-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:6px}
.s7 .site .fact{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.s7 .site .fact small{display:block;color:var(--mut);font-size:12px}
.s7 .site .fact b{display:block;font-size:15px;font-weight:800;margin-top:2px}
.s7 .site .need:not(:where(.work *)){list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.s7 .site .need li:not(:where(.work *)){display:flex;align-items:center;gap:9px;font-size:13.5px}
.s7 .site .need li svg:not(:where(.work *)){width:20px;height:20px;border-radius:6px;background:var(--teal-soft);color:var(--teal-ink);padding:3px;flex:none}
.s7 .site .steps:not(:where(.work *)){list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;counter-reset:s}
.s7 .site .steps li:not(:where(.work *)){display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:start;font-size:13.5px}
.s7 .site .steps li:not(:where(.work *)):before{counter-increment:s;content:counter(s);width:26px;height:26px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:800;font-family:var(--en)}
.s7 .site .steps li.end:not(:where(.work *)):before{content:"✓";background:var(--green);color:var(--on-status)}
.s7 .site .steps li b:not(:where(.work *)){display:block}
.s7 .site .steps li small:not(:where(.work *)){color:var(--mut);font-size:12.5px;line-height:1.6}
.s7 .site .after{font-size:13.5px;max-width:62ch;margin:0;color:var(--ink-2)}
.s7 .site .svc-start{position:sticky;top:76px;display:flex;flex-direction:column;gap:10px}
.s7 .site .svc-start .btn{width:100%;justify-content:center;padding:11px 14px;font-size:14px}
.s7 .site .svc-start .hint{text-align:center;margin:8px 0 0;font-size:12px}
.s7 .site .owner{display:flex;align-items:center;gap:9px;font-size:12.5px}
.s7 .site .owner b{display:block;color:var(--ink)}
.s7 .site .owner .hint{display:block}
.s7 .site .cat-p{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;padding-top:22px}
.s7 .site .cat-p>.pg-hits{grid-column:2;display:flex;flex-direction:column;gap:8px}   /* the site's pages that say the word, under the services (lane public-portals, piece 3) */
.s7 .site .facets{display:flex;flex-direction:column;gap:14px}
.s7 .site .facets .in{min-height:40px}
.s7 .site .facet h4{font-size:12px;color:var(--mut);margin:0 0 6px;font-weight:700}
.s7 .site .facet .fo{display:flex;gap:8px;align-items:center;font-size:13px;padding:6px 4px;border-radius:8px;color:var(--ink);text-decoration:none;min-height:36px}
.s7 .site .facet .fo:hover{background:var(--hover)}
.s7 .site .facet .fo .rd{width:16px;height:16px;border-radius:50%;border:2px solid var(--line-2);flex:none}
.s7 .site .facet .fo.on .rd{border:5px solid var(--teal-ink)}
.s7 .site .facet .fo .cb{width:16px;height:16px;border-radius:4px;border:2px solid var(--line-2);flex:none;display:grid;place-items:center}
.s7 .site .facet .fo.on .cb{background:var(--teal-ink);border-color:var(--teal-ink);color:#fff}
.s7 .site .facet .fo .cb svg{width:12px;height:12px}
.s7 .site .list{display:flex;flex-direction:column;gap:8px}
.s7 .site .svc-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--card);text-align:start;width:100%;color:var(--ink);text-decoration:none}
.s7 .site .svc-row:hover{background:var(--hover)}
.s7 .site .svc-row .ti{width:40px;height:40px;border-radius:10px;background:var(--teal-soft);color:var(--teal-ink);display:grid;place-items:center}
.s7 .site .svc-row h3{font-size:14px;margin:0 0 2px}
.s7 .site .svc-row p{font-size:12.5px;color:var(--mut);margin:0}
.s7 .site .svc-row .facts{display:flex;gap:10px;font-size:12px;color:var(--mut);white-space:nowrap}
/* S-20 a space's page for visitors */
.s7 .site .space-h.site-sp{margin:0;border-radius:0}
.s7 .site .space-h.site-sp .wrap{padding-top:18px}
.s7 .site .space-b{padding-bottom:10px}
.s7 .site .space-b .sp-sec{padding-top:24px}
/* S-23 a page · S-24 a list · S-25 an item · the sitemap · an app at a place (lane public-portals, piece 3 — 92-pages.js) */
.s7 .site .pg-b{padding-top:22px;display:flex;flex-direction:column;gap:14px}
.s7 .site .ph-h .pg-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:12.5px;color:var(--mut);margin-bottom:6px}
.s7 .site .ph-h .pg-meta .cat{background:var(--teal-soft);color:var(--teal-ink);border-radius:999px;padding:2px 10px;font-weight:700}
.s7 .site .pg-art{max-width:880px}
.s7 .site .pg-art .c-b{display:flex;flex-direction:column;gap:12px;padding:20px 22px}
.s7 .site .pg-art .rich{font-size:14.5px;line-height:1.8;color:var(--ink)}
.s7 .site .pg-art .rich h3,.s7 .site .pg-art .rich h4{margin:14px 0 6px}
.s7 .site .pg-art .rich ul,.s7 .site .pg-art .rich ol{padding-inline-start:22px;margin:6px 0}
.s7 .site .pg-art .rich a{color:var(--teal-ink);text-decoration:underline}
.s7 .site .pg-im{width:100%;max-height:380px;object-fit:cover;border-radius:var(--r-l);display:block}
.s7 .site .pg-ev .c-b{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 14px}
.s7 .site .pg-ev .c-b>div{flex:1;min-width:160px;display:flex;flex-direction:column}
.s7 .site .pg-ev svg.i{color:var(--teal-ink)}
.s7 .site .pg-acts{display:flex;gap:8px;flex-wrap:wrap;margin:0}
.s7 .site .pg-src{margin:0}
.s7 .site .pg-cats{display:flex;gap:6px;flex-wrap:wrap}
.s7 .site .pg-cats .chip{text-decoration:none;min-height:32px}
.s7 .site .pg-news{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.s7 .site .pg-faq{display:flex;flex-direction:column;gap:8px;max-width:880px}
.s7 .site .pg-faq summary{padding:12px 16px;font-weight:700;cursor:pointer;min-height:44px}
.s7 .site .pg-faq .c-b{padding:0 16px 14px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.s7 .site .pg-map{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:14px;align-items:start}
.s7 .site .pg-map h2{font-size:16px;margin:0 0 10px}
.s7 .site .pg-map ul{list-style:none;margin:0;padding:0}
.s7 .site .pg-map .sm-t ul{padding-inline-start:16px;border-inline-start:2px solid var(--line);margin:6px 0 6px 4px}
.s7 .site .pg-map li{margin:4px 0}
.s7 .site .pg-map a{color:var(--ink);text-decoration:none;min-height:28px;display:inline-flex;align-items:center}
.s7 .site .pg-map a:hover{color:var(--teal-ink)}
.s7 .site .pg-map .sm-l a{color:var(--teal-ink);font-size:13px}
.s7 .site .pg-b .notice{background:var(--amber-bg);color:var(--amber-ink);border-radius:10px;padding:8px 12px;font-size:13px}
@container frame (max-width: 700px){
  .s7 .site .pg-map{grid-template-columns:1fr}
  .s7 .site .pg-art .c-b{padding:14px}
}
/* S-01 the door */
.s7 .door{min-height:calc(100vh - 140px);display:grid;grid-template-columns:minmax(0,1fr);place-items:center;padding:40px 16px}
.s7 .door .card{width:440px;max-width:100%;padding:24px}
.s7 .door .d-mark{display:flex;align-items:center;gap:8px;margin-bottom:14px}
.s7 .door .d-mark .r-mark{background:var(--navy)}
.s7 .door h1{font-size:22px;font-weight:800;margin:0 0 4px}
.s7 .door .lead{color:var(--mut);font-size:13.5px;margin:0 0 16px}
.s7 .door .ways>.btn{width:100%;justify-content:center;padding:10px 14px;font-size:14px}
.s7 .door .ways .hint{text-align:center;font-size:12px;margin:6px 0 0}
.s7 .door .or{display:flex;align-items:center;gap:10px;color:var(--mut);font-size:12px;margin:16px 0 10px}
.s7 .door .or::before,.s7 .door .or::after{content:'';flex:1;border-top:1px solid var(--line)}
.s7 .door .d-q{min-height:40px;margin-bottom:8px}
.s7 .door .d-list{max-height:280px;overflow:auto;border:1px solid var(--line);border-radius:var(--r-m);padding:4px}
.s7 .door .d-list .mrow{width:100%;text-align:start}
.s7 .door .d-g{font-size:12px;color:var(--mut);font-weight:700;padding:8px 8px 2px}
.s7 .door .terms{font-size:12px;color:var(--mut);margin-top:16px;line-height:1.6}
.s7 .door .d-ways{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.s7 .door .d-ways .btn.on{border-color:var(--teal-ink);color:var(--teal-ink)}
.s7 .door .d-form{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.s7 .door .d-form .d-f{display:flex;flex-direction:column;gap:4px;font-size:12.5px;color:var(--mut)}
.s7 .door .d-form .d-f .in{min-height:40px}
.s7 .door .d-form>.btn.pri{justify-content:center}
.s7 .door .d-form .hint{font-size:12px;margin:0}
.s7 .door .d-say,.s7 .me-g .d-say{color:var(--rose);font-size:12.5px;margin:0}
.s7 .door .d-wait{font-size:13px;margin:0}
/* the profile's ways in (5 Oct 2026, lane signin): a key to type, recovery codes, a link's code */
.s7 .me-g .w-key{font-family:ui-monospace,monospace;letter-spacing:1px;word-break:break-all;direction:ltr;unicode-bidi:isolate}
.s7 .me-g .w-codes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;font-family:ui-monospace,monospace;direction:ltr;margin:8px 0}
.s7 .me-g .w-qr{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap;margin:8px 0}
.s7 .me-g .w-qr svg{flex:none;background:#fff;padding:6px;border-radius:8px}
.s7 .me-g .w-form{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:8px}
.s7 .me-g .w-form .in{min-height:36px;max-width:180px}
.s7 .door .terms a{color:var(--teal-ink)}
/* the footer */
.s7 .s-foot{margin-top:36px;background:var(--navy);color:rgba(255,255,255,.78);padding:20px 0}
.s7 .s-foot .wrap{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12.5px;align-items:center}
.s7 .s-foot .s-links{display:flex;gap:14px;flex-wrap:wrap}
.s7 .s-foot a{color:rgba(255,255,255,.9);min-height:32px;display:inline-flex;align-items:center}

/* ═══════════════ the frame: rail, top bar, content, bottom bar (S-15, S-16, S-22) ═══════════════ */
.s7 .rail{background:var(--card);border-inline-end:1px solid var(--line);display:flex;flex-direction:column;padding:10px 10px;overflow:auto;position:relative;z-index:3;min-height:0;scrollbar-width:thin}
.s7 .rail .r-brand{display:flex;align-items:center;gap:9px;padding:6px 6px 10px;border-radius:var(--r-m);cursor:pointer;width:100%;text-align:start;color:var(--ink);min-height:44px}
.s7 .rail .r-brand:hover{background:var(--hover)}
.s7 .r-mark{width:30px;height:30px;border-radius:9px;background:var(--navy);display:grid;place-items:center;flex:none;color:var(--teal);font-weight:800;font-size:13px;overflow:hidden}
.s7 .r-mark i{width:12px;height:12px;border-radius:3px;background:var(--teal);display:block}
.s7 .r-mark.sdot{color:#fff}
.s7 .rail .r-brand b{display:block;font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s7 .rail .r-brand small{display:block;font-size:12px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s7 .rail .r-brand>div{flex:1;min-width:0}
.s7 .r-caret{color:var(--mut);font-size:10px;flex:none}
.s7 .r-hd{font-size:12px;color:var(--mut);letter-spacing:.04em;margin:12px 10px 4px;display:flex;align-items:center;justify-content:space-between;min-height:20px}
.s7 .r-hd button{color:var(--mut);width:24px;height:24px;border-radius:5px;display:grid;place-items:center}
.s7 .r-hd button:hover{background:var(--hover);color:var(--ink)}
.s7 .r-it{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:9px;font-size:13.5px;width:100%;text-align:start;color:var(--ink);position:relative;min-height:36px;text-decoration:none}
.s7 .r-it:hover{background:var(--hover);color:var(--ink)}
.s7 .r-it.on{background:var(--navy);color:#fff}
.s7 .r-it .lbl{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.s7 .r-it .kbd,.s7 .r-it .badge{margin-inline-start:auto}
.s7 .r-it.sub{padding-inline-start:38px;font-size:13px}
.s7 .r-it .caret{width:18px;height:18px;display:grid;place-items:center;color:var(--mut);flex:none;transition:transform .15s}
.s7 .r-it .caret.open{transform:rotate(180deg)}
/* the rail's sections (Ahmed, 29 Sep): the eye and the pen beside every heading, in sight; the pen's list with ↑ ↓ and an eye per row */
.s7 .r-hd>span{flex:1;min-width:0}
.s7 .r-hd .r-tools{display:flex;align-items:center;gap:2px;flex:none}
.s7 .r-hd .r-tools button.on{background:var(--teal-soft);color:var(--teal-ink)}
.s7 .r-it.r-ed{cursor:default;padding-block:3px;min-height:34px}
.s7 .r-it.r-ed:hover{background:transparent}
.s7 .r-it.r-ed .r-edb{display:flex;align-items:center;gap:1px;margin-inline-start:auto;flex:none}
.s7 .r-it.r-ed .r-edb button{width:26px;height:26px;border-radius:6px;display:grid;place-items:center;color:var(--mut)}
.s7 .r-it.r-ed .r-edb button:hover{background:var(--hover);color:var(--ink)}
.s7 .r-it.r-ed .r-edb button:disabled{opacity:.35;cursor:default;background:transparent}
.s7 .r-it.r-ed.off>.lbl{text-decoration:line-through;color:var(--mut)}
.s7 .r-it.r-ed.off>.dot{opacity:.5}
.s7.mini .rail .r-hd .r-tools{display:none}
.s7 .r-it.on .caret{color:#fff}
.s7 .r-it.on .badge{background:var(--teal);color:var(--on-teal)}
.s7 .r-sp{flex:1}
.s7 .r-foot{border-top:1px solid var(--line);padding-top:8px;margin-top:8px}
/* her chip, at the top bar's end (TASK 2501, the approved desk): a pill with her mark, her name and the caret; its menu drops under it */
.s7 .t-me{display:inline-flex;align-items:center;gap:8px;flex:none;max-width:220px;height:36px;padding:0 6px 0 10px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--ink);cursor:pointer}
[dir="rtl"] .s7 .t-me{padding:0 10px 0 6px}
.s7 .t-me:hover{background:var(--hover)}
.s7 .t-me .av{width:26px;height:26px;font-size:12px;flex:none}
.s7 .t-me b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.s7 .t-me .r-caret{font-size:10px;color:var(--mut)}
.s7 .rail .r-apps{display:block}
/* her apps are ordered by dragging a row (decision 930 #4): the row in hand fades, and a line shows where it will land */
.s7 .rail .r-apps .r-it.dragging{opacity:.45}
.s7 .rail .r-apps .r-it.drop-b{box-shadow:0 -2px 0 var(--teal)}
.s7 .rail .r-apps .r-it.drop-a{box-shadow:0 2px 0 var(--teal)}
/* the rail's own width, at its foot (decision 930 #3): its three widths; folded, one button that opens it */
.s7 .r-mode{display:flex;flex-direction:column;gap:3px;padding:4px 10px 2px;font-size:12px;color:var(--mut)}
.s7 .r-mode .seg{padding:1px;display:flex}.s7 .r-mode .seg button{padding:2px 6px;min-height:24px;font-size:12px;flex:1}
.s7 .rail .r-open{display:none;width:100%;cursor:pointer;color:var(--mut)}
.s7.mini .rail .r-open{display:flex;justify-content:center}
/* the folded rail: icons only, names as tooltips; «auto» opens over the page while the pointer is in it */
.s7.mini .rail{padding:10px 8px}
.s7.mini .rail .r-brand{justify-content:center;padding:6px 0 10px}
.s7.mini .rail .r-brand>div,.s7.mini .rail .r-caret,.s7.mini .rail .r-it .lbl,.s7.mini .rail .r-it .kbd,.s7.mini .rail .r-it .caret,.s7.mini .rail .r-hd span,.s7.mini .rail .r-hd button,.s7.mini .rail .r-mode{display:none}
.s7.mini .rail .r-hd{height:1px;background:var(--line);margin:10px 6px;padding:0;min-height:0}
.s7.mini .rail .r-it{justify-content:center;padding:9px 0}
.s7.mini .rail .r-it.sub{padding-inline-start:0}
.s7.mini .rail .r-it .badge{position:absolute;top:2px;inset-inline-end:4px;margin:0;font-size:9px;line-height:14px;min-width:15px;padding:0 4px}
.s7.auto-open .shell{grid-template-columns:var(--rail-mini) minmax(0,1fr)}
.s7.auto-open .rail{width:var(--rail-w);box-shadow:var(--shadow);z-index:12}
/* the main column */
.s7 .main:not(:where(.work *)){display:flex;flex-direction:column;min-width:0;min-height:0;position:relative}
.s7 .top:not(:where(.work *)){height:var(--top-h);flex:none;display:flex;align-items:center;gap:8px;padding:0 16px;background:var(--card);border-bottom:1px solid var(--line);z-index:2}
.s7 .crumb:not(:where(.work *)){display:flex;align-items:center;gap:6px;font-size:13px;color:var(--mut);min-width:0;white-space:nowrap;overflow:hidden}
.s7 .crumb a:not(:where(.work *)){color:var(--mut)}.s7 .crumb a:hover:not(:where(.work *)){color:var(--ink)}
.s7 .crumb b:not(:where(.work *)){color:var(--ink);font-weight:700;overflow:hidden;text-overflow:ellipsis}
.s7 .crumb i:not(:where(.work *)){font-style:normal;color:var(--mut-2)}
.s7 .top .t-sp{flex:1}
.s7 .t-search{display:flex;align-items:center;gap:8px;width:min(420px,40%);background:var(--sunk);border:1px solid var(--line);border-radius:10px;padding:6px 10px;color:var(--mut);font-size:12.5px;text-align:start;min-height:34px;cursor:pointer}
.s7 .t-search:hover{border-color:var(--line-2)}
.s7 .t-search span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s7 .content{flex:1;min-height:0;overflow:auto;padding:20px 24px 24px;position:relative}
/* an old page drawn inside the frame takes the frame's own gutter (lane v7-builder's note of 28 Sep 11:22: the builder and the
   organisation's settings ran edge to edge) — the old desk's wrap, which gave it one, is not used inside the frame */
.s7 .legacy-note{margin:16px 24px 0;font-size:12px;color:var(--mut);background:var(--sunk);border:1px dashed var(--line-2);border-radius:8px;padding:6px 12px}
.s7 .bar-bottom{display:none}
.s7 .detail .d-back{display:none}

/* ═══════════════ piece 13 — the system-wide review (Ahmed, 29 Sep 2026: «crosscheck each on various devices») ═══════════════ */
/* a narrow desktop: the page under 900 px — a tablet, a window at half a screen (the root's «narrow», s7Layout in 10-shell.js). The frame
   stays the desktop's (the rail, the top bar); the page is laid out as on the phone: Today's list alone and its detail in its place,
   a record's side cards folded under its form, a setting's control under its name, the profile's cards one under another */
.s7.narrow .today:not(:where(.work *)){grid-template-columns:minmax(0,1fr)}
.s7.narrow .detail{position:static;max-height:none}
.s7.narrow .today.d-open>:first-child,.s7.narrow .page-h.d-open{display:none}
.s7.narrow .detail.hide{display:none}
.s7.narrow .detail .d-back{display:inline-grid}
.s7.narrow .rec{grid-template-columns:minmax(0,1fr)}
.s7.narrow .rec>.side{position:static}
.s7.narrow .side details.card>summary:not(:where(.work *)){cursor:pointer}
.s7.narrow .side details.card>summary .c-h{pointer-events:auto}
.s7.narrow .side details.card>summary .c-h::after{content:"";width:8px;height:8px;border-inline-end:2px solid var(--mut);border-bottom:2px solid var(--mut);transform:rotate(45deg);margin-inline-start:auto;transition:transform .15s}
.s7.narrow .side details.card[open]>summary .c-h::after{transform:rotate(-135deg)}
.s7.narrow .set-row{flex-direction:column;align-items:stretch;gap:8px}
.s7.narrow .set-row .sc{max-width:none;flex-wrap:wrap}
.s7.narrow .set-row .sc .in,.s7.narrow .set-row .sc .bil{width:100%}
.s7.narrow .set-row .sc .fwrap{width:100%}
.s7.narrow .set-row .sc .fwrap .dd{inset-inline-start:0;inset-inline-end:auto}
.s7.narrow .me-g{grid-template-columns:1fr}
.s7.narrow .settings{grid-template-columns:1fr;gap:12px}
.s7.narrow .s-idx{position:static;flex-direction:row;overflow-x:auto;gap:4px;padding-bottom:4px;scrollbar-width:none}
.s7.narrow .s-idx .r-it{flex:none;width:auto;font-size:12.5px;padding:6px 10px}
.s7.narrow .c-h{flex-wrap:wrap}
/* …and where the page is under 650 px (the frame under 900 with the rail open): Today's rows and the calendar as on the phone */
@container frame (max-width:900px){
  .s7.narrow .row:not(:where(.work *)){grid-template-columns:auto minmax(0,1fr)}
  .s7.narrow .row .r-end{grid-column:2;justify-content:flex-start}
  .s7.narrow .week{grid-template-columns:minmax(0,1fr)}
  .s7.narrow .week .day{min-height:0}
  .s7.narrow .week .dh{flex-direction:row;align-items:baseline;gap:8px}
  .s7.narrow .cal-bar .seg{flex:1 1 100%}
  .s7.narrow .cal-m .cm-h,.s7.narrow .cal-m .cm-b{gap:3px}
  .s7.narrow .cal-m .dn-l{display:none}
  .s7.narrow .cal-m .dn-s{display:inline}
  .s7.narrow .cal-m .cm-d{min-height:0;padding:2px;border-radius:8px}
  .s7.narrow .cal-m .cm-n{min-height:40px;flex-direction:column;justify-content:center;gap:1px;padding:2px}
  .s7.narrow .cal-m .cm-c{display:inline-block}
  .s7.narrow .cal-m .dit,.s7.narrow .cal-m .cm-more{display:none}
  .s7.narrow .cal-q{grid-template-columns:minmax(0,1fr)}
  .s7.narrow .cal-y{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
}
/* the site on a tablet: its menu from the button (its entries do not fit under 1100 px — Arabic at 768, English at 1024); a service's
   row keeps its description, its facts under it */
@container frame (max-width:1100px){
  .s7 .s-nav{display:none}
  .s7 .s-menu-btn{display:inline-grid}
  .s7 .mnav{display:block;position:sticky;top:60px;z-index:6;background:var(--card);border-bottom:1px solid var(--line);max-height:calc(100vh - 60px);overflow:auto;padding:4px 14px 10px}
  .s7 .mnav details{border-bottom:1px solid var(--line)}
  .s7 .mnav summary{padding:12px 4px;font-weight:700;cursor:pointer;list-style:none;display:flex;justify-content:space-between;min-height:44px;align-items:center}
  .s7 .mnav summary::-webkit-details-marker{display:none}
  .s7 .mnav summary:after{content:"+";color:var(--teal-ink);font-weight:800}
  .s7 .mnav details[open] summary:after{content:"−"}
  .s7 .mnav .mnh{display:block;font-size:12px;color:var(--teal-ink);font-weight:800;padding:8px 4px 2px}
  .s7 .mnav a{display:flex;align-items:center;padding:7px 12px;color:var(--ink);font-size:13.5px;min-height:40px;text-decoration:none}
  .s7 .mnav a.mnl{padding:12px 4px;font-weight:700;font-size:14px;min-height:44px;border-bottom:1px solid var(--line)}
  .s7 .site .svc-row{grid-template-columns:40px minmax(0,1fr)}
  .s7 .site .svc-row .facts{grid-column:2;white-space:normal;flex-wrap:wrap}
}
/* a long name stays in its card: a file in «المرفقات» (the link gave its name no room to end with «…»), an address or a word in an old
   table's cell, and an old table wider than its card scrolls inside it — the page no longer scrolls sideways with them */
.s7 .file>a{flex:1;min-width:0;display:flex;align-items:center}
.s7 .work table td{overflow-wrap:anywhere}
.s7 .work .tbl{overflow-x:auto;max-width:100%}
/* the old parts' text at 4.5:1 (C-01): a status colour as text takes its ink (green, amber); a closed window, a space's empty tab and a
   total are told apart without fading their words; a star not chosen is an icon at 3:1 */
.s7 .work .pill.ok,.s7 .work .phdec,.s7 .work .aptcell:not(.on){color:var(--green-ink)}
.s7 .work .wdue{color:var(--amber-ink)}
.s7 .work .b-review{background:var(--amber-ink)}
.s7 .work .card.shut{opacity:1}
/* 6 Oct 2026 (DESIGN-v7-platform-fixes-correspondence, P-20 · 0.2, decision D9 recommended): Arabic never below 12 px — the old parts drawn
   inside the shell too. The old stylesheet (v6.css) sets these at 10.5–11.5 px; a monospace id, a digit and an initial keep their size */
.s7 .work :is(.pill,.hint,.dlbl,.cardmeta,.cardhd span,.cardnote,.phstep>span,.phlock>span,.phdec,.b.sm,.tnk,.vtxt span,.shv i,.rngl i,.wlater,.wnext .hint,.need,.misst,.repf .sub>span,.fld .fhint,.fhint,.rem i,.prow span,.qrow span,.trtot,.tn .sub>span,.lgrp,table.lt th,table.lt td.n,.doc,.doc em,.doc i,.ev b,.link i,.meta .ref,.callg,.askhint,.askfail,.charthd i,.proof .s,.badge,.showstrip,.rosthd span,.rostn,details.phdone summary span,.cal.hrs .calday,.gone,.ivsep,.ivstrip.phbar .stp span,.tnmoney i,.wwho,.wnote,.said i,.rollrow span,.tally .tk,.tally .tx,.tlyn,.stat span,.rempty,.dtecho,.fphotop,.docs .ano){font-size:12px}
/* the old parts' buttons that ask for the kit (`btn` — ui.js bcls, the referrals' table and the windows' hands; 6 Oct 2026, P-10 b): the kit's
   small outlined button, its ghost and its primary, as 0.8 draws them — the kit's own rules leave the old parts alone (:not(.work *)) */
.s7 .work .btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:7px 14px;border-radius:9px;border:1px solid var(--line-2);background:var(--card);color:var(--ink);font-weight:600;font-size:13px;line-height:1.3;cursor:pointer;text-decoration:none;white-space:nowrap;width:auto;margin:0;font-family:inherit;transition:background .15s,border-color .15s,color .15s}
.s7 .work .btn:hover{background:var(--hover);color:var(--ink)}
.s7 .work .btn.sm{padding:5px 10px;font-size:12.5px;border-radius:8px;min-height:30px}
.s7 .work .btn.gh{border-color:transparent;background:transparent;color:var(--teal-ink)}
.s7 .work .btn.gh:hover{background:var(--teal-soft);color:var(--teal-ink)}
.s7 .work .btn.pri{background:var(--navy);border-color:var(--navy);color:#fff}
.s7 .work .btn.pri:hover{background:var(--navy-2);border-color:var(--navy-2);color:#fff}
.s7 .work .btn[disabled]{opacity:.5;pointer-events:none}
.s7 .work .propopen .btn{width:auto;padding:5px 10px}   /* «＋ إضافة إحالة» is a small button under its table, not a bar across it (v6.css: .work .propopen button{width:100%}) */
.s7 .work .card.shut:not(.win){background:var(--sunk)}
.s7 .work .wstabs .chip.dim{opacity:1;color:var(--mut)}
.s7 .work .stars .st:not(.on):not(:hover){color:var(--mut-2)}
.s7 .work .tbtot{background:var(--sunk);color:var(--mut)}
.s7 .work .tbtot i{color:var(--mut)}
.s7 .work .tbtot b{color:var(--teal-ink)}
/* the old list's «⤢» (open it whole): the shell's small button, not the browser's */
.s7 .work .vt.lopen{font-family:inherit;border:0;background:transparent;color:var(--mut);border-radius:6px;padding:2px 6px;cursor:pointer}
.s7 .work .vt.lopen:hover{background:var(--hover);color:var(--ink)}

/* ═══════════════ the phone: a container query on the frame (0.3, S-22) ═══════════════ */
@container frame (max-width:760px){
  .s7 .shell{grid-template-columns:minmax(0,1fr)}
  .s7 .rail{display:none}
  .s7 .bar-bottom{display:flex;position:absolute;bottom:0;inset-inline:0;height:62px;background:var(--card);border-top:1px solid var(--line);justify-content:space-around;align-items:flex-start;padding:7px 4px 0;z-index:8}
  .s7 .bar-bottom button,.s7 .bar-bottom a{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:12px;color:var(--mut);width:64px;min-height:44px;position:relative;font-weight:600;text-decoration:none}
  .s7 .bar-bottom .on{color:var(--teal-ink)}
  .s7 .bar-bottom .on::before{content:"";position:absolute;top:-8px;width:26px;height:3px;border-radius:2px;background:var(--teal)}
  .s7 .bar-bottom .mid span{width:48px;height:48px;border-radius:15px;background:var(--teal);color:var(--on-teal);display:grid;place-items:center;margin-top:-22px;box-shadow:var(--shadow)}
  .s7 .bar-bottom .n{position:absolute;top:-4px;inset-inline-end:12px;background:var(--rose);color:var(--on-status);font-size:9px;border-radius:999px;padding:0 4px;line-height:14px;font-weight:700;font-family:var(--en)}
  .s7 .top:not(:where(.work *)){padding:0 12px;gap:6px}
  .s7 .t-btn{width:40px;height:40px}
  .s7 .t-search{width:40px;min-width:40px;min-height:40px}
  .s7 .top .btn.pri.sm:not(:where(.work *)){min-width:40px;padding:5px 11px}
  .s7 .crumb:not(:where(.work *)){flex:1}.s7 .crumb a:not(:where(.work *)),.s7 .crumb span:not(:where(.work *)),.s7 .crumb i:not(:where(.work *)){display:none}.s7 .crumb b:not(:where(.work *)){display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .s7 .top .t-sp{display:none}
  .s7 .t-search{padding:0;justify-content:center;border-radius:9px}
  .s7 .t-search span,.s7 .t-search .kbd{display:none}
  .s7 .top .btn.pri.sm span:not(:where(.work *)){display:none}
  /* the room under the page for the bottom bar is a block at the end, not padding: a sticky bar measures from the content box, so it lands flush on the bar */
  .s7 .content{padding:12px}
  .s7 .content::after{content:"";display:block;height:78px}
  .s7 .legacy-note{margin:12px 12px 0}
  .s7 .btn:not(:where(.work *)),.s7 .t-btn,.s7 .chip:not(:where(.work *)),.s7 .seg button,.s7 .tabs button,.s7 .r-it,.s7 .mrow,.s7 .pal .p-r,.s7 .menu a,.s7 .menu button.mi,.s7 .menu .track button{min-height:40px}
  .s7 .btn.xs,.s7 .btn.sm:not(:where(.work *)){min-height:40px}
  .s7 .sw{height:26px;width:46px}.s7 .sw::after{width:20px;height:20px}.s7 .sw.on::after,.s7 .sw[aria-checked="true"]::after{transform:translateX(-20px)}
  [dir="ltr"] .s7 .sw.on::after,[dir="ltr"] .s7 .sw[aria-checked="true"]::after{transform:translateX(20px)}
  .s7 .today:not(:where(.work *)){grid-template-columns:minmax(0,1fr)}
  .s7 .page-h .tools{max-width:100%;overflow-x:auto;scrollbar-width:none}
  .s7 .lane-h a{min-height:40px;display:inline-flex;align-items:center;padding:0 6px}
  .s7 .lane-h .hint{display:none}
  /* the detail takes the list's place (not a layer over wherever the list was scrolled — Ahmed, 29 Sep 2026); «رجوع» brings the list back */
  .s7 .detail{position:static;max-height:none}
  .s7 .today.d-open>:first-child,.s7 .page-h.d-open{display:none}
  .s7 .detail.hide{display:none}
  .s7 .detail .d-back{display:inline-grid}
  .s7 .row:not(:where(.work *)){grid-template-columns:auto minmax(0,1fr)}
  .s7 .board:not(:where(.work *)),.s7 .bcards{grid-template-columns:minmax(0,1fr)}
  .s7 .week{grid-template-columns:minmax(0,1fr)}
  .s7 .week .day{min-height:0}
  .s7 .week .dh{flex-direction:row;align-items:baseline;gap:8px}
  .s7 .week .dit,.s7 .cal-q .dit{min-height:40px;justify-content:center}
  /* the calendar's periods on the phone: the bar in two lines; a month's day its number and its count (a tap opens its week);
     the quarter's months one under another; the year in two columns */
  .s7 .cal-bar .seg{flex:1 1 100%}
  .s7 .cal-nav .t-btn{width:40px;height:40px}
  .s7 .cal-m .cm-h,.s7 .cal-m .cm-b{gap:3px}
  .s7 .cal-m .dn-l{display:none}
  .s7 .cal-m .dn-s{display:inline}
  .s7 .cal-m .cm-d{min-height:0;padding:2px;border-radius:8px}
  .s7 .cal-m .cm-n{min-height:40px;flex-direction:column;justify-content:center;gap:1px;padding:2px}
  .s7 .cal-m .cm-c{display:inline-block}
  .s7 .cal-m .dit,.s7 .cal-m .cm-more{display:none}
  .s7 .cal-q{grid-template-columns:minmax(0,1fr)}
  .s7 .cal-q .cq-h,.s7 .cal-y .cy-h{min-height:40px}
  .s7 .cal-y{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  /* «ممتدّ عبر هذه الفترة» on the phone: a record's name whole on its line, its dates under it */
  .s7 .outwk.spans .mrow{flex-wrap:wrap;row-gap:2px}
  .s7 .outwk.spans .mrow .r-t,.s7 .outwk.spans .mrow .r-m{flex:1 1 100%;white-space:normal;overflow:visible}
  .s7 .bcard .bc-t{min-height:40px;display:flex;align-items:center}
  .s7 .lane-h .lane-a{min-height:40px;display:inline-flex;align-items:center}
  .s7 .row .r-end{grid-column:2;justify-content:flex-start}
  .s7 .fields{grid-template-columns:1fr}
  /* S-05 on the phone: the header compresses, the strip scrolls, the side cards fold under the form, the action bar sticks above the bottom bar */
  .s7 .rec{grid-template-columns:minmax(0,1fr)}
  .s7 .rec>.side{position:static}
  .s7 .rec-h h1{font-size:19px}
  .s7 .rec-h .meta{font-size:12px;gap:4px 10px}
  .s7 .rec-h .acts .btn.sm span{display:none}
  .s7 .rec-h .acts .t-btn{width:40px;height:40px}
  .s7 .side details.card>summary:not(:where(.work *)){cursor:pointer}
  .s7 .side details.card>summary .c-h{pointer-events:auto}
  .s7 .side details.card>summary .c-h::after{content:"";width:8px;height:8px;border-inline-end:2px solid var(--mut);border-bottom:2px solid var(--mut);transform:rotate(45deg);margin-inline-start:auto;transition:transform .15s}
  .s7 .side details.card[open]>summary .c-h::after{transform:rotate(-135deg)}
  .s7 .f-act{bottom:50px;margin:16px -12px -12px;padding:10px 12px;border-radius:0}
  .s7 .f-act .hint{flex-basis:100%}
  /* the step's buttons fill the bar: side by side when they fit, else each on a full line — never one here and one there */
  .s7 .f-act .hint:empty,.s7 .f-act .sp{display:none}
  .s7 .f-act .btn{flex:1 1 auto}
  /* a service's start tile says its whole name in two lines rather than cutting it */
  .s7 .start>span:not(.dot){white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}   /* the name wraps to two lines; the mark keeps its own box, its letter in its middle (TASK 2502) */
  .s7 .pal.pick .starts{grid-template-columns:minmax(0,1fr)}
  /* the palette's rows: the name whole, what it opens under it; its footer names keys a phone has not */
  .s7 .pal .p-r{flex-wrap:wrap;row-gap:2px}
  .s7 .pal .p-r .t{white-space:normal}
  .s7 .pal .p-r .m{flex-basis:100%;padding-inline-start:36px;white-space:normal}
  .s7 .pal .p-f{display:none}
  /* «مشاركة» and «المزيد» open across the head, under its first row — not capped at the width of its three buttons */
  .s7 .rec-h .acts{position:static}
  .s7 .rec-h .acts .pop{width:auto;max-width:none;inset-inline:0;border-radius:var(--r-l)}
  /* the halls' grid on the phone: each hall's name on one line, held at the grid's edge while its hours scroll sideways under it */
  .s7 .work .cal td.un,.s7 .work .cal th.cnr{white-space:nowrap;max-width:none;position:sticky;inset-inline-start:0;z-index:1;background:var(--card)}
  .s7 .work .cal td.un{font-size:12px}
  /* an old table on the phone keeps its words whole (6 Oct 2026, P-10 c): «أُجيبت» no longer breaks in the middle; the table scrolls sideways
     inside its wrapper (.ltwrap, overflow-x:auto) instead. A cell outside a wrapper keeps overflow-wrap:anywhere for a long address */
  .s7 .work .ltwrap table td,.s7 .work .ltwrap table th{overflow-wrap:normal;word-break:keep-all;hyphens:none}
  .s7 .work .pill{white-space:nowrap}   /* a pill in a squeezed cell keeps its words on one line («أُجيبت», «قائمة»); on the desktop the old parts keep the old desk's wrapping (browser ux7e) */
  .s7 .space-h{margin:-12px -12px 12px;padding:14px 12px 0}
  .s7 .lst-f .t-q{width:100%}
  .s7 .lst-f .in.rng.sm{width:100%}
  .s7 .lst-f .in.rng.sm input{width:auto;flex:1}
  .s7 .rec-tbl td.ttl{min-width:160px;white-space:normal}
  .s7 .figs:not(:where(.work *)){grid-template-columns:1fr 1fr}
  .s7 .settings{grid-template-columns:1fr;gap:12px}
  .s7 .s-idx{position:static;flex-direction:row;overflow-x:auto;gap:4px;padding-bottom:4px;scrollbar-width:none}
  .s7 .s-idx .r-it{flex:none;width:auto;font-size:12.5px;padding:6px 10px}
  .s7 .set-row{flex-direction:column;align-items:stretch;gap:8px}
  .s7 .set-row .sc{max-width:none;flex-wrap:wrap}
  .s7 .set-row .sc .in,.s7 .set-row .sc .bil{width:100%}
  .s7 .set-row .sc .fwrap{width:100%}
  .s7 .set-row .sc .fwrap .dd{inset-inline-start:0;inset-inline-end:auto}
  .s7 .me-g{grid-template-columns:1fr}
  .s7 .cap>b{min-width:100%}
  .s7 .tbl td a:not(:where(.work *)),.s7 .tbl th a:not(:where(.work *)){display:inline-flex;align-items:center;min-height:40px}
  .s7 .dir-tbl td.who a{min-height:40px}
  /* S-22: every field, select and search box a 40 px target — its wrapper focuses its input (10-shell.js) */
  .s7 .in:not(:where(.work *)),.s7 .lst-f .in,.s7 .lst-f .t-q,.s7 .set-row .sc .in,.s7 .page-h .tools .in,.s7 .page-h .tools .in.sel.sm{min-height:40px}
  .s7 .set-row .sw-c{width:40px;height:40px}
  .s7 .lst-f .in.sm,.s7 .lst-f .in.sel.sm,.s7 .lst-f .in.rng.sm{min-height:40px}
  .s7 .s-idx .r-it{min-height:40px}
  .s7 .sp-sh a{display:inline-flex;align-items:center;min-height:40px}
  .s7 .bil .bt button:not(:where(.work *)){min-height:40px}
  .s7 .site .wrap{padding:0 12px}
  .s7 .s-top .wrap{height:54px;gap:8px}
  .s7 .s-nav{display:none}
  .s7 .s-menu-btn{display:inline-grid}
  .s7 .s-acts .btn.teal span{display:none}
  .s7 .s-acts .lang{min-height:40px}
  /* the organisation's name gives way before the header's buttons do: «Jeddah Chamber» and four buttons in 360 px */
  .s7 .s-logo{min-width:0;flex:0 1 auto}
  .s7 .s-logo>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
  /* the old parts' controls are targets of 40 px too (S-22): a list's view buttons, «+ جديد», a pen, a star, a time slot, a space's tabs,
     a choice of chips, the rich text's bar — the frame's id gives these the weight of the old stylesheet's own sizes */
  #s7 .work button,#s7 .work select,#s7 .work summary,#s7 .work .chip,#s7 .work .b,#s7 .work .wbtn{min-height:40px}
  #s7 .work .vt,#s7 .work .chip.pen,#s7 .work .stars .st,#s7 .work .rline .del,#s7 .work .richbar button{min-width:40px}
  #s7 .work table td a{padding-block:13px}   /* a link in an old table's cell: its target reaches 40 px, its line does not move */
  #s7 .work .charthd a{display:inline-flex;align-items:center;min-height:40px}
  /* the rich text's bar: its buttons 40 px, the bar wrapping (was 28 × 26) */
  .s7 .f .rich.edit .richbar:not(:where(.work *)){flex-wrap:wrap}
  .s7 .f .rich.edit .richbar button:not(:where(.work *)){width:40px;height:40px;min-height:40px}
  /* the kit's own small links: a space's parent under its name, an empty state's way on, a space named in the profile */
  .s7 .sp-sub a,.s7 .empty a,.s7 .cap b a{display:inline-flex;align-items:center;min-height:40px}
  /* «قيد التحرّك» on the phone: the title its own line, whole; its step, who holds it and its age under it — the age never pushed past
     the row (a step's long pill beside a title that keeps a third of the row left it no room) */
  .s7 .moving .mrow{flex-wrap:wrap;row-gap:4px}
  .s7 .moving .mrow .r-t{flex:1 1 calc(100% - 40px);white-space:normal;overflow:visible}
  .s7 .moving .mrow .pill{margin-inline-start:32px;max-width:none}
  .s7 .moving .mrow .r-m.age{margin-inline-start:auto}
  /* a button's words wrap inside the screen («I acknowledge and accept the marketplace's terms», «Back to Consulting engagement…») */
  .s7 .btn:not(:where(.work *)){white-space:normal;max-width:100%;text-align:center}

  .s7 .mnav{display:block;position:sticky;top:54px;z-index:6;background:var(--card);border-bottom:1px solid var(--line);max-height:calc(100vh - 54px);overflow:auto;padding:4px 14px 10px}
  .s7 .mnav details{border-bottom:1px solid var(--line)}
  .s7 .mnav summary{padding:12px 4px;font-weight:700;cursor:pointer;list-style:none;display:flex;justify-content:space-between;min-height:44px;align-items:center}
  .s7 .mnav summary::-webkit-details-marker{display:none}
  .s7 .mnav summary:after{content:"+";color:var(--teal-ink);font-weight:800}
  .s7 .mnav details[open] summary:after{content:"−"}
  .s7 .mnav .mnh{display:block;font-size:12px;color:var(--teal-ink);font-weight:800;padding:8px 4px 2px}
  .s7 .mnav a{display:flex;align-items:center;padding:7px 12px;color:var(--ink);font-size:13.5px;min-height:40px;text-decoration:none}
  .s7 .mnav a.mnl{padding:12px 4px;font-weight:700;font-size:14px;min-height:44px;border-bottom:1px solid var(--line)}
  .s7 .site .s-logo{min-height:40px}
  .s7 .kv dd a{display:inline-flex;align-items:center;min-height:40px}
  .s7 .site .s-hero{padding:26px 0 22px}
  .s7 .site .s-hero .wrap{grid-template-columns:1fr}
  .s7 .site .s-hero h1{font-size:24px}
  .s7 .site .s-hero .stats{grid-template-columns:1fr 1fr}
  .s7 .site .s-hero.h-stmt{padding:34px 0 28px}
  .s7 .site .s-hero.h-stmt h1{font-size:27px}
  .s7 .site .s-hero.h-pic{padding:56px 0 48px}
  .s7 .site .h-b .btn{flex:1 1 auto;justify-content:center}
  .s7 .site .s-figs .figs{grid-template-columns:1fr 1fr}
  .s7 .site .s-figs .fig b{font-size:24px}
  .s7 .site .s-text{grid-template-columns:minmax(0,1fr);gap:12px}
  .s7 .site .s-steps ol{grid-template-columns:minmax(0,1fr)}
  .s7 .site .s-cta{padding:28px 0}
  .s7 .site .s-cta p{font-size:17px}
  .s7 .s-acts .btn.s-own{display:none}
  .s7 .site .it-grid{grid-template-columns:1fr 1fr;gap:10px}
  .s7 .site .it-grid:not(.cases)>.it-card:first-child{grid-column:1/-1}   /* the phone: one big product, then two a row (the design's §1) */
  .s7 .site .it-grid.cases,.s7 .site .it-colls,.s7 .site .it-p,.s7 .site .pg-b.it-case{grid-template-columns:minmax(0,1fr)}
  .s7 .site .it-card .nb{padding:10px 12px 12px}
  .s7 .site .ph-h.it-dark h1{font-size:24px}
  .s7 .site .ph-h.it-trail{margin-bottom:12px}
  .s7 .mnav a.mnl.s-own{display:flex;color:var(--teal-ink)}
  .s7 .lk-blk{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"n t" "p p"}
  .s7 .lk-two,.s7 .lk-btn{grid-template-columns:minmax(0,1fr)}
  .s7 .site .h-q{flex-direction:column}
  .s7 .site .tasks a{min-height:40px}
  .s7 .site .svc-p{grid-template-columns:1fr}
  .s7 .site .facts-strip{grid-template-columns:1fr 1fr}
  .s7 .site .svc-start{position:static}
  .s7 .site .svc-p>.svc-start{order:-1}   /* S-22: the service page's start card moves under the head */
  .s7 .site .cat-p{grid-template-columns:1fr}
  .s7 .site .cat-p>.pg-hits{grid-column:auto}
  .s7 .site .facet .fo{min-height:40px}
  .s7 .site .svc-row{grid-template-columns:40px minmax(0,1fr)}
  .s7 .site .svc-row .facts{grid-column:2;white-space:normal;flex-wrap:wrap}
  .s7 .site .ph-h h1{font-size:22px}
  .s7 .site .ph-h .crumb a{min-height:40px;display:inline-flex;align-items:center}
  .s7 .door{padding:20px 12px;min-height:auto}
  .s7 .s-foot a{min-height:40px}
  .s7 .space-h .sp-mark{width:40px;height:40px;font-size:16px;border-radius:11px}
  .s7 .space-h h1{font-size:19px}
  .s7 .about{grid-template-columns:minmax(0,1fr)}
  .s7 .sp-nav button{min-height:40px}
  .s7 .srow{grid-template-columns:auto minmax(0,1fr)}
  .s7 .srow .stools{grid-column:2}
  .s7 .srow .stools .t-btn{width:40px;height:40px}
  .s7 .pal{top:0;inset-inline-start:0;transform:none;width:100%;max-height:100%;border-radius:0;border:0}
  [dir="rtl"] .s7 .pal{transform:none}
  .s7 .pop:not(:where(.work *)){top:var(--top-h);inset-inline:0;width:100%;max-width:100%;border-radius:0 0 14px 14px}
  .s7 .nt .t{min-height:40px;display:flex;flex-wrap:wrap;align-items:center;align-content:center}   /* S-22: a notification's line is its target */
  .s7 .menu{inset-inline:12px;width:auto;max-width:none;top:auto;bottom:74px;max-height:calc(100% - 90px)}
  .s7 .t-me{display:none}
  .s7 .sheet{width:100%;border:0}
  .s7 .tbl:not(:where(.work *)){font-size:12px}
}
/* ─── DNA fix round 3 (every organisation) ─── */
/* an app's saved lists beside the state filter (S-10) */
.s7 .lst-v{display:inline-flex;gap:6px;flex-wrap:wrap;align-items:center}
.s7 .lst-v .chip .badge{margin-inline-start:4px}
/* a derived page spans the content's width, above the step and the side cards */
.s7 .rec-pages{margin:0 0 16px}
.s7 .rec-pages .recpage{margin:0 0 16px}
/* wide tables scroll sideways instead of being cut — in cards, in pages, in lists */
.s7 .recpagebody,.s7 .work .ltwrap,.s7 .work .tblwrap,.s7 .card .c-b.legacy{overflow-x:auto;max-width:100%}
.s7 .recpagebody table{max-width:none}
.s7 td.nw,.s7 th.nw,.s7 td .dday{white-space:nowrap}
/* a date input in an Arabic portal shows dd/mm/yyyy over the browser's control, which returns while it is typed in */
.s7 .dwrap{position:relative;display:inline-flex;flex:1;min-width:0;align-items:center}
.s7 .dwrap input.dfmt{flex:1;min-width:0;width:100%}
.s7 .dwrap input.dfmt:not(:focus)::-webkit-datetime-edit{opacity:0}
.s7 .dwrap input.dfmt:not(:focus){color:transparent}
.s7 .dwrap .dshow{position:absolute;inset-inline-start:0;top:50%;transform:translateY(-50%);pointer-events:none;font-size:13.5px;color:var(--ink);font-variant-numeric:tabular-nums;padding-inline-start:2px}
[dir="rtl"] .s7 .dwrap .dshow{inset-inline-start:auto;right:auto;left:2px}
.s7 .dwrap .dshow.ph{color:var(--mut)}
.s7 .dwrap input.dfmt:focus+.dshow{display:none}
/* …and say so: a visible bar under a table wider than its card (an overlay scrollbar shows nothing until touched) */
.s7 .recpagebody,.s7 .work .ltwrap,.s7 .tblw,.s7 .card .c-b.legacy{scrollbar-width:thin;scrollbar-color:var(--line-2) transparent}
.s7 .recpagebody::-webkit-scrollbar,.s7 .work .ltwrap::-webkit-scrollbar,.s7 .tblw::-webkit-scrollbar,.s7 .card .c-b.legacy::-webkit-scrollbar{height:8px}
.s7 .recpagebody::-webkit-scrollbar-thumb,.s7 .work .ltwrap::-webkit-scrollbar-thumb,.s7 .tblw::-webkit-scrollbar-thumb,.s7 .card .c-b.legacy::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:4px}
.s7 .recpagebody::-webkit-scrollbar-track,.s7 .work .ltwrap::-webkit-scrollbar-track,.s7 .tblw::-webkit-scrollbar-track,.s7 .card .c-b.legacy::-webkit-scrollbar-track{background:var(--hover)}
/* a record made on an older version of its app (5 Oct 2026, lane record-upgrade): a quiet note for its administrator, the difference on «حدِّث» */
.s7 .s7upg{margin-bottom:12px}
.s7 .s7upg .c-b{padding-block:8px}
.s7 .s7upg .upg-n{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--mut)}
.s7 .s7upg .upg-n svg{width:16px;height:16px;flex:none}
.s7 .s7upg .upg-n .btn{margin-inline-start:auto}
.s7 .s7upg .upg-l{margin:8px 0 0;padding-inline-start:18px;font-size:13px;line-height:1.7}
.s7 .s7upg .upg-no{margin-top:8px;padding:8px 10px;border-radius:8px;background:var(--rose-bg);color:var(--rose-ink);font-size:13px}
.s7 .s7upg .upg-ok{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:13px}
/* the strip's «الآن —» line wraps so every holder's name is readable (P-06); the done and wait lines stay one line */
.s7 .st.now .n:not(:where(.work *)){white-space:normal;overflow-wrap:anywhere;align-items:flex-start;line-height:1.35}
/* the side card's small add box (the one attachments area, P-09) */
.s7 .drop.sm{padding:8px 10px;min-height:44px;font-size:12px;margin-top:8px}
/* ── 6 Oct 2026, round 2 of the platform fixes (the old renderers inside the v7 record page) ── */
/* P-11: a list's cell drawn as the kit's select inside an old table (.work, where the kit's own rules stand back): the native select
   stays for its id and onchange, hidden; the button beside it is dressed as the kit's */
.s7 .f .legacy-in select.s7hid,.s7 .work select.s7hid{position:absolute;width:1px;height:1px;min-width:0;max-width:1px;min-height:0;max-height:1px;opacity:0;pointer-events:none;margin:0;padding:0;border:0;overflow:hidden}
.s7 .work .s7cell{position:relative;display:block;min-width:140px}
.s7 .work .s7cell .in.sel{display:flex;align-items:center;gap:8px;min-height:34px;padding:4px 10px;border:1px solid var(--line-2);border-radius:9px;background:var(--card);font:inherit;font-size:13px;color:var(--ink);width:100%;text-align:start;cursor:pointer}
.s7 .work .s7cell .in.sel .ph{color:var(--mut);flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s7 .work .s7cell .in.sel .cv{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s7 .work .s7cell .in.sel .tail{color:var(--mut);display:flex;align-items:center;flex:none}
.s7 .work .s7cell .in.sel:focus-visible{border-color:var(--teal-ink);box-shadow:0 0 0 3px var(--teal-soft);outline:0}
.s7 .work .s7cell .dd{inset-inline-start:0;top:100%;margin-top:4px}
.s7 .work .s7cell .dd .dd-o{border:0;background:transparent;color:var(--ink);font:inherit;font-size:13px}
/* P-09: the old table's fold chip on the kit's tokens — dark in the dark theme as the card is */
.s7 .work table.lt .chip.fold,.s7 .work table.lt .chip.cnt{background:var(--card);border-color:var(--line-2);color:var(--ink-2)}
.s7 .work table.lt .chip.fold.on{background:var(--teal-soft);border-color:var(--teal-ink);color:var(--teal-ink)}
/* P-17: a document's first status («مسودة») in the kit's «wait» tone */
.s7 .work .doc2 h3 .pill.wait{background:var(--amber-bg);color:var(--amber-ink)}
/* P-35: a settled door's answer as it was written, beside the gate's label; the link to the record a door waits on */
.s7 .work .wtrail .wsaid{font-size:12px;font-weight:700}
.s7 .work .wtrail .wsaid.ok{color:var(--green-ink)}
.s7 .work .wtrail .wsaid.no{color:var(--rose-ink)}
.s7 .work .wtrail .wsaidt{color:var(--ink-2);max-width:100%}
.s7 .work .hint .wwait{color:var(--teal-ink);font-weight:600;text-decoration:underline}
/* P-46: today's column in the facility grid */
.s7 .work .cal th.today{color:var(--teal-ink);text-decoration:underline;text-underline-offset:3px}
/* the flow's trace inside the record's «النشاط» card, after the timeline (7 Oct 2026, lane app-model-gaps — 40-record.js s7RecTraceHTML) */
.s7 .s7trace{border-top:1px solid var(--line);margin-top:6px;padding-top:6px}
.s7 .s7trace h4{margin:8px 0 4px;font-size:12.5px;font-weight:700}
.s7 .s7trace .tr-i{margin:2px 0;font-size:12.5px}
.s7 .s7trace small{color:var(--mut);font-size:11.5px}
.s7 .s7trace .tr-f{display:block;font-weight:600;color:var(--ink-2);margin-top:4px}
.s7 .s7trace .tr-run{padding:4px 0;border-top:1px dashed var(--line)}.s7 .s7trace .tr-f+.tr-run{border-top:0}
.s7 .s7trace .tr-hid,.s7 .s7trace .tr-gone{color:var(--mut);font-size:12px;font-style:italic;margin:2px 0}
.s7 .s7trace .tstate{font-style:normal;font-size:11px;border-radius:8px;padding:0 6px;background:var(--sunk);color:var(--mut)}.s7 .s7trace .tstate.ok{background:var(--green-bg);color:var(--green-ink)}.s7 .s7trace .tstate.no{background:var(--rose-bg);color:var(--rose-ink)}
.s7 .s7trace .tr-chain{margin-top:6px}.s7 .s7trace .tr-n{margin:2px 0;font-size:12.5px}.s7 .s7trace .tr-n.me b{font-weight:700}
/* the board an app declares (app.board — v6/ui/board.js with v7's kit, shell7/65-board.js; 7 Oct 2026, lane app-model-gaps): desk.css
   lays the board out (.ab-*), these give v7's kit its look; the built-in panels keep the old desk's look inside .work */
.s7 .ab .ab-tabs{margin-top:4px}
.s7 .ab .ab-note{margin:0 0 12px}
.s7 .ab .ab-figs{margin:4px 0 16px}
.s7 .ab .ab-block{margin-top:0;margin-bottom:20px}
.s7 .ab .ab-row{margin-top:0;margin-bottom:20px}
.s7 .ab .ab-card{padding:12px 14px;gap:8px}
.s7 .ab .ab-card.busy{border-color:var(--teal-ink);box-shadow:0 0 0 3px var(--teal-soft)}
.s7 .ab .ab-group h3{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;margin:0 0 8px;flex-wrap:wrap}
.s7 .ab .ab-group h3 .ab-add,.s7 .ab .ab-list h3 .ab-add{margin-inline-start:auto}
.s7 .ab .ab-list h3{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;margin:0 0 8px}
.s7 .ab .ab-dot{background:var(--line-2)}
.s7 .ab .ab-dot.done{background:var(--green-ink);box-shadow:0 0 0 3px var(--green-bg)}.s7 .ab .ab-dot.late{background:var(--rose-ink);box-shadow:0 0 0 3px var(--rose-bg)}
.s7 .ab .ab-dot.run{background:var(--teal-ink);box-shadow:0 0 0 3px var(--teal-soft)}.s7 .ab .ab-dot.wait{background:var(--amber-ink);box-shadow:0 0 0 3px var(--amber-bg)}
.s7 .ab .ab-open{color:var(--mut)}.s7 .ab .ab-open:hover{background:var(--hover)}.s7 .ab .ab-open svg{width:16px;height:16px}
.s7 .ab .ab-link{color:var(--teal-ink)}
.s7 .ab .ab-text{color:var(--mut)}
.s7 .ab .ab-steps,.s7 .ab .ab-lsteps{background:var(--sunk)}
.s7 .ab .ab-step{color:var(--mut)}.s7 .ab .ab-step.done,.s7 .ab .ab-step.run{color:var(--ink)}.s7 .ab .ab-step.done i{color:var(--green-ink)}.s7 .ab .ab-step.run i{color:var(--teal-ink)}
.s7 .ab .ab-step.fail,.s7 .ab .ab-step em{color:var(--rose-ink)}
.s7 .ab .ab-cover{color:var(--mut)}
.s7 .ab .ab-acts{border-top-color:var(--line)}
.s7 .ab .ab-tb td{white-space:normal}
.s7 .ab .empty{padding:18px}
.s7.narrow .ab .ab-row,.s7.narrow .ab .ab-row3{grid-template-columns:minmax(0,1fr)}

/* several choices on a short list, every one a rounded button (14 Oct 2026, decision 159 #1): the kit's chip, filled when chosen */
.s7 .chipset{display:flex;flex-wrap:wrap;gap:6px}
.s7 .chipset .chip{min-height:32px;padding:4px 12px;font-size:12.5px;cursor:pointer;white-space:normal;text-align:start}
.s7 .chipset .chip:focus-visible{outline:2px solid var(--teal-ink);outline-offset:2px}
.s7 .chipset.err .chip:not(.on){border-color:var(--rose)}
/* a passed step's pen (decision 159 #3): its rows on the same grid as the read-only view, the controls in the values' column */
.s7 .s7view .props.pen .pk{padding-top:8px}
.s7 .s7view .props.pen .pvv{display:flex;flex-direction:column;gap:4px;font-weight:400}
.s7 .s7view .props.pen .fe{font-size:12px;color:var(--rose)}
.s7 .s7view .props.pen .req{color:var(--rose)}
.s7 .s7view .penbar{display:flex;gap:8px;margin-top:12px;justify-content:flex-start}
.s7 .s7view .s7lists{margin-top:12px}
/* ─────────── «الرئيسية», the first screen (26 Nov 2026, TASK 2502 — shell7/35-home.js): the board of the app that opens first ───────────
   Its lanes are «اليوم»'s; what is new: «طلباتي»'s two tabs beside its heading, each with its count; a request's service after its
   title, lighter; a lane with nothing in it says so under a small mark, and offers the next step where there is one */
.s7 .today.first>.ab{min-width:0}
.s7 .lane-h .seg{margin-inline-start:4px}
.s7 .lane-h .seg .n{font-style:normal;font-weight:700;color:var(--mut);margin-inline-start:2px}
.s7 .lane-h .seg button[aria-checked="true"] .n{color:var(--teal-ink)}
.s7 .mrow .r-t .r-s{font-weight:500;color:var(--mut);margin-inline-start:6px}
.s7 .empty.quiet:not(:where(.work *)){display:flex;flex-direction:column;align-items:center;gap:2px;padding:26px 20px}
.s7 .empty.quiet .q-i{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--teal-soft);color:var(--teal-ink);margin-bottom:8px}
.s7 .empty.quiet .q-i .i{width:18px;height:18px}
.s7 .empty.quiet b:not(:where(.work *)){margin-bottom:2px}
.s7 .empty.quiet .btn{margin-top:12px}
.s7 .req-more{margin:0;padding:6px 14px 10px}


/* ═══════════════ the device screen (26 Nov 2026, TASK 2504 — shell7/45-device.js) ═══════════════
   A step done at the work itself, on a tablet or a phone: the frame steps aside (.s7.whole) and one screen is drawn for a gloved thumb.
   Every word here is 18 px and more, every target 44 px and more (the foot's own 56); the colours are the tokens', light and dark.
   The steps are a strip across the top; on a screen wide enough (a tablet on its side, a laptop) they stand beside the step as a list */
.s7.whole .top,.s7.whole .bar-bottom{display:none}
.s7.whole .content{padding:0;overflow:hidden}
body.s7-whole #wfToast{bottom:auto;top:138px;font-size:18px;padding:12px 18px;border-radius:12px;max-width:min(92vw,560px);white-space:normal;text-align:center}
.s7 .dv{position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,1fr) auto;grid-template-areas:"top" "keep" "steps" "main" "bar";background:var(--ground);color:var(--ink);font-size:19px;line-height:1.5;--tap:56px;--tap-s:48px}
.s7.en .dv{font-size:18px}
.s7 .dv svg.i{width:22px;height:22px}
.s7 .dv .num{font-size:inherit}
.s7 .dv h1,.s7 .dv h2,.s7 .dv h3{font-size:inherit;font-weight:700}
/* the top: back to Today, what the job is, the signal, the language, the desk's page */
.s7 .dv-top{grid-area:top;display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--card);border-bottom:1px solid var(--line);min-height:64px}
.s7 .dv-ic{flex:none;width:var(--tap-s);height:var(--tap-s);display:grid;place-items:center;border-radius:var(--r-m);border:1px solid var(--line);background:var(--card);color:var(--ink-2)}
.s7 .dv button.dv-ic{border:1px solid var(--line);background:var(--card)}
.s7 .dv-ic:hover{background:var(--hover);color:var(--ink)}
.s7:not(.en) .dv-back .i,.s7.en .dv-arr .i{transform:scaleX(-1)}
.s7 .dv-ttl{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.s7 .dv-ttl b{font-size:21px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s7 .dv-ttl>span{color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s7 .dv-net{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:4px 14px;border-radius:999px;background:var(--green-bg);color:var(--green-ink);font-weight:700;white-space:nowrap}
.s7 .dv-net i{width:10px;height:10px;border-radius:50%;background:currentColor;flex:none}
.s7 .dv-net.off{background:var(--rose-bg);color:var(--rose-ink)}
.s7 .dv-net.wait{background:var(--amber-bg);color:var(--amber-ink)}
/* what is kept on this device and not yet sent, in plain words */
.s7 .dv-keep{grid-area:keep;padding:10px 16px;background:var(--amber-bg);color:var(--amber-ink);border-bottom:1px solid var(--line);font-weight:500}
.s7 .dv-keep.off{background:var(--rose-bg);color:var(--rose-ink)}
/* the strip: done behind her, where she is, what is ahead */
.s7 .dv-steps{grid-area:steps;background:var(--card);border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none;scroll-padding-inline:24px;
  /* its ends fade, so a step cut by the screen's edge reads as «more this way», never as a chip cut in half (the finish, decision 940) */
  -webkit-mask-image:linear-gradient(to right,transparent 0,#000 28px,#000 calc(100% - 28px),transparent 100%);mask-image:linear-gradient(to right,transparent 0,#000 28px,#000 calc(100% - 28px),transparent 100%)}
.s7 .dv-steps::-webkit-scrollbar{display:none}
.s7 .dv-steps ol{list-style:none;margin:0;padding:8px 28px;display:flex;gap:6px;width:max-content;min-width:100%}
.s7 .dv-st>div,.s7 .dv .dv-st>button{display:flex;align-items:center;gap:8px;min-height:var(--tap-s);padding:6px 14px 6px 12px;border-radius:999px;color:var(--mut);white-space:nowrap;font-weight:600;border:1px solid transparent}
.s7 .dv-st i{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-weight:800;background:var(--sunk);border:1px solid var(--line-2);color:var(--mut)}
.s7 .dv-st i svg.i{width:18px;height:18px;stroke-width:2.6}
.s7 .dv-st.done>button{color:var(--ink-2)}
.s7 .dv-st.done i{background:var(--green);border-color:var(--green);color:var(--on-status)}
.s7 .dv-st.done>button:hover,.s7 .dv-st.done.on>button{background:var(--hover);border-color:var(--line-2)}
.s7 .dv-st.now>div,.s7 .dv .dv-st.now>button{background:var(--teal-soft);color:var(--teal-ink);border-color:var(--teal);font-weight:800}
.s7 .dv-st.now i{background:var(--navy);border-color:var(--navy);color:#fff}
/* the step */
.s7 .dv-main{grid-area:main;overflow:auto;padding:18px 16px 28px;-webkit-overflow-scrolling:touch;outline:0}
.s7 .dv-col{max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.s7 .dv h1.dv-h{font-size:26px;font-weight:800;line-height:1.25}
.s7 .dv-guide{color:var(--mut);display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.s7 .dv-facts{margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px 18px;padding:14px 16px;background:var(--sunk);border:1px solid var(--line);border-radius:var(--r-l)}
.s7 .dv-facts.wide{grid-template-columns:minmax(0,1fr);background:var(--card)}
.s7 .dv-facts>div{min-width:0}
.s7 .dv-facts dt{color:var(--mut)}
.s7 .dv-facts dd{margin:0;font-weight:700;overflow-wrap:anywhere}
.s7 .dv-facts dd .num{font-size:24px}
.s7 .dv-card{background:var(--card);border:1px solid var(--line);border-radius:var(--r-l);padding:16px;display:flex;flex-direction:column;gap:12px;box-shadow:var(--shadow-sm)}
.s7 .dv-card.next{border-color:var(--teal);box-shadow:0 0 0 2px var(--teal-soft),var(--shadow-sm)}
.s7 .dv-card.miss,.s7 .dv-sub.miss{border-color:var(--rose);box-shadow:0 0 0 2px var(--rose-bg)}
.s7 .dv-q{display:flex;align-items:center;gap:10px}
.s7:not(.en) .dv-q h2{padding-top:4px}
.s7 .dv-q h2{font-size:20px;font-weight:700;line-height:1.35;flex:1;min-width:0}
.s7 .dv .req{color:var(--rose)}
.s7 .dv-mk{flex:none;width:28px;height:28px;margin-top:1px;border-radius:50%;border:2px solid var(--line-2);display:grid;place-items:center;color:var(--on-status)}
.s7 .dv-mk.ok{background:var(--green);border-color:var(--green)}
.s7 .dv-mk svg.i{width:16px;height:16px;stroke-width:3}
/* a line's answers: one large button each */
.s7 .dv-opts{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
.s7 .dv-opts.n3{grid-template-columns:repeat(3,minmax(0,1fr))}
.s7 .dv-opts.n1,.s7 .dv-opts.col{grid-template-columns:minmax(0,1fr)}
.s7 .dv .dv-opt{min-height:var(--tap);padding:8px 10px;border-radius:var(--r-m);border:2px solid var(--line-2);background:var(--card);color:var(--ink);font-weight:700;text-align:center;line-height:1.3;overflow-wrap:anywhere}
.s7 .dv .dv-opt:hover{background:var(--hover)}
.s7 .dv .dv-opt.on{background:var(--teal-soft);border-color:var(--teal);color:var(--teal-ink)}
/* what hangs on a line: its photo, why not */
.s7 .dv-sub{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px dashed var(--line-2);border-radius:var(--r-m);background:var(--sunk)}
.s7 .dv-sub h3{font-weight:700;color:var(--ink-2)}
.s7 .dv-photo{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.s7 .dv-thumbs{display:inline-flex;gap:10px;flex-wrap:wrap;vertical-align:middle}
.s7 .dv-thumb{position:relative;width:84px;height:84px;border-radius:var(--r-m);overflow:visible;border:1px solid var(--line-2);background:var(--sunk);display:grid;place-items:center;color:var(--mut)}
.s7 .dv-thumb img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
.s7 .dv .dv-x{position:absolute;inset-block-start:-18px;inset-inline-end:-18px;width:44px;height:44px;display:grid;place-items:center;border-radius:50%}
.s7 .dv .dv-x svg.i{width:28px;height:28px;padding:5px;border-radius:50%;background:var(--navy);color:#fff;stroke-width:2.6}
.s7 .dv-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
/* the buttons of the screen */
.s7 .dv .dv-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:var(--tap);padding:10px 22px;border-radius:var(--r-l);border:2px solid var(--line-2);background:var(--card);color:var(--ink);font-size:20px;font-weight:800;line-height:1.25;text-decoration:none;cursor:pointer;white-space:nowrap}
.s7 .dv .dv-btn:hover{background:var(--hover)}
.s7 .dv .dv-btn.pri{background:var(--navy);border-color:var(--navy);color:#fff}
.s7 .dv .dv-btn.pri:hover{background:var(--navy-2);border-color:var(--navy-2)}
.s7 .dv .dv-btn.pri.notyet{background:var(--card);border-color:var(--ink);color:var(--ink)}
.s7 .dv .dv-btn.danger{border-color:var(--rose);color:var(--rose-ink)}
.s7 .dv .dv-btn[disabled]{opacity:.45;cursor:default}
.s7 .dv .dv-cam{border-style:dashed;font-size:inherit;font-weight:700;color:var(--teal-ink);border-color:var(--teal)}
.s7 .dv .dv-cam:focus-within{outline:2px solid var(--teal-ink);outline-offset:2px}
/* a reading: large digits, its unit, where it came from */
.s7 .dv .dv-val{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;min-height:88px;padding:10px 18px;border-radius:var(--r-m);border:2px solid var(--line-2);background:var(--sunk);text-align:start;width:100%}
.s7 .dv .dv-val>span:first-child{display:inline-flex;align-items:baseline;gap:10px}
.s7 .dv .dv-val .num{font-size:44px;font-weight:800;line-height:1.1;letter-spacing:.01em}
.s7 .dv .dv-val.none .num{color:var(--mut-2)}
.s7 .dv-unit{color:var(--mut);font-weight:600}
.s7 .dv-tap{display:inline-flex;align-items:center;gap:6px;color:var(--teal-ink);font-weight:700}
.s7 .dv-src{color:var(--mut);display:inline-flex;align-items:center;gap:8px}
.s7 .dv .dv-in{width:100%;min-height:var(--tap);padding:10px 14px;border-radius:var(--r-m);border:2px solid var(--line-2);background:var(--card);color:var(--ink);font-size:inherit;line-height:1.5}
.s7 .dv .dv-in:focus{outline:2px solid var(--teal-ink);outline-offset:1px}
/* a signature drawn by hand: who it says it is, the pad, «امسح» — on this screen and, the same, in the desk's form */
.s7 .dv-who{display:flex;flex-direction:column;gap:6px;color:var(--mut)}
.s7 .dv-pad{position:relative;height:220px;border-radius:var(--r-m);border:2px dashed var(--line-2);background:var(--card);overflow:hidden}
.s7 .dv-pad.drawn{border-style:solid;border-color:var(--teal)}
.s7 canvas.dv-sig{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair;color:var(--ink);display:block}
.s7 .dv-ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--mut-2);pointer-events:none}
.s7 .dv-pad.drawn .dv-ph{display:none}
.s7 .dv-sigact{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.s7 .dv-sign.desk{display:flex;flex-direction:column;gap:8px;max-width:520px}
.s7 .dv-sign.desk .dv-pad{height:160px}
.s7 .dv-sign.desk .dv-btn,.s7 .dv-sign.desk .dv-in{min-height:36px;padding:6px 12px;border-radius:9px;border:1px solid var(--line-2);background:var(--card);color:var(--ink);font-weight:600}
.s7 .dv-sigshow{display:inline-flex;align-items:center;gap:14px;flex-wrap:wrap;vertical-align:middle}
.s7 svg.dv-sigv{width:180px;max-width:100%;height:auto;aspect-ratio:2/1;fill:none;stroke:var(--ink);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;background:var(--card);border:1px solid var(--line);border-radius:var(--r-s)}
.s7 svg.dv-sigv circle{fill:var(--ink);stroke:none}
.s7 .dv-sigmeta{display:inline-flex;flex-direction:column;line-height:1.4}
.s7 .dv-sigmeta span{color:var(--mut);font-weight:400}
/* the documents that exist (a ticket): one press away */
.s7 .dv-docs{display:flex;flex-direction:column;gap:10px}
.s7 .dv .dv-doc{justify-content:flex-start;color:var(--teal-ink);border-color:var(--teal)}
/* the foot: what is answered, what a refusal said, the step's button */
.s7 .dv-bar{grid-area:bar;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));background:var(--card);border-top:1px solid var(--line);box-shadow:0 -4px 16px rgba(9,23,45,.06)}
.s7 .dv-say{flex:1;min-width:0;color:var(--mut);font-weight:600}
.s7 .dv-cnt{display:inline-flex;align-items:center;gap:8px}
.s7 .dv-cnt svg.i{color:var(--green)}
.s7 .dv-said{color:var(--rose-ink);font-weight:700}
.s7 .dv-nophoto{margin:0 0 10px}
.s7 .dv-acts{display:flex;gap:10px;flex:none;flex-wrap:wrap}
.s7 .dv-bar .dv-btn{min-width:150px}
/* the keys: a sheet over the foot */
.s7 .dv-scrim{position:absolute;inset:0;background:rgba(9,23,45,.45);z-index:20}
.s7 .dv-sheet{position:absolute;inset-inline:0;bottom:0;z-index:21;background:var(--card);border-radius:20px 20px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px));box-shadow:var(--shadow);display:flex;flex-direction:column;gap:12px;max-width:560px;margin-inline:auto}
.s7 .dv-sheet h2{font-size:20px;color:var(--ink-2)}
.s7 .dv-padv{display:flex;align-items:baseline;justify-content:center;gap:10px;min-height:72px;padding:8px 14px;border-radius:var(--r-m);background:var(--sunk);border:1px solid var(--line)}
.s7 .dv .dv-padv .num{font-size:48px;font-weight:800;line-height:1.2}
.s7 .dv-keys{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.s7 .dv .dv-key{min-height:64px;border-radius:var(--r-m);border:1px solid var(--line-2);background:var(--sunk);color:var(--ink);display:grid;place-items:center}
.s7 .dv .dv-key .num{font-size:28px;font-weight:700}
.s7 .dv .dv-key svg.i{width:28px;height:28px}
.s7 .dv .dv-key:active{background:var(--teal-soft)}
.s7 .dv-sheet .dv-acts{display:grid;grid-template-columns:1fr 2fr}
/* the end, and what waits */
.s7 .dv-end{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:28px 12px}
.s7 .dv-big{width:88px;height:88px;border-radius:50%;display:grid;place-items:center;background:var(--green-bg);color:var(--green-ink)}
.s7 .dv-big.wait{background:var(--amber-bg);color:var(--amber-ink)}
.s7 .dv .dv-big svg.i{width:44px;height:44px;stroke-width:2.4}
/* the ticket: one narrow column, as a small printer prints it */
.s7 .dv-ticket{align-self:center;width:min(100%,380px);background:var(--card);border:1px solid var(--line);border-radius:var(--r-m);padding:18px 16px;display:flex;flex-direction:column;gap:14px;box-shadow:var(--shadow-sm)}
.s7 .dv-tk-text{margin:0;font-family:inherit;font-size:inherit;line-height:1.7;overflow-wrap:anywhere}
.s7 .dv-tk-text p{margin:0;white-space:pre-wrap;unicode-bidi:plaintext;text-align:start}
.s7 .dv-tk-text p.gap{height:.9em;border-bottom:1px dashed var(--line-2);margin-bottom:.9em}
.s7 .dv-tk-text p.head{font-weight:800;font-size:1.1em}
.s7 .dv-tk-sig{display:flex;flex-direction:column;gap:6px;border-top:1px dashed var(--line-2);padding-top:12px;color:var(--mut)}
.s7 .dv-tk-sig .dv-sigshow{color:var(--ink)}
.s7 .dv-tk-foot{display:flex;align-items:center;gap:14px;border-top:1px dashed var(--line-2);padding-top:12px}
.s7 .dv-tk-foot>span:last-child{display:flex;flex-direction:column;color:var(--mut)}
.s7 .dv-tk-qr svg{display:block;width:96px;height:96px}
/* on the desk's page: the way to the device screen */
.s7 .dv-offer{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px;padding:10px 14px;border:1px solid var(--line);border-radius:var(--r-m);background:var(--teal-soft);color:var(--teal-ink);font-weight:600}
.s7 .dv-offer>span{flex:1;min-width:200px}
/* a screen wide enough — a tablet on its side, a laptop: the steps stand beside the step, as a list */
@container frame (min-width:1000px){
  .s7 .dv{grid-template-columns:320px minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto;grid-template-areas:"top top" "keep keep" "steps main" "steps bar"}
  .s7 .dv-steps{border-bottom:0;border-inline-end:1px solid var(--line);overflow:auto;-webkit-mask-image:none;mask-image:none}
  .s7 .dv-steps ol{flex-direction:column;width:auto;padding:16px 12px;gap:4px}
  .s7 .dv-st>div,.s7 .dv .dv-st>button{width:100%;border-radius:var(--r-m);white-space:normal;text-align:start}
  .s7 .dv-main{padding:28px 32px 36px}
  .s7 .dv-bar{padding-inline:32px}
  .s7 .dv-bar .dv-btn{min-width:220px}
}
/* a phone: the signal is its dot alone (the line under the top says it in words when it is away), the foot's button takes the row */
@container frame (max-width:560px){
  .s7 .dv-net.on>span,.s7 .dv-net.wait>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .s7 .dv-net.on,.s7 .dv-net.wait{padding:0;min-height:0;width:14px;height:14px;background:none}
  .s7 .dv-net.on i,.s7 .dv-net.wait i{width:14px;height:14px}
  .s7 .dv-top{gap:6px;padding-inline:8px}
  .s7 .dv-main{padding:14px 12px 24px}
  .s7 .dv-bar .dv-acts{flex:1 1 100%}
  .s7 .dv-bar .dv-btn{flex:1;min-width:0}
  .s7 .dv-opts.n3 .dv-opt{padding-inline:4px}
  .s7 .dv .dv-val .num{font-size:40px}
}
/* the ticket on paper: itself alone, in one narrow column */
@page dv-ticket{size:80mm 297mm;margin:4mm}
#wprintroot .dv-tk-text{page:dv-ticket;margin:0;font:13px/1.6 var(--ar,system-ui)}
#wprintroot .dv-tk-text p{margin:0;white-space:pre-wrap;unicode-bidi:plaintext}
#wprintroot .dv-tk-text p.gap{height:8px;border-bottom:1px dashed currentColor;margin-bottom:8px}
#wprintroot .dv-tk-text p.head{font-weight:700;font-size:15px}
#wprintroot .dv-tk-sig,#wprintroot .dv-tk-foot{page:dv-ticket;display:flex;gap:8px;align-items:center;margin-top:8px;font:12px/1.4 var(--ar,system-ui)}
#wprintroot svg.dv-sigv{width:44mm;height:auto;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
#wprintroot .dv-tk-qr svg{width:24mm;height:24mm}
