/* YCCAM shared styles — "Darkroom & Marigold".
   Deep aubergine for evening events, projectors and camera work; marigold for anything you press; rose for live / new. */
:root {
  --bg: #221628;          /* aubergine */
  --bg-deep: #1a1020;     /* darker well for nested areas */
  --surface: #2d1f35;     /* cards */
  --surface-2: #3a2944;   /* raised / hover */
  --line: rgba(239, 226, 246, 0.14);
  --line-strong: rgba(239, 226, 246, 0.28);
  --text: #f6eef9;
  --muted: #bba9c8;
  --accent: #f2b33d;      /* marigold */
  --accent-hover: #f7c561;
  --accent-ink: #2a1a05;
  --rose: #f06a8a;
  --good: #7ad9a6;
  --warn: #f2b33d;
  --bad: #ff8fa3;
  --radius: 14px;
  --radius-lg: 22px;
  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 28px 16px 64px; }
.narrow { max-width: 720px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: rgba(239, 226, 246, 0.08); }
.pill.good { color: var(--good); }
.pill.warn { color: var(--warn); }
.pill.bad { color: var(--bad); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text); font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: rgba(239, 226, 246, 0.08); color: var(--text); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn.danger { border-color: rgba(255, 143, 163, 0.55); color: var(--bad); }
.btn.danger:hover { background: rgba(255, 143, 163, 0.1); }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 0.875rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--muted); }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--text); }
label.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
input[type='text'], input[type='email'], input[type='password'], input[type='number'], input[type='search'], input[type='tel'], input[type='url'], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--bg-deep); color: var(--text); font: inherit;
}
input::placeholder, textarea::placeholder { color: #8d7b9a; }
textarea { min-height: 96px; resize: vertical; }
select option { background: var(--bg-deep); color: var(--text); }
input[type='color'] { width: 56px; height: 46px; padding: 3px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg-deep); }
input[type='range'] { accent-color: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000;
  background: var(--surface-2); color: var(--text); padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line-strong);
  box-shadow: 0 12px 36px rgba(10, 4, 14, 0.5); max-width: min(92vw, 520px); text-align: center;
}
.toast.bad { border-color: var(--bad); }
.hidden { display: none !important; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; }
.brand::before { content: ''; margin-right: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(242, 179, 61, 0.22); }
.brand span { color: var(--accent); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 14px max(18px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); background: var(--bg-deep); flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-weight: 500; cursor: pointer; min-height: 40px; }
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab[aria-selected='true'] { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 700; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.stat { font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.legal { max-width: 70ch; }
.legal h2 { margin-top: 1.6em; }
.legal li { margin-bottom: 0.4em; }
footer.site { border-top: 1px solid var(--line); padding: 24px 16px; text-align: center; font-size: 0.875rem; color: var(--muted); }
footer.site a { margin: 0 8px; white-space: nowrap; display: inline-block; color: var(--muted); }
footer.site a:hover { color: var(--text); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
a.tab { text-decoration: none; display: inline-flex; align-items: center; }
.row select, .toolbar-row select { width: auto; }

.install-steps { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; }
[hidden] { display: none !important; }
