/* App 自己补的样式（设计稿样式在 style.css，从设计稿自动复制，不要手改那份）。这里只做三件事：
   1. 真机上去掉设计稿里假的手机状态栏和底部横条；2. 登录、账号、通知列表这些设计稿没有的页；3. 少量补丁。 */
html, body { height: 100%; }
body { background: var(--canvas); }
.screen { width: min(100%, 520px); height: 100dvh; grid-template-rows: 47px minmax(0, 1fr) auto; }
.screen.is-setup { grid-template-rows: 47px minmax(0, 1fr) 0; }
.bottom { grid-template-rows: 56px; padding-bottom: env(safe-area-inset-bottom); }
.is-setup .bottom { display: none; }
main { padding-bottom: 20px; }
a.avatar { text-decoration: none; }
.demo-badge { margin-left: 4px; padding: 1px 6px; border-radius: 5px; background: #fbebcc; color: #7b4d10; font-size: 10.5px; font-weight: 650; letter-spacing: 0; }
.browser-note { margin: 9px 2px 0; color: var(--muted); font-size: 11.5px; }
.form-error { min-height: 18px; margin: 6px 2px; color: #a33a2a; font-size: 12px; }
.form-error:empty { display: none; }
.delete-trip { margin: 12px auto 0; padding: 8px 14px; border: 0; background: none; color: #a33a2a; font-size: 12.5px; }

.login-box { padding-top: 32px; }
.login-box h1 { font-size: 28px; line-height: 36px; font-weight: 725; letter-spacing: -.6px; }
.login-note { margin: 6px 2px 16px; color: var(--muted); font-size: 12.5px; line-height: 19px; }
.login-form { display: grid; gap: 12px; padding: 16px 14px; }
.login-form input { width: 100%; height: 44px; margin-top: 4px; padding: 0 12px; border: 1px solid #d6dfea; border-radius: 10px; background: #f9fbfe; color: var(--ink); font: inherit; font-size: 15px; }
.login-form input:focus { outline: 2px solid #9e651b; outline-offset: 1px; }

.account { padding: 4px 14px; }
.account-who { display: flex; align-items: center; gap: 11px; padding: 12px 0; }
.account-who .avatar { width: 40px; height: 40px; font-size: 16px; }
.account-who b { display: block; font-size: 15px; }
.account-who small { color: var(--muted); font-size: 12px; }
.account-row { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 48px; padding: 0; border: 0; border-top: 1px solid #edf0f5; background: none; color: var(--ink); font-size: 14px; text-align: left; text-decoration: none; }
button.account-row { color: #a33a2a; }
.account-version { margin-top: 12px; text-align: center; color: var(--muted); font-size: 11px; }

.notice-list { padding: 0 12px; }
.notice-row { padding: 9px 0; border-top: 1px solid #edf0f5; font-size: 12px; overflow-wrap: anywhere; }
.notice-row:first-child { border-top: 0; }
.notice-row time { color: var(--muted); font-size: 10.5px; }
.notice-row b { display: block; margin-top: 2px; }
.notice-row p { margin-top: 2px; color: #344c68; white-space: pre-wrap; }
.notice-empty { padding: 16px 0; color: var(--muted); font-size: 13px; }

/* 夜间模式时页面外面也变深 */
body.is-night { background: #101822; }
.screen > .home-indicator, .bottom .home-indicator { display: none; }
/* 雷达右半边的地点：标签放在点的左边，免得出界 */
.radar-spot.label-left .spot-label { left: auto; right: 16px; }
/* 英文、马来文比较长：按钮和卡片允许换行 */
.choice-alt strong, .member small, .radar-foot span, .shift-hint { white-space: normal; }
.member small { max-width: 76px; text-align: center; line-height: 1.2; }
.rank-name .improvement { margin-left: 4px; padding: 1px 5px; font-size: 9px; vertical-align: 1px; }

/* 语言切换、今日目标（账号页、登录页） */
.lang-switch { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.login-box .lang-switch { justify-content: center; margin-top: 18px; }
.lang-switch button[aria-pressed="true"] { border-color: #c69352; background: #fff7e8; color: #744a19; }
.is-night .lang-switch button[aria-pressed="true"] { background: #3b3227; color: #ecc68d; }
.goal-form { gap: 10px; }
.goal-input { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.goal-input input { width: 80px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); color: var(--ink); font: inherit; font-size: 15px; text-align: right; }
.goal-input .quiet-button { min-height: 32px; }
div.account-row { gap: 10px; }
button.account-row[data-action="local-log"] { color: var(--ink); }

/* 预约单 */
.booking-link-button { margin: 7px auto 0; display: flex; }
.booking-empty { padding: 12px; color: var(--muted); font-size: 12px; }
.booking-card[data-action] { cursor: pointer; }
.booking-form { display: grid; gap: 10px; }
.booking-form .guest-field input, .booking-form .guest-field textarea { width: 100%; }
.booking-status-filter { grid-template-columns: repeat(4, 1fr); margin-top: 8px; width: 100%; }
.booking-status-filter button[aria-pressed="true"] { color: var(--navy); font-weight: 700; background: var(--white); box-shadow: 0 1px 3px #233a5520; }
.car-form .goal-input input { width: 92px; text-align: left; }
.booking-sheet .booking-private { margin: 2px 0 8px; }
/* 游客预约页：没有假状态栏、没有底部导航 */
.screen.is-guest { grid-template-rows: 47px minmax(0, 1fr); }
.guest-error { padding: 16px; color: #a33a2a; font-size: 13px; }

/* 游客预约页：定位选点（设计第十三轮；样稿出来后按样稿改） */
.pick-map { position: relative; height: 150px; margin-top: 4px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; touch-action: none; cursor: grab; }
.pick-map.is-dragging { cursor: grabbing; }
.pick-map canvas { display: block; width: 100%; height: 100%; }
.pick-pin { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -26px 0 0 -13px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #eaa94a; border: 2px solid #fff; box-shadow: 0 3px 8px #0003; pointer-events: none; }
.pick-pin::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.pick-map.is-dragging .pick-pin { margin-top: -32px; }
.pick-hint { position: absolute; left: 8px; right: 8px; top: 8px; padding: 4px 8px; border-radius: 6px; background: #ffffffd9; color: var(--muted); font-size: 11px; text-align: center; pointer-events: none; }
.pick-address { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pick-address > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pick-address b { font-size: 14px; }
.pick-address small { color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
.pick-search-link { margin-top: 6px; padding: 4px 0; border: 0; background: none; color: #8c5613; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.pick-search input { width: 100%; height: 42px; margin-top: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #f9fbfe; color: var(--ink); font: inherit; font-size: 15px; }
.pick-results { display: grid; gap: 4px; margin-top: 4px; }
.pick-results button { display: grid; gap: 1px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; text-align: left; }
.pick-results small, .pick-results p { color: var(--muted); font-size: 11.5px; }
.pick-common { margin-top: 8px; }
.pick-common button { display: inline-flex; align-items: center; gap: 4px; }
.pick-common button[aria-pressed="true"] { background: #f3bc66; border-color: #d69a43; color: #3a2604; }
.pick-chosen { margin-top: 6px; color: var(--green); font-size: 12.5px; font-weight: 650; }
.pick-estimate { margin: 2px 0 0; padding: 9px 12px; border-radius: 10px; background: #fff4de; color: #6b4513; font-size: 14px; font-weight: 700; text-align: center; }
.phone-row { display: flex; gap: 6px; }
.phone-row .phone-cc { flex: none; width: 46%; max-width: 170px; }
.phone-row input { flex: 1; min-width: 0; }

/* 管理车队 */
.admin-card { padding: 12px 14px; margin-bottom: 10px; display: grid; gap: 8px; }
.invite-box { display: grid; justify-items: center; gap: 6px; padding: 12px 0 4px; }
.invite-qr { width: 210px; height: 210px; border-radius: 10px; }
.invite-link { font-size: 12px; color: var(--ink); overflow-wrap: anywhere; text-align: center; }
.invite-actions { display: flex; gap: 8px; }
.admin-row { display: flex; align-items: center; gap: 8px; min-height: 50px; border-top: 1px solid var(--line); }
.admin-row > span:not(.avatar) { flex: 1; min-width: 0; display: grid; gap: 1px; }
.admin-row b { font-size: 14px; }
.admin-row small { color: var(--muted); font-size: 11px; }
.admin-row.muted { opacity: .6; }
.admin-tag { padding: 0 5px; border-radius: 4px; background: #fbebcc; color: #7b4d10 !important; font-size: 10px !important; }
.admin-tag.off { background: #edf0f3; color: #5a6270 !important; }
.quiet-button.danger { color: #a33a2a; }
.login-invite { margin-top: 14px; text-align: center; }
.join-download { margin-top: 14px; text-decoration: none; }
.join-web { margin: 10px auto 0; display: inline-flex; }
.guest-top .lang-switch button { min-width: 0; padding: 0 7px; font-size: 11px; }
.signup-btn { margin-left: auto; min-height: 32px; }
.invite-code-label { color: var(--muted); font-size: 11px; }
.invite-code { font-size: 30px; font-weight: 760; letter-spacing: 3px; color: var(--navy); }
.join-code { text-transform: uppercase; letter-spacing: 2px; font-size: 18px !important; }
