:root {
  --colorPrimary-100: #000000;
  --colorPrimary-200: #0e0d10;
  --colorPrimary-300: #2d2a31;
  --colorPrimary-400: #3e3a42;
  --colorPrimary-500: #1c1a1f;
  --colorPrimary-600: #726d76;
  --colorSurface-100: #f1f0ee;
  --colorSurface-200: #ffffff;
  --colorSurface-300: #e3e0dc;
  --colorSurface-400: #cfcbc5;
  --colorSurface-500: #a29da6;
  --colorSurface-600: #726d76;
  --colorSurface-700: #3e3a42;
  --colorSurface-0: #1c1a1f;
  --colorSurfaceMixed-200: #eeece9;
  --colorBeige: #f7f6f4;
  --colorGrayTransparent: #eeece9;
  --colorSuccess: #2e7550;
  --colorSuccessTransparent: rgb(46, 117, 80, 0.1);
  --colorError: #7b2233;
  --colorErrorDark: #5e1a27;
  --colorErrorTransparent: rgb(123, 34, 51, 0.1);
  --colorWarning: #b7791f;
  --colorWarningDark: #946219;
  --colorWarningTransparent: rgb(183, 121, 31, 0.1);
  --colorInfo: #2d5c8a;
  --colorInfoTransparent: rgb(45, 92, 138, 0.1);
  --colorBlue: #2d5c8a;
  --colorBlueTransparent: rgb(45, 92, 138, 0.1);
  --colorOrange: #b7791f;
  --colorOrangeDark: #946219;
  --colorOrangeTransparent: rgb(183, 121, 31, 0.1);
  --colorOnBorders: #e3e0dc;
  --colorAccent: #e62b4266;
  --colorAccentSoft: #e62b4226;
  --shadow: 0 1px 2px rgba(28, 26, 31, .05), 0 8px 24px -12px rgba(28, 26, 31, .12);
  --shadowLarge: 0 24px 64px -16px rgba(28, 26, 31, .35);
  --scrim: rgba(24, 20, 26, .36);
  --scheme: light;
}

:root[data-theme=dark] {
  --colorPrimary-100: #ffffff;
  --colorPrimary-200: #f7f5f8;
  --colorPrimary-300: #e0dce2;
  --colorPrimary-400: #cfcad1;
  --colorPrimary-500: #efecf0;
  --colorPrimary-600: #9b96a0;
  --colorSurface-100: #121114;
  --colorSurface-200: #1b1a1e;
  --colorSurface-300: #2f2d33;
  --colorSurface-400: #423f46;
  --colorSurface-500: #6d6972;
  --colorSurface-600: #9b96a0;
  --colorSurface-700: #cfcad1;
  --colorSurface-0: #efecf0;
  --colorSurfaceMixed-200: #2a282d;
  --colorBeige: #211f24;
  --colorGrayTransparent: #262429;
  --colorSuccess: #6fc395;
  --colorSuccessTransparent: rgb(111, 195, 149, 0.12);
  --colorError: #ef5350;
  --colorErrorDark: #e53935;
  --colorErrorTransparent: rgb(239, 83, 80, 0.12);
  --colorWarning: #e3ad5b;
  --colorWarningDark: #d0973f;
  --colorWarningTransparent: rgb(227, 173, 91, 0.12);
  --colorInfo: #86b4e3;
  --colorInfoTransparent: rgb(134, 180, 227, 0.12);
  --colorBlue: #86b4e3;
  --colorBlueTransparent: rgb(134, 180, 227, 0.12);
  --colorOrange: #e3ad5b;
  --colorOrangeDark: #d0973f;
  --colorOrangeTransparent: rgb(227, 173, 91, 0.12);
  --colorOnBorders: #2f2d33;
  --colorAccent: #e0808c;
  --colorAccentSoft: #e0808c33;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadowLarge: 0 24px 64px -16px rgba(0, 0, 0, .8);
  --scrim: rgba(0, 0, 0, .55);
  --scheme: dark;
}

.input[type=checkbox] {
  transition: none !important;
}

#crudForm .inputContainer:has(input[type=checkbox]) {
  width: max-content;
}

select[readonly] {
  pointer-events: none;
  background: var(--colorSurface-200);
  color: var(--colorSurface-600);
}

#main:has(#closet) #messageContainer {
  min-height: unset;
}

#themeSettingsContainer {
  order: 2;
  display: flex;
  padding: 0 1rem;
  margin-top: 2rem;
}
#themeSettingsContainer #themeSettingsNavigation {
  background: var(--colorSurface-200);
  width: 150px;
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
  display: flex;
  flex-direction: column;
  height: max-content;
  margin-top: 0.5rem;
}
#themeSettingsContainer #themeSettingsNavigation li {
  cursor: pointer;
  transition: 0.3s ease all;
  color: var(--colorSurface-600);
  border-bottom: 1px solid var(--colorSurface-300);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#themeSettingsContainer #themeSettingsNavigation li:first-of-type {
  border-top-left-radius: 7px;
}
#themeSettingsContainer #themeSettingsNavigation li:last-of-type {
  border-bottom: none;
  border-bottom-left-radius: 7px;
}
#themeSettingsContainer #themeSettingsNavigation li.active {
  background: var(--colorSurface-300);
}
@media (hover: hover) {
  #themeSettingsContainer #themeSettingsNavigation li:hover {
    background: var(--colorSurface-300);
  }
}
#themeSettingsContainer #themeSettingsNavigation li svg {
  width: 12px;
  fill: var(--colorSurface-600);
}
#themeSettingsContainer #themeSettingsContent {
  width: calc(100% - 150px);
  border: 1px solid var(--colorSurface-200);
  height: 800px;
  overflow-y: auto;
  border-radius: 7px;
  padding: 1rem;
  position: relative;
}
#themeSettingsContainer #themeSettingsContent #settingsContentTop {
  display: flex;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--colorSurface-200);
  padding-bottom: 1rem;
}
#themeSettingsContainer #themeSettingsContent #settingsContentTop h2 {
  color: var(--colorSurface-600);
}
#themeSettingsContainer #themeSettingsContent #settingsContentTop .iconContainer {
  border: 1px solid var(--colorSurface-600);
  border-radius: 7px;
  padding: 0.5rem;
  display: flex;
}
#themeSettingsContainer #themeSettingsContent #settingsContentTop .iconContainer svg {
  width: 14px;
  fill: var(--colorSurface-600);
}
#themeSettingsContainer #themeSettingsContent #settingsContainer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#settingsContainer #chooseNavigation {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}
#settingsContainer #chooseNavigation select {
  padding: 0.39rem 0.7rem;
}
#settingsContainer #chooseNavigation button {
  height: max-content;
}
#settingsContainer #chooseNavigation button.error {
  display: none;
}
#settingsContainer #chooseNavigation button.error.active {
  display: block;
}
#settingsContainer #navigationContent {
  padding-top: 0.5rem;
  border-top: 1px solid var(--colorOnBorders);
}

#socialLinks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 4rem;
}
#socialLinks .socialLink {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#socialLinks .socialLink .top {
  display: flex;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--colorOnBorders);
  padding-bottom: 0.5rem;
}
#socialLinks .socialLink .top label {
  font-size: 14px;
}
#socialLinks .socialLink .top svg {
  width: 14px;
  fill: var(--colorSurface-600);
}
#socialLinks .socialLink.facebook svg {
  width: 10px;
}
#socialLinks .socialLink.youtube svg {
  width: 18px;
}
#socialLinks .socialLink.tumblr svg {
  width: 10px;
}
#socialLinks .socialLinkContainer {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}
#socialLinks .socialLinkContainer label {
  color: var(--colorSurface-600);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#colorCodeInputContainer {
  width: 100px;
}
#colorCodeInputContainer input {
  width: 100%;
}

.inputContainer:has(.colorCodeInput) {
  width: 100px;
}
.inputContainer:has(.colorCodeInput) input {
  width: 100%;
}

:root {
  --radius: 8px;
  --radiusSmall: 4px;
  --fontSans: "DM Sans", sans-serif;
  --fontSerif: "Instrument Serif", Georgia, "Times New Roman", serif;
}

html {
  color-scheme: var(--scheme);
}

body {
  font-family: var(--fontSans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--colorSurface-0);
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--colorAccent);
  outline-offset: 2px;
}

h1 {
  font-family: var(--fontSerif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--colorSurface-0);
}

h2, h3 {
  font-weight: 600;
  letter-spacing: -0.005em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radiusSmall);
  border: 1px solid var(--colorSurface-400);
  background: var(--colorSurface-200);
  color: var(--colorSurface-0);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover {
  background: var(--colorBeige);
  border-color: var(--colorSurface-500);
}
.btn:active {
  transform: translateY(1px);
}
.btn.small {
  height: 30px;
  padding: 0 10px;
  font-size: 0.78rem;
}
.btn.primary {
  background: var(--colorPrimary-500);
  border-color: var(--colorPrimary-500);
  color: var(--colorSurface-200);
}
.btn.primary:hover {
  background: var(--colorPrimary-400);
  border-color: var(--colorPrimary-400);
}
.btn.error {
  background: var(--colorError);
  border-color: var(--colorError);
  color: var(--colorSurface-200);
}
.btn.error.hollow {
  background: transparent;
  color: var(--colorError);
}
.btn.warning {
  background: var(--colorWarning);
  border-color: var(--colorWarning);
  color: var(--colorSurface-200);
}
.btn.hollow {
  background: transparent;
  border-color: var(--colorSurface-400);
  color: var(--colorSurface-0);
}
.btn.hollow:hover {
  background: var(--colorBeige);
}
.btn.disabled {
  opacity: 0.45;
  background: var(--colorSurface-200);
  color: var(--colorSurface-0);
}

.inputContainer {
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--colorSurface-700);
}

#applyBulkActions {
  height: 36px;
}

#settingsContainer #chooseNavigation button {
  height: 38px;
}

select.input {
  padding: 0.47rem 0.7rem;
}

.input {
  border: 1px solid var(--colorSurface-400);
  border-radius: var(--radiusSmall);
  background: var(--colorSurface-200);
  color: var(--colorSurface-0);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 400;
  transition: border-color 0.15s;
}
.input:hover {
  border-color: var(--colorSurface-500);
}
.input:focus {
  outline: none;
  border-color: var(--colorAccent);
}
.input::placeholder {
  color: var(--colorSurface-500);
}
.input:read-only:not(select), .input:disabled {
  background: var(--colorBeige);
  color: var(--colorSurface-600);
}
.input.invalidFormField {
  border-color: var(--colorError);
}
.input[type=checkbox], .input[type=radio] {
  min-height: 0;
  accent-color: var(--colorPrimary-500);
  box-shadow: none;
}
.input[type=checkbox] {
  opacity: 1;
  width: 16px;
  height: 16px;
}
.input[type=color] {
  padding: 4px;
  height: 40px;
  background: var(--colorSurface-200) !important;
}

.ajaxInputSearch,
.ajaxMultipleValuesSearch {
  background: transparent;
}
.ajaxInputSearch .viewInput.input:read-only,
.ajaxMultipleValuesSearch .viewInput.input:read-only {
  background: var(--colorSurface-200);
  color: var(--colorSurface-0);
  cursor: pointer;
}
.ajaxInputSearch[data-readonly=true] .viewInput.input:read-only,
.ajaxMultipleValuesSearch[data-readonly=true] .viewInput.input:read-only {
  background: var(--colorBeige);
  color: var(--colorSurface-600);
  cursor: default;
}
.ajaxInputSearch .ajaxSearchContainer,
.ajaxMultipleValuesSearch .ajaxSearchContainer {
  background: var(--colorSurface-200);
  border-bottom: 0;
  padding-bottom: 4px;
}
.ajaxInputSearch .ajaxSearchContainer .ajaxSearchInput,
.ajaxMultipleValuesSearch .ajaxSearchContainer .ajaxSearchInput {
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--colorAccent);
  border-radius: var(--radiusSmall);
  background: var(--colorSurface-200);
  color: var(--colorSurface-0);
  font-family: inherit;
  font-size: 0.85rem;
}
.ajaxInputSearch .ajaxSearchContainer .ajaxSearchResultContainer,
.ajaxMultipleValuesSearch .ajaxSearchContainer .ajaxSearchResultContainer {
  top: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--colorSurface-400) transparent;
  border: 1px solid var(--colorSurface-400);
  border-radius: var(--radiusSmall);
  background: var(--colorSurface-200);
  box-shadow: rgba(0, 0, 0, 0.08) 0 8px 24px -8px;
  padding: 4px;
}
.ajaxInputSearch .ajaxSearchContainer .ajaxSearchResultContainer .ajaxSearchResult,
.ajaxMultipleValuesSearch .ajaxSearchContainer .ajaxSearchResultContainer .ajaxSearchResult {
  padding: 0.5rem 0.75rem;
  border-bottom: 0;
  border-radius: var(--radiusSmall);
  color: var(--colorSurface-0);
  font-size: 0.8rem;
  font-weight: 400;
  transition: background 0.15s, color 0.15s;
}
.ajaxInputSearch .ajaxSearchContainer .ajaxSearchResultContainer .ajaxSearchResult:hover,
.ajaxMultipleValuesSearch .ajaxSearchContainer .ajaxSearchResultContainer .ajaxSearchResult:hover {
  background: var(--colorBeige);
  color: var(--colorSurface-0);
}
.ajaxInputSearch .removeAjaxInputSearchValue svg,
.ajaxMultipleValuesSearch .removeAjaxInputSearchValue svg {
  fill: var(--colorSurface-500);
}

.ajaxMultipleValuesSearch .valuesWrapper {
  border: 1px solid var(--colorSurface-400);
  border-radius: var(--radiusSmall);
  background: var(--colorSurface-200);
}
.ajaxMultipleValuesSearch .valuesContainer {
  align-items: center;
  align-content: flex-start;
}
.ajaxMultipleValuesSearch .valuesContainer .value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: auto;
  border: 0;
  border-radius: 6px;
  background: var(--colorSurfaceMixed-200);
  padding: 4px 4px 4px 9px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: normal;
  color: var(--colorSurface-0);
  word-break: normal;
}
.ajaxMultipleValuesSearch .valuesContainer .value .removeValue {
  display: grid;
  place-items: center;
  padding: 2px;
  border-radius: 4px;
  cursor: pointer;
}
.ajaxMultipleValuesSearch .valuesContainer .value .removeValue svg {
  display: none;
}
.ajaxMultipleValuesSearch .valuesContainer .value .removeValue::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--colorSurface-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='m336-280-56-56 144-144-144-143 56-56 144 144 143-144 56 56-144 143 144 144-56 56-143-144-144 144Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='m336-280-56-56 144-144-144-143 56-56 144 144 143-144 56 56-144 143 144 144-56 56-143-144-144 144Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ajaxMultipleValuesSearch .valuesContainer .value .removeValue:hover {
  background: var(--colorErrorTransparent);
}
.ajaxMultipleValuesSearch .valuesContainer .value .removeValue:hover::before {
  background: var(--colorError);
}

#navigation {
  background: var(--colorSurface-200);
  border-right: 1px solid var(--colorSurface-300);
  padding: 8px;
}
#navigation .line {
  background: var(--colorSurface-300);
}
#navigation #toggleNavigation {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--colorSurface-300);
  border-radius: 50%;
  background: var(--colorSurface-200);
  box-shadow: var(--shadow);
  transition: left 0.3s ease, background 0.15s, border-color 0.15s;
}
#navigation #toggleNavigation svg {
  width: 7px;
  fill: var(--colorSurface-600);
  transition: fill 0.15s;
}
#navigation #toggleNavigation:hover {
  border: 1px solid var(--colorSurface-400);
  background: var(--colorBeige);
}
#navigation #toggleNavigation:hover svg {
  fill: var(--colorSurface-0);
}
#navigation #navigationSearch {
  border-radius: var(--radiusSmall);
}
#navigation.active #navigationSearch {
  border: 1px solid var(--colorSurface-400);
}
#navigation:not(.active) .item .itemAnchor,
#navigation:not(.active) #navigationSearch {
  padding-left: 5px;
  padding-right: 5px;
}
#navigation:not(.active) #navigationUser {
  padding-left: 6px;
  padding-right: 6px;
}
#navigation #navigationSettings #modeSelectContainer label {
  background: var(--colorSurface-400);
  transition: background 0.15s;
}
#navigation #navigationSettings #modeSelectContainer label:after {
  background: var(--colorSurface-200);
}
#navigation #navigationSettings #modeSelectContainer input:checked + label {
  background: var(--colorPrimary-500);
}
#navigation .item {
  color: var(--colorSurface-600);
}
#navigation .item .itemAnchor {
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 7px 9px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
#navigation .item .itemAnchor:hover {
  border-color: transparent;
  background: var(--colorBeige);
  color: var(--colorSurface-0);
}
#navigation .item.active {
  color: var(--colorSurface-0);
}
#navigation .item.active .itemAnchor {
  border-color: transparent;
  background: var(--colorSurfaceMixed-200);
  color: var(--colorSurface-0);
}
#navigation .item.active .itemAnchor svg {
  fill: var(--colorSurface-0);
}
#navigation .item .subItemsContainer .subItems:before {
  background: var(--colorSurface-300);
}
#navigation .item .subItemsContainer .subItems .subItem {
  border-radius: var(--radiusSmall);
  transition: color 0.15s;
}
#navigation .item .subItemsContainer .subItems .subItem:hover {
  color: var(--colorSurface-0);
}

main #mainTop {
  flex-shrink: 0;
}
main #mainTop h1 {
  font-size: 1.5rem;
}

#mainTable {
  padding: 1rem 28px;
}
#mainTable #tableFilters .filterLinks a {
  border: 1px solid var(--colorSurface-400);
  border-radius: var(--radius);
  background: var(--colorSurface-200);
  color: var(--colorSurface-700);
  font-weight: 500;
  font-size: 0.8rem;
}
#mainTable #tableFilters .filterLinks a.primary {
  background: var(--colorPrimary-500);
  border-color: var(--colorPrimary-500);
  color: var(--colorSurface-200);
}
#mainTable #tableWrapper {
  margin: 0.5rem 0;
}
#mainTable #crudTable {
  margin: 0;
  background: var(--colorSurface-200);
  border: 1px solid var(--colorSurface-300);
  border-radius: var(--radius);
}
#mainTable #crudTable thead tr th:first-of-type {
  border-top-left-radius: calc(var(--radius) - 1px);
}
#mainTable #crudTable thead tr th:last-of-type {
  border-top-right-radius: calc(var(--radius) - 1px);
}
#mainTable #crudTable tbody:last-child tr:last-child td:first-of-type,
#mainTable #crudTable tfoot tr:last-child td:first-of-type {
  border-bottom-left-radius: calc(var(--radius) - 1px);
}
#mainTable #crudTable tbody:last-child tr:last-child td:last-of-type,
#mainTable #crudTable tfoot tr:last-child td:last-of-type {
  border-bottom-right-radius: calc(var(--radius) - 1px);
}
#mainTable #crudTable th {
  padding: 0.7rem 0.9rem;
}
#mainTable #crudTable td {
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
}
#mainTable #crudTable thead tr {
  background: none;
}
#mainTable #crudTable thead tr th {
  background: var(--colorBeige);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--colorSurface-600);
  border-bottom: 1px solid var(--colorSurface-300);
}
#mainTable #crudTable tbody tr td {
  color: var(--colorSurface-0);
  border-bottom: 1px solid var(--colorSurface-300);
}
#mainTable #crudTable tbody tr td:first-of-type, #mainTable #crudTable tbody tr td:last-of-type {
  border-left: 0;
  border-right: 0;
}
#mainTable #crudTable tbody tr:hover td {
  background: var(--colorBeige);
}
#mainTable #crudTable tbody tr.active td:not(.countDataElement):not(.countDataTitle) {
  background: var(--colorAccentSoft);
  color: var(--colorSurface-0);
}
#mainTable #crudTable tbody tr:last-child td {
  border-bottom: 0;
}
#mainTable #crudTable tbody td.editColumn {
  color: var(--colorSurface-0) !important;
  font-weight: 600;
}
#mainTable #crudTable tfoot tr td {
  background: var(--colorBeige);
  border-top: 1px solid var(--colorSurface-300);
}
#mainTable .tablePaginationContainer .paginationButton {
  border: 1px solid var(--colorSurface-400);
  border-radius: var(--radiusSmall);
  background: var(--colorSurface-200);
}

.tabs {
  gap: 0.5rem;
  border-bottom: 1px solid var(--colorSurface-300);
  overflow-y: hidden;
}
.tabs .tab {
  position: relative;
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0.75rem;
  color: var(--colorSurface-600);
  font-weight: 600;
  transition: 0.3s ease all;
}
.tabs .tab:hover {
  color: var(--colorSurface-0);
}
.tabs .tab.active {
  background: none;
  color: var(--colorSurface-0);
}
.tabs .tab.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 1px;
  border-radius: 2px;
  background: var(--colorSurface-0);
}

#modalOverlay {
  background: var(--scrim);
  backdrop-filter: blur(2px);
}
#modalOverlay #modal {
  background: var(--colorSurface-200);
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
#modalOverlay #modal #modalContent {
  padding: 20px 22px;
}
#modalOverlay #modal #modalContent h1 {
  font-size: 1.75rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
#modalOverlay #modal #modalContent h2, #modalOverlay #modal #modalContent h3, #modalOverlay #modal #modalContent h4, #modalOverlay #modal #modalContent h5, #modalOverlay #modal #modalContent h6 {
  color: var(--colorSurface-0);
}

#loginMain #loginForm .inputContainer {
  gap: 10px;
  min-height: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--colorSurface-400);
  border-radius: var(--radiusSmall);
  background: var(--colorSurface-200);
  transition: border-color 0.15s;
}
#loginMain #loginForm .inputContainer:hover {
  border-color: var(--colorSurface-500);
}
#loginMain #loginForm .inputContainer:focus-within {
  border-color: var(--colorAccent);
}
#loginMain #loginForm .inputContainer:has(.formFieldNotice) {
  border-color: var(--colorError);
}
#loginMain #loginForm .inputContainer svg {
  width: 14px;
  fill: var(--colorSurface-600);
}
#loginMain #loginForm .inputContainer input {
  flex: 1;
  min-height: 0;
  height: 100%;
  box-shadow: none;
}
#loginMain #loginForm #loginActions #rememberMe {
  color: var(--colorSurface-600);
  font-weight: 500;
}

.message {
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--colorSurface-300);
  background: var(--colorSurface-200);
}
.message.error {
  border: 0;
  background: var(--colorErrorTransparent);
  color: var(--colorError);
}
.message.success {
  border: 0;
  background: var(--colorSuccessTransparent);
  color: var(--colorSuccess);
}
.message.info {
  border: 0;
  background: var(--colorInfoTransparent);
  color: var(--colorInfo);
}
.message.warning {
  border: 0;
  background: var(--colorWarningTransparent);
  color: var(--colorWarning);
}
.message.notification {
  background-color: var(--colorSurface-200);
  box-shadow: var(--shadow);
}
.message.notification.error {
  background-image: linear-gradient(var(--colorErrorTransparent), var(--colorErrorTransparent));
}
.message.notification.success {
  background-image: linear-gradient(var(--colorSuccessTransparent), var(--colorSuccessTransparent));
}
.message.notification.info {
  background-image: linear-gradient(var(--colorInfoTransparent), var(--colorInfoTransparent));
}
.message.notification.warning {
  background-image: linear-gradient(var(--colorWarningTransparent), var(--colorWarningTransparent));
}

.formPanel {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--colorSurface-300);
  border-radius: var(--radius);
  background: var(--colorSurface-200);
}
.formPanel .formPanelHeader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.formPanel .formPanelHeader h3 {
  font-size: 0.95rem;
  font-weight: 600;
}
.formPanel .formPanelHeader a {
  font-size: 0.8rem;
  color: var(--colorSurface-600);
}
.formPanel .formPanelEmpty {
  font-size: 0.85rem;
  color: var(--colorSurface-600);
}
.formPanel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.formPanel table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--colorSurface-600);
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--colorSurface-300);
}
.formPanel table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--colorSurface-300);
}
.formPanel table tr:last-child td {
  border-bottom: 0;
}

.tableSwatch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
}
.tableSwatch .tableSwatchDot {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14), 0 0 0 1px var(--colorSurface-300);
}

#mainTable #crudTable .rangeFilter {
  position: relative;
}
#mainTable #crudTable .rangeFilter .rangeFilterContainer {
  left: auto;
  right: 0;
  top: calc(100% + 6px);
  width: 240px;
  z-index: 20;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
}

#closet {
  order: 5;
  padding: 1rem 28px 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#closet #closetFilterForm,
#closet #closetResults {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#closet #closetResults[aria-busy=true] {
  opacity: 0.5;
  transition: opacity 0.15s;
}
#closet #closetSearchBar {
  display: flex;
}
#closet #closetSearch {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 0.9rem;
  gap: 0.7rem;
  background: var(--colorSurface-200);
  border: 1px solid var(--colorSurface-400);
  border-radius: 99px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s;
}
#closet #closetSearch:hover {
  border-color: var(--colorSurface-500);
}
#closet #closetSearch:focus-within {
  border-color: var(--colorAccent);
}
#closet #closetSearch > svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: var(--colorSurface-500);
}
#closet #closetSearch input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--colorSurface-0);
  font-family: inherit;
  font-size: 0.95rem;
}
#closet #closetSearch input::placeholder {
  color: var(--colorSurface-500);
}
#closet #closetSearch kbd {
  flex: none;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--colorSurface-400);
  border-radius: var(--radiusSmall);
  font-family: inherit;
  font-size: 0.72rem;
  color: var(--colorSurface-500);
}
#closet #closetFilters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--colorSurface-200);
  border: 1px solid var(--colorSurface-300);
  border-radius: var(--radius);
}
#closet .closetFilterRow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
}
#closet .closetFilterFields {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr)) auto;
  align-items: end;
  gap: 1rem;
}
#closet .closetFilter {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
#closet .closetFilter .input {
  width: 100%;
}
#closet .closetFilterLabel {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--colorSurface-700);
}
#closet .closetToggleGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
#closet .segmented input,
#closet .closetToggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
#closet .closetToggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 34px;
  min-width: 38px;
  padding: 0 0.7rem;
  justify-content: center;
  border: 1px solid var(--colorSurface-400);
  border-radius: var(--radius);
  background: var(--colorSurface-200);
  color: var(--colorSurface-700);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
#closet .closetToggle:hover {
  border-color: var(--colorSurface-500);
}
#closet .closetToggle:has(input:checked) {
  border-color: var(--colorPrimary-500);
  background: var(--colorPrimary-500);
  color: var(--colorSurface-200);
}
#closet .closetToggle:has(input:focus-visible) {
  outline: 2px solid var(--colorAccent);
  outline-offset: 2px;
}
#closet .closetToggle .swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}
#closet .closetToggle:has(input:checked) .swatch {
  box-shadow: 0 0 0 2px var(--colorPrimary-500), 0 0 0 3px var(--colorSurface-200);
}
#closet #closetFiltersFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--colorSurface-300);
}
#closet #closetFiltersFooter #closetResultCount {
  font-size: 0.8rem;
  color: var(--colorSurface-600);
}
#closet #closetFiltersFooter #closetResultCount b {
  color: var(--colorSurface-0);
  font-weight: 600;
}
#closet #closetFiltersFooter .btn {
  margin: 0;
}
#closet .segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  background: var(--colorSurfaceMixed-200);
  border-radius: 10px;
}
#closet .segmented label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 30px;
  padding: 0 0.75rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--colorSurface-600);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
#closet .segmented label:hover {
  color: var(--colorSurface-0);
}
#closet .segmented label:has(input:checked) {
  background: var(--colorSurface-200);
  color: var(--colorSurface-0);
  box-shadow: 0 1px 2px rgba(28, 26, 31, 0.06), 0 4px 12px -6px rgba(28, 26, 31, 0.18);
}
#closet .segmented label:has(input:focus-visible) {
  outline: 2px solid var(--colorAccent);
  outline-offset: 1px;
}
#closet .segmented label .count {
  font-size: 0.7rem;
  color: var(--colorSurface-500);
  font-variant-numeric: tabular-nums;
}
#closet .closetFilterActions {
  display: flex;
  gap: 0.5rem;
}
#closet .closetFilterActions .btn {
  margin: 0;
}
#closet #closetEmpty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 3rem 1rem;
  border: 1.5px dashed var(--colorSurface-400);
  border-radius: var(--radius);
  color: var(--colorSurface-600);
  text-align: center;
}
#closet #closetEmpty strong {
  color: var(--colorSurface-0);
  font-weight: 600;
}
#closet #closetEmpty a {
  color: var(--colorSurface-0);
  font-weight: 600;
  text-decoration: underline;
}
#closet .closetPagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding-top: 0.5rem;
}
#closet .closetPage {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.6rem;
  border: 1px solid var(--colorSurface-400);
  border-radius: var(--radiusSmall);
  background: var(--colorSurface-200);
  color: var(--colorSurface-700);
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
#closet .closetPage:is(a):hover {
  border-color: var(--colorSurface-500);
  background: var(--colorBeige);
}
#closet .closetPage.current {
  border-color: var(--colorPrimary-500);
  background: var(--colorPrimary-500);
  color: var(--colorSurface-200);
}
#closet .closetPage.disabled {
  opacity: 0.4;
}
#closet .closetPageGap {
  padding: 0 0.2rem;
  color: var(--colorSurface-500);
}
#closet #closetGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
#closet .closetCard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--colorSurface-200);
  border: 1px solid var(--colorSurface-300);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--colorSurface-0);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
#closet .closetCard:hover {
  border-color: var(--colorSurface-500);
  box-shadow: 0 8px 24px -14px rgba(28, 26, 31, 0.35);
  transform: translateY(-2px);
}
#closet .closetCard:hover .closetPhoto img,
#closet .closetCard:hover .closetSilhouette {
  transform: scale(1.03);
}
#closet .closetCard:focus-visible {
  outline: 2px solid var(--colorAccent);
  outline-offset: 2px;
}
#closet .closetPhoto {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--tone, var(--colorSurface-500)) 18%, var(--colorBeige));
  scrollbar-gutter: auto;
}
#closet .closetPhoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
#closet .closetSilhouette {
  width: 46%;
  height: auto;
  fill: var(--tone, var(--colorSurface-500));
  stroke: color-mix(in srgb, var(--colorSurface-0) 18%, transparent);
  stroke-width: 1;
  filter: drop-shadow(0 10px 14px rgba(28, 26, 31, 0.18));
  transition: transform 0.3s ease;
}
#closet .closetBody {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem 0.9rem;
}
#closet .closetBrand {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--colorSurface-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#closet .closetName {
  font-family: var(--fontSerif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
#closet .closetInternalName {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 0.7rem;
  color: var(--colorSurface-600);
}
#closet .closetOffWeb {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 24px;
  padding: 0 0.55rem;
  border-radius: 99px;
  background: var(--colorSurface-200);
  color: var(--colorSurface-600);
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(28, 26, 31, 0.08);
}
#closet .closetOffWeb svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}
#closet .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--colorSurface-500);
}
#closet .dot[data-tone=success] {
  background: var(--colorSuccess);
}
#closet .dot[data-tone=warning] {
  background: var(--colorWarning);
}
#closet .dot[data-tone=info] {
  background: var(--colorInfo);
}
#closet .dot[data-tone=error] {
  background: var(--colorError);
}
#closet .closetSizes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 0.45rem;
}
#closet .closetSize {
  min-width: 26px;
  height: 22px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--colorSurface-400);
  border-radius: var(--radiusSmall);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--colorSurface-700);
}
#closet .closetMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--colorSurface-300);
}
#closet .closetColourName {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  font-size: 0.75rem;
  color: var(--colorSurface-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#closet .closetColourName .swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}
#closet .closetBrand.empty {
  color: var(--colorSurface-500);
}
#closet .closetSwatches {
  display: flex;
}
#closet .closetSwatches .swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14), 0 0 0 2px var(--colorSurface-200);
}
#closet .closetSwatches .swatch + .swatch {
  margin-left: -3px;
}
#closet .closetStock {
  font-size: 0.75rem;
  color: var(--colorSurface-600);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#closet .closetStock b {
  color: var(--colorSurface-0);
  font-weight: 600;
}

@media (max-width: 1024px) {
  #closet {
    padding: 1rem;
  }
  #closet .closetFilterFields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  #closet #closetSearch kbd {
    display: none;
  }
  #closet .closetFilterFields {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 520px) {
  #closet #closetGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
  #closet .closetName {
    font-size: 1.05rem;
  }
}
main #mainTop #closetTitle {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
main #mainTop #closetTitle .closetCount {
  font-size: 0.85rem;
  color: var(--colorSurface-600);
  font-variant-numeric: tabular-nums;
}
main #mainTop #closetTitle .closetCount b {
  color: var(--colorSurface-0);
  font-weight: 600;
}

#mediaLibraryOverlay {
  z-index: 100;
}

#mediaLibraryOverlay #mediaLibrary #mediaLibraryContent #cellsWrapper #cells .cell.videoCell {
  position: relative;
  overflow: hidden;
  background: var(--colorSurface-0);
}
#mediaLibraryOverlay #mediaLibrary #mediaLibraryContent #cellsWrapper #cells .cell.videoCell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
#mediaLibraryOverlay #mediaLibrary #mediaLibraryContent #cellsWrapper #cells .cell.videoCell .videoPlayIcon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s;
}
#mediaLibraryOverlay #mediaLibrary #mediaLibraryContent #cellsWrapper #cells .cell.videoCell .videoPlayIcon svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
  fill: #1c1a1f;
}
#mediaLibraryOverlay #mediaLibrary #mediaLibraryContent #cellsWrapper #cells .cell.videoCell:hover .videoPlayIcon {
  opacity: 0;
}
#mediaLibraryOverlay #mediaLibrary #mediaLibraryContent #cellsWrapper #cells .cell.videoCell .videoDuration {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  padding: 1px 6px;
  border-radius: var(--radiusSmall);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
#mediaLibraryOverlay #mediaLibrary #mediaLibraryContent #cellsWrapper #cells .cell.videoCell .videoDuration:empty {
  display: none;
}
#mediaLibraryOverlay #mediaLibrary #mediaLibraryContent #mediaLibrarySidebar form .previewAndData .videoSidebarPreview {
  width: 100%;
  max-height: 320px;
  border-radius: var(--radius);
  background: #000;
}

#productForm {
  --base: var(--colorSurface-100);
  --surface: var(--colorSurface-200);
  --surface2: var(--colorBeige);
  --surface3: var(--colorSurfaceMixed-200);
  --line: var(--colorSurface-300);
  --lineStrong: var(--colorSurface-400);
  --faint: var(--colorSurface-500);
  --muted: var(--colorSurface-600);
  --blackSecondary: var(--colorSurface-700);
  --black: var(--colorSurface-0);
  --error: var(--colorError);
  --errorTransparent: var(--colorErrorTransparent);
  --accent: var(--colorAccent);
  --accentLight: var(--colorAccentSoft);
  --success: var(--colorSuccess);
  --info: var(--colorInfo);
  --warning: var(--colorWarning);
  order: 5;
  font-family: "DM Sans", sans-serif;
  background: var(--base);
  color: var(--black);
  min-height: 100%;
}
#productForm, #productForm *, #productForm *::before, #productForm *::after {
  box-sizing: border-box;
}
#productForm :where(*:not(#mediaLibraryOverlay, #mediaLibraryOverlay *)) {
  margin: 0;
  padding: 0;
}
#productForm :where(ul, ol):where(:not(#mediaLibraryOverlay *)) {
  font: inherit;
  list-style: none;
}
#productForm :where(a):where(:not(#mediaLibraryOverlay *)) {
  text-decoration: none;
  color: inherit;
}
#productForm :where(svg):where(:not(#mediaLibraryOverlay *)) {
  pointer-events: none;
}
#productForm #mediaLibraryOverlay,
#productForm #mediaLibraryOverlay * {
  word-break: normal;
}
#productForm * {
  word-break: break-all;
}
#productForm .chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
#productForm .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 34px;
  padding: 0 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--lineStrong);
  background: var(--surface);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--blackSecondary);
  transition: all 0.15s;
  cursor: pointer;
}
#productForm .chip.active {
  border-color: var(--black);
  background: var(--black);
  color: var(--surface);
}
#productForm .chip:hover {
  border-color: var(--faint);
}
#productForm .chip .swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}
#productForm .chip.active .swatch {
  box-shadow: 0 0 0 2px var(--black), 0 0 0 3px var(--surface);
}
#productForm .chip.dashed {
  border-style: dashed;
  white-space: nowrap;
  word-break: normal;
  background: transparent;
  color: var(--muted);
}
#productForm .chip.dashed svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
#productForm .chip.dashed:hover {
  color: var(--black);
  border-color: var(--black);
}
#productForm .segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface3);
  border-radius: 10px;
}
#productForm .segmented button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 30px;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  word-break: normal;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
#productForm .segmented button:hover {
  color: var(--black);
}
#productForm .segmented button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
#productForm .segmented button .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
  flex: none;
  transition: background 0.15s;
}
#productForm .segmented button.active {
  background: var(--surface);
  color: var(--black);
  box-shadow: 0 1px 2px rgba(28, 26, 31, 0.06), 0 4px 12px -6px rgba(28, 26, 31, 0.18);
}
#productForm .segmented button.active[data-tone=success] .dot {
  background: var(--success);
}
#productForm .segmented button.active[data-tone=warning] .dot {
  background: var(--warning);
}
#productForm .segmented button.active[data-tone=error] .dot {
  background: var(--error);
}
#productForm #productHeader {
  color: var(--black);
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--base) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.5rem 0 1.5rem;
}
#productForm #productHeader #productHeaderTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
#productForm #productHeader #productHeaderTop #productHeaderLeft #breadcrumbs {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
}
#productForm #productHeader #productHeaderTop #productHeaderLeft #breadcrumbs .separator {
  color: var(--muted);
}
#productForm #productHeader #productHeaderTop #productHeaderLeft #breadcrumbs span {
  color: var(--muted);
}
#productForm #productHeader #productHeaderTop #productHeaderLeft #breadcrumbs span.current {
  color: var(--blackSecondary);
}
#productForm #productHeader #productHeaderTop #productHeaderLeft #breadcrumbs a {
  transition: 0.3s ease color;
}
#productForm #productHeader #productHeaderTop #productHeaderLeft #breadcrumbs a:hover {
  color: var(--blackSecondary);
}
#productForm #productHeader #productHeaderTop #productHeaderLeft #headerTitle {
  font-size: 2rem;
  letter-spacing: -0.01em;
  margin-top: 0.5rem;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
}
#productForm #productHeader #productHeaderTop #productHeaderLeft #headerTitle:empty::before {
  content: "Untitled product";
  color: var(--faint);
  font-style: italic;
  font-weight: normal;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
}
#productForm #productHeader #productHeaderTop #productHeaderRight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
#productForm #productHeader #productHeaderTop #productHeaderRight #save {
  background: var(--black);
  color: var(--surface);
  padding: 0.5rem 1.5rem;
  outline: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: 0.3s ease background;
}
#productForm #productHeader #productHeaderTop #productHeaderRight #save:hover {
  background: var(--blackSecondary);
}
#productForm #productHeader #productHeaderBottom {
  margin-top: 1.5rem;
}
#productForm #productHeader #productHeaderBottom #tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
}
#productForm #productHeader #productHeaderBottom #tabs button {
  background: transparent;
  border: 0;
  outline: none;
  color: var(--muted);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  white-space: nowrap;
  position: relative;
  padding: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease color;
}
#productForm #productHeader #productHeaderBottom #tabs button:hover {
  color: var(--black);
}
#productForm #productHeader #productHeaderBottom #tabs button.active {
  color: var(--black);
}
#productForm #productHeader #productHeaderBottom #tabs button.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 1px;
  background: var(--black);
  border-radius: 2px;
}
#productForm #productHeader #productHeaderBottom #tabs button .count {
  font-size: 0.7rem;
  background: var(--line);
  color: var(--muted);
  border-radius: 99px;
  padding: 0 7px;
  line-height: 18px;
}
#productForm #productHeader #productHeaderBottom #tabs button .count:empty {
  display: none;
}
#productForm #productFormMain {
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 8.5fr) minmax(0, 1.5fr);
  grid-gap: 1.5rem;
  overflow-x: clip;
}
@media (max-width: 1180px) {
  #productForm #productFormMain {
    grid-template-columns: minmax(0, 1fr);
  }
}
#productForm #productFormMain #content {
  min-width: 0;
}
#productForm #productFormMain #content > div {
  display: none;
  flex-direction: column;
  gap: 1rem;
}
#productForm #productFormMain #content > div.active {
  display: flex;
}
#productForm #productFormMain #content .segment {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.5rem;
}
#productForm #productFormMain #content .segment .segmentHeader {
  margin-bottom: 1.5rem;
}
#productForm #productFormMain #content .segment .segmentHeader h2 {
  font-size: 1rem;
  font-weight: 600;
}
#productForm #productFormMain #content .segment .segmentHeader .description {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}
#productForm #productFormMain #content .segment .segmentContent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
#productForm #productFormMain #content .segment .segmentContent .fieldHint {
  grid-column: 1/-1;
  margin-top: -0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}
#productForm #productFormMain #content .segment .segmentContent .field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
#productForm #productFormMain #content .segment .segmentContent .field.full {
  grid-column: 1/-1;
}
#productForm #productFormMain #content .segment .segmentContent .field.required label::after {
  content: " *";
  color: var(--error);
}
#productForm #productFormMain #content .segment .segmentContent .field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blackSecondary);
}
#productForm #productFormMain #content .segment .segmentContent .field input, #productForm #productFormMain #content .segment .segmentContent .field textarea, #productForm #productFormMain #content .segment .segmentContent .field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--lineStrong);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  min-height: 40px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
#productForm #productFormMain #content .segment .segmentContent .field input:focus, #productForm #productFormMain #content .segment .segmentContent .field textarea:focus, #productForm #productFormMain #content .segment .segmentContent .field select:focus {
  border-color: var(--accent);
}
#productForm #productFormMain #content .segment .segmentContent .field textarea {
  resize: vertical;
  font-family: "DM Sans", "serif";
}
#productForm #productFormMain #content .segment .segmentContent .field .withButton {
  display: flex;
  align-items: center;
  gap: 1rem;
}
#productForm #productFormMain #content .segment .segmentContent .field #descriptionHints {
  display: flex;
  justify-content: space-between;
}
#productForm #productFormMain #content .segment .segmentContent .field #descriptionHints small {
  color: var(--muted);
  font-size: 0.75rem;
}
#productForm #productFormMain #content .segment .segmentContent .field .withButton .chip {
  flex: none;
  height: 40px;
}
#productForm #productFormMain #content .segment .segmentContent #tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--lineStrong);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  min-height: 40px;
  background: var(--surface);
  position: relative;
}
#productForm #productFormMain #content .segment .segmentContent #tags #tagsDropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 10;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--lineStrong);
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.08) 0px 8px 24px -8px;
  max-height: 240px;
  overflow-y: auto;
}
#productForm #productFormMain #content .segment .segmentContent #tags #tagsDropdown.dropUp {
  top: auto;
  bottom: calc(100% + 4px);
}
#productForm #productFormMain #content .segment .segmentContent #tags #tagsDropdown li {
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
}
#productForm #productFormMain #content .segment .segmentContent #tags #tagsDropdown li:hover, #productForm #productFormMain #content .segment .segmentContent #tags #tagsDropdown li.active {
  background: var(--surface2);
}
#productForm #productFormMain #content .segment .segmentContent #tags #tagsDropdown li.dropdownHint {
  color: var(--muted);
  cursor: default;
}
#productForm #productFormMain #content .segment .segmentContent #tags #tagsDropdown li.dropdownHint:hover {
  background: none;
}
#productForm #productFormMain #content .segment .segmentContent #tags input {
  border: none;
  padding: 0;
  width: max-content;
}
#productForm #productFormMain #content .segment .segmentContent #tags input:focus {
  box-shadow: none;
}
#productForm #productFormMain #content .segment .segmentContent #tags .tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface3);
  border-radius: 6px;
  padding: 4px 4px 4px 9px;
  font-size: 0.75rem;
  font-weight: 500;
}
#productForm #productFormMain #content .segment .segmentContent #tags .tag button {
  border: 0;
  background: none;
  padding: 2px;
  color: var(--muted);
  display: grid;
  place-items: center;
  border-radius: 4px;
  cursor: pointer;
}
#productForm #productFormMain #content .segment .segmentContent #tags .tag button:hover {
  background: var(--errorTransparent);
}
#productForm #productFormMain #content .segment .segmentContent #tags .tag button:hover svg {
  fill: var(--error);
}
#productForm #productFormMain #content .segment .segmentContent #tags .tag button svg {
  fill: var(--faint);
  width: 18px;
  height: 18px;
}
#productForm #productFormMain #sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#productForm #productFormMain #sidebar #checklist {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1rem;
}
#productForm #productFormMain #sidebar #checklist .checklistHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
#productForm #productFormMain #sidebar #checklist .checklistHeader h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
}
#productForm #productFormMain #sidebar #checklist .checklistHeader #checklistCount {
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
#productForm #productFormMain #sidebar #checklist .checklistProgress {
  height: 4px;
  background: var(--surface3);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}
#productForm #productFormMain #sidebar #checklist .checklistProgress #checklistBar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.3s ease;
}
#productForm #productFormMain #sidebar #checklist #checklistItems {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#productForm #productFormMain #sidebar #checklist #checklistItems button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem;
  border: 0;
  border-radius: 4px;
  background: none;
  text-align: left;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--blackSecondary);
  cursor: pointer;
}
#productForm #productFormMain #sidebar #checklist #checklistItems button, #productForm #productFormMain #sidebar #checklist #checklistItems button * {
  word-break: normal;
  overflow-wrap: anywhere;
}
#productForm #productFormMain #sidebar #checklist #checklistItems button:hover {
  background: var(--surface2);
}
#productForm #productFormMain #sidebar #checklist #checklistItems button .checkIcon {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--lineStrong);
  display: flex;
  align-items: center;
  justify-content: center;
}
#productForm #productFormMain #sidebar #checklist #checklistItems button .checkIcon svg {
  width: 12px;
  height: 12px;
  fill: var(--surface);
  visibility: hidden;
}
#productForm #productFormMain #sidebar #checklist #checklistItems button.done {
  color: var(--muted);
}
#productForm #productFormMain #sidebar #checklist #checklistItems button.done .checkIcon {
  background: var(--success);
  border-color: var(--success);
}
#productForm #productFormMain #sidebar #checklist #checklistItems button.done .checkIcon svg {
  visibility: visible;
}
#productForm #productFormMain #sidebar #preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
#productForm #productFormMain #sidebar #preview .previewImage {
  position: relative;
  aspect-ratio: 3/4;
  max-width: 100%;
  background: var(--surface3);
}
#productForm #productFormMain #sidebar #preview .previewImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#productForm #productFormMain #sidebar #preview .previewImage img.hidden {
  display: none;
}
#productForm #productFormMain #sidebar #preview .previewImage .previewPlaceholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#productForm #productFormMain #sidebar #preview .previewImage .previewPlaceholder svg {
  width: 40px;
  height: 40px;
  fill: var(--faint);
}
#productForm #productFormMain #sidebar #preview .previewImage img:not(.hidden) + .previewPlaceholder {
  display: none;
}
#productForm #productFormMain #sidebar #preview .previewImage #previewLabel {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--surface);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(28, 26, 31, 0.08);
}
#productForm #productFormMain #sidebar #preview .previewImage #previewLabel:empty {
  display: none;
}
#productForm #productFormMain #sidebar #preview .previewBody {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
#productForm #productFormMain #sidebar #preview .previewBody #previewCategory {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
#productForm #productFormMain #sidebar #preview .previewBody #previewTitle {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--black);
  word-break: normal;
  overflow-wrap: anywhere;
  letter-spacing: -0.01em;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
}
#productForm #productFormMain #sidebar #preview .previewBody .empty {
  color: var(--faint);
  font-weight: 500;
}
#productForm #productFormMain #sidebar #preview .previewBody .previewMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.3rem 0.75rem;
  margin-top: 0.3rem;
}
#productForm #productFormMain #sidebar #preview .previewBody .previewMeta:has(#previewColor.hidden):has(#previewSizes:empty) {
  display: none;
}
#productForm #productFormMain #sidebar #preview .previewBody #previewSizes {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
  word-break: normal;
}
#productForm #productFormMain #sidebar #preview .previewBody #previewSizes:empty {
  display: none;
}
#productForm #productFormMain #sidebar #preview .previewBody #previewColor {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  word-break: normal;
}
#productForm #productFormMain #sidebar #preview .previewBody #previewColor.hidden {
  display: none;
}
#productForm #productFormMain #sidebar #preview .previewBody #previewColor .swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}
#productForm .mediaGallery {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
#productForm .mediaGallery .mediaItem {
  position: relative;
  width: 160px;
  height: 240px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface3);
  border: 1px solid var(--line);
  cursor: grab;
  transition: opacity 0.15s, box-shadow 0.15s;
}
#productForm .mediaGallery .mediaItem:hover {
  box-shadow: 0 8px 24px -12px rgba(28, 26, 31, 0.35);
}
#productForm .mediaGallery .mediaItem.dragging {
  opacity: 0.35;
}
#productForm .mediaGallery .mediaItem img, #productForm .mediaGallery .mediaItem video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
#productForm .mediaGallery .mediaItem .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.2s;
}
#productForm .mediaGallery .mediaItem .play svg {
  width: 44px;
  height: 44px;
  padding: 10px 9px 10px 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  fill: #1c1a1f;
}
#productForm .mediaGallery .mediaItem:hover .play {
  opacity: 0;
}
#productForm .mediaGallery .mediaItem .mediaActions {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
#productForm .mediaGallery .mediaItem .mediaActions button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#productForm .mediaGallery .mediaItem .mediaActions button svg {
  width: 18px;
  height: 18px;
  fill: #1c1a1f;
}
#productForm .mediaGallery .mediaItem .mediaActions button:hover {
  background: #fff;
}
#productForm .mediaGallery .mediaItem .mediaActions button.removeMedia:hover svg {
  fill: var(--error);
}
#productForm .mediaGallery .mediaItem:hover .mediaActions, #productForm .mediaGallery .mediaItem:focus-within .mediaActions {
  opacity: 1;
}
#productForm .mediaGallery .mediaLibraryInitiator {
  border: 1.5px dashed var(--lineStrong);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  background: var(--surface2);
  transition: all 0.15s;
  cursor: pointer;
  width: 160px;
  height: 240px;
  justify-content: center;
}
#productForm .mediaGallery .mediaLibraryInitiator:hover {
  background: var(--accentLight);
  border-color: var(--accent);
}
#productForm .mediaGallery .mediaLibraryInitiator .icon {
  border-radius: 50%;
  background: var(--surface);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(28, 26, 31, 0.05), 0 8px 24px -12px rgba(28, 26, 31, 0.12);
}
#productForm .mediaGallery .mediaLibraryInitiator .icon svg {
  fill: var(--black);
  width: 20px;
  height: 20px;
}
#productForm .mediaGallery .mediaLibraryInitiator span {
  color: var(--black);
  font-weight: 600;
  font-size: 0.8rem;
}
#productForm .mediaGallery.hasCover .mediaItem:first-child::before {
  content: "Cover";
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--surface);
  color: var(--black);
  border-radius: 4px;
  padding: 2px 7px;
}
#productForm .mediaGallery.hasCover .mediaItem:first-child .makeCover {
  display: none;
}
#productForm .variants {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.75rem;
}
#productForm .variants .variantsEmpty {
  grid-column: 1/-1;
  padding: 1.25rem;
  border: 1.5px dashed var(--lineStrong);
  border-radius: 4px;
  background: var(--surface2);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}
#productForm .variantCard {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem 0.6rem 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#productForm .variantCard, #productForm .variantCard * {
  word-break: normal;
}
#productForm .variantCard:hover, #productForm .variantCard.active {
  border-color: var(--faint);
  box-shadow: 0 8px 24px -14px rgba(28, 26, 31, 0.35);
}
#productForm .variantCard:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
#productForm .variantCard .swatch {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}
#productForm .variantCard .swatch.hidden {
  display: none;
}
#productForm .variantCard .variantInfo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#productForm .variantCard .variantInfo strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  overflow-wrap: anywhere;
}
#productForm .variantCard .variantInfo small {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#productForm .variantCard .variantMeta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}
#productForm .variantCard .variantStatus {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--blackSecondary);
}
#productForm .variantCard .variantStatus .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
}
#productForm .variantCard .variantStatus[data-tone=success] .dot {
  background: var(--success);
}
#productForm .variantCard .variantStatus[data-tone=warning] .dot {
  background: var(--warning);
}
#productForm .variantCard .variantStatus[data-tone=error] .dot {
  background: var(--error);
}
#productForm .variantCard > svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: var(--faint);
}
#productForm .drawer {
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  width: min(540px, 100%);
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  background: var(--surface);
  color: var(--black);
  box-shadow: -24px 0 64px -16px rgba(28, 26, 31, 0.35);
  overflow: hidden;
}
#productForm .drawer[open] {
  animation: drawerIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#productForm .drawer::backdrop {
  background: rgba(24, 20, 26, 0.36);
  backdrop-filter: blur(2px);
}
#productForm .drawer * {
  word-break: normal;
}
#productForm .drawer .drawerInner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
#productForm .drawer .drawerHeader {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.25rem 1.4rem 1rem;
  border-bottom: 1px solid var(--line);
}
#productForm .drawer .drawerHeader .swatch {
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: 1.1rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}
#productForm .drawer .drawerHeader .swatch.hidden {
  display: none;
}
#productForm .drawer .drawerTitle {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
#productForm .drawer .drawerTitle .eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
#productForm .drawer .drawerTitle h3 {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
#productForm .drawer .drawerTitle .sku {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--muted);
}
#productForm .drawer .drawerClose {
  flex: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#productForm .drawer .drawerClose svg {
  width: 20px;
  height: 20px;
  fill: var(--muted);
}
#productForm .drawer .drawerClose:hover {
  background: var(--surface2);
}
#productForm .drawer .drawerClose:hover svg {
  fill: var(--black);
}
#productForm .drawer .drawerBody {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
#productForm .drawer .drawerSectionHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
#productForm .drawer .drawerSectionHeader h4 {
  font-size: 0.9rem;
  font-weight: 600;
}
#productForm .drawer .drawerSectionHeader p {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--muted);
}
#productForm .drawer .drawerFooter {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-top: 1px solid var(--line);
}
#productForm .mediaGallery.compact {
  gap: 0.6rem;
}
#productForm .mediaGallery.compact .mediaItem, #productForm .mediaGallery.compact .mediaLibraryInitiator {
  width: 112px;
  height: 168px;
}
#productForm .mediaGallery.compact .mediaLibraryInitiator {
  padding: 0.75rem;
}
@keyframes drawerIn {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #productForm .drawer[open] {
    animation: none;
  }
}
#productForm #copyDrawer #copyDrawerSwatch {
  margin-top: 0;
}
#productForm .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 24px;
  padding: 0 0.6rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
  background: var(--surface3);
}
#productForm .badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
#productForm .badge[data-tone=success] {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 12%, transparent);
}
#productForm .badge[data-tone=warning] {
  color: var(--warning);
  background: color-mix(in srgb, var(--warning) 14%, transparent);
}
#productForm .badge[data-tone=info] {
  color: var(--info);
  background: color-mix(in srgb, var(--info) 12%, transparent);
}
#productForm .badge[data-tone=error] {
  color: var(--error);
  background: color-mix(in srgb, var(--error) 12%, transparent);
}
#productForm .copyList {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
#productForm .copyList.hidden {
  display: none;
}
#productForm .copyRow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 0.6rem 0.65rem 0.8rem;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
#productForm .copyRow, #productForm .copyRow * {
  word-break: normal;
}
#productForm .copyRow:first-child {
  border-top: 0;
}
#productForm .copyRow:hover {
  background: var(--surface2);
}
#productForm .copyRow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
#productForm .copyRow .copyRowQr {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#productForm .copyRow .copyRowQr img {
  width: 100%;
  height: 100%;
  display: block;
}
#productForm .copyRow .copyRowQr svg {
  width: 28px;
  height: 28px;
  fill: var(--blackSecondary);
}
#productForm .copyRow .copyRowInfo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#productForm .copyRow .copyRowInfo strong {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--black);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#productForm .copyRow .copyRowInfo small {
  font-size: 0.75rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#productForm .copyRow > svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: var(--blackSecondary);
}
#productForm .drawer .drawerTitle h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#productForm .drawer .drawerTitle h3 .swatch {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}
#productForm .drawer .drawerTitle h3 .swatch.hidden {
  display: none;
}
#productForm .drawer .copyBadges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
#productForm .drawer .copyLabel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
#productForm .drawer .copyLabel .qrBox {
  flex: none;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--surface2);
}
#productForm .drawer .copyLabel .qrBox img {
  width: 100%;
  height: 100%;
  display: block;
}
#productForm .drawer .copyLabel .qrBox svg {
  width: 44px;
  height: 44px;
  fill: var(--faint);
}
#productForm .drawer .copyLabel .copyLabelInfo {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
#productForm .drawer .copyLabel .copyLabelInfo .eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
#productForm .drawer .copyLabel .copyLabelInfo .sku {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--black);
  overflow-wrap: anywhere;
}
#productForm .drawer .copyLabel .copyLabelActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}
#productForm .drawer .copyLabel .copyLabelActions .chip {
  height: 30px;
}
#productForm .drawer .copyLabel .copyLabelActions .chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
#productForm .drawer .copyNotice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--warning) 10%, transparent);
  color: var(--warning);
}
#productForm .drawer .copyNotice.hidden {
  display: none;
}
#productForm .drawer .copyNotice svg {
  flex: none;
  margin-top: 0.05rem;
}
#productForm .drawer .copyNotice strong {
  font-size: 0.8rem;
  font-weight: 600;
}
#productForm .drawer .copyNotice p {
  margin-top: 0.15rem;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--muted);
}
#productForm .drawer .copyGroupTitle {
  margin: 0.85rem 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
}
#productForm .drawer .copyGroupTitle small {
  margin-left: 0.35rem;
  font-weight: 400;
  color: var(--muted);
}
#productForm .drawer .copyGroupTitle:first-of-type {
  margin-top: 0;
}
#productForm .drawer .optionGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}
#productForm .drawer .optionGrid button {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--lineStrong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#productForm .drawer .optionGrid button[hidden] {
  display: none;
}
#productForm .drawer .optionGrid button:disabled {
  opacity: 0.5;
  cursor: default;
}
#productForm .drawer .optionGrid button:disabled:hover {
  border-color: var(--lineStrong);
}
#productForm .drawer .optionGrid button:disabled.active {
  opacity: 1;
}
#productForm .drawer .optionGrid button:hover {
  border-color: var(--faint);
}
#productForm .drawer .optionGrid button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
#productForm .drawer .optionGrid button .dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}
#productForm .drawer .optionGrid button .optionText {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
#productForm .drawer .optionGrid button .optionText strong {
  font-size: 0.8rem;
  font-weight: 600;
}
#productForm .drawer .optionGrid button .optionText code {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 0.68rem;
  opacity: 0.7;
}
#productForm .drawer .optionGrid button[data-tone=success] {
  color: var(--success);
}
#productForm .drawer .optionGrid button[data-tone=warning] {
  color: var(--warning);
}
#productForm .drawer .optionGrid button[data-tone=info] {
  color: var(--info);
}
#productForm .drawer .optionGrid button[data-tone=error] {
  color: var(--error);
}
#productForm .drawer .optionGrid button.active {
  border-color: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
}
#productForm .drawer .formGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
#productForm .drawer .formGrid .full {
  grid-column: 1/-1;
}
#productForm .drawer .field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
#productForm .drawer .field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blackSecondary);
}
#productForm .drawer .field label.required::after {
  content: " *";
  color: var(--error);
}
#productForm .drawer .field input, #productForm .drawer .field select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--lineStrong);
  border-radius: 4px;
  background: var(--surface);
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--black);
  outline: none;
  transition: border-color 0.15s;
}
#productForm .drawer .field input:focus, #productForm .drawer .field select:focus {
  border-color: var(--accent);
}
#productForm .drawer .field input.error, #productForm .drawer .field select.error {
  border-color: var(--error);
}
#productForm .drawer .field input[readonly], #productForm .drawer .field select[readonly] {
  background: transparent;
  border-style: dashed;
  color: var(--blackSecondary);
  cursor: default;
}
#productForm .drawer .field input[readonly]:focus, #productForm .drawer .field select[readonly]:focus {
  border-color: var(--lineStrong);
}
#productForm .drawer .field .withButton {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
#productForm .drawer .field .withButton select {
  flex: 1;
}
#productForm .drawer .field .withButton .chip {
  flex: none;
  height: 40px;
}
#productForm .drawer .drawerFooter {
  align-items: center;
}
#productForm .drawer .drawerFooter .modalError {
  flex: 1;
  font-size: 0.78rem;
  color: var(--error);
}
#productForm .drawer .drawerFooter .modalError.hidden {
  display: none;
}
@media (max-width: 520px) {
  #productForm .drawer .optionGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #productForm .drawer .formGrid {
    grid-template-columns: minmax(0, 1fr);
  }
}
#productForm .copiesToolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
#productForm .copiesToolbar .copiesSearch {
  position: relative;
  flex: 1;
  min-width: 220px;
}
#productForm .copiesToolbar .copiesSearch svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--faint);
  pointer-events: none;
}
#productForm .copiesToolbar .copiesSearch input {
  width: 100%;
  min-height: 40px;
  padding: 0.5rem 0.75rem 0.5rem 2.3rem;
  border: 1px solid var(--lineStrong);
  border-radius: 4px;
  background: var(--surface);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s;
}
#productForm .copiesToolbar .copiesSearch input:focus {
  border-color: var(--accent);
}
#productForm .copiesToolbar select {
  min-height: 40px;
  min-width: 150px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--lineStrong);
  border-radius: 4px;
  background: var(--surface);
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--black);
  outline: none;
}
#productForm .copiesToolbar select:focus {
  border-color: var(--accent);
}
#productForm .copiesToolbar .chip {
  height: 40px;
  white-space: nowrap;
  word-break: normal;
}
#productForm .copiesToolbar .chip svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
#productForm .copiesTableWrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
#productForm .copiesTable {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.85rem;
}
#productForm .copiesTable * {
  word-break: normal;
}
#productForm .copiesTable th {
  padding: 0.7rem 0.9rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}
#productForm .copiesTable td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--black);
  vertical-align: middle;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#productForm .copiesTable tbody tr:last-child td {
  border-bottom: 0;
}
#productForm .copiesTable tbody tr[data-key] {
  cursor: pointer;
  transition: background 0.15s;
}
#productForm .copiesTable tbody tr[data-key]:hover {
  background: var(--surface2);
}
#productForm .copiesTable tbody tr[data-key]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
#productForm .copiesTable .alignRight {
  text-align: right;
}
#productForm .copiesTable code {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
}
#productForm .copiesTable .copyCell {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
#productForm .copiesTable .copyRowQr {
  flex: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#productForm .copiesTable .copyRowQr img {
  width: 100%;
  height: 100%;
  display: block;
}
#productForm .copiesTable .copyRowQr svg {
  width: 24px;
  height: 24px;
  fill: var(--blackSecondary);
}
#productForm .copiesTable .variantCell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#productForm .copiesTable .variantCell .swatch {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}
#productForm .copiesTable .copiesEmpty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  white-space: normal;
  cursor: default;
}
#productForm .modal {
  border: 0;
  padding: 0;
  margin: auto;
  width: min(440px, 100% - 2rem);
  max-height: calc(100% - 2rem);
  border-radius: 16px;
  background: var(--surface);
  color: var(--black);
  box-shadow: 0 24px 64px -16px rgba(28, 26, 31, 0.35);
  overflow: auto;
}
#productForm .modal[open] {
  animation: modalIn 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#productForm .modal::backdrop {
  background: rgba(24, 20, 26, 0.36);
  backdrop-filter: blur(2px);
}
#productForm .modal * {
  word-break: normal;
}
#productForm .modal .modalInner {
  display: flex;
  flex-direction: column;
}
#productForm .modal .modalHeader {
  padding: 1.4rem 1.4rem 0.4rem;
}
#productForm .modal .modalHeader h3 {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.15;
}
#productForm .modal .modalHeader p {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}
#productForm .modal .modalBody {
  padding: 0.9rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#productForm .modal .field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
#productForm .modal .field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blackSecondary);
}
#productForm .modal .field label.required::after {
  content: " *";
  color: var(--error);
}
#productForm .modal .field input[type=text] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--lineStrong);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  min-height: 40px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#productForm .modal .field input[type=text]:focus {
  border-color: var(--accent);
}
#productForm .modal .field input[type=text].error {
  border-color: var(--error);
}
#productForm .modal .colorPreview {
  height: 74px;
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  padding: 0.6rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  transition: background 0.15s;
}
#productForm .modal .colorPreview span {
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#productForm .modal .colorInputs {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
#productForm .modal .colorInputs input[type=color] {
  flex: none;
  width: 44px;
  height: 40px;
  padding: 3px;
  border: 1px solid var(--lineStrong);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
}
#productForm .modal .colorInputs input[type=text] {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  text-transform: uppercase;
}
#productForm .modal .modalError {
  font-size: 0.78rem;
  color: var(--error);
}
#productForm .modal .modalError.hidden {
  display: none;
}
#productForm .modal .modalFooter {
  padding: 0.6rem 1.4rem 1.4rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
@media (prefers-reduced-motion: reduce) {
  #productForm .modal[open] {
    animation: none;
  }
}
#productForm .modalButton {
  height: 38px;
  padding: 0 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
#productForm .modalButton.ghost {
  background: transparent;
  color: var(--muted);
}
#productForm .modalButton.ghost:hover {
  background: var(--surface2);
  color: var(--black);
}
#productForm .modalButton.primary {
  background: var(--black);
  color: var(--surface);
}
#productForm .modalButton.primary:hover {
  background: var(--blackSecondary);
}
#productForm .modalButton.primary:disabled {
  opacity: 0.6;
  cursor: progress;
}
#productForm dialog.drawer,
#productForm dialog.modal {
  inset: 0;
  transform: none;
  padding: 0;
  border: 0;
}
@media (max-width: 768px) {
  #productForm dialog.drawer {
    width: min(540px, 100%) !important;
    height: 100% !important;
  }
  #productForm dialog.modal {
    width: min(440px, 100% - 2rem) !important;
    height: auto !important;
  }
}
#productForm .labelBadge {
  display: inline-block;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
  box-shadow: 0 1px 2px rgba(28, 26, 31, 0.08);
}
#productForm #previewLabels {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  pointer-events: none;
}
#productForm #previewLabels:empty {
  display: none;
}
#productForm .labelColours {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
#productForm .labelColours input[type=color] {
  width: 100%;
  height: 40px;
  padding: 3px;
  border: 1px solid var(--lineStrong);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
}
#productForm .labelColours .labelPreview {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0.75rem;
  border-radius: 10px;
  background: var(--surface2);
  box-shadow: inset 0 0 0 1px var(--line);
}
#productForm .labelColours .labelPreview .labelBadge {
  font-size: 0.75rem;
  padding: 4px 10px;
}
#productForm .copyHistory {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-left: 1.25rem;
  list-style: none;
}
#productForm .copyHistory::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: var(--line);
}
#productForm .copyHistory li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  word-break: normal;
}
#productForm .copyHistory li::before {
  content: "";
  position: absolute;
  left: calc(-1.25rem + 1px);
  top: 0.3rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
  box-shadow: 0 0 0 3px var(--surface);
}
#productForm .copyHistory li[data-tone=success]::before {
  background: var(--success);
}
#productForm .copyHistory li[data-tone=info]::before {
  background: var(--info);
}
#productForm .copyHistory li[data-tone=warning]::before {
  background: var(--warning);
}
#productForm .copyHistory li[data-tone=error]::before {
  background: var(--error);
}
#productForm .copyHistory li strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
}
#productForm .copyHistory li small {
  font-size: 0.75rem;
  color: var(--muted);
}
#productForm .copyHistory li.empty {
  font-size: 0.8rem;
  color: var(--muted);
}
#productForm .copyHistory li.empty::before {
  background: var(--lineStrong);
}
#productForm #productFormMessages {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.5rem 0;
}
#productForm #productFormMessages:empty {
  display: none;
}
#productForm #productFormMessages .message {
  margin: 0;
  padding: 0.7rem 0.9rem;
  gap: 0.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
  word-break: normal;
}
#productForm #productFormMessages .message > span:first-child {
  flex: none;
}
#productForm #productFormMessages .message .removeButton {
  flex: none;
  margin-left: auto;
  display: grid;
  place-items: center;
  border-radius: 4px;
  opacity: 0.7;
  transition: opacity 0.15s;
}
#productForm #productFormMessages .message .removeButton:hover {
  opacity: 1;
}

body:has(#productForm) #navigation {
  z-index: 21;
}

main #mainTop #paymentMethodsTitle {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
main #mainTop #paymentMethodsTitle .pageSubtitle {
  font-size: 0.85rem;
  color: var(--colorSurface-600);
}
main #mainTop #paymentMethodsTitle .pageBack {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: max-content;
  font-size: 0.8rem;
  color: var(--colorSurface-600);
  text-decoration: none;
}
main #mainTop #paymentMethodsTitle .pageBack svg {
  width: 16px;
  fill: currentColor;
}
main #mainTop #paymentMethodsTitle .pageBack:hover {
  color: var(--colorSurface-0);
}

.switch {
  position: relative;
  display: inline-flex;
  flex: none;
  cursor: pointer;
}
.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: inherit;
}
.switch .switchTrack {
  width: 38px;
  height: 22px;
  border-radius: 99px;
  background: var(--colorSurface-400);
  position: relative;
  transition: background 0.15s;
}
.switch .switchThumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s;
}
.switch input:checked + .switchTrack {
  background: var(--colorSuccess);
}
.switch input:checked + .switchTrack .switchThumb {
  transform: translateX(16px);
}
.switch input:focus-visible + .switchTrack {
  outline: 2px solid var(--colorAccent);
  outline-offset: 2px;
}
.switch:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.45;
}

#paymentMethods {
  order: 5;
  padding: 1rem 28px 2rem;
}
#paymentMethods .paymentMethodList {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--colorSurface-300);
  border-radius: var(--radius);
  background: var(--colorSurface-200);
  overflow: hidden;
}
#paymentMethods .paymentMethodRow {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
}
#paymentMethods .paymentMethodRow + .paymentMethodRow {
  border-top: 1px solid var(--colorSurface-300);
}
#paymentMethods .paymentMethodOrder {
  display: flex;
  flex-direction: column;
}
#paymentMethods .paymentMethodOrder .paymentMethodMove {
  display: grid;
  place-items: center;
  width: 24px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  cursor: pointer;
}
#paymentMethods .paymentMethodOrder .paymentMethodMove svg {
  width: 18px;
  fill: var(--colorSurface-600);
}
#paymentMethods .paymentMethodOrder .paymentMethodMove:hover:not(:disabled) {
  background: var(--colorBeige);
}
#paymentMethods .paymentMethodOrder .paymentMethodMove:disabled {
  cursor: default;
  opacity: 0.3;
}
#paymentMethods .paymentMethodIcon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--colorSurfaceMixed-200);
}
#paymentMethods .paymentMethodIcon svg {
  width: 22px;
  fill: var(--colorSurface-700);
}
#paymentMethods .paymentMethodInfo {
  min-width: 0;
}
#paymentMethods .paymentMethodInfo .paymentMethodName {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}
#paymentMethods .paymentMethodInfo .paymentMethodName strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--colorSurface-0);
}
#paymentMethods .paymentMethodInfo .paymentMethodDriver {
  font-size: 0.75rem;
  color: var(--colorSurface-600);
}
#paymentMethods .paymentMethodInfo p {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--colorSurface-600);
}
#paymentMethods .paymentMethodInfo .paymentMethodNeeds {
  color: var(--colorWarning);
}
#paymentMethods .paymentMethodStatus {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
  color: var(--colorSurface-600);
  background: var(--colorSurfaceMixed-200);
}
#paymentMethods .isEnabled .paymentMethodStatus {
  color: var(--colorSuccess);
  background: var(--colorSuccessTransparent);
}

#paymentMethodManage {
  order: 5;
  padding: 1rem 28px 2rem;
  max-width: 820px;
}
#paymentMethodManage form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#paymentMethodManage .settingsCard {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--colorSurface-300);
  border-radius: var(--radius);
  background: var(--colorSurface-200);
}
#paymentMethodManage .settingsCardHeader h2 {
  font-size: 1rem;
  font-weight: 600;
}
#paymentMethodManage .settingsCardHeader p {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--colorSurface-600);
}
#paymentMethodManage .settingsToggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: max-content;
  font-size: 0.9rem;
  cursor: pointer;
}
#paymentMethodManage .settingsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}
#paymentMethodManage .settingsGrid .isWide {
  grid-column: 1/-1;
}
#paymentMethodManage .settingsField {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
#paymentMethodManage .settingsField label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--colorSurface-700);
}
#paymentMethodManage .settingsField label .required {
  color: var(--colorError);
}
#paymentMethodManage .settingsField .input {
  width: 100%;
}
#paymentMethodManage .settingsField textarea.input {
  resize: vertical;
}
#paymentMethodManage .settingsField .input.hasError {
  border-color: var(--colorError);
}
#paymentMethodManage .fieldError {
  font-size: 0.78rem;
  color: var(--colorError);
}
#paymentMethodManage .settingsActions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

@media (max-width: 760px) {
  #paymentMethods {
    padding: 1rem;
  }
  #paymentMethods .paymentMethodRow {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "order info toggle" "order status manage";
  }
  #paymentMethods .paymentMethodRow .paymentMethodIcon {
    display: none;
  }
  #paymentMethods .paymentMethodRow .paymentMethodOrder {
    grid-area: order;
  }
  #paymentMethods .paymentMethodRow .paymentMethodInfo {
    grid-area: info;
  }
  #paymentMethods .paymentMethodRow .switch {
    grid-area: toggle;
    justify-self: end;
  }
  #paymentMethods .paymentMethodRow .paymentMethodStatus {
    grid-area: status;
    justify-self: start;
  }
  #paymentMethods .paymentMethodRow .btn {
    grid-area: manage;
  }
  #paymentMethodManage {
    padding: 1rem;
  }
  #paymentMethodManage .settingsGrid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.orderStatus {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  font-family: var(--fontSans);
  font-style: normal;
  letter-spacing: normal;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: middle;
  color: var(--colorSurface-0);
  background: var(--colorSurface-300);
}
.orderStatus.isPending {
  background: color-mix(in srgb, var(--colorWarning, #e0a030) 22%, transparent);
}
.orderStatus.isPaid {
  background: color-mix(in srgb, var(--colorSuccess) 22%, transparent);
}
.orderStatus.isDispatched {
  background: color-mix(in srgb, var(--colorAccent) 22%, transparent);
}
.orderStatus.isReturned {
  background: color-mix(in srgb, var(--colorAccent) 12%, transparent);
}
.orderStatus.isCancelled, .orderStatus.isRefunded {
  background: color-mix(in srgb, var(--colorError) 18%, transparent);
}

main #mainTop #orderTitle {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
main #mainTop #orderTitle h1 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
main #mainTop #orderTitle .pageSubtitle {
  font-size: 0.85rem;
  color: var(--colorSurface-600);
}
main #mainTop #orderTitle .pageBack {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: max-content;
  font-size: 0.8rem;
  color: var(--colorSurface-600);
  text-decoration: none;
}
main #mainTop #orderTitle .pageBack svg {
  width: 16px;
  fill: currentColor;
}
main #mainTop #orderTitle .pageBack:hover {
  color: var(--colorSurface-0);
}

#orderPage, #orderCreate {
  order: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  align-items: start;
  gap: 1rem;
  padding: 1rem 28px 2rem;
}
@media (max-width: 1000px) {
  #orderPage, #orderCreate {
    grid-template-columns: minmax(0, 1fr);
    padding: 1rem 16px 2rem;
  }
}
#orderPage .orderMain, #orderPage .orderSide, #orderCreate .orderMain, #orderCreate .orderSide {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
#orderPage .orderCard, #orderCreate .orderCard {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--colorSurface-300);
  border-radius: var(--radius);
  background: var(--colorSurface-200);
}
#orderPage .orderCard p, #orderCreate .orderCard p {
  font-size: 0.875rem;
  line-height: 1.5;
}
#orderPage .orderCard a, #orderCreate .orderCard a {
  color: inherit;
}
#orderPage .orderCard textarea, #orderCreate .orderCard textarea {
  width: 100%;
  resize: vertical;
}
#orderPage .orderCard > .btn, #orderCreate .orderCard > .btn {
  align-self: flex-start;
}
#orderPage .orderCardHeader, #orderCreate .orderCardHeader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.75rem;
}
#orderPage .orderCardHeader > h2, #orderPage .orderCardHeader > p, #orderCreate .orderCardHeader > h2, #orderCreate .orderCardHeader > p {
  grid-column: 1;
}
#orderPage .orderCardHeader > .btn, #orderPage .orderCardHeader > .orderCardActions, #orderCreate .orderCardHeader > .btn, #orderCreate .orderCardHeader > .orderCardActions {
  grid-column: 2;
  grid-row: 1/span 2;
  align-self: start;
}
#orderPage .orderCardHeader > .orderCardActions, #orderCreate .orderCardHeader > .orderCardActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}
#orderPage .orderCardHeader h2, #orderCreate .orderCardHeader h2 {
  font-size: 1rem;
  font-weight: 600;
}
#orderPage .orderCardHeader p, #orderCreate .orderCardHeader p {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--colorSurface-600);
}
#orderPage .orderMuted, #orderCreate .orderMuted {
  font-size: 0.8rem;
  color: var(--colorSurface-600);
}
#orderPage .orderLines, #orderCreate .orderLines {
  list-style: none;
  margin: 0;
  padding: 0;
}
#orderPage .orderLine, #orderCreate .orderLine {
  padding: 0.8rem 0;
  border-top: 1px solid var(--colorSurface-300);
}
#orderPage .orderLine:first-child, #orderCreate .orderLine:first-child {
  border-top: 0;
  padding-top: 0;
}
#orderPage .orderLineHead, #orderCreate .orderLineHead {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
#orderPage .orderLineHead > div, #orderCreate .orderLineHead > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
#orderPage .orderLinePrice, #orderCreate .orderLinePrice {
  align-items: flex-end;
  text-align: right;
  white-space: nowrap;
}
#orderPage .orderCopies, #orderCreate .orderCopies {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
#orderPage .orderCopy, #orderCreate .orderCopy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  padding: 0.45rem 0.7rem;
  border-radius: calc(var(--radius) * 0.75);
  background: var(--colorSurface-100);
}
#orderPage .orderCopySku, #orderCreate .orderCopySku {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--colorSurface-400);
  text-underline-offset: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 600;
}
#orderPage .orderCopySku:hover, #orderCreate .orderCopySku:hover {
  text-decoration-color: currentColor;
}
#orderPage .orderCopySwap, #orderPage .orderCopyNoSwap, #orderPage .orderTailorToggle, #orderCreate .orderCopySwap, #orderCreate .orderCopyNoSwap, #orderCreate .orderTailorToggle {
  margin-left: auto;
}
#orderPage .orderTailorToggle + .orderCopySwapToggle, #orderPage .orderTailorToggle + .orderCopyNoSwap, #orderCreate .orderTailorToggle + .orderCopySwapToggle, #orderCreate .orderTailorToggle + .orderCopyNoSwap {
  margin-left: 0;
}
#orderPage .orderTailorToggle.hasInstructions, #orderCreate .orderTailorToggle.hasInstructions {
  font-weight: 600;
}
#orderPage .orderCopy > .orderEditForm, #orderPage .orderTailorPreview, #orderCreate .orderCopy > .orderEditForm, #orderCreate .orderTailorPreview {
  flex-basis: 100%;
}
#orderPage .orderTailorPreview, #orderCreate .orderTailorPreview {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.7rem;
  border-left: 3px solid var(--colorSurface-300);
  background: var(--colorSurface-200);
  font-size: 0.8rem;
}
#orderPage .orderTailorPreview p, #orderCreate .orderTailorPreview p {
  margin: 0;
}
#orderPage .orderTailorPreview a, #orderCreate .orderTailorPreview a {
  white-space: nowrap;
}
#orderPage .orderDatesChoice, #orderCreate .orderDatesChoice {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}
#orderPage .orderHistory, #orderCreate .orderHistory {
  list-style: none;
  margin: 0;
  padding: 0 0 0 6px;
  display: flex;
  flex-direction: column;
  max-height: 32rem;
  overflow-y: auto;
}
#orderPage .orderHistory li, #orderCreate .orderHistory li {
  position: relative;
  padding: 0 0 0.8rem 1rem;
  border-left: 2px solid var(--colorSurface-300);
  font-size: 0.8rem;
}
#orderPage .orderHistory li:last-child, #orderCreate .orderHistory li:last-child {
  padding-bottom: 0;
}
#orderPage .orderHistory li::before, #orderCreate .orderHistory li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.25rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--colorSurface-0);
}
#orderPage .orderHistory li.isAuto::before, #orderCreate .orderHistory li.isAuto::before {
  background: var(--colorSurface-200);
  box-shadow: inset 0 0 0 2px var(--colorSurface-600);
}
#orderPage .orderHistory p, #orderCreate .orderHistory p {
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
}
#orderPage .orderHistoryMeta, #orderCreate .orderHistoryMeta {
  color: var(--colorSurface-600);
  font-size: 0.75rem;
}
#orderPage .orderHistoryMeta strong, #orderCreate .orderHistoryMeta strong {
  color: var(--colorSurface-0);
  font-weight: 600;
}
#orderPage .orderTailorForm fieldset, #orderCreate .orderTailorForm fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
#orderPage .orderTailorForm .orderFieldGrid, #orderCreate .orderTailorForm .orderFieldGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
#orderPage .orderCopySwap, #orderCreate .orderCopySwap {
  display: inline-flex;
  gap: 0.4rem;
}
#orderPage .orderCopySwap select, #orderCreate .orderCopySwap select {
  min-width: 9rem;
  height: 30px;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 0.8rem;
}
#orderPage .orderCopySwap .btn, #orderCreate .orderCopySwap .btn {
  height: 30px;
  padding: 0 10px;
  font-size: 0.78rem;
}
#orderPage .orderTotals, #orderCreate .orderTotals {
  margin: 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--colorSurface-300);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.875rem;
}
#orderPage .orderTotals > div, #orderCreate .orderTotals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
#orderPage .orderTotals dd, #orderCreate .orderTotals dd {
  margin: 0;
  white-space: nowrap;
}
#orderPage .orderTotals .isNote, #orderCreate .orderTotals .isNote {
  font-size: 0.78rem;
  color: var(--colorSurface-600);
}
#orderPage .orderTotals .isTotal, #orderCreate .orderTotals .isTotal {
  margin-top: 0.3rem;
  font-weight: 700;
  font-size: 1rem;
}
#orderPage .orderAddresses, #orderCreate .orderAddresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
#orderPage .orderAddresses h3, #orderCreate .orderAddresses h3 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
#orderPage .orderStatusActions, #orderCreate .orderStatusActions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
#orderPage .orderStatusActions .btn, #orderCreate .orderStatusActions .btn {
  width: 100%;
  margin: 0;
}
#orderPage .orderCustomerNote h3, #orderCreate .orderCustomerNote h3 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
#orderPage .orderFieldGrid, #orderCreate .orderFieldGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 0.75rem;
}
#orderPage .orderFieldGrid[hidden], #orderCreate .orderFieldGrid[hidden] {
  display: none;
}
#orderPage .orderField, #orderCreate .orderField {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
#orderPage .orderField > span, #orderCreate .orderField > span {
  font-size: 0.75rem;
  color: var(--colorSurface-600);
}
#orderPage .orderField.isWide, #orderCreate .orderField.isWide {
  grid-column: 1/-1;
}
#orderPage .orderField .input, #orderCreate .orderField .input {
  width: 100%;
}
#orderPage .orderAddressFields, #orderCreate .orderAddressFields {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
#orderPage .orderAddressFields + .orderAddressFields, #orderCreate .orderAddressFields + .orderAddressFields {
  margin-top: 0.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--colorSurface-300);
}
#orderPage .orderAddressFields legend, #orderCreate .orderAddressFields legend {
  padding: 0;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
}
#orderPage .orderFieldGrid .orderCheck.isWide, #orderCreate .orderFieldGrid .orderCheck.isWide {
  grid-column: 1/-1;
}
#orderPage .orderCheck, #orderCreate .orderCheck {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}
#orderPage .orderInline, #orderCreate .orderInline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#orderPage .orderInline .input, #orderCreate .orderInline .input {
  flex: 1;
  min-width: 0;
  height: 38px;
}
#orderPage .orderEditForm, #orderCreate .orderEditForm {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0.9rem;
  border-radius: calc(var(--radius) * 0.75);
  background: var(--colorSurface-100);
}
#orderPage .orderEditForm[hidden], #orderCreate .orderEditForm[hidden] {
  display: none;
}
#orderPage .orderEditActions, #orderCreate .orderEditActions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
#orderPage .orderSubmit, #orderCreate .orderSubmit {
  width: 100%;
}
#orderPage .orderNewCustomer, #orderCreate .orderNewCustomer {
  margin: 1rem 0 0.6rem;
}
#orderPage .orderSearch, #orderCreate .orderSearch {
  position: relative;
}
#orderPage .orderSearch .input, #orderCreate .orderSearch .input {
  width: 100%;
}
#orderPage .orderSearchResults, #orderCreate .orderSearchResults {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  border: 1px solid var(--colorSurface-300);
  border-radius: var(--radius);
  background: var(--colorSurface-200);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
#orderPage .orderSearchResults > li.orderMuted, #orderCreate .orderSearchResults > li.orderMuted {
  padding: 0.5rem 0.6rem;
}
#orderPage .orderSearchResults button, #orderCreate .orderSearchResults button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-radius: calc(var(--radius) * 0.6);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
}
#orderPage .orderSearchResults button:hover, #orderPage .orderSearchResults button:focus-visible, #orderCreate .orderSearchResults button:hover, #orderCreate .orderSearchResults button:focus-visible {
  background: var(--colorSurface-100);
  outline: none;
}
#orderPage .orderBasket, #orderCreate .orderBasket {
  list-style: none;
  margin: 0;
  padding: 0;
}
#orderPage .orderBasketLine, #orderCreate .orderBasketLine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px 120px 100px 28px;
  align-items: end;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--colorSurface-300);
}
#orderPage .orderBasketLine:first-child, #orderCreate .orderBasketLine:first-child {
  border-top: 0;
  padding-top: 0;
}
@media (max-width: 700px) {
  #orderPage .orderBasketLine, #orderCreate .orderBasketLine {
    grid-template-columns: 1fr 1fr;
  }
  #orderPage .orderBasketLine .orderBasketName, #orderCreate .orderBasketLine .orderBasketName {
    grid-column: 1/-1;
  }
}
#orderPage .orderBasketName, #orderCreate .orderBasketName {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  align-self: center;
}
#orderPage .orderBasketTotal, #orderCreate .orderBasketTotal {
  align-self: center;
  text-align: right;
  white-space: nowrap;
}
#orderPage .orderFree, #orderCreate .orderFree {
  font-size: 0.75rem;
  color: var(--colorSuccess);
}
#orderPage .orderFree.isShort, #orderCreate .orderFree.isShort {
  color: var(--colorError);
  font-weight: 600;
}
#orderPage .orderRemove, #orderCreate .orderRemove {
  align-self: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--colorSurface-600);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
#orderPage .orderRemove:hover, #orderCreate .orderRemove:hover {
  background: var(--colorSurface-100);
  color: var(--colorError);
}
#orderPage .orderProblems, #orderCreate .orderProblems {
  margin: 0;
  padding: 0.6rem 0.8rem 0.6rem 1.8rem;
  border-radius: calc(var(--radius) * 0.75);
  background: color-mix(in srgb, var(--colorError) 12%, transparent);
  color: var(--colorError);
  font-size: 0.85rem;
}
#orderPage .orderProblems[hidden], #orderCreate .orderProblems[hidden] {
  display: none;
}
#orderPage [hidden], #orderCreate [hidden] {
  display: none !important;
}

.rangeCalendar {
  --cellHeight: 42px;
}
.rangeCalendar .rangeCalendarHeader {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  margin-bottom: 0.75rem;
}
.rangeCalendar .rangeCalendarHeader button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--colorSurface-0);
  cursor: pointer;
}
.rangeCalendar .rangeCalendarHeader button svg {
  width: 22px;
  fill: currentColor;
}
.rangeCalendar .rangeCalendarHeader button:hover {
  background: var(--colorSurface-100);
}
.rangeCalendar .rangeCalendarMonth {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}
.rangeCalendar .rangeCalendarWeekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 0.4rem;
}
.rangeCalendar .rangeCalendarWeekdays span {
  font-size: 0.75rem;
  text-align: center;
  color: var(--colorSurface-600);
}
.rangeCalendar .rangeCalendarBody {
  position: relative;
}
.rangeCalendar .rangeCalendarGrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--colorSurface-300);
  border-left: 1px solid var(--colorSurface-300);
}
.rangeCalendar .rangeCalendarCell {
  height: var(--cellHeight);
  padding: 0;
  border: 0;
  border-right: 1px solid var(--colorSurface-300);
  border-bottom: 1px solid var(--colorSurface-300);
  background: var(--colorSurface-200);
  color: var(--colorSurface-0);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.12s;
}
.rangeCalendar .rangeCalendarCell:hover:not(:disabled):not(.isBlocked):not(.isInRange) {
  background: color-mix(in srgb, var(--colorAccent) 18%, var(--colorSurface-200));
}
.rangeCalendar .rangeCalendarCell.isOtherMonth {
  color: var(--colorSurface-500);
}
.rangeCalendar .rangeCalendarCell.isWeekend:not(.isBlocked):not(.isInRange) {
  background: color-mix(in srgb, var(--colorSurface-100) 60%, var(--colorSurface-200));
}
.rangeCalendar .rangeCalendarCell.isToday {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rangeCalendar .rangeCalendarCell.isBlocked {
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--colorError) 16%, var(--colorSurface-200)) 0 4px, var(--colorSurface-200) 4px 8px);
  color: var(--colorError);
  text-decoration: line-through;
  cursor: not-allowed;
}
.rangeCalendar .rangeCalendarCell.isInRange {
  background: color-mix(in srgb, var(--colorAccent) 35%, var(--colorSurface-200));
}
.rangeCalendar .rangeCalendarCell.isPreview {
  background: color-mix(in srgb, var(--colorAccent) 18%, var(--colorSurface-200));
}
.rangeCalendar .rangeCalendarCell.isEdge {
  background: var(--colorPrimary-500);
  color: var(--colorSurface-200);
  font-weight: 700;
}
.rangeCalendar .rangeCalendarCell:focus-visible {
  outline: 2px solid var(--colorAccent);
  outline-offset: -2px;
  position: relative;
  z-index: 1;
}
.rangeCalendar .rangeCalendarCell:disabled {
  cursor: default;
}
.rangeCalendar .rangeCalendarOff {
  display: none;
}
.rangeCalendar.isOff .rangeCalendarGrid {
  opacity: 0.35;
  filter: grayscale(1);
}
.rangeCalendar.isOff .rangeCalendarOff {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}
.rangeCalendar.isOff .rangeCalendarLegend {
  visibility: hidden;
}
.rangeCalendar .rangeCalendarNotice {
  margin-top: 0.6rem;
  font-size: 0.8rem;
}
.rangeCalendar .rangeCalendarNotice.isError {
  color: var(--colorError);
}
.rangeCalendar .rangeCalendarLegend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--colorSurface-600);
}
.rangeCalendar .rangeCalendarLegend span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 0.5rem;
  border: 1px solid var(--colorSurface-300);
}
.rangeCalendar .rangeCalendarLegend span:first-child {
  margin-left: 0;
}
.rangeCalendar .rangeCalendarLegend span.isFree {
  background: var(--colorSurface-200);
}
.rangeCalendar .rangeCalendarLegend span.isBlocked {
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--colorError) 16%, var(--colorSurface-200)) 0 4px, var(--colorSurface-200) 4px 8px);
}
.rangeCalendar .rangeCalendarLegend span.isRange {
  background: color-mix(in srgb, var(--colorAccent) 35%, var(--colorSurface-200));
}

dialog.bookingCalendar {
  --bcHeld: var(--colorWarning, #d9a23a);
  --bcConfirmed: var(--colorAccent);
  --bcCompleted: var(--colorSurface-500);
  width: min(1240px, 96vw);
  height: min(860px, 92vh);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid var(--colorSurface-300);
  border-radius: var(--radius);
  background: var(--colorSurface-200);
  color: var(--colorSurface-0);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}
dialog.bookingCalendar[open] {
  display: flex;
  flex-direction: column;
}
dialog.bookingCalendar::backdrop {
  background: rgba(0, 0, 0, 0.45);
}
dialog.bookingCalendar .bookingCalendarHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--colorSurface-300);
}
dialog.bookingCalendar .bookingCalendarHeader h3 {
  margin: 0.1rem 0 0;
  font-size: 1.15rem;
}
dialog.bookingCalendar .bookingCalendarEyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--colorSurface-600);
}
dialog.bookingCalendar .bookingCalendarClose {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--colorSurface-600);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
dialog.bookingCalendar .bookingCalendarClose:hover {
  background: var(--colorSurface-100);
  color: var(--colorSurface-0);
}
dialog.bookingCalendar .bookingCalendarBody {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
}
@media (max-width: 860px) {
  dialog.bookingCalendar .bookingCalendarBody {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 40%;
  }
}
dialog.bookingCalendar .bookingCalendarMain {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.9rem 1.25rem 1.25rem;
  overflow: auto;
}
dialog.bookingCalendar .bookingCalendarToolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
dialog.bookingCalendar .bookingCalendarToolbar .btn[data-move] {
  width: 34px;
  padding: 0;
  font-size: 1.1rem;
}
dialog.bookingCalendar .bookingCalendarToolbar .btn[data-move]:disabled {
  opacity: 0.35;
  cursor: default;
}
dialog.bookingCalendar .bookingCalendarMonth {
  margin-left: 0.5rem;
  font-size: 1.05rem;
}
dialog.bookingCalendar .bookingCalendarLegend {
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--colorSurface-600);
}
dialog.bookingCalendar .bookingCalendarLegend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.35rem;
  border-radius: 3px;
  vertical-align: -1px;
}
dialog.bookingCalendar .bookingCalendarLegend [data-state=held]::before {
  background: var(--bcHeld);
}
dialog.bookingCalendar .bookingCalendarLegend [data-state=confirmed]::before {
  background: var(--bcConfirmed);
}
dialog.bookingCalendar .bookingCalendarLegend [data-state=completed]::before {
  background: var(--bcCompleted);
}
dialog.bookingCalendar .bookingCalendarWeekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 0.35rem;
}
dialog.bookingCalendar .bookingCalendarWeekdays span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--colorSurface-600);
  text-align: center;
}
dialog.bookingCalendar .bookingCalendarGrid {
  border-top: 1px solid var(--colorSurface-300);
  border-left: 1px solid var(--colorSurface-300);
  transition: opacity 0.15s;
}
dialog.bookingCalendar .bookingCalendarGrid.isLoading {
  opacity: 0.5;
}
dialog.bookingCalendar .bookingCalendarWeek {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  row-gap: 3px;
  min-height: 92px;
}
dialog.bookingCalendar .bookingCalendarDay {
  grid-row: 1/-1;
  border-right: 1px solid var(--colorSurface-300);
  border-bottom: 1px solid var(--colorSurface-300);
  background: var(--colorSurface-200);
}
dialog.bookingCalendar .bookingCalendarDay span {
  display: inline-block;
  margin: 5px 7px;
  font-size: 0.8rem;
  font-weight: 600;
}
dialog.bookingCalendar .bookingCalendarDay.isWeekend {
  background: color-mix(in srgb, var(--colorSurface-100) 55%, var(--colorSurface-200));
}
dialog.bookingCalendar .bookingCalendarDay.isPast {
  background: repeating-linear-gradient(135deg, var(--colorSurface-100) 0 6px, var(--colorSurface-200) 6px 12px);
}
dialog.bookingCalendar .bookingCalendarDay.isPast span {
  color: var(--colorSurface-500);
  font-weight: 400;
}
dialog.bookingCalendar .bookingCalendarDay.isOtherMonth span {
  color: var(--colorSurface-500);
  font-weight: 400;
}
dialog.bookingCalendar .bookingCalendarDay.isToday span {
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--colorPrimary-500);
  color: var(--colorSurface-200);
}
dialog.bookingCalendar .bookingCalendarBar {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin: 0 4px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: color-mix(in srgb, var(--bcConfirmed) 22%, var(--colorSurface-200));
  border-left: 3px solid var(--bcConfirmed);
  color: var(--colorSurface-0);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 24px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
dialog.bookingCalendar .bookingCalendarBar[data-state=held] {
  background: color-mix(in srgb, var(--bcHeld) 24%, var(--colorSurface-200));
  border-left-color: var(--bcHeld);
}
dialog.bookingCalendar .bookingCalendarBar[data-state=completed] {
  background: color-mix(in srgb, var(--bcCompleted) 22%, var(--colorSurface-200));
  border-left-color: var(--bcCompleted);
  color: var(--colorSurface-600);
}
dialog.bookingCalendar .bookingCalendarBar.continuesBefore {
  margin-left: 0;
  border-left-width: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
dialog.bookingCalendar .bookingCalendarBar.continuesAfter {
  margin-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
dialog.bookingCalendar .bookingCalendarBar:hover {
  filter: brightness(0.96);
  text-decoration: underline;
}
dialog.bookingCalendar .bookingCalendarBar:focus-visible {
  outline: 2px solid var(--colorAccent);
  outline-offset: 1px;
}
dialog.bookingCalendar .bookingCalendarBar.isHighlighted {
  box-shadow: 0 0 0 2px var(--colorPrimary-500);
  animation: bookingCalendarPulse 1.2s ease 2;
}
dialog.bookingCalendar .bookingCalendarSide {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.9rem 1rem 1rem;
  border-left: 1px solid var(--colorSurface-300);
  background: var(--colorSurface-100);
}
@media (max-width: 860px) {
  dialog.bookingCalendar .bookingCalendarSide {
    border-left: 0;
    border-top: 1px solid var(--colorSurface-300);
  }
}
dialog.bookingCalendar .bookingCalendarSideHeader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
dialog.bookingCalendar .bookingCalendarSideHeader h4 {
  margin: 0;
  font-size: 0.95rem;
}
dialog.bookingCalendar .bookingCalendarCount {
  font-size: 0.75rem;
  color: var(--colorSurface-600);
}
dialog.bookingCalendar .bookingCalendarSearch {
  width: 100%;
  margin-bottom: 0.6rem;
}
dialog.bookingCalendar .bookingCalendarList {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}
dialog.bookingCalendar .bookingCalendarList h5 {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0.6rem 0 0.3rem;
  padding: 0.2rem 0;
  background: var(--colorSurface-100);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--colorSurface-600);
}
dialog.bookingCalendar .bookingCalendarItem {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  width: 100%;
  margin-bottom: 0.35rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--colorSurface-300);
  border-left: 3px solid var(--bcConfirmed);
  border-radius: calc(var(--radius) * 0.7);
  background: var(--colorSurface-200);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
dialog.bookingCalendar .bookingCalendarItem[data-state=held] {
  border-left-color: var(--bcHeld);
}
dialog.bookingCalendar .bookingCalendarItem strong {
  font-size: 0.8rem;
}
dialog.bookingCalendar .bookingCalendarItem span {
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
dialog.bookingCalendar .bookingCalendarItem small {
  font-size: 0.72rem;
  color: var(--colorSurface-600);
}
dialog.bookingCalendar .bookingCalendarItem:hover {
  border-color: var(--colorSurface-500);
}
dialog.bookingCalendar .bookingCalendarItem.isActive {
  border-color: var(--colorPrimary-500);
  box-shadow: inset 0 0 0 1px var(--colorPrimary-500);
}
dialog.bookingCalendar .bookingCalendarEmpty {
  margin: 1rem 0;
  font-size: 0.8rem;
  color: var(--colorSurface-600);
}

@keyframes bookingCalendarPulse {
  50% {
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--colorPrimary-500) 30%, transparent);
  }
}
#mainTop .closetActions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#wardrobeBookings,
#productBookings,
#copyBookings {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
#wardrobeBookings svg,
#productBookings svg,
#copyBookings svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.segmentHeader:has(#productBookings) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
}
.segmentHeader:has(#productBookings) > h2, .segmentHeader:has(#productBookings) > .description {
  grid-column: 1;
}
.segmentHeader:has(#productBookings) #productBookings {
  grid-column: 2;
  grid-row: 1/span 2;
  align-self: start;
}

/*# sourceMappingURL=style.css.map */
