/* =========================================================
   梦铝 · 天幕智造 — 设计令牌与基础样式
   ========================================================= */
:root {
    --bg: #080B0F;
    --bg-2: #0B1016;
    --surface: #101720;
    --surface-2: #141D27;
    --surface-3: #19232E;
    --surface-4: #1F2B38;
    --line: rgba(154, 177, 193, .12);
    --line-2: rgba(154, 177, 193, .22);
    --line-3: rgba(154, 177, 193, .34);
    --text: #E9F0F5;
    --text-2: #A9B8C4;
    --text-3: #74858F;
    --text-4: #4E5D68;
    --amber: #DFA96B;
    --amber-2: #F5D6A6;
    --amber-3: #B98045;
    --amber-soft: rgba(223, 169, 107, .12);
    --cyan: #68C3CC;
    --cyan-soft: rgba(104, 195, 204, .12);
    --green: #6BC79A;
    --green-soft: rgba(107, 199, 154, .12);
    --red: #E47979;
    --red-soft: rgba(228, 121, 121, .12);
    --blue: #7DA9DA;
    --blue-soft: rgba(125, 169, 218, .12);
    --purple: #A99AE0;
    --purple-soft: rgba(169, 154, 224, .12);
    --warning: #E6B86A;

    --radius: 3px;
    --radius-md: 6px;
    --cut: 10px;

    --font: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
    --font-display: "Bahnschrift", "DIN Alternate", "Oswald", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;

    --shadow-sm: 0 6px 18px rgba(0, 0, 0, .22);
    --shadow-md: 0 18px 48px rgba(0, 0, 0, .38);
    --shadow-lg: 0 36px 90px rgba(0, 0, 0, .55);

    --sidebar-w: 258px;
    --topbar-h: 64px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: var(--font);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(154, 177, 193, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(154, 177, 193, .028) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: radial-gradient(circle at 50% 30%, #000 0, transparent 88%);
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button { cursor: pointer; }

h1, h2, h3, h4, h5, p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg { display: block; max-width: 100%; }

::selection {
    background: rgba(223, 169, 107, .28);
    color: #fff;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(154, 177, 193, .18);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(223, 169, 107, .38); background-clip: padding-box; }

:focus-visible {
    outline: 1px solid rgba(223, 169, 107, .7);
    outline-offset: 2px;
}

.num {
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}

.mono {
    font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 12px;
}

.muted { color: var(--text-3); }
.dim { color: var(--text-2); }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.center { display: flex; align-items: center; justify-content: center; }
.row { display: flex; align-items: center; }
.gap-6 { gap: 6px; }
.gap-10 { gap: 10px; }
.gap-16 { gap: 16px; }
.grow { flex: 1; }
.hidden { display: none !important; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

[data-lucide] {
    width: 16px;
    height: 16px;
    stroke-width: 1.6;
    flex: none;
}

svg.lucide { flex: none; }
