/* Teacher dashboard (/teachers). Builds on pages.css tokens, exams.css and the account pieces in parents.css. */
.t-side{background:radial-gradient(600px 300px at 90% -10%,rgba(242,196,107,.35),transparent),linear-gradient(150deg,var(--teal),#164C46)}
.x-hello{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin:22px 0 14px}
.t-row-end{display:flex;justify-content:flex-end;margin:6px 0 12px}
.t-form{margin-bottom:16px}
.t-form select,.t-form input[type=number],.t-form input[type=datetime-local]{font:inherit;font-size:16px;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:11px 12px;width:100%}
.t-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:6px 14px;margin-top:6px}
.t-checks .p-check{margin:0}
.t-who-list{background:var(--bg);border:1px solid var(--line);border-radius:14px;padding:10px 12px;margin:6px 0 12px;max-height:240px;overflow:auto}
.xc-late{color:var(--bad)!important;font-weight:600}

/* my classes */
.t-classes{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;margin-bottom:18px}
.t-class{display:flex;gap:14px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:16px;color:inherit;text-decoration:none;transition:border-color .15s,transform .15s}
.t-class:hover,.t-class:focus-visible{border-color:var(--teal);transform:translateY(-2px)}
.t-class-t{display:flex;flex-direction:column;gap:4px;min-width:0}
.t-class-t b{font-family:var(--head);font-size:18px}
.t-class-t small{color:var(--muted);font-size:13.5px}
.t-class-n{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:13px;color:var(--ink);margin-top:4px}
.t-code-sm{font-family:var(--head);letter-spacing:1.5px;color:var(--teal);font-weight:700}
.t-empty{text-align:start}
.t-empty .btn{margin-top:8px}

/* licence and plan */
.t-lic{margin-top:16px}
.t-lic.on{border-color:var(--ok);background:var(--ok-soft)}
.t-lic h3 small{font-weight:600;color:var(--muted);font-size:14px}
.t-plan{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center}
.t-price{display:flex;flex-direction:column;align-items:center;gap:2px;background:var(--bg);border:1px solid var(--line);border-radius:16px;padding:12px 18px;text-align:center;min-width:170px}
.t-price b{font-family:var(--head);font-weight:800;font-size:24px;color:var(--brand)}
.t-price b.t-ask{font-size:18px;color:var(--teal)}
.t-price small{color:var(--muted);font-size:12.5px}

/* class page */
.t-hero{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between}
.t-join{display:flex;flex-direction:column;align-items:flex-start;gap:6px;background:var(--surface);border:1.5px dashed var(--teal);border-radius:18px;padding:12px 16px}
.t-join small{color:var(--muted);font-size:13px}
.t-code{font-family:var(--head);font-size:30px;letter-spacing:4px;color:var(--teal);line-height:1.1}
.t-join-acts{display:flex;flex-wrap:wrap;gap:6px}
.t-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:16px 0 14px;border-bottom:1px solid var(--line);padding-bottom:10px}
.t-tabs a{font-weight:700;font-size:15px;color:var(--muted);text-decoration:none;border-radius:999px;padding:8px 16px;border:1.5px solid transparent}
.t-tabs a[aria-selected="true"]{color:#fff;background:var(--teal)}
.t-tabs a:hover{border-color:var(--teal)}
.t-who{display:flex;align-items:center;gap:10px;min-width:0}
.t-who small{color:var(--muted)}
.t-students .p-tr{grid-template-columns:1fr auto auto}
.t-acts{display:flex;flex-wrap:wrap;gap:8px}
.t-danger{color:var(--bad)!important;border-color:var(--bad)!important}
.t-empty-in p{margin:0;color:var(--muted)}

/* assignments */
.t-asg summary{flex-wrap:wrap}
.t-prog{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:180px}
.t-prog small{color:var(--muted);font-size:12.5px}
.t-bar{display:block;width:180px;height:8px;border-radius:99px;background:var(--line);overflow:hidden}
.t-bar i{display:block;height:100%;background:var(--teal);border-radius:99px}
.t-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px;margin-bottom:10px}
.t-cell{display:flex;flex-direction:column;background:var(--bg);border-radius:12px;padding:8px 10px;font-size:14px}
.t-cell small{font-weight:700;font-size:12.5px}

/* report */
.t-trouble .t-spot{border-top:1px solid var(--line);padding:12px 0}
.t-spot-h{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.t-spot-h .p-course-t{flex:1 1 240px}
.t-spot-n{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--bad-soft);color:var(--bad);font-family:var(--head);font-weight:800;font-size:19px}
.t-spot .p-chips{margin-top:8px}
.t-spot .t-form{margin-top:12px;background:var(--bg)}
.t-ok{margin:0;color:var(--ok);font-weight:700}
.t-flag.bad{border-color:var(--bad-soft)}
.t-flag.ok{border-color:var(--ok-soft)}
.t-flag-r{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-top:1px solid var(--line)}
.t-flag-r small{color:var(--muted);font-size:13px}
.t-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.t-table{border-collapse:collapse;width:100%;font-size:14px;min-width:640px}
.t-table th,.t-table td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:start;white-space:nowrap}
.t-table thead th{font-size:12.5px;color:var(--muted);font-weight:700;background:var(--bg);position:sticky;top:0}
.t-table tbody th{font-weight:700}
.t-matrix thead th{max-width:160px;overflow:hidden;text-overflow:ellipsis}
.t-matrix td{text-align:center;font-weight:700}
.t-na{color:var(--line)!important}
.t-dot{font-size:12px}.t-dot.bad{color:var(--bad)}.t-dot.ok{color:var(--ok)}

@media (max-width:560px){
  .bar-in{flex-wrap:wrap;row-gap:6px;padding:10px 16px}
  .bar .x-nav{order:3;width:100%;gap:0;justify-content:flex-start}
  .bar .x-nav a,.bar .x-nav button{padding:4px 8px;font-size:14px;white-space:nowrap}
}
@media (max-width:720px){
  .t-plan{grid-template-columns:1fr}
  .t-price{min-width:0}
  .t-prog{align-items:flex-start;min-width:0;width:100%}
  .t-bar{width:100%}
  .t-code{font-size:26px}
  .t-students .p-tr{grid-template-columns:1fr auto}
  .t-students .p-tr small{display:none}
}

/* showcase «للمدارس والمعلمين» (visitors) */
.t-hero-sc{position:relative;margin:22px 0 8px;padding:34px 30px;border-radius:28px;color:#fff;background:radial-gradient(700px 300px at 90% -10%,rgba(242,196,107,.35),transparent),linear-gradient(150deg,var(--teal),#164C46);box-shadow:0 20px 50px rgba(27,34,51,.1)}
.t-hero-sc h1{font-family:var(--head);font-weight:800;font-size:clamp(26px,4vw,40px);line-height:1.4;margin:14px 0 12px}
.t-hero-sc h1 em{font-style:normal;color:#F2C46B}
.t-hero-sc p{font-size:17px;line-height:1.9;max-width:720px;margin:0 0 20px;opacity:.95}
.t-hero-acts{display:flex;flex-wrap:wrap;gap:10px}
.t-hero-sc .btn{background:#fff;color:var(--teal)}
.t-hero-sc .btn.ghost{background:transparent;color:#fff;border-color:#fff}
.t-feats{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.t-shots{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px}
.t-shots figure{margin:0;background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden}
.t-shots img{display:block;width:100%;height:auto;border-bottom:1px solid var(--line)}
.t-shots figcaption{padding:10px 14px;font-size:14px;font-weight:600}
.t-steps{list-style:none;margin:0 0 18px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.t-steps li{display:flex;flex-direction:column;gap:4px;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px}
.t-steps li span:last-child{color:var(--muted);font-size:14px;line-height:1.7}
.t-step-n{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--teal);color:#fff;font-weight:800;margin-bottom:4px}
.t-inquiry{border:1.5px solid var(--teal);scroll-margin-top:80px}
.t-inquiry textarea{font:inherit;font-size:16px;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:11px 12px;width:100%;resize:vertical}
.t-inquiry input[type=tel]{font:inherit;font-size:16px}
.t-grades{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.t-chip{position:relative;cursor:pointer}
.t-chip input{position:absolute;opacity:0;inset:0}
.t-chip span{display:grid;place-items:center;min-width:42px;height:38px;padding:0 10px;border:1.5px solid var(--line);border-radius:999px;font-weight:700;background:var(--surface)}
.t-chip input:checked+span{background:var(--teal);border-color:var(--teal);color:#fff}
.t-chip input:focus-visible+span{outline:3px solid var(--teal);outline-offset:2px}
/* hidden from people without pushing the page sideways (a far-off left offset makes RTL pages scroll) */
.t-trap{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);opacity:0;pointer-events:none}
.t-faq details{border-top:1px solid var(--line);padding:10px 0}
.t-faq summary{cursor:pointer;font-weight:700}
.t-faq p{margin:8px 0 0;color:var(--muted);line-height:1.8}
.t-login-alt{border-top:0}
@media (max-width:560px){.t-hero-sc{padding:24px 18px}.t-shots{grid-template-columns:1fr}}
