:root {
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: Aptos, "Segoe UI Variable Text", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(245, 130, 32, 0.14), transparent 26%),
        radial-gradient(circle at top right, rgba(216, 101, 8, 0.12), transparent 24%),
        linear-gradient(180deg, #fffdf9 0%, #fff7ee 100%);
}

button,
input,
select {
    font: inherit;
}

img {
    display: block;
}

::selection {
    background: rgba(245, 130, 32, 0.22);
}

.surface-panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(239, 218, 199, 0.95);
    box-shadow: 0 18px 50px rgba(162, 97, 34, 0.09);
    backdrop-filter: blur(18px);
}

.backdrop-mesh {
    background-image:
        linear-gradient(rgba(216, 101, 8, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 130, 32, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: -1px -1px;
}

.line-clamp-1,
.line-clamp-2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.line-clamp-1 {
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.app-scrollbar::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.app-scrollbar::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: rgba(216, 101, 8, 0.34);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.app-scrollbar::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: transparent;
}

.stat-label {
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.chart-tooltip {
    border: 1px solid rgba(239, 218, 199, 0.95);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(162, 97, 34, 0.12);
    backdrop-filter: blur(10px);
}

.filter-select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #8e6d55 50%),
        linear-gradient(135deg, #8e6d55 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.sidebar-pill {
    background: linear-gradient(135deg, rgba(245, 130, 32, 0.15), rgba(216, 101, 8, 0.06));
}

.skeleton-block {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(250, 235, 221, 0.85) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(250, 235, 221, 0.85) 100%);
    background-size: 220% 100%;
    animation: skeleton-shimmer 1.45s linear infinite;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}
