:root{
  --navy:#17365d; --navy2:#244f7a; --orange:#d98f39; --paper:#fbf8ef;
  --card:#fff; --line:#d7d2c7; --soft:#eef4f2; --warm:#f7ede0; --text:#26323b;
  --shadow:0 12px 28px rgba(23,54,93,.09); --radius:18px;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;background:linear-gradient(#f4efe4,#fbf8ef 24%,#f7f4ec);color:var(--text)}
a{color:var(--navy2);font-weight:750;text-decoration-color:rgba(36,79,122,.35);text-underline-offset:2px}
a:hover{text-decoration-color:var(--navy2)}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
header{position:sticky;top:0;z-index:30;background:rgba(251,248,239,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.topbar{max-width:1520px;margin:auto;padding:16px 18px 14px;display:grid;grid-template-columns:minmax(245px,auto) minmax(360px,1fr) auto;grid-template-areas:"brand progress actions";gap:10px 14px;align-items:center}
.brand{grid-area:brand;display:flex;align-items:center;gap:10px;min-width:245px}
.logo{width:40px;height:40px;border-radius:50%;background:radial-gradient(circle at 34% 32%,#f7d9a9 0 17%,var(--orange) 18% 54%,var(--navy) 55% 100%)}
.brand h1{font-size:1.04rem;margin:0;color:var(--navy)}
.brand small{display:block;color:#6c7882}
.progress{grid-area:progress;display:flex;gap:5px;overflow:visible;justify-content:center;min-width:0}
.step{border:1px solid var(--line);background:white;color:#53616c;padding:6px 8px;border-radius:999px;white-space:nowrap;font-size:.78rem;display:inline-flex;align-items:center;gap:5px;flex:0 1 auto}
.step::before{content:"";width:7px;height:7px;border-radius:50%;background:#c8c1b4;flex:0 0 auto}
.step small{font-size:.64rem;color:#7a858f;font-weight:800}
.step.empty::before{background:#c8c1b4}
.step.partial{border-color:#e0bd82;background:#fff8e9;color:#60461f}
.step.partial::before{background:var(--orange)}
.step.complete{border-color:#b8d2ce;background:var(--soft);color:#274d49}
.step.complete::before{background:#397c71}
.step.active{background:var(--navy);border-color:var(--navy);color:white}
.step.active small{color:#e8eef3}
.step.active::before{background:white}
.btn{border:1px solid var(--line);background:white;color:var(--navy);padding:9px 13px;border-radius:11px;font-weight:750}
.btn.primary{background:var(--navy);color:white;border-color:var(--navy)}
.btn.accent{background:var(--orange);color:white;border-color:var(--orange)}
.btn.danger{color:#9d2f2f;border-color:#e3b3aa;background:#fff7f5}
.btn.small{padding:7px 9px;font-size:.82rem}
.teacher-reset{opacity:.46;font-weight:650}
.teacher-reset:hover{opacity:1}
.footer-utility{opacity:.62;font-weight:650}
.footer-utility:hover{opacity:1}
main{max-width:1520px;margin:auto;padding:24px 18px 86px}
.notice{background:#fff3d8;border:1px solid #ead7a3;padding:11px 13px;border-radius:13px;margin-bottom:17px;font-size:.91rem}
.screen{display:none}.screen.active{display:block}
.hero{background:linear-gradient(135deg,var(--navy),#28537d 70%);color:white;border-radius:25px;padding:32px;box-shadow:var(--shadow);margin-bottom:20px}
.hero h2{font-size:clamp(1.8rem,4vw,2.8rem);margin:4px 0 9px}
.hero p{max-width:850px;line-height:1.55;color:#eaf0f6}
.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.72rem;font-weight:850;color:var(--orange)}
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:17px}
.card{grid-column:span 12;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:19px;box-shadow:var(--shadow)}
.span-4{grid-column:span 4}.span-5{grid-column:span 5}.span-6{grid-column:span 6}.span-7{grid-column:span 7}.span-8{grid-column:span 8}
@media(max-width:1280px){.topbar{grid-template-columns:1fr auto;grid-template-areas:"brand actions" "progress progress"}.progress{justify-content:flex-start;overflow-x:auto;padding-bottom:2px}.brand{min-width:0}}
@media(max-width:900px){.span-4,.span-5,.span-6,.span-7,.span-8{grid-column:span 12}.progress{display:none}.brand{min-width:auto}}
@media(max-width:720px){.topbar{align-items:flex-start;grid-template-columns:1fr;grid-template-areas:"brand" "actions"}.top-actions{width:100%;min-width:0;align-items:flex-start}.action-buttons{justify-content:flex-start}.top-actions .sync-status{text-align:left;max-width:none}}
.card h3{margin:0 0 8px;color:var(--navy)}
label{display:block;font-weight:800;color:var(--navy);margin:13px 0 6px}
input,textarea,select{width:100%;border:1px solid #cbc5ba;border-radius:11px;background:#fffdf9;padding:10px 11px;color:var(--text)}
textarea{min-height:105px;resize:vertical}
.muted{color:#6c7882;font-size:.91rem}
.sync-status{margin:7px 0 0;color:#6c7882;font-size:.82rem;line-height:1.25}
.sync-status.ok{color:#285f55}
.sync-status.warn{color:#8a6427}
.sync-status.error{color:#9d2f2f}
.sync-meta{color:#7b858e;font-size:.73rem;line-height:1.2}
.row{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.top-actions{grid-area:actions;display:flex;flex-direction:column;align-items:flex-end;gap:2px;min-width:290px}
.action-buttons{justify-content:flex-end}
.top-actions .sync-status{max-width:360px;text-align:right;display:block}
.three{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}
.four{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}
@media(max-width:1000px){.four{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.three,.four{grid-template-columns:1fr}}
.bucket{padding:13px;border:1px solid var(--line);border-radius:13px;background:#fffdf9;min-height:170px}
.bucket.compact{min-height:140px}
.bucket h4{margin:0 0 7px;color:var(--navy)}
.assignment-panel{background:#f9fbfa}
.teacher-notes{margin-top:13px;border-top:1px solid var(--line);padding-top:11px}
.teacher-notes summary{font-weight:850;color:var(--navy);cursor:pointer}
.compact-list{margin:8px 0 0;padding-left:1.2em;color:#53616c}
.compact-list li{margin:7px 0}
.compact-list code{font-size:.85em;background:#f3f1ea;border:1px solid var(--line);border-radius:6px;padding:1px 4px}
.big-standard{font-size:1.14rem;line-height:1.6;padding:17px;border-radius:13px;background:#f7f5ef;border:1px dashed #cfc7b8}
.tag{display:inline-flex;align-items:center;gap:6px;padding:6px 8px;border-radius:999px;background:var(--soft);border:1px solid #c8dcda;font-size:.81rem;margin:4px 4px 4px 0}
.tag.skill{background:#eaf0f7;border-color:#b9cade}.tag.concept{background:var(--warm);border-color:#e6cba7}
.tag button{border:0;background:transparent;font-weight:900}
.board{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;overflow:visible}
.lane{background:#f3f1eb;border:1px solid var(--line);border-radius:14px;padding:10px;min-height:300px}
.lane h4{margin:4px 2px 10px;color:var(--navy)}
.note{background:white;border:1px solid #d2cdc2;border-radius:12px;padding:10px;margin:8px 0}
.note.highlight{border-color:var(--orange);box-shadow:0 0 0 3px rgba(217,143,57,.18)}
.note small{display:block;color:#74808a;margin-top:6px}
.canonical-source{font-size:.74rem;color:#8a744f;margin-top:6px;overflow-wrap:anywhere}
.present-toggle{display:flex;align-items:center;gap:7px;margin-top:9px;font-size:.82rem;color:#53616c;font-weight:750}
.present-toggle input{width:auto;flex:0 0 auto}
.note-actions{display:flex;gap:7px;justify-content:flex-end;margin-top:10px}
.duplicate-warning{background:#fff7e8;border:1px solid #e8c486;border-radius:12px;padding:12px;margin:9px 0}
.duplicate-warning h4{margin:4px 0 5px;color:var(--navy)}
.duplicate-warning p{margin:8px 0 10px;color:var(--text)}
.summary-box{background:#f7faf9;border:1px solid #c9ddda;border-radius:14px;padding:14px}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media(max-width:900px){.gallery{grid-template-columns:1fr}}
.gallery-card{background:white;border:1px solid var(--line);border-radius:15px;padding:15px}
.chip{display:inline-block;padding:5px 8px;border-radius:8px;background:#f3f1ea;font-size:.77rem;margin:3px}
.bottom{position:fixed;bottom:0;left:0;right:0;z-index:40;background:rgba(251,248,239,.97);border-top:1px solid var(--line);padding:11px 18px}
.bottom .inner{max-width:1520px;margin:auto;display:flex;justify-content:space-between;gap:10px}
.footer-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.footer-note{align-self:center;color:#7d858c;font-size:.76rem;font-weight:650}
.completion-label{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:999px;padding:5px 8px;font-size:.78rem;font-weight:850;background:white;color:#6c7882}
.completion-label::before{content:"";width:7px;height:7px;border-radius:50%;background:#c8c1b4}
.completion-label.partial{background:#fff8e9;border-color:#e0bd82;color:#60461f}
.completion-label.partial::before{background:var(--orange)}
.completion-label.complete{background:var(--soft);border-color:#b8d2ce;color:#274d49}
.completion-label.complete::before{background:#397c71}
.print-summary,.print-handout{display:none}
.modal-overlay{display:none;position:fixed;inset:0;z-index:1200;background:rgba(23,54,93,.38);align-items:center;justify-content:center;padding:18px}
.modal-overlay.open{display:flex}
.modal{width:min(420px,100%);background:white;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 48px rgba(23,54,93,.22);padding:18px}
.modal h3{margin:0 0 8px;color:var(--navy)}
.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.conflict-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:14px}
.share-modal{width:min(620px,100%)}
.copy-row{display:flex;gap:8px;align-items:center}
.copy-row input{flex:1;min-width:0}
.copy-row .btn{flex:0 0 auto}
@media(max-width:620px){.copy-row{align-items:stretch;flex-direction:column}}
.readiness-list{margin:10px 0 0;padding-left:1.15em;color:var(--text)}
.readiness-list li{margin:6px 0}

/* Full-screen presentation mode */
.presentation-overlay{
  display:none; position:fixed; inset:0; z-index:1000; background:#f7f4ec; color:var(--text);
}
.presentation-overlay.open{display:flex; flex-direction:column}
.presentation-top{
  height:64px; display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 18px; background:rgba(251,248,239,.97); border-bottom:1px solid var(--line);
}
.presentation-brand{display:flex;align-items:center;gap:10px}
.presentation-brand b{color:var(--navy)}
.presentation-controls{display:flex;gap:8px;align-items:center}
.presentation-stage{
  flex:1; min-height:0; display:flex; align-items:stretch; justify-content:center; overflow:hidden;
}
.present-slide{
  display:none; width:100%; height:100%; padding:clamp(24px,4vw,64px); overflow:auto;
  background:linear-gradient(145deg,#fbf8ef,#fff 68%);
}
.present-slide.active{display:block}
.present-inner{max-width:1180px;margin:0 auto;min-height:100%;display:flex;flex-direction:column;justify-content:center}
.present-kicker{text-transform:uppercase;letter-spacing:.14em;font-weight:850;font-size:.82rem;color:var(--orange);margin-bottom:10px}
.present-title{font-size:clamp(2.2rem,5vw,4.7rem);line-height:1.02;color:var(--navy);margin:0 0 18px}
.present-subtitle{font-size:clamp(1.08rem,2vw,1.55rem);line-height:1.5;color:#53616c;max-width:980px}
.present-standard{
  font-size:clamp(1.45rem,3vw,2.45rem);line-height:1.45;padding:26px 30px;border-radius:20px;
  background:white;border:1px solid var(--line);box-shadow:var(--shadow);margin:18px 0;
}
.present-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:18px}
.present-card{
  background:white;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:var(--shadow)
}
.present-card h3{font-size:1.2rem;color:var(--navy);margin:0 0 10px}
.present-card p,.present-card li{font-size:clamp(1rem,1.55vw,1.25rem);line-height:1.55}
.present-card ul{padding-left:1.25em}
.resource-present{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px;margin-top:18px
}
.resource-present .resource-item{
  background:white;border:1px solid var(--line);border-radius:17px;padding:18px;box-shadow:var(--shadow)
}
.resource-present h4{margin:0 0 6px;color:var(--navy);font-size:1.15rem}
.resource-present .meta{color:#75818a;font-size:.95rem;margin-bottom:8px}
.resource-present p{font-size:1.05rem;line-height:1.45}
.presentation-bottom{
  min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:9px 18px;background:rgba(251,248,239,.97);border-top:1px solid var(--line)
}
.presentation-progress{font-size:.9rem;color:#68737d}
.presentation-dots{display:flex;gap:7px}
.presentation-dot{width:9px;height:9px;border-radius:50%;background:#d1ccc1}
.presentation-dot.active{background:var(--navy)}
@media(max-width:800px){
  .present-grid,.resource-present{grid-template-columns:1fr}
  .presentation-top{height:auto;flex-wrap:wrap}
}
@media(max-height:820px){
  .present-slide{padding:24px}
  .present-title{font-size:clamp(1.9rem,4vw,3.35rem)}
  .present-standard{font-size:clamp(1.18rem,2.2vw,1.8rem);padding:18px 20px}
  .present-card{padding:16px}
  .present-card p,.present-card li{font-size:1rem}
  .resource-present{gap:10px;margin-top:12px}
  .resource-present .resource-item{padding:12px}
  .resource-present h4{font-size:1.02rem}
  .resource-present p{font-size:.92rem;line-height:1.35}
}
@media print{
  header,main,.bottom,.presentation-overlay,.modal-overlay{display:none!important}
  body{background:white;color:#111}
  body.printing-summary .print-summary,body.printing-handout .print-handout{display:block;padding:0;font-family:Arial,sans-serif;font-size:11pt;line-height:1.35}
  body.printing-handout .print-handout{max-width:7.3in;margin:0 auto}
  .print-summary h1,.print-handout h1{font-size:20pt;margin:0 0 6px;color:#111}
  .print-summary h2,.print-handout h2{font-size:13pt;margin:18px 0 6px;color:#111;border-bottom:1px solid #aaa;padding-bottom:3px}
  .print-summary p,.print-handout p{margin:4px 0}
  .print-handout ol{margin:6px 0 0;padding-left:1.25em}
  .print-handout li{margin:6px 0}
  .print-meta{font-size:10pt;color:#555;margin-bottom:12px}
  .print-summary table{width:100%;border-collapse:collapse;margin:8px 0 12px;page-break-inside:auto}
  .print-summary th,.print-summary td{border:1px solid #bbb;padding:5px;text-align:left;vertical-align:top}
  .print-summary th{background:#eee}
  .print-summary a,.print-handout a{color:#111;text-decoration:underline;font-weight:400}
}
