:root {
  color-scheme: light;
  --ink: #172f2b;
  --muted: #50615a;
  --deep: #123a37;
  --pine: #20584e;
  --paper: #f5f2ea;
  --white: #fffefa;
  --line: #dedfd4;
  --sage: #e5ede2;
  --amber: #efbf73;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: var(--pine); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #af722c; outline-offset: 3px; }
input:focus-visible, select:focus-visible { outline-offset: 1px; }
h1,h2,h3,h4,p { margin: 0; }
p { line-height: 1.5; }
.wrap { width: min(1280px, calc(100% - 80px)); margin: auto; }
.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: block; width: 212px; flex: none; }
.brand img { display: block; width: 100%; height: auto; }
nav { display: flex; gap: 5px; align-items: center; }
nav button { appearance: none; background: transparent; color: var(--muted); border: 0; border-radius: 7px; min-height: 42px; padding: 8px 15px; font-size: .9rem; font-weight: 650; white-space: nowrap; }
nav button:hover { background: #f3f4eb; }
nav [aria-current] { color: var(--deep); background: var(--sage); }
.count { display: inline-grid; place-items: center; min-width: 1.35em; margin-left: .25em; padding: 0 .25em; border-radius: 20px; background: var(--deep); color: white; font-size: .8em; }
.demo { border: 1px solid #e4d7bd; border-radius: 30px; color: #614620; background: #faf1df; font-weight: 650; padding: 7px 12px; font-size: .82rem; white-space: nowrap; }
.hero { position: relative; isolation: isolate; overflow: hidden; margin-top: 26px; min-height: 294px; background: #123a37; color: #fff9e9; border-radius: 18px; display: flex; align-items: center; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#123a37 10%,#123a37 30%,#123a3788 55%,transparent 85%); }
.hero-copy { padding: 35px clamp(24px, 4.5vw, 63px); }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: #f0c781; }
.eyebrow span { width: 20px; height: 1px; background: currentColor; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 5.15vw, 5.05rem); line-height: .98; letter-spacing: -.055em; margin: 13px 0 14px; }
.hero.compact { min-height: 218px; }
.hero.compact h1 { font-size: clamp(2.7rem, 4.5vw, 4.4rem); }
.view { margin-top: 34px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
h2 { font: 400 clamp(2rem, 3.3vw, 2.7rem)/1.07 var(--serif); letter-spacing: -.045em; }
.section-head p, .card-head p, .muted, .empty p { color: var(--muted); }
.section-head p, .card-head p { margin-top: 6px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.53fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.stack { display: grid; gap: 18px; min-width: 0; }
.card, .result-card { border-radius: 14px; padding: clamp(17px, 2.15vw, 29px); min-width: 0; }
.card { background: var(--white); border: 1px solid var(--line); box-shadow: 0 3px 10px #263b2d06; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
h3 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -.02em; }
h4 { font-size: 1rem; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; font-size: .9rem; font-weight: 650; }
input:not([type=checkbox]), select { min-width: 0; width: 100%; border: 1px solid #d1d8cd; border-radius: 7px; background: #fbfcf7; color: var(--ink); padding: 9px 10px; min-height: 42px; font-size: 1rem; font-weight: 480; }
input[aria-invalid=true] { border-color: #b2492b; background: #fff4e9; }
select { appearance: none; padding-right: 25px; background-image: linear-gradient(45deg,transparent 50%,#52665b 50%),linear-gradient(135deg,#52665b 50%,transparent 50%); background-position: right 13px center,right 8px center; background-size: 5px 5px; background-repeat: no-repeat; }
.product-name { margin-bottom: 23px; }
.product-name input { max-width: 410px; font-weight: 650; }
.ingredient-head, .ingredient-fields { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, .64fr) minmax(0, .65fr) minmax(0, .65fr) 34px; gap: 8px; align-items: center; }
.ingredient-head { font-size: .82rem; color: var(--muted); font-weight: 680; padding: 0 0 7px; }
.ingredient { padding: 8px 0; border-top: 1px solid #ecece3; }
.ingredient:last-child { margin-bottom: 12px; }
.ingredient-fields .field > span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.icon-button { border: 1px solid transparent; background: transparent; border-radius: 7px; color: #546760; font-size: 1.3rem; width: 34px; height: 38px; }
.icon-button:hover { background: #f5e9df; color: #834124; }
details { line-height: 1.5; }
details summary { color: var(--pine); font-weight: 620; }
details > div { margin-top: 10px; }
.ingredient details { margin-top: 5px; font-size: .83rem; }
.ingredient details summary { color: var(--muted); }
.fields { display: grid; gap: 12px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.toggle { display: flex; align-items: start; gap: 10px; padding: 13px; background: var(--sage); border-radius: 8px; margin-top: 15px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--pine); flex: none; }
.toggle small { display: block; margin-top: 3px; color: var(--muted); font-size: .875rem; }
.method-inline { margin-top: 15px; }
.result-card { background: var(--sage); border: 1px solid #c8d7c9; }
.result-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 13px; }
.result-note { border-top: 1px solid #bfcec2; padding-top: 12px; font-size: .85rem; color: #35584b; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #edf0e8; border-radius: 8px; padding: 4px; }
.segmented button { background: transparent; border: 1px solid transparent; color: #486057; border-radius: 6px; min-height: 34px; font-size: .85rem; font-weight: 650; padding: 5px; }
.segmented button[aria-pressed=true] { background: var(--white); border-color: #d9e0d5; color: var(--deep); }
.chart { display: grid; gap: 12px; margin-top: 16px; }
.chart-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: .9rem; }
.chart-label strong { font-weight: 650; overflow-wrap: anywhere; }
.chart-label span { color: var(--muted); white-space: nowrap; }
.track { height: 6px; border-radius: 20px; background: #e7ede5; margin-top: 4px; overflow: hidden; }
.bar { height: 100%; background: #427568; border-radius: 20px; }
.bar.energy { background: #ad712a; }
.primary,.outline,.subtle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: .9rem; font-weight: 680; line-height: 1.25; min-height: 42px; padding: 9px 13px; border-radius: 7px; border: 1px solid transparent; text-decoration: none; }
.primary { background: var(--deep); color: #fffdf3; }
.primary:hover { background: #226252; }
.outline { color: var(--deep); background: transparent; border-color: #b9ccc1; }
.outline:hover,.subtle:hover { background: #e9efe5; }
.subtle { color: var(--pine); background: transparent; }
.add-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 14px; }
.status { margin-top: 10px; font-size: .9rem; color: #285e48; }
.status:empty { display: none; }
.error { color: #923c24 !important; }
.note { margin-top: 10px; font-size: .9rem; }
.spaced { margin-top: 12px; }
.empty { border: 1px dashed #c5d4c8; border-radius: 8px; padding: 17px; background: #f6f8f1; }
.line-item { padding: 15px 0; border-top: 1px solid var(--line); }
.line-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.line-head h4, .basis li, summary, .status { overflow-wrap: anywhere; }
.line-controls { display: flex; gap: 8px; align-items: end; }
.line-controls .field { width: 94px; }
.line-values { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; margin: 10px 0; color: var(--muted); font-size: .9rem; }
.line-values strong { color: var(--ink); display: block; }
.basis { font-size: .94rem; }
.basis ul { padding-left: 20px; }
.basis li + li { margin-top: 6px; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.method-grid .card p { margin-top: 9px; }
.invoice { background: #f7f4ec; border: 1px solid var(--line); padding: 18px; border-radius: 9px; margin: 15px 0 12px; text-align: center; }
.invoice h4 { font: 400 1.55rem/1.1 var(--serif); letter-spacing: -.03em; margin-bottom: 4px; }
.invoice img { display: block; width: min(100%, 300px); margin: 15px auto 0; image-rendering: pixelated; border: 1px solid #dcded6; }
.invoice p { color: var(--muted); font-size: .9rem; }
.invoice p.invoice-type { font-size: .73rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.invoice-summary { display: grid; gap: 5px; max-width: 350px; margin: 14px auto 0; padding: 10px 0; border-block: 1px solid #ded8c9; font-size: .9rem; text-align: left; }
.invoice-summary div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 10px; }
.invoice-summary dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
#invoice-products { list-style: none; max-width: 350px; padding: 0; margin: 8px auto 0; color: var(--muted); text-align: left; font-size: .83rem; }
#invoice-products li + li { margin-top: 3px; }
#invoice-caption { margin: 9px auto 0; max-width: 36ch; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
footer { border-top: 1px solid var(--line); margin: 32px 0 0; padding: 19px 0 28px; font-size: .87rem; color: var(--muted); }
.demo-info { width: min(36rem, calc(100% - 28px)); max-height: calc(100dvh - 28px); color: var(--ink); }
.demo-info::backdrop { background: #102e2bbc; }
.demo-info h2 { font-size: clamp(1.7rem, 5vw, 2.2rem); }
.demo-info p { margin-top: 10px; font-size: .95rem; }
.demo-info form { margin-top: 16px; }
@media(max-width: 960px) {
  .wrap { width: calc(100% - 44px); }
  .workspace { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; }
  .add-form { grid-template-columns: 1fr; }
}
@media(max-width: 1100px) {
  .top-inner { flex-wrap: wrap; gap: 6px; padding-top: 13px; padding-bottom: 6px; }
  nav { order: 3; width: 100%; }
}
@media(max-width: 760px) {
  .wrap { width: calc(100% - 30px); }
  .brand { width: 176px; }
  nav button { padding: 8px 10px; }
  .hero { margin-top: 15px; min-height: 259px; }
  .hero::after { background: linear-gradient(90deg,#123a37 14%,#123a37ce 59%,#123a3744); }
  .view { margin-top: 23px; }
  .workspace,.method-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-wrap: wrap; }
  .add-form { grid-template-columns: minmax(0,1fr) auto; }
}
@media(max-width: 480px) {
  .ingredient-head { display: none; }
  .ingredient-fields { grid-template-columns: repeat(3, minmax(0, 1fr)) 34px; align-items: end; }
  .ingredient-fields .field:first-child { grid-column: 1 / 4; }
  .ingredient-fields .icon-button { grid-column: 4; grid-row: 1; }
  .ingredient-fields .field > span { position: static; clip-path: none; width: auto; height: auto; font-size: .8rem; }
  .three { grid-template-columns: 1fr; }
  .add-form { grid-template-columns: 1fr; }
}
@media print {
  body { background: white; }
  nav, footer, .demo-info, .hero, button, .actions { display: none !important; }
  .wrap { width: 100%; }
  .workspace { display: block; }
  .card, .result-card { box-shadow: none; break-inside: avoid; margin-bottom: 12px; }
  body.print-invoice main > :not(#shipment):not(#shipment-history), body.print-invoice #shipment .section-head,
  body.print-invoice #shipment-history > :not(#history-qr-host),
  body.print-invoice .shipment-layout > :not(#shipment-qr-host),
  body.print-invoice #qr-output > :not(.invoice) { display: none !important; }
  body.print-invoice #qr-output { border: 0; padding: 0; }
  body.print-invoice .invoice { max-width: 112mm; margin: 0 auto; border: 1px solid #ded8c9; background: white; break-inside: avoid; }
  body.print-invoice #invoice-products { columns: 2; font-size: 9pt; }
  body.print-invoice #invoice-products li { break-inside: avoid; }
  body.print-invoice #qr-image { width: 88mm; max-width: 100%; }
}
.basis > .field { margin-top: 8px; }
#method-content a, #share-body a { overflow-wrap: anywhere; }

/* Sporbar workspace and customer journey */
.home { margin-top: 0; }
.home-hero { min-height: 0; }
.home-hero::after { background: linear-gradient(90deg, #123a37 12%, #123a37e0 38%, #123a3760 66%, transparent); }
.home-hero .hero-copy { width: 100%; padding-block: clamp(35px, 5.5vw, 72px); }
.home-hero h1 { font-size: clamp(3.05rem, 6.25vw, 5.85rem); max-width: 14ch; margin: 0 0 18px; }
.home-hero .hero-copy > p { max-width: 51ch; color: #dce8de; margin-bottom: 24px; }
.light-button { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 17px; border: 1px solid #f4e1b7; border-radius: 7px; background: #f4e3bd; color: var(--deep); font-size: .94rem; font-weight: 730; }
.light-button:hover { background: #ffedca; }
.home-steps { margin-top: 19px; }
.home-steps h2 { font: 700 1.12rem/1.25 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.02em; }
.home-steps p { color: var(--muted); }
.work-banner { margin-top: 25px; padding: 21px clamp(17px, 3.5vw, 36px); display: flex; align-items: end; justify-content: space-between; gap: 13px 22px; flex-wrap: wrap; background: var(--deep); color: #fff9e9; border-radius: 13px; }
.company { font: 400 clamp(1.78rem, 3.1vw, 2.75rem)/1.09 var(--serif); letter-spacing: -.035em; margin-top: 6px; }
.work-banner small { font-size: .83rem; color: #d9e7d9; }
.section-field { min-width: min(100%, 235px); }
.product-name input { max-width: none; }
.material-line { border-top: 1px solid #e8ebe2; padding: 10px 0; }
.material-line:last-child { margin-bottom: 8px; }
.line-fields { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(83px, .65fr) 38px; gap: 10px; align-items: end; }
.line-fields .icon-button { height: 42px; }
.material-select { position: relative; border: 1px solid #d1d8cd; border-radius: 7px; min-height: 42px; padding: 8px 31px 8px 10px; color: var(--ink); background: #fbfcf7; text-align: left; overflow-wrap: anywhere; }
.material-select::after { content: ''; position: absolute; right: 13px; top: calc(50% - 4px); width: 6px; height: 6px; transform: rotate(45deg); border-right: 1.5px solid var(--pine); border-bottom: 1.5px solid var(--pine); }
.material-select[aria-invalid=true] { border-color: #b2492b; background-color: #fff4e9; }
.picker-panel { margin-top: 8px; padding: 12px; border: 1px solid #c9d6c9; border-radius: 8px; background: #f2f5ed; }
.picker-matches { display: grid; gap: 4px; margin-top: 8px; max-height: 178px; overflow: auto; padding: 3px; }
.picker-choice { display: flex; justify-content: space-between; align-items: baseline; gap: 5px; text-align: left; border: 1px solid #d7dfd3; border-radius: 6px; background: var(--white); color: var(--ink); padding: 7px 9px; overflow-wrap: anywhere; }
.picker-choice:hover { background: var(--sage); }
.picker-choice small { color: var(--muted); flex: none; }
.line-source { margin-top: 6px; font-size: .87rem; }
.line-source summary { color: var(--muted); }
.line-help { margin-top: 6px; font-size: .84rem; }
.line-help:empty { display: none; }
.empty-row { margin: 0 0 12px; }
.material-meta { font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.material-meta p + p { margin-top: 3px; }
.line-head > div:first-child { min-width: 0; }
.line-controls { flex: none; }
.line-controls .field { width: 98px; }
.sale-label { font-size: .88rem; overflow-wrap: anywhere; }
.line-retail { grid-column: 1 / -1; font-size: .87rem; }
.detail-block + .detail-block { margin-top: 14px; }
.detail-block { margin-top: 12px; }
.detail-block ul { margin-top: 6px; }
.invoice { overflow-wrap: anywhere; }
.logo, .basis, .note { overflow-wrap: anywhere; }

@media(max-width: 760px) {
  .home-hero .hero-copy { padding: 25px clamp(16px, 5vw, 30px); }
  .home-hero h1 { font-size: clamp(2.2rem, 8.7vw, 4.25rem); margin-bottom: 13px; }
  .home-hero .hero-copy > p { margin-bottom: 18px; }
  .home-steps { gap: 10px; margin-top: 12px; }
  .work-banner { margin-top: 15px; }
  nav { flex-wrap: wrap; }
  nav button { font-size: .85rem; padding-inline: 8px; }
  .section-field { min-width: min(100%, 225px); }
}
@media(max-width: 360px) {
  .line-fields { column-gap: 6px; }
  nav { gap: 1px; }
  nav button { padding-inline: 6px; }
  .top .demo { padding-inline: 8px; }
}

.shipment-result .result-top { padding-bottom: 16px; }
.shipment-unit { flex: none; color: #3b5a4e; font-size: .83rem; font-weight: 650; }
.comparison-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.35rem), 1fr)); gap: 9px; margin: 0; }
.comparison-summary > div { min-width: 0; padding: 11px 12px 13px; background: #f6f8f0; border-radius: 8px; }
.comparison-summary dt { font-size: .84rem; font-weight: 650; color: #365a4d; overflow-wrap: anywhere; }
.comparison-summary dd { margin: 4px 0 0; font: 400 clamp(2.2rem, 4vw, 3.15rem)/1 var(--serif); letter-spacing: -.055em; overflow-wrap: anywhere; }
.shipment-breakdown { margin-top: 14px; }
.shipment-calc { width: 100%; margin-top: 5px; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
.shipment-calc th, .shipment-calc td { padding: 7px 4px; border-top: 1px solid #c7d5ca; text-align: right; overflow-wrap: anywhere; }
.shipment-calc th:first-child { padding-left: 0; text-align: left; }
.shipment-calc thead { color: #3b5a4e; }
.shipment-calc tbody tr:last-child { font-weight: 720; }
.shipment-calc .common-amount { text-align: center; }
.shipment-calc small { display: block; color: #3b5a4e; font-size: .76rem; }
.shipment-precision { margin-top: 7px; font-size: .86rem; }

#shipment { margin-top: 23px; }
#shipment .section-head { margin-bottom: 14px; }
.shipment-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 13px; }
#shipment-estimate, #shipment-qr-host { grid-column: 1 / -1; }
#shipment-qr-host:has(> [hidden]) { display: none; }
.dispatch-review { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px 24px; }
.dispatch-review > :empty { display: none; }
.finished-weight-field { max-width: 18rem; }
#raw-weight-total { margin-bottom: 8px; }
.weight-breakdown { margin: 10px 0 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: .85rem; }
.weight-breakdown > div { display: flex; justify-content: space-between; gap: 3px 8px; flex-wrap: wrap; }
.weight-breakdown dd { margin: 0; font-variant-numeric: tabular-nums; }
.weight-breakdown > div:last-child { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; font-weight: 700; }
.review-lines { list-style: none; margin: 7px 0 0; padding: 0; }
.review-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid #c7d5ca; padding: 6px 0; }
.review-lines li strong { overflow-wrap: anywhere; }
.review-lines li > strong { white-space: nowrap; }
.shipment-qr { margin-top: 7px; }
.shipment-qr .primary { min-width: 135px; }
.shipment-qr .status { margin-top: 7px; }
#qr-output .invoice { margin-bottom: 0; }
.qr-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qr-actions > * { text-align: center; }
#qr-link { grid-column: 1 / -1; }
.order-fields { margin-bottom: 13px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.order-fields > :first-child { grid-column: 1 / -1; }
.product-name { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shipment-settings { border-top: 1px solid var(--line); }
.shipment-settings > summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 3px 10px; position: relative; padding: 12px 19px 12px 0; list-style: none; }
.shipment-settings > summary::-webkit-details-marker { display: none; }
.shipment-settings > summary::after { content: ''; position: absolute; right: 3px; top: calc(50% - 4px); width: 6px; height: 6px; border-bottom: 1.5px solid; border-right: 1.5px solid; transform: rotate(45deg); }
.shipment-settings[open] > summary::after { transform: rotate(225deg); }
.shipment-settings > summary small { color: var(--muted); font-size: .84rem; font-weight: 500; }
.shipment-settings > div { margin: 0 0 14px; }
.shipment-delivery { padding-bottom: 13px; }
.transport-basis { margin-top: 8px; }
.transport-basis summary { padding-block: 4px; font-size: .88rem; }
#show-climate { margin-top: 4px; }

@media screen and (max-width: 760px) {
  .shipment-layout, .dispatch-review { grid-template-columns: minmax(0, 1fr); }
  body[data-view=shipment] .work-banner { padding-block: 12px; gap: 5px 12px; }
  body[data-view=shipment] .work-banner .eyebrow { font-size: .73rem; letter-spacing: .08em; }
  body[data-view=shipment] .work-banner .company { font-size: 1.65rem; }
  body[data-view=shipment] .work-banner small { font-size: .75rem; }
  #shipment { margin-top: 16px; }
  .shipment-layout .comparison-summary { grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.15rem), 1fr)); }
  .shipment-layout .comparison-summary > div { padding: 9px 6px; }
  .shipment-layout .comparison-summary dt { font-size: .78rem; }
}

.cart-card h4 { overflow-wrap: anywhere; }
.item-meta { display: flex; flex-wrap: wrap; gap: 0 8px; color: var(--muted); overflow-wrap: anywhere; }
.article-code { color: var(--pine); font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-card .line-item { padding-block: 10px; }
.cart-card .cart-actions { margin-top: 12px; }
.cart-actions:has(> :only-child[hidden]) { display: none; }
.cart-stepper { display: flex; align-items: center; border: 1px solid #d1d8cd; border-radius: 7px; }
.cart-stepper button { background: transparent; color: var(--pine); border: 0; min-width: 30px; min-height: 38px; font-weight: 700; }
.cart-stepper input:not([type=checkbox]) { width: 41px; min-height: 38px; text-align: center; border: 0; border-radius: 0; padding: 0 2px; }
.cart-card .line-controls { gap: 3px; }
.shipment-settings .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
#order-lines-heading, #shipment-estimate h3 { scroll-margin-top: 80px; }

@media screen and (min-width: 980px) {
  body[data-view=shipment] .work-banner { padding-block: 15px; }
  body[data-view=shipment] .work-banner .company { font-size: 2.25rem; }
}
.product-picker { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto; color: var(--ink); }
.product-picker::backdrop { background: #102e2bbc; }
.product-picker .material-dialog-heading { padding: 0 0 7px; margin-bottom: 10px; }
.catalog-products { display: grid; gap: 5px; margin-block: 9px; max-height: min(35dvh, 260px); overflow: auto; padding: 3px; }
.catalog-row { min-height: 46px; display: grid; align-items: center; gap: 2px; text-align: left; overflow-wrap: anywhere; }
.catalog-row[aria-pressed=true] { background: var(--sage); border-color: #698e79; }
.picker-add { display: grid; grid-template-columns: minmax(110px, 1fr) auto; gap: 7px; align-items: end; padding-block: 8px; }
.picker-add > p { grid-column: 1 / -1; font-weight: 700; overflow-wrap: anywhere; }

#product { margin-top: 23px; }
.product-heading { margin-bottom: 14px; }
.product-layout { grid-template-areas: 'editor result'; }
.product-editor { grid-area: editor; }
.product-result { grid-area: result; align-self: start; z-index: 2; }
.product-result .result-top { padding-bottom: 11px; }
.product-result .status { margin: 0; }
.product-result .comparison-summary dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  font-size: clamp(1.85rem, 3.3vw, 2.8rem);
}
.product-result .comparison-summary dd small {
  font: 650 .78rem/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0;
  color: #3b5a4e;
}
.product-section { padding-block: 0; }
.product-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 12px;
  min-height: 56px;
  padding: 12px 22px 12px 0;
  position: relative;
  list-style: none;
}
.product-section > summary::-webkit-details-marker { display: none; }
.product-section > summary::after {
  content: '';
  position: absolute;
  right: 3px;
  top: calc(50% - 4px);
  width: 6px;
  height: 6px;
  border-bottom: 1.5px solid;
  border-right: 1.5px solid;
  transform: rotate(45deg);
}
.product-section[open] > summary::after { transform: rotate(225deg); }
.product-section > summary small { color: var(--muted); font-size: .84rem; font-weight: 500; overflow-wrap: anywhere; }
.product-section > div { margin: 0 0 15px; }
.product-section .note { margin: 0 0 8px; }
.product-chart-title { font-size: 1rem; margin: 0 0 10px; }
#production-totals:not(:empty) { margin-bottom: 17px; }
#production-totals .comparison-summary dd { font: 660 .92rem/1.25 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: normal; }
.product-next { justify-self: start; }

@media screen {
  .product-result { position: sticky; top: 8px; box-shadow: 0 4px 12px #172f2b16; }
}
@media screen and (max-width: 760px) {
  html:has(body[data-view=product]) { scroll-padding-top: 155px; }
  body[data-view=product] .work-banner { padding-block: 12px; gap: 5px 12px; }
  body[data-view=product] .work-banner .eyebrow { font-size: .73rem; letter-spacing: .08em; }
  body[data-view=product] .work-banner .company { font-size: 1.65rem; }
  body[data-view=product] .work-banner small { font-size: .75rem; }
  #product { margin-top: 16px; }
  .product-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; }
  .product-heading .section-field { min-width: 0; justify-self: end; width: min(100%, 235px); }
  .product-layout { display: flex; flex-direction: column; align-items: stretch; }
  .product-result { align-self: stretch; padding: 11px; }
  .product-result .result-top { padding-bottom: 7px; }
  .product-result h3 { font-size: .98rem; }
  .product-result .comparison-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .product-result .comparison-summary > div { padding: 6px; }
  .product-result .comparison-summary dt { font-size: .77rem; }
  .product-result .comparison-summary dd { font-size: clamp(1.5rem, 6.85vw, 2.1rem); }
}

#materials { margin-top: 23px; }
.register-layout, #materials .section-head { max-width: 920px; }
.register-tools {
  position: sticky;
  top: 8px;
  z-index: 2;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid #d7ded1;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 3px 9px #172f2b12;
}
.register-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; }
.register-search .primary { white-space: nowrap; }
.register-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.register-filters button {
  min-height: 36px;
  padding: 5px 12px;
  border: 1px solid #cbd7ca;
  border-radius: 7px;
  background: var(--white);
  color: var(--pine);
  font-size: .875rem;
  font-weight: 650;
}
.register-filters button:hover { background: #edf2e9; }
.register-filters button[aria-pressed=true] { background: var(--sage); border-color: #9db5a7; color: var(--deep); }
#register-status { margin: 0 0 10px; }
.register-results { gap: 12px; }
.register-group { padding-block: 14px; }
.register-group h3 { margin-bottom: 9px; }
.register-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .32fr) auto;
  align-items: center;
  gap: 8px 14px;
  border-top: 1px solid var(--line);
  padding: 9px 0;
}
.register-row:last-child { padding-bottom: 0; }
.register-row h4 { margin-bottom: 3px; overflow-wrap: anywhere; }
.register-info { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.register-source summary { font-size: inherit; }
.register-source[open] { flex-basis: 100%; }
.register-source > div { margin-top: 6px; }
.register-impact { justify-self: end; text-align: right; min-width: 0; }
.register-impact strong, .register-impact small { display: block; overflow-wrap: anywhere; }
.register-impact strong { font-variant-numeric: tabular-nums; }
.register-impact small { color: var(--muted); font-size: .74rem; }
.register-edit { min-height: 39px; padding-inline: 12px; }

.material-dialog {
  width: min(600px, calc(100% - 26px));
  max-height: min(730px, calc(100dvh - 24px));
  padding: 0;
  color: var(--ink);
  box-shadow: 0 16px 66px #0f2d2a45;
}
.material-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.material-dialog::backdrop { background: #102e2bbc; }
.material-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 18px; border-bottom: 1px solid var(--line); }
.material-dialog-heading h3 { overflow-wrap: anywhere; }
.material-dialog-heading button { flex: none; }
#material-form { display: grid; min-height: 0; grid-template-rows: minmax(0, 1fr) auto; }
.material-dialog-fields { display: grid; align-content: start; gap: 11px; overflow: auto; padding: 15px 18px; }
.material-dialog-fields .two { align-items: end; }
.material-dialog-fields > p { font-size: .85rem; }
.material-dialog-actions { border-top: 1px solid var(--line); padding: 11px 18px; }
.material-dialog-actions .status { margin: 0 0 8px; }
.material-dialog-actions .actions { margin: 0; }

@media(max-width: 760px) {
  #materials { margin-top: 16px; }
  body[data-view=materials] .work-banner { padding-block: 12px; gap: 5px 12px; }
  body[data-view=materials] .work-banner .eyebrow { font-size: .73rem; letter-spacing: .08em; }
  body[data-view=materials] .work-banner .company { font-size: 1.65rem; }
  body[data-view=materials] .work-banner small { font-size: .75rem; }
  .register-tools { padding: 10px; }
  .register-search .primary { padding-inline: 9px; font-size: .83rem; }
  .register-row { grid-template-columns: minmax(0, 1fr) minmax(60px, .32fr) auto; gap: 7px; }
  .register-edit { padding-inline: 8px; font-size: .84rem; }
}
@media(max-width: 460px) {
  .material-dialog-fields .two:not(:first-child) { grid-template-columns: 1fr; }
}

#shared { max-width: 1050px; margin: 22px auto 0; }
.shared-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, .48fr);
  align-items: center;
  gap: 16px 28px;
  border-radius: 13px;
  padding: clamp(17px, 3vw, 34px);
  background: var(--deep);
  color: #fff9e9;
}
.shared-heading h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.04; margin: 0; overflow-wrap: anywhere; text-wrap: balance; }
.shared-heading p { color: #e2eee4; font-size: 1rem; margin-top: 8px; overflow-wrap: anywhere; }
.shared-refs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.shared-refs > div { border: 1px solid #55746a; border-radius: 7px; padding: 9px 10px; }
.shared-refs dt { color: #e2eee4; font-size: .76rem; }
.shared-refs dd { margin: 3px 0 0; font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.shared-refs > div:nth-last-child(3) { grid-column: 1 / -1; }
#share-body { margin-top: 12px; }
.shared-overview { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.shared-overview h2 { font: 700 1.12rem/1.25 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.02em; }
.shared-overview .result-top { padding-bottom: 11px; }
.shared-scope { font-size: .87rem; color: var(--muted); margin: 9px 0 2px; }
.shared-overview .shipment-breakdown { margin-top: 8px; }
.shared-products > h2 { margin-bottom: 8px; }
.shared-item { border-top: 1px solid var(--line); padding: 8px 0; }
.shared-item:last-child { padding-bottom: 0; }
.shared-item-head { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.shared-item-head > div { min-width: 0; }
.shared-item h3 { font-size: 1rem; overflow-wrap: anywhere; }
.shared-quantity { padding: 5px 9px; border: 1px solid #dce5d8; border-radius: 6px; background: #f2f5ed; font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1.15; flex: none; }
.shared-unit-estimate { display: flex; flex-wrap: wrap; gap: 0 9px; margin-top: 2px; font-size: .79rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.shared-unit-estimate > span, #product-result-title { overflow-wrap: anywhere; }
.shared-unit-estimate strong { color: var(--ink); }
.shared-item .line-details { margin-top: 4px; font-size: .84rem; }
.shared-basis { margin-top: 12px; padding-block: 12px; }
.shared-basis .card > p { margin-top: 8px; color: var(--muted); overflow-wrap: anywhere; }
.shared-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.shared-next h2 { font-size: 1.35rem; }

@media(max-width: 760px) {
  #shared { margin-top: 12px; }
  .shared-banner { grid-template-columns: 1fr; gap: 10px; padding-block: 13px; }
  .shared-refs { gap: 7px; }
  .shared-refs > div { padding-block: 6px; }
  .shared-refs > div:nth-last-child(3) { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 9px; }
  .shared-refs > div:nth-last-child(3) dd { margin: 0; }
  .shared-overview { grid-template-columns: 1fr; gap: 9px; }
  .shared-overview .card, .shared-overview .result-card { padding: 12px; }
  .shared-item { padding-block: 5px; }
  .shared-item .line-details { margin-top: 2px; }
  .shared-overview .comparison-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .shared-overview .comparison-summary > div { padding: 7px 6px; }
  .shared-overview .comparison-summary dt { font-size: .78rem; }
  .shared-overview .comparison-summary dd { font-size: clamp(1.9rem, 7vw, 2.55rem); }
}
@media(max-width: 360px) {
  .shared-heading h1 { font-size: 1.85rem; }
}

#overview, #product-register { margin-top: 23px; }
.overview-heading { align-items: center; flex-wrap: wrap; }
.overview-all { margin-top: 10px; font-size: .88rem; }
.overview-shortcuts { flex-wrap: wrap; gap: 7px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.overview-shortcuts a { padding: 6px 10px; }
.dispatch-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 13px; }
.dispatch-list { list-style: none; margin: 10px 0 0; padding: 0; }
.dispatch-list-item { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; border-top: 1px solid var(--line); padding-block: 9px; }
.dispatch-list-item > div { min-width: 0; overflow-wrap: anywhere; }
.dispatch-list-item > a { flex: none; }
.customer-heading h2 { overflow-wrap: anywhere; }
.customer-details dl { display: grid; gap: 7px; margin: 0 0 14px; }
.customer-details dt { font-size: .84rem; color: var(--muted); }
.customer-details dd { margin: 3px 0 0; overflow-wrap: anywhere; white-space: pre-line; }
.customer-history { margin-top: 13px; }
.recipient-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px 8px; }
#recipient-customer-number { grid-column: 1 / -1; }
#recipient-customer-number:empty { display: none; }
#customer-form textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; font: inherit; resize: vertical; }
#customers .section-head { flex-wrap: wrap; }
#history-status { margin-bottom: 10px; }
#shipments .section-head, #shipment-history .section-head, #shipment .section-head { flex-wrap: wrap; }
.product-list-search { max-width: 440px; margin-bottom: 15px; }
#registered-products { list-style: none; padding: 0; margin: 0; }
.registered-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .6fr) auto; align-items: center; gap: 8px 14px; border-top: 1px solid var(--line); padding: 10px 0; }
.registered-product:last-child { padding-bottom: 0; }
.registered-product h3 { overflow-wrap: anywhere; }
.registered-product-energy, .product-energy-preview { font-size: .88rem; }
.product-energy-preview { margin-top: 7px; }
.product-energy-preview:empty { display: none; }
@media screen and (max-width: 760px) {
  #overview .dispatch-board { grid-template-columns: minmax(0, 1fr); gap: 9px; }
}
@media screen and (max-width: 600px) {
  body[data-view=overview] .work-banner { padding-block: 13px; gap: 5px 12px; }
  body[data-view=overview] .work-banner .eyebrow { font-size: .73rem; letter-spacing: .08em; }
  .dispatch-board { grid-template-columns: minmax(0, 1fr); }
  .registered-product { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; }
  .registered-product button { grid-column: 2; grid-row: 1 / 3; }
  .registered-product-energy { grid-column: 1; }
}
