@font-face {
  font-family: Cabin;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://www.customew.com/cdn/fonts/cabin/cabin_n4.cefc6494a78f87584a6f312fea532919154f66fe.woff2") format("woff2");
}

@font-face {
  font-family: Cabin;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://www.customew.com/cdn/fonts/cabin/cabin_n7.255204a342bfdbc9ae2017bd4e6a90f8dbb2f561.woff2") format("woff2");
}

@font-face {
  font-family: "Merriweather Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("https://www.customew.com/cdn/fonts/merriweather_sans/merriweathersans_n8.7e843d21eaf44e8e1f404569a75e411047ab0d00.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink: #111;
  --muted: #686868;
  --paper: #fff;
  --soft: #f7f7f7;
  --line: #e5e5e5;
  --accent: #d60041;
  --button: #121212;
  --page-width: 1330px;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 15px/1.6 Cabin, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button, input, select, .panel, .paper, .side { min-width: 0; }
svg { flex-shrink: 0; vertical-align: middle; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: "Merriweather Sans", Cabin, sans-serif; font-weight: 800; line-height: 1.35; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 10px 16px; color: #fff; background: var(--button); }

.site-header { background: #fff; box-shadow: 0 0 8px #00000014; }
.masthead { display: flex; align-items: center; gap: 40px; max-width: var(--page-width); margin: auto; padding: 28px 20px 22px; }
.brand { display: flex; flex-shrink: 0; align-items: center; }
.brand img, .footer-brand img { display: block; width: 177px; height: 36px; object-fit: contain; }
.site-search { position: relative; flex: 1; max-width: 650px; margin: 0; }
.site-search input { min-height: 38px; padding: 8px 46px 8px 20px; border: 0; border-radius: 24px; background: #f5f5f5; font-size: 14px; }
.site-search button { position: absolute; inset: 0 4px 0 auto; display: grid; place-items: center; width: 38px; padding: 0; color: var(--ink); border: 0; border-radius: 50%; background: transparent; }
.header-actions { display: flex; gap: 20px; margin-left: auto; }
.header-action { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.header-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f8f8f8; }
.site-nav { display: flex; gap: 36px; max-width: var(--page-width); margin: auto; padding: 0 20px 18px; }
.site-nav a { font-size: 16px; font-weight: 700; }
.environment { padding: 7px 20px; color: #fff; background: #121212; text-align: center; font-size: 11px; letter-spacing: .06em; }
.environment span { margin-left: 14px; color: #dedede; }

main { display: flex; flex-direction: column; max-width: var(--page-width); margin: auto; padding: 0 20px 64px; }
.intro { padding: 25px 0 22px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 25px; color: var(--muted); font-size: 13px; }
.intro-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.eyebrow { margin: 0 0 7px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.intro h1 { margin: 0; font-size: clamp(28px, 3.5vw, 38px); letter-spacing: -.8px; }
.intro > p:last-child { max-width: 800px; margin: 12px 0 0; color: var(--muted); }
.quiet { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 16px; border: 1px solid #d9d9d9; border-radius: 8px; font-size: 13px; white-space: nowrap; }
.notice { margin: 0 0 16px; padding: 12px 16px; border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; background: #fff5f7; overflow-wrap: anywhere; }
.notice:empty { display: none; }
.sales-banner { margin: 0 0 20px; padding: 12px 16px; border: 1px solid #e8e3d9; border-radius: 6px; color: #65573d; background: #faf8f2; font-size: 13px; }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.session-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding: 20px 24px; background: #fafafa; }
.session-panel h2 { margin: 0; font-size: 18px; }
.session-panel p { margin: 4px 0; }
.primary, .quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; border: 1px solid var(--button); border-radius: 8px; color: #fff; background: var(--button); font-weight: 700; line-height: 1.45; text-align: center; text-decoration: none; }
.primary:hover { background: #333; border-color: #333; text-decoration: none; }
.primary:disabled { color: #707070; border-color: #e6e6e6; background: #e6e6e6; }
.workflow-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); align-items: start; gap: 24px; margin: 0; }
.section-title { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.section-title h2 { margin: 0 0 6px; font-size: 21px; }
.section-title p, .help, .small { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.step { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; margin-top: 1px; border-radius: 50%; color: #fff; background: var(--button); font-size: 12px; font-weight: 700; }
label { display: block; margin: 18px 0 7px; font-size: 14px; font-weight: 700; }
.editor label:first-of-type { margin-top: 0; }
input, select { display: block; width: 100%; max-width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d9d9d9; border-radius: 6px; color: var(--ink); background: #fff; }
input:disabled, select:disabled { color: #707070; background: var(--soft); }
input[type=file] { padding: 9px; background: #fafafa; font-size: 13px; }
input[type=file]::file-selector-button { margin-right: 10px; padding: 5px 10px; border: 1px solid #d9d9d9; border-radius: 4px; color: var(--ink); background: #fff; font: inherit; cursor: pointer; }
.editor input + .help, dialog input + .help, dialog select + .help { margin-top: 8px; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.editor > .primary { width: 100%; margin-top: 24px; }
.paper { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.paper h2 { margin: 15px 0 20px; font-size: 28px; letter-spacing: -.5px; }
.paper ol { margin: 0 0 18px; padding-left: 20px; }
.paper li { padding: 5px 0; font-size: 14px; }
.seal { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #e1e1e1; color: #555; font-size: 12px; }
.result { margin-top: 24px; }
.result h2, #unlock-result h2 { font-size: 21px; }
.share-code { display: block; margin: 15px 0; color: var(--accent); font: 700 17px/1.6 monospace; overflow-wrap: anywhere; }
.unlock-panel { margin-top: 24px; }
.unlock-panel h2 { margin: 0 0 8px; font-size: 23px; }
.code-entry { display: flex; gap: 12px; }
.code-entry input { flex: 1; font-family: monospace; }
.code-entry .primary { flex-shrink: 0; }
.unlock-panel .notice { margin: 16px 0 0; }
.saved-configuration { min-width: 0; margin-top: 18px; }
.saved-configuration h3 { font-size: 16px; }
.saved-configuration dl { font-size: 14px; }
.saved-configuration dt { color: var(--muted); }
.saved-configuration dd { margin: 0 0 9px; font-weight: 700; overflow-wrap: anywhere; }
.cover-slot { display: grid; place-items: center; min-height: 110px; margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: #fafafa; font-size: 13px; overflow: hidden; }
.cover-preview { display: block; max-width: 100%; max-height: 300px; object-fit: contain; }
.quote-panel { margin-top: 24px; }
.quote-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote-lines div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.quote-lines strong { color: var(--ink); overflow-wrap: anywhere; }
.artwork-checkout-status { grid-column: 1 / -1; max-width: 100%; padding: 12px 14px; border-left: 3px solid var(--line); background: var(--soft); overflow-wrap: anywhere; }
.quote-controls { display: flex; align-items: flex-end; gap: 12px; margin: 4px 0 0; }
.quote-controls > div { width: 160px; }
.quiet-button { color: var(--ink); border-color: #d9d9d9; background: #fff; }
.quiet-button:hover { border-color: var(--ink); }
#draft-checkout { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
#draft-checkout h3 { margin: 0 0 8px; font-size: 18px; }
#draft-checkout > .primary { margin-top: 15px; }
#draft-notice { margin-top: 16px; }
.collector-entry .unlock-panel { margin-top: 0; }
.collector-entry .workflow-grid { margin-top: 24px; }

dialog { width: calc(100% - 32px); max-width: 560px; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; }
dialog::backdrop { background: #0006; }
dialog form { padding: 28px; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dialog-head h2 { margin: 0 0 8px; font-size: 24px; }
.close { min-height: 36px; padding: 6px 12px; border: 1px solid #d9d9d9; border-radius: 6px; color: var(--ink); background: #fff; }
dialog label span { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
dialog .notice { margin-top: 16px; }
dialog .primary { width: 100%; margin-top: 18px; }

.site-footer { border-top: 1px solid var(--line); background: #f8f8f8; }
.footer-content { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; max-width: var(--page-width); margin: auto; padding: 42px 20px; }
.footer-brand p { margin: 14px 0 8px; color: var(--muted); font-size: 14px; }
.footer-brand > a:last-child { font-size: 14px; }
.footer-content h2 { margin: 0 0 15px; font-size: 15px; }
.footer-content nav { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-bottom { max-width: var(--page-width); margin: auto; padding: 18px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 1000px) {
  .masthead { gap: 24px; }
  .header-action { gap: 5px; font-size: 13px; }
  .header-actions { gap: 12px; }
  .workflow-grid { grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr); gap: 20px; }
  .panel, .paper { padding: 22px; }
}

@media (max-width: 800px) {
  .workflow-grid { grid-template-columns: minmax(0, 1fr); }
  .side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
  .side .paper:only-child, .side:has(.result[hidden]) .paper { grid-column: 1 / -1; }
  .result { margin-top: 0; }
  .site-search { max-width: none; }
  .header-action > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .footer-content { gap: 28px; }
}

@media (max-width: 600px) {
  .masthead { flex-wrap: wrap; gap: 15px; padding: 18px 12px 14px; }
  .brand img { width: 148px; height: 30px; }
  .site-search { order: 2; flex-basis: 100%; }
  .header-actions { gap: 10px; }
  .site-nav { justify-content: space-between; gap: 12px; padding: 0 12px 14px; }
  .site-nav a { font-size: 13px; }
  .environment { padding: 7px 12px; font-size: 10px; }
  .environment span { margin-left: 7px; }
  main { padding: 0 12px 40px; }
  .intro { padding: 20px 0; }
  .breadcrumbs { margin-bottom: 18px; font-size: 12px; }
  .intro-heading { gap: 12px; align-items: flex-end; }
  .intro .eyebrow { font-size: 9px; letter-spacing: .08em; }
  .intro h1 { font-size: 28px; }
  .intro .quiet { min-height: 36px; padding: 6px 10px; font-size: 12px; }
  .intro > p:last-child { font-size: 14px; }
  .notice, .sales-banner { padding: 11px 13px; font-size: 12px; }
  .panel, .paper { padding: 20px; }
  .session-panel { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .session-panel .primary { width: 100%; }
  .session-panel h2 { font-size: 17px; }
  .section-title { gap: 11px; margin-bottom: 20px; }
  .section-title h2 { font-size: 19px; }
  .section-title p, .help, .small { font-size: 12px; }
  input, select { font-size: 16px; }
  .options, .quote-lines, .side { grid-template-columns: minmax(0, 1fr); }
  .paper h2 { font-size: 25px; }
  .code-entry { flex-direction: column; }
  .code-entry .primary { width: 100%; }
  .unlock-panel, .quote-panel { margin-top: 20px; }
  .unlock-panel h2 { font-size: 21px; }
  .quote-lines div { font-size: 13px; }
  .quote-controls > div { width: 120px; }
  .quote-controls .quiet-button { flex: 1; padding-right: 12px; padding-left: 12px; }
  .collector-entry .workflow-grid { margin-top: 20px; }
  dialog form { padding: 22px; }
  .dialog-head h2 { font-size: 21px; }
  .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding: 32px 12px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-content h2 { font-size: 14px; }
  .footer-content nav { font-size: 13px; }
  .footer-bottom { padding: 16px 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  .primary, .quiet-button, .quiet { transition: background-color .15s, border-color .15s; }
}

#buyer-orders-panel { margin-bottom: 28px; }
.buyer-order-row, .buyer-order-detail { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e5e5; overflow-wrap: anywhere; }
.buyer-order-row code { font-size: 13px; }
.buyer-order-detail h4 { margin: 0 0 10px; }
