: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;
}

.technical-preview-banner {
  position: sticky;
  z-index: 12;
  top: 0;
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 24px;
  border-bottom: 1px solid #edc768;
  background: #fff4cf;
  color: #684a00;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 42px;
  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;
}

.identity-state {
  min-height: 320px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 40px;
  border: 1px solid #e7ebf3;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  color: #5c667a;
}

.identity-state[hidden],
#role-workbench[hidden] {
  display: none;
}

.identity-state strong {
  color: #17233c;
  font-size: 22px;
}

.identity-state p,
.identity-state span {
  margin: 0;
}

.identity-state.warning {
  border-color: #f4d7a7;
  background: #fffbf3;
}

.identity-state-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0d8;
  color: #b66a00;
  font-size: 24px;
  font-weight: 800;
}

.role-workbench-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.role-workbench-heading h1 {
  margin: 6px 0 8px;
  color: #17233c;
  font-size: 30px;
}

.role-workbench-heading p:last-child {
  margin: 0;
  color: #69748a;
}

.role-badge {
  padding: 8px 14px;
  border: 1px solid #bfd2ff;
  border-radius: 999px;
  background: #eef4ff;
  color: #2457c5;
  font-weight: 700;
  white-space: nowrap;
}

.role-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.role-entry-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid #e3e9f4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(31 64 122 / 6%);
}

.role-entry-card > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.role-entry-card strong {
  color: #17233c;
  font-size: 17px;
}

.role-entry-card > div span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f2f5fa;
  color: #69748a;
  font-size: 12px;
  white-space: nowrap;
}

.role-entry-card p {
  margin: 0;
  color: #69748a;
  line-height: 1.7;
}

.role-entry-card button {
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  background: #2f66d0;
  color: #fff;
  cursor: pointer;
}

.permission-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid #e3e9f4;
  border-radius: 14px;
  background: #e3e9f4;
}

.permission-summary > div {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: #fff;
}

.permission-summary span {
  color: #7a8498;
  font-size: 13px;
}

.permission-summary strong {
  color: #25324a;
  overflow-wrap: anywhere;
}

.organization-view {
  display: grid;
  gap: 20px;
}

.organization-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.organization-heading h1 {
  margin: 6px 0 8px;
  color: #17233c;
  font-size: 28px;
}

.organization-heading p:last-child,
.organization-panel > div:first-child p {
  margin: 0;
  color: #69748a;
  font-size: 13px;
}

.organization-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 32px;
  border: 1px solid #e5eaf3;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.organization-state p {
  margin: 0;
  color: #778197;
}

.organization-state[hidden],
#organization-content[hidden] {
  display: none;
}

.organization-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.organization-summary article {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid #e4e9f2;
  border-radius: 12px;
  background: #fff;
}

.organization-summary span {
  color: #7a8498;
  font-size: 13px;
}

.organization-summary strong {
  color: #1f3153;
  font-size: 28px;
}

.organization-message {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #b9ddc9;
  border-radius: 10px;
  color: #17633a;
  background: #eefaf3;
  font-size: 13px;
}

.organization-message.error {
  border-color: #f0c4c4;
  color: #9b2c2c;
  background: #fff4f4;
}

.organization-message.loading {
  border-color: #cbd7ef;
  color: #405b8f;
  background: #f4f7fd;
}

.organization-message[hidden] {
  display: none;
}

.organization-panel {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid #e4e9f2;
  border-radius: 14px;
  background: #fff;
}

.organization-panel h2 {
  margin: 0 0 6px;
  color: #233252;
  font-size: 18px;
}

.organization-create-form {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin-top: 18px;
}

.organization-create-form label {
  color: #526078;
  font-size: 13px;
  font-weight: 700;
}

.organization-create-form > div {
  display: flex;
  gap: 10px;
}

.organization-create-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #ccd4e3;
  border-radius: 8px;
  color: #263550;
  background: #fff;
}

.organization-table-scroll {
  margin-top: 16px;
  overflow-x: auto;
}

.organization-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  table-layout: fixed;
}

.configured-users-table {
  min-width: 1080px;
}

.pending-users-table {
  min-width: 1240px;
}

.organization-table th,
.organization-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f6;
  color: #3d4960;
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: top;
}

.organization-table th {
  color: #717c91;
  background: #f8faff;
  font-size: 12px;
  font-weight: 700;
}

.organization-table td {
  font-size: 13px;
}

.organization-control {
  width: 100%;
  min-width: 118px;
  padding: 8px 9px;
  border: 1px solid #ccd4e3;
  border-radius: 7px;
  color: #33415d;
  background: #fff;
  font: inherit;
}

.organization-multi-select {
  min-width: 150px;
}

.organization-control:disabled {
  color: #8b94a5;
  background: #f2f4f8;
}

.organization-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.organization-row-action {
  padding: 7px 10px;
  border: 1px solid #b9c9e7;
  border-radius: 7px;
  color: #315a9d;
  background: #f5f8ff;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.organization-row-action:hover {
  background: #eaf0fc;
}

.organization-row-action.danger {
  border-color: #e5bcbc;
  color: #a13a3a;
  background: #fff7f7;
}

.organization-table tbody tr:last-child td {
  border-bottom: 0;
}

.organization-empty-cell {
  color: #8a94a7;
  text-align: center !important;
}

.organization-note {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #dce6fb;
  border-radius: 10px;
  color: #53627b;
  background: #f5f8ff;
  font-size: 13px;
  line-height: 1.7;
}

.task-creation-view {
  display: grid;
  gap: 20px;
}

.task-creation-heading,
.local-task-panel-heading,
.task-form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.task-creation-heading h1,
.task-form-heading h2,
.local-task-panel-heading h2 {
  margin: 0;
  color: #172033;
}

.task-creation-heading > div > p:last-child,
.task-form-heading p,
.local-task-panel-heading p {
  margin: 8px 0 0;
  color: #6b7486;
  line-height: 1.6;
}

.local-memory-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #f1c76f;
  border-radius: 999px;
  background: #fff8e6;
  color: #966300;
  font-size: 13px;
  font-weight: 700;
}

.local-memory-notice {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #f0d28f;
  border-radius: 12px;
  background: #fffaf0;
  color: #76520e;
}

.local-memory-notice span {
  font-size: 13px;
}

.task-creation-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 190px;
  padding: 36px;
  border: 1px solid #e5e9f0;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.task-creation-state[hidden],
.task-creation-layout[hidden],
.task-creation-form[hidden],
.local-task-state[hidden],
.local-task-list[hidden] {
  display: none;
}

.task-creation-state p {
  max-width: 620px;
  margin: 0;
  color: #6b7486;
  line-height: 1.6;
}

.task-creation-state.warning {
  border-color: #f0d28f;
  background: #fffaf0;
}

.task-creation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.task-creation-option-summary {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.task-creation-disabled-notice {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border: 1px solid #efc874;
  border-radius: 10px;
  background: #fff8e8;
  color: #76520e;
}

.task-creation-disabled-notice span {
  font-size: 13px;
  line-height: 1.5;
}

.task-creation-disabled-notice[hidden] {
  display: none;
}

.task-creation-form,
.local-task-panel {
  padding: 22px;
  border: 1px solid #e5e9f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(30 49 80 / 5%);
}

.task-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.task-form-field {
  display: grid;
  gap: 7px;
  color: #293247;
  font-size: 14px;
  font-weight: 650;
}

.task-form-field-wide {
  grid-column: 1 / -1;
}

.task-form-field input,
.task-form-field textarea,
.task-form-field select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #d8dee9;
  border-radius: 9px;
  background: #fff;
  color: #20293b;
  font: inherit;
  font-weight: 400;
}

.task-form-field textarea {
  resize: vertical;
}

.task-form-field select[multiple] {
  min-height: 108px;
}

.task-form-field input:focus,
.task-form-field textarea:focus,
.task-form-field select:focus {
  border-color: #3b82f6;
  outline: 3px solid rgb(59 130 246 / 13%);
}

.task-form-field small {
  color: #7a8497;
  font-weight: 400;
  line-height: 1.5;
}

.task-submit-message {
  min-height: 24px;
  margin-top: 14px;
  color: #5f697c;
  font-size: 14px;
}

.task-submit-message[data-type="success"] {
  color: #16835b;
}

.task-submit-message[data-type="error"] {
  color: #c33b3b;
}

.task-submit-button,
.local-task-panel-heading button {
  min-height: 40px;
  padding: 9px 16px;
  border: 0;
  border-radius: 9px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.task-submit-button:disabled,
.local-task-panel-heading button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.local-task-panel-heading button {
  background: #eef3ff;
  color: #2d5fc4;
}

.local-task-state {
  margin-top: 18px;
  padding: 18px;
  border-radius: 10px;
  background: #f7f9fc;
  color: #6c7588;
  text-align: center;
}

.local-task-state.error {
  background: #fff2f2;
  color: #b33434;
}

.local-task-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.local-task-card {
  padding: 16px;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  background: #fbfcfe;
}

.local-task-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.local-task-card > div:first-child span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf3ff;
  color: #315fae;
  font-size: 12px;
}

.local-task-card > p {
  margin: 10px 0;
  color: #606a7d;
  line-height: 1.55;
}

.local-task-card dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.local-task-card dl > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  font-size: 13px;
}

.local-task-card dt {
  color: #8790a2;
}

.local-task-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #323b4e;
}

.my-tasks-view,
.department-tasks-view {
  display: grid;
  gap: 20px;
}

.my-tasks-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.my-tasks-heading h1 {
  margin: 0;
  color: #172033;
}

.my-tasks-heading > div > p:last-child {
  margin: 8px 0 0;
  color: #6b7486;
  line-height: 1.6;
}

.my-tasks-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 210px;
  padding: 38px;
  border: 1px solid #e5e9f0;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.my-tasks-state p {
  max-width: 620px;
  margin: 0;
  color: #6b7486;
  line-height: 1.6;
}

.my-tasks-state.error {
  border-color: #f2caca;
  background: #fff8f8;
}

.my-tasks-state[hidden],
.my-tasks-content[hidden] {
  display: none;
}

.my-tasks-content {
  padding: 22px;
  border: 1px solid #e5e9f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(30 49 80 / 5%);
}

.department-task-selector {
  display: grid;
  grid-template-columns: auto minmax(220px, 360px) 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.department-task-selector label {
  color: #38445a;
  font-weight: 700;
}

.department-task-selector select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfd6e3;
  border-radius: 10px;
  background: #fff;
  color: #263147;
}

.department-task-selector span {
  color: #768096;
  font-size: 13px;
}

.my-tasks-content-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf0f5;
}

.my-tasks-content-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.my-tasks-content-heading > div span,
.my-tasks-content-heading > span {
  color: #768096;
  font-size: 13px;
}

.my-tasks-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.my-task-card {
  padding: 18px;
  border: 1px solid #e2e7f0;
  border-radius: 14px;
  background: #fbfcfe;
}

.my-task-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.my-task-card-heading h2 {
  margin: 0;
  color: #20293b;
  font-size: 17px;
}

.my-task-card-heading > span {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf3ff;
  color: #315fae;
  font-size: 12px;
  font-weight: 700;
}

.my-task-description {
  min-height: 44px;
  margin: 10px 0 14px;
  color: #606a7d;
  line-height: 1.55;
}

.my-task-progress {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}

.my-task-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #657086;
  font-size: 13px;
}

.my-task-progress > div:last-child {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ecf5;
}

.my-task-progress > div:last-child span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.my-task-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
  margin: 0;
}

.my-task-card dl > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.my-task-card dt {
  color: #8790a2;
  font-size: 12px;
}

.my-task-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #323b4e;
  font-size: 13px;
}

.project-node-detail-button {
  width: fit-content;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  background: #eef4ff;
  color: #315ea8;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.project-node-detail {
  width: min(680px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  border: 0;
  border-radius: 18px;
  padding: 24px;
  color: #24324a;
  box-shadow: 0 24px 70px rgba(36, 50, 74, 0.28);
}

.project-node-detail::backdrop {
  background: rgba(25, 35, 55, 0.44);
}

.project-node-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.project-node-detail-heading span {
  color: #71809a;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-node-detail-heading h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.project-node-detail-heading button {
  border: 0;
  background: transparent;
  color: #71809a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.project-node-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.project-node-detail-facts > div {
  border-radius: 12px;
  padding: 12px;
  background: #f7f9fc;
}

.project-node-detail-facts dt {
  margin-bottom: 5px;
  color: #71809a;
  font-size: 12px;
}

.project-node-detail-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}

@media (max-width: 760px) {
  .role-workbench-heading {
    display: grid;
  }

  .role-entry-grid,
  .permission-summary,
  .organization-summary {
    grid-template-columns: 1fr;
  }

  .organization-heading {
    display: grid;
  }

  .task-creation-heading,
  .task-form-heading,
  .local-task-panel-heading,
  .my-tasks-heading,
  .my-tasks-content-heading,
  .department-task-selector {
    display: grid;
  }

  .task-form-grid {
    grid-template-columns: 1fr;
  }

  .task-form-field-wide {
    grid-column: auto;
  }

  .my-task-card dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .stage-task-layout {
    grid-template-columns: 1fr;
  }

  .stage-node-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-creation-layout {
    grid-template-columns: 1fr;
  }

  .my-tasks-list {
    grid-template-columns: 1fr;
  }
}
