/* ============================================================
   DataSvod - общая "оболочка" внутренних страниц приложения.
   Базовый сброс, body, шапка и модалка входа - одинаковые на всех
   внутренних страницах за логином. Подключается ПОСЛЕ app.css
   (токены) и ДО локального <style> страницы, чтобы страница могла
   при необходимости что-то переопределить.

   Используется на: account, admin, builder, channels, data,
   insights, integrations, quality.
   Публичные (landing, why) и страницы со своим оформлением
   (dashboard, docs, variables, 404) сюда НЕ подключены - у них
   своя шапка/оформление.
   ============================================================ */

* { margin:0; padding:0; box-sizing:border-box; }

body { font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Inter,sans-serif;
  background:var(--bg); color:var(--text); line-height:1.5; min-height:100vh; }

/* ===== Шапка ===== */
.app-header { background:var(--surface); border-bottom:1px solid var(--border);
  padding:16px 24px; display:flex; justify-content:space-between; align-items:center;
  position:sticky; top:0; z-index:100; }
.header-controls { display:flex; gap:12px; align-items:center; }
.theme-toggle { width:40px; height:40px; border-radius:50%; border:1px solid var(--border);
  background:var(--surface2); cursor:pointer; font-size:18px; }

/* ===== Модалка входа ===== */
.login-overlay { position:fixed; inset:0; background:var(--bg); display:flex; align-items:center; justify-content:center; z-index:1000; }
.login-box { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:40px; width:100%; max-width:400px; box-shadow:var(--shadow-lg); }
.login-box h2 { font-size:24px; margin-bottom:24px; text-align:center;
  background:var(--gradient-hero); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.login-box input { width:100%; padding:12px 16px; border:1px solid var(--border); border-radius:8px;
  background:var(--surface2); color:var(--text); font-size:14px; margin-bottom:12px; }
.login-box button { width:100%; padding:12px; background:var(--gradient-hero); border:none;
  border-radius:8px; color:#fff; font-size:15px; font-weight:600; cursor:pointer; }
.login-error { color:var(--decline); font-size:13px; margin-top:8px; text-align:center; }
