@font-face {
  font-family: "Project Numerals";
  src: url("/project-numerals.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0030-0039;
}

/* Shared optical surfaces and controls. */
:root {
  color-scheme: light;
  --ink: #142440;
  --muted: #536782;
  --soft: #f3f7ff;
  --line: #d8e5f7;
  --fine: #e8eff9;
  --blue: #2864ce;
  --blue-ink: #1d4eaa;
  --blue-wash: #e8f2ff;
  --login-spectrum: url("/login-spectrum-clear.png");
  --surface: #fbfdff;
  --glass-button: linear-gradient(113deg, #eff7ff, #daebff 56%, #e6e2ff);
  --glass-hover: linear-gradient(113deg, #e3f2ff, #cce2ff 56%, #dbd6ff);
  --glass-line: #96b6ea;
  --topbar-height: 68px;
  --cut-panel: polygon(13px 0, calc(100% - 13px) 0, 100% 13px, 100% calc(100% - 13px), calc(100% - 13px) 100%, 13px 100%, 0 calc(100% - 13px), 0 13px);
  --radius: 7px;
  --sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
  --numerals: "Project Numerals", var(--sans);
  --elevation: 0 5px 24px rgba(18, 40, 74, .12);
  font: 16px/1.55 var(--sans);
  color: var(--ink);
  background: #eef3fa;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: .9375rem; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { background: none; border: 0; }
a { color: var(--blue-ink); text-underline-offset: .2em; }
::selection { background: #d5e4ff; color: #123266; }
input, textarea { caret-color: var(--blue); }
:where(button, a, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid #80a6ff; outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: #69788a; }
[hidden] { display: none !important; }
svg { flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.35; }
button, [role="button"] { touch-action: manipulation; }
.sr-only, .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

#app:has(> .workspace) {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 68% 6%,#e0eaff,#edf4ff 52%,#e9f0fa);
}
#app:has(> .workspace)::before {
  content: ""; position: absolute; z-index: -1; top: 0; right: 23%;
  width: min(66%,1080px); height: 198px; pointer-events: none;
  background: var(--login-spectrum) center 95% / 113% auto no-repeat;
  mask-image: linear-gradient(90deg,transparent,#000 23%,#000 80%,transparent),
    linear-gradient(#000 23%,#000c 64%,transparent);
  mask-composite: intersect;
}
.topbar {
  height: var(--topbar-height); display: flex; align-items: center; gap: clamp(12px,1.5vw,24px); padding: 0 clamp(19px,2.1vw,36px);
  border-bottom: 1px solid #d4e3f9; background: linear-gradient(105deg,#fbfdffed,#eef5ff99 58%,#f7f7ffad);
  position: relative; z-index: 15; box-shadow: 0 3px 16px #28446b0a;
}
.topnav { display: flex; align-items: center; gap: clamp(9px, 1.4vw, 23px); }
.nav-tab {
  position: relative; min-height: 37px; padding: 5px 11px; display: inline-flex; align-items: center; gap: 6px;
  border-radius: 5px; font-size: .94rem; white-space: nowrap; font-weight: 580; color: #20242c;
}
.nav-tab:hover { background: #fff9; color: #11151d; }
.nav-tab.active { color: #11151d; font-weight: 690; }
.nav-tab.active::after {
  content: ""; position: absolute; left: 11px; bottom: 1px; width: 26px; height: 2px;
  background: linear-gradient(90deg,currentColor 0 72%,transparent 72% 84%,currentColor 84%);
  pointer-events: none;
}
.task-search {
  display: flex; flex: 0 1 min(30vw,390px); align-items: stretch; min-width: 0;
  margin-left: auto; min-height: 37px; border: 1px solid #c5d7f0; border-radius: 8px 4px 8px 4px;
  background: linear-gradient(108deg,#fafdffeb,#f0f5fff5); box-shadow: inset 0 1px 0 #fff;
}
.task-search:focus-within { border-color: #85a7df; box-shadow: 0 0 0 2px #dceaff; }
.task-search-form { display: flex; flex: 1; align-items: center; min-width: 0; }
.task-search-form input {
  width: 100%; min-width: 0; padding: 6px 5px 6px 0; border: 0; border-radius: 0;
  outline: none; background: transparent; color: var(--ink); font-size: .875rem;
}
.task-search-form input::-webkit-search-cancel-button { appearance: none; }
.task-search-submit, .task-search-clear, .task-search-category {
  display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 5px;
  color: #3e5c87; padding: 5px 8px; border-radius: 5px; white-space: nowrap;
}
.task-search-submit { padding-inline: 10px 7px; color: var(--blue-ink); }
.task-search-category {
  border-left: 1px solid #d5e2f8; border-radius: 0 3px 7px 0; font-size: .8125rem;
}
.task-search :is(.task-search-submit,.task-search-clear,.task-search-category):hover { background: var(--blue-wash); color: var(--blue-ink); }
.task-search-category.is-active { color: var(--blue-ink); background: #eaf2ff; }
.task-search-category[aria-expanded="true"] > svg { transform: rotate(180deg); }
.account-wrap { position: relative; display: flex; gap: 10px; align-items: center; flex: none; }
#connection-warning { margin-left: auto; color: #875714; font-size: .8125rem; }
#connection-warning:not([hidden]) + .task-search { margin-left: 0; }
.account-wrap > button { display: inline-flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: var(--radius); font-weight: 560; white-space: nowrap; }
.account-wrap > button:hover { background: var(--soft); }
.badge-count { font: 400 .75rem/1.5 var(--numerals); background: #f0f3f8; color: #56647a; min-width: 19px; text-align: center; padding: 0 5px; border-radius: 10px; }
.review-count { min-width: 20px; padding: 0 5px; border-radius: 5px; background: #e8edf4; color: #20242c; font: 400 .75rem/1.6 var(--numerals); text-align: center; }
.account-person { display: grid; text-align: left; line-height: 1.3; gap: 2px; }
.account-person strong { font-size: .875rem; font-weight: 620; }
.account-person small { color: var(--muted); font-size: .72rem; font-weight: 470; }

.workspace {
  display: grid; grid-template-columns: minmax(0,1fr); height: calc(100vh - var(--topbar-height)); height: calc(100dvh - var(--topbar-height));
  gap: 12px; padding: 12px clamp(10px,1.15vw,20px) 14px; overflow: hidden;
}
.workspace.with-inspector { grid-template-columns: minmax(0,1fr) clamp(330px,31%,514px); }
.main-pane, .inspector {
  min-width: 0; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #c6d3e5 transparent;
  clip-path: var(--cut-panel); border: 1px solid #cadcf4;
}
.inspector {
  background: linear-gradient(150deg,#f5f9ff,#fcfdff 39%,#f1f5ff);
  border-right-color: #d3cdf2;
}
.main-pane {
  --pane-pad: clamp(22px,2.1vw,38px);
  container: workspace-main / inline-size;
  display: flex;
  flex-direction: column;
  scrollbar-gutter: stable;
  padding: 0 var(--pane-pad) 14px;
  background: linear-gradient(180deg,#f6f9ff57,#f8fbff70 103px,#f9fbfff2 207px,#f2f6ffef);
}
.project-header {
  flex: none; position: relative; isolation: isolate; border-bottom: 1px solid var(--line); padding: 21px 0 20px;
}
.project-header:has(.menu) { z-index: 3; }
.tasks-section::after {
  content: ""; display: block; pointer-events: none;
  background-repeat: no-repeat;
}
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .8125rem; margin-bottom: 12px; }
.breadcrumb button { font-size: inherit; color: inherit; padding: 0; }
.breadcrumb button:hover { color: var(--blue); }
.titlebar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.project-title { padding: 0; display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: clamp(1.35rem,1.8vw,1.8rem); line-height: 1.32; letter-spacing: -.035em; font-weight: 690; overflow-wrap: anywhere; }
.project-title svg { color: var(--muted); }
.project-title:hover { color: var(--blue-ink); }
.lead-meta { color: var(--muted); font-size: .8125rem; display: inline-flex; align-items: center; min-width: 0; gap: 8px; border-left: 1px solid var(--line); padding-left: 14px; white-space: nowrap; }
.lead-meta .person-link { padding: 3px 5px; gap: 6px; }
.lead-meta .avatar { width: 23px; height: 23px; }
.lead-change { color: var(--blue-ink); padding: 4px 7px; border-radius: 5px; }
.lead-change:hover { background: var(--blue-wash); }
.header-actions { display: inline-flex; gap: 8px; margin-left: auto; align-items: center; }
.btn, .icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; border-radius: var(--radius); border: 1px solid #d5dce6; padding: 6px 12px; font-size: .84375rem; line-height: 1.35; font-weight: 550; white-space: nowrap; background: white; color: #36445a; transition: background .14s, border-color .14s, color .14s; }
.btn:hover, .icon-btn:hover { border-color: #afbdd1; background: #f7f9fc; }
.btn-primary { background: var(--glass-button); border-color: var(--glass-line); color: var(--blue-ink); box-shadow: inset 0 1px 0 #fff; border-radius: 8px 3px 8px 3px; }
.btn-primary:hover { background: var(--glass-hover); border-color: #7799cb; }
.icon-btn { border-color: transparent; width: 34px; height: 34px; padding: 0; }
.btn svg, .icon-btn svg { width: 16px; height: 16px; }
.menu { position: absolute; z-index: 40; min-width: 182px; max-width: min(370px,95vw); padding: 5px; background: linear-gradient(#fff,#f5f9ff); border: 1px solid #b6ccec; border-radius: 10px 5px 10px 5px; box-shadow: 0 10px 28px #213c7029; max-height: min(430px,70vh); overflow: auto; }
.menu-item { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; border-radius: 5px; text-align: left; padding: 8px 10px; font-size: .875rem; line-height: 1.4; }
.menu-item:hover, .menu-item:focus-visible { background: var(--soft); }
.menu-item.selected, .menu-item[aria-checked="true"] { color: var(--blue-ink); background: var(--blue-wash); }
.menu hr { border: 0; border-top: 1px solid var(--fine); margin: 4px 0; }

.workspace-summary {
  flex: none; display: grid; grid-template-columns: minmax(268px,.83fr) minmax(0,1.17fr);
  gap: clamp(17px,2vw,30px); border-bottom: 1px solid var(--line); padding: 20px 0 23px;
}
.workspace-summary:has(> :only-child) { grid-template-columns: minmax(0,1fr); }
.workspace-summary h2, .section-head h2 { font-size: 1.075rem; font-weight: 670; letter-spacing: -.015em; }
.overview-title-art {
  display: inline-block; padding-inline: .04em .075em; color: var(--ink);
  font-weight: 800; line-height: 1.32; letter-spacing: .036em; white-space: nowrap;
  transform: skewX(-6deg); transform-origin: left center;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .overview-title-art {
    background:
      linear-gradient(138deg,transparent 14%,#9dbfe8 14.5%,#5277aa 25%,transparent 26%) left top / 1.036em 100% repeat-x,
      linear-gradient(136deg,transparent 77%,#6566a9 77.5%,#9b8ed1 88%,transparent 90%) left top / 1.036em 100% repeat-x,
      linear-gradient(#264872,#112744 73%,#28456c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
@media (forced-colors: active) {
  .overview-title-art { color: CanvasText; background: none; }
}
.metrics-block { min-width: 0; }
.project-metrics h2 { display: flex; align-items: center; gap: 9px; min-height: 25px; }
.project-metrics h2::after {
  content: ""; flex: 0 1 62px; height: 1px;
  background: linear-gradient(90deg,#8ba9ed,#bbc7f4 48%,transparent);
}
.project-heading-art {
  position: relative; display: inline-block; flex: none; overflow: hidden;
  height: 23px; aspect-ratio: 2022 / 413;
}
.project-heading-art[hidden] { display: none; }
.project-heading-art > img {
  position: absolute; left: -3.71%; top: -38.74%; width: 107.42%; height: auto; max-width: none;
}
.metric { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; text-align: left; padding: 0; min-width: 0; container-type: inline-size; }
.metric-label { order: -1; color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.metric-value {
  font-family: var(--numerals);
  font-weight: 400; line-height: .97; letter-spacing: 0; font-synthesis: none;
  font-size: clamp(2.35rem,3.25vw,3.02rem);
  font-size: min(clamp(2.35rem,3.25vw,3.02rem),calc(156cqi / var(--digits)));
  color: #193053;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .metric-value, .title-count strong {
    background:
      linear-gradient(136deg,transparent 16%,#a3c7f3 16.5%,#6285b8 24%,#2f517e 28%,transparent 29%) left top / 1ch 100% repeat-x,
      linear-gradient(136deg,transparent 74%,#545f9e 74.5%,#9a87d9 85%,transparent 88%) left top / 1ch 100% repeat-x,
      linear-gradient(#24446f,#132d50 70%,#28466f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
@media (forced-colors: active) {
  .metric-value, .title-count strong { color: CanvasText; background: none; }
}
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; margin: 12px 0 0; }
.metrics .metric { padding: 8px 10px; border-radius: 6px; }
.metrics .metric:hover, .metric[aria-pressed="true"], .metric.needs-action { background: #eaf3ff; }
.metric[aria-pressed="true"] { box-shadow: inset 0 0 0 1px #adbfdf; }
.metric-rule { width: 24px; height: 2px; border-radius: 2px; background: #bfd3ef; margin-top: 2px; }
.metric.active .metric-rule, .metric.needs-action .metric-rule { background: linear-gradient(90deg,#359ddf,#6974e9); }
.menu-anchor { position: relative; }
.title-count { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.title-count strong { font: 400 1.25rem/1 var(--numerals); }
.task-open { display: inline-flex; align-items: center; text-align: left; gap: 9px; min-width: 0; width: 100%; padding: 2px 0; color: #536276; }
.cell-title, .cell-project { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cell-project { color: var(--muted); }
.status-dot, .pn-status .pn-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; display: inline-block; background: currentColor; }
.status.ready .status-dot, .pn-status-ready .pn-dot { background: transparent; border: 1.4px solid currentColor; }
.status.review .status-dot, .pn-status-review .pn-dot { border-radius: 1px; transform: rotate(45deg) scale(.83); }
.status.done .status-dot, .pn-status-done .pn-dot {
  width: 8px; height: 5px; border-radius: 0; border: solid currentColor; border-width: 0 0 1.6px 1.6px;
  background: transparent; transform: translateY(-1px) rotate(-45deg);
}
.loading-screen { min-height: 65vh; display: grid; place-items: center; color: var(--muted); }
.team-activity {
  position: relative; min-width: 0; padding: 0 0 0 clamp(16px,1.7vw,24px);
  border-left: 1px solid #c9d9f1;
}
.team-activity:only-child { padding-left: 0; border-left: 0; }
.activity-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 26px; }
.activity-heading-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.activity-heading h2 { display: flex; align-items: center; flex: none; gap: 8px; font-size: 1.075rem; font-weight: 670; }
.activity-scope {
  min-width: 0; padding-inline-start: 9px; border-inline-start: 1px solid #c9d9f1;
  color: var(--muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.activity-heading-mark {
  display: grid; place-items: center; flex: none; width: 21px; height: 22px;
  color: #3b65b5; border-bottom: 1px solid #aabdf0;
}
.activity-toggle { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 3px 5px; border-radius: 4px; color: var(--blue-ink); font-size: .79rem; }
.activity-toggle:hover { background: var(--blue-wash); }
.activity-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.activity-feed { margin: 4px 0 0; padding: 0; list-style: none; }
.activity-row {
  position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto;
  align-items: center; gap: 7px; min-height: 34px; padding: 4px 0 4px 33px;
}
.activity-row + .activity-row { box-shadow: inset 0 1px 0 #e0e8f5; }
.activity-row:not(:last-child)::before {
  content: ""; position: absolute; left: 13px; top: 25px; bottom: -7px; width: 1px;
  background: linear-gradient(#b4d6f7,#d7d5fc); pointer-events: none;
}
.activity-entry { min-width: 0; display: flex; align-items: center; gap: 7px; }
.activity-line { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.activity-verb { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: .75rem; color: #536782; white-space: nowrap; }
.activity-task { max-width: 100%; min-width: 0; padding: 0 3px; margin-left: -3px; overflow: hidden; color: #18375e; font-size: .84rem; font-weight: 625; text-overflow: ellipsis; white-space: nowrap; border-radius: 4px; text-align: left; }
.activity-task:hover { background: var(--blue-wash); color: var(--blue-ink); text-decoration: underline; text-underline-offset: .2em; }
.activity-context { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 186px; color: var(--muted); font-size: .72rem; }
.activity-context time { white-space: nowrap; font-family: var(--numerals); }
.activity-project { order: -1; max-width: 100%; overflow: hidden; color: #49658b; text-overflow: ellipsis; white-space: nowrap; }
.activity-node-mark {
  position: absolute; z-index: 2; left: 17px; top: 19px; display: grid; place-items: center;
  width: 14px; height: 14px; border: 1px solid #fff; border-radius: 50%;
  background: #e1f0ff; color: #205cb3; pointer-events: none;
}
.activity-submitted .activity-node-mark { background: #e9e7ff; color: #5644b5; }
.activity-approved .activity-node-mark { background: #ddf5ff; color: #17658c; }
.activity-empty { color: var(--muted); font-size: .875rem; padding: 7px 0 9px; }
.tasks-section { display: flex; flex-direction: column; flex: 1 0 auto; padding-top: 20px; }
.tasks-section::after {
  flex: none; height: 96px; margin: auto calc(-1 * var(--pane-pad)) -14px;
  background-image: var(--login-spectrum); background-position: left bottom;
  background-size: min(108%,1100px) auto;
  mask-image: linear-gradient(90deg,#000d,#000 22%,transparent 82%),
    linear-gradient(transparent,#000b 64%,#000 92%);
  mask-composite: intersect;
}
.section-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; min-height: 34px; }
.task-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: .875rem; }
.task-table th, .task-table td { text-align: left; padding: 8px 13px; vertical-align: middle; border-bottom: 1px solid var(--fine); overflow: hidden; text-overflow: ellipsis; }
.task-table thead th { height: 37px; background: linear-gradient(#edf3fd,#e8eef8); border-bottom: 1px solid var(--line); font-weight: 580; color: #445c7b; font-size: .8125rem; }
.task-table thead th:first-child { border-radius: 6px 0 0 0; }
.task-table thead th:last-child { border-radius: 0 6px 0 0; }
.task-table th:first-child { width: 39%; }
.task-table th:nth-child(2) { width: 20%; }
.task-table th:nth-child(3) { width: 24%; }
.task-table th:nth-child(4) { width: 17%; }
.cross-project th:nth-child(1) { width: 30%; }
.cross-project th:nth-child(2) { width: 21%; }
.cross-project th:nth-child(3) { width: 16%; }
.cross-project th:nth-child(4) { width: 19%; }
.cross-project th:nth-child(5) { width: 14%; }
.task-row { cursor: pointer; }
.lead-approvals { margin-top: 24px; }
.supervisor-count { font: 500 .72rem/1.5 var(--sans, sans-serif); color: var(--muted); white-space: nowrap; }
.review-empty { color: var(--muted); font-size: .875rem; margin: 8px 0 20px; }
.task-row td { height: 42px; font-variant-numeric: tabular-nums; }
.task-row:hover { background: #f7f9fc; }
.task-row.selected { background: linear-gradient(95deg,#e9f3ff,#e7eefb 70%,#eceefd); }
.task-row.selected td { border-bottom-color: #becfee; box-shadow: inset 0 1px 0 #c7d7f0; }
.task-row.selected td:first-child { border-radius: 8px 0 0 4px; box-shadow: inset 1px 1px 0 #b9cfea; }
.task-row.selected td:last-child { border-radius: 0 4px 8px 0; box-shadow: inset -1px 1px 0 #c4cced; }
.task-row.selected .task-name { color: var(--blue-ink); }
.task-name { display: flex; gap: 9px; align-items: center; min-width: 0; color: #27374d; font-weight: 590; }
.task-name svg { color: #748398; width: 16px; height: 16px; }
.task-row.selected .task-name svg { color: var(--blue); }
.task-name > span, .person-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.person-link { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-width: 0; border-radius: 5px; padding: 0; white-space: nowrap; }
button.person-link:hover { color: var(--blue-ink); }
button.person-link:hover .person-name { text-decoration: underline; text-underline-offset: .2em; }
.activity-person { max-width: 49%; color: #213f66; font-size: .78rem; font-weight: 650; }
.avatar { display: inline-grid; place-items: center; width: 25px; height: 25px; flex-shrink: 0; border-radius: 50%; font-size: .75rem; font-weight: 600; line-height: 1; background: #eaf0fa; color: #425a7d; }
.avatar { position: relative; overflow: hidden; }
.activity-person .avatar {
  position: absolute; z-index: 1; left: 2px; top: 5px; width: 24px; height: 24px;
  border: 1px solid #c6ddfa; background: linear-gradient(130deg,#e0f0ff,#e6eaff); color: #2b548d;
}
.avatar .user-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.account-wrap .avatar { width: 30px; height: 30px; }
.status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: .8125rem; font-weight: 540; }
.status.active { color: var(--blue-ink); }
.status.ready { color: #475e8d; }
.status.review { color: #4e5e74; }
.status.done { color: #3d5674; }
.empty { padding: 42px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); margin-bottom: 6px; }
.notice { position: fixed; z-index: 80; left: 50%; bottom: 26px; transform: translateX(-50%); border-radius: 8px; background: #23354e; color: #fff; padding: 9px 17px; font-size: .875rem; box-shadow: var(--elevation); }
.login-screen {
  --login-cut: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%);
  --login-art: url("/login-spectrum-grade.8a35ce7b3fab.webp");
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 55.7% minmax(0, 1fr);
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding-block: 48px;
  background-color: #f6f8fc;
}
.login-screen::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: #f6f8fc var(--login-art) center / cover no-repeat;
}
.login-glow { display: none; }
@media (min-width: 641px) and (prefers-reduced-motion: no-preference) {
  .login-glow {
    display: block;
    position: absolute;
    inset: 0 44% 0 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
  }
  .login-glow::before {
    content: "";
    position: absolute;
    width: min(300px, 60%);
    height: min(190px, 35%);
    top: 39%;
    left: 11%;
    background: radial-gradient(ellipse at center, #f9fdffb3 0%, #dcefff80 29%, #eeebff40 46%, transparent 68%);
    animation: login-reflection 3.4s ease-in-out .35s 1 both;
  }
  .login-screen:focus-within .login-glow {
    visibility: hidden;
  }
  .login-screen:focus-within .login-glow::before {
    animation-play-state: paused;
  }
  @keyframes login-reflection {
    from { transform: translate3d(-36%, 70%, 0) rotate(-19deg); opacity: 0; }
    42% { opacity: .76; }
    to { transform: translate3d(52%, -70%, 0) rotate(-27deg); opacity: 0; }
  }
}
.login-content { position: relative; grid-column: 2; width: min(73%, 520px); }
.login-content h1 {
  margin-bottom: clamp(33px, 3.7vw, 58px);
  font-family: "Geist", "Segoe UI", sans-serif;
  font-size: clamp(2.25rem, 3.2vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -.033em;
  line-height: 1.14;
  color: #425781;
}
.login-form { display: grid; gap: clamp(17px, 1.8vw, 27px); }
.login-field { display: grid; gap: 7px; min-width: 0; }
.login-field label { color: #243451; font-size: clamp(.95rem, 1.22vw, 1.15rem); font-weight: 600; }
.login-control, .login-submit { position: relative; isolation: isolate; }
.login-control::before, .login-control::after, .login-submit::before, .login-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: var(--login-cut);
}
.login-control::before {
  background: linear-gradient(165deg, #e7ecf7d9, #f9fbffd9);
  box-shadow: inset 0 -1px #aebcdd, inset 0 1px #fff;
}
.login-control::after {
  background: linear-gradient(135deg, #9cf4f6, #7dbcea 58%, #a38be4);
  inset: auto 0 0 auto;
  width: 19px;
  height: 16px;
  clip-path: polygon(0 100%, 31% 100%, 100% 28%, 100% 0);
}
.login-control:focus-within::before { box-shadow: inset 0 -2px #657eae, inset 0 1px #fff; }
.login-field input {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: clamp(46px, 3.75vw, 59px);
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 10px 19px;
  color: #243451;
  font-size: clamp(1rem, 1.18vw, 1.12rem);
  font-weight: 400;
}
.login-field input::placeholder { color: #526582; }
.login-field input:focus-visible { outline: 2px solid #7897c6; outline-offset: 2px; }
.login-password input { padding-right: 80px; }
.login-password input::-ms-reveal { display: none; }
.password-visibility {
  position: absolute;
  z-index: 2;
  inset: 6px 15px 6px auto;
  min-width: 47px;
  padding: 0 7px;
  border-radius: 5px;
  color: #40597f;
  font-size: .9rem;
}
.password-visibility:hover { background: #e3eafa; color: #244570; }
.login-submit {
  min-height: clamp(45px, 3.3vw, 54px);
  padding: 8px 20px;
  margin-top: 4px;
  border-radius: 9px;
  color: #233e6d;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 650;
}
.login-submit::before, .login-submit::after {
  z-index: -1;
  border-radius: inherit;
}
.login-submit::before { background: linear-gradient(90deg, #8198c6 91%, #a194d6 96%, #64ccd9); }
.login-submit::after {
  inset: 1px;
  border-radius: 8px;
  background: linear-gradient(102deg, #d8e8fa, #dfdff7);
}
.login-submit:hover:not(:disabled)::after { background: linear-gradient(102deg, #ccdff7, #d6d6f5); }
.login-submit:active:not(:disabled)::after { background: linear-gradient(102deg, #c3d9f3, #d0cef2); }
.login-error { color: #992e28; font-size: .875rem; padding: 8px 11px; border-radius: 7px; background: #fff4f2; }
.menu { top: calc(100% + 7px); left: 0; }
.menu-account,.menu-actions { right: 0; left: auto; }
.menu-title { padding: 6px 10px 5px; font-size: .75rem; color: var(--muted); }
.menu-divider { height: 1px; background: var(--line); margin: 5px 4px; }
.menu-item.chosen { color: var(--blue-ink); background: var(--blue-wash); }
.menu-item > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-filter { left: auto; right: 0; width: min(265px,82vw); padding: 10px 13px; }
.menu-filter .menu-title { color: var(--ink); font-weight: 650; font-size: .875rem; padding-left: 0; }
.filter-field { display: grid; gap: 4px; margin-top: 9px; font-size: .8125rem; color: var(--muted); }
.filter-field select { border: 1px solid #cdd6e2; border-radius: 5px; padding: 6px 9px; background: #fff; color: var(--ink); min-height: 33px; width: 100%; }
.filter-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 14px; }
.task-open .task-name { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.task-row.selected .task-open { color: var(--blue-ink); }
.execution-progress {
  display: grid; grid-template-columns: calc(3ch + 1em) minmax(13px,1fr) auto; align-items: center; gap: 8px;
  width: 100%; max-width: 224px; padding: 2px 0; font: .8125rem/1.2 var(--numerals);
}
.execution-caption { display: contents; white-space: nowrap; }
.execution-caption strong { grid-area: 1 / 1; font-weight: 400; color: #263c5a; }
.execution-caption span { grid-area: 1 / 3; font-size: .73rem; color: #52627b; }
.execution-progress .step-meter { grid-area: 1 / 2; }
.step-meter {
  --step-spectrum: linear-gradient(90deg,
    #36b4d6 0%, #419fe2 14.29%, #4b90e8 28.57%, #5985e9 42.86%,
    #6c7ee7 57.14%, #8079e3 71.43%, #947ddf 85.71%, #ac89e4 100%);
  display: grid; grid-template-columns: repeat(var(--step-count), minmax(0, 1fr));
  gap: min(3px, calc(40% / var(--step-count))); width: 100%; height: 6px;
}
.step-meter-empty { border-radius: 4px; background: #e0e6ef; }
.step-segment { min-width: 0; border-radius: 4px; background: #dce6f6; }
.step-segment.is-done {
  background-image: linear-gradient(158deg,#ffffff54,transparent 62%), var(--step-spectrum);
  background-size: 100% 100%, calc(100% * var(--step-count)) 100%;
  background-position: center, var(--step-position) center;
}
.step-meter-detail {
  grid-template-columns: repeat(min(var(--step-count), 12), minmax(0, 1fr));
  grid-auto-rows: 20px;
  min-height: 20px;
  height: auto;
  gap: 4px;
}
.step-meter-detail .step-segment { position: relative; clip-path: polygon(4px 0,100% 0,calc(100% - 4px) 100%,0 100%); }
.step-meter-checks .step-segment.is-done::after {
  content: ""; position: absolute; left: 50%; top: 46%; width: 8px; height: 5px;
  border: solid #fff; border-width: 0 0 1.6px 1.6px;
  transform: translate(-50%,-50%) rotate(-45deg);
}
.table-scroll { min-width: 0; }
@container workspace-main (min-width: 960px) {
  .table-scroll:has(.task-table:not(.cross-project)) { position: relative; isolation: isolate; }
  .table-scroll:has(.task-table:not(.cross-project))::before {
    content: ""; position: absolute; z-index: -1;
    inset: 38px calc(-1 * var(--pane-pad)) 0 auto;
    width: calc(min(8%,132px) + var(--pane-pad)); pointer-events: none;
    background: var(--login-spectrum) 10% 55% / auto 128% no-repeat;
    mask-image: linear-gradient(90deg,transparent 12%,#0006 47%,#000),
      linear-gradient(180deg,transparent,#000 18%,#000c 72%,transparent);
    mask-composite: intersect;
    opacity: .72;
  }
}
.empty { display: grid; gap: 12px; justify-items: center; }
.empty-icon {
  color: #396cbb; background: linear-gradient(137deg,#eaf6ff,#e4e7ff);
  border: 1px solid #c7dbfb; border-radius: 12px 5px 12px 5px;
  display: inline-grid; place-items: center; width: 52px; height: 52px;
}
@media (min-width: 1720px) { .main-pane { --pane-pad: 2.6vw; } .task-row td { height: 46px; } }
@media (max-width: 1120px) {
  .main-pane { --pane-pad: 19px; }
  .workspace.with-inspector { grid-template-columns: minmax(0,1fr) 310px; }
  .task-table th, .task-table td { padding-inline: 9px; }
  .titlebar { gap: 10px; }
  .lead-meta { padding-left: 9px; }
}
@container workspace-main (max-width: 790px) {
  .execution-progress { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; }
  .execution-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
  .execution-progress .step-meter { grid-area: auto; }
  .workspace-summary { grid-template-columns: minmax(242px,.79fr) minmax(0,1.21fr); gap: 15px; }
  .metrics .metric { padding-inline: 6px; }
  .team-activity { padding-left: 11px; }
  .activity-entry { display: grid; justify-items: start; gap: 1px; }
  .activity-context { display: grid; justify-items: end; gap: 2px; }
  .activity-project { order: 0; }
  .activity-row { min-height: 46px; }
}
@container workspace-main (max-width: 600px) {
  .workspace-summary { grid-template-columns: minmax(0,1fr); }
  .team-activity { padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .table-scroll { overflow-x: auto; }
  .task-table { min-width: 440px; }
  .task-table.cross-project { min-width: 526px; }
}
@media (max-width: 840px) {
  .workspace.with-inspector { grid-template-columns: minmax(0,1fr); }
  .workspace.with-inspector .inspector { position: fixed; z-index: 12; inset: calc(var(--topbar-height) + 10px) 10px 10px auto; width: min(390px,calc(100vw - 20px)); box-shadow: -9px 8px 24px rgba(19,42,75,.14); }
  .topbar { gap: 12px; padding-inline: 16px; }
  .topnav { gap: 9px; }
}
@media (max-width: 680px) {
  :root { --topbar-height: 105px; }
  .topbar { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto 37px; gap: 6px 9px; padding-block: 8px; }
  .topnav { grid-area: 1 / 1; }
  .account-wrap { grid-area: 1 / 2; justify-self: end; }
  .task-search { grid-area: 2 / 1 / 3 / -1; margin-left: 0; }
  #connection-warning { position: absolute; top: calc(100% + 3px); right: 16px; padding: 2px 5px; background: #fff9ec; }
}
@media (max-width: 640px) {
  .login-screen {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 24px;
  }
  .login-screen::before {
    background-image: linear-gradient(180deg, transparent, #f7f9fdf2 32%, #f7f9fdf2 72%, transparent), var(--login-art);
    background-position: 44% center;
  }
  .login-content { grid-column: 1; width: min(100%, 400px); margin-inline: auto; }
}
@media (max-width: 560px) {
  .nav-tab { font-size: .8rem; padding-inline: 7px; }
  .nav-tab.active::after { left: 7px; }
  .nav-tab > svg { display: none; }
  .lead-meta { flex-basis: 100%; padding: 0; border-left: 0; }
  .main-pane { --pane-pad: 12px; }
  .task-table { font-size: .8125rem; }
  .task-table :is(th,td) { padding-inline: 5px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.my-agenda { margin: 14px 0; padding: 12px 16px; border: 1px solid #dce3f4; border-radius: 9px; background: linear-gradient(110deg,#fff,#f3f6ff); }
.agenda-head,.agenda-row { display:flex; align-items:center; gap:10px; }
.agenda-head { justify-content:space-between; }
.agenda-head h2 { margin:0; font-size:1rem; }
.my-agenda p,.agenda-context,.agenda-row time { color:#52637f; font-size:.8rem; }
.my-agenda p { margin:6px 0 0; }
.my-agenda ul { list-style:none; padding:0; margin:6px 0 0; }
.my-agenda li + li { border-top:1px solid #e4e9f3; }
.agenda-row { width:100%; min-height:35px; text-align:left; background:transparent; border:0; padding:5px 2px; color:#192946; cursor:pointer; }
.agenda-row:hover,.agenda-row:focus-visible { background:#ebf1ff; }
.agenda-row strong,.agenda-context { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.agenda-context { margin-left:auto; }
.agenda-tags { display:inline-flex; flex-wrap:wrap; gap:3px; }
.agenda-tag,.agenda-row time { white-space:nowrap; }
.agenda-tag { padding:2px 6px; border-radius:4px; font-size:.73rem; }
.agenda-tag.late { color:#993c2e; background:#fce9e4; }
.agenda-tag.returned { color:#674393; background:#efe9fb; }
.agenda-tag.due { color:#835212; background:#fff1d7; }
.agenda-tag.new { color:#285c9d; background:#e5f0ff; }
