/* ConneX Link — UI Stylesheet
   Font: Outfit + DM Mono | Theme: Dark Cyan→Purple */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

:root {
  --bg:        #080b12;
  --bg2:       #0d1120;
  --bg3:       #131929;
  --bg4:       #1a2235;
  --border:    #1e2d45;
  --border2:   #243350;
  --text:      #e8edf8;
  --text-muted:#6b7fa3;
  --text-dim:  #374160;
  --cyan:      #5ef0d8;
  --cyan2:     #3dd6be;
  --purple:    #a855f7;
  --purple2:   #c084fc;
  --gradient:  linear-gradient(135deg, #5ef0d8 0%, #818cf8 50%, #a855f7 100%);
  --gradient2: linear-gradient(90deg, #5ef0d8, #a855f7);
  --red:       #f43f5e;
  --red-dim:   #2d0a14;
  --green:     #5ef0d8;
  --green-dim: #0a2d26;
  --yellow:    #fbbf24;
  --yellow-dim:#2d2008;
  --blue:      #818cf8;
  --blue-dim:  #151a3a;
  --font:      'Outfit', sans-serif;
  --mono:      'DM Mono', monospace;
  --r:         10px;
  --r-sm:      6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(94,240,216,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,240,216,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── App Shell ── */
.app-shell { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* ── Sidebar ── */
.sidebar {
  width: 230px;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100;
}

.sidebar-logo {
  padding: 1.4rem 1.4rem 1rem;
  border-bottom: 1px solid var(--border);
}

.logo-img { height: 36px; width: auto; filter: drop-shadow(0 0 12px rgba(94,240,216,.4)); }
.logo-sub { font-size: .65rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); margin-top: .3rem; display: block; }

.sidebar-nav { padding: 1rem .75rem; flex: 1; display: flex; flex-direction: column; gap: 2px; }

.nav-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .85rem; border-radius: var(--r-sm);
  color: var(--text-muted); text-decoration: none;
  font-size: .88rem; font-weight: 500; transition: all .18s;
}
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: linear-gradient(90deg, rgba(94,240,216,.12), rgba(168,85,247,.08)); color: var(--cyan); border-left: 2px solid var(--cyan); padding-left: calc(.85rem - 2px); }
.nav-icon { font-size: 1rem; width: 1.2rem; text-align: center; }
.nav-divider { height: 1px; background: var(--border); margin: .6rem 0; }
.nav-label-sm { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); padding: .5rem .85rem .25rem; }

.sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.sidebar-user { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--text-muted); font-weight: 500; }
.user-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: pulse 2s infinite; }

@keyframes pulse { 0%,100% { opacity:1; box-shadow:0 0 8px var(--cyan); } 50% { opacity:.5; box-shadow:0 0 3px var(--cyan); } }

.btn-logout { font-size: .75rem; color: var(--text-dim); text-decoration: none; padding: .22rem .6rem; border-radius: var(--r-sm); border: 1px solid var(--border2); transition: all .15s; font-weight: 500; }
.btn-logout:hover { color: var(--red); border-color: var(--red); }

/* ── Main ── */
.main-content { margin-left: 230px; flex: 1; min-height: 100vh; }
.page-inner { max-width: 1140px; padding: 2rem 2.5rem; }

/* ── Page Header ── */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; }
.page-title { font-size: 1.75rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.2; }
.page-subtitle { color: var(--text-muted); font-size: .85rem; display: block; margin-top: .25rem; }

/* ── Stat Grid ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-grid--2 { grid-template-columns: 1fr 1fr; }
.stat-grid--4 { grid-template-columns: repeat(4, 1fr); }

.stat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.2rem 1.3rem;
  position: relative; overflow: hidden; transition: border-color .2s;
}
.stat-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:var(--gradient2); opacity:0; transition:opacity .2s; }
.stat-card:hover::before { opacity:1; }
.stat-card--live { border-color: rgba(94,240,216,.3); background: linear-gradient(135deg, rgba(94,240,216,.05), rgba(168,85,247,.03)); }
.stat-card--live::before { opacity:1; }

/* ISP Cards */
.stat-card--telekom { border-color: rgba(232,0,0,.2); }
.stat-card--telekom::before { background: linear-gradient(90deg, #e80000, #ff6666); opacity:.6; }
.stat-card--vodafone { border-color: rgba(230,0,0,.2); }
.stat-card--vodafone::before { background: linear-gradient(90deg, #e60000, #ff4444); opacity:.6; }
.stat-card--o2 { border-color: rgba(0,112,192,.2); }
.stat-card--o2::before { background: linear-gradient(90deg, #0070c0, #00b4d8); opacity:.6; }
.stat-card--starlink { border-color: rgba(94,240,216,.2); }
.stat-card--starlink::before { background: var(--gradient2); opacity:.6; }

.stat-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: .5rem; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--text); line-height: 1.1; display: flex; align-items: center; gap: .4rem; }
.stat-value--sm { font-size: 1.2rem; }
.stat-sub { font-size: .7rem; color: var(--text-muted); margin-top: .3rem; font-family: var(--mono); }

.progress-bar { height: 3px; background: var(--border); border-radius: 2px; margin-top: .6rem; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gradient2); border-radius: 2px; transition: width .5s ease; }

/* Quality bar for ISP */
.quality-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: .5rem; overflow: hidden; }
.quality-fill { height: 100%; border-radius: 2px; transition: width .5s ease; }
.quality-fill--good { background: var(--cyan); }
.quality-fill--ok { background: var(--yellow); }
.quality-fill--bad { background: var(--red); }

/* ── Live Dot ── */
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: live-pulse 1.2s infinite; flex-shrink: 0; }
@keyframes live-pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.5; transform:scale(.85); } }

.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.status-dot--ok { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.status-dot--err { background: var(--red); box-shadow: 0 0 6px var(--red); }

/* ── Section ── */
.section { margin-bottom: 2.5rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.section-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); }

/* ── Cards ── */
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 1.5rem; margin-bottom: 1rem; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.card-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }

/* ── Data Table ── */
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table thead tr { border-bottom: 1px solid var(--border2); }
.data-table th { text-align: left; padding: .6rem 1rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.data-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: var(--bg3); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.15rem; border-radius: var(--r-sm); font-family: var(--font); font-size: .85rem; font-weight: 600; cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: all .18s; white-space: nowrap; line-height: 1; }
.btn--primary { background: var(--gradient); color: #000; border: none; font-weight: 700; }
.btn--primary:hover { opacity: .88; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(94,240,216,.25); }
.btn--ghost { background: transparent; color: var(--text-muted); border-color: var(--border2); }
.btn--ghost:hover { color: var(--text); border-color: var(--text-muted); background: var(--bg3); }
.btn--warn { background: var(--yellow-dim); color: var(--yellow); border-color: rgba(251,191,36,.3); }
.btn--warn:hover { background: var(--yellow); color: #000; }
.btn--danger { background: var(--red-dim); color: var(--red); border-color: rgba(244,63,94,.3); }
.btn--danger:hover { background: var(--red); color: #fff; }
.btn--sm { padding: .35rem .85rem; font-size: .78rem; }
.btn--xs { padding: .2rem .55rem; font-size: .72rem; }
.btn--full { width: 100%; justify-content: center; }
.btn-group { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; font-family: var(--mono); }
.badge--green  { background: var(--green-dim); color: var(--cyan);   border: 1px solid rgba(94,240,216,.2); }
.badge--red    { background: var(--red-dim);   color: var(--red);    border: 1px solid rgba(244,63,94,.2); }
.badge--gray   { background: var(--bg4);       color: var(--text-muted); border: 1px solid var(--border); }
.badge--blue   { background: var(--blue-dim);  color: var(--blue);   border: 1px solid rgba(129,140,248,.2); }
.badge--purple { background: rgba(168,85,247,.1); color: var(--purple2); border: 1px solid rgba(168,85,247,.2); }
.badge--srtla  { background: linear-gradient(90deg, rgba(94,240,216,.15), rgba(168,85,247,.15)); color: var(--cyan); border: 1px solid rgba(94,240,216,.3); }
.badge--srt    { background: var(--blue-dim);  color: var(--blue);   border: 1px solid rgba(129,140,248,.3); }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.field-hint { font-size: .7rem; color: var(--text-dim); }
.field-input { background: var(--bg); border: 1px solid var(--border2); border-radius: var(--r-sm); padding: .65rem .9rem; color: var(--text); font-family: var(--font); font-size: .88rem; transition: border-color .15s, box-shadow .15s; outline: none; }
.field-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(94,240,216,.08); }
.field-textarea { resize: vertical; min-height: 80px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
.form-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.form-actions { display: flex; gap: .75rem; align-items: center; }
.toggle-label { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .85rem; color: var(--text-muted); font-weight: 500; }

/* ── Copy Row ── */
.key-rows { display: flex; flex-direction: column; gap: .85rem; }
.key-row { display: flex; flex-direction: column; gap: .3rem; }
.key-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.copy-row { display: flex; align-items: center; gap: .5rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); padding: .5rem .75rem; transition: border-color .15s; }
.copy-row:hover { border-color: var(--border2); }
.copy-val { flex: 1; font-family: var(--mono); font-size: .73rem; color: var(--cyan); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.copy-btn { flex-shrink: 0; background: var(--bg3); border: 1px solid var(--border2); border-radius: 4px; color: var(--text-muted); font-size: .7rem; font-weight: 600; cursor: pointer; padding: .25rem .6rem; transition: all .15s; font-family: var(--font); display: flex; align-items: center; gap: .3rem; }
.copy-btn:hover { background: var(--cyan); color: #000; border-color: var(--cyan); }
.copy-btn.copied { background: var(--green-dim); color: var(--cyan); border-color: var(--cyan); }

/* ── Misc ── */
.mono { font-family: var(--mono); font-size: .82em; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }

.stream-list { display: flex; flex-direction: column; gap: 1rem; }
.stream-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 1.1rem 1.2rem; transition: border-color .2s; }
.stream-item:hover { border-color: var(--border2); }
.stream-item-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; }
.stream-item-label { font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: .5rem; }

.noalbs-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .75rem; background: var(--blue-dim); border: 1px solid rgba(129,140,248,.3); border-radius: var(--r-sm); font-size: .7rem; color: var(--blue); font-family: var(--mono); margin-top: .75rem; }

.detail-grid { display: grid; grid-template-columns: 320px 1fr; gap: 1.5rem; align-items: start; }
.detail-col { display: flex; flex-direction: column; gap: 1rem; }

.info-list { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; font-size: .85rem; }
.info-list dt { color: var(--text-muted); font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; padding-top: .1rem; }
.info-list dd { color: var(--text); }

.alert { padding: .75rem 1rem; border-radius: var(--r-sm); font-size: .85rem; margin-bottom: 1.25rem; border: 1px solid; }
.alert--error { background: var(--red-dim); border-color: rgba(244,63,94,.4); color: var(--red); }
.alert--success { background: var(--green-dim); border-color: rgba(94,240,216,.3); color: var(--cyan); }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state--sm { padding: 1.5rem; }
.empty-icon { font-size: 2.5rem; display: block; margin-bottom: .75rem; opacity: .3; }

/* ── ISP Stats Section ── */
.isp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }

.isp-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 1.2rem 1.3rem; position: relative; overflow: hidden; }
.isp-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; opacity:.7; }
.isp-card--telekom::before { background: linear-gradient(90deg, #e80000, #ff6666); }
.isp-card--vodafone::before { background: linear-gradient(90deg, #e60000, #ff4444); }
.isp-card--o2::before { background: linear-gradient(90deg, #0070c0, #00b4d8); }
.isp-card--starlink::before { background: var(--gradient2); }
.isp-card--other::before { background: linear-gradient(90deg, var(--text-dim), var(--border2)); }

.isp-name { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: .5rem; }
.isp-score { font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: .3rem; }
.isp-score--good { color: var(--cyan); }
.isp-score--ok { color: var(--yellow); }
.isp-score--bad { color: var(--red); }
.isp-score--none { color: var(--text-dim); }
.isp-meta { font-size: .68rem; color: var(--text-muted); font-family: var(--mono); display: flex; flex-direction: column; gap: .15rem; margin-top: .4rem; }
.isp-no-data { font-size: .78rem; color: var(--text-dim); margin-top: .3rem; }

/* ── Login ── */
.login-body { background: var(--bg); display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-wrap { width: 100%; max-width: 400px; padding: 2rem; display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.login-logo { height: 48px; filter: drop-shadow(0 0 20px rgba(94,240,216,.5)); }
.login-card { width: 100%; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 2rem; position: relative; overflow: hidden; }
.login-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background: var(--gradient2); }
.login-title { font-size: 1.3rem; font-weight: 800; margin-bottom: .2rem; }
.login-subtitle { color: var(--text-muted); font-size: .82rem; margin-bottom: 1.75rem; }
.login-form { display: flex; flex-direction: column; gap: 1rem; }
.login-link { font-size: .78rem; color: var(--text-dim); text-decoration: none; transition: color .15s; }
.login-link:hover { color: var(--cyan); }

/* ── Portal ── */
.portal-shell { min-height: 100vh; display: flex; flex-direction: column; }
.portal-header { background: var(--bg2); border-bottom: 1px solid var(--border); padding: .9rem 2rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.portal-brand { display: flex; align-items: center; gap: .75rem; }
.portal-logo { height: 28px; filter: drop-shadow(0 0 8px rgba(94,240,216,.3)); }
.portal-title { font-size: .9rem; font-weight: 700; color: var(--text-muted); }
.portal-user { display: flex; align-items: center; gap: 1rem; font-size: .82rem; color: var(--text-muted); }
.portal-main { max-width: 860px; margin: 0 auto; padding: 2rem 1.5rem; width: 100%; }

.stream-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 1.5rem; margin-bottom: 1.25rem; transition: border-color .3s, box-shadow .3s; position: relative; overflow: hidden; }
.stream-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:var(--gradient2); opacity:0; transition:opacity .3s; }
.stream-card--live { border-color: rgba(94,240,216,.25); box-shadow: 0 0 24px rgba(94,240,216,.06); }
.stream-card--live::before { opacity:1; }
.stream-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; gap: 1rem; }
.stream-card-title { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.stream-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--border); flex-wrap: wrap; }

/* ── Toast ── */
#toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--gradient); color: #000; font-weight: 700; font-size: .82rem; padding: .65rem 1.25rem; border-radius: var(--r-sm); opacity: 0; pointer-events: none; transform: translateY(8px); transition: all .25s; z-index: 9999; }
#toast.show { opacity: 1; transform: translateY(0); }

/* ── Animations ── */
@keyframes fadeInUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.fade-in   { animation: fadeInUp .35s ease both; }
.fade-in-2 { animation: fadeInUp .35s ease .1s both; }
.fade-in-3 { animation: fadeInUp .35s ease .2s both; }
.fade-in-4 { animation: fadeInUp .35s ease .3s both; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── Twitch Link ── */
.twitch-link { color: var(--purple2); text-decoration: none; transition: opacity .2s; }
.twitch-link:hover { opacity: .7; }
.text-red { color: var(--red) !important; }

/* ================================================================
   MOBILE / RESPONSIVE
   ================================================================ */

/* Hamburger Button */
.hamburger {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  padding: .5rem .65rem;
  cursor: pointer;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 99;
}

@media (max-width: 768px) {
  /* Hamburger anzeigen */
  .hamburger { display: flex; align-items: center; justify-content: center; }

  /* Sidebar versteckt by default */
  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 150;
  }

  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }

  /* Main content voll breit */
  .main-content { margin-left: 0; }

  .page-inner { padding: 1rem 1rem 1rem 1rem; margin-top: 3.5rem; }

  /* Stat grid: 2 Spalten auf Mobile */
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .isp-dash-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Page header stack */
  .page-header { flex-direction: column; gap: .75rem; margin-bottom: 1.25rem; }
  .page-title { font-size: 1.35rem; }

  /* Detail grid: single column */
  .detail-grid { grid-template-columns: 1fr; }

  /* Form grid: single column */
  .form-grid { grid-template-columns: 1fr; }
  .form-grid--3 { grid-template-columns: 1fr; }

  /* Data table: scrollable */
  .data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 500px; }

  /* Copy row: wrap */
  .copy-row { flex-wrap: wrap; }
  .copy-val { font-size: .68rem; }

  /* Btn group wrap */
  .btn-group { flex-wrap: wrap; }

  /* Stat value smaller */
  .stat-value { font-size: 1.4rem; }

  /* Toast bottom */
  #toast { bottom: 1rem; right: 1rem; left: 1rem; text-align: center; }

  /* Portal header */
  .portal-header { padding: .75rem 1rem; }
  .portal-main { padding: 1rem; }
}

@media (max-width: 400px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 1.2rem; }
}
