.sc-page{max-width:1200px;margin:auto;color:#0f172a;font-size:14px;font-weight:400}.sc-page button{cursor:pointer}.sc-page button:disabled{cursor:wait;opacity:.6}.sc-page button:focus-visible,.sc-page input:focus-visible{outline:2px solid #16a34a;outline-offset:3px}.sc-page svg{width:16px;height:16px;flex-shrink:0}.sc-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap}.sc-heading p{font-size:12px;color:#64748b;margin-bottom:4px}.sc-heading h2{font-size:24px;font-weight:700;letter-spacing:-.02em}.sc-sync{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.sc-sync span{font-size:12px;color:#64748b}.sc-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#15803d;color:#fff;padding:10px 16px;border:0;border-radius:10px;font-size:13px;font-weight:600;white-space:nowrap}.sc-primary:hover{background:#166534}.sc-tabs{display:flex;gap:4px;border-bottom:1px solid #e2e8f0;margin:18px 0 28px}.sc-tabs button{display:flex;align-items:center;gap:8px;height:44px;padding:0 16px;border-bottom:2px solid transparent;color:#64748b;font-weight:600}.sc-tabs button.active{color:#15803d;border-color:#16a34a}.sc-tabs span{border-radius:999px;background:#f1f5f9;color:#475569;padding:2px 8px;font-size:12px}.sc-card{background:white;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 1px 3px #0f172a0d;overflow:hidden}.sc-toolbar{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #f1f5f9;flex-wrap:wrap}.sc-search{display:flex;align-items:center;position:relative;flex:1;min-width:180px;max-width:360px}.sc-search svg{position:absolute;left:12px;color:#94a3b8}.sc-search input{width:100%;height:40px;border:1px solid #cbd5e1;border-radius:10px;padding:0 12px 0 36px;font-size:14px;background:#fff}.sc-filters{display:flex;gap:2px;padding:3px;background:#f1f5f9;border-radius:10px}.sc-filters button{padding:7px 12px;color:#64748b;font-size:13px;font-weight:600;border-radius:8px}.sc-filters button.active{background:white;color:#0f172a;box-shadow:0 1px 2px #0f172a14}.sc-filters span{font-size:11px;color:#94a3b8;margin-left:4px}.sc-add{margin-left:auto}.sc-table-wrap{overflow:auto}.sc-table{min-width:620px}.sc-subject-row{display:grid;grid-template-columns:minmax(0,1fr) 96px 150px 84px;align-items:center;gap:16px;padding:12px 20px;border-bottom:1px solid #f1f5f9}.sc-subject-row:hover{background:#f8fafc}.sc-subject-row strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}.sc-table-head{background:#f8fafc;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#64748b;padding:10px 20px}.sc-count{color:#475569;text-align:left;font-size:13px}.sc-count:hover{color:#15803d}.sc-access{display:flex;width:max-content;border-radius:999px;background:#f1f5f9;padding:3px;gap:2px}.sc-access button{padding:5px 14px;border-radius:999px;font-size:12px;font-weight:600;color:#64748b}.sc-access .free,.sc-badge.free{background:#dcfce7;color:#166534}.sc-access .paid,.sc-badge.paid{background:#fff7ed;color:#c2410c}.sc-actions{display:flex;justify-content:end;gap:4px}.sc-actions button{padding:10px;color:#64748b;border-radius:8px}.sc-actions button:hover{background:#f0fdf4;color:#15803d}.sc-actions button:last-child:hover{background:#fef2f2;color:#dc2626}.sc-empty{padding:48px 20px;text-align:center;color:#64748b;font-size:14px}.sc-columns{display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px;align-items:start}.sc-subject-nav{position:sticky;top:0}.sc-subject-nav .sc-toolbar{padding:14px}.sc-nav-list{max-height:65vh;overflow:auto;padding:6px}.sc-nav-list>button{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:10px 12px;border:1px solid transparent;border-radius:10px;text-align:left;color:#334155;font-size:13px;font-weight:600}.sc-nav-list>button.active,.sc-nav-list>button:hover{background:#f0fdf4;color:#166534}.sc-nav-list span{min-width:0;overflow-wrap:anywhere}.sc-nav-list small{color:#64748b;font-weight:400}.sc-chapter-heading h3{font-size:18px;font-weight:700}.sc-chapter-heading p{font-size:12px;color:#64748b;margin-top:5px}.sc-chapter-heading>.sc-primary{margin-left:auto}.sc-badge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:11px;font-weight:600;vertical-align:middle}.sc-chapter-list{padding:8px;min-height:100px}.sc-chapter-row{border:0!important;border-radius:10px!important;box-shadow:none!important;flex-wrap:wrap;padding:10px 12px!important;gap:8px!important}.sc-chapter-row:hover{background:#f8fafc!important}.sc-chapter-row>div:first-child{flex-basis:210px}.sc-chapter-row [data-settings-order-number]{background:#f1f5f9;color:#64748b;border-radius:6px;width:26px;height:26px;font-weight:500}.sc-chapter-row [data-settings-order-label]{display:none}.sc-chapter-row .truncate{white-space:normal;overflow-wrap:anywhere;font-weight:600}.sc-chapter-row button,.sc-chapter-row select{font-weight:600;text-transform:none;letter-spacing:normal}.sc-chapter-row [data-settings-order-control]{padding:4px;border:0}.sc-chapter-row [data-settings-chapter-access]{border-radius:999px;padding:6px;background:#f1f5f9;font-size:12px}.sc-settings-save{display:flex;justify-content:end}@media(max-width:1100px){.sc-columns{grid-template-columns:200px minmax(0,1fr)}.sc-chapter-row>div:first-child{flex-basis:100%}}@media(max-width:720px){.sc-columns{grid-template-columns:minmax(0,1fr)}.sc-subject-nav{position:static}.sc-nav-list{max-height:220px}.sc-tabs button{padding:0 9px;font-size:12px}.sc-toolbar{padding:14px}.sc-heading h2{font-size:22px}}
.sc-page [hidden]{display:none!important}.sc-access button:disabled{cursor:default;opacity:1}

/* Explicit sizing keeps this dialog compact even when utility CSS is pruned. */
.sc-edit-dialog{box-sizing:border-box;width:520px;max-width:100%;max-height:calc(100dvh - 48px);overflow-y:auto;background:#fff;border:1px solid #e2e8f0;border-radius:20px;box-shadow:0 24px 70px #0f172a40;color:#0f172a;font-size:14px;line-height:1.5}
.sc-edit-dialog-header{display:flex;align-items:flex-start;gap:16px;padding:24px 24px 20px;border-bottom:1px solid #f1f5f9}
.sc-edit-dialog-heading{flex:1;min-width:0}
.sc-edit-dialog h2{margin:0;font-size:19px;line-height:1.4;font-weight:700;letter-spacing:-.025em}
.sc-edit-dialog-heading p{margin:6px 0 0;color:#64748b;font-size:13px;line-height:1.6}
.sc-edit-dialog-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;padding:0;border:0;border-radius:8px;background:#f8fafc;color:#64748b;cursor:pointer}
.sc-edit-dialog-close:hover{background:#f1f5f9;color:#0f172a}
.sc-edit-dialog svg{width:16px;height:16px;flex-shrink:0}
.sc-edit-dialog-body{display:grid;gap:20px;padding:24px}
.sc-edit-dialog-origin{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;background:#f0fdf4;border:1px solid #dcfce7;border-radius:10px;color:#15803d}
.sc-edit-dialog-origin svg{margin-top:2px}
.sc-edit-dialog-origin button{min-width:0;border:0;background:none;padding:0;text-align:left;font-size:13px;font-weight:600;line-height:1.5;overflow-wrap:anywhere;color:#166534;cursor:pointer}
.sc-edit-dialog-origin button:hover{text-decoration:underline}
.sc-edit-dialog-origin span{display:block;margin-top:2px;color:#64748b;font-size:12px;font-weight:400}
.sc-edit-dialog-field{display:grid;gap:7px;min-width:0}
.sc-edit-dialog-field label{font-size:13px;color:#334155;font-weight:600}
.sc-edit-dialog-field input,.sc-edit-dialog-field select{box-sizing:border-box;width:100%;min-width:0;height:44px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;padding:0 12px;font:inherit;font-weight:500;color:#0f172a;outline:none}
.sc-edit-dialog-field select:disabled{background:#f8fafc;color:#64748b;border-color:#e2e8f0;opacity:1;cursor:default}
.sc-edit-dialog-field input:focus,.sc-edit-dialog-field select:focus{border-color:#16a34a;box-shadow:0 0 0 3px #dcfce7}
.sc-edit-dialog-footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;background:#f8fafc;border-top:1px solid #e2e8f0}
.sc-edit-dialog-footer button{height:40px;padding:0 18px;border-radius:9px;font-size:13px;font-weight:600;cursor:pointer}
.sc-edit-dialog-cancel{background:#fff;border:1px solid #cbd5e1;color:#475569}
.sc-edit-dialog-cancel:hover{background:#f1f5f9}
.sc-edit-dialog-save{background:#15803d;border:1px solid #15803d;color:#fff}
.sc-edit-dialog-save:hover{background:#166534;border-color:#166534}
.sc-edit-dialog button:focus-visible{outline:2px solid #16a34a;outline-offset:3px}
@media(max-width:540px){.sc-edit-dialog-header,.sc-edit-dialog-body{padding:20px}.sc-edit-dialog-footer{padding:16px 20px}.sc-edit-dialog{border-radius:16px}.sc-edit-dialog h2{font-size:18px}}
