:root {
    --app-bg: #f6f7f9;
    --app-panel: #ffffff;
    --app-border: #dfe4ea;
    --app-muted: #667085;
    --app-ink: #111827;
    --app-brand: #00b85a;
    --app-brand-dark: #008c44;
    --app-sidebar: #050816;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(0, 184, 90, .08), transparent 28rem),
        var(--app-bg);
    color: var(--app-ink);
    letter-spacing: 0;
}

.soft {
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px rgba(16, 24, 40, .06);
}

.rounded-3xl {
    border-radius: 14px !important;
}

.rounded-2xl {
    border-radius: 10px !important;
}

.rounded-xl {
    border-radius: 8px !important;
}

aside {
    border-right: 1px solid rgba(255,255,255,.08);
}

aside nav a {
    display: flex !important;
    align-items: center;
    gap: .75rem;
    border-radius: 10px !important;
    transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

aside nav a:hover {
    transform: translateX(2px);
}

main {
    min-width: 0;
}

table th {
    font-size: .72rem;
    letter-spacing: .02em;
    color: #667085;
    font-weight: 700;
}

table td,
table th {
    border-color: var(--app-border);
}

input,
select,
textarea {
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

input:focus,
select:focus,
textarea:focus,
.ts-wrapper.focus .ts-control {
    border-color: rgba(0, 184, 90, .7) !important;
    box-shadow: 0 0 0 3px rgba(0, 184, 90, .14) !important;
}

button,
a {
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

button:hover,
a[href]:hover {
    transform: translateY(-1px);
}

.ts-control {
    border-radius: 10px !important;
    border-color: var(--app-border) !important;
    min-height: 42px;
    padding: .55rem .85rem !important;
    background: #fff !important;
}

.ts-dropdown {
    border-radius: 10px !important;
    overflow: hidden !important;
    border-color: var(--app-border) !important;
    box-shadow: 0 18px 40px rgba(16, 24, 40, .12);
}

.creator-info {
    position: relative;
}

.creator-tooltip {
    position: absolute;
    right: 0;
    top: calc(100% + .35rem);
    z-index: 50;
    width: max-content;
    max-width: 240px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease;
}

.creator-info:hover .creator-tooltip,
.creator-info:focus .creator-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.app-shell {
    min-height: 100vh;
}

.app-sidebar {
    background: linear-gradient(180deg, #050816 0%, #070b1d 100%);
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: -2rem -2rem 1.5rem;
    padding: 1.5rem 2rem 1rem;
    background: rgba(246, 247, 249, .88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(223, 228, 234, .72);
}

.app-card {
    background: var(--app-panel);
    border: 1px solid var(--app-border);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px rgba(16, 24, 40, .05);
}

.app-muted {
    color: var(--app-muted);
}

.app-kpi {
    position: relative;
    overflow: hidden;
}

.app-kpi::after {
    content: "";
    position: absolute;
    inset: auto -24px -36px auto;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: rgba(0, 184, 90, .08);
}

.app-segmented a {
    border-radius: 10px !important;
    font-weight: 700;
}

.app-table-wrap {
    overflow: hidden;
}

.app-list-row {
    background: #fff;
    border-top: 1px solid var(--app-border);
}

.app-list-row:hover {
    background: #fafafa;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    border: 1px solid;
    padding: .25rem .65rem;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .app-topbar {
        margin: -1rem -1rem 1rem;
        padding: 1rem;
    }
}
