:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ros-bg: #070a11;
    --ros-surface: #0d1320;
    --ros-panel: #111827;
    --ros-panel-soft: #0b1220;
    --ros-border: #253047;
    --ros-border-soft: #334155;
    --ros-text: #f8fafc;
    --ros-muted: #94a3b8;
    --ros-primary: #e11d48;
    --ros-primary-hover: #be123c;
    --ros-primary-soft: #4c0519;
    --ros-primary-text: #fda4af;
    --ros-success-bg: #052e16;
    --ros-success-border: #166534;
    --ros-success-text: #86efac;
    --ros-danger-bg: #450a0a;
    --ros-danger-border: #991b1b;
    --ros-danger-text: #fecaca;
    --ros-radius-sm: 9px;
    --ros-radius-md: 12px;
    --ros-radius-lg: 18px;
    --ros-shadow-focus: 0 0 0 3px rgba(251, 113, 133, .12);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--ros-bg);
    color: var(--ros-text);
}

a {
    color: inherit;
}

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

.ros-app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.ros-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--ros-border);
    background: var(--ros-surface);
}

.ros-sidebar__brand {
    padding: 22px 22px 18px;
    border-bottom: 1px solid var(--ros-border);
}

.ros-sidebar__brand-name {
    display: block;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.ros-sidebar__station {
    display: block;
    margin-top: 5px;
    color: var(--ros-muted);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ros-sidebar__nav {
    display: grid;
    gap: 5px;
    padding: 18px 12px;
}

.ros-sidebar__link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
}

.ros-sidebar__link:hover,
.ros-sidebar__link--active {
    background: #172033;
    color: #fff;
}

.ros-sidebar__link--disabled {
    opacity: .44;
    cursor: not-allowed;
}

.ros-sidebar__icon {
    width: 20px;
    text-align: center;
}

.ros-sidebar__footer {
    margin-top: auto;
    padding: 16px 18px;
    border-top: 1px solid var(--ros-border);
}

.ros-workspace {
    min-width: 0;
}

.ros-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--ros-border);
    background: rgba(13, 19, 32, .96);
    backdrop-filter: blur(12px);
}

.ros-topbar__left,
.ros-topbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ros-topbar__title {
    font-size: 14px;
    font-weight: 750;
    color: #cbd5e1;
}

.ros-topbar__link {
    color: var(--ros-primary-text);
    text-decoration: none;
    font-size: 14px;
}

.ros-page {
    max-width: 1220px;
    margin: 0 auto;
    padding: 38px 30px 60px;
}

.ros-page--narrow {
    max-width: 900px;
}

.ros-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.ros-page-header__eyebrow {
    margin-bottom: 8px;
    color: var(--ros-primary-text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ros-page-header h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: -.035em;
}

.ros-page-header p {
    max-width: 760px;
    margin: 9px 0 0;
    color: var(--ros-muted);
    line-height: 1.65;
}

.ros-page-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ros-card {
    padding: 24px;
    border: 1px solid var(--ros-border);
    border-radius: var(--ros-radius-lg);
    background: var(--ros-panel);
}

.ros-card--interactive {
    transition: transform .15s ease, border-color .15s ease;
}

.ros-card--interactive:hover {
    transform: translateY(-2px);
    border-color: #475569;
}

.ros-card__title {
    margin: 0 0 8px;
    font-size: 17px;
}

.ros-card__description {
    margin: 0;
    color: var(--ros-muted);
    line-height: 1.55;
}

.ros-grid {
    display: grid;
    gap: 18px;
}

.ros-grid--cards {
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.ros-stack {
    display: grid;
    gap: 18px;
}

.ros-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ros-col-full {
    grid-column: 1 / -1;
}

.ros-field {
    display: grid;
    gap: 7px;
}

.ros-field__label {
    font-size: 14px;
    font-weight: 750;
}

.ros-field__hint {
    margin: 0;
    color: var(--ros-muted);
    font-size: 13px;
    line-height: 1.5;
}

.ros-field__error {
    color: var(--ros-primary-text);
    font-size: 13px;
}

.ros-input,
.ros-textarea,
.ros-select {
    width: 100%;
    border: 1px solid var(--ros-border-soft);
    border-radius: 10px;
    padding: 12px 14px;
    background: var(--ros-panel-soft);
    color: #fff;
    font: inherit;
}

.ros-textarea {
    min-height: 130px;
    resize: vertical;
}

.ros-input:focus,
.ros-textarea:focus,
.ros-select:focus {
    outline: none;
    border-color: #fb7185;
    box-shadow: var(--ros-shadow-focus);
}

.ros-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 16px;
    background: var(--ros-primary);
    color: #fff;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.ros-button:hover {
    background: var(--ros-primary-hover);
}

.ros-button--secondary {
    border-color: var(--ros-border-soft);
    background: var(--ros-panel);
}

.ros-button--secondary:hover {
    background: #172033;
}

.ros-button--ghost {
    background: transparent;
    color: var(--ros-primary-text);
}

.ros-button--ghost:hover {
    background: var(--ros-primary-soft);
}

.ros-button--danger {
    background: #b91c1c;
}

.ros-button--danger:hover {
    background: #991b1b;
}

.ros-button--block {
    width: 100%;
}

.ros-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: var(--ros-primary-soft);
    color: var(--ros-primary-text);
    font-size: 12px;
    font-weight: 800;
    text-transform: capitalize;
}

.ros-badge--success {
    background: var(--ros-success-bg);
    color: var(--ros-success-text);
}

.ros-badge--neutral {
    background: #1e293b;
    color: #cbd5e1;
}

.ros-badge--warning {
    background: #3f2d08;
    color: #facc15;
}

.ros-badge--danger {
    background: #451a1a;
    color: #fecaca;
}

.ros-alert {
    margin-bottom: 22px;
    padding: 13px 15px;
    border: 1px solid var(--ros-success-border);
    border-radius: var(--ros-radius-md);
    background: var(--ros-success-bg);
    color: var(--ros-success-text);
}

.ros-alert--error {
    border-color: var(--ros-danger-border);
    background: var(--ros-danger-bg);
    color: var(--ros-danger-text);
}

.ros-avatar {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--ros-primary-soft);
    color: var(--ros-primary-text);
    font-size: 14px;
    font-weight: 850;
}

.ros-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ros-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ros-user__meta {
    display: grid;
    gap: 2px;
}

.ros-user__name {
    font-size: 13px;
    font-weight: 750;
}

.ros-user__role {
    color: var(--ros-muted);
    font-size: 12px;
    text-transform: capitalize;
}

.ros-empty {
    padding: 34px;
    border: 1px dashed var(--ros-border-soft);
    border-radius: var(--ros-radius-lg);
    background: var(--ros-surface);
    text-align: center;
}

.ros-empty h2 {
    margin: 0 0 8px;
}

.ros-empty p {
    margin: 0 0 20px;
    color: var(--ros-muted);
}

.ros-station-card {
    min-height: 235px;
    display: flex;
    flex-direction: column;
}

.ros-station-card__name {
    margin: 15px 0 7px;
    font-size: 22px;
}

.ros-station-card__description {
    margin: 0 0 10px;
    color: var(--ros-muted);
    line-height: 1.55;
}

.ros-station-card__profile {
    margin: 0 0 20px;
    color: var(--ros-muted);
    font-size: 13px;
}

.ros-station-card__action {
    margin-top: auto;
}

.ros-metric {
    display: grid;
    gap: 8px;
}

.ros-metric__label {
    color: var(--ros-muted);
    font-size: 13px;
}

.ros-metric__value {
    font-size: 24px;
    font-weight: 850;
}

.ros-mobile-nav {
    display: none;
}

@media (max-width: 900px) {
    .ros-app-shell {
        display: block;
    }

    .ros-sidebar {
        display: none;
    }

    .ros-mobile-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px 16px;
        border-bottom: 1px solid var(--ros-border);
        background: var(--ros-surface);
    }

    .ros-mobile-nav a {
        flex: 0 0 auto;
        padding: 8px 11px;
        border-radius: 9px;
        color: #cbd5e1;
        text-decoration: none;
        font-size: 13px;
    }

    .ros-mobile-nav a[aria-current="page"] {
        background: #172033;
        color: #fff;
    }
}

@media (max-width: 680px) {
    .ros-topbar {
        padding: 13px 17px;
    }

    .ros-topbar__title {
        display: none;
    }

    .ros-page {
        padding: 30px 18px 48px;
    }

    .ros-page-header {
        flex-direction: column;
    }

    .ros-page-header__actions {
        width: 100%;
    }

    .ros-page-header__actions .ros-button {
        flex: 1;
    }

    .ros-form-grid {
        grid-template-columns: 1fr;
    }

    .ros-col-full {
        grid-column: auto;
    }
}

.ros-user__email {
    color: var(--ros-muted);
    font-size: 12px;
    text-transform: none;
    letter-spacing: normal;
}
.ros-station-logo {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid var(--ros-border-soft);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ros-primary-soft), #172033);
    color: var(--ros-primary-text);
    font-size: 16px;
    font-weight: 850;
    letter-spacing: .04em;
}

.ros-station-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RadioOS station lifecycle presentation */
.ros-station-card--suspended {
    opacity: .72;
}

.ros-station-card--archived {
    border-style: dashed;
}

.ros-station-card--archived > *:not(:last-child) {
    opacity: .50;
    filter: grayscale(.75);
}

.ros-station-card--archived > :last-child {
    opacity: 1;
    filter: none;
}

.ros-station-card--archived:hover,
.ros-station-card--suspended:hover {
    transform: none;
}
/* Audit/log data tables. Kept intentionally generic for reuse until component cleanup. */
.ros-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ros-table th,
.ros-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--ros-border, #d9dee7);
    text-align: left;
    vertical-align: top;
}

.ros-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ros-table pre {
    margin: 8px 0 0;
    padding: 10px;
    border-radius: 8px;
    background: rgba(127, 127, 127, .08);
    font-size: 12px;
}
