:root{
  --red:#78101d;
  --red-dark:#4e0710;
  --gold:#d6a23d;
  --gold-soft:#f5dfad;
  --cream:#fff8eb;
  --paper:#f3eadb;
  --ink:#1f1712;
  --muted:#75685c;
  --line:#e8d5ad;
  --shadow:0 18px 45px rgba(73,37,14,.16);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#e9edf4;color:var(--ink)}
body{display:flex;justify-content:center}
button,select,a{font:inherit}
button{cursor:pointer}
.app-shell{width:100%;max-width:480px;min-height:100svh;background:linear-gradient(180deg,#fff9ef 0%,#f4ead8 60%,#efe0c6 100%);position:relative;overflow:hidden;padding-bottom:96px;box-shadow:0 0 0 1px rgba(0,0,0,.04)}
.app-header{text-align:center;padding:24px 22px 18px;border-bottom:1px solid rgba(140,91,30,.16);position:relative;background:radial-gradient(circle at 50% -20%,#fff 0,#fff8eb 45%,#f8ead0 100%)}
h1{font-family:Georgia,serif;font-size:31px;line-height:1.05;margin:4px 0 6px;color:var(--red-dark);letter-spacing:-.5px}
.app-header p{margin:0;color:#4b3f35;font-size:14px}
.install-btn{margin-top:12px;border:0;border-radius:999px;background:var(--red);color:white;padding:10px 16px;font-weight:800;box-shadow:0 8px 20px rgba(120,16,29,.22)}
.view{display:none;padding:18px}.active-view{display:block}
.section-title{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.section-title span{width:4px;height:24px;border-radius:9px;background:var(--gold)}
h2{font-size:21px;line-height:1.1;margin:0;font-weight:850}
.next-card{background:rgba(255,255,255,.86);border:1px solid rgba(216,176,98,.35);border-radius:25px;padding:16px;display:grid;grid-template-columns:58px 1fr;gap:14px;width:100%;text-align:left;box-shadow:var(--shadow);backdrop-filter:blur(8px)}
.next-info{min-width:0}.tag{display:inline-flex;align-items:center;border-radius:999px;background:var(--gold-soft);color:#3d2910;font-size:12px;font-weight:850;padding:5px 10px;margin-bottom:8px}
.next-info h3{font-size:25px;line-height:1.02;margin:2px 0 8px;font-weight:900;letter-spacing:-.3px}
.next-info .match{font-weight:850;color:var(--red);margin-bottom:10px}
.meta{display:grid;gap:8px;margin:10px 0;color:#43372d}
.meta div{display:flex;gap:9px;align-items:flex-start;font-size:14px;line-height:1.25}
.desc{font-size:14px;line-height:1.35;color:#3a2b21;margin:10px 0 14px}
.card-arrow{margin-top:12px;color:var(--red);font-weight:850}
.event-icon{width:52px;height:52px;border-radius:50%;background:#fff7e8;display:grid;place-items:center;font-size:28px;border:1px solid rgba(214,162,61,.3)}
.event-icon.large{width:52px;height:52px;font-size:30px;border-radius:18px;background:#fff4dc;box-shadow:inset 0 0 0 1px rgba(213,158,49,.25)}
.list-block{margin-top:24px}.list-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.list-head select{border:0;border-radius:999px;background:#f5e1b1;color:#34220c;font-weight:800;padding:10px 13px}
.event-list{display:grid;gap:10px}
.event-card{width:100%;border:1px solid rgba(159,120,59,.22);background:rgba(255,255,255,.72);border-radius:17px;padding:13px;display:grid;grid-template-columns:52px 1fr 18px;gap:12px;text-align:left;align-items:center;box-shadow:0 7px 18px rgba(70,41,14,.07)}
.event-card h3{font-size:17px;margin:0 0 3px;font-weight:900}.event-card p{margin:0;color:#4d4138;font-size:14px;line-height:1.32}.chev{font-size:28px;color:#9a7c45}
.muted-card{opacity:.72}
.date-box{width:54px;min-width:54px;height:54px;border-radius:16px;background:#f5e1b1;display:grid;place-items:center;font-weight:950;color:#3b260e;text-transform:lowercase;text-align:center}
.date-box.small{font-size:14px;line-height:1.05}
.page-card{background:rgba(255,255,255,.72);border:1px solid rgba(159,120,59,.22);border-radius:24px;padding:18px;box-shadow:var(--shadow)}
.warning{font-weight:850;color:var(--red)}
details{background:rgba(255,255,255,.45);border:1px solid rgba(159,120,59,.2);border-radius:18px;padding:12px}
summary{font-weight:900;color:var(--red);cursor:pointer}
.archive-list{margin-top:12px}
.empty{background:rgba(255,255,255,.62);border:1px solid rgba(159,120,59,.2);border-radius:18px;padding:16px;color:var(--muted)}
.bottom-nav{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:100%;max-width:480px;height:78px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#8e1425,#640a15);display:flex;justify-content:space-around;box-shadow:0 -12px 30px rgba(60,0,0,.2);z-index:10}
.nav-btn{border:0;background:transparent;color:#f7e7c4;display:grid;place-items:center;gap:3px;min-width:0;flex:1;border-radius:16px;padding:5px 2px}.nav-btn span{font-size:23px}
.nav-btn.active{background:rgba(255,255,255,.12);color:#fff}
.sheet-dialog{border:0;border-radius:30px;padding:0;background:transparent;width:100%;max-width:480px;margin:auto;overflow:visible}.sheet-dialog::backdrop{background:rgba(17,9,4,.45);backdrop-filter:blur(8px)}
.sheet{background:linear-gradient(180deg,#fffaf0 0%,#f6ead6 100%);border-radius:30px;max-height:88svh;overflow:hidden;padding:0;box-shadow:0 -20px 60px rgba(0,0,0,.25);position:relative;display:flex;flex-direction:column;margin:0 12px}.close{position:sticky;top:0;float:right;z-index:2;border:0;background:#f0d8a1;border-radius:50%;width:44px;height:44px;font-size:30px;line-height:1;color:#3a220c}
.detail-poster-wrap{background:transparent;border-radius:24px;overflow:hidden;box-shadow:0 10px 24px rgba(0,0,0,.16);margin:8px 0 18px;width:100%}
.detail-poster{width:100%!important;max-width:100%;height:auto!important;display:block!important;border-radius:24px!important;object-fit:contain!important;pointer-events:none;background:#fff8eb}
.modal-title{font-family:Georgia,serif;font-size:32px;line-height:1.03;color:var(--red-dark);margin:8px 20px 4px}
.modal-sub{font-weight:900;color:var(--red);margin:0 20px 14px}.info-grid{display:grid;gap:10px;margin:0 20px}.info-row{display:flex;gap:10px;padding:11px 0;border-bottom:1px solid rgba(150,113,51,.2)}.description{line-height:1.48;margin:18px 20px;color:#36271f}.modal-actions{margin:0 20px 8px}.btn{border:0;text-decoration:none;border-radius:15px;padding:11px 14px;font-weight:850;display:inline-flex;align-items:center;gap:6px}.btn.primary{background:linear-gradient(180deg,#8f1425,#620a15);color:white;box-shadow:0 8px 18px rgba(120,16,29,.22)}
.loge-detail-icon{width:74px;height:74px;border-radius:24px;background:#fff4dc;display:grid;place-items:center;font-size:42px;color:var(--red);margin:20px auto 12px;box-shadow:inset 0 0 0 1px rgba(213,158,49,.25)}
@media (max-width:380px){h1{font-size:27px}.next-card{grid-template-columns:48px 1fr}.event-icon,.event-icon.large{width:48px;height:48px}.list-head{align-items:flex-start;flex-direction:column}.list-head select{width:100%}}


/* Fremhævet næste aktivitet og Om-side */
.next-block:first-child .next-card {
  padding: 22px 18px !important;
  border-radius: 30px !important;
  box-shadow: 0 24px 58px rgba(73,37,14,.20) !important;
  background:
    radial-gradient(circle at 14% 18%, rgba(214,162,61,.22), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,248,235,.88)) !important;
}

.next-block:first-child .event-icon.large {
  width: 62px !important;
  height: 62px !important;
  font-size: 36px !important;
}

.next-block:first-child .next-info h3 {
  font-size: 29px !important;
}

.next-block:first-child .match {
  font-size: 17px !important;
}

.next-block:first-child .tag {
  font-size: 13px !important;
  padding: 6px 12px !important;
}

.page-card p {
  font-size: 16px;
  line-height: 1.5;
}

.page-card .warning {
  margin-top: 18px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(120,16,29,.08);
}

/* Initiativer */
.intro-card{display:grid;gap:10px}
.wide-btn{width:100%;justify-content:center;text-align:center}
.initiative-form{display:grid;gap:14px;margin:10px 0 4px;clear:both}
.initiative-form label{display:grid;gap:6px;font-weight:850;color:#39271d}
.initiative-form input,.initiative-form textarea,.initiative-form select{width:100%;border:1px solid rgba(159,120,59,.28);border-radius:15px;padding:12px 13px;background:rgba(255,255,255,.78);color:var(--ink);outline:none;font:inherit}
.initiative-form input:focus,.initiative-form textarea:focus,.initiative-form select:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(214,162,61,.18)}
.form-help{color:#4d4138;line-height:1.45;margin:4px 0 12px}


.participants-box {
  margin: 18px 20px;
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(159,120,59,.22);
}

.participants-box h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.participants-box ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.participants-box li {
  font-weight: 700;
}

.sheet-status-note {
  margin: 8px 20px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}


/* Knapper i dialoger */
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Modaler og detaljevisning */
.sheet::after {
  content: "";
  display: block;
  height: 2px;
}

/* Gør de nye VM-billeder pæne i detaljevisningen */
.detail-poster[src$=".svg"] {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Plakater og afrundede kort */
.detail-poster-wrap,
.detail-poster,
.participants-box,
.event-card,
.next-card,
.page-card,
.empty {
  border-radius: 24px !important;
}

.participant-count {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  margin-top: 7px !important;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(120,16,29,.08);
  color: var(--red) !important;
  font-weight: 900 !important;
}

@media (max-width: 520px) {
  .sheet {
    margin: 0 8px !important;
    max-height: 90svh !important;
  }
}


/* Headerlogo */
.app-header .chainmark-img {
  display: block !important;
  width: 96px !important;
  max-width: 32vw !important;
  height: auto !important;
  margin: 0 auto 8px !important;
  object-fit: contain !important;
  filter: none !important;
  mix-blend-mode: multiply;
}


/* Loading-skærm */
.loading-screen{
  position:fixed;
  inset:0;
  z-index:99999;
  display:grid;
  place-items:center;
  background:linear-gradient(180deg,#fbefd8 0%,#efe1c7 100%);
  transition:opacity .25s ease, visibility .25s ease;
}

.loading-screen.hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.loading-card{
  display:grid;
  place-items:center;
  gap:12px;
  padding:28px 30px;
  text-align:center;
}

.loading-chain{
  width:112px;
  max-width:38vw;
  mix-blend-mode:multiply;
}

.loading-title{
  font-family:Georgia,serif;
  color:#68101b;
  font-size:28px;
  font-weight:800;
}

.loading-text{
  color:#4d4138;
  font-weight:700;
}

.loading-spinner{
  width:34px;
  height:34px;
  border-radius:50%;
  border:4px solid rgba(120,16,29,.18);
  border-top-color:#8d0d1f;
  animation:concordiaSpin .8s linear infinite;
}

@keyframes concordiaSpin{
  to{transform:rotate(360deg)}
}

.form-status{min-height:20px;margin:2px 0 0;color:var(--red);font-weight:850;line-height:1.35}
.btn[disabled],button[disabled]{opacity:.65;cursor:wait}
#initiativeSubmitModal .sheet,#joinModal .sheet{border-radius:30px!important}


.sheet-scroll {
  max-height: 88svh;
  overflow-y: auto;
  padding: 8px 18px 30px;
  border-radius: 30px;
  box-sizing: border-box;
}

.sheet .close {
  position: absolute !important;
  top: 10px !important;
  right: 16px !important;
  z-index: 10 !important;
  float: none !important;
}

@media (max-width: 520px) {
  .sheet {
    margin: 0 8px !important;
    max-height: 90svh !important;
  }

  .sheet-scroll {
    max-height: 90svh;
  }
}

/* Indlæsning af initiativer */
.initiative-loading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(120,16,29,.18);
  border-top-color: #78101d;
  border-radius: 50%;
  animation: spin .85s linear infinite;
  flex: 0 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


.app-version{
  margin-top: 16px;
  font-size: .86rem;
  color: var(--muted);
  text-align: center;
}


/* QR-kode på Om-siden */
.about-qr-block{
  margin: 20px 0 6px;
  padding: 15px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 15%, rgba(214,162,61,.18), transparent 42%),
    rgba(255,248,235,.72);
  border: 1px solid rgba(159,120,59,.22);
  display: grid;
  gap: 14px;
}

.about-qr-text h3{
  margin: 0 0 5px;
  color: var(--red-dark);
  font-size: 19px;
  font-weight: 900;
}

.about-qr-text p{
  margin: 0;
  color: #4d4138;
}

.qr-card{
  margin: 0 auto;
  width: min(245px, 100%);
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(159,120,59,.24);
  box-shadow: 0 12px 28px rgba(70,41,14,.10);
  text-align: center;
}

.qr-card img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
}

.qr-card figcaption{
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.qr-fallback{
  display: none;
  padding: 18px 12px;
  border-radius: 16px;
  background: rgba(120,16,29,.08);
  color: var(--red-dark);
  line-height: 1.35;
  font-size: 14px;
  font-weight: 750;
}

.qr-card.qr-missing .qr-fallback{
  display: block;
}

.qr-card.qr-missing figcaption{
  display: none;
}


/* Tilmelding */
.signup-page-card{display:grid;gap:12px}
.signup-intro{margin:0;color:#4d4138;line-height:1.45}
.signup-member-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}
.signup-member-row select{width:100%;border:1px solid rgba(159,120,59,.28);border-radius:15px;padding:12px 14px;background:rgba(255,255,255,.9);color:var(--ink);font:inherit}
.signup-sync-status,.signup-save-status{margin:0;color:var(--muted);font-size:14px;line-height:1.4}
.signup-stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}
.signup-stat-card{background:rgba(255,255,255,.72);border:1px solid rgba(159,120,59,.22);border-radius:24px;padding:18px 12px;text-align:center;box-shadow:var(--shadow)}
.signup-stat-card span{display:block;font-size:30px;line-height:1;font-weight:950;color:var(--red);margin-bottom:6px}
.signup-stat-card small{display:block;color:#5b4d42;font-weight:700}
.signup-list-block{margin-top:22px}
.signup-events-list{display:grid;gap:12px}
.signup-event-card{width:100%;border:1px solid rgba(159,120,59,.22);background:rgba(255,255,255,.72);border-radius:24px;padding:15px;display:grid;grid-template-columns:58px 1fr auto;gap:14px;align-items:start;text-align:left;box-shadow:0 7px 18px rgba(70,41,14,.07);cursor:pointer}
.signup-event-card:hover{transform:translateY(-1px)}
.signup-date-badge{width:58px;height:66px;border-radius:18px;background:#f5e1b1;display:grid;place-items:center;align-content:center;font-weight:900;color:#3b260e;border:1px solid rgba(159,120,59,.22)}
.signup-date-badge .day{font-size:28px;line-height:1}.signup-date-badge .month{text-transform:lowercase;font-size:13px;line-height:1.05}
.signup-card-body h3{font-size:18px;margin:0 0 4px;font-weight:900}
.signup-card-meta,.signup-card-description,.signup-card-counts,.signup-deadline-text{margin:0;color:#4d4138;font-size:14px;line-height:1.35}
.signup-card-description{margin-top:5px}
.signup-card-counts{margin-top:8px;font-weight:850;color:var(--red-dark)}
.signup-deadline-text{margin-top:7px;font-weight:800}.signup-deadline-text.locked{color:var(--red)}
.signup-status-pill{justify-self:end;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:900;white-space:nowrap;background:#f3eadc;color:#6d5c4e}
.signup-status-pill.status-yes{background:#e6f2ea;color:#206343}.signup-status-pill.status-meal-no{background:#fff0c7;color:#8b5a00}.signup-status-pill.status-no{background:#f7dfe2;color:#7a1322}
.signup-event-card.locked{opacity:.84}
.signup-calendar-row{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;margin:10px 0 0}
.signup-calendar-row .signup-calendar-btn{min-height:34px;padding:7px 10px;border-radius:999px;font-size:12px;line-height:1.1;font-weight:850;justify-content:center;white-space:nowrap;background:rgba(245,223,173,.58);border-color:rgba(159,120,59,.20)}
.signup-calendar-row .signup-calendar-btn span[aria-hidden="true"]{font-size:13px;line-height:1}
.signup-calendar-row .signup-calendar-btn:hover{background:rgba(245,223,173,.82)}
.signup-sheet .modal-title{margin:4px 20px 4px}.signup-modal-date{margin:8px 20px 6px}.signup-modal-description{margin-top:10px}
.signup-choice-block{padding:16px;margin:14px 20px 0;border:1px solid rgba(159,120,59,.22);border-radius:20px;background:rgba(255,255,255,.62)}
.signup-choice-block h3{margin:0 0 10px;font-size:17px}
.signup-choice-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.signup-choice-btn{border:1px solid rgba(159,120,59,.22);background:#f5eadb;color:#2f241b;border-radius:16px;padding:12px 14px;font-weight:850;cursor:pointer}
.signup-choice-btn.active{background:linear-gradient(180deg,#8f1425,#620a15);color:#fff;box-shadow:0 8px 18px rgba(120,16,29,.22)}
.signup-choice-btn:disabled{opacity:.5;cursor:not-allowed}
.signup-checkline{display:flex;align-items:center;gap:10px;font-weight:800;color:#39271d}
.signup-checkline input{width:auto}
.signup-guest-details{display:grid;gap:12px;margin-top:14px}
.signup-guest-count-label{display:grid;gap:7px;font-weight:850;color:#39271d}
.signup-guest-count-label select{width:100%;border:1px solid rgba(159,120,59,.28);border-radius:15px;padding:12px 13px;background:rgba(255,255,255,.9);color:var(--ink);font:inherit;font-weight:800}
.signup-optional{font-size:12px;font-weight:700;color:var(--muted)}
.signup-guest-details input,.signup-note-label textarea{width:100%;border:1px solid rgba(159,120,59,.28);border-radius:15px;padding:12px 13px;background:rgba(255,255,255,.9);color:var(--ink);font:inherit}
.signup-note-label{display:grid;gap:6px;margin:14px 20px 0;font-weight:850;color:#39271d}
#signupGuestName,#signupNoteInput{font:inherit}
@media (max-width:520px){.signup-member-row{grid-template-columns:1fr}.signup-stats-grid{grid-template-columns:repeat(3,1fr)}.signup-stat-card{padding:14px 8px}.signup-stat-card span{font-size:24px}.signup-event-card{grid-template-columns:52px 1fr;gap:12px}.signup-status-pill{grid-column:2;justify-self:start}.signup-choice-row{grid-template-columns:1fr}}
@media (max-width:360px){.signup-calendar-row{flex-wrap:wrap}.signup-calendar-row .signup-calendar-btn{font-size:11px;padding:7px 9px}}


/* Galleri og privat billedupload */
.nav-btn small{font-size:11px}

.gallery-intro-card{display:grid;gap:8px}
.gallery-intro-card p{margin:0}
.gallery-title-row{display:flex;align-items:center;justify-content:space-between;gap:14px}
.gallery-title-row .section-title{margin:0}
.gallery-upload-btn{white-space:nowrap;padding:10px 13px}
.gallery-sync-status{color:var(--muted);font-size:14px!important;font-weight:750}
.gallery-list-block{margin-top:16px}
.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.gallery-card{position:relative;display:block;width:100%;aspect-ratio:1/1;border:0;padding:0;border-radius:20px;overflow:hidden;background:#eadcc4;box-shadow:0 9px 22px rgba(70,41,14,.12)}
.gallery-card img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .2s ease}
.gallery-card:active img{transform:scale(.985)}
.gallery-card span{position:absolute;left:0;right:0;bottom:0;padding:22px 10px 9px;background:linear-gradient(transparent,rgba(20,9,5,.76));color:white;text-align:left;font-size:12px;font-weight:800;line-height:1.25}
.gallery-empty{grid-column:1/-1}
.gallery-loading{grid-column:1/-1;display:grid;place-items:center;gap:10px;padding:28px;color:var(--muted);font-weight:750}
.gallery-loading .loading-spinner{width:30px;height:30px}

.gallery-file-label input[type=file]{padding:10px;background:rgba(255,255,255,.9)}
.gallery-selected-files{padding:12px 13px;border-radius:15px;background:rgba(245,223,173,.55);color:#4d3a22;font-size:14px;font-weight:750;line-height:1.35}
.gallery-upload-note{margin:0;color:var(--muted);font-size:13px;line-height:1.4}
.gallery-progress{height:8px;overflow:hidden;border-radius:999px;background:rgba(120,16,29,.13)}
.gallery-progress span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#8f1425,#d6a23d);transition:width .2s ease}

.gallery-image-dialog{border:0;padding:0;background:transparent;width:100%;max-width:900px;overflow:visible}
.gallery-image-dialog::backdrop{background:rgba(10,5,3,.88);backdrop-filter:blur(8px)}
.gallery-image-sheet{margin:0 64px;display:grid;gap:10px;place-items:center}
.gallery-image-sheet img{display:block;max-width:100%;max-height:78svh;object-fit:contain;border-radius:22px;background:#111;box-shadow:0 18px 60px rgba(0,0,0,.42)}
.gallery-image-sheet figcaption{color:white;text-align:center;font-weight:750;line-height:1.35;padding:0 10px}
.gallery-image-close{position:fixed;top:max(14px,env(safe-area-inset-top));right:16px;z-index:2;width:46px;height:46px;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:#3a220c;font-size:30px;line-height:1;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.gallery-image-nav{position:fixed;top:50%;z-index:2;width:48px;height:58px;border:0;border-radius:18px;background:rgba(255,255,255,.9);color:#3a220c;font:inherit;font-size:42px;font-weight:700;line-height:1;box-shadow:0 8px 24px rgba(0,0,0,.25);transform:translateY(-50%);display:grid;place-items:center;padding:0 0 5px;touch-action:manipulation}
.gallery-image-prev{left:max(10px,env(safe-area-inset-left))}
.gallery-image-next{right:max(10px,env(safe-area-inset-right))}
.gallery-image-nav:active{transform:translateY(-50%) scale(.94)}
.gallery-image-nav[hidden]{display:none}

@media (max-width:380px){
  .nav-btn small{font-size:10px}
  .nav-btn span{font-size:21px}
  .gallery-title-row{align-items:stretch;flex-direction:column}
  .gallery-upload-btn{width:100%;justify-content:center}
}

@media (max-width:520px){
  .gallery-image-sheet{margin:0 48px}
  .gallery-image-nav{width:42px;height:52px;border-radius:15px;font-size:37px;background:rgba(255,255,255,.82)}
}


/* Aktivitetsmapper i galleri */
.gallery-folder-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.gallery-folder-card{display:grid;grid-template-rows:auto 1fr;width:100%;padding:0;border:0;border-radius:20px;overflow:hidden;background:rgba(255,255,255,.86);box-shadow:0 9px 22px rgba(70,41,14,.12);text-align:left;color:var(--ink)}
.gallery-folder-cover{position:relative;aspect-ratio:4/3;overflow:hidden;background:#eadcc4}
.gallery-folder-cover img{width:100%;height:100%;display:block;object-fit:cover}
.gallery-folder-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 45%,rgba(30,13,7,.48))}
.gallery-folder-icon{position:absolute;z-index:1;left:10px;bottom:8px;color:#fff;font-size:25px;line-height:1;filter:drop-shadow(0 3px 5px rgba(0,0,0,.35));transform:rotate(-2deg)}
.gallery-folder-info{display:grid;gap:4px;padding:11px 12px 13px}
.gallery-folder-info strong{font-size:14px;line-height:1.25}
.gallery-folder-info span{color:var(--muted);font-size:12px;font-weight:750;line-height:1.25}
.gallery-folder-toolbar{grid-column:1/-1;display:flex;align-items:flex-start;gap:12px;padding:4px 0 8px}
.gallery-folder-toolbar h3{margin:0 0 3px;font-size:18px;line-height:1.2}
.gallery-folder-toolbar p{margin:0;color:var(--muted);font-size:13px;font-weight:750}
.gallery-back-btn{flex:0 0 auto;border:0;border-radius:999px;padding:9px 12px;background:#f5e1b1;color:#4a3214;font:inherit;font-size:13px;font-weight:850}
.gallery-images-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

@media (max-width:380px){
  .gallery-folder-grid{grid-template-columns:1fr}
  .gallery-folder-toolbar{flex-direction:column}
}


/* OneSignal og popup ved nyt indhold */
.notification-prompt-card{
  position:relative;
  margin:14px 18px 0;
  padding:14px 46px 14px 14px;
  display:grid;
  grid-template-columns:42px 1fr auto;
  align-items:center;
  gap:11px;
  border:1px solid rgba(159,120,59,.24);
  border-radius:20px;
  background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(250,229,184,.88));
  box-shadow:0 10px 26px rgba(73,37,14,.11);
}
.notification-prompt-card[hidden]{display:none}
.notification-prompt-icon,.notification-settings-icon{
  width:42px;height:42px;border-radius:14px;background:#fff4dc;
  display:grid;place-items:center;font-size:22px;
  border:1px solid rgba(213,158,49,.25);
}
.notification-prompt-copy{display:grid;gap:3px;min-width:0}
.notification-prompt-copy strong{font-size:15px;color:var(--red-dark)}
.notification-prompt-copy span{font-size:13px;line-height:1.3;color:#57493d}
.notification-prompt-btn{white-space:nowrap;padding:10px 13px}
.notification-prompt-dismiss{
  position:absolute;right:7px;top:7px;border:0;background:transparent;
  color:#806b57;font-size:22px;line-height:1;width:32px;height:32px;border-radius:50%;
}
.notification-settings{
  margin:20px 0;
  padding:16px;
  border-radius:20px;
  background:rgba(255,248,235,.84);
  border:1px solid rgba(159,120,59,.24);
}
.notification-settings-head{display:flex;gap:12px;align-items:center;margin-bottom:14px}
.notification-settings-head h3{margin:0 0 4px;font-size:19px;color:var(--red-dark)}
.notification-settings-head p{margin:0;font-size:14px;line-height:1.35;color:#514438}
.notification-help{font-size:13px!important;line-height:1.4!important;color:#6a594b;margin:10px 2px 0!important}
.btn.soft{background:#f5dfad;color:#3d2910;border:1px solid rgba(159,120,59,.22);box-shadow:none}

.notice-dialog{
  border:0;padding:0;background:transparent;width:min(92vw,390px);margin:auto;
}
.notice-dialog::backdrop{background:rgba(17,9,4,.5);backdrop-filter:blur(7px)}
.notice-card{
  position:relative;text-align:center;padding:28px 22px 22px;border-radius:26px;
  background:linear-gradient(180deg,#fffaf0,#f4e5c9);
  border:1px solid rgba(216,176,98,.42);box-shadow:0 28px 70px rgba(0,0,0,.28);
}
.notice-close{
  position:absolute;right:10px;top:10px;border:0;background:#f0d8a1;
  width:38px;height:38px;border-radius:50%;font-size:25px;color:#3a220c;
}
.notice-icon{font-size:42px;margin:2px 0 8px}
.notice-card h2{font-family:Georgia,serif;font-size:27px;color:var(--red-dark);margin:0 0 9px}
.notice-card p{font-size:15px;line-height:1.45;color:#4d4138;margin:0 0 18px}

@media (max-width:420px){
  .notification-prompt-card{grid-template-columns:38px 1fr;padding:13px 42px 13px 13px}
  .notification-prompt-btn{grid-column:1/-1;width:100%;justify-content:center}
  .notification-prompt-icon{width:38px;height:38px}
}

/* Idébank V1 */
.initiative-actions{display:grid;gap:10px;margin-top:4px}
.section-help{margin:-6px 0 12px;color:var(--muted);font-size:14px;line-height:1.35}
.idea-list{display:grid;gap:12px}
.idea-card{background:rgba(255,255,255,.72);border:1px solid rgba(159,120,59,.22);border-radius:24px;padding:15px;box-shadow:0 7px 18px rgba(70,41,14,.07);display:grid;gap:10px}
.idea-card-head{display:grid;grid-template-columns:46px 1fr;gap:11px;align-items:center}
.idea-card h3{margin:0 0 2px;font-size:18px;font-weight:950;color:var(--red-dark)}
.idea-card p{margin:0;color:#4d4138;font-size:14px;line-height:1.4}
.idea-icon{width:46px;height:46px;border-radius:17px;background:#fff4dc;display:grid;place-items:center;font-size:25px;border:1px solid rgba(214,162,61,.28)}
.idea-meta-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:13px;font-weight:800}
.status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;background:rgba(120,16,29,.08);color:var(--red);font-weight:950}
.status-pill.afstemning{background:rgba(214,162,61,.22);color:#4b310d}
.status-pill.planlagt{background:rgba(41,117,67,.12);color:#1f6639}
.status-pill.gennemført,.status-pill.gennemfort{background:rgba(31,23,18,.08);color:#4d4138}
.idea-note{padding:10px 12px;border-radius:15px;background:rgba(120,16,29,.06);font-size:13px!important}
.radio-card-group{display:grid;gap:10px}
.radio-card-group label{display:flex!important;grid-template-columns:none!important;gap:10px;align-items:flex-start;padding:12px;border:1px solid rgba(159,120,59,.22);border-radius:15px;background:rgba(255,255,255,.6);font-weight:850;color:#39271d}
.radio-card-group input{width:auto!important;margin-top:3px}
