:root {
  --sek-blue: #08234a;
  --sek-blue-2: #0d356e;
  --sek-gold: #ffb51d;
  --ink: #152034;
  --muted: #657285;
  --line: #d9e1ec;
  --surface: #ffffff;
  --bg: #f2f5fa;
}

* {
  box-sizing: border-box;
}

body.lost-page {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lost-shell {
  min-height: 100vh;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

.lost-hero {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: calc(12px + env(safe-area-inset-top)) clamp(16px, 4vw, 42px) 12px;
  color: #fff;
  background:
    radial-gradient(circle at 25% 0%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(135deg, #0d2d60 0%, #08234a 54%, #05162f 100%);
  border-bottom: 4px solid var(--sek-gold);
}

.hero-back {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.hero-back svg,
.refresh-btn svg,
.lost-bottom-nav svg,
.search-box svg,
.primary-action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  padding: 5px;
  border-radius: 14px;
  background: #fff;
}

.hero-copy {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.hero-copy span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy strong {
  color: #fff;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  font-weight: 900;
}

.lost-main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 34px);
}

.lost-title-panel {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 260px;
  padding: 42px 22px;
  color: #fff;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(13, 53, 110, 0.88), rgba(5, 22, 47, 0.96)),
    var(--sek-blue);
  box-shadow: 0 18px 42px rgba(8, 35, 74, 0.18);
}

.lost-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: var(--sek-gold);
}

.lost-icon svg {
  width: 70px;
  height: 70px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  margin: 0;
  color: var(--sek-gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lost-title-panel h1,
.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1;
}

.lost-title-panel p:last-child,
.section-heading p:last-child {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 1.45;
}

.lost-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 20px 0;
}

.search-box {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(19, 38, 69, 0.06);
}

.search-box input {
  width: 100%;
  height: 54px;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
}

.refresh-btn,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  color: #fff;
  border: 0;
  border-radius: 18px;
  background: var(--sek-blue);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.lost-status {
  margin: 12px 0;
  color: var(--muted);
  font-weight: 800;
}

.lost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.lost-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(19, 38, 69, 0.08);
}

.lost-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #dce5f1;
}

.lost-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.lost-card h2 {
  margin: 0;
  color: var(--sek-blue);
  font-size: 1.2rem;
  line-height: 1.15;
}

.lost-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.date-chip {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  color: #7a5200;
  border: 1px solid rgba(255, 181, 29, 0.42);
  border-radius: 999px;
  background: #fff5dd;
  font-size: 0.86rem;
  font-weight: 900;
}

.empty-state {
  display: grid;
  min-height: 240px;
  place-items: center;
  padding: 26px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #bec9d8;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--sek-blue);
  font-size: 1.25rem;
}

.lost-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(760px, 100%);
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px 26px 0 0;
  background: rgba(4, 22, 48, 0.94);
  box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lost-bottom-nav a {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 58px;
  padding: 7px 4px 4px;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
}

.lost-bottom-nav a:first-child {
  color: var(--sek-gold);
}

.admin-main {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: 18px;
}

.admin-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(19, 38, 69, 0.08);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-heading h1,
.section-heading h2 {
  color: var(--sek-blue);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.section-heading p:last-child {
  color: var(--muted);
}

.upload-form {
  display: grid;
  gap: 14px;
}

.upload-drop {
  position: relative;
  display: grid;
  min-height: 250px;
  place-items: center;
  overflow: hidden;
  color: var(--sek-blue);
  border: 2px dashed #bfd0e5;
  border-radius: 20px;
  background: #f7f9fd;
  cursor: pointer;
}

.upload-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-drop img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
}

.upload-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-weight: 900;
}

.upload-empty svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.form-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 900;
}

.form-field input,
.form-field textarea {
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font: inherit;
  font-weight: 700;
}

.form-field input {
  height: 50px;
  padding: 0 14px;
}

.form-field textarea {
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}

.primary-action {
  width: 100%;
  background: linear-gradient(135deg, var(--sek-blue), var(--sek-blue-2));
}

.primary-action:disabled {
  opacity: 0.62;
  cursor: wait;
}

.upload-feedback {
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.25;
}

.upload-feedback.is-visible {
  display: block;
}

.upload-feedback.is-success {
  color: #0a6b44;
  border: 1px solid #b8e7d0;
  background: #e9fbf2;
}

.upload-feedback.is-info {
  color: var(--sek-blue);
  border: 1px solid #bfd0e5;
  background: #f0f5fc;
}

.upload-feedback.is-error {
  color: #9d1d1d;
  border: 1px solid #f0caca;
  background: #fff5f5;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcff;
}

.admin-item img {
  width: 88px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #dce5f1;
}

.admin-item h3 {
  margin: 0 0 4px;
  color: var(--sek-blue);
  font-size: 1rem;
}

.admin-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.delete-btn {
  min-height: 42px;
  padding: 0 14px;
  color: #9d1d1d;
  border: 1px solid #f0caca;
  border-radius: 999px;
  background: #fff5f5;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

@media (min-width: 900px) {
  .lost-shell {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 760px) {
  .lost-hero {
    min-height: 82px;
  }

  .hero-back {
    width: 40px;
    height: 40px;
  }

  .hero-logo {
    width: 52px;
    height: 52px;
  }

  .lost-main {
    padding: 14px;
  }

  .lost-title-panel {
    min-height: 220px;
    border-radius: 20px;
  }

  .lost-toolbar,
  .admin-main {
    grid-template-columns: 1fr;
  }

  .refresh-btn {
    width: 100%;
  }

  .admin-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .admin-item img {
    width: 72px;
    height: 62px;
  }

  .delete-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}
