/* LÉGENDE HM — beige & olive theme (preview) */
body.day-mode{
  --bg:#f3ede0;--card:#fbf8f1;--text:#23331a;--muted:#5f6652;
  --gold:#2f4a1f;--border:#e2d8c3;--warn:#7a5a12;--danger:#9b2a22;--success:#2c5e2c;
  background:#f3ede0;color:#23331a;font-family:"Readex Pro","Noto Naskh Arabic",Tahoma,sans-serif;
}
html:has(body.day-mode){background:#f3ede0}
body.day-mode header{background:#f3ede0;border-bottom:1px solid #e2d8c3}
body.day-mode .brand .word{color:#2f4a1f}
body.day-mode .brand img{background:transparent}
body.day-mode nav a{color:#5f6652;border-color:#d6caae;background:transparent}
body.day-mode nav a.active,body.day-mode nav a:hover{color:#2f4a1f;border-color:#2f4a1f}
body.day-mode .btn{background:#2f4a1f;color:#f8f4ea;border-color:#2f4a1f;box-shadow:none}
body.day-mode .btn.secondary{background:transparent;color:#2f4a1f;border-color:#2f4a1f}
body.day-mode .btn.danger{background:transparent;color:#9b2a22;border-color:#df9a90}
body.day-mode section{background:#fbf8f1;border-color:#e2d8c3;box-shadow:none}
body.day-mode h2,body.day-mode h3{color:#2f4a1f}
body.day-mode .hint,body.day-mode .card .hint,body.day-mode .card-hint{color:#5f6652}
body.day-mode label{color:#5f6652}
body.day-mode .card,body.day-mode table{background:#f3ede0;border-color:#e2d8c3}
body.day-mode .home-card{background:#f3ede0;border:1.5px solid #d9c08a}
body.day-mode .home-card:hover{border-color:#2f4a1f;box-shadow:0 6px 18px rgba(47,74,31,.12)}
body.day-mode .home-card h3{color:#2f4a1f!important}
body.day-mode input,body.day-mode textarea.name-cell,body.day-mode select{background:#fff;color:#23331a;border-color:#d6caae}
body.day-mode input:focus,body.day-mode textarea:focus{outline:2px solid #2f4a1f;outline-offset:1px}
body.day-mode th{background:#ece4d0;color:#23331a}
body.day-mode td,body.day-mode th{color:#23331a;border-color:#e2d8c3}
body.day-mode .out .box{background:#fff;border-color:#d6caae}
body.day-mode .out .title{color:#5f6652}
body.day-mode .out .val{color:#2f4a1f}
body.day-mode .out .val.yellow{color:#7a5a12}
body.day-mode .out .val.red{color:#9b2a22}
body.day-mode #theme-toggle{background:#2f4a1f;color:#f8f4ea}
body.day-mode footer,body.day-mode .footer{color:#5f6652}
body.day-mode #auth-gate .panel,body.day-mode #pw-reset .panel{background:#fbf8f1;border-color:#e2d8c3}
body.day-mode .card,body.day-mode .home-card,body.day-mode section{box-shadow:0 1px 3px rgba(47,74,31,.08)!important}
body.day-mode .home-card:hover{box-shadow:0 6px 18px rgba(47,74,31,.14)!important}

/* Brand: logo above, big name below (all modes) */
header .brand{flex-direction:column;gap:8px;padding:16px 0 6px}
header .brand img{width:96px;height:96px;border-radius:50%;background:transparent}
header .brand .word{font-size:clamp(22px,3vw,30px);letter-spacing:3px;font-weight:700;color:var(--gold);line-height:1.2}
@media(max-width:600px){header .brand img{width:72px;height:72px}}
/* Home icons */
.home-ico{width:76px;height:76px;margin:0 auto 12px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#dba341;background:#2f4a1f;border:2px solid #dba341;box-shadow:0 0 0 4px rgba(219,163,65,.15);transition:transform .2s ease,box-shadow .2s ease}
.home-ico svg{width:34px;height:34px}
.home-card:hover .home-ico{transform:scale(1.06);box-shadow:0 0 0 6px rgba(219,163,65,.25)}


/* ===== Night mode: dark olive + logo gold ===== */
body:not(.day-mode){
  --bg:#12170e;--card:#1b2216;--text:#ece6d6;--muted:#b3b49f;
  --gold:#dba341;--border:#2c3524;--warn:#e8bd63;
  --glass-bg:rgba(27,34,22,.78);--glass-brd:rgba(219,163,65,.22);
  --gold-glow:rgba(219,163,65,.22);
  --gold-grad:linear-gradient(135deg,#e8bd63 0%,#dba341 52%,#b9852c 100%);
  --surface-shadow:0 8px 26px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.03);
  color:#ece6d6;
}
html:has(body:not(.day-mode)){background:#12170e}
body:not(.day-mode)::before{
  background:
    radial-gradient(40% 34% at 18% 12%, rgba(47,74,31,.55), transparent 62%),
    radial-gradient(42% 38% at 84% 24%, rgba(219,163,65,.10), transparent 62%),
    radial-gradient(50% 44% at 50% 92%, rgba(47,74,31,.45), transparent 66%);
}
body:not(.day-mode) header{background:rgba(18,23,14,.82);border-bottom-color:#2c3524}
body:not(.day-mode) nav a{color:#b3b49f;background:rgba(219,163,65,.05)}
body:not(.day-mode) nav a.active,body:not(.day-mode) nav a:hover{color:#ece6d6}
body:not(.day-mode) .btn{color:#12170e}
body:not(.day-mode) .btn.secondary{color:#dba341;background-color:rgba(219,163,65,.06);border-color:#dba341}
body:not(.day-mode) input,body:not(.day-mode) textarea.name-cell,body:not(.day-mode) select{background:#141a10;color:#ece6d6;border-color:#2c3524}
body:not(.day-mode) .home-card{background:linear-gradient(160deg,#1f2819 0%,#18200f 100%);border:1.5px solid rgba(219,163,65,.45)}
body:not(.day-mode) .home-card:hover{border-color:#dba341}
body:not(.day-mode) .home-card .card-hint,body:not(.day-mode) .hint{color:#b3b49f}
body:not(.day-mode) th{background:#222b1b;color:#ece6d6}
body:not(.day-mode) td,body:not(.day-mode) th{border-color:#2c3524}
body:not(.day-mode) .out .box{background:#141a10;border-color:#2c3524}
body:not(.day-mode) .folder-card{background:linear-gradient(160deg,rgba(219,163,65,.07),rgba(27,34,22,.8))}
body:not(.day-mode) #auth-gate .panel,body:not(.day-mode) #pw-reset .panel{background:#1b2216;border-color:#2c3524}
body:not(.day-mode) #theme-toggle{background:#2f4a1f;color:#dba341;border:1.5px solid #dba341}
body:not(.day-mode) .mat-frame{background:#12170e!important}
body:not(.day-mode) .btn.danger{color:#f2a097;border-color:#7a3a33;background-color:transparent}
body.day-mode .downloads-item{background:#f3ede0;border-color:#e2d8c3}
body.day-mode .downloads-item h3{color:#23331a!important}
body:not(.day-mode) .downloads-item{background:#141a10;border-color:#2c3524}
body:not(.day-mode) .downloads-item h3{color:#ece6d6!important}
.video-card > div:first-child{background:radial-gradient(circle at 50% 50%,#3a5a27 0%,#2f4a1f 60%,#22360f 100%)!important}
.video-card .video-card-play{background:#dba341!important;color:#2f4a1f!important}

/* ===== Content scheduling (جدولة المحتوى) ===== */
#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card{--sx:#3d5a2a;--ss:#dba341;--sin:#141a10;--slk:#222b1b;--swh:#e8bd63}
body.day-mode #sched-card,body.day-mode #sec-card,body.day-mode #prog-card,body.day-mode #req-card,body.day-mode #sup-card,body.day-mode #ntf-card{--sx:#2f4a1f;--ss:#b9852c;--sin:#fbf8f1;--slk:#e6dcc6;--swh:#7a5a12}
#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card{border:1.5px solid var(--sx)}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:6px 0 10px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-h{display:flex;align-items:center;gap:8px;font-weight:600;color:var(--gold);margin:0 0 8px;font-size:15px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-lb{font-size:12px;color:var(--muted);margin:12px 0 6px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-box{background:var(--card);border:1.5px solid var(--sx);border-radius:12px;padding:14px;margin-top:12px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-input,:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-select{width:100%;min-height:42px;border-radius:8px;border:1px solid var(--sx)!important;background-color:var(--sin)!important;color:var(--text)!important;padding:0 12px;font-family:inherit;font-size:14px;box-sizing:border-box}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-select{-webkit-appearance:none;appearance:none;padding-left:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b9852c' stroke-width='2' fill='none'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:left 12px center}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-num{width:76px;min-width:0;text-align:center;padding:0 6px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-mini{min-height:36px;font-size:13px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-dt{position:relative;display:flex;align-items:center;gap:8px;border:1px solid var(--sx);border-radius:8px;background:var(--sin);height:42px;padding:0 10px;min-width:0;overflow:hidden;cursor:pointer;box-sizing:border-box}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-dt .sched-svg{color:var(--gold)}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-dt-text{font-size:13px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:ltr;unicode-bidi:plaintext;pointer-events:none}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-dt-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;margin:0}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0;font-size:13px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-inline .sched-input,:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-inline .sched-select{flex:1;min-width:140px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-inline .sched-num{flex:0 0 76px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .btn.sched-sm{padding:6px 12px;min-height:34px;font-size:13px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-row{display:flex;align-items:flex-start;gap:12px;padding:12px;border:1px solid var(--sx);border-radius:12px;margin-top:10px;background:var(--sin);flex-wrap:wrap}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-row-main{flex:1;min-width:200px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-row-title{font-weight:600;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-row-meta{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:6px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-row-actions{display:flex;gap:6px;flex-wrap:wrap}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-tag{font-size:11px;padding:2px 9px;border-radius:20px;border:1px solid var(--sx);color:var(--muted);font-weight:400}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-ico{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;flex:0 0 40px;background:#2f4a1f;color:#dba341;border:2px solid #dba341}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-ico.lock{background:var(--slk);color:var(--muted);border:1px solid var(--border)}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:8px;align-items:center;padding:10px 0;border-top:1px solid var(--border)}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-item.off{opacity:.6}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-item-name{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--text);cursor:pointer}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-item-name .sched-svg{color:var(--gold)}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-req{grid-column:1/-1;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-radio{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--text);margin:8px 0;cursor:pointer}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) input[type=checkbox],:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) input[type=radio]{accent-color:var(--ss);width:16px;height:16px;min-height:0}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-users{max-height:420px;overflow:auto;margin-top:6px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-user{border:1px solid var(--sx);border-radius:10px;margin-top:6px;background:var(--sin);padding:8px 10px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-user.on{border:2px solid var(--ss)}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-user-main{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:14px;color:var(--text)}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-email{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:ltr;text-align:right}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-av{width:30px;height:30px;border-radius:50%;background:#2f4a1f;color:#dba341;border:1px solid #dba341;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;flex:0 0 30px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-user-extra{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin-top:8px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-save{width:100%;min-height:46px;font-size:15px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-msg{font-size:13px;margin-top:8px;min-height:18px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-msg.err,:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-err{color:var(--danger)}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-msg.ok{color:var(--success)}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-empty{padding:18px;text-align:center;color:var(--muted);border:1px dashed var(--sx);border-radius:12px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-sep{display:flex;align-items:center;gap:10px;margin:20px 0 0;color:var(--gold);font-size:12px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-sep:before,:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-sep:after{content:"";flex:1;height:1px;background:var(--sx)}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-v{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--sx);border-radius:12px;margin-top:8px;background:var(--sin)}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-v.lock>div{color:var(--muted)}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-when{font-size:12px;color:var(--swh);margin-top:2px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-range{-webkit-appearance:none;appearance:none;width:100%;height:6px;border-radius:6px;background:#2f4a1f!important;outline:none;margin:10px 0;border:0;padding:0;min-height:0}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-range::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;border-radius:50%;background:#dba341;border:3px solid #2f4a1f;cursor:pointer}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-range::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#dba341;border:3px solid #2f4a1f;cursor:pointer}
@media(max-width:520px){:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-item,:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-user-extra{grid-template-columns:1fr}}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-range::-webkit-slider-runnable-track{height:6px;border-radius:6px;background:#2f4a1f}:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-range::-webkit-slider-thumb{margin-top:-8px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-tag.warn{border-color:var(--danger);color:var(--danger)}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-ed-head{display:flex;align-items:center;gap:12px;padding:12px;border:1.5px solid var(--sx);border-radius:12px;background:var(--sin);margin-top:6px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:12px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-tab{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;border-radius:10px;border:1px solid var(--sx);background:var(--sin);color:var(--text);font-family:inherit;font-size:12px;cursor:pointer;min-height:64px;line-height:1.3}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-tab .sched-svg{font-size:18px;color:var(--gold)}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-tab small{font-size:10px;color:var(--muted)}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-tab.on{border:2px solid var(--ss);background:var(--card);font-weight:600}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-panel{min-height:160px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-savebar{position:sticky;bottom:8px;z-index:5;display:flex;align-items:center;gap:10px;margin-top:12px;padding:10px 12px;border:1.5px solid var(--sx);border-radius:12px;background:var(--card);box-shadow:0 6px 18px rgba(0,0,0,.18)}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-savebar .sched-save{width:auto;flex:0 0 auto;min-width:110px}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-savenote{flex:1;font-size:13px;color:var(--muted)}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-savenote.ok{color:var(--success);font-weight:600}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-savenote.warn{color:var(--swh);font-weight:600}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-savenote.err{color:var(--danger);font-weight:600}
@media(max-width:420px){:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-tab{font-size:11px}:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-tab small{display:none}}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-user-main{flex-wrap:wrap}:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-email{flex:1 1 55%}

:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-svg{width:1.1em;height:1.1em;vertical-align:-.18em;flex:0 0 auto}:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-ico .sched-svg{width:20px;height:20px}:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-tab .sched-svg{width:20px;height:20px;color:var(--gold)}:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-dt .sched-svg{color:var(--gold)}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-subv{margin:4px 22px 0 0;border-right:2px solid var(--sx);padding-right:10px}:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-subrow{font-size:13px;padding:5px 0;color:var(--text)}:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-subrow.lock{color:var(--muted)}
:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-pct{margin-top:14px;padding:12px;border:1px dashed var(--sx);border-radius:10px;background:var(--sin)}:is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-pct .sched-svg{color:var(--gold)}

/* ===== Trainee: locks, progress, gate ===== */
:root{--lhx:#3d5a2a;--lhs:#dba341;--lhin:#141a10;--lhw:#e8bd63}
body.day-mode{--lhx:#2f4a1f;--lhs:#b9852c;--lhin:#fbf8f1;--lhw:#7a5a12}
.lh-locked{opacity:.95;cursor:default!important;position:relative}
.lh-locked .video-card-play,.lh-locked img{filter:grayscale(1);opacity:.5}
.lh-lock{display:flex;align-items:center;gap:12px;margin-top:10px;padding:10px 12px;border:1px solid var(--lhx);border-radius:12px;background:var(--lhin)}
.lh-lock-ic{width:38px;height:38px;flex:0 0 38px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);color:var(--muted)}
.lh-lock-ic svg{width:18px;height:18px}
.lh-lock-title{font-weight:600;color:var(--muted);font-size:14px}
.lh-lock-when{font-size:12px;color:var(--lhw);margin-top:2px}
.lh-lock-count{font-size:12px;color:var(--text);margin-top:2px;font-variant-numeric:tabular-nums}
.lh-sub-exp{font-size:12px;color:var(--muted);margin:6px 0 0}
.lh-prog{margin-top:10px}
.lh-prog-bar{height:6px;border-radius:6px;background:var(--border);overflow:hidden}
.lh-prog-bar span{display:block;height:100%;background:var(--lhx);border-radius:6px}
.lh-prog-lbl{font-size:12px;color:var(--muted);margin-top:4px;display:flex;align-items:center;gap:4px}
.lh-prog-lbl.done{color:var(--success);font-weight:600}
.lh-prog-lbl svg{width:14px;height:14px}
.lh-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);opacity:0;transition:.3s;z-index:3000;background:var(--lhx);color:#f8f4ea;padding:12px 18px;border-radius:12px;font-size:14px;max-width:90vw;text-align:center;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.lh-toast.show{opacity:1;transform:translate(-50%,0)}
body.lh-overlay-open{overflow:hidden}
.lh-overlay{position:fixed;inset:0;z-index:2500;background:rgba(10,14,8,.72);display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto}
.lh-overlay-box{width:100%;max-width:460px;background:var(--card);color:var(--text);border:1.5px solid var(--lhx);border-radius:16px;padding:20px;box-shadow:0 20px 60px rgba(0,0,0,.4);max-height:calc(100vh - 32px);overflow:auto}
.lh-ov-title{margin:0 0 6px;color:var(--gold);font-size:19px}
.lh-ov-text{margin:0 0 14px;color:var(--muted);font-size:14px;line-height:1.7}
.lh-ov-note{font-size:12px;color:var(--lhw);margin:10px 0 0}
.lh-ov-err{color:var(--danger);font-size:13px;min-height:18px;margin-top:8px;font-weight:600}
.lh-ov-btn{width:100%;min-height:46px;margin-top:10px}
.lh-names{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.lh-field{display:block;margin-bottom:12px}
.lh-field-lbl{display:block;font-size:13px;color:var(--text);margin-bottom:6px}
.lh-field-lbl b{color:var(--danger)}
.lh-field-hint{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.lh-in{width:100%;min-height:44px;border-radius:10px;border:1px solid var(--lhx)!important;background-color:var(--lhin)!important;color:var(--text)!important;padding:0 12px;font-family:inherit;font-size:16px;box-sizing:border-box}
select.lh-in{-webkit-appearance:none;appearance:none}
.lh-phone{display:flex;align-items:center;gap:6px;direction:ltr}
.lh-phone .lh-code{flex:0 0 76px;text-align:center}
.lh-phone .lh-plus{order:-1;font-weight:700;color:var(--muted)}
.lh-phone .lh-in:not(.lh-code){order:2;flex:1}
.lh-phone .lh-code{order:1}
.lh-agree{display:flex;align-items:flex-start;gap:8px;font-size:13px;color:var(--text);margin-top:4px;line-height:1.6}
.lh-agree input{width:18px;height:18px;min-height:0;margin-top:3px;accent-color:var(--lhs)}
.lh-gate-note{background:var(--lhin);border:1px solid var(--lhs);color:var(--text);padding:10px 12px;border-radius:10px;font-size:14px;margin-bottom:12px;text-align:center}
@media(max-width:420px){.lh-names{grid-template-columns:1fr}}
.video-card.lh-locked,body.day-mode .video-card.lh-locked{background:var(--card)!important;border:1px dashed var(--lhx)!important;box-shadow:none!important}
.video-card.lh-locked .lh-lock{margin-top:0}
.lh-lock-count{direction:ltr;unicode-bidi:plaintext;text-align:right}
.video-card.lh-locked > .lh-lock{background:var(--lhin)!important}.video-card.lh-locked .lh-lock-title{color:var(--text)}
.video-modal-content{position:relative}
.lh-wm{position:absolute;z-index:5;pointer-events:none;user-select:none;color:rgba(255,255,255,.38);font-size:clamp(11px,1.6vw,15px);font-weight:600;text-shadow:0 0 3px rgba(0,0,0,.6);max-width:62%;line-height:1.5;overflow-wrap:anywhere;direction:ltr;transition:top 1.2s ease,left 1.2s ease}
.lh-fs-btn{position:absolute;z-index:6;top:10px;left:10px;width:38px;height:38px;border-radius:50%;border:0;background:rgba(0,0,0,.55);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.lh-fs-btn svg{width:18px;height:18px}
.video-modal-content:fullscreen{display:flex;align-items:center;justify-content:center;background:#000;width:100vw;height:100vh;max-width:none}
.video-modal-content:fullscreen video{max-height:100vh!important;width:100%}
.lh-hidden-badge{display:inline-block;margin-top:4px;font-size:11px;padding:2px 8px;border-radius:20px;border:1px solid var(--danger);color:var(--danger)}

#prog-card .prog-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;margin:12px 0}
#prog-card .prog-stat{background:var(--sin);border:1px solid var(--sx);border-radius:12px;padding:10px 12px}
#prog-card .prog-stat-lbl{font-size:12px;color:var(--muted)}
#prog-card .prog-stat-val{font-size:22px;font-weight:700;color:var(--gold)}
#prog-card .prog-barwrap{display:flex;align-items:center;gap:8px;margin-top:8px}
#prog-card .prog-barwrap .lh-prog-bar{flex:1}
#prog-card .prog-pct{font-size:13px;font-weight:700;min-width:40px;text-align:left}
#prog-card .prog-detail{margin-top:10px;border-top:1px solid var(--border);padding-top:8px}
#prog-card .prog-line{display:flex;justify-content:space-between;gap:10px;font-size:13px;padding:4px 0;flex-wrap:wrap}
#prog-card .prog-line.ok>span:first-child{color:var(--success)}
#prog-card .sched-tag.ok{border-color:var(--success);color:var(--success)}
#prog-card .sched-tag.muted{opacity:.7}

#req-card .req-note{margin-top:6px;padding:8px 10px;border-radius:8px;background:var(--card);font-size:13px}
#req-card .sched-tag.ok{border-color:var(--success);color:var(--success)}
.lh-badge{display:inline-flex;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--danger);color:#fff;font-size:12px;align-items:center;justify-content:center;margin-right:8px;vertical-align:middle}
.lh-offers{margin-bottom:18px;padding:14px;border:1.5px solid var(--lhx);border-radius:14px;background:var(--card)}
.lh-offers-title{margin:0 0 10px;color:var(--gold);font-size:16px}
.lh-offer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px;border:1px solid var(--lhx);border-radius:12px;background:var(--lhin);margin-top:8px}
.lh-offer-main{flex:1;min-width:180px}
.lh-offer-name{font-weight:700;font-size:15px}
.lh-offer-note{font-size:13px;margin-top:6px;line-height:1.6}
.lh-offer-state{font-size:13px;color:var(--lhw);font-weight:600;border:1px solid var(--lhs);border-radius:20px;padding:4px 12px}
.lh-req-info{border:1px solid var(--lhx);border-radius:12px;padding:8px 12px;margin-bottom:12px;background:var(--lhin)}
.lh-req-line{display:flex;justify-content:space-between;gap:10px;padding:5px 0;font-size:14px;border-bottom:1px dashed var(--border)}
.lh-req-line:last-child{border-bottom:0}
.lh-req-line span:last-child{direction:ltr;unicode-bidi:plaintext;text-align:left;font-weight:600}
.lh-ov-btn.secondary{margin-top:8px}

/* ===== Language switch + English (LTR) adjustments ===== */

body.lang-en{font-family:"Readex Pro",system-ui,-apple-system,"Segoe UI",sans-serif}
body.lang-en .lh-phone,body.lang-en .sched-dt-text,body.lang-en .lh-lock-count{direction:ltr;text-align:left}
body.lang-en .sched-email{text-align:left}
body.lang-en .lh-subv,body.lang-en .sched-subv{margin:4px 0 0 22px;border-right:0;border-left:2px solid var(--sx);padding:0 0 0 10px}
body.lang-en .sched-tag{margin-left:0}
body.lang-en .sched-tag.warn,body.lang-en .lh-offer-state{white-space:nowrap}

/* ===== Language switch (top, next to day/night) ===== */
.lh-lang-sw{position:fixed;z-index:1001;top:27px;right:80px;display:flex;border:1.5px solid var(--lhx);border-radius:999px;overflow:hidden;background:var(--card);box-shadow:0 4px 12px rgba(0,0,0,.18)}
.lh-lang-sw button{border:0;background:transparent;color:var(--text);font-family:"Readex Pro",inherit;font-size:13px;font-weight:600;padding:7px 12px;cursor:pointer;min-height:34px;line-height:1}
.lh-lang-sw button.on{background:var(--lhx);color:#f8f4ea}
body:not(.day-mode) .lh-lang-sw button.on{color:var(--lhs)}
@media (max-width:639px){.lh-lang-sw{top:14px;right:62px}.lh-lang-sw button{padding:6px 10px;font-size:12px;min-height:32px}}
@media (max-width:374px){.lh-lang-sw{top:12px;right:56px}}
@media print{.lh-lang-sw,.lh-fab,.lh-fab-menu,.lh-fab-dim,.lh-fab-hint{display:none!important}}

/* ===== Contact us floating button ===== */
.lh-fab{position:fixed;z-index:2300;bottom:calc(20px + env(safe-area-inset-bottom));inset-inline-end:18px;width:58px;height:58px;border-radius:50%;border:0;background:var(--lhx);color:#f8f4ea;box-shadow:0 8px 22px rgba(0,0,0,.3);display:grid;place-items:center;cursor:pointer;padding:0}
body:not(.day-mode) .lh-fab{border:1.5px solid var(--lhs);color:var(--lhs)}
.lh-fab .x,.lh-fab.open .c{display:none}.lh-fab.open .x{display:grid}.lh-fab .c{display:grid}
.lh-fab-hint{position:fixed;z-index:2300;bottom:calc(34px + env(safe-area-inset-bottom));inset-inline-end:86px;background:var(--card);border:1px solid var(--lhx);color:var(--text);font-size:12px;padding:5px 11px;border-radius:14px;box-shadow:0 4px 12px rgba(0,0,0,.12);opacity:0;pointer-events:none;transition:opacity .3s}
.lh-fab-hint.show{opacity:1}
.lh-fab-dim{position:fixed;inset:0;z-index:2290;background:rgba(10,14,8,.35);opacity:0;pointer-events:none;transition:.2s}
.lh-fab-dim.open{opacity:1;pointer-events:auto}
.lh-fab-menu{position:fixed;z-index:2300;bottom:calc(90px + env(safe-area-inset-bottom));inset-inline-end:18px;display:flex;flex-direction:column;align-items:flex-end;gap:10px;opacity:0;pointer-events:none;transform:translateY(10px);transition:.2s}
.lh-fab-menu.open{opacity:1;pointer-events:auto;transform:none}
.lh-fab-item{display:flex;align-items:center;gap:10px;background:var(--card);border:1.5px solid var(--lhx);color:var(--text);border-radius:30px;padding:7px 16px 7px 7px;font-family:inherit;font-size:14px;font-weight:500;cursor:pointer;text-decoration:none;box-shadow:0 6px 16px rgba(0,0,0,.14)}
[dir=ltr] .lh-fab-item{padding:7px 7px 7px 16px}
.lh-fab-ic{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:#fff;flex:none}
/* one classic look for every option: olive circle, gold icon */
.lh-fab-item .lh-fab-ic{background:var(--lhx);color:#D99A42;box-shadow:inset 0 0 0 1.5px rgba(217,154,66,.55)}
body:not(.day-mode) .lh-fab-item .lh-fab-ic{background:#1d2a14}
body.lh-fab-hidden .lh-fab,body.lh-fab-hidden .lh-fab-hint,body.lh-fab-hidden .lh-fab-menu,body.lh-fab-hidden .lh-fab-dim{display:none!important}
.lh-sup{display:flex;align-items:center;gap:12px;background:var(--card);border:1.5px solid var(--lhx);border-radius:16px;padding:12px 14px;width:300px;max-width:calc(100vw - 36px);box-sizing:border-box;box-shadow:0 10px 24px rgba(0,0,0,.16)}
.lh-sup-logo{width:60px;height:60px;flex:none;filter:drop-shadow(0 3px 6px rgba(0,0,0,.25))}
.lh-sup-name{font-family:"Readex Pro",inherit;font-weight:700;letter-spacing:1.5px;color:var(--gold);font-size:14px}
.lh-sup-sub{font-size:13px;color:var(--text);margin-top:1px}
.lh-sup-role{font-size:12px;color:var(--lhs);font-weight:600;margin-top:3px}
.lh-sup-tag{font-size:11px;color:var(--muted);margin-top:2px;line-height:1.6;white-space:pre-line}
.lh-sup-sm{width:auto;max-width:none;box-shadow:none;padding:10px 12px;margin:8px 0 6px;border-width:1px}
.lh-sup-sm .lh-sup-logo{width:44px;height:44px}
.lh-note-box{max-width:500px}
.lh-note-lb{display:block;font-size:13px;color:var(--muted);margin:12px 0 6px}
.lh-note-ta{min-height:120px!important;padding:10px 12px!important;resize:vertical;line-height:1.6}
.lh-note-cnt{font-size:11px;color:var(--muted);text-align:end;margin-top:4px}
.lh-note-who{background:var(--lhin);border:1px dashed var(--lhx);border-radius:10px;padding:10px 12px;font-size:12px;color:var(--muted);margin-top:10px;line-height:1.7}
.lh-note-who-v{direction:ltr;unicode-bidi:plaintext;text-align:start}
.lh-note-actions{display:flex;gap:10px}.lh-note-actions .lh-ov-btn{flex:1}
select.lh-note-sel{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b9852c' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:left 12px center}
[dir=ltr] select.lh-note-sel{background-position:right 12px center}
.lh-msg.is-new{border-width:2px;border-color:var(--lhs)}
.lh-msg-body{margin:8px 0;line-height:1.7;white-space:pre-wrap;color:var(--text)}
.lh-msg-who{font-size:14px}
.lh-name-en{direction:ltr;text-align:left}

/* ===== Calculators backup (moved out of the header) ===== */
.lh-backup{margin-top:20px;text-align:center}
.lh-backup h3{margin:0 0 6px}
.lh-backup .hint{margin:0 0 14px}
.lh-backup-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.lh-backup-actions .btn{min-width:220px;min-height:46px;display:inline-flex;align-items:center;justify-content:center}


.lh-inst-steps{list-style:none;padding:0;margin:12px 0 16px;display:flex;flex-direction:column;gap:12px}
.lh-inst-steps li{display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.6;color:var(--text)}
.lh-inst-n{width:24px;height:24px;border-radius:50%;background:var(--lhx);color:#f8f4ea;display:grid;place-items:center;font-size:12px;font-weight:700;flex:none}
.lh-inst-ic{width:36px;height:36px;border-radius:10px;border:1.5px solid var(--lhx);display:grid;place-items:center;color:#2f7de1;flex:none}

/* ===== Trainee notification settings ===== */
.lh-nt-box{max-width:460px}
.lh-nt-body{display:flex;flex-direction:column;gap:12px;margin:6px 0 16px}
.lh-nt-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--lhin);cursor:pointer;position:relative}
.lh-nt-row input{position:absolute;opacity:0;pointer-events:none}
.lh-nt-tx{flex:1;display:flex;flex-direction:column;gap:2px}
.lh-nt-tx b,.lh-nt-phone b{font-size:14px;color:var(--text)}
.lh-nt-tx small,.lh-nt-phone small{font-size:12px;color:var(--muted);line-height:1.6}
.lh-switch{width:44px;height:26px;border-radius:13px;background:#c9c2b0;position:relative;flex:none;transition:.2s}
.lh-switch:after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.2s}
.lh-nt-row input:checked + .lh-switch{background:var(--lhx)}
.lh-nt-row input:checked + .lh-switch:after{inset-inline-start:21px}
.lh-nt-row input:focus-visible + .lh-switch{outline:2px solid var(--gold);outline-offset:2px}
.lh-nt-phone{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--lhin)}
.lh-nt-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.lh-nt-btn{min-height:40px;padding:8px 16px!important;font-size:14px!important;margin:0!important}

/* ===== Admin: notifications to trainees ===== */
.lh-muted{font-size:12.5px;color:var(--muted);line-height:1.7}
#ntf-card .sched-field{margin-bottom:12px}
#ntf-card .sched-field .sched-lb{display:block;margin-bottom:6px}
.lh-ntf-auto{display:flex;align-items:flex-start;gap:8px;padding:12px;border:1px dashed var(--lhx);border-radius:12px;margin-bottom:16px;line-height:1.6}
.lh-ntf-form{border:1px solid var(--border);border-radius:14px;padding:14px;margin-bottom:18px}
.lh-ntf-body{min-height:96px!important;padding:10px 12px!important;resize:vertical;line-height:1.6}
.lh-ntf-en{margin-top:10px}
.lh-ntf-chans{display:flex;gap:18px;flex-wrap:wrap;margin:6px 0 10px}
.lh-ntf-count{font-weight:600;color:var(--lhs);margin-bottom:6px}
.lh-ntf-h{margin:6px 0 10px;color:var(--text)}
#ntf-card .btn{margin-top:10px}
body.lang-en :is(#sched-card,#sec-card,#prog-card,#req-card,#sup-card,#ntf-card,#ifra-card,#frm-card,#reg-card) .sched-select{padding-left:12px;padding-right:34px;background-position:right 12px center}

/* ===== Traditional design table: clear grid lines + tidy result chips ===== */
html body #design table#d_tbl{border-collapse:collapse!important}
html body #design table#d_tbl th,html body #design table#d_tbl td{border:1px solid rgba(0,0,0,.28)!important}
body:not(.day-mode) #design table#d_tbl th,body:not(.day-mode) #design table#d_tbl td{border-color:rgba(255,255,255,.2)!important}
/* last three columns: the cell keeps the row colour, a rounded chip sits inside (same size as the input boxes) */
html body #design table#d_tbl tbody td.d_addW,html body #design table#d_tbl tbody td.d_bottleW,html body #design table#d_tbl tbody td.d_inSamplePct{background:transparent!important;position:relative;isolation:isolate;padding:10px 12px!important}
html body #design table#d_tbl tbody td.d_addW::before,html body #design table#d_tbl tbody td.d_bottleW::before,html body #design table#d_tbl tbody td.d_inSamplePct::before{content:"";position:absolute;inset:7px 8px;border-radius:12px;z-index:-1;background:#ffd84d;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
html body #design table#d_tbl tbody td.d_inSamplePct::before{background:#f8d5d8}
html body #design table#d_tbl th,html body #design table#d_tbl td{border:1px solid #000!important}
html body #design table#d_tbl tbody td.d_inSamplePct::before{background:#ffb35c}
html body #design table#d_tbl tbody tr td.d_inSamplePct,html body #design table#d_tbl tbody tr:nth-child(n) td.d_inSamplePct{color:#000!important}
/* full-cell fill again (no inner chips): two yellow columns + orange last column */
html body #design table#d_tbl tbody td.d_addW::before,html body #design table#d_tbl tbody td.d_bottleW::before,html body #design table#d_tbl tbody td.d_inSamplePct::before{content:none!important;display:none!important}
html body #design table#d_tbl tbody td.d_addW,html body #design table#d_tbl tbody td.d_bottleW{background:#ffd24d!important}
html body #design table#d_tbl tbody td.d_inSamplePct{background:#ffb35c!important}
/* ===== Phones: oil number + name stay fixed while the table scrolls sideways ===== */
@media (max-width:700px){
  html body #design .table-wrapper{overflow-x:auto;-webkit-overflow-scrolling:touch}
  html body #design table#d_tbl{border-collapse:separate!important;border-spacing:0!important}
  html body #design table#d_tbl th,html body #design table#d_tbl td{border-width:0 0 1px 1px!important;border-style:solid!important;border-color:#000!important}
  html body #design table#d_tbl tr > :first-child{border-right-width:1px!important}
  html body #design table#d_tbl thead th{border-top-width:1px!important}
  html body #design table#d_tbl th:nth-child(1),html body #design table#d_tbl td:nth-child(1){position:sticky;right:0;z-index:3;width:30px!important;min-width:30px!important;max-width:30px!important;padding:4px 2px!important}
  html body #design table#d_tbl th:nth-child(2),html body #design table#d_tbl td:nth-child(2){position:sticky;right:30px;z-index:3;width:104px!important;min-width:104px!important;max-width:104px!important;padding:4px!important;box-shadow:-6px 0 8px -6px rgba(0,0,0,.45)}
  html body #design table#d_tbl thead th:nth-child(1),html body #design table#d_tbl thead th:nth-child(2){z-index:4}
  html body #design table#d_tbl td:nth-child(2) textarea{min-width:0!important;width:100%!important;font-size:13px;padding:6px!important}
  html body #design table#d_tbl td:nth-child(n+3),html body #design table#d_tbl th:nth-child(n+3){min-width:76px!important;padding:4px!important;font-size:12px}
  html body #design table#d_tbl td:nth-child(n+3) input{min-width:0!important;width:100%!important;padding:4px!important;font-size:14px}
  /* sticky cells need a solid colour (same as the row) */
  body.day-mode #design table#d_tbl thead th:nth-child(-n+2){background:#e8e0cc!important}
  body.day-mode #design table#d_tbl tbody tr:nth-child(odd) td:nth-child(-n+2){background:#d6d6d6!important}
  body.day-mode #design table#d_tbl tbody tr:nth-child(even) td:nth-child(-n+2){background:#ececec!important}
  body:not(.day-mode) #design table#d_tbl thead th:nth-child(-n+2),body:not(.day-mode) #design table#d_tbl tbody td:nth-child(-n+2){background:#141a10!important}
}
/* iPhone zooms the page when a field's text is smaller than 16px — keep every field at 16px on phones */
@media (max-width:900px){
  html body input:not([type=checkbox]):not([type=radio]):not([type=range]),html body textarea,html body select{font-size:16px!important}
  html body #design table#d_tbl td input,html body #design table#d_tbl td textarea{font-size:16px!important}
}

/* ===== Calculator pages with two calculators: tabs + a colour per calculator ===== */
.lh-ctabs{display:flex;gap:8px;margin:4px 0 16px;padding:5px;background:var(--card);border:1px solid var(--border);border-radius:14px}
.lh-ctab{flex:1;border:0;border-radius:10px;padding:11px 10px;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer;background:transparent;color:var(--muted);transition:.15s;min-height:46px;line-height:1.3}
.lh-ctab.on{background:var(--lhx);color:#f8f4ea;box-shadow:0 3px 10px rgba(0,0,0,.18)}
body:not(.day-mode) .lh-ctab.on{color:var(--lhs)}
.lh-ctab:not(.on):hover{background:var(--lhin)}
.lh-cpane[hidden]{display:none!important}
@media print{.lh-ctabs{display:none}.lh-cpane[hidden]{display:block!important}}
/* everything as the original page; only the numbers the trainee types change colour: black → burgundy → red */
html body .lh-cpane .grid > div:nth-child(3n+1) input{color:#000!important}
html body .lh-cpane .grid > div:nth-child(3n+2) input{color:#7b1e2b!important}
html body .lh-cpane .grid > div:nth-child(3n) input{color:#e00000!important}
body:not(.day-mode) .lh-cpane .grid > div:nth-child(3n+1) input{color:#fff!important}
body:not(.day-mode) .lh-cpane .grid > div:nth-child(3n+2) input{color:#e8a0aa!important}
body:not(.day-mode) .lh-cpane .grid > div:nth-child(3n) input{color:#ff6b6b!important}

/* alcohol results: number in black, unit in burgundy */
html body #alcohol .out .val{color:#000!important}
html body #alcohol #alc_water::after{content:" ML";color:#b3122e;font-weight:800}
html body #alcohol #alc_mix_spw::after,html body #alcohol #alc_mix_solvent::after,html body #alcohol #alc_mix_water::after{content:" g";color:#b3122e;font-weight:800}
body:not(.day-mode) #alcohol .out .val{color:#fff!important}
body:not(.day-mode) #alcohol .out .val::after{color:#e8a0aa!important}

/* single oils results: number in black, unit in red-burgundy */
html body #oils .out .val{color:#000!important}
html body #oils #oil1_oil::after,html body #oils #oil1_solvent::after,html body #oils #oil1_total::after,html body #oils #oil2_oilEach::after,html body #oils #oil2_solEach::after{content:" g";color:#b3122e;font-weight:800}
body:not(.day-mode) #oils .out .val{color:#fff!important}
body:not(.day-mode) #oils .out .val::after{color:#e8a0aa!important}
html body section .card-head > .btn.danger{white-space:nowrap;flex:none}

/* =====================================================================
   Calculator results — professional cards (approved)
   white card · thin colour bar on top · small icon · big black number · unit in red-burgundy
   ===================================================================== */
html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px!important;margin:14px 0!important}
html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box{position:relative;--acc:#7a5a17;--accl:#f3ead6;--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a5a17' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 20V10M12 20V4M19 20v-7'/%3E%3C/svg%3E");background:#fff!important;border:1px solid #e6dcc6!important;border-radius:14px!important;padding:14px 14px 12px!important;box-shadow:0 1px 2px rgba(0,0,0,.04),0 6px 16px rgba(60,45,10,.06)!important;overflow:hidden;min-width:0!important;width:auto!important;margin:0!important;text-align:start}
html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box::before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:var(--acc)}
html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box .title{color:#6b6455!important;font-size:12.5px!important;font-weight:600!important;display:flex;align-items:center;gap:8px;margin:0 0 8px!important;line-height:1.4}
html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box .title::before{content:"";width:28px;height:28px;border-radius:8px;flex:none;background:var(--accl) var(--ico) center/16px no-repeat}
html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box .val{color:#b3122e!important;font-size:14px!important;font-weight:700!important;background:none!important;line-height:1.2;font-variant-numeric:tabular-nums;word-break:break-word}
html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box .val > span,html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box .val[id]{color:#141414!important;font-size:26px!important;font-weight:800!important;letter-spacing:-.3px}
html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box .val > span{margin-inline-end:4px}
html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box .val[id]::after{font-size:14px!important;font-weight:700!important;margin-inline-start:4px;color:#b3122e!important}
html body #stubborn #stb_oil::after,html body #stubborn #stb_solvent::after,html body #stubborn #stb_bb_weight::after,html body #stubborn #stb_base::after,html body #stubborn #stb_total::after{content:" g"}
body:not(.day-mode) :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box{background:#141a10!important;border-color:#2c3524!important;box-shadow:none!important}
body:not(.day-mode) :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box .title{color:#b9b29f!important}
body:not(.day-mode) :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box .val > span,body:not(.day-mode) :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box .val[id]{color:#f3ede0!important}
body:not(.day-mode) :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box .val,body:not(.day-mode) :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box .val[id]::after{color:#f08a9a!important}
html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#oil1_oil),html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#oil2_oilEach),html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#stb_oil),html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#d_sampleSum),html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#jk_base1w),html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#jk_base2w),html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#jk_total),html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#r_sum_w){--acc:#e0a800;--accl:#fff4cc;--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b38600'%3E%3Cpath d='M12 2s6 7 6 12a6 6 0 0 1-12 0c0-5 6-12 6-12z'/%3E%3C/svg%3E")}
html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#oil1_solvent),html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#oil2_solEach),html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#stb_solvent),html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#stb_base),html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#alc_mix_solvent),html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#r_solvent){--acc:#2f6fb0;--accl:#e3eef9;--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6fb0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6L5 19a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2l-5-10V3'/%3E%3C/svg%3E")}
html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#alc_water),html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#alc_mix_water),html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#alc_mix_spw){--acc:#1f8fb3;--accl:#dff3f9;--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8fb3' stroke-width='2'%3E%3Cpath d='M12 3s6 7 6 11a6 6 0 0 1-12 0c0-4 6-11 6-11z'/%3E%3Cpath d='M9 15a3 3 0 0 0 3 3' stroke-linecap='round'/%3E%3C/svg%3E")}
html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#oil1_total),html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#d_finalFill),html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#jk_cap),html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#jk_rem),html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#r_total_show),html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out .box:has(#eo_totalBottle){--acc:#2f4a1f;--accl:#e6eedd;--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f4a1f' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M10 2h4v4h-4z'/%3E%3Cpath d='M8 6h8l1 3v11a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V9z'/%3E%3C/svg%3E")}

.lh-warn{margin:4px 0 14px;padding:10px 12px;border-radius:12px;background:#fdecec;border:1px solid #e7a2a2;color:#9b1c1c;font-size:14px;line-height:1.7;font-weight:600}
.lh-warn[hidden]{display:none}
body:not(.day-mode) .lh-warn{background:#3a1414;border-color:#7a2a2a;color:#ffb3b3}

/* stubborn results: mixing-steps flow */
html body #stubborn .out.lh-flow{display:flex!important;flex-direction:column;gap:4px!important;margin:12px 0!important}
html body #stubborn .out.lh-flow .lh-op{text-align:center;font-weight:800;color:#b38600;font-size:18px;line-height:1;margin:0}
html body #stubborn .out.lh-flow .lh-grp{border:1px dashed #cbbf9f;border-radius:14px;padding:6px;display:flex;flex-direction:column;gap:4px;background:transparent}
html body #stubborn .out.lh-flow .lh-grp-h{font-size:12px;font-weight:700;color:#6b6455;padding:0 2px}
html body #stubborn .out.lh-flow .lh-grp-row{display:grid;grid-template-columns:1fr 1fr;gap:4px}
html body #stubborn .out.lh-flow .box{padding:10px 12px 9px!important}
html body #stubborn .out.lh-flow .box .title{margin-bottom:5px!important}
html body #stubborn .out.lh-flow .box:has(#stb_bb_weight){--acc:#8a6d2f;--accl:#f3ead6}
html body #stubborn .out.lh-flow .box.lh-grand{background:#ff7a00!important;border-color:#ff7a00!important;--acc:#ff7a00}
html body #stubborn .out.lh-flow .box.lh-grand .title{color:#1a1a1a!important}
html body #stubborn .out.lh-flow .box.lh-grand .title::before{background:rgba(255,255,255,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M10 2h4v4h-4z'/%3E%3Cpath d='M8 6h8l1 3v11a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V9z'/%3E%3C/svg%3E") center/16px no-repeat}
html body #stubborn .out.lh-flow .box.lh-grand .val[id]{color:#141414!important;font-size:30px!important}
html body #stubborn .out.lh-flow .box.lh-grand .val[id]::after{color:#7a0019!important}
body:not(.day-mode) #stubborn .out.lh-flow .lh-grp{border-color:#3a4530}
body:not(.day-mode) #stubborn .out.lh-flow .lh-grp-h{color:#b9b29f}
body:not(.day-mode) #stubborn .out.lh-flow .box.lh-grand{background:#ff7a00!important;border-color:#ff7a00!important}
body:not(.day-mode) #stubborn .out.lh-flow .box.lh-grand .val[id]{color:#141414!important}
body:not(.day-mode) #stubborn .out.lh-flow .box.lh-grand .val[id]::after{color:#7a0019!important}
body:not(.day-mode) #stubborn .out.lh-flow .box.lh-grand .title{color:#1a1a1a!important}
html body #stubborn .out.lh-flow .lh-grp-row .box{display:flex;flex-direction:column}
html body #stubborn .out.lh-flow .lh-grp-row .box .val{margin-top:auto}
html body #stubborn .out.lh-flow .lh-nw{white-space:nowrap;display:inline-block}
html body #stubborn .out.lh-flow .lh-grp-row .box{padding:10px 9px 9px!important}
html body #stubborn .out.lh-flow .lh-grp-row .box .title{gap:6px!important}
html body #stubborn .out.lh-flow .lh-nw{font-size:11.5px;letter-spacing:-.2px}
html body #stubborn .out.lh-flow .lh-grp-row .box{padding:10px 8px 9px!important}
html body #stubborn .out.lh-flow .lh-grp-row .box .title{gap:5px!important}
html body #stubborn .out.lh-flow .lh-grp-row .box .title::before{width:24px;height:24px;background-size:14px}
html body #stubborn .out.lh-flow .lh-nw{font-size:11px}
@media (max-width:350px){html body #stubborn .out.lh-flow .lh-grp-row .box .title::before{display:none}}
/* ===== Johnkarl calculator ===== */
html body #johnkarl .out.lh-jk-out{grid-template-columns:1fr 1fr!important;gap:6px!important;margin:12px 0 0!important}
html body #johnkarl .out.lh-jk-out .box.lh-full{grid-column:1/-1}
html body #johnkarl .out.lh-jk-out .box{padding:10px 10px 9px!important;display:flex;flex-direction:column}
html body #johnkarl .out.lh-jk-out .box .val{margin-top:auto}
html body #johnkarl .out.lh-jk-out .box .title{margin-bottom:5px!important;gap:6px!important}
html body #johnkarl .out.lh-jk-out .box:not(.lh-full) .title::before{width:24px;height:24px;background-size:14px}
html body #johnkarl .out.lh-jk-out .box.lh-grand{background:#ff7a00!important;border-color:#ff7a00!important;--acc:#ff7a00}
html body #johnkarl .out.lh-jk-out .box.lh-grand .title{color:#1a1a1a!important}
html body #johnkarl .out.lh-jk-out .box.lh-grand .title::before{background:rgba(255,255,255,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M10 2h4v4h-4z'/%3E%3Cpath d='M8 6h8l1 3v11a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V9z'/%3E%3C/svg%3E") center/16px no-repeat}
html body #johnkarl .out.lh-jk-out .box.lh-grand .val{color:#7a0019!important}
html body #johnkarl .out.lh-jk-out .box.lh-grand .val > span{color:#141414!important;font-size:30px!important}
body:not(.day-mode) #johnkarl .out.lh-jk-out .box.lh-grand{background:#ff7a00!important;border-color:#ff7a00!important}
body:not(.day-mode) #johnkarl .out.lh-jk-out .box.lh-grand .title{color:#1a1a1a!important}
body:not(.day-mode) #johnkarl .out.lh-jk-out .box.lh-grand .val{color:#7a0019!important}
body:not(.day-mode) #johnkarl .out.lh-jk-out .box.lh-grand .val > span{color:#141414!important}
html body #johnkarl .lh-jk-card{margin-bottom:14px}
html body #johnkarl .lh-jk-card .card-head h3{margin:0}
html body #johnkarl .lh-jk-rows{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
html body #johnkarl .lh-jk-rows input{grid-column:1/-1}
html body #johnkarl .lh-jk-rows .btn{margin:0!important;width:100%}
html body #johnkarl .lh-jk-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
html body #johnkarl .lh-jk-actions .btn{margin:0!important;width:100%}
/* table like the design table */
html body #johnkarl table#jk_tbl{border-collapse:collapse!important;width:100%!important;min-width:0!important;table-layout:fixed}
html body #johnkarl table#jk_tbl th,html body #johnkarl table#jk_tbl td{border:1px solid #000!important;padding:5px 4px!important;font-size:12.5px;vertical-align:middle}
html body #johnkarl table#jk_tbl th:nth-child(1),html body #johnkarl table#jk_tbl td:nth-child(1){width:30px!important}
html body #johnkarl table#jk_tbl th:nth-child(3),html body #johnkarl table#jk_tbl td:nth-child(3){width:24%!important}
html body #johnkarl table#jk_tbl th:nth-child(4),html body #johnkarl table#jk_tbl td:nth-child(4){width:26%!important}
html body #johnkarl table#jk_tbl td textarea,html body #johnkarl table#jk_tbl td input{min-width:0!important;width:100%!important;box-sizing:border-box;padding:6px!important}
html body #johnkarl table#jk_tbl tbody td.jk_addW{background:#ffb35c!important;color:#000!important;font-weight:800;text-align:center}
body.day-mode #johnkarl table#jk_tbl tbody tr:nth-child(odd) td:nth-child(-n+3){background:#d6d6d6!important}
body.day-mode #johnkarl table#jk_tbl tbody tr:nth-child(even) td:nth-child(-n+3){background:#ececec!important}
body:not(.day-mode) #johnkarl table#jk_tbl th,body:not(.day-mode) #johnkarl table#jk_tbl td{border-color:rgba(255,255,255,.25)!important}
@media (max-width:900px){html body #johnkarl table#jk_tbl td input,html body #johnkarl table#jk_tbl td textarea{font-size:16px!important}}
html body #johnkarl .out.lh-jk-out .box.lh-grand{--acc:#ff7a00!important}
html body #johnkarl table#jk_tbl tbody td.jk_addW{font-size:15px!important}
/* ===== Ratios calculator (same template as Johnkarl) ===== */
html body #ratios .lh-jk-card{margin-bottom:14px}
html body #ratios .out.lh-jk-out{grid-template-columns:1fr 1fr!important;gap:6px!important;margin:12px 0 0!important}
html body #ratios .out.lh-jk-out .box.lh-full{grid-column:1/-1}
html body #ratios .out.lh-jk-out .box{padding:10px 10px 9px!important;display:flex;flex-direction:column}
html body #ratios .out.lh-jk-out .box .val{margin-top:auto}
html body #ratios .out.lh-jk-out .box .title{margin-bottom:5px!important;gap:6px!important}
html body #ratios .out.lh-jk-out .box:not(.lh-full) .title::before{width:24px;height:24px;background-size:14px}
html body #ratios .out.lh-jk-out .box.lh-grand{background:#ff7a00!important;border-color:#ff7a00!important;--acc:#ff7a00!important}
html body #ratios .out.lh-jk-out .box.lh-grand .title{color:#1a1a1a!important}
html body #ratios .out.lh-jk-out .box.lh-grand .title::before{background:rgba(255,255,255,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M10 2h4v4h-4z'/%3E%3Cpath d='M8 6h8l1 3v11a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V9z'/%3E%3C/svg%3E") center/16px no-repeat}
html body #ratios .out.lh-jk-out .box.lh-grand .val{color:#7a0019!important}
html body #ratios .out.lh-jk-out .box.lh-grand .val > span{color:#141414!important;font-size:30px!important}
body:not(.day-mode) #ratios .out.lh-jk-out .box.lh-grand{background:#ff7a00!important;border-color:#ff7a00!important}
body:not(.day-mode) #ratios .out.lh-jk-out .box.lh-grand .title{color:#1a1a1a!important}
body:not(.day-mode) #ratios .out.lh-jk-out .box.lh-grand .val{color:#7a0019!important}
body:not(.day-mode) #ratios .out.lh-jk-out .box.lh-grand .val > span{color:#141414!important}
html body #ratios .lh-jk-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
html body #ratios .lh-jk-actions .btn{margin:0!important;width:100%}
html body #ratios .table-wrapper{margin-top:12px}
html body #ratios table#r_tbl{border-collapse:collapse!important;width:100%!important;min-width:0!important;table-layout:fixed}
html body #ratios table#r_tbl th,html body #ratios table#r_tbl td{border:1px solid #000!important;padding:5px 4px!important;font-size:12.5px;vertical-align:middle}
html body #ratios table#r_tbl th:nth-child(1),html body #ratios table#r_tbl td:nth-child(1){width:38%!important}
html body #ratios table#r_tbl th:nth-child(3),html body #ratios table#r_tbl td:nth-child(3){width:27%!important}
html body #ratios table#r_tbl td input{min-width:0!important;width:100%!important;box-sizing:border-box;padding:6px!important}
html body #ratios table#r_tbl tbody td[id^="r_w"]{background:#ffb35c!important;color:#000!important;font-weight:800;text-align:center;font-size:15px!important}
body:not(.day-mode) #ratios table#r_tbl th,body:not(.day-mode) #ratios table#r_tbl td{border-color:rgba(255,255,255,.25)!important}
@media (max-width:900px){html body #ratios table#r_tbl td input{font-size:16px!important}}
html body #ratios table#r_tbl td textarea.name-cell{min-width:0!important;width:100%!important;box-sizing:border-box;padding:6px!important;resize:none;font-size:13px;line-height:1.4}
html body #ratios table#r_tbl td textarea.name-cell::placeholder{color:#9a927f;opacity:1}
@media (max-width:900px){html body #ratios table#r_tbl td textarea.name-cell{font-size:16px!important}}
html body #ratios table#r_tbl td textarea.name-cell{font-family:inherit!important;letter-spacing:normal!important;min-height:40px!important;max-height:none!important;overflow:hidden;text-align:right;direction:auto}
html body #ratios table#r_tbl td textarea.name-cell::placeholder{font-size:13px;white-space:nowrap}
html body #ratios table#r_tbl td textarea.name-cell{padding:9px 8px!important}
html body #ratios table#r_tbl th:nth-child(1),html body #ratios table#r_tbl td:nth-child(1){width:44%!important}
html body #ratios table#r_tbl th:nth-child(3),html body #ratios table#r_tbl td:nth-child(3){width:25%!important}
html body #ratios table#r_tbl td textarea.name-cell::placeholder{font-size:12.5px}
@media (max-width:370px){html body #ratios table#r_tbl td textarea.name-cell::placeholder{font-size:11px}html body #ratios table#r_tbl td textarea.name-cell{padding:9px 5px!important}}
/* ===== Maintenance mode ===== */
html.lh-maint-on,html.lh-maint-on body{overflow:hidden!important}
.lh-maint{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:20px;background:radial-gradient(120% 90% at 50% 0%,#3a5226 0%,#1f2e14 55%,#141d0c 100%);overflow:auto}
.lh-maint[hidden]{display:none!important}
.lh-maint-box{width:100%;max-width:420px;background:#f8f3e6;border:1px solid #d9c9a6;border-radius:22px;padding:26px 22px 20px;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.35);color:#23331a}
.lh-maint-logo{width:84px;height:auto;display:block;margin:0 auto 10px}
.lh-maint-ic{width:52px;height:52px;margin:0 auto 12px;border-radius:16px;background:#2f4a1f;color:#D99A42;display:grid;place-items:center}
.lh-maint-ic svg{width:26px;height:26px}
.lh-maint-h{margin:0 0 6px;font-size:22px;font-weight:800;color:#2f4a1f}
.lh-maint-p{margin:0 0 10px;font-size:14px;line-height:1.8;color:#5b5446}
.lh-maint-msg{margin:0 0 12px;padding:10px 12px;border-radius:12px;background:#fff;border:1px dashed #cbbf9f;font-size:14px;line-height:1.7;color:#3d3a32;white-space:pre-line}
.lh-maint-lab{margin-top:6px;font-size:13px;font-weight:700;color:#8a6d2f}
.lh-maint-big{margin:6px 0 4px;font-size:24px;font-weight:800;color:#141414;line-height:1.4}
.lh-maint-clock{display:inline-block;margin:4px 0 8px;padding:6px 14px;border-radius:12px;background:#ff7a00;color:#141414;font-size:26px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:1px}
.lh-maint-clock:empty{display:none}
.lh-maint-end{font-size:12.5px;color:#6b6455}
.lh-maint-admin{margin-top:16px;background:none;border:0;color:#8a8270;font-size:12px;text-decoration:underline;cursor:pointer}
.lh-maint-admin[hidden]{display:none}
.lh-maint-close{position:fixed;top:14px;left:14px;z-index:2147483001}
body:not(.day-mode) .lh-maint-box{background:#1a2213;border-color:#3a4530;color:#f3ede0}
body:not(.day-mode) .lh-maint-h{color:#D99A42}
body:not(.day-mode) .lh-maint-p,body:not(.day-mode) .lh-maint-end{color:#b9b29f}
body:not(.day-mode) .lh-maint-msg{background:#141a10;border-color:#3a4530;color:#e8e1cf}
body:not(.day-mode) .lh-maint-big{color:#f3ede0}
/* admin card */
.lh-maint-status{padding:10px 12px;border-radius:12px;font-weight:700;margin-bottom:10px}
.lh-maint-status.off{background:#e6eedd;color:#2f4a1f}
.lh-maint-status.on{background:#ff7a00;color:#141414}
.lh-maint-dur{flex-wrap:wrap;gap:6px;align-items:center}
.lh-maint-dur .sched-num{width:70px!important}
#maint-root textarea.sched-input{width:100%;margin-top:8px;box-sizing:border-box}
.lh-maint-chk{display:flex;align-items:center;gap:8px;margin:10px 0;font-size:14px;cursor:pointer}
.lh-maint-chk input{width:18px;height:18px}
.lh-maint-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.lh-maint-acts .btn{margin:0!important}
@media (max-width:900px){#maint-root input,#maint-root textarea{font-size:16px!important}}
#maint-root textarea.sched-input{font-family:inherit!important;letter-spacing:normal!important;resize:vertical}
.lh-maint-acts{display:grid;grid-template-columns:1fr;gap:8px}
/* ===== Admin dashboard home ===== */
#admin .lh-adm-tool{display:none!important}
#admin.lh-adm-in .lh-adm-tool.lh-adm-show{display:block!important;margin-top:0!important}
#admin.lh-adm-in .lh-adm-home{display:none}
#admin .lh-adm-back{display:none}
#admin.lh-adm-in .lh-adm-back{display:flex;align-items:center;gap:10px;margin:0 0 14px;position:sticky;top:0;z-index:5;padding:8px 0;background:inherit}
#admin .lh-adm-back .btn{margin:0!important;white-space:nowrap}
#admin .lh-adm-back-t{font-weight:800;color:#2f4a1f;font-size:16px}
.lh-adm-grp{margin:0 0 18px}
.lh-adm-grp-h{font-size:13px;font-weight:800;color:#8a6d2f;margin:0 2px 8px;letter-spacing:.2px}
.lh-adm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px}
.lh-adm-tile{position:relative;display:flex;align-items:center;gap:12px;width:100%;text-align:start;background:#fff;border:1px solid #e6dcc6;border-radius:14px;padding:12px;cursor:pointer;font:inherit;color:inherit;box-shadow:0 1px 2px rgba(0,0,0,.04),0 4px 12px rgba(60,45,10,.05);transition:transform .12s,box-shadow .12s}
.lh-adm-tile:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(60,45,10,.1)}
.lh-adm-tile:active{transform:scale(.99)}
.lh-adm-ic{width:42px;height:42px;flex:none;border-radius:12px;background:#2f4a1f;color:#D99A42;display:grid;place-items:center}
.lh-adm-ic svg{width:21px;height:21px}
.lh-adm-tx{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.lh-adm-tt{font-weight:800;font-size:15px;color:#23331a}
.lh-adm-hint{font-size:12px;color:#7a7364}
.lh-adm-badge{min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#b3122e;color:#fff;font-size:12px;font-weight:800;display:grid;place-items:center}
.lh-adm-badge[hidden],.lh-adm-state[hidden]{display:none}
.lh-adm-state{padding:3px 8px;border-radius:8px;background:#ff7a00;color:#141414;font-size:12px;font-weight:800}
.lh-adm-tile.lh-adm-alert{border-color:#ff7a00;box-shadow:0 0 0 2px rgba(255,122,0,.25)}
body:not(.day-mode) .lh-adm-tile{background:#141a10;border-color:#2c3524;box-shadow:none}
body:not(.day-mode) .lh-adm-tt{color:#f3ede0}
body:not(.day-mode) .lh-adm-hint{color:#a8a18e}
body:not(.day-mode) .lh-adm-grp-h{color:#D99A42}
body:not(.day-mode) #admin .lh-adm-back-t{color:#D99A42}
/* ===== Admin home: dashboard (band, search, section tabs, tool cards) ===== */
.lh-adm-home{display:flex;flex-direction:column;gap:14px}
.lh-ad-hero{position:relative;overflow:hidden;border-radius:20px;padding:20px 18px 16px;color:#f3ede0;background:radial-gradient(120% 140% at 100% 0%,#4a6b2e 0%,#2f4a1f 45%,#1d2e13 100%);box-shadow:0 10px 28px rgba(29,46,19,.28)}
.lh-ad-hero::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(217,154,66,.35);pointer-events:none}
.lh-ad-hero-t{display:flex;flex-direction:column;gap:3px;margin-bottom:14px}
.lh-ad-kicker{font-size:11.5px;letter-spacing:2px;color:#D99A42;font-weight:700;direction:ltr;text-align:start}
.lh-ad-hero-t b{font-size:23px;font-weight:800;color:#fff}
.lh-ad-sub{font-size:13px;color:rgba(243,237,224,.75)}
.lh-ad-att{display:flex;flex-wrap:wrap;gap:8px}
.lh-ad-chip{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:12px;padding:7px 12px 7px 10px;background:rgba(255,255,255,.1);color:#f3ede0;font:inherit;font-size:13px;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);transition:background .15s}
.lh-ad-chip:hover{background:rgba(255,255,255,.18)}
.lh-ad-chip b{min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#D99A42;color:#1d2e13;display:grid;place-items:center;font-size:12px}
.lh-ad-chip.warn b{background:#ff7a00;color:#141414}
.lh-ad-ok{font-size:13px;color:rgba(243,237,224,.8);display:inline-flex;align-items:center;gap:6px}
.lh-ad-ok::before{content:"";width:8px;height:8px;border-radius:50%;background:#8fc46a;box-shadow:0 0 0 3px rgba(143,196,106,.25)}
.lh-ad-search{display:flex;align-items:center;gap:10px;overflow:hidden;background:#fff;border:1px solid #e6dcc6;border-radius:14px;padding:0 14px;height:46px;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.lh-ad-search svg{width:19px;height:19px;color:#8a8270;flex:none}
.lh-ad-search input{flex:1;border:0!important;outline:0;background:transparent!important;font:inherit;font-size:14.5px;color:inherit;padding:0!important;margin:0!important;box-shadow:none!important;height:100%;min-width:0}
.lh-ad-search:focus-within{border-color:#c9a45c;box-shadow:0 0 0 3px rgba(217,154,66,.18)}
.lh-ad-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px;margin:0 -2px;position:sticky;top:0;z-index:4;background:inherit}
.lh-ad-tabs::-webkit-scrollbar{display:none}
.lh-ad-tab{flex:none;display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 14px;border-radius:12px;border:1px solid #e6dcc6;background:#fff;color:#4a4636;font:inherit;font-size:14px;font-weight:700;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s,border-color .15s}
.lh-ad-tab-ic{width:18px;height:18px;display:grid;place-items:center;color:#8a6d2f}
.lh-ad-tab-ic svg{width:18px;height:18px}
.lh-ad-tab .lh-adm-badge{min-width:19px;height:19px;font-size:11px;padding:0 5px}
.lh-ad-tab.on{background:#2f4a1f;border-color:#2f4a1f;color:#fff}
.lh-ad-tab.on .lh-ad-tab-ic{color:#D99A42}
.lh-ad-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.lh-ad-card{position:relative;display:flex;align-items:center;gap:12px;width:100%;text-align:start;background:#fff;border:1px solid #e6dcc6;border-radius:16px;padding:14px;cursor:pointer;font:inherit;color:inherit;box-shadow:0 1px 2px rgba(0,0,0,.03);transition:border-color .15s,box-shadow .15s,transform .12s}
.lh-ad-card[hidden]{display:none}
.lh-ad-card:hover{border-color:#d4b878;box-shadow:0 6px 18px rgba(60,45,10,.09)}
.lh-ad-card:active{transform:scale(.99)}
.lh-ad-card:focus-visible,.lh-ad-tab:focus-visible,.lh-ad-chip:focus-visible{outline:2px solid #D99A42;outline-offset:2px}
.lh-ad-card .lh-adm-ic{width:44px;height:44px;border-radius:13px;background:linear-gradient(145deg,#3b5a27,#26391a)}
.lh-ad-card .lh-adm-tt{font-size:15px}
.lh-ad-card .lh-adm-hint{font-size:12.5px;line-height:1.5}
.lh-ad-go{width:20px;height:20px;flex:none;color:#b9a77d}
.lh-ad-go svg{width:20px;height:20px}
.lh-ad-card.lh-adm-alert{border-color:#ff7a00;box-shadow:0 0 0 2px rgba(255,122,0,.25)}
.lh-ad-empty{text-align:center;color:#8a8270;font-size:14px;padding:18px}
.lh-ad-empty[hidden]{display:none}
body:not(.day-mode) .lh-ad-search,body:not(.day-mode) .lh-ad-tab,body:not(.day-mode) .lh-ad-card{background:#141a10;border-color:#2c3524;color:#e8e1cf;box-shadow:none}
body:not(.day-mode) .lh-ad-tab.on{background:#D99A42;border-color:#D99A42;color:#1d2e13}
body:not(.day-mode) .lh-ad-tab.on .lh-ad-tab-ic{color:#1d2e13}
body:not(.day-mode) .lh-ad-card:hover{border-color:#5a4a26}
body:not(.day-mode) .lh-ad-go{color:#6f6650}
.lh-ad-search input,.lh-ad-search input:focus{background:transparent!important;border-radius:0!important;width:100%!important;outline:0!important;border:0!important;box-shadow:none!important;-webkit-appearance:none;appearance:none}
.lh-ad-tab{position:relative}
@media (max-width:560px){
.lh-ad-tabs{display:grid;grid-template-columns:repeat(5,1fr);overflow:visible;gap:5px}
.lh-ad-tab{flex-direction:column;justify-content:center;height:auto;min-height:58px;padding:8px 2px 7px;gap:4px;font-size:12px;border-radius:13px;min-width:0}
.lh-ad-tab>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;max-width:100%}
.lh-ad-tab-ic,.lh-ad-tab-ic svg{width:20px;height:20px}
.lh-ad-tab .lh-adm-badge{position:absolute;top:-6px;inset-inline-start:-4px}
.lh-ad-hero{padding:18px 16px 14px}
}
@media (prefers-reduced-motion:reduce){.lh-ad-card,.lh-ad-tab,.lh-ad-chip{transition:none}}
/* ===== Admin lists as cards (files / folders / users) ===== */
#admin table.lh-cards{display:block;width:100%!important;min-width:0!important;border:0!important;background:none!important}
#admin table.lh-cards thead{display:none}
#admin table.lh-cards tbody{display:flex;flex-direction:column;gap:10px}
#admin table.lh-cards tr{display:grid;grid-template-columns:1fr 1fr 84px;gap:8px 10px;background:#fff!important;border:1px solid #e6dcc6;border-radius:14px;padding:12px;box-shadow:0 1px 2px rgba(0,0,0,.04),0 4px 12px rgba(60,45,10,.05)}
#admin table.lh-cards td{display:block;border:0!important;padding:0!important;background:none!important;text-align:start!important;min-width:0;white-space:normal!important}
#admin table.lh-cards td::before{content:attr(data-label);display:block;font-size:11.5px;font-weight:700;color:#8a8270;margin-bottom:4px}
#admin table.lh-cards td[data-col="name"]::before,#admin table.lh-cards td[data-col="type"]::before,#admin table.lh-cards td[data-col="status"]::before,#admin table.lh-cards td[data-col="actions"]::before,#admin table.lh-cards td[data-col="pick"]::before,#admin table.lh-cards td[data-col="email"]::before{content:none}
#admin table.lh-cards td[data-col="groups"],#admin table.lh-cards td[data-col="release"]{display:none!important}
#admin table.lh-cards td[data-col="name"],#admin table.lh-cards td[data-col="desc"],#admin table.lh-cards td[data-col="actions"],#admin table.lh-cards td[data-col="email"]{grid-column:1/-1}
#admin table.lh-cards td[data-col="type"],#admin table.lh-cards td[data-col="status"]{grid-row:1;font-size:12px}
#admin table.lh-cards td[data-col="type"]{grid-column:1/3;color:#2f4a1f;font-weight:800}
#admin table.lh-cards td[data-col="status"]{grid-column:3;text-align:end!important}
#admin table.lh-cards td[data-col="name"] input{font-size:15px!important;font-weight:700}
#admin table.lh-cards input:not([type=checkbox]),#admin table.lh-cards select{width:100%!important;min-width:0!important;box-sizing:border-box;padding:9px 10px!important;border-radius:10px!important;border:1px solid #d9cfb8!important;background:#fbf8f1!important;color:#23331a!important;font-size:14px!important;margin-inline-start:0!important}
#admin table.lh-cards td[data-col="actions"]{display:grid!important;grid-template-columns:repeat(3,1fr);gap:6px;padding-top:6px!important;border-top:1px dashed #e6dcc6!important;margin-top:2px}
#admin table.lh-cards td[data-col="actions"] .btn{margin:0!important;width:100%;min-width:0!important;padding:9px 6px!important;font-size:13px!important}
#admin table.lh-cards .lh-hidden-badge{display:inline-block;margin-top:4px}
/* folders: name (with depth indent kept) / parent / role / order */
#admin #admin-folders-list table.lh-cards td[data-col="parent"]{grid-column:1/3}
/* users table */
#admin #admin-users-list table.lh-cards tr{grid-template-columns:28px 1fr 1fr}
#admin #admin-users-list table.lh-cards td[data-col="pick"]{grid-column:1;grid-row:1}
#admin #admin-users-list table.lh-cards td[data-col="email"]{grid-column:2/-1;grid-row:1;font-weight:800;word-break:break-all}
#admin #admin-users-list table.lh-cards td[data-col="role"]{grid-column:1/3}
#admin #admin-users-list table.lh-cards td[data-col="status"]{grid-column:3;grid-row:auto;text-align:start!important}
#admin #admin-users-list table.lh-cards td[data-col="joined"]{grid-column:1/-1;font-size:12px;color:#7a7364}
#admin #admin-users-list table.lh-cards td[data-col="actions"]{grid-template-columns:repeat(auto-fit,minmax(90px,1fr))}
/* groups are replaced by course scheduling: hide their leftovers */
#users-filter-group,#bulk-group,#bulk-add-group,#bulk-remove-group,#newuser-groups{display:none!important}
.lh-groups-note{display:none!important}
body:not(.day-mode) #admin table.lh-cards tr{background:#141a10!important;border-color:#2c3524;box-shadow:none}
body:not(.day-mode) #admin table.lh-cards input:not([type=checkbox]),body:not(.day-mode) #admin table.lh-cards select{background:#0e130b!important;border-color:#3a4530!important;color:#f3ede0!important}
body:not(.day-mode) #admin table.lh-cards td[data-col="type"]{color:#D99A42}
@media (max-width:900px){#admin table.lh-cards input,#admin table.lh-cards select{font-size:16px!important}}
/* cards: clean backgrounds + collapsed/expanded */
html body #admin .admin-table-container:has(table.lh-cards){background:none!important;border:0!important;box-shadow:none!important;overflow:visible!important;padding:0!important}
html body #admin table.lh-cards tbody tr,html body #admin table.lh-cards tbody tr:nth-child(n){background:#fff!important}
html body #admin table.lh-cards tbody tr td,html body #admin table.lh-cards tbody tr:nth-child(n) td{background:transparent!important;color:inherit}
body:not(.day-mode) #admin table.lh-cards tbody tr,body:not(.day-mode) #admin table.lh-cards tbody tr:nth-child(n){background:#141a10!important}
#admin table.lh-cards tr{grid-template-columns:1fr 1fr!important}
#admin table.lh-cards td[data-col="type"]{grid-column:1!important}
#admin table.lh-cards td[data-col="status"]{grid-column:2!important}
#admin table.lh-cards td[data-col="folder"],#admin table.lh-cards td[data-col="parent"]{grid-column:1/-1!important}
#admin table.lh-cards td[data-col="role"]{grid-column:1!important}
#admin table.lh-cards td[data-col="order"]{grid-column:2!important}
#admin table.lh-cards td.lh-tgl{grid-column:1/-1;display:flex!important;align-items:center;justify-content:space-between;gap:8px}
#admin table.lh-cards td.lh-tgl::before{content:none}
.lh-tgl-where{font-size:12.5px;color:#6b6455;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#admin table.lh-cards .lh-tgl-btn{margin:0!important;padding:7px 14px!important;font-size:13px!important;flex:none}
/* collapsed: hide editing fields */
#admin table.lh-cards tr:not(.lh-open) td[data-col="desc"],#admin table.lh-cards tr:not(.lh-open) td[data-col="folder"],#admin table.lh-cards tr:not(.lh-open) td[data-col="parent"],#admin table.lh-cards tr:not(.lh-open) td[data-col="role"],#admin table.lh-cards tr:not(.lh-open) td[data-col="order"],#admin table.lh-cards tr:not(.lh-open) td[data-col="actions"],#admin table.lh-cards tr:not(.lh-open) td[data-col="name"] input.lh-name-en{display:none!important}
#admin table.lh-cards tr.lh-open{border-color:#2f4a1f;box-shadow:0 0 0 2px rgba(47,74,31,.15)}
#admin table.lh-cards tr.lh-open .lh-tgl-where{visibility:hidden}
/* users table keeps all fields (no toggle) */
#admin #admin-users-list table.lh-cards tr{grid-template-columns:28px 1fr 1fr!important}
#admin #admin-users-list table.lh-cards td[data-col="role"]{grid-column:1/3!important}
#admin #admin-users-list table.lh-cards td[data-col="status"]{grid-column:3!important}
#admin #admin-users-list table.lh-cards td[data-col="status"]::before{content:attr(data-label);display:block}
#admin #admin-users-list table.lh-cards tr.lh-open{border-color:#e6dcc6;box-shadow:0 1px 2px rgba(0,0,0,.04),0 4px 12px rgba(60,45,10,.05)}
#admin #admin-users-list table.lh-cards td[data-col="pick"]{grid-column:1!important;grid-row:1!important;align-self:center}
#admin #admin-users-list table.lh-cards td[data-col="email"]{grid-column:2/-1!important;grid-row:1!important;align-self:center}
/* ===== EO net & cost calculator ===== */
html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out[style*="display:none"],html body :is(#alcohol,#oils,#stubborn,#design,#johnkarl,#ratios,#eo-net,#ifra) .out[style*="display: none"]{display:none!important}
html body #eo-net .lh-jk-card{margin-bottom:14px}
html body #eo-net .out.lh-jk-out{grid-template-columns:1fr 1fr!important;gap:6px!important;margin:12px 0 0!important}
html body #eo-net .out.lh-jk-out .box.lh-full{grid-column:1/-1}
html body #eo-net .out.lh-jk-out .box{padding:10px 10px 9px!important;display:flex;flex-direction:column}
html body #eo-net .out.lh-jk-out .box .val{margin-top:auto;color:#141414!important;font-size:24px!important;font-weight:800!important}
html body #eo-net .out.lh-jk-out .box .title{margin-bottom:5px!important;gap:6px!important}
html body #eo-net .out.lh-jk-out .box:not(.lh-full) .title::before{width:24px;height:24px;background-size:14px}
html body #eo-net .out.lh-jk-out .box.lh-grand{background:#ff7a00!important;border-color:#ff7a00!important;--acc:#ff7a00!important}
html body #eo-net .out.lh-jk-out .box.lh-grand .title{color:#1a1a1a!important}
html body #eo-net .out.lh-jk-out .box.lh-grand .title::before{background:rgba(255,255,255,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v10M9.5 9.5c0-1.2 1.1-2 2.5-2s2.5.8 2.5 2-1.1 1.7-2.5 2-2.5.8-2.5 2 1.1 2 2.5 2 2.5-.8 2.5-2'/%3E%3C/svg%3E") center/16px no-repeat}
html body #eo-net .out.lh-jk-out .box.lh-grand .val{font-size:30px!important;color:#141414!important}
body:not(.day-mode) #eo-net .out.lh-jk-out .box .val{color:#f3ede0!important}
body:not(.day-mode) #eo-net .out.lh-jk-out .box.lh-grand{background:#ff7a00!important;border-color:#ff7a00!important}
body:not(.day-mode) #eo-net .out.lh-jk-out .box.lh-grand .title,body:not(.day-mode) #eo-net .out.lh-jk-out .box.lh-grand .val{color:#141414!important}
html body #eo-net .lh-eo-rows{display:grid;grid-template-columns:1fr 1fr;gap:8px}
html body #eo-net .lh-eo-rows input{grid-column:1/-1}
html body #eo-net .lh-eo-rows #eo_applyRows{grid-column:1/-1}
html body #eo-net .lh-eo-rows .btn,html body #eo-net .lh-eo-actions .btn{margin:0!important;width:100%}
html body #eo-net .lh-eo-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px}
html body #eo-net .lh-eo-actions #eo_recalc{grid-column:1/-1}
/* tables: black grid, computed columns orange, first two columns fixed on phones */
html body #eo-net table#eo_table_right,html body #eo-net table#eo_table_left{border-collapse:collapse!important;width:100%!important}
html body #eo-net table#eo_table_right :is(th,td),html body #eo-net table#eo_table_left :is(th,td){border:1px solid #000!important;padding:6px 4px!important;font-size:12.5px;vertical-align:middle;text-align:center}
html body #eo-net table#eo_table_right td input,html body #eo-net table#eo_table_left td input{min-width:0!important;width:100%!important;box-sizing:border-box;padding:6px!important;text-align:center}
html body #eo-net table#eo_table_right td textarea.name-cell{min-width:0!important;width:100%!important;box-sizing:border-box;padding:6px!important;font-family:inherit!important;letter-spacing:normal!important;resize:none}
body:not(.day-mode) #eo-net table :is(th,td){border-color:rgba(255,255,255,.25)!important}
@media (max-width:900px){
  html body #eo-net .table-wrapper{overflow-x:auto}
  html body #eo-net table#eo_table_right{min-width:560px;table-layout:fixed}
  html body #eo-net table#eo_table_left{min-width:520px;table-layout:fixed}
  html body #eo-net table#eo_table_right :is(th,td):nth-child(1),html body #eo-net table#eo_table_left :is(th,td):nth-child(1){width:30px;position:sticky;right:0;z-index:3}
  html body #eo-net table#eo_table_right :is(th,td):nth-child(2){width:110px;position:sticky;right:30px;z-index:3;box-shadow:-6px 0 8px -6px rgba(0,0,0,.35)}
  html body #eo-net table#eo_table_right thead th:nth-child(-n+2),html body #eo-net table#eo_table_left thead th:nth-child(1){background:#e8e0cc!important;z-index:4}
  html body #eo-net table td input,html body #eo-net table td textarea{font-size:16px!important}
}
@media (max-width:900px){html body #eo-net table#eo_table_left :is(th,td):nth-child(1){width:52px}}
html body #eo-net table#eo_table_right,html body #eo-net table#eo_table_left{overflow:visible!important}
/* eo-net: two tabs */
html body #eo-net .lh-eo-rowline{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;margin-bottom:12px}
html body #eo-net .lh-eo-rowline .btn{margin:0!important;padding-inline:22px!important}
html body #eo-net .lh-eo-actions{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px;margin-top:4px!important}
html body #eo-net .lh-eo-actions .btn{padding:10px 6px!important;font-size:14px!important}
html body #eo-net .lh-eo-actions .btn[hidden]{display:none!important}
html body #eo-net #eo-p2 .out.lh-jk-out{grid-template-columns:1fr!important}
@media print{#eo-net .lh-cpane[hidden]{display:block!important}#eo-net .lh-ctabs,#eo-net .lh-eo-actions{display:none!important}}
/* eo-net tables: orange computed columns, green totals (approved look) */
html body #eo-net table#eo_table_right tbody td:nth-child(5),html body #eo-net table#eo_table_right tbody td:nth-child(6),
html body #eo-net table#eo_table_left tbody td:nth-child(2),html body #eo-net table#eo_table_left tbody td:nth-child(5),html body #eo-net table#eo_table_left tbody td:nth-child(6){background:#ffb35c!important;color:#000!important;font-weight:800;font-size:14px!important}
body.day-mode #eo-net table#eo_table_right tbody tr:nth-child(odd) td:nth-child(-n+4),body.day-mode #eo-net table#eo_table_left tbody tr:nth-child(odd) td:nth-child(-n+4):not(:nth-child(2)){background:#d6d6d6!important}
body.day-mode #eo-net table#eo_table_right tbody tr:nth-child(even) td:nth-child(-n+4),body.day-mode #eo-net table#eo_table_left tbody tr:nth-child(even) td:nth-child(-n+4):not(:nth-child(2)){background:#ececec!important}
html body #eo-net table#eo_table_right tfoot :is(th,td),html body #eo-net table#eo_table_left tfoot :is(th,td){background:#2f4a1f!important;color:#fff!important;font-weight:800}
body:not(.day-mode) #eo-net table#eo_table_right tbody td:nth-child(-n+2),body:not(.day-mode) #eo-net table#eo_table_left tbody td:nth-child(1){background:#1a2213!important}
/* ===== EO net: tab 3 "perfume cost" ===== */
#eo-p3 .eo3-sec{background:#fff;border:1px solid #e6dcc6;border-radius:14px;padding:12px;margin-bottom:10px}
#eo-p3 .eo3-h{display:flex;align-items:center;gap:8px;font-weight:800;font-size:15.5px;color:#2f4a1f;margin-bottom:8px}
#eo-p3 .eo3-n{width:24px;height:24px;border-radius:50%;background:#2f4a1f;color:#D99A42;display:grid;place-items:center;font-size:13px;flex:none}
#eo-p3 .eo3-hint{font-size:12.5px;color:#7a7364;margin:0 0 8px}
#eo-p3 .eo3-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;background:#f3ede0;border-radius:12px;margin-bottom:8px}
#eo-p3 .eo3-opt{border:0;border-radius:9px;padding:10px 6px;font:inherit;font-weight:700;font-size:13.5px;background:transparent;color:#5b5446;cursor:pointer}
#eo-p3 .eo3-opt.on{background:#2f4a1f;color:#fff}
#eo-p3 .eo3-line{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 2px 0;border-top:1px dashed #e6dcc6;margin-top:8px;font-size:14px}
#eo-p3 .eo3-line b{color:#141414;font-size:16px;white-space:nowrap}
#eo-p3 .eo3-grid2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#eo-p3 label{font-size:13px}
#eo-p3 table{border-collapse:collapse!important;width:100%!important;table-layout:fixed}
#eo-p3 table :is(th,td){border:1px solid #000!important;padding:5px 4px!important;font-size:12px;text-align:center;vertical-align:middle}
#eo-p3 table th{background:#e8e0cc!important;color:#23331a!important}
#eo-p3 table td input{width:100%!important;min-width:0!important;box-sizing:border-box;padding:6px!important;text-align:center}
#eo-p3 table td.eo3-calc{background:#ffb35c!important;color:#000!important;font-weight:800;font-size:13px}
#eo-p3 #eo3_pkTbl td:first-child input{text-align:start}
@media (max-width:900px){#eo-p3 #eo3_addTbl{min-width:520px}#eo-p3 .table-wrapper{overflow-x:auto}#eo-p3 input{font-size:16px!important}}
#eo-p3 .eo3-yield{padding:10px 12px;border-radius:10px;background:#e6eedd;color:#2f4a1f;font-weight:700;font-size:13.5px;margin-bottom:8px}
#eo-p3 .eo3-receipt{background:#fff;border:1px solid #e6dcc6;border-radius:14px;padding:4px 12px;margin-top:4px}
#eo-p3 .eo3-r{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #f0e8d6;font-size:14px}
#eo-p3 .eo3-r:last-child{border-bottom:0}
#eo-p3 .eo3-r b{color:#141414}
html body #eo-net #eo-p3 .out.lh-jk-out{grid-template-columns:1fr 1fr!important}
body:not(.day-mode) #eo-p3 :is(.eo3-sec,.eo3-receipt){background:#141a10;border-color:#2c3524}
body:not(.day-mode) #eo-p3 .eo3-line b,body:not(.day-mode) #eo-p3 .eo3-r b{color:#f3ede0}
body:not(.day-mode) #eo-p3 .eo3-switch{background:#0e130b}
body:not(.day-mode) #eo-p3 .eo3-opt{color:#b9b29f}
body:not(.day-mode) #eo-p3 .eo3-h{color:#D99A42}
/* tab 3: result boxes like the other calculators */
html body #eo-net #eo-p3 .out.eo3-out{margin:10px 0 0!important}
html body #eo-net #eo-p3 .out.eo3-out .box .val{color:#b3122e!important;font-size:14px!important;font-weight:700!important}
html body #eo-net #eo-p3 .out.eo3-out .box .val > span{color:#141414!important;font-size:24px!important;font-weight:800!important}
body:not(.day-mode) #eo-net #eo-p3 .out.eo3-out .box .val > span{color:#f3ede0!important}
html body #eo-net #eo-p3 .out.eo3-out .box:has(#eo3_oilG),html body #eo-net #eo-p3 .out.eo3-out .box:has(#eo3_oilCost){--acc:#e0a800;--accl:#fff4cc}
html body #eo-net #eo-p3 .out.eo3-out .box:has(#eo3_solG),html body #eo-net #eo-p3 .out.eo3-out .box:has(#eo3_solCost){--acc:#2f6fb0;--accl:#e3eef9}
html body #eo-net #eo-p3 .out.eo3-out .box:has(#eo3_addTotal){--acc:#8a6d2f;--accl:#f3ead6}
html body #eo-net #eo-p3 .out.eo3-out .box:has(#eo3_shipEach){--acc:#6b4fa0;--accl:#eee8f7}
html body #eo-net #eo-p3 .out.eo3-out .box:has(#eo3_pkTotal){--acc:#2f4a1f;--accl:#e6eedd}
#eo-p3 .eo3-grid2{align-items:end}
@media (max-width:900px){
  #eo-p3 #eo3_addTbl{overflow:visible!important}
  #eo-p3 #eo3_addTbl :is(th,td):first-child{position:sticky;right:0;z-index:3;width:92px;box-shadow:-6px 0 8px -6px rgba(0,0,0,.35)}
  body.day-mode #eo-p3 #eo3_addTbl tbody td:first-child{background:#ece6d6!important}
  body:not(.day-mode) #eo-p3 #eo3_addTbl tbody td:first-child{background:#1a2213!important}
  #eo-p3 #eo3_addTbl thead th:first-child{z-index:4}
}
@media (max-width:900px){#eo-p3 #eo3_addTbl :is(th,td):first-child{width:118px}}
#eo-p3 #eo3_addTbl td:first-child input::placeholder{font-size:12px}
html body #eo-net #eo-p3 .out.eo3-out .box:has(#eo3_pkAll){--acc:#2f4a1f;--accl:#e6eedd}
html body #eo-net #eo-p3 .out.eo3-out .box:has(#eo3_addAll){--acc:#8a6d2f;--accl:#f3ead6}
/* tab 3: production line (gold instead of green) */
#eo-p3 .eo3-yield{background:linear-gradient(135deg,#fff7e0,#fdebc0)!important;color:#5c4300!important;border:1px solid #e9c46a;border-inline-start:5px solid #c9971c;font-size:14.5px!important}
body:not(.day-mode) #eo-p3 .eo3-yield{background:#2a2412!important;color:#f3d48a!important;border-color:#6b5520}
#eo-p3 .eo3-receipt[hidden],#eo-p3 .box[hidden]{display:none!important}
/* tab 3: production card */
#eo-p3 .eo3-yield{display:flex!important;align-items:center;gap:12px;padding:14px!important;border-radius:14px!important;background:#fff!important;border:1px solid #e6dcc6!important;border-inline-start:5px solid #c9971c!important;box-shadow:0 4px 14px rgba(60,45,10,.06)}
#eo-p3 .eo3-y-ic{width:46px;height:46px;flex:none;border-radius:13px;background:#2f4a1f;color:#D99A42;display:grid;place-items:center}
#eo-p3 .eo3-y-ic svg{width:24px;height:24px}
#eo-p3 .eo3-y-tx{display:flex;flex-direction:column;gap:2px;min-width:0}
#eo-p3 .eo3-y-lb{font-size:12.5px;font-weight:700;color:#8a8270}
#eo-p3 .eo3-y-v{font-size:26px;font-weight:800;color:#141414;line-height:1.2}
#eo-p3 .eo3-y-nt{font-size:12.5px;color:#8a6d2f;font-weight:600}
body:not(.day-mode) #eo-p3 .eo3-yield{background:#141a10!important;border-color:#2c3524!important}
body:not(.day-mode) #eo-p3 .eo3-y-v{color:#f3ede0}
/* tab 3: cost table */
#eo-p3 .eo3-receipt{padding:0!important;overflow:hidden;margin-top:10px!important;box-shadow:0 4px 14px rgba(60,45,10,.06)}
#eo-p3 .eo3-rh,#eo-p3 .eo3-r,#eo-p3 .eo3-rf{display:grid!important;grid-template-columns:1.3fr 1fr 1fr;align-items:center;gap:6px;padding:10px 12px!important;font-size:14px}
#eo-p3 .eo3-rh{background:#2f4a1f;color:#fff;font-weight:800;font-size:12.5px}
#eo-p3 .eo3-rh span:not(:first-child),#eo-p3 .eo3-r b,#eo-p3 .eo3-rf b{text-align:end;font-variant-numeric:tabular-nums}
#eo-p3 .eo3-r{border-bottom:1px solid #f0e8d6!important}
#eo-p3 .eo3-r span{display:flex;align-items:center;gap:8px;font-weight:600;color:#3d3a32}
#eo-p3 .eo3-r i{width:10px;height:10px;border-radius:50%;flex:none;background:#999}
#eo-p3 .eo3-r[data-c=oil] i{background:#e0a800}#eo-p3 .eo3-r[data-c=sol] i{background:#2f6fb0}#eo-p3 .eo3-r[data-c=add] i{background:#8a6d2f}#eo-p3 .eo3-r[data-c=ship] i{background:#6b4fa0}#eo-p3 .eo3-r[data-c=pk] i{background:#2f4a1f}
#eo-p3 .eo3-r b{color:#141414;font-weight:700}
#eo-p3 .eo3-rf{background:#fff4cc;font-weight:800}
#eo-p3 .eo3-rf b{color:#141414;font-size:15px}
body:not(.day-mode) #eo-p3 .eo3-r span{color:#e8e1cf}
body:not(.day-mode) #eo-p3 .eo3-r b,body:not(.day-mode) #eo-p3 .eo3-rf b{color:#f3ede0}
body:not(.day-mode) #eo-p3 .eo3-rf{background:#2a2412}
/* unit + total side by side */
html body #eo-net #eo-p3 > .out.lh-jk-out:not(.eo3-out){grid-template-columns:1fr 1fr!important}
html body #eo-net #eo-p3 .box.lh-grand2{background:#2f4a1f!important;border-color:#2f4a1f!important;--acc:#2f4a1f!important}
html body #eo-net #eo-p3 .box.lh-grand2 .title{color:#e6eedd!important}
html body #eo-net #eo-p3 .box.lh-grand2 .title::before{background:rgba(255,255,255,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D99A42' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 15l4-4 3 3 5-6'/%3E%3C/svg%3E") center/16px no-repeat}
html body #eo-net #eo-p3 .box.lh-grand2 .val{color:#fff!important}
html body #eo-net #eo-p3 > .out.lh-jk-out .box .val{font-size:24px!important}
#eo-p3 .eo3-rh,#eo-p3 .eo3-r,#eo-p3 .eo3-rf{grid-template-columns:1.6fr 1fr 1.1fr!important}#eo-p3 .eo3-r span{white-space:nowrap}
/* ===== IFRA calculator ===== */
html body #ifra .lh-jk-card{margin-bottom:14px}
html body #ifra .out.lh-jk-out{grid-template-columns:1fr 1fr!important;gap:6px!important;margin:12px 0 0!important}
html body #ifra .out.lh-jk-out .box.lh-full{grid-column:1/-1}
html body #ifra .out.lh-jk-out .box{padding:10px 10px 9px!important;display:flex;flex-direction:column}
html body #ifra .out.lh-jk-out .box .val{margin-top:auto}
html body #ifra .out.lh-jk-out .box .title{margin-bottom:5px!important;gap:6px!important}
html body #ifra .out.lh-jk-out .box:not(.lh-full) .title::before{width:24px;height:24px;background-size:14px}
html body #ifra .out.lh-jk-out .box.lh-grand{background:#ff7a00!important;border-color:#ff7a00!important;--acc:#ff7a00!important}
html body #ifra .out.lh-jk-out .box.lh-grand .title{color:#1a1a1a!important}
html body #ifra .out.lh-jk-out .box.lh-grand .title::before{background:rgba(255,255,255,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M10 2h4v4h-4z'/%3E%3Cpath d='M8 6h8l1 3v11a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V9z'/%3E%3C/svg%3E") center/16px no-repeat}
html body #ifra .out.lh-jk-out .box.lh-grand .val{color:#7a0019!important}
html body #ifra .out.lh-jk-out .box.lh-grand .val > span{color:#141414!important;font-size:30px!important}
body:not(.day-mode) #ifra .out.lh-jk-out .box.lh-grand{background:#ff7a00!important;border-color:#ff7a00!important}
body:not(.day-mode) #ifra .out.lh-jk-out .box.lh-grand .title{color:#1a1a1a!important}
body:not(.day-mode) #ifra .out.lh-jk-out .box.lh-grand .val{color:#7a0019!important}
body:not(.day-mode) #ifra .out.lh-jk-out .box.lh-grand .val > span{color:#141414!important}
html body #ifra .lh-jk-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
html body #ifra .lh-jk-actions .btn{margin:0!important;width:100%}
html body #ifra .table-wrapper{margin-top:12px}
html body #ifra table#ifra_tox_tbl{border-collapse:collapse!important;width:100%!important;min-width:0!important;table-layout:fixed}
html body #ifra table#ifra_tox_tbl th,html body #ifra table#ifra_tox_tbl td{border:1px solid #000!important;padding:5px 4px!important;font-size:12.5px;vertical-align:middle}
html body #ifra table#ifra_tox_tbl td input{min-width:0!important;width:100%!important;box-sizing:border-box;padding:6px!important}
body:not(.day-mode) #ifra table#ifra_tox_tbl th,body:not(.day-mode) #ifra table#ifra_tox_tbl td{border-color:rgba(255,255,255,.25)!important}
@media (max-width:900px){html body #ifra table#ifra_tox_tbl td input{font-size:16px!important}}
html body #ifra table#ifra_tox_tbl td textarea.name-cell{min-width:0!important;width:100%!important;box-sizing:border-box;padding:6px!important;resize:none;font-size:13px;line-height:1.4}
html body #ifra table#ifra_tox_tbl td textarea.name-cell::placeholder{color:#9a927f;opacity:1}
@media (max-width:900px){html body #ifra table#ifra_tox_tbl td textarea.name-cell{font-size:16px!important}}
html body #ifra table#ifra_tox_tbl td textarea.name-cell{font-family:inherit!important;letter-spacing:normal!important;min-height:40px!important;max-height:none!important;overflow:hidden;text-align:right;direction:auto}
html body #ifra table#ifra_tox_tbl td textarea.name-cell::placeholder{font-size:13px;white-space:nowrap}
html body #ifra table#ifra_tox_tbl td textarea.name-cell{padding:9px 8px!important}
html body #ifra table#ifra_tox_tbl td textarea.name-cell::placeholder{font-size:12.5px}
@media (max-width:370px){html body #ifra table#ifra_tox_tbl td textarea.name-cell::placeholder{font-size:11px}html body #ifra table#ifra_tox_tbl td textarea.name-cell{padding:9px 5px!important}}
html body #ifra table#ifra_tox_tbl th:nth-child(1),html body #ifra table#ifra_tox_tbl td:nth-child(1){width:30px!important;text-align:center}
html body #ifra table#ifra_tox_tbl th:nth-child(3),html body #ifra table#ifra_tox_tbl td:nth-child(3),html body #ifra table#ifra_tox_tbl th:nth-child(4),html body #ifra table#ifra_tox_tbl td:nth-child(4){width:27%!important}
html body #ifra table#ifra_tox_tbl tfoot th{background:#6f8f3a!important;color:#fff!important;font-weight:800}
html body #ifra table#ifra_tox_tbl tfoot #ifra_tox_sum{background:#ffb35c!important;color:#000!important;font-size:15px!important}
html body #ifra .lh-ctabs4{display:grid!important;grid-template-columns:1fr 1fr;gap:6px}
html body #ifra .lh-ctabs4 .lh-ctab{font-size:14px;padding:9px 6px;min-height:42px}
html body #ifra .lh-cpane h3{margin:0 0 12px}
html body #ifra .lh-eo-rowline{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;margin-bottom:12px}
html body #ifra .lh-eo-rowline .btn{margin:0!important;padding-inline:22px!important}
html body #ifra .lh-jk-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:12px}
html body #ifra .lh-jk-actions .btn{margin:0!important;width:100%}
html body #ifra .lh-ifra-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px;margin-top:4px!important}
html body #ifra .lh-ifra-actions .btn{margin:0!important;width:100%;padding:10px 6px!important}
html body #ifra .out.lh-jk-out .box.lh-grand .val{color:#141414!important;font-size:30px!important}
@media print{#ifra .lh-cpane[hidden]{display:block!important}#ifra .lh-ctabs,#ifra .lh-ifra-actions{display:none!important}}
html body #ifra #ifra_tox_allowed::after,html body #ifra #ifra_res1::after,html body #ifra #ifra_res2::after{content:" %";color:#7a0019;font-weight:800;font-size:22px}
html body #ifra #ifra_res3::after{content:" ppm";color:#7a0019;font-weight:800;font-size:20px}
html body #ifra #ifra_reset[hidden]{display:none!important}
/* ===== EO production report ===== */
html body #eo-net .lh-rep-btn{display:block;width:100%;margin:14px 0 0!important;background:#2f4a1f!important;color:#fff!important;border-color:#2f4a1f!important;font-size:16px!important;padding:13px!important}
html body #eo-net .lh-rep-btn::before{content:"";display:inline-block;width:18px;height:18px;margin-inline-end:8px;vertical-align:-3px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E") center/contain no-repeat}
html body #eo-net .lh-rep-btn.lh-locked{background:#d9d4c4!important;border-color:#d9d4c4!important;color:#6b6555!important}
html body #eo-net .lh-rep-btn.lh-locked::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6555' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E")}
html body #eo-net .lh-rep-need{margin-top:8px;padding:10px 12px;border:1px dashed #c9a227;background:#fff8e1;border-radius:12px;color:#5a4a10;font-size:13px;line-height:1.6}
html body #eo-net .lh-rep-need ul{margin:4px 0 0;padding-inline-start:18px}
.lh-shake{animation:lhShake .35s}
@keyframes lhShake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
body.lh-rep-open{overflow:hidden}
.lh-rep{position:fixed;inset:0;z-index:9000;background:rgba(20,24,14,.55);overflow-y:auto;-webkit-overflow-scrolling:touch;padding:14px 10px 30px;direction:rtl}
.lh-rep[hidden]{display:none!important}
.lh-rep-in{max-width:760px;margin:0 auto;background:#fbf8f1;border-radius:20px;padding:18px 14px 16px;box-shadow:0 10px 40px rgba(0,0,0,.3);color:#1d1d1d}
.lh-rep-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;border-bottom:2px solid #2f4a1f;padding-bottom:10px;margin-bottom:12px}
.lh-rep-head h2{margin:0;font-size:21px;color:#2f4a1f}
.lh-rep-date{font-size:13px;color:#7a735f;margin-top:3px}
.lh-rep-x{border:0;background:#ece6d6;width:38px;height:38px;border-radius:50%;font-size:17px;cursor:pointer;color:#2f4a1f;flex:none}
.lh-rep-sum{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}
.lh-rep-k{background:#fff;border:1px solid #e3dccb;border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}
.lh-rep-k span{font-size:12.5px;color:#7a735f;font-weight:700}
.lh-rep-k b{font-size:19px;color:#141414}
.lh-rep-k1{background:#2f4a1f;border-color:#2f4a1f}
.lh-rep-k1 span{color:#d9e4c6}.lh-rep-k1 b{color:#fff;font-size:22px}
.lh-rep-sec{background:#fff;border:1px solid #e3dccb;border-radius:16px;padding:14px 12px;margin-bottom:12px}
.lh-rep-sec h3{margin:0 0 4px;font-size:17px;color:#2f4a1f}
.lh-rep-hint{margin:0 0 10px;font-size:13px;color:#7a735f}
.lh-rep-first{background:#fff0e0;border:1px solid #ffb35c;border-radius:10px;padding:8px 10px;font-size:13.5px;margin-bottom:10px}
.lh-rep-tbl{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12.5px}
.lh-rep-tbl th,.lh-rep-tbl td{border:1px solid #000;padding:6px 4px;text-align:center;vertical-align:middle;word-break:break-word}
.lh-rep-tbl thead th{background:#ece6d6;font-weight:800;font-size:11.5px}
.lh-rep-tbl tbody td:first-child{text-align:right;font-weight:700}
.lh-rep-tbl tbody tr:nth-child(odd) td{background:#f4f1ea}
.lh-rep-tbl tbody tr.lh-first td{background:#ffe2bf}
.lh-rep-tbl tbody tr.lh-first em{display:inline-block;font-style:normal;background:#b3122e;color:#fff;border-radius:6px;padding:0 5px;font-size:10.5px;margin-top:2px}
.lh-rep-tbl tfoot th{background:#6f8f3a;color:#fff;font-weight:800}
.lh-rep-tbl tfoot th:last-child{background:#ffb35c;color:#000;font-size:14px}
.lh-rep-cost tfoot th:nth-child(2){background:#ffb35c;color:#000;font-size:14px}
.lh-rep-tbl#eo_rep_mat th:first-child,.lh-rep-tbl#eo_rep_mat td:first-child{width:26%}
.lh-rep-be{display:flex;justify-content:space-between;align-items:center;background:#f4f1ea;border-radius:12px;padding:10px 12px;margin-bottom:10px;font-weight:700}
.lh-rep-be b{font-size:18px}
.lh-rep-sec .grid{gap:8px;margin-bottom:8px;align-items:end}
.lh-rep-sec label{font-size:13px}
.lh-rep-out{background:#ff7a00;border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:3px;min-height:62px;justify-content:center}
.lh-rep-out span{font-size:12.5px;font-weight:800;color:#1a1a1a}
.lh-rep-out b{font-size:20px;color:#141414}
.lh-rep-out.gain{background:#6f8f3a}.lh-rep-out.gain span,.lh-rep-out.gain b{color:#fff}
.lh-rep-out.loss{background:#b3122e}.lh-rep-out.loss span,.lh-rep-out.loss b{color:#fff}
.lh-rep-pl{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.lh-rep-pl[hidden]{display:none}
.lh-rep-pl>div{border:1px solid #6f8f3a;border-radius:12px;padding:8px 10px;display:flex;flex-direction:column;gap:2px;background:#f1f5ea}
.lh-rep-pl span{font-size:12.5px;font-weight:700;color:#4b5e2c}.lh-rep-pl b{font-size:17px}
.lh-rep-pl.loss>div{border-color:#b3122e;background:#fbeaec}.lh-rep-pl.loss span,.lh-rep-pl.loss b{color:#b3122e}
.lh-rep-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.lh-rep-actions .btn{margin:0!important;width:100%}
@media (max-width:420px){.lh-rep-tbl{font-size:11.5px}.lh-rep-tbl thead th{font-size:10.5px}}
@media print{
  body.lh-print-rep #eo-net .lh-cpane:not(#eo-p4),body.lh-print-rep #eo_rep_lock{display:none!important}
  body.lh-print-rep .lh-rep-sec{break-inside:avoid}
}

.lh-rep .lh-rep-tbl th,.lh-rep .lh-rep-tbl td{border:1px solid #000!important}
.lh-rep .lh-rep-tbl tbody td:not(:first-child){white-space:nowrap;direction:ltr;font-variant-numeric:tabular-nums;padding:6px 2px!important;font-size:11.5px}
.lh-rep .lh-rep-tbl#eo_rep_mat th:first-child,.lh-rep .lh-rep-tbl#eo_rep_mat td:first-child{width:22%}
.lh-rep .lh-rep-tbl#eo_rep_mat th:nth-child(2),.lh-rep .lh-rep-tbl#eo_rep_mat td:nth-child(2){width:14%}
/* report as the 4th tab */
html body #eo-net .lh-ctabs{display:grid!important;grid-template-columns:1fr 1fr;gap:6px}
html body #eo-net .lh-ctabs .lh-ctab{font-size:14.5px;min-height:44px;padding:9px 6px}
.lh-rep{position:static;inset:auto;background:none;padding:0;overflow:visible;z-index:auto}
.lh-rep-in{max-width:none;background:transparent;box-shadow:none;padding:0;border-radius:0}
.lh-rep-lock{text-align:center;padding:18px 6px 6px}
.lh-rep-lock[hidden]{display:none}
.lh-rep-lock-ic{width:58px;height:58px;margin:0 auto 10px;border-radius:50%;background:#ece6d6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f4a1f' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/26px no-repeat}
.lh-rep-lock h3{margin:0 0 14px;font-size:17px;color:#2f4a1f;line-height:1.6}
.lh-rep-lock .lh-rep-need{text-align:right;padding:10px 12px;border:1px dashed #c9a227;background:#fff8e1;border-radius:12px;color:#5a4a10;font-size:13.5px;line-height:1.7}
.lh-rep-lock .lh-rep-need ul{margin:4px 0 0;padding-inline-start:18px}
.lh-rep-actions{grid-template-columns:1fr}
html body #eo-net .lh-rep-tbl tbody td{color:#141414!important;background:#fff!important}
html body #eo-net .lh-rep-tbl tbody tr:nth-child(odd) td{background:#f4f1ea!important}
html body #eo-net .lh-rep-tbl tbody tr.lh-first td{background:#ffe2bf!important}
html body #eo-net .lh-rep-tbl tbody tr.lh-first em{color:#fff!important}
html body.day-mode #eo-net table.lh-rep-tbl tbody tr:nth-child(n) td{color:#141414!important}
html body.day-mode #eo-net table.lh-rep-tbl tbody tr:nth-child(n){color:#141414!important;background:none!important}
html body.day-mode #eo-net table.lh-rep-tbl tbody tr.lh-first em{color:#fff!important}

/* EO steps 1-4 */
html body #eo-net .lh-ctab{display:flex;align-items:center;justify-content:center;gap:7px}
html body #eo-net .lh-ctab .lh-step{flex:none;width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:800;line-height:1;background:#e3dccb;color:#2f4a1f}
html body #eo-net .lh-ctab.on .lh-step{background:#ff7a00;color:#141414}
html body #eo-net .lh-ctab.lh-step-done .lh-step{background:#6f8f3a;color:#fff}
html body #eo-net .lh-ctab.lh-step-done.on .lh-step{background:#ff7a00;color:#141414}
html body #eo-net .lh-ctab.lh-step-locked{opacity:.45;cursor:not-allowed}
html body #eo-net .lh-ctab.lh-step-locked .lh-step{background:#cfc8b6;color:#6b6555}
.lh-step-hint{margin:-8px 0 14px;padding:10px 12px;border:1px dashed #c9a227;background:#fff8e1;border-radius:12px;color:#5a4a10;font-size:13.5px;line-height:1.7}
.lh-step-hint[hidden]{display:none}
.lh-step-hint ul{margin:4px 0 0;padding-inline-start:18px}
html body #eo-net .lh-ctabs .lh-ctab{justify-content:flex-start!important;text-align:right;padding:8px 12px!important;min-height:58px;gap:9px;line-height:1.35}
html body #eo-net .lh-ctabs .lh-ctab .lh-step{width:24px;height:24px}
.lh-rep-price{margin-bottom:12px}
.lh-rep .lh-rep-lbl{display:block;margin:0 0 6px;font-size:13.5px;font-weight:700;color:#4b5e2c}
.lh-rep-in2{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;margin-bottom:10px}
.lh-rep-in2 input{margin:0!important}
.lh-rep-mode{display:flex;background:#ece6d6;border-radius:12px;padding:4px;gap:4px}
.lh-rep-m{border:0;background:transparent;border-radius:9px;min-width:52px;height:42px;font-family:inherit;font-size:16px;font-weight:800;color:#6b6555;cursor:pointer}
.lh-rep-m.on{background:#2f4a1f;color:#fff;box-shadow:0 2px 6px rgba(0,0,0,.18)}
#eo_rep_pBox{margin-bottom:8px}

html body #eo-net .lh-cur-row{display:flex;justify-content:flex-end;align-items:center;gap:6px;margin:0 0 8px}

html body #eo-net .lh-cur-lbl{font-size:12.5px;font-weight:700;color:#7a735f}
.lh-cur{position:relative}
.lh-cur-btn{display:flex;align-items:center;gap:6px;height:34px;padding:0 9px;border:1px solid #cfc6ad;border-radius:10px;background:#fff;cursor:pointer;font-family:inherit;color:#2f4a1f}
.lh-cur-btn b,.lh-cur-list b{font-size:13.5px;font-weight:800}
.lh-cur-btn i{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid #2f4a1f;margin-inline-start:2px}
.lh-flag{width:22px;height:15px;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.12);object-fit:cover;flex:none}
.lh-cur-list{position:absolute;top:38px;inset-inline-end:0;z-index:50;list-style:none;margin:0;padding:4px;background:#fff;border:1px solid #cfc6ad;border-radius:12px;box-shadow:0 8px 22px rgba(0,0,0,.16);min-width:104px}
.lh-cur-list[hidden]{display:none}
.lh-cur-list li{display:flex;align-items:center;gap:8px;padding:7px 9px;border-radius:8px;cursor:pointer;color:#2f4a1f}
.lh-cur-list li:hover{background:#f4f1ea}
.lh-cur-list li.on{background:#2f4a1f;color:#fff}
.lh-cur-btn{height:28px;padding:0 6px;gap:4px;border-radius:8px}
.lh-cur-btn .lh-flag{width:18px;height:12px}
.lh-cur-btn b{font-size:12px}
.lh-cur-btn i{border-left-width:3px;border-right-width:3px;border-top-width:4px}
html body #eo-net .lh-cur-lbl{font-size:11.5px}
.lh-cur-list{top:32px}
html body #eo-net .out.lh-jk-out .box.lh-grand .title::before{background:rgba(255,255,255,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5.5' rx='7' ry='2.8'/%3E%3Cpath d='M5 5.5v4.3c0 1.6 3.1 2.8 7 2.8s7-1.2 7-2.8V5.5'/%3E%3Cpath d='M5 9.8v4.3c0 1.6 3.1 2.8 7 2.8s7-1.2 7-2.8V9.8'/%3E%3Cpath d='M5 14.1v4.3c0 1.6 3.1 2.8 7 2.8s7-1.2 7-2.8v-4.3'/%3E%3C/svg%3E") center/16px no-repeat}
/* one table style for every calculator: black text on all rows (the old red even rows are gone) */
html body.day-mode :is(#design,#johnkarl,#ifra,#eo-net,#ratios,#oils,#alcohol,#stubborn) tbody tr:nth-child(even),
html body.day-mode :is(#design,#johnkarl,#ifra,#eo-net,#ratios,#oils,#alcohol,#stubborn) tbody tr:nth-child(even) :is(td,input,textarea){color:#141414!important}
/* leave-calculator notice */
body.lh-leave-open{overflow:hidden}
.lh-leave{position:fixed;inset:0;z-index:9500;background:rgba(20,24,14,.55);display:flex;align-items:center;justify-content:center;padding:18px}
.lh-leave[hidden]{display:none}
.lh-leave-in{background:#fbf8f1;border-radius:20px;max-width:420px;width:100%;padding:22px 18px 16px;text-align:center;box-shadow:0 14px 40px rgba(0,0,0,.3)}
.lh-leave-ic{width:56px;height:56px;margin:0 auto 10px;border-radius:50%;background:#ece6d6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f4a1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpath d='M17 21v-8H7v8M7 3v5h8'/%3E%3C/svg%3E") center/26px no-repeat}
.lh-leave-in h3{margin:0 0 8px;font-size:18px;color:#2f4a1f}
.lh-leave-in p{margin:0 0 16px;font-size:14px;line-height:1.7;color:#5b5646}
.lh-leave-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.lh-leave-btns .btn{margin:0!important;width:100%}
.lh-leave-btns .btn[data-a="leave"]{grid-column:1/-1}
.lh-leave-x{grid-column:1/-1;border:0;background:none;color:#7a735f;font-family:inherit;font-size:14px;font-weight:700;padding:8px;cursor:pointer}

html body #calculators .ic-drop{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8842f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c3.5 4.2 6 7.4 6 10.5A6 6 0 0 1 6 13.5C6 10.4 8.5 7.2 12 3z'/%3E%3Cpath d='M9.5 14.5a2.6 2.6 0 0 0 2.5 2.5'/%3E%3C/svg%3E")}
html body #calculators .ic-flask{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8842f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6L5 18a2 2 0 0 0 1.8 3h10.4A2 2 0 0 0 19 18l-5-9V3'/%3E%3Cpath d='M7.5 14h9'/%3E%3C/svg%3E")}
html body #calculators .ic-beaker{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8842f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h14M6 3v15a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V3'/%3E%3Cpath d='M6 11h12'/%3E%3C/svg%3E")}
html body #calculators .ic-pen{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8842f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l4-1 11-11-3-3L5 16z'/%3E%3Cpath d='M14 6l3 3'/%3E%3C/svg%3E")}
html body #calculators .ic-layers{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8842f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5z'/%3E%3Cpath d='M3 13l9 5 9-5'/%3E%3C/svg%3E")}
html body #calculators .ic-pie{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8842f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9h-9z'/%3E%3Cpath d='M15 3.5A9 9 0 0 1 20.5 9H15z'/%3E%3C/svg%3E")}
html body #calculators .ic-shield{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8842f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8-8 9-4.6-1-8-4.5-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E")}
html body #calculators .ic-coins{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8842f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5.5' rx='7' ry='2.8'/%3E%3Cpath d='M5 5.5v4.3c0 1.6 3.1 2.8 7 2.8s7-1.2 7-2.8V5.5'/%3E%3Cpath d='M5 9.8v4.3c0 1.6 3.1 2.8 7 2.8s7-1.2 7-2.8V9.8'/%3E%3Cpath d='M5 14.1v4.3c0 1.6 3.1 2.8 7 2.8s7-1.2 7-2.8v-4.3'/%3E%3C/svg%3E")}

/* ===== calculators home: the workflow thread =====
   The four groups are the order a perfumer works in, so they hang on one gold thread
   (1 -> 4). Each group is one panel; its calculators are rows inside it. */
html body #calculators{--gold:#b08d3c;--gold-l:#efe6cf;--ink:#1e2a14;--olive:#2f4a1f;--mut:#7d7663}
html body #calculators > h2{margin:4px 0 14px;font-size:22px;color:var(--olive)}
html body #calculators .lh-saved-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;background:transparent;border:0;border-bottom:1px solid var(--gold-l);border-radius:0;padding:0 0 12px;margin:0 0 22px}
html body #calculators .lh-saved-t{font-size:14px;font-weight:700;color:var(--mut)}
html body #calculators .lh-saved-btns{display:flex;gap:6px}
html body #calculators .lh-saved-btns .btn{margin:0!important;min-width:0;padding:0 16px!important;font-size:13.5px!important;min-height:0!important;height:34px;display:inline-flex;align-items:center;border-radius:999px!important}
html body #calculators .lh-cgroup{position:relative;margin:0;padding:0 34px 22px 0}
html body #calculators .lh-cgroup::before{content:"";position:absolute;right:13px;top:28px;bottom:0;width:1.5px;background:linear-gradient(var(--gold),var(--gold-l))}
html body #calculators .lh-cgroup:last-of-type::before{display:none}
html body #calculators .lh-cg-h{position:relative;display:flex;align-items:center;gap:0;margin:0 0 10px;min-height:28px;font-size:16.5px;font-weight:800;color:var(--olive)}
html body #calculators .lh-cg-h .lh-step{position:absolute;right:-34px;top:0;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fffdf8;border:1.5px solid var(--gold);color:var(--gold);font-size:13.5px;font-weight:800}
html body #calculators .lh-ct-grid,html body #calculators .lh-cg-single .lh-ct-grid{display:block;background:#fffdf8;border:1px solid #e8dfc8;border-radius:18px;overflow:hidden;box-shadow:0 1px 0 rgba(176,141,60,.18)}
html body #calculators a.btn.lh-ct,html body #calculators .lh-cg-single a.btn.lh-ct{display:grid!important;grid-template-columns:42px 1fr 14px;grid-template-rows:auto auto;column-gap:12px;row-gap:2px;align-items:center;text-align:right;margin:0!important;padding:14px 14px!important;min-height:0!important;height:auto!important;background:transparent!important;color:var(--ink)!important;border:0!important;border-radius:0!important;box-shadow:none!important;white-space:normal!important;width:100%!important;transform:none!important;text-decoration:none;flex-wrap:nowrap}
html body #calculators a.btn.lh-ct + a.btn.lh-ct{border-top:1px solid #efe8d6!important}
html body #calculators a.btn.lh-ct .lh-ct-ic{grid-row:1/3;grid-column:1;width:42px;height:42px;border-radius:50%;background-color:#f6f0e0;background-size:21px;box-shadow:inset 0 0 0 1px var(--gold-l)}
html body #calculators a.btn.lh-ct b,html body #calculators .lh-cg-single a.btn.lh-ct b{grid-column:2;grid-row:1;font-size:15px;line-height:1.4;font-weight:800;color:var(--ink)}
html body #calculators a.btn.lh-ct small,html body #calculators .lh-cg-single a.btn.lh-ct small{grid-column:2;grid-row:2;flex-basis:auto;padding:0!important;margin:0!important;font-size:12.5px;line-height:1.5;font-weight:500;color:var(--mut)}
html body #calculators a.btn.lh-ct::after{content:"";grid-column:3;grid-row:1/3;width:8px;height:8px;border-left:2px solid #c9b88f;border-bottom:2px solid #c9b88f;transform:rotate(45deg);justify-self:center}
html body #calculators a.btn.lh-ct:hover{background:#faf5e8!important}
html body #calculators a.btn.lh-ct:focus-visible{outline:2px solid var(--olive);outline-offset:-2px}
html body #calculators a.btn.lh-ct:active{background:#f4ecd8!important}
body:not(.day-mode) #calculators .lh-ct-grid{background:rgba(255,255,255,.04)!important;border-color:rgba(176,141,60,.3)!important}
body:not(.day-mode) #calculators a.btn.lh-ct b{color:#efe8d3!important}
body:not(.day-mode) #calculators a.btn.lh-ct small{color:#b9b29c!important}
body:not(.day-mode) #calculators .lh-cg-h{color:#e6dcb9}
body:not(.day-mode) #calculators .lh-cg-h .lh-step{background:transparent}
body:not(.day-mode) #calculators a.btn.lh-ct .lh-ct-ic{background-color:rgba(176,141,60,.14)}
body:not(.day-mode) #calculators a.btn.lh-ct + a.btn.lh-ct{border-top-color:rgba(255,255,255,.08)!important}
@media (prefers-reduced-motion:no-preference){html body #calculators a.btn.lh-ct{transition:background .15s}}

html body #calculators a.btn.lh-ct .lh-ct-ic{background-repeat:no-repeat!important;background-position:center!important;background-size:21px!important}
/* calculators home: the four stages as buttons, the chosen stage's calculators below */
html body #calculators .lh-cat-tabs{display:grid!important;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 14px}
html body #calculators .lh-cat-tabs .lh-ctab{display:flex;align-items:center;justify-content:flex-start;gap:9px;text-align:right;padding:8px 12px!important;min-height:54px;font-size:14.5px;line-height:1.35}
html body #calculators .lh-cat-tabs .lh-step{flex:none;width:24px;height:24px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:800;background:#fffdf8;border:1.5px solid var(--gold);color:var(--gold)}
html body #calculators .lh-cat-tabs .lh-ctab.on .lh-step{background:var(--gold);border-color:var(--gold);color:#fff}
html body #calculators .lh-cgroup.lh-cpane{padding:0}
html body #calculators .lh-cgroup.lh-cpane::before,html body #calculators .lh-cgroup.lh-cpane > .lh-cg-h{display:none}
html body #calculators .lh-cgroup.lh-cpane[hidden]{display:none}
html body #calculators a.btn.lh-ct::after{content:none!important;display:none!important}
html body #calculators a.btn.lh-ct,html body #calculators .lh-cg-single a.btn.lh-ct{grid-template-columns:42px 1fr!important}
/* stage buttons: no numbers, each button its own box */
html body #calculators .lh-cat-tabs{background:transparent!important;border:0!important;padding:0!important;gap:8px}
html body #calculators .lh-cat-tabs .lh-ctab{justify-content:center;text-align:center;background:#f3ecdb!important;border:1px solid #e3d7b8!important;color:#5c5540!important;border-radius:14px!important;min-height:52px;font-weight:800;box-shadow:none}
html body #calculators .lh-cat-tabs .lh-ctab:not(.on):hover{background:#ece2c9!important}
html body #calculators .lh-cat-tabs .lh-ctab.on{background:#2f4a1f!important;border-color:#2f4a1f!important;color:#fff!important;box-shadow:0 3px 10px rgba(47,74,31,.25)}
body:not(.day-mode) #calculators .lh-cat-tabs .lh-ctab{background:rgba(176,141,60,.12)!important;border-color:rgba(176,141,60,.3)!important;color:#e6dcb9!important}
body:not(.day-mode) #calculators .lh-cat-tabs .lh-ctab.on{background:#b08d3c!important;color:#1e2a14!important}

/* ===== videos: rows in one panel, like the calculators page ===== */
html body #videos > p.hint{display:none}
html body #videos{--gold:#b08d3c;--gold-l:#efe6cf;--ink:#1e2a14;--olive:#2f4a1f;--mut:#7d7663}
html body #videos .lh-breadcrumb,html body #videos-list > div:first-child:not(.fade-in){margin-bottom:12px}
/* folders */
html body #videos .folder-grid{display:block!important;background:#fffdf8;border:1px solid #e8dfc8;border-radius:18px;overflow:hidden;margin:0 0 16px;padding:0}
html body #videos .folder-card{position:relative;display:grid!important;grid-template-columns:42px 1fr;column-gap:12px;row-gap:2px;align-items:center;text-align:right;margin:0!important;padding:14px!important;min-height:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;cursor:pointer}
html body #videos .folder-card + .folder-card{border-top:1px solid #efe8d6!important}
html body #videos .folder-card:hover{background:#faf5e8!important}
html body #videos .folder-card:focus-visible{outline:2px solid var(--olive);outline-offset:-2px}
html body #videos .folder-card-icon{grid-column:1;grid-row:1/4;width:42px!important;height:42px!important;margin:0!important;border-radius:50%;background:#f6f0e0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8842f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.7-.9l-.8-1.2A2 2 0 0 0 7.9 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2z'/%3E%3C/svg%3E") center/20px no-repeat;box-shadow:inset 0 0 0 1px var(--gold-l);align-self:start;position:relative;z-index:1}
html body #videos .folder-card-icon svg{display:none}
html body #videos .folder-card-name{grid-column:2;margin:0!important;font-size:15px!important;font-weight:800;color:var(--ink);text-align:right}
html body #videos .folder-card-meta,html body #videos .lh-sub-exp{grid-column:2;margin:0!important;font-size:12.5px;color:var(--mut);text-align:right}
html body #videos .folder-card.lh-locked{cursor:default}
html body #videos .folder-card.lh-locked:hover{background:transparent!important}
html body #videos .folder-card.lh-locked .folder-card-icon{background-color:#f1efe8;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f8a78' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");box-shadow:inset 0 0 0 1px #e2dfd3}
html body #videos .folder-card.lh-locked .folder-card-name{color:#6f6a59}
html body #videos .folder-card .lh-lock{grid-column:2;display:block!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
html body #videos .folder-card .lh-lock-ic,html body #videos .folder-card .lh-lock-title{display:none}
html body #videos .folder-card .lh-lock > div{display:flex;flex-wrap:wrap;gap:2px 10px;align-items:baseline}
html body #videos .folder-card .lh-lock-when{margin:0;font-size:12.5px;color:#8a6d1f}
html body #videos .folder-card .lh-lock-count{margin:0;font-size:12.5px;font-weight:700;color:var(--olive)}
/* inside a course: the parts are in order, one line links them */
html body #videos .lh-v-in .folder-card::before{content:"";position:absolute;right:34px;top:0;bottom:0;width:1.5px;background:var(--gold-l);z-index:0}
html body #videos .lh-v-in .folder-card:first-child::before{top:50%}
html body #videos .lh-v-in .folder-card:last-child::before{bottom:50%}
html body #videos .lh-v-in .folder-card:only-child::before{display:none}
/* videos */
html body #videos .videos-grid{display:block!important;background:#fffdf8;border:1px solid #e8dfc8;border-radius:18px;overflow:hidden;margin:0 0 16px;padding:0}
html body #videos .video-card{display:grid!important;grid-template-columns:108px 1fr;column-gap:12px;row-gap:4px;align-items:center;margin:0!important;padding:12px 14px!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important}
html body #videos .video-card + .video-card{border-top:1px solid #efe8d6!important}
html body #videos .video-card:hover{background:#faf5e8!important}
html body #videos .video-card > div:first-child:not(.lh-lock){grid-column:1;grid-row:1/4;width:108px;margin:0!important;border-radius:10px!important;align-self:start;background:#1f2b16!important}
html body #videos .video-card .video-card-play{width:32px!important;height:32px!important;box-shadow:none!important;background:var(--gold)!important;color:#fff!important}
html body #videos .video-card .video-card-play svg{width:15px;height:15px}
html body #videos .video-card > div:first-child > div[aria-hidden="true"]:not(.video-card-play){background:rgba(0,0,0,.15)!important}
html body #videos .video-card h3{grid-column:2;margin:0!important;font-size:14.5px!important;font-weight:800;color:var(--ink)}
html body #videos .video-card > p{grid-column:2;font-size:12.5px!important}
html body #videos .video-card .lh-prog{grid-column:2;margin:0!important}
html body #videos .video-card .lh-prog-bar{height:4px!important}
html body #videos .video-card .lh-prog-lbl{font-size:12px!important;margin-top:3px!important}
html body #videos .video-card.lh-locked{grid-template-columns:42px 1fr;cursor:default}
html body #videos .video-card.lh-locked:hover{background:transparent!important}
html body #videos .video-card.lh-locked > .lh-lock{grid-column:1/-1;display:grid!important;grid-template-columns:42px 1fr;gap:0 12px;margin:0!important;padding:0!important;border:0!important;background:none!important}
html body #videos .video-card.lh-locked .lh-lock-ic{width:42px;height:42px;flex:none;background:#f1efe8;border-color:#e2dfd3}
html body #videos .video-card.lh-locked .lh-lock-title{font-size:14.5px;font-weight:800;color:#6f6a59!important}
html body #videos .video-card.lh-locked .lh-lock-when{font-size:12.5px;color:#8a6d1f}
/* courses open for joining */
html body #videos .lh-offers{background:linear-gradient(#fffdf8,#fbf5e6);border:1px solid #d9c38d;border-radius:18px;padding:14px;margin:0 0 16px}
html body #videos .lh-offers-title{margin:0 0 10px;font-size:15px;color:#8a6d1f}
html body #videos .lh-offer{display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;background:none;padding:0;margin:0}
html body #videos .lh-offer + .lh-offer{border-top:1px solid #efe3c4;padding-top:12px;margin-top:12px}
html body #videos .lh-offer-name{font-size:15px;font-weight:800;color:var(--ink)}
html body #videos .lh-offer .lh-muted{font-size:12.5px}
html body #videos .lh-offer .btn{margin:0!important;flex:none;height:38px;min-height:0!important;padding:0 16px!important;font-size:14px!important;border-radius:999px!important}
html body #videos .lh-offer-state{font-size:12.5px;font-weight:700;color:#8a6d1f}
body:not(.day-mode) #videos .folder-grid,body:not(.day-mode) #videos .videos-grid,body:not(.day-mode) #videos .lh-offers{background:rgba(255,255,255,.04)!important;border-color:rgba(176,141,60,.3)!important}
body:not(.day-mode) #videos .folder-card-name,body:not(.day-mode) #videos .video-card h3,body:not(.day-mode) #videos .lh-offer-name{color:#efe8d3!important}
body:not(.day-mode) #videos .folder-card + .folder-card,body:not(.day-mode) #videos .video-card + .video-card{border-top-color:rgba(255,255,255,.08)!important}
body:not(.day-mode) #videos .folder-card:hover,body:not(.day-mode) #videos .video-card:hover{background:rgba(255,255,255,.04)!important}
/* «شرح الحاسبة» button under each calculator title */
.lh-help-btn{display:inline-flex;align-items:center;gap:7px;margin:-4px 0 14px;height:32px;padding:0 12px 0 14px;border-radius:999px;border:1px solid #d9c38d;background:#fffdf8;color:#8a6d1f;font-family:inherit;font-size:13px;font-weight:800;cursor:pointer}
.lh-help-btn span{width:18px;height:18px;border-radius:50%;background:#b08d3c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6v12l10-6z' fill='%23fff'/%3E%3C/svg%3E") center/11px no-repeat}
.lh-help-btn:hover{background:#faf2de}
body:not(.day-mode) .lh-help-btn{background:transparent;color:#e0c57f;border-color:rgba(176,141,60,.45)}
.lh-help-btn{white-space:nowrap;margin:0 0 14px}
html body #videos .folder-card-sub{grid-column:2;font-size:12px;font-weight:700;color:#8a6d1f;line-height:1.4;margin:0}

/* ===== downloads: same rows as the courses page ===== */
html body #downloads > p.hint{display:none}
html body #downloads{--gold:#b08d3c;--gold-l:#efe6cf;--ink:#1e2a14;--olive:#2f4a1f;--mut:#7d7663}
html body #downloads .folder-grid{display:block!important;background:#fffdf8;border:1px solid #e8dfc8;border-radius:18px;overflow:hidden;margin:0 0 16px;padding:0}
html body #downloads .folder-card{display:grid!important;grid-template-columns:42px 1fr;column-gap:12px;row-gap:2px;align-items:center;text-align:right;margin:0!important;padding:14px!important;min-height:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;cursor:pointer}
html body #downloads .folder-card + .folder-card{border-top:1px solid #efe8d6!important}
html body #downloads .folder-card:hover{background:#faf5e8!important}
html body #downloads .folder-card-icon{grid-column:1;grid-row:1/4;width:42px!important;height:42px!important;margin:0!important;border-radius:50%;background:#f6f0e0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8842f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.7-.9l-.8-1.2A2 2 0 0 0 7.9 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2z'/%3E%3C/svg%3E") center/20px no-repeat;box-shadow:inset 0 0 0 1px var(--gold-l);align-self:start}
html body #downloads .folder-card-icon svg{display:none}
html body #downloads .folder-card-name{grid-column:2;margin:0!important;font-size:15px!important;font-weight:800;color:var(--ink);text-align:right}
html body #downloads .folder-card-meta,html body #downloads .lh-sub-exp{grid-column:2;margin:0!important;font-size:12.5px;color:var(--mut);text-align:right}
html body #downloads .folder-card.lh-locked{cursor:default}
html body #downloads .folder-card.lh-locked .folder-card-icon{background-color:#f1efe8;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f8a78' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E")}
html body #downloads .folder-card .lh-lock{grid-column:2;display:block!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
html body #downloads .folder-card .lh-lock-ic,html body #downloads .folder-card .lh-lock-title{display:none}
html body #downloads .folder-card .lh-lock-when{font-size:12.5px;color:#8a6d1f}
html body #downloads .folder-card .lh-lock-count{font-size:12.5px;font-weight:700;color:var(--olive)}
/* files: consecutive rows form one panel */
html body #downloads .downloads-item{display:grid!important;grid-template-columns:42px 1fr auto;column-gap:12px;align-items:center;margin:0!important;padding:13px 14px!important;background:#fffdf8!important;border:1px solid #e8dfc8!important;border-top-width:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important}
html body #downloads .downloads-item::before{content:"";grid-column:1;width:42px;height:42px;border-radius:12px;background:#f6f0e0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8842f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M8.5 13h7M8.5 16.5h5'/%3E%3C/svg%3E") center/21px no-repeat;box-shadow:inset 0 0 0 1px var(--gold-l)}
html body #downloads .downloads-item[data-kind="excel"]::before{background-color:#eef3e6;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f7a2a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 12l5 5M14 12l-5 5'/%3E%3C/svg%3E");box-shadow:inset 0 0 0 1px #dbe6cb}
html body #downloads :not(.downloads-item) + .downloads-item,html body #downloads .downloads-item:first-child{border-top-width:1px!important;border-radius:18px 18px 0 0!important}
html body #downloads .downloads-item:last-child{border-radius:0 0 18px 18px!important}
html body #downloads :not(.downloads-item) + .downloads-item:last-child,html body #downloads .downloads-item:only-child{border-radius:18px!important}
html body #downloads .downloads-item + .downloads-item{border-top:1px solid #efe8d6!important}
html body #downloads .downloads-item > div:first-of-type{min-width:0!important;grid-column:2}
html body #downloads .downloads-item h3{margin:0!important;font-size:14.5px!important;line-height:1.45;font-weight:800;color:var(--ink)}
html body #downloads .downloads-item p{font-size:12.5px!important;margin-top:2px!important}
html body #downloads .downloads-item .btn{grid-column:3;margin:0!important;height:36px;min-height:0!important;padding:0 14px 0 12px!important;font-size:13.5px!important;border-radius:999px!important;display:inline-flex;align-items:center;gap:6px;width:auto!important}
html body #downloads .downloads-item .btn::before{content:"";width:15px;height:15px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center/contain no-repeat}
html body #downloads .downloads-item .lh-prog{grid-column:2/4;margin-top:6px!important}
html body #downloads .downloads-item.lh-locked{grid-template-columns:1fr}
html body #downloads .downloads-item.lh-locked::before{display:none}
html body #downloads .downloads-item.lh-locked .lh-lock{margin:0!important;padding:0!important;border:0!important;background:none!important}
html body #downloads .downloads-item.lh-locked .lh-lock-ic{width:42px;height:42px;background:#f1efe8;border-color:#e2dfd3}
html body #downloads .downloads-item.lh-locked .lh-lock-title{font-size:14.5px;font-weight:800;color:#6f6a59!important}
html body #downloads .downloads-item.lh-locked .lh-lock-when{font-size:12.5px;color:#8a6d1f}
body:not(.day-mode) #downloads .folder-grid,body:not(.day-mode) #downloads .downloads-item{background:rgba(255,255,255,.04)!important;border-color:rgba(176,141,60,.3)!important}
body:not(.day-mode) #downloads .folder-card-name,body:not(.day-mode) #downloads .downloads-item h3{color:#efe8d3!important}
/* preview button + viewer */
html body #downloads .downloads-item{grid-template-columns:42px 1fr auto auto}
html body #downloads .downloads-item .btn{grid-column:auto}
html body #downloads .downloads-item .btn.lh-pv-btn{background:#fffdf8!important;color:#2f4a1f!important;border:1px solid #cfc6ad!important}
html body #downloads .downloads-item .btn.lh-pv-btn::before{content:none}
html body #downloads .downloads-item .lh-prog{grid-column:2/5}
@media (max-width:480px){
  html body #downloads .downloads-item{grid-template-columns:42px 1fr auto;row-gap:10px}
  html body #downloads .downloads-item > div:first-of-type{grid-column:2/4}
  html body #downloads .downloads-item .btn.lh-pv-btn{grid-column:2;justify-self:end}
  html body #downloads .downloads-item .btn:not(.lh-pv-btn){grid-column:3}
}
body.lh-pv-open{overflow:hidden}
.lh-pv{position:fixed;inset:0;z-index:9600;background:rgba(20,24,14,.6);display:flex;align-items:center;justify-content:center;padding:12px}
.lh-pv[hidden]{display:none}
.lh-pv-in{background:#fbf8f1;border-radius:18px;width:100%;max-width:860px;max-height:100%;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 14px 40px rgba(0,0,0,.35)}
.lh-pv-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:12px 14px;border-bottom:1px solid #e8dfc8}
.lh-pv-head b{display:block;font-size:15px;color:#1e2a14}
.lh-pv-head small{display:block;font-size:12.5px;color:#8a6d1f;margin-top:2px}
.lh-pv-x{border:0;background:#ece6d6;width:34px;height:34px;border-radius:50%;cursor:pointer;color:#2f4a1f;flex:none;font-size:15px}
.lh-pv-body{overflow:auto;padding:12px;background:#e9e4d6;flex:1;-webkit-user-select:none;user-select:none;text-align:center}
.lh-pv-page{display:block;margin:0 auto 10px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.15);max-width:100%;height:auto}
.lh-pv-wait,.lh-pv-more{padding:24px 10px;color:#5b5646;font-size:14px}
.lh-pv-more{padding:6px 10px 14px;color:#8a6d1f;font-weight:700}
.lh-pv-tw{overflow:auto;background:#fff;border-radius:10px;text-align:start}
.lh-pv-tbl{border-collapse:collapse;font-size:12.5px;min-width:100%}
.lh-pv-tbl th,.lh-pv-tbl td{border:1px solid #d9d2bf;padding:5px 8px;white-space:nowrap}
.lh-pv-tbl th{background:#ece6d6;font-weight:800}
.lh-pv-foot{padding:10px 14px;border-top:1px solid #e8dfc8;display:flex;justify-content:center}
.lh-pv-foot .btn{margin:0!important;border-radius:999px!important;padding:0 22px!important;height:42px;min-height:0!important}
/* ===== home page ===== */
html body #home > h2{margin:2px 0 16px!important;font-size:22px;text-align:right}
html body #home > p:not(.lh-last-login){display:none!important}
html body #home .grid.grid-4{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
html body #home .home-card{margin:0!important;padding:0!important;border-radius:18px!important;background:#fffdf8!important;border:1px solid #e8dfc8!important;box-shadow:none!important;min-height:0!important}
html body #home .home-card > div{padding:16px 10px 14px!important}
html body #home .home-card .home-ico{width:54px!important;height:54px!important;margin:0 auto 4px!important}
html body #home .home-card .home-ico svg{width:24px!important;height:24px!important}
html body #home .home-card h3{margin:8px 0 4px!important;font-size:15.5px!important}
html body #home .home-card .card-hint{font-size:12px!important;line-height:1.5;margin:0!important}
html body #home .home-card:hover{border-color:#cdb67a!important}
body:not(.day-mode) #home .home-card{background:rgba(255,255,255,.04)!important;border-color:rgba(176,141,60,.3)!important}
/* continue watching */
.lh-continue{display:grid;grid-template-columns:64px 1fr;gap:12px;align-items:center;width:100%;text-align:right;margin:0 0 12px;padding:12px;border:1px solid #d9c38d;border-radius:18px;background:linear-gradient(#fffdf8,#fbf5e6);cursor:pointer;font-family:inherit;color:#1e2a14}
.lh-continue-play{width:64px;height:64px;border-radius:14px;background:#24331a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='%23b08d3c'/%3E%3Cpath d='M10 8.5v7l5.5-3.5z' fill='%23fff'/%3E%3C/svg%3E") center/38px no-repeat}
.lh-continue-tx{display:flex;flex-direction:column;gap:3px;min-width:0}
.lh-continue-tx small{font-size:12px;font-weight:800;color:#8a6d1f}
.lh-continue-tx b{font-size:15px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lh-continue-bar{display:block;height:4px;border-radius:4px;background:#e8dfc8;overflow:hidden;margin-top:2px}
.lh-continue-bar i{display:block;height:100%;background:#2f4a1f}
.lh-continue-tx em{font-style:normal;font-size:12px;color:#7d7663}
body:not(.day-mode) .lh-continue{background:rgba(176,141,60,.1);color:#efe8d3;border-color:rgba(176,141,60,.4)}
/* header: home + sign out on one line, sign out small */
html body header .wrap{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 8px}
html body header .brand{flex-basis:100%}
html body header nav,html body header .actions{margin:0!important;display:inline-flex!important;gap:8px}
html body header #logoutBtn{width:auto!important;min-width:0!important;height:auto!important;padding:9px 16px!important;font-size:14px!important;border-radius:999px!important;margin:0!important;border-color:#d9d0b8!important;color:#7d7663!important;background:transparent!important}
/* home v2: quieter greeting, slim continue row, small header buttons */
html body #home > h2{font-family:inherit!important;font-size:17px!important;font-weight:700!important;letter-spacing:0!important;margin:0 0 2px!important;color:#2f4a1f}
html body #home .lh-last-login{margin:0 0 14px!important;font-size:12px;color:#8a836f;text-align:right}
.lh-continue{grid-template-columns:34px 1fr auto;grid-template-rows:auto auto;gap:4px 10px;padding:9px 12px;border-radius:14px;margin:0 0 12px;background:#fffdf8;border-color:#e3d3a6}
.lh-continue-play{grid-row:1/3;width:34px;height:34px;border-radius:50%;background:#b08d3c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23fff'/%3E%3C/svg%3E") center/16px no-repeat;align-self:center}
.lh-continue-tx{flex-direction:row;align-items:baseline;gap:6px;grid-column:2}
.lh-continue-tx small{font-size:12px;flex:none}
.lh-continue-tx b{font-size:13.5px}
.lh-continue-pct{grid-column:3;font-style:normal;font-size:12px;font-weight:800;color:#2f4a1f}
.lh-continue-bar{grid-column:2/4;height:3px;margin:0}
html body header nav a,html body header #logoutBtn{padding:6px 14px!important;font-size:13px!important;min-height:0!important;line-height:1.4}
html body header #nav-home{border-radius:999px}
html body #home > p.lh-last-login{display:block!important}
/* «الجديد» banner: slim, picture-led */
.lh-news{margin:0 0 12px}
.lh-news-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.lh-news-track::-webkit-scrollbar{display:none}
.lh-news-card{position:relative;display:flex;align-items:flex-end;flex:0 0 100%;scroll-snap-align:start;box-sizing:border-box;aspect-ratio:3/1;min-height:96px;border-radius:14px;overflow:hidden;text-decoration:none;color:#fff;background:#24361a center/cover no-repeat;border:1px solid rgba(176,141,60,.55)}
.lh-news-card:not(.has-img){aspect-ratio:auto;min-height:0;background:linear-gradient(100deg,#1f3016,#355023);align-items:center}
.lh-news-tx{position:relative;z-index:1;width:100%;padding:10px 14px;display:flex;flex-direction:column;gap:1px}
.lh-news-card.has-img .lh-news-tx{background:linear-gradient(transparent,rgba(15,22,10,.78));padding-top:22px}
.lh-news-tx b{font-size:14.5px;font-weight:800;line-height:1.45;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.lh-news-tx span{font-size:12px;line-height:1.5;color:#efe6cc}
.lh-news-x{position:absolute;top:7px;inset-inline-end:7px;width:24px;height:24px;border-radius:50%;border:0;background:rgba(0,0,0,.35);color:#fff;font-size:11px;cursor:pointer;z-index:2;line-height:24px;padding:0}
.lh-news-dots{display:flex;justify-content:center;gap:5px;margin-top:6px}
.lh-news-dots[hidden]{display:none}
.lh-news-dots i{width:5px;height:5px;border-radius:50%;background:#d9cfb4}
.lh-news-dots i.on{width:14px;border-radius:3px;background:#b08d3c}
/* admin: banners */
.lh-news-prev{aspect-ratio:3/1;border-radius:12px;background:#ece6d6 center/cover no-repeat;margin:-4px 0 10px;border:1px solid #e3d7b8}
.lh-news-prev[hidden]{display:none}
.lh-news-dates{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.lh-news-row{display:grid;grid-template-columns:96px 1fr auto;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--border,#e8dfc8)}
.lh-news-thumb{aspect-ratio:3/1;border-radius:8px;background:#2f4a1f center/cover no-repeat;color:#e6dcb9;font-size:12px;display:flex;align-items:center;justify-content:center}
.lh-news-rtx b{display:block;font-size:14px}
.lh-news-rtx small{font-size:12px;color:var(--muted,#7d7663)}
.lh-news-act{display:flex;gap:6px}
.lh-news-act .btn{margin:0!important;padding:6px 12px!important;font-size:12.5px!important;min-height:0!important}
@media (max-width:480px){.lh-news-row{grid-template-columns:84px 1fr}.lh-news-act{grid-column:1/-1;justify-content:flex-end}}
#news-root,#news-root .lh-ntf-form{min-width:0;max-width:100%;box-sizing:border-box}
.lh-news-dates{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.lh-news-dates .sched-field,.lh-news-dates input{min-width:0;width:100%;box-sizing:border-box}
.lh-news-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.lh-news-pickrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.lh-news-pick{margin:0!important;padding:8px 16px!important;font-size:13.5px!important;min-height:0!important;cursor:pointer}
.lh-news-fname{font-size:12.5px}
/* banner form: one text box with a language switch, compact dates */
.lh-news-lang{position:relative;border:1px solid #d9d0b8;border-radius:14px;background:#fff;padding:40px 8px 8px}
.lh-news-sw{position:absolute;top:7px;inset-inline-end:8px;display:flex;background:#f1ebdb;border-radius:999px;padding:2px}
.lh-news-sw button{border:0;background:none;border-radius:999px;padding:3px 10px;font-family:inherit;font-size:12px;font-weight:800;color:#7d7663;cursor:pointer}
.lh-news-sw button.on{background:#2f4a1f;color:#fff}
.lh-news-pane{display:flex;flex-direction:column;gap:6px}
.lh-news-pane[hidden]{display:none}
.lh-news-pane input{margin:0!important;border-radius:10px!important;background:#fbf8f1!important}
.lh-news-dates{display:flex!important;gap:8px;flex-wrap:wrap}
.lh-news-dl{display:inline-flex;align-items:center;gap:6px;margin:0!important;font-size:12.5px;font-weight:700;color:#7d7663}
.lh-news-dl input{width:auto!important;height:34px!important;min-height:0!important;padding:0 8px!important;font-size:13px!important;border-radius:9px!important;margin:0!important}
html body #news-root .lh-news-dl input{width:148px!important;max-width:148px!important;min-width:0!important;flex:none}

/* ===== IFRA certificate service (js/ifra-service.js, js/ifra-admin.js) ===== */
body.lh-if-open{overflow:hidden}
.lh-if-wrap{position:fixed;inset:0;z-index:10050;background:rgba(18,23,14,.55);display:flex;align-items:flex-start;justify-content:center;padding:18px 12px;overflow:auto}
.lh-if-wrap[hidden]{display:none}
.lh-if-box{width:100%;max-width:820px;background:var(--bg);color:var(--text);border:1.5px solid var(--gold);border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.35);overflow:hidden;margin:auto 0}
.lh-if-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 18px 10px;background:var(--card);border-bottom:1px solid var(--border)}
.lh-if-ttl{display:flex;align-items:center;gap:10px}
.lh-if-ttl h2{margin:0;font-size:19px;color:var(--gold)}
.lh-if-k{font:700 12px/1 Georgia,serif;letter-spacing:2px;color:var(--card);background:var(--gold);padding:7px 9px;border-radius:8px}
.lh-if-x{background:none;border:0;color:var(--muted);cursor:pointer;padding:6px;border-radius:8px}
.lh-if-x:hover{background:var(--border)}
.lh-if-tabs{display:flex;gap:6px;padding:10px 18px 0;background:var(--card);border-bottom:1px solid var(--border)}
.lh-if-tab{font:inherit;font-size:14px;padding:9px 16px;border:0;border-bottom:2.5px solid transparent;background:none;color:var(--muted);cursor:pointer}
.lh-if-tab.on{color:var(--gold);border-bottom-color:var(--gold);font-weight:700}
.lh-if-body{padding:16px 18px 20px}
.lh-if-intro p{margin:0 0 10px;line-height:1.8}
.lh-if-fee{display:inline-flex;align-items:baseline;gap:10px;padding:8px 14px;border:1px solid var(--border);border-radius:10px;background:var(--card);margin-bottom:6px}
.lh-if-fee span{color:var(--muted);font-size:13px}.lh-if-fee b{color:var(--gold);font-size:16px}
.lh-if-sec{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:14px;margin-top:12px}
.lh-if-sec h3{margin:0 0 10px;font-size:15px;color:var(--gold)}
.lh-if-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.lh-if-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:10px}
.lh-if-f{min-width:0}
.lh-if-f label{display:block;font-size:12.5px;color:var(--muted);margin-bottom:5px}
.lh-if-req{color:var(--danger)}
.lh-if-in{width:100%;box-sizing:border-box;min-height:40px;border:1px solid var(--border);border-radius:9px;background:var(--bg);color:var(--text);padding:0 11px;font:inherit;font-size:14px}
.lh-if-in:focus{outline:2px solid var(--gold);outline-offset:-1px}
.lh-if-in.bad{border-color:var(--danger);background:rgba(155,42,34,.06)}
.lh-if-ro{background:transparent;border-style:dashed;color:var(--muted)}
.lh-if-ta{min-height:70px;padding:9px 11px;resize:vertical}
.lh-if-hint{font-size:12.5px;color:var(--muted);margin-top:6px;line-height:1.7}
.lh-if-tw{overflow-x:auto;margin-top:8px}
.lh-if-tbl{width:100%;border-collapse:separate;border-spacing:0 6px;font-size:14px}
.lh-if-tbl th{font-size:12px;font-weight:600;color:var(--muted);text-align:start;padding:0 6px}
.lh-if-tbl td{padding:0 4px;vertical-align:top}
.lh-if-tbl td.lh-if-n{width:28px;text-align:center;color:var(--muted);padding-top:11px}
.lh-if-tbl td:nth-child(3){width:130px}.lh-if-tbl td:nth-child(4){width:84px}.lh-if-tbl td:nth-child(6){width:34px}
.lh-if-del{width:34px;height:40px;border:0;background:none;color:var(--muted);cursor:pointer;border-radius:8px}
.lh-if-del:hover{color:var(--danger);background:rgba(155,42,34,.08)}
.lh-if-rmsg{font-size:12px;color:var(--danger);height:0;overflow:hidden;transition:height .2s}
.lh-if-rmsg.on{height:18px;margin-top:3px}
.lh-if-tfoot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;flex-wrap:wrap}
.lh-if-add{font-size:14px;padding:8px 14px}
.lh-if-total{display:flex;align-items:baseline;gap:8px;padding:8px 14px;border-radius:10px;border:1.5px solid var(--border);font-size:13px;color:var(--muted)}
.lh-if-total b{font-size:18px;color:var(--text)}
.lh-if-total small{font-size:12px}
.lh-if-total.ok{border-color:var(--success);color:var(--success)}.lh-if-total.ok b{color:var(--success)}
.lh-if-total.over{border-color:var(--danger);color:var(--danger)}.lh-if-total.over b{color:var(--danger)}
.lh-if-filein{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.lh-if-filerow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.lh-if-pick{font-size:14px;padding:8px 14px;cursor:pointer}
.lh-if-terms{margin:0;padding:12px 30px 12px 14px;max-height:210px;overflow:auto;border:1px solid var(--border);border-radius:10px;background:var(--bg);font-size:13.5px;line-height:1.9}
body.lang-en .lh-if-terms{padding:12px 14px 12px 30px}
.lh-if-terms li{margin-bottom:6px}
.lh-if-agree{display:flex;align-items:center;gap:9px;margin-top:12px;font-size:14px;cursor:pointer}
.lh-if-agree input{width:19px;height:19px;accent-color:var(--gold);flex:none}
.lh-if-send{position:sticky;bottom:-20px;margin:14px -18px -20px;padding:12px 18px;background:var(--card);border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px}
.lh-if-miss{font-size:12.5px;color:var(--warn);line-height:1.7}
.lh-if-go{min-width:150px;flex:none}
.lh-if-go:disabled{opacity:.45;cursor:not-allowed}
.lh-if-done{text-align:center;padding:10px 0 4px}
.lh-if-tick{width:62px;height:62px;border-radius:50%;margin:0 auto 10px;display:flex;align-items:center;justify-content:center;background:var(--success);color:#fff}
.lh-if-done h3{margin:0 0 10px;color:var(--gold)}
.lh-if-no{display:inline-flex;flex-direction:column;gap:2px;padding:10px 26px;border:1.5px dashed var(--gold);border-radius:12px;margin-bottom:10px}
.lh-if-no span{font-size:12px;color:var(--muted)}.lh-if-no b{font:700 22px/1.2 Georgia,serif;letter-spacing:1px;color:var(--gold)}
.lh-if-pay{margin-top:14px;padding:14px;border:1.5px solid var(--gold);border-radius:14px;background:var(--card)}
.lh-if-pay h3{margin:0 0 8px;font-size:15px;color:var(--gold)}
.lh-if-pay p{margin:6px 0;line-height:1.8;font-size:14px}
.lh-if-paybtn{display:inline-block;text-decoration:none;margin:4px 0}
.lh-if-donebtns{text-align:center;margin-top:14px}
.lh-if-card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:14px;margin-bottom:10px}
.lh-if-ctop{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.lh-if-sub{display:block;font-size:12.5px;color:var(--muted);margin-top:3px}
.lh-if-chip{flex:none;font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;border:1px solid currentColor;white-space:nowrap}
.lh-ifs-wait{color:var(--warn)}.lh-ifs-ok,.lh-ifs-work{color:var(--gold)}
.lh-ifs-done{color:var(--success);background:rgba(44,94,44,.08)}
.lh-ifs-off{color:var(--muted)}
.lh-if-steps{display:flex;gap:5px;margin-top:12px}
.lh-if-steps span{flex:1;height:5px;border-radius:3px;background:var(--border)}
.lh-if-steps span.on{background:var(--gold)}
.lh-if-anote{margin-top:10px;padding:9px 12px;border-radius:9px;background:var(--bg);font-size:13.5px;line-height:1.7;border-inline-start:3px solid var(--gold)}
.lh-if-dl{margin-top:12px}
.lh-if-empty{text-align:center;padding:22px 10px;color:var(--muted)}
.lh-if-out{margin-top:12px}
.lh-if-gate{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding:14px;border:1.5px solid var(--gold);border-radius:14px;background:var(--bg);text-align:start}
.lh-if-gt{display:flex;flex-direction:column;gap:3px;min-width:0}
.lh-if-gk{font-size:11.5px;color:var(--muted)}
.lh-if-gt b{color:var(--gold);font-size:15px}.lh-if-gt span{font-size:12.5px;color:var(--muted)}
.lh-if-gb{display:flex;flex-direction:column;gap:6px;flex:none}
.lh-if-gb .btn{padding:7px 14px;font-size:13px;min-height:0}
.lh-if-homecard{display:flex;align-items:center;gap:14px;margin-top:16px;padding:14px 18px!important;cursor:pointer}
.lh-if-hico{width:44px;height:44px;flex:none;color:var(--gold)}.lh-if-hico svg{width:100%;height:100%}
.lh-if-htx{flex:1;min-width:0}.lh-if-htx h3{margin:0 0 3px;font-size:16px;color:var(--gold)}.lh-if-htx p{margin:0}
.lh-if-harr{flex:none;font-size:13px;font-weight:600;color:var(--gold);border:1.5px solid var(--gold);border-radius:999px;padding:5px 14px}
@media (max-width:640px){
  .lh-if-wrap{padding:0}
  .lh-if-box{border-radius:0;border:0;min-height:100%}
  .lh-if-grid3,.lh-if-grid2{grid-template-columns:1fr}
  .lh-if-tbl thead{display:none}
  .lh-if-tbl,.lh-if-tbl tbody{display:block}
  .lh-if-tbl tr{display:grid;grid-template-columns:28px 1fr 1fr 34px;gap:6px;padding:10px 8px;margin-bottom:8px;border:1px solid var(--border);border-radius:11px;background:var(--bg)}
  .lh-if-tbl td{display:block;width:auto!important;padding:0}
  .lh-if-tbl td.lh-if-n{grid-row:1/4;padding-top:10px}
  .lh-if-tbl td:nth-child(2){grid-column:2/4}
  .lh-if-tbl td:nth-child(5){grid-column:2/4}
  .lh-if-tbl td:nth-child(6){grid-column:4;grid-row:1}
  .lh-if-tbl td[data-l]::before{content:attr(data-l);display:block;font-size:11px;color:var(--muted);margin-bottom:3px}
  .lh-if-send{flex-direction:column;align-items:stretch}
  .lh-if-go{width:100%}
  .lh-if-gate{flex-direction:column;align-items:stretch}
  .lh-if-gb{flex-direction:row}.lh-if-gb .btn{flex:1}
}
/* admin */
#ifra-card .lh-ifa-set{border:1px solid var(--border);border-radius:12px;padding:10px 14px;margin:10px 0;background:var(--bg)}
#ifra-card .lh-ifa-set summary,
#frm-card .lh-ifa-set summary{cursor:pointer;font-weight:600;color:var(--gold)}
#ifra-card .lh-ifa-g,
#frm-card .lh-ifa-g{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:10px}
#ifra-card .lh-ifa-act,
#frm-card .lh-ifa-act{display:flex;align-items:center;gap:10px;margin-top:12px}
#ifra-card .lh-ifa-flt,
#frm-card .lh-ifa-flt{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}
#ifra-card .lh-ifa-fb,
#frm-card .lh-ifa-fb{font:inherit;font-size:13px;padding:6px 12px;border-radius:999px;border:1px solid var(--border);background:var(--card);color:var(--text);cursor:pointer}
#ifra-card .lh-ifa-fb.on,
#frm-card .lh-ifa-fb.on{background:var(--gold);color:var(--card);border-color:var(--gold)}
#ifra-card .lh-ifa-item,
#frm-card .lh-ifa-item{border:1px solid var(--border);border-radius:12px;margin-bottom:8px;background:var(--card);overflow:hidden}
#ifra-card .lh-ifa-item.open,
#frm-card .lh-ifa-item.open{border-color:var(--gold)}
#ifra-card .lh-ifa-head,
#frm-card .lh-ifa-head{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:0;background:none;color:var(--text);font:inherit;text-align:start;cursor:pointer}
#ifra-card .lh-ifa-ht,
#frm-card .lh-ifa-ht{min-width:0}
#ifra-card .lh-ifa-det,
#frm-card .lh-ifa-det{padding:0 14px 14px;border-top:1px solid var(--border)}
#ifra-card .lh-ifa-ct,
#frm-card .lh-ifa-ct{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:12px 0 4px}
#ifra-card .lh-ifa-ct .lh-if-sub,
#frm-card .lh-ifa-ct .lh-if-sub{margin:0}
#ifra-card .lh-ifa-lnk,
#frm-card .lh-ifa-lnk{color:var(--gold);font-size:13.5px}
#ifra-card .lh-ifa-tbl td,
#frm-card .lh-ifa-tbl td{padding:6px;border-bottom:1px solid var(--border)}
#ifra-card .lh-ifa-tbl tfoot td,
#frm-card .lh-ifa-tbl tfoot td{font-weight:700;border:0}
#ifra-card .lh-ifa-tbl,
#frm-card .lh-ifa-tbl{border-spacing:0}
#ifra-card .lh-ifa-tools,
#frm-card .lh-ifa-tools{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
#ifra-card .lh-ifa-tools .btn,
#frm-card .lh-ifa-tools .btn{font-size:13px;padding:7px 12px}
#ifra-card .lh-ifa-st,
#frm-card .lh-ifa-st{margin-top:12px;padding:12px;border-radius:12px;background:var(--bg);border:1px solid var(--border)}
#ifra-card .lh-ifa-st h4,
#frm-card .lh-ifa-st h4{margin:0 0 4px;color:var(--gold);font-size:14px}
.lh-if-tbl th,.lh-if-tbl td,body.day-mode .lh-if-tbl th,body.day-mode .lh-if-tbl td{border:0!important;background:none!important;box-shadow:none!important}
.lh-if-tbl tr,body.day-mode .lh-if-tbl tr,body.day-mode .lh-if-tbl tbody tr:nth-child(even){background:none!important}
#ifra-card .lh-ifa-tbl td,
#frm-card .lh-ifa-tbl td{border-bottom:1px solid var(--border)!important}
@media (max-width:640px){
  .lh-if-tbl tr,body.day-mode .lh-if-tbl tbody tr:nth-child(even){background:var(--bg)!important;gap:6px 8px;padding:8px}
  .lh-if-tbl .lh-if-in{min-height:38px;height:38px}
}
.lh-if-tbl td,.lh-if-tbl th{text-align:start!important}
#ifra-card .lh-ifa-tw,
#frm-card .lh-ifa-tw{overflow-x:auto;margin-top:8px;border:1px solid var(--border);border-radius:10px;background:var(--bg)}
#ifra-card .lh-ifa-tbl,
#frm-card .lh-ifa-tbl{width:100%;border-collapse:collapse;font-size:13px}
#ifra-card .lh-ifa-tbl th,
#frm-card .lh-ifa-tbl th,#ifra-card .lh-ifa-tbl td,#frm-card .lh-ifa-tbl td,body.day-mode #ifra-card .lh-ifa-tbl td,body.day-mode #frm-card .lh-ifa-tbl td,body.day-mode #ifra-card .lh-ifa-tbl th,body.day-mode #frm-card .lh-ifa-tbl th{padding:7px 8px!important;text-align:start!important;white-space:nowrap;border:0!important;border-bottom:1px solid var(--border)!important;background:none!important;color:var(--text)}
#ifra-card .lh-ifa-tbl th,
#frm-card .lh-ifa-tbl th{font-size:11.5px;color:var(--muted)!important;font-weight:600}
#ifra-card .lh-ifa-tbl tr,
#frm-card .lh-ifa-tbl tr,body.day-mode #ifra-card .lh-ifa-tbl tbody tr:nth-child(even),body.day-mode #frm-card .lh-ifa-tbl tbody tr:nth-child(even){background:none!important}
#ifra-card .lh-ifa-tbl tfoot td,
#frm-card .lh-ifa-tbl tfoot td{font-weight:700;border-bottom:0!important}
/* IFRA materials: compact rows (v2) */
.lh-if-mrow{display:grid;grid-template-columns:26px minmax(0,1fr) 216px 76px 30px;gap:6px;align-items:center;padding:4px 0;border-bottom:1px solid var(--border)}
.lh-if-mrow:last-child{border-bottom:0}
.lh-if-mhead{border-bottom:1.5px solid var(--border);padding:0 0 6px;margin-top:10px;font-size:11.5px;font-weight:600;color:var(--muted)}
.lh-if-mrow .lh-if-n{text-align:center;font-size:12px;color:var(--muted)}
.lh-if-mrow .lh-if-in{min-height:34px;height:34px;font-size:13.5px;padding:0 9px;border-radius:8px}
.lh-if-mrow .c-cas{display:flex;gap:5px;min-width:0}
.lh-if-mrow .c-cas .lh-if-in{flex:1;min-width:0}
.lh-if-none{flex:none;font:inherit;font-size:11.5px;padding:0 9px;height:34px;border-radius:8px;border:1px solid var(--border);background:var(--card);color:var(--muted);cursor:pointer;white-space:nowrap}
.lh-if-none.on{background:var(--gold);border-color:var(--gold);color:var(--card);font-weight:600}
.lh-if-mrow .lh-if-del{width:30px;height:34px}
.lh-if-mrow .lh-if-rmsg{grid-column:2/-1}
.lh-if-list.long{max-height:min(420px,55vh);overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--border);border-radius:10px;padding:0 8px;background:var(--bg)}
.lh-if-tfl{display:flex;align-items:center;gap:10px}
.lh-if-count{font-size:12.5px;color:var(--muted)}
.lh-if-add{font-size:13.5px;padding:7px 13px}
@media (max-width:640px){
  .lh-if-mhead{display:none}
  .lh-if-mrow{grid-template-columns:22px minmax(0,1fr) 72px 28px;grid-template-areas:"n nm nm del" "n cas pc del";gap:5px 6px;padding:7px 0}
  .lh-if-mrow .lh-if-n{grid-area:n;align-self:start;padding-top:9px}
  .lh-if-mrow .c-nm{grid-area:nm}.lh-if-mrow .c-cas{grid-area:cas}.lh-if-mrow .c-pc{grid-area:pc}
  .lh-if-mrow .c-del{grid-area:del;align-self:start}
  .lh-if-mrow .lh-if-rmsg{grid-column:2/4}
  .lh-if-list.long{max-height:58vh;padding:0 6px}
}
@media (max-width:640px){
  .lh-if-mrow{grid-template-columns:22px minmax(0,1fr) 58px 28px}
  .lh-if-mrow .lh-if-in{padding:0 8px}
  .lh-if-none{padding:0 7px;font-size:11px}
}
/* IFRA materials: alternating row colours + placeholders (v3) */
.lh-if-list .lh-if-mrow{padding:6px 6px;border-bottom:0;border-radius:9px}
.lh-if-list .lh-if-mrow:nth-child(odd){background:var(--card)}
.lh-if-list .lh-if-mrow:nth-child(even){background:rgba(176,138,62,.14)}
.lh-if-list .lh-if-mrow{margin-bottom:3px}
.lh-if-mrow .lh-if-in::placeholder{color:var(--muted);opacity:.75;font-size:12.5px}
.lh-if-mrow .lh-if-in[placeholder]:placeholder-shown{direction:rtl;text-align:right}
body.lang-en .lh-if-mrow .lh-if-in[placeholder]:placeholder-shown{direction:ltr;text-align:left}
.lh-if-list.long{padding:6px}
@media (max-width:640px){.lh-if-list .lh-if-mrow{padding:7px 5px}}
@media (max-width:640px){.lh-if-mrow{grid-template-columns:22px minmax(0,1fr) 66px 28px}.lh-if-mrow .c-pc .lh-if-in{padding:0 6px}}
/* IFRA materials v4: same look as the calculator tables (black grid, beige header, olive total) */
.lh-if-mw{margin-top:10px;border:1px solid #000;border-radius:10px;overflow:hidden;background:#fff}
.lh-if-mw.long{max-height:min(460px,58vh);overflow-y:auto;overscroll-behavior:contain}
.lh-if-mt{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px;color:#141414}
.lh-if-mt col.c-n{width:34px}.lh-if-mt col.c-cas{width:200px}.lh-if-mt col.c-pc{width:86px}.lh-if-mt col.c-del{width:34px}
.lh-if-mt th,.lh-if-mt td,body.day-mode .lh-if-mt th,body.day-mode .lh-if-mt td{border:1px solid #000!important;padding:0!important;vertical-align:middle;text-align:center!important}
.lh-if-mt tr>:first-child{border-inline-start:0!important}.lh-if-mt tr>:last-child{border-inline-end:0!important}
.lh-if-mt thead th{border-top:0!important}
.lh-if-mt thead th,body.day-mode .lh-if-mt thead th{position:sticky;top:0;z-index:2;background:#e8e0cc!important;color:#23331a!important;font-weight:800;font-size:12px;padding:9px 4px!important;box-shadow:0 1px 0 #000}
.lh-if-mt tbody tr:nth-child(odd) td,body.day-mode .lh-if-mt tbody tr:nth-child(odd) td{background:#f4f1ea!important}
.lh-if-mt tbody tr:nth-child(even) td,body.day-mode .lh-if-mt tbody tr:nth-child(even) td{background:#fff!important}
.lh-if-mt tbody tr,body.day-mode .lh-if-mt tbody tr:nth-child(n){background:none!important;color:#141414!important}
.lh-if-mt td.lh-if-n{font-weight:700;font-size:12px;color:#23331a}
.lh-if-mt .lh-if-in,body.day-mode .lh-if-mt .lh-if-in{border:0!important;border-radius:0;background:transparent!important;height:38px;min-height:38px;padding:0 8px;font-size:13.5px;color:#141414!important;box-shadow:none}
.lh-if-mt .lh-if-in:focus{outline:2px solid #6f8f3a;outline-offset:-2px;background:#fffdf6!important}
.lh-if-mt .lh-if-in::placeholder{color:#9a927d;opacity:1;font-size:12px}
.lh-if-mt .lh-if-in[placeholder]:placeholder-shown{direction:rtl;text-align:right}
body.lang-en .lh-if-mt .lh-if-in[placeholder]:placeholder-shown{direction:ltr;text-align:left}
.lh-if-mt .lh-if-in.bad{background:#fde3df!important;color:#9b2a22!important}
.lh-if-mt .lh-if-in.lh-if-ro{color:#4c5a3c!important;font-style:italic;border-style:none}
.lh-if-casw{display:flex;align-items:center;gap:4px;padding-inline-end:4px}
.lh-if-casw .lh-if-in{flex:1;min-width:0}
.lh-if-mt .lh-if-none{height:26px;padding:0 8px;font-size:11px;border-radius:6px;border:1px solid #b9ae92;background:#fff;color:#5b553f}
.lh-if-mt .lh-if-none.on{background:#6f8f3a;border-color:#6f8f3a;color:#fff}
.lh-if-mt .lh-if-del{width:100%;height:38px;border-radius:0;color:#8a8270}
.lh-if-mt .lh-if-del:hover{color:#fff;background:#9b2a22}
.lh-if-mt .lh-if-rmsg{text-align:start;padding:0 8px}
.lh-if-mt .lh-if-rmsg.on{height:auto;margin:0 0 5px}
.lh-if-mt tfoot th,body.day-mode .lh-if-mt tfoot th{position:sticky;bottom:0;z-index:2;background:#6f8f3a!important;color:#fff!important;font-weight:800;padding:9px 6px!important;border-bottom:0!important;font-size:13px;box-shadow:0 -1px 0 #000}
.lh-if-mt tfoot th.lh-if-mtot{background:#ffb35c!important;color:#000!important;font-size:14px}
.lh-if-mt tfoot th.lh-if-mtot.ok{background:#ffb35c!important}
.lh-if-mt tfoot th.lh-if-mtot.over{background:#e0614f!important;color:#fff!important}
.lh-if-tfoot{margin-top:10px}
.lh-if-left{font-size:12.5px;font-weight:600;color:#7a5a12}
.lh-if-left.ok{color:#2c5e2c}.lh-if-left.over{color:#9b2a22}
body:not(.day-mode) .lh-if-mw{border-color:#000}
@media (max-width:640px){
  .lh-if-mt{font-size:12.5px}
  .lh-if-mt col.c-n{width:24px}.lh-if-mt col.c-cas{width:112px}.lh-if-mt col.c-pc{width:56px}.lh-if-mt col.c-del{width:28px}
  .lh-if-mt thead th{font-size:11px;padding:8px 2px!important}
  .lh-if-casw{flex-direction:column;align-items:stretch;gap:0;padding:0 0 4px}
  .lh-if-mt .lh-if-none{height:22px;margin:0 5px;font-size:10.5px}
  .lh-if-mt .lh-if-in{padding:0 5px;font-size:12.5px}
  .lh-if-mt .lh-if-in::placeholder{font-size:11px}
  .lh-if-mt .lh-if-del{height:38px}
  .lh-if-mw.long{max-height:60vh}
}
.lh-if-mt{border-collapse:separate!important;border-spacing:0}
.lh-if-mt th,.lh-if-mt td,body.day-mode .lh-if-mt th,body.day-mode .lh-if-mt td{border:0!important;border-bottom:1px solid #000!important;border-inline-start:1px solid #000!important}
.lh-if-mt tr>:first-child{border-inline-start:0!important}
.lh-if-mt tbody tr:last-child td{border-bottom:0!important}
.lh-if-mt thead th{border-bottom:1px solid #000!important}
.lh-if-mt tfoot th{border-bottom:0!important;border-top:1px solid #000!important}
.lh-if-mt .lh-if-in{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
.lh-if-mt,body.day-mode .lh-if-mt{overflow:visible!important}
.lh-if-mt tfoot th.lh-if-mtot{white-space:nowrap}@media (max-width:640px){.lh-if-mt tfoot th.lh-if-mtot{font-size:11.5px;padding:9px 1px!important}}
/* IFRA materials v5 (option 2): white rows, dark olive header, beige total, numbered circles */
.lh-if-mt thead th,body.day-mode .lh-if-mt thead th{background:#2f4a1f!important;color:#fff!important}
.lh-if-mt tbody tr:nth-child(odd) td,body.day-mode .lh-if-mt tbody tr:nth-child(odd) td,
.lh-if-mt tbody tr:nth-child(even) td,body.day-mode .lh-if-mt tbody tr:nth-child(even) td{background:#fff!important}
.lh-if-mt tbody td{border-bottom:1.5px solid #000!important}
.lh-if-mt td.lh-if-n span{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#2f4a1f;color:#fff;font-size:11px;font-weight:700}
.lh-if-mt tbody tr:focus-within td{background:#fbf8f0!important}
.lh-if-mt tbody tr:focus-within td.lh-if-n span{background:#b08a3e}
.lh-if-mt tfoot th,body.day-mode .lh-if-mt tfoot th{background:#e8e0cc!important;color:#23331a!important}
.lh-if-mt tfoot th.lh-if-mtot{background:#ffb35c!important;color:#000!important}
.lh-if-mt .lh-if-none.on{background:#2f4a1f;border-color:#2f4a1f;color:#fff}
.lh-if-mt .lh-if-in:focus{outline-color:#b08a3e}
@media (max-width:640px){.lh-if-mt td.lh-if-n span{width:19px;height:19px;font-size:10px}}
/* IFRA materials: alternate white / light grey rows */
.lh-if-mt tbody tr:nth-child(even) td,body.day-mode .lh-if-mt tbody tr:nth-child(even) td{background:#ededed!important}
.lh-if-mt tbody tr:focus-within td,body.day-mode .lh-if-mt tbody tr:focus-within td{background:#f6efdc!important}
/* IFRA materials: colours taken from the IFRA brand guide (dark blue #183162, purple #7030A0) */
.lh-if-mt thead th,body.day-mode .lh-if-mt thead th{background:#183162!important;color:#fff!important}
.lh-if-mt tbody tr:nth-child(odd) td,body.day-mode .lh-if-mt tbody tr:nth-child(odd) td{background:#fff!important}
.lh-if-mt tbody tr:nth-child(even) td,body.day-mode .lh-if-mt tbody tr:nth-child(even) td{background:#f2ecf7!important}
.lh-if-mt tbody tr:focus-within td,body.day-mode .lh-if-mt tbody tr:focus-within td{background:#e7ecf6!important}
.lh-if-mt td.lh-if-n span{background:#7030a0}
.lh-if-mt tbody tr:focus-within td.lh-if-n span{background:#183162}
.lh-if-mt tbody td{border-bottom:1px solid #000!important}
.lh-if-mt tfoot th,body.day-mode .lh-if-mt tfoot th{background:#e3e7f0!important;color:#183162!important}
.lh-if-mt tfoot th.lh-if-mtot{background:#7030a0!important;color:#fff!important}
.lh-if-mt tfoot th.lh-if-mtot.over{background:#c0392b!important}
.lh-if-mt .lh-if-none.on{background:#7030a0;border-color:#7030a0;color:#fff}
.lh-if-mt .lh-if-in:focus{outline-color:#7030a0}
.lh-if-mt td.lh-if-n{color:#183162}
.lh-if-mt tfoot th.lh-if-mtot,.lh-if-mt tfoot th.lh-if-mtot.ok,body.day-mode .lh-if-mt tfoot th.lh-if-mtot.ok{background:#7030a0!important;color:#fff!important}.lh-if-mt tfoot th.lh-if-mtot.over{background:#c0392b!important;color:#fff!important}
.lh-names{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:520px){.lh-names{grid-template-columns:1fr}}

/* ===== English details form (js/en-profile.js) ===== */
.lh-en-box{text-align:left}
.lh-en-box .lh-ov-title,.lh-en-box .lh-ov-text,.lh-en-box .lh-ov-note,.lh-en-box .lh-ov-err{text-align:left}
.lh-enf{text-align:left}
.lh-enf .lh-field{text-align:left}
.lh-enf .lh-field-lbl{text-align:left}
.lh-enf .lh-in{text-align:left}
.lh-enf-hint{font-size:12.5px;color:var(--muted);margin:-2px 0 8px;transition:color .2s}
.lh-enf-hint.warn{color:var(--danger);font-weight:600}
.lh-enf-prev{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:10px 12px;border:1.5px dashed var(--gold);border-radius:10px;margin-bottom:12px;background:var(--card)}
.lh-enf-prev span{font-size:12px;color:var(--muted)}
.lh-enf-prev b{font:700 16px/1.3 Georgia,serif;color:var(--gold);letter-spacing:.3px}
.lh-enf-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lh-enf-phone{direction:ltr}
.lh-enf-decl{margin-top:12px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--card)}
.lh-enf-dh{font-weight:700;color:var(--gold);margin-bottom:4px}
.lh-enf-decl .lh-agree{display:flex;align-items:flex-start;gap:9px;margin-top:9px;font-size:13.5px;line-height:1.6;text-align:left;cursor:pointer}
.lh-enf-decl .lh-agree input{margin-top:3px;width:18px;height:18px;flex:none;accent-color:var(--gold)}
@media(max-width:520px){.lh-enf-2{grid-template-columns:1fr}}

/* ===== registration page (js/register.js) ===== */
body.lh-reg-on{overflow:auto}
body.lh-reg-on #auth-gate,body.lh-reg-on #lh-if-gate{display:none!important}
.lh-reg{position:fixed;inset:0;z-index:10080;overflow:auto;background:var(--bg);padding:24px 14px 40px}
.lh-reg-card{max-width:640px;margin:0 auto;background:var(--card);border:1.5px solid var(--gold);border-radius:18px;padding:22px 20px;box-shadow:0 18px 50px rgba(0,0,0,.12)}
.lh-reg-logo{display:block;width:74px;height:74px;margin:0 auto 6px;border-radius:50%}
.lh-reg-brand{text-align:center;font:700 18px/1.2 Georgia,serif;letter-spacing:3px;color:var(--gold);margin-bottom:14px}
.lh-reg-body{text-align:left}
.lh-reg-h{font-size:22px;margin:4px 0 6px;color:var(--gold);text-align:left}
.lh-reg-course{display:inline-block;font-size:13px;font-weight:600;padding:4px 12px;border-radius:999px;border:1px solid var(--gold);color:var(--gold);margin-bottom:10px}
.lh-reg-p{color:var(--muted);line-height:1.7;margin:0 0 14px;font-size:14px}
.lh-reg .lh-if-tick{margin:6px 0 10px}
.lh-reg a.lh-ov-btn{display:flex;align-items:center;justify-content:center;text-decoration:none}

/* ===== admin: registration links (js/register-admin.js) ===== */
#reg-card .lh-rg-sec{margin-top:14px}
#reg-card .lh-rg-sec h4{margin:0 0 8px;color:var(--gold);font-size:15px}
#reg-card .lh-rg-item{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--card);margin-bottom:8px}
#reg-card .lh-rg-item.off{opacity:.6}
#reg-card .lh-rg-it{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 240px}
#reg-card .lh-rg-it .lh-muted{font-size:12.5px}
#reg-card .lh-rg-warn{font-size:12.5px;font-weight:600;color:var(--danger)}
#reg-card .lh-rg-st{align-self:flex-start;font-size:11.5px;font-weight:600;padding:2px 10px;border-radius:999px;border:1px solid var(--border);color:var(--muted)}
#reg-card .lh-rg-st.on{color:var(--success);border-color:var(--success)}
#reg-card .lh-rg-act{display:flex;gap:6px;flex-wrap:wrap}
#reg-card .lh-rg-act .btn{font-size:13px;padding:7px 12px;text-decoration:none}
#reg-card .lh-rg-new{border:1px dashed var(--gold);border-radius:12px;padding:10px 14px;margin-bottom:10px}
#reg-card .lh-rg-new summary{cursor:pointer;font-weight:600;color:var(--gold)}
#reg-card .lh-ifa-g{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:10px;margin-top:10px}
#reg-card .lh-ifa-act{display:flex;align-items:center;gap:10px;margin-top:12px}
#reg-card .lh-if-agree{display:flex;align-items:center;gap:9px;margin-top:12px;font-size:14px}
/* registration page: follows the site language; names stay left-to-right */
.lh-reg-body{text-align:start}.lh-reg-h{text-align:start}
.lh-enf,.lh-enf .lh-field,.lh-enf .lh-field-lbl{text-align:start}
.lh-enf .lh-in{text-align:start}
.lh-enf .lh-in.lh-enf-name,.lh-enf .lh-in[type=email],.lh-enf .lh-in[type=password],.lh-enf .lh-in[type=tel]{direction:ltr;text-align:left}
.lh-enf .lh-enf-decl .lh-agree{text-align:start}
.lh-enf-prev b{direction:ltr;unicode-bidi:isolate}
.lh-reg-lang{position:absolute;top:14px;inset-inline-end:14px;display:flex;border:1.5px solid var(--gold);border-radius:999px;overflow:hidden;z-index:2}
.lh-reg-lang button{font:inherit;font-size:13px;font-weight:600;padding:6px 14px;border:0;background:transparent;color:var(--gold);cursor:pointer}
.lh-reg-lang button.on{background:var(--gold);color:var(--card)}
.lh-reg-lang{position:static;width:max-content;margin:0 auto 12px;max-width:640px}
/* details form: smaller declaration ticks, white input fields */
.lh-enf-decl .lh-agree input,.lh-enf-decl .lh-agree input[type=checkbox]{width:15px!important;height:15px!important;min-width:15px;margin-top:4px;transform:none}
.lh-enf .lh-in,body.day-mode .lh-enf .lh-in{background:#fff!important;color:#141414!important}
.lh-enf .lh-in::placeholder{color:#9a9a9a}
/* phone country code picker with flags (js/en-profile.js) */
.lh-enf-phone{display:flex;gap:8px;align-items:stretch;direction:ltr}
.lh-enf-phone>.lh-in{flex:1;min-width:0}
.lh-cc{position:relative;flex:none}
.lh-cc-btn{display:flex;align-items:center;gap:7px;height:100%;min-height:44px;padding:0 10px!important;cursor:pointer;font:inherit;white-space:nowrap}
.lh-cc-btn b{font-size:15px;font-weight:600}
.lh-cc-flag{width:24px;height:18px;border-radius:3px;object-fit:cover;box-shadow:0 0 0 1px rgba(0,0,0,.12);flex:none}
.lh-cc-globe{font-size:16px;line-height:1}
.lh-cc-car{color:var(--muted);display:flex}
.lh-cc-pop{position:absolute;top:calc(100% + 6px);left:0;z-index:30;width:min(320px,82vw);background:#fff;border:1.5px solid var(--gold);border-radius:12px;box-shadow:0 16px 40px rgba(0,0,0,.18);padding:8px}
.lh-cc-pop[hidden]{display:none}
.lh-cc-search{min-height:38px!important;height:38px;margin-bottom:6px;font-size:14px}
.lh-cc-list{max-height:260px;overflow-y:auto;overscroll-behavior:contain}
.lh-cc-row{display:flex;align-items:center;gap:10px;width:100%;padding:8px;border:0;border-radius:8px;background:none;color:#141414;font:inherit;font-size:14px;cursor:pointer;text-align:start}
.lh-cc-row:hover,.lh-cc-row.on{background:#f3efe4}
.lh-cc-row .lh-cc-nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lh-cc-row b{color:var(--muted);font-weight:600;font-size:13px}
.lh-cc-other{display:flex;align-items:center;gap:6px;border-top:1px solid var(--border);margin-top:6px;padding-top:8px;color:var(--muted)}
.lh-cc-other .lh-in{min-height:36px!important;height:36px;font-size:14px}
.lh-cc-row .lh-cc-nm{text-align:left}.lh-cc-row b{margin-inline-start:auto}
/* declaration: numbered points + one agree box */
.lh-enf-ol{margin:6px 0 0;padding-inline-start:22px;font-size:13.5px;line-height:1.8;color:var(--text)}
.lh-enf-ol li{margin-bottom:4px}
.lh-enf-ol li::marker{font-weight:700;color:var(--gold)}
.lh-enf-decl .lh-enf-all{border-top:1px solid var(--border);padding-top:10px;margin-top:8px;font-weight:600;color:var(--text)}
/* admin: trainee file */
.lh-tf-open{display:inline-block;margin-top:6px;font-size:12px!important;padding:4px 10px!important;min-height:0!important}
.lh-tf-wrap{position:fixed;inset:0;z-index:10060;background:rgba(18,23,14,.55);display:flex;align-items:flex-start;justify-content:center;padding:18px 12px;overflow:auto}
.lh-tf-box{width:100%;max-width:560px;background:var(--bg);border:1.5px solid var(--gold);border-radius:16px;overflow:hidden;margin:auto 0}
.lh-tf-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:var(--card);border-bottom:1px solid var(--border)}
.lh-tf-head h3{margin:0;color:var(--gold);font-size:17px}
.lh-tf-x{background:none;border:0;color:var(--muted);cursor:pointer;padding:6px;border-radius:8px}
.lh-tf-body{padding:14px 16px 18px}
.lh-tf-name{font:700 19px/1.3 Georgia,serif;color:var(--gold);margin-bottom:10px;text-align:right}
.lh-tf-dl{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.lh-tf-dl>div{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:var(--card);min-width:0}
.lh-tf-dl span{font-size:11.5px;color:var(--muted)}.lh-tf-dl b{font-size:13.5px;overflow:hidden;text-overflow:ellipsis}
.lh-tf-dl b[dir=ltr]{text-align:right}
.lh-tf-sec{margin-top:14px}
.lh-tf-sec h4{margin:0 0 8px;color:var(--gold);font-size:14px}
.lh-tf-chips{display:flex;flex-wrap:wrap;gap:8px}
.lh-tf-chip{font:inherit;font-size:13px;font-weight:700;letter-spacing:.3px;padding:7px 14px;border-radius:999px;border:1.5px solid var(--border);background:var(--card);color:var(--muted);cursor:pointer}
.lh-tf-chip.on{background:var(--gold);border-color:var(--gold);color:var(--card)}
.lh-tf-chip.add{border-style:dashed;font-weight:600;letter-spacing:0}
.lh-tf-notes{width:100%;box-sizing:border-box;min-height:90px;padding:10px;resize:vertical}
.lh-tf-act{display:flex;align-items:center;gap:10px;margin-top:14px}
@media(max-width:520px){.lh-tf-dl{grid-template-columns:1fr}.lh-tf-wrap{padding:0}.lh-tf-box{border-radius:0;border:0;min-height:100%}}
.lh-tf-notes{font:inherit!important;font-size:14px!important;line-height:1.7}
@media(max-width:520px){.lh-tf-dl{grid-template-columns:1fr 1fr}.lh-tf-dl>div:first-child{grid-column:1/-1}}
/* access time */
#reg-card .lh-rg-atw{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:8px;font-size:12.5px}
#reg-card .lh-rg-dt{max-width:230px;min-height:36px}
.lh-reg-when{display:flex;flex-direction:column;gap:3px;padding:10px 14px;border:1.5px solid var(--gold);border-radius:12px;background:var(--bg);margin:0 0 14px}
.lh-reg-when span{font-size:12px;color:var(--muted)}.lh-reg-when b{color:var(--gold);font-size:15px}
/* «account not active / waiting» screen in the platform colours */
#account-blocked{background:var(--bg)!important;color:var(--text)!important}
#account-blocked>div{max-width:460px;background:var(--card);border:1.5px solid var(--gold);border-radius:18px;padding:28px 22px;box-shadow:0 18px 50px rgba(0,0,0,.12)}
#account-blocked h2{color:var(--gold)!important;font-size:21px}
#account-blocked p{color:var(--muted)!important;line-height:1.9;margin:0 auto}
/* IFRA materials — final: option 2 (olive header, beige total, orange sum) + white / light grey rows */
.lh-if-mt thead th,body.day-mode .lh-if-mt thead th{background:#2f4a1f!important;color:#fff!important}
.lh-if-mt tbody tr:nth-child(odd) td,body.day-mode .lh-if-mt tbody tr:nth-child(odd) td{background:#fff!important}
.lh-if-mt tbody tr:nth-child(even) td,body.day-mode .lh-if-mt tbody tr:nth-child(even) td{background:#ececec!important}
.lh-if-mt tbody tr:focus-within td,body.day-mode .lh-if-mt tbody tr:focus-within td{background:#f6efdc!important}
.lh-if-mt td.lh-if-n span,.lh-if-mt tbody tr:focus-within td.lh-if-n span{background:none!important;color:#141414;width:auto;height:auto;font-size:13px;font-weight:700}
.lh-if-mt tfoot th,body.day-mode .lh-if-mt tfoot th{background:#e8e0cc!important;color:#23331a!important}
.lh-if-mt tfoot th.lh-if-mtot,.lh-if-mt tfoot th.lh-if-mtot.ok,body.day-mode .lh-if-mt tfoot th.lh-if-mtot.ok{background:#f5b46a!important;color:#000!important}
.lh-if-mt tfoot th.lh-if-mtot.over,body.day-mode .lh-if-mt tfoot th.lh-if-mtot.over{background:#c0392b!important;color:#fff!important}
.lh-if-mt .lh-if-none.on{background:#2f4a1f;border-color:#2f4a1f;color:#fff}
.lh-if-mt .lh-if-in:focus{outline-color:#2f4a1f}
/* % sign next to the typed percentage */
.lh-if-pcw{display:flex;align-items:center;direction:ltr;padding-inline-end:0}
.lh-if-pcw .lh-if-in{flex:1;min-width:0;padding-right:2px!important}
.lh-if-pcs{flex:none;padding:0 8px 0 0;font-weight:700;color:#141414;font-size:13.5px;display:none}
.lh-if-pcw.has .lh-if-pcs{display:block}
.lh-if-pcw.has .lh-if-in{text-align:right!important}
@media(max-width:640px){.lh-if-pcs{padding-right:5px;font-size:12.5px}}
/* % sign placed after the number in Arabic reading order (to its left) */
.lh-if-pcs{order:-1;padding:0 0 0 8px!important}
.lh-if-pcw.has .lh-if-in{text-align:left!important;padding-left:2px!important;padding-right:8px!important}
@media(max-width:640px){.lh-if-pcs{padding-left:5px!important}}
/* IFRA materials: zebra by material (a blend's source panel keeps its material's colour) */
.lh-if-mt tbody tr.lh-if-r td,body.day-mode .lh-if-mt tbody tr.lh-if-r:not(.alt) td{background:#fff!important}
.lh-if-mt tbody tr.lh-if-r.alt td,body.day-mode .lh-if-mt tbody tr.lh-if-r.alt td{background:#ececec!important}
.lh-if-mt tbody tr.lh-if-r:focus-within td,body.day-mode .lh-if-mt tbody tr.lh-if-r:focus-within td{background:#f6efdc!important}
.lh-if-mt tbody tr.lh-if-r:has(+ tr.lh-if-mixr:not([hidden])) td{border-bottom:0!important}
.lh-if-mt tbody tr.lh-if-mixr[hidden]{display:none}
.lh-if-mt tbody tr.lh-if-mixr td{padding:0 10px 10px!important;text-align:start!important}
.lh-if-mix{border:1.5px dashed #2f4a1f;border-radius:10px;padding:10px;background:rgba(255,255,255,.7)}
.lh-if-mixh{font-size:12.5px;font-weight:700;color:#2f4a1f;margin-bottom:8px}
.lh-if-seg{display:inline-flex;border:1.5px solid #2f4a1f;border-radius:999px;overflow:hidden;margin-bottom:8px;flex-wrap:wrap}
.lh-if-seg button{font:inherit;font-size:12.5px;font-weight:600;padding:6px 12px;border:0;background:#fff;color:#2f4a1f;cursor:pointer}
.lh-if-seg button.on{background:#2f4a1f;color:#fff}
.lh-if-mixsup,.lh-if-mixown{display:flex;flex-direction:column;gap:7px}
.lh-if-mixsup[hidden],.lh-if-mixown[hidden]{display:none}
.lh-if-mix .lh-if-in,body.day-mode .lh-if-mix .lh-if-in{background:#fff!important;border:1px solid #b9ae92!important;border-radius:8px!important;height:36px;min-height:36px;font-size:13px;color:#141414!important}
.lh-if-mix .lh-if-in[placeholder]:placeholder-shown{direction:rtl;text-align:right}
body.lang-en .lh-if-mix .lh-if-in[placeholder]:placeholder-shown{direction:ltr;text-align:left}
.lh-if-mix .lh-if-pick{font-size:12.5px;padding:6px 12px}
.lh-if-mix .lh-if-hint{margin:0}
.lh-if-part{display:grid;grid-template-columns:minmax(0,1fr) 120px 70px 30px;gap:6px;align-items:center}
.lh-if-part .lh-if-del{height:36px;width:30px}
.lh-if-mix .lh-if-tfoot{margin-top:2px}
.lh-if-mix .lh-if-padd{font-size:12.5px;padding:5px 12px}
@media(max-width:640px){
  .lh-if-part{grid-template-columns:minmax(0,1fr) 62px 26px;grid-template-areas:"a a d" "c q d"}
  .lh-if-part>:nth-child(1){grid-area:a}.lh-if-part>:nth-child(2){grid-area:c}.lh-if-part>:nth-child(3){grid-area:q}.lh-if-part>:nth-child(4){grid-area:d}
  .lh-if-part{padding-bottom:6px;border-bottom:1px dashed #cfc6ad}
  .lh-if-mt tbody tr.lh-if-mixr td{padding:0 6px 8px!important}
}
#ifra-card .lh-ifa-tbl tr.lh-ifa-mixr td,
#frm-card .lh-ifa-tbl tr.lh-ifa-mixr td{white-space:normal;font-size:12.5px;color:var(--muted)!important;padding-top:0!important;background:#f7f4ec!important}
#ifra-card .lh-ifa-tbl tr.lh-ifa-mixr b,
#frm-card .lh-ifa-tbl tr.lh-ifa-mixr b{color:var(--text)}
#ifra-card .lh-ifa-parts,
#frm-card .lh-ifa-parts{margin:4px 0 0;padding-inline-start:18px}
#ifra-card .lh-ifa-mfile,
#frm-card .lh-ifa-mfile{font-size:12px;padding:3px 10px;margin-inline-start:8px}
/* IFRA materials: numbered requirements + required blend source */
.lh-if-req-ol{margin:0 0 4px;padding-inline-start:22px;font-size:13px;line-height:1.85;color:var(--text)}
.lh-if-req-ol li{margin-bottom:3px}
.lh-if-req-ol li::marker{font-weight:700;color:#2f4a1f}
.lh-if-reqs{color:#9b2a22;font-weight:700}
/* blend formula file: attach now or later — red action marks */
.lh-if-later{margin-top:6px;padding:8px 10px;border-radius:8px;background:#fdecea;border:1px solid #e3a59d;color:#9b2a22;font-size:12.5px;font-weight:600;line-height:1.7}
.lh-if-later[hidden]{display:none}
.lh-if-act{margin-top:10px;padding:10px 12px;border-radius:10px;background:#fdecea;border:1.5px solid #c0392b}
.lh-if-acth{color:#9b2a22;font-weight:700;font-size:13.5px;margin-bottom:6px}
.lh-if-actr{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:6px 0;border-top:1px dashed #e3a59d;font-size:13.5px}
.lh-if-actr:first-of-type{border-top:0}
.lh-if-actr>span:first-child{flex:1;min-width:120px;font-weight:600}
.lh-if-actr .lh-if-pick{font-size:12.5px;padding:5px 12px;background:#c0392b;border-color:#c0392b;color:#fff}
.lh-if-actr.done{opacity:.7}.lh-if-actr.done .lh-muted{color:var(--success)!important;font-weight:600}
.lh-ifs-need{color:#fff;background:#c0392b;border-color:#c0392b}
#ifra-card .lh-ifa-chips,
#frm-card .lh-ifa-chips{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
#ifra-card .lh-ifa-need,
#frm-card .lh-ifa-need{color:#9b2a22;font-weight:700}
.lh-if-act .lh-if-actr label.btn.lh-if-pick,body.day-mode .lh-if-act .lh-if-actr label.btn.lh-if-pick{background:#c0392b!important;border-color:#c0392b!important;color:#fff!important;min-height:0}
/* blend source — one tidy row + «complete later» */
.lh-if-mt tbody tr.lh-if-mixr td{padding:0 8px 8px!important}
.lh-if-src{border-top:1px dashed #b9ae92;padding-top:8px}
.lh-if-srcm{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.lh-if-srcm[hidden]{display:none}
.lh-if-srcl{font-size:12.5px;font-weight:700;color:#2f4a1f;white-space:nowrap}
.lh-if-src .lh-if-in,body.day-mode .lh-if-src .lh-if-in{background:#fff!important;border:1px solid #b9ae92!important;border-radius:8px!important;height:34px!important;min-height:34px!important;font-size:13px!important;color:#141414!important;padding:0 8px!important}
.lh-if-srcs{width:auto!important;flex:0 0 auto;min-width:150px;cursor:pointer}
.lh-if-srci{flex:1 1 200px!important;width:auto!important;text-align:left!important}
.lh-if-srci[hidden],.lh-if-srcf[hidden],.lh-if-laterb[hidden]{display:none!important}
.lh-if-srcf{font-size:12.5px!important;padding:0 12px!important;height:34px;display:inline-flex!important;align-items:center;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lh-if-srcf.has{border-color:#2f4a1f!important;color:#2f4a1f!important;font-weight:600}
.lh-if-laterb{margin-inline-start:auto;font:inherit;font-size:12.5px;font-weight:600;color:#7a5a12;background:none;border:0;text-decoration:underline;cursor:pointer;padding:4px 2px}
.lh-if-flag{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:7px 10px;border-radius:8px;background:#fdecea;border:1px solid #e3a59d;color:#9b2a22;font-size:12.5px;font-weight:600}
.lh-if-flag[hidden]{display:none}
.lh-if-flag span::before{content:"⚠ "}
.lh-if-nowb{font:inherit;font-size:12.5px;font-weight:700;color:#9b2a22;background:#fff;border:1px solid #c0392b;border-radius:999px;padding:3px 12px;cursor:pointer}
.lh-if-act .lh-if-actn{font-size:12.5px;color:#9b2a22;margin-bottom:6px}
.lh-if-act .lh-if-actr{display:block;padding:8px 0}
.lh-if-act .lh-if-actnm{display:block;font-weight:700;margin-bottom:6px}
.lh-if-act .lh-if-src{border-top:0;padding-top:0}
.lh-if-actf{display:flex;align-items:center;gap:8px;margin-top:8px}
.lh-if-acts{font-size:13px;padding:6px 16px;min-height:0}
.lh-if-actok{color:var(--success);font-weight:700;font-size:13px}
.lh-if-act .lh-if-actr.done{display:flex;justify-content:space-between;align-items:center}
.lh-if-act .lh-if-actr.done .lh-if-actnm{margin:0}
@media(max-width:640px){
  .lh-if-srcm{gap:6px}
  .lh-if-srcl{width:100%}
  .lh-if-srcs{flex:1 1 100%!important;min-width:0}
  .lh-if-srci{flex:1 1 100%!important}
  .lh-if-srcf{max-width:100%;flex:1 1 auto}
  .lh-if-laterb{margin-inline-start:0}
}
@media(min-width:641px){
  .lh-if-srcm{flex-wrap:nowrap}
  .lh-if-srcl{display:inline-block!important;width:auto!important;margin:0!important;flex:none}
  .lh-if-src select.lh-if-srcs{width:190px!important;min-width:190px;flex:0 0 190px!important;display:inline-block!important}
  .lh-if-srci{flex:1 1 auto!important;min-width:0}
  .lh-if-srcf{flex:0 1 auto}
}
@media(max-width:640px){.lh-if-srcl{display:block!important;margin:0!important}}
.lh-if-laterb{white-space:nowrap;flex:none}

/* ===== IFRA form v8: website look (lighter lines, smaller controls) ===== */
#lh-ifra .lh-if-sec{background:#fff!important;border:1px solid #e6e1d5!important;border-radius:12px!important;box-shadow:none!important;padding:20px!important}
#lh-ifra .lh-if-sec h3{font-size:16px!important;font-weight:700;margin:0 0 14px!important;padding-bottom:10px;border-bottom:1px solid #eee9de}
#lh-ifra .lh-if-sec label,#lh-ifra .lh-if-sec .lh-if-lbl{font-size:13px;color:#5d5a50}
#lh-ifra input.lh-if-in,#lh-ifra select.lh-if-in,#lh-ifra textarea.lh-if-in{border:1px solid #d9d4c7!important;border-style:solid!important;border-radius:8px!important;background:#fff!important;min-height:42px;padding:8px 12px!important;font-size:15px!important;box-shadow:none!important;transition:border-color .15s,box-shadow .15s}
#lh-ifra .lh-if-in:focus{border-color:#2f4a1f!important;box-shadow:0 0 0 3px rgba(47,74,31,.12)!important;outline:none}
#lh-ifra .lh-if-in[readonly]{background:#f7f5f0!important;color:#555}
#lh-ifra .btn{border-radius:8px!important;min-height:38px;padding:8px 16px!important;font-size:14px!important;font-weight:600;box-shadow:none!important}
#lh-ifra .btn.secondary{border:1px solid #cfc9b8!important;background:#fff!important;color:#2f4a1f!important}
#lh-ifra .btn.secondary:hover{background:#f4f2ec!important}
/* table: hairlines instead of heavy frame */
#lh-ifra .lh-if-mw{border:1px solid #d6d0c0!important;border-radius:10px!important;overflow:hidden}
#lh-ifra .lh-if-mt th{font-size:12.5px!important;font-weight:600!important;padding:10px 8px!important;border:0!important;border-inline-start:1px solid rgba(255,255,255,.14)!important}
#lh-ifra .lh-if-mt td{border:0!important;border-top:1px solid #ebe6da!important;border-inline-start:1px solid #ebe6da!important;padding:6px 8px!important}
#lh-ifra .lh-if-mt tr.lh-if-mixr td{border-top:0!important}
#lh-ifra .lh-if-mt td input{border:1px solid transparent!important;border-radius:6px!important;background:transparent!important;min-height:34px;padding:4px 6px!important;font-size:14.5px!important}
#lh-ifra .lh-if-mt td input:hover{border-color:#e0dbcd!important}
#lh-ifra .lh-if-mt td input:focus{border-color:#2f4a1f!important;background:#fff!important;box-shadow:0 0 0 3px rgba(47,74,31,.10)!important}
#lh-ifra .lh-if-none{border:0!important;background:#f1efe8!important;color:#6b675c!important;font-size:11.5px!important;padding:3px 9px!important;border-radius:999px!important;min-height:0!important;font-weight:500}
#lh-ifra .lh-if-none[aria-pressed="true"],#lh-ifra .lh-if-none.on{background:#2f4a1f!important;color:#fff!important}
#lh-ifra .lh-if-mt .lh-if-del,#lh-ifra .lh-if-mt td:last-child button{opacity:.45}
#lh-ifra .lh-if-mt tr:hover td:last-child button{opacity:1}
#lh-ifra .lh-if-flag{border-radius:8px!important;border:1px solid #f0c9c4!important;background:#fdf3f2!important;font-size:13px!important;padding:10px 12px!important}
#lh-ifra .lh-if-nowb,#lh-ifra .lh-if-laterb{border-radius:6px!important;font-size:12.5px!important;padding:5px 12px!important;min-height:0!important}
/* empty table: one tidy line to choose the number of materials */
#lh-ifra .lh-if-mw.empty .lh-if-mt tfoot{display:none}
#lh-ifra .lh-if-start{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px;padding:14px;border:1px dashed #cfc9b8;border-radius:10px;background:#faf9f5}
#lh-ifra .lh-if-startl{font-size:14px!important;font-weight:600;color:#2f4a1f!important;margin:0!important;flex:1 1 auto}
#lh-ifra input.lh-if-startn{width:110px!important;flex:0 0 110px;text-align:center}
#lh-ifra .lh-if-startb{flex:0 0 auto}
#lh-ifra .lh-if-add{font-size:13.5px!important}
#lh-ifra .lh-if-req-ol{font-size:14px;line-height:1.9;color:#3d3b34;background:#faf9f5;border-radius:8px;padding:12px 30px 12px 14px!important;margin-bottom:14px}
#lh-ifra .lh-if-terms{background:#faf9f5!important;border:0!important;border-radius:8px!important;font-size:13.5px}
@media (max-width:600px){#lh-ifra .lh-if-sec{padding:16px!important}#lh-ifra .lh-if-startl{flex-basis:100%}#lh-ifra input.lh-if-startn{flex:1 1 auto;width:auto!important}}
#lh-ifra .lh-if-mt td .lh-if-pcw input{padding:4px 1px!important;text-align:right!important}
#lh-ifra .lh-if-mt td .lh-if-pcw .lh-if-pcs{padding:0 3px 0 0;font-weight:600}
#lh-ifra .lh-if-mt td:has(.lh-if-pcw){padding-inline:4px!important}
#lh-ifra .lh-if-mt tfoot th{border-top:1px solid #d6d0c0!important;box-shadow:none!important}
#lh-ifra .lh-if-nowb{background:#fff!important;border:1px solid #c0392b!important;color:#c0392b!important;opacity:1!important}
#lh-ifra .lh-if-nowb:hover{background:#c0392b!important;color:#fff!important}
#lh-ifra .lh-if-mt td .lh-if-pcw.has input{text-align:left!important}
/* v9: readable select on iPhone, white CAS fields, yellow "no CAS" button */
#lh-ifra select.lh-if-in{-webkit-appearance:none;appearance:none;height:48px!important;min-height:48px;line-height:1.5!important;padding:0 14px!important;padding-inline-end:40px!important;font-size:16px!important;background-color:#fff!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232f4a1f' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:left 14px center!important;background-size:12px 8px!important;text-overflow:ellipsis}
#lh-ifra[dir="ltr"] select.lh-if-in,html[dir="ltr"] #lh-ifra select.lh-if-in{background-position:right 14px center!important}
#lh-ifra .lh-if-mt td input{background:#fff!important;border:1px solid #d3cdbd!important}
#lh-ifra .lh-if-mt td input:hover{border-color:#b9b2a0!important}
#lh-ifra .lh-if-mt td input[readonly]{background:#f4f2ec!important;border-color:#e3dfd3!important}
#lh-ifra .lh-if-mt td .lh-if-pcw{background:#fff;border:1px solid #d3cdbd;border-radius:6px}
#lh-ifra .lh-if-mt td .lh-if-pcw input{border:0!important;box-shadow:none!important}
#lh-ifra .lh-if-none{background:#ffd84d!important;border:1px solid #9e9e9e!important;color:#2b2b2b!important;font-weight:600!important;padding:4px 10px!important}
#lh-ifra .lh-if-none:hover{background:#ffcf26!important}
#lh-ifra .lh-if-none[aria-pressed="true"],#lh-ifra .lh-if-none.on{background:#2f4a1f!important;border-color:#2f4a1f!important;color:#fff!important}
#lh-ifra .lh-if-mt td .lh-if-none{margin-top:6px!important}
#lh-ifra .lh-if-laterb{color:#8a5a00!important;opacity:1!important}
/* v10: "no CAS" = small round toggle on the left of the CAS field */
#lh-ifra .lh-if-mt .lh-if-casw{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important}
#lh-ifra .lh-if-mt .lh-if-casw input{flex:1 1 auto!important;min-width:0!important;width:auto!important}
#lh-ifra .lh-if-mt td .lh-if-none{all:unset;box-sizing:border-box;flex:0 0 auto;display:inline-flex!important;align-items:center;gap:4px;margin:0!important;cursor:pointer;font-family:inherit;font-size:10.5px!important;line-height:1.15;color:#5b5850!important;white-space:nowrap;background:none!important;border:0!important;padding:0!important}
#lh-ifra .lh-if-mt td .lh-if-none::before{content:"";flex:0 0 16px;width:16px;height:16px;border-radius:50%;border:1.5px solid #9e9e9e;background:#fff;box-sizing:border-box;transition:background .15s,border-color .15s,box-shadow .15s}
#lh-ifra .lh-if-mt td .lh-if-none:hover::before{border-color:#6b6b6b}
#lh-ifra .lh-if-mt td .lh-if-none[aria-pressed="true"],#lh-ifra .lh-if-mt td .lh-if-none.on{color:#2b2b2b!important;font-weight:700;background:none!important}
#lh-ifra .lh-if-mt td .lh-if-none[aria-pressed="true"]::before,#lh-ifra .lh-if-mt td .lh-if-none.on::before{background:#ffd84d;border-color:#8a8a8a;box-shadow:inset 0 0 0 3px #fff}
#lh-ifra .lh-if-mt td .lh-if-none:focus-visible{outline:2px solid #2f4a1f;outline-offset:2px;border-radius:4px}
@media (max-width:640px){
  #lh-ifra .lh-if-mt col.c-cas{width:148px!important}
  #lh-ifra .lh-if-mt td .lh-if-none{white-space:normal;width:44px;font-size:10px!important}
  #lh-ifra .lh-if-mt td .lh-if-none::before{flex-basis:14px;width:14px;height:14px}
}
@media (max-width:640px){
  #lh-ifra .lh-if-mt td{padding:5px 3px!important}
  #lh-ifra .lh-if-mt td input{padding:4px 5px!important;font-size:13.5px!important}
  #lh-ifra .lh-if-mt col.c-n{width:20px!important}#lh-ifra .lh-if-mt col.c-del{width:22px!important}#lh-ifra .lh-if-mt col.c-pc{width:54px!important}
  #lh-ifra .lh-if-mt col.c-cas{width:138px!important}
  #lh-ifra .lh-if-mt .lh-if-casw{gap:4px!important}
  #lh-ifra .lh-if-mt td .lh-if-none{width:38px;font-size:9.5px!important;gap:3px}
  #lh-ifra .lh-if-mt th{padding:8px 3px!important;font-size:12px!important}
  #lh-ifra .lh-if-sec{padding:14px 12px!important}
}
@media (max-width:640px){#lh-ifra .lh-if-mt td .lh-if-none{width:54px}#lh-ifra .lh-if-mt col.c-cas{width:150px!important}}
/* v11: one baseline for every cell */
#lh-ifra .lh-if-mt tbody td{vertical-align:middle!important;height:52px}
#lh-ifra .lh-if-mt td input,#lh-ifra .lh-if-mt td .lh-if-pcw{height:38px!important;min-height:38px!important;max-height:38px;box-sizing:border-box!important;margin:0!important;line-height:normal}
#lh-ifra .lh-if-mt td .lh-if-pcw input{height:36px!important;min-height:36px!important}
#lh-ifra .lh-if-mt td .lh-if-pcw{display:flex!important;align-items:center!important}
#lh-ifra .lh-if-mt td.c-nm,#lh-ifra .lh-if-mt td.c-cas,#lh-ifra .lh-if-mt td.c-pc{padding-top:7px!important;padding-bottom:7px!important}
#lh-ifra .lh-if-mt td.c-nm input{width:100%!important;display:block}
#lh-ifra .lh-if-mt .lh-if-casw{height:38px}
#lh-ifra .lh-if-mt td.lh-if-n{text-align:center!important;font-weight:700}
#lh-ifra .lh-if-mt td:last-child{text-align:center!important;padding:0!important}
#lh-ifra .lh-if-mt .lh-if-del{display:inline-flex!important;align-items:center;justify-content:center;width:28px;height:28px;margin:0 auto!important;padding:0!important;vertical-align:middle;border:0;background:none;border-radius:6px;color:#8a8579}
#lh-ifra .lh-if-mt .lh-if-del:hover{background:#f3e3e0;color:#c0392b;opacity:1}
#lh-ifra .lh-if-mt td .lh-if-rmsg:empty{display:none}
#lh-ifra .lh-if-mt tfoot th{height:44px;vertical-align:middle!important}
#lh-ifra .lh-if-mt td .lh-if-casw input.lh-if-in,#lh-ifra .lh-if-mt td .lh-if-casw .lh-if-none{margin:0!important;align-self:center!important}
#lh-ifra .lh-if-mt .lh-if-casw{padding:0!important;margin:0!important;border:0!important;box-sizing:border-box!important}
#lh-ifra .lh-if-mt tr.lh-if-mixr td{padding:10px 12px 12px!important;height:auto!important;text-align:start!important}
#lh-ifra .lh-if-mt tr.lh-if-mixr td *{text-align:start}#lh-ifra .lh-if-mt tr.lh-if-mixr .btn,#lh-ifra .lh-if-mt tr.lh-if-mixr select{text-align:center}#lh-ifra .lh-if-mt tr.lh-if-mixr select{text-align:start}
/* v12: fees, paste from Excel, rule warnings */
#lh-ifra .lh-if-feebox{margin-top:14px;padding:14px;border:1px solid #e6e1d5;border-radius:12px;background:#fff}
#lh-ifra .lh-if-feet{font-size:13px;color:#5d5a50;margin-bottom:10px;font-weight:600}
#lh-ifra .lh-if-feeg{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#lh-ifra .lh-if-feec{display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 8px;border:1px solid #e3dfd3;border-radius:10px;background:#faf9f5}
#lh-ifra .lh-if-feec b{font-size:20px;color:#2f4a1f}
#lh-ifra .lh-if-feec span{font-size:12.5px;color:#6b675c}
#lh-ifra .lh-if-feec.me{border-color:#2f4a1f;background:#f1f5ec;box-shadow:inset 0 0 0 1px #2f4a1f}
#lh-ifra .lh-if-feen{margin-top:10px;font-size:12.5px;color:#5d5a50}
#lh-ifra .lh-if-pay .lh-if-fee b{color:#2f4a1f}
#lh-ifra .lh-if-pastel{all:unset;cursor:pointer;flex-basis:100%;font-size:13px;color:#2f4a1f;text-decoration:underline;text-underline-offset:3px;margin-top:4px}
#lh-ifra .lh-if-pasteb{font-size:13px!important}
#lh-ifra .lh-if-tfl{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#lh-ifra .lh-if-paste{margin:12px 0;padding:14px;border:1px solid #d6d0c0;border-radius:10px;background:#faf9f5}
#lh-ifra .lh-if-pastet{font-weight:700;color:#2f4a1f;font-size:14.5px}
#lh-ifra .lh-if-pasteh{font-size:12.5px;color:#5d5a50;margin:6px 0 10px;line-height:1.7}
#lh-ifra textarea.lh-if-pasteta{width:100%;font-family:ui-monospace,Menlo,Consolas,monospace!important;font-size:13px!important;white-space:pre;min-height:120px}
#lh-ifra textarea.lh-if-pasteta.bad{border-color:#c0392b!important}
#lh-ifra .lh-if-pastea{display:flex;gap:8px;margin-top:10px}
#lh-ifra .lh-if-pres{position:relative;margin:12px 0;padding:12px 40px 12px 14px;border-radius:10px;font-size:13.5px;line-height:1.7}
#lh-ifra .lh-if-pres.ok{background:#eef4e8;border:1px solid #b9cfa6;color:#2f4a1f}
#lh-ifra .lh-if-pres.warn{background:#fdf3f2;border:1px solid #f0c9c4;color:#9b2a22}
#lh-ifra .lh-if-prest{font-weight:700}
#lh-ifra .lh-if-presf{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px;color:#7a5200}
#lh-ifra .lh-if-presx{all:unset;cursor:pointer;position:absolute;top:8px;inset-inline-end:12px;font-size:18px;color:inherit;opacity:.7}
#lh-ifra .lh-if-mt tr.lh-if-warnr td{padding:0 12px 8px!important;height:auto!important;border-top:0!important;text-align:start!important}
#lh-ifra .lh-if-warnl{margin:0;padding:6px 10px;list-style:none;border-radius:6px;background:#fdf3f2;border:1px solid #f0c9c4;color:#9b2a22;font-size:12.5px;line-height:1.7}
#lh-ifra .lh-if-warnl li::before{content:"⚠ ";}
#lh-ifra .lh-if-mt tr.lh-if-hasw td{border-bottom:0!important}
#lh-ifra .lh-if-price{margin-top:10px}
#lh-ifra .lh-if-price b{font-size:22px;font-weight:700;color:#2f4a1f;letter-spacing:.2px}
#lh-ifra .lh-if-lp{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:4px}
#lh-ifra .lh-if-lpv{font-size:14px;color:#3d3b34;font-weight:600}
#lh-ifra .lh-if-lpv.muted{font-weight:400;color:#6b675c;font-size:13px}
#lh-ifra select.lh-if-lps{all:unset;box-sizing:border-box;cursor:pointer;font-family:inherit;font-size:12.5px;color:#2f4a1f;border:1px solid #d6d0c0;border-radius:999px;padding:3px 10px;padding-inline-end:26px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%232f4a1f' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left 9px center}
#lh-ifra .lh-if-lpn{flex-basis:100%;font-size:11.5px;color:#7a766b;line-height:1.6}
#lh-ifra .lh-if-lpn:empty{display:none}
#lh-ifra .lh-if-lpn a{color:inherit;text-decoration:underline}
#lh-ifra .lh-if-pay .lh-if-lp{margin:-2px 0 10px}
#lh-ifra .lh-if-lp select.lh-if-lps{height:26px!important;min-height:0!important;line-height:24px!important;font-size:12px!important;font-weight:600;padding-block:0!important;width:auto!important;direction:ltr}
#lh-ifra .lh-if-lp select.lh-if-lps{padding:0 10px 0 24px!important;background-position:left 8px center!important}
/* IFRA price with the flag currency picker (same as the net-oils table) */
#lh-ifra .lh-if-price{margin-top:12px}
#lh-ifra .lh-if-prow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#lh-ifra .lh-if-pval{font-size:22px;font-weight:700;color:#2f4a1f}
#lh-ifra .lh-if-curui{position:relative}
#lh-ifra .lh-if-curui .lh-cur-list{z-index:60}
#lh-ifra .lh-if-lpn{font-size:11.5px;color:#7a766b;line-height:1.6;margin-top:4px}
#lh-ifra .lh-if-lpn:empty{display:none}
#lh-ifra .lh-if-lpn a{color:inherit;text-decoration:underline}
#lh-ifra .lh-if-price-s{margin:0 0 10px}#lh-ifra .lh-if-price-s .lh-if-pval{font-size:19px}
#lh-ifra .lh-if-feel{font-size:13px;color:#6b675c;margin-top:6px}
/* price stands out from every other colour on the page */
#lh-ifra .lh-if-pval{color:#ff5a00!important;font-size:26px!important;font-weight:800!important;letter-spacing:.3px}
#lh-ifra .lh-if-price-s .lh-if-pval{font-size:22px!important}
#lh-ifra .lh-if-prow{gap:8px}
#lh-ifra .lh-if-pval{color:#000!important;font-size:19px!important;font-weight:700!important}
#lh-ifra .lh-if-price-s .lh-if-pval{font-size:17px!important}
#lh-ifra .lh-if-curui .lh-cur-btn{height:30px!important;padding:0 8px!important;min-height:0!important}#lh-ifra .lh-if-curui .lh-cur-btn b{font-size:14px!important;font-weight:700}#lh-ifra .lh-if-curui .lh-cur-list b{font-size:14px!important}
/* slim optional formula attachment */
#lh-ifra .lh-if-attach{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:10px 12px;margin-bottom:14px;border:1px dashed #d6d0c0;border-radius:8px;background:#fcfbf8}
#lh-ifra .lh-if-filein{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
#lh-ifra .lh-if-pick2{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:13.5px;font-weight:600;color:#2f4a1f;margin:0!important}
#lh-ifra .lh-if-pick2:hover span{text-decoration:underline;text-underline-offset:3px}
#lh-ifra .lh-if-filein:focus-visible + .lh-if-pick2{outline:2px solid #2f4a1f;outline-offset:3px;border-radius:4px}
#lh-ifra .lh-if-fname{font-size:12px;color:#8a8579;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
#lh-ifra .lh-if-fname.ok{color:#2f4a1f;font-weight:600}
#lh-ifra .lh-if-fname.bad{color:#c0392b}
#lh-ifra .lh-if-sec label.lh-if-pick2{color:#2f4a1f!important;font-size:13.5px!important}
/* attachment: a small visible button, minimal footprint */
#lh-ifra .lh-if-attach{border:0!important;background:none!important;padding:0!important;margin:0 0 12px!important;gap:8px!important;flex-wrap:nowrap}
#lh-ifra .lh-if-sec label.lh-if-pick2{flex:0 0 auto;height:30px;padding:0 12px;border:1px solid #cfc9b8;border-radius:8px;background:#fff;font-size:12.5px!important;font-weight:600;gap:5px;transition:background .15s,border-color .15s}
#lh-ifra .lh-if-sec label.lh-if-pick2:hover{background:#f4f2ec;border-color:#b9b2a0}
#lh-ifra .lh-if-pick2 svg{width:13px;height:13px}
#lh-ifra .lh-if-pick2:hover span{text-decoration:none!important}
#lh-ifra .lh-if-fname{font-size:11.5px!important;flex:1 1 auto}
/* short notes box with counter */
#lh-ifra .lh-if-nwrap{position:relative}
#lh-ifra textarea.lh-if-notes{min-height:62px!important;height:62px;resize:none;font-size:14px!important;padding:8px 12px 22px!important;line-height:1.6}
#lh-ifra .lh-if-ncount{position:absolute;bottom:6px;inset-inline-end:10px;font-size:11px;color:#9a958a;direction:ltr;pointer-events:none}
#lh-ifra .lh-if-ncount.full{color:#c0392b;font-weight:600}

/* v13 IFRA: member price hint (visitors) + member saving line */
.lh-if-mem{display:inline-flex;align-items:center;gap:8px;margin-top:8px;padding:4px 4px 4px 10px;border:1px solid #d9c8a0;border-radius:8px;background:#fbf7ec;font-size:12.5px;line-height:1.4;color:#5c5a4c;max-width:100%}
html[dir=rtl] .lh-if-mem,[dir=rtl] .lh-if-mem{padding:4px 10px 4px 4px}
.lh-if-memt b{color:#2f4a1f;font-weight:700;white-space:nowrap}
.lh-if-memb{flex:none;height:26px;padding:0 10px;border-radius:6px;border:1px solid #2f4a1f;background:#fff;color:#2f4a1f;font:inherit;font-weight:600;font-size:12px;cursor:pointer}
.lh-if-memb:hover{background:#2f4a1f;color:#fff}
.lh-if-save{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:4px;font-size:12.5px;color:#6b6a5c}
.lh-if-save s{color:#9a988a}
.lh-if-saveb{background:#2f4a1f;color:#f3e3bd;border-radius:5px;padding:1px 7px;font-size:11.5px;font-weight:600}
.lh-if-savet{color:#2f4a1f;font-weight:600}

/* v14 members home: clear sections — greeting, news, «اقسامي», «تابع التعلم» */
html body #home h2{margin:0 0 2px!important;text-align:right!important;font-size:22px!important}
html body #home .lh-last-login{margin:0 0 16px!important}
.lh-home-sec{display:flex;align-items:center;gap:10px;margin:18px 0 10px!important;font-size:15px!important;font-weight:800!important;color:#2f4a1f!important;text-align:right}
.lh-home-sec::after{content:"";flex:1;height:1px;background:linear-gradient(to left,#d9c38d,transparent)}
[dir=ltr] .lh-home-sec::after,html[lang=en] .lh-home-sec::after{background:linear-gradient(to right,#d9c38d,transparent)}
body:not(.day-mode) .lh-home-sec{color:#dba341!important}
html body #home .lh-news{margin-bottom:4px!important}
html body #home .grid{gap:12px!important}
html body #home .home-card > div{padding:14px 10px 12px!important}
html body #home .home-card .home-ico{width:48px!important;height:48px!important}
html body #home .home-card .home-ico svg{width:22px!important;height:22px!important}
html body #home .home-card h3{margin:6px 0 2px!important;font-size:15px!important}
html body #home .home-card .card-hint{font-size:11.5px!important;line-height:1.45!important}
.lh-home-cont .lh-continue{display:grid!important;grid-template-columns:52px 1fr auto!important;grid-template-rows:auto auto!important;gap:6px 12px!important;align-items:center;padding:12px 14px!important;margin:0!important;border-radius:16px!important;background:#fffdf8;border:1px solid #e3d5ae;cursor:pointer;font:inherit;color:inherit;text-align:right}
.lh-home-cont .lh-continue-play{grid-row:1/3!important;width:52px!important;height:52px!important;border-radius:14px!important;background-color:#2f4a1f!important}
.lh-home-cont .lh-continue-tx{grid-column:2!important;flex-direction:column!important;align-items:flex-start!important;gap:1px!important;min-width:0}
.lh-home-cont .lh-continue-tx small{font-size:11.5px!important;font-weight:600!important;color:#8a836f!important}
.lh-home-cont .lh-continue-tx b{font-size:15px!important;color:#23301a}
.lh-continue-go{grid-column:3;grid-row:1;justify-self:end;height:30px;padding:0 14px;border-radius:999px;background:#2f4a1f;color:#fff;font-size:12.5px;font-weight:700;display:inline-flex;align-items:center}
.lh-home-cont .lh-continue-bar{grid-column:2/3!important;grid-row:2;height:5px!important;border-radius:5px!important}
.lh-home-cont .lh-continue-pct{grid-column:3!important;grid-row:2;justify-self:end;font-size:12px!important}
body:not(.day-mode) .lh-home-cont .lh-continue{background:rgba(176,141,60,.08);border-color:rgba(176,141,60,.35)}
body:not(.day-mode) .lh-home-cont .lh-continue-tx b{color:#efe8d3}
.lh-home-cont .lh-home-sec{margin-top:14px!important}
/* v15 floating menu: one width for every row, Instagram opens both accounts */
.lh-fab-menu{width:min(300px,calc(100vw - 36px));align-items:stretch!important}
.lh-fab-menu .lh-sup{width:100%}
.lh-fab-item{width:100%;box-sizing:border-box;justify-content:space-between}
.lh-fab-item[aria-expanded=true]{border-color:var(--gold)}
.lh-fab-sub{display:flex;flex-direction:column;gap:8px;padding-inline-start:28px}
.lh-fab-sub[hidden]{display:none}
.lh-fab-sm{padding:9px 16px!important;font-size:13px;border-width:1px;justify-content:flex-start}
.lh-fab-en{letter-spacing:1.5px;font-weight:600;color:var(--lhs)}
/* v16 floating menu: slim rows */
.lh-fab-menu{width:min(230px,calc(100vw - 36px));gap:6px!important;bottom:calc(86px + env(safe-area-inset-bottom))}
.lh-fab-item{padding:4px 12px 4px 4px!important;font-size:13px!important;border-width:1px!important;border-radius:22px!important;box-shadow:0 3px 10px rgba(0,0,0,.12)!important;gap:8px!important}
[dir=ltr] .lh-fab-item{padding:4px 4px 4px 12px!important}
.lh-fab-ic{width:30px!important;height:30px!important}
.lh-fab-ic svg{width:16px;height:16px}
.lh-fab-sub{gap:5px!important;padding-inline-start:20px!important}
.lh-fab-sm{padding:7px 12px!important;font-size:12px!important}
.lh-fab-en{letter-spacing:1px}
.lh-fab-menu .lh-sup{padding:8px 10px!important;gap:8px!important;border-width:1px!important;border-radius:14px!important}
.lh-fab-menu .lh-sup-logo{width:40px!important;height:40px!important}
.lh-fab-menu .lh-sup-name{font-size:12px!important;letter-spacing:1px}
.lh-fab-menu .lh-sup-sub{font-size:11.5px!important}
.lh-fab-menu .lh-sup-role{font-size:11px!important;margin-top:1px!important}
.lh-fab-menu .lh-sup-tag{display:none}
/* v17 floating menu: compact */
.lh-fab-menu{width:min(190px,calc(100vw - 36px));gap:4px!important;bottom:calc(84px + env(safe-area-inset-bottom))}
.lh-fab-item{padding:3px 10px 3px 3px!important;font-size:12px!important;border-radius:18px!important;gap:6px!important;min-height:0}
[dir=ltr] .lh-fab-item{padding:3px 3px 3px 10px!important}
.lh-fab-ic{width:24px!important;height:24px!important}
.lh-fab-ic svg{width:13px;height:13px}
.lh-fab-sub{gap:4px!important;padding-inline-start:16px!important}
.lh-fab-sm{padding:5px 10px!important;font-size:11px!important}
.lh-fab-menu .lh-sup{padding:6px 8px!important;gap:6px!important;border-radius:12px!important}
.lh-fab-menu .lh-sup-logo{width:30px!important;height:30px!important}
.lh-fab-menu .lh-sup-name{font-size:10.5px!important}
.lh-fab-menu .lh-sup-sub{font-size:10.5px!important}
.lh-fab-menu .lh-sup-role{font-size:10px!important}
/* v18 floating menu: pills fit their text, text sits beside the icon */
.lh-fab-menu{width:auto!important;align-items:flex-end!important}
.lh-fab-menu .lh-sup{width:auto!important}
.lh-fab-item{width:auto!important;justify-content:flex-start!important}
.lh-fab-sub{align-items:flex-end;padding-inline-start:0!important;padding-inline-end:22px}
/* v19 floating menu: one width for all (the widest row), text beside the icon */
.lh-fab-menu{width:max-content!important;max-width:calc(100vw - 36px);align-items:stretch!important}
.lh-fab-menu .lh-sup{width:auto!important}
.lh-fab-item{width:auto!important;justify-content:flex-start!important}
.lh-fab-sub{align-items:stretch!important;padding-inline-end:0!important;padding-inline-start:18px!important}
.lh-fab-item .lh-fab-ic{order:-1}
.lh-fab-item{padding:3px 3px 3px 12px!important}
[dir=ltr] .lh-fab-item{padding:3px 12px 3px 3px!important}
.lh-fab-sm{padding:5px 12px!important}
/* v20 floating menu: narrow equal pills, name centred */
.lh-fab-menu{align-items:flex-end!important}
.lh-fab-menu > .lh-fab-item,.lh-fab-sub .lh-fab-item{width:136px!important}
.lh-fab-item > span:not(.lh-fab-ic){flex:1;text-align:center}
.lh-fab-sub{padding-inline-start:0!important;align-items:flex-end!important}
.lh-fab-sm{justify-content:center!important;padding:5px 8px!important}
.lh-fab-sm .lh-fab-en{font-size:10.5px}
.lh-fab-menu > .lh-fab-item,.lh-fab-sub .lh-fab-item{width:144px!important;white-space:nowrap}
/* v21 icon first, the name right after it */
.lh-fab-item > span:not(.lh-fab-ic){text-align:start!important}
.lh-fab-sm{justify-content:flex-start!important;padding-inline-start:35px!important;padding-inline-end:8px!important}
.lh-fab-sm > span{flex:none!important}
.lh-fab-sm{justify-content:center!important;padding:5px 6px!important}.lh-fab-sm .lh-fab-en{letter-spacing:.6px}
/* v22 icon always on the left, text right after it (Arabic and English) */
.lh-fab-menu > .lh-fab-item{direction:ltr;padding:3px 12px 3px 3px!important}
.lh-fab-menu > .lh-fab-item > span:not(.lh-fab-ic){text-align:left!important}
html[dir=rtl] .lh-fab-menu > .lh-fab-item > span:not(.lh-fab-ic),[dir=rtl] .lh-fab-menu > .lh-fab-item > span:not(.lh-fab-ic){direction:rtl}
/* v23 English mirrors Arabic: icon on the right, text before it */
[dir=ltr] .lh-fab-menu > .lh-fab-item,html[lang=en] .lh-fab-menu > .lh-fab-item{direction:rtl;padding:3px 3px 3px 12px!important}
[dir=ltr] .lh-fab-menu > .lh-fab-item > span:not(.lh-fab-ic),html[lang=en] .lh-fab-menu > .lh-fab-item > span:not(.lh-fab-ic){direction:ltr;text-align:right!important}
.lh-if-soon{text-align:center;padding:40px 16px}.lh-if-soon b{display:block;font-size:19px;color:#2f4a1f;margin-bottom:8px}.lh-if-soon p{color:#6b6a5c;font-size:14px;line-height:1.7;margin:0}
/* v24: admin messages to a trainee (js/admin-notices.js) */
.lh-ask{z-index:10070}
.lh-ask .lh-tf-box{max-width:440px}
.lh-ask-lab{display:block;font-size:13.5px;font-weight:600;color:var(--text)}
.lh-ask-lab textarea{margin-top:6px}
.lh-ask-err{min-height:16px;margin:4px 0 0;font-size:12.5px;color:var(--danger,#b3261e)}
.lh-nt-btns{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 10px}
.lh-nt-btns .btn{min-height:0!important;padding:7px 14px!important;font-size:13px!important}
.lh-nt-list{display:flex;flex-direction:column;gap:8px}
.lh-nt-it{border:1px solid var(--border);border-radius:10px;padding:8px 10px;background:var(--card)}
.lh-nt-it.lh-nt-suspend{border-color:#b3261e55}
.lh-nt-it.lh-nt-warning{border-color:#c98a1a66}
.lh-nt-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px}
.lh-nt-top .lh-muted{font-size:12px}
.lh-nt-st{margin-inline-start:auto;font-size:11.5px;color:var(--muted)}
.lh-nt-st.ok{color:var(--success,#2f6b2f)}
.lh-nt-msg{margin-top:4px;font-size:13.5px;line-height:1.7;white-space:pre-line}
.lh-nt-susp p{color:#b3261e!important}
/* v25: admin actions dialog */
.lh-act-chips{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 10px}
.lh-act-chip{border:1.5px solid var(--border);background:var(--card);color:var(--text);border-radius:999px;padding:7px 16px;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.lh-act-chip.on{background:#2f4a1f;border-color:#2f4a1f;color:#fff}
.lh-act-chip.lh-act-ban.on,.lh-act-chip.lh-act-delete.on{background:#8f1d16;border-color:#8f1d16}
.lh-act-chip.lh-act-suspend.on{background:#a0661a;border-color:#a0661a}
.lh-act-hint{min-height:20px;margin:0 0 10px;font-size:13px;line-height:1.7;color:var(--muted)}
.lh-nt-state{border:1.5px solid #a0661a66;border-radius:10px;padding:10px 12px;margin:6px 0 10px;background:#a0661a0d}
.lh-nt-state.lh-nt-ban{border-color:#8f1d1666;background:#8f1d160d}
.lh-nt-state .btn{margin-top:8px;min-height:0!important;padding:6px 14px!important;font-size:13px!important}
.lh-nt-it.lh-nt-ban,.lh-nt-it.lh-nt-delete{border-color:#8f1d1655}
.lh-nt-it.lh-nt-notice{border-color:#2f4a1f44}
.lh-nt-it.lh-nt-lift{opacity:.8}
.lh-nt-state b{margin-inline-end:8px}
.lh-ask textarea,.lh-ask input,.lh-ask select{font-size:16px!important}
/* v26: comments under a video (js/comments.js) */
.video-modal.active{flex-direction:column;justify-content:flex-start;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-top:max(8px,env(safe-area-inset-top))}
.video-modal-content{flex-shrink:0;margin-top:auto}
.video-modal-content video{max-height:62vh!important}
#lh-video-comments{width:100%;max-width:96vw;margin:10px auto auto;flex-shrink:0}
@media(min-width:1024px){#lh-video-comments{max-width:1200px}}
#lh-video-comments:empty{display:none}
.lh-cm{background:var(--card);color:var(--text);border-radius:16px;padding:14px;direction:rtl;text-align:right}
html[lang="en"] .lh-cm{direction:ltr;text-align:left}
.lh-cm-head h4{margin:0 0 10px;font-size:16px;color:var(--text)}
.lh-cm-form{display:flex;gap:8px;align-items:flex-end;margin-bottom:12px}
.lh-cm-in{flex:1;min-width:0;border:1px solid var(--border);border-radius:12px;padding:9px 12px;font:inherit;font-size:16px!important;line-height:1.6;background:var(--bg,#fff);color:var(--text);resize:vertical;min-height:44px}
.lh-cm-send{min-height:0!important;padding:10px 18px!important;font-size:14px!important;white-space:nowrap}
.lh-cm-list{display:flex;flex-direction:column;gap:10px}
.lh-cm-empty{margin:0;font-size:13.5px}
.lh-cm-it{border:1px solid var(--border);border-radius:12px;padding:9px 12px;background:var(--bg,transparent)}
.lh-cm-it.pinned{border-color:#c9a646;box-shadow:inset 3px 0 0 #c9a646}
html[lang="en"] .lh-cm-it.pinned{box-shadow:inset -3px 0 0 #c9a646}
.lh-cm-it.hid{opacity:.55}
.lh-cm-it.adm{background:rgba(47,74,31,.07);border-color:rgba(47,74,31,.35)}
.lh-cm-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13.5px}
.lh-cm-top .lh-muted{font-size:12px}
.lh-cm-tag{font-size:11px;padding:1px 8px;border-radius:20px;background:#c9a64633;color:#7a5f14}
.lh-cm-tag.off{background:#8f1d1622;color:#8f1d16}
.lh-cm-body{margin-top:4px;font-size:14.5px;line-height:1.7;white-space:pre-line;overflow-wrap:anywhere}
.lh-cm-acts{display:flex;gap:14px;flex-wrap:wrap;margin-top:6px}
.lh-cm-a{background:none;border:0;padding:2px 0;font:inherit;font-size:12.5px;color:var(--muted);cursor:pointer;min-height:0}
.lh-cm-a:hover{color:var(--text);text-decoration:underline}
.lh-cm-a.danger{color:#8f1d16}
.lh-cm-replies{margin-top:8px;padding-inline-start:12px;border-inline-start:2px solid rgba(47,74,31,.25);display:flex;flex-direction:column;gap:8px}
.lh-cm-rf{margin:8px 0 0}

/* v27 comments: 300-char limit with counter */
.lh-cm-wrap{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.lh-cm-count{align-self:flex-end;font-size:11px;color:#9a958a;direction:ltr;padding-inline:4px}
.lh-cm-count.full{color:#c0392b;font-weight:600}
.lh-cm-form{align-items:flex-start}

/* v28 comments: trainee comments on white, black text */
.lh-cm-it:not(.adm){background:#fff;border-color:#e3ddcc}
.lh-cm-it:not(.adm) .lh-cm-top b,.lh-cm-it:not(.adm) .lh-cm-body{color:#141414}

/* v29 messages card: two sections (floating-menu inquiries / video comments) */
#sup-card .lh-sup-tabs{grid-template-columns:repeat(2,minmax(0,1fr));margin:8px 0 12px}
#sup-card .lh-sup-tabs .sched-tab{min-height:54px;font-size:13px}
#sup-card .lh-sup-tabs .sched-tab small{display:block!important;font-size:11px}
#sup-card .lh-sup-pane[hidden]{display:none}
#sup-card .lh-sup-rep{margin-top:8px;padding:8px 10px;border-radius:10px;background:rgba(47,74,31,.07);border:1px solid rgba(47,74,31,.25);font-size:13.5px;line-height:1.6;white-space:pre-line}
#sup-card .lh-cm-rf{margin-top:10px}
#sup-card .lh-sup-del{color:#a33!important}
#sup-card .lh-who-tr{background:#eef3e8;border-color:#2f4a1f;color:#2f4a1f}
#sup-card .lh-who-mb{background:#fbf5e6;border-color:#b08a2e;color:#7a5c14}
#sup-card .lh-who-adm{background:#f1f1f1;border-color:#888;color:#444}

/* v30 inbox badges + reply signature */
#sup-card .lh-who-tc{background:#f1ebfa;border-color:#6b3fa0;color:#5a2f8c}
#sup-card .lh-who-tr{background:#eef3e8;border-color:#2f4a1f;color:#2f4a1f}
#sup-card .lh-who-mb{background:transparent;border-color:#bdb7a8;color:#5c5a4c}
.lh-cm-logo{width:22px;height:22px;border-radius:50%;object-fit:cover;flex:none;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.lh-sup-rep-h{display:flex;align-items:center;gap:6px;margin-bottom:4px}
.lh-ras{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:8px 0 6px;font-size:13px}
.lh-ras-l{color:var(--muted)}
.lh-ras-b{display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 6px;border-radius:999px;border:1px solid var(--border);background:#fff;color:#141414;font:inherit;font-size:12.5px;cursor:pointer}
.lh-ras-b img{width:20px;height:20px;border-radius:50%;object-fit:cover}
.lh-ras-b.on{border:2px solid #2f4a1f;background:#eef3e8;font-weight:600}
.lh-note-guest{display:flex;flex-direction:column;gap:2px;margin-top:6px}
.lh-note-guest .lh-in{font-size:16px}
.lh-note-hint{font-size:12px;margin-top:4px}
/* visitors on the sign-in screen can still open "contact us" and send a note */
body:has(#auth-gate.active) .lh-fab-dim{z-index:10010}
body:has(#auth-gate.active) :is(.lh-fab,.lh-fab-menu,.lh-fab-hint){z-index:10020}
body:has(#auth-gate.active) .lh-overlay{z-index:10030}
body:has(#auth-gate.active) .lh-toast{z-index:10040}
#sup-card .lh-who-wrap{display:inline-flex;gap:4px;flex-wrap:wrap}
#sup-card .lh-who-acc{background:#eef3e8;border-color:#2f4a1f;color:#2f4a1f}
.lh-note-hasacc{margin:10px 0 4px;padding:12px;border-radius:12px;border:1.5px solid #b08a2e;background:#fbf5e6;color:#3b3526;font-size:14px;line-height:1.6}
.lh-note-hasacc p{margin:4px 0 10px}
/* v31 member level colors */
#sup-card .lh-who-pr{background:#fbf3dc;border-color:#b08a2e;color:#7a5c14;font-weight:600}
#sup-card .lh-who-st{background:#e6f3f1;border-color:#2b7a6f;color:#1f5c53}
#sup-card .lh-who-bs{background:#e8eef8;border-color:#3a5f9e;color:#2c4a7c}
#sup-card .lh-who-new{background:#2f4a1f;border-color:#2f4a1f;color:#fff;font-weight:600}

/* v32 «قسم المحترفين» */
.lh-pro-card{border:1.5px solid #b08a2e!important;background:linear-gradient(180deg,#fffaf0,#fbf3dc)!important}
.lh-pro-card .home-ico{color:#b08a2e}
#pro{direction:rtl;text-align:right}
html[lang="en"] #pro{direction:ltr;text-align:left}
.lh-pro-head{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.lh-pro-head h2{margin:0 0 4px}
.lh-pro-head p{margin:0;font-size:14px}
.lh-pro-ic{flex:none;width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#2f4a1f;color:#e3c36a;box-shadow:0 0 0 3px #e3c36a inset}
.lh-pro-ic svg{width:28px;height:28px}
.lh-pro-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:14px}
.lh-pro-tab{min-height:44px;border-radius:10px;border:1px solid var(--border);background:var(--card);color:var(--text);font:inherit;font-size:14px;cursor:pointer}
.lh-pro-tab.on{border:2px solid #b08a2e;background:#fbf3dc;color:#5c4510;font-weight:700}
.lh-pro-body{background:var(--card);border-radius:16px;padding:14px;color:var(--text)}
.lh-pro-note{font-size:13px;color:#5c4510;background:#fbf3dc;border:1px solid #e6d3a2;border-radius:10px;padding:8px 10px;margin:0 0 12px}
.lh-pro-empty{margin:6px 0}
.lh-pro-list{display:flex;flex-direction:column;gap:8px}
.lh-pro-item{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid var(--border);border-radius:12px;padding:10px 12px;background:#fff;color:#141414}
.lh-pro-it-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.lh-pro-it-t .lh-muted{font-size:12.5px}
.lh-pro-new{display:flex;flex-direction:column;gap:8px;border:1px dashed #b08a2e;border-radius:12px;padding:12px;margin:12px 0}
.lh-pro-new h4{margin:0;font-size:15px}
.lh-pro-new .lh-in{font-size:16px}
.lh-pro-topics{display:flex;flex-direction:column;gap:10px}
.lh-pro-topic{border:1px solid var(--border);border-radius:12px;padding:10px 12px;background:#fff;color:#141414}
.lh-pro-topic.pinned{border-color:#c9a646;box-shadow:inset 3px 0 0 #c9a646}
.lh-pro-topic.adm{background:#f4f7f0}
.lh-pro-tt{margin:6px 0 2px;font-size:15.5px;color:#141414}
.lh-pro-who{display:inline-flex;align-items:center;gap:6px}
.lh-pro-badge{display:inline-block;padding:1px 8px;border-radius:999px;background:linear-gradient(180deg,#e3c36a,#b08a2e);color:#2a1f05;font-size:11px;font-weight:700;line-height:1.6}
#pro .lh-cm-replies[hidden],#pro .lh-pro-body [hidden]{display:none!important}

/* v33 home: the professionals card is a wide card above the four sections */
html body #home .grid.grid-4 .lh-pro-card{grid-column:1/-1}
.lh-pro-card-in{display:flex;align-items:center;justify-content:center;gap:14px;padding:16px 10px}
.lh-pro-card-in .home-ico{margin:0!important;flex:none}
.lh-pro-card-tx{text-align:start}
.lh-pro-card-tx h3{margin:0 0 4px!important;color:#7a5c14!important}
.lh-pro-card-tx .card-hint{margin:0!important}
.lh-pro-card-in{flex-direction:column!important;gap:6px!important;text-align:center}
.lh-pro-card-tx{text-align:center!important;flex:none!important;width:auto!important}
.lh-pro-card-tx h3{margin:6px 0 4px!important}
.lh-pro-card-in{gap:0!important}.lh-pro-card-tx h3{margin:10px 0 4px!important}
html body #home .grid .card.home-card.lh-pro-card{border:2px solid #c9a646!important;background:linear-gradient(180deg,#fffaf0,#f8ecc9)!important;box-shadow:0 6px 18px rgba(176,138,46,.18)!important}
html body #home .lh-pro-card .home-ico{box-shadow:0 0 0 4px rgba(201,166,70,.35)!important}
/* v34 professionals card: low height, icon beside the text, gold bold text */
html body #home .lh-pro-card .lh-pro-card-in{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:14px!important;padding:12px 10px!important}
html body #home .lh-pro-card .home-ico{width:52px!important;height:52px!important;min-width:52px!important}
html body #home .lh-pro-card .home-ico svg{width:24px!important;height:24px!important}
html body #home .lh-pro-card .lh-pro-card-tx{flex:0 1 auto!important;width:auto!important;text-align:start!important}
html body #home .lh-pro-card .lh-pro-card-tx h3{margin:0 0 2px!important;font-size:21px!important;font-weight:800!important;color:#8a6414!important}
html body #home .lh-pro-card .lh-pro-card-tx .card-hint{margin:0!important;font-size:14.5px!important;font-weight:700!important;color:#6b5420!important}
html body #home .grid .card.home-card.lh-pro-card .home-ico{margin:0!important}html body #home .grid .card.home-card.lh-pro-card .lh-pro-card-tx{margin:0!important}

/* v35 professionals card: text centred, certificate flags */
html body #home .grid .card.home-card.lh-pro-card .lh-pro-card-tx{text-align:center!important}
.lh-pro-hint{display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px}
.lh-pro-cert{display:inline-flex;align-items:center;gap:4px;font-weight:800}
.lh-pro-cert img{width:20px;height:14px;border-radius:2px;object-fit:cover;box-shadow:0 0 0 1px rgba(0,0,0,.15)}
/* v36 professionals hint: one line, smaller, black */
html body #home .grid .card.home-card.lh-pro-card .lh-pro-card-tx .card-hint.lh-pro-hint{font-size:12px!important;font-weight:600!important;color:#141414!important;flex-wrap:nowrap!important;white-space:nowrap!important;gap:3px!important}
html body #home .lh-pro-card .lh-pro-cert{font-weight:700}
html body #home .lh-pro-card .lh-pro-cert img{width:16px;height:11px}
@media(max-width:380px){html body #home .grid .card.home-card.lh-pro-card .lh-pro-card-tx .card-hint.lh-pro-hint{font-size:11px!important}}
/* v37 professionals card: icon above the text, all centred, still compact */
html body #home .lh-pro-card .lh-pro-card-in{flex-direction:column!important;gap:6px!important;padding:12px 10px!important}
html body #home .lh-pro-card .home-ico{width:46px!important;height:46px!important;min-width:46px!important}
html body #home .lh-pro-card .home-ico svg{width:22px!important;height:22px!important}
html body #home .lh-pro-card .lh-pro-card-tx h3{font-size:20px!important}

/* v38 IPF only: French-flag background for the professionals card and section */
html body #home .grid .card.home-card.lh-pro-card{background:
  linear-gradient(180deg,rgba(255,250,240,.55),rgba(248,236,201,.55)),
  linear-gradient(90deg,#d9e1f5 0 33.3%,#fffdf6 33.3% 66.6%,#f8d9dc 66.6% 100%)!important}
html[dir="rtl"] body #home .grid .card.home-card.lh-pro-card,body[dir="rtl"] #home .grid .card.home-card.lh-pro-card{background:
  linear-gradient(180deg,rgba(255,250,240,.55),rgba(248,236,201,.55)),
  linear-gradient(270deg,#d9e1f5 0 33.3%,#fffdf6 33.3% 66.6%,#f8d9dc 66.6% 100%)!important}
#pro .lh-pro-head{position:relative;overflow:hidden;border-radius:16px;padding:14px;border:1.5px solid #c9a646;
  background:linear-gradient(180deg,rgba(255,252,245,.5),rgba(255,252,245,.5)),linear-gradient(90deg,#c8d3f0 0 33.3%,#fffdf6 33.3% 66.6%,#f5cdd1 66.6% 100%)}
#pro .lh-pro-head::after{content:"";position:absolute;inset:auto 0 0 0;height:5px;background:linear-gradient(90deg,#002395 0 33.3%,#fff 33.3% 66.6%,#ed2939 66.6% 100%)}
html body #home .lh-pro-card{position:relative;overflow:hidden}
html body #home .lh-pro-card::after{content:"";position:absolute;inset:auto 0 0 0;height:4px;background:linear-gradient(90deg,#002395 0 33.3%,#fff 33.3% 66.6%,#ed2939 66.6% 100%)}
/* the French flag reads blue-white-red from the left in every language */
html body #home .grid .card.home-card.lh-pro-card,html[dir="rtl"] body #home .grid .card.home-card.lh-pro-card,body[dir="rtl"] #home .grid .card.home-card.lh-pro-card{background:
  linear-gradient(180deg,rgba(255,250,240,.45),rgba(248,236,201,.45)),
  linear-gradient(90deg,#d3dcf4 0 33.3%,#fffdf6 33.3% 66.6%,#f7d3d7 66.6% 100%)!important}

/* v39 professionals: warm Paris panorama (illustration) instead of flat flag colours */
html body #home .grid .card.home-card.lh-pro-card,html[dir="rtl"] body #home .grid .card.home-card.lh-pro-card,body[dir="rtl"] #home .grid .card.home-card.lh-pro-card{
  background:url(assets/pro-paris.svg) center bottom/cover no-repeat,#fbefd6!important}
html body #home .lh-pro-card::after{display:none!important}
#pro .lh-pro-head{background:url(assets/pro-paris.svg) center bottom/cover no-repeat,#fbefd6!important;padding:18px 14px!important}
#pro .lh-pro-head::after{display:none!important}
#pro .lh-pro-head h2{color:#8a6414!important}
#pro .lh-pro-head p{color:#141414!important;font-weight:600}
/* v40 professionals: real photo of Paris at dusk (Unsplash licence, free for commercial use) */
html body #home .grid .card.home-card.lh-pro-card,html[dir="rtl"] body #home .grid .card.home-card.lh-pro-card,body[dir="rtl"] #home .grid .card.home-card.lh-pro-card{
  background:radial-gradient(ellipse 60% 85% at 50% 55%,rgba(255,248,236,.9) 0%,rgba(255,248,236,.72) 45%,rgba(255,248,236,.15) 100%),url(assets/pro-paris.jpg?v=2) 62% 70%/cover no-repeat,#f3e2c7!important}
#pro .lh-pro-head{background:linear-gradient(90deg,rgba(255,248,236,.2),rgba(255,248,236,.85) 40%,rgba(255,248,236,.92)),url(assets/pro-paris.jpg?v=2) 62% 70%/cover no-repeat,#f3e2c7!important}
html[dir="rtl"] #pro .lh-pro-head,body[dir="rtl"] #pro .lh-pro-head{background:linear-gradient(270deg,rgba(255,248,236,.2),rgba(255,248,236,.85) 40%,rgba(255,248,236,.92)),url(assets/pro-paris.jpg?v=2) 62% 70%/cover no-repeat,#f3e2c7!important}
/* v41 French flag as a deep, satin ribbon on the left edge (hoist side) */
html body #home .lh-pro-card::before,#pro .lh-pro-head::before{content:"";position:absolute;top:0;bottom:0;left:0;width:30px;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,#0b2463 0 10px,#f3ecdc 10px 20px,#8e1626 20px 30px);
  box-shadow:2px 0 10px rgba(0,0,0,.22)}
html body #home .lh-pro-card::after,#pro .lh-pro-head::after{display:block!important;content:"";position:absolute;top:0;bottom:0;left:0;width:30px;height:auto;z-index:2;pointer-events:none;inset:0 auto 0 0;
  background:linear-gradient(180deg,rgba(255,255,255,.28),rgba(255,255,255,0) 40%,rgba(0,0,0,.18) 100%),
    repeating-linear-gradient(180deg,rgba(255,255,255,.05) 0 2px,rgba(0,0,0,.04) 2px 4px)}
html body #home .lh-pro-card,#pro .lh-pro-head{position:relative;overflow:hidden}
html body #home .lh-pro-card .lh-pro-card-in,#pro .lh-pro-head>*{position:relative;z-index:3}
#pro .lh-pro-head{padding-left:44px!important}
/* v42 photo: Paris at sunset seen from Notre-Dame (Unsplash licence) — keep the sunset and the Eiffel tower visible */
html body #home .grid .card.home-card.lh-pro-card,html[dir="rtl"] body #home .grid .card.home-card.lh-pro-card,body[dir="rtl"] #home .grid .card.home-card.lh-pro-card{
  background:radial-gradient(ellipse 52% 80% at 50% 58%,rgba(255,247,232,.88) 0%,rgba(255,247,232,.62) 45%,rgba(255,247,232,.05) 100%),url(assets/pro-paris.jpg?v=2) 50% 45%/cover no-repeat,#e9cfa8!important}
#pro .lh-pro-head,html[dir="rtl"] #pro .lh-pro-head,body[dir="rtl"] #pro .lh-pro-head{
  background:radial-gradient(ellipse 60% 95% at 60% 55%,rgba(255,247,232,.9) 0%,rgba(255,247,232,.66) 50%,rgba(255,247,232,.08) 100%),url(assets/pro-paris.jpg?v=2) 50% 45%/cover no-repeat,#e9cfa8!important}
@media(min-width:700px){html body #home .grid .card.home-card.lh-pro-card,html[dir="rtl"] body #home .grid .card.home-card.lh-pro-card{background-position:center,50% 22%,0 0!important}}

/* v43 the designed IPF banner (his own picture) replaces the drawn card */
html body #home .grid .card.home-card.lh-pro-card.lh-pro-banner{padding:0!important;border:0!important;background:#0f1a33!important;border-radius:18px!important;overflow:hidden;box-shadow:0 8px 22px rgba(15,26,51,.28)!important;line-height:0;cursor:pointer}
html body #home .lh-pro-card.lh-pro-banner::before,html body #home .lh-pro-card.lh-pro-banner::after{display:none!important}
html body #home .lh-pro-card.lh-pro-banner img{display:block;width:100%;height:auto}
html body #home .lh-pro-card.lh-pro-banner:hover{transform:translateY(-2px)}
.lh-pro-banner-head{border-radius:18px;overflow:hidden;line-height:0;margin-bottom:14px;box-shadow:0 8px 22px rgba(15,26,51,.25);background:#0f1a33}
.lh-pro-banner-head img{display:block;width:100%;height:auto}
#pro .lh-pro-head[hidden]{display:none!important}
html body #home .grid .card.home-card.lh-pro-card.lh-pro-banner{justify-self:center;width:100%;max-width:820px}.lh-pro-banner-head{max-width:820px;margin-inline:auto}

/* v44 IPF books in downloads */
.lh-ipf-tag{display:inline-block;margin-inline-start:8px;padding:1px 8px;border-radius:999px;background:linear-gradient(180deg,#e3c36a,#b08a2e);color:#2a1f05;font-size:11px;font-weight:800;vertical-align:middle;letter-spacing:.5px}
.downloads-item.lh-ipf-item{border-color:#c9a646!important}
.downloads-item.lh-ipf-locked{border:1.5px dashed #c9a646!important;background:linear-gradient(90deg,#fffaf0,#fbf1da)!important}
.downloads-item.lh-ipf-locked h3{color:#5c4510!important}
.lh-ipf-note{margin:0;font-size:13.5px;color:#7a5c14}
.btn.lh-ipf-lockbtn{background:#0f1a33!important;color:#e3c36a!important;border:1px solid #c9a646!important;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
html body #downloads .downloads-item.lh-ipf-locked{background:linear-gradient(90deg,#fffaf0,#f8ecd0)!important}
html body #downloads .downloads-item.lh-ipf-locked::before{background:#0f1a33 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3c36a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/20px no-repeat!important;box-shadow:inset 0 0 0 1px #c9a646!important}
html body #downloads .downloads-item.lh-ipf-locked h3{color:#5c4510!important}
html body #downloads .downloads-item .btn.lh-ipf-lockbtn{background:#0f1a33!important;color:#e3c36a!important;border:1px solid #c9a646!important;background-image:none!important;padding-inline:14px!important}
html body #downloads .downloads-item .btn.lh-ipf-lockbtn::before,html body #downloads .downloads-item .btn.lh-ipf-lockbtn::after{display:none!important;content:none!important}

/* v45 comments by IPF holders stand out */
.lh-cm-it.lh-cm-ipf:not(.adm){background:linear-gradient(135deg,#fffaf0 0%,#fbf0d6 100%)!important;border:1.5px solid #c9a646!important;box-shadow:0 3px 12px rgba(176,138,46,.18);position:relative;overflow:hidden}
.lh-cm-it.lh-cm-ipf:not(.adm)::before{content:"";position:absolute;top:0;bottom:0;inset-inline-start:0;width:5px;background:linear-gradient(180deg,#0b2463 0 33.3%,#f3ecdc 33.3% 66.6%,#8e1626 66.6% 100%)}
.lh-cm-it.lh-cm-ipf:not(.adm) > .lh-cm-top > b{color:#8a6414!important}
.lh-ipf-badge{display:inline-flex;align-items:center;gap:5px;padding:2px 9px 2px 7px;border-radius:999px;background:#0f1a33;color:#e3c36a;border:1px solid #c9a646;font-size:11.5px;font-weight:800;line-height:1.5;white-space:nowrap}
.lh-ipf-flag{display:inline-block;width:14px;height:10px;border-radius:2px;background:linear-gradient(90deg,#0b2463 0 33.3%,#f3ecdc 33.3% 66.6%,#8e1626 66.6% 100%);box-shadow:0 0 0 1px rgba(227,195,106,.6)}
.lh-ipf-badge bdi{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-weight:700;letter-spacing:.3px;font-size:12px}

/* v46 professionals card visible to all; locked for non-holders */
html body #home .lh-pro-card.lh-pro-locked{position:relative}
html body #home .lh-pro-card.lh-pro-locked img{filter:saturate(.85)}
.lh-pro-lockchip{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;background:rgba(15,26,51,.92);color:#e3c36a;border:1px solid #c9a646;font-size:12px;font-weight:700;line-height:1.4;white-space:nowrap;z-index:5;box-shadow:0 4px 12px rgba(0,0,0,.35)}
.lh-pro-gate-box{text-align:center;max-width:420px}
.lh-pro-gate-img{display:block;width:100%;height:auto;border-radius:12px;margin-bottom:12px}
.lh-pro-gate-lock{width:52px;height:52px;margin:-38px auto 8px;border-radius:50%;display:grid;place-items:center;background:#0f1a33;color:#e3c36a;border:2px solid #c9a646;position:relative}
.lh-pro-lockchip{top:10px!important;bottom:auto!important;left:auto!important;right:14px!important;transform:none!important;font-size:11px!important;padding:3px 9px!important}@media(max-width:520px){.lh-pro-lockchip{top:7px!important;right:10px!important;font-size:10px!important;padding:2px 7px!important}.lh-pro-lockchip svg{width:11px;height:11px}}
.lh-pro-lockchip{width:32px;height:32px;padding:0!important;justify-content:center;border-radius:50%!important;top:14px!important;right:18px!important}.lh-pro-lockchip svg{width:15px!important;height:15px!important}@media(max-width:520px){.lh-pro-lockchip{width:24px;height:24px;top:9px!important;right:12px!important}.lh-pro-lockchip svg{width:12px!important;height:12px!important}}

/* v47 — pro: tools «قريبا», famous formulas, locked IPF videos */
.lh-pro-soon{position:relative;text-align:center;padding:34px 20px 30px;border-radius:18px;border:1.5px dashed rgba(184,146,63,.55);background:linear-gradient(180deg,rgba(212,175,55,.08),rgba(212,175,55,.02));margin:6px 0 16px}
.lh-pro-soon-ic{width:58px;height:58px;margin:0 auto 10px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#1f2a44;color:#e6c66a;box-shadow:0 6px 18px rgba(31,42,68,.25)}
.lh-pro-soon-tag{display:inline-block;background:linear-gradient(135deg,#d4af37,#b8923f);color:#fff;font-weight:800;font-size:15px;padding:5px 18px;border-radius:999px;letter-spacing:.3px;margin-bottom:10px}
.lh-pro-soon h3{margin:4px 0 6px;font-size:19px}
.lh-pro-soon p{margin:0 auto;max-width:440px;color:var(--muted);line-height:1.7;font-size:14px}
.lh-fm-intro{margin-bottom:12px}
.lh-fm-list{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.lh-fm-card{border:1px solid rgba(184,146,63,.35);border-radius:14px;padding:14px 16px;background:#fff;display:flex;flex-direction:column;gap:8px;box-shadow:0 2px 10px rgba(0,0,0,.04)}
.lh-fm-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.lh-fm-t{display:flex;flex-direction:column;gap:3px;min-width:0}
.lh-fm-t b{font-size:16px;line-height:1.4}
.lh-fm-insp{font-size:13px;color:#8a6d2b}
.lh-fm-badge{flex:none;font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;white-space:nowrap}
.lh-fm-badge.free{background:#e7f4ec;color:#1f7a45}
.lh-fm-badge.req{background:#1f2a44;color:#e6c66a}
.lh-fm-desc{margin:0;color:var(--muted);font-size:13.5px;line-height:1.6}
.lh-fm-acts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:auto}
.lh-fm-state{font-size:13px;font-weight:700;color:#8a6d2b;background:rgba(212,175,55,.14);padding:4px 10px;border-radius:999px}
.lh-fm-state.done{color:#1f7a45;background:#e7f4ec}
.lh-fm-ask{margin-top:18px}
.lh-fm-ask p{margin:0 0 8px;font-size:13px}
.lh-fm-mine{margin-top:16px;display:flex;flex-direction:column;gap:8px}
.lh-fm-mine h4{margin:0 0 4px}
.lh-fm-req{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid rgba(0,0,0,.08);border-radius:12px;padding:10px 12px;background:#fff}
.lh-fm-req.is-done{opacity:.7}
.lh-fm-req-t{flex:1;min-width:200px;display:flex;flex-direction:column;gap:3px}
.lh-fm-req-t .lh-muted{font-size:12.5px}
.lh-fm-note{font-size:13px;background:#faf7ef;border-radius:8px;padding:6px 8px}
.lh-fm-hint{font-size:12.5px;margin:0}
.lh-vid-locked{cursor:pointer;border:1.5px dashed rgba(184,146,63,.6)!important;background:linear-gradient(180deg,rgba(212,175,55,.06),#fff)}
.lh-vid-lock-th{aspect-ratio:16/9;border-radius:8px;margin-bottom:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:linear-gradient(135deg,#1f2a44,#2c3a5c);color:#e6c66a;position:relative;overflow:hidden}
.lh-vid-lock-th::after{content:"";position:absolute;inset-inline-end:0;top:0;bottom:0;width:6px;background:linear-gradient(180deg,#0055a4 0 33.3%,#fff 33.3% 66.6%,#ef4135 66.6%)}
.lh-vid-lock-ic{width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(212,175,55,.16);border:1px solid rgba(212,175,55,.5)}
.lh-vid-lock-tx{font-size:13.5px;font-weight:700}
.lh-vid-locked h3{margin:0 0 6px;font-size:16px;line-height:1.4}
.lh-pro-tabs{display:grid!important;grid-template-columns:repeat(4,1fr);gap:8px}
.lh-pro-tabs .lh-pro-tab{white-space:nowrap;padding-inline:8px}
@media (max-width:560px){.lh-pro-tabs{grid-template-columns:repeat(2,1fr)}}
.lh-fm-insp bdi{display:inline-block}
.lh-vid-lock-tx{display:none}
.lh-vid-lock-th{gap:0}
.lh-vid-lock-ic{width:44px;height:44px}
.lh-vid-lock-ic svg{width:20px;height:20px}

/* v48 — pro content: videos and files in separate, tidy sections */
.lh-pc-sec{margin:6px 0 22px}
.lh-pc-head{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid rgba(184,146,63,.3)}
.lh-pc-head h3{margin:0;font-size:17px;flex:1}
.lh-pc-hic{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#1f2a44;color:#e6c66a}
.lh-pc-n{font-size:13px;font-weight:700;color:#8a6d2b;background:rgba(212,175,55,.15);border-radius:999px;padding:2px 10px}
.lh-pc-vgrid{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.lh-pc-vcard{all:unset;cursor:pointer;display:flex;flex-direction:column;border:1px solid rgba(184,146,63,.35);border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.04)}
.lh-pc-vcard:focus-visible{outline:2px solid #b8923f;outline-offset:2px}
.lh-pc-vth{aspect-ratio:16/9;background:linear-gradient(135deg,#1f2a44,#2c3a5c);position:relative;display:flex;align-items:center;justify-content:center}
.lh-pc-vth img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.lh-pc-play{position:relative;width:52px;height:52px;border-radius:50%;background:rgba(212,175,55,.95);color:#0b0b0b;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.35)}
.lh-pc-play svg{width:24px;height:24px;margin-inline-start:3px}
.lh-pc-vt{padding:10px 12px 12px;display:flex;flex-direction:column;gap:3px}
.lh-pc-vt b{font-size:15px;line-height:1.45}
.lh-pc-vt .lh-muted{font-size:12.5px}
.lh-pc-dlist{display:flex;flex-direction:column;gap:8px}
.lh-pc-doc{display:flex;align-items:center;gap:12px;border:1px solid rgba(0,0,0,.08);border-radius:12px;padding:10px 12px;background:#fff}
.lh-pc-type{flex:none;width:42px;height:42px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:#fff}
.lh-pc-type.pdf{background:#b23b3b}.lh-pc-type.xl{background:#1f7a45}
.lh-pc-dt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.lh-pc-dt b{font-size:15px;line-height:1.45}
.lh-pc-dt .lh-muted{font-size:12.5px}
.lh-pc-doc .btn{flex:none;width:auto;min-width:0;padding:8px 16px}
@media (max-width:560px){.lh-pc-vgrid{grid-template-columns:repeat(2,1fr);gap:10px}.lh-pc-vt b{font-size:13.5px}.lh-pc-play{width:40px;height:40px}.lh-pc-play svg{width:18px;height:18px}}

/* v49 — «صيغ عطرية جاهزة» service (window, catalogue, pro tab, admin) */
.lh-frm-intro p{margin:0 0 10px}
.lh-frm-inc{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.lh-frm-incit{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:#1f7a45;background:#e7f4ec;border-radius:999px;padding:5px 12px}
.lh-frm-pricew{display:flex;flex-direction:column;gap:6px}
.lh-frm-tier{align-self:flex-start;font-size:12.5px;font-weight:800;border-radius:999px;padding:3px 12px}
.lh-frm-tier.pro{background:#1f2a44;color:#e6c66a}
.lh-frm-tier.member{background:rgba(212,175,55,.18);color:#8a6d2b}
.lh-frm-q{margin:4px 0 12px}
.lh-frm-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));margin-top:6px}
.lh-frm-card{border:1px solid rgba(184,146,63,.35);border-radius:14px;padding:14px;background:#fff;display:flex;flex-direction:column;gap:8px;box-shadow:0 2px 10px rgba(0,0,0,.04)}
.lh-frm-ctop{display:flex;gap:10px;align-items:flex-start}
.lh-frm-cic{flex:none;width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#1f2a44;color:#e6c66a}
.lh-frm-ct{display:flex;flex-direction:column;gap:3px;min-width:0}
.lh-frm-ct b{font-size:15.5px;line-height:1.45}
.lh-fm-insp bdi{display:inline-block}
.lh-frm-fam{align-self:flex-start;font-size:12px;color:#8a6d2b;background:#faf3e0;border-radius:999px;padding:2px 10px}
.lh-frm-cfoot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:8px;border-top:1px dashed rgba(184,146,63,.3)}
.lh-frm-cp{font-size:16px;color:#1f2a44}
.lh-frm-ask{margin-top:16px;border:1.5px dashed rgba(184,146,63,.55);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:6px;align-items:flex-start;background:rgba(212,175,55,.05)}
.lh-frm-ask span{color:var(--muted);font-size:13.5px}
.lh-frm-ask .btn{margin-top:6px}
.lh-frm-sel{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid rgba(184,146,63,.4);border-radius:12px;padding:12px;background:#fffdf7}
.lh-frm-sel>div{display:flex;flex-direction:column;gap:3px}
.lh-frm-chg{all:unset;cursor:pointer;color:#8a6d2b;font-weight:700;font-size:13.5px;text-decoration:underline}
.lh-frm-p{margin:0 0 8px;font-size:13.5px}
.lh-frm-homecard{display:flex;align-items:center;gap:14px;cursor:pointer;border:1.5px solid rgba(184,146,63,.45)!important;background:linear-gradient(135deg,#fffdf7,#f8f0dc)!important}
.lh-frm-hico{flex:none;width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#1f2a44;color:#e6c66a}
.lh-frm-hico svg{width:26px;height:26px}
.lh-frm-htx{flex:1;min-width:0}.lh-frm-htx h3{margin:0 0 4px}.lh-frm-htx p{margin:0}
.lh-frm-harr{flex:none;font-weight:800;font-size:13px;color:#fff;background:#b8923f;border-radius:999px;padding:6px 14px}
.lh-pfm-hero{border-radius:16px;padding:16px;background:linear-gradient(135deg,#1f2a44,#2c3a5c);color:#fff;display:flex;flex-direction:column;gap:8px;margin-bottom:18px;position:relative;overflow:hidden}
.lh-pfm-hero::after{content:"";position:absolute;inset-inline-end:0;top:0;bottom:0;width:6px;background:linear-gradient(180deg,#0055a4 0 33.3%,#fff 33.3% 66.6%,#ef4135 66.6%)}
.lh-pfm-hero>b{font-size:17px;color:#e6c66a}
.lh-pfm-hero p{margin:0;color:rgba(255,255,255,.85);font-size:13.5px;line-height:1.7}
.lh-pfm-price{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.lh-pfm-price b{font-size:22px;color:#fff}
.lh-pfm-price s{color:rgba(255,255,255,.55);font-size:14px}
.lh-pfm-price .lh-frm-tier.pro{background:#e6c66a;color:#1f2a44}
.lh-pfm-btns{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.lh-pfm-hero .btn.secondary{background:transparent;color:#fff;border-color:rgba(255,255,255,.6)}
.lh-frm-free{border-color:rgba(31,122,69,.35)}
.lh-frm-alist{display:flex;flex-direction:column;gap:8px;margin:10px 0}
.lh-frm-arow{display:flex;align-items:center;gap:8px;border:1px solid rgba(0,0,0,.08);border-radius:12px;padding:10px 12px;background:#fff}
.lh-frm-arow.off{opacity:.55}
.lh-frm-art{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.lh-frm-art .lh-muted{font-size:12.5px}
.lh-frm-ainfo{display:flex;flex-direction:column;gap:4px;font-size:14px;margin-bottom:10px}
.lh-frm-was{display:flex;gap:10px;align-items:center;font-size:13px}
.lh-frm-was s{color:var(--muted)}.lh-frm-was span{color:#1f7a45;font-weight:700}
.lh-frm-wrap .lh-if-paybtn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 28px;line-height:1}
.lh-pfm-hero .lh-pfm-btns .btn.secondary{background:transparent!important;color:#fff!important;border:1.5px solid rgba(255,255,255,.65)!important}

#frm-card .lh-frm-ainfo{padding:10px 14px 0}

/* v51 — trainee home: «خدماتنا» row (IFRA certificate + ready-made formulas) */
.lh-svc-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:6px}
.lh-svc-tile{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;gap:12px;min-width:0;padding:14px;border-radius:16px;border:1px solid rgba(184,146,63,.4);background:linear-gradient(135deg,#fffdf7,#f7efda);box-shadow:0 2px 10px rgba(0,0,0,.04);transition:transform .15s}
.lh-svc-tile:hover{transform:translateY(-1px)}
.lh-svc-tile:focus-visible{outline:2px solid #b8923f;outline-offset:2px}
.lh-svc-ic{flex:none;width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--olive,#2f4a1e);color:#e0ad55;box-shadow:inset 0 0 0 1.5px rgba(217,154,66,.6)}
.lh-svc-ic svg{width:24px;height:24px}
.lh-svc-tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.lh-svc-tx b{font-size:15px;line-height:1.35;color:var(--text)}
.lh-svc-tx small{font-size:12.5px;color:var(--muted);line-height:1.4}
@media (max-width:560px){.lh-svc-grid{gap:10px}.lh-svc-tile{flex-direction:column;text-align:center;gap:8px;padding:14px 8px}.lh-svc-tx b{font-size:14px}}

/* v52 — store invoices: buy in the store, then complete with the invoice number / personal link */
.lh-st-sec{border:1.5px solid rgba(184,146,63,.45);border-radius:14px;padding:14px;background:#fffdf7}
.lh-st-p{margin:0 0 10px;font-size:13.5px;color:var(--muted);line-height:1.7}
.lh-st-buy{display:inline-flex;align-items:center;justify-content:center;margin-bottom:10px}
.lh-st-lock{display:flex;flex-direction:column;gap:4px;border-radius:12px;padding:12px;background:#e7f4ec;color:#1f5f3a}
.lh-st-lock b{font-size:20px;letter-spacing:.5px;direction:ltr;text-align:start}
.lh-st-lock span,.lh-st-lock small{font-size:13px}
.lh-st-done{border-color:#1f7a45!important}
.lh-st-verify{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0;padding:12px;border-radius:12px;background:#fff7e6;border:1px solid #e8c77a;font-size:13.5px}
.lh-st-verify span{flex:1 1 100%}
.lh-st-out{margin-top:10px}
.lh-st-share{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:12px;background:#e7f4ec}
.lh-frm-got{border-style:solid!important;border-color:#1f7a45!important;background:#f1f8f3!important}
#lh-frm button.lh-if-send{position:static;display:block;width:100%;margin:6px 0 4px;transform:none}
.lh-if-later.lh-st-done{background:#e7f4ec!important;color:#1f5f3a!important;border:1px solid #1f7a45!important}
.lh-st-paid .lh-if-price,.lh-st-paid .lh-if-mem,.lh-st-paid .lh-frm-pricew{display:none!important}
.lh-st-off{display:none!important}
.lh-st-toggle{margin:10px 0 4px;padding:12px;border:1.5px dashed rgba(184,146,63,.55);border-radius:12px;background:#fffdf7;font-weight:600}
.lh-st-switch{display:block;margin:0 0 12px;padding:10px 12px;border:1.5px dashed rgba(184,146,63,.55);border-radius:12px;text-decoration:none!important;background:#fffdf7}
.lh-st-needpay{color:#9a5b00;border-color:#e3a63c;background:#fff4df}
.lh-st-store{color:#1f5f3a;border-color:#1f7a45;background:#e7f4ec}

/* v53 — «يتوفر تحديث جديد» bar (js/update.js) */
.lh-upd{position:fixed;inset-inline:12px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:9999;display:flex;align-items:center;gap:10px;padding:10px 10px 10px 14px;border-radius:14px;background:#1f2a44;color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.25);font-size:14px;max-width:520px;margin-inline:auto}
.lh-upd span{flex:1;line-height:1.5}
.lh-upd-go{flex:none;border:0;border-radius:999px;padding:8px 16px;background:#e6c66a;color:#1f2a44;font-weight:800;font-size:13.5px;cursor:pointer}
.lh-upd-x{flex:none;border:0;background:transparent;color:rgba(255,255,255,.7);font-size:22px;line-height:1;cursor:pointer;padding:0 6px}
.lh-pro-soonline{margin:4px auto 14px;display:inline-block;padding:6px 16px;border-radius:999px;background:linear-gradient(135deg,#d4af37,#b8923f);color:#fff;font-weight:800;font-size:14.5px}
.lh-pro-gate-box{text-align:center}

/* v54 — current action shown pressed (trainee file / users list) */
.lh-act-chip.cur{background:#f6ead8;border-color:#a0661a;color:#7a4b10;box-shadow:inset 0 2px 4px rgba(0,0,0,.18)}
.lh-act-chip.lh-act-ban.cur{background:#f7e1df;border-color:#8f1d16;color:#8f1d16}
.lh-act-chip.cur.on{color:#fff}
.lh-act-curtag{display:inline-block;margin-inline-start:6px;font-size:11px;font-weight:700;padding:1px 7px;border-radius:999px;background:rgba(0,0,0,.08)}
.lh-act-now{margin:4px 0 8px;padding:9px 12px;border-radius:10px;border:1.5px solid #a0661a;background:#fbf3e6;color:#7a4b10;font-size:14px}
.lh-act-now-ban{border-color:#8f1d16;background:#fbeceb;color:#8f1d16}
.btn.lh-act-btn-on{box-shadow:inset 0 2px 5px rgba(0,0,0,.22)}
.btn.lh-act-btn-on.suspend{background:#a0661a!important;border-color:#a0661a!important;color:#fff!important}
.btn.lh-act-btn-on.ban{background:#8f1d16!important;border-color:#8f1d16!important;color:#fff!important}

/* v55 — site visits (admin) + chosen-trainee notices */
.lh-vis-range{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 14px}
.lh-vis-rb{border:1.5px solid var(--border);background:var(--card);color:var(--text);border-radius:999px;padding:6px 14px;font:inherit;font-size:13.5px;cursor:pointer}
.lh-vis-rb.on{background:#2f4a1f;border-color:#2f4a1f;color:#fff}
.lh-vis-kpi{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin-bottom:8px}
.lh-vis-k{border:1.5px solid var(--border);border-radius:14px;padding:12px;background:var(--card);text-align:center}
.lh-vis-k b{display:block;font-size:26px;color:#2f4a1f;line-height:1.2}
.lh-vis-k span{font-size:13px;color:var(--muted)}
.lh-vis-h{margin:18px 0 8px;font-size:15.5px;color:#2f4a1f}
.lh-vis-days{display:flex;align-items:flex-end;gap:6px;overflow-x:auto;padding:4px 2px 2px;min-height:110px}
.lh-vis-day{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:30px;font-size:11px;color:var(--muted)}
.lh-vis-day i{display:block;width:18px;background:#2f4a1f;border-radius:5px 5px 2px 2px}
.lh-vis-day span{color:var(--text);font-weight:700}
.lh-vis-top{display:flex;flex-direction:column;gap:8px}
.lh-vis-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:10px;align-items:center}
.lh-vis-nm{display:flex;flex-direction:column;min-width:0}
.lh-vis-nm span{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lh-vis-meter{height:10px;background:rgba(47,74,31,.1);border-radius:999px;overflow:hidden}
.lh-vis-meter i{display:block;height:100%;background:#b8954a;border-radius:999px}
.lh-vis-tbl{width:100%;border-collapse:collapse;font-size:14px}
.lh-vis-tbl th,.lh-vis-tbl td{padding:8px 6px;border-bottom:1px solid var(--border);text-align:start;vertical-align:top}
.lh-vis-tbl small{display:block}
.lh-vis-note{margin-top:14px;font-size:12px}
.lh-ntf-pick{display:flex;flex-direction:column;gap:8px}
.lh-ntf-chips{display:flex;flex-wrap:wrap;gap:6px}
.lh-ntf-chip{display:inline-flex;align-items:center;gap:6px;background:#2f4a1f;color:#fff;border-radius:999px;padding:4px 6px 4px 12px;font-size:13.5px}
.lh-ntf-chip-x{border:0;background:rgba(255,255,255,.2);color:#fff;border-radius:50%;width:22px;height:22px;cursor:pointer;font-size:15px;line-height:1}
.lh-ntf-res{display:flex;flex-direction:column;gap:4px}
.lh-ntf-resit{border:1px solid var(--border);background:var(--card);color:var(--text);border-radius:10px;padding:8px 10px;text-align:start;font:inherit;cursor:pointer}
.lh-ntf-resit:hover{border-color:#2f4a1f}
.lh-ipf-tag{white-space:nowrap}

/* v56 — send a notice yourself on WhatsApp */
.lh-ntf-wa{margin-top:16px;padding-top:14px;border-top:1px dashed var(--border)}
.lh-ntf-wa-h{font-weight:700;color:#2f4a1f;margin-bottom:8px}
.lh-ntf-wa-row{display:flex;flex-wrap:wrap;gap:8px}
.btn.lh-wa-btn{background:#1f8f4e;border-color:#1f8f4e;color:#fff;text-decoration:none;display:inline-flex;align-items:center}
.lh-ntf-wa-list{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.lh-ntf-wa-it{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--border);border-radius:10px;padding:6px 10px}

/* v57 — notifications: two tabs */
.lh-ntf-tabs{display:flex;gap:6px;margin:0 0 14px;border-bottom:1.5px solid var(--border)}
.lh-ntf-tab{border:0;background:transparent;color:var(--muted);font:inherit;font-size:15px;font-weight:700;padding:10px 14px;margin-bottom:-1.5px;border-bottom:3px solid transparent;cursor:pointer}
.lh-ntf-tab.on{color:#2f4a1f;border-bottom-color:#2f4a1f}

/* v58 — link back to the public home page */
html body header #nav-site{border-radius:999px}
.lh-back-site{color:#2f4a1f;font-weight:700;text-decoration:none;font-size:14px}
.lh-back-site:hover{text-decoration:underline}
body:not(.day-mode) .lh-back-site{color:#d9c48f}

/* v59 professionals home card: action strip so the banner reads as a section button */
html body #home .grid .card.home-card.lh-pro-card.lh-pro-banner{line-height:normal;border:1.5px solid #c9a96e!important}
html body #home .lh-pro-card.lh-pro-banner img{line-height:0}
.lh-pro-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#0f1a33;color:#f3ead7;border-top:1px solid rgba(201,169,110,.45)}
.lh-pro-bar-tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.lh-pro-bar-t{font-weight:700;font-size:16px;color:#f3ead7}
.lh-pro-bar-s{font-size:15px;font-weight:600;color:#e6cf9c}
.lh-pro-bar-go{flex:none;display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:999px;background:#c9a96e;color:#0f1a33;font-weight:700;font-size:14px;white-space:nowrap}
.lh-pro-bar-go::after{content:"‹";font-size:18px;line-height:1}
html[dir=ltr] .lh-pro-bar-go::after{content:"›"}
html body #home .lh-pro-card.lh-pro-banner:hover .lh-pro-bar-go,html body #home .lh-pro-card.lh-pro-banner:focus-visible .lh-pro-bar-go{background:#e0c48b}
html body #home .lh-pro-card.lh-pro-banner:focus-visible{outline:3px solid #c9a96e;outline-offset:3px}

/* v60 supervisor card: name, role, certificate badges, founder line */
.lh-sup-name.lh-sup-ar{letter-spacing:0!important;font-family:inherit}
.lh-sup .lh-sup-role{color:#b08d3c!important}
.lh-sup-cred{display:flex;gap:4px;margin:3px 0 2px}
html[dir=rtl] .lh-sup-cred{flex-direction:row-reverse;justify-content:flex-end}
.lh-sup-cred i{font-style:normal;font-size:10px;font-weight:700;letter-spacing:.5px;line-height:1;padding:3px 7px;border-radius:999px;color:#fff}
.lh-sup-cred i.c-ipf{background:#1f3f8f}.lh-sup-cred i.c-cpd{background:#9b1c2c}.lh-sup-cred i.c-aups{background:#2f4a1f}
.lh-sup-ex{font-size:11px;color:var(--muted);line-height:1.4}

/* video comments: admin switches for closing comments (s33) */
.lh-cm-ctl{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:4px 0 8px}
.lh-cm-closed{margin:6px 0 10px;padding:9px 12px;border:1px dashed var(--lhx,#c9b98f);border-radius:10px;font-size:13.5px}
.lh-cm-bans{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;width:100%;font-size:12.5px}
/* ===== online course: commitment + end-of-video questions (js/vq.js) ===== */
#lh-vq-box{width:100%;max-width:96vw;margin:10px auto 0;flex-shrink:0}
@media(min-width:1024px){#lh-vq-box{max-width:1200px}}
#lh-vq-box:empty{display:none}
.lh-vq{background:var(--card,#faf6ec);color:var(--text,#2b2a22);border-radius:16px;padding:16px;direction:rtl;text-align:right;border:1px solid #e6dcc6;transition:box-shadow .3s}
html[lang="en"] .lh-vq{direction:ltr;text-align:left}
.lh-vq.flash{box-shadow:0 0 0 3px rgba(217,154,66,.55)}
.lh-vq-hd{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.lh-vq-hd h3{margin:0;font-size:17px}
.lh-vq-pill{font-size:12px;border-radius:9px;padding:2px 10px;background:#efe6d2;color:#7a5a1e;white-space:nowrap}
.lh-vq-pill.open{background:#2f4a1f;color:#fff}.lh-vq-pill.sent{background:#e3ead8;color:#2f4a1f}.lh-vq-pill.missed{background:#fbe3d9;color:#a33}
.lh-vq-intro{margin:6px 0;line-height:1.8;white-space:pre-wrap}
.lh-vq-due{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;justify-content:space-between;background:#fff7e6;border:1px solid #efd9a8;border-radius:12px;padding:8px 12px;margin:8px 0;font-size:13.5px}
.lh-vq-due b{color:#9a5b00;font-size:13px}
.lh-vq-hint{font-size:13px;color:var(--muted,#7a7566);margin-bottom:6px;line-height:1.7}
.lh-vq-q{margin:12px 0}
.lh-vq-q label{display:flex;gap:8px;align-items:baseline;font-weight:600;line-height:1.7}
.lh-vq-q label .n{flex:none;width:22px;height:22px;border-radius:50%;background:#2f4a1f;color:#fff;display:grid;place-items:center;font-size:12px}
.lh-vq-q label .t{flex:1}
.lh-vq-q label small{flex:none;color:#8a6d2f;font-weight:500;font-size:12px}
.lh-vq-q textarea{width:100%;min-height:76px;margin-top:6px;border:1px solid #ddd2ba;border-radius:12px;padding:10px;font:inherit;background:#fff;color:inherit;resize:vertical;box-sizing:border-box}
.lh-vq-q textarea.bad{border-color:#c44}
.lh-vq-a{background:#fff;border:1px solid #eee3cc;border-radius:12px;padding:10px;margin-top:6px;white-space:pre-wrap;line-height:1.7}
.lh-vq-g{font-size:12.5px;color:#2f4a1f;margin-top:4px}
.lh-vq .btn{width:100%;margin-top:6px}
.lh-vq-err{color:#b33;font-size:13px;margin-top:6px;min-height:1em}
.lh-vq-score{font-size:15px;margin:6px 0}.lh-vq-score b{font-size:26px;color:#2f4a1f}
.lh-vq-fb{background:#eef3e6;border-radius:12px;padding:10px;margin:6px 0;white-space:pre-wrap}
.lh-vq-note{background:#efe6d2;border-radius:12px;padding:10px 12px;margin:8px 0;font-size:14px;line-height:1.7}
.lh-vq-note.bad{background:#fbe3d9;color:#8a2a2a}.lh-vq-note.ok{background:#e3ead8;color:#2f4a1f}
.lh-vq-ov{position:fixed;inset:0;z-index:100000;background:rgba(18,24,12,.6);display:flex;align-items:flex-start;justify-content:center;overflow-y:auto;padding:24px 12px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.lh-vq-box{position:relative;width:100%;max-width:620px;background:#fbf8f1;color:#2b2a22;border-radius:20px;padding:22px 20px 18px;direction:rtl;text-align:right;box-shadow:0 20px 60px rgba(0,0,0,.3)}
html[lang="en"] .lh-vq-box{direction:ltr;text-align:left}
.lh-vq-x{position:absolute;top:10px;inset-inline-end:10px;width:36px;height:36px;border-radius:50%;border:0;background:#efe6d2;color:#2b2a22;font-size:22px;cursor:pointer}
.lh-vq-kick{color:#9a6a1a;font-weight:700;font-size:13px}
.lh-vq-box h2{margin:2px 0 10px;font-size:21px;color:#2f4a1f}
.lh-vq-box h3{margin:16px 0 6px;font-size:15px}
.lh-vq-how{margin:0;padding-inline-start:20px;line-height:1.9;font-size:14px}
.lh-vq-plan{margin:0;padding-inline-start:22px;font-size:14px}
.lh-vq-plan li{margin:6px 0;line-height:1.6}
.lh-vq-plan li b{display:block}.lh-vq-plan li span{color:#6f6a5b;font-size:13px}
.lh-vq-pledge{margin-top:16px;background:#2f4a1f;color:#f3ede0;border-radius:16px;padding:14px}
.lh-vq-pledge b{color:#D99A42}.lh-vq-pledge p{margin:6px 0 10px;line-height:1.8;font-size:14px}
.lh-vq-chk{display:flex;gap:10px;align-items:flex-start;cursor:pointer;font-size:14px;line-height:1.6}
.lh-vq-chk input{width:20px;height:20px;flex:none;margin-top:2px;accent-color:#D99A42}
.lh-vq-pledge .btn{width:100%;margin-top:12px;background:#D99A42;color:#1d2e13;border-color:#D99A42}
.lh-vq-pledge .btn:disabled{opacity:.5}
.lh-vq-ok{margin-top:14px;background:#e3ead8;color:#2f4a1f;border-radius:12px;padding:10px 12px;font-weight:600}
.lh-vq-box > .btn{width:100%;margin-top:12px}
.lh-vq-pp{margin-top:14px}
.lh-vq-link{background:none;border:0;padding:4px 0;color:#7a5a1e;text-decoration:underline;font:inherit;font-size:13.5px;cursor:pointer;text-align:inherit}
.lh-vq-ppf textarea{width:100%;min-height:80px;border:1px solid #ddd2ba;border-radius:12px;padding:10px;font:inherit;margin:8px 0;box-sizing:border-box}
.lh-vq-ppf .btn{width:100%}
.lh-vq-alert{margin:0 0 14px;border:1px solid #ecd9b0;border-radius:14px;background:#fffaf0;color:#5a4410;direction:rtl;text-align:right;overflow:hidden}
html[lang="en"] .lh-vq-alert{direction:ltr;text-align:left}
.lh-vq-alert .hd{display:flex;align-items:center;gap:8px;width:100%;padding:9px 12px;background:none;border:0;font:inherit;font-size:13.5px;color:inherit;cursor:pointer;text-align:inherit}
.lh-vq-alert .dot{width:8px;height:8px;border-radius:50%;background:#d9822b;flex:none;box-shadow:0 0 0 3px rgba(217,130,43,.18)}
.lh-vq-alert .tt{font-weight:600}
.lh-vq-alert .n{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#2f4a1f;color:#fff;font-size:11.5px;display:grid;place-items:center}
.lh-vq-alert .tm{margin-inline-start:auto;font-size:12px;color:#9a6a1a;white-space:nowrap}
.lh-vq-alert .ch{width:8px;height:8px;border-inline-end:1.8px solid #9a7a3a;border-bottom:1.8px solid #9a7a3a;transform:rotate(45deg);margin:0 2px 3px;flex:none;transition:transform .2s}
.lh-vq-alert.on .ch{transform:rotate(-135deg);margin-bottom:-3px}
.lh-vq-alert .ls{display:none;border-top:1px solid #f1e4c6;padding:6px 8px 8px}
.lh-vq-alert.on .ls{display:block}
.lh-vq-alert .it{display:flex;flex-direction:column;gap:1px;width:100%;background:none;border:0;border-radius:10px;padding:7px 8px;font:inherit;color:inherit;text-align:inherit;cursor:pointer}
.lh-vq-alert .it:hover{background:#fbf0da}
.lh-vq-alert .it span{font-size:13.5px;font-weight:600}.lh-vq-alert .it small{font-size:12px;color:#8a6a2a}
.lh-vq-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#2f4a1f;color:#fff;padding:10px 18px;border-radius:12px;z-index:100001}
body:not(.day-mode) .lh-vq{background:#141a10;color:#e8e1cf;border-color:#2c3524}
body:not(.day-mode) .lh-vq-q textarea,body:not(.day-mode) .lh-vq-a{background:#1b2215;border-color:#2c3524;color:#e8e1cf}
body:not(.day-mode) .lh-vq-due{background:#2a2212;border-color:#5a4a26;color:#f1e2b8}
body:not(.day-mode) .lh-vq-alert{background:#1e1b10;border-color:#4a3d1f;color:#eadbb0}
body:not(.day-mode) .lh-vq-alert .ls{border-top-color:#3a3020}
body:not(.day-mode) .lh-vq-alert .it:hover{background:#2a2414}
/* access rules (js/access.js): a calculator the admin closed for this member */
html body #calculators a.btn.lh-ct.lh-ct-locked{opacity:.62;cursor:not-allowed}
html body #calculators a.btn.lh-ct.lh-ct-locked .lh-ct-ic{filter:grayscale(1)}
html body #calculators a.btn.lh-ct .lh-ct-lock{grid-column:2;grid-row:3;display:inline-flex;align-items:center;gap:5px;margin-top:4px;font-size:12px;font-weight:700;color:var(--mut)}
html body #calculators a.btn.lh-ct .lh-ct-lock svg{width:13px;height:13px}
html body #calculators a.btn.lh-ct .lh-ct-lock i{font-style:normal}
.lh-acc-locked{cursor:not-allowed!important}
.lh-rg-groups{display:flex;flex-wrap:wrap;gap:6px 14px}
.lh-rg-g{display:inline-flex;align-items:center;gap:6px;font-size:14px}
.lh-rg-g input{width:auto;margin:0}
.lh-rg-gedit{flex-basis:100%;display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:8px;padding-top:8px;border-top:1px dashed var(--border)}
