:root {
  --shell-ink: #142137;
  --shell-muted: #46556b;
  --shell-border: #dce3ed;
  --shell-surface: #f5f7fa;
  --shell-blue: #174b9b;
  --shell-width: 1216px;
}

.workbench-page,
#v2LandingTeachingEntries {
  display: grid;
  gap: 18px;
  min-width: 0;
  color: var(--shell-ink);
}

#v2LandingTeachingEntries { width: 100%; padding-top: clamp(10px, 4vh, 45px); }
.workbench-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 4vw, 52px);
  padding: clamp(18px, 4vw, 52px);
  border: 1px solid var(--shell-border);
  border-radius: 16px;
  background: #fff;
}

#v2LandingTeachingEntries .workbench-intro h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 74px);
  font-weight: 820;
  letter-spacing: -.05em;
  text-align: left;
}

.workbench-intro > p { margin: 10px 0 22px; color: var(--shell-muted); font-size: clamp(15px, 2vw, 20px); }
.workbench-grid { display: grid; gap: 12px; align-items: stretch; min-width: 0; }
.workbench-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.workbench-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.workbench-grid-two { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.workbench-card {
  min-width: 0;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid var(--shell-border);
  border-radius: 12px;
  background: #fff;
  color: var(--shell-ink);
}

.workbench-card h2 { margin: 0 0 8px; font-size: clamp(16px, 2vw, 20px); line-height: 1.3; }
.workbench-card p { margin: 6px 0 12px; color: var(--shell-muted); }
.workbench-actions,
.workbench-status-row,
.workbench-subject-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.workbench-actions > .v2-btn,
.workbench-subject-row > .v2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.workbench-intro .v2-btn, .workbench-task .v2-btn { min-height: 44px; font-weight: 700; }
.workbench-channel, .workbench-task { display: grid; align-content: start; }
.workbench-channel .shell-scene-card { min-height: 36px; padding: 6px 11px; font-size: 14px; }
.workbench-light-demo { background: #f7f9fc; }
.workbench-light-demo a { color: var(--shell-blue); font-weight: 650; }
.workbench-demo-lights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.workbench-demo-lights button {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 52px;
  padding: 6px 3px;
  background: #fff;
  border: 1px solid var(--shell-border);
  border-radius: 7px;
  color: var(--shell-ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.workbench-demo-lights button[aria-pressed="true"] { border-color: var(--shell-blue); background: #e9f0fd; font-weight: 700; }
.workbench-demo-lights .v2-dot { width: 13px; height: 13px; }
.workbench-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.workbench-page-head h1 { margin: 0; font-size: clamp(25px, 4vw, 38px); letter-spacing: -.025em; line-height: 1.18; }
.workbench-page-head p { margin: 6px 0 0; color: var(--shell-muted); }
.workbench-task { grid-template-rows: 1fr auto auto; }
.workbench-task > button { justify-self: stretch; margin-top: 5px; }
.workbench-score { font-size: clamp(26px, 4vw, 38px); color: var(--shell-ink); line-height: 1; }
.workbench-status-row h2 { margin: 0 6px 0 0; }
.workbench-subject-row { margin-top: 10px; }
.workbench-subject-row label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.workbench-card progress { width: 100%; accent-color: var(--shell-blue); }
[data-student-task], [data-teacher-acceptance], [data-admin-panel] { scroll-margin-top: 100px; }
.shell-scenes-menu { position: relative; min-width: 0; }
.shell-scenes-menu summary { cursor: pointer; color: var(--shell-blue); font-weight: 650; white-space: nowrap; font-size: 13px; }
.shell-scenes-menu .shell-global-scenes, .shell-scenes-menu .shell-demo-account {
  justify-content: flex-start;
  padding: 10px;
}
.shell-global-header.has-product-nav.can-switch { grid-template-columns: auto minmax(0, 1fr) auto auto; }

.v2-app-shell[data-layout="deeptutor"] { background: #fff; }

.shell-student-nav:not([hidden]) { padding: 8px var(--shell-gutter) 0; }
.shell-student-nav .shell-product-nav { justify-content: start; }

@media (min-width: 1024px) {
  .shell-work-area:has(> .shell-student-nav:not([hidden])) {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(16px, 2vw, 24px);
    max-width: var(--shell-width);
    padding-inline: var(--shell-gutter);
    margin-inline: auto;
  }
  .shell-student-nav:not([hidden]) {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    margin-block-start: clamp(16px, 2vw, 28px);
    padding: 8px;
    background: #fff;
    border: 1px solid var(--shell-border);
    border-radius: 10px;
  }
  .shell-student-nav .shell-product-nav { display: grid; grid-template-columns: minmax(0, 1fr); }
  .shell-student-nav:not([hidden]) ~ .v2-main,
  .shell-student-nav:not([hidden]) ~ #v2DynamicPlanBanner { grid-column: 2; }
  .shell-student-nav:not([hidden]) ~ .v2-main { grid-row: 2; padding-inline: 0; }
}
.shell-scenes-menu[open] { align-self: start; }
.shell-scenes-menu[open] .shell-global-scenes {
  position: absolute;
  z-index: 2;
  right: 0;
  top: 30px;
  width: min(270px, 85vw);
  border: 1px solid var(--shell-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgb(20 33 55 / 10%);
}
.shell-scenes-menu:has(.shell-demo-account)[open] .shell-global-scenes { top: 76px; }
.shell-scenes-menu[open] .shell-demo-account { position: absolute; right: 0; top: 22px; width: min(270px, 85vw); background: #fff; border: 1px solid var(--shell-border); border-radius: 8px; }
.workbench-table-wrap { overflow: auto; }
.workbench-table { width: 100%; border-collapse: collapse; text-align: left; }
.workbench-table :is(th, td) { padding: 9px; border-bottom: 1px solid var(--shell-border); vertical-align: top; }
.workbench-table thead { background: var(--shell-surface); color: var(--shell-muted); }
.workbench-empty { color: var(--shell-muted); }
.workbench-drawer { position: fixed; top: 0; right: 0; width: min(100%, 660px); height: 100dvh; max-width: 100%; max-height: 100dvh; margin: 0 0 0 auto; padding: 18px; overflow: auto; border: 0; border-left: 1px solid var(--shell-border); background: #fff; color: var(--shell-ink); }
.workbench-drawer::backdrop { background: rgb(20 33 55 / 45%); }
.workbench-flow { display: grid; gap: 7px; margin: 12px 0 0; padding-left: 22px; }
.workbench-flow li { padding-bottom: 6px; border-bottom: 1px solid var(--shell-border); }
.workbench-flow li button { margin: 4px 0 0 6px; }
.workbench-today-lessons { max-height: 235px; overflow-y: auto; }
.teacher-portal [data-teacher-message]:empty { display: none; }
.workbench-admin-tabs { margin: 16px 0; }
.workbench-admin-tabs .v2-seg-group { flex-wrap: wrap; }
.workbench-admin-tabs .v2-seg-btn { white-space: nowrap; flex: 0 0 auto; }
.parent-target-heading { margin-top: 14px !important; }
.parent-target + .parent-target { margin-top: 6px; }
.kb-hub .kb-hero { padding: clamp(14px, 2vw, 24px); border: 1px solid var(--shell-border); border-radius: 12px; background: #fff; color: var(--shell-ink); }
.kb-hub .kb-hero p { color: var(--shell-muted); }
.kb-hub .kb-query input:focus-visible { outline-color: var(--shell-blue); }
.kb-directory > summary { cursor: pointer; padding: 8px 12px; font-weight: 650; }
@media (min-width: 791px) {
  .kb-directory[open] > summary { display: none; }
}
@media (max-width: 790px) {
  .kb-directory { background: #fff; border: 1px solid var(--shell-border); border-radius: 10px; }
}

@media (max-width: 790px) {
  .workbench-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell-global-header.has-product-nav.can-switch { grid-template-columns: auto minmax(0, 1fr) auto; }
  .shell-global-header.has-product-nav.can-switch .shell-product-nav { grid-row: 2; grid-column: 1 / -1; }
  .shell-scenes-menu { justify-self: end; }
}
@media (max-width: 600px) {
  #v2AppShell[data-layout="landing"] .v2-main { padding-top: 12px; }
  #v2LandingTeachingEntries { padding-top: 0; gap: 9px; }
  .workbench-channel { padding: 9px 14px; }
  .workbench-channel h2 { margin-bottom: 2px; }
  .workbench-channel p { margin: 3px 0 7px; }
  .workbench-hero, .workbench-grid-three, .workbench-grid-two { grid-template-columns: 1fr; }
  .workbench-hero { gap: 12px; }
  .workbench-intro > p { margin-bottom: 14px; }
  .workbench-task { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; }
  .workbench-task h2 { margin: 0; }
  .workbench-task p { grid-row: 2; margin: 4px 0 0; }
  .workbench-task > button { grid-area: 1 / 2 / 3 / 3; align-self: center; justify-self: end; margin: 0; max-width: 126px; }
  .workbench-grid-four .workbench-task { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; row-gap: 8px; }
  .workbench-grid-four .workbench-task > button { grid-area: auto; max-width: none; justify-self: stretch; }
}
