/* v0.7 shared UI refinement; retains v0.6 theme and component semantics. */
body{background:#e8e5df;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;line-height:1.55}
.phone{--bg:#fff9f3;--card:#fffefb;--ink:#503b38;--muted:#73615e;--accent:#b94760;--soft:#fbe8e9;--line:#e9dcd6;border-radius:28px;box-shadow:0 12px 48px #3b30251a}
.phone.simple{--bg:#f5f5ef;--card:#fff;--ink:#233d35;--muted:#5d6d62;--accent:#285f49;--soft:#e6eddf;--line:#dce2d5;border-radius:20px}
h1{font-weight:650;letter-spacing:-.3px}h2{font-size:22px;font-weight:650;line-height:1.4;letter-spacing:-.5px}h3{font-weight:600}
.status{height:34px;padding-inline:22px;font-weight:600}.top{min-height:56px;padding:4px 16px 10px;gap:8px;border-bottom:0}.top h1{font-size:19px;line-height:1.35}.top .link{border:1px solid var(--line);border-radius:22px;padding:8px 14px;min-height:44px;font-weight:600}.back{width:44px;flex:none;background:var(--card);border:1px solid var(--line);border-radius:50%}.subline{padding:0 20px 12px;font-size:12px}
.banner{margin:0 16px 16px;min-height:88px;padding:16px 18px;border-radius:18px;border:1px solid var(--line)}.banner h2{font-size:20px;max-width:224px;line-height:1.5}.banner img{width:76px;height:64px;object-fit:contain}
.phone .catalog{column-gap:12px}.phone .categories{width:76px;background:transparent;padding:0 0 16px 8px}.phone .category{border:0;border-radius:10px;padding:12px 6px;min-height:52px;color:var(--muted);margin-bottom:4px;font-weight:500}.phone .category.active{background:var(--soft);color:var(--accent);font-weight:650;box-shadow:inset 3px 0 var(--accent)}.phone .products{padding:0 16px 20px 0}.phone .sectiontitle{padding:8px 0 12px;min-height:44px;font-size:14px;z-index:2}.phone .dish{grid-template-columns:88px minmax(0,1fr);gap:12px;margin-bottom:14px;border-radius:12px;min-height:126px}.phone .dish-thumb{border-radius:12px}.phone .dish-content{min-height:126px;padding:10px 0 6px}.phone .dish-main h3{font-size:15px;line-height:22px;font-weight:650}.phone .dish-desc{font-size:12px;line-height:18px;margin-top:4px}.phone .dish-footer{gap:0;flex-wrap:wrap}.phone .dish-price{font-weight:650;font-size:14px;line-height:22px;flex:1;white-space:nowrap}.phone .dish-price small{font-weight:400;font-size:11px}.phone .dish-actions{margin-left:auto}.phone .dish-actions .stepper{gap:0}.phone .dish-actions .stepper span{min-width:16px}.phone .dish-actions .stepper button{width:44px;height:44px;min-height:44px}.phone .dish-actions .stepper button:before{width:28px;height:28px;left:8px;top:8px}.phone .dish-actions .stepper button:after{left:0;width:44px}
.cartbar{margin:8px 12px 10px;min-height:66px;border-radius:16px;padding:6px 6px 6px 14px;gap:6px}.cartbar .summary{padding:4px 0}.cartbar .summary span{font-size:15px;font-weight:600}.cartbar small{opacity:.8;font-size:12px}.cartbar .primary{min-width:96px;min-height:52px;border-radius:11px;font-weight:650}
.primary,.secondary{min-height:48px;font-size:15px;font-weight:600;border-radius:12px;padding:12px 16px}.secondary{border:1px solid var(--line)}button:disabled{opacity:.45}.tabs{padding:3px 8px max(8px,env(safe-area-inset-bottom));gap:4px}.tabs button{min-height:60px;padding:8px 2px 4px;border-radius:12px;font-weight:500}.tabs button.active{background:var(--soft);font-weight:650}.tabs svg{width:21px;height:21px}
.content{padding:20px 20px 32px;scroll-padding:24px}.content>h2{margin:4px 0 20px}.content>p{line-height:1.7}.row{padding:18px 0;gap:12px;min-height:72px}.row small{font-size:12px;margin-bottom:6px}.row h3{font-size:16px}.row button{padding-inline:12px}.ordercard{position:relative;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:18px 36px 18px 16px;margin:0 0 12px;min-height:76px}.ordercard:after{content:'›';position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:24px;color:var(--muted)}.ordercard strong{font-size:16px;font-weight:650}.ordercard small{margin-top:6px;line-height:1.6}.pill{border-radius:20px;background:var(--soft);padding:4px 10px;line-height:1.5;font-weight:600}
.actions{padding:12px 16px max(16px,env(safe-area-inset-bottom));gap:8px;background:var(--card);box-shadow:0 -4px 16px #30251d04}.actions button{min-height:48px}.herofood{height:232px;border:1px solid var(--line);border-radius:20px;margin-bottom:24px}.notice{border:1px solid var(--line);border-radius:12px;padding:14px 16px;font-size:13px;line-height:1.7}.alert{border-radius:0 10px 10px 0;margin:8px 16px 16px}.formerror{line-height:1.6;margin-top:8px}
label{font-size:13px;font-weight:600;color:var(--ink);margin-bottom:20px}label>*{margin-top:8px;font-weight:400}input,textarea,select{border-radius:10px;padding:13px 14px;min-height:48px;font-size:16px;line-height:1.5;background:var(--card)}input::placeholder,textarea::placeholder{color:var(--muted);opacity:.8}textarea{min-height:104px}.fieldline{align-items:flex-start}.fieldline>label{min-width:0}.smallbutton{min-height:44px;padding:10px 8px;font-size:13px;font-weight:500}.check{min-height:44px;font-size:13px}.check input{flex:none;width:20px;height:20px;min-height:20px;accent-color:var(--accent)}.empty{padding:48px 8px 32px}.empty h2{font-size:22px}.empty p{font-size:14px;color:var(--muted)}.empty img{width:132px}.sheet{padding:24px 20px 28px;border-radius:24px 24px 0 0;box-shadow:0 -8px 40px #30251d14}.sheet h2{font-size:22px;margin-bottom:20px}.toast{border-radius:12px;font-size:14px;line-height:1.6}
.lab{padding:10px 16px;min-height:58px;color:#514c45}.lab button,.lab select{background:#fff;border:1px solid #c8c3b9;border-radius:8px;padding:5px 10px}.lab a{color:#285f49}
@media(max-width:359px){.phone .categories{width:62px;padding-left:4px}.phone .catalog{column-gap:8px}.phone .products{padding-right:12px}.phone .dish{grid-template-columns:70px minmax(0,1fr);gap:8px}.phone .dish-desc{font-size:12px}.phone .dish-price{flex-basis:100%;font-size:13px}.phone .dish-content{min-height:138px}.phone .dish-actions{margin-top:0}.banner{padding:14px}.banner h2{font-size:18px}.banner img{width:60px}.content{padding-inline:16px}}
@media(max-width:450px){.phone,.phone.simple{border-radius:0;box-shadow:none;height:calc(100dvh - 96px)}.lab{min-height:96px;padding:6px;gap:4px}.lab select,.lab button{min-height:36px;font-size:12px}.lab span{display:none}}
@media(prefers-reduced-motion:no-preference){button,a{transition:background-color .16s,color .16s,border-color .16s}button:active:not(:disabled){transform:none;filter:brightness(.94)}.sheet{animation:sheet-in .18s ease-out}.toast{animation:feedback-in .14s ease-out}@keyframes sheet-in{from{transform:translateY(20px);opacity:0}to{transform:none;opacity:1}}@keyframes feedback-in{from{opacity:0}to{opacity:1}}}
