@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=Barlow+Condensed:wght@700;800&display=swap");

:root {
  --bg: #030304;
  --panel: rgba(13, 13, 16, 0.7);
  --panel-soft: rgba(20, 20, 24, 0.6);
  --panel-elevated: rgba(30, 30, 35, 0.85);
  --ink: #ffffff;
  --text: #e0e0e6;
  --muted: #8a8a95;
  --line: rgba(255, 255, 255, 0.05);
  --accent: #ffb800;
  --accent-strong: #ffc700;
  --accent-glow: rgba(255, 184, 0, 0.4);
  --shadow-sm: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 32px 64px rgba(0, 0, 0, 0.6);
  --max-width: 1400px;
  --header-height: 100px;
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Outfit", sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 184, 0, 0.1), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(255, 184, 0, 0.05), transparent 40%),
    #030304;
  background-attachment: fixed;
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 10px;
  z-index: 120;
  background:
    repeating-linear-gradient(
      -45deg,
      #000 0 10px,
      #000 10px 18px,
      var(--accent) 18px 28px,
      var(--accent) 28px 36px
    );
  box-shadow: 0 0 24px rgba(255, 173, 20, 0.22);
}

body::before {
  top: 0;
}

body::after {
  bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  position: relative;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0 84px;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 173, 20, 0.22), transparent);
}

.site-shell::before {
  left: max(16px, calc((100vw - min(calc(100% - 32px), var(--max-width))) / 2));
}

.site-shell::after {
  right: max(16px, calc((100vw - min(calc(100% - 32px), var(--max-width))) / 2));
}

.site-header {
  position: sticky;
  top: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
  padding: 0 32px;
  background: rgba(10, 10, 12, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  margin-bottom: 40px;
}

.site-header::before,
.section::before,
.section::after,
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.site-header::before {
  inset: auto 18px 14px auto;
  width: 88px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  opacity: 0.72;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #030304;
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
  border: 2px solid #030304;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-strong);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  padding: 6px;
  background: #fff;
  box-shadow: 0 0 40px var(--accent-glow);
  border-radius: 4px;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-copy strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}

.brand-copy span:last-child {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--ink);
  text-shadow: 0 0 18px rgba(255, 173, 20, 0.28);
}

.menu-toggle {
  display: none;
  padding: 10px 14px;
  border: 1px solid rgba(255, 173, 20, 0.32);
  background: rgba(255, 173, 20, 0.08);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

main {
  display: grid;
  gap: 18px;
}

.hero,
.page-hero,
.section,
.gallery-modal-figure,
.support-card,
.map-frame {
  position: relative;
}

.hero,
.page-hero {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.54)),
    linear-gradient(180deg, rgba(255, 173, 20, 0.06), transparent 22%),
    url("https://images.unsplash.com/photo-1511818966892-d7d671e672a2?auto=format&fit=crop&w=1800&q=80")
      center / cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero::before,
.page-hero::before {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 173, 20, 0.1), transparent 14%),
    linear-gradient(90deg, rgba(255, 173, 20, 0.08), transparent 20%);
}

.hero {
  min-height: calc(100vh - 180px);
  padding: 92px 48px 44px;
}

.page-hero {
  padding: 56px 36px 42px;
}

.hero > *,
.page-hero > * {
  position: relative;
  z-index: 1;
}

.hero-emblem {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 2;
  width: 148px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 0 40px rgba(255, 173, 20, 0.2);
}

.hero-copy {
  max-width: 900px;
}

.eyebrow,
.card-label,
.feature-index,
.hero-command,
.timeline-item span,
.gallery-card span,
.map-note,
.brand-tag {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-card {
  display: block;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #000;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.8) contrast(1.1);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
}

.gallery-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}

.gallery-card h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gallery-card .card-label {
  margin: 0;
  opacity: 0.8;
}

.gallery-card:hover {
  transform: scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(255, 184, 0, 0.15);
}

.gallery-card:hover img {
  transform: scale(1.1);
  filter: brightness(1) contrast(1.1);
}

/* Scanline Effect */
.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.1) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.03)
  );
  background-size: 100% 4px, 3px 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.82rem;
}

.hero-command {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 14px;
  color: var(--accent);
  border: 1px solid rgba(255, 173, 20, 0.34);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 173, 20, 0.06);
}

.hero-command::before {
  content: ">";
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(4rem, 9vw, 7.6rem);
  letter-spacing: -0.02em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.section {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 60px;
}

.page-hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0.01em;
}

h3 {
  font-size: 1.75rem;
  letter-spacing: 0.02em;
}

.hero h1 span,
.page-hero h1 span {
  display: block;
}

.hero .accent-word,
.page-hero .accent-word {
  color: var(--accent);
  text-shadow: 0 0 28px var(--accent-glow);
}

.lead,
.section p,
.hero-card p,
.feature-card p,
.article-card p,
.story-card p,
.timeline-item p,
.support-copy p,
.membership-card p,
.contact-card p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.lead {
  max-width: 62ch;
  color: #d4d4d9;
}

.lead-panel {
  max-width: 680px;
  margin-top: 26px;
  padding: 22px 22px 20px 24px;
  border-left: 4px solid var(--accent);
  background: rgba(8, 8, 10, 0.74);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.lead-panel p {
  margin: 0;
  color: #cfd0d3;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero-panel,
.feature-grid,
.story-layout,
.article-grid,
.two-column,
.timeline-section .timeline,
.contact-grid,
.support-band {
  display: grid;
  gap: 18px;
}

.hero-panel {
  margin-top: 36px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-card,
.feature-card,
.story-card,
.article-card,
.timeline-item,
.contact-card,
.membership-card,
.support-card {
  position: relative;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Contact Form Styles */
.contact-grid {
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.contact-info-list {
  display: grid;
  gap: 24px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

.contact-form-card {
  padding: 40px;
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 15px rgba(255, 184, 0, 0.15);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 184, 0, 0.3);
}

.success-alert {
  padding: 24px;
  background: rgba(0, 255, 100, 0.1);
  border: 1px solid rgba(0, 255, 100, 0.3);
  border-radius: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.success-alert i {
  font-size: 1.5rem;
  color: #00ff64;
}

.hero-card:hover,
.feature-card:hover,
.story-card:hover,
.article-card:hover {
  transform: translateY(-8px);
  background: var(--panel-elevated);
  border-color: rgba(255, 184, 0, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 184, 0, 0.1);
}

.hero-card::before,
.feature-card::before,
.story-card::before,
.article-card::before,
.timeline-item::before,
.contact-card::before,
.membership-card::before,
.support-card::before,
.section::before,
.section::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.74;
}

.hero-card::before,
.feature-card::before,
.story-card::before,
.article-card::before,
.timeline-item::before,
.contact-card::before,
.membership-card::before,
.support-card::before,
.section::before {
  top: 10px;
  left: 10px;
  border-width: 1px 0 0 1px;
}

.section::after {
  right: 10px;
  bottom: 10px;
  border-width: 0 1px 1px 0;
}

.card-label,
.feature-index {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.74rem;
}

.hero-card .card-label {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.68rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 0 transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(255, 173, 20, 0.2);
}

.button-primary {
  background: linear-gradient(180deg, var(--accent-strong), #f0a000);
  color: #0a0a0a;
}

.button-secondary {
  border-color: rgba(255, 173, 20, 0.26);
  background: rgba(255, 173, 20, 0.08);
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-actions-centered {
  justify-content: center;
  margin-top: 26px;
}

.section {
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%),
    var(--panel-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

body[data-page="home"] .hero {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.62) 52%, rgba(0, 0, 0, 0.84)),
    radial-gradient(circle at 62% 34%, rgba(255, 173, 20, 0.2), transparent 28%),
    url("../gkep/nussdorf_files/dzien_otwarty_2.jpg") center 42% / cover no-repeat;
}

body[data-page="home"] .home-archive {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(5, 5, 5, 0.78)),
    linear-gradient(90deg, rgba(255, 173, 20, 0.1), transparent 34%),
    url("../gkep/nussdorf_files/lotnicze-1024x5.jpg") center center / cover no-repeat;
}

body[data-page="home"] .home-mission {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(5, 5, 5, 0.8)),
    radial-gradient(circle at 82% 26%, rgba(255, 173, 20, 0.14), transparent 24%),
    url("../gkep/nussdorf_files/rewitalizacja.jpg") center 44% / cover no-repeat;
}

body[data-page="home"] .home-story {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(5, 5, 5, 0.8)),
    linear-gradient(90deg, rgba(255, 173, 20, 0.08), transparent 38%),
    url("../gkep/nussdorf_files/syrena.jpg") center 42% / cover no-repeat;
}

body[data-page="home"] .support-band {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(5, 5, 5, 0.76)),
    linear-gradient(90deg, rgba(255, 173, 20, 0.08), transparent 42%),
    url("../gkep/nussdorf_files/schron_morska_wejscie.jpg") center 46% / cover no-repeat;
}

body[data-page="historia"] .page-hero {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.58)),
    radial-gradient(circle at 70% 30%, rgba(255, 173, 20, 0.14), transparent 24%),
    url("https://scontent-waw2-1.xx.fbcdn.net/v/t39.30808-6/484035017_1175307357717932_1957021257045158499_n.jpg?_nc_cat=111&ccb=1-7&_nc_sid=dd6889&_nc_ohc=TNy-C4mHTpwQ7kNvwEe0sQq&_nc_oc=AdqHPmmlckrho86lb7JRSZBs--Wd0A8L7itqCi3mhab8CC-1YVPkY7uF7EO68m8ZyTI&_nc_zt=23&_nc_ht=scontent-waw2-1.xx&_nc_gid=yrSxcQltvQarsosvyOkfBg&_nc_ss=7b289&oh=00_Af3Mq9U1WknPGB0gKnTIauReOqXemSi8lpH_XSbfRifARg&oe=69F3AF4C")
      center 26% / cover no-repeat;
}

body[data-page="historia"] main > .section:nth-of-type(2) {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(8, 8, 8, 0.78)),
    url("https://scontent-waw2-1.xx.fbcdn.net/v/t39.30808-6/483707668_1172674871314514_3671190210674023991_n.jpg?_nc_cat=109&ccb=1-7&_nc_sid=7b2446&_nc_ohc=yc1iHwqoLmsQ7kNvwEKNEYM&_nc_oc=AdpQ_PDuBxQCvqDczFBCLsD3NqLDhLUC_yeNPNjmFRURq2R6fNy5hQ_GMdH47nbWSxk&_nc_zt=23&_nc_ht=scontent-waw2-1.xx&_nc_gid=En7g9z9zkM3ONXM4RkX8hg&_nc_ss=7b289&oh=00_Af0zn4So_emf_NlDycvf17mMTkrpuALGjG0einDNiGL2xA&oe=69F3C0B8")
      center center / cover no-repeat;
}

body[data-page="historia"] .timeline-section {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(10, 10, 10, 0.8)),
    radial-gradient(circle at 20% 30%, rgba(255, 173, 20, 0.14), transparent 24%),
    url("https://scontent-waw2-2.xx.fbcdn.net/v/t39.30808-6/482356314_1172078041374197_6261313874533734634_n.jpg?_nc_cat=100&ccb=1-7&_nc_sid=dd6889&_nc_ohc=7tQhY-PmPKQQ7kNvwH5-AM0&_nc_oc=Ados3wCLshtxKBdnuENMX9Dk_hRmlawaZ8RJVdTsLDOG39lB--FjYAMp3_3TyPVW1-k&_nc_zt=23&_nc_ht=scontent-waw2-2.xx&_nc_gid=PFeE8WQmRFEv9uEqRG5EoQ&_nc_ss=7b289&oh=00_Af1s7hw39A5Cy0nKuzKBMoBKf_I444X0YxSL9ddE_72jlw&oe=69F39AC0")
      center center / cover no-repeat;
}

body[data-page="historia"] main > .section:nth-of-type(4) {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(8, 8, 8, 0.8)),
    url("https://scontent-waw2-2.xx.fbcdn.net/v/t39.30808-6/483099906_1171781091403892_7943406919465450640_n.jpg?_nc_cat=100&ccb=1-7&_nc_sid=7b2446&_nc_ohc=yKpJ9tAq6FQQ7kNvwEHBBlY&_nc_oc=AdqAMQvfYk6WcbPxusuNIbuPEczHgc-G1mtUMbnJU_5_Ly-LkOd1oIV7tXopukfXzro&_nc_zt=23&_nc_ht=scontent-waw2-2.xx&_nc_gid=5s0k3e2S1AArqXDTg6HsXg&_nc_ss=7b289&oh=00_Af2wkcGfAafvX7ECwpgPTxcX4AD4NsO-LQ9raEHAU68Bow&oe=69F3B57C")
      center 42% / cover no-repeat;
}

body[data-page="historia"] main > .section:nth-of-type(5) {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(8, 8, 8, 0.8)),
    url("https://scontent-waw2-1.xx.fbcdn.net/v/t39.30808-6/482346543_1171779288070739_4540585169638751077_n.jpg?_nc_cat=110&ccb=1-7&_nc_sid=7b2446&_nc_ohc=ywxpqXFFEs0Q7kNvwERr0th&_nc_oc=AdpXDNkD_HGG-Elqmu3J-MPWqBI5qBB5OBmtzmGjzDT3r1tY5sT5PL0aG2cuU-cePKA&_nc_zt=23&_nc_ht=scontent-waw2-1.xx&_nc_gid=eZQBBMN9nfJDWYeuv0UqRw&_nc_ss=7b289&oh=00_Af1UQ6xvXgkL5Y6jM7kMJRKZXT_I4xE8iTxbATFyQnGTiQ&oe=69F3BD36")
      center 38% / cover no-repeat;
}

body[data-page="schrony"] .page-hero {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.54)),
    radial-gradient(circle at 72% 26%, rgba(255, 173, 20, 0.16), transparent 24%),
    url("https://scontent-waw2-2.xx.fbcdn.net/v/t39.30808-6/482238755_1171769071405094_3369505692322671404_n.jpg?_nc_cat=105&ccb=1-7&_nc_sid=dd6889&_nc_ohc=Vzs6-N841cEQ7kNvwFvxtIg&_nc_oc=Adqh8f0z8JQnAdGMCPAYjyHzVYCOGxuYedZxF-uXOZzU2UnRf-V5lNCtCAD2LrnoZfk&_nc_zt=23&_nc_ht=scontent-waw2-2.xx&_nc_gid=qAN_Hs4Bn5d81LYRyt6DBg&_nc_ss=7b289&oh=00_Af1GGNbLnaYWfNZxucJd-0U0U3UfKPBO3UxGBv1Fs3flPA&oe=69F3B9B1")
      center 28% / cover no-repeat;
}

body[data-page="schrony"] main > .section:nth-of-type(2) {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(7, 7, 7, 0.78)),
    url("https://scontent-waw2-1.xx.fbcdn.net/v/t39.30808-6/483930739_1171410941440907_8767258123929777394_n.jpg?_nc_cat=110&ccb=1-7&_nc_sid=13d280&_nc_ohc=TkwKEM-7igoQ7kNvwH80m-U&_nc_oc=AdrOjtJqt3ggN8yY7d3FBcUkQNbVVYFucVdxs7q5mFfLooJx7xgCcwrbUwVxo68kUQw&_nc_zt=23&_nc_ht=scontent-waw2-1.xx&_nc_gid=OodRacddIG8Q4hk94b5XTA&_nc_ss=7b289&oh=00_Af2jqLCjZEw4b3IfJquM2SaAUw9nHuOb0KT4-PHkNO5yzA&oe=69F3A7EA")
      center center / cover no-repeat;
}

body[data-page="schrony"] main > .section:nth-of-type(3) {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(7, 7, 7, 0.8)),
    url("https://scontent-waw2-1.xx.fbcdn.net/v/t39.30808-6/482027947_1170409141541087_5748060030606061204_n.jpg?_nc_cat=111&ccb=1-7&_nc_sid=13d280&_nc_ohc=SU6-mjY94DAQ7kNvwHUg40p&_nc_oc=AdrNMHoApJs31H9Z9gc-8Q3uu6v1GY9q3FAy2X0BuQ6vPa92dDVNoDe-pfVgjdwIRms&_nc_zt=23&_nc_ht=scontent-waw2-1.xx&_nc_gid=3VRFqqMUTm38X0Pl99JECA&_nc_ss=7b289&oh=00_Af329QeoJfDDko4ghmuwjX3lcFskcqdnphnh-CSeZw6WIQ&oe=69F3B012")
      center 34% / cover no-repeat;
}

body[data-page="schrony"] main > .section:nth-of-type(4) {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(7, 7, 7, 0.8)),
    url("https://scontent-waw2-2.xx.fbcdn.net/v/t39.30808-6/482225101_1170376071544394_1975185732468739412_n.jpg?_nc_cat=105&ccb=1-7&_nc_sid=7b2446&_nc_ohc=21wpEeNBOswQ7kNvwEPxpHO&_nc_oc=Adqt9IsM2tv52NBTTc6iwnT0AdY4bvLV-9FmCBjBYVXZ2L8--4TgigZ6SEFRw_zLzt0&_nc_zt=23&_nc_ht=scontent-waw2-2.xx&_nc_gid=F0j1aIwILF5LoKM6DaRDqg&_nc_ss=7b289&oh=00_Af2OBpXHoM-wpptmLeS3Vca7gOCQY4piVgB3XzxNPuGbVw&oe=69F39B0A")
      center center / cover no-repeat;
}

body[data-page="schrony"] main > .section:nth-of-type(5) {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(7, 7, 7, 0.8)),
    linear-gradient(90deg, rgba(255, 173, 20, 0.05), transparent 34%),
    url("https://scontent-waw2-1.xx.fbcdn.net/v/t39.30808-6/299188689_568964075018933_2716924120610115908_n.jpg?_nc_cat=108&ccb=1-7&_nc_sid=1d70fc&_nc_ohc=P9nc3-VGxpIQ7kNvwFIb8KD&_nc_oc=AdqWj0JpKaGdCRoQPhv6_b0_OP17ws3US0xFIxMx8sbwnlvfMW64A5Nx4FoTycITup0&_nc_zt=23&_nc_ht=scontent-waw2-1.xx&_nc_gid=wNcRh5gzesDsEY9RojtuSg&_nc_ss=7b289&oh=00_Af2VtDtAXa1wMy0O_cfhqVCKzmSJZKzNMy9DwnL5lD5Oqg&oe=69F39678")
      center center / cover no-repeat;
}

body[data-page="mapa"] .page-hero {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.56)),
    linear-gradient(180deg, rgba(255, 173, 20, 0.08), transparent 24%),
    url("https://scontent-waw2-2.xx.fbcdn.net/v/t39.30808-6/484859139_9124417967664720_6623774215605084227_n.jpg?_nc_cat=102&ccb=1-7&_nc_sid=dd6889&_nc_ohc=22FALZQ4NHIQ7kNvwG_Jeld&_nc_oc=AdqsFZ7TLyQXSel2JHuqyEMc3fHAsBdKoBc3-cXNx_u3YFqb6MHzFnBxyXtt3iLOY9w&_nc_zt=23&_nc_ht=scontent-waw2-2.xx&_nc_gid=8lYbfEbUl-yUNuXwt98srQ&_nc_ss=7b289&oh=00_Af3yY8BIcqfnh9abpQ5xADBhJegqiWI6Wyv3ZhorsNe_sw&oe=69F3C100")
      center center / cover no-repeat;
}

body[data-page="mapa"] .map-section {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(6, 6, 6, 0.76)),
    url("https://scontent-waw2-1.xx.fbcdn.net/v/t39.30808-6/485615994_9115755588530958_7902969273851614932_n.jpg?_nc_cat=108&ccb=1-7&_nc_sid=dd6889&_nc_ohc=HijEj8VEz6MQ7kNvwEF6O6E&_nc_oc=AdqMZQ2zRbLlhTtwWBCcRZUR-sRBw1yUe9SrHUU9mp3ZlyLpkeaMYYjs7Rw9_T_Eyw8&_nc_zt=23&_nc_ht=scontent-waw2-1.xx&_nc_gid=-_wi-S3kQmfg7X5qzu4FOw&_nc_ss=7b289&oh=00_Af3OWHs5JTB8BCkFCP3OISG2pzvD4RltHg76B-2bYRAopQ&oe=69F3C1B5")
      center 46% / cover no-repeat;
}

body[data-page="kontakt"] .page-hero {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.56)),
    linear-gradient(180deg, rgba(255, 173, 20, 0.08), transparent 24%),
    url("https://scontent-waw2-2.xx.fbcdn.net/v/t39.30808-6/485292815_9109008919205625_8584847035128235913_n.jpg?_nc_cat=105&ccb=1-7&_nc_sid=dd6889&_nc_ohc=4W7Dw4eb2zMQ7kNvwGJgkjq&_nc_oc=Adq1AatsarICG80pRNj3JsubFna1S5Bnf0aINJ9dS-qaBU4SwlhfmhEgi6maOsf35V4&_nc_zt=23&_nc_ht=scontent-waw2-2.xx&_nc_gid=-PqmqIWtO9HEYzkUOmrW8w&_nc_ss=7b289&oh=00_Af3_M21NnpX5VrwhNEU90WFiqZN9SnIQpiQ3CEszOcWe-A&oe=69F3C45B")
      center center / cover no-repeat;
}

body[data-page="kontakt"] main > .section:nth-of-type(2) {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(6, 6, 6, 0.8)),
    url("https://scontent-waw2-1.xx.fbcdn.net/v/t39.30808-6/484859442_9101055676667616_5514956015932020271_n.jpg?_nc_cat=104&ccb=1-7&_nc_sid=dd6889&_nc_ohc=z5gt7PY1PA4Q7kNvwH3mP-h&_nc_oc=AdoXSw-jslbosIKd30bf8EfWB05X_IacMUzqAVkD3JajauoVgXdQ0anBaIImUWSREoI&_nc_zt=23&_nc_ht=scontent-waw2-1.xx&_nc_gid=pdd2bp89lYY9wgOWj6VuHg&_nc_ss=7b289&oh=00_Af0BldVUEjEq5I0IjIxkl8nskMDwmI1oKKUfGDIxzZLHTg&oe=69F3C57E")
      center 34% / cover no-repeat;
}

body[data-page="kontakt"] main > .section:nth-of-type(3) {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(6, 6, 6, 0.8)),
    url("https://scontent-waw2-1.xx.fbcdn.net/v/t39.30808-6/476640232_1149148207000514_5284918319155221517_n.jpg?_nc_cat=108&ccb=1-7&_nc_sid=2a1932&_nc_aid=0&_nc_ohc=IcyUqjyeZ5AQ7kNvwFtixaD&_nc_oc=Ado01BGDw2IPKudtjpKxpx1aYlDW2LCpCIdfpMbNfFTcdmuwbJ5xv_-fU-x7ccxGacM&_nc_zt=23&_nc_ht=scontent-waw2-1.xx&_nc_gid=KOiy0PBaY_vvn820cqJ8zg&_nc_ss=7b289&oh=00_Af2F9QDw_tL96lQq8FHeUrOCS_kZU-yOiIvBjEFy3gq-cg&oe=69F3C1A4")
      center center / cover no-repeat;
}

body[data-page="kontakt"] main > .section:nth-of-type(4) {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(6, 6, 6, 0.8)),
    url("https://scontent-waw2-1.xx.fbcdn.net/v/t39.30808-6/487878060_1187598339822167_924165343995962607_n.jpg?_nc_cat=111&ccb=1-7&_nc_sid=dd6889&_nc_ohc=dhqnjTPgLj0Q7kNvwHTu5-z&_nc_oc=AdpAAl5rDYqknAmsxZxhoYEgZpMX4zDvxwjS12GSGlzO3sJhrnwMLr-SqTKFfdDGvG0&_nc_zt=23&_nc_ht=scontent-waw2-1.xx&_nc_gid=t-vGiGzj3zkoxVg_uJ1fpQ&_nc_ss=7b289&oh=00_Af2TcV3dNoOCmIs1Iw0boUXGqbBVTrlFcFRHzX9yHwm2tQ&oe=69F3A488")
      center 40% / cover no-repeat;
}

body[data-page="kontakt"] .support-band {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(6, 6, 6, 0.74)),
    linear-gradient(90deg, rgba(255, 173, 20, 0.08), transparent 38%),
    url("https://scontent-waw2-1.xx.fbcdn.net/v/t39.30808-6/485164298_1178515690730432_6512617908239075878_n.jpg?_nc_cat=108&ccb=1-7&_nc_sid=dd6889&_nc_ohc=HiEpV2uJl-gQ7kNvwFj4LWW&_nc_oc=AdrnHCyJ8vqZaFVXMUIGQEg-cY1mHBR1qKgKOL108uLgQkmi8yTHvheQZhEtbrTaIv4&_nc_zt=23&_nc_ht=scontent-waw2-1.xx&_nc_gid=oriQiWqcoYjkTq8SgZe_mA&_nc_ss=7b289&oh=00_Af3GMgGxON4GWMs8O3V5C72AG742ATZvMuBh51wRJ9K3gg&oe=69F39610")
      center 44% / cover no-repeat;
}

body[data-page="historia"] .history-overview {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(8, 8, 8, 0.8)),
    url("../gkep/nussdorf_files/cropped-1464748.jpg") center 28% / cover no-repeat;
}

body[data-page="historia"] .nussdorf-archive {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(8, 8, 8, 0.8)),
    url("../gkep/nussdorf_files/lotnicze-1024x5.jpg") center center / cover no-repeat;
}

body[data-page="historia"] .nussdorf-people {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(8, 8, 8, 0.82)),
    url("../gkep/nussdorf_files/estonscy_uchodzcy.jpg") center 30% / cover no-repeat;
}

body[data-page="historia"] .tos-overview {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(8, 8, 8, 0.82)),
    url("../gkep/nussdorf_files/cropped-1464748.jpg") center 34% / cover no-repeat;
}

body[data-page="historia"] .tos-research {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(8, 8, 8, 0.82)),
    url("../gkep/nussdorf_files/badania2010_2.jpg") center center / cover no-repeat;
}

body[data-page="schrony"] .schrony-context {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(7, 7, 7, 0.8)),
    url("../gkep/nussdorf_files/arkusz1.png") center center / cover no-repeat;
}

body[data-page="schrony"] .schrony-collapse {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(7, 7, 7, 0.82)),
    url("../gkep/nussdorf_files/pajeczyny.jpg") center 28% / cover no-repeat;
}

body[data-page="schrony"] .schrony-restoration {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(7, 7, 7, 0.82)),
    url("../gkep/nussdorf_files/rewitalizacja.jpg") center center / cover no-repeat;
}

body[data-page="schrony"] .schrony-open-days {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(7, 7, 7, 0.8)),
    url("../gkep/nussdorf_files/dzien_otwarty_2.jpg") center center / cover no-repeat;
}

body[data-page="schrony"] .schrony-systems {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(7, 7, 7, 0.8)),
    url("../gkep/nussdorf_files/syrena.jpg") center 28% / cover no-repeat;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 24px;
}

.article-flow,
.archive-summary,
.figure-stack {
  display: grid;
  gap: 18px;
}

.article-photo-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
  align-items: start;
}

.article-figure {
  margin: 0;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--panel-elevated);
  box-shadow: var(--shadow);
}

.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #050505;
  filter: contrast(1.08) saturate(0.94);
}

.article-figure figcaption {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1.55;
  text-transform: uppercase;
}

.source-banner img {
  aspect-ratio: 16 / 9;
}

.article-grid.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid-article .gallery-card img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 4px;
}

.gallery-grid-article .gallery-card span {
  min-height: 2.8em;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card-wide {
  grid-column: span 2;
}

.two-column,
.support-band {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-section .timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-item span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.88rem;
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-card a,
.feature-card a,
.site-footer a {
  color: var(--accent-strong);
}

.support-card {
  background:
    linear-gradient(180deg, rgba(255, 173, 20, 0.12), transparent 34%),
    rgba(11, 11, 12, 0.94);
}

.support-number {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0.04em;
  word-break: break-word;
}

.map-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.map-toolbar p {
  max-width: 760px;
  margin: 8px 0 0;
  color: rgba(237, 242, 247, 0.68);
  line-height: 1.5;
}

.map-action-row,
.admin-map-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-command-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.26);
}

.map-command-panel label {
  display: grid;
  gap: 6px;
  color: rgba(237, 242, 247, 0.66);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.map-command-panel input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.42);
}

.map-basemap-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.map-basemap-switch button {
  min-height: 38px;
  padding: 8px 12px;
  color: rgba(237, 242, 247, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.map-basemap-switch button.is-active,
.map-basemap-switch button:hover,
.map-basemap-switch button:focus-visible {
  color: #0a0a0a;
  border-color: var(--accent);
  background: var(--accent);
}

.map-app-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.45fr) minmax(420px, 1.3fr) minmax(260px, 0.55fr);
  gap: 14px;
  align-items: stretch;
}

.map-place-list-panel,
.map-intel-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(5, 6, 9, 0.86);
}

.map-place-list-panel h3,
.map-intel-card h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
}

.map-place-list {
  display: grid;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.map-place-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 10px;
  text-align: left;
  color: rgba(237, 242, 247, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.map-place-row:hover,
.map-place-row:focus-visible,
.map-place-row.is-active {
  border-color: rgba(255, 173, 20, 0.6);
  background: rgba(255, 173, 20, 0.1);
}

.map-place-row strong,
.map-place-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-place-row strong {
  color: #fff;
  text-transform: uppercase;
}

.map-place-row small,
.map-empty {
  color: rgba(237, 242, 247, 0.58);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

.map-place-dot {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border: 2px solid #050505;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 173, 20, 0.45);
}

.map-live-stage {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  border: 1px solid rgba(255, 173, 20, 0.22);
  background: #050505;
  box-shadow: 0 0 30px rgba(255, 173, 20, 0.08);
}

.map-leaflet,
.google-map-frame {
  width: 100%;
  height: 100%;
  min-height: 660px;
}

.google-map-frame {
  min-height: 660px;
  border: 0;
  box-shadow: none;
}

.google-map-frame iframe {
  height: 660px;
}

.gkep-map-pin {
  display: grid;
  place-items: center;
}

.gkep-map-pin span {
  width: 18px;
  height: 18px;
  border: 3px solid #050505;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 173, 20, 0.35), 0 0 24px rgba(255, 173, 20, 0.4);
}

.gkep-map-pin.is-active span {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 173, 20, 0.55), 0 0 32px rgba(255, 255, 255, 0.3);
}

.map-fallback-canvas {
  position: relative;
  background:
    linear-gradient(90deg, rgba(255, 173, 20, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 173, 20, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 42% 50%, rgba(255, 173, 20, 0.18), transparent 22%),
    #050505;
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.fallback-map-pin {
  position: absolute;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.fallback-map-pin span {
  display: block;
  width: 18px;
  height: 18px;
  border: 3px solid #050505;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 173, 20, 0.35);
}

.map-intel-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.map-intel-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-intel-card p,
.map-intel-card span {
  margin: 0;
  color: rgba(237, 242, 247, 0.72);
  line-height: 1.55;
}

.map-intel-card span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  color: var(--accent-strong);
}

.map-frame {
  overflow: hidden;
  min-height: 72vh;
  border: 1px solid rgba(255, 173, 20, 0.22);
  box-shadow: 0 0 30px rgba(255, 173, 20, 0.08);
}

.map-frame iframe {
  width: 100%;
  height: 72vh;
  border: 0;
  background: #050505;
  filter: saturate(0.88) contrast(1.04);
}

.admin-kml-form {
  margin-bottom: 14px;
}

.map-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-card {
  display: grid;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--panel-elevated);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 173, 20, 0.4);
  box-shadow: 0 0 28px rgba(255, 173, 20, 0.12);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #050505;
  filter: contrast(1.08) saturate(0.92);
}

.gallery-card span {
  color: var(--muted);
  font-size: 0.72rem;
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 28px;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
}

.gallery-modal-close,
.gallery-modal-nav {
  border: 1px solid rgba(255, 173, 20, 0.24);
  background: rgba(10, 10, 12, 0.92);
  color: var(--ink);
  cursor: pointer;
}

.gallery-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 12px 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-modal-nav {
  width: 56px;
  height: 56px;
  font-size: 2rem;
  line-height: 1;
}

.gallery-modal-figure {
  margin: 0;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.gallery-modal-image {
  max-width: min(1100px, 100%);
  max-height: 78vh;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gallery-modal-caption {
  color: var(--accent-strong);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.quote-band blockquote {
  margin: 0;
  max-width: 16ch;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.98;
  text-transform: uppercase;
}

body[data-page="galeria"] .page-hero {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.58)),
    radial-gradient(circle at 70% 28%, rgba(255, 173, 20, 0.16), transparent 24%),
    url("../gkep/nussdorf_files/dzien_otwarty_2.jpg") center 36% / cover no-repeat;
}

body[data-page="galeria"] .gallery-command {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(7, 7, 7, 0.8)),
    url("../gkep/nussdorf_files/badania2010_2.jpg") center center / cover no-repeat;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.album-card {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.album-card a {
  display: grid;
  min-height: 100%;
}

.album-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #090909;
}

.album-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.74)),
    linear-gradient(90deg, rgba(255, 173, 20, 0.08), transparent 42%);
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(0.92);
  transition: transform 220ms ease, filter 220ms ease;
}

.album-card:hover .album-cover img,
.album-card:focus-within .album-cover img {
  transform: scale(1.04);
  filter: contrast(1.12) saturate(1);
}

.album-meta {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.album-meta strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.9rem;
  line-height: 1;
  text-transform: uppercase;
}

.album-meta span:last-child {
  color: var(--muted);
  line-height: 1.6;
}

body[data-page="admin"] {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 173, 20, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.96)),
    url("../gkep/nussdorf_files/syrena.jpg") center / cover fixed;
}

.admin-root {
  min-height: 100vh;
  padding: 28px;
}

.admin-login {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
}

.admin-login-card,
.admin-sidebar,
.admin-topbar,
.admin-preview,
.admin-card {
  background: rgba(8, 8, 10, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.admin-login-card {
  width: min(460px, 100%);
  padding: 32px;
  border-top: 3px solid var(--accent);
}

.admin-login-card h1 {
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8vw, 5.2rem);
}

.admin-app {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 56px);
}

.admin-sidebar {
  position: sticky;
  top: 28px;
  align-self: start;
  display: grid;
  gap: 22px;
  padding: 18px;
}

.admin-brand {
  align-items: center;
}

.admin-page-list,
.admin-sidebar-actions,
.admin-actions,
.admin-form {
  display: grid;
  gap: 10px;
}

.admin-page-list button,
.admin-album-row button {
  min-height: 44px;
  border: 1px solid rgba(255, 173, 20, 0.18);
  background: rgba(255, 173, 20, 0.06);
  color: var(--ink);
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-page-list button:hover,
.admin-page-list button.is-active,
.admin-album-row button:hover {
  border-color: rgba(255, 173, 20, 0.46);
  background: rgba(255, 173, 20, 0.16);
}

.admin-workspace {
  display: grid;
  gap: 18px;
}

.admin-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}

.admin-topbar h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.admin-topbar p:last-child,
.admin-status,
.admin-error {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.admin-error {
  color: #ff7373;
}

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

.admin-preview {
  overflow: hidden;
  min-height: 78vh;
}

.admin-preview iframe {
  width: 100%;
  height: 78vh;
  border: 0;
  background: #050505;
}

.admin-inspector {
  display: grid;
  gap: 18px;
}

.admin-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.admin-card h3 {
  font-size: 1.55rem;
}

.admin-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.admin-meta div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
}

.admin-meta dt,
.admin-meta dd {
  margin: 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.admin-form label,
.admin-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-form input,
.admin-form textarea,
.admin-card input,
.admin-card textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0;
  resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-card input:focus,
.admin-card textarea:focus {
  outline: 2px solid rgba(255, 173, 20, 0.46);
  outline-offset: 2px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

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

.admin-album-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.admin-album-row img {
  width: 76px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.admin-album-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-album-row strong,
.admin-album-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-album-row strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.admin-album-row span {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
}

.admin-frame-mode [data-admin-editable="true"] {
  outline: 1px dashed rgba(255, 173, 20, 0.32);
  outline-offset: 3px;
  cursor: crosshair;
}

.admin-frame-mode [data-admin-editable="true"]:hover,
.admin-frame-mode .admin-selected-element {
  outline: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 173, 20, 0.12);
}

.admin-frame-mode [contenteditable="true"] {
  cursor: text;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 18px;
  padding: 18px 4px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hero {
    padding: 72px 28px 32px;
  }

  .hero-emblem {
    top: 26px;
    left: 26px;
    width: 120px;
  }

  .hero-panel,
  .feature-grid,
  .story-layout,
  .article-grid,
  .article-photo-band,
  .album-grid,
  .timeline-section .timeline,
  .contact-grid,
  .gallery-grid,
  .support-band,
  .two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-app,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-preview iframe {
    height: 72vh;
  }

  .article-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  body::before,
  body::after {
    height: 8px;
  }

  .site-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 18px;
  }

  .site-header {
    top: 14px;
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-top: 12px;
    gap: 12px 16px;
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .brand {
    width: calc(100% - 72px);
  }

  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .brand-copy strong {
    font-size: 1.7rem;
    letter-spacing: 0.22em;
  }

  .hero,
  .page-hero,
  .section {
    padding: 24px 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero-emblem {
    width: 94px;
    top: 18px;
    left: 18px;
  }

  .page-hero h1,
  .quote-band blockquote {
    max-width: none;
  }

  .hero-panel,
  .feature-grid,
  .story-layout,
  .article-grid,
  .article-photo-band,
  .album-grid,
  .timeline-section .timeline,
  .contact-grid,
  .gallery-grid,
  .support-band,
  .two-column,
  .map-toolbar {
    grid-template-columns: 1fr;
  }

  .map-toolbar {
    display: grid;
    align-items: stretch;
  }

  .admin-root {
    padding: 12px;
  }

  .admin-topbar,
  .admin-album-row {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    display: grid;
  }

  .gallery-modal {
    grid-template-columns: 1fr;
    padding: 70px 14px 18px;
  }

  .gallery-modal-nav {
    justify-self: center;
    width: 48px;
    height: 48px;
  }

  .gallery-modal-image {
    max-height: 62vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .button,
  .gallery-card,
  .site-nav a {
    transition: none;
  }
}

/* PHP/SQLite edition polish */
body {
  text-rendering: optimizeLegibility;
}

.site-header {
  backdrop-filter: blur(16px);
  background: rgba(3, 4, 6, 0.88);
}

.site-nav a.is-active {
  color: var(--accent);
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.08);
}

.section,
.feature-card,
.article-card,
.story-card,
.support-card,
.map-frame,
.lead-panel {
  background-color: rgba(7, 9, 13, 0.82);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
}

.page-hero,
.hero {
  isolation: isolate;
}

.page-hero::after,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.92), rgba(5, 6, 8, 0.62), rgba(5, 6, 8, 0.94)),
    radial-gradient(circle at 72% 18%, rgba(245, 158, 11, 0.16), transparent 34%);
  pointer-events: none;
}

.lead,
.lead-panel p,
.article-body p,
.article-card p,
.feature-card p,
.story-card p,
.two-column p,
.map-note {
  color: rgba(237, 242, 247, 0.9);
  line-height: 1.82;
}

.article-body,
.two-column,
.section-heading {
  max-width: 1120px;
}

.article-photo-band img,
.gallery-card img,
.album-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.gallery-card {
  min-height: 240px;
}

.album-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 360px;
  padding: 18px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 7, 10, 0.84);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.album-card:hover,
.album-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.62);
  box-shadow: 0 22px 70px rgba(245, 158, 11, 0.14);
}

.album-card img {
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.album-card h3,
.album-card p {
  margin: 0;
}

.album-card p {
  color: rgba(237, 242, 247, 0.78);
}

.nav-toggle {
  display: none;
}

.admin-page {
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(3, 4, 6, 0.98), rgba(9, 10, 12, 0.91)),
    url("../gkep/nussdorf_files/schron_morska_wejscie.jpg") center / cover fixed;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login-card,
.admin-card,
.admin-sidebar {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 6, 9, 0.9);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.admin-login-card {
  width: min(480px, 100%);
  display: grid;
  gap: 18px;
  padding: 34px;
}

.admin-login-card h1,
.admin-topbar h1,
.admin-card h2 {
  margin: 0;
}

.admin-alert {
  padding: 12px 14px;
  border-left: 3px solid #f59e0b;
  color: #fff4d6;
  background: rgba(245, 158, 11, 0.12);
}

.admin-dashboard {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
}

.admin-brand {
  display: grid;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-brand strong {
  font-size: 1.2rem;
  letter-spacing: 0.18em;
}

.admin-brand span,
.admin-muted,
.admin-album-row span {
  color: rgba(237, 242, 247, 0.66);
}

.admin-pages {
  display: grid;
  gap: 8px;
}

.admin-page-button,
.admin-logout {
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  cursor: pointer;
}

.admin-page-button.is-active,
.admin-page-button:hover,
.admin-logout:hover {
  color: #050505;
  background: #f59e0b;
  border-color: #f59e0b;
}

.admin-workspace {
  display: grid;
  gap: 22px;
  padding: 26px;
}

.admin-topbar,
.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-status {
  max-width: 420px;
  padding: 12px 14px;
  color: #f8d47b;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.09);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
}

.admin-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.admin-preview-card {
  min-height: 720px;
}

.admin-preview-frame {
  width: 100%;
  height: 680px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: #050505;
}

.admin-inspector {
  align-self: start;
  position: sticky;
  top: 18px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-page label,
.admin-check {
  display: grid;
  gap: 8px;
  color: rgba(237, 242, 247, 0.78);
  font-size: 0.9rem;
}

.admin-check {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.admin-page input,
.admin-page textarea {
  width: 100%;
  padding: 12px 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.34);
  font: inherit;
}

.admin-page textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-source {
  min-height: 420px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.55;
}

.admin-actions {
  display: flex;
  align-items: end;
  gap: 12px;
}

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

.admin-album-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.admin-album-row img {
  width: 110px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.admin-album-row p {
  margin: 4px 0 0;
  color: rgba(237, 242, 247, 0.68);
}

.admin-frame-mode [data-admin-editable="true"] {
  outline: 1px dashed rgba(245, 158, 11, 0.42);
  outline-offset: 3px;
  cursor: crosshair;
}

.admin-frame-mode [data-admin-editable="true"]:hover,
.admin-frame-mode .admin-selected-element {
  outline: 2px solid #f59e0b;
  background-color: rgba(245, 158, 11, 0.08);
}

.admin-frame-mode [contenteditable="true"] {
  caret-color: #f59e0b;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
  }

  .site-nav.is-open {
    display: grid;
  }

  .admin-dashboard,
  .admin-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar,
  .admin-inspector {
    position: static;
    height: auto;
  }

  .admin-preview-frame {
    height: 560px;
  }

  .admin-album-row {
    grid-template-columns: 88px 1fr;
  }
}

/* Wix-style admin UI refresh */
body.admin-page {
  --editor-bg: #f5f7fb;
  --editor-surface: #ffffff;
  --editor-surface-soft: #f8faff;
  --editor-text: #172033;
  --editor-muted: #647189;
  --editor-border: #dfe5ef;
  --editor-border-strong: #cbd6e5;
  --editor-blue: #116dff;
  --editor-blue-dark: #0754cc;
  --editor-blue-soft: #eaf2ff;
  --editor-green: #0f9d58;
  --editor-danger: #dc3545;
  --editor-shadow: 0 14px 38px rgba(24, 39, 75, 0.08);
  min-height: 100vh;
  color: var(--editor-text);
  background: var(--editor-bg) !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body.admin-page::before,
body.admin-page::after {
  display: none;
}

.admin-page * {
  letter-spacing: 0;
}

.admin-page .eyebrow {
  margin: 0;
  color: var(--editor-blue);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-page .button,
.admin-page button,
.admin-page input,
.admin-page textarea,
.admin-page select {
  border-radius: 10px;
  font-family: inherit;
}

.admin-page .button {
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.admin-page .button-primary,
.admin-page .button.button-primary {
  color: #fff;
  border: 1px solid var(--editor-blue);
  background: var(--editor-blue);
  box-shadow: 0 10px 22px rgba(17, 109, 255, 0.22);
}

.admin-page .button-primary:hover,
.admin-page .button.button-primary:hover {
  border-color: var(--editor-blue-dark);
  background: var(--editor-blue-dark);
}

.admin-page .button-secondary,
.admin-page .button.button-secondary {
  color: var(--editor-text);
  border: 1px solid var(--editor-border);
  background: #fff;
  box-shadow: none;
}

.admin-page .button-secondary:hover,
.admin-page .button.button-secondary:hover {
  color: var(--editor-blue);
  border-color: #b7cdfd;
  background: var(--editor-blue-soft);
}

.admin-login {
  background:
    radial-gradient(circle at 12% 8%, rgba(17, 109, 255, 0.12), transparent 32%),
    linear-gradient(135deg, #f7faff, #eef3fb);
}

.admin-login-card {
  width: min(430px, 100%);
  gap: 18px;
  padding: 34px;
  color: var(--editor-text);
  border: 1px solid var(--editor-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 80px rgba(24, 39, 75, 0.16);
}

.admin-login-card h1 {
  color: var(--editor-text);
  font-family: inherit;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-transform: none;
}

.admin-alert {
  border: 1px solid rgba(220, 53, 69, 0.18);
  border-left: 4px solid var(--editor-danger);
  border-radius: 12px;
  color: #8c1d2a;
  background: #fff1f3;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--editor-bg);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100vh;
  padding: 18px 14px;
  overflow: auto;
  color: var(--editor-text);
  border: 0;
  border-right: 1px solid var(--editor-border);
  border-radius: 0;
  background: var(--editor-surface);
  box-shadow: 10px 0 32px rgba(24, 39, 75, 0.05);
}

.admin-brand {
  display: grid;
  gap: 3px;
  padding: 6px 8px 18px;
  border-bottom: 1px solid var(--editor-border);
}

.admin-brand strong {
  color: var(--editor-text);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0;
}

.admin-brand span {
  color: var(--editor-muted);
  font-size: 0.84rem;
}

.admin-flow {
  display: grid;
  gap: 6px;
  padding: 12px;
  color: #39506f;
  border: 1px solid #d6e5ff;
  border-radius: 14px;
  background: #f0f6ff;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.42;
}

.admin-flow span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-flow span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--editor-blue);
}

.admin-pages {
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

.admin-page-button,
.admin-logout {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: #40506a;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.admin-page-button::before {
  content: "□";
  display: inline-block;
  width: 20px;
  color: #9aa7ba;
  font-size: 0.9rem;
}

.admin-page-button.is-active,
.admin-page-button:hover,
.admin-logout:hover {
  color: var(--editor-blue);
  border-color: #d9e7ff;
  background: var(--editor-blue-soft);
}

.admin-page-button.is-active::before {
  content: "■";
  color: var(--editor-blue);
}

.admin-sidebar > .button-secondary {
  justify-content: center;
  margin-top: auto;
}

.admin-logout {
  color: #7a4250;
  background: #fff5f6;
}

.admin-workspace {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  background: var(--editor-bg);
}

.admin-topbar {
  position: sticky;
  top: 12px;
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 15px 18px;
  color: var(--editor-text);
  border: 1px solid rgba(223, 229, 239, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--editor-shadow);
  backdrop-filter: blur(16px);
}

.admin-topbar h1 {
  margin: 2px 0 4px;
  color: var(--editor-text);
  font-family: inherit;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 850;
  line-height: 1.05;
  text-transform: none;
}

.admin-quick-hint,
.admin-muted,
.admin-status,
.admin-album-row span {
  color: var(--editor-muted);
}

.admin-quick-hint {
  margin: 0;
  font-size: 0.92rem;
}

.admin-top-actions {
  display: grid;
  gap: 9px;
  justify-items: end;
}

.admin-status {
  max-width: 360px;
  margin: 0;
  padding: 8px 11px;
  color: #1d6a3a;
  border: 1px solid #caefda;
  border-radius: 999px;
  background: #effcf4;
  font-size: 0.82rem;
}

.admin-tool-tabs {
  position: sticky;
  top: 102px;
  z-index: 24;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--editor-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(24, 39, 75, 0.06);
}

.admin-tool-tabs button {
  min-height: 38px;
  padding: 9px 13px;
  color: #51627c;
  border: 0;
  border-radius: 11px;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
}

.admin-tool-tabs button:hover {
  color: var(--editor-blue);
  background: var(--editor-blue-soft);
}

.admin-tool-tabs button.is-active {
  color: #fff;
  background: var(--editor-blue);
  box-shadow: 0 10px 18px rgba(17, 109, 255, 0.18);
}

.admin-panel-section {
  display: none;
}

.admin-panel-section.is-active {
  display: block;
}

.admin-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  color: var(--editor-text);
  border: 1px solid var(--editor-border);
  border-radius: 18px;
  background: var(--editor-surface);
  box-shadow: var(--editor-shadow);
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-card h2 {
  margin: 2px 0 0;
  color: var(--editor-text);
  font-family: inherit;
  font-size: 1.14rem;
  font-weight: 850;
  line-height: 1.2;
  text-transform: none;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 365px;
  gap: 16px;
  align-items: start;
}

.admin-preview-card {
  min-width: 0;
  min-height: calc(100vh - 190px);
}

.admin-preview-frame {
  width: 100%;
  min-height: 620px;
  height: min(72vh, 780px);
  overflow: hidden;
  border: 1px solid var(--editor-border-strong);
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.admin-inspector {
  position: sticky;
  top: 166px;
  max-height: calc(100vh - 188px);
  overflow: auto;
  border-color: #d6e5ff;
  box-shadow: 0 16px 44px rgba(17, 109, 255, 0.08);
}

.admin-card-head.compact {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--editor-border);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px;
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-page label,
.admin-check {
  display: grid;
  gap: 7px;
  color: #4b5b73;
  font-size: 0.88rem;
  font-weight: 650;
}

.admin-check {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.admin-page input,
.admin-page textarea,
.admin-page select {
  width: 100%;
  min-height: 42px;
  padding: 11px 12px;
  color: var(--editor-text);
  border: 1px solid var(--editor-border);
  border-radius: 11px;
  background: #fff;
  font: inherit;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(24, 39, 75, 0.02);
}

.admin-page textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.5;
}

.admin-page input:focus,
.admin-page textarea:focus,
.admin-page select:focus {
  outline: 3px solid rgba(17, 109, 255, 0.16);
  border-color: var(--editor-blue);
}

.admin-page input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--editor-blue);
}

.admin-source {
  min-height: 400px;
  color: #263247;
  background: #f7f9fd;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.55;
}

.admin-image-tools {
  display: none;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dbe7ff;
  border-radius: 16px;
  background: #f7faff;
}

.admin-image-tools.is-visible {
  display: grid;
}

.admin-image-tools > img {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  border: 1px solid var(--editor-border);
  border-radius: 13px;
  background: #fff;
}

.admin-upload-panel,
.admin-upload-library-head {
  display: grid;
  gap: 8px;
}

.admin-upload-drop {
  display: grid;
  gap: 7px;
  padding: 17px;
  color: #3f5778;
  border: 1.5px dashed #9bbdff;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}

.admin-upload-drop:hover {
  border-color: var(--editor-blue);
  background: #f0f6ff;
}

.admin-upload-drop strong,
.admin-upload-library-head strong {
  color: var(--editor-text);
}

.admin-upload-drop span,
.admin-upload-library-head span,
.admin-upload-meta {
  margin: 0;
  color: var(--editor-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.admin-upload-progress {
  position: relative;
  overflow: hidden;
  min-height: 28px;
  border: 1px solid #bad0ff;
  border-radius: 999px;
  background: #eaf2ff;
}

.admin-upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  min-height: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, #116dff, #48a1ff);
  transition: width 0.18s ease;
}

.admin-upload-progress strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.78rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.admin-global-progress {
  width: min(280px, 100%);
}

.admin-upload-library,
.admin-gallery-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--editor-border);
  border-radius: 14px;
  background: #fff;
}

.admin-upload-thumb,
.admin-gallery-pick {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 7px;
  color: #4a5a72;
  border: 1px solid var(--editor-border);
  border-radius: 12px;
  background: var(--editor-surface-soft);
  cursor: pointer;
}

.admin-upload-thumb:hover,
.admin-upload-thumb:focus-visible,
.admin-gallery-pick:hover,
.admin-gallery-pick:focus-visible {
  color: var(--editor-blue);
  border-color: #abc6ff;
  background: var(--editor-blue-soft);
}

.admin-upload-thumb img,
.admin-gallery-pick img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
}

.admin-upload-thumb span,
.admin-gallery-pick span,
.admin-upload-empty {
  overflow: hidden;
  margin: 0;
  color: var(--editor-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-width-tools {
  display: none;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d6e5ff;
  border-radius: 15px;
  background: #f7faff;
}

.admin-width-tools.is-visible {
  display: grid;
}

.admin-width-tools input[type="range"] {
  min-height: 28px;
  padding: 0;
  accent-color: var(--editor-blue);
}

.admin-width-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--editor-muted);
  font-size: 0.86rem;
}

.admin-width-row strong {
  color: var(--editor-blue);
}

.admin-actions,
.admin-map-tools,
.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.admin-album-list,
.admin-menu-list,
.admin-map-list,
.admin-gallery-order,
.admin-announcement-list {
  display: grid;
  gap: 10px;
}

.admin-album-row,
.admin-menu-row,
.admin-map-row,
.admin-gallery-order-row,
.admin-announcement-row {
  align-items: center;
  padding: 12px;
  color: var(--editor-text);
  border: 1px solid var(--editor-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 39, 75, 0.04);
}

.admin-album-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto auto;
  gap: 12px;
}

.admin-menu-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(160px, 1fr) minmax(150px, 0.9fr) 110px 120px auto;
  gap: 10px;
}

.admin-map-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto auto;
  gap: 10px;
}

.admin-gallery-order-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto auto;
  gap: 10px;
}

.admin-announcement-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto auto;
  gap: 10px;
}

.admin-album-row img,
.admin-map-row img,
.admin-gallery-order-row img,
.admin-announcement-row img {
  width: 96px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 11px;
  border: 1px solid var(--editor-border);
}

.admin-announcement-row img {
  width: 108px;
}

.admin-menu-row strong,
.admin-map-row strong,
.admin-gallery-order-row strong,
.admin-announcement-row strong,
.admin-album-row strong {
  color: var(--editor-text);
}

.admin-menu-row span,
.admin-map-row span,
.admin-gallery-order-row span,
.admin-announcement-row span,
.admin-album-row p {
  color: var(--editor-muted);
}

.admin-announcement-row p {
  margin: 0;
  color: var(--editor-muted);
}

.admin-frame-mode [data-admin-editable="true"] {
  outline: 1px dashed rgba(17, 109, 255, 0.45);
  outline-offset: 3px;
  cursor: pointer;
}

.admin-frame-mode [data-admin-editable="true"]:hover,
.admin-frame-mode .admin-selected-element {
  outline: 2px solid var(--editor-blue);
  background-color: rgba(17, 109, 255, 0.08);
}

.admin-frame-mode [contenteditable="true"] {
  caret-color: var(--editor-blue);
}

@media (max-width: 1180px) {
  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--editor-border);
  }

  .admin-pages {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .admin-sidebar > .button-secondary {
    margin-top: 0;
  }

  .admin-tool-tabs,
  .admin-topbar,
  .admin-inspector {
    position: static;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-inspector {
    max-height: none;
  }

  .admin-preview-frame {
    height: 66vh;
  }
}

@media (max-width: 760px) {
  .admin-workspace,
  .admin-sidebar {
    padding: 12px;
  }

  .admin-topbar,
  .admin-card-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-topbar {
    display: grid;
  }

  .admin-top-actions {
    justify-items: stretch;
  }

  .admin-form-grid,
  .admin-album-row,
  .admin-menu-row,
  .admin-map-row,
  .admin-gallery-order-row,
  .admin-announcement-row,
  .admin-upload-library,
  .admin-gallery-picker {
    grid-template-columns: 1fr;
  }

  .admin-preview-frame {
    min-height: 470px;
    height: 62vh;
  }
}

/* Compact public header and clearer CMS flow */
:root {
  --header-height: 66px;
}

.site-shell {
  padding-top: 18px;
}

.site-header {
  top: 12px;
  min-height: var(--header-height);
  padding: 8px 16px;
  gap: 16px;
}

.site-header::before {
  inset: auto 14px 9px auto;
  width: 56px;
}

.brand {
  gap: 12px;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  padding: 3px;
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 173, 20, 0.18);
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.34rem;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.brand small {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  gap: 6px;
  align-items: center;
}

.site-nav .nav-item {
  position: relative;
}

.site-nav a {
  display: inline-flex;
  padding: 8px 9px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: none;
  min-width: 210px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 5, 7, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.nav-item:hover > .nav-submenu,
.nav-item:focus-within > .nav-submenu {
  display: grid;
  gap: 4px;
}

.nav-submenu .nav-submenu {
  top: 0;
  left: calc(100% + 8px);
}

.local-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
}

.local-map-canvas {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.25);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 35% 40%, rgba(245, 158, 11, 0.16), transparent 18%),
    linear-gradient(135deg, #10140f, #050608 72%);
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.local-map-canvas::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(245, 158, 11, 0.22);
  transform: rotate(-8deg);
}

.local-map-marker {
  position: absolute;
  display: grid;
  gap: 5px;
  min-width: 130px;
  transform: translate(-18px, -18px);
  color: #fff;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.local-map-marker span {
  width: 20px;
  height: 20px;
  border: 3px solid #050505;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.18), 0 0 28px rgba(245, 158, 11, 0.45);
}

.local-map-marker strong {
  max-width: 180px;
  padding: 5px 7px;
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.72);
}

.local-map-marker.is-active span {
  background: #fff;
}

.local-map-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 6, 9, 0.84);
}

.local-map-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.local-map-card h3,
.local-map-card p {
  margin: 0;
}

.announcement-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.55fr);
  gap: 22px;
  align-items: stretch;
  border-color: rgba(255, 173, 20, 0.28);
  background:
    linear-gradient(90deg, rgba(255, 173, 20, 0.12), transparent 42%),
    rgba(5, 6, 9, 0.9);
}

.announcement-highlight-copy {
  display: grid;
  gap: 12px;
  align-content: center;
  min-width: 0;
}

.announcement-highlight h2,
.announcement-card h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.announcement-highlight h2 {
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 0.92;
}

.announcement-highlight time,
.announcement-card time {
  color: var(--accent-strong);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.announcement-highlight p,
.announcement-card p {
  margin: 0;
  color: rgba(237, 242, 247, 0.78);
  line-height: 1.65;
}

.announcement-highlight img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  filter: contrast(1.08) saturate(0.92);
}

.announcement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.announcement-download {
  justify-self: start;
  margin-top: 4px;
}

.announcements-list {
  display: grid;
  gap: 16px;
}

.announcement-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(90deg, rgba(255, 173, 20, 0.08), transparent 36%),
    rgba(0, 0, 0, 0.28);
}

.announcement-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-card > div {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.nav-toggle {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

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

.admin-sidebar {
  gap: 14px;
  padding: 18px;
}

.admin-flow {
  display: grid;
  gap: 7px;
  padding: 12px;
  color: rgba(237, 242, 247, 0.76);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.075);
}

.admin-page-button,
.admin-logout {
  padding: 10px 12px;
}

.admin-workspace {
  gap: 18px;
  padding: 20px;
}

.admin-topbar {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 6, 9, 0.74);
}

.admin-topbar h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.admin-quick-hint {
  max-width: 720px;
  margin: 8px 0 0;
  color: rgba(237, 242, 247, 0.68);
  line-height: 1.45;
}

.admin-top-actions {
  display: grid;
  gap: 10px;
  min-width: min(360px, 100%);
}

.admin-top-actions .button {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  font-size: 0.9rem;
}

.admin-global-progress {
  width: 100%;
  min-height: 34px;
  border-color: rgba(255, 173, 20, 0.62);
  box-shadow: 0 0 24px rgba(255, 173, 20, 0.16);
}

.admin-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-guide article {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.04);
}

.admin-guide strong {
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.24rem;
  text-transform: uppercase;
}

.admin-guide span {
  color: rgba(237, 242, 247, 0.68);
  line-height: 1.45;
}

.admin-tool-tabs {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 4, 6, 0.92);
  backdrop-filter: blur(14px);
}

.admin-tool-tabs button {
  min-height: 40px;
  padding: 9px 12px;
  color: rgba(237, 242, 247, 0.72);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.admin-tool-tabs button:hover,
.admin-tool-tabs button.is-active {
  color: #050505;
  border-color: #f59e0b;
  background: #f59e0b;
}

.admin-panel-section {
  display: none;
}

.admin-panel-section.is-active {
  display: block;
}

.admin-panel-section.admin-card.is-active {
  display: grid;
}

.admin-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
}

.admin-card {
  gap: 16px;
  padding: 18px;
}

.admin-card-head.compact {
  align-items: start;
}

.admin-card-head.compact .button {
  min-height: 40px;
  padding-inline: 14px;
}

.admin-preview-card {
  min-height: auto;
}

.admin-preview-frame {
  height: min(68vh, 720px);
  min-height: 560px;
}

.admin-inspector {
  top: 76px;
}

.admin-inspector textarea[data-inspector-html] {
  min-height: 92px;
}

.admin-inspector textarea[data-inspector-text] {
  min-height: 130px;
}

.admin-muted {
  padding: 10px 12px;
  border-left: 3px solid rgba(245, 158, 11, 0.72);
  background: rgba(255, 255, 255, 0.04);
}

.admin-image-tools {
  display: none;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.07);
}

.admin-image-tools.is-visible {
  display: grid;
}

.admin-image-tools img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
}

.admin-image-tools p {
  margin: 0;
  color: rgba(237, 242, 247, 0.68);
  line-height: 1.45;
}

.admin-image-tools input[type="file"] {
  padding: 10px;
  min-height: auto;
}

.admin-upload-panel {
  display: grid;
  gap: 10px;
}

.admin-upload-drop {
  display: grid;
  gap: 6px;
  padding: 16px;
  text-align: center;
  border: 1px dashed rgba(245, 158, 11, 0.56);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.admin-upload-drop:hover,
.admin-upload-drop.is-dragging {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}

.admin-upload-drop strong {
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.18rem;
  text-transform: uppercase;
}

.admin-upload-drop span {
  color: rgba(237, 242, 247, 0.66);
  line-height: 1.45;
}

.admin-upload-drop input[type="file"] {
  width: 100%;
  border: 0;
  background: transparent;
}

.admin-upload-meta {
  margin: 0;
  color: rgba(237, 242, 247, 0.72);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

.admin-upload-progress {
  position: relative;
  min-height: 28px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(0, 0, 0, 0.38);
}

.admin-upload-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.38), #f59e0b);
  transition: width 160ms ease;
}

.admin-upload-progress strong {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 28px;
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

.admin-upload-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-upload-library-head div {
  display: grid;
  gap: 3px;
}

.admin-upload-library-head strong {
  color: #fff;
}

.admin-upload-library-head span {
  color: rgba(237, 242, 247, 0.62);
  font-size: 0.76rem;
}

.admin-upload-search {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(0, 0, 0, 0.35);
}

.admin-upload-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.admin-menu-list,
.admin-map-list,
.admin-gallery-order,
.admin-announcement-list {
  display: grid;
  gap: 10px;
}

.admin-menu-row,
.admin-map-row,
.admin-gallery-order-row,
.admin-announcement-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr) 110px 110px auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.035);
}

.admin-menu-row > div:first-child,
.admin-map-row > div,
.admin-gallery-order-row > div,
.admin-announcement-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-menu-row strong,
.admin-map-row strong,
.admin-gallery-order-row strong,
.admin-announcement-row strong {
  color: #fff;
}

.admin-menu-row span,
.admin-map-row span,
.admin-gallery-order-row span,
.admin-announcement-row span {
  color: rgba(237, 242, 247, 0.62);
  font-size: 0.76rem;
}

.admin-announcement-row p {
  overflow: hidden;
  display: -webkit-box;
  margin: 0;
  color: rgba(237, 242, 247, 0.68);
  font-size: 0.82rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.admin-row-actions {
  display: flex;
  gap: 6px;
}

.admin-map-row {
  grid-template-columns: 96px minmax(0, 1fr) auto auto;
}

.admin-announcement-row {
  grid-template-columns: 116px minmax(0, 1fr) auto auto;
}

.admin-map-row img,
.admin-gallery-order-row img,
.admin-announcement-row img {
  width: 96px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.admin-announcement-row img {
  width: 116px;
}

.admin-gallery-order-row {
  grid-template-columns: 90px minmax(0, 1fr) auto auto;
}

.admin-gallery-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.admin-gallery-pick {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.admin-gallery-pick img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.admin-gallery-pick span {
  overflow: hidden;
  color: rgba(237, 242, 247, 0.68);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-image-pick {
  color: inherit;
  cursor: pointer;
}

.admin-upload-thumb {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 6px;
  color: rgba(237, 242, 247, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.admin-upload-thumb:hover,
.admin-upload-thumb:focus-visible {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.admin-upload-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.admin-upload-thumb span,
.admin-upload-empty {
  overflow: hidden;
  margin: 0;
  color: rgba(237, 242, 247, 0.64);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-width-tools {
  display: none;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.admin-width-tools.is-visible {
  display: grid;
}

.admin-width-tools input[type="range"] {
  padding: 0;
  min-height: 28px;
  accent-color: #f59e0b;
}

.admin-width-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(237, 242, 247, 0.7);
}

.admin-width-row strong {
  color: #f59e0b;
}

.admin-form-grid {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

@media (max-width: 1160px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
  }

  .admin-guide,
  .admin-grid,
  .local-map-layout,
  .map-app-grid,
  .map-command-panel,
  .announcement-highlight,
  .announcement-card {
    grid-template-columns: 1fr;
  }

  .admin-inspector {
    position: static;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 8px 12px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 1.16rem;
  }

  .brand small {
    max-width: 220px;
  }

  .site-nav.is-open {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .admin-tool-tabs {
    position: static;
  }

  .admin-topbar,
  .admin-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-guide {
    grid-template-columns: 1fr;
  }

  .admin-preview-frame {
    min-height: 480px;
    height: 64vh;
  }

  .admin-menu-row,
  .admin-map-row,
  .admin-gallery-order-row,
  .admin-announcement-row,
  .admin-gallery-picker {
    grid-template-columns: 1fr;
  }

  .nav-submenu {
    position: static;
    display: grid;
    margin-left: 12px;
    box-shadow: none;
  }
}

/* Final admin skin lock: simple Wix-like editor */
body.admin-page {
  --editor-bg: #f5f7fb;
  --editor-surface: #ffffff;
  --editor-surface-soft: #f8faff;
  --editor-text: #172033;
  --editor-muted: #647189;
  --editor-border: #dfe5ef;
  --editor-border-strong: #cbd6e5;
  --editor-blue: #116dff;
  --editor-blue-dark: #0754cc;
  --editor-blue-soft: #eaf2ff;
  --editor-shadow: 0 14px 38px rgba(24, 39, 75, 0.08);
  min-height: 100vh;
  color: var(--editor-text);
  background: var(--editor-bg) !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body.admin-page::before,
body.admin-page::after {
  display: none;
}

.admin-page .eyebrow {
  margin: 0;
  color: var(--editor-blue);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-page .button {
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.admin-page .button.button-primary,
.admin-page .button-primary {
  color: #fff;
  border: 1px solid var(--editor-blue);
  background: var(--editor-blue);
  box-shadow: 0 10px 22px rgba(17, 109, 255, 0.22);
}

.admin-page .button.button-primary:hover,
.admin-page .button-primary:hover {
  color: #fff;
  border-color: var(--editor-blue-dark);
  background: var(--editor-blue-dark);
}

.admin-page .button.button-secondary,
.admin-page .button-secondary {
  color: var(--editor-text);
  border: 1px solid var(--editor-border);
  background: #fff;
  box-shadow: none;
}

.admin-page .button.button-secondary:hover,
.admin-page .button-secondary:hover {
  color: var(--editor-blue);
  border-color: #b7cdfd;
  background: var(--editor-blue-soft);
}

.admin-login {
  background:
    radial-gradient(circle at 12% 8%, rgba(17, 109, 255, 0.12), transparent 32%),
    linear-gradient(135deg, #f7faff, #eef3fb);
}

.admin-login-card {
  width: min(430px, 100%);
  gap: 18px;
  padding: 34px;
  color: var(--editor-text);
  border: 1px solid var(--editor-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 80px rgba(24, 39, 75, 0.16);
}

.admin-login-card h1,
.admin-topbar h1,
.admin-card h2 {
  color: var(--editor-text);
  font-family: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.admin-login-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.admin-alert {
  border: 1px solid rgba(220, 53, 69, 0.18);
  border-left: 4px solid #dc3545;
  border-radius: 12px;
  color: #8c1d2a;
  background: #fff1f3;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--editor-bg);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100vh;
  padding: 18px 14px;
  overflow: auto;
  color: var(--editor-text);
  border: 0;
  border-right: 1px solid var(--editor-border);
  border-radius: 0;
  background: var(--editor-surface);
  box-shadow: 10px 0 32px rgba(24, 39, 75, 0.05);
}

.admin-brand {
  display: grid;
  gap: 3px;
  padding: 6px 8px 18px;
  border-bottom: 1px solid var(--editor-border);
}

.admin-brand strong {
  color: var(--editor-text);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0;
}

.admin-brand span,
.admin-muted,
.admin-album-row span,
.admin-quick-hint {
  color: var(--editor-muted);
}

.admin-brand span {
  font-size: 0.84rem;
}

.admin-flow {
  display: grid;
  gap: 6px;
  padding: 12px;
  color: #39506f;
  border: 1px solid #d6e5ff;
  border-radius: 14px;
  background: #f0f6ff;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.42;
}

.admin-flow span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-flow span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--editor-blue);
}

.admin-pages {
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

.admin-page-button,
.admin-logout {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: #40506a;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
}

.admin-page-button::before {
  content: "□";
  display: inline-block;
  width: 20px;
  color: #9aa7ba;
  font-size: 0.9rem;
}

.admin-page-button.is-active,
.admin-page-button:hover,
.admin-logout:hover {
  color: var(--editor-blue);
  border-color: #d9e7ff;
  background: var(--editor-blue-soft);
}

.admin-page-button.is-active::before {
  content: "■";
  color: var(--editor-blue);
}

.admin-sidebar > .button-secondary {
  justify-content: center;
  margin-top: auto;
}

.admin-logout {
  color: #7a4250;
  background: #fff5f6;
}

.admin-workspace {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  background: var(--editor-bg);
}

.admin-topbar {
  position: sticky;
  top: 12px;
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 15px 18px;
  color: var(--editor-text);
  border: 1px solid rgba(223, 229, 239, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--editor-shadow);
  backdrop-filter: blur(16px);
}

.admin-topbar h1 {
  margin: 2px 0 4px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 850;
  line-height: 1.05;
}

.admin-quick-hint {
  margin: 0;
  font-size: 0.92rem;
}

.admin-top-actions {
  display: grid;
  gap: 9px;
  justify-items: end;
}

.admin-status {
  max-width: 360px;
  margin: 0;
  padding: 8px 11px;
  color: #1d6a3a;
  border: 1px solid #caefda;
  border-radius: 999px;
  background: #effcf4;
  font-size: 0.82rem;
}

.admin-tool-tabs {
  position: sticky;
  top: 102px;
  z-index: 24;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--editor-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(24, 39, 75, 0.06);
}

.admin-tool-tabs button {
  min-height: 38px;
  padding: 9px 13px;
  color: #51627c;
  border: 0;
  border-radius: 11px;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.admin-tool-tabs button:hover {
  color: var(--editor-blue);
  background: var(--editor-blue-soft);
}

.admin-tool-tabs button.is-active {
  color: #fff;
  background: var(--editor-blue);
  box-shadow: 0 10px 18px rgba(17, 109, 255, 0.18);
}

.admin-panel-section {
  display: none;
}

.admin-panel-section.is-active {
  display: block;
}

.admin-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  color: var(--editor-text);
  border: 1px solid var(--editor-border);
  border-radius: 18px;
  background: var(--editor-surface);
  box-shadow: var(--editor-shadow);
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-card h2 {
  margin: 2px 0 0;
  font-size: 1.14rem;
  font-weight: 850;
  line-height: 1.2;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 365px;
  gap: 16px;
  align-items: start;
}

.admin-preview-card {
  min-width: 0;
  min-height: calc(100vh - 190px);
}

.admin-preview-frame {
  width: 100%;
  min-height: 620px;
  height: min(72vh, 780px);
  overflow: hidden;
  border: 1px solid var(--editor-border-strong);
  border-radius: 14px;
  background: #fff;
}

.admin-inspector {
  position: sticky;
  top: 166px;
  max-height: calc(100vh - 188px);
  overflow: auto;
  border-color: #d6e5ff;
  box-shadow: 0 16px 44px rgba(17, 109, 255, 0.08);
}

.admin-card-head.compact {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--editor-border);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px;
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-page label,
.admin-check {
  display: grid;
  gap: 7px;
  color: #4b5b73;
  font-size: 0.88rem;
  font-weight: 650;
}

.admin-check {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.admin-page input,
.admin-page textarea,
.admin-page select {
  width: 100%;
  min-height: 42px;
  padding: 11px 12px;
  color: var(--editor-text);
  border: 1px solid var(--editor-border);
  border-radius: 11px;
  background: #fff;
  font: inherit;
  font-weight: 500;
}

.admin-page textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.5;
}

.admin-page input:focus,
.admin-page textarea:focus,
.admin-page select:focus {
  outline: 3px solid rgba(17, 109, 255, 0.16);
  border-color: var(--editor-blue);
}

.admin-page input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--editor-blue);
}

.admin-source {
  min-height: 400px;
  color: #263247;
  background: #f7f9fd;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.55;
}

.admin-image-tools {
  display: none;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dbe7ff;
  border-radius: 16px;
  background: #f7faff;
}

.admin-image-tools.is-visible {
  display: grid;
}

.admin-image-tools > img {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  border: 1px solid var(--editor-border);
  border-radius: 13px;
  background: #fff;
}

.admin-upload-drop {
  display: grid;
  gap: 7px;
  padding: 17px;
  color: #3f5778;
  border: 1.5px dashed #9bbdff;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}

.admin-upload-drop:hover {
  border-color: var(--editor-blue);
  background: #f0f6ff;
}

.admin-upload-drop strong,
.admin-upload-library-head strong {
  color: var(--editor-text);
}

.admin-upload-drop span,
.admin-upload-library-head span,
.admin-upload-meta {
  margin: 0;
  color: var(--editor-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.admin-upload-progress {
  position: relative;
  overflow: hidden;
  min-height: 28px;
  border: 1px solid #bad0ff;
  border-radius: 999px;
  background: #eaf2ff;
}

.admin-upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  min-height: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, #116dff, #48a1ff);
  transition: width 0.18s ease;
}

.admin-upload-progress strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.78rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.admin-global-progress {
  width: min(280px, 100%);
}

.admin-upload-library,
.admin-gallery-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--editor-border);
  border-radius: 14px;
  background: #fff;
}

.admin-upload-thumb,
.admin-gallery-pick {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 7px;
  color: #4a5a72;
  border: 1px solid var(--editor-border);
  border-radius: 12px;
  background: var(--editor-surface-soft);
  cursor: pointer;
}

.admin-upload-thumb:hover,
.admin-upload-thumb:focus-visible,
.admin-gallery-pick:hover,
.admin-gallery-pick:focus-visible {
  color: var(--editor-blue);
  border-color: #abc6ff;
  background: var(--editor-blue-soft);
}

.admin-upload-thumb img,
.admin-gallery-pick img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
}

.admin-upload-thumb span,
.admin-gallery-pick span,
.admin-upload-empty {
  overflow: hidden;
  margin: 0;
  color: var(--editor-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-width-tools {
  display: none;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d6e5ff;
  border-radius: 15px;
  background: #f7faff;
}

.admin-width-tools.is-visible {
  display: grid;
}

.admin-width-tools input[type="range"] {
  min-height: 28px;
  padding: 0;
  accent-color: var(--editor-blue);
}

.admin-width-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--editor-muted);
  font-size: 0.86rem;
}

.admin-width-row strong {
  color: var(--editor-blue);
}

.admin-actions,
.admin-map-tools,
.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.admin-album-list,
.admin-menu-list,
.admin-map-list,
.admin-gallery-order,
.admin-announcement-list {
  display: grid;
  gap: 10px;
}

.admin-album-row,
.admin-menu-row,
.admin-map-row,
.admin-gallery-order-row,
.admin-announcement-row {
  align-items: center;
  padding: 12px;
  color: var(--editor-text);
  border: 1px solid var(--editor-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 39, 75, 0.04);
}

.admin-album-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto auto;
  gap: 12px;
}

.admin-menu-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(160px, 1fr) minmax(150px, 0.9fr) 110px 120px auto;
  gap: 10px;
}

.admin-map-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto auto;
  gap: 10px;
}

.admin-gallery-order-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto auto;
  gap: 10px;
}

.admin-announcement-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto auto;
  gap: 10px;
}

.admin-album-row img,
.admin-map-row img,
.admin-gallery-order-row img,
.admin-announcement-row img {
  width: 96px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--editor-border);
  border-radius: 11px;
}

.admin-announcement-row img {
  width: 108px;
}

.admin-menu-row strong,
.admin-map-row strong,
.admin-gallery-order-row strong,
.admin-announcement-row strong,
.admin-album-row strong {
  color: var(--editor-text);
}

.admin-menu-row span,
.admin-map-row span,
.admin-gallery-order-row span,
.admin-announcement-row span,
.admin-album-row p {
  color: var(--editor-muted);
}

.admin-announcement-row p {
  margin: 0;
  color: var(--editor-muted);
}

.admin-frame-mode [data-admin-editable="true"] {
  outline: 1px dashed rgba(17, 109, 255, 0.45);
  outline-offset: 3px;
  cursor: pointer;
}

.admin-frame-mode [data-admin-editable="true"]:hover,
.admin-frame-mode .admin-selected-element {
  outline: 2px solid var(--editor-blue);
  background-color: rgba(17, 109, 255, 0.08);
}

.admin-frame-mode [contenteditable="true"] {
  caret-color: var(--editor-blue);
}

@media (max-width: 1180px) {
  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-sidebar,
  .admin-tool-tabs,
  .admin-topbar,
  .admin-inspector {
    position: static;
  }

  .admin-sidebar {
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--editor-border);
  }

  .admin-pages {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .admin-sidebar > .button-secondary {
    margin-top: 0;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-inspector {
    max-height: none;
  }

  .admin-preview-frame {
    height: 66vh;
  }
}

@media (max-width: 760px) {
  .admin-workspace,
  .admin-sidebar {
    padding: 12px;
  }

  .admin-topbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-top-actions {
    justify-items: stretch;
  }

  .admin-form-grid,
  .admin-album-row,
  .admin-menu-row,
  .admin-map-row,
  .admin-gallery-order-row,
  .admin-announcement-row,
  .admin-upload-library,
  .admin-gallery-picker {
    grid-template-columns: 1fr;
  }

  .admin-preview-frame {
    min-height: 470px;
    height: 62vh;
  }
}

