:root {
    --hub-bg: #eef2f7;
    --hub-surface: rgba(255, 255, 255, 0.92);
    --hub-panel: #ffffff;
    --hub-navy: #10223a;
    --hub-navy-soft: #173355;
    --hub-blue: #2e6db3;
    --hub-blue-soft: #d8e7fb;
    --hub-cyan: #26b0c7;
    --hub-text: #1c2533;
    --hub-text-soft: #5c677a;
    --hub-border: rgba(20, 37, 63, 0.18);
    --hub-shadow: 0 24px 50px rgba(19, 34, 58, 0.12);
    --hub-radius: 20px;
    --hub-font: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--hub-font);
    background:
        radial-gradient(circle at top center, rgba(46, 109, 179, 0.14), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, var(--hub-bg) 100%);
    color: var(--hub-text);
}

.login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(44, 95, 143, 0.45), transparent 35%),
        linear-gradient(180deg, #091521 0%, #10263a 100%);
}

.hero-panel {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(18, 50, 74, 0.96), rgba(29, 90, 116, 0.9)),
        linear-gradient(45deg, rgba(240, 231, 216, 0.12), rgba(38, 176, 199, 0.1));
    box-shadow: 0 18px 40px rgba(15, 37, 53, 0.14);
}

.glass-card,
.metric-card {
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(18, 50, 74, 0.08);
}

.metric-card {
    padding: 1.25rem;
}

.metric-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #5b7585;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
}

.metric-subtitle {
    margin-top: 0.5rem;
    color: #657986;
    font-size: 0.95rem;
}

.card {
    border: 1px solid rgba(20, 37, 63, 0.08);
    border-radius: 1.1rem;
    box-shadow: 0 16px 40px rgba(18, 50, 74, 0.08);
}

.status-preview {
    background: #0f2535;
    color: #dbf4fa;
    border-radius: 0.75rem;
    padding: 1rem;
    white-space: pre-wrap;
}

.terminal-preview {
    background: #091722;
    color: #9ff5bf;
    border-radius: 0.75rem;
    padding: 1rem;
    min-height: 220px;
    max-height: 420px;
    overflow: auto;
    white-space: pre-wrap;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.86rem;
    line-height: 1.45;
}

.logo-preview-card {
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 1rem;
}

.hero-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-main-title {
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    line-height: 1;
    font-weight: 800;
    color: #fff;
}

.dashboard-client-logo,
.logo-preview-image {
    display: block;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

.logo-upload-card {
    border: 1px solid rgba(18, 50, 74, 0.08);
    border-radius: 1rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(38, 176, 199, 0.06), rgba(255, 255, 255, 0.95));
}

.upload-panel-card {
    font-size: 0.92rem;
}

.upload-panel-title {
    font-size: 1.15rem;
    font-weight: 600;
}

.upload-panel-label {
    font-size: 0.92rem;
}

.upload-panel-help {
    font-size: 0.8rem;
}

.upload-panel-button {
    font-size: 0.9rem;
    padding: 0.55rem 1rem;
}

.logo-preview-image {
    margin: 0 auto;
    max-height: 120px;
}

.broadcaster-summary-card {
    border-radius: 1rem;
    background: rgba(18, 50, 74, 0.04);
    border: 1px solid rgba(18, 50, 74, 0.08);
    padding: 1rem;
}

.broadcaster-summary-list dt,
.broadcaster-summary-list dd {
    margin-bottom: 0.5rem;
}

.broadcaster-interval-input {
    max-width: 180px;
}

.mare-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 1rem;
    border: 1px solid rgba(18, 50, 74, 0.08);
    box-shadow: 0 16px 36px rgba(18, 50, 74, 0.08);
    overflow: hidden;
}

.mare-tabs {
    display: flex;
    gap: 0.4rem;
    padding: 1rem 1rem 0;
    border-bottom: 1px solid rgba(18, 50, 74, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 247, 252, 0.96));
    flex-wrap: wrap;
}

.mare-tab {
    border: 1px solid rgba(18, 50, 74, 0.12);
    background: #fff;
    color: #5d8dba;
    font-weight: 700;
    padding: 0.75rem 1.1rem;
    border-radius: 0.55rem 0.55rem 0 0;
}

.mare-tab.active {
    color: #0b73b8;
    border-bottom-color: #0b73b8;
    box-shadow: inset 0 -2px 0 #0b73b8;
}

.mare-body {
    padding: 1rem;
}

.mare-body > .mare-panel {
    display: none !important;
}

.mare-body > .mare-panel.active {
    display: block !important;
}

.selection-card,
.summary-box {
    border: 1px solid rgba(18, 50, 74, 0.1);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 251, 0.94));
    padding: 1rem;
}

.selection-card h2,
.summary-box h3 {
    font-size: 1rem;
    color: #0f4f78;
    margin-bottom: 0.85rem;
}

.station-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(90deg, #0f2535, #1d5a74);
}

.metric-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(18, 50, 74, 0.12);
    border-radius: 0.75rem;
    padding: 0.75rem 0.85rem;
    background: #fff;
}

.status-box {
    flex: 1 1 340px;
    border: 1px dashed rgba(11, 115, 184, 0.3);
    border-radius: 0.85rem;
    background: rgba(38, 176, 199, 0.06);
    padding: 0.9rem 1rem;
    color: #4f6b85;
}

.toolbar-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.mare-panel#plotar {
    position: relative;
    left: 50%;
    width: min(96vw, 1800px);
    transform: translateX(-50%);
}

#plotArea {
    width: 100%;
}

.empty-state {
    text-align: center;
    padding: 1.5rem;
    border: 1px dashed rgba(18, 50, 74, 0.14);
    border-radius: 0.85rem;
    color: #667c8d;
    background: rgba(243, 246, 248, 0.85);
}

.chart-card {
    border-top: 1px solid rgba(18, 50, 74, 0.1);
    padding-top: 1.2rem;
    margin-top: 1.2rem;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.chart-title {
    flex: 1;
    text-align: center;
    font-weight: 700;
    color: #35516e;
}

.chart-surface {
    width: 100%;
    height: 340px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.summary-box strong {
    color: #0f4f78;
    font-size: 1.25rem;
}

.table-shell {
    overflow: auto;
    border: 1px solid rgba(18, 50, 74, 0.12);
    border-radius: 1rem;
    background: #fff;
    max-height: 720px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.report-table thead tr:first-child th {
    background: #0b73b8;
    color: #fff;
    font-size: 0.95rem;
    padding: 0.8rem 0.65rem;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.report-table thead tr:nth-child(2) th {
    background: #0f7ec7;
    color: #fff;
    font-size: 0.85rem;
    padding: 0.8rem 0.65rem;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.report-table tbody th,
.report-table tbody td {
    padding: 0.65rem 0.7rem;
    text-align: center;
    border-right: 1px solid #a9bed1;
    border-bottom: 1px solid #a9bed1;
    font-size: 0.82rem;
}

.report-table tbody th {
    background: #0f7ec7;
    color: #fff;
    position: sticky;
    left: 0;
}

.report-table tbody td {
    background: #dfe8f4;
}

.report-table tbody tr:nth-child(even) td {
    background: #cfd9e7;
}

.pagination-shell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-link-button {
    border: 0;
    background: transparent;
    color: #29445c;
    font-weight: 700;
    text-decoration: none;
}

.page-link-button.active {
    color: #0b73b8;
    text-decoration: underline;
}

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

.app-sidebar {
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.25rem 0.9rem;
    background:
        radial-gradient(circle at top left, rgba(79, 130, 192, 0.18), transparent 28%),
        linear-gradient(180deg, #10192b 0%, #121f34 60%, #13243b 100%);
    color: #eef4ff;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.5rem;
    color: #fff;
    text-decoration: none;
}

.app-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, rgba(71, 126, 208, 0.3), rgba(35, 72, 124, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.app-brand-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
    color: rgba(237, 244, 255, 0.92);
    text-decoration: none;
    font-size: 1.02rem;
    line-height: 1.15;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-link.active {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.sidebar-link-mark {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(171, 203, 255, 0.7);
    flex: 0 0 auto;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}

.sidebar-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user-name {
    font-weight: 700;
    line-height: 1.2;
}

.sidebar-user-role {
    color: rgba(220, 232, 255, 0.72);
    font-size: 0.92rem;
    text-transform: capitalize;
}

.btn-sidebar-logout {
    border-radius: 10px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: transparent;
    padding: 0.75rem 1rem;
}

.btn-sidebar-logout:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.app-main {
    flex: 1;
    min-width: 0;
}

.app-content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

.app-content-fluid {
    max-width: min(1700px, calc(100vw - 320px));
}

.page-intro {
    margin-bottom: 1.6rem;
}

.page-intro-kicker {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5876a5;
    margin-bottom: 0.35rem;
}

.page-intro-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--hub-navy);
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 1.4rem;
    padding: 2.2rem 2rem;
    margin-bottom: 1.6rem;
    border-radius: 18px;
    color: #fff;
    background:
        linear-gradient(120deg, #14233b 0%, #22446d 58%, #2f6db2 100%);
    box-shadow: var(--hub-shadow);
}

.dashboard-hero-main {
    min-width: 0;
}

.dashboard-hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

.dashboard-hero-brand-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.dashboard-main-title {
    margin: 0 0 0.8rem;
    font-size: clamp(2.3rem, 4vw, 3.5rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
}

.dashboard-hero-copy {
    margin: 0;
    max-width: 720px;
    font-size: 1.32rem;
    line-height: 1.45;
    color: rgba(242, 247, 255, 0.95);
}

.dashboard-status-card {
    padding: 1rem 1.1rem;
    border-radius: 14px;
    color: #1d2430;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 251, 0.94));
    box-shadow: 0 10px 22px rgba(12, 23, 42, 0.16);
}

.dashboard-status-label {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #555f70;
    margin-bottom: 0.25rem;
}

.dashboard-status-host,
.dashboard-status-port {
    font-weight: 800;
    line-height: 1.05;
    color: #111b28;
}

.dashboard-status-host {
    font-size: 1.35rem;
}

.dashboard-status-port {
    font-size: 1.1rem;
    margin-bottom: 0.45rem;
}

.dashboard-status-meta {
    color: #3d4758;
    font-size: 0.98rem;
}

.dashboard-status-divider {
    height: 1px;
    background: rgba(20, 37, 63, 0.1);
    margin: 1rem -1.1rem 0.9rem;
}

.dashboard-inline-status {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1rem;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.95rem;
    margin-bottom: 1rem;
}

.metric-card {
    min-height: 146px;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid var(--hub-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow: 0 12px 24px rgba(16, 34, 58, 0.08);
}

.metric-card-wide {
    grid-column: span 1;
}

.metric-label {
    margin-bottom: 0.35rem;
    color: #273343;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.metric-value {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.05;
    color: #182130;
}

.metric-value-compact {
    font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.metric-subtitle {
    margin-top: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #2b3442;
    font-size: 1rem;
}

.metric-subtitle-break {
    display: block;
    overflow: hidden;
    color: var(--hub-text-soft);
    font-size: 0.92rem;
    line-height: 1.35;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-title,
.shortcut-title {
    margin: 0 0 0.9rem;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--hub-navy);
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-map-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    font-size: 0.9rem;
    color: var(--hub-text-soft);
}

.dashboard-map-shell {
    position: relative;
}

.dashboard-map {
    position: relative;
    min-height: 285px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(20, 37, 63, 0.1);
    background: linear-gradient(180deg, #dceaf6 0%, #b8d4ea 100%);
}

.dashboard-map::before {
    content: none;
}

.dashboard-map::after {
    content: none;
}

.dashboard-map-water {
    display: none;
}

.map-marker {
    display: none;
}

.marker-1 { left: 54%; top: 21%; }
.marker-2 { left: 58%; top: 31%; }
.marker-3 { left: 64%; top: 43%; }
.marker-4 { left: 69%; top: 24%; }
.marker-5 { left: 61%; top: 59%; }
.marker-6 { left: 73%; top: 65%; }

.dashboard-map-empty {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(320px, calc(100% - 2rem));
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    text-align: center;
    background: rgba(16, 34, 58, 0.8);
    color: #fff;
    font-size: 0.92rem;
    box-shadow: 0 10px 30px rgba(16, 34, 58, 0.18);
    pointer-events: none;
}

.leaflet-container {
    font: inherit;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    box-shadow: 0 12px 24px rgba(16, 34, 58, 0.16);
}

.ais-arrow-marker {
    width: 0;
    height: 0;
}

.ais-arrow-marker .ais-arrow-shape {
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 24px solid var(--ais-marker-fill, #1bcf74);
    filter: drop-shadow(0 4px 10px rgba(16, 34, 58, 0.24));
    transform-origin: 50% 70%;
}

.map-page-card {
    border: 1px solid rgba(20, 37, 63, 0.08);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 40px rgba(18, 50, 74, 0.08);
    overflow: hidden;
}

.map-page-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: calc(100vh - 110px);
}

.map-page-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.9rem;
    border-right: 1px solid rgba(20, 37, 63, 0.08);
    border-left: 0;
    background: linear-gradient(180deg, rgba(247, 250, 253, 0.98), rgba(237, 244, 249, 0.98));
}

.map-page-sidebar-head {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.map-page-sidebar-copy {
    color: var(--hub-text-soft);
    line-height: 1.45;
}

.map-page-sidebar-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.92rem;
    color: var(--hub-text-soft);
}

.map-page-targets {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
    overflow: auto;
    max-height: calc(100vh - 240px);
    padding-right: 0.15rem;
}

.map-target-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: 1px solid rgba(20, 37, 63, 0.08);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.88);
    text-align: left;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.map-target-item:hover,
.map-target-item.active {
    transform: translateY(-1px);
    border-color: rgba(46, 109, 179, 0.28);
    box-shadow: 0 12px 24px rgba(16, 34, 58, 0.08);
}

.map-target-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.map-target-copy strong,
.map-target-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-target-copy span {
    color: var(--hub-text-soft);
    font-size: 0.82rem;
}

.map-page-empty {
    padding: 1rem;
    border: 1px dashed rgba(20, 37, 63, 0.14);
    border-radius: 0.95rem;
    text-align: center;
    color: var(--hub-text-soft);
    background: rgba(255, 255, 255, 0.82);
}

.map-page-map-shell {
    position: relative;
    padding: 0;
    min-height: calc(100vh - 110px);
    background: linear-gradient(180deg, #dceaf6 0%, #b8d4ea 100%);
}

.map-page-map {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 110px);
    border-radius: 0;
    overflow: hidden;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.alert-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(20, 37, 63, 0.08);
}

.alert-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.alert-row-main {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.02rem;
}

.alert-tags {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.tag {
    border-radius: 8px;
    padding: 0.2rem 0.55rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.tag-amber,
.tag-medium {
    background: #f8e8c4;
    color: #8c6410;
}

.tag-green,
.tag-low {
    background: #dcefdc;
    color: #2f7d37;
}

.tag-high,
.tag-red {
    background: #f5dbdd;
    color: #9a3944;
}

.shortcut-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto;
}

.status-dot.online {
    background: #4dc86d;
}

.status-dot.warning {
    background: #f0b645;
}

.status-dot.offline {
    background: #b8bfc9;
}

.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.62rem 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #21416b, #2f6db2);
    border-color: #21416b;
}

.btn-outline-primary {
    color: #183861;
    border-color: rgba(24, 56, 97, 0.22);
}

.btn-outline-primary:hover {
    background: #eff5fd;
    color: #183861;
    border-color: rgba(24, 56, 97, 0.35);
}

.card-body,
.table,
.form-control,
.form-select,
.form-label,
.form-text,
.badge,
.small,
td,
th,
dd,
dt,
p,
li,
label,
input,
select,
textarea,
button {
    font-size: 1rem;
}

.card-body h1,
.card-body h2,
.card-body h3,
.card-body .h3,
.card-body .h4,
.card-body .h5,
.card-body .h6 {
    letter-spacing: -0.02em;
    color: var(--hub-navy);
    font-weight: 800;
}

.table > :not(caption) > * > * {
    padding: 0.9rem 0.8rem;
}

.table thead th {
    color: #40516b;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom-width: 1px;
}

.form-control,
.form-select {
    min-height: 46px;
    border-radius: 12px;
    border-color: rgba(20, 37, 63, 0.14);
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(47, 109, 178, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(47, 109, 178, 0.14);
}

.logo-preview-card,
.logo-upload-card,
.broadcaster-summary-card,
.selection-card,
.summary-box,
.status-box {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.96));
    border-color: rgba(20, 37, 63, 0.1);
}

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

    .app-sidebar {
        width: auto;
        height: auto;
        position: static;
    }

    .app-content,
    .app-content-fluid {
        max-width: none;
        padding: 1.2rem 1rem 1.5rem;
    }

    .dashboard-hero {
        grid-template-columns: 1fr;
        padding: 1.4rem 1.2rem;
    }

    .dashboard-metrics,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .map-page-layout {
        grid-template-columns: 1fr;
    }

    .map-page-sidebar {
        border-right: 0;
        border-left: 0;
        border-bottom: 1px solid rgba(20, 37, 63, 0.08);
    }

    .map-page-map-shell,
    .map-page-map {
        min-height: 70vh;
        max-height: none;
        width: 100%;
    }

    .metric-value {
        font-size: 1.85rem;
    }

    .alert-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .chart-surface {
        height: 260px;
    }

    .mare-body {
        padding: 0.8rem;
    }

    .mare-panel#plotar {
        position: static;
        left: auto;
        width: 100%;
        transform: none;
    }
}
