.bag-label-page {
  --bag-ink: #1a2921;
  --bag-green: #23543c;
  --bag-green-dark: #163a2a;
  --bag-paper: #f7f5ed;
  --bag-soft: #eeeee4;
  --bag-line: #cfd2c6;
  --bag-ochre: #be8741;
  --bag-muted: #5b675e;
  color: var(--bag-ink);
  background: #f4f2e9;
}
.bag-label-page .site-header.page-shell { min-height: 72px; }
.bag-label-page .brand { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.bag-label-page .brand-symbol { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; }
.bag-label-page .brand-symbol svg { width: 23px; height: 23px; }
.bag-label-page .bag-skip { position: absolute; top: -100vh; left: 12px; z-index: 100; padding: 9px 12px; color: var(--bag-green-dark); background: #fff; }
.bag-label-page .bag-skip:focus { top: 8px; }
.bag-label-main { padding-top: 12px; }
.bag-breadcrumb { margin: 0 0 14px; color: var(--bag-muted); font-size: .82rem; }
.bag-breadcrumb a { color: var(--bag-green); font-weight: 700; }
.bag-breadcrumb span { margin: 0 7px; color: var(--bag-ochre); }
.bag-tool { overflow: hidden; border: 1px solid #bfc6b9; background: var(--bag-paper); box-shadow: 0 5px 24px rgba(40,55,41,.08); }
.bag-tool-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 28px 20px; border-bottom: 1px solid var(--bag-line); }
.bag-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; color: var(--bag-green); font-size: .72rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.bag-kicker-mark { width: 15px; height: 15px; border: 1px solid var(--bag-ochre); background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(190,135,65,.5) 3px 4px); }
.bag-tool-heading h1 { margin: 0; color: var(--bag-ink); font-size: clamp(1.75rem, 4vw, 2.45rem); line-height: 1.08; letter-spacing: -.035em; }
.bag-tool-heading p:last-child { max-width: 54rem; margin: 10px 0 0; color: var(--bag-muted); font-size: .96rem; line-height: 1.55; }
.bag-heading-stamp { display: grid; flex: 0 0 auto; align-self: center; border-left: 2px solid var(--bag-ochre); padding: 2px 0 2px 12px; color: var(--bag-green-dark); font-size: .65rem; font-weight: 850; letter-spacing: .08em; line-height: 1.8; }
.bag-workspace { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr); align-items: start; gap: 0; }
.bag-input-column { min-width: 0; padding: 20px 24px 22px; }
.bag-unit-line { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.bag-unit-field { max-width: 310px; }
.bag-unit-note { margin: 0 0 8px; color: var(--bag-muted); font-size: .73rem; }
.bag-field { display: grid; min-width: 0; gap: 6px; color: var(--bag-ink); font-size: .79rem; font-weight: 760; }
.bag-field > span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.bag-field b { color: var(--bag-green); font-size: .72rem; font-weight: 850; }
.bag-field em { margin-left: auto; color: var(--bag-muted); font-size: .68rem; font-style: normal; font-weight: 500; }
.bag-field input, .bag-field select, .bag-shape { width: 100%; min-width: 0; height: 42px; border: 1px solid #aeb8ac; border-radius: 3px; padding: 8px 10px; color: var(--bag-ink); background: #fffefa; font: inherit; font-size: 16px; }
.bag-field input:focus, .bag-field select:focus, .bag-shape:focus, .bag-label-page button:focus-visible { outline: 3px solid rgba(190,135,65,.52); outline-offset: 2px; }
.bag-field small { color: var(--bag-muted); font-size: .68rem; font-weight: 450; line-height: 1.35; }
.bag-label-panel { padding: 14px; border: 1px solid var(--bag-line); border-left: 3px solid var(--bag-ochre); background: #fbfaf5; }
.bag-section-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 13px; }
.bag-index { display: grid; flex: 0 0 26px; width: 26px; height: 26px; place-items: center; color: #fff; background: var(--bag-green); font-size: .7rem; font-weight: 850; }
.bag-section-head h2 { margin: 0; color: var(--bag-ink); font-size: 1rem; line-height: 1.25; }
.bag-section-head p { margin: 4px 0 0; color: var(--bag-muted); font-size: .73rem; line-height: 1.4; }
.bag-label-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.bag-caution { margin: 12px 0 0; padding: 8px 10px; border-top: 1px dashed #d4c5a9; color: #5b503f; font-size: .72rem; line-height: 1.4; }
.bag-caution strong { color: #6b4b1f; }
.bag-project-panel { margin-top: 23px; }
.bag-project-head { align-items: center; margin-bottom: 10px; }
.bag-project-head > div { flex: 1; min-width: 0; }
.bag-quiet-button, .bag-add-button { border: 1px solid var(--bag-green); border-radius: 3px; padding: 7px 10px; color: var(--bag-green-dark); background: transparent; font: inherit; font-size: .73rem; font-weight: 780; cursor: pointer; }
.bag-quiet-button:hover, .bag-add-button:hover { background: #e8eee5; }
.bag-rows { display: grid; gap: 9px; }
.bag-row { min-width: 0; border: 1px solid var(--bag-line); background: #fffefa; }
.bag-row-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #e0e1d9; background: #f1f1e8; }
.bag-row-number { flex: 0 0 auto; color: var(--bag-green); font-size: .68rem; font-weight: 850; letter-spacing: .07em; }
.bag-shape { width: auto; height: 34px; flex: 1; max-width: 230px; padding: 5px 8px; font-size: .78rem; }
.bag-remove-row { margin-left: auto; border: 0; padding: 6px; color: #6f5342; background: transparent; font: inherit; font-size: .7rem; text-decoration: underline; cursor: pointer; }
.bag-row-fields { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; padding: 10px; }
.bag-row-fields [hidden] { display: none !important; }
.bag-row-fields .bag-field input { height: 38px; padding: 7px 8px; }
.bag-add-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.bag-add-button { display: inline-flex; align-items: center; gap: 6px; }
.bag-add-button span { color: var(--bag-ochre); font-size: 1.1rem; line-height: .8; }
.bag-add-note { color: var(--bag-muted); font-size: .7rem; }
.bag-error { margin: 12px 0 0; color: #8f2f24; font-size: .78rem; }
.bag-error:not([hidden]) { display: block; }
.bag-result-panel { position: sticky; top: 14px; min-width: 0; padding: 23px 22px 20px; border-left: 1px solid #384b3e; color: #f8f5e9; background: var(--bag-green-dark); }
.bag-result-label { margin: 0 0 8px; color: #e6bc77; font-size: .68rem; font-weight: 850; letter-spacing: .11em; }
.bag-result-panel h2 { margin: 0; color: #fffdf5; font-size: 1.35rem; line-height: 1.2; }
.bag-status { min-height: 38px; margin: 8px 0 14px; color: #d7e0d7; font-size: .75rem; line-height: 1.45; }
.bag-order-result { display: flex; align-items: baseline; gap: 8px; border-top: 1px solid rgba(239,237,220,.28); border-bottom: 1px solid rgba(239,237,220,.28); padding: 12px 0; }
.bag-order-result strong { color: #f3c980; font-size: clamp(2.8rem, 6vw, 4rem); line-height: .95; letter-spacing: -.06em; overflow-wrap: anywhere; }
.bag-order-result span { color: #fffdf5; font-size: .86rem; font-weight: 700; }
.bag-result-list { display: grid; gap: 0; margin: 12px 0 17px; }
.bag-result-list > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dotted rgba(239,237,220,.25); }
.bag-result-list dt { color: #d7e0d7; font-size: .72rem; line-height: 1.35; }
.bag-result-list dd { margin: 0; color: #fffdf5; font-size: .75rem; font-weight: 780; text-align: right; overflow-wrap: anywhere; }
.bag-stock-field { margin-bottom: 13px; }
.bag-stock-field, .bag-price-field { color: #fffdf5; }
.bag-price-field b { color: #efc77f; }
.bag-stock-field em, .bag-price-field em { color: #d7e0d7; }
.bag-stock-field input, .bag-price-field input { height: 38px; border-color: #77917e; color: #f8f5e9; background: #254633; }
.bag-stock-field input::placeholder, .bag-price-field input::placeholder { color: #c2d0c5; opacity: 1; }
.bag-stock-field small, .bag-price-field small { color: #d7e0d7; }
.bag-extra-stock { margin: 0 0 16px; border: 1px solid #77917e; padding: 9px 10px; }
.bag-extra-stock summary { color: #f3c980; cursor: pointer; font-size: .76rem; font-weight: 780; }
.bag-extra-stock summary:focus-visible { outline: 3px solid rgba(243,201,128,.75); outline-offset: 3px; }
.bag-extra-stock p { margin: 8px 0 10px; color: #d7e0d7; font-size: .7rem; line-height: 1.45; }
.bag-extra-stock-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.bag-extra-stock .bag-field { color: #fffdf5; }
.bag-extra-stock .bag-field b { color: #efc77f; }
.bag-extra-stock .bag-field input { height: 38px; border-color: #77917e; color: #f8f5e9; background: #254633; }
.bag-extra-stock .bag-field input::placeholder { color: #c2d0c5; opacity: 1; }
.bag-cost-line { padding: 10px 0 0; color: #d7e0d7; font-size: .75rem; }
.bag-cost-line strong { color: #f3c980; }
.bag-copy-button { display: flex; justify-content: space-between; width: 100%; min-height: 43px; margin-top: 14px; border: 1px solid #e3bd79; border-radius: 3px; padding: 10px 12px; color: #162d21; background: #efc77f; font: inherit; font-size: .8rem; font-weight: 850; cursor: pointer; }
.bag-copy-button:hover:not(:disabled) { background: #ffda99; }
.bag-copy-button:disabled { cursor: not-allowed; opacity: .56; }
.bag-copy-status { min-height: 1em; margin: 6px 0 0; color: #d7e0d7; font-size: .68rem; }
.bag-copy-fallback { width: 100%; margin-top: 7px; border: 1px solid #77917e; padding: 8px; color: #fff; background: #254633; font: inherit; font-size: .72rem; }
.bag-result-note { margin: 9px 0 0; color: #c8d4ca; font-size: .67rem; line-height: 1.45; }
.bag-tool-foot { display: flex; flex-wrap: wrap; gap: 9px 20px; align-items: center; padding: 11px 24px; border-top: 1px solid var(--bag-line); color: var(--bag-muted); background: #eeeee4; font-size: .69rem; }
.bag-tool-foot b { margin-right: 5px; color: var(--bag-green); }
.bag-local-note { margin-left: auto; color: var(--bag-green-dark); font-weight: 760; }
.bag-field-figure { max-width: 1000px; margin: 30px auto 36px; }
.bag-field-figure img { display: block; width: 100%; height: auto; border: 1px solid #c5c9bc; }
.bag-field-figure figcaption { margin-top: 8px; color: var(--bag-muted); font-size: .77rem; line-height: 1.45; text-align: center; }
.bag-explainer, .bag-example, .bag-limits, .bag-faq, .bag-next { margin: 0 auto 34px; max-width: 1050px; }
.bag-explainer-heading h2, .bag-example h2, .bag-limits h2, .bag-faq h2, .bag-next h2 { margin: 0 0 14px; color: var(--bag-ink); font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.2; letter-spacing: -.025em; }
.bag-method-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--bag-line); border-bottom: 1px solid var(--bag-line); }
.bag-method-grid article { padding: 15px 18px 16px 0; }
.bag-method-grid article + article { border-left: 1px solid var(--bag-line); padding-left: 18px; }
.bag-step { color: var(--bag-ochre); font-size: .65rem; font-weight: 850; letter-spacing: .1em; }
.bag-method-grid h3 { margin: 7px 0 5px; color: var(--bag-green-dark); font-size: .98rem; }
.bag-method-grid p, .bag-example p, .bag-limits > p:last-child, .bag-next p { margin: 0; color: var(--bag-muted); font-size: .86rem; line-height: 1.58; }
.bag-formula { margin: 15px 0 0; padding-left: 12px; border-left: 2px solid var(--bag-ochre); color: var(--bag-ink); font-size: .82rem; line-height: 1.6; }
.bag-source-note { margin: 10px 0 0; color: var(--bag-muted); font-size: .72rem; line-height: 1.5; }
.bag-source-note a, .bag-next a { color: var(--bag-green); font-weight: 750; }
.bag-example { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.9fr); gap: 26px; padding: 21px 22px; border: 1px solid var(--bag-line); border-top: 3px solid var(--bag-ochre); background: #fbfaf5; }
.bag-example .bag-kicker { margin-bottom: 7px; }
.bag-example-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.bag-example-steps li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--bag-line); }
.bag-example-steps li:last-child { border-bottom: 0; }
.bag-example-steps span { color: var(--bag-muted); font-size: .73rem; }
.bag-example-steps strong { color: var(--bag-green-dark); font-size: .78rem; text-align: right; }
.bag-depth-figure { grid-column: 1 / -1; margin: 4px 0 0; }
.bag-depth-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--bag-line); background: #f8f7f0; }
.bag-depth-figure figcaption { margin-top: 8px; color: var(--bag-muted); font-size: .75rem; line-height: 1.5; }
.bag-limits { padding-left: 14px; border-left: 2px solid var(--bag-green); }
.bag-faq details { border-top: 1px solid var(--bag-line); padding: 12px 0; }
.bag-faq details:last-child { border-bottom: 1px solid var(--bag-line); }
.bag-faq summary { color: var(--bag-green-dark); font-size: .88rem; font-weight: 780; cursor: pointer; }
.bag-faq details p { max-width: 850px; margin: 8px 0 0; color: var(--bag-muted); font-size: .82rem; line-height: 1.55; }
.bag-next { border-top: 1px solid var(--bag-line); padding-top: 19px; }
.bag-next p:last-child { max-width: 720px; }
@media (max-width: 900px) {
  .bag-workspace { grid-template-columns: minmax(0,1fr); }
  .bag-result-panel { position: static; border-top: 1px solid #384b3e; border-left: 0; }
}
@media (max-width: 650px) {
  .bag-label-page .site-header.page-shell { width: 100%; min-height: 0; padding: 8px 10px; flex-direction: column; align-items: stretch; gap: 4px; }
  .bag-label-page .brand { gap: 6px; font-size: 15px; letter-spacing: -.45px; }
  .bag-label-page .brand-symbol { flex-basis: 24px; width: 24px; height: 24px; }
  .bag-label-page .brand-symbol svg { width: 19px; height: 19px; }
  .bag-label-page .site-nav { display: grid; width: 100%; min-width: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; padding: 0; }
  .bag-label-page .site-nav a { min-height: 35px; font-size: 10.5px; padding: 4px 1px; }
  .bag-tool-heading { padding: 14px 12px 12px; }
  .bag-tool-heading .bag-kicker { display: none; }
  .bag-tool-heading h1 { font-size: 1.55rem; line-height: 1.05; }
  .bag-tool-heading p:last-child { margin-top: 7px; font-size: .88rem; line-height: 1.4; }
  .bag-heading-stamp { display: none; }
  .bag-input-column { padding: 15px 13px 18px; }
  .bag-label-fields { grid-template-columns: minmax(0,1fr); }
  .bag-row-fields { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bag-method-grid { grid-template-columns: minmax(0,1fr); }
  .bag-method-grid article, .bag-method-grid article + article { border-left: 0; border-bottom: 1px solid var(--bag-line); padding: 12px 0; }
  .bag-method-grid article:last-child { border-bottom: 0; }
  .bag-example { grid-template-columns: minmax(0,1fr); gap: 13px; padding: 16px 14px; }
  .bag-tool-foot { padding: 10px 13px; }
  .bag-local-note { margin-left: 0; }
}
@media (max-width: 390px) {
  .bag-label-page .site-header.page-shell { width: 100%; min-width: 0; }
  .bag-label-page .site-nav { min-width: 0; max-width: 100%; }
  .bag-tool-heading h1 { font-size: 1.55rem; overflow-wrap: anywhere; }
  .bag-unit-line { align-items: flex-start; flex-direction: column; gap: 5px; }
  .bag-unit-field { width: 100%; max-width: none; }
  .bag-unit-note { margin: 0; }
  .bag-project-head { flex-wrap: wrap; }
  .bag-project-head > div { flex-basis: calc(100% - 38px); }
  .bag-quiet-button { margin-left: 36px; }
  .bag-row-fields { grid-template-columns: minmax(0,1fr); }
  .bag-row-head { flex-wrap: wrap; }
  .bag-shape { max-width: none; }
  .bag-remove-row { margin-left: auto; }
  .bag-result-panel { padding: 19px 15px; }
  .bag-extra-stock-fields { grid-template-columns: minmax(0,1fr); }
  .bag-result-list > div { align-items: flex-start; }
  .bag-result-list dt { max-width: 58%; }
  .bag-example-steps li { align-items: flex-start; flex-direction: column; gap: 3px; }
  .bag-example-steps strong { text-align: left; }
}
