:root {
  --zk-ink: #201a17;
  --zk-ink-soft: #665b53;
  --zk-muted: #95877d;
  --zk-line: #eadfd3;
  --zk-line-strong: #d7c7b6;
  --zk-paper: #fffaf2;
  --zk-panel: #fffdf8;
  --zk-panel-2: #f7efe3;
  --zk-brand: #b6342b;
  --zk-brand-dark: #8f261f;
  --zk-brass: #b8843f;
  --zk-jade: #2d8a68;
  --zk-blue: #3d6689;
  --zk-warning: #c87722;
  --zk-danger: #b6342b;
  --zk-shadow: 0 18px 48px rgba(55, 36, 20, .12);
  --zk-radius: 8px;
  --zk-radius-lg: 10px;
  --zk-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  --zk-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--zk-paper); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--zk-ink);
  background:
    linear-gradient(135deg, rgba(184, 132, 63, .12), transparent 28%),
    radial-gradient(circle at 18% 12%, rgba(182, 52, 43, .08), transparent 32%),
    var(--zk-paper);
  font-family: var(--zk-sans);
  letter-spacing: 0;
}

button, input, textarea, select { font: inherit; }

button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }

button { letter-spacing: 0; }

a { color: inherit; }

.zk-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 24px;
}

.zk-mobile-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 16px;
}

.zk-mobile-frame {
  min-height: 100vh;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

.zk-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.zk-logo-mark {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
}

.zk-logo-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.zk-wordmark {
  font-family: var(--zk-serif);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.zk-slogan {
  color: currentColor;
  opacity: .66;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.zk-hero-brand {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.zk-hero-brand .zk-logo-mark {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.zk-hero-brand .zk-wordmark { font-size: 30px; }

.zk-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 24px;
  color: #fffaf2;
  background:
    linear-gradient(135deg, rgba(32, 26, 23, .96), rgba(92, 36, 24, .96)),
    var(--zk-ink);
  border-bottom: 1px solid rgba(255, 250, 242, .12);
}

.zk-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -46px 34%;
  height: 128px;
  border: 1px solid rgba(255, 250, 242, .16);
  transform: rotate(-4deg);
  pointer-events: none;
}

.zk-kicker {
  color: var(--zk-brass);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.zk-title {
  margin: 8px 0 0;
  font-family: var(--zk-serif);
  font-size: clamp(28px, 7vw, 48px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
}

.zk-subtitle {
  margin: 10px 0 0;
  max-width: 620px;
  color: rgba(255, 250, 242, .76);
  font-size: 14px;
  line-height: 1.7;
}

.zk-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 12px 16px;
  color: #fffaf2;
  background: rgba(32, 26, 23, .96);
  border-bottom: 1px solid rgba(255, 250, 242, .12);
  backdrop-filter: blur(18px);
}

.zk-topbar-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.zk-topbar-brand .zk-logo-mark {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 12px;
}

.zk-topbar-title {
  min-width: 0;
  font-family: var(--zk-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.zk-topbar-note {
  display: block;
  margin-top: 3px;
  color: rgba(255, 250, 242, .66);
  font-family: var(--zk-sans);
  font-size: 12px;
  font-weight: 500;
}

.zk-back {
  appearance: none;
  border: 1px solid rgba(255, 250, 242, .22);
  background: rgba(255, 250, 242, .08);
  color: #fffaf2;
  min-width: 38px;
  height: 38px;
  border-radius: 999px;
  cursor: pointer;
}

.zk-card {
  background: rgba(255, 253, 248, .92);
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius-lg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .65), var(--zk-shadow);
}

.zk-card-pad { padding: 18px; }

.zk-section-title {
  margin: 0 0 12px;
  color: var(--zk-ink);
  font-size: 15px;
  font-weight: 800;
}

.zk-section-note {
  margin: -6px 0 14px;
  color: var(--zk-muted);
  font-size: 12px;
  line-height: 1.6;
}

.zk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: var(--zk-radius);
  background: var(--zk-ink);
  color: #fffaf2;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.zk-button:hover { transform: translateY(-1px); }
.zk-button:active { transform: translateY(0); }
.zk-button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.zk-button.primary { background: var(--zk-brand); }
.zk-button.success { background: var(--zk-jade); }
.zk-button.warning { background: var(--zk-warning); }
.zk-button.quiet {
  border-color: var(--zk-line-strong);
  background: rgba(255, 250, 242, .76);
  color: var(--zk-ink);
}
.zk-button.ghost {
  border-color: rgba(255, 250, 242, .22);
  background: rgba(255, 250, 242, .08);
  color: #fffaf2;
}
.zk-button.block { width: 100%; }

/* AI 功能入口横幅:比普通按钮醒目,品牌红渐变 + 标题/副标题双行 */
.zk-ai-entry {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 14px;
  padding: 13px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 242, .22);
  border-radius: var(--zk-radius-lg);
  background: linear-gradient(120deg, var(--zk-brand) 0%, var(--zk-brand-dark) 58%, #5f2a12 100%);
  color: #fffaf2;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(143, 38, 31, .3);
  transition: transform .12s ease, box-shadow .12s ease;
}
.zk-ai-entry::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 86% 0%, rgba(184, 132, 63, .4), transparent 46%);
  pointer-events: none;
}
.zk-ai-entry:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(143, 38, 31, .36); }
.zk-ai-entry:active { transform: translateY(0); }
.zk-ai-entry .ic { font-size: 26px; line-height: 1; }
.zk-ai-entry b {
  display: block;
  font-family: var(--zk-serif);
  font-size: 17px;
  letter-spacing: 1px;
}
.zk-ai-entry small { display: block; margin-top: 3px; color: rgba(255, 250, 242, .78); font-size: 12px; }
.zk-ai-entry .go { margin-left: auto; font-size: 22px; opacity: .85; }
.zk-button.small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.zk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(184, 132, 63, .16);
  color: var(--zk-brass);
  font-size: 11px;
  font-weight: 900;
}

.zk-field,
.zk-select,
.zk-textarea {
  width: 100%;
  border: 1px solid var(--zk-line-strong);
  border-radius: var(--zk-radius);
  background: rgba(255, 253, 248, .96);
  color: var(--zk-ink);
  outline: none;
}

.zk-field,
.zk-select { min-height: 42px; padding: 0 12px; }

.zk-textarea {
  min-height: 220px;
  padding: 12px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.zk-field:focus,
.zk-select:focus,
.zk-textarea:focus {
  border-color: var(--zk-brass);
  box-shadow: 0 0 0 3px rgba(184, 132, 63, .16);
}

.zk-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--zk-panel-2);
  color: var(--zk-ink-soft);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.zk-status.pending,
.zk-status.placed { background: #fff1d9; color: #9b5b13; }
.zk-status.confirmed,
.zk-status.called,
.zk-status.accepted { background: #e7f3ed; color: #17694b; }
.zk-status.seated,
.zk-status.done { background: #e8f0f7; color: #2b577a; }
.zk-status.cancelled,
.zk-status.no_show,
.zk-status.passed { background: #ece7e1; color: #7e7168; }

.zk-empty {
  padding: 18px;
  border: 1px dashed var(--zk-line-strong);
  border-radius: var(--zk-radius);
  color: var(--zk-muted);
  background: rgba(247, 239, 227, .42);
  font-size: 13px;
  line-height: 1.6;
}

.zk-muted { color: var(--zk-muted); }

.zk-powered {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 18px 16px;
  color: var(--zk-muted);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.zk-powered a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.zk-powered a:hover,
.zk-powered a:focus-visible {
  color: var(--zk-ink-soft);
  text-decoration: underline;
}

.zk-powered::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 7px;
  background: url("/static/zhike-logo.svg") center / contain no-repeat;
  box-shadow: 0 4px 10px rgba(55, 36, 20, .08);
}

.zk-powered b {
  color: var(--zk-ink-soft);
  font-size: 14px;
  font-weight: 900;
}

.zk-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.zk-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius);
  background: rgba(255, 253, 248, .78);
}

button.zk-list-row {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

button.zk-list-row:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.type.sel {
  border-color: rgba(182, 52, 43, .42);
  background: rgba(182, 52, 43, .08);
}

.zk-row-main { min-width: 0; flex: 1; }

.zk-row-title {
  color: var(--zk-ink);
  font-size: 14px;
  font-weight: 800;
}

.zk-row-meta {
  margin-top: 4px;
  color: var(--zk-muted);
  font-size: 12px;
  line-height: 1.45;
}

.zk-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.zk-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--zk-line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 248, .8);
  color: var(--zk-ink-soft);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.zk-chip.sel {
  border-color: var(--zk-brand);
  background: rgba(182, 52, 43, .09);
  color: var(--zk-brand);
}

.zk-chip.full {
  opacity: .4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.zk-stepper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.zk-stepper button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--zk-line-strong);
  border-radius: 999px;
  background: var(--zk-panel);
  color: var(--zk-brand);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.zk-stepper .value {
  min-width: 30px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.zk-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: 320px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 250, 242, .18);
  border-radius: var(--zk-radius);
  background: rgba(32, 26, 23, .96);
  color: #fffaf2;
  font-size: 13px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .22);
}

/* Home */
.home-list { display: grid; gap: 16px; margin-top: 18px; }
.brand-card { overflow: hidden; }
.brand-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 0;
}
.brand-name {
  color: var(--zk-brass);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}
.branch-block { padding: 16px; }
.branch-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.branch-title b {
  font-family: var(--zk-serif);
  font-size: 22px;
  line-height: 1.15;
}
.branch-loc { margin-top: 5px; color: var(--zk-muted); font-size: 12px; }
.rating { color: var(--zk-brass); font-size: 13px; font-weight: 900; white-space: nowrap; }
.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.entry-action {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 11px;
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius);
  background: rgba(255, 253, 248, .78);
  color: var(--zk-ink);
  text-decoration: none;
  font-weight: 900;
}
.entry-action.primary {
  border-color: rgba(182, 52, 43, .26);
  background: linear-gradient(135deg, rgba(182, 52, 43, .12), rgba(255, 253, 248, .88));
  color: var(--zk-brand);
}
.entry-action.disabled { opacity: .42; pointer-events: none; }

/* Chat */
.chat-body {
  display: flex;
  flex-direction: column;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--zk-paper);
}

@supports (height: 100dvh) {
  .chat-body {
    height: 100dvh;
    min-height: 100dvh;
  }
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 16px;
}

.chat-body.chat-empty {
  height: auto;
  min-height: 100svh;
  overflow: visible;
}

.chat-body.chat-empty .chat-log {
  flex: 0 0 auto;
  overflow: visible;
  padding-bottom: 8px;
}

.chat-body.chat-empty .chat-compose {
  padding-top: 0;
}

.chat-intro {
  padding: 16px;
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius-lg);
  background: linear-gradient(135deg, rgba(255, 253, 248, .94), rgba(247, 239, 227, .7));
}
.chat-intro-title {
  font-family: var(--zk-serif);
  font-size: 22px;
  font-weight: 800;
}
.prompt-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.prompt-chip {
  border: 1px solid var(--zk-line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 248, .8);
  color: var(--zk-ink-soft);
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.msg {
  max-width: min(82%, 560px);
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.58;
  white-space: pre-wrap;
  font-size: 15px;
  box-shadow: 0 8px 28px rgba(55, 36, 20, .08);
}
.msg.me {
  align-self: flex-end;
  background: var(--zk-brand);
  color: #fffaf2;
  border-bottom-right-radius: 2px;
}
.msg.ai {
  align-self: flex-start;
  border: 1px solid var(--zk-line);
  background: var(--zk-panel);
  color: var(--zk-ink);
  border-bottom-left-radius: 2px;
}
.msg.topics {
  align-self: flex-start;
  max-width: 92%;
  box-shadow: none;
  border: 1px dashed var(--zk-line-strong);
  background: rgba(247, 239, 227, .52);
  color: var(--zk-muted);
  font-size: 12px;
}
.chat-compose {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
}
.chat-compose-inner {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--zk-line);
  border-radius: 999px;
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 -10px 36px rgba(55, 36, 20, .08);
}
.chat-compose input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 10px;
  color: var(--zk-ink);
}

/* Queue and reserve */
.queue-ticket {
  text-align: center;
  padding: 28px 18px;
}
.ticket-number {
  font-family: var(--zk-serif);
  color: var(--zk-brand);
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
}
.ticket-ahead {
  margin-top: 12px;
  color: var(--zk-ink-soft);
  font-size: 15px;
}
.ticket-ahead b { color: var(--zk-brand); font-size: 28px; }
.called-panel {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--zk-radius);
  background: var(--zk-jade);
  color: #fffaf2;
  font-size: 18px;
  font-weight: 900;
}
.soft-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  margin-top: 10px;
  padding: 0 14px;
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius);
  background: rgba(255, 253, 248, .86);
  color: var(--zk-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}
.reserve-step {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
}
.reserve-step span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--zk-line);
}
.reserve-step span.on { background: var(--zk-brand); }
.slot-group { margin-bottom: 14px; }
.slot-title { margin-bottom: 7px; font-size: 13px; font-weight: 900; color: var(--zk-ink-soft); }
.slotcell { margin-left: 5px; color: var(--zk-muted); font-size: 11px; }

/* Ordering */
.order-page { padding-bottom: 96px; }
.menu-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.cat {
  margin: 18px 0 8px;
  color: var(--zk-brass);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}
.dish {
  display: flex;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius);
  background: rgba(255, 253, 248, .88);
}
.dish img {
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--zk-panel-2);
}
.dish .body { flex: 1; min-width: 0; }
.dish .nm { color: var(--zk-ink); font-weight: 900; }
.dish .badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 5px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(182, 52, 43, .1);
  color: var(--zk-brand);
  font-size: 11px;
}
.dish .ds {
  margin: 5px 0;
  color: var(--zk-muted);
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dish .price {
  color: var(--zk-brand);
  font-size: 16px;
  font-weight: 900;
}
.dish .price small {
  color: var(--zk-muted);
  font-size: 12px;
  font-weight: 600;
}
.cartbar {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(calc(100% - 24px), 520px);
  min-height: 64px;
  padding: 10px 12px 10px 16px;
  border-radius: 999px;
  background: rgba(32, 26, 23, .96);
  color: #fffaf2;
  transform: translateX(-50%);
  box-shadow: 0 18px 48px rgba(32, 26, 23, .24);
}
.cartbar .sum { flex: 1; min-width: 0; }
.cartbar .sum b { display: block; font-size: 21px; line-height: 1; }
.cartbar .sum small { display: block; margin-top: 4px; color: rgba(255, 250, 242, .62); font-size: 12px; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: flex-end;
  background: rgba(32, 26, 23, .48);
}
.modal.on { display: flex; }
.sheet {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 18px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
  border-radius: 10px 10px 0 0;
  background: var(--zk-panel);
  box-shadow: 0 -18px 48px rgba(32, 26, 23, .2);
  /* 内容超过一屏(如 AI 配菜结果/长购物车)时在弹层内滚动,顶部不被顶出屏幕 */
  max-height: 86vh;
  max-height: 86dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.sheet h3 { margin: 0 0 12px; font-family: var(--zk-serif); font-size: 22px; }
.sheet .li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--zk-line);
  font-size: 14px;
}
.done { padding: 42px 18px; text-align: center; }
.done-mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e7f3ed;
  color: var(--zk-jade);
  font-size: 28px;
  font-weight: 900;
}

/* Admin */
.admin-body { background: #f2ece3; }
.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 16px 16px;
  background: var(--zk-ink);
  color: #fffaf2;
}
.admin-brand .zk-logo-mark { box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.admin-tagline { margin-top: 5px; color: rgba(255, 250, 242, .62); font-size: 12px; line-height: 1.35; }
.admin-nav {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 9px;
  border-radius: var(--zk-radius);
  color: rgba(255, 250, 242, .72);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.admin-nav a:hover { background: rgba(255, 250, 242, .08); color: #fffaf2; }
.admin-store { margin-top: 14px; }
.admin-store label {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 250, 242, .58);
  font-size: 12px;
  font-weight: 800;
}
.admin-main { min-width: 0; padding: 22px; }
.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.admin-title {
  margin: 0;
  font-family: var(--zk-serif);
  font-size: 30px;
  line-height: 1.1;
}
.admin-links { display: flex; flex-wrap: wrap; gap: 8px; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.metric {
  padding: 14px;
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius);
  background: rgba(255, 253, 248, .86);
}
.metric b {
  display: block;
  color: var(--zk-ink);
  font-size: 28px;
  line-height: 1;
}
.metric span {
  display: block;
  margin-top: 8px;
  color: var(--zk-muted);
  font-size: 12px;
  font-weight: 800;
}
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  gap: 16px;
  align-items: start;
}
.panel-stack { display: grid; gap: 16px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.panel-head h2 {
  margin: 0;
  font-size: 15px;
}
.topic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--zk-line);
}
.topic b { color: var(--zk-brand); }
.barwrap {
  width: 124px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--zk-line);
}
.bar,
.barfill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--zk-brand);
}
.chartrow {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}
.q {
  padding: 9px 0;
  border-bottom: 1px solid var(--zk-line);
  color: var(--zk-ink-soft);
  font-size: 13px;
  line-height: 1.5;
}
.sug {
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius);
  background: rgba(255, 253, 248, .8);
}
.sug .kind {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--zk-ink-soft);
  color: #fffaf2;
  font-size: 11px;
  font-weight: 900;
}
.sug .kind.add_menu_tag { background: var(--zk-jade); }
.sug .kind.append_policy { background: var(--zk-blue); }
.sug .kind.append_persona_note { background: var(--zk-brass); }
.sug .title { margin-left: 6px; font-weight: 900; }
.sug .reason { margin-top: 7px; color: var(--zk-muted); font-size: 12px; line-height: 1.55; }
.change { padding: 6px 0; color: var(--zk-ink-soft); font-size: 12px; }
.ok { margin-left: 10px; color: var(--zk-jade); font-size: 13px; font-weight: 800; }
.err { margin-top: 8px; color: var(--zk-danger); font-size: 13px; line-height: 1.5; }

@media (max-width: 860px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static;
    min-height: auto;
    padding: 18px 16px;
  }
  .admin-nav { grid-template-columns: repeat(3, 1fr); }
  .admin-main { padding: 16px; }
  .admin-head { flex-direction: column; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .zk-shell,
  .zk-mobile-shell { padding: 14px; }
  .zk-hero { padding: 24px 18px; }
  .zk-hero-brand { margin-bottom: 14px; }
  .zk-hero-brand .zk-logo-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
  .zk-hero-brand .zk-wordmark { font-size: 26px; }
  .zk-slogan {
    max-width: 230px;
    white-space: normal;
  }
  .zk-topbar-brand .zk-logo-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .action-grid { grid-template-columns: 1fr; }
  .entry-action { min-height: 52px; }
  .zk-list-row { align-items: flex-start; flex-direction: column; }
  .zk-row-actions { justify-content: flex-start; }
  .dish img {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
  }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .admin-nav { grid-template-columns: 1fr 1fr; }
  .chat-log { padding: 12px; }
  .chat-intro { padding: 14px; }
  .chat-intro-title { font-size: 21px; }
  .chat-body.chat-empty .chat-log { padding-bottom: 6px; }
  .msg { max-width: 90%; }
}
