:root {
  --bg-page: #f6f7fb;
  --bg-card: #ffffff;
  --bg-muted: #f1f3f9;
  --bg-subtle: #fafbfd;

  --border: #e3e6ec;
  --border-strong: #cdd2dc;

  --text: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --accent-text: #ffffff;

  --success: #16a34a;
  --success-soft: #dcfce7;
  --warn: #ca8a04;
  --warn-soft: #fef9c3;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --info: #0284c7;
  --info-soft: #e0f2fe;

  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, .08), 0 4px 10px rgba(15, 23, 42, .04);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre { font-family: var(--font-mono); }

.app-shell { max-width: 1240px; margin: 0 auto; padding: 24px 28px 48px; }

.app-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.app-header .brand { display: flex; align-items: center; gap: 12px; }
.app-header .brand .logo {
  width: 32px; height: 32px;
  background: var(--accent); color: #fff;
  border-radius: 8px; display: grid; place-items: center; font-weight: 700;
}
.app-header h1 { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.app-header .subtitle { font-size: 12px; color: var(--text-muted); margin: 0; }

.user-block { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.user-block .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 600;
}
.user-block .email { color: var(--text); font-weight: 500; }

.btn-ghost {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  padding: 6px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }
