:root {
  --night: #111114;
  --cream: #f6e6d3;
  --ink: #e9e5e0;
  --muted: #b6aaa2;
  --wine: #ba2c33;
  --gold: #f0c789;
  --tomato: #f04b44;
  --line: rgba(255, 255, 255, 0.12);
  --side: 292px;
  --side-bg: #0a0a0c;
  --side-ink: #f6e6d3;
  --side-muted: #c5b8a9;
  --side-pill: #ba2c33;
  --side-line: rgba(255, 255, 255, 0.1);
  --page: #111114;
  --card: #1d1b1c;
  --card-2: #171619;
  --heading: #f1c487;
  --accent: #e7b979;
  --input: #0d0e10;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #111114;
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
}
a { color: inherit; }
.desk-side {
  position: fixed;
  top: 16px;
  left: 16px;
  bottom: 16px;
  width: calc(var(--side) - 32px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 14px 14px;
  background: var(--side-bg);
  color: var(--side-ink);
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-mark {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff8e9;
  border: 1px solid #e7b985;
  text-decoration: none;
  flex: none;
}
.side-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.side-collapse, .side-theme {
  border: 0;
  background: transparent;
  color: var(--side-ink);
  cursor: pointer;
  font: inherit;
}
.side-collapse {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.4rem;
  line-height: 1;
}
.side-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 12px;
  min-height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--side-muted);
}
.side-search svg, .desk-nav svg, .side-theme svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.side-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--side-ink);
  font: inherit;
  outline: none;
}
.side-search input::placeholder { color: var(--side-muted); }
.desk-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.desk-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 14px;
  color: var(--side-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
.side-label { line-height: 1.15; }
.desk-nav a:hover { background: rgba(255, 255, 255, 0.06); color: var(--side-ink); }
.desk-nav a.on { background: var(--side-pill); color: #fff; }
.nav-count {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.side-theme {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
}
.side-theme .sun { display: none; }
.theme-switch {
  margin-left: auto;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--side-pill);
  position: relative;
  flex: none;
}
.theme-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}
body.desk-light {
  --side-bg: #fff8e9;
  --side-ink: #3b1c16;
  --side-muted: #6f6256;
  --side-line: rgba(151, 27, 32, 0.12);
  --page: #fff1db;
  --card: #fffaf0;
  --card-2: #fff6e5;
  --ink: #3b1c16;
  --muted: #6f6256;
  --line: #e6d3b4;
  --heading: #971d24;
  --accent: #a51d25;
  --input: #fff;
  background: var(--page);
  color: var(--ink);
}
body.desk-light .side-collapse,
body.desk-light .side-search,
body.desk-light .side-theme { background: #fff1db; }
body.desk-light .desk-nav a:hover { background: #fff1db; color: var(--side-ink); }
body.desk-light .side-theme .moon { display: none; }
body.desk-light .side-theme .sun { display: block; }
body.desk-light .theme-switch { background: #d5d9e2; }
body.desk-light .theme-switch::after { right: auto; left: 3px; }
body.desk-light .topbar { background: var(--card); border-bottom-color: var(--line); }
body.desk-light .side-logout { background: #fdecea; color: #b71c1c; }
body.side-collapsed { --side: 104px; }
body.side-collapsed .side-top { flex-direction: column; align-items: center; }
body.side-collapsed .side-label,
body.side-collapsed .nav-count,
body.side-collapsed .theme-switch,
body.side-collapsed .side-search input { display: none; }
body.side-collapsed .side-search,
body.side-collapsed .desk-nav a,
body.side-collapsed .side-theme,
body.side-collapsed .side-logout { justify-content: center; padding-left: 0; padding-right: 0; }
body.side-collapsed .side-collapse { transform: scaleX(-1); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-left: var(--side);
  width: calc(100% - var(--side));
  display: flex;
  flex-direction: column;
  padding: 8px 22px;
  background: #151417;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.side-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 12px;
  border: 0;
  border-radius: 16px;
  background: rgba(198, 40, 40, 0.2);
  color: #ffcdd2;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}
.side-logout svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.top-logout {
  border: 0;
  border-radius: 12px;
  background: #c62828;
  color: #fff;
  font: inherit;
  font-weight: 700;
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
  flex: none;
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand small { display: block; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; color: var(--heading); }
.brand strong { font-family: "Playfair Display", Georgia, serif; font-size: 1.35rem; color: #fff; }
.brand small { color: #e7b985; }
.top-powered {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  text-decoration: none;
  white-space: nowrap;
}
.top-powered span {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--muted);
}
.top-powered img { width: 112px; height: auto; display: block; }
.gate-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
}
.gate-wrap h1 { margin: 0 0 0.4rem; font-family: "Playfair Display", serif; color: var(--heading); }
.gate-wrap .upload-card { width: min(420px, 100%); margin: 0; }
.powered {
  margin: 1.2rem 0 0.45rem;
  text-align: center;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
}
.powered-logo { display: block; text-align: center; }
.powered-logo img { width: min(240px, 100%); height: auto; }
.slide-admin figure label { display: block; margin-top: 0.45rem; }
.slide-admin textarea { min-height: 68px; }
.kd-name { margin: 0.15rem 0 0; }
.kd-name img { width: min(340px, 100%); height: auto; display: block; }
.gate-wrap .kd-name { margin: 0.4rem 0 0.2rem; }
.gate-wrap .kd-name img { width: min(320px, 100%); margin: 0 auto; }
.kd-bar { width: 168px; max-width: 100%; height: auto; display: block; }
.brand img.kd-bar { width: 168px; height: auto; object-fit: contain; }
.brand .admin-tag { display: block; margin: 0; }
.gate-logo { margin: 0 0 0.85rem; }
.gate-logo img { width: min(190px, 72%); height: auto; display: block; margin: 0 auto; }
.holiday-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(6, 8, 14, 0.72);
}
.holiday-bits { position: absolute; inset: 0; pointer-events: none; }
.holiday-bits i {
  position: absolute;
  top: -12%;
  color: #d6aa62;
  font-style: normal;
  animation: holiday-fall linear forwards;
}
.holiday-card {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 2rem));
  padding: 1.4rem 1.5rem 1.2rem;
  text-align: center;
  color: #fff;
  background: #1b1e27;
  border: 2px solid #d6aa62;
  border-radius: 18px;
}
.holiday-card .holiday-photo { display: block; width: min(220px, 70%); max-height: 160px; margin: 0 auto 0.6rem; object-fit: contain; }
.holiday-thumb { display: block; width: 100%; max-height: 140px; margin-top: 0.45rem; object-fit: contain; border-radius: 12px; background: rgba(0, 0, 0, 0.25); }
.holiday-kicker { margin: 0; letter-spacing: 0.16em; text-transform: uppercase; color: #d6aa62; }
.holiday-card h2 { margin: 0.35rem 0 0; font-family: "Playfair Display", serif; font-size: clamp(2rem, 6vw, 3.6rem); }
.holiday-count { margin: 0.8rem 0 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.holiday-layer[data-holiday="valentine"] .holiday-bits i,
.holiday-layer[data-holiday="mothers-day"] .holiday-bits i { color: #ff6b8a; }
.holiday-layer[data-holiday="memorial-day"] .holiday-bits i { color: #8eb6ff; }
.holiday-layer[data-holiday="independence-day"] .holiday-bits i:nth-child(3n) { color: #fff; }
.holiday-layer[data-holiday="independence-day"] .holiday-bits i:nth-child(3n+1) { color: #ff4d4d; }
.holiday-layer[data-holiday="independence-day"] .holiday-bits i:nth-child(3n+2) { color: #4d8dff; }
.holiday-layer[data-holiday="thanksgiving"] .holiday-bits i { color: #e08a3c; }
.holiday-layer[data-holiday="christmas"] .holiday-bits i { color: #d7f3ff; }
@keyframes holiday-fall {
  to { transform: translateY(115vh) rotate(220deg); opacity: 0.2; }
}
img.logo-light { display: none; }
img.logo-dark { display: block; }
body.desk-light img.logo-light { display: block; }
body.desk-light img.logo-dark { display: none; }
.wrap { width: calc(100% - var(--side)); max-width: none; margin: 0 0 0 var(--side); padding: 22px 28px 72px; }
.group-label {
  margin: 1.6rem 0 0;
  color: var(--heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.upload-card, .group-label { scroll-margin-top: 96px; }
.app-tabs, .app-more { display: none; }
@media (max-width: 860px) {
  .desk-side, .group-label { display: none; }
  .topbar, .wrap { margin-left: 0; width: 100%; }
  .topbar { padding: 10px 14px; }
  .top-powered span { display: none; }
  .brand img { width: 42px; height: 42px; }
  .brand img.kd-bar { width: min(180px, 52vw); height: auto; }
  .wrap { padding: 12px 12px calc(108px + env(safe-area-inset-bottom)); }
  .upload-card { border-radius: 20px; }
  .upload-card input, .upload-card select, .upload-card textarea, .btn { font-size: 16px; }
  .btn { min-height: 48px; }
  .app-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    gap: 4px;
    padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
    background: #111;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .app-tabs a, .app-tabs button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 56px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
  }
  .app-tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .app-tabs a.on, .app-tabs button.on { background: #c62828; }
  .app-more {
    display: grid;
    gap: 6px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    z-index: 59;
    padding: 10px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }
  .app-more[hidden] { display: none; }
  .app-more a, .app-more button {
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--card-2);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    padding: 0 14px;
  }
  .app-more a.on { background: #c62828; color: #fff; }
}
.page-head { margin: 0 0 4px; }
.page-head h1 { font-family: "Playfair Display", serif; font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0.2rem 0; color: var(--ink); }
.kicker { letter-spacing: 0.16em; text-transform: uppercase; color: var(--heading); font-size: 0.78rem; margin: 0; }
.page-head p { max-width: 42rem; margin: 0; color: var(--muted); }
.editor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; align-items: start; }
.editor-grid .panel { margin-top: 12px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .field-pair { grid-template-columns: 1fr; } }
.page-head a { color: var(--accent); }
.admin-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .admin-grid { grid-template-columns: 1fr 1fr; } }
.upload-card {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.1rem 1.15rem 1rem;
  margin-top: 16px;
}
.upload-card h2 {
  margin: 0 0 0.35rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
  font-family: "Playfair Display", serif;
  color: var(--heading);
}
.panel {
  margin-top: 1rem;
  padding: 0.95rem 1rem 0.35rem;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.panel h3 { margin: 0 0 0.35rem; }
#holidayEditors .panel.is-on {
  background: #3a3124;
  border-color: #d6aa62;
  box-shadow: inset 0 0 0 1px rgba(214, 170, 98, 0.45);
}
#holidayEditors .panel.is-on h3 { color: #f3d7a1; }
body.desk-light #holidayEditors .panel.is-on {
  background: #fff4dc;
  border-color: #b8860b;
  box-shadow: inset 0 0 0 1px rgba(184, 134, 11, 0.35);
}
body.desk-light #holidayEditors .panel.is-on h3 { color: #7a4e00; }
#dealEditors .panel.is-on {
  background: #3a3124;
  border-color: #d6aa62;
}
body.desk-light #dealEditors .panel.is-on {
  background: #fff4dc;
  border-color: #b8860b;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.upload-card > .locked-note:first-of-type { margin-top: 0.35rem; }
.visit-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 1rem; }
.visit-stat { background: var(--card-2); border: 1px solid var(--line); border-radius: 16px; padding: 0.9rem 1rem; }
.visit-stat span { display: block; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.visit-stat strong { display: block; margin-top: 0.25rem; font-family: "Playfair Display", serif; font-size: 2.1rem; line-height: 1; color: var(--ink); }
#visitNew { color: #f0c789; }
#visitReturning { color: #9a7340; }
.visit-chart { height: 300px; margin-top: 0.6rem; }
#visitPages { display: grid; gap: 0.45rem; margin-top: 0.4rem; }
.visit-page { display: flex; justify-content: space-between; gap: 12px; padding: 0.7rem 0.85rem; border-radius: 12px; background: var(--card-2); }
.visit-page strong { font-family: "Playfair Display", serif; }
@media (max-width: 800px) { .visit-stats { grid-template-columns: 1fr 1fr; } }
.upload-card label { display: block; margin: 0.7rem 0 0.3rem; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.upload-card input, .upload-card select, .upload-card textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--input);
  color: var(--ink);
  font: inherit;
}
.upload-card input[type="checkbox"],
.upload-card input[type="radio"],
.upload-card input[type="color"] {
  width: auto;
  padding: 0;
}
.upload-card label:has(> input[type="checkbox"]),
.upload-card label:has(> input[type="radio"]) {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.2rem;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}
.upload-card textarea { min-height: 5.5rem; resize: vertical; }
.btn {
  border: 1px solid rgba(255, 128, 115, 0.33);
  background: linear-gradient(160deg, #f04b44, #a91d27);
  color: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 0 #5d0c13;
  padding: 0.6rem 0.95rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.danger { background: transparent; color: #ff8a80; border: 1px solid #ff8a80; }
body.desk-light .btn.danger { color: #b71c1c; border-color: #b71c1c; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.locked-note { color: var(--muted); font-size: 1rem; }
.qr-card {
  max-width: 420px;
  margin-top: 1rem;
  padding: 28px 22px 18px;
  border-radius: 24px;
  background: #fffaf6;
  color: #1a120e;
  text-align: center;
}
.qr-card .qr-logo {
  width: 132px;
  height: 132px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
}
.qr-card h3 {
  margin: 12px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  color: #1a120e;
}
.qr-card p { margin: 0.35rem 0; }
.qr-card .qr-tag { color: #a60e17; font-weight: 700; }
.qr-card canvas { width: 100%; height: auto; aspect-ratio: 1; margin-top: 8px; display: block; }
.qr-card .qr-scan { margin-top: 8px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
.qr-card a { color: #a60e17; }
.qr-card .qr-powered { margin-top: 10px; color: #6b625c; font-size: 0.85rem; letter-spacing: 0.04em; }
.slide-admin { display: grid; gap: 1rem; }
.slide-admin figure { margin: 0; }
.slide-admin img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; display: block; }
.slide-admin figcaption { margin-top: 0.35rem; color: var(--muted); font-size: 0.9rem; }
.popup-pages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
  margin-top: 0.8rem;
}
.popup-pages p {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.upload-card .popup-pages label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-2);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  font-weight: 600;
}
.upload-card .popup-pages input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  flex: none;
  accent-color: #c62828;
}
#popupText { min-height: 120px; }
.preview img, .special-pdf { width: 100%; border-radius: 16px; background: #fff; }
.special-pdf { height: min(70vh, 640px); border: 0; }
.preview .doc, .doc { background: var(--card-2); border-radius: 16px; padding: 1rem; color: var(--ink); }
.book-switch { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.book-switch button {
  flex: 1;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.book-switch button.on { background: var(--accent); color: #fff; }
.menu-tools { display: grid; gap: 0.8rem; }
.price-item-list {
  max-height: 240px;
  overflow: auto;
  display: grid;
  gap: 0.35rem;
  margin-top: 0.45rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--input);
}
.upload-card .price-item-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
}
.price-item-list span { margin-left: auto; color: var(--muted); font-size: 0.78rem; }
.edit-panel {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-2);
}
.edit-panel h3, .item-dialog-card h3 { margin: 0; font-family: "Playfair Display", serif; color: var(--heading); }
dialog.item-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 20px;
  border: 0;
  background: rgba(14, 12, 10, 0.72);
  display: none;
  place-items: center;
  overflow: auto;
  z-index: 40;
}
dialog.item-dialog[open] { display: grid; }
dialog.item-dialog::backdrop { background: transparent; }
.item-dialog-card {
  width: min(560px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.15rem;
}
.item-dialog-card label { display: block; margin: 0.7rem 0 0.3rem; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.item-dialog-card input, .item-dialog-card select, .item-dialog-card textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--input);
  color: var(--ink);
  font: inherit;
}
.item-dialog-card textarea { min-height: 5.5rem; resize: vertical; }
.item-line {
  display: grid;
  gap: 0.6rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) { .item-line { grid-template-columns: 1fr auto; } }
.item-line strong { display: block; font-family: "Playfair Display", serif; font-size: 1.05rem; }
.item-line .btn { padding: 0.35rem 0.7rem; font-size: 0.85rem; }
#cateringAdmin { font-size: 1.125rem; }
#cateringAdmin h2 { font-size: 2.15rem; }
#cateringAdmin h3 { font-size: 1.7rem; }
#cateringAdmin label {
  font-size: 1rem;
  letter-spacing: 0.04em;
}
#cateringAdmin input,
#cateringAdmin select,
#cateringAdmin textarea {
  font-size: 1.2rem;
  line-height: 1.45;
  padding: 0.9rem 1rem;
}
#cateringAdmin textarea { min-height: 8rem; }
#cateringAdmin .locked-note { font-size: 1.15rem; line-height: 1.45; }
#cateringAdmin .item-line strong { font-size: 1.3rem; }
#cateringAdmin .item-line span,
#cateringAdmin .item-line em { font-size: 1.1rem; }
#cateringAdmin .btn { font-size: 1.08rem; padding: 0.75rem 1.15rem; }
#cateringAdmin .item-line .btn { font-size: 1.05rem; padding: 0.55rem 0.95rem; }
#itemList, #lunchItemList, #cateringItemList, #noteList {
  max-height: 440px;
  overflow: auto;
  margin-top: 0.4rem;
}
.item-line span, .item-line em { color: var(--muted); }
.item-line .note-where { display: block; color: var(--heading); font-weight: 700; }
.item-line em { display: block; font-style: normal; }
.item-line.is-hidden {
  background: rgba(220, 53, 69, 0.16);
  border-radius: 14px;
  padding: 0.75rem 0.8rem;
}
.item-line.is-hidden strong { color: #dc3545; }
.item-line .hidden-tag {
  display: inline-block;
  margin-left: 0.4rem;
  color: #dc3545;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: normal;
}
.gallery-admin, .slide-admin { display: grid; gap: 0.7rem; margin-top: 1rem; }
@media (min-width: 700px) {
  .gallery-admin { grid-template-columns: repeat(3, 1fr); }
  .slide-admin { grid-template-columns: repeat(5, 1fr); }
}
.gallery-admin figure, .slide-admin figure { margin: 0; }
.gallery-admin img, .slide-admin img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.gallery-admin .btn, .slide-admin .btn { margin-top: 0.4rem; width: 100%; }
#siteForm h3, #lunchSpecialsAdmin h3 {
  margin: 0 0 0.45rem;
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  color: var(--heading);
}
#siteForm .form-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
#siteForm .form-control,
#siteForm .form-select {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--input);
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0.8rem;
}
#siteForm textarea.form-control { min-height: 5.5rem; }
#siteForm .form-control-color {
  width: 100%;
  height: 48px;
  padding: 0.35rem;
}
#siteForm .day-name {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}
#siteForm .form-check-label {
  color: var(--ink);
  font-weight: 650;
}
#siteForm .form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  border-color: var(--accent);
}
#siteForm .form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}
[hidden] { display: none !important; }
