:root {
  color-scheme: light;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: #f4f6f8;
  color: #20242a;
}
body {
  margin: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #17202a;
  color: white;
}
.brand, .topbar a {
  color: white;
  text-decoration: none;
}
.topbar nav {
  display: flex;
  gap: 16px;
}
main {
  padding: 24px;
}
.narrow {
  max-width: 520px;
  margin: 48px auto;
  background: white;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  padding: 24px;
}
.center {
  text-align: center;
}
.stack {
  display: grid;
  gap: 14px;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
input, select, textarea, button, .button {
  font: inherit;
  border-radius: 6px;
}
input, select, textarea {
  border: 1px solid #cbd5df;
  padding: 10px 12px;
}
button, .button {
  border: 0;
  background: #1677c5;
  color: white;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
}
button.outline {
  background: white;
  color: #17202a;
  border: 1px solid #cbd5df;
}
button.ghost {
  background: transparent;
  color: inherit;
  font-size: 24px;
}
.alert {
  padding: 12px;
  border-radius: 6px;
  background: #e8f4ff;
}
.danger {
  background: #ffe9e9;
  color: #9b1c1c;
}
.muted {
  color: #687382;
}
.hidden {
  display: none !important;
}
.menu-shell {
  max-width: 1180px;
  margin: 0 auto;
}
.menu-head, .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.status-row {
  display: flex;
  gap: 8px;
  margin: 12px 0 20px;
}
.status-row span {
  display: none;
  padding: 8px 12px;
  border-radius: 6px;
  background: #edf2f7;
}
.adisyon-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 20px;
  padding: 12px;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: white;
}
.adisyon-panel p {
  margin: 0;
}
.menu-group {
  margin: 24px 0;
  background: white;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  overflow: hidden;
}
.menu-group > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #dfe5ec;
}
.menu-group h2 {
  padding: 0 18px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  padding: 18px;
}
.product-card {
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  padding: 12px;
}
.product-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #edf2f7;
  border-radius: 6px;
}
.image-upload {
  max-width: 760px;
}
.image-slot {
  display: grid;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #dfe5ec;
}
.image-slot h2 {
  margin: 0;
  font-size: 20px;
}
.image-preview {
  width: min(300px, 100%);
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #edf2f7;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
}
.image-preview.wide {
  width: 100%;
  aspect-ratio: 10 / 3;
}
.image-preview.group {
  width: 100%;
  aspect-ratio: 9 / 4;
}
.image-drop {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 2px dashed #b8c4d2;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.image-drop:hover,
.image-drop:focus,
.image-drop.is-dragover {
  border-color: #1677c5;
  background: #f5fbff;
}
.image-drop.is-unsaved {
  border-color: #c98900;
  box-shadow: 0 0 0 3px rgba(201, 137, 0, .16);
}
.image-drop.is-error {
  border-color: #9b1c1c;
  box-shadow: 0 0 0 3px rgba(155, 28, 28, .12);
}
.image-drop .image-preview,
.image-canvas {
  background: #ffffff;
}
.image-canvas {
  display: block;
}
.image-paste {
  justify-self: center;
}
.image-drop-note,
.image-status {
  margin: 0;
  text-align: center;
}
.image-drop-note {
  color: #687382;
  font-size: 14px;
  font-weight: 500;
}
.image-status {
  min-height: 18px;
  color: #8a5c00;
  font-weight: 700;
}
.image-status:empty {
  display: none;
}
.image-drop.is-error .image-status {
  color: #9b1c1c;
}
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 100vw);
  background: white;
  border-left: 1px solid #dfe5ec;
  padding: 18px;
  transform: translateX(105%);
  transition: transform .18s ease;
  z-index: 30;
  overflow: auto;
}
.drawer.show {
  transform: translateX(0);
}
.drawer-head, .cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cart-item {
  border-bottom: 1px solid #e1e7ef;
  padding: 10px 0;
}
dialog {
  border: 0;
  border-radius: 8px;
  padding: 0;
  width: min(560px, 94vw);
}
.modal-card {
  padding: 18px;
  display: grid;
  gap: 14px;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}
th, td {
  border-bottom: 1px solid #dfe5ec;
  padding: 10px;
  text-align: left;
}
.drag-handle {
  width: 32px;
  height: 32px;
  padding: 0;
  background: white;
  color: #687382;
  border: 1px solid #cbd5df;
  cursor: grab;
}
[data-sortable-row].is-dragging {
  opacity: .45;
}
[data-sortable-list].is-saving {
  opacity: .75;
}
[data-sortable-list].is-error {
  outline: 3px solid rgba(155, 28, 28, .18);
}
.switch {
  display: inline-block;
  position: relative;
  width: 44px;
  height: 24px;
  margin: 0;
}
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch span {
  position: absolute;
  inset: 0;
  border: 1px solid #cbd5df;
  border-radius: 999px;
  background: #dfe5ec;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.switch span::before {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
  content: "";
  transition: transform .15s ease;
}
.switch input:checked + span {
  border-color: #1677c5;
  background: #1677c5;
}
.switch input:checked + span::before {
  transform: translateX(20px);
}
.switch input:disabled + span {
  cursor: wait;
  opacity: .6;
}
.switch.is-error span {
  border-color: #9b1c1c;
  box-shadow: 0 0 0 3px rgba(155, 28, 28, .12);
}
.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.panel-grid article {
  background: white;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  padding: 16px;
}
@media (max-width: 700px) {
  .topbar, .menu-head, .row {
    align-items: stretch;
    flex-direction: column;
  }
  main {
    padding: 12px;
  }
}
