.inline-primary{display:inline-flex;padding:10px 16px}
.row-actions{display:flex;align-items:center;gap:12px}.row-actions a{color:var(--green);font-weight:700}.row-actions form{margin:0}.row-actions button{border:0;background:none;color:var(--red);cursor:pointer}
.comment-copy{min-width:260px;max-width:440px;white-space:normal;line-height:1.6}.row-actions .approve{color:var(--green)}.comment-pending{background:#fff7df;color:#a26d00}.comment-rejected{background:#fff0f0;color:var(--red)}

.category-manager{max-width:1180px}.category-add-form{display:grid;grid-template-columns:minmax(220px,1fr) 130px auto;gap:12px;max-width:680px;margin-bottom:24px}.category-add-form input,.category-edit-form input{min-width:0;border:1px solid #dce7e3;border-radius:10px;padding:10px 12px;outline:none;font:inherit}
.category-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.category-card{overflow:hidden;border:1px solid #e2ece8;border-radius:16px;background:linear-gradient(145deg,#fff,#f5fbf8)}.category-card-main{display:flex;align-items:center;gap:14px;padding:20px}.category-card-icon{width:48px;height:48px;flex:none;display:grid;place-items:center;border-radius:15px;background:#e0f6ee;color:var(--green);font-size:20px;font-weight:800}.category-card-main>span:nth-child(2){min-width:0;flex:1}.category-card-main b,.category-card-main small{display:block}.category-card-main b{font-size:16px}.category-card-main small{margin-top:5px;color:var(--muted)}.category-card-main i{color:var(--green);font-size:12px;font-style:normal;font-weight:700}.category-card-settings{margin:0;border:0;border-top:1px solid var(--line);border-radius:0;padding:0}.category-card-settings summary{padding:11px 18px;color:var(--muted);font-size:12px}.category-card-settings>div{padding:0 16px 16px}.category-edit-form{display:grid;grid-template-columns:1fr 90px auto;gap:8px}.category-edit-form button,.category-delete{border:0;background:none;cursor:pointer;font-weight:700}.category-edit-form button{color:var(--green)}.category-delete{margin-top:10px;padding:0;color:var(--red);font-size:12px}
.course-breadcrumb{display:flex;align-items:center;gap:8px;margin:0 0 16px;color:var(--muted);font-size:13px}.course-breadcrumb a{color:var(--green)}.course-summary-cell{max-width:320px;overflow:hidden;text-overflow:ellipsis}.course-editor{max-width:1180px}.course-form{display:grid;grid-template-columns:1fr 1fr;gap:18px}.course-form .span-2{grid-column:1/-1}.course-form textarea,.course-form select{width:100%;border:1px solid #dce7e3;border-radius:10px;padding:11px 12px;outline:none;background:#fff;color:var(--ink);font:inherit}.course-form textarea{resize:vertical;line-height:1.8}.course-form textarea:focus,.course-form select:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(8,143,116,.1)}.course-form small{color:var(--muted)}.field-label{display:block;margin-bottom:7px;color:#425558;font-size:13px}

.cover-field,.course-content-field{display:block}.cover-uploader{display:grid;grid-template-columns:240px 1fr;gap:18px;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fbfefd}.cover-preview{height:142px;display:grid;place-items:center;overflow:hidden;border:1px dashed #bcd5cc;border-radius:12px;background:#edf7f3;color:var(--muted);font-size:12px}.cover-preview img{display:none;width:100%;height:100%;object-fit:cover}.cover-preview.has-image img{display:block}.cover-preview.has-image span{display:none}.cover-controls{display:flex;min-width:0;flex-direction:column;justify-content:center;gap:10px}.cover-controls>div{display:flex;gap:9px}.image-upload-button,.secondary-button{border:0;border-radius:9px;padding:9px 14px;background:#e5f8f1;color:var(--green);font-weight:700;cursor:pointer}.secondary-button{border:1px solid #d7e7e1;background:#fff}.image-upload-button:disabled{opacity:.55}

.rich-editor{overflow:hidden;border:1px solid #dce7e3;border-radius:14px;background:#fff}.format-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:10px;border-bottom:1px solid var(--line);background:#f7faf9}.format-toolbar button{border:1px solid #dbe8e4;border-radius:8px;padding:7px 10px;background:#fff;color:#3b5551;cursor:pointer;font-size:12px}.format-toolbar button:hover{border-color:#8fcbb9;color:var(--green)}.format-toolbar .image-upload-button{margin-left:auto;border:0;background:#e1f7ef;color:var(--green)}.editor-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.8fr);min-height:480px}.editor-workspace textarea{min-height:480px;border:0;border-radius:0;padding:18px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px;line-height:1.8;box-shadow:none!important}.editor-preview{overflow:auto;max-height:620px;border-left:1px solid var(--line);padding:18px;background:#fbfefd}.preview-title{position:sticky;top:-18px;margin:-18px -18px 18px;padding:12px 18px;border-bottom:1px solid var(--line);background:rgba(251,254,253,.96);color:var(--muted);font-size:12px;font-weight:700}.editor-preview article{color:#263b37;font-size:15px;line-height:1.9}.editor-preview article h2{margin:26px 0 12px;font-size:24px}.editor-preview article h3{margin:22px 0 10px;font-size:19px}.editor-preview article p{margin:0 0 16px}.editor-preview article blockquote{margin:18px 0;padding:12px 16px;border-left:4px solid var(--green);background:#edf8f4;color:#4c6660}.editor-preview article img{max-width:100%;height:auto;border-radius:12px}.preview-empty{color:#9aa8a3}.editor-upload-result{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;border-top:1px solid var(--line);background:#f8fbfa}.editor-upload-result>span{display:flex;align-items:center;gap:8px}.editor-upload-result input{width:340px;padding:7px 9px;font-size:11px}.submit-row{display:flex;justify-content:flex-end}.submit-row .primary{min-width:160px}

@media(max-width:980px){.category-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-workspace{grid-template-columns:1fr}.editor-preview{min-height:320px;border-top:1px solid var(--line);border-left:0}}
@media(max-width:720px){.course-form{grid-template-columns:1fr}.course-form .span-2{grid-column:auto}.category-add-form{grid-template-columns:1fr 100px}.category-add-form button{grid-column:1/-1}.category-card-grid{grid-template-columns:1fr}.cover-uploader{grid-template-columns:1fr}.cover-preview{height:180px}.format-toolbar .image-upload-button{margin-left:0}.editor-upload-result{align-items:flex-start;flex-direction:column}.editor-upload-result>span,.editor-upload-result input{width:100%}.submit-row .primary{width:100%}}
