:root {
    --bg: #050b18;
    --bg-2: #071327;
    --panel: #0b172c;
    --panel-2: #0e1e37;
    --line: #1e3654;
    --text: #ecf7ff;
    --muted: #88a5bd;
    --blue: #0ea5ff;
    --cyan: #28d8ff;
    --green: #32d296;
    --amber: #f6b94a;
    --red: #ff637a;
    --shadow: 0 18px 50px rgba(0, 0, 0, .32);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    background:
        radial-gradient(circle at 72% 0, rgba(20, 83, 154, .24) 0, transparent 30%),
        linear-gradient(160deg, var(--bg), #020610 72%);
    color: var(--text);
    font-size: 15px;
}
a { color: var(--cyan); text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

/* Application shell */
.app-shell { display: grid; grid-template-columns: 286px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 22px 18px;
    overflow-y: auto;
    background: linear-gradient(180deg, #071326 0, #040a15 100%);
    border-right: 1px solid rgba(72, 139, 190, .2);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 20px; color: #fff; }
.brand img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(14, 165, 255, .25);
}
.brand span { display: flex; flex-direction: column; min-width: 0; }
.brand strong { font-size: 16px; letter-spacing: .01em; white-space: nowrap; }
.brand small, .user-chip small { color: var(--muted); font-size: 12px; margin-top: 3px; }
.nav-label { padding: 5px 14px 9px; color: #5f819c; font-size: 10px; font-weight: 850; letter-spacing: .15em; }
.nav { display: grid; gap: 7px; }
.nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #b9ccdc;
    font-weight: 680;
}
.nav a span { display: inline-grid; place-items: center; width: 24px; color: #6ddcff; font-size: 17px; }
.nav a:hover, .nav a.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(14, 165, 255, .18), rgba(40, 216, 255, .05));
    box-shadow: inset 3px 0 0 var(--cyan);
}
.sidebar-help {
    margin: 24px 6px 16px;
    padding: 15px;
    border: 1px solid rgba(40, 216, 255, .15);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(10, 39, 70, .78), rgba(5, 17, 33, .8));
}
.sidebar-help strong { font-size: 12px; color: #cbefff; }
.sidebar-help p { margin: 7px 0 0; color: #7594ad; font-size: 11px; line-height: 1.5; }
.sidebar-foot { margin-top: auto; border-top: 1px solid rgba(100, 150, 190, .18); padding: 18px 8px 0; }
.user-chip { display: flex; gap: 10px; align-items: center; }
.user-chip > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.user-chip strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #00101f;
    font-weight: 850;
}
.text-button { border: 0; background: none; color: #82a0b7; padding: 12px 0 0; cursor: pointer; }
.text-button:hover { color: #fff; }

.main { min-width: 0; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    border-bottom: 1px solid rgba(100, 150, 190, .15);
    background: rgba(4, 11, 24, .78);
    backdrop-filter: blur(18px);
}
.topbar-title { display: flex; flex-direction: column; }
.topbar-title strong { font-size: 17px; }
.topbar-title span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.role-pill, .status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.role-pill { border: 1px solid rgba(14, 165, 255, .24); background: rgba(14, 165, 255, .08); color: #94d9ff; }
.status-pill { border: 1px solid rgba(50, 210, 150, .28); background: rgba(50, 210, 150, .08); color: #a4f1d1; }
.status-pill i { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 12px var(--green); }
.menu-button { display: none; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.content { padding: 34px; max-width: 1680px; margin: 0 auto; }

/* Headings and metrics */
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.page-heading h1 { font-size: 32px; margin: 2px 0 7px; letter-spacing: -.03em; }
.page-heading p { margin: 0; color: var(--muted); max-width: 780px; line-height: 1.55; }
.hero-heading { padding: 7px 0; }
.hero-heading h1 { font-size: clamp(30px, 3vw, 42px); }
.eyebrow { color: var(--cyan) !important; font-size: 11px !important; text-transform: uppercase; letter-spacing: .16em; font-weight: 850 !important; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.metric-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card, .panel {
    border: 1px solid rgba(89, 148, 190, .2);
    background: linear-gradient(145deg, rgba(14, 30, 55, .94), rgba(7, 18, 35, .97));
    box-shadow: var(--shadow);
    border-radius: 18px;
}
.metric-card {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 21px;
}
.metric-card::after { content: ""; position: absolute; width: 110px; height: 110px; border-radius: 50%; background: rgba(14, 165, 255, .08); right: -45px; top: -45px; }
.metric-card span { font-size: 12px; color: var(--muted); font-weight: 780; text-transform: uppercase; letter-spacing: .07em; }
.metric-card strong { font-size: 30px; margin: 10px 0 2px; letter-spacing: -.03em; }
.metric-card small { color: #7290a8; }

/* Panels */
.panel { padding: 22px; margin-bottom: 18px; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel-grid-wide { grid-template-columns: 2fr 1fr; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.panel-head h2 { margin: 0 0 5px; font-size: 18px; }
.panel-head p { margin: 0; color: var(--muted); font-size: 13px; }
.panel-head > a { font-weight: 750; font-size: 13px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 10px 15px;
    font-weight: 780;
    cursor: pointer;
    transition: .18s ease;
    white-space: nowrap;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #001422; background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 8px 24px rgba(14, 165, 255, .22); }
.button-secondary { color: #d8eaf7; background: #0d213b; border-color: #244a6e; }
.button-warning { color: #251700; background: var(--amber); }
.button-danger { color: #fff; background: #9e2940; border-color: #dc4962; }
.button-large { width: 100%; padding: 13px 18px; font-size: 16px; }
.button-block { width: 100%; }
.button-row, .form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Lists, statuses and data */
.station-list, .activity-list { display: grid; }
.station-row { display: grid; grid-template-columns: 14px 1fr 150px auto; gap: 14px; align-items: center; padding: 14px 4px; border-top: 1px solid rgba(90, 145, 185, .13); color: var(--text); }
.station-row:first-child { border-top: 0; }
.station-row:hover { background: rgba(255, 255, 255, .015); }
.station-row span { display: flex; flex-direction: column; }
.station-row small, td small { display: block; color: var(--muted); margin-top: 4px; font-size: 12px; max-width: 330px; line-height: 1.35; }
.service-dot { display: inline-block; width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: #6d7d8c; }
.service-active { background: var(--green); box-shadow: 0 0 10px rgba(50, 210, 150, .8); }
.service-failed { background: var(--red); }
.service-inactive { background: var(--amber); }
.badge { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; width: max-content; border-radius: 999px; padding: 6px 9px; background: #152c47; color: #b8d2e5; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.badge-active { background: rgba(50, 210, 150, .12); color: #9af0cc; }
.badge-failed, .badge-error { background: rgba(255, 99, 122, .12); color: #ff9aaa; }
.badge-inactive, .badge-warning { background: rgba(246, 185, 74, .13); color: #ffd787; }
.badge-info { background: rgba(14, 165, 255, .13); color: #92d9ff; }
.storage-ring { width: 175px; height: 175px; border-radius: 50%; margin: 6px auto 22px; display: grid; place-items: center; background: conic-gradient(var(--cyan) calc(var(--value) * 1%), rgba(88, 131, 163, .15) 0); position: relative; }
.storage-ring::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: #0a182d; }
.storage-ring span { position: relative; display: flex; flex-direction: column; text-align: center; }
.storage-ring strong { font-size: 31px; }
.storage-ring small { color: var(--muted); }
.data-list { margin: 0; }
.data-list div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-top: 1px solid rgba(90, 145, 185, .13); }
.data-list div:first-child { border-top: 0; }
.data-list dt { color: var(--muted); }
.data-list dd { margin: 0; font-weight: 750; text-align: right; }
.compact-list { margin: 14px 0; }
.compact-list div { padding: 8px 0; font-size: 12px; }
.horizontal-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.horizontal-list div { display: block; border: 1px solid rgba(90, 145, 185, .13); border-radius: 12px; padding: 14px; }
.horizontal-list dd { text-align: left; margin-top: 8px; font-size: 18px; }
.activity-list > div { display: flex; gap: 13px; padding: 12px 0; border-top: 1px solid rgba(90, 145, 185, .13); }
.activity-list > div:first-child { border-top: 0; }
.activity-list span:last-child { display: flex; flex-direction: column; }
.activity-list small { color: var(--muted); margin-top: 4px; }
.event-icon { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); margin-top: 5px; flex: 0 0 auto; }
.event-warning { background: var(--amber); }
.event-error { background: var(--red); }
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state strong { display: block; color: #fff; font-size: 18px; margin-bottom: 7px; }
.empty-state p { margin: 5px auto 18px; max-width: 600px; line-height: 1.55; }
.empty-state.compact { padding: 22px; }
.empty-state.compact p { margin-bottom: 0; }

/* Channel cards */
.channel-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.channel-card { min-width: 0; padding: 21px; border: 1px solid rgba(89, 148, 190, .2); border-radius: 18px; background: linear-gradient(145deg, rgba(14, 30, 55, .94), rgba(7, 18, 35, .97)); box-shadow: var(--shadow); }
.channel-card.panel { margin-bottom: 0; }
.channel-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.channel-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, rgba(40, 216, 255, .2), rgba(14, 165, 255, .08)); color: var(--cyan); font-size: 20px; }
.channel-card h3 { margin: 18px 0 7px; font-size: 21px; }
.channel-card > p { margin: 0 0 15px; color: var(--muted); line-height: 1.5; }
.channel-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.channel-card-meta > span { display: flex; flex-direction: column; padding: 11px; border-radius: 11px; background: rgba(4, 15, 29, .65); border: 1px solid rgba(90, 145, 185, .13); }
.channel-card-meta strong { font-size: 12px; line-height: 1.3; }
.channel-card-meta small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.live-player { width: 100%; height: 38px; margin: 2px 0 4px; }

/* Forms */
.filter-panel { padding: 16px 20px; }
.filter-form { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; }
.filter-form label { min-width: 240px; }
.form-stack, .form-grid { display: grid; gap: 16px; }
.form-grid { grid-template-columns: 1fr 1fr; }
.form-grid.single-column { grid-template-columns: 1fr; }
.form-grid .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 7px; color: #dbeaf5; font-size: 13px; font-weight: 720; }
label small, .field-help { color: var(--muted); font-weight: 500; line-height: 1.4; }
.field-help { margin: 0 0 12px; font-size: 12px; }
input, select { width: 100%; border: 1px solid #284967; background: #07162a; color: #fff; border-radius: 10px; padding: 11px 12px; outline: none; }
input:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(40, 216, 255, .1); }
input[readonly] { opacity: .65; cursor: not-allowed; }
.form-panel { max-width: 980px; }
.form-actions { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(90, 145, 185, .15); }
.check-row { flex-direction: row; align-items: flex-start; background: rgba(9, 26, 47, .8); border: 1px solid rgba(83, 139, 181, .22); border-radius: 11px; padding: 12px; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; }
.check-row span { display: flex; flex-direction: column; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.station-access { border: 1px solid rgba(83, 139, 181, .22); border-radius: 12px; padding: 15px; }
.station-access legend { padding: 0 8px; color: #dcecf7; font-weight: 800; }
.danger-zone { max-width: 980px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.danger-zone h2 { margin: 0 0 5px; }
.danger-zone p { margin: 0; color: var(--muted); }
.profile-header { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(90, 145, 185, .15); }
.profile-header > span:last-child { display: flex; flex-direction: column; }
.profile-header small { color: var(--muted); margin-top: 4px; }
.profile-avatar { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #001422; font-size: 23px; font-weight: 900; }
.assigned-list { margin-top: 22px; }
.assigned-list h3 { font-size: 14px; margin: 0 0 10px; }
.assigned-list a { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(90, 145, 185, .13); color: #dbeaf5; }

/* Tables */
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid rgba(91, 147, 187, .14); vertical-align: middle; }
th { color: #7fa2bc; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
td { color: #d9e7f2; }
td.actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.link-button { border: 0; background: none; color: var(--cyan); padding: 0; cursor: pointer; }
.link-button.danger { color: #ff8597; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; color: #9adfff; }

/* Archive browser */
.archive-heading { margin-bottom: 10px; }
.date-nav { display: flex; align-items: center; gap: 8px; }
.archive-summary { display: flex; justify-content: space-between; gap: 16px; padding: 11px 13px; margin-bottom: 13px; border-radius: 10px; background: rgba(5, 17, 33, .72); color: var(--muted); font-size: 12px; }
.archive-summary strong { color: #d9edf9; }
.hour-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hour-card { display: grid; grid-template-columns: 85px 1fr minmax(160px, 270px) 38px; align-items: center; gap: 12px; padding: 12px; border: 1px solid rgba(87, 144, 186, .18); border-radius: 12px; background: rgba(4, 14, 28, .55); }
.hour-card.missing { opacity: .58; }
.hour-time, .hour-meta { display: flex; flex-direction: column; }
.hour-time strong { font-size: 18px; }
.hour-time span, .hour-meta span { color: var(--muted); font-size: 11px; margin-top: 3px; }
.hour-meta strong { font-size: 13px; }
.hour-card audio { width: 100%; height: 32px; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1px solid #285276; background: #0d2743; color: var(--cyan); font-size: 18px; }

/* Alerts */
.alert { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid rgba(14, 165, 255, .3); background: #0a2941; color: #ccecff; border-radius: 12px; padding: 13px 15px; margin-bottom: 17px; }
.alert p { margin: 3px 0; }
.alert button { border: 0; background: none; color: inherit; font-size: 20px; cursor: pointer; }
.alert-success { background: rgba(29, 118, 84, .3); border-color: rgba(50, 210, 150, .34); color: #c6f8e2; }
.alert-warning { background: rgba(130, 88, 10, .3); border-color: rgba(246, 185, 74, .35); color: #ffe2a5; }
.alert-error { background: rgba(125, 23, 43, .35); border-color: rgba(255, 99, 122, .4); color: #ffd3da; }

/* Login panel */
.auth-shell { min-height: 100vh; }
.auth-main { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.2fr) minmax(430px, .8fr); }
.auth-intro { position: relative; display: grid; place-items: center; overflow: hidden; padding: 54px; background: radial-gradient(circle at 20% 20%, rgba(40, 216, 255, .18), transparent 34%), linear-gradient(145deg, #06152e 0, #030914 78%); }
.auth-intro::before, .auth-intro::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(40, 216, 255, .13); }
.auth-intro::before { width: 560px; height: 560px; left: -210px; bottom: -230px; box-shadow: 0 0 100px rgba(14, 165, 255, .08) inset; }
.auth-intro::after { width: 360px; height: 360px; right: -130px; top: -100px; }
.auth-intro-inner { position: relative; z-index: 1; width: min(100%, 720px); }
.auth-intro-inner > img { width: 210px; height: 210px; object-fit: cover; border-radius: 34px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); margin-bottom: 28px; }
.auth-intro h1 { margin: 6px 0 18px; font-size: clamp(38px, 4.5vw, 66px); line-height: 1.02; letter-spacing: -.05em; }
.auth-intro-inner > p:not(.eyebrow) { max-width: 680px; color: #94aec2; font-size: 17px; line-height: 1.7; }
.auth-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.auth-feature-grid div { padding: 15px; border: 1px solid rgba(88, 152, 198, .18); border-radius: 14px; background: rgba(7, 24, 45, .62); }
.auth-feature-grid strong, .auth-feature-grid span { display: block; }
.auth-feature-grid strong { font-size: 20px; color: #fff; }
.auth-feature-grid span { margin-top: 4px; color: #7898b0; font-size: 11px; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 54px clamp(30px, 5vw, 84px); background: #f8fbff; color-scheme: light; color: #0d1b2f; }
.auth-panel .alert { color-scheme: dark; }
.login-card { width: min(100%, 470px); margin: 0 auto; }
.login-brand-mobile { display: none; }
.login-card .eyebrow { color: #0b8dce !important; }
.login-card h2 { margin: 5px 0 8px; color: #0b1a2d; font-size: 34px; letter-spacing: -.04em; }
.login-lead { margin: 0 0 28px; color: #65758a; line-height: 1.55; }
.login-card label { color: #24364d; }
.login-card input { background: #fff; border-color: #d5e1ec; color: #0b1a2d; padding: 13px 14px; }
.login-card input:focus { border-color: #0ea5ff; box-shadow: 0 0 0 3px rgba(14, 165, 255, .12); }
.login-security { display: flex; gap: 11px; align-items: flex-start; margin-top: 24px; padding: 14px; border-radius: 12px; background: #eef7fc; color: #60758b; font-size: 12px; line-height: 1.5; }
.login-security > span { color: #27b981; }
.login-security p { margin: 0; }
.login-security strong { color: #263b50; }
.hidden { display: none !important; }

@media (max-width: 1260px) {
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .panel-grid-wide { grid-template-columns: 1fr; }
    .hour-grid { grid-template-columns: 1fr; }
    .channel-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-main { grid-template-columns: 1fr 480px; }
    .auth-intro { padding: 40px; }
}

@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: -300px; width: 286px; transition: .2s ease; }
    .sidebar.open { left: 0; box-shadow: 30px 0 80px rgba(0, 0, 0, .7); }
    .menu-button { display: block; }
    .topbar { padding: 0 18px; justify-content: flex-start; gap: 14px; }
    .topbar-actions { margin-left: auto; }
    .role-pill { display: none; }
    .content { padding: 22px 16px; }
    .page-heading { flex-direction: column; }
    .panel-grid { grid-template-columns: 1fr; }
    .channel-card-grid { grid-template-columns: 1fr; }
    .horizontal-list { grid-template-columns: 1fr; }
    .auth-main { display: block; min-height: 100vh; }
    .auth-intro { display: none; }
    .auth-panel { min-height: 100vh; padding: 30px 22px; }
    .login-brand-mobile { display: block; margin-bottom: 26px; }
    .login-brand-mobile img { width: 120px; height: 120px; object-fit: cover; border-radius: 24px; box-shadow: 0 20px 50px rgba(0, 52, 92, .2); }
}

@media (max-width: 700px) {
    .metric-grid, .metric-grid-three, .form-grid, .check-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: auto; }
    .hour-card { grid-template-columns: 72px 1fr 38px; }
    .hour-card audio { grid-column: 1 / -1; grid-row: 2; }
    .hour-card .icon-button { grid-column: 3; grid-row: 1; }
    .station-row { grid-template-columns: 12px 1fr auto; }
    .station-row > span:nth-child(3) { display: none; }
    .danger-zone { align-items: flex-start; flex-direction: column; }
    .topbar-title span { display: none; }
    .archive-heading { align-items: flex-start; }
    .archive-heading, .archive-summary { flex-direction: column; }
    .date-nav { width: 100%; justify-content: space-between; }
}

@media (max-width: 500px) {
    .metric-grid { grid-template-columns: 1fr; }
    .panel { padding: 17px; }
    .topbar .status-pill { display: none; }
    .hour-card { grid-template-columns: 70px 1fr 34px; }
    .login-card h2 { font-size: 29px; }
    .channel-card-meta { grid-template-columns: 1fr; }
}

/* Plan and subscription integration */
.plan-feature { display:block; padding:10px 12px; border:1px solid rgba(90,145,185,.13); border-radius:10px; color:#d8eaf7; background:rgba(11,28,50,.45); }
.plan-feature + .plan-feature { margin-top:8px; }
textarea { resize:vertical; }
code { color:#7ddcff; overflow-wrap:anywhere; }
.login-help{margin-top:18px;text-align:center}.login-help a{color:#5edbff;text-decoration:none}.button-danger{background:#7b1f31;color:#fff;border-color:#a62b45}.button-danger:hover{background:#94283d}.nav a[href="/orders"] span,.nav a[href="/account/orders"] span{font-size:17px}
