/* Content only: FG3 owns the book artwork, page bounds and responsive geometry. */
.fg-preparation{min-width:0;color:var(--ink,#382817);font:16px/1.35 var(--f-body,Georgia,serif)}
.fg-prep-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 14px;padding-bottom:9px;border-bottom:1px solid var(--paper-line,#b99661)}
.fg-prep-heading h2{margin:0;color:var(--ink,#382817);font:700 23px/1.15 var(--f-head,Georgia,serif)}
.fg-prep-heading [role=status]{font:15px/1.1 var(--f-pixel,monospace);text-align:right;color:var(--ink-soft,#725534)}
.fg-prep-refresh{flex:none;border:0;background:transparent;padding:4px;color:var(--ink-soft,#725534);font:26px/1 Georgia,serif;cursor:pointer}
.fg-prep-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;margin:0 0 15px;border-bottom:1px solid var(--paper-line,#b99661)}
.fg-prep-tabs button{border:0;border-bottom:2px solid transparent;background:none;padding:6px 0;color:var(--ink-soft,#725534);font:18px/1.1 var(--f-pixel,monospace);cursor:pointer}
.fg-prep-tabs button[aria-selected=true]{border-bottom-color:var(--gilt,#8c652d);color:var(--ink,#382817)}
.fg-prep-tabs #fg3-wagon-refresh{margin-left:auto}
.fg-preparation button:focus-visible,.fg-prep-tabs button:focus-visible,.fg-preparation summary:focus-visible{outline:2px solid #916327;outline-offset:3px}
.fg-prep-inspect{margin:12px 0 0;padding:10px 0 0;border-top:1px solid var(--paper-line,#b99661)}
.fg-prep-inspect[hidden]{display:none}
.fg-prep-inspect>b{display:block;font:700 17px/1.2 var(--f-body,Georgia,serif)}
.fg-prep-inspect>span{display:block;margin:4px 0;color:var(--ink-soft,#725534);font:16px/1.2 var(--f-pixel,monospace)}
.fg-prep-inspect details{margin-top:6px;font-size:14px}.fg-prep-inspect summary{width:max-content;cursor:pointer;color:var(--ink-soft,#725534)}
.fg-prep-inspect p{margin:7px 0;font-size:14px;line-height:1.35}
.fg-prep-launch{margin:16px 0 0}.fg-prep-launch button{width:100%;border:1px solid #8c622b;border-bottom-width:3px;border-radius:3px;padding:10px 12px;background:linear-gradient(#7c582c,#553819);box-shadow:inset 0 1px #e4c38077;color:#fff0c6;font:20px/1.1 var(--f-pixel,monospace);cursor:pointer}
.fg-prep-launch button:hover:not(:disabled){filter:brightness(1.1)}.fg-preparation button:disabled{cursor:default}.fg-prep-launch button:disabled{opacity:.55}
.fg-prep-resources{display:grid;gap:1px}.fg-prep-resources button{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:9px;min-width:0;padding:10px 2px;border:0;border-bottom:1px solid var(--paper-line,#b99661);border-left:3px solid transparent;background:transparent;color:var(--ink,#382817);font:17px/1.2 var(--f-body,Georgia,serif);text-align:left;cursor:pointer}
.fg-prep-resources button.is-selected,.fg-prep-resources button:hover{border-left-color:#8c652d;background:#b9883521}.fg-prep-resources img{width:36px;height:36px;image-rendering:pixelated;object-fit:contain}.fg-prep-resources b{font:18px var(--f-pixel,monospace)}
.fg-prep-ingredient{text-align:center;padding:24px 0;min-height:140px}.fg-prep-ingredient>img{display:block;width:96px;height:96px;object-fit:contain;image-rendering:pixelated;margin:0 auto 16px}.fg-prep-ingredient h3{font:700 22px/1.2 var(--f-head,Georgia,serif);margin:0 0 8px}.fg-prep-ingredient>b{font:24px var(--f-pixel,monospace)}
.fg-prep-empty,.fg-prep-unfinished{color:var(--ink-soft,#725534);font:17px/1.3 var(--f-pixel,monospace)}.fg-prep-unfinished{padding-top:12px;border-top:1px solid var(--paper-line,#b99661)}
.fg-preparation .wagon-loadout__receipt{color:var(--ink,#382817);font-size:13px}.fg-preparation .wagon-loadout__receipt summary{font:16px var(--f-pixel,monospace);color:var(--ink-soft,#725534)}.fg-preparation .wagon-loadout__receipt-row>b,.fg-preparation .wagon-loadout__receipt-row em,.fg-preparation .wagon-loadout__receipt p{color:var(--ink-soft,#725534)}
.fg-prep-entry-error{padding:10px 14px;border:1px solid #a77b43;background:#392516;color:#ffe3ba;font:18px/1.3 var(--f-pixel,monospace)}
/* A packed bottle keeps the same card silhouette as stock, at kit scale. */
.wagon-loadout-kitbook .wagon-loadout__kit{max-width:300px}
.wagon-loadout-kitbook .wagon-loadout__slot img{width:min(46px,100%);height:auto;aspect-ratio:1}

.fg3-utilities:empty{display:none}
/* Wide shelf cards give every saved bottle a readable name and use count.
   Keep the familiar pixel frames; packed kit portraits remain compact. */
#view-field-guide .fg-preparation .wagon-loadout__card-grid{grid-template-columns:1fr;max-width:none;gap:10px}
#view-field-guide .fg-preparation .wagon-loadout__card--brew .hth-brew-card{aspect-ratio:auto;min-height:94px;grid-template-columns:48px minmax(0,1fr);grid-template-rows:auto auto;justify-items:start;gap:4px 12px;padding:14px 12px;text-align:left;font-size:16px;line-height:1.25}
#view-field-guide .fg-preparation .wagon-loadout__card--brew .hth-brew-card__art{grid-row:1/3;width:48px;height:48px}
#view-field-guide .fg-preparation .wagon-loadout__card--brew .hth-brew-card__icon{width:48px;height:48px}
#view-field-guide .fg-preparation .wagon-loadout__card--brew .hth-brew-card__name{display:block;max-height:none;overflow:visible;overflow-wrap:break-word;-webkit-line-clamp:unset}
#view-field-guide .fg-preparation .wagon-loadout__card--brew .hth-brew-card__foot{justify-content:flex-start;gap:5px 9px;font:14px/1.25 var(--f-body,Georgia,serif)}
#view-field-guide .fg-preparation .wagon-loadout__card--brew .hth-brew-card__toolname{overflow:visible;text-overflow:clip}
/* One scrolling surface: FG3's page on desktop, the document on phones. */
.fg-preparation-brew .hth-craft.is-cards{height:auto;max-height:none;overflow:visible}
.fg-preparation-brew .hth-craft.is-cards>.hth-craft__drawer{flex:none;min-height:auto;overflow:visible;overscroll-behavior:auto}
/* These menus live in a half-page even on a wide desktop. Keep the labels
   and refresh action together instead of spending another line on chrome. */
@media(min-width:861px){
  .fg-prep-heading{margin-bottom:9px;padding-bottom:6px}
  .fg-prep-tabs{gap:4px 6px;margin-bottom:9px}
  .fg-prep-tabs button{font-size:16px;line-height:1.2;min-height:32px;padding:4px 0;white-space:nowrap}
}
@media(min-width:861px) and (any-pointer:coarse){
  .fg-prep-tabs button,.fg-prep-refresh{min-height:44px}
}
@media(max-width:860px){
  .fg-prep-tabs button,.fg-prep-refresh{min-height:44px}
  .fg3-topbar{flex-wrap:wrap}
  .fg3-utilities{display:flex;align-items:center;justify-content:flex-end;gap:8px;width:100%}
  .fg3-utilities #scene-mood,.fg3-utilities #flag-btn,.fg3-utilities #help-btn,.fg3-utilities .angel-revive-btn{position:relative;inset:auto;transform:none;flex:none;margin:0}
  .fg3-utilities .angel-revive-btn{width:58px;height:40px}
  .fg3-utilities .scene-mood-popover{bottom:auto;top:42px}
}
