.le-editor{
  --le-ink:#32281e;--le-muted:#6d5f52;--le-gold:#966742;--le-line:#deceba;--le-cream:#fbf6eb;
  display:grid;grid-template-columns:minmax(0,1.48fr) minmax(19rem,0.82fr);
  gap:1rem;width:100%;max-width:100%;height:100vh;height:100dvh;min-height:26rem;
  padding:1rem;background:#f2ebdd;color:var(--le-ink);font:400 1rem/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;
  text-align:start;box-sizing:border-box;isolation:isolate;
}
.le-editor *,.le-editor *::before,.le-editor *::after{box-sizing:border-box}
.le-editor [hidden]{display:none!important}
.le-editor button{
  appearance:none;width:auto;min-height:2.55rem;padding:.52rem .93rem;margin:0;border:1px solid var(--le-line);border-radius:2rem;
  font:600 .91rem/1.18 inherit;font-family:inherit;font-size:.91rem;font-weight:600;line-height:1.18;
  color:var(--le-ink);background:#fffaf2;letter-spacing:normal;text-transform:none;box-shadow:none;cursor:pointer;
}
.le-editor button:hover:enabled{border-color:var(--le-gold);background:#f4e9d9}
.le-editor button:disabled,.le-editor fieldset:disabled button{opacity:.47;cursor:default}
.le-editor button:focus-visible,.le-editor canvas:focus-visible,.le-editor input:focus-visible{
  outline:3px solid #755137;outline-offset:2px
}
.le-editor button.le-primary,.le-editor button[aria-pressed="true"]{background:#835b3d;color:#fffaf2;border-color:#835b3d}
.le-editor button.le-primary:hover:enabled,.le-editor button[aria-pressed="true"]:hover:enabled{background:#6c482f}
.le-workspace{position:relative;min-height:0;min-width:0;display:grid;grid-template-rows:auto 1fr;border-radius:1.2rem;overflow:hidden;background:#e5dbcb}
.le-toolbar{z-index:1;display:flex;align-items:center;gap:.43rem;flex-wrap:wrap;padding:.8rem;background:#f7f0e4;border-bottom:1px solid var(--le-line)}
.le-toolbar .le-back{margin-inline-end:auto}
.le-stage{position:relative;overflow:hidden;min-width:0;min-height:0;isolation:isolate;background:#e7decf}
.le-surface{display:block;position:absolute;inset:0;width:100%;height:100%;touch-action:none;user-select:none;-webkit-user-select:none}
.le-tip{position:absolute;inset:auto auto .85rem 50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 1.7rem);
  display:flex;align-items:center;gap:1rem;padding:.55rem .6rem .55rem 1rem;border:1px solid #e3d5c3;border-radius:1rem;
  background:#fffaf2f5;color:#594b40;font-size:.89rem;line-height:1.4;box-shadow:0 3px 16px #513b211a}
.le-tip button{flex:none;min-height:2rem;padding:.4rem .7rem;font-size:.8rem}
.le-panel{display:flex;flex-direction:column;gap:.8rem;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:#beaa90 transparent}
.le-card{padding:clamp(.85rem,1.6vw,1.35rem);border:1px solid #e6d8c4;border-radius:1.15rem;background:var(--le-cream)}
.le-group{padding:0;margin:0;border:0;min-width:0}
.le-group+.le-group{margin-top:1.25rem}
.le-group legend{
  margin:0 0 .55rem;padding:0;float:none;width:auto;font:600 .8rem/1.3 system-ui,sans-serif;color:var(--le-muted);
  letter-spacing:.115em;text-transform:uppercase
}
.le-thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}
.le-editor button.le-thumb{
  display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;gap:.36rem;padding:.38rem;
  border:1.5px solid #eadfce;border-radius:.8rem;text-align:start;min-width:0;background:#fffaf1;
}
.le-editor .le-thumb span{padding:.08rem .2rem .16rem;font-size:.83rem;overflow-wrap:anywhere}
.le-editor .le-thumb canvas{display:block;width:100%;height:auto;border-radius:.5rem;background:linear-gradient(130deg,#f5ead8,#ead8b8)}
.le-editor button.le-thumb[aria-pressed="true"],.le-editor button.le-thumb[aria-pressed="true"]:hover{color:var(--le-ink);border-color:#895d37;background:#fff7e7;box-shadow:inset 0 0 0 1px #895d37}
.le-choices,.le-actions,.le-eyes{display:flex;flex-wrap:wrap;gap:.45rem}
.le-choice{display:inline-flex;align-items:center;gap:.4rem}
.le-swatch{display:inline-block;border:1px solid #ffffffa8;border-radius:50%;width:.85rem;height:.85rem}
.le-black{background:#25211f}.le-brown{background:#71503b}
.le-eyes{display:grid;grid-template-columns:1fr 1fr;margin-bottom:.8rem}
.le-range{display:grid;grid-template-columns:4.1rem minmax(4rem,1fr) 3.3rem;align-items:center;gap:.5rem;margin:.25rem 0;font-size:.87rem}
.le-range input{margin:0;width:100%;min-height:1.85rem;accent-color:#996c47;cursor:pointer}
.le-range output{text-align:end;font-variant-numeric:tabular-nums}
.le-actions{justify-content:space-between;margin-top:.7rem}
.le-actions button{min-height:2.2rem;padding:.4rem .65rem;font-size:.82rem}
.le-modal{
  width:min(38rem,calc(100% - 2rem));max-width:100%;max-height:88vh;max-height:88dvh;overflow:hidden;
  margin:auto;padding:1.2rem;color:var(--le-ink);border:1px solid var(--le-line);border-radius:1rem;background:var(--le-cream);
  box-shadow:0 20px 90px #281d1b44;text-align:center;
}
.le-modal[open]{display:flex;flex-direction:column}
.le-modalbar,.le-modal>button{flex:none}
.le-modal>button{align-self:center;margin-top:.8rem}
.le-preview-scroll{min-height:0;overflow:auto;overscroll-behavior:contain}
.le-preview-scroll:focus-visible{outline:3px solid #755137;outline-offset:2px}
.le-modal::backdrop{background:#221a15a8}
.le-modalbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 1rem}
.le-modal h2{margin:0;color:var(--le-ink);font:500 1.65rem/1.25 Georgia,serif;letter-spacing:0}
.le-modal img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;margin:0 auto}
.le-status{font-size:.94rem;color:var(--le-muted)}
.le-status:empty{display:none}
@media(max-width:740px){
  .le-editor{display:flex;flex-direction:column;gap:0;padding:0;min-height:26rem}
  .le-workspace{flex:0 0 53%;border-radius:0;min-height:0}
  .le-toolbar{gap:.32rem;padding:.45rem;justify-content:space-between}
  .le-toolbar button{font-size:.77rem;padding:.42rem .55rem;min-height:2.28rem}
  .le-toolbar .le-back{margin:0}
  .le-panel{flex:1;gap:.5rem;padding:.55rem;padding-bottom:max(.7rem,env(safe-area-inset-bottom));min-height:0}
  .le-card{border-radius:.85rem;padding:.85rem}
  .le-tip{bottom:.45rem;max-width:calc(100% - 1rem);gap:.55rem;font-size:.8rem;padding:.35rem .45rem .35rem .6rem}
  .le-group+.le-group{margin-top:1rem}
  .le-thumbs{gap:.37rem}
  .le-editor .le-thumb canvas{max-height:3.5rem}
  .le-group legend{font-size:.78rem}
}
@media(max-height:520px) and (min-width:600px){
  .le-editor{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(16rem,1fr);min-height:15rem;height:100dvh;padding:.35rem;gap:.4rem}
  .le-toolbar{padding:.35rem;gap:.24rem}
  .le-toolbar button{font-size:.73rem;min-height:1.9rem;padding:.35rem .45rem}
  .le-panel{padding:0}
  .le-workspace{border-radius:.7rem}
}
