.ib-t3bhl-hw,
.ib-t3bhl-hw *{box-sizing:border-box}
.ib-t3bhl-hw{width:100%;max-width:none;margin:24px 0;font-family:Arial,Helvetica,sans-serif;color:#1e2430;line-height:1.45}
.ib-t3bhl-hw button,.ib-t3bhl-hw input,.ib-t3bhl-hw textarea{font:inherit}
.ib-t3bhl-hw button{cursor:pointer}
.ib-t3bhl-hw [hidden]{display:none!important}

/* Cover — locked IB Homework master layout */
.ib-t3bhl-hw-closed{position:relative;box-sizing:border-box;aspect-ratio:1.618/1;min-height:500px;padding:46px 52px;background:rgba(178,0,255,.09);border:2px solid #B200FF;border-radius:18px;text-align:left;overflow:hidden;color:#073b7a}
.ib-t3bhl-hw-closed h2{position:relative;z-index:2;margin:54px 0 38px;font-size:46px;line-height:1.05;font-weight:400;color:#073b7a}
.ib-t3bhl-cover-pill{position:relative;z-index:2;display:inline-flex;align-items:center;justify-content:center;min-width:330px;padding:15px 28px;border-radius:30px;background:#B200FF;color:#fff;font-size:20px;font-weight:700}
.ib-t3bhl-cover-features{position:relative;z-index:2;display:grid;grid-template-columns:240px 280px;gap:22px 28px;max-width:570px}
.ib-t3bhl-feature{display:flex;align-items:center;gap:16px;font-size:16px;font-weight:700;line-height:1.25;color:#073b7a}
.ib-t3bhl-icon{width:64px;height:64px;flex:0 0 64px;display:grid;place-items:center;border-radius:10px;background:#B200FF;color:#fff;font-size:38px;font-weight:700;box-shadow:0 5px 12px rgba(178,0,255,.18)}
.ib-t3bhl-homework-photo{position:absolute;left:64%;right:0;top:0;height:100%;z-index:0;overflow:hidden;pointer-events:none;border-radius:0 16px 16px 0;clip-path:inset(0 0 0 0 round 0 16px 16px 0);background-image:linear-gradient(90deg,rgba(178,0,255,.09) 0%,rgba(178,0,255,.10) 8%,rgba(178,0,255,.03) 22%,rgba(178,0,255,0) 32%),url("t3-bonding-hl-homework-desk-v1.webp");background-size:cover;background-position:center right}
.ib-t3bhl-homework-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(178,0,255,.05),transparent 30%);border-radius:inherit}
.ib-t3bhl-hw-start{position:absolute;left:52px;bottom:48px;z-index:5;width:225px;height:62px;padding:0 26px!important;border:0!important;border-radius:10px!important;background:#e3202d!important;color:#fff!important;font-size:20px!important;font-weight:800!important;text-transform:uppercase;display:flex;align-items:center;justify-content:space-between;box-shadow:0 6px 14px rgba(141,24,37,.17)}
.ib-t3bhl-hw-start span{font-size:30px;font-weight:400}
.ib-t3bhl-hw-start:hover{transform:translateY(-1px)}
.ib-t3bhl-cover-counters{position:absolute;left:315px;right:auto;bottom:47px;z-index:5;display:flex;align-items:center;gap:0;width:auto;max-width:380px;border:0;border-radius:0;background:rgba(178,0,255,.09);overflow:visible}
.ib-t3bhl-counter{min-width:185px;padding:11px 18px;display:flex;align-items:center;gap:12px;background:rgba(178,0,255,.09)}
.ib-t3bhl-counter+.ib-t3bhl-counter{border-left:1px solid rgba(178,0,255,.28)}
.ib-t3bhl-counter-icon{font-size:37px;line-height:1;color:#073b7a}
.ib-t3bhl-counter small,.ib-t3bhl-counter strong{display:block;color:#073b7a}
.ib-t3bhl-counter small{font-size:13px;font-weight:400}
.ib-t3bhl-counter strong{font-size:17px;margin-top:2px}
.ib-t3bhl-hw-status{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

@media(max-width:800px){
  .ib-t3bhl-hw-closed{aspect-ratio:auto;min-height:650px;padding:28px}
  .ib-t3bhl-hw-closed h2{font-size:38px;margin:34px 0}
  .ib-t3bhl-cover-pill{min-width:0;font-size:17px}
  .ib-t3bhl-cover-features{grid-template-columns:1fr;max-width:340px}
  .ib-t3bhl-homework-photo{left:72%;right:0;opacity:.7}
  .ib-t3bhl-cover-counters{left:28px;right:28px;bottom:115px;max-width:none}
  .ib-t3bhl-counter{min-width:0;flex:1}
  .ib-t3bhl-hw-start{left:28px;bottom:35px;width:220px;height:58px}
}
@media(max-width:560px){
  .ib-t3bhl-homework-photo{display:none}
  .ib-t3bhl-cover-features{max-width:none}
  .ib-t3bhl-cover-counters{flex-direction:column;align-items:stretch}
  .ib-t3bhl-counter+.ib-t3bhl-counter{border-left:0;border-top:1px solid rgba(178,0,255,.28)}
  .ib-t3bhl-hw-closed{min-height:760px}
}

/* Open homework */
.ib-t3bhl-hw-open{width:100%}
.ib-t3bhl-hw-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:0 2px 12px}
.ib-t3bhl-hw-head h2{margin:0;font-size:25px;line-height:1.2}
.ib-t3bhl-hw-head strong{white-space:nowrap;font-size:14px}
.ib-t3bhl-hw-savebar{display:grid;grid-template-columns:auto auto minmax(260px,1fr) auto;align-items:center;gap:12px;padding:10px 12px;margin-bottom:12px;background:#f4f5f6;border:1px solid #d8dbe0;border-radius:10px;position:sticky;top:0;z-index:20}
.ib-t3bhl-hw-save{border:0;border-radius:7px;padding:10px 14px;background:#c62828;color:#fff;font-weight:800}
.ib-t3bhl-hw-progress{display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid #cfd4dc;border-radius:999px;padding:7px 11px;font-weight:800;white-space:nowrap}
.ib-t3bhl-hw-marking-note{font-size:12px;color:#5e6671}
.ib-t3bhl-hw-saved{font-size:12px;color:#4e5966;white-space:nowrap;text-align:right}
.ib-t3bhl-hw-viewer{width:100%;max-height:78vh;overflow:auto;background:#d9dde2;border:1px solid #c7cbd1;border-radius:12px;padding:22px}
.ib-t3bhl-hw-paper{position:relative;width:100%;max-width:none;margin:0 auto 22px;padding:34px 36px 40px;background:#fff;box-shadow:0 2px 9px rgba(0,0,0,.12);border-radius:2px;min-height:520px}
.ib-t3bhl-hw-pagehead{position:absolute;right:28px;top:18px;color:#777;font-size:12px}
.ib-t3bhl-hw-section{margin:0 0 24px;padding-right:90px;font-size:21px;text-decoration:underline;text-underline-offset:3px}
.ib-t3bhl-continued{font-size:13px;color:#7c8189;text-decoration:none;font-weight:400}

/* Questions */
.ib-t3bhl-hw-q{padding:0 0 28px;margin:0 0 28px;border-bottom:1px solid #e4e6ea}
.ib-t3bhl-hw-q:last-child{border-bottom:0}
.ib-t3bhl-hw-prompt{font-size:16px;margin-bottom:14px}
.ib-t3bhl-hw-qnum{font-weight:800;margin-right:5px}
.ib-t3bhl-hw-instruction{margin:8px 0 12px;padding:9px 11px;border-left:4px solid var(--ib-accent,#B200FF);background:var(--ib-accent-soft,rgba(178,0,255,.08));font-size:13px}
.ib-t3bhl-source-diagram{display:block;max-width:100%;height:auto;margin:14px auto 8px;border:0}
.ib-t3bhl-model-diagram{display:block;max-width:100%;height:auto;margin:12px auto 0}
.ib-t3bhl-hw-answer{margin-top:14px}
.ib-t3bhl-hw-answer label,.ib-t3bhl-part-label{display:block;font-weight:800;font-size:13px;margin:0 0 6px}
.ib-t3bhl-hw-answer textarea,.ib-t3bhl-part textarea,.ib-t3bhl-hybrid-example{width:100%;border:1px solid #aeb5bf;border-radius:6px;background:#fff;padding:8px 10px;line-height:1.35;min-height:38px;resize:none;overflow:hidden;transition:border-color .15s,background-color .15s}
.ib-t3bhl-hw-answer textarea:focus,.ib-t3bhl-part textarea:focus,.ib-t3bhl-hybrid-example:focus{outline:2px solid rgba(23,103,185,.25);border-color:#1767b9}
.ib-t3bhl-hw-answer textarea.correct,.ib-t3bhl-part textarea.correct,.ib-t3bhl-hybrid-example.correct{background:#dff3e5;border-color:#2e8b57}
.ib-t3bhl-hw-answer textarea.incorrect,.ib-t3bhl-part textarea.incorrect,.ib-t3bhl-hybrid-example.incorrect{background:#fde2e2;border-color:#c62828}
.ib-t3bhl-check-row{display:flex;align-items:center;gap:10px;clear:both;margin:16px 0 12px;min-height:42px}
.ib-t3bhl-hw-check{float:none!important;position:static!important;border:0;border-radius:7px;padding:10px 15px;background:#1767b9;color:#fff;font-weight:800;min-width:132px}
.ib-t3bhl-hw-check:hover{background:#11538f}
.ib-t3bhl-hw-feedback{margin-top:10px;padding:13px 15px;border-radius:8px;background:#f7f8fa;border:1px solid #d9dde3}
.ib-t3bhl-hw-feedback.good{border-left:5px solid #2e8b57}
.ib-t3bhl-hw-feedback.bad{border-left:5px solid #c62828}
.ib-t3bhl-hw-model{margin-top:6px}
.ib-t3bhl-hw-correction{margin:0 0 8px;font-weight:700;color:#9d1b1b}
.ib-t3bhl-reactions{display:grid;gap:4px;margin:8px 0;font-family:"Cambria Math",Cambria,serif}

/* Multi-part text */
.ib-t3bhl-parts{display:grid;gap:12px;margin-top:12px}
.ib-t3bhl-part{padding:12px;border:1px solid #d8dce2;border-radius:8px;background:#fbfbfc}
.ib-t3bhl-part.correct{border-color:#2e8b57;background:#f4fbf6}
.ib-t3bhl-part.incorrect{border-color:#c62828;background:#fff7f7}
.ib-t3bhl-part-models{display:grid;gap:8px;margin-top:8px}
.ib-t3bhl-part-model{padding:8px 10px;background:#fff;border:1px solid #e0e3e7;border-radius:6px}

/* Choice grid */
.ib-t3bhl-choice-grid{display:grid;grid-template-columns:repeat(4,minmax(110px,1fr));gap:10px;margin:14px 0}
.ib-t3bhl-choice-part{padding:11px;border:1px solid #d9dde2;border-radius:8px;background:#fbfbfc;text-align:center}
.ib-t3bhl-choice-part.correct{border-color:#2e8b57;background:#e9f7ed}
.ib-t3bhl-choice-part.incorrect{border-color:#c62828;background:#fff0f0}
.ib-t3bhl-choice-label{font-weight:800;margin-bottom:8px}
.ib-t3bhl-choice-buttons{display:flex;justify-content:center;gap:7px}
.ib-t3bhl-choice-buttons button{min-width:52px;border:1px solid #9ea7b4;border-radius:6px;background:#fff;padding:8px 10px;font-weight:800}
.ib-t3bhl-choice-buttons button.selected{background:#e8eef8;border-color:#1767b9;color:#0e4f8f}
.ib-t3bhl-choice-part.correct .selected{background:#dff3e5;border-color:#2e8b57;color:#1d6b42}
.ib-t3bhl-choice-part.incorrect .selected{background:#fde2e2;border-color:#c62828;color:#9f1f1f}

/* Hybridization table */
.ib-t3bhl-table-wrap{width:100%;overflow-x:auto;margin:14px 0}
.ib-t3bhl-hybrid-table,.ib-t3bhl-model-table{width:100%;border-collapse:collapse;min-width:720px}
.ib-t3bhl-hybrid-table th,.ib-t3bhl-hybrid-table td,.ib-t3bhl-model-table th,.ib-t3bhl-model-table td{border:1px solid #bfc6d0;padding:9px;vertical-align:middle;text-align:center}
.ib-t3bhl-hybrid-table th,.ib-t3bhl-model-table th{background:#dbe7f5;font-size:13px;text-align:left}
.ib-t3bhl-hybrid-table tr.correct td{background:#edf9f0}
.ib-t3bhl-hybrid-table tr.incorrect td{background:#fff2f2}
.ib-t3bhl-hybrid-example{min-width:160px}
.ib-t3bhl-yn{display:flex;justify-content:center;gap:5px}
.ib-t3bhl-yn button{border:1px solid #9da6b2;border-radius:5px;background:#fff;padding:6px 9px}
.ib-t3bhl-yn button.selected{background:#e8eef8;border-color:#1767b9;color:#0e4f8f;font-weight:800}
.ib-t3bhl-hybrid-table tr.correct .selected{background:#dff3e5;border-color:#2e8b57;color:#1d6b42}
.ib-t3bhl-hybrid-table tr.incorrect .selected{background:#fde2e2;border-color:#c62828;color:#9f1f1f}

/* Working area */
.ib-t3bhl-hw-work{position:relative;margin:14px 0 16px;border:1px solid #bfc5ce;border-radius:8px;background:#fff;overflow:visible}
.ib-t3bhl-hw-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:7px 8px;background:#f2f4f6;border-bottom:1px solid #cfd4db}
.ib-t3bhl-hw-tools button{border:1px solid #a9b1bd;border-radius:5px;background:#fff;padding:6px 9px;font-size:12px;font-weight:700}
.ib-t3bhl-hw-tools button.active[data-tool]{background:#e6eef9;border-color:#1767b9;color:#0f5799}
.ib-t3bhl-hw-tools label{display:flex;align-items:center;gap:6px;margin-left:auto;font-size:12px;font-weight:700}
.ib-t3bhl-hw-colours{display:flex;align-items:center;gap:4px;margin-left:4px}
.ib-t3bhl-hw-colour{width:23px;height:23px!important;min-width:23px;padding:0!important;border-radius:50%!important;border:2px solid #fff!important;box-shadow:0 0 0 1px #9fa7b2}
.ib-t3bhl-hw-colour.active{box-shadow:0 0 0 2px #222}
.ib-t3bhl-hw-colour[data-colour="#222222"]{background:#222!important}
.ib-t3bhl-hw-colour[data-colour="#c62828"]{background:#c62828!important}
.ib-t3bhl-hw-colour[data-colour="#1767b9"]{background:#1767b9!important}
.ib-t3bhl-hw-colour[data-colour="#2c8b57"]{background:#2c8b57!important}
.ib-t3bhl-hw-colour[data-colour="#7446a8"]{background:#7446a8!important}
.ib-t3bhl-hw-canvas{display:block;width:100%;height:210px;background:#fff;touch-action:none}
.ib-t3bhl-hw-inline-text{position:absolute;z-index:10;min-width:1ch!important;width:1ch;padding:0!important;margin:0!important;border:0!important;outline:1px dashed rgba(0,0,0,.2)!important;background:transparent!important;box-shadow:none!important;overflow:hidden!important;resize:none!important;line-height:1.2!important}
.ib-t3bhl-hw-resize-handle{position:absolute;right:8px;top:45px;width:24px;height:24px;z-index:8;cursor:ns-resize;display:grid;place-items:center;border-radius:5px;background:rgba(255,255,255,.88);border:1px solid #c5cbd2}
.ib-t3bhl-hw-resize-handle span:before{content:"↕";font-size:14px;color:#666}

/* Focus / accessibility */
.ib-t3bhl-hw button:focus-visible,.ib-t3bhl-hw input:focus-visible,.ib-t3bhl-hw textarea:focus-visible{outline:3px solid rgba(23,103,185,.35);outline-offset:2px}

@media (max-width:900px){
  .ib-t3bhl-hw-savebar{grid-template-columns:auto auto 1fr}
  .ib-t3bhl-hw-marking-note{grid-column:1/-1}
  .ib-t3bhl-hw-saved{grid-column:3;text-align:right}
  .ib-t3bhl-choice-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}
}
@media (max-width:620px){
  .ib-t3bhl-hw-status{display:none}
  .ib-t3bhl-hw-head{align-items:flex-start;flex-direction:column}
  .ib-t3bhl-hw-savebar{grid-template-columns:1fr 1fr}
  .ib-t3bhl-hw-marking-note,.ib-t3bhl-hw-saved{grid-column:1/-1;text-align:left}
  .ib-t3bhl-hw-viewer{padding:8px;max-height:none}
  .ib-t3bhl-hw-paper{padding:30px 17px}
  .ib-t3bhl-choice-grid{grid-template-columns:1fr 1fr}
  .ib-t3bhl-hw-tools label{width:100%;margin-left:0}
}

@media print{
  .ib-t3bhl-hw-closed,.ib-t3bhl-hw-head,.ib-t3bhl-hw-savebar{display:none!important}
  .ib-t3bhl-hw-viewer{display:block!important;overflow:visible!important;max-height:none!important;background:#fff!important;border:0!important;padding:0!important}
  .ib-t3bhl-hw-paper{width:210mm;min-height:297mm;margin:0 auto!important;padding:16mm 14mm;box-shadow:none!important;page-break-after:always;border-radius:0}
  .ib-t3bhl-hw-paper:last-child{page-break-after:auto}
  .ib-t3bhl-hw-tools,.ib-t3bhl-hw-resize-handle{display:none!important}
  .ib-t3bhl-hw-work{border:1px solid #aaa;break-inside:avoid}
  .ib-t3bhl-hw-canvas{height:55mm!important}
  .ib-t3bhl-hw-q{break-inside:avoid}
}

/* Anchor and saved-status placement */
.ib-t3bhl-hw{scroll-margin-top:88px}
.ib-t3bhl-hw-status{left:30px;right:auto;bottom:86px;max-width:65%}


/* v1.0.2 — canonical IB open-homework presentation and ATAR-parity working box. */
.ib-t3bhl-hw{
  width:min(1120px,calc(100vw - 40px))!important;
  max-width:1120px!important;
  position:relative!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  margin:16px 0!important;
}
.ib-t3bhl-hw-open{
  width:100%!important;
  max-width:100%!important;
  border:1px solid var(--ib-accent,#B200FF)!important;
  background:#fff!important;
  overflow:hidden!important;
}
.ib-t3bhl-hw-head{
  width:100%!important;
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:12px!important;
  padding:14px 18px!important;
  margin:0!important;
  background:#fff!important;
  border-bottom:4px solid var(--ib-accent,#B200FF)!important;
}
.ib-t3bhl-hw-head h2{margin:0!important;font-size:20px!important;line-height:1.2!important;color:#111!important;}
.ib-t3bhl-hw-head strong{font-size:20px!important;line-height:1.2!important;color:#111!important;white-space:nowrap!important;}
.ib-t3bhl-hw-savebar{
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  flex-wrap:wrap!important;
  padding:10px 18px!important;
  margin:0!important;
  background:#f1f1f1!important;
  border:0!important;
  border-radius:0!important;
  position:relative!important;
  top:auto!important;
  z-index:10!important;
  font-size:13px!important;
}
.ib-t3bhl-hw-save{background:#d92131!important;color:#fff!important;border-radius:5px!important;padding:11px 18px!important;font-size:12px!important;font-weight:800!important;}
.ib-t3bhl-hw-progress{
  display:inline-block!important;
  background:#fff!important;
  border:1px solid #d7d7d7!important;
  border-radius:4px!important;
  padding:7px 11px!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.1!important;
  color:#111!important;
  white-space:nowrap!important;
}
.ib-t3bhl-hw-marking-note{font-size:13px!important;line-height:1.35!important;color:#222!important;}
.ib-t3bhl-hw-saved{font-size:12px!important;color:#333!important;white-space:nowrap!important;text-align:left!important;}
.ib-t3bhl-hw-viewer{
  width:100%!important;
  max-width:100%!important;
  max-height:78vh!important;
  overflow:auto!important;
  background:#dfe2e5!important;
  border:0!important;
  border-radius:0!important;
  padding:14px 8px 24px!important;
}
.ib-t3bhl-hw-paper{
  width:calc(100% - 10px)!important;
  max-width:none!important;
  min-height:0!important;
  margin:0 auto 18px!important;
  padding:32px 18px 34px!important;
  background:#fff!important;
  box-shadow:0 2px 10px rgba(0,0,0,.16)!important;
  border-radius:0!important;
}
.ib-t3bhl-hw-pagehead{
  position:absolute!important;
  top:12px!important;
  right:18px!important;
  font-size:11px!important;
  line-height:1.2!important;
  color:#66727e!important;
  text-align:right!important;
  white-space:nowrap!important;
}
.ib-t3bhl-hw-section{
  margin:0 0 16px!important;
  padding:0 330px 6px 0!important;
  border-bottom:1px solid #d6a900!important;
  text-decoration:none!important;
  color:#111!important;
  font-size:18px!important;
  line-height:1.25!important;
  font-weight:700!important;
}
.ib-t3bhl-hw-prompt{font-size:17px!important;line-height:1.45!important;text-align:left!important;}
.ib-t3bhl-hw-q{padding:18px 0!important;margin:0!important;border-bottom:1px solid #ddd!important;}
.ib-t3bhl-hw-q:last-child{border-bottom:0!important;}
.ib-t3bhl-hw-answer{display:flow-root!important;margin-top:14px!important;padding:13px!important;background:#f6f7f8!important;}
.ib-t3bhl-hw-answer>label{display:block!important;margin:0 0 7px!important;font-size:13px!important;line-height:1.35!important;font-weight:700!important;text-align:left!important;}
.ib-t3bhl-hw-answer textarea,.ib-t3bhl-part textarea{
  width:100%!important;
  min-height:38px!important;
  height:38px;
  padding:9px 10px!important;
  border:1px solid #9da6af!important;
  border-radius:0!important;
  font-size:13px!important;
  line-height:1.35!important;
  overflow:hidden!important;
  resize:none!important;
  background:#fff!important;
}
.ib-t3bhl-hw-answer textarea.correct,.ib-t3bhl-part textarea.correct{border:2px solid #2c8b57!important;background:#e7f6eb!important;}
.ib-t3bhl-hw-answer textarea.incorrect,.ib-t3bhl-part textarea.incorrect{border:2px solid #cf4d4d!important;background:#fff0f0!important;}
.ib-t3bhl-check-row{display:flex!important;justify-content:flex-end!important;align-items:center!important;clear:both!important;margin:10px 0 0!important;min-height:42px!important;}
.ib-t3bhl-hw-check{display:block!important;margin:0!important;float:none!important;border-radius:5px!important;background:#1767b9!important;color:#fff!important;padding:10px 16px!important;font-size:12px!important;font-weight:800!important;}
.ib-t3bhl-hw-feedback{clear:both!important;margin-top:12px!important;padding-top:14px!important;text-align:left!important;font-size:13px!important;line-height:1.45!important;}

/* ATAR-parity working area: grid, toolbar, colours, resizer and reusable editable text. */
.ib-t3bhl-hw-work{
  position:relative!important;
  margin:14px 0 16px!important;
  border:1px solid #aeb4bb!important;
  border-radius:0!important;
  background:#fff!important;
  overflow:visible!important;
}
.ib-t3bhl-hw-tools{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  padding:8px!important;
  background:#fff!important;
  border-bottom:1px solid #aeb4bb!important;
}
.ib-t3bhl-hw-tools button[data-tool]{padding:6px 10px!important;background:#fff!important;color:#263445!important;border:1px solid #aeb7c2!important;border-radius:4px!important;font-size:12px!important;font-weight:700!important;}
.ib-t3bhl-hw-tools button[data-tool].active{background:#e6eef9!important;color:#0f5799!important;border-color:#1767b9!important;}
.ib-t3bhl-hw-colours{display:inline-flex!important;align-items:center!important;gap:5px!important;margin-left:2px!important;}
.ib-t3bhl-hw-tools button.ib-t3bhl-hw-colour{width:22px!important;height:22px!important;min-width:22px!important;padding:0!important;border-radius:50%!important;border:2px solid #fff!important;box-shadow:0 0 0 1px #7b8794!important;}
.ib-t3bhl-hw-tools button.ib-t3bhl-hw-colour.active{box-shadow:0 0 0 2px #111!important;}
.ib-t3bhl-hw-tools label{display:flex!important;align-items:center!important;gap:6px!important;margin-left:auto!important;font-size:12px!important;font-weight:700!important;}
.ib-t3bhl-hw-tools input[type=range]{width:150px!important;}
.ib-t3bhl-hw-canvas{
  display:block!important;
  width:100%!important;
  min-height:190px!important;
  height:300px;
  touch-action:none!important;
  background-color:#fff!important;
  background-image:linear-gradient(#dceaf6 1px,transparent 1px),linear-gradient(90deg,#dceaf6 1px,transparent 1px)!important;
  background-size:22px 22px!important;
}
.ib-t3bhl-hw-inline-text{
  position:absolute!important;
  z-index:20!important;
  width:1ch!important;
  min-width:1ch!important;
  min-height:1em!important;
  height:1.2em!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#222!important;
  line-height:1.2!important;
  resize:none!important;
  overflow:hidden!important;
  white-space:pre!important;
  max-width:none!important;
  max-height:none!important;
  font-family:Arial,sans-serif!important;
}
.ib-t3bhl-hw-inline-text:focus{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;}
.ib-t3bhl-hw-resize-handle{
  position:absolute!important;
  top:44px!important;
  right:6px!important;
  width:24px!important;
  height:24px!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:rgba(255,255,255,.88)!important;
  border:1px solid #aeb8c2!important;
  border-radius:4px!important;
  cursor:ns-resize!important;
  z-index:15!important;
  touch-action:none!important;
}
.ib-t3bhl-hw-resize-handle span:before{content:""!important;}
.ib-t3bhl-hw-resize-handle span{
  display:block!important;
  width:11px!important;
  height:11px!important;
  border:0!important;
  border-right:2px solid #748392!important;
  border-bottom:2px solid #748392!important;
  border-radius:0!important;
  background:transparent!important;
  transform:rotate(45deg)!important;
}
.ib-t3bhl-hw-resize-handle:hover span{border-color:#465563!important;}

@media(max-width:760px){
  .ib-t3bhl-hw{width:100%!important;left:auto!important;transform:none!important;}
  .ib-t3bhl-hw-head{align-items:flex-start!important;flex-direction:column!important;}
  .ib-t3bhl-hw-head strong{font-size:16px!important;}
  .ib-t3bhl-hw-viewer{padding:8px 2px 18px!important;max-height:none!important;}
  .ib-t3bhl-hw-paper{width:100%!important;padding:24px 12px!important;}
  .ib-t3bhl-hw-pagehead{position:static!important;margin:0 0 8px!important;white-space:normal!important;}
  .ib-t3bhl-hw-section{padding-right:0!important;}
  .ib-t3bhl-hw-tools label{width:100%!important;margin-left:0!important;}
}

/* v1.0.3 — working-text edit reliability: double-click detection is handled in pointerdown so preventDefault cannot suppress reopening. */

/* v1.0.3 — final ATAR-style working-area refinement.
   Working surface fills the available question width, uses a clean white background,
   and placed text can be reopened by double-click for continued editing. */
.ib-t3bhl-hw-work{
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
  margin-left:0!important;
  margin-right:0!important;
}
.ib-t3bhl-hw-canvas{
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
  background:#fff!important;
  background-image:none!important;
}
.ib-t3bhl-working-not-marked{
  margin-left:8px!important;
  color:#718397!important;
  font-size:10px!important;
  white-space:nowrap!important;
}
.ib-t3bhl-size-value{
  display:inline-block!important;
  min-width:18px!important;
  font-size:11px!important;
  font-weight:800!important;
  color:#50677d!important;
}
.ib-t3bhl-hw-tools label{margin-left:0!important;}
.ib-t3bhl-working-not-marked{margin-left:auto!important;}
