.ht-edit {
  --ed-surface: var(--surface, #fffdfa);
  --ed-page: var(--bg, #faf8f1);
  --ed-ink: var(--ink, #173d39);
  --ed-action: var(--accent, #096a5d);
  --ed-border: color-mix(in srgb, var(--ed-ink) 23%, var(--ed-surface));
  color: var(--ed-ink);
  background: var(--ed-page);
  padding: clamp(10px, 2vw, 24px);
  border-radius: 14px;
  font: 1rem/1.45 "Noto Sans Bengali","Nirmala UI",system-ui,sans-serif;
}
.ht-edit *, .ht-edit *::after {box-sizing:border-box}
.ht-edit [hidden] {display:none!important}
.ht-edit :is(button,input,select,textarea,summary){font:inherit;color:inherit}
.ht-edit :is(button,input,select,textarea,details){border-radius:9px;border:1px solid var(--ed-border);background:var(--ed-surface)}
.ht-edit button,.ht-edit summary{cursor:pointer;min-height:40px}
.ht-edit button{padding:5px 11px;line-height:1.3}
.ht-edit button:disabled{opacity:.45;cursor:default}
.ht-edit button:focus-visible,.ht-edit :is(input,select,textarea,summary):focus-visible{outline:3px solid var(--ed-action);outline-offset:2px}
.ht-edit .ed-primary{background:var(--ed-action);border-color:var(--ed-action);color:var(--on-accent,#fff)}
.ht-edit .ed-head{display:flex;gap:6px;align-items:center;margin:0 0 12px;flex-wrap:wrap}
.ht-edit .ed-head button[title]{min-width:40px;font-size:1.2rem}
.ht-edit .ed-name{flex:1 1 120px;min-width:0;font-weight:700;padding:7px 9px}
.ht-edit .ed-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(245px,30%);gap:14px;align-items:start}
.ht-edit .ed-work,.ht-edit .ed-side{min-width:0}
.ht-edit .ed-well{background-color:#dadbd4;background-image:conic-gradient(#e7e8e3 25%,transparent 0 50%,#e7e8e3 0 75%,transparent 0);background-size:18px 18px;display:grid;place-items:center;min-height:180px;padding:12px;border-radius:12px;border:1px solid var(--ed-border)}
.ht-edit .ed-sheet{width:min(100%,calc(min(62vh,680px)*var(--sheet-ratio,1)));position:relative;overflow:hidden;touch-action:none;border:0;box-shadow:0 1px 6px #1114;user-select:none}
.ht-edit canvas{display:block;width:100%;height:auto;max-width:none}
.ht-edit .ed-outline{position:absolute;border:2px dashed #ffd360;box-shadow:0 0 0 1px #392b10;pointer-events:none;transform-origin:center}
.ht-edit .ed-outline i{display:block;position:absolute;width:8px;height:8px;background:white;border:1px solid #573b17;box-shadow:0 0 0 1px #ffd360}
.ht-edit .ed-outline i:nth-child(1){top:-4px;left:-4px}.ht-edit .ed-outline i:nth-child(2){top:-4px;right:-4px}.ht-edit .ed-outline i:nth-child(3){bottom:-4px;left:-4px}
.ht-edit .ed-outline .ed-grip{width:15px;height:15px;right:-7px;bottom:-7px;pointer-events:auto;cursor:nwse-resize;touch-action:none}
.ht-edit .ed-toolbar,.ht-edit .ed-actions,.ht-edit .ed-command{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0;align-items:center}
.ht-edit .ed-command input{flex:1 1 180px;padding:7px;min-width:0}
.ht-edit .ed-field{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:5px 0}
.ht-edit .ed-field span{font-size:.88rem;font-weight:600}
.ht-edit .ed-field :is(input,select,textarea){width:56%;min-width:0;padding:5px;min-height:34px}
.ht-edit .ed-field textarea{resize:vertical}.ht-edit .ed-field input[type=color]{width:65px;padding:2px;cursor:pointer}
.ht-edit .ed-inspector,.ht-edit .ed-layers,.ht-edit details{padding:9px 12px;background:var(--ed-surface);border:1px solid var(--ed-border);border-radius:11px;margin:0 0 8px}
.ht-edit :is(h2,h3,p){margin:3px 0 7px}
.ht-edit .ed-list-toggle{width:100%;text-align:start;border:0;background:transparent;padding:0;font-weight:700}
.ht-edit .ed-layer{display:grid;grid-template-columns:minmax(0,1fr) 39px 39px;border:1px solid transparent;border-radius:7px;margin-top:3px}
.ht-edit .ed-layer.active{border-color:var(--ed-action);background:color-mix(in srgb,var(--ed-action) 10%,var(--ed-surface))}
.ht-edit .ed-layer button{background:transparent;border:0;padding:4px}
.ht-edit .ed-layer button:first-child{text-align:start;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ht-edit summary{font-weight:700;align-content:center}
.ht-edit details .ed-actions .ed-field{width:100%}
.ht-edit .ed-status{font-size:.9rem;min-height:1.6em;margin:6px 0}
.ht-edit .ed-hint,.ht-edit time{font-size:.85rem}
.ht-edit .ed-project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px;margin:10px 0}
.ht-edit .ed-project-card{display:flex;flex-direction:column;text-align:left;padding:8px;gap:4px;overflow:hidden}
.ht-edit .ed-project-card img{height:88px;width:100%;object-fit:contain;background:#e5e5dd;border-radius:5px}
.ht-edit .ed-project-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}
@media(max-width:760px){.ht-edit .ed-layout{grid-template-columns:1fr;gap:0}.ht-edit .ed-sheet{width:min(100%,calc(44vh*var(--sheet-ratio,1)))}.ht-edit .ed-toolbar button{flex:1 1 auto}.ht-edit .ed-side{display:flex;flex-direction:column}.ht-edit .ed-well{min-height:142px}.ht-edit .ed-field{min-height:35px}.ht-edit .ed-name{width:115px}.ht-edit .ed-inspector{padding-bottom:10px}}
