html:has(#studio:not([hidden]) #hyStudio:not([hidden])),
body:has(#studio:not([hidden]) #hyStudio:not([hidden])) {
  background-color:#f5f1e9;
  overscroll-behavior-y:none;
}
#hyStudio[hidden], #hyStudio [hidden] {display:none!important}
#hyStudio{--hy-ink:#29231e;--hy-quiet:#655a50;--hy-rule:#c7beb1;--hy-paper:#f5f1e9;display:grid;flex:1 1 0;min-width:0;min-height:0;overflow:hidden;grid-template-columns:minmax(0,2.05fr) minmax(348px,1fr);grid-template-rows:minmax(0,1fr);color:var(--hy-ink);background:var(--hy-paper);font:400 14px/1.4 var(--sans,Arial,sans-serif)}
.hy-stage{position:relative;isolation:isolate;min-width:0;min-height:0;overflow:hidden;background:radial-gradient(ellipse at 35% 28%,#f4ede1,#ccc1b1);border-inline-end:1px solid var(--hy-rule)}
.hy-stage[data-night=true]{background:radial-gradient(ellipse at 46% 38%,#383733,#141414)}
#hyCanvas{display:block;position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab;outline-offset:-3px}
#hyCanvas:active{cursor:grabbing}
.hy-stage-tools{position:absolute;inset-inline:12px;bottom:max(14px,env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;gap:6px;pointer-events:none}
.hy-switch{pointer-events:auto;display:inline-flex;align-items:center;flex-wrap:wrap;padding:2px;border:1px solid #958a7d9c;border-radius:3px;box-shadow:0 2px 12px #30291d10;background:#f4efdfed;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
#hyStudio button{font:inherit;cursor:pointer;color:inherit}
.hy-switch button{background:transparent;border:0;border-radius:1px;padding:7px 9px;min-height:35px}
.hy-switch button[aria-pressed=true]{background:#3e342b;color:white!important}
.hy-switch .hy-icon{min-width:34px;font-size:1rem}
.hy-status{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;padding:10px 16px;background:#f4f0e6ef;color:#3f342c;max-width:85%;border:1px solid #c3b5a3}
.hy-status:empty{display:none}
.hy-status button{margin-inline-start:10px;padding:4px 7px}
.hy-inspector{
  min-width:0;min-height:0;box-sizing:border-box;padding:clamp(17px,2vw,38px);
  overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;
  background-color:var(--hy-paper);color:var(--hy-ink);color-scheme:light;scrollbar-color:#a49a8c var(--hy-paper)
}
.hy-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.hy-heading h2{font:400 clamp(38px,3.8vw,74px)/.95 var(--display,Georgia,serif);letter-spacing:-.063em;margin:0}
.hy-heading>span{font-size:.72rem;color:var(--hy-quiet);text-align:end}
.hy-metrics{display:grid;grid-template-columns:max-content max-content minmax(0,1fr);column-gap:15px;border-block:1px solid var(--hy-rule);padding:12px 0;margin:18px 0 14px}
.hy-metrics div{display:flex;flex-direction:column;gap:1px}.hy-metrics div:last-child{text-align:end}
.hy-metrics span,.hy-kicker,.hy-legend,.hy-dim,.hy-help,.hy-origin{font-size:.76rem;color:var(--hy-quiet)}
.hy-metrics b{font:500 .96rem/1.25 var(--sans);font-variant-numeric:tabular-nums}
.hy-tabs{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 16px}
.hy-tabs button{padding:7px 9px;border:1px solid var(--hy-rule);background:transparent;min-height:35px}
.hy-tabs button[aria-pressed=true]{background:#352b25;color:#fff!important;border-color:#352b25}
.hy-panel{min-height:9em}
.hy-panel h3,.hy-details summary{font:500 .94rem/1.3 var(--sans);margin:0}
.hy-panel h3{margin:16px 0 8px}.hy-panel h3:first-child{margin-top:0}
.hy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.hy-preset{height:100%;text-align:start;background:transparent;border:1px solid var(--hy-rule);padding:9px 10px;display:grid;gap:3px;align-content:center;line-height:1.15}
.hy-preset[aria-pressed=true],.hy-chip[aria-pressed=true]{border-color:#4c3e32;box-shadow:inset 0 0 0 1px #4c3e32;background:#e8e0d3}
.hy-originals{grid-template-columns:repeat(3,minmax(0,1fr))}
.hy-originals button{padding:0;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0}.hy-originals img{display:block;width:100%;height:auto;aspect-ratio:1.26;object-fit:cover;background:#5d5c58;pointer-events:none}
.hy-originals strong{display:block;font:500 .84rem/1.14 var(--sans);padding:7px 6px 1px}
.hy-originals small{padding:2px 6px 7px;font:400 .66rem/1.15 var(--sans);color:#625748}
.hy-control{display:block;margin:12px 0 15px;min-width:0}
.hy-control-label{display:flex;justify-content:space-between;gap:9px;align-items:baseline;font-size:.88rem}
.hy-control output{color:var(--hy-quiet);font-variant-numeric:tabular-nums}
.hy-control input[type=range]{display:block;width:100%;height:26px;margin:3px 0 0;accent-color:#544231;cursor:pointer;touch-action:pan-y}
#hyStudio select{width:100%;font:400 1rem/1.2 var(--sans);color:var(--hy-ink);background:#f9f6ef;border:1px solid var(--hy-rule);border-radius:1px;padding:8px 7px;min-height:40px;margin-top:4px}
.hy-finishes{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,82px),1fr));gap:5px}
.hy-chip{display:flex;flex-direction:column;align-items:stretch;background:transparent;border:1px solid var(--hy-rule);padding:3px;min-width:0}
.hy-chip img{width:100%;height:28px;object-fit:cover;display:block}.hy-chip span{padding:4px 2px;font:400 .74rem/1.13 var(--sans);overflow-wrap:anywhere}
.hy-help{line-height:1.35;margin:8px 0 13px}.hy-warn{color:#8f492f}
.hy-details{border-top:1px solid var(--hy-rule);margin-top:20px;padding-top:12px}
.hy-details summary{cursor:pointer;min-height:36px}
.hy-details dl{margin:6px 0 0;font-size:.84rem}.hy-details dl div{display:flex;justify-content:space-between;gap:10px;padding:4px 0;border-bottom:1px solid #d7cfc3}.hy-details dd{margin:0;text-align:end;font-variant-numeric:tabular-nums}
.hy-delete{display:block;margin:12px 0 0;border:1px solid #bda28e;background:transparent;color:#87452c!important;padding:7px 12px;min-height:38px}
@media(max-width:1180px),(pointer:coarse){#hyStudio{grid-template-columns:minmax(0,1.2fr) minmax(302px,1fr)}.hy-tabs button,.hy-switch button{min-height:40px}}
@media(max-width:760px) and (orientation:portrait){#hyStudio{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,44%) minmax(0,1fr)}.hy-stage{border-inline-end:0;border-bottom:1px solid var(--hy-rule)}.hy-inspector{padding:15px max(16px,env(safe-area-inset-right)) max(30px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.hy-stage-tools{inset-inline:6px;bottom:6px;gap:2px}.hy-switch button{font-size:.74rem!important;padding:5px;min-width:26px;min-height:34px}.hy-stage-tools .hy-icon{min-width:27px}.hy-caption span:last-child{font-size:29px}.hy-metrics{margin:10px 0}.hy-tabs{gap:4px}.hy-tabs button{padding:6px 8px;font-size:.85rem!important}}
@media(max-height:540px) and (orientation:landscape){#hyStudio{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr)}.hy-stage-tools{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){#hyStudio *{scroll-behavior:auto}}
.hy-inline-action{background:none;border:0;text-decoration:underline;text-underline-offset:2px;color:inherit;padding:2px 0}
.hy-secondary{margin-top:8px;background:transparent;border:1px solid var(--hy-rule);padding:6px 10px;min-height:35px}
.hy-reference{position:absolute;inset-block-start:14px;inset-inline-start:14px;display:flex;align-items:center;gap:8px;max-width:60%;padding:3px 9px 3px 3px;border:1px solid #b1a79c;background:#f4f0e8e8;border-radius:2px;box-shadow:0 2px 9px #211c1514;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.hy-reference img{width:31px;height:32px;object-fit:cover;background:#37332c}.hy-reference span{font-size:.72rem}
.hy-reference-dialog{color:#f6f0e7;background:#191714;max-width:min(900px,94vw);max-height:91svh;padding:0;border:1px solid #7c7060;box-shadow:0 15px 90px #0008}
.hy-reference-dialog::backdrop{background:#191613bd}
.hy-reference-dialog header{display:flex;align-items:center;justify-content:space-between;gap:2em;padding:8px 14px}.hy-reference-dialog header strong{font-size:.85rem;font-weight:500}
.hy-reference-dialog header button{background:transparent;color:#fff!important;border:1px solid #847b72;min-width:38px;min-height:34px;font-size:1.3rem!important}
.hy-reference-dialog>img{display:block;max-width:100%;width:auto;max-height:calc(90svh - 60px);object-fit:contain;margin:auto}
@media(max-width:760px){.hy-reference{inset-block-start:7px;inset-inline-start:7px}.hy-reference img{width:26px;height:26px}}
