:root {
  --paper: #f4f6f1;
  --ink: #171a16;
  --muted: #697067;
  --line: #d9ded2;
  --phone: #10130f;
  --panel: #fffef8;
  --steel: #557283;
  --oil: #147568;
  --safety: #f3c846;
  --safety-dark: #92721a;
  --danger: #c84d3f;
  --blue: #3867d6;
  --shadow: 0 24px 70px rgba(23, 26, 22, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 26, 22, 0.05) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(23, 26, 22, 0.05) 1px, transparent 1px) 0 0 / 42px 42px,
    var(--paper);
  font-family: "Arial Narrow", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.42;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.stage {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(360px, 480px);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
  width: min(1180px, calc(100% - 40px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 32px 0;
}

.brief {
  display: grid;
  gap: 22px;
}

.eyebrow {
  margin: 0;
  color: var(--safety-dark);
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 8em;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.94;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  color: #343a32;
  font-size: 20px;
}

.phone-shell {
  display: grid;
  justify-items: center;
}

.phone {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, 410px);
  height: min(820px, calc(100dvh - 48px));
  min-height: 660px;
  overflow: hidden;
  border: 10px solid var(--phone);
  border-radius: 34px;
  background: #eef1e8;
  box-shadow: var(--shadow);
}

.phone::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 94px;
  height: 8px;
  border-radius: 999px;
  background: #252922;
  transform: translateX(-50%);
  z-index: 2;
}

.mini-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: end;
  min-height: 106px;
  padding: 48px 18px 16px;
  color: #f9f7ea;
  background:
    linear-gradient(135deg, rgba(243, 200, 70, 0.95), rgba(20, 117, 104, 0.84)),
    #141813;
}

.global-actions {
  position: absolute;
  top: 14px;
  left: 18px;
  display: inline-flex;
  gap: 6px;
}

.global-actions button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(255, 254, 248, 0.48);
  border-radius: 7px;
  color: #fffef8;
  background: rgba(16, 19, 15, 0.28);
  font-size: 12px;
  font-weight: 900;
}

.global-actions button:hover {
  background: rgba(16, 19, 15, 0.46);
}

.mini-top p {
  margin-bottom: 4px;
  color: rgba(255, 254, 248, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.mini-top h2 {
  font-size: 26px;
  line-height: 1.08;
}

.scan-btn,
.primary-btn,
.secondary-btn,
.ghost-btn {
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.scan-btn {
  min-width: 78px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  background: #fffef8;
}

.screen {
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.stack {
  display: grid;
  gap: 14px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mine-dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-height: 78px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.metric b {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-btn {
  width: 100%;
  text-align: left;
}

.metric-btn:hover {
  border-color: var(--blue);
  background: #e6f4ff;
}

.mine-dashboard-page {
  min-height: 100%;
  align-content: start;
}

.mine-dashboard-grid .metric {
  display: grid;
  align-content: center;
  min-height: 132px;
  padding: 18px;
}

.mine-dashboard-grid .metric b {
  font-size: 36px;
}

.logout-btn {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 77, 79, 0.28);
  border-radius: 8px;
  color: #cf1322;
  background: #fff1f0;
  font-weight: 700;
}

.task-card,
.form-panel,
.sync-row,
.trace-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(23, 26, 22, 0.06);
}

.task-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.task-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.plate {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 10px;
  border: 1px solid #111;
  border-radius: 4px;
  color: #f7fbff;
  background: #1c4f9c;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 900;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--steel);
  font-size: 12px;
  font-weight: 900;
}

.status.hot {
  background: var(--danger);
}

.status.ok {
  background: var(--oil);
}

.status.warn {
  color: #2b250f;
  background: var(--safety);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.step {
  min-height: 8px;
  border-radius: 999px;
  background: #dce1d6;
}

.step.done {
  background: var(--oil);
}

.step.now {
  background: var(--safety);
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 44px;
  padding: 0 12px;
}

.primary-btn {
  color: #fffef8;
  background: var(--ink);
}

.secondary-btn {
  color: var(--ink);
  background: var(--safety);
}

.ghost-btn {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
}

.form-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span,
.section-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cfd7c7;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 76px;
}

.check-list {
  display: grid;
  gap: 8px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.check-row input {
  width: 20px;
  min-height: 20px;
}

.precheck-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.precheck-tabs button {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 54px;
  padding: 7px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 11px;
  font-weight: 900;
}

.precheck-tabs button b {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #fffef8;
  background: var(--steel);
  font-size: 12px;
}

.precheck-tabs button.active {
  border-color: rgba(20, 117, 104, 0.4);
  color: var(--ink);
  background: #f3fff9;
}

.precheck-tabs button.active b {
  background: var(--oil);
}

.inspection-legend {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}

.inspection-groups {
  display: grid;
  gap: 10px;
}

.inspection-group {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.inspection-group h3 {
  color: var(--ink);
  font-size: 14px;
}

.inspection-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 7px;
  border: 1px solid #edf0e7;
  border-radius: 7px;
  background: #fbfcf8;
}

.inspection-row strong,
.inspection-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspection-row strong {
  font-size: 13px;
}

.inspection-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.status-toggle {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  gap: 4px;
}

.status-toggle button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d8dfd1;
  border-radius: 7px;
  color: var(--muted);
  background: #fff;
  font-weight: 900;
}

.status-toggle button.active.ok {
  border-color: rgba(20, 117, 104, 0.32);
  color: #fffef8;
  background: var(--oil);
}

.status-toggle button.active.watch {
  border-color: rgba(243, 200, 70, 0.7);
  color: #2b250f;
  background: var(--safety);
}

.status-toggle button.active.repair {
  border-color: rgba(200, 77, 63, 0.34);
  color: #fffef8;
  background: var(--danger);
}

.service-chip-grid,
.damage-options,
.fuel-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.service-chip-grid button,
.damage-options button,
.fuel-tabs button {
  min-height: 36px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.service-chip-grid button.active,
.damage-options button.active,
.fuel-tabs button.active {
  border-color: rgba(56, 103, 214, 0.38);
  color: #fffef8;
  background: var(--blue);
}

.appearance-panel {
  display: grid;
  gap: 10px;
}

.car-map {
  position: relative;
  min-height: 150px;
  border: 1px solid #cfd7c7;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 18%, rgba(56, 103, 214, 0.16), transparent 20%),
    linear-gradient(90deg, transparent 12%, rgba(20, 117, 104, 0.14) 12% 18%, transparent 18% 82%, rgba(20, 117, 104, 0.14) 82% 88%, transparent 88%),
    #fff;
}

.car-map::before {
  content: "";
  position: absolute;
  inset: 25px 88px;
  border: 4px solid #26342e;
  border-radius: 48px 48px 28px 28px;
}

.car-map::after {
  content: "";
  position: absolute;
  left: 138px;
  top: 52px;
  width: 16px;
  height: 44px;
  border-radius: 999px;
  background: var(--danger);
  box-shadow: 0 52px 0 var(--safety);
}

.appearance-hotspot {
  position: absolute;
  display: inline-grid;
  justify-items: center;
  align-items: center;
  min-height: 24px;
  padding: 2px 7px;
  border: 0;
  border-radius: 999px;
  color: #fffef8;
  background: rgba(23, 26, 22, 0.78);
  font-size: 11px;
  font-weight: 900;
}

.appearance-hotspot b {
  color: #ffd6d3;
  font-size: 10px;
}

.appearance-hotspot.active {
  color: #0958d9;
  background: #e6f4ff;
  box-shadow: 0 0 0 2px #1677ff;
}

.appearance-hotspot.marked:not(.active) {
  background: var(--danger);
}

.appearance-hotspot.front {
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.appearance-hotspot.rear {
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.appearance-hotspot.leftFront {
  top: 34px;
  left: 20px;
}

.appearance-hotspot.rightFront {
  top: 34px;
  right: 20px;
}

.appearance-hotspot.leftRear {
  bottom: 34px;
  left: 20px;
}

.appearance-hotspot.rightRear {
  right: 20px;
  bottom: 34px;
}

.appearance-hotspot.spare {
  right: 50%;
  bottom: 54px;
  transform: translateX(50%);
}

.damage-picker {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.damage-picker strong,
.damage-picker small {
  display: block;
}

.damage-picker small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.appearance-record-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.appearance-record-list button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(200, 77, 63, 0.22);
  border-radius: 7px;
  color: #cf1322;
  background: #fff1f0;
  font-size: 12px;
  font-weight: 900;
}

.precheck-photo-list {
  display: grid;
  gap: 10px;
}

.precheck-photo-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.precheck-photo-card.uploaded {
  border-color: rgba(20, 117, 104, 0.28);
  background: #f6ffed;
}

.precheck-photo-card img {
  width: 120px;
  height: 80px;
  border-radius: 7px;
  object-fit: contain;
  background: #f5f5f5;
}

.precheck-photo-card strong,
.precheck-photo-card small {
  display: block;
}

.precheck-photo-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.customer-facing {
  gap: 12px;
}

.customer-quote-hero {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #1677ff, #13c2c2);
}

.customer-quote-hero .status {
  width: fit-content;
  color: #0958d9;
  background: #fff;
}

.customer-quote-hero h3 {
  font-size: 22px;
  line-height: 1.2;
}

.customer-quote-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 900;
}

.customer-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.customer-info-grid span {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.customer-info-grid b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.customer-note {
  color: rgba(0, 0, 0, 0.65);
  font-size: 13px;
}

.customer-line {
  background: #fff;
}

.customer-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border-radius: 8px;
  color: #0958d9;
  background: #e6f4ff;
}

.customer-total span {
  font-weight: 900;
}

.customer-total strong {
  font-size: 28px;
}

.suggestion-list {
  display: grid;
  gap: 7px;
}

.suggestion-row {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid rgba(200, 77, 63, 0.22);
  border-radius: 7px;
  background: #fff6ef;
}

.suggestion-row strong {
  font-size: 13px;
}

.suggestion-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.photo-grid.compact .photo {
  min-height: 72px;
}

.area-grid {
  display: grid;
  gap: 10px;
}

.claim-source-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.claim-source-tabs button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.claim-source-tabs button.active {
  color: #fffef8;
  background: var(--ink);
}

.claim-source-tabs span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.claim-source-tabs b {
  display: grid;
  place-items: center;
  min-width: 22px;
  min-height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--safety);
  font-size: 12px;
}

.area-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(23, 26, 22, 0.06);
}

.external-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(56, 103, 214, 0.26);
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: 0 10px 24px rgba(23, 26, 22, 0.06);
}

.external-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(56, 103, 214, 0.14);
}

.external-list-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(56, 103, 214, 0.22);
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: 0 10px 24px rgba(23, 26, 22, 0.06);
}

.external-order-list {
  display: grid;
  gap: 10px;
}

.external-order-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.external-order-main strong,
.external-order-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.external-order-main small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.external-detail-grid {
  display: grid;
  gap: 6px;
}

.external-detail-grid span {
  display: grid;
  gap: 3px;
  min-height: 42px;
  padding: 8px;
  border-radius: 7px;
  color: var(--ink);
  background: #edf4ff;
  font-size: 12px;
  font-weight: 900;
}

.external-detail-grid b {
  color: #637285;
  font-size: 11px;
}

.work-list-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(20, 117, 104, 0.24);
  border-radius: 8px;
  background: #f8fffb;
  box-shadow: 0 10px 24px rgba(23, 26, 22, 0.06);
}

.work-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 9px;
  border: 1px solid #d6dccf;
  border-radius: 7px;
  background: #fffef8;
}

.work-order-row.active {
  border-color: var(--oil);
  box-shadow: 0 0 0 3px rgba(20, 117, 104, 0.12);
}

.history-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.completed-orders-panel {
  border-color: rgba(22, 119, 255, 0.2);
  background: #f8fbff;
}

.completed-order-row {
  background: #fff;
}

.work-order-row strong,
.work-order-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-order-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.area-card.active {
  border-color: var(--oil);
  box-shadow: 0 0 0 3px rgba(20, 117, 104, 0.16);
}

.area-actions {
  display: grid;
}

.flow-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.area-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.area-status-grid span {
  display: grid;
  gap: 2px;
  min-height: 50px;
  padding: 8px;
  border-radius: 7px;
  background: #eef1e8;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.area-status-grid b {
  color: var(--muted);
  font-size: 11px;
}

.queue-panel {
  display: grid;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: #eef1e8;
}

.queue-title,
.queue-vehicle {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.queue-title span,
.queue-empty,
.queue-vehicle small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.queue-vehicle {
  min-height: 48px;
  padding: 8px;
  border: 1px solid #d6dccf;
  border-radius: 7px;
  background: #fffef8;
}

.queue-vehicle.selected {
  border-color: var(--oil);
  box-shadow: 0 0 0 3px rgba(20, 117, 104, 0.12);
}

.queue-vehicle.locked {
  opacity: 0.68;
  background: #f1f3ec;
}

.queue-vehicle strong,
.queue-vehicle small {
  display: block;
}

.queue-more-btn {
  min-height: 38px;
  border: 1px solid rgba(56, 103, 214, 0.28);
  border-radius: 7px;
  color: #173b7a;
  background: #eaf2ff;
  font-weight: 900;
}

.queue-filter-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.queue-filter-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: #eef1e8;
  font-size: 12px;
  font-weight: 900;
}

.queue-filter-tabs button.active {
  color: #fffef8;
  background: var(--oil);
}

.queue-list-panel {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef1e8;
}

.small-action {
  min-height: 34px;
  padding: 0 10px;
  white-space: nowrap;
}

.flow-rail span {
  display: grid;
  place-items: center;
  min-height: 30px;
  border-radius: 6px;
  color: var(--muted);
  background: #eef1e8;
  font-size: 12px;
  font-weight: 900;
}

.flow-rail span.done {
  color: #fffef8;
  background: var(--oil);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.compact-form {
  grid-template-columns: 1fr;
}

.share-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffef8;
  box-shadow: 0 10px 24px rgba(23, 26, 22, 0.06);
}

.share-card p {
  color: var(--muted);
  font-size: 13px;
}

.source-summary {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(56, 103, 214, 0.24);
  border-radius: 7px;
  background: #f8fbff;
}

.source-summary span,
.source-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.library-sync {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #143f39;
  background: rgba(20, 117, 104, 0.12);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.product-library-panel {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(56, 103, 214, 0.2);
  border-radius: 8px;
  background: #f8fbff;
}

.product-filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.product-filter-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: #e8eef7;
  font-size: 12px;
  font-weight: 900;
}

.product-filter-tabs button.active {
  color: #fffef8;
  background: var(--blue);
}

.product-library-list {
  display: grid;
  gap: 7px;
  max-height: 188px;
  overflow: auto;
}

.product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 58px;
  padding: 9px;
  border: 1px solid #cfdae8;
  border-radius: 7px;
  background: #fff;
}

.product-row.selected {
  border-color: var(--oil);
  background: #f8fffb;
}

.product-row strong,
.product-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-row small {
  color: #637285;
  font-size: 12px;
  font-weight: 900;
}

.product-side {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.product-side span {
  color: var(--ink);
  font-weight: 900;
}

.qty-stepper {
  display: grid;
  grid-template-columns: 28px minmax(44px, auto) 28px;
  align-items: center;
  min-height: 30px;
  overflow: hidden;
  border: 1px solid #cfdae8;
  border-radius: 7px;
  background: #f8fbff;
}

.qty-stepper button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 30px;
  border: 0;
  color: #fffef8;
  background: var(--blue);
  font-weight: 900;
}

.qty-stepper button:disabled {
  color: #95a0ad;
  background: #e7edf5;
  opacity: 1;
}

.qty-stepper strong {
  display: grid;
  place-items: center;
  min-height: 30px;
  padding: 0 6px;
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.material-issue-list {
  display: grid;
  gap: 8px;
}

.material-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid #d6dccf;
  border-radius: 7px;
  background: #fff;
}

.material-row.done {
  border-color: rgba(20, 117, 104, 0.36);
  background: #f8fffb;
}

.material-row strong,
.material-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.material-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.gate-card {
  border-color: rgba(200, 77, 63, 0.26);
  background: #fff6ef;
}

.mock-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 5px 9px;
  border-radius: 6px;
  color: #fffef8;
  background: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.photo {
  position: relative;
  min-height: 92px;
  overflow: hidden;
  border-radius: 7px;
  background: #c8d0c2;
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  padding: 3px 6px;
  border-radius: 4px;
  color: #fff;
  background: rgba(17, 22, 19, 0.78);
  font-size: 11px;
  font-weight: 900;
}

.order-lines {
  display: grid;
  gap: 8px;
}

.line-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.line-row strong {
  display: block;
}

.line-row small {
  color: var(--muted);
}

.editable-line {
  grid-template-columns: minmax(0, 1fr) auto;
}

.editable-line strong,
.editable-line small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.amount {
  font-weight: 900;
}

.delete-line {
  min-width: 32px;
  min-height: 28px;
  border: 1px solid rgba(200, 77, 63, 0.26);
  border-radius: 7px;
  color: var(--danger);
  background: #fff6ef;
  font-size: 12px;
  font-weight: 900;
}

.total-line {
  background: #f6f0cf;
}

.signature-panel {
  gap: 14px;
}

.signature-box {
  display: grid;
  place-items: center;
  min-height: 112px;
  border: 1px dashed #9fa996;
  border-radius: 8px;
  color: var(--muted);
  background:
    linear-gradient(135deg, transparent 48%, rgba(23, 26, 22, 0.08) 49%, rgba(23, 26, 22, 0.08) 51%, transparent 52%),
    #fff;
  font-size: 24px;
  font-weight: 900;
}

.timeline {
  position: relative;
  display: grid;
  gap: 10px;
}

.trace-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  padding: 10px;
}

.trace-time {
  color: var(--oil);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
}

.trace-item p {
  color: var(--muted);
  font-size: 13px;
}

.sync-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.sync-row small {
  display: block;
  color: var(--muted);
}

.phone-footer {
  display: grid;
  border-top: 1px solid #d6dccf;
  background: #fffef8;
}

.app-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 6px 8px 8px;
  border-top: 1px solid #e4e8de;
  background: #fbfaf2;
}

.app-tab {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.app-tab b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: #fffef8;
  background: #73806e;
  font-size: 12px;
  line-height: 1;
}

.app-tab span {
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-tab em {
  position: absolute;
  top: 5px;
  right: calc(50% - 28px);
  min-width: 18px;
  min-height: 18px;
  padding: 1px 5px;
  border: 2px solid #fbfaf2;
  border-radius: 999px;
  color: #fffef8;
  background: var(--danger);
  font-size: 10px;
  font-style: normal;
  line-height: 14px;
}

.app-tab.active {
  color: var(--ink);
  background: #eef1e8;
}

.app-tab.active b {
  background: var(--oil);
}

.profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(23, 26, 22, 0.06);
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  color: #fffef8;
  background: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.setting-list {
  display: grid;
  gap: 8px;
}

.setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.setting-row strong,
.setting-row small {
  display: block;
}

.setting-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.setting-row span {
  width: 8px;
  height: 28px;
  border-radius: 999px;
  background: var(--oil);
}

.sync-row.slim {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border-radius: 8px;
  color: #fffef8;
  background: #171a16;
  box-shadow: 0 18px 44px rgba(23, 26, 22, 0.25);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.success {
  background: #171a16;
}

.toast.warn {
  color: #2b250f;
  background: var(--safety);
}

.toast.error {
  background: var(--danger);
}

.toast.info {
  background: var(--blue);
}

.validation-tip {
  margin: 0;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}

.validation-tip.ok {
  color: #135200;
  background: #f6ffed;
}

.validation-tip.warn {
  color: #874d00;
  background: #fff7e6;
}

.phrase-picker {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(22, 119, 255, 0.16);
  border-radius: 8px;
  background: #f8fbff;
}

.phrase-picker p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.phrase-picker div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.phrase-picker button {
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  color: rgba(0, 0, 0, 0.65);
  background: #fff;
  font-size: 12px;
  font-weight: 500;
}

.phrase-picker button.active {
  border-color: #1677ff;
  color: #0958d9;
  background: #e6f4ff;
}

.precheck-tabs button.done {
  border-color: rgba(20, 117, 104, 0.34);
  color: var(--oil);
  background: #f6ffed;
}

.precheck-tabs button.done b {
  background: var(--oil);
}

.precheck-tabs button.warn {
  border-color: rgba(250, 173, 20, 0.5);
  color: #ad6800;
  background: #fffbe6;
}

.precheck-tabs button.warn b {
  color: #2b250f;
  background: var(--safety);
}

.inspection-toolbar,
.inspection-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.inspection-toolbar > div {
  display: inline-flex;
  gap: 6px;
}

.inspection-summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.inspection-toolbar .active {
  border-color: rgba(22, 119, 255, 0.38);
  color: #fff;
  background: var(--blue);
}

.inspection-group-head {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.inspection-group-head h3 {
  display: grid;
  gap: 2px;
}

.inspection-group-head small {
  color: var(--muted);
  font-size: 11px;
}

.inspection-group.collapsed {
  background: #fbfaf2;
}

.exception-list {
  padding: 10px;
  border: 1px solid rgba(250, 173, 20, 0.32);
  border-radius: 7px;
  color: #874d00;
  background: #fffbe6;
  font-size: 12px;
  font-weight: 800;
}

.scan-simulator {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(22, 119, 255, 0.18);
  border-radius: 8px;
  background: #f8fbff;
}

.operation-log-panel {
  gap: 8px;
}

.operation-log-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.operation-log-row span {
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.operation-log-row p {
  color: var(--muted);
  font-size: 12px;
}

.operation-log-row b {
  display: block;
  color: var(--ink);
}

.customer-h5-status {
  border-color: rgba(22, 119, 255, 0.22);
  background: #f8fbff;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(56, 103, 214, 0.38);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .stage {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px 0;
  }

  h1 {
    max-width: 9em;
    font-size: 48px;
  }

  .lead {
    font-size: 17px;
  }

  .phone {
    height: 760px;
    min-height: 620px;
  }
}

@media (max-width: 450px) {
  .stage {
    width: 100%;
    padding: 0;
  }

  .brief {
    padding: 22px 16px 6px;
  }

  .phone {
    width: 100%;
    height: 100dvh;
    min-height: 620px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone::before {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .area-status-grid {
    grid-template-columns: 1fr;
  }
}

/* Ant Design alignment pass */
:root {
  --paper: #f5f5f5;
  --ink: rgba(0, 0, 0, 0.88);
  --muted: rgba(0, 0, 0, 0.45);
  --line: #f0f0f0;
  --phone: #111827;
  --panel: #ffffff;
  --steel: #1677ff;
  --oil: #52c41a;
  --safety: #faad14;
  --safety-dark: #d48806;
  --danger: #ff4d4f;
  --blue: #1677ff;
  --shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.stage {
  grid-template-columns: minmax(300px, 0.82fr) minmax(360px, 430px);
}

.eyebrow {
  color: var(--blue);
}

h1 {
  max-width: 9em;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1;
}

.lead {
  color: rgba(0, 0, 0, 0.65);
}

.phone {
  border-color: var(--phone);
  border-radius: 32px;
  background: #f5f5f5;
  box-shadow: var(--shadow);
}

.phone::before {
  background: rgba(255, 255, 255, 0.22);
}

.mini-top {
  color: #fff;
  background: var(--blue);
}

.mini-top p {
  color: rgba(255, 255, 255, 0.72);
}

.global-actions button,
.scan-btn,
.primary-btn,
.secondary-btn,
.ghost-btn,
.queue-more-btn,
.small-action {
  border-radius: 6px;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.global-actions button {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.scan-btn,
.primary-btn {
  color: #fff;
  background: var(--blue);
}

.mini-top .scan-btn {
  color: var(--blue);
  background: #fff;
}

.secondary-btn {
  color: #fff;
  background: #13c2c2;
}

.ghost-btn,
.queue-more-btn {
  border: 1px solid #d9d9d9;
  color: var(--ink);
  background: #fff;
}

.ghost-btn:hover,
.queue-more-btn:hover {
  border-color: #4096ff;
  color: #4096ff;
}

.metric,
.task-card,
.form-panel,
.sync-row,
.trace-item,
.area-card,
.external-card,
.external-list-panel,
.work-list-panel,
.share-card,
.queue-list-panel,
.claim-source-tabs,
.flow-rail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: none;
}

.screen {
  padding: 14px;
}

.stack {
  gap: 12px;
}

.status {
  min-height: 22px;
  border-radius: 4px;
  color: #0958d9;
  background: #e6f4ff;
  font-weight: 500;
}

.status.hot {
  color: #cf1322;
  background: #fff1f0;
}

.status.ok {
  color: #389e0d;
  background: #f6ffed;
}

.status.warn {
  color: #d48806;
  background: #fffbe6;
}

.plate {
  border-color: #91caff;
  border-radius: 4px;
  color: #0958d9;
  background: #e6f4ff;
}

.step {
  background: #f0f0f0;
}

.step.done {
  background: var(--oil);
}

.step.now {
  background: var(--blue);
}

input,
textarea,
select {
  border-color: #d9d9d9;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
  outline: none;
}

.claim-source-tabs,
.queue-filter-tabs {
  gap: 2px;
  padding: 2px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
}

.claim-source-tabs button,
.queue-filter-tabs button,
.flow-rail span {
  border-radius: 4px;
  color: rgba(0, 0, 0, 0.65);
  background: transparent;
  font-weight: 500;
}

.claim-source-tabs button.active,
.queue-filter-tabs button.active,
.flow-rail span.done {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.claim-source-tabs b {
  color: #fff;
  background: var(--blue);
}

.area-card.active,
.external-card.active,
.work-order-row.active,
.queue-vehicle.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
}

.phone-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.app-tabs {
  background: #fff;
}

.app-tabs button {
  color: var(--muted);
}

.app-tabs button.active {
  color: var(--blue);
}

.toast {
  border: 0;
  border-left: 5px solid #52c41a;
  border-radius: 10px;
  color: #ffffff;
  background: #1f2937;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.toast.success {
  border-left-color: #52c41a;
  background: #14532d;
}

.toast.warn {
  border-left-color: #f59e0b;
  color: #fff7ed;
  background: #92400e;
}

.toast.error {
  border-left-color: #f87171;
  background: #991b1b;
}

.toast.info {
  border-left-color: #60a5fa;
  background: #1e3a8a;
}

/* Ant Mobile hardening pass */
.brief {
  gap: 16px;
}

.phone {
  width: min(100%, 414px);
}

.mini-top {
  min-height: 96px;
  padding: 44px 16px 14px;
}

.mini-top h2 {
  font-size: 22px;
  font-weight: 600;
}

.global-actions {
  top: 12px;
  left: 16px;
}

.global-actions button,
.scan-btn {
  min-height: 32px;
}

.summary-grid,
.photo-grid,
.area-status-grid {
  gap: 8px;
}

.metric {
  min-height: 72px;
}

.metric b {
  font-size: 22px;
  font-weight: 600;
}

.field span,
.section-title,
.meta,
.queue-title span,
.queue-empty,
.queue-vehicle small,
.external-order-main small,
.work-order-row small,
.setting-row small {
  color: rgba(0, 0, 0, 0.45);
  font-weight: 500;
}

input,
textarea,
select,
.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 40px;
}

select {
  appearance: none;
  padding-right: 30px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(0, 0, 0, 0.45) 50%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.45) 50%, transparent 50%);
  background-position:
    calc(100% - 15px) 50%,
    calc(100% - 10px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.task-card,
.form-panel,
.area-card,
.external-card,
.external-list-panel,
.work-list-panel,
.share-card,
.setting-row,
.queue-vehicle,
.work-order-row {
  padding: 12px;
}

.task-card:hover,
.area-card:hover,
.external-card:hover,
.work-order-row:hover,
.queue-vehicle:hover,
.setting-row:hover {
  border-color: #d9d9d9;
}

.check-row,
.external-detail-grid span,
.area-status-grid span,
.queue-panel,
.queue-vehicle,
.work-order-row,
.setting-row,
.photo,
.sync-row.slim {
  border-radius: 8px;
  background: #fff;
}

.queue-panel,
.flow-rail,
.claim-source-tabs,
.queue-list-panel {
  background: #fafafa;
}

.button-row {
  gap: 8px;
}

.primary-btn:hover,
.mini-top .scan-btn:hover {
  background: #4096ff;
}

.secondary-btn:hover {
  background: #36cfc9;
}

.app-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 56px;
}

.app-tabs button {
  min-width: 0;
  min-height: 56px;
  border: 0;
  background: transparent;
  font-weight: 500;
}

.app-tabs button.active {
  background: #e6f4ff;
}

.app-tab b,
.tab-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0 auto 2px;
  border-radius: 999px;
  color: currentColor;
  background: transparent;
  font-size: 0;
}

.tab-icon::before,
.tab-icon::after {
  content: "";
  display: block;
  box-sizing: border-box;
}

.tab-icon-scan::before {
  width: 17px;
  height: 17px;
  border: 1.8px solid currentColor;
  border-radius: 4px;
  box-shadow: inset 0 6px 0 -5px currentColor;
}

.tab-icon-scan::after {
  position: absolute;
  width: 10px;
  height: 1.8px;
  border-radius: 99px;
  background: currentColor;
}

.tab-icon-file::before {
  width: 15px;
  height: 18px;
  border: 1.8px solid currentColor;
  border-radius: 3px;
  clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%);
}

.tab-icon-user::before {
  width: 9px;
  height: 9px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.tab-icon-user::after {
  position: absolute;
  width: 16px;
  height: 8px;
  margin-top: 13px;
  border: 1.8px solid currentColor;
  border-radius: 9px 9px 3px 3px;
}

.phone-footer[hidden] {
  display: none;
}

.precheck-tabs {
  padding: 2px;
  border-radius: 8px;
  background: #f5f5f5;
}

.precheck-tabs button {
  border-color: transparent;
  color: rgba(0, 0, 0, 0.65);
  background: transparent;
  font-weight: 500;
}

.precheck-tabs button.active {
  border-color: transparent;
  color: var(--blue);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.precheck-tabs button b {
  color: currentColor;
  background: #e6f4ff;
}

.precheck-tabs button.active b {
  background: #e6f4ff;
}

.inspection-group,
.inspection-row,
.suggestion-row {
  border-color: var(--line);
  background: #fff;
}

.inspection-legend,
.inspection-row small,
.suggestion-row small {
  color: rgba(0, 0, 0, 0.45);
  font-weight: 500;
}

.status-toggle button,
.service-chip-grid button,
.damage-options button,
.fuel-tabs button {
  border-color: #d9d9d9;
  border-radius: 6px;
  background: #fff;
  font-weight: 500;
}

.status-toggle button.active.ok {
  border-color: #52c41a;
  color: #389e0d;
  background: #f6ffed;
}

.status-toggle button.active.watch {
  border-color: #faad14;
  color: #d48806;
  background: #fffbe6;
}

.status-toggle button.active.repair {
  border-color: #ff4d4f;
  color: #cf1322;
  background: #fff1f0;
}

.service-chip-grid button.active,
.damage-options button.active,
.fuel-tabs button.active {
  border-color: #1677ff;
  color: #0958d9;
  background: #e6f4ff;
}

.toast::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--oil);
}

@media (max-width: 450px) {
  .phone {
    border-radius: 0;
  }
}

@media (max-width: 860px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .stage {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100vw;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .brief {
    display: none;
  }

  .phone-shell {
    align-self: stretch;
    justify-items: stretch;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .phone {
    width: 100%;
    max-width: 100vw;
    height: 100dvh;
    min-height: 620px;
    border-width: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone::before {
    display: none;
  }

  .screen,
  .mini-top,
  .phone-footer,
  .app-tabs,
  .stack,
  .task-card,
  .form-panel,
  .area-card,
  .external-card,
  .external-list-panel,
  .work-list-panel,
  .share-card,
  .claim-source-tabs,
  .queue-list-panel,
  .flow-rail {
    max-width: 100%;
  }

  .screen {
    width: 100vw;
    overflow-x: hidden;
  }

  .claim-source-tabs,
  .summary-grid,
  .area-status-grid,
  .queue-filter-tabs,
  .flow-rail,
  .app-tabs {
    min-width: 0;
  }

  .summary-grid,
  .area-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mine-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .claim-source-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: auto;
  }

  .queue-filter-tabs,
  .flow-rail {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .claim-source-tabs button,
  .queue-filter-tabs button,
  .app-tabs button,
  .flow-rail span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .external-order-main,
  .work-order-row,
  .queue-vehicle,
  .metric,
  .task-card,
  .form-panel,
  .area-card,
  .external-card,
  .work-list-panel,
  .queue-panel,
  .queue-vehicle > *,
  .area-card > *,
  .task-card > * {
    min-width: 0;
  }

  .metric span,
  .task-card,
  .area-card,
  .queue-vehicle,
  .work-order-row,
  .external-order-main small,
  .work-order-row small {
    overflow-wrap: anywhere;
  }

  .stack,
  .summary-grid,
  .area-grid,
  .form-panel,
  .task-card,
  .area-card,
  .external-card,
  .external-list-panel,
  .work-list-panel,
  .share-card,
  .claim-source-tabs,
  .queue-list-panel,
  .flow-rail {
    width: 100%;
    max-width: calc(100vw - 28px);
  }

  .area-card-head,
  .task-head,
  .queue-title,
  .queue-vehicle,
  .work-order-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .area-card-head > *,
  .task-head > *,
  .queue-title > *,
  .queue-vehicle > *,
  .work-order-row > * {
    min-width: 0;
  }
}

/* Crisp SVG-mask tab icons. */
.tab-icon::before {
  width: 20px !important;
  height: 20px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: currentColor !important;
  box-shadow: none !important;
  clip-path: none !important;
  -webkit-mask: var(--tab-icon-mask) center / contain no-repeat;
  mask: var(--tab-icon-mask) center / contain no-repeat;
}

.tab-icon::after {
  display: none !important;
}

.tab-icon-scan {
  --tab-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7V5a1 1 0 0 1 1-1h2M17 4h2a1 1 0 0 1 1 1v2M20 17v2a1 1 0 0 1-1 1h-2M7 20H5a1 1 0 0 1-1-1v-2'/%3E%3Cpath d='M7 12h10'/%3E%3Cpath d='M9 9h6v6H9z'/%3E%3C/svg%3E");
}

.tab-icon-file {
  --tab-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h4'/%3E%3C/svg%3E");
}

.tab-icon-user {
  --tab-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.7-4.2 4.4-6 8-6s6.3 1.8 8 6'/%3E%3C/svg%3E");
}
