@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--paper:#f5efe8;--ink:#292523;--muted:#77706b;--line:#e8dfd7;--rose:#9d5e59;--rose-dark:#824b47;--sage:#73806d;--white:#fffdfa;--shadow:0 18px 50px rgba(64,46,36,.06)}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif;line-height:1.55}.demo-banner{text-align:center;background:#2f3831;color:#f8f3e9;font-size:11px;letter-spacing:.14em;font-weight:700;padding:10px}.shell{width:min(100% - 36px,760px);margin:25px auto 60px}.topbar{display:flex;align-items:center;gap:12px;margin:0 3px 27px}.brand-mark{width:42px;height:42px;border-radius:14px;background:#a76b60;color:white;display:grid;place-items:center;font:800 25px Manrope}.brand-name{font:700 16px Manrope;letter-spacing:-.03em}.eyebrow{font-size:10px;letter-spacing:.17em;font-weight:700;color:var(--rose)}.topbar .eyebrow{font-size:8px;color:#958880}.mode{margin-left:auto;border:1px solid #d7c9bb;border-radius:30px;padding:7px 12px;background:transparent;color:#76685e;font-weight:700;font-size:10px;letter-spacing:.1em}.card{background:var(--white);border:1px solid rgba(136,112,94,.12);border-radius:22px;padding:24px;margin-bottom:16px;box-shadow:var(--shadow)}h1,h2{font-family:Manrope,sans-serif;letter-spacing:-.045em;margin:5px 0 9px;line-height:1.18}h1{font-size:clamp(28px,6vw,42px);max-width:520px}h2{font-size:21px}.hero{background:#e9ded2;padding:30px}.hero p{max-width:560px;color:#665d56;margin:11px 0 24px}.progress-row{display:flex;align-items:center;gap:14px;font-size:12px}.progress-track{height:7px;background:#d2c3b6;border-radius:10px;flex:1;overflow:hidden}.progress-track span{display:block;width:0;height:100%;background:var(--rose);border-radius:10px;transition:width .25s}.progress-row strong{white-space:nowrap}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.badge{padding:6px 10px;border-radius:20px;background:#efe4dc;color:var(--rose-dark);font-size:10px;font-weight:700}.muted{color:var(--muted);font-size:14px}.small{font-size:12px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:17px}.button{border:0;border-radius:12px;padding:12px 16px;font:600 13px 'DM Sans';cursor:pointer;transition:transform .12s,opacity .12s}.button:active{transform:scale(.98)}.primary{background:var(--rose);color:white}.primary:hover{background:var(--rose-dark)}.quiet{background:#f1ebe5;color:#554942}.secondary{background:#e9eee6;color:#4a6148}.danger{background:transparent;border:1px solid #e7cbc6;color:#a0524c}.state{font-size:12px;color:var(--sage);margin-top:12px;min-height:18px}.section-title{margin:30px 3px 12px}.section-title h2{margin:2px 0}.product-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}.product{background:var(--white);border:1px solid rgba(136,112,94,.12);border-radius:20px;padding:20px;box-shadow:var(--shadow);display:flex;flex-direction:column;min-height:220px}.product .icon{font-size:22px;margin-bottom:12px}.product h3{font:700 16px Manrope;letter-spacing:-.03em;line-height:1.25;margin:0 0 8px}.product p{font-size:12px;color:var(--muted);margin:0 0 16px}.product-foot{margin-top:auto;display:flex;justify-content:space-between;align-items:center}.price{font:700 14px Manrope}.library-icon{width:33px;height:33px;border-radius:50%;display:grid;place-items:center;background:#f4eee8;color:var(--sage)}.library-items{display:grid;gap:8px}.library-item{padding:12px 14px;border:1px solid var(--line);border-radius:12px;font-size:13px}.manage{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.manage .actions{margin:0}footer{text-align:center;color:#908780;font-size:11px;margin:27px auto;max-width:540px}dialog{border:0;border-radius:20px;padding:30px;width:min(92vw,650px);max-height:85vh;overflow:auto;color:var(--ink);background:var(--white);box-shadow:0 25px 90px #20171055}dialog::backdrop{background:#29231f99}.close{float:right;border:0;background:#f1ebe5;border-radius:50%;width:34px;height:34px;font-size:23px;cursor:pointer}article{white-space:pre-wrap;font-size:14px;line-height:1.75;color:#4d4641;margin-top:20px}.toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,20px);opacity:0;transition:.2s;background:#2f3831;color:white;padding:11px 17px;border-radius:24px;font-size:12px;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}.loading{opacity:.55;pointer-events:none}.error{color:#a34f48!important}.no-access{color:#938981!important}@media(max-width:560px){.shell{width:min(100% - 24px,760px);margin-top:18px}.card{padding:19px;border-radius:18px}.hero{padding:24px 20px}.product-grid{grid-template-columns:1fr}.product{min-height:180px}.manage{align-items:flex-start}.manage .actions{width:100%}.manage .button{flex:1}.section-title{margin-top:25px}}
.answer-panel{margin-top:26px;padding-top:18px;border-top:1px solid var(--line)}.answer-panel h3{font:700 17px Manrope;margin:0}.answer-field{display:block;margin:15px 0;color:#514841;font-size:12px;font-weight:600}.answer-field>span{display:block;margin-bottom:7px}.answer-field textarea,.answer-field select{width:100%;border:1px solid #ded3ca;border-radius:10px;padding:11px;background:#fffdfa;color:var(--ink);font:13px 'DM Sans';resize:vertical}.rating-options{display:flex;flex-wrap:wrap;gap:6px}.rating-options label input{position:absolute;opacity:0}.rating-options label span{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;cursor:pointer}.rating-options label input:checked+span{background:var(--rose);color:white;border-color:var(--rose)}
.repeat-item{display:block;font-size:11px;color:var(--muted);font-weight:500;margin:10px 0 4px}
.assessment-panel{margin-top:26px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.assessment-panel h3{font:700 17px Manrope;margin:0}.assessment-field{border:0;padding:0;margin:16px 0;color:#514841;font-size:12px;font-weight:600;min-width:0}.assessment-field legend{padding:0;margin-bottom:8px}.assessment-field textarea{width:100%;border:1px solid #ded3ca;border-radius:10px;padding:11px;background:#fffdfa;color:var(--ink);font:13px 'DM Sans';resize:vertical}.assessment-summary{margin-top:18px;padding:15px;border-radius:12px;background:#f5efe8}.assessment-summary h4{margin:0 0 8px;font:700 15px Manrope}.assessment-table-wrap{overflow-x:auto}.assessment-summary table{border-collapse:collapse;width:100%;font-size:11px}.assessment-summary th,.assessment-summary td{padding:7px;border-bottom:1px solid #ded3ca;text-align:right;white-space:nowrap}.assessment-summary th:first-child{text-align:left;white-space:normal}

.material-dialog{padding:0;width:min(calc(100vw - 20px),650px);max-height:calc(100dvh - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom)));overflow:auto;overscroll-behavior:contain;scroll-padding-top:76px;border-radius:18px}
.dialog-header{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:max(12px,env(safe-area-inset-top)) 20px 13px;background:var(--white);border-bottom:1px solid var(--line)}
.dialog-header h2{margin:3px 0 0;font-size:21px}
.close{position:relative;float:none;flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;font-size:27px;line-height:1;color:var(--ink);touch-action:manipulation}
.material-dialog #modalBody,.material-dialog #answerPanel,.material-dialog #taskRatingSummary{margin-left:20px;margin-right:20px}
.material-dialog #modalBody{margin-top:18px;margin-bottom:24px;white-space:normal;font-size:15px;line-height:1.75;overflow-wrap:anywhere}
#modalBody h3,#modalBody h4{font:700 16px Manrope;line-height:1.35;margin:22px 0 8px;color:var(--ink)}
#modalBody p{margin:0 0 13px}
#modalBody ul,#modalBody ol{padding-left:22px;margin:0 0 15px}
#modalBody li{padding-left:3px;margin:5px 0}
#modalBody blockquote{margin:14px 0;padding:10px 14px;border-left:3px solid var(--rose);background:#f8f2ec;border-radius:0 10px 10px 0}
#modalBody a{color:var(--rose-dark);text-underline-offset:3px}
#modalBody hr{border:0;border-top:1px solid var(--line);margin:20px 0}
.answer-prompt p{margin:0 0 10px}
.answer-prompt ul,.answer-prompt ol{padding-left:20px;margin:6px 0 12px}
.answer-field{margin:15px 0 18px;font-size:13px}
.answer-field>label>span,.answer-field>span{line-height:1.45}
.rating-field{padding:13px 14px 11px;background:#faf6f1;border:1px solid #eee5dc;border-radius:14px}
.rating-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 8px}.rating-heading label{font-size:13px;font-weight:700;color:var(--ink)}.rating-heading output{min-width:34px;padding:3px 8px;border-radius:8px;background:#efe4dc;color:var(--rose-dark);font-size:13px;font-weight:800;text-align:center;font-variant-numeric:tabular-nums}
.rating-control{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;align-items:center;gap:8px}
.rating-control input[type="range"]{width:100%;min-width:0;height:36px;margin:0;accent-color:var(--rose);touch-action:pan-y;cursor:pointer}
.rating-step{width:36px;height:36px;border:1px solid #ded3ca;border-radius:50%;background:#fffdfa;color:var(--rose-dark);font-size:20px;line-height:1;cursor:pointer;touch-action:manipulation}.rating-step:disabled{opacity:.4;cursor:default}
.rating-endpoints{display:flex;justify-content:space-between;gap:8px;padding:0 42px;margin-top:5px;color:var(--muted);font-size:9px;line-height:1.2}
.answer-field textarea,.answer-field select,#assessmentNote{min-height:44px;font-size:16px;line-height:1.45}
.private-note-panel{margin-top:22px;padding:16px 0 4px;border-top:1px solid var(--line)}
.private-note-panel h4{margin:0 0 5px;font:700 15px Manrope}
.private-note-panel .actions{margin-top:10px}
.historical-note{white-space:pre-wrap;padding:12px 14px;border-radius:11px;background:#f5efe8;color:#5b514a;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.answer-actions{position:sticky;bottom:0;z-index:4;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 0 max(10px,env(safe-area-inset-bottom));margin:10px 0 0;background:linear-gradient(to bottom,rgba(255,253,250,.88),var(--white) 18%);border-top:1px solid var(--line)}
.answer-actions .button{min-width:0;padding:11px 8px;font-size:12px;white-space:nowrap;touch-action:manipulation}
.button:disabled{opacity:.6;cursor:wait;transform:none}
.state.success{color:#477044}
.material-dialog :focus-visible{outline:3px solid #bf8175;outline-offset:3px}
@media(max-width:420px){.material-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - max(8px,env(safe-area-inset-top)) - max(8px,env(safe-area-inset-bottom)));border-radius:16px}.dialog-header{padding-left:14px;padding-right:14px}.dialog-header h2{font-size:19px}.material-dialog #modalBody,.material-dialog #answerPanel,.material-dialog #taskRatingSummary{margin-left:14px;margin-right:14px}.material-dialog #modalBody{font-size:14px}.rating-field{padding:11px 10px}.rating-control{grid-template-columns:36px minmax(0,1fr) 36px;gap:5px}.rating-step{width:34px;height:34px}.answer-actions .button{padding:10px 5px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.button,.toast,.progress-track span{transition:none}}
