.x-tarot,.x-support{margin-top:24px}
.x-tarot-grid{display:grid;grid-template-columns:minmax(190px,.82fr) minmax(260px,1.18fr);gap:clamp(20px,4vw,52px);align-items:center}
.x-artstage{min-height:365px;padding:24px 13px 17px;display:grid;justify-items:center;align-content:center;gap:15px;border:1px solid #3b3832;border-radius:var(--photo-radius);background:radial-gradient(ellipse at 31% 30%,#453b37,transparent 56%),linear-gradient(135deg,#29292b,#1d2224 60%,#362b29);isolation:isolate}
.x-card{width:min(197px,83%);aspect-ratio:240/354;display:block;position:relative;padding:0;background:none;border:0;border-radius:8px;cursor:pointer;touch-action:pan-y;perspective:900px;filter:drop-shadow(4px 10px 11px #090705a1)}
.x-card::before,.x-card::after{content:"";position:absolute;inset:0;border:1px solid #91795d;border-radius:8px;background:repeating-linear-gradient(45deg,#3d3536 0 2px,#483d3c 2px 3px);z-index:-1}
.x-card::before{transform:rotate(-6deg) translate(-4px,1px)}
.x-card::after{transform:rotate(4deg) translate(4px,0)}
.x-card-inner{display:block;position:absolute;inset:0;transform-style:preserve-3d;transform:rotateY(var(--drag,0deg));transition:transform .64s cubic-bezier(.25,.72,.19,1)}
.x-card.x-open .x-card-inner{transform:rotateY(180deg)}
.x-side{display:flex;position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:8px;overflow:hidden}
.x-back img{width:100%;height:100%;display:block}
.x-face{transform:rotateY(180deg);align-items:center;justify-content:center;flex-direction:column;padding:18px 14px;gap:8px;background:radial-gradient(ellipse at 50% 34%,#5b473e,transparent 65%),#2d2b30;color:#eac995;border:double 4px #ba9a6e;box-shadow:inset 0 0 0 5px #302d30,inset 0 0 0 6px #76664d}
.x-face i{font-style:normal;font-size:20px;color:#f3d69b}
.x-face strong{font:500 clamp(23px,3.5vw,36px)/.98 var(--ser,Georgia,serif);overflow-wrap:anywhere;color:#fff1cf}
.x-sign,.x-face-flavor{font:500 9px/1.5 var(--sans,Arial,sans-serif);letter-spacing:.1em;text-transform:uppercase}
.x-face-rule{font-size:8px;display:flex;justify-content:center;align-items:center;gap:6px;width:72%;color:#d5b983}
.x-face-rule::before,.x-face-rule::after{content:"";height:1px;width:35%;background:#9c8158}
.x-caption,.x-kicker{font:600 10px/1.55 var(--sans,Arial,sans-serif);letter-spacing:.14em;text-transform:uppercase;color:#c0a481}
.x-tarot-content{min-width:0}
.x-intro,.x-tarot-content [data-x-result]>p{margin:0 0 18px;color:#cec4b7}
.x-choice{min-width:0;margin:19px 0;border:0;padding:0}
.x-choice legend,.x-label{display:block;margin-bottom:7px;color:#eee5d6;font-weight:600;font-size:14px;padding:0}
.x-pills{display:flex;flex-wrap:wrap;gap:6px}
.x-pills label{position:relative;cursor:pointer;display:block}
.x-pills input{opacity:0;position:absolute;left:0;top:0;width:1px;height:1px}
.x-pills span{display:flex;align-items:center;min-height:37px;padding:5px 12px;border:1px solid #5a5045;border-radius:3px;background:#282421;color:#d8cabb;font-size:13px}
.x-pills input:checked+span{background:#e3bf91;border-color:#f1d1aa;color:#291f17;box-shadow:inset 0 0 0 1px #b5936c}
.x-pills input:focus-visible+span{outline:2px solid #f1c58d;outline-offset:3px}
.x-input{display:block;width:min(100%,245px);border:1px solid #655b4f;border-radius:3px;background:#231f1d;color:#f4e9d8;min-height:43px;padding:7px 12px;box-sizing:border-box}
.x-input[aria-invalid="true"]{border-color:#f4a68e}
.x-error{color:#f4ab92;margin:5px 0 0;font-size:13px}
.x-error:empty{display:none}
.x-primary{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;border-radius:3px;padding:10px 16px;background:#e5be8e;color:#271d14;border:1px solid #edcd9f;font-weight:650;font-size:14px;line-height:1.3}
.x-primary:disabled{opacity:.58;cursor:default}
.x-textbtn{display:inline-block;background:none;color:#dec59f;padding:8px 3px;text-decoration:none;border:0;font-size:1rem}
.x-tarot-content .x-textbtn{margin:7px 2px}
.x-hint{font-size:12px;color:#b7afa3;line-height:1.5;margin:9px 0 0}
.x-tarot [hidden],.x-support [hidden]{display:none!important}
.x-tarot-content h3{font:500 clamp(28px,4vw,47px)/1.05 var(--ser,Georgia,serif);margin:7px 0 11px}
.x-tarot-content .x-match{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 14px}
.x-match span{font-size:11px;border:1px solid #594c40;border-radius:20px;padding:2px 8px;color:#d2b286}
.x-tarot-content .x-pantrynote{padding:12px;border-inline-start:2px solid #a0805a;background:#272522;font-size:13px}
.x-pantrynote b{display:block;margin-bottom:3px;color:#ead6bb}
.x-history{margin-top:20px;border-top:1px solid #494238;padding-top:10px}
.x-history summary{cursor:pointer;padding:3px 0;font-weight:600}
.x-history summary small{margin-inline-start:3px;color:#bda282}
.x-history ol{list-style:none;margin:7px 0 0;padding:0}
.x-history li{display:flex;align-items:baseline;gap:15px;justify-content:space-between;border-bottom:1px solid #36312c}
.x-history li button{text-align:start;padding:7px 0;color:#e3cfb4;background:none;border:0;font:inherit}
.x-history time{font-size:12px;color:#b5a795;white-space:nowrap}
.x-support{max-width:620px}
.x-amounts span{min-width:64px;justify-content:center}
.x-custom{margin:16px 0}
.x-bank{padding:16px 18px;border:1px solid #554b3d;border-radius:4px;background:linear-gradient(120deg,#2e2922,#231f1c)}
.x-bank p{margin:3px 0 12px;color:#f3e7d4;font:500 25px/1.1 var(--ser,Georgia,serif)}
@media(max-width:680px){.x-tarot-grid{grid-template-columns:1fr;gap:19px}.x-artstage{min-height:0;padding:16px 10px 11px;gap:8px}.x-card{width:134px}.x-face{gap:4px;padding:12px 8px}.x-face strong{font-size:21px}.x-face i{font-size:12px}.x-sign,.x-face-flavor{font-size:7px}.x-caption{font-size:8px}.x-tarot,.x-support{margin-top:14px}.x-pills span{min-height:40px}.x-tarot-content h3{font-size:33px}}
@media(prefers-reduced-motion:reduce){.x-card-inner{transition:none}}
.x-gift { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; padding:14px 16px; margin-top:18px; border-radius:6px; background:#312821; }
.x-gift p { margin:0; flex:1 1 15rem; color:#e9dccc; font:400 16px/1.45 var(--sans,sans-serif); }
.x-gift-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.x-gift-btn, .x-gift-dismiss { min-height:44px; padding:5px 8px; font:550 1rem/1.4 var(--sans,sans-serif); }
.x-gift-btn { color:#f4cfa0; }
.x-gift-dismiss { color:#d1c2b0; }
.x-gift-actions button:hover { color:#fff1d7; }
.x-report-wrap{max-width:850px;margin:auto;padding:32px clamp(18px,4vw,42px) 60px}.x-report-wrap h1{margin:16px 0;font:500 clamp(40px,6vw,66px)/1 var(--ser,Georgia,serif);color:#f6e6d0}
.x-report-wrap table{width:100%;border-collapse:collapse;min-width:440px}.x-tablewrap{overflow-x:auto;margin-top:23px}.x-report-wrap caption{text-align:left;color:#eddbbf;font-weight:600;padding:4px 0 9px}
.x-report-wrap th,.x-report-wrap td{padding:7px 8px;border-bottom:1px solid #493f35;text-align:left;font-size:14px}.x-report-wrap thead th{font-size:12px;color:#b9ada0}.x-report-wrap tbody th{font-weight:450}.x-report-wrap th small,.x-report-wrap td small{display:block;color:#bba589}
.x-weightlist{display:grid;gap:9px;margin-top:12px}.x-weightlist label{display:flex;align-items:center;gap:14px;justify-content:space-between}.x-weightlist .x-input{width:86px;flex:none}.x-report-intro{max-width:630px;color:#cdc2b7}.x-report-back{color:#d7b68c}
@media(max-width:500px){.x-gift { display:block; } .x-gift-actions { margin-top:4px; }}
.x-cameo{display:block;width:80px;height:83px;border-radius:48% 48% 44% 44%;border:1px solid #cfad79;box-shadow:0 0 0 3px #40392e,0 0 0 4px #a2875e;flex:none;background-size:cover;background-position:center}
.x-mode label{display:block;margin:9px 0;color:#d1c4b4}.x-mode .x-input{width:min(100%,420px);margin-top:3px}.x-mode [hidden]{display:none}
@media(max-width:680px){.x-cameo{width:48px;height:48px}}
/* The bar reading is a full page with its own illustrated deck. */
.st-page:has(.x-reading) {
  max-width: 1380px;
  padding-top: clamp(12px,2vw,30px);
}
.reading-header { max-width: 47rem; margin: clamp(8px,2.2vw,30px) auto 0; text-align:center; }
.st-page .reading-header h1 {
  font: 550 clamp(2.45rem,5.3vw,4.8rem)/1.04 var(--sans);
  letter-spacing: -.045em;
  margin: 0;
}
.st-page .reading-header .x-readintro {
  margin: 12px auto 0;
  max-width: 52ch;
  color: #d7c7b4;
  font: 400 clamp(1rem,1.35vw,1.16rem)/1.5 var(--sans);
  text-wrap: balance;
}
.x-reading { margin: clamp(14px,2vw,26px) auto 0; }
.x-reading [hidden] { display:none !important; }
.x-reading-table {
  --tilt: 0deg;
  isolation:isolate;
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,3fr) minmax(0,3fr) minmax(0,4fr);
  gap:clamp(14px,2.65vw,40px);
  width:min(100%,clamp(550px,69vh,740px));
  padding:clamp(12px,1.8vw,26px) clamp(10px,2vw,32px) 0;
  margin:auto;
}
.x-reading-table::before {
  content:'';
  position:absolute;
  z-index:-1;
  inset:0 -4% 4%;
  background:radial-gradient(ellipse at 50% 70%,#543a2690,transparent 68%);
  pointer-events:none;
}
.x-seat { display:grid; align-content:start; justify-items:center; min-width:0; }
.x-seat:first-child { --tilt:-3deg; }
.x-seat:last-child { --tilt:3deg; --print-aspect:2/3; }
.x-reading-card {
  display:block;
  position:relative;
  width:100%;
  aspect-ratio:var(--print-aspect,1/2);
  padding:0;
  background:transparent;
  border:none;
  border-radius:6px;
  perspective:1200px;
  touch-action:pan-y;
  transform:rotate(var(--tilt));
  transition:transform .28s ease;
}
.x-reading-card:not(:disabled):is(:hover,:focus-visible) { transform:translateY(-4px) rotate(0); }
.x-reading-card:focus-visible { outline:3px solid #f3d6ae; outline-offset:4px; }
.x-reading-card:disabled { cursor:default; }
.x-reading-card * { pointer-events:none; user-select:none; -webkit-user-drag:none; }
.x-flip,.x-reading-side { position:absolute; inset:0; display:block; width:100%; height:100%; }
.x-flip { transform-style:preserve-3d; transition:transform .6s cubic-bezier(.2,.8,.25,1); }
.x-reading-card.is-revealed .x-flip { transform:rotateY(180deg); }
.x-reading-side {
  overflow:hidden;
  border-radius:6px;
  background:#251b14;
  box-shadow:0 12px 24px #100b0866;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}
.x-reading-back { overflow:visible; border-radius:0; background:none; }
.x-reading-side img { display:block; width:100%; height:100%; object-fit:contain; }
.x-reading-back img { filter:brightness(.98); }
.x-reading-card:disabled .x-reading-back img { filter:brightness(.85); }
.x-reading-face {
  transform:rotateY(180deg);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7%;
  padding:7%;
  background:#36281e;
}
.x-face-emblem {
  width:60%;
  aspect-ratio:1;
  background:url('/assets/tarot.svg') center / 165% auto no-repeat;
  clip-path:circle(48%);
}
.x-cardtitle { font:550 clamp(.87rem,1.38vw,1.3rem)/1.18 var(--sans); text-align:center; color:#f4dfbc; overflow-wrap:anywhere; }
.x-role { margin-top:clamp(13px,1.5vw,22px); color:#cfbaa0; font:500 clamp(.93rem,1.2vw,1.15rem)/1.3 var(--sans); text-align:center; }
.is-current .x-role { color:#ffe0af; }
.x-reading-desk { max-width:51rem; margin:clamp(20px,2vw,30px) auto 0; }
.x-reading-actions,.reading-options-row { display:flex; flex-wrap:wrap; justify-content:center; gap:14px 22px; align-items:flex-start; }
.x-reading-actions { align-items:center; }
.x-reading .x-primary { min-height:56px; padding:14px 28px; font:600 18px/1.4 var(--sans); text-decoration:none; }
.reading-options-row { margin-top:clamp(24px,2.1vw,32px); }
.reading-options-row > * { min-width:0; max-width:100%; }
.reading-options-row > :has(details[open]) { flex-basis:100%; }
.x-reading :is(.reading-options,.exclusion-control,.x-personal,.x-choice,.x-reason,.x-daily,.x-history) { border:0; margin:0; padding:0; }
.reading-options > summary,.reading-exclusions .exclusion-control > summary {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:52px;
  padding:12px 20px;
  border-radius:5px;
  color:#e9d8c1;
  background:#30271f;
  font:500 17px/1.4 var(--sans);
  list-style:none;
  cursor:pointer;
}
.x-reading summary::-webkit-details-marker { display:none; }
.reading-exclusions .exclusion-control { max-width:none; }
.reading-exclusions .exclusion-control summary::after { display:none; }
.x-reading :is(.reading-options,.exclusion-control)[open] > summary { background:#403126; color:#fff2df; }
.x-reading :is(.reading-options,.exclusion-control)>summary:hover { background:#48382a; }
.reading-fields { display:grid; gap:17px 20px; padding:20px clamp(10px,2vw,28px); }
.x-reading .x-pills { gap:10px; }
.x-reading .x-pills span { min-height:48px; padding:8px 14px; font: 500 15px/1.35 var(--sans); border-color:#655041; background:#29221d; color:#e5d7c4; }
.x-reading .x-pills input:checked + span { background:#47372c; color:#fff3e1; border-color:#bd9976; box-shadow:inset 0 0 0 1px #bd9976; }
.reading-fields legend,.reading-fields label.x-mood,.x-fields > label { color:#eee1d0; font:550 16px/1.45 var(--sans); }
.reading-fields .x-input { max-width:none; width:100%; min-height:50px; margin:6px 0 0; color-scheme:dark; background:#29221c; color:#f4e7d4; font:400 16px/1.4 var(--sans); }
.reading-fields .x-fields { display:grid; gap:14px; margin-top:16px; }
.x-reading :is(.x-personal,.x-reason,.x-history,.x-daily)>summary { cursor:pointer; min-height:50px; padding:12px 0; color:#e4c9a3; font:500 16px/1.45 var(--sans); list-style:none; }
.x-personal summary small { color:#baab99; font-size:14px; }
.x-reading .x-hint { font-size:14px; color:#cbbbA7; line-height:1.5; }
.reading-exclusions .exclusion-control[open] > :not(summary) { margin-inline:clamp(10px,2vw,28px); }
.reading-exclusions .exclusion-options label { min-height:48px; font-size:16px; }
.x-reading .x-textbtn { min-height:52px; padding:12px 16px; font:500 17px/1.4 var(--sans); }
.x-reading .x-kicker { color:#d6b28b; font:550 15px/1.4 var(--sans); text-transform:none; letter-spacing:0; }
.x-reading-result:not(:empty) { max-width:40rem; margin:0 auto 16px; }
.x-reading-result h3 { color:#f1e4d1; font:550 clamp(1.75rem,3.2vw,2.65rem)/1.14 var(--sans); margin:5px 0 10px; overflow-wrap:anywhere; }
.x-reading-result p { color:#e3d5c3; font:400 clamp(1rem,1.38vw,1.2rem)/1.55 var(--sans); }
.x-reading-result h3:focus { outline:none; }
.x-finalshot { margin:18px 0; }
.x-finalshot img { display:block; width:min(100%,480px); height:auto; border-radius:var(--photo-radius); }
.x-final .x-result-actions { display:flex; gap:14px 20px; flex-wrap:wrap; align-items:center; margin:24px 0; }
.x-final [data-x-remix] { display:inline-flex; align-items:center; justify-content:center; min-height:56px; padding:14px 20px; background:#352b23; border-radius:4px; color:#f0dfca; }
.x-final [data-x-remix]:hover { background:#44352a; }
.x-reading [data-x-history],.x-reading .x-daily { max-width:40rem; margin:14px auto 0; }
.x-reading [data-x-history]:empty { display:none; }
.x-reading .x-history li { border:0; }
@media(min-width:600px) {
  .reading-fields,.reading-fields .x-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .reading-fields :is(.x-route,.x-personal) { grid-column:1/-1; }
}
@media(max-width:600px) {
  .reading-header { margin:12px auto 0; }
  .x-reading-table { gap:clamp(11px,3.7vw,19px); padding:14px 6px 0; }
  .x-reading-card { width:100%; }
  .x-cardtitle { font-size:clamp(.75rem,3.6vw,1rem); }
  .x-reading .reading-options-row { gap:12px; max-width:28rem; margin-inline:auto; }
  .reading-options-row > * { flex:1 1 100%; }
  .reading-options > summary,.reading-exclusions .exclusion-control > summary { font-size:16px; padding:12px 18px; text-align:center; }
  .x-final .x-result-actions { flex-direction:column; align-items:stretch; }
}
@media(prefers-reduced-motion:reduce) {
  .x-reading-card,.x-flip { transition:none; }
  .x-reading-card:not(:disabled):is(:hover,:focus-visible) { transform:rotate(var(--tilt)); }
}
/* Also select the painted face explicitly on WebKit, which may flatten nested 3D layers. */
.x-reading-face { visibility:hidden; }
.x-reading-card.is-revealed .x-reading-back { visibility:hidden; }
.x-reading-card.is-revealed .x-reading-face { visibility:visible; }
@media(prefers-reduced-motion:no-preference) {
  .x-reading-side { transition:visibility 0s linear .24s; }
}

/* The visitor can read each line and its three counts in the same viewport. */
.x-report-wrap .x-tablewrap {margin-top:28px;}
.x-report-wrap td {font-variant-numeric:tabular-nums;}
@media(max-width:550px){
  .x-report-wrap table,.x-report-wrap tbody,.x-report-wrap caption {display:block;min-width:0;width:100%;}
  .x-report-wrap table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
  .x-report-wrap tbody tr {
    display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.3fr) minmax(0,1fr);
    column-gap:10px;row-gap:10px;padding:17px 0;border-top:1px solid #51483c;
  }
  .x-report-wrap tbody th,.x-report-wrap tbody td {padding:0;border:0;}
  .x-report-wrap tbody th {grid-column:1/-1;font-size:1rem;line-height:1.4;}
  .x-report-wrap tbody td {font-size:1rem;line-height:1.35;}
  .x-report-wrap tbody td::before {content:attr(data-column);display:block;min-height:2.7em;margin-bottom:3px;color:var(--secondary-ink);font-size:.85rem;line-height:1.35;}
  .x-report-wrap td small {font-size:.8rem;}
}

/* The maker keeps the serving glass in view while the recipe is being written. */
.atlas-tool #ownform {display:grid;grid-template-columns:minmax(215px,.62fr) minmax(0,1.38fr);gap:clamp(24px,4vw,64px);align-items:start;max-width:1150px}
#ownform .own-preview {position:sticky;top:100px;display:grid;justify-items:center;align-content:center;min-width:0;margin:0;padding:15px 0 22px;text-align:center}
.own-preview-vessel {width:100%;height:clamp(220px,26vw,355px);min-width:0}
#ownform .own-preview-copy {margin:9px 0 0}
#ownform .own-preview-copy strong {display:block;font:500 clamp(1.25rem,2.5vw,2rem)/1.18 var(--ser);overflow-wrap:anywhere}
#ownform .own-preview-copy p {margin:7px 0 0;color:var(--muted);font:1rem/1.45 var(--sans)}
#ownform .own-fields {display:grid;gap:18px;min-width:0}
#ownform .own-fields h3 {margin:8px 0 0;font:500 clamp(1.5rem,2.6vw,2.15rem)/1.12 var(--ser)}
#ownform .own-vessel-controls {display:flex;flex-wrap:wrap;align-items:end;gap:10px 14px}
#ownform .own-vessel-controls label {flex:1 1 170px}
#ownform [data-own-ice] {flex:0 1 auto;min-height:44px;color:var(--gold);padding:9px 12px;border:1px solid #675545;border-radius:5px}
#ownform [data-own-ice][aria-pressed="true"] {color:#e1f3f2;background:#293536;border-color:#566d69}
#ownform [data-own-picks] {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,120px),1fr));gap:10px}
#ownform [data-own-product] {display:grid;grid-template-rows:66px auto;align-content:start;justify-items:center;gap:4px;text-align:center;background:#2a231d;padding:10px 7px;border:0;border-radius:5px;color:var(--pale);font:550 1rem/1.3 var(--sans);overflow-wrap:anywhere}
#ownform [data-own-product]:is(:hover,:focus-visible) {background:#382c23}
#ownform [data-own-product] img {height:62px;max-width:90%;object-fit:contain}
#ownform .own-photo-credits {margin-top:8px;max-width:60ch;color:var(--muted)}
#ownform .own-photo-credits summary {min-height:44px;display:inline-flex;align-items:center;cursor:pointer;color:var(--gold)}
#ownform .own-photo-credits ul {padding-inline-start:1.3rem}
#ownform .own-photo-credits li {margin-bottom:7px}
#ownform .own-ingredient-photo {grid-area:visual;display:block;width:48px;height:56px;object-fit:contain;align-self:center}
#ownform [hidden] {display:none!important}
#ownform .mixitem.has-product {grid-template-columns:48px minmax(0,2.3fr) minmax(60px,.85fr) minmax(72px,1fr) auto;grid-template-areas:"visual ingredient dose unit remove" ". details details details details"}
#ownform .own-fields label {font:500 1rem/1.4 var(--sans)}
#ownform .own-fields :is(input:not([type=checkbox]),select) {min-height:44px}
#ownform [name=color] {padding:2px}
#ownform .own-fields>.primary {min-height:46px;justify-self:start}
.own-mini-serving {display:block;flex:none;width:86px;height:78px;background:transparent}
.resultrow > .own-mini-serving {width:61px;height:49px}
.own-saved-drink {display:flex;align-items:center;gap:14px;text-align:left;flex:1;min-width:0}
.own-saved-drink>span:last-child {overflow-wrap:anywhere}
.ownlist .own-saved-row {display:flex;align-items:center;gap:8px 15px;flex-wrap:wrap}
#ownserve.ownedstage {background:transparent;max-width:560px;width:100%;aspect-ratio:1.3;min-height:180px}
@media(max-width:920px){
  .atlas-tool #ownform {grid-template-columns:minmax(180px,.55fr) minmax(0,1.45fr);gap:20px}
  #ownform .mixitem.has-product {grid-template-columns:46px minmax(0,1fr) minmax(0,1fr);grid-template-areas:"visual ingredient ingredient" ". dose unit" ". details remove"}
}
@media(max-width:680px){
  .atlas-tool #ownform {grid-template-columns:minmax(0,1fr);gap:12px}
  #ownform .own-preview {position:sticky;top:var(--own-mast-height,65px);z-index:2;display:flex;align-items:center;justify-content:center;justify-items:start;gap:14px;padding:5px 10px;min-height:95px;background:var(--bg,#1c1915);text-align:left}
  .own-preview-vessel {width:100px;height:90px;flex:none}
  #ownform .own-preview-copy {margin:0;min-width:0}
  #ownform .own-preview-copy p {font-size:1rem;margin-top:3px}
  #ownform .own-fields {gap:16px}
  #ownform .mixitem.has-product {grid-template-columns:44px minmax(0,1fr) minmax(0,1fr);gap:6px 9px;grid-template-areas:"visual ingredient ingredient" ". dose unit" ". details remove"}
  #ownform .own-ingredient-photo {width:44px;height:52px}
  #ownform .own-fields :is(input,select,button,textarea,summary) {scroll-margin-block:170px 45px}
  .own-mini-serving {width:68px;height:64px}
}
@media(max-height:550px) and (max-width:680px){
  #ownform .own-preview {position:static}
}
.own-written-method {margin:0 0 22px;padding-inline-start:1.45em;max-width:66ch;font:400 1.05rem/1.55 var(--sans)}
.own-written-method li {padding-inline-start:.35em;margin:6px 0}
.own-written-method li::marker {color:var(--gold);font-weight:600}

/* Personal recipe editor */
.atlas-tool #ownform.own-studio {
  --own-surface:transparent;
  --own-ink:var(--pale);
  --own-muted:var(--muted);
  --own-rule:var(--fine);
  --own-input:#171511;
  --own-border:#685e50;
  display:grid;grid-template-columns:minmax(0,1.64fr) minmax(260px,.86fr);
  grid-template-areas:"editor preview";align-items:start;
  gap:clamp(20px,3vw,54px);max-width:1340px;width:100%;margin-inline:auto;
}
#ownform.own-studio .own-fields {
  grid-area:editor;display:block;min-width:0;
  padding:0;
  border:0;border-radius:0;
  color:var(--own-ink);background:var(--own-surface);color-scheme:dark;
}
#ownform.own-studio .own-preview {
  grid-area:preview;display:grid;grid-template-columns:minmax(0,1fr);
  grid-template-areas:"scene" "caption" "ice";align-content:start;justify-items:start;
  top:calc(var(--mast-height,64px) + 20px);padding:0;margin:0;
  background:transparent;color:var(--own-ink);text-align:start;
  overflow:visible;border-radius:0;border:0;
}
#ownform .own-stage {
  grid-area:scene;display:grid;place-items:end center;width:100%;
  background:transparent;
}
#ownform.own-studio .own-preview-vessel {width:100%;height:clamp(212px,20vw,305px);margin:0;}
#ownform.own-studio .own-preview-copy {grid-area:caption;min-width:0;max-width:100%;margin:0;padding:16px 0 0;}
#ownform .own-preview-label {display:block;margin-bottom:5px;color:#d7c39a;font:600 var(--label-size, .9375rem)/1.35 var(--sans);letter-spacing:.08em;text-transform:uppercase;}
#ownform.own-studio .own-preview-copy strong {color:var(--own-ink);font:500 clamp(1.35rem,2.15vw,2.3rem)/1.12 var(--ser);overflow-wrap:anywhere;}
#ownform.own-studio .own-preview-copy p {color:#e1d8c7;font:1rem/1.4 var(--sans);margin:6px 0 0;}
#ownform.own-studio [data-own-ice] {
  grid-area:ice;justify-self:start;margin:10px 0 0;padding:5px 12px;
  min-height:42px;max-width:calc(100% - 32px);border:1px solid var(--own-border);border-radius:4px;background:transparent;color:#ffeed5;
}
#ownform.own-studio [data-own-ice][aria-pressed=true]{color:var(--own-ink);border-color:var(--own-border);background:var(--own-input);}
#ownform.own-studio .own-section {display:grid;gap:14px;margin:0;padding:0 0 22px;min-width:0;border:0;}
#ownform.own-studio .own-section + .own-section {border-top:1px solid var(--own-rule);padding-top:20px;}
#ownform.own-studio .own-section h2 {color:var(--own-ink);margin:0;font:500 clamp(1.56rem,2.2vw,2.12rem)/1.12 var(--ser);letter-spacing:-.025em;}
#ownform .own-section-head {display:flex;align-items:baseline;justify-content:space-between;gap:8px 15px;flex-wrap:wrap;}
#ownform .own-section-head>span,#ownform .own-origin {color:var(--own-muted);font:500 var(--label-size, .9375rem)/1.42 var(--sans);margin:0;}
#ownform .own-recipe-line,#ownform .own-controls-line {display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:12px;}
#ownform.own-studio .own-fields label {color:var(--own-ink);font:550 1rem/1.35 var(--sans);min-width:0;gap:5px;}
#ownform.own-studio .own-fields :is(input:not([type=checkbox]),select,textarea) {
  border:1px solid var(--own-border);border-radius:4px;box-shadow:none;background-color:var(--own-input);color:var(--own-ink);
  width:100%;max-width:100%;font:400 1rem/1.35 var(--sans);min-height:44px;padding:8px 10px;box-sizing:border-box;
}
#ownform.own-studio .own-fields :is(input,textarea)::placeholder {color:#aba396;opacity:1;}
#ownform.own-studio .own-fields textarea {resize:vertical;min-height:76px;}
#ownform.own-studio .own-fields :disabled {background:var(--own-surface);color:#aaa194;border-color:var(--own-rule);}
#ownform.own-studio #mixitems {display:grid;gap:0;}
#ownform.own-studio .mixitem,#ownform.own-studio .mixitem.has-product {
  display:grid;position:relative;grid-template-columns:minmax(92px,2.6fr) minmax(48px,.7fr) minmax(7rem,.9fr) 44px;
  grid-template-areas:"ingredient dose unit remove" "details details details details";align-items:end;gap:2px 8px;margin:0;min-width:0;
}
#ownform.own-studio .mixitem+.mixitem {padding-top:7px;border-top:1px dashed var(--own-rule);}
#ownform.own-studio .mixitem .own-ingredient-photo {position:absolute;left:7px;bottom:8px;width:25px;height:28px;top:calc(1.19rem + 11px);pointer-events:none;}
#ownform.own-studio .mixitem+.mixitem .own-ingredient-photo {top:calc(1.19rem + 18px);}
#ownform.own-studio .mixitem.has-product [name=name] {padding-left:38px;}
#ownform.own-studio .own-remove {width:44px;min-height:44px;line-height:1;padding:0;border:0;border-radius:4px;color:var(--own-muted);background:transparent;font:400 1.4rem/1 var(--sans);}
#ownform.own-studio .own-item-details {grid-area:details;}
#ownform.own-studio :is(.own-item-details,.own-extras) > summary {
  display:inline-flex;align-items:center;min-height:34px;margin:0;padding:3px 0;cursor:pointer;
  color:#d6b995;background:transparent;font:550 1rem/1.3 var(--sans);border:0;
}
#ownform.own-studio :is(.own-item-details,.own-extras) > summary::before {content:'+';display:inline-block;margin-right:6px;font:500 1rem/1 var(--sans);}
#ownform.own-studio :is(.own-item-details,.own-extras)[open] > summary::before {content:'−';}
#ownform.own-studio .ownopt {display:flex;align-items:center;gap:8px;min-height:40px;}
#ownform.own-studio .ownopt input {accent-color:#c3a47d;}
#ownform .own-additions {display:flex;flex-wrap:wrap;align-items:start;gap:8px;}
#ownform.own-studio .own-additions>#adding,
#ownform.own-studio .own-picker>summary,
#ownform.own-studio [data-own-more] {
  display:inline-flex;align-items:center;justify-content:center;margin:0;min-height:44px;padding:8px 12px;
  border:1px solid var(--own-border);border-radius:4px;background:transparent;color:var(--own-ink);font:600 1rem/1.3 var(--sans);cursor:pointer;
}
#ownform.own-studio .own-picker {margin:0;max-width:100%;min-width:0;}
#ownform.own-studio .own-picker[open] {flex-basis:100%;}
#ownform.own-studio .own-picker[open]>label {margin-top:12px;}
#ownform.own-studio [data-own-picks] {grid-template-columns:repeat(auto-fit,minmax(min(100%,108px),1fr));gap:6px;}
#ownform.own-studio [data-own-product] {background:var(--own-input);color:var(--own-ink);border-radius:4px;min-width:0;grid-template-columns:minmax(0,1fr);white-space:normal;}
#ownform.own-studio .own-photo-credits,#ownform.own-studio .own-photo-credits a,#ownform.own-studio .own-photo-credits summary {color:var(--own-muted);}
#ownform.own-studio .own-save {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px;border-top:1px solid var(--own-rule);padding-top:18px;}
#ownform.own-studio #ownerror:not(:empty) {flex:1 1 220px;margin:0;color:#f2aa99;font:500 1rem/1.45 var(--sans);}
#ownform.own-studio .own-save .primary {background:#d4b58c;color:#231d17;border:0;border-radius:4px;min-height:46px;padding:10px 18px;font:600 1rem/1.35 var(--sans);}
@media(hover:hover){
  #ownform.own-studio :is(#adding,.own-picker>summary,[data-own-more],[data-own-product],.own-remove):hover{background:#37332d;color:var(--own-ink);}
  #ownform.own-studio .own-save .primary:hover{background:#e1c59d;}
}
#ownform.own-studio .own-fields :focus-visible {outline:1px solid var(--gold);outline-offset:2px;}
@media(max-width:940px){
  .atlas-tool #ownform.own-studio{grid-template-columns:minmax(0,1.65fr) minmax(196px,.85fr);gap:15px;}
  
}
@media(max-width:760px){
  .atlas-tool #ownform.own-studio {grid-template-columns:minmax(0,1fr);grid-template-areas:"preview" "editor";gap:12px;}
  #ownform.own-studio .own-preview {
    position:static;display:grid;grid-template-columns:minmax(88px,25%) minmax(0,1fr) auto;
    grid-template-areas:"scene caption ice";align-items:center;justify-items:stretch;gap:0;
  }
  #ownform.own-studio .own-stage {height:100%;border:0;}
  #ownform.own-studio .own-preview-vessel {width:100%;height:100%;min-height:86px;}
  #ownform.own-studio .own-preview-copy {padding:8px 10px;}
  #ownform.own-studio .own-preview-copy strong{font-size:1.2rem;line-height:1.13;}
  #ownform.own-studio .own-preview-copy p{font-size:1rem;margin-top:3px;}
  #ownform.own-studio .own-preview-label {font-size:var(--label-size, .9375rem);margin-bottom:3px;}
  #ownform.own-studio [data-own-ice]{margin:6px 8px 6px 0;max-width:92px;padding:5px 8px;min-height:44px;font-size:1rem;}
  
  #ownform.own-studio .own-section {gap:11px;padding-bottom:15px;}
  #ownform.own-studio .own-section+.own-section {padding-top:14px;}
  #ownform.own-studio .own-fields :is(input,select,button,textarea,summary) {scroll-margin-block:90px 32px;}
  #ownform.own-studio :is(.own-item-details,.own-extras)>summary {min-height:44px;}
}
@media(max-width:540px){
  #ownform .own-recipe-line,#ownform .own-controls-line {grid-template-columns:minmax(0,1fr);gap:9px;}
  #ownform.own-studio .mixitem,#ownform.own-studio .mixitem.has-product {
    grid-template-columns:minmax(0,1.23fr) minmax(0,1fr) 44px;
    grid-template-areas:"ingredient ingredient remove" "dose unit unit" "details details details";gap:5px 7px;
  }
  #ownform.own-studio .own-save .primary{width:100%;}
}
@media(max-width:370px){
  #ownform.own-studio .own-preview{grid-template-columns:76px minmax(0,1fr);grid-template-areas:"scene caption" "scene ice";}
  #ownform.own-studio .own-preview-copy{padding-inline:7px;}
  #ownform.own-studio [data-own-ice]{justify-self:start;max-width:calc(100% - 14px);margin:0 7px 9px;}
}
#ownform.own-studio .own-name-control {position:relative;display:block;}
#ownform.own-studio .mixitem .own-name-control .own-ingredient-photo {
  grid-area:auto;position:absolute;inset:50% auto auto 6px;transform:translateY(-50%);width:28px;height:32px;
}
#ownform.own-studio [data-own-ice] {white-space:normal;overflow-wrap:normal;text-wrap:balance;line-height:1.25;}
@media(max-width:760px) {
  #ownform.own-studio .own-preview-vessel {height:92px;min-height:0;}
}
@media(max-width:540px) {
  #ownform.own-studio .mixitem,#ownform.own-studio .mixitem.has-product {
    grid-template-columns:minmax(0,1.1fr) minmax(6.5rem,1fr) minmax(59px,auto);
    grid-template-areas:"ingredient ingredient remove" "dose unit details";row-gap:4px;padding-bottom:7px;
  }
  #ownform.own-studio .mixitem:has(.own-item-details[open]) {grid-template-areas:"ingredient ingredient remove" "dose unit unit" "details details details";}
  #ownform.own-studio .own-item-details:not([open]) {align-self:end;justify-self:end;}
  #ownform.own-studio .own-controls-line:has([name=garnish]) {grid-template-columns:1fr 1fr;}
}
