.taa-page { --taa-ink:#142c4c; --taa-muted:#516782; --taa-blue:#2053db; --taa-line:#d7e3f2; display:grid; gap:20px; color:var(--taa-ink); }
.taa-page [hidden] { display:none !important; }
.taa-page h1, .taa-page h2, .taa-page p { margin:0; }
.taa-heading, .taa-actions { display:flex; align-items:center; flex-wrap:wrap; gap:9px; }
.taa-heading { justify-content:space-between; gap:15px; padding:5px 0; }
.taa-heading h1 { color:var(--taa-ink); font-size:clamp(23px,2.3vw,34px); line-height:1.3; }
.taa-heading p { color:var(--taa-muted); margin-top:7px; }
.taa-page .primary-button { color:white; background:var(--taa-blue); border-color:var(--taa-blue); }
.taa-page .primary-button:hover:not(:disabled) { background:#153db0; }
.taa-page .ghost-button { color:#1b457e; border-color:#c5d7ee; }
.taa-card { min-width:0; border:1px solid var(--taa-line); border-radius:13px; background:white; box-shadow:0 6px 20px #173b7310; padding:20px; }
.taa-list-heading { display:flex; align-items:baseline; gap:17px; padding:0 0 16px; border-bottom:1px solid var(--taa-line); }
.taa-list-heading h2 { font-size:22px; color:var(--taa-ink); }
.taa-list-heading span { color:var(--taa-muted); font-size:14px; }
.taa-filters { display:grid; grid-template-columns:minmax(190px,360px) minmax(130px,190px) auto; justify-content:start; align-items:end; gap:16px; padding-block:18px; }
.taa-filters label, .taa-form-grid label { display:grid; gap:6px; min-width:0; font-size:13px; font-weight:700; }
.taa-filters input, .taa-filters select { width:100%; min-width:0; min-height:40px; }
.taa-search { position:relative; }
.taa-search input { padding-inline-start:34px; }
.taa-search svg { position:absolute; top:50%; left:10px; transform:translateY(-50%); width:17px; height:17px; color:#657e9b; pointer-events:none; }
.taa-actions button, .taa-heading button { min-height:40px; }
.taa-table { border:1px solid var(--taa-line); border-radius:9px; }
.taa-table table { min-width:0; table-layout:fixed; }
.taa-table th, .taa-table td { padding:14px 12px; overflow-wrap:anywhere; font-size:14px; }
.taa-table th { background:#eaf2fc; color:#234368; }
.taa-table th:first-child { border-top-left-radius:9px; width:16%; }
.taa-table th:nth-child(2) { width:21%; }
.taa-table th:nth-child(3) { width:17%; }
.taa-table th:nth-child(4) { width:23%; }
.taa-table th:last-child { border-top-right-radius:9px; width:23%; }
.taa-table tr:last-child td { border-bottom:0; }
.taa-table strong { color:var(--taa-ink); }
.taa-table small { color:var(--taa-muted); margin-top:5px; }
.taa-pill { display:inline-flex; gap:5px; align-items:center; padding:4px 8px; color:#52647c; background:#edf1f6; font-weight:700; border-radius:16px; font-size:12px; white-space:nowrap; }
.taa-pill::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.taa-pill[data-state="active"] { color:#166338; background:#e4f7e9; }
.taa-pill[data-state="archived"] { color:#53647d; background:#e5ecf7; }
.taa-table .taa-password-note { color:#905d16; font-size:12px; }
.taa-row-actions .ghost-button { padding:6px 8px; min-height:32px; font-size:12px; }
.taa-more { display:inline-block; position:relative; vertical-align:middle; }
.taa-more summary { display:grid; min-width:33px; min-height:32px; place-items:center; border:1px solid #c5d7ee; border-radius:7px; color:#17428a; font-size:18px; cursor:pointer; }
.taa-more summary::-webkit-details-marker { display:none; }
.taa-more > div { position:absolute; z-index:5; right:0; top:calc(100% + 5px); padding:4px; background:white; border:1px solid var(--taa-line); border-radius:8px; box-shadow:0 7px 22px #16315826; }
.taa-more button { display:block; white-space:nowrap; border:0; background:white; min-height:36px; padding:5px 13px; border-radius:5px; color:var(--taa-ink); }
.taa-more button:hover { background:#edf4ff; }
.taa-more button.danger { color:#a32941; }
.taa-pagination { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-top:18px; font-size:13px; color:var(--taa-muted); }
.taa-page .taa-note { color:var(--taa-muted); font-size:13px; }
.taa-feedback { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:17px 12px; color:var(--taa-muted); background:#f5f8fc; border-radius:8px; }
.taa-feedback.is-error { background:#fff3f4; color:#963347; }
.taa-dialog { width:min(640px,calc(100% - 24px)); }
.taa-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 14px; }
.taa-form-grid input, .taa-form-grid select { width:100%; min-width:0; }
.taa-form-grid small { font-weight:400; color:var(--taa-muted); }
.taa-form-error { padding:10px; margin-top:15px !important; background:#fff2f4; color:#963347; border-radius:7px; }
.main-area:has([data-view="teachingAdminAccounts"].active) .search-box { display:none; }
@media (max-width:1200px) and (min-width:761px) {
  .taa-table td, .taa-table th { padding-inline:8px; }
  .taa-row-actions .ghost-button { margin-bottom:5px; }
}
@media (max-width:760px) {
  .taa-page { gap:14px; }
  .taa-heading > button { width:100%; }
  .taa-card { padding:12px; }
  .taa-list-heading { padding-bottom:12px; }
  .taa-list-heading h2 { font-size:19px; }
  .taa-filters { grid-template-columns:minmax(0,1fr); gap:9px; padding-block:13px; }
  .taa-filters .taa-actions button { flex:1; }
  .taa-table { border:0; }
  .taa-table table, .taa-table tbody { display:block; }
  .taa-table thead { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
  .taa-table tr { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px 8px; border:1px solid var(--taa-line); padding:12px; border-radius:9px; margin-bottom:10px; }
  .taa-table td { display:block; padding:0; min-width:0; border:0; grid-column:1 / -1; }
  .taa-table td.taa-name { grid-column:1; grid-row:1; }
  .taa-table td.taa-status { grid-column:2; grid-row:1; }
  .taa-table td[data-label]::before { content:attr(data-label); display:block; color:var(--taa-muted); margin-bottom:4px; font-size:12px; }
  .taa-row-actions { justify-self:end; }
  .taa-row-actions .ghost-button, .taa-more summary { min-height:42px; padding-inline:10px; }
  .taa-dialog form { padding:16px; }
  .taa-form-grid { grid-template-columns:1fr; }
}
