/* Orym global base styles — extracted from v2.1.1 mockups */

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar);
}

::-webkit-scrollbar-thumb {
    background: var(--teal-1);
    border-radius: 2px;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    font-family: var(--font);
}

body {
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%,
            rgba(27, 160, 155, 0.045) 0%,
            rgba(27, 160, 155, 0) 65%),
        radial-gradient(ellipse 60% 50% at 100% 100%,
            rgba(255, 172, 107, 0.030) 0%,
            rgba(255, 172, 107, 0) 65%),
        linear-gradient(135deg,
            rgba(255, 251, 244, 0.012) 0%,
            rgba(255, 251, 244, 0) 40%,
            rgba(255, 251, 244, 0) 60%,
            rgba(27, 160, 155, 0.020) 100%),
        var(--bg);
    background-attachment: fixed;
    color: var(--fg);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.35s, color 0.35s;
    min-height: 100vh;
}

[data-theme="light"] body {
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%,
            rgba(20, 144, 160, 0.040) 0%,
            rgba(20, 144, 160, 0) 65%),
        radial-gradient(ellipse 60% 50% at 100% 100%,
            rgba(196, 122, 46, 0.028) 0%,
            rgba(196, 122, 46, 0) 65%),
        linear-gradient(135deg,
            rgba(20, 40, 50, 0.012) 0%,
            rgba(20, 40, 50, 0) 40%,
            rgba(20, 40, 50, 0) 60%,
            rgba(20, 144, 160, 0.018) 100%),
        var(--bg);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
}

/* App bar branding */
.orym-app-bar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 4px;
}

.orym-app-bar-brand svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.orym-app-bar-brand .logo-ring {
    stroke: var(--fg);
    transition: stroke 0.35s ease;
}

.orym-app-bar-wordmark {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fg);
}

.orym-app-bar__tb-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.orym-app-bar__tb-label {
    font-size: var(--fs-data-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fg-faint);
    white-space: nowrap;
}

.orym-app-bar__tenant-select {
    min-width: 140px;
    max-width: 200px;
}

.orym-app-bar__tenant-warning {
    flex-shrink: 0;
}

/* Theme pill toggle (reference nav) */
.orym-theme-control {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font);
}

.orym-theme-control .theme-toggle-label {
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--fg-faint);
    text-transform: uppercase;
    transition: color 0.35s ease;
    display: inline-block;
    min-width: 32px;
    text-align: right;
}

.orym-theme-control .theme-toggle {
    width: 36px;
    height: 20px;
    background: var(--hairline);
    border: 1px solid var(--fg-faint);
    border-radius: 10px;
    position: relative;
    flex-shrink: 0;
    transition: background-color 0.35s ease, border-color 0.35s ease;
}

.orym-theme-control .theme-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--fg-muted);
    transition: transform 0.3s, background 0.3s;
}

[data-theme="light"] .orym-theme-control .theme-toggle::after {
    transform: translateX(16px);
    background: var(--teal-1);
}
