.handout-branding-settings{position:relative;min-width:0}.handout-branding-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.handout-branding-section-heading h1,.handout-branding-section-heading h3{margin:0}.handout-branding-section-heading p{margin:5px 0 0;color:#5c6b7a;line-height:1.45}.handout-branding-pro-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:24px;padding:4px 9px;border:1px solid #c7d2fe;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:.72rem;font-weight:800;letter-spacing:.06em}.handout-branding-controls{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(180px,1fr) auto;align-items:end;gap:14px;margin-top:16px;min-width:0}.handout-branding-preview{display:flex;align-items:center;gap:12px;min-width:0;min-height:66px;padding:10px 12px;border:1px solid #cad8e6;border-radius:12px;background:#fff}.handout-branding-preview-image-wrap,.handout-branding-logo-image-wrap{display:flex;align-items:center;justify-content:center;flex:0 0 auto;overflow:hidden;border:1px solid #dbe4ee;border-radius:9px;background:linear-gradient(45deg,#f4f6f8 25%,transparent 25%),linear-gradient(-45deg,#f4f6f8 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f4f6f8 75%),linear-gradient(-45deg,transparent 75%,#f4f6f8 75%);background-position:0 0,0 5px,5px -5px,-5px 0;background-size:10px 10px}.handout-branding-preview-image-wrap{width:62px;height:44px}.handout-branding-preview-image,.handout-branding-logo-image{display:block;width:100%;height:100%;padding:4px;object-fit:contain}.handout-branding-preview-copy,.handout-branding-logo-details{display:flex;flex:1 1 auto;flex-direction:column;gap:3px;min-width:0}.handout-branding-preview-copy strong,.handout-branding-preview-copy small,.handout-branding-logo-details strong,.handout-branding-logo-details small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.handout-branding-preview-copy strong,.handout-branding-logo-details strong{color:#17324d;font-size:.94rem}.handout-branding-preview-copy small,.handout-branding-logo-details small{color:#678;font-size:.78rem}.handout-branding-select-field{display:flex;flex-direction:column;gap:6px;min-width:0;color:#17324d;font-size:.88rem;font-weight:700}.handout-branding-select-field select{width:100%;min-width:0;min-height:44px;margin:0;padding:8px 34px 8px 11px;border:1px solid #b9c7d5;border-radius:9px;background-color:#fff;color:#17324d;font:inherit}.handout-branding-manage-button,.handout-branding-add-button,.handout-branding-save-button,.handout-branding-cancel-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:0;padding:10px 15px;border:0;border-radius:9px;font-family:inherit;font-size:.9rem;font-weight:800;line-height:1.2;cursor:pointer}.handout-branding-manage-button,.handout-branding-save-button{background:#4f46e5;color:#fff}.handout-branding-manage-button:hover,.handout-branding-save-button:hover{filter:brightness(1.08)}.handout-branding-manage-button.is-locked{border:1px solid #cbd5e1;background:#e2e8f0;color:#475569}.handout-branding-status{margin:10px 0 0;color:#5c6b7a;font-size:.78rem;line-height:1.4}.handout-branding-settings.is-locked .handout-branding-preview,.handout-branding-settings.is-locked .handout-branding-select-field,.handout-branding-settings.is-locked [data-branding-account-list]{opacity:.55;filter:grayscale(.65)}.handout-branding-settings.is-locked .handout-branding-manage-button{opacity:1;filter:none}.handout-branding-account-list,.handout-branding-modal-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.handout-branding-account-list{margin:18px 0 14px}.handout-branding-logo-card{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:12px;min-width:0;padding:12px;border:1px solid #d8e0e8;border-radius:12px;background:#fff}.handout-branding-logo-card.is-default{border-color:#818cf8;box-shadow:inset 0 0 0 1px #6366f12e}.handout-branding-logo-image-wrap{width:72px;height:54px}.handout-branding-logo-heading{display:flex;align-items:center;gap:7px;min-width:0}.handout-branding-default-badge{flex:0 0 auto;padding:2px 6px;border-radius:999px;background:#e0e7ff;color:#4338ca;font-size:.62rem;font-weight:800;text-transform:uppercase}.handout-branding-logo-actions{display:flex;grid-column:1 / -1;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding-top:9px;border-top:1px solid #edf1f5}.handout-branding-text-button{min-height:34px;margin:0;padding:6px 9px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;font-family:inherit;font-size:.76rem;font-weight:800;cursor:pointer}.handout-branding-text-button.is-danger{border-color:#fecaca;color:#b91c1c}.handout-branding-empty{grid-column:1 / -1;margin:0;padding:18px;border:1px dashed #cbd5e1;border-radius:11px;color:#64748b;text-align:center}.handout-branding-manager-modal{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;padding:16px}.handout-branding-manager-modal.hidden{display:none}.handout-branding-modal-backdrop{position:absolute;inset:0;background:#0f172aad;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.handout-branding-modal-card{position:relative;z-index:1;width:min(760px,100%);max-height:calc(100dvh - 32px);overflow-x:hidden;overflow-y:auto;padding:26px;border-radius:18px;background:#f8fafc;box-shadow:0 24px 60px #0f172a52}.handout-branding-modal-close{position:absolute;top:11px;right:13px;z-index:2;display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:#475569;font-size:1.8rem;line-height:1;cursor:pointer}.handout-branding-modal-close:hover{background:#e2e8f0}.handout-branding-modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-right:34px}.handout-branding-modal-heading h2{margin:0;color:#172b4d}.handout-branding-modal-heading p{margin:5px 0 0;color:#64748b;line-height:1.45}.handout-branding-count{flex:0 0 auto;margin-top:3px;padding:5px 9px;border-radius:999px;background:#e2e8f0;color:#475569;font-size:.78rem;font-weight:800}.handout-branding-modal-list{margin-top:20px}.handout-branding-add-button{width:100%;margin-top:14px;border:1px dashed #818cf8;background:#eef2ff;color:#4338ca}.handout-branding-add-button:disabled,.handout-branding-save-button:disabled{cursor:not-allowed;opacity:.55}.handout-branding-editor{display:grid;gap:14px;margin-top:18px;padding:18px;border:1px solid #c7d2fe;border-radius:14px;background:#fff}.handout-branding-editor.hidden{display:none}.handout-branding-editor h3{margin:0 0 2px;color:#172b4d}.handout-branding-field{display:flex;flex-direction:column;gap:6px;min-width:0;color:#334155;font-size:.9rem;font-weight:800}.handout-branding-field>span small{color:#64748b;font-weight:500}.handout-branding-field input[type=text],.handout-branding-field input[type=file]{display:block;width:100%;min-width:0;min-height:44px;margin:0;padding:10px 11px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#1e293b;font-family:inherit;font-size:.92rem;box-sizing:border-box}.handout-branding-field input[type=file]{background:#f8fafc}.handout-branding-field input::file-selector-button{margin-right:10px;padding:7px 10px;border:0;border-radius:7px;background:#e2e8f0;color:#334155;font:inherit;font-weight:800;cursor:pointer}.handout-branding-field small{color:#64748b;font-size:.76rem;font-weight:500}.handout-branding-default-choice{display:flex;align-items:flex-start;gap:9px;color:#334155;font-size:.88rem;font-weight:700;line-height:1.35}.handout-branding-default-choice input{width:18px;height:18px;margin:1px 0 0}.handout-branding-form-error{min-height:1.2em;margin:0;color:#b91c1c;font-size:.82rem;font-weight:700}.handout-branding-form-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px}.handout-branding-cancel-button{border:1px solid #cbd5e1;background:#fff;color:#475569}body.handout-branding-modal-open{overflow:hidden}#lessonReviewModal .lesson-review-branding-section{margin-top:18px;border:1px solid rgba(79,70,229,.24);background:linear-gradient(135deg,#eef2ffe6,#fffffff5);box-shadow:inset 4px 0 #6366f1}#lessonReviewModal .handout-branding-manage-button{min-height:44px;margin:0;padding:10px 15px;border-radius:9px;background:#4f46e5;color:#fff;font-size:.9rem}#lessonReviewModal .handout-branding-manage-button.is-locked{border:1px solid #cbd5e1;background:#e2e8f0;color:#475569}#account-handout-branding .handout-branding-manage-button{align-self:flex-start}@media screen and (max-width: 768px){.handout-branding-controls{grid-template-columns:1fr;align-items:stretch}.handout-branding-manage-button{width:100%}.handout-branding-modal-card{padding:22px 16px 18px;border-radius:14px}.handout-branding-modal-heading{flex-direction:column;gap:8px}.handout-branding-modal-list,.handout-branding-account-list{grid-template-columns:1fr}}@media screen and (max-width: 460px){.handout-branding-manager-modal{align-items:stretch;padding:4px}.handout-branding-modal-card{width:100%;max-height:calc(100dvh - 8px);border-radius:10px}.handout-branding-section-heading{flex-direction:column;gap:8px}.handout-branding-logo-card{grid-template-columns:62px minmax(0,1fr);padding:10px}.handout-branding-logo-image-wrap{width:62px;height:48px}.handout-branding-form-actions{flex-direction:column}.handout-branding-save-button,.handout-branding-cancel-button{width:100%}}
