:root {
  --sun: #ffb81c;
  --sun-dark: #e8590c;
  --sea: #0fa3b1;
  --coral: #ff6b6b;
  --sand: #fff9f0;
  --shell: #ffffff;
  --ink: #1a2e35;
  --muted: #5c7480;
  --success: #5dcaa5;
  --border: #f0e4d0;
  --shadow: 0 2px 8px rgba(26, 46, 53, 0.06);
  --forest: #1a2e35;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff9f0 0%, #fff5e8 100%);
  min-height: 100vh;
}

body.report-sheet-open {
  overflow: hidden;
}

.responsive-media {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.panel img,
.panel video,
.custom-section-body img,
.custom-section-body video,
.section-media-item img,
.admin-report-media-item video,
.admin-rich-preview img,
.admin-rich-editor video {
  max-width: 100% !important;
  width: auto;
  height: auto !important;
  border-radius: 12px;
  border: 1px solid rgba(10, 47, 45, 0.18);
}

.sky-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 10% 10%, rgba(216, 171, 90, 0.12), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(46, 126, 150, 0.1), transparent 36%);
  animation: none;
}

.tab-row-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.custom-tab-btn {
  border-style: dashed;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: radial-gradient(rgba(0, 0, 0, 0.14) 0.5px, transparent 0.5px);
  background-size: 5px 5px;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 4.2rem 0 2.4rem;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(255, 184, 28, 0.22);
  color: #9a4e05;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

h1 {
  margin: 0.6rem 0 0;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  letter-spacing: 0.01em;
  max-width: 18ch;
}

.hero-text {
  margin: 1.15rem 0 0;
  max-width: 58ch;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  opacity: 0.9;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.hero-badges span {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(10, 47, 45, 0.12);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.88rem;
}

.cta {
  margin-top: 1.5rem;
  display: inline-block;
  text-decoration: none;
  color: #60320a;
  background: linear-gradient(110deg, #ffb81c 0%, #ffd166 100%);
  padding: 0.82rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 160ms ease;
}

.cta:hover {
  transform: translateY(-2px);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.hero-actions .cta {
  margin-top: 0;
}

.cta-btn {
  border: none;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
}

.filter-toolbar {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
  max-width: 980px;
}

.quick-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.report-quick-btn {
  background: linear-gradient(120deg, #ff6b6b 0%, #ff8787 100%);
  color: #fff;
  border: 1px solid rgba(201, 62, 62, 0.35);
  box-shadow: var(--shadow);
  border-radius: 999px;
}

.report-quick-btn:hover {
  background: linear-gradient(120deg, #ef5a5a 0%, #ff6b6b 100%);
}

.search-wrap {
  position: relative;
}

#panel-search {
  width: 100%;
  border: 1px solid rgba(15, 163, 177, 0.35);
  border-radius: 999px;
  padding: 0.62rem 0.7rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.94);
}

#panel-search:focus {
  outline: 2px solid rgba(15, 163, 177, 0.35);
  border-color: rgba(15, 163, 177, 0.55);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(10, 47, 45, 0.16);
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(7, 20, 19, 0.16);
  max-height: 18rem;
  overflow-y: auto;
}

.search-suggestion-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.62rem 0.85rem;
  cursor: pointer;
  font-size: 0.94rem;
  color: rgba(10, 47, 45, 0.9);
  border-radius: 0;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  line-height: 1.3;
}

.search-suggestion-item:hover,
.search-suggestion-item[aria-selected="true"] {
  background: rgba(16, 52, 47, 0.07);
}

.search-suggestion-item mark {
  background: rgba(216, 171, 90, 0.36);
  color: inherit;
  border-radius: 3px;
  padding: 0 0.1em;
}

.search-suggestion-label {
  font-weight: 600;
}

.search-suggestion-section {
  font-size: 0.78rem;
  color: rgba(10, 47, 45, 0.52);
  flex-shrink: 0;
}

@keyframes search-highlight-pulse {
  0%   { box-shadow: 0 0 0 4px rgba(216, 171, 90, 0.55); }
  60%  { box-shadow: 0 0 0 10px rgba(216, 171, 90, 0.18); }
  100% { box-shadow: 0 0 0 4px rgba(216, 171, 90, 0); }
}

.search-highlight {
  animation: search-highlight-pulse 1.8s ease forwards;
  border-radius: 14px;
}

mark.search-text-match {
  background: rgba(216, 171, 90, 0.42);
  color: inherit;
  border-radius: 3px;
  padding: 0.05em 0.15em;
  font-weight: inherit;
  transition: background 0.4s ease;
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--forest);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.tab-icon {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 184, 28, 0.18);
}

.tab-icon svg {
  width: 0.88rem;
  height: 0.88rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-btn.active {
  background: linear-gradient(120deg, #ffb81c 0%, #ffd166 100%);
  color: #553009;
  box-shadow: var(--shadow);
}

.tab-btn:hover {
  transform: translateY(-1px);
}

.tab-btn[data-tab="info"] {
  border-color: rgba(43, 166, 203, 0.35);
}

.tab-btn[data-tab="info"] .tab-icon {
  background: rgba(43, 166, 203, 0.22);
  color: #0f5870;
}

.tab-btn[data-tab="checklist"] {
  border-color: rgba(21, 122, 102, 0.4);
}

.tab-btn[data-tab="checklist"] .tab-icon {
  background: rgba(21, 122, 102, 0.23);
  color: #105648;
}

.tab-btn[data-tab="arrival"] {
  border-color: rgba(71, 149, 104, 0.45);
}

.tab-btn[data-tab="arrival"] .tab-icon {
  background: rgba(71, 149, 104, 0.24);
  color: #1f5d3d;
}

.tab-btn[data-tab="wifi"] {
  border-color: rgba(42, 132, 185, 0.44);
}

.tab-btn[data-tab="wifi"] .tab-icon {
  background: rgba(42, 132, 185, 0.2);
  color: #0f5a82;
}

.tab-btn[data-tab="onsite"] {
  border-color: rgba(24, 108, 140, 0.45);
}

.tab-btn[data-tab="onsite"] .tab-icon {
  background: rgba(24, 108, 140, 0.24);
  color: #124f69;
}

.tab-btn[data-tab="sauna"] {
  border-color: rgba(194, 92, 26, 0.45);
}

.tab-btn[data-tab="sauna"] .tab-icon {
  background: rgba(194, 92, 26, 0.2);
  color: #8f4111;
}

.tab-btn[data-tab="activities"] {
  border-color: rgba(156, 109, 36, 0.44);
}
.admin-custom-tabs,
.admin-custom-sections {
  display: grid;
  gap: 0.8rem;
}

.tab-btn[data-tab="activities"] .tab-icon {
  background: rgba(156, 109, 36, 0.2);
  color: #6f4a10;
}

.tab-btn[data-tab="grill"] {
  border-color: rgba(193, 85, 34, 0.45);
}
.admin-custom-card.drag-over {
  border-color: rgba(42, 132, 185, 0.55);
  box-shadow: 0 0 0 3px rgba(42, 132, 185, 0.12);
}

.tab-btn[data-tab="grill"] .tab-icon {
  background: rgba(193, 85, 34, 0.2);
  color: #863811;
}

.tab-btn[data-tab="machines"] {
  border-color: rgba(108, 112, 118, 0.45);
}

.tab-btn[data-tab="machines"] .tab-icon {
  background: rgba(108, 112, 118, 0.2);
  color: #41474d;
}

.tab-btn[data-tab="custom"] {
  border-color: rgba(78, 121, 137, 0.44);
}

.tab-btn[data-tab="custom"] .tab-icon {
  background: rgba(78, 121, 137, 0.2);
  color: #355b69;
}

.tab-btn[data-tab="report"] {
  border-color: rgba(179, 77, 46, 0.44);
}

.tab-btn[data-tab="report"] .tab-icon {
  background: rgba(179, 77, 46, 0.2);
  color: #a03f24;
}

.tab-btn[data-tab="departure"] {
  border-color: rgba(176, 59, 20, 0.4);
}

.tab-btn[data-tab="departure"] .tab-icon {
  background: rgba(176, 59, 20, 0.2);
  color: #883012;
}

.tab-btn[data-tab="admin"] {
  border-color: rgba(86, 72, 130, 0.42);
}

.tab-btn[data-tab="admin"] .tab-icon {
  background: rgba(86, 72, 130, 0.24);
  color: #423573;
}

.tab-btn[data-tab] {
  border-color: rgba(16, 52, 47, 0.15);
}

.tab-btn[data-tab] .tab-icon {
  background: rgba(16, 52, 47, 0.1);
  color: #1d4a42;
}

.content-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
  padding-bottom: 3rem;
}

.panel {
  background: var(--shell);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.05rem;
}

.checkin-box,
.mini-card,
.wifi-box,
.admin-drawer-card {
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: #fff;
}

.quick-jump-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.quick-jump-btn {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #ffffff 0%, #fff5e8 100%);
  color: var(--ink);
  font-weight: 700;
  text-align: left;
  padding: 0.9rem 0.85rem;
  box-shadow: var(--shadow);
}

.quick-jump-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 163, 177, 0.35);
}

.arrival-segmented {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(15, 163, 177, 0.11);
  border: 1px solid rgba(15, 163, 177, 0.24);
  border-radius: 999px;
  padding: 0.2rem;
  margin-bottom: 0.7rem;
}

.arrival-segment-btn {
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #1f5b66;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.78rem;
}

.arrival-segment-btn.active {
  background: linear-gradient(120deg, #0fa3b1 0%, #56c1cb 100%);
  color: #ffffff;
  border-color: rgba(12, 83, 90, 0.2);
}

.arrival-intro-card {
  margin: 0 0 0.8rem;
  border: 1px solid rgba(15, 163, 177, 0.22);
  border-radius: 14px;
  background: linear-gradient(130deg, rgba(215, 250, 255, 0.55) 0%, rgba(255, 255, 255, 0.88) 100%);
  padding: 0.62rem 0.75rem;
  color: #215969;
}

.activities-hero-banner {
  margin-bottom: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 107, 0.35);
  background: linear-gradient(120deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 184, 28, 0.2) 100%);
  padding: 0.8rem 0.9rem;
}

.activities-hero-banner h3 {
  margin: 0.15rem 0 0.35rem;
}

.activities-hero-banner p {
  margin: 0;
}

.activity-category-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.9rem;
}

.activity-category-card,
.practical-overview-card {
  display: grid;
  gap: 0.18rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 163, 177, 0.24);
  background: linear-gradient(150deg, #ffffff 0%, #fff4e6 100%);
  color: #1f3640;
  box-shadow: var(--shadow);
  text-align: left;
  padding: 0.75rem 0.8rem;
  cursor: default;
}

.practical-overview-card {
  cursor: pointer;
}

.activity-category-card strong,
.practical-overview-card strong {
  font-size: 0.95rem;
}

.activity-category-card span,
.practical-overview-card span {
  font-size: 0.82rem;
  color: #476471;
}

.practical-overview-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.9rem;
}

details summary {
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: #1f5160;
  margin-bottom: 0.45rem;
}

.warning,
.panel-warning {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.35);
}

.checklist-progress {
  background: rgba(255, 184, 28, 0.14);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  display: inline-block;
}

.mobile-bottom-nav {
  position: fixed;
  left: 0.7rem;
  right: 0.7rem;
  bottom: calc(0.55rem + env(safe-area-inset-bottom));
  z-index: 52;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.2rem;
  padding: 0.38rem 0.42rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(240, 228, 208, 0.9);
  box-shadow: 0 12px 34px rgba(26, 46, 53, 0.18), 0 2px 8px rgba(26, 46, 53, 0.08);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.mobile-nav-btn {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.15rem;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 16px;
  color: #5b717b;
  padding: 0.28rem 0.2rem 0.3rem;
  min-height: 3.15rem;
  transition: transform 140ms ease, background-color 140ms ease, color 140ms ease;
}

.mobile-nav-btn:hover {
  background: rgba(255, 255, 255, 0.62);
}

.mobile-nav-icon {
  width: 1.62rem;
  height: 1.62rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.mobile-nav-icon svg {
  width: 1.02rem;
  height: 1.02rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-nav-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.mobile-nav-btn.active {
  color: #2e4149;
}

.mobile-nav-btn.active .mobile-nav-icon {
  background: linear-gradient(135deg, #ffcf69 0%, #ffb81c 100%);
  color: #553009;
  box-shadow: 0 4px 10px rgba(255, 184, 28, 0.42);
}

.mobile-nav-btn.active .mobile-nav-label {
  color: #2f4a53;
}

.report-fab {
  position: fixed;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: calc(6.35rem + env(safe-area-inset-bottom));
  z-index: 53;
  border-radius: 999px;
  border: 1px solid rgba(201, 62, 62, 0.4);
  background: linear-gradient(120deg, #ff6b6b 0%, #ff8787 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(201, 62, 62, 0.28);
  padding: 0.58rem 0.9rem;
  font-size: 0.84rem;
}

.report-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-items: end;
}

.report-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 21, 0.55);
}

.app-update-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(9, 28, 31, 0.58);
  backdrop-filter: blur(4px);
}

.app-update-dialog {
  width: min(520px, 100%);
  display: grid;
  gap: 0.7rem;
  border-radius: 18px;
  border: 1px solid rgba(10, 47, 45, 0.18);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(10, 27, 26, 0.36);
  padding: 1rem;
}

.app-update-dialog h2 {
  margin: 0;
}

.app-update-dialog p {
  margin: 0;
}

#app-update-status {
  color: #285b67;
}

.report-sheet-dialog {
  position: relative;
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-bottom: 0;
  background: linear-gradient(180deg, #fffaf3 0%, #ffffff 100%);
  box-shadow: 0 -20px 44px rgba(8, 20, 21, 0.26);
  padding: 0.55rem 1rem calc(1rem + env(safe-area-inset-bottom));
  max-height: min(88vh, 740px);
  overflow-y: auto;
  animation: report-sheet-enter 180ms ease-out;
}

.report-sheet-handle {
  width: 2.9rem;
  height: 0.3rem;
  border-radius: 999px;
  background: rgba(26, 46, 53, 0.18);
  margin: 0.2rem auto 0.55rem;
}

.report-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.report-sheet-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

#report-sheet-close {
  border-radius: 10px;
  border: 1px solid rgba(26, 46, 53, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: #28454f;
  padding: 0.38rem 0.62rem;
}

.report-sheet-form {
  margin-top: 0.45rem;
}

.report-sheet-form button {
  background: linear-gradient(120deg, #ff6b6b 0%, #ff8787 100%);
  border: 1px solid rgba(201, 62, 62, 0.35);
}

.report-sheet-form button:hover {
  background: linear-gradient(120deg, #ef5a5a 0%, #ff6b6b 100%);
}

@keyframes report-sheet-enter {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .tab-row {
    margin-bottom: 0.35rem;
  }
}

body {
  padding-bottom: 8rem;
}

.panel.is-filtered-out {
  display: none;
}

.panel h2 {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
}

.panel ul,
.panel ol {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
}

.panel-warning {
  background: var(--danger-bg);
  border-color: rgba(240, 136, 91, 0.45);
}

.warning {
  margin: 0.85rem 0 0;
  padding: 0.6rem 0.7rem;
  border-left: 4px solid var(--danger-border);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 10px;
}

#wifi-pass {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wifi-box {
  border: 1px dashed rgba(10, 47, 45, 0.35);
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.65);
}

.wifi-qr {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.45rem;
}

#wifi-qr-image {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 12px;
  border: 1px solid rgba(10, 47, 45, 0.18);
  background: #fff;
  padding: 0.35rem;
  box-shadow: 0 6px 18px rgba(10, 47, 45, 0.14);
}

button {
  font: inherit;
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  background: #1a554b;
  color: #fff;
  cursor: pointer;
}

button:hover {
  background: #16483f;
}

#copy-feedback {
  min-height: 1.2rem;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #0f5f51;
}

.stack {
  display: grid;
  gap: 0.7rem;
}

.mini-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 52, 47, 0.1);
  border-radius: 12px;
  padding: 0.8rem;
}

.tech-card-has-info {
  position: relative;
  padding-right: 2.2rem;
}

.admin-editable-card {
  border-color: rgba(16, 52, 47, 0.2);
  position: relative;
}

.admin-editable-card[contenteditable="true"] {
  outline: none;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 184, 28, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 184, 28, 0.2);
}

.mini-card h3 {
  margin-bottom: 0.35rem;
}

.activity-info-box {
  margin-top: 0.45rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border-left: 3px solid rgba(15, 163, 177, 0.55);
  background: linear-gradient(130deg, rgba(215, 250, 255, 0.55) 0%, rgba(255, 255, 255, 0.75) 100%);
  font-size: 0.88rem;
  line-height: 1.5;
  color: #1a3a45;
}

.activity-link-row {
  margin-top: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.activity-link-label {
  font-size: 0.9rem;
  color: #1e4250;
}

.activity-category-card-wrap {
  position: relative;
}

.activity-category-card-wrap .activity-category-card {
  width: 100%;
  padding-right: 3.2rem;
}

.activity-category-editable {
  position: relative;
  text-align: left;
}

.admin-activity-card-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: 0.45rem;
}

.admin-activity-card-tools button {
  border-radius: 8px;
  padding: 0.16rem 0.42rem;
  font-size: 0.76rem;
  line-height: 1;
}

.admin-activity-format-tools {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(16, 52, 47, 0.18);
  background: rgba(255, 255, 255, 0.82);
}

.admin-activity-format-tools button {
  border-radius: 7px;
  padding: 0.2rem 0.42rem;
  font-size: 0.74rem;
  line-height: 1.15;
  border: 1px solid rgba(16, 52, 47, 0.24);
  background: rgba(16, 52, 47, 0.08);
  color: var(--forest);
}

.admin-activity-format-tools button:hover {
  background: rgba(16, 52, 47, 0.15);
}

.admin-inline-editable p,
.admin-editable-card p,
.activity-category-editable p {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

.admin-activity-insert-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}

.admin-activity-insert {
  margin: -0.1rem 0 0.2rem;
  width: fit-content;
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  border-radius: 7px;
  background: rgba(16, 52, 47, 0.08);
  color: var(--forest);
  border: 1px dashed rgba(16, 52, 47, 0.24);
}

.admin-activity-insert:hover {
  background: rgba(16, 52, 47, 0.14);
}

.admin-activity-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.2rem 0 0.35rem;
  width: fit-content;
  padding: 0.2rem 0.5rem;
  border-radius: 7px;
  background: rgba(196, 84, 63, 0.1);
  color: #8b2e1c;
  border: 1px dashed rgba(168, 58, 39, 0.32);
  font-size: 0.75rem;
}

.admin-activity-delete:hover {
  background: rgba(196, 84, 63, 0.16);
}

.activity-category-info-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  z-index: 2;
  margin-left: 0;
}

.tech-info-open-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  z-index: 2;
  margin-left: 0;
}

.activity-info-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  margin-top: 0.3rem;
}

#activity-link-info-text {
  white-space: pre-line;
}

#activity-link-info-text a,
#check-item-info-text a {
  color: #0f5f91;
  text-decoration: underline;
  word-break: break-word;
}

.mini-card-warn {
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(255, 247, 245, 0.92);
}

.mini-card-warn .activity-info-box {
  border-left-color: rgba(255, 107, 107, 0.65);
  background: linear-gradient(130deg, rgba(255, 235, 230, 0.55) 0%, rgba(255, 255, 255, 0.75) 100%);
  color: #5a2018;
}

.mini-card-good {
  border-color: rgba(21, 122, 102, 0.35);
  background: rgba(228, 255, 247, 0.75);
}

.mini-card-nope {
  border-color: rgba(176, 59, 20, 0.3);
  background: rgba(255, 241, 235, 0.75);
}

#ordning,
#checkin,
#ankomst-checklista,
#onsite-routine-checklista,
#onsite-tasks,
#appliances,
#tv,
#bastu,
#activities,
#grill,
#machines,
#report-panel,
#custom-panel,
#checklista {
  grid-column: span 7;
}

#diska,
#internet,
#drift,
#kamin,
#admin-panel {
  grid-column: span 5;
}

#booking-calendar {
  grid-column: span 12 !important;
}

.checklist .checks {
  display: grid;
  gap: 0.62rem;
}

.checklist-progress {
  margin: -0.15rem 0 0.6rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(15, 95, 81, 0.86);
}

.checklist-progress.is-complete {
  color: #1b7b63;
}

.checkin-box {
  display: grid;
  gap: 0.55rem;
}

.checkin-box-prominent {
  margin: 0.8rem 0 1rem;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(21, 122, 102, 0.35);
  background: linear-gradient(140deg, rgba(226, 255, 248, 0.85) 0%, rgba(255, 255, 255, 0.88) 100%);
}

.checkin-box label {
  font-size: 0.92rem;
  font-weight: 600;
}

.checkin-box input {
  width: 100%;
  max-width: 380px;
  border: 1px solid rgba(10, 47, 45, 0.2);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.84);
}

.checkin-box button {
  width: fit-content;
}

.checkin-box textarea,
#admin-content-editor {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(10, 47, 45, 0.2);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.84);
  resize: vertical;
}

#admin-content-editor {
  min-height: 240px;
}

.admin-editor-shell {
  display: grid;
  gap: 0.9rem;
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(10, 47, 45, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.admin-editor-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-editor-header h3 {
  margin-bottom: 0.25rem;
}

.admin-content-form {
  display: grid;
  gap: 0.9rem;
}

.admin-fieldset {
  margin: 0;
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(10, 47, 45, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.admin-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 700;
}

.admin-field-row {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.admin-field-row label {
  font-weight: 700;
}

.admin-field-row input,
.admin-field-row textarea {
  width: 100%;
}

.admin-field-hint {
  margin-top: -0.1rem;
}

.admin-report-section {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(10, 47, 45, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

.admin-password-section {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(10, 47, 45, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

.admin-password-section input {
  min-width: 220px;
}

.admin-auth-form {
  display: grid;
  gap: 0.55rem;
}

.admin-auth-form label {
  font-size: 0.92rem;
  font-weight: 600;
}

.admin-auth-form input {
  width: 100%;
  border: 1px solid rgba(10, 47, 45, 0.2);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.84);
}

@media (max-width: 960px) {
  .admin-section-float-toolbar {
    bottom: calc(8.25rem + env(safe-area-inset-bottom));
  }
}

.admin-inline-toolbar {
  margin-top: 0.9rem;
  padding: 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(10, 47, 45, 0.16);
  background: rgba(226, 245, 255, 0.78);
  display: grid;
  gap: 0.45rem;
}

.admin-section-float-toolbar {
  position: fixed;
  left: 50%;
  bottom: calc(0.7rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 90;
  display: grid;
  align-items: center;
  gap: 0.32rem;
  padding: 0.42rem 0.5rem 0.42rem 0.7rem;
  border-radius: 18px;
  border: 1px solid rgba(10, 47, 45, 0.2);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px) saturate(135%);
  box-shadow: 0 10px 28px rgba(17, 39, 47, 0.2);
  width: min(94vw, 940px);
}

.admin-section-float-label {
  font-size: 0.77rem;
  font-weight: 700;
  color: rgba(10, 47, 45, 0.9);
  max-width: min(52vw, 320px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-section-float-actions {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 0.05rem;
}

.admin-section-float-actions button {
  padding: 0.22rem 0.45rem;
  min-height: 1.7rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 52, 47, 0.24);
  background: rgba(16, 52, 47, 0.08);
  color: var(--forest);
  font-size: 0.76rem;
}

.admin-section-float-actions button:disabled {
  opacity: 0.45;
}

#admin-drawer-toggle {
  background: #155f50;
}

.admin-drawer {
  position: static;
  z-index: 1;
  background: transparent;
  display: grid;
  place-items: stretch;
  padding: 0;
  margin-top: 0.9rem;
}

.admin-drawer-card {
  width: min(760px, 100%);
  max-height: none;
  overflow: auto;
  display: grid;
  gap: 0.7rem;
  border-radius: 18px;
  border: 1px solid rgba(10, 47, 45, 0.2);
  background: rgba(255, 252, 245, 0.98);
  box-shadow: 0 24px 80px rgba(10, 27, 26, 0.34);
  padding: 1rem;
}

.admin-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.admin-drawer-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

#admin-drawer-close {
  background: rgba(10, 47, 45, 0.84);
}

.admin-edit-active {
  position: relative;
}

.admin-inline-editable {
  outline: 2px dashed rgba(19, 92, 84, 0.45);
  outline-offset: 3px;
  border-radius: 6px;
}

.admin-inline-editable:focus {
  outline-color: rgba(19, 92, 84, 0.8);
  background: rgba(255, 255, 255, 0.94);
}

.admin-section-controls {
  position: sticky;
  top: calc(0.55rem + env(safe-area-inset-top));
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  z-index: 45;
  max-width: 100%;
  justify-content: flex-start;
  padding: 0.4rem;
  margin-bottom: 0.6rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(10, 47, 45, 0.12);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(19, 43, 46, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-edit-active .admin-section-controls {
  opacity: 0.8;
}

.admin-edit-current .admin-section-controls {
  opacity: 1;
  border-color: rgba(255, 184, 28, 0.42);
  background: rgba(255, 252, 243, 0.92);
  box-shadow: 0 8px 20px rgba(170, 120, 18, 0.16);
}

.admin-inline-check-item {
  cursor: text;
  user-select: text;
}

.admin-check-item-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.admin-media-item-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.2rem;
}

.admin-drag-handle,
.admin-sort-btn {
  padding: 0.1rem 0.32rem;
  min-width: 1.45rem;
  border-radius: 6px;
  border: 1px solid rgba(16, 52, 47, 0.24);
  background: rgba(16, 52, 47, 0.1);
  color: var(--forest);
  line-height: 1.1;
  font-size: 0.75rem;
}

.admin-remove-btn {
  padding: 0.1rem 0.34rem;
  min-width: 1.45rem;
  border-radius: 6px;
  border: 1px solid rgba(168, 58, 39, 0.35);
  background: rgba(196, 84, 63, 0.1);
  color: #8b2e1c;
  line-height: 1.1;
  font-size: 0.75rem;
}

.admin-remove-btn:hover {
  background: rgba(196, 84, 63, 0.18);
}

.admin-info-btn {
  padding: 0.1rem 0.34rem;
  min-width: 2.25rem;
  border-radius: 6px;
  border: 1px solid rgba(24, 99, 161, 0.35);
  background: rgba(46, 126, 150, 0.12);
  color: #184f7f;
  line-height: 1.1;
  font-size: 0.75rem;
}

.admin-info-btn:hover {
  background: rgba(46, 126, 150, 0.2);
}

.admin-drag-handle {
  cursor: grab;
}

.admin-drag-handle:active {
  cursor: grabbing;
}

.admin-inline-check-item.is-dragging,
.section-media-item.is-dragging {
  opacity: 0.55;
}

.admin-check-insert {
  display: flex;
  gap: 0.3rem;
  margin: -0.15rem 0 0.1rem;
}

.admin-check-insert button {
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  border-radius: 7px;
  background: rgba(16, 52, 47, 0.08);
  color: var(--forest);
  border: 1px dashed rgba(16, 52, 47, 0.24);
}

.admin-check-insert button:hover {
  background: rgba(16, 52, 47, 0.14);
}

/* Dedicated editable text area inside checklist labels */
.check-label-text {
  flex: 1;
  min-width: 0;
  cursor: text;
  outline: none;
  border-radius: 4px;
}

.check-label-text:focus {
  background: rgba(255, 249, 235, 0.6);
  box-shadow: 0 0 0 2px rgba(255, 184, 28, 0.35);
}

/* Free-text note line inside a checklist */
.checklist-note {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-style: italic;
  color: #4a5e5c;
  font-size: 0.9rem;
  padding: 0.32rem 0.7rem;
  margin: 0;
  border-left: 3px solid rgba(255, 184, 28, 0.5);
  background: rgba(255, 249, 238, 0.7);
  border-radius: 0 8px 8px 0;
  line-height: 1.4;
}

.checklist-note[contenteditable="true"] {
  outline: none;
  cursor: text;
  flex: 1;
}

.checklist-note[contenteditable="true"]:focus {
  background: rgba(255, 249, 225, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 184, 28, 0.35);
}

.admin-note-tools {
  flex-shrink: 0;
}

/* Card/article item editing tools (mini-card articles in stacks) */
.admin-card-item-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.admin-card-format-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.2rem 0 0.45rem;
  padding: 0.3rem;
  border-radius: 9px;
  border: 1px solid rgba(16, 52, 47, 0.18);
  background: rgba(245, 252, 251, 0.9);
}

.admin-card-format-tools button {
  padding: 0.2rem 0.42rem;
  font-size: 0.74rem;
  border-radius: 7px;
  border: 1px solid rgba(16, 52, 47, 0.24);
  background: rgba(16, 52, 47, 0.08);
  color: var(--forest);
  line-height: 1.15;
}

.admin-card-format-tools button:hover {
  background: rgba(16, 52, 47, 0.15);
}

.admin-card-format-tools button:focus-visible {
  outline: 2px solid rgba(15, 163, 177, 0.5);
  outline-offset: 1px;
}

.admin-editable-card.is-dragging {
  opacity: 0.55;
}

.admin-card-insert {
  margin: -0.1rem 0 0.2rem;
  width: fit-content;
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  border-radius: 7px;
  background: rgba(16, 52, 47, 0.08);
  color: var(--forest);
  border: 1px dashed rgba(16, 52, 47, 0.24);
}

.admin-card-insert:hover {
  background: rgba(16, 52, 47, 0.14);
}

.admin-section-controls button {
  padding: 0.3rem 0.55rem;
  font-size: 0.8rem;
}

.admin-section-status {
  align-self: center;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(10, 47, 45, 0.1);
  color: rgba(10, 47, 45, 0.86);
}

.admin-section-status.is-saving {
  background: rgba(230, 183, 40, 0.2);
  color: #7a5400;
}

.admin-section-status.is-saved {
  background: rgba(80, 170, 120, 0.2);
  color: #205c34;
}

.admin-section-status.is-error {
  background: rgba(194, 66, 66, 0.2);
  color: #7a1f1f;
}

@media (max-width: 840px) {
  .admin-drawer-card {
    max-height: none;
    border-radius: 14px;
    padding: 0.8rem;
  }

  .admin-section-controls {
    position: sticky;
    top: calc(0.45rem + env(safe-area-inset-top));
    max-width: 100%;
    justify-content: flex-start;
    margin-bottom: 0.6rem;
  }

  .admin-section-float-toolbar {
    width: calc(100vw - 1rem);
    max-width: 100%;
    bottom: calc(8.25rem + env(safe-area-inset-bottom));
    border-radius: 14px;
    padding: 0.36rem 0.4rem;
  }

  .admin-section-float-label {
    max-width: 100%;
    font-size: 0.72rem;
  }
}

.admin-reports {
  display: grid;
  gap: 0.8rem;
}

.admin-report-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(10, 47, 45, 0.12);
  background: rgba(245, 251, 255, 0.86);
}

.admin-report-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-report-card h4 {
  margin-bottom: 0.15rem;
}

.admin-report-resolved {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}

.admin-report-details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 0.8rem;
  margin: 0;
}

.admin-report-details dt {
  font-weight: 700;
}

.admin-report-details dd {
  margin: 0;
  color: rgba(26, 34, 36, 0.8);
  overflow-wrap: anywhere;
}

.admin-report-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
}

.admin-report-media-item {
  margin: 0;
  display: grid;
  gap: 0.35rem;
  padding: 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(10, 47, 45, 0.1);
  background: rgba(255, 255, 255, 0.85);
}

.admin-report-media-item img,
.admin-report-media-item video {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.admin-report-media-item figcaption {
  font-size: 0.85rem;
  color: rgba(26, 34, 36, 0.72);
}

.admin-section-media-heading {
  margin: 0.7rem 0 0.2rem;
  font-weight: 700;
}

.admin-section-media {
  display: grid;
  gap: 0.6rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(10, 47, 45, 0.12);
  background: rgba(245, 251, 255, 0.72);
}

.admin-section-media-list {
  display: grid;
  gap: 0.6rem;
}

.admin-section-media-card {
  display: grid;
  gap: 0.5rem;
  padding: 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(10, 47, 45, 0.1);
  background: rgba(255, 255, 255, 0.8);
}

.admin-section-media-preview {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--green-dark);
}

.admin-section-media-card input {
  width: 100%;
}

.admin-html-field {
  display: grid;
  gap: 0.5rem;
}

.section-media {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.section-media[hidden] {
  display: none;
}

.section-media-item {
  margin: 0;
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem;
  border-radius: 14px;
  background: rgba(245, 251, 255, 0.82);
  border: 1px solid rgba(10, 47, 45, 0.1);
}

.section-media-item img,
.section-media-item video {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.section-media-item figcaption {
  font-size: 0.88rem;
  color: rgba(26, 34, 36, 0.72);
}

.admin-advanced {
  border: 1px solid rgba(10, 47, 45, 0.12);
  border-radius: 14px;
  padding: 0.75rem 0.8rem;
  background: rgba(255, 255, 255, 0.72);
}

.admin-advanced summary {
  cursor: pointer;
  font-weight: 700;
}

.admin-editor-divider {
  height: 1px;
  background: rgba(10, 47, 45, 0.12);
  margin: 0.2rem 0;
}

.admin-custom-sections {
  display: grid;
  gap: 0.8rem;
}

.admin-custom-card {
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(10, 47, 45, 0.12);
  background: rgba(255, 255, 255, 0.8);
  display: grid;
  gap: 0.6rem;
}

.admin-custom-tab-card {
  border-style: dashed;
}

.admin-custom-tab-card.drag-over {
  background: rgba(226, 245, 255, 0.95);
}

.admin-custom-card-header {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-custom-card input,
.admin-custom-card select,
.admin-custom-card textarea {
  width: 100%;
}

.admin-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-rich-toolbar button {
  padding: 0.35rem 0.55rem;
  min-width: 2.5rem;
}

.admin-rich-preview {
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(10, 47, 45, 0.14);
  background: rgba(245, 251, 255, 0.88);
  display: grid;
  gap: 0.5rem;
}

.admin-rich-preview img,
.admin-rich-preview video {
  max-width: 100%;
  border-radius: 12px;
  display: block;
}

.admin-rich-editor {
  min-height: 160px;
  padding: 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(10, 47, 45, 0.18);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

.admin-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: rgba(26, 34, 36, 0.56);
}

.admin-rich-editor img,
.admin-rich-editor video,
.custom-section-body img,
.custom-section-body video {
  max-width: 100%;
  border-radius: 12px;
  display: block;
}

.custom-section-card {
  grid-column: 1 / -1;
  border-color: rgba(42, 132, 185, 0.18);
  background: rgba(245, 251, 255, 0.85);
}

#custom-sections {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.custom-section-body {
  display: grid;
  gap: 0.5rem;
}

.custom-section-body ul,
.custom-section-body ol {
  margin-top: 0.25rem;
  padding-left: 1.15rem;
}

.row-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tiny {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.85;
}

#checkin-feedback,
#checkout-feedback {
  min-height: 1.2rem;
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: #0f5f51;
}

#admin-feedback {
  min-height: 1.2rem;
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: #0f5f51;
}

.event-list {
  margin: 0.4rem 0 0;
  padding-left: 1rem;
  max-height: 280px;
  overflow: auto;
  font-size: 0.86rem;
  display: grid;
  gap: 0.3rem;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(10, 47, 45, 0.15);
  border-radius: 10px;
  padding: 0.68rem 0.82rem;
  line-height: 1.35;
}

.check-item-info-btn {
  margin-left: auto;
  width: 1.45rem;
  height: 1.45rem;
  min-width: 1.45rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 52, 47, 0.28);
  background: rgba(16, 52, 47, 0.1);
  color: var(--forest);
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1;
  padding: 0;
}

.check-item-info-btn:hover {
  background: rgba(16, 52, 47, 0.18);
}

.check-item-info-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 19, 0.62);
  display: grid;
  place-items: center;
  z-index: 60;
  padding: 1.1rem;
}

.check-item-info-dialog {
  width: min(700px, 100%);
  max-height: min(90vh, 820px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(16, 52, 47, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
  box-shadow: 0 22px 52px rgba(7, 20, 19, 0.28);
  padding: 1.25rem 1.25rem 1.1rem;
  display: grid;
  gap: 0.95rem;
  font-family: 'Space Grotesk', sans-serif;
}

.check-item-info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
}

.check-item-info-header button {
  padding: 0.36rem 0.62rem;
  border-radius: 10px;
  border: 1px solid rgba(16, 52, 47, 0.22);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(10, 47, 45, 0.9);
  font-size: 0.84rem;
  font-weight: 600;
}

.check-item-info-header h3 {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  line-height: 1.15;
}

.check-item-info-view,
.check-item-info-editor {
  display: grid;
  gap: 0.72rem;
}

#check-item-info-text {
  margin: 0;
  line-height: 1.55;
  color: rgba(10, 47, 45, 0.9);
}

.check-item-info-editor label {
  margin-top: 0.2rem;
  font-size: 0.83rem;
  letter-spacing: 0.01em;
  font-weight: 700;
  color: rgba(10, 47, 45, 0.78);
}

.check-item-info-editor input,
.check-item-info-editor textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(10, 47, 45, 0.18);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  padding: 0.62rem 0.72rem;
  font: 500 0.94rem/1.45 'Space Grotesk', sans-serif;
}

.check-item-info-editor input:focus,
.check-item-info-editor textarea:focus {
  outline: 2px solid rgba(21, 122, 102, 0.25);
  outline-offset: 1px;
  border-color: rgba(21, 122, 102, 0.46);
}

.check-item-info-editor textarea {
  resize: vertical;
  min-height: 8.5rem;
}

.check-item-info-editor .row-actions {
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

#check-item-info-upload-btn,
#check-item-info-link-btn,
#check-item-info-clear-btn,
#check-item-info-save-btn {
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.84rem;
}

#check-item-info-upload-btn,
#check-item-info-link-btn {
  background: rgba(16, 52, 47, 0.09);
  border: 1px solid rgba(16, 52, 47, 0.24);
  color: rgba(10, 47, 45, 0.9);
}

#check-item-info-clear-btn {
  background: rgba(196, 84, 63, 0.1);
  border: 1px solid rgba(168, 58, 39, 0.3);
  color: #8b2e1c;
}

#check-item-info-save-btn {
  background: linear-gradient(135deg, #0f5f51 0%, #157a66 100%);
  border: 1px solid rgba(12, 71, 58, 0.56);
  color: #f6fffc;
}

#check-item-info-editor-label {
  margin: 0;
  padding: 0.38rem 0.52rem;
  border-radius: 9px;
  background: rgba(16, 52, 47, 0.08);
  color: rgba(10, 47, 45, 0.88);
  font-size: 0.8rem;
}

#check-item-info-editor-status.is-error {
  color: #8b2e1c;
}

#check-item-info-image {
  width: 100%;
  max-width: 100%;
  max-height: 48vh;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(16, 52, 47, 0.12);
}

#check-item-info-editor-image-preview,
.check-item-info-editor img {
  width: 100%;
  max-width: 100%;
  max-height: 52vh;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(16, 52, 47, 0.12);
  background: #fff;
}

#activity-link-info-image {
  width: 100%;
  max-width: 100%;
  max-height: 48vh;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(16, 52, 47, 0.12);
}

@media (max-width: 640px) {
  .check-item-info-dialog {
    border-radius: 16px;
    padding: 1rem 0.9rem 0.95rem;
    gap: 0.78rem;
  }

  .check-item-info-editor textarea {
    min-height: 7.5rem;
  }
}

.checklist input {
  accent-color: #157a66;
  width: 1rem;
  height: 1rem;
}

#checkout-btn {
  margin-top: 0.85rem;
}

.footer-wave {
  width: 100%;
  margin-top: 1.2rem;
  line-height: 0;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 68px;
}

.footer {
  padding: 0 0 2.2rem;
  font-size: 0.92rem;
  opacity: 0.8;
}

.footer-admin-link {
  margin-left: 0.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-admin-link:hover {
  background: transparent;
  color: #0f5f51;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-3%, -2%, 0) scale(1.03);
  }
}

@media (max-width: 1499px) {
  .panel,
  #ordning,
  #checkin,
  #ankomst-checklista,
  #onsite-routine-checklista,
  #onsite-tasks,
  #appliances,
  #tv,
  #bastu,
  #activities,
  #grill,
  #machines,
  #report-panel,
  #custom-panel,
  #checklista,
  #diska,
  #internet,
  #drift,
  #kamin,
  #admin-panel {
    grid-column: span 12;
  }
}

@media (max-width: 980px) {
  .panel {
    padding: 1rem 0.85rem;
  }

  .activity-category-grid,
  .practical-overview-grid {
    grid-template-columns: 1fr;
  }

  .mini-card,
  .wifi-box,
  .checklist label,
  .checkin-box input,
  .admin-field-row input,
  .admin-field-row textarea,
  .admin-custom-card input,
  .admin-custom-card select,
  .admin-custom-card textarea,
  .checkin-box button,
  .row-actions button,
  .tab-btn {
    width: 100%;
    max-width: none;
  }

  .hero {
    padding-top: 4.3rem;
  }

  .tab-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    gap: 0.35rem;
    padding-bottom: 0.1rem;
  }

  .tab-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 7.2rem;
    scroll-snap-align: start;
  }
}

/* === PWA Install Banner === */
.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 120;
  padding: 0.75rem 1rem 1rem;
  background: linear-gradient(135deg, #0d3a42 0%, #1a5e6a 100%);
  color: #fff;
  box-shadow: 0 -4px 20px rgba(10, 30, 35, 0.3);
}

.pwa-install-content {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pwa-install-text {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.9rem;
}

.pwa-install-text .tiny {
  color: rgba(255, 255, 255, 0.75);
}

.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pwa-install-actions button {
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  line-height: 1.2;
}

#pwa-install-btn {
  background: #ffb81c;
  color: #1a2c30;
  border: none;
  padding: 0.55rem 1.1rem;
}

#pwa-install-dismiss {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 0.75rem;
}

.pwa-install-ios-hint {
  width: 100%;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.2rem;
}

/* === Check-in action row (arrival section) === */
.checkin-action-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.btn-checkin {
  border-radius: 999px;
  background: linear-gradient(120deg, #0fa3b1 0%, #56c1cb 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  border: none;
  box-shadow: 0 2px 8px rgba(15, 163, 177, 0.3);
  cursor: pointer;
}

.btn-checkin:hover {
  filter: brightness(1.08);
}

.btn-push-small {
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(15, 163, 177, 0.4);
  color: #1f5b66;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
}

.btn-push-small:hover {
  background: rgba(15, 163, 177, 0.08);
}

.checkin-welcome-badge {
  font-size: 0.82rem;
  color: #1f5b66;
  font-weight: 600;
  background: rgba(15, 163, 177, 0.1);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  border: 1px solid rgba(15, 163, 177, 0.22);
}

/* === Check-in modal === */
.checkin-modal {
  position: fixed;
  inset: 0;
  z-index: 135;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(9, 28, 31, 0.55);
  backdrop-filter: blur(4px);
}

.checkin-modal-backdrop {
  position: absolute;
  inset: 0;
}

.checkin-modal-dialog {
  position: relative;
  width: min(420px, 100%);
  display: grid;
  gap: 0.6rem;
  border-radius: 18px;
  border: 1px solid rgba(10, 47, 45, 0.15);
  background: #fff;
  box-shadow: 0 20px 60px rgba(10, 27, 26, 0.3);
  padding: 1.2rem 1rem;
}

.checkin-modal-dialog h3 {
  margin: 0;
}

.admin-login-modal {
  position: fixed;
  inset: 0;
  z-index: 145;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.admin-login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 28, 31, 0.52);
  backdrop-filter: blur(3px);
}

.admin-login-modal-dialog {
  position: relative;
  width: min(420px, 100%);
  display: grid;
  gap: 0.6rem;
  border-radius: 16px;
  border: 1px solid rgba(10, 47, 45, 0.16);
  background: #fff;
  box-shadow: 0 18px 55px rgba(10, 27, 26, 0.34);
  padding: 1rem;
}

.admin-login-modal-dialog h3 {
  margin: 0;
}

.admin-login-modal-form {
  display: grid;
  gap: 0.5rem;
}

.admin-login-modal-form input {
  border-radius: 10px;
  border: 1px solid rgba(10, 47, 45, 0.22);
  background: #fff;
  color: var(--ink);
  padding: 0.6rem 0.7rem;
}

.admin-login-modal-form input:focus {
  outline: 2px solid rgba(15, 163, 177, 0.25);
  border-color: rgba(15, 163, 177, 0.65);
}

.admin-bookings-box {
  display: grid;
  gap: 0.45rem;
  padding: 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(10, 47, 45, 0.12);
  background: rgba(255, 255, 255, 0.74);
  margin-bottom: 0.7rem;
}

.admin-bookings-box h3 {
  margin: 0;
}

.admin-booking-create-form {
  display: grid;
  gap: 0.4rem;
  border: 1px solid rgba(10, 47, 45, 0.12);
  border-radius: 10px;
  padding: 0.55rem;
  background: #fff;
}

.admin-booking-create-form input {
  border-radius: 10px;
  border: 1px solid rgba(10, 47, 45, 0.2);
  background: #fff;
  color: var(--ink);
  padding: 0.5rem 0.65rem;
}

.admin-booking-date-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

@media (max-width: 760px) {
  .admin-booking-date-row {
    grid-template-columns: 1fr;
  }
}

.admin-booking-list {
  display: grid;
  gap: 0.45rem;
}

.admin-booking-card {
  border: 1px solid rgba(10, 47, 45, 0.12);
  border-radius: 10px;
  padding: 0.6rem;
  background: #fff;
  display: grid;
  gap: 0.35rem;
}

.booking-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0.55rem 0 0.95rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.booking-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.booking-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid rgba(10, 47, 45, 0.24);
}

.booking-dot-free {
  background: #eff8ef;
}

.booking-dot-booked {
  background: #fddfdf;
}

.booking-dot-pending {
  background: #fff4cf;
}

.booking-main-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.booking-calendar-stack {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
}

.booking-calendar-shell {
  border: 1px solid rgba(10, 47, 45, 0.13);
  border-radius: 16px;
  background: #fff;
  padding: 0.85rem;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(10, 47, 45, 0.05);
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.booking-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.booking-calendar-header button {
  min-width: 2.25rem;
  min-height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 47, 45, 0.16);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
}

#booking-month-label {
  flex: 1;
  text-align: center;
  font-size: clamp(0.92rem, 2.2vw, 1.05rem);
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.booking-weekday {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  padding: 0.2rem 0;
}

.booking-day {
  min-height: clamp(2.05rem, 3.3vw, 2.7rem);
  border-radius: 8px;
  border: 1px solid rgba(10, 47, 45, 0.1);
  font-size: clamp(0.72rem, 1.8vw, 0.84rem);
  display: grid;
  place-items: center;
  background: #f7fbfb;
}

.booking-day.is-outside {
  opacity: 0.45;
}

.booking-day.is-booked {
  background: #ffe4e4;
  border-color: rgba(226, 85, 85, 0.35);
}

.booking-day.is-pending {
  background: #fff5d3;
  border-color: rgba(219, 165, 44, 0.38);
}

.booking-upcoming-list {
  display: grid;
  gap: 0.45rem;
}

.booking-upcoming-item {
  border-radius: 10px;
  border: 1px solid rgba(10, 47, 45, 0.11);
  background: #fff;
  padding: 0.55rem 0.65rem;
}

.booking-request-form {
  display: grid;
  gap: 0.45rem;
  border: 1px solid rgba(10, 47, 45, 0.13);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 240, 0.96));
  padding: 0.85rem;
  box-shadow: 0 10px 26px rgba(10, 47, 45, 0.05);
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

#booking-calendar {
  container-type: inline-size;
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.booking-request-form h3 {
  margin: 0;
}

.booking-request-form input,
.booking-request-form textarea {
  border-radius: 10px;
  border: 1px solid rgba(10, 47, 45, 0.22);
  background: #fff;
  color: var(--ink);
  padding: 0.58rem 0.68rem;
}

.booking-date-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (min-width: 1024px) {
  .booking-main-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.72fr);
    gap: 1.15rem;
    align-items: start;
  }

  #booking-calendar {
    gap: 1rem;
  }

  .booking-calendar-shell {
    padding: 1rem;
    max-width: 860px;
  }

  .booking-request-form {
    position: sticky;
    top: 1rem;
    max-width: 360px;
    justify-self: end;
  }
}

@media (min-width: 980px) and (max-width: 1023px) {
  .booking-main-layout {
    grid-template-columns: 1fr;
  }

  .booking-calendar-shell {
    max-width: 100%;
  }

  .booking-request-form {
    width: min(100%, 32rem);
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .booking-date-row {
    grid-template-columns: 1fr;
  }

  .booking-main-layout {
    grid-template-columns: 1fr;
  }

  .booking-legend {
    gap: 0.55rem;
    font-size: 0.78rem;
  }

  .booking-calendar-shell {
    padding: 0.55rem;
    border-radius: 12px;
  }

  .booking-calendar-grid {
    gap: 0.22rem;
  }

  .booking-weekday {
    font-size: 0.66rem;
    padding: 0.15rem 0;
  }

  .booking-day {
    border-radius: 6px;
    min-height: 1.9rem;
    font-size: 0.7rem;
  }

  .booking-upcoming-item {
    padding: 0.45rem 0.55rem;
  }
}

@media (max-width: 460px) {
  #booking-calendar .panel,
  #booking-calendar {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .booking-calendar-header button {
    min-width: 2rem;
    min-height: 2rem;
    padding: 0;
  }

  #booking-month-label {
    font-size: 0.88rem;
  }

  .booking-weekday {
    letter-spacing: 0;
  }

  .booking-day {
    min-height: 1.75rem;
    font-size: 0.66rem;
  }

  .booking-request-form {
    padding: 0.6rem;
  }
}

/* === Admin CTA card editing overlay === */
.admin-cta-editing .cta-card-grid-wrap {
  position: relative;
}

.quick-jump-btn.admin-cta-editable {
  position: relative;
  padding-top: 1.4rem;
}

.admin-cta-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  border: none;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  z-index: 2;
}

.admin-cta-add-btn {
  border-radius: 16px;
  border: 2px dashed rgba(15, 163, 177, 0.5);
  background: rgba(15, 163, 177, 0.06);
  color: #1f5b66;
  font-weight: 700;
  text-align: center;
  padding: 0.9rem 0.85rem;
  cursor: pointer;
  font-size: 0.9rem;
  width: 100%;
}
