/* ==========================================================================
   CRM Licence Panel: signed-out pages (sign in, forgotten password, reset,
   errors). The "Meridian" system, same palette as panel.css: the form on a
   quiet surface on the left, a midnight showcase on the right. No
   framework, no icon font.
   ========================================================================== */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/manrope-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/manrope-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --lg-brand-50: #EEF0FF; --lg-brand-100: #E0E4FF; --lg-brand-200: #C7CEFE; --lg-brand-500: #6366F1; --lg-brand-600: #4F46E5; --lg-brand-700: #4338CA; --lg-brand-800: #3730A3;
  --lg-grad: linear-gradient(135deg, #6366F1 0%, #4F46E5 48%, #4338CA 100%);
  --lg-canvas: #F6F6F8; --lg-surface: #FFFFFF; --lg-surface-2: #FAFAFB;
  --lg-text: #3F3F46; --lg-strong: #18181B; --lg-muted: #62626B; --lg-border: #E4E4E7; --lg-divider: #EFEFF1;
  --lg-ok: #047857; --lg-ok-bg: #ECFDF5; --lg-ok-line: #A7F3D0;
  --lg-warn: #92400E; --lg-warn-bg: #FFFBEB; --lg-warn-line: #FDE68A;
  --lg-bad: #BE123C; --lg-bad-bg: #FFF1F2; --lg-bad-line: #FECDD3;
  --lg-info: #4338CA; --lg-info-bg: #EEF0FF; --lg-info-line: #C7CEFE;
  --lg-night: #0C0E1D;
  --lg-ring: 0 0 0 2px var(--lg-surface), 0 0 0 4px var(--lg-brand-500);
  --lg-r: 10px; --lg-r-lg: 16px;
  --lg-font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --lg-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --lg-logo-filter: brightness(0) saturate(100%) invert(9%) sepia(6%) saturate(1022%) hue-rotate(201deg);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --lg-brand-50: rgba(99,102,241,.14); --lg-brand-100: rgba(99,102,241,.22); --lg-brand-200: rgba(99,102,241,.36); --lg-brand-500: #818CF8; --lg-brand-600: #818CF8; --lg-brand-700: #A5B4FC;
  --lg-grad: linear-gradient(135deg, #818CF8 0%, #6366F1 100%);
  --lg-canvas: #08080C; --lg-surface: #111117; --lg-surface-2: #0D0D12;
  --lg-text: #D4D4D8; --lg-strong: #FAFAFA; --lg-muted: #A1A1AA; --lg-border: #26262F; --lg-divider: #1C1C24;
  --lg-ok: #6EE7B7; --lg-ok-bg: rgba(16,185,129,.10); --lg-ok-line: rgba(16,185,129,.30);
  --lg-warn: #FCD34D; --lg-warn-bg: rgba(245,158,11,.10); --lg-warn-line: rgba(245,158,11,.30);
  --lg-bad: #FDA4AF; --lg-bad-bg: rgba(244,63,94,.10); --lg-bad-line: rgba(244,63,94,.30);
  --lg-info: #A5B4FC; --lg-info-bg: rgba(99,102,241,.14); --lg-info-line: rgba(99,102,241,.36);
  --lg-night: #07070B;
  --lg-logo-filter: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.au {
  margin: 0; min-height: calc(100vh / var(--zf, 1)); min-height: calc(100dvh / var(--zf, 1));
  background: var(--lg-canvas); color: var(--lg-text);
  font: 450 14px/22px var(--lg-font); letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, p, ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--lg-brand-700); }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.au-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: none; box-shadow: var(--lg-ring); border-radius: 8px; }
.au-skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 8px 12px; border-radius: 8px; background: var(--lg-surface); color: var(--lg-brand-700); font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.au-skip:focus { top: 12px; }

/* ---- Split layout ----------------------------------------------------------- */
.sg { display: grid; grid-template-columns: minmax(440px, 46fr) minmax(0, 54fr); min-height: calc(100vh / var(--zf, 1)); min-height: calc(100dvh / var(--zf, 1)); }
.sg-pane { display: flex; flex-direction: column; min-width: 0; padding: 28px 48px; background: var(--lg-surface); }
.sg-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
/* Brand: the wordmark, and the product name under it, both on one left edge.
   No icon tile: the wordmark already carries the mark. */
.sg-brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; text-decoration: none; color: var(--lg-strong); min-width: 0; border-radius: 8px; }
.sg-brand__logo { height: 32px; width: auto; flex: 0 0 auto; filter: var(--lg-logo-filter); }
/* Sized so the name spans exactly the wordmark's width. */
.sg-brand__name { display: block; margin-right: -.045em; font-size: 14.5px; line-height: 17px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; color: var(--lg-muted); white-space: nowrap; }
.sg-brand__name b { font-weight: 800; color: var(--lg-brand-700); }
.sg-theme {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--lg-border); border-radius: 10px;
  background: var(--lg-surface); color: var(--lg-text); font: 650 12.5px/1 var(--lg-font); cursor: pointer; transition: background .18s, border-color .18s;
}
.sg-theme:hover { background: var(--lg-surface-2); border-color: #D4D4D8; }
.sg-theme .ic { width: 16px; height: 16px; }
.sg-main { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.sg-main:focus { outline: none; }
.sg-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }

/* ---- The showcase ----------------------------------------------------------- */
.sg-show {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(120% 80% at 100% 0%, #1D1B4B 0%, transparent 55%), linear-gradient(160deg, #13153A 0%, var(--lg-night) 55%, #08091A 100%);
  display: flex; align-items: center; justify-content: center; padding: 56px 64px;
}
.sg-show::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 40%, #000 0%, transparent 85%); mask-image: radial-gradient(80% 70% at 60% 40%, #000 0%, transparent 85%);
}
.sg-show__glow { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.sg-show__glow--a { width: 560px; height: 560px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(129,140,248,.30), transparent 62%); }
.sg-show__glow--b { width: 420px; height: 420px; left: -140px; bottom: -180px; background: radial-gradient(circle, rgba(168,85,247,.20), transparent 62%); }
.sg-show__in { width: 100%; max-width: 560px; }
.sg-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); font-size: 12px; font-weight: 650; letter-spacing: .01em; color: #E0E3FF;
}
.sg-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #8B93FF; box-shadow: 0 0 0 4px rgba(139,147,255,.22); }
.sg-head { margin-top: 18px; font-size: clamp(28px, calc(2.6vw / var(--zf, 1)), 40px); line-height: 1.12; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; color: #fff; }
.sg-lead { margin-top: 12px; font-size: 15.5px; line-height: 25px; color: #C9CCE0; text-wrap: pretty; max-width: 46ch; }

/* The licence card, drawn the way the panel shows one. */
.sg-card {
  margin-top: 30px; padding: 18px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.sg-card__top { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.sg-card__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--lg-grad); color: #fff; }
.sg-card__ic .ic { width: 18px; height: 18px; }
.sg-card__id b { display: block; font-size: 15px; line-height: 20px; font-weight: 750; color: #fff; }
.sg-card__id small { display: block; font-size: 12px; line-height: 16px; color: #A8ADCC; }
.sg-card__chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; background: rgba(16,185,129,.16); border: 1px solid rgba(16,185,129,.35); color: #6EE7B7; font-size: 11.5px; font-weight: 750; }
.sg-card__chip i { width: 6px; height: 6px; border-radius: 50%; background: #34D399; }
.sg-card__seats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.sg-card__seats span { min-width: 0; padding: 11px 12px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.sg-card__seats b { display: block; font: 700 20px/24px var(--lg-mono); color: #fff; letter-spacing: -0.02em; }
.sg-card__seats small { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; color: #B4B9D6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-card__key { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px dashed rgba(255,255,255,.16); }
.sg-card__key small { font-size: 12px; color: #B4B9D6; }
.sg-card__key code { font: 600 13px/18px var(--lg-mono); color: #E0E3FF; letter-spacing: .02em; }
.sg-card__mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sg-card__mods span { height: 26px; padding: 0 10px; border-radius: 7px; background: rgba(139,147,255,.14); border: 1px solid rgba(139,147,255,.2); color: #D3D8FF; font-size: 12px; font-weight: 650; line-height: 24px; }
.sg-card__check { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: #B4B9D6; }
.sg-card__check i { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52,211,153,.2); }

.sg-feats { list-style: none; display: grid; gap: 14px; margin-top: 30px; }
.sg-feats li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.sg-feats__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(139,147,255,.14); color: #C7CEFE; }
.sg-feats__ic .ic { width: 16px; height: 16px; }
.sg-feats b { display: block; font-size: 14px; line-height: 20px; font-weight: 700; color: #fff; }
.sg-feats small { display: block; font-size: 13px; line-height: 19px; color: #A8ADCC; }
.sg-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.sg-trust li { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; color: #B4B9D6; white-space: nowrap; }
.sg-trust .ic { width: 14px; height: 14px; color: #8B93FF; }

/* ---- The form card ------------------------------------------------------------ */
.au-card { width: 100%; max-width: 400px; }
.au-card__head { margin-bottom: 26px; }
.au-badge { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 12px; background: var(--lg-brand-50); color: var(--lg-brand-700); border: 1px solid var(--lg-brand-200); }
.au-badge .ic { width: 20px; height: 20px; }
.au-title { font-size: 28px; line-height: 36px; font-weight: 800; letter-spacing: -0.035em; color: var(--lg-strong); }
.au-sub { margin-top: 6px; color: var(--lg-muted); font-size: 14.5px; line-height: 22px; }
.au-card__foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--lg-divider); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.au-fine { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--lg-muted); }
.au-fine .ic { width: 14px; height: 14px; }
.au-copy { font-size: 12px; color: var(--lg-muted); }

/* Progress for the reset flow. */
.au-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 22px; list-style: none; }
.au-steps li { display: flex; flex-direction: column; gap: 8px; font-size: 11.5px; line-height: 15px; font-weight: 650; color: var(--lg-muted); }
.au-steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--lg-divider); }
.au-steps li span { display: none; }
.au-steps li.is-done::before { background: var(--lg-brand-500); }
.au-steps li[aria-current="step"]::before { background: linear-gradient(90deg, var(--lg-brand-500) 55%, var(--lg-divider) 55%); }
.au-steps li[aria-current="step"] { color: var(--lg-strong); }

/* ---- Form ------------------------------------------------------------------- */
.au-form { display: grid; gap: 18px; }
.au-field { display: grid; gap: 7px; min-width: 0; }
.au-label { font-size: 13px; line-height: 18px; font-weight: 700; color: var(--lg-strong); }
.au-input { position: relative; display: flex; align-items: center; }
.au-input__ic { position: absolute; left: 14px; width: 17px; height: 17px; color: var(--lg-muted); pointer-events: none; transition: color .18s; }
.au-control {
  width: 100%; height: 46px; padding: 0 14px 0 42px; border: 1px solid var(--lg-border); border-radius: var(--lg-r);
  background: var(--lg-surface); color: var(--lg-strong); font: 550 15px/1 var(--lg-font); letter-spacing: -0.005em;
  box-shadow: 0 1px 2px rgba(24,24,27,.05);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.au-control::placeholder { color: var(--lg-muted); opacity: .85; font-weight: 450; }
.au-control:hover { border-color: #D4D4D8; }
:root[data-theme="dark"] .au-control:hover { border-color: #3A3A45; }
.au-control:focus { outline: none; border-color: var(--lg-brand-500); box-shadow: 0 0 0 4px var(--lg-brand-100); }
.au-input:focus-within .au-input__ic { color: var(--lg-brand-600); }
.au-control[aria-invalid="true"] { border-color: #F43F5E; box-shadow: 0 0 0 4px var(--lg-bad-bg); }
.au-control--reveal { padding-right: 52px; }
.au-reveal { position: absolute; right: 5px; display: grid; place-items: center; width: 38px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--lg-muted); cursor: pointer; }
.au-reveal:hover { background: var(--lg-divider); color: var(--lg-strong); }
.au-caps { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; color: var(--lg-warn); }
.au-caps .ic { width: 14px; height: 14px; }
.au-hint { font-size: 12.5px; line-height: 18px; color: var(--lg-muted); }
.au-center { text-align: center; }
.au-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -4px; }
.au-link { color: var(--lg-brand-700); font-weight: 700; font-size: 13.5px; text-decoration: none; border-radius: 4px; }
.au-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.au-rules { display: grid; gap: 4px; list-style: none; margin-top: 2px; }
.au-rules li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--lg-muted); }
.au-rules li .ic { width: 15px; height: 15px; }
.au-rules li.is-ok { color: var(--lg-ok); }
.au-match { min-height: 18px; font-size: 12.5px; color: var(--lg-muted); }
.au-match.is-ok { color: var(--lg-ok); }
.au-match.is-bad { color: var(--lg-warn); }

/* ---- Buttons ---------------------------------------------------------------- */
.au-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 20px;
  border: 1px solid var(--lg-border); border-radius: var(--lg-r); background: var(--lg-surface); color: var(--lg-strong);
  font: 750 15px/1 var(--lg-font); letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(24,24,27,.06);
  transition: background .18s, box-shadow .18s, transform .18s, filter .18s;
}
.au-btn:hover { background: var(--lg-surface-2); }
.au-btn--primary { border-color: transparent; color: #fff; background: var(--lg-grad); box-shadow: 0 10px 24px -10px rgba(79,70,229,.8), inset 0 1px 0 rgba(255,255,255,.2); }
.au-btn--primary:hover { background: var(--lg-grad); filter: brightness(1.07); }
:root[data-theme="dark"] .au-btn--primary { background: var(--lg-brand-500); color: #0B0B1A; box-shadow: none; }
.au-btn:active:not(:disabled) { transform: translateY(1px); }
.au-btn--block { width: 100%; }
.au-btn[aria-busy="true"] { opacity: .8; cursor: progress; }
.au-btn[aria-busy="true"] .ic { animation: lg-spin .9s linear infinite; }
@keyframes lg-spin { to { transform: rotate(360deg); } }
.au-btn__arrow { transition: transform .18s; }
.au-btn:hover .au-btn__arrow { transform: translateX(3px); }
.au-back { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--lg-muted); text-decoration: none; border-radius: 6px; }
.au-back:hover { color: var(--lg-strong); }
.au-back .ic { width: 16px; height: 16px; }

/* ---- Notes and flash messages ---------------------------------------------- */
.au-note, .au .toast {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 12px 14px;
  border: 1px solid var(--lg-info-line); border-radius: var(--lg-r); background: var(--lg-info-bg); color: var(--lg-info);
  font-size: 13.5px; line-height: 20px;
}
.au-note .ic { margin-top: 1px; }
.au-note p { margin: 0; }
.au-note--ok, .au .toast--success { background: var(--lg-ok-bg); border-color: var(--lg-ok-line); color: var(--lg-ok); }
.au-note--warn, .au .toast--warning { background: var(--lg-warn-bg); border-color: var(--lg-warn-line); color: var(--lg-warn); }
.au-note--bad, .au .toast--error { background: var(--lg-bad-bg); border-color: var(--lg-bad-line); color: var(--lg-bad); }
.au .toast > i { display: none; }
.au .toast > span { flex: 1; min-width: 0; }
.au .toast__close { flex: 0 0 auto; width: 24px; height: 24px; margin: -2px -4px 0 0; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; font-size: 18px; line-height: 1; }
.au .toast__close::before { content: "\00D7"; }
.au .toast__close > i { display: none; }

/* ---- Error pages ---------------------------------------------------------------- */
.er { position: relative; min-height: calc(100vh / var(--zf, 1)); min-height: calc(100dvh / var(--zf, 1)); display: flex; flex-direction: column; padding: 28px 48px; isolation: isolate; overflow: hidden; }
.er::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--lg-divider) 1px, transparent 1px), linear-gradient(90deg, var(--lg-divider) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 38%, #000 0%, transparent 80%); mask-image: radial-gradient(60% 55% at 50% 38%, #000 0%, transparent 80%);
}
.er::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 4%; width: 720px; height: 420px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(99,102,241,.16), transparent 70%); pointer-events: none; }
.er-main { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 0 40px; }
.er-code {
  font-size: clamp(88px, calc(12vw / var(--zf, 1)), 150px); line-height: 1; font-weight: 800; letter-spacing: -0.055em; -webkit-user-select: none; user-select: none;
  background: linear-gradient(180deg, var(--lg-brand-500) 10%, rgba(99,102,241,.22) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 14px; padding: 0 .04em;
}
.au-card--error {
  position: relative; max-width: 560px; padding: 32px 32px 26px; background: var(--lg-surface); border: 1px solid var(--lg-border); border-radius: var(--lg-r-lg);
  box-shadow: 0 30px 70px -28px rgba(24,24,27,.35), 0 2px 6px rgba(24,24,27,.05);
}
:root[data-theme="dark"] .au-card--error { box-shadow: 0 30px 70px -24px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.03); }
.lg-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -6px 0 20px; font-size: 12.5px; color: var(--lg-muted); }
.lg-path code { max-width: 100%; padding: 3px 8px; border-radius: 6px; background: var(--lg-surface-2); border: 1px solid var(--lg-border); color: var(--lg-strong); font: 500 12.5px/18px var(--lg-mono); overflow-wrap: anywhere; }
.lg-find { display: grid; gap: 7px; margin-bottom: 18px; }
.lg-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lg-actions .au-btn { flex: 1 1 180px; }
.lg-links { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--lg-divider); }
.lg-links__head { margin-bottom: 10px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--lg-muted); }
.lg-links ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; }
.lg-links a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 12px; border: 1px solid var(--lg-border); border-radius: 12px; color: var(--lg-text); text-decoration: none; transition: border-color .18s, background .18s; }
.lg-links a:hover { border-color: var(--lg-brand-200); background: var(--lg-brand-50); }
.lg-links a > .ic { color: var(--lg-brand-600); }
.lg-links b { display: block; font-size: 13.5px; color: var(--lg-strong); }
.lg-links small { display: block; font-size: 12px; line-height: 16px; color: var(--lg-muted); }
.lg-dev { margin-top: 20px; border: 1px dashed var(--lg-border); border-radius: 10px; font-size: 12.5px; }
.lg-dev summary { padding: 8px 12px; cursor: pointer; font-weight: 650; color: var(--lg-muted); }
.lg-dev dl { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 6px 12px; margin: 0; padding: 0 12px 12px; }
.lg-dev dt { color: var(--lg-muted); }
.lg-dev dd { margin: 0; color: var(--lg-strong); overflow-wrap: anywhere; }

/* ---- Responsive ------------------------------------------------------------- */
@media (max-width: 1180px) { .sg-pane, .er { padding: 24px 32px; } .sg-show { padding: 48px 40px; } }
/* Short desktop screens (1366x768 laptops): the showcase fits without scrolling. */
@media (min-width: 1024px) and (max-height: 980px) {
  .sg-show { padding-top: 36px; padding-bottom: 36px; }
  .sg-head { margin-top: 14px; font-size: clamp(26px, calc(2.3vw / var(--zf, 1)), 34px); }
  .sg-card { margin-top: 22px; padding: 16px; }
  .sg-feats { margin-top: 22px; gap: 10px; }
  .sg-trust { margin-top: 20px; padding-top: 14px; }
}
@media (min-width: 1024px) and (max-height: 820px) { .sg-feats { display: none; } }
@media (max-width: 1023.98px) {
  .sg { grid-template-columns: minmax(0, 1fr); }
  .sg-show { display: none; }
  .sg-pane { background: var(--lg-canvas); }
  .sg-main { padding: 32px 0; }
  .sg-main .au-card { padding: 30px 28px 26px; max-width: 440px; background: var(--lg-surface); border: 1px solid var(--lg-border); border-radius: var(--lg-r-lg); box-shadow: 0 24px 60px -30px rgba(24,24,27,.35); }
}
@media (max-width: 560px) {
  .sg-pane, .er { padding: 16px; }
  .sg-theme span { display: none; }
  .sg-brand { gap: 6px; }
  .sg-brand__logo { height: 28px; }
  .sg-brand__name { margin-right: -.055em; font-size: 12.5px; line-height: 15px; letter-spacing: .055em; }
  .sg-theme { width: 36px; padding: 0; justify-content: center; }
  .sg-main { padding: 20px 0; }
  .sg-main .au-card { padding: 24px 18px 20px; }
  .au-title { font-size: 24px; line-height: 32px; }
  .sg-foot { justify-content: center; text-align: center; }
  .au-card--error { padding: 24px 18px 20px; }
  .lg-links ul { grid-template-columns: minmax(0, 1fr); }
  .lg-links a { flex-direction: row; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
@media (pointer: coarse) { .au-control { font-size: 16px; } }

/* Very large screens: scale rather than stretch, matching the panel. */
@media (min-width: 2400px) { :root { zoom: 1.25; --zf: 1.25; } }
@media (min-width: 3200px) { :root { zoom: 1.5; --zf: 1.5; } }
