/* v101 Henna-Hand- & Fuß-Studio */
.hd-warn,.hd-note,.hd-note h2,.hd-note li,.hd-note p,.hd-ctl input[type=text],.hd-ctl input[type=search],.hd-card,.hd-card span,.hd-ph,.hd-phase,
.hd-note a,.hd-link{color:#0b5e5e}
.hd .lede{max-width:66ch}
.hd-warn{background:#fff4d6;border:1px solid #e6c36a;border-radius:10px;padding:.5rem .7rem;margin:.6rem 0;font-size:.92rem}
.hd-warn[hidden]{display:none}
.hd-grid{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.15fr);gap:1.4rem;align-items:start;margin-top:.9rem}
.hd-stage{position:sticky;top:.6rem;min-width:0}
.hd-viewport{border-radius:16px;border:1px solid #e3dcc6;background:radial-gradient(120% 90% at 50% 20%,#fbf7ea 0,#f1e9d3 70%,#e8dfc6 100%);padding:.4rem;display:flex;justify-content:center;align-items:center;min-height:16rem;box-shadow:0 10px 30px -18px rgba(70,45,10,.45)}
.hd-viewport canvas{width:100%;max-width:440px;height:auto;max-height:56vh;object-fit:contain;display:block;filter:drop-shadow(0 8px 10px rgba(60,35,10,.22))}
.hd-viewport{position:relative}.hd-viewport canvas{transition:transform .25s ease-out;will-change:transform}.hd-viewport.hd-tilt canvas{transition:transform .06s linear}.hd-viewport::after{content:"";position:absolute;inset:0;border-radius:16px;pointer-events:none;opacity:0;transition:opacity .3s;background:radial-gradient(circle at var(--lx,50%) var(--ly,30%),rgba(255,255,255,.38),rgba(255,255,255,0) 45%)}.hd-viewport.hd-tilt::after{opacity:1}
.hd-name{margin:.5rem 0 .2rem;font-weight:600;min-height:1.4em;text-align:center;color:inherit}
.hd-time{background:#f3efe3;border:1px solid #e3dcc6;border-radius:12px;padding:.55rem .8rem;margin:.4rem 0}
.hd-time,.hd-time label{color:#2b2a24}
.hd-time label{display:block;font-weight:600}
.hd-timerow{display:flex;gap:.6rem;align-items:center}
.hd-timerow input{flex:1;min-width:0;min-height:32px}
.hd-timerow button{min-height:44px;padding:.3rem .8rem;border-radius:10px;border:1px solid #0b5e5e;background:#fff;color:#0b5e5e;font-weight:600;cursor:pointer;white-space:nowrap}
.hd-phase{margin:.3rem 0 0;font-size:.92rem;min-height:2.6em}
.hd-btns{display:flex;flex-wrap:wrap;gap:.5rem;margin:.6rem 0}
.hd-btns button{min-height:44px;padding:.5rem 1rem;border-radius:10px;border:1px solid #0b5e5e;background:#fff;color:#0b5e5e;font-weight:600;cursor:pointer}
.hd-btns button.hd-pri{background:#0b5e5e;color:#fff}
.hd-btns button[aria-pressed=true]{background:#fbe9e4;border-color:#b3392b;color:#8b2a1f}
.hd-btns-s{margin:.5rem 0 .6rem}
.hd-ctl{min-width:0}
.hd-ctl h2{display:flex;align-items:center;gap:.5rem;font-size:1.15rem;margin:1.2rem 0 .5rem}
.hd-ctl h2:first-child{margin-top:0}
.hd-ctl label{display:block;margin:.7rem 0 .25rem;font-weight:600}
.hd-ctl input[type=text],.hd-ctl input[type=search]{width:100%;box-sizing:border-box;min-height:44px;padding:.4rem .7rem;border:1px solid #cfc7ae;border-radius:10px;font-size:1rem;background:#fff}
.hd-ctl input[lang=ar]{font-family:"Amiri",serif;font-size:1.3rem}
.hd-ctl input[type=range]{width:100%;min-height:32px}
.hd-ctl .outbox{display:none}
.hd-lbl{margin:.7rem 0 .3rem;font-weight:600;font-size:.95rem}
.hd-row[hidden]{display:none}
.hd-seg{display:flex;flex-wrap:wrap;gap:.4rem}
.hd-seg button,.hd-chip{min-height:44px;padding:.3rem .8rem;border-radius:10px;border:1px solid #cfc7ae;background:#fff;color:#2b2a24;cursor:pointer;font-size:.95rem}
.hd-seg button[aria-pressed=true],.hd-chip[aria-pressed=true]{background:#0b5e5e;border-color:#0b5e5e;color:#fff}
.hd-chips{display:flex;flex-wrap:wrap;gap:.35rem;margin:.5rem 0}
.hd-chip{min-height:38px;padding:.15rem .7rem;border-radius:99px;font-size:.88rem}
.hd-tools{display:flex;gap:.5rem;align-items:center}
.hd-tools input{flex:1;min-width:0}
.hd-tools button{min-height:44px;padding:.3rem .8rem;border-radius:10px;border:1px solid #c1521f;background:#fff;color:#a8431a;font-weight:600;cursor:pointer;white-space:nowrap}
.hd-count{font-size:.85rem;margin:.2rem 0 .4rem;opacity:.75}
.hd-gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:.5rem;max-height:34rem;overflow:auto;padding:.2rem;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.hd-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:.1rem;padding:.35rem .3rem .4rem;border-radius:12px;border:1px solid #d9d1b8;background:#fbf7ea;cursor:pointer;min-height:44px;text-align:center}
.hd-card[aria-checked=true]{border-color:#0b5e5e;box-shadow:0 0 0 2px #0b5e5e inset;background:#f1f7f5}
.hd-th{width:100%;height:auto;aspect-ratio:3/5;object-fit:contain;display:block;background:radial-gradient(#f4ecd6,#eadfc3);border-radius:8px}
.hd-cn{font-size:.82rem;font-weight:600;line-height:1.15}
.hd-cs{font-size:.72rem;opacity:.7;line-height:1.1}
.hd-heart{position:absolute;right:.4rem;top:.3rem;font-style:normal;color:#b3392b;font-size:.95rem}
.hd-empty{padding:1rem;grid-column:1/-1}
.hd-namebox{margin-top:.6rem;border-top:1px dashed #d9d1b8;padding-top:.4rem}
.hd-namebox[hidden],#hdNameIn[hidden],#hdNameHint[hidden]{display:none}
.hd-phr{display:flex;flex-wrap:wrap;gap:.35rem;margin:.5rem 0}
.hd-ph{min-height:44px;padding:.2rem .8rem;border-radius:10px;border:1px solid #d9d1b8;background:#fff;font-family:"Amiri",serif;font-size:1.25rem;cursor:pointer}
.hd-sws{display:flex;flex-wrap:wrap;gap:.6rem}
.hd-sw{width:44px;height:44px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #b8b09a;cursor:pointer;padding:0}
.hd-sw[aria-pressed=true]{box-shadow:0 0 0 3px #0b5e5e}
.hd-lenrow{display:flex;gap:.7rem;align-items:center}.hd-lenrow b{min-width:4.2em}
.hd-check{display:flex!important;align-items:flex-start;gap:.5rem;font-weight:400!important}
.hd-check input{width:22px;height:22px;margin-top:.1rem}
.hd-link{display:block;margin:.4rem 0}
.hd-note,.hd-faq{margin-top:1.6rem;max-width:70ch}
.hd-note{background:#fff8e6;border:1px solid #e6c36a;border-radius:12px;padding:.8rem 1rem}
.hd-faq details{border-bottom:1px solid #e3dcc6;padding:.5rem 0}
.hd-faq summary{cursor:pointer;font-weight:600}
#hdPrintSheet{display:none}
@media print{
  @page{margin:8mm}
  body.hdprinting > *:not(main):not(script){display:none!important}
  body.hdprinting main > *:not(#hdPrintSheet):not(.hd){display:none!important}
  body.hdprinting .hd{display:none!important}
  body.hdprinting #hdPrintSheet{display:block!important}
  body.hdprinting{background:#fff!important;color:#000!important}
  #hdPrintSheet h1{font-size:12pt;margin:0 0 2mm}#hdPrintSheet p{font-size:9pt;margin:0 0 2mm}#hdPrintSheet img{display:block;margin:2mm 0;max-width:none}
}
@media (min-width:901px){.hd{margin-inline:calc(50% - min(560px,50vw - 1rem))}.hd .lede,.hd-note,.hd-faq{max-width:70ch}}
@media (max-width:900px){.hd-grid{grid-template-columns:minmax(0,1fr)}.hd-stage{position:static}.hd-viewport canvas{max-height:60vh}.hd-gal{max-height:26rem}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.hd-empty{grid-column:1/-1;padding:.8rem .2rem;color:inherit}.hd-namebtn{min-height:44px;margin-top:.4rem;padding:.4rem .9rem;border-radius:10px;border:1px solid #0b5e5e;background:#0b5e5e;color:#fff;font-weight:600;cursor:pointer}

/* v104: Atelier */
.hd-sel{width:100%;box-sizing:border-box;min-height:44px;padding:.5rem .7rem;border:1px solid #bda;border-radius:10px;font:inherit;background:#fff;color:#2b2a24}
.hd-adj{margin-top:.8rem;padding:.7rem .8rem;border:1px dashed #c9b88f;border-radius:12px}
.hd-adj label{display:flex;justify-content:space-between;gap:.5rem;margin-top:.5rem;font-weight:600}
.hd-adj input[type=range]{width:100%}
.hd-mini{margin-top:.6rem;min-height:40px;padding:.3rem .9rem;border-radius:999px;border:1px solid #0b5a56;background:#fff;color:#0b5a56;font:inherit;cursor:pointer}
.hd-minesave{display:flex;gap:.5rem;flex-wrap:wrap}
.hd-minesave input{flex:1 1 12rem;min-height:44px;box-sizing:border-box;padding:.5rem .7rem;border:1px solid #bda;border-radius:10px;font:inherit}
.hd-minesave button{min-height:44px;padding:.4rem 1rem;border-radius:999px;border:1px solid #0b5a56;background:#0b5a56;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.hd-mine{display:grid;gap:.5rem;margin:.3rem 0 .6rem}
.hd-mi{display:flex;align-items:center;gap:.6rem;padding:.4rem .5rem;border:1px solid #d8cdb2;border-radius:12px;background:rgba(255,255,255,.55)}
.hd-mi img{height:auto;max-height:80px;border-radius:8px;object-fit:cover;flex:none}
.hd-mt{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
.hd-mt b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit}
.hd-mt span{font-size:.82rem;opacity:.75}
.hd-mi button{min-height:40px;min-width:44px;padding:.2rem .8rem;border-radius:999px;border:1px solid #0b5a56;background:#fff;color:#0b5a56;font:inherit;cursor:pointer}
.hd-mi .hd-x{border-color:#a33;color:#a33;padding:.2rem .6rem}
.hd-shop{margin:1.6rem 0}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .hd-sel,:root:not([data-theme="light"]) .hd-minesave input{background:#1d1f27;color:#eee;border-color:#555}:root:not([data-theme="light"]) .hd-mi{background:rgba(255,255,255,.06);border-color:#444}}
:root[data-theme="dark"] .hd-sel,:root[data-theme="dark"] .hd-minesave input{background:#1d1f27;color:#eee;border-color:#555}
:root[data-theme="dark"] .hd-mi{background:rgba(255,255,255,.06);border-color:#444}
