/* Teacher Home shares the student hub's open sections and compact resource tiles. */
.tw-teacher-home{max-width:1100px;margin:0 auto;padding:8px 0 32px;--home-blue:#2563eb;--home-violet:#7c3aed;--home-green:#15803d;--home-amber:#b45309;--home-line:color-mix(in srgb,var(--line-subtle) 65%,transparent)}
.tw-teacher-home-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}
.tw-home-eyebrow{display:block;color:var(--text-muted);font-size:10px;font-weight:800;letter-spacing:.16em;margin-bottom:9px}
.tw-teacher-home-intro h1{font-size:clamp(1.65rem,2.7vw,2.15rem);letter-spacing:-.045em;line-height:1.2;margin:0 0 7px}
.tw-teacher-home-intro h1 i{font-size:.7em;color:#f59e0b;vertical-align:baseline;transform:rotate(-15deg);margin-left:4px}
.tw-teacher-home-intro p{font-size:13px;color:var(--text-muted);margin:0}
.tw-home-date{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;color:var(--text-muted);font-size:12px}
.tw-teacher-home .tw-home-account-note{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text-secondary);margin:-8px 0 20px}
.tw-teacher-home-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) 230px;align-items:center;gap:28px;padding:32px 36px;margin-bottom:22px;min-height:244px;border-radius:22px;border:1px solid color-mix(in srgb,var(--accent-primary) 18%,var(--surface-bg));background:linear-gradient(115deg,var(--surface-bg) 5%,color-mix(in srgb,var(--accent-primary) 8%,var(--surface-bg)) 100%);box-shadow:0 4px 20px rgba(29,78,216,.04);overflow:hidden}
.tw-teacher-home-hero::after{content:'';position:absolute;z-index:-1;right:-75px;top:-145px;width:430px;height:430px;border:1px solid color-mix(in srgb,var(--accent-primary) 9%,transparent);border-radius:50%;box-shadow:0 0 0 42px color-mix(in srgb,var(--accent-primary) 3%,transparent),0 0 0 85px color-mix(in srgb,var(--accent-primary) 2%,transparent);pointer-events:none}
.tw-home-hero-label{display:inline-flex;align-items:center;gap:8px;color:var(--accent-primary);font-size:11px;font-weight:800;margin-bottom:14px}
.tw-home-hero-label i{font-size:14px}
.tw-teacher-home-focus h2{max-width:530px;font-size:clamp(1.65rem,3vw,2.25rem);letter-spacing:-.045em;line-height:1.18;margin:0 0 10px;text-wrap:balance}
.tw-teacher-home-focus p{max-width:480px;margin:0 0 22px;font-size:13px;color:var(--text-secondary);line-height:1.6}
.tw-teacher-home-cta{display:inline-flex;align-items:center;justify-content:center;gap:14px;padding:11px 17px;min-height:44px;background:var(--accent-primary);color:#fff!important;font-size:12px;font-weight:700;border-radius:10px;box-shadow:0 3px 8px rgba(29,78,216,.16);transition:background .18s,transform .18s}
.tw-teacher-home-cta:hover{background:var(--accent-primary-hover);transform:translateY(-1px)}
.tw-teacher-home-impact{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px 0 12px 24px;border-left:1px solid color-mix(in srgb,var(--accent-primary) 14%,transparent);text-align:center}
.tw-home-impact-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:var(--surface-bg);color:var(--accent-primary);font-size:21px;box-shadow:0 4px 14px rgba(29,78,216,.08);transform:rotate(-8deg);margin-bottom:12px}
.tw-teacher-home-impact strong{font-family:var(--font-heading);font-size:3.6rem;font-weight:700;line-height:1;letter-spacing:-.07em;color:var(--accent-primary)}
.tw-teacher-home-impact p{font-size:11px;color:var(--text-secondary);margin:8px 0 0}
.tw-home-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:20px 0;background:var(--surface-bg);border:1px solid var(--home-line);border-radius:16px;margin-bottom:26px}
.tw-home-metric{display:flex;align-items:center;gap:12px;padding:2px 22px;border-right:1px solid var(--home-line);min-width:0}
.tw-home-metric:last-child{border-right:0}
.tw-home-metric>span:last-child{min-width:0}
.tw-home-metric strong{display:block;font-family:var(--font-heading);font-size:clamp(1.2rem,2vw,1.65rem);line-height:1.25;letter-spacing:-.04em;overflow-wrap:anywhere}
.tw-home-metric small{display:block;font-size:11px;color:var(--text-muted);margin-top:4px}
.tw-home-metric:hover strong{color:var(--accent-primary)}
.tw-home-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;font-size:16px;flex-shrink:0;color:var(--home-blue);background:color-mix(in srgb,var(--home-blue) 9%,var(--surface-bg))}
.tw-home-icon--violet{color:var(--home-violet);background:color-mix(in srgb,var(--home-violet) 9%,var(--surface-bg))}
.tw-home-icon--green{color:var(--home-green);background:color-mix(in srgb,var(--home-green) 9%,var(--surface-bg))}
.tw-home-icon--amber{color:var(--home-amber);background:color-mix(in srgb,var(--home-amber) 9%,var(--surface-bg))}
.tw-home-setup{background:var(--surface-bg);border:1px solid var(--home-line);border-radius:12px;margin-bottom:32px;padding:0 18px}
.tw-home-setup summary{display:flex;align-items:center;gap:12px;min-height:66px;cursor:pointer;list-style:none}
.tw-home-setup summary::-webkit-details-marker{display:none}
.tw-home-setup summary>.tw-home-icon{width:32px;height:32px;font-size:13px;border-radius:9px}
.tw-home-setup-title{font-size:12px;font-weight:700;margin-right:auto}
.tw-home-setup-track{width:100px;height:5px;border-radius:20px;background:var(--surface-muted);overflow:hidden}
.tw-home-setup-track>span{display:block;height:100%;background:var(--accent-primary);border-radius:inherit}
.tw-home-setup-count{font-size:11px;color:var(--text-muted)}
.tw-home-setup summary>.fa-chevron-down{font-size:10px;color:var(--text-muted);transition:transform .2s}
.tw-home-setup[open] summary>.fa-chevron-down{transform:rotate(180deg)}
.tw-home-setup-steps{display:grid;grid-template-columns:1fr 1fr;gap:0 22px;border-top:1px solid var(--home-line);padding:8px 0 12px}
.tw-home-setup-steps a{display:flex;align-items:center;gap:10px;min-height:44px;font-size:12px}
.tw-home-setup-steps a>i:first-child{color:var(--accent-primary);width:18px;text-align:center}
.tw-home-setup-steps a>span{flex:1}
.tw-home-setup-steps a>i:last-child{font-size:10px;color:var(--text-muted)}
.tw-teacher-home-content{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:start;gap:44px;margin:34px 0 38px}
.tw-teacher-home-classes,.tw-teacher-home-questions{min-width:0;background:transparent;border:0;border-radius:0;padding:0;box-shadow:none}
.tw-teacher-home-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;margin-bottom:12px;padding-bottom:14px;border-bottom:1px solid var(--home-line)}
.tw-teacher-home-section-head h2,.tw-home-tools h2{font-size:1.05rem;letter-spacing:-.025em;margin:0;display:flex;align-items:center;gap:9px}
.tw-teacher-home-section-head h2>i{color:var(--accent-primary);font-size:15px}
.tw-teacher-home-questions .tw-teacher-home-section-head h2>i{color:var(--home-green)}
.tw-teacher-home-section-head>a{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:700;color:var(--accent-primary);white-space:nowrap;min-height:32px}
.tw-teacher-home-section-head>a i{font-size:10px}
.tw-home-count{display:grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:7px;background:var(--surface-muted);color:var(--text-muted);font-family:var(--font-body);font-size:10px}
.tw-teacher-home .tw-dash-list,.tw-teacher-home .tw-dash-activity-list{border-top:0}
.tw-teacher-home .tw-dash-class{display:grid;grid-template-columns:40px minmax(0,1fr) auto 12px;gap:12px;align-items:center;padding:17px 0;border-bottom:1px solid var(--home-line)}
.tw-teacher-home .tw-dash-class:last-child{border-bottom:0}
.tw-teacher-home .tw-dash-class-copy strong{font-size:13px}
.tw-teacher-home .tw-dash-class-copy small{font-size:11px;color:var(--text-muted)}
.tw-teacher-home .tw-dash-class>.tw-i{font-size:11px;color:var(--text-muted)}
.tw-teacher-home .tw-dash-class:hover strong{color:var(--accent-primary)}
.tw-teacher-home .tw-tag{font-size:9px;padding:4px 7px}
.tw-home-empty{text-align:center;padding:28px 12px 12px}
.tw-home-empty-art{display:grid;place-items:center;position:relative;width:66px;height:62px;border-radius:22px;margin:0 auto 16px;background:color-mix(in srgb,var(--home-violet) 7%,var(--surface-bg));color:var(--home-violet);transform:rotate(-5deg)}
.tw-home-empty-art>i:first-child{font-size:26px}
.tw-home-empty-art>i:last-child{position:absolute;top:-3px;right:-5px;width:23px;height:23px;display:grid;place-items:center;font-size:10px;background:var(--surface-bg);border:1px solid var(--home-line);border-radius:8px;color:var(--home-amber);transform:rotate(12deg)}
.tw-home-empty h3{font-size:14px;margin:0 0 7px;letter-spacing:-.02em}
.tw-home-empty p{font-size:12px;color:var(--text-muted);margin:0 0 17px}
.tw-home-empty .tw-button{font-size:11px;padding:9px 14px;min-height:40px}
.tw-home-empty--quiet .tw-home-empty-art{background:color-mix(in srgb,var(--home-green) 7%,var(--surface-bg));color:var(--home-green)}
.tw-home-empty--quiet .tw-home-empty-art>i:last-child{color:var(--home-green)}
.tw-teacher-home .tw-question-item{display:block;padding:16px 0;border-bottom:1px solid var(--home-line);transform:none}
.tw-teacher-home .tw-question-item:last-child{border-bottom:0}
.tw-teacher-home .tw-question-top{display:flex;flex-wrap:nowrap;gap:10px;align-items:center}
.tw-teacher-home .tw-dash-avatar{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border-radius:50%;background:var(--accent-soft);color:var(--accent-primary);font-size:11px;font-weight:700}
.tw-teacher-home .tw-question-author{min-width:0;flex:1;font-size:12px;overflow-wrap:anywhere}
.tw-teacher-home .tw-question-author small{display:block;font-size:10px;color:var(--text-muted);font-weight:400;margin-top:2px}
.tw-teacher-home .tw-question-top>.tw-i{font-size:11px;color:var(--text-muted)}
.tw-teacher-home .tw-question-body{font-size:12px;line-height:1.6;margin:8px 0 0 42px;overflow-wrap:anywhere;color:var(--text-secondary)}
.tw-home-tools{margin:0 0 34px}
.tw-home-tools h2{margin-bottom:16px}
.tw-home-tools-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.tw-home-tools-grid>a{display:flex;align-items:center;gap:12px;padding:18px;background:var(--surface-bg);border:1px solid var(--home-line);border-radius:14px;min-width:0;transition:border-color .18s,transform .18s,box-shadow .18s}
.tw-home-tools-grid>a>span:nth-child(2){min-width:0;flex:1}
.tw-home-tools-grid strong{display:block;font-size:12px;font-weight:700}
.tw-home-tools-grid small{display:block;font-size:10px;color:var(--text-muted);margin-top:3px}
.tw-home-tools-grid>a>.tw-i{font-size:10px;color:var(--text-muted)}
.tw-home-tools-grid>a:hover{border-color:var(--accent-primary);box-shadow:var(--shadow-sm);transform:translateY(-2px)}
.tw-home-recent{padding-top:4px}
.tw-teacher-home .tw-dash-activity{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--home-line)}
.tw-teacher-home .tw-dash-activity:last-child{border-bottom:0}
.tw-teacher-home .tw-dash-activity strong{display:block;font-size:12px;overflow-wrap:anywhere}
.tw-teacher-home .tw-dash-activity small{display:block;font-size:11px;color:var(--text-muted);overflow-wrap:anywhere}
.tw-teacher-home .tw-dash-activity time{grid-column:auto;font-size:10px;color:var(--text-muted);white-space:nowrap}
html[data-theme='dark'] .tw-teacher-home{--home-blue:#60a5fa;--home-violet:#a78bfa;--home-green:#4ade80;--home-amber:#fbbf24}
@media(max-width:900px){
  .tw-home-metric{padding:2px 14px;gap:9px}
  .tw-home-metric .tw-home-icon{width:32px;height:32px;border-radius:10px;font-size:14px}
  .tw-home-tools-grid{gap:10px}
  .tw-home-tools-grid>a{padding:14px;gap:9px}
  .tw-home-tools-grid>a>.tw-i{display:none}
  .tw-teacher-home-content{gap:28px}
}
@media(max-width:639px){
  .tw-teacher-home{padding-top:6px}
  .tw-teacher-home-intro{margin-bottom:22px;align-items:flex-start}
  .tw-teacher-home-intro h1{font-size:clamp(1.5rem,6.6vw,1.9rem)}
  .tw-home-eyebrow{font-size:9px;margin-bottom:7px}
  .tw-home-date{display:none}
  .tw-teacher-home-intro p{font-size:12px}
  .tw-teacher-home-hero{grid-template-columns:minmax(0,1fr);padding:24px;gap:22px;border-radius:18px;min-height:0;margin-bottom:18px}
  .tw-teacher-home-focus h2{font-size:1.8rem;max-width:360px}
  .tw-teacher-home-focus p{font-size:12px;margin-bottom:18px}
  .tw-teacher-home-impact{display:flex;flex-direction:row;gap:10px;border-left:0;border-top:1px solid color-mix(in srgb,var(--accent-primary) 14%,transparent);padding:16px 0 0;justify-content:flex-start;text-align:left}
  .tw-home-impact-icon{width:30px;height:30px;font-size:14px;border-radius:10px;margin:0 3px 0 0}
  .tw-teacher-home-impact strong{font-size:1.7rem;letter-spacing:-.04em}
  .tw-teacher-home-impact p{font-size:11px;margin:0}
  .tw-home-overview{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 14px;margin-bottom:20px}
  .tw-home-metric{padding:18px 10px;gap:10px}
  .tw-home-metric:nth-child(2){border-right:0}
  .tw-home-metric:nth-child(n+3){border-top:1px solid var(--home-line)}
  .tw-home-metric:nth-child(odd){padding-left:0}
  .tw-home-metric:nth-child(even){padding-right:0;padding-left:14px}
  .tw-home-metric strong{font-size:1.35rem}
  .tw-home-metric small{font-size:10px}
  .tw-home-setup{padding:0 12px;margin-bottom:26px}
  .tw-home-setup summary{gap:9px;min-height:62px}
  .tw-home-setup-track{display:none}
  .tw-home-setup-title{font-size:11px}
  .tw-home-setup-count{font-size:10px}
  .tw-home-setup-steps{grid-template-columns:1fr}
  .tw-teacher-home-content{grid-template-columns:1fr;gap:30px;margin:28px 0 32px}
  .tw-teacher-home-section-head h2,.tw-home-tools h2{font-size:1rem}
  .tw-home-empty{padding:22px 10px 10px}
  .tw-home-empty--quiet{display:grid;grid-template-columns:48px minmax(0,1fr);column-gap:14px;text-align:left;align-items:center;padding:20px 0 4px}
  .tw-home-empty--quiet .tw-home-empty-art{grid-row:1/3;width:45px;height:45px;border-radius:16px;margin:0}
  .tw-home-empty--quiet .tw-home-empty-art>i:first-child{font-size:21px}
  .tw-home-empty--quiet h3{margin:0 0 4px;font-size:13px}
  .tw-home-empty--quiet p{margin:0;font-size:11px}
  .tw-home-tools-grid{grid-template-columns:1fr;gap:10px}
  .tw-home-tools-grid>a{padding:14px 16px}
  .tw-home-tools-grid>a>.tw-i{display:block}
  .tw-home-tools-grid strong{font-size:12px}
}
@media(max-width:360px){
  .tw-teacher-home-hero{padding:22px 18px}
  .tw-teacher-home-focus h2{font-size:1.65rem}
  .tw-home-metric{gap:7px}
  .tw-home-metric .tw-home-icon{width:27px;height:30px;font-size:12px}
  .tw-home-metric strong{font-size:1.2rem}
  .tw-teacher-home .tw-dash-class{grid-template-columns:34px minmax(0,1fr) 12px;gap:10px}
  .tw-teacher-home .tw-dash-class>.tw-tag{grid-column:2;grid-row:2;justify-self:start}
  .tw-teacher-home .tw-dash-class>.tw-i{grid-column:3;grid-row:1}
  .tw-teacher-home .tw-dash-class>.tw-home-icon{width:34px;height:36px}
}
