.account-page .float-toolbar {
  display: none;
}

.mall-footer {
  max-width: 1360px;
  margin: 0 auto 32px;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.mall-footer div {
  display: grid;
  gap: 6px;
}

.footer-icp {
  grid-column: 1 / -1;
  justify-items: center;
  text-align: center;
}

.mall-footer strong {
  color: var(--ink);
}

.skeleton {
  min-height: 260px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef3f0, #fff, #eef3f0);
  background-size: 220% 100%;
  animation: loading 1.2s linear infinite;
}

@keyframes loading {
  to {
    background-position: -220% 0;
  }
}

.account-main {
  max-width: 1360px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--green);
  text-decoration: none;
}

.account-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.account-sidebar,
.recommend-panel,
.orders-panel {
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-sidebar {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.account-sidebar section {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.account-sidebar section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.account-sidebar h2 {
  margin: 0 0 2px;
  font-size: 15px;
}

.account-sidebar a {
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}

.account-sidebar a.is-active,
.account-sidebar a:hover {
  color: var(--green);
  background: #eef8f4;
}

.order-center {
  display: grid;
  gap: 16px;
  max-width: 100%;
  min-width: 0;
}


.account-page [data-account-module].is-hidden {
  display: none !important;
}

.account-page .profile-placeholders.settings-panel {
  display: contents;
  padding: 0;
  border: 0;
  background: transparent;
}

.account-page .profile-placeholders.settings-panel > .settings-card {
  width: 100%;
}

.recommend-panel,
.orders-panel,
.profile-placeholders {
  padding: 14px;
}

.service-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-panel .section-title select,
.service-panel .section-title button,
.inline-form button,
.simple-module button,
.module-link {
  min-height: 36px;
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  background: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 96px;
  gap: 8px;
  margin-bottom: 12px;
}

.inline-form input {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

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

.service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.service-card div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.service-card strong,
.service-card span {
  overflow-wrap: anywhere;
}

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

.service-card b {
  color: var(--green);
}

.service-card button {
  width: fit-content;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.profile-placeholders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.profile-placeholders article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.simple-module {
  min-height: 132px;
}

.simple-module button,
.simple-module .module-link {
  width: fit-content;
  align-self: end;
}

.profile-placeholders span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.settings-panel {
  align-items: start;
}

.settings-card {
  align-content: start;
}

.settings-form,
.address-parser,
.managed-list {
  display: grid;
  gap: 10px;
}

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

.settings-form label,
.address-parser {
  min-width: 0;
}

.settings-form label {
  display: grid;
  gap: 5px;
}

.settings-form input,
.settings-form select,
.address-parser textarea,
.checkout-fields small {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.settings-form input,
.settings-form select {
  min-height: 38px;
  padding: 8px 10px;
  background: #fff;
}

.address-parser textarea {
  min-height: 74px;
  padding: 9px 10px;
  resize: vertical;
}

.settings-form button,
.address-parser button,
.managed-item button {
  min-height: 36px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.settings-form button {
  grid-column: 1 / -1;
}

.check-row {
  display: flex !important;
  gap: 8px !important;
  align-items: center;
}

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

.managed-list {
  margin-top: 4px;
}

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

.managed-item div {
  min-width: 0;
}

.managed-item strong,
.managed-item span {
  display: block;
  overflow-wrap: anywhere;
}

.managed-item button {
  min-height: 32px;
  padding: 6px 10px;
}

.managed-item button + button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.compact {
  padding: 14px;
}

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

.section-title h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

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

.order-title button,
.order-filters button,
.order-actions button,
.order-cell button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.recommend-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.recommend-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 112px auto auto auto;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.recommend-card:hover,
.product-card:hover,
.product-row:hover {
  border-color: rgba(201, 22, 35, 0.45);
}

.recommend-card img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 6px;
  background: #e7eeeb;
}

.recommend-card strong {
  min-height: 38px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
}

.recommend-card span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommend-card b,
.order-total {
  color: var(--red);
  font-weight: 800;
}

.order-total {
  display: grid;
  gap: 4px;
}

.order-total span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.order-tabs {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
}

.order-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  white-space: nowrap;
}

.order-tabs button.is-active {
  border-color: var(--green);
  color: var(--green);
  background: #eef8f4;
}

.order-tabs b {
  margin-left: 4px;
  color: var(--red);
}

.order-filters {
  display: grid;
  grid-template-columns: 150px 150px minmax(220px, 1fr) 86px 96px;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.order-filters label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.order-filters input {
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.filter-keyword {
  min-width: 0;
}

.order-table {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.order-table-head,
.order-grid-row {
  display: grid;
  grid-template-columns: minmax(270px, 2fr) 130px 130px 110px 120px 100px 124px;
  gap: 10px;
  align-items: center;
}

.order-table-head {
  padding: 10px 12px;
  border-radius: 8px;
  background: #edf3f0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.customer-order {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.order-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #f7faf8;
  color: var(--muted);
  font-size: 13px;
}

.order-meta-row strong {
  color: var(--blue);
}

.order-grid-row {
  padding: 12px;
  align-items: start;
}

.order-products {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.order-product {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.order-product img,
.detail-line img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  background: #e7eeeb;
}

.order-product strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.order-product span,
.order-cell span,
.detail-summary span,
.detail-line span,
.after-sales-list span {
  color: var(--muted);
  font-size: 13px;
}

.order-cell,
.order-actions,
.detail-summary,
.after-sales-list {
  display: grid;
  gap: 6px;
}

.order-status,
.invoice-status {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 8px;
  background: #edf3f0;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.order-status.pending_customer {
  background: #fff5e4;
  color: var(--amber);
}

.order-status.confirming,
.order-status.approved {
  background: #eaf2ff;
  color: var(--blue);
}

.order-status.cancelled,
.order-status.issue {
  background: #fdebea;
  color: var(--red);
}

.order-actions button {
  width: 100%;
  min-width: 0;
}

.order-actions button:disabled,
.order-cell button:disabled {
  cursor: not-allowed;
  color: #9aa7a3;
  background: #f4f6f5;
}


.compact-products {
  margin-top: 10px;
}

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

.account-pager {
  justify-content: flex-end;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  background: #fff;
}

.order-detail-drawer {
  width: min(560px, 100vw);
}

.detail-summary {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.detail-lines {
  display: grid;
  gap: 10px;
}

.detail-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-button {
  display: inline-grid;
  min-height: 38px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
}

.detail-main,


.settings-card-head button,
.asset-filter-tabs button {
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.asset-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asset-filter-tabs button.is-active {
  border-color: var(--red);
  background: #fff1f2;
  color: var(--red);
}

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

.wallet-coupon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e3d2b7;
  border-radius: 8px;
  background: #fffaf2;
}

.wallet-coupon.available {
  border-color: #efc2c8;
  background: #fff6f7;
}

.wallet-coupon.used,
.wallet-coupon.expired,
.wallet-coupon.voided {
  opacity: 0.68;
  background: #f8faf9;
  border-color: var(--line);
}

.coupon-main,
.coupon-balance {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.coupon-main strong,
.coupon-main span,
.coupon-balance span {
  overflow-wrap: anywhere;
}

.coupon-main span,
.coupon-balance span {
  color: var(--muted);
  font-size: 13px;
}

.coupon-balance {
  justify-items: end;
  text-align: right;
}

.coupon-balance b {
  color: var(--red);
  font-size: 22px;
}

.coupon-balance em {
  font-style: normal;
  color: var(--green);
  font-weight: 700;
}

@media (max-width: 720px) {
  .wallet-coupon {
    grid-template-columns: 1fr;
  }

  .coupon-balance {
    justify-items: start;
    text-align: left;
  }
}


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

.employee-summary > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.employee-summary span,
.employee-summary small,
.employee-row span,
.employee-request-row span {
  color: var(--muted);
}

.employee-form {
  margin-top: 12px;
}

.employee-list,
.employee-request-list {
  display: grid;
  gap: 10px;
}

.employee-row,
.employee-request-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(96px, 0.75fr)) minmax(220px, 1.4fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.employee-row > div,
.employee-request-row > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.employee-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.employee-actions button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.employee-request-list > strong {
  margin-top: 4px;
}

.employee-request-row {
  grid-template-columns: minmax(180px, 1fr) minmax(120px, auto);
}

@media (max-width: 900px) {
  .employee-summary,
  .employee-row,
  .employee-request-row {
    grid-template-columns: 1fr;
  }

  .employee-actions {
