/* Device Detective shares TechWorks typography, colour and journey controls. */
.hero h1{font-size:clamp(3rem,7.3vw,5.6rem);letter-spacing:-.055em}.hero h1::after{content:'';display:block;width:150px;height:5px;background:var(--orange);border-radius:99px;margin-top:20px}.hero .strapline{color:var(--muted);font-size:1.05rem}.subject-pill{border:0;box-shadow:none;background:#e0f4fc;color:#167aa6}.game-nav{align-items:center;flex-wrap:wrap}.game-nav .eyebrow{margin:0}.hero{padding:54px 0 42px}.journey-heading h2{font-size:clamp(2rem,4vw,2.8rem)}.journey-heading p{line-height:1.5}.map-scroll{overflow-x:auto;border-radius:24px;border:1px solid var(--line);box-shadow:var(--shadow)}.workshop-map{position:relative;aspect-ratio:2/1;min-width:780px;background:#bce9f6}.workshop-map>img{display:block;width:100%;height:100%;object-fit:cover}.workshop-map .map-node{width:52px;height:52px;border:3px solid white;box-shadow:0 0 0 3px var(--navy),0 6px 15px #17384a77}.workshop-map .map-node::after{bottom:61px}.map-note{font-size:.83rem;color:var(--muted);line-height:1.5}.mode-grid{grid-template-columns:repeat(3,1fr)}.mode-card{min-height:155px;box-shadow:var(--shadow);border-width:1px}.mode-card strong{margin-top:7px}.mode-card .card-icon{color:var(--blue-dark)}.mode-card small{display:block;margin-top:12px;color:var(--blue-dark);font-weight:700}.settings{margin-bottom:20px;line-height:1.6}.field-guide{margin-bottom:45px}.field-guide>div{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.guide-file{border:1px solid var(--line);border-radius:12px;padding:13px;background:#f5fbfe}.guide-file summary{font-size:.91rem}.guide-file p,.guide-file ol{font-size:.86rem}.guide-file ol{padding-left:22px}.guide-file li{margin:6px 0}.icon{width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.button .icon{width:22px;height:22px}.brief-icon .icon{width:43px;height:43px}.mission-brief{margin-top:18px}.mission-brief p:last-child{font-size:1rem}.work-steps{display:flex;list-style:none;margin:22px 0 0;padding:0;gap:10px}.work-steps li{display:flex;align-items:center;gap:9px;flex:1;background:#e7f0f5;border-radius:12px;padding:10px 14px;color:var(--muted);font-weight:800;font-size:.82rem}.work-steps li.active{background:#dff3fc;color:#126a94}.work-steps li.complete{background:#e0f5e9;color:#236d4a}.brief-paper{padding:20px 24px;background:white;border:1px solid var(--line);border-radius:19px}.requirement-list{margin:10px 0 0;padding-left:21px;display:grid;gap:8px;font-size:.93rem;line-height:1.5}.brief-paper h3{font-size:1.05rem;margin:0}.budget-bar{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center;margin-top:15px;padding-top:14px;border-top:1px solid var(--line);font-weight:800}.budget-bar b{background:#e5f6ef;color:#267556;padding:7px 12px;border-radius:999px}.budget-bar.over b{background:#fff0e1;color:#9f4b16}.budget-bar small{font-size:.73rem;color:var(--muted);font-weight:600}.change-notice{padding:18px 21px;background:#fff6e8;border:1px solid #eccd9e;border-left:5px solid var(--orange);border-radius:16px;margin:15px 0;line-height:1.6}.change-notice p{margin:6px 0 0}.workbench{position:relative;border:1px solid #92bfd3;border-radius:24px;background:radial-gradient(ellipse at 50% 0,#3d7995,#183e59 65%);overflow:hidden;margin:19px 0;padding:24px 22px 28px;box-shadow:0 9px 0 #c6dee8}.bench-label{display:flex;justify-content:space-between;gap:12px;color:#c9e9f8;font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;margin-bottom:25px}.kit-bays{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;isolation:isolate}.kit-bays.two{grid-template-columns:repeat(2,minmax(0,1fr))}.kit-bays::before{content:'';position:absolute;z-index:-1;left:12%;right:12%;top:65px;height:5px;background:repeating-linear-gradient(90deg,#67cdec 0 12px,#31647e 12px 19px)}.kit-bay{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:185px;border:2px dashed #83bad0;border-radius:18px;padding:17px 12px 14px;background:#214b65;color:white;cursor:pointer;font:inherit;transition:transform .18s,border-color .18s}.kit-bay:hover{transform:translateY(-3px);border-color:white}.kit-bay.active{border:2px solid #ffd444;box-shadow:0 0 0 4px #ffd44422;background:#2b5972}.kit-bay.installed{background:#eefaff;color:var(--navy);border-style:solid}.kit-bay .icon{width:72px;height:72px;color:#3cc7f1;margin:7px 0 15px}.kit-bay.installed .icon{color:#157ca9}.kit-bay small{font-size:.7rem;color:#c6e3f0;letter-spacing:.06em;text-transform:uppercase}.kit-bay.installed small{color:var(--blue-dark)}.kit-bay strong{font-size:.96rem;line-height:1.35}.kit-bay .tap-label{font-size:.7rem;color:#b9e0ee;margin-top:8px}.kit-bay.installed .tap-label{color:#547386}.kit-bay.pass{border-color:#65d7a2}.kit-bay.fail{border-color:#ffae67}.bench-bottom{height:9px;margin:24px 0 0;border-radius:99px;background:linear-gradient(90deg,#1a3446,#7bb7cf,#1a3446)}.test-running .kit-bays::before{background:repeating-linear-gradient(90deg,#ffd444 0 12px,#31647e 12px 19px);animation:data-pulse .5s linear infinite}.test-running .kit-bay{animation:device-pulse .6s ease-in-out alternate 2}@keyframes data-pulse{to{background-position:38px 0}}@keyframes device-pulse{to{box-shadow:0 0 22px #7eeaff77}}.shelf{background:#fff;border:1px solid var(--line);border-radius:20px;padding:23px;margin:22px 0}.shelf-header{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:16px}.shelf-header h3{font-size:1.2rem;margin:0}.shelf-header p{font-size:.83rem;color:var(--muted);margin:5px 0 0}.shelf-pagination{display:flex;align-items:center;gap:9px;white-space:nowrap}.shelf-pagination>span{font-size:.78rem;color:var(--muted)}.shelf-pagination button{padding:6px 12px}.device-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.offer{display:grid;grid-template-columns:47px 1fr;grid-template-rows:auto 1fr auto;gap:9px 12px;text-align:left;padding:16px;background:#f6fbfd;border:2px solid #d4e8f1;border-radius:15px;color:var(--navy);font:inherit;cursor:pointer;min-height:173px}.offer>.icon{grid-row:1/3;color:#238cb5}.offer>strong{font-size:.94rem;align-self:center}.offer>span{grid-column:2;font-size:.8rem;line-height:1.5;color:#586f83}.offer>b{grid-column:1/3;display:flex;justify-content:space-between;align-items:center;font-size:.83rem;color:var(--blue-dark);padding-top:8px;border-top:1px solid #dcebf2}.offer b i{font-style:normal;font-size:.72rem}.offer:hover{border-color:var(--blue);background:#edfaff}.offer[aria-pressed=true]{background:#dff4fc;border-color:var(--blue)}.offer[aria-pressed=true] b i{color:#126b91}.offer:focus-visible,.kit-bay:focus-visible,.route-token:focus-visible,.sorting-bin:focus-visible{outline:4px solid #f2b32b;outline-offset:3px}.mission-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:25px 0 18px}.hint{padding:18px;background:#fff5df;border:1px solid #edd9ad;border-radius:14px;line-height:1.6}.test-panel{padding:24px;background:#132c43;color:#edfaff;border-radius:22px;margin:24px 0 30px;box-shadow:var(--shadow)}.test-panel .eyebrow{color:#8fd3f0}.test-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;border-bottom:1px solid #ffffff22;padding-bottom:15px;margin-bottom:8px}.test-heading h3{margin:0;font-size:1.4rem}.test-heading>span{font-size:.8rem;color:#accbdc}.test-row{display:grid;grid-template-columns:26px 1fr;gap:11px;padding:14px 0;border-bottom:1px solid #ffffff1a}.test-row>span{width:24px;height:24px;display:grid;place-items:center;font-weight:800;border-radius:50%;background:#72512e;color:#ffe0b1}.test-row.pass>span{background:#27624c;color:#9ff2c4}.test-row b{font-size:.9rem}.test-row p{font-size:.86rem;line-height:1.6;color:#c0d9e6;margin:5px 0 0}.test-panel>p{line-height:1.6}.test-panel .button{margin-top:7px}.sorting-floor{padding:22px;background:#183f59;border-radius:23px;margin-top:18px}.sorting-floor h3{color:white;margin-top:0}.routing-tray{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.route-token{display:flex;flex-direction:column;justify-content:space-between;gap:8px;min-height:100px;padding:14px;background:#fff;border:3px solid transparent;border-radius:14px;color:var(--navy);font:inherit;text-align:left;cursor:pointer}.route-token.selected{border-color:#ffd444;background:#fffae9}.route-token strong{font-size:.9rem}.route-token small{font-size:.7rem;color:var(--muted);line-height:1.45}.route-token b{font-size:.72rem;color:var(--blue-dark)}.route-token.routed{background:#e8f7fe}.sorting-bins{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:24px}.sorting-bin{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:115px;background:#edf8fc;border:2px dashed #7da7ba;border-radius:15px;cursor:pointer;color:var(--navy);font:inherit;font-weight:800}.sorting-bin>span{font-size:1.2rem;color:var(--blue-dark)}.sorting-bin>small{font-size:.73rem;color:var(--muted)}.sort-instruction{color:#c6e4f0;margin:18px 0 0;font-size:.87rem;line-height:1.6}.capacity-note{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:15px}.capacity-note>div{padding:17px;background:#edf7fc;border-radius:15px;line-height:1.55}.capacity-note strong{display:block;font-size:1.5rem;color:var(--blue-dark)}.capacity-note small{font-size:.82rem;color:var(--muted)}.report-banner{height:160px;margin:-42px -42px 28px;border-radius:24px 24px 0 0;background:url('assets/device-workshop-map-v1.webp') 83% 34% / 160%;display:grid;place-items:center}.report-banner>span{display:grid;place-items:center;width:82px;height:82px;border:4px solid white;border-radius:50%;background:#2ea36e;color:white;font-size:2.4rem;box-shadow:0 0 0 4px #14213d}.report-banner.retry>span{background:#b66c26}.report-actions{justify-content:center}.report-card h2{line-height:1.1}.review-box li{margin:11px 0;line-height:1.6}.review-box .commission-detail{font-size:.86rem;color:#577080}.report-stats{grid-template-columns:repeat(3,1fr)}.empty-mark{font-size:2.6rem;line-height:72px}.signal-cue{font-size:.8rem;color:#99d8f4}.button:disabled{transform:none}
@media(max-width:800px){.mode-grid{grid-template-columns:1fr 1fr}.shelf-header{align-items:flex-start;flex-direction:column}.kit-bays{gap:12px}.kit-bay{padding:13px 8px;min-height:173px}.kit-bay .icon{width:54px;height:54px}.kit-bay strong{font-size:.83rem}.device-grid{grid-template-columns:1fr 1fr}.offer{grid-template-columns:34px 1fr;padding:12px}.offer>.icon{width:32px;height:32px}.routing-tray{grid-template-columns:1fr 1fr}.sorting-bins{grid-template-columns:1fr 1fr}.field-guide>div{grid-template-columns:1fr}.report-banner{margin:-26px -18px 24px}.workshop-map .map-node{width:47px;height:47px}.workshop-map .map-node::after{display:block}.work-steps li{padding:10px;font-size:.76rem;gap:6px}.bench-label{line-height:1.5}.capacity-note{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.hero h1{font-size:3.05rem}.mode-grid{grid-template-columns:1fr}.work-steps li{font-size:.68rem;align-items:flex-start;line-height:1.4}.work-steps{gap:5px}.workbench{padding:18px 10px}.kit-bays{gap:7px}.kit-bay{min-height:175px;padding:11px 5px}.kit-bay small{font-size:.6rem}.kit-bay strong{font-size:.75rem}.kit-bay .tap-label{font-size:.6rem}.kit-bay .icon{width:44px;height:44px}.shelf{padding:15px}.device-grid{gap:9px}.offer{display:flex;flex-direction:column;min-height:205px}.offer>.icon{width:32px;height:32px}.offer>strong{align-self:flex-start;font-size:.83rem}.offer>span{font-size:.74rem;flex:1}.offer>b{width:100%;font-size:.76rem}.offer b i{font-size:.64rem}.brief-paper{padding:17px}.budget-bar{font-size:.86rem}.report-stats{grid-template-columns:1fr 1fr 1fr;gap:7px}.report-stats div{padding:14px 7px}.report-stats strong{font-size:1.3rem}.report-stats span{font-size:.7rem}.test-panel{padding:18px}.test-heading{align-items:flex-start;flex-direction:column}.mission-actions{align-items:stretch}.mission-actions .button{font-size:.82rem}.capacity-note>div{padding:12px}.capacity-note strong{font-size:1.2rem}}
.live-work{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;padding:15px;margin-top:17px;border-radius:12px;background:#102d43;color:#bfe8fc;font-size:.82rem;line-height:1.6}.live-work>span{padding:7px 10px;border:1px solid #7da5ba;border-radius:8px}.live-work .signal-ok{border-color:#5fc08d;color:#b1ffd2}.live-work .signal-stop{border-color:#eaa064;color:#ffcea8}.recovery .kit-bay:first-child{opacity:.38;filter:grayscale(1)}.recovery .kit-bay:last-child{box-shadow:0 0 0 3px #52d598;color:var(--navy)}.signal-bench .kit-bay:not(:last-child)::after{content:'→';position:absolute;right:-23px;top:73px;color:#95e3ff;font-size:1.5rem;z-index:3}@media(max-width:800px){.signal-bench .kit-bay:not(:last-child)::after{right:-13px;font-size:1rem}}@media(max-width:480px){.signal-bench .kit-bay:not(:last-child)::after{right:-9px;font-size:.8rem}}
@media(prefers-reduced-motion:reduce){.test-running .kit-bay,.test-running .kit-bays::before{animation:none}}
