/* Copyright (c) A|iens. All rights reserved. */
/*
Name: Apps design tokens
Version: 1.1.5
Author: A'nil Cyborg
Requires: AliensBrand v4.63.0
Description: Shared light and dark tokens for the static Aliens Apps preview.
Responsibilities: Define the brand palette, type, spacing and reusable surface values.
Dependencies: None.
Integration Notes: Light is the default. Dark canvas is pure black by AliensBrand contract.
*/
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --app-bg: #f3f8fe;
  --app-panel: #ffffff;
  --app-panel-2: #f2f2f7;
  --app-line: rgba(15, 23, 42, .065);
  --app-border: rgba(15, 23, 42, .10);
  --app-text: #111827;
  --app-muted: #5c6778;
  --app-subtle: #8a94a5;
  --app-hover: rgba(15, 23, 42, .045);
  --app-accent: #2f8fe6;
  --app-accent-strong: #176fc0;
  --app-accent-soft: rgba(47, 143, 230, .12);
  --app-primary-bg: #1a66c2;
  --app-primary-text: #ffffff;
  --app-primary-hover: #155399;
  --app-mint: #15d195;
  --app-mint-soft: rgba(21, 209, 149, .14);
  --app-amber: #f59e0b;
  --app-amber-soft: rgba(245, 158, 11, .14);
  --app-coral: #ff4d6d;
  --app-coral-soft: rgba(255, 77, 109, .12);
  --app-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 22px rgba(15, 23, 42, .07);
  --app-shadow-lift: 0 2px 4px rgba(15, 23, 42, .05), 0 12px 30px rgba(15, 23, 42, .10);
  --app-radius: 14px;
  --app-rail-width: 60px;
  --app-sidebar-width: 250px;
  --app-nav-width: clamp(380px, 30vw, 640px);
  --app-chrome-left: calc(var(--app-rail-width) + var(--app-sidebar-width) + 16px);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --app-bg: #000000;
  --app-panel: #1c1c1e;
  --app-panel-2: #2c2c2e;
  --app-line: rgba(255, 255, 255, .065);
  --app-border: rgba(255, 255, 255, .10);
  --app-text: #f5f5f7;
  --app-muted: #aeaeb2;
  --app-subtle: #8e8e93;
  --app-hover: rgba(255, 255, 255, .065);
  --app-accent: #3ba7ff;
  --app-accent-strong: #80c6ff;
  --app-accent-soft: rgba(59, 167, 255, .16);
  --app-primary-bg: #3ba7ff;
  --app-primary-text: #08111f;
  --app-primary-hover: #6cbdff;
  --app-mint-soft: rgba(21, 209, 149, .16);
  --app-amber-soft: rgba(245, 158, 11, .16);
  --app-coral-soft: rgba(255, 77, 109, .16);
  --app-shadow: 0 1px 0 rgba(255, 255, 255, .025) inset, 0 8px 24px rgba(0, 0, 0, .24);
  --app-shadow-lift: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px rgba(0, 0, 0, .36);
}

:root[data-menu="closed"] {
  --app-sidebar-width: 0px;
  --app-chrome-left: calc(var(--app-rail-width) + 16px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--app-bg);
  color: var(--app-text);
  font: 14px/1.48 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--app-accent); outline-offset: 2px; }
::selection { background: var(--app-accent-soft); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, .18); border: 3px solid transparent; border-radius: 8px; background-clip: content-box; }
:root[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); background-clip: content-box; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* CodeFooter: light is the default; retain the AliensBrand v4.62.2 light and pure-black dark token values. */
/* Troubleshooting: If native controls use the wrong theme, check color-scheme and the root data-theme attribute. */
/* Versioning: Token changes must be reviewed against both themes and all responsive screenshots. */
/* Extension Hooks: Add app-scoped custom properties here; do not redefine shared AliensBrand colors in screen rules. */

/* ===== Section: AliensBrand v4.63.0 shadow tokens ===== */
:root,
:root[data-theme="light"] {
  --app-line: rgba(15, 23, 42, .08);
  --app-border: rgba(15, 23, 42, .08);
  --app-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  --app-shadow-lift: 0 6px 18px rgba(15, 23, 42, .12);
  --app-shadow-float: 0 0 0 1px rgba(15, 23, 42, .10),
    0 1px 0 rgba(255, 255, 255, .65) inset,
    0 26px 70px rgba(15, 23, 42, .26),
    0 4px 14px rgba(15, 23, 42, .08);
}

:root[data-theme="dark"] {
  --app-line: rgba(255, 255, 255, .08);
  --app-border: rgba(255, 255, 255, .08);
  --app-shadow: none;
  --app-shadow-lift: none;
  --app-shadow-float: 0 0 0 1px rgba(0, 0, 0, .5),
    0 1px 0 rgba(255, 255, 255, .10) inset,
    0 28px 74px rgba(0, 0, 0, .60);
}

/* CodeFooter: Rest uses neutral contact shadow in light mode; dark content surfaces stay shadow-free. */
/* Troubleshooting: inspect computed --app-shadow and --app-shadow-float after changing data-theme. */
/* Versioning: 1.1.4 adds AliensBrand v4.63.0 shadow tokens without changing palette or theme behavior. */
/* Extension Hooks: keep future shadow values split between static Rest, raised interaction, and Float levels. */

/* ===== Section: Liquid dock first-paint defaults ===== */
:root {
  --liquid-x: 0px;
  --liquid-scale: 1;
  --liquid-rotate: 0deg;
}

/* CodeFooter: these neutral defaults prevent undefined custom properties before pointer interaction. */
/* Troubleshooting: computed dock tokens should resolve to 0px, 1 and 0deg on first paint. */
/* Versioning: 1.1.5 adds only initial liquid-dock values; runtime motion still owns the live values. */
/* Extension Hooks: new animated surfaces must declare stable first-paint token defaults here. */
