/* ============================================================
 * 小食堂 · 日式定食屋风格
 * 米白和纸底 + 蓝染暖帘 + 朱色点缀 + 明朝体
 * ============================================================ */

:root {
  --paper:      #faf7f0;
  --paper-2:    #f3ede1;
  --card:       #fffdf8;
  --ink:        #2b2722;
  --ink-2:      #6c6358;
  --ink-3:      #9e9488;
  --line:       #e4dccd;
  --line-2:     #efe8db;

  --ai:         #33414f;   /* 藍 */
  --ai-deep:    #26313c;
  --shu:        #b04a2f;   /* 朱 */
  --shu-deep:   #93381f;
  --shu-soft:   #f7e9e2;
  --matcha:     #6f7f56;
  --ai-soft:    #e8ecef;

  --radius:     14px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 2px rgba(70,55,35,.05);
  --shadow:     0 2px 4px rgba(70,55,35,.05), 0 14px 30px -18px rgba(70,55,35,.28);
  --shadow-lg:  0 24px 60px -24px rgba(40,30,18,.42);

  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans:  "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  /* 和纸的细微纹理 */
  background-image:
    radial-gradient(circle at 20% 12%, rgba(176,74,47,.035), transparent 42%),
    radial-gradient(circle at 84% 78%, rgba(51,65,79,.04), transparent 46%),
    repeating-linear-gradient(0deg, rgba(120,100,70,.022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(120,100,70,.018) 0 1px, transparent 1px 4px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 118px;
}

body.is-locked { overflow: hidden; }
body.page-kitchen { padding-bottom: 44px; }

.wrap { max-width: 620px; margin: 0 auto; padding: 0 16px; }

/* ---------------- 暖帘（顶部帘招） ---------------- */
.noren {
  position: relative;
  background: linear-gradient(180deg, var(--ai) 0%, var(--ai-deep) 100%);
  color: #f4efe3;
  padding: 26px 20px 34px;
  margin-bottom: 16px;
  overflow: visible;
}
/* 蓝染布纹 */
.noren::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg,
      rgba(255,255,255,.055) 0 1px, transparent 1px 13%);
  background-size: 100% 100%;
  pointer-events: none;
}
/* 帘子下摆的圆弧 */
.noren::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -10px; height: 11px;
  background-image: radial-gradient(circle at 50% 0, var(--ai-deep) 0 7.5px, transparent 7.6px);
  background-size: 23px 11px;
  background-repeat: repeat-x;
}

.noren-inner {
  position: relative;
  max-width: 620px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}

.shop-kana {
  display: block;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .42em;
  color: rgba(244,239,227,.62);
  margin-bottom: 5px;
}

.shop-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: .16em;
  color: #fbf7ec;
}

.seal {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--shu);
  color: #fff6ee;
  font-family: var(--serif);
  font-size: 22px;
  border-radius: 7px;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.5), inset 0 0 0 1.5px rgba(255,255,255,.22);
  transform: rotate(2deg);
  cursor: pointer;              /* 连点 3 次进接单台（掌柜专用，页面上看不出来） */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* ---------------- 招呼语 / 公告 ---------------- */
.intro {
  margin: 0 0 18px;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.intro-hi {
  font-family: var(--serif);
  font-size: 17px; letter-spacing: .05em; color: var(--ink);
}
.intro-notice {
  font-size: 12px; color: var(--ink-3); letter-spacing: .02em;
}

/* ---------------- 分类标签 ---------------- */
.tabs {
  position: sticky; top: 0; z-index: 20;
  display: flex; gap: 4px;
  margin: 0 -16px 6px;
  padding: 10px 16px;
  background: rgba(250,247,240,.93);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: none;
  appearance: none; border: 0; background: transparent;
  font-family: var(--serif);
  padding: 7px 13px 8px;
  border-radius: 999px;
  font-size: 15px; letter-spacing: .1em;
  color: var(--ink-2);
  cursor: pointer;
  transition: color .18s, background .18s;
  position: relative;
}
.tab .tab-kana {
  display: block; font-size: 9px; letter-spacing: .18em;
  color: var(--ink-3); margin-top: 1px;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--shu); background: var(--shu-soft); }
.tab.is-active .tab-kana { color: rgba(176,74,47,.6); }

/* ---------------- 分类小标题 ---------------- */
.cat-head {
  display: flex; align-items: center; gap: 12px;
  margin: 26px 4px 10px;
}
.cat-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px; font-weight: 600;
  letter-spacing: .3em; color: var(--ink-2);
}
.cat-head .rule { flex: 1; height: 1px; background: var(--line); }
.cat-head .cat-kana {
  font-family: var(--serif); font-size: 10px;
  letter-spacing: .24em; color: var(--ink-3);
}

/* ---------------- 菜品行（点线引导） ---------------- */
.dish {
  width: 100%;
  appearance: none; border: 0; background: transparent;
  font: inherit; color: inherit; text-align: left;
  padding: 12px 12px 13px;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background .18s, transform .12s;
}
.dish + .dish { margin-top: 2px; }
.dish:hover { background: rgba(255,253,248,.9); }
.dish:active { transform: scale(.985); }

.dish-line { display: flex; align-items: baseline; gap: 8px; }

.dish-name {
  font-family: var(--serif);
  font-size: 17px; letter-spacing: .06em; color: var(--ink);
  flex: none; max-width: 62%;
  transition: color .18s;
}
.tag {
  flex: none;
  font-family: var(--serif);
  font-size: 10px; letter-spacing: .12em;
  color: var(--shu);
  border: 1px solid rgba(176,74,47,.4);
  border-radius: 3px;
  padding: 1px 5px 1.5px;
  transform: translateY(-2px);
}
.leader {
  flex: 1 1 auto; min-width: 14px;
  border-bottom: 1px dotted rgba(120,105,85,.42);
  transform: translateY(-3px);
}
.dish-price {
  flex: none;
  font-family: var(--serif);
  font-size: 16px; color: var(--ink-2); letter-spacing: .02em;
}
.dish-price i { font-style: normal; font-size: 11px; margin-right: 1px; opacity: .7; }

.dish-sub {
  margin-top: 4px;
  font-size: 12px; color: var(--ink-3); letter-spacing: .02em;
  display: flex; gap: 8px; align-items: baseline;
  padding-right: 8px;
}
.dish-kana {
  font-family: var(--serif);
  flex: none;
  color: rgba(51,65,79,.5);
  letter-spacing: .06em;
}
.dish-kana::after { content: "·"; margin-left: 8px; color: var(--ink-3); }
.dish-desc { flex: 1; min-width: 0; }

/* 已选状态 */
.dish.is-on { background: var(--card); box-shadow: var(--shadow-sm); }
.dish.is-on::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px;
  background: var(--shu); border-radius: 0 3px 3px 0;
}
.dish.is-on .dish-name { color: var(--shu-deep); }

/* 数量步进 */
.qty {
  flex: none;
  display: flex; align-items: center;
  border: 1px solid rgba(176,74,47,.3);
  background: var(--shu-soft);
  border-radius: 999px;
  color: var(--shu-deep);
  font-family: var(--serif);
  overflow: hidden;
  margin-left: 2px;
}
.qty button {
  appearance: none; border: 0; background: transparent;
  width: 30px; height: 27px;
  font-size: 15px; line-height: 1; color: var(--shu-deep);
  cursor: pointer; padding: 0;
  display: grid; place-items: center;
}
.qty button:active { background: rgba(176,74,47,.14); }
.qty span { min-width: 16px; text-align: center; font-size: 14px; }

/* 加菜的瞬间闪一下 */
@keyframes dishPulse {
  0%   { background: var(--shu-soft); }
  100% { background: transparent; }
}
.dish.pulse { animation: dishPulse .56s ease-out; }
.dish.is-on.pulse { animation: dishPulse .56s ease-out; }

/* ---------------- 底部购物栏 ---------------- */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(250,247,240,0) 0%, rgba(250,247,240,.92) 26%, var(--paper) 60%);
  pointer-events: none;
}
.cartbar-inner {
  pointer-events: auto;
  max-width: 620px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 8px 7px 20px;
  box-shadow: var(--shadow);
  transform: translateY(140%);
  transition: transform .32s cubic-bezier(.2,.9,.25,1);
}
.cartbar.is-on .cartbar-inner { transform: none; }

.cart-sum { flex: 1; min-width: 0; line-height: 1.25; }
.cart-count {
  font-size: 11px; color: var(--ink-3); letter-spacing: .08em; display: block;
}
.cart-total {
  font-family: var(--serif); font-size: 19px; color: var(--ink); letter-spacing: .02em;
}
.cart-total i { font-style: normal; font-size: 12px; opacity: .7; margin-right: 1px; }

.btn {
  appearance: none; border: 0;
  font-family: var(--serif); font-size: 15px; letter-spacing: .18em;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  transition: filter .18s, transform .12s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(180deg, var(--shu) 0%, var(--shu-deep) 100%);
  color: #fff8f2;
  box-shadow: 0 8px 18px -8px rgba(147,56,31,.75);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.btn-ghost {
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--paper-2); }

/* ---------------- 弹出层 ---------------- */
.sheet-mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(38,30,20,.42);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity .26s;
}
.sheet-mask.is-on { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  max-width: 620px; margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(102%);
  transition: transform .34s cubic-bezier(.2,.9,.25,1);
  max-height: 88vh;
  display: flex; flex-direction: column;
}
.sheet.is-on { transform: none; }
.sheet-grip {
  width: 38px; height: 4px; border-radius: 99px;
  background: var(--line); margin: 4px auto 14px; flex: none;
}
.sheet-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-2); flex: none;
}
.sheet-head h3 {
  margin: 0; font-family: var(--serif); font-size: 17px;
  font-weight: 600; letter-spacing: .2em;
}
.sheet-head .kana {
  font-family: var(--serif); font-size: 10px;
  letter-spacing: .22em; color: var(--ink-3); margin-left: 8px;
}
.sheet-body { overflow-y: auto; flex: 1; padding: 6px 0 4px; -webkit-overflow-scrolling: touch; }

.line-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px dotted var(--line);
}
.line-item:last-child { border-bottom: 0; }
.line-item .li-name { font-family: var(--serif); font-size: 15px; letter-spacing: .04em; flex: 1; min-width: 0; }
.line-item .li-unit { font-size: 11px; color: var(--ink-3); margin-left: 6px; }
.line-item .li-sum { font-family: var(--serif); font-size: 15px; color: var(--ink-2); min-width: 54px; text-align: right; }

.note-field { margin: 14px 2px 2px; }
.note-field label {
  display: block; font-family: var(--serif);
  font-size: 12px; letter-spacing: .2em; color: var(--ink-2); margin-bottom: 7px;
}
.note-field textarea {
  width: 100%; resize: none;
  font: inherit; font-size: 14px; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.5;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.note-field textarea:focus {
  border-color: rgba(176,74,47,.45);
  box-shadow: 0 0 0 3px rgba(176,74,47,.09);
}
.note-field textarea::placeholder { color: var(--ink-3); }

.sheet-foot { flex: none; padding-top: 14px; border-top: 1px solid var(--line-2); }
.total-row {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px;
}
.total-row .lbl { font-size: 12px; color: var(--ink-2); letter-spacing: .16em; font-family: var(--serif); }
.total-row .val { font-family: var(--serif); font-size: 26px; letter-spacing: .02em; }
.total-row .val i { font-style: normal; font-size: 14px; opacity: .7; margin-right: 2px; }
.sheet-foot .btn { width: 100%; padding: 15px; font-size: 16px; }

/* ---------------- 下单成功 ---------------- */
.done-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(250,247,240,.97);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  padding: 24px;
}
.done-mask.is-on { opacity: 1; pointer-events: auto; }
.done-card { max-width: 340px; text-align: center; }
.done-mark {
  width: 76px; height: 76px; margin: 0 auto 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--shu-soft);
  border: 1px solid rgba(176,74,47,.3);
  font-family: var(--serif); font-size: 30px; color: var(--shu);
  animation: pop .5s cubic-bezier(.2,1.3,.4,1);
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.done-title {
  margin: 0 0 8px;
  font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .22em;
}
.done-sub { margin: 0 0 20px; font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.done-no {
  display: inline-block; font-family: var(--serif);
  font-size: 13px; letter-spacing: .14em; color: var(--ink-2);
  border: 1px dashed var(--line); border-radius: 8px;
  padding: 7px 16px; margin-bottom: 22px;
}
.done-status {
  font-size: 12px; color: var(--ink-3); letter-spacing: .08em;
  margin-bottom: 22px; min-height: 18px;
}
.done-status.is-live { color: var(--matcha); }
.done-card .btn { width: 100%; }

/* ---------------- 轻提示 ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 108px; z-index: 95;
  transform: translate(-50%, 12px);
  background: rgba(43,39,34,.94);
  color: #f7f2e7;
  font-size: 13px; letter-spacing: .04em;
  padding: 10px 18px; border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: opacity .24s, transform .24s;
  max-width: 88vw; text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 管理端（加菜 / 改菜） ---------------- */
.adm-row {
  padding: 13px 4px 12px;
  border-bottom: 1px dotted var(--line);
}
.adm-row:last-child { border-bottom: 0; }

.adm-line { display: flex; align-items: baseline; gap: 8px; }
.adm-name {
  font-family: var(--serif); font-size: 16px; letter-spacing: .05em; color: var(--ink);
  flex: none; max-width: 58%;
}
.adm-price { flex: none; font-family: var(--serif); font-size: 15px; color: var(--ink-2); }
.adm-price i { font-style: normal; font-size: 11px; opacity: .7; margin-right: 1px; }
.adm-sub {
  margin-top: 3px; font-size: 12px; color: var(--ink-3);
  display: flex; gap: 8px; align-items: baseline;
}
.adm-sub .kk { font-family: var(--serif); flex: none; color: rgba(51,65,79,.5); }
.adm-sub .dd { flex: 1; min-width: 0; }

.adm-acts { display: flex; gap: 6px; justify-content: flex-end; margin-top: 9px; }
.icon-btn {
  appearance: none;
  font-family: var(--serif); font-size: 12.5px; letter-spacing: .06em;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px; height: 30px;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
}
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn:disabled { opacity: .32; cursor: not-allowed; }
.icon-btn.danger { color: var(--shu); border-color: rgba(176,74,47,.3); }
.icon-btn.danger:hover { background: var(--shu-soft); }

.admin-toolbar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 4px 0 6px;
}
.admin-toolbar .btn { flex: 1 1 auto; padding: 11px 14px; font-size: 13.5px; letter-spacing: .1em; }

/* 表单字段 */
.field { margin-bottom: 13px; }
.field label {
  display: block;
  font-family: var(--serif); font-size: 12px; letter-spacing: .18em;
  color: var(--ink-2); margin-bottom: 6px;
}
.field label em { font-style: normal; color: var(--ink-3); letter-spacing: .04em; font-size: 11px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.4;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.field select { font-size: 15px; padding: 10px 8px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(176,74,47,.45);
  box-shadow: 0 0 0 3px rgba(176,74,47,.09);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; padding: 14px; font-size: 15px; }
.btn-danger {
  background: var(--shu-soft); color: var(--shu-deep);
  border: 1px solid rgba(176,74,47,.3);
}

/* ---------------- 空状态 ---------------- */
.empty {
  text-align: center; padding: 56px 20px;
  color: var(--ink-3);
}
.empty .em-kana {
  font-family: var(--serif); font-size: 30px;
  letter-spacing: .3em; color: #d5c9b2;
  display: block; margin-bottom: 14px;
}
.empty p { margin: 0; font-size: 13px; letter-spacing: .1em; }

/* ---------------- 厨房端 ---------------- */
.topbar {
  background: linear-gradient(180deg, var(--ai) 0%, var(--ai-deep) 100%);
  color: #f4efe3;
  padding: 18px 0 20px;
  position: relative;
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px;
  background-image: radial-gradient(circle at 50% 0, var(--ai-deep) 0 6.5px, transparent 6.6px);
  background-size: 20px 10px; background-repeat: repeat-x;
}
.topbar-inner {
  max-width: 620px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.topbar h1 {
  margin: 0; font-family: var(--serif); font-size: 19px;
  font-weight: 600; letter-spacing: .24em;
}
.topbar .sub {
  font-family: var(--serif); font-size: 10px;
  letter-spacing: .3em; color: rgba(244,239,227,.6);
  margin-top: 3px;
}
.stat {
  text-align: right; flex: none;
}
.stat b { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: .04em; }
.stat span { display: block; font-size: 10px; letter-spacing: .18em; color: rgba(244,239,227,.62); margin-top: 1px; }

/* ---- 后台导航条（接单台 / 菜单管理 共用） ---- */
.back-bar {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(2px);
}
.back-bar-inner {
  max-width: 620px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.back-bar-seal {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--serif);
  font-size: 12px; letter-spacing: .14em;
  color: var(--shu);
  background: var(--shu-soft);
  padding: 4px 10px 4px 8px;
  border-radius: 3px;
  border: 1px solid rgba(176,74,47,.18);
  flex: none;
}
.back-bar-seal::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--shu);
}
.back-bar-links {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--serif);
  font-size: 13px; letter-spacing: .12em;
  overflow-x: auto;
  scrollbar-width: none;
}
.back-bar-links::-webkit-scrollbar { display: none; }
.back-bar-links a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.back-bar-links a:active { background: var(--line-2); }
.back-bar-links a.is-current {
  color: var(--ink);
  background: var(--card);
  font-weight: 600;
  box-shadow: 0 1px 0 var(--line);
}
.back-bar-links a.is-out { color: var(--ink-3); padding-left: 14px; }
.back-bar-links .sep {
  color: var(--line); user-select: none; padding: 0 2px;
}

.filters {
  display: flex; gap: 6px; margin: 22px 0 14px;
  overflow-x: auto; scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters .tab { border: 1px solid var(--line); background: var(--card); }
.filters .tab.is-active { border-color: transparent; }

.order-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 16px 13px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  animation: rise .34s cubic-bezier(.2,.9,.25,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.order-card.st-pending { border-left: 4px solid var(--shu); }
.order-card.st-cooking { border-left: 4px solid #c98a2b; }
.order-card.st-done    { border-left: 4px solid var(--matcha); opacity: .72; }

.oc-head {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  padding-bottom: 9px; margin-bottom: 9px; border-bottom: 1px dashed var(--line);
}
.oc-no { font-family: var(--serif); font-size: 14px; letter-spacing: .1em; color: var(--ink); }
.oc-time { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.oc-head-right { display: flex; align-items: center; gap: 8px; flex: none; }
.oc-badge {
  font-family: var(--serif); font-size: 10px; letter-spacing: .16em;
  padding: 3px 9px; border-radius: 999px;
}
.st-pending .oc-badge { background: var(--shu-soft); color: var(--shu-deep); }
.st-cooking .oc-badge { background: #fbf0dc; color: #8f5f14; }
.st-done .oc-badge    { background: #eef1e7; color: #55643f; }

.oc-items { margin: 0; padding: 0; list-style: none; }
.oc-items li {
  display: flex; align-items: baseline; gap: 8px;
  padding: 4px 0; font-size: 14px;
}
.oc-items .q { font-family: var(--serif); color: var(--shu-deep); min-width: 22px; }
.oc-items .n { font-family: var(--serif); letter-spacing: .04em; }
.oc-items .k { font-family: var(--serif); font-size: 11px; color: var(--ink-3); margin-left: auto; }

.oc-note {
  margin: 10px 0 0; padding: 9px 12px;
  background: var(--paper); border-radius: 8px;
  font-size: 13px; color: var(--ink-2); line-height: 1.6;
}
.oc-note b { font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: .1em; margin-right: 6px; }

.oc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line-2);
}
.oc-total { font-family: var(--serif); font-size: 17px; letter-spacing: .02em; }
.oc-total i { font-style: normal; font-size: 11px; opacity: .7; margin-right: 1px; }
.oc-actions { display: flex; gap: 8px; flex: none; }
.oc-actions .btn { padding: 9px 18px; font-size: 13px; letter-spacing: .12em; }
.btn-cook {
  background: #fdf3e0; color: #8f5f14; border: 1px solid rgba(201,138,43,.4);
}
.btn-done {
  background: #eef1e7; color: #55643f; border: 1px solid rgba(111,127,86,.35);
}
.btn-x {
  appearance: none; border: 0; background: transparent;
  color: var(--ink-3); font-size: 12px; letter-spacing: .1em;
  padding: 8px 4px; cursor: pointer; font-family: var(--serif);
}
.btn-x:hover { color: var(--shu); }

.mode-hint {
  margin: 0 0 16px;
  font-size: 12px; line-height: 1.7;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 10px 13px;
}
.mode-hint b { font-family: var(--serif); letter-spacing: .08em; }
.mode-hint a { color: var(--shu); }
.mode-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  background: rgba(176,74,47,.09);
  color: var(--shu-deep);
  padding: 1px 5px; border-radius: 4px;
  letter-spacing: 0;
}

.footnote {
  text-align: center; font-size: 11px; color: var(--ink-3);
  letter-spacing: .12em; padding: 30px 0 34px;
  font-family: var(--serif);
}

@media (max-width: 400px) {
  .shop-name { font-size: 23px; }
  .dish-name { font-size: 16px; }
  .cart-total { font-size: 17px; }
  .btn { padding: 11px 18px; font-size: 14px; }
}
