.brand b {
  font-size: 21px !important;
  padding: 8px 6px !important;
  letter-spacing: -2px;
}
.brand span {
  font-size: 16px !important;
  letter-spacing: 1px;
}
.profile-card {
  padding: 28px;
  max-width: 800px;
}
.wrap-cell {
  white-space: normal;
  min-width: 230px;
  max-width: 420px;
  line-height: 1.8;
}
.invite-code {
  font-size: 34px;
  letter-spacing: 4px;
  color: #255bd3;
  margin: 28px 0;
}
.auth-view aside,
.auth-view header,
.auth-view footer {
  display: none;
}
.auth-view .shell {
  margin: 0;
}
.auth-view main {
  padding: 0;
  max-width: none;
  min-height: 100vh;
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 44% 56%;
  background: white;
}
.auth-brand {
  background: #10233e;
  color: white;
  padding: 55px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.auth-wordmark {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
}
.auth-wordmark span {
  color: #4cdeba;
}
.auth-brand h1 {
  font-size: 48px;
  line-height: 1.4;
  letter-spacing: 1px;
  margin: 25px 0;
}
.auth-brand p {
  color: #a5b9cf;
  font-size: 17px;
  line-height: 2;
}
.eyebrow {
  color: #4cdeba;
  font-size: 11px;
  letter-spacing: 2px;
}
.auth-foot {
  font-size: 10px;
  letter-spacing: 3px;
  color: #758da9;
}
.auth-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 42px;
}
.auth-inner {
  width: 100%;
  max-width: 510px;
}
.auth-inner > h1 {
  font-size: 28px;
  margin: 22px 0 10px;
}
.role-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: #f0f4f9;
  padding: 5px;
  border-radius: 8px;
  margin: 26px 0;
}
.role-tabs button {
  padding: 11px 4px;
  border: 0;
  background: transparent;
  font-size: 13px;
}
.role-tabs .selected {
  background: white;
  color: #2057cd;
  box-shadow: 0 2px 5px #172f5210;
}
.auth-inner form .form-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}
.auth-inner input {
  padding: 13px;
  font-size: 15px;
}
.auth-submit {
  width: 100%;
  margin-top: 23px;
  padding: 13px;
}
.auth-switch {
  font-size: 13px;
  text-align: center;
  margin: 14px 0;
}
.demo-entry {
  border-top: 1px solid #e9eef5;
  margin-top: 23px;
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  color: #8d9cb0;
  font-size: 12px;
}
.demo-entry button {
  color: #2357ca;
  background: #f4f7ff;
  border-color: #dde7ff;
}
.auth-disclaimer {
  font-size: 12px !important;
  margin-top: 19px !important;
  color: #91a0b4 !important;
  line-height: 1.8 !important;
}
#auth-error {
  color: #c24d55;
  font-size: 13px;
  margin-top: 9px;
}
.profile-card h2 {
  margin-bottom: 22px;
}
@media (max-width: 1000px) {
  .auth-brand {
    padding: 40px;
  }
  .auth-brand h1 {
    font-size: 37px;
  }
  .auth-panel {
    padding: 30px;
  }
}
@media (max-width: 720px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    min-height: auto;
    padding: 24px;
  }
  .auth-brand > div:not(:first-child) {
    display: none;
  }
  .auth-panel {
    padding: 26px 22px;
  }
  .auth-inner > h1 {
    font-size: 24px;
  }
  .profile-card {
    padding: 20px;
  }
  .role-tabs button {
    font-size: 12px;
  }
  .invite-code {
    font-size: 28px;
  }
}
:root {
  font-family: Inter, "Microsoft YaHei", sans-serif;
  color: #20324c;
  background: #f4f7fb;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select {
  cursor: pointer;
}
button {
  border: 1px solid #dce3eb;
  background: white;
  border-radius: 7px;
  padding: 10px 16px;
  color: #30415a;
}
button:hover {
  background: #edf3fa;
}
button.primary {
  background: #174fdb;
  border-color: #174fdb;
  color: white;
}
button.danger {
  color: #c94c58;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 234px;
  background: #10233e;
  color: #9aabc0;
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
  letter-spacing: 2px;
  padding: 0 9px;
}
.brand b {
  background: #46d6b1;
  color: #10233e;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 29px;
}
.brand span {
  font-size: 17px;
  font-weight: 700;
}
small {
  display: block;
  font-size: 12px;
  font-weight: 400;
}
.brand small {
  letter-spacing: 2px;
  color: #849bb7;
  margin-top: 5px;
  font-size: 10px;
}
.workspace {
  border: 1px solid #2b3d55;
  border-radius: 8px;
  padding: 13px;
  margin: 32px 3px;
  font-size: 12px;
}
.workspace strong {
  display: block;
  color: #dce5ef;
  margin-top: 7px;
  font-size: 14px;
  font-weight: 500;
}
.nav-label {
  padding: 0 15px;
  margin-bottom: 10px;
  color: #718aa8;
}
nav a {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 15px;
  margin: 6px 0;
  border-radius: 7px;
}
nav a.active {
  color: white;
  background: #2250ad;
}
nav a:hover {
  background: #203b5f;
  color: white;
}
nav i {
  font-style: normal;
  font-size: 19px;
  width: 20px;
}
.side-bottom {
  margin-top: auto;
  padding: 20px 3px 0;
  border-top: 1px solid #293c56;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #e2e9f3;
}
.side-bottom small {
  color: #859ab5;
  margin-top: 5px;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #dbe8ff;
  color: #3263ac;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.shell {
  margin-left: 234px;
}
header {
  height: 77px;
  padding: 0 36px;
  background: white;
  border-bottom: 1px solid #e5eaf1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
em {
  font-style: normal;
  color: #bdc7d6;
  margin: 0 16px;
}
.header-right {
  display: flex;
  gap: 24px;
  align-items: center;
}
.demo {
  color: #a57013;
  background: #fff5d9;
  border: 1px solid #f0dea7;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
}
main {
  padding: 32px 36px;
  min-height: calc(100vh - 124px);
  max-width: 1750px;
  margin: auto;
}
h1 {
  font-size: 26px;
  letter-spacing: -0.7px;
  margin: 0 0 9px;
  font-weight: 700;
}
h2 {
  font-size: 16px;
  margin: 0;
}
p {
  color: #8490a3;
  margin: 0;
  line-height: 1.7;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
  gap: 16px;
}
.actions {
  display: flex;
  gap: 10px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.card {
  background: white;
  border: 1px solid #e3e9f1;
  border-radius: 10px;
  box-shadow: 0 3px 6px #122b4903;
}
.metric {
  padding: 21px 22px;
}
.metric label {
  color: #748299;
}
.metric strong {
  display: block;
  font-size: 28px;
  letter-spacing: -1px;
  color: #1b2d48;
  margin: 17px 0 12px;
  font-weight: 600;
}
.metric small {
  color: #8996a8;
}
.metric small b {
  color: #18a080;
  margin-right: 8px;
  font-weight: 500;
}
.metric-icon {
  float: right;
  color: #5982da;
  background: #eef4ff;
  padding: 6px 9px;
  border-radius: 6px;
}
.grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}
.panel-head {
  padding: 21px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-head small {
  color: #8c99aa;
  margin-top: 7px;
}
.chart {
  padding: 0 24px 18px;
}
.chart svg {
  width: 100%;
  height: 210px;
  overflow: visible;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  color: #9aa6b6;
  font-size: 12px;
  padding-left: 38px;
}
.legend {
  font-size: 12px;
  color: #8492a7;
}
.legend b {
  color: #2b65e7;
  margin-right: 5px;
}
.task {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 23px;
  border-top: 1px solid #edf1f5;
}
.task .icon {
  background: #fff4df;
  color: #ce9436;
  padding: 10px;
  border-radius: 8px;
  font-size: 19px;
}
.task div {
  flex: 1;
}
.task small {
  margin-top: 6px;
  color: #91a0b3;
}
.task strong {
  font-size: 22px;
  font-weight: 600;
}
.task button {
  font-size: 12px;
  padding: 6px 9px;
  border: 0;
  color: #54719e;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}
th {
  background: #f8fafd;
  color: #8390a4;
  font-size: 12px;
  font-weight: 500;
  padding: 13px 22px;
  border-bottom: 1px solid #e9edf3;
}
td {
  padding: 16px 22px;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  font-weight: 500;
  color: #263a56;
}
td small {
  color: #99a5b5;
  margin-top: 5px;
  font-size: 12px;
}
.badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 5px;
  background: #e8f6f1;
  color: #219979;
  font-size: 12px;
}
.badge.warn {
  background: #fff4dc;
  color: #b8892a;
}
.badge.bad {
  background: #fff0f0;
  color: #d16468;
}
.badge.blue {
  background: #edf3ff;
  color: #4c74c1;
}
.text-btn {
  border: 0;
  background: none;
  color: #376ed6;
  padding: 4px 0;
  font-size: 13px;
}
.toolbar {
  display: flex;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid #edf1f5;
  align-items: center;
  flex-wrap: wrap;
}
input,
select,
textarea {
  border: 1px solid #dae2ee;
  background: white;
  border-radius: 6px;
  padding: 10px 12px;
  color: #30415a;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #356fe0;
  box-shadow: 0 0 0 3px #356fe012;
}
.toolbar input {
  min-width: 260px;
}
.toolbar span {
  margin-left: auto;
  color: #8a98aa;
  font-size: 12px;
}
footer {
  padding: 16px 36px;
  font-size: 11px;
  color: #a0aec0;
  border-top: 1px solid #e4eaf2;
  display: flex;
  justify-content: space-between;
}
.empty {
  text-align: center;
  padding: 45px;
  color: #8291a5;
}
.notes {
  padding: 20px 24px;
  line-height: 1.8;
  color: #7d8c9f;
}
dialog {
  border: 0;
  border-radius: 14px;
  width: min(570px, 94vw);
  padding: 28px;
  box-shadow: 0 20px 100px #12254055;
  color: #20324c;
}
dialog::backdrop {
  background: #10213d70;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 20px;
  margin-bottom: 23px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
label.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
label.full {
  grid-column: 1/-1;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.detail-grid small {
  color: #8190a3;
  margin-bottom: 7px;
}
.notice {
  background: #f3f7fd;
  color: #637c9f;
  font-size: 13px;
  padding: 13px;
  border-radius: 7px;
  margin-top: 20px;
  line-height: 1.8;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 24px;
  background: #152d4b;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 25px #10233e30;
  display: none;
  z-index: 10;
}
.positive {
  color: #219d80;
}
.negative {
  color: #d1696d;
}
.rank {
  padding: 0 23px 18px;
}
.rank-row {
  margin: 15px 0;
}
.rank-row div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 9px;
}
.bar {
  height: 6px;
  background: #eef3f8;
  border-radius: 8px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  background: #4a7de2;
  border-radius: 8px;
}
@media (min-width: 1500px) {
  .chart svg {
    height: 260px;
  }
}
@media (max-width: 1100px) {
  aside {
    width: 200px;
  }
  .shell {
    margin-left: 200px;
  }
  main {
    padding: 25px 22px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 17px;
  }
  .metric strong {
    font-size: 23px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .header-right {
    gap: 12px;
  }
}
@media (max-width: 720px) {
  aside {
    position: static;
    width: auto;
    padding: 16px;
  }
  .brand {
    padding: 0;
  }
  .workspace,
  .nav-label,
  .side-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 4px;
    margin-top: 13px;
  }
  nav a {
    white-space: nowrap;
    padding: 9px;
    margin: 0;
    font-size: 12px;
  }
  nav i {
    display: none;
  }
  .shell {
    margin: 0;
  }
  header {
    height: 58px;
    padding: 0 18px;
  }
  .header-right > span:nth-child(2) {
    display: none;
  }
  main {
    padding: 22px 15px;
  }
  .page-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric strong {
    font-size: 24px;
  }
  .grid {
    gap: 15px;
  }
  h1 {
    font-size: 23px;
  }
  .toolbar input {
    min-width: 0;
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  label.full {
    grid-column: auto;
  }
  footer {
    display: block;
    padding: 16px;
  }
  footer span {
    display: block;
    margin-top: 7px;
  }
}
