:root {
  --bg: #0a0a0f;
  --card: #14141c;
  --card-border: #23232e;
  --text: #f0f0f5;
  --muted: #8a8a9a;
  --accent: #7c6cf0;
  --green: #34d399;
  --red: #f87171;
  --yellow: #fbbf24;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  position: sticky; top: 0; z-index: 10;
  background: rgba(10,10,15,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { font-size: 26px; color: var(--accent); }
.brand h1 { font-size: 17px; font-weight: 700; }
.brand .sub { font-size: 11px; color: var(--muted); }
.icon-btn {
  background: var(--card); border: 1px solid var(--card-border);
  color: var(--text); font-size: 18px; width: 38px; height: 38px;
  border-radius: 12px; cursor: pointer;
}
main { padding: 16px; max-width: 640px; margin: 0 auto; }
.view { display: none; }
.view.active { display: block; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 10px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 14px;
}
.stat-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.stat-value { font-size: 22px; font-weight: 700; }
.card-list { display: flex; flex-direction: column; gap: 10px; }
.biz-card, .row-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 14px;
}
.biz-card { cursor: pointer; }
.biz-card:active { transform: scale(.985); }
.biz-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.biz-name { font-size: 16px; font-weight: 700; }
.biz-desc { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.pill { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.pill.live { background: rgba(52,211,153,.15); color: var(--green); }
.pill.paused { background: rgba(251,191,36,.15); color: var(--yellow); }
.pill.build { background: rgba(124,108,240,.15); color: var(--accent); }
.pill.fail { background: rgba(248,113,113,.15); color: var(--red); }
.biz-metrics { display: flex; gap: 16px; font-size: 13px; }
.biz-metrics b { color: var(--text); }
.biz-metrics span { color: var(--muted); display: block; font-size: 11px; }
.row-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.row-title { font-size: 14px; font-weight: 600; }
.row-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.approve-actions { display: flex; gap: 8px; }
.btn {
  border: none; border-radius: 10px; padding: 8px 14px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.btn.yes { background: var(--green); color: #06281c; }
.btn.no { background: var(--card-border); color: var(--text); }
.back-btn {
  background: none; border: none; color: var(--accent);
  font-size: 14px; margin-bottom: 12px; cursor: pointer;
}
.detail-hero { margin-bottom: 16px; }
.detail-hero h2 { font-size: 22px; margin-bottom: 4px; }
.detail-hero p { color: var(--muted); font-size: 14px; }
.kv { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--card-border); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); }
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex; background: rgba(10,10,15,.95); backdrop-filter: blur(12px);
  border-top: 1px solid var(--card-border);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  flex: 1; background: none; border: none; color: var(--muted);
  font-size: 11px; padding: 10px 0 8px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.tab span { font-size: 20px; }
.tab.active { color: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 24px; font-size: 14px; }
.top-actions { display: flex; gap: 8px; }
.notif-panel {
  position: fixed; top: calc(60px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 50;
  background: var(--card); border: 1px solid var(--card-border); border-radius: 16px;
  padding: 18px; max-width: 480px; margin: 0 auto;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.notif-panel.hidden { display: none; }
.notif-panel h3 { font-size: 16px; margin-bottom: 6px; }
.notif-status { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.notif-prefs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.notif-prefs label { font-size: 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.notif-prefs input { width: 18px; height: 18px; accent-color: var(--accent); }
.notif-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.add-reminder { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.add-reminder input {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 10px;
  color: var(--text); padding: 10px; font-size: 14px; min-width: 0;
}
.add-reminder input[type="text"] { flex: 2 1 160px; }
.add-reminder input[type="datetime-local"] { flex: 1 1 130px; color-scheme: dark; }
.reminder-done { opacity: .45; text-decoration: line-through; }
.reminder-check {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--card-border); background: none; cursor: pointer;
  color: var(--green); font-size: 14px; line-height: 1;
}
.reminder-delete {
  background: none; border: none; color: var(--muted); font-size: 16px; cursor: pointer; padding: 4px;
}
