/* Lägerappen – Svenska kyrkans grafiska profil (grunden kommer från Taizé-appen)
   Typsnitt: DM Sans (huvudtypsnitt) + Spectral Italic (betoning)
   Färger: beige grund, svart text, vinröd/rosa/orange/guld (varma skalan – grönt och lila blandas inte in) */

@font-face { font-family: 'DM Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/dm-sans/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/dm-sans/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/dm-sans/dm-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-weight: 400; font-style: italic; font-display: swap; src: url('/fonts/spectral/spectral-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/dm-sans/dm-sans-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-024F; }

:root {
  --beige: #FFEBE1;
  --beige-2: #FFF5F0;      /* ljusare ton av beige för kort */
  --beige-3: #F7DCCF;      /* mörkare ton av beige för linjer */
  --svart: #000000;
  --text-2: #4a3a3f;
  --vinrod: #7D0037;
  --vinrod-2: #5e0029;
  --rosa: #FFC3AA;
  --orange: #FF785A;
  --guld: #BC8E4C;
  --radius: 18px;
  --gap: 16px;
  --nav-h: 68px;
  --sans: 'DM Sans', Arial, sans-serif;
  --serif: 'Spectral', 'Times New Roman', serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--beige); color: var(--svart);
  font-family: var(--sans); font-size: 16px; line-height: 1.2;
  -webkit-font-smoothing: antialiased; min-height: 100dvh;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--vinrod); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
h1, h2, h3 { font-weight: 500; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 34px; line-height: 0.98; }
h2 { font-size: 24px; line-height: 1.0; }
h3 { font-size: 18px; line-height: 1.1; }
p { line-height: 1.2; margin: 0; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------ Ram */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  background: var(--beige); border-bottom: 1px solid transparent;
}
.topbar.scrolled { border-bottom-color: var(--beige-3); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 40px; text-decoration: none; color: inherit; }
.brand img { height: 34px; width: auto; display: block; }
.brand .parish { font-weight: 500; font-size: 16px; }
.brand .sep { width: 1px; height: 22px; background: var(--svart); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--rosa); color: var(--vinrod); font-weight: 700; font-size: 15px;
  display: grid; place-items: center;
}

main { max-width: 760px; margin: 0 auto; padding: 8px 16px calc(var(--nav-h) + 32px + var(--safe-b)); }
.page-head { padding: 12px 0 20px; }
.page-head p { margin-top: 10px; }

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center;
  background: var(--svart); padding-bottom: var(--safe-b);
}
.bottomnav .inner { display: flex; width: 100%; max-width: 560px; }
.bottomnav a {
  flex: 1; height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: #cdb9b0; text-decoration: none; font-size: 12px; font-weight: 500; position: relative;
}
.bottomnav a svg { width: 24px; height: 24px; }
.bottomnav a.active { color: var(--beige); }
.bottomnav a.active::before {
  content: ''; position: absolute; top: 0; left: 50%; width: 28px; height: 14px; transform: translateX(-50%);
  background: var(--rosa); border-radius: 0 0 14px 14px;
}
.bottomnav .badge { position: absolute; top: 8px; right: calc(50% - 22px); }

@media (min-width: 900px) {
  .bottomnav { top: auto; }
}

/* ------------------------------------------------ Hjälte (layoutsystem: kvadrat + kvartscirkel) */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--vinrod); color: var(--beige); padding: 22px 20px 20px;
  margin-bottom: 20px;
}
.hero::after {
  content: ''; position: absolute; right: -1px; top: -1px; width: 96px; height: 96px;
  background: var(--rosa); border-bottom-left-radius: 96px;
}
.hero .kicker { font-size: 14px; color: var(--rosa); margin-bottom: 8px; position: relative; z-index: 1; max-width: calc(100% - 100px); }
.hero h1 { position: relative; z-index: 1; max-width: calc(100% - 70px); }
.hero h1 .serif { display: block; color: var(--rosa); }

.progress { margin-top: 22px; }
.slots { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 8px; }
.slot {
  aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center;
  border: 2px dashed rgba(255, 235, 225, .55); color: rgba(255, 235, 225, .7);
  font-weight: 500; font-size: 15px; min-width: 0;
}
.slot svg { width: 46%; height: 46%; }
.slot.done { background: var(--beige); border: 2px solid var(--beige); color: var(--vinrod); }
.slot.booked { background: var(--rosa); border: 2px solid var(--rosa); color: var(--vinrod); }
.slot.done:nth-child(odd) { border-top-right-radius: 50%; }
.slot.booked:nth-child(odd) { border-top-right-radius: 50%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend .l-done { background: var(--beige); }
.legend .l-booked { background: var(--rosa); }
.legend .l-missing { border: 2px dashed rgba(255, 235, 225, .7); }
.status-line { margin-top: 16px; font-size: 17px; line-height: 1.2; }
.status-line strong { font-weight: 700; }

/* ------------------------------------------------ Sektioner och kort */
.section { margin: 28px 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section h2 { font-size: 22px; }
.section a { font-weight: 500; font-size: 15px; text-decoration: none; }

.list { display: grid; gap: 10px; }
.card {
  background: var(--beige-2); border-radius: var(--radius); padding: 14px;
  display: flex; gap: 14px; align-items: flex-start; position: relative;
  border: 1px solid var(--beige-3);
}
.card.tap { cursor: pointer; transition: transform .08s ease; }
.card.tap:active { transform: scale(.99); }
.card .body { flex: 1; min-width: 0; }
.card h3 { margin-bottom: 4px; overflow-wrap: anywhere; }
.card .meta { color: var(--text-2); font-size: 14px; line-height: 1.3; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.card .meta svg { width: 14px; height: 14px; flex: none; }
.card.mine { background: var(--rosa); border-color: var(--rosa); }
.card.mine .meta { color: #3d1b22; }
.card.past { opacity: .65; }
.card.empty { justify-content: center; text-align: center; color: var(--text-2); padding: 22px; background: transparent; border-style: dashed; }

.datebox {
  flex: none; width: 54px; height: 58px; border-radius: 12px 12px 12px 12px; background: var(--beige);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  border: 1px solid var(--beige-3);
}
.datebox b { font-size: 22px; font-weight: 500; }
.datebox small { font-size: 12px; margin-top: 3px; color: var(--text-2); }
.card.mine .datebox { background: var(--vinrod); border-color: var(--vinrod); color: var(--beige); border-top-right-radius: 28px; }
.card.mine .datebox small { color: var(--rosa); }
.event-card .datebox { background: var(--svart); color: var(--beige); border-color: var(--svart); border-bottom-left-radius: 28px; }
.event-card .datebox small { color: var(--rosa); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 500; background: var(--beige); border: 1px solid var(--beige-3); white-space: nowrap;
}
.chip.full { background: var(--svart); color: var(--beige); border-color: var(--svart); }
.chip.few { background: var(--orange); border-color: var(--orange); color: var(--svart); }
.chip.ok { background: var(--vinrod); color: var(--beige); border-color: var(--vinrod); }
.chip.gold { background: var(--guld); color: var(--svart); border-color: var(--guld); }
.chip.pending { background: var(--orange); border-color: var(--orange); }

.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--orange); color: var(--svart);
  font-size: 12px; font-weight: 700; display: inline-grid; place-items: center;
}

.day-label { font-size: 15px; font-weight: 500; margin: 22px 0 8px; color: var(--text-2); }
.day-label:first-child { margin-top: 4px; }
.day-label::first-letter { text-transform: uppercase; }

/* ------------------------------------------------ Knappar & formulär */
.btn {
  appearance: none; border: 2px solid var(--vinrod); background: var(--vinrod); color: var(--beige);
  border-radius: 999px; padding: 12px 20px; font-weight: 500; font-size: 16px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--vinrod-2); border-color: var(--vinrod-2); }
.btn svg { width: 18px; height: 18px; }
.btn.secondary { background: transparent; color: var(--vinrod); }
.btn.secondary:hover { background: rgba(125, 0, 55, .06); }
.btn.dark { background: var(--svart); border-color: var(--svart); }
.btn.danger { background: transparent; color: #a3001f; border-color: #a3001f; }
.btn.small { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn-row .btn { flex: 1 1 140px; }
.icon-btn {
  border: 0; background: transparent; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none;
}
.icon-btn:hover { background: rgba(0,0,0,.05); }
.icon-btn svg { width: 22px; height: 22px; }
.fab {
  position: fixed; right: 16px; bottom: calc(var(--nav-h) + 16px + var(--safe-b)); z-index: 25;
  box-shadow: 0 6px 18px rgba(125, 0, 55, .3);
}
@media (min-width: 800px) { .fab { right: calc(50% - 360px); } }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 500; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--text-2); }
.input, .field input, .field select, .field textarea {
  width: 100%; border: 2px solid var(--beige-3); background: #fff; border-radius: 12px;
  padding: 12px 14px; font-size: 16px; min-height: 48px; outline: none;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.3; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--vinrod); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 420px) { .grid-2.stack { grid-template-columns: 1fr; } }
.error { background: #ffe1d9; border-left: 4px solid var(--orange); padding: 10px 12px; border-radius: 8px; font-size: 15px; margin-bottom: 14px; }

/* Segmenterad kontroll */
.seg { display: flex; background: var(--beige-3); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: 1; border: 0; background: transparent; padding: 10px 14px; border-radius: 999px; font-weight: 500; cursor: pointer; white-space: nowrap; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.seg button.active { background: var(--svart); color: var(--beige); }

/* ------------------------------------------------ Inloggning */
.auth { min-height: 100dvh; display: flex; flex-direction: column; }
.auth-top {
  position: relative; background: var(--vinrod); color: var(--beige); padding: 28px 20px 36px; overflow: hidden;
  padding-top: max(28px, env(safe-area-inset-top));
}
.auth-top::before {
  content: ''; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--rosa);
}
.auth-top::after {
  content: ''; position: absolute; right: 80px; bottom: -1px; width: 60px; height: 60px; background: var(--orange); border-top-left-radius: 60px;
}
.auth-top .brand { color: var(--beige); margin-bottom: 40px; position: relative; z-index: 1; }
.auth-top .brand .sep { background: var(--beige); }
.auth-top h1 { font-size: 42px; position: relative; z-index: 1; max-width: 300px; }
.auth-top h1 .serif { display: block; color: var(--rosa); }
.auth-body { padding: 24px 20px 40px; max-width: 480px; width: 100%; margin: 0 auto; }
.auth-body .switch { text-align: center; margin-top: 18px; font-size: 15px; }
.auth-body .switch button { border: 0; background: none; color: var(--vinrod); font-weight: 500; text-decoration: underline; cursor: pointer; padding: 4px; }
@media (min-width: 800px) {
  .auth { flex-direction: row; }
  .auth-top { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; }
  .auth-top h1 { font-size: 56px; max-width: 420px; }
  .auth-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px; }
}

.waiting { text-align: left; }
.waiting .shape { width: 72px; height: 72px; background: var(--rosa); border-top-right-radius: 72px; margin-bottom: 20px; }

/* ------------------------------------------------ Bottenark / dialog */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(40, 0, 18, .45); z-index: 50; display: flex; align-items: flex-end; justify-content: center;
  animation: fade .15s ease;
}
.sheet {
  background: var(--beige); width: 100%; max-width: 620px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 24px 24px 0 0; padding: 8px 20px calc(24px + var(--safe-b));
  animation: up .2s ease;
}
@media (min-width: 700px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 24px; max-height: 86dvh; }
}
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--beige-3); margin: 4px auto 12px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-head h2 { padding-top: 8px; overflow-wrap: anywhere; }
.sheet .desc { white-space: pre-wrap; line-height: 1.3; margin: 12px 0; }
.info-rows { display: grid; gap: 10px; margin: 14px 0; }
.info-row { display: flex; gap: 10px; align-items: flex-start; line-height: 1.3; }
.info-row svg { width: 20px; height: 20px; flex: none; color: var(--vinrod); margin-top: 1px; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.cal-options { display: grid; gap: 10px; }
.cal-options a { justify-content: flex-start; }

/* ------------------------------------------------ Toast */
.toast {
  position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top, 0px)); transform: translateX(-50%);
  background: var(--svart); color: var(--beige); padding: 12px 18px; border-radius: 14px; z-index: 60; font-weight: 500;
  max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0,0,0,.25); animation: up .2s ease;
}
.toast.err { background: var(--orange); color: var(--svart); }

/* ------------------------------------------------ Filer */
.file-icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--guld); color: var(--svart);
  display: grid; place-items: center; font-weight: 700; font-size: 12px; border-top-right-radius: 24px;
}

/* ------------------------------------------------ Ledare */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.stat {
  background: var(--beige-2); border: 1px solid var(--beige-3); border-radius: var(--radius); padding: 14px 12px;
}
.stat b { display: block; font-size: 28px; font-weight: 500; line-height: 1; }
.stat span { font-size: 13px; color: var(--text-2); display: block; margin-top: 6px; line-height: 1.2; }
.stat.accent { background: var(--vinrod); color: var(--beige); border-color: var(--vinrod); }
.stat.accent span { color: var(--rosa); }

.person { align-items: center; }
.person .initials {
  flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--beige); border: 1px solid var(--beige-3);
  display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--vinrod);
}
.mini-slots { display: flex; gap: 4px; margin-top: 6px; }
.mini-slots i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px dashed #b49a8f; display: block; }
.mini-slots i.done { background: var(--vinrod); border: 1.5px solid var(--vinrod); }
.mini-slots i.booked { background: var(--rosa); border: 1.5px solid var(--orange); }
.count { font-weight: 500; font-size: 15px; white-space: nowrap; text-align: right; }
.count small { display: block; color: var(--text-2); font-weight: 400; font-size: 12px; margin-top: 2px; }

.attend { display: flex; gap: 6px; }
.attend button {
  border: 2px solid var(--beige-3); background: #fff; border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.attend button.on-yes { background: var(--vinrod); border-color: var(--vinrod); color: var(--beige); }
.attend button.on-no { background: var(--orange); border-color: var(--orange); }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.divider { height: 1px; background: var(--beige-3); margin: 18px 0; }
.search { margin-bottom: 12px; }
.note { background: var(--beige-2); border: 1px solid var(--beige-3); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.3; }
.copybox { display: flex; gap: 8px; }
.copybox input { flex: 1; min-width: 0; font-size: 13px; }

.logo-preview { background: #fff; border: 1px solid var(--beige-3); border-radius: 12px; padding: 14px; display: flex; align-items: center; min-height: 64px; }
.logo-preview img { max-height: 44px; max-width: 100%; }

.spinner { width: 28px; height: 28px; border: 3px solid var(--beige-3); border-top-color: var(--vinrod); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.btn-row .btn.small { flex: 0 0 auto; }

/* Passformulär */
.time-range { display: flex; align-items: center; gap: 10px; }
.time-range input { flex: 1; min-width: 0; }
.time-range span { font-weight: 500; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper input { width: 96px; text-align: center; font-size: 20px; font-weight: 500; }
.stepper .icon-btn { width: 48px; height: 48px; border: 2px solid var(--vinrod); color: var(--vinrod); font-size: 24px; line-height: 1; background: transparent; }
.seg.seg-wrap { flex-wrap: wrap; border-radius: 18px; margin-bottom: 10px; }
.seg.seg-wrap button { flex: 1 1 40%; }
.radio { display: flex; align-items: center; gap: 10px; font-size: 16px; padding: 10px 12px; background: #fff; border: 2px solid var(--beige-3); border-radius: 12px; cursor: pointer; }
.field .radio input { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--vinrod); margin: 0; }
.section .chip { align-self: center; }

/* Tips: lägg appen på hemskärmen */
.install-card { display: flex; gap: 14px; align-items: flex-start; background: var(--beige-2); border: 2px dashed var(--guld); border-radius: var(--radius); padding: 14px; margin-bottom: 20px; }
.install-card img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.install-card .body { flex: 1; min-width: 0; }
.install-card h3 { margin-bottom: 6px; }
.install-card p { line-height: 1.35; font-size: 15px; }
.install-card .btn { margin-top: 10px; }
.install-card .icon-btn { margin: -8px -8px 0 0; }

/* Notiser */
.push-card { border-color: var(--vinrod); }
.push-card .bell { width: 48px; height: 48px; border-radius: 12px; border-top-right-radius: 24px; background: var(--vinrod); color: var(--beige); display: grid; place-items: center; flex: none; }
.push-card .bell svg { width: 26px; height: 26px; }
.radio input[type=checkbox] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--vinrod); margin: 0; flex: none; }
.leader-chips { margin-top: 2px; }
.leader-chips .chip { cursor: pointer; font-size: 14px; padding: 7px 12px; }

/* För sent att avboka */
.late-box { flex-basis: 100%; background: var(--rosa); border-radius: var(--radius); border-top-left-radius: 4px; padding: 16px; }
.late-box h3 { margin-bottom: 6px; }
.late-box p { line-height: 1.35; }
.late-box a:not(.btn) { color: var(--vinrod); font-weight: 700; white-space: nowrap; }
.late-box .btn-row { margin-top: 12px; }
.late-box .btn.secondary { background: var(--beige); }

/* Öppen registrering */
.reg-card { background: var(--beige-2); border: 2px solid var(--beige-3); border-radius: var(--radius); padding: 16px; }
.reg-card.open { border-color: var(--vinrod); background: var(--rosa); }
.reg-card p { line-height: 1.35; margin-top: 8px; }
.reg-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.reg-options .btn { width: 100%; }
.reg-banner { display: block; background: var(--rosa); color: var(--svart); text-decoration: none; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 15px; line-height: 1.3; font-weight: 500; }

/* Träfftyper */
.event-card.kind-annat .datebox { background: var(--beige); color: var(--svart); border: 2px dashed var(--text-2); border-radius: 12px; }
.event-card.kind-annat .datebox small { color: var(--text-2); }
.event-card.kind-annat { background: transparent; }
.event-card.kind-resa .datebox { background: var(--guld); border-color: var(--guld); color: var(--svart); border-radius: 12px 28px 12px 12px; }
.event-card.kind-resa .datebox small { color: var(--svart); }
.event-card.kind-resa { border-color: var(--guld); }

/* Lediga platser */
.open-box { margin-top: 16px; background: var(--rosa); border-radius: var(--radius); padding: 14px; }
.open-box p { line-height: 1.35; margin-bottom: 10px; }

/* Obligatorisk träff */
.chip.must { background: var(--orange); border-color: var(--orange); color: var(--svart); font-weight: 700; }
.must-note { border-left: 4px solid var(--orange); }

/* Ledarens startsida */
.leader-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.leader-stats div { background: rgba(255, 235, 225, .12); border-radius: 12px; padding: 12px 10px; }
.leader-stats div.warn { background: var(--rosa); color: var(--vinrod); }
.leader-stats b { display: block; font-size: 28px; font-weight: 500; line-height: 1; }
.leader-stats span { display: block; font-size: 13px; margin-top: 6px; line-height: 1.2; }
.card.needs { border-left: 4px solid var(--orange); }

/* Deltagarvy för ledare */
.top-actions { display: flex; align-items: center; gap: 8px; }
.view-toggle { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--vinrod); background: transparent; color: var(--vinrod); border-radius: 999px; padding: 7px 12px; font-weight: 500; font-size: 14px; cursor: pointer; min-height: 40px; }
.view-toggle svg { width: 16px; height: 16px; }
.view-toggle.on { background: var(--vinrod); color: var(--beige); }
.preview-bar { position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 19; margin: 0 16px; max-width: 728px; background: var(--svart); color: var(--beige); border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.35; }
@media (min-width: 760px) { .preview-bar { margin: 0 auto; } }
.preview-bar button { border: 0; background: var(--rosa); color: var(--svart); border-radius: 999px; padding: 5px 12px; font-weight: 500; font-size: 13px; margin-left: 6px; cursor: pointer; }

/* Anmälan */
.stepper-dots { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.stepper-dots i { width: 28px; height: 6px; border-radius: 3px; background: var(--beige-3); }
.stepper-dots i.on { background: var(--vinrod); }
.stepper-dots span { margin-left: 8px; font-size: 13px; color: var(--text-2); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 360px) { .check-grid { grid-template-columns: 1fr; } }
.terms-box { background: var(--beige-2); border: 2px solid var(--guld); border-radius: var(--radius); border-top-left-radius: 4px; padding: 16px; line-height: 1.4; }
.terms-box p + p { margin-top: 10px; }
.terms-box .deadline { background: var(--rosa); border-radius: 10px; padding: 10px 12px; }
.trip-dates { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; line-height: 1.3; }
.trip-dates svg { width: 22px; height: 22px; color: var(--vinrod); flex: none; }
.guardian-card, .status-card { background: var(--rosa); border-radius: var(--radius); border-top-right-radius: 40px; padding: 16px; margin: 0 0 20px; }
.guardian-card h3, .status-card h3 { margin-bottom: 6px; }
.guardian-card p, .status-card p { line-height: 1.35; }
.status-card.waitlist { background: var(--beige-2); border: 2px dashed var(--guld); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--beige-3); line-height: 1.3; }
.kv:last-of-type { border-bottom: 0; }
.kv > span:first-child { color: var(--text-2); flex: none; }
.kv > span:last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.anm-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.anm-chips .chip { font-size: 11.5px; padding: 2px 8px; }
.pnr-reveal { border: 0; background: none; color: var(--vinrod); font-weight: 500; cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
.stat b small { font-size: 15px; font-weight: 400; }
.tapstat { cursor: pointer; border-color: var(--orange); }
@media (max-width: 380px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* Samtycke bild, film och ljud */
.consent-info { background: var(--beige-2); border: 1px solid var(--beige-3); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.consent-info summary { cursor: pointer; font-weight: 500; color: var(--vinrod); }
.consent-info p { font-size: 14px; line-height: 1.4; margin-top: 10px; }
.pc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--beige-3); }
.pc-q { font-size: 15px; line-height: 1.3; min-width: 0; }
.pc-q small { display: block; color: var(--text-2); font-size: 12.5px; margin-top: 3px; }
.pc-a { display: flex; gap: 6px; flex: none; }
.pc-a label { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 44px; border: 2px solid var(--beige-3); background: #fff; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; }
.pc-a input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pc-a label.on.yes { background: var(--vinrod); border-color: var(--vinrod); color: var(--beige); }
.pc-a label.on.no { background: var(--svart); border-color: var(--svart); color: var(--beige); }
.pc-a label:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.pc-summary { flex: 1; }
.pc-summary div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 14px; }
.pc-summary b.y { color: var(--vinrod); }
.pc-summary b.n { color: var(--svart); }
.kv.kv-block { display: block; }
.kv.kv-block > span:first-child { display: block; margin-bottom: 6px; }
details.g2 { margin-top: 4px; }
details.g2 summary { cursor: pointer; color: var(--vinrod); font-weight: 500; padding: 8px 0; }
.g-row + .g-row { margin-top: 12px; }

/* Taizékorset */
.brand .brand-cross { height: 30px; width: auto; }
.hero-cross { position: absolute; top: 14px; right: 16px; width: 46px; height: auto; z-index: 2; }
.auth-cross { position: absolute; right: 26px; bottom: 30px; width: 92px; height: auto; z-index: 2; }
@media (min-width: 800px) { .auth-cross { width: 140px; right: 60px; bottom: 50px; } }
.privacy-note { display: flex; gap: 8px; align-items: flex-start; background: var(--beige-2); border: 1px solid var(--beige-3); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.35; margin-bottom: 18px; }
.privacy-note svg { color: var(--vinrod); flex: none; margin-top: 1px; }
.auth-top .brand-cross { display: none; }

/* Listor */
.list-card { align-items: flex-start; }
.list-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; border-top-right-radius: 22px; background: var(--vinrod); color: var(--beige); display: grid; place-items: center; }
.list-ic svg { width: 22px; height: 22px; }
.back-link { font-weight: 500; text-decoration: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--beige-3); border-radius: 12px; background: #fff; -webkit-overflow-scrolling: touch; }
.data-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.data-table th { position: sticky; top: 0; background: var(--beige-2); text-align: left; font-weight: 500; padding: 10px 12px; border-bottom: 2px solid var(--beige-3); white-space: nowrap; }
.data-table td { padding: 9px 12px; border-bottom: 1px solid var(--beige-3); vertical-align: top; line-height: 1.3; }
.data-table td:first-child, .data-table th:first-child { white-space: nowrap; }
.data-table td { max-width: 260px; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tr:nth-child(even) td { background: #fffaf7; }
.data-table td:not(.num), .data-table th:not(.num) { min-width: 130px; }
.show-pw { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; margin: -4px 0 6px; cursor: pointer; }
.show-pw input { width: 18px; height: 18px; accent-color: var(--vinrod); }
.hint.pw-ok { color: var(--vinrod); font-weight: 500; }
.hint.pw-bad { color: #a3001f; }

/* För många bokade pass */
.slot.over { background: var(--orange); border: 2px solid var(--orange); color: var(--svart); }
.over-banner { background: var(--orange); color: var(--svart); border-radius: var(--radius); border-top-left-radius: 4px; padding: 16px; margin: 0 0 20px; }
.over-banner h3 { margin-bottom: 6px; }
.over-banner p { line-height: 1.35; }
.over-banner .btn { background: var(--svart); border-color: var(--svart); color: var(--beige); }

/* Notisstatus i ledarvyn */
.chip.bell-on { background: var(--beige); }
.chip.bell-off { background: transparent; border-style: dashed; color: var(--text-2); }
.push-status { display: flex; gap: 10px; align-items: flex-start; line-height: 1.35; }
.push-status svg { width: 20px; height: 20px; flex: none; color: var(--text-2); }
.push-status.on svg { color: var(--vinrod); }

/* ================================================ Kom igång på iPhone */
.link-btn { border: 0; background: none; color: var(--vinrod); font: inherit; font-size: 14px; font-weight: 500; text-decoration: underline; cursor: pointer; padding: 6px 2px; }
.guide-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-weight: 500; font-size: 15px; text-decoration: none; }
.guide-link svg { width: 16px; height: 16px; }
.install-card .btn + .guide-link { margin-left: 12px; }
.kbd { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; background: #fff; border: 1px solid var(--beige-3); border-radius: 8px; padding: 1px 7px; font-weight: 500; white-space: nowrap; color: var(--svart); }
.kbd svg { width: 17px; height: 17px; color: #0a63d6; }

/* Guidningsrutan längst ner */
.coach { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + 10px + var(--safe-b)); z-index: 40; display: flex; justify-content: center; padding: 0 10px; pointer-events: none; }
.coach > * { pointer-events: auto; }
.coach-card { position: relative; width: 100%; max-width: 520px; background: var(--svart); color: var(--beige); border-radius: 22px 22px 22px 6px; padding: 16px 16px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: up .25s ease; }
.coach-card h3 { font-size: 18px; margin: 0 40px 10px 0; }
.coach-card p { line-height: 1.4; font-size: 15px; }
.coach-card b { color: var(--rosa); font-weight: 500; }
.coach-x { position: absolute; top: 6px; right: 6px; color: var(--beige); }
.coach-x:hover { background: rgba(255,255,255,.1); }
.coach-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; line-height: 1.45; }
.coach-steps li { display: flex; gap: 10px; align-items: flex-start; }
.coach-steps small { display: block; color: #cdb9b0; font-size: 13px; }
.cnum { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--rosa); color: var(--vinrod); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.coach-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; color: var(--rosa); font-weight: 500; text-decoration: none; font-size: 15px; }
.coach-more svg { width: 16px; height: 16px; }
.coach-arrow { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); width: 34px; height: 34px; color: var(--svart); animation: nudge 1.2s ease-in-out infinite; filter: drop-shadow(0 2px 2px rgba(255,255,255,.6)); }
.coach-arrow svg { width: 100%; height: 100%; }
@keyframes nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
.coach-card .btn-row .btn.secondary { color: var(--beige); border-color: var(--beige); }
.coach-pill { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--svart); color: var(--beige); border-radius: 999px; padding: 8px 16px 8px 8px; font: inherit; font-weight: 500; font-size: 15px; box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer; }
.coach-pill img { width: 30px; height: 30px; border-radius: 8px; }
.auth ~ .coach, body:not(:has(.bottomnav)) .coach { bottom: calc(14px + var(--safe-b)); }

/* Sista steget: notiser */
.onboard { position: fixed; inset: 0; z-index: 90; background: rgba(40, 0, 18, .6); display: grid; place-items: center; padding: 20px; animation: fade .2s ease; }
.onboard-card { position: relative; overflow: hidden; width: 100%; max-width: 420px; background: var(--beige); border-radius: 28px 80px 28px 28px; padding: 26px 22px 18px; text-align: center; animation: up .25s ease; }
.onboard-bell { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; border-top-right-radius: 10px; background: var(--vinrod); color: var(--beige); display: grid; place-items: center; }
.onboard-bell svg { width: 40px; height: 40px; }
.onboard-kicker { color: var(--vinrod); font-weight: 500; margin-bottom: 8px; }
.onboard-card h2 { font-size: 28px; line-height: 1.05; margin-bottom: 10px; }
.onboard-card h2 .serif { display: block; color: var(--vinrod); }
.onboard-card > p { line-height: 1.4; margin-bottom: 16px; }
.onboard-card .btn { min-height: 56px; font-size: 18px; }

/* Guide med bilder */
.help-main { padding-bottom: 60px; }
.hbadge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border-top-right-radius: 4px; background: var(--vinrod); color: var(--beige); font-size: 16px; font-weight: 700; margin-right: 10px; vertical-align: 2px; }
.hp { line-height: 1.45; margin: -2px 0 12px; }
.hp.small { margin-top: 8px; }
.hfix { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.45; font-size: 15px; }
.warn-note { border-left: 4px solid var(--orange); margin-bottom: 8px; line-height: 1.4; }
.hstatus { background: #fff; border: 2px solid var(--beige-3); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; margin-bottom: 4px; }
.hstat { display: flex; gap: 10px; align-items: flex-start; line-height: 1.3; }
.hstat b { display: block; font-weight: 500; }
.hstat span { font-size: 14px; color: var(--text-2); }
.hdot { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px dashed #b49a8f; display: grid; place-items: center; }
.hstat.ok .hdot { background: var(--vinrod); border: 2px solid var(--vinrod); color: var(--beige); }
.hdot svg { width: 15px; height: 15px; }

/* Små "skärmbilder" ritade i CSS */
.mock { background: #f2f2f7; border: 1px solid #d8d8de; border-radius: 18px; padding: 12px; max-width: 360px; margin: 0 auto 6px; font-family: -apple-system, 'SF Pro Text', 'DM Sans', sans-serif; color: #111; }
.mock .hl { position: relative; color: #0a63d6; }
.mock .hl::after { content: ''; position: absolute; inset: -6px; border: 3px solid var(--orange); border-radius: 12px; animation: ring 1.4s ease-in-out infinite; pointer-events: none; }
@keyframes ring { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.08); } }
.mock-url { background: #fff; border-radius: 10px; padding: 8px 12px; text-align: center; font-size: 14px; color: #555; margin-bottom: 12px; }
.mock-bar { display: flex; justify-content: space-around; align-items: center; font-size: 22px; color: #0a63d6; padding: 4px 0; }
.mock-bar span { display: inline-grid; place-items: center; width: 34px; height: 34px; }
.mock-bar svg { width: 26px; height: 26px; }
.mock-sheet { display: grid; gap: 1px; padding: 8px; background: #e5e5ea; }
.mock-row { background: #fff; padding: 12px 14px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.mock-row:first-child { border-radius: 12px 12px 0 0; }
.mock-row:last-child { border-radius: 0 0 12px 12px; }
.mock-row.hl { font-weight: 600; color: #111; }
.mock-row svg { width: 20px; height: 20px; }
.mock-add-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 4px 4px 12px; gap: 8px; }
.mock-add-top span { color: #0a63d6; }
.mock-add-top span.hl { font-weight: 600; padding: 2px 4px; }
.mock-add-top b { font-weight: 600; font-size: 13px; }
.mock-add-app { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 10px; font-size: 15px; }
.mock-add-app img { width: 44px; height: 44px; border-radius: 10px; }
.mock-home { background: linear-gradient(160deg, #6a2a4a, #2c1a3a); }
.mock-icon { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 6px; }
.mock-icon i { display: block; aspect-ratio: 1; border-radius: 14px; background: rgba(255,255,255,.25); }
.mock-icon img { width: 100%; border-radius: 14px; display: block; }
.mock-icon img.hl::after { display: none; }
.mock-icon img.hl { outline: 3px solid var(--orange); outline-offset: 3px; animation: ring 1.4s ease-in-out infinite; }
.mock-allow { text-align: center; background: #f2f2f7; }
.mock-allow b { display: block; font-weight: 600; font-size: 15px; padding: 6px 8px 12px; }
.mock-allow-btns { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #d8d8de; }
.mock-allow-btns span { padding: 12px; color: #0a63d6; font-size: 16px; }
.mock-allow-btns span:first-child { border-right: 1px solid #d8d8de; }
.mock-allow-btns span.hl { font-weight: 600; }

/* Sms till de utan notiser */
.sms-list { display: grid; gap: 6px; max-height: 38dvh; overflow-y: auto; }
.sms-pick { display: flex; align-items: center; gap: 12px; border: 2px solid var(--beige-3); background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; line-height: 1.3; }
.sms-pick input { width: 20px; height: 20px; accent-color: var(--vinrod); flex: none; margin: 0; }
.sms-one { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 2px solid var(--beige-3); background: #fff; border-radius: 12px; padding: 10px 12px; text-decoration: none; color: inherit; line-height: 1.3; }
.sms-go { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--vinrod); color: var(--beige); display: grid; place-items: center; }
.sms-go svg { width: 18px; height: 18px; }
.sms-one.done { opacity: .6; }
.sms-one.done .sms-go { background: var(--rosa); color: var(--vinrod); }
body.coach-open main, body.coach-open .auth-body { padding-bottom: calc(var(--nav-h) + 290px + var(--safe-b)); }

/* Kontakta de bokade */
.contact-box { margin-top: 14px; background: var(--beige-2); border: 1px solid var(--beige-3); border-radius: var(--radius); padding: 14px; }

/* Personalsidan */
.staff-card { align-items: flex-start; }
.staff-people { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--beige-3); }
.staff-people li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--beige-3); line-height: 1.25; }
.staff-people li > span:first-child { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.staff-tel { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.staff-tel a { font-variant-numeric: tabular-nums; }
.staff-sms { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--vinrod); }
.staff-sms svg { width: 17px; height: 17px; }
.staff-desc { margin-top: 8px; font-size: 14px; }
.staff-desc summary { cursor: pointer; color: var(--vinrod); font-weight: 500; }
.staff-desc p { white-space: pre-wrap; line-height: 1.4; margin-top: 6px; }
.staff-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--vinrod); color: var(--vinrod); }
.staff-ic svg { width: 20px; height: 20px; }
.staff-ic:first-child { background: var(--vinrod); color: var(--beige); }
.staff-all { margin-top: 12px; }

/* ---------- Kom igång: hemskärmen + notiser (ska vara svår att missa) ---------- */
.setup-card { position: relative; background: var(--orange); color: var(--svart); border-radius: 24px 72px 24px 24px; padding: 20px 18px 18px; margin-bottom: 20px; box-shadow: 0 0 0 3px var(--svart); }
.setup-card.soft { background: var(--rosa); box-shadow: none; border-radius: 18px; padding: 16px; }
.setup-card.soft h2 { font-size: 21px; margin-bottom: 6px; }
.setup-card.soft p { line-height: 1.4; font-size: 15px; }
.setup-kicker { display: inline-flex; align-items: center; gap: 6px; background: var(--svart); color: var(--beige); border-radius: 999px; padding: 5px 12px 5px 8px; font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.setup-kicker svg { width: 18px; height: 18px; animation: ring 1.4s ease-in-out infinite; }
.setup-card h2 { font-size: 26px; line-height: 1.08; margin: 0 40px 8px 0; }
.setup-card h2 .serif { display: block; }
.setup-why { font-size: 15px; line-height: 1.4; margin-bottom: 14px; }
.setup-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.setup-step { display: flex; gap: 12px; align-items: flex-start; background: var(--beige); border-radius: 16px; padding: 14px 14px 14px 12px; }
.setup-num { flex: none; width: 34px; height: 34px; border-radius: 50%; border-top-right-radius: 6px; background: var(--vinrod); color: var(--beige); display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.setup-num svg { width: 20px; height: 20px; }
.setup-body { flex: 1; min-width: 0; }
.setup-body h3 { font-size: 18px; line-height: 1.2; margin: 5px 0 0; }
.setup-body p { font-size: 15px; line-height: 1.4; margin-top: 6px; }
.setup-body .btn-row { margin-top: 10px; }
.setup-body .btn:not(.small) { min-height: 54px; font-size: 18px; width: 100%; justify-content: center; }
.setup-fine { font-size: 13px !important; color: var(--text-2); }
.setup-step.done { background: rgba(255, 235, 225, .55); padding-top: 10px; padding-bottom: 10px; }
.setup-step.done .setup-num { background: var(--svart); }
.setup-ok { font-size: 13px; font-weight: 500; color: var(--text-2); margin-left: 6px; }
.setup-card .link-btn { display: block; margin: 14px auto 0; color: var(--svart); }
.setup-strip { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: var(--orange); color: var(--svart); border-radius: 14px; padding: 10px 12px; margin-bottom: 14px; font: inherit; font-size: 15px; line-height: 1.25; cursor: pointer; box-shadow: 0 0 0 2px var(--svart); }
.setup-strip > span:nth-child(2) { flex: 1; }
.setup-strip > svg { width: 20px; height: 20px; flex: none; }
.setup-strip-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; border-top-right-radius: 6px; background: var(--svart); color: var(--beige); display: grid; place-items: center; }
.setup-strip-ic svg { width: 20px; height: 20px; animation: ring 1.4s ease-in-out infinite; }
.onboard > .setup-card { width: 100%; max-width: 440px; margin: 0; max-height: calc(100vh - 40px); overflow: auto; animation: up .25s ease; }
@media (prefers-reduced-motion: reduce) { .setup-kicker svg, .setup-strip-ic svg { animation: none; } }
.setup-slot { max-width: 760px; margin: 0 auto; padding: 8px 16px 0; }
.setup-slot:empty { display: none; }
.setup-slot > :last-child { margin-bottom: 8px; }

/* Långa namn, e-postadresser och etiketter får inte göra sidan bredare än skärmen */
.list { grid-template-columns: minmax(0, 1fr); }
.list > * { min-width: 0; }
.chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.anm-chips .chip { white-space: normal; overflow-wrap: anywhere; text-align: left; }
.info-row a, .sheet a { overflow-wrap: anywhere; }
.info-row { min-width: 0; }
.row-between { flex-wrap: wrap; }
body { overflow-x: clip; }

.refill-note { display: flex; gap: 12px; align-items: flex-start; background: var(--rosa); border-color: var(--rosa); line-height: 1.4; margin-bottom: 16px; }
.refill-note > svg { width: 24px; height: 24px; flex: none; color: var(--vinrod); margin-top: 1px; }
.refill-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); margin-top: 4px; }
.date-chip { cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; padding: 6px 10px; white-space: nowrap; }

/* Kontakta oss */
.contact-h { margin: 18px 0 10px; }
.contact-h:first-of-type { margin-top: 4px; }
.contact-row { background: var(--beige-2); border: 1px solid var(--beige-3); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.contact-q { font-weight: 700; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.contact-sub { color: var(--text-2); font-size: 14px; line-height: 1.3; margin-top: 2px; }
.contact-who { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; line-height: 1.3; }
.contact-btns { display: flex; gap: 8px; }
.contact-btns .btn svg { width: 16px; height: 16px; }

/* Personalsidan: kompakta rader, tryck för att se bokade */
.staff-list { gap: 6px; }
.staff-row { background: var(--beige-2); border: 1px solid var(--beige-3); border-radius: 14px; min-width: 0; }
.staff-row.needs { border-left: 4px solid var(--orange); }
.staff-row.past { opacity: .65; }
.staff-row summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; }
.staff-row summary::-webkit-details-marker { display: none; }
.staff-row summary > svg { width: 18px; height: 18px; flex: none; color: var(--text-2); transition: transform .15s ease; }
.staff-row[open] summary > svg { transform: rotate(180deg); }
.staff-time { flex: none; width: 54px; font-weight: 700; font-size: 15px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.staff-time small, .staff-title small { display: block; font-weight: 400; font-size: 13px; color: var(--text-2); }
.staff-title { flex: 1; min-width: 0; font-weight: 500; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.staff-title small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.staff-row summary .chip { flex: none; font-variant-numeric: tabular-nums; }
.staff-more { padding: 2px 12px 14px; border-top: 1px solid var(--beige-3); margin-top: 0; padding-top: 10px; }
.staff-about { white-space: pre-wrap; line-height: 1.4; margin-top: 10px; color: var(--text-2); }

.backup-list { list-style: none; margin: 8px 0 0; padding: 0; }
.backup-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--beige-3); font-size: 14px; }
.backup-list a { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.backup-list svg { width: 15px; height: 15px; }

/* ---------- Inget får bli bredare än skärmen (särskilt datumfält på iPhone) ---------- */
.grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.field { grid-template-columns: minmax(0, 1fr); }
.field > *, .grid-2 > * { min-width: 0; }
.input, .field input, .field select, .field textarea { min-width: 0; max-width: 100%; box-sizing: border-box; }
input[type="date"], input[type="time"], input[type="datetime-local"] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; display: block; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value, input[type="datetime-local"]::-webkit-date-and-time-value { text-align: left; min-width: 0; }
.time-range input, .copybox input { min-width: 0; width: 100%; }
.copybox { min-width: 0; }
.copybox .btn { flex: none; }
.note, .card, .sheet, main, .setup-card, .status-card, .guardian-card { min-width: 0; overflow-wrap: break-word; }
.btn { max-width: 100%; }
.page-head h1, .sheet-head h2, .section h2 { overflow-wrap: anywhere; }
img, svg, table { max-width: 100%; }
.data-table { max-width: none; }
.card .meta { min-width: 0; }
.card .meta span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.info-row > span, .info-row > a { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Incheckning på träffar ---------- */
.checkin-card { background: var(--vinrod); color: var(--beige); border-radius: 24px 72px 24px 24px; padding: 20px 18px 18px; margin-bottom: 20px; box-shadow: 0 0 0 3px var(--svart); }
.checkin-card h3 { font-size: 24px; line-height: 1.1; margin: 0 40px 6px 0; overflow-wrap: anywhere; }
.checkin-card p { line-height: 1.35; }
.checkin-kicker { display: inline-block; background: var(--orange); color: var(--svart); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.checkin-card .btn { background: var(--beige); color: var(--vinrod); border-color: var(--beige); }
.checkin-card .btn.block { min-height: 60px; font-size: 20px; margin-top: 14px; }
.checkin-card .btn.secondary { background: transparent; color: var(--beige); border-color: var(--beige); }
.checkin-card .btn-row { margin-top: 14px; }
.checkin-card.done { display: flex; align-items: center; gap: 14px; background: var(--rosa); color: var(--svart); box-shadow: none; border-radius: 18px; padding: 14px 16px; }
.checkin-card.done h3 { font-size: 19px; margin: 0 0 2px; }
.checkin-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; border-top-right-radius: 8px; background: var(--vinrod); color: var(--beige); display: grid; place-items: center; }
.checkin-ic svg { width: 26px; height: 26px; }
.checkin-card.leader:not(.open) { background: var(--svart); box-shadow: none; }
.att-count { display: flex; align-items: baseline; gap: 8px; background: var(--beige-2); border: 1px solid var(--beige-3); border-radius: 14px; padding: 12px 14px; line-height: 1.2; }
.att-count b { font-size: 34px; font-weight: 500; font-variant-numeric: tabular-nums; }
.att-count.open { background: var(--rosa); border-color: var(--rosa); }
.att-h { margin: 16px 0 6px; }
.att-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--beige-3); }
.att-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--beige-3); line-height: 1.25; }
.att-name { min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.att-name svg { vertical-align: -2px; color: var(--vinrod); }
.att-name small { display: block; font-weight: 400; font-size: 13px; color: var(--text-2); }
.att-list .btn { flex: none; }
.att-btn { margin-top: 10px; }
.over-banner.strong { background: var(--svart); color: var(--beige); }

/* ------------------------------------------------ GPS-quiz (testläge) */
.qtest { display: flex; gap: 12px; align-items: flex-start; background: var(--svart); color: var(--beige); border-radius: 18px 18px 40px 18px; padding: 14px 16px; margin-bottom: 16px; }
.qtest svg { width: 22px; height: 22px; flex: none; color: var(--rosa); }
.qtest div { display: flex; flex-direction: column; gap: 4px; line-height: 1.35; }
.qtest b { font-weight: 500; }
.qtest span { font-size: 14px; color: var(--rosa); }
.qback { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; text-decoration: none; font-size: 15px; }
.qback svg { width: 16px; height: 16px; }
.qtitle { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 14px; }
.qtitle h2 { min-width: 0; overflow-wrap: anywhere; }
.qmap { position: relative; z-index: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--beige-3); background: #F6E4D9; }
.qmap .leaflet-control-attribution { font-size: 10px; background: rgba(255, 245, 240, .85); }
.qpin-wrap, .qme-wrap { background: none; border: 0; }
.qpin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 15px 15px 15px 2px; background: var(--vinrod); color: var(--beige); font: 700 13px/1 var(--sans); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.qpin.dark { background: var(--svart); color: var(--rosa); }
.qme { display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--svart); border: 4px solid #FFF5F0; box-shadow: 0 0 0 6px rgba(0,0,0,.12); box-sizing: border-box; }
.qdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.15); }
.qcode { letter-spacing: .08em; }
.qpoints { display: flex; flex-direction: column; gap: 6px; }
.qpoint { display: flex; align-items: center; gap: 4px; }
.qpoint-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 8px 10px; border-radius: 14px; border: 1px solid var(--beige-3); background: var(--beige-2); text-align: left; cursor: pointer; }
.qpoint .icon-btn:disabled { opacity: .3; }
.qnum { flex: none; width: 26px; height: 26px; border-radius: 13px; background: var(--vinrod); color: var(--beige); display: grid; place-items: center; font-size: 13px; }
.qnum.dark { background: var(--svart); color: var(--rosa); }
.qpname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qpick { position: relative; }
.qcross { position: absolute; left: 50%; top: 115px; width: 26px; height: 26px; margin: -13px 0 0 -13px; z-index: 500; pointer-events: none; }
.qcross::before, .qcross::after { content: ''; position: absolute; background: var(--vinrod); }
.qcross::before { left: 12px; top: 0; width: 2px; height: 26px; }
.qcross::after { top: 12px; left: 0; height: 2px; width: 26px; }
.qsearch { position: relative; z-index: 700; margin-bottom: 8px; }
.qsearch .input { min-height: 40px; border-radius: 999px; font-size: 15px; padding: 0 14px; background: #fff; }
.qsearch-res { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; margin-top: 4px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.qsearch-res:empty { display: none; }
.qsearch-res button, .qsearch-res span { text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--beige-3); background: #fff; font-size: 14px; line-height: 1.3; cursor: pointer; }
.qhere { position: absolute; left: 8px; bottom: 8px; z-index: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 0; border-radius: 999px; background: var(--svart); color: var(--beige); font-size: 13px; font-weight: 500; cursor: pointer; }
.qhere svg { width: 15px; height: 15px; }
.qopt-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.qopt-row input[type=radio] { width: 22px; height: 22px; flex: none; accent-color: var(--vinrod); }
.qopt-row .input { flex: 1; min-width: 0; }
.qsteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
.qsteps .stepper { gap: 6px; }
.qsteps .stepper input { width: 56px; padding-left: 4px; padding-right: 4px; }
.qsteps .stepper .icon-btn { width: 42px; height: 42px; }
.qrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 8px 0; }
.qbar span { height: 6px; border-radius: 3px; background: var(--beige-3); }
.qbar span.on { background: var(--vinrod); }
.qbar span.now { background: var(--orange); }
.qphoto { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; margin: 8px 0; background: var(--text-2); }
.qall summary { cursor: pointer; font-weight: 500; margin-top: 18px; min-height: 36px; }
.qwinner { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px; margin-bottom: 14px; border-radius: 18px 40px 18px 18px; background: var(--guld); }
.qwinner b { font-size: 28px; font-weight: 500; }
.qplay-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; flex-wrap: wrap; }
.qteam { padding: 6px 12px; border-radius: 999px; font-weight: 500; font-size: 14px; color: var(--svart); }
.qplay-wrap { position: relative; }
.qplay-map { height: 46vh; min-height: 260px; }
.qcenter { position: absolute; right: 10px; bottom: 26px; z-index: 600; width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--beige-2); color: var(--vinrod); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); cursor: pointer; }
.qcenter svg { width: 22px; height: 22px; }
.qpanel { margin-top: 14px; }
.qnav { display: flex; align-items: center; gap: 16px; margin: 14px 0; }
.qarrow { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--svart); display: grid; place-items: center; transition: transform .4s ease; }
.qnav div { display: flex; flex-direction: column; gap: 2px; }
.qdist { font-size: 42px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.qgps { display: flex; align-items: center; gap: 8px; color: var(--text-2); margin-top: 10px; line-height: 1.3; }
.qgps span { width: 8px; height: 8px; border-radius: 4px; background: var(--vinrod); flex: none; }
.qgps.bad span { background: var(--orange); }
.qarrived { display: flex; flex-direction: column; gap: 4px; background: var(--vinrod); color: var(--beige); border-radius: 18px 18px 40px 18px; padding: 16px; }
.qarrived span { font-size: 14px; color: var(--rosa); }
.qarrived b { font-size: 24px; font-weight: 500; line-height: 1.1; overflow-wrap: anywhere; }
.qprompt { font-size: 18px; font-weight: 500; line-height: 1.35; margin: 14px 0 12px; white-space: pre-line; }
.qchoice { display: block; width: 100%; min-height: 52px; padding: 10px 14px; margin-bottom: 8px; border-radius: 14px; border: 2px solid var(--beige-3); background: var(--beige-2); text-align: left; font-size: 16px; cursor: pointer; }
.qchoice.picked { border-color: var(--vinrod); background: var(--rosa); }
.qnum-in { max-width: 160px; font-size: 24px; margin-top: 6px; }
.qcam { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 140px; border-radius: 18px; border: 2px dashed var(--vinrod); background: var(--beige-2); color: var(--vinrod); font-weight: 500; cursor: pointer; }
.qcam svg { width: 34px; height: 34px; }
.qresult { padding: 16px; border-radius: 18px; background: var(--beige-2); border: 1px solid var(--beige-3); font-size: 18px; font-weight: 500; line-height: 1.35; }
.qresult.ok { background: var(--svart); color: var(--beige); border-color: var(--svart); }
.qgoal { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 22px 16px; border-radius: 18px 40px 18px 18px; background: var(--guld); margin-bottom: 10px; }
.qgoal b { font-size: 36px; font-weight: 500; }
.qtf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.qtf .qchoice { text-align: center; font-weight: 500; font-size: 18px; min-height: 64px; margin: 0; }
.qtf .qcam { min-height: 110px; text-align: center; padding: 8px; }
.qtf-seg { margin-bottom: 0; }
.qtf-seg button { flex: 1; }
.qord { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 6px 6px 10px; margin-bottom: 6px; border-radius: 14px; border: 2px solid var(--beige-3); background: var(--beige-2); }
.qord span { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.qord .icon-btn:disabled { opacity: .3; }
.qopt-row .qnum { flex: none; }
.qtimer { align-self: flex-start; display: inline-block; margin-top: 12px; padding: 6px 14px; border-radius: 999px; background: var(--svart); color: var(--beige); font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.qtimer.soon { background: var(--orange); color: var(--svart); }
.qtimer.out { background: #a3001f; color: #fff; font-size: 16px; }

/* ------------------------------------------------ Kvällens flöde på träffen (deltagare) */
.checkin-card.waiting { background: var(--svart); box-shadow: none; border-radius: 24px 72px 24px 24px; }
.checkin-card.waiting .checkin-ic { width: 48px; height: 48px; border-radius: 24px; background: var(--rosa); color: var(--svart); display: grid; place-items: center; margin-bottom: 12px; }
.checkin-card.waiting p { color: var(--rosa); }
.group-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: var(--guld); border-radius: 18px 18px 64px 18px; padding: 22px 20px; margin-bottom: 20px; }
.group-card > span { font-weight: 500; }
.group-card > b { font-size: 128px; font-weight: 500; line-height: .9; letter-spacing: -0.04em; }
.group-card p { line-height: 1.4; max-width: 300px; }
.group-card .group-place { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.group-card .group-place svg { width: 18px; height: 18px; }
.group-bar { display: flex; align-items: center; gap: 12px; background: var(--guld); border-radius: 14px 14px 32px 14px; padding: 10px 14px; margin-bottom: 16px; }
.group-bar > b { flex: none; width: 44px; height: 44px; border-radius: 22px 22px 22px 6px; background: var(--svart); color: var(--guld); display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.group-bar div { display: flex; flex-direction: column; min-width: 0; }
.group-bar strong { font-weight: 500; }
.group-bar span { font-size: 13px; overflow-wrap: anywhere; }
.upplagg { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.up-box { background: var(--beige-2); border: 1px solid var(--beige-3); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.up-head { display: flex; align-items: center; gap: 10px; }
.up-head b { font-weight: 500; }
.up-ref { margin-left: auto; font-size: 13px; color: var(--text-2); text-align: right; }
.up-ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; }
.up-ic svg { width: 18px; height: 18px; }
.up-ic.bib { border-radius: 9px 9px 9px 18px; background: var(--rosa); color: var(--vinrod); }
.up-ic.ice { border-radius: 9px 18px 9px 9px; background: var(--orange); }
.up-ic.talk { border-radius: 18px 9px 9px 9px; background: var(--svart); color: var(--rosa); }
.up-ic.task { border-radius: 9px 9px 18px 9px; background: var(--guld); }
.up-bible { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.45; white-space: pre-line; }
.up-text { line-height: 1.4; white-space: pre-line; }
.up-q { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; line-height: 1.4; }
.quiz-card { background: var(--vinrod); color: var(--beige); border-radius: 18px 48px 18px 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.quiz-card h3 { font-size: 30px; font-weight: 500; line-height: 1; }
.quiz-card p { color: var(--rosa); line-height: 1.4; }
.quiz-card .btn { background: var(--beige); color: var(--vinrod); border-color: var(--beige); min-height: 56px; font-size: 18px; margin-top: 4px; }
.quiz-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.quiz-stats div { background: var(--vinrod-2); border-radius: 12px; padding: 10px 4px; display: flex; flex-direction: column; gap: 2px; }
.quiz-stats b { font-size: 20px; font-weight: 500; }
.quiz-stats span { font-size: 12px; color: var(--rosa); }
.quiz-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px; margin-bottom: 20px; font-size: 14px; line-height: 1.4; }
.quiz-note svg { flex: none; width: 20px; height: 20px; color: var(--vinrod); }
.traff-thanks { display: flex; flex-direction: column; gap: 6px; background: var(--guld); border-radius: 18px 48px 18px 18px; padding: 18px; margin-bottom: 20px; }
.traff-thanks b { font-size: 24px; font-weight: 500; line-height: 1.1; }

/* ------------------------------------------------ Kvällens flöde (ledare) */
.flow-title { margin: 4px 0 16px; }
.flow-title p { margin-top: 6px; }
.flow-step { border-radius: 18px; padding: 14px; margin-bottom: 12px; border: 1px dashed var(--beige-3); }
.flow-step.now { background: var(--beige-2); border: 2px solid var(--vinrod); }
.flow-step.done { background: var(--beige-2); border: 1px solid var(--beige-3); }
.flow-step.later { color: var(--text-2); }
.flow-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.flow-head h3 { flex: 1; min-width: 0; font-size: 18px; }
.flow-num { flex: none; width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; font-size: 13px; background: var(--beige-3); color: var(--text-2); }
.flow-num svg { width: 15px; height: 15px; }
.flow-step.now .flow-num { background: var(--svart); color: var(--beige); }
.flow-step.done .flow-num { background: var(--vinrod); color: var(--beige); }
.flow-status { font-size: 13px; font-weight: 500; text-align: right; }
.flow-count { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.flow-count b { font-size: 40px; font-weight: 500; line-height: 1; }
.flow-stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.flow-stepper .stepper input { width: 64px; }
.fgroups { display: flex; flex-direction: column; gap: 10px; }
.fgroup { background: var(--beige); border: 1px solid var(--beige-3); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.fgroup.drop { border: 2px dashed var(--vinrod); }
.fgroup-head { display: flex; align-items: center; gap: 10px; }
.fgroup-head div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fgroup-head strong { font-weight: 500; }
.fgroup-head span { font-size: 12px; color: var(--text-2); }
.fgroup-no { flex: none; width: 34px; height: 34px; border-radius: 17px 17px 17px 4px; background: var(--guld); display: grid; place-items: center; font-weight: 700; }
.fgroup-people { display: flex; flex-wrap: wrap; gap: 6px; }
.fperson { min-height: 36px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--beige-3); background: var(--beige-2); font-size: 14px; cursor: pointer; }
.fperson small { opacity: .7; font-size: 12px; }
.fperson.sel { background: var(--vinrod); border-color: var(--vinrod); color: var(--beige); }
.fplace { min-height: 40px; font-size: 14px; }
.fteams { display: flex; flex-direction: column; gap: 8px; }
.fteam { display: flex; gap: 10px; align-items: flex-start; background: var(--beige); border: 1px solid var(--beige-3); border-radius: 14px; padding: 10px; }
.fteam-body { flex: 1; min-width: 0; }
.flow-step select.input { min-height: 46px; }

/* ------------------------------------------------ Bilder och filmer från quizet */
.qgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.qgal-item { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: var(--text-2); cursor: pointer; }
.qgal-item img, .qgal-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.qgal-play, .qgal-audio { position: absolute; inset: 0; display: grid; place-items: center; color: var(--beige); font-size: 30px; }
.qgal-audio svg { width: 40px; height: 40px; }
.qgal-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; font-size: 12px; text-align: left; background: rgba(0,0,0,.55); color: var(--beige); }
.qshow { position: fixed; inset: 0; z-index: 2000; background: #000; color: var(--beige); display: flex; flex-direction: column; }
.qshow-media { flex: 1; min-height: 0; display: grid; place-items: center; padding: 56px 0 0; }
.qshow-media img, .qshow-media video { max-width: 100%; max-height: 100%; object-fit: contain; }
.qshow-media audio { width: min(90vw, 500px); }
.qshow-bar { display: flex; align-items: center; gap: 12px; padding: 12px 12px max(16px, env(safe-area-inset-bottom)); }
.qshow-bar div { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: center; }
.qshow-bar b { font-size: 20px; font-weight: 500; }
.qshow-bar span { font-size: 14px; color: var(--rosa); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qshow-bar button { width: 52px; height: 52px; border-radius: 26px; border: 0; background: rgba(255,255,255,.12); color: var(--beige); font-size: 30px; cursor: pointer; }
.qshow-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px 10px; }
.qshow-top span { flex: 1; font-size: 14px; color: var(--rosa); }
.qshow-top a, .qshow-top button { width: 44px; height: 44px; border-radius: 22px; border: 0; background: rgba(255,255,255,.12); color: var(--beige); display: grid; place-items: center; cursor: pointer; }
.qshow-top svg { width: 20px; height: 20px; }
.up-ic.extra { border-radius: 18px 9px 18px 9px; background: var(--vinrod); color: var(--beige); }
.up-link { align-self: flex-start; }
.up-extra-edit { display: flex; flex-direction: column; gap: 6px; padding: 10px; margin-bottom: 10px; border: 1px solid var(--beige-3); border-radius: 14px; background: var(--beige-2); }
.up-extra-edit .copybox .input { flex: 1; min-width: 0; }
.qmap .leaflet-control-layers { border: 0; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.2); background: var(--beige-2); font: 500 13px/1.2 var(--sans); }
.qmap .leaflet-control-layers-expanded { padding: 4px 8px; }
.qmap .leaflet-control-layers label { display: flex; align-items: center; gap: 2px; min-height: 28px; cursor: pointer; }
.qmap .leaflet-control-layers-base { display: flex; gap: 8px; }
.qmap .leaflet-control-layers input { accent-color: var(--vinrod); margin: 0 4px 0 0; }
.qmap-wrap { position: relative; }
.qmap-big { height: min(60vh, 560px); min-height: 280px; }
.qmap-full { position: absolute; left: 10px; bottom: 10px; z-index: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border: 0; border-radius: 999px; background: var(--svart); color: var(--beige); font-size: 13px; font-weight: 500; cursor: pointer; }
.qmap-full svg { width: 15px; height: 15px; }
.qmap-wrap.full { position: fixed; inset: 0; z-index: 1500; background: var(--beige); }
.qmap-wrap.full .qmap-big { height: 100%; max-height: none; border-radius: 0; border: 0; }
.qmap-wrap.full .qmap-full { top: max(10px, env(safe-area-inset-top)); bottom: auto; left: auto; right: 10px; top: auto; bottom: max(24px, env(safe-area-inset-bottom)); }
.qmap .leaflet-marker-draggable { cursor: grab; }
.qtip { font: 13px/1.3 var(--sans); border-radius: 10px; border: 0; padding: 6px 10px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.qtip b { font-weight: 500; }
.qtip span { color: var(--text-2); }
.qlink { margin-bottom: 0; }
.qcap-l { display: block; margin: 12px 0 4px; }
.qshow-cap { font-size: 17px; line-height: 1.35; margin: 4px 0 2px; color: var(--beige); white-space: pre-line; }
.qgal-cap { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.absence-card { background: var(--rosa); border-radius: 24px 24px 72px 24px; padding: 20px 18px 18px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.absence-card h3 { font-size: 24px; line-height: 1.1; }
.absence-card p { line-height: 1.35; }
.absence-card .checkin-kicker { align-self: flex-start; margin-bottom: 0; }
.abs-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.abs-r { min-height: 48px; border-radius: 14px; border: 2px solid var(--vinrod); background: var(--beige-2); color: var(--vinrod); font-weight: 500; cursor: pointer; padding: 6px; }
.abs-r.on { background: var(--vinrod); color: var(--beige); }
.absence-card .input { background: var(--beige-2); }
.abs-reply { display: block; color: var(--vinrod); font-weight: 500; }

/* Tidsschema för träffen – bara ledare */
.sched-card { background: var(--beige-2); border: 1px solid var(--beige-3); border-radius: 18px 18px 18px 48px; padding: 16px; margin-bottom: 16px; }
.sched-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sched-head h3 { margin: 0 0 2px; font-size: 20px; font-weight: 500; }
.sched-head .small { display: inline-flex; align-items: center; gap: 4px; }
.sched-head .small svg { width: 14px; height: 14px; }
.sched { list-style: none; margin: 0; padding: 0; }
.sched li { display: flex; gap: 12px; padding: 10px 8px; border-top: 1px solid var(--beige-3); }
.sched li:first-child { border-top: 0; }
.sched li.now { background: var(--rosa); border-radius: 12px; border-top-color: transparent; }
.sched li.now + li { border-top-color: transparent; }
.sched-time { flex: none; width: 48px; font-variant-numeric: tabular-nums; font-weight: 500; }
.sched-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.sched-badge { align-self: flex-start; padding: 1px 8px; border-radius: 999px; background: var(--vinrod); color: var(--beige); font-size: 12px; font-weight: 500; }
.sched-who { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--text-2); }
.sched-who svg { width: 15px; height: 15px; flex: none; }
.sched-note { font-size: 14px; color: var(--text-2); white-space: pre-line; }
.sched-edit { display: flex; flex-direction: column; gap: 6px; padding: 10px; margin-bottom: 10px; border: 1px solid var(--beige-3); border-radius: 14px; background: var(--beige-2); }
.sched-edit-top { display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.sched-edit-top .sched-edit-time { width: 140px; }
.checkin-sched { margin-top: 8px; font-size: 15px; color: var(--rosa); overflow-wrap: anywhere; }

/* ================================================ Lägerappen */
.brand-mark { width: 34px; height: 34px; border-radius: 9px; border-top-right-radius: 17px; background: var(--beige); color: var(--vinrod); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 20px; height: 20px; }
.brand-mark.dark { background: var(--vinrod); color: var(--beige); }
.auth-top .brand { margin-bottom: 40px; }
.hero-text { position: relative; z-index: 1; margin-top: 14px; line-height: 1.35; color: var(--beige); }
.hero-text a { color: var(--rosa); }
.alert-card { border-left: 4px solid var(--orange); margin-bottom: 10px; align-items: center; text-decoration: none; color: inherit; }
.push-card { margin-bottom: 10px; }
a.card { text-decoration: none; color: inherit; }
.quiz-go { align-items: center; background: var(--svart); color: var(--beige); border-color: var(--svart); margin-bottom: 10px; }
.quiz-go .meta { color: var(--rosa); }
.quiz-go > svg { width: 22px; height: 22px; flex: none; color: var(--rosa); }
.quiz-go .qdot { width: 18px; height: 18px; flex: none; }
.now-card { align-items: center; }
.now-time { flex: none; width: 66px; height: 66px; border-radius: 14px; border-top-right-radius: 33px; background: var(--beige); border: 1px solid var(--beige-3); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.now-time span { font-size: 12px; color: var(--text-2); }
.now-time b { font-size: 19px; font-weight: 500; margin-top: 2px; }
.now-card.now .now-time { background: var(--vinrod); border-color: var(--vinrod); color: var(--beige); }
.now-card.now .now-time span { color: var(--rosa); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.post { align-items: flex-start; }
.post-body { margin-top: 6px; line-height: 1.35; overflow-wrap: anywhere; }
.post-form { display: block; }
.post-form .body { width: 100%; }

/* Schema */
.day-tabs button { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 58px; padding-top: 6px; padding-bottom: 6px; line-height: 1.1; }
.day-tabs button span { text-transform: lowercase; }
.day-tabs button span:first-letter { text-transform: uppercase; }
.day-tabs button small { font-size: 11px; opacity: .75; }
.day-title { font-size: 20px; margin: 4px 0 16px; }
.day-title:first-letter { text-transform: uppercase; }
.timeline { display: grid; gap: 8px; }
.tl-row { display: flex; gap: 12px; align-items: stretch; }
.tl-time { flex: none; width: 52px; padding-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.tl-time b { font-weight: 500; font-size: 16px; }
.tl-time span { font-size: 13px; color: var(--text-2); }
.tl-card { flex: 1; min-width: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--beige-2); border: 1px solid var(--beige-3); border-radius: var(--radius); padding: 13px 14px; display: flex; flex-direction: column; gap: 4px; }
.tl-card .chip { align-self: flex-start; margin-bottom: 2px; }
.tl-card h3 { overflow-wrap: anywhere; }
.tl-card .meta { color: var(--text-2); font-size: 14px; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.tl-card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.tl-card .meta svg { width: 14px; height: 14px; }
.tl-card.ws { background: var(--rosa); border-color: var(--rosa); }
.tl-row.now .tl-card { border: 2px solid var(--vinrod); }
.tl-row.now .tl-time b { color: var(--vinrod); font-weight: 700; }
.tl-row.past { opacity: .55; }
.tl-desc { margin-top: 6px; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }

/* Workshops */
.ws-slot { margin-bottom: 28px; }
.ws-slot-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ws-slot-head h2 { font-size: 22px; }
.ws-slot-head span:first-letter { text-transform: uppercase; }
.wish { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; align-items: center; }
.wish:disabled { cursor: default; }
.wish-no { flex: none; width: 40px; height: 40px; border-radius: 12px; border-top-right-radius: 20px; border: 2px dashed var(--beige-3); display: grid; place-items: center; font-weight: 700; font-size: 18px; color: var(--beige); }
.wish:disabled .wish-no { display: none; }
.wish.picked { background: var(--rosa); border-color: var(--rosa); }
.wish.picked .wish-no { background: var(--vinrod); border: 2px solid var(--vinrod); }
.wish-desc { margin: 2px 0 4px; line-height: 1.3; }
.ws-card { display: block; }
.ws-card summary { list-style: none; cursor: pointer; display: flex; }
.ws-card summary::-webkit-details-marker { display: none; }
.ws-card[open] summary h3 { color: var(--vinrod); }
.names { margin: 10px 0 0; padding-left: 22px; line-height: 1.6; columns: 2; column-gap: 20px; font-size: 15px; }
.name-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.name-chip { border: 1px solid var(--beige-3); background: #fff; border-radius: 999px; padding: 6px 11px; font-size: 14px; cursor: pointer; color: inherit; }
.name-chip.c1 { background: var(--vinrod); border-color: var(--vinrod); color: var(--beige); }
.name-chip.c2, .name-chip.c3 { background: var(--rosa); border-color: var(--rosa); }
.name-chip.c0 { background: #fff; }
.legend-row { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; }
.legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.legend-row i.name-chip { display: inline-block; width: 18px; height: 12px; padding: 0; cursor: default; }

/* Ledarchatten */
.chat-head { padding-bottom: 10px; }
.chat-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: 80px; }
.chat-day { align-self: center; font-size: 12px; color: var(--text-2); margin: 10px 0 2px; }
.chat-day:first-letter { text-transform: uppercase; }
.msg { align-self: flex-start; max-width: 82%; background: var(--beige-2); border: 1px solid var(--beige-3); border-radius: 18px 18px 18px 4px; padding: 8px 12px 6px; user-select: text; -webkit-touch-callout: none; }
.msg b { display: block; font-size: 13px; font-weight: 700; color: var(--vinrod); margin-bottom: 2px; }
.msg p { line-height: 1.35; overflow-wrap: anywhere; }
.msg span { display: block; text-align: right; font-size: 11px; color: var(--text-2); margin-top: 3px; }
.msg.mine { align-self: flex-end; background: var(--vinrod); border-color: var(--vinrod); color: var(--beige); border-radius: 18px 18px 4px 18px; }
.msg.mine span { color: var(--rosa); }
.msg.mine a { color: var(--rosa); }
.chat-form { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 25; display: flex; gap: 8px; align-items: flex-end; padding: 10px 16px; background: var(--beige); border-top: 1px solid var(--beige-3); max-width: 760px; margin: 0 auto; }
.chat-form textarea { flex: 1; min-width: 0; resize: none; border: 2px solid var(--beige-3); border-radius: 22px; padding: 10px 14px; background: #fff; line-height: 1.3; max-height: 140px; outline: none; }
.chat-form textarea:focus { border-color: var(--vinrod); }
.chat-form .btn { flex: none; width: 48px; min-height: 48px; padding: 0; border-radius: 50%; }
.chat-form .btn svg { width: 20px; height: 20px; }

/* Admin */
.pending-card { border-left: 4px solid var(--orange); }
.role-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.role-btns .btn { flex: 1 1 auto; }
.role-btns .icon-btn { color: #a3001f; }
.dup-note { background: #ffe1d9; border-radius: 8px; padding: 8px 10px; margin-top: 8px; line-height: 1.3; }
.invite { background: var(--svart); color: var(--beige); border-color: var(--svart); }
.invite .btn.secondary { color: var(--rosa); border-color: var(--rosa); }
.invite .qcode { color: var(--rosa); }
.danger-zone { border: 2px solid #a3001f; }
.seg button:disabled { opacity: .5; }
.steps-list { margin: 0; padding-left: 22px; line-height: 1.5; }
.steps-list svg { width: 18px; height: 18px; vertical-align: -3px; }
@media (max-width: 360px) {
  .bottomnav a { font-size: 11px; }
  .names { columns: 1; }
  .stat b { font-size: 24px; }
}
button.card { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.quiz-go h3 { color: var(--beige); }
.role-btns .icon-btn { margin-left: auto; }
/* Grupper */
.chip.grp { background: var(--guld); border-color: var(--guld); color: var(--svart); }
.tl-chips { margin: 0 0 2px; gap: 4px; }
.tl-card .tl-chips .chip { margin: 0; }
.grp-pick { display: grid; gap: 6px; }
.grp-pick.members { max-height: 46vh; overflow-y: auto; padding-right: 2px; }
.grp-answer { align-items: center; }
.grp-answer h3 { margin: 0; font-size: 19px; }
.grp-answer > svg { width: 22px; height: 22px; flex: none; color: var(--vinrod); }
.grp-sub { font-size: 16px; margin: 18px 0 8px; }
.card > svg { width: 20px; height: 20px; flex: none; color: var(--vinrod); align-self: center; }
.grp-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.grp-toggle { position: relative; cursor: pointer; }
.grp-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.grp-toggle span { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--beige-3); background: #fff; font-weight: 500; font-size: 15px; }
.grp-toggle input:checked + span { background: var(--vinrod); border-color: var(--vinrod); color: var(--beige); }
.grp-toggle input:checked + span::before { content: '✓'; font-weight: 700; }
.grp-toggle input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
/* Workshops: rangordning, platser och fördelning */
.ws-toggle { align-items: flex-start; margin-bottom: 14px; border-color: var(--rosa); }
.ws-toggle input { margin-top: 3px !important; }
.ws-toggle span { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.ws-toggle small { color: var(--text-2); font-size: 13px; }
.rank-table, .cap-table { margin-top: 12px; overflow-x: auto; border: 1px solid var(--beige-3); border-radius: 12px; background: #fff; }
.rank-table table, .cap-table table { border-collapse: collapse; width: 100%; font-size: 14px; }
.rank-table th, .rank-table td, .cap-table th, .cap-table td { padding: 7px 6px; text-align: center; border-bottom: 1px solid var(--beige-3); white-space: nowrap; }
.rank-table th, .cap-table th { font-weight: 500; font-size: 12px; color: var(--text-2); background: var(--beige-2); }
.rank-table td:first-child, .cap-table td:first-child, .rank-table th:first-child, .cap-table th:first-child { text-align: left; white-space: normal; min-width: 84px; font-weight: 500; }
.rank-table td.first { background: var(--rosa); font-weight: 700; color: var(--vinrod); }
.cap-table input { width: 52px; min-height: 38px; text-align: center; border: 2px solid var(--beige-3); border-radius: 10px; font-size: 16px; padding: 4px; background: #fff; }
.cap-table input:focus { border-color: var(--vinrod); outline: none; }
.cap-table td small { color: var(--text-2); font-size: 12px; }
.cap-table td.over { color: #a3001f; font-weight: 700; }
.cap-table tr.sum td { background: var(--beige-2); font-weight: 500; }
.cap-table tr:last-child td, .rank-table tr:last-child td { border-bottom: 0; }
.warn-text { color: #a3001f; margin-top: 8px; line-height: 1.35; }
.all-ranks { display: grid; gap: 8px; margin-top: 10px; font-size: 14px; line-height: 1.35; }
.all-ranks div { display: flex; flex-direction: column; }
.all-ranks span { color: var(--text-2); }
.name-chip small { font-size: 11px; opacity: .8; margin-left: 2px; }
button.card:disabled { opacity: .5; cursor: not-allowed; }
.wish-list .wish:not(:disabled) { cursor: pointer; }
.cap-table th { white-space: normal; line-height: 1.15; }
.cap-table th, .cap-table td { padding: 6px 4px; }
.cap-table input { width: 46px; }
.rank-table th, .rank-table td { padding: 7px 4px; }
@media (max-width: 380px) {
  .rank-table table, .cap-table table { font-size: 13px; }
  .rank-table td:first-child, .cap-table td:first-child, .rank-table th:first-child, .cap-table th:first-child { min-width: 0; }
  .rank-table th, .rank-table td { padding: 6px 3px; }
  .cap-table input { width: 40px; font-size: 15px; }
  .flow-step { padding: 12px 10px; }
}
.pass-lead { display: grid; gap: 4px; margin-bottom: 10px; }
.pass-lead span { font-size: 14px; font-weight: 500; }
.pass-lead small { font-weight: 400; color: var(--text-2); margin-left: 4px; }
.lead-rows { display: grid; gap: 2px; margin-top: 6px; font-size: 13px; color: var(--text-2); line-height: 1.3; }
.lead-rows b { font-weight: 500; color: var(--svart); }
/* GPS-quiz som workshop */
.wsq { border: 2px solid var(--vinrod); margin-bottom: 10px; }
.wsq.on { background: var(--svart); color: var(--beige); border-color: var(--svart); }
.wsq.on .meta, .wsq.on .small { color: var(--rosa); }
.wsq h3 { margin-top: 2px; }
.wsq-teams { display: grid; gap: 6px; margin-top: 12px; }
.wsq-teams div { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.wsq-teams span:last-child { margin-left: auto; color: var(--rosa); font-size: 14px; }
.wsq.on .btn.dark { background: var(--beige); color: var(--svart); border-color: var(--beige); }
/* Ansvariga */
.resp-box { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; line-height: 1.35; }
.resp-box:empty { display: none; }
.resp { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.resp svg { width: 14px; height: 14px; }
.resp.ok { color: var(--vinrod); font-weight: 500; }
.resp.none { color: var(--text-2); }
.resp.many { color: #a3001f; }
.resp .link-btn { font-size: 13px; padding: 2px 4px; }
.resp-miss { font-style: normal; color: #a3001f; font-size: 13px; }
.tl-card .resp-line { margin-top: 2px; }
.resp-list { margin-bottom: 8px; }
.tl-card .meta.resp-line span { display: block; line-height: 1.35; }
.tl-card .meta.resp-line svg { display: inline; vertical-align: -2px; margin-right: 4px; }
