: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);
}

.support-center-layout { display: grid; grid-template-columns: minmax(260px, 34%) 1fr; gap: 16px; min-height: 560px; }
.support-conversation-list { border: 1px solid var(--border); border-radius: 12px; overflow: auto; background: var(--surface, #fff); }
.support-conversation-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; padding: 14px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.support-conversation-row.active { background: rgba(16, 185, 129, .1); box-shadow: inset 3px 0 #10b981; }
.support-conversation-row span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.support-conversation-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted, #64748b); }
.support-conversation-row em { align-self: flex-start; padding: 2px 7px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-style: normal; font-size: 12px; }
.support-thread { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.support-thread > header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.support-thread > header div { display: flex; flex-direction: column; gap: 3px; }
.support-thread > header small { color: var(--muted, #64748b); }
.support-message-list { flex: 1; min-height: 360px; max-height: 560px; padding: 16px; overflow: auto; background: rgba(148, 163, 184, .06); }
.support-message { max-width: 78%; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface, #fff); }
.support-message.staff { margin-left: auto; background: rgba(16, 185, 129, .1); }
.support-message > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.support-message time { color: var(--muted, #64748b); }
.support-message p { margin: 7px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-message-attachment img { display: block; max-width: 240px; max-height: 240px; margin-top: 9px; border-radius: 8px; object-fit: contain; }
.support-reply { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px; border-top: 1px solid var(--border); }
.support-reply textarea { resize: vertical; }
@media (max-width: 860px) { .support-center-layout { grid-template-columns: 1fr; } .support-conversation-list { max-height: 260px; } }

* {
  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;
}

body.supplier-web-entry #roleSelectLabel,
body.supplier-staff-session #roleSelectLabel,
body.supplier-web-entry .nav-tools {
  display: none !important;
}

body.supplier-web-entry .brand-mark {
  background: #14804a;
}

body.staff-auth-required {
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #eef7f2 0%, #f8fafc 48%, #eef2ff 100%);
}

body.staff-auth-required .app-shell {
  display: none;
}

.staff-auth-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.staff-auth-view[hidden] {
  display: none !important;
}

.staff-auth-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.staff-auth-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.staff-auth-brand span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #14804a;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.staff-auth-brand strong,
.staff-auth-brand small {
  display: block;
}

.staff-auth-brand strong {
  font-size: 20px;
}

.staff-auth-brand small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.staff-auth-card label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: #344054;
  font-weight: 700;
}

.staff-auth-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 10px;
  background: #eef2f6;
}

.staff-auth-modes button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667085;
  font-weight: 700;
  cursor: pointer;
}

.staff-auth-modes button.active {
  background: #fff;
  color: #14804a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.staff-auth-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.staff-auth-code-row .secondary-btn {
  min-width: 112px;
}

.staff-auth-info {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ecfdf3;
  color: #027a48;
  font-size: 13px;
}

.staff-auth-card input {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  outline: none;
  background: #fff;
}

.staff-auth-card input:focus {
  border-color: #14804a;
  box-shadow: 0 0 0 3px rgba(20, 128, 74, 0.12);
}

.staff-auth-submit {
  width: 100%;
  height: 44px;
  margin-top: 18px;
}

.staff-auth-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7ed;
  color: #b45309;
  font-size: 13px;
}

.staff-auth-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.staff-session-pill:empty,
.staff-password-btn[hidden],
.staff-logout-btn[hidden] {
  display: none;
}

.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;
}

.system-health-panel {
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.34);
}

.system-health-panel[hidden] {
  display: none;
}

.system-health-layer {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  color: #d5dbea;
  font-size: 11px;
  line-height: 1.35;
}

.system-health-layer strong {
  color: #fff;
  font-weight: 700;
}

.system-health-layer[data-state="healthy"] strong {
  color: #86efac;
}

.system-health-layer[data-state="degraded"] strong,
.system-health-layer[data-state="expired"] strong {
  color: #fca5a5;
}

.system-health-layer[data-state="checking"] strong {
  color: #fde68a;
}

.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-settlement-page {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 22px;
  min-height: calc(100vh - 118px);
  padding: 0;
  overflow: hidden;
}

.supplier-settlement-page .page-tabs {
  margin: 0 22px;
  padding-top: 18px;
  border-bottom: 1px solid var(--line);
}

.supplier-settlement-page .page-tabs button {
  min-width: 112px;
  padding: 0 8px 12px;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.supplier-settlement-page .page-tabs button.active {
  border-color: var(--primary);
  color: var(--primary);
}

.supplier-settlement-head {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(220px, 1fr);
  gap: 54px;
  align-items: center;
  padding: 0 22px;
}

.supplier-settlement-head select {
  width: 100%;
  min-height: 42px;
  background: #fff;
}

.supplier-settlement-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 10px;
}

.supplier-settlement-metrics > div {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.supplier-settlement-metrics span {
  display: block;
  margin-bottom: 7px;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.supplier-settlement-metrics strong {
  margin-right: 6px;
  font-size: 22px;
  line-height: 1;
}

.supplier-settlement-metrics small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.supplier-settlement-metrics .is-received strong,
.supplier-settlement-metrics .is-prepaid strong {
  color: var(--success);
}

.supplier-settlement-metrics .is-due strong {
  color: #c2410c;
}

.supplier-settlement-workspace + .supplier-settlement-metrics,
.supplier-settlement-metrics + .supplier-settlement-workspace {
  margin-top: 14px;
}

.supplier-settlement-page .supplier-settlement-head .supplier-settlement-metrics {
  margin: 0;
}

.supplier-settlement-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  min-height: 570px;
  border-top: 1px solid var(--line);
}

.supplier-settlement-workspace.is-readonly {
  grid-template-columns: minmax(0, 1fr);
}

.supplier-settlement-workspace.is-readonly .supplier-statement-panel {
  grid-column: 1 / -1;
}

.supplier-receipt-panel,
.supplier-statement-panel {
  padding: 20px 22px;
}

.supplier-receipt-panel {
  border-right: 1px solid var(--line);
}

.supplier-receipt-fields,
.supplier-receipt-more-fields {
  display: grid;
  gap: 14px;
}

.supplier-receipt-fields input,
.supplier-receipt-fields select,
.supplier-receipt-more-fields input {
  width: 100%;
  min-height: 40px;
  background: #fff;
}

.supplier-money-input {
  position: relative;
}

.supplier-money-input input {
  padding-right: 58px;
}

.supplier-money-input span {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

.supplier-receipt-more {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.supplier-receipt-more summary {
  padding: 11px 12px;
  color: #344054;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.supplier-receipt-more-fields {
  padding: 2px 12px 12px;
}

.supplier-receipt-submit {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
}

.supplier-statement-panel h3,
.supplier-receipt-panel h3 {
  margin-bottom: 16px;
  font-size: 16px;
}

.supplier-statement-panel .table-wrap {
  border: 1px solid var(--line);
}

.supplier-statement-panel th,
.supplier-statement-panel td {
  height: 48px;
  padding: 13px 16px;
  vertical-align: middle;
}

.supplier-ledger-link {
  padding: 3px 0 0;
  background: transparent;
  color: var(--danger);
  font-size: 12px;
}

.supplier-ledger-link:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.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 .supplier-toggle {
  min-width: auto;
}

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

.supplier-secondary-setting {
  position: relative;
}

.supplier-secondary-setting summary {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.supplier-secondary-setting summary::-webkit-details-marker {
  display: none;
}

.supplier-secondary-setting[open] {
  padding: 0;
}

.supplier-secondary-setting[open] summary {
  background: #eef4ff;
  color: var(--primary);
}

.supplier-secondary-setting[open] > .supplier-toggle {
  position: absolute;
  z-index: 4;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.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;
}

.success-text {
  color: #047857;
}

.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-action-item[data-batch-state="success"] {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.supplier-action-item[data-batch-state="failed"] {
  border-color: #fecaca;
  background: #fff7f7;
}

.supplier-action-result {
  font-weight: 800;
}

.supplier-action-result.success {
  color: #047857;
}

.supplier-action-result.failed {
  color: #b91c1c;
}

.supplier-action-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 12px;
}

.supplier-action-progress progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 7px;
}

.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: 8px;
  margin-bottom: 14px;
}

.supplier-price-workspace {
  display: grid;
  gap: 0;
}

body.admin-ui-system .supplier-price-panel {
  padding: 0;
  overflow: hidden;
}

.supplier-price-admin-context {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}

.supplier-price-mode-tabs {
  display: flex;
  gap: 24px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.supplier-price-mode-tabs button {
  position: relative;
  min-height: 52px;
  padding: 0 3px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.supplier-price-mode-tabs button.active {
  color: var(--primary);
}

.supplier-price-mode-tabs button.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--primary);
  content: "";
}

.supplier-price-workspace > .supplier-price-filters,
.supplier-price-workspace > .supplier-price-assistant,
.supplier-price-workspace > .supplier-price-bulkbar,
.supplier-price-workspace > .supplier-price-table,
.supplier-price-workspace > .supplier-price-export,
.supplier-price-workspace > .supplier-price-export-preview {
  margin-right: 20px;
  margin-left: 20px;
}

.supplier-price-workspace > .supplier-price-filters {
  margin-top: 18px;
}

.supplier-price-bulkbar,
.supplier-price-export,
.supplier-price-savebar {
  display: flex;
  align-items: center;
  gap: 14px;
}

.supplier-price-bulkbar {
  justify-content: flex-start;
  min-height: 44px;
  padding: 0 2px;
}

.supplier-price-bulkbar .button-row {
  margin-left: auto;
}

.supplier-price-table {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
}

.supplier-price-table table {
  min-width: 900px;
}

.supplier-price-table th,
.supplier-price-table td {
  padding: 10px 12px;
  vertical-align: middle;
}

.supplier-price-table thead tr:first-child th {
  border-bottom-color: #edf0f5;
}

.supplier-price-table .price-group-heading {
  text-align: center;
}

.supplier-price-table .supplier-current-price {
  color: #475467;
  font-variant-numeric: tabular-nums;
}

.supplier-new-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.supplier-new-price > span {
  color: #98a2b3;
}

.supplier-new-price .mini-input {
  width: 96px;
  border-color: #b8c6db;
  background: #fff;
  font-weight: 700;
}

.supplier-price-table tr.price-row-changed td {
  background: #f5f9ff;
}

.supplier-price-table tr.price-row-changed .mini-input {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .08);
}

.supplier-price-export {
  flex-wrap: wrap;
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.supplier-price-export > div:first-child {
  display: grid;
  gap: 3px;
  margin-right: auto;
}

.supplier-template-options {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.supplier-template-options button {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
}

.supplier-template-options button.active {
  color: var(--primary);
  background: #eaf1ff;
  font-weight: 700;
}

.supplier-price-savebar {
  position: sticky;
  bottom: 0;
  z-index: 4;
  justify-content: flex-end;
  min-height: 66px;
  padding: 10px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -6px 18px rgba(15, 23, 42, .05);
  backdrop-filter: blur(8px);
}

.supplier-price-savebar > div {
  display: flex;
  gap: 8px;
}

.supplier-price-assistant {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.supplier-price-assistant textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
}

.supplier-price-assistant .table-wrap {
  max-height: 420px;
}

.supplier-price-assistant pre {
  margin: 8px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
}

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

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

@media (max-width: 1100px) {
  .supplier-price-filters {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .supplier-price-filters .filter-actions {
    align-self: end;
  }

  .supplier-price-export {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .supplier-price-filters {
    grid-template-columns: 1fr;
  }

  .supplier-price-bulkbar,
  .supplier-price-export,
  .supplier-price-savebar {
    align-items: stretch;
    flex-direction: column;
  }

  .supplier-price-bulkbar .button-row,
  .supplier-price-export > div:first-child {
    margin-left: 0;
  }

  .supplier-price-savebar > div,
  .supplier-price-savebar button {
    width: 100%;
  }
}

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

.inline-check input[type="checkbox"],
.inline-check input[type="radio"],
.supplier-profile-bulk-row input[type="checkbox"],
[data-supplier-profile-select],
[data-supplier-price-select],
[data-supplier-price-select-all] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  margin: 0;
}

.supplier-toggle {
  display: inline-grid;
  grid-template-columns: auto 42px auto;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.supplier-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.supplier-toggle i {
  position: relative;
  width: 42px;
  height: 24px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #e5e7eb;
  transition: .16s ease;
}

.supplier-toggle i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
  transition: .16s ease;
}

.supplier-toggle input:checked + i {
  border-color: #16a34a;
  background: #22c55e;
}

.supplier-toggle input:checked + i::after {
  transform: translateX(18px);
}

.supplier-toggle em {
  min-width: 26px;
  color: var(--muted);
  font-style: normal;
}

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

.supplier-quote-card.selectable {
  width: auto;
  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-quantity-field {
  display: grid;
  gap: 3px;
}

.workbench-quantity-stepper {
  display: grid;
  grid-template-columns: 18px 3ch 18px;
  align-items: stretch;
  width: max-content;
  min-height: 29px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.workbench-quantity-stepper input {
  min-width: 0;
  min-height: 29px;
  padding: 4px 2px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
}

.workbench-quantity-stepper input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: -2px;
}

.quantity-step-btn {
  min-width: 18px;
  min-height: 29px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f8fafc;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.quantity-step-btn:hover {
  background: #eef4ff;
  color: var(--primary);
}

.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-order-toolbar {
  align-items: flex-start;
}

.workbench-order-toolbar-actions,
.workbench-order-scope {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.workbench-order-toolbar-actions {
  flex: 1;
}

.workbench-order-scope {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.workbench-order-scope .scope-tabs {
  gap: 4px;
}

.workbench-order-scope .scope-tabs button {
  padding: 5px 8px;
  font-size: 12px;
}

.workbench-employee-filter {
  min-width: 150px;
  margin: 0;
  gap: 2px;
  font-size: 11px;
}

.workbench-employee-filter select {
  min-height: 28px;
  padding: 3px 7px;
}

.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.disabled {
  background: #f8fafc;
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.72;
}

.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;
}

.dispatch-modal-error {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
}

.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%);
}

.admin-order-detail-modal {
  width: min(900px, 100%);
}

.order-detail-link {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  text-align: left;
  box-shadow: none;
}

.order-detail-link:hover {
  text-decoration: underline;
}

.admin-order-items {
  gap: 8px;
}

.admin-order-item {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.admin-order-item > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-order-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.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: flex;
  gap: 4px;
  margin-top: 4px;
  padding: 2px 2px 6px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

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

.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;
}

.searchable-select {
  position: relative;
  display: grid;
  gap: 5px;
  align-content: start;
}

.searchable-select span {
  color: var(--muted);
  font-size: 12px;
}

.searchable-select input[type="text"] {
  min-height: 34px;
  padding: 6px 9px;
  background: #fff;
}

.combo-options {
  position: absolute;
  z-index: 60;
  top: calc(100% + 3px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 220px;
  overflow: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.combo-options[hidden] {
  display: none;
}

.combo-options button {
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.combo-options button:hover {
  background: #eef4ff;
  color: var(--primary);
}

.combo-options.is-empty::after {
  content: "没有匹配选项";
  padding: 8px;
  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-list-page .table-actions {
  min-width: 310px;
}

.activity-list-page .table-actions .small-btn {
  margin: 2px 3px 2px 0;
}

.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;
}

.bulk-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
}

.bulk-action-bar .form-help {
  flex: 1;
  min-width: 220px;
}

.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);
}

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

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

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

.staff-password-modal {
  width: min(560px, 100%);
}

.confirm-dialog-modal {
  width: min(520px, 100%);
  padding: 18px;
}

.confirm-dialog-message {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.confirm-dialog-list {
  margin: 12px 0 0;
  padding: 10px 12px 10px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f8fafc;
  line-height: 1.6;
}

.failure-phrase-editor {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.failure-phrase-editor .section-toolbar {
  align-items: flex-start;
  margin-bottom: 10px;
}

.failure-phrase-editor .form-help {
  padding: 0;
  border: 0;
  background: transparent;
}

.failure-phrase-list {
  display: grid;
  gap: 10px;
}

.failure-phrase-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 86px auto auto auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.failure-phrase-text textarea {
  min-height: 58px;
}

.failure-phrase-check {
  display: flex;
  align-items: center;
  min-height: 38px;
  color: var(--text);
}

.failure-phrase-check input {
  width: auto;
}

.failure-phrase-actions {
  display: flex;
  gap: 6px;
}

.failure-phrase-empty {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}

.customer-failure-quick-phrases {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
}

.customer-failure-quick-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: 13px;
}

.customer-failure-quick-heading span {
  color: var(--muted);
  font-size: 12px;
}

.customer-failure-quick-list {
  display: grid;
  gap: 8px;
}

.customer-failure-quick-btn {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  color: #1e3a8a;
  background: #fff;
  text-align: left;
  line-height: 1.45;
}

.customer-failure-quick-btn:hover,
.customer-failure-quick-btn.selected {
  border-color: #2563eb;
  background: #dbeafe;
}

.customer-failure-quick-btn.is-default span {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 2px 6px;
  border-radius: 999px;
  color: #fff;
  background: #2563eb;
  font-size: 11px;
}

.confirm-dialog-error {
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  background: #fef2f2;
  font-size: 13px;
  line-height: 1.5;
}

.confirm-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 780px) {
  .failure-phrase-row {
    grid-template-columns: 1fr 86px;
  }

  .failure-phrase-text,
  .failure-phrase-actions {
    grid-column: 1 / -1;
  }
}

.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;
}

table input[type="checkbox"],
table input[type="radio"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  margin: 0;
  vertical-align: middle;
}

.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 {
    scroll-padding-inline: 2px;
  }
}

@media (max-width: 980px) {
  .supplier-settlement-head,
  .supplier-settlement-workspace {
    grid-template-columns: 1fr;
  }

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

  .supplier-settlement-head {
    gap: 16px;
  }

  .supplier-receipt-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .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 {
    scroll-padding-inline: 2px;
  }

  .supplier-quote-card {
    flex: 0 0 calc((100% - 8px) / 3);
    max-width: calc((100% - 8px) / 3);
  }
}

.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-badge.compact {
  min-height: 20px;
  padding: 1px 7px;
  font-size: 11px;
}

.vip-op-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.vip-op-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 850;
}

.vip-op-badge.priority {
  border: 1px solid #fde68a;
  color: #92400e;
  background: #fffbeb;
}

.vip-op-badge.support {
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.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 80px 96px 82px 82px 220px;
  gap: 8px;
  align-items: center;
  min-width: 1260px;
}

.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-upgrade-coupon-packs {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.growth-coupon-pack-editor {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px;
}

.growth-coupon-pack-table {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.growth-coupon-pack-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) minmax(250px, 1.8fr) 82px 96px 52px;
  gap: 6px;
  align-items: center;
  min-width: 760px;
}

.growth-coupon-pack-row.spec-head {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  padding: 0 4px;
}

.growth-coupon-pack-row select,
.growth-coupon-pack-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  font-size: 13px;
}

.coupon-template-rule {
  display: flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  padding: 7px 10px;
  color: #475569;
  background: #fff;
  font-size: 12px;
  line-height: 1.35;
}

.coupon-template-rule.form-value {
  margin-top: 6px;
}

.growth-coupon-pack-remove {
  width: 36px;
  height: 36px;
  justify-self: center;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff;
  color: #b91c1c;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.growth-coupon-pack-remove:hover {
  border-color: #ef4444;
  background: #fef2f2;
}

/* ADMIN-003: progressive customer VIP configuration */
.vip-policy-workspace {
  --vip-accent: #087a4b;
  --vip-accent-soft: #eaf8f0;
  --vip-canvas: #f4f7fa;
  --vip-border: #dde5ec;
  display: grid;
  gap: 16px;
  margin: -16px;
  padding: 24px;
  background: var(--vip-canvas);
}

.vip-policy-workspace [hidden] {
  display: none !important;
}

.vip-page-heading,
.vip-section-heading,
.vip-package-notice,
.vip-recommended-package,
.vip-settlement-actions,
.vip-unsaved-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vip-page-heading h2,
.vip-section-heading h3,
.vip-tier-detail h3,
.vip-tier-detail h4,
.vip-recent-rewards h4 {
  margin: 0;
}

.vip-page-heading p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
}

.vip-sync-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 13px;
  color: #067647;
  background: #eaf8f0;
  font-size: 12px;
  font-weight: 800;
}

.vip-sync-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10a363;
}

.vip-sync-state.pending {
  color: #9a5b07;
  background: #fff4dc;
}

.vip-sync-state.pending i {
  background: #d97706;
}

.vip-policy-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--vip-border);
}

.vip-policy-tabs button {
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 16px;
  color: #64748b;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.vip-policy-tabs button:hover,
.vip-policy-tabs button.active {
  border-bottom-color: var(--vip-accent);
  color: var(--vip-accent);
  background: #eef8f3;
}

.vip-tab-panel {
  display: grid;
  gap: 16px;
}

.vip-content-card,
.vip-package-matrix {
  border: 1px solid var(--vip-border);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}

.vip-section-heading {
  align-items: flex-start;
  margin-bottom: 14px;
}

.vip-section-heading .form-help {
  display: block;
  margin-top: 4px;
}

.vip-link-button {
  min-height: 34px;
  border: 0;
  padding: 0 4px;
  color: var(--vip-accent);
  background: transparent;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

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

.vip-metric-grid article {
  display: grid;
  gap: 5px;
  min-height: 116px;
  border: 1px solid var(--vip-border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.vip-metric-grid article span,
.vip-metric-grid article small {
  color: #64748b;
  font-size: 12px;
}

.vip-metric-grid article strong {
  align-self: end;
  color: #132238;
  font-size: 28px;
  line-height: 1;
}

.vip-rule-grid {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.vip-overview-tier-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--vip-border);
  border-radius: 10px;
}

.vip-overview-tier-table button {
  display: grid;
  grid-template-columns: 72px minmax(120px, .8fr) minmax(110px, .8fr) 90px minmax(180px, 1.6fr) 50px;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  padding: 8px 12px;
  color: #344054;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.vip-overview-tier-table button:last-child {
  border-bottom: 0;
}

.vip-overview-tier-table button:hover {
  background: #f7fbf9;
}

.vip-overview-tier-table em {
  color: var(--vip-accent);
  font-style: normal;
  font-weight: 800;
}

.vip-tier-workspace {
  display: grid;
  grid-template-columns: minmax(470px, 1fr) minmax(360px, .75fr);
  gap: 16px;
  align-items: start;
}

.vip-tier-summary-list,
.vip-tier-drawer {
  display: grid;
  gap: 8px;
}

.vip-tier-summary-card {
  display: grid;
  grid-template-columns: 8px minmax(118px, .9fr) minmax(92px, .75fr) 84px minmax(130px, 1.2fr) 58px;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  border: 1px solid var(--vip-border);
  border-radius: 12px;
  padding: 10px 12px;
  color: #334155;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.vip-tier-summary-card:hover,
.vip-tier-summary-card.active {
  border-color: #71c79d;
  box-shadow: 0 0 0 2px rgba(8, 122, 75, .08);
}

.vip-tier-summary-card.active {
  background: #f4fbf7;
}

.vip-tier-color {
  width: 8px;
  height: 40px;
  border-radius: 999px;
  background: var(--vip-tier-color);
}

.vip-tier-summary-main,
.vip-tier-summary-metric {
  display: grid;
  gap: 4px;
}

.vip-tier-summary-main small,
.vip-tier-summary-metric small,
.vip-tier-summary-services {
  color: #64748b;
  font-size: 11px;
}

.vip-tier-summary-action {
  color: var(--vip-accent);
  font-size: 12px;
  font-weight: 850;
}

.vip-tier-drawer {
  position: sticky;
  top: 16px;
}

.vip-tier-detail {
  max-height: calc(100vh - 160px);
  overflow: auto;
  border: 1px solid var(--vip-border);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}

.vip-eyebrow {
  color: var(--vip-accent);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.vip-detail-group {
  border-top: 1px solid #edf1f5;
  margin-top: 16px;
  padding-top: 14px;
}

.vip-detail-group h4 {
  margin-bottom: 10px;
  color: #344054;
  font-size: 13px;
}

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

.vip-package-notice,
.vip-recommended-package {
  border: 1px solid #cbe8d8;
  border-radius: 12px;
  padding: 13px 16px;
  color: #17603f;
  background: #edf9f2;
  font-size: 12px;
}

.vip-package-list {
  display: grid;
  border: 1px solid var(--vip-border);
  border-radius: 10px;
  overflow: hidden;
}

.vip-package-row {
  background: #fff;
}

.vip-package-row + .vip-package-row {
  border-top: 1px solid #edf1f5;
}

.vip-package-row > summary {
  display: grid;
  grid-template-columns: minmax(130px, .7fr) minmax(280px, 1.8fr) 92px 46px;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 8px 12px;
  cursor: pointer;
  list-style: none;
}

.vip-package-row > summary::-webkit-details-marker {
  display: none;
}

.vip-package-row > summary:hover {
  background: #f8fbfa;
}

.vip-package-row > summary > span:first-child {
  display: grid;
  gap: 2px;
}

.vip-package-row > summary small,
.vip-package-summary {
  color: #64748b;
  font-size: 11px;
}

.vip-package-summary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-package-count {
  color: #a15c05;
  font-size: 11px;
  font-weight: 800;
}

.vip-package-count.configured,
.vip-package-edit {
  color: var(--vip-accent);
}

.vip-package-edit {
  font-size: 12px;
  font-weight: 850;
}

.vip-package-row .growth-coupon-pack-editor {
  border: 0;
  border-top: 1px solid var(--vip-border);
  border-radius: 0;
  margin: 0;
  padding: 14px;
  background: #f8fafc;
}

.vip-recommended-package > div {
  display: grid;
  gap: 4px;
}

.vip-settlement-grid,
.vip-settlement-outcome {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.vip-settlement-grid > label,
.vip-settlement-grid > div,
.vip-settlement-outcome span {
  display: grid;
  gap: 5px;
  min-height: 76px;
  border-radius: 10px;
  padding: 12px;
  color: #64748b;
  background: #f5f7f9;
  font-size: 12px;
}

.vip-settlement-grid strong,
.vip-settlement-outcome strong {
  color: #1f2937;
  font-size: 16px;
}

.vip-settlement-actions {
  margin-top: 14px;
}

.vip-recent-rewards {
  margin-top: 18px;
}

.vip-recent-rewards h4 {
  margin-bottom: 10px;
}

.vip-unsaved-bar {
  position: sticky;
  z-index: 30;
  bottom: 12px;
  border: 1px solid #b8dfc8;
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .16);
  backdrop-filter: blur(10px);
}

.vip-unsaved-bar > div {
  display: grid;
  gap: 3px;
}

.vip-unsaved-bar span {
  color: #64748b;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .vip-metric-grid,
  .vip-settlement-grid,
  .vip-settlement-outcome {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vip-tier-workspace {
    grid-template-columns: 1fr;
  }

  .vip-tier-drawer {
    position: static;
  }

  .vip-tier-detail {
    max-height: none;
  }
}

@media (max-width: 760px) {
  .vip-policy-workspace {
    margin: -10px;
    padding: 14px;
  }

  .vip-policy-tabs {
    overflow-x: auto;
  }

  .vip-policy-tabs button {
    flex: 0 0 auto;
  }

  .vip-metric-grid,
  .vip-rule-grid,
  .vip-detail-grid,
  .vip-settlement-grid,
  .vip-settlement-outcome {
    grid-template-columns: 1fr;
  }

  .vip-overview-tier-table button,
  .vip-tier-summary-card {
    grid-template-columns: 8px minmax(110px, 1fr) 100px 54px;
  }

  .vip-tier-summary-metric:nth-of-type(2),
  .vip-tier-summary-services,
  .vip-overview-tier-table button span:nth-of-type(3),
  .vip-overview-tier-table button span:nth-of-type(4) {
    display: none;
  }

  .vip-package-row > summary {
    grid-template-columns: 110px minmax(140px, 1fr) 70px;
  }

  .vip-package-edit {
    display: none;
  }

  .vip-page-heading,
  .vip-package-notice,
  .vip-recommended-package,
  .vip-settlement-actions,
  .vip-unsaved-bar {
    align-items: stretch;
    flex-direction: column;
  }
}

.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 170px 210px 70px 76px 72px 92px 96px 96px;
  gap: 7px;
  align-items: center;
  min-width: 1510px;
}

.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 .coupon-template-rule {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 11px;
}

.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));
}

/* ADMIN-015: selected desktop admin visual system (Product Design option 2). */
body.admin-ui-system {
  --bg: #f7f9fc;
  --panel: #ffffff;
  --text: #172033;
  --muted: #687386;
  --line: #e3e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #16934f;
  --danger: #d04a13;
  --warning: #a86a08;
  --shadow: none;
  background: var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body.admin-ui-system .app-shell {
  grid-template-columns: 240px minmax(0, 1fr);
}

body.admin-ui-system .sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0 12px 14px;
  overflow: hidden;
  background: #101c31;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.32) transparent;
}

body.admin-ui-system .brand {
  min-height: 70px;
  padding: 0 12px;
  margin: 0 -1px 6px;
  gap: 9px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

body.admin-ui-system .brand-mark {
  display: none;
}

body.admin-ui-system .brand-mark > span {
  display: none;
}

body.admin-ui-system .brand strong {
  font-size: 17px;
  font-style: italic;
  letter-spacing: -0.035em;
}

body.admin-ui-system .brand > div:last-child > span {
  display: none;
}

body.admin-ui-system .brand strong span {
  display: inline;
  color: #2f6fff;
}

body.admin-ui-system .nav {
  gap: 3px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.32) transparent;
}

body.admin-ui-system .nav-tools {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 0 8px;
}

body.admin-ui-system .nav-tools button {
  min-height: 26px;
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.035);
  color: #9eacc0;
  font-size: 11px;
}

body.admin-ui-system .nav-group {
  gap: 2px;
  padding: 5px 0 8px;
  border-color: rgba(148, 163, 184, 0.12);
}

body.admin-ui-system .nav-group-title {
  min-height: 24px;
  padding: 3px 8px;
  color: #8190a7;
  font-size: 11px;
  font-weight: 600;
}

body.admin-ui-system .nav-group-title b {
  color: #66758c;
  font-weight: 500;
}

body.admin-ui-system .nav-submenu {
  gap: 2px;
}

body.admin-ui-system .nav-submenu button {
  min-height: 32px;
  padding: 6px 9px;
  gap: 10px;
  border-radius: 7px;
  color: #d1d9e6;
  font-size: 13px;
}

body.admin-ui-system .nav-submenu button i {
  width: 17px;
  color: #aab7c9;
  font-size: 15px;
  text-align: center;
}

body.admin-ui-system .nav-submenu button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-ui-system .nav-submenu button:hover {
  background: rgba(255, 255, 255, 0.07);
}

body.admin-ui-system .nav-submenu button.active {
  background: linear-gradient(90deg, #245ddc, #2e68e9);
  box-shadow: inset 3px 0 0 #72a0ff;
}

body.admin-ui-system .nav-submenu button.active i {
  color: #8fb0ff;
}

body.admin-ui-system .sidebar-foot {
  gap: 6px;
  padding-top: 12px;
}

body.admin-ui-system .sidebar-foot .ghost-btn {
  min-height: 31px;
  padding: 5px 9px;
  border-color: rgba(148, 163, 184, 0.15);
  color: #aeb9c8;
  font-size: 11px;
}

body.admin-ui-system .system-health-panel {
  padding: 7px;
  border-color: rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.2);
}

body.admin-ui-system .main {
  padding: 0;
  background: var(--bg);
}

body.admin-ui-system .topbar {
  min-height: 120px;
  padding: 25px 26px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

body.admin-ui-system .topbar h1 {
  color: #111827;
  font-size: 26px;
  letter-spacing: -0.03em;
}

body.admin-ui-system .topbar p {
  margin-top: 5px;
  font-size: 13px;
}

body.admin-ui-system .top-actions {
  gap: 0;
  color: #425066;
}

body.admin-ui-system .top-actions > * {
  min-height: 34px;
  padding: 0 14px;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
}

body.admin-ui-system .top-actions > *:first-child {
  border-left: 0;
}

body.admin-ui-system .top-actions label {
  display: flex;
  grid-template-columns: auto minmax(104px, auto);
  align-items: center;
  gap: 7px;
}

body.admin-ui-system .top-actions select {
  width: auto;
  min-width: 116px;
  min-height: 34px;
  padding: 5px 28px 5px 9px;
  border: 0;
  background-color: #f7f9fc;
}

body.admin-ui-system .top-actions .ghost-btn {
  width: auto;
  color: #425066;
}

body.admin-ui-system #view {
  padding: 20px;
}

body.admin-ui-system .panel {
  padding: 18px;
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: none;
}

body.admin-ui-system input,
body.admin-ui-system select,
body.admin-ui-system textarea {
  min-height: 40px;
  padding: 8px 11px;
  border-color: #d9e0ea;
  border-radius: 7px;
  outline: none;
}

body.admin-ui-system input:focus,
body.admin-ui-system select:focus,
body.admin-ui-system textarea:focus {
  border-color: #7397f5;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

body.admin-ui-system label {
  gap: 7px;
  color: #596579;
  font-size: 13px;
  font-weight: 500;
}

body.admin-ui-system .primary-btn,
body.admin-ui-system .secondary-btn,
body.admin-ui-system .danger-btn,
body.admin-ui-system .success-btn,
body.admin-ui-system .warning-btn {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 7px;
  font-weight: 600;
}

body.admin-ui-system .secondary-btn {
  border: 1px solid #dce3ec;
  background: #f7f9fc;
}

body.admin-ui-system .table-wrap {
  border: 1px solid var(--line);
  border-radius: 7px;
}

body.admin-ui-system table {
  font-size: 13px;
}

body.admin-ui-system th,
body.admin-ui-system td {
  height: 48px;
  padding: 12px 14px;
  vertical-align: middle;
}

body.admin-ui-system th {
  background: #f7f9fc;
  color: #4a5669;
  font-size: 12px;
  font-weight: 700;
}

body.admin-ui-system .module-tabs {
  gap: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

body.admin-ui-system .module-tabs button {
  padding: 8px 2px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
}

body.admin-ui-system .module-tabs button.active,
body.admin-ui-system .module-tabs button:hover {
  border-color: var(--primary);
  background: transparent;
  color: var(--primary);
}

body.admin-ui-system .modal {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}

body.admin-ui-system[data-view="supplierSettlements"] #view {
  padding: 0;
}

body.admin-ui-system .supplier-settlement-page {
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 120px);
  border: 0;
  border-radius: 0;
}

body.admin-ui-system .supplier-settlement-page .page-tabs {
  margin: 0;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
}

body.admin-ui-system .supplier-settlement-page .page-tabs button {
  min-height: 64px;
  padding: 0 15px;
}

body.admin-ui-system .supplier-settlement-head {
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 30px;
  min-height: 150px;
  margin: 24px 26px 34px;
  padding: 34px 24px;
  border: 1px solid #dfe6f0;
  border-radius: 8px;
  background: #f8faff;
}

body.admin-ui-system .supplier-settlement-head select {
  min-height: 42px;
}

body.admin-ui-system .supplier-settlement-metrics {
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 0;
}

body.admin-ui-system .supplier-settlement-metrics > div {
  padding: 3px 28px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

body.admin-ui-system .supplier-settlement-metrics > div:first-child {
  border-left: 0;
}

body.admin-ui-system .supplier-settlement-metrics span {
  margin-bottom: 10px;
  color: #667085;
  font-size: 14px;
  font-weight: 600;
}

body.admin-ui-system .supplier-settlement-metrics strong {
  font-size: 32px;
  letter-spacing: -0.02em;
}

body.admin-ui-system .supplier-settlement-workspace {
  grid-template-columns: minmax(310px, 0.46fr) minmax(0, 1fr);
  min-height: 570px;
  border-top: 0;
}

body.admin-ui-system .supplier-statement-panel {
  grid-column: 2;
  grid-row: 1;
  padding: 0 26px 24px 20px;
}

body.admin-ui-system .supplier-receipt-panel {
  grid-column: 1;
  grid-row: 1;
  padding: 0 24px 24px 26px;
  border-right: 1px solid var(--line);
  border-left: 0;
}

body.admin-ui-system .supplier-statement-panel h3,
body.admin-ui-system .supplier-receipt-panel h3 {
  margin-bottom: 18px;
  font-size: 18px;
}

body.admin-ui-system .supplier-receipt-fields,
body.admin-ui-system .supplier-receipt-more-fields {
  gap: 19px;
}

body.admin-ui-system .supplier-receipt-more {
  margin-top: 18px;
  border-color: var(--line);
}

body.admin-ui-system .supplier-receipt-submit {
  min-height: 46px;
  margin-top: 20px;
}

body.admin-ui-system .supplier-statement-panel .table-wrap {
  border-color: var(--line);
}

body.admin-ui-system .supplier-statement-panel th,
body.admin-ui-system .supplier-statement-panel td {
  height: 52px;
  padding: 14px 16px;
}

@media (max-width: 1180px) {
  body.admin-ui-system .topbar {
    align-items: flex-start;
  }

  body.admin-ui-system .top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  body.admin-ui-system .supplier-settlement-head {
    grid-template-columns: 1fr;
  }
}

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

  body.admin-ui-system .sidebar {
    position: relative;
    height: auto;
  }

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

  body.admin-ui-system .topbar {
    padding: 20px;
  }

  body.admin-ui-system #view {
    padding: 16px;
  }

  body.admin-ui-system .supplier-settlement-workspace {
    grid-template-columns: 1fr;
  }

  body.admin-ui-system .supplier-statement-panel {
    grid-column: 1;
    grid-row: 2;
    padding: 20px;
  }

  body.admin-ui-system .supplier-receipt-panel {
    grid-column: 1;
    grid-row: 1;
    padding: 20px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  body.admin-ui-system .supplier-settlement-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body.admin-ui-system .nav,
  body.admin-ui-system .supplier-settlement-metrics {
    grid-template-columns: 1fr;
  }

  body.admin-ui-system .supplier-settlement-metrics > div {
    padding: 10px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  body.admin-ui-system .supplier-settlement-metrics > div:first-child {
    border-top: 0;
  }
}
