:root {
  color-scheme: light;
  --paper: #fcfaf7;
  --ink: #352a2f;
  --brand: #a03864;
  --brand-dark: #602740;
  --brand-soft: #f8e9ef;
  --brand-line: #bc8da1;
  --muted: #6e5d65;
  --line: #e6d7dd;
  --white: #fff;
  font-family: "Instrument Sans", "Thonburi", "Noto Sans Thai", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, figure { margin: 0; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.frame { width: min(1256px, calc(100% - 96px)); margin-inline: auto; }
.site-header { background: var(--paper); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: var(--brand-dark); font-size: 34px; font-weight: 850; letter-spacing: -.085em; line-height: 1; }
.wordmark [data-shop-dot] { color: var(--brand); }
.wordmark-custom { letter-spacing: normal; line-height: 1.2; }
.wordmark-text { min-width: 0; overflow-wrap: anywhere; }
.wordmark-logo { flex: none; width: clamp(32px, 7vw, 44px); height: auto; aspect-ratio: 1; object-fit: contain; }
.header-inner nav { flex-shrink: 0; }
nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 650; }
nav > a:hover, .text-button:hover { text-decoration: underline; text-underline-offset: .24em; }
.primary, .outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  color: var(--white);
  background: var(--brand);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.primary:hover { background: var(--brand-dark); }
.outline { background: var(--white); color: var(--brand-dark); border-color: var(--brand-line); }
.outline:hover { background: var(--brand-soft); }
.lookbook {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.55fr);
  min-height: 360px;
  padding: 12px;
  border-radius: 36px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.look-copy { padding: clamp(24px, 4vw, 52px); align-self: center; }
.lookbook h1 { font-size: clamp(2rem, 4vw, 3.9rem); font-weight: 770; letter-spacing: -.045em; line-height: 1.18; }
.lookbook h1 span { display: block; }
.look-description { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 13px 0 21px; max-width: 30ch; }
.look-image {
  width: 100%;
  height: 100%;
  min-height: 336px;
  object-fit: cover;
  object-position: 52% center;
  border-radius: 26px 26px 26px 64px;
}
.catalog { margin: 45px 0 70px; scroll-margin-top: 20px; }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.catalog h2 { color: var(--brand-dark); font-size: clamp(25px, 3.15vw, 39px); letter-spacing: -.04em; line-height: 1.15; }
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: min(100%, 405px);
  min-height: 48px;
  padding: 0 17px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.search:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.search input { width: 100%; min-width: 0; padding: 10px 0; border: 0; color: var(--ink); background: transparent; outline: 0; }
.search input::placeholder { color: var(--muted); }
.search-icon { width: 13px; height: 13px; border: 1.7px solid var(--brand); border-radius: 100%; position: relative; flex: none; }
.search-icon::after { content: ""; width: 7px; height: 1.7px; background: var(--brand); position: absolute; right: -5px; bottom: -2px; transform: rotate(45deg); }
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 22px; background: #f3f0ed; }
.categories, .select-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: 6px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}
.chip:hover { border-color: var(--brand-line); }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--white); }
select { min-height: 39px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 14px; }
.results-bar { display: flex; min-height: 45px; align-items: center; gap: 14px; justify-content: space-between; font-size: 13px; color: var(--muted); }
.text-button { padding: 5px 0; border: 0; background: transparent; color: var(--brand); font-weight: 700; font-size: 14px; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 15px; }
.product-card { min-width: 0; }
.product-card > [data-product] {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid #e9e2df;
  border-radius: 22px;
  padding: 0 0 12px;
  background: var(--white);
  text-align: left;
  color: inherit;
}
.product-card > [data-product]:hover .product-title { text-decoration: underline; text-underline-offset: .23em; }
.product-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #e1ded7; }
.product-title { display: block; font-size: 16px; font-weight: 750; padding: 10px 13px 0; line-height: 1.45; overflow-wrap: anywhere; }
.product-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; margin-top: auto; padding: 3px 13px 0; color: var(--muted); font-size: 13px; }
.empty { padding: 52px 12px; text-align: center; border: 1px dashed var(--line); border-radius: 22px; }
.empty p { margin-bottom: 12px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; min-height: 68px; gap: 8px 24px; font-size: 14px; font-weight: 650; }
.footer-inner p span, .muted { color: var(--muted); font-weight: 400; }

.dialog {
  max-height: calc(100dvh - 28px);
  width: min(820px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  overscroll-behavior: contain;
}
.dialog::backdrop { background: #33222b96; }
.close-form { margin: 0; }
.close { display: grid; place-items: center; position: absolute; z-index: 1; top: 11px; right: 11px; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--brand); font: 25px/1 system-ui, sans-serif; }
.product-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.product-detail-header h2 { color: var(--brand-dark); font-size: clamp(21px, 4vw, 30px); line-height: 1.2; overflow-wrap: anywhere; }
.product-detail-header form { flex: none; }
.product-detail-header .outline { min-width: 56px; justify-content: center; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); }
.detail-media { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 18px; background: var(--brand-soft); }
.detail-stage { width: 100%; aspect-ratio: 1; max-height: 49dvh; overflow: hidden; border-radius: 16px; background: var(--paper); }
.detail-stage :is(.detail-photo, .detail-video, .drive-video-frame, #detail-drive-player) { display: block; width: 100%; height: 100%; object-fit: contain; }
#detail-drive-player:empty { display: none; }
.detail-video { background: #20191d; }
.drive-video-frame { display: block; width: 100%; aspect-ratio: 1; border: 0; border-radius: 12px; background: #20191d; }
.detail-stage .drive-video-frame { border-radius: 0; }
.drive-video-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px; color: var(--brand-dark); font-size: 14px; text-decoration: underline; text-underline-offset: .2em; }
.video-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.detail-media-actions .outline, .video-download { justify-content: center; gap: 6px; font-size: 14px; }
.thumbnails { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { overflow: hidden; padding: 0; width: 55px; height: 55px; border: 2px solid transparent; border-radius: 12px; background: var(--white); }
.thumb[aria-pressed="true"] { border-color: var(--brand); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb { position: relative; width: auto; min-width: 68px; padding: 0 9px; color: var(--brand-dark); font-size: 13px; font-weight: 700; }
.video-thumb.has-clip-cover { width: 55px; min-width: 55px; padding: 0; }
.has-clip-cover .clip-icon { position: absolute; right: 3px; bottom: 3px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; background: #2b2026d9; font-size: 10px; }
.video-thumb[aria-pressed="true"] .clip-icon { display: none; }
.detail-copy { min-width: 0; padding: 20px 24px 24px; }
.small-dialog h2, .admin-header h2 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.035em; overflow-wrap: anywhere; }
.detail-category { color: var(--brand-dark); font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.detail-copy p, .small-dialog p { line-height: 1.6; }
.facts { margin: 0 0 16px; font-size: 14px; }
.detail-description + .facts { margin-top: 12px; }
.facts div { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.variant-summary { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.detail-tags .chip { background: var(--brand-soft); color: var(--brand-dark); }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.detail-actions:first-child { margin-top: 0; }
.product-size-chart { padding: 18px clamp(16px, 4vw, 30px) 24px; border-top: 1px solid var(--line); }
.product-size-chart h3 { color: var(--brand-dark); font-size: 21px; }
.product-size-chart p { margin: 4px 0 11px; color: var(--muted); font-size: 14px; }
.size-chart-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.product-size-chart table { width: 100%; border-collapse: collapse; text-align: center; font-size: 14px; }
.product-size-chart :is(th, td) { min-width: 58px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.product-size-chart thead { color: var(--brand-dark); background: var(--brand-soft); }
.product-size-chart tbody tr:last-child > * { border-bottom: 0; }
.small-dialog { width: min(450px, calc(100vw - 28px)); padding: 26px; }
.small-dialog h2 { padding-right: 34px; margin-bottom: 12px; }
.small-dialog p + p { margin-top: 7px; }
.admin-dialog { width: min(760px, calc(100vw - 28px)); padding: clamp(16px, 4vw, 34px); }
.admin-page, .login-panel { margin-block: clamp(18px, 5vw, 46px); background: var(--white); border: 1px solid var(--line); border-radius: 24px; }
.admin-catalog { margin-block: clamp(18px, 4vw, 38px); }
.admin-catalog .admin-page { margin-inline: auto; max-width: 100%; }
.login-panel { display: grid; justify-items: start; gap: 15px; width: min(100%, 420px); margin-inline: auto; padding: clamp(20px, 5vw, 32px); }
.login-panel h1 { color: var(--brand-dark); font-size: 28px; }
.login-panel p { color: var(--muted); }
.admin-header { margin-bottom: 23px; padding-right: 45px; }
.admin-header h2 { color: var(--brand-dark); }
.admin-header p, .optional, #admin-count { color: var(--muted); font-size: 14px; line-height: 1.55; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.admin-toolbar :is(h1, h3) { font-size: clamp(21px, 3vw, 26px); }
.admin-dialog :is(.primary, .outline) { min-height: 44px; }
#add-product, .draft-actions .primary { min-height: 48px; font-size: 16px; padding-inline: 22px; }
.admin-search-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
.admin-search-row .search { flex: 1 1 230px; min-width: 0; }
.admin-search-row .text-button { min-height: 44px; }
.admin-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-bottom: 8px; }
.admin-work-field { grid-column: 2 / -1; }
.admin-filter-panel { margin-top: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; }
.admin-tools summary, .admin-filter-panel summary { min-height: 44px; padding-block: 10px; color: var(--brand-dark); font-size: 14px; font-weight: 700; line-height: 24px; cursor: pointer; }
.admin-filters label { display: grid; gap: 5px; font-size: 14px; font-weight: 650; }
.admin-filters :is(input, select) { min-width: 0; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font-size: 16px; font-weight: 400; }
.admin-status:not(:empty) { margin-top: 12px; padding: 10px 13px; background: var(--brand-soft); border-radius: 12px; color: var(--brand-dark); font-size: 14px; }
.admin-site-header { border-bottom: 1px solid var(--line); }
.admin-tools { position: relative; }
.admin-tools summary { padding-inline: 15px; }
.admin-tools:not([open]) .shop-settings-menu { display: none; }
.shop-settings-menu { position: absolute; z-index: 4; inset-block-start: calc(100% + 6px); inset-inline-end: 0; display: grid; width: max-content; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 8px 24px #352a2f1a; }
.shop-settings-menu .text-button { width: 100%; min-height: 44px; padding-inline: 12px; text-align: start; }
.edit-preview-product { min-height: 44px; }
#admin-products { margin-top: 18px; }
.admin-product-card { display: flex; flex-direction: column; border: 1px solid #e9e2df; border-radius: 22px; background: var(--white); }
.admin-product-card > [data-product] { flex: 1; height: auto; border: 0; border-radius: 21px 21px 0 0; }
.admin-card-controls { display: grid; gap: 6px; padding: 9px 13px 11px; border-top: 1px solid var(--line); }
.admin-card-status { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.admin-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.admin-card-actions button, .admin-card-tasks summary { min-height: 44px; }
.admin-card-tasks summary { padding-block: 10px; color: var(--muted); font-size: 13px; cursor: pointer; }
.admin-empty { padding: 18px 12px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; color: var(--muted); }
.draft-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; }
.admin-panel, .upload-panel { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.admin-panel h4, .upload-panel h4 { margin: 0; color: var(--brand-dark); font-size: 17px; }
.admin-panel h4 span { color: var(--muted); font-size: 13px; font-weight: 400; }
.admin-panel summary { min-height: 44px; padding-block: 10px; color: var(--brand-dark); font-size: 17px; font-weight: 700; line-height: 24px; cursor: pointer; }
.admin-panel[open] summary { margin-bottom: 5px; }
.admin-panel[open] > :not(summary) { margin-top: 10px; }
#manage-product-ai-style { margin-top: 4px; }
.measurement-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.measurement-parts .chip { border-color: var(--line); }
.measurement-parts .chip[aria-pressed="true"] { border-color: var(--brand); }
.measurement-toolbar button:disabled { opacity: .5; cursor: default; }
.draft-form label.ai-queue-choice { display: flex; align-items: center; min-height: 44px; gap: 9px; }
.ai-queue-choice input { width: 19px; height: 19px; accent-color: var(--brand); }
.ai-color-sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; color: var(--muted); }
.measurement-unit-panel { min-width: 0; margin: 0; padding: 8px 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--brand-soft); }
.measurement-unit-panel legend { padding-inline: 5px; color: var(--brand-dark); font-size: 14px; font-weight: 700; }
.measurement-unit-panel .optional { margin-top: 8px; }
.measurement-unit-label { color: var(--muted); font-weight: 400; }
.measurement-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.measurement-rows { display: grid; gap: 10px; }
.measurement-rows:empty { display: none; }
.measurement-row { min-width: 0; margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; }
.measurement-row legend { padding-inline: 5px; color: var(--brand-dark); font-weight: 700; }
.measurement-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.measurement-row .text-button { min-height: 40px; }
.settings-dialog { width: min(580px, calc(100vw - 28px)); padding: clamp(16px, 4vw, 28px); }
.settings-dialog .admin-header { margin: 0; }
.settings-dialog .primary { justify-self: start; }
.site-logo-settings { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; }
.site-logo-preview { display: grid; place-items: center; width: 88px; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 14px; background: var(--brand-soft); color: var(--muted); overflow: hidden; }
.site-logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.site-logo-controls { display: grid; min-width: 0; gap: 6px; justify-items: start; }
.site-logo-label { font-size: 14px; font-weight: 650; }
.site-logo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.site-logo-actions .text-button { min-height: 44px; }
.reference-preview { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.reference-preview img { width: 112px; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: var(--brand-soft); }
.upload-panel { grid-template-columns: minmax(0, 1fr); background: var(--brand-soft); border-color: transparent; }
.photo-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.photo-toolbar .outline { min-height: 48px; font-size: 16px; }
.upload { display: block; min-width: 0; }
.upload input { width: 100%; min-width: 0; color: var(--brand-dark); font-size: 14px; }
.upload input::file-selector-button {
  min-height: 44px;
  margin-right: 10px;
  padding: 6px 15px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: var(--white);
  color: var(--brand-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.upload-preview { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.upload-preview:empty { display: none; }
.editor-photo { display: grid; width: 104px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-align: center; }
.editor-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.editor-video { grid-template-columns: minmax(0, 1fr); width: 152px; max-width: 100%; min-width: 0; }
.editor-drive-video { width: 320px; }
.editor-video .editor-clip-summary { display: flex; align-items: center; gap: 12px; padding: 8px 12px; text-align: left; list-style: none; font-size: 14px; }
.editor-clip-summary::-webkit-details-marker { display: none; }
.editor-clip-summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); }
[data-drive-video][open] .editor-clip-summary::after { transform: rotate(225deg); }
.editor-clip-cover { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 8px; background: var(--brand-soft); }
.editor-video [data-drive-player] { padding: 0 8px; }
.editor-video .video-actions { padding: 8px; }
.editor-video > .photo-tools:not([data-drive-video]) > summary { border-top: 1px solid var(--line); padding-inline: 12px; text-align: left; }
.editor-video video { display: block; width: 100%; aspect-ratio: 1; background: #20191d; }
.video-preview-error { padding: 12px 8px; }
.video-preview-error a { display: block; color: var(--brand); text-decoration: underline; }
.editor-photo .text-button, .cover-label { min-height: 36px; padding: 7px 5px; font-size: 13px; }
.editor-photo .text-button:focus-visible { outline-offset: -3px; }
.photo-tools summary { min-height: 44px; padding: 12px 5px; color: var(--brand-dark); font-size: 13px; font-weight: 700; line-height: 20px; cursor: pointer; }
.photo-tools summary:focus-visible { outline-offset: -3px; }
.photo-tools button { width: 100%; }
.editor-photo .photo-ai-button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-dark); }
.cover-label { display: grid; place-items: center; color: var(--brand-dark); background: var(--brand-soft); font-weight: 700; }
.draft-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.draft-form label:not(.upload) { display: grid; min-width: 0; gap: 5px; font-size: 14px; font-weight: 650; }
.draft-form :is(input:not([type="file"], [type="checkbox"]), select, textarea) {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}
.span-fields { grid-column: 1 / -1; }
.category-field .text-button { min-height: 36px; }
.category-entry, .option-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; padding: 10px; border-radius: 12px; background: var(--brand-soft); }
.form-feedback:empty, #category-feedback:empty { display: none; }
.field-message { color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.5; }
.field-message:empty { display: none; }
.field-message[data-state="error"], #photo-error { color: #a12742; }
.field-message[data-state="notice"] { color: #754d19; }
.draft-form :is(input, select, button)[aria-invalid="true"] { border-color: #a12742; }
.draft-form button:disabled { opacity: .6; cursor: default; }
.option-entry .form-feedback { grid-column: 1 / -1; }
.variant-rows { display: grid; gap: 8px; }
.variant-row { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.variant-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 10px; }
.variant-row .text-button { min-height: 44px; }
.variant-row > .text-button { justify-self: start; }
.variant-row .remove-variant { color: var(--muted); }
.variant-sizes { display: flex; flex-wrap: wrap; gap: 5px; }
.variant-sizes .chip { min-height: 40px; border-color: var(--line); }
.variant-sizes .chip[aria-pressed="true"] { border-color: var(--brand); }
#add-variant { justify-self: start; }
.draft-actions { position: sticky; bottom: 0; display: flex; justify-content: end; padding: 10px 0; border-top: 1px solid var(--line); background: var(--paper); }
.admin-checks { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.admin-checks li { padding: 3px 7px; border-radius: 999px; background: #f3f0ed; color: var(--muted); font-size: 12px; }
.admin-checks .matched { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }

@media (max-width: 940px) {
  .frame { width: calc(100% - 48px); }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .frame { width: calc(100% - 32px); }
  .header-inner { min-height: 60px; gap: 8px; }
  .wordmark { font-size: clamp(22px, 7vw, 29px); }
  nav { gap: 11px; font-size: 13px; }
  nav .outline { font-size: 13px; min-height: 40px; padding-inline: 10px; }
  .lookbook { margin-top: 14px; display: flex; flex-direction: column; min-height: 0; padding: 8px; border-radius: 26px; }
  .look-image { order: -1; aspect-ratio: 2.05; height: auto; min-height: 0; border-radius: 19px 19px 28px 19px; }
  .look-copy { padding: 16px 17px 19px; align-self: stretch; }
  .lookbook h1 { font-size: clamp(26px, 7.2vw, 38px); }
  .lookbook h1 span { display: inline; }
  .look-description { max-width: none; margin: 6px 0 12px; font-size: 14px; }
  .catalog { margin: 26px 0 45px; }
  .catalog-heading { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 13px; }
  .search { width: 100%; }
  .filters { padding: 9px; border-radius: 18px; }
  .categories, .select-filters { gap: 5px; }
  .categories .chip { min-height: 40px; padding-inline: 10px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 9px; }
  .product-card > [data-product], .admin-product-card { border-radius: 17px; }
  .admin-product-card > [data-product] { border-radius: 16px 16px 0 0; }
  .product-title { font-size: 14px; padding-inline: 9px; }
  .product-meta { font-size: 12px; padding-inline: 9px; }
  .footer-inner { padding-block: 11px; }
  .detail-layout { grid-template-columns: 1fr; }
  .product-detail-header { padding: 12px; }
  .detail-media { padding: 12px; }
  .detail-stage { max-height: 42dvh; }
  .detail-copy { padding: 16px; }
  .admin-dialog { padding: 15px; }
  .admin-header { margin-bottom: 16px; }
  .admin-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-work-field { grid-column: 1 / -1; }
  .admin-panel, .upload-panel { padding: 12px; }
  .admin-card-controls { padding-inline: 9px; }
  .admin-card-actions .outline { padding-inline: 12px; }
  .draft-actions .primary { width: 100%; }
}
.admin-panel:not([open]) { padding-block: 3px; }
