/* Public product examples: intentionally fictional, matching the workspace palette. */
.flow-scene{height:100%;padding:26px;background:#f6f9fc;color:#193c59;display:flex;flex-direction:column;justify-content:center;gap:13px;overflow:auto;font-size:14px}
.flow-head{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:3px}.flow-head p{font-size:11px;font-weight:650;letter-spacing:1.2px;color:#57758e;margin:0 0 9px}.flow-head h4{font-size:25px;letter-spacing:-.7px;line-height:1.15;margin:0}.flow-badge{display:inline-block;white-space:nowrap;background:#e1f2e9;color:#236e51;font-size:12px;font-weight:650;padding:7px 9px;border-radius:6px}.flow-badge.pending{background:#fcecea;color:#a63032}.flow-badge.neutral{background:#e8eff9;color:#315d92}
.flow-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #dce6ef}.flow-row strong{font-size:14px;font-weight:650}.flow-row small{display:block;font-size:12px;color:#5e768c;line-height:1.5;margin-top:4px}.flow-row>b{font-size:14px;white-space:nowrap}.flow-total{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;background:#133d58;color:#fff;border-radius:8px}.flow-total span{font-size:12px;color:#d4e5ef}.flow-total strong{font-size:22px;white-space:nowrap}.flow-bottom{display:flex;align-items:center;gap:16px}.flow-bottom small{font-size:12px;color:#5f7487}.flow-action{display:inline-block;background:#2563eb;color:white;font-size:13px;font-weight:600;border-radius:7px;padding:12px 16px}.flow-note{padding:12px 14px;border:1px solid #b9dbd5;border-radius:8px;background:#edf8f5;color:#2a6359;font-size:13px;line-height:1.5}.flow-note.pending{border-color:#f0c5c3;background:#fff1ef;color:#a03437}
.flow-document,.flow-hero-order{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px;background:#fff;border:1px solid #dce5ef;border-radius:9px}.flow-document>div{display:flex;align-items:center;gap:12px}.flow-doc-icon{display:grid;place-items:center;flex-shrink:0;width:38px;height:46px;border:1px solid #bbcde3;border-radius:4px 12px 4px 4px;background:#edf3fb;font-size:14px;font-weight:700;color:#356baa}.flow-document strong{font-size:15px}.flow-document small,.flow-hero-order small{display:block;font-size:12px;font-weight:400;color:#637e94;margin-top:5px}.flow-document>span{font-size:12px;color:#37679c;border:1px solid #ccdbea;border-radius:5px;padding:8px}
.flow-counter{display:grid;grid-template-columns:1fr .7fr 1.3fr;gap:12px;padding:23px 16px;background:#fff;border:1px solid #cedfe5;border-radius:10px}.flow-counter span{display:block;font-size:12px;color:#5f7c90;margin-bottom:10px}.flow-counter strong{font-size:44px;letter-spacing:-2px;line-height:1}.flow-counter strong small{font-size:12px;letter-spacing:0}.flow-counter>div:last-child{color:#1b7963}.flow-counter .flow-deduction{color:#2966bd}.flow-receipts{display:flex;flex-wrap:wrap;gap:12px}.flow-receipts span{padding:13px;border:1px dashed #d1dfe9;border-radius:7px;font-size:13px;background:#fff}.flow-receipts .received{color:#267658;border-style:solid;border-color:#a9d6c1;background:#e9f7ef}.flow-complete{padding:25px 18px;display:flex;align-items:center;gap:16px;background:#e4f3ec;border:1px solid #b3d8c6;border-radius:10px}.flow-complete>span{font-size:32px;color:#227c59}.flow-complete strong{font-size:17px}.flow-complete p{font-size:14px;color:#3e6e60;line-height:1.6;margin-bottom:0}
.flow-cut-order{background:white;border:1px solid #d9e5f0;border-radius:9px;padding:20px}.flow-cut-order>strong{font-size:34px;letter-spacing:-1px}.flow-cut-order small{font-size:14px;font-weight:500;letter-spacing:0}.flow-cut-order p{font-size:13px;color:#5b7891;margin-bottom:0}.flow-cut-plan p{font-size:12px;color:#547089;margin:10px 0}.flow-bar{display:flex;height:40px;gap:0;border-radius:5px;overflow:hidden;border:1px solid #b9d5df}.flow-bar span,.flow-bar b{min-width:0;display:flex;align-items:center;justify-content:center;font-size:12px;background:#2f6fbc;color:white;font-weight:550;white-space:nowrap}.flow-bar i{min-width:3px;background:#fff}.flow-bar b{color:#215d51;background:#c9e6db;font-size:12px}.flow-legend{display:flex;gap:18px;font-size:12px;color:#547189}.flow-hero-order{padding:16px}.flow-hero-order>div{flex:1}.flow-hero-order>b{color:#208364;font-size:24px}.flow-hero-stock{background:#fff;border:1px solid #c7ddd9;border-radius:10px;padding:20px}.flow-hero-stock>span{font-size:14px;font-weight:650}.flow-hero-stock>div{display:flex;gap:24px;align-items:baseline;margin:13px 0}.flow-hero-stock s{font-size:28px;color:#9eb0be}.flow-hero-stock strong{font-size:54px;line-height:1;color:#1e795f;letter-spacing:-2px}.flow-hero-stock small{font-size:14px;letter-spacing:0;font-weight:500}.flow-hero-stock b{margin-left:auto;background:#e8f4ee;color:#286e55;padding:7px 12px;border-radius:6px;font-size:17px}.flow-hero-stock p{font-size:13px;color:#547665;margin:0;line-height:1.5}
.connected-section{padding-top:65px;padding-bottom:15px}.connected-intro{display:flex;justify-content:space-between;gap:40px;align-items:end}.connected-intro h2{font-size:38px;max-width:640px}.connected-intro p:last-child{max-width:380px;color:#5d758b;font-size:16px;line-height:1.8;margin:0}.connected-cards{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:32px}.connected-card{padding:30px;border:1px solid #d6e2ef;border-radius:14px;background:#f7faff;position:relative;overflow:hidden}.connected-card.inventory-card{background:#f1f8f5;border-color:#cde2d7}.connected-card .eyebrow{margin-bottom:12px;font-size:12px}.connected-card h3{font-size:27px;letter-spacing:-.7px;margin:0 0 14px}.connected-card>p:not(.eyebrow){color:#58718a;font-size:16px;line-height:1.7;max-width:510px;margin:0 0 20px}.connected-links{display:flex;flex-wrap:wrap;align-items:center;gap:20px}.connected-links a{font-size:14px;font-weight:650;color:#2560a8;border-bottom:1px solid #a5bddb;padding-bottom:5px}.inventory-card .connected-links a{color:#256e59;border-color:#a1cbb8}.connected-rule{font-size:14px;line-height:1.7;color:#5c748b;border-left:3px solid #3d80cd;padding:3px 0 3px 15px;margin-top:24px}.demo-tabs{max-width:none;flex-wrap:wrap}.demo-tabs>button{flex:1 0 auto}.demo-explanation>a{display:inline-block;font-size:14px;color:#2366b7;font-weight:650;margin:5px 0 16px;text-decoration:underline;text-underline-offset:5px}
.flow-clip .clip-stage{height:470px}.hero-clip .flow-scene{padding:22px;gap:12px}.hero-clip .flow-head h4{font-size:22px}.hero-clip .flow-note{font-size:12px;padding:10px 13px}.hero-clip .flow-head p{font-size:10px}.hero-clip .flow-head>.flow-badge{display:none}.mini-clip .flow-scene{padding:18px}.mini-clip .flow-head h4{font-size:19px}.mini-clip .flow-head p{font-size:10px}.mini-clip .flow-head>.flow-badge{display:none}.mini-clip .flow-row{padding:7px 0}.mini-clip .flow-row small{font-size:11px}.mini-clip .flow-counter{padding:16px}.mini-clip .flow-counter strong{font-size:30px}.mini-clip .flow-note{display:none}.mini-clip .flow-row strong{font-size:13px}.mini-clip .flow-row>b{font-size:12px}
.product-page[data-product="auftraege"] .product-preview,.product-page[data-product="lager"] .product-preview{height:455px;padding:0}.product-preview .flow-scene{font-size:14px;gap:12px}.product-preview .flow-head h4{font-size:23px}
@media(min-width:761px) and (max-width:1100px){.hero-clip .flow-scene{padding:15px;gap:8px}.hero-clip .flow-hero-stock{padding:12px}.hero-clip .flow-head h4{font-size:18px}.hero-clip .flow-head p{margin-bottom:5px}.hero-clip .flow-note{padding:8px}.hero-clip .flow-hero-order{padding:10px}.hero-clip .flow-hero-stock>div{margin:8px 0}.hero-clip .flow-hero-stock strong{font-size:42px}}
@media(max-width:760px){.connected-section{padding-top:45px}.connected-intro{display:block}.connected-intro h2{font-size:33px}.connected-intro p:last-child{margin-top:20px;max-width:none}.connected-cards{grid-template-columns:1fr;gap:16px;margin-top:24px}.connected-card{padding:24px}.connected-card h3{font-size:25px}.flow-clip .clip-stage{height:485px}.flow-scene{padding:18px;gap:12px}.flow-head{flex-wrap:wrap;gap:10px}.flow-head h4{font-size:23px}.flow-head>.flow-badge{font-size:11px;padding:6px 8px}.flow-row strong,.flow-row>b{font-size:13px}.flow-row small{font-size:12px}.flow-total{padding:13px 10px}.flow-total strong{font-size:20px}.flow-total span{max-width:120px;font-size:11px}.flow-counter{gap:8px;padding:22px 12px}.flow-counter strong{font-size:37px}.flow-counter strong small{display:block;margin-top:5px}.flow-counter span{font-size:11px}.flow-bar b,.flow-bar span{font-size:10px}.flow-note{font-size:12px}.hero-clip .clip-stage{height:390px}.hero-clip .flow-scene{padding:18px;gap:11px}.hero-clip .flow-head h4{font-size:22px}.hero-clip .flow-head p{font-size:10px}.hero-clip .flow-hero-stock{padding:16px}.hero-clip .flow-hero-stock strong{font-size:48px}.product-page[data-product="auftraege"] .product-preview,.product-page[data-product="lager"] .product-preview{height:485px}.demo-tabs>button{flex:1 0 calc(33.333% - 6px);font-size:12px}.demo-steps{grid-template-columns:1fr}.flow-cut-order>strong{font-size:29px}}
@media(prefers-reduced-motion:no-preference){.clip.is-playing .flow-counter>div:last-child strong,.clip.is-playing .flow-hero-stock strong{animation:stock-arrive .65s ease both}.clip.is-playing .flow-bar{animation:stock-arrive .7s ease both}.clip.is-playing .flow-complete{animation:stock-arrive .6s ease both}}@keyframes stock-arrive{from{opacity:.2;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

/* Keep the examples readable without nested scrollbars, including narrow phones. */
.hero-clip .clip-stage{height:430px}.flow-mini .clip-frame{padding:0}.flow-mini .clip-stage{height:300px}.flow-scene{justify-content:safe center}.demo-player{scroll-margin-top:105px}
@media(max-width:760px){.hero-clip .clip-stage{height:445px}.flow-clip .clip-stage{height:535px}.product-page[data-product="auftraege"] .product-preview,.product-page[data-product="lager"] .product-preview{height:535px}.flow-mini .clip-stage{height:300px}.demo-player{scroll-margin-top:90px}}

/* Chapter links reuse the existing label on the public homepage. */
.hero-chapters.product-sticker {gap: 1px; padding: 5px; bottom: -24px; flex-wrap: nowrap;}
.hero-chapters a {font-size: 14px; color: #3f5d7e; font-weight: 550; padding: 9px 12px; border-radius: 7px;}
.hero-chapters a:hover, .hero-chapters a[aria-current="step"] {background: #e5efff; color: #174f9f;}
.connected-rule a {color: #1e5dac; text-decoration: underline; text-underline-offset: 3px;}
.tour-editor {height: 100%; display: flex; flex-direction: column; text-align: left; color: #1c3955; background: #fff;}
.tour-toolbar {display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; background: #214a76; color: #fff; flex: none; font-size: 13px; line-height: 1.4;}
.tour-toolbar span {color: #e1edfc; text-align: right;}
.tour-workspace {flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(145px, 34%) minmax(0, 1fr);}
.tour-inspector {padding: clamp(12px, 2vw, 24px); background: #f1f5fb; border-right: 1px solid #cbd9e7; align-self: stretch;}
.tour-inspector h4 {font-size: clamp(16px, 1.6vw, 22px); margin: 0 0 17px; letter-spacing: -.03em; line-height: 1.2;}
.tour-field {padding: 7px 9px; margin: 0 0 10px; background: white; border: 1px solid #cad8e7; border-radius: 4px; line-height: 1.4;}
.tour-field small, .tour-field strong {display: block;}
.tour-field small {color: #52677d; font-size: 12px; margin-bottom: 2px;}
.tour-field strong {font-weight: 600; font-size: 14px;}
.tour-selected {border-color: #397de0; box-shadow: inset 3px 0 #397de0;}
.tour-command {display: inline-block; padding: 7px 10px; font-size: 13px; line-height: 1.4; font-weight: 600; color: white; background: #235eb6; border-radius: 4px;}
.tour-inspector p {font-size: 14px; line-height: 1.55; color: #4b647e;}
.tour-paper {position: relative; min-height: 0; min-width: 0; overflow: hidden; background: #fff radial-gradient(#d3ddeb .7px, transparent .9px) 0 0 / 14px 14px;}
.tour-paper img {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px;}
.tour-before {opacity: 0; animation: tour-reveal 4.5s linear both;}
.tour-pointer {position: absolute; z-index: 1; width: 18px; height: 24px; background: #216ee0; clip-path: polygon(0 0, 100% 63%, 57% 66%, 75% 97%, 56% 100%, 39% 73%, 10% 94%); opacity: 0; left: 65%; top: 32%; animation: tour-click 4.5s ease both;}
.tour-drag .tour-pointer {left: 50%; top: 50%; animation-name: tour-swap;}
.tour-pair {min-height: 0; flex: 1; display: grid; grid-template-columns: 2fr 3fr;}
.tour-pair figure {min-width: 0; display: flex; flex-direction: column; margin: 0;}
.tour-pair figure + figure {border-left: 1px solid #c6d5e6;}
.tour-pair figcaption {padding: 7px 10px; background: #edf3fb; font-size: 13px; font-weight: 600;}
.tour-pair .tour-paper {flex: 1;}
@keyframes tour-reveal {0%,44% {opacity:1;} 54%,100% {opacity:0;}}
@keyframes tour-click {0% {opacity:0; transform:translate(-35px,24px);} 25%,48% {opacity:1; transform:translate(0);} 58% {opacity:1; transform:scale(.8);} 85%,100% {opacity:0;}}
@keyframes tour-swap {0% {opacity:0; transform:translateX(-90px);} 12% {opacity:1; transform:translateX(-90px);} 48%,60% {opacity:1; transform:translateX(0);} 85%,100% {opacity:0;}}
@media (max-width: 760px) {
  .hero-chapters.product-sticker {max-width: fit-content; margin-inline: auto;}
  .hero-chapters a {padding: 8px; font-size: 13px;}
  .tour-workspace {grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);}
  .tour-inspector {border-right: 0; border-bottom: 1px solid #cbd9e7; padding: 9px 11px; display: flex; align-items: stretch; flex-wrap: wrap; gap: 5px;}
  .tour-inspector h4 {flex-basis: 100%; margin: 0 0 2px; font-size: 16px;}
  .tour-field {padding: 4px 7px; margin: 0; max-width: 100%;}
  .tour-field strong, .tour-command {font-size: 13px;}
  .tour-inspector p {display: none;}
  .tour-command {align-self: center;}
}
@media (prefers-reduced-motion: reduce) {
  .tour-before, .tour-pointer {animation: none;}
}
button.tour-command {border: 1px solid #174f9f; cursor: pointer; text-align: left;}
button.tour-command:hover {background: #174e9f;}
.tour-actions {padding: 8px 12px; border-top: 1px solid #cbd9e7; background: #f3f7fc;}
@media (max-width: 760px) {
  :is(#clip-schema, #clip-dispo, #clip-together) .clip-stage {height: clamp(450px, 66svh, 550px);}
}

/* Let the complete quote determine the height if descriptions wrap. */
.hero-clip {--quote-min-height: 430px;}
.flow-clip {--quote-min-height: 470px;}
#clip-offers {--quote-min-height: 440px;}
.product-page[data-product="auftraege"] {--quote-min-height: 455px;}
.clip-stage:has(> .clip-frame:not([hidden]) > .quote-sheet),
.clip-frame:has(> .quote-sheet),
.product-page[data-product="auftraege"] .product-preview:has(> .quote-sheet) {height: auto;}
.flow-scene.quote-sheet {
  container: quote / inline-size;
  height: auto;
  min-height: var(--quote-min-height);
  overflow: visible;
  gap: 12px;
  padding: 18px clamp(12px, 2vw, 26px);
}
.quote-items {width: 100%; border-collapse: collapse; font-size: .875rem; color: #213f61;}
.quote-items th, .quote-items td {padding: 8px 0; border-bottom: 1px solid #dae4ed; vertical-align: middle;}
.quote-items thead th {padding-top: 0; color: #587089; font-size: .75rem; font-weight: 550;}
.quote-items th {text-align: left;}
.quote-items tbody th {font-weight: 400; overflow-wrap: anywhere;}
.quote-items strong, .quote-items small {display: inline-block;}
.quote-items small {color: #587089; font-size: .78rem; font-weight: 400;}
.quote-items :is(td, th):nth-child(n+2) {text-align: right; padding-left: 8px; white-space: nowrap; font-variant-numeric: tabular-nums;}
.quote-items thead th:nth-child(n+2), .quote-items td:nth-child(2) {white-space: normal;}
.quote-items td:last-child {font-weight: 650;}
.quote-sheet .flow-total {flex-wrap: wrap; font-variant-numeric: tabular-nums;}
@media (max-width: 760px) {
  .hero-inner {grid-template-columns: minmax(0, 1fr);}
  .hero-clip {--quote-min-height: 445px;}
  .flow-clip, .product-page[data-product="auftraege"] {--quote-min-height: 535px;}
  #clip-offers {--quote-min-height: 410px;}
  .quote-items :is(th, td) {padding-block: 7px;}
}
@media (max-width: 360px) {
  .hero-chapters a {padding-inline: 5px;}
}

@container quote (max-width: 13rem) {
  .quote-items, .quote-items tbody {display: block;}
  .quote-items thead {position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);}
  .quote-items tbody tr {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3px 8px;
    padding-block: 8px;
    border-bottom: 1px solid #dae4ed;
  }
  .quote-items tbody th {flex-basis: 100%;}
  .quote-items tbody :is(th, td):nth-child(n) {padding: 0; border: 0;}
  .quote-items td:last-child::before {content: "CHF ";}
}
