/* Pro portal (/pro/) — builds on site.css tokens. Bottom tab bar on phones, top-aligned list on desktop. */
.page-pro-app main { padding-bottom: 96px; min-height: 60vh; }
.pro-loading { padding: 40px 0; }
.pro-auth { margin-top: 28px; }
.fld { display: block; margin: 12px 0; }
.fld > span { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 6px; }
.fld input, .fld select, .fld textarea, .line input { width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.fld input:focus, .fld select:focus, .fld textarea:focus, .line input:focus { outline: none; border-color: var(--brand); }
.fld small { display: block; margin-top: 4px; }
.grp { border: 0; padding: 0; margin: 6px 0 12px; }
.grp legend { font-weight: 650; padding: 0; margin-bottom: 2px; }
.grp .check { margin: 8px 0; }
.check em { font-style: normal; }
.terms { max-height: 180px; overflow: auto; white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: .9rem; }
.note { background: #fff8e6; border: 1px solid #f2d899; border-radius: 12px; padding: 12px 14px; margin: 12px 0; text-align: left; }
.note p { margin: 4px 0 0; white-space: pre-wrap; }
.photo-row { display: flex; align-items: center; gap: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.row-btns .btn { flex: 1; min-width: 140px; }
.line { display: grid; grid-template-columns: 1fr 110px 36px; gap: 8px; margin: 8px 0; align-items: center; }
.sum { margin-top: 10px; background: var(--bg); border-radius: 12px; padding: 6px 12px; }
.sum .you { font-weight: 750; color: var(--brand-dark); }
.error.ok { color: var(--ok); }
.lead-list { list-style: none; padding: 0; margin: 0; }
.lead-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 10px 0; color: var(--ink); }
a.lead-card:hover { text-decoration: none; border-color: var(--brand); }
.lead-card p { margin: 4px 0 0; }
.lead-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lead-top strong { flex: 1; min-width: 0; }
.badge.b-CHOSEN, .badge.p-PAID, .badge.st-APPROVED { background: var(--brand-soft); color: var(--brand-dark); }
.badge.b-NOT_CHOSEN, .badge.b-CLOSED, .badge.b-EXPIRED, .badge.b-WITHDRAWN, .badge.p-VOID, .badge.st-REJECTED { background: #f3f3f3; color: var(--muted); }
.badge.st-PENDING, .badge.st-NEEDS_INFO, .badge.st-PAUSED, .badge.p-PENDING { background: #fff3d6; color: #8a5a00; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; }
.stat strong { font-size: 1.5rem; }
.pro-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.pro-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .78rem; color: var(--muted); padding: 4px 0; }
.pro-tabs a span { font-size: 1.25rem; line-height: 1; }
.pro-tabs a.on { color: var(--brand); font-weight: 700; }
.pro-tabs a:hover { text-decoration: none; }
@media (min-width: 900px) { .pro-tabs { max-width: 640px; margin: 0 auto; border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; } }
.page-pro-app .top-nav > a:first-child { display: inline-block; }
/* Stripe Connect payout account (pro-payouts.js) */
.payout-acct .badge.acct-ACTIVE { background: #e6f4ea; color: #1e7b45; }
.payout-acct .badge.acct-NEEDS_INFO { background: #fff4d6; color: #8a5a00; }
.payout-acct .badge.acct-NONE { background: #eef1f3; color: #4e5969; }
.payout-acct .note { background: #eef6ff; border-radius: 8px; padding: 8px 10px; }
.auto-SENT, .auto-WAITING { color: #1f6f5c; } .auto-HELD, .auto-PAUSED, .auto-FAILED { color: #9a5b00; } .auto-REVERSED, .auto-CANCELED { color: #b42318; }
/* 推广 (ads.js self-serve on the website) */
.ad-img { width: 160px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.badge.st-DRAFT { background: #fff3d6; color: #8a5a00; } .badge.st-ENDED { background: #f3f3f3; color: var(--muted); }
/* 我的店 (merchant-shops.js, 监工 16:2x): hours, photos, menu, replies */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.hours-ed .hd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours-ed .hd .check { min-width: 72px; margin: 0; }
.hours-ed .hd-list { display: flex; flex-direction: column; gap: 4px; }
.hours-ed .hd:not(:has([data-open]:checked)) .hd-list, .hours-ed .hd:not(:has([data-open]:checked)) [data-act="hours-add"] { opacity: .35; }
.hours-ed .hs input[type=time] { width: 110px; min-height: 40px; }
.shop-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.shop-photos .sp { position: relative; }
.shop-photos .sp img { width: 104px; height: 104px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.shop-photos .sp button { position: absolute; top: 2px; right: 2px; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 50%; width: 28px; height: 28px; line-height: 28px; text-align: center; padding: 0; }
.mrow { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr .9fr 1.4fr 36px; gap: 6px; margin: 6px 0; align-items: center; }
.mrow input { min-width: 0; min-height: 40px; }
@media (max-width: 720px) { .mrow { grid-template-columns: 1fr 1fr; padding: 8px 0; border-bottom: 1px solid var(--line); } .mrow [data-act="menu-del"] { justify-self: end; } }
.req { padding: 8px 0; border-top: 1px solid var(--line); } .req:first-of-type { border-top: 0; } .req p { margin: 4px 0; }
.stars { color: #b26a00; letter-spacing: 1px; }
.reply-f textarea { width: 100%; box-sizing: border-box; font: inherit; }
.ok.small { color: var(--brand, #1F6F5C); }
.badge.st-PENDING { background: #fff3d6; color: #8a5a00; } .badge.st-APPROVED { background: #e5f5ec; color: #17704a; } .badge.st-REJECTED { background: #f3f3f3; color: var(--muted); }
