/* YIWEN TASTE: shared foundations and responsive components.
   Component rules live here; specialised workflow rules remain in styles/operations. */
:root {
  color-scheme: dark;
  --bg: #090f0e;
  --surface: #111c18;
  --surface-raised: #17251f;
  --jade: #123c32;
  --copper: #c99a61;
  --ember: #d87942;
  --text: #f2ece2;
  --muted: #b5c0b7;
  --line: #2c3b32;
  --font: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  --display: "Noto Serif SC", "Songti SC", SimSun, serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --max: 1280px;
  --container-wide: 1440px;
  --container-narrow: 760px;
  --gutter: 32px;
  --radius: 8px;
  --radius-small: 4px;
  --shadow: 0 4px 16px #0002;
  --text-h1: 36px;
  --text-h2: 26px;
  --text-h3: 18px;
}
html {
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 var(--font);
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}
h1 {
  font: 500 var(--text-h1)/1.3 var(--display);
}
h2 {
  font: 500 var(--text-h2)/1.4 var(--display);
}
h3 {
  font-size: var(--text-h3);
  line-height: 1.45;
}
small {
  font-size: 12px;
}
.wrap,
.container {
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  margin-inline: auto;
}
.container-wide,
.workspace.admin-workspace {
  --max: var(--container-wide);
}
.narrow,
.container-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
}
.wrap .wrap {
  width: 100%;
}
.section {
  padding-block: var(--space-12);
}
.page-section {
  padding-block: var(--space-8) var(--space-16);
  min-height: 60svh;
}
.page-heading {
  padding: 0 0 var(--space-8);
}
.page-heading h1 {
  margin-top: var(--space-2);
}
.page-heading p {
  margin-top: var(--space-3);
  max-width: 680px;
}
.eyebrow {
  display: block;
  color: var(--copper);
  font: 500 11px/1.5 var(--font);
  letter-spacing: 0.16em;
}
.section-head,
.work-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
.section-head h2 {
  margin-top: var(--space-2);
}
.section-head p {
  margin-top: var(--space-2);
}
.work-heading {
  flex-wrap: wrap;
}
.work-heading h1 {
  font: 500 28px/1.35 var(--font);
  margin-top: var(--space-2);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #e4c199;
  min-height: 44px;
  font-size: 14px;
}
.text-link:hover {
  color: var(--text);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 10px var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--text);
  font: 500 14px/1.4 var(--font);
  text-align: center;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button:hover {
  background: var(--surface-raised);
  border-color: #6d7765;
}
.button-primary {
  background: var(--copper);
  color: #10170f;
  border-color: var(--copper);
}
.button-primary:hover {
  background: #dbae75;
  color: #10170f;
}
.button-small {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13px;
}
.button-ghost {
  border-color: #718073;
}
.button-danger {
  color: #f4aa96;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  background: transparent;
}
.icon-button:hover {
  background: var(--surface-raised);
}
.icon-button .count {
  position: absolute;
  right: 0;
  top: 0;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--copper);
  color: var(--bg);
  font-size: 11px;
  line-height: 18px;
}
input,
select,
textarea {
  border: 1px solid #526356;
  border-radius: var(--radius-small);
  background: #0d1813;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
  max-width: 100%;
  min-width: 0;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select {
  min-height: 44px;
}
textarea {
  min-height: 112px;
  resize: vertical;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #e5bc82;
  outline-offset: 3px;
}
.site-header {
  position: relative;
  z-index: 15;
  height: 80px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  height: 100%;
  gap: var(--space-6);
}
.wordmark.brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 164px;
  gap: 2px;
  padding: 0;
  background: transparent;
  line-height: 1;
  letter-spacing: normal;
}
.brand-art-crop {
  display: block;
  width: 100%;
  aspect-ratio: 1000/245;
  overflow: hidden;
}
.brand-art-crop .brand-logo {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}
.brand-english {
  color: var(--copper);
  font: 700 10px/1.2 var(--font);
  letter-spacing: 1.5px;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: var(--space-6);
  margin-inline: auto;
}
.main-nav a {
  display: flex;
  align-items: center;
  position: relative;
  height: 100%;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--copper);
}
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--copper);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
  font-size: 13px;
}
.language-button {
  min-height: 44px;
  background: none;
  border: 0;
  padding: 8px;
  font-size: 13px;
}
.header-cta {
  margin-left: 8px;
  white-space: nowrap;
}
.mobile-menu-button {
  display: none;
}
.header-user {
  display: inline-flex;
  gap: var(--space-2);
  width: auto;
  flex-basis: auto;
  white-space: nowrap;
  padding-inline: var(--space-2);
}
.main-nav .mobile-nav-extra {
  display: none;
}
.artisan-grid + .work-panel {
  margin-top: var(--space-8);
}
.admin-site-header .header-inner > strong {
  font-size: 15px;
  font-weight: 500;
}
.admin-site-header .header-actions {
  gap: var(--space-4);
}
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 460px;
  background: var(--surface);
}
.hero-image {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center 45%;
  z-index: -3;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    90deg,
    #090f0ef2 0%,
    #090f0ed6 35%,
    #090f0e10 80%
  );
}
.hero-copy {
  padding-block: 48px 80px;
  max-width: 580px;
}
.hero h1 {
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.45;
  margin: var(--space-4) 0;
}
.hero h1 em {
  font-style: normal;
  color: #e1b880;
}
.hero p {
  max-width: 460px;
  line-height: 1.8;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.hero-bottom {
  position: absolute;
  bottom: 16px;
  inset-inline: 0;
}
.hero-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.hero-caption {
  color: var(--muted);
}
.hero-caption b {
  color: var(--copper);
  margin-right: 12px;
  font-weight: 500;
}
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}
.hero-scroll .icon {
  width: 16px;
  transform: rotate(90deg);
}
.home-categories {
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--line);
}
.category-entry-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
}
.category-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 64px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
}
.category-entry:hover {
  border-color: var(--copper);
}
.category-entry .icon {
  width: 16px;
  color: var(--copper);
}
.home-food {
  border-top: 1px solid var(--line);
}
.artisan-grid,
.dish-grid,
.compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
.artisan-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.artisan-card,
.dish-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.15s;
}
.artisan-card {
  display: block;
}
.artisan-card:hover,
.dish-card:hover {
  border-color: #69765e;
}
.card-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.card-frame > .portrait {
  width: 100%;
  aspect-ratio: 4/3;
  height: auto;
}
.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 16px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.card-origin {
  display: block;
  padding: 12px 16px 0;
  font-size: 12px;
  color: var(--copper);
}
.artisan-card-body {
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.artisan-card-body > .eyebrow {
  display: none;
}
.artisan-card-body h3 {
  font: 500 18px/1.45 var(--font);
  margin-bottom: 8px;
}
.artisan-card-body p {
  font-size: 13px;
  margin-top: 12px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}
.tags > span {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 2px 6px;
  color: var(--muted);
  font-size: 11px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: auto;
  color: var(--copper);
  font-size: 13px;
}
.card-bottom .icon {
  width: 16px;
}
.portrait-shade,
.card-shine {
  display: none;
}
.identity-image-label {
  position: absolute;
  top: 44px;
  left: 12px;
  background: #090f0ed9;
  color: var(--text);
  padding: 4px 8px;
  font-size: 11px;
}
.dish-image-link {
  position: relative;
  display: block;
  overflow: hidden;
}
.food-photo {
  position: relative;
  overflow: hidden;
  background-image: none;
}
.food-photo:not(.uploaded-food)::before {
  content: "";
  position: absolute;
  width: 100%;
  aspect-ratio: 1;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background: url("./assets/food.png") var(--food-position, 0% 0%) / 300% 200%
    no-repeat;
}
.dish-image-link .food-photo {
  aspect-ratio: 4/3;
}
.dish-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  background: #090f0ee6;
  color: var(--text);
  border-radius: var(--radius-small);
  font-size: 11px;
}
.dish-image-action {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #090f0ed9;
  color: var(--copper);
  border-radius: var(--radius-small);
}
.dish-card-copy {
  padding: var(--space-4);
}
.dish-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.dish-title-row h3 {
  font: 500 18px/1.45 var(--font);
}
.price {
  font: 500 17px/1.5 var(--font);
  color: #e6c69b;
  white-space: nowrap;
}
.dish-card-copy > p {
  font-size: 13px;
  margin: 12px 0;
}
.dish-card-copy > .text-button {
  min-height: 44px;
}
.chef-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 8px;
  font-size: 13px;
}
.chef-link small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.chef-link strong {
  font-weight: 500;
}
.chef-link > .icon {
  margin-left: auto;
  width: 16px;
}
.avatar {
  width: 36px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-small);
}
.chapter-note {
  font-size: 13px;
  margin-top: 24px;
}
.home-empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  grid-column: 1/-1;
}
.brand-band {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 48px;
  padding-block: 48px;
  border-top: 1px solid var(--line);
}
.brand-band h2 {
  margin: 12px 0;
}
.brand-band p {
  max-width: 640px;
}
.brand-band .button {
  margin-top: 24px;
}
.brand-signature {
  justify-self: center;
}
.brand-signature .brand-link {
  width: 240px;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: #0c1511;
  padding: 40px 0 24px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}
.footer-main p {
  font-size: 13px;
  margin-top: 16px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}
.footer-group h3 {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}
.footer-group a {
  padding-block: 8px;
}
.footer-group a:hover {
  color: var(--copper);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.preview-ribbon {
  padding: 12px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.mobile-bottom-nav {
  display: none;
}
.filter-bar {
  padding: 24px 0;
  border-block: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.food-category-filter {
  display: block;
}
.filter-chips,
.category-primary,
.category-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}
.category-primary {
  margin-bottom: 16px;
}
.category-secondary {
  padding-block: 16px;
  border-top: 1px solid var(--line);
}
.chip {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
}
.chip:hover {
  border-color: #718073;
}
.chip.selected,
.chip[aria-pressed="true"] {
  background: #c99a611a;
  border-color: var(--copper);
  color: #e5c59b;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #526356;
  border-radius: var(--radius-small);
  padding-left: 12px;
  min-width: 0;
  width: 100%;
  max-width: 520px;
  background: #0d1813;
}
.search-box input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 0;
}
.search-box button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  background: transparent;
  color: var(--copper);
}
.results-line {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0 24px;
}
.empty-state {
  padding: 48px 16px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty-state > .icon {
  width: 40px;
  height: 40px;
  color: var(--copper);
  margin-bottom: 16px;
}
.empty-state h2 {
  font-size: 24px;
}
.empty-state p {
  max-width: 600px;
  margin: 12px auto 24px;
}
.workspace {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  padding-block: 32px 64px;
}
.workspace-main {
  min-width: 0;
}
.workspace-sidebar {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding-right: 16px;
}
.workspace-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  font-size: 14px;
}
.workspace-identity strong {
  display: block;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.workspace-identity small {
  display: block;
  color: var(--muted);
}
.workspace-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.workspace-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: var(--radius-small);
  font-size: 13px;
  color: var(--muted);
}
.workspace-sidebar nav a.active,
.workspace-sidebar nav a:hover {
  background: var(--surface-raised);
  color: var(--copper);
}
.workspace-sidebar nav .icon {
  width: 18px;
  height: 18px;
}
.workspace-switch {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.workspace-switch a {
  min-height: 32px;
}
.admin-workspace .workspace-sidebar {
  position: sticky;
  top: 16px;
  max-height: calc(100svh - 32px);
  overflow-y: auto;
}
.admin-mobile-menu {
  display: none;
}
.admin-workspace .workspace-switch {
  display: none;
}
.work-panel,
.panel {
  min-width: 0;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-wrap: anywhere;
}
.work-panel h2,
.panel h2 {
  font: 500 20px/1.4 var(--font);
  margin-bottom: 16px;
}
.work-panel > p {
  margin-block: 12px;
}
.work-panel > .button {
  margin-top: 16px;
}
.work-panel summary {
  padding-block: 12px;
  cursor: pointer;
}
.work-panel details form {
  padding-top: 16px;
}
.account-welcome {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.account-welcome h2 {
  font-size: 24px;
  margin: 12px 0;
}
.account-welcome > .outline-word {
  display: none;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.quick-grid > a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;
}
.quick-grid strong {
  font-size: 16px;
  font-weight: 500;
}
.quick-grid span {
  font-size: 13px;
  color: var(--muted);
}
.stat-card {
  border: 1px solid var(--line);
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
}
.stat-card strong {
  display: block;
  font: 500 28px/1.3 var(--font);
  color: var(--copper);
  margin-top: 12px;
}
.stat-card span {
  font-size: 13px;
  color: var(--muted);
}
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.admin-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.admin-console h1 {
  font: 500 28px/1.35 var(--font);
}
.admin-console h2 {
  font: 500 20px/1.4 var(--font);
}
.admin-table-scroll {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.admin-table th,
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.admin-table th {
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-raised);
}
.admin-table a {
  text-decoration: underline;
}
.admin-table tbody tr:hover {
  background: var(--surface-raised);
}
.operation-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.operation-form .field,
.workspace-sidebar > .field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.operation-form input,
.operation-form textarea,
.operation-form select {
  width: 100%;
}
.operation-form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--copper);
}
.operation-form fieldset {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 16px;
}
.operation-form legend {
  padding: 0 8px;
  color: var(--copper);
}
.form-columns,
.operation-form .form-columns,
.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-actions,
.operation-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 16px;
}
.page-section:has(.auth-shell) {
  min-height: 65svh;
  padding-block: 48px;
  display: grid;
  place-items: center;
}
.auth-shell {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}
.auth-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}
.auth-card-heading h1 {
  font-size: 28px;
}
.auth-card-heading {
  margin-bottom: 24px;
}
.auth-card form {
  display: block;
  margin: 0;
}
.auth-card label {
  display: block;
  font-size: 14px;
  margin-bottom: 16px;
}
.auth-card input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 48px;
}
.auth-card .check-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
}
.auth-card .check-field input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--copper);
}
.auth-card a:not(.auth-provider):not(.button) {
  color: #e2b77e;
  text-underline-offset: 4px;
}
.auth-card .form-error:not(:empty) {
  color: #f1bb87;
  font-size: 13px;
  padding: 12px;
  border: 1px solid var(--copper);
}
.auth-card .form-actions .button,
.auth-card > .button {
  width: 100%;
}
.auth-card input:not([type="checkbox"]),
.auth-provider {
  border-radius: var(--radius-small);
}
.artisan-profile {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.profile-card {
  width: 100%;
}
.profile-copy h1 {
  font-size: 36px;
}
.profile-copy blockquote {
  font-size: 20px;
}
.profile-facts {
  gap: 24px;
}
.dish-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.dish-detail-copy h1 {
  font-size: 32px;
  margin-block: 16px;
}
.dish-detail-photo {
  position: static;
  border-radius: var(--radius);
  overflow: hidden;
}
.detail-price strong {
  font: 500 28px/1.4 var(--font);
}
.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.buy-row .button {
  flex: 1;
}
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}
.order-summary {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.profile-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
.profile-card-preview {
  position: sticky;
  top: 24px;
}
.profile-form-section {
  padding: 24px;
  border-radius: var(--radius);
}
.editor-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
}
.driver-workspace {
  width: min(calc(100% - var(--gutter) * 2), 1000px);
  margin: 32px auto;
}
.dispatch-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.dispatch-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.dispatch-metrics strong {
  display: block;
  margin-top: var(--space-2);
  font-size: 26px;
  font-weight: 500;
  color: var(--copper);
}
.breadcrumb,
.profile-facts {
  flex-wrap: wrap;
}
.dispatch-tasks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.dispatch-task {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-wrap: anywhere;
}
@media (max-width: 1024px) {
  :root {
    --gutter: 24px;
  }
  .header-inner {
    gap: 16px;
  }
  .main-nav {
    gap: 16px;
  }
  .header-cta {
    display: none;
  }
  .artisan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .workspace {
    grid-template-columns: 192px minmax(0, 1fr);
    gap: 24px;
  }
  .admin-columns,
  .dispatch-layout {
    grid-template-columns: 1fr;
  }
  .profile-editor-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .quick-grid > a {
    padding: 16px;
  }
  .category-entry-grid {
    gap: 8px;
  }
  .category-entry {
    padding: 12px;
  }
}
@media (max-width: 768px) {
  :root {
    --text-h1: 30px;
    --text-h2: 24px;
    --gutter: 24px;
  }
  .site-header {
    height: 72px;
  }
  .wordmark.brand-link {
    width: 144px;
  }
  .header-search {
    display: none;
  }
  .mobile-menu-button {
    display: inline-grid;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter);
  }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav a {
    min-height: 48px;
  }
  .main-nav .mobile-nav-extra {
    display: flex;
  }
  .main-nav a[aria-current="page"]::after {
    display: none;
  }
  .hero {
    min-height: 420px;
  }
  .hero-copy {
    max-width: 460px;
  }
  .artisan-grid,
  .dish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .category-entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .workspace-sidebar {
    border: 0;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--line);
  }
  .workspace-identity {
    padding-bottom: 16px;
  }
  .workspace-sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .workspace-sidebar nav a {
    padding: 8px;
    font-size: 12px;
  }
  .workspace-switch {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    gap: 16px;
  }
  .admin-workspace .workspace-sidebar {
    position: static;
    max-height: none;
  }
  .admin-workspace .workspace-sidebar nav,
  .admin-workspace .workspace-identity {
    display: none;
  }
  .admin-mobile-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
  }
  .admin-mobile-menu select {
    flex: 1;
    min-width: 0;
  }
  .admin-site-header {
    height: auto;
  }
  .admin-site-header .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 12px;
  }
  .admin-site-header .header-inner > strong {
    margin-left: auto;
    font-size: 13px;
  }
  .admin-site-header .header-actions {
    justify-content: flex-end;
    width: 100%;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .brand-band {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .brand-signature {
    justify-self: start;
  }
  .cart-layout,
  .dish-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .order-summary {
    position: static;
  }
  .artisan-profile {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
  }
  .profile-copy h1 {
    font-size: 28px;
  }
  .profile-editor-layout {
    grid-template-columns: 1fr;
  }
  .profile-card-preview {
    position: static;
    max-width: 320px;
  }
}
@media (max-width: 480px) {
  :root {
    --gutter: 16px;
    --text-h1: 28px;
    --text-h2: 22px;
  }
  .header-inner {
    gap: 8px;
  }
  .wordmark.brand-link {
    width: 128px;
  }
  .brand-english {
    font-size: 9px;
  }
  .header-actions {
    gap: 0;
  }
  .header-user {
    display: none;
  }
  .section {
    padding-block: 32px;
  }
  .page-section,
  .workspace {
    padding-block: 24px 48px;
  }
  .page-heading {
    padding-bottom: 24px;
  }
  .section-head {
    gap: 12px;
    flex-wrap: wrap;
  }
  .section-head .text-link {
    font-size: 13px;
  }
  .hero {
    min-height: 430px;
  }
  .hero-image {
    object-position: 60% center;
  }
  .hero::before {
    background: linear-gradient(90deg, #090f0ee8, #090f0e60);
  }
  .hero-copy {
    padding-block: 32px 80px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 14px;
  }
  .hero-caption {
    font-size: 10px;
  }
  .hero-scroll {
    font-size: 11px;
  }
  .category-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-entry {
    min-height: 56px;
    font-size: 13px;
  }
  .home-categories {
    padding-block: 24px;
  }
  .artisan-grid,
  .dish-grid,
  .compact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card-frame > .portrait {
    aspect-ratio: 3/2;
  }
  .dish-image-link .food-photo {
    aspect-ratio: 3/2;
  }
  .category-primary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .category-primary .chip {
    padding-inline: 8px;
  }
  .chip {
    font-size: 13px;
  }
  .category-secondary .chip {
    flex: 0 1 auto;
  }
  .filter-chips {
    gap: 8px;
  }
  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer {
    padding-block: 32px 24px;
  }
  .preview-ribbon {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
    font-size: 11px;
  }
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 30;
    display: flex;
    justify-content: space-around;
    background: #0c1912fa;
    border-top: 1px solid var(--line);
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  }
  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 44px;
    min-width: 56px;
    color: var(--muted);
    font-size: 11px;
  }
  .mobile-bottom-nav a.active {
    color: var(--copper);
  }
  .work-panel,
  .panel,
  .stat-card,
  .dispatch-task {
    padding: 16px;
  }
  .work-heading h1,
  .admin-console h1 {
    font-size: 24px;
  }
  .work-panel h2 {
    font-size: 18px;
  }
  .admin-kpis,
  .dispatch-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .stat-card strong {
    font-size: 24px;
  }
  .form-columns,
  .operation-form .form-columns,
  .permission-grid,
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .form-actions > .button {
    flex: 1;
  }
  .auth-card {
    padding: 24px 16px;
  }
  .page-section:has(.auth-shell) {
    padding-block: 24px;
  }
  .auth-card-heading h1 {
    font-size: 26px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .artisan-profile {
    grid-template-columns: 1fr;
  }
  .profile-card {
    max-width: 320px;
    margin-inline: auto;
  }
  .dish-detail-copy h1 {
    font-size: 28px;
  }
  .profile-form-section {
    padding: 16px;
  }
  .empty-state {
    padding: 32px 16px;
  }
  .empty-state h2 {
    font-size: 22px;
  }
  .empty-state p {
    font-size: 14px;
  }
  .admin-site-header .header-actions {
    gap: 12px;
    font-size: 12px;
  }
  .driver-workspace {
    margin-block: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
