/* =====================================================================
   Uranus Glass — the shared look of every Uranus system (core layer).
   Same language as Uranus One: deep plum background with the faded Uranus
   mark, frosted-glass panels, gold accents, liquid-glass navigation capsules,
   bold Noor/Lato type, WCAG 2.2 AA contrast in dark and light.

   Source of truth: shared/uranus-glass/uranus-glass.css
   Copied into every app by: node local-dev/sync-glass.mjs
   Load it AFTER uranus.css and after the app's own CSS. Each app adds a small
   adapter (uranus-glass-<app>.css) that maps its own class names onto the
   --ug-* recipe below. Do not edit the copies; edit this file and re-sync.
   ===================================================================== */

/* ---------- 1. Recipe tokens ---------- */
:root, [data-theme="dark"] {
  --ug-page: radial-gradient(60vmax 40vmax at 88% 8%, rgb(252 172 50 / .12), transparent 60%),
             radial-gradient(50vmax 36vmax at 6% 96%, rgb(252 172 50 / .07), transparent 60%),
             radial-gradient(70vmax 60vmax at 25% 15%, rgb(122 44 150 / .45), transparent 65%),
             linear-gradient(150deg, #2A0F3A 0%, #1A0A25 55%, #0E0615 100%);
  --ug-mark-opacity: .05;
  --ug-glass: linear-gradient(160deg, rgb(255 255 255 / .065), rgb(255 255 255 / .025));
  --ug-glass-solid: linear-gradient(160deg, rgb(70 30 92 / .95), rgb(30 12 42 / .96));
  --ug-line: rgb(255 255 255 / .10);
  --ug-line-2: rgb(255 255 255 / .14);
  --ug-hover: rgb(252 172 50 / .55);
  --ug-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 14px 40px rgb(5 2 10 / .35);
  --ug-shadow-pop: inset 0 1px 0 rgb(255 255 255 / .08), 0 22px 60px rgb(5 2 10 / .55);
  --ug-capsule: linear-gradient(180deg, rgb(255 255 255 / .10), rgb(255 255 255 / .03));
  --ug-capsule-shadow: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 -1px 0 rgb(0 0 0 / .25), 0 10px 30px rgb(5 2 10 / .35);
  --ug-pill-on: linear-gradient(180deg, rgb(255 255 255 / .16), rgb(255 255 255 / .05));
  --ug-pill-on-shadow: inset 0 1px 0 rgb(255 255 255 / .30), inset 0 0 0 1px rgb(252 172 50 / .35), 0 4px 14px rgb(252 172 50 / .15);
  --ug-pill-text: rgb(244 238 248 / .78);
  --ug-bar: rgb(20 8 30 / .35);
  --ug-field: rgb(255 255 255 / .05);
  --ug-field-line: rgb(255 255 255 / .12);
  --ug-row-hover: rgb(255 255 255 / .035);
  --ug-th: rgb(255 255 255 / .04);
  --ug-soft: rgb(255 255 255 / .04);
  --ug-gold-text: #FFC766;
  --ug-pill-gold: #FFD285; /* active pill text: stays >= 4.5:1 even when the capsule sits on a glass card */
  --ug-gold-btn: linear-gradient(180deg, #FFC24D, #FCAC32);
  --ug-on-gold: #2A1336;
  --ug-gold-soft: rgb(252 172 50 / .12);
  --ug-gold-line: rgb(252 172 50 / .35);
  --ug-focus: 0 0 0 3px rgb(252 172 50 / .15);
  --ug-scrim: rgb(14 6 21 / .55);
  --ug-blur: blur(14px) saturate(1.3);
  --ug-blur-strong: blur(22px) saturate(1.6);
  /* AA contrast on plum glass (measured in Uranus One); text values repeated for apps without the kit */
  --u-text: #F1ECF6; --u-text-2: #DCD2E6; --u-muted: #C3B6D3; --u-faint: #B4A7C7;
}
[data-theme="light"] {
  --ug-page: radial-gradient(60vmax 40vmax at 88% 8%, rgb(252 172 50 / .16), transparent 60%),
             radial-gradient(70vmax 60vmax at 20% 15%, rgb(122 44 150 / .12), transparent 65%),
             linear-gradient(150deg, #FBF7FD, #F1E8F6);
  --ug-mark-opacity: .045;
  --ug-glass: linear-gradient(160deg, rgb(255 255 255 / .82), rgb(255 255 255 / .6));
  --ug-glass-solid: linear-gradient(160deg, rgb(255 255 255 / .97), rgb(248 242 251 / .96));
  --ug-line: rgb(59 26 80 / .12);
  --ug-line-2: rgb(59 26 80 / .16);
  --ug-hover: rgb(59 26 80 / .45);
  --ug-shadow: inset 0 1px 0 #fff, 0 12px 30px rgb(59 26 80 / .10);
  --ug-shadow-pop: 0 22px 60px rgb(59 26 80 / .18);
  --ug-capsule: linear-gradient(180deg, rgb(255 255 255 / .85), rgb(255 255 255 / .55));
  --ug-capsule-shadow: inset 0 1px 0 #fff, 0 8px 24px rgb(59 26 80 / .12);
  --ug-pill-on: rgb(252 172 50 / .16);
  --ug-pill-on-shadow: inset 0 0 0 1px rgb(252 172 50 / .45);
  --ug-pill-text: #352B40;
  --ug-bar: rgb(255 255 255 / .6);
  --ug-field: rgb(255 255 255 / .85);
  --ug-field-line: rgb(59 26 80 / .16);
  --ug-row-hover: rgb(59 26 80 / .035);
  --ug-th: rgb(59 26 80 / .04);
  --ug-soft: rgb(59 26 80 / .03);
  --ug-gold-text: #7A4E00;
  --ug-pill-gold: #7A4E00;
  --ug-gold-soft: rgb(252 172 50 / .14);
  --ug-gold-line: rgb(196 125 10 / .4);
  --ug-scrim: rgb(59 26 80 / .25);
  --u-text: #1E1726; --u-text-2: #352B40; --u-muted: #574A5F; --u-faint: #5E5166;
}

/* ---------- 2. Page: plum light sweeps + the large faded Uranus mark ---------- */
/* Kit apps get it on body.u-app; other apps opt in with .ug-page via their adapter (or reuse these selectors). */
body.u-app, .ug-page { background: var(--ug-page) !important; background-attachment: fixed !important; }
body.u-app::after, .ug-page::after { content: ""; position: fixed; z-index: -1; inset-block-end: -8vmin; inset-inline-start: -6vmin; width: min(70vmin, 720px); aspect-ratio: 545 / 563; background: url("uranus/assets/uranus-mark-large.png") no-repeat center / contain; opacity: var(--ug-mark-opacity); pointer-events: none; }
body.u-app { isolation: isolate; }

/* Bold, clear type (Noor Bold for Arabic, Lato Bold for Latin) */
.u-app :where(h1, h2, h3) { font-weight: 700; }
.u-app :where(label, th, .u-label) { font-weight: 700; }

/* Thin plum scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgb(252 172 50 / .35) transparent; }
[data-theme="light"] * { scrollbar-color: rgb(59 26 80 / .3) transparent; }

/* ---------- 3. Kit components (.u-*) in glass ---------- */
/* Top bar: translucent, blurred */
.u-topbar { background: var(--ug-bar) !important; border-block-end: 1px solid var(--ug-line) !important; -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }

/* Page header strip */
.u-page-header { align-items: center; padding: 20px 24px; margin-block-end: 20px; border-radius: 20px; background: var(--ug-glass); border: 1px solid var(--ug-line); box-shadow: var(--ug-shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.u-page-header .u-eyebrow { color: var(--ug-gold-text); font-weight: 700; letter-spacing: .04em; }
.u-page-header h1 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; color: var(--u-text); }
.u-page-header p { font-weight: 500; line-height: 1.7; }

/* Cards, tiles, KPIs */
.u-card, .u-tile, .u-kpi { border-radius: 18px; background: var(--ug-glass) !important; border: 1px solid var(--ug-line) !important; box-shadow: var(--ug-shadow) !important; -webkit-backdrop-filter: var(--ug-blur); backdrop-filter: var(--ug-blur); }
.u-card--interactive:hover, .u-tile.is-hoverable:hover { border-color: var(--ug-hover) !important; transform: translateY(-2px); }
.u-card__header { border-block-end-color: var(--ug-line) !important; }
.u-card__header :where(h2, h3), .u-card__title { font-size: 15.5px; font-weight: 700; color: var(--u-text); }
.u-card__footer { border-block-start-color: var(--ug-line) !important; flex-wrap: wrap; row-gap: 8px; }
.u-kpi__value { font-weight: 700; }
.u-kpi--gold .u-kpi__value, .u-tile__open { color: var(--ug-gold-text) !important; }

/* Form controls like the sign-in card */
.u-input, .u-select, .u-textarea { min-height: 44px; border-radius: 12px; background-color: var(--ug-field) !important; border-color: var(--ug-field-line) !important; color: var(--u-text); font-weight: 500; }
.u-textarea { min-height: 88px; }
.u-input:focus, .u-select:focus, .u-textarea:focus { border-color: rgb(252 172 50 / .7) !important; box-shadow: var(--ug-focus) !important; }
.u-select option { background: #241830; color: #F1ECF6; }
[data-theme="light"] .u-select option { background: #fff; color: #1E1726; }

/* Buttons: gold primary, glass secondary */
.u-btn { border-radius: 12px; font-weight: 700; }
.u-btn--primary, .u-btn--gold { background: var(--ug-gold-btn) !important; color: var(--ug-on-gold) !important; border: 0 !important; box-shadow: 0 8px 22px rgb(252 172 50 / .25); }
.u-btn--primary:hover, .u-btn--gold:hover { filter: brightness(1.05); }
.u-btn--ghost, .u-btn:not(.u-btn--primary):not(.u-btn--gold):not(.u-btn--danger):not(.u-btn--brand) { background-color: var(--ug-soft); border-color: var(--ug-line-2); }
.u-btn:disabled, .u-btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }

/* Tables */
.u-table-wrap { border-radius: 14px; border: 1px solid var(--ug-line); }
.u-table th { background: var(--ug-th) !important; color: var(--u-text-2); font-size: 12.5px; font-weight: 700; border-block-end: 1px solid var(--ug-line) !important; }
.u-table td { border-block-end-color: var(--ug-line) !important; color: var(--u-text-2); }
.u-table tbody tr:hover td { background: var(--ug-row-hover); }
.u-table td :where(b, strong) { color: var(--u-text); font-weight: 700; }

/* Chips, badges */
.u-chip, .u-badge { font-weight: 700; }

/* Liquid-glass capsules: tabs, segmented controls, top nav */
.u-tabs, .u-seg, .u-topbar__nav, .ug-capsule { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  background: var(--ug-capsule) !important; border: 1px solid var(--ug-line-2) !important; box-shadow: var(--ug-capsule-shadow); -webkit-backdrop-filter: var(--ug-blur-strong); backdrop-filter: var(--ug-blur-strong); }
.u-tabs::-webkit-scrollbar, .u-seg::-webkit-scrollbar, .u-topbar__nav::-webkit-scrollbar, .ug-capsule::-webkit-scrollbar { display: none; }
.u-tab, .u-seg > *, .u-topbar__nav > a, .ug-capsule > * { flex: none; border: 0 !important; border-radius: 999px !important; color: var(--ug-pill-text); font-weight: 700; background: transparent; transition: background .2s, color .2s, box-shadow .2s; }
.u-tab:hover, .u-seg > *:hover, .u-topbar__nav > a:hover, .ug-capsule > *:hover { color: var(--u-text); background: rgb(255 255 255 / .06); }
.u-tab[aria-selected="true"], .u-tab.is-active, .u-seg > [aria-checked="true"], .u-seg > [aria-pressed="true"], .u-seg > .is-active,
.u-topbar__nav > [aria-current="page"], .u-topbar__nav > .is-active, .ug-capsule > [aria-current="page"], .ug-capsule > [aria-selected="true"], .ug-capsule > [aria-pressed="true"], .ug-capsule > .is-active, .ug-capsule > .active {
  color: var(--ug-pill-gold) !important; background: var(--ug-pill-on) !important; box-shadow: var(--ug-pill-on-shadow) !important; }
.u-tab::after, .u-topbar__nav > a::after { display: none !important; }

/* Side navigation: glass rail, gold active pill */
.u-sidenav { background: var(--ug-bar) !important; border-inline-end: 1px solid var(--ug-line) !important; -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.u-sidenav__link { border-radius: 12px; font-weight: 700; color: var(--u-text-2); }
.u-sidenav__link:hover { background: rgb(255 255 255 / .06); color: var(--u-text); }
.u-sidenav__link.is-active, .u-sidenav__link[aria-current="page"] { color: var(--ug-pill-gold) !important; background: var(--ug-pill-on) !important; box-shadow: var(--ug-pill-on-shadow) !important; }
.u-sidenav__link.is-active::before, .u-sidenav__link[aria-current="page"]::before { display: none; }
.u-bottomnav { background: var(--ug-bar) !important; border-block-start: 1px solid var(--ug-line) !important; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.u-bottomnav__item[aria-current="page"], .u-bottomnav__item.is-active { color: var(--ug-gold-text) !important; }

/* Alerts and empty states */
.u-alert { border-radius: 14px; border-inline-start-width: 4px; }
.u-alert--gold { color: var(--u-text-2); }
.u-empty { color: var(--u-muted); }

/* ---------- 4. Menus, palette, dialogs, drawers, toasts ---------- */
.u-popover, .u-palette { color: var(--u-text); background: var(--ug-glass-solid) !important; border: 1px solid var(--ug-line-2) !important; border-radius: 18px !important; box-shadow: var(--ug-shadow-pop) !important; -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); }
.u-popover__head { border-block-end: 1px solid var(--ug-line); }
.u-popover__head b { font-weight: 700; color: var(--u-text); }
.u-popover__foot { border-block-start-color: var(--ug-line) !important; background: var(--ug-soft); border-radius: 0 0 18px 18px; }
.u-menu a, .u-menu button, .u-menu__item { border-radius: 10px !important; font-weight: 600; }
.u-menu a:hover, .u-menu button:hover, .u-menu__item:hover, .u-menu a:focus-visible, .u-menu button:focus-visible { background: rgb(255 255 255 / .07) !important; }
[data-theme="light"] .u-menu a:hover, [data-theme="light"] .u-menu button:hover, [data-theme="light"] .u-menu__item:hover { background: rgb(59 26 80 / .05) !important; }
.u-menu [aria-checked="true"], .u-menu [aria-pressed="true"], .u-menu .is-active { color: var(--ug-gold-text) !important; background: var(--ug-gold-soft) !important; }
.u-switcher { width: min(440px, calc(100vw - 24px)) !important; }
.u-switcher__app { border-radius: 14px !important; border: 1px solid transparent; }
.u-switcher__app:hover, .u-switcher__app:focus-visible { background: rgb(255 255 255 / .07) !important; border-color: var(--ug-gold-line) !important; }
[data-theme="light"] .u-switcher__app:hover { background: rgb(59 26 80 / .05) !important; }
.u-switcher__app.is-current { background: var(--ug-gold-soft) !important; border-color: rgb(252 172 50 / .45) !important; }
.u-switcher__app span { font-weight: 600; color: var(--u-text-2); }
.u-palette-backdrop, .u-modal-backdrop, .u-drawer-backdrop { background: var(--ug-scrim) !important; -webkit-backdrop-filter: blur(10px) saturate(1.2) !important; backdrop-filter: blur(10px) saturate(1.2) !important; }
.u-palette__input { border-block-end-color: var(--ug-line) !important; }
.u-palette__input svg, .u-palette__group { color: var(--ug-gold-text) !important; }
.u-palette__group { font-weight: 700 !important; }
.u-palette__item { border-radius: 12px !important; }
.u-palette__item[aria-selected="true"] { background: var(--ug-gold-soft) !important; box-shadow: inset 0 0 0 1px var(--ug-gold-line) !important; }
.u-palette__item b { font-weight: 700 !important; color: var(--u-text); }
.u-palette__item small { color: var(--u-muted) !important; }
.u-palette__foot { border-block-start-color: var(--ug-line) !important; background: var(--ug-soft); color: var(--u-muted); }

/* Dialogs: glass with the gold gate corners of the sign-in card */
.u-modal, .u-drawer { position: relative; color: var(--u-text); background: var(--ug-glass-solid) !important; border: 1px solid var(--ug-line-2) !important; box-shadow: var(--ug-shadow-pop) !important; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.u-modal { border-radius: 22px; overflow: visible; }
.u-modal::before, .u-modal::after { content: ""; position: absolute; width: 46px; height: 46px; border-radius: 14px; pointer-events: none; background: linear-gradient(135deg, rgb(252 172 50 / .45), rgb(122 44 150 / .3)); box-shadow: inset 0 0 0 1.5px rgb(252 172 50 / .65); }
.u-modal::before { top: -10px; left: -10px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.u-modal::after { bottom: -10px; right: -10px; clip-path: polygon(100% 7%, 100% 100%, 7% 100%); }
.u-modal__header :where(h2, h3), .u-modal__title { font-size: 19px; font-weight: 700; color: var(--u-text); }
.u-modal__footer { border-radius: 0 0 22px 22px; background: var(--ug-soft) !important; border-block-start-color: var(--ug-line) !important; flex-wrap: wrap; row-gap: 8px; }
.u-toast { border-radius: 14px; border: 1px solid var(--ug-line-2); box-shadow: var(--ug-shadow-pop); }

/* ---------- 5. Sign-in pages built on the kit (.u-auth) ---------- */
.u-auth { grid-template-columns: 1fr !important; position: relative; isolation: isolate; overflow: hidden; background: var(--ug-page) !important; }
.u-auth::before { content: ""; position: absolute; z-index: -1; inset: 0; background: url("uranus/assets/uranus-mark-large.png") no-repeat center / min(78vmin, 760px); opacity: .07; pointer-events: none; }
.u-auth__art { display: none !important; }
.u-auth__panel { justify-content: center !important; padding: 84px 16px 40px !important; background: transparent !important; }
.u-auth__card { position: relative; width: min(440px, 100%); padding: 32px; border-radius: 22px; background: linear-gradient(160deg, rgb(255 255 255 / .07), rgb(255 255 255 / .025)); border: 1px solid var(--ug-line); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 30px 80px rgb(5 2 10 / .55); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
.u-auth__card::before, .u-auth__card::after { content: ""; position: absolute; z-index: 3; width: 58px; height: 58px; pointer-events: none; border-radius: 16px; background: linear-gradient(135deg, rgb(252 172 50 / .38), rgb(122 44 150 / .30)); box-shadow: inset 0 0 0 1.5px rgb(252 172 50 / .65), 0 8px 24px rgb(5 2 10 / .35); }
.u-auth__card::before { top: -12px; left: -12px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.u-auth__card::after { bottom: -12px; right: -12px; clip-path: polygon(100% 7%, 100% 100%, 7% 100%); }
.u-auth__card h1 { font-size: 26px; font-weight: 700; }
.u-auth__card .u-eyebrow { color: var(--ug-gold-text); font-weight: 700; }
[data-theme="light"] .u-auth__card { background: linear-gradient(160deg, rgb(255 255 255 / .78), rgb(255 255 255 / .55)); box-shadow: inset 0 1px 0 #fff, 0 24px 60px rgb(59 26 80 / .14); }
@media (max-width: 480px) { .u-auth__card { padding: 22px; } .u-auth__card::before, .u-auth__card::after { width: 46px; height: 46px; } }

/* ---------- 6. Generic helpers for adapters ---------- */
.ug-glass { background: var(--ug-glass) !important; border: 1px solid var(--ug-line) !important; box-shadow: var(--ug-shadow) !important; -webkit-backdrop-filter: var(--ug-blur); backdrop-filter: var(--ug-blur); }

/* ---------- 7. Small screens and motion ---------- */
@media (max-width: 600px) {
  .u-page-header { padding: 16px; border-radius: 16px; }
  .u-card, .u-tile { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .u-card--interactive:hover, .u-tile.is-hoverable:hover { transform: none; }
}

/* ---------- 8. Account button, account menu and the Uranus loader (uranus-account.js) ----------
   One account component for every system: <uranus-account> (light DOM) renders .uac-btn; its menu (.uac-menu) is placed in
   <body> (top layer via popover) and becomes a bottom sheet on phones. It reproduces the Uranus One account menu exactly
   (measured from One: 290px glass popover, 48px avatar, theme segment, language list with check / code, red sign out), with
   two fixes: the role is a small gold pill sized to its text, and light-theme gold text is dark gold (AA).
   Self-contained tokens (--uac-*), so this section also works on pages that load only it (uranus-account.js injects it
   when uranus-glass.css is not on the page). Marker: uranus-account:2026-11-11 */
/* The suite font is Uranus One's: "Uranus Sans" = Noor (Arabic) + Lato (Latin) by unicode-range, 300-900. Declared here too so
   apps without the kit stylesheet (Admission, Uranus AI, Studio, Direct) get the very same faces; sync-glass.mjs copies the
   files to <dir>/uranus/fonts/ next to this file. */
/* Latin and Arabic faces share the very same weight descriptors, so the browser combines them into one family and every
   Arabic glyph is drawn by Noor, every Latin one by Lato (with mismatched weight ranges Chrome fell back to the system font). */
@font-face { font-family: "Uranus Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("uranus/fonts/Lato-Regular.woff") format("woff"); unicode-range: U+0000-024F, U+0259, U+02B0-02FF, U+0300-036F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-21FF, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Uranus Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("uranus/fonts/Noor-Light.woff") format("woff"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+25CC, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Uranus Sans"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("uranus/fonts/Lato-Regular.woff") format("woff"); unicode-range: U+0000-024F, U+0259, U+02B0-02FF, U+0300-036F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-21FF, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Uranus Sans"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("uranus/fonts/Noor-Regular.woff") format("woff"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+25CC, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Uranus Sans"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("uranus/fonts/Lato-Bold.woff") format("woff"); unicode-range: U+0000-024F, U+0259, U+02B0-02FF, U+0300-036F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-21FF, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Uranus Sans"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("uranus/fonts/Noor-Bold.woff") format("woff"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+25CC, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Uranus Sans"; font-style: normal; font-weight: 800 900; font-display: swap; src: url("uranus/fonts/Lato-Black.woff") format("woff"); unicode-range: U+0000-024F, U+0259, U+02B0-02FF, U+0300-036F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-21FF, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Uranus Sans"; font-style: normal; font-weight: 800 900; font-display: swap; src: url("uranus/fonts/Noor-Bold.woff") format("woff"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+25CC, U+FB50-FDFF, U+FE70-FEFF; }
:root, [data-theme="dark"] {
  --uac-font: "Uranus Sans", "Noor", "Lato", "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;
  --uac-text: #EEE7F4; --uac-text-2: #D9CDE6; --uac-muted: #C3B6D3; --uac-faint: #B4A7C7;
  --uac-line: rgb(255 255 255 / .11);
  --uac-surface: #301F3F; --uac-soft: rgb(255 255 255 / .04);
  --uac-bg: linear-gradient(160deg, rgb(70 30 92 / .95), rgb(30 12 42 / .96));
  --uac-border: rgb(255 255 255 / .12);
  --uac-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 22px 60px rgb(5 2 10 / .55);
  --uac-hover: rgb(255 255 255 / .07);
  --uac-on: rgb(252 172 50 / .12); --uac-on-text: #FFC766; --uac-chip: rgb(252 172 50 / .14);
  --uac-danger: #FCA5A5; --uac-danger-bg: rgb(252 165 165 / .1);
  --uac-scrim: rgb(14 6 21 / .55);
  --uac-track: rgb(122 44 150 / .55);
}
[data-theme="light"] {
  --uac-text: #2E1338; --uac-text-2: #46284F; --uac-muted: #574A5F; --uac-faint: #5E5166;
  --uac-line: #E3D7E0;
  --uac-surface: #F2EBEF; --uac-soft: rgb(255 255 255 / .7);
  --uac-bg: linear-gradient(160deg, rgb(255 255 255 / .97), rgb(248 242 251 / .96));
  --uac-border: rgb(59 26 80 / .12);
  --uac-shadow: 0 22px 60px rgb(59 26 80 / .18);
  --uac-hover: rgb(59 26 80 / .05);
  --uac-on: rgb(252 172 50 / .14); --uac-on-text: #7A4E00; --uac-chip: rgb(252 172 50 / .16);
  --uac-danger: #C0262D; --uac-danger-bg: rgb(192 38 45 / .07);
  --uac-scrim: rgb(59 26 80 / .25);
  --uac-track: rgb(122 44 150 / .22);
}
uranus-account { display: inline-flex; flex: none; align-items: center; gap: 6px; vertical-align: middle; }
/* The language globe: a small glass circle right before the avatar (same place in every system) */
.uac-lbtn.uac-lbtn { all: unset; box-sizing: border-box; display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  color: var(--uac-text-2); background: var(--uac-soft); border: 1px solid var(--uac-line); transition: background .15s, border-color .15s; -webkit-tap-highlight-color: transparent; }
.uac-lbtn.uac-lbtn:hover, .uac-lbtn.uac-lbtn[aria-expanded="true"] { background: rgb(252 172 50 / .12); border-color: rgb(252 172 50 / .45); color: var(--uac-text); }
.uac-lbtn.uac-lbtn:focus-visible { outline: 2px solid #FCAC32; outline-offset: 2px; }
.uac-lbtn svg { width: 19px; height: 19px; }
/* The button (= One's user button): 40px pill, 32px avatar, first name from 900px up */
.uac-btn.uac-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; height: 40px; max-width: 220px; padding: 3px; border-radius: 999px; cursor: pointer;
  font: 600 13px/1 var(--uac-font); color: var(--uac-text); background: var(--uac-surface); border: 1px solid var(--uac-line); transition: background .15s, border-color .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.uac-btn.uac-btn--named { padding-inline-end: 10px; }
.uac-btn.uac-btn:hover { border-color: rgb(252 172 50 / .45); }
.uac-btn.uac-btn:focus-visible { outline: 2px solid #FCAC32; outline-offset: 2px; }
.uac-btn.uac-btn[aria-expanded="true"] { border-color: rgb(252 172 50 / .55); }
.uac-btn__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 899px) { .uac-btn.uac-btn--named { padding-inline-end: 3px; } .uac-btn__name { display: none; } }
.uac-avatar { box-sizing: border-box; display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, #581A50, #3B1A50); color: #FCAC32; box-shadow: 0 0 0 1px rgb(252 172 50 / .35); font: 700 12.5px/1 var(--uac-font); letter-spacing: .02em; text-transform: uppercase; }
.uac-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uac-avatar--lg { width: 48px; height: 48px; font-size: 16px; }

/* The menu (= One's account popover) */
.uac-menu.uac-menu { all: unset; display: block; box-sizing: border-box; position: fixed; z-index: 2147483000; inset: auto; margin: 0; width: min(290px, calc(100vw - 16px)); max-height: calc(100vh - 80px); overflow: auto; overscroll-behavior: contain;
  padding: 0; border-radius: 18px; border: 1px solid var(--uac-border); background: var(--uac-bg); box-shadow: var(--uac-shadow); color: var(--uac-text);
  font: 400 14px/1.7 var(--uac-font); text-align: start; -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); animation: uac-in .14s ease-out; }
.uac-menu *, .uac-menu *::before, .uac-menu *::after { box-sizing: border-box; }
.uac-menu:focus { outline: none; }
.uac-menu svg { width: 17px; height: 17px; flex: none; }
.uac-menu.uac-menu--lang { width: min(250px, calc(100vw - 16px)); }
.uac-menu--lang .uac-item__txt { display: block; }
.uac-menu .uac-code { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--uac-faint); }
.uac-menu [aria-checked="true"] > .uac-code { color: var(--uac-on-text); }
.uac-menu .uac-end:empty { width: 17px; }
.uac-menu.uac-menu--sheet { inset: auto 0 0 0; width: 100%; max-width: 100%; max-height: 86vh; border-radius: 22px 22px 0 0; border-block-end: 0; padding-block-end: env(safe-area-inset-bottom, 0px); animation: uac-up .2s ease-out; }
.uac-scrim { all: unset; display: block; position: fixed; inset: 0; z-index: 2147482999; margin: 0; width: auto; height: auto; background: var(--uac-scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.uac-menu::backdrop, .uac-scrim::backdrop { background: transparent; }
.uac-grip { display: block; width: 40px; height: 4px; margin: 10px auto 0; border-radius: 4px; background: var(--uac-line); }
.uac-menu .uac-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px; border-block-end: 1px solid var(--uac-line); }
.uac-head__txt { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; flex: 1; }
.uac-head__name { display: block; max-width: 100%; font-weight: 700; font-size: 14px; line-height: 1.7; color: var(--uac-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uac-head__email { display: block; max-width: 100%; font-size: 12px; line-height: 1.7; color: var(--uac-faint); overflow-wrap: anywhere; text-align: start; unicode-bidi: plaintext; }
.uac-head__role { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.uac-head__meta { font-size: 12px; line-height: 1.5; color: var(--uac-faint); }
.uac-chip { display: inline-flex; flex: none; align-items: center; width: auto; height: 20px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1; color: var(--uac-on-text); background: var(--uac-chip); box-shadow: inset 0 0 0 1px rgb(252 172 50 / .3); white-space: nowrap; }
.uac-list { display: flex; flex-direction: column; padding: 6px; }
.uac-menu .uac-item.uac-item { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; cursor: pointer;
  font: 600 13.5px/1.7 var(--uac-font); color: var(--uac-text-2); text-decoration: none; text-align: start; }
.uac-menu .uac-item.uac-item:hover, .uac-menu .uac-item.uac-item:focus-visible { background: var(--uac-hover); color: var(--uac-text); }
.uac-menu .uac-item.uac-item:focus-visible { outline: 2px solid #FCAC32; outline-offset: -2px; }
.uac-item[aria-disabled="true"] { opacity: .6; cursor: default; }
.uac-item > svg { color: var(--uac-faint); }
.uac-menu .uac-item > svg:not([stroke]) { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.uac-menu .uac-item.uac-item[aria-checked="true"] { color: var(--uac-on-text); background: var(--uac-on); }
.uac-item__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.uac-item__txt small { font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--uac-faint); }
.uac-end { margin-inline-start: auto; font-size: 12px; font-weight: 600; color: var(--uac-faint); }
.uac-menu .uac-end svg { width: 17px; height: 17px; }
[aria-checked="true"] > .uac-end { color: var(--uac-on-text); }
.uac-menu .uac-item__ext { width: 14px; height: 14px; opacity: .75; }
[dir="rtl"] .uac-item__ext { transform: scaleX(-1); }
.uac-menu .uac-item.uac-item--danger, .uac-menu .uac-item.uac-item--danger > svg { color: var(--uac-danger); }
.uac-menu .uac-item.uac-item--danger:hover, .uac-menu .uac-item.uac-item--danger:focus-visible { background: var(--uac-danger-bg); color: var(--uac-danger); }
.uac-menu .uac-sep { height: 1px; margin: 6px 4px; background: var(--uac-line); }
.uac-label { padding: 8px 10px 4px; font-size: 11.5px; font-weight: 600; line-height: 1.7; color: var(--uac-faint); }
.uac-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; font-size: 13px; line-height: 1.7; color: var(--uac-muted); }
.uac-menu .uac-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--uac-surface); border: 1px solid var(--uac-line); }
.uac-menu .uac-seg > button.uac-sb { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 1px 12px; border-radius: 10px; cursor: pointer;
  font: 600 13px/1.7 var(--uac-font); color: var(--uac-muted); white-space: nowrap; }
.uac-menu .uac-seg > button.uac-sb svg { width: 15px; height: 15px; }
.uac-menu .uac-seg > button.uac-sb:hover { color: var(--uac-text); background: var(--uac-hover); }
.uac-menu .uac-seg > button.uac-sb:focus-visible { outline: 2px solid #FCAC32; outline-offset: 0; }
.uac-menu .uac-seg > button.uac-sb[aria-checked="true"] { color: var(--uac-on-text); background: var(--uac-on); box-shadow: 0 1px 2px rgb(0 0 0 / .18), 0 0 0 1px var(--uac-line); }
.uac-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #9A8BAA; }
.uac-dot--on { background: #2FBF71; box-shadow: 0 0 0 3px rgb(47 191 113 / .2); }
.uac-dot--warn { background: #FCAC32; box-shadow: 0 0 0 3px rgb(252 172 50 / .2); }
.uac-dot--off { background: #E5484D; box-shadow: 0 0 0 3px rgb(229 72 77 / .18); }
.uac-badge { display: inline-flex; align-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1; color: var(--uac-on-text); background: var(--uac-chip); }
@media (max-width: 640px) { .uac-menu--sheet .uac-item.uac-item { min-height: 44px; } .uac-menu--sheet .uac-seg > button.uac-sb { height: 36px; } }
@keyframes uac-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes uac-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }

/* The Uranus loader: a gold ring turning on a plum track. Sizes: --sm 16px, default 28px, --lg 44px.
   Apps map their own spinner classes onto it in their adapter (uranus-glass-<app>.css). */
.uac-loader { box-sizing: border-box; display: inline-block; flex: none; vertical-align: middle; width: var(--uac-loader-size, 28px); height: var(--uac-loader-size, 28px); border-radius: 50%;
  border: max(2px, calc(var(--uac-loader-size, 28px) / 9)) solid var(--uac-track); border-top-color: #FCAC32; border-inline-end-color: rgb(252 172 50 / .55);
  background: radial-gradient(circle, rgb(122 44 150 / .18) 0 55%, transparent 56%); animation: uac-spin .8s linear infinite; }
.uac-loader--sm { --uac-loader-size: 16px; } .uac-loader--lg { --uac-loader-size: 44px; }
.uac-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 120px; padding: 24px; color: var(--uac-muted); font: 600 13.5px/1.4 var(--uac-font); text-align: center; }
.uac-loading--page { position: fixed; inset: 0; z-index: 2147482000; min-height: 100vh; background: linear-gradient(150deg, #2A0F3A 0%, #1A0A25 55%, #0E0615 100%); }
[data-theme="light"] .uac-loading--page { background: linear-gradient(150deg, #FBF7FD, #F1E8F6); }
@keyframes uac-spin { to { transform: rotate(360deg); } }
/* The kit spinner (.u-spinner) takes the Uranus loader look in every kit app. */
.u-spinner { border: 2px solid var(--uac-track) !important; border-block-start-color: #FCAC32 !important; border-inline-end-color: rgb(252 172 50 / .55) !important; animation: uac-spin .8s linear infinite !important; }
/* Helper for adapters: an icon spinner (e.g. lucide Loader2 with .spin / .animate-spin) drawn as the Uranus ring. */
svg.uac-ring, .uac-ring-svg svg { box-sizing: border-box; border-radius: 50%; border: 3px solid var(--uac-track); border-top-color: #FCAC32; border-inline-end-color: rgb(252 172 50 / .55); animation: uac-spin .8s linear infinite; }
svg.uac-ring > *, .uac-ring-svg svg > * { display: none; }
@media (prefers-reduced-motion: reduce) {
  .uac-menu, .uac-menu.uac-menu--sheet { animation: none; }
  .uac-loader { animation-duration: 2.4s; }
}
/* ---------- end 8 ---------- */

/* ---------- 9. The shared top bar inside <uranus-shell> (shadow DOM) ----------
   uranus-shell.js copies every rule of this file whose selector starts with ".u-shell" (also inside @media) into its shadow
   root, so keep this section's selectors prefixed with ".u-shell". The blur stays on .u-topbar::before (never on the bar
   itself) so position:fixed children keep working. Marker: uranus-shell-glass:2026-11-11 */
.u-shell .u-topbar { border-block-end: 1px solid var(--ug-line); font-family: var(--uac-font); }
.u-shell .u-topbar::before { background: var(--ug-bar); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.u-shell .u-topbar::after { opacity: .3; }
.u-shell .u-brand__name { font-weight: 700; }
.u-shell .u-brand__product { color: var(--ug-gold-text); font-weight: 700; }
/* rule 13 (QA HUB-013 / SVC-014 / HR-012), marker uranus-shell-glass:shortname-2026-11-12: the app name never cuts. It wraps
   instead of an ellipsis, carries its full text as a tooltip, and on phones uranus-shell.js shows the short name (.u-brand__short). */
.u-shell .u-brand__text { overflow: visible; }
.u-shell .u-brand__name, .u-shell .u-brand__short { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.15; }
.u-shell .u-brand__short { display: none; font-weight: 700; color: var(--u-text); }
@media (max-width: 760px) {
  .u-shell .u-brand--has-short .u-brand__name { display: none; }
  .u-shell .u-brand--has-short .u-brand__short { display: block; }
  .u-shell .u-brand__name, .u-shell .u-brand__short { font-size: 14px; }
}
.u-shell :focus-visible { outline: 2px solid #FCAC32; outline-offset: 2px; }
/* search: a glass pill */
.u-shell .u-searchbtn { border-radius: 999px; background: var(--ug-capsule); border: 1px solid var(--ug-line-2); box-shadow: var(--ug-capsule-shadow); color: var(--u-muted); font-weight: 600; }
.u-shell .u-searchbtn:hover { border-color: var(--ug-hover); color: var(--u-text); background: var(--ug-capsule); }
.u-shell .u-searchbtn svg { color: var(--ug-gold-text); }
.u-shell .u-kbd { border-radius: 999px; background: var(--ug-soft); border-color: var(--ug-line-2); color: var(--u-muted); }
/* icon buttons: small glass circles */
.u-shell .u-iconbtn { width: 38px; height: 38px; border-radius: 50%; background: var(--ug-soft); border: 1px solid var(--ug-line); color: var(--u-text-2); }
.u-shell .u-iconbtn:hover, .u-shell .u-iconbtn[aria-expanded="true"] { background: var(--ug-gold-soft); border-color: var(--ug-gold-line); color: var(--u-text); }
.u-shell .u-iconbtn__count { background: #FCAC32; color: #2A1336; }
/* wave4 display rule 1: no top-bar text under 11.5px (product line, Ctrl K key cap, bell count were 10–10.5px) */
.u-shell .u-brand__product { font-size: 11.5px; letter-spacing: .12em; }
.u-shell .u-kbd { font-size: 11.5px; line-height: 18px; }
.u-shell .u-iconbtn__count { min-width: 19px; height: 19px; font-size: 11.5px; line-height: 19px; }
@media (max-width: 900px) {
  .u-shell .u-searchbtn { width: 38px; min-width: 38px; border-radius: 50%; background: var(--ug-soft); border: 1px solid var(--ug-line); box-shadow: none; }
}
/* popovers, menus, palette and the phone drawer: the glass recipe of section 4 */
.u-shell .u-popover, .u-shell .u-palette { color: var(--u-text); background: var(--ug-glass-solid); border: 1px solid var(--ug-line-2); border-radius: 18px; box-shadow: var(--ug-shadow-pop); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); }
.u-shell .u-popover__head { border-block-end: 1px solid var(--ug-line); }
.u-shell .u-popover__head b { font-weight: 700; color: var(--u-text); }
.u-shell .u-popover__foot { border-block-start-color: var(--ug-line); background: var(--ug-soft); border-radius: 0 0 18px 18px; }
.u-shell .u-popover__foot .u-link { color: var(--ug-gold-text); font-weight: 700; }
.u-shell .u-menu__item { border-radius: 10px; font-weight: 600; }
.u-shell .u-menu__item:hover, .u-shell .u-menu__item:focus-visible { background: var(--ug-row-hover); }
.u-shell .u-menu__item[aria-checked="true"] { color: var(--ug-gold-text); background: var(--ug-gold-soft); }
.u-shell .u-palette-backdrop { background: var(--ug-scrim); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); }
.u-shell .u-palette__input { border-block-end-color: var(--ug-line); }
.u-shell .u-palette__input svg, .u-shell .u-palette__group { color: var(--ug-gold-text); font-weight: 700; }
.u-shell .u-palette__item { border-radius: 12px; }
.u-shell .u-palette__item[aria-selected="true"] { background: var(--ug-gold-soft); box-shadow: inset 0 0 0 1px var(--ug-gold-line); }
.u-shell .u-palette__item b { font-weight: 700; color: var(--u-text); }
.u-shell .u-palette__foot { border-block-start-color: var(--ug-line); background: var(--ug-soft); color: var(--u-muted); }
.u-shell .u-sh-drawer { background: var(--ug-glass-solid); border-color: var(--ug-line-2); }
/* systems grid: glass tiles, plum squares with gold line icons, gold ring on the current system */
.u-shell .u-switcher__app { border-radius: 14px; border: 1px solid var(--ug-line); background: var(--ug-soft); color: var(--u-text-2); font-weight: 600; }
.u-shell .u-switcher__app:hover, .u-shell .u-switcher__app:focus-visible { background: var(--ug-row-hover); border-color: var(--ug-gold-line); color: var(--u-text); }
.u-shell .u-switcher__app.is-current { background: var(--ug-gold-soft); border-color: rgb(252 172 50 / .5); color: var(--u-text); font-weight: 700; }
.u-shell .u-appicon { color: #FFC766; background: linear-gradient(150deg, color-mix(in srgb, var(--u-app-color, #7A2E86) 16%, #5A2577), #2A0F3A);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), inset 0 0 0 1px rgb(252 172 50 / .32), 0 6px 16px -8px rgb(5 2 10 / .6); }
.u-shell .u-switcher__app.is-current .u-appicon { box-shadow: 0 0 0 2px #FCAC32, inset 0 1px 0 rgb(255 255 255 / .16), 0 6px 16px -8px rgb(5 2 10 / .6); }
/* Search palette (Ctrl K): phone = full-screen sheet with a close button, tablet = centred panel (max 92vw / 80vh), desktop as
   before. Nothing may be wider than the box: titles truncate at the end, group labels stay on top while the list scrolls.
   ".u-shell …" = inside the shell's shadow root; "body > .u-palette-backdrop" = Uranus One's light-DOM palette. */
.u-shell .u-palette, body > .u-palette-backdrop .u-palette { box-sizing: border-box; max-width: 100%; min-width: 0; }
.u-shell .u-palette__close, body > .u-palette-backdrop .u-palette__close { display: none; flex: none; place-items: center; width: 40px; height: 40px; margin-inline-end: -6px; padding: 0; border: 0; border-radius: 50%; background: var(--ug-soft); color: var(--u-text-2); cursor: pointer; }
.u-shell .u-palette__close svg, body > .u-palette-backdrop .u-palette__close svg { width: 18px; height: 18px; }
.u-shell .u-palette__list, body > .u-palette-backdrop .u-palette__list { min-height: 0; overflow-x: hidden; overscroll-behavior: contain; }
.u-shell .u-palette__item, body > .u-palette-backdrop .u-palette__item { box-sizing: border-box; max-width: 100%; min-width: 0; }
.u-shell .u-palette__item .u-grow, body > .u-palette-backdrop .u-palette__item .u-grow { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.u-shell .u-palette__item b, .u-shell .u-palette__item small, body > .u-palette-backdrop .u-palette__item b, body > .u-palette-backdrop .u-palette__item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-shell .u-palette__group, body > .u-palette-backdrop .u-palette__group { position: sticky; top: -8px; z-index: 1; background: var(--ug-glass-solid); }
@media (max-width: 600px) {
  .u-shell dialog.u-palette-backdrop, body > .u-palette-backdrop { padding: 0; align-items: stretch; justify-content: stretch; }
  .u-shell .u-palette, body > .u-palette-backdrop .u-palette { width: 100%; height: 100%; max-height: none; border-radius: 0; border: 0; padding-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px); }
  .u-shell .u-palette__input, body > .u-palette-backdrop .u-palette__input { padding-inline: 14px 10px; gap: 10px; }
  .u-shell .u-palette__input .u-kbd, body > .u-palette-backdrop .u-palette__input .u-kbd { display: none; }
  .u-shell .u-palette__close, body > .u-palette-backdrop .u-palette__close { display: inline-grid; }
  .u-shell .u-palette__list, body > .u-palette-backdrop .u-palette__list { flex: 1 1 auto; }
  .u-shell .u-palette__foot, body > .u-palette-backdrop .u-palette__foot { display: none; }
}
@media (min-width: 601px) and (max-width: 1100px) {
  .u-shell dialog.u-palette-backdrop, body > .u-palette-backdrop { padding: 8vh 16px 16px; align-items: flex-start; }
  .u-shell .u-palette, body > .u-palette-backdrop .u-palette { width: min(640px, 92vw); max-height: 80vh; }
}
/* ---------- end 9 ---------- */

/* ---------- 10. Display rules (shared/uranus-glass/DISPLAY-RULES.md) ----------
   The globally safe part of the display rules; each app adapter (uranus-glass-<app>.css) fixes the rest.
   Helpers for adapters and app markup:
     .ug-ugc     user content (names, messages, subjects, notes): reads in its own direction, keeps the page's alignment
     .ug-trunc   one-line truncation that cuts the END of the text in its own direction
     .ug-ltr     numbers, phones, emails, codes, IDs: LTR-isolated, keeps the page's alignment
     .ug-avatar  plum glass circle, gold ring, gold initials
     .ug-send    a send button = the gold primary button
     .ug-panes   multi-pane screen: every pane full height to the bottom of the viewport, each scrolls on its own
                 (--ug-panes-top = the panes' top offset; default 140px)
     .ug-w-form / .ug-w-read / .ug-w-work  centred content widths 760 / 960 / 1440 (dashboards: uranus-components.css)
   Note: `text-align: match-parent` is not supported by Chrome, so isolated text gets its alignment from :dir().
   Marker: display-rules:2026-11-11 */

/* 10.1 Tabs, segmented controls, filter chips: never wrap; a tab's size never changes with its state */
.u-tabs, .u-seg, .ug-capsule, [role="tablist"] { flex-wrap: nowrap; }
.u-tab, .u-seg > *, .ug-capsule > *, .u-chip, .u-badge, [role="tab"], [role="tablist"] > :is(button, a) { white-space: nowrap; }
.u-tab, .u-seg > *, .ug-capsule > *, [role="tab"] { font-weight: 700; }
:is(.u-tab, .u-seg > *, .ug-capsule > *, [role="tab"], .u-chip) :is(.u-badge, .u-count, .ug-count) { font-variant-numeric: tabular-nums; }

/* 10.2 Direction: user content isolated; numbers, phones, emails, codes and IDs LTR-isolated */
.ug-ugc, .ug-trunc, [data-ugc] { unicode-bidi: plaintext; }
.ug-trunc { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.ug-ugc, .ug-trunc, [data-ugc]):dir(ltr) { text-align: left; }
:is(.ug-ugc, .ug-trunc, [data-ugc]):dir(rtl) { text-align: right; }
.ug-ltr, [data-ltr], a[href^="tel:"], a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; }
:is(.ug-ltr, [data-ltr]):dir(rtl) { text-align: right; }
input:is([type="email"], [type="tel"], [type="url"]) { direction: ltr; }
input:is([type="email"], [type="tel"], [type="url"]):dir(rtl) { text-align: right; }
/* names, titles and descriptions in the kit's tiles, cards and lists */
:is(.u-tile__title, .u-tile__desc, .u-card__title, .u-list__title, .u-list__meta) { unicode-bidi: plaintext; }
:is(.u-tile__title, .u-tile__desc, .u-card__title, .u-list__title, .u-list__meta):dir(ltr) { text-align: left; }
:is(.u-tile__title, .u-tile__desc, .u-card__title, .u-list__title, .u-list__meta):dir(rtl) { text-align: right; }

/* 10.3 Type: nothing below 11.5px (kit pieces that were 10–11px) */
.u-app small { font-size: max(11.5px, .833em); }
html :is(.u-badge, .u-tab .u-badge, .u-kbd, .u-avatar, .u-bottomnav__item) { font-size: 11.5px; }
.uac-chip, .uac-badge { font-size: 11.5px; }

/* 10.4 Avatars: plum glass circle, gold ring, gold initials (or a photo) */
.ug-avatar, .u-avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, #581A50, #3B1A50) !important; color: #FCAC32 !important; box-shadow: 0 0 0 1px rgb(252 172 50 / .45) !important;
  font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
:is(.ug-avatar, .u-avatar) img { width: 100%; height: 100%; object-fit: cover; }

/* 10.5 Send buttons are primary: the gold button */
.ug-send, .u-btn--send { background: var(--ug-gold-btn) !important; color: var(--ug-on-gold) !important; border: 0 !important; box-shadow: 0 8px 22px rgb(252 172 50 / .25); }
:is(.ug-send, .u-btn--send):hover:not(:disabled) { filter: brightness(1.05); }

/* 10.6 Multi-pane screens: full height, each pane scrolls on its own, no pane ends early */
.ug-panes { display: grid; grid-auto-flow: column; align-items: stretch; height: calc(100dvh - var(--ug-panes-top, 140px)); min-height: 420px; }
.ug-panes > * { min-height: 0; max-height: none; overflow: auto; }
@media (max-width: 760px) { .ug-panes { grid-auto-flow: row; height: auto; } .ug-panes > * { overflow: visible; } }

/* 10.7 Content width per page type, centred on wide screens */
.ug-w-form { max-width: 760px; margin-inline: auto; }
.ug-w-read { max-width: 960px; margin-inline: auto; }
.ug-w-work { max-width: 1440px; margin-inline: auto; }

/* 10.8 Lists: one-line title and meta */
.u-list__title, .u-list__meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* 10.9 Phones (rule 14): fixed scale. Text fields are at least 16px on touch devices and phone widths (iOS zooms into
   smaller ones on focus); !important because app styles size their fields with class selectors. iOS keeps the text size
   it was given. Safety net: the page itself never scrolls sideways on a phone (content that sticks out is still a bug;
   the phone sweep reports it). Marker: phone-sweep:2026-11-11 */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (pointer: coarse), (max-width: 760px) {
  html :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="hidden"], [type="submit"], [type="button"], [type="reset"], [type="image"]), select, textarea) { font-size: max(16px, 1em) !important; }
  html, body { overflow-x: clip; }
  select { max-width: 100%; } /* a select is as wide as its longest option: never wider than its box */
}
/* the kit's bottom tabs step aside while a text field is focused (they would cover it above the keyboard) */
@media (max-width: 760px) {
  html:has(:is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="button"], [type="submit"]), textarea, [contenteditable="true"]):focus) .u-bottomnav { display: none; }
}
/* ---------- end 10 ---------- */
