*{box-sizing:border-box}body{margin:0;color:#293629;font:15px/1.6 system-ui,"PingFang SC",sans-serif;background:#a2af79}body::before{content:"";position:fixed;inset:0;background:url(forest.webp) center center/cover no-repeat;z-index:-1}button,a{font:inherit;color:inherit;cursor:pointer}button{border:0;background:none}button:focus-visible,a:focus-visible{outline:3px solid #345743;outline-offset:2px}main{height:calc(100svh - 50px);overflow:auto;padding:clamp(12px,3vh,32px) 18px}.shortcuts{display:flex;flex-flow:column wrap;align-content:flex-start;gap:4px;width:fit-content;height:100%}.shortcut{width:134px;min-height:72px;height:clamp(72px,13vh,111px);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;border-radius:10px}.shortcut:hover,.shortcut:focus-visible{background:#fff7df70}.label{background:#fff8e5db;color:#293422;font-size:13px;font-weight:650;padding:1px 7px;border-radius:4px}.icon{display:grid;place-items:center;width:54px;height:46px;font-size:38px;line-height:1;filter:drop-shadow(0 2px 2px #44371938)}.icon img{width:46px;height:46px;border-radius:50%;outline:2px solid #fff9e9}.folder{position:relative;width:48px;height:32px;border-radius:4px;background:#b57d30;border:1px solid #8a692b;margin-top:7px}.folder:before{content:"";position:absolute;top:-7px;left:0;width:21px;height:8px;border-radius:4px 5px 0 0;background:#b57d30}.folder:after{content:"";position:absolute;inset:4px -3px -1px 1px;transform:skew(-6deg);border-radius:3px;background:linear-gradient(#ffdf89,#e7ad42);border-top:3px solid #fff4cf}.green:after{background:linear-gradient(#b3c998,#839d6c)}.chat{position:relative;width:38px;height:29px;border-radius:50%;background:#39994e}.chat:before{content:"••";position:absolute;left:8px;top:1px;font:18px sans-serif;color:white;letter-spacing:4px}.chat:after{content:"••";position:absolute;right:-9px;bottom:-6px;width:28px;height:23px;border-radius:60% 55% 12% 60%;background:#64ba66;border:1px solid #fff6;color:white;font:13px/19px sans-serif;text-align:center}footer{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;gap:8px;height:50px;background:#f7f3e7f5;border-top:1px solid #fff8;padding:4px 16px;box-shadow:0 -2px 14px #24281018}footer button{padding:5px 14px;border:1px solid #d5d4bf;border-radius:6px;background:#fffaf0;font-weight:600}.panes{font-size:20px}.clock{margin-left:auto;display:flex;align-items:center;gap:18px;font-size:13px}.clock span{color:#686e61}#menu,dialog{color:#293629;border:1px solid #acae98;background:#fcf9ef;box-shadow:0 12px 45px #26331e45;border-radius:12px}#menu{position:fixed;inset:auto auto 57px 12px;margin:0;width:265px;padding:8px}#menu header{display:flex;align-items:center;gap:12px;padding:8px 10px 12px;border-bottom:1px solid #dddace;font-weight:700}header img{width:35px;border-radius:50%}#entries button,.file{display:flex;align-items:center;width:100%;text-align:left;padding:10px;border-radius:5px}.file:after,#entries button:after{content:"›";margin-left:auto}.file:hover,#entries button:hover{background:#e8eddc}dialog{padding:0;width:min(510px,92vw);max-height:85svh}dialog::backdrop{background:#26372326}.titlebar{display:flex;align-items:center;justify-content:space-between;padding:4px 8px 4px 18px;border-bottom:1px solid #d4d6c5;background:#ececdd;font-size:13px}.titlebar button{font-size:25px;width:44px;height:40px}article{padding:20px 26px 28px}h1{font-size:24px;line-height:1.35;margin:4px 0 12px}p{margin:10px 0 18px}.file{border-bottom:1px solid #dedfd2;border-radius:0;padding:13px 4px;font-weight:550}.back{padding:0 0 12px;color:#436244}.qr{text-align:center}.qr img{width:min(300px,42svh);max-width:100%;height:auto}.qr a{display:inline-block;border-radius:6px;padding:8px 18px;background:#dfebd4;text-decoration:none}
@media(max-width:640px){body:before{background-position:72% center}main{padding:22px 12px}.shortcuts{display:grid;width:100%;height:auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 2px}.shortcut{width:100%;height:90px}.label{font-size:12px}.clock span{display:none}footer{height:calc(50px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}dialog{position:fixed;margin:auto 0 0;inset:auto 0 0;width:100%;max-width:none;border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom)}#menu{bottom:calc(57px + env(safe-area-inset-bottom))}}
.icon .xhs{border-radius:10px;outline:none}#entries img{margin-right:8px}
dialog{width:min(610px,94vw);background:#f9f8f2;border-color:#9da594;border-radius:8px;box-shadow:0 16px 50px #21321d38}.titlebar{background:#e6eadf;letter-spacing:.025em}.titlebar:before{content:"▤";margin-right:9px;color:#66775e}.titlebar span{flex:1}article{padding:22px 28px 28px}article h1{font-size:22px;font-weight:650}article h2{font-size:17px;margin:20px 0 8px}.file{gap:10px;font-size:15px}.file:before{content:"▤";color:#77836b}.document{background:white;margin:16px;border:1px solid #d9dbd4;padding:32px;box-shadow:1px 3px 5px #31382a0d}.document h1{font:600 30px Georgia,serif}.document p{line-height:1.85}form>label,fieldset label{display:block;margin:10px 0}fieldset{border:0;border-top:1px solid #dadcd1;margin:16px 0;padding:8px 0}legend{font-weight:650;padding-right:8px}input,select,textarea{font:inherit}input:not([type]),select,textarea{display:block;width:100%;border:1px solid #b7c0ac;border-radius:4px;background:#fffef9;margin:4px 0 10px;padding:8px}input[type=radio],input[type=checkbox]{accent-color:#526a42;margin-right:8px}.primary{padding:8px 18px;border-radius:4px;background:#435b36;color:white}.note{font-size:13px;color:#626957}
@media(max-width:640px){.shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))}.shortcut{min-width:0}.label{padding:1px 3px;font-size:12px}dialog{width:100%;border-radius:12px 12px 0 0}article{padding:18px}.document{padding:20px;margin:10px}}
.lab{margin:12px 0 18px;padding:16px;background:#fffdf5;border:1px solid #cfd6c7;border-radius:5px}.lab h2{margin:0 0 8px}.lab details{border-top:1px solid #dde0d6;padding:9px 0}.lab summary{cursor:pointer;min-height:32px}.lab .back{margin:10px 6px 0}.lab details p{white-space:pre-wrap;overflow-wrap:anywhere}.lab .file{min-height:44px}
.path{display:flex;align-items:center;gap:5px;flex-wrap:wrap;background:#e9ede2;padding:6px 10px;margin:-6px 0 16px;font-size:13px;border:1px solid #d6dbcd;border-radius:4px}.path button{text-decoration:underline;padding:3px}.directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:6px;padding:12px 0}.entry{display:grid;justify-items:center;align-content:center;gap:5px;min-height:114px;border:1px solid transparent;border-radius:6px}.entry:hover,.entry:focus-visible{background:#edf1e6;border-color:#cdd6bf}.entry small{color:#667361}.entry strong{font-weight:570}.entry .folder{margin-bottom:6px}.sheetIcon{background:#fffdf5;border:1px solid #c8c9b6;border-radius:2px 6px 2px 2px;width:32px;height:39px;display:grid;place-items:center;color:#687d52;font-size:22px}.casePage h2{border-top:1px solid #d9ddce;padding-top:13px}.casePage p{color:#52604c}article video{width:100%;background:#eff1e8;aspect-ratio:16/9}
.portrait{float:right;width:clamp(68px,18%,104px);aspect-ratio:2/3;object-fit:cover;border-radius:4px;margin:0 0 12px 15px}.document h2{margin-block:1em .4em}.document h2+ul{margin-block-start:.4em}

/* File windows use a persistent location rail and a separate reading surface. */
dialog{width:min(818px,94vw);max-height:88svh;background:#fdfbf5;border:1px solid #aeb4a6;border-radius:11px;overflow:hidden;color:#28312a}
dialog::backdrop{background:#27352948}
.titlebar{padding:0 5px 0 15px;height:42px;background:#e1e5d9;border-bottom:1px solid #c6ccbe;font-weight:600}
.titlebar:before{content:"";width:12px;height:10px;border:1px solid #6a7766;border-top-width:3px;border-radius:2px}
#close:hover{background:#d0d7c9;border-radius:5px}
.windowBody{display:grid;grid-template-columns:155px minmax(0,1fr)}
.locations{padding:18px 8px;background:#eff0e7;border-right:1px solid #d7dbcf}
.locations button{display:flex;align-items:center;gap:9px;text-align:left;width:100%;padding:8px;border-radius:5px;font-size:13px;min-height:41px}
.locations button:hover{background:#e1e6d9}
.locations [aria-current=true]{background:#d8e1ce;color:#253b28;font-weight:650}
.placeIcon{width:23px;height:24px;display:grid;place-items:center;position:relative;font-size:18px}
.placeIcon img{width:21px;height:21px;border-radius:50%}
.placeIcon .folder,.placeIcon .chat{position:absolute;transform:scale(.44);margin:0}
article{min-width:0;min-height:310px;max-height:calc(88svh - 44px);overflow:auto;padding:26px 30px 28px;overscroll-behavior:contain}
article h1{font-size:26px;letter-spacing:-.035em;margin:0 0 17px;line-height:1.35}
.path{background:transparent;border:0;border-radius:0;padding:0;margin:0 0 14px;gap:4px;color:#626d60;font-size:12px}
.path button{padding:2px 4px;color:#40563d;text-underline-offset:3px}
.directory{display:block;border-top:1px solid #cbd2c4;padding:0}
.entry{width:100%;min-height:62px;display:grid;grid-template-columns:32px 1fr auto;align-content:center;align-items:center;justify-items:start;gap:12px;text-align:left;padding:8px 10px;border:0;border-bottom:1px solid #dde1d7;border-radius:0}
.entry .folder{transform:scale(.55);transform-origin:left center;margin:0;width:46px}
.entry .sheetIcon{width:24px;height:29px;border-color:#bcc6ae;background:#f1f4e9;font-size:17px}
.entry small{font-size:12px;color:#6b7368}.entry strong{font-size:15px}
.lab{padding:0;border:0;background:transparent;border-radius:0;margin:0 0 16px}
.lab h2{font-size:17px}.lab p{color:#465143}
.lab .file{margin:6px 0;padding:10px 13px;background:#f0f3e9;border:1px solid #d4ddc9;border-radius:6px}
.lab .file:hover{background:#e1ead7}.lab .file:before{display:none}
form label{font-weight:560;font-size:14px}
form input:not([type]),form textarea,form select{border:1px solid #bac4b2;background:white;border-radius:5px;min-height:43px;line-height:1.5;font-size:16px;padding:9px 11px;box-shadow:0 1px 2px #34432c08}
form :is(input,select,textarea):focus-visible{outline:2px solid #708762;outline-offset:1px}
.intake{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}.intake>*{grid-column:1/-1;margin:0}.intake>label:nth-child(3),.intake>label:nth-child(4){grid-column:span 1}.intake>label{margin:0}.intake [hidden]{display:none}.intake label :is(input,select,textarea){margin-bottom:0}.intake .primary{justify-self:start}
.primary,.qr a{background:#3c553e;color:#fff;border:1px solid #344b36;border-radius:6px;padding:9px 17px;font-weight:600;min-height:44px}
.primary:hover,.qr a:hover{background:#304a33}.primary:disabled{opacity:.65}
.document{min-height:0;margin:15px;padding:24px;max-height:calc(88svh - 76px)}
.qr img{border-radius:6px;border:1px solid #dfe2d8}
@media(max-width:640px){
 dialog{width:100%;border-radius:15px 15px 0 0;max-height:94svh}.locations{display:none}.windowBody{display:block}.titlebar{height:45px}
 article{min-height:0;padding:20px;max-height:calc(94svh - 48px - env(safe-area-inset-bottom))}
 .document{max-height:calc(94svh - 78px - env(safe-area-inset-bottom))}
 .intake{display:flex;flex-direction:column;gap:12px}.intake .primary{width:100%}.path button{min-height:36px}.entry{min-height:60px}
}

/* Keep the desktop shell still when navigating or submitting a form. */
dialog[open]{display:flex;flex-direction:column;height:min(640px,88dvh);max-height:none}
dialog .titlebar{flex:none}
dialog .windowBody{flex:1;min-height:0;grid-template-rows:minmax(0,1fr)}
dialog article{min-height:0;max-height:none;overflow-y:auto}
dialog .locations{min-height:0;overflow-y:auto}
@media(max-width:640px){
  dialog[open]{height:88dvh}
  dialog .windowBody{display:grid;grid-template-columns:minmax(0,1fr)}
}

.document ul{padding-inline-start:1.3em;line-height:1.75}.document li+li{margin-top:.55em}.courseFrame{display:block;width:100%;height:clamp(18rem,55dvh,38rem);margin-top:1rem;border:1px solid #c7cbbf;background:white;box-sizing:border-box}
.lab fieldset{min-width:0;margin:0 0 1.4rem;padding:.7rem 0;border:0;border-top:1px solid #d6dacd}.lab legend{padding:0 .4rem 0 0;font-weight:650}.lab fieldset label{display:flex;align-items:baseline;gap:.65rem;margin:0;padding:.55rem;cursor:pointer;font-weight:400}.lab fieldset input[type=radio]{width:1em;height:1em;flex:none;margin:0;accent-color:#36573e}.lab fieldset label:has(:checked){background:#e7ebdf}


/* Window typography */
dialog{--reading-font:Georgia,"Songti SC","Noto Serif CJK SC","Source Han Serif SC","STSong","SimSun",serif}
dialog article :is(h1,h2,h3,legend),dialog .entry strong,dialog .intake label,dialog .document li{font-family:var(--reading-font)}
dialog article :is(h1,h2,h3){letter-spacing:.025em;font-weight:600}
dialog .entry strong,dialog .intake label{font-weight:550}
dialog .document li{font-size:1rem;line-height:1.85}
dialog article :is(input,textarea,select){font-family:system-ui,"PingFang SC",sans-serif;font-weight:400}
.lab textarea[hidden]{display:none}
.directoryIcon{width:24px;height:24px;color:#484b45;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;align-self:center}
