/* Battke Waage Dashboard Design wie Mockup */
.bw-app-shell{background:#151b22;color:#fff;padding:18px;border-radius:18px;font-family:inherit;box-shadow:0 18px 55px rgba(0,0,0,.24)}
.bw-app-shell *{box-sizing:border-box}.bw-dashboard-header{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}.bw-brand{display:flex;align-items:center;gap:14px;font-size:24px;font-weight:900;letter-spacing:.02em}.bw-brand-icon{font-size:28px}.bw-header-right{display:flex;align-items:center;gap:16px}.bw-header-right .battke-waage-scale-select{margin:0}.bw-header-right .battke-waage-scale-select label{display:none}.bw-header-right select{background:transparent;color:#fff;border:0;font-weight:800;min-width:110px}.bw-online-badge{display:inline-flex;align-items:center;gap:.45rem;padding:.62rem 1rem;border-radius:999px;font-weight:900;letter-spacing:.03em}.bw-online-badge.is-online,.bw-header-meta [data-bw-status].is-online{background:rgba(93,187,80,.22);color:#75e066}.bw-online-badge.is-offline,.bw-header-meta [data-bw-status].is-offline{background:rgba(224,87,87,.22);color:#ff7474}.bw-wifi{font-size:1.1em}
.bw-dashboard{width:100%}.bw-layout{display:grid;grid-template-columns:minmax(320px,.95fr) minmax(420px,1.55fr) minmax(280px,.75fr);gap:18px;align-items:start}.bw-left,.bw-center-col,.bw-right{display:flex;flex-direction:column;gap:18px}.bw-card{background:linear-gradient(180deg,rgba(38,48,60,.88),rgba(31,40,50,.92));border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:20px;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}.bw-card h2,.bw-card h3{color:#fff;margin-top:0}.bw-recipe-card h2{font-size:28px;line-height:1.15}.bw-factor-line{font-size:18px;margin:.6rem 0 2rem}.bw-factor-pill{display:inline-block;background:#2b70d7;color:#fff;border-radius:6px;padding:.15rem .55rem;font-weight:900}.bw-ingredients-table-wrap{overflow:auto;margin:0 -20px}.bw-ingredients-table{width:100%;border-collapse:collapse;color:#fff}.bw-ingredients-table th,.bw-ingredients-table td{padding:10px 14px;border-top:1px solid rgba(255,255,255,.08);border-right:1px solid rgba(255,255,255,.06)}.bw-ingredients-table th{text-align:left;color:#c8d2df;font-weight:500}.bw-ingredients-table td:nth-child(2),.bw-ingredients-table td:nth-child(3),.bw-ingredients-table td:nth-child(4),.bw-ingredients-table th:nth-child(2),.bw-ingredients-table th:nth-child(3),.bw-ingredients-table th:nth-child(4){text-align:center}.bw-ingredients-table tr.is-current td{background:rgba(224,87,87,.20);color:#fff}.bw-ingredients-table tr.is-done td{background:rgba(93,187,80,.18);color:#fff}.bw-total-row{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid rgba(255,255,255,.08);margin-top:20px;padding-top:20px;font-size:16px}.bw-total-row strong{font-size:26px;color:#5dbb50}.bw-unit-note{font-size:.94em;color:#c5d0df;margin-top:18px;line-height:1.55}.bw-gauge-card{padding:14px 12px 0}.bw-tolerance-legend{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid rgba(255,255,255,.09);border-radius:8px;margin:22px auto 18px;max-width:760px;overflow:hidden;background:rgba(255,255,255,.03)}.bw-tolerance-legend>div{padding:14px 12px;border-right:1px solid rgba(255,255,255,.08);font-size:14px}.bw-tolerance-legend>div:last-child{border-right:0}.bw-tolerance-legend small{display:block;margin-top:8px;color:#d9e2ec}.dot{display:inline-block;width:16px;height:16px;border-radius:50%;margin-right:8px;vertical-align:-3px}.dot.red{background:#d73535}.dot.yellow{background:#f4c217}.dot.green{background:#4da33e}.bw-actual-card{text-align:center}.bw-actual-card h3{font-size:20px;letter-spacing:.02em}.bw-actual-weight{font-size:clamp(52px,7vw,78px);font-weight:950;line-height:1.05}.bw-info-grid{display:grid;grid-template-columns:1fr auto;gap:18px 24px;color:#e9eef5}.bw-info-grid span{color:#d3dce8}.bw-info-grid strong{text-align:right}.bw-actions{display:flex;flex-direction:column;gap:10px}.bw-actions .button{min-height:44px!important;border-radius:6px!important;font-weight:800!important}.bw-danger{background:#d62f2f!important;border-color:#d62f2f!important;color:#fff!important}.battke-waage-recipe-notes{min-height:180px;color:#dce5ee}.battke-waage-recipe-notes h3{color:#fff}.battke-waage-components{list-style:none;margin:1rem 0;padding:0;display:grid;gap:.55rem}.battke-waage-components li button{width:100%;min-height:46px;text-align:left;display:flex;justify-content:space-between;gap:1rem;align-items:center;border-radius:8px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);color:#fff;padding:10px 12px}.battke-waage-components li.is-current button{outline:2px solid #e05757;background:rgba(224,87,87,.16)}.battke-waage-components li.is-done button{background:rgba(93,187,80,.18);outline:1px solid rgba(93,187,80,.55)}.bw-comp-target{font-weight:900;white-space:nowrap}.battke-waage-display{text-align:center;color:#d9e2ec;font-size:18px}.bw-footer-bar{margin-top:24px;border:1px solid rgba(255,255,255,.08);border-radius:8px;background:rgba(38,48,60,.72);overflow:hidden}.bw-tabs{display:flex;gap:10px;padding:12px;border-bottom:1px solid rgba(255,255,255,.08)}.bw-tabs button,.bw-footer-actions .button{border:1px solid transparent;background:rgba(255,255,255,.06);color:#fff;border-radius:6px;padding:10px 16px}.bw-tabs button.is-active{background:#1f5ead;border-color:#2b70d7}.bw-footer-actions{display:flex;justify-content:space-between;gap:14px;padding:18px}.battke-waage-recipe-search{width:100%;box-sizing:border-box;background:#151b22;color:#fff;padding:24px;border-radius:18px;box-shadow:0 12px 40px rgba(0,0,0,.18)}.battke-waage-recipe-search select,.battke-waage-recipe-search input,.battke-waage-scale-select select{width:100%;max-width:100%;min-height:46px;border-radius:12px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:inherit;padding:8px 12px}.battke-waage-recipe-search label{font-weight:700;margin-top:14px;display:block}.battke-waage-factor-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:.5rem;margin:.75rem 0}.battke-waage-factor-buttons .button.is-active{outline:2px solid #5dbb50}.battke-waage-start-button{width:100%;margin-top:.75rem!important;min-height:52px!important;font-weight:800!important}.battke-waage-rawdata{white-space:pre-wrap;overflow:auto;max-height:160px}.battke-waage-modal{position:fixed;inset:0;background:rgba(0,0,0,.55);display:none;align-items:center;justify-content:center;z-index:999999;padding:1rem}.battke-waage-modal.is-open{display:flex}.battke-waage-modal-box{background:#202832;color:#fff;max-width:560px;width:100%;border:1px solid rgba(255,255,255,.14);border-radius:18px;padding:24px;box-shadow:0 18px 55px rgba(0,0,0,.35)}.battke-waage-modal-text{font-size:1.2rem;margin-bottom:1rem;white-space:pre-wrap}.battke-waage-modal-ok{width:100%;min-height:48px!important}
@media(max-width:1180px){.bw-layout{grid-template-columns:1fr;}.bw-tolerance-legend{grid-template-columns:1fr 1fr}.bw-tolerance-legend>div{border-bottom:1px solid rgba(255,255,255,.08)}}@media(max-width:680px){.bw-app-shell{padding:12px}.bw-dashboard-header{flex-direction:column;align-items:flex-start}.bw-header-right{width:100%;justify-content:space-between}.bw-card{padding:14px}.bw-ingredients-table-wrap{margin:0 -14px}.bw-tolerance-legend{grid-template-columns:1fr}.bw-footer-actions{flex-direction:column}.bw-brand{font-size:20px}}

/* v1.3.0 Tablet-/Waagen-Layout */
.bw-app-shell{height:100vh;max-height:100vh;overflow:hidden;display:flex;flex-direction:column}
.bw-dashboard{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.bw-layout{flex:1;min-height:0;overflow:hidden}
.bw-left,.bw-center-col,.bw-right{min-height:0;overflow:hidden}
.bw-recipe-card{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.bw-ingredients-table-wrap{flex:1;min-height:140px;max-height:calc(100vh - 360px);overflow-y:auto;overflow-x:hidden}
.bw-total-actions{display:flex;justify-content:flex-start;margin-top:14px}
.bw-total-actions .bw-tara-button{min-width:180px;min-height:44px!important;border-radius:8px!important;font-weight:800!important}
.bw-footer-bar{flex:0 0 auto;margin-top:14px}
.bw-footer-actions{padding:12px 18px}
.bw-gauge-card .bw-tolerance-legend{display:none!important}
.bw-weight-target-only{font-size:30px!important;letter-spacing:.08em;color:#d7e0ec!important}
.bw-actual-card{transition:background .25s ease,box-shadow .25s ease,border-color .25s ease;}
.bw-actual-card.is-green{background:linear-gradient(180deg,rgba(55,125,56,.25),rgba(31,40,50,.92));box-shadow:0 0 26px rgba(93,187,80,.28),inset 0 1px 0 rgba(255,255,255,.05);border-color:rgba(93,187,80,.45)}
.bw-actual-card.is-yellow{background:linear-gradient(180deg,rgba(164,130,24,.24),rgba(31,40,50,.92));box-shadow:0 0 26px rgba(244,194,23,.22),inset 0 1px 0 rgba(255,255,255,.05);border-color:rgba(244,194,23,.42)}
.bw-actual-card.is-red{background:linear-gradient(180deg,rgba(150,45,45,.25),rgba(31,40,50,.92));box-shadow:0 0 26px rgba(214,47,47,.26),inset 0 1px 0 rgba(255,255,255,.05);border-color:rgba(214,47,47,.45)}
.battke-waage-modal-actions{display:flex;gap:12px;justify-content:flex-end;align-items:center}.battke-waage-modal-actions .button{min-height:46px!important;min-width:130px!important;border-radius:8px!important;font-weight:800!important}
.battke-waage-saved-sessions{background:#151b22;color:#fff;padding:22px;border-radius:18px;box-shadow:0 12px 40px rgba(0,0,0,.18)}
.bw-saved-table{width:100%;border-collapse:collapse}.bw-saved-table th,.bw-saved-table td{padding:10px 12px;border-top:1px solid rgba(255,255,255,.1);text-align:left}.bw-saved-table th{color:#cbd6e3}.bw-saved-table .button{margin:2px!important}
@media(max-width:1180px){.bw-app-shell{height:auto;min-height:100vh;overflow:auto}.bw-layout{overflow:visible}.bw-left,.bw-center-col,.bw-right{overflow:visible}.bw-ingredients-table-wrap{max-height:42vh}}


/* v1.3.1 Feinjustierung */
.bw-gauge .bw-center .bw-weight-target-only{display:none!important}
.bw-target-big{margin-top:18px!important;transform:translateY(10px);font-weight:950!important}
.bw-actual-card{margin-top:24px!important}
.bw-actual-card.is-green .bw-actual-weight{color:#75e066;text-shadow:0 0 18px rgba(93,187,80,.45)}
.bw-actual-card.is-yellow .bw-actual-weight{color:#f4c217;text-shadow:0 0 18px rgba(244,194,23,.38)}
.bw-actual-card.is-red .bw-actual-weight{color:#ff7474;text-shadow:0 0 18px rgba(214,47,47,.42)}
.bw-tara-button{font-weight:900!important}


/* v1.3.2 Großer Button unter Istgewicht */
.bw-next-ingredient-button{margin-top:18px!important;width:100%;min-height:64px!important;border-radius:12px!important;font-size:clamp(20px,2.4vw,28px)!important;font-weight:950!important;background:#2b70d7!important;border-color:#2b70d7!important;color:#fff!important;box-shadow:0 12px 28px rgba(43,112,215,.24)!important}
.bw-next-ingredient-button:disabled{opacity:.45!important;cursor:not-allowed!important;filter:grayscale(.35)}
.bw-actual-card .bw-next-ingredient-button:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(43,112,215,.34)!important}


/* v1.3.3 Tablet-Optimierung und Rezeptauswahl im gleichen Design */
.bw-app-shell{width:100%;max-width:100%;}
.bw-dashboard-header{flex:0 0 auto;}
.bw-layout{grid-template-columns:minmax(280px,.9fr) minmax(360px,1.35fr) minmax(260px,.78fr);}
.bw-card{min-width:0;}
.bw-recipe-card,.bw-process-info,.battke-waage-recipe-notes,.bw-actions-card,.bw-actual-card{overflow:hidden;}
.bw-ingredients-table-wrap{scrollbar-width:thin;}
.bw-ingredients-table th,.bw-ingredients-table td{font-size:clamp(13px,1.2vw,16px);}
.bw-actions .button,.bw-footer-actions .button,.bw-tara-button{min-height:52px!important;font-size:16px!important;}
.bw-recipe-search-screen{height:min(100vh,100dvh);max-height:100vh;overflow:hidden;display:flex;flex-direction:column;gap:18px;background:#151b22;color:#fff;border-radius:18px;padding:18px;box-shadow:0 18px 55px rgba(0,0,0,.24)}
.bw-recipe-search-screen .bw-recipe-search-header{margin-bottom:0;}
.bw-recipe-search-grid{flex:1;min-height:0;display:grid;grid-template-columns:minmax(320px,1.2fr) minmax(280px,.9fr) minmax(260px,.75fr);gap:18px;align-items:stretch;overflow:hidden;}
.bw-recipe-search-grid .bw-card{display:flex;flex-direction:column;min-height:0;}
.bw-recipe-search-grid h2{font-size:clamp(22px,2.2vw,30px);margin:0 0 18px;}
.bw-recipe-picker-card select[data-bw-recipe-select]{min-height:58px;font-size:18px;font-weight:800;}
.bw-recipe-picker-card .battke-waage-recipe-info{margin-top:16px;line-height:1.55;color:#d8e2ef;overflow:auto;min-height:80px;}
.bw-factor-card input[data-bw-factor]{min-height:58px;font-size:26px;font-weight:900;text-align:center;}
.bw-start-card{justify-content:space-between;}
.bw-start-card .battke-waage-scale-select{margin-bottom:18px;}
.bw-start-card .battke-waage-start-button{min-height:72px!important;border-radius:12px!important;font-size:clamp(20px,2.4vw,28px)!important;background:#2b70d7!important;border-color:#2b70d7!important;color:#fff!important;box-shadow:0 12px 28px rgba(43,112,215,.24)!important;}
.battke-waage-recipe-search select,.battke-waage-recipe-search input,.battke-waage-scale-select select{background:#202a35;color:#fff;border-color:rgba(255,255,255,.14);}
.battke-waage-recipe-search option,.battke-waage-scale-select option{background:#202a35;color:#fff;}
@media(max-width:1280px){.bw-layout{grid-template-columns:minmax(260px,.88fr) minmax(330px,1.18fr) minmax(240px,.72fr);gap:14px}.bw-card{padding:16px}.bw-recipe-card h2{font-size:24px}.bw-info-grid{gap:12px 16px}.bw-ingredients-table-wrap{max-height:calc(100vh - 330px)}}
@media(max-width:1024px){.bw-app-shell{height:auto;min-height:100vh;overflow:auto}.bw-layout{grid-template-columns:1fr 1fr;overflow:visible}.bw-left{grid-column:1 / -1}.bw-right{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;align-items:start}.bw-actions-card{grid-column:1 / -1}.bw-ingredients-table-wrap{max-height:32vh}.bw-recipe-search-screen{height:auto;min-height:100vh;max-height:none;overflow:auto}.bw-recipe-search-grid{grid-template-columns:1fr 1fr;overflow:visible}.bw-start-card{grid-column:1 / -1}.bw-recipe-picker-card .battke-waage-recipe-info{max-height:24vh}}
@media(max-width:760px){.bw-layout,.bw-right,.bw-recipe-search-grid{grid-template-columns:1fr}.bw-header-right{flex-wrap:wrap}.bw-brand{font-size:18px}.bw-actual-weight{font-size:52px}.bw-recipe-search-screen{padding:12px}.bw-start-card .battke-waage-start-button{min-height:62px!important}.bw-footer-actions{flex-direction:column}.bw-footer-actions .button{width:100%}}


/* v1.3.5 Korrektur: stabiles Waagenlayout beibehalten, nur Schrift/Tablet-Fit verbessern */
.bw-app-shell{font-size:clamp(13px,1.05vw,16px);}
.bw-brand{font-size:clamp(18px,1.7vw,24px);}
.bw-brand-icon{font-size:clamp(22px,2vw,28px);}
.bw-card h2{font-size:clamp(20px,2vw,28px);line-height:1.15;}
.bw-card h3{font-size:clamp(16px,1.35vw,20px);line-height:1.2;}
.bw-recipe-card h2{font-size:clamp(21px,2vw,28px);}
.bw-factor-line{font-size:clamp(14px,1.25vw,18px);}
.bw-total-row{font-size:clamp(13px,1.1vw,16px);}
.bw-total-row strong{font-size:clamp(20px,2vw,26px);}
.bw-info-grid{font-size:clamp(13px,1.05vw,16px);}
.bw-actions .button,.bw-footer-actions .button,.bw-tara-button{font-size:clamp(13px,1.1vw,16px)!important;}
.battke-waage-components li button{font-size:clamp(13px,1.05vw,16px);}
.bw-comp-target{font-size:clamp(12px,1vw,15px);}
.bw-actual-card h3{font-size:clamp(15px,1.25vw,20px);}
.bw-online-badge{font-size:clamp(12px,1vw,15px);}
.bw-unit-note{font-size:clamp(12px,.95vw,15px);}
.bw-next-ingredient-button{font-size:clamp(18px,2vw,28px)!important;}

/* v1.3.5 Rezeptsuche: gleicher Stil, untereinander, volle Tablet-Höhe */
.battke-waage-recipe-search{height:min(100vh,100dvh);max-height:100vh;overflow:hidden;padding:0;background:transparent;box-shadow:none;border-radius:0;}
.bw-recipe-search-screen{height:min(100vh,100dvh)!important;min-height:100vh!important;max-height:100vh!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;gap:clamp(10px,1.2vw,16px)!important;padding:clamp(12px,1.3vw,18px)!important;border-radius:18px;background:#151b22;color:#fff;}
.bw-recipe-search-header{flex:0 0 auto;}
.bw-recipe-search-grid{flex:1 1 auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;grid-template-columns:none!important;gap:clamp(10px,1.2vw,16px)!important;align-items:stretch!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:2px;}
.bw-recipe-search-grid .bw-card{width:100%;min-height:auto!important;display:flex;flex-direction:column;overflow:visible;}
.bw-recipe-search-grid h2{font-size:clamp(18px,1.7vw,26px)!important;line-height:1.15;margin:0 0 clamp(10px,1.1vw,16px)!important;}
.bw-recipe-search-grid label{font-size:clamp(13px,1vw,15px);margin-top:clamp(8px,1vw,12px);}
.bw-recipe-picker-card select[data-bw-recipe-select],
.bw-factor-card input[data-bw-factor],
.bw-start-card .battke-waage-scale-select select{min-height:clamp(46px,4.6vw,58px)!important;font-size:clamp(15px,1.3vw,18px)!important;}
.bw-factor-card input[data-bw-factor]{font-size:clamp(18px,2vw,26px)!important;}
.bw-factor-card .battke-waage-factor-buttons{grid-template-columns:repeat(auto-fit,minmax(58px,1fr));}
.bw-factor-card .battke-waage-factor-buttons .button{min-height:clamp(42px,4.2vw,52px)!important;font-size:clamp(13px,1vw,15px)!important;}
.bw-recipe-picker-card .battke-waage-recipe-info{max-height:clamp(90px,18vh,190px)!important;overflow:auto!important;font-size:clamp(13px,1vw,15px);line-height:1.45;}
.bw-start-card .battke-waage-start-button{min-height:clamp(56px,5.6vw,72px)!important;font-size:clamp(17px,1.8vw,26px)!important;}
.bw-start-card .battke-waage-scale-select{margin-bottom:clamp(10px,1.2vw,18px)!important;}

@media(max-width:1024px){
  .bw-card{padding:14px;}
  .bw-recipe-card h2{font-size:20px;}
  .bw-actual-weight{font-size:clamp(42px,6vw,64px);}
  .bw-target-small{font-size:clamp(18px,2.8vw,28px)!important;}
  .bw-next-ingredient-button{min-height:58px!important;}
  .bw-recipe-search-screen{border-radius:14px!important;}
}
@media(max-width:760px){
  .bw-app-shell{font-size:13px;}
  .bw-ingredients-table th,.bw-ingredients-table td{font-size:12px;padding:8px 9px;}
  .bw-recipe-search-grid{gap:10px!important;}
  .bw-recipe-search-grid .bw-card{padding:12px;}
}


/* v1.3.6 kompaktere Rezeptsuche, weiterhin untereinander und 100vh */
.battke-waage-recipe-search,
.bw-recipe-search-screen{height:min(100vh,100dvh)!important;max-height:100vh!important;overflow:hidden!important;}
.bw-recipe-search-screen{gap:8px!important;padding:10px!important;border-radius:14px!important;}
.bw-recipe-search-header{min-height:auto!important;padding:8px 10px!important;}
.bw-recipe-search-header .bw-brand{font-size:clamp(16px,1.6vw,22px)!important;}
.bw-recipe-search-grid{gap:8px!important;overflow-y:auto!important;min-height:0!important;}
.bw-recipe-search-grid .bw-card{padding:10px 12px!important;border-radius:10px!important;}
.bw-recipe-search-grid h2{font-size:clamp(16px,1.45vw,22px)!important;margin:0 0 7px!important;}
.bw-recipe-search-grid label{font-size:clamp(12px,.95vw,14px)!important;margin-top:5px!important;margin-bottom:4px!important;}
.bw-recipe-picker-card select[data-bw-recipe-select],
.bw-factor-card input[data-bw-factor],
.bw-start-card .battke-waage-scale-select select{min-height:38px!important;font-size:clamp(13px,1.1vw,16px)!important;border-radius:9px!important;padding:6px 9px!important;}
.bw-factor-card input[data-bw-factor]{font-size:clamp(16px,1.65vw,22px)!important;}
.bw-factor-card .battke-waage-factor-buttons{grid-template-columns:repeat(auto-fit,minmax(52px,1fr))!important;gap:6px!important;margin:7px 0!important;}
.bw-factor-card .battke-waage-factor-buttons .button{min-height:34px!important;font-size:12px!important;padding:4px 8px!important;}
.bw-recipe-picker-card .battke-waage-recipe-info,
.bw-factor-card .battke-waage-made-info{font-size:12px!important;line-height:1.32!important;max-height:72px!important;overflow:auto!important;margin-top:6px!important;}
.bw-start-card .battke-waage-start-button{min-height:46px!important;font-size:clamp(15px,1.5vw,21px)!important;margin-top:8px!important;border-radius:10px!important;}
.bw-start-card .battke-waage-scale-select{margin-bottom:8px!important;}
@media (max-width: 1024px){
  .bw-recipe-search-screen{padding:8px!important;gap:7px!important;}
  .bw-recipe-search-grid .bw-card{padding:9px 10px!important;}
  .bw-recipe-search-grid h2{font-size:16px!important;}
}

/* v1.3.8 Favoriten und Faktor-Feld im Waagen-Design */
.bw-favorites-card{flex:0 0 auto!important;}
.bw-favorites-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;max-height:120px;overflow:auto;padding-right:2px;}
.bw-favorite-chip{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:2px!important;min-height:44px!important;border-radius:10px!important;background:rgba(43,112,215,.18)!important;border:1px solid rgba(82,146,235,.36)!important;color:#fff!important;text-align:left!important;padding:7px 10px!important;white-space:normal!important;line-height:1.15!important;}
.bw-favorite-chip span{font-weight:850;font-size:clamp(12px,1vw,14px);}
.bw-favorite-chip small{opacity:.78;font-size:11px;}
.bw-favorites-empty,.bw-favorites-note{color:#cbd6e3;font-size:12px;line-height:1.35;margin:4px 0 0;}
.bw-favorite-toggle{width:100%;min-height:38px!important;margin-top:8px!important;border-radius:10px!important;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.13)!important;color:#fff!important;font-weight:850!important;}
.bw-favorite-toggle.is-favorite{background:rgba(244,194,23,.16)!important;border-color:rgba(244,194,23,.42)!important;color:#ffe07a!important;}
.bw-factor-card input[data-bw-factor]{appearance:textfield!important;background:linear-gradient(180deg,#263241,#1d2632)!important;border:1px solid rgba(93,187,80,.42)!important;color:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 0 0 3px rgba(93,187,80,.08)!important;letter-spacing:.02em!important;}
.bw-factor-card input[data-bw-factor]:focus{outline:none!important;border-color:#5dbb50!important;box-shadow:0 0 0 3px rgba(93,187,80,.22),0 12px 28px rgba(0,0,0,.18)!important;}
.bw-factor-card input[data-bw-factor]::-webkit-outer-spin-button,
.bw-factor-card input[data-bw-factor]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
@media(max-width:1024px){.bw-favorites-list{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));max-height:92px}.bw-favorite-chip{min-height:38px!important;padding:6px 8px!important}.bw-favorites-note{display:none}}


/* v1.3.9 Favoriten kompakt: 5 pro Reihe, 2 Reihen, responsive */
.bw-recipe-search-grid{gap:clamp(7px,1vw,12px)!important;}
.bw-recipe-picker-card{padding-bottom:clamp(8px,1vw,14px)!important;}
.bw-recipe-picker-card .battke-waage-recipe-info{min-height:0!important;max-height:46px!important;margin-top:5px!important;padding-bottom:0!important;}
.bw-favorites-list{grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-auto-rows:minmax(36px,auto)!important;max-height:96px!important;overflow-y:auto!important;overflow-x:hidden!important;gap:6px!important;padding-right:2px!important;}
.bw-favorite-chip{min-width:0!important;min-height:38px!important;padding:6px 7px!important;border-radius:9px!important;}
.bw-favorite-chip span{display:block!important;width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:clamp(10.5px,.92vw,13px)!important;}
.bw-favorite-chip small{font-size:10px!important;line-height:1!important;}
.bw-favorites-note{margin-top:3px!important;font-size:11px!important;}
@media(max-width:900px){
  .bw-favorites-list{grid-template-columns:repeat(5,minmax(0,1fr))!important;max-height:82px!important;gap:5px!important;}
  .bw-favorite-chip{min-height:34px!important;padding:5px 6px!important;}
  .bw-favorite-chip span{font-size:10.5px!important;}
  .bw-favorite-chip small{display:none!important;}
}
@media(max-width:620px){
  .bw-favorites-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-height:148px!important;}
  .bw-favorite-chip small{display:block!important;}
}


/* v1.4.0 Aktiver Favorit + ausgewähltes Rezept optisch hervorheben */
.bw-favorite-chip:hover,
.bw-favorite-chip:focus-visible{
  transform:translateY(-1px)!important;
  border-color:rgba(93,187,80,.62)!important;
  box-shadow:0 0 0 2px rgba(93,187,80,.12),0 10px 22px rgba(0,0,0,.22)!important;
}
.bw-favorite-chip.is-active{
  background:linear-gradient(180deg,rgba(93,187,80,.30),rgba(50,135,44,.20))!important;
  border-color:rgba(93,187,80,.78)!important;
  color:#f5fff3!important;
  box-shadow:0 0 0 2px rgba(93,187,80,.18),0 0 24px rgba(93,187,80,.20)!important;
}
.bw-favorite-chip.is-active span{color:#ffffff!important;text-shadow:0 0 10px rgba(93,187,80,.35)!important;}
.bw-favorite-chip.is-active small{color:#dfffd9!important;opacity:.96!important;}
.bw-recipe-picker-card.has-active-favorite{
  border-color:rgba(93,187,80,.50)!important;
  box-shadow:inset 0 0 0 1px rgba(93,187,80,.14),0 16px 34px rgba(0,0,0,.24)!important;
}
.bw-recipe-picker-card.has-active-favorite select[data-bw-recipe-select],
.battke-waage-recipe-info.has-active-favorite{
  border-color:rgba(93,187,80,.58)!important;
  box-shadow:0 0 0 3px rgba(93,187,80,.10)!important;
}
.battke-waage-recipe-info.has-active-favorite::before{
  content:"Favorit ausgewählt";
  display:block;
  margin-bottom:3px;
  color:#9df08f;
  font-size:11px;
  font-weight:850;
  letter-spacing:.03em;
  text-transform:uppercase;
}
