*{box-sizing:border-box}
:root{--bg:#eef2f6;--ink:#1f2937;--muted:#667085;--line:#d8e0e8;--blue:#185abd;--blue2:#0f4aa3;--soft:#eaf2ff;--good:#166534;--bad:#991b1b;--warn:#92400e;--shadow:0 22px 70px rgba(15,23,42,.12)}
html,body{margin:0;min-height:100%;font-family:"Segoe UI Variable","Segoe UI",Inter,system-ui,-apple-system,sans-serif;color:var(--ink);background:radial-gradient(circle at 10% 0%,rgba(59,130,246,.13),transparent 32rem),radial-gradient(circle at 92% 10%,rgba(124,58,237,.10),transparent 34rem),linear-gradient(160deg,#f6f9fc,#edf2f7)}
button,input,select{font:inherit}.hidden{display:none!important}button{cursor:pointer}.topbar{height:66px;padding:0 clamp(12px,3vw,34px);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;background:rgba(248,250,252,.78);backdrop-filter:blur(20px);border-bottom:1px solid rgba(255,255,255,.95);position:sticky;top:0;z-index:30}.brand-side{display:flex;align-items:center;gap:9px}.back{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;text-decoration:none;color:#344054}.back:hover{background:#fff}.brand{display:flex;gap:9px;align-items:center;text-decoration:none;color:inherit}.brand-orb{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(135deg,#2563eb,#7c3aed);color:white;font-weight:900}.brand strong,.brand small{display:block}.brand small{color:#667085;font-size:.72rem}.top-title{color:#667085;font-weight:650;font-size:.88rem}.sys-btn{justify-self:end;border:1px solid #d8e0e8;background:#fff;border-radius:9px;padding:8px 12px;color:#344054}.shell{width:min(1380px,calc(100% - 24px));margin:24px auto 82px}.start-window,.task-card,.word-window,.results{background:rgba(255,255,255,.86);backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.88);box-shadow:var(--shadow)}.start-window{max-width:1080px;margin:30px auto;display:grid;grid-template-columns:1.25fr .75fr;border-radius:24px;overflow:hidden}.intro{padding:clamp(30px,6vw,70px)}.launch-panel{padding:34px;background:rgba(255,255,255,.62);border-left:1px solid rgba(148,163,184,.22);display:flex;flex-direction:column;justify-content:center}.eyebrow{color:#2563eb;font-size:.72rem;font-weight:850;letter-spacing:.11em}.start-window h1,.results h1{font-size:clamp(2.4rem,5vw,4.8rem);line-height:.96;letter-spacing:-.05em;margin:10px 0 18px}.intro p{color:#475467;line-height:1.75}.badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px}.badges span{padding:7px 10px;border-radius:999px;background:#fff;border:1px solid #e2e8f0;color:#475467;font-size:.8rem}.launch-panel label{font-weight:750;font-size:.9rem;margin-bottom:7px}.launch-panel label small{display:block;color:#98a2b3;font-weight:500;margin-top:2px}.launch-panel input{min-height:46px;border:1px solid #cbd5e1;border-radius:10px;padding:0 12px;background:#fff;font-size:16px}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0}.mode-card{border:1px solid #dbe3ec;background:#fff;border-radius:12px;text-align:left;padding:12px}.mode-card strong,.mode-card span{display:block}.mode-card span{font-size:.74rem;color:#667085;margin-top:4px}.mode-card.selected{border-color:#60a5fa;background:#eff6ff;box-shadow:0 0 0 2px rgba(37,99,235,.08)}.small{font-size:.75rem;color:#98a2b3}.primary,.secondary{min-height:40px;border-radius:9px;padding:8px 14px;font-weight:680}.primary{border:1px solid var(--blue);background:var(--blue);color:white}.primary:hover{background:var(--blue2)}.secondary{border:1px solid #d8e0e8;background:#fff;color:#344054}.wide{width:100%}.quest-strip{display:grid;grid-template-columns:auto auto auto minmax(150px,1fr) auto auto;gap:16px;align-items:center;background:#111827;color:white;border-radius:15px;padding:12px 16px;margin-bottom:14px}.quest-strip>div{display:flex;flex-direction:column;gap:2px;white-space:nowrap}.quest-strip span{font-size:.66rem;text-transform:uppercase;letter-spacing:.09em;color:#94a3b8}.quest-strip strong{font-size:.88rem}.progress{height:7px;background:#334155;border-radius:99px;overflow:hidden}.progress>div{height:100%;width:0;background:linear-gradient(90deg,#60a5fa,#a78bfa);transition:width .2s}.task-card{border-radius:16px;padding:20px 22px;margin-bottom:14px}.task-head{display:flex;justify-content:space-between;gap:16px}.task-head h2{margin:4px 0 0;font-size:1.34rem}.marks{background:#eef2f7;border:1px solid #e2e8f0;border-radius:999px;padding:6px 10px;font-size:.76rem;font-weight:780;white-space:nowrap}.mission-text{color:#344054;line-height:1.65}.checklist{display:grid;gap:5px;color:#667085;font-size:.85rem}.checklist div:before{content:"□";margin-right:8px;color:#98a2b3}.feedback{margin-top:12px;padding:11px 13px;border-radius:10px;font-size:.85rem;font-weight:650}.feedback.good{background:#ecfdf3;color:var(--good);border:1px solid #bbf7d0}.feedback.bad{background:#fff1f0;color:var(--bad);border:1px solid #fecaca}.feedback.hint{background:#fffaeb;color:var(--warn);border:1px solid #fde68a}.task-buttons{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.word-window{border-radius:15px;overflow:hidden;min-height:640px}.word-titlebar{height:39px;background:#185abd;color:#fff;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding-left:8px;font-size:.78rem}.quick-access{display:flex;align-items:center;gap:3px}.quick-access button{border:0;background:transparent;color:white;width:30px;height:30px;border-radius:5px}.quick-access button:hover{background:rgba(255,255,255,.14)}.word-icon{width:28px;height:28px;display:grid;place-items:center;font-size:1.05rem;font-weight:900}.word-label{opacity:.75}.window-controls{justify-self:end;display:flex}.window-controls span{width:45px;height:39px;display:grid;place-items:center}.ribbon-tabs{height:39px;display:flex;align-items:end;background:#fff;border-bottom:1px solid #dce3ec;padding-left:8px}.tab{border:0;background:transparent;padding:10px 14px 9px;color:#344054;border-bottom:3px solid transparent}.tab.active{color:#185abd;border-bottom-color:#185abd;font-weight:700}.ribbon{min-height:95px;background:#fff;border-bottom:1px solid #dce3ec;display:flex;align-items:stretch;gap:2px;padding:6px 8px;overflow-x:auto}.group{display:flex;gap:5px;padding:4px 9px 18px;border-right:1px solid #e5e7eb;position:relative;align-items:center}.group:after{content:attr(data-label);position:absolute;bottom:2px;left:0;right:0;text-align:center;color:#7b8794;font-size:.61rem}.rib-btn{border:0;background:transparent;border-radius:6px;min-width:52px;height:58px;padding:4px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#344054;font-size:.69rem}.rib-btn:hover{background:#eef4fb}.rib-btn .ico{font-size:1.2rem}.font-stack{display:grid;grid-template-columns:130px 64px;gap:4px}.font-stack select,.font-stack input,.para-input{height:30px;border:1px solid #cbd5e1;border-radius:5px;background:#fff;padding:3px 6px;font-size:.75rem}.mini-row{grid-column:1/3;display:flex;gap:3px}.mini-row button,.para-buttons button{width:30px;height:29px;border:1px solid #dce3ec;background:#fff;border-radius:5px;font-weight:750}.mini-row button:hover,.para-buttons button:hover{background:#eef4fb}.color-dot{display:inline-block;width:13px;height:4px;background:#0b2f6b}.highlight-dot{display:inline-block;width:13px;height:6px;background:#fde047}.para-stack{display:grid;gap:4px;min-width:176px}.para-buttons{display:flex;gap:3px}.para-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.para-fields label{font-size:.58rem;color:#667085;display:grid;gap:2px}.para-fields input,.para-fields select{width:54px;height:26px;border:1px solid #cbd5e1;border-radius:4px;font-size:.7rem;padding:2px 4px}.style-gallery{display:flex;gap:5px;align-items:center;min-width:290px}.style-tile{width:90px;height:52px;background:#fff;border:1px solid #cbd5e1;border-radius:5px;padding:5px;text-align:left;overflow:hidden}.style-tile:hover,.style-tile.active{border-color:#60a5fa;background:#eff6ff}.style-tile strong{display:block;font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.style-tile span{font-family:Georgia,serif;font-size:.66rem;color:#475467}.word-area{display:grid;grid-template-columns:190px minmax(0,1fr) 260px;min-height:500px;background:#e9edf2}.navigation-pane,.styles-pane{background:#fff;border-right:1px solid #d8e0e8;min-width:0}.styles-pane{border-right:0;border-left:1px solid #d8e0e8}.pane-title{padding:12px;font-size:.78rem;font-weight:700}.navigation-pane input{margin:0 10px 9px;width:calc(100% - 20px);height:31px;border:1px solid #cbd5e1;border-radius:5px;padding:0 8px;color:#98a2b3;font-size:.72rem}.outline{padding:4px 8px}.outline button{display:block;width:100%;border:0;background:transparent;text-align:left;padding:7px;border-radius:5px;font-size:.74rem;color:#475467}.outline button:hover{background:#eef4fb}.page-zone{min-width:0;display:flex;flex-direction:column}.ruler{height:27px;background:#f7f8fa;border-bottom:1px solid #d8e0e8;display:flex;justify-content:space-between;padding:6px 9%;font-size:.58rem;color:#6b7280}.page-scroll{padding:24px 18px 32px;overflow:auto;flex:1}.page{width:min(760px,100%);min-height:860px;margin:0 auto;background:white;box-shadow:0 4px 16px rgba(15,23,42,.14);padding:55px 64px;position:relative}.doc-header,.doc-footer{min-height:34px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;color:#475467;font-size:.72rem}.doc-header{border-bottom:1px dashed #d1d5db;margin-bottom:28px}.doc-footer{border-top:1px dashed #d1d5db;margin-top:32px;padding-top:10px}.hf-zone{min-height:25px;border-radius:4px;padding:4px}.hf-zone:hover,.hf-zone.selected{background:#eaf2ff;outline:1px solid #93c5fd}.doc-body{font-family:"Times New Roman",Times,serif}.block{margin:0 0 11pt;line-height:1.15;min-height:22px;padding:2px 4px;border-radius:4px;white-space:pre-wrap}.block:hover{background:#f8fafc}.block.selected{background:#eaf2ff;outline:1px solid #93c5fd}.block.heading{font-family:Arial,sans-serif;font-size:18pt}.block.subheading{font-family:Arial,sans-serif;font-size:14pt}.list-wrap{margin:0 0 10px}.list-item{display:flex;gap:8px;align-items:flex-start;margin:2px 0;padding:2px 4px;border-radius:4px}.list-item:hover{background:#f8fafc}.list-item.selected{background:#eaf2ff;outline:1px solid #93c5fd}.marker{min-width:30px;text-align:right}.list-text{flex:1;min-width:0}.table-placeholder{border:1px solid #cbd5e1;border-collapse:collapse;width:100%;margin:12px 0}.table-placeholder td{border:1px solid #cbd5e1;padding:6px;font-size:.72rem}.statusbar{height:27px;background:#fff;border-top:1px solid #d8e0e8;display:flex;justify-content:space-between;padding:6px 12px;color:#667085;font-size:.64rem}.pane-title-row{display:flex;justify-content:space-between;align-items:center;padding:11px 10px;border-bottom:1px solid #e5e7eb}.pane-title-row button{border:0;background:transparent;font-size:1.1rem}.styles-list{padding:8px;display:grid;gap:5px}.style-row{border:1px solid #d8e0e8;background:#fff;border-radius:5px;padding:7px;text-align:left}.style-row:hover{background:#f6f9fc}.style-row strong{display:block;font-size:.76rem}.style-row span{font-size:.64rem;color:#667085}.pane-actions{display:flex;gap:6px;padding:8px;border-top:1px solid #e5e7eb}.pane-actions button{flex:1;border:1px solid #cbd5e1;background:#fff;border-radius:6px;padding:6px;font-size:.68rem}.selection-info{padding:10px;border-top:1px solid #e5e7eb;font-size:.69rem;color:#667085;line-height:1.5}.modal{position:fixed;inset:0;background:rgba(15,23,42,.45);backdrop-filter:blur(4px);display:grid;place-items:center;padding:16px;z-index:60}.dialog{width:min(600px,100%);max-height:88vh;overflow:auto;background:#fff;border-radius:12px;box-shadow:0 28px 90px rgba(15,23,42,.32);padding:20px}.dialog h3{margin:0 0 14px}.dialog-body{display:grid;gap:10px}.dialog-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.dialog label{display:grid;gap:4px;color:#475467;font-size:.76rem;font-weight:650}.dialog input,.dialog select{min-height:40px;border:1px solid #cbd5e1;border-radius:7px;padding:6px 8px;font-size:16px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.evidence-preview{border:1px solid #d8e0e8;background:#f8fafc;border-radius:8px;padding:12px;font-size:.75rem}.evidence-preview code{display:block;white-space:pre-wrap;color:#344054}.results{max-width:1050px;margin:28px auto;border-radius:22px;padding:clamp(26px,5vw,52px)}.result-top{display:flex;gap:18px;align-items:center;margin:25px 0}.score-ring{width:112px;height:112px;border-radius:50%;display:grid;place-items:center;border:11px solid #dbeafe;background:#fff}.score-ring span{font-size:1.5rem;font-weight:900;color:#1d4ed8}.big-score{font-size:2rem;font-weight:900}.result-top p{color:#667085;margin:5px 0}.result-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:14px}.result-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:16px}.skill-row{display:grid;grid-template-columns:130px 1fr auto;gap:9px;align-items:center;margin:10px 0;font-size:.8rem}.skill-track{height:7px;border-radius:99px;background:#e5e7eb;overflow:hidden}.skill-track div{height:100%;background:#3b82f6}.review-row{display:grid;grid-template-columns:1fr auto;gap:10px;border-bottom:1px solid #eef2f6;padding:9px 0;font-size:.8rem}.ok{color:#15803d;font-weight:800}.miss{color:#b42318;font-weight:800}.result-buttons{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.link{display:inline-flex;align-items:center;text-decoration:none}.taskbar{position:fixed;bottom:0;left:0;right:0;height:48px;background:rgba(248,250,252,.76);backdrop-filter:blur(24px);border-top:1px solid rgba(255,255,255,.9);display:flex;align-items:center;justify-content:center;gap:6px;z-index:40}.task-icon{width:38px;height:38px;border-radius:8px;display:grid;place-items:center;text-decoration:none;color:#344054}.task-icon.active,.task-icon:hover{background:#fff}
@media(max-width:1050px){.word-area{grid-template-columns:150px minmax(0,1fr) 220px}.page{padding:45px 44px}.quest-strip{grid-template-columns:auto auto minmax(130px,1fr) auto auto}.quest-strip>div:nth-child(2){display:none}}
@media(max-width:800px){.topbar{grid-template-columns:1fr auto}.top-title{display:none}.start-window{grid-template-columns:1fr}.launch-panel{border-left:0;border-top:1px solid #e5e7eb}.word-area{grid-template-columns:1fr}.navigation-pane{display:none}.styles-pane{border-left:0;border-top:1px solid #d8e0e8;max-height:240px;overflow:auto}.page{min-height:680px;padding:38px 30px}.quest-strip{grid-template-columns:auto 1fr auto auto}.quest-strip>div:nth-child(3){display:none}.result-grid{grid-template-columns:1fr}}
@media(max-width:560px){.shell{width:min(100% - 10px,1380px);margin-top:10px}.brand small{display:none}.mode-grid{grid-template-columns:1fr}.intro,.launch-panel{padding:24px 20px}.quest-strip{grid-template-columns:auto 1fr auto;gap:8px}.quest-strip>div:nth-child(5){display:none}.task-card{padding:16px}.task-head{flex-direction:column}.task-buttons{justify-content:stretch}.task-buttons button{flex:1}.word-titlebar{grid-template-columns:1fr auto}.word-titlebar>div:nth-child(2){display:none}.ribbon-tabs{overflow:auto}.ribbon{min-height:85px}.font-stack{grid-template-columns:105px 58px}.style-gallery{min-width:240px}.page-scroll{padding:12px 5px 24px}.page{padding:30px 20px;min-height:600px}.styles-pane{max-height:210px}.result-top{align-items:flex-start}.skill-row{grid-template-columns:100px 1fr auto}}

.quick-access button,.quick button{border:0;background:transparent;color:inherit;min-width:26px;height:26px;border-radius:5px;padding:2px 5px;cursor:pointer}.quick-access button:hover,.quick button:hover{background:rgba(255,255,255,.18)}.quick-access button:disabled,.quick button:disabled{opacity:.4;cursor:default}

/* Error 24: preserve Word Navigation pane at narrow widths; stack it rather than delete it. */
@media(max-width:800px){
  .navigation-pane{display:block!important;border-right:0;border-bottom:1px solid #d8e0e8;max-height:150px;overflow:auto}
  .word-area{grid-template-columns:1fr!important}
}

