/* Lahzati Moments · Phase 4 · scoped visual identity, RTL/LTR, accessible */
.llc-moments-v4{--lm-ink:#17323a;--lm-muted:#51646c;--lm-line:#dbe5e4;--lm-gold:#9c793a;--lm-surface:#f6faf9;--lm-focus:#156f76;font-family:inherit;box-shadow:0 18px 55px rgba(18,50,56,.075);border-color:var(--lm-line)!important;border-radius:22px!important;max-width:900px!important;padding:clamp(18px,4vw,36px)!important;line-height:1.65;color:var(--lm-ink)!important}
.llc-moments-v4 *{box-sizing:border-box}
.llc-moments-v4 .llc-moments-eyebrow{font-size:.73rem;font-weight:750;letter-spacing:.17em;color:#637d80;margin-bottom:.65rem;text-transform:uppercase}
.llc-moments-v4 .llc-moments-eyebrow span{color:var(--lm-gold);padding-inline:.25rem}
.llc-moments-v4 h2{font-size:clamp(1.55rem,3vw,2.25rem);line-height:1.24;letter-spacing:-.025em;margin:.3rem 0 .8rem;color:var(--lm-ink)}
.llc-moments-v4 h3{color:var(--lm-ink);font-size:1.18rem;margin-block:1.6rem .7rem}
.llc-moments-v4 h4{color:var(--lm-ink)}
.llc-moments-v4 p{line-height:1.7}
.llc-moments-v4 a{color:#12636c;text-decoration-thickness:1px;text-underline-offset:3px}
.llc-moments-v4 a:hover{text-decoration-thickness:2px}
.llc-moments-v4 :is(a,button,textarea):focus-visible{outline:3px solid var(--lm-focus);outline-offset:3px}
.llc-moments-v4 nav{flex-wrap:wrap}
.llc-moments-v4 nav a{min-height:38px;display:inline-flex;align-items:center;border-radius:999px;transition:background-color .15s ease}
.llc-moments-v4 nav a:hover{background:#e8f3f1}
.llc-moments-v4 ol>li{padding-inline-start:1.25rem!important;margin-inline-start:0!important;border-color:var(--lm-line)!important}
.llc-moments-v4 ol article{padding:.4rem .2rem}
.llc-moments-v4 blockquote{border-inline-start-color:var(--lm-gold)!important;background:var(--lm-surface);border-radius:0 9px 9px 0;overflow-wrap:anywhere}
.llc-moments-v4[dir=rtl] blockquote{border-radius:9px 0 0 9px}
.llc-moments-v4 .llc-moments-reflection{background:var(--lm-surface)!important;border-color:var(--lm-line)!important;border-radius:16px!important;padding:clamp(16px,3vw,24px)!important}
.llc-moments-v4 textarea{min-height:140px;max-width:100%;border:1px solid #b8c9c8;border-radius:10px;padding:12px;background:#fff;color:var(--lm-ink);font:inherit;resize:vertical}
.llc-moments-v4 button[type=submit]{background:#174c54;color:#fff;border:0;border-radius:10px;min-height:44px;padding:10px 22px;font:inherit;font-weight:700;cursor:pointer}
.llc-moments-v4 button[type=submit]:hover{background:#103e46}
.llc-moments-v4 [role=note]{background:#fffaf0;color:#60491d}
.llc-moments-v4 [role=status]{color:#155d4b;font-weight:650}
.llc-moments-v4[dir=rtl]{text-align:right}
.llc-moments-v4[dir=ltr]{text-align:left}
@media(max-width:600px){.llc-moments-v4{margin:1rem auto!important;padding:18px!important;border-radius:16px!important}.llc-moments-v4 nav{gap:.5rem!important}.llc-moments-v4 ol>li{padding-inline-start:.65rem!important}.llc-moments-v4 textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){.llc-moments-v4 *{transition:none!important;animation:none!important}}
@media(prefers-contrast:more){.llc-moments-v4{--lm-line:#647d80;--lm-muted:#283e43}.llc-moments-v4 a{text-decoration:underline}}

/* Phase 4: dashboard entry and accessible integrated Moments view. */
.llc-moments-dashboard{min-height:100vh;background:#f5f7f7;color:#182c34;font-family:system-ui,-apple-system,Segoe UI,sans-serif}
.llc-moments-dashboard-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:1rem clamp(1rem,4vw,3rem);background:#fff;border-bottom:1px solid #e0e7e7}
.llc-moments-dashboard-header a{color:#195b60;text-decoration:underline;text-underline-offset:3px}
.llc-moments-dashboard-header nav{display:flex;gap:1rem}
.llc-moments-dashboard-intro{max-width:800px;margin:2rem auto 0;padding:0 1.5rem}
.llc-moments-dashboard-intro span{font-size:.75rem;letter-spacing:.15em;color:#547477}
.llc-moments-dashboard-intro h1{font-size:clamp(1.8rem,4vw,2.8rem);margin:.4rem 0}
.llc-moments-entry{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin:1rem 0;padding:1rem 1.2rem;background:#f5f8f8;border:1px solid #dce7e5;border-radius:14px}
.llc-moments-entry p{margin:.35rem 0 0;font-size:.9rem}
.llc-moments-entry a{display:inline-flex;padding:.65rem 1rem;border-radius:9px;background:#1d5659;color:#fff;text-decoration:none;font-weight:600}
.llc-moments-entry a:focus-visible,.llc-moments-dashboard a:focus-visible{outline:3px solid #bd9c59;outline-offset:3px}
@media(max-width:600px){.llc-moments-dashboard-header{align-items:flex-start}.llc-moments-entry a{width:100%;justify-content:center}}

/* v2.5.5: integrated panel; theme-aware surfaces and legible entry banner. */
.llc-shell .llc-moments-entry{background:#23302e!important;color:#f4faf8!important;border:1px solid #526b65!important}
.llc-shell .llc-moments-entry :is(strong,p){color:#f4faf8!important;background:transparent!important}
.llc-shell .llc-moments-entry a{background:#14625d!important;color:#fff!important}
.llc-shell[data-theme=light] .llc-moments-entry{background:#edf5f2!important;color:#183d38!important;border-color:#b7d3c9!important}
.llc-shell[data-theme=light] .llc-moments-entry :is(strong,p){color:#183d38!important}
.llc-shell .llc-integrated-moments[hidden],.llc-shell .llc-pane[hidden],.llc-shell #llc-composer[hidden]{display:none!important}
.llc-shell .llc-integrated-moments{min-width:0;flex:1;overflow:auto;padding:clamp(16px,3vw,36px);background:#171b1d;color:#f0f5f3}
.llc-shell .llc-integrated-moments-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px;color:#c9a869}
.llc-shell .llc-moments-back{background:#263633;color:#f5faf8;border:1px solid #54726b;border-radius:9px;padding:10px 15px;cursor:pointer}
.llc-shell .llc-integrated-moments-body{max-width:1000px;margin:auto}
.llc-shell .llc-integrated-moments-body :is(.llc-moments-v4,section,article){max-width:100%}
.llc-shell .llc-integrated-moments-body .llc-moments-v4{--lm-ink:#e8f3f1;--lm-muted:#bbd0ca;--lm-line:#49605b;--lm-surface:#273430;background:#20282a!important;color:#e8f3f1!important;box-shadow:none}
.llc-shell .llc-integrated-moments-body .llc-moments-v4 :is(h2,h3,h4,p,li,strong){color:inherit}
.llc-shell .llc-integrated-moments-body .llc-moments-v4 a{color:#8cddd0}
.llc-shell .llc-integrated-moments-body .llc-moments-v4 textarea{background:#172220;color:#f4faf8;border-color:#69857c}
.llc-shell .llc-integrated-moments-body .llc-moments-v4 [role=note]{background:#3a3325;color:#f7e6b8}
.llc-shell .llc-integrated-moments-body .llc-moments-v4 [role=status]{color:#9ce4cd}
.llc-shell[data-theme=light] .llc-integrated-moments{background:#f5f7f7;color:#1b3338}
.llc-shell[data-theme=light] .llc-integrated-moments-body .llc-moments-v4{--lm-ink:#17323a;--lm-muted:#51646c;--lm-line:#dbe5e4;--lm-surface:#f6faf9;background:#fff!important;color:#17323a!important}
.llc-shell[data-theme=light] .llc-integrated-moments-body .llc-moments-v4 textarea{background:#fff;color:#17323a;border-color:#b8c9c8}
.llc-shell[data-theme=light] .llc-integrated-moments-body .llc-moments-v4 a{color:#12636c}
@media(max-width:700px){.llc-shell .llc-integrated-moments{padding:12px}.llc-shell .llc-integrated-moments-top{font-size:.85rem}}

/* v2.5.7 — scoped mastery UI: consistent with the active dashboard theme. */
.llc-shell .llc-integrated-moments .llc-mastery{box-sizing:border-box;max-width:900px;margin:1.25rem auto;padding:clamp(20px,3vw,34px);border:1px solid #47615c;border-radius:20px;background:#202829;color:#f0f6f3;line-height:1.65;box-shadow:0 12px 32px rgba(0,0,0,.12)}
.llc-shell .llc-integrated-moments .llc-mastery :is(h2,h3,p,li,label,strong){color:inherit}
.llc-shell .llc-integrated-moments .llc-mastery .llc-moments-eyebrow{font-size:.74rem;font-weight:700;letter-spacing:.14em;color:#d7b57b;margin:0 0 .5rem}
.llc-shell .llc-integrated-moments .llc-mastery h2{font-size:clamp(1.35rem,2.5vw,1.9rem);line-height:1.25;margin:0 0 .65rem}
.llc-shell .llc-integrated-moments .llc-mastery h3{font-size:1.06rem;margin:1.5rem 0 .55rem}
.llc-shell .llc-integrated-moments .llc-mastery ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:.55rem;padding:0;margin:1rem 0;list-style:none}
.llc-shell .llc-integrated-moments .llc-mastery li{border:1px solid #405751;border-radius:10px;background:#283532;padding:.7rem .85rem;overflow-wrap:anywhere}
.llc-shell .llc-integrated-moments .llc-mastery label{display:block;font-weight:650;margin-top:1rem}
.llc-shell .llc-integrated-moments .llc-mastery textarea{display:block;box-sizing:border-box;width:100%;min-height:120px;margin:.5rem 0 .8rem;padding:.8rem;border:1px solid #78978e;border-radius:10px;background:#151e1d;color:#f6faf9;font:inherit;resize:vertical}
.llc-shell .llc-integrated-moments .llc-mastery textarea:focus-visible,.llc-shell .llc-integrated-moments .llc-mastery button:focus-visible{outline:3px solid #d3b273;outline-offset:3px}
.llc-shell .llc-integrated-moments .llc-mastery button[type=submit]{min-height:44px;padding:.65rem 1.2rem;background:#17635d;color:white;border:1px solid #4c9e91;border-radius:10px;font:inherit;font-weight:700;cursor:pointer}
.llc-shell .llc-integrated-moments .llc-mastery button[type=submit]:hover{background:#227b73}
.llc-shell .llc-integrated-moments .llc-mastery [role=status]{color:#a9e6c8;font-weight:700}
.llc-shell .llc-integrated-moments .llc-mastery .llc-mastery-privacy{font-size:.86rem;color:#b7c9c5}
.llc-shell[data-theme=light] .llc-integrated-moments .llc-mastery{background:#fff;color:#17343a;border-color:#d5e1df;box-shadow:0 10px 24px rgba(20,55,50,.06)}
.llc-shell[data-theme=light] .llc-integrated-moments .llc-mastery .llc-moments-eyebrow{color:#866127}
.llc-shell[data-theme=light] .llc-integrated-moments .llc-mastery li{background:#f1f7f5;border-color:#d5e1df}
.llc-shell[data-theme=light] .llc-integrated-moments .llc-mastery textarea{background:#fff;color:#17343a;border-color:#8daaa4}
.llc-shell[data-theme=light] .llc-integrated-moments .llc-mastery .llc-mastery-privacy{color:#536a6a}
.llc-shell[data-theme=light] .llc-integrated-moments .llc-mastery [role=status]{color:#17634d}
@media(max-width:600px){.llc-shell .llc-integrated-moments .llc-mastery ul{grid-template-columns:1fr}.llc-shell .llc-integrated-moments .llc-mastery textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){.llc-shell .llc-integrated-moments .llc-mastery *{animation:none!important;transition:none!important}}

/* 2.5.8: evidence badge contrast in both dashboard themes. */
.llc-shell .llc-integrated-moments-body .llc-moments-v4 ol article span[style*="background:#edf2f1"]{color:#17323a!important;background:#e9f4f0!important}
.llc-shell .llc-integrated-moments-body .llc-moments-v4 p[style*="color:#52616b"]{color:#bcd0cb!important}
.llc-shell[data-theme=light] .llc-integrated-moments-body .llc-moments-v4 p[style*="color:#52616b"]{color:#52616b!important}

/* v2.5.10: never display both language copies, including under dashboard CSS resets. */
.llc-shell .llc-integrated-moments [data-moments-lang][hidden]{display:none!important}
.llc-shell .llc-integrated-moments [data-moments-lang="ar"]{direction:rtl;text-align:right}
.llc-shell .llc-integrated-moments [data-moments-lang="ar"] .llc-moments-v4 :is(ul,ol){padding-right:1.5rem;padding-left:0}
.llc-shell .llc-integrated-moments [data-moments-lang="ar"] .llc-moments-v4 nav{direction:rtl}
.llc-shell .llc-integrated-moments [data-moments-lang="ar"] textarea{direction:rtl;text-align:right}
.llc-shell .llc-integrated-moments [data-moments-lang="ar"] .llc-mastery ul{padding-right:0;padding-left:0}

/* v2.5.11: bilingual text fields and opt-in evidence translation */
.llc-moments textarea[dir="auto"],.llc-mastery textarea[dir="auto"]{unicode-bidi:plaintext;text-align:start}
.llc-mastery-last-practice{display:block;font-size:.78rem;opacity:.85;margin-top:.3rem}
.llc-mastery-passport-note{font-size:.88rem;opacity:.9}
.llc-evidence-translation{margin:.7rem 0 1rem}
.llc-evidence-translate-button{cursor:pointer;border:1px solid #68a9a0;border-radius:8px;padding:.45rem .85rem;background:#205a55;color:#fff;font:inherit}
.llc-evidence-translate-button:disabled{opacity:.65;cursor:wait}
.llc-evidence-translation-result{margin-top:.6rem;padding:.8rem;border:1px solid #4d7974;border-radius:8px;background:rgba(61,139,126,.1);color:inherit;line-height:1.8}
.llc-evidence-translation-result blockquote{white-space:pre-wrap;margin:.6rem 0;border-inline-start:3px solid #b59a60;padding-inline-start:.7rem}
.llc-translation-disclaimer{font-size:.8rem;opacity:.85}
.llc-evidence-original-feedback{unicode-bidi:plaintext}
/* v2.5.15: accessible daily scenario and formative feedback */
.llc-shell .llc-integrated-moments .llc-mastery .llc-mastery-scenario{margin:1rem 0;padding:1rem;border-inline-start:4px solid #d7b57b;background:#293c37;border-radius:8px;color:#f5f7f5;unicode-bidi:plaintext}
.llc-shell .llc-integrated-moments .llc-mastery .llc-mastery-feedback{margin:1rem 0;padding:1rem;border:1px solid #7aa89b;border-radius:10px;background:#263f37;color:#f6fbf9}
