:root {
  --blue: #086bff;
  --blue-dark: #064fbe;
  --ink: #111418;
  --muted: #58606c;
  --line: #dce2ea;
  --soft: #f5f8fc;
  --dark: #0b0f16;
  --danger: #d92d20;
  --success: #0f8f4f;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  padding-top: 80px;
  color: var(--ink);
  background:
    linear-gradient(rgba(8, 107, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 107, 255, 0.05) 1px, transparent 1px),
    #ffffff;
  background-size: 44px 44px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 80px;
  padding: 12px 42px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 900;
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.91rem;
  font-weight: 850;
  color: #252c36;
}

.nav-links a {
  padding: 10px 0;
}

.nav-links a:hover,
.header-social a:hover,
.footer-links a:hover {
  color: var(--blue);
}

.cart-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: #202833;
}
.cart-icon-link:hover { background: #eef4ff; color: var(--blue); }
.cart-icon-link svg { display: block; }

.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 2px #fff;
}

.header-social {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #202833;
  font-size: 0.88rem;
  font-weight: 900;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
}

.cart-button:hover {
  border-color: var(--blue);
  background: var(--blue);
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 0.78rem;
}

.header-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.91rem;
  font-weight: 900;
}

.header-action svg,
.header-social svg,
.cart-button svg,
.button svg,
.social-row svg,
.work-grid svg,
.helps-panel svg,
.manage-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: 36px;
  min-height: min(760px, calc(100vh - 80px));
  padding: 52px 42px 78px;
  overflow: hidden;
}

.hero-copy {
  max-width: 700px;
}

.hero h1 {
  margin: 0;
  max-width: 670px;
  font-size: 4.2rem;
  line-height: 0.97;
  font-weight: 950;
}

.hero p {
  margin: 26px 0 0;
  max-width: 590px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.65;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.button-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(8, 107, 255, 0.25);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #202833;
  font-size: 0.9rem;
  font-weight: 850;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  border: 1px solid #cfd8e5;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.work-band {
  padding: 86px 42px;
  background: var(--dark);
  color: #ffffff;
}

.section-heading {
  max-width: 780px;
}

.section-heading h2 {
  margin: 0;
  font-size: 2.7rem;
  line-height: 1.08;
  font-weight: 950;
}

.section-heading p {
  margin: 16px 0 0;
  color: #657180;
  font-size: 1.07rem;
  line-height: 1.7;
  font-weight: 600;
}

.work-band .section-heading p {
  color: #b6c1cf;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.work-grid article {
  min-height: 226px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.work-grid svg {
  width: 34px;
  height: 34px;
  color: var(--blue);
}

.work-grid h3 {
  margin: 28px 0 0;
  font-size: 1.15rem;
  font-weight: 950;
}

.work-grid p {
  margin: 12px 0 0;
  color: #b6c1cf;
  line-height: 1.58;
  font-weight: 600;
}

.catalog-section {
  padding: 100px 52px 110px;
  background: #ffffff;
}

.catalog-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.manage-link {
  flex: 0 0 auto;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 52px;
}

.catalog-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.catalog-card > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f8fbff;
}

.catalog-card-body {
  display: grid;
  gap: 15px;
  padding: 18px;
}

.catalog-card h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.2;
  font-weight: 950;
}

.catalog-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 650;
}

.catalog-card-actions {
  display: grid;
  gap: 10px;
  align-self: end;
}

.catalog-price {
  color: var(--blue-dark);
  font-size: 0.98rem;
  font-weight: 950;
}

.quantity-row {
  display: grid;
}

.color-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.color-mode-row[hidden],
.per-item-colors[hidden],
.same-color-wrap[hidden],
.custom-text-wrap[hidden],
.selected-summary[hidden],
.empty-message[hidden] {
  display: none;
}

.color-mode-row legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: #1d2632;
  font-size: 0.84rem;
  font-weight: 900;
}

.color-mode-row label {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbff;
  font-size: 0.82rem;
  line-height: 1.2;
  cursor: pointer;
}

.color-mode-row input {
  width: auto;
  min-height: auto;
  margin: 0 8px 0 0;
  box-shadow: none;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-height: auto;
  box-shadow: none;
}

.per-item-colors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.same-color-wrap {
  display: grid;
  gap: 10px;
}

.item-color-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbff;
}

.item-color-group-title {
  margin: 0;
  color: #1d2632;
  font-size: 0.9rem;
  font-weight: 950;
}

.color-field-label {
  min-width: 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-label input {
  flex: 0 0 auto;
}

.request-item-button,
.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: #ffffff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 950;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.request-item-button:hover,
.admin-button:hover {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 6px 16px rgba(8, 107, 255, 0.28);
}

.admin-button:active {
  transform: translateY(1px);
}

.request-item-button {
  white-space: normal;
  text-align: center;
}

.item-dialog {
  width: min(980px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(11, 15, 22, 0.28);
}

.item-dialog::backdrop {
  background: rgba(11, 15, 22, 0.46);
}

.cart-panel {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 35;
  display: grid;
  gap: 16px;
  width: min(520px, calc(100vw - 36px));
  max-height: calc(100vh - 112px);
  padding: 22px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(11, 15, 22, 0.22);
}

.cart-panel[hidden] {
  display: none;
}

.cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cart-panel-head p {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.cart-panel-head h2 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.1;
  font-weight: 950;
}

.cart-panel .dialog-close {
  position: static;
  flex: 0 0 auto;
}

.cart-list,
.cart-checkout-form {
  display: grid;
  gap: 12px;
}

.cart-checkout-form[hidden] {
  display: none;
}

.cart-line-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbff;
}

.cart-line-item img {
  width: 88px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  background: #ffffff;
}

.cart-line-item h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 950;
}

.cart-line-item h3 span {
  color: var(--blue);
}

.cart-line-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 700;
}

.cart-line-item strong {
  display: inline-block;
  margin-top: 8px;
  color: var(--ink);
  font-weight: 950;
}

.remove-cart-item {
  border: 0;
  background: transparent;
  color: var(--danger);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 950;
  cursor: pointer;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-weight: 950;
}

.cart-total-row strong {
  color: var(--blue-dark);
  font-size: 1.25rem;
}

.cart-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 700;
}

.home-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid #b8d5ff;
  border-radius: 8px;
  background: #f3f8ff;
  color: var(--blue-dark);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
  font-weight: 900;
}

.item-menu {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1fr);
  gap: 0;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.dialog-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.item-menu-media {
  background: #f8fbff;
  border-right: 1px solid var(--line);
}

.item-menu-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.item-menu-body {
  display: grid;
  gap: 16px;
  padding: 34px;
  overflow: auto;
}

.item-category-label {
  margin: 0;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.item-menu-body h2 {
  margin: 0;
  padding-right: 42px;
  font-size: 2rem;
  line-height: 1.08;
  font-weight: 950;
}

.item-menu-body > p:not(.item-category-label) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 650;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
}

.empty-message {
  margin: 28px 0 0;
  padding: 28px;
  border: 1px dashed #b6c7df;
  border-radius: 8px;
  background: #f9fbff;
  color: var(--muted);
  font-weight: 800;
}

.request-section {
  padding: 92px 42px 98px;
  background: #ffffff;
}

.request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.form-panel,
.helps-panel,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.form-panel {
  padding: 34px;
}

.section-heading.compact {
  max-width: 680px;
}

.section-heading.compact h2 {
  font-size: 2.25rem;
}

.request-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #1d2632;
  font-size: 0.88rem;
  font-weight: 900;
}

.budget-control {
  align-content: start;
}

.budget-not-sure {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 850;
}

.budget-not-sure input {
  flex: 0 0 auto;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #cfd8e5;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 650;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 116px;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 107, 255, 0.13);
}

.selected-summary {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #b9d0f2;
  border-radius: 8px;
  background: #edf5ff;
}

.selected-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #173255;
  font-weight: 900;
}

.selected-chip button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #b9d0f2;
  border-radius: 7px;
  background: #ffffff;
  color: #173255;
  font-weight: 900;
  cursor: pointer;
}

.upload-zone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 122px;
  padding: 18px;
  border: 1.5px dashed #9cb3d5;
  border-radius: 8px;
  background: #f9fbff;
  cursor: pointer;
}

.upload-zone.drag-over {
  border-color: var(--blue);
  background: #edf5ff;
}

.upload-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #e8f1ff;
  color: var(--blue);
}

.upload-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-zone strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.upload-zone small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.preview-grid:empty {
  display: none;
}

.preview-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  padding: 4px 6px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(11, 15, 22, 0.82);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preview-item.file-preview {
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 96px;
  padding: 14px;
  aspect-ratio: auto;
}

.preview-item.file-preview strong {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 30px;
  border-radius: 7px;
  background: #e8f1ff;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
}

.preview-item.file-preview span {
  position: static;
  max-width: 100%;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.25;
  white-space: normal;
}

.preview-item.file-preview small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.submit-button {
  width: fit-content;
}

.form-status,
.admin-status {
  min-height: 24px;
  margin: 0;
  color: var(--blue-dark);
  font-weight: 850;
  line-height: 1.45;
}

.helps-panel {
  position: sticky;
  top: 104px;
  padding: 26px;
}

.helps-panel h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 950;
}

.helps-panel ul {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.helps-panel li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #293241;
  font-weight: 850;
}

.helps-panel li svg {
  color: var(--blue);
}

.quote-box {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.quote-box p {
  margin: 0;
  color: #202833;
  font-size: 1.3rem;
  line-height: 1.28;
  font-weight: 950;
}

.quote-box span {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 42px;
  background: var(--dark);
  color: #ffffff;
}

.site-footer > div:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
  font-weight: 950;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #c8d1df;
  font-weight: 800;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.thanks-card {
  width: min(520px, 100%);
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: center;
}

.thanks-logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin: 0 auto 18px;
}

/* Animated success checkmark for order/request confirmation */
.thanks-check {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: rgba(15, 143, 79, 0.1);
  display: grid;
  place-items: center;
  animation: thanksPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.thanks-check svg { width: 44px; height: 44px; stroke: var(--success); stroke-width: 3.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.thanks-check svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: thanksDraw 0.45s 0.2s ease forwards; }
@keyframes thanksPop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes thanksDraw { to { stroke-dashoffset: 0; } }
.thanks-sub { font-size: 0.9rem; color: var(--muted); margin-top: 4px; font-weight: 600; }

.thanks-card h1 {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 950;
}

.thanks-card p {
  margin: 16px auto 26px;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 650;
}

.thanks-card .button {
  margin: 0 auto;
}

.admin-body {
  background: #f7faff;
}

.admin-main {
  display: grid;
  gap: 24px;
  padding: 42px;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(8, 107, 255, 0.07), transparent 55%),
    #ffffff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.admin-hero h1 {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.05;
  font-weight: 950;
}

.admin-hero p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.admin-note {
  margin: -4px 0 18px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 650;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: start;
}

.admin-panel {
  padding: 24px;
}

.admin-panel h2 {
  margin: 0 0 18px;
  font-size: 1.45rem;
  font-weight: 950;
}

.admin-item-list {
  display: grid;
  gap: 14px;
}

.admin-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.admin-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-item-header strong {
  display: block;
  font-weight: 950;
}

.admin-item-header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-item-header .admin-button {
  width: auto;
  min-width: 110px;
  padding: 0 16px;
}

.admin-item-preview-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-preview-image {
  width: 140px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.admin-item-preview-row p {
  margin: 0;
  font-weight: 950;
}

.admin-item-preview-row span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 650;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.admin-actions .admin-button {
  width: auto;
  padding: 0 16px;
}

.danger-button {
  border-color: var(--danger);
  background: #ffffff;
  color: var(--danger);
}

.danger-button:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(217, 45, 32, 0.28);
}

.request-list {
  display: grid;
  gap: 12px;
}

.request-record {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.request-record h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 950;
}

.request-record p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 650;
}

.request-record a {
  color: var(--blue);
  font-weight: 850;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #283241;
  font-weight: 950;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.admin-tab:hover:not(.is-active) {
  background: #eef4ff;
}

.admin-tab span {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--blue);
  font-size: 0.76rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-tab.is-active {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(8, 107, 255, 0.32);
}

.admin-tab.is-active span {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.admin-workspace {
  display: grid;
  gap: 18px;
}

.admin-workspace[hidden] {
  display: none;
}

.admin-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.admin-toolbar h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 950;
}

.admin-toolbar p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.admin-toolbar-actions {
  display: flex;
  gap: 10px;
}

.admin-manager-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-list-panel {
  position: sticky;
  top: 98px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  overflow-x: hidden;
}

.admin-item-list {
  gap: 10px;
}

.admin-list-card,
.request-card {
  width: 100%;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.admin-list-card:hover,
.request-card:hover {
  border-color: #9fc1f7;
  background: #f6faff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.admin-list-card.is-selected,
.request-card.is-selected {
  border-color: var(--blue);
  background: #f2f7ff;
  box-shadow: 0 0 0 1px var(--blue) inset;
}

.admin-list-card.is-draft {
  border-style: dashed;
}

.admin-list-card img {
  width: 74px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.admin-list-card span,
.request-card {
  min-width: 0;
}

.admin-list-card strong,
.request-card strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.2;
  font-weight: 950;
}

.admin-list-card small,
.request-card span,
.request-card small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 700;
  text-overflow: ellipsis;
}

.admin-list-card em,
.request-card em {
  display: block;
  margin-top: 7px;
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-editor-panel {
  min-height: 520px;
}

.admin-edit-form,
.request-detail-card {
  display: grid;
  gap: 14px;
}

.admin-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-editor-header p {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-editor-header h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.12;
  font-weight: 950;
}

.admin-editor-header .admin-button,
.admin-color-builder .admin-button,
.admin-color-field-top .admin-button {
  width: auto;
  padding: 0 14px;
}

.request-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-align: right;
}

.request-detail-actions span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.admin-draft-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #b9d0f2;
  border-radius: 8px;
  background: #edf5ff;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-editor-actions .admin-button {
  width: auto;
  padding: 0 16px;
}

.checkbox-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.secondary-admin-button {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.secondary-admin-button:hover {
  border-color: var(--blue);
  background: #edf5ff;
  color: var(--blue);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

/* ============================================================
   Admin UI refresh — clearer button hierarchy + guidance
   ============================================================ */

/* Primary action (Save, Create, Add product) — green so the ONE button that
   commits changes is unmistakable. */
.primary-admin-button {
  border-color: var(--success, #16a34a);
  background: var(--success, #16a34a);
  color: #fff;
}
.primary-admin-button:hover {
  border-color: #12833b;
  background: #12833b;
  color: #fff;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.32);
}

/* Subtle/ghost action for niche or bulk operations (e.g. Fill all colors) so
   they don't compete with the primary action. */
.subtle-admin-button {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  min-height: 38px;
}
.subtle-admin-button:hover {
  border-color: var(--line);
  background: #f2f5fa;
  color: var(--ink);
  box-shadow: none;
}

/* When there are unsaved catalog edits, the Save button pulses gently and a
   pill appears — so nobody navigates away thinking their change is live. */
.admin-button.needs-save {
  border-color: var(--success, #16a34a);
  background: var(--success, #16a34a);
  color: #fff;
  animation: adminSavePulse 1.6s ease-in-out infinite;
}
@keyframes adminSavePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.0); }
  50% { box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.18); }
}
.admin-unsaved-pill {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #fff4d6;
  border: 1px solid #f2d78a;
  color: #92680d;
  font-size: 0.78rem;
  font-weight: 900;
}
.admin-unsaved-pill.show { display: inline-flex; }

/* One-line, plain-language guidance under section headers. */
.admin-hint {
  margin: 0 0 14px;
  padding: 10px 13px;
  border-radius: 10px;
  background: #eef4ff;
  border: 1px solid #d9e6fb;
  color: #34507e;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.5;
}
.admin-hint b { color: #1d3a6b; }

/* Tab emoji icon sizing. */
.admin-tab .tab-ico {
  font-size: 1.05rem;
  line-height: 1;
  filter: saturate(1.1);
}

.admin-color-builder {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbff;
}

.admin-color-builder-head,
.admin-color-field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-color-builder h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 950;
}

.admin-color-builder p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 650;
}

.admin-color-field-list {
  display: grid;
  gap: 10px;
}

.admin-color-field {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-color-field-top strong {
  font-size: 0.9rem;
  font-weight: 950;
}

.admin-empty-state {
  display: grid;
  gap: 9px;
  padding: 22px;
  border: 1px dashed #b6c7df;
  border-radius: 8px;
  background: #f9fbff;
}

.admin-empty-state h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 950;
}

.admin-empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 650;
}

.request-card {
  grid-template-columns: 1fr;
}

.request-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.request-detail-grid p,
.request-detail-section {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 650;
}

.request-detail-grid strong,
.request-detail-section strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-weight: 950;
}

.request-detail-section p,
.request-detail-section ul {
  margin: 0;
}

.request-detail-section ul {
  display: grid;
  gap: 7px;
  padding-left: 18px;
}

.order-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-status-actions .admin-button {
  width: auto;
  padding: 0 14px;
}

.order-print-list {
  display: grid;
  gap: 12px;
}

.order-print-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbff;
}

.order-print-item img {
  width: 110px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  background: #ffffff;
}

.order-print-item h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 950;
}

.order-print-item h4 span {
  color: var(--blue);
}

.order-print-item p {
  margin: 6px 0 0;
}

.request-file-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.request-file-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #b9d0f2;
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue-dark);
  font-weight: 900;
}

@media (max-width: 1280px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
  }

  .hero h1 {
    max-width: 760px;
    font-size: 3.35rem;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 430px;
  }

  .work-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .request-layout,
  .admin-layout,
  .admin-manager-layout {
    /* minmax(0, …): a bare 1fr track can't shrink below its content's
       min-width, so one wide row (tab strip, tier inputs) used to push the
       whole column past the phone screen. */
    grid-template-columns: minmax(0, 1fr);
  }

  /* Grid items default to min-width:auto, which lets a wide descendant
     (settings tier rows, banner rows) overflow the track anyway. */
  .request-layout > *,
  .admin-layout > *,
  .admin-manager-layout > * {
    min-width: 0;
  }

  /* Pricing/shipping tier rows are inline-styled flex without wrap; let them
     wrap on phones instead of running off-screen. */
  .tier-row {
    flex-wrap: wrap;
  }

  .admin-list-panel {
    position: static;
  }

  .helps-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
  }

  html {
    scroll-padding-top: 70px;
  }

  body {
    padding-top: 70px;
  }

  .site-header {
    display: flex;
    justify-content: space-between;
    min-height: 70px;
    padding: 10px 18px;
  }

  .brand span {
    display: none;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .header-action {
    width: 44px;
    min-height: 42px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .header-social {
    gap: 8px;
  }

  .header-social a {
    width: 42px;
    min-height: 42px;
    padding: 0;
  }

  .cart-button {
    width: auto;
    min-height: 42px;
    padding: 0 9px;
  }

  .cart-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .header-social span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  body.admin-body .header-action {
    width: auto;
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .hero,
  .work-band,
  .catalog-section,
  .request-section,
  .admin-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 56px;
    gap: 28px;
  }

  .hero-copy,
  .hero-visual {
    max-width: 354px;
  }

  .hero h1 {
    max-width: 354px;
    font-size: 2.55rem;
    line-height: 1.02;
  }

  .hero p {
    max-width: 354px;
    font-size: 1.04rem;
  }

  .button,
  .manage-link {
    width: 100%;
  }

  .social-row a {
    flex: 1 1 150px;
    justify-content: center;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 300px;
  }

  .hero-visual img {
    object-position: 62% center;
  }

  .section-heading h2,
  .section-heading.compact h2 {
    font-size: 2rem;
  }

  .work-grid,
  .catalog-grid,
  .field-grid,
  .preview-grid,
  .per-item-colors,
  .color-mode-row {
    grid-template-columns: 1fr;
  }

  .form-panel,
  .helps-panel,
  .admin-panel,
  .admin-hero {
    padding: 22px;
  }

  .cart-panel {
    top: 78px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 94px);
    padding: 18px;
  }

  .cart-line-item,
  .order-print-item {
    grid-template-columns: 1fr;
  }

  .cart-line-item img,
  .order-print-item img {
    width: 100%;
    max-height: 220px;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-toolbar-actions,
  .admin-tabs,
  .admin-editor-actions,
  .checkbox-row,
  .request-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-toolbar-actions,
  .admin-editor-actions,
  .order-status-actions,
  .admin-color-builder-head,
  .admin-color-field-top {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-editor-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .request-detail-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    text-align: left;
  }

  .admin-toolbar-actions .admin-button,
  .admin-editor-actions .admin-button,
  .order-status-actions .admin-button,
  .request-detail-actions .admin-button,
  .admin-color-builder .admin-button,
  .admin-color-field-top .admin-button {
    width: 100%;
  }

  /* 2x2 tab grid: flex-basis alone let a tab's min-content ("Templates" +
     count badge) push the hero wider than the phone screen. Grid columns cap
     each tab at half the row; min-width:0 lets the button actually fit. */
  .admin-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-tab {
    min-width: 0;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  /* Phones zoom into focused inputs below 16px — keep every form control at
     16px on small screens so tapping a field never triggers the zoom jump. */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px;
  }

  .item-menu {
    grid-template-columns: 1fr;
  }

  .item-menu-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .item-menu-media img {
    min-height: 260px;
  }

  .item-menu-body {
    padding: 22px;
  }

  .dialog-actions,
  .admin-item-preview-row {
    grid-template-columns: 1fr;
  }

  .admin-preview-image {
    width: 100%;
  }

  .upload-zone {
    align-items: flex-start;
  }

  .site-footer,
  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    padding: 32px 18px;
  }
}

/* ── Requests-only mode (class injected server-side, no flash) ─────────── */
body.requests-only #templates,
body.requests-only #navTemplates,
body.requests-only #heroTemplatesBtn,
body.requests-only #cartButton,
body.requests-only .cart-panel {
  display: none !important;
}
