.admin-page {
  background: #0e101a;
}

.announcement-admin-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.announcement-admin-state { color: #efbb73; font-weight: 600; }

.admin-header {
  background: #141827;
  border-bottom: 1px solid #2b324b;
  color: #eff2f8;
}

.admin-header > .text-link {
  background: #1c2236;
  color: #eef2ff;
  border-color: #343e59;
}

.admin-main {
  width: calc(100% - 40px);
  max-width: 1720px;
  margin: 24px auto 60px;
}

.admin-dashboard:not([hidden]) {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 20px;
  --ink: #edf1fa;
  --muted: #a8b5cc;
  --copper: #f7a331;
  --copper-dark: #dc8818;
  color: var(--ink);
  font-size: 15px;
}

.admin-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  min-width: 0;
  min-height: calc(100vh - 140px);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #3a4361 transparent;
  border: 1px solid #2b324b;
  border-radius: 10px;
  padding: 18px 10px;
  background: #141827;
}
.admin-sidebar::-webkit-scrollbar { width: 8px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: #3a4361; border-radius: 8px; border: 2px solid #141827; }
.admin-sidebar::-webkit-scrollbar-thumb:hover { background: #4a557a; }

.sidebar-brand { padding: 0 8px 18px; }
.sidebar-brand .discovery-kicker { font-size: 10px; letter-spacing: .12em; }
.sidebar-brand strong { display: block; font-size: 16px; margin-top: 6px; }
.sidebar-brand p, .sidebar-note { color: #a8b5cc; font-size: 11px; line-height: 1.5; }
.sidebar-brand p { margin: 5px 0 0; }
.sidebar-note { margin: 24px 10px 0; }
.admin-sidebar .admin-tabs { display: grid; margin: 0; gap: 8px; }
.admin-sidebar .admin-tabs .button {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  background: transparent;
  color: #b4c0d6;
  text-align: left;
}
.admin-sidebar .admin-tabs .button span { min-width: 0; }
.admin-sidebar .admin-tabs .button-primary {
  background: #33291d;
  border-color: #634521;
  color: #ffb744;
}
.admin-sidebar .admin-tabs .button:hover { background: #20283c; color: #fff; }
.sidebar-session { display: grid; gap: 10px; padding: 16px 8px 0; margin-top: 16px; border-top: 1px solid #2b324b; font-size: 12px; }
.sidebar-note:empty { display: none; }
.sidebar-session .text-link { text-align: center; color: #b4c0d6; }
.admin-page .storefront-shortcut {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #ffbd70;
  border-radius: 10px;
  background: #f7a331;
  color: #24180c;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: normal;
}
.admin-page .storefront-shortcut:hover { background: #ffb957; color: #24180c; }
.admin-page .storefront-shortcut:focus-visible { outline: 2px solid #ffd69a; outline-offset: 3px; }
.storefront-shortcut svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-session > div { min-width: 0; }
.sidebar-session .cl-rootBox, .sidebar-session .cl-organizationSwitcher-root { width: 100%; }
.sidebar-session .cl-organizationSwitcherTrigger { width: 100%; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #333b57; border-radius: 12px; background: #1b2136; color: #edf1fa; box-shadow: none; transition: background .2s ease, border-color .2s ease; }
.sidebar-session .cl-organizationSwitcherTrigger:hover, .sidebar-session .cl-organizationSwitcherTrigger:focus-visible { background: #242b45; border-color: #e7a43b; }
.sidebar-session .cl-organizationSwitcherTrigger:focus-visible { outline: 2px solid #e7a43b; outline-offset: 2px; }
.sidebar-session .cl-organizationPreview { min-width: 0; gap: 10px; }
.sidebar-session .cl-organizationPreviewMainIdentifier { color: #edf1fa; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-session .cl-organizationPreviewAvatarBox, .sidebar-session .cl-avatarBox { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 0 0 2px #e7a43b55; }
.sidebar-session .cl-organizationSwitcherTriggerIcon { color: #e7a43b; flex-shrink: 0; }
.admin-content { min-width: 0; }
.category-navigation { display: grid; gap: 6px; padding-left: 12px; border-left: 2px solid #634521; margin-left: 12px; }
.admin-sidebar .category-navigation .button { font-size: 14px; }
.sidebar-group-row { display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: center; gap: 4px; }
.sidebar-group-row .button { min-width: 0; }
.sidebar-mood-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 4px; }
.sidebar-mood-row .button { min-width: 0; }
.sidebar-mood-row .visibility-toggle { width: 44px; padding: 8px; }
.sidebar-group-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #ffb744; cursor: pointer; }
.sidebar-group-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms ease; }
.sidebar-group-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.sidebar-group-toggle:hover, .sidebar-group-toggle:focus-visible { background: #20283c; border-color: #3a4560; outline: none; }
.sidebar-group { display: grid; }
.sidebar-group-inner { display: grid; gap: 8px; min-width: 0; }
.sidebar-group:not(.is-collapsed) .sidebar-group-inner { animation: sidebar-group-in 200ms ease-out; }
.sidebar-group.is-collapsed { display: none; }
@keyframes sidebar-group-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .sidebar-group-inner, .sidebar-group-toggle svg { animation: none !important; transition: none; } }
.category-nav-item { display: grid; grid-template-columns: minmax(0, 1fr) 44px 36px; align-items: center; gap: 4px; }
.visibility-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.visibility-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; max-width: 100%; padding: 8px; border: 1px solid #566382; border-radius: 10px; background: #20283c; color: #e7ecf5; cursor: pointer; }
.visibility-toggle svg { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visibility-toggle[aria-pressed="true"] { color: #ffb744; border-color: #a17634; }
.visibility-toggle[aria-pressed="true"] .visibility-slash { display: none; }
.visibility-toggle:hover, .visibility-toggle:focus-visible { outline: 2px solid #ffb744; outline-offset: 2px; }
.visibility-toggle:disabled { opacity: .55; cursor: wait; }
.visibility-toggle span { overflow-wrap: anywhere; }
#selected-category-visibility:empty { display: none; }
.category-nav-item .button { min-width: 0; overflow-wrap: anywhere; }
.category-nav-delete { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #c98a96; cursor: pointer; }
.category-nav-delete svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.category-nav-delete:hover, .category-nav-delete:focus-visible { background: #3a2129; border-color: #79505c; color: #ffb7b7; outline: none; }
#category-manager { margin-bottom: 24px; }
#category-manager[hidden] { display: none; }
.homepage-category-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid #343f5b; padding-block: 14px; }
.homepage-category-row .order-actions { margin: 0; }
.admin-dashboard .category-delete-button { color: #ffb7b7; border-color: #79505c; }
#category-cleanup[hidden] { display: none; }
#delete-selected-category[hidden] { display: none; }
.danger-dialog { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: auto; border: 1px solid #3a4560; border-radius: 18px; background: #171d2c; color: #e7ecf5; box-shadow: 0 30px 80px rgb(0 0 0 / 55%); }
.danger-dialog[open] { animation: danger-dialog-in 180ms ease-out; }
.danger-dialog::backdrop { background: rgb(6 9 16 / 72%); backdrop-filter: blur(4px); }
.danger-dialog form { display: grid; gap: 16px; padding: 24px; }
.danger-dialog-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.danger-dialog-head .discovery-kicker { color: #ff9eaa; }
.danger-dialog h2 { margin: 2px 0 0; font-family: "Playfair Display", serif; font-size: clamp(21px, 5vw, 26px); font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.danger-dialog-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #3a1f28; color: #ff9eaa; border: 1px solid #6b3a47; }
.danger-dialog-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.danger-dialog-close { align-self: start; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: #8e9ab3; font-size: 24px; line-height: 1; cursor: pointer; }
.danger-dialog-close:hover, .danger-dialog-close:focus-visible { background: #242c40; color: #fff; outline: none; }
.danger-dialog-summary { margin: 0; color: #b4c0d6; line-height: 1.55; }
.danger-dialog-summary strong { color: #ffb7b7; font-weight: 600; }
.danger-dialog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.danger-dialog-card { padding: 14px 16px; border-radius: 12px; border: 1px solid; }
.danger-dialog-card h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.danger-dialog-card ul { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: #cdd5e4; font-size: 14px; line-height: 1.4; }
.danger-dialog-card.is-removed { background: #2a1820; border-color: #5b3140; }
.danger-dialog-card.is-removed h3 { color: #ff9eaa; }
.danger-dialog-card.is-kept { background: #16261f; border-color: #2f5443; }
.danger-dialog-card.is-kept h3 { color: #8fe0b5; }
.danger-dialog-confirm { color: #cdd5e4; font-size: 14px; }
.danger-dialog-confirm strong { padding: 1px 6px; border-radius: 6px; background: #242c40; color: #ffb744; font-weight: 600; overflow-wrap: anywhere; }
.danger-dialog input { width: 100%; margin-top: -8px; padding: 12px 14px; border: 1px solid #3a4560; border-radius: 10px; background: #0f1420; color: #fff; font: inherit; }
.danger-dialog input:focus { border-color: #ffb744; outline: 2px solid rgb(255 183 68 / 25%); }
.danger-dialog input.is-match { border-color: #e0596f; }
.danger-dialog-hint { min-height: 18px; margin: -10px 0 0; color: #8e9ab3; font-size: 13px; }
.danger-dialog-hint.is-error { color: #ff9eaa; }
.danger-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.danger-dialog .button { min-height: 44px; padding: 10px 20px; border: 1px solid #3a4560; border-radius: 10px; background: #20283c; color: #e7ecf5; font-weight: 600; cursor: pointer; }
.danger-dialog .button:hover { background: #2a3550; }
.danger-dialog .danger-dialog-submit { background: #c9364f; border-color: #c9364f; color: #fff; }
.danger-dialog .danger-dialog-submit:not(:disabled):hover { background: #e0465f; }
.danger-dialog .danger-dialog-submit:disabled { background: #3a2a31; border-color: #4a3540; color: #8d7680; cursor: not-allowed; }
@keyframes danger-dialog-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@media (max-width: 520px) {
  .danger-dialog form { padding: 18px; }
  .danger-dialog-grid { grid-template-columns: 1fr; }
  .danger-dialog-icon { width: 40px; height: 40px; }
  .danger-dialog-actions .button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .danger-dialog[open] { animation: none; } }
.admin-session-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
#homepage-category-form { margin-top: 24px; }
.admin-content h1 { font-family: var(--sans); font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.5px; }
.admin-content h2 { font-family: var(--sans); font-size: 20px; font-weight: 600; }
.admin-content h3 { font-size: 17px; }
.admin-content p { color: #a8b5cc; line-height: 1.65; }
.admin-content .discovery-kicker, .sidebar-brand .discovery-kicker { color: #f7a331; }
.admin-content .admin-title-row { align-items: flex-start; margin-bottom: 24px; }
.admin-content .admin-message { color: #ffc677; margin-block: 12px; }

.admin-dashboard .collection-editor,
.admin-dashboard .admin-collection-list,
.admin-dashboard .order-card,
.admin-dashboard .address-share,
.studio-panel {
  background: #151a2b;
  border: 1px solid #2b3450;
  box-shadow: none;
  border-radius: 12px;
  padding: 22px;
  min-width: 0;
}
.admin-dashboard .button,
.admin-dashboard button.text-link,
.admin-dashboard .order-actions .button,
.admin-dashboard .orders-pagination .button,
.admin-dashboard .orders-list-heading .button {
  background: #20273c;
  border: 1px solid #3b4764;
  color: #ecf1ff;
  min-height: 44px;
  border-radius: 8px;
}
.admin-dashboard .button-primary,
.admin-dashboard .order-actions .button-primary {
  background: #f59c24;
  border-color: #f59c24;
  color: #15111a;
}
.admin-dashboard .button:hover,
.admin-dashboard button.text-link:hover { background: #303c57; }
.admin-dashboard .button-primary:hover,
.admin-dashboard .order-actions .button-primary:hover { background: #ffb33f; }
.admin-dashboard .collection-order .collection-delete { width: auto; padding-inline: 10px; font-size: 13px; color: #ffb7b7; border-color: #79505c; }
.admin-dashboard .collection-order .collection-delete:hover { background: #452934; }
.admin-sidebar .admin-tabs .button { border-color: transparent; background: transparent; color: #b4c0d6; }
.admin-sidebar .admin-tabs .button-primary { background: #33291d; border-color: #634521; color: #ffb744; }
.admin-dashboard input:not([type="checkbox"], [type="file"]),
.admin-dashboard select,
.admin-dashboard textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  font: 15px/1.5 var(--sans);
  color: #f0f3fa;
  background: #101524;
  border: 1px solid #343f5b;
  border-radius: 7px;
  color-scheme: dark;
}
.admin-dashboard input::placeholder { color: #8494b1; }
.admin-dashboard label { color: #c1cbe0; }
.admin-dashboard .collection-editor > label,
.admin-dashboard .form-grid label,
.label-editor label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.admin-dashboard .upload-field input[type="file"] { background: #101524; border-color: #4a5774; color: #c1cbe0; }
.admin-dashboard .upload-field input::file-selector-button { background: #28334d; color: #eef2fa; border-color: #465475; }
.admin-dashboard .collection-edit-link { color: #eff2fa; }
.admin-dashboard .collection-edit-link span,
.admin-dashboard .product-option small,
.admin-dashboard .upload-field small { color: #a8b5cc; }
.admin-dashboard .admin-collection-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 14px 12px;
  border-color: #2b3450;
  box-sizing: border-box;
}
.admin-dashboard .collection-edit-link {
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.admin-dashboard .collection-order {
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}
.admin-dashboard .admin-collection-list { container-type: inline-size; }
@container (min-width: 420px) {
  .admin-dashboard .admin-collection-item { grid-template-columns: minmax(0, 1fr) auto; }
}
.admin-dashboard .admin-collection-item.is-selected {
  background: #33291d;
  box-shadow: inset 3px 0 #f7a331;
  border-radius: 8px;
}
.admin-dashboard .admin-collection-item.is-selected .collection-edit-link { color: #ffb744; }
.admin-dashboard .admin-collection-item.is-selected .collection-edit-link span { color: #e2c99e; }
.admin-dashboard .collection-order button { background: #20273c; border-color: #3b4764; color: #edf1fa; }
.admin-dashboard .collection-order button:not(:disabled):hover { background: #33415b; }
.admin-dashboard .product-option { border-color: #343f5b; }
.admin-dashboard .product-option:hover,
.admin-dashboard .product-option:has(input:checked) { background: #27334a; border-color: #f7a331; }
.admin-dashboard fieldset { border-color: #343f5b; }
.admin-dashboard legend { color: #b4c0d6; font-size: 13px; font-weight: 600; padding-inline: 8px; text-transform: uppercase; letter-spacing: 0.8px; }
.admin-dashboard .order-status { color: #9ce8c3; background: #18352f; border: 1px solid #2d5147; font-size: 12px; }
.admin-dashboard .admin-workspace { grid-template-columns: 300px minmax(0, 1fr); gap: 20px; }
.admin-dashboard .shipping-forms { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.admin-dashboard .order-card .order-address { color: #d3ddf1; }

.label-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; align-items: start; }
#labels-section .label-workspace { grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
#labels-section #label-form { display: contents; }
.shipment-overview { grid-column: 1 / -1; }
.label-address-stack { display: grid; gap: 16px; min-width: 0; }
#labels-section .shipment-card { padding: 18px; }
#labels-section .shipment-overview .shipment-card-heading { margin-bottom: 12px; }
#labels-section .shipment-overview .shipment-field-groups { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; }
#labels-section .shipment-overview .shipment-field-group { background: #101523; padding: 12px; }
#labels-section .shipment-overview label { font-size: 12px; gap: 6px; }
#labels-section .shipment-overview input { min-height: 40px; padding: 9px 12px; }
#label-recipient-summary { white-space: pre-line; font-size: 13px; line-height: 1.65; color: #c1cde1; }
.label-history-card h2 { margin: 0 0 12px; color: #f0f3fa; font-size: 14px; }
.label-history-card #label-history { margin: 0 0 12px; padding: 12px; border: 1px solid #343f5b; border-radius: 8px; background: #1c2233; color: #d5deed; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
#labels-section .label-preview-panel { gap: 12px; }
#labels-section .label-preview-panel .studio-panel { border-radius: 12px; }
#labels-section .label-print-actions { gap: 8px; }
#labels-section .label-print-actions h2 { margin-bottom: 4px; }
#labels-section .label-print-actions .button { width: 100%; justify-content: center; min-height: 44px; font-size: 13px; }
#labels-section > .orders-list-heading { margin-top: 28px; }
@media (max-width: 1100px) {
  #labels-section .label-workspace { grid-template-columns: minmax(0, 1fr); }
  #labels-section .shipment-overview .shipment-field-groups { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  #labels-section .shipment-card { padding: 16px; }
}
.label-editor { display: grid; gap: 18px; min-width: 0; }
.label-editor .studio-panel { margin: 0; }
.admin-dashboard .label-editor legend {
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid #ffb744;
  border-radius: 7px;
  background: #ffb744;
  color: #15111a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.shipment-card { min-width: 0; padding: 22px; }
.shipment-card-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.shipment-step { display: inline-grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid #7c6237; border-radius: 10px; background: #33291d; color: #ffbd57; font-size: 12px; font-weight: 700; }
.shipment-card-heading h2 { margin: 0 0 5px; font-size: 18px; color: #f0f3fa; }
.shipment-card-heading p, .shipment-field-help { margin: 0; color: #aebbd1; font-size: 13px; line-height: 1.6; }
.shipment-field-groups { display: grid; gap: 20px; }
.admin-dashboard .label-editor .shipment-field-group { min-width: 0; margin: 0; padding: 16px; border: 1px solid #343f5b; border-radius: 12px; }
.admin-dashboard .label-editor .shipment-field-group legend { padding: 0 8px; border: 0; background: transparent; color: #c9d3e5; font-size: 12px; letter-spacing: .5px; }
.shipment-field-group .shipment-field-help { margin-bottom: 14px; }
.sender-card > summary { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; list-style: none; min-height: 44px; }
.sender-card > summary::-webkit-details-marker { display: none; }
.sender-card > summary:focus-visible { outline: 2px solid #ffb744; outline-offset: 6px; border-radius: 6px; }
.sender-summary-copy { display: grid; gap: 7px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sender-summary-title { font-size: 16px; font-weight: 600; color: #f0f3fa; }
#label-sender-summary { font-size: 13px; line-height: 1.5; color: #c1cde1; }
.sender-status { font-size: 12px; color: #e7bb75; line-height: 1.5; }
.sender-expand-label { display: inline-flex; align-items: center; gap: 5px; color: #ffbd57; font-size: 12px; padding-block: 8px; }
.sender-expand-label svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.sender-card[open] .sender-expand-label svg { transform: rotate(180deg); }
.sender-card .sender-close-label, .sender-card[open] .sender-edit-label { display: none; }
.sender-card[open] .sender-close-label { display: inline; }
.sender-card-editor { margin-top: 20px; padding-top: 20px; border-top: 1px solid #343f5b; }
.sender-card-editor > p { margin-bottom: 18px; }
.sender-save-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
#label-sender-message { flex: 1 1 180px; margin: 0; font-size: 13px; color: #b9dec9; overflow-wrap: anywhere; }
#label-sender-message.is-error { color: #ffb7b7; }
.shipment-save-bar { display: grid; gap: 14px; }
.shipment-save-bar p { margin: 0; font-size: 13px; line-height: 1.6; }
@media (max-width: 480px) {
  .shipment-card { padding: 16px; }
  .shipment-card-heading, .sender-card > summary { gap: 9px; }
  .sender-expand-label { font-size: 0; }
  .sender-save-row .button { width: 100%; }
  .admin-dashboard .label-editor .shipment-field-group { padding: 12px; }
}
.label-preview-panel { display: grid; gap: 18px; position: sticky; top: 20px; min-width: 0; }
.label-preview-panel .studio-panel { padding: 16px; container-type: inline-size; }
.label-preview-panel h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #a8b5cc; margin: 0 0 14px; }
.label-print-actions { display: grid; gap: 12px; }
.label-print-actions p, .preview-help { font-size: 12px; margin: 0; }
.preview-help { margin-top: 12px !important; }

.label-paper {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 150cqw;
  aspect-ratio: 2 / 3;
  padding: 5%;
  background: #fff;
  color: #111;
  font-family: Arial, sans-serif;
  line-height: 1.4;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
.label-paper > * { flex-shrink: 0; }
.label-paper .label-brand { display: grid; gap: 1.5cqw; border-bottom: 1px solid #222; padding-bottom: 3cqw; }
.label-paper .label-brand strong { font-size: 6cqw; letter-spacing: 1cqw; }
.label-paper .label-brand span { font-size: 2.7cqw; }
.label-paper section { padding-block: 3cqw; border-bottom: 1px solid #333; }
.label-paper h2 { font: 700 3cqw/1.3 Arial, sans-serif; margin: 0 0 2cqw; color: #111; letter-spacing: 0; }
.label-paper strong { font-size: 4.5cqw; }
.label-paper p { color: #111; font: 3.3cqw/1.4 Arial, sans-serif; margin: 1cqw 0; }
.label-paper .label-from p { font-size: 3cqw; }
.label-paper .label-from strong { font-size: 3.5cqw; }
.label-paper .label-box { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #222; margin-top: 2cqw; }
.label-paper .label-box > div { padding: 2cqw; min-width: 0; }
.label-paper .label-box > div + div { border-left: 1px solid #222; }
.label-paper .label-box b { display: block; font-size: 2.5cqw; }
.label-paper .label-box span { font-size: 3cqw; }
.label-paper footer { margin-top: auto; padding-top: 2cqw; color: #333; font: 2.5cqw/1.4 Arial, sans-serif; }

.reusable-link-panel label { display: grid; gap: 10px; }
.reusable-link-panel h2 { margin-top: 0; }
.studio-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #2b3450; border-radius: 12px; background: #151a2b; }
.studio-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.studio-table th { color: #9aabc6; text-transform: uppercase; font-size: 12px; letter-spacing: 0.7px; text-align: left; background: #111627; }
.studio-table th, .studio-table td { padding: 16px; border-bottom: 1px solid #2b3450; vertical-align: top; }
.studio-table tbody tr:last-child td { border-bottom: 0; }
.studio-table td { color: #c9d3e6; line-height: 1.6; }
.studio-table td strong { color: #f2f4fa; }
.studio-table small { color: #9aabc6; }
.studio-table .button { white-space: nowrap; }
.address-actions { display: flex; align-items: center; gap: 10px; }
.address-delete { flex: 0 0 44px; width: 44px; height: 44px; }
.address-delete:focus-visible { outline: 2px solid #ffb744; outline-offset: 2px; }
.address-delete:disabled { opacity: .55; cursor: wait; }
.admin-dashboard section[hidden],
.admin-dashboard div[hidden],
.admin-dashboard a[hidden] { display: none; }

@media (max-width: 1350px) {
  .admin-dashboard .admin-workspace { grid-template-columns: 1fr; }
  .admin-dashboard .admin-collection-list { position: static; }
  .label-workspace { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1100px) {
  .admin-dashboard:not([hidden]) { grid-template-columns: 224px minmax(0, 1fr); gap: 18px; }
  .label-workspace { grid-template-columns: 1fr; }
  .label-preview-panel { position: static; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
  .admin-dashboard .shipping-forms { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .admin-main { width: calc(100% - 24px); margin-top: 16px; }
  .admin-dashboard:not([hidden]) { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; min-height: 0; max-height: none; overflow: visible; scrollbar-gutter: auto; padding: 16px; }
  .sidebar-brand { padding-bottom: 12px; }
  .admin-sidebar .admin-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-navigation { grid-column: 1 / -1; margin-left: 0; }
  .sidebar-group-row, .sidebar-group { grid-column: 1 / -1; }
  .admin-sidebar .admin-tabs .button { padding: 10px; font-size: 13px; }
  .sidebar-session { display: flex; flex-wrap: wrap; align-items: center; padding-top: 16px; margin-top: 16px; }
  .sidebar-note { margin-top: 12px; }
  .label-preview-panel { grid-template-columns: 1fr; max-width: 390px; width: 100%; margin-inline: auto; }
  .admin-dashboard .studio-panel, .admin-dashboard .collection-editor { padding: 16px; }
  .admin-content .form-grid { grid-template-columns: 1fr; }
}

@media print {
  @page { size: 4in 6in; margin: 0; }
  body.printing-shipping-label #shipping-print-label {
    display: flex;
    width: 4in;
    height: 6in;
    aspect-ratio: auto;
    max-width: none;
    padding: 0.2in;
    border-radius: 0;
    margin: 0;
    box-sizing: border-box;
    color: #111;
    background: #fff;
    break-inside: avoid;
    font-family: Arial, sans-serif;
  }
  #shipping-print-label h2 { font: 700 3cqw/1.3 Arial, sans-serif; }
}

/* Instagram feed manager */
#instagram-section .admin-message.is-error { color: #ff9eaa; }
.instagram-upload {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
}
.instagram-drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  overflow: hidden;
  border: 2px dashed #3b4764;
  border-radius: 12px;
  background: #10141f;
  cursor: pointer;
  text-align: center;
  transition: border-color 200ms ease, background 200ms ease;
}
.instagram-drop:hover, .instagram-drop:focus-within { border-color: #f59c24; background: #171c2c; }
.instagram-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.instagram-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.instagram-drop-text { display: grid; gap: 6px; padding: 18px; }
.instagram-drop-text strong { color: #ffb744; font-size: 16px; }
.instagram-drop-text small { color: #a8b5cc; font-size: 13px; line-height: 1.5; }
.instagram-drop-text[hidden] { display: none; }
.instagram-upload-fields { display: grid; align-content: center; gap: 16px; min-width: 0; }
.instagram-upload-fields label { display: grid; gap: 8px; }
.instagram-upload-fields label small { color: #a8b5cc; font-weight: 400; }
.instagram-size-hint { margin: 0; padding: 10px 12px; border: 1px solid #2c3550; border-radius: 10px; background: #141a28; color: #a8b5cc; font-size: 13px; line-height: 1.5; }
.instagram-size-hint strong { color: #ffb744; }
.instagram-count { color: #a8b5cc; font-size: 14px; align-self: center; }
.instagram-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.instagram-admin-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #2b3450;
  border-radius: 12px;
  background: #151a2b;
}
.instagram-admin-thumb { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 9px; background: #10141f; }
.instagram-admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.instagram-admin-thumb span {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 14px;
  background: rgba(14, 16, 26, 0.78);
  color: #ffb744;
  font-weight: 700;
  font-size: 13px;
}
.instagram-admin-caption { display: grid; gap: 6px; font-size: 13px; color: #a8b5cc; }
.instagram-admin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.instagram-admin-actions .button { width: 100%; min-width: 0; padding-inline: 8px; font-size: 13px; justify-content: center; }
.instagram-admin-actions [data-save], .instagram-admin-actions [data-delete] { grid-column: span 1; }
.admin-dashboard .instagram-admin-actions [data-delete] { color: #ffb7b7; border-color: #79505c; }
.admin-dashboard .instagram-admin-actions [data-delete]:hover { background: #452934; }
.instagram-admin-actions .button:disabled { opacity: 0.4; cursor: not-allowed; }
.instagram-empty { grid-column: 1 / -1; margin: 0; padding: 28px; border: 1px dashed #3b4764; border-radius: 12px; color: #a8b5cc; text-align: center; }
@media (max-width: 640px) {
  .instagram-upload { grid-template-columns: 1fr; }
  .instagram-drop { min-height: 170px; }
  .instagram-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .instagram-admin-card { padding: 8px; }
  .instagram-admin-actions { grid-template-columns: 1fr; }
}
.product-admin-workspace { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr); gap: 20px; align-items: start; }
.product-admin-workspace > * { min-width: 0; }
#products-section > .admin-title-row > div { flex: 1; min-width: 0; }
#new-product { flex: 0 0 auto; white-space: nowrap; min-height: 44px; padding-inline: 20px; }
.product-search-panel { display: flex; flex-direction: column; gap: 10px; height: clamp(380px, 68dvh, 760px); position: sticky; top: 20px; overflow: hidden; }
.product-search-panel > label { font-size: 14px; font-weight: 600; }
.product-search-panel > input { width: 100%; flex: 0 0 auto; }
.product-search-help { margin: 0; color: #a8b5cc; font-size: 12px; line-height: 1.5; }
#product-catalogue-list { min-height: 0; flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; overscroll-behavior: contain; scrollbar-width: thin; padding: 3px; }
.product-catalogue-row { padding: 6px; border: 1px solid transparent; border-radius: 10px; }
.product-catalogue-row.is-selected { background: #33291d; border-color: #b97b24; box-shadow: inset 3px 0 #f7a331; }
.product-catalogue-row.is-selected .product-catalogue-item { color: #ffb744; }
.product-catalogue-row.is-selected .product-catalogue-item small { color: #e2c99e; }
.product-catalogue-row .product-catalogue-item { min-width: 0; cursor: pointer; }
@media (max-width: 800px) {
  .product-search-panel { position: static; height: 360px; height: clamp(280px, 45dvh, 400px); }
}
.product-description-editor { display: grid; gap: 8px; min-width: 0; }
.product-description-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-description-heading label { font-size: 14px; font-weight: 500; }
.product-description-heading .visibility-toggle { flex-shrink: 0; }
.product-description-editor small { color: #a8b5cc; font-size: 12px; line-height: 1.6; }
.product-catalogue-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 8px; }
.product-catalogue-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid #2b3450; background: transparent; text-align: left; }
.product-catalogue-item img, .product-photo-empty { width: 55px; height: 55px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.product-catalogue-item > span:nth-child(2) { display: grid; gap: 5px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.product-catalogue-item small { color: #a8b5cc; }
.product-photo-panel { min-width: 0; margin: 8px 0; padding: clamp(16px, 2vw, 24px); border: 1px solid #343f5b; border-radius: 16px; background: #101524; }
.product-photo-editor { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 20px; }
.product-photo-frame { display: grid; place-items: center; width: 120px; aspect-ratio: 1; overflow: hidden; border: 1px solid #343f5b; border-radius: 12px; background: #191f30; }
.product-photo-editor img { width: 100%; height: 100%; object-fit: contain; }
.product-photo-editor img[hidden] { display: none; }
.product-photo-placeholder { display: grid; justify-items: center; gap: 10px; color: #a8b5cc; font-size: 12px; }
.product-photo-placeholder svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.product-photo-frame:has(img:not([hidden])) .product-photo-placeholder { display: none; }
.product-photo-upload, .product-photo-url { display: grid; gap: 10px; min-width: 0; }
.admin-dashboard .product-photo-upload > label, .admin-dashboard .product-photo-url > label { font-size: 14px; font-weight: 600; color: #edf1fa; }
.product-photo-upload p { margin: 0; color: #a8b5cc; font-size: 13px; line-height: 1.6; }
.product-photo-panel small { color: #a8b5cc; font-size: 12px; line-height: 1.6; }
.admin-dashboard .product-photo-upload input[type="file"] { display: block; width: 100%; min-width: 0; max-width: 100%; padding: 6px; border: 1px dashed #465475; border-radius: 10px; background: #141a29; color: #c1cbe0; font: inherit; font-size: 13px; cursor: pointer; }
.product-photo-upload input::file-selector-button { min-height: 38px; margin-right: 10px; padding: 8px 12px; border: 1px solid #79532b; border-radius: 7px; background: #33291d; color: #ffcb81; font: inherit; font-weight: 600; cursor: pointer; }
.product-photo-upload input::file-selector-button:hover { background: #49351f; }
.product-photo-panel input:focus-visible { outline: 2px solid #f7a331; outline-offset: 3px; }
.product-photo-url { margin-top: 20px; padding-top: 20px; border-top: 1px solid #2b324b; }
.product-photo-url input { width: 100%; min-width: 0; font-size: 14px; }
@media (max-width: 1100px) { .product-photo-editor { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 16px; } }
.product-gallery-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.product-gallery-item { position: relative; aspect-ratio: 1; overflow: hidden; border: 2px solid #343f5b; border-radius: 10px; background: #191f30; }
.product-gallery-item.is-hero { border-color: #f7a331; }
.product-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-gallery-item button { position: absolute; top: 4px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(15, 18, 30, .85); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.product-gallery-item .gallery-star { left: 4px; color: #f7a331; }
.product-gallery-item .gallery-remove { right: 4px; }
.product-gallery-item button:focus-visible { outline: 2px solid #f7a331; outline-offset: 2px; }
.product-total-count { margin: 0 0 14px; color: #a8b5cc; font-size: 14px; }
.watermark-panel { margin-bottom: 20px; }
.watermark-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) auto; gap: 16px; align-items: end; margin: 14px 0; }
.watermark-grid input[type="range"] { width: 100%; }
.watermark-active { padding-bottom: 8px; }
@media (max-width: 800px) { .watermark-grid { grid-template-columns: minmax(0, 1fr); } }
.product-total-count strong { color: #f7a331; font-size: 20px; }
.product-title-count { display: inline-block; min-width: 32px; margin-left: 10px; padding: 2px 12px; border-radius: 999px; background: #33291d; color: #ffcb81; font-size: 18px; font-weight: 700; text-align: center; vertical-align: middle; }
.product-title-count:empty { display: none; }
.mood-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mood-admin-card label { display: grid; gap: 8px; }
.mood-admin-card p, #product-editor > p { color: #a8b5cc; font-size: 14px; }
#products-message.is-error, #moods-message.is-error, #featured-message.is-error { color: #ff9eaa; }
.featured-choice { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.featured-choice input { width: 20px; height: 20px; }
@media (max-width: 800px) { .product-admin-workspace, .mood-admin-grid { grid-template-columns: 1fr; } }

.testimonial-link-panel { margin-bottom: 24px; }
.testimonial-link-panel > label { display: grid; gap: 8px; margin-block: 16px; }
.testimonial-link-panel p, #testimonial-form > p { color: #a8b5cc; line-height: 1.65; }
.testimonial-admin-workspace { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 20px; }
.testimonial-admin-workspace > *, .testimonial-filters > label { min-width: 0; }
.testimonial-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-bottom: 20px; }
.testimonial-filters label { display: grid; gap: 8px; }
.testimonial-admin-card { padding: 20px 0; border-top: 1px solid #2b3450; overflow-wrap: anywhere; }
.testimonial-admin-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.testimonial-status { padding: 5px 10px; border: 1px solid #614d30; border-radius: 20px; background: #33291d; color: #ffcb81; font-size: 12px; }
.testimonial-status.is-published { background: #1c332e; color: #a8ddc9; border-color: #3c6558; }
.testimonial-admin-meta { color: #a8b5cc; font-size: 13px; }
.testimonial-admin-card blockquote { margin: 14px 0 20px; white-space: pre-wrap; line-height: 1.7; color: #edf1fa; }
#testimonials-message.is-error { color: #ff9eaa; }
@media (max-width: 1100px) { .testimonial-admin-workspace { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .testimonial-filters { grid-template-columns: 1fr; } }
.promotion-preview { padding: 18px; border: 1px solid #ad8454; border-radius: 12px; background: #623d28; color: #fff1da; overflow-wrap: anywhere; }
#promotion-section .product-options { display: grid; gap: 12px; max-height: 320px; overflow-y: auto; }
#promotion-section .check-label span { overflow-wrap: anywhere; min-width: 0; }
#promotion-products[hidden] { display: none; }
/* Newsletter subscribers */
.newsletter-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 14px;
  margin-bottom: 16px;
}
.newsletter-stat { display: grid; gap: 4px; padding: 16px 18px; }
.newsletter-stat span { color: var(--muted); font-size: 13px; }
.newsletter-stat strong { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.1; }
.newsletter-admin-search {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin-bottom: 14px;
}
.newsletter-admin-search input {
  flex: 1;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #d5c6b1;
  border-radius: 4px;
  background: #fffaf2;
  font: inherit;
}
#newsletter-list a { color: inherit; text-decoration-color: rgba(174, 84, 25, 0.4); }
@media (max-width: 560px) {
  .newsletter-stats { grid-template-columns: 1fr 1fr; }
}
/* Sidebar navigation: grouped, consistent line icons */
.admin-sidebar .admin-tabs { gap: 3px; min-width: 0; align-items: stretch; }
.admin-sidebar .admin-tabs > * { min-width: 0; }
.admin-sidebar .admin-message { margin: 4px 8px 8px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.admin-sidebar .admin-message[hidden] { display: none; }
.admin-sidebar .sidebar-heading {
  margin: 16px 0 4px;
  padding: 0 9px;
  border: 0;
  background: transparent;
  color: #94a3bd;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.admin-sidebar .sidebar-heading:first-child { margin-top: 0; }
.admin-sidebar .admin-tabs .button {
  position: relative;
  gap: 9px;
  min-height: 36px;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  transform: none;
  transition: background .18s ease, color .18s ease;
}
.admin-sidebar .admin-tabs .button > span { width: auto; font-size: inherit; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.admin-sidebar .admin-tabs .button { min-width: 0; white-space: normal; overflow-wrap: anywhere; letter-spacing: normal; }
.admin-sidebar .admin-tabs .button > span[aria-hidden="true"] { flex: 0 0 18px; }
.admin-sidebar .nav-icon {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
}
.admin-sidebar .admin-tabs .button:hover .nav-icon,
.admin-sidebar .admin-tabs .button-primary .nav-icon { opacity: 1; }
.admin-sidebar .admin-tabs .button-primary { border-color: transparent; background: #2a2219; font-weight: 500; }
.admin-sidebar .admin-tabs .button-primary::before {
  content: none;
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #ffb744;
}
.admin-sidebar .admin-tabs .button-primary:hover { background: #33291d; color: #ffb744; }
.admin-sidebar .admin-tabs .button:focus-visible { outline: 2px solid #e7a43b; outline-offset: 1px; }
.admin-sidebar .sidebar-group-toggle { width: 32px; height: 36px; }
.admin-sidebar .sidebar-group-row { grid-template-columns: minmax(0, 1fr) 32px; }
.admin-sidebar .sidebar-mood-row { grid-template-columns: minmax(0, 1fr) 32px; }
.admin-sidebar .visibility-toggle { min-width: 32px; min-height: 32px; width: 32px; padding: 6px; border-color: transparent; background: transparent; }
.admin-sidebar .visibility-toggle svg { flex-basis: 17px; width: 17px; height: 17px; }
.admin-sidebar .category-nav-item { grid-template-columns: minmax(0, 1fr) 32px 28px; align-items: center; gap: 2px; }
.admin-sidebar .category-navigation { padding-left: 6px; margin-left: 6px; }
.admin-sidebar .category-nav-delete { width: 28px; height: 32px; }
.admin-sidebar .category-nav-delete svg { width: 15px; height: 15px; }
.admin-sidebar .sidebar-group-inner { gap: 3px; padding: 2px 0 4px; }
.admin-sidebar .category-navigation .button { min-height: 36px; padding: 7px 4px; font-size: 12px; font-weight: 400; }
@media (max-width: 760px) {
  .admin-sidebar .sidebar-heading { grid-column: 1 / -1; margin-top: 10px; }
  .admin-sidebar .sidebar-group-row, .admin-sidebar .sidebar-group { grid-column: 1 / -1; }
  .admin-sidebar .sidebar-mood-row, .admin-sidebar .admin-message { grid-column: 1 / -1; }
  .admin-sidebar .admin-tabs .button { min-height: 44px; padding: 10px; font-size: 13px; }
}
@media (pointer: coarse), (max-width: 760px) {
  .admin-sidebar .admin-tabs .button, .admin-sidebar .category-navigation .button { min-height: 44px; }
  .admin-sidebar .sidebar-group-row, .admin-sidebar .sidebar-mood-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .admin-sidebar .category-nav-item { grid-template-columns: minmax(0, 1fr) 44px 44px; }
  .admin-sidebar .visibility-toggle, .admin-sidebar .sidebar-group-toggle, .admin-sidebar .category-nav-delete { min-width: 44px; min-height: 44px; width: 44px; height: 44px; }
}
@media (max-width: 480px) {
  .admin-sidebar .admin-tabs { grid-template-columns: minmax(0, 1fr); }
  .sidebar-session { display: grid; grid-template-columns: minmax(0, 1fr); }
}

.instagram-profile-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, .55fr); align-items: stretch; gap: 24px; margin-bottom: 24px; }
.instagram-profile-heading, .instagram-profile-footer { grid-column: 1 / -1; min-width: 0; }
.instagram-profile-heading h2 { margin: 8px 0; font-size: 21px; }
.instagram-profile-heading p, .instagram-profile-fields > p, .instagram-profile-scope { margin: 0; color: #a8b5cc; font-size: 13px; line-height: 1.7; }
.instagram-profile-fields { display: grid; align-content: start; gap: 14px; min-width: 0; }
.instagram-profile-upload { display: grid; justify-items: center; gap: 10px; min-width: 0; padding: 24px 18px; border: 1px dashed #56617b; border-radius: 14px; background: #111624; text-align: center; }
.instagram-profile-upload:focus-within { border-color: #ffbd70; outline: 2px solid #ffbd70; outline-offset: 3px; }
.instagram-profile-upload-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #33291d; color: #ffbd70; }
.instagram-profile-upload-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.instagram-profile-upload label { font-weight: 600; color: #edf1fa; }
.instagram-profile-upload p { margin: 0; color: #a8b5cc; font-size: 12px; }
.instagram-profile-fields input[type="file"] { width: 100%; max-width: 100%; min-width: 0; margin-top: 6px; border: 1px solid #333e59; border-radius: 9px; background: #1a2133; color: #c4cee0; font: inherit; font-size: 12px; text-align: left; }
.instagram-profile-fields input::file-selector-button { min-height: 44px; margin-right: 12px; padding: 10px 14px; border: 0; border-right: 1px solid #333e59; background: #283149; color: #edf1fa; font: inherit; font-weight: 600; cursor: pointer; }
.instagram-profile-fields input:disabled { opacity: .55; cursor: not-allowed; }
.instagram-profile-fields input:disabled::file-selector-button { cursor: not-allowed; }
.instagram-profile-fields > p strong { color: #dce3f1; }
.instagram-profile-preview { display: grid; align-content: center; justify-items: center; gap: 16px; min-width: 0; margin: 0; padding: 24px 16px; border: 1px solid #354057; border-radius: 14px; background: radial-gradient(ellipse at top, #30291f 0%, #171c2b 70%); text-align: center; }
.instagram-profile-preview-label { color: #d4b383; font-size: 10px; font-weight: 600; letter-spacing: .14em; }
.instagram-profile-preview img { width: 112px; height: 112px; border: 2px solid #e7a43b; border-radius: 50%; object-fit: cover; padding: 4px; background: #f6efe4; box-shadow: 0 0 0 7px #e7a43b0d; }
.instagram-profile-preview figcaption { display: grid; gap: 6px; }
.instagram-profile-preview small { color: #a8b5cc; font-size: 12px; }
.instagram-profile-preview-note { color: #a8b5cc; font-size: 11px; line-height: 1.6; }
.instagram-profile-footer { display: grid; gap: 16px; padding-top: 20px; border-top: 1px solid #2b3450; }
.instagram-profile-footer .order-actions { gap: 10px; }
.instagram-profile-footer .button { min-height: 44px; white-space: normal; }
.admin-content .instagram-profile-footer .admin-message { margin: 0; padding: 12px 14px; border: 1px solid #3b4764; border-radius: 9px; background: #1a2133; color: #d5dfef; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.instagram-profile-footer .admin-message:empty { display: none; }
#instagram-section .instagram-profile-footer .admin-message.is-error { border-color: #6a3341; background: #321d27; color: #ff9eaa; }
#instagram-profile-message.is-error { color: #ff9eaa; }
@media (max-width: 600px) {
  .instagram-profile-editor { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .instagram-profile-upload { padding: 20px 12px; }
  .instagram-profile-footer .order-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .instagram-profile-footer .button { width: 100%; }
}

.sample-popup-editor fieldset { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 22px; min-width: 0; margin: 0; padding: 0; border: 0; }
.sample-popup-content > label { display: grid; gap: 10px; min-width: 0; font-weight: 500; }
.sample-popup-editor select { width: 100%; min-width: 0; }
.sample-popup-editor p { margin: 0; color: #a8b5cc; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.sample-popup-visibility { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; grid-column: 1 / -1; padding: 18px 20px; border: 1px solid #3b4764; border-radius: 12px; background: #111624; }
.sample-popup-visibility .discovery-kicker, .sample-popup-card-heading .discovery-kicker { font-size: 10px; letter-spacing: .12em; }
.sample-popup-visibility #sample-popup-state { margin-top: 6px; color: #e4cfac; font-size: 14px; font-weight: 600; }
.sample-popup-visibility > p { grid-column: 1 / -1; }
.sample-popup-visibility .check-label { min-height: 44px; margin: 0; padding: 10px 14px; border: 1px solid #494532; border-radius: 10px; background: #29251e; color: #efdfc3; }
.sample-popup-visibility input { flex-shrink: 0; accent-color: #f7a331; }
.sample-popup-content, .sample-popup-upload { display: grid; align-content: start; gap: 18px; min-width: 0; padding: 22px; border: 1px solid #2e3852; border-radius: 14px; background: #111624; }
.sample-popup-card-heading h2 { margin: 8px 0; font-size: 20px; }
.sample-popup-content textarea { min-height: 160px; resize: vertical; }
.sample-popup-content #sample-popup-product-summary { background: #1a2133; color: #dfd4c0; }
.sample-popup-image-frame { display: grid; place-items: center; min-width: 0; min-height: 200px; padding: 14px; border: 1px dashed #56617b; border-radius: 12px; background: radial-gradient(ellipse at top, #30291f, #171c2b 75%); }
.sample-popup-image-frame img { display: block; width: 100%; max-width: 280px; height: 220px; object-fit: contain; border-radius: 8px; background: #f4ebdd; }
.sample-popup-image-frame img[hidden] { display: none; }
.sample-popup-image-placeholder { display: grid; justify-items: center; gap: 12px; color: #a8b5cc; text-align: center; font-size: 13px; }
.sample-popup-image-placeholder svg { width: 38px; height: 38px; fill: none; stroke: #d4b383; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.sample-popup-image-placeholder strong { color: #dfd4c0; }
.sample-popup-image-frame:has(img:not([hidden])) .sample-popup-image-placeholder { display: none; }
.sample-popup-file-field { display: grid; gap: 10px; min-width: 0; }
.sample-popup-file-field > label { font-weight: 600; font-size: 13px; }
.sample-popup-upload input { width: 100%; min-width: 0; max-width: 100%; border: 1px solid #333e59; border-radius: 9px; background: #1a2133; color: #c4cee0; font: inherit; font-size: 12px; }
.sample-popup-upload input::file-selector-button { min-height: 44px; margin-right: 10px; padding: 10px 12px; border: 0; border-right: 1px solid #333e59; background: #283149; color: #edf1fa; font: inherit; font-weight: 600; cursor: pointer; }
.sample-popup-upload input:focus-visible { outline: 2px solid #ffbd70; outline-offset: 3px; }
.sample-popup-upload #sample-popup-dimensions { padding-top: 10px; border-top: 1px solid #2e3852; color: #dfd4c0; font-size: 12px; }
.sample-popup-publish { grid-column: 1 / -1; }
.sample-popup-publish, .sample-popup-hide-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.sample-popup-publish { padding-top: 4px; }
.sample-popup-editor .button { min-height: 44px; white-space: normal; }
.sample-popup-editor .order-actions { gap: 10px; }
.sample-popup-hide-row { margin-top: 22px; padding-top: 20px; border-top: 1px solid #2e3852; }
.sample-popup-hide-row p { font-size: 12px; }
.sample-popup-upload input:disabled, .sample-popup-editor fieldset:disabled input[type="file"] { opacity: .55; }
#sample-popup-admin-message.is-error { color: #ff9eaa; }
@media (max-width: 1100px) {
  .sample-popup-editor fieldset { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .sample-popup-visibility { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .sample-popup-content, .sample-popup-upload { padding: 16px; }
  .sample-popup-publish, .sample-popup-publish .order-actions, .sample-popup-hide-row { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .sample-popup-editor .button { width: 100%; }
}

/* Orders list */
.orders-filter { display: flex; align-items: center; gap: 8px; color: #b4c0d6; font-size: 14px; }
.orders-filter select { min-height: 44px; padding: 0 12px; border: 1px solid #3b4764; border-radius: 8px; background: #20273c; color: #ecf1ff; font: inherit; }
#orders-list { display: grid; gap: 16px; }
.admin-dashboard .order-card { display: grid; gap: 18px; }
.order-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid #2b3450; }
.order-card-head h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: .4px; color: #fff; }
.order-card-head time { color: #8f9bb4; font-size: 13px; }
.order-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.order-bulk-ribbon { align-self: center; padding: 6px 12px; border-radius: 3px 10px 3px 10px; }
.admin-dashboard .order-products .bulk-badge { display: inline-flex; color: #215d32; }
.order-badge, .admin-dashboard .order-status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.order-badge { border: 1px solid #3b4764; background: #20273c; color: #c9d3e8; }
.order-badge.is-paid { background: #18352f; border-color: #2d5147; color: #9ce8c3; }
.order-badge.is-pending { background: #33291d; border-color: #614d30; color: #ffcb81; }
.order-badge.is-failed, .admin-dashboard .order-status.is-cancelled { background: #3a1f27; border-color: #6a3341; color: #ffadbb; }
.admin-dashboard .order-status.is-pending_payment, .admin-dashboard .order-status.is-awaiting_address { background: #33291d; border-color: #614d30; color: #ffcb81; }
.admin-dashboard .order-status.is-shipped { background: #1d2a44; border-color: #34507e; color: #a9c6ff; }
.order-card-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(240px, .9fr); gap: 22px; align-items: start; }
.order-products { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.order-products li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.order-products img, .order-thumb-empty { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #232b42; border: 1px solid #2b3450; }
.order-products strong { display: block; color: #fff; font-size: 15px; }
.order-products span { color: #9aa6bf; font-size: 13px; }
.order-products b { color: #ecf1ff; font-weight: 600; }
.order-customer h4 { margin: 0 0 4px; color: #8f9bb4; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.order-customer p { margin: 0 0 14px; line-height: 1.55; }
.order-customer-name { color: #fff; font-weight: 600; }
.order-contact { display: grid; gap: 2px; }
.order-contact a { color: #ffc677; text-decoration: none; overflow-wrap: anywhere; }
.order-contact a:hover { text-decoration: underline; }
.admin-dashboard .order-card .order-address.is-missing { color: #ffcb81; }
.order-totals { display: grid; gap: 8px; margin: 0; padding: 14px; border-radius: 10px; background: #10152a; border: 1px solid #2b3450; }
.order-totals div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: #b4c0d6; }
.order-totals dt, .order-totals dd { margin: 0; }
.order-totals dd { white-space: nowrap; }
.order-totals .is-discount { color: #9ce8c3; }
.order-totals .is-total { padding-top: 8px; border-top: 1px solid #2b3450; color: #fff; font-size: 16px; font-weight: 700; }
.order-totals .order-payment-id { flex-direction: column; gap: 2px; font-size: 12px; color: #8f9bb4; }
.order-totals .order-payment-id dd { overflow-wrap: anywhere; font-family: ui-monospace, monospace; }
.order-card > .order-actions:empty { display: none; }
@media (max-width: 1100px) { .order-card-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .order-products { grid-column: 1 / -1; } }
@media (max-width: 640px) { .order-card-body { grid-template-columns: 1fr; } }

.product-offers-panel { min-width: 0; padding: 20px; border: 1px solid #39415a; border-radius: 16px; background: #111625; }
.product-offers-panel legend { padding: 0 8px; color: #f0c58a; font-weight: 600; }
.product-offers-panel .check-label { display: flex; align-items: flex-start; gap: 12px; line-height: 1.7; }
.product-offers-panel input[type="checkbox"] { flex: 0 0 20px; margin-top: 3px; }
.product-offers-panel p { font-size: 13px; line-height: 1.8; color: #acb8cf; }
.product-offers-panel #product-bulk-fields[hidden] { display: none; }
.product-offers-panel small { display: block; font-size: 12px; font-weight: 400; line-height: 1.6; color: #acb8cf; }
.admin-dashboard .order-dispatch-form { display: grid; gap: 14px; padding-top: 20px; border-top: 1px solid #2b3450; }
.order-dispatch-form h4 { margin: 0; color: #f0c58a; }
.order-dispatch-form p { margin: 0; font-size: 13px; line-height: 1.7; color: #acb8cf; }
.order-dispatch-form label { display: grid; gap: 8px; min-width: 0; }
.order-dispatch-form input { min-width: 0; width: 100%; }
.order-dispatch-form > button { justify-self: start; white-space: normal; }
.admin-dashboard .delivery-stage time, .admin-dashboard .delivery-stage small { color: #aebbd1; }
.admin-dashboard .delivery-tracking { background: #111625; border-color: #39415a; }
.admin-dashboard .delivery-tracking dt { color: #acb8cf; }
.admin-dashboard .delivery-tracking dd { color: #f1f3fa; }
.admin-dashboard .order-status.is-shipped { background: #33291d; border-color: #805225; color: #ffd09a; }
.admin-dashboard .order-status.is-ready { background: #391f27; border-color: #78343c; color: #ffb5b5; }
.admin-dashboard .order-status.is-delivered { background: #18352f; border-color: #2d5147; color: #9ce8c3; }
/* Hero image editor */
.hero-image-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
#hero-images-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.hero-image-controls { display: grid; gap: 14px; min-width: 0; align-content: start; }
.hero-image-controls label { display: grid; gap: 8px; font-weight: 600; }
.hero-image-controls input, .hero-image-controls textarea { width: 100%; min-width: 0; }
.hero-image-controls p, .hero-image-previews p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.hero-image-controls .hero-image-dimensions { color: var(--ink); font-weight: 500; }
.hero-image-previews { min-width: 0; }
.hero-preview-scene { position: relative; margin: 0 0 24px; }
.hero-preview-scene .hero-preview-tagline { position: absolute; top: 8%; right: 5%; max-width: 34%; color: #593820; font: italic clamp(14px, 1.8vw, 26px)/1.1 Georgia, serif; text-align: center; transform: rotate(-5deg); }
.hero-preview-phone { max-width: 342px; }
.hero-preview-phone figcaption { margin-top: 12px; color: #593820; font: italic 22px/1.25 Georgia, serif; text-align: center; }
.hero-image-previews img { display: block; width: 100%; height: auto; object-fit: cover; margin-bottom: 24px; border-radius: 20px; background: #e9dcc6; }
.hero-preview-scene img { margin-bottom: 0; }
.hero-desktop-preview { aspect-ratio: 1205 / 805; }
.hero-mobile-preview { max-width: 342px; aspect-ratio: 4 / 3; object-position: 44% 50%; }
@media (max-width: 900px) { .hero-image-workspace { grid-template-columns: minmax(0, 1fr); } }

/* Mobile: Admin Studio becomes an auto-hiding drawer */
.admin-mobile-bar, .admin-drawer-backdrop { display: none; }
@media (max-width: 1024px) {
  .admin-main { width: calc(100% - 20px); margin: 10px auto 40px; }
  .admin-dashboard:not([hidden]) { display: block; }
  .admin-mobile-bar {
    position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px;
    margin: 0 -10px 14px; padding: 10px 12px; background: #141827; border-bottom: 1px solid #2b324b;
  }
  .admin-menu-toggle {
    flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid #634521; border-radius: 10px; background: #33291d; color: #ffb744; cursor: pointer;
  }
  .admin-menu-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .admin-menu-toggle:focus-visible { outline: 2px solid #ffd69a; outline-offset: 2px; }
  .admin-mobile-heading { min-width: 0; display: grid; line-height: 1.25; }
  .admin-mobile-heading span { color: #f7a331; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  .admin-mobile-heading strong { color: #edf1fa; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-drawer-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(5, 8, 16, .66); animation: drawer-fade .2s ease; }
  .admin-dashboard .admin-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 80; width: min(86vw, 320px); max-height: none; min-height: 0;
    margin: 0; padding: 18px 12px 24px; border-radius: 0 14px 14px 0; border-width: 0 1px 0 0;
    overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: auto;
    transform: translateX(-105%); visibility: hidden; box-shadow: none;
    transition: transform .25s ease, visibility 0s linear .25s;
  }
  .admin-dashboard.drawer-open .admin-sidebar { transform: none; visibility: visible; box-shadow: 8px 0 30px rgba(0, 0, 0, .5); transition: transform .25s ease; }
  .admin-dashboard .admin-sidebar .admin-tabs { grid-template-columns: minmax(0, 1fr); }
  .admin-dashboard .admin-sidebar .sidebar-session { position: sticky; bottom: -24px; padding-bottom: 12px; background: #141827; }
  body.admin-drawer-lock { overflow: hidden; }
  .admin-content .admin-title-row { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 16px; }
  .admin-content .admin-title-row > .button, .admin-content .admin-title-row > a.button { width: 100%; justify-content: center; text-align: center; }
  .admin-content h1 { font-size: 24px; }
  .admin-content .order-actions { flex-direction: column; align-items: stretch; }
  .admin-content .order-actions .button { width: 100%; }
  .admin-content table { display: block; max-width: 100%; overflow-x: auto; }
  .admin-header { padding-inline: 14px; }
}
@keyframes drawer-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .admin-dashboard .admin-sidebar, .admin-drawer-backdrop { transition: none !important; animation: none !important; }
}

.field-hint { margin: 0; font-size: 13px; color: #98a5bf; }
.media-card { display: flex; align-items: flex-start; gap: 18px; margin: 0; padding: 18px; border: 1px solid #2b3450; border-radius: 12px; background: #131a2b; }
.media-card-body { display: grid; gap: 12px; min-width: 0; flex: 1; }
.media-card h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 15px; color: #f4f6fc; }
.media-card p { margin: 0; font-size: 13px; line-height: 1.6; color: #98a5bf; }
.media-card label:not(.file-pick, .check-label) { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.optional-tag { padding: 2px 9px; border-radius: 999px; background: #28334d; color: #acb8cf; font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.media-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-width: 0; }
.media-card-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.file-pick { position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
.file-pick input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.file-pick:focus-within { outline: 2px solid #ffb744; outline-offset: 2px; }
.file-name { min-width: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #8494b1; }
.avatar-field .avatar-preview { flex: none; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid #3a4666; background: #f3e6d3; box-shadow: 0 0 0 4px #1b2336; }
.cover-preview { flex: none; width: 120px; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid #3a4666; border-radius: 8px; background: #101524; }
.cover-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.testimonial-admin-cover { border-radius: 6px; object-fit: cover; vertical-align: middle; }
.testimonial-admin-avatar { border-radius: 50%; object-fit: cover; vertical-align: middle; }
@media (max-width: 520px) { .media-card.avatar-field { flex-direction: column; align-items: center; text-align: center; } .media-card.avatar-field .media-card-actions { justify-content: center; } }
