#main-content:is([data-edition="my-bar"],[data-edition="my-recipes"]) .home-workbench-hero {
  position:relative;isolation:isolate;display:grid;align-items:center;
  width:calc(100% + 2 * var(--interior-rail));margin:0 calc(-1 * var(--interior-rail)) clamp(24px,3.3vw,54px);
  min-height:clamp(285px,31vw,650px);padding:clamp(32px,5vw,88px) var(--interior-rail);
  background:#241e18;color:#f8efdc;box-sizing:border-box;
}
.home-workbench-hero picture,.home-workbench-hero img {display:block;width:100%;height:100%;}
.home-workbench-hero picture {position:absolute;inset:0;z-index:-1;}
.home-workbench-hero picture::after {
  content:"";position:absolute;inset:0;background:linear-gradient(90deg,#161310bf 0%,#18150f94 32%,transparent 62%);
}
.home-workbench-hero img {object-fit:cover;object-position:62% center;}
.home-workbench-copy {max-width:min(47%,42rem);}
#main-content:is([data-edition="my-bar"],[data-edition="my-recipes"]) .home-workbench-hero #paneltitle {
  width:auto;margin:0;padding:0;color:inherit;background:none;font:var(--display);letter-spacing:-.045em;text-wrap:balance;
}
.home-workbench-copy p {max-width:38ch;margin:1em 0 0;color:#f1e5d0;font:400 clamp(1rem,1.3vw,1.3rem)/1.5 var(--sans);}
@media(max-width:760px) {
  #main-content:is([data-edition="my-bar"],[data-edition="my-recipes"]) .home-workbench-hero {display:flex;flex-direction:column;align-items:stretch;min-height:0;padding:0;}
  .home-workbench-hero picture {position:relative;height:clamp(164px,47vw,285px);}
  .home-workbench-hero img {object-position:center 63%;}
  .home-workbench-hero picture::after {content:none;}
  .home-workbench-copy {max-width:none;padding:20px var(--interior-rail) 24px;}
  .home-workbench-copy p {margin-top:9px;}
}

.home-workbench-copy .own-create-link {margin-top:18px;display:inline-flex;min-height:44px;align-items:center;}

/* The editor opens on the recipe itself. The live glass stays beside the work
   on a wide screen, then follows the fields and precedes saving on a phone. */
#main-content .own-editor-heading {
  max-width:1340px;margin:clamp(18px,2.8vw,46px) auto clamp(24px,3vw,44px);
  padding-bottom:clamp(20px,2vw,30px);border-bottom:1px solid var(--fine);
}
#main-content .own-editor-heading #paneltitle {
  width:auto;max-width:100%;padding:0;margin:0;background:transparent;color:var(--pale);
  font:500 clamp(2.25rem,4.8vw,4.65rem)/1.04 var(--ser);letter-spacing:-.045em;text-wrap:balance;
}
.own-editor-heading p {
  margin:12px 0 0;max-width:65ch;color:var(--muted);
  font:400 clamp(1rem,1.34vw,1.22rem)/1.5 var(--sans);text-wrap:pretty;
}
#main-content #ownform.own-editor {
  --own-input:#201d19;--own-border:#675c4e;max-width:1340px;
  grid-template-columns:minmax(0,1.38fr) minmax(310px,1fr);
  grid-template-areas:"editor preview" "finish finish";gap:clamp(20px,3vw,42px) clamp(28px,4.2vw,70px);
}
#ownform.own-editor .own-title-field>span,#ownform.own-editor :is(.own-preview-head,.own-result-head)>h2 {
  margin:0;color:var(--own-ink);font:500 clamp(1.56rem,2.2vw,2.12rem)/1.12 var(--ser);letter-spacing:-.025em;
}
#main-content #ownform.own-editor .own-title-field {gap:12px;}
#main-content #ownform.own-editor .own-title-field input {min-height:50px;font-size:1.1rem;}
#main-content #ownform.own-editor .own-section {padding-bottom:clamp(16px,1.7vw,25px);}
#main-content #ownform.own-editor .own-section+.own-section {padding-top:clamp(16px,1.7vw,25px);}
/* The sticky glass stops at the bottom of the ingredients and serving row. */
#ownform.own-editor .own-preview-column {grid-area:preview;align-self:stretch;min-width:0;}
#main-content #ownform.own-editor .own-preview {
  position:sticky;display:block;align-self:start;justify-items:stretch;min-width:0;min-height:0;padding:clamp(16px,2vw,26px);
  border:1px solid var(--own-rule);border-radius:var(--photo-radius,8px);
  background:linear-gradient(145deg,#2b2620,#211d19 52%,#26211c);color-scheme:dark;
}
#ownform :is(.own-preview-head,.own-ice-menu) {box-sizing:border-box;width:100%;}
#ownform .own-preview-head label {display:grid;gap:5px;margin-top:14px;color:var(--own-muted);font:550 1rem/1.35 var(--sans);}
#ownform .own-preview-head select {box-sizing:border-box;width:100%;min-height:44px;max-width:100%;font:400 1rem/1.35 var(--sans);}
#ownform .own-glass-study {margin:8px 0 16px;}
#main-content #ownform .own-stage {
  width:100%;background:radial-gradient(ellipse at 50% 65%,#76624738,transparent 64%);
}
#main-content #ownform.own-editor .own-preview-vessel {width:100%;min-height:0;height:clamp(200px,28vh,295px);}
#main-content #ownform.own-editor .own-preview-copy {padding:6px 0 0;text-align:center;}
#main-content #ownform.own-editor .own-preview-copy strong {font-size:clamp(1.3rem,1.8vw,1.8rem);}
#main-content #ownform.own-editor .own-preview-copy p {margin-top:4px;color:var(--own-muted);}
#ownform .own-ice-menu {min-width:0;padding:0;margin:0;border:0;}
#ownform .own-ice-menu legend {padding:0;margin-bottom:8px;font:550 1rem/1.35 var(--sans);}
#ownform [data-ice-choices] {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,72px),1fr));gap:6px;}
#ownform .own-ice-choice {position:relative;display:block;min-width:0;cursor:pointer;}
#ownform .own-ice-choice input {position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;}
#ownform .own-ice-choice>span {display:grid;justify-items:center;align-content:center;gap:5px;
  min-height:62px;height:100%;box-sizing:border-box;text-align:center;padding:5px 4px;border-radius:4px;border:1px solid var(--own-border);
  background:#211d19;color:#e6dac6;font:500 .94rem/1.15 var(--sans);}
#ownform .own-ice-choice input:checked+span {border-color:#d3b78a;background:#453a2c;color:#fff4e1;box-shadow:inset 0 -2px #d3b78a;}
#ownform .own-ice-choice:hover>span {border-color:#bba789;}
#ownform .own-ice-choice input:focus-visible+span {outline:2px solid var(--gold);outline-offset:2px;}
#ownform .own-ice-swatch {display:block;position:relative;width:30px;height:22px;pointer-events:none;}
.own-ice-swatch::before,.own-ice-swatch::after {position:absolute;content:"";}
.swatch-none::before {width:15px;height:1px;left:8px;top:11px;background:#b8ab96;}
.swatch-large::before,.swatch-cubes::before,.swatch-cubes::after,.swatch-crushed::before,.swatch-sphere::before {background:center/contain no-repeat;}
.swatch-large::before {inset:-1px 3px;background-image:url("/assets/studio/builder/large.webp");}
.swatch-cubes::before,.swatch-cubes::after {background-image:url("/assets/studio/builder/cubes.webp");}
.swatch-cubes::before {inset:0 12px 5px 0;transform:rotate(-12deg);}
.swatch-cubes::after {inset:7px 0 0 12px;transform:rotate(11deg);}
.swatch-crushed::before {inset:1px 0;background-image:url("/assets/studio/builder/crushed.webp");}
.swatch-sphere::before {inset:0 4px;background-image:url("/assets/studio/builder/sphere.webp");}
#ownform [data-glass-notice] {margin:8px 0 0;color:var(--own-muted);}
#ownform [data-glass-notice]:empty {display:none;}
#main-content #ownform .own-finish {
  grid-area:finish;display:block;min-width:0;padding:clamp(18px,2vw,30px) 0 0;border-top:1px solid var(--own-border);
}
#ownform .own-result-head,#ownform .own-method-tools {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;}
#ownform .own-result-head {margin-bottom:15px;}
#ownform .own-result-head button,#ownform .own-method-tools button {min-height:44px;}
#ownform .own-method-tools small {color:var(--own-muted);font:400 1rem/1.45 var(--sans);}
#ownform .own-step-list {margin:0;padding-inline-start:1.8em;max-width:78ch;color:var(--pale);font:400 1.06rem/1.55 var(--sans);}
#ownform .own-step-list li {padding-inline-start:.4em;margin:0 0 .5em;}
#ownform .own-step-list li::marker {color:var(--gold);font-variant-numeric:tabular-nums;}
#main-content #ownform [hidden] {display:none;}
#main-content #ownform [name=method] {min-height:8em;line-height:1.5;}
#main-content #ownform.own-editor .own-save {margin:20px 0 0;justify-content:flex-start;align-items:center;}
#main-content #ownform.own-editor .own-save .primary {min-height:48px;padding-inline:24px;}
#main-content #ownform.own-editor #ownerror:empty {display:none;}
#main-content #ownform.own-editor .own-picker>summary {padding-inline:5px;border-color:transparent;color:var(--gold);background:transparent;}
#main-content #ownform.own-editor .own-additions {gap:7px 15px;}
#main-content #ownform :is(input,select,button,summary,textarea) {scroll-margin-block:calc(var(--mast-height,64px) + 16px) 24px;}
@media(min-width:761px) and (max-height:730px) {
  #main-content #ownform.own-editor .own-preview {position:static;}
}
@media(max-width:760px) {
  #main-content .own-editor-heading {margin:14px 0 22px;padding-bottom:18px;}
  .own-editor-heading p {margin-top:9px;}
  #main-content #ownform.own-editor {grid-template-columns:minmax(0,1fr);grid-template-areas:"editor" "preview" "finish";gap:12px;}
  #main-content #ownform.own-editor .own-preview {position:static;text-align:start;}
  #main-content #ownform.own-editor .own-stage {height:auto;}
  #main-content #ownform.own-editor .own-preview-vessel {height:clamp(182px,48vw,238px);}
  #main-content #ownform.own-editor .own-save .primary {width:100%;}
}
@media(min-width:761px) {
  #main-content #ownform.own-editor .mixitem+.mixitem :is(.own-dose,.own-unit)>span:first-child,
  #main-content #ownform.own-editor .mixitem+.mixitem .own-name>label {
    position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
  }
}
#main-content #ownform .own-finish-details {margin-top:12px;padding-top:6px;border-top:1px solid var(--own-rule);color:var(--own-ink);}
#main-content #ownform .own-finish-details summary {min-height:40px;}
#main-content #ownform .own-finish-details[open]>div {margin-top:12px;}
#main-content #ownform .own-preview:has(.own-finish-details[open]) {position:static;}
#ownform [data-own-title]:empty {display:none;}

#ownform .own-next {margin:10px 0 0;font:400 .96rem/1.48 var(--sans);color:var(--own-muted);}
#ownform .own-next summary {display:flex;align-items:center;gap:7px;width:fit-content;padding:4px 0;color:var(--own-muted);cursor:pointer;}
#ownform .own-next summary::before {content:"";width:.42em;height:.42em;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(-45deg);}
#ownform .own-next[open] summary::before {transform:translateY(-.12em) rotate(45deg);}
#ownform .own-next summary::-webkit-details-marker {display:none;}
#ownform .own-next summary:hover {color:var(--gold);}
#ownform .own-next>div {margin:5px 0 2px;padding:0 0 0 13px;border-left:2px solid var(--own-border);}
#ownform .own-next p {max-width:60ch;margin:0 0 4px;overflow-wrap:anywhere;}
#ownform .own-next .textlink {min-height:32px;padding:0;color:var(--gold);}

#ownform .own-name {display:grid;gap:5px;min-width:0;}
#ownform .own-name-control::after {content:"";position:absolute;right:13px;top:50%;width:7px;height:7px;
  border-right:1.5px solid var(--own-muted);border-bottom:1.5px solid var(--own-muted);
  transform:translateY(-70%) rotate(45deg);pointer-events:none;}
#ownform.own-editor .own-name-control input {padding-right:32px;}
#ownform .own-suggestions {position:absolute;z-index:7;inset:calc(100% + 3px) 0 auto;min-width:0;
  border:1px solid var(--own-border);border-radius:4px;background:var(--own-input);color:var(--own-ink);
  box-shadow:0 6px 16px #0005;font:400 1rem/1.35 var(--sans);}
#ownform .own-suggestions.opens-above {top:auto;bottom:calc(100% + 3px);}
#ownform .own-suggestions[hidden] {display:none;}
#ownform .own-suggestions [role=listbox] {overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;}
#ownform .own-suggestions [role=option] {display:flex;align-items:center;min-height:44px;
  box-sizing:border-box;width:100%;margin:0;padding:8px 10px;border:0;border-radius:0;background:transparent;
  color:inherit;font:inherit;text-align:start;overflow-wrap:anywhere;cursor:pointer;}
#ownform .own-suggestions [role=option][aria-selected=true] {background:#483c2e;color:#fff1d7;}
@media(hover:hover){#ownform .own-suggestions [role=option]:hover {background:#483c2e;color:#fff1d7;}}
#ownform .own-suggestions p {margin:0;padding:10px 12px;color:var(--own-muted);}

/* Give quantity labels their own room when the editor shares a tablet with its preview. */
#main-content #ownform.own-editor .mixitem {
  grid-template-columns:minmax(92px,2.6fr) minmax(5.5rem,.7fr) minmax(7rem,.9fr) 44px;
}
#main-content #ownform.own-editor .mixitem #ownerror {grid-column:1/-1;margin:4px 0 8px;}
#main-content #ownform.own-editor [aria-invalid=true] {border-color:#e8a090;}
@media(max-width:1000px) {
  #main-content #ownform.own-editor .mixitem {
    grid-template-columns:minmax(0,1fr) minmax(7rem,1fr) 44px;
    grid-template-areas:"ingredient ingredient remove" "dose unit unit" "details details details";
    row-gap:6px;
  }
  #main-content #ownform.own-editor .mixitem .own-item-details {justify-self:start;}
  #main-content #ownform.own-editor .mixitem+.mixitem :is(.own-dose,.own-unit)>span:first-child,
  #main-content #ownform.own-editor .mixitem+.mixitem .own-name>label {
    position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;
  }
}
