:root {
  font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
  color: #dce5ef;
  background: #10151e;
  color-scheme: dark;
  font-size: 14px;
  --surface: #181f2b;
  --line: #2a3544;
  --muted: #8b9bb0;
  --green: #80dfb6;
  --danger: #f2a4a4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
a {
  color: var(--green);
  text-decoration: none;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
.hidden {
  display: none !important;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e4eef5;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  white-space: nowrap;
}
.brand-icon {
  background: var(--green);
  color: #102e24;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  letter-spacing: 0;
  font-size: 23px;
}
.shell {
  display: flex;
  min-height: 100vh;
}
aside {
  width: 224px;
  background: #121923;
  border-right: 1px solid var(--line);
  padding: 28px 18px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
}
.sidebar-caption {
  font-size: 11px;
  letter-spacing: 1px;
  color: #64768d;
  margin: 34px 13px 12px;
}
nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 15px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #93a4b9;
  text-align: left;
  margin: 4px 0;
}
nav button span {
  font-size: 18px;
  width: 20px;
  text-align: center;
}
nav button.active {
  background: #243a35;
  color: #a8edca;
}
nav button:hover {
  background: #202c3b;
}
.sidebar-bottom {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding: 24px 3px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  background: #293a4f;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #c1d5eb;
}
.sidebar-bottom strong {
  font-size: 13px;
}
.sidebar-bottom small {
  display: block;
  font-size: 11px;
  color: #758ba6;
  margin-top: 3px;
}
.sidebar-bottom button {
  border: 0;
  background: none;
  color: #9cadc2;
  margin-left: auto;
  font-size: 23px;
}
.workspace {
  margin-left: 224px;
  flex: 1;
  min-width: 0;
}
header {
  padding: 30px 36px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: #131a24;
}
.breadcrumb {
  font-size: 12px;
  color: #7588a0;
  display: flex;
  gap: 10px;
}
h1 {
  font-size: 25px;
  letter-spacing: -0.5px;
  margin: 11px 0 0;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  margin: 0 0 9px;
}
h3 {
  font-size: 14px;
  margin: 0 0 9px;
}
.header-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.connection {
  font-size: 12px;
  color: #d4b776;
  white-space: nowrap;
}
.connection.good {
  color: var(--green);
}
main {
  padding: 28px 36px;
  max-width: 1560px;
  margin: auto;
}
footer {
  padding: 12px 36px 24px;
  color: #5c7089;
  font-size: 11px;
}
.primary,
.secondary,
.danger {
  border: 0;
  border-radius: 8px;
  padding: 11px 17px;
  font-weight: 600;
}
.primary {
  background: var(--green);
  color: #103d2b;
}
.primary:hover {
  background: #a2edcc;
}
.secondary {
  background: #263243;
  border: 1px solid #354357;
  color: #d3dfec;
}
.danger {
  background: #452b31;
  color: #f5b2bb;
}
.small {
  padding: 7px 10px;
  font-size: 12px;
}
.full {
  width: 100%;
}
.text-button {
  border: 0;
  background: none;
  color: var(--green);
  padding: 15px 0;
  text-align: left;
}
.muted {
  color: var(--muted);
  line-height: 1.8;
}
.tiny {
  color: #74869f;
  font-size: 12px;
  line-height: 1.8;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 21px;
}
.section-head p {
  margin: 4px 0 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin: 24px 0;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 21px;
  background: var(--surface);
}
.stat small {
  font-size: 12px;
  color: #94a4b9;
}
.stat strong {
  display: block;
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 17px 0 9px;
}
.stat p {
  font-size: 11px;
  color: #72869e;
  margin: 0;
}
.stat.highlight {
  background: #1c342f;
  border-color: #36594a;
}
.stat.highlight strong {
  color: var(--green);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.card p {
  margin: 6px 0;
}
.banner {
  background: linear-gradient(105deg, #1f3834, #1b2937);
  border: 1px solid #335045;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.banner h2 {
  font-size: 20px;
}
.banner p {
  color: #9eb8b1;
  line-height: 1.8;
}
.badge,
.pill {
  display: inline-block;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 11px;
  background: #2a3d38;
  color: #9de8c5;
  white-space: nowrap;
}
.badge.warn {
  background: #3a3429;
  color: #e5cc8e;
}
.badge.red {
  background: #432d35;
  color: #f2afb9;
}
.badge.gray {
  background: #2a3343;
  color: #9eacc1;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.wide-left {
  grid-template-columns: 1.2fr 1fr;
}
.empty {
  text-align: center;
  padding: 38px 20px;
}
.empty-icon {
  width: 52px;
  height: 52px;
  border: 1px solid #344456;
  border-radius: 13px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 25px;
}
.empty h3 {
  font-size: 16px;
}
.empty p {
  max-width: 460px;
  margin: 8px auto 18px;
  color: var(--muted);
  line-height: 1.9;
}
.steps {
  counter-reset: step;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child {
  border: 0;
}
.step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #293c42;
  color: #9cdfbf;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
}
.step p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.step button {
  margin-top: 10px;
}
.output-box {
  background: #101923;
  border: 1px dashed #4b665f;
  border-radius: 9px;
  padding: 16px;
  margin-top: 18px;
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.group-card {
  padding: 23px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
}
.group-card .top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.group-card h3 {
  font-size: 17px;
}
.group-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.group-card .actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.group-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.progress {
  height: 6px;
  border-radius: 10px;
  background: #2b3645;
  margin: 14px 0 8px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--green);
}
label {
  display: block;
  font-size: 12px;
  color: #bdc9db;
  margin-bottom: 9px;
}
input,
textarea,
select {
  border: 1px solid #354256;
  border-radius: 8px;
  background: #111924;
  color: #e0e8f5;
  width: 100%;
  padding: 11px 12px;
}
textarea {
  resize: vertical;
  min-height: 115px;
  line-height: 1.85;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #80dfb660;
}
.field {
  margin: 0 0 21px;
}
.field .tiny {
  margin-top: 7px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row > * {
  flex: 1;
}
.switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 21px;
}
.switch-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}
.switch-row label {
  font-size: 14px;
  margin: 0;
}
.switch-row .tiny {
  margin: 6px 0 0;
}
.notice {
  border-left: 3px solid #d8bf7a;
  background: #2c2b25;
  color: #d8cbaa;
  padding: 13px 16px;
  font-size: 12px;
  line-height: 1.85;
  border-radius: 0 7px 7px 0;
  margin-bottom: 20px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
th {
  padding: 12px 14px;
  background: #131c28;
  color: #8395ae;
  font-weight: 500;
}
td {
  padding: 15px 14px;
  border-bottom: 1px solid #273141;
}
td.wrap {
  white-space: normal;
  min-width: 170px;
  line-height: 1.7;
}
.big-prob {
  font-size: 64px;
  font-weight: 650;
  letter-spacing: -2px;
  color: var(--green);
  margin: 22px 0 5px;
}
.result-meta {
  display: flex;
  gap: 20px;
  color: #94a6bc;
  font-size: 12px;
  margin: 20px 0;
}
.result-meta span {
  display: block;
  color: #d8e3f0;
  margin-top: 7px;
}
pre {
  font:
    12px/1.85 Consolas,
    monospace;
  background: #101722;
  border: 1px solid #2b3749;
  padding: 16px;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 350px;
  overflow: auto;
}
summary {
  cursor: pointer;
  color: #9cb2ce;
  font-size: 12px;
  margin: 14px 0;
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.auth-story {
  padding: 50px clamp(35px, 6vw, 100px);
  background:
    radial-gradient(ellipse at 0 80%, #284a3a77, transparent 70%), #151f2a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}
.auth-story .brand {
  position: absolute;
  top: 46px;
}
.eyebrow {
  font-size: 10px;
  color: #7fb498;
  letter-spacing: 3px;
  margin-bottom: 22px;
}
.auth-story h1 {
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.45;
  font-weight: 650;
}
.auth-story h1 span {
  color: var(--green);
}
.auth-story > p {
  font-size: 14px;
  color: #9aaebe;
  line-height: 2;
  margin: 24px 0 40px;
}
.story-items {
  display: grid;
  gap: 20px;
  color: #6b9b84;
  font-size: 12px;
}
.story-items b {
  margin-left: 15px;
  color: #b7c6cd;
  font-size: 13px;
  font-weight: 400;
}
.story-bottom {
  position: absolute;
  bottom: 36px;
  font-size: 11px;
  color: #5e7e79;
}
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-box {
  width: 100%;
  max-width: 350px;
}
.auth-box h2 {
  font-size: 28px;
  margin: 20px 0 10px;
}
.auth-box > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.auth-box form {
  margin-top: 32px;
}
.auth-box input {
  margin-bottom: 21px;
}
.auth-box .full {
  margin-top: 10px;
  padding: 13px;
}
.auth-box .tiny {
  font-size: 11px;
  margin-top: 20px;
}
.auth-error {
  padding: 12px;
  background: #422931;
  color: #f0b0b0;
  margin-top: 16px;
  font-size: 12px;
  border-radius: 8px;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #b5f0d3;
  color: #143a2b;
  padding: 14px 22px;
  border-radius: 9px;
  box-shadow: 0 8px 35px #0005;
  z-index: 10;
  max-width: 90vw;
  font-size: 13px;
}
.toast.error {
  background: #f1bbc0;
  color: #522833;
}
.loading {
  text-align: center;
  color: var(--muted);
  padding: 80px 0;
}
.error-card {
  border: 1px solid #744450;
  color: #f1b0b8;
  padding: 20px;
  border-radius: 10px;
  line-height: 1.8;
}
.select-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}
.select-row select {
  max-width: 400px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.hint-list {
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 2.2;
}
.metrics-strip {
  display: flex;
  gap: 35px;
  margin: 20px 0;
}
.metrics-strip strong {
  display: block;
  font-size: 22px;
  margin-top: 7px;
}
.metrics-strip small {
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 1100px) {
  aside {
    width: 190px;
  }
  .workspace {
    margin-left: 190px;
  }
  main {
    padding: 24px;
  }
  header {
    padding: 24px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 45px;
  }
  .auth-story h1 {
    font-size: 35px;
  }
}
@media (max-width: 700px) {
  aside {
    position: static;
    width: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  aside .brand {
    margin-bottom: 15px;
  }
  .shell {
    display: block;
  }
  nav {
    display: flex;
    gap: 5px;
    overflow: auto;
  }
  nav button {
    width: auto;
    white-space: nowrap;
    padding: 9px;
  }
  .sidebar-caption,
  .sidebar-bottom {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .header-actions {
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
  }
  header {
    padding: 20px;
    align-items: center;
  }
  main {
    padding: 18px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat strong {
    font-size: 27px;
  }
  .banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .auth-screen {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-main {
    padding: 35px;
    min-height: 100vh;
  }
  .row {
    align-items: stretch;
    flex-direction: column;
  }
  .card {
    padding: 20px;
  }
  .header-actions .secondary {
    font-size: 12px;
  }
  .connection {
    font-size: 10px;
  }
  .select-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .metrics-strip {
    gap: 20px;
    flex-wrap: wrap;
  }
}

.exemption-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 16px 20px;
  margin-bottom: 22px;
  border: 1px solid #35594a;
  border-radius: 10px;
  background: #1c302b;
  font-size: 12px;
  line-height: 1.9;
}
.exemption-note strong {
  color: var(--green);
}
.exemption-note span {
  color: #abc4ba;
}

.metrics-strip {
  flex-wrap: wrap;
  row-gap: 20px;
}

.community-tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin-bottom: 24px;
  padding-bottom: 4px;
}
.community-tabs button {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  padding: 11px 16px;
}
.community-tabs button.active {
  background: #243a35;
  border-color: #426251;
  color: var(--green);
}
.subscription-target {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 9px;
  margin: 18px 0;
}
.inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}
.inline-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}
#activity-days {
  max-width: 150px;
}
.group-card .actions {
  flex-wrap: wrap;
}

aside nav {
  min-height: 0;
  overflow-y: auto;
  flex: 1;
}
.sidebar-bottom,
aside .brand {
  flex-shrink: 0;
}
.group-context {
  margin: 0 38px 20px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #17232b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.context-identity,
.context-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.context-icon {
  font-size: 25px;
  color: var(--green);
  background: #203a36;
  border-radius: 12px;
  padding: 14px;
}
.context-identity label,
.context-identity small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.context-identity select {
  display: block;
  background: transparent;
  border: 0;
  padding: 5px 26px 5px 0;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  max-width: 430px;
  min-width: 200px;
}
.workspace-tabs {
  display: flex;
  gap: 22px;
  margin: 0 38px 22px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.workspace-tabs button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 10px 2px 14px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.workspace-tabs button.active {
  color: var(--green);
  border-bottom-color: var(--green);
}
.workspace-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.workspace-welcome h2 {
  font-size: 28px;
  margin: 10px 0;
}
.workspace-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.workspace-entry {
  text-align: left;
  padding: 23px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  color: inherit;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.workspace-entry:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}
.entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.entry-number {
  color: var(--green);
  font-size: 12px;
  letter-spacing: 2px;
}
.workspace-entry h3 {
  margin: 20px 0 10px;
  display: flex;
  justify-content: space-between;
  font-size: 17px;
}
.workspace-entry h3 span {
  color: var(--green);
}
.workspace-entry p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  font-size: 13px;
}
.stat em {
  font-size: 15px;
  font-style: normal;
}
.demo-notice {
  margin: 0 38px 20px;
  padding: 10px 16px;
  background: #27342d;
  border: 1px solid #466452;
  border-radius: 10px;
  color: #b8d5c2;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.demo-notice .text-button {
  font-size: 12px;
  padding: 5px 9px;
}
@media (max-width: 1100px) {
  .workspace-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .context-identity select {
    max-width: 300px;
  }
  .group-context,
  .workspace-tabs,
  .demo-notice {
    margin-left: 24px;
    margin-right: 24px;
  }
}
@media (max-width: 700px) {
  .group-navigation {
    display: contents;
  }
  .group-navigation .sidebar-caption {
    display: none;
  }
  .group-context {
    align-items: flex-start;
    flex-direction: column;
    margin: 0 18px 18px;
    padding: 16px;
  }
  .context-identity select {
    max-width: 250px;
  }
  .context-actions {
    width: 100%;
    justify-content: space-between;
  }
  .workspace-tabs,
  .demo-notice {
    margin-left: 18px;
    margin-right: 18px;
  }
  .workspace-welcome {
    align-items: flex-start;
    flex-direction: column;
  }
  .workspace-entry-grid {
    grid-template-columns: 1fr;
  }
  .workspace-entry {
    padding: 20px;
  }
  .workspace-entry h3 {
    margin-top: 14px;
  }
}
.login-code-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.login-code-row input {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: Consolas, monospace;
  letter-spacing: 2px;
  font-size: 19px;
  font-weight: 700;
  color: var(--green);
}
.login-code-row button {
  flex-shrink: 0;
  white-space: nowrap;
}
.login-steps {
  padding-left: 20px;
  line-height: 2;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 420px) {
  .login-code-row {
    flex-direction: column;
    align-items: stretch;
  }
}
