[data-theme-layout="floating"] body > .flex > aside,
[data-theme-layout="floating"] body > div.flex > aside {
    margin: 0.75rem 0 0.75rem 0.75rem;
    height: calc(100vh - 1.5rem);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgb(0 0 0 / 8%);
}

[data-theme-layout="inset"] body > .flex > aside,
[data-theme-layout="inset"] body > div.flex > aside {
    background: var(--sidebar);
    color: var(--sidebar-foreground);
}

[data-theme-layout="inset"] .nav-link {
    color: var(--sidebar-foreground);
}

[data-theme-layout="inset"] .uni-title {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--sidebar-foreground);
}

[data-theme-mode="dark"] .card,
.dark .card {
    background: var(--card);
}

[data-theme-mode="dark"] header,
.dark header {
    background: color-mix(in oklab, var(--background) 82%, transparent);
}

.theme-settings-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 120;
    display: flex;
    height: 100vh;
    width: min(100vw, 22rem);
    flex-direction: column;
    border-left: 1px solid var(--border);
    background: var(--popover);
    color: var(--popover-foreground);
    box-shadow: -12px 0 40px rgb(0 0 0 / 10%);
}

.theme-settings-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgb(0 0 0 / 35%);
}

.theme-settings-section-title {
    font-size: 0.875rem;
    font-weight: 600;
}

.theme-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.theme-mode-btn,
.theme-layout-btn {
    display: flex;
    min-height: 4.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: var(--background);
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.theme-mode-btn.is-active,
.theme-layout-btn.is-active {
    border-color: var(--primary);
    background: color-mix(in oklab, var(--primary) 8%, var(--background));
    color: var(--primary);
}

.theme-preset-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.theme-preset-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.625rem;
}

.theme-preset-btn {
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    padding: 0.25rem;
    background: transparent;
    transition: border-color 0.15s, transform 0.15s;
}

.theme-preset-btn.is-active {
    border-color: var(--primary);
}

.theme-preset-preview {
    display: flex;
    height: 3.25rem;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

.theme-preset-preview-sidebar {
    width: 34%;
}

.theme-preset-preview-content {
    flex: 1;
}

.theme-reset-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: var(--foreground);
    color: var(--background);
    padding: 0.125rem 0.625rem;
    font-size: 0.625rem;
    font-weight: 600;
}
