:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-synthesis: none;
  color: #20272e;
  background: #f3f6f9;
  --teal: #00899b;
  --teal-dark: #007889;
  --line: #e6ebf0;
  --muted: #7d8792;
  --soft: #f8fafc;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
button:disabled { opacity: .48; cursor: not-allowed; }
a { color: var(--teal-dark); text-decoration: none; }
button, input, textarea, select { outline-offset: 4px; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--teal); }
input, select, textarea {
  width: 100%; min-height: 44px; padding: 11px 13px; border: 1px solid #dbe2e9;
  border-radius: 8px; background: white; color: #26323d; font-size: .9rem;
  transition: border-color .16s, box-shadow .16s;
}
input::placeholder, textarea::placeholder { color: #9ba4ae; }
input:focus, textarea:focus, select:focus { border-color: #62b3bf; outline: 0; box-shadow: 0 0 0 3px #00899b0b; }
select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%236d7a86' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.8; }
label { display: block; margin-bottom: 9px; color: #53616d; font-size: .875rem; font-weight: 500; }
label > span { color: #8b959f; font-weight: 400; }
.primary, .secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px;
  padding: 11px 20px; border-radius: 8px; font-size: .9rem; font-weight: 550; line-height: 1.4;
  white-space: nowrap; flex-shrink: 0; transition: background .16s, border-color .16s, box-shadow .16s;
}
.primary { color: white; background: var(--teal); box-shadow: 0 3px 7px #00899b0d; }
.primary:hover { background: var(--teal-dark); box-shadow: 0 4px 12px #00899b18; }
.secondary { color: #424f59; border: 1px solid #dce3e9; background: white; }
.secondary:hover { border-color: #c6d3dc; background: #fbfcfd; }
.primary svg, .secondary svg { width: 18px; height: 18px; flex: 0 0 18px; }
.quiet { padding: 8px; color: var(--teal-dark); font-size: .875rem; line-height: 1.5; }
.danger { color: #ae5b5b; }
.muted { color: var(--muted); }
.small { font-size: .875rem; line-height: 1.7; }
.hint { color: #83909b; font-size: .8125rem; line-height: 1.8; }
.eyebrow { color: #8c97a1; font-size: .75rem; letter-spacing: .15em; }
.loading { padding: 20vh 24px; color: #82929d; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#toast {
  position: fixed; z-index: 100; bottom: 30px; left: 50%; display: none; transform: translateX(-50%);
  max-width: calc(100vw - 36px); padding: 13px 22px; border-radius: 10px;
  background: #25434d; color: white; font-size: .9rem; box-shadow: 0 8px 30px #24374320;
}
.workspace-shell {
  display: grid; grid-template-columns: 210px minmax(0, 1fr); grid-template-rows: 76px 1fr;
  width: calc(100% - 48px); max-width: 1800px; min-height: calc(100vh - 48px); margin: 24px auto;
  border: 1px solid #dfe6ec; border-radius: 18px; background: white;
  box-shadow: 0 12px 42px #273d4d0a; overflow: clip;
}
.topbar {
  grid-column: 1 / -1; grid-row: 1; position: sticky; top: 24px; z-index: 30;
  display: flex; align-items: center; gap: 28px; height: 76px; padding: 0 26px;
  background: #fffffffa; border-bottom: 1px solid var(--line); backdrop-filter: blur(12px);
}
.masthead-brand { display: flex; align-items: center; flex: 0 0 auto; }
.masthead-brand img { display: block; width: 142px; height: auto; }
.brand-caption { color: #9aa3ad; font-size: .78rem; letter-spacing: .08em; }
.breadcrumb { min-width: 0; color: #98a2ac; font-size: .8125rem; padding-left: 22px; border-left: 1px solid #e6eaf0; }
.breadcrumb span { margin-left: 12px; color: #5b6976; }
.account { display: flex; align-items: center; gap: 12px; margin-left: auto; color: #5b6873; font-size: .875rem; white-space: nowrap; }
.account > span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.avatar { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #e2edf0; border-radius: 50%; background: #f1f8fa; color: var(--teal-dark); font-size: .78rem; font-weight: 550; }
.logout { padding: 3px 0 3px 15px; border-left: 1px solid #e1e6ec; color: #8c97a0; font-size: .8125rem; }
.logout:hover { color: var(--teal-dark); }
.sidebar {
  grid-column: 1; grid-row: 2; position: sticky; top: 100px; align-self: start;
  display: flex; flex-direction: column; height: calc(100vh - 124px); min-height: 420px;
  padding: 28px 13px 22px; background: white; border-right: 1px solid var(--line);
}
.nav-label { margin: 0 16px 20px; color: #9aa5af; font-size: .75rem; letter-spacing: .04em; }
.nav-link {
  display: flex; align-items: center; gap: 13px; width: 100%; margin-bottom: 10px; padding: 14px 16px;
  border-radius: 9px; color: #60717d; font-size: .94rem; text-align: left; white-space: nowrap;
  transition: background .16s, color .16s;
}
.nav-link.active { background: #edf7f9; color: var(--teal-dark); font-weight: 600; }
.nav-link:hover { background: #f5f9fb; color: var(--teal-dark); }
.nav-link svg { flex: 0 0 20px; width: 20px; height: 20px; }
.nav-count { margin-left: auto; padding: 2px 6px; border-radius: 5px; background: #e1f0f3; font-size: .75rem; }
.sidebar-foot { margin: auto 15px 0; padding-top: 22px; border-top: 1px solid var(--line); color: #9aa5ad; font-size: .75rem; line-height: 2; }
.sidebar-foot strong { color: #65818b; font-weight: 550; letter-spacing: .12em; }
.main { grid-column: 2; grid-row: 2; min-width: 0; background: white; }
.content { width: 100%; max-width: 1600px; margin: 0 auto; padding: 31px 32px 46px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-heading h1 { margin: 0 0 10px; color: #1f2930; font-size: 1.85rem; font-weight: 650; letter-spacing: -.045em; line-height: 1.25; }
.page-heading p { margin: 0; color: #85919b; font-size: .875rem; line-height: 1.75; }
.heading-actions { display: flex; align-items: center; gap: 10px; }
.compact-summary { display: flex; align-items: center; gap: 0; flex-shrink: 0; margin-top: 9px; }
.summary-item { display: inline-flex; align-items: baseline; gap: 6px; padding: 0 17px; border-left: 1px solid #e2e7ed; color: #7e8a95; font-size: .8125rem; white-space: nowrap; }
.summary-item:first-child { padding-left: 0; border-left: 0; }
.summary-item:last-child { padding-right: 0; }
.summary-item strong { color: var(--teal-dark); font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 24px 0 27px; }
.stat-card { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.stat-label { color: #81909c; font-size: .875rem; }
.stat-value { margin: 15px 0 8px; color: #243942; font-size: 2rem; font-weight: 550; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat-note { color: #9aa5ae; font-size: .75rem; line-height: 1.6; }
.stat-symbol { display: grid; place-items: center; float: right; width: 32px; height: 32px; border-radius: 8px; background: #f1f8fa; color: var(--teal-dark); }
.stat-symbol svg { width: 17px; height: 17px; }
.panel { min-width: 0; margin-bottom: 23px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 23px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; color: #34444f; font-size: 1rem; font-weight: 600; }
.panel-body { padding: 23px; }
.catalog-panel { border: 0; border-radius: 0; overflow: visible; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.toolbar-products { padding: 0 0 22px; border: 0; gap: 12px; flex-wrap: nowrap; }
.search-control { display: flex; align-items: center; flex: 1 1 250px; min-width: 180px; margin-left: auto; }
.search-control svg { position: absolute; width: 18px; height: 18px; margin-left: 14px; color: #8b98a4; pointer-events: none; }
.search-input { flex: 1; min-width: 0; width: 100%; background: #fcfdfe; }
.search-control .search-input { padding-left: 43px; }
.toolbar select { flex: 0 0 144px; width: 144px; color: #657480; }
.result-count { margin-left: auto; color: #8b98a3; font-size: .8125rem; }
.product-collection-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 7px; margin: 0 0 19px; padding: 0 0 2px; border-bottom: 1px solid var(--line); }
.collection-tab { position: relative; padding: 14px 12px 17px; color: #6d7b87; font-size: .875rem; white-space: nowrap; }
.collection-tab:first-child { padding-left: 8px; padding-right: 16px; }
.collection-tab.active { color: var(--teal-dark); font-weight: 600; }
.collection-tab.active::after { content: ""; position: absolute; bottom: -3px; left: 12px; right: 12px; height: 2px; border-radius: 1px; background: var(--teal); }
.collection-tab:first-child.active::after { left: 7px; right: 16px; }
.collection-tab:hover { color: var(--teal-dark); }
.table-wrap { max-width: 100%; overflow: auto; border-radius: 9px; }
.catalog-panel .table-wrap { border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: left; }
th { padding: 15px 16px; border-bottom: 1px solid var(--line); background: #f4f7f9; color: #697987; font-size: .8125rem; font-weight: 500; }
td { padding: 16px; border-bottom: 1px solid #e9edf2; color: #455661; font-size: .875rem; line-height: 1.65; }
td:first-child, th:first-child { padding-left: 17px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfefe; }
.product-info { display: flex; align-items: center; gap: 16px; min-width: 220px; }
.thumb { position: relative; flex: 0 0 64px; width: 64px; height: 64px; overflow: hidden; border: 1px solid #e8edf1; border-radius: 8px; background: #f4f7f9; }
.thumb > img { position: absolute; display: block; max-width: none; }
.thumb .real-photo { width: 100%; height: 100%; object-fit: cover; }
.product-info strong { display: block; color: #263b45; font-size: .9rem; font-weight: 550; }
.product-info .sub { max-width: 190px; margin-top: 5px; overflow: hidden; color: #9aa4ad; font-size: .75rem; text-overflow: ellipsis; }
.spec-dimensions { color: #53636f; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 5px; background: #f1f4f7; color: #81909c; font-size: .75rem; line-height: 1.5; white-space: nowrap; }
.tag.green { background: #edf7f0; color: #518368; }
.tag.blue { background: #eef5fb; color: #6586a1; }
.price-cell { color: #324b55; font-weight: 550; font-variant-numeric: tabular-nums; }
.price-cell span { color: #93a0aa; font-size: .75rem; font-weight: 400; }
.row-actions { display: flex; align-items: center; gap: 13px; }
.row-actions button { padding: 6px 0; color: var(--teal-dark); font-size: .8125rem; white-space: nowrap; }
.row-actions button.danger { color: #ba8080; }
.row-actions button:hover { text-decoration: underline; text-underline-offset: 4px; }
.catalog-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 2px 0; color: #9aa5ae; font-size: .75rem; }
.empty-state { padding: 62px 26px; color: #8b9aa5; font-size: .9rem; line-height: 1.9; text-align: center; }
.setup-notice { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; padding: 19px 22px; border: 1px solid #e2eef1; border-radius: 11px; background: #f5fafb; color: #64808c; font-size: .85rem; line-height: 1.8; }
.setup-notice > svg { width: 22px; height: 22px; flex: 0 0 22px; color: #71a4af; }
.setup-notice .quiet { margin-left: auto; white-space: nowrap; }
.two-panels { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,1fr); gap: 22px; }
.task-list { display: flex; flex-direction: column; gap: 23px; }
.task-item { display: flex; align-items: flex-start; gap: 14px; }
.task-index { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; border-radius: 8px; background: #f0f7f9; color: var(--teal-dark); }
.task-index svg { width: 17px; height: 17px; }
.task-title { margin: 2px 0 7px; color: #4e636e; font-size: .9rem; }
.editor-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 22px; align-items: start; }
.editor-grid > div, .editor-grid > aside { min-width: 0; }
.editor-grid .panel { margin-bottom: 22px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 24px; }
.field-grid .field { margin-bottom: 0; }
.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field-row { display: flex; gap: 20px; }
.field-row .field { flex: 1; }
.switches { display: flex; gap: 12px; }
.switches label { display: flex; align-items: center; flex: 1; gap: 8px; margin-bottom: 0; padding: 15px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fcfdfe; color: #6b7a87; font-size: .875rem; line-height: 1.6; cursor: pointer; }
.switches label:has(input:checked) { border-color: #a3cfd7; background: #f1f9fb; color: var(--teal-dark); }
input[type=radio], input[type=checkbox] { flex: 0 0 16px; width: 16px; height: 16px; min-height: 0; accent-color: var(--teal); }
.spec-table input { min-width: 68px; padding: 9px; font-size: .875rem; }
.spec-table th, .spec-table td { padding: 10px 8px; }
.spec-table th:first-child, .spec-table td:first-child { padding-left: 23px; }
.spec-table td:last-child { padding-right: 21px; }
.spec-table th { font-size: .8125rem; }
.spec-table td { font-size: .8125rem; }
.spec-area { display: block; margin-top: 6px; color: #99a4ad; font-size: .75rem; line-height: 1.5; }
.remove-spec { padding: 6px; color: #9da9b2; font-size: 22px; }
.spec-table-wrap { max-width: 100%; overflow: auto; }
.spec-actions { padding: 16px 23px 23px; }
.calc-preview { margin-top: 17px; padding: 18px 20px; border: 1px solid #e3eef1; border-radius: 9px; background: #f6fafb; color: #6b8a95; font-size: .85rem; line-height: 1.9; }
.calc-preview strong { color: var(--teal-dark); font-size: 1.1rem; font-weight: 600; }
.image-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 15px; }
.image-item { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid #e5ebef; border-radius: 8px; background: #f7f9fb; }
.image-item img { display: block; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.image-remove { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #25404bba; color: white; font-size: 17px; line-height: 1; }
.upload-label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 25px 12px; border: 1px dashed #cbdde4; border-radius: 9px; background: #fbfdfe; color: #5f929f; font-size: .875rem; font-weight: 400; text-align: center; cursor: pointer; transition: background .16s, border-color .16s; }
.upload-label:hover { border-color: #83bdc8; background: #f2f9fb; }
.upload-label svg { width: 24px; height: 24px; }
.upload-label input { display: none; }
.upload-label .hint { font-size: .75rem; line-height: 1.6; }
.cover-note { margin-top: 10px; color: #9aa5ad; font-size: .75rem; line-height: 1.7; }
.section-description { margin: 0 0 19px; color: #8b98a3; font-size: .875rem; line-height: 1.8; }
.sample-check { display: flex; align-items: center; gap: 9px; margin-top: 19px; color: #8c99a3; font-size: .8125rem; line-height: 1.7; }
.save-footer { position: sticky; bottom: 24px; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 22px; border: 1px solid #dfe8ed; border-radius: 11px; background: #fffffffa; box-shadow: 0 -4px 24px #31536606; backdrop-filter: blur(12px); }
.save-footer .small { color: #98a4ad; font-size: .8125rem; }
.code { padding: 12px 14px; overflow-wrap: anywhere; border: 1px solid #e6ecf1; border-radius: 7px; background: #f7f9fb; color: #657984; font: .8125rem/1.8 ui-monospace, Consolas, monospace; white-space: pre-wrap; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.setting-line { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.setting-line:last-child { border-bottom: 0; }
.enquiry-card { padding: 23px; border-bottom: 1px solid var(--line); }
.enquiry-card:last-child { border-bottom: 0; }
.enquiry-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.enquiry-top strong { color: #455c67; font-size: .95rem; font-weight: 550; }
.enquiry-top select { width: 130px; font-size: .875rem; }
.enquiry-detail { margin: 17px 0; color: #84939d; font-size: .875rem; line-height: 1.8; }
.enquiry-lines { margin-top: 19px; padding: 14px 18px; border: 1px solid #edf1f4; border-radius: 9px; background: #fafcfd; font-size: .875rem; line-height: 1.9; }
.no-margin { margin: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: #23404d50; backdrop-filter: blur(3px); }
.dialog { width: 100%; max-width: 440px; padding: 29px; border: 1px solid #edf2f5; border-radius: 15px; background: white; box-shadow: 0 24px 70px #173a4a26; }
.dialog h3 { margin: 0 0 15px; color: #2b454f; font-size: 1.15rem; font-weight: 600; }
.dialog p { color: #85949e; font-size: .9rem; line-height: 1.9; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 25px; }
.lightbox { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 40px; background: #16212ce8; cursor: zoom-out; }
.lightbox img { max-width: 95vw; max-height: 90vh; object-fit: contain; }
.error-banner { margin: 0 0 22px; padding: 13px 17px; border: 1px solid #f1d6d4; border-radius: 9px; background: #fff7f6; color: #ac5e59; font-size: .875rem; line-height: 1.8; white-space: pre-wrap; }
.login-wrap { display: grid; place-items: center; min-height: 100vh; padding: 28px; background: radial-gradient(ellipse at 20% 10%,#eaf3f6,transparent 50%),#f4f7fa; }
.login-card { width: 448px; max-width: 100%; padding: 44px; border: 1px solid #e0e8ee; border-radius: 18px; background: white; box-shadow: 0 18px 60px #243e4d09; }
.login-card img { width: 160px; height: auto; margin-bottom: 35px; }
.login-card h1 { margin: 15px 0; color: #263d47; font-size: 1.7rem; font-weight: 600; letter-spacing: -.04em; }
.login-card p { color: #87959f; font-size: .9rem; line-height: 1.8; }
.login-card .field { margin: 22px 0; }
.login-card .primary { width: 100%; margin-top: 10px; }
.footer-note { margin-top: 16px; color: #9ba6af; font-size: .75rem; line-height: 1.8; }
@media (min-width: 1600px) {
  .content { padding: 38px 40px 50px; }
  .toolbar-products .search-control { max-width: 450px; }
  td { padding-top: 17px; padding-bottom: 17px; }
}
@media (min-width: 801px) and (max-width: 1250px) {
  .workspace-shell { grid-template-columns: 190px minmax(0,1fr); }
  .content { padding: 28px 25px 40px; }
  .nav-link { gap: 10px; padding: 13px; font-size: .9rem; }
  .product-heading { align-items: flex-start; flex-wrap: wrap; gap: 15px; }
  .compact-summary { margin-top: 0; }
  .summary-item { padding: 0 15px; }
  .toolbar-products { flex-wrap: wrap; }
  .toolbar-products .search-control { flex-basis: calc(100% - 164px); margin-left: 0; }
  .toolbar-products > .primary, .toolbar-products > .secondary { min-width: 134px; }
  .two-panels { grid-template-columns: 1fr; }
}
.translation-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:9px}.translation-heading label{margin:0}.translation-button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 13px;border:1px solid #bcdfe5;background:#edf8fa;border-radius:8px;color:var(--teal-dark);font-size:.85rem;white-space:nowrap}.translation-button:hover{background:#def1f5}.translation-hint{margin-bottom:10px}.translation-status{color:#487b89;font-size:.85rem;line-height:1.7;margin-bottom:10px;overflow-wrap:anywhere}.translation-status:empty{display:none}@media(max-width:800px){.translation-heading{flex-wrap:wrap}.translation-button{min-height:44px}}
.enquiry-top>div{min-width:0}.enquiry-top .hint,.enquiry-detail{overflow-wrap:anywhere}.enquiry-lines hr{border:0;border-top:1px solid #e5e9ee;margin:16px 0}
