/* Customer account pages (sign in, My orders, order detail, booking). Builds on site.css tokens; mobile first, like the App. */
.page-acct { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.acct { padding-top: 8px; padding-bottom: 24px; min-height: 60vh; }
.acct h1 { font-size: 1.45rem; margin: .2em 0 .3em; }
.acct h2 { font-size: 1.1rem; margin: 0 0 .5em; }
.acct h3 { font-size: .98rem; margin: 14px 0 6px; }
.acct-loading { padding: 48px 0; }
.acct-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 12px 0; box-shadow: var(--shadow); }
.sub-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 14px 0; background: #fbfcfc; }
.acct-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.acct-links { display: grid; gap: 10px; margin: 14px 0; }
.app-mini .stores { margin-top: 8px; }

/* segmented tabs */
.seg { display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin: 12px 0; }
.seg button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 9px 6px; font: inherit; font-size: .94rem; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button[aria-selected="true"] { background: #fff; color: var(--brand-dark); font-weight: 650; box-shadow: 0 1px 3px rgba(16, 32, 28, .12); }
.seg .n { color: var(--muted); font-weight: 500; font-size: .82rem; }
.seg-wide { overflow-x: auto; }
@media (max-width: 600px) { .seg button { min-height: 44px; min-width: 44px; } } /* tap area on phones, as in the App (batch 5, docs/web-a11y.md) */

/* form fields */
.fld { display: grid; gap: 6px; margin: 12px 0; border: 0; padding: 0; }
.fld > span:first-child, .fld legend { font-weight: 600; font-size: .95rem; }
.fld legend { padding: 0; margin-bottom: 6px; }
.fld input, .fld select, .fld textarea, .phone-row input, .phone-row select, .addon select {
  width: 100%; min-height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; background: #fff; color: var(--ink); }
.fld textarea { min-height: 84px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .phone-row input:focus, .phone-row select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.phone-row { display: grid; grid-template-columns: 104px 1fr; gap: 8px; margin: 12px 0; }
.signin .btn-block { margin-top: 6px; }
.btn.is-busy { opacity: .7; }
.btn-text.danger { color: var(--danger); }
.acct .notice { border: 1px solid #f0d9a2; background: #fffaf0; border-radius: 12px; padding: 10px 12px; margin: 12px 0; }
.acct .notice.ok { border-color: #bfe3d2; background: #eef8f3; }
.acct .notice.hold { border-color: #f2cf86; }
.acct .error:empty { display: none; }

/* order list */
.orders { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; }
.order-row { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--ink); box-shadow: var(--shadow); }
.order-row:hover { text-decoration: none; border-color: #cfd8d5; }
.order-row.needs { border-color: #f2cf86; }
.order-row .ic, .od-head .ic, .book-top .ic { font-size: 1.6rem; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; flex: none; }
.order-row .body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.order-row .line1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-row .line1 strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-row .chev { color: var(--muted); font-size: 1.4rem; }
.empty { padding: 28px 18px; }

/* status badges */
.st { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 650; white-space: nowrap; background: var(--bg); color: var(--ink-2); }
.st-AWAITING_PAYMENT, .st-AWAITING_CUSTOMER { background: #fff2d6; color: #8a5a00; }
.st-AWAITING_QUOTE, .st-ATTENTION { background: #eef1f0; color: var(--ink-2); }
.st-CONFIRMED, .st-IN_PROGRESS { background: var(--brand-soft); color: var(--brand-dark); }
.st-DONE { background: #e6f4ec; color: var(--ok); }
.st-CANCELED, .st-REFUNDED { background: #f3eeee; color: #7a5a5a; }

/* order detail */
.od-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.od-head h1 { margin: 0 0 4px; }
.acct .kv { margin: 14px 0; }
.price-box { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.price-box table { width: 100%; border-collapse: collapse; }
.price-box td { padding: 5px 0; vertical-align: top; }
.price-box .num, .offer-card .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-box .total td { border-top: 1px solid var(--line); padding-top: 9px; font-weight: 700; font-size: 1.05rem; }
.price-box .est { margin: 6px 0 0; padding-left: 18px; }
.acts { display: grid; gap: 10px; margin-top: 16px; }
.acts .btn-text { justify-self: center; }
.offers { margin-top: 16px; }
.offer-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 8px 0; }
.offer-card .row { display: flex; justify-content: space-between; gap: 8px; }
.tl li { display: flex; justify-content: space-between; gap: 12px; }
.contact-lines { line-height: 1.9; }
.stars { display: flex; gap: 6px; margin: 6px 0 4px; }
.stars button { font-size: 2rem; line-height: 1; border: 0; background: none; color: #d5dbd9; cursor: pointer; padding: 0 2px; }
.stars button.on { color: var(--accent); }
.pay-card #pe { margin: 12px 0 16px; min-height: 120px; }

/* booking flow */
.book-top { display: flex; align-items: center; gap: 12px; margin: 6px 0 8px; }
.book-top h1 { margin: 0; font-size: 1.3rem; }
.book-top p { margin: 0; }
.acct > .bar { display: block; flex: none; margin: 4px 0 6px; }
.pkg-list { display: grid; gap: 10px; }
.pkg { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; background: #fff; }
.pkg input { margin-top: 4px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.pkg > span { display: grid; gap: 2px; }
.pkg .price { color: var(--brand-dark); font-weight: 650; }
.pkg:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.addons { display: grid; gap: 8px; }
.addon { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.addon select { width: 80px; min-height: 40px; }
.addon input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--brand); }
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 12px; }
.week-nav .btn { flex: 0 0 auto; white-space: nowrap; } /* 新用户走查第 7 条: 「‹ 前一周」 kept on one line at 375 px; the dates wrap instead */
.week-nav > span { text-align: center; min-width: 0; word-break: keep-all; }
.slots { min-height: 120px; }
.picked { margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.slot-day h3 { margin: 12px 0 6px; font-size: .95rem; }
.slot-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot { min-height: 42px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; font: inherit; font-size: .93rem; cursor: pointer; color: var(--ink); font-variant-numeric: tabular-nums; }
.slot[aria-pressed="true"], .day[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; font-weight: 650; }
.chip-opt { display: inline-flex; }
.chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opt span { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: .94rem; cursor: pointer; }
.chip-opt input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.chip-opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-soft); }
#inline-signin .acct-card, #slots .acct-card { box-shadow: none; margin: 16px 0 0; background: #fbfcfc; }

/* bottom tabs on phones (like the App); hidden on wide screens where the header has the links */
.acct-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.acct-tabs a { display: grid; justify-items: center; gap: 1px; padding: 7px 0 6px; font-size: .74rem; color: var(--muted); }
.acct-tabs a span { font-size: 1.25rem; line-height: 1.2; }
.acct-tabs a[aria-current="page"] { color: var(--brand); font-weight: 650; }
.acct-tabs a:hover { text-decoration: none; }
@media (min-width: 761px) { .acct-tabs { display: none; } .page-acct { padding-bottom: 0; } }
/* phones: the bottom tabs carry the links, the header keeps the logo and the language switch */
@media (max-width: 760px) { .page-acct .top-nav > a:not(.lang) { display: none; } }
.acct .day b { font-size: 1rem; }

/* cleaning booking (account-cleaning.js) */
.counters { display: grid; gap: 8px; }
.counter { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px 8px 14px; background: #fff; }
.counter .ctl { display: inline-flex; align-items: center; gap: 10px; }
.counter .ctl .btn { min-width: 40px; min-height: 38px; font-size: 1.1rem; padding: 0; }
.counter output { min-width: 1.4em; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.crew { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.crew .fld { margin-bottom: 4px; }
.addon > span { display: grid; gap: 2px; }
.tool-note { display: block; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; min-height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; }
.coupon-row .btn { min-height: 46px; }
.step-when .days { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
/* 团购券 (account-deals.js) */
.deal-card{display:flex;gap:12px;align-items:flex-start;color:inherit;text-decoration:none}.deal-card:hover{box-shadow:0 0 0 2px #cfe5de}
.deal-photo{width:84px;height:84px;object-fit:cover;border-radius:10px;flex:none}.deal-photo.big{width:100%;height:auto;max-height:240px;margin-bottom:10px}
.deal-price{font-size:20px;font-weight:700;color:#b3241b}.deal-big .deal-price{font-size:28px}.deal-off{background:#fde8e6;color:#b3241b;border-radius:6px;padding:1px 6px;font-size:13px;font-weight:600}
.deal-rules{padding-left:18px;margin:6px 0}.deal-rules li{margin:3px 0}
.qty-row{display:flex;align-items:center;gap:10px;margin-bottom:10px}.qty-row .btn{min-width:44px}.qty-row strong{min-width:24px;text-align:center;font-size:18px}
.voucher{border:1px dashed #1F6F5C;border-radius:12px;padding:10px 12px;margin:10px 0;background:#f4faf8}.voucher.v-USED,.voucher.v-REFUNDED,.voucher.v-REFUNDING,.voucher.v-EXPIRED{border-color:#c9cdd4;background:#f7f8fa}
.v-top{display:flex;justify-content:space-between;gap:8px}.v-code{font:700 26px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:2px;margin:6px 0;text-align:center}
.test-pay{border:1px solid #f3d28a;background:#fff8e6;border-radius:10px;padding:10px 12px}

/* 我的发布 (account-posts.js, batch 13) */
.post-card { text-align: left; }
.posts-head { margin: 8px 0 12px; } .posts-head h1 { margin: 0 0 4px; }
.post-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-top strong { flex: 1; min-width: 0; }
.post-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn-sm { padding: 6px 12px; font-size: .88rem; }
.post-pinned { color: #b45309; font-weight: 600; }
.post-edit textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; }
.post-edit input { width: 100%; box-sizing: border-box; font: inherit; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; }
.post-edit .fld { display: block; margin: 10px 0; } .post-edit .fld > span { display: block; font-weight: 600; margin-bottom: 4px; }
.pin-box { background: var(--bg); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.badge.st-PUBLISHED { background: #e6f4ea; color: #1e7b45; } .badge.st-PENDING { background: #fff3d6; color: #8a5a00; } .badge.st-REJECTED, .badge.st-CLOSED, .badge.st-EXPIRED, .badge.st-DONE { background: #f3f3f3; color: #666; }
.pack-left { margin: 0 0 10px; font-weight: 600; color: #1f6f5c; }
.receipt-list { list-style: none; padding: 0; margin: 0; } .receipt-list li { padding: 8px 0; border-top: 1px solid var(--line); }
/* 我的发布: the cover's small copy on each card; 改帖子 changes photos (add / remove / cover). Narrow screens: the title
   gets its own line under the kind and status (it was squeezed between them). */
.post-cover { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex: none; background: #f2f4f4; }
@media (max-width: 560px) { .post-top strong { order: 5; flex-basis: 100%; } .post-top .badge:last-of-type { margin-left: auto; } }
.pe-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 8px; }
.pe-photos:empty { display: none; }
@media (min-width: 720px) { .pe-photos { grid-template-columns: repeat(5, 1fr); } }
.pe-photo { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f2f4f4; }
.pe-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-photo.busy img { opacity: .45; }
.pe-cover { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.62); color: #fff; font-size: .78rem; padding: 2px 7px; border-radius: 8px; }
.pe-del { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.62); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.pe-first { position: absolute; left: 4px; bottom: 4px; border: 0; border-radius: 8px; background: rgba(255,255,255,.92); color: var(--brand, #1F6F5C); font-size: .78rem; font-weight: 600; padding: 4px 8px; min-height: 28px; cursor: pointer; }
.pe-add { cursor: pointer; }
/* 我的搜索提醒 (account-searches.js) */
.ss-card .post-top strong { flex: 1 1 auto; }
.ss-freq { margin: 10px 0 4px; } .ss-freq select { width: 100%; }
/* 店址 on deals and vouchers (监工 15:1x): opens the map */
.deal-where { margin: 6px 0 0; }
.deal-map { display: inline-block; padding: 4px 0; overflow-wrap: anywhere; }
