:root{--sand: #d0c9b2;--paper: #e4dec9;--graphite: #504c40;--rust: #a64c40;--olive: #75836c;--cream: #f7f3ea;--muted: #858071;--white: #fffcf6;--line: #c4bda8;--shadow: 0 14px 36px rgba(55, 48, 32, .1);--coffee: #504c40;--coffee-wash: #e8e4d9}*{box-sizing:border-box}body{margin:0;color:var(--graphite);font-family:IBM Plex Sans,Inter,system-ui,-apple-system,Segoe UI,sans-serif;background:var(--sand);font-size:15px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:var(--rust);text-decoration:none}a:hover{text-decoration:underline}.shell{display:flex;min-height:100vh}.side{background:var(--coffee);color:#f7f2e6;width:258px;min-width:258px;display:flex;flex-direction:column;position:sticky;top:0;max-height:100vh}.brand{display:flex;align-items:center;gap:11px;padding:27px 22px 23px;border-bottom:1px solid #736e61;font-weight:800;letter-spacing:.09em}.brand-mark{display:grid;place-items:center;height:40px;width:40px;background:var(--paper);color:var(--graphite);border:2px solid var(--paper);font-family:Georgia,serif;font-size:18px}.brand small{font-size:9px;display:block;letter-spacing:.22em;color:#d1c9b9;font-weight:500;margin-top:4px}.side .heading{font-size:10px;text-transform:uppercase;letter-spacing:.15em;color:#d2c8ae;padding:22px 22px 10px}.nav{padding:0 12px;overflow-y:auto;flex:1}.nav button,.nav a{display:block;text-align:left;background:none;color:#e6dfcf;border:0;width:100%;padding:12px 13px;margin:3px 0;border-radius:7px;font-size:13px}.nav button:hover,.nav a:hover,.nav button.active,.nav a.active{background:var(--paper);color:var(--graphite);text-decoration:none}.workspace{width:100%;min-width:0}.topbar{height:73px;background:#f7f3ead1;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 37px;gap:16px}.crumb{font-size:11px;letter-spacing:.11em;text-transform:uppercase;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:10px}.chip{padding:7px 11px;border:1px solid var(--line);border-radius:40px;background:var(--paper);font-size:11px}.toggle-role{font-size:12px;padding:9px 10px;border:1px solid var(--line);border-radius:6px;color:var(--graphite);background:var(--white)}.canvas{padding:38px;max-width:1320px;margin:0 auto}.screen{max-width:1120px;margin:0 auto;animation:appear .15s ease-out}@keyframes appear{0%{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.eyebrow{color:var(--rust);letter-spacing:.17em;font-size:10px;font-weight:800;text-transform:uppercase;margin:0 0 8px}.page-title{font-family:Georgia,Times New Roman,serif;font-size:clamp(27px,3.1vw,42px);letter-spacing:-.035em;margin:0 0 10px;font-weight:700;line-height:1.16}.subtitle{color:#777162;line-height:1.6;margin:0 0 28px;max-width:710px}.grid{display:grid;gap:18px}.g2{grid-template-columns:repeat(2,minmax(0,1fr))}.g3{grid-template-columns:repeat(3,minmax(0,1fr))}.g4{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:var(--paper);border:1px solid #bfb6a1;padding:24px;border-radius:7px;box-shadow:0 2px #ffffff24}.card.light{background:var(--cream)}.card.dark{background:var(--graphite);color:var(--cream)}.card-title{font-size:17px;font-weight:750;margin:0 0 9px}.card-sub{font-size:12px;color:#7a7465;line-height:1.55}.dark .card-sub{color:#d1c9b7}.stat-label{font-size:11px;letter-spacing:.03em;color:#746e60}.stat-number{font-family:Georgia,serif;font-size:38px;margin:5px 0 2px;line-height:1.2}.card.dark .stat-label{color:#d0c4aa}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:5px;border:1px solid var(--graphite);background:var(--graphite);color:#fff;min-height:41px;padding:10px 17px;font-size:13px;font-weight:700;text-decoration:none}.btn:hover{filter:brightness(1.12)}.btn.alt{background:transparent;color:var(--graphite)}.btn.coffee-outline{background:var(--white);color:var(--coffee);border-color:var(--coffee);transition:background-color .16s ease,color .16s ease,border-color .16s ease}.btn.coffee-outline:hover:not(:disabled){background:var(--coffee);color:#f7f2e6;border-color:var(--coffee);filter:none}.btn.rust{background:var(--rust);border-color:var(--rust)}.btn.olive{background:var(--olive);border-color:var(--olive)}.btn.small{min-height:32px;padding:6px 10px;font-size:11px}.btn.wide{width:100%}.btn-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:3px;font-size:10px;font-weight:700;border:1px solid transparent}.badge.green{color:#3c5a31;background:#dce6d5}.badge.red{color:#8b3e34;background:#f5ddd7}.badge.gray{background:#e7e1d3;color:#666050}.badge.gold{background:#f2e6c9;color:#7e6027}.form-label{display:block;font-size:12px;font-weight:700;margin:14px 0 6px}.input{height:43px;width:100%;background:var(--cream);border:1px solid #bdb49f;border-radius:4px;padding:11px 12px;color:var(--graphite);outline-offset:2px}.input:focus{outline:2px solid #b8a879}.input.invalid{border-color:var(--rust)}textarea.input{min-height:95px;resize:vertical;height:auto}.help{color:#797363;font-size:11px;margin:6px 0}.error{color:var(--rust);font-size:11px;margin:6px 0 0}.form-2{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:clamp(18px,4vw,52px);background:var(--sand)}.auth-zone{display:grid;grid-template-columns:1fr 1.05fr;min-height:660px;max-width:1100px;width:100%;margin:0 auto;box-shadow:var(--shadow)}.auth-art{background:var(--graphite);padding:58px 50px;color:#f2eddf;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-art:before{content:"";width:450px;height:450px;border:1px solid #847b66;border-radius:50%;position:absolute;left:-140px;bottom:38px}.auth-art:after{content:"";width:300px;height:300px;border:1px dashed #847b66;border-radius:50%;position:absolute;left:-68px;bottom:108px}.auth-art h2{font:45px/1.15 Georgia,serif;max-width:360px;z-index:1}.auth-art p{color:#d5cbbb;max-width:300px;line-height:1.6;font-size:13px;z-index:1}.auth-form{background:var(--paper);display:flex;align-items:center;justify-content:center;padding:55px 45px}.auth-inner{max-width:380px;width:100%}.auth-inner h1{font:36px Georgia,serif;margin:9px 0 12px}.auth-inner .form-label{margin-top:16px}.auth-links{display:flex;justify-content:space-between;flex-wrap:wrap;font-size:12px;margin-top:17px;gap:12px}.auth-inner button[type=submit]{margin-top:14px}.form-status{font-size:12px;color:var(--rust);margin-top:12px}.screen-bar{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:26px}.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:0 0 20px}.filters .input{width:auto;min-width:155px;background:var(--cream)}.filters .search{min-width:235px;flex:1}.table-wrap{overflow-x:auto;background:var(--cream);border:1px solid var(--line);border-radius:6px}table{width:100%;border-collapse:collapse;min-width:670px;text-align:left}thead{background:var(--coffee)}th{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#f7f2e6;font-weight:700}th,td{padding:14px 16px;border-bottom:1px solid #d1cabb}thead th{border-bottom-color:var(--coffee)}td{font-size:12px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#d0c9b236}.pagination{display:flex;justify-content:space-between;align-items:center;margin-top:15px;font-size:11px;color:#777}.tabs{display:flex;gap:2px;margin-bottom:23px;border-bottom:1px solid var(--line)}.tab{padding:12px 17px;border:0;background:transparent;font-weight:700;color:#777164;border-bottom:3px solid transparent}.tab.active{color:var(--rust);border-color:var(--rust)}.muted{color:#7d7566;font-size:12px}.divider{height:1px;background:var(--line);margin:20px 0}.mt{margin-top:22px}.list-item{padding:17px;border-bottom:1px solid #d0c6b5;display:flex;align-items:center;justify-content:space-between;gap:16px}.list-item:last-child{border-bottom:0}.exercise{max-width:850px;margin:auto}.progress-track{height:8px;border-radius:20px;background:#d3cab5;overflow:hidden}.progress-fill{height:100%;background:var(--olive);width:30%;border-radius:20px}.answer-well{min-height:108px;background:var(--cream);border:2px dashed #b8ad97;border-radius:6px;padding:20px;display:flex;align-items:center;flex-wrap:wrap;gap:10px}.word-bank{display:flex;flex-wrap:wrap;gap:9px;margin:22px 0;justify-content:center}.word{background:#f8f4ea;border:1px solid #a89e8b;border-bottom:3px solid #9d927f;color:var(--graphite);border-radius:5px;padding:12px 17px;font-weight:700;font-size:14px}.word:hover{background:#efe7d3}.word.used{opacity:.35}.choice{padding:13px 17px;margin:9px 0;border:1px solid #bcb19b;background:var(--cream);border-radius:6px;cursor:pointer;display:flex;align-items:center;gap:10px}.choice.selected{outline:2px solid var(--olive);background:#e5ebdd}.notice{display:flex;gap:12px;padding:17px 18px;border-left:4px solid var(--olive);background:#e8ecdf;font-size:13px;line-height:1.5}.notice.warn{border-color:var(--rust);background:#f3e1db}.card.light.feedback-wrong{background:var(--coffee-wash);border-color:var(--coffee);border-left:6px solid var(--coffee)}.feedback-wrong .notice{border-left-color:var(--coffee);background:var(--cream)}.feedback-wrong-tag{display:inline-block;background:var(--coffee);color:var(--cream);font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;padding:4px 9px;border-radius:3px;margin:0 0 12px}.exercise-top{display:flex;align-items:flex-start;gap:14px}.exercise-top .back-btn{flex:0 0 auto;width:36px;min-width:36px;min-height:36px;padding:0;margin-top:2px;font-size:17px;line-height:1}.exercise-top .page-head{flex:1;min-width:0}.mastery-inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 22px;font-size:12px;color:#736d61}.mastery-inline b{font-size:15px;color:var(--graphite)}.mastery-inline .progress-track{width:120px;height:7px;display:inline-block}.footer-note{font-size:11px;line-height:1.5;color:#827b6b;margin-top:22px}.barline{display:flex;justify-content:space-between;align-items:center;margin:10px 0 6px;font-size:12px}.barline .tiny{color:#756d5f}.meter{height:7px;background:#d0c7b4;border-radius:10px;overflow:hidden}.meter>div{background:var(--olive);height:100%}.mastery-group+.mastery-group{margin-top:22px}.mastery-group-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding-bottom:6px;margin-bottom:8px;border-bottom:1px solid var(--line)}.mastery-group-head b{font-family:Georgia,serif;font-size:19px;letter-spacing:.04em}.mastery-row{margin-top:11px}.mastery-label{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:6px}.mastery-label b{font-weight:700;line-height:1.35}.mastery-tags{display:flex;align-items:center;gap:7px;white-space:nowrap;flex-shrink:0}.mastery-pct{font-weight:700;min-width:36px;text-align:right}.mastery-delta-tag{font-size:10px;font-weight:700;letter-spacing:.04em;padding:2px 6px;border-radius:20px}.mastery-delta-tag.up{color:#3c5a31;background:#dce6d5}.mastery-delta-tag.down{color:#8b3e34;background:#f5ddd7}.mastery-track{position:relative;height:10px}.mastery-fill{position:absolute;top:0;bottom:0;left:0;background:var(--olive);border-radius:20px}.mastery-fill.blocked{background:repeating-linear-gradient(45deg,#b3a992 0,#b3a992 5px,#cfc6b1 5px,#cfc6b1 10px)}.mastery-delta{position:absolute;top:0;bottom:0;min-width:2px}.mastery-delta.up{background:#3c5a31}.mastery-delta.down{background:var(--rust)}.panel-row{display:flex;justify-content:space-between;gap:13px;align-items:center;padding:15px 0;border-bottom:1px solid #d0c7b5}.panel-row:last-child{border:0}.smallprint{font-size:11px;color:#736d61}.wide-card{padding:30px 36px}.assign-card{max-width:780px;margin:34px auto;padding:38px 44px}.assign-card .form-label{margin-top:16px}.assign-card input[type=date]{min-height:44px}.option-builder{display:flex;flex-direction:column;gap:10px;margin-top:6px}.option-row{display:flex;align-items:center;gap:10px;padding:8px 10px;background:var(--paper);border:1px solid var(--line);border-radius:6px}.option-row.is-correct{border-color:var(--olive);background:#e5ebdd}.option-radio{width:18px;height:18px;accent-color:var(--olive);cursor:pointer;flex-shrink:0}.option-key{width:26px;height:26px;border-radius:4px;background:var(--cream);border:1px solid var(--line);display:grid;place-items:center;font-size:11px;font-weight:700;color:var(--graphite);flex-shrink:0}.option-row .input{flex:1;min-width:0}.option-remove{width:32px;min-width:32px;min-height:32px;padding:0;font-size:16px;line-height:1}.overview-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}.arrow-pager{display:flex;align-items:center;gap:8px}.arrow-btn{width:36px;min-width:36px;min-height:36px;padding:0;font-size:16px;line-height:1}.progress-cell{min-width:170px}.progress-cell-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:6px;font-size:12px}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#29272094;display:grid;place-items:center;padding:25px;z-index:100}.modal{background:var(--cream);max-width:460px;width:100%;max-height:90vh;overflow-y:auto;padding:28px;border-radius:8px;box-shadow:var(--shadow)}.modal.modal-wide{max-width:740px}.modal table{min-width:0}.modal h2{font:26px Georgia,serif;margin-top:0}.modal p{color:#756e5f;line-height:1.5}.toast{position:fixed;right:24px;bottom:24px;background:var(--graphite);color:#fff;padding:15px 20px;border-radius:6px;box-shadow:var(--shadow);max-width:420px;font-size:13px;z-index:150;animation:toast-in .2s ease-out}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.spinner{width:26px;height:26px;border:3px solid #d3cab5;border-top-color:var(--olive);border-radius:50%;animation:spin .8s linear infinite}.spinner.small{width:17px;height:17px;border-width:2px}@keyframes spin{to{transform:rotate(360deg)}}.spinner-wrap{display:flex;align-items:center;justify-content:center;gap:12px;padding:40px 0;color:var(--muted);font-size:13px}.network-error{background:#f3e1db;border:1px solid var(--rust);border-left:4px solid var(--rust);border-radius:7px;padding:20px 22px;color:#6d3a33;font-size:13px;line-height:1.5;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:20px 0}.avatar{display:grid;place-items:center;height:34px;min-width:34px;border-radius:50%;background:var(--graphite);color:#f7f2e6;font-size:12px;font-weight:700;letter-spacing:.04em}.user-pill{display:flex;align-items:center;gap:10px}.user-pill .who{line-height:1.25;text-align:right}.user-pill .who b{display:block;font-size:12px;color:var(--graphite)}.user-pill .who span{font-size:10px;color:var(--muted)}@media (max-width: 970px){.side{width:212px;min-width:212px}.canvas{padding:24px}.topbar{padding:0 22px}.g3,.g4{grid-template-columns:repeat(2,minmax(0,1fr))}.auth-zone{grid-template-columns:1fr}.auth-art{display:none}}@media (max-width: 700px){.shell{display:block}.side{width:100%;max-height:none;position:static}.brand{padding:15px 18px}.side .heading{display:none}.nav{display:flex;overflow:auto;gap:7px;padding:8px 10px}.nav button,.nav a{white-space:nowrap;padding:9px;width:auto}.topbar{height:auto;padding:13px 16px;flex-wrap:wrap}.canvas{padding:23px 14px}.g2,.g3,.g4,.form-2{grid-template-columns:1fr}.page-title{font-size:31px}.screen-bar{display:block}.screen-bar .btn{margin-top:14px}.filters .input{width:100%}.filters .search{min-width:0}.auth-form{padding:34px 20px}.card{padding:19px}.assign-card{margin:0;padding:24px}}@media (max-width: 850px){.assign-card{margin:0;padding:24px}}
