:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --bg-2: #eef0f4;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --surface-3: #f0f2f6;
  --ink: #17191c;
  --ink-soft: #34383f;
  --muted: #6f7580;
  --muted-2: #989ea8;
  --line: #e3e6eb;
  --line-strong: #d4d8df;
  --brand: #111317;
  --brand-2: #4f5ee8;
  --brand-soft: #eef0ff;
  --amber: #8a6200;
  --amber-soft: #fff7df;
  --blue: #4f5ee8;
  --blue-soft: #eef0ff;
  --red: #c2414d;
  --red-soft: #fff0f1;
  --green: #16805c;
  --green-soft: #eaf7f1;
  --shadow: 0 12px 30px rgba(20, 24, 31, 0.06);
  --shadow-soft: 0 1px 2px rgba(20, 24, 31, 0.04);
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --sidebar-width: 248px;
  --nav-item-height: 54px;
}

html {
  background: var(--bg);
  scrollbar-color: #c7cbd3 transparent;
}

[hidden] {
  display: none !important;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.55 var(--font);
  letter-spacing: -0.01em;
}

::selection {
  background: #dfe3ff;
  color: var(--ink);
}

button,
.button,
input,
textarea,
select {
  font: inherit;
}

button,
.button {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  min-height: 36px;
  padding: 0 12px;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

button:hover,
.button:hover {
  background: #f7f8fa;
  border-color: #b9bec8;
  box-shadow: var(--shadow-soft);
}

button:active,
.button:active {
  transform: scale(0.985);
}

button:focus-visible,
.button:focus-visible,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(79, 94, 232, 0.14);
  outline: none;
}

input,
textarea,
select {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  min-height: 40px;
  padding: 9px 12px;
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #a0a5ae;
  font-size: 13px;
}

label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  gap: 7px;
}

input[type="file"] {
  align-items: center;
  color: var(--ink-soft);
  cursor: pointer;
  min-height: 44px;
  padding: 5px 6px;
}

input[type="file"]::file-selector-button {
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: 650 13px/1 var(--font);
  height: 32px;
  margin-right: 12px;
  padding: 0 14px;
}

input[type="file"]::file-selector-button:hover {
  background: #272a30;
  border-color: #272a30;
}

.login-screen {
  align-items: center;
  background: #f5f5f7;
  color: #1d1d1f;
  display: grid;
  gap: clamp(52px, 6vw, 96px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  min-height: 100dvh;
  padding: clamp(32px, 4vw, 56px) max(24px, calc((100vw - 1320px) / 2));
}

.login-showcase {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 16px 0;
}

.login-brand-mark {
  aspect-ratio: 188 / 217;
  margin-bottom: 26px;
  position: relative;
  width: clamp(76px, 6.5vw, 94px);
}

.login-brand-logo {
  display: block;
  height: 100%;
  image-rendering: auto;
  object-fit: contain;
  width: 100%;
}

.login-brand-logo--ink {
  clip-path: inset(64.5% 0 0);
  filter: brightness(0) saturate(100%);
  inset: 0;
  position: absolute;
}

.login-copy {
  max-width: 720px;
}

.login-panel-head > span {
  color: #6c5bdf;
  display: block;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.login-copy h1 {
  color: #1d1d1f;
  font-size: clamp(38px, 4vw, 60px);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1.04;
  white-space: nowrap;
}

.login-copy strong {
  color: #1d1d1f;
  display: block;
  font-size: clamp(19px, 1.8vw, 26px);
  font-weight: 570;
  letter-spacing: -0.025em;
  margin-top: 22px;
}

.login-copy p {
  color: #6e6e73;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.75;
  margin-top: 14px;
}

.login-art {
  border-radius: 28px;
  height: clamp(240px, 25.5vw, 326px);
  margin-top: 36px;
  overflow: hidden;
  width: 100%;
}

.login-art img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.login-auth-stack {
  position: relative;
  width: 100%;
  z-index: 3;
}

.login-panel {
  background: #fff;
  border: 1px solid #e2e2e7;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(39, 45, 62, 0.12);
  padding: 42px;
}

.login-panel-head h2 {
  color: #1d1d1f;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.login-panel-head p,
.login-status {
  color: #86868b;
  font-size: 13px;
}

.login-panel-head p {
  margin-top: 7px;
}

.login-field {
  color: #3a3a3c;
  display: grid;
  font-size: 13px;
  font-weight: 650;
  gap: 8px;
  margin-top: 22px;
}

.login-field input {
  background: #fafafa;
  border: 1px solid #d2d2d7;
  border-radius: 13px;
  color: #1d1d1f;
  font-size: 15px;
  min-height: 50px;
  padding: 0 16px;
}

.login-field input:focus {
  background: #fff;
  border-color: #5a67d8;
  box-shadow: 0 0 0 4px rgba(90, 103, 216, 0.12);
  outline: 0;
}

.login-submit {
  background: #1d1d1f;
  border-color: #1d1d1f;
  border-radius: 13px;
  color: #fff;
  margin-top: 26px;
  min-height: 50px;
  width: 100%;
}

.login-submit:hover {
  background: #333336;
  border-color: #333336;
}

.login-back {
  background: transparent;
  border: 0;
  color: #6e6e73;
  margin-top: 8px;
  min-height: 40px;
  width: 100%;
}

.login-back:hover {
  background: #f3f3f5;
  border: 0;
  box-shadow: none;
}

.login-status {
  margin-top: 14px;
  min-height: 20px;
  text-align: center;
}

.login-status.error {
  color: #b42318;
}

.login-status.success {
  color: #067647;
}

.app-shell {
  background: var(--bg);
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.workflow-sidebar {
  background: rgba(249, 250, 252, 0.94);
  backdrop-filter: blur(22px) saturate(140%);
  border-right: 1px solid var(--line);
  color: var(--ink);
  inline-size: var(--sidebar-width);
  min-height: 100dvh;
  padding: 24px 16px 18px;
  position: sticky;
  top: 0;
}

.brand-block {
  border-bottom: 0;
  padding: 0 8px 20px;
}

.brand-kicker,
.workspace-kicker,
.page-kicker {
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.brand-block h1 {
  color: var(--ink);
  font-size: 21px;
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.brand-block p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin-top: 9px;
}

.workflow-nav {
  gap: 5px;
  margin-top: 0;
  padding-right: 0;
}

.tab-button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #555b65;
  gap: 1px 11px;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: 20px 16px;
  height: var(--nav-item-height);
  max-height: var(--nav-item-height);
  min-height: var(--nav-item-height);
  padding: 8px 10px;
}

.tab-button:hover {
  background: rgba(227, 230, 236, 0.6);
  border-color: transparent;
  box-shadow: none;
  color: var(--ink);
}

.tab-button span {
  background: #eceef2;
  border: 0;
  border-radius: 8px;
  color: #777d87;
  font-size: 10px;
  font-weight: 760;
  height: 28px;
  width: 28px;
}

.tab-button strong {
  color: inherit;
  font-size: 14px;
  font-weight: 680;
}

.tab-button em {
  color: #9297a0;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.tab-button.active {
  background: var(--brand-soft);
  border-color: #dde1ff;
  box-shadow: 0 1px 2px rgba(79, 94, 232, 0.05);
  color: #2f3cca;
}

.tab-button.active span {
  background: var(--brand-2);
  color: #fff;
}

.tab-button.active em {
  color: #6f78ca;
}

.settings-entry {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 10px;
}

.ip-switcher {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  margin-top: 16px;
  padding: 12px;
}

.ip-switcher label,
.ip-switcher label span {
  color: var(--ink-soft);
}

.ip-switcher input,
.ip-switcher select {
  background: var(--surface-2);
  border-color: transparent;
  min-height: 38px;
}

.ip-create {
  gap: 7px;
}

.ip-create button {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  min-height: 38px;
}

.ip-switcher p {
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.45;
  margin-top: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-shell {
  min-width: 0;
  padding: 0;
}

.workspace-topbar {
  align-items: center;
  background: rgba(245, 246, 248, 0.86);
  backdrop-filter: blur(22px) saturate(140%);
  border-bottom: 1px solid rgba(221, 224, 230, 0.82);
  display: flex;
  justify-content: space-between;
  min-height: 92px;
  padding: 18px 30px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.workspace-topbar > div:first-child {
  min-width: 0;
}

.workspace-topbar h2 {
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.workspace-topbar p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
  max-width: min(860px, 70vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-kicker {
  margin-bottom: 5px;
}

.toolbar {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 8px;
}

.user-role-badge {
  background: var(--brand-soft);
  border: 1px solid #dde1ff;
  border-radius: 8px;
  color: #3b47bf;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
}

#refreshButton,
.home-hero button,
.planner-controls button,
.wide-button {
  min-height: 36px;
}

#refreshButton,
.primary-action,
.wide-button,
.form-actions button[type="submit"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

#refreshButton:hover,
.primary-action:hover,
.wide-button:hover,
.form-actions button[type="submit"]:hover {
  background: #272a30;
  border-color: #272a30;
}

.workspace-body {
  display: block;
  margin: 0 auto;
  max-width: 1680px;
  padding: 28px 30px 56px;
}

.view-stack {
  min-width: 0;
}

.home-hero {
  align-items: flex-end;
  background: #16181d;
  border: 1px solid #24272e;
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(18, 20, 25, 0.12);
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
  min-height: 178px;
  padding: 30px 32px;
}

.home-hero > div:first-child {
  max-width: 760px;
}

.home-hero .page-kicker {
  color: #9ba5ff;
}

.home-hero h2 {
  color: #fff;
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 690;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.home-hero p {
  color: #aeb3bd;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 690px;
}

.hero-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.home-hero .secondary-jump {
  background: #fff;
  border-color: #fff;
  color: #17191c;
}

.home-hero .secondary-jump + .secondary-jump {
  background: #292c33;
  border-color: #3b3f48;
  color: #fff;
}

.planner-view,
.iteration-view,
.layout,
.benchmark-view,
.talk-view,
.teacher-view,
.transcript-view,
.accounts-view,
.model-view {
  gap: 20px;
}

.planner-control-panel,
.iteration-control-panel {
  align-items: flex-end;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 4px 2px 0;
}

.planner-control-panel h2,
.iteration-control-panel h2,
.section-title h2 {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.planner-control-panel p,
.iteration-control-panel p,
.section-title p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.planner-controls {
  align-items: flex-end;
  gap: 8px;
}

.planner-controls label {
  min-width: 142px;
}

.planner-controls button:first-of-type {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.planner-kpis,
.daily-review-summary,
.iteration-kpis {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  gap: 0;
  overflow: hidden;
}

.planner-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.daily-review-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.planner-kpi,
.daily-kpi {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  min-height: 112px;
  padding: 18px 20px;
}

.planner-kpi:last-child,
.daily-kpi:last-child {
  border-right: 0;
}

.planner-kpi > span,
.daily-kpi > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 620;
}

.planner-kpi strong,
.daily-kpi strong {
  color: var(--ink);
  font-size: 27px;
  font-weight: 690;
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin: 7px 0 6px;
}

.planner-kpi em,
.daily-kpi em {
  color: var(--muted-2);
  font-size: 11px;
  font-style: normal;
}

.planner-panel,
.iteration-panel,
.sessions,
.records,
.talk-side-panel,
.talk-main-panel,
.talk-editor-panel,
.teacher-version-panel,
.teacher-editor-panel,
.transcript-side-panel,
.transcript-form-panel,
.transcript-output-panel,
.account-settings-panel,
.model-settings-panel,
.benchmark-list-panel,
.breakdown-panel,
.template-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.daily-review-panel {
  margin-top: 4px;
}

.section-title {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title > span,
.meta,
.field-note {
  color: var(--muted);
}

.compact-title {
  margin-bottom: 12px;
}

.compact-title > span,
.section-title > span,
.status-badge,
.status-pill {
  background: var(--surface-3);
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  padding: 5px 8px;
}

.daily-start-grid {
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}

.start-card,
.highlight-card,
.slot-summary-card,
.iteration-record,
.talk-action-card,
.summary-card,
.review-kpi,
.teacher-material-panel,
.model-state-grid article,
.model-task-item,
.template-item,
.golden-item,
.feedback-item,
.acceptance-item,
.training-task,
.drop-card,
.task-block,
.system-step,
.recommend-box,
.prebroadcast-notice,
.confirm-box {
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 13px;
  box-shadow: none;
}

.start-card,
.highlight-card,
.slot-summary-card,
.iteration-record,
.talk-action-card,
.summary-card,
.review-kpi,
.teacher-material-panel,
.model-state-grid article,
.model-task-item,
.template-item,
.golden-item,
.feedback-item,
.acceptance-item,
.training-task,
.drop-card,
.recommend-box,
.prebroadcast-notice,
.confirm-box {
  padding: 14px;
}

.daily-review-columns {
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.daily-review-columns > section {
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 14px;
  min-width: 0;
  padding: 16px;
}

.daily-change-list,
.daily-training-plan,
.iteration-list,
.talk-action-list,
.training-task-list,
.acceptance-list,
.event-list,
.feedback-list,
.session-list,
.benchmark-list,
.template-list,
.golden-list,
.teacher-version-list,
.transcript-list,
.model-task-list {
  gap: 9px;
}

.daily-change,
.daily-plan-item,
.event-item,
.session-item,
.benchmark-item,
.teacher-version-item,
.transcript-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: none;
  padding: 12px;
}

.daily-change:hover,
.session-item:hover,
.benchmark-item:hover,
.teacher-version-item:hover,
.transcript-item:hover {
  border-color: #cfd3db;
}

.empty {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--muted-2);
  display: flex;
  font-size: 12px;
  justify-content: center;
  min-height: 82px;
  padding: 18px;
  text-align: center;
}

.planner-grid,
.iteration-grid {
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.planner-highlights,
.slot-summary-grid {
  gap: 10px;
}

.score-bars,
.metric-pills,
.slot-metrics,
.slot-scores {
  gap: 6px;
}

.week-schedule-grid {
  display: grid;
  gap: 10px;
  grid-auto-columns: minmax(184px, 1fr);
  grid-auto-flow: column;
  grid-template-columns: none;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
}

.day-column {
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 13px;
  gap: 8px;
  min-width: 184px;
  padding: 12px;
  scroll-snap-align: start;
}

.day-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

.slot-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  gap: 6px;
  min-height: 92px;
  padding: 10px;
}

.layout {
  grid-template-columns: 248px minmax(0, 1fr);
}

.benchmark-view {
  grid-template-columns: 250px minmax(420px, 1fr) 286px;
}

.talk-view {
  grid-template-columns: 240px minmax(380px, 1fr) 286px;
}

.teacher-view {
  grid-template-columns: 270px minmax(0, 1fr);
}

.transcript-view {
  grid-template-columns: minmax(280px, 0.72fr) minmax(380px, 1fr) 280px;
}

.accounts-view,
.model-view {
  grid-template-columns: minmax(0, 1fr);
}

.account-create-form {
  align-items: end;
  background: var(--surface-2);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr) auto;
  padding: 16px;
}

.account-create-form label {
  display: grid;
  gap: 7px;
}

.account-create-form label > span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.account-create-form button {
  min-width: 116px;
}

.account-manage-status {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 2px;
}

.account-manage-status.success {
  color: #16833c;
}

.account-manage-status.error {
  color: #c8392b;
}

.account-table {
  min-width: 760px;
  width: 100%;
}

.account-table td:first-child strong,
.account-table td:first-child span {
  display: block;
}

.account-table td:first-child span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.account-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 650;
  padding: 5px 8px;
}

.account-status.enabled {
  background: #eaf7ee;
  color: #16833c;
}

.account-status.disabled {
  background: #f1f2f4;
  color: var(--muted);
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-actions button {
  min-height: 34px;
  padding: 7px 10px;
}

.account-actions button.secondary {
  background: var(--surface);
  color: var(--ink);
}

.account-locked {
  color: var(--muted);
  font-size: 11px;
}

.review-panel,
.training-panel,
.acceptance-panel,
.barrage-grid,
.teacher-form,
.benchmark-form,
.transcript-form,
.model-form,
.talk-form {
  gap: 14px;
}

.review-panel,
.training-panel,
.acceptance-panel {
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 16px;
}

.table-wrap,
.line-table-wrap,
.benchmark-progress-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

th {
  background: #f7f8fa;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 11px 12px;
  position: sticky;
  text-align: left;
  top: 0;
  z-index: 2;
}

td {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 11px 12px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #fafbfc;
}

.talk-tag,
.block-chip,
.time-range-chip,
.gold-badge,
.metric-pills span,
.acceptance-tags span,
.iteration-values span,
.benchmark-status-chips span,
.task-due {
  background: var(--surface-3);
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
  padding: 5px 8px;
}

.status-success,
.start-ok,
.change-up {
  border-color: #cceadc;
}

.status-failed,
.start-risk,
.change-down,
.danger {
  border-color: #f0ced1;
}

.ai-insight-card {
  background: #f3f4ff;
  border: 1px solid #e0e3ff;
  border-radius: 14px;
  box-shadow: none;
  padding: 18px;
}

.ai-insight-grid section,
.role-action-grid section,
.barrage-result section {
  background: rgba(255, 255, 255, 0.72);
  border: 0;
  border-radius: 11px;
  padding: 12px;
}

.actions-row,
.form-actions,
.template-actions,
.talk-card-actions,
.acceptance-actions,
.task-actions {
  column-gap: 8px;
  row-gap: 8px;
}

.teacher-material-panel {
  margin-bottom: 24px;
}

.teacher-material-panel > .actions-row,
.teacher-editor-panel > .actions-row,
.breakdown-panel > .actions-row,
.transcript-form-panel > .actions-row,
.review-input > .actions-row,
.talk-side-panel > .actions-row,
.talk-editor-panel > .actions-row,
.model-settings-panel > .actions-row {
  margin-top: 14px;
  margin-bottom: 20px;
}

.actions-row.compact {
  margin-top: 12px;
  margin-bottom: 18px;
}

.benchmark-result-status {
  margin: 18px 0 20px;
}

.talk-side-panel .recommend-box {
  margin-top: 2px;
  padding: 16px;
}

.model-task-panel {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 22px;
}

.transcript-form-panel .prebroadcast-notice,
.transcript-form-panel .prebroadcast-notice.warn,
.transcript-form-panel .confirm-box,
.transcript-form-panel .confirm-box.empty {
  background: #f1f2ff;
  border: 1px solid #dfe2ff;
  color: #3b427c;
}

.transcript-form-panel .prebroadcast-notice strong,
.transcript-form-panel .confirm-box strong {
  color: #303a9f;
}

.action-rail {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  position: static;
}

.next-step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  min-height: 132px;
  padding: 18px;
}

.next-step-card span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.next-step-card strong {
  display: block;
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 5px;
}

.next-step-card p,
.next-step-card li {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.next-step-card .action-list {
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.small-button,
.acceptance-actions button,
.block-filter button,
.icon-button,
.copy-row-button {
  border-radius: 8px;
  min-height: 36px;
  padding: 0 12px;
}

.block-filter button.active,
.small-button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.transcript-output {
  background: var(--surface-2);
  border: 0;
  border-radius: 12px;
  max-height: 72dvh;
  padding: 16px;
}

.events-title,
.training-title,
.acceptance-title,
.review-title,
.workbook-title {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
}

@media (max-width: 1380px) {
  .daily-review-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .daily-kpi:nth-child(3) {
    border-right: 0;
  }

  .benchmark-view,
  .talk-view,
  .transcript-view {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  :root {
    --sidebar-width: 100%;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .workflow-sidebar {
    inline-size: auto;
    min-height: auto;
    padding: 16px;
    position: static;
  }

  .brand-block {
    padding: 0 4px 14px;
  }

  .brand-block p {
    max-width: 680px;
  }

  .workflow-nav {
    display: flex;
    gap: 7px;
    margin: 0 -2px;
    overflow-x: auto;
    padding: 0 2px 8px;
  }

  .tab-button {
    flex: 0 0 174px;
  }

  .settings-entry {
    border-top: 1px solid transparent;
    margin-top: 0;
    padding-top: 8px;
  }

  .ip-switcher {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(180px, 0.6fr) minmax(280px, 1fr);
    margin-top: 10px;
  }

  .ip-switcher p {
    grid-column: 1 / -1;
    margin: 0;
  }

  .workspace-topbar {
    position: static;
  }

  .planner-grid,
  .iteration-grid,
  .layout,
  .teacher-view,
  .review-panel,
  .training-panel,
  .acceptance-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .login-screen {
    align-content: start;
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 100dvh;
    overflow-y: auto;
    padding: 28px 16px 20px;
  }

  .login-showcase {
    align-items: center;
    padding: 0 4px;
    text-align: center;
  }

  .login-brand-mark {
    margin-bottom: 22px;
    width: 82px;
  }

  .login-copy h1 {
    font-size: clamp(26px, 7.4vw, 30px);
  }

  .login-copy strong {
    font-size: 17px;
    margin-top: 12px;
  }

  .login-copy p {
    font-size: 13px;
    margin-top: 12px;
  }

  .login-art {
    border-radius: 22px;
    height: 208px;
    margin-top: 24px;
  }

  .login-auth-stack {
    width: 100%;
  }

  .login-panel {
    border-radius: 22px;
    padding: 28px 24px;
  }

  .login-panel-head h2 {
    font-size: 27px;
  }

  .workspace-topbar {
    align-items: stretch;
    display: grid;
    gap: 14px;
    padding: 18px;
  }

  .workspace-topbar p {
    max-width: 90vw;
  }

  .workspace-body {
    padding: 18px 14px 40px;
  }

  .home-hero {
    align-items: stretch;
    display: grid;
    min-height: 0;
    padding: 24px;
  }

  .home-hero h2 {
    font-size: 27px;
  }

  .hero-actions,
  .toolbar,
  .planner-controls,
  .actions-row {
    align-items: stretch;
    display: grid;
  }

  .actions-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-rail {
    grid-template-columns: 1fr;
  }

  .planner-control-panel,
  .iteration-control-panel,
  .section-title {
    align-items: stretch;
    display: grid;
  }

  .planner-kpis,
  .daily-review-summary,
  .daily-start-grid,
  .daily-review-columns,
  .model-state-grid,
  .summary-grid,
  .ai-insight-grid,
  .teacher-material-grid,
  .teacher-form,
  .benchmark-form,
  .transcript-form,
  .account-create-form,
  .model-form,
  .talk-form,
  .barrage-grid,
  .drop-grid,
  .role-action-grid {
    grid-template-columns: 1fr;
  }

  .planner-kpi,
  .daily-kpi {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    min-height: 96px;
  }

  .planner-kpi:last-child,
  .daily-kpi:last-child {
    border-bottom: 0;
  }

  .ip-switcher {
    grid-template-columns: 1fr;
  }

  .ip-switcher p {
    grid-column: auto;
  }

  button,
  .button {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

}
