:root {
  --paper: #fff8ef;
  --paper-deep: #fff1df;
  --ink: #3d302c;
  --muted: #927c72;
  --coral: #ef725f;
  --coral-deep: #cf5649;
  --butter: #ffd878;
  --mint: #dcebdc;
  --line: #efd9c7;
  --white: #fffdf9;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; overflow-x: hidden; background: var(--paper); }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.app-shell { width: min(100%, 760px); margin: 0 auto; padding: 0 18px calc(112px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 14px; }
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-sticker { display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--coral); border-radius: 13px 13px 13px 5px; color: #744036; background: var(--butter); font-weight: 900; transform: rotate(-5deg); }
.brand-kicker, .eyebrow { margin: 0; color: var(--coral-deep); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.brand-lockup h1 { margin: 2px 0 0; font-size: 18px; letter-spacing: .04em; }
.round-button, .close-button { display: grid; place-items: center; border: 2px solid var(--line); color: var(--coral-deep); background: var(--white); }
.round-button { width: 40px; height: 40px; border-radius: 50%; font-size: 21px; }
.app-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 3px 0 21px; padding: 7px; border: 2px solid var(--line); border-radius: 18px; background: #fffdf9; }
.app-nav-item { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 7px; padding: 9px 10px; border: 0; border-radius: 13px; color: #9a7c6d; background: transparent; text-align: left; }
.app-nav-item span { grid-row: 1 / span 2; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; background: #fff1d1; font-size: 17px; }
.app-nav-item strong { font-size: 13px; line-height: 1.1; }
.app-nav-item small { margin-top: 3px; font-size: 9px; }
.app-nav-item.active { color: #6b3c31; background: #ffe9ad; box-shadow: inset 0 -2px 0 #e4b665; }
.app-nav-item.active span { background: #fffaf0; }
.view-panel { animation: view-in .24s ease both; }
@keyframes view-in { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.welcome-band { display: flex; justify-content: space-between; min-height: 206px; margin: 8px 0 16px; padding: 25px 23px; overflow: hidden; border: 2px solid #f0ca99; border-radius: 21px; background: #fff0bd; box-shadow: 0 5px 0 #f2dfbe; }
.welcome-copy { position: relative; z-index: 1; max-width: 67%; }
.welcome-copy h2 { margin: 9px 0 8px; font-size: 42px; line-height: 1.08; letter-spacing: -.02em; }
.welcome-copy h2 em { color: var(--coral-deep); font-style: normal; }
.welcome-copy p { max-width: 270px; margin: 0; color: #8d6b55; font-size: 13px; line-height: 1.7; }
.welcome-doodle { position: relative; width: 117px; min-width: 117px; margin-top: 2px; }
.doodle-box { position: absolute; right: 3px; bottom: 21px; width: 101px; padding: 18px 8px 15px; border: 2px solid #d76851; border-radius: 48% 46% 42% 51%; color: #8c5142; background: #fffaf0; text-align: center; font-size: 15px; line-height: 1.25; transform: rotate(8deg); }
.doodle-box strong { color: var(--coral-deep); font-size: 19px; }
.sun { position: absolute; top: 4px; right: 20px; color: var(--coral); font-size: 30px; }
.spark { position: absolute; color: #d99d4e; font-weight: 900; }
.spark-one { top: 43px; left: 3px; font-size: 18px; }
.spark-two { right: 0; bottom: 5px; font-size: 31px; }
.campus-strip { display: flex; align-items: center; gap: 11px; margin: 0 0 21px; padding: 13px 15px; border: 2px solid var(--line); border-radius: 15px; background: var(--white); }
.campus-strip > div { display: grid; gap: 2px; flex: 1; }
.field-caption { color: var(--muted); font-size: 11px; }
.campus-strip strong { font-size: 14px; }
.campus-strip select { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chevron { color: var(--coral); font-size: 22px; }
.api-status { margin: -11px 2px 15px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.api-status.checking { color: #9b7b45; }
.api-status.ready { color: #4f805b; }
.api-status.offline { color: #b15e4a; }
.category-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 1px 6px; scrollbar-width: none; }
.category-row::-webkit-scrollbar { display: none; }
.category-chip { flex: 0 0 auto; padding: 9px 13px; border: 2px solid transparent; border-radius: 999px; color: #90786c; background: transparent; font-size: 13px; font-weight: 800; }
.category-chip span { margin-right: 5px; }
.category-chip.active { border-color: #efc98f; color: #754335; background: #ffe6a3; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 25px 0 13px; }
.section-heading h2 { margin: 5px 0 0; font-size: 24px; }
.text-button { border: 0; color: var(--coral-deep); background: transparent; font-size: 13px; font-weight: 800; }
.text-button span { display: inline-block; margin-left: 3px; font-size: 18px; vertical-align: -2px; }
.store-list { display: grid; gap: 13px; }
.store-card { display: grid; grid-template-columns: 83px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 13px; border: 2px solid var(--line); border-radius: 17px; background: var(--white); box-shadow: 0 3px 0 rgba(236, 198, 165, .38); }
.store-avatar { display: grid; place-items: center; width: 83px; height: 83px; border-radius: 14px; color: #6f4d3e; background: var(--mint); font-size: 31px; }
.store-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.store-card:nth-child(2n) .store-avatar { background: #ffe1cc; }
.store-card:nth-child(3n) .store-avatar { background: #e5ddf0; }
.store-meta { min-width: 0; }
.store-meta h3 { margin: 0 0 6px; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.store-meta p { margin: 0 0 7px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.store-facts { display: flex; flex-wrap: wrap; gap: 8px; color: #9b7664; font-size: 11px; }
.store-facts strong { color: #d36250; }
.store-arrow { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #713e33; background: var(--butter); font-size: 21px; }
.loading-state, .empty-state { padding: 38px 16px; border: 2px dashed var(--line); border-radius: 17px; color: var(--muted); text-align: center; font-size: 13px; }
.loading-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--coral); animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.5); opacity: .4; } }
.floating-cart { position: fixed; z-index: 8; right: 50%; bottom: calc(17px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; width: min(calc(100% - 32px), 724px); min-height: 63px; padding: 8px 9px 8px 13px; border: 2px solid #dfaa6a; border-radius: 18px; background: #fff7e8; box-shadow: 0 8px 28px rgba(112, 69, 42, .15); transform: translateX(50%); }
.cart-summary { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cart-count { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: #fff9ed; background: var(--coral); font-size: 13px; font-weight: 900; }
.cart-summary strong, .cart-summary span { display: block; }
.cart-summary strong { font-size: 17px; }
.cart-summary span:last-child { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.primary-button, .secondary-button { min-height: 45px; border: 2px solid transparent; border-radius: 12px; font-weight: 900; }
.primary-button { color: #66382d; background: var(--butter); border-color: #e1b664; }
.primary-button:hover { background: #ffcf5a; }
.primary-button span { margin-left: 9px; font-size: 18px; }
.primary-button.compact { min-width: 105px; min-height: 45px; padding: 0 14px; }
.secondary-button { color: #7b4a3b; border-color: var(--line); background: var(--white); }
.full { width: 100%; }
.hidden { display: none !important; }
.drawer-backdrop, .modal-backdrop { position: fixed; z-index: 9; inset: 0; background: rgba(74, 48, 37, .28); backdrop-filter: blur(2px); }
.product-drawer, .modal { position: fixed; z-index: 10; width: min(100% - 24px, 560px); border: 2px solid var(--line); background: var(--paper); box-shadow: 0 20px 60px rgba(75, 46, 31, .22); }
.product-drawer { right: 50%; bottom: 0; max-height: min(82vh, 700px); padding: 11px 17px 25px; overflow: auto; border-bottom: 0; border-radius: 25px 25px 0 0; transform: translateX(50%); }
.drawer-handle { width: 43px; height: 5px; margin: 0 auto 17px; border-radius: 999px; background: #e6c8b1; }
.drawer-head, .modal-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.drawer-head h2, .modal h2 { margin: 5px 0 4px; font-size: 25px; }
.drawer-head p { margin: 0; color: var(--muted); font-size: 12px; }
.close-button { width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; }
.product-list { display: grid; gap: 10px; margin-top: 18px; }
.product-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.product-row h3 { margin: 0 0 4px; font-size: 15px; }
.product-row p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.product-copy { display: flex; align-items: center; gap: 10px; min-width: 0; }
.product-copy > div { min-width: 0; }
.product-image { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 11px; object-fit: cover; background: var(--paper-deep); }
.product-price { margin-top: 8px; color: var(--coral-deep); font-size: 16px; font-weight: 900; }
.quantity-control { display: flex; align-items: center; gap: 9px; }
.quantity-control button { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--line); border-radius: 50%; color: var(--coral-deep); background: var(--white); font-weight: 900; }
.quantity-control span { min-width: 13px; text-align: center; font-size: 13px; font-weight: 800; }
.modal { top: 50%; left: 50%; max-height: calc(100vh - 32px); padding: 23px 19px; overflow: auto; border-radius: 22px; transform: translate(-50%, -50%); }
.checkout-note { margin: 19px 0; padding: 11px 12px; border-radius: 12px; color: #8a644e; background: #fff0c8; font-size: 12px; line-height: 1.6; }
.checkout-note span { margin-right: 5px; color: var(--coral); }
.saved-address-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -8px 0 12px; padding: 9px 11px; border: 1px solid #cfe1d2; border-radius: 10px; color: #52735a; background: #eff8ee; font-size: 11px; }
.saved-address-summary strong { font-size: 11px; }
.saved-address-summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkout-form { display: grid; gap: 12px; }
.checkout-form label { display: grid; gap: 6px; color: #846a5e; font-size: 12px; font-weight: 800; }
.checkout-form input, .checkout-form textarea { width: 100%; border: 2px solid var(--line); border-radius: 11px; outline: 0; color: var(--ink); background: var(--white); padding: 11px 12px; }
.checkout-form input:focus, .checkout-form textarea:focus { border-color: #dfa76e; }
.checkout-form textarea { min-height: 72px; resize: vertical; }
.login-helper { margin: 10px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.login-form { display: grid; gap: 12px; }
.login-form label { display: grid; gap: 6px; color: #846a5e; font-size: 12px; font-weight: 800; }
.login-form input { width: 100%; min-height: 44px; border: 2px solid var(--line); border-radius: 11px; outline: 0; color: var(--ink); background: var(--white); padding: 10px 12px; }
.login-form input:focus { border-color: #dfa76e; }
.code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; }
.code-row .secondary-button { min-height: 44px; padding: 0 11px; white-space: nowrap; font-size: 12px; }
.login-status { min-height: 18px; margin: -2px 0 0; color: #8a644e; font-size: 11px; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-total { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 1px; padding: 13px 0 2px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.checkout-total strong { color: var(--coral-deep); font-size: 21px; }
.success-mark { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 14px; border-radius: 18px 18px 18px 5px; color: #fffdf9; background: var(--coral); font-size: 29px; font-weight: 900; transform: rotate(-6deg); }
.order-modal h2 { max-width: 390px; margin-top: 9px; line-height: 1.2; }
.order-helper { margin: 9px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.order-code-box { display: flex; align-items: center; gap: 11px; padding: 12px; border: 2px dashed #e1b36f; border-radius: 14px; background: #fff2c9; }
.order-code-box > span { color: #98765f; font-size: 11px; }
.order-code-box strong { flex: 1; overflow: hidden; color: #6d3d30; font-size: 15px; letter-spacing: .03em; text-overflow: ellipsis; white-space: nowrap; }
.copy-button { padding: 7px 10px; border: 0; border-radius: 8px; color: #6f3c30; background: var(--butter); font-size: 12px; font-weight: 900; }
.order-overview { display: grid; gap: 8px; margin: 15px 0 18px; padding: 13px; border-radius: 13px; background: var(--paper-deep); }
.order-overview p { display: flex; justify-content: space-between; gap: 10px; margin: 0; color: var(--muted); font-size: 12px; }
.order-overview strong { color: var(--ink); text-align: right; }
.order-notice { margin: 3px 0 0; padding-top: 9px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.5; }
.order-notice.success { color: #4f805b; }
.order-notice.warning { color: #a45b3c; }
.orders-list { display: grid; gap: 10px; margin-top: 18px; }
.order-list-item { padding: 13px; border: 2px solid var(--line); border-radius: 14px; background: var(--white); }
.order-list-item header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.order-list-item strong { color: #6e4336; font-size: 13px; }
.order-list-item time { color: var(--muted); font-size: 11px; }
.order-list-item p { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.order-status { display: inline-block; padding: 4px 7px; border-radius: 7px; color: #8a5d31; background: #ffe6ad; font-size: 11px; font-weight: 800; }
.order-contact { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.order-contact a, .tracking-details a { color: var(--coral-deep); text-decoration: none; }
.tracking-code { margin: 13px 0 15px; padding: 10px 12px; border: 1px dashed #e1b36f; border-radius: 11px; color: #765044; background: #fff2c9; font-size: 11px; overflow-wrap: anywhere; }
.order-progress { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 5px 0 19px; }
.progress-step { position: relative; display: grid; justify-items: center; gap: 7px; min-width: 0; color: #b29a8b; text-align: center; }
.progress-step::before { content: ''; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: #ead9c7; }
.progress-step:first-child::before { display: none; }
.progress-step i { position: relative; z-index: 1; width: 14px; height: 14px; border: 3px solid #ead9c7; border-radius: 50%; background: var(--paper); }
.progress-step span { max-width: 100%; font-size: 9px; line-height: 1.25; overflow-wrap: anywhere; }
.progress-step.done { color: #a65345; font-weight: 800; }
.progress-step.done::before, .progress-step.done i { border-color: var(--coral); background: var(--coral); }
.tracking-details { display: grid; gap: 1px; margin: 0 0 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--line); }
.tracking-details p { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; margin: 0; padding: 11px 12px; color: var(--muted); background: var(--white); font-size: 11px; }
.tracking-details p strong { min-width: 0; color: var(--ink); font-size: 12px; text-align: right; overflow-wrap: anywhere; }
.event-timeline { display: grid; gap: 0; padding: 2px 0 0 4px; }
.event-timeline > div { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; min-height: 48px; }
.event-timeline > div:not(:last-child)::before { content: ''; position: absolute; top: 12px; left: 5px; bottom: -8px; width: 2px; background: var(--line); }
.event-timeline i { position: relative; z-index: 1; width: 12px; height: 12px; margin-top: 3px; border: 3px solid #efa082; border-radius: 50%; background: var(--paper); }
.event-timeline p { display: grid; gap: 3px; margin: 0; }
.event-timeline strong { color: #765044; font-size: 11px; line-height: 1.45; }
.event-timeline span, .event-timeline .muted { color: var(--muted); font-size: 10px; }
.toast { position: fixed; z-index: 20; bottom: 92px; left: 50%; max-width: calc(100% - 36px); padding: 11px 15px; border: 1px solid #7e5a4c; border-radius: 12px; color: #fffaf1; background: #5b4038; box-shadow: 0 8px 24px rgba(54, 34, 26, .2); font-size: 12px; transform: translateX(-50%); }
.feature-hero { display: flex; align-items: center; justify-content: space-between; min-height: 188px; margin: 8px 0 22px; padding: 25px 23px; overflow: hidden; border: 2px solid var(--line); border-radius: 22px; background: #e9f0df; box-shadow: 0 5px 0 #d2dec5; }
.market-hero { background: #e9e1f0; box-shadow: 0 5px 0 #d5c8df; }
.feature-hero h2 { margin: 8px 0 9px; font-size: 36px; line-height: 1.1; }
.feature-hero h2 em { color: var(--coral-deep); font-style: normal; }
.feature-hero p { max-width: 275px; margin: 0; color: #7d7565; font-size: 12px; line-height: 1.7; }
.hero-sticker { display: grid; place-items: center; width: 107px; height: 107px; border: 2px solid #c4cfaf; border-radius: 48% 52% 44% 56%; color: #71885c; background: #fff9ed; font-size: 44px; transform: rotate(8deg); }
.market-sticker { border-color: #c3b3d2; color: #8f6ba0; background: #fffaf3; transform: rotate(-7deg); }
.hero-sticker small { display: block; margin-top: -30px; color: #a18b7d; font-size: 10px; font-weight: 900; letter-spacing: .08em; transform: rotate(-8deg); }
.feature-heading { margin-top: 0; }
.primary-button.mini { min-height: 38px; padding: 0 11px; font-size: 11px; }
.primary-button.mini span { margin-left: 3px; font-size: 16px; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 14px; padding: 0 1px 5px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: #987c6e; background: #fffdf9; font-size: 12px; font-weight: 800; }
.filter-chip.active { border-color: #dfb26f; color: #754335; background: #ffe6a3; }
.post-list, .listing-list { display: grid; gap: 12px; }
.post-card { padding: 15px; border: 2px solid var(--line); border-radius: 17px 17px 17px 7px; background: var(--white); box-shadow: 0 3px 0 rgba(236, 198, 165, .32); }
.post-card-top { display: flex; align-items: center; gap: 9px; }
.user-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 12px 12px 12px 4px; color: #6f5445; background: #dcebdc; font-weight: 900; }
.post-card:nth-child(2n) .user-mark { background: #ffe1cc; }
.post-card:nth-child(3n) .user-mark { background: #e5ddf0; }
.post-author { display: grid; flex: 1; gap: 2px; min-width: 0; }
.post-author strong { overflow: hidden; color: #63453b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.post-author span { color: var(--muted); font-size: 10px; }
.topic-tag { padding: 5px 8px; border-radius: 8px; color: #8b653b; background: #fff0c5; font-size: 10px; font-weight: 900; }
.post-content-button { width: 100%; margin: 13px 0 10px; padding: 0; border: 0; color: var(--ink); background: transparent; text-align: left; }
.post-content-button p { margin: 0; font-size: 14px; line-height: 1.7; }
.post-actions { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid #f2e4d5; color: #a18173; font-size: 11px; }
.comment-link, .report-button { border: 0; color: var(--coral-deep); background: transparent; font-size: 11px; font-weight: 800; }
.comment-link span { margin-left: 5px; font-size: 15px; }
.listing-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 13px; padding: 12px; border: 2px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 3px 0 rgba(236, 198, 165, .32); }
.listing-visual { display: grid; place-items: center; align-content: center; min-height: 125px; border-radius: 13px; color: #8c6f56; background: #f4dfb2; }
.listing-card:nth-child(2n) .listing-visual { background: #dcebdc; color: #6a8568; }
.listing-card:nth-child(3n) .listing-visual { background: #e5ddf0; color: #806b98; }
.listing-visual span { font-size: 42px; font-weight: 300; }
.listing-visual small { margin-top: 6px; font-size: 10px; font-weight: 900; }
.listing-body { min-width: 0; }
.listing-title-row { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.listing-title-row h3 { margin: 1px 0 5px; color: #63453b; font-size: 15px; line-height: 1.35; }
.listing-title-row strong { flex: 0 0 auto; color: var(--coral-deep); font-size: 16px; }
.listing-body p { display: -webkit-box; margin: 0 0 11px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.listing-meta { display: grid; gap: 4px; color: #987c6e; font-size: 10px; }
.interest-button { width: 100%; min-height: 33px; margin-top: 11px; border: 1px solid #e3b975; border-radius: 9px; color: #744536; background: #fff0bc; font-size: 11px; font-weight: 900; }
.interest-button span { margin-left: 5px; font-size: 15px; }
.feature-form { display: grid; gap: 12px; margin-top: 18px; }
.feature-form label { display: grid; gap: 6px; color: #846a5e; font-size: 12px; font-weight: 800; }
.feature-form input, .feature-form textarea, .feature-form select { width: 100%; border: 2px solid var(--line); border-radius: 11px; outline: 0; color: var(--ink); background: var(--white); padding: 11px 12px; }
.feature-form input:focus, .feature-form textarea:focus, .feature-form select:focus { border-color: #dfa76e; }
.feature-form textarea { min-height: 112px; resize: vertical; }
.detail-post-copy { margin: 19px 0; padding: 15px; border-radius: 13px; color: #654a3f; background: #fff1cd; font-size: 15px; line-height: 1.8; }
.detail-tools { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.comment-form { display: flex; gap: 8px; margin-top: 19px; }
.comment-form input { flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: 10px; outline: 0; padding: 10px 11px; color: var(--ink); background: var(--white); }
.comment-form button { width: 42px; border: 0; border-radius: 10px; color: #714235; background: var(--butter); font-size: 20px; font-weight: 900; }
.moderation-hint { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }

@media (min-width: 720px) {
  .app-shell { padding-right: 28px; padding-left: 28px; }
  .store-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-card { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .store-avatar { width: 72px; height: 72px; }
}

@media (max-width: 420px) {
  .app-nav-item { padding: 8px 5px; column-gap: 5px; }
  .app-nav-item span { width: 27px; height: 27px; font-size: 15px; }
  .app-nav-item strong { font-size: 12px; }
  .app-nav-item small { font-size: 8px; }
  .welcome-band { min-height: 194px; padding: 21px 17px; }
  .welcome-copy { max-width: 72%; }
  .welcome-copy h2 { font-size: 29px; }
  .welcome-copy p { font-size: 12px; }
  .welcome-doodle { width: 93px; min-width: 93px; transform: scale(.85); transform-origin: right center; }
  .store-card { grid-template-columns: 65px minmax(0, 1fr) auto; gap: 9px; padding: 10px; }
  .store-avatar { width: 65px; height: 65px; font-size: 25px; }
  .store-meta h3 { font-size: 15px; }
  .feature-hero { min-height: 178px; padding: 20px 16px; }
  .feature-hero h2 { font-size: 28px; }
  .hero-sticker { width: 87px; height: 87px; font-size: 34px; }
  .listing-card { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .listing-visual { min-height: 117px; }
  .listing-visual span { font-size: 34px; }
}

@media (max-width: 520px) {
  .app-shell { padding-right: 12px; padding-left: 12px; }
  .topbar { padding-top: calc(15px + env(safe-area-inset-top)); }
  .welcome-band { min-height: 184px; padding: 19px 16px; }
  .welcome-copy { max-width: calc(100% - 84px); }
  .welcome-copy p { max-width: 230px; line-height: 1.55; }
  .welcome-doodle { width: 78px; min-width: 78px; transform: scale(.78); transform-origin: right center; }
  .campus-strip { margin-bottom: 15px; }
  .section-heading { margin-top: 20px; }
  .store-card { grid-template-columns: 58px minmax(0, 1fr) 34px; gap: 9px; padding: 9px; }
  .store-avatar { width: 58px; height: 58px; font-size: 23px; }
  .store-meta h3 { font-size: 14px; }
  .store-meta p { margin-bottom: 5px; font-size: 11px; }
  .store-facts { gap: 4px 7px; font-size: 10px; }
  .store-arrow { width: 32px; height: 32px; }
  .floating-cart { width: calc(100% - 20px); min-height: 58px; padding-left: 10px; border-radius: 15px; }
  .cart-summary { gap: 8px; }
  .cart-summary strong { font-size: 15px; }
  .cart-summary span:last-child { max-width: 120px; }
  .primary-button.compact { min-width: 88px; min-height: 42px; padding: 0 10px; }
  .modal { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 18px 15px; border-radius: 18px; }
  .modal h2 { font-size: 22px; }
  .checkout-form input, .checkout-form textarea { min-height: 44px; padding: 10px; }
  .checkout-form textarea { min-height: 68px; }
  .product-drawer { width: 100%; max-height: 88dvh; padding-right: 14px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); padding-left: 14px; }
  .order-progress { gap: 1px; }
  .progress-step span { font-size: 8px; }
  .tracking-details p { grid-template-columns: 64px minmax(0, 1fr); padding: 10px; }
}

@media (max-width: 380px) {
  .app-nav { gap: 4px; padding: 5px; }
  .app-nav-item { grid-template-columns: 1fr; justify-items: center; gap: 2px; padding: 7px 3px; text-align: center; }
  .app-nav-item span { grid-row: auto; width: 25px; height: 25px; font-size: 14px; }
  .app-nav-item strong { font-size: 11px; }
  .app-nav-item small { font-size: 8px; }
  .welcome-copy h2 { font-size: 27px; }
  .form-grid { grid-template-columns: 1fr; }
  .floating-cart .primary-button span { display: none; }
}

/* Keep checkout and order status readable on narrow phone screens. */
@media (max-width: 520px) {
  html { overflow-x: hidden; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
  body { min-width: 0; overflow-x: hidden; }
  .topbar, .section-heading, .drawer-head, .modal-head { min-width: 0; }
  .section-heading h2, .drawer-head h2, .modal h2 { overflow-wrap: anywhere; }
  .order-code-box { min-width: 0; gap: 7px; padding: 10px; }
  .order-code-box strong { min-width: 0; font-size: 12px; letter-spacing: 0; }
  .copy-button { flex: 0 0 auto; padding-right: 8px; padding-left: 8px; }
  .order-overview p { align-items: start; }
  .order-overview p span { flex: 0 0 auto; }
  .order-overview strong { min-width: 0; max-width: 70%; overflow-wrap: anywhere; }
  .checkout-total strong { flex: 0 0 auto; }
  .floating-cart { gap: 8px; }
  .floating-cart .cart-summary { min-width: 0; flex: 1 1 auto; }
  .floating-cart .primary-button { flex: 0 0 auto; white-space: nowrap; }
  .form-grid { min-width: 0; }
}
