#svg *, .svg * {
    -moz-user-select: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -o-user-select: none;
    user-select: none;
}

#waitform {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10000;
    cursor: wait;
}

:root {
    color-scheme: light;
    --bg: #f4f1ea;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --surface-border: rgba(40, 40, 40, 0.1);
    --text: #1c2430;
    --muted: #5d6470;
    --accent: #202020;
    --accent-strong: #111111;
    --accent-contrast: #ffffff;
    --shadow: 0 24px 60px rgba(17, 23, 33, 0.18);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

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

html,
body {
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    overflow: hidden;
    font-family: "Inter", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top, #fbfaf7 0%, #ece6dd 100%);
}

body.noselect {
    user-select: none;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(32, 32, 32, 0.18);
    outline-offset: 2px;
}

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

em {
    border: 1px rgba(0, 0, 0, 0.2) solid;
    font-style: normal;
    padding: 0 3px;
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
}

.app_shell {
    position: relative;
}

#canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.app_card {
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.primary_btn,
.secondary_btn,
.ghost_btn {
    min-height: 2.75rem;
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.primary_btn:hover,
.secondary_btn:hover,
.ghost_btn:hover {
    transform: translateY(-1px);
}

.primary_btn {
    background: var(--accent);
    color: var(--accent-contrast);
}

.primary_btn:hover {
    background: var(--accent-strong);
}

.secondary_btn {
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    border: 1px solid rgba(32, 32, 32, 0.12);
}

.secondary_btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.ghost_btn {
    padding-inline: 0.85rem;
    background: transparent;
    color: var(--muted);
}

.ghost_btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
}
