:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #667085;
  --line: #dfe3eb;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #14804a;
  --danger: #c2410c;
  --warning: #a16207;
  --shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

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

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

body.customer-web-entry {
  min-height: 100vh;
  overflow: hidden;
  background: #f8fafc;
}

body.customer-web-entry .app-shell {
  display: block;
  min-height: 100vh;
}

body.customer-web-entry .sidebar,
body.customer-web-entry .topbar,
body.customer-web-entry .app-control-panel,
body.customer-web-entry .customer-app-layout > .panel:not(.app-phone-frame) {
  display: none !important;
}

body.customer-web-entry .main {
  min-height: 100vh;
  padding: 0;
}

body.customer-web-entry #view {
  min-height: 100vh;
}

body.customer-web-entry .customer-app-shell,
body.customer-web-entry .customer-app-layout {
  display: block;
  min-height: 100vh;
}

body.customer-web-entry .app-phone-frame {
  width: 100vw;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: #f8fafc;
  box-shadow: none;
}

body.customer-web-entry .app-phone-screen {
  min-height: 100vh;
  border-radius: 0;
}

body.customer-web-entry .app-phone-screen .app-page,
body.customer-web-entry .app-phone-screen .app-phone-page {
  height: 100vh;
  max-height: 100vh;
  min-height: 0;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  background: #111827;
  color: #fff;
  padding: 16px 14px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px;
  margin-bottom: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--primary);
  font-weight: 800;
}

.brand span {
  display: block;
  margin-top: 4px;
  color: #aeb8c8;
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 2px 4px;
}

.nav-tools button {
  min-height: 28px;
  padding: 5px 7px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 12px;
}

.nav-tools button:hover {
  background: rgba(37, 99, 235, 0.28);
  color: #fff;
}

.nav-group {
  display: grid;
  gap: 3px;
  padding: 2px 0 7px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.nav-group:last-child {
  border-bottom: 0;
}

.nav-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 24px;
  padding: 3px 8px 1px;
  border-radius: 6px;
  color: #8fa0ba;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
}

.nav-group-title:hover {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.06);
}

.nav-group-title b {
  color: #64748b;
  font-size: 13px;
  line-height: 1;
}

.nav-group.collapsed {
  padding-bottom: 4px;
}

.nav-submenu {
  display: grid;
  gap: 3px;
}

.nav-submenu button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 6px 9px 6px 16px;
  border-radius: 7px;
  color: #d5dbea;
  background: transparent;
  text-align: left;
  font-size: 13px;
}

.nav-submenu button.active,
.nav-submenu button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-submenu button.active {
  box-shadow: inset 3px 0 0 var(--primary);
}

.sidebar-foot {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.ghost-btn {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #fff;
  background: transparent;
}

.main {
  min-width: 0;
  padding: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: 26px;
}

h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

p {
  margin: 6px 0 0;
  color: var(--muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.form-help {
  align-self: end;
  padding: 8px 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.5;
}

.dispatch-toolbar {
  display: grid;
  grid-template-columns: auto;
  gap: 6px;
  align-items: end;
  margin: 6px 0;
  justify-content: start;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}

.mini-select {
  width: auto;
  min-width: 150px;
  min-height: 30px;
}

.mini-input {
  width: 110px;
  min-height: 30px;
}

.supplier-workbench-tools {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.supplier-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.supplier-stat-strip span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
}

.supplier-stat-strip b {
  color: var(--text);
  font-size: 15px;
}

.supplier-bulk-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.supplier-bulk-row select {
  width: auto;
  min-width: 128px;
  min-height: 32px;
}

.supplier-reject-image-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  padding: 5px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  background: #f8fafc;
}

.supplier-reject-image-strip span {
  position: relative;
  display: inline-flex;
}

.supplier-reject-image-strip img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.supplier-reject-image-strip button {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 17px;
  height: 17px;
  min-height: 17px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  line-height: 17px;
}

.supplier-task-list {
  display: grid;
  gap: 6px;
}

.supplier-task-card {
  display: grid;
  grid-template-columns: 22px minmax(118px, 0.58fr) minmax(190px, 0.95fr) minmax(220px, 1fr) minmax(116px, 0.52fr) minmax(108px, 0.48fr);
  gap: 0;
  align-items: stretch;
  padding: 6px;
  border: 1px solid #dbe3ee;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.supplier-task-card.closed {
  background: #f8fafc;
  border-left-color: #94a3b8;
  opacity: 0.82;
}

.supplier-task-check {
  display: flex;
  align-items: center;
  justify-content: center;
}

.supplier-task-block {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
  padding: 4px 9px;
  border: 0;
  border-left: 1px solid #eef2f7;
  background: transparent;
}

.supplier-task-check + .supplier-task-block {
  border-left: 0;
}

.supplier-task-block strong,
.supplier-task-block span,
.supplier-task-block b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-task-block strong {
  color: #0f172a;
  font-size: 12px;
}

.supplier-order-no {
  width: fit-content;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8 !important;
}

.supplier-task-block span {
  color: var(--muted);
  font-size: 10px;
}

.supplier-order-state {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: #334155 !important;
  font-weight: 700;
}

.supplier-order-state i {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-style: normal;
  font-size: 10px;
  line-height: 18px;
  white-space: nowrap;
}

.supplier-state-pill.warn {
  background: #fff7ed;
  color: #c2410c;
}

.supplier-state-pill.ok {
  background: #ecfdf5;
  color: #047857;
}

.supplier-state-pill.bad {
  background: #fef2f2;
  color: #b91c1c;
}

.supplier-copy-pill.copied {
  background: #dcfce7;
  color: #15803d;
}

.supplier-copy-pill.uncopied {
  background: #fef3c7;
  color: #b45309;
}

.supplier-copy-time {
  padding: 0 2px !important;
  background: transparent;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.supplier-task-card-info b {
  color: #14532d;
}

.supplier-task-card-info {
  gap: 3px;
  padding-left: 10px;
}

.supplier-task-material {
  padding-left: 10px;
}

.supplier-task-copy-zone,
.supplier-task-feedback-zone {
  gap: 3px;
  padding-left: 10px;
  background: #fbfdff;
}

.supplier-task-copy-zone button,
.supplier-task-feedback-zone button {
  width: 100%;
  min-height: 23px;
  padding: 3px 7px;
  font-size: 10px;
  border-radius: 6px;
}

.supplier-task-copy-zone .secondary-btn {
  background: #fff;
}

.supplier-task-feedback-zone .success-btn {
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.16);
}

.supplier-task-feedback-zone .danger-btn {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.supplier-task-zone {
  display: grid;
  gap: 5px;
  align-content: start;
  min-width: 0;
  padding: 6px;
  border: 1px solid #eef2f7;
  border-radius: 7px;
  background: #fff;
}

.supplier-task-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #fff;
}

.supplier-task-zone h4 {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.supplier-task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.supplier-task-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.supplier-task-head strong,
.supplier-task-head span,
.supplier-task-grid span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-task-grid b {
  font-weight: 700;
}

.supplier-task-head strong {
  font-size: 12px;
}

.supplier-task-head span {
  color: var(--muted);
  font-size: 10px;
}

.supplier-task-badges {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.supplier-task-grid {
  display: grid;
  grid-template-columns: minmax(190px, 1.15fr) minmax(150px, 0.75fr) minmax(170px, 0.9fr) minmax(130px, 0.7fr);
  gap: 4px 8px;
  align-items: center;
  color: var(--text);
  font-size: 11px;
}

.supplier-task-spec b {
  color: #1e293b;
}

.supplier-task-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
}

.supplier-task-side-group {
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
}

.supplier-task-side-group strong {
  color: var(--muted);
  font-size: 11px;
}

.supplier-task-side-group button {
  width: 100%;
  min-height: 25px;
  padding: 4px 7px;
  font-size: 11px;
}

.supplier-feedback-strip {
  display: grid;
  gap: 5px;
  margin-top: 2px;
  padding: 5px 7px;
  border-left: 4px solid #f59e0b;
  border-radius: 7px;
  background: #fffbeb;
  color: #78350f;
}

.supplier-feedback-strip .feedback-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.supplier-feedback-strip strong {
  font-size: 12px;
  font-weight: 800;
  color: #78350f;
}

.supplier-feedback-strip span {
  font-size: 11px;
  line-height: 1.45;
}

.supplier-feedback-strip.price {
  border-left-color: #dc2626;
  background: #fef2f2;
  color: #7f1d1d;
}

.supplier-feedback-strip.price strong {
  color: #991b1b;
}

.supplier-feedback-strip.supplement {
  border-left-color: #2563eb;
  background: #eff6ff;
  color: #1e3a8a;
}

.supplier-feedback-strip.supplement strong {
  color: #1d4ed8;
}

.supplier-feedback-strip.fail {
  border-left-color: #111827;
  background: #f3f4f6;
  color: #111827;
}

.supplier-feedback-strip.fail strong {
  color: #111827;
}

.supplier-feedback-strip.review {
  border-left-color: #f59e0b;
  background: #fffbeb;
  color: #78350f;
}

.feedback-price-compare {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.feedback-price-compare span {
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid rgba(220, 38, 38, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-price-compare b {
  margin-left: 3px;
  font-size: 12px;
}

.price-drop-accept-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid #fecaca;
  border-radius: 7px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 11px;
  font-weight: 700;
}

.supplier-feedback-strip.supplier {
  margin-top: 1px;
  padding: 6px;
}

.supplier-feedback-strip.supplier.compact {
  gap: 2px;
  padding: 4px 6px;
  border-left-width: 3px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.03);
}

.supplier-feedback-strip.supplier.compact .feedback-main {
  gap: 1px;
}

.feedback-compact-line {
  color: inherit;
  font-size: 10px !important;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-compact-time {
  color: #64748b !important;
  font-size: 10px !important;
  font-variant-numeric: tabular-nums;
}

.supplier-feedback-strip.detail {
  margin-top: 8px;
}

.offline-feedback-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border: 1px solid #fde68a;
  border-radius: 7px;
  background: #fffbeb;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
}

.offline-feedback-sent {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
}

.offline-feedback-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.offline-customer-feedback {
  border-color: #fde68a;
  background: #fffbeb;
}

.offline-customer-feedback pre {
  background: #fff7ed;
  color: #7c2d12;
  border: 1px solid #fed7aa;
  font-family: inherit;
}

.supplier-task-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.supplier-task-actions select {
  width: 118px;
  min-height: 30px;
  padding: 4px 7px;
}

.supplier-title-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 6px;
}

.supplier-title-tools label {
  min-width: 190px;
  gap: 3px;
  font-size: 12px;
}

.supplier-title-tools select {
  min-height: 30px;
  padding: 4px 7px;
}

.supplier-action-modal {
  width: min(900px, 100%);
}

.payment-action-modal {
  width: min(860px, 100%);
}

.payment-summary-strip,
.payment-cost-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.payment-summary-strip span,
.payment-cost-preview span {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  font-size: 12px;
}

.payment-summary-strip b,
.payment-cost-preview b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.danger-text {
  color: #991b1b;
}

.danger-text b {
  color: #991b1b;
}

.danger-note {
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid #fecaca;
  border-radius: 7px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 12px;
  font-weight: 700;
}

.payment-api-note {
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid #fde68a;
  border-radius: 7px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
}

.payment-route-preview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12px;
}

.payment-route-preview.ok {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.payment-route-preview.warn {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.payment-route-preview strong {
  white-space: nowrap;
}

.payment-failure-detail {
  display: grid;
  gap: 7px;
  margin: 8px 0;
  padding: 9px 10px;
  border: 1px solid #fecaca;
  border-radius: 7px;
  background: #fff7f7;
  color: #7f1d1d;
  font-size: 12px;
}

.payment-failure-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.payment-failure-head strong {
  font-size: 13px;
}

.payment-failure-head span {
  color: #991b1b;
  font-weight: 700;
}

.payment-failure-grid {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 5px 8px;
  align-items: center;
}

.payment-failure-grid span {
  color: #991b1b;
  font-weight: 700;
}

.payment-failure-grid b {
  color: #450a0a;
  font-weight: 700;
  word-break: break-word;
}

.payment-failure-detail pre {
  max-height: 110px;
  overflow: auto;
  margin: 0;
  padding: 7px;
  border-radius: 6px;
  background: #ffffff;
  color: #450a0a;
  font-size: 11px;
  white-space: pre-wrap;
}

.payment-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-top: 5px;
}

.payment-proof-strip span {
  color: #166534;
  font-size: 11px;
  font-weight: 700;
}

.supplier-action-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.supplier-action-summary span,
.supplier-action-note {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  font-size: 12px;
}

.supplier-action-items {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
}

.supplier-action-item {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(220px, 1.4fr) minmax(170px, 1fr) minmax(100px, 0.7fr);
  gap: 6px;
  align-items: center;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
}

.supplier-action-item span,
.supplier-action-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-pass-row {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  gap: 4px;
}

.supplier-pass-row label {
  font-size: 11px;
}

.supplier-pass-row input {
  min-height: 30px;
  padding: 5px 7px;
  font-size: 12px;
}

.supplier-reject-form {
  margin-top: 8px;
}

.supplier-price-drop-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 6px;
  grid-column: 1 / -1;
}

.supplier-action-remark {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  font-size: 12px;
}

.supplier-action-remark textarea {
  min-height: 72px;
  resize: vertical;
}

.supplier-action-evidence {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.supplier-action-evidence.image-drop-zone {
  justify-content: flex-start;
  min-height: 62px;
  padding: 7px;
}

.supplier-action-warning {
  padding: 7px 9px;
  border: 1px solid #f59e0b;
  border-radius: 7px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
}

.supplier-price-filters {
  grid-template-columns: minmax(160px, 1.4fr) repeat(5, minmax(110px, 1fr)) auto;
  gap: 5px;
  margin-bottom: 8px;
}

.supplier-price-filters label {
  gap: 3px;
  font-size: 12px;
}

.supplier-price-filters input,
.supplier-price-filters select {
  min-height: 30px;
  padding: 4px 7px;
}

.inline-check {
  display: inline-flex;
  grid-auto-flow: column;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  color: var(--text);
}

.inline-check input {
  width: auto;
  min-height: auto;
}

.order-item-line {
  min-width: 260px;
}

.supplier-quote-card.selectable {
  width: 100%;
  border: 1px solid var(--line);
  text-align: left;
}

.supplier-quote-card.selectable.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16);
}

.confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 8px;
}

.confirm-block {
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.confirm-block table {
  margin-top: 5px;
}

.order-confirm-modal {
  width: min(900px, 100%);
  padding: 8px;
}

.order-confirm-modal .modal-head {
  margin-bottom: 7px;
}

.order-confirm-modal .confirm-block h3 {
  font-size: 14px;
}

.order-confirm-modal table td {
  padding: 4px 3px;
  font-size: 12px;
}

.order-confirm-modal .form-grid {
  gap: 5px;
}

.order-confirm-modal textarea {
  min-height: 58px;
}

.image-drop-zone {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 7px 6px;
  border: 1px dashed #aab7cf;
  border-radius: 6px;
  background: #f8fafc;
  color: var(--text);
  outline: none;
}

.image-drop-zone.dragging,
.image-drop-zone:focus {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.image-drop-zone div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.image-drop-zone strong {
  font-size: 12px;
}

.image-drop-zone span {
  color: var(--muted);
  font-size: 11px;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.image-preview-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.image-preview-card img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.image-preview-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.image-preview-meta strong,
.image-preview-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-preview-meta strong {
  font-size: 11px;
}

.image-preview-meta span {
  color: var(--muted);
  font-size: 10px;
}

.draft-item-list {
  display: grid;
  gap: 6px;
}

.draft-face-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 5px 6px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  font-size: 12px;
}

.draft-face-summary span,
.draft-face-summary em {
  color: var(--muted);
  font-style: normal;
}

.draft-face-summary .ok {
  color: #15803d;
}

.draft-face-summary .warn {
  color: #b45309;
}

.draft-item-card {
  display: grid;
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.draft-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.draft-item-head span {
  color: var(--muted);
  font-size: 11px;
}

.draft-image-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
}

.draft-image-strip img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f8fafc;
}

.draft-field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.draft-field-grid label {
  font-size: 11px;
}

.ocr-text-field textarea {
  min-height: 54px;
}

.recognition-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
}

.recognition-candidate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.recognition-candidate-card {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  text-align: left;
}

.recognition-candidate-card strong,
.recognition-candidate-card span,
.recognition-candidate-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recognition-candidate-card strong {
  color: var(--primary);
  font-size: 12px;
}

.recognition-candidate-card span,
.recognition-candidate-card em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

input,
select,
textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 6px 9px;
}

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

.field-hint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #475467;
  background: #eef2f7;
  font-size: 13px;
}

.pill.ok {
  color: #14532d;
  background: #dcfce7;
}

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

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

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

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

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 12px;
}

.metric {
  display: grid;
  gap: 8px;
}

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

.metric strong {
  font-size: 24px;
}

.workbench-shell {
  display: grid;
  gap: 10px;
}

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

.workbench-metrics .metric {
  min-height: 58px;
  padding: 8px 10px;
  border-radius: 7px;
  box-shadow: none;
}

.workbench-metrics .metric span {
  font-size: 11px;
}

.workbench-metrics .metric strong {
  font-size: 20px;
  line-height: 1;
}

.workbench-main {
  display: grid;
  grid-template-columns: minmax(420px, 1.45fr) minmax(200px, 0.58fr) minmax(280px, 0.82fr);
  gap: 10px;
  align-items: start;
}

.workbench-quote {
  border-left: 4px solid var(--primary);
  padding: 9px 10px;
}

.workbench-titlebar {
  margin-bottom: 5px;
}

.workbench-titlebar > div:first-child {
  display: grid;
  gap: 1px;
}

.workbench-titlebar h2 {
  margin: 0;
}

.workbench-titlebar span {
  color: var(--muted);
  font-size: 11px;
}

.workbench-customer-panel,
.workbench-action-panel {
  padding: 9px;
}

.workbench-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.workbench-side-head h2 {
  margin: 0;
  font-size: 15px;
}

.workbench-side-head span {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.workbench-action-panel {
  border-left: 4px solid #d97706;
}

.workbench-customer-panel {
  border-left: 4px solid #2563eb;
}

.workbench-customer-panel table {
  font-size: 12px;
}

.workbench-customer-panel td {
  padding: 5px 6px;
}

.country-point-row {
  display: grid;
  grid-column: span 3;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  gap: 6px;
  align-items: end;
  min-width: 0;
}

.point-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.point-mini-card {
  display: grid;
  gap: 1px;
  min-width: 126px;
  max-width: 168px;
  min-height: 38px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.point-mini-card strong {
  color: var(--text);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.point-mini-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.point-mini-card.warn {
  border-color: #fed7aa;
  background: #fff7ed;
}

.workbench-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 5px;
  margin-bottom: 4px;
}

.workbench-quote-fields {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 5px;
}

.workbench-quote-fields > :nth-child(-n+3) {
  grid-column: span 2;
}

.workbench-quote-fields > :nth-child(n+4) {
  grid-column: span 3;
}

.workbench-quote-fields label {
  gap: 3px;
  font-size: 12px;
}

.workbench-quote-fields input,
.workbench-quote-fields select {
  min-height: 29px;
  padding: 4px 7px;
}

.workbench-shell .compact-filters {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.workbench-shell .workbench-order-filters {
  grid-template-columns: minmax(180px, 1.5fr) minmax(96px, 0.8fr) minmax(96px, 0.8fr) minmax(130px, 1fr) minmax(120px, 1fr) minmax(118px, 0.9fr) minmax(118px, 0.9fr) auto;
  gap: 5px;
  margin-bottom: 6px;
}

.workbench-order-filters label {
  gap: 3px;
  font-size: 12px;
}

.workbench-order-filters input,
.workbench-order-filters select {
  min-height: 30px;
  padding: 4px 7px;
}

.workbench-order-filters .filter-actions {
  align-self: end;
  flex-wrap: nowrap;
}

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

.workbench-task-list.mode-compact {
  gap: 6px;
}

.workbench-task-card {
  position: relative;
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-left: 5px solid #2563eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.workbench-task-card.mode-grouped {
  border-color: #94a3b8;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.workbench-task-card.mode-detail {
  border-color: #64748b;
}

.workbench-task-card.status-danger,
.workbench-task-card.status-bad {
  border-left-color: #dc2626;
}

.workbench-task-card.status-warn {
  border-left-color: #d97706;
}

.workbench-task-card.status-ok {
  border-left-color: #059669;
}

.workbench-task-summary {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.1fr) minmax(160px, 0.9fr) minmax(130px, 0.8fr) minmax(90px, 0.55fr);
  gap: 6px;
  align-items: center;
  padding: 7px 9px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.workbench-task-summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-right: 8px;
  border-right: 1px solid #e2e8f0;
}

.workbench-task-summary > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.workbench-main-actions {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.workbench-main-actions:empty {
  display: block !important;
}

.workbench-task-summary strong,
.workbench-task-summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-task-summary strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #0f172a;
}

.main-order-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  background: #dbeafe;
  color: #1d4ed8 !important;
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1;
}

.workbench-task-summary span {
  color: var(--muted);
  font-size: 11px;
}

.workbench-task-items {
  display: grid;
  gap: 5px;
  padding: 7px;
  background: #f1f5f9;
}

.mode-grouped .workbench-task-items {
  gap: 4px;
  padding: 6px;
}

.workbench-items-collapsed {
  padding: 6px 10px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
}

.workbench-items-collapsed.compact {
  border-top: 0;
  border-radius: 6px;
  margin: 0 6px 6px;
}

.payment-stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  justify-content: flex-end;
}

.payment-stage-actions .status {
  min-height: 24px;
  line-height: 22px;
}

.workbench-segment-item {
  display: grid;
  grid-template-columns: minmax(92px, 0.42fr) minmax(240px, 1.2fr) minmax(220px, 1fr) minmax(150px, 0.62fr) minmax(168px, auto);
  grid-auto-rows: 50px;
  gap: 1px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.workbench-segment-item.status-danger,
.workbench-segment-item.status-bad {
  border-left-color: #dc2626;
}

.workbench-segment-item.status-warn {
  border-left-color: #d97706;
}

.workbench-segment-item.status-ok {
  border-left-color: #059669;
}

.segment-cell {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
  height: 50px;
  min-height: 0;
  padding: 4px 8px;
  border-right: 1px solid #eef2f7;
  box-sizing: border-box;
  overflow: hidden;
}

.segment-cell:last-of-type {
  border-right: 0;
}

.segment-cell strong,
.segment-cell span,
.segment-cell em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.segment-cell strong,
.segment-cell span {
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
}

.segment-cell em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.segment-no {
  gap: 3px;
  justify-items: start;
  background: #f8fafc;
}

.segment-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 18px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px !important;
  line-height: 1.2;
}

.segment-status-pill.ok {
  background: #ecfdf5;
  color: #047857 !important;
}

.segment-status-pill.warn {
  background: #fff7ed;
  color: #c2410c !important;
}

.segment-status-pill.bad,
.segment-status-pill.danger {
  background: #fef2f2;
  color: #b91c1c !important;
}

.segment-param span {
  color: #1e293b;
}

.segment-price strong {
  color: #14532d;
}

.segment-price span {
  color: #1d4ed8;
}

.segment-supplier span {
  color: #475569;
}

.segment-feedback-summary {
  display: grid;
  align-content: center;
  gap: 1px;
  min-width: 0;
  height: 32px;
  min-height: 0;
  padding: 3px 6px;
  border-radius: 7px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-sizing: border-box;
  overflow: hidden;
}

.segment-feedback-summary span,
.segment-feedback-summary em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.segment-feedback-summary span {
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.segment-feedback-summary em {
  color: #64748b;
  font-size: 10px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.segment-feedback-summary.price span {
  color: #c2410c;
}

.segment-feedback-summary.price {
  background: #fff7ed;
  border-color: #fed7aa;
}

.segment-feedback-summary.fail span {
  color: #111827;
}

.segment-feedback-summary.fail {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.segment-feedback-summary.used span {
  color: #7f1d1d;
}

.segment-feedback-summary.used {
  background: #fee2e2;
  border-color: #ef4444;
}

.segment-feedback-summary.invalid span {
  color: #b91c1c;
}

.segment-feedback-summary.invalid {
  background: #fef2f2;
  border-color: #fecaca;
}

.segment-feedback-summary.blurry span {
  color: #475569;
}

.segment-feedback-summary.blurry {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.segment-feedback-summary.ok span {
  color: #047857;
}

.segment-feedback-summary.ok {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.segment-feedback-summary.supplement span {
  color: #1d4ed8;
}

.segment-feedback-summary.supplement {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.segment-feedback-summary.review span {
  color: #c2410c;
}

.segment-feedback-summary.review {
  background: #fff7ed;
  border-color: #fed7aa;
}

.segment-feedback-summary.empty {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.segment-supplier .mini-select {
  width: min(100%, 142px);
  min-width: 0;
  min-height: 24px;
  padding: 3px 6px;
  font-size: 10px;
}

.segment-feedback-label {
  width: fit-content;
  max-width: 100%;
  padding: 1px 5px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c !important;
  font-weight: 800;
}

.segment-actions {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 3px;
  background: #fbfdff;
}

.segment-action-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
}

.segment-action-row.secondary-actions {
  width: 100%;
}

.segment-actions .small-btn {
  min-height: 21px;
  padding: 2px 6px;
  font-size: 10px;
  white-space: nowrap;
  border-radius: 6px;
}

.segment-action-row.primary-actions .primary-btn {
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.18);
}

.segment-action-row.secondary-actions .warning-btn {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.dispatch-profile-list {
  display: grid;
  gap: 6px;
}

.dispatch-profile-option {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.dispatch-profile-option.selected {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.dispatch-profile-option span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dispatch-profile-option strong,
.dispatch-profile-option em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dispatch-profile-option em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.dispatch-modal-summary {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 12px;
}

.price-drop-return-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #7f1d1d;
}

.price-drop-return-panel div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.price-drop-return-panel strong,
.price-drop-return-panel span,
.price-drop-return-panel em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-drop-return-panel span,
.price-drop-return-panel em {
  font-size: 12px;
}

.price-drop-return-panel em {
  color: #991b1b;
  font-style: normal;
}

.segment-extra {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 4px 7px;
  border-top: 1px solid #eef2f7;
  background: #fff7ed;
}

.segment-extra .supplier-feedback-strip {
  margin: 0;
  padding: 5px 6px;
  border-radius: 5px;
}

.segment-extra .offline-feedback-actions {
  margin: 0;
}

.workbench-order-meta-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 6px 9px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
}

.compact-order-main {
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) minmax(150px, 0.9fr) minmax(130px, 0.7fr) minmax(92px, 0.45fr);
  gap: 6px;
  align-items: center;
  padding: 7px 9px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.compact-order-main > div,
.compact-order-main strong {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.compact-order-main strong {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}

.compact-order-main span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-item-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px 8px;
  background: #f8fafc;
}

.compact-item-chip {
  display: grid;
  gap: 1px;
  min-width: 132px;
  max-width: 190px;
  padding: 5px 7px;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  background: #eff6ff;
  color: #1e3a8a;
  text-align: left;
}

.compact-item-chip span,
.compact-item-chip em,
.compact-more {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-item-chip span {
  font-size: 11px;
  font-weight: 700;
}

.compact-item-chip em {
  color: #475569;
  font-size: 10px;
  font-style: normal;
}

.compact-more {
  align-self: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.compact-feedback-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 8px 7px;
  background: #f8fafc;
}

.compact-feedback-summary span {
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 10px;
  font-weight: 700;
}

.workbench-action-board {
  display: grid;
  gap: 8px;
}

.workbench-action-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.task-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
}

.workbench-action-list {
  display: grid;
  gap: 5px;
  max-height: 360px;
  overflow: auto;
}

.workbench-action-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #2563eb;
  border-radius: 7px;
  background: #fff;
}

.workbench-action-task.task-feedback,
.workbench-action-task.task-payment_failed,
.workbench-action-task.task-price_drop {
  border-left-color: #dc2626;
  background: #fff7ed;
}

.workbench-action-task.task-payment,
.workbench-action-task.task-dispatch,
.workbench-action-task.task-supplement,
.workbench-action-task.task-review {
  border-left-color: #d97706;
}

.workbench-action-task.task-supplier,
.workbench-action-task.task-ticket {
  border-left-color: #2563eb;
}

.workbench-action-main {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.workbench-action-main strong,
.workbench-action-main span,
.workbench-action-main em,
.workbench-action-main p {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-action-main strong {
  color: #0f172a;
  font-size: 12px;
}

.workbench-action-main span,
.workbench-action-main em,
.workbench-action-main p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.workbench-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3px;
  max-width: 170px;
}

.workbench-action-buttons .small-btn {
  min-height: 26px;
  padding: 4px 7px;
  font-size: 11px;
}

.workbench-order-detail {
  display: grid;
  gap: 3px;
  padding: 6px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.workbench-order-detail.detail-mode {
  gap: 5px;
  padding: 8px;
  border-color: #cbd5e1;
}

.workbench-order-detail + .workbench-order-detail {
  margin-top: 4px;
}

.workbench-order-detail-head,
.workbench-order-detail-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.workbench-order-detail-head {
  justify-content: space-between;
}

.workbench-order-detail-head strong {
  font-size: 12px;
}

.workbench-order-detail-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(210px, 1.25fr) minmax(120px, 0.8fr) minmax(96px, 0.7fr);
  align-items: center;
  gap: 4px 7px;
  color: var(--text);
  font-size: 11px;
}

.workbench-order-detail-foot {
  font-size: 11px;
}

.workbench-detail-modal {
  width: min(820px, 100%);
}

.workbench-customer-modal {
  width: min(640px, 100%);
}

.detail-secret-block {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.detail-secret-block pre {
  min-height: 42px;
  margin: 0;
  padding: 8px;
  border-radius: 6px;
  background: #0f172a;
  color: #e5e7eb;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
}

.detail-image-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.detail-image-list span {
  overflow: hidden;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  font-size: 12px;
}

.detail-file-ref {
  display: grid;
  gap: 3px;
  word-break: break-word;
}

.detail-file-ref em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.detail-image-card {
  display: grid;
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.detail-image-card .small-btn {
  width: 100%;
}

.detail-image-preview {
  display: grid;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}

.detail-image-preview img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 5px;
  background: #fff;
}

.detail-image-preview span {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
}

.image-preview-lightbox {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
}

.image-preview-lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #fff;
}

.image-preview-lightbox-head span {
  color: #cbd5e1;
  font-size: 12px;
}

.image-preview-lightbox img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  cursor: copy;
}

.quote-result {
  min-height: 20px;
  padding: 4px 7px;
  border-radius: 8px;
  background: #f8fafc;
}

.supplier-quote-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-top: 4px;
}

.supplier-quote-card {
  display: grid;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.supplier-quote-card.best {
  border-color: var(--line);
  background: #f8fbff;
}

.supplier-quote-card.best.selected,
.supplier-quote-card.selectable.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16);
}

.supplier-quote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  min-height: 20px;
}

.supplier-quote-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.supplier-quote-head .status {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.1;
}

.supplier-quote-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  min-width: 0;
}

.supplier-quote-main > div,
.supplier-customer-price {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 3px 4px;
  border-radius: 6px;
  background: #eef4ff;
  overflow: hidden;
}

.supplier-quote-main span,
.supplier-customer-price span {
  color: var(--muted);
  font-size: 9px;
}

.supplier-quote-main strong,
.supplier-customer-price strong {
  color: var(--primary);
  max-width: 100%;
  font-size: 11px;
  line-height: 1.1;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  font-weight: 800;
}

.supplier-quote-main > div:first-child {
  background: #f8fafc;
}

.supplier-quote-main > div:first-child strong {
  color: var(--text);
}

.supplier-unit-price {
  align-content: center;
}

.supplier-quote-meta {
  display: grid;
  gap: 1px;
  color: var(--muted);
  font-size: 10px;
}

.supplier-quote-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.form-grid.workbench-quote-fields {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}

.form-grid.workbench-quote-fields > :nth-child(-n+3) {
  grid-column: span 2;
}

.form-grid.workbench-quote-fields > :nth-child(n+4) {
  grid-column: span 3;
}

.compact-filters {
  grid-template-columns: repeat(8, minmax(110px, 1fr));
  align-items: end;
  margin-bottom: 10px;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wide-field {
  grid-column: 1 / -1;
}

.field-title {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compact-choice {
  gap: 4px;
}

.choice-pill {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
}

.choice-pill.active,
.choice-pill:hover {
  border-color: var(--primary);
  background: #eef4ff;
  color: var(--primary);
}

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

.check-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.check-tile input {
  width: auto;
  margin: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}

.activity-instance-box {
  margin: 10px 0 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.activity-instance-box table {
  margin-top: 8px;
}

.activity-instance-box td small {
  color: var(--muted);
  font-size: 11px;
}

.activity-list-page table td {
  vertical-align: middle;
}

.activity-list-page table small {
  color: var(--muted);
  font-size: 11px;
}

.activity-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}

.activity-summary-strip span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
}

.activity-summary-strip strong {
  color: var(--ink);
  font-size: 14px;
}

.activity-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.activity-detail-head h2 {
  margin: 0 0 3px;
}

.activity-detail-head > div > span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.activity-detail-meta {
  margin: 10px 0 12px;
}

.app-activity-create-modal {
  width: min(720px, 100%);
}

.app-activity-config-modal {
  width: min(1120px, 100%);
}

.app-activity-config-modal > .panel {
  padding: 0;
  box-shadow: none;
}

.app-activity-config-modal > .panel > h2,
.app-activity-config-modal > .panel > .form-help:first-of-type {
  display: none;
}

.rank-activity-picker {
  margin-bottom: 10px;
}

.rank-activity-form {
  margin-top: 8px;
}

.activity-modal-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fff;
}

.activity-modal-section h3 {
  margin: 0;
}

.compact-toolbar {
  margin-bottom: 8px;
}

.settlement-config-panel {
  background: #fbfcfe;
}

.settlement-config-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.activity-reward-ledger-panel {
  margin-top: 14px;
}

.activity-reward-filters {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.hidden-mode-field {
  display: none !important;
}

.compact-action-row {
  margin-top: 8px;
}

.rank-tier-editor {
  margin-top: 12px;
}

.rank-tier-editor .section-toolbar {
  align-items: flex-start;
}

.rank-tier-editor h3 {
  margin: 0;
}

.rank-tier-editor table input {
  min-width: 90px;
  min-height: 30px;
  padding: 5px 8px;
}

.table-actions {
  min-width: 230px;
}

.spec-editor {
  margin-top: 8px;
}

.spec-editor .section-toolbar {
  margin-bottom: 6px;
}

.spec-editor th,
.spec-editor td {
  padding: 5px 6px;
  vertical-align: middle;
}

.spec-editor th:first-child,
.spec-editor td:first-child {
  width: 74px;
}

.spec-editor th:last-child,
.spec-editor td:last-child {
  width: 104px;
  white-space: nowrap;
}

.spec-editor table input,
.spec-editor table select {
  min-width: 88px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 6px;
}

.spec-editor td .small-btn {
  min-height: 26px;
  padding: 3px 7px;
  margin: 1px 4px 1px 0;
}

.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.section-toolbar > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-toolbar .table-filter {
  width: 260px;
  margin: 0;
}

.module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.inline-tabs {
  margin-bottom: 0;
}

.module-tabs button {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.module-tabs button.active,
.module-tabs button:hover {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.table-filter {
  width: 100%;
  margin: 0 0 10px;
  background: #f8fafc;
}

.mini-form {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) auto;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
  min-width: 320px;
}

.small-btn {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

td .small-btn {
  margin: 1px 3px 1px 0;
}

.inline-hint {
  display: inline-block;
  max-width: 180px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  vertical-align: middle;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(15, 23, 42, 0.42);
}

.modal {
  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 14px;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.success-btn,
.warning-btn {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #fff;
  white-space: nowrap;
}

.primary-btn {
  background: var(--primary);
}

.primary-btn:hover {
  background: var(--primary-dark);
}

.secondary-btn {
  color: var(--text);
  background: #edf2f7;
}

.danger-btn {
  background: var(--danger);
}

.success-btn {
  background: var(--success);
}

.warning-btn {
  background: var(--warning);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 8px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #475467;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 700;
}

.code-chip {
  display: inline-flex;
  align-items: center;
  max-width: 86px;
  min-height: 22px;
  padding: 2px 6px;
  border-radius: 6px;
  color: #344054;
  background: #f1f5f9;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475467;
  font-size: 12px;
  white-space: nowrap;
}

.status.ok {
  background: #dcfce7;
  color: #166534;
}

.status.warn {
  background: #fef3c7;
  color: #92400e;
}

.status.bad {
  background: #fee2e2;
  color: #991b1b;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.muted {
  color: var(--muted);
}

.empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: #111827;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 4;
  }

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

  .topbar,
  .split,
  .workbench-main {
    grid-template-columns: 1fr;
    display: grid;
  }

  .form-grid,
  .workbench-form,
  .workbench-quote-fields,
  .workbench-metrics,
  .workbench-shell .compact-filters,
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .checkbox-grid,
  .country-point-row,
  .mini-form {
    grid-template-columns: 1fr;
  }

  .country-point-row {
    grid-column: auto;
  }
}

@media (max-width: 1280px) {
  .supplier-quote-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .dispatch-toolbar {
    grid-template-columns: 1fr;
  }

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

  .image-preview-grid {
    grid-template-columns: 1fr;
  }

  .recognition-candidate-grid {
    grid-template-columns: 1fr;
  }

  .workbench-order-detail {
    min-width: 0;
  }

  .workbench-task-summary {
    grid-template-columns: 1fr;
  }

  .compact-order-main,
  .workbench-order-meta-row {
    grid-template-columns: 1fr;
  }

  .workbench-segment-item {
    grid-template-columns: 1fr;
  }

  .segment-cell {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #eef2f7;
  }

  .segment-actions {
    justify-content: flex-start;
  }

  .compact-item-chip {
    max-width: none;
    flex: 1 1 150px;
  }

  .workbench-order-detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-image-list {
    grid-template-columns: 1fr;
  }

  .supplier-task-card {
    grid-template-columns: 28px 1fr;
    padding-right: 6px;
  }

  .supplier-task-block {
    grid-column: 1 / -1;
  }

  .supplier-task-grid {
    grid-template-columns: 1fr;
  }

  .supplier-task-side {
    grid-template-columns: 1fr;
  }

  .feedback-price-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplier-action-item {
    grid-template-columns: 1fr;
  }

  .supplier-quote-grid {
    grid-template-columns: 1fr;
  }
}

.customer-app-shell {
  display: grid;
  gap: 14px;
}

.app-control-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}

.app-control-panel h2 {
  margin: 0 0 4px;
}

.app-control-row {
  display: flex;
  align-items: end;
  gap: 10px;
}

.app-control-row label {
  display: grid;
  gap: 6px;
  min-width: 220px;
  font-size: 12px;
  color: #64748b;
}

.app-register-inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.app-register-inline label {
  display: grid;
  gap: 4px;
  color: #64748b;
  font-size: 12px;
}

.app-register-inline input,
.app-register-inline select {
  height: 34px;
}

.customer-app-layout {
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(320px, 1fr);
  gap: 16px;
  align-items: start;
}

.app-phone-frame {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 34px;
  background: #101827;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}

.app-phone-screen {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  border-radius: 26px;
  background: linear-gradient(180deg, #9cf6bd 0, #f8fafc 180px, #f8fafc 100%);
}

.app-page {
  min-height: 690px;
  padding: 24px 18px 88px;
}

.app-hero,
.app-titlebar,
.app-user,
.app-selected-card,
.app-selected-card > div,
.app-sticky-submit,
.app-draft-row,
.app-record-row {
  display: flex;
  align-items: center;
}

.app-hero,
.app-titlebar,
.app-selected-card,
.app-sticky-submit {
  justify-content: space-between;
}

.app-user {
  gap: 10px;
}

.app-user strong,
.app-heading {
  display: block;
  font-size: 25px;
  font-weight: 800;
  color: #101827;
}

.app-user span,
.app-balance-card span,
.app-draft-row small,
.app-record-row span,
.wallet-hero span,
.me-top span {
  color: #64748b;
  font-size: 12px;
}

.app-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #047857;
  font-weight: 800;
  background: #dcfce7;
  border: 2px solid rgba(16, 185, 129, .28);
}

.app-avatar.large {
  width: 72px;
  height: 72px;
  font-size: 28px;
}

.app-icon-btn,
.app-back {
  border: 0;
  background: transparent;
  color: #0f172a;
  font-weight: 700;
}

.app-back {
  font-size: 30px;
  line-height: 1;
}

.app-balance-card {
  margin-top: 22px;
  padding: 20px;
  min-height: 116px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #172033, #344155);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .12);
}

.app-balance-card strong,
.wallet-hero strong {
  display: block;
  margin-top: 12px;
  font-size: 34px;
  line-height: 1;
}

.app-banner {
  margin-top: 12px;
  padding: 16px;
  border-radius: 8px;
  font-weight: 800;
  color: #fff;
}

.app-banner.green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.app-banner.orange {
  background: linear-gradient(135deg, #fb923c, #f59e0b);
}

.app-banner.blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.app-banner.dark {
  background: linear-gradient(135deg, #1f2937, #111827);
}

.app-banner strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.app-banner span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.3;
  opacity: .78;
}

.app-content-banner-row {
  grid-template-columns: 72px 86px minmax(140px, 1fr) minmax(160px, 1fr) 90px 110px;
}

.app-category-tabs,
.app-segment,
.app-chip-row,
.app-choice-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.app-category-tabs {
  margin-top: 18px;
  padding-bottom: 8px;
}

.app-category-tabs button,
.app-segment button,
.app-chip-row button,
.app-choice-row button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: #eef2f7;
  color: #334155;
  font-weight: 700;
}

.app-category-tabs button {
  padding: 10px 12px;
  background: transparent;
  font-size: 15px;
}

.app-category-tabs button.active,
.app-segment button.active,
.app-chip-row button.active,
.app-choice-row button.active {
  background: #10c873;
  color: #fff;
}

.app-rate-list,
.app-record-list,
.app-side-list {
  display: grid;
  gap: 8px;
}

.app-rate-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid #edf2f7;
  background: #fff;
  text-align: left;
}

.app-rate-row span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
}

.app-rate-row strong,
.app-record-row strong {
  color: #111827;
}

.app-rate-row em,
.app-record-row em {
  justify-self: end;
  color: #111827;
  font-style: normal;
}

.app-selected-card {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.app-selected-card > div {
  gap: 12px;
}

.app-selected-card button,
.app-main-btn {
  border: 0;
  border-radius: 8px;
  background: #10c873;
  color: #fff;
  font-weight: 800;
}

.app-selected-card button {
  padding: 10px 16px;
}

.app-logo {
  font-size: 28px;
}

.app-sell-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.app-sell-stepper button {
  display: grid;
  justify-items: center;
  gap: 4px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: #64748b;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 800;
}

.app-sell-stepper button b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
}

.app-sell-stepper button.active,
.app-sell-stepper button.done {
  background: #ecfdf5;
  color: #047857;
}

.app-sell-stepper button.active b,
.app-sell-stepper button.done b {
  background: #10c873;
  color: #fff;
}

.app-step-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.app-step-panel h3 {
  margin: 0;
  font-size: 18px;
}

.app-step-panel p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.app-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 3px;
  border-radius: 8px;
  background: #eefdf5;
}

.app-auth-tabs button {
  border: 0;
  border-radius: 7px;
  padding: 9px 10px;
  background: transparent;
  color: #64748b;
  font-weight: 800;
  cursor: pointer;
}

.app-auth-tabs button.active {
  background: #10c873;
  color: #fff;
  box-shadow: 0 8px 18px rgba(16, 200, 115, .22);
}

.app-auth-panel {
  display: grid;
  gap: 12px;
}

.app-auth-panel label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.app-auth-note {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.app-category-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.app-category-picker button {
  display: grid;
  gap: 6px;
  min-height: 104px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  text-align: left;
}

.app-category-picker button.active {
  border-color: #10c873;
  box-shadow: 0 0 0 2px rgba(16, 200, 115, .16);
}

.app-category-picker span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #047857;
  font-weight: 900;
}

.app-category-picker strong {
  color: #111827;
  font-size: 14px;
}

.app-category-picker em {
  color: #10a66a;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.app-category-select-card {
  display: grid;
  gap: 10px;
}

.app-category-field-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.1;
}

.app-category-select-card label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.app-category-select-card select {
  width: 100%;
  border: 1px solid #dbe6ee;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 38px 12px 12px;
  outline: none;
}

.app-category-select-card select:focus {
  border-color: #10c873;
  box-shadow: 0 0 0 3px rgba(16, 200, 115, .14);
}

.app-category-selected {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #dbe6ee;
  border-radius: 8px;
  background: #fff;
}

.app-category-selected > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #047857;
  font-weight: 900;
}

.app-category-selected div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.app-category-selected strong {
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-category-selected em {
  color: #10a66a;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.app-onepage-sell {
  display: grid;
  gap: 5px;
  padding-bottom: 2px;
}

.app-onepage-panel {
  gap: 6px;
  margin-top: 4px;
  padding: 8px;
}

.app-onepage-panel:first-child {
  margin-top: 5px;
}

.app-onepage-panel h3 {
  font-size: 14px;
  line-height: 1.2;
}

.app-onepage-panel .app-category-select-card {
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.app-onepage-panel .app-category-field-title {
  min-width: 0;
  white-space: nowrap;
}

.app-onepage-panel .app-category-dropdown {
  min-width: 0;
}

.app-category-dropdown {
  position: relative;
}

.app-category-dropdown summary,
.app-category-option {
  display: inline-grid;
  grid-template-columns: 66px max-content;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 6px 10px 6px 7px;
  border: 1px solid #dde7f0;
  border-radius: 9px;
  background: #fff;
  color: #334155;
}

.app-category-dropdown summary {
  grid-template-columns: 66px minmax(0, 1fr) auto;
  width: 100%;
  list-style: none;
  cursor: pointer;
}

.app-category-dropdown summary::-webkit-details-marker {
  display: none;
}

.app-category-dropdown summary em {
  color: #64748b;
  font-size: 15px;
  font-style: normal;
}

.app-category-dropdown[open] summary {
  border-color: #10c873;
}

.app-category-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  max-height: 240px;
  padding: 7px;
  overflow-y: auto;
  border: 1px solid #dbe7ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .14);
}

.app-category-option {
  width: 100%;
  grid-template-columns: 66px minmax(0, 1fr);
}

.app-category-option.active {
  border-color: #10c873;
  background: #ecfdf5;
  color: #047857;
}

.app-category-dropdown summary strong,
.app-category-option strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1;
}

.app-category-thumb {
  display: grid;
  place-items: center;
  width: 64px;
  height: 40px;
  aspect-ratio: 11 / 7;
  border-radius: 7px;
  background: linear-gradient(135deg, #dbeafe, #dcfce7);
  color: #0f766e;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06);
}

.app-category-thumb.compact {
  width: 52px;
  height: 32px;
  border-radius: 6px;
}

.app-category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
  background: #fff;
}

.app-category-thumb span {
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.app-onepage-panel .app-category-select-card select {
  padding-top: 9px;
  padding-bottom: 9px;
}

.app-onepage-panel .app-category-selected {
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 8px;
}

.app-onepage-panel .app-category-selected > span {
  width: 38px;
  height: 38px;
}

.app-muted {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.app-form.compact {
  margin-top: 0;
  gap: 7px;
}

.sell-screen .app-amount-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 8px;
}

.sell-screen .app-amount-row label {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.sell-screen .app-amount-row label:last-child {
  grid-template-columns: 28px minmax(0, 1fr);
}

.sell-screen .app-quantity-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: #111827;
  font-size: 13px;
  font-weight: 850;
}

.sell-screen .app-quantity-row > span {
  color: #111827;
}

.sell-screen .app-quantity-control {
  display: inline-grid;
  grid-template-columns: 34px 40px 34px;
  justify-content: end;
  gap: 7px;
  width: max-content;
  margin-left: auto;
}

.sell-screen .app-quantity-control button,
.sell-screen .app-quantity-control strong {
  display: grid;
  place-items: center;
  height: 30px;
  border: 0;
  border-radius: 7px;
  line-height: 1;
}

.sell-screen .app-quantity-control button {
  width: 34px;
  background: #dcf8ee;
  color: #16c76f;
  font-size: 21px;
  font-weight: 900;
  cursor: pointer;
}

.sell-screen .app-quantity-control button:first-child {
  background: #edf3f1;
}

.sell-screen .app-quantity-control button:disabled {
  color: #b8c2bd;
  cursor: default;
}

.sell-screen .app-quantity-control strong {
  width: 40px;
  background: #f4f4f6;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sell-screen .app-amount-row .app-quantity-row {
  grid-template-columns: 28px minmax(0, 1fr);
}

.sell-screen .app-amount-row .app-quantity-row > span {
  font-size: 12px;
  color: #475569;
}

.sell-screen .app-quick-value-line {
  min-height: 28px;
}

.sell-screen .app-quick-value-line .app-chip-row {
  gap: 5px;
}

.sell-screen .app-quick-value-line .app-chip-row button {
  min-width: 42px;
  min-height: 24px;
  padding: 4px 6px;
  font-size: 11px;
}

.sell-screen {
  padding-top: 10px;
}

.app-phone-screen .app-page.sell-screen {
  height: 760px;
  min-height: 0;
  max-height: 760px;
  overflow-y: auto;
  padding-bottom: 132px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.app-phone-screen .app-page.sell-screen::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.sell-screen .app-titlebar {
  min-height: 28px;
  margin-bottom: 4px;
}

.sell-screen .app-step-panel p {
  line-height: 1.3;
}

.sell-screen .app-form label,
.sell-screen .app-field-line {
  grid-template-columns: 68px 1fr;
  gap: 8px;
  min-height: 32px;
}

.sell-screen .app-form.compact > label,
.sell-screen .app-amount-row label,
.sell-screen .app-field-line > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

.sell-screen .app-form input,
.sell-screen .app-form select,
.sell-screen .app-form textarea {
  color: #0f172a;
  font-size: 12px;
  padding: 9px 10px;
}

.sell-screen .app-form textarea {
  min-height: 68px;
}

.sell-screen .app-chip-row button,
.sell-screen .app-choice-row button {
  min-width: 58px;
  padding: 7px 9px;
}

.sell-screen .app-quote-card {
  gap: 4px;
  padding: 11px 12px;
}

.sell-screen .app-quote-card strong {
  font-size: 25px;
}

.sell-screen .app-confirm-list {
  gap: 4px;
}

.sell-screen .app-confirm-list div {
  grid-template-columns: 66px 1fr;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
}

.sell-screen .app-sell-actions {
  margin-top: 6px;
}

.sell-screen .app-upload-block {
  padding: 6px;
}

.sell-screen .app-upload-block.compact-upload {
  padding: 4px;
}

.sell-screen .app-upload-photo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 112px;
  margin: 0 0 8px;
  padding: 16px 18px;
  border: 1px solid rgba(22, 163, 74, .13);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .04);
}

.sell-screen .app-upload-photo-card > span {
  display: grid;
  gap: 18px;
}

.sell-screen .app-upload-photo-card strong {
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
}

.sell-screen .app-upload-photo-card small {
  color: #9ca3af;
  font-size: 14px;
  font-weight: 700;
}

.sell-screen .app-upload-camera-pill {
  display: grid;
  place-items: center;
  width: 68px;
  height: 42px;
  border-radius: 999px;
  background: #f0f0f2;
}

.sell-screen .app-upload-camera-pill .app-upload-camera-icon {
  border-color: #0a84ff;
  background: #f0f7ff;
}

.sell-screen .app-upload-camera-pill .app-upload-camera-icon::before {
  background: #0a84ff;
}

.sell-screen .app-upload-camera-pill .app-upload-camera-icon::after {
  border-color: #0a84ff;
}

.sell-screen .app-upload-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.sell-screen .app-upload-tile.app-upload-single {
  gap: 3px;
  min-height: 52px;
  padding: 5px;
}

.sell-screen .app-upload-tile,
.sell-screen .app-upload-thumb {
  min-height: 52px;
}

.sell-screen .app-upload-camera-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
  border: 2px solid #059669;
  border-radius: 6px;
  background: #f0fdf4;
}

.sell-screen .app-upload-camera-icon::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 5px;
  width: 10px;
  height: 5px;
  border-radius: 5px 5px 0 0;
  background: #059669;
}

.sell-screen .app-upload-camera-icon::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 5px;
  width: 7px;
  height: 7px;
  border: 2px solid #059669;
  border-radius: 50%;
  background: #fff;
}

.sell-screen .app-upload-camera-icon.album::before {
  left: 3px;
}

.sell-screen .app-upload-camera-icon.album::after {
  box-shadow: 7px 3px 0 -3px #059669;
}

.sell-screen .app-upload-tile span {
  font-size: 12px;
  font-weight: 900;
}

.sell-screen .app-upload-tile strong {
  color: #047857;
  font-size: 12px;
  line-height: 1;
}

.sell-screen .app-upload-tile small {
  font-size: 10px;
}

.app-bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, .38);
}

.app-bottom-sheet {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 91;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(15, 23, 42, .22);
}

.app-bottom-sheet-handle {
  justify-self: center;
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #d1d5db;
  margin: 2px 0 4px;
}

.app-image-source-sheet > strong {
  padding: 0 6px 4px;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.app-image-source-sheet button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  color: #111827;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
}

.app-image-source-sheet button.muted {
  justify-content: center;
  color: #64748b;
  background: #f1f5f9;
}

.app-image-source-sheet button em {
  font-style: normal;
}

.app-price-compact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 8px;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}

.app-price-compact span {
  color: #047857;
  font-size: 12px;
  font-weight: 800;
}

.app-price-compact strong {
  color: #064e3b;
  font-size: 18px;
  line-height: 1;
  text-align: right;
}

.app-price-compact small {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 11px;
  line-height: 1.25;
}

.sell-screen .app-payout-toggle {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #d9f7e8;
  border-radius: 8px;
  background: #f6fffb;
}

.sell-screen .app-payout-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #10c873;
}

.sell-screen .app-payout-toggle span {
  display: grid;
  gap: 2px;
}

.sell-screen .app-payout-toggle strong {
  color: #102033;
  font-size: 13px;
}

.sell-screen .app-payout-toggle small,
.sell-screen .app-wallet-route-note {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.sell-screen .app-wallet-route-note {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.sell-screen .app-payout-fields {
  display: grid;
  gap: 6px;
}

.sell-screen .app-payout-panel {
  display: grid;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid #e5eef5;
  border-radius: 8px;
  background: #fff;
}

.sell-screen .app-payout-fields label {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 8px;
  align-items: center;
  color: #102033;
  font-size: 12px;
  font-weight: 800;
}

.sell-screen .app-payout-fields select,
.sell-screen .app-payout-fields input {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.app-sell-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
  margin: 12px 0 78px;
}

.app-sell-actions button {
  width: 100%;
}

.app-quote-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #10c873, #059669);
  color: #fff;
}

.app-quote-card span,
.app-quote-card small {
  color: rgba(255, 255, 255, .82);
}

.app-quote-card strong {
  font-size: 32px;
  line-height: 1;
}

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

.app-confirm-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f7;
}

.app-confirm-list div:last-child {
  border-bottom: 0;
}

.app-confirm-list span {
  color: #64748b;
}

.app-confirm-list strong {
  min-width: 0;
  color: #111827;
}

.app-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.app-form label,
.app-field-line,
.app-full-input {
  display: grid;
  grid-template-columns: 98px 1fr;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.app-form input,
.app-form select,
.app-form textarea,
.app-full-input input,
.app-full-input select,
.app-chat-input {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: #f3f4f6;
  padding: 13px 14px;
  color: #111827;
}

.app-form textarea,
.app-chat-input {
  min-height: 92px;
  resize: vertical;
}

.app-textarea {
  grid-template-columns: 1fr !important;
}

.app-chip-row,
.app-choice-row {
  min-width: 0;
}

.app-chip-row {
  grid-column: 2;
}

.app-chip-row button,
.app-choice-row button {
  min-width: 76px;
  padding: 11px 14px;
}

.app-upload-block {
  display: grid;
  gap: 10px;
}

.app-upload-title {
  font-weight: 800;
}

.app-upload-title small {
  color: #64748b;
  font-weight: 600;
}

.app-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.app-upload-tile,
.app-upload-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px dashed #6ee7b7;
  overflow: hidden;
}

.app-upload-tile {
  grid-template-columns: 1fr !important;
  gap: 4px;
  color: #047857;
}

.app-upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-upload-thumb button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, .68);
  color: #fff;
}

.app-requirement-line {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 12px;
  align-items: center;
  color: #64748b;
  font-size: 12px;
}

.app-requirement-line strong {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  line-height: 1.35;
}

.app-draft-list {
  display: grid;
  gap: 7px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.app-draft-head {
  display: grid;
  gap: 2px;
}

.app-draft-head strong {
  color: #111827;
  font-size: 14px;
}

.app-draft-head span {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.app-draft-row {
  display: grid;
  grid-template-columns: 62px minmax(86px, .72fr) minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 42px;
  padding: 7px;
  border-radius: 6px;
  background: #f8fafc;
}

.app-draft-row.ready {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.app-draft-row.warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.app-draft-index {
  display: grid;
  gap: 1px;
}

.app-draft-index strong {
  font-size: 12px;
}

.app-draft-index span {
  color: #64748b;
  font-size: 10px;
  line-height: 1.2;
}

.app-draft-row label {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  font-weight: 700;
}

.app-draft-row label span,
.app-draft-material small {
  color: #64748b;
  font-size: 10px;
}

.app-draft-row input {
  height: 30px;
  min-height: 30px;
  padding: 4px 6px;
}

.app-draft-material {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.app-draft-material span,
.app-draft-material small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-draft-material span {
  color: #111827;
  font-size: 11px;
}

.app-validation-note {
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  line-height: 1.4;
}

.app-sticky-submit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 58px;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid #e5e7eb;
}

.app-sticky-submit div {
  min-width: 0;
  flex: 1;
}

.app-sticky-submit span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
}

.app-sticky-submit strong {
  display: block;
  color: #10b981;
  font-size: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sticky-submit button {
  min-height: 42px;
  padding-inline: 12px;
}

.app-sticky-submit.app-sell-submit-compact {
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
}

.app-account-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.app-account-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #10c873;
}

.app-account-check span {
  display: inline;
  color: #475569;
  font-size: 12px;
  line-height: 1;
}

.app-sticky-submit.app-sell-submit-compact .app-main-btn,
.app-phone-screen .app-sticky-submit.app-sell-submit-compact .app-main-btn {
  width: auto;
  min-width: 92px;
  min-height: 34px;
  margin-top: 0;
  padding: 8px 14px;
  font-size: 14px;
}

.app-bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  height: 58px;
  padding: 5px 8px 7px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.app-bottom-nav button {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.app-bottom-nav button.active {
  color: #10b981;
}

.app-bottom-nav .sell-tab {
  align-self: center;
  justify-self: center;
  width: 64px;
  height: 64px;
  margin-top: -28px;
  border-radius: 50%;
  background: #10c873;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 10px 22px rgba(16, 185, 129, .35);
}

.app-segment {
  margin: 16px 0;
}

.app-segment button {
  min-width: 92px;
  padding: 10px 16px;
}

.app-record-row {
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #edf2f7;
}

.app-empty {
  display: grid;
  place-items: center;
  min-height: 360px;
  color: #94a3b8;
  background: rgba(255, 255, 255, .72);
  border-radius: 8px;
}

.wallet-hero {
  min-height: 170px;
  padding: 44px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ecfdf5, #f8fafc);
}

.wallet-hero small {
  display: block;
  margin-top: 10px;
  color: #64748b;
  font-weight: 700;
}

.app-wallet-method {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.app-wallet-method strong,
.app-wallet-method span {
  display: block;
}

.app-wallet-method span {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.app-wallet-method em {
  align-self: flex-start;
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 999px;
  color: #047857;
  background: #dcfce7;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.app-wallet-method.empty {
  border-style: dashed;
}

.app-amount-chips {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.app-amount-chips button {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  color: #047857;
  background: #ecfdf5;
  font-weight: 800;
}

.app-full-input {
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.app-main-btn {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  font-size: 18px;
}

.chat-bubble {
  display: grid;
  gap: 8px;
  width: fit-content;
  max-width: 82%;
  margin: 42px 0 22px;
  padding: 16px;
  border-radius: 18px;
  background: #f1f5f9;
}

.app-chat-input {
  min-height: 130px;
  background: #fff;
}

.me-top {
  display: grid;
  place-items: center;
  gap: 8px;
  padding-top: 24px;
}

.me-vip,
.me-grid button,
.me-card {
  width: 100%;
  border: 0;
  border-radius: 8px;
  text-align: left;
}

.me-vip {
  display: flex;
  justify-content: space-between;
  margin: 26px 0 14px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #172033, #344155);
}

.me-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.me-grid button,
.me-card {
  padding: 16px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
}

.me-grid button span,
.me-card span {
  display: block;
  margin-top: 8px;
  color: #64748b;
}

.me-card {
  margin-top: 14px;
}

.app-side-panel {
  position: sticky;
  top: 16px;
}

.app-side-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
}

.app-side-list span {
  color: #64748b;
}

.app-record-screen {
  padding-bottom: 76px;
}

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

.app-record-button {
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.app-record-row div {
  min-width: 0;
}

.app-record-row span,
.app-record-row small {
  display: block;
}

.app-record-row strong {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.app-record-row strong b {
  flex-shrink: 0;
  max-width: 96px;
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-record-row strong span {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-record-row span,
.app-record-row small {
  color: #64748b;
}

.app-record-row small {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-record-row em {
  flex-shrink: 0;
  max-width: 104px;
  color: #0f172a;
  font-style: normal;
  font-weight: 800;
  font-size: 12px;
  text-align: right;
}

.app-order-detail,
.app-wallet-card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.wallet-ledger-card .app-record-list,
.reward-rule-box {
  margin-top: 8px;
}

.reward-detail-grid,
.reward-rule-box {
  display: grid;
  gap: 8px;
}

.reward-detail-grid {
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.reward-proof {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  color: #064e3b;
  background: #ecfdf5;
}

.reward-proof span,
.reward-proof small {
  color: #047857;
  font-size: 11px;
}

.reward-proof strong {
  color: #0f172a;
  font-size: 20px;
  line-height: 1.1;
}

.reward-detail-grid span,
.reward-rule-box span,
.reward-remark {
  color: #64748b;
  font-size: 11px;
}

.reward-detail-grid strong,
.reward-rule-box strong {
  min-width: 0;
  color: #0f172a;
  font-size: 12px;
  text-align: right;
  overflow-wrap: anywhere;
}

.reward-rule-box div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.reward-remark {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.reward-detail-card .app-secondary-btn {
  width: 100%;
  margin-top: 10px;
}

.app-order-detail-head,
.app-section-title,
.app-order-item-head,
.app-order-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-order-detail-head span,
.app-section-title span {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 12px;
}

.app-order-hero {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 14px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #0ea765);
}

.app-order-hero span,
.app-order-hero small {
  overflow: hidden;
  color: rgba(255, 255, 255, .78);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-order-hero strong {
  font-size: 24px;
  line-height: 1.1;
}

.app-mini-close {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  color: #334155;
  background: #f1f5f9;
}

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

.app-order-summary div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px;
  border-radius: 8px;
  background: #f8fafc;
}

.app-order-summary span {
  color: #94a3b8;
  font-size: 11px;
}

.app-order-summary strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.app-order-item {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.app-order-item-main {
  color: #0f172a;
  font-weight: 800;
}

.app-order-item-meta {
  color: #334155;
  font-size: 12px;
}

.app-order-item-meta.subtle {
  color: #94a3b8;
}

.app-order-item-note {
  padding: 6px 8px;
  border-radius: 7px;
  color: #475569;
  background: #eef6f1;
  font-size: 12px;
}

.app-payment-strip {
  display: grid;
  gap: 4px;
  margin: 0 0 10px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid #dbe4ee;
  background: #f8fafc;
}

.app-payment-strip div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-payment-strip span,
.app-payment-strip small {
  color: #64748b;
  font-size: 12px;
}

.app-payment-strip strong {
  color: #0f172a;
}

.app-payment-strip.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.app-payment-strip.bad {
  border-color: #fecaca;
  background: #fef2f2;
}

.app-payment-strip.warn {
  border-color: #fed7aa;
  background: #fff7ed;
}

.app-code-card-list {
  display: grid;
  gap: 8px;
}

.app-code-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: #0f172a;
}

.app-code-card-head strong {
  font-size: 14px;
}

.app-code-card-head span {
  color: #64748b;
  font-size: 11px;
  text-align: right;
}

.app-code-card-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.app-code-index {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 8px;
  color: #047857;
  font-weight: 800;
  font-size: 12px;
  background: #ecfdf5;
}

.app-code-fields {
  display: grid;
  gap: 7px;
}

.app-code-fields.two {
  grid-template-columns: 1fr 84px;
}

.app-code-fields.three {
  grid-template-columns: 1fr 72px 58px;
}

.app-code-fields label,
.app-code-bulk {
  display: grid;
  gap: 4px;
  margin: 0;
}

.app-code-fields span,
.app-code-bulk span {
  color: #64748b;
  font-size: 11px;
}

.app-code-fields input {
  width: 100%;
  height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 13px;
  background: #f8fafc;
}

.app-code-bulk textarea {
  min-height: 72px;
  border: 1px dashed #bbf7d0;
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  background: #f8fafc;
  resize: vertical;
}

.app-code-card-list.compact {
  gap: 10px;
}

.app-code-card-list.compact .app-code-bulk textarea {
  min-height: 118px;
  border-style: solid;
  border-color: #dbe6ee;
  font-size: 13px;
  line-height: 1.45;
}

.app-code-card-list.compact .app-code-card-head span {
  white-space: nowrap;
}

.app-empty.compact {
  min-height: 86px;
  border: 1px dashed #dbe4ee;
}

.app-support-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.app-support-chips button {
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  padding: 8px 12px;
  color: #0369a1;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}

.me-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.me-feature-grid button {
  min-height: 86px;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  background: linear-gradient(135deg, #ecfdf5, #fff);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
}

.me-feature-grid button.active {
  outline: 2px solid #10c873;
  background: linear-gradient(135deg, #d1fae5, #fff);
}

.me-feature-grid span {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
}

.me-feature-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
}

.me-feature-panel strong {
  font-size: 16px;
}

.me-feature-panel span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.me-feature-points {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 16px;
  color: #334155;
  font-size: 12px;
}

.me-feature-panel.green {
  border-color: #bbf7d0;
  background: linear-gradient(135deg, #ecfdf5, #fff);
}

.me-feature-panel.orange {
  border-color: #fed7aa;
  background: linear-gradient(135deg, #fff7ed, #fff);
}

.me-feature-panel.blue {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #eff6ff, #fff);
}

.me-feature-panel.dark {
  border-color: #cbd5e1;
  background: linear-gradient(135deg, #f8fafc, #fff);
}

.app-growth-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
}

.app-growth-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #10c873;
}

.app-growth-ledger,
.app-growth-ranks {
  display: grid;
  gap: 8px;
}

.app-growth-ledger > div,
.app-growth-ranks > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
}

.app-growth-ledger small {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 11px;
}

.app-growth-ranks b {
  font-size: 12px;
}

.app-growth-empty {
  padding: 10px;
  border-radius: 8px;
  color: #64748b;
  font-size: 12px;
  background: rgba(255, 255, 255, .7);
}

.app-activity-section {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.app-activity-section h4 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 12px;
}

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

.app-activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .75);
}

button.app-activity-row {
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
}

button.app-activity-row:active {
  transform: translateY(1px);
}

.app-activity-row strong,
.app-activity-row em {
  color: #0f172a;
  font-size: 12px;
  font-style: normal;
}

.app-activity-row span,
.app-activity-row small {
  color: #64748b;
  font-size: 11px;
}

.app-activity-row small {
  grid-column: 1 / -1;
}

.app-activity-detail-screen {
  display: grid;
  align-content: start;
  gap: 10px;
}

.app-activity-hero {
  border-radius: 8px;
  padding: 14px;
  color: #0f172a;
  background: linear-gradient(135deg, #ecfdf5, #fff);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.app-activity-hero.orange {
  background: linear-gradient(135deg, #fff7ed, #fff);
}

.app-activity-hero.blue {
  background: linear-gradient(135deg, #eff6ff, #fff);
}

.app-activity-hero.dark {
  background: linear-gradient(135deg, #f8fafc, #fff);
}

.app-activity-hero span,
.app-activity-hero em {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.app-activity-hero strong {
  display: block;
  margin: 4px 0;
  font-size: 21px;
  letter-spacing: 0;
}

.app-activity-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.app-activity-stat-grid > div {
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 9px 8px;
  background: #fff;
}

.app-activity-stat-grid span {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.app-activity-stat-grid strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #0f172a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-activity-rule-card,
.app-activity-share-block {
  display: grid;
  gap: 7px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 11px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.app-activity-rule-card strong,
.app-activity-share-block strong {
  color: #0f172a;
  font-size: 13px;
}

.app-activity-rule-card span,
.app-activity-share-block span {
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.app-activity-share-block .app-invite-pass {
  margin-top: 0;
  box-shadow: none;
}

.me-vip-card,
button.me-card {
  width: 100%;
  border: 0;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.me-vip-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  margin-top: 12px;
  padding: 13px;
  color: #064e3b;
  background: linear-gradient(135deg, #d1fae5, #fff);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
}

.me-vip-card span,
.me-vip-card em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
}

.me-vip-card strong {
  font-size: 17px;
}

.me-vip-card em {
  grid-column: 1 / -1;
}

.app-vip-screen {
  display: grid;
  align-content: start;
  gap: 10px;
}

.app-vip-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: start;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #d1fae5 0%, #fff 72%);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}

.app-vip-hero span,
.app-vip-hero em,
.app-vip-hero small {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.app-vip-hero strong {
  display: block;
  margin-top: 4px;
  color: #064e3b;
  font-size: 25px;
  letter-spacing: 0;
}

.app-vip-hero b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  border-radius: 999px;
  color: #047857;
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 900;
}

.app-vip-progress {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbeafe;
}

.app-vip-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #22c55e);
}

.app-vip-current {
  display: grid;
  gap: 9px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
}

.app-vip-current strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
}

.app-vip-current span {
  color: #64748b;
  font-size: 11px;
}

.app-vip-benefit-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.app-vip-benefit-pills span {
  min-height: 24px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 4px 9px;
  color: #047857;
  background: #ecfdf5;
  font-size: 11px;
  font-weight: 850;
}

.app-vip-tier-list {
  display: grid;
  gap: 8px;
}

.app-vip-tier-card {
  display: grid;
  gap: 7px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, .96);
}

.app-vip-tier-card.active {
  border-color: #86efac;
  background: linear-gradient(135deg, #ecfdf5, #fff);
}

.app-vip-tier-card.next {
  border-color: #bbf7d0;
}

.app-vip-tier-card.locked {
  background: rgba(255, 255, 255, .76);
}

.app-vip-tier-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-vip-tier-headline span,
.app-vip-tier-card small {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.app-vip-tier-headline strong {
  color: #0f172a;
  font-size: 14px;
}

.app-vip-tier-headline em {
  flex: 0 0 auto;
  min-height: 22px;
  border-radius: 999px;
  padding: 3px 8px;
  color: #047857;
  background: #ecfdf5;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.app-vip-tier-card ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-vip-tier-card li {
  color: #334155;
  font-size: 11px;
  line-height: 1.4;
}

.app-vip-tier-card li::before {
  content: "+";
  margin-right: 6px;
  color: #10b981;
  font-weight: 900;
}

.app-activity-entry-note {
  display: grid;
  gap: 3px;
}

.app-activity-entry-note em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
}

.vip-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 2px 9px;
  color: #047857;
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 850;
}

.vip-tier-editor {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.vip-tier-head,
.vip-tier-row {
  display: grid;
  grid-template-columns: 72px 130px 104px 96px 128px 96px 112px 112px 82px 220px;
  gap: 8px;
  align-items: center;
  min-width: 1230px;
}

.vip-tier-head {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.vip-tier-row select,
.vip-tier-row input {
  width: 100%;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
}

.vip-activity-rule-panel {
  margin-top: 14px;
}

.vip-invite-rule-table {
  display: grid;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.vip-invite-rule-row {
  display: grid;
  grid-template-columns: 76px 74px 106px 92px 96px 96px 76px 96px 96px 96px 78px 72px 92px 96px 96px;
  gap: 7px;
  align-items: center;
  min-width: 1380px;
}

.vip-invite-rule-row.spec-head {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.vip-invite-rule-row strong {
  color: #0f172a;
  font-size: 12px;
}

.vip-invite-rule-row select,
.vip-invite-rule-row input {
  width: 100%;
  min-height: 34px;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  padding: 7px 8px;
  background: #fff;
  font-size: 12px;
}

.app-chat-order-select {
  width: 100%;
  height: 42px;
  margin: 10px 0;
  padding: 0 12px;
  border: 1px solid #d7f5e4;
  border-radius: 8px;
  color: #0f172a;
  background: #fff;
}

.app-chat-context {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #047857;
  background: #ecfdf5;
}

.app-chat-context span {
  color: #334155;
}

.app-chat-input {
  width: 100%;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  resize: vertical;
  font: inherit;
}

.app-supplement-strip {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
}

.app-supplement-strip div {
  display: grid;
  gap: 2px;
}

.app-supplement-strip span {
  color: #9a3412;
  font-size: 12px;
}

.app-supplement-strip button,
.app-link-btn {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #10c873;
  cursor: pointer;
}

.app-supplement-strip button {
  padding: 8px 10px;
  white-space: nowrap;
}

.app-link-btn {
  margin-top: 8px;
  padding: 7px 10px;
  font-size: 12px;
}

.app-order-item.needs-supplement {
  border-color: #fed7aa;
  background: #fffaf3;
}

.app-item-feedback {
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  color: #7f1d1d;
  font-size: 12px;
  background: #fff1f2;
}

.app-status-ok,
.app-status-info,
.app-status-warn,
.app-status-danger {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.app-status-ok {
  color: #047857;
  background: #d1fae5;
}

.app-status-info {
  color: #1d4ed8;
  background: #dbeafe;
}

.app-status-warn {
  color: #b45309;
  background: #fef3c7;
}

.app-status-danger {
  color: #be123c;
  background: #ffe4e6;
}

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

.app-quick-actions,
.app-record-actions,
.app-service-actions {
  display: grid;
  gap: 8px;
}

.app-quick-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 10px 0;
}

.app-record-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 10px;
}

.app-service-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 10px;
}

.app-quick-actions button,
.app-record-actions button,
.app-service-actions button {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 58px;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  padding: 8px 6px;
  color: #0f172a;
  background: #fff;
  text-align: center;
  cursor: pointer;
}

.app-quick-actions strong,
.app-record-actions strong,
.app-service-actions strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-quick-actions span,
.app-record-actions span,
.app-service-actions span {
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-quick-actions button:first-child {
  border-color: #bbf7d0;
  color: #047857;
  background: #ecfdf5;
}

.app-record-actions button:last-child,
.app-service-actions button:first-child {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.app-promo-card {
  border: 0;
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  color: #0f172a;
  background: linear-gradient(135deg, #ecfdf5, #fff);
  box-shadow: inset 0 0 0 1px #d7f5e4;
  cursor: pointer;
}

.app-promo-card strong,
.app-promo-card span {
  display: block;
}

.app-promo-card span {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
}

.app-balance-action {
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.app-growth-strip {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 12px;
  border-radius: 8px;
  color: #064e3b;
  background: linear-gradient(135deg, #bbf7d0, #f0fdf4);
}

.app-growth-strip strong {
  font-size: 14px;
}

.app-growth-strip span {
  font-size: 11px;
  color: #047857;
}

.app-record-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.app-record-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 7px 4px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  cursor: pointer;
}

.app-record-tabs button.active {
  color: #fff;
  background: #10c873;
}

.app-notice-list,
.app-chat-card {
  display: grid;
  gap: 8px;
}

.app-notice-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.app-notice-row strong,
.app-notice-row span {
  display: block;
}

.app-notice-row span {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
}

.app-chat-card {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.app-chat-bubble {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.app-chat-bubble.agent {
  color: #0f172a;
  background: #f1f5f9;
}

.app-chat-bubble.customer {
  justify-self: end;
  color: #fff;
  background: #10c873;
}

.app-detail-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.app-simple-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.app-simple-head span {
  color: #64748b;
  font-size: 12px;
}

.app-payment-strip {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.app-order-item-list {
  display: grid;
  gap: 8px;
}

.mini-copy {
  border: 0;
  border-radius: 6px;
  padding: 3px 7px;
  color: #047857;
  background: #d1fae5;
  cursor: pointer;
}

/* Customer app compact density */
.app-phone-screen .app-page {
  padding: 16px 16px 78px;
}

.app-phone-screen .app-titlebar {
  min-height: 30px;
  margin-bottom: 6px;
}

.app-phone-screen .app-back {
  font-size: 25px;
}

.app-phone-screen .app-user {
  gap: 8px;
}

.app-phone-screen .app-user strong,
.app-phone-screen .app-heading {
  font-size: 22px;
}

.app-phone-screen .app-avatar {
  width: 36px;
  height: 36px;
}

.app-phone-screen .app-balance-card {
  min-height: 92px;
  margin-top: 14px;
  padding: 15px;
}

.app-phone-screen .app-balance-card strong,
.app-phone-screen .wallet-hero strong {
  margin-top: 8px;
  font-size: 29px;
}

.app-phone-screen .app-banner {
  margin-top: 9px;
  padding: 12px;
}

.app-phone-screen .app-category-tabs {
  margin-top: 12px;
  padding-bottom: 5px;
}

.app-phone-screen .app-category-tabs button {
  padding: 8px 10px;
  font-size: 14px;
}

.app-phone-screen .app-rate-list,
.app-phone-screen .app-record-list,
.app-phone-screen .app-side-list,
.app-phone-screen .app-order-items,
.app-phone-screen .app-order-item-list,
.app-phone-screen .app-notice-list,
.app-phone-screen .app-chat-card {
  gap: 6px;
}

.app-phone-screen .app-rate-row {
  grid-template-columns: 34px 1fr auto;
  gap: 8px;
  padding: 9px 3px;
}

.app-phone-screen .app-rate-row span {
  width: 30px;
  height: 30px;
}

.app-phone-screen .app-selected-card {
  margin-top: 10px;
  padding: 11px;
}

.app-phone-screen .app-segment {
  margin: 10px 0;
}

.app-phone-screen .app-segment button {
  min-width: 78px;
  padding: 8px 12px;
}

.app-phone-screen .app-record-row,
.app-phone-screen .app-notice-row,
.app-phone-screen .app-chat-card,
.app-phone-screen .app-detail-card,
.app-phone-screen .app-wallet-card,
.app-phone-screen .app-order-detail {
  padding: 10px;
}

.app-phone-screen .app-record-screen .app-record-row {
  padding: 8px 9px;
}

.app-phone-screen .app-record-screen .app-record-row-v3 {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 102px;
  grid-template-rows: auto auto;
  column-gap: 7px;
  row-gap: 1px;
  align-items: center;
  width: 100%;
  min-height: 54px;
}

.app-record-row-v3 .app-record-left,
.app-record-row-v3 .app-record-mid,
.app-record-row-v3 .app-record-right {
  display: contents;
}

.app-record-row-v3 .app-record-left strong {
  grid-column: 1;
  grid-row: 1;
}

.app-record-row-v3 .app-record-mid strong {
  grid-column: 2;
  grid-row: 1;
}

.app-record-row-v3 .app-record-right em {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.app-record-row-v3 .app-record-left strong,
.app-record-row-v3 .app-record-mid strong,
.app-record-row-v3 .app-record-right em {
  align-self: center;
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-record-row-v3 .app-record-left strong {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 800;
  transform: translateY(2px);
}

.app-record-row-v3 .app-record-mid strong {
  color: #0f172a;
  font-weight: 800;
}

.app-record-row-v3 .app-record-left span,
.app-record-row-v3 .app-record-mid span,
.app-record-row-v3 .app-record-right span {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-record-row-v3 .app-record-left span {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
}

.app-record-row-v3 .app-record-mid span {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
}

.app-record-row-v3 .app-record-right span {
  grid-column: 3;
  grid-row: 2;
  align-self: center;
  justify-self: end;
  text-align: right;
}

.app-record-row-v3 .app-record-left span {
  color: #64748b;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.app-record-row-v3 .app-record-mid span,
.app-record-row-v3 .app-record-right span {
  font-size: 10px;
}

.app-record-row-v3 .app-record-right em {
  min-height: 20px;
  max-width: 100%;
  overflow: hidden;
  padding: 2px 6px;
  color: #0f172a;
  font-style: normal;
  font-weight: 850;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-phone-screen .app-empty {
  min-height: 260px;
}

.app-phone-screen .wallet-hero {
  min-height: 132px;
  padding: 30px 15px;
}

.app-phone-screen .app-wallet-method,
.app-phone-screen .app-full-input,
.app-phone-screen .me-card {
  margin-top: 9px;
}

.app-phone-screen .app-main-btn {
  margin-top: 12px;
  padding: 12px;
  font-size: 16px;
}

.app-phone-screen .me-top {
  gap: 6px;
  padding-top: 14px;
}

.app-phone-screen .app-avatar.large {
  width: 62px;
  height: 62px;
  font-size: 24px;
}

.app-phone-screen .me-vip {
  margin: 18px 0 10px;
  padding: 14px;
}

.app-phone-screen .me-grid {
  gap: 9px;
}

.app-phone-screen .me-grid button,
.app-phone-screen .me-card,
.app-phone-screen .me-feature-panel {
  padding: 12px;
}

.app-phone-screen .app-chat-input {
  min-height: 96px;
}

.app-phone-screen .chat-bubble {
  margin: 28px 0 14px;
  padding: 12px;
}

.app-phone-screen .app-order-detail,
.app-phone-screen .app-wallet-card {
  margin-top: 9px;
}

.app-phone-screen .app-order-hero {
  margin-top: 8px;
  padding: 11px;
}

.app-phone-screen .app-order-summary {
  gap: 6px;
  margin: 9px 0;
}

.app-phone-screen .app-order-summary div {
  padding: 7px;
}

.app-phone-screen .app-sticky-submit {
  padding: 9px 14px;
}

.app-phone-screen .app-sticky-submit strong {
  font-size: 20px;
}

.app-phone-screen .app-sticky-submit button {
  min-height: 38px;
}

@media (max-width: 980px) {
  .customer-app-layout,
  .app-control-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

  .app-control-row {
    display: grid;
  }

  .app-phone-frame {
    max-width: 100%;
  }
}

.app-price-ready {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 6px;
}

.app-price-ready small {
  display: block;
}

.app-price-main strong {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

.app-boost-badge {
  display: inline-block;
  margin-top: -3px;
  color: #dc2626;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.app-boost-badge.locked {
  color: #ef4444;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.app-boost-note {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.app-boost-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 7px 8px;
  background: #fff7d6;
  color: #92400e;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.app-boost-cta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-boost-cta b {
  flex-shrink: 0;
  color: #b45309;
  font-size: 11px;
}

.sell-screen .app-price-top-card {
  display: grid;
  grid-template-rows: minmax(72px, 1fr) auto;
  gap: 9px;
  align-content: stretch;
  min-height: 148px;
  margin: 0 0 10px;
  padding: 16px;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(209, 250, 229, .98) 0%, rgba(255, 255, 255, .96) 76%),
    radial-gradient(circle at top right, rgba(16, 185, 129, .18), transparent 38%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .09);
}

.sell-screen .app-price-top-card .app-price-main {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 1px 0 9px;
  border-bottom: 1px solid rgba(16, 185, 129, .16);
}

.sell-screen .app-price-top-card .app-price-main span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.sell-screen .app-price-top-card .app-price-main strong {
  min-width: 0;
  color: #064e3b;
  font-size: 28px;
  line-height: 1.05;
}

.sell-screen .app-price-top-card .app-price-main small {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
}

.sell-screen .app-price-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.sell-screen .app-price-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 48px;
  padding: 8px;
  border: 1px solid rgba(16, 185, 129, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .62);
  color: inherit;
  text-align: left;
}

.sell-screen button.app-price-cell {
  cursor: pointer;
}

.sell-screen .app-price-meta small {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.sell-screen .app-price-meta b {
  overflow: hidden;
  color: #0f766e;
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sell-screen .app-price-meta em {
  overflow: hidden;
  color: #94a3b8;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sell-screen .app-price-boost-cell.locked {
  border-color: #fde68a;
  background: #fff7d6;
}

.sell-screen .app-price-boost-cell.locked em,
.sell-screen .app-price-boost-cell.locked b {
  color: #b45309;
}

.sell-screen .app-price-boost-cell.active {
  border-color: rgba(16, 185, 129, .3);
  background: rgba(236, 253, 245, .84);
}

.sell-screen .app-price-top-card .app-boost-note {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.app-confirm-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.app-confirm-mini div span,
.app-confirm-mini small {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.app-confirm-mini div strong {
  display: block;
  margin-top: 2px;
  color: #0f172a;
  font-size: 12px;
}

.app-confirm-mini small {
  grid-column: 1 / -1;
}

.app-confirm-mini.ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.app-chip-row.small button,
.app-choice-row.small button {
  min-height: 28px;
  padding: 6px 9px;
  font-size: 11px;
}

.app-upload-thumb.processing,
.app-upload-thumb.error {
  align-content: center;
  justify-items: center;
  padding: 6px;
}

.app-upload-thumb small,
.app-upload-thumb .app-upload-retry {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 0;
  border-radius: 999px;
  padding: 3px 5px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.app-upload-thumb .app-upload-retry {
  background: #dc2626;
}

.app-upload-state {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.app-bonus-proof {
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 800;
}

.app-phone-screen .app-order-detail-page {
  display: grid;
  gap: 8px;
  max-height: 760px;
  min-height: 760px;
  overflow-y: auto;
  padding: 12px 14px 86px;
  scrollbar-width: none;
}

.app-phone-screen .app-order-detail-page::-webkit-scrollbar {
  display: none;
}

.app-order-top-shell {
  --order-accent: #2563eb;
  --order-border: #dbeafe;
  --order-card-bg: #eef6ff;
  --order-card-bg-end: #ffffff;
  --order-metric-bg: #eaf3ff;
  --order-metric-bg-end: #f8fbff;
  --order-surface: #e9f2ff;
  --order-surface-mid: #f4f8ff;
  --order-surface-end: #ffffff;
  display: grid;
  gap: 8px;
  margin: -12px -14px 0;
  padding: 11px 14px 10px;
  border-bottom: 1px solid var(--order-border);
  background: linear-gradient(155deg, var(--order-surface) 0%, var(--order-surface-mid) 58%, var(--order-surface-end) 100%);
}

.app-order-top-shell.order-tone-ok {
  --order-accent: #059669;
  --order-border: #bbf7d0;
  --order-card-bg: #e8fff3;
  --order-card-bg-end: #ffffff;
  --order-metric-bg: #e5fff1;
  --order-metric-bg-end: #f8fff9;
  --order-surface: #ddfbea;
  --order-surface-mid: #effdf5;
  --order-surface-end: #ffffff;
}

.app-order-top-shell.order-tone-info {
  --order-accent: #2563eb;
  --order-border: #bfdbfe;
  --order-card-bg: #e8f2ff;
  --order-card-bg-end: #ffffff;
  --order-metric-bg: #eaf3ff;
  --order-metric-bg-end: #f8fbff;
  --order-surface: #dcecff;
  --order-surface-mid: #f4f8ff;
  --order-surface-end: #ffffff;
}

.app-order-top-shell.order-tone-warn {
  --order-accent: #d97706;
  --order-border: #fde68a;
  --order-card-bg: #fff7df;
  --order-card-bg-end: #ffffff;
  --order-metric-bg: #fff4cf;
  --order-metric-bg-end: #fffdf5;
  --order-surface: #fff3c4;
  --order-surface-mid: #fff9e8;
  --order-surface-end: #ffffff;
}

.app-order-top-shell.order-tone-danger {
  --order-accent: #e11d48;
  --order-border: #fecdd3;
  --order-card-bg: #fff0f3;
  --order-card-bg-end: #ffffff;
  --order-metric-bg: #ffe8ed;
  --order-metric-bg-end: #fff8f9;
  --order-surface: #ffe4ea;
  --order-surface-mid: #fff3f6;
  --order-surface-end: #ffffff;
}

.app-order-detail-headbar {
  align-items: center;
  min-height: 32px;
  padding: 0;
  background: transparent;
}

.app-order-detail-headbar .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  border: 1px solid var(--order-border);
  border-radius: 999px;
  padding: 0;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
  font-size: 13px;
  font-weight: 900;
}

.app-order-title-lockup {
  display: grid;
  justify-items: center;
  min-width: 0;
  line-height: 1.15;
}

.app-order-title-lockup strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.app-order-title-lockup span {
  display: block;
  max-width: 158px;
  margin-top: 2px;
  overflow: hidden;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-order-detail-page .app-detail-card,
.app-order-detail-page .app-order-item,
.app-order-detail-page .app-payment-strip {
  border-color: #e5e7eb;
  box-shadow: none;
}

.app-order-detail-page .app-order-hero-card {
  gap: 8px;
  padding: 10px;
  border: 0;
  background: linear-gradient(145deg, #ffffff 0%, var(--order-card-bg) 62%, var(--order-card-bg-end) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72), 0 8px 18px rgba(15, 23, 42, .06);
}

.app-order-hero-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.app-order-hero-status > span,
.app-order-hero-amount small,
.app-order-hero-metrics span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.app-order-hero-status > strong {
  flex-shrink: 0;
  max-width: 132px;
  min-height: 20px;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-order-hero-amount {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.app-order-hero-amount b {
  display: block;
  min-height: 35px;
  overflow: hidden;
  color: #0f172a;
  font-size: 26px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-order-hero-amount small {
  display: block;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-order-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.app-order-hero-metrics div {
  min-width: 0;
  padding: 7px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--order-metric-bg) 0%, var(--order-metric-bg-end) 100%);
}

.app-order-hero-metrics span,
.app-order-hero-metrics strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-order-hero-metrics strong {
  margin-top: 2px;
  color: #0f172a;
  font-size: 10px;
}

.app-order-detail-page .app-detail-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.app-order-detail-page .app-detail-section-title strong,
.app-order-detail-page .app-detail-section-title span {
  display: block;
}

.app-order-detail-page .app-detail-section-title span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.app-amount-breakdown {
  box-shadow: none;
}

.app-amount-breakdown .app-detail-section-title {
  margin: 0 0 8px;
}

.app-order-timeline-card {
  gap: 7px;
  padding: 10px;
}

.app-order-next {
  padding: 7px 9px;
  border-radius: 8px;
  color: #065f46;
  background: #ecfdf5;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.app-order-timeline {
  display: grid;
  gap: 0;
}

.app-timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 126px;
  gap: 7px;
  min-height: 36px;
  padding: 2px 0;
  color: #64748b;
}

.app-timeline-step::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 20px;
  bottom: -5px;
  width: 2px;
  background: #e2e8f0;
}

.app-timeline-step:last-child::after {
  display: none;
}

.app-timeline-step i {
  position: relative;
  z-index: 1;
  display: block;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
}

.app-timeline-step strong,
.app-timeline-step span {
  display: block;
}

.app-timeline-step strong {
  color: #0f172a;
  font-size: 12px;
}

.app-timeline-step span,
.app-timeline-step small {
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-order-detail-page .app-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  align-items: center;
}

.app-order-detail-page .app-detail-grid span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.app-order-detail-page .app-detail-grid b {
  min-width: 0;
  color: #0f172a;
  font-size: 12px;
  text-align: right;
  overflow-wrap: anywhere;
}

.app-timeline-step.done i {
  border-color: #10b981;
  background: #10b981;
}

.app-timeline-step.current i {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px #dbeafe;
}

.app-timeline-step.issue i {
  border-color: #f59e0b;
  background: #f59e0b;
}

.app-timeline-step.issue strong {
  color: #92400e;
}

.app-order-item-top strong.ok {
  color: #047857;
}

.app-order-item-top strong.warn {
  color: #b45309;
}

.app-order-item-top strong.muted {
  color: #64748b;
}

.app-card-section-title {
  margin: 2px 0 -1px;
}

.app-order-detail-page .app-order-item {
  gap: 7px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.app-order-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.app-order-item-top > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-order-item-top > strong {
  flex-shrink: 0;
  font-size: 12px;
  text-align: right;
}

.app-order-item-line {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.app-order-detail-page .app-order-item-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 5px;
}

.app-order-detail-page .app-order-item-meta span {
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px;
  padding: 4px 7px;
  color: #475569;
  background: #f1f5f9;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-order-photo-row,
.app-proof-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow: hidden;
}

.app-order-photo-row img,
.app-proof-row img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.app-supplement-box {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
}

.app-supplement-box > strong {
  color: #92400e;
  font-size: 12px;
}

.app-supplement-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.app-supplement-fields label {
  display: grid;
  gap: 4px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.app-supplement-fields label.wide {
  grid-column: 1 / -1;
}

.app-supplement-fields input,
.app-supplement-fields textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 7px 8px;
  color: #0f172a;
  font: inherit;
  font-size: 12px;
}

.app-supplement-images,
.app-chat-attach {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.app-supplement-images span,
.app-chat-attach span,
.app-supplement-images label,
.app-chat-attach label {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.app-supplement-images img,
.app-chat-attach img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-supplement-images button,
.app-chat-attach button {
  position: absolute;
  top: 3px;
  right: 3px;
  border: 0;
  border-radius: 999px;
  width: 18px;
  height: 18px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: 10px;
}

.app-main-btn.small {
  min-height: 32px;
  padding: 8px 10px;
  font-size: 12px;
}

.wallet-hero.compact {
  min-height: 122px;
  padding: 28px 18px;
}

.app-account-list {
  display: grid;
  gap: 7px;
  margin-bottom: 8px;
}

.app-account-list .app-wallet-method {
  width: 100%;
  text-align: left;
}

.app-account-list .app-wallet-method.active {
  border-color: #10b981;
  background: #ecfdf5;
}

.app-wallet-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0;
}

.app-secondary-btn {
  border: 1px solid #d1fae5;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 800;
}

.app-link-btn.danger {
  color: #dc2626;
}

.app-notice-row.unread {
  border-color: #fbbf24;
  background: #fffbeb;
}

.app-invite-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin-top: 9px;
}

.app-invite-pass {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff;
}

.app-invite-pass-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.app-invite-pass-top span,
.app-invite-flow span {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.app-invite-pass-top strong {
  display: block;
  color: #0f172a;
  font-size: 22px;
  letter-spacing: 0;
}

.app-invite-pass-top em {
  border-radius: 999px;
  padding: 4px 8px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.app-invite-pass-link {
  overflow: hidden;
  border-radius: 8px;
  padding: 8px;
  color: #475569;
  background: #f8fafc;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-invite-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.app-invite-flow span {
  min-width: 0;
  border-radius: 7px;
  padding: 6px 5px;
  background: #fff7ed;
  text-align: center;
}

.app-invite-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.app-invite-actions button {
  border: 0;
  border-radius: 8px;
  padding: 9px;
  color: #fff;
  background: #f97316;
  font-weight: 800;
}

.app-invite-actions button:first-child {
  color: #9a3412;
  background: #ffedd5;
}

.app-invite-link input {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, .68);
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
}

.app-invite-link button {
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.app-friend-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.app-friend-list > div:not(.app-empty) {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}

.app-friend-list span {
  color: #64748b;
  font-size: 11px;
}

.app-chat-history {
  display: grid;
  gap: 8px;
  max-height: 210px;
  overflow: auto;
  padding-right: 2px;
}

.app-chat-bubble.mine {
  margin-left: 36px;
  background: #ecfdf5;
}

.app-chat-bubble img {
  display: block;
  width: 74px;
  height: 74px;
  margin-top: 6px;
  border-radius: 8px;
  object-fit: cover;
}

.app-chat-bubble small {
  display: block;
  margin-top: 5px;
  color: #94a3b8;
  font-size: 10px;
}

/* Customer App original color skin */
.app-phone-screen {
  --app-bg: #f8fafc;
  --app-bg-deep: #9cf6bd;
  --app-bg-soft: #f8fafc;
  --app-surface: #ffffff;
  --app-surface-soft: #f8fafc;
  --app-line: #e5e7eb;
  --app-primary: #10c873;
  --app-primary-2: #10b981;
  --app-primary-deep: #047857;
  --app-primary-soft: #dcfce7;
  --app-text: #101827;
  --app-muted: #64748b;
  background: linear-gradient(180deg, #9cf6bd 0, #f8fafc 180px, #f8fafc 100%);
}

.app-phone-screen .app-page,
.app-phone-screen .app-phone-page {
  height: 760px;
  min-height: 0;
  max-height: 760px;
  overflow-y: auto;
  color: var(--app-text);
  background: transparent;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.app-phone-screen .app-page::-webkit-scrollbar,
.app-phone-screen .app-phone-page::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.app-phone-screen .app-page.sell-screen {
  padding-bottom: 132px;
}

.app-phone-screen .app-titlebar {
  min-height: 46px;
  margin: -16px -16px 12px;
  padding: 12px 14px 13px;
  border-radius: 0 0 18px 18px;
  color: var(--app-text);
  background: transparent;
  box-shadow: none;
}

.app-phone-screen .app-titlebar strong,
.app-phone-screen .app-titlebar span,
.app-phone-screen .app-titlebar button,
.app-phone-screen .app-titlebar .app-back,
.app-phone-screen .app-titlebar .app-icon-btn {
  color: var(--app-text);
}

.app-phone-screen .app-titlebar span {
  color: var(--app-muted);
  opacity: 1;
}

.app-phone-screen .app-back,
.app-phone-screen .app-icon-btn,
.app-phone-screen .icon-btn {
  color: var(--app-text);
}

.app-phone-screen .app-user strong,
.app-phone-screen .app-heading,
.app-phone-screen .app-rate-row strong,
.app-phone-screen .app-record-row strong,
.app-phone-screen .app-record-row-v3 .app-record-mid strong,
.app-phone-screen .app-confirm-list strong,
.app-phone-screen .app-order-item-main,
.app-phone-screen .app-order-item-line,
.app-phone-screen .app-detail-grid b,
.app-phone-screen .app-wallet-method strong,
.app-phone-screen .me-card strong,
.app-phone-screen .me-grid strong {
  color: var(--app-text);
}

.app-phone-screen .app-user span,
.app-phone-screen .app-balance-card span,
.app-phone-screen .app-record-row span,
.app-phone-screen .app-record-row small,
.app-phone-screen .app-record-row-v3 .app-record-left span,
.app-phone-screen .app-record-row-v3 .app-record-mid span,
.app-phone-screen .app-record-row-v3 .app-record-right span,
.app-phone-screen .wallet-hero small,
.app-phone-screen .me-top span,
.app-phone-screen .me-card span,
.app-phone-screen .app-detail-section-title span,
.app-phone-screen .app-order-hero-status > span,
.app-phone-screen .app-order-hero-amount small,
.app-phone-screen .app-order-hero-metrics span,
.app-phone-screen .app-form.compact > label,
.app-phone-screen .app-field-line > span,
.app-phone-screen .app-upload-title small,
.app-phone-screen .app-price-compact small,
.app-phone-screen .app-chat-bubble small {
  color: var(--app-muted);
}

.app-phone-screen .app-avatar,
.app-phone-screen .app-rate-row span,
.app-phone-screen .app-category-picker span,
.app-phone-screen .app-category-selected > span,
.app-phone-screen .app-code-index {
  color: var(--app-primary-deep);
  background: var(--app-primary-soft);
  border-color: rgba(16, 185, 129, .28);
}

.app-phone-screen .app-balance-card,
.app-phone-screen .wallet-hero,
.app-phone-screen .me-vip {
  color: #fff;
  background: linear-gradient(135deg, #172033, #344155);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .12);
}

.app-phone-screen .wallet-hero small,
.app-phone-screen .me-vip span,
.app-phone-screen .app-balance-card span {
  color: rgba(255, 255, 255, .78);
}

.app-phone-screen .app-banner.green,
.app-phone-screen .app-quote-card,
.app-phone-screen .app-main-btn,
.app-phone-screen .success-btn,
.app-phone-screen .app-selected-card button,
.app-phone-screen .app-invite-actions button {
  background: #10c873;
  color: #fff;
  box-shadow: 0 10px 22px rgba(16, 185, 129, .22);
}

.app-phone-screen .app-main-btn:disabled,
.app-phone-screen .success-btn:disabled {
  background: #cbd5d1;
  box-shadow: none;
}

.app-phone-screen .app-bottom-nav {
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 60px;
  align-items: center;
  padding: 6px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 34px rgba(15, 23, 42, .14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.app-phone-screen .app-bottom-nav button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-width: 0;
  border-radius: 16px;
  padding: 0 4px;
  color: #64748b;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
}

.app-phone-screen .app-bottom-nav button.active {
  color: #047857;
}

.app-phone-screen .app-bottom-nav button.active:not(.sell-tab) {
  background: #ecfdf5;
  font-weight: 850;
}

.app-phone-screen .app-bottom-nav button.active:not(.sell-tab)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 14px;
  height: 3px;
  border-radius: 999px;
  background: #10c873;
  transform: translateX(-50%);
}

.app-phone-screen .app-bottom-nav .sell-tab {
  width: 62px;
  min-width: 62px;
  height: 62px;
  min-height: 62px;
  margin-top: -24px;
  border: 4px solid #f8fafc;
  border-radius: 999px;
  background: linear-gradient(135deg, #10c873 0%, #059669 100%);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 14px 26px rgba(16, 185, 129, .34), 0 0 0 4px rgba(16, 200, 115, .12);
}

.app-phone-screen .app-bottom-nav .sell-tab.active {
  color: #fff;
  transform: translateY(-2px);
}

.app-phone-screen .app-bottom-nav .sell-tab::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  pointer-events: none;
}

.app-phone-screen .app-detail-card,
.app-phone-screen .app-order-item,
.app-phone-screen .app-wallet-card,
.app-phone-screen .app-record-row,
.app-phone-screen .app-quick-actions button,
.app-phone-screen .app-notice-row,
.app-phone-screen .app-chat-card,
.app-phone-screen .app-step-panel,
.app-phone-screen .app-selected-card,
.app-phone-screen .app-draft-list,
.app-phone-screen .me-card,
.app-phone-screen .me-grid button,
.app-phone-screen .me-feature-panel,
.app-phone-screen .app-category-picker button,
.app-phone-screen .app-category-selected,
.app-phone-screen .app-category-dropdown summary,
.app-phone-screen .app-category-menu,
.app-phone-screen .app-wallet-method,
.app-phone-screen .app-payment-strip,
.app-phone-screen .app-payout-panel,
.app-phone-screen .app-invite-pass,
.app-phone-screen .app-friend-list > div:not(.app-empty) {
  border-color: var(--app-line);
  background: var(--app-surface);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.app-phone-screen .app-rate-row {
  border: 1px solid #edf2f7;
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--app-surface);
  box-shadow: none;
}

.app-phone-screen .app-record-row-v3 .app-record-left strong {
  color: #111827;
}

.app-phone-screen .app-record-row-v3 .app-record-right em {
  color: #047857;
  background: #d8f8e6;
  border-radius: 999px;
}

.app-phone-screen .app-record-row-v3 .app-record-right em.ok,
.app-phone-screen .app-record-row-v3 .app-record-right em.app-status-ok {
  color: #047857;
  background: #d8f8e6;
}

.app-phone-screen .app-record-row-v3 .app-record-right em.info,
.app-phone-screen .app-record-row-v3 .app-record-right em.app-status-info {
  color: #1d4ed8;
  background: #dbeafe;
}

.app-phone-screen .app-record-row-v3 .app-record-right em.warn,
.app-phone-screen .app-record-row-v3 .app-record-right em.app-status-warn {
  color: #92400e;
  background: #fef3c7;
}

.app-phone-screen .app-record-row-v3 .app-record-right em.danger,
.app-phone-screen .app-record-row-v3 .app-record-right em.app-status-danger {
  color: #be123c;
  background: #ffe4e6;
}

.app-phone-screen .app-record-actions button,
.app-phone-screen .app-record-tabs button,
.app-phone-screen .app-segment button,
.app-phone-screen .app-chip-row button,
.app-phone-screen .app-choice-row button,
.app-phone-screen .app-auth-tabs,
.app-phone-screen .app-sell-stepper button {
  background: #eef2f7;
  color: #334155;
}

.app-phone-screen .app-record-actions button,
.app-phone-screen .app-record-tabs button,
.app-phone-screen .app-segment button,
.app-phone-screen .app-chip-row button,
.app-phone-screen .app-choice-row button,
.app-phone-screen .app-category-tabs button,
.app-phone-screen .app-bottom-nav button,
.app-phone-screen .app-sell-stepper button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-phone-screen .app-record-tabs button.active,
.app-phone-screen .app-segment button.active,
.app-phone-screen .app-chip-row button.active,
.app-phone-screen .app-choice-row button.active,
.app-phone-screen .app-auth-tabs button.active,
.app-phone-screen .app-sell-stepper button.active,
.app-phone-screen .app-sell-stepper button.done {
  color: #fff;
  background: var(--app-primary);
}

.app-phone-screen .app-sell-stepper button.active b,
.app-phone-screen .app-sell-stepper button.done b {
  background: #fff;
  color: var(--app-primary-deep);
}

.app-phone-screen .app-category-dropdown[open] summary,
.app-phone-screen .app-category-picker button.active,
.app-phone-screen .app-account-list .app-wallet-method.active {
  border-color: var(--app-primary);
  background: #f0fdf4;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, .13);
}

.app-phone-screen .app-category-option.active,
.app-phone-screen .app-price-compact,
.app-phone-screen .app-requirement-line strong,
.app-phone-screen .app-draft-row.ready,
.app-phone-screen .app-upload-tile,
.app-phone-screen .app-upload-thumb,
.app-phone-screen .app-secondary-btn,
.app-phone-screen .mini-copy {
  border-color: #bbf7d0;
  background: var(--app-primary-soft);
  color: var(--app-primary-deep);
}

.app-phone-screen .sell-screen .app-price-top-card {
  border-color: #bbf7d0;
  background: linear-gradient(135deg, #d1fae5 0%, #ffffff 78%);
  color: #064e3b;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .07);
}

.app-phone-screen .app-form input,
.app-phone-screen .app-form select,
.app-phone-screen .app-form textarea,
.app-phone-screen .app-full-input input,
.app-phone-screen .app-full-input select,
.app-phone-screen .app-chat-input,
.app-phone-screen .app-payout-fields select,
.app-phone-screen .app-payout-fields input,
.app-phone-screen .app-supplement-fields input,
.app-phone-screen .app-supplement-fields textarea,
.app-phone-screen .app-category-select-card select {
  border: 1px solid var(--app-line);
  background: rgba(255, 255, 255, .92);
  color: var(--app-text);
}

.app-phone-screen .app-form input:focus,
.app-phone-screen .app-form select:focus,
.app-phone-screen .app-form textarea:focus,
.app-phone-screen .app-full-input input:focus,
.app-phone-screen .app-full-input select:focus,
.app-phone-screen .app-chat-input:focus,
.app-phone-screen .app-category-select-card select:focus {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .14);
  outline: none;
}

.app-phone-screen .app-chat-screen,
.app-phone-screen .app-chat-page {
  background: linear-gradient(180deg, #9cf6bd 0, #f8fafc 180px, #f8fafc 100%);
}

.app-phone-screen .app-chat-card {
  background: rgba(255, 255, 255, .48);
  box-shadow: none;
}

.app-phone-screen .app-chat-bubble,
.app-phone-screen .chat-bubble,
.app-phone-screen .app-chat-bubble.agent {
  color: var(--app-text);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 5px 14px rgba(15, 23, 42, .06);
}

.app-phone-screen .app-chat-bubble.customer,
.app-phone-screen .app-chat-bubble.mine {
  justify-self: end;
  color: #064e3b;
  background: #ecfdf5;
}

.app-phone-screen .app-status-ok {
  color: #047857;
  background: #d8f8e6;
}

.app-phone-screen .app-status-info {
  color: #1d4ed8;
  background: #dbeafe;
}

.app-phone-screen .app-status-warn {
  color: #92400e;
  background: #fef3c7;
}

.app-phone-screen .app-status-danger {
  color: #be123c;
  background: #ffe4e6;
}

.app-phone-screen .app-order-detail-page {
  background: linear-gradient(180deg, #9cf6bd 0, #f8fafc 180px, #f8fafc 100%);
}

.app-phone-screen .app-order-top-shell {
  --order-accent: #2563eb;
  --order-border: #dbeafe;
  --order-card-bg: #eef6ff;
  --order-card-bg-end: #ffffff;
  --order-metric-bg: #eaf3ff;
  --order-metric-bg-end: #f8fbff;
  --order-surface: #e9f2ff;
  --order-surface-mid: #f4f8ff;
  --order-surface-end: #ffffff;
  border-bottom: 0;
  background: transparent;
}

.app-phone-screen .app-order-top-shell.order-tone-info {
  --order-accent: #2563eb;
  --order-border: #bfdbfe;
  --order-card-bg: #e8f2ff;
  --order-card-bg-end: #ffffff;
  --order-metric-bg: #eaf3ff;
  --order-metric-bg-end: #f8fbff;
  --order-surface: #dcecff;
  --order-surface-mid: #f4f8ff;
  --order-surface-end: #ffffff;
}

.app-phone-screen .app-order-detail-page .app-order-hero-card {
  border: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, .96) 0%, var(--order-card-bg) 68%, var(--order-card-bg-end) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .66), 0 8px 18px rgba(15, 23, 42, .06);
}

.app-phone-screen .app-order-hero-metrics div {
  background: linear-gradient(180deg, var(--order-metric-bg) 0%, var(--order-metric-bg-end) 100%);
}

.app-phone-screen .app-hero-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.app-phone-screen .app-hero-actions .app-icon-btn {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, .9);
  color: #0f172a;
  font-size: 12px;
}

.app-phone-screen .app-icon-btn.notice b {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  margin-left: 3px;
  border-radius: 999px;
  background: var(--app-primary);
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.app-phone-screen .app-growth-strip {
  color: #064e3b;
  background: linear-gradient(135deg, #bbf7d0, #f0fdf4);
  box-shadow: none;
}

.app-phone-screen .app-growth-strip > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-phone-screen .app-growth-strip strong,
.app-phone-screen .app-growth-strip span {
  min-width: 0;
  display: block;
}

.app-phone-screen .app-growth-strip span {
  flex-shrink: 0;
  color: #047857;
  text-align: right;
}

.app-phone-screen .app-growth-progress {
  background: rgba(255, 255, 255, .86);
}

.app-phone-screen .app-growth-progress span {
  background: linear-gradient(90deg, var(--app-primary), var(--app-primary-2));
}
