:root {
  --bg: #eef1f5;
  --paper: #ffffff;
  --panel: #ffffff;
  --line: #e7ebf0;
  --line-dark: #c8d0da;
  --ink: #20242a;
  --muted: #8a929d;
  --sub: #5d6570;
  --orange: #ff7a2f;
  --orange-soft: #fff2ea;
  --blue: #2487ff;
  --cyan: #16c7bd;
  --green: #31c350;
  --red: #f25757;
  --shadow: 0 16px 45px rgba(21, 34, 51, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

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

button {
  height: 36px;
  padding: 0 18px;
  border: 1px solid var(--line-dark);
  background: #fff;
  color: #3b414a;
  cursor: default;
}

button.primary {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

button.ghost {
  height: 30px;
  padding: 0 12px;
}

button.ghost.active {
  border-color: var(--orange);
  color: var(--orange);
}

input,
select,
textarea {
  height: 36px;
  border: 1px solid var(--line-dark);
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

textarea {
  height: 64px;
  padding-top: 10px;
  resize: none;
}

a {
  color: var(--orange);
  text-decoration: none;
  margin-right: 14px;
}

.prototype-board {
  padding: 28px 34px 56px;
}

.board-head {
  max-width: 1680px;
  margin: 0 auto 26px;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.board-head h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.board-head p,
.board-head span {
  margin: 6px 0 0;
  color: var(--muted);
}

.screen-row {
  max-width: 1680px;
  margin: 0 auto 44px;
}

.screen-label {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 0 2px 12px;
}

.screen-label strong {
  font-size: 20px;
}

.screen-label span {
  color: var(--muted);
}

.screen {
  width: 1680px;
  min-height: 920px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand {
  width: 186px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: conic-gradient(from 140deg, #1b8cff, #13b78f, #ff7a2f, #1b8cff);
}

.topnav {
  flex: 1;
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 34px;
  font-size: 16px;
}

.topnav b {
  height: 58px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  font-weight: 700;
}

.topnav b.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--sub);
  font-size: 13px;
}

.top-actions input {
  width: 160px;
  height: 30px;
  background: #f8f9fb;
}

.top-actions button {
  height: 30px;
  padding: 0 12px;
}

.layout {
  display: flex;
  min-height: 862px;
}

.layout.no-side {
  display: block;
}

.sidebar {
  width: 196px;
  flex: 0 0 196px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding-top: 18px;
}

.sidebar h3 {
  margin: 0 18px 15px;
  font-size: 16px;
}

.sidebar a {
  height: 44px;
  margin: 0;
  padding: 0 18px 0 30px;
  display: flex;
  align-items: center;
  color: #39404a;
  border-right: 3px solid transparent;
}

.sidebar a.on {
  color: var(--orange);
  background: var(--orange-soft);
  border-right-color: var(--orange);
}

.workspace {
  flex: 1;
  padding: 22px 24px 34px;
  overflow: hidden;
}

.page-title {
  height: 62px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.page-title h2 {
  margin: 0;
  font-size: 24px;
}

.page-title p {
  margin: 7px 0 0;
  color: var(--muted);
}

.page-title div:last-child {
  display: flex;
  gap: 10px;
}

.content-grid {
  width: 1040px;
  margin: 28px auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.content-grid.narrow {
  width: 100%;
  margin: 18px 0;
}

.panel,
.table-card,
.tree-card,
.setting-panel {
  background: var(--panel);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(20, 31, 44, 0.03);
}

.panel {
  padding: 22px 24px;
}

.panel h2,
.setting-panel h2 {
  margin: 0 0 18px;
  font-size: 18px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quick {
  min-height: 190px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 28px;
}

.quick-grid button {
  height: 58px;
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.quick-grid span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--orange);
}

.quick-grid button:nth-child(2) span,
.quick-grid button:nth-child(5) span {
  background: var(--blue);
}

.quick-grid button:nth-child(3) span,
.quick-grid button:nth-child(6) span {
  background: var(--cyan);
}

.license dl {
  margin: 0;
}

.license dt {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.license dd {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 800;
}

.chart {
  min-height: 285px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 6px 0 20px;
}

.stat-row span,
.stats-grid div {
  border: 1px solid var(--line);
  background: #fafbfc;
  padding: 13px 14px;
  color: var(--muted);
}

.stat-row b,
.stats-grid b {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 23px;
}

.bars {
  height: 150px;
  display: flex;
  align-items: end;
  gap: 24px;
  padding: 18px 24px 0;
  border-top: 1px dashed var(--line-dark);
}

.bars i {
  flex: 1;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  border-radius: 6px 6px 0 0;
}

.recent {
  min-height: 285px;
}

.project-card {
  position: relative;
  margin-top: 12px;
  padding: 14px 15px 14px 18px;
  background: #f7f9fb;
  border-left: 4px solid var(--blue);
}

.project-card b,
.project-card span {
  display: block;
}

.project-card span {
  margin-top: 5px;
  color: var(--muted);
}

.project-card a {
  position: absolute;
  right: 14px;
  top: 18px;
}

.tag {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 12px;
  font-style: normal;
}

.tag.green {
  color: #25a942;
  background: #e9faed;
}

.tag.cyan {
  color: #10a99f;
  background: #e8fbf9;
}

.split,
.sub-layout {
  display: flex;
  gap: 16px;
}

.tree-card {
  width: 220px;
  flex: 0 0 220px;
  padding: 16px;
}

.search,
.breadcrumb {
  height: 36px;
  border: 1px solid var(--line-dark);
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.tree {
  margin: 16px 0 0;
  padding: 0 0 0 12px;
  list-style: none;
  color: #47505a;
}

.tree li {
  padding: 9px 10px;
}

.tree .bold {
  font-weight: 800;
}

.tree .active {
  color: var(--orange);
  background: var(--orange-soft);
}

.table-card {
  flex: 1;
  overflow: hidden;
}

.table-card.full {
  width: 100%;
  padding-top: 0;
}

.more-popover {
  width: 116px;
  margin: 12px 0 0 auto;
  padding: 10px 0;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 26px rgba(18, 30, 48, 0.12);
}

.more-popover b,
.more-popover a {
  height: 32px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 14px;
}

.more-popover b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.filters {
  min-height: 62px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.filters input {
  width: 230px;
}

.filters select {
  width: 160px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  height: 48px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  color: #3d4550;
}

th {
  background: #fafafa;
  color: #2e343b;
  font-weight: 800;
}

.dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: #a6aeb8;
}

.dot.ok {
  background: var(--green);
}

.tabs {
  height: 50px;
  padding-left: 12px;
  display: flex;
  align-items: end;
  gap: 28px;
  background: #fff;
}

.tabs b {
  height: 50px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}

.tabs b.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.breadcrumb {
  width: calc(100% - 32px);
  margin: 16px;
  border: 0;
  background: #fff;
  color: var(--sub);
}

.folder,
.file {
  width: 18px;
  height: 14px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 3px;
  background: #ffb22c;
  vertical-align: -2px;
}

.file {
  height: 18px;
  background: var(--blue);
}

.file.doc {
  background: var(--red);
}

.file.audio {
  background: var(--cyan);
}

.category {
  width: 190px;
  flex: 0 0 190px;
  padding: 12px;
  background: #fff;
}

.category input {
  width: 100%;
  margin-bottom: 10px;
}

.category a {
  height: 34px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 10px;
  color: #444b54;
}

.category a.active {
  color: var(--orange);
  background: var(--orange-soft);
}

.editbar {
  height: 58px;
  display: grid;
  grid-template-columns: 120px 230px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 0 22px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.editbar b {
  font-size: 18px;
}

.editbar span {
  justify-self: center;
  border: 1px solid var(--line);
  padding: 7px 18px;
  color: #3f4751;
}

.editbar div {
  display: flex;
  gap: 8px;
}

.form-screen {
  background: #f0f2f5;
}

.form-page {
  width: 930px;
  margin: 18px auto 42px;
}

.project-builder {
  width: 1040px;
}

.form-block {
  margin-bottom: 14px;
  padding: 22px 28px;
  background: #fff;
}

.form-block h2 {
  margin: 0 0 18px;
  padding-left: 8px;
  border-left: 3px solid var(--ink);
  font-size: 17px;
}

.form-block label {
  min-height: 44px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  color: #49515d;
}

.form-block input,
.form-block select,
.form-block textarea {
  width: 100%;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 30px;
}

.two-col h2 {
  grid-column: 1 / -1;
}

.cover-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cover {
  width: 180px;
  height: 84px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ffbf36, #ff7a2f);
}

.cover.small {
  width: 96px;
  background: linear-gradient(135deg, #ffc857, #ffe39e);
}

.cover.small.blue {
  background: linear-gradient(135deg, #2487ff, #16c7bd);
}

.course-toolbar,
.content-pick {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.lesson-list {
  border: 1px solid var(--line);
}

.lesson-list div {
  height: 48px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 44px 1fr 160px 60px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.lesson-list div:last-child {
  border-bottom: 0;
}

.lesson-list b {
  color: var(--orange);
}

.lesson-list em {
  color: var(--muted);
  font-style: normal;
}

.seg {
  display: flex;
  gap: 0;
}

.seg button {
  min-width: 100px;
}

.seg button.active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.selected {
  margin-top: 14px;
  padding: 13px 16px;
  color: var(--sub);
  background: #fafbfc;
  border: 1px solid var(--line);
}

.switch-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.switch-line b {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
}

.switch-line em {
  color: var(--muted);
  font-style: normal;
}

.stage-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
}

.stage-tabs button.active {
  color: var(--orange);
  background: var(--orange-soft);
  border-color: var(--orange);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.stats-grid div {
  background: #fff;
}

.progress-list p,
.rank p {
  display: flex;
  justify-content: space-between;
  margin: 14px 0 8px;
}

.progress-list i {
  height: 8px;
  display: block;
  border-radius: 99px;
  background: #edf0f4;
  overflow: hidden;
}

.progress-list em {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.stat-detail {
  padding: 20px 24px 34px;
}

.detail-breadcrumb {
  margin: 0 0 22px;
  color: var(--muted);
}

.project-stat-head {
  min-height: 92px;
  padding: 0 0 18px;
  background: #fff;
}

.project-stat-head h2 {
  display: inline-block;
  margin: 0 18px 0 0;
  font-size: 24px;
}

.project-stat-head dl {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr;
  gap: 0 8px;
  margin: 24px 0 0;
  color: var(--sub);
}

.project-stat-head dt,
.project-stat-head dd {
  margin: 0;
}

.state {
  padding: 3px 9px;
  border: 1px solid var(--line-dark);
  color: var(--sub);
}

.stat-tabs {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.stat-tabs b {
  height: 56px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
}

.stat-tabs b.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.monitor-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 20px;
  padding: 22px 28px 18px;
  background: #fff;
}

.monitor-grid section {
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-height: 92px;
  border: 1px solid var(--line);
}

.monitor-grid p {
  min-width: 110px;
  margin: 0;
  text-align: center;
  border-right: 1px solid var(--line);
}

.monitor-grid p:last-child {
  border-right: 0;
}

.monitor-grid span {
  display: block;
  color: var(--muted);
}

.monitor-grid b {
  font-size: 24px;
}

.monitor-grid em {
  color: var(--muted);
  font-style: normal;
}

.monitor-grid b.orange {
  color: var(--orange);
}

.status-tabs {
  display: flex;
  gap: 0;
  padding: 0 28px 16px;
  background: #fff;
}

.status-tabs button {
  border-right: 0;
}

.status-tabs button:last-child {
  border-right: 1px solid var(--line-dark);
}

.status-tabs button.active {
  color: var(--orange);
  border-color: var(--orange);
  background: #fff;
}

.stat-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px 18px;
  background: #fff;
}

.stat-actions > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-actions input {
  width: 190px;
}

.stat-actions select {
  height: 36px;
  border: 1px solid var(--line-dark);
  background: #fff;
  padding: 0 12px;
}

.stat-table {
  margin-top: 0;
  border-top: 0;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.setting-panel {
  padding: 24px;
}

.setting-line {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.setting-line span {
  color: #3a414a;
  font-weight: 700;
}

.setting-line em {
  color: var(--sub);
  font-style: normal;
}

.switch {
  min-width: 44px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  color: #fff;
  background: #a6aeb8;
  font-size: 12px;
}

.switch.on {
  background: var(--orange);
}

.topbar.platform .brand {
  width: 230px;
}

.tenant-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.tenant-stats div {
  padding: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.tenant-stats b {
  display: block;
  margin-bottom: 5px;
  font-size: 28px;
}

.tenant-stats span {
  color: var(--muted);
}

.tenant-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
}

.tenant-table {
  background: #fff;
  border: 1px solid var(--line);
}

.tenant-form {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
}

.tenant-form h2 {
  margin: 0 0 16px;
}

.tenant-form label {
  display: block;
  margin-bottom: 12px;
  color: var(--sub);
  font-size: 13px;
}

.tenant-form input,
.tenant-form select {
  width: 100%;
  margin-top: 6px;
}

.tenant-form .seg {
  margin: 10px 0 16px;
}

.tenant-form > button {
  width: 100%;
}

.dot.off {
  background: var(--red);
}

.watermark-demo {
  height: 90px;
  margin-top: 18px;
  display: grid;
  place-items: center;
  color: rgba(255, 122, 47, 0.48);
  border: 1px dashed #ffc4a1;
  background: repeating-linear-gradient(-28deg, #fff, #fff 18px, #fff7f1 18px, #fff7f1 36px);
  font-weight: 800;
  transform: rotate(-2deg);
}
