:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eef4ff;
  background: #070b14;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at top left, #17345f 0, transparent 34%), #070b14; }
button, input, textarea { font: inherit; }
button { cursor: pointer; border: 0; border-radius: 14px; padding: 11px 14px; color: #eef4ff; background: rgba(255,255,255,.09); }
button:hover { background: rgba(255,255,255,.14); }
button.primary, .primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 12px 16px; color: white; text-decoration: none; background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
input, textarea { width: 100%; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px; color: #eef4ff; background: rgba(255,255,255,.06); outline: none; }
textarea { min-height: 92px; resize: vertical; }
label { display: grid; gap: 8px; color: #aebbd1; font-size: 13px; }

.app-shell { width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 48px; }
.facebook-agent-shell { display: grid; gap: 18px; }
.hero-card { border: 1px solid rgba(255,255,255,.12); border-radius: 28px; padding: clamp(24px, 5vw, 48px); background: linear-gradient(145deg, rgba(28,43,76,.88), rgba(11,17,30,.92)); box-shadow: 0 20px 80px rgba(0,0,0,.35); }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; color: #93c5fd; font-weight: 800; }
h1 { max-width: 760px; margin: 18px 0 12px; font-size: clamp(34px, 6vw, 72px); line-height: .95; letter-spacing: -.05em; }
p { max-width: 760px; color: #aebbd1; font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.status-grid, .fb-agent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fb-agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fb-card { border: 1px solid rgba(255,255,255,.11); border-radius: 22px; padding: 18px; background: rgba(12,18,32,.78); box-shadow: 0 16px 50px rgba(0,0,0,.22); }
.fb-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 16px; }
.fb-card b { display: block; overflow-wrap: anywhere; }
.fb-card span, .fb-card em { color: #9aa8bd; font-style: normal; font-size: 13px; }
.fb-card.wide { grid-column: 1 / -1; }
.settings-grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.compact-grid { margin-bottom: 12px; }
.fb-switches { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.fb-switches label { display: flex; align-items: center; gap: 8px; width: auto; color: #d6e1f5; }
.fb-switches input { width: auto; }
.json-box { max-height: 280px; overflow: auto; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 12px; color: #d6e1f5; background: rgba(0,0,0,.25); white-space: pre-wrap; }
.mini-list, .event-table { display: grid; gap: 10px; margin-top: 12px; }
.mini-list > div, .event-table > div { display: grid; gap: 4px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 10px; background: rgba(255,255,255,.04); }
.event-table > div { grid-template-columns: 120px 90px 1fr; align-items: center; }
.fc-center-notice { border-radius: 16px; padding: 12px 14px; background: rgba(59,130,246,.16); color: #bfdbfe; border: 1px solid rgba(59,130,246,.35); }
.fc-center-notice.error { background: rgba(239,68,68,.15); color: #fecaca; border-color: rgba(239,68,68,.35); }
.modal-backdrop { position: static; padding: 0; background: transparent; }
.settings-modal { width: 100%; max-width: none; border: 0; background: transparent; box-shadow: none; }
.fc-center-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fc-center-head b { display: flex; align-items: center; gap: 8px; font-size: 22px; }
.fc-center-head span { display: block; color: #aebbd1; margin-top: 4px; }
.fc-center-head button { display: none; }

@media (max-width: 920px) {
  .status-grid, .fb-agent-grid { grid-template-columns: 1fr; }
  .settings-grid.two { grid-template-columns: 1fr; }
  .event-table > div { grid-template-columns: 1fr; }
}
