html[data-theme="olive"] {
  --wine: #345748;
  --cream: #edf0e6;
  --ink: #25362c;
  --olive: #52623b;
  --sand: #a6ae8c;
  --paper: #fcfcf5;
  --line: #cbd3bd;
}
html[data-theme="night"] {
  color-scheme: dark;
  --wine: #e0bd83;
  --cream: #211c19;
  --ink: #f3e8d8;
  --olive: #bdcb9e;
  --sand: #887154;
  --paper: #2d2521;
  --line: #514238;
}
html[data-theme="night"] :is(.lead,.fine,.sectionhead>p) { color: #dfd0be; }
html[data-theme="night"] .bowl-info { background: #37372b; }
html[data-theme="night"] .ribbon { background: #343c2c; color: var(--ink); }
html[data-theme="night"] .story .eyebrow { color: #52351e; }
html[data-theme="night"] .search input { color: var(--ink); }
.category, .product, .gallery-grid button, .service-form { border-radius: 14px; }
.product { padding: 16px; }
.product img { border-radius: 8px; }
.gallery-grid button { overflow: hidden; }
.filters button { white-space: nowrap; }
.service-add { border-radius: 7px; }
.footerlinks { flex-wrap: wrap; }
.adminwrap { max-width: 1360px; }
#dashboard { scroll-margin-top: 102px; }
.admin :is(input:not([type="checkbox"]),select,textarea) {
  background: var(--paper); border-color: var(--line); padding: 10px 12px;
}
.admin .btn { border-radius: 9px; }
.admin :is(.loginbox,.admin-table,.stat,.service-cards article) { border-radius: 12px; }
.admin .adminhead h2 { font-size: clamp(2rem, 5vw, 3.7rem); }
.admin #dashboard > .adminhead p { margin-top: 5px; }
.admin-tabs {
  position: sticky; top: 94px; z-index: 3; display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)) auto;
  gap: 5px; background: var(--paper); padding: 5px; border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 20px;
}
.admin-tabs .btn { min-width: 0; gap: 4px; padding: 9px 12px; border-color: transparent; }
.admin-tabs [aria-pressed="true"] { color: var(--cream); background: var(--wine); }
.admin-tabs #service-count { display: inline; }
#dashboard[data-view="products"] > [data-panel]:not([data-panel="products"]) { display:none; }
#dashboard[data-view="service"] > [data-panel]:not([data-panel="service"]) { display:none; }
#dashboard[data-view="appearance"] > [data-panel]:not([data-panel="appearance"]) { display:none; }
#dashboard[data-view="seo"] > [data-panel]:not([data-panel="seo"]) { display:none; }
#dashboard[data-view="delivery"] > [data-panel]:not([data-panel="delivery"]) { display:none; }
#dashboard[data-view="kitchen"] > [data-panel]:not([data-panel="kitchen"]) { display:none; }
#dashboard[data-view="operations"] > [data-panel]:not([data-panel="operations"]) { display:none; }
.seo-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 230px),1fr)); gap: 10px; margin-top: 12px; }
#seo-report details { padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
#seo-report details h4 { margin-bottom: 0; }
.theme-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 12px; margin: 16px 0; }
.theme-choice {
  display: flex; align-items: center; gap: 9px; padding: 12px;
  border: 1px solid var(--line); background: var(--paper); border-radius: 10px;
}
.theme-choice:has(input:checked) { border-color: var(--wine); outline: 1px solid var(--wine); }
.admin .theme-choice input[type="radio"] {
  width: 18px; height: 18px; flex: none; margin: 0; padding: 0; accent-color: var(--wine);
}
.theme-swatch { display: block; width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid #8b7765; }
.theme-swatch.maaile { background: linear-gradient(135deg,#801d25 50%,#f8eedc 50%); }
.theme-swatch.olive { background: linear-gradient(135deg,#345748 50%,#edf0e6 50%); }
.theme-swatch.night { background: linear-gradient(135deg,#211c19 50%,#e0bd83 50%); }
.admin #service-admin { margin-top: 0; }
.admin #products-admin { margin-top: 0; }
.admin dialog { border-radius: 15px; }
.admin dialog form { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .event-page .event-photo { max-height: 160px; aspect-ratio: 2.5; }
  .admin #service-requests { max-height: min(48vh, 32rem); }
}
@media (max-width: 650px) {
  .nav { min-height: 76px; }
  .nav nav { gap: 0 10px; }
  .nav nav a { padding-block: 6px; }
  .hero { padding-top: 24px; }
  .hero h1 { font-size: clamp(3.2rem, 13vw, 5.4rem); }
  .hero-photo > img { height: clamp(280px, 82vw, 410px); }
  .section { padding-top: 34px; padding-bottom: 42px; }
  .menu-page h1, .gallery-page h1 { font-size: clamp(2.65rem, 10vw, 4rem); }
  .filterbar { top: 76px; gap: 8px; margin-block: 15px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding: 3px 3px 6px; scrollbar-width: thin; }
  .filters button { min-height: 42px; }
  .search { padding-block: 10px; }
  .product { gap: 12px; min-height: 94px; padding: 12px; }
  .product img { width: 72px; height: 72px; }
  .product:has(.service-add) .service-add { margin-left: auto; }
  .gallery-grid img { aspect-ratio: 1; }
  .adminwrap { padding: 18px max(12px, 4%); }
  .admin-tabs { top: 76px; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .admin-tabs .btn { padding-inline: 4px; gap: 2px; font-size: .8rem; }
  .admin-tabs #service-sound { grid-column: 1 / -1; min-height: 40px; }
  .admin-tabs #service-count { font-size: .72rem; }
  .admin .adminhead { flex-wrap: wrap; margin-bottom: 12px; }
  .admin .stats { gap: 6px; margin-block: 12px; }
  .admin .stat { padding: 8px; }
  .admin .admin-tools { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .admin .admin-tools .btn { padding-inline: 5px; text-align: center; }
  .admin .admin-tools :is(input,select) { width: 100% !important; min-width: 0; }
  .admin td input { max-width: none; }
  .admin td:last-child { display: flex; flex-wrap: wrap; }
  .admin td:last-child button { flex: 1 0 auto; border-radius: 7px; }
}
