/* StarBy — Estoque manual de insumos e ficha técnica */
#tab-inventory{padding:0;background:transparent}
.starby-inventory-shell{display:grid;gap:18px;max-width:1500px;margin:0 auto}
.starby-inventory-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;border:1px solid rgba(167,139,250,.28);border-radius:24px;background:linear-gradient(145deg,rgba(20,14,43,.98),rgba(9,8,24,.98));box-shadow:0 22px 60px rgba(31,14,74,.24)}
.starby-inventory-hero:before{content:"";position:absolute;width:390px;height:390px;right:-145px;top:-240px;border-radius:50%;background:radial-gradient(circle,rgba(139,92,246,.38),transparent 68%);pointer-events:none}
.starby-inventory-hero-copy,.starby-inventory-hero-actions{position:relative;z-index:1}
.starby-inventory-kicker{display:block;color:#a78bfa;font-size:.72rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase;margin-bottom:7px}
.starby-inventory-hero h2{margin:0;color:#fff;font-size:clamp(1.4rem,2vw,2rem)}
.starby-inventory-hero p{margin:8px 0 0;color:#aaa5bd;max-width:760px;line-height:1.55}
.starby-inventory-hero-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.starby-inventory-hero-actions button{min-height:44px;border-radius:13px;padding:0 16px;font-weight:800}
.starby-inventory-secondary,.starby-stock-modal .secondary{background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.13)!important;color:#eee!important}
.starby-inventory-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.starby-inventory-kpi{padding:18px;border-radius:20px;border:1px solid rgba(167,139,250,.18);background:linear-gradient(145deg,rgba(19,17,39,.97),rgba(10,10,24,.98));min-height:116px;display:flex;flex-direction:column;justify-content:space-between}
.starby-inventory-kpi span{font-size:.78rem;color:#aaa5bd;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.starby-inventory-kpi strong{font-size:1.8rem;color:#fff}
.starby-inventory-kpi small{color:#827e91}
.starby-inventory-kpi.is-warning{border-color:rgba(245,158,11,.36)}
.starby-inventory-kpi.is-danger{border-color:rgba(239,68,68,.4)}
.starby-inventory-panel{border:1px solid rgba(167,139,250,.2);border-radius:22px;background:rgba(11,10,26,.97);overflow:hidden}
.starby-stock-views{display:flex;gap:5px;padding:9px;border-bottom:1px solid rgba(255,255,255,.08);overflow:auto;background:rgba(255,255,255,.018)}
.starby-stock-view-btn{display:flex;align-items:center;gap:8px;white-space:nowrap;min-height:42px;padding:0 14px;border-radius:12px;background:transparent!important;border:1px solid transparent!important;color:#aaa5bd!important;font-weight:800}
.starby-stock-view-btn span{display:grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:rgba(255,255,255,.07);font-size:.7rem}
.starby-stock-view-btn.active{color:#fff!important;background:linear-gradient(135deg,rgba(124,58,237,.45),rgba(168,85,247,.24))!important;border-color:rgba(167,139,250,.34)!important}
.starby-inventory-toolbar{padding:16px;display:grid;grid-template-columns:minmax(260px,1fr) 210px auto auto auto;gap:10px;border-bottom:1px solid rgba(255,255,255,.08)}
.starby-inventory-toolbar input,.starby-inventory-toolbar select{height:44px;margin:0;border-radius:12px;background:#111025;border:1px solid rgba(167,139,250,.24);color:#fff}
.starby-inventory-toolbar button{height:44px;border-radius:12px;white-space:nowrap}
.starby-recipe-toolbar{grid-template-columns:1fr auto}
.starby-history-toolbar{grid-template-columns:1fr auto}
.starby-stock-inline-info{display:flex;align-items:center;gap:8px;color:#a8a3b6;font-size:.82rem;line-height:1.45}
.starby-stock-inline-info strong{color:#ddd6fe}
.starby-inventory-table-wrap{overflow:auto;max-height:64vh}
.starby-inventory-table{width:100%;border-collapse:collapse;min-width:1050px}
.starby-inventory-table th{position:sticky;top:0;z-index:2;text-align:left;padding:13px 14px;background:#121027;color:#a9a5b9;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em}
.starby-inventory-table td{padding:13px 14px;border-top:1px solid rgba(255,255,255,.065);color:#e7e5ee;vertical-align:middle}
.starby-inventory-product{display:flex;align-items:center;gap:11px;min-width:245px}
.starby-inventory-product img,.starby-ingredient-avatar{width:44px;height:44px;border-radius:12px;object-fit:cover;background:#17152d;flex:0 0 auto}
.starby-ingredient-avatar{display:grid;place-items:center;background:linear-gradient(145deg,#312e81,#7c3aed);color:#fff;font-weight:900;font-size:.78rem}
.starby-inventory-product strong{display:block;color:#fff}
.starby-inventory-product small,.starby-recipe-detail{display:block;color:#8d899c;margin-top:3px;max-width:440px}
.starby-inventory-qty{font-size:1.05rem;font-weight:900}
.starby-inventory-qty.is-low{color:#fbbf24}
.starby-inventory-qty.is-out{color:#fb7185}
.starby-capacity-value{font-size:1.05rem;color:#ddd6fe}
.starby-stock-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 9px;font-size:.72rem;font-weight:900;white-space:nowrap}
.starby-stock-pill:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.starby-stock-pill.is-ok{color:#4ade80;background:rgba(34,197,94,.11)}
.starby-stock-pill.is-low{color:#fbbf24;background:rgba(245,158,11,.12)}
.starby-stock-pill.is-out{color:#fb7185;background:rgba(244,63,94,.12)}
.starby-stock-pill.is-off{color:#9ca3af;background:rgba(156,163,175,.1)}
.starby-inventory-actions{display:flex;gap:7px;justify-content:flex-end}
.starby-inventory-actions button{height:34px;padding:0 10px;border-radius:10px;font-size:.75rem}
.starby-inventory-empty{padding:48px 20px;text-align:center;color:#9792a6}
.starby-inventory-empty strong{display:block;color:#fff;font-size:1.05rem;margin-bottom:6px}
.starby-stock-modal{align-items:center;justify-content:center;padding:14px}
.starby-stock-modal .admin-modal-content{position:relative;width:min(760px,calc(100vw - 28px));max-height:92vh;overflow:auto;border:1px solid rgba(167,139,250,.32);border-radius:22px;background:linear-gradient(155deg,#15122d,#090918);box-shadow:0 30px 90px rgba(0,0,0,.6);padding:24px}
.starby-stock-modal .modal-close{position:absolute;right:14px;top:14px;z-index:5}
.starby-stock-modal-head{display:flex;gap:13px;align-items:center;padding:2px 44px 18px 2px;border-bottom:1px solid rgba(255,255,255,.08)}
.starby-stock-modal-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,#7c3aed,#a855f7);font-size:1.25rem;box-shadow:0 12px 28px rgba(124,58,237,.35)}
.starby-stock-modal-head h2{margin:0;color:#fff}
.starby-stock-modal-head p{margin:5px 0 0;color:#9994a9}
.starby-stock-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:18px}
.starby-stock-form label{display:grid;gap:7px;color:#c7c3d2;font-size:.8rem;font-weight:800}
.starby-stock-form label.full{grid-column:1/-1}
.starby-stock-form input,.starby-stock-form select,.starby-stock-form textarea{margin:0;width:100%;background:#0e0d20;border:1px solid rgba(167,139,250,.24);border-radius:12px;color:#fff}
.starby-stock-form textarea{min-height:84px;resize:vertical}
.starby-stock-toggle{grid-column:1/-1;display:flex!important;align-items:center;justify-content:space-between;padding:13px 14px;border-radius:14px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07)}
.starby-stock-toggle input{width:20px;height:20px}
.starby-stock-help{grid-column:1/-1;padding:12px 14px;border-radius:13px;background:rgba(124,58,237,.1);color:#b8b2c7;font-size:.8rem;line-height:1.5}
.starby-stock-modal-actions{position:sticky;bottom:-1px;margin:18px -2px -2px;padding:14px 2px 2px;display:flex;align-items:center;justify-content:flex-end;gap:10px;background:linear-gradient(transparent,#0a0919 32%)}
.starby-stock-modal-actions button{min-height:43px;border-radius:12px;padding:0 16px;font-weight:900}
.starby-modal-spacer{flex:1}
.starby-stock-history{display:grid;gap:9px;padding:16px}
.starby-stock-history-row{display:grid;grid-template-columns:115px minmax(250px,1fr) 150px 120px;gap:12px;align-items:center;padding:12px;border:1px solid rgba(255,255,255,.07);border-radius:14px;background:rgba(255,255,255,.025)}
.starby-stock-history-row strong{display:block;color:#fff}
.starby-stock-history-row small{display:block;color:#8f8a9e;margin-top:3px}
.starby-stock-movement-value{font-weight:900;text-align:right}
.starby-stock-movement-value.entry,.starby-stock-movement-value.restore,.starby-stock-movement-value.initial{color:#4ade80}
.starby-stock-movement-value.loss,.starby-stock-movement-value.sale{color:#fb7185}
.starby-stock-movement-value.adjustment{color:#60a5fa}
@media(max-width:1100px){
  .starby-inventory-kpis{grid-template-columns:repeat(2,1fr)}
  .starby-inventory-toolbar{grid-template-columns:1fr 1fr}
  .starby-inventory-toolbar input{grid-column:1/-1}
  .starby-recipe-toolbar,.starby-history-toolbar{grid-template-columns:1fr}
}
@media(max-width:700px){
  .starby-inventory-hero{align-items:flex-start;flex-direction:column;padding:18px}
  .starby-inventory-hero-actions{width:100%;justify-content:stretch}
  .starby-inventory-hero-actions button{flex:1}
  .starby-inventory-kpis{grid-template-columns:1fr 1fr;gap:9px}
  .starby-inventory-kpi{padding:14px;min-height:105px}
  .starby-inventory-kpi strong{font-size:1.45rem}
  .starby-inventory-toolbar{grid-template-columns:1fr;padding:12px}
  .starby-inventory-toolbar input{grid-column:auto}
  .starby-stock-form{grid-template-columns:1fr}
  .starby-stock-form label.full,.starby-stock-toggle,.starby-stock-help{grid-column:auto}
  .starby-stock-modal .admin-modal-content{padding:18px 14px}
  .starby-stock-history-row{grid-template-columns:1fr auto}
  .starby-stock-history-row>*:nth-child(2){grid-column:1/-1}
  .starby-stock-history-row>*:nth-child(3){text-align:left}
  .starby-stock-history-row>*:nth-child(4){text-align:right}
  .starby-stock-modal-actions{flex-wrap:wrap}
  .starby-stock-modal-actions button{flex:1}
}

/* Somar estoque — fluxo rápido de entrada manual */
.starby-inventory-add-button{background:linear-gradient(135deg,#7c3aed,#a855f7)!important;border:1px solid rgba(216,180,254,.48)!important;color:#fff!important;box-shadow:0 11px 25px rgba(124,58,237,.3)}
.starby-inventory-add-button:hover{filter:brightness(1.08)}
.starby-stock-sum-action{background:rgba(34,197,94,.12)!important;border:1px solid rgba(74,222,128,.3)!important;color:#86efac!important}
.starby-stock-balance-card{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 17px;border-radius:16px;border:1px solid rgba(167,139,250,.22);background:linear-gradient(135deg,rgba(124,58,237,.11),rgba(255,255,255,.025))}
.starby-stock-balance-card div{display:grid;gap:5px}
.starby-stock-balance-card div span{color:#aaa5bd;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.055em}
.starby-stock-balance-card div strong{color:#fff;font-size:1.35rem}
.starby-stock-sum-preview{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:7px 18px;align-items:center;padding:17px;border-radius:16px;border:1px solid rgba(74,222,128,.2);background:linear-gradient(145deg,rgba(20,83,45,.14),rgba(8,28,20,.2))}
.starby-stock-sum-preview>span{color:#aaa5bd;font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.045em}
.starby-stock-sum-preview>strong{color:#86efac;font-size:1.1rem;text-align:right}
.starby-stock-sum-preview .starby-new-stock-total{font-size:1.42rem;color:#fff}
.starby-stock-sum-preview>small{grid-column:1/-1;color:#9893a8;border-top:1px solid rgba(255,255,255,.07);padding-top:10px;margin-top:4px;line-height:1.45}
.starby-stock-form label small{font-weight:600;color:#8d899c}
@media(max-width:700px){
  .starby-stock-balance-card{align-items:flex-start;flex-direction:column}
  .starby-stock-sum-preview{grid-template-columns:1fr auto}
  .starby-inventory-actions{flex-wrap:wrap;min-width:210px}
}

/* Estoque geral v6 — cards, compras e níveis Normal/Atenção/Urgência */
.starby-inventory-commandbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:13px;border:1px solid rgba(167,139,250,.2);border-radius:18px;background:rgba(13,12,31,.92)}
.starby-inventory-commandbar button{min-height:44px;border-radius:12px;padding:0 16px;font-weight:900}
.starby-inventory-primary-button{background:linear-gradient(135deg,#6d28d9,#a855f7)!important;border:1px solid rgba(216,180,254,.5)!important;color:#fff!important;box-shadow:0 11px 25px rgba(124,58,237,.32)}
.starby-inventory-primary-button:hover{filter:brightness(1.08)}
.starby-inventory-purchases-button{display:inline-flex;align-items:center;gap:9px;background:linear-gradient(135deg,rgba(245,158,11,.18),rgba(168,85,247,.18))!important;border:1px solid rgba(245,158,11,.35)!important;color:#fde68a!important}
.starby-inventory-purchases-button span{display:grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:999px;background:#ef4444;color:#fff;font-size:.7rem}
.starby-inventory-card-toolbar{grid-template-columns:minmax(250px,1fr) 210px auto}
.starby-inventory-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:16px;overflow:visible;max-height:none}
.starby-inventory-item-card{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(230px,.8fr) minmax(300px,1.15fr) minmax(260px,.85fr);align-items:center;gap:14px;padding:15px 48px 15px 17px;border-radius:18px;border:1px solid rgba(255,255,255,.09);background:linear-gradient(145deg,rgba(20,18,42,.98),rgba(10,9,25,.98));box-shadow:0 12px 28px rgba(0,0,0,.16);min-width:0}
.starby-inventory-item-card:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#8b5cf6}
.starby-inventory-item-card.is-normal:before{background:#22c55e}
.starby-inventory-item-card.is-attention:before{background:#f59e0b}
.starby-inventory-item-card.is-urgent:before{background:#ef4444}
.starby-inventory-item-card.is-off:before{background:#6b7280}
.starby-inventory-delete-item{position:absolute;top:8px;right:8px;z-index:3;display:grid!important;place-items:center;width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border-radius:9px!important;background:rgba(239,68,68,.12)!important;border:1px solid rgba(248,113,113,.32)!important;color:#fca5a5!important;font-size:1.2rem!important;font-weight:900!important;line-height:1!important;opacity:.82;transition:transform .18s ease,opacity .18s ease,background .18s ease!important}
.starby-inventory-delete-item:hover{opacity:1;background:rgba(239,68,68,.24)!important;color:#fff!important}
.starby-inventory-delete-item:focus-visible{outline:2px solid #fca5a5;outline-offset:2px}
.starby-inventory-item-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:11px;align-items:center;min-width:0}
.starby-inventory-item-head>.starby-stock-pill{grid-column:1/-1;justify-self:start;margin-left:55px}
.starby-inventory-item-head .starby-ingredient-avatar{font-size:1.12rem}
.starby-inventory-item-head h3{margin:2px 0 0;color:#fff;font-size:1.02rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.starby-inventory-item-head>div:nth-child(2)>span{color:#918ca1;font-size:.7rem;text-transform:uppercase;font-weight:900;letter-spacing:.055em}
.starby-inventory-item-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.starby-inventory-item-metrics>div{display:grid;gap:5px;padding:11px;border:1px solid rgba(255,255,255,.07);border-radius:13px;background:rgba(255,255,255,.025)}
.starby-inventory-item-metrics span{color:#908b9d;font-size:.68rem;text-transform:uppercase;font-weight:900;letter-spacing:.045em}
.starby-inventory-item-metrics strong{color:#fff;font-size:.94rem;line-height:1.25}
.starby-inventory-item-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0}
.starby-inventory-item-actions button{min-height:38px;border-radius:11px;padding:0 8px;font-size:.75rem;font-weight:900}
.starby-stock-subtract-action{background:rgba(239,68,68,.11)!important;border:1px solid rgba(248,113,113,.28)!important;color:#fca5a5!important}
.starby-stock-subtract-confirm{background:linear-gradient(135deg,#dc2626,#ef4444)!important;border:1px solid rgba(252,165,165,.38)!important;color:#fff!important}
.starby-stock-modal-icon.is-danger{background:linear-gradient(135deg,#b91c1c,#ef4444);box-shadow:0 12px 28px rgba(239,68,68,.3)}
.starby-stock-pill.is-normal{color:#4ade80;background:rgba(34,197,94,.11)}
.starby-stock-pill.is-attention{color:#fbbf24;background:rgba(245,158,11,.12)}
.starby-stock-pill.is-urgent{color:#fb7185;background:rgba(244,63,94,.13)}
.starby-stock-sum-preview.is-subtract{border-color:rgba(239,68,68,.24);background:linear-gradient(145deg,rgba(127,29,29,.13),rgba(32,10,18,.22))}
.starby-stock-sum-preview.is-subtract>strong{color:#fca5a5}
.starby-stock-sum-preview>small.is-error{color:#fda4af}
.starby-stock-balance-card small{color:#8d899c}
.starby-purchases-modal-content{width:min(1040px,calc(100vw - 28px))!important}
.starby-purchases-list{display:grid;gap:10px;margin-top:17px}
.starby-purchase-row{display:grid;grid-template-columns:auto minmax(180px,1fr) minmax(125px,.6fr) minmax(190px,.8fr) auto;gap:12px;align-items:center;padding:13px;border:1px solid rgba(255,255,255,.08);border-radius:15px;background:rgba(255,255,255,.025)}
.starby-purchase-row.is-urgent{border-color:rgba(239,68,68,.3);background:rgba(127,29,29,.08)}
.starby-purchase-row.is-attention{border-color:rgba(245,158,11,.26);background:rgba(120,53,15,.07)}
.starby-purchase-main h3{margin:0;color:#fff;font-size:.95rem}
.starby-purchase-main p{margin:4px 0 0;color:#8f8a9d;font-size:.75rem}
.starby-purchase-balance{display:grid;gap:4px}
.starby-purchase-balance span{color:#8d899c;font-size:.67rem;text-transform:uppercase;font-weight:900}
.starby-purchase-balance strong{color:#fff}
.starby-purchase-alert{display:grid;gap:5px;justify-items:start}
.starby-purchase-alert small{color:#9792a4}
.starby-purchase-row>button{min-height:38px;border-radius:10px;white-space:nowrap}
.starby-item-details-content{width:min(900px,calc(100vw - 28px))!important}
.starby-item-detail-status{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:10px;align-items:center;margin-top:17px}
.starby-item-detail-status>div,.starby-item-detail-grid>div{display:grid;gap:5px;padding:13px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.025)}
.starby-item-detail-status span:not(.starby-stock-pill),.starby-item-detail-grid span{color:#8f8a9d;font-size:.68rem;text-transform:uppercase;font-weight:900}
.starby-item-detail-status strong,.starby-item-detail-grid strong{color:#fff}
.starby-item-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px}
.starby-item-related,.starby-item-movements{margin-top:17px;padding-top:16px;border-top:1px solid rgba(255,255,255,.08)}
.starby-item-related h3,.starby-item-movements h3{margin:0 0 10px;color:#fff;font-size:.95rem}
.starby-item-related>div{display:flex;gap:7px;flex-wrap:wrap}
.starby-item-related>div span{padding:7px 10px;border-radius:999px;background:rgba(124,58,237,.13);border:1px solid rgba(167,139,250,.2);color:#ddd6fe;font-size:.75rem}
.starby-item-related p,.starby-item-movements>p{color:#918c9e}
.starby-item-movements{display:grid;gap:8px}
.starby-item-movements h3{grid-column:1/-1}
.starby-item-movements article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;border-radius:12px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.06)}
.starby-item-movements article strong{display:block;color:#fff;font-size:.8rem}
.starby-item-movements article small{display:block;color:#817c8e;margin-top:3px;font-size:.7rem}
.starby-item-movements article>span{font-weight:900;color:#86efac}
.starby-item-movements article>span.loss,.starby-item-movements article>span.sale{color:#fca5a5}
.starby-inventory-empty-card{grid-column:1/-1;border:1px dashed rgba(167,139,250,.22);border-radius:18px;background:rgba(255,255,255,.02)}
@media(max-width:1250px){.starby-inventory-item-card{grid-template-columns:minmax(210px,.75fr) minmax(360px,1.4fr)}.starby-inventory-item-actions{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))}.starby-purchase-row{grid-template-columns:auto 1fr 140px auto}.starby-purchase-alert{grid-column:2/4}.starby-purchase-row>button{grid-column:4;grid-row:1/3}}
@media(max-width:900px){.starby-inventory-commandbar{display:grid;grid-template-columns:1fr 1fr}.starby-inventory-commandbar button{width:100%}.starby-inventory-card-toolbar{grid-template-columns:1fr}.starby-inventory-cards{padding:12px}.starby-inventory-item-card{grid-template-columns:1fr}.starby-inventory-item-actions{grid-column:auto}.starby-inventory-item-head>.starby-stock-pill{grid-column:auto;margin-left:0;justify-self:end}.starby-inventory-item-head{grid-template-columns:auto minmax(0,1fr) auto}.starby-item-detail-status{grid-template-columns:1fr 1fr}.starby-item-detail-status>.starby-stock-pill{grid-column:1/-1;justify-self:start}.starby-item-detail-grid{grid-template-columns:1fr 1fr}.starby-purchase-row{grid-template-columns:auto 1fr}.starby-purchase-balance,.starby-purchase-alert{grid-column:2}.starby-purchase-row>button{grid-column:1/-1;grid-row:auto;width:100%}}
@media(max-width:520px){.starby-inventory-commandbar{grid-template-columns:1fr}.starby-inventory-item-metrics{grid-template-columns:1fr}.starby-inventory-item-actions{grid-template-columns:1fr}.starby-inventory-item-head{grid-template-columns:auto 1fr}.starby-inventory-item-head>.starby-stock-pill{grid-column:1/-1;justify-self:start;margin-left:0}.starby-item-detail-status,.starby-item-detail-grid{grid-template-columns:1fr}.starby-purchase-row{grid-template-columns:1fr}.starby-purchase-row>*{grid-column:1!important}.starby-purchase-row .starby-ingredient-avatar{display:none}}


.starby-recipe-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:16px;overflow:visible;max-height:none}
.starby-recipe-card{display:grid;grid-template-columns:minmax(260px,1.1fr) minmax(240px,.9fr) auto;align-items:center;gap:14px;padding:15px 16px;border-radius:18px;border:1px solid rgba(255,255,255,.09);background:linear-gradient(145deg,rgba(20,18,42,.98),rgba(10,9,25,.98));box-shadow:0 12px 28px rgba(0,0,0,.16)}
.starby-recipe-card-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0}
.starby-recipe-card-head .starby-inventory-product{min-width:0}
.starby-recipe-card-head .starby-inventory-product>div{min-width:0}
.starby-recipe-card-head .starby-inventory-product span{display:block;color:#918ca1;font-size:.7rem;text-transform:uppercase;font-weight:900;letter-spacing:.055em}
.starby-recipe-card-head .starby-inventory-product strong{margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.starby-recipe-card-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.starby-recipe-card-metrics>div{display:grid;gap:5px;padding:11px;border:1px solid rgba(255,255,255,.07);border-radius:13px;background:rgba(255,255,255,.025)}
.starby-recipe-card-metrics span{color:#908b9d;font-size:.68rem;text-transform:uppercase;font-weight:900;letter-spacing:.045em}
.starby-recipe-card-metrics strong{color:#fff;font-size:.94rem;line-height:1.25}
.starby-recipe-card-actions{display:flex;justify-content:flex-end}
.starby-recipe-card-actions button{min-height:38px;border-radius:11px;padding:0 14px;font-size:.75rem;font-weight:900;white-space:nowrap}
@media(max-width:980px){.starby-recipe-card{grid-template-columns:1fr}.starby-recipe-card-actions{justify-content:stretch}.starby-recipe-card-actions button{width:100%}}
@media(max-width:560px){.starby-recipe-card-head{grid-template-columns:1fr}.starby-recipe-card-head .starby-stock-pill{justify-self:start}.starby-recipe-card-metrics{grid-template-columns:1fr}}


.starby-inventory-grouped-list{display:grid;gap:16px;padding:16px}
.starby-inventory-category-group{display:grid;gap:12px}
.starby-inventory-category-header{display:flex;align-items:center;justify-content:space-between;padding:0 2px}
.starby-inventory-category-title{display:flex;align-items:center;gap:11px;min-width:0}
.starby-inventory-category-title strong{display:block;color:#fff;font-size:1rem}
.starby-inventory-category-title small{display:block;color:#938ea1;margin-top:3px;font-size:.74rem}
.starby-inventory-category-group .starby-inventory-cards{padding:0}
.starby-inventory-item-head{grid-template-columns:minmax(0,1fr) auto}
.starby-inventory-item-head>div:first-child{min-width:0}
.starby-inventory-item-head h3{margin:0;color:#fff;font-size:1.02rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:900px){.starby-inventory-grouped-list{padding:12px}}
@media(max-width:520px){.starby-inventory-category-title{align-items:flex-start}.starby-inventory-category-title .starby-ingredient-avatar{margin-top:2px}}
