/* A small, editable recipe accompanies the optional preference choices. */
.scene-workspace:has(.mix-layout){max-width:1120px}
.direction-step:has(.mix-layout),.direction-step.mix-layout{max-width:none}
.mix-layout{display:grid;grid-template-columns:minmax(0,1fr) 232px;align-items:start;gap:32px}
.mix-main{grid-column:1;grid-row:1;min-width:0}
#recipe-root{grid-column:2;grid-row:1;position:sticky;top:24px;min-width:0}
.mix-main .direction-intro{margin-bottom:20px;gap:8px 12px}
.mix-main .direction-intro h2{font-size:26px;font-weight:500;letter-spacing:-.4px}
.mix-main .direction-intro .optional{margin-left:0;color:#89778e}
.mix-main .direction-content{padding-top:22px;margin-bottom:0;border-color:#ded4d7;scroll-margin-top:26px}
.mix-main .direction-options{gap:12px;margin-bottom:24px}
.mix-main .direction-card{--direction-bg:#eee6f1;--direction-border:#dcd0e2;min-height:140px;justify-content:space-between;gap:11px;padding:15px 16px 19px;border-color:var(--direction-border);background:var(--direction-bg);border-radius:13px;overflow:hidden}
.mix-main .direction-card[data-value="meaning"]{--direction-bg:#f4e6db;--direction-border:#e4d5c6}
.mix-main .direction-card[data-value="examples"]{--direction-bg:#e9eddc;--direction-border:#d4dcc1}
.mix-main .direction-card[data-value="reference"]{--direction-bg:#e5ebe8;--direction-border:#d0dcd5}
.mix-main .direction-card strong{position:relative;padding-right:5px;font-size:18px;line-height:1.55;font-weight:500;text-wrap:balance}
.direction-emblem{display:block;width:51px;height:51px;transition:transform .24s ease}
.direction-emblem svg{display:block;width:100%;height:100%}
.mix-main .direction-mark{display:grid;place-items:center;top:13px;right:12px;bottom:auto;width:25px;height:25px;min-height:0;border-radius:50%;background:#fffaf56e;color:#7f678b;font-size:19px;font-weight:400;line-height:1}
.mix-main .direction-card.selected{border-color:#8b6b9a;box-shadow:inset 0 0 0 1px #8b6b9a}
.mix-main .direction-card.selected .direction-mark{background:#725282;color:#fffaf3}
.ingredient-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 15px}
.ingredient-toolbar h3{font-size:16px;font-weight:500;line-height:1.6}
.ingredient-toolbar .text-button{flex:0 0 auto;min-height:36px;font-size:12px;color:#846c8a}
.ingredient-toolbar .text-button[aria-pressed="true"]{color:#654773;text-decoration:underline;text-underline-offset:4px}
.ingredient-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ingredient-card{--ingredient-tint:#ede7f0;--ingredient-edge:#ddd1e2;position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:151px;padding:18px 14px 58px;text-align:left;background:#fbf8f1;border:1px solid #ded6d1;border-radius:11px;overflow:hidden;isolation:isolate;transition:border-color .18s,background .18s,box-shadow .18s,transform .18s}
.ingredient-card:nth-child(3n+2){--ingredient-tint:#eef0df;--ingredient-edge:#d1d8b7}
.ingredient-card:nth-child(3n){--ingredient-tint:#f4e6db;--ingredient-edge:#e2c9b6}
.ingredient-card::before{content:'';position:absolute;z-index:-1;right:-17px;bottom:-25px;width:112px;height:107px;border-radius:50%;background:var(--ingredient-tint);opacity:.65;transition:transform .22s,opacity .22s}
.ingredient-label{display:block;max-width:100%;padding-right:15px;font-family:var(--display,var(--sans));font-size:21px;font-weight:500;line-height:1.45;letter-spacing:-.25px;text-wrap:balance}
.ingredient-note{display:block;max-width:100%;margin-top:5px;color:#88758b;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.ingredient-symbol{position:absolute;bottom:10px;right:11px;display:block;width:48px;height:48px;pointer-events:none;transition:transform .22s ease}
.ingredient-symbol svg{display:block;width:100%;height:100%}
.ingredient-check{display:grid;place-items:center;position:absolute;top:16px;right:12px;width:21px;height:21px;border:1px solid #d8cbdc;border-radius:50%;color:#a083aa;font-size:16px;line-height:1;background:#fffaf470}
.ingredient-check .icon{width:11px;height:11px}
.ingredient-card.selected{background:var(--ingredient-tint);border-color:#8a6d96;box-shadow:inset 0 0 0 1px #8a6d96}
.ingredient-card.selected::before{opacity:.9;transform:scale(1.35)}
.ingredient-card.selected .ingredient-check{background:#725282;border-color:#725282;color:#fffdf6}
.ingredient-card.selected .ingredient-symbol{transform:rotate(-7deg) translateY(-2px)}
.ingredient-examples{position:relative;display:block;margin-top:12px;max-width:100%;color:#8d7894;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.ingredient-examples>span{display:inline-block;margin-right:5px}
.ingredient-examples>span:first-child{color:#a18da6;font-size:10px}
.ingredient-card:has(.ingredient-examples){padding-bottom:61px}
.meaning-ingredients .ingredient-label{font-size:21px}
.mix-main .culture-shelf{gap:7px 16px;margin-bottom:15px}
.mix-main .source-card{border-radius:10px;background:#fbf8f1}
.mix-main .source-card.selected{background:#eee5f2}
.mix-main .source-quote{font-size:21px;line-height:1.75}
.mix-main .source-names{margin-top:6px;border-top:1px dashed #e0d4df;padding-top:5px}
.mix-main .source-names-label{color:#927d98}
.mix-main .source-name{font-size:16px;min-height:36px;color:#88718f}
.mix-main .culture-pagination{display:flex;justify-content:center;margin:12px 0 0}
.mix-main .reference-name-field{padding-bottom:9px}
.mix-main>.wishes-field{margin:24px 0 0}

.recipe-panel{grid-column:2;grid-row:1;position:sticky;top:24px;min-width:0;padding:18px;border:1px solid #ded4d7;border-radius:12px;background:#f9f5ed;overflow-wrap:anywhere}
#recipe-root>.recipe-panel{position:static}
.recipe-visual{display:block;width:100%;max-width:205px;height:176px;margin:0 auto 0;pointer-events:none}
.recipe-visual svg{display:block;width:100%;height:100%;overflow:visible}
.recipe-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 13px}
.recipe-heading h3{font-size:18px;line-height:1.5;font-weight:500;letter-spacing:.2px}
.recipe-heading>span,.recipe-count{font-size:12px;color:#8b7494;white-space:nowrap}
.recipe-group+.recipe-group{margin-top:15px}
.recipe-group-title{display:block;color:#a08ca4;font-size:11px;line-height:1.6;margin-bottom:6px;letter-spacing:.4px;font-weight:400}
.recipe-tokens{display:flex;align-items:flex-start;flex-wrap:wrap;gap:7px}
.recipe-token{display:inline-flex;align-items:center;min-width:0;max-width:100%;background:#ece4f0;border:1px solid #ddd0e3;border-radius:7px;color:#70527e}
.recipe-edit{display:flex;align-items:center;min-width:0;min-height:34px;padding:6px 9px;text-align:left;font-size:12px;line-height:1.55;overflow-wrap:anywhere;border-radius:6px 0 0 6px}
.recipe-edit:hover{background:#e2d6e8;color:#533563}
.recipe-remove{display:grid;place-items:center;align-self:stretch;flex:0 0 30px;width:30px;min-width:30px;min-height:34px;padding:0;border-radius:0 6px 6px 0;color:#9f87a9;font-size:16px;line-height:1}
.recipe-remove .icon{width:11px;height:11px}
.recipe-remove:hover{background:#dfcfe6;color:#654270}
.recipe-hint{margin-top:16px;padding-top:11px;border-top:1px solid #e5dbde;font-size:11px;color:#a08da5;line-height:1.75}
.recipe-toggle{display:none}
.recipe-review{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;width:100%;margin:0 0 23px;padding:12px 16px;border:1px solid #ddd2e1;border-radius:10px;background:#eee7f1;font-size:13px;color:#775b84;text-align:left}
.recipe-review>span:first-child{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.recipe-review>span:nth-child(2){flex:1;min-width:0;color:#99859f;font-size:12px}
.recipe-review>.icon{margin-left:auto;width:16px;height:16px}
.recipe-review:hover{border-color:#b59ac0;background:#e9e0ee}
.recipe-review>strong{font-size:13px;font-weight:500;color:#60496c}
.recipe-review .recipe-tokens{flex:1;gap:6px}
.recipe-review .recipe-token{background:#fffaf575}
.recipe-review>.text-button{margin-left:auto;font-size:12px;white-space:nowrap}
.recipe-review .recipe-visual{width:42px;height:42px;margin:-6px 0;flex:0 0 42px}

@media(hover:hover){
  .mix-main .direction-card:hover{border-color:#ac90b8;transform:translateY(-2px)}
  .mix-main .direction-card:hover .direction-emblem{transform:rotate(-5deg)}
  .ingredient-card:hover{transform:translateY(-2px);border-color:#b399bd;background:var(--ingredient-tint)}
  .ingredient-card:hover .ingredient-symbol{transform:rotate(-7deg) translateY(-2px)}
}
@keyframes mixer-bubble-rise{from{transform:translateY(6px);opacity:.1}to{transform:translateY(0);opacity:1}}
@keyframes mixer-spark-bloom{from{transform:scale(.65);opacity:.1}to{transform:scale(1);opacity:1}}
.mixer-bubbles{animation:mixer-bubble-rise .5s ease-out both}
.mixer-spark{transform-origin:110px 90px;animation:mixer-spark-bloom .45s ease-out both}

@media(max-width:1000px){
  .mix-layout{grid-template-columns:minmax(0,1fr) 211px;gap:23px}
  .mix-main .direction-card{padding:14px 13px 17px}
  .mix-main .direction-card strong{font-size:16px}
  .ingredient-grid{gap:10px}
  .ingredient-card{padding:16px 12px 56px;min-height:146px}
  .ingredient-label,.meaning-ingredients .ingredient-label{font-size:19px}
  .ingredient-check{right:10px;top:15px;width:19px;height:19px}
  .ingredient-note{font-size:11px}
  .recipe-panel{padding:12px 15px 18px}
}
@media(max-width:850px){
  .mix-layout{display:flex;flex-direction:column;align-items:stretch;gap:22px}
  #recipe-root{order:-1;top:10px;z-index:3}
  .recipe-panel{order:-1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 10px;top:10px;z-index:3;min-height:56px;padding:5px 12px 5px 15px;border-radius:12px;background:#faf6ee;box-shadow:0 3px 14px #49345308}
  .recipe-visual{grid-column:1;grid-row:1;width:49px;height:49px;margin:0}
  .recipe-visual svg{transform:scale(1.22)}
  .recipe-heading{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:flex-start;gap:10px;margin:0}
  .recipe-heading h3{font-size:16px;white-space:nowrap}
  .recipe-heading>span,.recipe-count{font-size:11px}
  .recipe-toggle{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:center;gap:4px;min-width:44px;min-height:44px;font-size:12px;color:#866e91;white-space:nowrap}
  .recipe-toggle .icon{width:13px;height:13px}
  .recipe-body,.recipe-panel>.recipe-group,.recipe-panel>.recipe-empty,.recipe-panel>.recipe-hint{grid-column:1/-1}
  .recipe-panel:not(.is-open) .recipe-body,.recipe-panel:not(.is-open) .recipe-group,.recipe-panel:not(.is-open) .recipe-empty,.recipe-panel:not(.is-open) .recipe-hint{display:none}
  .recipe-panel.is-open{padding-bottom:12px;max-height:min(46vh,360px);overflow-y:auto;overscroll-behavior:contain}
  .recipe-panel.is-open .recipe-body{padding:8px 6px 0;border-top:1px solid #e2d8df}
  .recipe-panel>.recipe-group{padding:8px 6px 0}
  .recipe-group+.recipe-group{margin-top:10px}
  .recipe-group-title{font-size:11px;margin-bottom:4px}
  .recipe-hint{padding-top:8px;margin-top:10px}
  .recipe-remove{min-width:36px;flex-basis:36px;min-height:38px}
  .recipe-edit{min-height:38px}
  .mix-main .direction-intro h2{font-size:24px}
  .mix-main .direction-content{scroll-margin-top:95px}
  .ingredient-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ingredient-label,.meaning-ingredients .ingredient-label{font-size:22px}
  .ingredient-note{font-size:12px}
  .mix-main .direction-options{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mix-main .direction-card{min-height:132px;padding:13px 15px 17px}
  .mix-main .direction-card strong{font-size:18px}
}
@media(max-width:600px){
  .mix-main .direction-intro{gap:5px 11px;margin-bottom:16px}
  .mix-main .direction-intro h2{font-size:23px}
  .mix-main .direction-options{gap:9px;margin-bottom:20px}
  .mix-main .direction-card{min-height:133px;padding:13px 10px 15px;gap:8px}
  .mix-main .direction-card strong{font-size:16px;line-height:1.55;padding-right:0}
  .direction-emblem{width:44px;height:44px}
  .mix-main .direction-mark{right:8px;top:10px;width:21px;height:21px;font-size:17px}
  .ingredient-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .ingredient-card{min-height:145px;padding:16px 13px 55px}
  .ingredient-label,.meaning-ingredients .ingredient-label{font-size:22px;padding-right:17px}
  .ingredient-check{right:10px;top:18px}
  .ingredient-symbol{right:11px;bottom:10px;width:44px;height:44px}
  .ingredient-toolbar{gap:10px;margin-bottom:13px}
  .ingredient-toolbar h3{font-size:15px}
  .ingredient-toolbar .text-button{font-size:11px}
  .mix-main .source-quote{font-size:21px}
  .mix-main .culture-shelf{gap:5px 14px}
  .recipe-review{padding:10px 12px;gap:7px 10px}
  .recipe-review>.text-button{min-height:32px}
}
@media(max-width:380px){
  .mix-main .direction-card strong{font-size:14px}
  .mix-main .direction-card{min-height:123px;padding:12px 8px 14px}
  .direction-emblem{width:39px;height:39px}
  .ingredient-label,.meaning-ingredients .ingredient-label{font-size:19px}
  .ingredient-note{font-size:11px}
  .recipe-heading{gap:7px}
  .recipe-heading h3{font-size:15px}
  .recipe-heading>span,.recipe-count{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  .mixer-bubbles,.mixer-spark{animation:none}
  .ingredient-card,.ingredient-symbol,.direction-emblem{transition:none}
}

/* Open directions stay together, like ingredients in the same recipe. */
.mix-main .direction-content + .direction-content{margin-top:30px}
.direction-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 20px}
.direction-section-heading h3{font-family:var(--display);font-size:21px;font-weight:500;line-height:1.5}
.direction-section-heading>.text-button{flex:none;min-height:40px;font-size:12px;color:#89718d}
.direction-section-heading + .ingredient-toolbar h3{display:none}
.direction-content:has(.meaning-ingredients) .ingredient-toolbar{display:none}
.direction-count{position:absolute;right:12px;top:43px;font-size:10px;line-height:1.8;color:#81668a;white-space:nowrap}
.direction-card.has-selection:not(.selected){border-color:#ae94b8}
.custom-poem-field{margin:0 0 23px;padding:17px 18px 14px;border:1px solid #dcd1dd;border-radius:11px;background:linear-gradient(115deg,#f3ecf4,#faf6ef)}
.custom-poem-field .field-label{font-family:var(--display);font-size:18px;font-weight:500}
.custom-poem-field .custom-poem-input{min-height:77px;padding:11px 0 2px;border:0;border-radius:0;box-shadow:none;background:transparent;font-family:var(--display);font-size:20px;line-height:1.7;resize:vertical}
.custom-poem-field:focus-within{border-color:#8b6b9a;box-shadow:0 0 0 2px #8b6b9a18}
@media(max-width:600px){.direction-section-heading{margin-bottom:14px}.direction-section-heading h3{font-size:20px}.custom-poem-field{padding:15px 14px 12px}.custom-poem-field .custom-poem-input{font-size:19px}.direction-count{right:8px;top:34px;font-size:9px}.mix-main .direction-content + .direction-content{margin-top:25px}}

/* A small choice of poetic moods opens before the optional verse shelf. */
.poetry-package-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.poetry-package-card{--poetry-tint:#edf0df;--poetry-ink:#8b9a69;position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;min-height:135px;padding:20px 74px 20px 19px;border:1px solid #ddd5ce;border-radius:12px;background:#faf8f0;text-align:left;overflow:hidden;transition:border-color .18s,background .18s,box-shadow .18s,transform .18s}
.poetry-package-card:nth-child(4n+2){--poetry-tint:#f4e7d6;--poetry-ink:#ba9870}
.poetry-package-card:nth-child(4n+3){--poetry-tint:#e8edef;--poetry-ink:#91a7af}
.poetry-package-card:nth-child(4n){--poetry-tint:#eee6f1;--poetry-ink:#aa95b3}
.poetry-package-card::before{content:'';position:absolute;z-index:-1;right:-12px;bottom:-32px;width:132px;height:125px;border-radius:52% 48% 40% 60%;background:var(--poetry-tint);opacity:.8;transform:rotate(-12deg);transition:transform .22s}
.poetry-package-card>strong{font-family:var(--display);font-size:23px;font-weight:500;line-height:1.4;white-space:nowrap;letter-spacing:.025em}
.poetry-package-note{margin-top:7px;font-size:12px;line-height:1.75;color:#89758a;text-wrap:pretty}
.poetry-package-art{position:absolute;right:15px;bottom:19px;width:59px;height:59px;pointer-events:none;transition:transform .22s}
.poetry-package-art svg{display:block;width:100%;height:100%}
.poetry-package-check{position:absolute;right:13px;top:13px;display:grid;place-items:center;width:21px;height:21px;border:1px solid #d2c6d8;border-radius:50%;color:#947d9c;font-size:16px;background:#ffffff61}
.poetry-package-check .icon{width:12px;height:12px}
.poetry-package-card.selected{background:var(--poetry-tint);border-color:#8b6b9a;box-shadow:inset 0 0 0 1px #8b6b9a}
.poetry-package-card.selected .poetry-package-check{background:#765783;color:#fffdf7;border-color:#765783}
.poetry-package-card.selected .poetry-package-art{transform:rotate(-7deg) translateY(-2px)}
.poetry-secondary{margin-top:24px}
.poetry-secondary .custom-poem-field{margin-bottom:9px;padding:15px 17px 12px;background:#f9f5ef;border-color:#dfd6d5}
.poetry-secondary .custom-poem-field .field-label{font-family:var(--sans);font-size:14px;color:#78657f}
.poetry-secondary .custom-poem-input{min-height:60px;font-size:18px;line-height:1.65;padding-top:8px}
.poetry-browse-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:46px;padding:8px 1px;font-size:13px;color:#816d87;text-align:left}
.poetry-browse-toggle>span:last-child{font-size:19px}
.poetry-library{margin-top:14px;scroll-margin-top:100px}
@media(hover:hover){.poetry-package-card:hover{border-color:#b09ab9;transform:translateY(-2px)}.poetry-package-card:hover::before{transform:rotate(-7deg) scale(1.07)}}
@media(max-width:1050px) and (min-width:851px){.poetry-package-card{padding-right:60px;padding-left:15px}.poetry-package-card>strong{font-size:21px}.poetry-package-art{right:8px;width:49px;height:49px}}
@media(max-width:600px){.poetry-package-grid{gap:10px}.poetry-package-card{min-height:153px;padding:16px 12px 64px;justify-content:flex-start}.poetry-package-card>strong{font-size:21px;letter-spacing:0}.poetry-package-note{font-size:11px;line-height:1.65;margin-top:5px}.poetry-package-art{right:10px;bottom:9px;width:45px;height:45px}.poetry-package-check{top:auto;left:12px;bottom:18px;right:auto}.poetry-package-card::before{right:-23px;bottom:-39px;width:112px;height:103px}.poetry-secondary{margin-top:20px}}
@media(max-width:380px){.poetry-package-card>strong{font-size:19px}.poetry-package-card{padding-left:11px;padding-right:11px}}
@media(prefers-reduced-motion:reduce){.poetry-package-card,.poetry-package-art,.poetry-package-card::before{transition:none}}

.poetry-package-card{min-height:149px}
.poetry-package-note{white-space:nowrap}
.poetry-package-verse{display:flex;align-items:baseline;gap:6px;margin-top:12px;font-family:var(--display);font-size:15px;line-height:1.7;color:#998599;white-space:nowrap}
.poetry-package-verse>q{quotes:"“" "”" "‘" "’"}
@media(max-width:600px){.poetry-package-card{min-height:141px;padding:16px 12px;justify-content:flex-start}.poetry-package-art{top:8px;right:8px;bottom:auto;width:35px;height:35px}.poetry-package-note{margin-top:8px;font-size:11px}.poetry-package-verse{margin-top:13px;font-size:14px;gap:4px}.poetry-package-check{left:auto;right:12px;bottom:17px;width:17px;height:17px;font-size:13px}.poetry-package-check .icon{width:10px;height:10px}.poetry-package-card::before{top:-45px;right:-37px;bottom:auto}}
@media(max-width:380px){.poetry-package-verse{font-size:13px}.poetry-package-note{font-size:10px}}
