* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; font-family: var(--font-family); color: #272724; background: #F5F5F5; }
button, input, textarea { font: inherit; }
button { border: none; background: transparent; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.app-page { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: #F3F3F3; }
.status-bar { height: 44px; padding: 0 24px 0 34px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; background: #fff; color: #111; font-size: 15px; font-weight: 700; }
.status-icons { display: flex; align-items: center; gap: 7px; color: #111; }
.signal { width: 18px; height: 12px; display: flex; align-items: flex-end; gap: 2px; }
.signal i { width: 3px; border-radius: 2px; background: currentColor; }
.signal i:nth-child(1) { height: 5px; opacity: .45; }
.signal i:nth-child(2) { height: 7px; opacity: .6; }
.signal i:nth-child(3) { height: 10px; opacity: .8; }
.signal i:nth-child(4) { height: 12px; }
.wifi { width: 18px; height: 12px; position: relative; }
.wifi::before { content: ""; position: absolute; left: 2px; top: 0; width: 14px; height: 14px; border: 3px solid currentColor; border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(-45deg); }
.wifi::after { content: ""; position: absolute; left: 7px; bottom: 1px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.battery { width: 25px; height: 13px; border: 1.6px solid currentColor; border-radius: 3px; position: relative; }
.battery::before { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 6px; border-radius: 2px; background: currentColor; }
.battery::after { content: ""; position: absolute; inset: 2px; border-radius: 2px; background: currentColor; }

.page-header { height: 64px; padding: 0 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; background: #fff; }
.back, .header-action { position: absolute; width: 36px; height: 36px; display: grid; place-items: center; color: #272724; }
.back { left: 16px; }
.header-action { right: 16px; }
.back .h5-icon, .header-action .h5-icon { width: 28px; height: 28px; }
.header-action .h5-icon { width: 22px; height: 22px; }
.page-header h1 { font-size: 20px; line-height: 1; font-weight: 500; letter-spacing: 0; }
.h5-icon { display: block; stroke-width: 1.9; }

.page-content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 16px 104px; }
.page-content.tight { padding-top: 0; }
.card { margin-bottom: 14px; padding: 18px 16px; border-radius: 12px; background: #fff; }
.section-title { padding-bottom: 18px; border-bottom: 1px solid #EEEEEE; color: #272724; font-size: 20px; line-height: 1.2; font-weight: 700; }

.search-row { display: flex; align-items: center; gap: 14px; padding: 8px 16px 13px; background: #fff; }
.search-box { flex: 1; height: 40px; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 12px; border-radius: 999px; background: #F1F1F2; color: #B6B6B6; }
.search-box .h5-icon { width: 22px; height: 22px; color: #272724; }
.search-box input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: #272724; font-size: 15px; }
.search-box input::placeholder { color: #B6B6B6; }
.filter-btn { height: 40px; display: inline-flex; align-items: center; gap: 6px; color: #272724; font-size: 15px; white-space: nowrap; }
.filter-btn .h5-icon { width: 22px; height: 22px; }

.tabs { height: 57px; display: flex; align-items: flex-end; flex-shrink: 0; background: #fff; }
.tab { flex: 1; height: 57px; position: relative; display: grid; place-items: center; color: #4A4A4A; font-size: 17px; font-weight: 500; }
.tab.active { color: #272724; font-weight: 700; }
.tab.active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 30px; height: 3px; border-radius: 999px; background: #861B2F; transform: translateX(-50%); }
.panel { display: grid; gap: 16px; }
.panel[hidden] { display: none; }
.list-count { color: #8A8A8A; font-size: 14px; }
.date-card { min-height: 52px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 0 16px; border-radius: 10px; background: #fff; }
.date-main { display: flex; align-items: center; gap: 12px; color: #272724; font-size: 18px; font-weight: 700; }
.today-badge { min-height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; background: #F1FBEF; color: #52C41A; font-size: 13px; font-weight: 600; }
.date-link { display: inline-flex; align-items: center; gap: 5px; color: #272724; font-size: 15px; }
.date-link .h5-icon { width: 18px; height: 18px; }

.time-card { padding: 18px 16px 8px; border-radius: 12px; background: #fff; }
.time-head { min-height: 38px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid #ECECEC; color: #272724; }
.time-head strong { font-size: 19px; line-height: 1.2; }
.time-head span { color: #4A4A4A; font-size: 15px; }
.appt-item { position: relative; padding: 17px 42px 16px 0; border-bottom: 1px solid #ECECEC; cursor: pointer; }
.appt-item:last-child { border-bottom: none; }
.customer-line { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.customer-name { color: #272724; font-size: 17px; font-weight: 700; }
.gender { color: #2D39FF; font-size: 17px; line-height: 1; }
.phone-text { color: #8A8A8A; font-size: 15px; }
.car-line { margin-bottom: 9px; color: #4A4A4A; font-size: 14px; line-height: 1.35; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pill { min-height: 24px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; background: #F1F1F1; color: #777; font-size: 13px; }
.pill.warning { background: #FFF7E6; color: #C57B19; }
.pill.success { background: #F1FBEF; color: #52C41A; }
.pill.error { background: #FFF1F0; color: #FF4D4F; }
.advisor { color: #8A8A8A; font-size: 14px; }
.call-btn { position: absolute; right: 0; top: 28px; width: 40px; height: 40px; display: grid; place-items: center; color: #272724; }
.call-btn .h5-icon { width: 22px; height: 22px; }

.process { height: 106px; display: grid; grid-template-columns: repeat(8, 1fr); align-items: start; padding: 20px 16px 0; background: #F3F3F3; }
.process-step { position: relative; display: grid; justify-items: center; gap: 9px; color: #8A8A8A; font-size: 12px; line-height: 1; white-space: nowrap; }
.process-step::after { content: ""; position: absolute; z-index: 0; top: 9px; left: calc(50% + 12px); width: calc(100% - 24px); height: 1px; background: #DFDFDF; }
.process-step:last-child::after { display: none; }
.process-dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1; background: #DADADA; color: #fff; font-size: 12px; font-weight: 800; }
.process-step.active { color: #52C41A; font-weight: 700; }
.process-step.active .process-dot { background: #52C41A; }
.masked-card { min-height: 50px; margin: -28px 16px 0; padding: 0 16px; border-radius: 10px; display: flex; align-items: center; gap: 10px; background: #fff; color: #272724; font-size: 20px; font-weight: 700; position: relative; z-index: 1; }
.masked-card .h5-icon { width: 18px; height: 18px; }
.detail-tabs { height: 58px; margin-top: 16px; display: flex; align-items: flex-end; flex-shrink: 0; background: #fff; border-bottom: 1px solid #E8E8E8; }
.detail-tab { flex: 1; height: 58px; position: relative; display: grid; place-items: center; color: #4A4A4A; font-size: 16px; font-weight: 500; }
.detail-tab.active { color: #272724; font-weight: 700; }
.detail-tab.active::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 28px; height: 3px; border-radius: 999px; background: #A94A60; transform: translateX(-50%); }
.detail-panel { padding: 16px; }
.info-card { padding: 16px 14px; border-radius: 4px; background: #F8F8F8; }
.info-row { min-height: 34px; display: grid; grid-template-columns: 104px 1fr; gap: 12px; color: #8A8A8A; font-size: 14px; line-height: 1.4; }
.info-value { color: #272724; text-align: right; }
.info-value.wrap { text-align: left; }
.photo-row { display: flex; gap: 8px; margin-top: 12px; }
.photo-thumb { width: 78px; height: 78px; border-radius: 2px; background: linear-gradient(135deg, #D7DDE3, #AEB7C1); position: relative; overflow: hidden; }
.photo-thumb::before { content: ""; position: absolute; inset: 20px 8px 18px; border-radius: 30% 70% 45% 55%; background: rgba(255,255,255,.72); transform: rotate(-11deg); }
.photo-thumb::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 14px; height: 8px; border-radius: 999px; background: rgba(134,27,47,.32); }
.photo-thumb.alt { background: linear-gradient(135deg, #F2F0EA, #B9B2A6); }
.photo-thumb.third { background: linear-gradient(135deg, #EFF3F6, #C5CCD3); }

.form-section { margin: 16px 16px 0; padding: 20px 16px 22px; border-radius: 12px; background: #fff; }
.section-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid #EEEEEE; }
.section-head h2 { color: #272724; font-size: 20px; line-height: 1.2; font-weight: 700; }
.section-link { color: #B46E3C; font-size: 14px; }
.form-row { min-height: 44px; display: grid; grid-template-columns: 128px 1fr; align-items: center; gap: 10px; color: #8A8A8A; font-size: 15px; border-bottom: 1px solid transparent; }
.form-label.required::before, .required-star::before { content: "*"; color: #FF6B35; margin-right: 2px; }
.form-value { min-width: 0; text-align: right; color: #272724; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-value.placeholder { color: #BFBFBF; }
.form-value .h5-icon { display: inline-block; width: 17px; height: 17px; margin-left: 4px; vertical-align: -3px; color: #B8B8B8; }
.clear-dot { display: inline-grid; place-items: center; width: 13px; height: 13px; margin-left: 6px; border-radius: 50%; background: #BEBEBE; color: #fff; font-size: 10px; line-height: 1; }
.vehicle-card { margin-top: 16px; min-height: 98px; position: relative; overflow: hidden; display: flex; align-items: center; padding: 16px 16px; border-radius: 4px; background: linear-gradient(100deg, #F8F2EE 0%, #F9E5DF 100%); }
.vehicle-card h3 { margin-bottom: 9px; color: #272724; font-size: 19px; line-height: 1.2; }
.vehicle-card p { margin-bottom: 5px; color: #4A4A4A; font-size: 13px; line-height: 1.3; }
.vehicle-art { position: absolute; right: -8px; bottom: 12px; width: 128px; height: 46px; border-radius: 999px 30px 18px 18px; background: linear-gradient(90deg, #8D2338, #D25F75); box-shadow: inset 0 -10px 16px rgba(0,0,0,.12); }
.vehicle-art::before { content: ""; position: absolute; left: 26px; top: -13px; width: 56px; height: 24px; border-radius: 26px 28px 0 0; background: linear-gradient(90deg, rgba(255,255,255,.64), rgba(255,255,255,.24)); }
.vehicle-art::after { content: ""; position: absolute; left: 18px; bottom: -6px; width: 16px; height: 16px; border-radius: 50%; background: #272724; box-shadow: 78px 0 0 #272724; }
.chip-group { display: flex; flex-wrap: wrap; gap: 10px 8px; margin: 16px 0 12px; }
.chip { min-height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 999px; border: 1px solid #DADADA; background: #fff; color: #272724; font-size: 15px; font-weight: 600; }
.chip.selected { border-color: transparent; background: #F4E7EA; color: #861B2F; }
.field-block { display: block; margin-top: 14px; }
.field-block .form-label { display: block; margin-bottom: 10px; color: #8A8A8A; }
.textarea-wrap { position: relative; }
.textarea { width: 100%; height: 96px; padding: 12px 12px 26px; border: none; border-radius: 4px; outline: none; resize: none; background: #F3F3F3; color: #272724; font-size: 14px; line-height: 1.6; }
.counter { position: absolute; right: 12px; bottom: 8px; color: #BFBFBF; font-size: 13px; }
.upload-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.upload-slot { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 2px; background: #F3F4F6; color: #D1D5DB; }
.upload-slot .h5-icon { width: 24px; height: 24px; }
.form-footer, .bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 16px 16px 28px; background: rgba(255,255,255,.96); border-radius: 12px 12px 0 0; }
.bottom-bar.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.primary-btn, .ghost-btn { height: 42px; border-radius: 999px; font-size: 16px; }
.primary-btn { width: 100%; background: #A94A60; color: #fff; }
.primary-btn.disabled { background: #D9B5BE; }
.ghost-btn { border: 1px solid #DADADA; background: #fff; color: #272724; }
.home-indicator { position: fixed; left: 50%; bottom: 8px; z-index: 22; width: 134px; height: 5px; border-radius: 999px; background: #111; transform: translateX(-50%); }

.sheet-mask { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.68); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.sheet-mask.show { opacity: 1; pointer-events: auto; }
.filter-sheet { position: fixed; left: 0; right: 0; top: 0; z-index: 91; padding-bottom: 16px; background: #fff; transform: translateY(-105%); transition: transform .26s ease; }
.filter-sheet.show { transform: translateY(0); }
.filter-sheet .page-header { height: 64px; }
.filter-form { display: grid; gap: 22px; padding: 0 16px; }
.filter-field { display: grid; gap: 14px; }
.filter-label { color: #7D7D7D; font-size: 15px; }
.date-input { height: 40px; display: flex; align-items: center; gap: 11px; padding: 0 16px; border-radius: 20px; background: #F1F2F4; color: #B8B8B8; font-size: 15px; }
.date-input .h5-icon { width: 18px; height: 18px; color: #8F8F8F; }
.date-input .chevron { margin-left: auto; color: #272724; }
.chip-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; }
.filter-chip { height: 38px; border-radius: 999px; border: 1px solid #DADADA; background: #fff; color: #272724; font-size: 15px; font-weight: 600; }
.filter-chip.selected { border-color: transparent; background: #F4E7EA; color: #861B2F; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 16px 0; }
.sheet-action { height: 40px; border-radius: 999px; border: 1px solid #DADADA; background: #fff; color: #272724; font-size: 16px; }
.sheet-action.primary { border-color: #A94A60; background: #A94A60; color: #fff; }

.bottom-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 92; padding: 22px 16px 28px; border-radius: 20px 20px 0 0; background: #fff; transform: translateY(105%); transition: transform .26s ease; }
.bottom-sheet.show { transform: translateY(0); }
.bottom-sheet .filter-chip { height: 54px; border-radius: 4px; line-height: 1.35; }
.bottom-sheet .filter-chip small { display: block; color: inherit; font-size: 12px; font-weight: 400; }
.sheet-title { margin-bottom: 22px; text-align: center; color: #272724; font-size: 20px; font-weight: 700; }
.sheet-close { position: absolute; right: 18px; top: 18px; width: 32px; height: 32px; color: #BFBFBF; }
.sheet-close .h5-icon { width: 28px; height: 28px; }
.advisor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.sheet-textarea { width: 100%; height: 92px; margin-bottom: 18px; padding: 12px; border: none; border-radius: 6px; outline: none; resize: none; background: #F3F3F3; color: #272724; font-size: 14px; }
.call-sheet .phone-number { margin-bottom: 12px; text-align: center; color: #272724; font-size: 22px; font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 104px; z-index: 120; min-height: 36px; display: none; align-items: center; padding: 0 16px; border-radius: 999px; background: rgba(39,39,36,.92); color: #fff; font-size: 13px; transform: translateX(-50%); white-space: nowrap; }
.toast.show { display: inline-flex; }
