html{min-width:320px}body{min-height:100vh}#root{width:100%}:root{color:#e8eef7;font-synthesis:none;background:#0e1521;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}.app{max-width:900px;margin:auto;padding:20px}.header,.topline{justify-content:space-between;align-items:center;gap:12px;display:flex}.header{border-bottom:1px solid #29364a;padding:15px 0 30px}.brand{font-size:26px;font-weight:800}.brand span{color:#54d6ec}.tag{color:#8c9eb5;font-size:12px}h1{font-size:26px}h2{font-size:19px}h3{font-size:16px}.muted{color:#95a5b9;font-size:14px}.child-grid{grid-template-columns:repeat(2,1fr);gap:14px;margin:18px 0 25px;display:grid}.child-card,.panel{background:#192536;border:1px solid #2b3b50;border-radius:16px;padding:20px}.child-card{color:inherit;flex-direction:column;align-items:center;gap:8px;display:flex}.child-card.active{background:#173244;border-color:#54d6ec}.profile-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;display:grid}.profile-editor{background:#142131;border:1px solid #2b3b50;border-radius:12px;gap:9px;padding:14px;display:grid}.auth-container{justify-content:flex-end;padding-top:12px;display:flex}.sync-status{color:#b7dce5;overflow-wrap:anywhere;background:#142531;border:1px solid #346478;border-radius:10px;gap:8px;max-width:900px;margin:12px auto;padding:10px 14px;display:grid}.sync-status-syncing{color:#9deafa}.sync-status-offline{color:#e7d19f;border-color:#796333}.sync-status-error,.sync-status-conflict{color:#ffd2c5;border-color:#9a5c4c}.sync-conflict-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.family-access-panel{gap:12px;display:grid}.family-import-preview{color:#dce8f3;border:1px solid #2b3b50;border-radius:10px;padding:12px}.family-import-preview summary{cursor:pointer;font-weight:600}.family-import-preview article{overflow-wrap:anywhere;border-bottom:1px solid #2b3b50;gap:5px;padding:10px 0;display:grid}.family-import-preview article span{color:#95a5b9;font-size:13px}.storage-warning{color:#f0dfc3;background:#403321;border:1px solid #b88636;border-radius:9px;padding:12px;line-height:1.5}.avatar{color:#8deafa;background:#24566a;border-radius:50%;place-items:center;width:48px;height:48px;font-size:23px;font-weight:700;display:grid}small{color:#9caec4;display:block}.panel{margin:18px 0}.primary,.secondary,.danger{border:none;border-radius:10px;padding:12px 16px;font-weight:600}.primary{color:#08202a;background:#54d6ec;margin-top:15px}.secondary{color:#fff;background:#2b3b50}.danger{color:#ffb9c2;background:#592b35;margin-top:20px}.exam-entry{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;display:grid}.exam-row{color:#fff;text-align:left;background:#243349;border:0;border-radius:10px;justify-content:space-between;align-items:center;width:100%;margin:10px 0;padding:14px;display:flex}.exam-row small{margin-top:5px}.exam-generation-link{min-height:44px;padding:10px 12px;font-size:13px}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{background:#293a4f;border-radius:8px;padding:8px 11px;font-size:13px}.inline-form{gap:8px;margin-top:18px;display:flex}.form{flex-direction:column;gap:12px;display:flex}label{font-size:14px;font-weight:600}input,select,textarea{color:#f1f5f9;background:#101b2b;border:1px solid #41526a;border-radius:9px;width:100%;min-width:0;padding:12px}textarea{resize:vertical}.topic{background:#263b43;border-radius:8px;margin:8px 0;padding:12px}.difficulty-setting,.exercise-config{background:#142531;border:1px solid #346478;border-radius:12px;margin:20px 0;padding:16px}.difficulty-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.difficulty-heading h3{margin:0}.difficulty-heading output{color:#54d6ec;font-weight:700}input.difficulty-slider{accent-color:#54d6ec;touch-action:pan-y;background:0 0;border:0;min-height:40px;padding:8px 0}.difficulty-labels{color:#95a5b9;justify-content:space-between;gap:8px;font-size:13px;display:flex}.difficulty-labels .selected{color:#54d6ec;font-weight:700}.exercise-config p{overflow-wrap:anywhere;line-height:1.5}.notice{background:#203746;border:1px solid #35718b;border-radius:12px;margin-top:20px;padding:16px}.notice p{color:#aebfd0;font-size:13px}@media (width<=480px){.app{padding:14px}.auth-container{justify-content:stretch}.sync-status{margin:10px 14px}.sync-conflict-actions{flex-direction:column;align-items:stretch}.sync-conflict-actions button{width:100%}h1{font-size:22px}.panel{padding:15px}.inline-form{flex-direction:column}.exam-entry{grid-template-columns:minmax(0,1fr)}.exam-row{margin:6px 0}.exam-generation-link{width:100%}.difficulty-setting,.exercise-config{padding:12px}}.exercise-generation{margin:20px 0}.provider-status{color:#b6dce5;overflow-wrap:anywhere;background:#101b2b;border-left:3px solid #54d6ec;border-radius:6px;padding:10px 12px;font-weight:600}.topic-approval{border:1px solid #346478;border-radius:10px;min-width:0;margin:16px 0;padding:12px}.topic-approval legend{color:#8deafa;padding:0 6px;font-weight:600}.ocr-approval-list{gap:8px;padding:0;list-style:none;display:grid}.ocr-approval-row{overflow-wrap:anywhere;background:#101b2b;border:1px solid #41526a;border-radius:9px;align-items:flex-start;gap:10px;padding:12px;display:flex}.ocr-approval-row input,.exercise-generation .privacy-check input{accent-color:#54d6ec;width:18px;min-width:18px;height:18px;margin:2px 0 0;padding:0}.ocr-approval-row>span{gap:6px;display:grid}.ocr-approval-row>span>span{color:#cbd6e4;font-weight:400;line-height:1.5}.generation-options{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px;margin:18px 0;display:grid}.transfer-preview,.live-consent,.generated-preview,.saved-runs,.saved-run{background:#142531;border:1px solid #346478;border-radius:12px;margin-top:18px;padding:14px}.transfer-preview h4,.generated-preview h4,.saved-runs h4,.saved-run h5{margin-top:0}.request-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0;display:grid}.request-summary div{overflow-wrap:anywhere;background:#101b2b;border-radius:8px;min-width:0;padding:10px}.request-summary dt{color:#95a5b9;font-size:12px}.request-summary dd{margin:5px 0 0;font-weight:600}.transfer-preview h5{margin:16px 0 8px}.preview-topics,.preview-sections{overflow-wrap:anywhere;margin:0;padding-left:22px}.preview-topics li,.preview-sections li{margin:6px 0;line-height:1.5}.preview-sections li{background:#101b2b;border-radius:7px;padding:8px}.exercise-generation .privacy-check{align-items:flex-start;gap:10px;margin:14px 0;font-size:14px;line-height:1.5;display:flex}.preview-confirmation{border-top:1px solid #35465c;padding-top:12px}.preview-actions{flex-wrap:wrap;gap:10px;margin-top:16px;display:flex}.preview-actions button{flex:180px}.exercise-generation button.primary,.exercise-generation button.secondary{min-height:44px}.live-consent .muted,.mock-notice{line-height:1.5}.mock-notice{color:#b6dce5;margin:16px 0 0;font-size:14px}.generation-progress{color:#b6dce5;align-items:center;gap:10px;margin:12px 0 0;line-height:1.5;display:flex}.generation-spinner{border:2px solid #426375;border-top-color:#54d6ec;border-radius:50%;flex:0 0 16px;width:16px;height:16px;animation:.8s linear infinite generation-spin}@keyframes generation-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.generation-spinner{animation:none}}.saved-runs>.muted{line-height:1.5}.saved-run{background:#101b2b;margin-top:14px}.saved-run-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.saved-run-heading h5{margin:0 0 5px}.saved-run-heading>strong{color:#54d6ec;flex:none;font-size:13px}.saved-exercise,.review-holdback article{overflow-wrap:anywhere;border-top:1px solid #35465c;padding:12px 0}.saved-exercise h6{color:#8deafa;margin:0 0 8px;font-size:14px}.saved-exercise p,.review-holdback p{line-height:1.5}.saved-exercise>label:not(.privacy-check){margin:12px 0 6px;display:block}.completed-check{width:fit-content}.review-holdback{color:#f0dfc3;overflow-wrap:anywhere;background:#403321;border:1px solid #b88636;border-radius:9px;margin-top:12px;padding:12px}.review-holdback h5{margin:0}.review-holdback p{margin-bottom:8px}.review-holdback article{border-color:#755c31}@media (width<=480px){.generation-options,.request-summary{grid-template-columns:minmax(0,1fr)}.transfer-preview,.live-consent,.generated-preview,.saved-runs,.saved-run{padding:12px}.saved-run-heading{flex-direction:column}.exercise-generation button.primary{width:100%}.preview-actions{flex-direction:column-reverse}}.material-upload{border-top:1px solid #35465c;margin-top:24px;padding-top:16px}.privacy-notice{background:#403321;border:1px solid #b88636;border-radius:12px;margin:16px 0;padding:16px}.privacy-notice p{color:#e5d5bb;font-size:14px;line-height:1.6}.privacy-check{align-items:flex-start;gap:10px;margin:16px 0;font-size:14px;line-height:1.5;display:flex}.privacy-check input{accent-color:#54d6ec;flex-shrink:0;width:18px;height:18px;margin:2px 0 0}.material-canvas{touch-action:none;cursor:crosshair;border:1px solid #52657c;border-radius:10px;width:100%;height:auto;margin-top:18px;display:none}.material-canvas.visible{display:block}.material-controls{margin-top:16px}.material-controls .secondary{margin:8px 0}.ocr-consent,.ocr-results{background:#142531;border:1px solid #346478;border-radius:12px;margin-top:20px;padding:16px}.ocr-consent p,.ocr-results p{line-height:1.6}.ocr-progress{margin-top:16px}.ocr-progress progress{accent-color:#54d6ec;width:100%;height:12px}.upload-error{color:#ffc2c9;background:#3b2028;border:1px solid #a9505e;border-radius:8px;padding:12px;line-height:1.5}.ocr-results textarea{margin-top:8px;line-height:1.5}.hint-list,.section-list{gap:8px;padding:0;list-style:none;display:grid}.hint-list li,.topic-section{overflow-wrap:anywhere;background:#203344;border-radius:8px;padding:10px 12px}.topic-section{border:1px solid #536173;gap:5px;display:grid}.topic-section.match{background:#193a3d;border-color:#358b84}.topic-section.uncertain{background:#403321;border-color:#b88636}.topic-section small{overflow-wrap:anywhere}.topic-filter{background:#152c38;border:1px solid #346478;border-radius:12px;margin-top:25px;padding:16px}button:disabled{opacity:.45;cursor:not-allowed}@media (width<=480px){.ocr-consent,.ocr-results,.topic-filter{padding:12px}}.study-card-form{gap:10px;display:grid}.study-card-list{gap:12px;margin-top:20px;display:grid}.study-card{background:#142131;border:1px solid #2b3b50;border-radius:12px;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:14px;display:grid}.study-card-content{overflow-wrap:anywhere;min-width:0}.study-card-content p{white-space:pre-wrap}.study-card-content small{margin-top:6px}.study-card-actions{flex-direction:column;gap:8px;min-width:140px;display:flex}.study-card-actions button{min-height:44px;margin:0}@media (width<=600px){.study-card{grid-template-columns:minmax(0,1fr)}.study-card-actions{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;display:grid}.study-card-actions .danger{grid-column:1/-1}}.auth-panel,.auth-status{background:#142531;border:1px solid #346478;border-radius:12px;gap:10px;min-width:250px;max-width:430px;padding:12px;display:grid}.auth-panel-heading,.auth-status.signed-in{color:#dce8f3;justify-content:space-between;align-items:center;gap:10px;display:flex}.auth-form{gap:7px;display:grid}.auth-form label{margin-top:3px}.auth-form .primary{margin-top:5px}.auth-mode-toggle{color:#54d6ec;background:0 0;border:0;padding:5px;text-decoration:underline}.auth-status>span,.auth-disclaimer{overflow-wrap:anywhere;font-size:12px;line-height:1.45}.auth-status>span:not(:first-child),.auth-disclaimer{color:#95a5b9}.auth-status.signed-in{flex-wrap:wrap}.auth-error,.auth-message{overflow-wrap:anywhere;font-size:13px;line-height:1.4}.auth-error{color:#ffb9c2}.auth-message{color:#8deafa}@media (width<=560px){.auth-panel,.auth-status{width:100%;min-width:0;max-width:none}}
