[hidden]{display:none!important}
body{background:#eef3f2;color:#183441}
.task-header{gap:22px}
.header-links{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.header-links .return-link{white-space:nowrap;text-decoration:none;cursor:pointer;font:inherit}
.task4-main{max-width:1280px;margin:0 auto;padding:26px 24px 70px}
.task4-intro{display:flex;gap:20px;align-items:center;flex-wrap:wrap;background:#153b4c;color:#eef6f4;border-radius:10px;padding:17px 22px;margin:0 0 24px;font-size:15px}
.task4-intro strong{color:#f0c47f;font-size:17px}
.task4-main .step{margin-bottom:26px;background:#fff;border:1px solid #d5dede;border-radius:12px;padding:26px 30px;box-shadow:0 12px 30px #0b33400c}
.task4-main .step-heading{margin-bottom:20px}
.task4-main .step-heading h2{margin:0 0 6px}
.task4-main .step-heading p{margin:0;line-height:1.6}
.task4-bank{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}
.task4-chip{border:1px solid #c7a875;border-radius:8px;background:#fff3dd;color:#253d49;padding:12px 15px;text-align:left;line-height:1.55;font-size:16px;cursor:grab;touch-action:manipulation}
.task4-chip:hover,.task4-chip.selected{background:#efd5a4;border-color:#9c6b2c}
.task4-chip.selected{outline:3px solid #dfab59;outline-offset:2px}
.task4-chip.placed{background:#e8f1e7;border-color:#8cae91;width:100%;cursor:pointer}
.task4-causes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.task4-slot{border:2px dashed #a8bec1;border-radius:8px;background:#f8fbfa;min-height:92px;padding:12px;cursor:pointer;transition:background .15s,border-color .15s}
.task4-slot strong{display:block;color:#174153;font-size:19px;margin:0 0 8px}
.task4-slot small{display:block;color:#55717a;font-size:14px;margin-bottom:7px}
.task4-slot:hover,.task4-slot.drag-over,.task4-slot:focus-visible{border-color:#bf893d;background:#fff9eb;outline:none}
.task4-slot.wrong{border-color:#b75546;background:#fff3f1}
.slot-content{min-height:18px}
.task4-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:20px}
.task4-actions .feedback{margin:0;flex:1;min-width:260px;line-height:1.6}
.task4-actions .secondary{background:#edf3f2;color:#174153;border-color:#8faeb0}
.source-line{text-align:right;color:#667d80;font-size:13px;line-height:1.55;margin:14px 0}
.globe-shell{background:#082237;border:1px solid #386075;border-radius:14px;overflow:hidden;box-shadow:0 18px 40px #08273b38}
.globe-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 20px;color:#f4d49d;font-weight:700;font-size:17px}
.globe-head button{border:1px solid #8aabb7;background:#143d53;color:#edf5f6;border-radius:6px;padding:8px 12px;font:inherit;cursor:pointer}
#tradeGlobe{display:block;width:100%;height:min(64vh,650px);min-height:430px;touch-action:none;cursor:grab;background:radial-gradient(circle at 50% 43%,#16475f,#082033 70%)}
#tradeGlobe.dragging{cursor:grabbing}
.globe-hint{color:#b4ccd3;text-align:center;padding:9px 12px 15px;font-size:14px}
.map-note{font-size:13px;color:#647a7f;line-height:1.6;margin:11px 0 20px}
.globe-region circle{fill:#e2bd78;stroke:#fff2d4;stroke-width:2}
.globe-region text{fill:#fff2d8;font-size:22px;font-weight:700;paint-order:stroke;stroke:#092437;stroke-width:5px}
.globe-route path.route-hit{stroke:transparent;stroke-width:30;fill:none;cursor:pointer}
.globe-route path.route-line{stroke:#e8c787;stroke-width:5;fill:none;stroke-linecap:round;pointer-events:none}
.globe-route.active path.route-line{stroke:#82d7e3;stroke-width:7;filter:drop-shadow(0 0 8px #77d3ed)}
.globe-route .route-badge circle{fill:#103c51;stroke:#f4cc84;stroke-width:2.5}
.globe-route.active .route-badge circle{fill:#e7bc71;stroke:white}
.globe-route .route-badge text{fill:#fff4d5;font-size:19px;font-weight:700;text-anchor:middle;dominant-baseline:middle;pointer-events:none}
.globe-route.active .route-badge text{fill:#122d3d}
.globe-route .route-badge{cursor:pointer}
.globe-route .route-assignment{cursor:pointer}
.globe-route .route-assignment rect{fill:#082d40ed;stroke:#e9c889;stroke-width:1.5}
.globe-route .route-assignment.wrong rect{fill:#682f31;stroke:#ffb3a4}
.globe-route .route-assignment text{fill:#fff5de;font-size:15px;font-weight:700;text-anchor:start;dominant-baseline:middle;pointer-events:none;stroke:none}
.globe-route.active .route-assignment text{fill:#fff5de}
.route-interaction{display:grid;grid-template-columns:minmax(0,1fr) 260px;align-items:stretch;gap:16px}
.route-workspace{display:flex;flex-direction:column;gap:13px;margin:0}
.route-select-hint{margin:0;padding:12px 14px;background:#e6f3f3;border-left:4px solid #53aabb;color:#194b5a;border-radius:5px;line-height:1.5;font-size:14px}
.route-bank{border:1px solid #d5dedf;border-radius:9px;background:#f9fbfa;padding:14px 16px}
.route-bank h3{font-size:16px;color:#244756;margin:0 0 11px}
.route-chip-row{display:flex;gap:9px;flex-wrap:wrap;min-height:55px}
.route-chip-row .task4-chip{font-size:15px}
.route-placements{display:none!important}
.complete-panel{background:#e9f5ed;border-left:4px solid #4e9973;padding:17px 21px;border-radius:8px;margin-top:20px;line-height:1.7}
.complete-panel strong{color:#236348;font-size:20px}
.complete-panel p{margin:6px 0 0}
.complete-panel a.finish-button{display:inline-flex;align-items:center;text-decoration:none;margin-top:14px}
.task4-dialog{width:min(1050px,93vw);max-height:90vh;padding:0;border:1px solid #c4d2d3;border-radius:10px;color:#213b48;background:#f6f6f1}
.task4-dialog::backdrop{background:#031722d9}
.task4-dialog-head{position:sticky;top:0;z-index:2;background:#0b3348;color:white;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 22px}
.task4-dialog-head strong{font-size:21px}
.task4-dialog-head button{border:1px solid #a9c1c7;background:#15465d;color:white;border-radius:6px;padding:8px 13px;cursor:pointer}
.task4-dialog-body{overflow:auto;max-height:calc(90vh - 70px);padding:20px}
.task4-dialog article{background:white;border-left:5px solid #b88b4c;border-radius:7px;padding:19px 23px;margin:0 0 17px}
.task4-dialog article h3{font-size:21px;color:#1c4355;margin:0 0 9px}
.task4-dialog article p:not(.source-line){font-size:18px;line-height:1.85;margin:0}
.task4-dialog article img{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:auto}
@media(max-width:900px){.route-interaction{grid-template-columns:1fr}.route-workspace{order:-1;display:grid;grid-template-columns:1fr 1fr}.route-select-hint{grid-column:1/-1}}
@media(max-width:760px){.task-header{flex-direction:column;align-items:flex-start}.header-links{justify-content:flex-start}.task4-main{padding:15px 10px 50px}.task4-main .step{padding:20px 14px}.task4-bank,.task4-causes,.route-workspace{grid-template-columns:1fr}.route-select-hint{grid-column:auto}#tradeGlobe{height:55vh;min-height:360px}.globe-region text{font-size:18px}.task4-actions .feedback{min-width:100%}.task4-dialog article p:not(.source-line){font-size:16px}}
