.customer-status {
  --st-ink: #142d4d;
  --st-sub: #586b83;
  --st-blue: #1857df;
  max-width: 744px;
  margin: 16px auto;
  border: 1px solid #e0e4e9;
  border-radius: 16px;
  color: var(--st-ink);
  background: white;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}
.customer-status :is(h1, h2, h3, p, ol, hr) {
  margin: 0;
}
.customer-status h1 {
  font-size: 24px;
}
.customer-status h2 {
  font-size: 18px;
}
.customer-status h3,
.customer-status .st-current h2 {
  font-size: 20px;
}
.customer-status :is(h1, h2, h3) {
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: inherit;
}
.customer-status small {
  font-size: 12px;
  color: var(--st-sub);
  display: block;
}
.st-hero,
.st-content,
.st-current,
.st-card,
.st-navy,
.st-muted,
.st-pale,
.st-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.customer-status .st-hero {
  padding: 16px;
  background: #eaf2fc;
  border-radius: 16px 16px 0 0;
}
.st-brand,
.st-current summary b {
  color: var(--st-blue) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.st-line,
.st-row,
.st-iconline,
.st-current summary {
  display: flex;
  align-items: center;
  gap: 12px;
}
.st-line,
.st-row,
.st-current summary {
  justify-content: space-between;
}
.st-hero > .st-line {
  color: var(--st-sub);
  font-size: 14px;
}
.st-current,
.st-card,
.st-navy,
.st-muted,
.st-pale {
  padding: 16px;
  border-radius: 12px;
}
.st-current {
  background: #fff;
  border-radius: 16px;
}
.st-current p,
.st-muted p,
.st-pale p {
  color: var(--st-sub);
  font-size: 14px;
}
.st-iconline > i {
  display: grid;
  place-items: center;
  height: 54px;
  width: 54px;
  border-radius: 12px;
  background: #edf4ff;
  color: var(--st-blue);
  flex: none;
}
.st-current progress {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: #e1e9f3;
  overflow: hidden;
  accent-color: var(--st-blue);
}
.st-current progress::-webkit-progress-bar {
  background: #e1e9f3;
}
.st-current progress::-webkit-progress-value {
  background: var(--st-blue);
  border-radius: 999px;
}
.customer-status summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--st-blue);
  font-weight: 600;
}
.st-current summary {
  font-size: 12px;
}
.st-current summary span {
  color: var(--st-sub);
  display: flex;
  align-items: center;
  gap: 4px;
}
.st-current ol {
  padding: 10px 0 0;
  list-style: none;
}
.st-current li {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  padding: 3px 0;
}
.st-current li[aria-current] {
  font-weight: 700;
  color: var(--st-blue);
}
.st-content {
  padding: 16px;
  gap: 20px;
}
.st-card {
  border: 1px solid #e1e5ea;
}
.st-row {
  align-items: baseline;
}
.st-row span {
  font-size: 14px;
  color: var(--st-sub);
}
.st-row strong {
  font-size: 14px;
  text-align: right;
  overflow-wrap: anywhere;
}
.customer-status hr {
  width: 100%;
  border: none;
  border-top: 1px solid #d7e1ec;
}
.st-navy {
  background: #142d4d;
  color: white;
  border-radius: 16px;
}
.st-navy :is(small, span) {
  color: #bed0e9;
}
.st-navy small {
  font-size: 13px;
}
.st-navy hr {
  border-color: #405b7c;
}
.st-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.st-grid b,
.st-window,
.st-pale output {
  display: block;
}
.st-window,
.st-code,
.st-pale output {
  font-size: 24px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.st-outline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: white;
  border: 1px solid #d7dce3;
  border-radius: 8px;
  font-size: 13px;
}
.st-muted {
  background: #f5f8fc;
  font-size: 14px;
  gap: 5px;
}
.st-pale {
  background: #edf4fc;
}
.st-pale svg,
.st-pale output {
  color: var(--st-blue);
}
.st-editor[hidden] {
  display: none;
}
.st-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.st-photos > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 70px;
  background: #f1f5fa;
  border-radius: 8px;
  padding: 5px;
  gap: 4px;
  font-size: 12px;
  text-align: center;
}
.st-photos .photo-thumb {
  border: 0;
  padding: 0;
  width: 100%;
}
.st-photos img {
  width: 100%;
  height: auto;
  max-height: 130px;
  object-fit: cover;
}
.st-photos span {
  color: var(--st-sub);
}
.st-refund {
  color: #586b83;
  font-size: 13px;
  text-align: center;
}
.st-refund summary {
  font-size: 13px;
  color: inherit;
}
.st-card .panel,
.st-content > .panel {
  box-shadow: none;
  padding: 16px;
}
.customer-status .panel h2 {
  font-size: 18px;
}
.st-content :is(button[data-act], button[data-edit], button[data-remove]) {
  border: 1px solid #d7dce3;
  border-radius: 8px;
  padding: 7px 12px;
  background: white;
  color: #142d4d;
}
.st-content button.primary,
.st-content [data-act='open-confirm'] {
  background: #1857df;
  color: white;
}
.customer-status .feedback:empty {
  display: none;
}
@media (max-width: 768px) {
  .customer-status {
    margin: 12px;
  }
  .customer-status .st-content {
    gap: 16px;
  }
}
@media (max-width: 380px) {
  .customer-status {
    margin: 8px;
  }
  .st-line,
  .st-row,
  .st-iconline {
    gap: 6px;
  }
  .st-grid {
    gap: 8px;
  }
  .st-content .field-grid {
    grid-template-columns: 1fr;
  }
}
.customer-status .paid-details > .panel h2 {
  display: block;
}
.customer-status .paid-details[open] summary {
  margin-bottom: 12px;
}
.customer-status .st-navy > .btn {
  width: 100%;
  justify-content: center;
}
.customer-status .st-card details + details {
  border: 0;
}
.status-contact {
  max-width: 744px;
  margin: 12px auto 24px;
  padding: 0 16px;
}
.st-tracking,
.st-question,
.st-question label,
#clinic-confirm:not([hidden]),
#inline-confirm:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.st-tracking label,
.st-question label {
  font-size: 14px;
  color: #475569;
}
.st-question textarea,
.st-tracking :is(input, select),
#clinic-confirm input:not([type='checkbox']) {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8dce2;
  border-radius: 8px;
  font: inherit;
}
.st-question textarea {
  min-height: 90px;
}
.customer-status .st-question button,
.st-tracking button,
#confirm,
.customer-status [data-act='open-confirm'],
.customer-status [data-act='confirm'] {
  background: #171717;
  color: white;
  border-color: #171717;
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
}
.customer-status button:disabled {
  opacity: 0.5;
}
.st-photos svg {
  color: #8ba7ca;
}
.customer-status dt,
.customer-status dd {
  overflow-wrap: anywhere;
}
.st-editor label:not(.checkline) {
  font-size: 14px;
  color: #475569;
}
.st-editor > label > input:not([type='checkbox']) {
  display: block;
  width: 100%;
  margin-top: 4px;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #d8dce2;
  border-radius: 8px;
  font: inherit;
}
.st-editor fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}
.st-editor fieldset label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-right: 14px;
}
.st-editor legend {
  font-size: 14px;
  margin-bottom: 6px;
}
.st-editor input[type='radio'] {
  accent-color: #1857df;
}
.preview-controls { display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:12px auto;padding:12px 16px }
.preview-controls label {display:grid;gap:3px;font-size:.85rem}
.preview-controls select {max-width:100%}
.preview-controls .actions {margin:0;flex-wrap:wrap}
.preview-controls small {flex-basis:100%}
