:root {
    color-scheme: dark;
    --bg-main: #0b0b0d;
    --bg-panel: #131316;
    --bg-panel-2: #191a1f;
    --bg-muted: #1e2026;
    --border-main: #2a2721;
    --border-strong: #3a3324;
    --text-main: #f3f0e8;
    --text-muted: #a7a39b;
    --accent: #d4af37;
    --accent-strong: #e2c15b;
    --danger: #be3737;
    --success: #7ccf9c;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    --overlay-subtle: rgba(255, 255, 255, 0.02);
    --overlay-border: rgba(255, 255, 255, 0.18);
    --overlay-accent: rgba(212, 175, 55, 0.08);
    --overlay-modal: rgba(0, 0, 0, 0.72);
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg-main: #f3f0ea;
    --bg-panel: #ffffff;
    --bg-panel-2: #f6f2eb;
    --bg-muted: #ebe6dc;
    --border-main: #d7d0c2;
    --border-strong: #bcae8b;
    --text-main: #171717;
    --text-muted: #5f5c57;
    --accent: #d4af37;
    --accent-strong: #e2c15b;
    --danger: #a94f4f;
    --success: #3d8453;
    --shadow: 0 18px 40px rgba(23, 23, 23, 0.12);
    --overlay-subtle: rgba(0, 0, 0, 0.02);
    --overlay-border: rgba(0, 0, 0, 0.12);
    --overlay-accent: rgba(183, 138, 16, 0.08);
    --overlay-modal: rgba(23, 23, 23, 0.68);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.08), transparent 24%),
        linear-gradient(180deg, var(--bg-main), var(--bg-main));
    color: var(--text-main);
    font-family: Inter, Segoe UI, Arial, sans-serif;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

.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;
}

.hidden {
    display: none !important;
}

.icon-button,
.button,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.65rem 1rem;
    border-radius: 0;
    border: 1px solid transparent;
    transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.button {
    background: var(--accent);
    color: #111;
    border-color: rgba(255, 255, 255, 0.08);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.button-secondary,
.icon-button {
    background: var(--bg-panel-2);
    color: var(--text-main);
    border-color: var(--border-main);
}

.sidebar-footer .button-secondary {
    min-height: 32px;
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
}

.input,
.select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-main);
    background: var(--bg-panel);
    color: var(--text-main);
    outline: none;
    border-radius: 0;
}

.input:focus,
.select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25);
}

.field-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.card {
    background: var(--bg-panel);
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border-main);
    background: var(--bg-panel-2);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

