/* Aureality shared kit v0.1 — one look for aureality.info, .online, .cloud, .eu, .cz and .tech.
   Reference look: the globe (moving from aureality.info to aureality.cloud). One dark theme (CEO decision 2026-10-26).
   Layout: the stage (globe, 3D space, page) fills the screen; chrome floats over it:
   top bar, a collapsible sidebar on the left, an info panel on the right, a quiet footer line.
   Every class is prefixed ax- so the kit can sit next to existing site CSS. */

:root {
  /* colour */
  --ax-bg: #07090D;        /* page and stage */
  --ax-alt: #0E1116;       /* inputs, secondary buttons */
  --ax-panel: #151920;     /* floating surfaces */
  --ax-glass: rgba(17, 21, 27, .96);   /* sidebar and panels: about 96% opaque */
  --ax-glass-lo: rgba(7, 9, 13, .55);
  --ax-line: #262C36;
  --ax-text: #F5F7FB;
  --ax-muted: #A4ADBA;
  --ax-button: #2563EB;    /* fills only, never text on dark */
  --ax-button-hi: #2F6EF0;
  --ax-link: #7FB0FF;
  --ax-hi: #8DBBFF;        /* accent text, focus, the "light" glow */
  --ax-hi-soft: rgba(141, 187, 255, .28);
  --ax-good: #5FD3A8;
  --ax-warn: #F2C46D;
  --ax-bad: #FF9A8A;
  /* type */
  --ax-font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ax-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* shape */
  --ax-r-sm: 8px; --ax-r: 12px; --ax-r-lg: 16px; --ax-pill: 999px;
  --ax-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  --ax-blur: blur(10px);
  /* edges */
  --ax-gut-l: max(16px, env(safe-area-inset-left, 0px));
  --ax-gut-r: max(16px, env(safe-area-inset-right, 0px));
  --ax-top-h: 64px;
  --ax-side-w: 300px;
  color-scheme: dark;
  /* short names used by the existing sites and by au-sidebar.js (same values) */
  --bg: var(--ax-bg); --alt: var(--ax-alt); --panel: var(--ax-panel); --line: var(--ax-line); --text: var(--ax-text); --muted: var(--ax-muted);
  --button: var(--ax-button); --link: var(--ax-link); --hi: var(--ax-hi); --font: var(--ax-font); --mono: var(--ax-mono);
}

.ax, .ax body { background: var(--ax-bg); color: var(--ax-text); font: 400 16px/1.55 var(--ax-font); -webkit-font-smoothing: antialiased; }
.ax *, .ax *::before, .ax *::after { box-sizing: border-box; }
.ax :where(a) { color: var(--ax-link); }
.ax :focus-visible { outline: 2px solid var(--ax-hi); outline-offset: 3px; border-radius: 6px; }
.ax h1, .ax h2, .ax h3 { font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }

/* ---------- type helpers ---------- */
.ax-kicker { margin: 0 0 6px; font: 500 12px/1 var(--ax-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ax-hi); }
.ax-muted { color: var(--ax-muted); }
.ax-num { font-family: var(--ax-mono); font-variant-numeric: tabular-nums; }
.ax-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--ax-line); border-radius: var(--ax-pill); font: 500 12px/1.3 var(--ax-mono); color: var(--ax-muted); }
.ax-chip.is-live { color: var(--ax-hi); border-color: rgba(141, 187, 255, .4); }
.ax-chip.is-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ax-hi); box-shadow: 0 0 8px var(--ax-hi); }

/* ---------- buttons ---------- */
.ax-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; border-radius: 10px;
  font: 500 15px/1 var(--ax-font); text-decoration: none; color: var(--ax-text); border: 1px solid var(--ax-line); background: var(--ax-alt); cursor: pointer; }
.ax-btn:hover { border-color: var(--ax-hi); }
.ax-btn.is-primary { background: var(--ax-button); border-color: var(--ax-button); color: #fff; }
.ax-btn.is-primary:hover { background: var(--ax-button-hi); }
.ax-btn.is-ghost { background: transparent; }
.ax-pillbtn { font: 500 14px/1 var(--ax-font); color: var(--ax-text); background: var(--ax-glass); border: 1px solid var(--ax-line); border-radius: var(--ax-pill);
  padding: 10px 14px; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.ax-pillbtn:hover { border-color: var(--ax-hi); }
.ax-iconbtn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--ax-line); background: transparent; color: var(--ax-muted); cursor: pointer; }
.ax-iconbtn:hover { color: var(--ax-text); border-color: var(--ax-hi); }
.ax-iconbtn svg { width: 18px; height: 18px; }

/* ---------- top bar ---------- */
.ax-top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 12px; padding-left: var(--ax-gut-l); padding-right: var(--ax-gut-r); pointer-events: none; }
.ax-top > * { pointer-events: auto; }
.ax-top.is-solid { position: sticky; top: env(safe-area-inset-top, 0px); padding-top: 12px; background: rgba(7, 9, 13, .82); backdrop-filter: var(--ax-blur); -webkit-backdrop-filter: var(--ax-blur); border-bottom: 1px solid var(--ax-line); pointer-events: auto; }
.ax-brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ax-text); margin-right: auto; min-width: 0; }
.ax-brand svg { width: 36px; height: 36px; flex: none; }
.ax-brand b { display: block; font-weight: 500; font-size: 17px; letter-spacing: .01em; white-space: nowrap; }
.ax-brand span { display: block; color: var(--ax-muted); font-size: 12px; white-space: nowrap; }

/* sites strip: thin bar across the very top of every site, same as the globe (aureality.cloud).
   Order: Overview .info | Globe .cloud · Europe .eu · Czechia .cz · Space .online. The header row sits under it. */
.au-sites { position: fixed; z-index: 21; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 2px;
  height: calc(28px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
  background: rgba(7, 9, 13, .74); border-bottom: 1px solid rgba(38, 44, 54, .85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 400 12px/1 var(--ax-font); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.au-sites::-webkit-scrollbar { display: none; }
.au-sites-k { margin-right: 8px; color: var(--ax-muted); font: 500 10px/1 var(--ax-mono); letter-spacing: .14em; text-transform: uppercase; }
.au-sites a { display: inline-block; flex: none; margin: 0; border: 0; font: 500 12.5px/1 var(--ax-font); letter-spacing: .01em; padding: 6px 10px; border-radius: 999px; color: var(--ax-muted); text-decoration: none; }
.au-sites a small { display: inline; margin: 0 0 0 6px; font: 400 11px/1 var(--ax-font); color: var(--ax-muted); opacity: .8; }
.au-sites a:hover { color: var(--ax-text); background: rgba(255, 255, 255, .06); }
.au-sites a[aria-current="page"] { color: var(--ax-text); background: rgba(141, 187, 255, .13); }
.au-sites a[aria-current="page"] small { color: var(--ax-hi); opacity: 1; }
.au-sites a { font-variant-ligatures: none; }
.au-sites a:focus-visible { outline: 2px solid var(--ax-hi); outline-offset: -2px; }
.au-sites-sep { width: 1px; height: 12px; margin: 0 4px; background: var(--ax-line); flex: none; }
/* with the strip, everything that hangs under the header moves down 28px */
.ax-has-sites { --ax-top-h: 80px; }
.ax-has-sites .ax-top { top: calc(28px + env(safe-area-inset-top, 0px)); padding-top: 12px; }
.ax-has-sites .ax-top.is-solid { top: calc(28px + env(safe-area-inset-top, 0px)); }

/* account: "Sign in" pill, or initials + menu */
.ax-account { position: relative; }
.ax-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 var(--ax-font); color: var(--ax-bg);
  background: radial-gradient(circle at 35% 30%, #BFD7FF, var(--ax-hi) 60%, #3B7BF5); border: 0; cursor: pointer; box-shadow: 0 0 0 3px rgba(141, 187, 255, .18); }
.ax-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 8px; border-radius: var(--ax-r); background: var(--ax-panel); border: 1px solid var(--ax-line); box-shadow: var(--ax-shadow); }
.ax-menu header { padding: 8px 10px 10px; border-bottom: 1px solid var(--ax-line); margin-bottom: 6px; }
.ax-menu header b { display: block; font-weight: 500; }
.ax-menu header span { font: 400 12px/1.4 var(--ax-mono); color: var(--ax-muted); }
.ax-menu a, .ax-menu button { display: flex; width: 100%; padding: 9px 10px; border-radius: var(--ax-r-sm); font: 400 14px/1.2 var(--ax-font); color: var(--ax-text); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.ax-menu a:hover, .ax-menu button:hover { background: var(--ax-alt); }

/* ---------- floating sidebar (left) ---------- */
.ax-side { position: fixed; z-index: 15; left: var(--ax-gut-l); top: calc(var(--ax-top-h) + 12px + env(safe-area-inset-top, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(var(--ax-side-w), calc(100vw - 32px)); display: flex; flex-direction: column; border-radius: var(--ax-r-lg); background: var(--ax-glass); border: 1px solid var(--ax-line);
  box-shadow: var(--ax-shadow); backdrop-filter: var(--ax-blur); -webkit-backdrop-filter: var(--ax-blur); transition: transform .28s ease, opacity .28s ease; }
.ax-side-head { display: flex; align-items: center; gap: 8px; padding: 14px 12px 10px 16px; border-bottom: 1px solid var(--ax-line); }
.ax-side-head h2 { margin: 0; font-size: 16px; flex: 1; }
.ax-side-body { overflow: auto; padding: 6px 8px 12px; flex: 1; overscroll-behavior: contain; }
.ax-side-foot { padding: 10px 12px; border-top: 1px solid var(--ax-line); font-size: 13px; color: var(--ax-muted); }
.ax-side.is-collapsed { transform: translateX(calc(-100% - 24px)); opacity: 0; pointer-events: none; }
/* the tab that brings it back */
.ax-side-tab { position: fixed; z-index: 15; left: var(--ax-gut-l); top: calc(var(--ax-top-h) + 12px + env(safe-area-inset-top, 0px)); display: none; }
.ax-side.is-collapsed + .ax-side-tab { display: inline-flex; }

/* groups (topics) and rows (layers / rooms / filters) */
.ax-group { border-radius: var(--ax-r); }
.ax-group + .ax-group { margin-top: 2px; }
.ax-group > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: var(--ax-r); cursor: pointer; font-weight: 500; }
.ax-group > summary::-webkit-details-marker { display: none; }
.ax-group > summary:hover { background: rgba(255, 255, 255, .03); }
.ax-group > summary .ax-count { margin-left: auto; font: 400 12px/1 var(--ax-mono); color: var(--ax-muted); }
.ax-group > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--ax-muted); border-bottom: 1.5px solid var(--ax-muted); transform: rotate(-45deg); transition: transform .2s; margin: 0 4px 0 2px; }
.ax-group[open] > summary::after { transform: rotate(45deg); }
.ax-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--c, var(--ax-hi)); box-shadow: 0 0 10px 1px color-mix(in srgb, var(--c, var(--ax-hi)) 60%, transparent); }
.ax-rows { display: grid; gap: 1px; padding: 0 0 8px 18px; }
.ax-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--ax-r-sm); font-size: 14px; }
.ax-row:hover { background: rgba(255, 255, 255, .03); }
.ax-row label { flex: 1; min-width: 0; cursor: pointer; }
.ax-row small { display: block; font-size: 12px; color: var(--ax-muted); }
.ax-row.is-locked { color: var(--ax-muted); }
.ax-row.is-locked .ax-lock { font: 400 11px/1 var(--ax-mono); color: var(--ax-muted); border: 1px dashed var(--ax-line); border-radius: var(--ax-pill); padding: 4px 8px; white-space: nowrap; }

/* switch */
.ax-switch { appearance: none; -webkit-appearance: none; flex: none; width: 34px; height: 20px; border-radius: var(--ax-pill); background: var(--ax-line); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.ax-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ax-muted); transition: transform .2s, background .2s; }
.ax-switch:checked { background: var(--ax-button); }
.ax-switch:checked::after { transform: translateX(14px); background: #fff; }
.ax-switch:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- info panel (right) ---------- */
.ax-panel { position: fixed; z-index: 16; top: calc(var(--ax-top-h) + 12px + env(safe-area-inset-top, 0px)); right: var(--ax-gut-r); width: min(380px, calc(100vw - 32px));
  max-height: calc(100% - var(--ax-top-h) - 40px); overflow: auto; background: rgba(21, 25, 32, .94); border: 1px solid var(--ax-line); border-radius: var(--ax-r-lg);
  padding: 20px 20px 22px; box-shadow: var(--ax-shadow); backdrop-filter: var(--ax-blur); -webkit-backdrop-filter: var(--ax-blur); }
.ax-panel .ax-close { position: absolute; top: 12px; right: 12px; }
.ax-panel h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.15; padding-right: 40px; }

/* ---------- footer line ---------- */
.ax-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font: 400 12px/1.4 var(--ax-mono); color: var(--ax-muted); }
.ax-foot a { color: var(--ax-muted); text-decoration: none; }
.ax-foot a:hover { color: var(--ax-text); }
.ax-foot.is-floating { position: fixed; z-index: 14; right: var(--ax-gut-r); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); pointer-events: auto; }

/* ---------- forms and the sign-in card ---------- */
.ax-field { display: grid; gap: 6px; }
.ax-field label { font-weight: 500; font-size: 13px; }
.ax-input { width: 100%; padding: 11px 12px; font: inherit; color: var(--ax-text); background: var(--ax-alt); border: 1px solid var(--ax-line); border-radius: var(--ax-r-sm); }
.ax-input:focus-visible { outline: 2px solid var(--ax-hi); outline-offset: 1px; }
.ax-card { background: var(--ax-glass); border: 1px solid var(--ax-line); border-radius: var(--ax-r-lg); box-shadow: var(--ax-shadow); backdrop-filter: var(--ax-blur); -webkit-backdrop-filter: var(--ax-blur); }
.ax-error { color: var(--ax-bad); font-size: 14px; min-height: 1.4em; margin: 0; }

/* ---------- phones: sidebar becomes a bottom sheet, switcher shrinks to the current site ---------- */
@media (max-width: 760px) {
  .ax-brand span { display: none; }
}
@media (max-width: 480px) {
  .ax-brand b { display: none; }
}
@media (max-width: 640px) {
  .ax-side { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 62%; border-radius: 18px 18px 0 0; border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px); }
  .ax-side.is-collapsed { transform: translateY(calc(100% + 24px)); }
  .ax-panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 58%; border-radius: 18px 18px 0 0; border-bottom: 0;
    padding: 20px var(--ax-gut-r) calc(24px + env(safe-area-inset-bottom, 0px)) var(--ax-gut-l); }
  .ax-foot.is-floating { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ax-side, .ax-switch, .ax-switch::after, .ax-group > summary::after { transition: none; }
}
