/* Portal v3 phase 1 (E): the shell's sidebar, the drawer below 1024 px, the switcher menu, Bookmarks, Settings mode and
   Getting started (PHASE-1-PROMPT.md §13.1-§13.8, §13.15). Every rule under html.shell-v3 (the new shell only) and
   html:not([data-skin]) (never the apps); the shell's own parts under .gym.p3, the menus drawn into body under html.
   Four ids lift a rule over today's sidebar (shells.css), UI v2's type layer (one id) and A's controls (four ids). */

/* ---------- layout: the sidebar on the start side from 1024 px, the page area beside it ---------- */
html.shell-v3:not([data-skin]) .gym.p3{display:flex;flex-direction:row;min-height:100vh;min-height:100dvh;background:var(--p3-bg)}
html.shell-v3:not([data-skin]) .gym.p3>.p3-body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
html.shell-v3:not([data-skin]) .gym.p3>aside.p3-side:not(#p1):not(#p2):not(#p3):not(#p4){position:sticky;top:0;z-index:auto;flex:none;display:flex;flex-direction:column;gap:0;width:222px;height:100vh;height:100dvh;padding:12px 8px;margin:0;background:var(--p3-sidebar);border:0;border-inline-end:1px solid var(--p3-line);box-shadow:none;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;transform:none;visibility:visible;color:var(--p3-text);font-family:var(--p3-ff)}
html.shell-v3:not([data-skin]) .gym.p3>.gym-scrim:not(#p1){display:none}
/* the drawer's own pieces show only below 1024 */
html.shell-v3:not([data-skin]) .gym.p3 :is(.p3-dr-x.icon-btn,.p3-nrow.p3-dr-ai):not(#p1):not(#p2):not(#p3):not(#p4){display:none}
@media (min-width:1024px){html.shell-v3:not([data-skin]) .gym.p3 .p3-side-end:not(:has(.p3-gs-card)){display:none}}

/* ---------- the switcher row: 48 px, the gym's mark, its name, ⇅ ---------- */
html.shell-v3:not([data-skin]) .gym.p3 .p3-side-top{display:flex;align-items:center;gap:4px;margin:-4px 0 0}
html.shell-v3:not([data-skin]) .gym.p3 .p3-sw-wrap{flex:1 1 auto;min-width:0}
html.shell-v3:not([data-skin]) .gym.p3 .p3-switcher:not(#p1):not(#p2):not(#p3):not(#p4){display:flex;align-items:center;gap:10px;width:100%;height:48px;min-height:48px;padding:10px 8px;border:0;border-radius:var(--p3-r-field);background:transparent;box-shadow:none;color:var(--p3-text);font-family:var(--p3-ff);font-size:15px;line-height:22px;font-weight:400;letter-spacing:0;text-transform:none;text-align:start;cursor:pointer;transition:background-color var(--p3-fast) var(--p3-ease)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-switcher.static:not(#p1):not(#p2):not(#p3):not(#p4){cursor:default}
html.shell-v3:not([data-skin]) .gym.p3 button.p3-switcher:is(:hover,.open):not(#p1):not(#p2):not(#p3):not(#p4){background:var(--p3-hover)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-switcher:focus-visible{outline:2px solid var(--p3-primary);outline-offset:-2px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-sw-t{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.shell-v3:not([data-skin]) .gym.p3 .p3-sw-ic{flex:none;color:var(--p3-faint)}
html.shell-v3:not([data-skin]) .p3-gmark{display:inline-flex;align-items:center;justify-content:center;flex:none;width:28px;height:28px;border-radius:var(--p3-r-field);background:var(--p3-tint);color:var(--p3-link);font-family:var(--p3-ff);font-size:14px;line-height:1;font-weight:600;overflow:hidden}
html.shell-v3:not([data-skin]) .p3-gmark.s24{width:24px;height:24px;border-radius:6px;font-size:12px}
html.shell-v3:not([data-skin]) .p3-gmark img{width:100%;height:100%;object-fit:cover}

/* the menu (Visitors V6): 260 px, 12 px corners, the pop shadow; sections with a 12/600 header, 36 px rows */
html.shell-v3:not([data-skin]) .p3-sw-menu{position:fixed;z-index:var(--z-pop);display:flex;flex-direction:column;max-height:min(420px,calc(100vh - 80px));padding:4px;overflow-y:auto;border:1px solid var(--p3-pop-line);border-radius:var(--p3-r-tile);background:var(--p3-surface);box-shadow:var(--p3-shadow-pop);color:var(--p3-text);font-family:var(--p3-ff);animation:p3-pop-in var(--p3-med) var(--p3-ease)}
html.shell-v3:not([data-skin]) .p3-sw-sec{display:flex;flex-direction:column}
html.shell-v3:not([data-skin]) .p3-sw-sec+.p3-sw-sec{margin-top:4px;padding-top:4px;border-top:1px solid var(--p3-line)}
html.shell-v3:not([data-skin]) .p3-sw-h{padding:8px 10px 4px;color:var(--p3-muted);font-size:14px;line-height:20px;font-weight:400}
html.shell-v3:not([data-skin]) .p3-sw-opt:not(#p1):not(#p2):not(#p3):not(#p4){display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:0 10px;border:0;border-radius:var(--p3-r-field);background:transparent;box-shadow:none;color:var(--p3-text);font-family:var(--p3-ff);font-size:15px;line-height:22px;font-weight:400;letter-spacing:0;text-transform:none;text-align:start;cursor:pointer}
html.shell-v3:not([data-skin]) .p3-sw-opt.act:not(#p1):not(#p2):not(#p3):not(#p4){background:var(--p3-hover)}
html.shell-v3:not([data-skin]) .p3-sw-opt:focus-visible{outline:2px solid var(--p3-primary);outline-offset:-2px}
html.shell-v3:not([data-skin]) .p3-sw-ol{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.shell-v3:not([data-skin]) .p3-sw-ck{flex:none;color:var(--p3-link)}
html.shell-v3:not([data-skin]) .p3-sw-oi{display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;color:var(--p3-muted)}

/* ---------- Gym / Finance: the segmented control the sidebar's width, 36 px ---------- */
html.shell-v3:not([data-skin]) .gym.p3 .p3-side-switch{margin:8px 0 12px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-side-switch>.p3-seg:not(#p1):not(#p2):not(#p3):not(#p4):not(#p5){display:flex;width:100%;height:34px;min-height:34px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-side-switch>.p3-seg>button:not(#p1):not(#p2):not(#p3):not(#p4):not(#p5){flex:1 1 0;min-width:0;height:28px;min-height:28px;padding:0 8px;font-size:15px}

/* ---------- nav rows: 36 px, 16 px icon, 15/400; the open one on --p3-nav-sel, no weight change ---------- */
html.shell-v3:not([data-skin]) .gym.p3 .p3-nav:not(#p1):not(#p2):not(#p3):not(#p4){display:flex;flex-direction:column;gap:0;margin:0;padding:0;overflow:visible;background:none;position:static}
html.shell-v3:not([data-skin]) .gym.p3 .p3-ngrp{display:flex;flex-direction:column;gap:1px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-ngrp+.p3-ngrp{margin:8px -8px 0;padding:0 8px;border-top:1px solid var(--p3-line)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-ngrp-t:not(#p1):not(#p2):not(#p3):not(#p4){display:block;margin:16px 0 4px;padding:0 8px;color:var(--p3-muted);font-family:var(--p3-ff);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0;text-transform:none}
html.shell-v3:not([data-skin]) .gym.p3 .p3-ngrp:first-child>.p3-ngrp-t:not(#p1):not(#p2):not(#p3):not(#p4){margin-top:4px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-nrow:not(#p1):not(#p2):not(#p3):not(#p4){position:relative;display:flex;align-items:center;gap:10px;width:100%;min-height:36px;height:auto;padding:7px 8px;margin:0;border:0;border-radius:var(--p3-r-field);background:transparent;box-shadow:none;color:var(--p3-text);font-family:var(--p3-ff);font-size:15px;line-height:22px;font-weight:400;letter-spacing:0;text-transform:none;text-align:start;cursor:pointer;transition:background-color var(--p3-fast) var(--p3-ease)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-nrow>svg:not(#p1):not(#p2):not(#p3):not(#p4){flex:none;width:16px;height:16px;color:var(--p3-muted)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-nrow:hover:not(.on):not(#p1):not(#p2):not(#p3):not(#p4){background:var(--p3-hover)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-nrow.on:not(#p1):not(#p2):not(#p3):not(#p4){background:var(--p3-nav-sel);color:var(--p3-text);font-weight:400}
html.shell-v3:not([data-skin]) .gym.p3 .p3-nrow.on>svg:not(#p1):not(#p2):not(#p3):not(#p4){color:var(--p3-text)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-nrow:focus-visible{outline:2px solid var(--p3-primary);outline-offset:-2px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-nrow .nl{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}
/* a long label (Arabic, a renamed bookmark) wraps to a second line instead of being cut */
html.shell-v3:not([data-skin]) .gym.p3 .p3-nrow .nl:not(#p1):not(#p2):not(#p3):not(#p4){white-space:normal;overflow-wrap:anywhere}
html.shell-v3:not([data-skin]) .gym.p3 .p3-nl-s{color:var(--p3-muted);font-size:12px;line-height:16px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-nrow:has(.p3-nl-s):not(#p1):not(#p2):not(#p3):not(#p4){padding-block:6px}
/* counts: 13 px, muted, tabular; no pill */
html.shell-v3:not([data-skin]) .gym.p3 .p3-nrow .nav-c:not(#p1):not(#p2):not(#p3):not(#p4){flex:none;display:inline;min-width:0;height:auto;margin-inline-start:auto;padding:0;border-radius:0;background:none;color:var(--p3-muted);font-family:var(--p3-ff);font-size:13px;line-height:18px;font-weight:400;font-style:normal;font-variant-numeric:tabular-nums}
html.shell-v3:not([data-skin]) .gym.p3 .p3-nrow .pro-tag:not(#p1):not(#p2):not(#p3):not(#p4){flex:none;margin-inline-start:auto;height:18px;padding:0 6px;font-size:11px;line-height:18px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-nrow .pro-tag+.nav-c:not(#p1):not(#p2):not(#p3):not(#p4){margin-inline-start:6px}
/* expandable: a chevron at the end turning 90° (mirrored in Arabic); children indented 28 px, no icons */
html.shell-v3:not([data-skin]) .gym.p3 .p3-chev:not(#p1):not(#p2):not(#p3):not(#p4){flex:none;width:16px;height:16px;margin-inline-start:auto;color:var(--p3-faint);transition:transform var(--p3-med) var(--p3-ease)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-chev.open:not(#p1):not(#p2):not(#p3):not(#p4){transform:rotate(90deg)}
html.shell-v3:not([data-skin])[dir=rtl] .gym.p3 .p3-chev:not(#p1):not(#p2):not(#p3):not(#p4){transform:scaleX(-1)}
html.shell-v3:not([data-skin])[dir=rtl] .gym.p3 .p3-chev.open:not(#p1):not(#p2):not(#p3):not(#p4){transform:scaleX(-1) rotate(90deg)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-nkids{display:flex;flex-direction:column;gap:1px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-nkid:not(#p1):not(#p2):not(#p3):not(#p4){padding-inline-start:36px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-nav-none{padding:8px;color:var(--p3-muted);font-size:13px;line-height:18px}

/* ---------- Bookmarks ---------- */
html.shell-v3:not([data-skin]) .gym.p3 .p3-bm{display:flex;flex-direction:column;gap:1px;margin:8px -8px 0;padding:0 8px;border-top:1px solid var(--p3-line)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-bm-hd{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:16px 0 4px;padding-inline:8px 4px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-bm-hd>.p3-ngrp-t:not(#p1):not(#p2):not(#p3):not(#p4){margin:0;padding:0}
html.shell-v3:not([data-skin]) .gym.p3 .p3-bm-manage:not(#p1):not(#p2):not(#p3):not(#p4){display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;min-width:24px;min-height:24px;padding:0;border:0;border-radius:6px;background:transparent;box-shadow:none;color:var(--p3-muted);cursor:pointer}
html.shell-v3:not([data-skin]) .gym.p3 .p3-bm-manage:hover:not(#p1):not(#p2):not(#p3):not(#p4){background:var(--p3-hover);color:var(--p3-text)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-bm-manage:focus-visible{outline:2px solid var(--p3-primary);outline-offset:0}
html.shell-v3:not([data-skin]) .gym.p3 .p3-bm-none{margin:0;padding:2px 8px 4px;color:var(--p3-muted);font-size:13px;line-height:18px}
/* the manage modal (in body) */
html.shell-v3:not([data-skin]) .p3-bmm{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
html.shell-v3:not([data-skin]) .p3-bmm-row{display:flex;align-items:center;gap:8px;padding:8px 0}
html.shell-v3:not([data-skin]) .p3-bmm-row+.p3-bmm-row{border-top:1px solid var(--p3-line)}
html.shell-v3:not([data-skin]) .p3-bmm-row>svg{flex:none;color:var(--p3-muted)}
html.shell-v3:not([data-skin]) .p3-bmm-in{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;gap:2px}
html.shell-v3:not([data-skin]) .p3-bmm-name:not(#p1):not(#p2):not(#p3):not(#p4){width:100%;min-width:0;height:36px;min-height:36px;padding:0 10px;border:1px solid var(--p3-line);border-radius:var(--p3-r-field);background:var(--p3-field);box-shadow:none;color:var(--p3-text);font-family:var(--p3-ff);font-size:15px;line-height:22px;font-weight:400}
html.shell-v3:not([data-skin]) .p3-bmm-name:focus-visible{outline:2px solid var(--p3-primary);outline-offset:0;border-color:var(--p3-primary)}

/* ---------- the end of the menu: the Getting started card, pinned to the bottom while the menu scrolls ---------- */
html.shell-v3:not([data-skin]) .gym.p3 .p3-side-end{position:sticky;bottom:-12px;z-index:1;display:flex;flex-direction:column;gap:4px;margin:auto -8px 0;padding:12px 8px;background:var(--p3-sidebar)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-side-end:empty{display:none}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-card:not(#p1):not(#p2):not(#p3):not(#p4){display:flex;flex-direction:column;gap:10px;width:100%;min-height:0;padding:12px;margin:0;border:1px solid var(--p3-tint-line);border-radius:var(--p3-r-tile);background:var(--p3-tint);box-shadow:none;color:var(--p3-link);font-family:var(--p3-ff);text-align:start;letter-spacing:0;text-transform:none;cursor:pointer;transition:border-color var(--p3-fast) var(--p3-ease)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-card:hover:not(#p1):not(#p2):not(#p3):not(#p4){border-color:var(--p3-link)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-card:focus-visible{outline:2px solid var(--p3-primary);outline-offset:2px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-top{display:flex;align-items:center;gap:8px;width:100%}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-top>svg{flex:none}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-t{flex:1 1 auto;min-width:0;font-size:14px;line-height:20px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-chip{flex:none;display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:var(--p3-r-pill);background:var(--p3-surface);box-shadow:inset 0 0 0 1px var(--p3-tint-line);color:var(--p3-link);font-size:12px;line-height:16px;font-weight:600;font-variant-numeric:tabular-nums}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-bar{display:block;width:100%;height:4px;border-radius:2px;background:var(--blue-100);overflow:hidden}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-bar>i{display:block;height:100%;border-radius:2px;background:var(--blue-500)}
html.shell-v3:not([data-skin])[data-theme=dark] .gym.p3 .p3-gs-bar{background:var(--p3-tint-2)}
@media (prefers-color-scheme:dark){html.shell-v3:not([data-skin]):not([data-theme=light]) .gym.p3 .p3-gs-bar{background:var(--p3-tint-2)}}

/* ---------- the foot: the account and role, then today's tools and preferences, compact ---------- */
html.shell-v3:not([data-skin]) .gym.p3 .aside-foot.p3-foot:not(#p1):not(#p2):not(#p3):not(#p4){display:flex;flex-direction:column;gap:8px;margin:0 -8px;padding:12px 8px 0;border-top:1px solid var(--p3-line)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot-who{display:flex;flex-direction:column;gap:0}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .who-g:not(#p1):not(#p2):not(#p3):not(#p4){display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:4px 6px;border:0;border-radius:var(--p3-r-field);background:transparent;box-shadow:none;color:var(--p3-text);font-family:var(--p3-ff);text-align:start;cursor:pointer}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .who-g:hover:not(#p1):not(#p2):not(#p3):not(#p4){background:var(--p3-hover)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .who-g>span:last-child{display:flex;flex-direction:column;min-width:0}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .who-g b:not(#p1):not(#p2):not(#p3):not(#p4){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--p3-ff);font-size:14px;line-height:20px;font-weight:600}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .who-g small:not(#p1):not(#p2):not(#p3):not(#p4){color:var(--p3-muted);font-family:var(--p3-ff);font-size:12px;line-height:16px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .role-tag:not(#p1):not(#p2):not(#p3):not(#p4){padding:0 6px;color:var(--p3-muted);font-family:var(--p3-ff);font-size:12px;line-height:16px;font-weight:400}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .foot-row{display:flex;flex-wrap:nowrap;align-items:center;gap:4px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .nav-edit:not(#p1):not(#p2):not(#p3):not(#p4){display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:1 1 auto;min-width:0;height:32px;min-height:32px;padding:0 10px;border:0;border-radius:var(--p3-r-field);background:var(--p3-soft);box-shadow:none;color:var(--p3-text);font-family:var(--p3-ff);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0;text-transform:none;white-space:nowrap;cursor:pointer}
/* Tutorial and feedback as 32 px icon buttons (their names stay for screen readers) */
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot :is(.nav-edit.tut,.fb-side):not(#p1):not(#p2):not(#p3):not(#p4){flex:none;width:32px;min-width:32px;padding:0;font-size:0;gap:0}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot-tools:not(:has(.tut)) .fb-side:not(#p1):not(#p2):not(#p3):not(#p4){flex:1 1 auto;width:auto;padding:0 10px;font-size:14px;gap:6px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .nav-edit:hover:not(#p1):not(#p2):not(#p3):not(#p4){background:var(--p3-nav-sel)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .nav-edit svg{flex:none;color:var(--p3-muted)}
/* the theme, language and unit switches as small segmented tracks */
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .foot-row.prefs>*{flex:1 1 0;min-width:0}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot :is(.th-sw,.lang-sw):not(#p1):not(#p2):not(#p3):not(#p4){display:flex;gap:0;padding:2px;border-radius:var(--p3-r-chip);background:var(--p3-soft)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot :is(.th-sw,.lang-sw)>button:not(#p1):not(#p2):not(#p3):not(#p4){flex:1 1 0;min-width:0;width:auto;height:28px;min-height:28px;padding:0 6px;border:0;border-radius:6px;background:transparent;box-shadow:none;color:var(--p3-muted);font-family:var(--p3-ff);font-size:13px;line-height:18px;font-weight:400}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot :is(.th-sw,.lang-sw)>button.on:not(#p1):not(#p2):not(#p3):not(#p4){background:var(--p3-surface);box-shadow:var(--p3-shadow-thumb),inset 0 0 0 1px var(--p3-pop-line);color:var(--p3-text)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot :is(.th-sw,.lang-sw)>button:focus-visible{outline:2px solid var(--p3-primary);outline-offset:0}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .lang-sw>button[lang=ar]{font-family:'Alexandria',var(--p3-ff)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .clock-btn:not(#p1):not(#p2):not(#p3):not(#p4){display:flex;align-items:center;gap:8px;min-height:36px;padding:6px 10px;border:0;border-radius:var(--p3-r-field);background:var(--p3-soft);color:var(--p3-text);font-family:var(--p3-ff);font-size:14px;line-height:20px;font-weight:400;text-align:start}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .clock-btn small:not(#p1):not(#p2):not(#p3):not(#p4){margin-inline-start:auto;color:var(--p3-muted);font-size:12px;line-height:16px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .clock-btn.on:not(#p1):not(#p2):not(#p3):not(#p4){background:var(--p3-ok-soft);color:var(--p3-ok)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .asrole:not(#p1):not(#p2):not(#p3):not(#p4){display:flex;flex-direction:column;gap:4px;color:var(--p3-muted);font-family:var(--p3-ff);font-size:12px;line-height:16px;font-weight:400}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .asrole.demo-sub:not(#p1):not(#p2):not(#p3):not(#p4){flex-direction:row;align-items:center;justify-content:space-between}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .asrole select:not(#p1):not(#p2):not(#p3):not(#p4){height:36px;min-height:36px;padding:0 10px;border:1px solid var(--p3-line);border-radius:var(--p3-r-field);background:var(--p3-field);color:var(--p3-text);font-family:var(--p3-ff);font-size:14px;line-height:20px;font-weight:400}
/* UI fix pass (30 Oct): the standard select, the portal's caret 12 px from the end (start in Arabic) */
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .asrole select:not(#p1):not(#p2):not(#p3):not(#p4):not(#p5){appearance:none;-webkit-appearance:none;padding-inline-end:30px;background-image:var(--p3-sel-caret);background-repeat:no-repeat;background-position:right 12px center;background-size:10px 6px}
html.shell-v3:not([data-skin])[dir=rtl] .gym.p3 .p3-foot .asrole select:not(#p1):not(#p2):not(#p3):not(#p4):not(#p5){background-position:left 12px center}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .as-exit:not(#p1):not(#p2):not(#p3):not(#p4){min-height:36px;padding:6px 10px;border:0;border-radius:var(--p3-r-field);background:var(--p3-tint);color:var(--p3-link);font-family:var(--p3-ff);font-size:14px;line-height:20px;font-weight:600;text-align:start}

/* ---------- Settings mode (M32 / M34) ---------- */
html.shell-v3:not([data-skin]) .gym.p3 .p3-setm{display:flex;flex-direction:column;margin-top:12px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-setm-back:not(#p1):not(#p2):not(#p3):not(#p4){display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:0 8px;border:0;border-radius:var(--p3-r-field);background:transparent;box-shadow:none;color:var(--p3-text);font-family:var(--p3-ff);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0;text-transform:none;text-align:start;cursor:pointer}
html.shell-v3:not([data-skin]) .gym.p3 .p3-setm-back:hover:not(#p1):not(#p2):not(#p3):not(#p4){background:var(--p3-hover)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-setm-back:focus-visible{outline:2px solid var(--p3-primary);outline-offset:-2px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-back-ic{flex:none;color:var(--p3-muted);transform:scaleX(-1)}
html.shell-v3:not([data-skin])[dir=rtl] .gym.p3 .p3-back-ic{transform:none}
html.shell-v3:not([data-skin]) .gym.p3 .p3-setm-nav.set-nav:not(#p1):not(#p2):not(#p3):not(#p4){position:static;top:auto;display:flex;flex-direction:column;gap:0;overflow:visible;background:none}
html.shell-v3:not([data-skin]) .gym.p3 .p3-setm-grp{display:flex;flex-direction:column;gap:4px;margin-top:16px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-setm-h{display:flex;align-items:center;gap:8px;padding:6px 8px 4px;color:var(--p3-muted);font-family:var(--p3-ff);font-size:14px;line-height:20px;font-weight:400}
html.shell-v3:not([data-skin]) .gym.p3 .p3-setm-h>svg{flex:none}
html.shell-v3:not([data-skin]) .gym.p3 .p3-setm-nav .p3-setm-row:not(#p1):not(#p2):not(#p3):not(#p4){padding-inline-start:32px;flex-shrink:0;white-space:normal}
/* the page's own section menu: the sidebar holds it from 1024 px */
@media (min-width:1024px){
  html.shell-v3:not([data-skin]) .gym.p3 main .set-nav:not(#p1):not(#p2):not(#p3):not(#p4){display:none}
  html.shell-v3:not([data-skin]) .gym.p3 main .set-lay:not(#p1):not(#p2):not(#p3):not(#p4){grid-template-columns:minmax(0,1fr)}
}

/* ---------- the Getting started page (M7): one column, an accordion of steps ---------- */
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-page{display:flex;flex-direction:column;gap:0;padding-inline:0}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-page>.p3-eyebrow{margin:0 0 4px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-page>h1:not(#p1):not(#p2):not(#p3):not(#p4){margin:0}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-sub:not(#p1):not(#p2):not(#p3):not(#p4){margin:4px 0 0;color:var(--p3-muted)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-done-note{margin-top:16px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-list{display:flex;flex-direction:column;max-width:500px;margin:32px 0 0;padding:0;list-style:none}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-item{border-bottom:1px solid var(--p3-line)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-item.open{border-bottom:0}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-head:not(#p1):not(#p2):not(#p3):not(#p4){display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:12px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--p3-text);font-family:var(--p3-ff);text-align:start;cursor:pointer}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-head:focus-visible{outline:2px solid var(--p3-primary);outline-offset:2px;border-radius:var(--p3-r-field)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-num{display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;border-radius:50%;box-shadow:inset 0 0 0 1px var(--p3-line);color:var(--p3-muted);font-size:12px;line-height:1;font-weight:400;font-variant-numeric:tabular-nums}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-item.open:not(.done) .p3-gs-num{background:var(--p3-primary);box-shadow:none;color:#fff}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-item.done .p3-gs-num{background:var(--p3-ok-fill);box-shadow:none;color:#fff}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-title:not(#p1):not(#p2):not(#p3):not(#p4){flex:1 1 auto;min-width:0}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-item:not(.open):not(.done) .p3-gs-title:not(#p1):not(#p2):not(#p3):not(#p4){color:var(--p3-muted)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-chev{flex:none;color:var(--p3-faint);transition:transform var(--p3-med) var(--p3-ease)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-item.open .p3-gs-chev{transform:rotate(180deg)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-body{margin:0 0 24px;border:1px solid var(--p3-line);border-radius:var(--p3-r-card);background:var(--p3-surface);box-shadow:var(--p3-shadow-card);overflow:hidden}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-card-in{position:relative;display:flex;flex-direction:column;gap:20px;padding:24px;overflow:hidden}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-card-in>:not(.p3-orn){position:relative;z-index:1}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-orn:not(#p1):not(#p2):not(#p3):not(#p4){position:absolute;inset-inline-end:0;bottom:0;width:240px;height:120px;pointer-events:none}
html.shell-v3:not([data-skin])[dir=rtl] .gym.p3 .p3-gs-orn:not(#p1):not(#p2):not(#p3):not(#p4){transform:scaleX(-1)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-lines{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-lines>li{display:flex;align-items:flex-start;gap:10px;color:var(--p3-muted);font-size:15px;line-height:22px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-lines>li>svg{flex:none;margin-top:3px;color:var(--p3-link)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-foot{padding:12px 24px;background:var(--p3-soft);color:var(--p3-muted);font-size:14px;line-height:20px}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-help:not(#p1):not(#p2):not(#p3):not(#p4){display:inline;min-height:0;height:auto;padding:0;border:0;background:none;color:var(--p3-link);font:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer}

/* ---------- below 1024 px: the drawer, 300 px from the start side over --p3-veil ---------- */
@media (max-width:1023px){
  html.shell-v3:not([data-skin]) .gym.p3{flex-direction:column}
  html.shell-v3:not([data-skin]) .gym.p3>aside.p3-side:not(#p1):not(#p2):not(#p3):not(#p4){position:fixed;z-index:var(--z-over);top:0;bottom:0;inset-inline-start:0;width:300px;height:100dvh;padding-top:calc(var(--safe-t, 0px) + 12px);padding-bottom:calc(var(--safe-b, 0px) + 12px);border-inline-end:1px solid var(--p3-line);box-shadow:var(--p3-shadow-pop);transform:translateX(-104%);visibility:hidden;transition:transform var(--p3-med) var(--p3-ease),visibility 0s linear var(--p3-med)}
  html.shell-v3:not([data-skin])[dir=rtl] .gym.p3>aside.p3-side:not(#p1):not(#p2):not(#p3):not(#p4){transform:translateX(104%)}
  html.shell-v3:not([data-skin]) .gym.p3.nav-open>aside.p3-side:not(#p1):not(#p2):not(#p3):not(#p4){transform:none;visibility:visible;transition:transform var(--p3-med) var(--p3-ease),visibility 0s}
  html.shell-v3:not([data-skin]) .gym.p3>.gym-scrim:not(#p1){position:fixed;inset:0;z-index:calc(var(--z-over) - 1);display:block;background:var(--p3-veil);opacity:0;pointer-events:none;transition:opacity var(--p3-med) var(--p3-ease)}
  html.shell-v3:not([data-skin]) .gym.p3.nav-open>.gym-scrim:not(#p1){opacity:1;pointer-events:auto}
  html.shell-v3:not([data-skin]) .gym.p3 .p3-dr-x.icon-btn:not(#p1):not(#p2):not(#p3):not(#p4){display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;min-width:40px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--p3-muted)}
  html.shell-v3:not([data-skin]) .gym.p3 .p3-dr-x:hover:not(#p1):not(#p2):not(#p3):not(#p4){background:var(--p3-hover);color:var(--p3-text)}
  html.shell-v3:not([data-skin]) .gym.p3 .p3-nrow.p3-dr-ai:not(#p1):not(#p2):not(#p3):not(#p4){display:flex}
  html.shell-v3:not([data-skin]) .gym.p3 .p3-side-end{bottom:calc(-12px - var(--safe-b, 0px))}
}
@media (max-width:359px){html.shell-v3:not([data-skin]) .gym.p3>aside.p3-side:not(#p1):not(#p2):not(#p3):not(#p4){width:100%;border-inline-end:0}}

/* ---------- touch: 44 px targets ---------- */
@media (pointer:coarse){
  html.shell-v3:not([data-skin]) .gym.p3 :is(.p3-nrow,.p3-setm-back):not(#p1):not(#p2):not(#p3):not(#p4){min-height:44px}
  html.shell-v3:not([data-skin]) .gym.p3 .p3-bm-manage:not(#p1):not(#p2):not(#p3):not(#p4){width:44px;height:44px;min-width:44px;min-height:44px;margin:-10px -10px -10px 0}
  html.shell-v3:not([data-skin]) .gym.p3 .p3-dr-x.icon-btn:not(#p1):not(#p2):not(#p3):not(#p4){width:44px;min-width:44px;height:44px}
  html.shell-v3:not([data-skin]) .gym.p3 .p3-foot :is(.nav-edit,.clock-btn,.as-exit,.asrole select):not(#p1):not(#p2):not(#p3):not(#p4){min-height:44px;height:44px}
  html.shell-v3:not([data-skin]) .gym.p3 .p3-foot :is(.nav-edit.tut,.fb-side):not(#p1):not(#p2):not(#p3):not(#p4){width:44px;min-width:44px}
  html.shell-v3:not([data-skin]) .gym.p3 .p3-foot-tools:not(:has(.tut)) .fb-side:not(#p1):not(#p2):not(#p3):not(#p4){width:auto}
  html.shell-v3:not([data-skin]) .gym.p3 .p3-foot :is(.th-sw,.lang-sw)>button:not(#p1):not(#p2):not(#p3):not(#p4){height:40px;min-height:40px}
  /* wave 3 (rule 13, the layout check's tap targets): the theme switch's 40 px segments get a 44 px touch area (the
     language switch's come from overrides.css) */
  html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .th-sw>button:not(#p1):not(#p2):not(#p3):not(#p4){position:relative}
  html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .th-sw>button:not(#p1):not(#p2):not(#p3):not(#p4)::after{content:'';position:absolute;top:50%;left:0;width:100%;height:44px;transform:translateY(-50%)}
  html.shell-v3:not([data-skin]) .gym.p3 .p3-side-switch>.p3-seg:not(#p1):not(#p2):not(#p3):not(#p4):not(#p5){height:44px;min-height:44px}
  html.shell-v3:not([data-skin]) .gym.p3 .p3-side-switch>.p3-seg>button:not(#p1):not(#p2):not(#p3):not(#p4):not(#p5){height:38px;min-height:38px}
  html.shell-v3:not([data-skin]) .p3-sw-opt:not(#p1):not(#p2):not(#p3):not(#p4){min-height:44px}
  html.shell-v3:not([data-skin]) .p3-bmm-name:not(#p1):not(#p2):not(#p3):not(#p4){height:44px;min-height:44px}
  html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-help:not(#p1):not(#p2):not(#p3):not(#p4){display:inline-flex;align-items:center;min-height:44px}
}
/* the owner's demo plan: two short words side by side */
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .demo-sub>.lang-sw:not(#p1):not(#p2):not(#p3):not(#p4){flex:none}
html.shell-v3:not([data-skin]) .gym.p3 .p3-foot .demo-sub>.lang-sw>button:not(#p1):not(#p2):not(#p3):not(#p4){flex:none;padding:0 10px;white-space:nowrap}
html.shell-v3:not([data-skin]) .gym.p3 .p3-gs-card.on:not(#p1):not(#p2):not(#p3):not(#p4){border-color:var(--p3-link)}
/* gym release 9 Nov, #33 (a fix, not behind a switch): the menu scrolls in its own region (.p3-side-scroll) that ends above the
   Getting started card, so the card never covers a menu item; the region fades at its bottom edge while more is below */
html.shell-v3:not([data-skin]) .gym.p3>aside.p3-side:not(#p1#p2#p3#p4#p5#p6){overflow:hidden}
html.shell-v3:not([data-skin]) .gym.p3 .p3-side-scroll{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;margin:0 -8px;padding:0 8px 12px;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin}
html.shell-v3:not([data-skin]) .gym.p3 .p3-side-scroll[data-more]{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 28px),transparent)}
html.shell-v3:not([data-skin]) .gym.p3 .p3-side-end:not(#p1#p2#p3#p4#p5#p6){position:relative;bottom:auto;flex:none;margin:0 -8px -12px}
