/* TEACHER WORKBENCH v3 — clean SaaS shell */
.teacher-shell-clean .top-bar { display: none !important; }
.teacher-app-shell.teacher-shell-clean {
  min-height: 100vh;
  background: #f5f6f8;
}

.tsb {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 232px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #e7e9ee;
  font-family: "Segoe UI","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}
.tsb.collapsed { width: 68px; }
.tsb-brand {
  display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 14px; border-bottom: 1px solid #eef0f4; flex-shrink: 0;
}
.tsb-logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: #4f46e5; color: #fff; font-size: 14px; font-weight: 800;
  display: grid; place-content: center; flex-shrink: 0;
}
.tsb-brand-text { flex: 1; min-width: 0; line-height: 1.15; }
.tsb-brand-text b { display: block; font-size: 13px; color: #111827; font-weight: 700; }
.tsb-brand-text small { font-size: 11px; color: #9ca3af; }
.tsb-toggle {
  width: 28px; height: 28px; border: 1px solid #e5e7eb; border-radius: 6px;
  background: #fff; color: #6b7280; cursor: pointer; display: grid; place-content: center; flex-shrink: 0;
}
.tsb-nav { flex: 1; overflow: auto; padding: 10px 10px 16px; }
.tsb-group {
  margin: 12px 8px 6px; font-size: 11px; font-weight: 650; color: #9ca3af;
}
.tsb-item {
  display: flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 10px; margin-bottom: 2px;
  border-radius: 8px; color: #374151; text-decoration: none;
  font-size: 13px; font-weight: 550;
}
.tsb-item i { font-size: 17px; width: 20px; text-align: center; color: #6b7280; }
.tsb-item:hover { background: #f5f6f8; color: #111827; }
.tsb-item.on { background: #eef2ff; color: #4338ca; font-weight: 650; }
.tsb-item.on i { color: #4f46e5; }
.tsb.collapsed .tsb-item { justify-content: center; padding: 0; }
.tsb-foot { padding: 12px; border-top: 1px solid #eef0f4; }
.tsb-cta {
  width: 100%; height: 36px; border: 0; border-radius: 8px;
  background: #4f46e5; color: #fff; font-size: 13px; font-weight: 650;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.tsb-cta:hover { background: #4338ca; }

.twb {
  min-height: 100vh;
  background: #f5f6f8;
  font-family: "Segoe UI","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}
.twb-main {
  margin-left: 232px !important;
  min-height: 100vh;
  background: #f5f6f8 !important;
  padding-top: 0 !important;
  width: auto !important;
  max-width: none !important;
}
.tsb.collapsed ~ .twb-main,
.tsb.collapsed + .twb-main { margin-left: 68px !important; }

.teacher-workbench { background: #f5f6f8 !important; }
.teacher-workbench > .tsb + .main-content,
.teacher-workbench > .tsb ~ .main-content,
.teacher-workbench > .main-content.teacher-main {
  margin-left: 232px !important;
  padding-top: 0 !important;
  background: #f5f6f8 !important;
  width: auto !important;
  max-width: none !important;
}
.teacher-workbench > .tsb.collapsed + .main-content,
.teacher-workbench > .tsb.collapsed ~ .main-content {
  margin-left: 68px !important;
}

.twb-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 56px; padding: 0 24px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e7e9ee;
  backdrop-filter: blur(8px);
}
.twb-top-l { display: flex; align-items: baseline; gap: 10px; }
.twb-top-l h1 { margin: 0; font-size: 15px; font-weight: 700; color: #111827; }
.twb-top-l span { font-size: 12px; color: #9ca3af; }
.twb-top-r { display: flex; align-items: center; gap: 10px; }
.twb-search {
  display: flex; align-items: center; gap: 8px;
  height: 34px; min-width: 240px; padding: 0 12px;
  border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb;
}
.twb-search i { color: #9ca3af; }
.twb-search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 13px; color: #111827; }
.twb-ico {
  position: relative; width: 34px; height: 34px; border: 1px solid #e5e7eb; border-radius: 8px;
  background: #fff; color: #4b5563; cursor: pointer; display: grid; place-content: center;
}
.twb-ico em {
  position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #ef4444; color: #fff; font-size: 10px; font-style: normal;
  font-weight: 700; display: grid; place-content: center;
}
.twb-user { display: flex; align-items: center; gap: 8px; }
.twb-user > span {
  width: 32px; height: 32px; border-radius: 8px; background: #4f46e5; color: #fff;
  display: grid; place-content: center; font-size: 13px; font-weight: 700;
}
.twb-user b { display: block; font-size: 13px; color: #111827; line-height: 1.15; }
.twb-user small { font-size: 11px; color: #9ca3af; }

.twb-body { max-width: 1240px; margin: 0 auto; padding: 20px 24px 40px; }
.twb-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px;
}
.twb-head h2 { margin: 0 0 4px; font-size: 22px; font-weight: 700; color: #111827; letter-spacing: -.02em; }
.twb-head p { margin: 0; font-size: 13px; color: #6b7280; max-width: 560px; line-height: 1.55; }
.twb-head-actions { display: flex; gap: 8px; }
.twb-btn-p {
  height: 34px; padding: 0 14px; border: 0; border-radius: 8px;
  background: #4f46e5; color: #fff; font-size: 13px; font-weight: 650; cursor: pointer;
}
.twb-btn-p:hover { background: #4338ca; }
.twb-btn-g {
  height: 34px; padding: 0 14px; border: 1px solid #e5e7eb; border-radius: 8px;
  background: #fff; color: #374151; font-size: 13px; font-weight: 650; cursor: pointer;
}
.twb-btn-g:hover { background: #f9fafb; }
.twb-link { border: 0; background: transparent; color: #4f46e5; font-size: 13px; font-weight: 650; cursor: pointer; }

.twb-alert { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.twb-alert-item {
  display: inline-flex; align-items: center; gap: 8px; height: 36px;
  padding: 0 10px 0 12px; border-radius: 8px; border: 1px solid #e5e7eb;
  background: #fff; font-size: 12px; color: #4b5563;
}
.twb-alert-item.warn { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.twb-alert-item b { font-weight: 700; }
.twb-alert-item button {
  height: 24px; padding: 0 8px; border: 1px solid #e5e7eb; border-radius: 6px;
  background: #fff; color: #4f46e5; font-size: 11px; font-weight: 650; cursor: pointer;
}

.twb-kpi {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 14px;
}
.twb-kpi article {
  background: #fff; border: 1px solid #e7e9ee; border-radius: 10px; padding: 14px 16px;
}
.twb-kpi span { display: block; font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.twb-kpi strong {
  display: block; font-size: 26px; font-weight: 700; color: #111827;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}

.twb-grid {
  display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 12px; align-items: start;
}
.twb-maincol, .twb-side { display: grid; gap: 12px; min-width: 0; }
.twb-card {
  background: #fff; border: 1px solid #e7e9ee; border-radius: 12px; overflow: hidden;
}
.twb-card-h {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 16px 18px 0;
}
.twb-card-h h3 { margin: 0; font-size: 14px; font-weight: 700; color: #111827; }
.twb-card-h p { margin: 3px 0 0; font-size: 12px; color: #9ca3af; }

.twb-empty { padding: 40px 20px; text-align: center; color: #9ca3af; }
.twb-empty i { font-size: 28px; color: #9ca3af; }
.twb-empty h4 { margin: 10px 0 4px; font-size: 14px; color: #111827; }
.twb-empty p { margin: 0 0 14px; font-size: 12px; }

.twb-table-wrap { padding: 10px 12px 14px; overflow-x: auto; }
.twb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.twb-table th {
  text-align: left; padding: 10px 12px; font-size: 12px; font-weight: 600;
  color: #6b7280; background: #fafafa; border-bottom: 1px solid #f0f1f4;
}
.twb-table td {
  padding: 12px; border-bottom: 1px solid #f3f4f6; color: #1f2937; vertical-align: middle;
}
.twb-table tr:last-child td { border-bottom: 0; }
.twb-table tr:hover td { background: #fafafa; }
.twb-table .muted { color: #9ca3af; font-size: 12px; }
.twb-table .main { font-weight: 550; }
.twb-stu { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.twb-stu span {
  width: 28px; height: 28px; border-radius: 7px; background: #eef2ff; color: #4f46e5;
  display: grid; place-content: center; font-size: 12px; font-weight: 700;
}
.twb-badge {
  display: inline-flex; height: 22px; align-items: center; padding: 0 8px;
  border-radius: 6px; font-size: 11px; font-weight: 650; background: #f3f4f6; color: #4b5563;
}
.twb-badge.is-ok { background: #ecfdf5; color: #047857; }
.twb-badge.is-warn { background: #fffbeb; color: #b45309; }
.twb-badge.is-danger { background: #fef2f2; color: #b91c1c; }
.twb-badge.is-purple { background: #eef2ff; color: #4338ca; }
.twb-badge.is-muted { background: #f3f4f6; color: #6b7280; }

.twb-charts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px 16px;
}
.twb-chart-l { font-size: 11px; font-weight: 600; color: #9ca3af; padding: 4px 6px 0; }
.twb-chart { width: 100%; height: 220px; }

.twb-nav { display: grid; padding: 8px; gap: 2px; }
.twb-nav button {
  display: grid; grid-template-columns: 34px minmax(0,1fr) 16px; gap: 10px; align-items: center;
  width: 100%; text-align: left; border: 0; background: transparent; border-radius: 8px;
  padding: 10px 8px; cursor: pointer;
}
.twb-nav button:hover { background: #f5f6f8; }
.twb-nav button > i:first-child {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-content: center; font-size: 16px;
}
.twb-nav b { display: block; font-size: 13px; color: #111827; font-weight: 650; }
.twb-nav small { display: block; font-size: 11px; color: #9ca3af; margin-top: 2px; }
.twb-nav em { color: #d1d5db; font-style: normal; font-size: 16px; }

.twb-todo { list-style: none; margin: 0; padding: 4px 14px 8px; }
.twb-todo li {
  display: grid; grid-template-columns: 10px 1fr; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #f3f4f6;
}
.twb-todo li:last-child { border-bottom: 0; }
.twb-todo i {
  width: 8px; height: 8px; border-radius: 50%; background: #c7d2fe; margin-top: 5px; display: block;
}
.twb-todo i.warn { background: #f59e0b; }
.twb-todo b { display: block; font-size: 13px; color: #111827; font-weight: 650; }
.twb-todo small { display: block; margin-top: 2px; font-size: 11px; color: #9ca3af; }
.twb-side-cta {
  display: block; width: calc(100% - 28px); margin: 4px 14px 14px; height: 34px;
  border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb;
  color: #374151; font-size: 12px; font-weight: 650; cursor: pointer;
}
.twb-side-cta:hover { background: #eef2ff; border-color: #c7d2fe; color: #4338ca; }

.teacher-home-page > .main-content,
.teacher-workbench > .main-content {
  padding-top: 0 !important;
}
.teacher-shell-clean { padding-top: 0 !important; }
.tp-pro-head { padding-left: 28px; padding-right: 28px; }

@media (max-width: 1100px) {
  .twb-grid { grid-template-columns: 1fr; }
  .twb-charts { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .twb-kpi { grid-template-columns: 1fr 1fr; }
  .twb-user div { display: none; }
  .twb-search { min-width: 140px; }
}

/* Teacher page content density — less plastic */
.tpro-dense .card, .tpro-panel {
  border: 1px solid #e7e9ee !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  background: #fff !important;
}
.tpro-panel-title {
  font-size: 13px; font-weight: 700; color: #111827; margin: 0 0 10px;
  padding-bottom: 8px; border-bottom: 1px solid #f0f1f4;
}
.tpro-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tpro-pills button {
  height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid #e5e7eb;
  background: #fff; font-size: 12px; font-weight: 650; color: #4b5563; cursor: pointer;
}
.tpro-pills button.on { background: #eef2ff; border-color: #c7d2fe; color: #4338ca; }
.tpro-sample-row {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; align-items: center;
}
.tpro-sample-row > span { font-size: 11px; color: #9ca3af; font-weight: 650; width: 100%; }
.tpro-sample-row button {
  border: 1px solid #e5e7eb; background: #f9fafb; border-radius: 999px;
  padding: 4px 10px; font-size: 11px; color: #4b5563; cursor: pointer;
}
.tpro-sample-row button:hover { border-color: #c7d2fe; color: #4338ca; background: #eef2ff; }
.tpro-tips {
  margin-top: 14px; padding: 12px; border-radius: 10px; background: #f8fafc; border: 1px solid #eef0f4;
  font-size: 12px; color: #4b5563; line-height: 1.55;
}
.tpro-tips b { display: block; margin-bottom: 6px; color: #111827; font-size: 12px; }
.tpro-tips .c1 { color: #059669; font-weight: 700; }
.tpro-tips .c2 { color: #d97706; font-weight: 700; }
.tpro-tips .c3 { color: #dc2626; font-weight: 700; }
.tpro-info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 12px;
}
.tpro-info-grid .tpro-panel { padding: 14px 16px !important; }
.tpro-info-grid b { display: block; font-size: 13px; color: #111827; margin-bottom: 4px; }
.tpro-info-grid p { margin: 0; font-size: 12px; color: #6b7280; line-height: 1.5; }
.tpro-lane-preview {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 16px; width: 100%; max-width: 520px;
}
.tpro-lane-preview > div {
  padding: 12px; border-radius: 10px; border: 1px solid #e5e7eb; background: #fafafa; text-align: left;
}
.tpro-lane-preview b { display: block; font-size: 12px; color: #111827; margin-bottom: 4px; }
.tpro-lane-preview span { font-size: 11px; color: #6b7280; }
.tpro-hint { margin: 8px 0 0; font-size: 12px; color: #059669; line-height: 1.45; }
.tpro-meta { margin: 4px 0 0; font-size: 11px; color: #9ca3af; }
.tpro-actions { display: flex; gap: 6px; }
.tpro-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid #e5e7eb; border-top-color: #4f46e5;
  animation: tproSpin .8s linear infinite; margin: 0 auto 12px;
}
@keyframes tproSpin { to { transform: rotate(360deg); } }
.tpro-guide ul {
  list-style: none; margin: 14px auto 0; padding: 0; max-width: 320px; text-align: left;
}
.tpro-guide li {
  font-size: 12px; color: #4b5563; padding: 8px 0; border-bottom: 1px solid #f1f5f9;
}
.studio-type { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex-direction: column; min-height: 52px; }
.studio-type i { font-size: 16px; }
.studio-hist li.on { background: #eef2ff; }
.tp-studio .studio-controls label { margin-top: 4px; }
.tp-pro .studio-run, .tp-pro .assign-gen-btn {
  border-radius: 8px !important; font-weight: 650 !important; box-shadow: none !important;
}

/* ========== Score Weights page (full content) ========== */
.sw-page {
  max-width: 1280px !important;
  margin: 0 auto;
  padding: 12px 28px 48px !important;
  display: flex !important;
  flex-direction: column;
  gap: 12px;
}
.sw-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}
.sw-status article {
  background: #fff;
  border: 1px solid #e7e9ee;
  border-radius: 12px;
  padding: 14px 16px;
}
.sw-status article.ok { border-color: #a7f3d0; background: #f0fdf4; }
.sw-status article.bad { border-color: #fecaca; background: #fef2f2; }
.sw-status span { display: block; font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.sw-status b { display: block; font-size: 24px; font-weight: 750; color: #111827; letter-spacing: -.03em; line-height: 1.1; }
.sw-status b.sm { font-size: 15px; letter-spacing: 0; }
.sw-status small { display: block; margin-top: 6px; font-size: 11px; color: #9ca3af; }

.sw-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}
.sw-preset {
  text-align: left;
  border: 1px solid #e7e9ee;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.sw-preset:hover { border-color: #c7d2fe; }
.sw-preset.on { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.sw-preset-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sw-preset-top i { font-size: 18px; color: #4f46e5; }
.sw-preset-top strong { font-size: 13px; color: #111827; }
.sw-preset p { margin: 0 0 10px; font-size: 12px; color: #6b7280; line-height: 1.45; min-height: 34px; }
.sw-preset-bars { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: #f3f4f6; }

.sw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  gap: 12px;
  align-items: start;
}
.sw-dims, .sw-side { display: grid; gap: 12px; min-width: 0; }
.sw-card {
  background: #fff;
  border: 1px solid #e7e9ee;
  border-radius: 12px;
  overflow: hidden;
}
.sw-card-h {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 16px 18px 0;
}
.sw-card-h h3 { margin: 0; font-size: 14px; font-weight: 700; color: #111827; }
.sw-card-h p { margin: 4px 0 0; font-size: 12px; color: #9ca3af; }

.sw-dim-list { padding: 8px 12px 16px; display: grid; gap: 10px; }
.sw-dim {
  border: 1px solid #eef0f4;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fafbfc;
}
.sw-dim-head {
  display: grid;
  grid-template-columns: 10px minmax(0,1fr) auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}
.sw-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; }
.sw-dim-head b { display: block; font-size: 13px; color: #111827; }
.sw-dim-head small { display: block; margin-top: 2px; font-size: 11px; color: #6b7280; line-height: 1.4; }
.sw-dim-head em { font-style: normal; font-size: 16px; font-weight: 750; color: #111827; font-variant-numeric: tabular-nums; }
.sw-dim-ctrl { display: grid; grid-template-columns: 1fr 72px; gap: 10px; align-items: center; }
.sw-dim-ctrl input[type=range] { width: 100%; accent-color: #4f46e5; }
.sw-pct { height: 34px !important; padding: 0 8px !important; text-align: center; }
.sw-dim-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px;
  margin-top: 8px; font-size: 11px; color: #6b7280;
}
.sw-dim-meta b { color: #111827; font-weight: 700; }

.sw-table-wrap { padding: 10px 14px 16px; overflow-x: auto; }
.sw-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sw-table th {
  text-align: left; padding: 10px 8px; color: #6b7280; font-weight: 650;
  border-bottom: 1px solid #eef0f4; background: #fafafa; white-space: nowrap;
}
.sw-table td {
  padding: 11px 8px; border-bottom: 1px solid #f3f4f6; color: #374151;
  font-variant-numeric: tabular-nums;
}
.sw-table tr.hl td { background: #eef2ff; }
.sw-table tr:last-child td { border-bottom: 0; }
.sw-table strong { color: #111827; font-size: 13px; }

.sw-donut-wrap { padding: 8px 16px 18px; display: grid; gap: 14px; justify-items: center; }
.sw-donut {
  width: 160px; height: 160px; border-radius: 50%;
  display: grid; place-content: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.sw-donut-hole {
  width: 96px; height: 96px; border-radius: 50%; background: #fff;
  display: grid; place-content: center; text-align: center;
  box-shadow: 0 0 0 1px #eef0f4;
}
.sw-donut-hole b { font-size: 28px; font-weight: 800; color: #111827; line-height: 1; }
.sw-donut-hole span { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.sw-legend { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 8px; }
.sw-legend li {
  display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center;
  font-size: 12px; color: #374151;
}
.sw-legend i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.sw-legend em { font-style: normal; font-weight: 700; color: #111827; font-variant-numeric: tabular-nums; }

.sw-demo {
  padding: 4px 14px 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.sw-demo label {
  display: grid; grid-template-columns: 36px 1fr; gap: 6px; align-items: center;
  font-size: 12px; color: #4b5563; font-weight: 650;
}
.sw-demo input { height: 34px !important; padding: 0 8px !important; }
.sw-demo-total {
  margin: 4px 14px 10px; padding: 12px 14px; border-radius: 10px;
  background: #f8fafc; border: 1px solid #eef0f4;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.sw-demo-total span { display: block; font-size: 11px; color: #9ca3af; margin-bottom: 2px; }
.sw-demo-total code { font-size: 12px; color: #4b5563; }
.sw-demo-total strong { font-size: 28px; font-weight: 800; color: #111827; }
.sw-demo-total strong.ok { color: #059669; }
.sw-demo-total strong.mid { color: #d97706; }
.sw-demo-total strong.low { color: #dc2626; }
.sw-demo-breakdown { padding: 0 14px 16px; display: grid; gap: 8px; }
.sw-demo-breakdown > div {
  display: grid; grid-template-columns: 36px 1fr 36px; gap: 8px; align-items: center;
  font-size: 11px; color: #6b7280;
}
.sw-demo-breakdown i { display: block; height: 7px; border-radius: 99px; background: #eef0f4; overflow: hidden; }
.sw-demo-breakdown i b { display: block; height: 100%; border-radius: inherit; }
.sw-demo-breakdown em { font-style: normal; font-weight: 700; color: #111827; text-align: right; }

.sw-help {
  margin: 0; padding: 4px 18px 18px 32px; color: #4b5563; font-size: 12px; line-height: 1.7;
}
.sw-help li { margin-bottom: 6px; }
.sw-help b { color: #111827; }

@media (max-width: 1100px) {
  .sw-grid, .sw-presets, .sw-status { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .sw-grid, .sw-presets, .sw-status, .sw-demo { grid-template-columns: 1fr; }
  .sw-page { padding: 12px 14px 32px !important; }
}

/* ========== Teacher Profile Center ========== */
.tpc-page { min-height: 100vh; background: #f5f6f8; }
.profile-page-v3 .tpc-page { margin: 0; }
.tpc-body { max-width: 1200px; margin: 0 auto; padding: 8px 28px 48px; display: grid; gap: 12px; }
.tpc-hero {
  display: grid; grid-template-columns: 72px minmax(0,1fr) auto; gap: 16px; align-items: center;
  background: #fff; border: 1px solid #e7e9ee; border-radius: 14px; padding: 18px 20px;
}
.tpc-avatar {
  width: 72px; height: 72px; border-radius: 16px; background: #4f46e5; color: #fff;
  display: grid; place-content: center; font-size: 28px; font-weight: 800;
}
.tpc-hero-info h2 { margin: 0 0 4px; font-size: 20px; color: #111827; font-weight: 750; }
.tpc-hero-info p { margin: 0; font-size: 13px; color: #6b7280; }
.tpc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tpc-tags span {
  height: 24px; padding: 0 10px; border-radius: 999px; background: #eef2ff; color: #4338ca;
  font-size: 11px; font-weight: 650; display: inline-flex; align-items: center;
}
.tpc-hero-side { display: flex; gap: 18px; }
.tpc-hero-side div { text-align: center; min-width: 56px; }
.tpc-hero-side b { display: block; font-size: 20px; color: #111827; font-weight: 750; }
.tpc-hero-side small { font-size: 11px; color: #9ca3af; }
.tpc-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.tpc-kpis article {
  background: #fff; border: 1px solid #e7e9ee; border-radius: 12px; padding: 14px 16px;
}
.tpc-kpis span { display: block; font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.tpc-kpis b { display: block; font-size: 26px; font-weight: 750; color: #111827; letter-spacing: -.03em; }
.tpc-kpis small { display: block; margin-top: 4px; font-size: 11px; color: #9ca3af; }
.tpc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tpc-span2 { grid-column: 1 / -1; }
.tpc-card { background: #fff; border: 1px solid #e7e9ee; border-radius: 12px; overflow: hidden; }
.tpc-card-h { padding: 16px 18px 0; }
.tpc-card-h h3 { margin: 0; font-size: 14px; font-weight: 700; color: #111827; }
.tpc-card-h p { margin: 4px 0 0; font-size: 12px; color: #9ca3af; }
.tpc-fields { padding: 12px 18px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tpc-fields label { display: block; font-size: 11px; color: #9ca3af; margin-bottom: 4px; font-weight: 650; }
.tpc-val {
  min-height: 38px; padding: 8px 12px; border-radius: 8px; background: #f8fafc;
  border: 1px solid #eef0f4; font-size: 13px; color: #111827; font-weight: 600;
  display: flex; align-items: center;
}
.tpc-nav { padding: 8px; display: grid; gap: 2px; }
.tpc-nav a {
  display: grid; grid-template-columns: 36px minmax(0,1fr) 16px; gap: 10px; align-items: center;
  padding: 10px 8px; border-radius: 8px; text-decoration: none; color: inherit;
}
.tpc-nav a:hover { background: #f5f6f8; }
.tpc-nav i {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-content: center; font-size: 17px;
}
.tpc-nav b { display: block; font-size: 13px; color: #111827; }
.tpc-nav small { display: block; font-size: 11px; color: #9ca3af; margin-top: 2px; }
.tpc-nav em { color: #d1d5db; font-style: normal; }
.tpc-todo-grid {
  padding: 12px 16px 18px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px;
}
.tpc-todo-grid article {
  border: 1px solid #eef0f4; border-radius: 12px; padding: 14px; background: #fafbfc;
}
.tpc-todo-grid b { display: block; font-size: 13px; color: #111827; margin-bottom: 6px; }
.tpc-todo-grid p { margin: 0 0 10px; font-size: 12px; color: #6b7280; line-height: 1.5; min-height: 54px; }
.tpc-todo-grid a { font-size: 12px; font-weight: 700; color: #4f46e5; text-decoration: none; }
.tpc-pref { list-style: none; margin: 0; padding: 8px 18px 16px; }
.tpc-pref li {
  display: flex; justify-content: space-between; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid #f3f4f6; font-size: 13px;
}
.tpc-pref li:last-child { border-bottom: 0; }
.tpc-pref span { color: #6b7280; }
.tpc-pref em { font-style: normal; color: #111827; font-weight: 650; text-align: right; }
.tpc-help { margin: 0; padding: 4px 18px 18px 32px; font-size: 12px; color: #4b5563; line-height: 1.75; }
.tpc-help b { color: #111827; }

/* ========== Teacher Resource Recommend full ========== */
.tr-page { max-width: 1280px !important; margin: 0 auto; padding: 8px 28px 48px !important; display: grid !important; gap: 12px; }
.tr-status { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.tr-status article { background:#fff; border:1px solid #e7e9ee; border-radius:12px; padding:14px 16px; }
.tr-status span { display:block; font-size:12px; color:#6b7280; margin-bottom:6px; }
.tr-status b { display:block; font-size:24px; font-weight:750; color:#111827; letter-spacing:-.03em; }
.tr-status b.sm { font-size:15px; letter-spacing:0; }
.tr-status small { display:block; margin-top:4px; font-size:11px; color:#9ca3af; }
.tr-toolbar {
  display:flex; flex-wrap:wrap; gap:10px; align-items:center;
  background:#fff; border:1px solid #e7e9ee; border-radius:12px; padding:12px 14px;
}
.tr-search {
  display:flex; align-items:center; gap:8px; flex:1; min-width:220px; height:36px;
  border:1px solid #e5e7eb; border-radius:8px; padding:0 12px; background:#f9fafb;
}
.tr-search i { color:#9ca3af; }
.tr-search input { border:0; outline:0; background:transparent; width:100%; font-size:13px; }
.tr-chips { display:flex; flex-wrap:wrap; gap:6px; }
.tr-chips button {
  height:30px; padding:0 12px; border-radius:999px; border:1px solid #e5e7eb; background:#fff;
  font-size:12px; font-weight:650; color:#4b5563; cursor:pointer;
}
.tr-chips button.on { background:#eef2ff; border-color:#c7d2fe; color:#4338ca; }
.tr-msg { margin:0; font-size:12px; color:#0e7490; }
.tr-grid { display:grid; grid-template-columns: minmax(0,1.2fr) 320px; gap:12px; align-items:start; }
.tr-list { display:grid; gap:10px; }
.tr-card {
  background:#fff; border:1px solid #e7e9ee; border-radius:12px; padding:14px 16px; cursor:pointer;
  transition: border-color .15s, box-shadow .15s;
}
.tr-card:hover { border-color:#c7d2fe; }
.tr-card.on { border-color:#818cf8; box-shadow:0 0 0 3px rgba(79,70,229,.1); }
.tr-card-top { display:flex; justify-content:space-between; gap:8px; margin-bottom:8px; }
.tr-card-top small { font-size:11px; color:#9ca3af; }
.tr-type {
  display:inline-flex; align-items:center; height:22px; padding:0 8px; border-radius:999px;
  font-size:11px; font-weight:700;
}
.tr-card h4 { margin:0 0 6px; font-size:14px; color:#111827; line-height:1.4; }
.tr-card p { margin:0; font-size:12px; color:#6b7280; line-height:1.55; min-height:38px; }
.tr-card footer {
  display:flex; justify-content:space-between; align-items:center; margin-top:10px; padding-top:10px;
  border-top:1px solid #f3f4f6; font-size:11px; color:#9ca3af;
}
.tr-card footer div { display:flex; gap:4px; }
.tr-card footer button, .tr-card footer a {
  width:30px; height:30px; border:0; border-radius:8px; background:#f1f5f9; color:#4f46e5;
  display:grid; place-content:center; cursor:pointer; text-decoration:none;
}
.tr-empty {
  background:#fff; border:1px dashed #d1d5db; border-radius:12px; padding:48px 20px; text-align:center; color:#9ca3af;
}
.tr-empty i { font-size:32px; }
.tr-empty h3 { margin:10px 0 6px; color:#111827; font-size:15px; }
.tr-empty p { margin:0; font-size:12px; }
.tr-side { display:grid; gap:12px; }
.tr-panel { background:#fff; border:1px solid #e7e9ee; border-radius:12px; overflow:hidden; }
.tr-panel-h { padding:14px 16px 0; }
.tr-panel-h h3 { margin:8px 0 4px; font-size:15px; color:#111827; line-height:1.35; }
.tr-panel-h p { margin:0; font-size:12px; color:#9ca3af; }
.tr-panel-body { padding:12px 16px 8px; }
.tr-panel-body > p { margin:0 0 12px; font-size:13px; color:#4b5563; line-height:1.6; }
.tr-meta { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:10px; }
.tr-meta label { display:block; font-size:11px; color:#9ca3af; margin-bottom:2px; }
.tr-meta b { font-size:12px; color:#111827; font-weight:650; }
.tr-why { padding:10px 12px; border-radius:10px; background:#f8fafc; border:1px solid #eef0f4; }
.tr-why b { display:block; font-size:12px; color:#111827; margin-bottom:4px; }
.tr-why p { margin:0 !important; font-size:12px !important; color:#4b5563 !important; }
.tr-panel-actions { display:flex; gap:8px; padding:0 16px 16px; }
.tr-panel-actions .twb-btn-g, .tr-panel-actions .twb-btn-p { flex:1; text-align:center; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; }
.tr-side-empty { text-align:center; padding:28px 16px 24px !important; color:#9ca3af; }
.tr-side-empty i { font-size:28px; }
.tr-log { list-style:none; margin:0; padding:4px 16px 14px; }
.tr-log li { padding:10px 0; border-bottom:1px solid #f3f4f6; }
.tr-log li:last-child { border-bottom:0; }
.tr-log b { display:block; font-size:12px; color:#111827; }
.tr-log small { font-size:11px; color:#9ca3af; }
.tr-side-tip { margin:0; padding:8px 16px 16px; font-size:12px; color:#9ca3af; }
.tr-help { margin:0; padding:4px 16px 16px 30px; font-size:12px; color:#4b5563; line-height:1.7; }
.tr-modal {
  background:#fff; border-radius:14px; padding:20px; width:100%; max-width:440px; margin:16px;
  box-shadow:0 20px 50px rgba(15,23,42,.18);
}
.tr-modal h3 { margin:0 0 12px; font-size:16px; color:#111827; display:flex; align-items:center; gap:8px; }
.tr-modal label { display:block; font-size:12px; color:#6b7280; font-weight:650; margin:10px 0 6px; }
.tr-modal-res { padding:10px 12px; border-radius:10px; background:#f8fafc; border:1px solid #eef0f4; margin-bottom:4px; }
.tr-modal-res b { display:block; font-size:13px; color:#111827; }
.tr-modal-res small { font-size:11px; color:#9ca3af; }
.tr-stu-box { max-height:140px; overflow:auto; border:1px solid #e5e7eb; border-radius:10px; padding:8px; }
.tr-stu-box label { display:flex; align-items:center; gap:8px; margin:0; padding:6px; border-radius:6px; font-weight:500; }
.tr-stu-box label:hover { background:#f9fafb; }
.tr-stu-box span { font-size:13px; color:#111827; }
.tr-stu-box small { font-size:11px; color:#9ca3af; margin-left:auto; }
.tr-modal-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:16px; }

@media (max-width:1100px) {
  .tpc-grid, .tpc-kpis, .tr-status, .tr-grid, .tpc-todo-grid { grid-template-columns:1fr 1fr; }
  .tpc-span2 { grid-column:1 / -1; }
}
@media (max-width:760px) {
  .tpc-hero, .tpc-grid, .tpc-kpis, .tpc-fields, .tpc-todo-grid, .tr-status, .tr-grid { grid-template-columns:1fr; }
  .tpc-hero-side { justify-content:flex-start; }
  .tpc-body, .tr-page { padding-left:14px !important; padding-right:14px !important; }
}

/* Teacher profile must offset for fixed .tsb sidebar */
.main-content.profile-page-v3,
.profile-page-v3 {
  margin-left: 232px !important;
  padding-top: 0 !important;
  background: #f5f6f8 !important;
  width: auto !important;
  max-width: none !important;
  min-height: 100vh;
}
.tsb.collapsed ~ .main-content.profile-page-v3,
.tsb.collapsed + .main-content.profile-page-v3 {
  margin-left: 68px !important;
}
.profile-page-v3 .content-header { display: none; }



/* ===== Course Task Mission Control ===== */
.ct-page { max-width: 1280px !important; margin: 0 auto; padding: 8px 28px 48px !important; display: grid !important; gap: 12px; }
.ct-view-toggle, .sr-view-toggle { display: inline-flex; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: #fff; }
.ct-view-toggle button, .sr-view-toggle button {
  height: 34px; padding: 0 12px; border: 0; background: transparent; font-size: 12px; font-weight: 650; color: #6b7280; cursor: pointer;
}
.ct-view-toggle button.on, .sr-view-toggle button.on { background: #4f46e5; color: #fff; }
.ct-radar { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.ct-radar article {
  background: #fff; border: 1px solid #e7e9ee; border-radius: 12px; padding: 14px; cursor: pointer; transition: border-color .15s;
}
.ct-radar article:hover { border-color: #c7d2fe; }
.ct-radar article.hot { border-color: #fbbf24; background: #fffbeb; }
.ct-radar article.warn { border-color: #fca5a5; background: #fef2f2; }
.ct-radar article.clear { border-style: dashed; }
.ct-radar span { display:block; font-size:12px; color:#6b7280; }
.ct-radar b { display:block; margin-top:6px; font-size:26px; font-weight:800; color:#111827; letter-spacing:-.03em; }
.ct-radar b.sm { font-size:15px; }
.ct-radar small { display:block; margin-top:4px; font-size:11px; color:#9ca3af; }
.ct-week { background:#fff; border:1px solid #e7e9ee; border-radius:12px; padding:14px 16px; }
.ct-week-h h3 { margin:0; font-size:14px; color:#111827; }
.ct-week-h p { margin:4px 0 12px; font-size:12px; color:#9ca3af; }
.ct-week-strip { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; }
.ct-day {
  text-align:center; padding:10px 6px; border-radius:10px; border:1px solid #eef0f4; background:#fafafa;
}
.ct-day.today { border-color:#818cf8; background:#eef2ff; }
.ct-day.has b { color:#4f46e5; }
.ct-day span { display:block; font-size:11px; color:#6b7280; }
.ct-day b { display:block; margin:4px 0; font-size:18px; color:#111827; }
.ct-day small { font-size:10px; color:#9ca3af; }
.ct-packs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.ct-pack {
  display:flex; gap:10px; align-items:flex-start; text-align:left;
  border:1px solid #e7e9ee; background:#fff; border-radius:12px; padding:12px; cursor:pointer;
}
.ct-pack:hover { border-color:#c7d2fe; }
.ct-pack i { font-size:20px; color:#4f46e5; margin-top:2px; }
.ct-pack b { display:block; font-size:13px; color:#111827; }
.ct-pack small { font-size:11px; color:#6b7280; }
.ct-board { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; align-items:start; }
.ct-col { background:#f8fafc; border:1px solid #e7e9ee; border-radius:12px; padding:10px; min-height:360px; }
.ct-col > header { display:flex; justify-content:space-between; padding:6px 6px 10px; font-size:13px; font-weight:700; color:#111827; }
.ct-col > header b { min-width:22px; height:22px; border-radius:6px; background:#fff; border:1px solid #e5e7eb; display:grid; place-content:center; font-size:11px; }
.ct-card {
  background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:12px; margin-bottom:10px;
}
.ct-card.is-today { border-color:#f59e0b; box-shadow:0 0 0 2px rgba(245,158,11,.15); }
.ct-card.is-soon { border-color:#38bdf8; }
.ct-card.is-overdue { border-color:#f87171; background:#fff7f7; }
.ct-card-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.ct-type { font-size:10px; font-weight:800; padding:3px 8px; border-radius:999px; background:#ecfdf5; color:#047857; }
.ct-pin { border:0; background:transparent; color:#d1d5db; cursor:pointer; font-size:14px; }
.ct-pin.on { color:#f59e0b; }
.ct-card h3 { margin:0 0 4px; font-size:13px; color:#111827; }
.ct-card p { margin:0 0 8px; font-size:12px; color:#6b7280; line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.ct-progress { display:grid; grid-template-columns:1fr 36px; gap:8px; align-items:center; margin-bottom:8px; }
.ct-progress i { display:block; height:7px; border-radius:99px; background:#eef0f4; overflow:hidden; }
.ct-progress i b { display:block; height:100%; background:linear-gradient(90deg,#34d399,#4f46e5); border-radius:inherit; }
.ct-progress em { font-style:normal; font-size:11px; font-weight:700; color:#111827; text-align:right; }
.ct-card footer { display:flex; justify-content:space-between; font-size:11px; color:#9ca3af; margin-bottom:8px; }
.ct-card footer small.due { color:#d97706; font-weight:700; }
.ct-actions { display:flex; gap:6px; flex-wrap:wrap; }
.ct-actions button {
  height:28px; padding:0 10px; border-radius:7px; border:1px solid #e5e7eb; background:#fff;
  font-size:11px; font-weight:650; color:#374151; cursor:pointer;
}
.ct-actions button.danger { color:#dc2626; border-color:#fecaca; background:#fef2f2; }
.ct-empty { text-align:center; padding:24px 8px; font-size:12px; color:#9ca3af; }
.ct-empty.big { padding:48px; background:#fff; border:1px dashed #d1d5db; border-radius:12px; }
.ct-types { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.ct-type-col { background:#fff; border:1px solid #e7e9ee; border-radius:12px; padding:10px; min-height:280px; }
.ct-type-col header { display:flex; align-items:center; gap:6px; font-size:12px; font-weight:700; margin-bottom:8px; color:#111827; }
.ct-type-col header i { color:#4f46e5; }
.ct-type-col header b { margin-left:auto; font-size:11px; color:#9ca3af; }
.ct-card.slim { cursor:pointer; padding:10px; }
.ct-timeline { display:grid; gap:0; padding-left:12px; border-left:2px solid #e5e7eb; }
.ct-tl-item { position:relative; padding:0 0 16px 18px; }
.ct-tl-dot { position:absolute; left:-19px; top:14px; width:12px; height:12px; border-radius:50%; background:#4f46e5; border:2px solid #fff; box-shadow:0 0 0 2px #c7d2fe; }
.ct-tl-card { background:#fff; border:1px solid #e7e9ee; border-radius:12px; padding:14px; }
.ct-modal-mask { position:fixed; inset:0; z-index:60; background:rgba(15,23,42,.45); display:flex; align-items:center; justify-content:center; padding:16px; }
.ct-modal { background:#fff; border-radius:14px; width:100%; max-width:480px; padding:20px; box-shadow:0 24px 60px rgba(15,23,42,.2); }
.ct-modal.wide { max-width:640px; }
.ct-modal h3 { margin:0 0 14px; font-size:16px; color:#111827; display:flex; align-items:center; gap:8px; }
.ct-form label { display:block; font-size:12px; color:#6b7280; font-weight:650; margin:10px 0 6px; }
.ct-type-pick { display:flex; flex-wrap:wrap; gap:6px; }
.ct-type-pick button {
  height:30px; padding:0 10px; border-radius:999px; border:1px solid #e5e7eb; background:#fff; font-size:12px; cursor:pointer;
}
.ct-type-pick button.on { background:#eef2ff; border-color:#c7d2fe; color:#4338ca; font-weight:700; }
.ct-modal-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:16px; }
.ct-detail-main h4 { margin:0 0 6px; font-size:15px; }
.ct-detail-main p { margin:0 0 10px; font-size:13px; color:#4b5563; }
.ct-detail-meta { display:flex; flex-wrap:wrap; gap:10px; font-size:12px; color:#6b7280; margin-bottom:12px; }
.ct-detail-students b { display:block; font-size:12px; margin-bottom:8px; }
.ct-stu-row { display:flex; justify-content:space-between; padding:8px 10px; border-radius:8px; background:#f8fafc; margin-bottom:6px; font-size:13px; }
.ct-stu-row.done { background:#ecfdf5; }
.ct-stu-row em { font-style:normal; font-weight:700; color:#dc2626; }
.ct-stu-row.done em { color:#059669; }
.ct-side-tip { font-size:12px; color:#9ca3af; }

/* ===== Student Roster Observatory ===== */
.sr-page { max-width:1280px !important; margin:0 auto; padding:8px 28px 48px !important; display:grid !important; gap:12px; }
.sr-lenses { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.sr-lenses button {
  text-align:left; border:1px solid #e7e9ee; background:#fff; border-radius:12px; padding:12px 14px; cursor:pointer;
}
.sr-lenses button.on { border-color:#818cf8; box-shadow:0 0 0 3px rgba(79,70,229,.12); }
.sr-lenses b { display:block; font-size:22px; color:#111827; font-weight:800; }
.sr-lenses span { display:block; margin-top:2px; font-size:13px; font-weight:700; color:#374151; }
.sr-lenses small { display:block; margin-top:2px; font-size:11px; color:#9ca3af; }
.sr-toolbar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; background:#fff; border:1px solid #e7e9ee; border-radius:12px; padding:10px 12px; }
.sr-toolbar .auth-input { width:auto; min-width:140px; }
.sr-search { flex:1; min-width:180px; }
.sr-compare-tip { font-size:12px; color:#4f46e5; font-weight:700; }
.sr-table { display:grid; gap:8px; }
.sr-row {
  display:grid; grid-template-columns:32px 40px minmax(0,1.1fr) minmax(0,1.6fr) 72px 36px; gap:10px; align-items:center;
  background:#fff; border:1px solid #e7e9ee; border-radius:12px; padding:10px 12px; cursor:pointer;
}
.sr-row:hover { border-color:#c7d2fe; }
.sr-cmp { width:28px; height:28px; border-radius:8px; border:1px solid #e5e7eb; background:#fff; cursor:pointer; color:#9ca3af; }
.sr-cmp.on { background:#eef2ff; color:#4f46e5; border-color:#c7d2fe; }
.sr-av { width:36px; height:36px; border-radius:10px; color:#fff; display:grid; place-content:center; font-weight:800; font-size:14px; }
.sr-av.lg { width:52px; height:52px; font-size:20px; border-radius:14px; }
.sr-id strong { display:block; font-size:13px; color:#111827; }
.sr-id small { font-size:11px; color:#9ca3af; }
.sr-bars { display:grid; gap:4px; }
.sr-bars > div { display:grid; grid-template-columns:28px 1fr 28px; gap:6px; align-items:center; font-size:10px; color:#6b7280; }
.sr-bars i { display:block; height:6px; border-radius:99px; background:#eef0f4; overflow:hidden; }
.sr-bars i b { display:block; height:100%; border-radius:inherit; }
.sr-bars em { font-style:normal; font-weight:700; color:#111827; text-align:right; }
.sr-badge { font-size:11px; font-weight:750; padding:4px 8px; border-radius:999px; text-align:center; }
.sr-badge.ok { background:#eff6ff; color:#1d4ed8; }
.sr-badge.good { background:#ecfdf5; color:#047857; }
.sr-badge.warn { background:#fef2f2; color:#b91c1c; }
.sr-note-btn { border:0; background:#f8fafc; border-radius:8px; width:32px; height:32px; cursor:pointer; }
.sr-constellation {
  display:flex; flex-wrap:wrap; gap:12px; align-content:flex-start; min-height:360px;
  background:radial-gradient(circle at 20% 20%, #eef2ff, #f8fafc 45%, #fff);
  border:1px solid #e7e9ee; border-radius:16px; padding:20px;
}
.sr-star {
  border-radius:50%; color:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center;
  cursor:pointer; box-shadow:0 8px 20px rgba(15,23,42,.12); transition:transform .15s;
  background:#6366f1;
}
.sr-star:hover { transform:scale(1.06); }
.sr-star.good { background:linear-gradient(145deg,#34d399,#059669); }
.sr-star.ok { background:linear-gradient(145deg,#60a5fa,#2563eb); }
.sr-star.warn { background:linear-gradient(145deg,#f87171,#dc2626); }
.sr-star.cmp { outline:3px solid #fbbf24; }
.sr-star span { font-weight:800; font-size:16px; }
.sr-star small { font-size:9px; opacity:.9; max-width:70px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sr-const-tip { width:100%; margin:8px 0 0; font-size:11px; color:#6b7280; }
.sr-radar-view { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.sr-radar-col { background:#fff; border:1px solid #e7e9ee; border-radius:12px; padding:12px; min-height:280px; }
.sr-radar-col h3 { margin:0 0 10px; font-size:13px; }
.sr-radar-col article {
  padding:10px; border-radius:10px; background:#f8fafc; margin-bottom:8px; cursor:pointer; border:1px solid #eef0f4;
}
.sr-radar-col article:hover { border-color:#c7d2fe; }
.sr-radar-col b { display:block; font-size:13px; color:#111827; }
.sr-radar-col span { font-size:11px; color:#6b7280; }
.sr-radar-col.good article { background:#ecfdf5; }
.sr-radar-col.quiet article { background:#fff7ed; }
.sr-muted { font-size:12px; color:#9ca3af; }
.sr-empty { text-align:center; padding:48px 16px; background:#fff; border:1px dashed #d1d5db; border-radius:12px; color:#9ca3af; }
.sr-empty i { font-size:32px; }
.sr-empty h3 { margin:8px 0; color:#111827; font-size:15px; }
.sr-compare { background:#fff; border:1px solid #e7e9ee; border-radius:12px; padding:14px; }
.sr-compare-h { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.sr-compare-h h3 { margin:0; font-size:14px; }
.sr-compare-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.sr-compare-card {
  border:1px solid #eef0f4; border-radius:12px; padding:14px; background:#fafbfc; text-align:center;
}
.sr-compare-card.empty { display:grid; place-content:center; color:#9ca3af; font-size:12px; min-height:160px; }
.sr-compare-card .sr-av { margin:0 auto 8px; }
.sr-compare-card ul { list-style:none; margin:10px 0; padding:0; text-align:left; font-size:12px; color:#6b7280; }
.sr-compare-card li { display:flex; justify-content:space-between; padding:4px 0; }
.sr-compare-card em { font-style:normal; font-weight:700; color:#111827; }
.sr-detail-head { display:flex; gap:12px; align-items:center; margin-bottom:12px; }
.sr-detail-head b { display:block; font-size:16px; }
.sr-detail-head p { margin:0; font-size:12px; color:#6b7280; }
.sr-detail-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-bottom:12px; }
.sr-detail-kpis div { background:#f8fafc; border-radius:10px; padding:10px; text-align:center; }
.sr-detail-kpis span { display:block; font-size:11px; color:#9ca3af; }
.sr-detail-kpis b { font-size:18px; color:#111827; }
.sr-scores b { display:block; font-size:12px; margin-bottom:6px; }
.sr-score-row { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid #f3f4f6; font-size:13px; }
.sr-score-row em { font-style:normal; font-weight:700; }
.sr-score-row em.ok { color:#059669; }
.sr-score-row em.mid { color:#d97706; }
.sr-score-row em.low { color:#dc2626; }
.sr-note-box { margin-top:12px; }
.sr-note-box b { display:block; font-size:12px; margin-bottom:6px; }
.sr-note-box textarea { margin-bottom:8px; }

@media (max-width:1100px) {
  .ct-radar, .ct-packs, .ct-board, .ct-types, .sr-lenses, .sr-radar-view, .sr-compare-grid { grid-template-columns:1fr 1fr; }
  .ct-week-strip { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .ct-radar, .ct-packs, .ct-board, .ct-types, .sr-lenses, .sr-radar-view, .sr-row, .sr-detail-kpis { grid-template-columns:1fr; }
  .sr-row { grid-template-columns:32px 40px 1fr; }
  .sr-bars, .sr-badge, .sr-note-btn { display:none; }
}

