* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: #fff6ee;
  color: #4b3a36;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea, select { font: inherit; color: inherit; -webkit-user-select: text; user-select: text; }
img { display: block; }
#app { max-width: 520px; margin: 0 auto; min-height: 100vh; position: relative; }
.boot { padding: 40vh 0; text-align: center; color: #ab948d; }
.tap:active, [data-act]:active { opacity: .85; }

/* ===== 通用 ===== */
.page { min-height: 100vh; padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
.pad { padding: 12px 15px 0; }
.card { margin-bottom: 10px; padding: 3px 0 5px; border-radius: 15px; background: #fff; box-shadow: 0 7px 16px -13px rgba(170,110,100,.75); }
.card-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 13px 3px; }
.ct { font-size: 14px; font-weight: 600; }
.cs { font-size: 11px; color: #bfa59e; }
.grow { flex: 1; min-width: 0; }
.empty { padding: 50px 0; text-align: center; color: #ab948d; font-size: 13px; }
.empty .emoji { display: block; font-size: 40px; margin-bottom: 9px; opacity: .7; }
.tipbox { margin-bottom: 9px; padding: 9px 11px; border-radius: 10px; background: #fff5e8; border: 1px dashed #ffd9a8; font-size: 12px; line-height: 1.55; color: #a8804f; }
.btn { display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 13px; font-size: 14px; border: 0; }
.btn.main { background: linear-gradient(180deg,#ff8aa6,#f2597c); color: #fff; font-weight: 600; box-shadow: 0 8px 14px -9px rgba(242,89,124,.95); }
.btn.ghost { background: #fff; border: 1px solid #fbe6da; color: #8d7570; }
.btn.danger { background: #fff; border: 1px solid #ffd3dd; color: #f2597c; }
.topnav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; height: 46px; padding: env(safe-area-inset-top) 6px 0; background: rgba(255,249,242,.96); border-bottom: 1px solid #f6e7dc; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-sizing: content-box; }
.topnav .back { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #8d7570; }
.topnav .title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; margin-right: 44px; }
.topnav .right { position: absolute; right: 12px; bottom: 11px; font-size: 12px; color: #f2597c; }

#toast { position: fixed; left: 50%; top: 45%; transform: translate(-50%,-50%); z-index: 100; max-width: 76vw; padding: 10px 16px; border-radius: 12px; background: rgba(60,40,36,.86); color: #fff; font-size: 13px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
#toast.show { opacity: 1; }

/* ===== 首页 ===== */
.greet { position: relative; padding: calc(20px + env(safe-area-inset-top)) 20px 37px; background: linear-gradient(160deg,#ffe6ee 0%,#fff1e5 62%,#fff9f2 100%); border-radius: 0 0 24px 24px; overflow: hidden; }
.glow { position: absolute; right: -30px; top: -35px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(255,209,102,.55), rgba(255,209,102,0) 66%); }
.greet .date { position: relative; z-index: 2; font-size: 11px; letter-spacing: 1px; color: #c9929f; }
.hello { position: relative; z-index: 2; font-size: 26px; line-height: 1.34; font-weight: 600; color: #5b4441; }
.hello .q { color: #f2597c; }
.greet .tip { position: relative; z-index: 2; margin-top: 8px; font-size: 11px; color: #b39198; }
.bear { position: absolute; right: 12px; top: calc(16px + env(safe-area-inset-top)); width: 112px; height: 112px; z-index: 2; }
.bubble { position: absolute; right: 118px; top: calc(46px + env(safe-area-inset-top)); z-index: 3; padding: 5px 8px; border-radius: 11px 11px 2px 11px; background: #fff; font-size: 10px; color: #a8868c; white-space: nowrap; box-shadow: 0 6px 14px -9px rgba(180,120,120,.6); }
.foot span { padding: 6px 4px; }
.gear { position: absolute; left: 14px; bottom: 8px; z-index: 3; font-size: 11px; color: #c9929f; padding: 4px 6px; }
.quick { position: relative; z-index: 4; display: flex; gap: 8px; margin: -23px 15px 0; }
.qbtn { flex: 1; height: 44px; display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: 13px; background: #fff; border: 1px solid #fdeee6; font-size: 12px; color: #7b605c; box-shadow: 0 7px 14px -10px rgba(190,120,120,.9); }
.qbtn.on { background: #ffe8ee; border-color: #ffd3dd; color: #f2597c; }
.active { display: flex; align-items: center; gap: 8px; margin: 10px 15px 0; padding: 10px 12px; border-radius: 13px; background: linear-gradient(135deg,#fff0f4,#fff6ec); border: 1px solid #ffe1e8; }
.dotp { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #f2597c; box-shadow: 0 0 0 4px rgba(242,89,124,.12); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.a-l1 { font-size: 12px; font-weight: 600; }
.a-l2 { margin-top: 2px; font-size: 10px; color: #b58f93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-go { flex: none; font-size: 11px; color: #f2597c; }
.chips { display: flex; overflow-x: auto; padding: 15px 15px 4px; gap: 7px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #f6e3d9; font-size: 12px; color: #a08a83; }
.chip.on { background: #f2597c; border-color: #f2597c; color: #fff; box-shadow: 0 6px 11px -7px rgba(242,89,124,.9); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 9px 15px 0; }
.dish { position: relative; padding: 7px 7px 9px; border-radius: 16px; background: #fff; box-shadow: 0 9px 18px -14px rgba(170,110,100,.9); }
.ph { position: relative; aspect-ratio: 1.53; border-radius: 13px; overflow: hidden; background: #f7ece5; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.dtag { position: absolute; left: 5px; top: 5px; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.94); color: #f2597c; font-size: 10px; }
.heart { position: absolute; right: 5px; top: 5px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.92); color: #ffc9d4; font-size: 13px; }
.heart.on { color: #f2597c; }
.dname { margin: 7px 3px 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dmeta { margin: 3px 3px 0; padding-right: 34px; font-size: 10px; color: #b8a29b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.add { position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%; background: #f2597c; color: #fff; font-size: 19px; line-height: 25px; text-align: center; box-shadow: 0 5px 9px -5px rgba(242,89,124,.95); }
.stepper { position: absolute; right: 7px; bottom: 8px; display: flex; align-items: center; gap: 5px; background: #fff; padding-left: 3px; }
.sbtn { width: 22px; height: 22px; border-radius: 50%; text-align: center; font-size: 15px; line-height: 20px; }
.sbtn.m { background: #fff0f3; border: 1px solid #ffd3dd; color: #f2597c; }
.sbtn.p { background: #f2597c; color: #fff; line-height: 22px; }
.stepper .n { min-width: 10px; font-size: 12px; font-weight: 600; text-align: center; }

.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.97); border-top: 1px solid #fbeae1; box-shadow: 0 -10px 20px -15px rgba(170,110,100,.9); }
.bar-inner { max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 9px; padding: 9px 15px 11px; }
.bb-left { flex: 1; min-width: 0; }
.l1 { font-size: 13px; color: #5b4441; }
.l1 .hl { font-size: 15px; font-weight: 700; color: #f2597c; }
.l2 { margin-top: 2px; font-size: 10px; color: #bb9f98; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.go { flex: none; height: 44px; padding: 0 20px; display: flex; align-items: center; border-radius: 13px; background: linear-gradient(180deg,#ff8aa6,#f2597c); color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 8px 14px -9px rgba(242,89,124,.95); }
.go.off { background: #f2d9d9; box-shadow: none; }

/* 弹层 */
.mask { position: fixed; inset: 0; z-index: 30; background: rgba(60,40,36,.35); animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; max-height: 78vh; padding-bottom: env(safe-area-inset-bottom); border-radius: 20px 20px 0 0; background: #fff9f2; animation: slideup .26s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
@keyframes slideup { from { transform: translateY(100%); } }
.sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px 5px; }
.sheet-h .t { font-size: 15px; font-weight: 600; }
.sheet-h .x { padding: 0 6px; font-size: 24px; line-height: 1; color: #bda6a0; }
.sheet-body { flex: 1; overflow-y: auto; padding: 5px 17px 12px; -webkit-overflow-scrolling: touch; }
.sheet-foot { padding: 11px 17px 16px; border-top: 1px solid #f6e7dc; text-align: center; font-size: 12px; color: #f2597c; }
.li { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid #f6e7dc; }
.li img { width: 42px; height: 42px; flex: none; border-radius: 10px; object-fit: cover; }
.li .nm { font-size: 13px; font-weight: 600; }
.li .ds { margin-top: 2px; font-size: 10px; color: #bfa59e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .times { font-size: 10px; color: #ab948d; }
.qty { flex: none; display: flex; align-items: center; gap: 7px; }
.qty .c { min-width: 10px; text-align: center; font-size: 12px; font-weight: 600; }
.cart-foot { display: flex; align-items: center; gap: 8px; padding: 8px 17px 16px; border-top: 1px solid #f6e7dc; }
.cart-clear { flex: none; padding: 0 10px; font-size: 12px; color: #b79b94; }
.cart-foot .btn { flex: 1; }
.d-hero { position: relative; height: 210px; background: #f7ece5; flex: none; }
.d-hero img { width: 100%; height: 100%; object-fit: cover; }
.d-tag { position: absolute; left: 12px; top: 12px; padding: 4px 8px; border-radius: 7px; background: rgba(255,255,255,.94); color: #f2597c; font-size: 11px; }
.d-x { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.92); color: #7a6460; font-size: 18px; }
.d-main { padding: 12px 17px 6px; overflow-y: auto; }
.d-name { font-size: 19px; font-weight: 600; }
.d-meta { margin-top: 4px; font-size: 11px; color: #b8a29b; }
.d-sec { margin-top: 13px; font-size: 11px; color: #a08a83; letter-spacing: 1px; }
.d-ings { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.ing { padding: 5px 9px; border-radius: 999px; background: #fff8f3; border: 1px solid #fbe9de; font-size: 11px; color: #6d5551; }
.d-tip { margin: 10px 0 6px; font-size: 10px; color: #c2aaa3; }
.dish-foot { padding: 8px 17px 16px; border-top: 1px solid #f6e7dc; }

/* ===== 确认页 ===== */
.timecard { display: flex; align-items: center; gap: 9px; padding: 11px 12px; }
.ico { width: 33px; height: 33px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 11px; background: #fff0f4; color: #ff9db3; font-size: 15px; }
.t1 { font-size: 14px; font-weight: 600; }
.t2 { margin-top: 2px; font-size: 10px; color: #bda49d; }
.timeinput { position: relative; font-size: 11px; color: #f2597c; padding: 3px 2px; }
.timeinput input { position: absolute; inset: 0; opacity: 0; width: 100%; }
.item { display: flex; align-items: center; gap: 9px; padding: 8px 13px; }
.item + .item { border-top: 1px solid #fdf1ea; }
.item img { width: 43px; height: 43px; flex: none; border-radius: 11px; object-fit: cover; }
.item .nm { font-size: 14px; font-weight: 500; }
.item .ds { margin-top: 2px; font-size: 10px; color: #bfa59e; }
.i-note { margin-top: 4px; font-size: 10px; color: #c2410c; background: #fff6ef; border-radius: 5px; padding: 2px 6px; display: inline-block; }
.i-add { margin-top: 4px; font-size: 10px; color: #c9b3ac; display: inline-block; }
.note-input { display: block; width: calc(100% - 26px); margin: 4px 13px 0; min-height: 56px; padding: 8px 10px; border: 1px solid #fbe6da; border-radius: 10px; background: #fffcf9; font-size: 14px; line-height: 1.6; color: #5b4441; resize: none; outline: none; }
.phrases { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 13px 10px; }
.phrase { padding: 5px 10px; border-radius: 999px; background: #fff7f0; border: 1px solid #fbe6da; font-size: 11px; color: #a8827a; }
.moods { display: flex; gap: 7px; padding: 7px 13px 10px; }
.mood { flex: 1; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 12px; background: #fff7f0; border: 1px solid #fdeade; }
.mood.on { background: #fff0f4; border-color: #ffb9c9; }
.mood .me { font-size: 19px; line-height: 1; }
.mood .ml { font-size: 10px; color: #b79b94; }
.mood.on .ml { color: #f2597c; }
.summary { padding: 3px 4px 0; font-size: 10px; color: #b79b94; }

/* ===== 等开饭 ===== */
.hero { position: relative; margin: 12px 13px 0; padding: 15px 15px 17px; border-radius: 20px; overflow: hidden; background: linear-gradient(150deg,#ffdfe8 0%,#fff0e2 60%,#ffeecd 100%); box-shadow: 0 9px 18px -14px rgba(200,120,120,.9); }
.htext { position: relative; z-index: 2; padding-right: 90px; }
.pill { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; background: #fff; color: #f2597c; font-size: 10px; box-shadow: 0 4px 9px -6px rgba(200,120,120,.8); }
.ht { margin-top: 9px; font-size: 22px; line-height: 1.34; font-weight: 600; color: #5b4441; }
.hs { margin-top: 5px; font-size: 11px; color: #b58f93; }
.clock { display: inline-flex; align-items: center; gap: 4px; margin-top: 9px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.82); font-size: 10px; color: #c07a86; }
.clock b { font-size: 13px; color: #f2597c; }
.hbear { position: absolute; right: 7px; bottom: 3px; width: 100px; height: 100px; z-index: 1; }
.steps { display: flex; margin: 10px 13px 0; padding: 13px 4px 11px; border-radius: 15px; background: #fff; box-shadow: 0 7px 16px -13px rgba(170,110,100,.75); }
.step { flex: 1; position: relative; text-align: center; }
.step .dot { position: relative; z-index: 1; width: 8px; height: 8px; margin: 0 auto 6px; border-radius: 50%; background: #f5e2d8; }
.step.done .dot { background: #ffb3c4; }
.step.now .dot { background: #f2597c; box-shadow: 0 0 0 4px rgba(242,89,124,.14); }
.step .lb { font-size: 10px; color: #c2aaa3; }
.step.done .lb { color: #8d7570; }
.step.now .lb { color: #f2597c; font-weight: 600; }
.step:before { content: ''; position: absolute; top: 3.5px; left: -50%; width: 100%; height: 1px; background: #f6e4da; }
.step:first-child:before { display: none; }
.step.done:before, .step.now:before { background: #ffc6d2; }
.wait .card { margin: 10px 13px 0; }
.st { flex: none; font-size: 10px; color: #f2597c; }
.inote { color: #c2410c !important; }
.msg { margin: 10px 13px 0; padding: 11px 13px; border-radius: 13px; background: #fff5e8; border: 1px dashed #ffd9a8; font-size: 12px; line-height: 1.6; color: #a8804f; }
.msg b { color: #e58f3f; font-weight: 400; }
.strip-cap { margin: 13px 13px 7px; font-size: 10px; color: #c2aaa3; }
.strip { display: flex; gap: 8px; margin: 0 13px; }
.polaroid { flex: 1; max-width: 33%; padding: 4px 4px 8px; border-radius: 8px; background: #fff; box-shadow: 0 7px 13px -10px rgba(170,110,100,.9); transform: rotate(-2deg); }
.polaroid:nth-child(2) { transform: rotate(1.6deg); }
.polaroid img { width: 100%; height: 80px; border-radius: 5px; object-fit: cover; }
.receipt { margin: 13px 13px 0; padding: 11px 13px; border-radius: 13px; background: #fff; border: 1px dashed #f6ddcf; }
.rc { display: flex; gap: 12px; padding: 3px 0; font-size: 11px; color: #bda49d; }
.rc .b { flex: 1; text-align: right; color: #6d5551; }
.acts { display: flex; gap: 8px; margin: 13px 13px 0; }
.acts .btn { flex: 1; font-size: 12px; }
.linkbtn { margin: 16px 0 6px; text-align: center; font-size: 11px; color: #c9b3ac; text-decoration: underline; }
.foot { margin: 22px 0 14px; text-align: center; font-size: 10px; color: #d8aab3; }

/* ===== 老公端 ===== */
.head { position: relative; padding: calc(17px + env(safe-area-inset-top)) 18px 20px; background: linear-gradient(160deg,#ffe6ee 0%,#fff1e5 62%,#fff9f2 100%); border-radius: 0 0 22px 22px; }
.kicker { font-size: 9px; letter-spacing: 1.5px; color: #d98ea1; }
.h1 { margin-top: 5px; font-size: 24px; font-weight: 600; color: #f2597c; }
.h2 { margin-top: 4px; font-size: 11px; color: #a08a83; }
.h2 b { font-size: 14px; color: #f2597c; }
.head-links { position: absolute; right: 14px; top: calc(17px + env(safe-area-inset-top)); display: flex; gap: 6px; }
.hlink { padding: 4px 9px; border-radius: 999px; background: #fff; color: #f2597c; font-size: 11px; box-shadow: 0 4px 9px -6px rgba(200,120,120,.8); }
.tabs { display: flex; gap: 7px; padding: 12px 15px 3px; }
.tab { flex: 1; height: 36px; display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: 11px; background: #fff; border: 1px solid #f6e3d9; font-size: 12px; color: #a08a83; }
.tab.on { background: #f2597c; border-color: #f2597c; color: #fff; }
.badge { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #ffd166; color: #7a4b12; font-size: 10px; line-height: 16px; text-align: center; }
.order { margin: 10px 15px 0; padding: 11px 12px 10px; border-radius: 15px; background: #fff; box-shadow: 0 8px 17px -14px rgba(170,110,100,.85); }
.o-h { display: flex; align-items: center; justify-content: space-between; }
.o-t { font-size: 10px; color: #bfa59e; }
.o-s { padding: 3px 7px; border-radius: 999px; background: #fff0f4; color: #f2597c; font-size: 10px; }
.o-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.oi { display: flex; align-items: center; gap: 4px; padding: 3px 7px 3px 3px; border-radius: 999px; background: #fff8f3; border: 1px solid #fbe9de; }
.oi img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.oi-n { font-size: 11px; color: #5b4441; }
.oi-q { font-size: 10px; color: #f2597c; }
.o-itemnotes { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: #fff8f2; font-size: 11px; line-height: 1.6; color: #c2410c; }
.o-note { margin-top: 8px; padding: 8px 9px; border-radius: 9px; background: #fff5e8; border: 1px dashed #ffd9a8; font-size: 11px; line-height: 1.55; color: #a8804f; }
.o-note b { color: #e58f3f; font-weight: 400; }
.o-mood { margin-top: 6px; font-size: 10px; color: #bda49d; }
.o-signals { display: flex; gap: 6px; margin-top: 5px; }
.sig { padding: 2px 7px; border-radius: 999px; font-size: 10px; }
.sig.urge { background: #fff1e6; color: #c2410c; }
.sig.praise { background: #fff0f4; color: #f2597c; }
.o-photos { display: flex; gap: 6px; margin-top: 7px; }
.o-photos img { width: 65px; height: 65px; border-radius: 8px; object-fit: cover; }
.o-hn { margin-top: 6px; font-size: 10px; color: #a08a83; }
.o-acts { display: flex; gap: 6px; margin-top: 10px; }
.o-acts .btn { flex: 1; height: 37px; font-size: 12px; }
.o-acts .btn.main { flex: 1.6; }

/* ===== 菜单管理 / 编辑 ===== */
.mrow { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; padding: 9px 11px; border-radius: 13px; background: #fff; box-shadow: 0 7px 15px -13px rgba(170,110,100,.8); }
.mrow.off { opacity: .55; }
.mrow img { width: 48px; height: 48px; flex: none; border-radius: 11px; object-fit: cover; }
.mrow .nm { font-size: 14px; font-weight: 600; }
.mrow .ds { margin-top: 2px; font-size: 10px; color: #bfa59e; }
.medit { flex: none; padding: 5px 8px; font-size: 11px; color: #f2597c; }
.switch { position: relative; flex: none; width: 44px; height: 26px; border-radius: 13px; background: #e9dcd6; transition: background .2s; }
.switch:after { content: ''; position: absolute; left: 2px; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch.on { background: #f2597c; }
.switch.on:after { transform: translateX(18px); }
.addnew { margin-bottom: 10px; }
.form { padding: 12px 15px 0; }
.photo-pick { position: relative; height: 190px; border-radius: 16px; overflow: hidden; background: #f7ece5; display: flex; align-items: center; justify-content: center; color: #b79b94; font-size: 13px; border: 1px dashed #f0d3c6; }
.photo-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-pick .chg { position: absolute; right: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: #f2597c; font-size: 11px; }
.field { margin-top: 12px; }
.field label { display: block; margin-bottom: 5px; font-size: 12px; color: #a08a83; }
.field input, .field textarea, .field select { width: 100%; padding: 10px 11px; border: 1px solid #fbe6da; border-radius: 11px; background: #fff; font-size: 15px; outline: none; -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
.row2 { display: flex; gap: 9px; }
.row2 .field { flex: 1; }
.catpick { display: flex; flex-wrap: wrap; gap: 6px; }
.catpick .chip { font-size: 12px; }
.form-acts { display: flex; gap: 9px; margin-top: 18px; }
.form-acts .btn { flex: 1; }
.hint { margin-top: 4px; font-size: 10px; color: #c2aaa3; }

/* ===== 历史 ===== */
.hcard { margin-bottom: 9px; padding: 11px 12px 10px; border-radius: 14px; background: #fff; box-shadow: 0 8px 17px -14px rgba(170,110,100,.85); }
.hcard .hd { display: flex; align-items: center; justify-content: space-between; }
.hcard .d { font-size: 10px; color: #bfa59e; }
.hcard .items { margin-top: 6px; font-size: 13px; font-weight: 500; }
.hcard .meta { margin-top: 3px; font-size: 10px; color: #bda49d; }
.hcard .note { margin-top: 6px; padding: 7px 8px; border-radius: 8px; background: #fff8f2; font-size: 10px; color: #a8804f; }
.hcard .acts { margin: 9px 0 0; }
.hcard .acts .btn { height: 35px; }

/* ===== 设置 ===== */
.setup-hero { padding: calc(30px + env(safe-area-inset-top)) 22px 26px; text-align: center; background: linear-gradient(160deg,#ffe6ee 0%,#fff1e5 62%,#fff9f2 100%); border-radius: 0 0 24px 24px; }
.setup-hero img { width: 110px; height: 110px; margin: 0 auto; }
.setup-hero .h { margin-top: 6px; font-size: 20px; font-weight: 600; color: #5b4441; }
.setup-hero .s { margin-top: 4px; font-size: 12px; color: #b39198; }
.roles { display: flex; gap: 9px; }
.role { flex: 1; padding: 12px 6px; border-radius: 13px; background: #fff; border: 1px solid #f6e3d9; text-align: center; font-size: 13px; color: #8d7570; }
.role .e { display: block; font-size: 24px; margin-bottom: 3px; }
.role.on { border-color: #f2597c; background: #fff0f4; color: #f2597c; font-weight: 600; }
.share { margin-top: 6px; padding: 9px 10px; border-radius: 10px; background: #fff; border: 1px dashed #ffd3dd; font-size: 11px; color: #8d7570; word-break: break-all; -webkit-user-select: text; user-select: text; }
.sec-title { margin: 20px 2px 6px; font-size: 12px; color: #a08a83; }
.warn { margin: 14px 15px 0; padding: 12px 13px; border-radius: 12px; background: #fff1e6; color: #c2410c; font-size: 12px; line-height: 1.6; }

::placeholder { color: #cdb8b1; }
