.customer-page {
  min-height: 100vh;
  padding: 22px 10px;
  color: #070a12;
  background: #0d1120;
  font-family: "Kanit", "Noto Sans Thai", Tahoma, sans-serif;
}
.customer-shell {
  width: min(560px, 100%);
  min-height: calc(100vh - 44px);
  margin: 0 auto;
  padding: 22px 10px 30px;
  border-radius: 31px;
  background: #0d1120;
}
.customer-card {
  width: 100%;
  min-height: calc(100vh - 88px);
  padding: 31px 14px 36px;
  border-radius: 18px;
  color: #080b12;
  background: #fff;
}
.customer-image-wrap {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  overflow: hidden;
  margin: 0 auto 25px;
  border: 1.5px solid #d8dadd;
  border-radius: 18px;
  background: #fff;
}
.customer-image-wrap[hidden] { display: none !important; }
.customer-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.customer-image-placeholder { width: 100%; height: 100%; background: #fff; }
.customer-heading { margin: 0 3px 12px; }
.customer-heading h1 {
  margin: 0 0 4px;
  color: #05070c;
  font-size: clamp(22px, 5.7vw, 30px);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
.customer-heading h1 span { color: #55bd8e; }
.customer-meta { display: flex; flex-wrap: wrap; gap: 3px 6px; margin: 0; color: #191d25; font-size: 11px; line-height: 1.55; }
.meta-separator { color: #8a8e96; }
.customer-queue-section { margin-top: 11px; }
.customer-grid-header {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 62px 86px;
  align-items: center;
  gap: 4px;
  min-height: 43px;
  padding: 0 9px;
  border-radius: 11px;
  color: #fff;
  background: #202a4a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}
.customer-grid-header span:nth-child(3) { text-align: right; }
.customer-grid-header strong { justify-self: end; white-space: nowrap; font-size: 10px; font-weight: 800; }
.customer-grid-header strong em { color: #f28c96; font-style: normal; }
.customer-queue-list { width: 100%; min-width: 0; overflow: hidden; }
.customer-queue-row {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 62px;
  align-items: center;
  gap: 4px;
  min-height: 84px;
  padding: 12px 7px;
  border-bottom: 1px solid #dedede;
}
.customer-queue-row:last-child { border-bottom: 0; }
.customer-queue-row .queue-rank { color: #080b12; text-align: center; font-size: 18px; font-weight: 900; }
.customer-queue-row .queue-name { min-width: 0; color: #080b12; font-size: 15px; font-weight: 850; line-height: 1.35; overflow-wrap: anywhere; }
.customer-queue-row .queue-amount { min-width: 0; color: #080b12; text-align: right; font-size: 15px; font-weight: 900; line-height: 1.25; overflow-wrap: anywhere; }
.customer-queue-empty { display: grid; min-height: 100px; place-items: center; padding: 18px 10px; color: #969ba5; text-align: center; font-size: 12px; }
.customer-queue-empty.error { color: #d34e5b; }
@media (max-width: 430px) {
  .customer-page { padding: 8px 6px; }
  .customer-shell { min-height: calc(100vh - 16px); padding: 12px 7px 18px; border-radius: 25px; }
  .customer-card { min-height: calc(100vh - 52px); padding: 25px 9px 26px; border-radius: 16px; }
  .customer-image-wrap { width: 104px; height: 104px; margin-bottom: 22px; }
  .customer-heading { margin-inline: 2px; }
  .customer-heading h1 { font-size: clamp(20px, 5.8vw, 25px); }
  .customer-meta { font-size: 10px; gap: 2px 4px; }
  .customer-grid-header { grid-template-columns: 35px minmax(0,1fr) 54px 77px; gap: 3px; padding-inline: 7px; font-size: 10px; }
  .customer-grid-header strong { font-size: 9px; }
  .customer-queue-row { grid-template-columns: 35px minmax(0,1fr) 54px; gap: 3px; min-height: 76px; padding-inline: 5px; }
  .customer-queue-row .queue-rank { font-size: 16px; }
  .customer-queue-row .queue-name { font-size: 13px; }
  .customer-queue-row .queue-amount { font-size: 13px; }
}
@media (max-width: 350px) {
  .customer-card { padding-inline: 7px; }
  .customer-grid-header { grid-template-columns: 31px minmax(0,1fr) 48px 72px; gap: 2px; padding-inline: 5px; font-size: 9px; }
  .customer-grid-header strong { font-size: 8px; }
  .customer-queue-row { grid-template-columns: 31px minmax(0,1fr) 48px; }
}


/* Typography and narrow-screen polish; preserve the customer reference layout. */
.customer-heading h1 { font-weight: 700; letter-spacing: -.02em; }
.customer-heading h1 span { font-weight: 700; }
.customer-meta { font-size: 12px; font-weight: 400; line-height: 1.55; }
.customer-grid-header { font-size: 11px; font-weight: 600; }
.customer-grid-header strong { font-size: 10px; font-weight: 600; }
.customer-queue-row .queue-rank { font-size: 17px; font-weight: 700; }
.customer-queue-row .queue-name { font-size: 15px; font-weight: 600; }
.customer-queue-row .queue-amount { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.customer-queue-empty { font-size: 13px; font-weight: 400; }

@media (max-width: 430px) {
  .customer-heading h1 { font-size: clamp(20px, 5.6vw, 25px); font-weight: 700; }
  .customer-meta { font-size: 11px; }
  .customer-grid-header { font-size: 10px; font-weight: 600; }
  .customer-grid-header strong { font-size: 9px; font-weight: 600; white-space: normal; text-align: right; line-height: 1.2; }
  .customer-queue-row .queue-rank { font-size: 16px; font-weight: 700; }
  .customer-queue-row .queue-name { font-size: 14px; font-weight: 600; }
  .customer-queue-row .queue-amount { font-size: 14px; font-weight: 700; }
}
@media (max-width: 350px) {
  .customer-grid-header { grid-template-columns: 30px minmax(0, 1fr) 45px 68px; gap: 2px; padding-inline: 5px; font-size: 9px; }
  .customer-grid-header strong { font-size: 8.5px; }
  .customer-queue-row { grid-template-columns: 30px minmax(0, 1fr) 45px; gap: 2px; }
  .customer-queue-row .queue-name { font-size: 13px; }
  .customer-queue-row .queue-amount { font-size: 13px; }
}
