@font-face {
    font-family: "Righteous Local";
    src: url("/fonts/Righteous.207a66c3.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #08090a;
    --bg-secondary: #0f1011;
    --panel: rgba(15, 16, 17, 0.82);
    --panel-strong: #17191d;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --text: #f7f8f8;
    --muted: rgba(247, 248, 248, 0.74);
    --subtle: rgba(247, 248, 248, 0.48);
    --accent: #7170ff;
    --accent-strong: #5e6ad2;
    --accent-alt: #9aa4ff;
    --accent-soft: rgba(113, 112, 255, 0.16);
    --success: #27a644;
    --danger: #ff6b6b;
    --warn: #ffb84a;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --shadow: 0 32px 72px rgba(0, 0, 0, 0.42);
    --panel-shadow: 0 24px 72px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    --hero-font: "Segoe UI Variable Display", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
    --body-font: "Segoe UI Variable Text", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
    --mono-font: "Consolas", "Cascadia Code", "SFMono-Regular", monospace;
    --hero-weight: 620;
    --title-spacing: -0.055em;
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --chip-radius: 999px;
    --button-radius: 14px;
    --grid-line: rgba(255, 255, 255, 0.05);
    --dropzone-style: dashed;
    --button-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    --background-glow:
        radial-gradient(circle at 16% 14%, rgba(113, 112, 255, 0.24), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(94, 106, 210, 0.22), transparent 30%),
        linear-gradient(180deg, #050608 0%, #0a0d12 100%);
    --background-grid:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    --surface-sheen: linear-gradient(145deg, rgba(255, 255, 255, 0.11), transparent 38%);
}

body[data-theme="linear"] {
    color-scheme: dark;
    --bg: #08090a;
    --bg-secondary: #0f1011;
    --panel: rgba(15, 16, 17, 0.82);
    --panel-strong: #17191d;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --text: #f7f8f8;
    --muted: rgba(247, 248, 248, 0.74);
    --subtle: rgba(247, 248, 248, 0.48);
    --accent: #7170ff;
    --accent-strong: #5e6ad2;
    --accent-alt: #9aa4ff;
    --accent-soft: rgba(113, 112, 255, 0.16);
    --success: #27a644;
    --danger: #ff6b6b;
    --warn: #ffb84a;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --shadow: 0 32px 72px rgba(0, 0, 0, 0.42);
    --panel-shadow: 0 24px 72px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    --hero-font: "Segoe UI Variable Display", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
    --body-font: "Segoe UI Variable Text", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
    --hero-weight: 620;
    --title-spacing: -0.055em;
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --chip-radius: 999px;
    --button-radius: 14px;
    --dropzone-style: dashed;
    --button-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    --background-glow:
        radial-gradient(circle at 16% 14%, rgba(113, 112, 255, 0.24), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(94, 106, 210, 0.22), transparent 30%),
        linear-gradient(180deg, #050608 0%, #0a0d12 100%);
    --background-grid:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    --surface-sheen: linear-gradient(145deg, rgba(255, 255, 255, 0.11), transparent 38%);
}

body[data-theme="stripe"] {
    color-scheme: light;
    --bg: #f6f9fc;
    --bg-secondary: #eef4ff;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-strong: rgba(255, 255, 255, 0.94);
    --surface: rgba(83, 58, 253, 0.04);
    --surface-hover: rgba(83, 58, 253, 0.08);
    --text: #061b31;
    --muted: rgba(6, 27, 49, 0.78);
    --subtle: rgba(6, 27, 49, 0.56);
    --accent: #533afd;
    --accent-strong: #4434d4;
    --accent-alt: #ea2261;
    --accent-soft: rgba(83, 58, 253, 0.12);
    --success: #15be53;
    --danger: #ea2261;
    --warn: #9b6829;
    --border: #dfe7f2;
    --border-strong: #c8d5e8;
    --shadow: 0 28px 80px rgba(50, 50, 93, 0.18), 0 10px 30px rgba(0, 0, 0, 0.08);
    --panel-shadow: 0 24px 72px rgba(50, 50, 93, 0.12), 0 8px 24px rgba(0, 0, 0, 0.05);
    --hero-font: "Aptos Display", "Segoe UI Variable Display", "Trebuchet MS", "PingFang SC", sans-serif;
    --body-font: "Aptos", "Segoe UI Variable Text", "PingFang SC", "Microsoft YaHei", sans-serif;
    --hero-weight: 300;
    --title-spacing: -0.05em;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 10px;
    --chip-radius: 999px;
    --button-radius: 10px;
    --dropzone-style: dashed;
    --button-shadow: 0 22px 42px rgba(83, 58, 253, 0.16);
    --background-glow:
        radial-gradient(circle at 18% 12%, rgba(83, 58, 253, 0.12), transparent 30%),
        radial-gradient(circle at 88% 14%, rgba(249, 107, 238, 0.16), transparent 26%),
        radial-gradient(circle at 72% 72%, rgba(234, 34, 97, 0.08), transparent 30%),
        linear-gradient(180deg, #f7fbff 0%, #eef3fb 100%);
    --background-grid:
        linear-gradient(rgba(83, 58, 253, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(83, 58, 253, 0.035) 1px, transparent 1px);
    --surface-sheen: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
}

body[data-theme="raycast"] {
    color-scheme: dark;
    --bg: #07080a;
    --bg-secondary: #101111;
    --panel: rgba(16, 17, 17, 0.82);
    --panel-strong: #131517;
    --surface: rgba(85, 179, 255, 0.07);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --muted: rgba(249, 249, 249, 0.78);
    --subtle: rgba(249, 249, 249, 0.52);
    --accent: #55b3ff;
    --accent-strong: #ff6363;
    --accent-alt: #ffbc33;
    --accent-soft: rgba(85, 179, 255, 0.16);
    --success: #61d37c;
    --danger: #ff6363;
    --warn: #ffbc33;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --shadow: 0 30px 78px rgba(0, 0, 0, 0.48);
    --panel-shadow: 0 24px 68px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --hero-font: "Segoe UI Variable Display", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
    --body-font: "Segoe UI Variable Text", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
    --hero-weight: 610;
    --title-spacing: -0.05em;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --chip-radius: 999px;
    --button-radius: 999px;
    --dropzone-style: solid;
    --button-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    --background-glow:
        radial-gradient(circle at 17% 15%, rgba(85, 179, 255, 0.15), transparent 28%),
        radial-gradient(circle at 82% 16%, rgba(255, 99, 99, 0.18), transparent 24%),
        radial-gradient(circle at 74% 74%, rgba(255, 188, 51, 0.09), transparent 28%),
        linear-gradient(180deg, #050608 0%, #0b0f14 100%);
    --background-grid:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    --surface-sheen: linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 38%);
}

body[data-theme="claude"] {
    color-scheme: light;
    --bg: #f5f4ed;
    --bg-secondary: #faf9f5;
    --panel: rgba(250, 249, 245, 0.9);
    --panel-strong: rgba(255, 255, 255, 0.92);
    --surface: rgba(201, 100, 66, 0.05);
    --surface-hover: rgba(201, 100, 66, 0.08);
    --text: #141413;
    --muted: rgba(20, 20, 19, 0.76);
    --subtle: rgba(20, 20, 19, 0.56);
    --accent: #c96442;
    --accent-strong: #d97757;
    --accent-alt: #30302e;
    --accent-soft: rgba(201, 100, 66, 0.12);
    --success: #4b8b54;
    --danger: #c96442;
    --warn: #8b6f39;
    --border: #e8e6dc;
    --border-strong: #ddd7ca;
    --shadow: 0 18px 40px rgba(31, 27, 20, 0.08);
    --panel-shadow: 0 0 0 1px rgba(232, 230, 220, 0.9), 0 18px 40px rgba(31, 27, 20, 0.08);
    --hero-font: "Iowan Old Style", "Baskerville Old Face", "Georgia", "Source Han Serif SC", serif;
    --body-font: "Segoe UI Variable Text", "PingFang SC", "Microsoft YaHei", sans-serif;
    --hero-weight: 500;
    --title-spacing: -0.03em;
    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 12px;
    --chip-radius: 18px;
    --button-radius: 12px;
    --dropzone-style: solid;
    --button-shadow: 0 16px 28px rgba(31, 27, 20, 0.08);
    --background-glow:
        radial-gradient(circle at 18% 16%, rgba(201, 100, 66, 0.08), transparent 30%),
        radial-gradient(circle at 84% 18%, rgba(48, 48, 46, 0.06), transparent 28%),
        linear-gradient(180deg, #f7f5ef 0%, #f2f0e6 100%);
    --background-grid:
        linear-gradient(rgba(77, 76, 72, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 76, 72, 0.025) 1px, transparent 1px);
    --surface-sheen: linear-gradient(145deg, rgba(255, 255, 255, 0.7), transparent 42%);
}

body[data-theme="spotify"] {
    color-scheme: dark;
    --bg: #121212;
    --bg-secondary: #181818;
    --panel: rgba(24, 24, 24, 0.88);
    --panel-strong: #1f1f1f;
    --surface: rgba(30, 215, 96, 0.08);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.78);
    --subtle: rgba(255, 255, 255, 0.52);
    --accent: #1ed760;
    --accent-strong: #1db954;
    --accent-alt: #ffffff;
    --accent-soft: rgba(30, 215, 96, 0.16);
    --success: #1ed760;
    --danger: #ff7676;
    --warn: #f5c451;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --shadow: 0 28px 78px rgba(0, 0, 0, 0.44);
    --panel-shadow: 0 24px 60px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    --hero-font: "Avenir Next", "Montserrat", "Segoe UI Variable Display", "PingFang SC", sans-serif;
    --body-font: "Avenir Next", "Segoe UI Variable Text", "PingFang SC", "Microsoft YaHei", sans-serif;
    --hero-weight: 700;
    --title-spacing: -0.04em;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 10px;
    --chip-radius: 999px;
    --button-radius: 999px;
    --dropzone-style: solid;
    --button-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    --background-glow:
        radial-gradient(circle at 16% 14%, rgba(30, 215, 96, 0.16), transparent 26%),
        radial-gradient(circle at 84% 16%, rgba(255, 255, 255, 0.06), transparent 22%),
        radial-gradient(circle at 72% 74%, rgba(30, 215, 96, 0.08), transparent 24%),
        linear-gradient(180deg, #0f0f0f 0%, #141414 100%);
    --background-grid:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    --surface-sheen: linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 38%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background-glow);
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--body-font);
    transition:
        background-color 260ms ease,
        color 260ms ease;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

body::before {
    background-image: var(--background-grid);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
    opacity: 0.55;
}

body::after {
    inset: auto;
    width: 38rem;
    height: 38rem;
    right: -10rem;
    top: 8rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 62%);
    filter: blur(20px);
    z-index: -1;
    opacity: 0.8;
}

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

button,
input,
select {
    font: inherit;
}

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

.page-shell {
    width: min(1420px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 24px 0 40px;
}

.functional-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.9fr);
    gap: 22px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 0 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.brand__mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02)),
        var(--panel-strong);
    border: 1px solid var(--border);
    box-shadow: var(--panel-shadow);
    padding: 10px;
}

.brand__eyebrow {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 11px;
    color: var(--subtle);
}

.brand__title {
    margin: 0;
    font-size: clamp(24px, 2vw, 32px);
    font-family: "Righteous Local", var(--hero-font);
    letter-spacing: 0.01em;
    line-height: 1;
}

.brand__subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.theme-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 6px;
    border-radius: var(--chip-radius);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    box-shadow: var(--panel-shadow);
    scrollbar-width: none;
}

.theme-switcher::-webkit-scrollbar {
    display: none;
}

.theme-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: var(--chip-radius);
    padding: 10px 14px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    transition:
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
    white-space: nowrap;
}

.theme-chip:hover {
    background: var(--surface);
    color: var(--text);
    transform: translateY(-1px);
}

.theme-chip.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 0 0 1px var(--border-strong);
}

.theme-chip__swatch {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--chip-accent, var(--accent));
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
    flex: 0 0 auto;
}

.ghost-button,
.primary-button,
.soft-button,
.icon-button {
    border: 0;
    cursor: pointer;
    transition:
        transform 180ms ease,
        opacity 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

.primary-button,
.soft-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    border-radius: var(--button-radius);
    padding: 0 18px;
    font-weight: 600;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: var(--button-shadow);
}

.soft-button {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
}

.ghost-button {
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--border);
}

.icon-button {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
}

.primary-button:hover,
.soft-button:hover,
.ghost-button:hover,
.icon-button:hover {
    transform: translateY(-1px);
}

.layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.92fr);
    gap: 22px;
}

.panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%), var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(28px);
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--surface-sheen);
    opacity: 0.45;
    pointer-events: none;
}

.hero-panel {
    padding: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    gap: 28px;
    min-height: 540px;
}

.eyebrow {
    margin: 0 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--text);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-title {
    margin: 0;
    font-family: var(--hero-font);
    font-size: clamp(48px, 5vw, 78px);
    line-height: 0.94;
    letter-spacing: var(--title-spacing);
    font-weight: var(--hero-weight);
    max-width: 9.5ch;
}

.hero-description {
    max-width: 60ch;
    margin: 18px 0 0;
    font-size: 17px;
    line-height: 1.72;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.metrics-strip {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.metric-pill {
    min-width: 140px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

.metric-pill__label {
    display: block;
    font-size: 12px;
    color: var(--subtle);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.metric-pill__value {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.hero-notes {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hero-note {
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.hero-note__title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
}

.hero-note__text {
    margin: 0;
    color: var(--subtle);
    font-size: 13px;
    line-height: 1.65;
}

.hero-orbit {
    position: relative;
    min-height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.hero-orbit__well {
    position: relative;
    flex: 1;
    min-height: 420px;
    border-radius: calc(var(--radius-xl) - 8px);
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 100%);
    overflow: hidden;
}

.hero-orbit__ring,
.hero-orbit__ring::after {
    content: "";
    position: absolute;
    inset: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--border);
}

.hero-orbit__ring {
    width: 74%;
    height: 74%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.hero-orbit__ring::after {
    width: 62%;
    height: 62%;
    border-style: dashed;
    opacity: 0.6;
}

.hero-orbit__core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(220px, 55%);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.18), transparent 30%),
        radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-strong);
    box-shadow:
        0 0 0 24px rgba(255, 255, 255, 0.02),
        0 24px 54px rgba(0, 0, 0, 0.22);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
}

.hero-orbit__core strong {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
}

.hero-orbit__core span {
    display: block;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.orbit-card {
    position: absolute;
    width: min(220px, 56%);
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.orbit-card__label {
    margin: 0 0 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--subtle);
}

.orbit-card__value {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 700;
}

.orbit-card__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
}

.orbit-card--top {
    top: 28px;
    right: 18px;
    animation: drift 9s ease-in-out infinite;
}

.orbit-card--left {
    left: 22px;
    bottom: 88px;
    animation: drift 11s ease-in-out infinite reverse;
}

.orbit-card--bottom {
    right: 30px;
    bottom: 28px;
    animation: drift 12s ease-in-out infinite;
}

.stack {
    display: grid;
    gap: 22px;
}

.section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.section-title--large {
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.section-subtitle {
    margin: 6px 0 0;
    color: var(--subtle);
    font-size: 14px;
}

.panel-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-head__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.upload-panel,
.meta-panel,
.recent-panel,
.theme-panel {
    padding: 24px;
}

.upload-panel--primary {
    min-height: 760px;
}

.compact-panel {
    padding: 22px;
}

.quick-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.quick-card {
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.quick-card span {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--subtle);
    font-weight: 700;
}

.quick-card strong {
    display: block;
    font-size: 18px;
    line-height: 1.35;
    word-break: break-word;
}

.quick-card small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.status-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.status-pulse::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 6px rgba(39, 166, 68, 0.15);
}

.dropzone {
    position: relative;
    z-index: 1;
    border-radius: calc(var(--radius-lg) + 2px);
    padding: 26px;
    border: 1.5px var(--dropzone-style) var(--border-strong);
    background:
        radial-gradient(circle at top left, var(--accent-soft), transparent 36%),
        rgba(255, 255, 255, 0.035);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
    outline: none;
}

.dropzone:hover,
.dropzone.is-dragover,
.dropzone:focus-visible {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14), 0 0 0 1px var(--accent-soft) inset;
}

.dropzone__icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    font-size: 26px;
}

.dropzone__title {
    margin: 18px 0 0;
    font-size: 24px;
    font-weight: 700;
}

.dropzone__text {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.dropzone__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.dropzone__hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--subtle);
    font-size: 13px;
}

.control-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 12px;
    margin-top: 16px;
}

.control {
    display: grid;
    gap: 8px;
}

.control label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--subtle);
    font-weight: 700;
}

.field,
.field-select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    outline: none;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.field::placeholder {
    color: var(--subtle);
}

.field:focus,
.field-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.queue-summary {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    margin-bottom: 14px;
}

.queue-summary__meta {
    color: var(--subtle);
    font-size: 13px;
}

.queue-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    max-height: 480px;
    overflow: auto;
    padding-right: 4px;
}

.queue-list::-webkit-scrollbar,
.recent-grid::-webkit-scrollbar {
    width: 10px;
}

.queue-list::-webkit-scrollbar-thumb,
.recent-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.empty-state {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    color: var(--subtle);
    line-height: 1.75;
}

.queue-item {
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    display: grid;
    gap: 12px;
}

.queue-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.queue-item__name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    word-break: break-word;
}

.queue-item__meta {
    margin: 6px 0 0;
    color: var(--subtle);
    font-size: 13px;
}

.queue-item__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
}

.status-tag.is-done {
    color: var(--success);
    background: rgba(39, 166, 68, 0.14);
    border-color: rgba(39, 166, 68, 0.3);
}

.status-tag.is-error {
    color: var(--danger);
    background: rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.24);
}

.status-tag.is-uploading {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: transparent;
}

.progress {
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.progress > span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transition: width 160ms ease;
}

.queue-item__message {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    word-break: break-word;
}

.stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stat-card {
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    min-height: 128px;
}

.stat-card__label {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--subtle);
    font-weight: 700;
}

.stat-card__value {
    display: block;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
    word-break: break-word;
}

.stat-card__note {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.secondary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 22px;
    margin-top: 22px;
}

.recent-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    max-height: 680px;
    overflow: auto;
    padding-right: 4px;
}

.recent-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.recent-card__preview {
    position: relative;
    min-height: 120px;
    border-radius: calc(var(--radius-lg) - 6px);
    overflow: hidden;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at top left, var(--accent-soft), transparent 42%),
        rgba(255, 255, 255, 0.05);
    display: grid;
    place-items: center;
}

.recent-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-card__ext {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 68px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.recent-card__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.recent-card__title {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    word-break: break-word;
}

.recent-card__time {
    white-space: nowrap;
    color: var(--subtle);
    font-size: 12px;
}

.recent-card__meta,
.recent-card__link {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    word-break: break-all;
}

.recent-card__link {
    font-family: var(--mono-font);
}

.recent-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 180ms ease,
        background-color 180ms ease;
}

.mini-button:hover {
    transform: translateY(-1px);
    background: var(--surface-hover);
}

.theme-gallery {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}

.theme-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.theme-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.theme-card.is-active {
    background: var(--accent-soft);
    border-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.theme-card__swatch {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent 50%),
        var(--swatch, var(--accent));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.theme-card__name {
    display: block;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.theme-card__description {
    display: block;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.theme-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.footer-note {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.toast-stack {
    position: fixed;
    right: 22px;
    bottom: 22px;
    display: grid;
    gap: 10px;
    z-index: 80;
}

.toast {
    min-width: min(360px, calc(100vw - 44px));
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(10, 12, 15, 0.92);
    color: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    line-height: 1.6;
}

.toast[data-tone="success"] {
    background: rgba(20, 48, 28, 0.96);
}

.toast[data-tone="error"] {
    background: rgba(79, 17, 17, 0.96);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -8px, 0);
    }
}

@media (max-width: 1180px) {
    .functional-layout,
    .layout-grid,
    .secondary-grid,
    .hero-panel {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: auto;
    }

    .hero-notes {
        grid-template-columns: 1fr;
    }

    .hero-orbit__well {
        min-height: 360px;
    }
}

@media (max-width: 920px) {
    .page-shell {
        width: min(100vw - 20px, 100%);
        padding-top: 18px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar__actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .theme-switcher {
        width: 100%;
    }

    .hero-panel,
    .upload-panel,
    .meta-panel,
    .recent-panel,
    .theme-panel {
        padding: 20px;
    }

    .quick-grid,
    .control-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .recent-card {
        grid-template-columns: 1fr;
    }

    .recent-card__preview {
        min-height: 180px;
    }

    .theme-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .theme-card__badge {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: clamp(38px, 14vw, 54px);
    }

    .dropzone {
        padding: 20px;
    }

    .hero-orbit__core {
        width: min(200px, 66%);
    }

    .orbit-card {
        width: calc(100% - 40px);
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        margin: 0 auto 12px;
        animation: none;
    }

    .hero-orbit__well {
        display: grid;
        align-content: end;
        padding: 18px;
    }

    .hero-orbit__ring {
        width: 86%;
        height: 86%;
    }

    .queue-item__top,
    .recent-card__title-row,
    .panel-head,
    .queue-summary {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
