/* Dense materials list: editable essentials first, inventory and recipe details on demand. */
#planner-view .wb-shopping{background:var(--panel);border-radius:9px;overflow:hidden}
#planner-view .wb-shopping-head{padding:14px 16px 9px;align-items:center}
#planner-view .wb-shopping-head .wb-kicker{display:none}
#planner-view .wb-shopping-head h2{font:600 calc(20px * var(--ui-font-scale,1))/1.3 var(--heading-font,var(--font));margin:0;color:var(--text);letter-spacing:-.3px}
#planner-view .wb-shopping-head h2>span{display:none}
#planner-view .wb-shopping-head>b{font-size:calc(11px * var(--ui-font-scale,1));font-weight:500;white-space:nowrap}
#planner-view .wb-shopping>progress{height:3px;margin:0 16px 10px;width:calc(100% - 32px)}
#planner-view .wb-views{margin:0 14px 10px;padding:3px;border-radius:6px}
#planner-view .wb-views button{padding:6px 8px;min-height:34px;font-size:calc(12px * var(--ui-font-scale,1));line-height:1.4}
#planner-view .wb-views span{display:inline;margin:0 0 0 4px;font-size:10px}
#planner-view .wb-shopping-filters{display:flex;align-items:center;flex-wrap:nowrap;gap:7px;padding:0 14px;position:relative}
#planner-view .wb-shopping-filters>input{min-width:0;flex:1 1 160px;width:0;min-height:34px;padding:7px 9px;font-size:calc(12px * var(--ui-font-scale,1))}
#planner-view .wb-shopping-filters>select{flex:0 1 140px;max-width:140px;min-width:0;min-height:34px;padding:6px 22px 6px 8px;font-size:calc(12px * var(--ui-font-scale,1))}
#planner-view .wb-material-filter-menu{position:relative;flex:none;font-size:12px}
#planner-view .wb-material-filter-menu>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:7px 10px;min-height:34px;border:1px solid var(--line);border-radius:5px;color:var(--muted);background:var(--bg)}
#planner-view .wb-material-filter-menu>summary::-webkit-details-marker{display:none}
#planner-view .wb-material-filter-menu[open]>summary,#planner-view .wb-material-filter-menu.is-filtered>summary{border-color:var(--gold);color:var(--gold)}
#planner-view .wb-material-filter-menu[open]{z-index:4}
#planner-view .wb-material-filter-popover{position:absolute;right:0;top:40px;width:240px;padding:12px;background:var(--raised);border:1px solid var(--line);border-radius:7px;color:var(--muted);box-shadow:0 8px 24px #0003}
#planner-view .wb-material-filter-popover>label{display:flex;flex-direction:column;gap:5px}
#planner-view .wb-material-filter-popover>label+label{margin-top:12px}
#planner-view .wb-material-filter-menu label select{width:100%;min-height:34px;font-size:12px;padding:6px 8px}
#planner-view .wb-material-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 15px 8px;min-height:31px}
#planner-view .wb-filter-count{padding:0;font-size:11px;line-height:1.4}
#planner-view .wb-material-meta>button{font-size:11px;padding:0;color:var(--gold)}
#planner-view .wb-shopping-items{max-height:65vh;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
#planner-view .wb-material-table{min-width:600px;font-size:calc(12px * var(--ui-font-scale,1))}
#planner-view .wb-material-table th,#planner-view .wb-material-table td{padding:8px 7px;vertical-align:middle;line-height:1.35}
#planner-view .wb-material-table thead th{padding-top:9px;padding-bottom:9px;font-size:11px}
#planner-view .wb-material-table th:first-child{width:auto;min-width:180px;padding-left:15px}
#planner-view .wb-material-table .wb-crafts{width:68px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
#planner-view .wb-material-table td.wb-crafts{font-size:13px;font-weight:600;color:var(--text)}
#planner-view .wb-material-table .wb-required{width:78px;color:var(--muted)}
#planner-view .wb-material-table .wb-owned{width:76px}
#planner-view .wb-material-table .wb-missing{width:76px}
#planner-view .wb-material-table .wb-method{width:95px;text-align:left}
#planner-view .wb-material-table th:last-child,#planner-view .wb-material-table .wb-row-actions{width:79px;min-width:79px;padding-right:13px;text-align:right;white-space:nowrap}
#planner-view .wb-material{align-items:center;gap:8px;min-width:0}
#planner-view .wb-material>.item-icon{width:28px;height:28px;flex:none}
#planner-view .wb-material>div{min-width:0}
#planner-view .wb-material a{font-size:calc(13px * var(--ui-font-scale,1));line-height:1.35}
#planner-view .wb-material small{display:block;font-size:10px;line-height:1.4;margin-top:3px}
#planner-view .wb-material .wb-attention{color:var(--gold)}
#planner-view .wb-material-table input[type=number]{width:70px;min-height:32px;padding:5px 6px;font-size:12px}
#planner-view .wb-material-table select{min-height:32px;font-size:12px;padding:5px 20px 5px 7px}
#planner-view .wb-row-cost{display:block;color:var(--muted);font-size:10px;margin-top:3px;white-space:nowrap}
#planner-view .wb-missing strong{font-size:13px;font-weight:600}
#planner-view .wb-row-actions>button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:30px;padding:0;border:1px solid var(--line);border-radius:5px;font-size:16px;color:var(--muted);vertical-align:middle}
#planner-view .wb-row-actions>button+button{margin-left:4px}
#planner-view .wb-row-actions>button:hover,#planner-view .wb-row-expand[aria-expanded=true]{color:var(--gold);border-color:var(--gold);background:var(--raised)}
#planner-view .wb-row-expand[aria-expanded=true] span{transform:rotate(180deg)}
#planner-view .wb-row-actions>.wb-ready-button:disabled{color:var(--green);border-color:transparent;opacity:1}
#planner-view .wb-row-actions>.has-warning{color:var(--gold)}
#planner-view .wb-material-table .wb-expanded-row>td{padding:13px 16px 15px;text-align:left;background:var(--raised);white-space:normal;border-bottom:1px solid var(--line)}
#planner-view .wb-row-detail-grid{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
#planner-view .wb-row-detail-grid h3{font-size:13px;font-weight:600;margin:0 0 9px}
#planner-view .wb-stock-facts{display:flex;flex-wrap:wrap;gap:12px 25px;margin:0}
#planner-view .wb-stock-facts dt{font-size:10px;color:var(--muted);margin-bottom:3px}
#planner-view .wb-stock-facts dd{font-size:13px;margin:0;font-variant-numeric:tabular-nums}
#planner-view .wb-row-uses{color:var(--muted);font-size:11px;line-height:1.5;margin:9px 0 0}
#planner-view .wb-price-facts>span{display:block;color:var(--muted);font-size:10px;margin-bottom:4px}
#planner-view .wb-price-facts>strong{font-size:14px;color:var(--gold);font-weight:500;display:block}
#planner-view .wb-expanded-row .wb-default-note{max-width:none;margin-top:10px;font-size:11px}
#planner-view .wb-expanded-row .wb-row-warning{margin-bottom:0}
#planner-view .wb-shopping-actions{display:flex;gap:8px;padding:11px 14px}
#planner-view .wb-shopping-actions>button{padding:7px 10px;font-size:12px;min-height:32px}
#planner-view .wb-help{padding:9px 15px}
@media(max-width:650px){
 #planner-view .wb-shopping-head{padding:13px 12px 9px}
 #planner-view .wb-shopping-head h2{font-size:19px}
 #planner-view .wb-shopping-head>b{font-size:10px}
 #planner-view .wb-views{margin:0 10px 10px}
 #planner-view .wb-views button{min-height:38px;padding:6px 4px;font-size:11px}
 #planner-view .wb-views span{display:inline;margin-left:3px;font-size:9px}
 #planner-view .wb-shopping-filters{padding:0 10px;flex-wrap:wrap;gap:6px}
 #planner-view .wb-shopping-filters>input{flex:1 0 100%;width:100%;min-height:40px}
 #planner-view .wb-shopping-filters>select{flex:1;max-width:none;min-height:38px}
 #planner-view .wb-material-filter-menu>summary{min-height:38px;min-width:90px}
 #planner-view .wb-material-meta{padding:7px 11px}
 #planner-view .wb-shopping-items{max-height:none;overflow:visible}
 #planner-view .wb-material-table{min-width:0}
 #planner-view .wb-material-table.has-crafts tbody>tr:not(.wb-expanded-row){grid-template-columns:repeat(4,minmax(0,1fr));column-gap:9px}
 #planner-view .wb-material-table td.wb-crafts::before{content:'Crafts'}
 #planner-view .wb-material-table tbody>tr:not(.wb-expanded-row){position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 14px;padding:11px 12px}
 #planner-view .wb-material-table th:first-child{grid-column:1/-1;min-width:0;width:auto;padding:0 72px 4px 0;min-height:34px}
 #planner-view .wb-material-table th,#planner-view .wb-material-table td{width:auto;padding:0;text-align:left;border:0}
 #planner-view .wb-material-table td::before{display:block;font-size:10px;color:var(--muted);margin-bottom:4px}
 #planner-view .wb-material-table td.wb-required::before{content:'Required'}
 #planner-view .wb-material-table td.wb-owned::before{content:'Have'}
 #planner-view .wb-material-table td.wb-missing::before{content:'Missing'}
 #planner-view .wb-material-table .wb-method{grid-column:1/-1;display:flex;align-items:center;gap:9px;width:100%;padding-top:1px}
 #planner-view .wb-material-table td.wb-method::before{content:'Get by';margin:0}
 #planner-view .wb-material-table .wb-method select{width:100px;min-height:36px}
 #planner-view .wb-material-table tbody>tr>td.wb-row-actions:last-child{position:absolute;left:auto;right:12px;top:12px;width:65px;min-width:0;padding:0;display:block;grid-column:auto}
 #planner-view .wb-material-table td.wb-row-actions:last-child::before{display:none;content:none}
 #planner-view .wb-row-actions>button{width:29px;height:34px}
 #planner-view .wb-row-actions>button+button{margin-left:3px}
 #planner-view .wb-material-table input[type=number]{width:85px;min-height:36px;max-width:100%}
 #planner-view .wb-material-table .wb-expanded-row{display:block;padding:0;border-bottom:1px solid var(--line)}
 #planner-view .wb-material-table .wb-expanded-row>td:last-child{display:block;width:100%;padding:13px 12px}
 #planner-view .wb-material-table .wb-expanded-row>td::before{display:none}
 #planner-view .wb-material a{font-size:13px}
 #planner-view .wb-material small{font-size:10px}
}

/* Crafts uses the shared attempt count; the item quantity columns keep their meaning. */
@media(min-width:651px){
 #planner-view .wb-material-table.has-crafts{min-width:0;table-layout:fixed}
 #planner-view .has-crafts th:first-child{min-width:0;width:auto}
 #planner-view .has-crafts .wb-crafts{width:68px;white-space:normal;overflow-wrap:anywhere}
 #planner-view .has-crafts .wb-required,#planner-view .has-crafts .wb-missing{width:72px;overflow-wrap:anywhere}
 #planner-view .has-crafts .wb-owned{width:68px}
 #planner-view .has-crafts .wb-method{width:90px}
 #planner-view .has-crafts input[type=number]{max-width:100%;width:70px;min-width:0}
 #planner-view .has-crafts .wb-material a{overflow-wrap:anywhere}
}
@media(max-width:650px){
 #planner-view .wb-material-table td.wb-crafts,#planner-view .wb-material-table td.wb-required,#planner-view .wb-material-table td.wb-owned,#planner-view .wb-material-table td.wb-missing{width:auto;min-width:0;overflow-wrap:anywhere}
 #planner-view .wb-material-table td.wb-crafts{white-space:normal;text-align:right}
}

/* Informational recipe ingredients, read from the shared graph under the parent row. */
#planner-view .wb-recipe-expandable{cursor:pointer}#planner-view .wb-recipe-expandable.is-expanded>th,#planner-view .wb-recipe-expandable.is-expanded>td{border-bottom-color:transparent;background:var(--raised)}
#planner-view .wb-ingredients-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:16px;height:28px;padding:0;border:0;background:transparent;color:var(--muted);font-size:22px;line-height:1;cursor:pointer}#planner-view .wb-ingredients-toggle span{display:block;transition:transform .12s ease}#planner-view .wb-ingredients-toggle[aria-expanded=true] span{transform:rotate(90deg)}#planner-view .wb-ingredients-toggle[aria-expanded=true],#planner-view .wb-ingredients-toggle:hover{color:var(--gold)}
#planner-view .wb-material-table .wb-inline-recipe-row>td{padding:10px 15px 12px;background:var(--raised);border-bottom:1px solid var(--line)}#planner-view .wb-inline-recipe{min-width:0;animation:wb-ingredients-in .12s ease-out}#planner-view .wb-inline-recipe h3{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 7px;margin:0 0 6px;font-size:calc(12px * var(--ui-font-scale,1));font-weight:600;color:var(--text)}#planner-view .wb-inline-recipe h3 small{font:400 calc(11px * var(--ui-font-scale,1)) var(--font);color:var(--muted)}
#planner-view .wb-step-ingredient-list{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;margin:0;padding:0}#planner-view .wb-step-ingredient-list .wb-input-line{margin:0;min-width:0;padding:7px 0;font-size:calc(12px * var(--ui-font-scale,1))}#planner-view .wb-step-ingredient-list .wb-input-line>span:not(.wb-input-quantities){min-width:0;overflow-wrap:anywhere}#planner-view .wb-inline-recipe .wb-input-quantities{min-width:0}
@keyframes wb-ingredients-in{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:650px){#planner-view .wb-step-ingredient-list{grid-template-columns:1fr}#planner-view .wb-material-table .wb-inline-recipe-row>td:last-child{padding:10px 12px 12px}#planner-view .wb-ingredients-toggle{height:32px;width:16px}}
@media(prefers-reduced-motion:reduce){#planner-view .wb-inline-recipe{animation:none}#planner-view .wb-ingredients-toggle span{transition:none}}
