:root {
  color-scheme: light;
  --paper: #f7f8f2;
  --white: #fff;
  --ink: #1f2d22;
  --muted: #59665a;
  --leaf: #26543b;
  --deep: #163c2b;
  --line: #e0e6db;
  --lime: #e0eb99;
  --radius: 18px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { opacity: .5; cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #648230; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
svg { width: 22px; height: 22px; vertical-align: middle; flex: none; }
.skip { position: fixed; z-index: 10; top: 5px; left: 5px; background: white; padding: 12px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.wrap { width: min(100% - 64px, 1200px); margin-inline: auto; }
.preheader { background: var(--deep); color: #f1f5e4; font-size: .83rem; }
.preheader .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 33px; gap: 12px; }
.preheader span, .preheader a { display: inline-flex; gap: 7px; align-items: center; }
.preheader svg { width: 15px; height: 15px; }
.top { position: sticky; top: 0; z-index: 3; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.bar { display: grid; grid-template-columns: auto minmax(190px, 1fr) auto; gap: clamp(16px, 4vw, 58px); align-items: center; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; width: max-content; max-width: 100%; color: var(--deep); }
.brand-mark { display: grid; place-items: center; padding: 11px; border-radius: 15px; background: var(--leaf); color: #eef4be; }
.brand-mark svg { width: 25px; height: 25px; }
.brand-text { min-width: 0; }
.brand strong { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.16; letter-spacing: .01em; white-space: nowrap; }
.brand small { display: block; max-width: 185px; margin-top: 4px; color: #476452; font-size: .8125rem;
  letter-spacing: .045em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search { min-width: 0; display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #f8f9f4; padding: 0 15px; min-height: 46px; }
.search input { min-width: 0; flex: 1; background: transparent; border: 0; color: var(--ink); outline: 0; padding: 10px 0; }
.search:focus-within { border-color: var(--leaf); }
.search svg { color: #637461; width: 19px; height: 19px; }
.actions { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.button, .icon-button, .text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; font-weight: 650; }
.button { border-radius: 11px; padding: 10px 18px; background: var(--leaf); color: white; }
.button:hover { background: var(--deep); }
.button.secondary, .icon-button { background: #edf1e8; color: var(--deep); }
.button.secondary:hover, .icon-button:hover { background: #e0eadb; }
.button.accent { background: var(--lime); color: #203a21; }
.button.accent:hover { background: #eef4b1; }
.button.danger { color: #933527; background: #faeeea; }
.text-button { color: var(--leaf); background: transparent; padding: 0 4px; }
.icon-button { width: 44px; border-radius: 11px; flex: none; padding: 0; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; min-height: 22px; padding: 0 4px; border-radius: 12px; background: var(--lime); color: var(--deep); font-size: .78rem; }
.hero { display: grid; align-items: center; position: relative; isolation: isolate; overflow: hidden; min-height: 350px; margin-top: 24px; border-radius: 24px; background: #214837; color: #fff; }
#original-banner { display: contents; }
.hero-photo { position: absolute; inset: 0 0 0 auto; width: 74%; height: 100%; object-fit: cover; object-position: 66% 52%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #173c2b 6%, #173c2b 29%, #173c2be5 41%, #173c2b16 82%); }
.hero.showing-upload { background: var(--deep); }
.hero.showing-upload::after { display: none; }
.uploaded-banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero:has(.uploaded-banner) { touch-action: pan-y; }
.banner-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1px 8px; margin-top: 5px; color: var(--deep); }
.banner-step, .banner-dot { border: 0; color: inherit; background: none; min-height: 36px; }
.banner-step { font-size: .85rem; padding: 3px 4px; font-weight: 650; }
.banner-dots { display: flex; align-items: center; }
.banner-dot { display: grid; place-items: center; width: 19px; padding: 0; }
.banner-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #aab8a5; }
.banner-dot[aria-current="true"]::before { width: 13px; border-radius: 7px; background: var(--leaf); }
.banner-pause { margin-inline-start: 4px; }
.store-announcement { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; padding: 11px 13px;
  border: 1px solid #e8dbad; border-radius: 12px; background: #fff6da; color: #443a20; font-size: .9375rem; line-height: 1.5; }
.announcement-label { display: inline-flex; align-items: center; gap: 6px; flex: none; font-weight: 750; color: #5b471f; }
.announcement-label svg { width: 17px; height: 17px; }
.store-announcement p { min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }
.hero-copy { padding: 34px clamp(21px, 5.1vw, 65px); max-width: 665px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: #e9efa8; font-size: .8rem; font-weight: 700; letter-spacing: .18em; }
.hero-kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.hero h1 { font-family: Georgia, "Songti SC", SimSun, serif; font-size: clamp(2.35rem, 5vw, 4.28rem); font-weight: 700; letter-spacing: -.055em; line-height: 1.13; }
.hero h1 span { display: block; color: #e6efa6; }
.hero p { margin: 15px 0 22px; max-width: 320px; font-size: .98rem; line-height: 1.6; color: #eef3e9; }
.service-strip { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 0; margin: 13px 0 28px; border-bottom: 1px solid var(--line); }
.service-strip div { display: flex; justify-content: center; align-items: center; gap: 9px; padding: 15px 4px; text-align: center; font-weight: 620; color: #395745; font-size: .9rem; }
.service-strip svg { width: 20px; height: 20px; }
.service-strip span { min-width: 0; overflow-wrap: anywhere; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
h1, h2, h3 { line-height: 1.25; }
.section-head h2, .admin h1 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.035em; }
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0 0 30px;
  padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.category { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px;
  min-width: 0; padding: 10px 4px; background: transparent; border: 0; border-radius: 12px; color: var(--ink);
  font-weight: 750; font-size: .95rem; line-height: 1.28; text-align: center; }
.category-photo { display: block; width: min(100%, 112px); height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; background: #edf3e7; border: 1px solid #d9e4d5; }
.category-name { display: block; }
.category:hover, .category[aria-pressed="true"] { background: #edf4e8; color: var(--deep); }
.category[aria-pressed="true"] .category-photo { box-shadow: 0 0 0 2px white, 0 0 0 4px #4b7851; }
.products-section { margin-bottom: 45px; }
.category-refinements { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.subcategory-chip { min-height: 38px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--leaf); background: white; font-size: .875rem; font-weight: 650; }
.subcategory-chip:hover { border-color: #829476; }
.subcategory-chip[aria-pressed="true"] { color: white; background: var(--leaf); border-color: var(--leaf); }
.show-all { display: flex; justify-content: center; margin-top: 17px; }
.sort { background: white; border: 1px solid var(--line); border-radius: 9px; padding: 9px 33px 9px 11px; font-size: .87rem; color: var(--ink); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233f5a49' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 11px center !important; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.product { min-width: 0; overflow: hidden; border-radius: 17px; background: white; border: 1px solid var(--line); }
.product:hover { border-color: #aab9a3; }
.product-image { display: block; width: 100%; padding: 0; position: relative; aspect-ratio: 1.32; border: 0; background: #e9efdb; }
.product-image img, .detail-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 14px; }
.product-type { color: var(--muted); font-size: .8rem; }
.product-name { display: block; background: none; border: 0; text-align: left; padding: 4px 0 10px; width: 100%; font-size: 1rem; font-weight: 700; color: var(--ink); }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 5px; }
.price { color: var(--deep); font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.price small { color: var(--muted); font-weight: 500; font-size: .75rem; }
.add { border-radius: 50%; width: 38px; min-height: 38px; }
.add svg { width: 17px; height: 17px; }
.sold { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.empty, .panel { background: white; border: 1px solid var(--line); padding: 24px; border-radius: var(--radius); }
.empty { text-align: center; color: var(--muted); }
.footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .9rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.footer a { color: var(--leaf); text-decoration: underline; text-underline-offset: 3px; }
.mobile-nav { display: none; }
dialog { padding: 0; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); width: min(550px, calc(100% - 28px)); max-height: min(90dvh, 840px); overflow: auto; box-shadow: 0 22px 65px #152f2e50; }
dialog::backdrop { background: #15251995; }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 20px; background: white; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 1.32rem; }
.dialog-body { padding: 20px; }
.detail-photo { height: 230px; border-radius: 12px; }
.detail-info { margin: 14px 0; color: var(--muted); line-height: 1.6; }
.stack { display: grid; gap: 13px; }
.cart-line, .summary-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 0; }
.record-id { overflow-wrap: anywhere; }
.cart-line small, .muted { color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.stepper button { width: 36px; min-height: 36px; }
.totals { display: grid; gap: 8px; margin-block: 8px; }
.totals div { display: flex; gap: 10px; justify-content: space-between; }
.total { color: var(--deep); font-weight: 800; padding-top: 8px; border-top: 1px solid var(--line); }
.field { display: grid; gap: 5px; min-width: 0; font-size: .94rem; font-weight: 650; }
.field input, .field textarea, .field select { border: 1px solid #cdd8cb; min-width: 0; width: 100%; background-color: white; padding: 9px 11px; min-height: 43px; border-radius: 9px; color: var(--ink); font-weight: 400; }
.field select { padding-right: 31px; }
.field textarea { min-height: 66px; resize: vertical; }
fieldset { margin: 0; padding: 7px 12px; min-width: 0; border: 1px solid var(--line); border-radius: 9px; }
legend { padding-inline: 4px; font-weight: 650; }
.checks { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.checks label { display: flex; align-items: center; gap: 6px; min-height: 36px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--leaf); width: 18px; height: 18px; }
.hint { border-radius: 9px; background: #eef4df; color: #345032; padding: 11px; line-height: 1.5; font-size: .88rem; }
.error { color: #963a25; font-size: .91rem; }
.toast { position: fixed; z-index: 7; right: 24px; bottom: 24px; background: var(--deep); color: white; border-radius: 9px; padding: 13px 17px; box-shadow: 0 4px 25px #18372e48; }
.admin-top .bar { display: flex; justify-content: space-between; }
.admin-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.admin-links { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 15px; }
.branch-picker { min-width: min(170px, 100%); }
.admin-tabs { flex-wrap: wrap; }
.management { gap: 25px; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 12px; }
.branch-card { display: grid; gap: 12px; padding: 16px; }
.auth-screen { min-height: 100dvh; display: grid; place-items: center; padding: 22px;
  background: radial-gradient(ellipse at 15% 0%, #d9e8d3, transparent 47%), var(--paper); }
.auth-panel { display: grid; gap: 20px; width: min(100%, 460px); padding: clamp(22px, 5vw, 36px); background: white;
  border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 20px 65px #173c2b16; }
.auth-brand { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.auth-heading { display: grid; gap: 6px; }
.auth-heading h1 { font-size: clamp(1.65rem, 5vw, 2rem); }
.auth-panel form .button { margin-top: 4px; }
.admin-product-name { display: inline-flex; align-items: center; gap: 9px; }
.admin-product-name img { width: 44px; height: 44px; object-fit: cover; border-radius: 7px; background: #edf1e8; }
.recommendation-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px; }
.recommendation-controls .field { width: min(100%, 310px); }
.recommendation-summary { margin-bottom: 10px; }
.recommendation-table .pick-cell { width: 1%; }
.recommendation-table .product-cell { white-space: normal; }
.recommendation-table label { cursor: pointer; }
.subcategory-table td:first-child { white-space: normal; font-weight: 680; overflow-wrap: anywhere; }
.subcategory-table .form-actions { gap: 3px 8px; flex-wrap: nowrap; }
.catalog-category small { display: block; color: var(--muted); }
.homepage-form { gap: 23px; }
.homepage-form h2 { margin-bottom: 5px; }
.banner-editor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); gap: 12px; }
.banner-editor-card { display: grid; align-content: start; gap: 8px; min-width: 0; background: white; border: 1px solid var(--line); border-radius: 13px; padding: 12px; }
.banner-editor-card > .text-button { justify-self: start; min-height: 36px; }
.banner-editor-card input[type="file"] { overflow: hidden; font-size: .86rem; }
.banner-preview-frame, .banner-preview { width: 100%; aspect-ratio: 2 / 1; border-radius: 8px; background: #edf1e8; }
.banner-preview-frame { display: grid; place-items: center; }
.banner-preview { display: block; object-fit: contain; }
.service-editor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.catalog-actions .form-actions { gap: 5px 12px; white-space: nowrap; }
.product-delete { color: #963a25; }
.narrow-only { display: none; }
.product-photo-box { display: grid; grid-template-columns: minmax(75px, 110px) minmax(0, 1fr); align-items: start;
  gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.product-photo-box img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #edf1e8; border-radius: 7px; }
.product-photo-box input[type="file"] { overflow: hidden; font-size: .85rem; }
.admin { padding-block: 26px 55px; }
.admin h1 { margin-bottom: 9px; }
.admin-tabs { display: flex; gap: 8px; margin: 22px 0 14px; }
.admin-tabs button[aria-pressed="true"] { background: var(--leaf); color: white; }
.admin-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.metric { border-radius: 13px; background: white; border: 1px solid var(--line); padding: 13px; color: var(--muted); font-size: .88rem; }
.metric strong { display: block; margin-top: 6px; color: var(--ink); font-size: 1.3rem; }
.table-wrap { overflow: auto; border-radius: 13px; border: 1px solid var(--line); background: white; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .93rem; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: #eef2e9; font-weight: 700; color: #3d5141; }
tbody tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; border-radius: 6px; background: #e8f0de; color: #365334; font-size: .82rem; padding: 4px 7px; }
.tag.new { background: #f8f0ce; color: #624a1d; }
.tag.cancelled { background: #f1edeb; color: #755c57; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.line-edit { display: grid; grid-template-columns: minmax(0, 1fr) 105px; gap: 11px; align-items: end; padding: 8px 0; border-bottom: 1px solid var(--line); }
.line-edit small { display: block; margin-top: 4px; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.checkout-verification { display: grid; gap: 8px; }
.checkout-verification > p { font-size: .875rem; }
.checkout-challenge { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 62px; }
.checkout-challenge img { display: block; width: 168px; height: 62px; border: 1px solid var(--line); border-radius: 8px; }
.checkout-challenge .text-button { min-width: 56px; }
.checkout-challenge p { font-size: .875rem; }
.print-only { display: none; }
@media (max-width: 850px) {
  .wrap { width: min(100% - 36px, 780px); }
  .bar { gap: 18px; grid-template-columns: auto minmax(130px, 1fr) auto; }
  .desktop-link span { display: none; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  html { scroll-padding-top: 115px; }
  .wrap { width: calc(100% - 28px); }
  .preheader .wrap { min-height: 28px; }
  .preheader { font-size: .74rem; }
  .top .bar { grid-template-columns: 1fr; gap: 8px; padding: 10px 0; }
  .brand strong { font-size: 1.25rem; }
  .brand small { font-size: .75rem; margin-top: 3px; }
  .brand-mark { border-radius: 12px; padding: 8px; }
  .brand-mark svg { width: 22px; height: 22px; }
  .search { min-height: 42px; }
  .actions { display: none; }
  .hero { margin-top: 13px; min-height: 252px; border-radius: 17px; }
  .hero-photo { width: 86%; object-position: 68% 50%; }
  .hero::after { background: linear-gradient(90deg, #173c2b 6%, #173c2bef 30%, #173c2b75 68%, #173c2b27); }
  .hero-copy { padding-block: 22px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .hero-kicker { font-size: .71rem; margin-bottom: 9px; }
  .hero p { max-width: 220px; font-size: .87rem; margin: 9px 0 14px; }
  .service-strip { margin: 4px 0 19px; }
  .service-strip div { gap: 3px; font-size: .75rem; padding: 11px 1px; }
  .service-strip svg { width: 16px; height: 16px; }
  .store-announcement { gap: 9px; padding: 9px 10px; font-size: .875rem; }
  .service-editor-grid { grid-template-columns: 1fr; }
  .category-grid { gap: 6px 4px; padding: 8px; margin-bottom: 23px; border-radius: 14px; }
  .category { gap: 8px; padding: 8px 3px 9px; border-radius: 10px; font-size: .9375rem; }
  .category-photo { width: min(100%, clamp(64px, 21vw, 92px)); }
  .section-head { margin-bottom: 10px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product { border-radius: 12px; }
  .product-body { padding: 9px; }
  .product-name { font-size: .93rem; padding-bottom: 6px; }
  .price { font-size: 1.02rem; }
  .add { width: 38px; min-height: 38px; }
  .mobile-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; background: white; bottom: 0; inset-inline: 0; z-index: 4; padding: 3px 4px env(safe-area-inset-bottom); border-top: 1px solid var(--line); }
  .mobile-nav button, .mobile-nav a { min-height: 52px; position: relative; display: grid; align-content: center; justify-items: center; background: none; border: 0; gap: 3px; color: var(--leaf); font-weight: 650; font-size: .75rem; }
  .mobile-nav .cart-count { position: absolute; top: 0; left: calc(50% + 8px); min-width: 17px; min-height: 17px; font-size: .68rem; }
  .footer { padding-bottom: calc(73px + env(safe-area-inset-bottom)); }
  .toast { right: 12px; bottom: calc(65px + env(safe-area-inset-bottom)); }
  .dialog-head, .dialog-body { padding-inline: 13px; }
  .admin-top .bar { display: flex; }
  .admin-top .button { padding: 7px 10px; font-size: .83rem; }
  .admin-links { gap: 5px 8px; }
  .admin-links .text-button { font-size: .86rem; }
  .admin-tabs .button { padding: 8px 11px; font-size: .9rem; }
  .product-table-wrap { overflow: visible; border: 0; background: transparent; }
  .product-admin-table, .product-admin-table tbody { display: block; }
  .product-admin-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .product-admin-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas:
    "product product" "category state" "price stock" "actions actions";
    gap: 4px 8px; padding: 10px 12px 5px; margin-bottom: 9px; background: white; border: 1px solid var(--line); border-radius: 12px; }
  .product-admin-table tbody td { display: block; min-width: 0; padding: 0; border: 0; white-space: normal; }
  .catalog-product { grid-area: product; overflow-wrap: anywhere; font-weight: 680; }
  .catalog-category { grid-area: category; align-self: center; color: var(--muted); }
  .catalog-price { grid-area: price; align-self: center; }
  .catalog-stock { grid-area: stock; text-align: right; color: var(--muted); }
  .catalog-state { grid-area: state; text-align: right; }
  .catalog-actions { grid-area: actions; margin-top: 3px; border-top: 1px solid var(--line) !important; }
  .catalog-actions .form-actions { gap: 10px; }
  .catalog-actions button { min-width: 44px; }
  .narrow-only { display: inline; }
  .product-photo-box { grid-template-columns: 75px minmax(0, 1fr); gap: 7px; }
  th, td { padding: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
@media print {
  body > :not(dialog), .dialog-head, .dialog-body > :not(.print-only) { display: none !important; }
  dialog[open] { position: static; display: block; width: 100%; max-height: none; border: 0; margin: 0; box-shadow: none; }
  dialog::backdrop { display: none; }
  .print-only { display: block; }
}
