html:root {
  --sidebar-w: 280px;
  --topbar-h: 72px;
  --bg: #f6f7f5;
  --panel: #ffffff;
  --panel-2: #f9faf8;
  --line: #dfe4dd;
  --text: #202620;
  --muted: #687169;
  --sidebar-bg: #195526;
  --sidebar-bg-2: #14461f;
  --radius-xl: 12px;
  --radius-lg: 10px;
  --radius-md: 8px;
  --shadow: 0 8px 24px rgba(25, 47, 29, 0.06);
}

*,
*::before,
*::after {
  letter-spacing: 0 !important;
}

body {
  background: var(--bg);
}

body .sidebar {
  background: var(--sidebar-bg);
}

body .sidebar-top {
  padding: 14px 16px 12px;
  background: transparent;
}

body .brand-row {
  gap: 8px;
}

body .brand-logo {
  width: auto;
  max-width: 188px;
  max-height: 92px;
  object-fit: contain;
  object-position: left center;
}

body .brand-meta strong {
  font-size: 15px;
}

body .brand-meta span {
  font-size: 11px;
}

body .sidebar-scroll {
  padding: 8px;
  min-height: 0;
  scrollbar-gutter: stable;
}

body .menu-section,
body .single-link {
  border-radius: 8px;
  margin-bottom: 4px;
}

body .menu-trigger,
body .single-link {
  min-height: 46px;
  padding: 10px 12px;
}

body .menu-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

body .menu-label {
  font-size: 13px;
  font-weight: 600;
}

body .menu-section.open {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.08);
}

body .submenu {
  margin: 0 4px 6px;
  padding: 4px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.08);
}

body .submenu a,
body .submenu button {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
}

body .submenu a.active,
body .single-link.active {
  background: #ffffff;
  color: #174e23;
  box-shadow: none;
}

body .sidebar-bottom {
  padding: 10px;
  flex: 0 0 auto;
  min-height: 63px;
  position: relative;
  z-index: 2;
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.1);
}

body .logout-wide {
  min-height: 42px;
  border-radius: 8px;
  box-shadow: none;
}

body .topbar {
  height: var(--topbar-h);
  padding: 0 20px;
  background: rgba(246, 247, 245, 0.96);
  backdrop-filter: blur(12px);
}

body .topbar-title h1 {
  font-size: 20px;
  font-weight: 700;
}

body .topbar-title p {
  margin-top: 3px;
  font-size: 12px;
}

body .status-pill,
body .user-chip {
  border-radius: 8px;
  box-shadow: none;
}

body .status-pill {
  padding: 8px 10px;
  font-size: 12px;
}

body .avatar {
  border-radius: 7px;
  background: #f2b84b;
}

body .page {
  padding: 20px;
  gap: 16px;
}

body .panel,
body .settings-modal,
body .modal {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

body .btn,
body .icon-btn,
body .menu-btn {
  border-radius: 8px;
}

body .btn-primary {
  background: #78bd2b;
  color: #17320c;
  box-shadow: none;
}

body .btn:hover,
body .user-chip:hover,
body .single-link:hover,
body .submenu a:hover,
body .submenu button:hover {
  transform: none;
}

body :is(button, a, input, select, textarea):focus-visible {
  outline: 3px solid rgba(48, 123, 60, 0.22);
  outline-offset: 2px;
}

body .sushi-assistant-fab,
body .sushi-tour-fab {
  right: 18px;
  width: 48px;
  height: 48px;
  padding: 4px;
  justify-content: center;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(20, 54, 31, 0.14);
}

body .sushi-assistant-fab {
  bottom: max(18px, env(safe-area-inset-bottom) + 18px);
}

body .sushi-tour-fab {
  bottom: max(74px, env(safe-area-inset-bottom) + 74px);
}

body .sushi-avatar,
body .sushi-tour-icon {
  width: 38px;
  height: 38px;
  border-radius: 7px;
}

body .sushi-avatar svg {
  width: 30px;
  height: 30px;
}

body .sushi-fab-meta,
body .sushi-tour-copy {
  display: none;
}

body .products-page {
  gap: 14px;
}

body .products-page .products-hero {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid #4f9b36;
  border-radius: 8px;
  color: var(--text);
  background: #ffffff;
  box-shadow: none;
}

body .products-page .products-hero::before,
body .products-page .products-badge {
  display: none;
}

body .products-page .products-hero-row {
  align-items: center;
}

body .products-page .products-hero h2 {
  font-size: 22px;
  color: var(--text);
}

body .products-page .products-hero p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.55;
}

body .products-page .products-toolbar-panel,
body .products-page .products-panel {
  border-radius: 8px;
  border-color: var(--line);
  box-shadow: none;
}

body .products-page .products-toolbar-panel {
  padding: 12px;
}

body .products-page .search,
body .products-page .sort-select,
body .products-page .view-toggle {
  min-height: 44px;
  border-radius: 7px;
  box-shadow: none;
}

body .products-page .view-btn {
  height: 36px;
  min-width: 76px;
  border-radius: 5px;
}

body .products-page .products-panel {
  padding: 14px;
}

body .products-page #productsGrid.grid {
  gap: 12px;
}

body .products-page .product-card {
  min-height: 0;
  border-radius: 8px;
  border-color: var(--line);
  box-shadow: none;
}

body .products-page .product-card:hover {
  transform: none;
  border-color: #9db79f;
  box-shadow: 0 6px 18px rgba(25, 47, 29, 0.08);
}

body .products-page .product-image {
  height: auto;
  aspect-ratio: 4 / 3;
}

body .products-page .product-body {
  padding: 14px;
  gap: 8px;
}

body .products-page .product-card h3 {
  font-size: 17px;
}

body .products-page .meta {
  line-height: 1.55;
}

body .products-page .price {
  font-size: 22px;
}

body .products-page .badge {
  border-radius: 5px;
  padding: 5px 8px;
}

body .products-page .modal-backdrop,
body .settings-backdrop {
  background: rgba(18, 28, 20, 0.5);
}

body .products-page .edit-card,
body .products-page .upload-box,
body .products-page .preview,
body .products-page .result-list,
body .products-page .category-box,
body .products-page .switch-row,
body .products-page .recipe-shortcut-card {
  border-radius: 8px;
}

@media (min-width: 1500px) {
  body .products-page #productsGrid.grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1021px) and (max-height: 900px) {
  body .sidebar-top {
    padding: 10px 14px 8px;
  }

  body .brand-logo {
    max-width: 158px;
    max-height: 70px;
  }

  body .brand-meta strong {
    font-size: 14px;
  }

  body .brand-meta span {
    margin-top: 2px;
    font-size: 10px;
  }

  body .sidebar-scroll {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  body .menu-section,
  body .single-link {
    margin-bottom: 3px;
  }

  body .menu-trigger,
  body .single-link {
    min-height: 40px;
    padding: 8px 10px;
  }

  body .submenu a,
  body .submenu button {
    min-height: 32px;
    padding: 6px 9px;
  }
}

@media (max-width: 1100px) {
  html:root {
    --sidebar-w: 256px;
  }

  body .page {
    padding: 16px;
  }
}

@media (max-width: 980px) {
  body .topbar {
    padding: 0 14px;
  }

  body .page {
    padding: 14px;
  }
}

@media (max-width: 680px) {
  body .topbar {
    height: auto;
    min-height: var(--topbar-h);
    padding: 10px 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  body .topbar-left,
  body .topbar-right {
    width: 100%;
  }

  body .topbar-right {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  body .user-chip {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  body .products-page .products-hero {
    padding: 16px;
  }

  body .products-page .products-hero-row {
    display: grid;
  }

  body .products-page .products-hero-actions,
  body .products-page .products-hero-actions .btn {
    width: 100%;
  }

  body .products-page .products-toolbar-panel,
  body .products-page .products-panel {
    padding: 10px;
  }

  body .products-page .toolbar,
  body .products-page .toolbar-right {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  body .products-page .search {
    flex: none;
    width: 100%;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
  }

  body .sushi-assistant-fab,
  body .sushi-tour-fab {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom) + 12px);
  }

  body .sushi-tour-fab {
    right: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
