/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --background: #f6f8fb;
  --surface: #fff;
  --surface-raised: #f1f5f9;
  --surface-soft: #eef3f8;
  --line: #0f172a1f;
  --line-strong: #0f172a42;
  --text: #172033;
  --muted: #667085;
  --blue: #2563eb;
  --orange: #ea580c;
  --violet: #7c3aed;
  --teal: #0f766e;
  --rose: #be185d;
  --gold: #a16207;
  --slate: #475569;
  --green: #159447;
  --red: #dc2626;
  --yellow: #b7791f;
  --today: #e11d48;
  --timeline-axis-height: 77px;
}

.public-site, .signup-page {
  --public-ink: #15233a;
  --public-muted: #66738a;
  --public-line: #dfe5ed;
  --public-paper: #f7f8fa;
  --public-orange: #f26922;
  --public-violet: #7047d7;
  min-height: 100vh;
  color: var(--public-ink);
  background: #fff;
}

.public-site-header {
  z-index: 50;
  border-bottom: 1px solid var(--public-line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: #ffffffdb;
  justify-content: space-between;
  align-items: center;
  width: min(1180px, 100% - 48px);
  height: 76px;
  margin: 0 auto;
  display: flex;
  position: sticky;
  top: 0;
}

.public-brand {
  color: var(--public-ink);
  letter-spacing: -.04em;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  text-decoration: none;
  display: inline-flex;
}

.public-brand > span {
  color: #fff;
  background: linear-gradient(145deg, var(--public-orange), var(--public-violet));
  border-radius: 12px;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 15px;
  font-weight: 900;
  display: grid;
  box-shadow: 0 8px 20px #7047d72e;
}

.public-site-header nav {
  align-items: center;
  gap: 26px;
  display: flex;
}

.public-site-header nav a {
  color: #435068;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.public-site-header nav .public-nav-primary {
  color: #fff;
  background: var(--public-ink);
  border-radius: 11px;
  align-items: center;
  min-height: 40px;
  padding: 0 17px;
  display: inline-flex;
}

.public-hero {
  grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: 48px;
  width: min(1180px, 100% - 48px);
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  display: grid;
}

.public-eyebrow, .public-page-heading > span, .public-section-heading > div > span, .public-cta > div > span, .signup-intro > div > span {
  color: var(--public-orange);
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 900;
}

.public-hero h1 {
  letter-spacing: -.065em;
  margin: 20px 0 24px;
  font-size: clamp(40px, 3.5vw, 50px);
  line-height: 1.12;
}

.public-hero h1 span {
  white-space: nowrap;
  display: block;
}

.public-hero-copy > p {
  max-width: 550px;
  color: var(--public-muted);
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
}

.public-hero-description span {
  display: block;
}

.public-hero-description .public-hero-summary {
  margin-top: 12px;
}

.public-hero-actions {
  gap: 12px;
  margin-top: 34px;
  display: flex;
}

.public-scroll-cue {
  color: #7d899a;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 48px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
}

.public-scroll-cue > span {
  border: 1px solid #cbd3de;
  border-radius: 18px;
  width: 28px;
  height: 42px;
  position: relative;
}

.public-scroll-cue > span:after {
  content: "";
  background: var(--public-orange);
  border-radius: 8px;
  width: 4px;
  height: 8px;
  animation: 1.8s ease-in-out infinite public-scroll-dot;
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes public-scroll-dot {
  0%, 100% {
    opacity: .35;
    transform: translate(-50%);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, 13px);
  }
}

.public-primary-button, .public-secondary-button {
  min-height: 48px;
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
}

.public-primary-button {
  color: #fff;
  background: var(--public-orange);
  box-shadow: 0 12px 30px #f2692238;
}

.public-secondary-button {
  color: var(--public-ink);
  box-shadow: inset 0 0 0 1px var(--public-line);
  background: #fff;
}

.public-timeline-preview {
  background: repeating-linear-gradient(90deg, #0000 0 39px, #3f506814 39px 40px), linear-gradient(#fff, #f8fafc);
  border: 1px solid #d9e0e9;
  border-radius: 28px;
  min-height: 390px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 80px #1e304b26;
}

.preview-months {
  color: #8490a2;
  background: #ffffffe0;
  border-bottom: 1px solid #e3e8ef;
  justify-content: space-between;
  height: 76px;
  padding: 20px 52px 0;
  font-size: 13px;
  display: flex;
}

.preview-months strong {
  color: var(--public-ink);
  font-size: 15px;
}

.preview-axis {
  justify-content: space-around;
  align-items: start;
  height: 40px;
  display: flex;
}

.preview-axis i {
  background: #9aa6b7;
  width: 1px;
  height: 12px;
}

.preview-project {
  background: #fff;
  border-radius: 15px;
  margin: 18px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 9px 26px #23344c17;
}

.preview-project:before {
  content: "";
  background: currentColor;
  width: 5px;
  position: absolute;
  inset: 0 auto 0 0;
}

.preview-project header {
  justify-content: space-between;
  align-items: center;
  height: 58px;
  padding: 0 20px 0 25px;
  display: flex;
}

.preview-project header b {
  color: var(--public-ink);
}

.preview-project header span {
  background: color-mix(in srgb, currentColor 12%, white);
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}

.preview-project > div {
  border-top: 1px solid #edf0f4;
  align-items: center;
  gap: 72px;
  height: 50px;
  padding: 18px 36px;
  display: flex;
}

.preview-project > div:before {
  content: "";
  background: color-mix(in srgb, currentColor 25%, white);
  border-radius: 10px;
  height: 8px;
  position: absolute;
  left: 55px;
  right: 42px;
}

.preview-project > div i {
  z-index: 1;
  background: currentColor;
  width: 14px;
  height: 14px;
  position: relative;
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px #fff;
}

.preview-orange {
  color: var(--public-orange);
}

.preview-violet {
  color: var(--public-violet);
  margin-left: 74px;
}

.public-story-intro {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: min(900px, 100% - 48px);
  min-height: 66vh;
  margin: 0 auto;
  padding: 120px 0;
  scroll-margin-top: 76px;
  display: flex;
}

.public-story-intro > span {
  color: var(--public-orange);
  letter-spacing: .17em;
  font: 900 12px / 1 monospace;
}

.public-story-intro h2 {
  letter-spacing: -.065em;
  margin: 22px 0 20px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.05;
}

.public-story-intro p {
  max-width: 680px;
  color: var(--public-muted);
  margin: 0;
  font-size: 18px;
  line-height: 1.85;
}

.public-story-intro p span {
  display: block;
}

.public-story-stack {
  background: radial-gradient(circle at 0 23%, #f2692212, #0000 25%), radial-gradient(circle at 100% 43%, #7047d712, #0000 24%), radial-gradient(circle at 0 67%, #2f7be70f, #0000 24%), linear-gradient(#fff, #fbfcfe 50%, #fff);
  position: relative;
  overflow: clip;
}

.story-chapter {
  --story-color: var(--public-orange);
  --story-soft: #fff3eb;
  grid-template-columns: minmax(320px, .82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: clamp(60px, 9vw, 130px);
  width: min(1180px, 100% - 48px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 120px 0 150px;
  display: grid;
}

.story-secret {
  --story-color: #9b4fce;
  --story-soft: #f7effd;
}

.story-project {
  --story-color: #2f7be7;
  --story-soft: #edf5ff;
}

.story-open {
  --story-color: #15916d;
  --story-soft: #ebf8f3;
}

.story-chapter:nth-child(2n) .story-copy {
  order: 2;
}

.story-chapter:nth-child(2n) .story-visual {
  order: 1;
}

.story-copy {
  position: relative;
}

.story-copy .story-number {
  color: color-mix(in srgb, var(--story-color) 24%, white);
  letter-spacing: -.08em;
  font: 900 clamp(72px, 9vw, 126px) / .78 monospace;
  display: block;
}

.story-copy > small {
  color: var(--story-color);
  letter-spacing: .16em;
  margin-top: 35px;
  font: 900 12px / 1 monospace;
  display: block;
}

.story-copy h2 {
  letter-spacing: -.06em;
  word-break: keep-all;
  margin: 17px 0 22px;
  font-size: clamp(40px, 3.5vw, 50px);
  line-height: 1.14;
}

.story-copy h2 span {
  display: block;
}

.story-copy > p {
  color: var(--public-muted);
  word-break: keep-all;
  margin: 0;
  font-size: 17px;
  line-height: 1.85;
}

.story-copy > p span {
  display: block;
}

.story-copy ul {
  border-top: 1px solid color-mix(in srgb, var(--story-color) 20%, white);
  margin: 36px 0 0;
  padding: 28px 0 0;
  list-style: none;
}

.story-copy li {
  color: #354258;
  margin: 15px 0;
  padding-left: 25px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.55;
  position: relative;
}

.story-copy li:before {
  content: "";
  background: var(--story-color);
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--story-color) 12%, white);
  border-radius: 50%;
  position: absolute;
  top: .55em;
  left: 2px;
}

.story-visual {
  border: 1px solid color-mix(in srgb, var(--story-color) 18%, #dfe5ed);
  background: repeating-linear-gradient(90deg, transparent 0 53px, color-mix(in srgb, var(--story-color) 7%, white) 53px 54px),
    linear-gradient(145deg, #fff, var(--story-soft));
  border-radius: 32px;
  min-height: 520px;
  position: sticky;
  top: 112px;
  overflow: hidden;
  box-shadow: 0 36px 90px #1d2c4321;
}

.story-visual:after {
  content: "";
  background: color-mix(in srgb, var(--story-color) 35%, white);
  width: 2px;
  position: absolute;
  top: 88px;
  bottom: 0;
  left: 52%;
}

.story-visual > header {
  z-index: 2;
  border-bottom: 1px solid color-mix(in srgb, var(--story-color) 15%, white);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: #ffffffe0;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 0 26px;
  display: grid;
  position: relative;
}

.story-visual-mark {
  color: #fff;
  background: var(--story-color);
  width: 42px;
  height: 42px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--story-color) 24%, transparent);
  border-radius: 13px;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  display: grid;
}

.story-visual header div {
  min-width: 0;
}

.story-visual header small {
  color: var(--story-color);
  letter-spacing: .12em;
  font: 800 9px / 1 monospace;
  display: block;
}

.story-visual header strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 7px;
  font-size: 16px;
  display: block;
  overflow: hidden;
}

.story-visual-count {
  min-width: 32px;
  height: 32px;
  color: var(--story-color);
  background: var(--story-soft);
  border-radius: 50%;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  display: grid;
}

.story-visual-axis {
  z-index: 2;
  border-bottom: 1px solid color-mix(in srgb, var(--story-color) 10%, white);
  justify-content: space-between;
  align-items: start;
  height: 42px;
  padding: 0 22px;
  display: flex;
  position: relative;
}

.story-visual-axis span {
  background: color-mix(in srgb, var(--story-color) 40%, white);
  width: 1px;
  height: 11px;
}

.story-note-list {
  z-index: 3;
  gap: 18px;
  padding: 20px 24px 28px;
  display: grid;
  position: relative;
}

.story-note-card {
  border: 1px solid color-mix(in srgb, var(--story-color) 25%, white);
  background: #ffffffeb;
  border-radius: 18px;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 13px;
  min-height: 94px;
  padding: 17px 20px;
  display: grid;
  position: relative;
  box-shadow: 0 12px 30px #1d2c4314;
}

.story-note-card:nth-child(2) {
  margin-left: 10%;
}

.story-note-card:nth-child(3) {
  margin-right: 7%;
}

.story-note-card > i {
  width: 34px;
  height: 34px;
  color: var(--story-color);
  background: var(--story-soft);
  border-radius: 11px;
  place-items: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  display: grid;
}

.story-note-card small {
  color: #8a95a7;
  font-size: 10px;
  font-weight: 750;
  display: block;
}

.story-note-card strong {
  color: var(--public-ink);
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.35;
  display: block;
}

.story-note-dot {
  background: var(--story-color);
  width: 15px;
  height: 15px;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px color-mix(in srgb, var(--story-color) 25%, white);
  transform: rotate(45deg);
}

.story-work-item {
  z-index: 3;
  border: 1px solid color-mix(in srgb, var(--story-color) 27%, white);
  background: #fffffff0;
  border-radius: 22px;
  min-height: 325px;
  margin: 18px 24px 28px;
  padding: 20px;
  position: relative;
  box-shadow: 0 18px 44px #1d2c431c;
}

.story-work-item > header {
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  display: flex;
}

.story-work-item > header small {
  color: var(--story-color);
  letter-spacing: .08em;
  font-size: 10px;
  font-weight: 850;
  display: block;
}

.story-work-item > header strong {
  color: var(--public-ink);
  margin-top: 7px;
  font-size: 17px;
  line-height: 1.35;
  display: block;
}

.story-work-item > header > span {
  color: var(--story-color);
  background: var(--story-soft);
  border-radius: 999px;
  flex: none;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 900;
}

.story-work-meta {
  color: #7d899b;
  border-bottom: 1px solid color-mix(in srgb, var(--story-color) 12%, white);
  gap: 13px;
  margin: 15px 0 0;
  padding: 10px 0 13px;
  font-size: 10px;
  font-weight: 750;
  display: flex;
}

.story-work-meta strong {
  color: var(--story-color);
  margin-left: auto;
}

.story-work-note {
  padding: 15px 0 17px;
}

.story-work-note small {
  color: var(--story-color);
  font-size: 10px;
  font-weight: 900;
}

.story-work-note p {
  color: #3f4c60;
  word-break: keep-all;
  margin: 7px 0 0;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.story-work-media {
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  display: grid;
}

.story-work-media figure {
  border: 1px solid color-mix(in srgb, var(--story-color) 18%, white);
  background: #fff;
  border-radius: 15px;
  margin: 0;
  overflow: hidden;
}

.story-media-preview {
  height: 105px;
  position: relative;
  overflow: hidden;
}

.story-media-photo {
  background: radial-gradient(circle at 72% 24%, #fff7bd 0 9%, #0000 10%), linear-gradient(150deg, #0000 46%, #2e534fe0 47% 65%, #0000 66%), linear-gradient(24deg, #274e4e 0 33%, #0000 34%), linear-gradient(#f7a36f 0 45%, #ed7255 46% 58%, #8e6984 59% 100%);
}

.story-media-video {
  background: linear-gradient(25deg, #1e303aeb 0 28%, #0000 29%), linear-gradient(150deg, #0000 42%, #425b58e0 43% 69%, #0000 70%), linear-gradient(#879eb0 0 48%, #d99775 49% 62%, #485d68 63% 100%);
}

.story-media-secret-photo {
  background: radial-gradient(at 36% 71%, #f7e5da 0 12%, #c99578 13% 17%, #0000 18%), radial-gradient(at 66% 69%, #f6e4da 0 12%, #bd7c6b 13% 17%, #0000 18%), radial-gradient(circle at 76% 22%, #fff4c7 0 8%, #0000 9%), linear-gradient(152deg, #0000 42%, #463053c2 43% 64%, #0000 65%), linear-gradient(#dca9c8 0 42%, #9d6fa6 43% 58%, #514660 59% 100%);
}

.story-media-secret-video {
  background: radial-gradient(circle at 24% 25%, #ffe6b5 0 7%, #0000 8%), linear-gradient(30deg, #3c2d45e6 0 31%, #0000 32%), linear-gradient(148deg, #0000 40%, #7b4c70c7 41% 67%, #0000 68%), linear-gradient(#b894bd 0 46%, #e2a6b8 47% 60%, #5a495e 61% 100%);
}

.story-media-video i {
  background: #ffffffe0;
  border-radius: 50%;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: auto;
  display: grid;
  position: absolute;
  inset: 0;
  box-shadow: 0 7px 20px #14223040;
}

.story-media-video i:after {
  content: "";
  border-top: 6px solid #0000;
  border-bottom: 6px solid #0000;
  border-left: 10px solid var(--story-color);
  margin-left: 3px;
}

.story-work-media figcaption {
  gap: 3px;
  padding: 9px 10px 10px;
  display: grid;
}

.story-work-media figcaption strong {
  color: var(--public-ink);
  font-size: 10px;
}

.story-work-media figcaption span {
  color: #8994a4;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  overflow: hidden;
}

.public-feature-grid-story {
  margin-top: 20px;
}

.public-feature-grid {
  border-top: 1px solid var(--public-line);
  border-bottom: 1px solid var(--public-line);
  grid-template-columns: repeat(3, 1fr);
  width: min(1180px, 100% - 48px);
  margin: 0 auto 120px;
  display: grid;
}

.public-feature-grid article {
  border-right: 1px solid var(--public-line);
  padding: 42px 38px 46px;
}

.public-feature-grid article:last-child {
  border-right: 0;
}

.public-feature-grid article > span {
  color: var(--public-orange);
  font: 800 12px / 1 monospace;
}

.public-feature-grid h2 {
  letter-spacing: -.04em;
  margin: 24px 0 13px;
  font-size: 22px;
}

.public-feature-grid p {
  color: var(--public-muted);
  margin: 0;
  line-height: 1.7;
}

.public-project-section, .public-project-collection, .public-project-list-page > .public-project-grid, .public-project-list-page > .public-list-empty, .public-project-detail-page > section:not(.public-project-hero) {
  width: min(1180px, 100% - 48px);
  margin-left: auto;
  margin-right: auto;
}

.public-project-section {
  margin-bottom: 120px;
}

.public-section-heading {
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
  display: flex;
}

.public-section-heading h2 {
  letter-spacing: -.05em;
  margin: 8px 0 0;
  font-size: 34px;
}

.public-section-heading > a {
  color: var(--public-ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.public-project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  display: grid;
}

.public-project-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 100px;
}

.public-project-card {
  --project-color: #3976e8;
  min-height: 260px;
  color: var(--public-ink);
  border: 1px solid var(--public-line);
  border-top: 4px solid var(--project-color);
  background: #fff;
  border-radius: 17px;
  flex-direction: column;
  padding: 27px;
  text-decoration: none;
  transition: transform .16s, box-shadow .16s;
  display: flex;
}

.public-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px #23344c1c;
}

.public-project-card.accent-orange, .public-project-hero.accent-orange {
  --project-color: #ef6b2e;
}

.public-project-card.accent-violet, .public-project-hero.accent-violet {
  --project-color: #7548dd;
}

.public-project-card.accent-teal, .public-project-hero.accent-teal {
  --project-color: #0a908c;
}

.public-project-card.accent-rose, .public-project-hero.accent-rose {
  --project-color: #d84d76;
}

.public-project-card.accent-gold, .public-project-hero.accent-gold {
  --project-color: #bd7b0b;
}

.public-project-card.accent-slate, .public-project-hero.accent-slate {
  --project-color: #58677d;
}

.public-project-key {
  color: var(--project-color, var(--public-orange));
  letter-spacing: .08em;
  font: 800 12px / 1 monospace;
}

.public-project-card h2, .public-project-card h3 {
  letter-spacing: -.045em;
  margin: 22px 0 12px;
  font-size: 24px;
}

.public-project-card > p {
  color: var(--public-muted);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin: 0 0 26px;
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
}

.public-project-meta {
  color: #707c8f;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  display: flex;
}

.public-project-card-top {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.public-project-badge {
  color: #18805d;
  background: #e9f7f1;
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

.public-project-badge.open {
  color: var(--project-color);
  background: color-mix(in srgb, var(--project-color) 10%, white);
}

.public-project-progress {
  background: #edf0f4;
  border-radius: 10px;
  height: 6px;
  margin: 3px 0 18px;
  overflow: hidden;
}

.public-project-progress i {
  border-radius: inherit;
  background: var(--project-color, var(--public-orange));
  height: 100%;
  display: block;
}

.public-empty-card {
  color: var(--public-muted);
  background: var(--public-paper);
  text-align: center;
  border: 1px dashed #ccd4df;
  border-radius: 17px;
  padding: 44px;
}

.public-empty-card strong {
  color: var(--public-ink);
  font-size: 18px;
}

.public-empty-card p {
  margin: 9px 0 0;
}

.public-cta {
  color: #fff;
  background: var(--public-ink);
  border-radius: 24px;
  justify-content: space-between;
  align-items: center;
  width: min(1180px, 100% - 48px);
  margin: 0 auto 80px;
  padding: 56px 64px;
  display: flex;
}

.public-cta h2 {
  letter-spacing: -.05em;
  margin: 12px 0 0;
  font-size: 36px;
  line-height: 1.3;
}

.public-cta > a {
  min-height: 48px;
  color: var(--public-ink);
  background: #fff;
  border-radius: 12px;
  align-items: center;
  padding: 0 22px;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
}

.public-footer {
  color: #7a8698;
  border-top: 1px solid var(--public-line);
  align-items: center;
  gap: 18px;
  width: min(1180px, 100% - 48px);
  height: 100px;
  margin: 0 auto;
  font-size: 13px;
  display: flex;
}

.public-footer strong {
  color: var(--public-ink);
  font-size: 18px;
}

.public-page-heading {
  width: min(1180px, 100% - 48px);
  margin: 80px auto 44px;
}

.public-page-heading h1 {
  letter-spacing: -.06em;
  margin: 12px 0;
  font-size: 48px;
}

.public-page-heading p {
  max-width: 680px;
  color: var(--public-muted);
  font-size: 17px;
  line-height: 1.7;
}

.public-project-collection {
  padding-bottom: 100px;
}

.public-project-collection .public-project-grid-wide {
  padding-bottom: 0;
}

.public-project-viewbar {
  border-bottom: 1px solid var(--public-line);
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 52px;
  margin-bottom: 22px;
  display: flex;
}

.public-project-viewbar > strong {
  color: var(--public-muted);
  font-size: 13px;
}

.public-project-viewbar > div {
  align-items: center;
  gap: 6px;
  display: flex;
}

.public-project-viewbar button {
  color: #7a8698;
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 10px;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
}

.public-project-viewbar button:hover {
  color: var(--public-ink);
  background: var(--public-paper);
}

.public-project-viewbar button.active {
  color: var(--public-orange);
  background: #fff5ef;
  border-color: #f6c5ac;
}

.public-project-viewbar button > span {
  font-size: 16px;
}

.public-project-list {
  border-top: 1px solid var(--public-line);
  display: grid;
}

.public-project-list-item {
  --project-color: #3976e8;
  min-height: 102px;
  color: var(--public-ink);
  border-bottom: 1px solid var(--public-line);
  grid-template-columns: 5px minmax(250px, 1fr) 150px 210px auto 28px;
  align-items: center;
  gap: 20px;
  padding: 16px 18px 16px 0;
  text-decoration: none;
  transition: background-color .14s;
  display: grid;
}

.public-project-list-item:hover {
  background: var(--public-paper);
}

.public-project-list-item.accent-orange {
  --project-color: #ef6b2e;
}

.public-project-list-item.accent-violet {
  --project-color: #7548dd;
}

.public-project-list-item.accent-teal {
  --project-color: #0a908c;
}

.public-project-list-item.accent-rose {
  --project-color: #d84d76;
}

.public-project-list-item.accent-gold {
  --project-color: #bd7b0b;
}

.public-project-list-item.accent-slate {
  --project-color: #58677d;
}

.public-project-list-mark {
  background: var(--project-color);
  border-radius: 4px;
  align-self: stretch;
}

.public-project-list-title {
  min-width: 0;
}

.public-project-list-title > strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 7px 0 4px;
  font-size: 17px;
  display: block;
  overflow: hidden;
}

.public-project-list-title > p {
  color: var(--public-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-size: 12px;
  overflow: hidden;
}

.public-project-list-progress > span {
  color: var(--project-color);
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 900;
  display: block;
}

.public-project-list-progress .public-project-progress {
  margin: 0;
}

.public-project-list-meta {
  color: var(--public-muted);
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  display: grid;
}

.public-project-list-arrow {
  color: var(--project-color);
  font-size: 20px;
}

.portal-site {
  --public-ink: #15233a;
  --public-muted: #66738a;
  --public-line: #dfe5ed;
  --public-paper: #f7f8fa;
  --public-orange: #f26922;
  --public-violet: #7047d7;
  min-height: 100vh;
  color: var(--public-ink);
  background: #fff;
}

.portal-header {
  z-index: 50;
  border-bottom: 1px solid var(--public-line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: #ffffffe6;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 26px;
  width: min(1240px, 100% - 48px);
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  position: sticky;
  top: 0;
}

.portal-header nav {
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  display: flex;
}

.portal-header nav a, .portal-account > a {
  color: #4c5870;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  position: relative;
}

.portal-header nav a:hover, .portal-header nav a.active {
  color: var(--public-orange);
}

.portal-header nav a.active:after {
  content: "";
  background: var(--public-orange);
  height: 2px;
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
}

.portal-account {
  justify-content: end;
  align-items: center;
  gap: 10px;
  display: flex;
}

.portal-account > a {
  margin-right: 8px;
}

.portal-account > span {
  color: #fff;
  background: var(--public-violet);
  border-radius: 10px;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 12px;
  font-weight: 900;
  display: grid;
}

.portal-account > strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100px;
  font-size: 13px;
  overflow: hidden;
}

.portal-account button {
  color: var(--public-muted);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 7px 8px;
  font-size: 11px;
}

.portal-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, .7fr);
  align-items: stretch;
  gap: clamp(36px, 7vw, 100px);
  width: min(1240px, 100% - 48px);
  min-height: 530px;
  margin: 0 auto;
  padding: 84px 0;
  display: grid;
}

.portal-hero > div {
  align-self: center;
}

.portal-hero > div > span, .portal-service-section header > span, .portal-page-heading > span, .portal-everyone-card > div > span, .support-faq header > span {
  color: var(--public-orange);
  letter-spacing: .14em;
  font: 900 11px / 1 monospace;
}

.portal-hero h1 {
  letter-spacing: -.065em;
  margin: 18px 0 22px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.08;
}

.portal-hero > div > p {
  max-width: 620px;
  color: var(--public-muted);
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.75;
}

.portal-hero aside {
  color: #fff;
  background: linear-gradient(145deg, #192844, #342660 72%, #7047d7);
  border-radius: 28px;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  display: flex;
  box-shadow: 0 24px 70px #2e2d5d2e;
}

.portal-hero aside > span {
  color: #ffb08a;
  font-size: 12px;
  font-weight: 900;
}

.portal-hero aside > strong {
  letter-spacing: -.055em;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.32;
}

.portal-hero aside > a {
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.portal-service-section, .portal-everyone-card, .portal-page-heading, .story-topic-grid, .portal-coming-soon, .support-layout {
  width: min(1240px, 100% - 48px);
  margin-left: auto;
  margin-right: auto;
}

.portal-service-section {
  padding: 32px 0 110px;
}

.portal-service-section header h2 {
  letter-spacing: -.05em;
  margin: 10px 0 34px;
  font-size: 34px;
}

.portal-service-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  display: grid;
}

.portal-service-grid > a {
  min-height: 300px;
  color: var(--public-ink);
  border: 1px solid var(--public-line);
  border-radius: 20px;
  flex-direction: column;
  padding: 30px;
  text-decoration: none;
  transition: transform .16s, box-shadow .16s;
  display: flex;
}

.portal-service-grid > a:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px #23344c1a;
}

.portal-service-grid i {
  width: 48px;
  height: 48px;
  color: var(--public-orange);
  background: #fff1e9;
  border-radius: 15px;
  place-items: center;
  margin-bottom: 34px;
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
  display: grid;
}

.portal-service-grid small {
  color: #8a95a7;
  letter-spacing: .1em;
  font: 800 10px / 1 monospace;
}

.portal-service-grid h3 {
  letter-spacing: -.045em;
  margin: 11px 0;
  font-size: 25px;
}

.portal-service-grid p {
  color: var(--public-muted);
  margin: 0;
  line-height: 1.7;
}

.portal-service-grid > a > strong {
  color: var(--public-orange);
  margin-top: auto;
  font-size: 13px;
}

.portal-everyone-card {
  color: #fff;
  background: #15233a;
  border-radius: 24px;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-bottom: 90px;
  padding: 44px 50px;
  display: flex;
}

.portal-everyone-card h2 {
  letter-spacing: -.05em;
  margin: 10px 0 9px;
  font-size: 31px;
}

.portal-everyone-card p {
  color: #b9c3d2;
  margin: 0;
}

.portal-everyone-card > a {
  color: #15233a;
  background: #fff;
  border-radius: 12px;
  flex: none;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
}

.portal-page-heading {
  border-bottom: 1px solid var(--public-line);
  padding: 84px 0 50px;
}

.portal-page-heading h1 {
  letter-spacing: -.065em;
  margin: 14px 0 12px;
  font-size: 54px;
}

.portal-page-heading p {
  color: var(--public-muted);
  margin: 0;
  font-size: 17px;
}

.story-topic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 30px 0 80px;
  display: grid;
}

.story-topic-grid article {
  border: 1px solid var(--public-line);
  border-radius: 18px;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 140px;
  padding: 24px;
  display: grid;
}

.story-topic-grid article:first-child {
  grid-column: 1 / -1;
}

.story-topic-grid i {
  width: 48px;
  height: 48px;
  color: var(--public-violet);
  background: #f1edff;
  border-radius: 15px;
  place-items: center;
  font-size: 22px;
  font-style: normal;
  display: grid;
}

.story-topic-grid h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.story-topic-grid p {
  color: var(--public-muted);
  margin: 0;
  line-height: 1.55;
}

.story-topic-grid article > span {
  color: #9aa4b3;
  font-size: 12px;
  font-weight: 800;
}

.portal-coming-soon {
  background: var(--public-paper);
  text-align: center;
  border-radius: 18px;
  margin-bottom: 90px;
  padding: 32px;
}

.portal-coming-soon strong {
  font-size: 18px;
}

.portal-coming-soon p {
  max-width: 720px;
  color: var(--public-muted);
  margin: 10px auto 0;
  line-height: 1.65;
}

.support-layout {
  padding: 38px 0 90px;
}

.support-guide-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 70px;
  display: grid;
}

.support-guide-grid article {
  border: 1px solid var(--public-line);
  border-radius: 18px;
  flex-direction: column;
  min-height: 230px;
  padding: 26px;
  display: flex;
}

.support-guide-grid article > span {
  width: 42px;
  height: 42px;
  color: var(--public-orange);
  background: #fff1e9;
  border-radius: 13px;
  place-items: center;
  font-weight: 900;
  display: grid;
}

.support-guide-grid h2 {
  margin: 23px 0 9px;
  font-size: 20px;
}

.support-guide-grid p {
  color: var(--public-muted);
  margin: 0;
  line-height: 1.6;
}

.support-guide-grid a, .support-guide-grid em {
  color: var(--public-orange);
  margin-top: auto;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  text-decoration: none;
}

.support-faq {
  max-width: 850px;
}

.support-faq header {
  margin-bottom: 22px;
}

.support-faq h2 {
  margin: 10px 0 0;
  font-size: 32px;
}

.support-faq details {
  border-bottom: 1px solid var(--public-line);
}

.support-faq summary {
  cursor: pointer;
  padding: 22px 4px;
  font-size: 16px;
  font-weight: 850;
}

.support-faq details p {
  color: var(--public-muted);
  margin: -2px 4px 24px;
  line-height: 1.75;
}

.public-project-hero {
  --project-color: #3976e8;
  background: color-mix(in srgb, var(--project-color) 8%, white);
  width: min(1180px, 100% - 48px);
  box-shadow: inset 6px 0 0 var(--project-color);
  border-radius: 24px;
  grid-template-columns: 1fr 190px;
  gap: 60px;
  margin: 64px auto 30px;
  padding: 52px 56px;
  display: grid;
}

.public-project-hero > div > a {
  color: var(--public-muted);
  margin-bottom: 30px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  display: block;
}

.public-project-hero h1 {
  letter-spacing: -.06em;
  margin: 12px 0 18px;
  font-size: 46px;
}

.public-project-hero p {
  max-width: 720px;
  color: var(--public-muted);
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
}

.public-project-hero aside {
  border-left: 1px solid color-mix(in srgb, var(--project-color) 25%, white);
  align-self: center;
  padding-left: 34px;
}

.public-project-hero aside > strong {
  color: var(--project-color);
  letter-spacing: -.06em;
  font-size: 42px;
  display: block;
}

.public-project-hero aside > span {
  color: var(--public-muted);
  margin: 4px 0 18px;
  font-size: 12px;
  font-weight: 800;
  display: block;
}

.public-project-notice {
  border-radius: 12px;
  margin-top: 0;
  margin-bottom: 24px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 700;
}

.public-project-notice.success {
  color: #176a50;
  background: #e8f6f0;
}

.public-project-notice.error {
  color: #a33c3c;
  background: #fff0f0;
}

.public-project-overview {
  grid-template-columns: 1fr 360px;
  gap: 28px;
  margin-bottom: 74px;
  display: grid;
}

.public-project-overview dl {
  border: 1px solid var(--public-line);
  border-radius: 16px;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  display: grid;
  overflow: hidden;
}

.public-project-overview dl > div {
  border-right: 1px solid var(--public-line);
  padding: 25px;
}

.public-project-overview dl > div:last-child {
  border: 0;
}

.public-project-overview dt {
  color: var(--public-muted);
  font-size: 11px;
  font-weight: 800;
}

.public-project-overview dd {
  margin: 9px 0 0;
  font-size: 15px;
  font-weight: 800;
}

.public-project-participation {
  background: var(--public-paper);
  border-radius: 16px;
  padding: 22px;
}

.public-project-participation p {
  color: var(--public-muted);
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
}

.public-project-participation .public-primary-button {
  width: 100%;
  min-height: 42px;
}

.public-project-content {
  padding-bottom: 100px;
}

.public-work-list {
  border-top: 1px solid var(--public-line);
}

.public-work-list article {
  border-bottom: 1px solid var(--public-line);
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
  padding: 14px 18px;
  display: flex;
}

.public-work-list article.nested {
  padding-left: 48px;
}

.public-work-list article > div {
  grid-template-columns: 54px minmax(180px, 1fr) auto;
  align-items: center;
  gap: 14px;
  display: grid;
}

.public-work-list article span {
  color: var(--public-muted);
  font-size: 11px;
  font-weight: 800;
}

.public-work-list article h3 {
  margin: 0;
  font-size: 15px;
}

.public-work-list article small {
  color: #8792a3;
}

.public-work-list article > strong {
  color: var(--public-orange);
  font-size: 15px;
}

.public-member-heading {
  margin-top: 70px;
}

.public-member-list {
  flex-wrap: wrap;
  gap: 10px;
  display: flex;
}

.public-member-list > span {
  border: 1px solid var(--public-line);
  border-radius: 12px;
  grid-template-rows: auto auto;
  grid-template-columns: 34px 1fr;
  column-gap: 10px;
  min-width: 170px;
  padding: 11px 14px;
  display: grid;
}

.public-member-list i {
  color: #fff;
  background: var(--public-violet);
  border-radius: 50%;
  grid-row: 1 / 3;
  place-items: center;
  width: 34px;
  height: 34px;
  font-style: normal;
  font-weight: 900;
  display: grid;
}

.public-member-list b {
  font-size: 13px;
}

.public-member-list small {
  color: var(--public-muted);
  font-size: 11px;
}

.public-locked-content {
  text-align: center;
  background: var(--public-paper);
  border-radius: 20px;
  margin-top: 70px;
  margin-bottom: 100px;
  padding: 70px;
}

.public-locked-content > span {
  color: var(--public-orange);
  font-size: 40px;
}

.public-locked-content h2 {
  margin: 14px 0 10px;
}

.public-locked-content p {
  color: var(--public-muted);
}

.signup-page {
  background: var(--public-paper);
  grid-template-columns: minmax(360px, .85fr) minmax(480px, 1.15fr);
  display: grid;
}

.signup-intro {
  color: #fff;
  background: var(--public-ink);
  flex-direction: column;
  min-height: 100vh;
  padding: 56px clamp(50px, 7vw, 110px);
  display: flex;
}

.signup-intro .public-brand {
  color: #fff;
}

.signup-intro > div {
  margin: auto 0 40px;
}

.signup-intro h1 {
  letter-spacing: -.06em;
  margin: 18px 0 20px;
  font-size: clamp(40px, 4.5vw, 62px);
  line-height: 1.15;
}

.signup-intro p {
  color: #b9c3d2;
  max-width: 520px;
  line-height: 1.75;
}

.signup-intro ul {
  border-top: 1px solid #ffffff26;
  margin: 0;
  padding: 26px 0 0;
  list-style: none;
}

.signup-intro li {
  color: #d6dce6;
  margin: 11px 0;
  font-size: 13px;
}

.signup-intro li:before {
  content: "✓";
  color: #ff9b68;
  margin-right: 10px;
  font-weight: 900;
}

.signup-card {
  border: 1px solid var(--public-line);
  background: #fff;
  border-radius: 22px;
  width: min(520px, 100% - 48px);
  margin: auto;
  padding: 52px;
  box-shadow: 0 24px 70px #23344c1a;
}

.signup-card header > span {
  color: var(--public-orange);
  letter-spacing: .14em;
  font: 900 11px / 1 monospace;
}

.signup-card h2 {
  letter-spacing: -.05em;
  margin: 10px 0 8px;
  font-size: 30px;
}

.signup-card header p {
  color: var(--public-muted);
  margin: 0 0 28px;
  font-size: 13px;
}

.signup-card form {
  gap: 15px;
  display: grid;
}

.signup-card label {
  gap: 7px;
  display: grid;
}

.signup-card label > span {
  color: #4e5b70;
  font-size: 12px;
  font-weight: 800;
}

.signup-card input {
  width: 100%;
  height: 46px;
  color: var(--public-ink);
  font: inherit;
  background: #fff;
  border: 1px solid #d7dee8;
  border-radius: 10px;
  padding: 0 13px;
}

.signup-card input:focus {
  border-color: var(--public-orange);
  outline: 3px solid #f2692224;
}

.signup-card .public-primary-button {
  margin-top: 8px;
}

.signup-card footer {
  color: var(--public-muted);
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
}

.signup-card footer a, .login-footer a {
  color: var(--public-orange);
  font-weight: 800;
}

.login-footer {
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 900px) {
  .public-hero {
    grid-template-columns: 1fr;
    padding: 80px 0;
  }

  .public-timeline-preview {
    min-height: 350px;
  }

  .public-story-intro {
    min-height: 52vh;
  }

  .story-chapter {
    grid-template-columns: 1fr;
    gap: 52px;
    min-height: auto;
    padding: 90px 0 110px;
  }

  .story-chapter:nth-child(2n) .story-copy, .story-chapter:nth-child(2n) .story-visual {
    order: initial;
  }

  .story-visual {
    width: min(680px, 100%);
    min-height: 500px;
    position: relative;
    top: auto;
  }

  .public-feature-grid, .public-project-grid {
    grid-template-columns: 1fr;
  }

  .public-feature-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--public-line);
  }

  .public-feature-grid article:last-child {
    border-bottom: 0;
  }

  .public-project-hero {
    grid-template-columns: 1fr;
  }

  .public-project-hero aside {
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--project-color) 25%, white);
    padding: 24px 0 0;
  }

  .public-project-overview, .signup-page {
    grid-template-columns: 1fr;
  }

  .signup-intro {
    min-height: auto;
    padding: 42px 24px 58px;
  }

  .signup-intro > div {
    margin: 70px 0 28px;
  }

  .signup-card {
    margin: 34px auto;
  }

  .public-project-list-item {
    grid-template-columns: 5px minmax(230px, 1fr) 130px auto 28px;
  }

  .public-project-list-meta {
    display: none;
  }

  .portal-header {
    grid-template-columns: auto 1fr auto;
  }

  .portal-header nav {
    justify-content: end;
  }

  .portal-account > a, .portal-account > strong {
    display: none;
  }

  .portal-hero {
    grid-template-columns: 1fr;
  }

  .portal-hero aside {
    min-height: 350px;
  }

  .portal-service-grid, .support-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .public-site-header {
    width: calc(100% - 28px);
    height: 68px;
  }

  .public-site-header nav {
    gap: 10px;
  }

  .public-site-header nav > a:first-child {
    display: none;
  }

  .public-site-header nav a {
    font-size: 12px;
  }

  .public-site-header nav .public-nav-primary {
    min-height: 36px;
    padding: 0 12px;
  }

  .public-hero, .public-feature-grid, .public-project-section, .public-project-collection, .public-page-heading, .public-project-list-page > .public-project-grid, .public-project-list-page > .public-list-empty, .public-project-hero, .public-project-detail-page > section:not(.public-project-hero), .public-cta, .public-footer {
    width: calc(100% - 28px);
  }

  .public-hero {
    min-height: auto;
    padding: 68px 0;
  }

  .public-hero h1 {
    letter-spacing: -.055em;
    font-size: clamp(29px, 8vw, 34px);
  }

  .public-hero-copy > p {
    font-size: 16px;
  }

  .public-hero-actions {
    flex-direction: column;
  }

  .public-scroll-cue {
    margin-top: 34px;
  }

  .public-timeline-preview {
    border-radius: 18px;
    min-height: 330px;
  }

  .preview-project > div {
    gap: 42px;
  }

  .preview-violet {
    margin-left: 36px;
  }

  .public-story-intro {
    width: calc(100% - 28px);
    padding: 88px 0;
  }

  .public-story-intro h2 {
    font-size: 42px;
  }

  .public-story-intro p {
    font-size: 16px;
  }

  .story-chapter {
    gap: 42px;
    width: calc(100% - 28px);
    padding: 72px 0 88px;
  }

  .story-copy .story-number {
    font-size: 76px;
  }

  .story-copy > small {
    margin-top: 27px;
  }

  .story-copy h2 {
    font-size: clamp(29px, 8vw, 34px);
  }

  .story-copy > p {
    font-size: 16px;
  }

  .story-visual {
    border-radius: 23px;
    min-height: 450px;
  }

  .story-visual > header {
    grid-template-columns: 38px 1fr auto;
    min-height: 78px;
    padding: 0 18px;
  }

  .story-visual-mark {
    width: 38px;
    height: 38px;
  }

  .story-visual:after {
    top: 78px;
  }

  .story-note-list {
    gap: 14px;
    padding: 16px 14px 22px;
  }

  .story-note-card {
    min-height: 88px;
    padding: 14px;
  }

  .story-note-card:nth-child(2) {
    margin-left: 5%;
  }

  .story-note-card:nth-child(3) {
    margin-right: 3%;
  }

  .public-section-heading h2 {
    font-size: 28px;
  }

  .public-cta {
    flex-direction: column;
    align-items: start;
    gap: 28px;
    padding: 36px 28px;
  }

  .public-cta h2 {
    font-size: 29px;
  }

  .public-project-hero {
    margin-top: 30px;
    padding: 34px 26px;
  }

  .public-project-hero h1 {
    font-size: 36px;
  }

  .public-project-overview dl {
    grid-template-columns: repeat(2, 1fr);
  }

  .public-project-overview dl > div:nth-child(2) {
    border-right: 0;
  }

  .public-project-overview dl > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--public-line);
  }

  .public-work-list article > div {
    grid-template-columns: 46px 1fr;
  }

  .public-work-list article small {
    grid-column: 2;
  }

  .public-locked-content {
    padding: 46px 20px;
  }

  .signup-card {
    padding: 34px 24px;
  }

  .public-project-viewbar {
    align-items: end;
  }

  .public-project-viewbar button {
    padding: 0 10px;
  }

  .public-project-list-item {
    grid-template-columns: 5px minmax(0, 1fr) auto;
    gap: 13px;
    min-height: 112px;
  }

  .public-project-list-progress, .public-project-list-item > .public-project-badge {
    display: none;
  }

  .public-project-list-arrow {
    grid-area: 1 / 3;
  }

  .portal-header {
    grid-template-columns: auto 1fr;
    width: calc(100% - 28px);
    min-height: 68px;
  }

  .portal-header .public-brand strong, .portal-account {
    display: none;
  }

  .portal-header nav {
    justify-content: end;
    gap: 13px;
  }

  .portal-header nav a {
    font-size: 12px;
  }

  .portal-hero, .portal-service-section, .portal-everyone-card, .portal-page-heading, .story-topic-grid, .portal-coming-soon, .support-layout {
    width: calc(100% - 28px);
  }

  .portal-hero {
    min-height: auto;
    padding: 66px 0;
  }

  .portal-hero h1 {
    font-size: 44px;
  }

  .portal-hero aside {
    min-height: 300px;
    padding: 32px;
  }

  .portal-service-section {
    padding-bottom: 76px;
  }

  .portal-service-grid > a {
    min-height: 250px;
  }

  .portal-everyone-card {
    flex-direction: column;
    align-items: start;
    padding: 34px 26px;
  }

  .portal-page-heading {
    padding: 64px 0 36px;
  }

  .portal-page-heading h1 {
    font-size: 44px;
  }

  .story-topic-grid {
    grid-template-columns: 1fr;
  }

  .story-topic-grid article:first-child {
    grid-column: auto;
  }

  .story-topic-grid article {
    grid-template-columns: 42px 1fr;
  }

  .story-topic-grid article > span {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-scroll-cue > span:after {
    animation: none;
  }

  .public-project-card {
    transition: none;
  }
}

* {
  box-sizing: border-box;
}

html, body {
  background: var(--background);
  min-height: 100%;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  font-family: Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

button, select, input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible, .timeline-stage:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 50%, transparent);
  outline-offset: 2px;
}

.app-shell {
  grid-template-columns: 64px minmax(0, 1fr);
  height: 100vh;
  transition: grid-template-columns .18s;
  display: grid;
  overflow: hidden;
}

.app-shell.sidebar-expanded {
  grid-template-columns: 220px minmax(0, 1fr);
}

.sidebar {
  border-right: 1px solid var(--line);
  background: linear-gradient(#eef5ff 0%, #f5f7fb 52%, #faf4ff 100%);
  min-width: 0;
  padding: 12px 9px;
  overflow: hidden;
}

.sidebar-top {
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 4px;
  display: flex;
}

.hamburger-button {
  border: 1px solid var(--line-strong);
  cursor: pointer;
  background: #ffffffd1;
  border-radius: 10px;
  flex: 0 0 38px;
  place-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  display: grid;
}

.hamburger-button span {
  background: currentColor;
  border-radius: 2px;
  width: 16px;
  height: 1.5px;
}

.sidebar-brand {
  white-space: nowrap;
  letter-spacing: .08em;
  font-size: 12px;
}

.sidebar-nav {
  flex-direction: column;
  gap: 5px;
  height: calc(100% - 54px);
  padding-top: 14px;
  display: flex;
}

.sidebar-link {
  min-height: 38px;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  text-decoration: none;
  display: flex;
}

.sidebar-link > span:first-child {
  text-align: center;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 24px;
  line-height: 1;
  display: grid;
}

.sidebar-timeline-icon svg, .sidebar-section-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8px;
  stroke-linecap: round;
  width: 25px;
  height: 25px;
}

.sidebar-link > span:last-child:not(:first-child) {
  font-size: 12px;
  font-weight: 650;
}

.sidebar-link.active {
  color: #1d4ed8;
  background: #2563eb1f;
  border-color: #2563eb33;
}

.sidebar-settings {
  margin-top: auto;
}

.sidebar-link:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.sidebar-account-slot {
  border-top: 1px solid var(--line);
  justify-content: center;
  padding-top: 8px;
  display: flex;
}

.sidebar-account-slot.expanded {
  justify-content: stretch;
}

.sidebar-account {
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  display: flex;
}

.sidebar-account-avatar {
  color: #334155;
  background: linear-gradient(145deg, #dbeafe, #ede9fe);
  border-radius: 9px;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 11px;
  font-weight: 900;
  display: grid;
}

.sidebar-account-copy {
  flex: 1;
  min-width: 0;
  display: none;
}

.sidebar-account-slot.expanded .sidebar-account-copy {
  gap: 2px;
  display: grid;
}

.sidebar-account-copy strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  overflow: hidden;
}

.sidebar-account-copy small {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
  overflow: hidden;
}

.sidebar-account form {
  display: none;
}

.sidebar-account-slot.expanded .sidebar-account form {
  display: block;
}

.sidebar-account button {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 28px;
  height: 28px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 7px;
  place-items: center;
  display: grid;
}

.sidebar-account button:hover {
  background: var(--surface-raised);
  color: var(--text);
}

.sidebar-nav {
  margin-top: 12px;
}

.app-main {
  background: var(--background);
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.control-bar {
  border-bottom: 1px solid var(--line);
  z-index: 20;
  background: #fffffff5;
  gap: 8px;
  padding: 10px 18px;
  display: grid;
}

.control-bar-primary, .control-bar-secondary {
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  display: flex;
}

.control-bar-primary {
  scrollbar-width: thin;
  overflow-x: auto;
}

.control-bar-secondary {
  justify-content: flex-end;
}

.timeline-title-control {
  align-items: center;
  gap: 16px;
  min-width: 0;
  display: flex;
}

.page-heading {
  flex: none;
}

.page-heading h1 {
  letter-spacing: -.02em;
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.page-heading p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 12px;
}

.control-field {
  min-width: 345px;
  color: var(--muted);
  align-items: center;
  gap: 8px;
  font-size: 12px;
  display: flex;
}

.app-shell:not(.sidebar-expanded) .sidebar-link {
  justify-content: center;
  align-self: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
}

.app-shell:not(.sidebar-expanded) .sidebar-link > span:first-child {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
  font-size: 26px;
}

.app-shell:not(.sidebar-expanded) .sidebar-timeline-icon svg {
  width: 28px;
  height: 28px;
}

.app-shell:not(.sidebar-expanded) .sidebar-section-icon svg {
  width: 27px;
  height: 27px;
}

.control-field select {
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  height: 34px;
  color: var(--text);
  border-radius: 8px;
  flex: 1;
  padding: 0 30px 0 10px;
}

.timeline-filter-controls {
  align-items: center;
  gap: 5px;
  display: flex;
}

.timeline-filter-controls label {
  color: var(--muted);
  align-items: center;
  gap: 4px;
  font-size: 11px;
  display: flex;
}

.timeline-filter-controls select {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  max-width: 128px;
  height: 34px;
  color: var(--text);
  border-radius: 8px;
  padding: 0 22px 0 7px;
  font-size: 10px;
}

.control-bar-view-toggles {
  align-items: center;
  gap: 6px;
  margin-left: auto;
  display: flex;
}

.control-bar-visibility-toggle {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  height: 34px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  flex: none;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
}

.control-bar-visibility-toggle:hover {
  border-color: var(--blue);
  background: var(--surface-raised);
  color: var(--text);
}

.control-bar-visibility-toggle[aria-pressed="true"] {
  background: var(--surface-raised);
  color: var(--blue);
  border-color: #2563eb66;
}

.control-bar-visibility-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 18px;
  height: 18px;
}

.zoom-control {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 8px;
  grid-template-columns: 32px auto 32px;
  align-items: center;
  height: 34px;
  display: grid;
  overflow: hidden;
}

.zoom-control button {
  cursor: pointer;
  background: none;
  border: 0;
  height: 100%;
}

.zoom-control button:hover {
  background: #0f172a0f;
}

.zoom-control span {
  min-width: 68px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.display-step-control {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  height: 34px;
  color: var(--muted);
  border-radius: 8px;
  grid-template-columns: auto 28px 46px 28px;
  align-items: center;
  display: grid;
  overflow: hidden;
}

.display-step-control b {
  color: var(--text);
  padding: 0 9px;
  font-size: 11px;
  font-weight: 650;
}

.display-step-control button {
  cursor: pointer;
  background: none;
  border: 0;
  align-self: stretch;
}

.display-step-control button:hover:not(:disabled) {
  background: #0f172a0f;
}

.display-step-control button:disabled {
  opacity: .32;
  cursor: default;
}

.display-step-control output {
  font-variant-numeric: tabular-nums;
  text-align: center;
  font-size: 12px;
}

.global-row-controls {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 8px;
  height: 34px;
  display: flex;
  overflow: hidden;
}

.global-row-controls button {
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  background: none;
  padding: 0 10px;
  font-size: 12px;
}

.global-row-controls button:last-child {
  border-right: 0;
}

.global-row-controls button[aria-pressed="true"] {
  background: var(--surface-raised);
  color: var(--blue);
  font-weight: 750;
}

.table-action-button.danger {
  color: #b42318;
  border-color: #b423183d;
}

.table-action-button.danger:hover {
  background: #fff1f2;
  border-color: #b423186b;
}

.legend-bar {
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  min-height: 38px;
  color: var(--muted);
  white-space: nowrap;
  align-items: center;
  gap: 18px;
  padding: 7px 18px;
  font-size: 11px;
  display: flex;
  overflow-x: auto;
}

.legend-bar span {
  align-items: center;
  gap: 7px;
  display: inline-flex;
}

:is(.control-bar:has( + .timeline-navigation-bar), .legend-bar:has( + .timeline-navigation-bar)) {
  border-bottom-color: #0000;
}

.legend-diamond {
  background: var(--blue);
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
}

.legend-project-boundary {
  border: 2px solid var(--blue);
  width: 18px;
  height: 18px;
  color: var(--blue);
  place-items: center;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  display: grid;
}

.legend-project-boundary.boundary-start {
  border-radius: 5px;
}

.legend-project-boundary.boundary-end {
  border-radius: 50%;
}

.legend-group {
  background: var(--violet);
  color: #fff;
  border-radius: 5px;
  place-items: center;
  width: 18px;
  height: 18px;
  font-style: normal;
  font-weight: 800;
  display: grid;
}

.legend-status {
  border-radius: 99px;
  width: 20px;
  height: 6px;
}

.legend-status.done {
  background: var(--green);
}

.legend-status.progress {
  background: var(--blue);
}

.legend-status.delayed {
  background: var(--red);
}

.legend-dependency-line {
  border-bottom: 2px solid #64748b;
  width: 24px;
  height: 10px;
  position: relative;
}

.legend-dependency-line:after {
  content: "";
  border: 3px solid #0000;
  border-left: 5px solid #64748b;
  border-right-width: 0;
  position: absolute;
  bottom: -4px;
  right: -1px;
}

.legend-dependency-warning {
  color: #fff;
  background: #dc2626;
  border-radius: 50%;
  place-items: center;
  width: 17px;
  height: 17px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  display: grid;
}

.legend-today {
  background: var(--today);
  width: 2px;
  height: 18px;
}

.timeline-stage {
  --timeline-row-gap: 10px;
  --timeline-content-font-size: 12px;
  --timeline-tick-shift-y: 7px;
  --timeline-month-label-shift-y: 6px;
  --timeline-month-label-density-shift-y: clamp(0px, calc(13px - var(--timeline-content-font-size)), 3px);
  --timeline-date-chip-gap: 5px;
  --project-summary-header-height: calc(18px + var(--timeline-content-font-size) + var(--timeline-content-font-size));
  --work-item-header-height: calc(12px + var(--timeline-content-font-size) + var(--timeline-content-font-size));
  --project-header-block-padding: clamp(3px, calc(var(--timeline-content-font-size) - 7px), 8px);
  --summary-chip-block-padding: clamp(1px, calc(var(--timeline-content-font-size) - 12px), 3px);
  --work-summary-block-padding: clamp(2px, calc(var(--timeline-content-font-size) - 10px), 5px);
  --work-summary-inline-padding: clamp(6px, calc(var(--timeline-content-font-size) - 6px), 9px);
  --work-detail-toggle-height: max(24px, calc(9px + var(--timeline-content-font-size)));
  --milestone-track-height: calc(18px + var(--timeline-content-font-size) + var(--timeline-content-font-size));
  --project-boundary-size: clamp(28px, calc(6px + var(--timeline-content-font-size) + var(--timeline-content-font-size)), 36px);
  scrollbar-gutter: stable both-edges;
  overscroll-behavior: contain;
  min-height: 0;
  font-size: var(--timeline-content-font-size);
  background: radial-gradient(circle at 50% -20%, #2563eb14, transparent 38%),
    var(--background);
  flex: 1;
  overflow: hidden auto;
}

.timeline-stage.is-dragging {
  cursor: grabbing;
  -webkit-user-select: none;
  user-select: none;
}

.timeline-axis {
  z-index: 15;
  min-height: var(--timeline-axis-height);
  border-bottom: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  cursor: grab;
  background: #fffffff5;
  position: sticky;
  top: 0;
}

.timeline-canvas {
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.timeline-axis, .milestone-track, .work-item-canvas {
  touch-action: pan-y;
}

.timeline-axis-canvas {
  height: var(--timeline-axis-height);
}

.timeline-navigation-bar {
  border-bottom: 1px solid var(--line);
  z-index: 18;
  background: #f8fafcf5;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 0 18px;
  display: grid;
}

.quarter-navigation-strip {
  scrollbar-width: none;
  align-items: center;
  min-width: 0;
  height: 28px;
  display: flex;
  overflow-x: auto;
}

.quarter-navigation-strip::-webkit-scrollbar {
  display: none;
}

.quarter-navigation-past {
  justify-content: flex-end;
}

.quarter-navigation-future {
  justify-content: flex-start;
}

.quarter-navigation-items {
  align-items: center;
  gap: 3px;
  min-width: max-content;
  padding: 0 3px;
  display: flex;
  position: relative;
}

.quarter-navigation-items:before {
  content: "";
  background: var(--line-strong);
  height: 1px;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-.5px);
}

.quarter-navigation-cell {
  z-index: 1;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  border-radius: 3px;
  flex: 0 0 13px;
  place-items: center;
  width: 13px;
  height: 13px;
  padding: 0;
  display: grid;
  position: relative;
}

.quarter-navigation-cell.is-year-start:not(:first-child) {
  margin-left: 5px;
}

.quarter-navigation-cell:hover {
  border-color: var(--blue);
  background: var(--surface-raised);
}

.quarter-navigation-fill {
  background: none;
  border-radius: 1.5px;
  width: 7px;
  height: 7px;
}

.quarter-navigation-cell.has-project .quarter-navigation-fill {
  background: color-mix(in srgb, var(--blue) 70%, var(--surface));
}

.quarter-navigation-cell.is-current {
  border-color: color-mix(in srgb, var(--today) 62%, var(--line-strong));
}

.quarter-navigation-cell.is-active {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 28%, transparent);
  border-color: var(--blue);
}

.timeline-navigation-controls {
  border: 1px solid var(--line);
  background: none;
  border-radius: 8px;
  align-items: center;
  height: 28px;
  padding: 0;
  display: flex;
  box-shadow: 0 2px 8px #0f172a14;
}

.timeline-navigation-controls button {
  min-width: 30px;
  height: 100%;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  place-items: center;
  padding: 0;
  font-size: 13px;
  line-height: 1;
  display: grid;
}

.timeline-navigation-controls button:hover {
  color: var(--text);
  background: #0f172a0f;
}

.timeline-navigation-controls .today-button {
  min-width: 54px;
  color: var(--muted);
  font-size: 11px;
  font-weight: inherit;
  padding: 0 12px;
  line-height: 1;
}

.timeline-tick {
  top: calc(48px - var(--timeline-tick-shift-y));
  background: #0f172a38;
  width: 1px;
  height: 6px;
  position: absolute;
}

.timeline-tick.tick-week {
  top: calc(44px - var(--timeline-tick-shift-y));
  background: #0f172a66;
  height: 10px;
}

.timeline-tick.tick-month {
  top: calc(44px - var(--timeline-tick-shift-y));
  background: #0f172ab8;
  width: 2px;
  height: 10px;
}

.timeline-tick span {
  top: -17px;
  left: var(--timeline-tick-label-offset, 0);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: .833em;
  position: absolute;
  transform: translateX(-50%);
}

.timeline-tick.tick-week span {
  top: -18px;
}

.timeline-tick.tick-month span {
  top: calc(-30px - var(--timeline-month-label-shift-y) + var(--timeline-month-label-density-shift-y));
  color: var(--text);
  font-size: 1em;
  font-weight: 700;
}

.today-line {
  z-index: 2;
  background: var(--today);
  pointer-events: none;
  width: 2px;
  position: absolute;
  top: 0;
  bottom: 0;
  transform: translateX(-1px);
}

.today-line.subdued {
  opacity: .55;
}

.today-line.axis-today-line {
  top: calc(44px - var(--timeline-tick-shift-y));
  height: 10px;
  bottom: auto;
}

.center-guide {
  left: 50%;
  top: calc(44px - var(--timeline-tick-shift-y));
  z-index: 3;
  background: var(--blue);
  pointer-events: none;
  width: 2px;
  height: 10px;
  position: absolute;
  transform: translateX(-1px);
}

.center-date {
  left: 50%;
  bottom: var(--timeline-date-chip-gap);
  z-index: 4;
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  height: 20px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  border-radius: 5px;
  align-items: center;
  padding: 0 8px;
  font-size: .833em;
  line-height: 1;
  display: flex;
  position: absolute;
  transform: translateX(-50%);
}

.project-sections {
  gap: 0;
  padding: 0 0 50px;
  display: grid;
}

.project-sections-empty {
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
  border-radius: 10px;
  margin: 0 16px;
  padding: 22px 18px;
  font-size: 1em;
}

.project-milestone-section {
  border: 1px solid var(--line);
  background: #ffffffe6;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  margin: 0;
  position: relative;
  box-shadow: 0 10px 28px #0f172a14;
}

.project-milestone-section:after {
  content: "";
  height: calc(var(--timeline-row-gap) + 6px);
  background: var(--background);
  display: block;
}

.project-milestone-section.accent-blue {
  --project-accent: var(--blue);
}

.project-milestone-section.accent-orange {
  --project-accent: var(--orange);
}

.project-milestone-section.accent-violet {
  --project-accent: var(--violet);
}

.project-milestone-section.accent-teal {
  --project-accent: var(--teal);
}

.project-milestone-section.accent-rose {
  --project-accent: var(--rose);
}

.project-milestone-section.accent-gold {
  --project-accent: var(--gold);
}

.project-milestone-section.accent-slate {
  --project-accent: var(--slate);
}

.project-sticky-region {
  top: var(--timeline-axis-height);
  z-index: 14;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line), 0 6px 14px #0f172a14;
  position: sticky;
}

.timeline-following-project-stack {
  z-index: 40;
  pointer-events: none;
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  height: 48px;
  position: fixed;
  overflow: hidden;
  box-shadow: 0 -8px 20px #0f172a1c, 0 8px 20px #0f172a1c;
}

.timeline-following-project-header {
  --project-accent: var(--blue);
  border-left: 4px solid var(--project-accent);
  background: color-mix(in srgb, var(--project-accent) 10%, var(--surface));
  min-width: 180px;
  color: var(--foreground);
  font-size: max(11px, var(--timeline-content-font-size));
  white-space: nowrap;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 9px;
  display: flex;
  position: absolute;
  inset-block: 0;
  overflow: hidden;
  box-shadow: -6px 0 14px #0f172a1f;
}

.timeline-following-project-header.accent-blue {
  --project-accent: var(--blue);
}

.timeline-following-project-header.accent-orange {
  --project-accent: var(--orange);
}

.timeline-following-project-header.accent-violet {
  --project-accent: var(--violet);
}

.timeline-following-project-header.accent-teal {
  --project-accent: var(--teal);
}

.timeline-following-project-header.accent-rose {
  --project-accent: var(--rose);
}

.timeline-following-project-header.accent-gold {
  --project-accent: var(--gold);
}

.timeline-following-project-header.accent-slate {
  --project-accent: var(--slate);
}

.timeline-following-project-pin {
  background: color-mix(in srgb, var(--project-accent) 14%, var(--surface));
  border-radius: 8px;
  flex: 0 0 26px;
  place-items: center;
  width: 26px;
  height: 26px;
  display: grid;
}

.timeline-following-project-header strong {
  text-overflow: ellipsis;
  overflow: hidden;
}

.timeline-following-project-period {
  color: var(--muted);
  font-weight: 700;
}

.timeline-following-project-metric {
  border-radius: 999px;
  padding: 2px 7px;
  font-weight: 800;
}

.timeline-following-project-metric.metric-progress {
  color: var(--project-accent);
  background: color-mix(in srgb, var(--project-accent) 12%, var(--surface));
  margin-left: auto;
}

.timeline-following-project-metric.metric-completed {
  color: var(--muted-strong);
  background: color-mix(in srgb, var(--muted) 12%, var(--surface));
}

.project-summary-header {
  min-height: var(--project-summary-header-height);
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--project-accent);
  background: color-mix(in srgb, var(--project-accent) 10%, var(--surface));
  border-radius: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 0 8px 4px;
  display: flex;
}

.project-timeline-map {
  pointer-events: none;
  flex: 0 0 calc(100% - 8px);
  height: 12px;
  margin: -2px 4px 0;
  position: relative;
}

.project-timeline-map:before {
  content: "";
  background: color-mix(in srgb, var(--muted) 20%, transparent);
  z-index: 0;
  border-radius: 99px;
  height: 3px;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
}

.project-timeline-map-indicator {
  top: 50%;
  left: var(--project-map-left);
  width: max(5px, var(--project-map-width));
  max-width: calc(100% - var(--project-map-left));
  background: var(--project-accent);
  height: 12px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--project-accent) 20%, transparent);
  z-index: 1;
  border-radius: 99px;
  transition: left .12s ease-out, width .12s ease-out;
  position: absolute;
  transform: translateY(-50%);
}

.project-timeline-map-milestone {
  top: 50%;
  left: clamp(3px, var(--project-map-milestone-left), calc(100% - 3px));
  width: var(--project-map-milestone-size);
  height: var(--project-map-milestone-size);
  border: 1px solid var(--project-accent);
  background: var(--surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--surface) 82%, transparent);
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
  border-radius: 1px;
  padding: 0;
  position: absolute;
  transform: translate(-50%, -50%)rotate(45deg);
}

.project-timeline-map-milestone.is-grouped {
  background: var(--project-accent);
}

.project-timeline-map-milestone.is-delayed {
  background: #d92d20;
  border-color: #d92d20;
}

.project-timeline-map-milestone.is-late-complete {
  background: var(--green);
  border-color: #d92d20;
}

.project-header-icons {
  flex: none;
  align-items: center;
  gap: 4px;
  display: flex;
}

.timeline-order-handle {
  color: #667085;
  cursor: grab;
  background: none;
  border: 0;
  border-radius: 6px;
  flex: none;
  place-items: center;
  width: 24px;
  height: 28px;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  display: grid;
}

.timeline-order-handle:hover {
  color: var(--text);
  background: #0f172a0f;
}

.timeline-order-handle:active {
  cursor: grabbing;
}

.timeline-order-handle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.work-order-handle {
  width: 20px;
  height: var(--work-detail-toggle-height);
  font-size: 13px;
}

.project-pin-icon, .project-all-milestones-icon, .project-status-map-icon, .project-header-action-icon {
  border: 1px solid color-mix(in srgb, var(--project-accent) 38%, var(--line));
  background: color-mix(in srgb, var(--project-accent) 9%, var(--surface));
  width: 28px;
  height: 28px;
  color: var(--project-accent);
  border-radius: 7px;
  place-items: center;
  font-size: 12px;
  display: grid;
}

.project-pin-icon {
  font-size: 13px;
}

.project-status-map-icon {
  cursor: pointer;
  padding: 0;
}

.project-status-map-icon svg {
  fill: currentColor;
  width: 17px;
  height: 17px;
}

.project-pin-icon {
  cursor: pointer;
  padding: 0;
}

.project-pin-icon:hover, .project-pin-icon[aria-expanded="true"], .project-status-map-icon:hover, .project-status-map-icon[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--project-accent) 70%, var(--line));
  background: color-mix(in srgb, var(--project-accent) 20%, var(--surface));
}

.project-detail-card {
  border-bottom: 1px solid color-mix(in srgb, var(--project-accent) 24%, var(--line));
  border-left: 4px solid var(--project-accent);
  background: color-mix(in srgb, var(--project-accent) 4%, var(--surface));
  min-height: 44px;
  color: var(--text);
  align-items: center;
  gap: 18px;
  padding: 7px 16px 7px 36px;
  display: flex;
  overflow-x: auto;
}

.project-detail-card > div {
  white-space: nowrap;
  flex: none;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 6px;
  display: grid;
}

.project-detail-card .project-detail-description {
  white-space: normal;
  flex: 320px;
  min-width: 240px;
}

.project-detail-description strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 560px;
  overflow: hidden;
}

.project-detail-card span {
  color: var(--muted);
  font-size: .75em;
  font-weight: 650;
}

.project-detail-card strong {
  font-variant-numeric: tabular-nums;
  font-size: .917em;
  font-weight: 750;
}

.project-detail-period {
  min-width: 190px;
}

.project-all-milestones-icon {
  cursor: pointer;
  padding: 0;
}

.project-header-action-icon {
  cursor: pointer;
  background: none;
  padding: 0;
}

.project-header-action-icon:hover {
  border-color: color-mix(in srgb, var(--project-accent) 70%, var(--line));
  background: color-mix(in srgb, var(--project-accent) 14%, var(--surface));
}

.project-all-milestones-icon:hover, .project-all-milestones-icon[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--project-accent) 70%, var(--line));
  background: color-mix(in srgb, var(--project-accent) 20%, var(--surface));
}

.project-title-button {
  min-width: 0;
  padding: var(--project-header-block-padding) 10px var(--project-header-block-padding) 11px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  flex-wrap: wrap;
  flex: auto;
  align-self: stretch;
  align-items: center;
  gap: 8px;
  display: flex;
}

.project-title-button:after {
  content: "▾";
  color: var(--muted);
  margin-left: 1px;
  font-size: .833em;
  transition: transform .14s;
}

.project-title-button[aria-expanded="true"]:after {
  transform: rotate(180deg);
}

.project-title-button:hover {
  background: #0f172a0b;
}

.project-title-button:focus-visible, .project-pin-icon:focus-visible, .project-all-milestones-icon:focus-visible, .project-status-map-icon:focus-visible, .project-header-action-icon:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.project-title-line {
  align-items: center;
  gap: 9px;
  min-width: 0;
  display: flex;
}

.project-title-line strong {
  font-size: 1.167em;
}

.project-title-line .project-period-chip {
  padding: var(--summary-chip-block-padding) 7px;
  border: 1px solid color-mix(in srgb, var(--project-accent) 35%, var(--line-strong));
  background: color-mix(in srgb, var(--project-accent) 7%, var(--surface));
  color: #475467;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  border-radius: 4px;
  font-size: max(10px, .833em);
  font-weight: 650;
  line-height: 1.25;
}

.project-metrics {
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-left: 0;
  font-size: max(10px, .833em);
  display: flex;
}

.project-metric-chip {
  padding: var(--summary-chip-block-padding) 7px;
  color: #fff;
  white-space: nowrap;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.25;
}

.project-metric-chip.metric-progress {
  background: #1d6f93;
}

.project-metric-chip.metric-delay {
  background: #b42318;
}

.project-metric-chip.metric-delay-clear {
  background: #667085;
}

.project-metric-chip.metric-completed {
  background: #18794e;
}

.project-metric-chip.metric-team {
  background: #6941c6;
}

.milestone-track-row {
  min-height: var(--milestone-track-height);
  background: var(--surface);
  display: block;
}

.milestone-track {
  min-height: var(--milestone-track-height);
  cursor: grab;
  overflow: visible;
}

.timeline-grid {
  --timeline-grid-day-color: #0f172a0d;
  --timeline-grid-week-color: #0f172a12;
  --timeline-grid-month-color: #0f172a1c;
  --timeline-grid-weekend-color: #4755690b;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--timeline-grid-day-color) 1px, transparent 1px),
    linear-gradient(to right, var(--timeline-grid-week-color) 1px, transparent 1px),
    linear-gradient(to right,
      transparent 0 var(--timeline-grid-weekend-start),
      var(--timeline-grid-weekend-color) var(--timeline-grid-weekend-start) 100%);
  background-repeat: repeat-x;
  background-position: var(--timeline-grid-day-origin) 0,
    var(--timeline-grid-week-origin) 0,
    var(--timeline-grid-week-origin) 0;
  background-size: var(--timeline-grid-day-size) 100%,
    var(--timeline-grid-week-size) 100%,
    var(--timeline-grid-week-size) 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.timeline-grid-line {
  pointer-events: none;
  background: var(--timeline-grid-day-color);
  width: 1px;
  position: absolute;
  top: 0;
  bottom: 0;
  transform: translateX(-.5px);
}

.timeline-grid-line.grid-month {
  background: var(--timeline-grid-month-color);
  width: 2px;
  transform: translateX(-1px);
}

.project-duration-track {
  z-index: 1;
  border: 1px solid var(--project-accent);
  background: #edf0f4;
  border-radius: 999px;
  min-width: 3px;
  height: 16px;
  position: absolute;
  top: 50%;
  overflow: hidden;
  transform: translateY(-50%);
}

.project-duration-progress {
  border-radius: inherit;
  background: var(--project-accent);
  min-width: 0;
  position: absolute;
  top: 0;
  bottom: 0;
}

.project-boundary-marker {
  z-index: 5;
  width: var(--project-boundary-size);
  height: var(--project-boundary-size);
  border: 2px solid var(--project-accent);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--project-accent) 22%, transparent);
  pointer-events: none;
  background: none;
  position: absolute;
  top: 50%;
}

.project-boundary-marker.boundary-start {
  border-radius: 8px;
  transform: translate(-50%, -50%);
}

.project-boundary-marker.boundary-end {
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.project-boundary-marker:after {
  border: 1px solid var(--surface);
  background: var(--project-accent);
  color: #fff;
  border-radius: 5px;
  place-items: center;
  width: 14px;
  height: 14px;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  display: grid;
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
}

.project-boundary-marker.boundary-start:after {
  content: "S";
}

.project-boundary-marker.boundary-end:after {
  content: "E";
  border-radius: 50%;
}

.milestone-marker {
  z-index: 4;
  width: 24px;
  height: 24px;
  color: var(--project-accent);
  cursor: pointer;
  filter: drop-shadow(0 2px 4px #0f172a33);
  background: none;
  border: 0;
  place-items: center;
  padding: 0;
  display: grid;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.milestone-marker > span {
  font-size: 21px;
  line-height: 1;
}

.milestone-marker:not(.grouped) > span {
  -webkit-text-stroke: 3px var(--surface);
  paint-order: stroke fill;
}

.milestone-marker.grouped {
  background: color-mix(in srgb, var(--project-accent) 18%, #fff);
  border: 1px solid color-mix(in srgb, var(--project-accent) 70%, transparent);
  border-radius: 9px;
  width: 31px;
  height: 31px;
  top: 50%;
}

.milestone-marker.grouped > span {
  opacity: .55;
  font-size: 15px;
  position: absolute;
  top: 3px;
  left: 4px;
}

.milestone-marker b {
  z-index: 1;
  font-size: .917em;
  position: relative;
}

.milestone-marker.is-delayed {
  color: #d92d20;
}

.milestone-marker.grouped.is-delayed {
  background: #f9dddb;
  border-color: #d92d20b3;
}

.milestone-marker.is-late-complete {
  color: var(--green);
}

.milestone-marker:not(.grouped).is-late-complete > span {
  -webkit-text-stroke: 2px #d92d20;
}

.milestone-marker.grouped.is-late-complete {
  background: color-mix(in srgb, var(--green) 18%, #fff);
  border-color: #d92d20;
}

.milestone-group-menu {
  z-index: 1000;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 9px;
  width: min(280px, 100vw - 24px);
  max-height: min(360px, 100vh - 24px);
  padding: 7px;
  display: grid;
  position: fixed;
  overflow-y: auto;
  transform: translateX(-50%);
  box-shadow: 0 16px 36px #0f172a33;
}

.milestone-group-menu.is-above {
  transform: translate(-50%, -100%);
}

.milestone-group-menu strong {
  color: var(--muted);
  padding: 5px 7px 7px;
  font-size: .833em;
}

.milestone-group-menu button {
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  min-width: 0;
  padding: 7px;
  font-size: .917em;
  overflow: hidden;
}

.milestone-group-menu button:hover {
  background: #0f172a0f;
}

.work-item-list {
  gap: var(--timeline-row-gap);
  padding: var(--timeline-row-gap) 0 calc(var(--timeline-row-gap) + 4px);
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  display: grid;
  position: relative;
}

.dependency-line-layer {
  z-index: 4;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
}

.dependency-line-layer g[role="button"] {
  pointer-events: none;
  outline: none;
}

.dependency-hit-area {
  fill: none;
  stroke: #0000;
  stroke-width: 12px;
  pointer-events: stroke;
  cursor: pointer;
}

.dependency-line, .dependency-line-layer .is-subdued .dependency-hit-area {
  pointer-events: none;
}

.dependency-line {
  fill: none;
  stroke: #64748b;
  stroke-width: 1.6px;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .84;
  vector-effect: non-scaling-stroke;
}

.dependency-preview-line {
  fill: none;
  stroke: var(--project-accent);
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-dasharray: 6 4;
  opacity: .86;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.dependency-line-layer .is-warning .dependency-line {
  stroke: #dc2626;
  stroke-dasharray: 5 3;
}

.dependency-line-layer .is-subdued {
  opacity: .18;
}

.dependency-line-layer .is-selected {
  opacity: 1;
}

.dependency-line-layer .is-selected .dependency-line {
  stroke: var(--blue);
  stroke-width: 2.4px;
  filter: drop-shadow(0 0 2px color-mix(in srgb, var(--blue) 35%, transparent));
}

.dependency-line-layer g[role="button"]:focus-visible .dependency-line {
  stroke-width: 2.4px;
  filter: drop-shadow(0 0 2px color-mix(in srgb, var(--blue) 35%, transparent));
}

.dependency-delete-button {
  z-index: 8;
  background: var(--surface);
  color: #dc2626;
  cursor: pointer;
  border: 1px solid #dc2626;
  border-radius: 50%;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  font-size: 16px;
  line-height: 0;
  display: grid;
  position: absolute;
  transform: translate(-50%, -50%);
  box-shadow: 0 3px 8px #0f172a2e;
}

.dependency-delete-button > span {
  line-height: 1;
  display: block;
  transform: translateY(-.5px);
}

.dependency-warning-marker circle {
  fill: #dc2626;
  stroke: #fff;
  stroke-width: 1.5px;
}

.dependency-warning-marker text {
  fill: #fff;
  text-anchor: middle;
  font-size: 10px;
  font-weight: 900;
}

.work-item-empty {
  color: var(--muted);
  margin: 0;
  padding: 14px 16px;
  font-size: .917em;
}

.work-item {
  padding: 1px 0;
  position: relative;
}

.work-item:before {
  content: "";
  z-index: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  position: absolute;
  inset: 0 10px;
  box-shadow: 0 4px 12px #0f172a12;
}

.work-item-group {
  min-height: max(30px, calc(var(--work-item-header-height) - 8px));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--project-accent) 4%, var(--surface));
  position: relative;
}

.work-item-group-canvas {
  min-height: max(30px, calc(var(--work-item-header-height) - 8px));
  cursor: grab;
}

.work-item-group.is-drop-target {
  border-color: color-mix(in srgb, var(--project-accent) 70%, var(--line));
  background: color-mix(in srgb, var(--project-accent) 13%, var(--surface));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--project-accent) 24%, transparent);
}

.work-item-group.is-drop-target .work-item-group-overlay {
  transform: translateY(-50%)scale(1.01);
}

.work-item-group-overlay {
  left: calc(18px + var(--work-hierarchy-indent, 0px));
  z-index: 6;
  border: 1px solid color-mix(in srgb, var(--project-accent) 44%, var(--line));
  background: color-mix(in srgb, var(--project-accent) 12%, var(--surface-raised));
  pointer-events: auto;
  border-radius: 7px;
  align-items: center;
  gap: 7px;
  max-width: min(620px, 100% - 36px);
  min-height: 26px;
  padding: 2px 9px;
  display: flex;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 1px 5px #0f172a12;
}

.group-work-duration {
  z-index: 3;
  border: 1px solid color-mix(in srgb, var(--project-accent) 68%, var(--line-strong));
  background: color-mix(in srgb, var(--project-accent) 7%, var(--surface));
  pointer-events: auto;
  border-radius: 99px;
  min-width: 3px;
  height: 11px;
  position: absolute;
  top: 50%;
  overflow: hidden;
  transform: translateY(-50%);
}

.group-work-duration > span {
  border-radius: inherit;
  background: color-mix(in srgb, var(--project-accent) 24%, transparent);
  width: 100%;
  height: 100%;
  display: block;
}

.work-item-group-overlay strong {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: max(11px, .9em);
  overflow: hidden;
}

.work-item-group-icon {
  border: 1px solid color-mix(in srgb, var(--project-accent) 34%, var(--line));
  background: color-mix(in srgb, var(--project-accent) 8%, var(--surface));
  width: 26px;
  height: 26px;
  color: var(--project-accent);
  cursor: pointer;
  border-radius: 6px;
  place-items: center;
  padding: 0;
  font-size: 17px;
  font-weight: 900;
  display: inline-grid;
}

.work-item-group-count {
  color: var(--muted);
  white-space: nowrap;
  font-size: max(10px, .72em);
}

.work-item-group-actions {
  align-items: center;
  gap: 4px;
  margin-left: auto;
  display: flex;
}

.work-item-group-actions button {
  border: 1px solid color-mix(in srgb, var(--project-accent) 32%, var(--line));
  background: color-mix(in srgb, var(--surface) 92%, var(--project-accent));
  height: 22px;
  color: var(--text);
  cursor: pointer;
  border-radius: 6px;
  padding: 0 7px;
  font-size: max(9px, .67em);
}

.work-item-header {
  z-index: auto;
  min-height: var(--work-item-header-height);
  box-shadow: 0 1px 0 var(--line);
  background: linear-gradient(to right, #0000 0 10px, #fffffff5 10px calc(100% - 10px), #0000 calc(100% - 10px) 100%);
  display: block;
  position: relative;
}

.work-item-header.is-detail-open {
  top: calc(var(--timeline-axis-height) + var(--project-sticky-region-height, 96px));
  z-index: 5;
  position: sticky;
}

.work-summary-overlay {
  left: calc(18px + var(--work-hierarchy-indent, 0px));
  z-index: 6;
  align-items: center;
  gap: clamp(5px, calc(var(--timeline-content-font-size) - 7px), 8px);
  max-width: min(760px, 100% - 36px);
  padding: var(--work-summary-block-padding) var(--work-summary-inline-padding);
  border: 1px solid color-mix(in srgb, var(--project-accent) 52%, var(--surface));
  background: color-mix(in srgb, var(--project-accent) 8%, #ffffffe0);
  -webkit-backdrop-filter: blur(.5px);
  backdrop-filter: blur(.5px);
  text-align: left;
  pointer-events: auto;
  border-radius: 8px;
  display: flex;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 2px 8px #0f172a14;
}

.work-hierarchy-branch {
  color: var(--muted);
  margin-right: 5px;
  font-weight: 500;
}

.work-summary-overlay strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .917em;
  overflow: hidden;
}

.work-summary-overlay > span {
  color: var(--muted);
  white-space: nowrap;
  font-size: max(10px, .75em);
}

.work-summary-title {
  flex: 260px;
  min-width: 140px;
  max-width: 360px;
}

.work-summary-attachments {
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  flex: none;
  align-items: center;
  gap: 3px;
  max-width: 149px;
  padding: 1px;
  display: flex;
  overflow: auto hidden;
}

.work-summary-attachments::-webkit-scrollbar {
  display: none;
}

.work-summary-attachments > .work-attachment-thumbnail {
  scroll-snap-align: start;
}

.work-summary-assignee {
  flex: none;
}

.work-summary-period {
  font-variant-numeric: tabular-nums;
  flex: none;
}

.work-summary-overlay .dependency-warning-chip {
  color: #b91c1c;
  background: #fee2e2f2;
  border: 1px solid #dc262647;
  border-radius: 99px;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  font-weight: 800;
  display: inline-flex;
}

.dependency-warning-chip > span {
  color: #fff;
  background: #dc2626;
  border-radius: 50%;
  place-items: center;
  width: 13px;
  height: 13px;
  font-size: 9px;
  display: grid;
}

.work-summary-overlay .status {
  color: var(--text);
  border-radius: 99px;
  justify-self: start;
  padding: 2px 5px;
}

.status-done {
  --status-color: var(--green);
}

.status-inProgress {
  --status-color: var(--blue);
}

.status-delayed {
  --status-color: var(--red);
}

.status-waiting {
  --status-color: #738096;
}

.status-onHold {
  --status-color: var(--yellow);
}

.work-summary-overlay .status {
  background: color-mix(in srgb, var(--status-color) 25%, transparent);
}

.work-summary-overlay .health {
  border-radius: 99px;
  padding: 2px 5px;
  font-weight: 750;
}

.health-normal {
  background: color-mix(in srgb, var(--green) 15%, transparent);
  color: #18794e !important;
}

.health-delayed {
  background: color-mix(in srgb, var(--red) 18%, transparent);
  color: #b42318 !important;
}

.work-summary-latest-issue {
  text-overflow: ellipsis;
  background: #fff1f2;
  border-radius: 99px;
  max-width: 170px;
  padding: 2px 6px;
  font-weight: 700;
  overflow: hidden;
  color: #b42318 !important;
}

.work-detail-toggle {
  flex: 0 0 var(--work-detail-toggle-height);
  width: var(--work-detail-toggle-height);
  height: var(--work-detail-toggle-height);
  border: 1px solid color-mix(in srgb, var(--project-accent) 30%, var(--line));
  background: color-mix(in srgb, var(--project-accent) 5%, var(--surface));
  color: color-mix(in srgb, var(--project-accent) 80%, var(--text));
  cursor: pointer;
  border-radius: 6px;
  place-items: center;
  padding: 0;
  font-size: 1em;
  display: grid;
}

.work-summary-overlay .work-schedule-error {
  color: #b42318;
  text-overflow: ellipsis;
  max-width: 150px;
  overflow: hidden;
}

.work-detail-toggle:hover {
  border-color: var(--project-accent);
  color: var(--project-accent);
}

.work-detail-toggle > span {
  font-size: 1.15em;
  font-weight: 900;
  line-height: 1;
}

.work-item-canvas {
  min-height: var(--work-item-header-height);
  cursor: grab;
}

.work-duration {
  z-index: 3;
  border: 1px solid color-mix(in srgb, var(--status-color) 72%, #0f172a 8%);
  background: color-mix(in srgb, var(--status-color) 18%, var(--surface));
  border-radius: 99px;
  min-width: 3px;
  height: 14px;
  position: absolute;
  top: 50%;
  overflow: visible;
  transform: translateY(-50%);
}

.work-duration.is-drawing {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--status-color) 18%, transparent);
}

.work-duration > span {
  border-radius: inherit;
  background: var(--status-color);
  opacity: .9;
  height: 100%;
  display: block;
  overflow: hidden;
}

.work-duration.is-delayed {
  --status-color: #d92d20;
  background: color-mix(in srgb, #d92d20 15%, var(--surface));
  border-color: #c22c1f;
}

.work-duration.status-done.is-delayed {
  --status-color: var(--green);
  background: color-mix(in srgb, var(--green) 15%, var(--surface));
  border-color: #d92d20;
}

.work-item.is-delayed .work-summary-overlay {
  border-color: color-mix(in srgb, #d92d20 55%, var(--project-accent));
}

.work-detail-priority, .work-detail-completed-date {
  align-items: center;
  gap: 7px;
  min-width: max-content;
  display: inline-flex;
}

.work-detail-priority select {
  min-width: 72px;
}

.priority-high {
  color: #b54708;
}

.priority-urgent {
  color: #b42318;
  font-weight: 800;
}

.work-summary-priority {
  background: color-mix(in srgb, var(--line) 55%, transparent);
  color: var(--muted);
  white-space: nowrap;
  border-radius: 99px;
  padding: 2px 5px;
  font-size: .88em;
}

.work-summary-priority.priority-high {
  color: #b54708;
  background: #fff3e0;
}

.work-summary-priority.priority-urgent {
  color: #b42318;
  background: #fee4e2;
}

.work-duration-handle {
  z-index: 7;
  border: 2px solid var(--surface);
  background: var(--status-color);
  width: 12px;
  height: 22px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--status-color) 74%, #0f172a 10%), 0 2px 5px #0f172a2e;
  cursor: ew-resize;
  touch-action: none;
  border-radius: 5px;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.work-duration.status-done.is-delayed .work-duration-handle {
  background: var(--green);
  border-color: #d92d20;
  box-shadow: 0 0 0 1px #d92d20, 0 2px 5px #0f172a2e;
}

.work-duration-handle.handle-start {
  left: 0;
}

.work-duration-handle.handle-end {
  left: 100%;
}

.work-duration-handle.handle-single {
  border-radius: 6px;
  width: 14px;
  left: 0;
}

.work-duration-handle.handle-single.is-at-end {
  left: 100%;
}

.work-duration-handle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.schedule-drag-handle-date {
  z-index: 70;
  border: 1px solid color-mix(in srgb, var(--project-accent) 55%, var(--surface));
  background: color-mix(in srgb, var(--project-accent) 88%, #0f172a 12%);
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: max(10px, .75em);
  font-weight: 750;
  line-height: 1.2;
  animation: .15s ease-out both schedule-drag-date-label-enter;
  position: fixed;
  transform: translate(-50%, -100%);
  box-shadow: 0 3px 9px #0f172a2e;
}

@keyframes schedule-drag-date-label-enter {
  from {
    opacity: 0;
    transform: translate(-50%, calc(3px - 100%))scale(.92);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -100%)scale(1);
  }
}

.work-item-detail-panel {
  z-index: 5;
  margin: 0 0 0 calc(18px + var(--work-hierarchy-indent, 0px));
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  background: var(--surface);
  border-radius: 0 0 9px 9px;
  gap: 0;
  display: grid;
  position: relative;
}

.work-detail-summary-row {
  grid-template-columns: minmax(150px, 190px) minmax(175px, 195px) minmax(90px, 110px) 106px 106px 178px minmax(170px, 1fr);
  justify-content: start;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  display: grid;
}

.work-detail-summary-row > div {
  align-self: stretch;
  align-items: center;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.work-detail-summary-row small, .work-detail-summary-row strong {
  white-space: nowrap;
}

.work-detail-summary-row small {
  min-width: 30px;
  color: var(--muted);
  flex: none;
  font-weight: 700;
}

.work-detail-summary-row strong {
  text-overflow: ellipsis;
  overflow: hidden;
}

.work-detail-name, .work-detail-period, .work-detail-assignee, .work-detail-status, .work-detail-health, .work-detail-progress {
  width: auto;
}

.work-detail-content-actions {
  border-left: 1px solid var(--line);
  justify-content: flex-start;
  margin-left: 8px;
  padding-left: 10px;
  gap: 8px !important;
  min-width: 170px !important;
}

.work-detail-content-actions > * {
  flex: none;
}

.work-detail-name .work-detail-value-label {
  text-align: left;
  width: 100%;
}

.work-detail-name input {
  width: 100%;
}

.work-item-detail-panel small {
  color: var(--muted);
  font-size: .75em;
}

.work-item-detail-panel strong {
  font-size: .917em;
}

.work-plan-section {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--project-accent) 2.5%, var(--surface));
  grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.2fr);
  gap: 12px;
  padding: 10px 12px;
  display: grid;
}

.work-plan-section > div {
  min-width: 0;
}

.work-plan-section h4 {
  color: var(--text);
  margin: 0 0 5px;
  font-size: .833em;
}

.work-plan-section p, .work-plan-section ul {
  color: var(--muted);
  white-space: pre-wrap;
  margin: 0;
  font-size: .833em;
  line-height: 1.55;
}

.work-plan-section ul {
  padding-left: 18px;
}

.work-plan-section li + li {
  margin-top: 3px;
}

.work-attachment-thumbnail {
  border: 1px solid color-mix(in srgb, var(--project-accent) 48%, var(--line));
  background: color-mix(in srgb, var(--project-accent) 8%, var(--surface));
  width: 44px;
  height: 44px;
  color: var(--project-accent);
  border-radius: 7px;
  flex: 0 0 44px;
  place-items: center;
  text-decoration: none;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px #0f172a1a;
}

.work-attachment-thumbnail.is-compact {
  border-radius: 5px;
  flex-basis: 22px;
  width: 22px;
  height: 22px;
}

.work-attachment-thumbnail:hover, .work-attachment-thumbnail:focus-visible {
  border-color: var(--project-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--project-accent) 18%, transparent);
  outline: none;
}

.work-attachment-thumbnail img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.work-attachment-video-icon {
  background: linear-gradient(135deg, color-mix(in srgb, var(--project-accent) 22%, var(--surface)), color-mix(in srgb, var(--project-accent) 7%, var(--surface)));
  place-items: center;
  width: 100%;
  height: 100%;
  display: grid;
}

.work-attachment-video-icon > span {
  background: color-mix(in srgb, var(--project-accent) 88%, #0f172a 12%);
  color: #fff;
  border-radius: 50%;
  place-items: center;
  width: 22px;
  height: 22px;
  padding-left: 2px;
  font-size: 10px;
  line-height: 1;
  display: grid;
}

.work-attachment-thumbnail.is-compact .work-attachment-video-icon > span {
  width: 14px;
  height: 14px;
  padding-left: 1px;
  font-size: 7px;
}

.work-attachment-section {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--project-accent) 2.5%, var(--surface));
  gap: 6px;
  padding: 6px 10px 7px;
  display: grid;
}

.work-attachment-section > header {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.work-attachment-section > header > div {
  align-items: baseline;
  gap: 6px;
  display: flex;
}

.work-attachment-section > header strong {
  font-size: max(10px, .833em);
}

.work-attachment-section > header span, .work-attachment-empty, .work-attachment-error {
  font-size: max(9px, .75em);
}

.work-attachment-section > header > div > span, .work-attachment-empty {
  color: var(--muted);
}

.work-attachment-upload {
  border: 1px solid color-mix(in srgb, var(--project-accent) 50%, var(--line));
  background: color-mix(in srgb, var(--project-accent) 7%, var(--surface));
  height: 27px;
  color: var(--project-accent);
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: 0 9px;
  font-size: max(9px, .75em);
  font-weight: 750;
  display: inline-flex;
}

.work-attachment-upload.is-uploading {
  opacity: .55;
  cursor: wait;
}

.work-attachment-upload input {
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.work-attachment-list {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 5px;
  display: grid;
}

.work-attachment-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 4px;
  display: grid;
}

.work-attachment-card-info {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.work-attachment-card-info > a {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: max(10px, .833em);
  font-weight: 700;
  overflow: hidden;
}

.work-attachment-card-info > span {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: max(9px, .7em);
  overflow: hidden;
}

.work-attachment-card > button {
  border: 1px solid color-mix(in srgb, var(--red) 35%, var(--line));
  color: #b42318;
  cursor: pointer;
  background: none;
  border-radius: 5px;
  height: 25px;
  padding: 0 7px;
  font-size: max(9px, .7em);
  font-weight: 700;
}

.work-attachment-empty, .work-attachment-error {
  margin: 0;
}

.work-attachment-error {
  color: #b42318;
  font-weight: 700;
}

.work-detail-value-label {
  min-width: 0;
  max-width: 100%;
  color: var(--text);
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 5px;
  padding: 2px 4px;
  font-size: .917em;
  font-weight: 700;
  overflow: hidden;
}

.work-detail-value-label:hover, .work-detail-value-label:focus-visible {
  border-color: color-mix(in srgb, var(--project-accent) 42%, var(--line));
  background: color-mix(in srgb, var(--project-accent) 6%, var(--surface));
  outline: none;
}

.work-detail-summary-row select, .work-detail-summary-row input {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  min-width: 0;
  height: 26px;
  color: var(--text);
  border-radius: 6px;
  padding: 0 6px;
  font-size: .833em;
}

.work-detail-assignee select {
  width: 124px;
}

.work-detail-status select, .work-detail-health select {
  flex: auto;
  width: auto;
  min-width: 68px;
}

.work-detail-progress {
  z-index: 1;
  position: relative;
}

.work-detail-progress input[type="range"] {
  width: 74px;
  min-width: 74px;
  height: 18px;
  accent-color: var(--project-accent);
  cursor: pointer;
  border: 0;
  flex: 0 74px;
  padding: 0;
}

.work-detail-summary-row select:disabled {
  opacity: .72;
}

.work-detail-period-editor {
  align-items: center;
  gap: 3px;
  min-width: 0;
  display: inline-flex;
}

.work-detail-period-editor input {
  width: 94px;
  padding: 0 3px;
  font-size: .75em;
}

.work-detail-progress-value {
  flex: auto;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  display: inline-flex;
}

.work-detail-progress-unit {
  min-width: 34px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: max(10px, .75em);
}

.work-detail-quick-entry {
  grid-template-columns: minmax(90px, 130px) minmax(260px, 1fr) 80px;
  align-items: start;
  gap: 5px;
  min-width: 0;
  display: grid;
}

.work-detail-quick-entry select {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  height: 28px;
  color: var(--text);
  border-radius: 6px;
  padding: 0 6px;
  font-size: max(10px, .75em);
}

.work-progress-linked-issue {
  color: #b42318;
  background: #fff1f2;
  border-radius: 99px;
  margin-top: 4px;
  padding: 2px 6px;
  font-size: max(9px, .75em);
  font-weight: 700;
  display: inline-flex;
}

.work-detail-quick-entry button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  width: 80px;
  height: 28px;
  padding: 0 6px;
  font-size: .75em;
  font-weight: 700;
}

.work-detail-quick-entry button:disabled {
  opacity: .45;
  cursor: wait;
}

.work-detail-progress-permission {
  color: var(--muted);
  font-size: .75em;
}

.progress-document-editor {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 8px;
  min-width: 0;
  transition: border-color .12s, box-shadow .12s;
  display: grid;
  position: relative;
  overflow: hidden;
}

.progress-document-editor:focus-within, .progress-document-editor.is-drag-over {
  border-color: color-mix(in srgb, var(--project-accent) 65%, var(--line-strong));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--project-accent) 12%, transparent);
}

.progress-document-editor.is-uploading {
  opacity: .72;
}

.progress-document-editor-toolbar {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--project-accent) 4%, var(--surface));
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 3px 5px 3px 8px;
  display: flex;
}

.progress-document-editor-toolbar > span {
  color: var(--muted);
  font-size: max(9px, .7em);
  font-weight: 600;
}

.progress-document-editor-toolbar > button {
  border: 1px solid color-mix(in srgb, var(--project-accent) 38%, var(--line));
  background: var(--surface);
  width: auto;
  height: 24px;
  color: var(--project-accent);
  cursor: pointer;
  border-radius: 5px;
  padding: 0 8px;
  font-size: max(9px, .7em);
  font-weight: 750;
}

.progress-document-editor-toolbar > input {
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.progress-document-editor-body {
  gap: 5px;
  padding: 5px;
  display: grid;
}

.progress-document-editor-body > textarea {
  resize: vertical;
  border: 1px solid var(--line);
  background: var(--surface);
  width: 100%;
  min-height: 46px;
  color: var(--text);
  font: inherit;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: max(10px, .833em);
  line-height: 1.4;
}

.progress-document-editor-body > textarea:focus {
  border-color: color-mix(in srgb, var(--project-accent) 55%, var(--line));
  outline: none;
}

.progress-document-drop-guide {
  z-index: 4;
  border: 2px dashed var(--project-accent);
  background: color-mix(in srgb, var(--project-accent) 12%, var(--surface) 88%);
  color: var(--project-accent);
  pointer-events: none;
  border-radius: 7px;
  place-items: center;
  font-size: max(11px, .833em);
  font-weight: 800;
  display: grid;
  position: absolute;
  inset: 0;
}

.progress-document-media {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 8px;
  gap: 4px;
  width: min(100%, 520px);
  margin: 0;
  padding: 5px;
  display: grid;
}

.progress-document-media > a {
  min-width: 0;
  display: block;
}

.progress-document-media.is-image {
  background: none;
  border: 0;
  width: fit-content;
  max-width: min(100%, 760px);
  padding: 0;
}

.progress-document-media.is-image > a {
  width: fit-content;
  max-width: 100%;
}

.progress-document-media img {
  object-fit: contain;
  border-radius: 6px;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
}

.progress-document-media video {
  object-fit: contain;
  background: #0f172a;
  border-radius: 6px;
  width: 100%;
  max-height: 360px;
  display: block;
}

.progress-document-editor .progress-document-media img, .progress-document-editor .progress-document-media video {
  max-height: 280px;
}

.progress-document-media figcaption {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.progress-document-media figcaption > span {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: max(9px, .72em);
  overflow: hidden;
}

.progress-document-media figcaption > button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: #b42318;
  cursor: pointer;
  border-radius: 5px;
  width: auto;
  height: 23px;
  padding: 0 7px;
  font-size: max(9px, .68em);
  font-weight: 700;
}

.progress-document-missing {
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  border-radius: 7px;
  padding: 10px;
  font-size: max(10px, .75em);
}

.work-detail-saving-indicator {
  border-top: 1px solid color-mix(in srgb, var(--blue) 18%, transparent);
  background: color-mix(in srgb, var(--blue) 5%, var(--surface));
  color: var(--blue);
  margin: 0;
  padding: 3px 10px;
  font-size: .75em;
  font-weight: 700;
}

.work-detail-saving-indicator.is-saved {
  background: color-mix(in srgb, #16a34a 6%, var(--surface));
  color: #15803d;
  border-top-color: #16a34a38;
}

.work-detail-saving-indicator.is-error {
  background: color-mix(in srgb, #dc2626 6%, var(--surface));
  color: #b42318;
  border-top-color: #dc262638;
}

.work-progress-row {
  border-top: 1px solid var(--line);
  background: var(--surface);
  gap: 6px;
  padding: 6px 10px 8px;
  display: grid;
}

.work-progress-section-header {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.work-progress-section-header > div {
  align-items: baseline;
  gap: 6px;
  display: flex;
}

.work-progress-section-header strong {
  font-size: max(10px, .833em);
}

.work-progress-section-header > div > span {
  color: var(--muted);
  font-size: max(9px, .75em);
}

.work-progress-add-button {
  border: 1px solid color-mix(in srgb, var(--project-accent) 50%, var(--line));
  background: color-mix(in srgb, var(--project-accent) 7%, var(--surface));
  height: 27px;
  color: var(--project-accent);
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: 0 9px;
  font-size: max(9px, .75em);
  font-weight: 750;
  display: inline-flex;
}

.work-progress-composer-backdrop {
  z-index: 90;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: #0f172a42;
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.work-progress-composer {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  width: min(900px, 100vw - 48px);
  max-height: min(820px, 100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 24px 64px #0f172a38;
}

.work-progress-composer > header {
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--project-accent) 5%, var(--surface));
  border-radius: 15px 15px 0 0;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  display: flex;
  position: sticky;
  top: 0;
}

.work-progress-composer > header > div {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.work-progress-composer > header small {
  color: var(--project-accent);
  font-size: 10px;
  font-weight: 800;
}

.work-progress-composer > header h2 {
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-size: 18px;
  overflow: hidden;
}

.work-progress-composer > header button {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 30px;
  height: 30px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  flex: 0 0 30px;
  font-size: 20px;
  line-height: 1;
}

.work-progress-composer > form {
  gap: 12px;
  padding: 16px;
  display: grid;
}

.work-progress-composer-issue {
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  display: grid;
}

.work-progress-composer-issue > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.work-progress-composer-issue select {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  width: min(360px, 100%);
  height: 34px;
  color: var(--text);
  font: inherit;
  border-radius: 7px;
  padding: 0 8px;
  font-size: 12px;
}

.work-progress-composer .progress-document-editor-body > textarea {
  min-height: 180px;
}

.work-progress-composer .progress-document-editor-body > textarea:only-child {
  min-height: clamp(280px, 42vh, 420px);
}

.work-progress-composer > form > footer {
  justify-content: flex-end;
  gap: 7px;
  display: flex;
}

.work-progress-composer > form > footer button {
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 76px;
  height: 32px;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  border-radius: 7px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 750;
}

.work-progress-composer > form > footer button.primary {
  border-color: var(--project-accent);
  background: var(--project-accent);
  color: #fff;
}

.work-progress-composer button:disabled {
  opacity: .5;
  cursor: wait;
}

.work-progress-header {
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  display: flex;
}

.work-progress-header h3 {
  margin: 2px 0 0;
  font-size: 1em;
}

.work-progress-header > span {
  color: var(--muted);
  font-size: .75em;
}

.work-progress-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  display: grid;
}

.work-progress-form label {
  color: var(--muted);
  gap: 5px;
  display: grid;
}

.work-progress-form label > span {
  font-size: .75em;
}

.work-progress-form textarea {
  resize: vertical;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  width: 100%;
  min-height: 56px;
  color: var(--text);
  border-radius: 7px;
  padding: 8px 10px;
  font-size: .917em;
  line-height: 1.5;
}

.work-progress-form button {
  border: 1px solid color-mix(in srgb, var(--blue) 65%, var(--line));
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  border-radius: 7px;
  height: 34px;
  padding: 0 12px;
  font-size: .833em;
  font-weight: 700;
}

.work-progress-form button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.work-progress-permission, .work-progress-error {
  border-radius: 7px;
  margin: 0;
  padding: 8px 10px;
  font-size: .833em;
  line-height: 1.45;
}

.work-progress-permission {
  background: var(--surface-soft);
  color: var(--muted);
}

.work-progress-error {
  color: #b42318;
  background: #fff1f2;
  border: 1px solid #dc26262e;
}

.work-progress-list {
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.work-progress-list li {
  grid-template-columns: minmax(0, 1fr) 80px;
  align-items: start;
  gap: 5px;
  padding: 0;
  display: grid;
}

.work-progress-entry-line {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 7px;
  grid-template-columns: 90px 120px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  padding: 5px 8px;
  display: grid;
}

.work-progress-entry-line.is-editing {
  align-items: start;
}

.work-progress-author {
  color: #475467;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .833em;
  font-weight: 750;
  overflow: hidden;
}

.work-progress-list time {
  color: var(--muted);
  font-size: .75em;
}

.work-progress-list p, .work-progress-empty {
  color: #344054;
  white-space: pre-wrap;
  margin: 0;
  font-size: .917em;
  line-height: 1.35;
}

.progress-document-content {
  grid-column: 3;
  gap: 7px;
  min-width: 0;
  display: grid;
}

.progress-document-content > p {
  color: #344054;
  white-space: pre-wrap;
  margin: 0;
  font-size: .917em;
  font-weight: 600;
  line-height: 1.45;
}

.work-progress-entry-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 4px;
  width: 80px;
  display: grid;
}

.work-progress-entry-actions button, .work-progress-edit-form button {
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
  height: 26px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  padding: 0 4px;
  font-size: .75em;
}

.work-progress-entry-actions button.danger {
  color: #b42318;
}

.work-progress-entry-actions button:only-child {
  grid-column: 1 / -1;
}

.work-progress-edit-form {
  grid-column: 3;
  gap: 6px;
  display: grid;
}

.work-progress-edit-form textarea {
  resize: vertical;
  border: 1px solid var(--line-strong);
  min-height: 44px;
  color: var(--text);
  border-radius: 7px;
  padding: 6px 8px;
}

.work-progress-edit-form > div {
  justify-content: flex-end;
  gap: 5px;
  display: flex;
}

.work-progress-edit-form button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.work-item-revision-history {
  border-top: 1px solid var(--line);
  padding-top: 5px;
}

.work-item-revision-history summary {
  width: max-content;
  color: var(--muted);
  cursor: pointer;
  font-size: .75em;
  font-weight: 700;
}

.work-item-revision-history ol {
  gap: 4px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.work-item-revision-history li {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 6px;
  grid-template-columns: 52px minmax(0, 1fr) 90px 128px;
  align-items: baseline;
  gap: 8px;
  padding: 4px 7px;
  font-size: .75em;
  display: grid;
}

.work-item-revision-history li strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.work-item-revision-history li span, .work-item-revision-history li time {
  color: var(--muted);
}

@media (max-width: 900px) {
  .control-bar-primary, .control-bar-secondary {
    flex-wrap: wrap;
  }

  .control-bar-primary {
    overflow-x: visible;
  }

  .control-bar-secondary {
    justify-content: flex-start;
  }

  .page-heading {
    width: 100%;
  }

  .project-title-button {
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .project-title-line {
    min-width: 200px;
  }

  .project-metrics {
    flex-wrap: wrap;
    width: 100%;
    margin-left: 0;
  }

  .work-summary-overlay > span:first-of-type {
    display: none;
  }

  .work-detail-summary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-plan-section {
    grid-template-columns: 1fr;
  }

  .work-detail-content-actions {
    border-left: 0;
    grid-column: 1 / -1;
    margin-left: 0;
    padding-left: 0;
    min-width: 0 !important;
  }

  .work-detail-quick-entry {
    grid-column: 1 / -1;
  }

  .work-progress-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .work-progress-entry-line {
    grid-template-columns: 90px 130px minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .work-progress-composer-backdrop {
    padding: 12px;
  }

  .work-progress-composer {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .work-progress-composer-issue {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .work-progress-composer-issue select {
    width: 100%;
  }

  .work-detail-summary-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .work-detail-period, .work-detail-name, .work-detail-assignee, .work-detail-status, .work-detail-progress, .work-detail-content-actions, .work-detail-quick-entry {
    width: auto;
    margin-left: 0;
  }

  .work-progress-entry-line {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .work-progress-edit-form {
    grid-column: 1;
  }

  .work-item-revision-history li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    transition-duration: .01ms !important;
  }
}

.timeline-quick-editor-backdrop {
  z-index: 80;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: #0f172a38;
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.timeline-quick-editor {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  width: min(680px, 100vw - 48px);
  max-height: min(760px, 100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 24px 64px #0f172a33;
}

.timeline-quick-editor > header {
  z-index: 1;
  border-bottom: 1px solid var(--line);
  background: #fffffff5;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  display: flex;
  position: sticky;
  top: 0;
}

.timeline-quick-editor > header:first-child {
  border-radius: 15px 15px 0 0;
}

.timeline-quick-editor > header div {
  gap: 3px;
  display: grid;
}

.timeline-quick-editor > header small {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.timeline-quick-editor > header h2 {
  margin: 0;
  font-size: 18px;
}

.timeline-quick-editor > header button {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 30px;
  height: 30px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
}

.timeline-quick-form {
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
  padding: 20px;
  display: grid;
}

.timeline-quick-form label {
  align-content: start;
  gap: 6px;
  min-width: 0;
  display: grid;
}

.timeline-quick-form label.wide, .timeline-quick-form .wide {
  grid-column: 1 / -1;
}

.timeline-quick-form label > span {
  color: #475467;
  font-size: 11px;
  font-weight: 700;
}

.timeline-quick-form .timeline-project-accent {
  grid-column: 1 / -1;
  width: min(220px, 100%);
}

.timeline-quick-date-row {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  display: grid;
}

.timeline-quick-form input, .timeline-quick-form select, .timeline-quick-form textarea {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  width: 100%;
  min-height: 36px;
  color: var(--text);
  font: inherit;
  border-radius: 8px;
  padding: 8px 10px;
}

.timeline-quick-form input, .timeline-quick-form select {
  height: 36px;
  padding-top: 0;
  padding-bottom: 0;
}

.timeline-quick-help, .timeline-quick-error {
  border-radius: 8px;
  margin: 0;
  padding: 9px 10px;
  font-size: 11px;
  line-height: 1.5;
}

.timeline-quick-help {
  background: var(--surface-soft);
  color: var(--muted);
}

.timeline-quick-error {
  color: #b42318;
  background: #fff1f2;
  border: 1px solid #dc26262e;
}

.timeline-quick-actions {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
  display: flex;
}

.timeline-quick-actions button, .timeline-editor-loading button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  height: 34px;
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  padding: 0 13px;
  font-weight: 700;
}

.timeline-quick-actions button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.timeline-quick-actions button:disabled {
  opacity: .5;
  cursor: wait;
}

.timeline-editor-loading {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 10px;
  align-self: center;
  margin: auto;
  padding: 18px 20px;
  box-shadow: 0 12px 36px #0f172a24;
}

.timeline-editor-notice {
  z-index: 70;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #16a34a40;
  border-radius: 9px;
  margin: 0;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  position: fixed;
  bottom: 20px;
  right: 20px;
  box-shadow: 0 10px 24px #0f172a1f;
}

@media (max-width: 560px) {
  .timeline-quick-editor-backdrop {
    padding: 12px;
  }

  .timeline-quick-editor {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .timeline-quick-form {
    grid-template-columns: 1fr;
  }

  .timeline-quick-form label.wide, .timeline-quick-form .wide {
    grid-column: auto;
  }

  .timeline-quick-date-row {
    grid-template-columns: 1fr;
  }
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.management-page {
  background: radial-gradient(circle at 12% 0%, #2563eb14, transparent 26%),
    radial-gradient(circle at 92% 5%, #7c3aed12, transparent 24%),
    var(--background);
  flex: 1;
  min-height: 0;
  padding: 28px clamp(18px, 3vw, 44px) 48px;
  overflow: auto;
}

.management-page-header {
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  max-width: 1680px;
  margin: 0 auto 22px;
  display: flex;
}

.management-heading {
  min-width: 0;
}

.management-eyebrow {
  color: var(--blue);
  letter-spacing: .14em;
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 800;
  display: block;
}

.management-heading h1 {
  color: #111827;
  letter-spacing: -.035em;
  margin: 0;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.15;
}

.management-heading p {
  color: var(--muted);
  margin: 9px 0 0;
  font-size: 13px;
}

.management-data-state {
  background: #ffffffb3;
  border: 1px solid #2563eb29;
  border-radius: 10px;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  display: flex;
  box-shadow: 0 3px 12px #0f172a0a;
}

.management-data-state > span {
  background: #f59e0b;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 4px #f59e0b1f;
}

.management-data-state div {
  gap: 2px;
  display: grid;
}

.management-data-state strong {
  font-size: 11px;
}

.management-data-state small {
  color: var(--muted);
  font-size: 10px;
}

.management-summary-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  max-width: 1680px;
  margin: 0 auto 16px;
  display: grid;
}

.management-summary-grid-split {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.management-summary-card {
  --summary-color: var(--blue);
  border: 1px solid var(--line);
  background: #ffffffe6;
  border-radius: 14px;
  align-items: center;
  gap: 13px;
  min-height: 96px;
  padding: 17px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 7px 22px #0f172a0e;
}

.management-summary-card.summary-users {
  --summary-color: var(--violet);
}

.management-summary-card.summary-teams {
  --summary-color: #0f8a7a;
}

.management-summary-card.summary-work {
  --summary-color: var(--orange);
}

.summary-icon {
  background: color-mix(in srgb, var(--summary-color) 13%, #fff);
  width: 44px;
  height: 44px;
  color: var(--summary-color);
  border-radius: 12px;
  flex: 0 0 44px;
  place-items: center;
  font-size: 21px;
  font-weight: 700;
  display: grid;
}

.management-summary-card > div {
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 8px;
  min-width: 0;
  display: grid;
}

.management-summary-card small {
  color: var(--muted);
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
}

.management-summary-card strong {
  color: #101828;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
  font-size: 26px;
  line-height: 1;
}

.management-summary-card p {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-size: 10px;
  overflow: hidden;
}

.management-workspace-card {
  border: 1px solid var(--line);
  background: #fffffff0;
  border-radius: 15px;
  max-width: 1680px;
  min-height: 450px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 16px 42px #0f172a14;
}

.management-toolbar {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  padding: 11px 14px 10px 18px;
  display: flex;
}

.management-tabs {
  align-self: stretch;
  gap: 5px;
  display: flex;
}

.management-tabs button {
  min-width: 112px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 700;
  position: relative;
}

.management-tabs button:after {
  content: "";
  background: none;
  border-radius: 99px;
  height: 2px;
  position: absolute;
  bottom: -11px;
  left: 12px;
  right: 12px;
}

.management-tabs button[aria-selected="true"] {
  color: var(--blue);
}

.management-tabs button[aria-selected="true"]:after {
  background: var(--blue);
}

.management-tabs button > span {
  background: var(--surface-soft);
  min-width: 20px;
  height: 18px;
  color: var(--muted);
  border-radius: 99px;
  place-items: center;
  margin-left: 5px;
  padding: 0 5px;
  font-size: 10px;
  display: inline-grid;
}

.management-toolbar-actions {
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.management-search-field {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  min-width: min(280px, 28vw);
  height: 36px;
  color: var(--muted);
  border-radius: 8px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  display: flex;
}

.management-search-field:focus-within {
  border-color: color-mix(in srgb, var(--blue) 60%, var(--line));
  box-shadow: 0 0 0 3px #2563eb17;
}

.management-search-field input {
  width: 100%;
  min-width: 0;
  color: var(--text);
  background: none;
  border: 0;
  outline: 0;
  font-size: 11px;
}

.management-search-field input::placeholder {
  color: #98a2b3;
}

.management-team-filter {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding-left: 9px;
  display: flex;
}

.management-team-filter > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.management-team-filter select {
  height: 100%;
  color: var(--text);
  background: none;
  border: 0;
  outline: 0;
  font-size: 11px;
}

.primary-button, .secondary-button {
  cursor: pointer;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
}

.primary-button {
  background: var(--blue);
  color: #fff;
  border: 1px solid #1d4ed8;
  box-shadow: 0 3px 8px #2563eb33;
}

.primary-button:hover {
  background: #1d4ed8;
}

.primary-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.secondary-button:hover {
  background: var(--surface-raised);
}

.management-export-actions {
  align-items: center;
  gap: 5px;
  display: flex;
}

.management-export-actions .secondary-button {
  white-space: nowrap;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  font-size: 9px;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
}

.management-import-review {
  border: 1px solid color-mix(in srgb, var(--blue) 34%, var(--line));
  background: color-mix(in srgb, var(--blue) 5%, var(--surface));
  border-radius: 9px;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 8px 12px 0;
  padding: 10px 12px;
  display: flex;
}

.management-import-review > div:first-child {
  min-width: 0;
}

.management-import-review strong {
  color: var(--text);
  font-size: 10px;
}

.management-import-review p {
  color: var(--muted);
  margin: 3px 0 0;
  font-size: 9px;
}

.management-import-review .management-import-error {
  color: #b42318;
}

.management-import-errors {
  color: #b42318;
  gap: 2px;
  margin: 7px 0 0;
  padding-left: 17px;
  font-size: 9px;
  display: grid;
}

.management-import-actions {
  flex: none;
  gap: 6px;
  display: flex;
}

.management-import-actions button {
  border-radius: 7px;
  min-height: 30px;
  padding: 0 11px;
  font-size: 9px;
}

@media (max-width: 900px) {
  .management-import-review {
    flex-direction: column;
  }

  .management-import-actions {
    align-self: flex-end;
  }
}

.management-add-button {
  white-space: nowrap;
}

.management-session-notice {
  color: #146c3a;
  background: #15944712;
  border-bottom: 1px solid #1594472e;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 8px 16px;
  font-size: 11px;
  display: flex;
}

.management-session-notice > span {
  background: #d8f5e3;
  border-radius: 50%;
  place-items: center;
  width: 17px;
  height: 17px;
  font-weight: 900;
  display: grid;
}

.management-session-notice small {
  color: #4d7c61;
  margin-left: auto;
}

.management-content {
  grid-template-columns: minmax(0, 1fr);
  min-height: 390px;
  display: grid;
}

.management-content.has-editor {
  grid-template-columns: minmax(0, 1fr) 410px;
}

.management-list-panel {
  min-width: 0;
}

.management-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.management-table {
  border-collapse: collapse;
  table-layout: auto;
  width: 100%;
  min-width: 980px;
}

.user-management-table {
  min-width: 880px;
}

.work-item-management-table {
  min-width: 1120px;
}

.management-table th {
  border-bottom: 1px solid var(--line);
  color: #667085;
  text-align: left;
  white-space: nowrap;
  background: #f8fafc;
  height: 42px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 800;
}

.management-table th:first-child, .management-table td:first-child {
  padding-left: 18px;
}

.management-table th:last-child, .management-table td:last-child {
  text-align: right;
  padding-right: 18px;
}

.management-table td {
  color: #344054;
  vertical-align: middle;
  border-bottom: 1px solid #0f172a13;
  height: 66px;
  padding: 9px 12px;
  font-size: 11px;
}

.management-table tbody tr {
  transition: background .12s;
}

.management-table tbody tr:hover {
  background: #2563eb06;
}

.management-table tbody tr:last-child td {
  border-bottom: 0;
}

.management-table tr.is-muted {
  opacity: .62;
  background: #f8fafc;
}

.management-project-cell, .management-user-cell {
  align-items: center;
  gap: 10px;
  min-width: 150px;
  display: flex;
}

.management-user-cell.compact {
  min-width: 92px;
}

.management-project-cell > span:last-child, .management-user-cell > span:last-child {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.management-project-cell strong, .management-user-cell strong {
  color: #101828;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  overflow: hidden;
}

.management-project-cell small, .management-user-cell small {
  color: var(--muted);
  white-space: nowrap;
  font-size: 9px;
}

.project-accent-mark {
  background: var(--management-accent);
  border-radius: 99px;
  flex: 0 0 4px;
  width: 4px;
  height: 30px;
}

.management-page .accent-blue {
  --management-accent: var(--blue);
}

.management-page .accent-orange {
  --management-accent: var(--orange);
}

.management-page .accent-violet {
  --management-accent: var(--violet);
}

.management-page .accent-teal {
  --management-accent: var(--teal);
}

.management-page .accent-rose {
  --management-accent: var(--rose);
}

.management-page .accent-gold {
  --management-accent: var(--gold);
}

.management-page .accent-slate {
  --management-accent: var(--slate);
}

.management-team-chip {
  border: 1px solid color-mix(in srgb, var(--management-accent) 22%, transparent);
  background: color-mix(in srgb, var(--management-accent) 8%, #fff);
  width: fit-content;
  min-height: 22px;
  color: color-mix(in srgb, var(--management-accent) 78%, #111827);
  white-space: nowrap;
  border-radius: 6px;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 800;
  display: inline-flex;
}

.management-team-chip small {
  color: inherit;
  opacity: .7;
  border-left: 1px solid;
  padding-left: 5px;
  font-size: 8px;
  font-weight: 600;
}

.management-team-list {
  flex-wrap: wrap;
  gap: 4px;
  max-width: 280px;
  display: flex;
}

.management-date-range {
  color: #475467;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  display: inline-flex;
}

.management-date-range i {
  color: #98a2b3;
  font-style: normal;
}

.management-avatar {
  color: #344054;
  background: linear-gradient(145deg, #dbeafe, #ede9fe);
  border: 2px solid #fff;
  border-radius: 50%;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 9px;
  font-weight: 900;
  display: inline-grid;
  box-shadow: 0 1px 3px #0f172a1f;
}

.management-avatar.compact {
  flex-basis: 27px;
  width: 27px;
  height: 27px;
  font-size: 8px;
}

.management-avatar.more {
  color: #667085;
  background: #eef2f6;
}

.management-avatar-stack {
  align-items: center;
  min-width: 90px;
  display: flex;
}

.management-avatar-stack .management-avatar + .management-avatar {
  margin-left: -7px;
}

.management-avatar-stack > small {
  color: var(--muted);
  white-space: nowrap;
  margin-left: 7px;
  font-size: 9px;
}

.table-number {
  color: #344054;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.management-progress {
  align-items: center;
  gap: 7px;
  min-width: 105px;
  display: flex;
}

.management-progress > span {
  background: #e9eef5;
  border-radius: 99px;
  width: 62px;
  height: 6px;
  overflow: hidden;
}

.management-progress i {
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  height: 100%;
  display: block;
}

.management-progress strong {
  color: #475467;
  font-variant-numeric: tabular-nums;
  min-width: 30px;
  font-size: 9px;
}

.management-status {
  white-space: nowrap;
  border-radius: 99px;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 800;
  display: inline-flex;
}

.management-status:before {
  content: "";
  background: currentColor;
  border-radius: 50%;
  width: 5px;
  height: 5px;
}

.management-status.active {
  color: #18794e;
  background: #e8f7ee;
}

.management-status.admin {
  color: #1d4ed8;
  background: #e8efff;
}

.management-status.member {
  color: #475467;
  background: #f2f4f7;
}

.management-status.archived, .management-status.suspended {
  color: #667085;
  background: #eef2f6;
}

.management-status.deleting {
  color: #be123c;
  background: #fff1f2;
}

.management-account-state {
  align-items: center;
  gap: 5px;
  display: flex;
}

.management-unassigned {
  color: var(--muted);
  font-size: 9px;
}

.work-item-management-table tr.is-work-group td {
  background: color-mix(in srgb, var(--blue) 4%, var(--surface));
}

.management-work-group-label {
  border: 1px solid color-mix(in srgb, var(--blue) 32%, var(--line));
  color: var(--blue);
  border-radius: 5px;
  margin-right: 6px;
  padding: 2px 5px;
  font-size: 9px;
  font-weight: 850;
  display: inline-flex;
}

.management-work-status {
  background: color-mix(in srgb, var(--status-color) 13%, #fff);
  min-height: 22px;
  color: color-mix(in srgb, var(--status-color) 78%, #111827);
  white-space: nowrap;
  border-radius: 99px;
  align-items: center;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 800;
  display: inline-flex;
}

.management-dependency-count {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  min-width: 24px;
  height: 24px;
  color: var(--muted);
  border-radius: 7px;
  place-items: center;
  padding: 0 6px;
  font-size: 9px;
  font-weight: 900;
  display: inline-grid;
}

.management-dependency-count.has-links {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #2563eb33;
}

.table-action-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: #475467;
  cursor: pointer;
  border-radius: 6px;
  min-height: 28px;
  padding: 0 9px;
  font-size: 9px;
  font-weight: 800;
}

.table-action-button:hover {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #2563eb59;
}

.management-row-actions {
  align-items: center;
  gap: 5px;
  display: flex;
}

.management-empty {
  text-align: center;
  align-content: center;
  place-items: center;
  min-height: 350px;
  padding: 30px;
  display: grid;
}

.management-empty > span {
  background: var(--surface-soft);
  color: #98a2b3;
  border-radius: 50%;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  font-size: 24px;
  display: grid;
}

.management-empty strong {
  color: #344054;
  font-size: 13px;
}

.management-empty p {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 10px;
}

.management-editor {
  border-left: 1px solid var(--line);
  background: #fbfcfe;
  min-width: 0;
  box-shadow: -9px 0 26px #0f172a0d;
}

.management-editor-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  justify-content: space-between;
  align-items: center;
  min-height: 66px;
  padding: 12px 16px;
  display: flex;
}

.management-editor-header > div {
  gap: 3px;
  display: grid;
}

.management-editor-header span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
}

.management-editor-header h2 {
  color: #101828;
  letter-spacing: -.02em;
  margin: 0;
  font-size: 16px;
}

.icon-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: #667085;
  cursor: pointer;
  border-radius: 7px;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 18px;
  display: grid;
}

.icon-button:hover {
  background: var(--surface-raised);
  color: var(--text);
}

.login-page {
  background: radial-gradient(circle at 18% 5%, #2563eb26, #0000 32%), radial-gradient(circle at 88% 92%, #7c3aed1f, #0000 30%), #f5f7fb;
  place-items: center;
  min-height: 100vh;
  padding: 28px;
  display: grid;
}

.login-card {
  background: #fffffff5;
  border: 1px solid #0f172a1f;
  border-radius: 20px;
  width: min(440px, 100%);
  overflow: hidden;
  box-shadow: 0 24px 70px #0f172a1f;
}

.login-brand {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #eff6ffe6, #faf5ffd9);
  align-items: center;
  gap: 11px;
  padding: 22px 26px;
  display: flex;
}

.login-brand > span {
  color: #fff;
  letter-spacing: -.03em;
  background: linear-gradient(145deg, #2563eb, #7c3aed);
  border-radius: 10px;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 12px;
  font-weight: 900;
  display: grid;
  box-shadow: 0 5px 12px #2563eb38;
}

.login-brand > div {
  gap: 2px;
  display: grid;
}

.login-brand strong {
  color: #172033;
  letter-spacing: .08em;
  font-size: 12px;
}

.login-brand small {
  color: var(--muted);
  letter-spacing: .12em;
  font-size: 8px;
  font-weight: 700;
}

.login-copy {
  padding: 30px 30px 22px;
}

.login-copy > span {
  color: var(--blue);
  letter-spacing: .14em;
  font-size: 9px;
  font-weight: 900;
}

.login-copy h1 {
  color: #101828;
  letter-spacing: -.04em;
  margin: 9px 0 0;
  font-size: 26px;
}

.login-copy p {
  color: var(--muted);
  margin: 11px 0 0;
  font-size: 12px;
  line-height: 1.65;
}

.login-error {
  color: #b42318;
  background: #fee2e28c;
  border: 1px solid #dc26262e;
  border-radius: 9px;
  margin: 0 30px 18px;
  padding: 10px 12px;
  font-size: 10px;
  line-height: 1.5;
}

.login-actions {
  gap: 11px;
  padding: 0 30px 30px;
  display: grid;
}

.login-actions form {
  gap: 7px;
  display: grid;
}

.login-actions form > small {
  color: #98a2b3;
  text-align: center;
  font-size: 9px;
}

.credential-login-field {
  color: var(--muted);
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  display: grid;
}

.credential-login-field input {
  border: 1px solid var(--line);
  background: var(--surface-raised);
  width: 100%;
  min-height: 42px;
  color: var(--text);
  border-radius: 8px;
  padding: 0 10px;
}

.external-login-button, .credential-login-button {
  cursor: pointer;
  border-radius: 9px;
  justify-content: center;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 46px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
}

.external-login-button {
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  color: var(--text);
}

.external-login-button:hover {
  background: var(--surface-soft);
}

.external-login-button.provider-microsoft-entra-id {
  color: #fff;
  background: #2563eb;
  border: 1px solid #1d4ed8;
  box-shadow: 0 7px 16px #2563eb33;
}

.external-login-button.provider-microsoft-entra-id:hover {
  background: #1d4ed8;
}

.external-login-button.provider-kakao {
  color: #191919;
  background: #fee500;
  border-color: #f0d900;
}

.external-login-button.provider-kakao:hover {
  background: #f4dc00;
}

.external-login-button.provider-apple {
  color: #fff;
  background: #111827;
  border-color: #111827;
}

.external-login-button.provider-apple:hover {
  background: #000;
}

.external-provider-mark {
  background: color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 5px;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 900;
  display: inline-grid;
}

.credential-login-button {
  color: #fff;
  background: #2563eb;
  border: 1px solid #1d4ed8;
}

.credential-login-button:hover {
  background: #1d4ed8;
}

.login-divider {
  color: #98a2b3;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  display: flex;
}

.login-divider:before, .login-divider:after {
  content: "";
  background: var(--line);
  flex: 1;
  height: 1px;
}

.login-configuration-note {
  background: #fffbebcc;
  border: 1px solid #b7791f33;
  border-radius: 10px;
  padding: 13px;
}

.login-configuration-note strong {
  color: #8a5b13;
  font-size: 11px;
}

.login-configuration-note p {
  color: #8a6d3b;
  margin: 5px 0 0;
  font-size: 10px;
  line-height: 1.55;
}

.login-footer .management-work-hierarchy-cell {
  padding-left: calc(var(--management-work-depth, 0) * 18px);
  transition: padding-left .12s;
}

.login-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fafbfc;
  align-items: center;
  gap: 7px;
  padding: 14px 26px;
  font-size: 9px;
  display: flex;
}

.login-footer > span {
  color: var(--green);
  font-size: 7px;
}

.management-form {
  gap: 17px;
  padding: 17px;
  display: grid;
}

.management-form-grid {
  grid-template-columns: 1fr;
  gap: 11px;
  display: grid;
}

.management-form-grid.two-columns {
  grid-template-columns: 1fr 1fr;
}

.management-form-field.wide {
  grid-column: 1 / -1;
}

.management-form-field {
  gap: 5px;
  min-width: 0;
  display: grid;
}

.management-form-field > span {
  color: #475467;
  font-size: 9px;
  font-weight: 800;
}

.management-form-field input, .management-form-field select {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: #101828;
  border-radius: 7px;
  outline: 0;
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 9px;
  font-size: 10px;
}

.management-form-field input:focus, .management-form-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #2563eb14;
}

.management-publishing-guidance, .management-publishing-preview {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 9px;
  grid-column: 1 / -1;
  padding: 10px 12px;
}

.management-publishing-guidance strong, .management-publishing-preview strong {
  color: var(--text);
  display: block;
}

.management-publishing-guidance p, .management-publishing-preview p {
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.5;
}

.management-publishing-guidance.is-public {
  border-color: color-mix(in srgb, #d97706 42%, var(--line));
  background: color-mix(in srgb, #f59e0b 8%, var(--surface));
}

.management-publishing-preview {
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
  background: var(--surface);
}

.management-publishing-preview > span {
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 8px;
  font-weight: 800;
  display: block;
}

.management-publishing-preview small {
  color: var(--muted);
  margin-top: 8px;
  display: block;
}

.management-publishing-history {
  gap: 8px;
  display: grid;
}

.management-publishing-history > header {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.management-publishing-history > header > strong {
  color: var(--text);
  font-size: 10px;
}

.management-publishing-history > header > span {
  color: var(--muted);
  font-size: 8px;
}

.management-publishing-history ol {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.management-publishing-history li {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  display: flex;
}

.management-publishing-history li:last-child {
  border-bottom: 0;
}

.management-publishing-history li > div {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.management-publishing-history li strong, .management-publishing-history li span {
  color: var(--text);
  font-size: 9px;
}

.management-publishing-history li small {
  color: var(--muted);
  font-size: 8px;
}

.management-publishing-history button {
  flex: none;
}

.management-project-badges {
  flex-wrap: wrap;
  gap: 4px;
  display: inline-flex;
}

.management-project-visibility {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  min-height: 18px;
  color: var(--muted);
  border-radius: 999px;
  align-items: center;
  padding: 2px 6px;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  display: inline-flex;
}

.management-project-visibility.is-public {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #93c5fd;
}

.management-project-visibility.is-joinable {
  color: #15803d;
  background: #f0fdf4;
  border-color: #86efac;
}

.management-members-fieldset {
  border: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.management-members-fieldset legend {
  color: #344054;
  padding: 0;
  font-size: 10px;
  font-weight: 900;
}

.management-members-fieldset > p {
  color: var(--muted);
  margin: 4px 0 9px;
  font-size: 9px;
  line-height: 1.4;
}

.management-member-picker {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  max-height: 240px;
  display: grid;
  overflow-y: auto;
}

.management-member-option {
  border-bottom: 1px solid #0f172a12;
  grid-template-columns: minmax(0, 1fr) 88px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 7px 8px;
  display: grid;
}

.management-member-option:last-child {
  border-bottom: 0;
}

.management-member-option > label {
  cursor: pointer;
  align-items: center;
  gap: 7px;
  min-width: 0;
  display: flex;
}

.management-member-option input {
  width: 14px;
  height: 14px;
  accent-color: var(--blue);
  flex: 0 0 14px;
}

.management-member-option label > span:last-child {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.management-member-option strong {
  color: #344054;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  overflow: hidden;
}

.management-member-option small {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
  overflow: hidden;
}

.management-member-option select {
  border: 1px solid var(--line);
  background: var(--surface);
  color: #475467;
  border-radius: 6px;
  width: 88px;
  height: 30px;
  font-size: 9px;
}

.management-member-option select:disabled {
  opacity: .42;
}

.dependency-option {
  grid-template-columns: minmax(0, 1fr) auto;
}

.dependency-editor-warning, .dependency-editor-valid {
  white-space: nowrap;
  border-radius: 99px;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  font-size: 8px;
  font-weight: 800;
  display: inline-flex;
}

.dependency-editor-warning {
  color: #b42318;
  background: #fff1f2;
}

.dependency-editor-valid {
  color: #18794e;
  background: #ecfdf3;
}

.management-member-empty {
  color: var(--muted);
  text-align: center;
  margin: 0;
  padding: 18px;
  font-size: 9px;
}

.team-color-dot {
  background: var(--management-accent);
  width: 11px;
  height: 11px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--management-accent) 10%, transparent);
  border-radius: 4px;
  flex: 0 0 11px;
}

.management-switch-field {
  border: 1px solid var(--line);
  cursor: pointer;
  background: #fff;
  border-radius: 8px;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  display: flex;
}

.management-switch-field input {
  accent-color: var(--blue);
  margin-top: 2px;
}

.management-switch-field span {
  gap: 3px;
  display: grid;
}

.management-switch-field strong {
  color: #344054;
  font-size: 10px;
}

.management-switch-field small {
  color: var(--muted);
  font-size: 8px;
}

.management-linked-projects {
  gap: 8px;
  display: grid;
}

.management-linked-projects h3 {
  color: #344054;
  margin: 0;
  font-size: 10px;
}

.management-linked-projects h3 span {
  color: var(--muted);
}

.management-linked-projects > p {
  border: 1px dashed var(--line);
  color: var(--muted);
  border-radius: 7px;
  margin: 0;
  padding: 10px;
  font-size: 9px;
}

.management-linked-projects ul {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.management-linked-projects li {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 8px;
  display: grid;
}

.management-linked-projects li:last-child {
  border-bottom: 0;
}

.management-linked-projects li strong {
  color: #344054;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  overflow: hidden;
}

.management-linked-projects li small {
  color: var(--muted);
  font-size: 8px;
}

.management-form-error {
  color: #b42318;
  background: #dc26260f;
  border: 1px solid #dc262633;
  border-radius: 7px;
  margin: 0;
  padding: 8px 10px;
  font-size: 9px;
  line-height: 1.45;
}

.delivery-management-board {
  background: color-mix(in srgb, var(--surface-soft) 55%, transparent);
  grid-template-columns: minmax(320px, .78fr) minmax(560px, 1.42fr);
  gap: 12px;
  min-width: 0;
  padding: 12px;
  display: grid;
}

.delivery-list-box {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
}

.delivery-list-header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 12px 10px 15px;
  display: flex;
}

.delivery-list-header > div {
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  display: flex;
}

.delivery-list-header h2 {
  color: var(--text);
  margin: 0;
  font-size: 14px;
}

.delivery-list-header span {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  overflow: hidden;
}

.delivery-list-header .primary-button {
  white-space: nowrap;
  min-height: 31px;
  padding: 0 10px;
  font-size: 9px;
}

.delivery-project-list, .delivery-work-list {
  align-content: start;
  gap: 7px;
  min-height: 390px;
  max-height: 590px;
  padding: 9px;
  display: grid;
  overflow: auto;
}

.delivery-project-card, .delivery-work-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  min-width: 0;
  transition: border-color .12s, box-shadow .12s, opacity .12s;
  overflow: hidden;
}

.delivery-project-card:hover, .delivery-work-card:hover {
  border-color: color-mix(in srgb, var(--blue) 30%, var(--line));
}

.delivery-project-card.is-selected {
  border-color: color-mix(in srgb, var(--blue) 62%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 9%, transparent);
}

.delivery-project-card.is-muted, .delivery-work-card.is-muted {
  opacity: .58;
}

.delivery-project-select {
  width: 100%;
  min-height: 62px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  grid-template-columns: 4px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  display: grid;
}

.delivery-project-select:hover {
  background: color-mix(in srgb, var(--blue) 3%, transparent);
}

.delivery-project-copy {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.delivery-project-copy strong {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  overflow: hidden;
}

.delivery-project-copy small, .delivery-project-copy > span {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
  overflow: hidden;
}

.delivery-project-metrics {
  white-space: nowrap;
  justify-items: end;
  gap: 3px;
  display: grid;
}

.delivery-project-metrics b {
  color: var(--blue);
  font-size: 11px;
}

.delivery-project-metrics small {
  color: var(--muted);
  font-size: 8px;
}

.delivery-project-actions {
  justify-content: flex-end;
  padding: 0 8px 7px;
}

.delivery-work-card {
  min-height: 58px;
  padding: 7px 8px;
  padding-left: calc(8px + min(var(--management-work-depth, 0), 5) * 14px);
  grid-template-columns: 4px minmax(165px, 1.25fr) minmax(175px, 1fr) minmax(135px, auto) auto;
  align-items: center;
  gap: 10px;
  display: grid;
}

.delivery-work-card.is-group {
  background: color-mix(in srgb, var(--surface-soft) 70%, var(--surface));
}

.delivery-work-copy, .delivery-work-period {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.delivery-work-copy strong, .delivery-work-period strong {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  overflow: hidden;
}

.delivery-work-copy small, .delivery-work-period small {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
  overflow: hidden;
}

.delivery-work-state {
  white-space: nowrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.delivery-work-state strong {
  color: var(--text);
  margin-left: 3px;
  font-size: 9px;
}

.delivery-work-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

@media (max-width: 1380px) {
  .management-content.has-editor .delivery-management-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .delivery-management-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .delivery-work-card {
    grid-template-columns: 4px minmax(150px, 1fr) auto;
  }

  .delivery-work-period {
    grid-column: 2;
  }

  .delivery-work-state {
    grid-area: 1 / 3;
  }

  .delivery-work-actions, .delivery-work-card > .management-read-only {
    grid-column: 2 / -1;
    justify-self: end;
  }
}

.organization-workspace-card {
  border: 1px solid var(--line);
  background: #fffffff0;
  border-radius: 15px;
  max-width: 1680px;
  min-height: 520px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 16px 42px #0f172a14;
}

.organization-toolbar {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 12px 16px 12px 20px;
  display: flex;
}

.organization-toolbar > div {
  gap: 3px;
  display: grid;
}

.organization-toolbar strong {
  font-size: 13px;
}

.organization-toolbar > div span {
  color: var(--muted);
  font-size: 10px;
}

.organization-search-field {
  min-width: min(360px, 34vw);
}

.organization-content {
  grid-template-columns: minmax(0, 1fr);
  min-height: 455px;
  display: grid;
}

.organization-content.has-editor {
  grid-template-columns: minmax(0, 1fr) 410px;
}

.organization-board {
  background: color-mix(in srgb, var(--surface-soft) 55%, transparent);
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 12px;
  display: grid;
}

.organization-list-box {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
}

.organization-list-header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 12px 10px 15px;
  display: flex;
}

.organization-list-header > div {
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  display: flex;
}

.organization-list-header h2 {
  color: var(--text);
  margin: 0;
  font-size: 14px;
}

.organization-list-header span {
  color: var(--muted);
  white-space: nowrap;
  font-size: 9px;
}

.organization-list-header .primary-button {
  min-height: 31px;
  padding: 0 10px;
  font-size: 9px;
}

.organization-team-groups, .organization-user-list {
  align-content: start;
  gap: 8px;
  min-height: 390px;
  max-height: 590px;
  padding: 9px;
  display: grid;
  overflow: auto;
}

.organization-team-group {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
  box-shadow: inset 3px 0 color-mix(in srgb, var(--blue) 58%, transparent);
  border-radius: 10px;
  transition: border-color .12s, box-shadow .12s, background .12s;
  overflow: hidden;
}

.organization-team-group.archived {
  opacity: .58;
}

.organization-team-group.drag-over {
  border-color: color-mix(in srgb, var(--blue) 66%, var(--line));
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 12%, transparent);
}

.organization-team-group > header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 47px;
  padding: 7px 8px 7px 10px;
  display: flex;
}

.organization-team-group > header > div:first-child {
  align-items: center;
  gap: 7px;
  min-width: 0;
  display: flex;
}

.organization-team-group > header small {
  color: var(--muted);
  white-space: nowrap;
  font-size: 8px;
}

.organization-team-members {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 4px;
  min-height: 48px;
  max-height: 184px;
  padding: 6px;
  display: grid;
  overflow: auto;
}

.organization-team-members > p {
  border: 1px dashed var(--line-strong);
  width: 100%;
  color: var(--muted);
  text-align: center;
  border-radius: 7px;
  margin: 0;
  padding: 8px;
  font-size: 9px;
}

.organization-member-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 34px;
  padding: 3px 4px;
  display: grid;
}

.organization-member-copy {
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  display: flex;
}

.organization-member-card strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  overflow: hidden;
}

.organization-member-card small {
  color: var(--muted);
  flex: none;
  font-size: 8px;
}

.organization-member-remove {
  width: 22px;
  height: 22px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 5px;
  place-items: center;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  display: inline-grid;
}

.organization-member-remove:hover {
  color: #be123c;
  background: #fff1f2;
}

.organization-user-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  grid-template-columns: 17px 28px minmax(100px, .7fr) minmax(150px, 1.3fr) minmax(120px, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 4px 6px;
  transition: opacity .12s, border-color .12s, box-shadow .12s;
  display: grid;
}

.organization-user-card:hover {
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
  box-shadow: 0 4px 12px #0f172a0d;
}

.organization-user-card.suspended {
  opacity: .58;
  cursor: default;
}

.organization-drag-handle {
  color: #98a2b3;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  font-size: 17px;
  line-height: 1;
}

.organization-drag-handle.dragging {
  opacity: .45;
  cursor: grabbing;
}

.organization-user-copy {
  display: contents;
}

.organization-user-copy > strong {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  overflow: hidden;
}

.organization-user-copy > small {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
  overflow: hidden;
}

.organization-user-copy .management-team-list {
  flex-wrap: nowrap;
  max-width: none;
  overflow: hidden;
}

.organization-user-copy .management-team-chip {
  min-height: 18px;
  padding: 2px 5px;
  font-size: 8px;
}

.organization-user-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  display: flex;
}

.organization-user-actions select {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 112px;
  height: 26px;
  color: var(--text);
  border-radius: 6px;
  font-size: 8px;
}

@media (max-width: 1220px) {
  .organization-content.has-editor {
    grid-template-columns: minmax(0, 1fr) 380px;
  }

  .organization-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1500px) {
  .organization-user-card {
    grid-template-columns: 17px 28px minmax(90px, .7fr) minmax(130px, 1.2fr) minmax(100px, 1fr) auto;
  }
}

@media (max-width: 820px) {
  .organization-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .organization-search-field {
    width: 100%;
    min-width: 0;
  }

  .organization-content.has-editor {
    grid-template-columns: 1fr;
  }

  .organization-user-card {
    grid-template-columns: 17px 34px minmax(120px, 1fr);
  }

  .organization-user-copy {
    grid-column: 3;
    gap: 3px;
    display: grid;
  }

  .organization-user-copy .management-team-list {
    flex-wrap: wrap;
  }

  .organization-user-actions {
    grid-column: 2 / -1;
    grid-template-columns: minmax(130px, 1fr) auto;
    align-items: center;
    width: 100%;
  }

  .organization-user-actions label, .organization-user-actions select {
    width: 100%;
  }
}

.issue-page {
  background: var(--background);
  min-width: 0;
  min-height: 100vh;
  padding: 20px;
}

.issue-page-header {
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 14px;
  display: flex;
}

.issue-page-header > div > span, .issue-editor > header span {
  color: var(--blue);
  letter-spacing: .12em;
  font-size: 9px;
  font-weight: 850;
}

.issue-page-header h1 {
  margin: 3px 0;
  font-size: 22px;
}

.issue-page-header p {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
}

.issue-page-header label {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  align-items: center;
  gap: 7px;
  width: min(360px, 38vw);
  height: 36px;
  padding: 0 10px;
  display: flex;
}

.issue-page-header input {
  width: 100%;
  color: var(--text);
  background: none;
  border: 0;
  outline: 0;
}

.issue-workspace {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  grid-template-columns: minmax(480px, 1fr) 390px;
  min-height: 600px;
  display: grid;
  overflow: hidden;
}

.issue-list-panel {
  border-right: 1px solid var(--line);
  min-width: 0;
}

.issue-list-panel > header {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 7px;
  min-height: 52px;
  padding: 8px 12px;
  display: flex;
}

.issue-list-panel > header span {
  color: var(--muted);
  font-size: 9px;
}

.issue-list-panel > header button {
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  border: 0;
  border-radius: 7px;
  height: 30px;
  margin-left: auto;
  font-size: 10px;
  font-weight: 750;
}

.issue-list {
  align-content: start;
  max-height: 680px;
  display: grid;
  overflow: auto;
}

.issue-list-row {
  border: 0;
  border-bottom: 1px solid var(--line);
  min-height: 44px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
  grid-template-columns: 62px minmax(160px, 1.3fr) minmax(140px, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  display: grid;
}

.issue-list-row:hover, .issue-list-row.active {
  background: var(--surface-raised);
}

.issue-list-row strong, .issue-list-row > span:nth-of-type(2) {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.issue-list-row > span:nth-of-type(2), .issue-list-row small {
  color: var(--muted);
  font-size: 9px;
}

.issue-status {
  border-radius: 99px;
  place-items: center;
  min-height: 22px;
  font-size: 9px;
  font-weight: 750;
  display: inline-grid;
}

.issue-status.status-open {
  color: #475467;
  background: #eef2f6;
}

.issue-status.status-inProgress {
  color: #1d4ed8;
  background: #dbeafe;
}

.issue-status.status-resolved {
  color: #15803d;
  background: #dcfce7;
}

.issue-empty {
  color: var(--muted);
  text-align: center;
  padding: 40px;
}

.issue-editor {
  background: var(--surface-soft);
  padding: 18px;
}

.issue-editor > header h2 {
  margin: 4px 0 14px;
  font-size: 17px;
}

.issue-editor form {
  gap: 10px;
  display: grid;
}

.issue-editor label {
  color: var(--muted);
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  display: grid;
}

.issue-editor input, .issue-editor select, .issue-editor textarea {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  width: 100%;
  color: var(--text);
  font: inherit;
  border-radius: 7px;
  font-weight: 500;
}

.issue-editor input, .issue-editor select {
  height: 34px;
  padding: 0 8px;
}

.issue-editor textarea {
  resize: vertical;
  padding: 8px;
}

.issue-editor form > p {
  color: #b42318;
  margin: 0;
  font-size: 10px;
}

.issue-editor form > button {
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  border: 0;
  border-radius: 7px;
  height: 36px;
  font-weight: 750;
}

.issue-editor form > button:disabled {
  opacity: .5;
  cursor: default;
}

@media (max-width: 1050px) {
  .issue-workspace {
    grid-template-columns: 1fr;
  }

  .issue-list-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

[data-theme="dark"] {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --background: #0b1220;
  --surface: #111827;
  --surface-raised: #182235;
  --surface-soft: #151f31;
  --line: #e2e8f026;
  --line-strong: #e2e8f047;
  --text: #e5e7eb;
  --muted: #9aa6b7;
  --blue: #60a5fa;
  --orange: #fb923c;
  --violet: #a78bfa;
  --teal: #2dd4bf;
  --rose: #f472b6;
  --gold: #facc15;
  --slate: #94a3b8;
  --green: #4ade80;
  --red: #f87171;
  --yellow: #fbbf24;
  --today: #fb7185;
}

[data-theme="dark"] .sidebar {
  background: linear-gradient(#111b2d 0%, #0f1726 52%, #171326 100%);
}

[data-theme="dark"] .hamburger-button, [data-theme="dark"] .control-bar, [data-theme="dark"] .legend-bar, [data-theme="dark"] .timeline-navigation-bar, [data-theme="dark"] .project-milestone-section, [data-theme="dark"] .milestone-group-menu, [data-theme="dark"] .timeline-quick-panel, [data-theme="dark"] .management-header, [data-theme="dark"] .management-summary-card, [data-theme="dark"] .management-panel, [data-theme="dark"] .management-editor, [data-theme="dark"] .organization-workspace-card, [data-theme="dark"] .organization-list-box, [data-theme="dark"] .organization-team-group, [data-theme="dark"] .organization-member-card, [data-theme="dark"] .organization-user-card, [data-theme="dark"] .login-card {
  background: #111827f5;
}

[data-theme="dark"] .timeline-stage, [data-theme="dark"] .management-page, [data-theme="dark"] .login-page {
  background: radial-gradient(circle at 18% 0%, #60a5fa14, transparent 30%),
    radial-gradient(circle at 90% 8%, #a78bfa12, transparent 28%),
    var(--background);
}

[data-theme="dark"] .sidebar-link.active {
  color: #bfdbfe;
  background: #60a5fa24;
  border-color: #60a5fa4d;
}

[data-theme="dark"] .sidebar-account-avatar, [data-theme="dark"] .management-avatar {
  color: #e5e7eb;
  background: linear-gradient(145deg, #1e3a5f, #3b2b66);
}

[data-theme="dark"] .timeline-tick {
  background: #e2e8f03d;
}

[data-theme="dark"] .timeline-tick.tick-week {
  background: #e2e8f06b;
}

[data-theme="dark"] .timeline-tick.tick-month {
  background: #e2e8f0c7;
}

[data-theme="dark"] .timeline-axis {
  background: #111827f5;
}

[data-theme="dark"] .timeline-grid {
  --timeline-grid-day-color: #e2e8f012;
  --timeline-grid-week-color: #e2e8f01a;
  --timeline-grid-month-color: #e2e8f029;
  --timeline-grid-weekend-color: #94a3b80e;
}

[data-theme="dark"] .project-summary-header, [data-theme="dark"] .work-item-detail-panel {
  background-color: #111827f0;
}

[data-theme="dark"] .work-item-header {
  background: linear-gradient(to right, #0000 0 10px, #111827f5 10px calc(100% - 10px), #0000 calc(100% - 10px) 100%);
}

[data-theme="dark"] .work-summary-overlay, [data-theme="dark"] .work-progress-row, [data-theme="dark"] .timeline-quick-form input, [data-theme="dark"] .timeline-quick-form select, [data-theme="dark"] .management-search-field, [data-theme="dark"] .management-team-filter, [data-theme="dark"] .management-table thead, [data-theme="dark"] .management-member-option, [data-theme="dark"] .management-switch-field {
  background: #182235eb;
}

[data-theme="dark"] .management-table tbody tr:hover, [data-theme="dark"] .timeline-navigation-controls button:hover, [data-theme="dark"] .timeline-order-handle:hover, [data-theme="dark"] .project-title-button:hover, [data-theme="dark"] .milestone-group-menu button:hover {
  background: #94a3b817;
}

[data-theme="dark"] :is(.management-header h1, .management-summary-card strong, .management-table th, .management-table td, .management-user-cell strong, .management-editor-header h2, .management-form-field input, .management-form-field select, .management-form-field textarea, .login-brand strong, .login-copy h1, .work-progress-empty, .work-progress-list li > div > span) {
  color: var(--text);
}

[data-theme="dark"] :is(.management-date-range, .management-progress strong, .management-form-field > span, .management-members-fieldset legend, .management-member-option strong, .management-switch-field strong, .management-linked-projects h3, .management-linked-projects li strong, .timeline-quick-form label > span) {
  color: #cbd5e1;
}

[data-theme="dark"] .management-table tr.is-muted, [data-theme="dark"] .management-editor-header, [data-theme="dark"] .login-footer {
  background: #0f1726;
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.management-permission-note {
  color: #315a9b;
  background: #2563eb0d;
  border: 1px solid #2563eb29;
  border-radius: 7px;
  margin: 0;
  padding: 9px 10px;
  font-size: 9px;
  line-height: 1.5;
}

.management-read-only {
  color: var(--muted);
  white-space: nowrap;
  font-size: 9px;
  font-weight: 700;
}

.management-form-field input:disabled, .management-form-field select:disabled, .dependency-editor-fieldset:disabled, .management-switch-field input:disabled + span {
  cursor: not-allowed;
  opacity: .58;
}

.management-form-actions {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  gap: 7px;
  padding-top: 4px;
  display: flex;
}

@media (max-width: 1220px) {
  .management-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .management-tabs {
    align-self: auto;
    min-height: 38px;
  }

  .management-tabs button:after {
    bottom: -11px;
  }

  .management-toolbar-actions {
    width: 100%;
  }

  .management-search-field {
    flex: 1;
    min-width: 180px;
  }

  .management-content.has-editor {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}

@media (max-width: 980px) {
  .management-summary-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .management-content.has-editor {
    grid-template-columns: 1fr;
  }

  .management-editor {
    border-top: 1px solid var(--line);
    border-left: 0;
    box-shadow: 0 -9px 26px #0f172a0d;
  }
}

@media (max-width: 720px) {
  .management-page {
    padding: 20px 12px 36px;
  }

  .management-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .management-data-state {
    width: 100%;
  }

  .management-summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .management-summary-card {
    min-height: 82px;
    padding: 12px;
  }

  .summary-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .management-toolbar-actions {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .management-search-field {
    flex-basis: 100%;
    width: 100%;
  }

  .management-team-filter, .management-add-button {
    flex: 1;
  }

  .management-session-notice {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .management-session-notice small {
    width: 100%;
    margin-left: 24px;
  }

  .management-form-grid.two-columns {
    grid-template-columns: 1fr;
  }

  .management-form-field.wide {
    grid-column: auto;
  }
}

.status-map-page-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 22px 28px 18px;
  display: flex;
}

.status-map-page-header > div {
  gap: 4px;
  display: grid;
}

.status-map-page-header > div > span {
  color: #2563eb;
  letter-spacing: .16em;
  font-size: 9px;
  font-weight: 900;
}

.status-map-page-header h1 {
  letter-spacing: -.04em;
  margin: 0;
  font-size: 24px;
}

.status-map-page-header p {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
}

.status-map-page-header > small {
  color: var(--muted);
  white-space: nowrap;
  font-size: 9px;
}

.status-map-page {
  background: radial-gradient(circle at 8% 0, #3b82f612, #0000 24%), radial-gradient(circle at 96% 8%, #f973160f, #0000 22%), #f5f7fb;
  flex: 1;
  min-height: 0;
  padding: 20px 28px 48px;
  overflow: auto;
}

.status-map-summary {
  grid-template-columns: repeat(7, minmax(104px, 1fr));
  gap: 9px;
  display: grid;
}

.status-map-summary article {
  --summary-accent: #64748b;
  border: 1px solid color-mix(in srgb, var(--summary-accent) 18%, var(--line));
  background: color-mix(in srgb, var(--summary-accent) 5%, white);
  border-radius: 14px;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 13px;
  display: flex;
  box-shadow: 0 8px 24px #0f172a09;
}

.status-map-summary article > span {
  background: color-mix(in srgb, var(--summary-accent) 12%, white);
  width: 31px;
  height: 31px;
  color: var(--summary-accent);
  border-radius: 10px;
  place-items: center;
  font-weight: 900;
  display: grid;
}

.status-map-summary article > div {
  gap: 2px;
  display: grid;
}

.status-map-summary small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.status-map-summary strong {
  font-size: 22px;
  line-height: 1;
}

.status-map-summary .summary-projects {
  --summary-accent: #7c3aed;
}

.status-map-summary .summary-total {
  --summary-accent: #334155;
}

.status-map-summary .summary-inProgress {
  --summary-accent: #2563eb;
}

.status-map-summary .summary-waiting {
  --summary-accent: #64748b;
}

.status-map-summary .summary-done {
  --summary-accent: #16a34a;
}

.status-map-summary .summary-onHold {
  --summary-accent: #ca8a04;
}

.status-map-summary .summary-delayed {
  --summary-accent: #dc2626;
}

.status-map-guide {
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 17px 0 11px;
  display: flex;
}

.status-map-guide > div:first-child {
  gap: 3px;
  display: grid;
}

.status-map-guide strong {
  font-size: 13px;
}

.status-map-guide > div:first-child span {
  color: var(--muted);
  font-size: 9px;
}

.status-map-legend {
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
  display: flex;
}

.status-map-legend span {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 8px;
  font-weight: 800;
}

.status-map-legend .status-done {
  color: #15803d;
  background: #dcfce7;
}

.status-map-legend .status-inProgress {
  color: #1d4ed8;
  background: #dbeafe;
}

.status-map-legend .status-waiting {
  color: #475569;
  background: #e2e8f0;
}

.status-map-legend .status-onHold {
  color: #854d0e;
  background: #fef3c7;
}

.status-map-legend .is-delayed {
  color: #b91c1c;
  background: #fff1f2;
  border-color: #ef4444;
}

.status-map-project-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 510px), 1fr));
  align-items: start;
  gap: 15px;
  display: grid;
}

.status-map-project {
  --project-accent: #2563eb;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 12px 34px #0f172a0f;
}

.status-map-project-header {
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 17px 18px 12px;
  display: flex;
}

.status-map-project-title {
  align-items: stretch;
  gap: 11px;
  min-width: 0;
  display: flex;
}

.status-map-project-accent {
  background: var(--project-accent);
  border-radius: 999px;
  flex: 0 0 5px;
  width: 5px;
  min-height: 54px;
}

.status-map-project-title > div {
  min-width: 0;
  display: grid;
}

.status-map-project-title p {
  color: var(--project-accent);
  margin: 0 0 3px;
  font-size: 8px;
  font-weight: 850;
}

.status-map-project-title h2 {
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  overflow: hidden;
}

.status-map-project-title small {
  max-width: 430px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
  font-size: 8px;
  overflow: hidden;
}

.status-map-risk {
  color: #15803d;
  text-align: right;
  background: #ecfdf5;
  border-radius: 12px;
  flex: none;
  min-width: 70px;
  padding: 8px 10px;
  display: grid;
}

.status-map-risk strong {
  font-size: 16px;
}

.status-map-risk span {
  font-size: 8px;
  font-weight: 750;
}

.status-map-risk.is-alert {
  color: #dc2626;
  background: #fff1f2;
}

.status-map-project-counts {
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 18px 10px;
  display: flex;
}

.status-map-project-counts span {
  color: #475569;
  background: #f1f5f9;
  border-radius: 7px;
  padding: 5px 7px;
  font-size: 8px;
  font-weight: 700;
}

.status-map-project-counts span b {
  color: inherit;
  margin-left: 3px;
}

.status-map-project-counts .status-inProgress {
  color: #1d4ed8;
  background: #dbeafe;
}

.status-map-project-counts .status-done {
  color: #15803d;
  background: #dcfce7;
}

.status-map-project-counts .status-onHold {
  color: #854d0e;
  background: #fef3c7;
}

.status-map-project-counts .is-delayed {
  color: #b91c1c;
  background: #fee2e2;
}

.status-map-distribution {
  background: #e2e8f0;
  border-radius: 999px;
  height: 5px;
  margin: 0 18px 12px;
  display: flex;
  overflow: hidden;
}

.status-map-distribution span {
  height: 100%;
}

.status-map-distribution .status-done {
  background: #22a862;
}

.status-map-distribution .status-inProgress {
  background: #3b82f6;
}

.status-map-distribution .status-waiting {
  background: #94a3b8;
}

.status-map-distribution .status-onHold {
  background: #eab308;
}

.status-map-treemap {
  background: #e9eef5;
  border: 1px solid #dce3ed;
  border-radius: 0;
  height: 330px;
  margin: 0 8px 8px;
  position: relative;
  overflow: hidden;
}

.status-map-tile {
  color: #fff;
  min-width: 2px;
  min-height: 2px;
  font: inherit;
  text-align: center;
  isolation: isolate;
  cursor: pointer;
  appearance: none;
  border: 1px solid #ffffff9e;
  border-radius: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2px 4px;
  line-height: 1;
  transition: filter .12s, transform .12s;
  display: flex;
  position: absolute;
  overflow: hidden;
}

.status-map-tile:hover {
  z-index: 3;
  filter: brightness(1.04);
  transform: scale(.985);
}

.status-map-tile:focus-visible {
  z-index: 4;
  outline-offset: -4px;
  outline: 3px solid #0f172a;
}

.status-map-tile.status-done {
  background: #22a862;
}

.status-map-tile.status-inProgress {
  background: #3b82f6;
}

.status-map-tile.status-waiting {
  color: #334155;
  background: #cbd5e1;
}

.status-map-tile.status-onHold {
  color: #4d3b00;
  background: #f2c94c;
}

.status-map-tile.is-delayed {
  box-shadow: inset 0 0 0 2px #ef4444;
}

.status-map-tile strong {
  width: 100%;
  max-width: 100%;
  font-size: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
  overflow: hidden;
}

.status-map-tile.is-compact-label {
  padding-inline: 1px;
}

.status-map-tile.is-compact-label strong {
  text-overflow: clip;
  max-width: 100%;
}

.status-map-empty-treemap {
  height: 100%;
  color: var(--muted);
  place-items: center;
  margin: 0;
  font-size: 10px;
  display: grid;
}

.status-map-delayed-list {
  align-items: center;
  gap: 9px;
  padding: 0 18px 15px;
  display: flex;
}

.status-map-delayed-list > strong {
  color: #dc2626;
  flex: none;
  font-size: 9px;
}

.status-map-delayed-list > div {
  gap: 5px;
  min-width: 0;
  display: flex;
  overflow: hidden;
}

.status-map-delayed-list span, .status-map-delayed-list small {
  color: #991b1b;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #fff1f2;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 8px;
  font-weight: 700;
  overflow: hidden;
}

.status-map-empty {
  text-align: center;
  min-height: 260px;
  color: var(--muted);
  place-content: center;
  display: grid;
}

.status-map-empty strong {
  color: var(--text);
  font-size: 15px;
}

.status-map-empty p {
  margin: 7px 0 0;
  font-size: 10px;
}

.status-map-dialog-backdrop {
  z-index: 500;
  background: #0f172a57;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}

.status-map-dialog {
  background: var(--surface);
  width: min(430px, 100%);
  color: var(--text);
  border: 1px solid #ffffffb8;
  border-radius: 20px;
  padding: 19px;
  box-shadow: 0 26px 80px #0f172a3d;
}

.status-map-dialog > header {
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  display: flex;
}

.status-map-dialog > header > div {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.status-map-dialog > header small {
  color: var(--project-accent, #2563eb);
  font-size: 9px;
  font-weight: 850;
}

.status-map-dialog h3 {
  letter-spacing: -.03em;
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.status-map-dialog > header button {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  width: 32px;
  height: 32px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 10px;
  flex: 0 0 32px;
  place-items: center;
  padding: 0;
  font-size: 20px;
  display: grid;
}

.status-map-dialog-badges {
  flex-wrap: wrap;
  gap: 6px;
  margin: 15px 0;
  display: flex;
}

.status-map-dialog-badges span {
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 9px;
  font-weight: 850;
}

.status-map-dialog-badges .status-done, .status-map-dialog-badges .is-normal {
  color: #15803d;
  background: #dcfce7;
}

.status-map-dialog-badges .status-inProgress {
  color: #1d4ed8;
  background: #dbeafe;
}

.status-map-dialog-badges .status-waiting {
  color: #475569;
  background: #e2e8f0;
}

.status-map-dialog-badges .status-onHold {
  color: #854d0e;
  background: #fef3c7;
}

.status-map-dialog-badges .is-delayed {
  color: #b91c1c;
  background: #fee2e2;
}

.status-map-dialog dl {
  gap: 9px;
  margin: 0;
  display: grid;
}

.status-map-dialog dl > div {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  display: grid;
}

.status-map-dialog dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.status-map-dialog dd {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 12px;
  font-weight: 750;
}

.status-map-dialog-progress {
  background: #e2e8f0;
  border-radius: 999px;
  height: 8px;
  margin-top: 17px;
  overflow: hidden;
}

.status-map-dialog-progress span {
  border-radius: inherit;
  background: var(--project-accent, #2563eb);
  height: 100%;
  display: block;
}

.status-map-project-dialog-backdrop {
  z-index: 470;
  background: #0f172a6b;
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.status-map-project-dialog {
  border: 1px solid color-mix(in srgb, var(--project-accent) 34%, var(--line));
  background: var(--surface);
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  color: var(--text);
  border-radius: 16px;
  padding: 18px;
  overflow: auto;
  box-shadow: 0 28px 90px #0f172a47;
}

.status-map-project-dialog > header {
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 12px;
  display: flex;
}

.status-map-project-dialog > header > div {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.status-map-project-dialog > header small {
  color: var(--project-accent);
  font-size: 9px;
  font-weight: 850;
}

.status-map-project-dialog > header h2 {
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-size: 20px;
  overflow: hidden;
}

.status-map-project-dialog > header button {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  width: 32px;
  height: 32px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  flex: 0 0 32px;
  place-items: center;
  padding: 0;
  font-size: 20px;
  display: grid;
}

.status-map-project-dialog-counts {
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
  display: flex;
}

.status-map-project-dialog-counts span {
  color: #475569;
  background: #f1f5f9;
  border-radius: 5px;
  padding: 5px 7px;
  font-size: 8px;
  font-weight: 750;
}

.status-map-project-dialog-counts span b {
  margin-left: 3px;
}

.status-map-project-dialog-counts .status-inProgress {
  color: #1d4ed8;
  background: #dbeafe;
}

.status-map-project-dialog-counts .status-done {
  color: #15803d;
  background: #dcfce7;
}

.status-map-project-dialog-counts .status-onHold {
  color: #854d0e;
  background: #fef3c7;
}

.status-map-project-dialog-counts .is-delayed {
  color: #b91c1c;
  background: #fee2e2;
}

.status-map-project-dialog .status-map-distribution {
  margin: 0 0 8px;
}

.status-map-project-dialog .status-map-treemap {
  height: min(62vh, 540px);
  margin: 0;
}

[data-theme="dark"] .status-map-page {
  background: #0b1120;
}

[data-theme="dark"] .status-map-summary article {
  background: color-mix(in srgb, var(--summary-accent) 13%, #111827);
}

[data-theme="dark"] .status-map-summary article > span {
  background: color-mix(in srgb, var(--summary-accent) 24%, #111827);
}

[data-theme="dark"] .status-map-treemap {
  background: #172033;
  border-color: #334155;
}

[data-theme="dark"] .status-map-project-counts span, [data-theme="dark"] .status-map-project-dialog-counts span {
  background: #1e293b;
}

[data-theme="dark"] .status-map-dialog {
  border-color: #334155;
}

@media (max-width: 1080px) {
  .status-map-summary {
    grid-template-columns: repeat(4, minmax(104px, 1fr));
  }
}

@media (max-width: 720px) {
  .status-map-page-header {
    flex-direction: column;
    align-items: start;
    padding: 18px 14px 14px;
  }

  .status-map-page {
    padding: 14px 12px 36px;
  }

  .status-map-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-map-guide {
    flex-direction: column;
    align-items: start;
  }

  .status-map-legend {
    justify-content: start;
  }

  .status-map-treemap {
    height: 300px;
  }

  .status-map-project-dialog-backdrop {
    padding: 10px;
  }

  .status-map-project-dialog {
    border-radius: 10px;
    max-height: calc(100vh - 20px);
    padding: 12px;
  }

  .status-map-project-dialog .status-map-treemap {
    height: 62vh;
  }
}

/*# sourceMappingURL=src_app_globals_162hn9o.css.map*/