.room-device-secret{position:absolute;display:block;z-index:7;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;padding:0!important;cursor:pointer;color:transparent!important}
.room-device-secret:focus-visible{outline:2px dashed #fff!important;outline-offset:3px}
.room-phone-object{position:absolute;z-index:6;width:6%;aspect-ratio:1;background-image:url('assets/phone-era-atlas-v20.webp')!important;background-size:300% 300%!important;background-color:transparent!important;border:0!important;padding:0!important;mix-blend-mode:multiply;cursor:pointer;transform:rotate(-9deg)}
.room-phone-object:focus-visible{outline:3px solid #df1b72;mix-blend-mode:normal}
#room-device{box-sizing:border-box;width:min(1120px,96vw);height:min(850px,94dvh);max-width:96vw;max-height:94dvh;padding:0;border:3px outset #d6d6d6;background:#c0c0c0;color:#111;font:14px/1.45 Arial,sans-serif;box-shadow:10px 15px 55px #0009;border-radius:0;text-align:left}
#room-device::backdrop{background:#050315c7}#room-device *{box-sizing:border-box}#room-device [hidden]{display:none!important}
#room-device h2,#room-device h3,#room-device h4{color:inherit;font-family:inherit;letter-spacing:normal;text-transform:none;line-height:1.3;overflow-wrap:normal;margin:.4em 0 .7em}
#room-device h2{font-size:1.55rem}#room-device h3{font-size:1.25rem}#room-device h4{font-size:1.05rem}#room-device p{font-size:inherit;line-height:1.6;margin:.7em 0}#room-device a{color:#0000b2;text-decoration:underline}#room-device a:visited{color:#60217d}
#room-device button,#room-device input,#room-device textarea,#room-device select{font:inherit;letter-spacing:normal;text-transform:none}#room-device button{color:#111;background:#c0c0c0;border:2px outset #eee;border-radius:0;padding:5px 10px;cursor:pointer;box-shadow:none}#room-device button:active{border-style:inset}#room-device button:disabled{opacity:.45;cursor:default}#room-device button:focus-visible,#room-device a:focus-visible{outline:2px solid #e24b89;outline-offset:2px}
.device-title{height:34px;background:#000080;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:3px 5px;gap:12px;font-weight:bold}.device-title button{padding:0 8px!important;line-height:22px!important}.device-body{height:calc(100% - 63px);display:grid;grid-template-columns:112px minmax(0,1fr);background:#008080;padding:10px;gap:10px;overflow:hidden}.device-apps{display:flex;flex-direction:column;gap:12px;overflow:auto;align-items:stretch}.device-apps button{background:transparent!important;border:1px solid transparent!important;color:white!important;text-shadow:1px 1px #000;padding:5px!important;font-size:12px!important;min-height:54px}.device-apps button:hover,.device-apps button:focus{background:#ffffff20!important;border-color:#fff!important}.device-app-icon{display:block;font-size:25px;line-height:1.2;margin-bottom:4px}.device-window{min-width:0;display:flex;flex-direction:column;background:#c0c0c0;border:2px outset #ddd;overflow:hidden}.device-browser-title{padding:4px 8px;background:#000080;color:#fff;font-weight:bold}.device-toolbar{display:flex;gap:5px;align-items:center;padding:5px;border-bottom:1px solid #777;flex-wrap:wrap}.device-address{display:flex;flex:1;min-width:180px;gap:4px}.device-address input{min-width:0;width:100%;border:2px inset #ddd;background:white;color:#111;padding:4px}.device-content{background:#fff;flex:1;overflow:auto;padding:23px;min-height:0}.device-taskbar{height:29px;display:flex;justify-content:space-between;align-items:center;padding:3px 9px;border-top:2px outset #eee;font-size:12px}.device-status{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.device-app-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.device-file{display:block!important;text-align:left;padding:14px!important;background:#f5f4ef!important;border:1px solid #bbb!important}.device-file small{display:block;line-height:1.5;margin-top:6px}.device-intro{color:#666;font-size:12px!important}.device-bookmarks{padding-left:20px}.device-bookmarks li{margin:.8em 0}.device-notes{width:100%;height:300px;resize:vertical;background:#fffef0;color:#111;border:1px solid #aaa;padding:15px;line-height:1.6!important}
#room-device[data-skin=xp] .device-title,#room-device[data-skin=xp] .device-browser-title{background:linear-gradient(#3887f8,#0758c9 70%,#0748a8)}#room-device[data-skin=xp] .device-body{background:linear-gradient(155deg,#61a0da 60%,#80a750 61%,#4b7d29)}#room-device[data-skin=xp]{border-color:#1463c6;border-radius:8px 8px 0 0}
#room-device[data-skin=mac]{border:1px solid #777;border-radius:10px;background:#ddd}#room-device[data-skin=mac] .device-title,#room-device[data-skin=mac] .device-browser-title{background:linear-gradient(#eee,#bdbdbd);color:#222;text-shadow:0 1px white}#room-device[data-skin=mac] .device-body{background:linear-gradient(135deg,#183458,#72869f 50%,#482e67)}#room-device[data-skin=mac] button{border:1px solid #999;border-radius:5px;background:linear-gradient(#fff,#ddd)}#room-device[data-skin=mac] .device-window{border:1px solid #777;border-radius:6px}
#room-device[data-skin=win31] .device-body{background:#909090}#room-device[data-skin=win31]{font-family:'Courier New',monospace}
#room-device[data-kind=phone]{width:min(520px,96vw);border:12px solid #171717;border-radius:35px;height:min(850px,94dvh)}#room-device[data-kind=phone] .device-body{display:flex;flex-direction:column;padding:0;gap:0;background:#18354a}#room-device[data-kind=phone] .device-apps{flex-direction:row;flex-shrink:0;padding:4px;gap:4px;overflow-x:auto}#room-device[data-kind=phone] .device-apps button{flex:1;font-size:10px!important;min-width:58px;min-height:43px}.device-apps .device-app-icon{font-size:22px}#room-device[data-kind=phone] .device-window{flex:1;border:0;border-radius:0}#room-device[data-kind=phone] .device-content{padding:17px}#room-device[data-kind=phone] .device-app-grid{grid-template-columns:1fr}#room-device[data-phone=nokia]{border-color:#263947;border-radius:50px}#room-device[data-phone=nokia] .device-content{background:#adbc82;font-family:'Courier New',monospace}#room-device[data-phone=sidekick]{width:min(790px,96vw);border-width:20px 45px;border-radius:55px;height:min(650px,94dvh)}
.world-cover{display:block;width:160px;max-width:37%;aspect-ratio:1;float:right;margin:0 0 15px 22px;background-image:url('assets/article-worlds-atlas.webp');background-size:300% 300%;border:1px solid #222}.world-chapters{display:flex;flex-wrap:wrap;gap:4px;margin:18px 0;clear:both}.world-chapters button{font-size:12px!important}.world-chapters button[aria-current=step]{background:#000080!important;color:#fff!important}.world-scene{font:17px/1.7 Georgia,serif;padding:10px 0;max-width:70ch}.world-choices{display:grid;gap:8px;margin:16px 0}.world-choices button{text-align:left;padding:11px!important;background:#f5f2e9!important;border:1px solid #aaa!important}.world-choices button[aria-pressed=true]{background:#e0e8fb!important;border-color:#1a3880!important}.world-response{padding:14px;background:#edf3e9;border-left:3px solid #536e49;font:16px/1.65 Georgia,serif}.world-inventory{background:#eee5c9;padding:10px;font:13px/1.5 'Courier New',monospace}.world-source-drawer{margin-top:23px;border-top:1px solid #ccc;padding-top:13px}.world-source-drawer summary{cursor:pointer;font-weight:bold}.world-source-drawer li{margin:12px 0}.world-source-drawer small{display:block;color:#555}.world-feed{display:flex;gap:8px;overflow:auto;padding:10px;background:#111;color:#fff}.world-feed span{min-width:90px;padding:20px 12px;border:1px solid #644970;background:linear-gradient(#45345d,#253447);text-align:center;font-size:12px}.world-thread{border-left:2px solid #ccc;padding-left:18px}.world-search{width:100%;padding:7px}.device-im-log{min-height:180px;padding:15px;border:2px inset #bbb;background:#fff;font:14px/1.6 Arial,sans-serif}.device-im-log b{color:#16458e}.device-im-log p:nth-child(even) b{color:#9d172c}.device-message-notice{background:#fff4b8!important}.device-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:15px}.device-sms{max-width:86%;padding:12px;border-radius:12px;background:#c7e6fa;margin:10px 0}.device-sms.me{margin-left:auto;background:#cdf1c3}
@media(max-width:650px){.device-body{grid-template-columns:1fr;padding:5px;gap:5px}.device-apps{flex-direction:row;gap:4px;flex-shrink:0}.device-apps button{min-width:70px;min-height:40px}.device-body{display:flex;flex-direction:column}.device-window{flex:1}.device-content{padding:16px}.device-app-grid{grid-template-columns:1fr}.device-title{font-size:12px}.world-cover{width:110px}#room-device[data-phone=sidekick]{border-width:10px;border-radius:22px}.device-app-icon{font-size:18px}.room-phone-object{width:7%}}

.room-live-clock{font:12px/1.5 monospace!important;opacity:.8;margin:.5em 0 1.5em}.cameo--dad .cameo-figure{mix-blend-mode:multiply}

.micro-ledger{clear:both;border:1px solid #b7c4d0;background:#eef3f7;padding:12px;font:13px/1.5 Arial,sans-serif}.micro-ledger ul{margin:.5em 0 0;padding-left:20px}.world-introduction{font:15px/1.6 Georgia,serif!important;clear:both}

/* Append to dist/room-devices.css. All rules are scoped to the AIM reconstruction. */
#room-device[data-app=im] .device-content[data-view=wizard]{background:#cdd4da;padding:12px}
.hazel-aim{width:min(600px,100%);margin:0 auto;overflow:hidden;border:1px solid #777;border-radius:7px;background:#eceff1;color:#111;box-shadow:0 6px 20px #26333e55;font:12px/1.4 'Lucida Grande','Helvetica Neue',Tahoma,Arial,sans-serif}
.hazel-aim.is-expanded{width:100%;max-width:none}
.hazel-aim .aim-titlebar{min-height:31px;display:flex;align-items:center;gap:8px;padding:4px 8px;border-bottom:1px solid #858585;background:linear-gradient(#f6f6f6,#d5d5d5 52%,#c6c6c6);color:#222;text-shadow:0 1px #fff}
.hazel-aim .aim-traffic{display:flex;gap:6px;flex:0 0 auto}
#room-device .hazel-aim .aim-traffic-button{width:13px;min-width:13px;height:13px;padding:0;border:1px solid #777;border-radius:50%;box-shadow:inset 0 1px 1px #fff8}
#room-device .hazel-aim .aim-close{background:#ec655a}
#room-device .hazel-aim .aim-minimize{background:#e8bb42}
#room-device .hazel-aim .aim-zoom{background:#58bd53}
#room-device .hazel-aim .aim-traffic-button:focus-visible{outline:2px solid #275b9b;outline-offset:2px}
.hazel-aim .aim-mark{width:29px;height:20px;object-fit:contain}
.hazel-aim .aim-title{flex:1;overflow:hidden;font-weight:600;text-align:center;text-overflow:ellipsis;white-space:nowrap}
.hazel-aim .aim-menu{display:flex;gap:1px;padding:2px 6px;border-bottom:1px solid #aaa;background:#f5f5f5}
#room-device .hazel-aim .aim-menu button{padding:2px 8px;border:0;background:transparent;font:12px 'Lucida Grande','Helvetica Neue',Tahoma,Arial,sans-serif}
#room-device .hazel-aim .aim-menu button:hover,#room-device .hazel-aim .aim-menu button:focus-visible{border-radius:3px;background:#d5e5f5}
#room-device .hazel-aim .aim-menu button[aria-pressed=true]{font-weight:bold}
.hazel-aim .aim-buddy{display:flex;align-items:center;gap:7px;min-height:34px;padding:6px 9px;border-bottom:1px solid #aaa;background:#fff}
.hazel-aim .aim-buddy strong{color:#183f70;font-size:13px}
.hazel-aim .aim-buddy span:last-child{margin-left:auto;color:#52616c;font-size:12px;text-align:right}
.hazel-aim .aim-online-dot{width:9px;height:9px;border:1px solid #3b7a10;border-radius:50%;background:#70c331;box-shadow:inset 0 1px #caff9e}
.hazel-aim .aim-transcript{height:clamp(200px,34vh,300px);min-height:200px;margin:6px;padding:9px 11px;overflow-y:auto;border:1px solid #7f8d97;background:#fff;font:14px/1.45 Arial,sans-serif}
.hazel-aim .aim-line{margin:0 0 9px!important;font-size:14px!important;line-height:1.45!important}
.hazel-aim .aim-line:last-child{margin-bottom:0!important}
.hazel-aim .aim-line--wizard .aim-handle{color:#064fae}
.hazel-aim .aim-line--student .aim-handle{color:#a10f2b}
.hazel-aim .aim-compose{display:grid;grid-template-columns:1fr auto;gap:5px;padding:0 6px 6px}
.hazel-aim .aim-formatbar{grid-column:1/-1;display:flex;align-items:center;gap:3px;padding:3px;border:1px solid #a0a9b0;border-radius:3px 3px 0 0;background:#e1e5e8}
.hazel-aim .aim-formatbar select{height:24px;padding:1px;border:1px solid #8a939a;background:#fff;font:12px 'Lucida Grande','Helvetica Neue',Tahoma,Arial,sans-serif}
.hazel-aim .aim-font{width:120px}.hazel-aim .aim-size{width:49px}
#room-device .hazel-aim .aim-formatbar button{min-width:26px;height:24px;padding:1px 5px;border:1px solid #8b949a;border-radius:3px;background:linear-gradient(#fff,#d7dce0);font:12px 'Lucida Grande','Helvetica Neue',Tahoma,Arial,sans-serif}
#room-device .hazel-aim .aim-formatbar button[aria-pressed=true]{border-style:inset;background:#bfd4e5}
.hazel-aim .aim-message{grid-column:1/2;width:100%;min-height:62px;resize:none;padding:7px;border:1px solid #788994;background:#fff;color:#111;font:14px Arial,sans-serif}
.hazel-aim .aim-message.is-bold{font-weight:bold!important}.hazel-aim .aim-message.is-italic{font-style:italic!important}.hazel-aim .aim-message.is-underlined{text-decoration:underline}
.hazel-aim .aim-reply-help{grid-column:1/-1;color:#56616a;font-size:12px}
.hazel-aim .aim-reply-row{grid-column:1/-1;display:flex;align-items:center;gap:5px;font-size:12px}
.hazel-aim .aim-reply-select{min-width:0;flex:1;padding:4px;border:1px solid #7f8d97;background:#fff;font:12px 'Lucida Grande','Helvetica Neue',Tahoma,Arial,sans-serif}
#room-device .hazel-aim .aim-send{grid-column:2/3;grid-row:2/3;align-self:stretch;min-width:70px;padding:5px;border:1px solid #71818c;border-radius:4px;background:linear-gradient(#fff,#cbd3d9);font:bold 12px 'Lucida Grande','Helvetica Neue',Tahoma,Arial,sans-serif}
.hazel-aim .aim-end{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 6px 6px;padding:8px;border:1px solid #9bacb8;background:#fff}
.hazel-aim .aim-end p{margin:0!important;font-size:13px!important}.hazel-aim .aim-end a{margin-right:auto}
#room-device .hazel-aim .aim-new-chat{padding:4px 8px;font:12px 'Lucida Grande','Helvetica Neue',Tahoma,Arial,sans-serif}
.hazel-aim .aim-source{margin:0!important;padding:6px 8px;border-top:1px solid #b6c2ca;background:#e5eaed;color:#46525b;font-size:12px!important;line-height:1.4!important}
.hazel-aim .aim-disclosure{padding:5px 8px;background:#e5eaed;color:#4f5b64;font-size:12px}
.hazel-aim .aim-disclosure summary{cursor:pointer}.hazel-aim .aim-disclosure p{margin:5px 0!important;font-size:12px!important;line-height:1.4!important}
@media(max-width:650px){.hazel-aim .aim-buddy span:last-child{display:none}.hazel-aim .aim-transcript{height:230px}.hazel-aim .aim-title{text-align:left}.hazel-aim .aim-menu button{flex:1}.hazel-aim .aim-font{width:95px}}

#room-device .device-forum-frame{display:block;width:100%;height:min(70vh,720px);min-height:440px;border:0;background:#e7eaf0}
#room-device .device-forum-bookmark{margin:.5rem 0 1rem;font:14px Arial,sans-serif;text-decoration:underline}

.cameo--dad.cameo--room .cameo-figure{mix-blend-mode:normal}
