/* Requested v14 controls keep the existing studio palette and materials. */
.recipe .ingredient{left:-220px;top:-22px;width:220px;height:44px;transform-origin:220px 22px;filter:drop-shadow(2px 4px 3px #0009)}
.recipe .ingredient:nth-child(n){transform:rotate(var(--tube-angle,0deg))}
.recipe .paint-knife{display:block;width:220px;height:44px;overflow:visible}
.recipe .knife-handle{fill:#654025;stroke:#28190f;stroke-width:1.5}
.recipe .knife-ferrule{fill:#c4a366;stroke:#564527;stroke-width:1}
.recipe .knife-neck{fill:#a9aaa1;stroke:#434d48;stroke-width:1}
.recipe .knife-blade{stroke:#525a55;stroke-width:1}
.recipe .knife-shine{fill:none;stroke:#fff9;stroke-width:1}
.recipe .knife-label{position:absolute;z-index:2;top:13px;left:12px;width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font:700 8px/1.25 Arial,sans-serif;color:#fff7e8;text-shadow:0 1px 2px #000,0 0 3px #000;transform:rotate(var(--label-turn,0deg));pointer-events:none}
.recipe[hidden]{display:none!important}
.recipe .ingredient-list{transform:rotate(var(--fan-turn,0deg));transform-origin:0 0}
.clipped-board{overflow:visible!important}
.clipped-board>.recipe,.study-fullscreen>.recipe{z-index:80}
.palette-expand{width:26px;height:26px;border:1px solid #9074516e;border-radius:6px;background:#5139286b;color:#f4e1bd;font-size:16px;line-height:1}
.color-name-line{min-height:18px;margin:4px 3px 2px;font-size:.7rem;color:#eedbb8;text-align:center}
.palette-dab .dab-remove{display:none;position:absolute;top:-6px;right:-6px;width:19px;height:19px;border-radius:50%;background:#251c17;color:#fff;border:1px solid #c9aa7f;font-size:14px;line-height:17px}
.palette-dab:hover .dab-remove,.palette-dab:focus-visible .dab-remove{display:block}
.palette-context{position:fixed;z-index:200;padding:5px;border:1px solid #8f7857;border-radius:8px;background:#211d18;box-shadow:0 9px 28px #0009}
.palette-context[hidden]{display:none}.palette-context button{padding:9px 16px;color:#f6e8d0}
.study-fullscreen{position:fixed;width:min(95vw,1200px);max-width:none;max-height:94vh;padding:36px 24px 20px;background:#1b1714;color:#f5e8d3;border:1px solid #a78b63;border-radius:14px;overflow:visible}
.study-fullscreen::backdrop{background:#080706e3}
.study-fullscreen h2{margin:0 0 15px;font-size:1.1rem}
.study-fullscreen #study-body{width:100%}.study-fullscreen #color-map{height:min(70vh,690px);min-height:300px;width:100%;aspect-ratio:auto;background:var(--wood)!important;border:1px solid #b68b5e;border-radius:5px}.study-fullscreen #selected-color-name{font-size:.9rem}
#close-study-fullscreen{position:absolute;left:12px;top:9px;font-size:27px;color:#f4e6ca}
.footer-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.footer-feedback,.footer-auth{font-size:.7rem;border:1px solid #665842;border-radius:6px;padding:7px 9px;color:#ecdfc8;white-space:nowrap}
.footer-feedback:hover,.footer-auth:hover{background:#3e3529}
.v14-dialog{border:1px solid #9f8157;border-radius:14px;background:#211f1b;color:#f5ebdb;width:min(93vw,510px);max-height:90vh;padding:25px;box-shadow:0 22px 60px #000a}
.v14-dialog::backdrop{background:#090807cb}
.v14-dialog .dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}
.v14-dialog .dialog-heading h2{margin:0;font-size:1.2rem}
.v14-dialog .close-button{font-size:26px;color:#f1e2c9}
.v14-dialog form{display:grid;gap:8px;margin-top:18px}
.v14-dialog form label{font-size:.82rem;color:#e7d6ba}
.v14-dialog input,.v14-dialog textarea{width:100%;border:1px solid #7c6b54;border-radius:7px;padding:10px 12px;background:#171717;color:#fff;resize:vertical;box-sizing:border-box;font:inherit}
.v14-dialog textarea{min-height:240px;line-height:1.7}
.v14-dialog form .primary-button{margin-top:8px;background:#806746}
.v14-dialog [role=status]{min-height:1.5em;margin:12px 0 0;font-size:.78rem;color:#e6cf9c}
.auth-tabs{display:flex;gap:8px;margin-top:16px}.auth-tabs button{padding:7px 14px;border:1px solid #665842;border-radius:6px}.auth-tabs button[aria-pressed=true]{background:#725b3f;color:#fff}
.auth-subtitle{font-size:.8rem;line-height:1.7;color:#d1c4ad}.google-button{display:block;width:100%;margin-top:12px;padding:10px;border:1px solid #8f7857;border-radius:7px;color:#f1e5d4}.google-button[hidden]{display:none}
.help-dialog{width:min(93vw,660px)}.help-content{max-height:65vh;overflow:auto;margin-top:16px;padding-inline-end:8px;text-align:start;font-size:.84rem;line-height:1.8}.help-content h3{margin:0 0 4px;font-size:.95rem;color:#f5ebdb}.help-content p{margin:0;color:#d1c4ad}.help-content section{margin:18px 0}.help-content .help-intro{color:#f5ebdb}.help-content .help-note{border-top:1px solid #665842;padding-top:12px;font-size:.78rem}
.portrait-save-current{display:block;margin:10px 0;padding:8px 12px;border:1px solid #9b815f;border-radius:7px;background:#3d3226;color:#f4e7cf;font-size:.78rem}.portrait-save-current[hidden]{display:none}
@media(max-width:759px){.recipe .ingredient{transform-origin:220px 22px}.study-fullscreen{width:98vw;padding:35px 10px 16px}.study-fullscreen #color-map{height:58vh}.footer-tools{grid-column:1/-1}.footer-center small{grid-column:1/-1;grid-row:4;justify-self:center;margin:2px 0}.v14-dialog{padding:18px}}
