:root {
  color-scheme: light;
  --page: #f5f5ef;
  --white: #fdfdf9;
  --ink: #202b23;
  --muted: #526154;
  --green: #254d3c;
  --green-strong: #183a2c;
  --soft: #e7ede2;
  --line: #d9dfd5;
  font: 15px/1.55 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; min-width: 320px; }
body:has(dialog[open]) { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.shell { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 750; line-height: 1.22; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .13em; }
.site-header .brand:has(.brand-identity) { min-width: 0; max-width: 100%; }
.brand-identity { min-width: 0; }
.brand-identity > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand:has(.brand-identity) :is(.brand-mark, img) { flex: none; }
.brand-mark { width: 37px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; background: var(--green); }
.brand-mark i { width: 18px; height: 17px; border: 1.5px solid #f3f6eb; border-radius: 2px; position: relative; }
.brand-mark i::before { content: ""; position: absolute; inset: 4px -1.5px auto; border-top: 1.5px solid #f3f6eb; }
.brand-mark i::after { content: ""; position: absolute; left: 7px; top: 0; width: 2px; height: 9px; background: #f3f6eb; }
.header-nav { display: flex; align-items: center; gap: 22px; }

.button {
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 660;
  white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s;
}
.button.primary { background: var(--green); color: var(--white); }
.button.primary:hover { background: var(--green-strong); }
.button.secondary { color: var(--green-strong); background: var(--soft); border-color: transparent; }
.button.secondary:hover { background: #d7e3d5; }
.text-button { padding: 0 5px; background: transparent; color: var(--muted); font-size: 14px; }
.text-button:hover { color: var(--green-strong); }
.list-button { border-color: var(--line); background: var(--white); font-size: 13px; }
.list-button:hover { background: var(--soft); }
.list-icon { width: 12px; height: 14px; position: relative; border: 1.3px solid currentColor; border-radius: 2px; }
.list-icon::after { content: ""; width: 5px; height: 4px; position: absolute; top: 3px; left: 2px; border-block: 1px solid currentColor; }
.list-count { display: grid; place-items: center; min-width: 20px; height: 20px; padding-inline: 4px; background: var(--soft); color: var(--green-strong); border-radius: 5px; font: 700 11px/1 system-ui, sans-serif; }

.site-main { padding-top: 32px; }
.hero { min-height: 335px; position: relative; overflow: hidden; isolation: isolate; border: 1px solid #d8e0d4; border-radius: 16px; background: #e5ecdf; }
.hero-image { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 62%; height: 100%; object-fit: cover; object-position: center 56%; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #e5ecdf 0%, #e5ecdf 36%, #e5ecdf00 59%); pointer-events: none; }
.hero-copy { padding: 48px 0 40px 52px; width: 49%; position: relative; }
.hero h1 { color: #203627; font-size: clamp(40px, 4.22vw, 63px); line-height: 1.09; letter-spacing: -.055em; font-weight: 780; }
.hero p { max-width: 300px; margin-top: 19px; color: #405548; font-size: 14px; line-height: 1.65; }
.hero-button { margin-top: 24px; min-height: 44px; padding: 0 18px; font-size: 14px; }
.hero-button span { padding-left: 12px; font: 500 17px/1 system-ui, sans-serif; }

.catalog { padding-top: 37px; scroll-margin-top: 17px; }
.catalog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.catalog-label { display: flex; align-items: baseline; gap: 14px; }
.catalog h2 { font-size: 28px; letter-spacing: -.04em; line-height: 1.2; }
#catalog-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.filters { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.filters button { padding: 6px 15px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 610; }
.filters button:hover { color: var(--green-strong); background: var(--page); }
.filters button[aria-pressed="true"] { background: var(--soft); color: var(--green-strong); font-weight: 750; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-card { display: grid; grid-template-columns: minmax(0, .89fr) minmax(0, 1fr); min-height: 218px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--white); transition: border-color .18s; }
.product-card:hover { border-color: #9bac9d; }
.product-image { width: 100%; height: 100%; min-height: 218px; object-fit: cover; object-position: center; background: var(--soft); }
.product-meta { min-width: 0; min-height: 218px; display: flex; flex-direction: column; padding: 22px 19px 19px; }
.product-title { font-size: clamp(20px, 2vw, 27px); line-height: 1.18; letter-spacing: -.045em; font-weight: 750; }
.product-note { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.product-spec { margin-top: 10px; color: var(--green-strong); font-size: 12px; line-height: 1.45; }
.card-bottom { margin-top: auto; padding-top: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card-bottom .button { min-height: 38px; padding-inline: 11px; font-size: 13px; }
.product-price-note { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.price { display: inline-flex; align-items: baseline; gap: 4px; color: var(--green-strong); white-space: nowrap; }
.price strong { font-family: "Avenir Next", system-ui, sans-serif; font-size: 29px; font-weight: 750; line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.price small { font-size: 12px; color: var(--muted); }
.site-footer { margin-top: 32px; padding: 19px 0 24px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.dialog { width: min(660px, calc(100% - 40px)); max-height: calc(100dvh - 60px); border: 1px solid var(--line); padding: 0; border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: 0 18px 70px #172f2d25; }
.dialog[open] { animation: reveal .17s ease-out; }
.dialog::backdrop { background: #172e24a6; }
.dialog-list { width: min(760px, calc(100% - 40px)); }
.dialog-settings { width: min(720px, calc(100% - 40px)); }
.dialog-workspace { width: min(700px, calc(100% - 40px)); }
.dialog-shell { position: relative; padding: 28px 32px 30px; }
.close-button { position: absolute; top: 19px; right: 22px; z-index: 1; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--green-strong); font: 400 24px/1 system-ui, sans-serif; }
.close-button:hover { background: var(--soft); }
.panel-kicker { color: var(--muted); margin-bottom: 4px; font-size: 12px; }
.panel-heading { margin-right: 38px; color: var(--green-strong); font-size: 28px; letter-spacing: -.04em; line-height: 1.23; }
.panel-note { margin-top: 8px; color: var(--muted); font-size: 13px; }
.workspace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.workspace-module { display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 4px 8px; min-height: 88px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); text-align: left; }
button.workspace-module:hover { background: var(--soft); border-color: #aabbaa; }
.workspace-module strong { grid-column: 1; grid-row: 1; color: var(--green-strong); font-size: 16px; }
.workspace-module > span:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 12px; }
.module-action, .module-status { grid-column: 2; grid-row: 1 / 3; align-self: center; white-space: nowrap; }
.module-action { color: var(--green-strong); font: 600 19px/1 system-ui, sans-serif; }
.module-planned { background: var(--page); }
.module-status { color: var(--muted); font-size: 11px; }
.option-group, .field-grid, .switch-grid, .quote-summary, .list-total, .quote-paper { margin-top: 18px; }
.option-group { padding: 0; border: 0; min-width: 0; }
.option-group legend, .option-group h3, .option-group > strong { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 720; }
.option-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 5px 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); font-size: 13px; }
.choice:hover { border-color: var(--green); }
.choice[aria-pressed="true"] { border-color: var(--green); color: var(--green-strong); font-weight: 700; background: var(--soft); }
.option-swatch { width: 11px; height: 11px; border-radius: 3px; border: 1px solid #53635642; background: #eee; }
.option-swatch[data-color="blue"] { background: #416887; }
.option-swatch[data-color="black"] { background: #232832; }
.quantity-stepper { display: inline-flex; width: max-content; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.quantity-stepper button { width: 34px; height: 34px; border: 0; background: var(--soft); color: var(--green-strong); font: 660 16px/1 system-ui, sans-serif; }
.quantity-stepper input, .quantity-stepper output, .quantity-stepper > span { display: inline-block; height: 34px; width: 48px; color: var(--ink); background: var(--white); text-align: center; border: 0; font-size: 13px; line-height: 34px; font-variant-numeric: tabular-nums; }
.quantity-stepper input::-webkit-inner-spin-button, .quantity-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.quote-summary, .list-total { padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: #eff2e9; }
.quote-summary { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.quote-summary small { color: var(--muted); }
.quote-summary .price strong, .list-total .price strong { font-size: 26px; }
.summary-quantity { display: grid; justify-items: start; gap: 5px; font-size: 13px; }
.summary-amount { text-align: right; }
.summary-amount > span { color: var(--muted); font-size: 12px; }
.summary-amount .panel-note { margin-top: 3px; }
.panel-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 17px; }
.panel-actions > p { margin: 0 auto 0 0; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 14px; }
.field { display: grid; gap: 5px; min-width: 0; color: var(--ink); font-size: 13px; font-weight: 620; }
.field input:not([type="checkbox"]), .inline-field input:not([type="checkbox"]) { width: 100%; min-height: 38px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--white); }
.switch-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.switch-row { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; background: var(--soft); border-radius: 6px; line-height: 1.4; font-size: 13px; }
input[type="checkbox"] { accent-color: var(--green); }
.inline-field { display: flex; align-items: center; gap: 7px; }
.inline-field input:not([type="checkbox"]) { flex: 1; min-width: 0; }
.settings-section { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.settings-section .field-grid, .settings-section .switch-grid { margin-top: 0; }
.settings-section .inline-field { margin-top: 9px; }
.settings-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.settings-preview { display: grid; gap: 8px; }
.settings-preview-title, .price-preview-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.settings-preview-title span { color: var(--muted); font-size: 12px; }
.price-preview-row { padding-top: 7px; border-top: 1px solid var(--line); font-size: 13px; }
.price-preview-row small { display: block; }
.price-preview-amount { text-align: right; }
.list-row { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.list-row > div:first-child { flex: 1; min-width: 165px; }
.list-row button:not(.button, .quantity-stepper button) { border: 0; padding: 0 4px; background: transparent; color: var(--muted); font-size: 12px; }
.list-row p, .list-row small { color: var(--muted); font-size: 12px; }
.list-empty { padding: 30px 15px; margin-top: 16px; border: 1px dashed #b6c1b4; border-radius: 8px; color: var(--muted); text-align: center; }
.list-empty .button { margin-top: 11px; }
.list-edit { display: flex; align-items: center; gap: 7px; }
.list-line-amount { min-width: 94px; text-align: right; }
.list-line-amount .price strong { font-size: 21px; }
.list-total { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.quote-paper { overflow-x: auto; padding: 14px; background: var(--page); border: 1px solid var(--line); border-radius: 8px; }
.quote-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.quote-table th, .quote-table td { padding: 9px 7px; border-bottom: 1px solid var(--line); vertical-align: top; }
.quote-table th { color: var(--muted); }
.toast { z-index: 10; position: fixed; right: max(24px, calc((100vw - 1280px) / 2)); bottom: 28px; padding: 12px 18px; border-radius: 8px; background: var(--green-strong); color: #fff; box-shadow: 0 6px 18px #172f2d23; font-weight: 650; }
.toast:not([hidden]) { animation: reveal .17s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.spec-totals { margin-top: 14px; padding: 11px 13px; border-radius: 8px; background: var(--soft); color: var(--green-strong); font-size: 13px; line-height: 1.7; }
.bundle-note { margin-top: 5px; color: var(--muted); font-size: 12px; }
.choice:disabled { opacity: .64; background: var(--page); }
.inquiry-form { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.inquiry-heading { color: var(--green-strong); font-size: 19px; line-height: 1.3; }
.inquiry-form .field-grid { margin-top: 13px; }
.field textarea, .field select, .internal-textarea { width: 100%; min-height: 40px; padding: 8px 10px; resize: vertical; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--white); font: inherit; }
.field textarea { min-height: 66px; }
.inquiry-form > .field { margin-top: 11px; }
.invoice-options { display: flex; flex-wrap: wrap; gap: 8px; }
.invoice-option { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--green-strong); cursor: pointer; font-size: 13px; }
.invoice-option:has(:checked) { border-color: var(--green); background: var(--soft); }
input[type="radio"] { margin: 0; accent-color: var(--green); }
.form-error, .form-message[data-state="error"] { color: #87382e; font-size: 13px; }
.form-error:not(:empty), .form-message:not(:empty) { margin-top: 8px; }
.inquiry-success { padding: 21px 19px; margin-top: 15px; border-radius: 10px; background: var(--soft); }
.inquiry-success p + p { margin-top: 6px; }
.inquiry-success strong { font-weight: 750; color: var(--green-strong); }

.login-page { min-height: 100vh; }
.login-main { min-height: calc(100dvh - 73px); display: grid; place-items: center; padding-block: 32px; }
.login-card { width: min(422px, 100%); padding: 30px 34px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 12px 42px #2845310d; }
.login-card .field { margin-top: 13px; }
.login-card form > .button { width: 100%; margin-top: 17px; }
.login-card h1, .internal-heading h1, h1.internal-heading { color: var(--green-strong); font-size: clamp(26px, 3vw, 38px); line-height: 1.2; letter-spacing: -.05em; }
.internal-main { padding-block: 39px 52px; }
.internal-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.internal-heading p { margin-top: 7px; color: var(--muted); }
.internal-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.internal-stat { padding: 16px 22px; }
.internal-stat + .internal-stat { border-inline-start: 1px solid var(--line); }
.internal-stat-priority { background: var(--soft); }
.internal-stat strong { display: block; margin-top: 4px; color: var(--green-strong); font-family: "Avenir Next", system-ui, sans-serif; font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.internal-stat small, .internal-stat span { color: var(--muted); font-size: 13px; }
.internal-grid { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); align-items: start; gap: 18px; }
.internal-panel { background: var(--white); min-width: 0; border: 1px solid var(--line); border-radius: 13px; padding: 22px; }
.internal-panel h2, .internal-panel h3, .internal-detail h2, .internal-detail h3 { color: var(--green-strong); font-size: 18px; line-height: 1.35; }
.internal-panel p { overflow-wrap: anywhere; }
.inquiry-search { margin-top: 12px; }
.internal-panel .filters { width: max-content; max-width: 100%; margin-top: 10px; flex-wrap: wrap; }
.internal-records { margin: 12px -3px 0; display: grid; gap: 7px; list-style: none; padding: 3px; max-height: 64vh; overflow-y: auto; overscroll-behavior: contain; }
.internal-record { display: block; width: 100%; padding: 12px 11px; text-align: left; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.internal-record:hover { border-color: #9daea0; }
.internal-record[aria-pressed="true"] { border-color: #8ca795; background: var(--soft); }
.record-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.record-header strong { overflow-wrap: anywhere; }
.record-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.record-status { width: max-content; padding: 2px 6px; color: var(--green-strong); border-radius: 4px; background: var(--soft); font-size: 11px; }
.record-status[data-status="new"] { background: #f0efe4; color: #575035; }
.record-status[data-status="following"] { background: var(--soft); color: var(--green-strong); }
.record-status[data-status="quoted"] { background: #e6edf1; color: #305268; }
.internal-detail, .inquiry-summary { min-width: 0; }
.internal-detail { padding-top: 7px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.detail-actions .button { min-height: 36px; font-size: 13px; }
.inquiry-empty { display: grid; place-items: center; min-height: 174px; margin-top: 13px; padding: 16px; border: 1px dashed var(--line); border-radius: 9px; background: var(--page); text-align: center; }
.internal-detail :is(#follow-up-form, #quote-form) { scroll-margin-top: 17px; }
.internal-detail > section, .internal-detail > form, .internal-detail > ul { margin-top: 14px; }
.inquiry-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 12px 14px; border-radius: 8px; background: var(--page); }
.inquiry-summary dt { font-size: 12px; color: var(--muted); }
.inquiry-summary dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.inquiry-items { padding: 0; list-style: none; display: grid; gap: 7px; }
.inquiry-items li { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; }
.inquiry-items .panel-note { margin-top: 2px; }
.follow-up-panel { padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: #f8f9f4; }
.follow-up-history { display: grid; gap: 6px; list-style: none; margin: 10px 0; padding: 0; }
.follow-up-history li { padding: 7px 10px; border-inline-start: 2px solid #b8cbb7; background: var(--white); font-size: 13px; overflow-wrap: anywhere; }
.follow-up-entry-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.follow-up-history p { margin-top: 3px; white-space: pre-wrap; }
.follow-up-history time { color: var(--muted); font-size: 12px; }
.follow-up-more summary { color: var(--green-strong); cursor: pointer; font-size: 13px; }
.follow-up-form { margin-top: 12px; }
.follow-up-form .field-grid { margin-top: 0; }
.follow-up-form > .field { margin-top: 10px; }
.follow-up-form > .panel-actions { margin-top: 12px; }
.internal-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin-block: 12px; }
.internal-fields > h3, .internal-fields > .panel-actions, .internal-fields > .form-message { grid-column: 1 / -1; }
.internal-settings { margin-top: 15px; }
.settings-sections { display: flex; flex-wrap: wrap; gap: 6px 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.settings-sections a { color: var(--green-strong); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.settings-content :is(#catalog-parameters-heading, #configured-product-heading, #film-pricing-heading, #inquiry-sources) { scroll-margin-top: 80px; }
.internal-settings summary { color: var(--green-strong); font-weight: 700; cursor: pointer; }
.settings-page :is(.internal-stats, .internal-grid, #internal-refresh) { display: none; }
.settings-page .internal-main { max-width: 1180px; }
.settings-page .internal-settings { padding: 0; border: 0; background: transparent; }
.settings-page .internal-settings > summary { display: none; }
.settings-category-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.settings-category-tabs .button { background: transparent; }
.settings-category-tabs .button:hover { background: var(--soft); }
.settings-category-tabs .button[aria-pressed="true"] { color: var(--white); background: var(--green); }
.settings-category-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.internal-settings .settings-category-layout > :is(.settings-parameter-form, .settings-sku-panel),
.settings-configured-products {
  min-width: 0;
  margin: 0;
  padding: 21px 23px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.settings-sku-panel .panel-note, .settings-parameter-form .panel-note { margin-top: 6px; }
.settings-configured-products { margin-top: 16px; }
.settings-product-list { padding: 0; margin: 10px 0 14px; list-style: none; }
.settings-product-row { padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.settings-more { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 880px) {
  .settings-category-layout { grid-template-columns: minmax(0, 1fr); }
}
.internal-settings form { margin-top: 10px; }
.internal-settings form fieldset { min-width: 0; border-color: var(--line); border-radius: 7px; }
.source-fields { display: grid; gap: 8px; margin: 10px 0; }
.source-setting { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) max-content; align-items: end; gap: 8px 12px; }
.source-actions { display: flex; flex-wrap: wrap; gap: 4px; }

.supply-home, .internal-page, .staff-login {
  --page: #f6f4ee;
  --white: #fffef9;
  --ink: #20332b;
  --muted: #55645a;
  --green: #285646;
  --green-strong: #173b30;
  --soft: #e7ede4;
  --line: #dce0d6;
  background: var(--page);
  color: var(--ink);
}
.skip-link, .visually-hidden {
  position: absolute;
  overflow: hidden;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  white-space: nowrap;
}
.skip-link:focus {
  z-index: 3;
  top: 10px;
  left: 10px;
  clip-path: none;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: var(--white);
}
.supply-home .site-header { position: sticky; z-index: 2; top: 0; }
.supply-home :is(#catalog, #service) { scroll-margin-top: 72px; }
.supply-home .hero {
  min-height: 398px;
  display: flex;
  align-items: center;
  border: 0;
  background: radial-gradient(ellipse at 10% 0%, #2c5548 0%, #19392f 70%);
}
.supply-home .hero::after { display: none; }
.supply-home .hero-image { z-index: 0; width: 57%; object-position: center; }
.supply-home .hero-copy { width: 43%; padding: clamp(28px, 4.15vw, 60px); }
.supply-home .hero h1 {
  color: #fffdf2;
  font-size: clamp(35px, 4.1vw, 64px);
  line-height: 1.12;
  letter-spacing: -.055em;
  font-weight: 760;
}
.supply-home .hero p { max-width: 28em; color: #e0e8db; font-size: 15px; text-wrap: pretty; }
.supply-home .hero-button { margin-top: 25px; color: var(--green-strong); background: #f1eee0; }
.supply-home .hero-button:hover { background: #fffdf4; }
.supply-home .hero-button:focus-visible { outline-color: #fffdf4; }
.supply-home .catalog { padding-top: 40px; }
.supply-home .catalog-header { margin-bottom: 18px; }
.supply-home .product-grid { grid-template-columns: 1fr; }
.supply-product {
  display: grid;
  grid-template-columns: minmax(160px, .85fr) minmax(240px, 1.75fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}
.supply-specs { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 0; }
.supply-specs dt { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.supply-specs dd { margin: 0; color: var(--green-strong); font-size: 14px; font-weight: 620; }
.supply-home .product-title { line-height: 1.24; }
.supply-home .product-spec { color: var(--muted); }
.procurement-service {
  display: grid;
  grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr);
  gap: 24px;
  margin-top: 38px;
  padding: 28px 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.procurement-service h2 { color: var(--green-strong); font-size: 25px; letter-spacing: -.035em; }
.procurement-service ol { margin: 0; padding: 0; list-style: none; }
.procurement-service li { display: grid; grid-template-columns: minmax(5em, auto) 1fr; gap: 12px; padding-block: 12px; }
.procurement-service li:first-child { padding-top: 4px; }
.procurement-service li + li { border-top: 1px solid var(--line); }
.procurement-service p { color: var(--muted); }
.supply-home .site-footer { margin-top: 0; border-top: 0; }
.staff-login { --page: #f2f5f4; --white: #fff; --green: #185e56; --green-strong: #173a3c; --muted: #54696a; --line: #d0ddda; }
.staff-login .login-card {
  width: min(860px, 100%); display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1fr);
  padding: 0; overflow: hidden; border-radius: 16px; box-shadow: 0 16px 48px #1f3f3c0c;
}
.staff-login .login-photo { background: #d4ded9 url('/assets/film.jpg') 52% center / cover no-repeat; }
.staff-login .login-content { padding: clamp(32px, 4vw, 54px); }
.staff-login .login-card h1 { color: var(--green-strong); font-size: clamp(27px, 3.2vw, 36px); letter-spacing: -.04em; }
.staff-login .login-card .panel-note { margin: 8px 0 24px; }
.staff-login .login-card .field { display: grid; gap: 7px; margin-top: 16px; }
.staff-login .login-form label { color: #304749; font-size: 14px; font-weight: 650; }
.staff-login .login-form input { width: 100%; height: 44px; font-size: 16px; }
.staff-login .login-password { position: relative; }
.staff-login .login-password input { padding-right: 60px; }
.staff-login #toggle-password { position: absolute; inset: 4px 4px 4px auto; width: 50px; border: 0; border-radius: 5px; color: var(--green); background: transparent; font-size: 13px; }
.staff-login #toggle-password:hover { background: #edf5f2; }
.staff-login .login-form > .button { height: 44px; margin-top: 22px; }
.staff-login a[href="/login?mode=test"] { display: flex; width: fit-content; margin: 18px auto 0; color: var(--green); font-weight: 600; font-size: 14px; }
@media (max-width: 740px) {
  .staff-login .login-card { display: block; max-width: 430px; }
  .staff-login .login-photo { display: none; }
  .staff-login .login-content { padding: 28px 24px; }
}

@media (max-width: 1080px) {
  .shell { width: calc(100% - 60px); }
  .hero-copy { padding-left: 38px; }
  .product-card { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
  .product-meta { padding-inline: 16px; }
}
@media (max-width: 740px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { height: 64px; }
  .header-nav { gap: 8px; }
  .site-main { padding-top: 18px; }
  .hero { min-height: 0; }
  .hero-copy { width: auto; padding: 26px 20px 0; }
  .hero h1 { font-size: 38px; }
  .hero-image { position: relative; z-index: -2; width: 100%; height: 215px; margin-top: 0; order: 2; }
  .hero { display: flex; flex-direction: column; }
  .hero::after { display: none; }
  .catalog { padding-top: 25px; }
  .catalog-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image, .product-card, .product-meta { min-height: 174px; }
  .dialog-shell { padding: 21px 19px; }
  .dialog { max-height: calc(100dvh - 26px); width: calc(100% - 24px); }
  .settings-options { grid-template-columns: 1fr; gap: 0; }
  .workspace-grid { grid-template-columns: 1fr; }
  .internal-grid { grid-template-columns: 1fr; }
  .internal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .internal-stat { padding-inline: 10px; }
  .internal-stat:nth-child(3) { border-inline-start: 0; }
  .internal-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .internal-heading { align-items: flex-start; }
  .source-setting { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supply-home .home-section-link { display: none; }
  .supply-home .hero { min-height: 0; align-items: stretch; }
  .supply-home .hero-image { width: 100%; }
  .supply-home .hero-copy { width: auto; padding: 26px 22px 30px; }
  .supply-home .catalog { padding-top: 28px; }
  .supply-product { grid-template-columns: 1fr; justify-items: start; gap: 18px; padding: 20px; }
  .procurement-service { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
  .internal-panel { padding: 16px; }
}
@media (min-width: 900px) and (min-height: 650px) {
  .inquiry-list-panel { position: sticky; top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.settings-extra-form { display: grid; gap: 12px; margin: 15px 0; align-items: start; }
.settings-extra-form > button { justify-self: start; }
.category-directory-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #dce3d8; padding: 7px 0; }
#company-logo-preview { width: auto; height: auto; max-width: 120px; max-height: 64px; }

.company-brand-logo { width: auto; max-width: 110px; height: 37px; object-fit: contain; }
