:root {
  --bg: #eef3f8;
  --bg-soft: #f7f9fc;
  --panel: rgba(255, 255, 255, .94);
  --panel-solid: #ffffff;
  --text: #172033;
  --muted: #687386;
  --line: #dce4ee;
  --line-strong: #cbd6e4;
  --primary: #1d6fe8;
  --primary-dark: #1357bd;
  --primary-soft: #e8f1ff;
  --danger: #d33b3b;
  --danger-soft: #fff0f0;
  --ok: #16835f;
  --ok-soft: #e9f8f2;
  --warn: #b57608;
  --warn-soft: #fff6df;
  --side: #0f1726;
  --side-2: #162237;
  --customer-primary: #1d6fe8;
  --customer-primary-dark: #0756d5;
  --customer-sidebar-end: #0045b7;
  --customer-accent: #18a0c8;
  --customer-bg: #f6f9ff;
  --customer-panel: #ffffff;
  --shadow: 0 18px 45px rgba(21, 32, 54, .10);
  --shadow-soft: 0 8px 24px rgba(21, 32, 54, .07);
}

/* Multi-organization workspace */
.organization-scope-select,
.organization-scope-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #d8e3f1;
  border-radius: 12px;
  color: #526079;
  background: #f8fbff;
  font-size: 13px;
  font-weight: 700;
}

.organization-scope-select select {
  min-width: 150px;
  padding: 7px 30px 7px 10px;
  border: 0;
  color: #0d2550;
  background: #fff;
  font-weight: 800;
}

.organization-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.organization-overview-grid > article {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid #dbe6f4;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #f5f9ff);
  box-shadow: 0 10px 30px rgba(35, 67, 118, .07);
}

.organization-overview-grid > article::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(33, 111, 255, .08);
}

.organization-overview-grid span,
.organization-overview-grid small {
  display: block;
  color: #71809a;
}

.organization-overview-grid strong {
  display: block;
  margin: 8px 0 4px;
  color: #11284e;
  font-size: 27px;
}

.organization-create-panel,
.organization-list-panel {
  margin-bottom: 18px;
}

.organization-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.organization-card {
  padding: 20px;
  border: 1px solid #dce6f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(27, 56, 103, .06);
}

.organization-card.is-disabled {
  opacity: .66;
  background: #f5f7fa;
}

.organization-card-head,
.organization-owner,
.organization-member-add,
.organization-owner-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.organization-card-head h3 {
  margin: 4px 0 0;
  color: #10264a;
  font-size: 20px;
}

.organization-card-head > div > span,
.organization-owner span {
  color: #77859c;
  font-size: 12px;
  font-weight: 700;
}

.organization-card > p {
  min-height: 42px;
  color: #67758e;
}

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

.organization-metrics > div {
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  background: #f5f8fd;
}

.organization-metrics span,
.organization-metrics b {
  display: block;
}

.organization-metrics span {
  margin-bottom: 4px;
  color: #7a879c;
  font-size: 11px;
}

.organization-metrics b {
  color: #132d58;
}

.organization-owner {
  margin-bottom: 15px;
  padding: 11px 12px;
  border: 1px dashed #d5dfed;
  border-radius: 12px;
}

.organization-members-modal {
  max-width: 980px;
}

.organization-account-backdrop {
  padding: 18px;
}

.modal-card.organization-account-modal {
  display: flex;
  width: min(1540px, calc(100vw - 28px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
  flex-direction: column;
  border-radius: 22px;
  padding: 0;
  background: #f7f9fd;
  box-shadow: 0 34px 90px rgba(10, 28, 58, .28);
}

.organization-account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid #e1e8f2;
  background:
    radial-gradient(circle at 90% -30%, rgba(29, 111, 232, .16), transparent 38%),
    #fff;
}

.organization-account-head .eyebrow {
  color: #1769dc;
  font-weight: 900;
}

.organization-account-head p {
  margin: 8px 0 0;
}

.organization-account-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.organization-account-title h3 {
  margin: 0;
  color: #10264a;
  font-size: 25px;
}

.organization-account-title > span:not(.badge) {
  padding: 4px 9px;
  border-radius: 8px;
  color: #58708f;
  background: #eef3fa;
  font-size: 12px;
  font-weight: 900;
}

.organization-account-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 28px;
  background: #fff;
}

.organization-account-summary article {
  padding: 13px 16px;
  border: 1px solid #e0e8f3;
  border-radius: 13px;
  background: linear-gradient(145deg, #fff, #f4f8ff);
}

.organization-account-summary span,
.organization-account-summary strong {
  display: block;
}

.organization-account-summary span {
  color: #71809a;
  font-size: 12px;
  font-weight: 700;
}

.organization-account-summary strong {
  margin-top: 5px;
  color: #12366d;
  font-size: 22px;
}

.organization-account-tabs {
  display: flex;
  gap: 7px;
  padding: 0 28px;
  border-bottom: 1px solid #dfe7f2;
  background: #fff;
}

.admin-app .organization-account-tabs button {
  position: relative;
  border: 0;
  border-radius: 10px 10px 0 0;
  padding: 13px 18px;
  color: #67758d;
  background: transparent;
  box-shadow: none;
}

.admin-app .organization-account-tabs button:hover,
.admin-app .organization-account-tabs button.active {
  color: #1266dc;
  background: #edf4ff;
}

.admin-app .organization-account-tabs button.active::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #1d6fe8;
}

.organization-account-body {
  min-height: 460px;
  overflow: auto;
  padding: 22px 28px 28px;
}

.organization-account-error {
  min-height: 0;
  margin: 0;
  padding: 0 28px 18px;
}

.organization-account-form-card,
.organization-account-list-section {
  border: 1px solid #dce6f2;
  border-radius: 17px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(25, 59, 111, .06);
}

.organization-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.organization-section-head h4 {
  margin: 0 0 5px;
  color: #112b55;
  font-size: 18px;
}

.organization-section-head p {
  margin: 0;
  color: #718099;
  font-size: 13px;
}

.organization-process-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #1261cc;
  background: #e9f2ff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.organization-process-tag-purple {
  color: #6943d5;
  background: #f0ebff;
}

.organization-process-tag.warning {
  color: #9c650b;
  background: #fff3d4;
}

.organization-account-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.organization-account-create-grid .field,
.organization-shared-writer-form .field {
  margin: 0;
}

.organization-account-create-grid .field small,
.organization-shared-writer-form .field small {
  display: block;
  margin-top: 6px;
  color: #77859b;
  font-size: 12px;
}

.organization-account-create-grid .span-2 {
  grid-column: span 2;
}

.organization-form-note {
  display: flex;
  gap: 10px;
  border: 1px solid #dbe6f5;
  border-radius: 12px;
  padding: 12px 14px;
  color: #63728a;
  background: #f7faff;
  font-size: 12px;
}

.organization-form-note strong {
  flex: 0 0 auto;
  color: #163867;
}

.organization-account-submit {
  display: flex;
  justify-content: flex-end;
}

.organization-account-submit button {
  min-width: 190px;
}

.organization-shared-writer-form {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, .8fr) auto;
  align-items: end;
  gap: 14px;
}

.organization-shared-writer-form > button {
  min-height: 42px;
  white-space: nowrap;
}

.organization-empty-hint {
  margin-top: 15px;
  border: 1px dashed #d7e1ee;
  border-radius: 12px;
  padding: 18px;
  color: #738198;
  text-align: center;
  background: #f8faff;
}

.organization-account-table {
  max-height: 430px;
}

.organization-account-table table {
  min-width: 1040px;
}

.organization-account-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f7fc;
}

.organization-own-badge {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  color: #277254;
  background: #eaf8f1;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.organization-account-actions {
  min-width: 190px;
  flex-wrap: wrap;
}

.global-account-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 90% 0, rgba(29, 111, 232, .12), transparent 32%),
    #fff;
}

.global-account-guide h3 {
  margin: 4px 0 7px;
}

.global-account-guide p {
  max-width: 900px;
  margin: 0;
}

.global-account-guide > button {
  flex: 0 0 auto;
}

.organization-member-add,
.organization-owner-form {
  justify-content: flex-start;
  margin-bottom: 15px;
  padding: 14px;
  border-radius: 14px;
  background: #f6f9fe;
}

.organization-member-add .field,
.organization-owner-form .field {
  min-width: 260px;
  margin: 0;
  flex: 1;
}

.organization-inline-badge,
.organization-order-badge,
.organization-user-label,
.organization-owner-label,
.organization-shared-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: #1357be;
  background: #eaf3ff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.organization-owner-label {
  margin-left: 5px;
  color: #965d05;
  background: #fff2cf;
}

.organization-readonly-field {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #d9e3ef;
  border-radius: 10px;
  color: #163461;
  background: #f5f8fc;
  font-weight: 800;
}

.organization-readonly-field small {
  display: block;
  margin-top: 3px;
  color: #7d899d;
  font-weight: 400;
}

.organization-customer-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 15px 0;
}

.organization-customer-info > div {
  padding: 13px;
  border: 1px solid #dce6f2;
  border-radius: 13px;
  background: #f8faff;
}

.organization-customer-info span,
.organization-customer-info strong {
  display: block;
}

.organization-customer-info span {
  margin-bottom: 5px;
  color: #75829a;
  font-size: 12px;
}

.organization-summary-panel {
  margin: 16px 0;
}

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

.organization-summary-grid article {
  padding: 15px;
  border: 1px solid #dce6f2;
  border-radius: 14px;
  background: linear-gradient(145deg, #f8fbff, #fff);
}

.organization-summary-grid span,
.organization-summary-grid strong,
.organization-summary-grid em {
  display: block;
}

.organization-summary-grid strong {
  margin: 7px 0 4px;
  color: #0c2c60;
  font-size: 20px;
}

.organization-summary-grid em {
  color: #697890;
  font-size: 12px;
  font-style: normal;
}

.settlement-pay-all-button {
  max-width: 280px;
  padding: 11px 16px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #0c6cff, #1748bd);
  box-shadow: 0 10px 22px rgba(18, 91, 216, .23);
  font-weight: 800;
}

.settlement-organization-breakdown {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #d8e5f5;
  border-radius: 14px;
  background: #f7faff;
}

.settlement-organization-breakdown > strong {
  color: #173566;
}

.settlement-organization-breakdown > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 10px;
}

.settlement-organization-breakdown span {
  display: flex;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(32, 70, 128, .07);
}

.settlement-organization-breakdown em {
  color: #66758e;
  font-style: normal;
}

@media (max-width: 1100px) {
  .organization-overview-grid,
  .organization-customer-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .organization-card-grid,
  .organization-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .organization-scope-select {
    width: 100%;
  }

  .organization-scope-select select {
    min-width: 0;
    flex: 1;
  }

  .organization-overview-grid,
  .organization-customer-info {
    grid-template-columns: 1fr;
  }

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

  .organization-member-add,
  .organization-owner-form {
    align-items: stretch;
    flex-direction: column;
  }

  .organization-member-add .field,
  .organization-owner-form .field {
    min-width: 0;
  }

  .organization-account-backdrop {
    align-items: stretch;
    padding: 8px;
  }

  .modal-card.organization-account-modal {
    width: 100%;
    max-height: calc(100vh - 16px);
    border-radius: 16px;
  }

  .organization-account-head,
  .organization-section-head,
  .global-account-guide {
    align-items: stretch;
    flex-direction: column;
  }

  .organization-account-head,
  .organization-account-summary,
  .organization-account-body {
    padding-right: 16px;
    padding-left: 16px;
  }

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

  .organization-account-tabs {
    overflow-x: auto;
    padding: 0 16px;
  }

  .organization-account-tabs button {
    flex: 0 0 auto;
  }

  .organization-account-create-grid,
  .organization-shared-writer-form {
    grid-template-columns: 1fr;
  }

  .organization-account-create-grid .span-2 {
    grid-column: auto;
  }

  .organization-form-note {
    flex-direction: column;
  }

  .organization-account-submit button,
  .global-account-guide > button {
    width: 100%;
  }
}

.mobile-pay-backdrop {
  z-index: 80;
  align-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(45, 120, 255, .22), transparent 34%),
    rgba(13, 22, 38, .54);
  backdrop-filter: blur(14px);
}

.mobile-pay-modal {
  position: relative;
  width: min(94vw, 470px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 28px;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,255,.98));
  box-shadow: 0 30px 90px rgba(12, 30, 64, .35);
}

.mobile-pay-modal.green .mobile-pay-hero {
  background:
    linear-gradient(135deg, rgba(18, 181, 132, .96), rgba(32, 122, 255, .95));
}

.mobile-pay-modal.purple .mobile-pay-hero {
  background:
    linear-gradient(135deg, rgba(105, 82, 255, .98), rgba(18, 104, 255, .96));
}

.mobile-pay-modal.orange .mobile-pay-hero {
  background:
    linear-gradient(135deg, rgba(255, 150, 52, .98), rgba(18, 104, 255, .95));
}

.mobile-pay-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.14);
  box-shadow: none;
  font-size: 20px;
  line-height: 1;
}

.mobile-pay-hero {
  min-height: 150px;
  padding: 24px 24px 26px;
  color: #fff;
}

.mobile-pay-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-size: 12px;
  font-weight: 900;
}

.mobile-pay-modal h3 {
  margin: 18px 48px 8px 0;
  color: inherit;
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: 0;
}

.mobile-pay-modal p {
  max-width: 360px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  line-height: 1.65;
}

.mobile-pay-body {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.mobile-pay-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: -44px;
}

.mobile-pay-summary div {
  min-height: 76px;
  border: 1px solid rgba(213, 225, 244, .95);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 34px rgba(31, 61, 120, .12);
}

.mobile-pay-summary span,
.mobile-pay-methods small,
.mobile-pay-reserve span,
.mobile-pay-section-title span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.mobile-pay-summary b {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #111f38;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-pay-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.mobile-pay-section-title strong {
  color: #111f38;
  font-size: 15px;
}

.mobile-pay-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.mobile-pay-options.inline {
  margin-top: 10px;
}

.mobile-pay-options button {
  position: relative;
  min-height: 78px;
  border: 1px solid #dbe7f6;
  border-radius: 18px;
  padding: 12px 10px;
  display: grid;
  place-items: center;
  gap: 4px;
  color: #17233c;
  background: #fff;
  box-shadow: 0 10px 24px rgba(30, 58, 102, .08);
}

.mobile-pay-options button.active {
  border-color: rgba(18,104,255,.48);
  color: #1268ff;
  background: linear-gradient(180deg, #f4f9ff, #fff);
  box-shadow: 0 16px 30px rgba(18,104,255,.16);
}

.mobile-pay-options button.active::after {
  content: "✓";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1268ff;
  font-size: 12px;
  font-weight: 900;
}

.mobile-pay-options b {
  max-width: 100%;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-pay-options small {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.mobile-pay-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.mobile-pay-methods button {
  min-height: 92px;
  border: 1px solid #dbe7f6;
  border-radius: 18px;
  padding: 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 6px 10px;
  color: #17233c;
  text-align: left;
  background: #fff;
  box-shadow: 0 10px 24px rgba(30, 58, 102, .08);
}

.mobile-pay-methods button.active {
  border-color: rgba(18,104,255,.48);
  background: #f5f9ff;
}

.mobile-pay-method-icon {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.mobile-pay-method-icon.wechat {
  background: linear-gradient(135deg, #18b77f, #0c9c69);
}

.mobile-pay-method-icon.alipay {
  background: linear-gradient(135deg, #1677ff, #00a3ff);
}

.mobile-pay-methods b {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-pay-methods small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-pay-reserve {
  display: grid;
  gap: 6px;
  border: 1px dashed #c9d9ef;
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.mobile-pay-reserve strong {
  color: #17233c;
  font-size: 13px;
}

.mobile-pay-reserve span {
  line-height: 1.55;
}

.mobile-pay-actions {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 10px;
}

.mobile-pay-actions button {
  min-height: 46px;
  border-radius: 15px;
  font-weight: 950;
}

.mobile-pay-actions button.secondary {
  color: #334155;
  background: #eef4fb;
  box-shadow: none;
}

@media (max-width: 520px) {
  .mobile-pay-backdrop {
    padding: 14px;
    align-items: center;
  }

  .mobile-pay-modal {
    width: min(100%, 390px);
    border-radius: 24px;
  }

  .mobile-pay-hero {
    min-height: 142px;
    padding: 22px 18px 24px;
  }

  .mobile-pay-body {
    padding: 14px;
  }

  .mobile-pay-summary {
    grid-template-columns: 1fr;
    margin-top: -36px;
  }

  .mobile-pay-summary div {
    min-height: 58px;
  }

  .mobile-pay-options {
    grid-template-columns: 1fr;
  }

  .mobile-pay-methods {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .payment-manage-hero,
  .payment-provider-head {
    display: grid;
  }

  .payment-manage-status,
  .payment-manage-tabs {
    width: 100%;
    min-width: 0;
  }

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

  .payment-manage-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 25% 0%, rgba(29, 111, 232, .12), transparent 30%),
    linear-gradient(180deg, #f7f9fc 0%, var(--bg) 100%);
}

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

button {
  border: 0;
  background: linear-gradient(135deg, var(--primary), #158a9f);
  color: #fff;
  padding: 9px 14px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(29, 111, 232, .18);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

button:hover {
  background: linear-gradient(135deg, var(--primary-dark), #12798d);
  box-shadow: 0 10px 24px rgba(29, 111, 232, .24);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button.secondary {
  background: #eef3f9;
  color: #223047;
  box-shadow: none;
  border: 1px solid #dae4ef;
}

button.secondary:hover {
  background: #e4edf7;
  box-shadow: none;
}

button.danger {
  background: linear-gradient(135deg, var(--danger), #b82136);
  box-shadow: 0 8px 18px rgba(211, 59, 59, .16);
}

button:disabled {
  cursor: not-allowed;
  opacity: .45;
  box-shadow: none;
}

button.ghost {
  background: transparent;
  color: var(--primary);
  padding: 6px 8px;
  box-shadow: none;
}

.login {
  min-height: 100vh;
  position: relative;
  display: block;
  padding: 0;
  background:
    radial-gradient(circle at 22% 58%, rgba(29, 111, 232, .30), transparent 22%),
    radial-gradient(circle at 82% 8%, rgba(255, 255, 255, .95), transparent 28%),
    linear-gradient(115deg, #d9efff 0%, #f6fbff 43%, #edf7ff 100%);
  overflow: hidden;
}

.login::before,
.login::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  height: 240px;
  background:
    repeating-radial-gradient(ellipse at center, rgba(29, 111, 232, .16) 0 2px, transparent 3px 13px);
  opacity: .42;
  filter: blur(.2px);
  pointer-events: none;
}

.login::before {
  top: 120px;
  transform: rotate(8deg) scaleX(1.1);
}

.login::after {
  bottom: -35px;
  transform: rotate(-8deg) scaleX(1.1);
}

.login-top-brand {
  position: absolute;
  z-index: 2;
  top: 28px;
  left: 9.5%;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #16233a;
  font-size: 34px;
  font-weight: 900;
}

.login-top-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  padding: 4px;
  box-shadow: 0 14px 34px rgba(29, 111, 232, .14);
}

.login-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  align-items: center;
  gap: 70px;
  padding: 92px 9.5% 60px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.login-copy {
  position: relative;
  min-height: 640px;
  color: #172033;
  background: transparent;
}

.login-title-block {
  position: absolute;
  top: 48px;
  left: 26px;
  z-index: 2;
}

.login-title-block span {
  display: block;
  color: #1268ff;
  font-size: 42px;
  line-height: 1.25;
  font-weight: 900;
}

.login-title-block h1 {
  margin: 4px 0 10px;
  font-size: 52px;
  line-height: 1.15;
  color: #182033;
}

.login-title-block p {
  margin: 0;
  color: #52667f;
  font-weight: 800;
  font-size: 17px;
}

.paper-visual {
  position: absolute;
  left: 4%;
  bottom: 42px;
  width: min(560px, 82%);
  height: 420px;
  perspective: 900px;
}

.paper-base {
  position: absolute;
  left: 45px;
  right: 45px;
  bottom: 0;
  height: 86px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(149, 200, 255, .72));
  box-shadow: 0 36px 70px rgba(29, 111, 232, .24);
  transform: skewX(-8deg);
}

.paper-stack {
  position: absolute;
  left: 96px;
  right: 96px;
  bottom: 60px;
  height: 170px;
  transform: rotateX(58deg) rotateZ(-5deg);
}

.paper-stack i {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background:
    linear-gradient(90deg, transparent 12%, rgba(29, 111, 232, .12) 12% 14%, transparent 14%),
    repeating-linear-gradient(180deg, transparent 0 18px, rgba(29, 111, 232, .16) 19px 21px),
    #ffffff;
  box-shadow: 0 18px 30px rgba(70, 125, 196, .16);
}

.paper-stack i:nth-child(2) {
  transform: translateY(18px);
  opacity: .88;
}

.paper-stack i:nth-child(3) {
  transform: translateY(36px);
  opacity: .72;
}

.paper-check {
  position: absolute;
  left: 50%;
  bottom: 198px;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #15c493, #0a8fff);
  border: 10px solid rgba(255,255,255,.86);
  box-shadow: 0 28px 58px rgba(29, 111, 232, .24);
  font-size: 54px;
  font-weight: 900;
  transform: translateX(-50%) rotate(-3deg);
}

.login-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, .90);
  padding: 42px 38px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(21, 32, 54, .13);
  backdrop-filter: blur(18px);
}

.login-box h2 {
  margin: 20px 0 12px;
  font-size: 26px;
  text-align: center;
}

.login-box button {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
}

.login-box .login-link-button {
  margin-top: 10px;
}

.login-form-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  text-align: center;
  border: 1px solid #e3ebf5;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f3f8ff);
}

.login-form-brand img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(29, 111, 232, .10);
}

.login-form-brand strong,
.login-form-brand span {
  display: block;
}

.login-form-brand strong {
  font-size: 34px;
}

.login-form-brand span {
  color: var(--muted);
  font-size: 16px;
  margin-top: 3px;
}

.login-alt-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 10px;
  color: #8a98ad;
  font-size: 13px;
}

.login-alt-divider::before,
.login-alt-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2eaf5;
}

.login-box .wechat-qr-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #087d55;
  border: 1px solid #8ad9bb;
  background: #ecfbf5;
}

.wechat-qr-login-button span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #fff;
  background: #07c160;
  font-weight: 900;
}

.wechat-qr-login-panel {
  margin-top: 14px;
  padding: 18px;
  text-align: center;
  border: 1px solid #d9e5f3;
  border-radius: 16px;
  background: #f8fbff;
}

.wechat-qr-login-panel[hidden] {
  display: none;
}

.wechat-qr-image-shell {
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  padding: 8px;
  border: 1px solid #dfe8f4;
  border-radius: 14px;
  background: #fff;
}

.wechat-qr-image-shell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wechat-qr-login-panel strong,
.wechat-qr-login-panel p,
.wechat-qr-login-panel small {
  display: block;
}

.wechat-qr-login-panel p {
  margin: 8px 0;
  color: #324662;
}

.wechat-qr-login-panel small {
  color: #75859b;
  line-height: 1.6;
}

.wechat-binding-summary {
  width: 100%;
  min-width: 138px;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 2px 8px;
  align-items: center;
  padding: 8px 10px;
  color: #18314f;
  text-align: left;
  border: 1px solid #bfe9d4;
  border-radius: 12px;
  background: #f2fcf7;
}

.wechat-binding-summary .wechat-binding-dot {
  grid-row: 1 / 3;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #07c160;
  box-shadow: 0 0 0 4px rgba(7, 193, 96, .12);
}

.wechat-binding-summary b,
.wechat-binding-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wechat-binding-summary small {
  color: #708398;
}

.wechat-binding-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #dce9f7;
  border-radius: 16px;
  background: linear-gradient(135deg, #f5fbff, #f2fff8);
}

.wechat-binding-profile img,
.wechat-binding-avatar-placeholder {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  object-fit: cover;
  border-radius: 18px;
}

.wechat-binding-avatar-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background: #07c160;
  font-size: 26px;
  font-weight: 900;
}

.wechat-binding-profile strong,
.wechat-binding-profile span {
  display: block;
}

.wechat-binding-profile strong {
  margin-bottom: 6px;
  font-size: 20px;
}

.wechat-binding-profile span {
  color: #66788e;
}

.wechat-binding-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.wechat-binding-detail-grid > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e0e8f3;
  border-radius: 13px;
  background: #fbfdff;
}

.wechat-binding-detail-grid span,
.wechat-binding-detail-grid strong,
.wechat-binding-detail-grid code {
  display: block;
}

.wechat-binding-detail-grid span {
  margin-bottom: 6px;
  color: #73839a;
  font-size: 12px;
}

.wechat-binding-detail-grid code,
.wechat-binding-detail-grid strong {
  overflow-wrap: anywhere;
  color: #153153;
  font-family: inherit;
}

@media (max-width: 900px) {
  .wechat-binding-detail-grid {
    grid-template-columns: 1fr;
  }
}

.public-home {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  color: #111827;
  background:
    radial-gradient(circle, rgba(41, 121, 255, .34) 1px, transparent 1.8px) 0 0 / 132px 118px,
    linear-gradient(115deg, #edf5ff 0%, #ffffff 45%, #eef7ff 100%);
}

.public-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .30;
  background:
    linear-gradient(110deg, transparent 0 38%, rgba(111, 88, 255, .12) 38% 47%, transparent 47% 100%),
    linear-gradient(76deg, transparent 0 54%, rgba(25, 170, 116, .08) 54% 60%, transparent 60% 100%);
}

.public-home > * {
  position: relative;
  z-index: 1;
}

.public-home > .public-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .88;
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 14px clamp(22px, 8vw, 120px);
  border-bottom: 1px solid rgba(209, 222, 242, .72);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(20px);
}

.public-brand,
.public-nav-links button,
.public-login-link {
  color: #14213d;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  padding: 0;
  font-size: 20px;
  font-weight: 950;
}

.public-brand:hover,
.public-nav-links button:hover,
.public-login-link:hover {
  color: #26398f;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.public-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 13px;
  padding: 4px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 30px rgba(38, 57, 143, .13);
}

.public-nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.public-nav-links button,
.public-login-link {
  padding: 8px 3px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.public-nav-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.public-login-button,
.public-cta,
.public-mini-cta {
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #26398f, #1268ff);
  box-shadow: 0 16px 34px rgba(38, 57, 143, .24);
  font-weight: 950;
}

.public-login-button:hover,
.public-cta:hover,
.public-mini-cta:hover {
  background: linear-gradient(135deg, #1d2f7a, #0f5ee8);
  box-shadow: 0 20px 42px rgba(38, 57, 143, .30);
}

.public-main {
  display: grid;
  gap: 124px;
  padding-bottom: 108px;
}

.public-hero {
  width: min(1320px, calc(100% - 64px));
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(500px, .86fr) minmax(640px, 1.14fr);
  align-items: center;
  gap: 54px;
  margin: 0 auto;
  padding: 92px 0 58px;
}

.public-hero-copy {
  display: grid;
  justify-items: start;
  gap: 24px;
}

.public-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid rgba(38, 57, 143, .14);
  border-radius: 999px;
  color: #26398f;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 10px 24px rgba(38, 57, 143, .08);
  font-size: 13px;
  font-weight: 950;
}

.public-badge.soft {
  color: #1268ff;
  background: #eef5ff;
}

.public-badge.dark {
  color: #dbeafe;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
}

.public-hero h1 {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #0e172b;
  font-size: clamp(42px, 4.4vw, 66px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0;
}

.public-hero h1 span {
  display: block;
}

.public-hero h1 .hero-kicker-line {
  font-size: clamp(31px, 3vw, 44px);
  color: #16213a;
}

.public-hero h1 .hero-main-line {
  font-size: clamp(42px, 4.3vw, 58px);
  color: transparent;
  background: linear-gradient(100deg, #0b172f 0%, #1268ff 48%, #16a5aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.public-hero p {
  max-width: 620px;
  margin: 0;
  color: #59677f;
  font-size: 18px;
  line-height: 1.9;
  font-weight: 800;
}

.public-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 6px;
}

.public-cta {
  min-height: 58px;
  padding: 0 36px;
  font-size: 18px;
}

.public-ghost {
  min-height: 58px;
  padding: 0 34px;
  border: 1px solid rgba(38, 57, 143, .28);
  border-radius: 999px;
  color: #26398f;
  background: rgba(255,255,255,.68);
  box-shadow: none;
  font-size: 18px;
  font-weight: 950;
}

.public-ghost:hover {
  color: #1268ff;
  background: #fff;
  box-shadow: 0 18px 34px rgba(38, 57, 143, .12);
}

.public-visual {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
}

.public-window {
  width: min(100%, 850px);
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 30px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 42px 90px rgba(49, 72, 125, .18);
  backdrop-filter: blur(22px);
  overflow: hidden;
  transform: perspective(980px) rotateX(4deg) rotateY(-8deg);
}

.public-window-top {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  color: #60708b;
  border-bottom: 1px solid rgba(216, 226, 242, .72);
  background: rgba(255,255,255,.74);
  font-weight: 900;
}

.public-window-top i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5e57;
}

.public-window-top i:nth-child(2) {
  background: #ffbd2f;
}

.public-window-top i:nth-child(3) {
  background: #28c840;
  margin-right: 14px;
}

.public-window-body {
  min-height: 470px;
  display: grid;
  grid-template-columns: 186px minmax(0, 1fr);
  background: linear-gradient(135deg, rgba(247, 250, 255, .94), rgba(255,255,255,.74));
}

.public-window-body aside {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 40px 24px;
  border-right: 1px solid rgba(216, 226, 242, .72);
}

.public-window-body aside span {
  padding: 12px 14px;
  border-radius: 13px;
  color: #6c7890;
  background: rgba(255,255,255,.58);
  font-size: 13px;
  font-weight: 950;
}

.public-window-body aside span.active {
  color: #26398f;
  background: #e8efff;
}

.public-document {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 42px;
}

.public-doc-line {
  height: 18px;
  width: 78%;
  border-radius: 999px;
  background: #e9eef7;
}

.public-doc-line.wide {
  width: 92%;
}

.public-doc-line.short {
  width: 62%;
}

.public-dropzone {
  min-height: 184px;
  display: grid;
  place-items: center;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid rgba(18, 104, 255, .20);
  border-radius: 18px;
  color: #26398f;
  background: linear-gradient(135deg, rgba(238, 245, 255, .88), rgba(255,255,255,.84));
  text-align: center;
}

.public-dropzone b {
  font-size: 20px;
}

.public-dropzone small {
  color: #66748d;
  font-weight: 850;
}

.public-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(49, 72, 125, .08);
}

.public-progress span {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef7;
}

.public-progress em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1268ff, #16a5aa);
}

.public-progress strong {
  color: #0e172b;
  font-size: 18px;
}

.public-floating-card {
  position: absolute;
  min-width: 154px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 20px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 24px 48px rgba(49, 72, 125, .16);
  backdrop-filter: blur(18px);
}

.public-floating-card span,
.public-floating-card small {
  display: block;
  color: #60708b;
  font-size: 12px;
  font-weight: 900;
}

.public-floating-card strong {
  display: block;
  margin: 4px 0;
  color: #0e172b;
  font-size: 40px;
  line-height: 1;
}

.public-floating-card.card-a {
  right: -4px;
  top: 100px;
}

.public-floating-card.card-b {
  left: 18px;
  bottom: 78px;
}

.public-strip {
  width: 100%;
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 22px;
  border-top: 1px solid rgba(209, 222, 242, .62);
  border-bottom: 1px solid rgba(209, 222, 242, .62);
  background: rgba(255,255,255,.54);
}

.public-strip span {
  color: #4f5d75;
  font-weight: 950;
}

.public-strip span::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 10px;
  border-radius: 999px;
  background: #1268ff;
  box-shadow: 0 0 0 4px rgba(18, 104, 255, .10);
  vertical-align: 1px;
}

.public-section,
.public-flow-section,
.public-toolbox,
.public-trust,
.public-note,
.public-final {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
}

.public-section-head {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-bottom: 54px;
  text-align: center;
}

.public-section-head h2,
.public-toolbox h2,
.public-trust h2,
.public-final h2 {
  margin: 0;
  color: #0e172b;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.18;
  font-weight: 950;
}

.public-section-head p,
.public-toolbox p,
.public-trust p,
.public-final p {
  max-width: 720px;
  margin: 0;
  color: #62708a;
  line-height: 1.85;
  font-size: 16px;
  font-weight: 800;
}

.public-feature-grid,
.public-flow,
.public-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.public-feature-grid article,
.public-flow article,
.public-toolbox article,
.public-note {
  border: 1px solid rgba(216, 226, 242, .86);
  border-radius: 24px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 22px 46px rgba(49, 72, 125, .08);
  backdrop-filter: blur(18px);
}

.public-feature-grid article {
  min-height: 238px;
  position: relative;
  padding: 40px 34px;
}

.public-feature-grid i,
.public-flow strong {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #1268ff;
  background: #eaf3ff;
  font-style: normal;
  font-size: 15px;
  font-weight: 950;
}

.public-feature-grid article:nth-child(2) i {
  color: #8e56ff;
  background: #f0eaff;
}

.public-feature-grid article:nth-child(3) i {
  color: #16a36f;
  background: #e7f8ef;
}

.public-feature-grid article:nth-child(4) i {
  color: #ec6f1a;
  background: #fff0e7;
}

.public-feature-grid h3,
.public-flow h3,
.public-toolbox h3 {
  margin: 24px 0 10px;
  color: #101827;
  font-size: 22px;
  font-weight: 950;
}

.public-feature-grid p,
.public-flow p {
  margin: 0;
  color: #66748d;
  line-height: 1.8;
  font-weight: 800;
}

.public-flow article {
  min-height: 186px;
  padding: 36px;
}

.public-flow strong {
  color: #fff;
  background: linear-gradient(135deg, #26398f, #1268ff);
}

.public-toolbox {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 24px;
}

.public-toolbox article {
  min-height: 210px;
  padding: 42px;
}

.public-toolbox article.wide {
  grid-row: span 2;
  min-height: 468px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(238,245,255,.72)),
    linear-gradient(135deg, rgba(18,104,255,.08), rgba(142,86,255,.08));
}

.public-toolbox article:not(.wide) h3 {
  margin-top: 0;
}

.public-mini-cta {
  min-height: 44px;
  padding: 0 22px;
}

.public-trust {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 60px;
  padding: 72px;
  border-radius: 36px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 20, 28, .97), rgba(17, 24, 39, .96)),
    repeating-linear-gradient(0deg, transparent 0 17px, rgba(255,255,255,.05) 18px);
  box-shadow: 0 30px 70px rgba(17, 24, 39, .20);
}

.public-trust h2 {
  color: #fff;
  margin: 18px 0 14px;
}

.public-trust p {
  color: #aeb9cc;
}

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

.public-trust-grid article {
  min-height: 162px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04)),
    rgba(255,255,255,.06);
  font-size: 18px;
  font-weight: 950;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.public-trust-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.26);
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.06)),
    rgba(255,255,255,.08);
}

.public-trust-grid article i {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #1268ff, #16a5aa);
  box-shadow: 0 18px 34px rgba(18, 104, 255, .28);
}

.public-trust-grid article:nth-child(2) i {
  background: linear-gradient(135deg, #8e56ff, #35d399);
  box-shadow: 0 18px 34px rgba(142, 86, 255, .24);
}

.public-trust-grid article:nth-child(3) i {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 18px 34px rgba(245, 158, 11, .22);
}

.public-trust-grid article:nth-child(4) i {
  background: linear-gradient(135deg, #64748b, #1268ff);
  box-shadow: 0 18px 34px rgba(100, 116, 139, .22);
}

.public-trust-grid svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.public-trust-grid strong {
  color: #fff;
  font-size: 19px;
  font-weight: 950;
}

.public-trust-grid span {
  max-width: 170px;
  color: #aeb9cc;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 850;
}

.public-note {
  padding: 28px 34px;
  color: #4f5d75;
  text-align: center;
  line-height: 1.9;
  font-weight: 850;
}

.public-note p {
  margin: 0;
}

.public-final {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 60px 22px 36px;
  text-align: center;
}

.public-final p {
  max-width: 620px;
}

.public-footer {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 58px clamp(24px, 8vw, 120px) 28px;
  color: #c8d6ea;
  background:
    radial-gradient(circle at 8% 12%, rgba(18, 104, 255, .18), transparent 32%),
    linear-gradient(135deg, #0b1729, #101d32 58%, #081322);
}

.public-footer-main {
  display: grid;
  grid-template-columns: minmax(260px, .88fr) minmax(520px, 1.12fr);
  gap: 70px;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.public-footer-brand {
  display: grid;
  align-content: start;
  gap: 28px;
}

.public-footer-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.public-footer-logo img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 18px;
  padding: 6px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 20px 44px rgba(0,0,0,.22);
}

.public-footer-logo strong,
.public-footer-contact b,
.public-footer-column strong {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.public-footer-logo span {
  display: block;
  max-width: 360px;
  margin-top: 6px;
  color: #9fb1ca;
  line-height: 1.7;
  font-weight: 800;
}

.public-footer-contact {
  display: grid;
  gap: 8px;
}

.public-footer-contact span,
.public-footer-column span,
.public-footer-bottom span {
  color: #aabbd2;
  line-height: 1.8;
  font-size: 14px;
  font-weight: 800;
}

.public-footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}

.public-footer-column {
  display: grid;
  align-content: start;
  gap: 9px;
}

.public-footer-column strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.public-footer-bottom {
  width: min(1240px, 100%);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 46px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(203, 214, 228, .22);
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
  color: #dbe5f4;
  padding: 24px 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)),
    linear-gradient(180deg, var(--side), #111827 65%, #0b1220);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .08);
}

.brand {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  padding: 3px;
  box-shadow: 0 12px 28px rgba(42, 117, 255, .20);
}

.brand span {
  font-size: 22px;
}

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

.nav button {
  width: 100%;
  min-height: 42px;
  text-align: left;
  background: transparent;
  color: #cdd8e8;
  box-shadow: none;
  border: 1px solid transparent;
  padding: 10px 12px;
}

.nav button.active,
.nav button:hover {
  background: rgba(255, 255, 255, .09);
  color: #fff;
  border-color: rgba(255, 255, 255, .10);
  transform: none;
}

.nav button.active {
  box-shadow: inset 3px 0 0 #48b5ff;
}

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

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 4px 2px;
}

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

.topbar h2 {
  margin: 0 0 5px;
  font-size: 24px;
  letter-spacing: 0;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(211, 221, 234, .9);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
}

.admin-app {
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, var(--theme-bg, #eef5ff) 100%);
}

.admin-app .sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  padding: 28px 14px 22px;
  background:
    radial-gradient(circle at 14% 0%, rgba(74, 152, 255, .28), transparent 26%),
    linear-gradient(180deg, var(--theme-side-start, #041739) 0%, var(--theme-side-mid, #06265b) 54%, var(--theme-side-end, #013f9d) 100%);
  box-shadow: inset -1px 0 0 rgba(255,255,255,.14), 18px 0 48px rgba(14, 54, 118, .08);
}

.admin-app .sidebar::before,
.admin-app .sidebar::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.admin-app .sidebar::before {
  left: -70px;
  right: -40px;
  bottom: 72px;
  height: 190px;
  opacity: .78;
  background:
    radial-gradient(ellipse at 34% 82%, rgba(0, 188, 255, .35), transparent 42%),
    repeating-radial-gradient(ellipse at 70% 78%, rgba(108, 173, 255, .26) 0 1px, transparent 1px 11px);
  transform: rotate(-8deg);
}

.admin-app .sidebar::after {
  left: -40px;
  right: -40px;
  bottom: 114px;
  height: 72px;
  border-top: 2px solid rgba(18, 134, 255, .38);
  border-radius: 50%;
  transform: rotate(-7deg);
}

.admin-app .brand,
.admin-app .nav {
  position: relative;
  z-index: 1;
}

.admin-app .brand {
  min-height: 56px;
  gap: 12px;
  margin-bottom: 34px;
  padding: 0 6px;
  color: #fff;
  font-size: 0;
}

.admin-app .brand img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  padding: 4px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 36px rgba(1, 22, 63, .28);
}

.admin-app .brand span {
  min-width: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  white-space: nowrap;
}

.admin-app .nav {
  display: grid;
  gap: 11px;
}

.admin-app .nav button {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255,255,255,.88);
  background: transparent;
  box-shadow: none;
  font-size: 16px;
  font-weight: 900;
}

.admin-app .nav button.active,
.admin-app .nav button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: rgba(102, 174, 255, .72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 12px 28px rgba(4, 67, 178, .28);
  transform: none;
}

.nav-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-app .admin-side-user {
  position: fixed;
  left: 16px;
  bottom: 20px;
  width: 224px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  color: #fff;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}

.admin-app .nav {
  max-height: calc(100vh - 232px);
  overflow-y: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.admin-app .nav::-webkit-scrollbar {
  display: none;
}

.admin-side-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #0b4fc4;
  background: #fff;
  font-weight: 950;
}
.admin-side-avatar img,
.writer-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.mobile-default-avatar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.admin-side-user strong,
.admin-side-user span {
  display: block;
}

.admin-side-user strong {
  font-size: 13px;
}

.admin-side-user span {
  color: #bdf6dc;
  font-size: 12px;
  font-weight: 800;
}

.side-theme-slot {
  position: relative;
  z-index: 30;
}

.admin-theme-slot {
  position: fixed;
  left: 16px;
  bottom: 94px;
  width: 224px;
}

.portal-theme-slot {
  flex: 0 0 auto;
  margin-top: 0;
}

.side-theme-switcher {
  position: relative;
}

.side-theme-button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  color: #fff;
  text-align: left;
  background: rgba(255,255,255,.08);
  box-shadow: none;
}

.side-theme-button:hover {
  background: rgba(255,255,255,.14);
  box-shadow: 0 12px 28px rgba(4, 67, 178, .18);
  transform: none;
}

.side-theme-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 950;
}

.side-theme-button small {
  padding: 4px 7px;
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.12);
  font-size: 11px;
  font-weight: 900;
}

.theme-shirt-icon {
  width: 23px;
  height: 23px;
}

.theme-popover {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: 288px;
  display: none;
  padding: 14px;
  border: 1px solid rgba(204, 220, 245, .95);
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 22px 54px rgba(7, 24, 56, .26);
}

.side-theme-switcher.open .theme-popover {
  display: grid;
  gap: 12px;
}

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

.theme-popover-head strong {
  color: #071633;
  font-size: 15px;
  font-weight: 950;
}

.theme-popover-head span {
  color: #667895;
  font-size: 12px;
  font-weight: 850;
}

.theme-option-grid {
  display: grid;
  gap: 8px;
}

.theme-option {
  min-height: 44px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #dbe7f6;
  border-radius: 12px;
  color: #142646;
  text-align: left;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: none;
}

.theme-option:hover,
.theme-option.active {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 36%, #dbe7f6);
  background: linear-gradient(180deg, #fff, var(--primary-soft));
  box-shadow: none;
  transform: none;
}

.theme-option i {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.42);
}

.theme-option span {
  font-size: 13px;
  font-weight: 950;
}

.admin-app .main {
  min-width: 0;
  padding: 26px 32px 34px;
}

.admin-app .topbar {
  min-height: 58px;
  margin: 0 0 18px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(210, 223, 242, .72);
}

.admin-app .topbar h2 {
  margin: 0 0 6px;
  color: #061634;
  font-size: 26px;
  font-weight: 950;
}

.admin-app .topbar .muted {
  color: #6c7d98;
  font-size: 14px;
  font-weight: 800;
}

.admin-app .top-actions .secondary {
  min-height: 40px;
  padding: 0 18px;
  color: #2d4162;
  border: 1px solid #d5e2f4;
  border-radius: 7px;
  background: rgba(255,255,255,.72);
  box-shadow: none;
}

.admin-app .top-actions .secondary:hover {
  color: var(--primary);
  background: #fff;
}

.admin-app #view {
  display: grid;
  gap: 18px;
}

.admin-app .panel {
  margin-bottom: 0;
  padding: 22px 24px;
  border-color: #d7e5f7;
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 34px rgba(25, 75, 145, .08);
}

.admin-app .panel h3 {
  margin-top: 0;
  color: #071633;
  font-size: 18px;
  font-weight: 950;
}

.admin-app .eyebrow {
  color: #1267e8;
  font-size: 13px;
  font-weight: 950;
}

.admin-app button {
  min-height: 40px;
  border-radius: 7px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 10px 24px rgba(27, 105, 234, .18);
}

.admin-app button.secondary {
  color: #1958bd;
  border: 1px solid #b9d2fb;
  background: #f7fbff;
  box-shadow: none;
}

.admin-app button.danger {
  color: #fff;
  background: linear-gradient(135deg, #ef4747, #cf2f36);
  box-shadow: 0 10px 24px rgba(211, 59, 59, .18);
}

.admin-app .form-grid {
  gap: 16px 20px;
}

.admin-app .field label {
  color: #23385b;
  font-size: 13px;
  font-weight: 950;
}

.admin-app .field input,
.admin-app .field select,
.admin-app .field textarea {
  min-height: 42px;
  border-color: #cedbec;
  border-radius: 7px;
  color: #10203d;
  background: rgba(255,255,255,.92);
}

.admin-app .field input:focus,
.admin-app .field select:focus,
.admin-app .field textarea:focus {
  border-color: #2377ff;
  box-shadow: 0 0 0 4px rgba(35, 119, 255, .10);
}

.admin-app .notice {
  border-color: #bed8ff;
  color: #23599d;
  background: #f3f8ff;
}

.admin-app .recognition-panel {
  margin: -4px 0 18px;
  padding: 18px;
  border: 1px solid #d8e6fb;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.admin-app .recognition-head {
  align-items: flex-start;
}

.admin-app .recognition-panel textarea {
  min-height: 150px;
  border-radius: 8px;
  background: #fff;
}

.admin-app .search-panel {
  padding: 4px 0 0;
}

.admin-app .search-panel::before {
  content: "高级筛选";
  grid-column: 1 / -1;
  color: #1267e8;
  font-size: 15px;
  font-weight: 950;
}

.admin-app .search-actions {
  grid-column: 1 / -1;
  justify-content: center;
  margin-top: 10px;
}

.admin-app .table-wrap {
  border-color: #d8e6f6;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.admin-app table {
  background: #fff;
}

.admin-app th {
  padding: 15px 14px;
  color: #071633;
  background: #f4f8fe;
  font-size: 14px;
  font-weight: 950;
}

.admin-app td {
  padding: 14px;
  color: #17304f;
  font-weight: 700;
}

.admin-app tbody tr:hover td {
  background: #f8fbff;
}

.admin-app .dispute-row td,
.admin-app .timeout-row td,
.admin-app .urgent-row td {
  background: linear-gradient(90deg, #fff2f2, #fff9f8);
}

.admin-app .status-pill,
.admin-app .badge {
  border-radius: 999px;
  font-weight: 950;
}

.admin-app .home-hero {
  min-height: 208px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 76% 26%, rgba(255,255,255,.22), transparent 18%),
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.18), transparent 20%),
    linear-gradient(135deg, var(--theme-side-start, #041739) 0%, var(--primary) 58%, var(--theme-accent, #16a5aa) 100%);
  box-shadow: 0 20px 46px rgba(18, 104, 255, .20);
}

.admin-app .home-hero h1 {
  font-size: 38px !important;
}

.admin-app .home-hero::after {
  width: 240px;
  height: 150px;
  right: 34px;
  top: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.05));
  transform: rotate(-8deg);
}

.admin-app .home-metrics.dashboard-hero {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-app .dashboard-hero {
  gap: 16px;
}

.admin-app .dashboard-hero > div {
  min-height: 120px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(23, 83, 160, .12);
}

.admin-app .dashboard-hero > div:first-child {
  background: linear-gradient(135deg, #1268ff, #0d5fdb);
}

.admin-app .dashboard-hero > div:nth-child(2) {
  background: linear-gradient(135deg, #16a5aa, #11a19a);
}

.admin-app .dashboard-hero > div:nth-child(3) {
  background: linear-gradient(135deg, #2f9b55, #86c35b);
}

.admin-app .dashboard-hero > div:nth-child(4) {
  background: linear-gradient(135deg, #6652ff, #a044ff);
}

.admin-app .dashboard-hero > div:nth-child(5) {
  background: linear-gradient(135deg, #e84435, #ff941f);
}

.admin-app .dashboard-hero strong {
  margin-top: 9px;
  font-size: 28px;
  font-weight: 950;
}

.admin-app .dashboard-insight > div,
.admin-app .chart-card {
  border-color: #d8e6f6;
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 30px rgba(26, 82, 148, .07);
}

.admin-app .chart-card h3 {
  color: #071633;
  font-size: 17px;
  font-weight: 950;
}

.admin-app .timeout-overview {
  border-color: #ffc9c9;
  border-radius: 12px;
  background: linear-gradient(90deg, #fff5f5, #fffafa);
}

.admin-app .pending-rule-panel {
  min-height: 164px;
  padding: 28px 44px;
}

.admin-app .pending-rule-panel::before {
  content: "";
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 18px;
  background:
    radial-gradient(circle at 60% 42%, transparent 24%, #fff 25% 31%, transparent 32%),
    linear-gradient(135deg, #1974ff, #095be3);
  box-shadow: 0 16px 34px rgba(25, 116, 255, .24);
}

.admin-app .pending-stats > div {
  min-width: 116px;
  border-radius: 8px;
  background: #f8fbff;
}

.admin-app .pending-head {
  margin-bottom: 22px;
}

.admin-app .announcement-editor {
  padding: 26px 28px 24px;
  border-radius: 12px;
  background: rgba(255,255,255,.98);
}

.admin-app .announcement-editor-grid textarea {
  min-height: 84px;
}

.admin-app .announcement-preview-grid .announcement-banner.preview {
  border-color: #ffcbcb;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff3f3, #fff9f7);
}

.admin-app .announcement-editor-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.admin-app .announcement-editor-head h3 {
  margin: 0 0 6px;
  font-size: 21px;
}

.announcement-head-icon,
.announcement-table-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #1d73ff;
  background: #eaf3ff;
}

.announcement-head-icon .home-svg,
.announcement-table-icon .home-svg {
  width: 20px;
  height: 20px;
}

.admin-app .announcement-editor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 26px;
}

.admin-app .announcement-field label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #243a5c;
}

.admin-app .announcement-field label i,
.announcement-preview-head strong i {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  background: #eaf3ff;
}

.admin-app .announcement-field label i::before,
.announcement-preview-head strong i::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #1d73ff;
}

.admin-app .announcement-field.writer label i,
.admin-app .announcement-field.writer label i::before {
  background: #f1eaff;
}

.admin-app .announcement-field.writer label i::before {
  background: #8d5cff;
}

.admin-app .announcement-field.registrar label i,
.admin-app .announcement-field.registrar label i::before {
  background: #e8fff3;
}

.admin-app .announcement-field.registrar label i::before {
  background: #25b26f;
}

.admin-app .announcement-field.future label i,
.admin-app .announcement-field.future label i::before {
  background: #fff3df;
}

.admin-app .announcement-field.future label i::before {
  background: #ff9d2d;
}

.admin-app .announcement-field textarea {
  min-height: 86px;
  resize: vertical;
}

.admin-app .announcement-editor .actions {
  margin-top: 14px;
}

.admin-app .announcement-editor .actions button {
  min-width: 108px;
}

.admin-app .announcement-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.admin-app .announcement-preview-grid .announcement-banner.preview {
  min-height: 218px;
  margin: 0;
  padding: 18px 18px 16px;
  border: 1px solid #ffcdcd;
  color: #9a1e1e;
  box-shadow: 0 12px 26px rgba(220, 55, 55, .08);
}

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

.announcement-preview-head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #dd3434;
  font-size: 16px;
}

.announcement-preview-head span {
  padding: 3px 10px;
  border: 1px solid #ff9f9f;
  border-radius: 6px;
  color: #ef4b4b;
  background: #fff8f8;
  font-size: 12px;
  font-weight: 950;
}

.admin-app .announcement-preview-grid .announcement-banner.preview pre {
  max-height: 154px;
  margin: 0;
  overflow: auto;
  color: #713131;
  font-size: 13px;
  line-height: 1.65;
}

.admin-app .announcement-responsibility-panel {
  padding: 20px 24px 22px;
}

.announcement-table-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.announcement-table-head h3 {
  margin: 0 0 5px;
  font-size: 20px;
}

.admin-app .announcement-responsibility-panel .table-wrap {
  border-radius: 8px;
}

.admin-app .announcement-responsibility-panel table {
  min-width: 980px;
}

.admin-app .announcement-responsibility-panel th,
.admin-app .announcement-responsibility-panel td {
  padding: 12px 14px;
}

.announcement-table-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 10px;
  color: #415879;
  font-weight: 800;
}

.announcement-table-footer > div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.announcement-table-footer button {
  min-width: 34px;
  min-height: 34px;
  padding: 0;
}

.announcement-table-footer button.active {
  color: #fff;
  border-color: #1d73ff;
  background: #1d73ff;
}

.announcement-table-footer select {
  min-height: 34px;
  border: 1px solid #d8e6f6;
  border-radius: 7px;
  color: #32496a;
  background: #fff;
  padding: 0 12px;
  font: inherit;
}

.admin-app .password-edit-cell input {
  height: 36px;
}

.admin-app .row-actions {
  gap: 10px;
}

.admin-app .users-create-panel,
.admin-app .users-list-panel {
  padding: 26px 28px;
}

.admin-app .users-create-panel h3,
.admin-app .users-list-panel h3 {
  margin-bottom: 20px;
  font-size: 20px;
}

.admin-app .users-create-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
}

.users-create-action {
  display: flex;
  align-items: end;
}

.users-create-action button {
  min-width: 94px;
  min-height: 42px;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap input {
  padding-right: 46px !important;
}

.password-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 30px;
  height: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #73839d;
  border: 0;
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
}

.password-eye:hover,
.password-eye.active {
  color: #1268ff;
  background: #eef5ff;
  box-shadow: none;
  transform: translateY(-50%);
}

.password-eye {
  transform: translateY(-50%);
}

.eye-svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.users-list-head h3 {
  margin: 0;
}

.users-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.users-search {
  width: min(360px, 42vw);
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  border: 1px solid #d5e2f4;
  border-radius: 7px;
  background: #fff;
}

.users-search input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 0;
  outline: none;
  color: #17304f;
  background: transparent;
  font: inherit;
}

.users-search button,
.users-refresh {
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  color: #4f6380;
  border: 1px solid #d5e2f4;
  background: #fff;
  box-shadow: none;
}

.users-search button {
  border: 0;
}

.users-search .home-svg {
  width: 18px;
  height: 18px;
}

.admin-app .users-list-panel .table-wrap {
  border-radius: 10px;
}

.admin-app .users-list-panel table {
  min-width: 1120px;
}

.admin-app .users-list-panel th {
  color: #10233f;
  background: #f3f7fd;
}

.admin-app .users-list-panel th:nth-child(-n+4) {
  color: #0e2342;
}

.admin-app .users-list-panel td {
  vertical-align: middle;
}

.admin-app .password-edit-cell {
  grid-template-columns: minmax(170px, 1fr) 58px;
  gap: 10px;
}

.admin-app .password-input-wrap-small input {
  height: 36px;
  min-height: 36px;
  letter-spacing: 2px;
}

.admin-app .password-edit-cell > button {
  min-height: 34px;
  color: #9aa8bc;
  border-color: #e1e8f2;
  background: #f7f9fc;
}

.admin-app .row-actions button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  box-shadow: none;
}

.admin-app .row-actions [data-reset-password] {
  color: #1268ff;
  border-color: #a9c9ff;
  background: #fff;
}

.admin-app .row-actions [data-toggle-user] {
  color: #0b9570;
  border-color: #a8e4d1;
  background: #f5fffb;
}

.admin-app .row-actions [data-delete-user] {
  color: #fff;
  border-color: #d73541;
  background: linear-gradient(135deg, #f04a55, #cf2f36);
}

.admin-app .disabled-row td {
  color: #718097;
  background: #f3f7fc;
}

.users-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  color: #415879;
  font-weight: 800;
}

.users-table-footer > div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.users-table-footer button {
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  box-shadow: none;
}

.users-table-footer button.active {
  color: #fff;
  border-color: #1d73ff;
  background: #1d73ff;
}

.users-table-footer select {
  min-height: 36px;
  border: 1px solid #d8e6f6;
  border-radius: 7px;
  color: #32496a;
  background: #fff;
  padding: 0 12px;
  font: inherit;
}

.admin-app .logs-panel {
  padding: 34px 28px 28px;
}

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

.logs-tabs,
.logs-tools,
.logs-pager {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logs-tabs button {
  min-height: 42px;
  padding: 0 18px;
  color: #2c4365;
  border: 1px solid #d9e6f6;
  border-radius: 7px;
  background: #f6f9fe;
  box-shadow: none;
  font-weight: 950;
}

.logs-tabs button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  margin-left: 5px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(18, 104, 255, .10);
}

.logs-tabs button.active {
  color: #fff;
  border-color: #1268ff;
  background: linear-gradient(135deg, #075bd9, #1d73ff);
  box-shadow: 0 10px 24px rgba(18, 104, 255, .18);
}

.logs-tabs button.active span {
  background: rgba(255,255,255,.20);
}

.logs-tab-login {
  color: #0b8d62 !important;
  background: #f3fff9 !important;
}

.logs-tab-upload {
  color: #1268ff !important;
  background: #f4f8ff !important;
}

.logs-tab-download {
  color: #7255ea !important;
  background: #f8f5ff !important;
}

.logs-tab-other {
  color: #455a78 !important;
}

.logs-tabs button.active {
  color: #fff !important;
  background: linear-gradient(135deg, #075bd9, #1d73ff) !important;
}

.logs-tools {
  flex: 1;
  justify-content: flex-end;
}

.logs-date-range {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(126px, 1fr) 18px minmax(126px, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #d5e2f4;
  border-radius: 7px;
  background: #fff;
}

.logs-date-range input {
  width: 100%;
  height: 38px;
  padding: 0 6px;
  color: #62718a;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
}

.logs-date-range span {
  color: #99a8bd;
  font-weight: 950;
  text-align: center;
}

.logs-search {
  width: min(360px, 34vw);
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  border: 1px solid #d5e2f4;
  border-radius: 7px;
  background: #fff;
}

.logs-search input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  color: #17304f;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
}

.logs-search button {
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  color: #405772;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.logs-search .home-svg,
.logs-export .home-svg {
  width: 18px;
  height: 18px;
}

.logs-export {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2f4363 !important;
  border: 1px solid #d5e2f4 !important;
  background: #fff !important;
}

.admin-app .logs-table-wrap {
  border-radius: 10px;
  overflow: auto;
}

.admin-app .logs-table {
  min-width: 1080px;
}

.admin-app .logs-table th {
  height: 50px;
  color: #10233f;
  background: #f3f7fd;
}

.admin-app .logs-table td {
  height: 44px;
  vertical-align: middle;
}

.admin-app .logs-table th:nth-child(1),
.admin-app .logs-table td:nth-child(1) {
  width: 170px;
}

.admin-app .logs-table th:nth-child(2),
.admin-app .logs-table td:nth-child(2) {
  width: 160px;
}

.admin-app .logs-table th:nth-child(3),
.admin-app .logs-table td:nth-child(3) {
  width: 150px;
}

.log-row-download td {
  background: #fffaf0;
}

.log-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.log-badge-svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.log-badge-login {
  color: #0b925f;
  border-color: #bfead5;
  background: #effcf6;
}

.log-badge-upload {
  color: #1268ff;
  border-color: #bdd4ff;
  background: #f1f6ff;
}

.log-badge-download {
  color: #7357e8;
  border-color: #d7ceff;
  background: #f6f2ff;
}

.log-badge-other {
  color: #485a74;
  border-color: #d7e1ee;
  background: #f5f8fc;
}

.logs-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: #415879;
  font-weight: 800;
}

.logs-pager button {
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  box-shadow: none;
}

.logs-pager button.active {
  color: #fff;
  border-color: #1d73ff;
  background: #1d73ff;
}

.logs-pager select {
  min-height: 36px;
  border: 1px solid #d8e6f6;
  border-radius: 7px;
  color: #32496a;
  background: #fff;
  padding: 0 12px;
  font: inherit;
}

.logs-page-ellipsis {
  min-width: 24px;
  color: #6f7f98;
  text-align: center;
  font-weight: 950;
}

.batch-import-panel {
  display: grid;
  gap: 18px;
}

.batch-import-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.batch-import-head h3,
.finance-entry-panel h3,
.finance-source-panel h3,
.finance-chart-panel h3,
.finance-list-panel h3 {
  margin: 4px 0 6px;
}

.batch-import-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(240px, .8fr) 170px;
  align-items: end;
  gap: 16px;
}

.batch-file-drop {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px 18px;
  border: 1px dashed #8bbaff;
  border-radius: 10px;
  color: #173b74;
  background: linear-gradient(135deg, #f7fbff, #eef6ff);
  cursor: pointer;
}

.batch-file-drop input {
  display: none;
}

.batch-file-drop strong {
  font-size: 17px;
  font-weight: 950;
}

.batch-file-drop span {
  color: #647896;
  font-weight: 800;
}

.batch-import-result {
  padding: 12px 14px;
  border: 1px solid #d6e5f8;
  border-radius: 8px;
  background: #f8fbff;
  font-weight: 850;
}

.dashboard-average-grid,
.finance-metrics,
.analysis-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-average-grid > div,
.finance-card,
.analysis-metrics > div {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  padding: 18px 20px;
  border: 1px solid #d8e7f8;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f7fbff);
  box-shadow: 0 12px 28px rgba(25, 75, 145, .07);
}

.dashboard-average-grid > div::after,
.finance-card::after,
.analysis-metrics > div::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -28px;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: rgba(29, 111, 232, .10);
}

.dashboard-average-grid span,
.finance-card span,
.analysis-metrics span {
  display: block;
  color: #49617f;
  font-weight: 900;
}

.dashboard-average-grid strong,
.finance-card strong,
.analysis-metrics strong {
  display: block;
  margin-top: 8px;
  color: #09224a;
  font-size: 24px;
  font-weight: 950;
}

.dashboard-average-grid em,
.finance-card em,
.analysis-metrics em {
  display: block;
  margin-top: 8px;
  color: #6d7f99;
  font-style: normal;
  font-weight: 800;
}

.finance-card.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #1268ff, #16a5aa);
}

.finance-card.primary span,
.finance-card.primary strong,
.finance-card.primary em {
  color: #fff;
}

.finance-entry-panel {
  display: grid;
  gap: 18px;
}

.finance-expense-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 150px;
  align-items: end;
  gap: 16px;
}

.finance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  gap: 18px;
}

.finance-source-panel table,
.finance-list-panel table {
  min-width: 880px;
}

.finance-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.finance-list-head span {
  color: #526985;
  font-weight: 900;
}

.admin-app .module-color-card {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-color: rgba(255,255,255,.42) !important;
  background:
    radial-gradient(circle at 86% 18%, rgba(255,255,255,.24), transparent 23%),
    linear-gradient(135deg, var(--module-color), var(--module-color-2)) !important;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--module-color) 22%, transparent) !important;
}

.admin-app .module-color-card::after {
  background: rgba(255,255,255,.16) !important;
}

.admin-app .module-color-card span,
.admin-app .module-color-card strong,
.admin-app .module-color-card em {
  position: relative;
  z-index: 1;
  color: #fff !important;
}

.admin-app .module-color-card span {
  opacity: .92;
}

.admin-app .module-color-card strong {
  padding-right: 62px;
}

.module-color-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  min-height: 28px !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.42) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.14) !important;
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 950;
  backdrop-filter: blur(8px);
}

.module-color-button:hover {
  background: rgba(255,255,255,.24) !important;
  transform: none;
}

.module-color-button span {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.16);
}

.admin-app .home-metrics.dashboard-hero > div {
  min-height: 116px;
  color: #0b1a34;
  border: 1px solid #d6e5f8;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 12px 28px rgba(25, 75, 145, .07);
}

.admin-app .home-metrics.dashboard-hero > div::after {
  right: 18px;
  top: 24px;
  width: 58px;
  height: 58px;
  opacity: 1;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(32, 116, 255, .18), rgba(32, 116, 255, .08));
}

.admin-app .home-metrics.dashboard-hero > div:nth-child(3)::after {
  background: linear-gradient(135deg, rgba(25, 170, 116, .20), rgba(25, 170, 116, .08));
}

.admin-app .home-metrics.dashboard-hero > div:nth-child(4)::after {
  background: linear-gradient(135deg, rgba(142, 86, 255, .20), rgba(142, 86, 255, .08));
}

.admin-app .home-metrics.dashboard-hero > div:nth-child(5)::after {
  background: linear-gradient(135deg, rgba(239, 71, 71, .20), rgba(239, 71, 71, .08));
}

.admin-app .home-metrics.dashboard-hero span {
  color: #49617f;
  opacity: 1;
}

.admin-app .home-metrics.dashboard-hero strong {
  color: #09224a;
  font-size: 26px;
}

.admin-app .compact-list {
  gap: 0;
}

.admin-app .compact-item {
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #e8eef7;
  border-radius: 0;
  color: #17304f;
  background: transparent;
  box-shadow: none;
}

.admin-app .compact-item:hover {
  color: #0d5ed7;
  background: #f7fbff;
}

.admin-app .compact-item strong {
  font-size: 14px;
}

.admin-app .compact-item span {
  color: #617492;
}

.admin-app .compact-item.danger-item {
  margin-bottom: 10px;
  border: 1px solid #ffd1d1;
  border-radius: 8px;
  color: #8f1f1f;
  background: linear-gradient(90deg, #fff1f1, #fff9f7);
}

.admin-app .detail-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e4edf9;
}

.admin-app .detail-head h3 {
  margin: 0;
  font-size: 20px;
}

.admin-app .stat {
  border-color: #dce8f8;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: none;
}

.admin-app .stat strong {
  color: #09224a;
  font-size: 22px;
}

.admin-app .file-board,
.admin-app .upload-panel,
.admin-app .responsibility-editor,
.admin-app .after-sale-box,
.admin-app .urgent-panel {
  border-color: #d8e6f6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(25, 75, 145, .06);
}

.admin-app .file-section {
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff, #fff);
}

.admin-app .file-section.paper { border-color: #bcd9ff; }
.admin-app .file-section.comment { border-color: #ddd3ff; }
.admin-app .file-section.reference { border-color: #f0d9a9; }
.admin-app .file-section.after { border-color: #bce8dc; }

.admin-app .upload-drop {
  border-color: #a9caff;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff, #f7fbff);
}

.admin-app .pagination,
.admin-app .pager {
  justify-content: flex-end;
  gap: 10px;
}

.admin-app .pagination button,
.admin-app .pager button {
  min-width: 38px;
  box-shadow: none;
}

.admin-app .pagination button.active,
.admin-app .pager button.active {
  color: #fff;
  background: linear-gradient(135deg, #1f77ff, #0d5ed7);
}

.admin-app .dashboard-filter {
  padding: 6px 2px;
}

.admin-app .dashboard-filter-controls .secondary,
.admin-app .dashboard-filter-controls button {
  min-height: 42px;
}

.admin-app .dashboard-insight {
  gap: 16px;
}

.admin-app .chart-grid {
  gap: 16px;
}

.admin-app .donut-chart {
  width: min(210px, 100%);
}

.admin-app .bar-chart {
  min-height: 210px;
}

.admin-app .home-metric-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-app .home-metric-card::after {
  display: none;
}

.admin-app .home-metric-card em {
  display: block;
  margin-top: 7px;
  color: #6a7b96;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.admin-app .home-metric-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1268ff;
  background: linear-gradient(135deg, rgba(32, 116, 255, .18), rgba(32, 116, 255, .08));
}

.admin-app .home-metric-icon .nav-icon {
  width: 30px;
  height: 30px;
  stroke-width: 2.2;
}

.home-svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-app .home-metric-icon .home-svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.2;
}

.admin-app .home-metric-card.metric-green {
  border-color: #ccebd8;
  background: linear-gradient(135deg, #ffffff, #f3fff7);
}

.admin-app .home-metric-card.metric-green strong {
  color: #14784c;
}

.admin-app .metric-green .home-metric-icon {
  color: #15975a;
  background: linear-gradient(135deg, rgba(22, 157, 91, .20), rgba(22, 157, 91, .08));
}

.admin-app .home-metric-card.metric-purple {
  border-color: #dfd4ff;
  background: linear-gradient(135deg, #ffffff, #fbf8ff);
}

.admin-app .metric-purple .home-metric-icon {
  color: #7a42ff;
  background: linear-gradient(135deg, rgba(122, 66, 255, .20), rgba(122, 66, 255, .08));
}

.admin-app .home-metric-card.metric-red {
  border-color: #ffd2ca;
  background: linear-gradient(135deg, #ffffff, #fff5f2);
}

.admin-app .home-metric-card.metric-red span,
.admin-app .home-metric-card.metric-red strong {
  color: #d23a2e;
}

.admin-app .metric-red .home-metric-icon {
  color: #ef443d;
  background: linear-gradient(135deg, rgba(239, 68, 61, .20), rgba(239, 68, 61, .08));
}

.admin-app .metric-yuan,
.admin-app .metric-alert {
  font-size: 30px;
  font-weight: 950;
}

.admin-app .timeout-overview {
  min-height: 88px;
  padding: 16px 24px;
}

.admin-app .timeout-copy {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-app .home-alert-round {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid #ef4444;
  border-radius: 999px;
  color: #ef4444;
  background: #fff7f7;
}

.admin-app .home-alert-round .nav-icon {
  width: 18px;
  height: 18px;
}

.admin-app .home-alert-round .home-svg {
  width: 18px;
  height: 18px;
}

.admin-app .home-grid {
  grid-template-columns: minmax(0, 1.28fr) minmax(420px, .72fr);
}

.admin-app .home-grid .panel {
  min-height: 318px;
  display: flex;
  flex-direction: column;
}

.admin-app .home-grid .panel h3,
.admin-app .home-pending-panel h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.admin-app .compact-item {
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.admin-app .compact-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-app .compact-item time {
  color: #6a7b96;
  font-size: 13px;
  font-weight: 800;
}

.admin-app .compact-item b {
  padding: 5px 11px;
  border-radius: 999px;
  color: #1268ff;
  background: #eaf3ff;
  font-size: 12px;
  font-weight: 950;
}

.admin-app .home-list-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #1d73ff;
}

.admin-app .home-list-icon .nav-icon {
  width: 24px;
  height: 24px;
}

.admin-app .home-list-icon .home-svg {
  width: 24px;
  height: 24px;
}

.admin-app .home-dispute-panel .compact-list {
  flex: 1;
}

.admin-app .home-dispute-item {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 72px;
}

.admin-app .home-danger-icon,
.admin-app .home-warning-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #ef4444;
  box-shadow: 0 8px 18px rgba(239, 68, 68, .22);
  font-size: 16px;
  font-style: normal;
  font-weight: 950;
}

.admin-app .home-panel-link {
  align-self: center;
  margin-top: auto;
  color: #1268ff;
  background: transparent;
  box-shadow: none;
}

.admin-app .home-panel-link:hover {
  color: #075ad8;
  background: transparent;
  box-shadow: none;
}

.admin-app .home-pending-panel {
  padding: 22px 24px;
}

.admin-app .home-pending-list {
  display: grid;
  gap: 10px;
}

.admin-app .home-pending-item {
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #ffc9c9;
  border-radius: 9px;
  background: linear-gradient(90deg, #fff1f1, #fff8f6);
}

.admin-app .home-pending-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  text-align: left;
  color: #17304f;
  background: transparent;
  box-shadow: none;
}

.admin-app .home-pending-main:hover {
  color: #0d5ed7;
  background: transparent;
  box-shadow: none;
}

.admin-app .home-pending-main span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-app .home-pending-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-app .home-pending-main small {
  overflow: hidden;
  color: #667a98;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.admin-app .home-pending-item time {
  color: #ef4444;
  font-weight: 900;
}

.admin-app .home-go-process {
  min-width: 76px;
}

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

.modal-card {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 38, .24);
}

.modal-card.wide-modal {
  width: min(760px, 100%);
}

.system-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 38, .5);
  backdrop-filter: blur(8px);
}

.system-dialog-card {
  width: min(100%, 440px);
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 1px solid #dce4ef;
  border-radius: 14px;
  padding: 34px;
  color: #17233c;
  text-align: center;
  background: #fff;
  box-shadow: 0 24px 64px rgba(20, 38, 66, .24);
}

.system-dialog-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1677ff;
  font-size: 28px;
  font-weight: 950;
}

.system-dialog-card.success .system-dialog-icon {
  background: #16b777;
}

.system-dialog-card.error .system-dialog-icon {
  background: #ef4444;
}

.system-dialog-card.confirm .system-dialog-icon {
  background: #f59e0b;
}

.system-dialog-card h3 {
  margin: 2px 0 0;
  color: #17233c;
  font-size: 22px;
  line-height: 1.35;
}

.system-dialog-card p {
  max-width: 350px;
  margin: 0;
  color: #738198;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.system-dialog-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 5px;
}

.system-dialog-primary,
.system-dialog-secondary {
  width: 100%;
  min-height: 43px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
}

.system-dialog-primary {
  border: 1px solid #1677ff;
  color: #fff;
  background: #1677ff;
}

.system-dialog-secondary {
  border: 1px solid #dce4ef;
  color: #526176;
  background: #fff;
}

.system-dialog-card > .system-dialog-primary {
  margin-top: 5px;
}

.system-dialog-input-card {
  justify-items: stretch;
  text-align: left;
}

.system-dialog-input-card .system-dialog-icon,
.system-dialog-input-card h3,
.system-dialog-input-card p {
  justify-self: center;
  text-align: center;
}

.system-dialog-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  padding: 0 14px;
  color: #17233c;
  font: inherit;
  outline: none;
  background: #f8fbff;
}

.system-dialog-input:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 4px rgba(22, 119, 255, .12);
  background: #fff;
}

@media (max-width: 520px) {
  .system-dialog-backdrop {
    padding: 16px;
  }

  .system-dialog-card {
    width: min(100%, 360px);
    border-radius: 14px;
    padding: 28px 20px;
  }

  .system-dialog-icon {
    width: 54px;
    height: 54px;
    font-size: 24px;
  }
}

.wide-modal textarea {
  min-height: 280px;
}

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

.modal-head h3 {
  margin: 0;
}

.bulk-order-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #ffd1d1;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff7f7, #fff);
}

.bulk-order-toolbar strong {
  display: block;
  color: #9b1c1c;
  font-weight: 950;
}

.bulk-order-toolbar span {
  color: #687386;
  font-weight: 800;
}

.select-col {
  width: 42px;
  text-align: center;
}

.select-col input {
  width: 17px;
  height: 17px;
  accent-color: #d33b3b;
}

.bulk-delete-modal {
  position: relative;
  width: min(520px, 100%);
  padding: 24px;
  border-color: #ffd0d0;
  background:
    radial-gradient(circle at 92% 8%, rgba(211, 59, 59, .12), transparent 28%),
    #fff;
}

.bulk-delete-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 950;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 14px 26px rgba(211, 59, 59, .24);
}

.bulk-delete-modal .field input {
  font-size: 17px;
  font-weight: 850;
}

.home-hero {
  min-height: 208px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-bottom: 18px;
  padding: 32px 36px;
  color: #fff;
  border-radius: 16px;
  background:
    radial-gradient(circle at 74% 26%, rgba(255,255,255,.24), transparent 18%),
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.18), transparent 20%),
    linear-gradient(135deg, var(--theme-side-start, #041739) 0%, var(--primary) 58%, var(--theme-accent, #16a5aa) 100%);
  box-shadow: 0 20px 46px rgba(18, 104, 255, .20);
  overflow: hidden;
  position: relative;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: auto -70px -110px 48%;
  height: 230px;
  border-radius: 999px;
  border-top: 2px solid rgba(255,255,255,.22);
  background:
    repeating-radial-gradient(ellipse at 62% 52%, rgba(255,255,255,.18) 0 1px, transparent 1px 12px);
  transform: rotate(-7deg);
}

.home-hero::after {
  content: "";
  position: absolute;
  right: 34px;
  top: 24px;
  width: 240px;
  height: 150px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.05));
  transform: rotate(-8deg);
  opacity: .7;
}

.home-hero-copy,
.home-hero-side {
  position: relative;
  z-index: 1;
}

.home-hero-copy {
  max-width: 780px;
}

.home-hero h1 {
  margin: 10px 0 10px;
  color: #fff;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 8px 28px rgba(3, 23, 64, .28);
}

.home-hero p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, .86);
  font-size: 15px;
  font-weight: 850;
}

.home-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.home-hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: rgba(255,255,255,.94);
  background: rgba(255,255,255,.12);
  font-size: 13px;
  font-weight: 900;
}

.home-hero-side {
  display: grid;
  gap: 16px;
  justify-items: end;
}

.home-hero-card {
  width: min(100%, 390px);
  min-height: 148px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 24px 26px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 26%, rgba(255,255,255,.34), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.10));
  box-shadow: 0 24px 54px rgba(2, 24, 62, .26), inset 0 1px 0 rgba(255,255,255,.30);
  backdrop-filter: blur(12px);
}

.home-hero-card i {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,255,255,.34), rgba(255,255,255,.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 16px 30px rgba(2, 24, 62, .16);
}

.home-hero-card .home-svg {
  width: 42px;
  height: 42px;
}

.home-hero-card span,
.home-hero-card em {
  display: block;
  color: #fff1a8;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Arial Black", sans-serif;
  font-style: normal;
  font-weight: 950;
}

.home-hero-card span {
  font-size: 20px;
  letter-spacing: .02em;
  text-shadow: 0 8px 20px rgba(0, 18, 58, .34), 0 0 18px rgba(255, 224, 115, .20);
}

.home-hero-card strong {
  display: block;
  margin: 5px 0 6px;
  color: #ffe26d;
  font-family: Impact, "Arial Black", "DIN Condensed", "Microsoft YaHei UI", sans-serif;
  font-size: 66px;
  line-height: .95;
  font-weight: 900;
  letter-spacing: .03em;
  text-shadow: 0 14px 34px rgba(0, 18, 58, .46), 0 0 18px rgba(255, 226, 109, .32);
}

.home-hero-card em {
  font-size: 20px;
  letter-spacing: .04em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #15527c;
  background: rgba(255, 255, 255, .88);
  font-size: 12px;
  font-weight: 800;
}

.home-actions {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.home-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
}

.home-actions .home-svg {
  width: 18px;
  height: 18px;
}

.home-actions .secondary {
  color: #fff;
  border-color: rgba(255,255,255,.42);
  background: rgba(255, 255, 255, .14);
}

.admin-app .home-actions .secondary {
  color: #fff;
  border-color: rgba(255,255,255,.42);
  background: rgba(255, 255, 255, .14);
}

.admin-app .home-actions .secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, .22);
}

.home-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
}

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

.compact-item {
  width: 100%;
  display: grid;
  gap: 5px;
  text-align: left;
  color: var(--text);
  background: #f8fbff;
  border: 1px solid #e4ebf4;
  box-shadow: none;
  padding: 12px;
}

.compact-item:hover {
  color: var(--text);
  background: #eef6ff;
  box-shadow: none;
}

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

.danger-item {
  background: #fff4f4;
  border-color: #f1c6c6;
}

.timeout-overview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #f0c1c1;
  background: linear-gradient(135deg, #fff4f4, #ffffff);
  box-shadow: 0 12px 28px rgba(211, 59, 59, .10);
}

.timeout-overview h3 {
  margin: 8px 0 5px;
  color: #8f1f1f;
}

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

.pending-head h3 {
  margin: 8px 0 5px;
}

.pending-rule-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-left: 5px solid var(--primary);
}

.pending-rule-panel h3 {
  margin: 8px 0 5px;
}

.pending-rule-form {
  display: grid;
  grid-template-columns: auto 96px auto;
  align-items: end;
  gap: 10px;
  min-width: 340px;
}

.pending-rule-form label {
  color: var(--muted);
  font-weight: 800;
}

.pending-batch-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.pending-batch-actions button {
  min-width: 158px;
  font-weight: 900;
}

.pending-batch-upload-modal {
  width: min(720px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  overflow: auto;
  padding: 24px;
}

.pending-batch-upload-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.pending-batch-upload-head h3 {
  margin: 8px 0 6px;
  font-size: 24px;
}

.pending-batch-upload-guide {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  color: #29415f;
  background: #f5f9ff;
}

.pending-batch-upload-guide ol {
  margin: 10px 0 0;
  padding-left: 22px;
  line-height: 1.75;
}

.pending-batch-upload-guide code {
  padding: 2px 6px;
  border-radius: 5px;
  color: #0b57d0;
  background: #e6efff;
}

.pending-batch-upload-drop {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  padding: 24px;
  border: 2px dashed #9fc2ff;
  border-radius: 16px;
  color: #365270;
  text-align: center;
  cursor: pointer;
  background: #fbfdff;
}

.pending-batch-upload-drop:hover {
  border-color: var(--primary);
  background: #f5f9ff;
}

.pending-batch-upload-drop input {
  width: min(100%, 390px);
}

.pending-batch-upload-result {
  margin-top: 16px;
  padding: 15px 17px;
  border: 1px solid #b9e3ce;
  border-radius: 12px;
  background: #f2fbf6;
}

.pending-batch-upload-result details {
  margin-top: 10px;
}

.pending-batch-upload-result ul {
  max-height: 180px;
  overflow: auto;
  margin: 10px 0 0;
  padding-left: 20px;
}

.pending-stats {
  display: flex;
  gap: 10px;
}

.pending-stats > div {
  min-width: 110px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.pending-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pending-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.pending-stats .danger-stat {
  color: #8f1f1f;
  border-color: #efb4b4;
  background: #fff4f4;
}

.pending-stats .urgent-stat {
  color: #9b271d;
  border-color: #f1b1a8;
  background: #fff0ec;
}

.timeout-row td {
  background: #fff3f3;
}

.urgent-row td {
  background: #ffebe6;
}

.timeout-pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #315177;
  background: #edf5ff;
  font-size: 12px;
  font-weight: 900;
}

.timeout-pill.danger {
  color: #fff;
  background: #d33b3b;
}

.timeout-detail {
  margin: 16px 0;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #d7e8ff;
  background: #edf5ff;
  color: #315177;
}

.timeout-detail.danger {
  border-color: #efb4b4;
  background: #fff1f1;
  color: #8f1f1f;
}

.timeout-detail p {
  margin: 6px 0 0;
  font-weight: 800;
}

.writer-management-panel {
  display: grid;
  gap: 18px;
}

.writer-management-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.writer-management-head h3 {
  margin: 8px 0 5px;
  color: #081a3a;
  font-weight: 950;
}

.writer-management-list {
  display: grid;
  gap: 16px;
}

.writer-stat-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #dbe7f6;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 14px 34px rgba(23, 43, 77, .07);
}

.writer-stat-top {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.writer-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #17a7c8);
  box-shadow: 0 12px 26px rgba(29, 111, 232, .18);
  font-size: 20px;
  font-weight: 950;
}

.writer-stat-top h4 {
  margin: 0 0 4px;
  color: #081a3a;
  font-size: 18px;
  font-weight: 950;
}

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

.writer-stat-grid > div {
  padding: 14px;
  border: 1px solid #e0e9f6;
  border-radius: 12px;
  background: #fff;
}

.writer-export-box {
  display: grid;
  grid-template-columns: 190px 150px 150px auto;
  gap: 10px;
  align-items: end;
}

.writer-export-box button {
  min-height: 40px;
  white-space: nowrap;
}

.writer-stat-grid.vivid {
  align-items: stretch;
}

.writer-metric-card {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  text-align: left;
  box-shadow: 0 16px 34px rgba(18, 104, 255, .18);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: linear-gradient(135deg, var(--module-color), var(--module-color-2));
}

.writer-metric-card::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.writer-metric-card span,
.writer-metric-card strong,
.writer-metric-card em {
  position: relative;
  z-index: 1;
}

.writer-metric-card span {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.writer-metric-card strong {
  margin: 0;
  color: #071833;
  font-size: 40px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}

.writer-metric-card em {
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.writer-metric-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(18, 104, 255, .24);
}

.writer-metric-card .module-color-button {
  justify-self: end;
  width: auto;
  min-height: 28px;
  padding: 4px 8px;
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.18);
  color: #fff;
}

.writer-stat-grid span {
  display: block;
  color: #5c6c82;
  font-size: 12px;
  font-weight: 850;
}

.writer-stat-grid strong {
  display: block;
  margin-top: 8px;
  color: #081a3a;
  font-size: 25px;
  font-weight: 950;
}

.writer-stat-grid .writer-metric-card span {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.writer-stat-grid .writer-metric-card strong {
  margin-top: 0;
  color: #071833;
  font-size: 40px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}

.writer-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.writer-chart {
  padding: 16px;
  border: 1px solid #dde8f6;
  border-radius: 14px;
  background: #fff;
}

.writer-chart h4 {
  margin: 0 0 12px;
  color: #081a3a;
  font-weight: 950;
}

.writer-chart-bars {
  display: grid;
  gap: 10px;
}

.writer-chart-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.writer-chart-row span {
  color: #536174;
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.writer-chart-row div {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3fb;
}

.writer-chart-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #17a7c8);
}

.writer-chart.danger .writer-chart-row i {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.writer-chart.warning .writer-chart-row i {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.settlement-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 28px 30px;
  border: 1px solid #cfe0f8;
  border-radius: 18px;
  color: #0a1d42;
  background:
    radial-gradient(circle at 88% 20%, rgba(18,104,255,.14), transparent 26%),
    linear-gradient(135deg, #ffffff, #f3f8ff);
  box-shadow: 0 18px 44px rgba(28, 62, 112, .1);
}

.settlement-hero h3 {
  margin: 8px 0 8px;
  color: #0a1d42;
  font-size: 30px;
  font-weight: 950;
}

.settlement-hero p,
.settlement-hero .eyebrow {
  color: #536174;
}

.settlement-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.settlement-filters .field {
  display: grid;
  gap: 5px;
  min-width: 150px;
}

.settlement-filters .field label {
  color: #5d6f8b;
  font-size: 12px;
  font-weight: 900;
}

.settlement-filters input,
.settlement-filters select {
  min-height: 42px;
  min-width: 160px;
  border: 1px solid #d6e3f4;
  color: #10244b;
  background: #fff;
}

.settlement-filters button {
  min-height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #16a5aa);
}

.settlement-summary-grid,
.settlement-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.settlement-summary-grid > div,
.settlement-metrics > div {
  position: relative;
  min-height: 104px;
  padding: 18px;
  border: 1px solid #dce8f7;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #f7fbff);
  box-shadow: 0 12px 28px rgba(31, 57, 92, .06);
}

.settlement-summary-grid > div.accent {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #15a36a, #1268ff);
}

.settlement-summary-grid span,
.settlement-metrics span {
  color: #5e718d;
  font-weight: 900;
}

.settlement-summary-grid .accent span,
.settlement-summary-grid .accent strong {
  color: #fff;
}

.settlement-summary-grid strong,
.settlement-metrics strong {
  display: block;
  margin-top: 8px;
  color: #0a1d42;
  font-size: 28px;
  font-weight: 950;
}

.settlement-summary-grid .module-color-card span,
.settlement-summary-grid .module-color-card strong,
.settlement-summary-grid .module-color-card em {
  color: #fff !important;
}

.settlement-metric-card {
  overflow: hidden;
  color: #fff;
  border: 0 !important;
  background: linear-gradient(135deg, var(--module-color), var(--module-color-2)) !important;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--module-color) 20%, transparent) !important;
}

.settlement-metric-card::after {
  content: "";
  position: absolute;
  right: -22px;
  top: -24px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: rgba(255,255,255,.17);
}

.settlement-metric-card span,
.settlement-metric-card strong,
.settlement-metric-card em {
  position: relative;
  z-index: 1;
  color: #fff !important;
}

.settlement-metric-card .module-color-button {
  border-color: rgba(255,255,255,.45);
  color: #fff;
  background: rgba(255,255,255,.18);
}

.settlement-metrics em {
  display: block;
  margin-top: 5px;
  color: #1268ff;
  font-style: normal;
  font-weight: 950;
}

.settlement-detail-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #dce8f7;
  border-radius: 12px;
  background: #f8fbff;
}

.settlement-detail-toggle span {
  color: #5e718d;
  font-weight: 850;
}

.settlement-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settlement-setting-panel,
.settlement-writer-setting-panel,
.settlement-order-commission-panel,
.settlement-all-detail {
  display: grid;
  gap: 14px;
}

.settlement-writer-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid #dce8f7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(31, 57, 92, .08);
}

.settlement-writer-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.settlement-writer-head h3 {
  margin: 6px 0;
  color: #081a3a;
  font-size: 24px;
  font-weight: 950;
}

.settlement-total-pay {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #13a86d, #16a5aa);
}

.settlement-total-pay::after {
  content: "";
  position: absolute;
  right: -22px;
  top: -24px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: rgba(255,255,255,.17);
}

.settlement-total-pay span,
.settlement-total-pay strong,
.settlement-total-pay small {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff;
}

.settlement-total-pay .module-color-button {
  border-color: rgba(255,255,255,.45);
  color: #fff;
  background: rgba(255,255,255,.18);
}

.settlement-total-pay strong {
  margin: 6px 0;
  font-size: 34px;
  font-weight: 950;
}

.settlement-list {
  display: grid;
  gap: 18px;
}

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

.settlement-group-card {
  padding: 14px;
  border: 1px solid #e0e9f6;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff, #fff);
}

.settlement-group-card strong {
  display: block;
  margin-bottom: 8px;
  color: #0b1f43;
  font-weight: 950;
}

.settlement-group-card p,
.settlement-group-card em {
  margin: 5px 0;
  color: #536174;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.settlement-group-card em {
  color: #1268ff;
}

.settlement-table th {
  color: #12264c;
  background: #f2f7ff;
}

.settlement-table td {
  vertical-align: top;
}

.settlement-phase {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  color: #1268ff;
  background: #edf5ff;
  font-weight: 950;
}

.settlement-rule-origin {
  display: block;
  width: max-content;
  margin-top: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #7351a7;
  background: #f3ecff;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.custom-commission-row {
  background: #fff7ed;
}

.settlement-order-commission-panel input[data-order-commission],
.settlement-writer-setting-panel input {
  max-width: 150px;
}

.settlement-order-commission-panel .panel-head,
.settlement-writer-setting-panel .panel-head,
.settlement-export-panel .panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.settlement-order-commission-panel .panel-head input {
  max-width: 360px;
}

.settlement-commission-search {
  display: flex;
  gap: 10px;
  align-items: center;
  width: min(680px, 100%);
}

.settlement-order-commission-panel .settlement-commission-search input {
  width: 100%;
  max-width: none;
  min-width: 420px;
  min-height: 46px;
}

.settlement-commission-search button {
  min-width: 96px;
  min-height: 46px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #16a5aa);
}

.settlement-commission-results {
  display: grid;
  gap: 10px;
}

.settlement-commission-results article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dce8f7;
  border-radius: 12px;
  background: #f8fbff;
}

@media (max-width: 900px) {
  .settlement-commission-results article {
    grid-template-columns: 1fr;
  }

  .settlement-commission-search {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .settlement-order-commission-panel .settlement-commission-search input {
    min-width: 0;
  }

  .settlement-commission-search button {
    width: 100%;
  }

  .settlement-export-panel .panel-head,
  .settlement-export-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .settlement-export-actions select,
  .settlement-export-actions button {
    width: 100%;
  }
}

.settlement-commission-results article strong,
.settlement-commission-results article span {
  display: block;
}

.settlement-commission-results article span,
.settlement-search-empty {
  color: #61718a;
  font-weight: 850;
}

.settlement-search-empty {
  padding: 18px;
  border: 1px dashed #cbd9ec;
  border-radius: 12px;
  background: #f8fbff;
}

.settlement-export-panel {
  gap: 16px;
}

.settlement-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.settlement-export-actions select {
  min-width: 190px;
  min-height: 42px;
  border: 1px solid #d6e3f4;
  border-radius: 10px;
  color: #10244b;
  background: #fff;
}

.settlement-export-actions button {
  min-height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #16a5aa);
}

.settlement-export-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid #dce8f7;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.settlement-export-fields label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #e1ebf7;
  border-radius: 10px;
  color: #12264c;
  font-size: 13px;
  font-weight: 850;
  background: #fff;
}

.settlement-export-fields input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.writer-chart-row strong {
  color: #0b1f43;
  font-weight: 950;
  text-align: right;
}

.writer-order-table table {
  min-width: 980px;
}

.modal-card.wide-modal.writer-detail-modal {
  width: min(1500px, calc(100vw - 28px));
  max-height: calc(100vh - 44px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.writer-detail-modal .modal-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.writer-detail-modal .modal-head h3 {
  margin: 0 0 6px;
}

.writer-detail-table {
  overflow: auto;
  max-height: calc(100vh - 170px);
}

.writer-detail-table table {
  min-width: 980px;
  table-layout: fixed;
  width: 100%;
}

.writer-detail-table th,
.writer-detail-table td {
  white-space: normal;
  word-break: break-word;
  padding: 10px;
  font-size: 13px;
}

.pending-writer-filter {
  min-width: 190px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

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

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

.field label {
  display: block;
  color: #536174;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(29, 111, 232, .65);
  box-shadow: 0 0 0 4px rgba(29, 111, 232, .10);
}

.field textarea {
  resize: vertical;
  min-height: 86px;
}

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.list-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto minmax(170px, auto) auto auto auto auto;
  align-items: end;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #dce8f7;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(248, 251, 255, .98), rgba(255, 255, 255, .96));
}

.list-controls .field {
  margin: 0;
}

.list-search-field input {
  min-width: 220px;
}

.list-page-summary {
  display: grid;
  gap: 2px;
  color: #55708f;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.list-page-summary strong {
  color: #10203c;
  font-size: 14px;
}

.list-controls select,
.list-jump input {
  height: 40px;
  border: 1px solid #d4e0ee;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font-weight: 700;
}

.list-jump {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.list-jump input {
  width: 74px;
  padding: 0 10px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1040px;
  background: #fff;
}

th, td {
  border-bottom: 1px solid #edf1f6;
  padding: 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.45;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f5f8fc;
  color: #3b485c;
  font-weight: 800;
  border-bottom: 1px solid var(--line-strong);
}

tbody tr {
  transition: background .14s ease;
}

tbody tr:hover td {
  background: #f8fbff;
}

.stat {
  border: 1px solid rgba(220, 228, 238, .95);
  border-radius: 12px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: var(--shadow-soft);
}

.stat.accent {
  border-color: #bcd5ff;
  background: linear-gradient(135deg, #ffffff, #edf5ff);
}

.stat strong {
  display: block;
  font-size: 24px;
  margin-top: 8px;
  line-height: 1.15;
}

.muted { color: var(--muted); }
.ok {
  color: var(--ok);
  font-weight: 800;
  background: var(--ok-soft);
  padding: 2px 7px;
  border-radius: 999px;
}
.warn {
  color: var(--warn);
  font-weight: 800;
  background: var(--warn-soft);
  padding: 2px 7px;
  border-radius: 999px;
}
.danger-text { color: var(--danger); font-weight: 800; }
.success-text { color: var(--ok); font-weight: 800; }

.password-edit-cell {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 250px;
}

.password-edit-cell input {
  min-height: 36px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.disabled-row td {
  color: #7c8799;
  background: #f6f8fb;
}

.muted-badge {
  background: #edf1f6;
  color: #667389;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  margin-top: 6px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-new {
  color: #315177;
  background: #edf3fb;
}

.status-work {
  color: #0f648a;
  background: #e6f6fb;
}

.status-info {
  color: #1d57a5;
  background: #e9f1ff;
}

.status-warn {
  color: #a45e00;
  background: #fff3d8;
}

.status-done {
  color: #14724f;
  background: #e7f7ef;
}

.status-cancel {
  color: #7b8492;
  background: #eef1f5;
}

.danger-badge {
  color: #fff;
  background: linear-gradient(135deg, var(--danger), #b82136);
  box-shadow: 0 6px 15px rgba(211, 59, 59, .2);
}

.urgent-badge {
  color: #fff;
  background: linear-gradient(135deg, #ff5d3f, #c92820);
  box-shadow: 0 6px 15px rgba(211, 59, 59, .22);
}

.urgent-soft {
  color: #b93b21;
  background: #fff0e8;
  border: 1px solid #ffd0bd;
}

.dispute-row td {
  background: var(--danger-soft);
  border-bottom-color: #f0b8b8;
}

.dispute-row:hover td {
  background: #ffe4e4;
}

.dispute-detail {
  border-color: #e19696;
  box-shadow: 0 16px 34px rgba(201, 53, 53, .14);
}

.urgent-detail {
  border-color: #ef9c8c;
  box-shadow: 0 16px 34px rgba(231, 77, 54, .14);
}

.urgent-box {
  border-color: #f0b2a7;
  background: #fff5f2;
}

.urgent-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #f3d1c7;
  background: linear-gradient(135deg, #fff7f3, #ffffff);
  box-shadow: 0 12px 30px rgba(215, 72, 42, .08);
}

.urgent-panel.active {
  border-color: #ed9a87;
  background: linear-gradient(135deg, #fff1eb, #fffaf7);
}

.urgent-panel p {
  margin: 5px 0 0;
}

.urgent-panel button {
  white-space: nowrap;
}

.urgent-panel [data-user-urgent] {
  display: none;
}

.urgent-upload-choice {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid #f1b8a8;
  border-radius: 12px;
  color: #a8321b;
  background: #fff4ef;
  font-weight: 900;
}

.urgent-upload-choice input {
  width: 16px;
  height: 16px;
}

.urgent-upload-choice small {
  color: #c75a3c;
  font-size: 12px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.actions button {
  padding: 8px 11px;
}

.chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.dashboard-filter {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.dashboard-filter h3 {
  margin: 6px 0 4px;
  font-size: 20px;
}

.dashboard-filter p {
  margin: 0;
}

.dashboard-filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-hero > div {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: 12px;
  padding: 14px;
  min-height: 86px;
  background: linear-gradient(135deg, #1d6fe8, #16a085);
  box-shadow: var(--shadow);
}

.dashboard-hero > div::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -36px;
  width: 98px;
  height: 98px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}

.dashboard-hero > div:nth-child(2) { background: linear-gradient(135deg, #172033, #1d6fe8); }
.dashboard-hero > div:nth-child(3) { background: linear-gradient(135deg, #16835f, #e0a11b); }
.dashboard-hero > div:nth-child(4) { background: linear-gradient(135deg, #6d5df4, #1d6fe8); }
.dashboard-hero > div:nth-child(5) { background: linear-gradient(135deg, #d33b3b, #e0a11b); }

.dashboard-hero > div.total-deal-card {
  background: linear-gradient(135deg, #101827, #16a085);
  grid-column: span 2;
}

.dashboard-hero > div.total-deal-card strong {
  font-size: 26px;
}

.dashboard-hero span {
  display: block;
  opacity: .9;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-hero strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.1;
}

.dashboard-insight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.dashboard-insight > div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-soft);
}

.dashboard-insight span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

.dashboard-insight strong {
  font-size: 16px;
}

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

.chart-card {
  background: var(--panel-solid);
  border: 1px solid rgba(211, 221, 234, .9);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.chart-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.donut-chart {
  width: min(240px, 100%);
  aspect-ratio: 1 / 1;
  margin: 4px auto 8px;
  display: grid;
  place-items: center;
}

.donut-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.donut-svg path,
.donut-svg .donut-segment {
  cursor: pointer;
  transform-origin: 100px 100px;
  transition: transform .15s ease, filter .15s ease;
}

.donut-svg path:hover,
.donut-svg .donut-segment:hover {
  transform: scale(1.035);
  filter: drop-shadow(0 8px 14px rgba(15, 23, 38, .16));
}

.donut-svg text {
  fill: #172033;
  font-size: 20px;
  font-weight: 800;
}

.donut-svg .donut-subtext {
  fill: #687386;
  font-size: 10px;
  font-weight: 800;
}

.bar-chart {
  min-height: 210px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(42px, 1fr);
  align-items: end;
  gap: 12px;
  padding: 12px 12px 8px;
  border: 1px solid #edf1f6;
  border-radius: 12px;
  background:
    linear-gradient(to top, rgba(220, 228, 238, .45) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(180deg, #ffffff, #fbfdff);
  overflow-x: auto;
}

.monthly-chart {
  min-height: 230px;
  grid-auto-columns: minmax(58px, 1fr);
}

.bar-item {
  min-width: 42px;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: end;
  gap: 6px;
  cursor: pointer;
}

.bar-value {
  min-height: 18px;
  text-align: center;
  color: #172033;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.bar-track {
  height: 145px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.monthly-chart .bar-track {
  height: 160px;
}

.bar-fill {
  width: min(54px, 78%);
  min-height: 4px;
  border-radius: 6px 6px 2px 2px;
  box-shadow: 0 10px 18px rgba(29, 111, 232, .16);
  transition: transform .16s ease, filter .16s ease;
}

.bar-item:hover .bar-fill {
  transform: scaleY(1.04);
  filter: brightness(1.05);
}

.bar-label {
  min-height: 30px;
  color: #657086;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  writing-mode: horizontal-tb;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.empty-chart {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 999px;
}

.chart-card.wide-chart {
  grid-column: span 3;
  order: -1;
}

.chart-info {
  margin-top: 8px;
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 8px;
  color: #315177;
  background: #edf5ff;
  border: 1px solid #d7e8ff;
  font-size: 13px;
  font-weight: 800;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 3px;
}

.search-panel {
  margin: -2px -2px 18px;
  padding: 16px;
  border: 1px solid #e2e9f2;
  border-radius: 12px;
  background: linear-gradient(180deg, #f9fbfe, #f2f6fb);
}

.search-actions {
  align-items: center;
  padding-top: 23px;
}

.after-sale-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #efd2d2;
  background: linear-gradient(135deg, #fff8f8, #ffffff);
}

.after-sale-box p {
  margin: 5px 0 0;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.detail-head h3 {
  margin: 0;
}

.detail-head button {
  flex: 0 0 auto;
}

.payment-records {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #c8d9f1;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4f8ff, #ffffff);
  box-shadow: 0 12px 30px rgba(30, 82, 150, .08);
}

.payment-record-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.payment-record-head strong {
  display: block;
  color: #172033;
  font-size: 18px;
}

.payment-record-head p {
  margin: 5px 0 0;
}

.payment-record-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.payment-record-summary span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #1459bd;
  background: #eaf3ff;
  font-size: 12px;
  font-weight: 900;
}

.payment-record-table table {
  min-width: 780px;
}

.quick-opinion-panel {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid #ffb6b6;
  border-left: 6px solid #d33b3b;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 242, 242, .96), rgba(255, 255, 255, .98)),
    radial-gradient(circle at 12% 10%, rgba(211, 59, 59, .12), transparent 34%);
  box-shadow: 0 18px 42px rgba(150, 35, 35, .10);
}

.quick-opinion-copy h3 {
  margin: 8px 0 8px;
  color: #8f1f1f;
  font-size: 22px;
}

.quick-opinion-copy p {
  margin: 0;
  color: #7a2d2d;
  font-weight: 800;
  line-height: 1.65;
}

.quick-opinion-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.quick-opinion-form button {
  min-height: 42px;
  background: linear-gradient(135deg, #d33b3b, #a72727);
}

.quick-opinion-status {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.file-board {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.file-board-title h3 {
  margin: 0 0 5px;
}

.file-board-title p {
  margin: 0;
}

.file-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.file-section.paper {
  border-color: #9fc7ff;
  background: linear-gradient(135deg, #f0f7ff, #ffffff);
  box-shadow: 0 14px 34px rgba(29, 111, 232, .10);
}

.file-section.comment {
  border-color: #c8b8ff;
  background: linear-gradient(135deg, #f6f2ff, #ffffff);
  box-shadow: 0 14px 34px rgba(123, 97, 255, .10);
}

.file-section.reference {
  border-color: #f0d28a;
  background: linear-gradient(135deg, #fff9e8, #ffffff);
  box-shadow: 0 14px 34px rgba(224, 161, 27, .10);
}

.file-section.after {
  border-color: #9de5c9;
  background: linear-gradient(135deg, #effff7, #ffffff);
  box-shadow: 0 14px 34px rgba(22, 131, 95, .10);
}

.file-section.other {
  border-color: #e1e6ee;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.file-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.file-section-head h4 {
  margin: 0 0 4px;
  font-size: 18px;
}

.file-section-head p {
  margin: 0;
}

.file-section-head > span {
  color: var(--muted);
  background: #f0f4f9;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.file-card-list {
  display: grid;
  gap: 10px;
}

.file-limit-note {
  padding: 10px 12px;
  border: 1px dashed #c8d8ee;
  border-radius: 12px;
  background: #f7fbff;
  color: #5c6c82;
  font-weight: 700;
  text-align: center;
}

.file-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e3ebf5;
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.file-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(21, 32, 54, .08);
}

.file-card.paper {
  border-color: #c7ddff;
}

.file-card.comment {
  border-color: #d8ceff;
}

.file-card.reference {
  border-color: #f0dca6;
}

.file-card.after {
  border-color: #bee6d5;
}

.file-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #1d6fe8, #0f4fb0);
  font-size: 13px;
  font-weight: 900;
}

.file-card.comment .file-icon {
  background: linear-gradient(135deg, #7b61ff, #5b46cf);
}

.file-card.reference .file-icon {
  background: linear-gradient(135deg, #e0a11b, #b57608);
}

.file-card.after .file-icon {
  background: linear-gradient(135deg, #16a085, #16835f);
}

.file-card.other .file-icon {
  background: linear-gradient(135deg, #687386, #3b485c);
}

.file-card-main {
  min-width: 0;
}

.file-card-title {
  font-weight: 900;
  color: #172033;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.file-card-meta span:not(.file-tag) {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1f5f9;
}

.empty-file-state {
  padding: 24px;
  border: 1px dashed #cbd6e4;
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, .66);
}

.file-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.file-tag.paper {
  color: #1b5b9b;
  background: #e7f1ff;
}

.file-tag.comment {
  color: #5b46cf;
  background: #f0ebff;
}

.file-tag.reference {
  color: #8a5b00;
  background: #fff4d6;
}

.file-tag.after {
  color: #14724f;
  background: #e7f7ef;
}

.file-tag.other {
  color: #5c6675;
  background: #eef1f5;
}

.upload-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #bcd5ff;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(237, 245, 255, .92), rgba(255, 255, 255, .98)),
    #fff;
  box-shadow: 0 16px 38px rgba(29, 111, 232, .10);
}

.upload-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.upload-head h3 {
  margin: 8px 0 5px;
}

.upload-head p {
  margin: 0;
}

.upload-drop {
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
  border: 2px dashed #8dbbff;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(29, 111, 232, .10), transparent 42%),
    #ffffff;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.upload-drop:hover {
  border-color: var(--primary);
  background: #f6fbff;
  transform: translateY(-1px);
}

.upload-drop.dragging {
  border-color: #0fa3b1;
  background: #effdff;
  box-shadow: 0 16px 32px rgba(15, 163, 177, .14);
}

.upload-drop input {
  display: none;
}

.upload-drop strong {
  color: #1459bd;
  font-size: 18px;
}

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

.upload-drop em {
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  color: #315177;
  background: #edf5ff;
  font-style: normal;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px) auto;
  align-items: end;
  gap: 12px;
  margin-top: 14px;
}

.upload-controls button {
  min-height: 42px;
}

.pending-upload-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.pending-upload-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #d8e5f4;
  border-radius: 12px;
  background: #f8fbff;
}

.pending-upload-item strong {
  display: block;
  color: #172033;
  word-break: break-all;
}

.pending-upload-item span {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.pending-upload-empty {
  padding: 12px;
  border: 1px dashed #cbd6e4;
  border-radius: 12px;
  color: var(--muted);
  background: #ffffff;
}

.ui-logo-preview {
  width: 96px;
  height: 96px;
  object-fit: contain;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.ui-theme-divider {
  padding: 12px 14px;
  border: 1px solid #d7e8ff;
  border-radius: 12px;
  background: #f3f8ff;
}

.ui-theme-divider strong {
  display: block;
  margin-bottom: 4px;
  color: #183258;
}

.ui-theme-divider p {
  margin: 0;
}

.ui-switch-card {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #d7e8ff;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
  box-shadow: 0 12px 26px rgba(29, 111, 232, .06);
}

.ui-switch-card input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.ui-switch-card b,
.ui-switch-card small {
  display: block;
}

.ui-switch-card b {
  color: #183258;
  font-size: 15px;
}

.ui-switch-card small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 12px;
}

.preset-hero h3 {
  margin: 6px 0;
  font-size: 22px;
}

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

.preset-card {
  background: var(--panel-solid);
  border: 1px solid rgba(211, 221, 234, .9);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.preset-card.span-2 {
  grid-column: span 2;
}

.preset-card label {
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
}

.preset-card p {
  margin: 0 0 10px;
}

.preset-card textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  outline: none;
  line-height: 1.6;
}

.preset-card textarea:focus {
  border-color: rgba(29, 111, 232, .65);
  box-shadow: 0 0 0 4px rgba(29, 111, 232, .10);
}

.payment-manage-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 5% 0%, rgba(28,112,232,.15), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(242,247,255,.98));
}

.payment-manage-hero h3 {
  margin: 6px 0 8px;
  color: #10203c;
  font-size: clamp(22px, 2vw, 28px);
}

.payment-manage-hero p {
  max-width: 760px;
  margin: 0;
  line-height: 1.7;
}

.payment-manage-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 300px;
}

.payment-manage-status div {
  padding: 12px;
  border: 1px solid rgba(210,222,238,.9);
  border-radius: 14px;
  background: rgba(255,255,255,.86);
}

.payment-manage-status span {
  display: block;
  margin-bottom: 8px;
  color: #66758e;
  font-size: 12px;
}

.payment-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.payment-status-pill.ready {
  color: #087443;
  background: #dcfce7;
}

.payment-status-pill.pending {
  color: #9a5212;
  background: #fff3d6;
}

.payment-manage-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
  padding: 6px;
  margin: 14px 0;
  width: min(100%, 520px);
  border: 1px solid rgba(210,222,238,.9);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 26px rgba(32, 79, 140, .06);
}

.payment-manage-tabs button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  color: #526179;
  background: transparent;
}

.payment-manage-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 10px 24px rgba(29,111,232,.2);
}

.payment-manage-grid {
  align-items: start;
  gap: 18px;
}

.payment-interface-view,
.payment-products-view {
  margin-bottom: 26px;
}

.payment-record-manage {
  display: grid;
  gap: 16px;
}

.payment-record-manage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

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

.payment-record-summary-grid div {
  padding: 14px;
  border: 1px solid rgba(210,222,238,.9);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #f6f9ff);
}

.payment-record-summary-grid span,
.payment-record-summary-grid em {
  display: block;
  color: #65748b;
  font-size: 12px;
  font-style: normal;
}

.payment-record-summary-grid strong {
  display: block;
  margin-top: 6px;
  color: #10223f;
  font-size: 22px;
}

.payment-record-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(210,222,238,.9);
  border-radius: 16px;
  background: rgba(248,251,255,.9);
}

.payment-record-filters .span-2 {
  grid-column: span 2;
}

.payment-record-filter-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.payment-record-admin-table {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(210,222,238,.9);
  border-radius: 16px;
  background: #fff;
}

.payment-record-admin-table table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.payment-record-admin-table th,
.payment-record-admin-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(226,232,240,.9);
  text-align: left;
  vertical-align: top;
}

.payment-record-admin-table th {
  color: #526179;
  font-size: 12px;
  background: #f8fbff;
}

.payment-record-admin-table tr:last-child td {
  border-bottom: 0;
}

.payment-record-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.payment-record-status.paid {
  color: #087443;
  background: #dcfce7;
}

.payment-record-status.pending {
  color: #9a5212;
  background: #fff3d6;
}

.payment-record-status.failed {
  color: #a12626;
  background: #fee2e2;
}

@media (max-width: 760px) {
  .payment-record-manage-head,
  .payment-record-filter-actions {
    display: grid;
  }

  .payment-record-summary-grid,
  .payment-record-filters {
    grid-template-columns: 1fr;
  }

  .payment-record-filters .span-2 {
    grid-column: auto;
  }

  .payment-record-admin-table table {
    min-width: 920px;
  }
}

.payment-provider-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.payment-provider-head > div:first-child {
  min-width: 0;
}

.payment-provider-head > div:first-child > label {
  margin: 0 0 7px;
  color: #10203c;
  font-size: 20px;
  font-weight: 950;
}

.payment-provider-head p {
  max-width: 980px;
  margin: 0;
  line-height: 1.65;
}

.payment-provider-card.alipay {
  border-color: rgba(22,119,255,.22);
  box-shadow: 0 14px 36px rgba(22,119,255,.08);
  background: linear-gradient(180deg, #fbfdff 0, #fff 150px);
}

.payment-provider-card.wechat {
  border-color: rgba(18,174,104,.22);
  box-shadow: 0 14px 36px rgba(18,174,104,.08);
  background: linear-gradient(180deg, #fbfffd 0, #fff 150px);
}

.payment-provider-card {
  padding: 22px;
  border-radius: 18px;
}

/* Payment checkboxes must stay compact. Generic .field input styles otherwise
   stretch nested checkbox inputs to the full field width. */
.payment-manage-grid input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: #1d6fe8;
  box-shadow: none !important;
}

.payment-manage-grid .check-row {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}

.payment-provider-enable,
.payment-inline-toggle {
  padding: 12px 14px;
  border: 1px solid #d8e3f2;
  border-radius: 12px;
  color: #183258;
  background: #f8fbff;
}

.payment-provider-enable {
  margin-bottom: 14px !important;
}

.payment-provider-enable > span,
.payment-inline-toggle > span {
  display: grid;
  gap: 3px;
}

.payment-provider-enable b,
.payment-inline-toggle b {
  color: #142847;
  font-size: 14px;
  font-weight: 950;
}

.payment-provider-enable small,
.payment-inline-toggle small {
  color: #718096;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.payment-manage-grid .check-row:has(input:checked) {
  border-color: #8eb8fb;
  background: #eef5ff;
}

.payment-provider-card.wechat .check-row:has(input:checked) {
  border-color: rgba(18, 174, 104, .34);
  background: rgba(18, 174, 104, .075);
}

.payment-readiness {
  display: grid;
  gap: 5px;
  margin: 10px 0 14px;
  padding: 13px 14px;
  border: 1px solid;
  border-radius: 14px;
  line-height: 1.55;
}

.payment-readiness.ready {
  color: #0a7043;
  border-color: rgba(18,174,104,.3);
  background: rgba(18,174,104,.08);
}

.payment-readiness.invalid {
  color: #9b2c2c;
  border-color: rgba(220,38,38,.24);
  background: rgba(254,226,226,.62);
}

.payment-readiness span {
  color: inherit;
  opacity: .88;
}

.payment-simple-note {
  display: grid;
  gap: 8px;
  margin: 10px 0 14px;
  padding: 14px;
  border: 1px solid rgba(22,119,255,.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239,247,255,.96), rgba(255,255,255,.98));
}

.payment-simple-note strong {
  color: #12315d;
}

.payment-simple-note span {
  color: #64748b;
  line-height: 1.6;
}

.payment-simple-note button {
  justify-self: start;
}

.payment-provider-card.alipay:not(.show-advanced) .payment-advanced-field {
  display: none;
}

.payment-provider-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 18px;
}

.payment-provider-fields .field {
  min-width: 0;
}

.payment-provider-fields .field > label:first-child:not(.check-row) {
  margin-bottom: 7px;
  color: #324662;
  font-size: 13px;
}

.payment-provider-fields .field > .muted {
  margin: 6px 0 0;
  line-height: 1.55;
}

.payment-config-section {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #dbe5f2;
  border-radius: 16px;
  background: rgba(249, 251, 255, .78);
}

.payment-config-section-featured {
  border-color: rgba(18, 174, 104, .24);
  background: linear-gradient(180deg, rgba(240, 253, 247, .9), rgba(255,255,255,.96));
}

.payment-config-section-security {
  border-color: #eadfcf;
  background: linear-gradient(180deg, #fffcf7, #fff);
}

.payment-config-section-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 15px;
}

.payment-section-index {
  display: inline-flex;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #1d6fe8;
  background: #eaf2ff;
  font-size: 12px;
  font-weight: 950;
}

.payment-config-section-head h4 {
  margin: 0 0 4px;
  color: #152b4d;
  font-size: 16px;
}

.payment-config-section-head p {
  margin: 0;
  color: #718096;
  font-size: 12px;
  line-height: 1.55;
}

.payment-products-view .payment-products-head-card {
  grid-column: 1 / -1;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(238,246,255,.95), rgba(255,255,255,.98));
}

.payment-products-head-card > label:first-child {
  color: #10203c;
  font-size: 20px;
}

.payment-products-intro {
  display: grid;
  gap: 5px;
  margin: 8px 0 15px;
  padding: 13px 15px;
  border-left: 4px solid #2b7cff;
  border-radius: 0 10px 10px 0;
  background: rgba(255,255,255,.72);
}

.payment-products-intro p {
  margin: 0;
  color: #5f7088;
  line-height: 1.6;
}

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

.payment-products-view .span-3,
.payment-products-view .preset-actions {
  grid-column: 1 / -1;
}

.payment-product-package-card {
  position: relative;
  overflow: hidden;
  padding-top: 20px;
}

.payment-product-package-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: #2f7cf6;
}

.payment-product-package-card.ppt::before {
  background: #7357f6;
}

.payment-product-package-card.reduce::before {
  background: #12ae68;
}

.payment-product-package-card > label:first-child,
.payment-manual-card > label:first-child {
  color: #132847;
  font-size: 17px;
}

.payment-product-package-card textarea {
  min-height: 230px;
  border-color: #d7e2f0;
  background: #fbfdff;
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 13px;
}

.payment-manual-card {
  padding: 20px;
}

.payment-method-visibility {
  margin: 16px 0;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(170px, 220px));
  gap: 12px;
  align-items: stretch;
  border: 1px solid #dbe8fb;
  border-radius: 8px;
  background: #fff;
}

.payment-method-visibility > div {
  display: grid;
  align-content: center;
  gap: 5px;
}

.payment-method-visibility > div span,
.payment-method-toggle small {
  color: #64748b;
  line-height: 1.45;
}

.payment-method-toggle {
  min-height: 66px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "input title" "input note";
  gap: 2px 9px;
  align-items: center;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fbff;
  cursor: pointer;
}

.payment-method-toggle input {
  grid-area: input;
}

.payment-method-toggle b {
  grid-area: title;
}

.payment-method-toggle small {
  grid-area: note;
}

.payment-method-toggle:has(input:checked) {
  border-color: #7aa9ff;
  background: #eef5ff;
  box-shadow: 0 6px 18px rgba(36, 104, 242, .1);
}

.payment-manage-grid .secret-clear-row {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0;
  padding: 6px 10px;
  border: 1px solid #f3c8c8;
  border-radius: 9px;
  color: #a92d28;
  background: #fff7f7;
  font-size: 12px;
  line-height: 1;
}

.payment-manage-grid .secret-clear-row:has(input:checked) {
  border-color: #ef8b86;
  background: #fff0ef;
}

.payment-manage-grid .preset-actions {
  position: sticky;
  z-index: 3;
  bottom: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d9e5f3;
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 32px rgba(25, 66, 122, .12);
  backdrop-filter: blur(12px);
}

.payment-manage-grid .preset-actions button {
  min-width: 138px;
  min-height: 44px;
  padding: 0 18px;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .payment-products-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-products-view .payment-products-head-card,
  .payment-products-view .payment-manual-card,
  .payment-products-view .preset-actions {
    grid-column: 1 / -1;
  }

  .payment-method-visibility {
    grid-template-columns: 1fr 1fr;
  }

  .payment-method-visibility > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .payment-manage-hero,
  .payment-provider-card,
  .payment-products-head-card,
  .payment-manual-card {
    padding: 16px;
  }

  .payment-manage-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .payment-manage-status {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-provider-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .payment-provider-head .payment-status-pill {
    justify-self: start;
  }

  .payment-products-view,
  .payment-provider-fields,
  .payment-method-visibility {
    grid-template-columns: minmax(0, 1fr);
  }

  .payment-products-view > *,
  .payment-provider-fields .span-2,
  .payment-method-visibility > div {
    grid-column: auto;
  }

  .payment-config-section {
    padding: 14px;
  }

  .payment-manage-tabs {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .payment-manage-tabs button {
    min-width: 0;
    padding: 0 8px;
    white-space: nowrap;
  }

  .payment-manage-grid .preset-actions {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
  }

  .payment-manage-grid .preset-actions button {
    width: 100%;
  }
}

.payment-recommend-field {
  margin: 10px 0 12px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto 86px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  border: 1px solid #dbe8fb;
  border-radius: 8px;
  background: #f8fbff;
}

.payment-recommend-field span {
  color: #17233c;
  font-weight: 900;
}

.payment-recommend-field input {
  min-height: 36px;
  text-align: center;
}

.payment-recommend-field small {
  color: #64748b;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .payment-method-visibility {
    grid-template-columns: 1fr;
  }

  .payment-recommend-field {
    grid-template-columns: 1fr;
  }
}

.payment-detached-tip {
  border-style: dashed;
  background: #f8fbff;
}

.mobile-pay-loading {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-weight: 800;
}

.preset-actions {
  grid-column: span 2;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 520 / 220;
  border: 1px solid #edf1f6;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  cursor: pointer;
}

.wide-chart canvas {
  aspect-ratio: 1080 / 240;
}

.chart-tooltip {
  position: fixed;
  z-index: 20;
  display: none;
  max-width: 260px;
  padding: 8px 10px;
  color: #fff;
  background: rgba(15, 23, 38, .92);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
  box-shadow: 0 12px 28px rgba(15, 23, 38, .22);
}

.notice {
  padding: 12px 14px;
  border: 1px solid #bcd5ff;
  background: linear-gradient(135deg, #edf5ff, #f7fbff);
  color: #255179;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 700;
}

.recognition-panel {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #bcd5ff;
  border-radius: 14px;
  background: linear-gradient(135deg, #f3f8ff, #ffffff);
  box-shadow: 0 14px 34px rgba(29, 111, 232, .08);
}

.recognition-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.recognition-head h3 {
  margin: 7px 0 5px;
}

.recognition-head p {
  margin: 0;
}

.recognition-panel textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  resize: vertical;
  outline: none;
}

.recognition-panel textarea:focus {
  border-color: rgba(29, 111, 232, .65);
  box-shadow: 0 0 0 4px rgba(29, 111, 232, .10);
}

.recognition-panel #recognizeHint {
  margin: 10px 0 0;
  font-weight: 800;
}

.announcement-banner {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #efb4b4;
  border-left: 6px solid #d33b3b;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff1f1, #fff8f8);
  color: #8f1f1f;
  box-shadow: 0 12px 28px rgba(211, 59, 59, .12);
}

.announcement-banner strong {
  display: block;
  margin-bottom: 9px;
  font-size: 17px;
}

.announcement-banner pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  line-height: 1.75;
  font-weight: 800;
}

.announcement-banner.preview {
  margin-top: 16px;
}

.announcement-editor textarea {
  min-height: 310px;
  line-height: 1.7;
}

.announcement-editor-grid,
.announcement-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.announcement-editor-head h3 {
  margin: 8px 0 5px;
  font-size: 22px;
}

.responsibility-banner {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #efb4b4;
  border-left: 6px solid #d33b3b;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff1f1, #fffafa);
  color: #8f1f1f;
  box-shadow: 0 12px 28px rgba(211, 59, 59, .12);
}

.responsibility-banner strong {
  display: block;
  margin-bottom: 9px;
  font-size: 17px;
}

.responsibility-banner pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  line-height: 1.75;
  font-weight: 800;
}

.responsibility-editor {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #d7e8ff;
  background: linear-gradient(135deg, #f3f8ff, #ffffff);
}

.responsibility-editor p {
  margin: 5px 0 0;
}

.responsibility-editor textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  line-height: 1.7;
  outline: none;
}

.responsibility-editor textarea:focus {
  border-color: rgba(29, 111, 232, .65);
  box-shadow: 0 0 0 4px rgba(29, 111, 232, .10);
}

@media (max-width: 1200px) {
  .dashboard-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analysis-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-hero > div.total-deal-card {
    grid-column: span 2;
  }

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

  .chart-card.wide-chart {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid, .form-grid, .chart-row, .dashboard-hero, .chart-grid, .home-metrics, .home-grid, .preset-grid, .dashboard-insight, .analysis-metrics, .writer-stat-grid, .writer-visual-grid, .writer-management-head, .writer-export-box { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: auto; }
  .main { padding: 16px; }
  .home-hero {
    grid-template-columns: 1fr;
    align-items: flex-start;
    padding: 24px;
  }

  .home-hero-side,
  .home-hero-card {
    width: 100%;
    justify-items: stretch;
  }
  .preset-actions { grid-column: auto; justify-content: flex-start; }
  .login-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 84px 20px 28px;
  }
  .login-top-brand {
    left: 22px;
    top: 22px;
    font-size: 28px;
  }
  .login-top-brand img {
    width: 56px;
    height: 56px;
  }
  .login-copy {
    min-height: 440px;
  }
  .login-title-block {
    top: 0;
    left: 0;
  }
  .login-title-block h1 {
    font-size: 38px;
  }
  .login-title-block span {
    font-size: 32px;
  }
  .paper-visual {
    width: 100%;
    left: 0;
    bottom: 0;
    height: 310px;
  }
  .paper-check {
    width: 92px;
    height: 92px;
    bottom: 150px;
    font-size: 42px;
  }
  .paper-stack {
    left: 60px;
    right: 60px;
    bottom: 46px;
  }
  .login-box { padding: 28px; }
  .file-section-head { flex-direction: column; }
  .file-card { grid-template-columns: 1fr; }
  .upload-controls { grid-template-columns: 1fr; }
  .quick-opinion-panel,
  .quick-opinion-form {
    grid-template-columns: 1fr;
  }
  .quick-opinion-panel {
    padding: 16px;
  }
  .quick-opinion-form button {
    min-height: 48px;
  }
  .payment-record-head {
    flex-direction: column;
  }
  .payment-record-summary {
    justify-content: flex-start;
  }
  .recognition-head {
    flex-direction: column;
  }
  .dashboard-filter { align-items: flex-start; flex-direction: column; }
  .dashboard-filter-controls { justify-content: flex-start; }
  .dashboard-hero > div.total-deal-card, .chart-card.wide-chart { grid-column: auto; }
  .announcement-editor-grid, .announcement-preview-grid { grid-template-columns: 1fr; }
  .timeout-overview, .pending-head, .pending-rule-panel { align-items: flex-start; flex-direction: column; }
  .pending-rule-form { width: 100%; min-width: 0; grid-template-columns: 1fr; }
  .pending-stats { width: 100%; flex-direction: column; }
}

.portal-app {
  grid-template-columns: 248px minmax(0, 1fr);
  background:
    linear-gradient(120deg, rgba(219, 235, 255, .68), rgba(255, 255, 255, .84) 42%, rgba(235, 247, 255, .82)),
    #f4f8ff;
}

.portal-app .sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  padding: 28px 14px 22px;
  background:
    radial-gradient(circle at 14% 0%, rgba(74, 152, 255, .28), transparent 26%),
    linear-gradient(180deg, var(--theme-side-start, #041739) 0%, var(--theme-side-mid, #06265b) 54%, var(--theme-side-end, #013f9d) 100%);
  box-shadow: inset -1px 0 0 rgba(255,255,255,.14), 18px 0 48px rgba(14, 54, 118, .08);
}

.portal-app .sidebar::before,
.portal-app .sidebar::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.portal-app .sidebar::before {
  left: -70px;
  right: -40px;
  bottom: 72px;
  height: 190px;
  opacity: .78;
  background:
    radial-gradient(ellipse at 34% 82%, rgba(0, 188, 255, .35), transparent 42%),
    repeating-radial-gradient(ellipse at 70% 78%, rgba(108, 173, 255, .26) 0 1px, transparent 1px 11px);
  transform: rotate(-8deg);
}

.portal-app .sidebar::after {
  left: -40px;
  right: -40px;
  bottom: 114px;
  height: 72px;
  border-top: 2px solid rgba(18, 134, 255, .38);
  border-radius: 50%;
  transform: rotate(-7deg);
}

.portal-app .brand {
  min-height: 58px;
  position: relative;
  z-index: 1;
  margin-bottom: 34px;
  padding: 0 6px;
  gap: 12px;
  color: #fff;
}

.portal-app .brand img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  padding: 4px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 36px rgba(1, 22, 63, .28);
}

.portal-app .brand span {
  min-width: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.portal-app .nav {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 11px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  align-content: start;
  grid-auto-rows: max-content;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.portal-app .nav::-webkit-scrollbar {
  display: none;
}

.portal-app .nav button {
  width: calc(100% - 28px);
  min-height: 54px;
  max-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
  padding: 0 18px;
  border-radius: 8px;
  color: rgba(255,255,255,.88);
  font-size: 16px;
  font-weight: 900;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}

.portal-app .nav button.active,
.portal-app .nav button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: rgba(102, 174, 255, .72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 12px 28px rgba(4, 67, 178, .28);
  transform: none;
}

.portal-app .main {
  padding: 18px 28px 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,0) 300px),
    radial-gradient(circle at 82% -10%, rgba(29, 111, 232, .12), transparent 34%);
}

.portal-app .topbar {
  min-height: 54px;
  margin: 0 -4px 18px;
  padding: 0 4px 14px;
  border-bottom: 1px solid rgba(198, 216, 240, .78);
}

.portal-app .topbar h2 {
  color: #10203c;
  font-size: 22px;
  font-weight: 950;
}

.portal-app .top-actions .secondary,
.portal-app .detail-head .secondary {
  min-height: 38px;
  border-color: #cfe0f8;
  background: #f6faff;
  color: #28466e;
  box-shadow: none;
}

.portal-app #view {
  display: grid;
  gap: 18px;
}

.portal-app .panel {
  margin-bottom: 0;
  border-radius: 16px;
  border-color: #d5e4f8;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 36px rgba(38, 91, 153, .08);
}

.portal-app .announcement-banner {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 0;
  padding: 15px 18px;
  border: 1px solid #cfe1ff;
  border-radius: 14px;
  color: #164a94;
  background: linear-gradient(135deg, rgba(241, 247, 255, .96), rgba(255,255,255,.94));
  box-shadow: 0 10px 28px rgba(29, 111, 232, .08);
}

.portal-app .announcement-banner strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1d6fe8;
  font-size: 16px;
  white-space: nowrap;
}

.portal-app .announcement-banner strong::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, #1d6fe8, #18a5e8);
  box-shadow: 0 0 0 5px rgba(29, 111, 232, .12);
}

.portal-app .announcement-banner pre {
  max-height: none;
  margin: 0;
  color: #254b80;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 800;
}

.portal-app .quick-opinion-panel {
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  align-items: center;
  padding: 20px 24px;
  border: 1px solid #cfe1ff;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(237, 246, 255, .96), rgba(255, 255, 255, .98)),
    radial-gradient(circle at 4% 0%, rgba(29,111,232,.18), transparent 34%);
  box-shadow: 0 14px 36px rgba(29, 111, 232, .09);
}

.portal-app .quick-opinion-copy h3 {
  color: #10203c;
  font-size: 24px;
}

.portal-app .quick-opinion-copy p {
  color: #476383;
  font-weight: 800;
}

.portal-app .quick-opinion-form button {
  background: linear-gradient(135deg, #1d6fe8, #1599c5);
}

.portal-app #ordersTable .table-wrap {
  border-radius: 14px;
  border-color: #d8e5f4;
}

.portal-app #ordersTable table {
  min-width: 760px;
}

.portal-app #ordersTable th {
  background: #f3f8ff;
  color: #304b72;
}

.portal-app #detail {
  display: block;
}

.portal-app #detail > .panel {
  padding: 0;
  overflow: hidden;
}

.portal-app .detail-head {
  min-height: 116px;
  align-items: center;
  margin: 0;
  padding: 24px 28px;
  border-bottom: 1px solid #dfeafa;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(246,250,255,.95)),
    radial-gradient(circle at 92% 12%, rgba(29,111,232,.12), transparent 34%);
}

.portal-app .detail-head h3 {
  max-width: 760px;
  color: #101c35;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 950;
}

.portal-app .detail-head .badge {
  vertical-align: middle;
}

.portal-app .detail-head + .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 22px 28px;
  border-bottom: 1px solid #edf2fa;
  background: #fff;
}

.portal-app .detail-head + .grid .stat {
  min-height: 88px;
  border-width: 0 1px 0 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.portal-app .detail-head + .grid .stat:last-child {
  border-right: 0;
}

.portal-app .detail-head + .grid .stat strong {
  color: #101c35;
  font-size: 22px;
}

.portal-app .urgent-panel,
.portal-app .timeout-detail,
.portal-app .responsibility-banner,
.portal-app .after-sale-box,
.portal-app .responsibility-editor {
  margin: 18px 28px 0;
}

.portal-app .file-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 28px 0;
  padding: 24px;
  border: 1px solid #d5e4f8;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
}

.portal-app .file-board-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.portal-app .file-board-title h3 {
  color: #10203c;
  font-size: 24px;
  font-weight: 950;
}

.portal-app .file-board-title p {
  max-width: 840px;
  color: #5a6f8c;
  font-weight: 700;
  line-height: 1.65;
}

.portal-app .file-section {
  position: relative;
  min-height: 226px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  padding: 18px;
  overflow: hidden;
  box-shadow: none;
}

.portal-app .file-section::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -30px;
  width: 86px;
  height: 86px;
  border-radius: 24px;
  opacity: .12;
  background: #1d6fe8;
  transform: rotate(12deg);
}

.portal-app .file-section.comment::after { background: #7b61ff; }
.portal-app .file-section.reference::after { background: #e0a11b; }
.portal-app .file-section.after::after { background: #16a085; }

.portal-app .file-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 16px;
}

.portal-app .file-section-head h4 {
  color: #142646;
  font-size: 18px;
  font-weight: 950;
}

.portal-app .file-section-head p {
  color: #6a7c92;
  font-size: 13px;
  line-height: 1.55;
}

.portal-app .file-card-list {
  margin-top: auto;
}

.portal-app .file-card {
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 10px;
  border-radius: 12px;
  box-shadow: none;
}

.portal-app .file-card:hover {
  transform: none;
  box-shadow: 0 10px 22px rgba(29, 111, 232, .08);
}

.portal-app .file-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  font-size: 12px;
}

.portal-app .file-card-title {
  font-size: 13px;
}

.portal-app .file-card-meta {
  gap: 5px;
  font-size: 12px;
}

.portal-app .file-card .secondary {
  grid-column: 1 / -1;
  min-height: 36px;
  width: 100%;
  margin-top: 2px;
  border-color: #d3e2f6;
  background: #f8fbff;
  box-shadow: none;
}

.portal-app .empty-file-state {
  display: grid;
  min-height: 96px;
  place-items: center;
  border-color: #d7e3f3;
  color: #7890ad;
  background: rgba(255,255,255,.76);
}

.portal-app .upload-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .58fr);
  gap: 18px 22px;
  margin: 18px 28px 28px;
  padding: 24px;
  border-radius: 16px;
  border-color: #d5e4f8;
  background: rgba(255,255,255,.96);
  box-shadow: none;
}

.portal-app .upload-head {
  grid-column: 1 / -1;
  align-items: center;
  margin-bottom: 0;
}

.portal-app .upload-head h3 {
  color: #10203c;
  font-size: 24px;
  font-weight: 950;
}

.portal-app .upload-drop {
  min-height: 186px;
  border-color: #9fc4ff;
  background:
    linear-gradient(135deg, rgba(246,250,255,.96), rgba(255,255,255,.98)),
    radial-gradient(circle at 50% -10%, rgba(29,111,232,.16), transparent 38%);
}

.portal-app .pending-upload-list {
  min-height: 96px;
  margin-top: 0;
  padding: 16px;
  border: 1px solid #dbe7f7;
  border-radius: 14px;
  background: #fbfdff;
}

.portal-app .pending-upload-list:empty::before {
  content: "暂无已选择文件";
  display: grid;
  min-height: 70px;
  place-items: center;
  color: #8494aa;
  font-weight: 800;
}

.portal-app .upload-controls {
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 280px) minmax(180px, 240px) minmax(180px, 220px) auto;
  margin-top: 0;
  padding-top: 4px;
  border-top: 1px solid #edf3fb;
}

.portal-app .upload-controls button[type="submit"] {
  background: linear-gradient(135deg, #1d6fe8, #1599c5);
}

.portal-app .upload-hint {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f3f8ff;
  color: #59718f;
}

@media (max-width: 1280px) {
  .portal-app .file-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-app .upload-panel {
    grid-template-columns: 1fr;
  }
}

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

  .portal-app .sidebar {
    position: static;
    min-height: auto;
    height: auto;
    overflow: visible;
    padding: 18px 16px;
  }

  .portal-app .brand {
    margin-bottom: 18px;
  }

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

  .portal-app .nav button {
    width: 100%;
    min-height: 52px;
  }

  .portal-app .main {
    padding: 18px 14px 28px;
  }

  .portal-app .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-app .announcement-banner,
  .portal-app .quick-opinion-panel,
  .portal-app .quick-opinion-form {
    grid-template-columns: 1fr;
  }

  .portal-app .detail-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .portal-app .detail-head h3 {
    font-size: 21px;
  }

  .portal-app .detail-head + .grid {
    grid-template-columns: 1fr;
    padding: 0 20px 18px;
  }

  .portal-app .detail-head + .grid .stat {
    border-right: 0;
    border-bottom: 1px solid #edf2fa;
    padding: 15px 0;
  }

  .portal-app .urgent-panel,
  .portal-app .timeout-detail,
  .portal-app .responsibility-banner,
  .portal-app .after-sale-box,
  .portal-app .responsibility-editor,
  .portal-app .file-board,
  .portal-app .upload-panel {
    margin-left: 16px;
    margin-right: 16px;
  }

  .portal-app .file-board {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .portal-app .file-board-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-app .file-section {
    min-height: 0;
  }

  .portal-app .upload-panel {
    padding: 18px;
  }

  .portal-app .upload-controls {
    grid-template-columns: 1fr;
  }
}

.customer-portal-app {
  grid-template-columns: 232px minmax(0, 1fr);
  background: var(--customer-bg);
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.customer-portal-app .sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  padding: 28px 14px 22px;
  background:
    radial-gradient(circle at 14% 0%, rgba(74, 152, 255, .28), transparent 26%),
    linear-gradient(180deg, var(--theme-side-start, #041739) 0%, var(--theme-side-mid, #06265b) 54%, var(--theme-side-end, #013f9d) 100%);
  box-shadow: inset -1px 0 0 rgba(255,255,255,.14), 18px 0 48px rgba(14, 54, 118, .08);
}

.customer-portal-app .brand {
  margin-bottom: 34px;
  color: #fff;
}

.customer-portal-app .brand img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
}

.customer-portal-app .brand span {
  font-size: 20px;
  font-weight: 950;
  white-space: nowrap;
}

.customer-portal-app .nav {
  gap: 11px;
  align-content: start;
  grid-auto-rows: max-content;
}

.customer-portal-app .nav button {
  width: calc(100% - 28px);
  min-height: 58px;
  max-height: 58px;
  border-radius: 8px;
  margin: 0 auto;
  padding: 0 18px;
  font-size: 16px;
  color: rgba(255,255,255,.88);
  background: transparent;
}

.customer-portal-app .nav button.active,
.customer-portal-app .nav button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: rgba(102, 174, 255, .72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 12px 28px rgba(4, 67, 178, .28);
}

.portal-side-footer {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}

.portal-side-action {
  min-height: 44px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  border: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  font-weight: 900;
}

.portal-side-action:hover {
  background: rgba(255,255,255,.12);
  box-shadow: none;
}

.customer-portal-app .main {
  padding: 18px 28px 28px;
  height: 100vh;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), var(--customer-bg) 100%);
}

.customer-portal-app .topbar {
  min-height: 46px;
  margin: 0 0 18px;
  padding: 0 0 10px;
  border-bottom: 1px solid #dfe8f7;
}

.customer-portal-app .topbar h2 {
  margin: 0;
  color: #183258;
  font-size: 17px;
  font-weight: 950;
}

.customer-portal-app .topbar h2::after {
  content: " / 订单详情与资料提交";
  color: #7789a5;
  font-weight: 800;
}

.customer-portal-app .topbar .muted {
  display: none;
}

.customer-portal-app .top-actions .secondary {
  min-height: 38px;
  border-radius: 6px;
  color: #24436e;
  background: #f7fbff;
  border-color: #d4e1f2;
}

.customer-portal-app #view {
  gap: 18px;
}

.customer-workspace {
  display: grid;
  gap: 20px;
}

.customer-order-card,
.customer-file-center,
.customer-upload-panel {
  border: 1px solid #d8e5f5;
  border-radius: 12px;
  background: var(--customer-panel);
  box-shadow: 0 10px 28px rgba(32, 85, 145, .06);
}

.customer-order-card {
  display: grid;
  grid-template-columns: 1.05fr 2.15fr 1.25fr 1.35fr 1.55fr;
  align-items: center;
  min-height: 146px;
  padding: 22px 26px;
}

.customer-order-cell {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 0 28px;
  border-right: 1px solid #dfe7f3;
}

.customer-order-cell:first-child {
  padding-left: 10px;
}

.customer-order-cell span {
  color: #637797;
  font-size: 13px;
  font-weight: 900;
}

.customer-order-cell strong {
  color: #071530;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 950;
}

.customer-order-title-cell strong {
  font-size: 24px;
}

.customer-order-cell small {
  color: #6b7e99;
  font-size: 13px;
  font-weight: 800;
}

.customer-order-actions {
  display: grid;
  gap: 10px;
  padding-left: 30px;
}

.customer-order-actions button {
  min-height: 40px;
  border-radius: 7px;
  font-weight: 950;
}

.customer-order-actions button:not(.secondary),
.customer-upload-submit,
.customer-urgent-modal > button:last-child,
.customer-stage-modal > button:last-child {
  background: linear-gradient(135deg, var(--customer-primary), var(--customer-accent));
}

.customer-order-actions button:not(.secondary):hover,
.customer-upload-submit:hover,
.customer-urgent-modal > button:last-child:hover,
.customer-stage-modal > button:last-child:hover {
  background: linear-gradient(135deg, var(--customer-primary-dark), var(--customer-accent));
}

.customer-order-actions .secondary {
  color: #24436e;
  background: var(--customer-panel);
  border: 1px solid #cdd9ea;
}

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

.customer-service-modules button,
.customer-empty-module {
  border: 1px solid #d8e5f5;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(246,249,255,.92)),
    var(--customer-panel);
  box-shadow: 0 10px 28px rgba(32, 85, 145, .06);
}

.customer-service-modules button {
  min-height: 104px;
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 20px 22px;
  color: #17345e;
  text-align: left;
}

.customer-service-modules button span,
.customer-service-modules button strong,
.customer-service-modules button small {
  position: relative;
  z-index: 1;
}

.customer-service-modules button span {
  font-size: 19px;
  font-weight: 950;
}

.customer-service-modules button strong {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  color: #9a3412;
  background: #fff3e8;
  font-size: 12px;
}

.customer-service-modules button small {
  color: #667995;
  font-size: 13px;
  font-weight: 850;
}

.customer-empty-module {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 48px;
  text-align: center;
}

.customer-empty-module-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--customer-primary), var(--customer-accent));
  font-size: 34px;
  font-weight: 950;
}

.customer-empty-module span {
  color: var(--customer-primary);
  font-weight: 950;
}

.customer-empty-module h3 {
  margin: 0;
  color: #0b1931;
  font-size: 30px;
  font-weight: 950;
}

.customer-empty-module p {
  max-width: 560px;
  margin: 0;
  color: #607691;
  line-height: 1.7;
  font-weight: 850;
}

.customer-stage-panel,
.customer-history-panel {
  padding: 24px 26px;
  border: 1px solid #f3c6c6;
  border-radius: 12px;
  background:
    linear-gradient(135deg, #fff7f7 0%, var(--customer-panel) 72%);
  box-shadow: 0 10px 28px rgba(211, 59, 59, .06);
}

.customer-stage-current {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #a72727;
  background: #fff0f0;
  font-weight: 950;
}

.customer-stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.customer-stage-grid button {
  min-height: 104px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px solid #f0b7b7;
  border-radius: 14px;
  color: #a72727;
  background: linear-gradient(135deg, #fff, #fff3f3);
  box-shadow: none;
}

.customer-stage-grid button strong {
  color: #9a1c1c;
  font-size: 24px;
  font-weight: 950;
}

.customer-stage-grid button span {
  color: #b33a3a;
  font-size: 13px;
  font-weight: 900;
}

.customer-stage-grid button.active {
  color: #fff;
  border-color: #d33b3b;
  background: linear-gradient(135deg, #d33b3b, #a72727);
  box-shadow: 0 16px 32px rgba(211, 59, 59, .18);
}

.customer-stage-grid button.active strong,
.customer-stage-grid button.active span {
  color: #fff;
}

.customer-history-panel {
  border-color: #d8e5f5;
  background: var(--customer-panel);
}

.customer-history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.customer-history-current {
  display: grid;
  margin-top: 16px;
}

.customer-history-current .customer-history-card {
  grid-template-columns: minmax(220px, 280px) minmax(220px, 320px) minmax(0, 1fr);
  align-items: start;
}

.customer-history-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dce8f7;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbff, #fff);
}

.customer-history-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.customer-history-head strong {
  color: #0b1931;
  font-size: 17px;
  font-weight: 950;
}

.customer-history-head span {
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--customer-primary);
  background: #edf5ff;
  font-size: 12px;
  font-weight: 950;
}

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

.customer-history-stats span {
  padding: 7px 8px;
  border-radius: 8px;
  color: #435a7b;
  background: #f2f6fb;
  font-size: 12px;
  font-weight: 900;
}

.customer-history-files {
  display: grid;
  gap: 8px;
}

.customer-history-files button,
.customer-history-empty {
  min-height: 54px;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid #e0e8f4;
  border-radius: 10px;
  color: #263b5d;
  background: #fff;
  box-shadow: none;
  text-align: left;
}

.customer-history-files button b {
  color: var(--customer-primary);
  font-size: 12px;
}

.customer-history-files button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
}

.customer-history-files button small,
.customer-history-empty {
  color: #70829b;
  font-size: 12px;
  font-weight: 800;
}

.customer-portal-app .announcement-banner {
  min-height: auto;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  align-items: flex-start;
  padding: 18px 26px;
  border-radius: 12px;
  border: 1px solid #cddfff;
  color: #17498e;
  background: linear-gradient(135deg, #f7fbff, #ffffff);
}

.customer-portal-app .announcement-banner strong {
  margin: 0;
  color: var(--customer-primary);
  font-size: 17px;
}

.customer-portal-app .announcement-banner pre {
  max-height: none;
  overflow: visible;
  color: #345784;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.customer-responsibility,
.customer-urgent-line {
  margin: 0;
}

.customer-file-center {
  padding: 24px 26px 18px;
  position: relative;
  overflow: hidden;
}

.customer-file-center::before {
  content: attr(data-watermark);
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 0;
  transform: translate(-50%, -50%) rotate(-24deg);
  color: var(--customer-primary);
  font-size: clamp(38px, 6vw, 96px);
  font-weight: 950;
  line-height: 1;
  opacity: .25;
  white-space: nowrap;
  pointer-events: none;
}

.customer-file-center > * {
  position: relative;
  z-index: 1;
}

.customer-file-title-head {
  display: block;
  position: relative;
  justify-content: center;
  text-align: center;
}

.customer-file-title-head > div {
  width: 100%;
}

.customer-file-title-head h3 {
  font-size: 26px;
  font-weight: 950;
}

.customer-file-title-head .secondary {
  position: absolute;
  top: 0;
  right: 0;
}

.customer-stage-waiting {
  min-height: 156px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  border: 1px dashed #f0b7b7;
  border-radius: 12px;
  color: #9a1c1c;
  background: linear-gradient(135deg, #fff7f7, #ffffff);
  text-align: center;
}

.customer-stage-waiting strong {
  font-size: 22px;
  font-weight: 950;
}

.customer-stage-waiting p {
  max-width: 720px;
  margin: 0;
  color: #8c4650;
  font-weight: 850;
}

.customer-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.customer-section-head h3,
.customer-upload-panel .upload-head h3 {
  margin: 0;
  color: #0b1931;
  font-size: 24px;
  font-weight: 950;
}

.customer-section-head p {
  margin: 4px 0 0;
  color: #7183a1;
  font-weight: 800;
}

.customer-section-head .secondary {
  border: 0;
  color: var(--customer-primary);
  background: transparent;
}

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

.customer-file-card {
  min-height: 214px;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 22px;
  border: 1px solid #d8e6fb;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7fbff, var(--customer-panel));
}

.customer-file-card.comment {
  border-color: #ddd3ff;
  background: linear-gradient(135deg, #faf8ff, var(--customer-panel));
}

.customer-file-card.reference {
  border-color: #f2dfb8;
  background: linear-gradient(135deg, #fffaf0, var(--customer-panel));
}

.customer-file-card.after {
  border-color: #c8ece8;
  background: linear-gradient(135deg, #f3fffd, var(--customer-panel));
}

.customer-file-card-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  gap: 12px;
  align-items: center;
}

.customer-file-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--customer-primary), var(--customer-accent));
  box-shadow: 0 12px 22px rgba(29, 111, 232, .16);
}

.customer-file-card.comment .customer-file-card-icon {
  background: linear-gradient(135deg, #7b61ff, #5c46d9);
}

.customer-file-card.reference .customer-file-card-icon {
  background: linear-gradient(135deg, #ffbd42, #e69a18);
}

.customer-file-card.after .customer-file-card-icon {
  background: linear-gradient(135deg, #16b59a, #13a67d);
}

.customer-file-card h4 {
  margin: 0 0 8px;
  color: #142445;
  font-size: 18px;
  font-weight: 950;
}

.customer-file-card h4 span {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 6px;
  border: 1px solid #b9d5ff;
  border-radius: 5px;
  color: var(--customer-primary);
  font-size: 12px;
  font-weight: 950;
}

.customer-file-card.reference h4 span,
.customer-file-card.after h4 span {
  color: #17826e;
  border-color: #bde8dc;
}

.customer-file-card p {
  margin: 0;
  color: #6f7f98;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 800;
}

.customer-file-arrow {
  width: 26px;
  height: 38px;
  padding: 0;
  border: 0;
  color: var(--customer-primary-dark);
  background: transparent;
  box-shadow: none;
  font-size: 34px;
  line-height: 1;
}

.customer-file-arrow:hover {
  color: var(--customer-primary);
  background: transparent;
  box-shadow: none;
}

.customer-file-arrow:disabled {
  visibility: hidden;
}

.customer-file-card-body {
  display: grid;
  align-content: end;
  gap: 10px;
  margin-top: 18px;
}

.customer-file-count {
  color: #3b557b;
  font-size: 13px;
  font-weight: 900;
}

.customer-mini-file-list {
  display: grid;
  gap: 7px;
}

.customer-mini-file,
.customer-file-empty {
  min-height: 40px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  color: #2f4567;
  background: color-mix(in srgb, var(--customer-panel) 78%, #ffffff);
  box-shadow: none;
  text-align: left;
}

.customer-mini-file:hover {
  background: #eef6ff;
  box-shadow: none;
}

.customer-file-empty {
  display: flex;
  color: #8191a8;
}

.customer-file-type {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #fff;
  background: var(--customer-primary);
  font-size: 11px;
  font-weight: 950;
}

.customer-mini-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
}

.customer-mini-file-meta {
  display: grid;
  gap: 2px;
  justify-items: end;
  color: #647691;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
}

.customer-mini-file-meta b,
.customer-mini-file-meta em {
  font: inherit;
}

.customer-mini-file-meta b {
  color: #24436e;
}

.customer-mini-file-size {
  color: #647691;
  font-size: 12px;
  font-weight: 800;
}

.customer-card-upload {
  min-height: 40px;
  width: 100%;
  border-radius: 7px;
  color: #24436e;
  background: var(--customer-panel);
}

.customer-upload-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  gap: 16px 24px;
  margin: 0;
  padding: 24px 26px 20px;
  box-shadow: 0 10px 28px rgba(32, 85, 145, .06);
}

.customer-upload-panel .upload-head {
  grid-column: 1 / -1;
  margin: 0;
}

.customer-upload-panel .upload-head p {
  margin: 0 0 0 16px;
  display: inline-flex;
  vertical-align: middle;
}

.customer-upload-panel .upload-head > div {
  display: flex;
  align-items: center;
}

.customer-upload-panel .ghost {
  color: var(--customer-primary);
  background: transparent;
  box-shadow: none;
}

.customer-upload-tabs {
  grid-column: 1 / -1;
  display: inline-flex;
  width: max-content;
  overflow: hidden;
  border-radius: 7px;
  background: #edf2f8;
}

.customer-upload-tabs button {
  min-width: 102px;
  min-height: 38px;
  border-radius: 0;
  color: #50627d;
  background: transparent;
  box-shadow: none;
  border-right: 1px solid #d7e0ec;
}

.customer-upload-tabs button.active {
  color: #fff;
  background: var(--customer-primary);
}

.customer-upload-tabs button:disabled {
  opacity: .65;
}

.customer-upload-panel .upload-drop {
  min-height: 170px;
  border-radius: 8px;
  border-color: color-mix(in srgb, var(--customer-primary) 42%, #ffffff);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--customer-bg) 50%, #ffffff), var(--customer-panel));
}

.customer-upload-panel .upload-drop strong {
  color: #0b1931;
  font-size: 17px;
}

.customer-selected-files {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  border: 1px solid #d8e5f5;
  border-radius: 10px;
  background: var(--customer-panel);
}

.customer-selected-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.customer-selected-head strong {
  color: #22395e;
  font-size: 17px;
}

.customer-selected-files .pending-upload-list {
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
}

.customer-upload-submit {
  min-height: 46px;
  width: 100%;
  border-radius: 7px;
  font-size: 17px;
  font-weight: 950;
}

.customer-upload-panel .upload-controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
}

.customer-upload-category-field {
  display: none;
}

.customer-upload-panel .urgent-upload-choice {
  justify-content: flex-start;
}

.customer-urgent-more {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #b9d5ff;
  border-radius: 12px;
  color: var(--customer-primary-dark);
  background: #f2f7ff;
  box-shadow: none;
  font-weight: 950;
}

.customer-urgent-more:hover {
  color: var(--customer-primary);
  background: #e8f1ff;
  box-shadow: none;
}

.customer-urgent-modal-backdrop,
.customer-stage-modal-backdrop,
.upload-confirm-backdrop {
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--customer-primary) 18%, transparent), transparent 30%),
    rgba(10, 25, 48, .46);
}

.customer-urgent-modal,
.customer-stage-modal,
.upload-confirm-modal {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  padding: 34px 30px 28px;
  text-align: center;
  border: 1px solid #d7e6ff;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,255,.98)),
    #fff;
  box-shadow: 0 28px 80px rgba(14, 54, 118, .22);
}

.customer-urgent-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d9e5f6;
  border-radius: 999px;
  color: #526b8d;
  background: #f6faff;
  box-shadow: none;
  font-size: 20px;
  line-height: 1;
}

.customer-urgent-modal-icon,
.customer-stage-modal-icon,
.upload-confirm-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--customer-primary), var(--customer-accent));
  box-shadow: 0 18px 36px rgba(29, 111, 232, .22);
  font-weight: 950;
}

.customer-urgent-modal h3,
.customer-stage-modal h3,
.upload-confirm-modal h3 {
  margin: 0 0 10px;
  color: #0b1931;
  font-size: 26px;
  font-weight: 950;
}

.customer-urgent-modal p,
.customer-stage-modal p,
.upload-confirm-modal p {
  margin: 0 0 22px;
  color: #526b8d;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 850;
}

.customer-urgent-modal > button:last-child,
.customer-stage-modal > button:last-child {
  min-width: 150px;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 950;
}

.upload-confirm-modal {
  width: min(520px, calc(100vw - 32px));
}

.upload-confirm-modal .eyebrow {
  display: inline-flex;
  margin: 0 0 8px;
  color: var(--customer-primary);
  font-weight: 950;
}

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

.upload-confirm-grid div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dce8f7;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbff, #fff);
}

.upload-confirm-grid span {
  color: #60738d;
  font-size: 12px;
  font-weight: 900;
}

.upload-confirm-grid strong {
  color: #0b1931;
  font-size: 17px;
  font-weight: 950;
}

.upload-confirm-actions {
  justify-content: center;
}

.upload-confirm-actions button:first-child {
  background: linear-gradient(135deg, var(--customer-primary), var(--customer-accent));
}

.quick-process-panel {
  display: grid;
  gap: 18px;
}

.quick-process-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.quick-process-head h3,
.quick-process-box h4 {
  margin: 0 0 8px;
  color: #081a3a;
  font-weight: 950;
}

.quick-order-card {
  display: grid;
  gap: 18px;
}

.quick-process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 16px;
}

.quick-process-box {
  padding: 18px;
  border: 1px solid #dbe7f6;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 14px 34px rgba(23, 43, 77, .07);
}

.quick-process-box textarea {
  min-height: 126px;
  resize: vertical;
}

.urgent-quota-box {
  grid-column: 1 / -1;
  border-color: #ffd2d2;
  background: linear-gradient(180deg, #fffafa, #fff5f5);
}

.urgent-quota-actions {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.urgent-quota-actions .danger {
  min-height: 42px;
  box-shadow: 0 10px 24px rgba(211, 59, 59, .18);
}

.popup-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.popup-role-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbe7f6;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.popup-role-switch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: #0d2550;
  font-weight: 950;
}

.popup-role-switch input {
  width: 18px;
  height: 18px;
}

.popup-role-switch em {
  font-style: normal;
  color: #1d6fe8;
  font-size: 12px;
}

.popup-role-card textarea {
  min-height: 126px;
  resize: vertical;
}

.popup-announcement-backdrop {
  background:
    radial-gradient(circle at 50% 38%, rgba(29, 111, 232, .22), transparent 30%),
    rgba(4, 18, 42, .56);
}

.popup-announcement-card {
  position: relative;
  width: min(560px, calc(100vw - 34px));
  padding: 34px 34px 28px;
  border: 1px solid rgba(211, 227, 252, .95);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.99), rgba(244,249,255,.98)),
    #fff;
  box-shadow: 0 34px 90px rgba(8, 26, 58, .28);
  text-align: center;
}

.popup-announcement-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #dbe7f6;
  border-radius: 999px;
  color: #526b8d;
  background: #f7fbff;
  box-shadow: none;
  font-size: 22px;
  line-height: 1;
}

.popup-announcement-mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #1d6fe8, #17a7c8);
  box-shadow: 0 18px 40px rgba(29, 111, 232, .24);
}

.popup-announcement-mark svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.popup-announcement-card h3 {
  margin: 0 0 14px;
  color: #071833;
  font-size: 28px;
  font-weight: 950;
}

.popup-announcement-card pre {
  max-height: 48vh;
  margin: 0 0 24px;
  overflow: auto;
  white-space: pre-wrap;
  text-align: left;
  color: #1d2a44;
  font: inherit;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 850;
}

.popup-announcement-card > button:last-child {
  min-width: 160px;
  min-height: 46px;
  border-radius: 12px;
  font-weight: 950;
}

.customer-upload-panel .upload-hint {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 18px;
  border-radius: 8px;
  color: #527095;
  background: color-mix(in srgb, var(--customer-bg) 72%, #ffffff);
  font-size: 13px;
  font-weight: 800;
}

.customer-empty-order {
  padding: 38px;
  border: 1px solid #d8e5f5;
  border-radius: 12px;
  background: var(--customer-panel);
}

@media (max-width: 1280px) {
  .customer-order-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .customer-order-cell {
    border-right: 0;
    border-bottom: 1px solid #dfe7f3;
    padding: 10px;
  }

  .customer-order-actions {
    padding-left: 10px;
  }

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

  .customer-stage-grid,
  .customer-history-grid {
    grid-template-columns: 1fr;
  }

  .customer-history-current .customer-history-card {
    grid-template-columns: 1fr;
  }

  .customer-upload-panel {
    grid-template-columns: 1fr;
  }

  .settlement-hero,
  .settlement-writer-head,
  .settlement-settings-grid {
    grid-template-columns: 1fr;
  }

  .settlement-summary-grid,
  .settlement-metrics,
  .settlement-groups,
  .settlement-export-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .customer-portal-app {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .customer-portal-app .sidebar,
  .customer-portal-app .main {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .customer-portal-app .nav {
    grid-template-columns: 1fr;
  }

  .customer-portal-app .nav button {
    width: 100%;
  }

  .portal-side-footer {
    margin-top: 14px;
  }

  .customer-order-card,
  .customer-file-grid,
  .customer-service-modules,
  .customer-stage-grid,
  .customer-history-grid,
  .settlement-summary-grid,
  .settlement-metrics,
  .settlement-groups,
  .settlement-export-fields,
  .customer-upload-panel .upload-hint {
    grid-template-columns: 1fr;
  }

  .customer-file-center,
  .customer-upload-panel,
  .customer-order-card {
    padding: 18px;
  }

  .customer-section-head,
  .customer-upload-panel .upload-head,
  .customer-upload-panel .upload-head > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-upload-panel .upload-head p {
    margin: 6px 0 0;
  }

  .customer-file-title-head .secondary {
    position: static;
    margin-top: 10px;
  }

  .quick-process-grid,
  .popup-editor-grid,
  .urgent-quota-actions {
    grid-template-columns: 1fr;
  }

  .customer-upload-tabs {
    width: 100%;
    overflow-x: auto;
  }
}

.service-workspace {
  display: grid;
  gap: 20px;
}

.file-history-overview {
  display: grid;
  gap: 18px;
}

.history-page-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf3fb;
}

.history-page-head h3 {
  margin: 4px 0 6px;
  font-size: 24px;
  color: #10203c;
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.history-order-pane,
.history-detail-pane {
  border: 1px solid #d8e6f6;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: 0 14px 32px rgba(38, 91, 153, .08);
}

.history-order-pane {
  padding: 16px;
  position: sticky;
  top: 18px;
}

.history-order-pane h4,
.history-detail-pane h4 {
  margin: 0;
  color: #10203c;
}

.history-order-pane .list-controls {
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin-top: 14px;
  overflow: hidden;
}

.history-order-pane .list-search-field input {
  min-width: 0;
  width: 100%;
}

.history-order-pane .list-controls button {
  min-width: 76px;
  padding-inline: 14px;
}

.history-order-pane .list-page-summary,
.history-order-pane .list-controls select,
.history-order-pane .list-controls #fileHistoryListPrevPage,
.history-order-pane .list-controls #fileHistoryListNextPage,
.history-order-pane .list-jump {
  grid-column: span 3;
}

.history-order-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.history-order-item {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #dce8f7;
  border-radius: 12px;
  background: #fff;
  color: #10203c;
  text-align: left;
  box-shadow: none;
}

.history-order-item:hover,
.history-order-item.active {
  border-color: #1d6fe8;
  background: linear-gradient(135deg, rgba(235, 244, 255, .98), rgba(255, 255, 255, .98));
  box-shadow: 0 10px 24px rgba(29, 111, 232, .12);
}

.history-order-item span {
  color: #1d6fe8;
  font-weight: 900;
}

.history-order-item strong {
  overflow: hidden;
  color: #10203c;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-order-item small {
  color: #617692;
  font-weight: 700;
}

.history-detail-pane {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.history-selected-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid #dce8f7;
  border-radius: 14px;
  background: linear-gradient(135deg, #f6fbff, #fff);
}

.history-selected-head span {
  color: #1d6fe8;
  font-weight: 950;
}

.history-selected-head h4 {
  margin: 6px 0;
  font-size: 22px;
}

.history-selected-head p {
  margin: 0;
  color: #60738d;
  font-weight: 800;
}

.history-stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.history-stage-tabs button {
  color: #1b3b66;
  border-color: #cdddf2;
  background: #f6f9ff;
  box-shadow: none;
}

.history-stage-tabs button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #1d6fe8, #1599c5);
  box-shadow: 0 10px 22px rgba(29, 111, 232, .18);
}

.history-stage-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.history-stage-title span {
  color: #1d6fe8;
  font-weight: 900;
}

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

.history-latest-card,
.history-filter-card {
  padding: 12px;
  border: 1px solid #dce8f7;
  border-radius: 12px;
  background: #f8fbff;
}

.history-filter-card {
  position: relative;
  display: grid;
  gap: 6px;
  width: 100%;
  color: #10203c;
  text-align: left;
  box-shadow: none;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.history-filter-main {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 60px;
  justify-items: start;
  padding: 0 !important;
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  text-align: left;
}

.history-filter-main:hover,
.history-filter-main:focus,
.history-filter-main:active {
  color: inherit !important;
  background: transparent !important;
  transform: none;
  box-shadow: none !important;
}

.history-filter-card:hover,
.history-filter-card.active {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(38, 91, 153, .12);
}

.history-filter-card.active {
  color: #fff;
  border-color: transparent;
}

.history-summary-grid span,
.history-filter-card span,
.history-latest-card span {
  display: block;
  color: #60738d;
  font-size: 12px;
  font-weight: 800;
}

.history-filter-card.active span,
.history-filter-card.active .history-filter-main {
  color: rgba(255, 255, 255, .86);
}

.history-summary-grid strong,
.history-filter-card strong,
.history-latest-card strong {
  display: block;
  margin-top: 6px;
  color: #10203c;
  font-size: 18px;
  font-weight: 950;
}

.history-filter-card.active strong {
  color: #fff;
}

.history-latest-card {
  position: relative;
  overflow: hidden;
  min-height: 86px;
}

.history-latest-card .module-color-button,
.history-filter-card .module-color-button {
  top: 8px;
  right: 8px;
  min-height: 24px !important;
  padding: 3px 7px !important;
  font-size: 11px;
}

.history-filter-card.module-color-card .history-filter-main span,
.history-filter-card.module-color-card .history-filter-main strong,
.history-latest-card.module-color-card span,
.history-latest-card.module-color-card strong {
  color: #fff !important;
}

.manager-history .history-order-item,
.manager-history .history-order-item:hover,
.manager-history .history-order-item.active {
  background: #fff;
  box-shadow: none;
}

.manager-history .history-order-item:hover,
.manager-history .history-order-item.active {
  border-color: #1d6fe8;
}

.history-file-list {
  display: grid;
  gap: 10px;
}

.history-empty {
  padding: 18px;
  border: 1px dashed #cdddf2;
  border-radius: 12px;
  color: #617692;
  background: #f8fbff;
  font-weight: 800;
  text-align: center;
}

.history-empty.large {
  min-height: 160px;
  display: grid;
  place-items: center;
}

.pending-readonly-detail {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  border-color: #cfe0f7;
  background: linear-gradient(135deg, #fbfdff, #f5f9ff);
}

.readonly-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.readonly-detail-grid div,
.readonly-file-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #dce8f7;
  border-radius: 12px;
  background: #fff;
}

.readonly-detail-grid span,
.readonly-file-box span {
  color: #60738d;
  font-size: 12px;
  font-weight: 900;
}

.readonly-detail-grid strong,
.readonly-file-box strong {
  color: #10203c;
  font-size: 17px;
  font-weight: 950;
}

.readonly-file-box p {
  margin: 0;
  color: #60738d;
  font-weight: 800;
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid rgba(32, 111, 232, .18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 20%, rgba(38, 116, 255, .18), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
  box-shadow: 0 18px 42px rgba(33, 87, 164, .10);
}

.service-hero h3 {
  margin: 8px 0 10px;
  color: #10203d;
  font-size: 30px;
}

.service-hero p {
  margin: 0;
  max-width: 760px;
  color: #53627a;
  line-height: 1.8;
}

.service-quota-card {
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1d72ff, #17a9c7);
  color: #fff;
  box-shadow: 0 18px 34px rgba(23, 112, 224, .24);
}

.service-quota-card span,
.service-quota-card small {
  color: rgba(255, 255, 255, .86);
}

.service-quota-card strong {
  font-size: 48px;
  line-height: 1;
}

.service-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  padding: 18px;
  border: 1px solid #d8e4f3;
  border-radius: 16px;
  background: #fff;
}

.service-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  display: grid;
  gap: 18px;
  min-height: 420px;
  padding: 22px;
  border: 1px solid #dbe7f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(27, 63, 113, .08);
}

.service-submit-card {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
}

.service-download-card {
  background: linear-gradient(180deg, #ffffff 0%, #f2fffb 100%);
}

.service-card-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.service-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(135deg, #236cff, #20b3c7);
  box-shadow: 0 12px 24px rgba(35, 108, 255, .25);
}

.service-card h4 {
  margin: 0 0 4px;
  color: #11213d;
  font-size: 20px;
}

.service-card p {
  margin: 0;
  color: #607089;
}

.service-upload-form {
  display: grid;
  gap: 14px;
}

.service-upload-form > button {
  justify-self: start;
  min-width: 180px;
}

.service-file-list {
  display: grid;
  gap: 10px;
}

.service-file-list > strong {
  color: #10203d;
}

.service-file-list.prominent {
  align-content: start;
  min-height: 220px;
  padding: 14px;
  border: 1px dashed rgba(16, 185, 129, .34);
  border-radius: 16px;
  background: rgba(240, 253, 250, .62);
}

.service-quota-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.service-quota-panel > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 16px;
  border: 1px solid #d8e5f5;
  border-radius: 14px;
  background: #f8fbff;
}

.service-quota-panel strong {
  color: #10203d;
  font-size: 16px;
}

.service-quota-panel span {
  margin-right: auto;
  color: #52627a;
}

.danger-outline {
  border-color: rgba(220, 38, 38, .35) !important;
  color: #dc2626 !important;
}

.users-tools .user-scope-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #52627a;
  font-size: 13px;
  font-weight: 700;
}

.users-tools .user-scope-filter select {
  min-width: 160px;
  height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid #d7e2f0;
  border-radius: 10px;
  background: #fff;
  color: #17233b;
}

@media (max-width: 900px) {
  .service-hero,
  .service-toolbar,
  .service-two-col,
  .service-quota-panel {
    grid-template-columns: 1fr;
  }
}

.permissions-modal {
  width: min(1180px, calc(100vw - 40px));
  max-height: min(88vh, 920px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

.permissions-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 12px 0 16px;
  padding: 12px 14px;
  border: 1px solid #d8e6fb;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  color: #334767;
}

.permissions-summary strong {
  color: #1268ff;
  font-size: 20px;
}

.permission-group-grid {
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-right: 4px;
}

.permission-group-card {
  border: 1px solid #d8e5f5;
  border-radius: 16px;
  background: #fbfdff;
  box-shadow: 0 12px 26px rgba(25, 67, 125, .06);
  overflow: hidden;
}

.permission-group-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f2f7ff, #ffffff);
  border-bottom: 1px solid #e6eef9;
  color: #0f1f3d;
}

.permission-group-title strong {
  font-size: 16px;
}

.permission-group-title span {
  color: #1f73ff;
  font-weight: 800;
}

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

.permission-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fff;
}

.permission-check:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.permission-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #1268ff;
}

.permission-check span {
  color: #10203d;
  font-weight: 700;
}

.permission-check small {
  grid-column: 2;
  color: #7b8ba5;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
}

.permissions-actions {
  justify-content: flex-end;
  padding-top: 14px;
}

.admin-app .row-actions [data-edit-permissions] {
  border-color: rgba(79, 70, 229, .28);
  color: #4338ca;
  background: rgba(238, 242, 255, .92);
}

@media (max-width: 900px) {
  .permission-group-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile layout guardrail: only affects phones/tablets, keeps desktop layouts intact. */
@media (max-width: 900px) {
  html,
  body,
  #app {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background: #f4f8ff;
  }

  img,
  canvas,
  svg {
    max-width: 100%;
  }

  .app,
  .admin-app,
  .portal-app,
  .customer-portal-app,
  .writer-portal-app {
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    min-height: 100vh;
    height: auto;
    grid-template-columns: minmax(0, 1fr) !important;
    overflow-x: hidden;
  }

  .sidebar,
  .admin-app .sidebar,
  .portal-app .sidebar,
  .customer-portal-app .sidebar,
  .writer-portal-app .sidebar {
    position: sticky !important;
    top: 0;
    z-index: 60;
    width: 100%;
    min-width: 0;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 14px 34px rgba(9, 31, 74, .18);
  }

  .admin-app .sidebar::before,
  .admin-app .sidebar::after,
  .portal-app .sidebar::before,
  .portal-app .sidebar::after {
    pointer-events: none;
  }

  .brand,
  .customer-portal-app .brand {
    min-height: 42px;
    margin: 0;
    gap: 9px;
  }

  .brand img,
  .customer-portal-app .brand img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    flex: 0 0 auto;
  }

  .brand span,
  .customer-portal-app .brand span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 20px;
  }

  .nav,
  .admin-app .nav,
  .portal-app .nav,
  .customer-portal-app .nav {
    width: 100%;
    max-height: none !important;
    display: flex !important;
    grid-template-columns: none !important;
    gap: 8px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 0 7px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .nav button,
  .portal-app .nav button,
  .customer-portal-app .nav button {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 112px;
    max-width: 172px;
    min-height: 42px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding: 9px 11px;
    text-align: center;
    border-radius: 12px;
    white-space: nowrap;
  }

  .nav button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-icon {
    width: 18px;
    height: 18px;
  }

  .admin-theme-slot,
  .admin-app .admin-side-user,
  .portal-theme-slot,
  .portal-side-footer {
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    width: 100% !important;
  }

  .admin-theme-slot,
  .portal-theme-slot {
    order: 3;
  }

  .admin-app .admin-side-user {
    order: 4;
    padding: 10px;
  }

  .portal-side-footer {
    order: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .portal-side-action {
    min-width: 0;
    min-height: 40px;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
  }

  .side-theme-button {
    min-height: 42px;
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .side-theme-button small {
    display: none;
  }

  .theme-popover {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 96px;
    bottom: auto;
    width: auto;
    max-height: min(70vh, 560px);
    overflow: auto;
    z-index: 100;
  }

  .main,
  .admin-app .main,
  .portal-app .main,
  .customer-portal-app .main,
  .writer-portal-app .main {
    width: 100%;
    min-width: 0;
    height: auto !important;
    min-height: 0;
    overflow: visible;
    padding: 12px !important;
  }

  .topbar,
  .customer-portal-app .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    margin: 0 0 12px;
    padding: 0 0 10px;
  }

  .topbar h2,
  .customer-portal-app .topbar h2 {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: clamp(20px, 6vw, 26px);
  }

  .customer-portal-app .topbar h2::after {
    content: "";
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .top-actions button,
  .top-actions .secondary {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 9px 10px;
  }

  .panel,
  .admin-app .panel,
  .customer-order-card,
  .customer-file-center,
  .customer-upload-panel,
  .customer-empty-module,
  .customer-stage-panel,
  .customer-history-panel,
  .file-history-overview,
  .history-order-pane,
  .history-detail-pane,
  .settlement-writer-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 12px;
  }

  .grid,
  .grid.two,
  .form-grid,
  .admin-app .form-grid,
  .dashboard-hero,
  .home-metrics,
  .home-grid,
  .chart-grid,
  .chart-row,
  .analysis-metrics,
  .finance-metrics,
  .writer-stat-grid,
  .writer-stat-grid.vivid,
  .writer-visual-grid,
  .writer-management-head,
  .writer-export-box,
  .settlement-summary-grid,
  .settlement-metrics,
  .settlement-groups,
  .settlement-settings-grid,
  .settlement-export-fields,
  .quick-process-grid,
  .popup-editor-grid,
  .urgent-quota-actions,
  .history-layout,
  .history-summary-grid,
  .readonly-detail-grid,
  .service-toolbar,
  .service-two-col,
  .service-quota-panel,
  .customer-order-card,
  .customer-file-grid,
  .customer-service-modules,
  .customer-stage-grid,
  .customer-history-grid,
  .customer-upload-panel,
  .customer-upload-panel .upload-hint {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .span-2,
  .span-3,
  .customer-upload-panel .upload-head,
  .customer-upload-tabs,
  .customer-upload-panel .upload-controls {
    grid-column: auto !important;
  }

  .field,
  .field input,
  .field select,
  .field textarea,
  input,
  select,
  textarea {
    min-width: 0;
    max-width: 100%;
  }

  button {
    max-width: 100%;
  }

  .actions,
  .row-actions,
  .admin-app .row-actions,
  .toolbar,
  .payment-record-head,
  .payment-record-summary,
  .pending-head,
  .history-page-head,
  .panel-head,
  .settlement-writer-head,
  .customer-section-head,
  .customer-upload-panel .upload-head,
  .customer-upload-panel .upload-head > div,
  .customer-file-title-head {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px;
  }

  .actions button,
  .row-actions button,
  .admin-app .row-actions button,
  .toolbar button {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .list-controls,
  .history-order-pane .list-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: stretch;
    padding: 10px;
    gap: 8px;
  }

  .list-controls .field,
  .list-search-field,
  .list-page-summary,
  .history-order-pane .list-page-summary {
    grid-column: 1 / -1 !important;
  }

  .list-search-field input {
    min-width: 0;
  }

  .list-controls button,
  .list-controls select,
  .list-jump,
  .list-jump input {
    width: 100%;
    min-width: 0;
  }

  .list-jump {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .table-wrap,
  .admin-app .table-wrap,
  .portal-app #ordersTable .table-wrap,
  .logs-table-wrap,
  .writer-detail-table,
  .writer-order-table,
  .settlement-table,
  .payment-record-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  table {
    width: max-content;
    min-width: min(820px, 220vw);
  }

  th,
  td {
    padding: 10px;
    font-size: 13px;
  }

  .home-hero,
  .admin-app .home-hero {
    min-height: 0;
    padding: 18px !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .home-hero h1,
  .admin-app .home-hero h1 {
    font-size: clamp(26px, 8vw, 34px) !important;
    line-height: 1.18;
  }

  .home-hero-side,
  .home-hero-card {
    width: 100%;
    justify-items: stretch;
  }

  .home-hero-card {
    min-height: 112px;
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 16px;
  }

  .home-hero-card i {
    width: 58px;
    height: 58px;
  }

  .home-hero-card strong {
    font-size: clamp(30px, 13vw, 48px);
  }

  .home-pending-item,
  .compact-item,
  .pending-rule-panel {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch;
  }

  .pending-stats {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-head,
  .admin-app .detail-head,
  .portal-app .detail-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    padding: 16px;
  }

  .detail-head h3,
  .admin-app .detail-head h3,
  .portal-app .detail-head h3 {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: clamp(18px, 5.5vw, 22px);
  }

  .detail-head button,
  .portal-app .detail-head .secondary {
    width: 100%;
  }

  .portal-app .urgent-panel,
  .portal-app .timeout-detail,
  .portal-app .responsibility-banner,
  .portal-app .after-sale-box,
  .portal-app .responsibility-editor,
  .portal-app .file-board,
  .portal-app .upload-panel,
  .admin-app .file-board,
  .urgent-panel,
  .timeout-detail,
  .responsibility-banner,
  .after-sale-box,
  .responsibility-editor {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .file-board,
  .admin-app .file-board,
  .portal-app .file-board {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 14px;
  }

  .file-board-title,
  .file-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
  }

  .file-card,
  .portal-app .file-card {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px;
  }

  .file-card-title,
  .file-card-meta,
  .customer-mini-file-name,
  .customer-mini-file-meta,
  .history-order-item,
  .history-file-item,
  .customer-order-cell,
  .customer-file-card,
  .customer-file-card p,
  .customer-file-card h4,
  .customer-upload-panel,
  .pending-upload-item,
  .settlement-commission-results article {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .customer-order-card {
    min-height: 0;
    padding: 14px;
    gap: 0;
  }

  .customer-order-cell {
    min-height: 0;
    padding: 12px 0 !important;
    border-right: 0;
    border-bottom: 1px solid #e8eef7;
  }

  .customer-order-cell:first-child {
    padding-left: 0 !important;
  }

  .customer-order-cell strong,
  .customer-order-title-cell strong {
    font-size: clamp(19px, 6vw, 23px);
  }

  .customer-order-actions {
    padding: 14px 0 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-file-center {
    overflow: hidden;
  }

  .customer-file-center::before {
    max-width: 100%;
    font-size: clamp(30px, 12vw, 58px);
    white-space: normal;
    text-align: center;
  }

  .customer-file-title-head {
    text-align: left;
  }

  .customer-file-title-head h3 {
    font-size: clamp(20px, 6vw, 24px);
  }

  .customer-file-title-head .secondary {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .customer-file-grid {
    gap: 12px;
  }

  .customer-file-card {
    min-height: 0;
    padding: 14px;
  }

  .customer-file-card-main {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
  }

  .customer-file-card-icon {
    width: 42px;
    height: 42px;
  }

  .customer-file-arrow {
    display: none;
  }

  .customer-file-card h4 span {
    margin: 6px 0 0;
  }

  .customer-upload-panel {
    display: grid;
    gap: 12px;
  }

  .customer-upload-panel .upload-head p {
    display: block;
    margin: 6px 0 0;
  }

  .customer-upload-tabs {
    width: 100%;
    overflow-x: auto;
    border-radius: 10px;
  }

  .customer-upload-tabs button {
    flex: 0 0 auto;
    min-width: 118px;
  }

  .customer-upload-panel .upload-drop {
    min-height: 132px;
    padding: 14px;
  }

  .customer-upload-panel .upload-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
  }

  .customer-upload-panel .urgent-upload-choice,
  .urgent-upload-choice {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .customer-urgent-more,
  .customer-upload-submit {
    width: 100%;
  }

  .customer-selected-head,
  .pending-upload-item,
  .history-filter-card,
  .settlement-detail-toggle,
  .settlement-commission-results article {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
  }

  .history-layout {
    gap: 12px;
  }

  .history-order-pane {
    position: static;
  }

  .history-order-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .history-stage-tabs,
  .history-filter-tabs {
    overflow-x: auto;
    display: flex;
    gap: 8px;
    padding-bottom: 4px;
  }

  .history-stage-tabs button,
  .history-filter-tabs button {
    flex: 0 0 auto;
  }

  .modal-backdrop,
  .customer-urgent-modal-backdrop,
  .customer-stage-modal-backdrop,
  .upload-confirm-backdrop {
    padding: 12px;
    align-items: start;
    overflow: auto;
  }

  .modal-card,
  .modal-card.wide-modal,
  .permissions-modal,
  .customer-urgent-modal,
  .customer-stage-modal,
  .upload-confirm-modal {
    width: 100% !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 24px);
    overflow: auto;
    border-radius: 18px;
  }

  .permissions-modal {
    grid-template-rows: auto auto minmax(260px, 1fr) auto auto;
  }
}

@media (max-width: 560px) {
  .sidebar,
  .admin-app .sidebar,
  .portal-app .sidebar,
  .customer-portal-app .sidebar,
  .writer-portal-app .sidebar {
    padding: 10px;
  }

  .nav button,
  .portal-app .nav button,
  .customer-portal-app .nav button {
    min-width: 96px;
    max-width: 132px;
    min-height: 38px;
    padding: 8px 9px;
    font-size: 13px;
  }

  .brand span,
  .customer-portal-app .brand span {
    font-size: 18px;
  }

  .main,
  .admin-app .main,
  .portal-app .main,
  .customer-portal-app .main,
  .writer-portal-app .main {
    padding: 10px !important;
  }

  .panel,
  .admin-app .panel,
  .customer-order-card,
  .customer-file-center,
  .customer-upload-panel,
  .customer-empty-module,
  .customer-stage-panel,
  .customer-history-panel {
    padding: 12px;
  }

  .top-actions,
  .portal-side-footer,
  .pending-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .list-controls,
  .history-order-pane .list-controls {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .list-jump {
    grid-template-columns: minmax(0, 1fr);
  }

  table {
    min-width: 720px;
  }

  th,
  td {
    padding: 9px;
    font-size: 12px;
  }

  .customer-file-card-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-file-card-icon {
    width: 38px;
    height: 38px;
  }

  .customer-upload-tabs button {
    min-width: 106px;
    font-size: 13px;
  }

  .customer-empty-module {
    min-height: 240px;
  }

  .customer-empty-module h3 {
    font-size: 24px;
  }
}

.ai-config-panel .modal-head {
  align-items: flex-start;
}

.ai-config-form {
  display: grid;
  gap: 18px;
}

.ai-config-form textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.7;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: var(--text);
  font-weight: 700;
}

.checkbox-line input {
  width: 16px;
  height: 16px;
}

.ai-generate-button {
  margin-right: 8px;
  color: #0f6bff;
  border-color: rgba(15, 107, 255, 0.32);
  background: linear-gradient(135deg, #eef6ff, #ffffff);
}

.ai-generate-button:disabled {
  opacity: 0.72;
  cursor: progress;
}

.ai-working-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 20, 46, 0.42);
  backdrop-filter: blur(10px);
}

.ai-working-modal {
  width: min(460px, 100%);
  padding: 34px 30px;
  border: 1px solid rgba(162, 190, 255, 0.42);
  border-radius: 20px;
  text-align: center;
  color: #10213f;
  background: linear-gradient(145deg, #ffffff, #edf5ff);
  box-shadow: 0 28px 90px rgba(15, 67, 140, 0.28);
}

.ai-working-modal h3 {
  margin: 18px 0 10px;
  font-size: 22px;
}

.ai-working-modal p {
  margin: 0;
  color: #5d6c86;
  line-height: 1.7;
}

.ai-working-modal span {
  display: inline-flex;
  margin-top: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #0f6bff;
  background: rgba(15, 107, 255, 0.1);
  font-weight: 800;
}

.ai-working-spinner {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border: 5px solid rgba(15, 107, 255, 0.14);
  border-top-color: #0f6bff;
  border-radius: 50%;
  animation: aiSpin 0.9s linear infinite;
}

@keyframes aiSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .admin-app .compact-list,
  .admin-app .home-pending-list {
    min-width: 0;
    max-width: 100%;
  }

  .admin-app .compact-item,
  .admin-app .home-dispute-item,
  .admin-app .home-pending-item {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: stretch;
    overflow: hidden;
  }

  .admin-app .compact-copy,
  .admin-app .compact-item strong,
  .admin-app .compact-item span,
  .admin-app .home-pending-main,
  .admin-app .home-pending-main span,
  .admin-app .home-pending-main strong,
  .admin-app .home-pending-main small {
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .admin-app .compact-item time,
  .admin-app .compact-item b,
  .admin-app .home-pending-item time,
  .admin-app .home-go-process {
    justify-self: start;
  }

  .admin-app .home-pending-main {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
  }

  .admin-app .home-go-process {
    width: 100%;
  }
}

@media (max-width: 1200px) {
  .public-nav {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-inline: 28px;
  }

  .public-nav-links {
    gap: 16px;
  }

  .public-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 52px;
  }

  .public-visual {
    min-height: 500px;
  }

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

  .public-toolbox,
  .public-trust {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .public-toolbox article.wide {
    grid-row: auto;
    min-height: 300px;
  }
}

@media (max-width: 900px) {
  .public-nav {
    position: sticky;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 12px;
    padding: 12px 18px;
  }

  .public-brand {
    justify-self: center;
  }

  .public-nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .public-nav-links button,
  .public-strip span {
    flex: 0 0 auto;
  }

  .public-nav-actions {
    justify-content: center;
  }

  .public-main {
    gap: 56px;
  }

  .public-hero {
    width: min(calc(100% - 28px), 720px);
    min-height: auto;
    padding: 34px 0 18px;
  }

  .public-hero-copy {
    width: 100%;
    max-width: 100%;
    justify-items: center;
    text-align: center;
  }

  .public-hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(34px, 10vw, 44px);
  }

  .public-hero h1 .hero-kicker-line {
    font-size: clamp(24px, 7vw, 32px);
  }

  .public-hero h1 .hero-main-line {
    font-size: clamp(32px, 9.4vw, 40px);
  }

  .public-hero h1 .hero-kicker-line,
  .public-hero h1 .hero-main-line {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .public-hero p {
    max-width: 100%;
    font-size: 16px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .public-hero-actions {
    width: 100%;
    justify-content: center;
  }

  .public-cta,
  .public-ghost {
    width: 100%;
    min-height: 52px;
    padding-inline: 18px;
  }

  .public-visual {
    min-height: auto;
    gap: 12px;
  }

  .public-window {
    transform: none;
  }

  .public-window-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-window-body aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid rgba(216, 226, 242, .72);
    padding: 18px;
  }

  .public-document {
    padding: 20px;
  }

  .public-floating-card {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .public-strip {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .public-section,
  .public-flow-section,
  .public-toolbox,
  .public-trust,
  .public-note,
  .public-final {
    width: min(calc(100% - 28px), 720px);
  }

  .public-feature-grid,
  .public-flow,
  .public-trust-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-feature-grid article,
  .public-flow article,
  .public-toolbox article {
    min-height: 0;
    padding: 24px;
  }

  .public-trust {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .public-note {
    padding: 22px;
  }

  .public-footer {
    padding: 42px 18px 24px;
  }

  .public-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
}

@media (max-width: 560px) {
  .public-brand img {
    width: 38px;
    height: 38px;
  }

  .public-brand span {
    font-size: 18px;
  }

  .public-login-button,
  .public-login-link {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
  }

  .public-nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .public-hero h1 .hero-kicker-line {
    font-size: 27px;
  }

  .public-hero h1 .hero-main-line {
    font-size: 38px;
  }

  .public-window-top span {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .public-window-body aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-footer-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-footer-logo {
    align-items: flex-start;
  }

  .public-section-head h2,
  .public-toolbox h2,
  .public-trust h2,
  .public-final h2 {
    font-size: 28px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    min-width: 0;
    overflow-x: hidden;
  }

  .mobile-customer-app {
    --mobile-primary: var(--customer-primary, #1673ff);
    --mobile-primary-2: var(--customer-primary-dark, #0c56e8);
    --mobile-bg: #edf5ff;
    width: 100%;
    min-height: 100dvh;
    color: #0d1b36;
    background:
      radial-gradient(circle at 18% 4%, rgba(68, 141, 255, .22), transparent 32%),
      radial-gradient(circle at 88% 12%, rgba(109, 86, 255, .15), transparent 30%),
      linear-gradient(180deg, #f6fbff 0%, #eaf3ff 100%);
  }

  .mobile-customer-main {
    min-height: 100dvh;
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .mobile-page {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 16px 14px 26px;
  }

  .mobile-home-head,
  .mobile-title-head,
  .mobile-profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 62px;
  }

  .mobile-home-head h1,
  .mobile-title-head h1,
  .mobile-profile-hero h1 {
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: 0;
    color: #0b1730;
  }

  .mobile-home-head p,
  .mobile-title-head p,
  .mobile-profile-hero p {
    margin: 4px 0 0;
    color: #62708a;
    font-size: 13px;
  }

  .mobile-bell,
  .mobile-back-btn,
  .mobile-profile-hero > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    color: var(--mobile-primary);
    box-shadow: 0 10px 26px rgba(45, 93, 158, .14);
  }

  .mobile-bell {
    position: relative;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-bell::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff3b4f;
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: -1;
  }

  .mobile-order-hero,
  .mobile-service-hero,
  .mobile-profile-hero {
    overflow: hidden;
    border-radius: 18px;
    padding: 18px;
    color: #fff;
    background:
      radial-gradient(circle at 82% 20%, rgba(255, 255, 255, .24), transparent 25%),
      linear-gradient(135deg, var(--mobile-primary), #0f7dff 52%, #20b8d2);
    box-shadow: 0 18px 42px rgba(22, 115, 255, .24);
  }

  .mobile-order-hero h2 {
    margin: 12px 0 18px;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 900;
    color: #fff;
  }

  .mobile-order-top,
  .mobile-order-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .mobile-order-top span,
  .mobile-order-meta span {
    font-size: 13px;
    color: rgba(255, 255, 255, .86);
  }

  .mobile-order-top strong {
    font-size: 21px;
    color: #fff;
  }

  .mobile-order-top em {
    margin-left: auto;
    padding: 6px 12px;
    border-radius: 999px;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
    background: rgba(255, 255, 255, .20);
  }

  .mobile-stage-flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    gap: 4px;
    margin: -4px 0 14px;
    padding: 14px 6px 10px;
    border-radius: 0 0 20px 20px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 30px rgba(34, 80, 150, .10);
  }

  .mobile-stage-flow button {
    display: grid;
    justify-items: center;
    gap: 5px;
    border: 0;
    background: transparent;
    color: #62708a;
    font-size: 12px;
    font-weight: 800;
    padding: 0;
  }

  .mobile-stage-flow i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-style: normal;
    color: #60708c;
    background: #eef4ff;
    border: 1px solid #dce8fb;
  }

  .mobile-stage-flow .active i {
    color: #fff;
    background: var(--mobile-primary);
    box-shadow: 0 8px 18px rgba(22, 115, 255, .26);
  }

  .mobile-todo-card,
  .mobile-service-card,
  .mobile-file-card,
  .mobile-upload-center,
  .mobile-member-card,
  .mobile-profile-list,
  .mobile-empty-card {
    border: 1px solid rgba(205, 220, 241, .82);
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 32px rgba(31, 75, 132, .10);
  }

  .mobile-todo-card {
    padding: 16px;
    margin: 16px 0 22px;
  }

  .mobile-todo-card strong,
  .mobile-section-head h2,
  .mobile-service-card h2 {
    display: block;
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    color: #101c36;
  }

  .mobile-todo-card span,
  .mobile-service-card p {
    color: #5f6d86;
    font-size: 13px;
  }

  .mobile-todo-card > button,
  .mobile-upload-center > button,
  .mobile-service-form button {
    width: 100%;
    min-height: 46px;
    margin-top: 14px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--mobile-primary), var(--mobile-primary-2));
    box-shadow: 0 12px 26px rgba(22, 115, 255, .22);
  }

  .mobile-todo-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .mobile-todo-meta span {
    border-radius: 12px;
    padding: 9px 10px;
    color: #1c4fa4;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 2px 10px;
  }

  .mobile-section-head button,
  .mobile-link-btn {
    border: 0;
    background: transparent;
    color: #537095;
    font-weight: 800;
  }

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

  .mobile-overview-card {
    min-height: 92px;
    border: 0;
    border-radius: 16px;
    padding: 13px;
    text-align: left;
    background: #fff;
    box-shadow: 0 12px 28px rgba(31, 75, 132, .09);
  }

  .mobile-overview-card i,
  .mobile-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #fff;
  }

  .mobile-overview-card i svg,
  .mobile-file-icon svg,
  .mobile-customer-tabbar svg,
  .mobile-profile-hero svg,
  .mobile-service-hero svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-overview-card strong {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #101c36;
  }

  .mobile-overview-card span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #687792;
  }

  .mobile-overview-card.paper i,
  .mobile-file-card.paper .mobile-file-icon {
    background: #1673ff;
  }

  .mobile-overview-card.comment i,
  .mobile-file-card.comment .mobile-file-icon {
    background: #8057ff;
  }

  .mobile-overview-card.reference i,
  .mobile-file-card.reference .mobile-file-icon {
    background: #ffa51f;
  }

  .mobile-overview-card.after i,
  .mobile-file-card.after .mobile-file-icon {
    background: #10b981;
  }

  .mobile-history-list {
    display: grid;
    gap: 10px;
  }

  .mobile-history-item,
  .mobile-file-latest {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(211, 224, 244, .85);
    border-radius: 15px;
    padding: 11px 12px;
    text-align: left;
    color: #14203a;
    background: rgba(255, 255, 255, .96);
  }

  .mobile-history-item i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mobile-primary);
    box-shadow: 0 0 0 5px rgba(22, 115, 255, .12);
  }

  .mobile-history-item strong,
  .mobile-file-latest span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-history-item small,
  .mobile-file-latest small {
    display: block;
    margin-top: 4px;
    color: #65738d;
    font-size: 12px;
  }

  .mobile-history-item em {
    font-style: normal;
    color: #10a56c;
    font-weight: 900;
    font-size: 12px;
  }

  .mobile-title-head.with-back {
    justify-content: flex-start;
  }

  .mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(211, 224, 244, .85);
    box-shadow: 0 12px 28px rgba(31, 75, 132, .08);
  }

  .mobile-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
  }

  .mobile-search svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #15223c;
    stroke-width: 2;
  }

  .mobile-stage-tabs,
  .mobile-platform-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 14px 0 8px;
  }

  .mobile-stage-tabs button,
  .mobile-platform-grid button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 13px;
    padding: 10px 13px;
    color: #344664;
    background: #f2f6fd;
    font-weight: 900;
  }

  .mobile-stage-tabs button.active,
  .mobile-platform-grid button.active {
    color: #fff;
    background: linear-gradient(135deg, var(--mobile-primary), #7a4dff);
  }

  .mobile-file-stack {
    display: grid;
    gap: 12px;
    margin-top: 8px;
  }

  .mobile-file-card {
    padding: 15px;
  }

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

  .mobile-file-card h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    color: #101c36;
  }

  .mobile-file-card p {
    margin: 4px 0 0;
    color: #65738d;
    font-size: 13px;
  }

  .mobile-file-empty {
    margin-top: 12px;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    color: #738099;
    background: #f7faff;
  }

  .mobile-outline-btn {
    width: 100%;
    min-height: 42px;
    margin-top: 12px;
    border: 1px solid rgba(22, 115, 255, .55);
    border-radius: 13px;
    color: var(--mobile-primary);
    background: #fff;
    font-weight: 900;
  }

  .mobile-upload-center {
    margin-top: 14px;
    padding: 16px;
    text-align: center;
  }

  .mobile-upload-center h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
  }

  .mobile-upload-center p {
    margin: 6px 0 0;
    color: #65738d;
    font-size: 13px;
  }

  .mobile-service-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 160px;
    margin: 8px 0 16px;
    background: linear-gradient(135deg, #1a72ff, #7a4dff);
  }

  .mobile-service-page.reduce .mobile-service-hero {
    background: linear-gradient(135deg, #1473ff, #16b5d8);
  }

  .mobile-service-hero span {
    display: block;
    font-size: 18px;
    font-weight: 900;
  }

  .mobile-service-hero strong {
    display: block;
    margin-top: 12px;
    font-size: 46px;
    line-height: 1;
  }

  .mobile-service-hero small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, .82);
    font-weight: 800;
  }

  .mobile-service-hero i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .22);
  }

  .mobile-service-hero i svg {
    width: 36px;
    height: 36px;
  }

  .mobile-service-card {
    padding: 16px;
    margin-bottom: 14px;
  }

  .mobile-select-line {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 12px 0;
  }

  .mobile-select-line span {
    color: #5d6d88;
    font-weight: 900;
  }

  .mobile-select-line select {
    min-width: 0;
    min-height: 42px;
    border: 1px solid #d8e5f6;
    border-radius: 12px;
    padding: 0 10px;
    background: #fff;
  }

  .mobile-upload-drop {
    display: grid;
    justify-items: center;
    gap: 7px;
    margin-top: 14px;
    border: 1px dashed rgba(22, 115, 255, .58);
    border-radius: 16px;
    padding: 22px 14px;
    color: #234876;
    background: #f8fbff;
  }

  .mobile-upload-drop input {
    display: none;
  }

  .mobile-upload-drop strong {
    font-size: 16px;
    color: var(--mobile-primary);
  }

  .mobile-upload-drop span {
    text-align: center;
    color: #65738d;
    font-size: 12px;
  }

  .mobile-status-timeline {
    display: grid;
    gap: 12px;
    margin-top: 12px;
  }

  .mobile-status-timeline span {
    position: relative;
    display: block;
    padding-left: 34px;
    min-height: 26px;
    color: #76839a;
    font-weight: 900;
  }

  .mobile-status-timeline span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #d7e1f1;
  }

  .mobile-status-timeline span.active {
    color: var(--mobile-primary);
  }

  .mobile-status-timeline span.active::before {
    background: var(--mobile-primary);
    box-shadow: 0 0 0 5px rgba(22, 115, 255, .12);
  }

  .mobile-member-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    padding: 14px;
  }

  .mobile-member-card strong {
    display: block;
    font-size: 16px;
  }

  .mobile-member-card span {
    display: block;
    margin-top: 4px;
    color: #687792;
    font-size: 12px;
  }

  .mobile-member-card button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    color: #7a4510;
    background: #fff0d6;
    font-weight: 900;
  }

  .mobile-profile-hero {
    justify-content: flex-start;
    margin-top: 8px;
  }

  .mobile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
    font-size: 24px;
    font-weight: 900;
  }

  .mobile-profile-hero > button {
    margin-left: auto;
    color: #fff;
    background: rgba(255, 255, 255, .20);
  }

  .mobile-profile-list {
    overflow: hidden;
  }

  .mobile-profile-list button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    border: 0;
    border-bottom: 1px solid #edf2fa;
    padding: 0 16px;
    color: #14203a;
    background: #fff;
    font-size: 15px;
    font-weight: 900;
  }

  .mobile-profile-list button:last-child {
    border-bottom: 0;
  }

  .mobile-profile-list em {
    font-style: normal;
    color: #8a96aa;
  }

  .mobile-empty-page,
  .mobile-empty-card {
    padding: 22px;
    text-align: center;
    color: #64748b;
  }

  .mobile-customer-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(211, 224, 244, .9);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(18px);
    box-shadow: 0 -12px 28px rgba(31, 75, 132, .10);
  }

  .mobile-customer-tabbar button {
    display: grid;
    justify-items: center;
    gap: 4px;
    border: 0;
    background: transparent;
    color: #6f7c91;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 0;
  }

  .mobile-customer-tabbar button.active {
    color: var(--mobile-primary);
  }

  .mobile-customer-tabbar svg {
    width: 22px;
    height: 22px;
  }

  .mobile-home-v2 {
    padding: 14px 16px 18px;
  }

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

  .mobile-home-v2-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .mobile-home-v2-avatar,
  .mobile-default-avatar {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: block;
    flex: 0 0 auto;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(39, 82, 145, .14);
  }

  .mobile-home-v2-head span {
    color: #71829d;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-home-v2-head h1 {
    margin: 3px 0 0;
    color: #0b1730;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: 0;
  }

  .mobile-home-v2-bell {
    position: relative;
    width: 36px;
    height: 36px;
    border: 1px solid #dce8f7;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.9);
    color: var(--mobile-primary);
    box-shadow: 0 10px 22px rgba(35, 79, 144, .11);
  }

  .mobile-home-v2-bell svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-home-v2-bell em {
    position: absolute;
    right: -2px;
    top: -5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: #ef4444;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
  }

  .mobile-home-v2-order {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 17px;
    color: #fff;
    background:
      radial-gradient(circle at 86% 18%, rgba(255,255,255,.24), transparent 24%),
      linear-gradient(135deg, var(--mobile-primary) 0%, #009dff 55%, #14c8d8 100%);
    box-shadow: 0 18px 36px rgba(18,104,255,.25);
  }

  .mobile-home-v2-order::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -48px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
  }

  .mobile-home-v2-order > * {
    position: relative;
    z-index: 1;
  }

  .mobile-home-v2-order-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }

  .mobile-home-v2-order-top span {
    display: grid;
    gap: 2px;
  }

  .mobile-home-v2-order-top small {
    opacity: .78;
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-home-v2-order-top strong {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0;
  }

  .mobile-home-v2-order-top em {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.2);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
  }

  .mobile-home-v2-order h2 {
    max-width: 88%;
    margin: 0;
    color: #fff;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 900;
    letter-spacing: 0;
  }

  .mobile-home-v2-order-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }

  .mobile-home-v2-order-meta span {
    min-height: 42px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px;
    padding: 8px 10px;
    color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.17);
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-home-v2-order-meta b {
    display: block;
    margin-top: 3px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-home-v2 .mobile-stage-flow {
    margin: 10px 0;
    padding: 9px 8px;
    border: 1px solid #dfeaf8;
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 12px 26px rgba(42, 82, 136, .08);
  }

  .mobile-home-v2 .mobile-stage-flow button {
    gap: 4px;
    font-size: 10px;
  }

  .mobile-home-v2 .mobile-stage-flow i {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .mobile-home-v2 .mobile-stage-flow .active i {
    width: 28px;
    border-radius: 14px;
  }

  .mobile-home-v2-todo {
    margin-bottom: 11px;
    border: 1px solid #dfeaf8;
    border-radius: 20px;
    padding: 13px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    box-shadow: 0 14px 28px rgba(42, 82, 136, .08);
  }

  .mobile-home-v2-todo-head,
  .mobile-home-v2-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mobile-home-v2-todo-head {
    margin-bottom: 10px;
  }

  .mobile-home-v2-todo-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #101c36;
    font-size: 14px;
    font-weight: 900;
  }

  .mobile-home-v2-todo-head i,
  .mobile-home-v2-file i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    color: #fff;
    background: var(--mobile-primary);
    font-style: normal;
  }

  .mobile-home-v2-todo-head i svg,
  .mobile-home-v2-file i svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-home-v2-todo-head em {
    padding: 4px 8px;
    border-radius: 999px;
    color: #db2e2e;
    background: #ffe4e4;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
  }

  .mobile-home-v2-todo h3 {
    margin: 0 0 11px;
    color: #101c36;
    font-size: 15px;
    font-weight: 900;
  }

  .mobile-home-v2-todo-meta {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 8px;
    margin-bottom: 10px;
  }

  .mobile-home-v2-todo-meta span {
    border-radius: 12px;
    padding: 8px 9px;
    color: #4e6485;
    background: #f1f6ff;
    font-size: 11px;
    font-weight: 900;
  }

  .mobile-home-v2-todo-meta b {
    display: block;
    margin-top: 3px;
    color: #17233f;
    font-size: 12px;
  }

  .mobile-home-v2-todo > button {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--mobile-primary), var(--mobile-primary-2));
    box-shadow: 0 11px 24px rgba(22,115,255,.2);
    font-weight: 900;
  }

  .mobile-home-v2-section {
    margin: 6px 2px 8px;
  }

  .mobile-home-v2-section h2 {
    margin: 0;
    color: #101c36;
    font-size: 14px;
    font-weight: 900;
  }

  .mobile-home-v2-section button {
    border: 0;
    background: transparent;
    color: var(--mobile-primary);
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-home-v2-files {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-home-v2-file {
    min-height: 64px;
    border: 1px solid #deebf9;
    border-radius: 16px;
    display: grid;
    align-content: space-between;
    gap: 5px;
    padding: 9px;
    text-align: left;
    color: #17233f;
    background: rgba(255,255,255,.92);
    box-shadow: 0 9px 18px rgba(42,82,136,.06);
    font-weight: 900;
  }

  .mobile-home-v2-file.comment i {
    background: #8057ff;
  }

  .mobile-home-v2-file.after i {
    background: #10b981;
  }

  .mobile-home-v2-file strong {
    display: block;
    overflow: hidden;
    color: #17233f;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-home-v2-file span {
    display: block;
    overflow: hidden;
    color: #76859d;
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-file-v2,
  .mobile-service-v2,
  .mobile-profile-v2,
  .mobile-entitlement-v2 {
    padding: 14px 16px 22px;
  }

  .mobile-file-v2 .mobile-title-head,
  .mobile-service-v2 .mobile-title-head,
  .mobile-entitlement-v2 .mobile-title-head {
    min-height: 48px;
    justify-content: center;
    position: relative;
  }

  .mobile-file-v2 .mobile-title-head h1,
  .mobile-service-v2 .mobile-title-head h1,
  .mobile-entitlement-v2 .mobile-title-head h1 {
    font-size: 18px;
  }

  .mobile-file-v2 .mobile-title-head p {
    display: none;
  }

  .mobile-history-overview-v2 .mobile-title-head.with-back .mobile-back-btn,
  .mobile-service-v2 .mobile-title-head.with-back .mobile-back-btn,
  .mobile-entitlement-v2 .mobile-title-head.with-back .mobile-back-btn {
    position: absolute;
    left: 0;
  }

  .mobile-file-v2 .mobile-search {
    margin: 6px 0 14px;
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(42, 82, 136, .07);
  }

  .mobile-file-v2 .mobile-stage-tabs {
    padding: 0 0 10px;
  }

  .mobile-file-v2 .mobile-file-stack {
    gap: 12px;
  }

  .mobile-file-v2 .mobile-file-card {
    border-radius: 20px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,251,255,.94));
  }

  .mobile-file-v2 .mobile-file-card.paper {
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(232,244,255,.96));
  }

  .mobile-file-v2 .mobile-file-card.comment {
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(247,236,255,.96));
  }

  .mobile-file-v2 .mobile-file-card.reference {
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,247,229,.96));
  }

  .mobile-file-v2 .mobile-file-card.after {
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(232,253,245,.96));
  }

  .mobile-file-v2 .mobile-file-latest {
    margin-top: 12px;
    border: 0;
    box-shadow: 0 10px 22px rgba(42, 82, 136, .07);
  }

  .mobile-file-v2 .mobile-file-empty {
    border: 1px dashed #cfdcf0;
    background: rgba(255,255,255,.65);
  }

  .mobile-file-v2-upload {
    margin: 13px 0 10px;
  }

  .mobile-file-v2-stage-tabs {
    justify-content: center;
    padding: 10px 0 0;
  }

  .mobile-file-v2-current {
    display: grid;
    gap: 3px;
    margin: 10px 0;
    border-radius: 14px;
    padding: 10px 12px;
    text-align: left;
    color: #4e6485;
    background: #f1f6ff;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-file-v2-current strong {
    color: #17233f;
    font-size: 15px;
  }

  .mobile-file-v2-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 0;
  }

  .mobile-file-v2-category-grid button {
    min-height: 64px;
    border: 1px solid #deebf9;
    border-radius: 14px;
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 9px 6px;
    color: #17233f;
    background: #fff;
    box-shadow: 0 8px 18px rgba(42,82,136,.05);
    font-size: 11px;
    font-weight: 900;
  }

  .mobile-file-v2-category-grid button.active {
    border-color: rgba(22,115,255,.35);
    color: var(--mobile-primary);
    background: #eef6ff;
  }

  .mobile-file-v2-category-grid i {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--mobile-primary);
  }

  .mobile-file-v2-category-grid .comment i { background: #8057ff; }
  .mobile-file-v2-category-grid .reference i { background: #ffa51f; }

  .mobile-file-v2-category-grid svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .mobile-file-v2-stage-hint {
    margin-top: 10px;
    border: 1px dashed #cfdcf0;
    border-radius: 14px;
    padding: 13px;
    color: #71809a;
    background: rgba(255,255,255,.65);
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-history-v2-hero {
    margin: 6px 0 14px;
    border-radius: 22px;
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    color: #fff;
    background: linear-gradient(135deg, #1268ff, #0ea5a4);
    box-shadow: 0 18px 38px rgba(18,104,255,.2);
  }

  .mobile-history-v2-hero span,
  .mobile-history-v2-hero p,
  .mobile-history-v2-hero small {
    color: rgba(255,255,255,.8);
  }

  .mobile-history-v2-hero h2 {
    margin: 5px 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
  }

  .mobile-history-v2-hero p {
    margin: 0;
    font-size: 12px;
  }

  .mobile-history-v2-hero strong {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.18);
    font-size: 24px;
  }

  .mobile-history-v2-hero small {
    display: block;
    font-size: 10px;
  }

  .mobile-v2-section-head {
    margin: 18px 2px 10px;
  }

  .mobile-v2-section-head span {
    color: #71809a;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-v2-stage-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 12px;
  }

  .mobile-v2-stage-filter button {
    min-height: 56px;
    border: 1px solid #deebf9;
    border-radius: 16px;
    display: grid;
    align-content: center;
    gap: 4px;
    color: #17233f;
    background: rgba(255,255,255,.92);
    box-shadow: 0 8px 18px rgba(42, 82, 136, .06);
    font-size: 13px;
    font-weight: 900;
    text-align: left;
  }

  .mobile-v2-stage-filter button.active {
    border-color: rgba(22, 115, 255, .35);
    color: var(--mobile-primary);
    background: #eef6ff;
  }

  .mobile-v2-stage-filter small {
    color: #71809a;
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-v2-history-groups,
  .mobile-v2-timeline,
  .mobile-v2-history-list {
    display: grid;
    gap: 10px;
  }

  .mobile-v2-history-card {
    border: 1px solid rgba(205, 220, 241, .82);
    border-radius: 18px;
    padding: 13px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 26px rgba(31, 75, 132, .08);
  }

  .mobile-v2-history-card h3 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #101c36;
  }

  .mobile-v2-history-item,
  .mobile-v2-timeline-event {
    width: 100%;
    border: 1px solid #deebf9;
    border-radius: 15px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    text-align: left;
    color: #17233f;
    background: #fff;
    box-shadow: 0 8px 18px rgba(42, 82, 136, .05);
  }

  .mobile-v2-history-item i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--mobile-primary);
  }

  .mobile-v2-history-item.comment i { background: #8057ff; }
  .mobile-v2-history-item.reference i { background: #ffa51f; }
  .mobile-v2-history-item.after i { background: #10b981; }
  .mobile-v2-history-item.ppt i { background: #7a4dff; }
  .mobile-v2-history-item.reduce i { background: #0ea5a4; }

  .mobile-v2-history-item svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-v2-history-item strong,
  .mobile-v2-timeline-event strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: #14203a;
  }

  .mobile-v2-history-item small,
  .mobile-v2-timeline-event small {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #65738d;
    font-size: 11px;
  }

  .mobile-v2-history-item em,
  .mobile-v2-timeline-event em {
    color: #10a56c;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
  }

  .mobile-v2-timeline-event {
    position: relative;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    border-left: 2px solid #cfe0f5;
  }

  .mobile-v2-timeline-event i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mobile-primary);
    box-shadow: 0 0 0 5px rgba(22,115,255,.12);
  }

  .mobile-service-v2-hero {
    margin: 6px 0 14px;
    border-radius: 22px;
    padding: 16px;
    color: #fff;
    background: linear-gradient(135deg, #4f46ff, #7a4dff);
    box-shadow: 0 18px 38px rgba(93, 74, 255, .24);
  }

  .mobile-service-v2.reduce .mobile-service-v2-hero {
    background: linear-gradient(135deg, #1268ff, #0ea5a4);
    box-shadow: 0 18px 38px rgba(18,104,255,.22);
  }

  .mobile-service-v2-hero-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-service-v2-hero-head span {
    display: block;
    font-size: 19px;
    font-weight: 900;
  }

  .mobile-service-v2-hero-head strong {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,.78);
    font-size: 12px;
  }

  .mobile-service-v2-hero-head i {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.18);
  }

  .mobile-service-v2-hero-head svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .mobile-service-v2-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }

  .mobile-service-v2-meta div {
    border-radius: 14px;
    padding: 10px 8px;
    background: rgba(255,255,255,.88);
  }

  .mobile-service-v2-meta span {
    display: block;
    color: #4e5e7a;
    font-size: 10px;
    font-weight: 900;
  }

  .mobile-service-v2-meta b {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #17233f;
    font-size: 12px;
  }

  .mobile-service-v2-meta b.warn { color: #f97316; }
  .mobile-service-v2-meta b.ok { color: #10a56c; }

  .mobile-service-v2-card {
    margin-bottom: 12px;
  }

  .mobile-service-v2-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mobile-service-v2-row h2 {
    margin: 0;
  }

  .mobile-service-v2-row span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef6ff;
    color: var(--mobile-primary);
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-service-v2-row span.green { color: #0f9f6e; background: #e9f8f2; }
  .mobile-service-v2-row span.purple { color: #6d4bff; background: #f0ecff; }

  .mobile-service-v2-buy {
    width: 100%;
    min-height: 44px;
    margin-top: 12px;
    border-radius: 13px;
    color: #fff;
    font-weight: 900;
  }

  .mobile-service-v2-buy.green {
    background: linear-gradient(135deg, #1268ff, #0ea5a4);
  }

  .mobile-service-v2-buy.purple {
    background: linear-gradient(135deg, #1268ff, #7a4dff);
  }

  .mobile-service-v2-platforms {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    padding: 10px 0 2px;
  }

  .mobile-service-v2-platforms button {
    min-height: 64px;
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 9px 6px;
    border: 1px solid #deebf9;
    background: #fff;
    box-shadow: 0 8px 18px rgba(42,82,136,.05);
  }

  .mobile-service-v2-platforms i {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--mobile-primary);
    font-style: normal;
    font-size: 12px;
  }

  .mobile-service-v2-platforms button.active i {
    background: rgba(255,255,255,.22);
  }

  .mobile-service-v2-platforms span {
    font-size: 11px;
    white-space: nowrap;
  }

  .mobile-service-v2-materials {
    display: grid;
    gap: 8px;
    margin-top: 12px;
  }

  .mobile-service-v2-materials button {
    min-height: 48px;
    border: 1px solid #deebf9;
    border-radius: 14px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    text-align: left;
    color: #17233f;
    background: #fff;
    box-shadow: 0 8px 18px rgba(42,82,136,.05);
  }

  .mobile-service-v2-materials i {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--mobile-primary);
  }

  .mobile-service-v2-materials svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .mobile-service-v2-materials span {
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-service-v2-materials em {
    color: #10a56c;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
  }

  .mobile-service-v2 .mobile-upload-drop {
    min-height: 96px;
  }

  .mobile-service-v2-timeline {
    display: grid;
    gap: 13px;
    margin-top: 12px;
  }

  .mobile-service-v2-timeline span {
    position: relative;
    display: block;
    min-height: 40px;
    padding-left: 34px;
    color: #76839a;
  }

  .mobile-service-v2-timeline span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #d7e1f1;
  }

  .mobile-service-v2-timeline span::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 24px;
    bottom: -12px;
    width: 2px;
    background: #d7e1f1;
  }

  .mobile-service-v2-timeline span:last-child::after {
    display: none;
  }

  .mobile-service-v2-timeline span.active {
    color: var(--mobile-primary);
  }

  .mobile-service-v2-timeline span.active::before {
    background: var(--mobile-primary);
    box-shadow: 0 0 0 5px rgba(22,115,255,.12);
  }

  .mobile-service-v2-timeline b {
    display: block;
    font-size: 14px;
  }

  .mobile-service-v2-timeline small {
    display: block;
    margin-top: 3px;
    color: #65738d;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-profile-v2-hero {
    min-height: 154px;
    margin: 0 -16px 12px;
    padding: 22px 16px 54px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    color: #fff;
    background:
      radial-gradient(circle at 90% 16%, rgba(255,255,255,.22), transparent 26%),
      linear-gradient(135deg, #1268ff, #0f7dff 54%, #20b8d2);
  }

  .mobile-profile-v2-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  .mobile-profile-v2-avatar .mobile-default-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    box-shadow: 0 14px 28px rgba(6,35,88,.2);
  }

  .mobile-profile-v2-user span {
    color: rgba(255,255,255,.76);
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-profile-v2-user h1 {
    margin: 3px 0 0;
    color: #fff;
    font-size: 19px;
    font-weight: 900;
  }

  .mobile-profile-v2-user p {
    margin: 4px 0 0;
    color: rgba(255,255,255,.86);
    font-size: 12px;
  }

  .mobile-profile-v2-hero > button {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    color: #fff;
    background: rgba(255,255,255,.18);
    box-shadow: none;
  }

  .mobile-profile-v2-hero svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .mobile-profile-v2-member {
    width: 100%;
    margin: -42px 0 12px;
    border: 1px solid #ffe1aa;
    border-radius: 16px;
    color: #7a4510;
    background: #fff4df;
    box-shadow: 0 12px 26px rgba(194,119,21,.12);
    text-align: left;
  }

  .mobile-profile-v2-member em {
    color: #8a520f;
    font-style: normal;
    font-weight: 900;
  }

  .mobile-profile-v2-menu {
    border-radius: 18px;
  }

  .mobile-profile-v2-menu button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 11px;
    min-height: 52px;
    text-align: left;
  }

  .mobile-profile-v2-menu i {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--mobile-primary);
    font-style: normal;
  }

  .mobile-profile-v2-menu i.green { background: #10b981; }
  .mobile-profile-v2-menu i.orange { background: #f59e0b; }
  .mobile-profile-v2-menu i.purple { background: #7a4dff; }
  .mobile-profile-v2-menu i.dark { background: #24324f; }
  .mobile-profile-v2-menu i.red { background: #ef4444; }

  .mobile-profile-v2-menu svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-profile-v2-menu span {
    min-width: 0;
  }

  .mobile-profile-v2-menu em {
    font-size: 12px;
  }

  .mobile-profile-app-normal {
    --mobile-primary: #1673ff;
    --mobile-primary-2: #0f5fe8;
    background: #f6fbff;
  }

  .mobile-profile-app-supreme {
    --mobile-primary: #9b6a17;
    --mobile-primary-2: #c99635;
    background:
      radial-gradient(circle at 86% 10%, rgba(236, 172, 64, .16), transparent 28%),
      linear-gradient(180deg, #fff9ec 0%, #fff 48%, #fbf4e6 100%);
  }

  .mobile-profile-redesign {
    position: relative;
    max-width: 430px;
    min-height: calc(100dvh - 86px - env(safe-area-inset-bottom));
    padding: 0 14px 20px;
    overflow: hidden;
  }

  .mobile-profile-redesign.is-normal {
    background: linear-gradient(180deg, #f5fbff 0%, #f8fbff 58%, #fff 100%);
  }

  .mobile-profile-redesign.is-supreme {
    background:
      radial-gradient(circle at 82% 12%, rgba(224, 160, 42, .14), transparent 20%),
      radial-gradient(circle at 70% 18%, rgba(224, 160, 42, .18) 0 2px, transparent 3px),
      radial-gradient(circle at 78% 25%, rgba(224, 160, 42, .14) 0 3px, transparent 4px),
      linear-gradient(180deg, #fff8eb 0%, #fffdf8 48%, #fff 100%);
  }

  .mobile-profile-case-hero {
    position: relative;
    margin: 0 -14px;
    padding: 26px 24px 92px;
    min-height: 222px;
    overflow: hidden;
  }

  .mobile-profile-redesign.is-normal .mobile-profile-case-hero {
    color: #fff;
    background:
      linear-gradient(142deg, rgba(255,255,255,.14) 0 17%, transparent 18% 100%),
      linear-gradient(135deg, #1673ff 0%, #2388ff 62%, #65b7ff 100%);
    border-radius: 0 0 28px 28px;
    box-shadow: 0 24px 40px rgba(33, 116, 244, .17);
  }

  .mobile-profile-redesign.is-normal .mobile-profile-case-hero::after {
    content: "";
    position: absolute;
    left: -28px;
    right: -34px;
    bottom: -54px;
    z-index: 0;
    height: 112px;
    background: #f8fbff;
    border-radius: 42px 42px 0 0;
    transform: rotate(7deg);
    transform-origin: left top;
  }

  .mobile-profile-redesign.is-supreme .mobile-profile-case-hero {
    min-height: 148px;
    padding-bottom: 24px;
    color: #0e1830;
  }

  .mobile-profile-case-user,
  .mobile-profile-settings-btn {
    position: relative;
    z-index: 1;
  }

  .mobile-profile-case-user {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
  }

  .mobile-profile-case-avatar {
    position: relative;
    flex: 0 0 auto;
  }

  .mobile-profile-case-avatar .mobile-default-avatar {
    width: 76px;
    height: 76px;
    border: 2px solid rgba(255,255,255,.88);
    border-radius: 50%;
    box-shadow: 0 16px 30px rgba(23, 89, 186, .20);
  }

  .mobile-profile-redesign.is-supreme .mobile-profile-case-avatar .mobile-default-avatar {
    border-color: rgba(255,255,255,.95);
    box-shadow: 0 16px 28px rgba(139, 91, 18, .18);
  }

  .mobile-profile-case-avatar > span {
    position: absolute;
    right: -2px;
    top: -4px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #f6b230, #d99216);
    box-shadow: 0 8px 16px rgba(184, 119, 14, .25);
  }

  .mobile-profile-case-avatar > span svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .mobile-profile-case-user small {
    display: block;
    color: rgba(255,255,255,.92);
    font-size: 14px;
    font-weight: 900;
  }

  .mobile-profile-redesign.is-supreme .mobile-profile-case-user small {
    color: #101b32;
  }

  .mobile-profile-case-user h1 {
    margin: 7px 0 0;
    color: #fff;
    font-size: 31px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
  }

  .mobile-profile-redesign.is-supreme .mobile-profile-case-user h1 {
    color: #101b32;
  }

  .mobile-profile-case-user p {
    margin: 10px 0 0;
    color: rgba(255,255,255,.90);
    font-size: 15px;
    font-weight: 700;
  }

  .mobile-profile-redesign.is-supreme .mobile-profile-case-user p {
    color: #647088;
  }

  .mobile-profile-settings-btn {
    position: absolute;
    right: 24px;
    top: 26px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255,255,255,.20);
    box-shadow: none;
  }

  .mobile-profile-redesign.is-supreme .mobile-profile-settings-btn {
    color: #8a5b18;
    background: rgba(255, 241, 218, .92);
  }

  .mobile-profile-settings-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .mobile-profile-member-stack {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 0;
    margin: -88px 10px 17px;
  }

  .mobile-profile-upgrade-card,
  .mobile-profile-basic-card {
    width: 100%;
    border: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 16px 16px;
    text-align: left;
  }

  .mobile-profile-upgrade-card {
    min-height: 88px;
    border-radius: 16px 16px 0 0;
    color: #8a520f;
    background: linear-gradient(100deg, #fff0d5 0%, #fff8eb 100%);
    box-shadow: 0 14px 30px rgba(53, 100, 180, .12);
  }

  .mobile-profile-basic-card {
    min-height: 82px;
    margin-top: -1px;
    border: 1px solid #dbe8ff;
    border-radius: 14px;
    color: #0b47bc;
    background: rgba(255,255,255,.98);
    box-shadow: 0 14px 32px rgba(26, 77, 148, .12);
  }

  .mobile-profile-upgrade-card i,
  .mobile-profile-basic-card i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
  }

  .mobile-profile-upgrade-card i {
    color: #c78213;
    background: #fff2d4;
  }

  .mobile-profile-basic-card i {
    color: #1673ff;
    background: #eaf3ff;
  }

  .mobile-profile-upgrade-card svg,
  .mobile-profile-basic-card svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .mobile-profile-upgrade-card strong,
  .mobile-profile-basic-card strong {
    display: block;
    font-size: 18px;
    font-weight: 950;
  }

  .mobile-profile-upgrade-card span,
  .mobile-profile-basic-card span {
    display: block;
    margin-top: 6px;
    color: #6d7890;
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-profile-upgrade-card em,
  .mobile-profile-basic-card em {
    min-width: 86px;
    padding: 10px 13px;
    border-radius: 999px;
    text-align: center;
    font-style: normal;
    font-size: 13px;
    font-weight: 950;
  }

  .mobile-profile-upgrade-card em {
    color: #b16a0a;
    border: 1px solid rgba(224, 153, 47, .34);
    background: rgba(255,255,255,.48);
  }

  .mobile-profile-basic-card em {
    color: #1673ff;
    border: 1px solid rgba(22,115,255,.18);
    background: #edf5ff;
  }

  .mobile-profile-supreme-card {
    position: relative;
    z-index: 2;
    margin: 0 2px 16px;
    padding: 18px 16px 16px;
    border-radius: 16px;
    color: #ffe7b0;
    background:
      radial-gradient(circle at 94% 6%, rgba(255, 218, 141, .20), transparent 28%),
      linear-gradient(135deg, #101827 0%, #111827 48%, #07111f 100%);
    box-shadow: 0 20px 34px rgba(14, 18, 31, .18);
  }

  .mobile-profile-supreme-head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .mobile-profile-supreme-head > i {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #58360b;
    background: linear-gradient(135deg, #fff2c8, #d7a84d);
    font-style: normal;
  }

  .mobile-profile-supreme-head svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .mobile-profile-supreme-head strong {
    display: block;
    color: #ffe7b0;
    font-size: 21px;
    font-weight: 950;
  }

  .mobile-profile-supreme-head span {
    display: block;
    margin-top: 5px;
    color: rgba(255, 231, 176, .72);
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-profile-supreme-head button {
    min-width: 92px;
    border: 0;
    border-radius: 999px;
    padding: 11px 13px;
    color: #59380d;
    background: #fff5de;
    font-size: 13px;
    font-weight: 950;
  }

  .mobile-profile-supreme-perks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }

  .mobile-profile-supreme-perks button {
    border: 0;
    padding: 0;
    display: grid;
    justify-items: center;
    gap: 7px;
    color: #ffe7b0;
    background: transparent;
    font-size: 12px;
    font-weight: 950;
  }

  .mobile-profile-supreme-perks i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffe7b0;
    background: rgba(255, 231, 176, .14);
    font-style: normal;
    box-shadow: inset 0 0 0 1px rgba(255, 231, 176, .08);
  }

  .mobile-profile-supreme-perks svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .mobile-profile-case-menu {
    margin: 0 0 12px;
    padding: 4px 18px;
    border: 0;
    border-radius: 16px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 14px 34px rgba(30, 68, 121, .10);
    overflow: hidden;
  }

  .mobile-profile-case-menu button {
    min-height: 50px;
    padding: 0;
    border-bottom: 1px solid #edf2f8;
    color: #0e1830;
    background: transparent;
    font-size: 16px;
    font-weight: 950;
  }

  .mobile-profile-case-menu button:last-child {
    border-bottom: 0;
  }

  .mobile-profile-case-menu i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #1673ff;
    box-shadow: 0 8px 16px rgba(22, 115, 255, .18);
  }

  .mobile-profile-case-menu i.green { background: #12b86f; }
  .mobile-profile-case-menu i.orange { background: #ff9f16; }
  .mobile-profile-case-menu i.purple { background: #7d4dff; }
  .mobile-profile-case-menu i.dark { background: #1d263a; }
  .mobile-profile-case-menu i.red { background: #f04444; }

  .mobile-profile-case-menu svg {
    width: 18px;
    height: 18px;
  }

  .mobile-profile-case-menu em {
    color: #6f7b8e;
    font-size: 14px;
    font-weight: 800;
  }

  .mobile-profile-app-normal .mobile-customer-tabbar,
  .mobile-profile-app-supreme .mobile-customer-tabbar {
    left: 50%;
    right: auto;
    width: min(100%, 430px);
    transform: translateX(-50%);
    padding: 10px 18px calc(13px + env(safe-area-inset-bottom));
    border-top: 0;
    border-radius: 22px 22px 0 0;
    background: rgba(255,255,255,.98);
    box-shadow: 0 -16px 34px rgba(30, 68, 121, .10);
  }

  .mobile-profile-app-normal .mobile-customer-tabbar button,
  .mobile-profile-app-supreme .mobile-customer-tabbar button {
    gap: 5px;
    color: #697487;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-profile-app-normal .mobile-customer-tabbar button.active {
    color: #1673ff;
  }

  .mobile-profile-app-supreme .mobile-customer-tabbar button.active {
    color: #9b6a17;
  }

  .mobile-profile-app-normal .mobile-customer-tabbar svg,
  .mobile-profile-app-supreme .mobile-customer-tabbar svg {
    width: 25px;
    height: 25px;
  }

  .mobile-entitlement-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 12px;
  }

  .mobile-entitlement-stats article {
    min-height: 94px;
    border: 1px solid #deebf9;
    border-radius: 16px;
    padding: 11px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 9px 20px rgba(42,82,136,.07);
  }

  .mobile-entitlement-stats article.active {
    border-color: rgba(22,115,255,.38);
    background: #eef6ff;
  }

  .mobile-entitlement-stats small,
  .mobile-entitlement-stats span {
    display: block;
    color: #65738d;
    font-size: 10px;
    font-weight: 900;
  }

  .mobile-entitlement-stats strong {
    display: block;
    margin: 8px 0 5px;
    color: #1268ff;
    font-size: 28px;
    line-height: 1;
  }

  .mobile-entitlement-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .mobile-entitlement-actions button {
    min-height: 86px;
    border: 1px solid #deebf9;
    border-radius: 15px;
    display: grid;
    justify-items: start;
    gap: 5px;
    padding: 10px;
    text-align: left;
    color: #17233f;
    background: #fff;
    box-shadow: 0 8px 18px rgba(42,82,136,.05);
  }

  .mobile-entitlement-actions i {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--mobile-primary);
  }

  .mobile-entitlement-actions i.green { background: #10b981; }
  .mobile-entitlement-actions i.orange { background: #f59e0b; }
  .mobile-entitlement-actions i.purple { background: #7a4dff; }

  .mobile-entitlement-actions svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .mobile-entitlement-actions span {
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-entitlement-actions small {
    color: #71809a;
    font-size: 10px;
    font-weight: 800;
  }

  .mobile-entitlement-card {
    margin-bottom: 12px;
  }

  .mobile-entitlement-pay-sheet,
  .mobile-pay-modal {
    border: 1px solid rgba(205,220,241,.82);
    border-radius: 20px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(31,75,132,.14);
  }

  .mobile-pay-modal {
    position: relative;
    width: min(100%, 360px);
  }

  .mobile-pay-modal h3 {
    margin: 5px 0 8px;
    font-size: 20px;
  }

  .mobile-pay-modal p {
    margin: 0;
    color: #65738d;
    font-size: 13px;
    line-height: 1.7;
  }

  .mobile-pay-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    color: #65738d;
    background: #f2f6fd;
    box-shadow: none;
  }

  .mobile-pay-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0;
  }

  .mobile-pay-options button {
    min-height: 58px;
    border: 1px solid #deebf9;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #17233f;
    background: #fff;
    box-shadow: none;
    font-weight: 900;
  }

  .mobile-pay-options button.active {
    border-color: rgba(22,115,255,.35);
    color: var(--mobile-primary);
    background: #eef6ff;
  }

  .mobile-pay-options small {
    color: #71809a;
    font-size: 11px;
  }

  .mobile-pay-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .mobile-pay-summary div {
    border: 1px solid #e2ecf8;
    border-radius: 14px;
    padding: 9px 8px;
    background: #f8fbff;
  }

  .mobile-pay-summary span,
  .mobile-pay-methods small,
  .mobile-pay-reserve span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
  }

  .mobile-pay-summary b {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #14223c;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-pay-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 12px;
  }

  .mobile-pay-methods button {
    min-height: 64px;
    border: 1px solid #deebf9;
    border-radius: 14px;
    display: grid;
    gap: 4px;
    justify-items: start;
    padding: 10px;
    background: #fff;
    color: #17233f;
    box-shadow: none;
    text-align: left;
  }

  .mobile-pay-methods button.active {
    border-color: rgba(22,115,255,.38);
    background: #eef6ff;
    color: var(--mobile-primary);
  }

  .mobile-pay-reserve {
    display: grid;
    gap: 5px;
    margin: 0 0 12px;
    border: 1px dashed #cfe0f6;
    border-radius: 14px;
    padding: 10px 12px;
    background: #fbfdff;
  }

  .mobile-pay-reserve strong {
    color: #1d3558;
    font-size: 13px;
  }

  .mobile-pay-actions {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 9px;
  }

  .mobile-pay-actions button {
    min-height: 42px;
    border-radius: 13px;
    font-weight: 900;
  }

  .mobile-pay-actions button.secondary {
    color: #30425e;
    background: #f2f6fd;
    box-shadow: none;
  }

  .mobile-entitlement-pay-sheet {
    background: linear-gradient(180deg, #fff, #f8fbff);
  }

  .mobile-role-app {
    --mobile-primary: var(--primary, #1268ff);
    --mobile-primary-2: var(--primary-dark, #0756d5);
  }

  .mobile-role-page {
    padding: 14px 16px 22px;
  }

  .mobile-role-topbar {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }

  .mobile-role-topbar span {
    color: #71829d;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-role-topbar h1 {
    margin: 3px 0 0;
    color: #0b1730;
    font-size: 20px;
    font-weight: 900;
  }

  .mobile-role-topbar button {
    width: 38px;
    height: 38px;
    border: 1px solid #dce8f7;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mobile-primary);
    background: rgba(255,255,255,.92);
    box-shadow: 0 10px 22px rgba(35,79,144,.11);
  }

  .mobile-role-topbar svg,
  .mobile-role-tabbar svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-role-card {
    margin-bottom: 12px;
    border: 1px solid rgba(205,220,241,.82);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 26px rgba(31,75,132,.08);
  }

  .mobile-role-card.danger-line {
    border-color: rgba(239,68,68,.32);
    background: linear-gradient(180deg, #fff, #fff7f7);
  }

  .mobile-role-card h2,
  .mobile-role-card h3 {
    margin: 0;
    color: #101c36;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 900;
  }

  .mobile-role-card h3 {
    margin-top: 8px;
    font-size: 15px;
  }

  .mobile-role-card p {
    margin: 7px 0 0;
    color: #65738d;
    font-size: 12px;
    line-height: 1.6;
  }

  .mobile-role-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mobile-role-row span {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef6ff;
    color: var(--mobile-primary);
    font-size: 11px;
    font-weight: 900;
  }

  .mobile-role-row span.orange { color: #c46a00; background: #fff3df; }
  .mobile-role-row span.red { color: #dc2626; background: #fee2e2; }
  .mobile-role-row span.blue { color: var(--mobile-primary); background: #eef6ff; }

  .mobile-role-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .mobile-role-stats article {
    min-height: 74px;
    border: 1px solid #deebf9;
    border-radius: 15px;
    padding: 11px;
    background: #f8fbff;
  }

  .mobile-role-stats small {
    display: block;
    color: #65738d;
    font-size: 11px;
    font-weight: 900;
  }

  .mobile-role-stats strong {
    display: block;
    margin-top: 7px;
    color: #1268ff;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 900;
  }

  .mobile-role-stats .danger strong { color: #ef4444; }
  .mobile-role-stats .success strong { color: #10b981; }

  .mobile-role-chart {
    height: 124px;
    margin-top: 12px;
    border-radius: 16px;
    display: flex;
    align-items: end;
    gap: 9px;
    padding: 14px;
    background: #f3f7ff;
  }

  .mobile-role-chart i {
    flex: 1;
    min-height: 20px;
    border-radius: 999px 999px 4px 4px;
    background: linear-gradient(180deg, var(--mobile-primary), #0ea5a4);
  }

  .mobile-role-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .mobile-role-mini-grid.inner {
    margin-top: 10px;
  }

  .mobile-role-mini-grid button {
    min-height: 86px;
    border: 1px solid #deebf9;
    border-radius: 16px;
    display: grid;
    justify-items: start;
    gap: 5px;
    padding: 11px;
    text-align: left;
    color: #17233f;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 18px rgba(42,82,136,.05);
    font-weight: 900;
  }

  .mobile-role-mini-grid i,
  .mobile-role-item i {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--mobile-primary);
  }

  .mobile-role-mini-grid i.orange,
  .mobile-role-item i.orange { background: #f59e0b; }
  .mobile-role-mini-grid i.purple,
  .mobile-role-item i.purple { background: #7a4dff; }
  .mobile-role-mini-grid i.green,
  .mobile-role-item i.green { background: #10b981; }
  .mobile-role-mini-grid i.red,
  .mobile-role-item i.red { background: #ef4444; }

  .mobile-role-mini-grid svg,
  .mobile-role-item svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .mobile-role-mini-grid small {
    color: #71809a;
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-role-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 12px;
  }

  .mobile-role-chips span {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 8px 12px;
    color: #344664;
    background: #f2f6fd;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-role-chips span.active {
    color: #fff;
    background: linear-gradient(135deg, var(--mobile-primary), #7a4dff);
  }

  .mobile-role-list {
    display: grid;
    gap: 10px;
  }

  .mobile-role-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .mobile-role-actions button,
  .mobile-role-full {
    min-height: 40px;
    border-radius: 13px;
    font-weight: 900;
  }

  .mobile-role-actions button.secondary,
  .mobile-role-full.secondary {
    color: #30425e;
    background: #f2f6fd;
    box-shadow: none;
  }

  .mobile-role-full {
    width: 100%;
    margin-top: 10px;
  }

  .mobile-role-full.green {
    background: linear-gradient(135deg, #1268ff, #0ea5a4);
  }

  .mobile-role-item {
    border: 1px solid #deebf9;
    border-radius: 16px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px;
    color: #17233f;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 18px rgba(42,82,136,.05);
  }

  .mobile-role-item.urgent {
    border-color: rgba(245,158,11,.35);
    background: #fffaf0;
  }

  .mobile-role-item strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
  }

  .mobile-role-item small {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #65738d;
    font-size: 11px;
  }

  .mobile-role-item em {
    color: #8a96aa;
    font-style: normal;
    font-weight: 900;
  }

  .mobile-role-form-line {
    min-height: 44px;
    border-bottom: 1px solid #edf2fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #65738d;
    font-weight: 900;
  }

  .mobile-role-form-line b {
    color: #17233f;
  }

  .mobile-role-search {
    margin-bottom: 12px;
  }

  .mobile-customer-app .modal-backdrop {
    align-items: center;
    padding: 18px;
  }

  .mobile-customer-app .upload-confirm-modal,
  .mobile-customer-app .modal-card,
  .mobile-customer-app .customer-urgent-modal {
    width: min(100%, 360px);
    border-radius: 22px;
  }

  .mobile-role-full-view {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 14px 14px 26px;
  }

  .mobile-role-full-view > .mobile-role-topbar {
    margin-bottom: 12px;
  }

  .mobile-role-full-view .home-hero,
  .mobile-role-full-view .dashboard-hero,
  .mobile-role-full-view .timeout-overview,
  .mobile-role-full-view .panel,
  .mobile-role-full-view .batch-import-panel,
  .mobile-role-full-view .recognition-panel,
  .mobile-role-full-view .file-history-overview,
  .mobile-role-full-view .history-order-pane,
  .mobile-role-full-view .history-detail-pane {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border-radius: 18px;
    margin-bottom: 12px;
    box-shadow: 0 12px 28px rgba(31, 75, 132, .08);
  }

  .mobile-role-full-view .home-hero,
  .mobile-role-full-view .dashboard-hero,
  .mobile-role-full-view .home-metrics,
  .mobile-role-full-view .home-grid,
  .mobile-role-full-view .grid,
  .mobile-role-full-view .grid.two,
  .mobile-role-full-view .form-grid,
  .mobile-role-full-view .search-panel,
  .mobile-role-full-view .batch-import-grid,
  .mobile-role-full-view .recognition-head,
  .mobile-role-full-view .pending-head,
  .mobile-role-full-view .history-layout,
  .mobile-role-full-view .history-summary-grid,
  .mobile-role-full-view .quick-process-grid,
  .mobile-role-full-view .analysis-metrics,
  .mobile-role-full-view .finance-metrics,
  .mobile-role-full-view .settlement-summary-grid,
  .mobile-role-full-view .settlement-metrics,
  .mobile-role-full-view .settlement-groups,
  .mobile-role-full-view .settlement-settings-grid,
  .mobile-role-full-view .popup-editor-grid,
  .mobile-role-full-view .writer-stat-grid,
  .mobile-role-full-view .writer-stat-grid.vivid,
  .mobile-role-full-view .writer-visual-grid,
  .mobile-role-full-view .writer-management-head,
  .mobile-role-full-view .writer-export-box,
  .mobile-role-full-view .preset-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .mobile-role-full-view .actions,
  .mobile-role-full-view .row-actions,
  .mobile-role-full-view .toolbar,
  .mobile-role-full-view .payment-record-head,
  .mobile-role-full-view .payment-record-summary,
  .mobile-role-full-view .panel-head,
  .mobile-role-full-view .settlement-writer-head,
  .mobile-role-full-view .customer-section-head {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px;
  }

  .mobile-role-full-view .actions button,
  .mobile-role-full-view .row-actions button,
  .mobile-role-full-view .toolbar button,
  .mobile-role-full-view .panel-head button {
    width: 100%;
    min-height: 40px;
    white-space: normal;
  }

  .mobile-role-full-view .field,
  .mobile-role-full-view .field input,
  .mobile-role-full-view .field select,
  .mobile-role-full-view .field textarea,
  .mobile-role-full-view input,
  .mobile-role-full-view select,
  .mobile-role-full-view textarea {
    min-width: 0;
    max-width: 100%;
  }

  .mobile-role-full-view .span-2,
  .mobile-role-full-view .span-3 {
    grid-column: auto !important;
  }

  .mobile-role-full-view .table-wrap,
  .mobile-role-full-view .logs-table-wrap,
  .mobile-role-full-view .writer-detail-table,
  .mobile-role-full-view .writer-order-table,
  .mobile-role-full-view .settlement-table,
  .mobile-role-full-view .payment-record-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-role-full-view table {
    width: max-content;
    min-width: min(820px, 220vw);
  }

  .mobile-role-full-view th,
  .mobile-role-full-view td {
    padding: 10px;
    font-size: 13px;
  }

  .mobile-role-full-view .list-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px;
    padding: 10px;
  }

  .mobile-role-full-view .list-controls .field,
  .mobile-role-full-view .list-search-field,
  .mobile-role-full-view .list-page-summary {
    grid-column: 1 / -1 !important;
  }

  .mobile-role-full-view .list-controls button,
  .mobile-role-full-view .list-controls select,
  .mobile-role-full-view .list-jump,
  .mobile-role-full-view .list-jump input {
    width: 100%;
    min-width: 0;
  }

  .mobile-design-page {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 12px 16px 24px;
  }

  .mobile-design-topbar {
    min-height: 46px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
  }

  .mobile-design-topbar h1 {
    margin: 0;
    text-align: center;
    color: #101c36;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.2;
  }

  .mobile-design-back,
  .mobile-design-tool {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #17233f;
    background: rgba(255,255,255,.82);
    box-shadow: 0 10px 22px rgba(43,83,139,.08);
  }

  .mobile-design-back {
    font-size: 28px;
    font-weight: 500;
  }

  .mobile-design-tool {
    justify-self: end;
    color: var(--mobile-primary);
    font-size: 18px;
    font-weight: 950;
  }

  .mobile-design-content {
    display: grid;
    gap: 12px;
  }

  .mobile-design-card {
    margin-bottom: 0;
    border-color: rgba(216,226,242,.9);
    border-radius: 18px;
    padding: 15px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 14px 32px rgba(31,75,132,.09);
  }

  .mobile-design-card h2 {
    letter-spacing: 0;
  }

  .mobile-design-stats {
    margin-top: 0;
    gap: 9px;
  }

  .mobile-design-stats article {
    border: 1px solid #e4eefb;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
  }

  .mobile-design-choice {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 3px;
  }

  .mobile-design-choice button {
    flex: 0 0 auto;
    min-height: 34px;
    border-radius: 999px;
    padding: 0 13px;
    color: #5f6e87;
    background: rgba(255,255,255,.82);
    box-shadow: 0 8px 16px rgba(42,82,136,.05);
    font-weight: 900;
  }

  .mobile-design-choice button.active {
    color: #fff;
    background: linear-gradient(135deg, #1268ff, #4b7dff);
  }

  .mobile-design-seg {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 15px;
    background: #edf4fe;
    overflow: visible;
  }

  .mobile-design-seg button {
    min-width: 0;
    width: 100%;
    box-shadow: none;
  }

  .mobile-design-search {
    margin-bottom: 0;
    box-shadow: 0 12px 24px rgba(31,75,132,.07);
  }

  .mobile-design-form {
    display: grid;
    gap: 8px;
  }

  .mobile-design-admin-form label,
  .mobile-design-admin-form .field {
    display: grid;
    gap: 6px;
    min-width: 0;
  }

  .mobile-design-admin-form label span,
  .mobile-design-admin-form .field label {
    color: #60708b;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-design-admin-form input,
  .mobile-design-admin-form select,
  .mobile-design-admin-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #e3edf9;
    border-radius: 13px;
    padding: 11px 12px;
    color: #14213d;
    background: #fbfdff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    outline: none;
  }

  .mobile-design-admin-form textarea {
    min-height: 78px;
    line-height: 1.55;
    resize: vertical;
  }

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

  .mobile-check-line {
    border: 1px solid #e3edf9;
    border-radius: 14px;
    display: flex !important;
    grid-template-columns: none;
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    background: #fbfdff;
  }

  .mobile-check-line input {
    width: 16px;
    min-width: 16px;
    height: 16px;
    padding: 0;
  }

  .mobile-permission-list,
  .mobile-popup-config {
    display: grid;
    gap: 8px;
    margin-top: 10px;
  }

  .mobile-permission-list label {
    border: 1px solid #e7eef9;
    border-radius: 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 11px;
    background: #f8fbff;
    color: #17233f;
    font-size: 13px;
    font-weight: 850;
  }

  .mobile-permission-list input {
    width: 16px;
    height: 16px;
  }

  .mobile-popup-config {
    border: 1px solid #e7eef9;
    border-radius: 15px;
    padding: 10px;
    background: #f8fbff;
  }

  .mobile-design-form .mobile-role-form-line {
    border: 1px solid #e5eefb;
    border-radius: 14px;
    padding: 12px;
    background: rgba(255,255,255,.92);
  }

  .mobile-design-field-tall {
    width: 100%;
    min-height: 82px;
    border: 1px dashed rgba(18,104,255,.35);
    border-radius: 16px;
    padding: 14px;
    text-align: left;
    color: #60708b;
    background: #f8fbff;
    box-shadow: none;
    font-weight: 900;
    line-height: 1.55;
  }

  .mobile-design-table {
    display: grid;
    gap: 8px;
    margin-top: 10px;
  }

  .mobile-design-table > div {
    min-height: 42px;
    border: 1px solid #e7eef9;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px;
    background: #f8fbff;
  }

  .mobile-design-table span {
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
  }

  .mobile-design-table b {
    color: #15213a;
    font-size: 13px;
  }

  .mobile-design-mini-grid button {
    border-color: rgba(216,226,242,.92);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
  }

  .mobile-role-mini-grid i.dark,
  .mobile-role-item i.dark {
    background: #17233f;
  }

  .mobile-design-item {
    width: 100%;
    text-align: left;
  }

  .mobile-design-item em {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    color: #1268ff;
    background: #eef5ff;
    font-size: 11px;
  }

  .mobile-design-profile-card {
    margin-bottom: 0;
    border-radius: 20px;
    padding: 18px;
    background:
      radial-gradient(circle at 82% 8%, rgba(255,255,255,.34), transparent 28%),
      linear-gradient(135deg, #1268ff, #0f7df4 58%, #16b981);
    box-shadow: 0 18px 38px rgba(18,104,255,.24);
  }

  .mobile-design-profile-card em {
    color: #0d6b4f;
    background: rgba(255,255,255,.9);
  }

  .mobile-design-profile-card.writer {
    background:
      radial-gradient(circle at 82% 8%, rgba(255,255,255,.34), transparent 28%),
      linear-gradient(135deg, #2364d8, #16a5aa);
  }

  .mobile-design-profile-card.service {
    background:
      radial-gradient(circle at 82% 8%, rgba(255,255,255,.32), transparent 28%),
      linear-gradient(135deg, #7a4dff, #1268ff 58%, #0ea5a4);
  }

  .mobile-avatar-choice-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .mobile-avatar-choice-grid button {
    aspect-ratio: 1;
    border: 1px solid #dbe8fb;
    border-radius: 16px;
    padding: 5px;
    background: #f8fbff;
    box-shadow: none;
  }

  .mobile-avatar-choice-grid button.active {
    border-color: rgba(18,104,255,.7);
    box-shadow: 0 0 0 3px rgba(18,104,255,.12);
  }

  .mobile-avatar-choice-grid svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  .mobile-role-full.purple {
    background: linear-gradient(135deg, #1268ff, #7a4dff);
  }

  .mobile-design-filter-item[hidden] {
    display: none;
  }

  .mobile-customer-order-list {
    display: grid;
    gap: 12px;
  }

  .mobile-customer-order-card .mobile-role-stats.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
  }

  .mobile-customer-order-card .mobile-role-stats.compact article {
    min-height: 60px;
  }

  .mobile-customer-order-card .mobile-role-stats.compact strong {
    font-size: 15px;
  }

  .mobile-role-actions.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mobile-role-actions.three button {
    padding: 9px 6px;
  }

  .mobile-customer-full-detail {
    max-width: 540px;
  }

  .mobile-customer-detail-host {
    display: block;
    min-width: 0;
  }

  .mobile-customer-detail-host .customer-workspace {
    display: grid;
    gap: 12px;
  }

  .mobile-customer-detail-host .customer-order-card,
  .mobile-customer-detail-host .customer-file-center,
  .mobile-customer-detail-host .customer-upload-panel,
  .mobile-customer-detail-host .customer-stage-panel,
  .mobile-customer-detail-host .customer-history-panel {
    margin-bottom: 0;
  }

  .mobile-admin-range-card {
    background: linear-gradient(180deg, #ffffff, #f5f9ff);
  }

  .mobile-admin-range-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
  }

  .mobile-admin-range-form > div {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mobile-admin-range-form span,
  .mobile-admin-range-form small {
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
  }

  .mobile-admin-range-form strong {
    color: #1268ff;
    font-size: 12px;
    white-space: nowrap;
  }

  .mobile-admin-range-form label {
    display: grid;
    gap: 5px;
  }

  .mobile-admin-range-form input,
  .mobile-admin-range-form button {
    min-height: 40px;
    border-radius: 13px;
  }

  .mobile-admin-range-form button {
    grid-column: 1 / -1;
    font-weight: 900;
  }

  .mobile-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 8px;
    align-items: start;
  }

  .mobile-search-form .mobile-design-search {
    margin: 0;
  }

  .mobile-search-form button {
    min-height: 46px;
    border-radius: 15px;
    font-weight: 900;
  }

  .mobile-admin-trend-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
  }

  .mobile-admin-trend-list div {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid #e6eef9;
    border-radius: 14px;
    background: #f8fbff;
  }

  .mobile-admin-trend-list span {
    color: #1268ff;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-admin-trend-list strong {
    color: #13223a;
    font-size: 15px;
  }

  .mobile-admin-trend-list small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
  }

  .mobile-settlement-writer-card,
  .mobile-settlement-order-card {
    border-color: rgba(18,104,255,.18);
  }

  .mobile-settlement-order-card h3 {
    margin: 8px 0 6px;
    font-size: 14px;
    line-height: 1.45;
    color: #17233c;
  }

  .mobile-service-task-list {
    display: grid;
    gap: 10px;
  }

  .mobile-service-task-card p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
  }
}

/* Payment modal polish is placed last so both desktop preview and mobile web use the same finished panel. */
.mobile-pay-backdrop {
  z-index: 80;
  align-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(45, 120, 255, .22), transparent 34%),
    rgba(13, 22, 38, .54);
  backdrop-filter: blur(14px);
}

.mobile-pay-modal {
  position: relative;
  width: min(94vw, 470px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 28px;
  padding: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,255,.98));
  box-shadow: 0 30px 90px rgba(12, 30, 64, .35);
}

.mobile-pay-close {
  right: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.14);
}

.mobile-pay-modal h3 {
  color: inherit;
  font-size: 24px;
  line-height: 1.22;
}

.mobile-pay-hero p {
  color: rgba(255,255,255,.86);
}

.mobile-pay-body {
  padding: 16px;
}

.mobile-pay-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: -44px;
}

.mobile-pay-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.mobile-pay-options button {
  min-height: 78px;
  border-radius: 18px;
  padding: 12px 10px;
}

.mobile-pay-methods {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.mobile-pay-methods button {
  min-height: 92px;
  border-radius: 18px;
  padding: 12px;
}

.mobile-pay-reserve {
  border-radius: 18px;
  padding: 12px;
}

.mobile-pay-actions {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 10px;
}

@media (max-width: 520px) {
  .mobile-pay-backdrop {
    padding: 14px;
  }

  .mobile-pay-modal {
    width: min(100%, 390px);
    border-radius: 24px;
  }

  .mobile-pay-summary,
  .mobile-pay-options,
  .mobile-pay-methods {
    grid-template-columns: 1fr;
  }

  .mobile-pay-summary {
    margin-top: -36px;
  }
}

.mobile-pay-plans {
  width: min(96vw, 760px);
}

.mobile-pay-plan-body {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.mobile-pay-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-pay-plan-head strong {
  display: block;
  color: #111f38;
  font-size: 18px;
}

.mobile-pay-plan-head span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.mobile-pay-plan-head em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  color: #1268ff;
  background: #edf5ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.mobile-pay-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mobile-pay-plan-card {
  position: relative;
  min-height: 210px;
  border: 2px solid #d8e4ff;
  border-radius: 12px;
  padding: 24px 16px 16px;
  display: grid;
  align-content: start;
  gap: 12px;
  color: #343b4c;
  text-align: center;
  background: #fff;
  box-shadow: 0 12px 28px rgba(51, 82, 155, .08);
}

.mobile-pay-plan-card.featured {
  border-color: #695cff;
}

.mobile-pay-plan-ribbon {
  position: absolute;
  right: -2px;
  top: -16px;
  border-radius: 18px 18px 18px 4px;
  padding: 8px 16px;
  color: #fff;
  background: linear-gradient(135deg, #625bff, #9747ff);
  box-shadow: 0 10px 20px rgba(105, 82, 255, .25);
  font-size: 12px;
  font-weight: 950;
}

.mobile-pay-plan-card strong {
  overflow: hidden;
  color: #3f4655;
  font-size: 18px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-pay-plan-price {
  color: #2f3238;
  font-size: 38px;
  line-height: 1;
  font-weight: 500;
}

.mobile-pay-plan-price small {
  margin-right: 3px;
  color: #4b5563;
  font-size: 16px;
}

.mobile-pay-plan-card p {
  margin: 0;
  color: #7a8394;
  font-size: 14px;
  line-height: 1.45;
}

.mobile-pay-plan-card p b {
  color: #343b4c;
  font-size: 22px;
}

.mobile-pay-plan-btn {
  align-self: end;
  min-height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #6c5cff;
  background: #eeeafe;
  font-size: 15px;
  font-weight: 950;
}

.mobile-pay-plan-card.featured .mobile-pay-plan-btn {
  color: #fff;
  background: linear-gradient(135deg, #625bff, #9747ff);
}

.mobile-pay-plan-note {
  display: grid;
  gap: 6px;
  border-top: 1px solid #e6edf8;
  padding-top: 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.mobile-pay-plan-note strong {
  color: #17233c;
}

.clear-pay-plans {
  position: relative;
  width: min(94vw, 1080px);
  max-height: calc(100vh - 40px);
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(12, 27, 52, .34);
}

.clear-pay-plans-summary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 34px;
  color: #fff;
  background: #111d31;
  box-shadow: inset 4px 0 #16b777;
}

.clear-pay-plans.purple .clear-pay-plans-summary {
  box-shadow: inset 4px 0 #7459ff;
}

.clear-pay-plans.orange .clear-pay-plans-summary {
  box-shadow: inset 4px 0 #f59e0b;
}

.clear-pay-plans-brand {
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 14px;
  display: grid;
  place-items: center;
  padding: 0;
  background: #fff;
  box-shadow: 0 10px 22px rgba(22, 183, 119, .22);
}

.clear-pay-plans-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.clear-pay-plans.purple .clear-pay-plans-brand {
  background: #fff;
  box-shadow: 0 10px 22px rgba(116, 89, 255, .22);
}

.clear-pay-plans.orange .clear-pay-plans-brand {
  background: #fff;
  box-shadow: 0 10px 22px rgba(245, 158, 11, .22);
}

.clear-pay-plans-copy {
  display: grid;
  gap: 8px;
}

.clear-pay-plans-copy span {
  color: #9eb0c9;
  font-size: 12px;
  font-weight: 850;
}

.clear-pay-plans-copy h3 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.28;
}

.clear-pay-plans-copy p {
  margin: 0;
  color: #9eb0c9;
  font-size: 13px;
  line-height: 1.75;
}

.clear-pay-plans-order {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.05);
}

.clear-pay-plans-order span {
  color: #9eb0c9;
  font-size: 12px;
}

.clear-pay-plans-order strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
}

.clear-pay-plans-summary > small {
  margin-top: auto;
  color: #7f91aa;
  font-size: 11px;
  line-height: 1.6;
}

.clear-pay-plans-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 34px;
  overflow-y: auto;
  background: #fff;
}

.clear-pay-plans-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-right: 42px;
}

.clear-pay-plans-head span {
  display: block;
  color: #738198;
  font-size: 12px;
  font-weight: 850;
}

.clear-pay-plans-head h3 {
  margin: 5px 0 7px;
  color: #17233c;
  font-size: 26px;
  line-height: 1.3;
}

.clear-pay-plans-head p {
  margin: 0;
  color: #738198;
  font-size: 12px;
  line-height: 1.6;
}

.clear-pay-plans-head em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 11px;
  color: #1268dc;
  background: #edf5ff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.clear-pay-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.clear-pay-plan-card {
  position: relative;
  min-width: 0;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  padding: 22px;
  color: #17233c;
  text-align: left;
  background: #fff;
  box-shadow: 0 9px 22px rgba(26, 46, 77, .06);
}

.clear-pay-plan-card:hover {
  color: #17233c;
  background: #fff;
  box-shadow: 0 13px 30px rgba(26, 46, 77, .10);
}

.clear-pay-plan-card.featured {
  border: 2px solid #1677ff;
  box-shadow: 0 14px 30px rgba(22, 119, 255, .13);
}

.clear-pay-plans.purple .clear-pay-plan-card.featured {
  border-color: #7459ff;
  box-shadow: 0 14px 30px rgba(116, 89, 255, .13);
}

.clear-pay-plans.orange .clear-pay-plan-card.featured {
  border-color: #f59e0b;
  box-shadow: 0 14px 30px rgba(245, 158, 11, .13);
}

.clear-pay-plan-ribbon {
  position: absolute;
  top: -10px;
  right: 12px;
  border-radius: 6px;
  padding: 5px 12px;
  color: #fff;
  background: #1677ff;
  font-size: 11px;
  font-weight: 900;
}

.clear-pay-plans.purple .clear-pay-plan-ribbon {
  background: #7459ff;
}

.clear-pay-plans.orange .clear-pay-plan-ribbon {
  background: #f59e0b;
}

.clear-pay-plan-card > strong {
  overflow: hidden;
  color: #17233c;
  font-size: 18px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clear-pay-plan-price {
  color: #1677ff;
  font-size: 38px;
  line-height: 1;
  font-weight: 950;
}

.clear-pay-plans.purple .clear-pay-plan-price {
  color: #7459ff;
}

.clear-pay-plans.orange .clear-pay-plan-price {
  color: #d98705;
}

.clear-pay-plan-price small {
  margin-right: 3px;
  font-size: 15px;
}

.clear-pay-plan-card p {
  margin: 0;
  color: #738198;
  font-size: 12px;
  line-height: 1.6;
}

.clear-pay-plan-card p b {
  color: #17233c;
  font-size: 16px;
}

.clear-pay-plan-btn {
  min-height: 42px;
  margin-top: auto;
  border: 1px solid #1677ff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1677ff;
  box-shadow: 0 10px 20px rgba(22, 119, 255, .14);
  font-size: 13px;
  font-weight: 900;
}

.clear-pay-plan-card.featured .clear-pay-plan-btn {
  border-color: #1677ff;
  color: #fff;
  background: #1677ff;
}

.clear-pay-plans.purple .clear-pay-plan-btn {
  border-color: #7459ff;
  background: #7459ff;
  box-shadow: 0 10px 20px rgba(116, 89, 255, .14);
}

.clear-pay-plans.purple .clear-pay-plan-card.featured .clear-pay-plan-btn {
  border-color: #7459ff;
  background: #7459ff;
}

.clear-pay-plans.orange .clear-pay-plan-btn {
  border-color: #f59e0b;
  background: #f59e0b;
  box-shadow: 0 10px 20px rgba(245, 158, 11, .16);
}

.clear-pay-plans.orange .clear-pay-plan-card.featured .clear-pay-plan-btn {
  border-color: #f59e0b;
  background: #f59e0b;
}

.clear-pay-plans-note {
  display: grid;
  gap: 5px;
  margin-top: auto;
  border-top: 1px solid #e6edf5;
  padding-top: 14px;
  color: #738198;
  font-size: 12px;
  line-height: 1.6;
}

.clear-pay-plans-note strong {
  color: #17233c;
}

.clear-pay-plans-close {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid #e0e6ef;
  color: #526176;
  background: #fff;
  box-shadow: 0 8px 18px rgba(20, 38, 70, .08);
}

@media (max-width: 900px) {
  .clear-pay-plans {
    width: min(100%, 410px);
    display: block;
    border-radius: 18px;
    overflow-y: auto;
  }

  .clear-pay-plans-summary {
    gap: 14px;
    padding: 22px 20px 18px;
  }

  .clear-pay-plans-brand {
    width: 72px;
    height: 72px;
    border-radius: 11px;
  }

  .clear-pay-plans-copy h3 {
    padding-right: 42px;
    font-size: 22px;
  }

  .clear-pay-plans-copy p {
    font-size: 12px;
  }

  .clear-pay-plans-order {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 12px;
    padding: 13px 14px;
  }

  .clear-pay-plans-summary > small {
    display: none;
  }

  .clear-pay-plans-main {
    gap: 16px;
    padding: 22px 18px;
    overflow: visible;
  }

  .clear-pay-plans-head {
    display: grid;
    gap: 10px;
    padding-right: 0;
  }

  .clear-pay-plans-head h3 {
    font-size: 22px;
  }

  .clear-pay-plans-head em {
    justify-self: start;
  }

  .clear-pay-plans-grid {
    grid-template-columns: 1fr;
  }

  .clear-pay-plan-card {
    min-height: 178px;
    padding: 19px;
  }
}

.mobile-pay-qr-modal {
  position: relative;
  width: min(94vw, 620px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 28px;
  background: #dfe9ff;
  box-shadow: 0 30px 90px rgba(22, 34, 74, .38);
}

.mobile-pay-qr-hero {
  position: relative;
  min-height: 132px;
  padding: 28px 32px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  background: linear-gradient(135deg, #2d348f, #485edb);
  overflow: hidden;
}

.mobile-pay-qr-modal.green .mobile-pay-qr-hero {
  background: linear-gradient(135deg, #0e8d69, #2f63d8);
}

.mobile-pay-qr-modal.orange .mobile-pay-qr-hero {
  background: linear-gradient(135deg, #f09b28, #3f63d8);
}

.mobile-pay-qr-hero span {
  display: block;
  color: #ffe980;
  font-size: 26px;
  font-weight: 950;
}

.mobile-pay-qr-hero h3 {
  margin: 4px 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.1;
}

.mobile-pay-qr-hero p {
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 15px;
  font-weight: 850;
}

.mobile-pay-qr-hero i {
  width: 128px;
  height: 128px;
  border-radius: 38% 62% 50% 50%;
  display: block;
  background:
    radial-gradient(circle at 44% 34%, #fff 0 10%, #d7ccff 11% 30%, transparent 31%),
    conic-gradient(from 30deg, #fff, #bcb5ff, #fff6f9, #93b7ff, #fff);
  filter: drop-shadow(0 18px 24px rgba(26, 33, 93, .25));
  transform: rotate(12deg);
}

.mobile-pay-qr-card {
  margin: -6px 24px 24px;
  border-radius: 28px;
  padding: 0 18px 22px;
  background: linear-gradient(180deg, #d8e8ff, #cfd9ff);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}

.mobile-pay-qr-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 -18px 18px;
  border-radius: 26px 26px 0 0;
  overflow: hidden;
}

.mobile-pay-qr-tabs button {
  min-height: 64px;
  border: 0;
  border-radius: 0 0 28px 0;
  color: rgba(255,255,255,.72);
  background: rgba(132, 118, 255, .62);
  box-shadow: none;
  font-size: 18px;
  font-weight: 950;
}

.mobile-pay-qr-tabs button.active {
  color: #273040;
  background: rgba(235, 245, 255, .88);
}

.mobile-pay-qr-tabs button:only-child {
  grid-column: 1 / -1;
  border-radius: 0 0 28px 28px;
}

.mobile-pay-qr-box {
  width: min(72vw, 300px);
  aspect-ratio: 1;
  margin: 0 auto 20px;
  border: 12px solid #fff;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 18px 36px rgba(80, 87, 150, .16);
}

.mobile-pay-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-pay-qr-price {
  color: #744cff;
  text-align: center;
  font-size: 76px;
  line-height: .95;
  font-weight: 500;
}

.mobile-pay-qr-price small {
  margin-right: 8px;
  font-size: 24px;
}

.mobile-pay-qr-tip,
.mobile-pay-qr-payee,
.mobile-pay-qr-agreement {
  display: block;
  margin: 8px auto 0;
  color: #293241;
  text-align: center;
  font-size: 15px;
  font-weight: 850;
}

.mobile-pay-qr-payee,
.mobile-pay-qr-agreement {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 800;
}

.mobile-pay-direct-card {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  padding: 26px;
  border-radius: 22px;
  color: #24405f;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(22,119,255,.18), transparent 38%),
    linear-gradient(135deg, rgba(239,247,255,.96), rgba(231,238,255,.96));
}

.mobile-pay-direct-card strong {
  color: #102a56;
  font-size: 20px;
}

.mobile-pay-direct-card span {
  color: #64748b;
  line-height: 1.6;
}

.mobile-pay-qr-card .mobile-pay-actions {
  margin-top: 18px;
}

@media (max-width: 720px) {
  .mobile-pay-plans {
    width: min(100%, 390px);
  }

  .mobile-pay-plan-grid {
    grid-template-columns: 1fr;
  }

  .mobile-pay-plan-card {
    min-height: 168px;
  }

  .mobile-pay-qr-modal {
    width: min(100%, 390px);
    border-radius: 24px;
  }

  .mobile-pay-qr-hero {
    min-height: 118px;
    padding: 22px 20px;
  }

  .mobile-pay-qr-hero span {
    font-size: 21px;
  }

  .mobile-pay-qr-hero h3 {
    font-size: 24px;
  }

  .mobile-pay-qr-hero i {
    width: 88px;
    height: 88px;
  }

  .mobile-pay-qr-card {
    margin: -4px 12px 14px;
    padding: 0 14px 18px;
  }

  .mobile-pay-qr-tabs {
    margin: 0 -14px 18px;
  }

  .mobile-pay-qr-tabs button {
    min-height: 58px;
    font-size: 15px;
  }

  .mobile-pay-qr-price {
    font-size: 58px;
  }
}

/* Formal payment checkout: professional two-column layout for WeChat and Alipay. */
.pay-checkout-modal {
  position: relative;
  width: min(94vw, 860px);
  max-height: calc(100vh - 40px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(12, 27, 52, .34);
}

.pay-checkout-summary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 34px;
  color: #fff;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .06), transparent 42%),
    #111a2c;
}

.pay-checkout-summary.wechat {
  box-shadow: inset 4px 0 #16b777;
}

.pay-checkout-summary.alipay {
  box-shadow: inset 4px 0 #1677ff;
}

.pay-checkout-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.pay-checkout-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  background: #1677ff;
  box-shadow: 0 8px 18px rgba(22, 119, 255, .24);
}

.pay-checkout-summary.wechat .pay-checkout-brand-icon {
  background: #16b777;
  box-shadow: 0 8px 18px rgba(22, 183, 119, .24);
}

.pay-checkout-summary.alipay .pay-checkout-brand-icon {
  width: 112px;
  padding: 5px 8px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(22, 119, 255, .18);
}

.pay-brand-svg {
  display: block;
  width: 30px;
  height: 30px;
  fill: #fff;
}

.pay-brand-wechat .pay-brand-cutout {
  fill: #16b777;
}

.pay-brand-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pay-checkout-brand strong {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0;
}

.pay-checkout-heading {
  display: grid;
  gap: 8px;
}

.pay-checkout-heading small {
  color: #9fb0c9;
  font-size: 12px;
  font-weight: 850;
}

.pay-checkout-heading h3 {
  margin: 0;
  color: #fff;
  font-size: 29px;
  line-height: 1.25;
}

.pay-checkout-heading p {
  margin: 0;
  color: #9fb0c9;
  font-size: 13px;
  line-height: 1.7;
}

.pay-checkout-product {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
}

.pay-checkout-product span {
  color: #9fb0c9;
  font-size: 12px;
}

.pay-checkout-product strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.45;
}

.pay-checkout-product em {
  margin-top: 4px;
  color: #70a9ff;
  font-size: 38px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.pay-checkout-summary.wechat .pay-checkout-product em {
  color: #55dca8;
}

.pay-checkout-product em small {
  margin-right: 4px;
  font-size: 16px;
}

.pay-checkout-details {
  display: grid;
  gap: 0;
  margin: auto 0 0;
}

.pay-checkout-details div {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.pay-checkout-details dt {
  color: #8292aa;
  font-size: 12px;
}

.pay-checkout-details dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #dce6f6;
  font-size: 12px;
  font-weight: 850;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-checkout-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 34px 26px;
  overflow-y: auto;
  background: #fff;
}

.pay-checkout-methods {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
  padding-right: 42px;
}

.pay-checkout-methods:empty {
  display: none;
}

.pay-checkout-methods button {
  min-height: 42px;
  border: 1px solid #e2e8f2;
  border-radius: 9px;
  color: #526176;
  background: #f7f9fc;
  box-shadow: none;
  font-size: 14px;
  font-weight: 850;
}

.pay-checkout-methods button.active {
  border-color: #b9d7ff;
  color: #1268dc;
  background: #edf5ff;
}

.pay-checkout-summary.wechat + .pay-checkout-main .pay-checkout-methods button.active {
  border-color: #a9e4cc;
  color: #098a57;
  background: #eaf9f3;
}

.pay-checkout-methods button:only-child {
  grid-column: 1 / -1;
}

.pay-checkout-title {
  width: 100%;
  margin-bottom: 18px;
  text-align: center;
}

.pay-checkout-title h4 {
  margin: 0 0 6px;
  color: #17233c;
  font-size: 20px;
}

.pay-checkout-title p {
  margin: 0;
  color: #7a879a;
  font-size: 12px;
  line-height: 1.6;
}

.pay-checkout-qr {
  width: min(64vw, 246px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid #e2e8f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(24, 43, 75, .12);
}

.pay-checkout-qr img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.pay-checkout-direct {
  width: 100%;
  min-height: 246px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  border: 1px solid #e2e8f2;
  border-radius: 14px;
  color: #526176;
  text-align: center;
  background: #f7f9fc;
}

.pay-checkout-direct strong {
  color: #17233c;
  font-size: 18px;
}

.pay-checkout-direct p {
  max-width: 290px;
  margin: 0;
  color: #7a879a;
  font-size: 13px;
  line-height: 1.65;
}

.pay-checkout-loader {
  width: 34px;
  height: 34px;
  border: 3px solid #d8e4f4;
  border-top-color: #1677ff;
  border-radius: 50%;
  animation: pay-checkout-spin .9s linear infinite;
}

.pay-checkout-summary.wechat + .pay-checkout-main .pay-checkout-loader {
  border-top-color: #16b777;
}

@keyframes pay-checkout-spin {
  to { transform: rotate(360deg); }
}

.pay-checkout-payee {
  margin-top: 14px;
  color: #8895a8;
  font-size: 12px;
  text-align: center;
}

.pay-checkout-status {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  border-color: #e3eaf4;
  border-radius: 10px;
  color: #43516a;
  background: #f7f9fc;
  font-size: 12px;
}

.pay-checkout-status > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #16b777;
  box-shadow: 0 0 0 5px rgba(22, 183, 119, .12);
}

.pay-checkout-status b {
  font-weight: 800;
}

.pay-checkout-note {
  margin-top: 10px;
  color: #8b97a8;
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.pay-checkout-action {
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  border: 1px solid #dfe6f0;
  border-radius: 9px;
  color: #43516a;
  background: #fff;
  box-shadow: none;
}

.pay-checkout-close {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid #e0e6ef;
  color: #526176;
  background: #fff;
  box-shadow: 0 8px 18px rgba(20, 38, 70, .08);
}

@media (max-width: 720px) {
  .pay-checkout-modal {
    width: min(100%, 410px);
    grid-template-columns: 1fr;
    border-radius: 18px;
    overflow-y: auto;
  }

  .pay-checkout-summary {
    gap: 14px;
    padding: 22px 20px 18px;
  }

  .pay-checkout-brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .pay-checkout-summary.alipay .pay-checkout-brand-icon {
    width: 96px;
    height: 32px;
    padding: 4px 6px;
  }

  .pay-brand-svg {
    width: 26px;
    height: 26px;
  }

  .pay-checkout-heading h3 {
    padding-right: 42px;
    font-size: 22px;
  }

  .pay-checkout-heading p {
    display: none;
  }

  .pay-checkout-product {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 4px 12px;
    padding: 13px 14px;
  }

  .pay-checkout-product span,
  .pay-checkout-product strong {
    grid-column: 1;
  }

  .pay-checkout-product em {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 29px;
  }

  .pay-checkout-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
  }

  .pay-checkout-details div {
    display: grid;
    gap: 4px;
    padding: 9px 0 0;
  }

  .pay-checkout-details dd {
    text-align: left;
  }

  .pay-checkout-main {
    padding: 18px 18px 20px;
  }

  .pay-checkout-methods {
    margin-bottom: 16px;
    padding-right: 42px;
  }

  .pay-checkout-title {
    margin-bottom: 13px;
  }

  .pay-checkout-title h4 {
    font-size: 18px;
  }

  .pay-checkout-qr {
    width: min(62vw, 220px);
    padding: 10px;
  }

  .pay-checkout-direct {
    min-height: 190px;
  }

  .pay-checkout-status {
    margin-top: 14px;
  }
}

.mobile-pay-close,
.customer-urgent-modal-close,
.popup-announcement-close {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 0 !important;
  text-indent: 0 !important;
  overflow: hidden;
}

.mobile-pay-close::before,
.customer-urgent-modal-close::before,
.popup-announcement-close::before {
  content: "\00d7";
  display: block;
  width: 1em;
  height: 1em;
  color: currentColor;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: .92;
  text-align: center;
}

.mobile-pay-close::before {
  font-size: 24px;
}

.payment-qr-upload-field {
  min-width: 0;
}

.payment-qr-upload-box {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 112px;
  padding: 12px;
  border: 1px dashed #b9ccec;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.payment-qr-preview {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dbe7f6;
  border-radius: 12px;
  color: #71809a;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.payment-qr-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.payment-qr-upload-box strong,
.payment-qr-upload-box small {
  display: block;
}

.payment-qr-upload-box strong {
  color: #17233f;
  font-weight: 950;
}

.payment-qr-upload-box small {
  margin-top: 4px;
  color: #64748b;
  line-height: 1.45;
}

.payment-qr-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.payment-qr-pick {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
}

.payment-qr-pick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.mobile-pay-auto-status {
  margin: 12px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(46, 112, 255, .14);
  border-radius: 12px;
  color: #42526f;
  background: rgba(245, 249, 255, .88);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 520px) {
  .payment-qr-upload-box {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .payment-qr-preview {
    width: 76px;
    height: 76px;
  }
}

.membership-supreme-page {
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at 92% 0, rgba(245, 198, 91, .22), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
}

.membership-supreme-hero,
.membership-admin-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: stretch;
  padding: 26px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(140deg, #111827 0%, #263251 52%, #9d6b22 100%);
  box-shadow: 0 28px 58px rgba(17, 24, 39, .22);
}

.membership-supreme-hero:before,
.membership-admin-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .65;
}

.membership-supreme-hero > *,
.membership-admin-hero > * {
  position: relative;
  z-index: 1;
}

.membership-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  color: #ffe7a0;
  background: rgba(255,255,255,.12);
  font-size: 13px;
  font-weight: 900;
}

.membership-supreme-hero h3,
.membership-admin-hero h3 {
  margin: 18px 0 10px;
  max-width: 680px;
  color: #fff;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0;
}

.membership-supreme-hero p,
.membership-admin-hero p {
  max-width: 720px;
  color: rgba(255,255,255,.78);
  line-height: 1.75;
}

.membership-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.membership-actions button:first-child,
.membership-price-card {
  color: #211604;
  background: linear-gradient(135deg, #ffe7a0, #f4ba49);
  box-shadow: 0 18px 34px rgba(223, 166, 54, .24);
}

.membership-card-visual {
  align-self: center;
  min-height: 190px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.24);
  background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.membership-card-visual small,
.membership-card-visual span {
  display: block;
  color: rgba(255,255,255,.76);
  font-weight: 850;
}

.membership-card-visual strong {
  display: block;
  margin: 38px 0 46px;
  color: #fff;
  font-size: 30px;
  letter-spacing: 0;
}

.membership-benefit-grid,
.membership-faq-grid,
.membership-price-grid,
.membership-admin-stats {
  display: grid;
  gap: 14px;
}

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

.membership-price-grid {
  grid-template-columns: 280px minmax(0, 1fr);
}

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

.membership-benefit-grid article,
.membership-faq-grid article,
.membership-intro-card,
.membership-records,
.membership-admin-users {
  border: 1px solid #e6ebf4;
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 14px 36px rgba(20, 43, 82, .06);
}

.membership-benefit-grid i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 12px;
  color: #8a5a0b;
  background: #fff4cf;
  font-style: normal;
  font-weight: 950;
}

.membership-benefit-grid strong,
.membership-faq-grid strong,
.membership-intro-card h4 {
  display: block;
  margin-bottom: 8px;
  color: #172033;
  font-size: 16px;
}

.membership-benefit-grid span,
.membership-faq-grid p,
.membership-intro-card p {
  color: #6b758b;
  line-height: 1.65;
  font-size: 13px;
}

.membership-price-card {
  border: 1px solid #f1d487;
  border-radius: 18px;
  padding: 18px;
}

.membership-price-card span,
.membership-price-card em {
  display: block;
  color: #6b4a12;
  font-style: normal;
  font-weight: 850;
}

.membership-price-card strong {
  display: block;
  margin: 8px 0;
  color: #201504;
  font-size: 34px;
}

.membership-record-list {
  display: grid;
  gap: 10px;
}

.membership-record-list > div:not(.empty) {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid #e8eef7;
  border-radius: 14px;
  background: #f8fbff;
}

.membership-record-list strong {
  color: #172033;
}

.membership-record-list span {
  color: #6b758b;
  font-size: 12px;
}

.membership-admin-hero {
  margin-bottom: 16px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.membership-admin-hero .payment-manage-status {
  align-self: center;
}

.membership-admin-form {
  margin-top: 16px;
}

.membership-admin-stats .stat,
.membership-admin-users,
.membership-admin-form .preset-card {
  color: #172033;
}

.membership-admin-stats .stat {
  border: 1px solid #e6ebf4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 43, 82, .06);
}

.membership-admin-stats .stat span,
.membership-admin-stats .stat strong {
  color: #172033;
}

.membership-admin-stats .stat.accent {
  color: #fff;
  background: linear-gradient(135deg, #111827, #9d6b22);
}

.membership-admin-stats .stat.accent span,
.membership-admin-stats .stat.accent strong {
  color: #fff;
}

.membership-admin-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 14px;
  color: #667085;
  font-size: 13px;
}

.membership-admin-pagination span {
  margin-right: auto;
  color: #344054;
  font-weight: 800;
}

.membership-admin-pagination select {
  height: 38px;
  border: 1px solid #d7e2f0;
  border-radius: 10px;
  background: #fff;
  color: #172033;
  font-weight: 800;
}

.secret-clear-row {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin-top: 8px;
  padding: 5px 10px;
  border: 1px solid #ffd1d1;
  border-radius: 999px;
  color: #b42318;
  background: #fff7f7;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.secret-clear-row input {
  width: 14px;
  height: 14px;
}

.settlement-phase-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.settlement-phase-rule-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe7f6;
  border-radius: 14px;
  background: linear-gradient(180deg, #f9fcff, #fff);
}

.settlement-phase-rule-card strong {
  color: #10203c;
  font-weight: 950;
}

.settlement-organization-rule-grid {
  grid-template-columns: minmax(0, 1fr);
}

.settlement-organization-rule-panel .panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.settlement-rule-source,
.settlement-shared-writer-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #cfe0f8;
  border-radius: 999px;
  color: #48617f;
  background: #f3f7fc;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.settlement-rule-source.custom {
  border-color: #b7d4ff;
  color: #0a5fd8;
  background: #eaf3ff;
}

.settlement-shared-writer-tag {
  min-height: 24px;
  margin: 6px 0 0 8px;
  border-color: #ead7ff;
  color: #7351a7;
  background: #f7f0ff;
}

.settlement-rule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settlement-rate-lock {
  display: block;
  max-width: 260px;
  margin-top: 7px;
  color: #7351a7;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.5;
}

.settlement-rate-locked-row {
  background: #fbf9ff;
}

.settlement-rate-locked-row input:disabled {
  border-color: #ded5ee;
  color: #6f6680;
  background: #f2eef8;
  cursor: not-allowed;
}

.settlement-rate-locked-row button:disabled {
  opacity: 1;
  border-color: #ded5ee;
  color: #735f91;
  background: #f2eef8;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .settlement-organization-rule-panel .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .settlement-rule-source {
    width: max-content;
  }
}

.customer-entitlements-page {
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at 86% 0%, rgba(29,111,232,.14), transparent 28%),
    linear-gradient(180deg, var(--customer-panel), #f6f9ff);
}

.customer-entitlement-hero {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 28px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(255,255,255,.22), transparent 25%),
    linear-gradient(135deg, var(--customer-primary), var(--customer-primary-dark) 58%, var(--customer-accent));
  box-shadow: 0 24px 54px rgba(29, 111, 232, .22);
}

.customer-entitlement-hero span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-size: 13px;
  font-weight: 950;
}

.customer-entitlement-hero h3 {
  margin: 18px 0 10px;
  max-width: 680px;
  color: #fff;
  font-size: 34px;
  line-height: 1.15;
}

.customer-entitlement-hero p {
  max-width: 760px;
  color: rgba(255,255,255,.84);
  font-size: 15px;
  line-height: 1.75;
}

.customer-entitlement-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.customer-entitlement-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.customer-entitlement-grid.bottom {
  grid-template-columns: minmax(0, 1fr) minmax(320px, .7fr);
}

.customer-entitlement-card {
  padding: 18px;
  border: 1px solid #dfe9f6;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 42px rgba(20, 43, 82, .08);
}

.customer-entitlement-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.customer-entitlement-card-head span {
  color: #62738c;
  font-size: 13px;
  font-weight: 950;
}

.customer-entitlement-card-head strong {
  color: #10203c;
  font-size: 18px;
  font-weight: 950;
}

.customer-entitlement-info-grid,
.customer-entitlement-quota-grid {
  display: grid;
  gap: 10px;
}

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

.customer-entitlement-info-grid div {
  min-height: 76px;
  padding: 12px;
  border-radius: 14px;
  background: #f5f9ff;
}

.customer-entitlement-info-grid small,
.customer-entitlement-quota-grid small {
  display: block;
  color: #687a94;
  font-size: 12px;
  font-weight: 900;
}

.customer-entitlement-info-grid b {
  display: block;
  margin-top: 6px;
  color: #10203c;
  line-height: 1.35;
}

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

.customer-entitlement-quota-grid button {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 8px;
  text-align: left;
  color: #fff;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #1268ff, #0ea5a4);
}

.customer-entitlement-quota-grid button.reduce { background: linear-gradient(135deg, #1268ff, #0ea5a4); }
.customer-entitlement-quota-grid button.urgent { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.customer-entitlement-quota-grid button.ppt { background: linear-gradient(135deg, #7a4dff, #1268ff); }
.customer-entitlement-quota-grid button.revise { background: linear-gradient(135deg, #21375f, #506c92); }

.customer-entitlement-quota-grid button small,
.customer-entitlement-quota-grid button span {
  color: rgba(255,255,255,.78);
}

.customer-entitlement-quota-grid button strong {
  color: #fff;
  font-size: 30px;
}

.customer-entitlement-card pre {
  min-height: 188px;
  margin: 0;
  padding: 16px;
  border: 1px dashed #c8d9ef;
  border-radius: 14px;
  color: #263750;
  background: #f8fbff;
  white-space: pre-wrap;
  line-height: 1.75;
}

.customer-entitlement-card.notice p {
  color: #52647d;
  line-height: 1.75;
}

.customer-entitlement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.mobile-entitlement-order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mobile-entitlement-order-grid div {
  min-height: 66px;
  padding: 10px;
  border-radius: 14px;
  background: #f5f9ff;
}

.mobile-entitlement-order-grid small,
.mobile-entitlement-order-grid strong {
  display: block;
}

.mobile-entitlement-order-grid small {
  color: #65738d;
  font-size: 10px;
  font-weight: 900;
}

.mobile-entitlement-order-grid strong {
  margin-top: 5px;
  overflow: hidden;
  color: #17233f;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-entitlement-responsibility pre {
  max-height: 220px;
  margin: 10px 0 0;
  padding: 12px;
  overflow: auto;
  border: 1px dashed #c8d9ef;
  border-radius: 14px;
  color: #263750;
  background: #f8fbff;
  white-space: pre-wrap;
  line-height: 1.65;
}

.mobile-entitlement-notice p {
  margin: 10px 0 0;
  color: #5b6b82;
  line-height: 1.65;
  font-weight: 800;
}

@media (max-width: 980px) {
  .settlement-phase-rule-grid,
  .customer-entitlement-grid,
  .customer-entitlement-grid.bottom {
    grid-template-columns: 1fr;
  }

  .customer-entitlement-info-grid,
  .customer-entitlement-quota-grid {
    grid-template-columns: 1fr;
  }
}

.membership-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.membership-status.supreme {
  color: #7a4f08;
  background: #fff2c6;
}

.membership-status.normal {
  color: #38506f;
  background: #edf3fb;
}

.mobile-member-card.supreme {
  color: #fff;
  border: 1px solid rgba(245, 198, 91, .34);
  background: linear-gradient(140deg, #111827 0%, #263251 55%, #9d6b22 100%);
  box-shadow: 0 18px 38px rgba(17, 24, 39, .2);
}

.mobile-member-card.supreme strong,
.mobile-member-card.supreme em {
  color: #ffe7a0;
}

.mobile-member-card.supreme span {
  color: rgba(255,255,255,.78);
}

.mobile-pay-qr-modal.supreme .mobile-pay-qr-hero {
  background: linear-gradient(140deg, #111827, #24314d 52%, #9d6b22);
}

@media (max-width: 900px) {
  .membership-supreme-hero,
  .membership-admin-hero,
  .membership-price-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .membership-supreme-page {
    padding: 12px;
    border-radius: 0;
    box-shadow: none;
  }

  .membership-supreme-hero {
    padding: 20px;
    border-radius: 22px;
  }

  .membership-supreme-hero h3 {
    font-size: 26px;
  }

  .membership-benefit-grid,
  .membership-faq-grid {
    grid-template-columns: 1fr;
  }
}

.customer-supreme-app {
  --customer-primary: #d8a84f;
  --customer-primary-dark: #8a5b18;
  --customer-accent: #ffe2a4;
  --customer-bg: #0c0a07;
  --customer-panel: #17120b;
  --customer-text: #fff4d6;
  --customer-muted: #b9a780;
  --customer-line: rgba(232, 190, 101, .28);
  --customer-side-start: #070503;
  --customer-side-mid: #171007;
  --customer-side-end: #3a2508;
}

.customer-supreme-app.customer-portal-app {
  color: var(--customer-text);
  background:
    radial-gradient(circle at 84% 4%, rgba(255, 214, 128, .15), transparent 30%),
    radial-gradient(circle at 12% 0%, rgba(117, 75, 17, .22), transparent 32%),
    linear-gradient(180deg, #090806 0%, #11100c 100%);
}

.customer-supreme-app.customer-portal-app .sidebar {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 220, 141, .16), transparent 28%),
    linear-gradient(180deg, #060403 0%, #171007 56%, #372306 100%);
  box-shadow: inset -1px 0 0 rgba(255, 220, 141, .14), 20px 0 48px rgba(0, 0, 0, .28);
}

.customer-supreme-app.customer-portal-app .sidebar::before {
  background:
    radial-gradient(ellipse at 34% 82%, rgba(255, 211, 121, .20), transparent 42%),
    repeating-radial-gradient(ellipse at 70% 78%, rgba(255, 221, 154, .15) 0 1px, transparent 1px 11px);
}

.customer-supreme-app.customer-portal-app .sidebar::after {
  border-top-color: rgba(255, 217, 129, .24);
}

.customer-supreme-app.customer-portal-app .brand img {
  background: linear-gradient(135deg, #fff3cf, #c98b2c);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .38);
}

.customer-supreme-app.customer-portal-app .nav button {
  color: rgba(255, 241, 207, .82);
}

.customer-supreme-app.customer-portal-app .nav button.active,
.customer-supreme-app.customer-portal-app .nav button:hover {
  color: #1c1204;
  background: linear-gradient(135deg, #ffe6a3, #d8a84f 54%, #8a5b18);
  border-color: rgba(255, 230, 163, .72);
  box-shadow: 0 14px 30px rgba(217, 168, 79, .20);
}

.customer-supreme-app.customer-portal-app .portal-side-footer {
  border: 1px solid rgba(255, 220, 141, .14);
  background: rgba(255, 220, 141, .08);
}

.customer-supreme-app.customer-portal-app .portal-side-action {
  color: #ffe8aa;
}

.customer-supreme-app.customer-portal-app .main {
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 216, 138, .14), transparent 32%),
    linear-gradient(180deg, rgba(16, 13, 8, .98), #090806 100%);
}

.customer-supreme-app.customer-portal-app .topbar {
  border-bottom-color: var(--customer-line);
}

.customer-supreme-app.customer-portal-app .topbar h2,
.customer-supreme-app .customer-order-cell strong,
.customer-supreme-app .customer-order-title-cell strong,
.customer-supreme-app .customer-section-head h3,
.customer-supreme-app .customer-upload-panel .upload-head h3,
.customer-supreme-app .customer-file-card h4,
.customer-supreme-app .customer-history-head strong,
.customer-supreme-app .customer-stage-waiting strong,
.customer-supreme-app .customer-empty-module h3 {
  color: var(--customer-text);
}

.customer-supreme-app.customer-portal-app .topbar h2::after,
.customer-supreme-app.customer-portal-app .topbar .muted,
.customer-supreme-app .customer-order-cell span,
.customer-supreme-app .customer-order-cell small,
.customer-supreme-app .customer-service-modules button small,
.customer-supreme-app .customer-empty-module p,
.customer-supreme-app .customer-section-head p,
.customer-supreme-app .customer-file-card p,
.customer-supreme-app .customer-mini-file-meta,
.customer-supreme-app .customer-stage-waiting p,
.customer-supreme-app .customer-history-head span,
.customer-supreme-app .customer-history-stats span,
.customer-supreme-app .customer-file-empty,
.customer-supreme-app .customer-history-empty {
  color: var(--customer-muted);
}

.customer-supreme-app .customer-order-card,
.customer-supreme-app .customer-file-center,
.customer-supreme-app .customer-upload-panel,
.customer-supreme-app .customer-service-modules button,
.customer-supreme-app .customer-empty-module,
.customer-supreme-app .customer-stage-panel,
.customer-supreme-app .customer-history-panel,
.customer-supreme-app .customer-history-card,
.customer-supreme-app .customer-file-card,
.customer-supreme-app .customer-mini-file,
.customer-supreme-app .customer-file-empty,
.customer-supreme-app .customer-card-upload,
.customer-supreme-app .customer-selected-files,
.customer-supreme-app .membership-benefit-grid article,
.customer-supreme-app .membership-faq-grid article,
.customer-supreme-app .membership-intro-card,
.customer-supreme-app .membership-records {
  border-color: var(--customer-line);
  color: var(--customer-text);
  background:
    linear-gradient(145deg, rgba(255, 229, 166, .08), rgba(255, 255, 255, .025)),
    var(--customer-panel);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
}

.customer-supreme-app .customer-file-card.paper,
.customer-supreme-app .customer-file-card.comment,
.customer-supreme-app .customer-file-card.reference,
.customer-supreme-app .customer-file-card.after,
.customer-supreme-app .customer-stage-panel {
  background:
    linear-gradient(145deg, rgba(255, 217, 129, .12), rgba(255, 255, 255, .02)),
    var(--customer-panel);
}

.customer-supreme-app .customer-stage-grid button,
.customer-supreme-app .customer-upload-tabs button,
.customer-supreme-app .customer-upload-panel .upload-drop,
.customer-supreme-app .customer-history-files button {
  border-color: var(--customer-line);
  color: var(--customer-text);
  background: rgba(255, 226, 164, .07);
}

.customer-supreme-app .customer-stage-grid button.active,
.customer-supreme-app .customer-upload-tabs button.active {
  color: #1b1103;
  background: linear-gradient(135deg, #ffe6a3, #d8a84f);
}

.customer-supreme-app .customer-file-card-icon,
.customer-supreme-app .customer-file-card.comment .customer-file-card-icon,
.customer-supreme-app .customer-file-card.reference .customer-file-card-icon,
.customer-supreme-app .customer-file-card.after .customer-file-card-icon,
.customer-supreme-app .customer-empty-module-icon,
.customer-supreme-app .customer-file-type {
  color: #1b1103;
  background: linear-gradient(135deg, #ffe6a3, #d8a84f);
}

.customer-supreme-app .customer-order-actions button:not(.secondary),
.customer-supreme-app .customer-upload-submit,
.customer-supreme-app .customer-todo-card > button,
.customer-supreme-app .membership-actions button:first-child {
  color: #1b1103;
  background: linear-gradient(135deg, #ffe6a3, #d8a84f 52%, #9b671d);
  box-shadow: 0 16px 32px rgba(216, 168, 79, .24);
}

.customer-supreme-app .secondary,
.customer-supreme-app.customer-portal-app .top-actions .secondary,
.customer-supreme-app .customer-order-actions .secondary,
.customer-supreme-app .customer-file-title-head .secondary,
.customer-supreme-app .customer-section-head .secondary {
  color: #ffe6a3;
  border-color: var(--customer-line);
  background: rgba(255, 226, 164, .08);
}

.customer-supreme-app .membership-supreme-page {
  border-color: rgba(255, 220, 141, .18);
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 220, 141, .12), transparent 30%),
    linear-gradient(180deg, #0f0b06, #090806);
}

.customer-supreme-app .membership-supreme-hero {
  border-color: rgba(255, 220, 141, .28);
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 236, 184, .18), transparent 26%),
    linear-gradient(140deg, #090604, #1d1306 58%, #6b4210);
}

.customer-supreme-app .membership-record-list > div:not(.empty) {
  border-color: var(--customer-line);
  background: rgba(255, 226, 164, .06);
}

.customer-supreme-app .membership-benefit-grid strong,
.customer-supreme-app .membership-faq-grid strong,
.customer-supreme-app .membership-intro-card h4,
.customer-supreme-app .membership-record-list strong {
  color: var(--customer-text);
}

.customer-supreme-app .membership-benefit-grid span,
.customer-supreme-app .membership-faq-grid p,
.customer-supreme-app .membership-intro-card p,
.customer-supreme-app .membership-record-list span {
  color: var(--customer-muted);
}

@media (max-width: 760px) {
  .mobile-supreme-customer-app {
    --mobile-primary: #d8a84f;
    --mobile-primary-2: #8a5b18;
    --mobile-bg: #0c0a07;
    color: var(--customer-text);
    background:
      radial-gradient(circle at 18% 0%, rgba(255, 217, 129, .16), transparent 32%),
      radial-gradient(circle at 88% 12%, rgba(129, 83, 23, .18), transparent 30%),
      linear-gradient(180deg, #090806 0%, #11100b 100%);
  }

  .mobile-supreme-customer-app .mobile-page {
    color: var(--customer-text);
  }

  .mobile-supreme-customer-app .mobile-home-head h1,
  .mobile-supreme-customer-app .mobile-title-head h1,
  .mobile-supreme-customer-app .mobile-profile-hero h1,
  .mobile-supreme-customer-app .mobile-home-v2-head h1,
  .mobile-supreme-customer-app .mobile-file-v2 .mobile-title-head h1,
  .mobile-supreme-customer-app .mobile-service-v2 .mobile-title-head h1,
  .mobile-supreme-customer-app .mobile-entitlement-v2 .mobile-title-head h1,
  .mobile-supreme-customer-app .mobile-home-v2-todo-head span,
  .mobile-supreme-customer-app .mobile-home-v2-section h2,
  .mobile-supreme-customer-app .mobile-file-v2-current strong,
  .mobile-supreme-customer-app .mobile-file-card h3,
  .mobile-supreme-customer-app .mobile-member-card strong,
  .mobile-supreme-customer-app .mobile-profile-v2-menu span,
  .mobile-supreme-customer-app .mobile-entitlement-stats strong,
  .mobile-supreme-customer-app .mobile-v2-history-card strong {
    color: var(--customer-text);
  }

  .mobile-supreme-customer-app .mobile-home-head p,
  .mobile-supreme-customer-app .mobile-title-head p,
  .mobile-supreme-customer-app .mobile-profile-hero p,
  .mobile-supreme-customer-app .mobile-home-v2-head span,
  .mobile-supreme-customer-app .mobile-home-v2-file span,
  .mobile-supreme-customer-app .mobile-file-card p,
  .mobile-supreme-customer-app .mobile-file-latest span,
  .mobile-supreme-customer-app .mobile-file-latest small,
  .mobile-supreme-customer-app .mobile-file-v2-current,
  .mobile-supreme-customer-app .mobile-file-v2-stage-hint,
  .mobile-supreme-customer-app .mobile-member-card span,
  .mobile-supreme-customer-app .mobile-entitlement-stats small,
  .mobile-supreme-customer-app .mobile-entitlement-stats span,
  .mobile-supreme-customer-app .mobile-v2-stage-filter small,
  .mobile-supreme-customer-app .mobile-v2-history-card span,
  .mobile-supreme-customer-app .mobile-v2-history-card small {
    color: var(--customer-muted);
  }

  .mobile-supreme-customer-app .mobile-order-hero,
  .mobile-supreme-customer-app .mobile-service-hero,
  .mobile-supreme-customer-app .mobile-profile-hero,
  .mobile-supreme-customer-app .mobile-profile-v2-hero,
  .mobile-supreme-customer-app .mobile-home-v2-order,
  .mobile-supreme-customer-app .mobile-history-v2-hero {
    color: #fff4d6;
    background:
      radial-gradient(circle at 84% 18%, rgba(255, 238, 190, .20), transparent 25%),
      linear-gradient(135deg, #090604 0%, #1d1306 56%, #70450f 100%);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .36);
  }

  .mobile-supreme-customer-app .mobile-bell,
  .mobile-supreme-customer-app .mobile-back-btn,
  .mobile-supreme-customer-app .mobile-home-v2-bell,
  .mobile-supreme-customer-app .mobile-profile-hero > button,
  .mobile-supreme-customer-app .mobile-profile-v2-hero > button {
    color: #ffe6a3;
    border-color: var(--customer-line);
    background: rgba(255, 226, 164, .10);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .28);
  }

  .mobile-supreme-customer-app .mobile-stage-flow,
  .mobile-supreme-customer-app .mobile-home-v2 .mobile-stage-flow,
  .mobile-supreme-customer-app .mobile-todo-card,
  .mobile-supreme-customer-app .mobile-service-card,
  .mobile-supreme-customer-app .mobile-file-card,
  .mobile-supreme-customer-app .mobile-upload-center,
  .mobile-supreme-customer-app .mobile-member-card,
  .mobile-supreme-customer-app .mobile-profile-list,
  .mobile-supreme-customer-app .mobile-empty-card,
  .mobile-supreme-customer-app .mobile-home-v2-todo,
  .mobile-supreme-customer-app .mobile-home-v2-file,
  .mobile-supreme-customer-app .mobile-file-v2 .mobile-file-card,
  .mobile-supreme-customer-app .mobile-file-latest,
  .mobile-supreme-customer-app .mobile-file-v2 .mobile-file-empty,
  .mobile-supreme-customer-app .mobile-file-v2-current,
  .mobile-supreme-customer-app .mobile-file-v2-category-grid button,
  .mobile-supreme-customer-app .mobile-file-v2-stage-hint,
  .mobile-supreme-customer-app .mobile-v2-stage-filter button,
  .mobile-supreme-customer-app .mobile-v2-history-card,
  .mobile-supreme-customer-app .mobile-entitlement-stats article,
  .mobile-supreme-customer-app .membership-benefit-grid article,
  .mobile-supreme-customer-app .membership-faq-grid article,
  .mobile-supreme-customer-app .membership-intro-card,
  .mobile-supreme-customer-app .membership-records {
    border-color: var(--customer-line);
    background:
      linear-gradient(145deg, rgba(255, 229, 166, .08), rgba(255, 255, 255, .025)),
      var(--customer-panel);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
  }

  .mobile-supreme-customer-app .mobile-file-v2 .mobile-file-card.paper,
  .mobile-supreme-customer-app .mobile-file-v2 .mobile-file-card.comment,
  .mobile-supreme-customer-app .mobile-file-v2 .mobile-file-card.reference,
  .mobile-supreme-customer-app .mobile-file-v2 .mobile-file-card.after {
    background:
      linear-gradient(145deg, rgba(255, 217, 129, .12), rgba(255, 255, 255, .02)),
      var(--customer-panel);
  }

  .mobile-supreme-customer-app .mobile-stage-flow i,
  .mobile-supreme-customer-app .mobile-home-v2 .mobile-stage-flow i,
  .mobile-supreme-customer-app .mobile-home-v2-todo-head i,
  .mobile-supreme-customer-app .mobile-home-v2-file i,
  .mobile-supreme-customer-app .mobile-file-v2-category-grid i,
  .mobile-supreme-customer-app .mobile-file-v2-category-grid .comment i,
  .mobile-supreme-customer-app .mobile-file-v2-category-grid .reference i,
  .mobile-supreme-customer-app .mobile-profile-v2-menu i,
  .mobile-supreme-customer-app .mobile-file-icon,
  .mobile-supreme-customer-app .mobile-file-card.comment .mobile-file-icon,
  .mobile-supreme-customer-app .mobile-file-card.reference .mobile-file-icon,
  .mobile-supreme-customer-app .mobile-file-card.after .mobile-file-icon,
  .mobile-supreme-customer-app .mobile-overview-card i {
    color: #1b1103;
    background: linear-gradient(135deg, #ffe6a3, #d8a84f);
  }

  .mobile-supreme-customer-app .mobile-stage-flow .active i,
  .mobile-supreme-customer-app .mobile-home-v2 .mobile-stage-flow .active i,
  .mobile-supreme-customer-app .mobile-file-v2-category-grid button.active,
  .mobile-supreme-customer-app .mobile-v2-stage-filter button.active,
  .mobile-supreme-customer-app .mobile-entitlement-stats article.active {
    color: #ffe6a3;
    border-color: rgba(255, 230, 163, .46);
    background: rgba(255, 226, 164, .12);
  }

  .mobile-supreme-customer-app .mobile-todo-card > button,
  .mobile-supreme-customer-app .mobile-upload-center > button,
  .mobile-supreme-customer-app .mobile-service-form button,
  .mobile-supreme-customer-app .mobile-home-v2-todo > button {
    color: #1b1103;
    background: linear-gradient(135deg, #ffe6a3, #d8a84f 52%, #9b671d);
    box-shadow: 0 14px 28px rgba(216, 168, 79, .22);
  }

  .mobile-supreme-customer-app .mobile-customer-tabbar {
    border-top: 1px solid var(--customer-line);
    background: rgba(13, 10, 6, .94);
    box-shadow: 0 -18px 36px rgba(0, 0, 0, .34);
    backdrop-filter: blur(18px);
  }

  .mobile-supreme-customer-app .mobile-customer-tabbar button {
    color: rgba(255, 244, 214, .62);
  }

  .mobile-supreme-customer-app .mobile-customer-tabbar button.active {
    color: #ffe6a3;
  }

  .mobile-supreme-customer-app .mobile-member-card.supreme {
    border-color: rgba(255, 230, 163, .50);
    background:
      radial-gradient(circle at 88% 16%, rgba(255, 238, 190, .18), transparent 28%),
      linear-gradient(135deg, #0c0703, #211506 56%, #8a5b18);
  }

  .mobile-supreme-customer-app .mobile-pay-backdrop {
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 217, 129, .20), transparent 34%),
      rgba(4, 3, 2, .68);
  }
}

.customer-supreme-sidebar-only.customer-portal-app .sidebar {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 220, 141, .18), transparent 28%),
    linear-gradient(180deg, #070503 0%, #171007 56%, #3a2508 100%);
  box-shadow: inset -1px 0 0 rgba(255, 220, 141, .16), 18px 0 48px rgba(0, 0, 0, .20);
}

.customer-supreme-sidebar-only.customer-portal-app .sidebar::before {
  background:
    radial-gradient(ellipse at 34% 82%, rgba(255, 211, 121, .22), transparent 42%),
    repeating-radial-gradient(ellipse at 70% 78%, rgba(255, 221, 154, .16) 0 1px, transparent 1px 11px);
}

.customer-supreme-sidebar-only.customer-portal-app .sidebar::after {
  border-top-color: rgba(255, 217, 129, .26);
}

.customer-supreme-sidebar-only.customer-portal-app .brand img {
  background: linear-gradient(135deg, #fff3cf, #c98b2c);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .34);
}

.customer-supreme-sidebar-only.customer-portal-app .brand span,
.customer-supreme-sidebar-only.customer-portal-app .nav button,
.customer-supreme-sidebar-only.customer-portal-app .portal-side-action {
  color: rgba(255, 241, 207, .88);
}

.customer-supreme-sidebar-only.customer-portal-app .nav button.active,
.customer-supreme-sidebar-only.customer-portal-app .nav button:hover {
  color: #1c1204;
  background: linear-gradient(135deg, #ffe6a3, #d8a84f 54%, #8a5b18);
  border-color: rgba(255, 230, 163, .72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 12px 28px rgba(74, 45, 5, .28);
}

.customer-supreme-sidebar-only.customer-portal-app .portal-side-footer {
  border: 1px solid rgba(255, 220, 141, .14);
  background: rgba(255, 220, 141, .08);
}

/* Supreme membership — 24-hour double-assurance presentation.
   This block is scoped to the membership content and intentionally does not
   target the portal sidebar. */
.membership-assurance-page {
  --assurance-navy: #071a37;
  --assurance-navy-soft: #102c55;
  --assurance-gold: #dca93f;
  --assurance-gold-light: #f7dc95;
  gap: 18px;
  padding: 16px;
  border: 1px solid #dce7f4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(37, 74, 125, .10);
}

.membership-assurance-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}

.membership-assurance-service {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 40px 76px;
  border: 1px solid rgba(220, 169, 63, .48);
}

.membership-assurance-service-primary {
  padding: 32px 190px 32px 78px;
  border-radius: 22px 0 0 22px;
  color: #fff;
  background:
    radial-gradient(circle at 76% 54%, rgba(67, 104, 157, .24), transparent 26%),
    linear-gradient(135deg, #07172f 0%, #0b2344 60%, #17365e 100%);
}

.membership-assurance-service-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.membership-assurance-service-duty {
  padding: 32px 64px 32px 280px;
  border-radius: 0 22px 22px 0;
  color: #122745;
  background:
    radial-gradient(circle at 88% 80%, rgba(220, 169, 63, .10), transparent 28%),
    linear-gradient(135deg, #fffefb, #fff 58%, #fffaf0);
}

.membership-assurance-service > * {
  position: relative;
  z-index: 2;
}

.membership-assurance-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 15px;
  border-radius: 999px;
  color: #6f4b10;
  background: linear-gradient(135deg, #f8e4ac, #e0aa3d);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
}

.membership-assurance-service h3 {
  margin: 25px 0 24px;
  color: inherit;
  font-size: clamp(24px, 2.05vw, 35px);
  line-height: 1.22;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.membership-assurance-service h3 em {
  margin-right: 6px;
  color: var(--assurance-gold);
  font-style: normal;
}

.membership-assurance-service ul {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.membership-assurance-service li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15.5px;
  font-weight: 760;
}

.membership-assurance-service li::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 950;
}

.membership-assurance-service-art {
  position: absolute;
  right: 144px;
  bottom: 6px;
  z-index: 1;
  width: 142px;
  height: 126px;
  color: rgba(255,255,255,.06);
  fill: currentColor;
}

.membership-assurance-clock {
  position: absolute;
  right: 28px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 146px;
  height: 146px;
  border: 12px solid rgba(220, 169, 63, .09);
  border-radius: 50%;
  color: rgba(220, 169, 63, .12);
  font-size: 44px;
  font-weight: 950;
}

.membership-assurance-clock::before {
  content: "";
  position: absolute;
  top: 18px;
  width: 5px;
  height: 36px;
  border-radius: 9px;
  background: currentColor;
  transform-origin: 50% 42px;
  transform: rotate(0deg);
}

.membership-assurance-clock small {
  position: absolute;
  right: -8px;
  bottom: -8px;
  font-size: 24px;
}

.membership-assurance-shield {
  position: absolute;
  top: 2px;
  left: 50%;
  z-index: 5;
  width: 280px;
  height: 302px;
  transform: translateX(-50%);
  pointer-events: none;
}

.membership-assurance-shield svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.membership-assurance-priority {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(410px, 32%);
  min-height: 80px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(90deg, #071a37 0%, #0c2850 70%, #091c3a 100%);
  box-shadow: 0 14px 30px rgba(7, 26, 55, .14);
}

.membership-assurance-priority-copy,
.membership-assurance-speed {
  display: flex;
  align-items: center;
  min-width: 0;
}

.membership-assurance-priority-copy {
  gap: 12px;
  padding: 0 34px;
  font-size: 16px;
}

.membership-assurance-priority-copy strong {
  color: #e9b748;
  font-size: 18px;
}

.membership-assurance-priority-copy i {
  color: rgba(255,255,255,.35);
  font-style: normal;
}

.membership-assurance-crown {
  color: #efbd4f;
  font-size: 36px;
}

.membership-assurance-speed {
  position: relative;
  justify-content: center;
  gap: 8px;
  padding: 0 34px 0 62px;
  color: #17130b;
  background: linear-gradient(115deg, #f9d781, #d99f2f 62%, #f2c15a);
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%);
  font-size: 20px;
  font-weight: 900;
}

.membership-assurance-speed strong {
  color: #071a37;
  font-size: 52px;
  line-height: 1;
}

.membership-assurance-lightning {
  margin-left: 14px;
  width: 30px;
  height: 46px;
  fill: #fff;
  filter: drop-shadow(0 3px 5px rgba(117, 73, 7, .16));
}

.membership-assurance-purchase {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 150px auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid #efcf80;
  border-radius: 16px;
  background: #fffbf1;
}

.membership-assurance-purchase > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.membership-assurance-purchase > div > span,
.membership-assurance-purchase p {
  color: #657188;
  font-size: 13px;
}

.membership-assurance-purchase > div > strong {
  color: #17233a;
  font-size: 28px;
}

.membership-assurance-purchase del {
  color: #9c8261;
}

.membership-assurance-purchase button {
  min-height: 44px;
  padding: 0 24px;
  color: #1d1607;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #f8db8a, #dca43a);
  box-shadow: 0 10px 22px rgba(213, 157, 44, .22);
  font-weight: 900;
  cursor: pointer;
}

.membership-assurance-cta-arrow {
  display: grid;
  place-items: center;
  width: 150px;
  height: 44px;
  color: #ff3b46;
  animation: membershipCtaArrowPulse 1.6s ease-in-out infinite;
}

.membership-assurance-cta-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: currentColor;
  filter: drop-shadow(0 3px 7px color-mix(in srgb, currentColor 38%, transparent));
  animation: membershipCtaArrowColors 3.2s steps(1, end) infinite;
}

@keyframes membershipCtaArrowColors {
  0%, 24.99% { color: #ff3b46; }
  25%, 49.99% { color: #ff9418; }
  50%, 74.99% { color: #1677ff; }
  75%, 100% { color: #8b5cf6; }
}

@keyframes membershipCtaArrowPulse {
  0%, 100% { opacity: .52; transform: translateX(-8px) scale(.96); }
  50% { opacity: 1; transform: translateX(8px) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .membership-assurance-cta-arrow,
  .membership-assurance-cta-arrow svg {
    animation: none;
  }

  .membership-assurance-cta-arrow {
    opacity: 1;
    transform: none;
  }
}

.membership-assurance-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.membership-assurance-benefits article {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 204px;
  padding: 24px;
  border: 1px solid #e9e2d6;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #fffdfa);
  box-shadow: 0 12px 28px rgba(23, 48, 81, .055);
}

.membership-assurance-benefits article > i {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 4px solid #f0dfb2;
  border-radius: 50%;
  color: #c78c19;
  background: radial-gradient(circle, #fff 46%, #fff8e9 100%);
  font-size: 68px;
  font-style: normal;
  line-height: 1;
}

.membership-assurance-benefits article strong,
.membership-assurance-benefits article span {
  display: block;
}

.membership-assurance-benefits article strong {
  margin-bottom: 10px;
  color: #132746;
  font-size: 20px;
}

.membership-assurance-benefits article span {
  color: #66758d;
  font-size: 14px;
  line-height: 1.75;
}

.membership-assurance-benefits article > b {
  position: absolute;
  right: 22px;
  bottom: 10px;
  color: rgba(14, 37, 70, .045);
  font-size: 54px;
}

.membership-assurance-footnotes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 20px 18px;
  min-height: 88px;
  border: 1px solid #edf0f4;
  border-radius: 16px;
  background: #fff;
}

.membership-assurance-footnotes article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 0 24px;
  border-right: 1px solid #e3e9f0;
}

.membership-assurance-footnotes article:last-child {
  border-right: 0;
}

.membership-assurance-footnote-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  fill: none;
  stroke: #cc9328;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.membership-assurance-footnotes strong,
.membership-assurance-footnotes span {
  display: block;
}

.membership-assurance-footnotes strong {
  margin-bottom: 5px;
  color: #1b2c47;
  font-size: 14px;
}

.membership-assurance-footnotes span {
  overflow: hidden;
  color: #8691a3;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.membership-assurance-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid #e7edf5;
  border-radius: 14px;
  color: #53627a;
  background: #f8fbff;
  font-size: 13px;
  font-weight: 850;
}

.membership-assurance-status button {
  min-height: 36px;
  padding: 0 16px;
  cursor: pointer;
}

.membership-assurance-page .membership-records {
  scroll-margin-top: 20px;
}

@media (max-width: 1380px) {
  .membership-assurance-service {
    padding-left: 42px;
    padding-right: 42px;
  }

  .membership-assurance-service-primary {
    padding-right: 138px;
  }

  .membership-assurance-service-duty {
    padding-left: 170px;
  }

  .membership-assurance-service h3 {
    white-space: normal;
  }

  .membership-assurance-shield {
    top: 28px;
    width: 218px;
    height: 250px;
  }

  .membership-assurance-benefits article {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .membership-assurance-benefits article > i {
    width: 76px;
    height: 76px;
    font-size: 52px;
  }

  .membership-assurance-footnotes article {
    padding: 0 14px;
  }
}

@media (max-width: 1040px) {
  .membership-assurance-hero {
    grid-template-columns: 1fr;
  }

  .membership-assurance-service-primary,
  .membership-assurance-service-duty {
    padding: 36px 42px;
    border-radius: 18px;
  }

  .membership-assurance-service-duty {
    margin-top: 14px;
  }

  .membership-assurance-shield {
    display: none;
  }

  .membership-assurance-priority {
    grid-template-columns: 1fr;
  }

  .membership-assurance-speed {
    min-height: 70px;
    clip-path: none;
  }

  .membership-assurance-benefits {
    grid-template-columns: 1fr;
  }

  .membership-assurance-benefits article {
    min-height: 150px;
  }

  .membership-assurance-footnotes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 0;
  }

  .membership-assurance-footnotes article:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 680px) {
  .membership-assurance-page {
    padding: 10px;
    border-radius: 0;
  }

  .membership-assurance-service-primary,
  .membership-assurance-service-duty {
    padding: 28px 22px;
  }

  .membership-assurance-service h3 {
    font-size: 25px;
  }

  .membership-assurance-priority-copy {
    flex-wrap: wrap;
    padding: 18px 22px;
  }

  .membership-assurance-speed {
    padding: 12px 18px;
    font-size: 17px;
  }

  .membership-assurance-purchase {
    grid-template-columns: 1fr;
  }

  .membership-assurance-cta-arrow {
    justify-self: center;
    width: 96px;
    transform: rotate(90deg);
    animation-name: membershipCtaArrowPulseMobile;
  }

  @keyframes membershipCtaArrowPulseMobile {
    0%, 100% { opacity: .52; transform: translateY(-5px) rotate(90deg) scale(.96); }
    50% { opacity: 1; transform: translateY(5px) rotate(90deg) scale(1.04); }
  }

  .membership-assurance-benefits article {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .membership-assurance-benefits article > i {
    width: 62px;
    height: 62px;
    font-size: 42px;
  }

  .membership-assurance-footnotes {
    grid-template-columns: 1fr;
  }

  .membership-assurance-footnotes article,
  .membership-assurance-footnotes article:nth-child(2) {
    padding: 0 8px 14px;
    border-right: 0;
    border-bottom: 1px solid #e3e9f0;
  }

  .membership-assurance-footnotes article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

.backup-modal-card {
  width: min(1060px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.backup-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.backup-status-grid article {
  min-height: 82px;
  padding: 14px;
  border: 1px solid #dce7f6;
  border-radius: 8px;
  background: #f7faff;
}

.backup-status-grid span,
.backup-point-list span {
  display: block;
  color: #66758d;
  font-size: 13px;
}

.backup-status-grid strong {
  display: block;
  margin-top: 10px;
  color: #10213c;
}

.backup-good {
  color: #079455 !important;
}

.backup-warn {
  color: #d92d20 !important;
}

.backup-settings-form {
  padding: 18px 0;
  border-top: 1px solid #e4ebf5;
  border-bottom: 1px solid #e4ebf5;
}

.backup-settings-form h4,
.backup-point-list h4 {
  margin: 0 0 14px;
}

.backup-point-list {
  margin-top: 18px;
}

.backup-point-list article {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(260px, 1fr) 120px 110px 110px;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #e6edf6;
}

.backup-point-list article > div:first-child strong {
  display: block;
  margin-bottom: 4px;
}

.backup-point-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.backup-verify-btn {
  min-width: 96px;
}

.backup-restore-btn {
  min-width: 96px;
  box-shadow: none;
}

.dialog-manage-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #dbe7ff;
  background: linear-gradient(135deg, #f7fbff, #eef5ff);
}

.dialog-manage-hero h3 {
  margin: 4px 0 6px;
  font-size: 24px;
}

.dialog-manage-form {
  display: grid;
  gap: 16px;
}

.dialog-section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dialog-section-title h3 {
  margin: 3px 0 0;
}

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

.dialog-global-grid label,
.dialog-item-card label {
  display: grid;
  gap: 6px;
}

.dialog-global-grid span,
.dialog-item-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.dialog-global-grid input,
.dialog-item-card input,
.dialog-item-card textarea {
  width: 100%;
  border: 1px solid #dce6f5;
  border-radius: 10px;
  padding: 10px 12px;
  color: #17233c;
  font: inherit;
  background: #fbfdff;
}

.dialog-item-card textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.6;
}

.dialog-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dialog-item-card {
  display: grid;
  gap: 12px;
  border: 1px solid #e1eaf7;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(38, 70, 120, .06);
}

.dialog-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.dialog-item-head strong {
  display: block;
  color: #17233c;
}

.dialog-item-head code {
  display: inline-block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
}

.dialog-item-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dialog-sticky-actions {
  position: sticky;
  bottom: 18px;
  z-index: 8;
  border: 1px solid #dce6f5;
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(25, 47, 85, .12);
}

@media (max-width: 760px) {
  .backup-modal-card {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
    padding: 16px;
  }

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

  .backup-point-list article {
    grid-template-columns: 1fr auto auto;
  }

  .backup-point-metrics {
    grid-column: 1 / -1;
  }

  .mobile-member-card.supreme {
    color: #7a4510;
    border: 1px solid #ffe1aa;
    background: #fff4df;
    box-shadow: 0 12px 26px rgba(194,119,21,.12);
  }

  .mobile-member-card.supreme strong,
  .mobile-member-card.supreme em {
    color: #8a520f;
  }

  .mobile-member-card.supreme span {
    color: #8f6a3b;
  }

  .dialog-manage-hero,
  .dialog-section-title {
    display: grid;
  }

  .dialog-global-grid,
  .dialog-item-grid,
  .dialog-item-two {
    grid-template-columns: 1fr;
  }
}

/* Organization account modal: keep every control legible in every state. */
.admin-app .modal-card.organization-account-modal {
  width: min(1540px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100vh - 24px);
}

.admin-app .organization-account-modal button:not(.password-eye) {
  min-height: 42px;
  max-width: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 1px solid transparent;
  padding: 0 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: center;
  text-indent: 0;
  white-space: nowrap;
  text-overflow: clip;
  opacity: 1;
}

.admin-app .organization-account-modal button:not(.password-eye):not(.secondary):not(.danger):not([data-organization-account-tab]) {
  color: #fff;
  border-color: #1264dc;
  background: linear-gradient(135deg, #247cff, #075fd8);
  box-shadow: 0 10px 22px rgba(20, 103, 224, .2);
}

.admin-app .organization-account-modal button:not(.password-eye):not(.secondary):not(.danger):not([data-organization-account-tab]):hover {
  color: #fff;
  border-color: #084fae;
  background: linear-gradient(135deg, #1269e8, #064fac);
  box-shadow: 0 12px 25px rgba(20, 87, 184, .24);
}

.admin-app .organization-account-modal button.secondary:not(.password-eye) {
  color: #174f9d;
  border-color: #b7cff0;
  background: #f8fbff;
  box-shadow: none;
}

.admin-app .organization-account-modal button.secondary:not(.password-eye):hover {
  color: #0a4daf;
  border-color: #7faaf0;
  background: #eaf3ff;
  box-shadow: none;
}

.admin-app .organization-account-modal button.danger:not(.password-eye) {
  color: #fff;
  border-color: #c82e38;
  background: linear-gradient(135deg, #ef4c53, #c52a35);
  box-shadow: 0 9px 20px rgba(202, 48, 58, .18);
}

.admin-app .organization-account-modal button.danger:not(.password-eye):hover {
  color: #fff;
  border-color: #a91f29;
  background: linear-gradient(135deg, #df3944, #aa202b);
}

.admin-app .organization-account-tabs button:not(.password-eye) {
  min-width: 154px;
  min-height: 48px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  padding: 0 20px;
  color: #314969;
  background: #fff;
  box-shadow: none;
}

.admin-app .organization-account-tabs button:not(.password-eye):hover {
  color: #075cc8;
  border-color: #c9dcf8;
  background: #f0f6ff;
  box-shadow: none;
  transform: none;
}

.admin-app .organization-account-tabs button.active:not(.password-eye),
.admin-app .organization-account-tabs button.active:not(.password-eye):hover {
  color: #075cc8;
  border-color: #b7d2f7;
  background: #e9f2ff;
  box-shadow: none;
  transform: none;
}

.admin-app .organization-account-modal button:not(.password-eye):focus-visible {
  outline: 3px solid rgba(31, 119, 255, .28);
  outline-offset: 2px;
}

.admin-app .organization-account-modal button:not(.password-eye):active {
  transform: translateY(0);
}

.admin-app .organization-account-modal button:not(.password-eye):disabled {
  cursor: not-allowed;
  color: #6f7d91;
  border-color: #d4dde8;
  background: #e9eef4;
  box-shadow: none;
  opacity: 1;
}

.admin-app .organization-account-head > button {
  min-width: 82px;
}

.admin-app .organization-account-table {
  overflow: auto;
}

.admin-app .organization-account-table th,
.admin-app .organization-account-table td {
  white-space: nowrap;
}

.admin-app .organization-account-actions {
  min-width: 230px;
  flex-wrap: nowrap;
}

.admin-app .organization-account-actions button {
  min-width: 86px;
}

.organization-rate-cell {
  display: grid;
  gap: 3px;
}

.organization-rate-cell strong {
  color: #12366d;
}

.organization-rate-cell small {
  color: #13745a;
  font-size: 11px;
  font-weight: 800;
}

.admin-app .organization-shared-writer-form {
  align-items: start;
}

.admin-app .organization-shared-writer-form .field label {
  min-height: 20px;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  line-height: 20px;
}

.admin-app .organization-shared-writer-form .field select,
.admin-app .organization-shared-writer-form .field input {
  width: 100%;
  min-height: 46px;
}

.admin-app .organization-shared-writer-form > button {
  min-height: 46px;
  align-self: start;
  margin-top: 28px;
}

@media (max-width: 760px) {
  .admin-app .modal-card.organization-account-modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .admin-app .organization-account-modal button:not(.password-eye) {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 14px;
    white-space: normal;
  }

  .admin-app .organization-account-tabs button:not(.password-eye) {
    width: auto;
    min-width: 148px;
    white-space: nowrap;
  }

  .admin-app .organization-account-actions {
    min-width: 190px;
    flex-direction: column;
  }

  .admin-app .organization-shared-writer-form > button {
    margin-top: 0;
  }
}

/* Registrar mobile workspace: isolated from the generic administrator mobile UI. */
@media (max-width: 760px) {
  .mobile-registrar-app {
    --registrar-blue: #1768e5;
    --registrar-blue-dark: #0f4fb7;
    --registrar-ink: #102342;
    --registrar-muted: #6e7f98;
    --registrar-line: #dbe6f5;
    --registrar-surface: #ffffff;
    background: #f3f7fc;
  }

  .mobile-registrar-app .mobile-customer-main {
    background:
      radial-gradient(circle at 100% 0, rgba(50, 128, 236, .1), transparent 34%),
      #f3f7fc;
  }

  .mobile-registrar-app .mobile-design-page {
    min-height: calc(100vh - 72px);
    padding-bottom: 98px;
  }

  .mobile-registrar-app .mobile-design-content {
    display: grid;
    gap: 14px;
    padding: 14px 14px 28px;
  }

  .mobile-registrar-app .mobile-design-topbar {
    border-bottom: 1px solid rgba(219, 230, 245, .9);
    color: var(--registrar-ink);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
  }

  .mobile-registrar-app .mobile-role-tabbar {
    border-top: 1px solid #dce6f4;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 28px rgba(24, 58, 103, .08);
  }

  .mobile-registrar-app .mobile-role-tabbar button {
    min-width: 0;
    color: #718096;
  }

  .mobile-registrar-app .mobile-role-tabbar button.active {
    color: var(--registrar-blue);
  }

  .mobile-registrar-app .mobile-role-tabbar button.active::before {
    content: "";
    width: 22px;
    height: 3px;
    position: absolute;
    top: 0;
    border-radius: 0 0 4px 4px;
    background: var(--registrar-blue);
  }

  .mobile-registrar-hero {
    display: grid;
    gap: 18px;
    padding: 22px;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, #0f4eb3 0%, #1977ef 68%, #48a2ff 100%);
    box-shadow: 0 16px 34px rgba(20, 93, 196, .24);
  }

  .mobile-registrar-hero::after {
    content: "";
    width: 145px;
    height: 145px;
    position: absolute;
    right: -50px;
    top: -68px;
    border: 24px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
  }

  .mobile-registrar-hero-user {
    min-width: 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
  }

  .mobile-registrar-hero-avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 28px rgba(6, 48, 108, .22);
  }

  .mobile-registrar-hero-avatar .mobile-default-avatar {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    box-shadow: none;
  }

  .mobile-registrar-hero span,
  .mobile-registrar-hero p {
    color: rgba(255, 255, 255, .82);
  }

  .mobile-registrar-hero span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
  }

  .mobile-registrar-hero h1 {
    margin: 6px 0 4px;
    color: #fff;
    font-size: 22px;
    line-height: 1.35;
  }

  .mobile-registrar-hero p {
    margin: 0;
    font-size: 13px;
  }

  .mobile-registrar-hero button {
    min-height: 46px;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 13px;
    color: #0f54b9;
    font-size: 15px;
    font-weight: 900;
    background: #fff;
    box-shadow: 0 8px 22px rgba(6, 48, 108, .2);
  }

  .mobile-registrar-hero button svg,
  .mobile-registrar-shortcuts i svg,
  .mobile-registrar-file-card > i svg,
  .mobile-registrar-download > i svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-registrar-hero button svg {
    width: 18px;
    height: 18px;
  }

  .mobile-registrar-app .mobile-design-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-registrar-app .mobile-design-stats article {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--registrar-line);
    border-radius: 14px;
    background: #fff;
  }

  .mobile-registrar-app .mobile-design-stats strong {
    overflow-wrap: anywhere;
    font-size: 18px;
  }

  .mobile-registrar-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-registrar-shortcuts button {
    min-width: 0;
    min-height: 126px;
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    gap: 5px 10px;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--registrar-line);
    border-radius: 16px;
    text-align: left;
    background: #fff;
    box-shadow: 0 7px 18px rgba(22, 61, 111, .06);
  }

  .mobile-registrar-shortcuts i {
    width: 42px;
    height: 42px;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #1768e5;
    font-style: normal;
    font-weight: 900;
    background: #eaf2ff;
  }

  .mobile-registrar-shortcuts i.orange { color: #b86700; background: #fff1dc; }
  .mobile-registrar-shortcuts i.purple { color: #6e49d8; background: #f0ebff; }
  .mobile-registrar-shortcuts i.green { color: #087e5a; background: #e4f8f0; }
  .mobile-registrar-shortcuts b { color: var(--registrar-ink); font-size: 15px; }
  .mobile-registrar-shortcuts span {
    display: block;
    overflow: visible;
    color: var(--registrar-muted);
    font-size: 11px;
    line-height: 1.4;
    white-space: normal;
    text-overflow: clip;
    word-break: break-all;
  }

  .mobile-registrar-section-title,
  .mobile-registrar-card-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-registrar-section-title h2,
  .mobile-registrar-card-heading h2 {
    margin: 0;
    color: var(--registrar-ink);
    font-size: 17px;
  }

  .mobile-registrar-section-title p {
    margin: 3px 0 0;
    color: var(--registrar-muted);
    font-size: 12px;
  }

  .mobile-registrar-section-title button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #bed5f6;
    border-radius: 10px;
    color: var(--registrar-blue);
    font-weight: 800;
    background: #edf5ff;
  }

  .mobile-registrar-order-list,
  .mobile-registrar-file-list,
  .mobile-registrar-download-list {
    display: grid;
    gap: 10px;
  }

  .mobile-registrar-order-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--registrar-line);
    border-left: 4px solid #77aef7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(24, 59, 105, .06);
  }

  .mobile-registrar-order-card.has-dispute { border-left-color: #ec5965; }

  .mobile-registrar-order-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-registrar-order-head > div {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .mobile-registrar-order-head b { color: #174c91; font-size: 14px; }
  .mobile-registrar-order-head small { color: #8a99ad; font-size: 11px; }
  .mobile-registrar-order-head > span,
  .mobile-registrar-detail-hero > em,
  .mobile-registrar-card-heading > span {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    color: #1768e5;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    background: #eaf2ff;
  }

  .mobile-registrar-order-head > span.danger,
  .mobile-registrar-detail-hero > em.danger,
  .mobile-registrar-card-heading > span.danger { color: #c93344; background: #fff0f2; }
  .mobile-registrar-order-head > span.warning,
  .mobile-registrar-detail-hero > em.warning { color: #a96300; background: #fff2dd; }
  .mobile-registrar-order-head > span.success,
  .mobile-registrar-detail-hero > em.success { color: #087d59; background: #e7f8f1; }
  .mobile-registrar-order-head > span.muted,
  .mobile-registrar-detail-hero > em.muted { color: #66758a; background: #edf1f6; }

  .mobile-registrar-order-card h3 {
    margin: 12px 0 6px;
    overflow-wrap: anywhere;
    color: var(--registrar-ink);
    font-size: 16px;
    line-height: 1.5;
  }

  .mobile-registrar-order-card > p {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--registrar-muted);
    font-size: 12px;
  }

  .mobile-registrar-order-money,
  .mobile-registrar-detail-money {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }

  .mobile-registrar-order-money span,
  .mobile-registrar-detail-money > div {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 9px;
    border-radius: 10px;
    color: #7b8a9f;
    font-size: 10px;
    background: #f5f8fc;
  }

  .mobile-registrar-order-money b,
  .mobile-registrar-detail-money b {
    overflow-wrap: anywhere;
    color: #18385f;
    font-size: 13px;
  }

  .mobile-registrar-order-actions,
  .mobile-registrar-detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 14px;
  }

  .mobile-registrar-order-actions button,
  .mobile-registrar-detail-actions button,
  .mobile-registrar-import button {
    min-width: 0;
    min-height: 42px;
    border: 1px solid var(--registrar-blue);
    border-radius: 11px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    background: var(--registrar-blue);
  }

  .mobile-registrar-order-actions button.secondary,
  .mobile-registrar-detail-actions button.secondary,
  .mobile-registrar-import button.secondary {
    color: #195aad;
    border-color: #bfd4f2;
    background: #f4f8fe;
  }

  .mobile-registrar-order-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
  }

  .mobile-registrar-order-tools > button {
    min-height: 46px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
    background: var(--registrar-blue);
  }

  .mobile-registrar-filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 1px 0 5px;
    scrollbar-width: none;
  }

  .mobile-registrar-filter-bar::-webkit-scrollbar { display: none; }

  .mobile-registrar-filter-bar button {
    min-width: max-content;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid #d6e2f2;
    border-radius: 999px;
    color: #5d708b;
    font-size: 12px;
    font-weight: 800;
    background: #fff;
  }

  .mobile-registrar-filter-bar button span {
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #6c7d93;
    font-size: 10px;
    background: #edf2f8;
  }

  .mobile-registrar-filter-bar button.active {
    color: #fff;
    border-color: var(--registrar-blue);
    background: var(--registrar-blue);
  }

  .mobile-registrar-filter-bar button.active span { color: #fff; background: rgba(255, 255, 255, .2); }

  .mobile-registrar-list-note {
    margin: 0;
    padding: 0 6px;
    color: #7e8da2;
    font-size: 11px;
    line-height: 1.65;
    text-align: center;
  }

  .mobile-registrar-recognition,
  .mobile-registrar-import,
  .mobile-registrar-form-section {
    min-width: 0;
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--registrar-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(24, 59, 105, .05);
  }

  .mobile-registrar-recognition > div,
  .mobile-registrar-import > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mobile-registrar-recognition h2,
  .mobile-registrar-import h2 {
    margin: 0;
    color: var(--registrar-ink);
    font-size: 16px;
  }

  .mobile-registrar-recognition > div > button {
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: var(--registrar-blue);
  }

  .mobile-registrar-recognition textarea,
  .mobile-registrar-import select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cfdced;
    border-radius: 11px;
    color: var(--registrar-ink);
    background: #f8fafd;
  }

  .mobile-registrar-recognition textarea { min-height: 130px; padding: 12px; line-height: 1.55; resize: vertical; }
  .mobile-registrar-recognition p,
  .mobile-registrar-import p { margin: 0; color: var(--registrar-muted); font-size: 11px; line-height: 1.55; }
  .mobile-registrar-import > div:last-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .mobile-registrar-order-form {
    display: grid;
    gap: 14px;
    padding: 0;
    background: transparent;
  }

  .mobile-registrar-form-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 11px;
    border-bottom: 1px solid #e6edf6;
  }

  .mobile-registrar-form-title i {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    font-style: normal;
    font-weight: 900;
    background: var(--registrar-blue);
  }

  .mobile-registrar-form-title h2 { margin: 0; color: var(--registrar-ink); font-size: 16px; }
  .mobile-registrar-form-title p { margin: 2px 0 0; color: var(--registrar-muted); font-size: 11px; }

  .mobile-registrar-app .mobile-registrar-order-form label > span {
    color: #334967;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-registrar-app .mobile-registrar-order-form input,
  .mobile-registrar-app .mobile-registrar-order-form select,
  .mobile-registrar-app .mobile-registrar-order-form textarea,
  .mobile-registrar-import select {
    min-height: 46px;
    font-size: 14px;
  }

  .mobile-registrar-app .mobile-registrar-order-form textarea { padding: 12px; }

  .mobile-registrar-price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-registrar-price-grid input { min-width: 0; }

  .mobile-registrar-rule-note {
    display: grid;
    gap: 4px;
    padding: 11px 12px;
    border: 1px solid #f2d9a8;
    border-radius: 11px;
    color: #8a5b0c;
    background: #fff8e9;
  }

  .mobile-registrar-rule-note b { font-size: 12px; }
  .mobile-registrar-rule-note span { font-size: 11px; line-height: 1.55; }

  .mobile-registrar-submit {
    min-height: 52px;
    position: sticky;
    bottom: 74px;
    z-index: 5;
    border: 0;
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    background: linear-gradient(135deg, #1976ed, #0c56bd);
    box-shadow: 0 13px 28px rgba(16, 88, 190, .28);
  }

  .mobile-registrar-file-card,
  .mobile-registrar-download {
    width: 100%;
    min-width: 0;
    min-height: 74px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--registrar-line);
    border-radius: 14px;
    text-align: left;
    background: #fff;
  }

  .mobile-registrar-file-card > i,
  .mobile-registrar-download > i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #1768e5;
    font-style: normal;
    font-weight: 900;
    background: #eaf2ff;
  }

  .mobile-registrar-file-card > i.red { color: #c63443; background: #fff0f2; }
  .mobile-registrar-file-card > i.green { color: #087d59; background: #e6f8f1; }
  .mobile-registrar-file-card > i.purple { color: #6949ca; background: #f0ebff; }
  .mobile-registrar-file-card > span,
  .mobile-registrar-download > span { min-width: 0; display: grid; gap: 4px; }
  .mobile-registrar-file-card b,
  .mobile-registrar-download b { overflow-wrap: anywhere; color: var(--registrar-ink); font-size: 13px; line-height: 1.45; }
  .mobile-registrar-file-card small,
  .mobile-registrar-download small { overflow-wrap: anywhere; color: var(--registrar-muted); font-size: 10px; line-height: 1.4; }
  .mobile-registrar-file-card em,
  .mobile-registrar-download em { color: var(--registrar-blue); font-size: 11px; font-style: normal; font-weight: 900; white-space: nowrap; }

  .mobile-registrar-file-card {
    align-items: start;
    gap: 12px;
    padding: 14px;
  }

  .mobile-registrar-file-card > i {
    margin-top: 2px;
  }

  .mobile-registrar-file-card > em {
    align-self: start;
    padding-top: 4px;
  }

  .mobile-registrar-file-main {
    min-width: 0;
    display: grid;
    gap: 8px;
  }

  .mobile-registrar-file-head {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }

  .mobile-registrar-file-head b {
    min-width: 0;
    flex: 1 1 auto;
    color: var(--registrar-ink);
    font-size: 14px;
    line-height: 1.45;
  }

  .mobile-registrar-file-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
  }

  .mobile-registrar-file-status.normal {
    color: #1768e5;
    background: #eaf2ff;
  }

  .mobile-registrar-file-status.danger {
    color: #c63443;
    background: #fff0f2;
  }

  .mobile-registrar-file-status.urgent {
    color: #9a4b00;
    background: #fff3da;
  }

  .mobile-registrar-file-meta {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .mobile-registrar-file-meta > span {
    min-width: 0;
    display: block;
    padding: 8px;
    border: 1px solid #e1eaf7;
    border-radius: 11px;
    background: #f8fbff;
  }

  .mobile-registrar-file-meta small {
    display: block;
    margin: 0 0 4px;
    color: var(--registrar-muted);
    font-size: 10px;
    line-height: 1.2;
  }

  .mobile-registrar-file-meta strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--registrar-ink);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 900;
  }

  @media (max-width: 380px) {
    .mobile-registrar-file-head {
      display: grid;
    }

    .mobile-registrar-file-status {
      justify-self: start;
    }

    .mobile-registrar-file-meta {
      grid-template-columns: 1fr;
    }
  }

  .mobile-registrar-detail-hero {
    min-width: 0;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(135deg, #123f81, #176adf);
  }

  .mobile-registrar-detail-hero > div { min-width: 0; }
  .mobile-registrar-detail-hero span { color: #acd0ff; font-size: 12px; font-weight: 800; }
  .mobile-registrar-detail-hero h1 { margin: 7px 0 6px; overflow-wrap: anywhere; color: #fff; font-size: 18px; line-height: 1.45; }
  .mobile-registrar-detail-hero p { margin: 0; overflow-wrap: anywhere; color: #d6e7ff; font-size: 11px; }
  .mobile-registrar-detail-hero > em { color: #fff; background: rgba(255, 255, 255, .16); }

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

  .mobile-registrar-detail-grid > div {
    min-width: 0;
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid var(--registrar-line);
    border-radius: 12px;
    background: #fff;
  }

  .mobile-registrar-detail-grid span { color: var(--registrar-muted); font-size: 10px; }
  .mobile-registrar-detail-grid b { overflow-wrap: anywhere; color: var(--registrar-ink); font-size: 13px; }

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

  .mobile-registrar-quota-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 11px;
  }

  .mobile-registrar-quota-row span {
    min-width: 0;
    padding: 8px 5px;
    border-radius: 9px;
    color: #245184;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    background: #edf5ff;
  }

  .mobile-registrar-notes { margin: 12px 0 0; }
  .mobile-registrar-notes dt { margin-top: 10px; color: #657790; font-size: 11px; font-weight: 800; }
  .mobile-registrar-notes dd { margin: 4px 0 0; overflow-wrap: anywhere; color: #203d63; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }

  .mobile-registrar-detail-actions {
    position: sticky;
    bottom: 76px;
    z-index: 5;
    padding: 10px;
    border: 1px solid rgba(209, 223, 241, .9);
    border-radius: 14px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 12px 26px rgba(26, 61, 105, .16);
  }

  .mobile-registrar-profile-hero {
    color: #fff;
    background: linear-gradient(135deg, #123f81, #176adf);
  }

  .mobile-registrar-profile-hero .mobile-profile-v2-avatar {
    display: grid;
    place-items: center;
    padding: 3px;
    overflow: hidden;
    background: #fff;
  }

  .mobile-registrar-profile-hero .mobile-profile-v2-avatar .mobile-default-avatar {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    box-shadow: none;
  }

  .mobile-registrar-profile-hero span,
  .mobile-registrar-profile-hero p { color: #d7e8ff; }
  .mobile-registrar-profile-hero h1 { color: #fff; }
  .mobile-registrar-profile-hero > em { color: #fff; background: rgba(255, 255, 255, .16); }

  .mobile-registrar-writer-list {
    display: grid;
    gap: 11px;
  }

  .mobile-registrar-writer-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--registrar-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(24, 59, 105, .06);
  }

  .mobile-registrar-writer-head {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
  }

  .mobile-registrar-writer-head > i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #1768e5;
    font-style: normal;
    font-weight: 900;
    background: #eaf2ff;
  }

  .mobile-registrar-writer-head > div { min-width: 0; }
  .mobile-registrar-writer-head h2 { margin: 0; overflow-wrap: anywhere; color: var(--registrar-ink); font-size: 15px; }
  .mobile-registrar-writer-head p { margin: 3px 0 0; overflow-wrap: anywhere; color: var(--registrar-muted); font-size: 10px; }
  .mobile-registrar-writer-head > span { padding: 5px 8px; border-radius: 999px; color: #a85f00; font-size: 10px; font-weight: 900; background: #fff1dc; white-space: nowrap; }

  .mobile-registrar-writer-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 14px;
  }

  .mobile-registrar-writer-metrics span {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 9px 5px;
    border-radius: 9px;
    color: var(--registrar-muted);
    font-size: 9px;
    text-align: center;
    background: #f4f7fb;
  }

  .mobile-registrar-writer-metrics b { color: #173b69; font-size: 14px; }

  @media (max-width: 360px) {
    .mobile-registrar-app .mobile-design-content { padding-inline: 10px; }
    .mobile-registrar-shortcuts { grid-template-columns: 1fr; }
    .mobile-registrar-shortcuts button { min-height: 92px; }
    .mobile-registrar-price-grid { grid-template-columns: 1fr; }
  }
}
