* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f5f6f8; color: #222; }
a { color: inherit; text-decoration: none; }
.container { max-width: 520px; margin: 0 auto; min-height: 100vh; background: #f5f6f8; padding: 16px; }
.header { height: 54px; display: flex; align-items: center; justify-content: center; position: relative; font-weight: 700; font-size: 20px; background: #fff; margin: -16px -16px 16px; }
.back { position: absolute; left: 16px; font-size: 24px; }
.card { background: #fff; border-radius: 14px; padding: 18px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.03); }
.login-title { font-size: 24px; font-weight: 800; margin: 50px 0 8px; }
.muted { color: #999; font-size: 14px; }
.input, select, textarea { width: 100%; border: 1px solid #eee; border-radius: 10px; padding: 13px 12px; font-size: 16px; background: #fff; outline: none; }
textarea { min-height: 120px; resize: vertical; }
.form-row { margin-bottom: 14px; }
.label { font-weight: 700; margin-bottom: 8px; display: block; }
.required::before { content: '*'; color: #ff5a5f; margin-right: 2px; }
.btn { display: block; width: 100%; border: 0; border-radius: 28px; padding: 15px; background: #ffe928; color: #222; font-weight: 800; font-size: 18px; text-align: center; cursor: pointer; }
.btn-secondary { background: #fff; border: 1px solid #eee; }
.notice { border: 1px dashed #f6b263; color: #ef8b20; background: #fffdf1; border-radius: 10px; padding: 12px; line-height: 1.6; }
.stats { display: flex; justify-content: space-around; text-align: center; padding: 8px 0 18px; }
.stat-num { font-size: 30px; font-weight: 900; margin-bottom: 4px; }
.stat-label { color: #888; }
.nav-row { display: flex; gap: 10px; margin-top: 12px; }
.nav-row .btn { font-size: 15px; padding: 12px; }
.msg { padding: 10px 12px; border-radius: 10px; margin-bottom: 10px; font-size: 14px; }
.msg.error { background: #fff1f0; color: #cf1322; }
.msg.success { background: #f6ffed; color: #389e0d; }
.list-item { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 10px; border: 1px solid #f1f1f1; }
.list-title { font-weight: 800; margin-bottom: 8px; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 99px; background: #fff5cc; color: #a87800; font-size: 12px; }
.detail-row { padding: 11px 0; border-bottom: 1px solid #f4f4f4; display: flex; gap: 12px; }
.detail-row:last-child { border-bottom: 0; }
.detail-key { width: 96px; color: #777; flex-shrink: 0; }
.detail-value { flex: 1; word-break: break-word; }
.attachments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.attachments img, .attachments video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; background: #f3f3f3; }
.footer-space { height: 90px; }
.fixed-bottom { position: sticky; bottom: 0; background: #fff; padding: 16px; margin: 0 -16px -16px; box-shadow: 0 -2px 8px rgba(0,0,0,.03); }
.city-picker-row { display: flex; gap: 10px; }
.select-half { flex: 1; min-width: 0; }
.phone-copy-row { display: flex; gap: 10px; align-items: center; }
.phone-copy-row .input { flex: 1; min-width: 0; }
.mini-btn { border: 0; border-radius: 10px; background: #222; color: #fff; padding: 13px 14px; font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.list-item { display: block; }
.appeal-list-card { padding: 16px; }
.list-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.list-desc { color: #777; font-size: 13px; margin-top: 10px; }
.list-result { margin-top: 8px; padding: 9px 10px; border-radius: 10px; background: #f7f8fa; color: #555; font-size: 13px; line-height: 1.5; }
.empty-card { text-align: center; padding: 30px 18px; }
.empty-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
@media (max-width: 360px) {
  .city-picker-row { flex-direction: column; }
}
.upload-box input[type=file] { display: none; }
.upload-trigger { width: 100%; border: 1px dashed #f2c94c; border-radius: 12px; background: #fffdf1; color: #9a6b00; padding: 16px; font-weight: 800; font-size: 15px; cursor: pointer; }
.file-preview-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.file-preview-item { position: relative; background: #f7f8fa; border-radius: 12px; padding: 6px; overflow: hidden; border: 1px solid #eef0f4; }
.file-body img, .file-body video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; display: block; background: #eee; }
.file-remove { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 18px; line-height: 22px; cursor: pointer; }
.file-name { font-size: 11px; color: #666; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress-wrap { margin-top: 12px; }
.progress-text { font-size: 13px; color: #666; margin-bottom: 6px; }
.progress-track { height: 9px; background: #f1f2f5; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: #ffe928; border-radius: 999px; transition: width .2s ease; }
.tiny-tip { margin: 6px 0 0; font-size: 12px; }
@media (max-width: 360px) { .file-preview-list { grid-template-columns: repeat(2, 1fr); } }

/* v6 mobile polish */
html { -webkit-text-size-adjust: 100%; }
body { background: #f3f4f7; }
.container { width: 100%; max-width: 430px; padding: 0; background: #f3f4f7; overflow-x: hidden; }
.mobile-page { min-height: 100vh; padding: 0 14px 84px; }
.topbar { height: 50px; display: flex; align-items: center; justify-content: center; position: sticky; top: 0; z-index: 10; background: #f3f4f7; font-size: 18px; font-weight: 900; }
.topbar .back { left: 0; color: #222; }
.hero-banner, .login-banner { width: 100%; display: block; border-radius: 14px; object-fit: cover; box-shadow: 0 6px 20px rgba(15, 23, 42, .08); }
.hero-banner { margin: 8px 0 14px; }
.appeal-card { background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 14px; box-shadow: 0 6px 18px rgba(17,24,39,.05); }
.center-card { margin-top: 0; }
.center-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 17px; }
.pill-link { border: 1px solid #e5e7eb; color: #333; border-radius: 999px; padding: 5px 12px; font-size: 13px; background: #fff; }
.stats-buttons { gap: 8px; padding: 12px 0 18px; }
.stat-btn { flex: 1; border-radius: 14px; padding: 10px 4px; background: #fafafa; border: 1px solid #f1f1f1; }
.stat-btn:active { transform: scale(.98); }
.stat-btn .stat-num { font-size: 27px; }
.rule-card p { margin: 9px 0 0; color: #777; line-height: 1.7; font-size: 14px; }
.bottom-tab { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 430px; height: 62px; background: rgba(255,255,255,.96); border-top: 1px solid #eef0f4; display: grid; grid-template-columns: 1fr 1fr; z-index: 20; backdrop-filter: blur(8px); }
.bottom-tab a { display: flex; align-items: center; justify-content: center; color: #777; font-weight: 700; }
.bottom-tab a.active { color: #222; }
.status-tabs { position: sticky; top: 50px; z-index: 9; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 0 12px; background: #f3f4f7; }
.status-tabs a { text-align: center; padding: 10px 6px; border-radius: 13px; background: #fff; color: #777; border: 1px solid #edf0f5; font-size: 14px; font-weight: 800; }
.status-tabs a.active { background: #ffe928; color: #222; border-color: #ffe928; }
.status-tabs b { margin-left: 2px; }
.h5-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 0 24px; color: #777; }
.h5-pagination a { border: 1px solid #e5e7eb; background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 800; }
.login-page { min-height: 100vh; padding: 18px 14px 30px; background: linear-gradient(180deg, #eef7ff 0%, #f6f7fb 45%, #f3f4f7 100%); }
.login-banner { margin: 8px 0 18px; }
.login-card { background: #fff; border-radius: 22px; padding: 22px 18px; box-shadow: 0 10px 28px rgba(17,24,39,.08); }
.login-heading { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.login-subtitle { margin: 0 0 18px; color: #7b8496; font-size: 14px; line-height: 1.6; }
.login-card .btn { margin-top: 8px; }
@media (max-width: 430px) {
  .container { max-width: none; }
  .hero-banner, .login-banner { border-radius: 12px; }
  .appeal-card { border-radius: 14px; }
  .stat-btn .stat-num { font-size: 24px; }
}
@media (min-width: 520px) {
  .container { margin: 0 auto; box-shadow: 0 0 30px rgba(17,24,39,.08); }
}

/* v7 tweaks: remember login + cleaner appeal form */
.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 18px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.4;
}
.remember-row input {
  width: 17px;
  height: 17px;
  accent-color: #ffe928;
  flex-shrink: 0;
}
.form-page { padding-bottom: 96px; }
.form-page .topbar {
  background: linear-gradient(180deg, #f7fbff 0%, #f3f4f7 100%);
}
.form-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  margin: 6px 0 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #142334 0%, #1e3a5f 58%, #2f80ed 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(20,35,52,.18);
  overflow: hidden;
  position: relative;
}
.form-hero-card::after {
  content: '';
  position: absolute;
  right: -24px;
  top: -32px;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}
.form-hero-title { font-size: 20px; font-weight: 900; margin-bottom: 7px; }
.form-hero-subtitle { font-size: 13px; color: rgba(255,255,255,.78); line-height: 1.6; }
.form-hero-subtitle span { color: #ffe928; font-weight: 900; }
.form-hero-badge {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: #ffe928;
  color: #142334;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
  z-index: 1;
}
.form-section-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px 16px 6px;
  margin-bottom: 14px;
  box-shadow: 0 8px 22px rgba(17,24,39,.055);
  border: 1px solid rgba(229,231,235,.72);
}
.section-title {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 16px;
  padding-left: 10px;
  position: relative;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 16px;
  border-radius: 99px;
  background: #ffe928;
}
.form-section-card .form-row { margin-bottom: 16px; }
.form-section-card .label { font-size: 15px; }
.form-section-card .input,
.form-section-card select,
.form-section-card textarea {
  border-color: #e8ebf0;
  background: #fbfcfe;
  border-radius: 13px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.form-section-card .input:focus,
.form-section-card select:focus,
.form-section-card textarea:focus {
  border-color: #ffe928;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,233,40,.18);
}
.mini-btn.light {
  background: #fff7c2;
  color: #7a5a00;
  border: 1px solid #ffe98a;
}
.upload-trigger {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #fffdf1, #fff9d7);
}
.upload-plus {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #ffe928;
  color: #222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}
.recording-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  margin: 2px 0 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}
.recording-card strong { display: block; font-size: 15px; margin-bottom: 4px; }
.recording-card em { display: block; font-style: normal; color: #7b8496; font-size: 12px; }
.recording-card input { width: 20px; height: 20px; accent-color: #ffe928; flex-shrink: 0; }
.form-page .fixed-bottom {
  max-width: 430px;
  left: 50%;
  transform: translateX(-50%);
  position: fixed;
  bottom: 0;
  width: 100%;
  margin: 0;
  border-top: 1px solid #eef0f4;
  box-shadow: 0 -8px 24px rgba(17,24,39,.06);
}
.form-page .btn { box-shadow: 0 8px 18px rgba(255, 211, 0, .28); }

/* v8 compact mobile form + city wheel + plate keyboard */
.compact-form-page { padding: 0 12px 92px; background: #f5f6f8; }
.compact-form-page .topbar { height: 46px; background: #f5f6f8; font-size: 18px; }
.mini-form-card {
  background: #fff;
  border-radius: 14px;
  margin: 10px 0;
  padding: 0 14px;
  box-shadow: 0 5px 16px rgba(17,24,39,.035);
  border: 1px solid rgba(229,231,235,.72);
}
.compact-row {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f1f2f5;
}
.compact-row:last-child { border-bottom: 0; }
.compact-row > label,
.compact-section-label {
  width: 88px;
  flex-shrink: 0;
  font-weight: 900;
  font-size: 15px;
  color: #20242b;
}
.required-row > label::before,
.compact-section-label.required-row::before { content: '*'; color: #ee4d4f; margin-right: 2px; }
.compact-row input,
.compact-row select,
.compact-select {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 15px;
  color: #222;
  padding: 13px 0;
  appearance: none;
}
.compact-row input::placeholder { color: #b8bdc8; }
.compact-value {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #222;
  font-size: 15px;
  min-height: 52px;
}
.compact-value .placeholder,
.compact-row .placeholder { color: #b8bdc8; }
.compact-value i { font-style: normal; color: #b6bbc5; font-size: 28px; line-height: 1; }
.compact-input-with-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.compact-input-with-btn input { flex: 1; min-width: 0; }
.compact-input-with-btn button {
  border: 0;
  border-radius: 8px;
  padding: 5px 8px;
  background: #fff4c7;
  color: #bf7c18;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}
.single-row-card { padding: 0 14px; }
.desc-card { padding: 14px; }
.desc-card .compact-section-label { display: block; width: auto; margin-bottom: 8px; }
.desc-card textarea {
  min-height: 108px;
  border: 0;
  background: #fbfcfe;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  resize: none;
}
.proof-card { padding: 14px; }
.compact-proof-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.compact-proof-head strong { font-size: 16px; font-weight: 900; }
.compact-proof-head strong::before { content: ''; }
.compact-proof-head span { font-size: 12px; color: #8c94a3; }
.upload-mini-row input[type=file] { display: none; }
.upload-mini-trigger {
  width: 132px;
  height: 88px;
  border: 1px dashed #d7dce5;
  border-radius: 12px;
  background: #f8fafc;
  color: #a3aab7;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.upload-mini-trigger span { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #d7dce5; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.upload-mini-trigger em { font-style: normal; font-size: 14px; }
.upload-mini-row p { margin: 8px 0 0; color: #9aa1ad; line-height: 1.45; font-size: 12px; }
.compact-preview-list { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.compact-recording-row {
  min-height: 50px;
  margin-top: 12px;
  border-top: 1px solid #f1f2f5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}
.compact-recording-row em { font-style: normal; color: #8d95a3; font-weight: 500; font-size: 13px; text-align: right; }
.compact-recording-row input { width: 20px; height: 20px; accent-color: #ffe928; }
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, .38);
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.sheet-mask.show { display: flex; }
.bottom-sheet {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  box-shadow: 0 -12px 30px rgba(15,23,42,.16);
  animation: sheetUp .18s ease-out;
}
@keyframes sheetUp { from { transform: translateY(18px); opacity: .85; } to { transform: translateY(0); opacity: 1; } }
.sheet-head {
  height: 50px;
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  border-bottom: 1px solid #edf0f5;
  padding: 0 10px;
}
.sheet-head strong { text-align: center; font-size: 16px; }
.sheet-head button { border: 0; background: transparent; font-size: 15px; font-weight: 800; }
.sheet-cancel { color: #8a93a3; text-align: left; }
.sheet-ok { color: #246bfe; text-align: right; }
.city-wheel { max-height: 310px; overflow-y: auto; padding: 8px 14px 18px; -webkit-overflow-scrolling: touch; }
.city-option {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  font-weight: 800;
  color: #30343b;
  margin: 2px 0;
}
.city-option.active { background: #fff5c2; color: #9a6b00; }
.plate-preview {
  margin: 14px 16px 10px;
  height: 46px;
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #222;
}
.plate-preview.empty { color: #a7aebb; font-size: 15px; letter-spacing: 0; }
.plate-keyboard-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 10px; }
.plate-keyboard-tabs button { height: 34px; border: 0; border-radius: 999px; background: #f1f3f6; color: #7c8493; font-weight: 900; }
.plate-keyboard-tabs button.active { background: #ffe928; color: #222; }
.plate-keyboard {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  padding: 0 10px 18px;
}
.plate-keyboard button {
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: #f5f6f8;
  font-size: 15px;
  font-weight: 900;
  color: #1f2937;
}
.plate-keyboard button:active { background: #ffe928; }
.plate-keyboard button.wide { grid-column: span 2; background: #e9edf3; }
.plate-keyboard button.danger { color: #ef4444; }
@media (max-width: 360px) {
  .compact-row > label, .compact-section-label { width: 82px; }
  .compact-preview-list { grid-template-columns: repeat(3, 1fr); }
  .plate-keyboard { grid-template-columns: repeat(6, 1fr); }
}

/* v9: mini-program-like city picker, plate keyboard, and confirm modal */
.compact-form-page {
  padding: 0 12px 78px;
}
.mini-form-card {
  border-radius: 12px;
  box-shadow: none;
  border: 0;
  margin-bottom: 10px;
}
.compact-row {
  min-height: 48px;
}
.compact-row > label,
.compact-section-label {
  width: 86px;
  font-size: 15px;
}
.compact-row input,
.compact-row select,
.compact-select,
.compact-value {
  font-size: 15px;
  min-height: 48px;
}
.desc-card textarea {
  min-height: 92px;
}
.proof-card {
  padding-bottom: 10px;
}
.upload-mini-trigger {
  width: 118px;
  height: 78px;
}
.compact-recording-row {
  min-height: 44px;
}
.city-sheet-panel {
  max-height: 68vh;
}
.city-sheet-head {
  grid-template-columns: 70px 1fr 70px;
}
.city-wheel {
  padding: 8px 12px calc(14px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 380px;
}
.city-option {
  height: 42px;
  margin: 0;
  border-radius: 12px;
  background: #f7f8fa;
  font-size: 15px;
  color: #333942;
}
.city-option.active {
  background: #ffe928;
  color: #222;
}
.plate-sheet-panel {
  background: #f1f4f7;
  border-radius: 0;
}
.plate-sheet-panel .sheet-head {
  background: #fff;
  border-bottom: 1px solid #edf0f5;
}
.plate-preview {
  margin: 10px 14px 6px;
  height: 42px;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  letter-spacing: 1px;
}
.plate-mode-hint {
  color: #8b94a3;
  text-align: center;
  font-size: 12px;
  margin: 0 0 8px;
}
.plate-keyboard {
  padding: 0 10px calc(10px + env(safe-area-inset-bottom));
}
.province-keyboard {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
.province-keyboard button,
.letter-keyboard button {
  border: 0;
  height: 45px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.22);
  color: #2f3338;
  font-size: 18px;
  font-weight: 500;
}
.province-keyboard button:active,
.letter-keyboard button:active {
  background: #dfe4ea;
}
.province-keyboard .action-key {
  background: #c8cdd7;
  color: #3e4652;
}
.province-keyboard .wide {
  grid-column: span 2;
}
.letter-keyboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plate-key-row {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
.plate-key-row.row-2 {
  padding: 0 6px;
  grid-template-columns: repeat(10, 1fr);
}
.plate-key-row.row-3 {
  grid-template-columns: 2fr repeat(6, 1fr) 2fr;
}
.letter-keyboard .action-key {
  background: #c8cdd7;
  color: #404754;
}
.switch-key span {
  color: #2f80ed;
}
.backspace-key {
  font-size: 19px !important;
}
@media (max-width: 360px) {
  .province-keyboard { gap: 5px; }
  .province-keyboard button,
  .letter-keyboard button { height: 40px; font-size: 16px; }
  .plate-key-row { gap: 5px; }
}
.h5-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15,23,42,.42);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.h5-modal-mask.show {
  display: flex;
}
.h5-modal-card {
  width: 100%;
  max-width: 310px;
  background: #fff;
  border-radius: 18px;
  padding: 22px 18px 16px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(15,23,42,.22);
  animation: modalPop .16s ease-out;
}
@keyframes modalPop { from { transform: scale(.96); opacity: .6; } to { transform: scale(1); opacity: 1; } }
.h5-modal-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #ffe928;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
}
.h5-modal-title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
}
.h5-modal-text {
  color: #586174;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.h5-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
}
.h5-modal-actions button {
  height: 42px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}
.h5-modal-cancel {
  background: #f1f3f6;
  color: #667085;
}
.h5-modal-ok {
  background: #ffe928;
  color: #222;
}


/* v10: strict mobile layout repair + mini-program-like compact rows */
body { line-height: 1.4; }
.mobile-page,
.compact-form-page { width: 100%; max-width: 430px; margin: 0 auto; overflow-x: hidden; }
.compact-form-page {
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
}
.compact-form-page .topbar {
  height: 44px;
  font-size: 18px;
  background: #f5f6f8;
}
.mini-form-card {
  margin: 8px 0;
  border-radius: 12px;
  padding-left: 12px;
  padding-right: 12px;
}
.compact-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.compact-row > label,
.compact-section-label {
  width: auto !important;
  min-width: 0;
  white-space: nowrap;
  word-break: keep-all;
  overflow: visible;
  line-height: 1.15;
  font-size: 15px;
  letter-spacing: 0;
  flex-shrink: 0;
}
.required-row > label::before,
.compact-section-label.required-row::before {
  display: inline-block;
  width: 8px;
  margin-right: 1px;
  vertical-align: middle;
}
.compact-value,
.compact-row input,
.compact-row select,
.compact-select {
  min-height: 46px;
  font-size: 15px;
}
.compact-value span,
.compact-input-with-btn input,
.compact-row input,
.compact-row select {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact-input-with-btn { width: 100%; min-width: 0; }
.compact-input-with-btn button { flex: 0 0 auto; }
.desc-card { padding: 12px; }
.desc-card .compact-section-label {
  margin-bottom: 8px;
  display: block;
}
.desc-card textarea {
  min-height: 86px;
  line-height: 1.55;
}
.proof-card { padding: 12px; }
.compact-proof-head { margin-bottom: 8px; }
.upload-mini-trigger { width: 112px; height: 72px; }
.upload-mini-row p { font-size: 11px; }
.compact-recording-row {
  min-height: 42px;
  grid-template-columns: auto 1fr auto;
}
.compact-recording-row span { white-space: nowrap; }
.compact-recording-row em { font-size: 12px; }
.form-page .fixed-bottom {
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
}
.form-page .fixed-bottom .btn {
  padding: 14px;
  font-size: 17px;
}
.city-wheel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.city-option { font-weight: 700; }
.plate-sheet-panel { max-width: 430px; }
.province-keyboard { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.province-keyboard button,
.letter-keyboard button { min-width: 0; }
@media (max-width: 380px) {
  .compact-form-page { padding-left: 9px; padding-right: 9px; }
  .mini-form-card { padding-left: 10px; padding-right: 10px; }
  .compact-row { grid-template-columns: 98px minmax(0, 1fr); gap: 7px; }
  .compact-row > label,
  .compact-section-label { font-size: 14px; }
  .compact-value,
  .compact-row input,
  .compact-row select,
  .compact-select { font-size: 14px; }
  .compact-input-with-btn button { padding: 4px 7px; font-size: 13px; }
}
@media (max-width: 340px) {
  .compact-row { grid-template-columns: 92px minmax(0, 1fr); gap: 6px; }
  .compact-row > label,
  .compact-section-label { font-size: 13px; }
}
/* Better mobile detail page */
.detail-mobile-page { padding: 0 12px 84px; }
.detail-mobile-page .card { border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.detail-mobile-page .detail-key { width: 84px; white-space: nowrap; }
.detail-mobile-page .attachments { grid-template-columns: repeat(3, 1fr); }

/* v11: service brand single option bottom sheet */
.brand-sheet-panel { max-width: 430px; }
.brand-list { padding: 10px 14px 22px; }
.brand-option {
  width: 100%;
  border: 0;
  background: #fff7d6;
  color: #181a20;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 0, .6);
}
.brand-option::after { content: ' ✓'; color: #e6a300; }

/* v12: cleaner one-column picker sheets */
.city-sheet-panel,
.appeal-type-sheet-panel,
.brand-sheet-panel {
  max-width: 430px;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}
.city-wheel {
  display: flex !important;
  flex-direction: column;
  grid-template-columns: none !important;
  gap: 0;
  max-height: 52vh;
  padding: 0 14px calc(14px + env(safe-area-inset-bottom));
  background: #fff;
}
.city-option,
.sheet-option {
  width: 100%;
  height: 48px;
  border: 0;
  border-bottom: 1px solid #f1f2f5;
  border-radius: 0;
  background: #fff;
  color: #20242a;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}
.city-option:last-child,
.sheet-option:last-child {
  border-bottom: 0;
}
.city-option.active,
.sheet-option.active {
  background: #fffbe6;
  color: #d99a00;
}
.city-option.active::after,
.sheet-option.active::after {
  content: ' ✓';
  color: #d99a00;
  font-weight: 900;
}
.option-list {
  padding: 0 14px calc(14px + env(safe-area-inset-bottom));
  background: #fff;
}
.appeal-type-list {
  max-height: 46vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sheet-head {
  background: #fff;
}
.sheet-head strong {
  font-weight: 900;
}

/* v13: larger, more comfortable picker rows on phones */
.city-sheet-panel,
.appeal-type-sheet-panel,
.brand-sheet-panel {
  border-radius: 20px 20px 0 0;
}
.city-wheel {
  max-height: 58vh;
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom)) !important;
}
.option-list {
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom)) !important;
}
.city-option,
.sheet-option {
  min-height: 58px;
  height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid #eef0f4;
  font-size: 17px;
  font-weight: 700;
  line-height: 58px;
  letter-spacing: .2px;
  text-align: center;
  border-radius: 12px;
  margin: 3px 0;
  background: #fff;
}
.city-option:active,
.sheet-option:active {
  background: #f7f8fb;
}
.city-option.active,
.sheet-option.active {
  background: #fff7cf;
  color: #c98a00;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 0, .45);
}
.city-option.active::after,
.sheet-option.active::after {
  margin-left: 6px;
}
.sheet-head {
  height: 54px;
}
.sheet-head strong {
  font-size: 18px;
}
.sheet-cancel,
.sheet-ok {
  font-size: 16px !important;
}
@media (max-height: 680px) {
  .city-wheel { max-height: 54vh; }
  .city-option,
  .sheet-option { min-height: 54px; height: 54px; line-height: 54px; }
}

/* v14: four statuses + order number */
.submitted-tip {
  margin: -4px 0 14px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #fffdf1;
  color: #9a6b00;
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid #fff0a8;
}
.status-tabs.status-tabs-four { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.status-tabs.status-tabs-four a { padding: 9px 4px; font-size: 12px; border-radius: 12px; }
.status-tabs.status-tabs-four b { display: block; margin: 3px 0 0; font-size: 13px; }
.stats-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-buttons .stat-btn { min-width: 0; }
.stats-buttons .stat-btn .stat-num { font-size: 22px; }
.stats-buttons .stat-label { font-size: 12px; }
.order-number-row input { letter-spacing: .5px; }
@media (max-width: 360px) {
  .status-tabs.status-tabs-four { gap: 5px; }
  .status-tabs.status-tabs-four a { font-size: 11px; }
  .stats-buttons { gap: 5px; }
  .stats-buttons .stat-num { font-size: 20px; }
}
