/* ===== The Education Desk additions ===== */
.ted-soc-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ted-soc{display:inline-flex;align-items:center;justify-content:center;color:#94a3b8;transition:color .15s,background .15s,transform .15s}
.ted-soc-top .ted-soc{width:24px;height:24px}
.ted-soc-top .ted-soc:hover{color:var(--c)}
.ted-soc-footer .ted-soc{width:38px;height:38px;border-radius:50%;background:#1b2540;color:#cbd5e1}
.ted-soc-footer .ted-soc:hover{background:var(--c);color:#fff;transform:translateY(-2px)}
.ted-soc:focus-visible{outline:2px solid #38BDF8;outline-offset:2px}
/* error pages */
.ted-err{min-height:62vh;display:flex;align-items:center;justify-content:center;padding:56px 20px;background:linear-gradient(180deg,#f8fafc,#fff)}
.ted-err-card{max-width:560px;text-align:center}
.ted-err-code{font-family:'Playfair Display',Georgia,serif;font-weight:900;font-size:clamp(64px,14vw,120px);line-height:1;color:#1E3A8A;letter-spacing:-2px}
.ted-err-title{font-weight:900;font-size:clamp(22px,4vw,32px);color:#0F172A;margin:10px 0 12px}
.ted-err-text{color:#475569;font-size:16px;line-height:1.7}
.ted-err-path{display:inline-block;margin-top:14px;padding:5px 12px;background:#eef2ff;color:#1E3A8A;font-size:13px;word-break:break-all;max-width:100%}
.ted-err-detail{margin-top:12px;font-size:12px;color:#94a3b8}
.ted-err-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:26px}
.ted-err-foot{margin-top:28px;font-size:12px;color:#94a3b8}
.ted-toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:100;padding:10px 18px;font-size:13px;font-weight:700;color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.ted-toast-off{background:#b91c1c}.ted-toast-on{background:#15803d}
.ted-skel{background:linear-gradient(90deg,#eef2f7,#f8fafc,#eef2f7);background-size:200% 100%;animation:tedsk 1.2s infinite}
@keyframes tedsk{to{background-position:-200% 0}}
/* buttons */
.ted-btn{padding:10px 20px;font-weight:800;font-size:13px;cursor:pointer;border:0;transition:opacity .15s,background .15s}
.ted-btn:disabled{opacity:.55;cursor:not-allowed}
.ted-btn-primary{background:#2563EB;color:#fff}.ted-btn-primary:hover:not(:disabled){background:#1d4ed8}
.ted-btn-ghost{background:#fff;color:#1E3A8A;border:1.5px solid #1E3A8A}
.ted-btn-dark{background:#1e2535;color:#cbd5e1}.ted-btn-dark:hover:not(:disabled){background:#2d3748}
.ted-btn-danger{background:#2d1515;color:#ef4444}
.ted-btn-ghost-dark{background:transparent;color:#94a3b8}
/* admin */
.ted-panel{background:#141824;border:1px solid #1e2535;padding:16px}
.ted-label{display:block;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#94a3b8;margin-bottom:6px}
.ted-input{width:100%;background:#0a0d14;border:1px solid #1e2535;color:#e2e8f0;padding:10px 12px;font-size:14px;outline:none;font-family:inherit}
.ted-input:focus{border-color:#2563EB}
.ted-hint{font-size:12px;color:#475569;margin-top:6px;line-height:1.5}
.ted-count{font-size:11px;color:#475569;margin-top:4px}
.ted-note{display:flex;gap:6px;align-items:flex-start;padding:12px 14px;font-size:14px;margin-bottom:14px}
.ted-modal-bg{position:fixed;inset:0;background:rgba(0,0,0,.8);z-index:60;display:flex;align-items:center;justify-content:center;padding:16px}
.ted-modal{width:100%;max-width:400px;background:#141824;border:1px solid #2563EB;padding:24px}
.ted-two{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:20px;align-items:start}
.ted-plat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:6px}
.ted-plat{position:relative;display:flex;align-items:center;gap:8px;padding:8px 10px;background:#0a0d14;border:1px solid #1e2535;color:#94a3b8;font-size:12px;font-weight:600;text-align:left;cursor:pointer}
.ted-plat svg{color:var(--c);flex-shrink:0}
.ted-plat.on{border-color:var(--c);background:#141f38;color:#fff}
.ted-dot{position:absolute;top:5px;right:5px;width:6px;height:6px;border-radius:50%;background:#22c55e}
.ted-soc-item{display:flex;align-items:center;gap:12px;padding:12px 18px;border-bottom:1px solid #1e2535}
.ted-soc-badge{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#0a0d14;color:var(--c);flex-shrink:0}
.ted-chip{font-size:11px;font-weight:700;padding:2px 8px;background:#1e2535;color:#94a3b8}
.ted-actions{display:flex;gap:6px;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end}
.ted-icon-btn{height:30px;min-width:30px;background:#1e2535;color:#94a3b8;font-size:12px;font-weight:700;cursor:pointer;border:0}
.ted-icon-btn:hover:not(:disabled){background:#2d3748;color:#fff}.ted-icon-btn:disabled{opacity:.35;cursor:default}
.ted-tabs{display:flex;gap:4px;border-bottom:1px solid #1e2535;margin-bottom:14px;overflow-x:auto}
.ted-tab{padding:10px 14px;font-size:13px;font-weight:700;color:#64748b;border-bottom:2px solid transparent;white-space:nowrap}
.ted-tab span{margin-left:6px;font-size:11px;background:#1e2535;padding:1px 7px;border-radius:10px}
.ted-tab.on{color:#38BDF8;border-color:#2563EB}
.ted-filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.ted-bulk{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 14px;background:#1e2a45;margin-bottom:14px;color:#e2e8f0;font-size:13px}
.ted-bulk .ted-btn{padding:6px 12px}
.ted-table{border:1px solid #1e2535}
.ted-th,.ted-tr{display:grid;grid-template-columns:28px minmax(0,3fr) 1fr 1fr .7fr auto;gap:14px;align-items:center;padding:12px 16px}
.ted-th{background:#0a0d14;color:#475569;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.ted-tr{border-top:1px solid #1e2535}.ted-tr:hover{background:#121724}.ted-tr.sel{background:#14213d}
.ted-title-cell{display:flex;align-items:center;gap:12px;min-width:0}
.ted-thumb{width:56px;height:40px;flex-shrink:0;background:#1e2535;overflow:hidden}
.ted-thumb img{width:100%;height:100%;object-fit:cover}
.ted-title-link{display:block;max-width:100%;text-align:left;color:#e2e8f0;font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ted-title-link:hover{color:#38BDF8}
.ted-status{font-size:11px;font-weight:800;padding:3px 9px;border:1px solid;cursor:pointer;background:transparent}
.ted-status.pub{color:#22c55e;border-color:#166534}.ted-status.draft{color:#facc15;border-color:#713f12}
.ted-status.feat{color:#38BDF8;border-color:#0c4a6e}.ted-status.nofeat{color:#475569;border-color:#1e2535}
.ted-show-sm{display:none}
.ted-sticky{position:sticky;top:0;z-index:30;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;background:#0f1117;padding:10px 0;margin-bottom:12px;border-bottom:1px solid #1e2535}
.ted-seg{display:flex;background:#1e2535}.ted-seg button{padding:10px 16px;font-size:13px;font-weight:700;color:#94a3b8}.ted-seg button.on{background:#2d3748;color:#fff}
.ted-editor{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}
.ted-side{display:flex;flex-direction:column;gap:16px}
.ted-title-input{font-size:26px;font-weight:900;padding:14px 16px}
.ted-toolbar{display:flex;flex-wrap:wrap;gap:4px;padding:6px;background:#141824;border:1px solid #1e2535}
.ted-toolbar button{padding:6px 10px;font-size:12px;font-weight:700;background:#1e2535;color:#cbd5e1;border:0;cursor:pointer}
.ted-toolbar button:hover{background:#2d3748}
.ted-body{font-family:ui-monospace,Menlo,Consolas,monospace;line-height:1.7;resize:vertical;min-height:360px}
.ted-preview{background:#fff;color:#222;padding:32px;max-width:760px}
.ted-preview h2{font-size:24px;font-weight:800;margin:20px 0 8px}.ted-preview h3{font-size:19px;font-weight:700;margin:16px 0 6px}
.ted-preview blockquote{border-left:4px solid #2563EB;padding-left:14px;color:#555;font-style:italic}
.ted-preview ul{list-style:disc;padding-left:22px}.ted-preview ol{list-style:decimal;padding-left:22px}
.ted-preview img{max-width:100%}
.ted-check{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:13px;font-weight:600;color:#e2e8f0}
.ted-drop{padding:14px;border:1px dashed #2d3748;text-align:center;font-size:13px;font-weight:700;color:#94a3b8;cursor:pointer;background:#1e2535}
.ted-x{position:absolute;top:6px;right:6px;width:24px;height:24px;background:rgba(0,0,0,.7);color:#fff;border:0;cursor:pointer}
.ted-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:30px;text-shadow:0 2px 8px #000}
.ted-serp{background:#fff;padding:12px;font-family:Arial,sans-serif}
@media(max-width:900px){.ted-two,.ted-editor{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){
 .ted-th{display:none}
 .ted-tr{grid-template-columns:24px minmax(0,1fr);}
 .ted-tr .ted-actions{grid-column:1 / -1;justify-content:flex-start}
 .ted-hide-sm{display:none!important}.ted-show-sm{display:flex}
}
