:root {
  --bg: #000;
  --card: #141416;
  --card2: #1c1c1e;
  --line: rgba(255, 255, 255, 0.085);
  --text: #f6f6f8;
  --muted: #9999a3;
  --dim: #74747e;
  --accent: #64d2ff;
  --green: #6bddaa;
  --orange: #ffbf69;
  --red: #ff8c86;
  --font:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button {
  background: none;
  border: 0;
}
a {
  color: var(--accent);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button,
input,
select {
  min-height: 44px;
}
button:hover {
  filter: brightness(1.1);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 12px;
  background: var(--accent);
  color: #000;
}
.skip-link:focus {
  top: 10px;
}
.muted {
  color: var(--muted);
  line-height: 1.65;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 650;
  color: var(--muted);
  margin: 0 0 14px;
}
.brand-dot {
  color: var(--accent);
}
.brand-symbol {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 11px;
  color: #00151e;
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
  padding-bottom: 6px;
}
.brand,
.login-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  letter-spacing: -1.6px;
  font-size: 30px;
}
.brand {
  padding: 0;
  margin: 0 0 47px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 13px;
  font-weight: 600;
  font-size: 13px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:active {
  transform: scale(0.98);
}
.button.primary {
  background: var(--accent);
  color: #001820;
}
.button.secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid var(--line);
}
.button.ghost {
  color: var(--accent);
  padding: 0 8px;
}
.button.small {
  min-height: 38px;
  border-radius: 11px;
  font-size: 12px;
}
.button.wide {
  width: 100%;
  justify-content: space-between;
}
.icon-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--muted);
  font-size: 26px;
}
.icon-button:hover {
  background: var(--card2);
  color: var(--text);
}
.icon {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.status-dot,
.tiny-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: var(--accent);
  flex-shrink: 0;
}
.status-dot {
  background: var(--green);
  box-shadow: 0 0 9px #6bddaa22;
}
.login-shell {
  min-height: 100svh;
  position: relative;
  max-width: 1200px;
  margin: auto;
  padding: 45px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-brand {
  position: absolute;
  top: 40px;
  left: 48px;
}
.login-orb {
  position: absolute;
  width: 560px;
  height: 560px;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
}
.login-content {
  position: relative;
  width: 380px;
  margin: 110px 0 100px 65px;
  z-index: 1;
}
.login-content h1 {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -2px;
  font-weight: 550;
  margin: 0 0 24px;
}
.login-content .muted {
  font-size: 14px;
  max-width: 345px;
  margin-bottom: 32px;
}
.login-content label {
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.login-content input {
  width: 100%;
  border: 1px solid #303034;
  border-radius: 12px;
  background: var(--card);
  padding: 13px 15px;
  color: white;
}
.login-foot {
  margin-top: 28px;
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--dim);
  font-size: 11px;
}
.login-credit {
  position: absolute;
  bottom: 28px;
  left: 48px;
  right: 48px;
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.16em;
}
.error-message {
  font-size: 12px;
  color: var(--red);
  line-height: 1.5;
  min-height: 20px;
}
.app-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  max-width: 1920px;
  margin: auto;
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 30px 18px 20px;
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  margin-left: 12px;
}
.sidebar-label {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--dim);
  margin: 0 14px 12px;
}
#main-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: auto;
}
.nav-button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 0 13px;
  border-radius: 10px;
  text-align: left;
  color: var(--muted);
  min-height: 42px;
  font-size: 12px;
  font-weight: 500;
  position: relative;
}
.nav-button:hover {
  background: #101012;
  color: var(--text);
}
.nav-button.active {
  background: #64d2ff13;
  color: var(--accent);
}
.nav-button.active::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}
.nav-button .count {
  margin-left: auto;
  font-size: 10px;
  padding-right: 6px;
  color: var(--dim);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.core-status {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 11px;
}
.core-status .status-dot {
  margin-top: 4px;
}
.core-status small {
  display: block;
  color: var(--dim);
  font-size: 9px;
  margin-top: 6px;
}
.owner-button {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 17px 4px 0;
  text-align: left;
}
.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #242427;
  color: #c1c1c9;
  border: 1px solid #37373c;
  border-radius: 50%;
  font-size: 12px;
}
.owner-button b {
  font-size: 11px;
  font-weight: 550;
}
.owner-button small {
  display: block;
  font-size: 9px;
  color: var(--dim);
  margin-top: 4px;
}
.owner-button > span:last-child {
  margin-left: auto;
  color: var(--dim);
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 83px;
  border-bottom: 1px solid var(--line);
  padding: 0 37px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.context-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.context-marker {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}
.context-wrap select {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 12px;
  padding-right: 8px;
  max-width: 220px;
}
.context-wrap select option {
  background: var(--card);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.environment-pill {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 6px 8px;
  border-radius: 5px;
}
.version-strip {
  padding: 12px 38px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--dim);
  font-size: 10px;
  border-bottom: 1px solid #ffffff05;
}
.version-strip .tiny-dot {
  width: 4px;
  height: 4px;
  background: var(--dim);
}
main {
  padding: 36px 38px 60px;
  max-width: 1480px;
  margin: auto;
  min-height: calc(100svh - 180px);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: 31px;
  letter-spacing: -1.05px;
  font-weight: 550;
  margin: 0 0 9px;
}
.page-heading p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.page-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 0.12em;
  margin-bottom: 11px;
}
.date-label {
  text-align: right;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  white-space: nowrap;
}
.date-label strong {
  color: var(--text);
  font-weight: 500;
  display: block;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr);
  gap: 22px;
}
.core-stage {
  background:
    radial-gradient(ellipse at 50% 45%, #64d2ff07, transparent 65%), #09090b;
  border: 1px solid var(--line);
  border-radius: 22px;
  position: relative;
  min-height: 415px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stage-heading {
  position: absolute;
  top: 25px;
  left: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stage-heading span {
  font-size: 10px;
  color: var(--muted);
}
.stage-heading .stage-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
}
.core-orb {
  width: 275px;
  height: 275px;
  margin: -7px 0 -15px;
  filter: drop-shadow(0 0 25px #64d2ff0a);
}
.orb-title {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin: 0 0 9px;
}
.orb-subtitle {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin: 0 25px 22px;
  line-height: 1.6;
}
.stage-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 20px;
}
.pill {
  border: 1px solid var(--line);
  background: #ffffff04;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pill.cyan {
  background: #64d2ff0b;
  color: var(--accent);
  border-color: #64d2ff20;
}
.pill.orange {
  color: var(--orange);
  background: #ffbf690a;
  border-color: #ffbf6920;
}
.pill.green {
  color: var(--green);
  background: #6bddaa09;
  border-color: #6bddaa20;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px;
  text-align: left;
  min-height: 107px;
  transition: background 0.2s;
}
.metric:hover {
  background: #1a1a1e;
}
.metric-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 12px;
}
.metric-head .icon {
  width: 15px;
  height: 15px;
}
.metric-number {
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 550;
}
.metric-note {
  font-size: 9px;
  margin-left: 9px;
  color: var(--dim);
  letter-spacing: 0;
  font-weight: 400;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.section-title h2 {
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.25px;
  margin: 0;
}
.section-title button {
  font-size: 10px;
  color: var(--muted);
  min-height: 30px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.panel + .panel {
  margin-top: 18px;
}
.section-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section-stack .panel {
  margin: 0;
}
.list-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  text-align: left;
  min-width: 0;
}
.list-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.list-row:first-child {
  padding-top: 0;
}
.list-row .row-content {
  min-width: 0;
  flex: 1;
}
.row-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  display: block;
  overflow-wrap: anywhere;
}
.row-meta {
  font-size: 10px;
  line-height: 1.6;
  color: var(--dim);
  margin-top: 5px;
}
.row-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #ffffff05;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--accent);
  flex-shrink: 0;
}
.row-icon .icon {
  width: 15px;
  height: 15px;
}
.row-arrow {
  color: var(--dim);
  font-size: 14px;
  align-self: center;
}
.check-button {
  margin-top: 1px;
  border: 1px solid #44444a;
  border-radius: 50%;
  min-height: 23px;
  height: 23px;
  width: 23px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--accent);
}
.check-button.done {
  border-color: #64d2ff40;
  background: #64d2ff15;
}
.check-button:hover {
  border-color: var(--accent);
}
.task-done .row-title {
  text-decoration: line-through;
  color: var(--dim);
}
.context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.context-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 17px;
  text-align: left;
  background: #0b0b0d;
  min-height: 83px;
}
.context-tile .context-label {
  font-size: 11px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.context-tile small {
  color: var(--dim);
  font-size: 9px;
  margin-top: 10px;
  display: block;
}
.context-tile.active {
  border-color: #64d2ff55;
  background: #64d2ff07;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.full-span {
  grid-column: 1/-1;
}
.info-banner {
  background: #64d2ff07;
  border: 1px solid #64d2ff19;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 22px;
}
.info-banner b {
  color: var(--accent);
  font-weight: 500;
}
.empty-state {
  padding: 35px 16px;
  text-align: center;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.7;
}
.empty-state .icon {
  width: 25px;
  height: 25px;
  margin-bottom: 9px;
}
.empty-state b {
  display: block;
  color: var(--muted);
  font-weight: 500;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 16px;
  align-items: start;
}
.kanban-column {
  padding: 16px 12px;
  background: #0b0b0d;
  border-radius: 16px;
  border: 1px solid var(--line);
  min-height: 330px;
}
.kanban-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  margin: 0 4px 16px;
  font-weight: 500;
}
.kanban-heading span:last-child {
  margin-left: auto;
  color: var(--dim);
  font-size: 10px;
}
.kanban-dot {
  width: 5px;
  height: 5px;
  background: #8a8a96;
  border-radius: 50%;
}
.kanban-column:nth-child(2) .kanban-dot {
  background: var(--accent);
}
.kanban-column:nth-child(3) .kanban-dot {
  background: var(--green);
}
.task-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.task-card h3 {
  font-size: 12px;
  line-height: 1.55;
  font-weight: 500;
  margin: 8px 0 11px;
  overflow-wrap: anywhere;
}
.task-card .task-parent {
  font-size: 9px;
  color: var(--accent);
  line-height: 1.5;
}
.task-card .task-bottom {
  margin-top: 13px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.task-card .task-bottom small {
  font-size: 9px;
  color: var(--muted);
}
.task-status-select {
  background: var(--card2);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 9px;
  max-width: 105px;
  min-height: 32px;
  padding: 0 5px;
}
.task-detail-button {
  padding: 0;
  min-height: 0;
  text-align: left;
  display: block;
  width: 100%;
}
.project-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 17px;
  padding: 21px;
  min-width: 0;
}
.project-card h2 {
  font-size: 17px;
  font-weight: 500;
  margin: 15px 0 8px;
  letter-spacing: -0.35px;
}
.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-top .row-icon {
  color: var(--accent);
  width: 35px;
  height: 35px;
}
.progress-track {
  height: 3px;
  border-radius: 3px;
  background: #ffffff0a;
  overflow: hidden;
  margin: 18px 0 9px;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.progress-caption {
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font-size: 9px;
  margin-bottom: 15px;
}
.hierarchy {
  margin-top: 17px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.hierarchy details {
  margin-bottom: 10px;
}
.hierarchy summary {
  cursor: pointer;
  font-size: 11px;
  line-height: 1.5;
  padding: 7px 0;
  min-height: 32px;
  color: var(--muted);
}
.hierarchy .process-label {
  font-size: 10px;
  color: var(--dim);
  margin: 8px 0 6px 13px;
}
.hierarchy .list-row {
  padding: 10px 0 10px 12px;
}
.hierarchy .row-title {
  font-size: 11px;
}
.hierarchy .check-button {
  height: 20px;
  width: 20px;
  min-height: 20px;
}
.hierarchy .row-meta {
  font-size: 9px;
}
.note-card {
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 180px;
}
.note-card h2 {
  font-size: 15px;
  font-weight: 500;
  margin: 12px 0;
}
.note-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
}
.note-card small {
  font-size: 9px;
  color: var(--dim);
  margin-top: auto;
  padding-top: 22px;
}
.calendar-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 22px;
}
.calendar-month {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  height: fit-content;
}
.calendar-month h2 {
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 22px;
}
.calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}
.calendar-dates span {
  font-size: 10px;
  min-height: 25px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.calendar-dates .weekday {
  font-size: 8px;
  color: var(--dim);
  margin-bottom: 8px;
}
.calendar-dates .selected {
  background: var(--accent);
  border-radius: 7px;
  color: #001820;
}
.agenda-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.agenda-item:last-child {
  border: 0;
}
.agenda-time {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.8;
}
.agenda-time small {
  display: block;
  color: var(--dim);
  font-size: 10px;
}
.agenda-content {
  border-left: 2px solid #64d2ff70;
  padding: 4px 0 4px 14px;
}
.agenda-content h3 {
  font-weight: 500;
  font-size: 13px;
  margin: 0 0 7px;
}
.agenda-content p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.mail-list {
  padding: 0 22px;
}
.mail-list .list-row {
  padding: 20px 0;
}
.mail-list .row-title {
  font-size: 13px;
}
.mail-preview {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
  margin: 7px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mail-sender {
  color: var(--dim);
  font-size: 10px;
  margin-bottom: 4px;
}
.attachment-pill {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  background: #ffffff05;
  color: var(--muted);
  font-size: 9px;
  border: 1px solid var(--line);
  padding: 5px 7px;
  border-radius: 6px;
  margin: 8px 5px 0 0;
}
.attachment-pill .icon {
  width: 12px;
  height: 12px;
}
.finance-amount {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 20px 0 10px;
}
.connection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.connection-row:last-child {
  border: 0;
}
.connection-row strong {
  font-weight: 500;
  font-size: 12px;
}
.connection-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.workspace-footer {
  padding: 20px 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--dim);
  border-top: 1px solid var(--line);
}
.workspace-footer button {
  font-size: 10px;
  color: var(--muted);
  min-height: 30px;
}
.chat-fab {
  position: fixed;
  bottom: 26px;
  right: 30px;
  height: 53px;
  padding: 0 15px 0 10px;
  border-radius: 18px;
  border: 1px solid #64d2ff35;
  background: #161d21;
  box-shadow: 0 9px 50px #000;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 6;
  font-size: 11px;
}
.mini-core {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-image: radial-gradient(var(--accent) 1px, transparent 1.2px);
  background-size: 5px 5px;
  box-shadow:
    inset 0 0 8px #141416,
    0 0 12px #64d2ff13;
}
.shortcut {
  color: var(--dim);
  margin-left: 12px;
}
.chat-panel {
  position: fixed;
  right: 18px;
  bottom: 20px;
  width: 380px;
  height: min(680px, calc(100svh - 40px));
  background: #111114;
  border: 1px solid #37373f;
  border-radius: 22px;
  box-shadow: 0 25px 100px #000a;
  z-index: 20;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-header {
  height: 76px;
  flex-shrink: 0;
  padding: 17px 15px 17px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.chat-header > div {
  display: grid;
  grid-template-columns: 6px 1fr;
  gap: 4px 9px;
  align-items: center;
}
.chat-header b {
  font-weight: 550;
  font-size: 14px;
}
.chat-header small {
  grid-column: 2;
  font-size: 9px;
  color: var(--muted);
}
.chat-disclaimer {
  padding: 11px 20px;
  background: #64d2ff07;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}
.chat-messages {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 23px 19px;
}
.chat-message {
  max-width: 95%;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-message.user {
  align-self: flex-end;
  background: var(--card2);
  padding: 11px 14px;
  border-radius: 14px 14px 3px 14px;
}
.chat-message.assistant {
  color: #c9c9d2;
}
.chat-message .message-label {
  font-size: 9px;
  color: var(--accent);
  margin-bottom: 7px;
}
.chat-message .citation {
  display: block;
  padding: 7px 9px;
  background: #64d2ff08;
  border: 1px solid #64d2ff19;
  border-radius: 8px;
  margin-top: 9px;
  text-align: left;
  color: var(--accent);
  font-size: 10px;
  min-height: 34px;
}
.chat-suggestion {
  font-size: 10px;
  text-align: left;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  line-height: 1.5;
  color: var(--muted);
}
.chat-compose {
  margin: 0 14px 15px;
  background: var(--card2);
  border: 1px solid #34343a;
  border-radius: 14px;
  padding: 12px;
}
.chat-compose textarea {
  width: 100%;
  resize: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 12px;
  padding: 0;
  line-height: 1.6;
  min-height: 44px;
}
.chat-compose > div {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: 4px;
}
.chat-compose > div > span {
  font-size: 8px;
  color: var(--dim);
  flex: 1;
}
.chat-compose .icon-button {
  width: 30px;
  min-width: 30px;
  min-height: 36px;
  height: 36px;
}
.send-button {
  width: 35px;
  min-height: 35px;
  border-radius: 10px;
  background: var(--accent);
  color: #001820;
  font-size: 22px;
}
.mobile-nav,
.mobile-brand {
  display: none;
}
dialog {
  width: min(570px, calc(100vw - 30px));
  max-height: calc(100svh - 40px);
  background: #141416;
  color: var(--text);
  border: 1px solid #34343b;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 150px #0009;
}
dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(8px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.dialog-header h2 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin: 0;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-field label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: #09090c;
  border: 1px solid #333339;
  border-radius: 10px;
  color: var(--text);
  padding: 11px 12px;
  font-size: 12px;
}
.form-field textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
.detail-body {
  font-size: 13px;
  color: #b9b9c4;
  white-space: pre-wrap;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}
.detail-label {
  font-size: 10px;
  color: var(--dim);
  margin: 18px 0 8px;
}
.detail-title {
  font-size: 13px;
  font-weight: 500;
  margin: 10px 0;
}
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 28px;
  max-width: calc(100vw - 32px);
  padding: 14px 20px;
  border: 1px solid #46464e;
  border-radius: 12px;
  background: #222228;
  box-shadow: 0 10px 50px #0008;
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  z-index: 100;
}
.toast.error {
  border-color: #ff8c8655;
}
.source-state {
  font-size: 9px;
  color: var(--muted);
}
.loading {
  display: grid;
  place-items: center;
  min-height: 55svh;
  color: var(--muted);
  font-size: 12px;
}
.loading::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 1px solid #64d2ff33;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
main > .page-heading,
main > .overview-grid,
main > .content-grid,
main > .kanban {
  animation: enter 0.35s ease-out;
}
.text-link {
  color: var(--accent);
  font-size: 11px;
  min-height: 32px;
  text-align: left;
  padding: 5px 0;
}
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.menu-grid .nav-button {
  background: #ffffff04;
  min-height: 48px;
}
.readonly-note {
  font-size: 10px;
  color: var(--dim);
  line-height: 1.7;
  margin-top: 12px;
}
.service-runs {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.run-row {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 11px;
}
.run-row small {
  display: block;
  color: var(--dim);
  font-size: 9px;
  margin-top: 5px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 19px 0;
}
.source-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  gap: 10px;
  min-height: 40px;
  color: var(--accent);
  font-size: 11px;
}
.list-row-clickable {
  cursor: pointer;
}
.list-row-clickable:hover .row-title {
  color: var(--accent);
}
.subheading {
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
  margin: 26px 0 12px;
}
.not-available {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.75;
}
.badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.page-loading-error {
  max-width: 500px;
  margin: 50px auto;
  text-align: center;
}
.page-loading-error p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
@media (min-width: 1500px) {
  .overview-grid {
    grid-template-columns: 1.3fr 1fr;
  }
  .core-stage {
    min-height: 440px;
  }
  .core-orb {
    width: 300px;
    height: 300px;
  }
}
@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 186px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 12px;
  }
  .sidebar .brand {
    font-size: 27px;
  }
  .topbar {
    padding-inline: 26px;
  }
  main {
    padding: 29px 26px 70px;
  }
  .version-strip {
    padding-inline: 26px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 1fr);
    gap: 16px;
  }
  .panel {
    padding: 18px;
  }
  .core-stage {
    min-height: 415px;
  }
  .environment-pill {
    display: none;
  }
  .kanban {
    gap: 10px;
    grid-template-columns: repeat(3, minmax(170px, 1fr));
  }
  .task-card {
    padding: 12px;
  }
  .workspace-footer {
    padding-inline: 26px;
  }
}
@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 11px;
    align-items: center;
  }
  .sidebar .brand {
    margin: 0 0 40px;
  }
  .sidebar .brand > span:last-child,
  .sidebar-label,
  .nav-button > span,
  .sidebar .owner-button > span:not(.avatar),
  .core-status {
    display: none;
  }
  .sidebar nav {
    width: 100%;
    gap: 8px !important;
  }
  .sidebar .nav-button {
    justify-content: center;
    padding: 0;
    height: 44px;
  }
  .nav-button.active::after {
    right: 5px;
    width: 3px;
    height: 3px;
  }
  .owner-button {
    justify-content: center;
  }
  .sidebar-bottom {
    width: 100%;
  }
  .overview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .core-stage {
    min-height: 395px;
  }
  .core-orb {
    width: 245px;
    height: 245px;
  }
  .stage-heading {
    left: 18px;
    right: 18px;
  }
  .stage-heading > span:first-child {
    font-size: 9px;
  }
  .stage-heading .stage-live {
    font-size: 8px;
  }
  .context-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric {
    padding: 14px;
  }
  .metric-number {
    font-size: 24px;
  }
  .metric-note {
    display: block;
    margin: 6px 0 0;
  }
  .chat-fab {
    bottom: 20px;
    right: 20px;
  }
  .calendar-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .content-grid {
    gap: 14px;
  }
  .login-orb {
    right: -100px;
    opacity: 0.5;
  }
  .login-content {
    margin-left: 5px;
  }
  .login-shell {
    overflow: hidden;
  }
}
@media (max-width: 720px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .topbar {
    height: 70px;
    padding: 0 20px;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 8;
    background: #000e;
    backdrop-filter: blur(14px);
  }
  .mobile-brand {
    display: block;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -1.2px;
  }
  .context-wrap {
    margin-left: auto;
  }
  .context-wrap select {
    font-size: 10px;
    max-width: 125px;
  }
  .context-marker {
    width: 5px;
    height: 5px;
  }
  .topbar-right {
    gap: 0;
  }
  .topbar-right .button {
    display: none;
  }
  .topbar .icon-button {
    min-width: 32px;
    width: 32px;
  }
  .version-strip {
    padding: 10px 20px;
    font-size: 9px;
    line-height: 1.55;
    align-items: flex-start;
  }
  .version-strip .tiny-dot {
    margin-top: 5px;
  }
  main {
    padding: 27px 20px 115px;
  }
  .page-heading {
    margin-bottom: 24px;
    align-items: center;
  }
  .page-heading h1 {
    font-size: 27px;
    letter-spacing: -0.9px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    margin-bottom: 8px;
  }
  .date-label {
    font-size: 9px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .core-stage {
    min-height: 350px;
    border-radius: 21px;
  }
  .core-orb {
    width: 240px;
    height: 240px;
    margin-top: 8px;
  }
  .orb-title {
    font-size: 17px;
  }
  .orb-subtitle {
    font-size: 10px;
    margin-bottom: 16px;
  }
  .stage-heading {
    top: 19px;
  }
  .stage-tags {
    padding-bottom: 21px;
  }
  .metrics {
    gap: 10px;
    margin-top: 12px;
  }
  .metric {
    padding: 16px;
    min-height: 97px;
  }
  .metric-head {
    margin-bottom: 10px;
  }
  .metric-number {
    font-size: 25px;
  }
  .metric-note {
    display: inline;
    margin-left: 8px;
  }
  .section-stack {
    margin-top: 10px;
  }
  .panel {
    border-radius: 16px;
    padding: 20px;
  }
  .context-grid {
    margin-top: 18px;
    gap: 10px;
  }
  .context-tile {
    padding: 14px;
    min-height: 76px;
  }
  .context-tile .context-label {
    font-size: 10px;
  }
  .context-tile small {
    font-size: 9px;
  }
  .workspace-footer {
    display: none;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #101012f5;
    border-top: 1px solid #ffffff0f;
    backdrop-filter: blur(18px);
    z-index: 10;
    justify-content: space-around;
  }
  .mobile-nav button {
    display: flex;
    flex: 1;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    font-size: 8px;
    color: var(--dim);
    border-radius: 9px;
  }
  .mobile-nav button.active {
    color: var(--accent);
  }
  .mobile-nav .icon {
    width: 19px;
    height: 19px;
  }
  .chat-fab {
    bottom: calc(83px + env(safe-area-inset-bottom));
    right: 17px;
    height: 46px;
    border-radius: 15px;
    padding-right: 12px;
    gap: 8px;
    font-size: 10px;
  }
  .chat-fab .mini-core {
    width: 26px;
    height: 26px;
  }
  .chat-fab .shortcut {
    margin-left: 2px;
  }
  .chat-panel {
    width: calc(100% - 20px);
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    height: calc(100svh - 20px - env(safe-area-inset-bottom));
    z-index: 30;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .kanban {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    margin-inline: -20px;
    padding-inline: 20px;
    gap: 12px;
  }
  .kanban-column {
    min-width: 80%;
    scroll-snap-align: center;
    min-height: 400px;
  }
  .kanban-column:last-child {
    margin-right: 20px;
  }
  .task-card {
    padding: 16px;
  }
  .task-card h3 {
    font-size: 13px;
  }
  .task-status-select {
    min-height: 39px;
    font-size: 11px;
  }
  .task-bottom {
    margin-top: 15px;
  }
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .calendar-month {
    display: none;
  }
  .agenda-item {
    grid-template-columns: 56px 1fr;
  }
  .project-card h2 {
    font-size: 18px;
  }
  .panel.mail-list {
    padding: 0 18px;
  }
  .row-title {
    font-size: 12px;
  }
  .page-heading .button {
    padding: 0 13px;
    min-height: 39px;
    font-size: 11px;
  }
  .toast {
    bottom: calc(83px + env(safe-area-inset-bottom));
    width: max-content;
  }
  .login-shell {
    padding: 24px;
    justify-content: flex-start;
    min-height: 100svh;
  }
  .login-brand {
    top: 25px;
    left: 26px;
    font-size: 26px;
  }
  .login-brand .brand-symbol {
    width: 29px;
    height: 29px;
    font-size: 26px;
    border-radius: 9px;
  }
  .login-orb {
    position: relative;
    inset: auto;
    transform: none;
    align-self: center;
    width: 235px;
    height: 235px;
    margin-top: 55px;
    opacity: 1;
  }
  .login-content {
    width: 100%;
    max-width: 380px;
    margin: -5px auto 95px;
  }
  .login-content h1 {
    font-size: 36px;
    letter-spacing: -1.5px;
  }
  .login-content .eyebrow {
    font-size: 8px;
  }
  .login-content .muted {
    font-size: 12px;
    margin-bottom: 25px;
  }
  .login-foot {
    font-size: 10px;
    margin-top: 23px;
  }
  .login-credit {
    left: 26px;
    right: 26px;
    bottom: 22px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .dialog-header h2 {
    font-size: 18px;
  }
  dialog {
    padding: 21px;
  }
  .note-card {
    min-height: 160px;
  }
  .context-grid .context-tile:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

progress.progress-track {
  display: block;
  width: 100%;
  appearance: none;
  border: 0;
  background: #ffffff0a;
  height: 3px;
}
progress.progress-track::-webkit-progress-bar {
  background: #ffffff0a;
  border-radius: 3px;
}
progress.progress-track::-webkit-progress-value {
  background: var(--accent);
  border-radius: 3px;
}
progress.progress-track::-moz-progress-bar {
  background: var(--accent);
  border-radius: 3px;
}
#chat-context {
  width: 100%;
  background: #141416;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  min-height: 35px;
  font-size: 10px;
  margin-bottom: 13px;
}
