/* Desktop Word-inspired workspace; scoped to the examination section. */
.practical-tabs{display:flex;gap:6px;margin:8px 0 18px;flex-wrap:wrap}.practical-tabs button{width:auto;margin:0;padding:10px 18px;background:#e7edf6;color:#1b355c;border:1px solid #cad5e6;border-radius:7px}.practical-tabs button[aria-pressed=true]{background:#174879;color:white}
.w-shell{border:1px solid #b7bfcb;border-radius:7px;background:#f4f5f7;margin-top:18px;overflow:hidden;font:13px/1.3 "Segoe UI",Arial,sans-serif;color:#27292e}
.w-titlebar{display:flex;gap:12px;align-items:center;background:#185abd;color:white;min-height:42px;padding:0 12px}.w-logo{background:#103f91;font-weight:800;font-size:20px;padding:3px 8px;border-radius:3px}.w-title{flex:1;text-align:center;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.w-account{font-size:11px}.w-quick{display:flex;gap:3px}.w-shell button{font:inherit;width:auto;margin:0;border-radius:3px;cursor:pointer}.w-qbutton{background:transparent;color:white;padding:6px 8px}.w-qbutton:hover{background:#ffffff26}
.w-tabs{display:flex;align-items:center;gap:12px;background:#fff;padding:0 12px;border-bottom:1px solid #dadce2;overflow-x:auto}.w-tab{background:transparent;color:#282b32;padding:9px 12px!important;border-bottom:3px solid transparent!important;white-space:nowrap}.w-tab[aria-pressed=true]{color:#185abd;font-weight:650;border-color:#185abd!important}.w-tab:first-child{color:#185abd}
.w-ribbon{display:flex;gap:0;align-items:stretch;background:#fff;border-bottom:1px solid #bfc5cf;min-height:105px;overflow-x:auto;padding:5px 4px 0}.w-group{display:flex;flex-direction:column;justify-content:space-between;flex:none;border-right:1px solid #d9dce3;padding:3px 8px;max-width:226px}.w-tools{display:flex;flex-wrap:wrap;gap:3px;align-items:center;align-content:flex-start;min-width:54px;flex:1}.w-group-name{text-align:center;color:#5d626b;font-size:11px;padding:7px 0 3px}.w-shell .w-tool{background:transparent;color:#24262b;border:1px solid transparent;padding:5px 7px;min-height:27px;font-size:12px;white-space:nowrap}.w-shell .w-tool:hover{background:#e7f0fb;border-color:#cbdcf6}.w-shell .w-tool:disabled{opacity:.45}.w-big{font-size:14px!important;min-height:54px!important}.w-bold{font-weight:800!important}.w-italic{font-style:italic!important}.w-under{text-decoration:underline}.w-strike{text-decoration:line-through}.w-style,.w-heading,.w-heading2{border-color:#d7dbe2!important;background:#fff!important;font-size:16px!important;padding:8px 7px!important}.w-heading{color:#175abd!important;font-size:19px!important}.w-heading2{color:#175abd!important}.w-field,.w-color{display:flex;align-items:center;margin:0;gap:2px;font-weight:400;font-size:11px}.w-field select{padding:3px 5px;font:inherit;height:26px;max-width:126px;width:auto;border-radius:2px;background:#fff;border:1px solid #c8cbd1}.w-color input{width:22px;height:24px;padding:1px;border:1px solid #bfc5cf}.w-help{font-size:12px;color:#555;padding:5px;max-width:160px}
.w-stage{background:#e5e6e8;overflow:auto;padding:12px 20px 32px;min-height:560px}.w-ruler{font:10px/1.5 "Segoe UI",sans-serif;letter-spacing:3px;white-space:pre;text-align:center;background:repeating-linear-gradient(90deg,#949da6 0,#949da6 1px,white 1px,white 12px);border:1px solid #c2c7ce;width:450px;max-width:100%;margin:0 auto 12px;color:#444;height:16px;overflow:hidden}.w-page{background:white;box-shadow:0 1px 7px #0003;border:1px solid #cbd0d5;outline:none;box-sizing:border-box;width:794px;min-height:1123px;margin:0 auto;padding:96px;font:16px/1.15 Calibri,"Carlito","Segoe UI",Arial,sans-serif;color:#202124;overflow-wrap:anywhere}.w-page.landscape{width:1123px;min-height:794px}.w-page.narrow{padding:48px}.w-page.wide{padding:96px 144px}.w-page p{margin:0 0 12px}.w-page h1{font-size:30px;color:#2f5496;font-weight:400;margin:0 0 12px}.w-page h2{font-size:24px;color:#2f5496;font-weight:400;margin:0 0 10px}.w-page table{width:auto;min-width:150px;border-collapse:collapse;margin:10px 0}.w-page td,.w-page th{border:1px solid #555;min-width:75px;padding:8px;background:transparent}.w-page .word-image,.w-page img{max-width:260px;max-height:150px;display:inline-block}.w-page[contenteditable=false]{cursor:default}.w-statusbar{display:flex;gap:15px;flex-wrap:wrap;background:#f8f9fa;border-top:1px solid #c3cbd4;color:#4e545e;padding:8px 12px;font-size:11px}.w-statusbar span:nth-child(3){flex:1}.w-shell :focus-visible{outline:2px solid #185abd;outline-offset:1px}
main:has(#wordSection:not([hidden])){max-width:1380px}@media(max-width:700px){.w-title{text-align:left}.w-account{display:none}.w-stage{padding:10px}.w-page{margin-left:0}.w-ribbon{min-height:100px}}

.w-dialog{border:1px solid #9fa9b8;border-radius:4px;padding:0;width:min(420px,90vw);box-shadow:0 16px 45px #0004;font:14px/1.35 "Segoe UI",Arial,sans-serif;color:#222;background:#fff}.w-dialog::backdrop{background:#1b2d4755}.w-dialog-title{display:flex;justify-content:space-between;align-items:center;background:#f3f5f8;padding:8px 12px;border-bottom:1px solid #cdd3dc}.w-dialog .w-dialog-close{width:auto;margin:0;padding:2px 9px;background:transparent;color:#333;font-size:22px}.w-dialog-body{padding:16px}.w-dialog-body label{font-weight:400;font-size:13px;margin:12px 0}.w-dialog-body input,.w-dialog-body select{font:14px "Segoe UI",sans-serif;padding:7px;margin:5px 0 0;width:100%;border:1px solid #a9b4c2;border-radius:2px}.w-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.w-dialog .w-dialog-primary,.w-dialog .w-dialog-secondary{width:auto;margin:0;border-radius:3px;padding:7px 22px;font-size:13px;font-weight:500}.w-dialog .w-dialog-primary{background:#185abd;color:white}.w-dialog .w-dialog-secondary{background:white;color:#222;border:1px solid #b4bcc7}.w-dialog-warning{color:#ac2b26;font-size:12px}.w-grid-caption{font-weight:600;margin:12px 0 5px}.w-table-grid{display:grid;grid-template-columns:repeat(5,34px);gap:4px}.w-dialog .w-grid-cell{width:34px;height:29px;margin:0;padding:0;border:1px solid #aeb6c2;background:#fff;border-radius:0}.w-dialog .w-grid-cell.selected{background:#e2edff;border:1px solid #185abd}


/* Word ribbon refresh — visual-only presentation; all commands remain wired
   through word-editor.js and snapshots retain the word-v1 contract. */
.w-shell {
  --word-ink:#24262d; --word-accent:#1559a3;
  background:#f0f1f3; color:var(--word-ink);
  border:1px solid #d9dce3; border-radius:12px;
  box-shadow:0 5px 22px #1d33441a; margin-top:18px;
  font:13px/1.4 "Segoe UI",Aptos,Arial,sans-serif;
}
.w-titlebar {
  background:#fafbfc; color:#32353b; min-height:43px;
  padding:0 16px; gap:10px; border-bottom:1px solid #ebeef2;
}
.w-logo {
  display:grid;place-items:center;width:27px;height:27px;
  border-radius:5px;background:#1559a3;color:white;
  font:bold 19px/1 Georgia,serif;padding:0;box-shadow:0 2px 4px #17395b24;
}
.w-title {
  flex:1;text-align:left;font-size:13px;min-width:125px;
  font-weight:600;color:#383b42;letter-spacing:.005em;
}
.w-quick {gap:2px;order:2;border-left:1px solid #e0e4eb;padding-left:7px}
.w-shell .w-qbutton {
  color:#4b5460;min-width:32px;min-height:30px;
  padding:5px 7px;border:1px solid transparent;
  background:transparent;font-size:15px;
}
.w-shell .w-qbutton:hover:not(:disabled){background:#e7eef9;border-color:#c6d7ee}
.w-account {
  order:3;color:#526071;font-size:11px;border-left:1px solid #e0e4eb;
  margin-left:7px;padding-left:12px;white-space:nowrap;
}
.w-tabs {
  gap:0;min-height:45px;padding:0 10px;
  background:#f6f7fa;border-bottom:0;
  scrollbar-width:thin;scrollbar-color:#d2d6dd transparent;
}
.w-shell .w-tab {
  border:0!important;border-bottom:3px solid transparent!important;
  padding:11px 14px 9px!important;color:#343943;
  font-size:14px;line-height:20px;background:transparent;border-radius:0;
}
.w-shell .w-tab:first-child{color:#343943}
.w-shell .w-tab:hover {background:#e8edf5;color:#1c4780}
.w-shell .w-tab[aria-pressed=true] {
  color:#164d91;background:transparent;font-weight:650;
  border-bottom-color:#2462aa!important;
}
.w-ribbon {
  min-height:157px;max-height:210px;
  margin:0 8px 8px;border:1px solid #dfe3e9;border-radius:10px;
  box-shadow:0 2px 5px #11182712;
  background:#fff;padding:10px 5px 5px;align-items:stretch;
  overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;
}
.w-group {
  border-right:1px solid #e2e5ea;
  padding:2px 11px 1px;max-width:none;min-width:fit-content;
  justify-content:space-between;gap:7px;
}
.w-group:last-child{border-right:0}
.w-tools {
  flex:1;display:flex;align-items:flex-start;align-content:flex-start;
  justify-content:flex-start;gap:4px;flex-wrap:nowrap;
  min-width:0;
}
.w-group-name {
  min-height:17px;margin-top:auto;padding:4px 2px 0;
  color:#616672;font-size:11px;line-height:1.15;white-space:nowrap;
}
.w-row{display:flex;align-items:center;gap:4px;flex-wrap:nowrap;min-width:0}
.w-stack{display:flex;flex-direction:column;gap:7px;align-items:flex-start}
.w-group-clipboard{min-width:125px}
.w-group-font{min-width:340px}
.w-group-paragraph{min-width:305px}
.w-group-styles{min-width:370px}
.w-group-editing{min-width:93px}
.w-shell .w-tool {
  color:#323844;background:transparent;border:1px solid transparent;
  padding:5px 6px;min-width:29px;min-height:31px;
  border-radius:4px;line-height:1.1;font-size:13px;
  white-space:nowrap;
}
.w-shell .w-tool:hover:not(:disabled) {
  background:#eaf2fb;border-color:#c8dcf1;
}
.w-shell .w-tool:active:not(:disabled){background:#dae9f9}
.w-shell .w-tool:disabled{opacity:.47;cursor:not-allowed}
.w-shell .w-tool.w-paste {
  display:flex;flex-direction:column;justify-content:center;
  width:67px;min-height:79px;padding:7px 5px;
  text-align:center;white-space:pre-line;
  font-size:16px!important;line-height:1.6;
  border:1px solid transparent;
}
.w-group-clipboard .w-stack .w-tool{min-width:52px;text-align:left}
.w-group-clipboard .w-stack{gap:9px}
.w-group-font .w-row:first-child{gap:5px}
.w-group-font .w-row:first-child .w-field:first-child select {
  width:170px;max-width:none;font-size:14px;
}
.w-group-font .w-row:first-child .w-field:nth-child(2) select {
  width:58px;max-width:none;font-size:14px;
}
.w-field{flex:none;gap:0}
.w-field select{
  height:32px;min-height:32px;border-radius:4px;
  border:1px solid #cbd1d9;background:#fff;color:#30343b;
  font:13px/1.2 "Segoe UI",Arial,sans-serif;
  padding:4px 23px 4px 8px;
}
.w-color{padding:0 2px;gap:3px;font-size:12px}
.w-color input{width:23px;height:27px;border-radius:3px;padding:2px}
.w-group-styles .w-tools,.w-group-styles .w-row{height:83px;align-items:stretch}
.w-shell .w-tool.w-style,.w-shell .w-tool.w-heading{
  display:flex;align-items:center;justify-content:center;
  background:#fff!important;border:1px solid #dde0e6!important;
  width:109px;min-width:109px;height:78px;font-size:17px!important;
  padding:8px!important;overflow:hidden;
}
.w-shell .w-tool.w-heading{
  width:131px;min-width:131px;
  color:#215878!important;font-size:22px!important;
  font-family:Georgia,"Times New Roman",serif;
}
.w-shell .w-tool.w-style:hover:not(:disabled),
.w-shell .w-tool.w-heading:hover:not(:disabled) {
  box-shadow:0 0 0 2px #bcd5f5 inset;background:#f6faff!important;
}
.w-shell .w-tool.w-no-spacing{font-size:15px!important}
.w-group-editing .w-stack{gap:3px}
.w-group-editing .w-tool{min-width:78px;text-align:left}
.w-help {
  display:block;max-width:255px;font-size:12px;line-height:1.5;
  padding:7px;color:#535c69;
}
.w-tab-explanation{max-width:500px;font-size:14px}
.w-stage {
  background:#ededf0;padding:12px 23px 46px;
  min-height:650px;overflow:auto;
  border-top:1px solid #dfe1e5;
}
.w-ruler {
  width:794px;max-width:none;height:23px;
  color:#69717c;font:11px/23px "Segoe UI",sans-serif;
  letter-spacing:6px;text-align:center;white-space:pre;
  border:0;border-bottom:1px solid #d0d4dc;
  margin:0 auto 15px;padding:0;
  background:repeating-linear-gradient(90deg,#c8cbd2 0px,#c8cbd2 1px,transparent 1px,transparent 8px);
  background-size:100% 8px;background-position:bottom;background-repeat:repeat-x;
}
.w-page {
  width:794px;min-height:1123px;
  background:#fff;color:#20252c;border:1px solid #c8ccd3;
  box-shadow:0 3px 14px #2634471b;
  padding:96px;margin:0 auto;
  font:16px/1.3 Aptos,Calibri,"Carlito","Segoe UI",Arial,sans-serif;
}
.w-page h1{font-size:30px;color:#245885}
.w-page h2{font-size:24px;color:#245885}
.w-page:focus{outline:2px solid #80acd9;outline-offset:-2px}
.w-statusbar{
  background:#fbfbfd;border-top:1px solid #d6d9df;
  color:#5b6370;padding:10px 14px;font-size:11px;
}
.w-statusbar span:nth-child(3){color:#225686;font-weight:600}
.w-shell :focus-visible{outline:2px solid #2368ac;outline-offset:1px}
@media(max-width:900px){
  .w-titlebar{padding:0 10px}
  .w-account{display:none}
  .w-tabs{padding:0 5px}
  .w-shell .w-tab{padding:10px 12px!important;font-size:13px}
  .w-ribbon{margin:0 5px 6px}
  .w-stage{padding:10px 12px 32px}
}
@media(max-width:600px){
  .w-title{min-width:0;font-size:12px}
  .w-quick{gap:0}
  .w-shell .w-qbutton{min-width:27px;padding:5px}
}
main:has(#wordSection:not([hidden])){max-width:1560px}


/* Four real alignment pictograms replace the nearly identical text glyphs.
   Uneven line lengths visibly change their LEFT / CENTRE / RIGHT edges. */
.w-group-paragraph .w-row:nth-child(2){gap:5px}
.w-shell .w-tool.w-align-button{
  width:38px;min-width:38px;height:38px;min-height:38px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid transparent;border-radius:5px;padding:5px 6px;
  color:#354354;transition:background .1s ease,border-color .1s ease;
}
.w-align-bars{
  width:23px;height:21px;display:flex;flex-direction:column;
  justify-content:space-evenly;align-items:flex-start;
}
.w-align-bar{
  width:100%;height:2px;display:block;
  background:currentColor;border-radius:1px;
}
.w-align-bar:nth-child(2){width:65%}
.w-align-bar:nth-child(4){width:76%}
.w-align-center .w-align-bars{align-items:center}
.w-align-right .w-align-bars{align-items:flex-end}
.w-align-justify .w-align-bar{width:100%}
.w-shell .w-tool.w-align-button[aria-pressed="true"]{
  background:#e2eefb;border:1px solid #b9d3f0;
  color:#135492;box-shadow:inset 0 0 0 1px #f3f8ff;
}
.w-shell .w-tool.w-align-button[aria-pressed="true"]:hover:not(:disabled){
  background:#d7e8fb;border-color:#8eb9e8;
}
.w-shell .w-tool.w-align-button:focus-visible{
  outline:2px solid #2368ac;outline-offset:2px;
}


/* Matching ribbon pictograms for bullets, numbering and indentation. */
.w-shell .w-tool.w-list-button{
 width:38px;min-width:38px;height:36px;min-height:36px;
 padding:4px 5px;display:inline-flex;justify-content:center;align-items:center;
 color:#344355;border-radius:5px;
}
.w-list-graphic,.w-indent-graphic{display:flex;flex-direction:column;gap:2px;width:25px}
.w-list-line{display:flex;align-items:center;gap:3px;height:5px}
.w-list-prefix{display:inline-block;min-width:7px;font:bold 10px/1 Arial,sans-serif;text-align:center}
.w-list-rule{display:block;width:15px;height:2px;border-radius:1px;background:currentColor}
.w-list-number .w-list-prefix{min-width:10px;font-size:9px}
.w-list-number .w-list-rule{width:12px}
.w-indent-graphic{flex-direction:row;align-items:center;gap:2px}
.w-indent-arrow{font:11px/1 Arial,sans-serif;color:#17589e;width:11px}
.w-indent-lines{display:flex;flex-direction:column;justify-content:center;gap:3px;width:13px;height:18px}
.w-indent-rule{height:2px;background:currentColor;border-radius:1px;width:100%}
.w-indent-rule:nth-child(2){width:68%}


/* A single, compact Word-style ribbon. On narrower screens the user scrolls
   sideways inside this strip; Styles and Editing must NEVER drop beneath it. */
.w-ribbon{
  display:flex;
  flex-wrap:nowrap;
  align-content:stretch;
  align-items:stretch;
  min-height:139px;
  max-height:190px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:8px 6px 4px;
  scrollbar-width:thin;
}
.w-group{
  flex:0 0 auto;
  min-width:fit-content;
  max-width:none;
  padding:2px 8px 1px;
  gap:5px;
}
.w-group-styles .w-tools,.w-group-styles .w-row{height:76px}
.w-shell .w-tool.w-style{
  width:101px;min-width:101px;height:72px;
  font-size:15px!important;
  padding:6px!important;
}
.w-shell .w-tool.w-heading{
  width:118px;min-width:118px;height:72px;
  font-size:19px!important;
  padding:6px!important;
}
.w-shell .w-tool.w-no-spacing{font-size:13px!important}
.w-group-font .w-row:first-child .w-field:nth-child(2) select{
  width:68px;
  padding-right:20px;
}
.w-ribbon::-webkit-scrollbar{height:8px}
.w-ribbon::-webkit-scrollbar-thumb{background:#b5bcc7;border-radius:6px}
.w-ribbon::-webkit-scrollbar-track{background:#f0f1f4;border-radius:6px}
