:root {
  --ink: #243c31;
  --green: #245c40;
  --cream: #f8f7f2;
  --orange: #d76232;
  --line: #dedfd6;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font:
    16px system-ui,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
header {
  max-width: 1300px;
  margin: auto;
  padding: 30px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font:
    800 29px system-ui,
    sans-serif;
  letter-spacing: -1.8px;
}
.brand span {
  color: var(--orange);
}
nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 14px;
}
main {
  max-width: 1300px;
  margin: auto;
  padding: 0 44px;
}
h1,
h2,
h3 {
  font-family: system-ui, sans-serif;
  letter-spacing: -1.5px;
}
h1 {
  font-size: clamp(36px, 5vw, 65px);
  line-height: 1.12;
  margin: 20px 0;
}
h2 {
  font-size: 34px;
  margin: 12px 0;
}
h3 {
  font-size: 23px;
  margin: 10px 0;
}
p {
  line-height: 1.7;
}
em {
  font-style: normal;
  color: var(--orange);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 70px 0 80px;
}
.hero p {
  max-width: 490px;
  color: #687269;
  font-size: 18px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  background: var(--green);
  color: white;
  padding: 15px 22px;
  border: 0;
  border-radius: 7px;
  font-weight: 600;
}
.hero-art {
  background: #e9ede0;
  height: 380px;
  border-radius: 170px 170px 18px 18px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.plate {
  height: 270px;
  width: 270px;
  background: #fffcf3;
  border: 14px solid #f1efe3;
  border-radius: 50%;
  box-shadow: 10px 18px 30px #42533723;
  display: grid;
  place-items: center;
  transform: rotate(-15deg);
}
.food {
  font-size: 164px;
  filter: drop-shadow(4px 10px 3px #25332a22);
}
.art-label {
  position: absolute;
  right: 14px;
  bottom: 22px;
  background: #faf6e8;
  padding: 15px;
  transform: rotate(-8deg);
  font-size: 13px;
  box-shadow: 0 3px 12px #0001;
}
.orbit {
  position: absolute;
  top: 23px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.section-head > span {
  font-size: 13px;
  color: #6e786f;
  padding-bottom: 18px;
}
.filters {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 23px 0 30px;
  flex-wrap: wrap;
}
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  flex: 1;
  min-width: 280px;
  margin: 0;
}
.search:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.search span {
  font-size: 26px;
}
.filters .search input[type='search'] {
  border: 0;
  margin: 0;
  outline: none;
  padding: 12px 0;
  width: 100%;
  min-width: 0;
  background: none;
}
.chip {
  background: transparent;
  border: 1px solid #ced4ca;
  border-radius: 30px;
  padding: 10px 17px;
  color: var(--ink);
  font-size: 13px;
}
.chip.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
#chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.restaurant-card {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s;
}
.restaurant-card:hover {
  transform: translateY(-4px);
}
.card-image {
  height: 245px;
  position: relative;
  overflow: hidden;
  background: #efe6d5;
  display: flex;
  justify-content: center;
}
.card-image img {
  width: 63%;
  object-fit: cover;
  object-position: top;
  transform: rotate(-8deg) translateY(30px);
  box-shadow: 5px 6px 20px #0002;
}
.tag {
  position: absolute;
  left: 17px;
  top: 17px;
  background: #fffcf2;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
}
.card-arrow {
  position: absolute;
  right: 17px;
  bottom: 17px;
  background: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.card-body {
  padding: 23px;
}
.muted {
  color: #6c776d;
  font-size: 13px;
}
.card-body h3 {
  font-size: 24px;
  margin: 8px 0;
}
.card-body p {
  font-size: 14px;
  color: #647168;
  min-height: 48px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.card-bottom strong {
  font-weight: 600;
}
.note {
  margin: 65px 0;
  background: #edf0e7;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  gap: 28px;
  align-items: center;
}
.note > span {
  font-size: 52px;
  color: var(--orange);
}
.note h3 {
  font-size: 23px;
  margin: 0;
}
.note p {
  margin: 6px 0;
  font-size: 14px;
}
.note small {
  font-size: 11px;
  color: #657167;
}
footer {
  border-top: 1px solid var(--line);
  padding: 30px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: auto;
}
footer > span,
footer > .ai-note {
  font-size: 12px;
  color: #738076;
}
dialog {
  border: 0;
  border-radius: 16px;
  width: min(1100px, 95vw);
  max-height: 94dvh;
  padding: 28px;
  background: var(--cream);
  color: var(--ink);
}
dialog::backdrop {
  background: #172d23b5;
  backdrop-filter: blur(3px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.icon-button {
  border: 0;
  background: #e7e9e0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}
.tabs {
  display: flex;
  gap: 10px;
  margin: 25px 0;
  flex-wrap: wrap;
}
.contact {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.viewer-toolbar {
  display: flex;
  gap: 25px;
  font-size: 12px;
  align-items: center;
}
.viewer-toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.flyer-scroll {
  overflow: auto;
  max-height: 68dvh;
  background: #e4e6de;
  border-radius: 8px;
}
#flyer-pages {
  width: 100%;
  min-width: 100%;
}
figure {
  margin: 15px;
}
figure img {
  display: block;
  width: 100%;
  height: auto;
}
figcaption {
  text-align: center;
  padding: 12px;
  font-size: 12px;
}
.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.menu-item p {
  margin: 5px 0;
  font-size: 14px;
}
.menu-item b {
  white-space: nowrap;
}
.map-consent {
  padding: 25px;
  text-align: center;
  background: #e5ebe0;
  border-radius: 8px;
}
iframe {
  width: 100%;
  height: 450px;
  border: 0;
}
.login {
  max-width: 650px;
  padding-top: 75px;
}
.login h1 {
  font-size: 42px;
}
label {
  display: block;
  margin: 16px 0;
  font-size: 13px;
  font-weight: 500;
}
input:not([type='checkbox']):not([type='range']),
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cdd4c8;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  margin-top: 7px;
}
input[type='checkbox'] {
  width: auto;
}
.error {
  color: #a52d24;
}
.admin-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 35px;
  margin: 35px 0;
}
.admin-layout aside {
  padding: 23px;
  background: #edf0e7;
  border-radius: 10px;
  height: fit-content;
}
.admin-layout aside h2 {
  font-size: 26px;
}
.admin-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid #ccd3c8;
  background: none;
  color: var(--ink);
}
.admin-card span {
  display: block;
  font-size: 11px;
  margin-top: 7px;
}
.empty {
  padding: 45px 25px;
  text-align: center;
  border: 1px dashed #bdc8b8;
  border-radius: 12px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
details {
  background: white;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 8px;
  margin: 20px 0;
}
summary {
  cursor: pointer;
}
.review-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.review-images img {
  width: 100%;
}
pre {
  white-space: pre-wrap;
  max-height: 350px;
  overflow: auto;
  font-size: 12px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
}
td {
  padding: 4px;
}
td input {
  min-width: 90px;
}
td:nth-child(3) input,
td:nth-child(4) input {
  min-width: 170px;
}
.table-scroll {
  overflow: auto;
  margin-bottom: 15px;
}
td button {
  border: 0;
  background: #f7e6df;
  border-radius: 4px;
}
.publish-actions {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding: 15px 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .cards {
    gap: 16px;
  }
  .card-body {
    padding: 17px;
  }
  .card-body h3 {
    font-size: 21px;
  }
  .card-bottom {
    flex-direction: column;
  }
  .hero {
    gap: 25px;
  }
  .hero-art {
    height: 320px;
  }
  .plate {
    width: 230px;
    height: 230px;
  }
  .food {
    font-size: 140px;
  }
  .admin-layout {
    grid-template-columns: 260px 1fr;
  }
}
@media (max-width: 700px) {
  header {
    padding: 20px;
  }
  .brand {
    font-size: 25px;
  }
  nav {
    gap: 15px;
    font-size: 12px;
  }
  main {
    padding: 0 20px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 0;
    gap: 30px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero-art {
    height: 250px;
    border-radius: 120px 120px 15px 15px;
  }
  .plate {
    width: 195px;
    height: 195px;
  }
  .food {
    font-size: 115px;
  }
  .hero p {
    font-size: 16px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card-image {
    height: 260px;
  }
  .section-head {
    align-items: start;
  }
  .section-head h2 {
    font-size: 28px;
  }
  .section-head > span {
    max-width: 90px;
    text-align: right;
  }
  .filters {
    gap: 15px;
  }
  .search {
    min-width: 100%;
  }
  .note {
    padding: 22px;
    gap: 15px;
    margin: 40px 0;
  }
  .note > span {
    font-size: 35px;
  }
  .note h3 {
    font-size: 20px;
  }
  footer {
    padding: 25px 20px;
    gap: 25px;
  }
  footer > span {
    max-width: 170px;
  }
  dialog {
    padding: 16px;
    max-height: 96dvh;
    width: 97vw;
  }
  .viewer-toolbar {
    display: block;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .review-images {
    grid-template-columns: 1fr;
  }
  .login {
    padding-top: 45px;
  }
}

.admin-layout article {
  min-width: 0;
}
textarea {
  resize: vertical;
}

/* Backend is deliberately distinct from the green public directory. */
.backend {
  --ink: #20334d;
  --green: #244f9b;
  --cream: #f0f4fa;
  --orange: #e9a949;
  --line: #cfdaeb;
  background: var(--cream);
}
.backend header {
  max-width: none;
  background: #172b49;
  color: #fff;
  border: 0;
  border-bottom: 4px solid #e9a949;
  padding: 24px max(24px, calc((100vw - 1212px) / 2));
}
.backend header .brand span {
  color: #f4c66c;
}
.backend header .chip {
  border-color: #677d9b;
  color: white;
}
.backend-badge {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #f4c66c;
  border-radius: 5px;
  color: #f4c66c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
}
.backend-context {
  background: #dce6f5;
  color: #233b61;
  padding: 12px max(24px, calc((100vw - 1212px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.backend main {
  padding-top: 32px;
  padding-bottom: 50px;
}
.backend .admin-layout aside {
  background: #e0e8f5;
  border: 1px solid #c9d6eb;
}
.backend #editor {
  background: white;
  border: 1px solid #ccd8e9;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px #243a6210;
}
.backend .muted {
  color: #596c86;
}
.backend .chip {
  color: #24436b;
  border-color: #b6c7de;
}
.backend .admin-card {
  color: #203d68;
  border-color: #bdcde3;
}
.backend .admin-card:hover {
  background: #d1ddf0;
}
.backend .publish-actions {
  background: #f0f5fc;
  margin: 24px -10px 10px;
  padding: 18px;
  border-radius: 8px;
}
.backend .error {
  color: #a52c38;
}
.backend input:not([type='checkbox']):not([type='range']),
.backend select,
.backend textarea {
  border-color: #b8c9e1;
}
.backend .access-panel {
  background: #fff;
  border: 1px solid #ccd8e9;
  border-top: 4px solid #244f9b;
  border-radius: 10px;
  padding: 28px;
  margin-top: 32px;
}
.access-submit {
  display: flex;
  align-items: end;
  padding-bottom: 16px;
}
.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #d3deed;
  padding: 18px 0;
}
.user-row > div {
  flex: 1;
}
.user-row span {
  display: block;
  font-size: 12px;
  color: #596c86;
  margin-top: 5px;
}
.backend dialog {
  background: #f0f4fa;
  color: #20334d;
}
.backend.login {
  padding-top: 40px;
}
@media (max-width: 700px) {
  .backend header {
    padding: 18px 20px;
    flex-wrap: wrap;
    gap: 14px;
  }
  .backend-badge {
    font-size: 10px;
  }
  .backend header nav {
    width: 100%;
    justify-content: space-between;
  }
  .backend-context {
    padding: 12px 20px;
    flex-direction: column;
    gap: 5px;
  }
  .backend #editor,
  .backend .access-panel {
    padding: 18px;
  }
  .user-row {
    flex-wrap: wrap;
  }
  .user-row > div {
    flex-basis: 100%;
  }
}
.card-image {
  background: var(--provider-accent, #efe6d5);
}
#detail {
  border-top: 6px solid var(--provider-accent);
  background: var(--provider-soft, #f8f7f2);
}
#detail .dialog-top {
  background: var(--provider-accent);
  color: var(--provider-ink);
  margin: -28px -28px 0;
  padding: 20px 28px;
}
#detail .icon-button {
  background: transparent;
  color: var(--provider-ink);
  border: 1px solid currentColor;
}
.provider-heading {
  background: var(--provider-accent);
  color: var(--provider-ink);
  margin: 0 -28px;
  padding: 0 28px 20px;
}
.provider-heading h2 {
  margin-top: 0;
}
.provider-heading > p:last-child {
  margin-bottom: 0;
}
.provider-heading .button {
  background: var(--provider-ink);
  color: var(--provider-accent);
}
.provider-heading .chip {
  color: var(--provider-ink);
  border-color: currentColor;
}
#detail .tabs .chip.active {
  background: var(--provider-accent);
  color: var(--provider-ink);
  border-color: var(--provider-accent);
}
#detail .flyer-scroll,
#detail .map-consent {
  background: var(--provider-soft);
}
.appearance-panel {
  padding: 18px;
  background: #f0f5fc;
  border: 1px solid #ccd8e9;
  border-radius: 8px;
  margin: 20px 0;
}
.appearance-panel label {
  margin: 0;
}
.appearance-panel .muted {
  margin: 6px 0 15px;
}
.color-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.backend .color-controls input[type='color'] {
  width: 60px;
  height: 44px;
  padding: 3px;
  margin: 0;
  cursor: pointer;
}
.accent-preview {
  background: var(--provider-accent);
  color: var(--provider-ink);
  border-radius: 6px;
  padding: 18px;
  margin-top: 16px;
  font-weight: 700;
}
.accent-preview span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 4px;
}
@media (max-width: 700px) {
  #detail .dialog-top {
    margin: -16px -16px 0;
    padding: 16px;
  }
  .provider-heading {
    margin: 0 -16px;
    padding: 0 16px 18px;
  }
}

/* Regional identity: warm paper, forest green and clay. */
.regional {
  --ink: #304e40;
  --green: #365841;
  --cream: #f7f3e9;
  --orange: #995738;
  --line: #d9d6c8;
  background: var(--cream);
}
.regional .hero {
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  padding: 60px 0 70px;
}
.regional .hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -2px;
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 1.1;
}
.regional .hero em {
  font-style: italic;
}
.regional .hero p {
  font-size: 17px;
  color: #64705b;
}
.regional .hero .eyebrow {
  color: #706d50;
}
.regional .button {
  border-radius: 4px;
}
.vogelsberg-art {
  position: relative;
  overflow: hidden;
  border-radius: 180px 180px 12px 12px;
  background: #ece8d5;
  height: 390px;
}
.vogelsberg-art svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.landscape-caption {
  position: absolute;
  bottom: 42px;
  left: 42px;
  right: 42px;
  color: #fff9ea;
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1.4;
}
.landscape-stamp {
  position: absolute;
  top: 65px;
  left: 110px;
  font-size: 9px;
  letter-spacing: 2px;
  line-height: 1.8;
  color: #4b634a;
  text-align: center;
  transform: rotate(-12deg);
}
.regional #entdecken {
  scroll-margin-top: 24px;
}
.regional .section-head h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -1px;
}
.regional .note {
  background: #e9eddf;
  border-left: 4px solid #889a79;
  border-radius: 4px;
}
.regional .note h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.5px;
}
.regional footer > span {
  line-height: 1.7;
  text-align: right;
}
.regional .restaurant-card {
  border-radius: 8px;
}
.regional .chip.active {
  background: #365841;
  border-color: #365841;
}
.regional #detail .chip.active {
  background: var(--provider-accent);
  border-color: var(--provider-accent);
}
@media (max-width: 700px) {
  .regional .hero {
    grid-template-columns: 1fr;
    padding: 35px 0 45px;
    gap: 28px;
  }
  .regional .hero h1 {
    font-size: 49px;
  }
  .vogelsberg-art {
    height: 285px;
    border-radius: 110px 110px 8px 8px;
  }
  .landscape-caption {
    font-size: 17px;
    bottom: 32px;
    left: 32px;
    right: 32px;
  }
  .landscape-stamp {
    top: 48px;
    left: 75px;
    font-size: 8px;
  }
  .regional .section-head h2 {
    font-size: 29px;
  }
  .regional footer > span,
  .regional footer > .ai-note {
    font-size: 11px;
  }
}

.research-panel {
  border: 1px solid #ccd8e9;
  background: #f0f5fc;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}
.research-panel p {
  white-space: pre-wrap;
}
.research-panel a {
  text-decoration: underline;
}
.admin-list-tools {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.admin-list-tools label {
  margin: 0;
}

#admin-list {
  max-height: 650px;
  overflow: auto;
  padding-right: 8px;
}
@media (max-width: 700px) {
  #admin-list {
    max-height: 400px;
  }
}

/* Information pages and contact form */
.legal-page {
  max-width: 850px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  overflow-wrap: anywhere;
}
.legal-page h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 1.5rem;
}
.legal-page h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
}
.legal-page p {
  line-height: 1.7;
}
.legal-page address {
  font-style: normal;
  line-height: 1.7;
}
.contact-form {
  display: grid;
  gap: 0.7rem;
  margin: 2rem 0;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid #a8b694;
  border-radius: 0.5rem;
  background: #fffdf8;
  font: inherit;
}
.contact-form label {
  font-weight: 600;
  margin-top: 0.5rem;
}
.contact-form small {
  line-height: 1.6;
}
.contact-form .button {
  justify-self: start;
  margin-top: 1rem;
}
.contact-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-status {
  padding: 1rem;
  border: 1px solid #a8b694;
  border-radius: 0.5rem;
  background: #e4e9df;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
@media (max-width: 700px) {
  footer {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

.contact-address {
  width: 11.39em;
  max-width: 100%;
  height: auto;
}

.legal-page p a,
.legal-page small a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

footer {
  flex-wrap: wrap;
  row-gap: 1rem;
}
.ai-note {
  flex-basis: 100%;
  font-family: inherit;
  line-height: 1.7;
}

.upload-panel {
  border: 2px solid #8ca4ba;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: #f3f7fb;
}
#upload-status:not(:empty) {
  padding: 1rem;
  border: 1px solid #8ca4ba;
  border-radius: 8px;
  background: #e8f0f8;
  color: #213d58;
  line-height: 1.6;
}
#upload-status.is-error:not(:empty) {
  border: 2px solid #b42b23;
  background: #fff0ec;
  color: #902018;
  font-weight: 600;
}

.website-cover {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 35px 20px 15px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.card-image img.website-illustration {
  width: 180px;
  height: 105px;
  max-width: 80%;
  object-fit: contain;
  transform: none;
  box-shadow: none;
  flex-shrink: 0;
}
.website-cover strong {
  display: block;
  font-size: 17px;
  line-height: 1.3;
}
.website-cover .website-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border-radius: 7px;
  background: #304e40;
  color: #fffdf7;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.website-notice {
  margin: 1.5rem 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f7f2;
}
.website-notice small {
  display: block;
  margin-top: 1rem;
}

.backend main {
  max-width: none;
}
.backend .admin-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}
.review-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1rem;
  height: 82vh;
  min-height: 540px;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f3f7fb;
  border: 1px solid #a7b9ca;
  border-radius: 10px;
  overflow: hidden;
}
.comparison-toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.comparison-scan,
.comparison-table {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.comparison-scan {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.comparison-table {
  display: flex;
  flex-direction: column;
}
.comparison-table > h3,
.comparison-table > p,
.comparison-table > label,
.comparison-table > button {
  flex-shrink: 0;
}
.comparison-table > h3 {
  margin-top: 0;
}
.comparison-table > .table-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.comparison-table thead {
  position: sticky;
  top: 0;
  background: #f3f7fb;
  z-index: 1;
}
.comparison-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.comparison-controls label,
.comparison-order-control {
  margin: 0 0 1rem;
}
.comparison-image-scroll {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #dce4eb;
  border: 1px solid #a7b9ca;
  cursor: grab;
  touch-action: none;
  user-select: none;
  overscroll-behavior: contain;
}
.comparison-image-scroll.is-panning {
  cursor: grabbing;
}
#comparison-image {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  pointer-events: none;
}
.comparison-open {
  overflow: hidden;
}
.review-workspace.is-expanded {
  position: fixed;
  inset: 8px;
  width: auto;
  height: auto;
  min-height: 0;
  z-index: 1000;
  margin: 0;
}
.comparison-table td input {
  min-width: 0;
}
.comparison-table table {
  min-width: 650px;
}
@media (max-width: 700px) {
  .backend .admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .review-workspace:not(.is-expanded) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr);
    height: 120vh;
  }
  .review-workspace.is-expanded {
    grid-template-columns: minmax(280px, 1fr) minmax(350px, 1fr);
    overflow-x: auto;
  }
}
.comparison-table td textarea {
  min-width: 150px;
  margin-top: 0;
  resize: vertical;
}
.comparison-table td:nth-child(2) input {
  min-width: 55px;
}

.menu-visibility-panel {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid #a7b9ca;
  border-radius: 10px;
  background: #f3f7fb;
}
.menu-visibility-panel h3 {
  margin-top: 0;
}
.visibility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.visibility-actions button:disabled {
  opacity: 0.5;
  cursor: default;
}

.admin-provider-entry {
  border-bottom: 1px solid #ccd3c8;
}
.admin-provider-entry .admin-card {
  border-bottom: 0;
}
.admin-provider-links {
  display: grid;
  gap: 0.5rem;
  padding-bottom: 1rem;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.admin-homepage-link {
  color: #244c70;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.admin-research-link {
  color: #68778a;
  font-style: italic;
}
.admin-provider-links a:hover {
  text-decoration: underline;
}

.camera-actions {
  margin: 1rem 0;
}
.camera-pages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}
.camera-page {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid #a7b9ca;
  border-radius: 8px;
  background: white;
}
.camera-page img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.page-order-panel {
  margin: 1.5rem 0;
}
.page-order-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.page-order-item {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #a7b9ca;
  border-radius: 8px;
}
.page-order-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}
.page-order-item > div {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#password-dialog {
  width: min(520px, calc(100vw - 32px));
}
#password-status:not(:empty) {
  margin-top: 1rem;
  line-height: 1.6;
}
