/* ============================================
   UptimeMonitor
   Dark-first, #1895f0 accent, sidebar layout
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- tokens ---------- */
:root {
    --accent: #1895f0;
    --accent-hover: #1280d4;
    --accent-subtle: rgba(24, 149, 240, .08);
    --accent-glow: 0 0 12px rgba(24, 149, 240, .15), 0 0 32px rgba(24, 149, 240, .06);
    --accent-glow-sm: 0 0 8px rgba(24, 149, 240, .12);
    --success: #2fcc71;
    --success-subtle: rgba(47, 204, 113, .1);
    --warning: #f5a623;
    --danger: #e74c3c;
    --danger-subtle: rgba(231, 76, 60, .08);
    --danger-hover: #c0392b;

    --bg-root: #0d1117;
    --bg-surface: #161b22;
    --bg-surface-raised: #1c2129;
    --bg-inset: #0d1117;
    --bg-overlay: rgba(0, 0, 0, .65);
    --border: #2a3140;
    --border-subtle: #222938;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-tertiary: #5d6675;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,.25);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.35);
    --shadow-card: 0 1px 3px rgba(0,0,0,.15), 0 0 1px rgba(0,0,0,.3);
    --input-bg: #0d1117;
    --code-bg: #0d1117;
    --nav-bg: #161b22;
    --nav-border: #2a3140;

    --sidebar-width: 250px;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-xs: 4px;
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', Consolas, monospace;
    --transition: 180ms ease;
}

[data-theme="light"] {
    --bg-root: #f4f6f9;
    --bg-surface: #ffffff;
    --bg-surface-raised: #fafbfc;
    --bg-inset: #f0f2f5;
    --bg-overlay: rgba(0, 0, 0, .45);
    --border: #e2e5ea;
    --border-subtle: #eceef2;
    --text-primary: #1a1f36;
    --text-secondary: #5e6687;
    --text-tertiary: #8e94a8;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.08);
    --shadow-card: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.06);
    --input-bg: #ffffff;
    --code-bg: #f6f8fa;
    --nav-bg: #ffffff;
    --nav-border: #e8ebf0;
    --accent-subtle: rgba(24, 149, 240, .08);
    --success-subtle: rgba(47, 204, 113, .1);
    --danger-subtle: rgba(231, 76, 60, .08);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-root);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition), color var(--transition);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.text-right { text-align: right; }
.text-center { text-align: center; }
.text-left { text-align: left; }

.pointer { cursor: pointer; }

/* ---------- layout ---------- */
.app-layout { display: flex; min-height: 100vh; }
.hide {
    display: none;
}
.sidebar {
    width: var(--sidebar-width);
    background: var(--nav-bg);
    border-right: 1px solid var(--nav-border);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
    transition: background var(--transition), border-color var(--transition);
}
.sidebar-brand {
    display: flex; align-items: center; gap: .2rem;
    padding: 1.25rem 1rem; text-decoration: none;
    color: var(--text-primary); font-weight: 700; font-size: 1.5rem;
}

.sidebar-nav { flex: 1; padding: 0 .5rem; list-style: none; }
.sidebar-nav a {
    display: flex; align-items: center; gap: .65rem;
    padding: .55rem .75rem; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: .875rem; font-weight: 500;
    text-decoration: none; transition: all var(--transition);
}
.sidebar-nav a:hover { color: var(--text-primary); background: var(--accent-subtle); }
.sidebar-nav a.active { color: var(--text-primary); background: var(--accent-subtle); }
.sidebar-nav a.active .nav-icon { color: var(--accent); }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-bottom {
    padding: 1rem; border-top: 1px solid var(--border-subtle);
    display: flex; align-items: center; gap: .5rem;
}
.sidebar-bottom .user-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 600;
}
.sidebar-bottom .user-name { font-size: .8rem; color: var(--text-secondary); }

.main-content { margin-left: var(--sidebar-width); flex: 1; min-height: 100vh; }
.page-content { padding: 1.5rem 2.5rem; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .65rem 1.35rem; border: none; border-radius: var(--radius-sm);
    font-size: .9rem; font-weight: 600; font-family: var(--font);
    cursor: pointer; transition: all var(--transition); text-decoration: none; line-height: 1.4;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--accent-glow-sm); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--accent-glow); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-ghost { background: transparent; color: var(--text-secondary); padding: .5rem .7rem; }
.btn-ghost:hover { color: var(--text-primary); background: var(--accent-subtle); }
.btn-sm { padding: .45rem .9rem; font-size: .82rem; }
.btn svg { width: 16px; height: 16px; }

/* ---------- cards ---------- */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}

/* ---------- page header ---------- */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.page-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.breadcrumb { display: flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--text-tertiary); margin-bottom: .75rem; }
.breadcrumb a { color: var(--text-secondary); }

/* ---------- status ---------- */
.status-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.status-dot.up { background: var(--success); }
.status-dot.down { background: var(--danger); }
.status-dot.unknown { background: var(--text-tertiary); }
.status-dot.paused { border-radius: 0; background: none; border: 2px solid var(--warning); border-width: 0 3px; width: 8px; margin: 0 2px; }

.status-dot-lg { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.status-dot-lg.up { background: var(--success); }
.status-dot-lg.down { background: var(--danger); }
.status-dot-lg.warn { background: var(--warning); }
.status-dot-lg svg { width: 24px; height: 24px; color: #fff; }
.status-dot-lg.paused { border-radius: 0; background: none; border: 4px solid var(--warning); border-width: 0 8px; width: 24px; height:32px; margin: 0 4px; content: '' }
/* ---------- badge ---------- */
.badge { display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: var(--radius-xs); font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
.badge-up { background: var(--success-subtle); color: var(--success); }
.badge-down { background: var(--danger-subtle); color: var(--danger); }
.badge-resolved { background: var(--success-subtle); color: var(--success); }
.badge-ongoing { background: var(--danger-subtle); color: var(--danger); }
.badge-type { background: var(--accent-subtle); color: var(--accent); font-size: .68rem; }

/* ---------- monitor rows ---------- */
.monitor-list { display: flex; flex-direction: column; gap: 2px; }
.monitor-row {
    display: flex; align-items: center; gap: .75rem;
    padding: .75rem 1rem; background: var(--bg-surface);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    cursor: pointer; transition: all var(--transition); text-decoration: none; color: inherit;
    position: relative;
}
.monitor-row:hover { background: var(--bg-surface-raised); text-decoration: none; box-shadow: var(--shadow-md); }
.monitor-info { flex: 1; min-width: 0; }
.monitor-name { font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.monitor-url { font-size: .72rem; color: var(--text-tertiary); margin-top: .1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monitor-duration { font-size: .75rem; color: var(--text-tertiary); white-space: nowrap; }
.monitor-interval { font-size: .75rem; color: var(--text-tertiary); white-space: nowrap; display: flex; align-items: center; gap: .3rem; }
.monitor-uptime-col { text-align: right; min-width: 50px; }
.monitor-uptime-pct { font-size: .85rem; font-weight: 700; }
.monitor-uptime-dur { font-size: .68rem; color: var(--text-tertiary); }

/* uptime bar sprites */
.uptime-bar { display: flex; gap: 2px; height: 5px; align-items: flex-end; }
.uptime-bar .bar-segment { width: 5px; border-radius: 50%; min-height: 4px; }
.uptime-bar .bar-segment.up { background: var(--success); height: 100%; }
.uptime-bar .bar-segment.down { background: var(--danger); height: 100%; }
.uptime-bar .bar-segment.unknown { background: var(--text-tertiary); height: 50%; opacity: .3; }

/* three-dot menu */
.monitor-menu-btn {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    border: none; background: transparent; color: var(--text-tertiary);
    border-radius: var(--radius-xs); cursor: pointer; transition: all var(--transition);
    position: relative; flex-shrink: 0;
}
.monitor-menu-btn:hover { background: var(--accent-subtle); color: var(--text-primary); }

.monitor-menu {
    position: absolute; right: 0; top: 100%; margin-top: 4px;
    background: var(--bg-surface-raised); border: 1px solid var(--border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    min-width: 180px; z-index: 50; display: none;
    overflow: hidden;
}
.monitor-menu.open { display: block; }
.monitor-menu a, .monitor-menu button {
    display: flex; align-items: center; gap: .6rem;
    width: 100%; padding: .6rem 1rem; border: none; background: none;
    color: var(--text-primary); font-size: .85rem; font-family: var(--font);
    cursor: pointer; text-decoration: none; text-align: left;
    transition: background var(--transition);
}
.monitor-menu a:hover, .monitor-menu button:hover { background: var(--accent-subtle); text-decoration: none; }
.monitor-menu .menu-danger { color: var(--danger); }
.monitor-menu .menu-danger:hover { background: var(--danger-subtle); }
.monitor-menu svg { width: 16px; height: 16px; flex-shrink: 0; }
.monitor-menu .menu-divider { height: 1px; background: var(--border-subtle); margin: .25rem 0; }

/* ---------- dashboard layout ---------- */
.dashboard-layout { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; }

.stat-panel .stat-panel-header { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-subtle); margin-bottom: 1rem; }
.stat-panel .stat-counts { display: flex; gap: 1.5rem; justify-content: center; margin-top: .5rem; }
.stat-panel .stat-count { text-align: center; }
.stat-panel .stat-count .num { font-size: 1.3rem; font-weight: 700; }
.stat-panel .stat-count .label { font-size: .7rem; color: var(--text-tertiary); }
.stat-panel .stat-monitor-count { font-size: .78rem; color: var(--text-tertiary); text-align: center; margin-top: .5rem; }
.stat-panel .stat-section-title { font-size: .85rem; font-weight: 600; margin-bottom: .75rem; }
.stat-panel .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.stat-panel .stat-item .value { font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.stat-panel .stat-item .label { font-size: .7rem; color: var(--text-tertiary); }

/* ---------- hero cards ---------- */
.hero-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.hero-card .hero-label { font-size: .78rem; color: var(--text-tertiary); margin-bottom: .25rem; }
.hero-card .hero-value { font-size: 1.15rem; font-weight: 700; }
.hero-card .hero-value.up { color: var(--success); }
.hero-card .hero-value.down { color: var(--danger); }
.hero-card .hero-sub { font-size: .78rem; color: var(--text-tertiary); margin-top: .15rem; }

.uptime-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.uptime-card .pct { font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.uptime-card .pct-label { font-size: .78rem; color: var(--text-tertiary); margin-bottom: .25rem; }
.uptime-card .pct-detail { font-size: .75rem; color: var(--text-tertiary); margin-top: .25rem; }

/* ---------- chart ---------- */
.chart-container { background: var(--bg-surface); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-card); }
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.chart-title { font-size: 1rem; font-weight: 600; }
.chart-canvas { width: 100%; height: 200px; }
.latency-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-subtle); }
.latency-stat .stat-value { font-size: 1.2rem; font-weight: 700; }
.latency-stat .stat-label { font-size: .7rem; color: var(--text-tertiary); }

/* ---------- table ---------- */
.table-container { background: var(--bg-surface); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; box-shadow: var(--shadow-card); }
.table-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-subtle); }
.table-title { font-size: 1rem; font-weight: 600; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .65rem 1.25rem; font-size: .85rem; }
th { color: var(--text-tertiary); font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border-subtle); }
td { border-bottom: 1px solid var(--border-subtle); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-surface-raised); }

/* ---------- forms ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.form-hint { font-size: .75rem; color: var(--text-tertiary); margin-top: .2rem; }
.form-input, .form-select {
    width: 100%; padding: .6rem .85rem; background: var(--input-bg);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text-primary); font-family: var(--font); font-size: .9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-select:focus { outline: none; border-color: var(--accent); box-shadow: var(--accent-glow-sm); }
.form-input::placeholder { color: var(--text-tertiary); }

.method-selector { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.method-selector .method-btn { padding: .5rem .85rem; font-size: .82rem; font-weight: 600; font-family: var(--font); border: none; background: var(--bg-inset); color: var(--text-secondary); cursor: pointer; border-right: 1px solid var(--border); transition: all var(--transition); }
.method-selector .method-btn:last-child { border-right: none; }
.method-selector .method-btn:hover { color: var(--text-primary); }
.method-selector .method-btn.active { background: var(--accent); color: #fff; }

.tag-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .5rem; border-radius: var(--radius-xs); font-size: .78rem; font-weight: 500; background: var(--success-subtle); color: var(--success); }
.tag .tag-remove { cursor: pointer; opacity: .6; font-size: .9rem; line-height: 1; }
.tag .tag-remove:hover { opacity: 1; }

.toggle { position: relative; width: 40px; height: 22px; display: inline-block; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider { position: absolute; inset: 0; background: var(--border); border-radius: 11px; cursor: pointer; transition: background var(--transition); }
.toggle .slider::before { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform var(--transition); }
.toggle input:checked + .slider { background: var(--accent); }
.toggle input:checked + .slider::before { transform: translateX(18px); }

.range-input { width: 100%; -webkit-appearance: none; height: 6px; border-radius: 3px; background: var(--border); outline: none; }
.range-input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: var(--accent-glow-sm); }

.kv-rows { display: flex; flex-direction: column; gap: .5rem; }
.kv-row { display: flex; gap: .5rem; align-items: center; }
.kv-row .form-input { flex: 1; }
.kv-row .kv-remove { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--danger-subtle); color: var(--danger); border: none; cursor: pointer; flex-shrink: 0; }

/* ---------- channels ---------- */
.channel-row { display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; background: var(--bg-surface); border-radius: var(--radius-sm); margin-bottom: .5rem; box-shadow: var(--shadow-sm); }
.channel-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.channel-icon.telegram { background: #229ed9; color: #fff; }
.channel-icon.webhook { background: var(--accent-subtle); color: var(--accent); }
.channel-info { flex: 1; }
.channel-name { font-weight: 600; font-size: .9rem; }
.channel-detail { font-size: .78rem; color: var(--text-tertiary); }
.channel-actions { display: flex; align-items: center; gap: .5rem; }

/* ---------- toast ---------- */
.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.toast { background: var(--bg-surface-raised); border-radius: var(--radius-sm); padding: .75rem 1rem; font-size: .85rem; box-shadow: var(--shadow-md); animation: slideIn .2s ease; max-width: 360px; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ---------- modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: var(--bg-overlay); z-index: 1000; display: none; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg-surface); border-radius: var(--radius); padding: 1.5rem; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.modal-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1.25rem; }

/* ---------- loading ---------- */
.spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- filter bar ---------- */
.filter-bar { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.search-input { padding: .5rem .85rem; background: var(--input-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font); font-size: .85rem; width: 260px; }
.search-input:focus { outline: none; border-color: var(--accent); }
.search-input::placeholder { color: var(--text-tertiary); }

/* ---------- settings ---------- */
.settings-layout { display: flex; gap: 2rem; }
.settings-nav { width: 200px; flex-shrink: 0; list-style: none; }
.settings-nav a { display: block; padding: .45rem .75rem; font-size: .85rem; color: var(--text-secondary); border-radius: var(--radius-xs); text-decoration: none; transition: all var(--transition); }
.settings-nav a:hover { color: var(--text-primary); }
.settings-nav a.active { color: var(--accent); font-weight: 600; }
.settings-content { flex: 1; min-width: 0; }

/* ---------- theme toggle ---------- */
.theme-toggle { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-surface); color: var(--text-secondary); cursor: pointer; transition: all var(--transition); margin-left: auto; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 14px; height: 14px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---------- empty state ---------- */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-tertiary); }
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.empty-state .empty-text { font-size: .95rem; margin-bottom: 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .hero-cards { grid-template-columns: 1fr 1fr; }
    .monitor-duration, .monitor-interval { display: none; }
}

@media (max-width: 640px) {
    .sidebar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; height: 56px; flex-direction: row; border-right: none; border-top: 1px solid var(--nav-border); }
    .sidebar-brand, .sidebar-bottom { display: none; }
    .sidebar-nav { display: flex; flex-direction: row; justify-content: space-around; width: 100%; padding: 0; }
    .sidebar-nav a { flex-direction: column; gap: .15rem; font-size: .65rem; padding: .4rem .5rem; }
    .main-content { margin-left: 0; margin-bottom: 56px; }
    .page-content { padding: 1rem; }
    .page-header { flex-direction: column; align-items: flex-start; gap: .75rem; }
    .hero-cards { grid-template-columns: 1fr; }
    .uptime-cards { grid-template-columns: 1fr 1fr; }
    .latency-stats { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .search-input { width: 100%; }
    .monitor-duration, .monitor-interval, .uptime-bar { display: none; }
    .settings-layout { flex-direction: column; }
    .settings-nav { width: 100%; display: flex; gap: .25rem; overflow-x: auto; }
    .method-selector { flex-wrap: wrap; }
}
