/* Fusion Limited Design System v1.0 — en-IN · corporate SaaS
   Apply on public + admin. Tokens only; does not remove brand identity. */
:root {
  --fl-bg: #f8fafc;
  --fl-surface: #ffffff;
  --fl-border: #e2e8f0;
  --fl-border-strong: #d1d5db;
  --fl-text: #0f172a;
  --fl-text-secondary: #334155;
  --fl-muted: #64748b;
  --fl-primary: #2563eb;
  --fl-primary-hover: #1d4ed8;
  --fl-ok-bg: #ecfdf5;
  --fl-ok-border: #a7f3d0;
  --fl-ok-text: #065f46;
  --fl-warn-bg: #fffbeb;
  --fl-warn-border: #fde68a;
  --fl-warn-text: #92400e;
  --fl-err-bg: #fef2f2;
  --fl-err-border: #fecaca;
  --fl-err-text: #991b1b;
  --fl-radius: 10px;
  --fl-radius-sm: 8px;
  --fl-input-h: 36px;
  --fl-space-1: 8px;
  --fl-space-2: 16px;
  --fl-space-3: 24px;
  --fl-space-4: 32px;
  --fl-max-form: 720px;
  --fl-max-content: 1100px;
  --fl-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Forms — global normalization where .fl-ds is applied or body.fl-ds */
.fl-ds, .fl-ds * { box-sizing: border-box; }
body.fl-ds {
  font-family: var(--fl-font);
  color: var(--fl-text);
  background: var(--fl-bg);
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.fl-ds input[type="text"],
.fl-ds input[type="email"],
.fl-ds input[type="password"],
.fl-ds input[type="tel"],
.fl-ds input[type="number"],
.fl-ds input[type="url"],
.fl-ds input[type="search"],
.fl-ds input[type="date"],
.fl-ds select,
.fl-ds textarea,
body.fl-ds .form-control {
  height: var(--fl-input-h);
  padding: 8px 12px;
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-sm);
  font-size: 14px;
  color: var(--fl-text);
  background: var(--fl-surface);
  font-family: var(--fl-font);
  max-width: 100%;
}
body.fl-ds textarea,
.fl-ds textarea { height: auto; min-height: 96px; }

body.fl-ds input:focus,
body.fl-ds select:focus,
body.fl-ds textarea:focus,
.fl-ds input:focus,
.fl-ds select:focus,
.fl-ds textarea:focus {
  outline: none;
  border-color: var(--fl-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.fl-ds .fl-label,
body.fl-ds label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--fl-text-secondary);
  margin-bottom: 6px;
}
.fl-ds .fl-help { font-size: 12px; color: var(--fl-muted); margin-top: 6px; }

.fl-ds .fl-btn,
body.fl-ds .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--fl-radius-sm);
  border: 1px solid var(--fl-border);
  background: var(--fl-surface);
  color: var(--fl-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--fl-font);
}
.fl-ds .fl-btn-primary,
body.fl-ds .btn-primary {
  background: var(--fl-primary);
  border-color: var(--fl-primary);
  color: #fff;
}
.fl-ds .fl-btn-primary:hover,
body.fl-ds .btn-primary:hover {
  background: var(--fl-primary-hover);
  color: #fff;
}

/* Media frames */
.fl-preview {
  background: #f8fafc;
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fl-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.fl-preview.cover img { object-fit: cover; }
.fl-preview-16x9 { aspect-ratio: 16 / 9; max-width: 320px; }
.fl-preview-1x1 { aspect-ratio: 1 / 1; max-width: 160px; }

/* Compliance footer band */
.fl-legal-band {
  background: #0f172a;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.55;
  padding: 24px 16px;
  font-family: var(--fl-font);
}
.fl-legal-band a { color: #cbd5e1; text-decoration: underline; }
.fl-legal-band strong { color: #e2e8f0; font-weight: 600; }
.fl-legal-inner {
  max-width: var(--fl-max-content);
  margin: 0 auto;
  display: grid;
  gap: 8px;
}
