@layer scoped-layout-7173 {
  /* v7190 · final layout refinement for the Betriebszwilling only */

  /* Desktop: less empty stage, one deliberate control rail. */
  @media(min-width:701px){
    body.page-home .rs-board{height:472px!important;margin-top:9px!important}
    body.page-home .rs-flow .of-visual{height:444px!important}
    body.page-home .rs-island{width:196px!important;padding:12px 14px!important}
    body.page-home .rs-island>strong{margin:5px 0!important;font-size:17px!important}
    body.page-home .rs-island p{font-size:11.5px!important;line-height:1.42!important}
    body.page-home .rs-order{top:128px!important;width:282px!important;padding:15px 17px!important}
    body.page-home .rs-order header>strong{font-size:27px!important}
    body.page-home .rs-order-state{margin-top:9px!important;font-size:12.5px!important}
    body.page-home .rs-endpoints{top:398px!important;font-size:11px!important}

    body.page-home .ts-board{height:248px!important}
    body.page-home .ts-flow .of-visual{height:214px!important}
    body.page-home .ts-route-labels{top:198px!important;font-size:11.5px!important}

    body.page-home .tf-controls{
      grid-template-columns:auto minmax(220px,1fr) auto!important;
      gap:14px!important;padding:9px 0!important;align-items:center!important
    }
    body.page-home .tf-controls .rf-twin-metrics{grid-column:1!important;grid-row:1!important;gap:7px!important}
    body.page-home .tf-controls .rf-twin-metrics>div{padding:6px 9px!important;gap:6px!important}
    body.page-home .tf-controls .rf-twin-metrics span{font-size:6.8px!important}
    body.page-home .tf-controls .rf-twin-metrics strong{font-size:12.5px!important;font-weight:650!important}
    body.page-home .tf-controls .twin-intervention{display:contents!important}
    body.page-home .tf-controls .twin-intervention__action{
      grid-column:2!important;grid-row:1!important;align-self:center!important;
      font-size:13px!important;line-height:1.25!important
    }
    body.page-home .tf-controls .twin-intervention__button{
      grid-column:3!important;grid-row:1!important;min-width:164px!important;max-width:184px!important;
      min-height:36px!important;padding:7px 11px!important;font-size:11px!important
    }
    body.page-home .tf-controls .twin-intervention__feedback{
      grid-column:2/4!important;grid-row:2!important;margin-top:-3px!important
    }
    body.page-home .tf-controls .twin-intervention__progress{grid-column:1/-1!important;grid-row:3!important}

    body.page-home .operating-twin__scenario-panel{margin-top:20px!important;padding-top:17px!important;gap:13px!important}
    body.page-home [data-home-twin-engine] .operating-twin__scenario{min-height:60px!important;padding:9px 11px!important}
    body.page-home [data-home-twin-engine] .operating-twin__scenario>strong{font-size:12.2px!important;line-height:1.22!important}
    body.page-home [data-home-twin-engine] .operating-twin__scenario[aria-pressed='true']{
      border-color:rgba(139,207,154,.46)!important;
      background:linear-gradient(180deg,rgba(139,207,154,.08),rgba(139,207,154,.025))!important;
      box-shadow:inset 0 0 0 1px rgba(139,207,154,.05)!important
    }

    body.page-home .operating-twin__finding{grid-template-columns:minmax(0,1.6fr) minmax(0,1.4fr) minmax(0,1fr)!important}
    body.page-home .operating-twin__finding-item{padding:10px 13px!important}
    body.page-home .operating-twin__actions{margin-top:10px!important}
  }

  /* Mobile: genuinely mobile composition, not compressed desktop. */
  @media(max-width:700px){
    body.page-home .m7h-diagnostic{padding-top:48px!important;padding-bottom:52px!important}
    body.page-home .m7h-wrap--head{margin-bottom:10px!important}
    body.page-home .rf-twin-model{padding:13px 11px!important}
    body.page-home .rf-tool-head>.rf-tool-title{font-size:clamp(23px,6.35vw,28px)!important;line-height:1!important}

    /* 15–20% less model height while preserving all visual semantics. */
    body.page-home .rs-board{height:320px!important;margin-top:6px!important}
    body.page-home .rs-flow .of-visual{height:292px!important}
    body.page-home .rs-island{width:92px!important;top:0!important;padding:6px 7px!important;border-radius:7px!important}
    body.page-home .rs-island:nth-of-type(1){left:16%!important}
    body.page-home .rs-island:nth-of-type(2){left:50%!important}
    body.page-home .rs-island:nth-of-type(3){left:84%!important}
    body.page-home .rs-island>span{font-size:6.7px!important;letter-spacing:.045em!important}
    body.page-home .rs-island>strong{margin:3px 0 0!important;font-size:12.4px!important;line-height:1.1!important}
    body.page-home .rs-order{top:82px!important;width:min(198px,74%)!important;padding:10px 11px!important;border-radius:9px!important}
    body.page-home .rs-order header>span{font-size:7px!important}
    body.page-home .rs-order header>strong{font-size:21px!important}
    body.page-home .rs-order header>i{font-size:19px!important}
    body.page-home .rs-order-state{margin-top:7px!important;font-size:10.5px!important}
    body.page-home .rs-order-facts>div{padding:5px 0!important;font-size:9px!important}
    body.page-home .rs-order small{font-size:9px!important}
    body.page-home .rs-endpoints{top:258px!important;font-size:8.5px!important}
    body.page-home [data-scene=status-reference]:not([data-state=scattered]) .rs-island{top:118px!important}
    body.page-home [data-scene=status-reference][data-state=unified] .rs-board{height:286px!important}
    body.page-home [data-scene=status-reference][data-state=unified] .rs-order{top:20px!important}
    body.page-home [data-scene=status-reference][data-state=unified] .rs-flow .of-visual{transform:translateY(-168px)!important}
    body.page-home [data-scene=status-reference][data-state=unified] .rs-endpoints{top:238px!important}

    body.page-home .ts-card,
    body.page-home [data-scene=growth-signature] .ts-card,
    body.page-home [data-scene=people-signature] .ts-card{padding:7px!important}
    body.page-home .ts-card-label{font-size:7.2px!important}
    body.page-home .ts-card-value{font-size:13px!important}
    body.page-home .ts-board{height:202px!important}
    body.page-home .ts-flow .of-visual{height:174px!important}
    body.page-home .ts-route-labels{top:162px!important;font-size:8.7px!important}

    /* Two KPIs + one calm lever control. No squeeze between label and button. */
    body.page-home .tf-controls{gap:7px!important;padding:7px 0!important}
    body.page-home .tf-controls .rf-twin-metrics{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}
    body.page-home .tf-controls .rf-twin-metrics>div{
      min-height:32px!important;padding:6px 8px!important;border-radius:8px!important;
      justify-content:center!important;text-align:center!important
    }
    body.page-home .tf-controls .rf-twin-metrics span{display:none!important}
    body.page-home .tf-controls .rf-twin-metrics strong{font-size:10.6px!important;font-weight:650!important;text-align:center!important}
    body.page-home .tf-controls .twin-intervention{
      display:grid!important;grid-template-columns:1fr!important;gap:6px!important;width:100%!important
    }
    body.page-home .tf-controls .twin-intervention__action{
      grid-column:1!important;grid-row:1!important;display:flex!important;align-items:baseline!important;gap:6px!important;
      font-size:11.2px!important;line-height:1.2!important
    }
    body.page-home .tf-controls .twin-intervention__action::before{font-size:6.4px!important;flex:0 0 auto!important}
    body.page-home .tf-controls .twin-intervention__button{
      grid-column:1!important;grid-row:2!important;width:100%!important;max-width:none!important;min-width:0!important;
      min-height:34px!important;padding:7px 10px!important;font-size:10.5px!important;border-radius:8px!important
    }
    body.page-home .tf-controls .twin-intervention__feedback{grid-column:1!important;grid-row:3!important;font-size:9.5px!important}
    body.page-home .tf-controls .twin-intervention__progress{grid-column:1!important;grid-row:4!important}

    /* Scenario question gets breathing room; rail advertises horizontal continuation. */
    body.page-home .m7h-twin__scenario-panel{position:relative!important;gap:10px!important;margin-top:12px!important;padding-top:12px!important}
    body.page-home .m7h-twin__scenario-intro h3{font-size:clamp(22px,6.25vw,27px)!important;line-height:1.02!important}
    body.page-home .m7h-twin__scenario-panel .m7h-twin__scenarios{
      gap:8px!important;padding:0 26px 3px 0!important;
      -webkit-mask-image:linear-gradient(90deg,#000 0%,#000 calc(100% - 28px),transparent 100%)!important;
      mask-image:linear-gradient(90deg,#000 0%,#000 calc(100% - 28px),transparent 100%)!important
    }
    body.page-home .m7h-twin__scenario-panel .m7h-twin__scenarios button{
      flex:0 0 min(60vw,204px)!important;min-height:56px!important;padding:8px 10px!important;border-radius:9px!important
    }
    body.page-home .m7h-twin__scenario-panel .m7h-twin__scenarios button>strong{font-size:11.5px!important;line-height:1.18!important}
    body.page-home .m7h-twin__scenario-panel .m7h-twin__scenarios button[aria-pressed='true']{
      border-color:rgba(139,207,154,.48)!important;background:linear-gradient(180deg,rgba(139,207,154,.095),rgba(139,207,154,.035))!important
    }

    /* Finding is readable again: one statement, then two compact rows. */
    body.page-home .m7h-twin__finding{display:grid!important;grid-template-columns:1fr!important;margin-top:10px!important}
    body.page-home .m7h-twin__finding>div{padding:9px 10px!important;border-right:0!important;border-bottom:1px solid rgba(247,245,242,.07)!important}
    body.page-home .m7h-twin__finding>div:last-child{border-bottom:0!important}
    body.page-home .m7h-twin__finding>div:first-child{grid-column:1!important}
    body.page-home .m7h-twin__finding>div:nth-child(2),
    body.page-home .m7h-twin__finding>.m7h-twin__decision{
      display:grid!important;grid-template-columns:54px minmax(0,1fr)!important;align-items:start!important;gap:8px!important
    }
    body.page-home .m7h-twin__finding span{font-size:6.8px!important;padding-top:2px!important}
    body.page-home .m7h-twin__finding strong{font-size:15px!important;line-height:1.18!important}
    body.page-home .m7h-twin__finding p,
    body.page-home .m7h-twin__finding b{font-size:11px!important;line-height:1.36!important}
    body.page-home .m7h-twin__decision{padding:9px 10px!important}

    body.page-home .m7h-twin__actions{grid-template-columns:minmax(0,1.7fr) minmax(0,.8fr)!important;gap:8px!important;margin-top:10px!important}
    body.page-home .m7h-twin__actions .m7h-action{min-height:38px!important;padding:9px 10px!important;font-size:11.2px!important}
    body.page-home .m7h-twin__actions>a:not(.m7h-action){font-size:9.8px!important;white-space:normal!important;line-height:1.25!important;text-align:right!important}
  }
}
