/* Open Composition: a cheap notebook and flat mixing mat on the RV table. */
#brewing[hidden],#brewing [hidden]{display:none!important}
#brewing{
  --brew-paper:#d0d0b8;--brew-ink:#2c3440;--brew-accent:#bba16e;
  width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;
  background:#292b21;color:#d1c8ad;font:22px/1.15 'Street Terminal','Courier New',monospace;
  overflow:auto;color-scheme:dark;
}
#brewing::backdrop{background:#11150f}
#brewing *{box-sizing:border-box}
#brewing h1,#brewing h2,#brewing p{margin:0}
#brewing button{font:inherit;cursor:pointer;text-transform:none;letter-spacing:0;border-radius:0}
#brewing button:disabled{opacity:.45;cursor:default}
#brewing :focus-visible{outline:2px dashed #d0b880;outline-offset:3px}
#brewing kbd{font:17px 'Street Terminal',monospace;opacity:.72;margin-left:6px}
.brew-shell{
  position:relative;display:flex;flex-direction:column;height:100%;min-height:700px;
  background:url('/assets/backroom/open-composition-table-v1.jpg?v=2') center/100% 100% no-repeat,#55564b;
}
.brew-header{flex-shrink:0;background:#141710f0}
.brew-header{display:flex;align-items:center;gap:20px;padding:15px 28px;min-height:84px;border-bottom:1px solid #81765b55}
#brewing .brew-header h1{font:36px/1 'Street Terminal',monospace;letter-spacing:0;color:#d1c8ad}
#brew-location{font-size:18px;color:#b5b09b;margin-top:5px!important}
.brew-level{margin-left:auto;width:185px;font-size:21px}
.brew-level progress{display:block;width:100%;height:3px;border:0;appearance:none;background:#33382a;margin:7px 0 5px}
.brew-level progress::-webkit-progress-bar{background:#33382a}
.brew-level progress::-webkit-progress-value{background:var(--brew-accent)}
.brew-level progress::-moz-progress-bar{background:var(--brew-accent)}
.brew-level small{font-size:17px;color:#b5b09b}
#brewing .brew-help-button,#brewing .brew-exit{background:transparent;border:1px solid #77705a70;color:#d1c8ad;padding:8px 12px;min-height:39px}
#brewing .brew-help-button:hover,#brewing .brew-exit:hover{border-color:var(--brew-accent);color:#fff0cd}
.brew-exit{white-space:nowrap}
.brew-workspace{
  width:77%;max-width:1100px;min-height:0;flex:1;display:grid;
  grid-template-columns:minmax(350px,1.3fr) minmax(300px,1fr);grid-template-rows:minmax(0,1fr);gap:34px;align-items:center;
  margin-left:6%;padding:clamp(115px,16vh,160px) 0 24px;
}
.brew-ledger{
  position:relative;isolation:isolate;display:flex;flex-direction:column;
  min-width:0;width:100%;height:100%;max-height:610px;min-height:450px;
  padding:28px 27px 21px 33px;border-left:10px solid #171913;
  background:url('/assets/backroom/composition-cover-v1.png') repeat,#20231f;
  color:var(--brew-ink);box-shadow:4px 6px 0 #14171055;transform:rotate(-.7deg);
}
.brew-ledger::before{
  content:'';position:absolute;inset:12px 9px 12px 8px;z-index:-1;
  background:radial-gradient(ellipse at 20% 85%,#7b481f33 0,transparent 22%),
    radial-gradient(ellipse at 93% 12%,#7b481f25 0,transparent 17%),
    linear-gradient(90deg,transparent 46%,#313b2329 48%,#d9d8bdcc 49%,#424a2938 50%,transparent 52%),
    repeating-linear-gradient(0deg,transparent 0 27px,#758a9c55 28px,#758a9c55 29px),var(--brew-paper);
}
.brew-ledger::after{content:'';position:absolute;z-index:-1;width:87px;height:80px;border:7px solid #76522b29;border-right-color:#76522b0c;border-radius:50%;right:23px;top:53%;transform:rotate(-19deg);pointer-events:none}
.brew-book-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0;margin-bottom:16px}
.brew-book-heading>span:first-child{font:12px/1.2 Arial,sans-serif;letter-spacing:1px;border:1px solid #767968;padding:4px 7px;color:#464e47;background:#dbdbc59c}
#brew-count{font:17px 'Segoe Print','Comic Sans MS',cursive;color:#45545e;white-space:nowrap}
.brew-tabs{display:flex;flex-shrink:0;gap:21px;border-bottom:1px solid #4d5c6580;margin-bottom:22px}
#brewing .brew-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;color:#45535a;padding:4px 0 7px;min-height:32px}
#brewing .brew-tabs button[aria-pressed=true]{color:#263f45;border-bottom-color:#263f45}
#brewing .brew-tabs button:hover{color:#172732}
#brewing .brew-tabs [data-brew=recipes]{display:none}
#brew-stash-count{font-size:17px}
.brew-notebook-pages{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:28px;min-height:0;flex:1}
#brew-recipes,.brew-detail,#brew-stash{min-width:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#8a8e78 transparent;padding:3px}
#brewing .brew-recipe{display:block;width:100%;padding:6px 4px;margin:0 0 3px;border:0;background:transparent;color:#2c3942;text-align:left;line-height:1}
.brew-recipe strong{display:block;font-weight:400;overflow-wrap:anywhere}
.brew-recipe-rank{display:block;font-size:16px;color:#60685d;margin-top:3px}
.brew-recipe-rank:empty{display:none}
#brewing .brew-recipe.selected,#brewing .brew-recipe:hover{background:#74765b22;color:#263f45;box-shadow:inset 2px 0 #555b40}
#brewing .brew-recipe.locked{color:#62695f}
.brew-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:17px;color:#b6b19b;margin-bottom:6px}
.brew-detail .brew-section-heading{color:#5c635d;font-size:18px;margin-bottom:10px}
#brew-number{font:17px 'Segoe Print','Comic Sans MS',cursive}
#brew-product h2{font:27px/1.2 'Segoe Print','Comic Sans MS',cursive;letter-spacing:-1px;color:#293743;overflow-wrap:anywhere}
#brew-product p{font-size:22px;line-height:1.2;color:#3f4c52;margin-top:16px}
#brew-needs{margin-top:26px}
.brew-need{display:flex;align-items:center;gap:8px;margin:15px 0;color:#243942;font-size:23px}
.brew-need>b{margin-left:auto;font-weight:400;white-space:nowrap}
.brew-need.done>b{color:#335242}
.brew-badge{display:inline-flex;flex-shrink:0;justify-content:center;align-items:center;flex-direction:column;width:25px;color:var(--token);font:23px/1 'Segoe UI Symbol',sans-serif}
.brew-badge svg{display:block;width:24px;height:27px}
.brew-badge small{font:13px 'Street Terminal',monospace}
.brew-need .brew-badge{color:#354a4c;width:20px;font-size:19px}
.brew-need .brew-badge small{display:none}
.brew-batch-value{border-top:1px dashed #616c6455;padding-top:12px;color:#4c5758;font-size:20px;margin-top:28px}
.brew-batch-value span{display:block;margin-top:4px}
.brew-notebook-footer{flex-shrink:0;padding-top:7px}
.brew-notes{position:relative;height:65px;font:16px/1.1 'Segoe Print','Comic Sans MS',cursive;color:#344b5e;pointer-events:none}
.brew-note-warning{position:absolute;top:3px;left:8px;transform:rotate(-4deg);border-bottom:1px solid #344b5eaa;max-width:85%}
.brew-note-tally{position:absolute;bottom:2px;left:5px;font-size:24px;letter-spacing:3px;transform:rotate(7deg)}
.brew-note-tally::after{content:'';position:absolute;width:37px;border-top:1px solid #344b5e;top:14px;left:-1px;transform:rotate(-24deg)}
.brew-note-doodle{position:absolute;bottom:5px;right:14px;font-size:22px;transform:rotate(4deg)}
.brew-margin-note{position:absolute;pointer-events:none;font:14px 'Segoe Print','Comic Sans MS',cursive;color:#344b5e;writing-mode:vertical-rl}
.brew-margin-left{left:10px;top:40%;transform:rotate(180deg)}
.brew-margin-right{right:10px;top:26%}
.brew-table-rail{position:absolute;top:max(102px,17%);left:25.5%;z-index:2}
.brew-radio{display:flex;align-items:center;gap:9px;font-size:18px;color:#ddd5bd;background:#20271ee8;border:1px solid #a9a08366;padding:6px 8px;box-shadow:2px 3px 0 #12170f44}
#brewing .brew-radio button{border:1px solid #526052;color:#ddd5bd;background:#343e2d;padding:5px 9px;font-size:18px;min-height:32px}
#brewing .brew-radio button:hover{color:#fff0cd;border-color:#c7bb96}
#brewing .brew-radio button[data-offline=true]{color:#e3b58b}
.brew-bench{display:flex;flex-direction:column;min-width:0;width:100%;height:100%;max-height:670px;max-width:425px;padding:15px 17px 13px;background:#263025;border:1px solid #3c4437;box-shadow:3px 5px 0 #10150d55;transform:rotate(.5deg);text-align:center}
.brew-next{display:flex;align-items:center;gap:12px;flex-shrink:0;min-height:35px}
.brew-eyebrow{font-size:17px;color:#bcb7a0}
#brew-next-pairs{display:flex;gap:15px}
#brew-next-pairs>span{display:flex;gap:4px}
#brew-next-pairs>span+span{opacity:.6}
#brew-next-pairs .brew-badge{width:21px;font-size:20px}
#brew-next-pairs .brew-badge small{display:none}
.brew-board-wrap{position:relative;flex:1;min-height:0;width:100%;margin:0 auto}
#brew-board{display:block;width:100%;height:100%;touch-action:manipulation}
#brew-board:focus:not(:focus-visible){outline:none}
.brew-socket{fill:none;stroke:#a1aa8240;stroke-width:1}
.brew-token{pointer-events:none;color:var(--token)}
.brew-token>polygon{fill:var(--token);fill-opacity:.15;stroke:var(--token);stroke-width:1.25}
.brew-token text{fill:var(--token);text-anchor:middle}
.brew-tier{font:12px 'Street Terminal',monospace}
.brew-token.ghost{opacity:.43}
.brew-token.ghost>polygon{stroke-dasharray:3 3;fill-opacity:.06}
.brew-column-target{fill:transparent;cursor:pointer}
.brew-column-target:focus{stroke:#d1c8ad;stroke-dasharray:4 3;stroke-width:1}
.brew-cover{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px;background:#1c241aee}
.brew-cover-symbol{font:32px 'Segoe UI Symbol',sans-serif;color:var(--brew-accent);margin-bottom:8px}
.brew-cover h2{font:32px/1.1 'Street Terminal',monospace;margin:10px 0!important}
.brew-cover p{font-size:21px;line-height:1.3;color:#c5bfa9;margin-bottom:18px!important}
#brewing .brew-primary{background:var(--brew-accent);color:#1a2016;border:1px solid var(--brew-accent);padding:9px 16px;font-size:22px}
.brew-primary span{margin-left:9px}
#brewing .brew-primary:hover:not(:disabled){background:#cbb98c}
#brewing .brew-return{border:0;background:transparent;color:#d1c8ad;padding:14px 3px 0;font-size:20px;text-decoration:underline}
.brew-controls{display:flex;justify-content:center;gap:7px;padding-top:7px;flex-shrink:0}
#brewing .brew-controls button{border:1px solid #77705a70;background:transparent;color:#d1c8ad;padding:7px 10px;min-height:40px;font-size:23px}
#brewing .brew-controls .brew-drop{background:var(--brew-accent);border-color:var(--brew-accent);color:#1a2016;flex:1}
#brewing .brew-controls button:hover:not(:disabled){border-color:#d1c8ad}
.brew-status{min-height:28px;padding-top:10px;font-size:18px;line-height:1.1;color:#b6b19b;flex-shrink:0}
.brew-chain{position:absolute;inset:45% 0 auto;font:31px 'Street Terminal',monospace;color:#e4d6a6;text-shadow:1px 2px #162014;opacity:0;pointer-events:none}
.brew-chain.active{animation:brew-chain .5s ease-out both}
@keyframes brew-chain{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(-10px)}}
#brew-stash{grid-column:1/-1}
.brew-stash-item{border-bottom:1px solid #77705a55;padding:9px 0 13px}
.brew-stash-item strong{font-size:24px;font-weight:400}
.brew-stash-item p{font-size:21px;margin:6px 0 9px!important}
#brewing .brew-stash-item button{padding:6px 13px;margin-right:8px;border:1px solid #526052;color:#2e473e;background:#d4d2b28a;font-size:21px}
.brew-empty-stash{text-align:center;padding:45px 10px;font-size:24px}
.brew-empty-stash b{font-weight:400}
.brew-empty-stash p{font-size:21px;margin-top:14px!important}
.brew-help{position:fixed;inset:0;z-index:4;display:grid;place-items:center;overflow:auto;background:#11170ff5;padding:24px}
.brew-help>div{max-width:660px;margin:auto;padding:26px;background:#20281d;color:#d1c8ad;border:1px solid #77705a}
#brewing .brew-help h2{font:38px 'Street Terminal',monospace;margin-bottom:20px}
.brew-help p{font-size:23px;line-height:1.25;margin-bottom:15px!important}
@media(max-width:1150px){
  .brew-workspace{width:81%;gap:24px;margin-left:5%;grid-template-columns:minmax(340px,1.3fr) minmax(275px,1fr)}
  .brew-ledger{padding:25px 23px 20px 28px}.brew-notebook-pages{gap:23px}
  #brewing .brew-recipe{font-size:20px}#brew-product h2{font-size:24px}#brew-product p{font-size:21px}
  .brew-need{font-size:21px;gap:6px}.brew-bench{padding:13px 12px}
  #brewing .brew-controls button{font-size:21px;padding:7px 8px}.brew-controls kbd{display:none}
}
@media(max-width:850px){
  .brew-shell{min-height:720px}
  .brew-table-rail{top:105px;left:26%}
  .brew-workspace{width:91%;margin-left:4.5%;grid-template-columns:minmax(230px,1fr) minmax(270px,1fr);gap:22px;padding-top:95px}
  .brew-notebook-pages{grid-template-columns:1fr}
  .brew-ledger::before{background:radial-gradient(ellipse at 20% 85%,#7b481f33,transparent 24%),linear-gradient(90deg,transparent 27px,#ad6b6670 28px,transparent 29px),repeating-linear-gradient(0deg,transparent 0 27px,#758a9c55 28px,#758a9c55 29px),var(--brew-paper)}
  #brewing .brew-tabs [data-brew=recipes]{display:block}.brew-tabs{gap:15px}
  #brewing .brew-tabs button{font-size:21px}
  #brewing[data-book-view=card] #brew-recipes,#brewing[data-book-view=recipes] #brew-card{display:none}
  #brewing .brew-recipe{font-size:23px}.brew-recipe-rank{display:inline;margin-left:8px}.brew-recipe strong{display:inline}
  #brew-product h2{font-size:27px}.brew-need{font-size:23px}
}
@media(max-width:640px){
  .brew-table-rail{position:static;align-self:flex-start;margin:16px 26px 0}
  .brew-shell{min-height:100%;height:auto;background-size:auto 100%;background-position:45% 0}
  .brew-header{flex-wrap:wrap;gap:12px;padding:14px 18px}#brewing .brew-header h1{font-size:32px}
  .brew-level{width:150px;margin-left:auto;font-size:20px}.brew-header .brew-help-button{margin-left:auto}
  .brew-workspace{display:flex;flex-direction:column;width:auto;margin:0;padding:24px 26px 24px;gap:28px}
  .brew-ledger{height:auto;max-height:none;min-height:445px;max-width:400px;padding:27px 25px 21px 32px}
  .brew-notebook-pages{min-height:220px}#brew-recipes,.brew-detail,#brew-stash{overflow-y:visible}
  .brew-notebook-footer{margin-top:14px}.brew-bench{width:100%;max-width:370px;height:auto;max-height:none;min-height:0;padding:14px 12px}
  .brew-board-wrap{flex:none}#brew-board{height:auto}
  #brewing .brew-controls button{min-height:44px}#brewing .brew-radio button{min-height:38px}
  .brew-help{padding:12px}.brew-help>div{padding:20px}.brew-help p{font-size:22px}
}
@media(max-width:380px){
  .brew-workspace{padding-left:18px;padding-right:18px}.brew-ledger{padding-left:27px;padding-right:21px}
  .brew-book-heading{gap:6px}.brew-book-heading>span:first-child{font-size:10px;padding:4px;letter-spacing:.5px}
  .brew-tabs{gap:13px}#brewing .brew-tabs button{font-size:20px}.brew-note-warning{font-size:14px}.brew-level{width:130px}
}
@media(prefers-reduced-motion:reduce){#brewing *{animation:none!important;transition:none!important}.brew-chain.active{opacity:1}}
