/* One saved appearance for the website and the administration. */
html[data-theme="dark"]{color-scheme:dark}
.theme-toggle[hidden]{display:none!important}
.theme-toggle{flex-shrink:0;touch-action:manipulation}
.theme-toggle .theme-moon{display:none}
html[data-theme="light"] .theme-toggle .theme-sun{display:none}
html[data-theme="light"] .theme-toggle .theme-moon{display:block}
.theme-toggle-row{display:flex;align-items:center;gap:12px;min-height:48px;padding:12px 16px;margin:0 0 20px;border:1px solid var(--line);border-radius:14px;font-size:13px;color:var(--light-gold)}
.header-actions .theme-toggle{color:var(--light-gold);border:1px solid var(--line);border-radius:50%;margin-right:3px}
#menu-search::-webkit-search-cancel-button{-webkit-appearance:none}
@media(max-width:359px){.header-inner{gap:8px}.site-header .brand{width:124px}.header-actions{gap:2px}.header-actions .theme-toggle{margin-right:0}}
/* Admin buttons share the controller without loading the public site's styles. */
.admin-page .admin-theme-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.admin-page .theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;width:auto;margin:0;padding:10px 12px;border:1px solid var(--stroke,#ffffff26);border-radius:12px;background:transparent;color:var(--text);font:600 12px/1.4 system-ui,sans-serif;cursor:pointer}
.admin-page .theme-toggle svg{width:20px;height:20px;flex-shrink:0}
.admin-page .theme-toggle:focus-visible{outline:2px solid var(--gold2);outline-offset:3px}
.admin-login .theme-toggle{margin-bottom:20px}
@media(max-width:600px){.admin-page .top{flex-wrap:wrap}.admin-page .admin-theme-actions{width:100%;justify-content:space-between}}

@media screen {
  html[data-theme="light"]{
    color-scheme:light;
    --bg:#f6f1e8;
    --surface:#fffcf5;
    --raised:#ede5d7;
    --ink:#292a22;
    --muted:#656456;
    --gold:#82602b;
    --light-gold:#795726;
    --line:#d9cfbf;
    --text:var(--ink);
    --panel:var(--surface);
    --panel2:var(--raised);
    --gold2:var(--light-gold);
    --stroke:var(--line);
    --ok:#2d683c;
    --red:#a33b30;
  }
  html[data-theme="light"] ::selection{background:#dcc087;color:#292a22}
  html[data-theme="light"] .site-header{background:#f6f1e8f5;border-bottom-color:var(--line)}
  /* The original transparent logo stays the same artwork, with ink suited to paper. */
  html[data-theme="light"] :is(.brand,.footer-brand) img{filter:brightness(.46) sepia(.3)}
  html[data-theme="light"] .bottom-nav{background:#fffcf5fa;box-shadow:0 -4px 24px #47371908}
  html[data-theme="light"] .icon-button:hover,
  html[data-theme="light"] .sheet-top>.icon-button{background:#82602b0a}
  html[data-theme="light"] .button.gold,
  html[data-theme="light"] .cart-bar{background:#ddc18a;color:#292516}
  html[data-theme="light"] .button.outline{border-color:#b7a17b}
  html[data-theme="light"] .cart-bar{box-shadow:0 6px 26px #49371824}
  html[data-theme="light"] .notice{background:#efe0bd;color:#624719}
  html[data-theme="light"] .hero{background:var(--bg)}
  html[data-theme="light"] .hero h1{text-shadow:none}
  html[data-theme="light"] .hero-description{color:#535247}
  html[data-theme="light"] .hero-story-link{color:var(--muted)}
  html[data-theme="light"] .hero-photo img{filter:none}
  html[data-theme="light"] .hero-photo::after{background:linear-gradient(180deg,var(--bg) 0%,#f6f1e8f2 20%,#f6f1e866 33%,transparent 46%,transparent 55%,var(--bg) 98%),linear-gradient(90deg,#f6f1e870,transparent 55%)}
  html[data-theme="light"] .hero-cta .button{box-shadow:0 6px 24px #49371826}
  html[data-theme="light"] .hero-seal{background:#fffcf5ed;color:var(--gold);border-color:#ac874c}
  html[data-theme="light"] .hero-caption{color:var(--ink);background:#fffcf5eb;border:1px solid #d9cfbf80;border-radius:14px;padding:12px 18px}
  html[data-theme="light"] .service-strip,
  html[data-theme="light"] .story-section{background:#eee7da}
  html[data-theme="light"] .status-dot.is-open{background:#4b7543;box-shadow:0 0 0 4px #4b754315}
  html[data-theme="light"] .round-arrow{color:#f6f1e8}
  html[data-theme="light"] .delivery-section,
  html[data-theme="light"] .planner-section{background:#ede5d7}
  html[data-theme="light"] .delivery-check,
  html[data-theme="light"] .event-planner{background:var(--surface);border-color:var(--line)}
  html[data-theme="light"] .site-footer{background:radial-gradient(ellipse at 0 0,#ddc18a25,transparent 65%),#eee7da}
  html[data-theme="light"] .footer-social-link{background:#fffcf56b;border-color:#b9a57d}
  html[data-theme="light"] .footer-social-link:hover{background:var(--surface)}
  html[data-theme="light"] .toast{background:#fffcf5f5;border-color:#ac9269;box-shadow:0 4px 24px #49371818}
  html[data-theme="light"] dialog.sheet{background:var(--surface);border-color:var(--line);box-shadow:0 -12px 80px #49371830}
  html[data-theme="light"] dialog.sheet::backdrop{background:#29271970}
  html[data-theme="light"] input:not([type=checkbox]):not([type=radio]):not([type=range]),
  html[data-theme="light"] select,
  html[data-theme="light"] textarea{background:#fffefa;border-color:#b8ae9e;color:var(--ink)}
  html[data-theme="light"] :is(.search-field,.quantity-stepper) input:not([type=checkbox]):not([type=radio]):not([type=range]){background:transparent;border:0}
  html[data-theme="light"] input::placeholder,
  html[data-theme="light"] textarea::placeholder{color:#777365;opacity:1}
  html[data-theme="light"] .segmented{background:#ede5d7}
  html[data-theme="light"] .segmented input:checked+span{background:var(--surface);color:var(--gold);box-shadow:0 2px 8px #49371812}
  html[data-theme="light"] .form-error{background:#a33b300a;border-color:#bc8073;color:#903b2e}
  html[data-theme="light"] .success-text{color:#35633b}
  html[data-theme="light"] .quantity-stepper{border-color:#b8ae9e}
  html[data-theme="light"] .menu-tools{background:#f6f1e8f5}
  html[data-theme="light"] .search-field{background:var(--surface);border-color:var(--line)}
  html[data-theme="light"] .category-tabs button{border-color:#c8bba5}
  html[data-theme="light"] [data-page="menu"] .category-tabs button[aria-pressed="true"]{background:var(--gold);color:#fffaf0;border-color:var(--gold)}
  html[data-theme="light"] .dish-card,
  html[data-theme="light"] [data-page="menu"] .dish-card.has-photo{background:var(--surface);border-color:var(--line)}
  html[data-theme="light"] .dish-card:hover{border-color:#a78b5d}
  html[data-theme="light"] .favorite-button .icon{color:#716c5b}
  html[data-theme="light"] .favorite-button[aria-pressed="true"] .icon{color:var(--gold)}
  html[data-theme="light"] .dish-prices,
  html[data-theme="light"] .allergen-ref{color:var(--muted)}
  html[data-theme="light"] .dish-add{border-color:#b6a17c;background:#82602b06}
  html[data-theme="light"] .dish-tag{border-color:#c1aa80}
  html[data-theme="light"] .size-options label>span{border-color:#b8ae9e}
  html[data-theme="light"] .dish-photo::after{background:linear-gradient(180deg,#100e0a14,transparent 40%,#fffcf51a 64%,var(--surface))}
  html[data-theme="light"] .has-photo .dish-number,
  html[data-theme="light"] .has-photo .favorite-button .icon{color:#e0c087}
  html[data-theme="light"] .option-count{color:#fffaf0}
  html[data-theme="light"] .dish-bottom,
  html[data-theme="light"] #half-workspace,
  html[data-theme="light"] .dish-sheet>.sheet-top,
  html[data-theme="light"] #cart>.sheet-top{background:var(--surface)}
  html[data-theme="light"] .dish-sheet .dish-bottom{box-shadow:0 -10px 18px #fffcf5e6}
  html[data-theme="light"] #half-workspace{box-shadow:0 9px 15px #fffcf5e6}
  html[data-theme="light"] .dish-sheet>.sheet-top,
  html[data-theme="light"] #cart>.sheet-top{box-shadow:0 5px 12px #fffcf5f5}
  html[data-theme="light"] #half-review{background:#82602b06}
  html[data-theme="light"] .contact-card,
  html[data-theme="light"] .hours-card{background:var(--surface)}
  html[data-theme="light"] .map-grid{background-color:#ebe6d5;background-image:linear-gradient(30deg,transparent 45%,#d1c7af 46%,#d1c7af 49%,transparent 50%),linear-gradient(110deg,transparent 45%,#c8bba0 46%,#c8bba0 50%,transparent 51%),linear-gradient(165deg,transparent 45%,#d9ceba 46%,#d9ceba 49%,transparent 50%)}
  html[data-theme="light"] .map-pin{color:#fffaf0}
  html[data-theme="light"] .map-label{background:#fffcf5ed}
  html[data-theme="light"] .taste-choice{background:var(--surface);border-color:#c8bba5}
  html[data-theme="light"] .taste-fire .taste-mark{color:#a14d31}
  html[data-theme="light"] .taste-garden .taste-mark{color:#536d35}
  html[data-theme="light"] .taste-ribbon-echo{-webkit-text-stroke-color:#82602b70}
  html[data-theme="light"] .receipt-stamp{color:#456331;border-color:#819565}
  /* Invert only the drawing. Multiply blends its opaque cutouts into the light paper. */
  html[data-theme="light"] .kitchen-logo{
    --kitchen-paper:var(--surface);
    background:var(--kitchen-paper);border-color:var(--line);color:var(--ink);
  }
  html[data-theme="light"] .kitchen-logo-feature::before{border-color:#82602b1a}
  html[data-theme="light"] :is(.kitchen-drawing,.kitchen-static){color:#f6f3eb;filter:grayscale(1) invert(1) contrast(1.25);mix-blend-mode:multiply}
  html[data-theme="light"] .kitchen-bubble{background:var(--raised);border-color:#b7a17b;color:var(--ink)}
  html[data-theme="light"] .kitchen-play-symbol{border-color:#b7a17b}

  html[data-theme="light"] .admin-page .login,
  html[data-theme="light"] .admin-page .card{background:var(--surface);border-color:var(--line);box-shadow:0 14px 40px #4937180d}
  html[data-theme="light"] .admin-page .head{background:#82602b06}
  html[data-theme="light"] .admin-page label,
  html[data-theme="light"] .admin-page .btn,
  html[data-theme="light"] .admin-page .statbox strong,
  html[data-theme="light"] .admin-page .simple-statbox strong,
  html[data-theme="light"] .admin-page .admin-tab:hover,
  html[data-theme="light"] .admin-page .admin-tab.active{color:var(--ink)}
  html[data-theme="light"] .admin-login button[type="submit"]{background:#ddc18a;color:#292516}
  html[data-theme="light"] .admin-page .status.ok,
  html[data-theme="light"] .admin-page .flash,
  html[data-theme="light"] .admin-page .item-change.plus{color:#2d683c}
  html[data-theme="light"] .admin-page .status.bad,
  html[data-theme="light"] .admin-page .flash.error,
  html[data-theme="light"] .admin-page .err,
  html[data-theme="light"] .admin-page .item-change.minus{color:#a33b30}
  html[data-theme="light"] .admin-page .status.gold{color:var(--gold)}
  html[data-theme="light"] .admin-page .simple-half{color:var(--gold)}
  html[data-theme="light"] .admin-page .status.neutral{color:var(--muted)}
  html[data-theme="light"] .admin-page :is(.hour-row,.delivery-row,.order-meta>div,.delivery-address,.order-note,.order-details,.order-item,.statbox,.rank-row,.simple-statbox,.simple-rank-row){border-color:var(--line)}
  html[data-theme="light"] .admin-page :is(.statbox,.simple-statbox,.order-meta>div){background:#82602b05}
  html[data-theme="light"] .admin-page :is(.simple-order,.simple-order-top,.simple-order-address,.simple-order-item){border-color:var(--line)}
  html[data-theme="light"] .admin-page .bar-track{background:#82602b14}
  html[data-theme="light"] .admin-page .catalog-manager{--catalog-line:var(--line)}
  html[data-theme="light"] .admin-page .catalog-save{background:#fffcf5f7}
  html[data-theme="light"] .admin-page .catalog-save button{background:#ddc18a;color:#292516}
  @media(min-width:700px){
    html[data-theme="light"] .hero-photo::after{background:linear-gradient(90deg,#f6f1e8f5 0%,#f6f1e89e 30%,transparent 70%),linear-gradient(0deg,var(--bg),transparent 45%,#f6f1e855)}
  }
  @media(min-width:900px){
    html[data-theme="light"] .hero-photo::after{background:linear-gradient(90deg,var(--bg) 0%,#f6f1e899 22%,transparent 50%),linear-gradient(0deg,var(--bg) 0%,transparent 23%,transparent 65%,#f6f1e855 100%)}
  }
}
@media print{[data-theme-toggle]{display:none!important}}
