:root{--ink:#18303b;--ink-2:#425563;--muted:#778690;--bg:#f5f4f0;--card:#fff;--border:#e6e5df;--gold:#b88a50;--gold-light:#f6eedf;--teal:#396b65;--teal-light:#e6f1ed;--red:#a14b48;--shadow:0 22px 60px rgba(13,35,45,.075);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit}::selection{background:#e2c998}
.app-loading{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;color:var(--muted)}.loader-mark{color:var(--ink);font:700 46px Georgia,serif;letter-spacing:-4px}.loader-mark span{color:var(--gold)}
.btn{border:1px solid transparent;border-radius:11px;padding:12px 18px;font-weight:650;font-size:13px;display:inline-flex;gap:10px;align-items:center;justify-content:center;transition:all .16s;line-height:1.3;min-height:43px}.btn-primary{background:var(--ink);color:white}.btn-primary:hover:not(:disabled){background:#294755;transform:translateY(-1px)}.btn-outline{border-color:#d8dcd8;background:#fff;color:var(--ink)}.btn-outline:hover{background:#f3f6f5}.btn-gold{background:var(--gold);color:#fff}.btn-gold:hover{background:#a57a46}.btn-soft{background:#eaf0ed;color:#295750}.btn-danger{background:#fff6f4;color:#ac524d;border-color:#f1d7d2}.btn-full{width:100%}.btn-small{min-height:34px;padding:8px 12px;font-size:12px}.btn svg,.nav-link svg,.heading-icon svg{width:18px;height:18px;flex:none}.icon{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.login{min-height:100vh;display:grid;grid-template-columns:minmax(360px,1.05fr) minmax(400px,.95fr);background:#fbfaf6}.login-side{background:#172d3a;color:#fff;padding:clamp(40px,7vw,102px);display:flex;flex-direction:column;position:relative;overflow:hidden}.login-side:before{content:"";position:absolute;width:520px;height:520px;border:1px solid rgba(255,255,255,.09);border-radius:50%;bottom:-180px;right:-210px;box-shadow:0 0 0 75px rgba(255,255,255,.026),0 0 0 150px rgba(255,255,255,.017)}.login-brand{display:flex;align-items:center;gap:14px;font-size:17px;font-weight:750;letter-spacing:.2px;position:relative;z-index:1}.brand-logo{width:43px;height:43px;background:#d4b47c;border-radius:12px;display:grid;place-items:center;color:#243b43;font:700 22px Georgia,serif}.brand-logo span{font-size:25px}.login-splash{margin:auto 0;position:relative;z-index:1;max-width:590px}.eyebrow{color:var(--gold);font-size:11px;text-transform:uppercase;letter-spacing:2.5px;font-weight:800}.login-splash h1{font:400 clamp(48px,5vw,82px)/1.05 Georgia,"Times New Roman",serif;letter-spacing:-2.7px;margin:22px 0 24px}.login-splash h1 em{font-style:italic;color:#d6b585}.login-splash p{font-size:16px;line-height:1.9;color:#b9c8cd;max-width:480px}.login-footer{color:#8599a2;font-size:12px;position:relative;z-index:1;line-height:1.6}.login-main{display:grid;place-items:center;padding:45px}.login-card{width:100%;max-width:410px}.small-kicker{font-size:12px;letter-spacing:2px;color:var(--gold);font-weight:750;text-transform:uppercase}.login-card h2{font:400 39px Georgia,serif;margin:14px 0 10px}.login-card>p{color:var(--muted);line-height:1.7;font-size:14px;margin:0 0 34px}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:17px}.field label{font-weight:650;font-size:12px;color:var(--ink-2)}.input,.textarea,.select{border:1px solid #dce1dd;background:#fff;border-radius:10px;color:var(--ink);outline:none;width:100%;padding:12px 13px;transition:border .2s,box-shadow .2s}.input{height:47px}.input:focus,.textarea:focus,.select:focus{border-color:#8daf9d;box-shadow:0 0 0 3px rgba(48,114,103,.09)}.textarea{resize:vertical;min-height:100px;line-height:1.75;font-size:13.5px}.helper{font-size:12px;color:var(--muted);line-height:1.6}.login-note{border:1px solid #eadfcb;background:#f8f2e7;border-radius:12px;padding:14px;margin-top:24px;color:#7f684b;font-size:12px;line-height:1.7}
.shell{display:grid;grid-template-columns:247px minmax(0,1fr);min-height:100vh}.sidebar{background:#1b303b;color:#d3dce0;padding:27px 17px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.side-head{display:flex;gap:11px;align-items:center;padding:2px 12px 30px}.side-head .brand-logo{width:36px;height:36px;font-size:18px;border-radius:10px}.side-title{font-size:16px;font-weight:800;letter-spacing:.2px;color:#fff}.side-sub{font-size:10px;color:#8198a5;margin-top:2px;letter-spacing:1.4px;text-transform:uppercase}.side-section{font-size:10px;letter-spacing:1.8px;text-transform:uppercase;color:#788f99;font-weight:800;padding:0 14px;margin:24px 0 11px}.nav-link{background:none;border:0;color:#b5c5cd;width:100%;padding:12px 13px;border-radius:10px;text-align:left;display:flex;align-items:center;gap:12px;font-size:13px;margin:3px 0;font-weight:600}.nav-link:hover{background:rgba(255,255,255,.06)}.nav-link.active{color:#fff;background:#344b55}.nav-link .nav-right{margin-left:auto;font-size:10px;color:#a1b9bc}.side-grow{flex:1}.profile{display:flex;gap:11px;align-items:center;padding:14px 9px 13px;border-top:1px solid #3a505c}.avatar{border-radius:12px;width:37px;height:37px;background:#48665f;color:#e5f4ef;display:grid;place-items:center;font-weight:800;font-size:12px}.profile-name{font-size:12px;font-weight:750;color:#fff}.profile-code{font-size:11px;color:#93a9b3;margin-top:4px}.sidebar-logout{border:0;background:transparent;color:#a7bbc3;display:flex;align-items:center;gap:10px;padding:11px;font-size:12px;text-align:left}.sidebar-logout:hover{color:#fff}
.main{min-width:0}.topbar{height:79px;display:flex;justify-content:space-between;align-items:center;padding:0 38px;border-bottom:1px solid var(--border);background:rgba(255,255,255,.7);gap:16px}.breadcrumb{color:var(--muted);font-size:12px}.breadcrumb strong{color:var(--ink);font-weight:700}.top-right{display:flex;align-items:center;gap:15px}.top-pill{border:1px solid #e3e7e3;padding:8px 11px;border-radius:50px;font-size:11px;background:white;color:#56766b;font-weight:700;white-space:nowrap}.top-tag{font-size:11px;color:var(--muted)}.content{padding:35px 38px 55px;max-width:1460px;margin:0 auto}.page-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:27px}.overline{color:var(--gold);text-transform:uppercase;font-size:10.5px;letter-spacing:2px;font-weight:800;margin:0 0 10px}.page-title{font:400 39px/1.18 Georgia,serif;letter-spacing:-1.4px;margin:0}.page-desc{font-size:13px;color:var(--muted);line-height:1.7;margin:10px 0 0}.card{border:1px solid var(--border);border-radius:16px;background:white;box-shadow:0 3px 14px rgba(24,48,59,.025)}.card-pad{padding:25px}.hero{background:linear-gradient(105deg,#1c3742,#2c514d);color:#fff;border:0;padding:34px;display:flex;align-items:center;justify-content:space-between;gap:18px;overflow:hidden;position:relative;min-height:220px}.hero:after{content:"CL";position:absolute;right:55px;top:0;font:200 226px/1 Georgia,serif;color:rgba(255,255,255,.05);letter-spacing:-32px}.hero>*{position:relative;z-index:1}.hero .overline{color:#e0c292}.hero h2{font:400 32px Georgia,serif;max-width:580px;margin:12px 0}.hero p{font-size:13px;color:#bed3d2;max-width:540px;line-height:1.7}.hero .btn{background:#d2b486;color:#21343c}.hero .btn:hover{background:#e1c69a}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:19px 0 31px}.stat{padding:20px 22px}.stat .stat-top{color:#798b92;display:flex;justify-content:space-between;font-size:11px;font-weight:600}.stat strong{font:400 32px Georgia,serif;display:block;margin:11px 0 4px}.stat span:last-child{font-size:11px;color:var(--muted)}.section-head{display:flex;justify-content:space-between;align-items:center;margin:27px 0 15px}.section-head h3{font-size:16px;margin:0}.muted{color:var(--muted)}.small{font-size:12px}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.module-card{padding:22px;min-height:240px;display:flex;flex-direction:column;gap:10px}.module-card.disabled{opacity:.64}.module-number{font:400 36px Georgia,serif;color:#c2ab85}.module-card h3{font:400 24px Georgia,serif;margin:0}.module-card p{font-size:12px;color:var(--muted);line-height:1.6;margin:1px 0 12px}.module-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:auto}.pill{border-radius:999px;background:#f4f2ed;padding:6px 10px;color:#687680;font-size:10px;font-weight:700;white-space:nowrap}.pill-teal{background:#e8f3ef;color:#35736b}.pill-gold{background:#f6eee2;color:#a67c48}.bar-track{height:7px;border-radius:9px;background:#edf0ed;overflow:hidden;margin-top:8px}.bar-track progress{display:block;width:100%;height:100%;border:0;appearance:none;background:transparent}.bar-track progress::-webkit-progress-bar{background:#edf0ed}.bar-track progress::-webkit-progress-value{background:var(--teal);border-radius:8px}.bar-track progress::-moz-progress-bar{background:var(--teal)}
.module-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:23px}.backlink{font-size:12px;color:var(--muted);background:none;border:0;padding:3px 0}.backlink:hover{color:var(--ink)}.module-label{font-size:11px;color:var(--gold);letter-spacing:1.6px;text-transform:uppercase;font-weight:800}.module-header h1{font:400 38px Georgia,serif;margin:7px 0 0}.stage-bar{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;margin-bottom:25px}.stage-pill{background:#fff;border:1px solid var(--border);border-radius:11px;padding:13px 9px;text-align:left;min-height:65px;display:flex;flex-direction:column;gap:8px;color:#8a9aa1;transition:all .12s}.stage-pill span{font-size:10px;font-weight:800;color:inherit}.stage-pill small{font-size:10px;line-height:1.25;color:inherit}.stage-pill.done{background:#ecf3ef;border-color:#d6e5dc;color:#3f7468;cursor:pointer}.stage-pill.current{background:#243d49;border-color:#243d49;color:#fff}.stage-pill.upcoming{cursor:not-allowed}.workbench{display:grid;grid-template-columns:minmax(320px,1fr) minmax(380px,1fr);gap:21px;align-items:start}.reading-pane{position:sticky;top:22px;overflow:hidden;max-height:calc(100vh - 44px);display:flex;flex-direction:column}.pane-head{display:flex;align-items:center;justify-content:space-between;padding:20px 24px 17px;border-bottom:1px solid var(--border)}.pane-head h3{font:400 23px Georgia,serif;margin:0}.pane-sub{font-size:10px;color:var(--muted);margin-top:5px}.book-page{padding:27px 29px 30px;overflow-y:auto;max-height:65vh}.passage{font:400 16px/1.96 Georgia,"Times New Roman",serif;color:#344752;white-space:pre-wrap}.passage::first-letter{font-size:1.35em}.study-context{font-size:12px;line-height:1.85;white-space:pre-wrap;color:#60717a;border-left:2px solid #e0c89e;padding-left:15px;margin-top:25px}.source-link{display:flex;align-items:center;gap:7px;font-size:11px;text-decoration:none;color:#547e72;border-top:1px solid var(--border);padding:17px 24px}.source-link:hover{text-decoration:underline}.task-pane{padding:28px}.task-head{display:flex;align-items:start;justify-content:space-between;gap:14px;margin-bottom:20px}.step-index{font-size:10px;color:var(--gold);font-weight:800;letter-spacing:1.8px;text-transform:uppercase}.task-head h2{font:400 28px Georgia,serif;letter-spacing:-.4px;margin:8px 0 0}.instruction{background:#f7f6f1;border:1px solid #edebe3;border-radius:12px;padding:17px 18px;margin:18px 0 24px}.instruction strong{display:block;font-size:12px;margin-bottom:8px}.instruction p{font-size:12px;color:#667780;line-height:1.8;margin:0}.question{font-size:15px;font-weight:700;line-height:1.6;color:#233e49;margin:18px 0 16px}.form-label{display:block;font-size:12px;font-weight:750;color:#425662;margin-bottom:9px}.radio-list{display:flex;flex-direction:column;gap:8px}.radio-item{display:flex;gap:10px;align-items:center;border:1px solid var(--border);border-radius:10px;padding:11px 13px;font-size:12px;color:#546b72;cursor:pointer}.radio-item:has(input:checked){border-color:#8cb4a5;background:#f0f7f3;color:#2d6157}.radio-item input,.check-item input{accent-color:#467b70}.check-item{border:1px solid var(--border);padding:12px;display:flex;align-items:start;gap:10px;border-radius:10px;font-size:12px;line-height:1.6;margin:8px 0;color:#526670;cursor:pointer}.check-item:has(input:checked){background:#f1f7f3;border-color:#9cbfb1}.task-footer{display:flex;align-items:center;justify-content:space-between;margin-top:23px;border-top:1px solid var(--border);padding-top:18px;gap:12px}.task-footer .hint{font-size:11px;color:var(--muted);max-width:205px;line-height:1.5}.info-list{display:flex;flex-direction:column;gap:13px}.note-block{border-left:3px solid #c9a777;background:#faf8f2;border-radius:0 9px 9px 0;padding:13px 17px;font-size:13px;color:#4d5e61;line-height:1.75}.term-list{display:grid;gap:9px;margin-top:16px}.term{padding:12px 15px;border:1px solid var(--border);border-radius:10px}.term strong{font-family:Georgia,serif;font-size:16px;font-weight:400}.term p{font-size:12px;color:#677880;line-height:1.6;margin:5px 0 0}.previous-answer{padding:18px;border:1px solid #dde5df;border-radius:12px;background:#f8fbf8;line-height:1.8;font-size:13px;white-space:pre-wrap;color:#45605d;margin-bottom:23px}.readonly{border-left:3px solid var(--teal);background:#f1f6f3;padding:16px;border-radius:0 9px 9px 0;color:#40675b;line-height:1.75;white-space:pre-wrap;font-size:13px}.completed{padding:40px;text-align:center}.completed .big-check{font-size:50px;color:#4e8872}.completed h2{font:400 32px Georgia,serif}.waiting{border:1px dashed #c5b592;background:#faf7ee;border-radius:11px;padding:28px;text-align:center}.waiting h3{font:400 25px Georgia,serif}.waiting p{font-size:12px;color:#7c786f;line-height:1.7}
.teacher-grid{display:grid;grid-template-columns:minmax(400px,1fr) minmax(370px,.8fr);gap:18px;align-items:start}.teacher-list{overflow:hidden}.card-top{padding:21px 23px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.card-top h3{font-size:15px;margin:0}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%}th{text-transform:uppercase;font-weight:800;letter-spacing:1.1px;color:#83949b;font-size:9.5px;text-align:left;border-bottom:1px solid var(--border);padding:14px 18px}td{padding:16px 18px;border-bottom:1px solid #f0f0eb;font-size:12px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafbf8}.table-row-action{background:transparent;border:0;padding:0;text-align:left;color:#244952;font-weight:750}.table-row-action:hover{text-decoration:underline}.score{font-weight:800;color:#2a635c}.review-card{padding:22px}.review-card h3{font:400 24px Georgia,serif;margin:4px 0}.review-card>.small{line-height:1.7}.review-form{margin-top:16px}.mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.empty-state{text-align:center;padding:50px 20px;color:var(--muted);font-size:13px}.detail-block{border-top:1px solid var(--border);padding-top:16px;margin-top:17px}.detail-block h4{font-size:12px;margin:0 0 10px}.detail-block pre{white-space:pre-wrap;overflow-wrap:anywhere;font:400 12px/1.7 inherit;color:#526770;margin:0}.details-highlight{border:1px solid #e4ece8;border-radius:12px;padding:15px;margin:12px 0;background:#fbfdfb}.config{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--border);border-radius:12px;padding:16px 18px;margin:17px 0}.config strong{font-size:13px}.config p{font-size:11px;color:var(--muted);line-height:1.6;margin:6px 0 0}.toggle{position:relative;width:45px;height:26px;background:#d8dfda;border-radius:40px;border:0;padding:2px;flex:none}.toggle:after{content:"";display:block;background:#fff;width:22px;height:22px;border-radius:50%;transition:transform .2s;box-shadow:0 1px 4px #0001}.toggle.on{background:#4d8a78}.toggle.on:after{transform:translateX(19px)}.credentials{background:#f8f2e7;border:1px solid #eee0ca;border-radius:10px;padding:15px;line-height:1.8;font-size:12px;white-space:pre-wrap}.modal-cover{position:fixed;inset:0;background:rgba(18,35,44,.53);display:grid;place-items:center;z-index:40;padding:25px}.modal{background:white;border-radius:18px;padding:29px;width:min(100%,540px);box-shadow:var(--shadow)}.modal h2{font:400 28px Georgia,serif;margin-top:0}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}.toast{position:fixed;bottom:24px;right:26px;background:#223d47;color:#fff;padding:14px 19px;border-radius:12px;font-size:12px;line-height:1.4;box-shadow:var(--shadow);opacity:0;transform:translateY(12px);pointer-events:none;transition:all .22s;z-index:90;max-width:390px}.toast.visible{opacity:1;transform:translateY(0)}.toast.error{background:#a14b48}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:1260px){.module-grid{grid-template-columns:1fr 1fr}.stage-pill{padding:10px 6px}.stage-pill small{font-size:9px}.content{padding:27px}.topbar{padding:0 27px}.workbench{grid-template-columns:minmax(270px,.92fr) minmax(360px,1.08fr)}.teacher-grid{grid-template-columns:1fr}}
@media(max-width:920px){.shell{grid-template-columns:74px 1fr}.sidebar{padding:19px 9px}.side-head{justify-content:center;padding:0 0 25px}.side-head .side-title,.side-head .side-sub,.nav-link span,.nav-link .nav-right,.side-section,.profile-name,.profile-code,.sidebar-logout span{display:none}.nav-link{justify-content:center;padding:13px 4px}.profile{justify-content:center}.side-head .brand-logo{display:grid}.workbench{grid-template-columns:1fr}.reading-pane{position:static;max-height:none}.book-page{max-height:none}.stage-bar{grid-template-columns:repeat(3,1fr)}.login{grid-template-columns:1fr}.login-side{min-height:300px;padding:35px}.login-splash{margin:35px 0 15px}.login-splash h1{font-size:46px}.login-footer{display:none}.login-main{padding:45px 25px}}
@media(max-width:600px){.content{padding:20px 15px}.topbar{padding:0 16px;height:66px}.top-tag{display:none}.page-title{font-size:30px}.module-grid,.stats{grid-template-columns:1fr}.module-header h1{font-size:28px}.stage-bar{grid-template-columns:repeat(2,1fr)}.mini-grid{grid-template-columns:1fr}.task-pane{padding:18px}.book-page{padding:20px}.page-head{align-items:start;flex-direction:column}.hero{padding:24px}.hero h2{font-size:26px}.task-footer{flex-direction:column;align-items:stretch}.task-footer .hint{max-width:unset}}
/* CultureLens L-01 refinements */
.sidebar-foot-note { font-size: 11px; line-height: 1.7; color: #9faebc; padding: 11px 14px; }
.stage-eight { grid-template-columns: repeat(8, minmax(0,1fr)); gap: 6px; }
.stage-eight .stage-pill { padding: 7px 4px; min-width: 0; font-size: 11px; }
.stage-eight .stage-pill small { font-size: 10px; overflow-wrap: anywhere; }
.passage-paragraphs { white-space: normal; line-height: 1.85; }
.passage-paragraphs p { margin: 0 0 17px; }
.reading-micro { padding: 13px 0; border-bottom: 1px solid #e8ecef; line-height: 1.65; }
.reading-micro span { font-weight: 700; color: #278477; margin-right: 7px; }
.micro-list { margin: 15px 0; }
.micro-item { padding: 14px 0; border-bottom: 1px solid #e8ecef; }
.micro-text { line-height: 1.6; font-weight: 500; }
.micro-text span { color: #559285; font-weight: 700; }
.micro-codes { display: flex; gap: 10px; margin-top: 10px; }
.code-chip { display: flex; align-items: center; gap: 5px; font-size: 12px; background: #f0f6f4; border-radius: 7px; padding: 7px 11px; cursor: pointer; }
.code-chip input { accent-color: #218475; }
.small-section { font-size: 15px; margin: 22px 0 12px; }
.fact-item { border-bottom: 1px solid #e8ecef; padding: 15px 0; }
.fact-item strong { font-size: 14px; font-weight: 600; line-height: 1.6; display: block; margin-bottom: 8px; }
.fact-item .radio-list { display:flex; gap: 8px; flex-wrap: wrap; }
.fact-item .radio-item { padding: 6px 9px; font-size: 12px; }
.previous-answer p { margin: 10px 0; }
.teacher-list table { font-size: 12px; }
@media (max-width: 1180px) {.stage-eight { grid-template-columns: repeat(4,minmax(0,1fr)); }}
@media (max-width: 740px) {.stage-eight { grid-template-columns: repeat(2,minmax(0,1fr)); }}

/* v0.2.1: participant review must contain arbitrary-length written answers.
   Break long tokens rather than expanding the research panel beyond the viewport. */
.teacher-grid > .card,
.review-card,
.review-card .detail-block,
.review-card .details-highlight,
.review-card .detail-block p,
.review-card .detail-block pre {
  min-width: 0;
  max-width: 100%;
}
.review-card .detail-block p,
.review-card .detail-block pre,
.review-card .details-highlight,
.review-card .details-highlight p {
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: normal;
}
.review-card .detail-block pre {
  white-space: pre-wrap;
}
.review-card .details-highlight p,
.review-card .detail-block > p {
  line-height: 1.7;
}

/* v0.3: precise student guidance and readable teacher records */
.task-guidance{font-size:12.5px;line-height:1.75;color:#536b71;margin:13px 0 15px}
.example-note{padding:12px 15px;border:1px solid #dce9e5;border-radius:10px;background:#f3f8f5;font-size:12.5px;line-height:1.8;margin:13px 0 20px}
.example-note strong{display:block;margin-bottom:6px}
.evidence-question{margin:18px 0 22px;padding-top:14px;border-top:1px solid #eef0eb}
.evidence-question .evidence-prompt{font-weight:700;font-size:13px;line-height:1.6;margin:0 0 5px;color:var(--ink)}
.evidence-question .helper{margin:0 0 12px}
.answer-view{margin:9px 0;padding:10px 12px;border-radius:9px;background:#f7f9f8;line-height:1.75;font-size:12.5px;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;max-width:100%;min-width:0}
.answer-view p{margin:5px 0;overflow-wrap:anywhere;word-break:normal}
.review-card .details-highlight,.review-card .previous-answer{overflow-wrap:anywhere}
/* CultureLens v0.4: adaptable module layouts, accessible answers and instructor review */
.hero-emblem{font:400 76px Georgia,serif;color:rgba(255,255,255,.30);position:relative;z-index:1}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.module-card{min-height:260px}.card-pad{padding:28px}.body-copy{font-size:13px;line-height:1.9;color:#50636b}.v04-two{display:grid;grid-template-columns:1fr 1fr;gap:20px}.v04-two p{font-size:12px;color:#62727b;line-height:1.7}.v04-two h4{margin:20px 0 10px}.module-header{align-items:center}.stage-bar{overflow-x:auto;padding-bottom:8px}.stage-pill{min-width:73px}.stage-pill.selected{box-shadow:0 0 0 2px #b99a6b}.workbench{grid-template-columns:minmax(340px,1fr) minmax(400px,1fr)}.source-title{font-size:11px;font-weight:800;color:#8b7656;letter-spacing:.7px;margin-bottom:14px}.text-source+.text-source{border-top:2px solid #ebeee9;margin-top:30px;padding-top:30px}.study-context{margin:10px 0 20px}.source-mini-link{display:block;font-size:11px;color:#5b8579;margin-top:13px}.glossary{margin-top:20px;border-left:2px solid #d7c196;padding:10px 14px;font-size:12px;line-height:1.8;color:#66747a;background:#faf9f6}.stage-bar .stage-pill small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reading-ack{padding:19px;background:#edf5f1;border:1px solid #e0eae4;border-radius:12px;font-size:12px;color:#4e7366}.waiting-icon{font-size:36px;color:#b49a6a}.complete-info{padding:15px 20px;background:#eef4f0;border:1px solid #dee8e1;border-radius:11px;margin:10px 0 22px;font-size:12px;color:#44695e}.field-options{display:flex;flex-direction:column;gap:8px}.flex-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.review-module{overflow:hidden}.review-stage-list{padding:4px 22px}.review-stage{border-bottom:1px solid #ebeee9;padding:14px 0;font-size:13px}.review-stage:last-child{border-bottom:0}.review-stage summary{font-weight:700;cursor:pointer;line-height:1.7;overflow-wrap:anywhere}.review-stage-body{padding:15px 0 0}.detail-answer{margin:12px 0}.detail-prompt{font-size:11px;font-weight:700;color:#69817f;margin-bottom:5px;overflow-wrap:anywhere}.answer-view{color:#364d55;font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;min-width:0;max-width:100%}.review-form-v04{padding:23px;border-top:1px solid #e5e9e3;background:#fdfdfb}.review-form-v04 h4{font-size:13px}.v04-scores{grid-template-columns:repeat(4,minmax(0,1fr))}.detail-stack{display:grid;gap:18px;max-width:1130px}.main{min-width:0}.content{min-width:0}.card{min-width:0}.review-module{min-width:0}.teacher-list{min-width:0}.study-context,.passage,.instruction,.note-block,.helper{overflow-wrap:anywhere}.modal{max-height:85vh;overflow:auto}.note-block{margin:12px 0}.field{min-width:0}.topbar{flex-wrap:wrap}@media(max-width:1220px){.workbench{grid-template-columns:minmax(0,1fr)}.reading-pane{position:relative;top:auto;max-height:none}.book-page{max-height:520px}.v04-scores{grid-template-columns:repeat(2,1fr)}}@media(max-width:850px){.module-grid{grid-template-columns:1fr}.v04-two{grid-template-columns:1fr}.content{padding:24px 20px}.shell{grid-template-columns:1fr}.sidebar{height:auto;position:relative}.side-grow{display:none}.sidebar .profile,.sidebar-logout{display:none}.login{grid-template-columns:1fr}.login-side{min-height:230px;padding:35px}.login-splash{margin:35px 0 0}.login-splash h1{font-size:42px}.login-main{padding:30px}.stage-bar{grid-template-columns:repeat(10,minmax(70px,1fr))!important}.topbar{padding:15px 20px;height:auto}}@media(max-width:500px){.page-head{align-items:start;flex-direction:column}.content{padding:18px 13px}.task-pane,.card-pad{padding:18px}.stats{grid-template-columns:1fr}.hero{padding:25px;min-height:190px}.hero-emblem{display:none}.workbench{display:flex;flex-direction:column}.workbench>*{width:100%}.stage-bar{gap:6px}.mini-grid{grid-template-columns:1fr 1fr}}
.stage-bar.stage-count-4{grid-template-columns:repeat(4,minmax(0,1fr))}.stage-bar.stage-count-6{grid-template-columns:repeat(6,minmax(0,1fr))}.stage-bar.stage-count-7{grid-template-columns:repeat(7,minmax(0,1fr))}.stage-bar.stage-count-9{grid-template-columns:repeat(9,minmax(0,1fr))}.stage-bar.stage-count-10{grid-template-columns:repeat(10,minmax(0,1fr))}@media(max-width:850px){.stage-bar.stage-count-4,.stage-bar.stage-count-6,.stage-bar.stage-count-7,.stage-bar.stage-count-9,.stage-bar.stage-count-10{display:flex;overflow-x:auto}.stage-pill{flex:0 0 80px}}


/* v0.4.1: Prevent saved student answers with no spaces from overflowing.
   Apply consistently to the student revision view and teacher review. */
.previous-answer,
.previous-answer p,
.previous-answer strong,
.readonly,
.answer-view,
.detail-block pre,
.detail-prompt,
.task-pane .instruction,
.task-pane .note-block,
.task-pane .question,
.task-pane .helper,
.task-pane .form-label,
.task-pane .radio-item,
.task-pane .check-item {
  overflow-wrap: anywhere;
  word-wrap: break-word;
  min-width: 0;
  max-width: 100%;
}
.previous-answer,
.previous-answer p,
.readonly,
.answer-view {
  word-break: break-word;
}
.previous-answer p {
  white-space: pre-wrap;
  margin: 11px 0;
}
.previous-answer p:last-child { margin-bottom: 0; }

/* v0.4.2 · Clear instructions, supporting examples and two-text switcher */
.source-tabs{display:flex;gap:7px;padding:12px 18px 7px;flex-wrap:wrap;background:#fbfcfb}
.source-tab{appearance:none;border:1px solid #d5dfda;border-radius:9px;padding:10px 11px;background:#fff;cursor:pointer;font-size:12px;line-height:1.3;color:#4b6369;text-align:left;flex:1 1 auto}
.source-tab.active{color:#fff;background:#294a51;border-color:#294a51;font-weight:750}
.source-tab:focus-visible{outline:3px solid #bca279;outline-offset:2px}
.source-hint{font-size:11px;line-height:1.5;color:#697d83;padding:0 18px 12px;border-bottom:1px solid #e4e9e5}
.text-source[hidden]{display:none!important}
.task-example{background:#eff6f2;border:1px solid #d5e5da;padding:13px 15px;margin:-10px 0 23px;border-radius:10px;overflow-wrap:anywhere;word-break:normal}
.task-example strong{display:block;font-size:12px;color:#35534c;margin-bottom:5px}
.task-example p{font-size:12px;line-height:1.75;color:#49665f;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.field>.helper{white-space:pre-line;margin-top:3px;margin-bottom:9px}
.field label{line-height:1.65}
.reading-pane,.task-pane,.task-example,.task-pane textarea{min-width:0;max-width:100%;overflow-wrap:anywhere}
@media(max-width:600px){.source-tabs{flex-direction:column}.source-tab{width:100%}}

/* Automatic checking, teacher review */
.auto-summary { font-size: .84rem; margin-top: 6px; color: var(--text-muted, #526875); }
.auto-grade { display: inline-block; padding: 5px 9px; margin-top: 7px; border-radius: 8px; font-size: .82rem; font-weight: 650; overflow-wrap: anywhere; }
.auto-grade-correct { background: #ecf7f0; color:#25664c; }
.auto-grade-incorrect { background:#fff1ea; color:#9d4628; }

/* v0.4.4: Russian contrast is an explicit bilingual learning aid, not a duplicate translation. */
.note-block.note-contrast {background:#f4f1ea;border-left:3px solid #b88b57;color:#39494a;padding:14px 17px;border-radius:6px;}

/* v0.4.5 · Local read-only reviewer preview */
.demo-entry{margin-top:12px;width:100%;font-size:13px}
.preview-toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;background:#f3f7f4;border:1px solid #dce9df;border-radius:12px;padding:12px 15px;margin:4px 0 20px}
.preview-toolbar span{flex:1 1 220px;font-size:12px;color:#36574d;font-weight:700}
.preview-banner{padding:12px 16px;margin:12px 0 20px;background:#f0f5f1;border-left:3px solid #658e7f;border-radius:8px;font-size:13px;color:#2f584a}
.preview-footer{justify-content:space-between}

/* v0.4.6 - gentle, predictable instructions on EVERY screen */
.step-guide{border:1px solid #dfebe6;border-radius:12px;padding:13px 17px;background:#f8fbf9;margin:0 0 12px;overflow-wrap:anywhere}
.step-guide-title{font-size:12px;font-weight:800;color:#2b594f;margin-bottom:8px}
.step-guide ol{margin:0;padding-left:20px;color:#405b55;font-size:12px;line-height:1.75}
.step-guide li{padding-left:4px;margin:4px 0}
.answer-format{padding:12px 15px;margin:0 0 17px;border-left:3px solid #bba176;border-radius:0 8px 8px 0;background:#fff9eb;color:#594b39;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.answer-format strong{color:#765936}
.model-guide{margin:12px 0 20px;border:1px solid #dedbcf;background:#fffefa;border-radius:10px;overflow:hidden;overflow-wrap:anywhere}
.model-guide summary{cursor:pointer;padding:13px 15px;background:#f3f0e7;font-size:12px;font-weight:800;color:#5c584d}
.model-guide-body{font-size:12px;line-height:1.85;padding:14px 17px 17px;color:#3b4e53;white-space:normal}
@media(max-width:600px){.step-guide{padding:12px}.step-guide ol{padding-left:19px}}

/* Three-module curriculum */
.course-section{margin-top:32px}.course-section .section-head{margin-bottom:14px}.course-section .section-head h3{font-size:20px;font-family:Georgia,serif;font-weight:400;color:#243d46}.course-section .section-head p{margin:6px 0 0}.course-section .module-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.course-section .module-card{min-height:240px}.source-disclosure{background:#f7f2e9;color:#775f3d;padding:12px 14px;border-radius:9px;font-size:11px;line-height:1.6;margin:9px 0 14px;border-left:3px solid #c7ad78}.source-title{overflow-wrap:anywhere}.module-card h3{overflow-wrap:anywhere}@media(max-width:1200px){.course-section .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.course-section .module-grid{grid-template-columns:1fr}}

/* v0.5.5: student-facing Module > Lesson > Activity > Step navigation */
.module-heading-kicker{color:#ae8855;font-size:11px;letter-spacing:1.7px;font-weight:800;margin:0 0 4px;}
.module-card .small-kicker{letter-spacing:1.25px;font-size:10px;}
.module-card .module-bottom{gap:8px;flex-wrap:wrap;}
.activity-overline{font-size:12px;font-weight:800;color:#336b61;margin-bottom:8px;letter-spacing:.15px;line-height:1.5;}
.stage-progress-wrap{display:flex;align-items:center;gap:10px;margin:-8px 0 16px;color:#69828c;font-size:11px;font-weight:700;}
.stage-progress{height:5px;flex:1;background:#e6ece8;border-radius:12px;overflow:hidden;}
.stage-progress-fill{height:100%;border-radius:12px;background:#47796c;}
.stage-bar{grid-template-columns:repeat(auto-fit,minmax(85px,1fr));}
.stage-pill{min-width:0;}
.stage-pill small{overflow-wrap:anywhere;word-break:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-height:2.6em;}
@media (max-width:700px){.stage-bar{grid-template-columns:repeat(3,minmax(0,1fr));}}

@media(max-width:850px){.sidebar .sidebar-logout{display:block}.sidebar{gap:6px}.nav-link{white-space:normal}.table-wrap{overflow-x:auto}.stage-bar{display:flex!important;overflow-x:auto}.stage-pill{flex:0 0 85px}.book-page{max-height:55vh}.review-module .card-top{flex-wrap:wrap}}

.stage-native-progress{display:block;width:100%;height:100%;accent-color:#5b8579;}

.research-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:24px 0}.research-stats{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.research-trends{margin-top:22px}.trend-line{display:grid;grid-template-columns:150px 1fr;gap:12px;align-items:center;margin:12px 0;overflow:auto}.trend-values{display:grid;grid-template-columns:repeat(16,minmax(28px,1fr));gap:4px}.trend-cell{text-align:center;display:grid;gap:3px;font-size:12px}.trend-cell small{font-size:10px;color:#667985}.trend-track{height:42px;background:#f1f3f3;display:flex;align-items:flex-end;border-radius:4px;overflow:hidden}.trend-bar{width:100%;background:#488b7b}.trend-0{height:3px;background:#b97852}.trend-1{height:50%}.trend-2{height:100%}.trend-na{height:0}.ai-answer{border-left:3px solid #488b7b;background:#f0f6f4;padding:12px 14px;margin-top:10px;overflow-wrap:anywhere}.ai-answer p{margin:8px 0 0}.review-stage-body .helper{margin-bottom:10px}.research-trends h3{margin-top:0}@media(max-width:700px){.trend-line{grid-template-columns:1fr}.trend-values{min-width:460px}.research-trends{overflow:auto}}
