:root{--navy:#14283b;--teal:#176d70;--paper:#f6f3ed;--ink:#192b38;--line:#dcdedb;--muted:#61707a;--gold:#bd8c32;--red:#a33543}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.55 system-ui,-apple-system,Segoe UI,sans-serif}h1,h2,h3{line-height:1.2}h1,h2,.brand{font-family:Georgia,serif}h1{font-size:clamp(26px,3vw,38px);margin:8px 0}h2{font-size:25px}h3{font-size:18px}p{margin:10px 0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;border-radius:7px;padding:11px 17px;background:var(--teal);color:white;font-weight:650}button:hover{filter:brightness(.93)}button:disabled{opacity:.45;cursor:not-allowed}button.secondary{background:#e6eeee;color:#174b50}button.ghost{background:transparent;color:var(--teal);border:1px solid var(--line)}button.danger{background:var(--red)}button.small{padding:6px 10px;font-size:13px}a{color:var(--teal)}:focus-visible{outline:3px solid #dcad4f;outline-offset:3px}input:not([type=checkbox]):not([type=radio]),textarea,select{display:block;width:100%;padding:10px 12px;border:1px solid #bdc6c8;border-radius:6px;background:white;color:var(--ink)}textarea{min-height:95px;resize:vertical}label{display:block;font-size:14px;font-weight:650;margin:14px 0 5px}label.check{display:flex;gap:9px;align-items:flex-start;font-weight:450}input[type=checkbox],input[type=radio]{accent-color:var(--teal);width:18px;height:18px;flex-shrink:0}small,.muted{color:var(--muted)}small{font-size:13px}.layout{display:grid;grid-template-columns:245px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--navy);color:white;padding:26px 18px;position:sticky;top:0;height:100vh;overflow-y:auto}.brand{font-size:29px;line-height:1.25;margin:5px 10px 24px}.brand img{width:48px;height:48px;display:block}.brand small{display:block;margin-top:5px;font:13px system-ui;letter-spacing:2px;color:#bbc9ce}.sidebar nav{margin:25px 0}.navitem{display:flex;align-items:center;gap:12px;width:100%;background:transparent;border-radius:6px;text-align:left;font-size:14px;margin:5px 0;padding:12px;color:#dbe5e9}.navitem.active{background:#26767b;color:white}.navitem .num{font-size:12px;border:1px solid #72828f;min-width:25px;height:25px;border-radius:50%;display:grid;place-items:center}.navitem.done .num{background:#326d65}.sidebar .utility{border-top:1px solid #475565;margin-top:25px;padding-top:16px}.sidebar .utility button{display:block;width:100%;text-align:left;background:transparent;color:#dbe5e9;font-size:13px;padding:8px}.main{padding:24px 35px 60px;max-width:1500px;width:100%;margin:auto}.topline{display:flex;justify-content:space-between;gap:15px;font-size:13px;color:var(--muted);align-items:center}.eyebrow{font-size:12px;letter-spacing:1.5px;font-weight:750;text-transform:uppercase;color:var(--teal)}.titlebar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:22px 0}.progress{height:5px;border-radius:10px;background:#dce3e1;margin:18px 0 24px}.progress span{display:block;height:100%;background:var(--teal);border-radius:10px}.task{background:#fff5de;border:1px solid #e4c588;border-left:5px solid var(--gold);border-radius:9px;padding:18px 22px;margin:20px 0}.task h3{margin:0 0 9px}.task p{margin:6px 0}.task .donewhen{font-size:14px;color:#68522b}.card{background:white;border:1px solid var(--line);border-radius:11px;padding:23px;margin-bottom:18px;box-shadow:0 3px 9px #192b3805}.card h2:first-child,.card h3:first-child{margin-top:0}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.candidates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.candidate{padding:0;overflow:hidden;position:relative}.candidate .inside{padding:18px}.avatar{height:125px;background:linear-gradient(145deg,var(--tint),#f0eee9);display:flex;align-items:center;justify-content:center;color:var(--tone);font:64px Georgia}.avatar.smallavatar{height:70px;width:70px;border-radius:50%;font-size:32px;flex-shrink:0}.candidate h3{font:24px Georgia;margin:0 0 6px}.candidate p{font-size:13px}.pill{display:inline-block;font-size:12px;font-weight:650;padding:4px 9px;border-radius:5px;background:#e8efed;color:#285e59}.pill.amber{background:#fff1d6;color:#755314}.pill.red{background:#f9e5e8;color:#962d3b}.flex{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.bottom{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:24px 0}.notice{padding:12px 16px;border-radius:7px;background:#e9f1f0;border:1px solid #c9dcd8;font-size:14px}.warning{background:#fff1dc;border-color:#e7c68d}.error{background:#fce9ec;border-color:#dfb4bb}.metric{display:flex;justify-content:space-between;align-items:center;margin:8px 0;padding:12px;background:#f2f5f4;border-radius:6px}.metric strong{font-size:24px;color:var(--teal)}.statuslist{list-style:none;padding:0}.statuslist li{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.statuslist span:first-child{color:var(--teal);font-weight:bold}.tabs{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}.tabs button{background:#e5eae8;color:var(--ink)}.tabs button.active{background:var(--teal);color:white}.profilefacts{font-size:14px}.profilefacts li{margin:6px 0}.profilehead{display:flex;gap:18px;align-items:center}.profilehead h2{margin:0 0 5px}.rubric{font-size:13px;background:#f2f4f2;padding:12px;border-radius:7px;margin:14px 0}.chat{max-height:550px;overflow-y:auto;padding:6px;scroll-behavior:smooth}.turn{border-bottom:1px solid var(--line);padding:16px 0}.bubble{padding:15px 18px;margin:8px 0;border-radius:10px;background:#edf3f2;white-space:pre-wrap}.bubble.you{background:#eff1f5;margin-left:35px}.bubble.them{margin-right:35px;border-left:3px solid var(--teal)}.bubble small{display:block;margin-bottom:5px}.eval{border:1px solid #c9d7d3;background:#fafcfb;border-radius:8px;padding:17px}.eval h3{margin-top:0}.ratingrow{display:flex;gap:8px;flex-wrap:wrap}.ratingrow label{border:1px solid var(--line);border-radius:6px;padding:8px;margin:0;font-weight:450;font-size:13px;display:flex;gap:6px;align-items:center}.ratingrow label:has(input:checked){border-color:var(--teal);background:#e4f1ee}.questionrow{padding:16px 0;border-bottom:1px solid var(--line)}table{border-collapse:collapse;width:100%;font-size:14px}th,td{text-align:left;padding:12px 9px;border-bottom:1px solid var(--line);vertical-align:top}th{background:#f1f4f2}details{margin:14px 0}summary{cursor:pointer;font-weight:650}.briefworkspace{display:grid;grid-template-columns:minmax(270px,.9fr) minmax(350px,1.1fr);gap:20px;align-items:start}.letterpreview{background:white;box-shadow:0 4px 20px #172d3820;padding:30px;min-height:700px;font-family:Arial,sans-serif;font-size:13px;overflow-wrap:anywhere}.letterpreview .letterhead{font:bold 28px Georgia;border-bottom:1px solid #b9c5c9;padding-bottom:16px}.letterpreview .return{font-size:9px;margin-top:30px}.letterpreview .recipient{white-space:pre-line;min-height:90px;margin-top:15px}.letterpreview .date{text-align:right;margin:20px 0}.letterpreview .subject{font-weight:bold;margin:25px 0}.letterpreview .bodytext{white-space:pre-wrap;margin:18px 0;line-height:1.6}.letterpreview .signature{white-space:pre-line;margin-top:25px}.letterpreview .letterfoot{font-size:9px;color:#63727a;border-top:1px solid #d9dfdf;margin-top:35px;padding-top:10px}.badge{display:inline-block;border:1px solid #d7bd82;background:#fff7e4;padding:8px 13px;margin:5px;border-radius:20px;font-size:13px}dialog{max-width:780px;width:92%;border:1px solid var(--line);border-radius:12px;padding:26px;max-height:90vh}dialog::backdrop{background:#14283baa}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:var(--navy);color:white;border-radius:8px;padding:12px 22px;display:none;z-index:100}#printarea{display:none}.empty{text-align:center;padding:35px;color:var(--muted)}.stepsummary{font-size:14px}.sourcephoto{max-height:70vh;max-width:100%}.nowrap{white-space:nowrap}#saveState{font-weight:600}.mobilelabel{display:none}.scoretotal{font:54px Georgia;color:var(--teal)}.criterionline{display:grid;grid-template-columns:1fr 120px;gap:16px;align-items:start}.teacheronly{border:1px dashed #c5a66e;padding:16px;background:#fff9ec}.printpage{break-after:page}.reporttext{white-space:pre-wrap}.feedbackitem{padding:14px 0;border-bottom:1px solid var(--line)}
@media(max-width:1150px){.candidates{grid-template-columns:repeat(2,minmax(0,1fr))}.main{padding:20px}.briefworkspace{grid-template-columns:1fr}.letterpreview{max-width:650px}}@media(max-width:760px){.layout{display:block}.sidebar{position:static;height:auto;padding:12px}.brand{font-size:24px;display:flex;align-items:center;gap:10px;margin:0 0 8px}.brand img{height:38px;width:38px}.brand small{display:none}.sidebar nav{display:flex;overflow-x:auto;margin:0;gap:5px}.navitem{min-width:160px;padding:8px;font-size:12px;margin:0}.sidebar .utility{display:flex;flex-wrap:wrap;gap:4px;margin:8px 0 0;padding-top:6px}.sidebar .utility button{width:auto;padding:5px 8px}.main{padding:15px}.grid{grid-template-columns:1fr}.titlebar{align-items:flex-start}.topline{font-size:11px}.task{padding:14px}.candidate .inside{padding:12px}.avatar{height:100px;font-size:48px}.card{padding:17px}.briefworkspace{display:block}.letterpreview{padding:18px}.ratingrow{gap:5px}.ratingrow label{font-size:12px;padding:6px}.bottom{align-items:flex-start}table{font-size:12px}th,td{padding:8px 5px}.criterionline{grid-template-columns:1fr 90px}.bubble.you{margin-left:12px}.bubble.them{margin-right:12px}}
@page{size:A4;margin:0}@media print{body{background:white;font:11pt/1.45 Arial;color:black}.layout,#toast,dialog{display:none!important}#printarea{display:block}.reportpage{padding:20mm 22mm;break-after:page}.reportpage h1{font-size:24pt}.reportpage table{font-size:10pt}.reportpage .reporttext{white-space:pre-wrap;overflow-wrap:anywhere}.dinletter{width:210mm;min-height:297mm;position:relative;padding:98mm 20mm 25mm 25mm;box-sizing:border-box;font:11pt/1.4 Arial;break-after:page;overflow-wrap:anywhere}.dinletter .letterhead{position:absolute;top:16mm;left:25mm;right:20mm;font:bold 23pt Georgia;border-bottom:1px solid #a0aaa8;padding-bottom:5mm;color:#14283b}.dinletter .return{position:absolute;top:45mm;left:25mm;width:80mm;font:8pt Arial}.dinletter .recipient{position:absolute;top:62.7mm;left:25mm;width:80mm;white-space:pre-line;font:11pt/1.1 Arial}.dinletter .date{position:absolute;top:50mm;left:125mm;width:65mm;font:10pt Arial}.dinletter .subject{font-weight:bold;margin-bottom:8mm}.dinletter .bodytext{white-space:pre-wrap;margin:5mm 0}.dinletter .signature{white-space:pre-line;margin-top:7mm}.dinletter .letterfoot{position:absolute;bottom:12mm;left:25mm;right:20mm;font:8pt Arial;color:#555;border-top:1px solid #bbb;padding-top:3mm}.dinletter .salutation,.dinletter .closing{margin:0}.no-print{display:none!important}a{color:black;text-decoration:none}}
/* Version 2: photographs and guided student tasks */
.portrait{display:block;width:100%;height:210px;background:#e2e5df;flex-shrink:0;overflow:hidden}.portrait-small{width:92px;height:106px;border-radius:9px;border:1px solid #d5ddda}.profilehead .portrait-small{margin-bottom:5px}.actionsteps{padding-left:24px;margin:16px 0;max-width:1000px}.actionsteps li{padding-left:7px;margin:10px 0}.actionsteps li::marker{font-weight:800;color:#795b26}.example{padding:16px 20px;border:1px solid #cbddda;background:#eef5f2;border-radius:8px;margin:20px 0}.example p{font-style:italic;margin:7px 0}.numberedfield{display:grid;grid-template-columns:35px minmax(0,1fr);gap:14px;margin:20px 0}.numberedfield label{margin-top:0}.fieldnumber,.questionnumber{display:grid;place-items:center;border-radius:50%;background:#e4efeb;color:#176d70;font-weight:800;width:32px;height:32px}.questionnumber{width:44px;height:44px;font-size:21px}.questioncard h2{margin:5px 0 0}.questionhint{background:#edf4f1;padding:16px 20px;border-radius:8px;border-left:4px solid var(--teal);margin:20px 0}.questionhint p{margin-bottom:0}.questioncard textarea{min-height:100px}.questioncard{border-top:3px solid #7aaba2}.task h3{margin-top:9px}.donewhen{padding-top:10px;border-top:1px solid #e6cf9d}.candidate .inside button{margin:4px 0}.main .tabs{position:sticky;top:0;background:var(--paper);padding:10px 0;z-index:2}.briefworkspace .card h2{margin-top:0}@media(max-width:760px){.portrait{height:170px}.portrait-small{width:75px;height:86px}.profilehead{align-items:flex-start}.actionsteps{padding-left:19px}.numberedfield{grid-template-columns:28px minmax(0,1fr);gap:10px}.fieldnumber{width:27px;height:27px}.questionhint{padding:13px}.main .tabs{position:static}.questioncard h2{font-size:22px}.portrait-small+div h2{font-size:22px}}@media print{.portrait{height:45mm;width:40mm}.portrait-small{height:25mm;width:22mm}}
