:root{--tc-green:#116b56;--tc-green-2:#18866b;--tc-ink:#18352e;--tc-muted:#6c817b;--tc-line:#e2ebe7;--tc-soft:#f3f8f5;--tc-gold:#d9a94f;--tc-white:#fff;--tc-shadow:0 20px 60px rgba(18,66,53,.10);}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fbfdfc;color:var(--tc-ink);font-family:Cairo,Arial,sans-serif}.tc-header{height:78px;padding:0 max(5vw,24px);display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fff;border-bottom:1px solid var(--tc-line);position:sticky;top:0;z-index:20}.tc-brand{display:flex;align-items:center;gap:11px;color:inherit;text-decoration:none}.tc-brand-mark{width:43px;height:43px;border-radius:14px;background:#e8f5ef;display:grid;place-items:center;font-size:23px}.tc-brand strong,.tc-brand small{display:block}.tc-brand strong{font-size:16px}.tc-brand small{font-size:11px;color:var(--tc-muted)}.tc-header nav{display:flex;gap:27px}.tc-header nav a,.tc-footer a{color:#526b63;text-decoration:none;font-size:13px;font-weight:700}.tc-header-actions{display:flex;gap:10px}.tc-ghost,.tc-account,.tc-primary,.tc-secondary{border:0;border-radius:12px;padding:11px 18px;font:700 13px Cairo;cursor:pointer}.tc-ghost{background:#eef5f1;color:var(--tc-green)}.tc-account,.tc-primary{background:var(--tc-green);color:#fff}.tc-primary:hover,.tc-account:hover{background:#0b5846}.tc-secondary{display:inline-flex;align-items:center;text-decoration:none;color:var(--tc-green);background:#fff;border:1px solid var(--tc-line)}.tc-hero{min-height:485px;padding:65px max(7vw,28px);display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:50px;background:radial-gradient(circle at 80% 10%,#e1f2e8 0,transparent 38%),linear-gradient(120deg,#f4faf6,#edf7f2)}.tc-kicker{font-size:10px;letter-spacing:2px;color:var(--tc-green-2);font-weight:800}.tc-hero h1{font-size:clamp(32px,4vw,52px);line-height:1.45;margin:15px 0;color:#173d32}.tc-hero h1 em{font-style:normal;color:#16866a}.tc-hero-copy>p{max-width:620px;color:#657b73;line-height:2.1;font-size:15px}.tc-hero-actions{display:flex;gap:12px;margin-top:26px;flex-wrap:wrap}.tc-trust{display:flex;gap:20px;flex-wrap:wrap;margin-top:28px;color:#557168;font-size:11px}.tc-hero-art{height:320px;position:relative;display:grid;place-items:center}.tc-art-glow{position:absolute;width:275px;height:275px;border-radius:50%;background:linear-gradient(140deg,#d3ebdf,#a9d6c0);box-shadow:0 30px 70px #b9d9c8}.tc-art-orbit{z-index:1;width:150px;height:150px;border-radius:42px;display:grid;place-items:center;background:linear-gradient(145deg,#fff,#e8f5ee);font-size:78px;box-shadow:0 22px 50px #5d9d7b45;transform:rotate(-8deg)}.tc-art-card{position:absolute;z-index:2;background:#fff;border:1px solid #e3eee8;border-radius:17px;padding:14px 18px;box-shadow:0 15px 35px #245b4620;display:grid;grid-template-columns:42px auto;column-gap:10px;align-items:center}.tc-art-card span{grid-row:span 2;font-size:28px}.tc-art-card b{font-size:13px}.tc-art-card small{font-size:10px;color:#8a9d95}.tc-art-card-a{top:28px;right:0}.tc-art-card-b{bottom:28px;left:0}.tc-art-caption{position:absolute;bottom:0;font-size:9px;letter-spacing:3px;color:#5b8a74}.tc-benefits{padding:27px max(7vw,28px);display:grid;grid-template-columns:repeat(4,1fr);gap:15px;background:#fff;border-bottom:1px solid var(--tc-line)}.tc-benefits article{display:flex;align-items:center;gap:12px;padding:9px}.tc-benefits article>span{width:43px;height:43px;border-radius:14px;background:#eef7f1;display:grid;place-items:center;font-size:21px}.tc-benefits b,.tc-benefits small{display:block}.tc-benefits b{font-size:13px}.tc-benefits small{font-size:10px;color:var(--tc-muted);margin-top:3px}.tc-section{padding:70px max(7vw,28px)}.tc-section-heading{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:28px}.tc-section h2,.tc-contribute h2,.tc-dashboard h2{font-size:27px;margin:8px 0;color:#193f33}.tc-section-heading p,.tc-contribute p{color:var(--tc-muted);font-size:13px;margin:0}.tc-library-tools{display:flex;gap:9px;flex-wrap:wrap}.tc-library-tools input,.tc-library-tools select{height:43px;border:1px solid var(--tc-line);border-radius:11px;padding:0 13px;font:12px Cairo;background:#fff;min-width:180px}.tc-state{padding:24px;border:1px dashed #cbded3;background:#f6faf7;border-radius:16px;text-align:center;color:#60766d;font-size:13px;line-height:2}.tc-resource-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}.tc-resource-card{background:#fff;border:1px solid var(--tc-line);border-radius:17px;padding:18px;box-shadow:0 8px 25px #173d3208;min-width:0}.tc-resource-top{display:flex;justify-content:space-between;align-items:center}.tc-file-icon{width:45px;height:45px;border-radius:13px;background:#edf6f1;display:grid;place-items:center;font-size:22px}.tc-resource-card h3{font-size:15px;margin:13px 0 5px;overflow-wrap:anywhere}.tc-resource-card p{font-size:11px;line-height:1.8;color:var(--tc-muted);min-height:40px}.tc-resource-meta{display:flex;gap:8px;flex-wrap:wrap;color:#789087;font-size:10px;margin:10px 0}.tc-pill{background:#edf6f1;color:#27765d;padding:4px 9px;border-radius:20px}.tc-resource-actions{display:flex;gap:8px;margin-top:12px}.tc-resource-actions button{flex:1;border:0;border-radius:9px;padding:9px;background:#edf5f0;color:var(--tc-green);font:700 11px Cairo;cursor:pointer}.tc-resource-actions button.danger{background:#fff0ee;color:#b44c43}.tc-contribute{margin:0 max(7vw,28px) 70px;padding:38px 42px;border-radius:24px;background:linear-gradient(115deg,#103f34,#16765d);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:30px}.tc-contribute h2{color:#fff}.tc-contribute p{color:#d3e6dc;max-width:580px;line-height:2}.tc-contribute .tc-kicker{color:#b9dfc8}.tc-contribute .tc-primary{background:#e0b85f;color:#244b3b;margin-top:18px}.tc-file-types{display:flex;gap:9px;flex-wrap:wrap;max-width:270px;justify-content:center}.tc-file-types span{padding:13px 16px;border:1px solid #ffffff45;border-radius:12px;background:#ffffff13;font-size:12px;font-weight:800}.tc-file-types small{width:100%;text-align:center;color:#c9e2d6}.tc-dashboard{padding:55px max(7vw,28px);background:#f3f8f5;border-top:1px solid var(--tc-line)}.tc-dashboard-head{display:flex;justify-content:space-between;align-items:center}.tc-dashboard-head p{color:var(--tc-muted);font-size:12px}.tc-dashboard-tabs{display:flex;gap:8px;border-bottom:1px solid var(--tc-line);margin-top:25px}.tc-dashboard-tabs button,.tc-auth-tabs button{border:0;background:transparent;padding:12px 17px;font:700 12px Cairo;color:#70847b;cursor:pointer;border-bottom:2px solid transparent}.tc-dashboard-tabs button.active,.tc-auth-tabs button.active{color:var(--tc-green);border-color:var(--tc-green)}.tc-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}.tc-admin-grid h3{font-size:15px}.tc-admin-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;background:#fff;border:1px solid var(--tc-line);border-radius:12px;margin:8px 0;font-size:11px}.tc-admin-row button{border:0;border-radius:8px;background:#e8f4ed;color:#17634f;padding:7px 10px;font:700 11px Cairo;cursor:pointer}.tc-admin-row button.reject{background:#fff0ed;color:#a4433c}.tc-footer{padding:26px max(7vw,28px);display:flex;align-items:center;justify-content:space-between;gap:18px;color:#71867d;font-size:11px;background:#fff;border-top:1px solid var(--tc-line)}.tc-dialog{border:0;border-radius:22px;padding:0;width:min(490px,calc(100% - 28px));max-height:90vh;overflow:auto;box-shadow:0 25px 90px #092d2360}.tc-dialog::backdrop{background:#0a2a22a6;backdrop-filter:blur(4px)}.tc-dialog-inner{padding:30px}.tc-dialog-inner h2{font-size:22px;margin:7px 0 18px}.tc-dialog-close{float:left;border:0;background:#edf4ef;border-radius:50%;width:32px;height:32px;font-size:22px;cursor:pointer}.tc-dialog label{display:block;font-size:11px;font-weight:700;margin:12px 0;color:#405e53}.tc-dialog input:not([type=checkbox]),.tc-dialog select,.tc-dialog textarea{display:block;width:100%;margin-top:6px;padding:11px 12px;border:1px solid var(--tc-line);border-radius:10px;font:12px Cairo;background:#fff;color:var(--tc-ink)}.tc-dialog .tc-primary{width:100%;margin-top:12px}.tc-auth-tabs{display:flex;border-bottom:1px solid var(--tc-line);margin-bottom:15px}.tc-dialog-note,.tc-file-picker small{font-size:10px;line-height:1.9;color:#7b8e86}.tc-message{font-size:11px;line-height:1.8;color:#b24b40;min-height:18px}.tc-check{display:flex!important;align-items:center;gap:9px}.tc-file-picker{padding:14px;border:1px dashed #bcd6c8;border-radius:12px}.tc-file-picker input{margin-top:8px}.tc-file-picker small{display:block}.tc-file-picker small.tc-file-hint-error{color:#b23e35;font-weight:700}.tc-file-picker small.tc-file-hint-valid{color:#18734f;font-weight:700}.tc-check input{accent-color:var(--tc-green)}[hidden]{display:none!important}@media(max-width:900px){.tc-header nav{display:none}.tc-hero{grid-template-columns:1fr;padding-top:48px}.tc-hero-art{height:270px}.tc-benefits{grid-template-columns:repeat(2,1fr)}.tc-section-heading{align-items:stretch;flex-direction:column}.tc-resource-grid{grid-template-columns:repeat(2,1fr)}.tc-contribute{align-items:flex-start;flex-direction:column}.tc-admin-grid{grid-template-columns:1fr}}@media(max-width:560px){.tc-header{height:68px;padding:0 15px}.tc-header-actions{gap:5px}.tc-ghost,.tc-account{padding:9px 10px;font-size:11px}.tc-brand strong{font-size:13px}.tc-hero{padding:40px 22px 25px;gap:15px}.tc-hero h1{font-size:32px}.tc-hero-copy>p{font-size:13px}.tc-hero-art{height:235px}.tc-art-glow{width:205px;height:205px}.tc-art-orbit{width:115px;height:115px;font-size:60px}.tc-art-card{padding:10px 12px}.tc-benefits{padding:18px;gap:5px}.tc-benefits article{padding:6px;gap:8px}.tc-benefits article>span{width:35px;height:35px;font-size:17px}.tc-benefits small{font-size:9px}.tc-section{padding:45px 18px}.tc-library-tools{display:grid;grid-template-columns:1fr}.tc-library-tools input,.tc-library-tools select{width:100%}.tc-resource-grid{grid-template-columns:1fr}.tc-contribute{margin:0 15px 45px;padding:26px 22px}.tc-dashboard{padding:35px 17px}.tc-footer{padding:22px 18px;flex-wrap:wrap}.tc-dialog-inner{padding:24px 20px}.tc-trust{gap:9px}.tc-file-types{justify-content:flex-start}}
.tc-load-more{display:block;margin:18px auto 0;min-width:190px}.tc-load-more[hidden]{display:none!important}

/* Resource publication and sharing states remain distinct and readable. */
.tc-resource-status{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:20px;font-size:10px;font-weight:800;line-height:1.7}
.tc-resource-status-shared{background:#e8f5ed;color:#176b4e}
.tc-resource-status-private{background:#f0f2f5;color:#526174}
.tc-resource-status-hidden{background:#fff0e8;color:#9b4b24}

/* Teacher-owned resource filters */
.tc-my-tools{display:flex;align-items:center;gap:10px;margin:18px 0 8px;color:var(--tc-muted);font-size:12px;font-weight:700}.tc-my-tools select,.tc-my-tools input{min-width:190px;padding:10px 12px;border:1px solid var(--tc-line);border-radius:10px;background:#fff;color:var(--tc-ink);font:12px Cairo,Arial,sans-serif}.tc-my-tools input{min-width:240px}@media(max-width:560px){.tc-my-tools{align-items:stretch;flex-direction:column}.tc-my-tools select,.tc-my-tools input{width:100%}}

/* Clear action for the teacher's personal-resource search */
.tc-my-search-clear{border:1px solid var(--tc-line);border-radius:10px;padding:9px 12px;background:#fff;color:var(--tc-green);font:700 11px Cairo,Arial,sans-serif;cursor:pointer;white-space:nowrap}
.tc-my-search-clear:hover{background:#edf6f1}
.tc-my-search-clear:focus-visible{outline:3px solid var(--tc-gold);outline-offset:2px}
@media(max-width:560px){.tc-my-search-clear{width:100%}}

/* One-step reset for active resource filters */
.tc-filter-reset{border:1px solid #cfe3d8;border-radius:10px;padding:9px 13px;background:#edf7f1;color:#17634f;font:700 11px Cairo,Arial,sans-serif;cursor:pointer;white-space:nowrap}
.tc-filter-reset:hover{background:#dcefe4}
.tc-filter-reset:focus-visible{outline:3px solid var(--tc-gold);outline-offset:2px}
@media(max-width:560px){.tc-filter-reset{width:100%}}

/* Screen-reader-only live status text for resource loading and search results */
.tc-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}


/* Visible count for the currently loaded shared-library results */
.tc-library-results-summary{margin:0 0 12px;color:var(--tc-muted);font-size:12px;font-weight:700}


/* Keep long teacher-resource metadata and actions inside their cards. */
.tc-resource-card{display:flex;flex-direction:column;min-width:0;overflow:hidden}
.tc-resource-card h3,.tc-resource-card p{overflow-wrap:anywhere;word-break:normal}
.tc-resource-card p{margin:5px 0 12px}
.tc-resource-meta{min-width:0;align-items:flex-start}
.tc-resource-meta>span{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word}
.tc-resource-meta .tc-resource-status{flex:0 0 auto;white-space:normal}
.tc-resource-actions{flex-wrap:wrap}
.tc-resource-actions button{min-width:0;overflow-wrap:anywhere}
@media(max-width:560px){
  .tc-resource-card{padding:16px;border-radius:15px}
  .tc-resource-meta{gap:6px 10px;line-height:1.7}
  .tc-resource-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:7px}
  .tc-resource-actions button{width:100%;min-height:40px;padding:9px 7px}
}
.tc-resource-actions button:focus-visible{outline:3px solid var(--tc-gold);outline-offset:2px}

/* Consistent keyboard focus across the teacher community interface. */
.tc-header a:focus-visible,
.tc-footer a:focus-visible,
.tc-dialog button:focus-visible,
.tc-dashboard-tabs button:focus-visible,
.tc-admin-row button:focus-visible,
.tc-resource-actions button:focus-visible,
.tc-primary:focus-visible,
.tc-secondary:focus-visible,
.tc-account:focus-visible,
.tc-ghost:focus-visible,
.tc-library-tools button:focus-visible,
.tc-library-tools input:focus-visible,
.tc-library-tools select:focus-visible,
.tc-my-tools button:focus-visible,
.tc-my-tools input:focus-visible,
.tc-my-tools select:focus-visible,
.tc-dialog input:focus-visible,
.tc-dialog select:focus-visible,
.tc-dialog textarea:focus-visible {
  outline: 3px solid var(--tc-gold);
  outline-offset: 3px;
}
button:disabled {
  cursor: not-allowed;
  opacity: .65;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Improve resource-card hierarchy without changing the existing card layout. */
.tc-resource-top{gap:10px;align-items:flex-start}
.tc-resource-top .tc-pill{max-width:calc(100% - 55px);text-align:center;white-space:normal;overflow-wrap:anywhere;line-height:1.7}
.tc-resource-card h3,.tc-resource-card p{min-width:0;overflow-wrap:anywhere;word-break:normal}
.tc-resource-card h3{line-height:1.8}
.tc-resource-card p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden;min-height:0}
.tc-resource-meta{line-height:1.8}
.tc-resource-actions{margin-top:auto;padding-top:12px}
.tc-resource-actions button{white-space:normal;line-height:1.7}
@media(max-width:560px){
  .tc-resource-card h3{font-size:14px}
  .tc-resource-card p{-webkit-line-clamp:5;line-clamp:5}
  .tc-resource-meta{gap:6px 9px}
}


/* Admin resource moderation filters */
.tc-admin-resource-tools{display:grid;grid-template-columns:minmax(180px,2fr) repeat(2,minmax(135px,1fr)) auto;gap:8px;margin:12px 0}
.tc-admin-resource-tools input,.tc-admin-resource-tools select{min-width:0;width:100%;padding:9px 10px;border:1px solid var(--tc-line);border-radius:9px;background:#fff;color:var(--tc-ink);font:11px Cairo,Arial,sans-serif}
.tc-admin-resource-tools button{white-space:nowrap}
.tc-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){.tc-admin-resource-tools{grid-template-columns:1fr 1fr}.tc-admin-resource-tools input{grid-column:1/-1}.tc-admin-resource-tools button{grid-column:1/-1}}

/* Admin moderation resource details */
.tc-admin-resource-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(170px,1fr) auto;align-items:center;gap:14px;padding:14px;margin:9px 0;background:#fff;border:1px solid var(--tc-line);border-radius:13px;min-width:0}
.tc-admin-resource-main{display:grid;gap:4px;min-width:0}
.tc-admin-resource-main b{font-size:12px;overflow-wrap:anywhere}
.tc-admin-resource-main>span,.tc-admin-resource-main small{font-size:10px;color:var(--tc-muted);overflow-wrap:anywhere}
.tc-admin-resource-meta{display:flex;gap:7px;flex-wrap:wrap;align-items:center;font-size:10px;color:var(--tc-muted)}
.tc-admin-resource-status{padding:3px 8px;border-radius:20px;background:#edf5f0;color:#17634f;font-weight:700}
.tc-admin-resource-status.is-hidden{background:#fff0ed;color:#a4433c}
.tc-admin-resource-status.is-private{background:#f1f3f5;color:#596873}
.tc-admin-resource-actions{display:flex;gap:6px;flex-wrap:wrap}
.tc-admin-resource-actions button{border:0;border-radius:8px;background:#e8f4ed;color:#17634f;padding:7px 10px;font:700 10px Cairo;cursor:pointer}
.tc-admin-resource-actions button.danger{background:#fff0ed;color:#a4433c}
@media(max-width:760px){.tc-admin-resource-row{grid-template-columns:1fr;gap:9px}.tc-admin-resource-actions button{flex:1}}


/* Admin-only audit activity timeline */
.tc-admin-activity-section{margin-top:28px;padding-top:22px;border-top:1px solid var(--tc-line)}
.tc-admin-activity-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.tc-admin-activity-heading h3{margin:0 0 5px;font-size:16px;color:var(--tc-ink)}
.tc-admin-activity-heading p{margin:0;color:var(--tc-muted);font-size:11px;line-height:1.8}
.tc-activity-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:start;gap:12px;padding:13px;margin:8px 0;background:#fff;border:1px solid var(--tc-line);border-radius:12px;min-width:0}
.tc-activity-icon{width:36px;height:36px;border-radius:11px;background:#edf6f1;color:var(--tc-green);display:grid;place-items:center;font-size:21px}
.tc-activity-main{display:grid;gap:4px;min-width:0}
.tc-activity-main b{font-size:12px;color:var(--tc-green)}
.tc-activity-main>span{font-size:12px;font-weight:700;overflow-wrap:anywhere}
.tc-activity-main small,.tc-activity-row time{font-size:10px;color:var(--tc-muted);line-height:1.8;overflow-wrap:anywhere}
.tc-activity-row time{white-space:nowrap;text-align:left}
.tc-activity-details{padding-top:2px}
@media(max-width:560px){.tc-admin-activity-heading{align-items:flex-start;flex-direction:column}.tc-activity-row{grid-template-columns:32px minmax(0,1fr)}.tc-activity-row time{grid-column:2;text-align:right}.tc-activity-icon{width:32px;height:32px}}

.tc-admin-activity-filters{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0 16px}
.tc-admin-activity-filters input,.tc-admin-activity-filters select{height:41px;min-width:190px;max-width:100%;padding:0 12px;border:1px solid var(--tc-line);border-radius:10px;background:#fff;color:var(--tc-ink);font:12px Cairo,Arial,sans-serif}
.tc-admin-activity-filters input{flex:1}
@media(max-width:560px){.tc-admin-activity-filters{display:grid;grid-template-columns:1fr}.tc-admin-activity-filters input,.tc-admin-activity-filters select{width:100%;min-width:0}}

.tc-admin-activity-actions{display:flex;gap:8px;flex-wrap:wrap}
.tc-admin-activity-export-status{min-height:18px;margin:4px 0;color:var(--tc-muted);font-size:11px;line-height:1.7}
#tc-admin-activity-export:disabled{opacity:.6;cursor:wait}

/* Teacher personal resource overview */
.tc-my-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}
.tc-my-stats article{display:grid;gap:5px;min-width:0;padding:14px 16px;border:1px solid var(--tc-line);border-radius:13px;background:linear-gradient(145deg,#fff,#f5faf7)}
.tc-my-stats article span{font-size:11px;color:var(--tc-muted);line-height:1.7}
.tc-my-stats article strong{font-size:24px;line-height:1.3;color:var(--tc-green);font-weight:800;font-variant-numeric:tabular-nums}
@media(max-width:760px){.tc-my-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.tc-my-stats article{padding:11px 13px}.tc-my-stats article strong{font-size:21px}}


/* Personal resource CSV export feedback */
.tc-my-export-status{min-height:18px;margin:5px 0 10px;color:var(--tc-muted);font-size:11px;line-height:1.7}
#tc-my-export:disabled{opacity:.6;cursor:wait}



/* Teacher community task navigation — visual cards matching the student space. */
.tc-dashboard-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  border:0;
  margin-top:25px;
}
.tc-dashboard-tabs button{
  flex:1 1 190px;
  min-height:86px;
  padding:16px 20px;
  border:1px solid rgba(255,255,255,.42);
  border-radius:19px;
  background:linear-gradient(115deg,rgba(19,67,54,.96),rgba(105,145,128,.88));
  color:#fff;
  font:800 14px Cairo,Arial,sans-serif;
  text-align:center;
  cursor:pointer;
  box-shadow:0 9px 22px rgba(20,55,43,.13);
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}
.tc-dashboard-tabs button:hover{
  transform:translateY(-2px);
  box-shadow:0 13px 26px rgba(20,55,43,.18);
}
.tc-dashboard-tabs button.active{
  background:linear-gradient(115deg,#103d32,#2d7259);
  color:#fff;
  border-color:rgba(255,255,255,.62);
  box-shadow:0 10px 25px rgba(17,74,57,.24);
}
.tc-dashboard-tabs button:focus-visible,
.tc-primary:focus-visible,
.tc-secondary:focus-visible,
.tc-account:focus-visible,
.tc-ghost:focus-visible{
  outline:3px solid #a9d8b7;
  outline-offset:3px;
}
.tc-hero-actions .tc-primary,
.tc-hero-actions .tc-secondary,
.tc-dashboard-head .tc-primary{
  min-height:48px;
  border-radius:15px;
  padding:12px 22px;
  font-weight:800;
  box-shadow:0 7px 18px rgba(20,55,43,.13);
}
.tc-hero-actions .tc-primary,
.tc-dashboard-head .tc-primary{
  background:linear-gradient(115deg,#174a3c,#43836a);
}
.tc-hero-actions .tc-primary:hover,
.tc-dashboard-head .tc-primary:hover{
  background:linear-gradient(115deg,#103c31,#2f7058);
  transform:translateY(-1px);
}
.tc-hero-actions .tc-secondary{
  background:linear-gradient(120deg,#f4faf6,#e5f0e9);
  color:#1e5d49;
  border:1px solid rgba(45,90,71,.18);
}
@media(max-width:560px){
  .tc-dashboard-tabs{gap:9px}
  .tc-dashboard-tabs button{flex:1 1 calc(50% - 9px);min-height:72px;padding:12px 10px;font-size:12px}
  .tc-hero-actions .tc-primary,.tc-hero-actions .tc-secondary{flex:1 1 100%;justify-content:center}
}

/* Keep the additional audit actor filter aligned and responsive. */
.tc-admin-activity-filters input{flex:1 1 220px;min-width:190px}
@media(max-width:560px){.tc-admin-activity-filters input{min-width:0}}


/* Clear, keyboard-accessible moderation controls for the teacher-community owner. */
.tc-admin-resource-row{
  box-shadow:0 5px 16px rgba(24,53,46,.045);
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.tc-admin-resource-row:hover{
  border-color:#b9d9c8;
  box-shadow:0 9px 22px rgba(24,83,62,.09);
  transform:translateY(-1px);
}
.tc-admin-resource-status{
  display:inline-flex;
  align-items:center;
  gap:5px;
  line-height:1.7;
}
.tc-admin-resource-status.is-shared{background:#e5f4e9;color:#155d43}
.tc-admin-resource-status.is-hidden{background:#fff0e8;color:#93451f}
.tc-admin-resource-status.is-private{background:#eff2f5;color:#4d5c6b}
.tc-admin-resource-actions button:focus-visible,
.tc-admin-resource-tools button:focus-visible,
.tc-admin-resource-tools input:focus-visible,
.tc-admin-resource-tools select:focus-visible{
  outline:3px solid var(--tc-gold);
  outline-offset:2px;
}
@media(max-width:760px){
  .tc-admin-resource-row{padding:15px;border-radius:15px}
  .tc-admin-resource-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr))}
  .tc-admin-resource-actions button{min-height:40px}
}
@media(prefers-reduced-motion:reduce){
  .tc-admin-resource-row{transition:none}
}

/* Category navigation hub */
.tc-category-hub{padding:30px 24px 42px;background:#f5faf5;border:1px solid #dce9de;border-radius:24px;margin:28px auto}
.tc-category-heading{text-align:center;margin:0 auto 22px;max-width:720px}
.tc-category-heading h2{margin:8px 0;color:#174c35;font-size:clamp(1.35rem,3vw,2rem)}
.tc-category-heading p{color:#5a7462;line-height:1.8;margin:0}
.tc-category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:13px}
.tc-cat-card{display:flex;flex-direction:column;gap:9px;padding:18px;background:#fff;border:1px solid #dce9de;border-radius:17px;text-decoration:none;color:#214b33;min-height:145px;transition:transform .18s,box-shadow .18s,border-color .18s}
.tc-cat-card:hover{transform:translateY(-3px);border-color:#8bb894;box-shadow:0 8px 20px #214b3310}
.tc-cat-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:#e9f4ea;font-size:1.4rem}
.tc-cat-title{font-weight:900;font-size:1.05rem}
.tc-cat-desc{font-size:.87rem;color:#58715e;line-height:1.65}
.tc-cat-arrow{margin-top:auto;font-weight:800;color:#2d8050;font-size:.86rem}
.tc-cat-card:focus-visible{outline:3px solid #7bb68a;outline-offset:3px}
@media(max-width:560px){.tc-category-hub{padding:20px 14px}.tc-category-grid{grid-template-columns:1fr 1fr}.tc-cat-card{padding:14px;min-height:135px}}


/* Teacher workspace navigation: dashboard cards consistent with the admin and student spaces. */
.tc-dashboard-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:12px;margin:25px 0 20px;padding:0;border:0}
.tc-dashboard-tabs button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:76px;padding:14px 16px;border:1px solid rgba(255,255,255,.42);border-radius:17px;background:linear-gradient(115deg,#174a3c,#638b76);color:#fff;font:800 14px Cairo,Arial,sans-serif;line-height:1.7;white-space:normal;box-shadow:0 8px 20px rgba(20,55,43,.13)}
.tc-dashboard-tabs button:hover{background:linear-gradient(115deg,#103c31,#477a66);color:#fff;transform:translateY(-2px);box-shadow:0 12px 24px rgba(20,55,43,.18)}
.tc-dashboard-tabs button.active{background:linear-gradient(115deg,#103d32,#2d7259);color:#fff;border-color:#b8d6c2;box-shadow:0 10px 24px rgba(17,74,57,.24)}
@media(max-width:560px){.tc-dashboard-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.tc-dashboard-tabs button{min-height:70px;padding:11px 8px;font-size:12px}}
@media(max-width:360px){.tc-dashboard-tabs{grid-template-columns:1fr}}

/* Professional teacher profile — additive community module. */
.tc-profile-form{max-width:900px;margin:0 auto;padding:clamp(18px,4vw,34px);border:1px solid var(--tc-line);border-radius:22px;background:#fff;box-shadow:var(--tc-shadow)}
.tc-profile-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;padding-bottom:17px;border-bottom:1px solid var(--tc-line)}
.tc-profile-intro h3{margin:7px 0;color:var(--tc-ink);font-size:21px}
.tc-profile-intro p{margin:0;color:var(--tc-muted);font-size:12px;line-height:1.9}
.tc-profile-lock{display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:15px;background:var(--tc-soft);font-size:22px}
.tc-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
.tc-profile-form label{display:block;margin:10px 0;color:#405e53;font-size:12px;font-weight:700}
.tc-profile-form label small{color:var(--tc-muted);font-size:10px;font-weight:400}
.tc-profile-form input:not([type=checkbox]),.tc-profile-form textarea{display:block;width:100%;margin-top:6px;padding:11px 12px;border:1px solid var(--tc-line);border-radius:10px;background:#fff;color:var(--tc-ink);font:12px Cairo,Arial,sans-serif}
.tc-profile-form textarea{resize:vertical;line-height:1.8}
.tc-profile-form :is(input,textarea,button):focus-visible{outline:3px solid #48a78266;outline-offset:2px}
.tc-profile-wide{grid-column:1/-1}
.tc-profile-form fieldset{min-width:0;margin:12px 0;padding:13px 15px;border:1px solid var(--tc-line);border-radius:13px}
.tc-profile-form legend{padding:0 7px;color:#405e53;font-size:12px;font-weight:800}
.tc-profile-checks{display:flex;flex-wrap:wrap;gap:8px 18px}
.tc-profile-checks label{display:flex;align-items:center;gap:7px;margin:2px 0;font-size:11px;font-weight:600}
.tc-profile-checks input{accent-color:var(--tc-green)}
.tc-profile-form .tc-primary{min-width:190px}
@media(max-width:560px){.tc-profile-grid{grid-template-columns:1fr}.tc-profile-wide{grid-column:auto}.tc-profile-form .tc-primary{width:100%}.tc-profile-intro h3{font-size:18px}}

/* Resource pedagogy facets and private favorites. */
.tc-resource-facets{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.tc-resource-facet{display:inline-flex;max-width:100%;padding:4px 9px;border:1px solid #dcebe1;border-radius:999px;background:#f2f8f3;color:#35684f;font-size:10px;line-height:1.6;overflow-wrap:anywhere}
.tc-resource-actions .tc-favorite-button{background:#fff7e5;color:#76571c;border:1px solid #f0dfb5}
.tc-resource-actions .tc-favorite-button.is-active{background:#f7edcf;color:#6e511a;border-color:#e6d49d}
.tc-my-stats{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
.tc-favorites-heading{margin:12px 0}
.tc-favorites-heading h3{margin:6px 0;color:var(--tc-ink)}
.tc-favorites-heading p{color:var(--tc-muted);font-size:12px}
#tc-school-year-filter{max-width:190px}
@media(max-width:560px){#tc-school-year-filter{max-width:none}.tc-my-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Opt-in teacher directory, retained alongside the resource library. */
.tc-directory-section{padding:12px 0}
.tc-directory-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px}
.tc-directory-heading h3{margin:6px 0;font-size:1.45rem}
.tc-directory-heading p{margin:0;color:#687a73}
.tc-directory-heading input{width:min(360px,100%);padding:12px 14px;border:1px solid #d4e1dc;border-radius:12px;font:inherit}
.tc-directory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-top:16px}
.tc-directory-card{padding:20px;border:1px solid #e0e9e5;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(20,65,50,.06);min-width:0}
.tc-directory-avatar{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#e9f5ef;font-size:24px}
.tc-directory-card h3{margin:12px 0 4px;font-size:1.1rem;color:#174f40}
.tc-directory-title,.tc-directory-region{margin:4px 0;color:#60736b;font-size:.92rem}
.tc-directory-bio{margin:12px 0;color:#344b42;line-height:1.8;overflow-wrap:anywhere}
.tc-directory-levels{margin:10px 0;color:#176b54;font-size:.85rem;font-weight:700}
.tc-directory-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.tc-directory-chip{padding:5px 9px;border-radius:999px;background:#eff6f2;color:#426257;font-size:.78rem}


/* Privacy-first opt-in profile visibility control. */
.tc-profile-visibility{display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid #b8d9ce;border-radius:14px;background:#f1faf6;margin:18px 0;cursor:pointer}
.tc-profile-visibility input{width:20px;height:20px;flex:0 0 auto;margin-top:3px;accent-color:#176b54}
.tc-profile-visibility span{display:grid;gap:5px}
.tc-profile-visibility strong{color:#145a48}
.tc-profile-visibility small{color:#52665f;line-height:1.7}

/* Live resource counts on category cards */
.tc-cat-count{display:inline-flex;align-items:center;justify-content:center;justify-self:start;margin-top:10px;padding:4px 10px;border:1px solid #dcebe4;border-radius:999px;background:#f1f8f4;color:#176b54;font-size:.78rem;font-weight:800;line-height:1.5}
.tc-cat-card{align-content:start}

/* Category sub-navigation: level-based and general-resource browsing */
.tc-resource-scope-nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 16px;padding:13px 15px;border:1px solid #dce9e1;border-radius:14px;background:#f5faf7}
.tc-resource-scope-label{width:100%;color:#45685a;font-size:11px;font-weight:800}
.tc-resource-scope-nav button{border:1px solid #d5e5da;border-radius:999px;background:#fff;color:#315b48;padding:8px 13px;font:700 11px Cairo,Arial,sans-serif;cursor:pointer;transition:background .15s,border-color .15s}
.tc-resource-scope-nav button:hover{border-color:#82b596;background:#edf7f0}
.tc-resource-scope-nav button.active{border-color:#176b54;background:#176b54;color:#fff;box-shadow:0 3px 9px #176b5422}
.tc-resource-scope-nav button:focus-visible{outline:3px solid #d9a94f;outline-offset:2px}
@media(max-width:560px){.tc-resource-scope-nav{gap:7px;padding:11px}.tc-resource-scope-nav button{flex:1 1 calc(50% - 7px);white-space:normal;line-height:1.6}.tc-resource-scope-nav button:last-child{flex-basis:100%}}


/* Stream and language quick navigation for the shared teacher library */
.tc-resource-facet-nav{display:grid;gap:12px;margin:0 0 18px;padding:14px 16px;border:1px solid #dce9e4;border-radius:16px;background:#f8fbf9}
.tc-facet-group{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.tc-facet-label{min-width:58px;color:#315c4d;font-size:.88rem;font-weight:800}
.tc-facet-group button{border:1px solid #d5e4dc;border-radius:999px;background:#fff;color:#35594b;padding:8px 13px;font:inherit;font-size:.86rem;cursor:pointer;transition:background .18s ease,border-color .18s ease,color .18s ease}
.tc-facet-group button:hover{border-color:#78a995}
.tc-facet-group button.active{border-color:#176b54;background:#176b54;color:#fff}
.tc-facet-group button:focus-visible{outline:3px solid #9acdb8;outline-offset:2px}
@media(max-width:640px){.tc-resource-facet-nav{padding:12px}.tc-facet-group{align-items:flex-start}.tc-facet-label{width:100%;min-width:0}.tc-facet-group button{padding:7px 10px;font-size:.82rem}}
