:root {
  color-scheme: light;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: #172038;
  background: #f4f6fb;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 960px;
  min-height: 100vh;
  margin: 0;
}

button,
a {
  font: inherit;
}

.login-page {
  background:
    radial-gradient(circle at 14% 20%, rgb(51 112 255 / 14%), transparent 30rem),
    radial-gradient(circle at 88% 82%, rgb(0 204 153 / 12%), transparent 32rem),
    #f6f8fc;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 48px;
}

.login-card {
  width: 430px;
  padding: 48px;
  border: 1px solid rgb(23 32 56 / 8%);
  border-radius: 24px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 28px 80px rgb(28 45 86 / 14%);
  text-align: center;
  backdrop-filter: blur(16px);
}

.brand-mark {
  position: relative;
  width: 52px;
  height: 52px;
  margin: 0 auto 24px;
  border-radius: 15px;
  background: #3370ff;
  box-shadow: 0 12px 28px rgb(51 112 255 / 28%);
}

.brand-mark span {
  position: absolute;
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 5px;
  background: white;
}

.brand-mark span:nth-child(1) {
  top: 11px;
  left: 11px;
}

.brand-mark span:nth-child(2) {
  top: 11px;
  right: 11px;
  opacity: 0.68;
}

.brand-mark span:nth-child(3) {
  right: 11px;
  bottom: 11px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #3370ff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0;
  color: #172038;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.intro {
  margin: 14px 0 32px;
  color: #68728a;
  font-size: 16px;
  line-height: 1.7;
}

.message {
  margin: -10px 0 20px;
  padding: 12px 14px;
  border: 1px solid #ffd5c7;
  border-radius: 10px;
  background: #fff6f2;
  color: #b7481e;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.feishu-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  background: #3370ff;
  color: white;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 12px 22px rgb(51 112 255 / 22%);
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.feishu-button:hover {
  background: #245bdb;
  transform: translateY(-1px);
}

.feishu-button:focus-visible,
.text-button:focus-visible {
  outline: 3px solid rgb(51 112 255 / 30%);
  outline-offset: 3px;
}

.button-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: white;
  color: #3370ff;
  font-size: 13px;
  font-weight: 800;
}

.local-note {
  margin: 24px 0 0;
  color: #929aab;
  font-size: 12px;
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #f0f2f8;
  color: #596278;
}

.app-page {
  --app-blue: #2f6bff;
  --app-blue-deep: #194bc6;
  --app-ink: #18233b;
  --app-muted: #74809a;
  --app-line: #e7ecf5;
  min-width: 1100px;
  background:
    radial-gradient(circle at 80% 0%, rgb(47 107 255 / 7%), transparent 30rem),
    #f6f8fc;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 26px 18px 20px;
  border-right: 1px solid rgb(225 231 242 / 78%);
  background: rgb(255 255 255 / 90%);
  backdrop-filter: blur(18px);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 24px;
}

.sidebar-brand > div:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.sidebar-brand strong {
  color: var(--app-ink);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.sidebar-brand small {
  color: #a1aabd;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.side-nav {
  display: grid;
  gap: 6px;
  margin-top: 22px;
}

.nav-item {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 13px;
  padding: 0 14px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #65718a;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.nav-item:hover {
  background: #f3f6fc;
  color: var(--app-ink);
  transform: translateX(2px);
}

.nav-item.active {
  background: linear-gradient(135deg, #edf3ff, #f5f8ff);
  color: var(--app-blue);
}

.nav-item:focus-visible,
.logout-button:focus-visible {
  outline: 3px solid rgb(47 107 255 / 20%);
  outline-offset: 2px;
}

.nav-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: #f1f4f9;
  color: #77839a;
  font-size: 15px;
  font-weight: 750;
}

.nav-item.active .nav-icon {
  background: var(--app-blue);
  color: white;
  box-shadow: 0 6px 14px rgb(47 107 255 / 22%);
}

.sidebar-foot {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
  padding: 14px 12px;
  border: 1px solid #e8edf6;
  border-radius: 13px;
  background: #f8faff;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 4px;
  border-radius: 50%;
  background: #22b573;
  box-shadow: 0 0 0 4px rgb(34 181 115 / 10%);
}

.sidebar-foot div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-foot strong {
  color: #44516b;
  font-size: 11px;
}

.sidebar-foot small {
  color: #929caf;
  font-size: 10px;
  line-height: 1.45;
}

.main-column {
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  height: 78px;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  border-bottom: 1px solid rgb(229 234 244 / 82%);
  background: rgb(255 255 255 / 82%);
  backdrop-filter: blur(18px);
}

.page-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9ba4b6;
  font-size: 13px;
}

.page-heading strong {
  color: #3e4a63;
  font-weight: 650;
}

.account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark.small {
  width: 36px;
  height: 36px;
  margin: 0;
  flex: 0 0 auto;
  border-radius: 11px;
  box-shadow: none;
}

.brand-mark.small span {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.brand-mark.small span:nth-child(1) {
  top: 8px;
  left: 8px;
}

.brand-mark.small span:nth-child(2) {
  top: 8px;
  right: 8px;
}

.brand-mark.small span:nth-child(3) {
  right: 8px;
  bottom: 8px;
}

.avatar,
.avatar-fallback {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.avatar {
  object-fit: cover;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #4c7dff, #2863f0);
  color: white;
  font-size: 14px;
  font-weight: 750;
}

.avatar-fallback[hidden] {
  display: none;
}

.account-copy {
  display: flex;
  min-width: 84px;
  flex-direction: column;
  gap: 2px;
}

.account-copy span {
  max-width: 120px;
  overflow: hidden;
  color: #35415a;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy small {
  color: #9aa3b5;
  font-size: 10px;
}

.logout-button {
  min-height: 34px;
  margin-left: 5px;
  padding: 0 13px;
  border: 1px solid #e5eaf3;
  border-radius: 9px;
  background: white;
  color: #647089;
  font-size: 12px;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    color 150ms ease,
    background 150ms ease;
}

.logout-button:hover {
  border-color: #cad5ec;
  background: #f8faff;
  color: var(--app-blue);
}

.logout-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.workspace {
  padding: 34px 36px 48px;
}

.content-view[hidden] {
  display: none;
}

.dashboard-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin: 3px 0 28px;
}

.dashboard-intro h1 {
  font-size: 28px;
  letter-spacing: -0.035em;
}

.dashboard-intro > div > p:last-child {
  margin: 10px 0 0;
  color: var(--app-muted);
  font-size: 14px;
}

.mock-badge {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #dfe8fb;
  border-radius: 999px;
  background: rgb(255 255 255 / 72%);
  color: #647393;
  font-size: 11px;
  font-weight: 600;
}

.mock-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--app-blue);
  box-shadow: 0 0 0 4px rgb(47 107 255 / 9%);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  position: relative;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #e7ecf5;
  border-radius: 17px;
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 8px 24px rgb(40 59 101 / 5%);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgb(40 59 101 / 9%);
}

.metric-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-label {
  color: #6f7b94;
  font-size: 13px;
  font-weight: 600;
}

.metric-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 750;
}

.metric-icon.blue,
.project-symbol.blue {
  background: #edf3ff;
  color: #3d72f4;
}

.metric-icon.cyan,
.project-symbol.cyan {
  background: #eaf9fb;
  color: #20a6b5;
}

.metric-icon.orange,
.project-symbol.orange {
  background: #fff3e9;
  color: #e78435;
}

.metric-icon.violet {
  background: #f3efff;
  color: #825fd8;
}

.metric-value {
  display: block;
  margin-top: 18px;
  color: var(--app-ink);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.metric-card p {
  margin: 13px 0 0;
  color: #9aa3b5;
  font-size: 11px;
}

.trend {
  margin-right: 4px;
  font-weight: 700;
}

.trend.positive {
  color: #20a66b;
}

.trend.neutral {
  color: #4677ee;
}

.trend.warning {
  color: #db7043;
}

.mock-label {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  background: #f2f5fa;
  color: #98a2b5;
  font-size: 9px;
  font-weight: 650;
}

.metric-card > .mock-label {
  position: absolute;
  right: 18px;
  bottom: 16px;
}

.dashboard-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.72fr);
  gap: 16px;
  margin-top: 18px;
}

.overview-panel,
.focus-panel {
  min-width: 0;
  border: 1px solid #e7ecf5;
  border-radius: 17px;
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 8px 24px rgb(40 59 101 / 4%);
}

.overview-panel {
  padding: 22px 22px 10px;
}

.focus-panel {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.panel-heading h2 {
  margin: 0;
  color: #29344c;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.panel-heading p {
  margin: 5px 0 0;
  color: #9ba4b5;
  font-size: 10px;
}

.project-list {
  display: grid;
}

.project-row {
  display: grid;
  min-height: 68px;
  grid-template-columns: 38px minmax(170px, 1fr) minmax(110px, 0.65fr) 65px;
  align-items: center;
  gap: 13px;
  border-top: 1px solid #f0f2f7;
}

.project-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 750;
}

.project-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.project-main strong {
  overflow: hidden;
  color: #3b465d;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-main span {
  color: #9ba4b5;
  font-size: 10px;
}

.progress-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.progress-copy > span {
  color: #758097;
  font-size: 10px;
  font-weight: 650;
  text-align: right;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf1f8;
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #4d7df0;
}

.progress-track.cyan i {
  background: #2cb4c2;
}

.progress-track.orange i {
  background: #e99551;
}

.project-status {
  justify-self: end;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 650;
}

.project-status.active {
  background: #edf4ff;
  color: #3f72eb;
}

.project-status.delayed {
  background: #fff1eb;
  color: #d96c42;
}

.focus-chart {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 6px 0 16px;
}

.ring {
  position: relative;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--app-blue) 0 68%, #eaf0fa 68% 100%);
}

.ring::before {
  position: absolute;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: white;
  content: "";
}

.ring div {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ring strong {
  color: #26324a;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.ring span {
  margin-top: 3px;
  color: #98a2b5;
  font-size: 9px;
}

.task-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid #f0f2f7;
}

.task-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #7f899e;
  font-size: 10px;
}

.task-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.task-legend .done {
  background: var(--app-blue);
}

.task-legend .waiting {
  background: #dce4f2;
}

.construction-view {
  display: grid;
  min-height: calc(100vh - 160px);
  place-items: center;
  align-content: center;
  border: 1px solid #e6ebf4;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 42%, rgb(47 107 255 / 7%), transparent 18rem),
    rgb(255 255 255 / 72%);
  text-align: center;
}

.construction-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #edf3ff, #f8faff);
  color: var(--app-blue);
  font-size: 22px;
  box-shadow: 0 14px 32px rgb(47 107 255 / 10%);
}

.construction-view h1 {
  font-size: 28px;
}

.construction-view > p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--app-muted);
  font-size: 13px;
}

.construction-view > span {
  margin-top: 18px;
  padding: 7px 10px;
  border-radius: 7px;
  background: #f0f4fb;
  color: #8d98ad;
  font-size: 10px;
}

@media (max-width: 1280px) {
  .workspace {
    padding-right: 26px;
    padding-left: 26px;
  }

  .topbar {
    padding-right: 26px;
    padding-left: 26px;
  }

  .metric-grid {
    gap: 12px;
  }

  .metric-card {
    padding: 17px;
  }
}

.projects-view {
  min-width: 0;
}

.projects-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin: 3px 0 26px;
}

.projects-heading h1 {
  font-size: 28px;
  letter-spacing: -0.035em;
}

.projects-heading > div > p:last-child {
  margin: 10px 0 0;
  color: var(--app-muted);
  font-size: 14px;
}

.readonly-badge {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 7px;
  border: 1px solid #dfe8f8;
  border-radius: 999px;
  background: rgb(255 255 255 / 84%);
  color: #687792;
  font-size: 11px;
  font-weight: 600;
}

.readonly-badge span {
  padding: 5px 7px;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--app-blue);
  font-size: 9px;
}

.field-warning {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1px solid #f1dec4;
  border-radius: 11px;
  background: #fffaf3;
  color: #8c693c;
  font-size: 11px;
}

.field-warning[hidden] {
  display: none;
}

.field-warning strong {
  flex: 0 0 auto;
  color: #b2762d;
}

.project-state {
  display: flex;
  min-height: 430px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 48px;
  border: 1px solid #e6ebf4;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 43%, rgb(47 107 255 / 6%), transparent 16rem),
    rgb(255 255 255 / 76%);
  text-align: center;
}

.project-state[hidden] {
  display: none;
}

.project-state strong {
  color: #344059;
  font-size: 15px;
}

.project-state p {
  max-width: 440px;
  margin: 9px 0 0;
  color: #8a95a9;
  font-size: 12px;
  line-height: 1.65;
}

.project-state-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 17px;
  background: #edf3ff;
  color: var(--app-blue);
  font-size: 21px;
  font-weight: 700;
}

.project-state-mark.warning {
  background: #fff4e9;
  color: #d98738;
}

.project-state-mark.error {
  background: #fff0ed;
  color: #dc6d58;
}

.loading-spinner {
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  border: 3px solid #e2eafb;
  border-top-color: var(--app-blue);
  border-radius: 50%;
  animation: project-spin 800ms linear infinite;
}

@keyframes project-spin {
  to {
    transform: rotate(360deg);
  }
}

.state-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: var(--app-blue);
  color: white;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgb(47 107 255 / 18%);
}

.state-action:hover {
  background: var(--app-blue-deep);
}

.state-action:focus-visible {
  outline: 3px solid rgb(47 107 255 / 22%);
  outline-offset: 3px;
}

.project-table-panel {
  overflow: hidden;
  border: 1px solid #e5eaf3;
  border-radius: 17px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 8px 26px rgb(40 59 101 / 5%);
}

.project-table-panel[hidden] {
  display: none;
}

.project-table-meta {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 20px;
  border-bottom: 1px solid #edf0f6;
}

.project-table-meta > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.project-table-meta strong {
  color: #303c54;
  font-size: 14px;
}

.project-table-meta > div span {
  color: #929caf;
  font-size: 10px;
}

.project-table-meta b {
  color: var(--app-blue);
  font-weight: 700;
}

.live-data-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #71809a;
  font-size: 10px;
}

.live-data-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #24af73;
  box-shadow: 0 0 0 4px rgb(36 175 115 / 10%);
}

.project-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.projects-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

.projects-table th {
  height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid #edf0f6;
  background: #f8faff;
  color: #8b96aa;
  font-size: 10px;
  font-weight: 650;
  text-align: left;
}

.projects-table th:nth-child(1) {
  width: 12%;
}

.projects-table th:nth-child(2) {
  width: 19%;
}

.projects-table th:nth-child(3) {
  width: 11%;
}

.projects-table th:nth-child(4) {
  width: 17%;
}

.projects-table th:nth-child(5),
.projects-table th:nth-child(6) {
  width: 14%;
}

.projects-table th:nth-child(7) {
  width: 13%;
}

.projects-table td {
  height: 62px;
  padding: 10px 14px;
  overflow: hidden;
  border-bottom: 1px solid #f0f2f7;
  color: #66728a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.projects-table tbody tr:last-child td {
  border-bottom: 0;
}

.projects-table tbody tr:hover {
  background: #fbfcff;
}

.project-number-cell {
  color: #57709f !important;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px !important;
}

.project-name-cell {
  color: #344059 !important;
  font-weight: 650;
}

.date-cell {
  color: #7c879b !important;
  font-variant-numeric: tabular-nums;
}

.table-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 650;
}

.table-status.active {
  background: #eaf2ff;
  color: #3f72eb;
}

.table-status.complete {
  background: #eaf8f1;
  color: #239d68;
}

.table-status.overdue {
  background: #fff0eb;
  color: #d96c42;
}

.table-status.paused {
  background: #fff5e8;
  color: #c88732;
}

.table-status.default {
  background: #f0f3f8;
  color: #7e899d;
}

.owner-list {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.owner-person {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.owner-person img,
.owner-person i {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.owner-person img {
  object-fit: cover;
}

.owner-person i {
  display: grid;
  place-items: center;
  background: #eaf1ff;
  color: #5278d2;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.owner-person > span {
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-progress {
  display: flex;
  min-width: 90px;
  align-items: center;
  gap: 8px;
}

.table-progress > span {
  width: 30px;
  flex: 0 0 auto;
  color: #65728b;
  font-size: 10px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.table-progress > div {
  height: 4px;
  flex: 1;
  overflow: hidden;
  border-radius: 99px;
  background: #e9eef7;
}

.table-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4d7df0, #6b93f6);
}

.stage-tasks-view {
  min-width: 0;
}

.stage-task-layout {
  display: grid;
  min-height: 580px;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
}

.stage-project-panel,
.stage-task-detail {
  overflow: hidden;
  border: 1px solid #e5eaf3;
  border-radius: 17px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 8px 26px rgb(40 59 101 / 5%);
}

.stage-project-heading {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid #edf0f6;
}

.stage-project-heading > div {
  display: grid;
  gap: 4px;
}

.stage-project-heading strong {
  color: #344059;
  font-size: 13px;
}

.stage-project-heading span {
  color: #929caf;
  font-size: 9px;
}

.stage-project-heading button {
  border: 0;
  background: transparent;
  color: var(--app-blue);
  cursor: pointer;
  font-size: 10px;
}

.stage-project-heading button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.stage-project-list {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px;
}

.stage-project-item {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f8faff;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.stage-project-item:hover,
.stage-project-item.active {
  border-color: #d9e4ff;
  background: #eef4ff;
}

.stage-project-item > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.stage-project-item strong {
  color: #465774;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.stage-project-item > span > span {
  overflow: hidden;
  color: #768298;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-project-item i {
  flex: 0 0 auto;
  color: #8c97aa;
  font-size: 8px;
  font-style: normal;
}

.stage-project-item[data-status="ready"] i {
  color: #239d68;
}

.stage-project-item[data-status="schema_invalid"] i,
.stage-project-item[data-status="read_failed"] i,
.stage-project-item[data-status="permission_denied"] i {
  color: #d96c42;
}

.stage-project-empty {
  margin: 0;
  padding: 20px 12px;
  color: #8b96aa;
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

.stage-project-empty.error {
  color: #c76a4a;
}

.stage-task-detail {
  min-width: 0;
}

.stage-detail-state {
  display: grid;
  min-height: 500px;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 42px;
  text-align: center;
}

.stage-detail-state[hidden],
.stage-task-ready[hidden] {
  display: none;
}

.stage-detail-state strong {
  color: #44516a;
  font-size: 16px;
}

.stage-detail-state p {
  max-width: 460px;
  margin: 0;
  color: #929caf;
  font-size: 11px;
  line-height: 1.8;
}

.stage-detail-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: #edf3ff;
  color: #557be0;
  font-size: 11px;
  font-weight: 700;
}

.stage-task-ready {
  padding: 20px;
}

.stage-task-ready-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 2px 18px;
}

.stage-task-ready-heading span {
  color: var(--app-blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.stage-task-ready-heading h2 {
  margin: 5px 0 0;
  color: #344059;
  font-size: 19px;
}

.stage-task-ready-heading p {
  margin: 0;
  color: #8b96aa;
  font-size: 10px;
}

.stage-task-groups {
  display: grid;
  gap: 14px;
}

.stage-group {
  overflow: hidden;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  background: #fbfcff;
}

.stage-group-heading {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 15px;
  border-bottom: 1px solid #edf0f6;
}

.stage-group-heading h3 {
  margin: 0;
  color: #41506b;
  font-size: 13px;
}

.stage-group-heading span {
  color: #8995aa;
  font-size: 9px;
}

.stage-node-list {
  display: grid;
  gap: 9px;
  padding: 11px;
}

.stage-node-card {
  padding: 14px;
  border: 1px solid #edf0f6;
  border-radius: 11px;
  background: #fff;
}

.stage-node-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.stage-node-heading > strong {
  color: #3b4860;
  font-size: 12px;
}

.stage-node-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 13px;
}

.stage-node-facts > div {
  display: grid;
  gap: 3px;
}

.stage-node-facts span,
.stage-node-copy span {
  color: #9aa3b4;
  font-size: 8px;
}

.stage-node-facts strong {
  overflow: hidden;
  color: #68758c;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-node-copy {
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid #f0f2f7;
  color: #65728a;
  font-size: 10px;
  line-height: 1.7;
}

.stage-group-empty {
  margin: 0;
  padding: 20px;
  color: #929caf;
  font-size: 10px;
  text-align: center;
}

@media (max-width: 980px) {
  .stage-task-layout {
    grid-template-columns: 1fr;
  }

  .stage-node-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
