[hidden] {
  display: none !important;
}
.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.header-nav a {
  text-decoration: none;
}
.header-nav a:hover {
  color: var(--accent);
}
.clerk-auth { min-width: 0; display: flex; justify-content: center; align-items: flex-start; }
.clerk-auth .cl-rootBox, .clerk-auth .cl-cardBox { width: 100%; max-width: 400px; }
#user-button:empty { display: none; }
@media (max-width: 600px) {
  .header-nav { gap: 12px; font-size: 12px; }
}
.shop-root {
  max-width: 1240px;
  margin: 0 auto;
  padding: 45px 32px 70px;
}
.page-heading {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}
.page-heading h1 {
  font-size: 56px;
  margin: 12px 0;
}
.page-heading p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 600px;
}
.shop-root h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 31px;
  font-weight: 400;
  margin: 0 0 18px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 40px;
}
.form-card,
.summary-card,
.auth-card,
.order-card,
.order-detail {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 5px;
}
.form-card + .form-card {
  margin-top: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid label,
.stack-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.wide {
  grid-column: 1/-1;
}
.form-grid input,
.form-grid select,
.form-grid textarea,
.stack-form input,
.stack-form textarea,
.stack-form select,
.admin-filters input,
.admin-filters select {
  border: 1px solid #cccec3;
  background: #fffefb;
  padding: 12px 13px;
  border-radius: 3px;
  width: 100%;
  min-width: 0;
  font: inherit;
  color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 110px;
}
.form-grid input:focus,
.stack-form input:focus {
  border-color: var(--accent);
}
.form-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.callout {
  background: #f2e8dc;
  border-left: 3px solid var(--accent);
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.6;
  margin: 22px 0;
}
.form-error {
  color: #a52c1a;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
}
.form-success {
  color: #356246;
  font-size: 14px;
}
.check-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  margin: 24px 0;
}
.check-confirm input {
  margin-top: 4px;
  accent-color: var(--accent);
}
.full-button {
  width: 100%;
  padding: 16px;
}
.summary-card {
  position: sticky;
  top: 24px;
  text-align: center;
}
.summary-card img {
  display: block;
  width: 100%;
  max-height: 510px;
  object-fit: contain;
  background: #fffcf6;
  margin: 0 auto 24px;
}
.summary-card dl,
.order-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.summary-card dt,
.order-specs dt {
  color: var(--muted);
}
.summary-card dd,
.order-specs dd {
  margin: 0;
  text-align: right;
}
.auth-layout {
  max-width: 920px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.auth-story h1 {
  font-size: 65px;
  line-height: 1;
}
.auth-story p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
}
.auth-story .eyebrow {
  color: var(--accent);
}
.auth-tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.auth-tabs button {
  background: none;
  border: 0;
  padding: 0 0 12px;
  font-size: 15px;
}
.auth-tabs .selected {
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
}
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-card .primary-button {
  margin-top: 4px;
}
.auth-card .form-note {
  margin-bottom: 0;
}
.auth-card a {
  color: var(--accent);
  text-underline-offset: 3px;
}
.badge {
  display: inline-block;
  background: #e9eadf;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
  text-transform: capitalize;
}
.badge.shipped {
  background: #e4eddf;
  color: #355c31;
}
.badge.received {
  background: #f7e5d4;
  color: #8c4b21;
}
.badge.cancelled {
  background: #efdedb;
  color: #9d3523;
}
.admin-counts {
  display: flex;
  gap: 14px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.count-card {
  min-width: 130px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px 22px;
}
.count-card strong {
  font:
    32px "Instrument Serif",
    Georgia,
    serif;
  display: block;
}
.count-card span {
  font-size: 13px;
  color: var(--muted);
}
.admin-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.admin-filters input {
  flex: 1;
}
.admin-filters select {
  width: 180px;
}
.admin-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: start;
}
.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-row {
  display: block;
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 18px;
  border-radius: 4px;
}
.order-row.selected {
  border-color: var(--accent);
  box-shadow: inset 3px 0 var(--accent);
}
.order-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.order-row strong {
  font-size: 15px;
}
.order-row p {
  font-size: 14px;
  line-height: 1.5;
  margin: 5px 0;
}
.order-row small {
  color: var(--muted);
  font-size: 12px;
}
.order-detail {
  position: sticky;
  top: 20px;
}
.order-detail img {
  max-height: 260px;
  max-width: 100%;
  display: block;
  margin: 0 auto 20px;
}
.order-detail h3 {
  font-size: 15px;
  margin: 24px 0 10px;
}
.address {
  white-space: pre-line;
  font-size: 15px;
  line-height: 1.7;
}
.comment-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.6;
  background: #f2f1e9;
  padding: 15px;
}
.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.detail-top h2 {
  margin: 0;
}
.detail-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
}
.detail-actions a {
  text-decoration: none;
  display: inline-block;
}
.history {
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.empty-state {
  padding: 50px 25px;
  background: var(--paper);
  border: 1px dashed #c8cabc;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}
.receipt {
  max-width: 920px;
  margin: 0 auto;
}
.receipt-heading {
  text-align: center;
  margin-bottom: 35px;
}
.receipt-heading h1 {
  font-size: 60px;
}
.receipt-heading p {
  font-size: 16px;
  color: var(--muted);
}
.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.receipt-grid img {
  width: 100%;
  max-height: 580px;
  object-fit: contain;
}
.account-orders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.order-card a {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
}
.order-card h2 {
  margin-bottom: 12px;
}
.order-card p {
  line-height: 1.6;
  font-size: 14px;
}
.pen-downloads { margin: 22px 0; padding: 16px; background: #f3f0e7; border: 1px solid #dfdace; border-radius: 6px; }
.pen-downloads h3 { margin-top: 0; }
.pen-file-list { display: grid; gap: 8px; margin: 14px 0; }
.pen-file-list a { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #d5d0c5; background: #fffdf8; border-radius: 4px; font-size: 13px; }
.pen-file-list i { width: 12px; height: 12px; border: 1px solid #8885; border-radius: 50%; }
.small-link {
  font-size: 13px;
  text-underline-offset: 4px;
}
.map-regenerate {
  width: 100%;
  margin-top: 14px;
  padding: 11px;
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  border-radius: 3px;
  font-size: 14px;
}
.refresh-notice {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(300px, 85%);
  padding: 25px;
  background: #fffcf6f2;
  box-shadow: 0 10px 40px #292a2720;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.refresh-notice p {
  font-size: 14px;
  line-height: 1.6;
  margin: 10px 0 16px;
  color: var(--muted);
}
.refresh-notice strong {
  font:
    27px "Instrument Serif",
    Georgia,
    serif;
}
.refresh-notice button {
  background: var(--accent);
  color: white;
  border: 0;
  padding: 12px 18px;
  border-radius: 3px;
}
.order-promise {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.5;
}
.brand {
  white-space: nowrap;
}
.preview-label.is-stale {
  color: var(--accent);
  border-color: #dca18b;
  background: #fae9dd;
}
.site-header > .text-button {
  margin-left: 0;
}
.export-actions .primary-button {
  background: var(--accent);
  border-color: var(--accent);
}
@media (max-width: 950px) {
  .checkout-grid,
  .admin-grid {
    gap: 22px;
  }
  .shop-root {
    padding: 30px 22px;
  }
  .header-nav {
    gap: 16px;
  }
  .site-header {
    gap: 20px;
  }
  .auth-layout {
    gap: 30px;
  }
  .admin-filters {
    flex-wrap: wrap;
  }
  .admin-filters input {
    min-width: 170px;
  }
  .auth-story h1 {
    font-size: 53px;
  }
}
@media (max-width: 730px) {
  .checkout-grid,
  .auth-layout,
  .admin-grid,
  .receipt-grid {
    grid-template-columns: 1fr;
  }
  .checkout-grid .summary-wrap {
    grid-row: 1;
  }
  .summary-card {
    position: static;
    padding: 20px;
  }
  .summary-card img {
    max-height: 270px;
  }
  .form-card,
  .auth-card,
  .order-detail {
    padding: 22px;
  }
  .page-heading h1 {
    font-size: 43px;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
  }
  .auth-layout {
    margin: 0;
    gap: 20px;
  }
  .auth-story h1 {
    font-size: 44px;
  }
  .auth-story p {
    font-size: 14px;
  }
  .header-nav {
    gap: 14px;
    font-size: 12px;
  }
  .site-header {
    padding: 0 16px;
    gap: 10px;
  }
  .site-header .brand {
    font-size: 26px;
    letter-spacing: -0.5px;
  }
  .brand-mark {
    font-size: 32px;
    margin-right: 7px;
  }
  .header-nav a:first-child {
    display: none;
  }
  .site-header #about-open {
    display: none;
  }
  .form-grid {
    gap: 16px;
  }
  .form-grid label {
    font-size: 13px;
  }
  .order-detail {
    position: static;
  }
  .receipt-heading h1 {
    font-size: 46px;
  }
  .refresh-notice {
    padding: 18px;
    width: 85%;
  }
  .workspace {
    height: 870px;
    min-height: 760px;
  }
  .admin-counts {
    gap: 8px;
  }
  .count-card {
    min-width: 90px;
    padding: 13px;
    flex: 1;
  }
  .admin-filters select {
    flex: 1;
  }
  .shop-root {
    padding: 28px 18px 50px;
  }
}

