:root {
  --ink: #151e2d;
  --night: #101b31;
  --blue: #1976d2;
  --blue-dark: #0f5fb2;
  --blue-soft: #eaf3fb;
  --red: #d92f41;
  --paper: #f4f6f8;
  --muted: #687386;
  --line: #dfe4e9;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --display: var(--font);
  font-family: var(--font);
  color: var(--ink);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); color: var(--ink); font: 500 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2d8ce9; outline-offset: 2px; }
.overline { margin: 0; color: #758195; font-size: 9px; font-weight: 800; letter-spacing: .14em; }

.auth-page { min-height: 100vh; padding: 34px 20px 26px; display: grid; justify-items: center; align-content: center; gap: 26px; background: linear-gradient(115deg, #f5f7f9, #edf3f8); }
.auth-brand { width: min(100%, 432px); display: flex; align-items: center; gap: 11px; }
.auth-brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.auth-brand span, .sidebar-brand span { display: grid; gap: 2px; }
.auth-brand strong, .sidebar-brand strong { font: 800 14px var(--display); letter-spacing: .05em; }
.auth-brand small, .sidebar-brand small { color: #718094; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.auth-card { width: min(100%, 432px); padding: 37px 39px 32px; border: 1px solid #e0e5ea; background: #fff; box-shadow: 0 16px 42px #1c315010; }
.auth-card .overline { color: var(--blue-dark); }
.auth-card h1 { margin: 9px 0 6px; color: var(--ink); font: 800 33px/1.15 var(--display); letter-spacing: -.055em; }
.auth-intro { margin: 0 0 24px; color: #667286; font-size: 12px; line-height: 1.7; }
.auth-card form { display: grid; }
.auth-card label, .field-label { margin: 0 0 6px; color: #3b485d; font-size: 10px; font-weight: 800; }
.auth-card input, .admin-main input:not([type=checkbox]), .admin-main textarea, .product-editor input:not([type=checkbox]), .product-editor textarea, .product-editor select { width: 100%; min-height: 42px; margin: 0 0 15px; padding: 10px 12px; border: 1px solid #d8dfe6; border-radius: 0; outline: 0; color: var(--ink); background: #fff; font-size: 12px; }
.auth-card input:focus, .admin-main input:focus, .admin-main textarea:focus, .product-editor input:focus, .product-editor textarea:focus, .product-editor select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #1976d21a; }
.auth-card input::placeholder, .admin-main input::placeholder, .product-editor input::placeholder, .product-editor textarea::placeholder { color: #9aa4b2; }
.primary-button, .secondary-button { min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; border: 1px solid transparent; cursor: pointer; font-size: 11px; font-weight: 800; transition: background .15s ease, border-color .15s ease; }
.primary-button { color: #fff; background: var(--blue); }
.primary-button:hover { background: var(--blue-dark); }
.primary-button:disabled { cursor: wait; opacity: .65; }
.primary-button span { color: #dceeff; font-size: 15px; }
.full-button { width: 100%; margin-top: 4px; }
.text-button { padding: 0; border: 0; color: var(--blue-dark); background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; }
.text-button:hover { color: var(--red); }
.forgot-button { margin-top: 12px; color: #687386; font-weight: 700; }
.auth-note { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: #778396; font-size: 9px; line-height: 1.7; }
.status-message { min-height: 17px; margin: 12px 0 0; color: #647287; font-size: 10px; line-height: 1.6; }
.status-message.error { color: #bb2d3c; }
.status-message.success { color: #147354; }
.back-link { color: #59667a; font-size: 10px; font-weight: 700; }
.back-link:hover { color: var(--blue); }

.admin-app { min-height: 100vh; display: grid; grid-template-columns: 225px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 23px 15px 17px; display: flex; flex-direction: column; color: #eaf1fa; background: var(--night); }
.sidebar-brand { padding: 0 8px 24px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #ffffff20; }
.sidebar-brand img { width: 39px; height: 39px; border-radius: 50%; object-fit: cover; background: #07101d; }
.sidebar-brand strong { color: #fff; font-size: 12px; }
.sidebar-brand small { color: #9aabc0; font-size: 7px; }
.sidebar-label { margin: 24px 10px 8px; color: #8394aa; font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.side-link { width: 100%; min-height: 42px; margin: 2px 0; padding: 0 10px; display: flex; align-items: center; gap: 10px; border: 0; color: #c6d1df; background: transparent; cursor: pointer; text-align: left; font-size: 11px; font-weight: 700; }
.side-link:hover, .side-link.active { color: #fff; background: #ffffff14; }
.side-link.active { box-shadow: inset 3px 0 #3b9cf2; }
.side-glyph { width: 18px; color: #8fb5d8; font-size: 15px; text-align: center; }
.sidebar-bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid #ffffff20; }
.side-back { display: flex; align-items: center; }
.signout-link { color: #c7d1dd; }
.signout-link:hover { color: #fff; }
.admin-main { min-width: 0; padding: 0 clamp(22px, 4vw, 58px) 55px; }
.admin-topbar { min-height: 90px; margin: 0 -3px 28px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #dce2e8; }
.breadcrumb { color: #8190a2; font-size: 9px; font-weight: 700; }
.breadcrumb b { color: #3c4a60; }
.admin-topbar h1 { margin: 3px 0 0; font: 800 22px var(--display); letter-spacing: -.045em; }
.user-chip { display: flex; align-items: center; gap: 9px; }
.user-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font: 800 10px var(--display); }
.user-chip > span:last-child { display: grid; }
.user-chip strong { font-size: 10px; }
.user-chip small { color: #748196; font-size: 8px; }
.admin-screen { max-width: 1280px; margin: 0 auto; }
.welcome-row { margin-bottom: 22px; display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.welcome-row h2 { margin: 6px 0 4px; color: var(--ink); font: 800 clamp(23px, 2.7vw, 31px)/1.16 var(--display); letter-spacing: -.045em; }
.welcome-row p:not(.overline) { margin: 0; color: #6e7b8e; font-size: 11px; }
.summary-cards { margin-bottom: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.summary-cards article { min-height: 113px; padding: 16px 18px; display: grid; align-content: start; border: 1px solid #e0e5ea; background: #fff; }
.summary-cards article > span { color: #7b8798; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.summary-cards article strong { margin-top: 5px; color: var(--ink); font: 800 27px var(--display); letter-spacing: -.04em; }
.summary-cards article small { color: #798598; font-size: 9px; }
.workspace-card { padding: 21px; border: 1px solid #e0e5ea; background: #fff; }
.workspace-heading { margin-bottom: 14px; display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.workspace-heading h2 { margin: 0; font: 800 17px var(--display); letter-spacing: -.03em; }
.workspace-heading p { margin: 3px 0 0; color: #798598; font-size: 10px; }
.admin-search { width: min(100%, 235px); height: 35px; padding: 0 9px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); color: #7a8798; }
.admin-search span { font-size: 18px; line-height: 1; }
.admin-search input { min-height: 31px !important; margin: 0 !important; padding: 4px 0 !important; border: 0 !important; box-shadow: none !important; font-size: 10px !important; }
.product-list { display: grid; }
.loading-state, .empty-state { min-height: 130px; display: grid; place-items: center; color: #778396; font-size: 11px; }
.admin-product { min-height: 86px; padding: 11px 0; display: grid; grid-template-columns: 66px minmax(160px, 1fr) minmax(100px, .7fr) minmax(110px, .7fr) auto; align-items: center; gap: 13px; border-top: 1px solid #e9edf1; }
.admin-product > img { width: 64px; height: 64px; padding: 3px; object-fit: contain; background: #f1f4f6; }
.admin-product-copy { min-width: 0; display: grid; gap: 3px; }
.admin-product-copy strong { overflow: hidden; color: var(--ink); font: 800 12px var(--display); text-overflow: ellipsis; white-space: nowrap; }
.admin-product-copy small { overflow: hidden; color: #798598; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.product-category-pill { width: fit-content; padding: 3px 7px; color: #486582; background: #eef4f8; font-size: 8px; font-weight: 800; }
.product-price-status { display: grid; gap: 4px; color: #33435b; font-size: 10px; font-weight: 800; }
.product-price-status small { color: #788598; font-size: 8px; font-weight: 600; }
.product-price-status .product-plan-status { color: #496789; }
.visibility-label { width: fit-content; padding: 4px 8px; color: #1e7359; background: #eaf5f0; font-size: 8px; font-weight: 800; }
.visibility-label.hidden-product { color: #8a5660; background: #faeff0; }
.edit-product-button { min-height: 33px; padding: 0 11px; border: 1px solid var(--line); color: #344259; background: #fff; cursor: pointer; font-size: 9px; font-weight: 800; }
.edit-product-button:hover { border-color: var(--blue); color: var(--blue-dark); }
.product-actions { display: flex; align-items: center; gap: 6px; }
.delete-product-button, .danger-button { min-height: 33px; padding: 0 10px; border: 1px solid #e6c6cb; color: #9c3544; background: #fff; cursor: pointer; font-size: 9px; font-weight: 800; }
.delete-product-button:hover, .danger-button:hover { border-color: #b64a59; background: #fff6f7; }
.delete-product-button:disabled, .danger-button:disabled { opacity: .6; cursor: wait; }
.settings-screen { max-width: 920px; }
.settings-card { padding: 28px; }
.form-section-heading { margin: 0 0 19px; display: flex; align-items: flex-start; gap: 12px; }
.section-number { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; color: var(--blue-dark); background: var(--blue-soft); font: 800 10px var(--display); }
.form-section-heading h2 { margin: 0; color: var(--ink); font: 800 16px var(--display); }
.form-section-heading p { margin: 3px 0 0; color: #7a8698; font-size: 10px; }
.settings-card .field-label { display: block; }
.settings-card input:not([type=checkbox]), .settings-card textarea { max-width: 570px; }
.settings-card textarea, .product-editor textarea { resize: vertical; min-height: unset; }
.field-help { margin: -9px 0 19px; color: #8792a2; font-size: 9px; }
.payment-settings-heading { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.toggle-row { min-height: 55px; margin: 6px 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.toggle-row > span { display: grid; gap: 3px; }
.toggle-row strong { color: #334056; font-size: 10px; }
.toggle-row small { color: #7a8798; font-size: 9px; }
.toggle-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle-row i { position: relative; width: 37px; height: 21px; flex: 0 0 auto; border-radius: 20px; background: #ccd4de; cursor: pointer; transition: background .15s ease; }
.toggle-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0002; transition: transform .15s ease; }
.toggle-row input:checked + i { background: var(--blue); }
.toggle-row input:checked + i::after { transform: translateX(16px); }
.toggle-row input:focus-visible + i { outline: 3px solid #2d8ce9; outline-offset: 3px; }
.form-footer { margin-top: 20px; display: flex; justify-content: flex-end; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 15px; }
.form-footer .status-message { margin: 0 auto 0 0; }

.product-editor { width: min(760px, calc(100% - 28px)); max-width: 760px; max-height: min(92vh, 920px); padding: 0; overflow: auto; border: 1px solid #dce2e8; color: var(--ink); background: #fff; box-shadow: 0 28px 90px #07101e55; }
.product-editor::backdrop { background: #0b1426b8; }
.product-editor form { padding: 25px 28px 21px; }
.editor-heading { margin-bottom: 20px; padding-bottom: 15px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.editor-heading h2 { margin: 5px 0 0; font: 800 22px var(--display); letter-spacing: -.04em; }
.close-editor { width: 35px; height: 35px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 23px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.product-editor .field-label { display: block; }
.product-editor input:not([type=checkbox]), .product-editor textarea { margin-bottom: 13px; }
.product-editor textarea { padding-top: 9px; }
.product-editor small { display: block; margin: -8px 0 13px; color: #818da0; font-size: 8px; }
.image-price-grid { padding-top: 4px; }
.image-price-grid input[type=file] { padding: 8px; font-size: 9px; }
.image-price-grid small { margin-top: -9px; line-height: 1.5; }
.image-preview { position: relative; width: 100%; max-width: 190px; height: 115px; margin: 0 0 14px; display: grid; place-items: center; overflow: hidden; border: 1px solid #e1e6ea; color: #8a95a4; background: #f2f5f7; font-size: 9px; }
.image-preview img { width: 100%; height: 100%; display: none; padding: 4px; object-fit: contain; }
.image-preview img.visible { display: block; }
.image-preview img.visible + span { display: none; }
.product-spec-settings { margin: 20px 0 17px; padding: 18px; border: 1px solid #dce4eb; background: #fbfcfd; }
.product-variant-settings { margin: 18px 0 17px; padding: 18px; border: 1px solid #dce4eb; background: #fbfcfd; }
.product-variant-settings > .toggle-row { margin: 0 0 12px; }
.product-variants-editor { display: grid; gap: 10px; }
.product-variant-card { min-width: 0; padding: 13px; border: 1px solid #d8e1e8; background: #fff; }
.product-variant-card .variant-card-heading { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-variant-card .variant-card-heading strong { color: var(--ink); font: 800 11px var(--display); }
.product-variant-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }
.product-variant-card .variant-image-field { grid-column: 1 / -1; }
.product-variant-card .variant-plan-toggle { margin: 7px 0 10px; padding: 9px 10px; border: 1px solid #e1e8ee; background: #f7fafc; }
.product-variant-plan-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }
.product-variant-card .variant-calculation-preview { margin: 2px 0 0; padding: 8px 9px; border-left: 3px solid var(--blue); color: #344259; background: #eef5fa; font-size: 8px; line-height: 1.55; white-space: pre-line; }
.product-variant-card .variant-calculation-preview.error { border-left-color: #b64a59; color: #9c3544; background: #fff6f7; }
.product-variant-card .remove-variant-button { min-height: 29px; padding: 0 8px; border: 1px solid #e6c6cb; color: #9c3544; background: #fff; cursor: pointer; font-size: 8px; font-weight: 800; }
.add-variant-button { margin-top: 10px; }
.product-spec-heading { margin-bottom: 13px; }
.product-spec-heading .overline { color: var(--blue-dark); font-size: 8px; }
.product-spec-heading h3 { margin: 4px 0 3px; color: var(--ink); font: 800 15px var(--display); }
.product-spec-heading p:last-child { margin: 0; color: #758195; font-size: 9px; line-height: 1.55; }
.product-spec-fields { gap: 0 12px; }
.unit-input { min-width: 0; margin: 0 0 15px; display: flex; align-items: stretch; border: 1px solid #d8dfe6; background: #fff; }
.product-editor .unit-input input { min-width: 0; min-height: 40px; margin: 0 !important; border: 0 !important; box-shadow: none !important; }
.unit-input > span, .unit-input > select { min-width: 52px; padding: 0 10px; display: grid; place-items: center; border: 0; border-left: 1px solid #d8dfe6; color: var(--blue-dark); background: #f3f8fc; font-size: 12px; font-weight: 900; }
.unit-input > select { cursor: pointer; }
.unit-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #1976d21a; }
.product-spec-settings textarea { margin-bottom: 14px; }
.product-plan-settings { margin-top: 3px; padding: 17px 18px 13px; border: 1px solid #dce4eb; background: #f7fafc; }
.product-plan-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.product-plan-heading .overline { color: var(--blue-dark); font-size: 8px; }
.product-plan-heading h3 { margin: 4px 0 3px; color: var(--ink); font: 800 15px var(--display); }
.product-plan-heading p:last-child { margin: 0; color: #758195; font-size: 9px; }
.product-plan-toggle { min-width: 190px; margin: 0; }
.product-plan-fields { margin-top: 18px; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.product-plan-frequencies { margin: 2px 0 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.frequency-option-card { min-width: 0; padding: 13px 12px 4px; border: 1px solid #dce4eb; background: #fff; }
.frequency-option-card .toggle-row { min-height: 43px; margin-bottom: 12px; padding: 0; }
.frequency-option-card .toggle-row strong { color: var(--ink); font-size: 10px; }
.frequency-option-card .toggle-row small { font-size: 8px; }
.frequency-option-card input[type=number] { margin-bottom: 10px !important; }
.weekly-term-options { margin: 0 0 11px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; color: #647287; font-size: 9px; }
.weekly-term-options > span { width: 100%; color: #3b485d; font-size: 9px; font-weight: 800; }
.weekly-term-options label { display: inline-flex; align-items: center; gap: 5px; margin: 0; color: #526178; font-size: 9px; font-weight: 700; }
.weekly-term-options input[type=checkbox] { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); }
.product-variant-plan-fields .weekly-term-options { grid-column: 1 / -1; margin-top: -3px; }
.saved-plan-summary, .saved-settings-summary { margin: 10px 0; padding: 10px 11px; border-left: 3px solid var(--blue); color: #43526a; background: #eef5fa; font-size: 9px; line-height: 1.6; }
.payment-preview { margin: 0 0 10px; padding: 11px 12px; border: 1px solid #dce4eb; color: #344259; background: #fff; font-size: 9px; line-height: 1.65; white-space: pre-line; }
.payment-preview.error { border-color: #e6c6cb; color: #9c3544; background: #fff6f7; }
.product-plan-settings .field-help { margin: -3px 0 0; line-height: 1.6; }
.sort-visible-grid { align-items: end; }
.sort-visible-grid > div input { margin-bottom: 0 !important; }
.product-toggle { margin-bottom: 0; padding: 0 2px; }
.editor-footer { margin-top: 17px; padding-top: 15px; display: flex; justify-content: flex-end; align-items: center; gap: 9px; border-top: 1px solid var(--line); }
.editor-footer .status-message { margin: 0 auto 0 0; }
.editor-footer .danger-button { margin-right: auto; }
.secondary-button { border-color: var(--line); color: #3d4b61; background: #fff; }
.secondary-button:hover { border-color: #aab9c9; background: #f7f9fa; }
.admin-toast { position: fixed; z-index: 20; right: 20px; bottom: 20px; max-width: min(420px, calc(100vw - 40px)); padding: 12px 16px; color: #fff; background: var(--night); box-shadow: 0 12px 28px #111b2b28; font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.admin-toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .admin-app { grid-template-columns: 66px minmax(0, 1fr); }
  .admin-sidebar { padding: 15px 8px; }
  .sidebar-brand { justify-content: center; padding: 0 0 20px; }
  .sidebar-brand img { width: 41px; height: 41px; }
  .sidebar-brand span, .sidebar-label, .side-link:not(.side-back):not(.signout-link) { }
  .sidebar-brand span, .sidebar-label { display: none; }
  .side-link { justify-content: center; padding: 0; font-size: 0; }
  .side-glyph { font-size: 16px; }
  .admin-main { padding: 0 23px 40px; }
  .admin-product { grid-template-columns: 58px minmax(145px, 1fr) minmax(85px, .75fr) auto; gap: 10px; }
  .admin-product > img { width: 55px; height: 55px; }
  .product-row-visibility { display: none; }
}
@media (max-width: 650px) {
  .auth-page { padding: 24px 15px; }
  .auth-card { padding: 29px 23px 25px; }
  .admin-app { display: block; padding-bottom: 67px; }
  .admin-sidebar { position: fixed; z-index: 30; top: auto; right: 0; bottom: 0; left: 0; width: 100%; height: 63px; padding: 4px 10px; flex-direction: row; justify-content: space-around; border-top: 1px solid #ffffff1c; }
  .sidebar-brand, .sidebar-label, .sidebar-bottom .side-back { display: none; }
  .sidebar-bottom { margin: 0; padding: 0; display: contents; border: 0; }
  .side-link { width: 74px; min-height: 52px; margin: 0; display: grid; align-content: center; justify-items: center; gap: 2px; font-size: 10px; font-weight: 700; }
  .side-link.active { box-shadow: inset 0 3px #3b9cf2; }
  .side-link .side-glyph { font-size: 17px; line-height: 1.1; }
  .admin-main { padding: 0 14px 25px; }
  .admin-topbar { min-height: 77px; margin-bottom: 20px; }
  .admin-topbar h1 { font-size: 19px; }
  .user-avatar { width: 30px; height: 30px; font-size: 9px; }
  .user-chip strong { font-size: 11px; }
  .user-chip small { max-width: 130px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; }
  .welcome-row { align-items: flex-start; flex-direction: column; gap: 13px; }
  .welcome-row h2 { font-size: 23px; }
  .summary-cards { gap: 7px; }
  .summary-cards article { min-height: 100px; padding: 10px 9px; }
  .summary-cards article > span { font-size: 8px; line-height: 1.3; letter-spacing: .04em; }
  .summary-cards article strong { font-size: 23px; }
  .summary-cards article small { font-size: 9px; line-height: 1.4; }
  .workspace-card { padding: 14px 12px; }
  .workspace-heading { align-items: flex-start; flex-direction: column; }
  .admin-search { width: 100%; }
  .admin-product { position: relative; min-height: 87px; padding-right: 0; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 9px; }
  .admin-product > img { width: 49px; height: 52px; }
  .admin-product-copy strong { max-width: 180px; font-size: 12px; }
  .admin-product-copy small { max-width: 180px; font-size: 10px; }
  .product-price-status { grid-column: 2; grid-row: 2; display: block; font-size: 10px; }
  .product-price-status small { margin-left: 4px; font-size: 9px; }
  .product-actions { grid-column: 3; grid-row: 1 / 3; flex-direction: column; align-items: stretch; gap: 5px; }
  .edit-product-button, .delete-product-button { min-height: 32px; padding: 0 8px; font-size: 10px; }
  .settings-card { padding: 19px 14px; }
  .product-editor { max-height: calc(100dvh - 16px); }
  .product-editor form { padding: 20px 15px 15px; }
  .form-grid { grid-template-columns: 1fr; }
  .product-plan-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .product-plan-toggle { width: 100%; }
  .product-plan-fields, .product-plan-frequencies, .product-variant-fields, .product-variant-plan-fields { grid-template-columns: 1fr; gap: 0; }
  .frequency-option-card + .frequency-option-card { margin-top: 8px; }
  .product-spec-settings { padding: 14px 12px; }
  .product-spec-fields { grid-template-columns: 1fr; gap: 0; }
  .image-price-grid { gap: 0; }
  .sort-visible-grid { gap: 15px; }
  .editor-footer { flex-wrap: wrap; }
  .editor-footer .status-message { flex-basis: 100%; }
  .editor-footer .primary-button, .editor-footer .secondary-button { flex: 1; }
  .editor-footer .danger-button { flex: 1 1 100%; margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
