:root {
    --bg:#f5f7fb;
    --surface:#ffffff;
    --surface-2:#f8f9fd;
    --surface-3:#f1f3f9;
    --surface-soft:#f8f9fd;
    --text:#20243a;
    --text-strong:#15182b;
    --muted:#7a8198;
    --text-muted:#7a8198;
    --border:#e7e9f2;
    --border-strong:#d9deeb;
    --border-color:#e7e9f2;
    --primary:#4f46e5;
    --primary-dark:#4038c8;
    --primary-soft:#efefff;
    --primary-rgb:79,70,229;
    --secondary:#7c3aed;
    --info:#2563eb;
    --success:#16a36a;
    --success-soft:#e8f8f1;
    --danger:#dc4c64;
    --danger-color:#dc4c64;
    --danger-soft:#fff0f3;
    --warning:#e49a25;
    --warning-soft:#fff7e8;
    --sidebar:#171d2d;
    --sidebar-muted:#9299ae;
    --sidebar-border:rgba(255,255,255,.07);
    --sidebar-active:linear-gradient(135deg,rgba(99,102,241,.95),rgba(124,58,237,.92));
    --radius-sm:8px;
    --radius-md:12px;
    --radius:16px;
    --radius-lg:20px;
    --shadow-sm:0 2px 8px rgba(26,32,61,.045);
    --shadow:0 8px 28px rgba(31,38,68,.075);
    --shadow-lg:0 18px 50px rgba(24,31,61,.12);
    --transition:180ms ease;
    color-scheme:light;
    font-family:var(--font-family,"Roboto","Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif);
    color:var(--text);
    background:var(--bg)
}

html[data-theme="dark"] {
    --bg:#10131d;
    --surface:#181c29;
    --surface-2:#1d2231;
    --surface-3:#252b3d;
    --surface-soft:#1d2231;
    --text:#e9ecf5;
    --text-strong:#ffffff;
    --muted:#9aa2b9;
    --text-muted:#9aa2b9;
    --border:#292f42;
    --border-strong:#353c52;
    --border-color:#292f42;
    --primary:#7973ff;
    --primary-dark:#928dff;
    --primary-soft:#29264b;
    --primary-rgb:121,115,255;
    --success:#39c789;
    --success-soft:#173c30;
    --danger:#ff6d83;
    --danger-color:#ff6d83;
    --danger-soft:#41222c;
    --warning:#f2b653;
    --warning-soft:#3d311d;
    --sidebar:#0c0f18;
    --sidebar-muted:#8f97ad;
    --shadow-sm:0 2px 8px rgba(0,0,0,.12);
    --shadow:0 8px 28px rgba(0,0,0,.22);
    --shadow-lg:0 18px 50px rgba(0,0,0,.32);
    color-scheme:dark
}

* {
    box-sizing:border-box
}

html {
    min-height:100%;
    background:var(--bg);
    scroll-behavior:smooth
}

body {
    margin:0;
    min-height:100vh;
    background:var(--bg);
    color:var(--text);
    font-size:14px;
    line-height:1.5;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility
}

a {
    color:var(--primary);
    text-decoration:none;
    transition:color var(--transition),background-color var(--transition),border-color var(--transition),transform var(--transition)
}

a:hover {
    color:var(--primary-dark)
}

h1,h2,h3,h4,p {
    margin-top:0
}

h1,h2,h3,h4,strong {
    color:var(--text-strong)
}

h1 {
    font-size:1.65rem;
    line-height:1.2;
    letter-spacing:-.025em;
    margin-bottom:.25rem
}

h2 {
    font-size:1.16rem;
    line-height:1.3;
    letter-spacing:-.012em;
    margin-bottom:.25rem
}

h3 {
    font-size:1rem
}

small,.muted {
    color:var(--muted)
}

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

button {
    -webkit-tap-highlight-color:transparent
}

input,select,textarea {
    width:100%;
    min-height:44px;
    border:1px solid var(--border-strong);
    border-radius:var(--radius-md);
    padding:.72rem .86rem;
    background:var(--surface);
    color:var(--text);
    outline:none;
    transition:border-color var(--transition),box-shadow var(--transition),background-color var(--transition)
}

textarea {
    min-height:110px;
    resize:vertical
}

input::placeholder,textarea::placeholder {
    color:color-mix(in srgb,var(--muted) 76%,transparent)
}

input:hover,select:hover,textarea:hover {
    border-color:color-mix(in srgb,var(--border-strong) 55%,var(--primary))
}

input:focus,select:focus,textarea:focus {
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(var(--primary-rgb),.13)
}

input[type="checkbox"],input[type="radio"] {
    min-height:auto;
    accent-color:var(--primary)
}

label {
    display:flex;
    flex-direction:column;
    gap:.45rem;
    color:var(--text-strong);
    font-weight:var(--label-weight,700);
    font-size:.87rem
}

label small {
    font-weight:400;
    line-height:1.45
}

hr {
    border:0;
    border-top:1px solid var(--border)
}

svg.ui-icon,
.ui-icon {
    width:1.2rem;
    height:1.2rem;
    flex:0 0 auto
}

::selection {
    background:rgba(var(--primary-rgb),.2)
}

::-webkit-scrollbar {
    width:10px;
    height:10px
}

::-webkit-scrollbar-thumb {
    border:3px solid transparent;
    border-radius:999px;
    background:color-mix(in srgb,var(--muted) 38%,transparent);
    background-clip:padding-box
}

::-webkit-scrollbar-track {
    background:transparent
}
