/* Serenshield design tokens: the youthful family-safety palette from docs/app_mockup.html.
   Red / green / amber are for SOS / safe / warning status only. */
:root {
  --brand: #7C5CFF;
  --brand-d: #5B3FE6;
  --brand-l: #F3F0FF;
  --brand-soft: #E4DDFF;
  --brand-deep: #3B1FA8;
  --brand-rgb: 124, 92, 255;
  --brand-grad: linear-gradient(135deg, #A78BFF 0%, #7C5CFF 50%, #5B6CFF 100%);
  --ivory: #F8F7FD;
  --paper: #F0EEFB;
  --line: #E7E4F5;
  --card: #FFFFFF;
  --ink: #1A1530;
  --muted: #5B5675;
  --faint: #A19CB8;
  --red: #EF4444;
  --red-d: #B91C1C;
  --red-l: #FFF1F1;
  --green: #10B981;
  --green-l: #E8FBF3;
  --amber: #D97706;
  --amber-l: #FFF8EB;
  --shadow: 0 12px 32px -8px rgba(var(--brand-rgb), .16), 0 1px 3px rgba(26, 21, 48, .05);
  --radius: 20px;
  --font: "Prompt", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
/* the hidden attribute always wins, also over .btn, .card and flex/grid classes */
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.55 var(--font); color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
/* iOS (Safari and the app's WKWebView) zooms the page in when a field under 16px gets focus, and stays zoomed */
@supports (-webkit-touch-callout: none) { input, select, textarea { font-size: max(16px, 1em); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; cursor: pointer;
       border-radius: 999px; padding: .75rem 1.4rem; font-weight: 600; background: var(--brand-grad); color: #fff;
       box-shadow: 0 8px 20px -8px rgba(var(--brand-rgb), .7); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: var(--brand-l); color: var(--brand-d); box-shadow: none; }
.btn.danger { background: #fff; color: var(--red-d); box-shadow: none; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.field { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: .8rem 1rem; background: #fff; color: var(--ink); outline: none; }
.field:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .12); }
