.lh-wrap,.hl-wrap{max-width:760px;padding-top:18px;padding-bottom:40px}
.lh-h1{font-size:1.6rem;margin:6px 0 8px}
.lh-topic{font-size:1rem;margin:22px 0 8px;color:var(--muted,#64748b);font-weight:600}
.lh-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.lh-card{display:flex;gap:12px;align-items:center;padding:12px 14px;border:1px solid var(--line,#e5e7eb);border-radius:14px;text-decoration:none;color:inherit;background:var(--card,#fff)}
.lh-card strong{display:block}
.lh-ic{font-size:26px;width:40px;text-align:center}
.lh-lead{font-size:1.05rem}
.lh-steps{padding-left:22px;line-height:1.6}.lh-steps li{margin:8px 0}
.hl-card{border:1px solid var(--line,#e5e7eb);border-radius:16px;padding:14px;margin:12px 0;background:var(--card,#fff);display:grid;gap:10px}
.hl-card .lh-topic{margin:0}
.hl-row{display:flex;gap:8px}.hl-row input{flex:1;min-width:0}
.hl-card input,.hl-card textarea{padding:10px;border:1px solid var(--line,#d1d5db);border-radius:10px;font:inherit;width:100%;box-sizing:border-box}
#hl-vid{width:100%;border-radius:12px;max-height:260px;object-fit:cover}
.hl-res{border-radius:16px;padding:16px;margin:12px 0;border:2px solid}
.hl-res h2{margin:0 0 6px;font-size:1.3rem}
.hl-halal{border-color:#16a34a;background:#f0fdf4}.hl-haram{border-color:#dc2626;background:#fef2f2}.hl-doubt{border-color:#d97706;background:#fffbeb}
.hl-res ul{margin:6px 0 0;padding-left:20px}
.hl-warn{background:#f8fafc;border-radius:12px;padding:10px 12px;border:1px solid var(--line,#e5e7eb)}
/* KB_SIZE */
.sz-wrap label{display:grid;gap:4px;font-size:.92rem;flex:1;min-width:0}
.sz-wrap select,.sz-wrap input[type=number]{padding:10px;border:1px solid var(--line,#d1d5db);border-radius:10px;font:inherit;width:100%;box-sizing:border-box;background:var(--card,#fff)}
.sz-cv{width:100%;height:auto;border-radius:12px;touch-action:none;background:#f1f5f9;display:block}
.sz-res{border:1px solid var(--line,#e5e7eb);border-radius:16px;padding:14px;margin:12px 0;background:var(--card,#fff)}
.sz-res h2{font-size:1.05rem;margin:4px 0 8px}
.sz-dims{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.sz-dims div{background:#f8fafc;border-radius:12px;padding:10px;text-align:center}
.sz-dims small{display:block;color:#64748b}.sz-dims b{font-size:1.1rem}
.sz-big{font-size:1.5rem;font-weight:700;margin:4px 0}
.sz-conf{border-radius:10px;padding:8px 10px;font-size:.9rem}.sz-low{background:#fef3c7}.sz-med{background:#e0f2fe}

/* KB_STUDIO */
.st-quick{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.st-q{display:flex;flex-direction:column;gap:4px;text-decoration:none;color:inherit}.st-q small{color:var(--muted,#6b7280);font-size:.82rem}
.st-tabs{display:flex;gap:6px;background:rgba(127,127,127,.12);padding:4px;border-radius:14px;margin:6px 0 12px}.st-tabs button{flex:1;border:0;background:none;padding:10px;border-radius:10px;font:inherit;font-weight:600;color:inherit;cursor:pointer}.st-tabs button[aria-selected=true]{background:var(--card,#fff);box-shadow:0 1px 4px rgba(0,0,0,.12)}
.st-cv{display:block;width:100%;max-height:62vh;object-fit:contain;border-radius:12px;background:#111;touch-action:none}.st-vcv{max-height:58vh}
.st-chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px;margin-bottom:8px}.st-chip{flex:none;border:1px solid rgba(127,127,127,.3);background:none;color:inherit;border-radius:999px;padding:7px 13px;font:inherit;font-size:.9rem;cursor:pointer}.st-chip.on{background:#6366f1;border-color:#6366f1;color:#fff}
.st-stk{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.st-stk button{font-size:1.6rem;border:0;background:rgba(127,127,127,.1);border-radius:10px;padding:6px 0;cursor:pointer}
.st-wrap label{display:block;margin:6px 0}.st-wrap input[type=range]{width:100%}.st-save{width:100%;margin:8px 0;font-size:1.05rem}#st-vbar{width:100%}
.st-wrap input[type=color]{width:48px;height:48px;padding:2px;border-radius:10px;border:1px solid rgba(127,127,127,.3);flex:none}
@media (max-width:640px){#st-pwork .st-stage{position:sticky;top:64px;z-index:5}#st-pwork .st-cv{max-height:36vh}}
@media (max-width:640px){#st-pwork .st-cv{max-height:30vh}#st-pwork>.hl-card:not(.st-stage),#st-pwork>.hl-card:not(.st-stage) *,#st-psave{scroll-margin-top:calc(30vh + 150px);scroll-margin-bottom:90px}#st-pwork{padding-bottom:80px}}

/* KB_LH2 */
.lh-aud{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 6px}.lh-aud a{padding:7px 12px;border-radius:999px;background:#eef2ff;color:#3730a3;text-decoration:none;font-weight:600;font-size:.9rem}.lh-aud a[aria-current=page]{background:#4f46e5;color:#fff}

/* Longer translated labels must fit a phone without horizontal page scrolling. */
.lh-card>span:last-child{min-width:0;overflow-wrap:anywhere}.st-tabs button{min-width:0;white-space:normal}.hl-wrap select{max-width:100%}.sz-dims>div{min-width:0;overflow-wrap:anywhere}
@media(max-width:480px){.hl-row{flex-wrap:wrap}.hl-row>label{flex:1 1 130px;min-width:0}.hl-row>select{min-width:0;flex:1}.hl-row>.btn{white-space:normal}.st-quick{grid-template-columns:repeat(2,minmax(0,1fr))}.st-tabs button{padding:10px 6px;font-size:.9rem}}
