@font-face {
  font-family: Inter;
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --cream: #f6f4ef;
  --ink: #141511;
  --wine: #244cfc;
  --wine-dark: #173cdd;
  --rose: #244cfc;
  --sand: #eeece6;
  --gold: #66685f;
  --muted: #696b63;
  --line: #d7d7cf;
  --serif: Inter, Arial, sans-serif;
  --shadow: none;
  --blue: #244cfc;
}
body {
  background: var(--cream);
  color: var(--ink);
  font:
    16px/1.5 Inter,
    Arial,
    sans-serif;
}
h1,
h2,
h3,
h4 {
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(32px, 4.8vw, 64px);
  line-height: 1.03;
}
h2 {
  font-size: 30px;
  line-height: 1.12;
}
h3 {
  font-size: 20px;
  line-height: 1.2;
}
h1 em,
h2 em {
  font-style: normal;
  color: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
[hidden] {
  display: none !important;
}
.button {
  border-radius: 4px;
  box-shadow: none;
  min-height: 52px;
  padding: 13px 20px;
  gap: 20px;
  font-weight: 680;
  font-size: 16px;
  line-height: 1.15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}
.button-primary {
  background: var(--blue);
  border: 2px solid var(--blue);
  color: white;
}
.button-primary:hover {
  background: #173cdd;
  transform: none;
  box-shadow: none;
}
.button-outline {
  border: 1.5px solid var(--blue);
  background: transparent;
  color: var(--blue);
}
.button-outline:hover {
  background: #244cfc08;
  box-shadow: none;
  transform: none;
}
.text-link {
  color: var(--blue);
}
.field input,
.field textarea,
.field select,
.catalog-search input {
  border-radius: 4px;
  background: #fffefa;
  border: 1px solid #a9aaa2;
  padding: 12px;
  min-height: 46px;
}
.field {
  gap: 7px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 550;
}
.paper-panel,
.admin-panel {
  border-radius: 4px;
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
}
.notice,
.form-error {
  border-radius: 4px;
}
.badge {
  border-radius: 3px;
  background: var(--sand);
  color: var(--ink);
}
.container {
  width: min(1240px, calc(100% - 48px));
}
.nely-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
}
.nely-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1;
}
.nely-brand strong {
  font-size: 48px;
  letter-spacing: -0.065em;
  font-weight: 850;
}
.nely-brand span {
  font-size: 26px;
  font-weight: 480;
  letter-spacing: -0.045em;
}
.nely-header nav {
  font-size: 14px;
}
.nely-header nav a:hover {
  color: var(--blue);
}
.nely-footer {
  max-width: 1320px;
  margin: auto;
  padding: 38px 4vw;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.nely-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.store-status {
  width: 100%;
  margin: 0;
  font-size: 11px;
}
.entry-home {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  min-height: min(760px, calc(100svh - 92px));
  border-bottom: 1px solid var(--line);
}
.entry-photo {
  position: relative;
  min-height: 580px;
  background: #d8d5cd;
  overflow: hidden;
}
.entry-photo img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
}
.photo-caption {
  position: absolute;
  bottom: 18px;
  left: 24px;
  color: #fff;
  font-size: 11px;
  text-shadow: 0 1px 4px #000;
  background: #14151155;
  padding: 4px 7px;
}
.entry-copy {
  padding: 64px 5vw;
  align-self: center;
}
.entry-kicker {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.entry-copy h1 {
  font-size: clamp(64px, 7.4vw, 112px);
  line-height: 0.93;
  font-weight: 830;
  letter-spacing: -0.07em;
  margin: 0 0 38px;
}
.entry-actions {
  display: grid;
  gap: 14px;
  max-width: 510px;
}
.entry-actions .button {
  justify-content: space-between;
  min-height: 70px;
  font-size: 24px;
  padding: 18px 22px;
}
.entry-actions .button-outline {
  border: 2px solid var(--ink);
  color: var(--ink);
}
.entry-actions .button span[aria-hidden] {
  font-size: 42px;
  line-height: 0.65;
  font-weight: 400;
}
.entry-actions svg {
  width: 30px;
  height: 30px;
}
.entry-note {
  font-size: 12px;
  color: var(--muted);
  margin: 24px 0 0;
  max-width: 320px;
}
.back-link {
  display: inline-block;
  color: var(--blue);
  font-size: 14px;
  margin: 24px 0;
}
.catalog-page {
  padding-bottom: 70px;
}
.catalog-intro {
  max-width: 720px;
  margin: 24px 0 30px;
}
.catalog-intro .eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.catalog-intro p {
  color: var(--muted);
  font-size: 16px;
}
.catalog-search {
  display: grid;
  gap: 7px;
  font-size: 13px;
  width: min(100%, 420px);
  margin-bottom: 30px;
}
.nely-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 24px;
}
.nely-product {
  min-width: 0;
}
.nely-product .product-photo {
  display: block;
  aspect-ratio: 1;
  background: #eae8e1;
  overflow: hidden;
  position: relative;
}
.nely-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nely-product h2 {
  font-size: 22px;
  letter-spacing: -0.035em;
  margin: 17px 0 8px;
}
.nely-product .product-price {
  font-size: 19px;
  color: var(--ink);
  font-weight: 650;
  margin-bottom: 14px;
}
.nely-product .button {
  width: 100%;
  font-size: 15px;
  min-height: 48px;
}
.nely-product .product-label {
  font-size: 11px;
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--cream);
  padding: 3px 7px;
  color: var(--muted);
}
.catalog-note {
  font-size: 13px;
  color: var(--muted);
  margin: 32px 0;
}
.picker-empty {
  padding: 40px 0;
  max-width: 530px;
  grid-column: 1/-1;
}
.picker-empty h2 {
  font-size: 30px;
}
.picker-empty p {
  color: var(--muted);
}
.product-detail {
  padding-bottom: 60px;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: start;
}
.product-detail-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--sand);
}
.product-detail h1 {
  font-size: 42px;
  margin-top: 20px;
}
.product-detail-price {
  font-size: 26px;
  font-weight: 650;
}
.product-inquiry {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.product-inquiry .button {
  width: 100%;
}
.product-inquiry fieldset {
  border: 0;
  padding: 0;
}
.product-asset-note {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
}
.editor-header {
  padding: 22px 32px 16px;
  border-bottom: 1px solid var(--line);
}
.editor-header .nely-brand strong {
  font-size: 32px;
}
.editor-header .nely-brand span {
  font-size: 20px;
}
.editor-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 25px;
}
.editor-heading > a {
  font-size: 38px;
  line-height: 1;
}
.editor-heading h1 {
  font-size: 32px;
  margin: 0;
  letter-spacing: -0.04em;
}
.photo-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.9fr);
  min-height: calc(100svh - 140px);
  max-width: 1600px;
  margin: auto;
}
.cake-stage {
  min-width: 0;
  background: #eae7df;
  align-self: start;
  position: sticky;
  top: 0;
}
.photo-preview {
  width: 100%;
  aspect-ratio: 1;
  max-height: calc(100svh - 190px);
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.photo-preview canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.preview-caption {
  padding: 13px 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  line-height: 1.3;
  background: var(--cream);
}
#editor-resource-note {
  color: var(--muted);
  font-size: 11px;
  max-width: 170px;
  text-align: right;
}
.editor-controls {
  min-width: 0;
  padding: 0 32px;
  align-self: start;
}
.editor-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  gap: 16px;
  padding-top: 20px;
}
.editor-tabs button {
  background: transparent;
  border: 0;
  padding: 20px 0;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  letter-spacing: -0.03em;
}
.editor-tabs button[aria-selected="true"]::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 4px;
  content: "";
  background: var(--blue);
  border-radius: 3px;
}
.editor-tabs button:disabled {
  color: var(--muted);
  opacity: 0.45;
}
.editor-panel {
  padding: 24px 0 28px;
  min-height: 190px;
}
.decoration-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.decoration-row:last-child {
  border: 0;
}
.decoration-row img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 2px;
}
.decoration-name {
  flex: 1;
  font-size: 20px;
  font-weight: 680;
  letter-spacing: -0.025em;
}
.decoration-name small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 5px;
  letter-spacing: 0;
}
.decoration-row button {
  white-space: nowrap;
  min-height: 44px;
  padding: 9px 14px;
  border: 1.5px solid var(--blue);
  border-radius: 4px;
  color: var(--blue);
  background: transparent;
  font-size: 17px;
  font-weight: 650;
}
.decoration-feedback {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  background: #eae8e1;
  margin: 0 -32px;
  padding: 13px 24px;
  min-height: 49px;
  font-size: 14px;
}
.decoration-feedback button {
  color: var(--blue);
  font-weight: 650;
  text-decoration: underline;
  border: 0;
  background: transparent;
  padding: 4px;
  font-size: 14px;
}
.editor-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.editor-total > div {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.editor-total span {
  font-size: 17px;
  font-weight: 600;
}
.editor-total strong {
  font-size: 34px;
  font-weight: 780;
  letter-spacing: -0.06em;
  margin-top: 4px;
}
.editor-total small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.3;
  max-width: 150px;
}
.editor-total .button {
  font-size: 21px;
  min-height: 60px;
  flex: 1;
  max-width: 260px;
  justify-content: space-between;
}
.editor-total .button span {
  font-size: 32px;
  font-weight: 400;
}
.editor-reassurance {
  font-size: 12px;
  color: var(--muted);
  max-width: 380px;
  margin: 10px 0 25px;
}
.message-count {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}
.editor-colors {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.editor-colors button {
  width: 38px;
  height: 38px;
  background: var(--swatch);
  border: 1px solid #aaa;
  border-radius: 50%;
  position: relative;
}
.editor-colors button[aria-pressed="true"] {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.editor-colors button[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  color: #141511;
  background: #fff;
  width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 50%;
  right: -5px;
  bottom: -5px;
  font-size: 12px;
}
.plain-action {
  border: 0;
  background: transparent;
  color: var(--blue);
  text-decoration: underline;
  padding: 10px 0;
  min-height: 44px;
  font-weight: 550;
}
.photo-upload-button {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 76px;
  border: 1.5px dashed var(--blue);
  border-radius: 4px;
  color: var(--blue);
  font-weight: 650;
  cursor: pointer;
  position: relative;
}
.photo-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.photo-crop-controls {
  display: grid;
  gap: 12px;
}
.photo-crop-controls label {
  font-size: 13px;
  display: grid;
  gap: 6px;
}
.photo-crop-controls input {
  width: 100%;
  accent-color: var(--blue);
  min-height: 24px;
}
.photo-crop-controls .photo-source-preview {
  width: 100%;
  height: 130px;
  object-fit: contain;
  background: var(--sand);
}
.photo-tools {
  display: flex;
  gap: 20px;
  align-items: center;
}
.editor-panel .form-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}
.checkout-progress button {
  border-radius: 3px;
}
.summary-chip {
  border-radius: 2px;
  color: var(--ink);
  background: var(--sand);
}
.summary-photo {
  border-radius: 2px;
  max-height: none;
}
.design-details {
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}
.design-details dl {
  display: grid;
  gap: 8px;
}
.design-details dt {
  font-weight: 650;
}
.design-details dd {
  margin: 0;
  color: var(--muted);
  word-break: break-word;
}
.design-details a {
  color: var(--blue);
  text-decoration: underline;
}
.toast {
  background: #141511;
  border-radius: 4px;
  color: white;
}
.admin-shell {
  margin: 0;
  max-width: none;
}
.admin-sidebar {
  background: #eeece6;
  border-right: 1px solid var(--line);
  border-radius: 0;
}
.admin-sidebar .brand {
  color: var(--ink);
}
.admin-sidebar .brand img {
  display: none;
}
.admin-sidebar .brand strong {
  font:
    800 35px/1 Inter,
    sans-serif;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.admin-sidebar nav a {
  color: var(--ink);
  border-radius: 3px;
}
.admin-sidebar nav a.active {
  background: var(--blue);
  color: #fff;
}
.admin-label {
  color: var(--muted);
}
.profile-editor {
  max-width: 1000px;
}
.profile-editor fieldset {
  border: 1px solid var(--line);
  padding: 20px;
  margin: 18px 0;
}
.profile-editor legend {
  font-weight: 700;
}
.resource-status {
  font-size: 12px;
  color: var(--muted);
  background: var(--sand);
  padding: 10px;
  line-height: 1.4;
}
.resource-status ul {
  margin: 6px 0;
  padding-left: 18px;
}
.zone-editor {
  position: relative;
  max-width: 520px;
  cursor: crosshair;
  touch-action: none;
}
.zone-editor canvas {
  display: block;
  width: 100%;
  height: auto;
}
.resource-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.profile-editor .form-grid {
  gap: 16px;
}
.profile-editor textarea {
  width: 100%;
  min-height: 85px;
}
.profile-resource-list {
  display: grid;
  gap: 20px;
}
.profile-card {
  border: 1px solid var(--line);
  padding: 24px;
}
.profile-card h3 {
  margin-bottom: 6px;
}
.profile-card .button {
  margin-top: 15px;
}
.crop-note {
  font-size: 11px;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .entry-home {
    min-height: 800px;
  }
}
@media (max-width: 900px) {
  .entry-home {
    grid-template-columns: 1fr 1fr;
  }
  .entry-copy {
    padding: 45px 28px;
  }
  .entry-copy h1 {
    font-size: 70px;
  }
  .entry-actions .button {
    font-size: 18px;
  }
  .entry-photo {
    min-height: 520px;
  }
  .nely-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .photo-editor-grid {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 1fr);
  }
  .editor-controls {
    padding: 0 22px;
  }
  .decoration-feedback {
    margin: 0 -22px;
  }
  .decoration-row img {
    width: 55px;
    height: 55px;
  }
  .decoration-name {
    font-size: 18px;
  }
  .decoration-row button {
    font-size: 15px;
    padding: 9px 11px;
  }
  .product-detail-grid {
    gap: 28px;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 15px;
  }
  .container {
    width: calc(100% - 32px);
  }
  .nely-header {
    height: 64px;
    padding: 0 18px;
  }
  .nely-brand {
    gap: 11px;
  }
  .nely-brand strong {
    font-size: 36px;
  }
  .nely-brand span {
    font-size: 20px;
  }
  .nely-header nav {
    display: none;
  }
  .entry-home {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border: 0;
  }
  .entry-photo {
    height: clamp(200px, 36svh, 300px);
    min-height: 0;
  }
  .entry-photo img {
    object-position: 50% 54%;
  }
  .photo-caption {
    display: none;
  }
  .entry-copy {
    padding: 17px 18px 20px;
    width: 100%;
  }
  .entry-kicker,
  .entry-note {
    display: none;
  }
  .entry-copy h1 {
    font-size: 54px;
    letter-spacing: -0.065em;
    line-height: 0.94;
    margin: 0 0 18px;
  }
  .entry-actions {
    gap: 10px;
    max-width: none;
  }
  .entry-actions .button {
    min-height: 54px;
    padding: 12px 16px;
    font-size: 20px;
    border-width: 1.5px;
  }
  .entry-actions .button span[aria-hidden] {
    font-size: 34px;
  }
  .entry-actions svg {
    width: 25px;
    height: 25px;
  }
  .nely-footer {
    padding: 25px 18px;
    font-size: 11px;
    gap: 16px;
  }
  .nely-footer nav {
    gap: 18px;
  }
  .catalog-intro {
    margin: 12px 0 24px;
  }
  .catalog-intro h1 {
    font-size: 35px;
  }
  .catalog-intro p {
    font-size: 14px;
  }
  .nely-product-grid {
    gap: 28px 12px;
  }
  .nely-product h2 {
    font-size: 17px;
    margin: 11px 0 8px;
    line-height: 1.15;
  }
  .nely-product .product-price {
    font-size: 17px;
  }
  .nely-product .button {
    font-size: 13px;
    min-height: 46px;
    padding: 11px 8px;
    gap: 6px;
  }
  .nely-product .product-label {
    font-size: 9px;
    left: 5px;
    bottom: 5px;
    padding: 2px 4px;
  }
  .product-detail-grid {
    display: block;
  }
  .product-detail-photo {
    margin-top: 0;
  }
  .product-detail h1 {
    font-size: 34px;
    margin: 26px 0 15px;
  }
  .product-detail-price {
    font-size: 23px;
  }
  .product-detail .back-link {
    margin: 18px 0;
  }
  .editor-header {
    padding: 14px 18px 15px;
  }
  .editor-header .nely-brand strong {
    font-size: 30px;
  }
  .editor-header .nely-brand span {
    font-size: 18px;
  }
  .editor-heading {
    margin-top: 16px;
    gap: 17px;
  }
  .editor-heading h1 {
    font-size: 25px;
    letter-spacing: -0.045em;
  }
  .editor-heading > a {
    font-size: 30px;
  }
  .photo-editor-grid {
    display: block;
    min-height: 0;
    padding-bottom: 110px;
  }
  .cake-stage {
    position: static;
  }
  .photo-preview {
    max-height: calc(100svh - 335px);
    min-height: 240px;
    aspect-ratio: auto;
    height: 375px;
  }
  .photo-preview canvas {
    object-fit: contain;
  }
  .preview-caption {
    padding: 8px 18px;
    font-size: 10px;
  }
  #editor-resource-note {
    font-size: 9px;
    max-width: 140px;
  }
  .editor-controls {
    padding: 0 18px;
  }
  .editor-tabs {
    gap: 20px;
    padding-top: 0;
  }
  .editor-tabs button {
    font-size: 19px;
    padding: 18px 0 16px;
  }
  .editor-panel {
    padding: 14px 0;
    min-height: 120px;
  }
  .decoration-row {
    gap: 13px;
    padding: 11px 0;
  }
  .decoration-row img {
    width: 67px;
    height: 67px;
  }
  .decoration-name {
    font-size: 19px;
  }
  .decoration-name small {
    font-size: 10px;
  }
  .decoration-row button {
    font-size: 17px;
    min-height: 44px;
    padding: 10px 12px;
  }
  .decoration-feedback {
    padding: 10px 18px;
    margin: 0 -18px;
    font-size: 13px;
    min-height: 43px;
  }
  .decoration-feedback button {
    font-size: 13px;
  }
  .editor-total {
    position: fixed;
    z-index: 20;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    gap: 25px;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 16px #14151105;
  }
  .editor-total strong {
    font-size: 30px;
  }
  .editor-total span {
    font-size: 15px;
  }
  .editor-total small {
    font-size: 9px;
    max-width: 145px;
    margin-top: 4px;
  }
  .editor-total .button {
    min-height: 54px;
    font-size: 20px;
    max-width: 210px;
    padding: 12px 18px;
  }
  .editor-total .button span {
    font-size: 29px;
  }
  .editor-reassurance {
    font-size: 10px;
    margin: 12px 0 0;
  }
  .editor-panel textarea {
    width: 100%;
    min-height: 90px;
  }
  .toast {
    max-width: calc(100% - 36px);
    bottom: 110px;
    font-size: 12px;
  }
  .resource-row {
    grid-template-columns: 1fr;
  }
  .profile-editor fieldset {
    padding: 14px;
  }
  .admin-main {
    padding: 20px 14px;
  }
  .nely-store .page-heading {
    padding: 35px 0;
  }
  .nely-store .page-heading h1 {
    font-size: 32px;
  }
  .checkout-progress {
    overflow: auto;
    justify-content: flex-start;
  }
  .checkout-progress button {
    font-size: 10px;
    min-width: 60px;
  }
  .checkout-grid {
    display: flex;
    flex-direction: column;
  }
  .checkout-grid > aside {
    width: 100%;
  }
  .checkout-grid .paper-panel {
    padding: 20px;
  }
  .information-grid {
    gap: 24px;
  }
  .back-link {
    min-height: 32px;
  }
  .picker-empty {
    padding: 20px 0;
  }
  .editor-loading {
    padding: 30px 0;
  }
}
@media (max-width: 360px) {
  .entry-copy h1 {
    font-size: 48px;
  }
  .entry-actions .button {
    font-size: 18px;
  }
  .editor-heading h1 {
    font-size: 23px;
  }
  .decoration-row img {
    width: 52px;
    height: 52px;
  }
  .decoration-name {
    font-size: 17px;
  }
  .decoration-row button {
    font-size: 15px;
  }
  .editor-total {
    gap: 12px;
  }
  .editor-total .button {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .nely-header,
  .nely-footer,
  .editor-total,
  .admin-sidebar,
  .no-print {
    display: none !important;
  }
  .admin-main {
    padding: 0;
  }
  .admin-order-detail {
    display: block;
  }
  .summary-photo {
    width: 400px;
    max-width: 100%;
    break-inside: avoid;
  }
  .design-details {
    break-inside: avoid;
  }
}
.message-colors {
  display: flex;
  gap: 16px;
  margin: 15px 0;
}
.message-color {
  width: 36px;
  height: 36px;
  background: var(--swatch);
  border: 1px solid #aaa;
  border-radius: 50%;
  color: white;
  cursor: pointer;
}
.message-color[aria-pressed="true"] {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.message-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin: 8px 0;
}
.editor-panel .text-link {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 8px 0;
  text-decoration: underline;
}
.crop-controls {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.crop-controls label {
  display: grid;
  gap: 4px;
  font-size: 12px;
}
.crop-controls input {
  width: 100%;
  accent-color: var(--blue);
}
.photo-upload-label {
  position: relative;
  cursor: pointer;
  width: 100%;
}
.photo-upload-label input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-hint {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0;
}
.panel-intro {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 16px;
}
.approval-dialog {
  width: min(460px, calc(100% - 28px));
  max-height: calc(100svh - 28px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
  padding: 22px;
  color: var(--ink);
}
.approval-dialog::backdrop {
  background: #14151199;
}
.approval-dialog h2 {
  font-size: 27px;
  margin: 0 0 12px;
}
.approval-dialog img {
  width: 100%;
  max-height: 45svh;
  object-fit: contain;
  display: block;
}
.approval-dialog p {
  font-size: 13px;
  line-height: 1.5;
}
.approval-dialog .approval-total {
  font-size: 22px;
  font-weight: 750;
}
.approval-dialog .button {
  width: 100%;
  margin-top: 10px;
}
.approval-dialog .text-link {
  display: block;
  border: 0;
  background: transparent;
  color: var(--blue);
  text-align: center;
  padding: 15px;
  width: 100%;
}
.profile-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 6px 0;
  font-size: 13px;
}
.profile-check input {
  width: 18px;
  height: 18px;
  accent-color: #244cfc;
}
.resource-upload {
  padding: 16px;
  border: 1px solid #d5d4cd;
  margin-bottom: 14px;
  min-width: 0;
}
.resource-upload img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin: 12px 0;
}
.resource-upload small {
  overflow-wrap: anywhere;
  font-size: 10px;
}
.profile-zone-tabs {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}
.profile-zone-tabs button {
  border: 0;
  background: transparent;
  border-bottom: 3px solid transparent;
  padding: 12px;
  font: inherit;
  cursor: pointer;
}
.profile-zone-tabs button[aria-pressed="true"] {
  border-color: #244cfc;
  color: #244cfc;
}
.profile-editor .zone-editor {
  margin-top: 16px;
}
.profile-editor .field {
  margin: 10px 0;
}
.profile-editor h2 {
  margin-top: 24px;
  font-size: 26px;
}
.profile-editor summary {
  color: #244cfc;
  cursor: pointer;
  padding: 12px 0;
}
.profile-editor #profile-status {
  font-size: 13px;
  line-height: 1.6;
}
.admin-shell {
  --wine: #244cfc;
  --pink: #eeece6;
  --blush: #f6f4ef;
}
.admin-sidebar {
  background: #eeece6 !important;
}
.admin-main {
  background: #f6f4ef;
}
.admin-sidebar nav a.active {
  background: #244cfc !important;
  color: white !important;
}
@media (max-width: 600px) {
  .entry-photo {
    position: relative;
  }
  .entry-photo .photo-caption {
    display: block;
    position: absolute;
    bottom: 8px;
    left: 12px;
    padding: 3px 6px;
    background: #f6f4efdc;
    color: #141511;
    font-size: 9px;
    letter-spacing: 0;
  }
}
.skip-link{position:absolute;top:0;left:16px;z-index:100;transform:translateY(-120%);padding:12px;background:#f6f4ef;color:#244cfc}.skip-link:focus{transform:translateY(0)}
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 12px;
}
.catalog-filters button {
  border: 1px solid var(--line);
  border-radius: 4px;
  min-height: 46px;
  padding: 10px 16px;
  background: transparent;
  color: var(--blue);
  font: 600 14px Inter, Arial, sans-serif;
  cursor: pointer;
}
.catalog-filters button[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}
.product-stock {
  min-height: 40px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 12px 0;
}
.product-stock.is-available {
  color: var(--ink);
  font-weight: 650;
}
.product-stock.is-available::before {
  content: "✓ ";
}
.product-detail .product-stock { min-height: 0; font-size: 15px; }
.product-detail .stock-checked { margin-top: -5px; }
.product-order {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
}
.product-order h2 { margin: 0 0 18px; font-size: 26px; }
.order-mode-choices { display: grid; gap: 10px; margin-bottom: 20px; }
.order-mode-choices .choice,
.checkout-layout .choice {
  border-radius: 4px;
  background: transparent;
  transition: border-color .15s ease, background .15s ease;
}
.order-mode-choices .choice:has(input:checked),
.checkout-layout .choice:has(input:checked) { background: #244cfc08; border-color: var(--blue); }
.order-mode-choices .choice { padding: 15px 16px 15px 42px; position: relative; min-height: 0; }
.order-mode-choices .choice input { position: absolute; left: 16px; top: 19px; }
.order-mode-choices .choice strong { color: var(--ink); font-size: 16px; }
.order-mode-choices .choice:has(input:checked) strong { color: var(--blue); }
.order-mode-choices .choice small { font-size: 12px; margin-top: 4px; }
.order-mode-choices .choice-unavailable { color: var(--muted); cursor: default; background: var(--sand); }
.order-mode-choices .choice-unavailable strong { color: var(--muted); }
.product-quantity { max-width: 140px; }
.product-order-summary {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.product-order-summary strong { font-size: 23px; white-space: nowrap; }
#product-order-continue { width: 100%; justify-content: space-between; margin: 5px 0 12px; }
.product-custom-link { display: inline-block; padding: 8px 0 12px; font-size: 14px; }
.delivery-mode-label { margin: 18px 0; font-weight: 700; }
.checkout-layout .summary-chip { letter-spacing: 0; }
.checkout-layout .summary-line { font-size: 13px; }
.checkout-layout .summary-line.total { font-size: 22px; }
.checkout-layout .choice strong { font-size: 14px; }
.checkout-layout .choice small { font-size: 12px; }
.checkout-layout .form-note { font-size: 12px; }
.checkout-action-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); margin-top: 22px; font-size: 12px; }
.checkout-action-total strong { white-space: nowrap; font-size: 22px; }
.checkout-action-total + .form-actions { margin-top: 14px; }
#availability-note { min-height: 22px; margin-top: 12px; }
#retry-availability { background: transparent; border: 0; font: inherit; padding: 5px; cursor: pointer; }
@media (max-width: 600px) {
  .catalog-filters { gap: 7px; }
  .catalog-filters button { font-size: 12px; padding: 10px 11px; }
  .nely-product .product-stock { font-size: 11px; min-height: 48px; }
  .nely-product .button { min-height: 56px; }
  .product-order h2 { font-size: 25px; }
  .product-detail .eyebrow { margin-top: 22px; }
  .product-detail h1 { margin-top: 8px; }
  .checkout-layout .paper-panel { padding: 20px; }
  .checkout-layout .form-grid { grid-template-columns: 1fr; }
  .checkout-layout .form-actions { flex-wrap: wrap; }
  .checkout-layout .form-actions .button { flex: 1 1 140px; padding: 12px; font-size: 14px; }
  .checkout-layout .order-summary { position: static; }
}
