@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans/open-sans-400.bd422c3b1325.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans/open-sans-500.900356315efe.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans/open-sans-600.213f4205990b.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }

:root {
  --navy: #002060;
  --blue: #0070c0;
  --blue-hover: #2139a7;
  --orange: #f08217;
  --ink: #3e3e3e;
  --muted: #666;
  --line: #d2d2d2;
  --page: #f5f5f5;
  --footer: #dbdddf;
  --white: #fff;
  --danger: #b42318;
  --content-width: 1200px;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; color: var(--ink); font-family: "Open Sans", Arial, sans-serif; font-size: 12px; line-height: 1.4; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f0a64a; outline-offset: 2px; }
h1 { color: var(--navy); font-size: 21px; font-weight: 500; line-height: 1.25; margin: 15px 0; }
h2 { color: #1c497c; font-size: 16px; font-weight: 500; margin: 17px 0 8px; }
h3 { color: var(--navy); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { background: var(--white); }
.staff-site-header { display: flex; align-items: center; gap: 18px; min-height: 76px; padding: 8px max(20px, calc((100% - var(--content-width)) / 2)); border-bottom: 5px solid var(--navy); background: #fff; color: var(--navy); font-size: 17px; font-weight: 600; }
.staff-site-header img { display: block; width: 145px; max-height: 58px; object-fit: contain; }
.header-inner { width: min(var(--content-width), calc(100% - 32px)); min-height: 90px; margin: auto; display: grid; grid-template-columns: 155px minmax(280px, 650px) minmax(35px, 1fr) auto 78px; align-items: center; gap: 18px; }
.brand img { display: block; width: 150px; max-height: 76px; object-fit: contain; }
.utility-nav { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; }
.utility-nav a, .utility-nav .link-button { min-height: 0; color: #535353; padding: 1px 7px; border-right: 1px solid var(--line); font-size: 11px; white-space: nowrap; }
.utility-nav > :last-child { border-right: 0; }
.utility-nav form { display: inline; }
.link-button { background: none; border: 0; font: inherit; cursor: pointer; }
.header-account { grid-column: 4; }
.header-greeting { color: #555; font-size: 10px; white-space: nowrap; }
.utility-nav a, .utility-nav .link-button { font-weight: 600; }
.header-search-tools { grid-column: 2 / 4; display: grid; grid-template-columns: minmax(240px, 1fr) auto; align-items: center; gap: 10px; }
.site-search { height: 36px; margin: 0; padding: 2px; border: 1px solid var(--blue); border-radius: 3px; display: flex; background: var(--blue); }
.site-search input { min-width: 0; min-height: 30px !important; flex: 1; border: 0 !important; padding: 5px 10px !important; font-size: 13px !important; }
.site-search button { display: grid; width: 44px; min-height: 30px; place-items: center; padding: 0; border: 0; background: var(--blue); color: var(--white); cursor: pointer; }
.site-search button svg { width: 19px; height: 19px; fill: currentColor; }
.structure-search-link { min-height: 36px; padding: 8px 12px; border: 1px solid var(--blue); border-radius: 3px; color: var(--blue); font-size: 12px; font-weight: 500; white-space: nowrap; text-align: center; }
.structure-search-link:hover { background: #eef7fd; text-decoration: none; }
.header-cart { position: relative; grid-column: 5; display: grid; grid-template-columns: 30px auto; align-items: end; color: #666; font-size: 11px; }
.header-cart:hover { color: #444; text-decoration: none; }
.header-cart svg { width: 30px; height: 27px; grid-row: 1; }
.header-cart strong { padding-bottom: 2px; color: #666; }
.header-cart-count { position: absolute; top: -8px; left: 7px; width: 20px; color: var(--blue); font-size: 17px; font-weight: 600; line-height: 20px; text-align: center; }
.primary-nav { background: var(--navy); }
.primary-nav-inner { width: min(var(--content-width), 100%); min-height: 36px; margin: auto; display: flex; justify-content: space-around; }
.primary-nav a, .primary-nav button { min-height: 36px; padding: 8px 20px; border: 0; border-radius: 0; background: transparent; color: var(--white); font-size: 12px; font-weight: 400; line-height: 20px; text-align: center; }
.primary-nav a:hover, .primary-nav button:hover { background: var(--blue-hover); text-decoration: none; }

.page-band { min-height: 440px; padding: 0 0 24px; background: var(--page); overflow: hidden; }
.page-content, .messages { width: min(var(--content-width), calc(100% - 40px)); margin-left: auto; margin-right: auto; }
.page-content { margin-top: 0; padding: 14px 42px 30px; background: var(--white); }
.home-video-hero { margin: 0; padding: 30px 34px; background: #fff; }
.home-video-hero video { display: block; width: min(1050px, 100%); max-height: 650px; margin: 0 auto; border: 1px solid #c7d1d9; background: #071a2b; object-fit: contain; }
.home-contact { width: min(1050px, 100%); display: flex; gap: 18px; margin: 12px auto 0; color: var(--navy); font-size: 12px; }
.home-contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); }
.home-introduction { width: min(1050px, 100%); margin: 28px auto 0; text-align: center; }
.home-introduction p { max-width: 720px; margin: 0 auto 10px; }
.home-introduction strong { color: var(--navy); font-size: 16px; }
.home-introduction .home-summary { font-size: 16px; line-height: 1.6; }
.home-introduction .button { margin-top: 8px; }
.home-services { width: min(1050px, 100%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; margin: 28px auto 4px; }
.home-service-card { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-width: 0; min-height: 132px; padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--blue); background: var(--white); color: #333; text-align: left; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.home-service-card strong { display: block; margin-bottom: 9px; color: var(--navy); font-size: 17px; }
.home-service-card span { display: block; line-height: 1.55; }
.home-service-quotation { border-color: #a9d8b3; border-top-color: #47975a; background: #eff9f1; }
.home-service-quotation { grid-column: span 1; min-height: 125px; }
.home-service-card { padding: 16px; }
.home-service-quotation span + span { margin-top: 7px; }
.home-service-analysis { grid-column: span 1; }
.home-service-analysis { border-color: #a9cce7; border-top-color: #347eaf; background: #eff7fc; }
.home-service-card:hover { transform: translateY(-3px); border-color: var(--navy); box-shadow: 0 5px 14px rgb(0 32 96 / 12%); text-decoration: none; }
.home-service-card:focus-visible { outline: 3px solid #f0a000; outline-offset: 3px; border-color: var(--navy); transform: translateY(-2px); }
.contact-icon { width: 17px; height: 17px; flex: 0 0 17px; fill: currentColor; }
.breadcrumbs { color: var(--muted); padding: 6px 0 10px; border-bottom: 1px solid #eee; font-size: 11px; }
.messages { list-style: none; padding: 12px 20px; background: #e9f5ff; border-left: 4px solid var(--blue); }
.messages li + li { margin-top: 5px; }

button, .button, input[type="submit"] { display: inline-block; min-height: 32px; border: 0; border-radius: 2px; padding: 6px 15px; background: var(--blue); color: var(--white); font: inherit; font-weight: 500; cursor: pointer; }
button:hover, .button:hover, input[type="submit"]:hover { background: var(--blue-hover); text-decoration: none; }
.button-secondary { background: var(--orange); }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), select, textarea { max-width: 100%; min-height: 32px; border: 1px solid var(--line); padding: 5px 8px; background: var(--white); font: inherit; }
textarea { min-height: 110px; }
label { font-weight: 500; }
form p { margin: 10px 0; }
form p > label:first-child { display: block; margin-bottom: 4px; }
.errorlist, [role="alert"] { color: var(--danger); font-weight: bold; }
.helptext { display: block; max-width: 680px; color: var(--muted); font-size: 13px; }
fieldset { margin: 20px 0; padding: 18px; border: 1px solid var(--line); }
legend { color: var(--navy); font-weight: bold; font-size: 17px; padding: 0 8px; }

.structure-search-heading p { margin: -7px 0 16px; color: var(--muted); font-size: 13px; }
.structure-search-page form { margin-top: 12px; }
.structure-search-modes { display: flex; align-items: center; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.structure-search-modes legend { float: left; width: auto; margin-right: 4px; padding: 0; font-size: 12px; font-weight: 600; }
.structure-search-modes legend + * { clear: none; }
.structure-search-modes label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.ketcher-frame-shell { position: relative; height: 470px; border: 1px solid #b8c5d0; background: #fff; }
.ketcher-frame-shell iframe { display: block; width: 100%; height: 100%; border: 0; }
.ketcher-status { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; background: #fff; color: var(--muted); font-size: 14px; }
.ketcher-status.is-ready { display: none; }
.structure-search-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 12px; }
.structure-search-buttons { display: flex; gap: 14px; }
.button-outline { border: 1px solid var(--blue); background: #fff; color: var(--blue); }
.button-outline:hover { background: #eef7fd; }
.structure-search-errors .errorlist { margin: 0 0 12px; padding: 9px 12px 9px 30px; border-left: 3px solid var(--danger); background: #fff2f0; }
.structure-search-results { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 4px; }
.structure-search-results h2 { margin-bottom: 4px; }
.structure-result-count { margin: 0 0 12px; color: var(--muted); }
.structure-no-results { padding: 18px; border-left: 4px solid var(--blue); background: #eef7fd; }
.structure-no-results p { margin-top: 0; }

dl { display: grid; grid-template-columns: minmax(130px, 190px) 1fr; gap: 7px 18px; }
dt { font-weight: bold; }
dd { margin: 0; }
address { font-style: normal; }
article { padding: 18px 0; border-bottom: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 9px; border-bottom: 1px solid var(--line); text-align: left; }
th { border-top: 2px solid var(--ink); color: var(--ink); }

.catalog-search { display: flex; align-items: end; gap: 8px; margin-bottom: 18px; }
.catalog-search label { align-self: center; }
.catalog-search input { flex: 1; }
.product-result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; align-items: stretch; }
.product-result-link { display: block; min-width: 0; color: inherit; }
.product-result-link:hover { text-decoration: none; }
.product-card { height: 100%; min-height: 250px; display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-top: 3px solid var(--blue); background: var(--white); transition: border-color .15s, box-shadow .15s; }
.product-result-link:hover .product-card { border-color: var(--blue); box-shadow: 0 2px 8px rgb(0 32 96 / 16%); }
.product-card-structure { height: 150px; display: grid; place-items: center; padding: 6px; border-bottom: 1px solid #e7e7e7; color: var(--muted); font-size: 10px; text-align: center; }
.product-card-structure img { width: 100%; height: 138px; object-fit: contain; }
.product-card-information { min-width: 0; padding: 9px 11px 11px; font-size: 10px; line-height: 1.35; }
.product-card-information .catalog-number { margin: 0 0 3px; color: var(--blue); font-size: 10px; font-weight: 600; }
.product-card-information h3 { margin: 0 0 7px; font-size: 13px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.product-card-information p { margin: 2px 0; overflow-wrap: anywhere; }
.product-heading { display: grid; grid-template-columns: 1fr 360px; gap: 35px; align-items: center; }
.catalog-number { margin-top: 25px; }
.structure-image { width: 320px; height: 220px; object-fit: contain; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.package-table { min-width: 760px; }
.package-table th:last-child, .package-table td:last-child { width: 150px; text-align: center; }
.package-table th:nth-last-child(2), .package-table td:nth-last-child(2) { width: 100px; text-align: center; }
.package-table input[type="number"] { width: 75px; text-align: center; }
.package-table .button, .package-table button { width: 130px; padding-left: 8px; padding-right: 8px; }

.legacy-product-heading { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: end; padding: 18px 14px 26px; }
.legacy-product-copy .catalog-number { margin: 0 0 2px; color: var(--ink); font-size: 14px; }
.legacy-product-copy h1 { margin: 0 0 24px; color: var(--ink); font-size: 26px; }
.chemistry-facts { grid-template-columns: max-content minmax(100px, 1fr) max-content minmax(100px, 1fr); gap: 12px 10px; padding: 22px; background: #f5f5f5; font-size: 13px; }
.chemistry-facts dt { font-weight: normal; }
.chemistry-facts dd { color: var(--blue); }
.chemistry-facts .smiles-value { overflow-wrap: anywhere; }
.structure-panel { min-height: 190px; display: grid; place-items: center; border: 1px solid #ddd; background: var(--white); }
.structure-panel .structure-image { width: 240px; height: 190px; }
.product-tabs { height: 48px; margin: 0 -10px 10px; border-bottom: 1px solid #eee; background: #f3f3f3; }
.product-tabs h2 { display: inline-block; height: 48px; margin: 0 0 -1px 24px; padding: 14px 25px 10px; border-top: 3px solid var(--blue); border-bottom: 1px solid var(--white); background: var(--white); color: var(--blue); font-size: 13px; font-weight: normal; }
.purchase-panel { padding: 0 10px 22px; }
.purchase-panel .package-table { min-width: 650px; }
.purchase-panel .package-table th { border-top: 0; border-bottom: 2px solid #8b8b8b; font-weight: normal; }
.purchase-panel .package-table th,
.purchase-panel .package-table td { padding: 9px 14px; }
.purchase-panel .package-table input[type="number"] { width: 72px; min-height: 28px; padding: 3px 6px; }
.purchase-actions { display: flex; justify-content: space-between; gap: 24px; padding: 22px 28px 0; border-top: 1px solid var(--line); }
.purchase-actions .button, .purchase-actions button { width: 160px; min-height: 42px; text-align: center; }
.purchase-actions .button, .purchase-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.button-icon { width: 16px; height: 16px; flex: 0 0 16px; fill: currentColor; }
.inquiry-button { background: #e8e8e8; color: #3e3e3e; border: 1px solid #d3d3d3; }
.inquiry-button:hover { background: #d9d9d9; color: #222; }
.purchase-help { margin: 12px 28px 0; text-align: left; color: var(--muted); }
.quote-dialog { width: min(440px, calc(100% - 32px)); padding: 24px; border: 1px solid var(--line); border-top: 4px solid var(--blue); box-shadow: 0 8px 28px rgb(0 0 0 / 25%); }
.quote-dialog::backdrop { background: rgb(0 0 0 / 42%); }
.quote-dialog h2 { margin-top: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.dialog-cancel { background: #747474; }
.product-help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 20px; padding: 26px 20px 12px; border-top: 1px solid var(--line); }
.product-help-grid h2 { margin-top: 0; font-size: 18px; }

.page-content > nav[aria-label="Account navigation"] { display: flex; flex-wrap: wrap; gap: 2px; margin: -18px -50px 22px; padding: 0 50px; border-bottom: 2px solid var(--line); }
.page-content > nav[aria-label="Account navigation"] a { padding: 11px 15px; color: #575757; }
.page-content > nav[aria-label="Account navigation"] a:hover { color: var(--blue); text-decoration: none; border-bottom: 2px solid var(--blue); margin-bottom: -2px; }

.checkout-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.checkout-heading h1 { margin: 4px 0 18px; }
.checkout-step { margin: 0; color: var(--muted); font-size: 13px; }
.checkout-heading > a { margin-bottom: 20px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 30px; align-items: start; margin-top: 22px; }
.checkout-section { margin-bottom: 24px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); overflow: hidden; }
.checkout-section-title { display: flex; align-items: center; gap: 11px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: #f2f7fc; }
.checkout-section-title > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: bold; }
.checkout-section-title h2 { margin: 0; color: var(--navy); font-size: 18px; }
.checkout-step-layout { max-width: 850px; margin: 22px 0; }
.checkout-address-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px; }
.checkout-address-list > button { justify-self: start; }
.same-address-action { padding: 0 18px 12px; }
.checkout-add-link { margin: 0; padding: 0 18px 18px; }
.checkout-address-confirm { padding: 0 18px 18px; }
.checkout-address-confirm button { width: auto; min-width: 0; min-height: 32px; padding: 6px 16px; font-size: 13px; }
.checkout-choice-page { max-width: 820px; margin-top: 22px; }
.checkout-choice-form { display: grid; gap: 0; padding: 10px 18px 18px; }
.checkout-choice-form > button { justify-self: start; width: auto; min-width: 105px; margin-top: 14px; }
.checkout-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 0; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.checkout-option span { display: flex; flex-direction: column; gap: 2px; }
.checkout-option small { color: var(--muted); font-weight: 400; }
.carrier-account-options { margin: 6px 0 12px 30px; color: var(--muted); font-size: 12px; }
.carrier-account-options label { display: block; margin: 5px 0; }
.checkout-po-field { max-width: 420px; padding: 12px 4px; }
.checkout-po-field input { width: 100%; }
.checkout-review-section { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; padding: 15px 18px; border: 1px solid var(--line); background: #fff; }
.checkout-review-section h2 { margin: 0 0 7px; font-size: 15px; }
.checkout-review-section p { margin: 0; font-size: 12px; }
.review-inline-options ul { margin: 5px 0; padding: 0; list-style: none; }
.review-inline-options li { display: inline-block; margin-right: 18px; }
.review-inline-options input[type="text"] { display: block; max-width: 340px; margin-top: 4px; }
.address-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px; }
.address-card { display: flex; gap: 10px; min-height: 112px; padding: 14px; border: 1px solid var(--line); border-radius: 5px; font-weight: normal; cursor: pointer; }
.address-card:has(input:checked) { border: 2px solid var(--blue); padding: 13px; background: #f2f9ff; box-shadow: 0 0 0 1px rgb(0 112 192 / 10%); }
.address-card input { margin-top: 4px; accent-color: var(--blue); }
.address-card small, .same-address-option small { color: var(--muted); font-weight: normal; }
.address-card-new { align-items: center; }
.same-address-option { display: flex; align-items: start; gap: 10px; margin: 18px; padding: 14px; border: 1px solid #9fc8e7; border-radius: 5px; background: #eef8ff; font-weight: normal; }
.same-address-option input { margin-top: 4px; accent-color: var(--blue); }
.new-address-panel { margin: 0 18px 18px; border: 1px solid #9b9b9b; border-radius: 6px; overflow: hidden; }
.address-panel-heading { padding: 12px 18px; border-bottom: 1px solid var(--line); background: #eef1f3; }
.address-panel-heading h3 { margin: 0; font-size: 17px; }
.address-form-grid { display: grid; grid-template-columns: 1.25fr 1fr .75fr; gap: 0 12px; padding: 4px 18px 14px; }
.address-form-grid p { min-width: 0; margin: 10px 0 0; }
.address-form-grid input { width: 100%; }
.address-form-grid .form-wide { grid-column: 1 / -1; }
.address-form-grid label { display: block; margin-bottom: 4px; }
.address-form-grid .errorlist { margin: 4px 0; padding-left: 18px; }
.field-hint { display: block; margin-top: 3px; color: var(--muted); }
.country-inquiry-notice { display: block; margin-top: 6px; color: #8a4b08; font-size: 13px; }
.order-summary { position: sticky; top: 18px; padding: 20px; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 4px; background: #f8fafc; }
.order-summary h2 { margin: 0 0 16px; color: var(--navy); }
.order-summary dl { grid-template-columns: 1fr auto; }
.order-summary dd { text-align: right; }
.order-summary .order-total { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--navy); font-size: 17px; }
.place-order-button { width: 100%; margin-top: 20px; }
.summary-note { color: var(--muted); font-size: 12px; text-align: center; }
.checkout-review-section .summary-note { margin: 8px 0 0; text-align: left; }
.rd-purpose-confirmation { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 5px; font-size: 11px; line-height: 1.3; }
.rd-purpose-confirmation input { margin-top: 2px; flex: 0 0 auto; }
.rd-purpose-confirmation + .place-order-button { margin-top: 3px; }
.payment-method-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; padding: 14px 18px; }
.payment-method-option { display: flex; align-items: start; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 4px; font-weight: 400; cursor: pointer; }
.payment-method-option:has(input:checked) { border-color: var(--blue); background: #f2f9ff; }
.payment-method-option input { margin-top: 3px; accent-color: var(--blue); }
.payment-method-option small { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; }
.purchase-order-field { grid-column: 1 / -1; padding-top: 2px; }
.purchase-order-field label { display: block; margin-bottom: 3px; }
.purchase-order-field input { width: min(330px, 100%); }

/* Compact commerce layouts: dense, scannable panels inspired by marketplace order flows. */
.commerce-page { font-size: 12px; }
.commerce-page .breadcrumbs { border: 0; }
.commerce-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.commerce-page-heading h1 { margin: 5px 0 10px; color: #252525; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 22px; align-items: start; }
.cart-items { border-top: 1px solid var(--line); }
.cart-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.cart-row h2 { margin: 0 0 3px; color: #252525; font-size: 14px; }
.cart-meta { margin: 2px 0; color: var(--muted); }
.cart-price { grid-column: 2; grid-row: 1; margin: 0; color: #252525; font-weight: 500; text-align: right; }
.cart-row-actions { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.cart-row-actions form { display: flex; align-items: center; gap: 6px; margin: 0; }
.cart-row-actions input { width: 58px; min-height: 29px !important; }
.cart-row-actions button { min-height: 29px; padding: 4px 10px; font-size: 11px; }
.text-action { min-height: 0 !important; padding: 0 0 0 9px !important; border-left: 1px solid var(--line) !important; background: transparent !important; color: var(--blue) !important; font-weight: 400 !important; }
.cart-summary { padding: 15px; border: 1px solid var(--line); border-top: 3px solid var(--blue); background: #f7f8f9; }
.cart-summary h2 { margin: 0 0 13px; color: #252525; font-size: 15px; }
.cart-total { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 13px; font-size: 13px; }
.cart-summary .button { width: 100%; text-align: center; }
.cart-summary form { margin-top: 10px; text-align: center; }
.cart-summary .clear-cart { min-height: 0; padding: 0; background: transparent; color: var(--muted); font-weight: 400; }
.empty-commerce { padding: 30px 0; text-align: center; }

.order-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 275px; gap: 22px; align-items: start; }
.order-status-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 14px; border: 1px solid var(--line); background: var(--line); }
.order-status-strip > div { padding: 9px 12px; background: #f3f5f6; }
.order-status-strip span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .03em; }
.order-panel { margin-bottom: 14px; border: 1px solid var(--line); }
.order-panel h2 { margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #edf2f5; color: #253d50; font-size: 13px; }
.order-product-list { list-style: none; margin: 0; padding: 0 12px; }
.order-product-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 15px; padding: 10px 0; border-bottom: 1px solid #e5e5e5; }
.order-product-list li:last-child { border-bottom: 0; }
.order-product-list small { color: var(--muted); }
.order-line-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 500; }
.order-addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.order-addresses .order-panel { margin: 0; }
.order-panel address, .order-panel-body { padding: 10px 12px; }
.order-question-form { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 12px; }
.order-question-form label { margin: 0; }
.order-question-form textarea { margin: 0; }
.order-question-form button { align-self: flex-start; margin-top: 4px; }
.order-question-note { margin: 0; padding: 0 12px 16px; color: var(--muted); }
.order-detail-summary { padding: 14px; border: 1px solid var(--line); border-top: 3px solid var(--blue); background: #f7f8f9; }
.order-detail-summary h2 { margin: 0 0 11px; color: #252525; font-size: 15px; }
.order-detail-summary dl { grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; }
.order-detail-summary dd { text-align: right; }
.order-detail-summary .summary-total { padding-top: 8px; border-top: 1px solid var(--line); color: var(--navy); font-size: 14px; font-weight: 600; }
.payment-panel { margin-top: 14px; padding: 12px; border: 1px solid #a9c7dd; background: #eef7fd; }
.payment-panel p { margin: 0 0 8px; }
.payment-panel button { width: 100%; }

.account-hub { margin: 0 0 26px; border: 1px solid #b9d4e8; border-top: 4px solid var(--blue); background: #edf7ff; }
.account-welcome { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 16px; }
.account-avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 17px; font-weight: bold; }
.account-profile-link { margin-left: auto; padding: 7px 14px; border: 1px solid #a7c9e0; background: var(--white); }
.account-profile-link.active { border-color: var(--blue); color: var(--navy); font-weight: bold; }
.account-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; padding: 0 15px 12px; }
.account-tabs a { padding: 8px 15px; border: 1px solid transparent; background: #dcebf6; color: #274b68; }
.account-tabs a:hover, .account-tabs a.active { border-color: var(--blue); background: var(--white); color: var(--blue); text-decoration: none; }
.profile-details { border-top: 1px solid var(--line); }
.profile-details > div { display: grid; grid-template-columns: 180px minmax(0, 1fr) 170px; gap: 18px; align-items: center; min-height: 60px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.profile-details > div > span { color: var(--muted); }
.profile-details > div > a { justify-self: start; font-weight: bold; }
.address-bank-section { scroll-margin-top: 18px; margin: 30px 0 42px; }
.address-bank-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 12px; border-bottom: 2px solid var(--blue); }
.address-bank-heading h2 { margin: 0 0 10px; color: var(--navy); }
.address-bank-heading .button { margin-bottom: 10px; }
.section-kicker { margin: 0; color: var(--blue); font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: .06em; }
.account-address-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.account-address-card { display: flex; justify-content: space-between; gap: 20px; min-height: 190px; padding: 18px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 4px; }
.account-address-card h3 { margin: 0 0 12px; }
.account-address-card address { color: #4f4f4f; }
.default-badge { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 10px; background: #dceeff; color: var(--blue); font-size: 11px; vertical-align: middle; }
.address-card-actions { display: flex; align-items: start; gap: 10px; white-space: nowrap; }
.address-card-actions a + a { padding-left: 10px; border-left: 1px solid var(--line); }
.empty-address-bank { grid-column: 1 / -1; margin: 0; padding: 28px; border: 1px dashed #a7bfd0; background: #f8fbfd; color: var(--muted); text-align: center; }
.account-address-editor { width: min(720px, 100%); margin: 0 auto; border: 1px solid #9b9b9b; border-radius: 6px; overflow: hidden; }
.account-address-editor .address-panel-heading { border-top: 4px solid var(--blue); }
.account-address-editor .address-panel-heading h2 { margin: 0; color: var(--navy); }
.account-address-editor select { width: 100%; }
.default-address-option { display: flex !important; align-items: center; gap: 8px; margin-top: 15px; font-weight: normal; }
.default-address-option input { width: auto; accent-color: var(--blue); }
.address-editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: 22px; padding: 16px 18px; border-top: 1px solid var(--line); background: #f7f9fa; }
.account-simple-form { width: min(620px, 100%); padding: 20px; border: 1px solid var(--line); border-top: 4px solid var(--blue); }
.account-simple-form input { width: 100%; }

/* Compact account center: follows the supplied account reference with Aldlab colors. */
.compact-account-page { font-size: 12px; line-height: 1.35; }
.compact-account-page > h1 { margin: 10px 0 20px; color: #252525; font-size: 21px; }
.compact-account-page .breadcrumbs { padding: 0 0 8px; border: 0; font-size: 12px; }
.compact-account-page .account-hub { margin-bottom: 20px; border: 0; border-top: 3px solid var(--blue); background: #e8eef3; }
.compact-account-page .account-welcome { min-height: 54px; padding: 8px 14px; }
.compact-account-page .account-avatar { width: 32px; height: 32px; background: var(--navy); font-size: 14px; }
.compact-account-page .account-profile-link { padding: 6px 14px; border: 1px solid #afbdc8; background: #d4dee6; color: #253c4f; font-size: 12px; }
.compact-account-page .account-profile-link.active { border-color: var(--blue); background: var(--white); color: var(--blue); }
.compact-account-page .account-tabs { gap: 12px; padding: 0 14px 11px; }
.compact-account-page .account-tabs a { padding: 7px 14px; border-color: #c1ccd5; background: #d4dee6; color: #263d50; font-size: 12px; }
.compact-account-page .account-tabs a:hover,
.compact-account-page .account-tabs a.active { border-color: var(--blue); background: var(--white); color: var(--blue); }
.compact-account-page .profile-details > div { grid-template-columns: 180px minmax(0, 1fr) 180px; min-height: 54px; padding: 9px 0; }
.compact-account-page .profile-details strong { font-weight: normal; color: #222; }
.compact-account-page .profile-details a { font-size: 12px; }
.reference-address-section > h2, .account-table-title { margin: 0 0 10px; color: #252525; font-size: 14px; }
.reference-address-list { border-top: 1px solid var(--line); }
.reference-address-row { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 9px 28px; min-height: 92px; padding: 13px 3px; border-bottom: 1px solid var(--line); }
.reference-address-row > div { min-width: 0; }
.reference-address-row span { color: #777; }
.reference-address-row strong { color: #252525; font-weight: normal; }
.reference-address-actions { grid-column: 3; grid-row: 1 / span 2; display: flex; align-items: start; justify-content: flex-end; gap: 15px; }
.reference-address-actions a { font-weight: 500; }
.compact-account-page .default-badge { border-radius: 2px; background: #cfe7f8; color: var(--navy); }
.centered-account-action { margin: 18px 0 0; text-align: center; }
.centered-account-action .button { min-width: 220px; padding: 7px 20px; border-radius: 18px; }
.account-data-table { min-width: 760px; border: 1px solid var(--line); font-size: 12px; }
.account-data-table th { padding: 10px; border-top: 0; background: #e7e9eb; color: #6b6b6b; font-weight: normal; }
.account-data-table td { height: 54px; padding: 10px; }
.account-data-table td a { font-weight: 500; }
.inquiry-summary-table { min-width: 900px; }
.inquiry-summary-table th:nth-child(1) { width: 145px; }
.inquiry-summary-table th:nth-child(3) { width: 120px; }
.inquiry-summary-table th:nth-child(4) { width: 110px; }
.inquiry-details-line { white-space: nowrap; }
.account-pagination { display: flex; justify-content: center; gap: 16px; margin: 22px 0; }
.account-address-editor { font-size: 13px; }
.account-address-editor .address-panel-heading h2 { font-size: 17px; }
.account-address-editor .address-form-grid { gap: 0 10px; }
.account-address-editor input,
.account-address-editor select { min-height: 32px; padding: 5px 8px; font-size: 13px; }
.account-address-editor button { min-height: 34px; padding: 7px 18px; }
.address-action-link { min-height: 0; padding: 0; background: transparent; color: var(--blue); font-size: 12px; }
.address-action-link:hover { background: transparent; color: var(--blue-hover); text-decoration: underline; }
.centered-account-action > button { min-width: 220px; min-height: 32px; padding: 6px 20px; border-radius: 18px; font-size: 12px; }

.address-dialog { width: min(650px, calc(100% - 24px)); max-height: calc(100vh - 30px); padding: 0; border: 1px solid #8799a7; border-radius: 7px; box-shadow: 0 12px 38px rgb(0 0 0 / 28%); font-size: 12px; }
.checkout-address-dialog { width: min(520px, calc(100% - 24px)); }
.address-dialog-heading { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 14px 20px; border-bottom: 1px solid #bcc9d2; background: #e4ebf0; }
.checkout-address-dialog .address-form-grid { grid-template-columns: 1fr 1fr; padding: 8px 20px 18px; }
.address-dialog-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 13px 20px; border-top: 1px solid #ccd4da; background: #f5f7f8; }
.address-dialog-actions .secondary { grid-column: 1; justify-self: start; background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.address-dialog-actions button[type="submit"] { grid-column: 2; justify-self: center; white-space: nowrap; }
.address-dialog::backdrop, .message-dialog::backdrop, .inquiry-dialog::backdrop { background: rgb(15 32 48 / 48%); }
.address-dialog > form > header { display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; border-bottom: 1px solid #bcc9d2; background: #e4ebf0; }
.address-dialog h2 { margin: 0; color: #223e55; font-size: 16px; }
.dialog-close { min-width: 28px; min-height: 28px; padding: 0; background: transparent; color: #263b4c; font-size: 22px; line-height: 1; }
.dialog-close:hover { background: #d0dbe3; }
.compact-address-grid { display: grid; grid-template-columns: 1.25fr 1fr .75fr; gap: 0 9px; max-height: calc(100vh - 150px); padding: 4px 15px 13px; overflow-y: auto; }
.compact-address-grid p { min-width: 0; margin: 7px 0 0; }
.compact-address-grid .form-wide { grid-column: 1 / -1; }
.compact-address-grid label { display: block; margin-bottom: 2px; font-size: 12px; }
.compact-address-grid input:not([type="checkbox"]), .compact-address-grid select { width: 100%; min-height: 30px; padding: 4px 7px; font-size: 12px; }
.compact-address-grid .default-address-option { display: flex; margin: 9px 0 1px; }
.address-dialog footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 10px 15px; border-top: 1px solid #ccd4da; background: #f5f7f8; }
.address-dialog footer > a { margin-right: auto; }
.address-dialog footer button { min-height: 31px; padding: 5px 14px; font-size: 12px; }
.dialog-cancel { background: #667986; }

.message-launcher { position: fixed; z-index: 30; right: 22px; bottom: 22px; display: grid; width: 50px; height: 50px; min-height: 0; place-items: center; padding: 0; border-radius: 50%; box-shadow: 0 4px 14px rgb(0 32 96 / 28%); }
.message-launcher svg { width: 24px; height: 24px; fill: currentColor; }
.message-dialog { width: min(380px, calc(100% - 24px)); padding: 0; border: 1px solid #7892a5; border-radius: 9px; box-shadow: 0 12px 38px rgb(0 0 0 / 30%); font-size: 12px; }
.message-dialog-header { display: flex; align-items: center; gap: 11px; padding: 14px; background: var(--navy); color: var(--white); }
.message-dialog-header > svg { width: 32px; height: 32px; flex: 0 0 32px; fill: currentColor; }
.message-dialog-header h2 { margin: 0; color: var(--white); font-size: 16px; }
.message-dialog-header p { margin: 2px 0 0; color: #d9e5ee; }
.message-dialog-header .dialog-close { margin-left: auto; color: var(--white); }
.message-dialog-header .dialog-close:hover { background: rgb(255 255 255 / 15%); }
.message-dialog-body { display: flex; flex-direction: column; gap: 5px; padding: 15px; }
.message-dialog-body label { margin-top: 4px; font-size: 12px; }
.message-dialog-body input, .message-dialog-body textarea { width: 100%; font-size: 12px; }
.message-dialog-body textarea { min-height: 125px; resize: vertical; }
.message-dialog-body button { align-self: flex-end; min-height: 32px; margin-top: 7px; padding: 6px 16px; font-size: 12px; }
.message-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; }

.inquiry-dialog { width: min(500px, calc(100% - 24px)); max-height: calc(100vh - 30px); padding: 0; border: 1px solid #8799a7; border-radius: 7px; box-shadow: 0 12px 38px rgb(0 0 0 / 28%); font-size: 12px; }
.inquiry-dialog > form > header { display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; border-bottom: 1px solid #bcc9d2; background: #e4ebf0; }
.inquiry-dialog h2 { margin: 0; color: #223e55; font-size: 15px; }
.inquiry-dialog-body { display: grid; gap: 3px; padding: 12px 15px; }
.inquiry-dialog-body label { margin-top: 4px; font-size: 12px; font-weight: 500; }
.required-marker { color: var(--danger); font-weight: 600; }
.inquiry-dialog-body input, .inquiry-dialog-body textarea { width: 100%; min-height: 30px; font-size: 12px; }
.inquiry-dialog-body textarea { min-height: 115px; resize: vertical; }
.inquiry-dialog > form > footer { padding: 9px 15px; border-top: 1px solid #ccd4da; background: #f5f7f8; text-align: right; }
.inquiry-dialog > form > footer button { min-height: 31px; padding: 5px 16px; font-size: 12px; }
.inquiry-fallback-page { width: min(560px, 100%); }
.inquiry-fallback-page .inquiry-form { padding: 15px; border: 1px solid var(--line); border-top: 3px solid var(--blue); }
.inquiry-fallback-page input, .inquiry-fallback-page textarea { width: 100%; }

/* Customer Service uses the established content styles with shared topic navigation. */
.customer-service-page > h1 { margin-bottom: 14px; color: #252525; }
.help-center-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 28px; align-items: start; }
.help-center-nav { position: sticky; top: 16px; border: 1px solid var(--line); border-top: 3px solid var(--blue); background: #f5f7f8; }
.help-center-nav h2 { margin: 0; padding: 10px 13px; border-bottom: 1px solid var(--line); color: #253d50; font-size: 13px; }
.help-center-nav a { position: relative; display: block; padding: 8px 22px 8px 13px; border-bottom: 1px solid #e1e4e6; color: #3f4b54; font-size: 12px; }
.help-center-nav a:last-child { border-bottom: 0; }
.help-center-nav a:hover { background: #edf4f9; color: var(--blue); text-decoration: none; }
.help-center-nav a.active { border-left: 4px solid var(--blue); padding-left: 9px; background: #e4f1fa; color: var(--navy); font-weight: 600; }
.help-center-nav a.active::after { position: absolute; right: 10px; content: "›"; color: var(--blue); font-size: 16px; line-height: 14px; }
.help-center-content { min-width: 0; max-width: 820px; padding: 0 0 12px; border: 0; }
.help-center-content > section { padding: 0 0 12px; border-bottom: 1px solid #e4e4e4; }
.help-center-content > section:first-child h2 { margin-top: 0; }
.help-center-content h2 { margin: 16px 0 5px; color: #253d50; font-size: 14px; }
.help-center-content p { max-width: 760px; margin: 5px 0 9px; }
.help-center-content ul { margin: 7px 0 12px; padding-left: 21px; }
.help-center-content li { margin: 3px 0; }
.contact-detail-list { display: grid; gap: 9px; margin: 8px 0 5px; }
.contact-detail-list > a, .contact-detail-list > div { display: flex; align-items: center; gap: 10px; width: fit-content; color: var(--ink); }
.contact-detail-list .contact-icon { color: var(--blue); }
.contact-detail-list span { display: grid; grid-template-columns: 58px 1fr; gap: 8px; }
.contact-detail-list strong { color: var(--navy); font-weight: 600; }
.help-intro { margin: 0 0 14px !important; font-size: 13px; }
.analytical-service-page { display: grid; gap: 28px; }
.analytical-hero { padding-bottom: 8px; border-bottom: 1px solid #e4e4e4; }
.analytical-hero .analytical-intro-lead { margin-top: 0; }
.analytical-anchor-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; font-size: 13px; }
.analytical-anchor-nav a { color: var(--blue); font-weight: 600; }
.customer-service-page .analytical-method { display: grid !important; grid-template-columns: 135px minmax(0, 1fr) !important; gap: 20px; align-items: center; padding: 8px 0 28px; border-bottom: 1px solid #e4e4e4; scroll-margin-top: 18px; }
.analytical-method figure { display: grid; justify-items: center; gap: 8px; margin: 0; }
.analytical-method img { width: 125px; height: 105px; object-fit: contain; }
.analytical-method h2, .analytical-contact h2 { margin: 0 0 8px; color: #253d50; font-size: 18px; }
.analytical-method h3 { margin: 12px 0 4px; color: #253d50; font-size: 13px; }
.analytical-method p { margin: 0 0 9px; }
.analytical-method ul { margin: 8px 0 0; padding-left: 20px; }
.analytical-method li { margin: 4px 0; }
.analytical-method figcaption { color: var(--muted); font-size: 12px; }
.analytical-contact { padding: 4px 0 8px; }
.help-topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.help-topic-grid a { display: flex; min-height: 78px; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--blue); color: #37434d; }
.help-topic-grid a:hover { border-color: #8fbddd; background: #f7fbfe; text-decoration: none; }
.help-topic-grid strong { color: var(--navy); font-size: 13px; font-weight: 600; }
.help-topic-grid span, .help-note { color: var(--muted); }
.faq-list section { padding: 0 0 9px; border-bottom: 1px solid #e4e4e4; }

.site-footer { background: var(--footer); color: #595959; }
.footer-links { width: min(var(--content-width), calc(100% - 40px)); min-height: 165px; margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 28px 0; }
.footer-links section { display: flex; flex-direction: column; gap: 6px; }
.footer-links h2 { color: #000027; font-size: 14px; margin: 0 0 6px; }
.footer-links a { color: #595959; }
.footer-bottom { min-height: 55px; padding: 19px max(20px, calc((100% - var(--content-width)) / 2)); border-top: 1px solid var(--white); color: #818486; }

.staff-shell { max-width: 1180px; margin: 0 auto; }
.staff-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--dark-blue, #17345f); margin-bottom: 18px; padding-bottom: 10px; }
.staff-heading h1 { margin: 0; }
.staff-heading nav { display: flex; gap: 14px; }
.staff-heading nav form { margin: 0; }
.link-button { margin: 0; padding: 0; border: 0; background: transparent; color: var(--blue); font: inherit; cursor: pointer; }
.staff-auth-card { width: min(440px, 100%); margin: 35px auto; padding: 24px; border: 1px solid #cbd3dd; border-top: 3px solid #285a9f; background: #fff; }
.staff-auth-card h1 { margin-top: 0; font-size: 23px; }
.staff-auth-card label { display: block; color: #344154; font-size: 12px; font-weight: 600; }
.staff-auth-card input { width: 100%; }
.staff-auth-card .errorlist { padding-left: 18px; color: #9b2c2c; }
.staff-auth-card .helptext, .staff-password-guidance { color: #5d6876; font-size: 12px; }
.staff-auth-card .helptext ul { margin: 6px 0 0; padding-left: 18px; }
.staff-filter-bar { display: flex; align-items: end; gap: 10px; margin: 0 0 16px; padding: 13px; border: 1px solid #ccd3dc; background: #f5f7fa; }
.staff-filter-bar label { flex: 1; color: #344154; font-size: 11px; font-weight: 600; }
.staff-filter-bar input, .staff-filter-bar select { width: 100%; margin-top: 4px; }
.staff-filter-bar button { white-space: nowrap; }
.staff-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #ccd3dc; }
.staff-data-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 12px; }
.staff-data-table th { padding: 9px; background: #e8edf3; color: #344154; font-size: 10px; text-align: left; text-transform: uppercase; letter-spacing: .03em; }
.staff-data-table td { padding: 9px; border-top: 1px solid #d8dde4; vertical-align: top; }
.staff-data-table small { display: block; color: #667181; }
.ops-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.ops-detail-layout > div { display: grid; gap: 16px; }
.ops-detail-layout aside { position: sticky; top: 12px; }
.ops-address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.staff-stacked-form label { color: #344154; font-size: 11px; font-weight: 600; }
.staff-stacked-form input, .staff-stacked-form select, .staff-stacked-form textarea { width: 100%; }
.staff-stacked-form .errorlist { padding-left: 18px; color: #9b2c2c; }
.staff-record { margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid #d8dde4; }
.preserve-lines { white-space: pre-line; }
.eyebrow { margin: 0 0 3px; color: #687486; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.ops-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ops-panel { border: 1px solid #ccd3dc; border-radius: 3px; padding: 16px; background: #fff; }
.ops-panel h2 { margin-top: 0; font-size: 16px; }
.quote-page-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.quote-page-header h1 { margin: 0 0 3px; }
.quote-page-header p { margin: 0; color: #687486; }
.quote-status-badge { padding: 5px 11px; border: 1px solid #94a1b1; border-radius: 14px; background: #f3f6f9; font-weight: 600; }
.quote-status-quote_sent, .quote-status-accepted { border-color: #72a883; background: #edf8f0; }
.quote-inquiry-grid, .quote-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.quote-inquiry-grid span, .quote-customer-request > span { display: block; margin-bottom: 3px; color: #687486; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.quote-customer-request { margin-top: 17px; padding-top: 13px; border-top: 1px solid #d9dee5; }
.quote-customer-request p { margin-bottom: 0; }
.quote-fields-grid p { margin: 0; }
.quote-fields-grid label, .quote-accepted-fields label { display: block; margin-bottom: 4px; color: #344154; font-weight: 600; }
.quote-fields-grid input, .quote-fields-grid select, .quote-accepted-fields input, .quote-accepted-fields select { width: 100%; }
.quote-field-wide { grid-column: 1 / -1; }
.quote-next-action { margin: 0 0 16px; padding: 10px; border-left: 4px solid var(--blue); background: #eef6fc; font-weight: 600; }
.quote-action-panel dl { margin-bottom: 18px; }
.quote-accepted-fields { margin: 18px 0; padding-top: 14px; border-top: 1px solid #d9dee5; }
.quote-accepted-fields p { margin-bottom: 10px; }
.quote-action-buttons { display: grid; gap: 9px; margin-top: 16px; }
.quote-action-buttons button { width: 100%; }
.quote-action-buttons small { color: #687486; line-height: 1.4; }
.quote-history { margin: 0; padding: 0; list-style: none; }
.quote-history li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e2e6eb; }
.quote-history time { color: #687486; font-size: 11px; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 10px; margin: 0 0 14px; }
.metric-grid > div { padding: 10px; background: #f1f3f6; border-left: 3px solid #285a9f; }
.metric-grid dt { color: #5d6876; font-size: 11px; }
.metric-grid dd { margin: 3px 0 0; color: #18345e; font-size: 22px; font-weight: 600; }
.large-metric { margin: 0; color: #18345e; font-size: 30px; font-weight: 600; }
.analytics-metrics { margin-bottom: 16px; }
.staff-record-layout, .staff-record-layout > div { display: grid; gap: 16px; }
.staff-order-contact { margin-top: 14px; overflow-wrap: anywhere; }
.staff-order-contact p { margin: 5px 0; }
.staff-export-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.staff-export-dates label { display: block; margin-bottom: 6px; }
.analytics-download-panel button { margin-top: 12px; }
.staff-product-search { max-width: 760px; margin: 18px 0; }
.staff-product-search label, .staff-product-form label, .import-step label { display: block; color: #344154; font-size: 12px; font-weight: 600; }
.staff-product-search > div { display: flex; gap: 8px; margin-top: 5px; }
.staff-product-search input { flex: 1; }
.staff-actions, .staff-form-actions { display: flex; align-items: center; gap: 12px; margin: 14px 0 18px; }
.staff-empty-state { padding: 28px; border: 1px dashed #aeb8c5; color: #5d6876; text-align: center; }
.staff-result-list { display: grid; }
.staff-result-list > a { display: grid; grid-template-columns: 130px minmax(220px, 1fr) 150px 100px; gap: 12px; padding: 10px 4px; border-top: 1px solid #d8dde4; color: inherit; text-decoration: none; }
.staff-result-list > a:hover { background: #f3f6fa; }
.staff-product-form { display: grid; gap: 15px; }
.staff-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.staff-form-grid label input, .staff-form-grid label textarea { width: 100%; margin-top: 4px; }
.staff-form-grid .form-wide { grid-column: 1 / -1; }
.field-label { color: #344154; font-size: 12px; font-weight: 600; }
.form-help { color: #667181; font-size: 12px; }
.package-editor { display: grid; gap: 6px; }
.package-editor-head, .package-editor-row { display: grid; grid-template-columns: 70px 1fr 1fr 1fr; gap: 8px; align-items: center; }
.package-editor-head { color: #5d6876; font-size: 11px; font-weight: 600; }
.publication-setting label { font-weight: 600; }
.step-label { color: #285a9f; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.import-step form { display: grid; max-width: 600px; gap: 10px; }
.staff-preview-table { width: 100%; border-collapse: collapse; }
.staff-preview-table th, .staff-preview-table td { padding: 8px; border-bottom: 1px solid #d8dde4; text-align: left; vertical-align: top; }
.staff-warning { margin: 14px 0; padding: 14px; border-left: 4px solid #9b5b19; background: #fff7ed; }
.staff-notice { margin: 14px 0; padding: 14px; border-left: 4px solid #285a9f; background: #f2f6fb; }
.staff-home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.staff-home-card { display: block; min-height: 150px; padding: 17px; border: 1px solid #cbd3dd; border-top: 3px solid #285a9f; background: #fff; color: inherit; text-decoration: none; }
.staff-home-card:hover { border-color: #285a9f; background: #f7f9fc; }
.staff-home-card h2 { margin: 0 0 8px; font-size: 17px; }
.staff-home-card p { min-height: 42px; color: #5e6978; }
.staff-home-card span { color: #285a9f; font-weight: 600; }
.staff-home-greeting { margin: 6px 0 26px; color: #2f3c4d; font-size: 20px; }
.staff-home-section { margin: 0 0 28px; }
.staff-home-section > header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 7px; border-bottom: 2px solid #344154; }
.staff-home-section > header h2 { margin: 0; color: #344154; font-size: 15px !important; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.staff-home-section > header a { white-space: nowrap; }
.staff-home-section .staff-table-wrap { border: 0; }
.staff-home-table th { background: transparent; border-top: 0; border-bottom: 1px solid #aeb8c5; }
.staff-home-table td { height: 43px; vertical-align: middle; }
.staff-home-table th:nth-child(1) { width: 20%; }
.staff-home-table th:nth-child(2) { width: 34%; }
.staff-home-table th:nth-child(3) { width: 20%; }
.staff-home-empty { color: #687486; }
.staff-activity-list > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; padding: 10px 9px; border-bottom: 1px solid #d8dde4; }
.staff-activity-list time { color: #687486; white-space: nowrap; }
.staff-activity-history > div { grid-template-columns: 190px minmax(0, 1fr); }
.staff-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 18px 0; }
.staff-order-header { margin: 0 0 20px; padding: 18px 20px; border: 1px solid #c7d0da; border-top: 4px solid #285a9f; background: #fff; }
.staff-order-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.staff-order-title h2 { margin: 0 0 4px; color: #243b5a; font-size: 22px; }
.staff-order-title p { margin: 0; color: #687486; }
.staff-order-next { min-width: 260px; padding-left: 16px; border-left: 3px solid #285a9f; }
.staff-order-next span, .staff-order-next strong { display: block; }
.staff-order-next span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.staff-order-next strong { margin-top: 3px; color: #243b5a; }
.staff-order-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 17px 0; }
.staff-order-badges > span { min-width: 145px; padding: 7px 11px; border: 1px solid #c8d1dc; border-radius: 3px; background: #f3f6f9; font-weight: 600; }
.staff-invoice-copy { border-top: 4px solid #285a9f; }
.staff-invoice-heading { display: flex; justify-content: space-between; gap: 20px; }
.staff-invoice-heading h2, .staff-invoice-heading p { margin: 0 0 4px; }
.staff-invoice-heading > p { text-align: right; font-size: 12px; }
.staff-invoice-meta { display: flex; gap: 28px; margin: 16px 0; }
.staff-invoice-meta div { min-width: 110px; }
.staff-invoice-meta dt { color: #687486; font-size: 11px; text-transform: uppercase; }
.staff-invoice-meta dd { margin: 2px 0 0; }
.staff-invoice-totals { display: grid; grid-template-columns: 1fr auto; gap: 5px 18px; max-width: 280px; margin: 14px 0 0 auto; }
.staff-invoice-totals dd { margin: 0; text-align: right; }
.staff-order-badges small { display: block; color: #687486; font-size: 10px; font-weight: 500; text-transform: uppercase; }
.staff-order-badges em { color: #687486; font-size: 11px; font-style: normal; font-weight: 500; }
.staff-order-badges .status-success { border-color: #85b794; background: #eef8f1; }
.staff-order-badges .status-attention { border-color: #d8aa68; background: #fff8e9; }
.staff-order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.staff-order-actions form { margin: 0; }
.staff-order-actions .button { min-height: 32px; }
.button-danger { background: #a83b32; }
.button-muted, .button-muted:hover { background: #e2e5e9; color: #717985; cursor: not-allowed; }
.staff-mailing-address { color: #344154; font-size: 14px; line-height: 1.65; }
.compact-results-panel { max-width: 100%; overflow: hidden; }
.compact-product-result { margin-top: 14px; border: 1px solid #cfd6df; background: #fff; }
.compact-row-scroll { overflow-x: auto; }
.compact-row-grid { display: grid; grid-template-columns: 180px 125px 220px 120px 150px 120px 130px repeat(9, 105px) 120px; min-width: 1985px; gap: 0; }
.compact-row-head { position: sticky; top: 0; z-index: 1; background: #e8edf3; }
.compact-row-head span { padding: 7px 6px; border-right: 1px solid #c8d0da; color: #344154; font-size: 10px; font-weight: 600; }
.compact-edit-row label { margin: 0; }
.compact-edit-row input { width: 100%; height: 36px; padding: 5px 6px; border: 0; border-right: 1px solid #d8dde4; border-radius: 0; font-size: 11px; }
.compact-edit-row input:focus { position: relative; outline: 2px solid #285a9f; z-index: 1; }
.compact-publication, .compact-actions { display: flex; align-items: center; padding: 5px 7px; font-size: 10px; }
.compact-result-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 7px 9px; border-top: 1px solid #cfd6df; background: #f5f7fa; }
.compact-actions { gap: 7px; }
.compact-actions button { padding: 6px 8px; white-space: nowrap; }

/* Staff portal typography is intentionally more readable than the compact storefront. */
.staff-site { font-size: 14px; }
.staff-site h1 { font-size: 24px; }
.staff-site h2, .staff-site .ops-panel h2 { font-size: 18px; }
.staff-site .staff-heading nav { font-size: 14px; }
.staff-site .staff-auth-card label,
.staff-site .staff-product-search label,
.staff-site .staff-product-form label,
.staff-site .import-step label { font-size: 14px; }
.staff-site .staff-auth-card .helptext,
.staff-site .staff-password-guidance,
.staff-site .form-help { font-size: 13px; }
.staff-site .staff-filter-bar label,
.staff-site .staff-stacked-form label,
.staff-site .field-label { font-size: 13px; }
.staff-site .staff-data-table { font-size: 14px; }
.staff-site .staff-data-table th { font-size: 12px; }
.staff-site .eyebrow,
.staff-site .step-label,
.staff-site .metric-grid dt { font-size: 12px; }
.staff-site .staff-home-card h2 { font-size: 19px; }
.staff-site .compact-row-head span { font-size: 12px; }
.staff-site .compact-edit-row input { height: 39px; font-size: 13px; }
.staff-site .compact-publication,
.staff-site .compact-actions { font-size: 12px; }

@media (max-width: 800px) {
  .header-inner { min-height: 0; padding: 10px 0; grid-template-columns: 125px 1fr 70px; gap: 12px; }
  .brand img { width: 120px; max-height: 65px; }
  .header-search-tools { grid-column: 1 / -1; grid-row: 2; }
  .header-account { grid-column: auto; justify-self: end; }
  .header-cart { grid-column: auto; }
  .header-greeting { text-align: right; }
  .primary-nav-inner { flex-wrap: wrap; justify-content: center; }
  .primary-nav a, .primary-nav button { flex: 1 1 30%; border-bottom: 1px solid #284478; }
  .page-content { width: calc(100% - 20px); padding: 15px 18px 30px; }
  .home-video-hero { margin: 0; padding: 14px; }
  .home-video-hero video { max-height: none; }
  .home-services { grid-template-columns: 1fr; }
  .home-service-quotation, .home-service-analysis { grid-column: auto; }
  .home-contact { flex-direction: column; gap: 3px; margin-top: 9px; }
  .page-content > nav[aria-label="Account navigation"] { margin: -15px -18px 18px; padding: 0 10px; }
  .product-heading { grid-template-columns: 1fr; }
  .legacy-product-heading { grid-template-columns: 1fr; }
  .chemistry-facts { grid-template-columns: max-content 1fr; }
  .structure-image { justify-self: center; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-layout, .order-detail-grid { grid-template-columns: 1fr; }
  .order-addresses { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .help-center-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 18px; }
  .account-address-list { grid-template-columns: 1fr; }
  .reference-address-row { grid-template-columns: 1fr 1fr; }
  .reference-address-actions { grid-column: 2; grid-row: 1; }
}

@media (max-width: 620px) {
  .staff-heading { align-items: start; flex-direction: column; }
  .staff-heading nav, .staff-filter-bar { align-items: stretch; flex-direction: column; }
  .ops-grid { grid-template-columns: 1fr; }
  .ops-detail-layout, .ops-address-grid { grid-template-columns: 1fr; }
  .ops-detail-layout aside { position: static; }
  .staff-form-grid, .staff-result-list > a { grid-template-columns: 1fr; }
  .staff-home-grid { grid-template-columns: 1fr; }
  .package-editor-head { display: none; }
  .package-editor-row { grid-template-columns: 35px 1fr; }
  .help-center-layout { grid-template-columns: 1fr; }
  .help-center-nav { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .help-center-nav h2 { grid-column: 1 / -1; }
  .help-center-nav a:nth-last-child(2) { border-bottom: 0; }
  .help-center-nav a.active::after { content: "•"; }
  .help-topic-grid { grid-template-columns: 1fr; }
  .structure-search-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .structure-search-modes { align-self: stretch; justify-content: flex-start; }
  .staff-order-title { flex-direction: column; }
  .staff-order-next { min-width: 0; }
}

@media (max-width: 480px) {
  .header-inner { grid-template-columns: 105px 1fr 62px; }
  .brand img { width: 100px; }
  .header-search-tools { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .structure-search-link { padding-left: 8px; padding-right: 8px; font-size: 10px; }
  .ketcher-frame-shell { height: 420px; }
  .header-greeting { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  .utility-nav a, .utility-nav .link-button { padding-left: 4px; padding-right: 4px; font-size: 10px; }
  .primary-nav a, .primary-nav button { flex-basis: 50%; font-size: 11px; }
  .catalog-search { align-items: stretch; flex-direction: column; }
  .product-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  dl { grid-template-columns: 1fr; gap: 2px; }
  .chemistry-facts { grid-template-columns: 1fr; }
  .purchase-actions { align-items: stretch; flex-direction: column; gap: 10px; padding-left: 0; padding-right: 0; }
  .purchase-actions .button, .purchase-actions button { width: 100%; }
  .purchase-help { margin-left: 0; margin-right: 0; text-align: left; }
  .product-help-grid { grid-template-columns: 1fr; gap: 20px; }
  dd { margin-bottom: 8px; }
  .footer-links { grid-template-columns: 1fr; }
  .checkout-heading { align-items: start; flex-direction: column; }
  .payment-method-options { grid-template-columns: 1fr; }
  .purchase-order-field { grid-column: 1; }
  .commerce-page-heading { align-items: start; flex-direction: column; }
  .cart-row { grid-template-columns: 1fr; }
  .cart-price { grid-column: 1; grid-row: auto; text-align: left; }
  .cart-row-actions { align-items: start; flex-direction: column; }
  .text-action { padding-left: 0 !important; border-left: 0 !important; }
  .order-status-strip { grid-template-columns: 1fr; }
  .checkout-heading > a { margin: -12px 0 16px; }
  .address-choices, .address-form-grid { grid-template-columns: 1fr; }
  .address-form-grid .form-wide { grid-column: auto; }
  .account-welcome { align-items: start; flex-wrap: wrap; }
  .account-profile-link { margin-left: 0; }
  .account-tabs { flex-direction: column; }
  .account-tabs a { text-align: center; }
  .profile-details > div { grid-template-columns: 1fr; gap: 4px; }
  .address-bank-heading { align-items: stretch; flex-direction: column; }
  .address-bank-heading .button { text-align: center; }
  .account-address-card { flex-direction: column; }
  .reference-address-row { grid-template-columns: 1fr; }
  .reference-address-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .compact-address-grid { grid-template-columns: 1fr; }
  .compact-address-grid .form-wide { grid-column: auto; }
  .message-launcher { right: 14px; bottom: 14px; }
}

@media (max-width: 360px) {
  .product-result-grid { grid-template-columns: 1fr; }
}
