/* Shiftly v4。世界观见 docs/design-v4.md:暖纸白 + 深松绿 + 宋体标题 + 绿色印章。
   红只表示「人不够」,黄只表示「超过店长定的上限」,LINE 绿只用在「发到 LINE」。 */
:root {
  --paper: #F4EFE4; --paper-2: #ECE5D6; --card: #FFFDF8;
  --ink: #1D1A15; --ink-2: #4A433A; --ink-3: #675F53;
  --line: #E2D9C8; --line-2: #CFC4AF;
  --pine: #0E3B2C; --pine-2: #174E3B;
  --green: #1C6A4B; --green-hover: #155A3F; --green-soft: #E0ECE4; --green-ink: #134A34;
  --red: #A3301C; --red-soft: #F5E1DA;
  --amber: #E8B62C; --amber-ink: #3A2B00;
  --line-app: #06C755;
  --sans: "Hiragino Sans", "PingFang SC", "Hiragino Kaku Gothic ProN", "Noto Sans CJK SC", "Noto Sans CJK JP", "Microsoft YaHei", "Yu Gothic UI", system-ui, sans-serif;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", serif;
  --r: 18px;
  --shadow: 0 1px 0 rgb(29 26 21 / .04), 0 10px 28px -18px rgb(29 26 21 / .28);
  color-scheme: light;
}
:lang(ja) { --serif: "Hiragino Mincho ProN", "Noto Serif CJK JP", "Source Han Serif JP", "Yu Mincho", "YuMincho", serif; --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; min-height: 100svh; font: 17px/1.6 var(--sans); letter-spacing: .02em; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; caret-color: var(--green); }
::selection { background: var(--green-soft); color: var(--green-ink); }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
:focus-visible { outline: 3px solid #7FB79A; outline-offset: 2px; border-radius: 10px; }
a { color: var(--green); text-underline-offset: .2em; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.logo { width: 28px; height: 28px; color: var(--green); flex: none; }
.center { text-align: center; }
.muted { color: var(--ink-3); }

/* ---------- 字 ---------- */
.display { margin: 0; font: 700 clamp(28px, 8.6vw, 34px)/1.32 var(--serif); letter-spacing: .03em; }
.display.sm { font-size: clamp(26px, 7.6vw, 30px); }
.h1 { display: block; margin: 0 0 18px; font: 700 26px/1.4 var(--serif); letter-spacing: .03em; }
.h2 { margin: 0 0 8px; font: 700 22px/1.4 var(--serif); }
.h3 { margin: 30px 0 12px; font-size: 15px; font-weight: 700; color: var(--ink-2); letter-spacing: .06em; }
.lead { margin: 12px 0 0; font-size: 17px; color: var(--ink-2); line-height: 1.75; }
.lead.sm { font-size: 15px; margin: 0 0 18px; }
.hint { display: block; margin: 12px 0 0; font-size: 14px; line-height: 1.7; color: var(--ink-3); }

/* ---------- 版面 ---------- */
.screen { width: min(100%, 540px); margin: 0 auto; padding: 24px 22px 36px; }
.foot { margin-top: 30px; display: grid; gap: 12px; }
.foot.sticky { position: sticky; bottom: 0; margin: 24px -22px -36px; padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 72%, rgb(244 239 228 / 0)); z-index: 2; }
.stack { display: grid; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease; }
.btn:hover { background: #fff; border-color: var(--ink-3); }
.btn:active { transform: scale(.98); }
.btn.xl { width: 100%; min-height: 60px; border-radius: 16px; font-size: 18px; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 10px 20px -12px rgb(14 59 44 / .7); }
.btn.primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn.line { background: var(--line-app); border-color: var(--line-app); color: #fff; box-shadow: 0 10px 20px -12px rgb(6 120 60 / .6); }
.btn.line:hover { background: #05B34C; }
.btn.quiet { border-color: transparent; background: transparent; color: var(--green); min-height: 48px; }
.btn.quiet:hover { background: var(--green-soft); }
.btn.quiet.danger { color: var(--red); } .btn.quiet.danger:hover { background: var(--red-soft); }
.btn.sm { min-height: 42px; padding: 0 14px; font-size: 15px; border-radius: 12px; gap: 6px; }
.btn.sm .ic { width: 18px; height: 18px; }
.btn.icon { width: 42px; padding: 0; }
.btn.disabled, .btn[aria-disabled="true"] { opacity: .42; cursor: default; box-shadow: none; }
.btn em.count { font-style: normal; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgb(255 255 255 / .2); }
.btn em.pro { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--ink); color: var(--paper); letter-spacing: .06em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- 店长端顶栏:深松绿 ---------- */
.bar { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px; padding: 10px max(14px, calc((100% - 540px) / 2 + 14px)); background: var(--pine); color: #F4EFE4; }
.bar-title { display: grid; text-align: center; line-height: 1.35; min-width: 0; }
.bar-title b { font: 700 18px var(--serif); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-title small { font-size: 12px; color: #B9CBBF; }
.bar-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 0; background: transparent; color: inherit; }
.bar-btn:hover { background: rgb(255 255 255 / .08); }
.bar-btn.ghost { color: var(--ink-2); } .bar-btn.ghost:hover { background: var(--paper-2); }
.bar-logo { display: grid; place-items: center; } .bar-logo .logo { --logo-ink: var(--pine); color: #CFE3D6; width: 30px; height: 30px; }

/* ---------- 欢迎 ---------- */
.welcome { min-height: 100svh; display: flex; flex-direction: column; padding-top: 18px; }
.welcome-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 700 20px var(--sans); letter-spacing: .01em; color: var(--ink); }
.wordmark.sm { font-size: 14px; gap: 6px; } .wordmark.sm .logo { width: 20px; height: 20px; }
.art-cal { margin: 36px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; padding: 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.art-cal span { aspect-ratio: 1 / 1; border-radius: 10px; display: grid; place-items: center; font: 700 15px var(--serif); animation: pop .5s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--i) * 45ms + 150ms); }
.art-cal em { font-style: normal; }
.art-cal .m-o { background: var(--green); color: #fff; }
.art-cal .m-e { background: var(--green-soft); color: var(--green-ink); box-shadow: inset 0 0 0 1.5px #9CC4AE; }
.art-cal .m-x { background: var(--paper-2); color: var(--ink-3); }
.welcome .foot { margin-top: auto; padding-top: 36px; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* ---------- 向导 ---------- */
.wizard { min-height: 100svh; display: flex; flex-direction: column; }
.wiz-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 12px; margin: -6px 0 30px; }
.dots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dots i { height: 5px; border-radius: 9px; background: var(--line); }
.dots i.on { background: var(--green); }
.wiz-count { font-size: 14px; font-weight: 700; color: var(--ink-3); text-align: right; }
.wiz-body { flex: 1; }
.q { display: grid; gap: 4px; }
.big-input { width: 100%; min-height: 64px; margin-top: 10px; padding: 14px 18px; border: 2px solid var(--line-2); border-radius: 16px; background: var(--card); font-size: 20px; font-weight: 700; color: var(--ink); }
.big-input::placeholder { color: #9A9184; font-weight: 400; }
.big-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.big-input.area { font-size: 17px; font-weight: 400; line-height: 1.7; resize: vertical; }
.choices { display: grid; gap: 12px; }
.choice { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding: 14px 18px 14px 20px; border-radius: 18px; border: 2px solid var(--line); background: var(--card); text-align: left; transition: border-color .15s, background-color .15s; }
.choice span { display: grid; gap: 2px; } .choice b { font: 700 19px var(--serif); } .choice small { font-size: 14px; color: var(--ink-3); }
.choice .radio { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; flex: none; }
.choice .radio .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.choice.on { border-color: var(--green); background: #F1F7F2; }
.choice.on .radio { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- 发链接 ---------- */
.link-card { margin-top: 26px; border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lc-top { padding: 14px 18px; background: var(--pine); } .lc-top .wordmark { color: #E8EFE9; } .lc-top .logo { color: #CFE3D6; --logo-ink: var(--pine); }
.lc-body { display: grid; gap: 4px; padding: 18px 20px 20px; } .lc-body b { font: 700 21px var(--serif); } .lc-body span { font-size: 14px; color: var(--ink-3); }

/* ---------- 首页 ---------- */
.period { padding: 6px 0 4px; }
.period-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.period-meta span { display: inline-flex; align-items: center; gap: 6px; } .period-meta .ic { width: 17px; height: 17px; color: var(--ink-3); }
.stepper { list-style: none; margin: 22px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.stepper { align-items: start; }
.stepper li { display: grid; grid-template-rows: 32px auto; align-content: start; justify-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-3); position: relative; }
.stepper li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.now::before { background: var(--green); }
.stepper i { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font: 700 15px var(--serif); background: var(--paper); border: 2px solid var(--line-2); color: var(--ink-3); }
.stepper i .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.stepper li.done i { background: var(--green); border-color: var(--green); color: #fff; }
.stepper li.now i { border-color: var(--green); color: var(--green); background: var(--card); box-shadow: 0 0 0 5px var(--green-soft); }
.stepper li.now, .stepper li.done { color: var(--ink); }
.tally { display: grid; gap: 14px; }
.tally-line { margin: 0; font-size: 18px; color: var(--ink-2); }
.tally-line b { font: 700 46px/1 var(--serif); color: var(--green); margin: 0 .1em; vertical-align: -.08em; }
.meter { height: 10px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--green); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.faces { display: flex; padding-left: 6px; }
.faces .av { margin-left: -6px; box-shadow: 0 0 0 2.5px var(--card); }
.faces .more { margin-left: 6px; font-size: 14px; font-weight: 700; color: var(--ink-3); align-self: center; }
.pend { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--paper); }
.pend .hint { margin: 0; }
.pend small { font-size: 13px; color: var(--ink-3); font-weight: 700; } .pend p { margin: 2px 0 0; font-weight: 700; font-size: 16px; }
.all-in { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; color: var(--green); }
.done-card { display: flex; align-items: center; gap: 18px; } .done-card b { font: 700 19px var(--serif); } .done-card p { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.done-card .stamp { width: 88px; height: 88px; } .done-card .stamp b { font-size: 18px; }
.rows { margin-top: 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.row { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 16px 0 18px; border: 0; background: transparent; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 700; text-align: left; }
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: #fff; }
.row > .ic:first-child { color: var(--green); }
.row span { flex: 1; } .row em { font-style: normal; font-size: 14px; color: var(--ink-3); }
.row .chev { width: 18px; height: 18px; color: var(--ink-3); }

/* 头像 */
.av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--bg); color: var(--fg); font: 700 18px var(--serif); }
.av.sm { width: 36px; height: 36px; font-size: 15px; }

/* ---------- 排班 ---------- */
.auto-box { padding: 6px 0 4px; }
.auto-box .hint { margin-top: 10px; }
.meter-txt { display: inline-block; margin-top: 4px; font-weight: 700; color: var(--green); }
.need-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin: 18px 0 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: transparent; font-size: 15px; font-weight: 700; color: var(--ink-2); text-align: left; }
.need-link .ic { width: 18px; height: 18px; color: var(--green); }
.need-link:hover { border-color: var(--green); }
.daylist { display: grid; gap: 8px; }
.dayrow { display: grid; grid-template-columns: 50px 1fr auto 16px; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.dayrow:hover { border-color: var(--line-2); background: #fff; }
.dayrow.we { background: #FBF7EF; }
.dnum { display: grid; justify-items: center; line-height: 1.1; } .dnum b { font: 700 24px var(--serif); } .dnum small { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.dnames { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.dnames i { font-style: normal; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--green-soft); color: var(--green-ink); }
.dnames em { font-style: normal; font-size: 14px; color: var(--ink-3); }
.dstat { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.dstat .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.dayrow.full .dstat { color: var(--green); }
.dayrow.short { border-color: #E2B4A8; } .dayrow.short .dstat { color: var(--red); background: var(--red-soft); padding: 4px 10px; border-radius: 99px; }
.dayrow .chev { width: 16px; height: 16px; color: var(--line-2); }

/* 一天 */
.day-head { display: flex; align-items: baseline; gap: 14px; padding: 4px 0 6px; }
.day-head .big { font: 700 54px/1 var(--serif); color: var(--ink-3); } .day-head .big small { font-size: 26px; color: var(--ink-3); }
.day-head .big.ok { color: var(--green); } .day-head .big.short { color: var(--red); }
.day-head p { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 700; font-size: 16px; }
.day-head p.ok { color: var(--green); } .day-head p.short { color: var(--red); }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.person { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: border-color .15s, background-color .15s; }
.person.on { border-color: #9CC4AE; background: #F3F8F4; }
.pmain { flex: 1; min-width: 0; display: grid; gap: 3px; }
.pmain b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 17px; }
.pmain small { font-size: 13px; color: var(--ink-3); }
.pmain q { font-size: 13px; color: var(--ink-2); quotes: none; background: var(--paper); padding: 6px 10px; border-radius: 10px; margin-top: 4px; }
.tag { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; letter-spacing: .04em; }
.tag.all { background: var(--green-soft); color: var(--green-ink); }
.tag.eve { background: var(--card); color: var(--green-ink); box-shadow: inset 0 0 0 1.5px #9CC4AE; }
em.over { font-style: normal; font-weight: 700; background: var(--amber); color: var(--amber-ink); padding: 1px 8px; border-radius: 6px; }
.toggle { flex: none; min-width: 96px; height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--green); background: var(--card); color: var(--green); font-size: 15px; font-weight: 700; }
.toggle .ic { width: 17px; height: 17px; stroke-width: 2.6; }
.toggle.on { background: var(--green); color: #fff; }
.names-muted { margin: 0; font-size: 15px; color: var(--ink-3); line-height: 1.8; }
.empty-li { color: var(--ink-3); padding: 8px 0; }
.daynav { grid-template-columns: 56px 1fr 56px; align-items: center; }
.daynav .btn:not(.xl) { min-height: 60px; padding: 0; border-radius: 16px; }

/* ---------- 发出去 ---------- */
.print-title { display: grid; gap: 2px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.print-title b { font: 700 19px var(--serif); } .print-title span { font-size: 14px; color: var(--ink-3); }
.sched { list-style: none; margin: 0; padding: 0; }
.sched li { display: grid; grid-template-columns: 50px 1fr; gap: 12px; align-items: center; padding: 10px 16px 10px 12px; border-bottom: 1px solid var(--line); }
.sched li:last-child { border-bottom: 0; }
.sched li.we { background: #FBF7EF; }
.sd { display: grid; justify-items: center; line-height: 1.1; } .sd b { font: 700 22px var(--serif); } .sd small { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.sn { display: flex; flex-wrap: wrap; gap: 6px; }
.sn i { font-style: normal; display: inline-flex; align-items: baseline; gap: 6px; font-size: 15px; font-weight: 700; padding: 4px 10px; border-radius: 10px; background: var(--green-soft); color: var(--green-ink); }
.sn i small { font-size: 12px; font-weight: 400; color: var(--green); }
.sn i.me { background: var(--green); color: #fff; } .sn i.me small { color: #D7EADF; }
.sn em { color: var(--ink-3); font-style: normal; }
.sched.compact { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sent-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; } .sent-head p { margin: 0; color: var(--ink-2); }
.sent-head .stamp { width: 96px; height: 96px; } .sent-head .stamp b { font-size: 19px; }
.send .lead { margin: 0 0 18px; }

/* ---------- 名单 ---------- */
.okc { display: inline-flex; align-items: center; gap: 2px; color: var(--green); font-weight: 700; } .okc .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.add { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 18px; }
.add input, .field textarea, .cap-in input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--card); font-size: 16px; }
.add input:focus, .field textarea:focus, .cap-in input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.field { display: grid; gap: 8px; margin-top: 22px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.field textarea { font-weight: 400; resize: vertical; line-height: 1.6; }
.cap-in { display: flex; align-items: center; gap: 10px; } .cap-in em { font-style: normal; color: var(--ink-3); }
.ps-head { display: flex; align-items: center; gap: 14px; } .ps-head .h2 { margin: 0; }

/* ---------- 底部弹层 ---------- */
dialog#sheet { position: fixed; inset: auto 0 0 0; margin: 0 auto; width: min(100%, 540px); max-height: 88svh; overflow: auto; padding: 8px 22px calc(26px + env(safe-area-inset-bottom)); border: 0; border-radius: 26px 26px 0 0; background: var(--card); color: var(--ink); box-shadow: 0 -20px 60px -20px rgb(29 26 21 / .4); }
dialog#sheet[open] { animation: up .28s cubic-bezier(.2, .8, .2, 1); }
dialog#sheet::backdrop { background: rgb(29 26 21 / .42); }
@keyframes up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet-grip { width: 44px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 4px auto 18px; }
.msg { margin: 0 0 20px; padding: 16px 18px; border-radius: 14px; background: var(--paper); font: 15px/1.75 var(--sans); white-space: pre-wrap; word-break: break-word; color: var(--ink-2); }
.steppers { display: grid; margin: 4px 0 22px; }
.stp { display: grid; grid-template-columns: 1fr 48px 56px 48px; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 700; }
.stp.we span { color: var(--green); }
.stp b { text-align: center; font: 700 22px var(--serif); }
.stp button { height: 48px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--card); display: grid; place-items: center; }
.stp button:hover { border-color: var(--green); color: var(--green); }
.pro-box, .pbox { padding: 18px 20px; border-radius: 16px; background: var(--paper); margin-bottom: 18px; }
.pro-box b, .pbox b { font: 700 17px var(--serif); }
.pbox.dark { background: var(--pine); color: #F4EFE4; }
.price-grid { display: grid; gap: 12px; margin-top: 12px; }
.ticks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.pbox.dark .ticks li::before { border-color: #9CC4AE; }
.menu { display: grid; gap: 16px; padding-bottom: 6px; }
.menu .row { border-radius: 14px; background: var(--paper); }
.menu .row + .row { border-top: 0; }
.seg-lang { display: grid; grid-template-columns: 30px 1fr 1fr; align-items: center; gap: 6px; padding: 6px; border-radius: 16px; background: var(--paper); }
.seg-lang .ic { justify-self: center; color: var(--ink-3); }
.seg-lang button { min-height: 46px; border: 0; border-radius: 12px; background: transparent; font-weight: 700; font-size: 16px; color: var(--ink-2); }
.seg-lang button.on { background: var(--card); color: var(--green); box-shadow: var(--shadow); }

/* ---------- 印章(标志动作) ---------- */
.stamp { position: relative; width: 168px; height: 168px; margin: 0 auto; color: var(--green); transform: rotate(-9deg); }
.stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; }
.stamp circle:first-child { stroke-width: 5; } .stamp circle:last-child { stroke-width: 1.6; }
.stamp b { position: absolute; inset: 0; display: grid; place-items: center; font: 900 32px var(--serif); letter-spacing: .12em; text-indent: .12em; }
.stamp.press { animation: press .55s cubic-bezier(.2, .9, .25, 1.25) both .1s; }
@keyframes press { 0% { opacity: 0; transform: scale(1.7) rotate(-24deg); } 60% { opacity: 1; transform: scale(.94) rotate(-8deg); } 100% { opacity: 1; transform: scale(1) rotate(-9deg); } }

/* ---------- 员工端 ---------- */
body[data-side="staff"] { background: var(--paper); }
.s-head { position: relative; display: flex; justify-content: center; padding: 0 0 6px; }
.noren { display: inline-block; max-width: calc(100% - 100px); padding: 14px 22px 13px; border-radius: 0 0 14px 14px; background: var(--pine); color: #F4EFE4; font: 700 16px var(--serif); letter-spacing: .1em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 10px 22px -14px rgb(14 59 44 / .8); }
.s-head .bar-btn { position: absolute; right: max(10px, calc((100% - 540px) / 2 + 10px)); top: 8px; }
.screen.s { padding-top: 26px; }
.facts { margin: 26px 0 0; display: grid; gap: 1px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.facts div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; background: var(--card); }
.facts dt { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-3); font-weight: 700; } .facts dt .ic { width: 18px; height: 18px; color: var(--green); }
.facts dd { margin: 0; font: 700 18px var(--serif); }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin: -8px 0 12px -8px; padding: 8px; border-radius: 10px; font-size: 15px; font-weight: 700; text-decoration: none; color: var(--ink-2); }
.back-link .ic { width: 18px; height: 18px; }
.whos { display: grid; gap: 8px; }
.who { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 16px 0 12px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); font-size: 17px; font-weight: 700; text-align: left; }
.who span { flex: 1; }
.who em { display: inline-flex; align-items: center; gap: 2px; font-style: normal; font-size: 13px; color: var(--green); } .who em .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.who.on { border-color: var(--green); background: #F1F7F2; }
.legend { display: flex; gap: 8px; margin: -4px 0 14px; }
.legend span { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 99px; }
.legend .m-o { background: var(--green); color: #fff; }
.legend .m-e { background: var(--card); color: var(--green-ink); box-shadow: inset 0 0 0 1.5px var(--green); }
.legend .m-x { background: var(--paper-2); color: var(--ink-3); }
.cal-wrap { padding: 14px 12px 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cal-head, .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head span { text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-3); padding-bottom: 6px; }
.cell { aspect-ratio: 1 / 1.18; display: grid; align-content: center; justify-items: center; gap: 1px; padding: 0; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); transition: background-color .12s, border-color .12s, transform .1s; }
.cell:active { transform: scale(.94); }
.cell b { font: 700 18px/1 var(--serif); } .cell small { font-size: 10.5px; font-weight: 700; line-height: 1.2; min-height: 1.2em; letter-spacing: 0; }
.cell.pad { border: 0; background: transparent; }
.cell.m-none:hover { border-color: var(--green); }
.cell.m-o { background: var(--green); border-color: var(--green); color: #fff; }
.cell.m-e { background: #F1F7F2; border-color: var(--green); color: var(--green-ink); }
.cell.m-x { background: var(--paper-2); border-color: var(--paper-2); color: var(--ink-3); }
.cell.m-x b { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.quick { display: flex; gap: 8px; margin-top: 14px; }
.done { text-align: center; padding-top: 48px; } .done .h1 { margin-top: 26px; } .done .foot { margin-top: 36px; }
.mine { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.mine li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 14px 16px 14px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mine strong { display: block; font: 700 20px var(--serif); color: var(--green); } .mine small { font-size: 13px; color: var(--ink-3); }
.wait { text-align: center; padding-top: 22svh; }
.wait-art { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 24px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--green); box-shadow: var(--shadow); }
.wait-art .ic { width: 34px; height: 34px; }
.made { margin: 40px 0 0; text-align: center; font-size: 12px; color: var(--ink-3); }

/* ---------- 提示条 ---------- */
#toast { position: fixed; left: 50%; top: calc(72px + env(safe-area-inset-top)); z-index: 50; max-width: min(92vw, 460px); padding: 14px 20px; border-radius: 14px; background: var(--pine); color: #F4EFE4; font-size: 15px; font-weight: 700; text-align: center; box-shadow: 0 18px 40px -18px rgb(0 0 0 / .5); transform: translate(-50%, -12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .2, 1); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
@media print {
  .bar, .foot, .sent-head, .send > .lead, #toast { display: none !important; }
  body { background: #fff; } .screen { width: 100%; padding: 0; } .card { box-shadow: none; border: 0; }
}
