.account-entry, .customer-dialog button, .customer-dialog a {
  appearance: none;
  border: 1px solid #415065;
  border-radius: 9px;
  padding: 8px 12px;
  color: #f1f4f9;
  background: #1d2633;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.account-entry { white-space: nowrap; font-size: 13px; }
.customer-dialog {
  box-sizing: border-box;
  width: min(540px, calc(100vw - 24px));
  max-height: min(85vh, calc(100dvh - 28px));
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #435166;
  border-radius: 16px;
  padding: clamp(12px, 4vw, 24px);
  background: #151c26;
  color: #f1f4f9;
  color-scheme: dark;
  line-height: 1.5;
}
.customer-dialog::backdrop { background: rgb(3 6 10 / 76%); }
.customer-dialog [hidden] { display: none !important; }
.customer-heading, .customer-user, .customer-design-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.customer-heading, .customer-user { justify-content: space-between; }
.customer-heading h2 { font-size: 21px; margin: 0; }
.customer-user [data-email] { overflow-wrap: anywhere; }
.customer-dialog form { display: grid; gap: 8px; margin: 12px 0; }
.customer-dialog input {
  display: block; box-sizing: border-box; width: 100%; min-height: 42px; margin-top: 4px;
  padding: 8px 10px; border: 1px solid #415065; border-radius: 8px; background: #0d131b; color: inherit; font: inherit;
}
.customer-dialog :is(button, input, a):focus-visible, .account-entry:focus-visible {
  outline: 2px solid #d7ff43; outline-offset: 2px;
}
.customer-dialog .customer-primary { background: #d7ff43; border-color: #d7ff43; color: #111604; font-weight: 700; }
.customer-dialog button:disabled { opacity: .55; cursor: not-allowed; }
.customer-feedback, .customer-count, .customer-note { font-size: 13px; color: #bdc8d7; }
.customer-feedback:empty { display: none; }
.customer-feedback.customer-error { color: #ffad9e; }
.customer-designs { display: grid; gap: 8px; list-style: none; padding: 0; }
.customer-designs li { padding: 11px; border: 1px solid #354256; border-radius: 9px; overflow-wrap: anywhere; }
.customer-designs small { display: block; color: #bdc8d7; margin: 2px 0 7px; }
.customer-design-actions { font-size: 13px; }
.customer-qr { margin-top: 16px; text-align: center; }
.customer-qr img { display: block; width: min(220px, 100%); height: auto; margin: 0 auto; background: white; border-radius: 8px; }
.customer-qr p { margin: 10px 0; font-size: 13px; }
.customer-qr strong { letter-spacing: .15em; font-size: 18px; }
.customer-qr a { display: inline-block; }
@media (max-width: 530px) {
  .site-header:has(.account-entry) .site-header-actions { flex-wrap: wrap; justify-content: flex-end; gap: 5px; flex-shrink: 1; }
  .site-header:has(.account-entry) .catalog-label { display: none; }
  .account-entry { padding: 6px 8px; }
}

/* Customer order snapshots share the read-only viewer. */
.order-3d-dialog { width: min(1280px, 96vw); max-width: 96vw; height: min(850px, 94dvh); max-height: 94dvh; padding: 16px; border: 1px solid #526079; border-radius: 14px; background: #141b26; color: #e9eef7; }
.order-3d-dialog[open] { display: flex; flex-direction: column; gap: 12px; }
.order-3d-dialog::backdrop { background: #000b; }
.preview-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.preview-header h2, .preview-parts h3 { margin: 0 0 8px; }
.preview-header .share-note { margin: 0; }
.preview-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; flex: 1; min-height: 0; gap: 12px; }
.preview-stage { position: relative; min-height: 180px; overflow: hidden; border-radius: 8px; background: radial-gradient(ellipse at top, #26323e, #090e16); }
#previewCanvas { display: block; width: 100%; height: 100%; touch-action: none; }
#previewStatus { position: absolute; top: 12px; left: 16px; right: 16px; pointer-events: none; white-space: pre-wrap; }
.preview-parts { overflow: auto; padding: 10px; background: #1c2533; border-radius: 8px; }
.preview-part { display: grid; grid-template-columns: 18px 1fr; width: 100%; gap: 6px 8px; text-align: left; padding: 9px; margin: 5px 0; border: 1px solid #405066; border-radius: 6px; background: #141b26; color: inherit; cursor: pointer; }
.preview-part small { grid-column: 2; overflow-wrap: anywhere; color: #a6b4c8; }
.preview-part[aria-pressed="true"] { border-color: #7ed7ff; background: #203b4f; }
.preview-chip { width: 16px; height: 16px; border: 1px solid #ffffff60; border-radius: 50%; }
.preview-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#previewExplode { flex: 1; min-width: 140px; }
.preview-toolbar output { min-width: 40px; }
@media (max-width: 700px) { .preview-layout { grid-template-columns: 1fr; grid-template-rows: minmax(180px, 1fr) 160px; } .preview-toolbar .share-note { display: none; } .order-3d-dialog { padding: 10px; } }
.customer-tabs{display:flex;gap:8px;margin:16px 0}.customer-tabs [aria-selected=true]{border-color:#d7ff43;color:#d7ff43}.customer-order-parts{display:grid;gap:8px;list-style:none;padding:0}.customer-order-parts li{display:flex;align-items:center;gap:8px}.customer-order-parts i{width:16px;height:16px;border-radius:50%;border:1px solid #ffffff66;flex-shrink:0}.customer-dialog summary{cursor:pointer;padding:12px 0}.order-3d-dialog{box-sizing:border-box}.order-3d-dialog button{font:inherit}.order-3d-dialog[open]{max-width:calc(100vw - 20px)}

.account-page-header{display:flex;justify-content:space-between;gap:15px;max-width:1080px;margin:25px auto;padding:0 20px;color:#acbdce}.account-page-header a{color:#b9e9ff}.customer-dialog.customer-page{position:relative;inset:auto;width:min(1080px,calc(100% - 32px));max-height:none;margin:20px auto 60px;box-shadow:none}.customer-page .customer-tabs{position:sticky;top:0;background:#16212c;padding:12px 0;z-index:1;flex-wrap:wrap}.customer-page .customer-designs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:16px}.customer-history{font-size:12px;line-height:1.8;border-top:1px solid #435365;margin-top:14px;color:#a9bdcf}.customer-page [data-orders-panel]>p{max-width:700px}.customer-page .customer-user{margin-bottom:20px}

.customer-profile{margin:12px 0;color:var(--muted,#a3b4c4)}.customer-profile summary{cursor:pointer;padding:10px 0}.customer-profile small{overflow-wrap:anywhere}
.customer-save-only{max-width:480px!important}.customer-save-only .customer-profile,.customer-save-only .customer-user,.customer-save-only .customer-tabs,.customer-save-only [data-count],.customer-save-only [data-private-panel]>.customer-designs,.customer-save-only [data-private-panel]>.customer-note{display:none!important}.customer-save-only [data-save]{display:grid;gap:10px}.customer-save-only [data-save][hidden]{display:none}.customer-save-only [data-open-library]{margin-top:14px;background:transparent;color:#aac1d3}.customer-dialog:not(.customer-save-only) [data-open-library]{display:none}
