@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fff;
  --canvas: #fff;
  --sidebar: #fafafa;
  --ink: #181818;
  --muted: #717171;
  --line: #e9e9e9;
  --radius: 8px;
  font:
    450 14px/1.5 "Bricolage Grotesque",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-optical-sizing: auto;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
a,
button,
input,
select,
textarea {
  outline-offset: 4px;
}
:focus-visible {
  outline: 2px solid #181818;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
input:disabled,
textarea:disabled,
select:disabled {
  color: #727272;
  background: #f7f7f7;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #999;
  outline-offset: 2px;
}
input[type="checkbox"] {
  accent-color: #181818;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.015em;
}
strong {
  font-weight: 550;
}
svg {
  vertical-align: middle;
  flex-shrink: 0;
}
fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
::selection {
  background: #dedede;
  color: #111;
}
.muted {
  color: var(--muted);
}
.nowrap {
  white-space: nowrap;
}
.preserve-lines {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.text-danger {
  color: #181818;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-style: dotted;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.boot-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

/* Workspace */
.app-shell {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 228px;
  display: flex;
  flex-direction: column;
  padding: 34px 18px 0;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  z-index: 30;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 6px;
  background: #181818;
  color: #fff;
  font-size: 25px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: -0.07em;
  line-height: 1;
  padding-bottom: 3px;
}
.workspace-switch {
  margin: 53px 12px 25px;
  min-width: 0;
}
.nav-caption {
  display: block;
  margin-bottom: 8px;
  color: #727272;
  font-size: 9px;
  font-weight: 550;
  letter-spacing: 1.3px;
}
.workspace-switch strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #727272;
  font-size: 12px;
  font-weight: 450;
  text-align: left;
}
.nav-item > span:nth-child(2) {
  flex: 1;
}
.nav-item svg {
  width: 17px;
  height: 17px;
}
.nav-item:hover {
  color: #181818;
  background: #f0f0f0;
}
.nav-item.is-active {
  color: #181818;
  background: #ececec;
  font-weight: 550;
}
.nav-count {
  min-width: 20px;
  border-radius: 4px;
  background: #e2e2e2;
  padding: 1px 5px;
  color: #575757;
  text-align: center;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 45px;
}
.export-button {
  font-size: 11px;
  margin-bottom: 16px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 8px 25px;
  border-top: 1px solid var(--line);
}
.profile > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.profile strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
  text-transform: capitalize;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #e5e5e5;
  background: #efefef;
  color: #606060;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 9px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 4px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #727272;
}
.icon-button:hover {
  color: #111;
  background: #eee;
}
.sidebar-close,
.mobile-menu {
  display: none;
}
.main-shell {
  display: flex;
  flex-direction: column;
  margin-left: 228px;
  width: calc(100% - 228px);
  min-height: 100dvh;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 73px;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
}
.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-size: 11px;
  color: #727272;
}
.topbar-breadcrumb > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 190px;
}
.topbar-breadcrumb strong {
  font-weight: 450;
  color: #454545;
  white-space: nowrap;
}
.breadcrumb-separator {
  color: #c3c3c3;
}
.global-search {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  width: 248px;
  color: #727272;
}
.global-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #444;
  font-size: 11px;
  padding: 9px 0;
}
.global-search input::placeholder {
  color: #727272;
}
.global-search kbd {
  font-family: inherit;
  color: #727272;
  font-size: 10px;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  padding: 0 5px;
}
#main {
  flex: 1;
  width: 100%;
  max-width: 1490px;
  padding: 48px 48px 72px;
  margin: 0 auto;
}
#main:focus {
  outline: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
}
.page-heading h1,
.plan-hero h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.page-heading > div:first-child,
.plan-hero > div:first-child {
  min-width: 0;
}
.page-heading p {
  color: #727272;
  font-size: 12px;
  line-height: 1.8;
  margin-top: 10px;
}
.heading-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 9px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.btn-primary {
  background: #1d1d1d;
  color: #fff;
  border-color: #1d1d1d;
}
.btn-primary:hover {
  background: #383838;
  border-color: #383838;
}
.btn-secondary {
  background: #fff;
  border-color: #dedede;
  color: #515151;
}
.btn-secondary:hover {
  background: #f7f7f7;
  border-color: #bdbdbd;
}
.btn-quiet {
  background: transparent;
  color: #717171;
  min-height: 30px;
  padding: 5px 7px;
  font-size: 10px;
}
.btn-quiet:hover {
  background: #f4f4f4;
  color: #111;
}
.btn-full {
  width: 100%;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #666;
  font-size: 11px;
  font-weight: 450;
  cursor: pointer;
}
.text-link:hover {
  color: #111;
}

/* Overview */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 0 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.stat-card {
  padding: 0 29px;
  min-width: 0;
}
.stat-card:first-child {
  padding-left: 0;
}
.stat-card + .stat-card {
  border-left: 1px solid var(--line);
}
.stat-label {
  display: block;
  color: #727272;
  font-size: 11px;
  font-weight: 400;
}
.stat-value {
  display: block;
  margin-top: 12px;
  font-size: 38px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: start;
  gap: 25px;
  margin-top: 29px;
}
.panel {
  min-width: 0;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 23px;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.panel-heading p {
  font-size: 11px;
  line-height: 1.8;
  color: #727272;
  margin-top: 6px;
}
.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 1px 5px;
  border: 1px solid #e9e9e9;
  border-radius: 4px;
  color: #727272;
  font-size: 9px;
  font-weight: 450;
  font-variant-numeric: tabular-nums;
}
.attention-list {
  padding: 0 22px;
}
.attention-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.attention-item:last-child {
  border-bottom: 0;
}
.attention-item:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.attention-symbol {
  color: #727272;
  margin-top: 2px;
}
.attention-item > div {
  flex: 1;
  min-width: 0;
}
.attention-label {
  display: block;
  color: #727272;
  font-size: 9px;
  line-height: 1.6;
  margin-bottom: 6px;
}
.attention-item strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
}
.attention-item small {
  display: block;
  color: #727272;
  font-size: 10px;
  line-height: 1.8;
  margin-top: 5px;
}
.attention-item > svg {
  color: #727272;
  align-self: center;
}
.activity-list {
  padding: 0 23px;
}
.activity-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.activity-item:last-child {
  border-bottom: 0;
}
.activity-item > div {
  flex: 1;
  min-width: 0;
}
.activity-item p {
  font-size: 10px;
  color: #727272;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.activity-item p strong {
  color: #3c3c3c;
  font-weight: 500;
}
.activity-item small {
  display: block;
  margin-top: 6px;
  color: #727272;
  font-size: 9px;
}
.activity-item small span {
  margin: 0 4px;
}
.activity-item small a:hover {
  color: #111;
  text-decoration: underline;
}
.activity-time {
  color: #727272;
  font-size: 9px;
  margin-top: 5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.quiet-empty {
  color: #727272;
  font-size: 11px;
  padding: 33px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.8;
  text-align: center;
}
.quiet-empty p {
  max-width: 350px;
}

/* Lists */
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  padding: 12px 20px;
  color: #727272;
  font-size: 11px;
  font-weight: 450;
  border-bottom: 1px solid var(--line);
  background: #fcfcfc;
  white-space: nowrap;
}
td {
  padding: 22px 20px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fdfdfd;
}
.plans-table td:first-child,
.plans-table th:first-child {
  padding-left: 23px;
  width: 40%;
}
.plan-title-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 180px;
  max-width: 500px;
}
.plan-code {
  font-family: inherit;
  font-size: 10px;
  font-weight: 450;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.025em;
  color: #727272;
}
.plan-title-link strong {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0;
}
.plan-title-link:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.plan-meta {
  font-size: 10px;
  color: #727272;
}
.plan-meta > span {
  margin: 0 5px;
  color: #b4b4b4;
}
.badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  background: #fff;
  color: #727272;
  font-size: 10px;
  font-weight: 450;
  line-height: 1.3;
  white-space: nowrap;
  text-transform: capitalize;
}
.badge-dot {
  display: none;
}
.badge-critical,
.badge-blocked {
  border-color: #333;
  color: #fff;
  background: #333;
}
.badge-high,
.badge-affected {
  color: #454545;
  background: #efefef;
  border-color: #e8e8e8;
}
.badge-low,
.badge-retired,
.badge-done,
.badge-resolved,
.badge-unaffected {
  border-color: #e9e9e9;
  color: #727272;
  background: #fafafa;
}
.stage-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #6c6c6c;
  white-space: nowrap;
}
.stage-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border: 1px solid #aaa;
  border-radius: 50%;
}
.stage-color-0 {
  background: #fff;
}
.stage-color-1 {
  background: #ddd;
}
.stage-color-2 {
  background: #aaa;
}
.stage-color-3 {
  background: #777;
  border-color: #777;
}
.stage-color-4 {
  background: #333;
  border-color: #333;
}
.stage-color-5 {
  background: #111;
  border-color: #111;
}
.progress-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 92px;
  max-width: 120px;
}
.progress-track {
  flex: 1;
  min-width: 40px;
  height: 3px;
  background: #ececec;
  border-radius: 2px;
  overflow: hidden;
}
.progress-track > span {
  display: block;
  height: 100%;
  background: #626262;
  border-radius: 2px;
}
.progress-cell > span {
  min-width: 27px;
  color: #727272;
  font-size: 9px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.row-arrow {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #727272;
  width: 22px;
  height: 30px;
}
.row-arrow:hover {
  color: #111;
}
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 21px;
}
.segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafafa;
  overflow-x: auto;
}
.segmented-control button {
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #727272;
  padding: 6px 11px;
  font-size: 10px;
  white-space: nowrap;
}
.segmented-control button.selected {
  border-color: #e6e6e6;
  color: #333;
  background: #fff;
}
.segmented-control button span {
  color: #727272;
  font-size: 9px;
  margin-left: 6px;
}
.filter-selects {
  display: flex;
  gap: 9px;
}
.select {
  width: auto;
  max-width: 100%;
  padding: 10px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
  color: #555;
  font-size: 12px;
  line-height: 1.5;
}
.select-sm {
  max-width: 185px;
  padding: 7px 8px;
  font-size: 10px;
}
.project-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.mini-chip {
  display: inline-flex;
  padding: 4px 7px;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  color: #727272;
  font-size: 9px;
  line-height: 1.3;
  white-space: nowrap;
  background: #fcfcfc;
}
.empty-state {
  text-align: center;
  padding: 55px 25px;
}
.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  color: #727272;
  margin-bottom: 15px;
}
.empty-state h3 {
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.015em;
}
.empty-state p {
  color: #727272;
  max-width: 370px;
  margin: 10px auto 21px;
  font-size: 12px;
  line-height: 1.8;
}

/* Plan */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #727272;
  margin-bottom: 28px;
}
.back-link > svg {
  transform: rotate(180deg);
}
.back-link:hover {
  color: #111;
}
.plan-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}
.plan-hero-labels {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.plan-hero-labels .plan-code {
  font-size: 11px;
}
.plan-hero h1 {
  font-size: 29px;
  line-height: 1.3;
  max-width: 790px;
}
.plan-hero > div > p {
  margin-top: 15px;
  color: #727272;
  max-width: 750px;
  font-size: 12px;
  line-height: 1.9;
}
.plan-hero .heading-actions {
  padding-top: 41px;
}
.active-label {
  font-size: 10px;
  color: #727272;
}
.active-label > span {
  display: none;
}
.stage-stepper {
  display: flex;
  padding: 24px 12px;
  margin-bottom: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stage-step {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  gap: 9px;
  position: relative;
  min-width: 0;
  padding: 3px 8px;
  border: 0;
  background: transparent;
  color: #727272;
}
.stage-step > span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 23px;
  height: 23px;
  border: 1px solid #ddd;
  border-radius: 50%;
  color: #727272;
  font-size: 9px;
  background: #fff;
}
.stage-step strong {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  padding-right: 9px;
  background: #fff;
  white-space: nowrap;
}
.stage-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 63%;
  width: 70%;
  height: 1px;
  background: #e8e8e8;
}
.stage-step.current {
  color: #222;
}
.stage-step.current > span {
  background: #222;
  color: #fff;
  border-color: #222;
}
.stage-step.current strong {
  font-weight: 550;
}
.stage-step.complete {
  color: #6a6a6a;
}
.stage-step.complete > span {
  background: #f2f2f2;
  border-color: #e7e7e7;
  color: #555;
}
.stage-step:disabled {
  opacity: 1;
}
.stage-step:hover strong {
  color: #111;
}
.detail-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 29px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.detail-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 1px 16px;
  border: 0;
  background: transparent;
  color: #727272;
  font-size: 11px;
  white-space: nowrap;
}
.detail-tab.selected {
  color: #1d1d1d;
  font-weight: 500;
}
.detail-tab.selected::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: #222;
}
.detail-tab > span {
  font-size: 9px;
  color: #727272;
  font-variant-numeric: tabular-nums;
}
.detail-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 2.5fr) minmax(245px, 1fr);
  gap: 27px;
}
.brief-content {
  padding: 26px 24px;
}
.brief-content h3 {
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0;
  color: #555;
  margin-bottom: 11px;
}
.brief-content p {
  color: #727272;
  font-size: 12px;
  line-height: 1.95;
  margin-bottom: 27px;
}
.brief-content p:last-child {
  margin-bottom: 0;
}
.placeholder-text {
  color: #727272 !important;
}
.table-subtext {
  display: block;
  color: #727272;
  font-size: 10px;
  line-height: 1.8;
  margin-top: 6px;
}
.table-subtext > span {
  margin: 0 4px;
}
.assessment-note {
  max-width: 260px;
  font-size: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.assessment-link {
  display: block;
  margin-top: 8px;
  font-size: 9px;
}
.verification-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #727272;
  white-space: nowrap;
}
.verification-check input {
  width: 14px;
  height: 14px;
  margin: 0;
}
.panel-bottom-link {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 15px;
  color: #727272;
  font-size: 10px;
}
.panel-bottom-link:hover {
  color: #111;
  background: #fafafa;
}
.plan-summary dl {
  padding: 9px 20px 19px;
  margin: 0;
}
.plan-summary dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 10px;
}
.plan-summary dt {
  color: #727272;
  font-size: 10px;
}
.plan-summary dd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #555;
  font-size: 10px;
  text-align: right;
}
.summary-progress {
  padding: 19px 20px 22px;
  border-top: 1px solid var(--line);
}
.summary-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: #727272;
  margin-bottom: 14px;
}
.summary-progress strong {
  color: #555;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.summary-progress small {
  display: block;
  color: #727272;
  font-size: 9px;
  margin-top: 11px;
}
.next-step-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px 21px;
  margin-bottom: 26px;
  background: #fcfcfc;
}
.next-step-card h3 {
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0;
  margin-bottom: 19px;
}
.readiness-list > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 13px 0;
  color: #727272;
  font-size: 10px;
  line-height: 1.7;
}
.readiness-list > div:last-child {
  margin-bottom: 0;
}
.readiness-list > div > span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 15px;
  height: 17px;
}
.readiness-list i {
  width: 9px;
  height: 9px;
  border: 1px solid #ccc;
  border-radius: 50%;
}
.readiness-list .is-done {
  color: #555;
}
.readiness-list .is-done > span {
  color: #555;
}
.workaround-mini {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.workaround-mini strong {
  display: block;
  font-size: 11px;
  line-height: 1.75;
  font-weight: 450;
}
.workaround-mini small {
  display: block;
  font-size: 9px;
  color: #727272;
  margin-top: 7px;
}
.blocked-reason {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  color: #555;
  line-height: 1.8;
}

/* Projects, assigned work and evidence */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}
.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
  background: #fff;
  min-width: 0;
}
.project-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
}
.environment-chip {
  color: #727272;
  font-size: 9px;
  letter-spacing: 0.1px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.project-card-top .icon-button {
  margin-left: auto;
  width: 26px;
  height: 26px;
}
.project-card h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.project-card > p {
  min-height: 44px;
  color: #727272;
  font-size: 11px;
  line-height: 1.9;
  margin: 12px 0 17px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.stack-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #727272;
  font-size: 9px;
  line-height: 1.7;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.project-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding: 30px 0 24px;
}
.project-card-metrics strong {
  display: block;
  color: #555;
  font-size: 23px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.project-card-metrics span {
  display: block;
  color: #727272;
  font-size: 9px;
  margin-top: 5px;
}
.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.person-inline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #6c6c6c;
  font-size: 11px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.person-inline > span:last-child {
  min-width: 0;
}
.project-card-footer .person-inline,
.project-card-footer .text-link {
  font-size: 9px;
}
.work-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  padding-bottom: 36px;
  margin-bottom: 35px;
}
.task-group-label {
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
  color: #666;
  font-size: 11px;
}
.task-group-label:not(:first-child) {
  border-top: 1px solid var(--line);
}
.task-group-label a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.task-group-label a:hover {
  color: #111;
}
.task-table td:first-child {
  min-width: 210px;
}
.task-table strong {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
}
.status-blocked {
  border-color: #555;
  color: #222;
  background: #f5f5f5;
}
.status-done {
  color: #727272;
  border-color: #eee;
}
.workaround-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 20px;
  padding: 23px;
}
.workaround-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 23px;
}
.workaround-card-top {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}
.workaround-card h3 {
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.6;
  margin: 19px 0 12px;
}
.workaround-card > p {
  font-size: 12px;
  line-height: 1.9;
  color: #727272;
  margin-bottom: 19px;
}
.risk-note {
  border-left: 2px solid #d9d9d9;
  padding: 0 0 0 13px;
  margin: 0 0 20px;
}
.risk-note strong {
  color: #666;
  font-size: 10px;
  font-weight: 500;
}
.risk-note p {
  color: #727272;
  font-size: 11px;
  line-height: 1.8;
  margin-top: 7px;
}
.workaround-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 23px 0 18px;
  margin-top: auto;
  font-size: 9px;
}
.workaround-card-footer .person-inline {
  font-size: 10px;
}
.evidence-list {
  padding: 0 25px;
}
.evidence-item {
  display: flex;
  gap: 17px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.evidence-item:last-child {
  border-bottom: 0;
}
.evidence-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 33px;
  height: 34px;
  color: #727272;
}
.evidence-item > div {
  flex: 1;
  min-width: 0;
}
.evidence-item h3 {
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.evidence-item p {
  color: #727272;
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 11px;
}
.evidence-url {
  font-size: 11px;
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.evidence-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #727272;
  font-size: 9px;
  margin-top: 18px;
}
.evidence-meta > span > span {
  margin: 0 4px;
}
.role-badge {
  display: inline-flex;
  padding: 4px 7px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  background: #fcfcfc;
  color: #727272;
  font-size: 10px;
  text-transform: capitalize;
}
.you-label {
  margin-left: 7px;
  color: #727272;
  font-size: 9px;
  font-weight: 400;
}
.role-reference {
  margin-top: 32px;
}
.role-reference > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #727272;
  font-size: 11px;
  cursor: pointer;
  list-style: none;
}
.role-reference > summary::-webkit-details-marker {
  display: none;
}
.role-reference[open] > summary svg {
  transform: rotate(90deg);
}
.roles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-top: 25px;
}
.role-card {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.role-card h3 {
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0;
}
.role-card p {
  color: #727272;
  font-size: 11px;
  line-height: 1.9;
  margin-top: 10px;
}

/* Dialogs */
.modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 30px;
  background: #0005;
  overflow-y: auto;
}
.modal {
  width: 100%;
  max-width: 660px;
  max-height: calc(100dvh - 60px);
  border: 1px solid #dedede;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 80px #0002;
  overflow: auto;
}
.modal-header {
  position: relative;
  padding: 28px 29px 23px;
  border-bottom: 1px solid var(--line);
}
.modal-title {
  padding-right: 25px;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.modal-description {
  color: #727272;
  font-size: 11px;
  line-height: 1.8;
  margin-top: 8px;
  padding-right: 20px;
}
.modal-close {
  position: absolute;
  top: 21px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #727272;
  font-size: 22px;
  font-weight: 300;
}
.modal-close:hover {
  background: #f2f2f2;
  color: #111;
}
.modal-body {
  padding: 26px 29px 7px;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 21px 29px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin-bottom: 23px;
}
.field-label {
  color: #555;
  font-size: 11px;
  font-weight: 550;
}
.field-help {
  display: block;
  color: #727272;
  font-size: 11px;
  line-height: 1.8;
}
.input,
.textarea {
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 5px;
  padding: 11px 12px;
  color: #333;
  background: #fff;
  font-size: 12px;
  line-height: 1.7;
}
.input {
  min-height: 42px;
}
.input::placeholder,
.textarea::placeholder {
  color: #727272;
}
.textarea {
  min-height: 100px;
  resize: vertical;
}
.field .select {
  width: 100%;
  min-height: 42px;
  font-size: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 7px;
  max-height: 190px;
  padding: 15px;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  background: #fcfcfc;
  overflow-y: auto;
}
.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  color: #666;
  line-height: 1.8;
}
.checkbox-item input {
  width: 14px;
  height: 14px;
  margin: 3px 0 0;
}
.checkbox-item .field-help {
  display: inline;
  margin-left: 7px;
  font-size: 10px;
}
.form-error {
  margin: 10px 0 20px;
  padding: 12px 14px;
  border: 1px solid #d9d9d9;
  border-left: 3px solid #444;
  border-radius: 4px;
  color: #555;
  background: #f7f7f7;
  font-size: 11px;
  line-height: 1.8;
}
.toast-root {
  position: fixed;
  right: 25px;
  bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 200;
  max-width: calc(100vw - 50px);
}
.toast {
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 470px;
  border: 1px solid #ddd;
  border-radius: 7px;
  background: #fff;
  color: #666;
  padding: 16px 20px;
  box-shadow: 0 4px 25px #0000000a;
  font-size: 11px;
  line-height: 1.8;
}
.toast svg {
  color: #727272;
}
.toast-error {
  border-color: #999;
  color: #333;
}

/* Sign-in and first use */
.auth-layout {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.auth-wordmark {
  align-self: flex-start;
  margin: 37px 42px;
  padding: 0;
}
.auth-content {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 45px 25px 110px;
}
.auth-form-wrap {
  width: 100%;
  max-width: 365px;
}
.auth-form-wrap h1 {
  color: #222;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.auth-form-wrap > p {
  color: #727272;
  font-size: 12px;
  line-height: 1.8;
  margin: 13px 0 32px;
}
.auth-form-wrap .field {
  margin-bottom: 21px;
}
.auth-form-wrap .field-label {
  font-size: 11px;
}
.auth-submit {
  justify-content: space-between;
  min-height: 44px;
  padding: 11px 14px;
  margin-top: 7px;
  font-size: 12px;
}
.demo-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 26px 0 27px;
}
.demo-choice input {
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
}
.demo-choice strong {
  display: block;
  color: #727272;
  font-size: 11px;
  font-weight: 450;
}
.demo-choice small {
  display: block;
  color: #727272;
  font-size: 10px;
  line-height: 1.8;
  margin-top: 5px;
}

/* Responsive layouts */
@media (min-width: 1600px) {
  #main {
    padding-top: 58px;
  }
  .page-heading {
    margin-bottom: 48px;
  }
  .page-heading h1 {
    font-size: 35px;
  }
  .stat-value {
    font-size: 42px;
  }
  .plans-table td {
    padding-top: 25px;
    padding-bottom: 25px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 210px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .main-shell {
    margin-left: 210px;
    width: calc(100% - 210px);
  }
  .topbar {
    padding: 0 32px;
  }
  #main {
    padding: 39px 32px 60px;
  }
  .global-search {
    width: 210px;
  }
  .page-heading {
    margin-bottom: 35px;
  }
  .dashboard-grid {
    gap: 20px;
  }
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-card {
    padding: 25px;
  }
  .plan-hero {
    flex-direction: column;
    gap: 18px;
  }
  .plan-hero .heading-actions {
    padding-top: 0;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 2fr) 240px;
    gap: 20px;
  }
  .detail-grid th,
  .detail-grid td {
    padding-left: 16px;
    padding-right: 16px;
  }
  .stage-step {
    padding: 3px 4px;
    gap: 6px;
  }
  .stage-step strong {
    font-size: 9px;
    padding-right: 5px;
  }
  .stage-stepper {
    padding-left: 2px;
    padding-right: 2px;
  }
}
@media (max-width: 1020px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }
  .detail-grid > aside .panel,
  .next-step-card {
    margin-bottom: 0;
  }
  .roles-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid .stat-card {
    padding-left: 22px;
    padding-right: 22px;
  }
  .stats-grid .stat-card:first-child {
    padding-left: 0;
  }
  .stat-label {
    font-size: 10px;
  }
  .plans-table td,
  .plans-table th {
    padding-left: 13px;
    padding-right: 13px;
  }
  .plan-title-link {
    min-width: 160px;
  }
  .progress-cell {
    min-width: 78px;
  }
  .topbar-breadcrumb > span:first-child {
    max-width: 130px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: none;
    width: 228px;
    padding-top: 30px;
    box-shadow: 10px 0 45px #00000012;
  }
  .sidebar.mobile-open {
    display: flex;
  }
  .sidebar-close {
    display: flex;
    position: absolute;
    right: 10px;
    top: 30px;
  }
  .mobile-menu {
    display: inline-flex;
    width: 29px;
    height: 30px;
    margin-left: -5px;
  }
  .main-shell {
    width: 100%;
    margin-left: 0;
  }
  .topbar {
    min-height: 65px;
    padding: 0 25px;
    gap: 13px;
  }
  .topbar-breadcrumb {
    font-size: 10px;
    gap: 9px;
  }
  .topbar-breadcrumb > span:first-child {
    max-width: 140px;
  }
  .global-search {
    width: 185px;
  }
  .global-search input {
    font-size: 10px;
  }
  #main {
    padding: 34px 25px 55px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading {
    margin-bottom: 35px;
    gap: 20px;
  }
  .stats-grid {
    padding-bottom: 29px;
    margin-bottom: 28px;
  }
  .stat-value {
    font-size: 34px;
  }
  .stat-label {
    font-size: 10px;
  }
  .panel-heading {
    padding: 20px;
  }
  .plans-table td:first-child,
  .plans-table th:first-child {
    padding-left: 20px;
  }
  .filter-bar {
    flex-wrap: wrap;
    gap: 14px;
  }
  .filter-selects {
    margin-left: auto;
  }
  .projects-grid {
    gap: 18px;
  }
  .project-card {
    padding: 22px;
  }
  .project-card h2 {
    font-size: 17px;
  }
  .project-card-footer {
    flex-wrap: wrap;
    row-gap: 12px;
  }
  .plan-hero h1 {
    font-size: 26px;
  }
  .plan-hero {
    margin-bottom: 29px;
  }
  .stage-stepper {
    padding-top: 22px;
    padding-bottom: 22px;
    overflow-x: auto;
  }
  .stage-step {
    flex: 1 0 76px;
    min-width: 76px;
    flex-direction: column;
    gap: 9px;
    padding: 3px;
  }
  .stage-step strong {
    font-size: 10px;
    padding: 0;
  }
  .stage-step:not(:last-child)::after {
    left: 70%;
    width: 60%;
    top: 14px;
  }
  .detail-tabs {
    gap: 24px;
  }
  .detail-tab {
    font-size: 10px;
  }
  .table-scroll table {
    min-width: 530px;
  }
  .plans-table {
    min-width: 600px !important;
  }
  .overview-plans .plans-table {
    min-width: 0 !important;
  }
  .overview-plans .plans-table th:nth-child(4),
  .overview-plans .plans-table td:nth-child(4) {
    display: none;
  }
  .progress-cell {
    min-width: 80px;
  }
  .auth-wordmark {
    margin: 30px;
  }
  .modal-backdrop {
    padding: 20px;
  }
  .modal {
    max-height: calc(100dvh - 40px);
  }
}
@media (max-width: 520px) {
  .topbar {
    padding: 0 19px;
    gap: 9px;
  }
  .topbar-breadcrumb > span:first-child,
  .breadcrumb-separator {
    display: none;
  }
  .global-search {
    width: 165px;
  }
  .global-search kbd {
    display: none;
  }
  #main {
    padding: 31px 19px 50px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 17px;
    margin-bottom: 31px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 10px;
    max-width: 230px;
    line-height: 1.9;
  }
  .page-heading .heading-actions {
    margin-top: 1px;
  }
  .page-heading .btn {
    padding-left: 10px;
    padding-right: 11px;
    font-size: 10px;
    min-height: 35px;
  }
  .page-heading .btn svg {
    width: 14px;
    height: 14px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 29px;
    padding-bottom: 29px;
    margin-bottom: 29px;
  }
  .stats-grid .stat-card {
    padding-left: 23px;
    padding-right: 10px;
  }
  .stats-grid .stat-card:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-value {
    margin-top: 9px;
    font-size: 32px;
    letter-spacing: -0.03em;
  }
  .overview-plans .plans-table th:nth-child(5),
  .overview-plans .plans-table td:nth-child(5),
  .overview-plans .plans-table th:last-child,
  .overview-plans .plans-table td:last-child {
    display: none;
  }
  .overview-plans .plans-table th,
  .overview-plans .plans-table td {
    padding-left: 9px;
    padding-right: 9px;
  }
  .overview-plans .plans-table th:first-child,
  .overview-plans .plans-table td:first-child {
    padding-left: 16px;
    width: auto;
  }
  .overview-plans .plan-title-link {
    min-width: 136px;
  }
  .plan-title-link strong {
    font-size: 11px;
  }
  .plan-meta {
    font-size: 9px;
  }
  .badge {
    font-size: 9px;
    padding: 3px 5px;
  }
  .stage-label {
    font-size: 9px;
    gap: 5px;
  }
  th {
    font-size: 10px;
  }
  .panel-heading {
    padding: 19px 17px;
    min-height: 62px;
  }
  .panel-heading h2 {
    font-size: 12px;
  }
  .text-link {
    font-size: 10px;
  }
  .dashboard-grid {
    margin-top: 22px;
    gap: 0;
  }
  .attention-list {
    padding: 0 18px;
  }
  .activity-list {
    padding: 0 17px;
  }
  .activity-time {
    display: none;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-card {
    padding: 24px;
  }
  .project-card h2 {
    font-size: 20px;
  }
  .project-card > p {
    min-height: 0;
    font-size: 12px;
  }
  .project-card-footer {
    flex-wrap: nowrap;
  }
  .project-card-footer .person-inline,
  .project-card-footer .text-link {
    font-size: 10px;
  }
  .project-card-metrics {
    padding-top: 27px;
  }
  .filter-selects {
    margin-left: 0;
    width: 100%;
  }
  .filter-selects .select {
    flex: 1;
    max-width: none;
  }
  .segmented-control {
    max-width: 100%;
  }
  .segmented-control button {
    font-size: 9px;
    padding: 6px 8px;
  }
  .detail-grid > aside {
    grid-template-columns: 1fr;
  }
  .plan-hero h1 {
    font-size: 24px;
  }
  .plan-hero > div > p {
    font-size: 11px;
  }
  .plan-hero .heading-actions {
    gap: 8px;
  }
  .plan-hero .heading-actions .btn {
    font-size: 10px;
  }
  .stage-step strong {
    font-size: 10px;
  }
  .stage-step {
    gap: 9px;
  }
  .stage-step > span {
    width: 21px;
    height: 21px;
  }
  .detail-tabs {
    gap: 19px;
  }
  .detail-tab {
    font-size: 10px;
  }
  .detail-tab > span {
    font-size: 9px;
  }
  .brief-content {
    padding: 23px 19px;
  }
  .brief-content p {
    font-size: 11px;
  }
  .work-stats .stat-card {
    padding: 0 15px;
  }
  .work-stats .stat-card:first-child {
    padding-left: 0;
  }
  .work-stats .stat-label {
    font-size: 9px;
  }
  .work-stats .stat-value {
    font-size: 30px;
  }
  .workaround-grid {
    grid-template-columns: 1fr;
    padding: 17px;
    gap: 18px;
  }
  .workaround-card {
    padding: 20px;
  }
  .workaround-card-footer {
    flex-wrap: wrap;
    gap: 12px;
  }
  .evidence-list {
    padding: 0 18px;
  }
  .evidence-item {
    gap: 10px;
  }
  .evidence-item h3 {
    font-size: 13px;
  }
  .evidence-item p {
    font-size: 11px;
  }
  .evidence-meta {
    font-size: 10px;
  }
  .roles-grid {
    grid-template-columns: 1fr 1fr;
    gap: 21px;
  }
  .role-card p {
    font-size: 10px;
  }
  .auth-wordmark {
    margin: 29px 25px;
    font-size: 24px;
  }
  .auth-content {
    align-items: flex-start;
    padding: 45px 29px 60px;
  }
  .auth-form-wrap h1 {
    font-size: 28px;
  }
  .auth-form-wrap > p {
    font-size: 11px;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .modal {
    max-height: calc(100dvh - 24px);
    border-radius: 8px;
  }
  .modal-header {
    padding: 25px 21px 21px;
  }
  .modal-title {
    font-size: 21px;
  }
  .modal-body {
    padding: 24px 21px 5px;
  }
  .modal-footer {
    padding: 19px 21px;
  }
  .modal-description {
    font-size: 10px;
  }
  .field-label {
    font-size: 11px;
  }
  .field-help {
    font-size: 10px;
  }
  .form-grid {
    gap: 0 14px;
  }
  .field .select {
    font-size: 12px;
  }
  .toast-root {
    right: 16px;
    bottom: 16px;
    max-width: calc(100vw - 32px);
  }
  .toast {
    font-size: 10px;
    padding: 14px 16px;
  }
}
@media (max-height: 680px) and (min-width: 761px) {
  .sidebar {
    padding-top: 25px;
  }
  .workspace-switch {
    margin-top: 38px;
  }
  .profile {
    padding-top: 17px;
    padding-bottom: 18px;
  }
  .sidebar-bottom {
    padding-top: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

@media (max-height: 800px) {
  .auth-wordmark {
    margin: 26px 32px;
  }
  .auth-content {
    padding-top: 20px;
    padding-bottom: 35px;
  }
  .auth-form-wrap .field {
    margin-bottom: 17px;
  }
  .auth-form-wrap > p {
    margin-bottom: 25px;
  }
}

.load-failure {
  min-height: 100dvh;
  display: grid;
  place-items: center;
}

/* Keep dialog actions visible while longer forms scroll. */
.modal {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  flex-shrink: 0;
}
.modal > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.modal-footer {
  flex-shrink: 0;
  margin-top: 0;
}

.workspace-picker {
  width: 100%;
  margin-top: 8px;
  padding-left: 9px;
  font-size: 12px;
  height: 36px;
}
.recovery-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 17px 48px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
  font-size: 12px;
  line-height: 1.6;
}
.recovery-bar > div {
  flex: 1;
  min-width: 240px;
}
.recovery-bar > .recovery-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
  min-width: 0;
}
.recovery-bar strong,
.recovery-bar span {
  display: block;
}
.recovery-bar span {
  color: #626262;
}
.recovery-bar .btn {
  padding: 8px 12px;
  font-size: 11px;
}
.text-link {
  font-weight: 550;
  text-underline-offset: 4px;
}
.guest-team {
  padding: 44px;
  max-width: 740px;
}
.guest-team h2 {
  font-size: 24px;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.guest-team p {
  max-width: 480px;
  color: #626262;
  line-height: 1.8;
  margin-bottom: 26px;
}
.auth-form-wrap > .auth-free-note {
  margin: 20px 0;
  font-size: 11px;
  color: #666;
}
.auth-links {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.8;
}
.auth-links p {
  margin: 0 0 18px;
}
.auth-links a,
.auth-form-wrap > .text-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.auth-links > a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.auth-eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #666;
}
.invitation-actions {
  display: grid;
  gap: 12px;
}
.invitation-account {
  padding: 16px;
  background: #f7f7f7;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.invite-success-note {
  margin: 0 0 20px;
  line-height: 1.8;
  color: #4c4c4c;
}
.invite-url {
  font-size: 12px;
}
.invite-copy-status {
  min-height: 20px;
  margin-top: 10px;
  color: #555;
  font-size: 12px;
}
@media (max-width: 1100px) {
  .recovery-bar {
    padding: 16px 30px;
  }
}
@media (max-width: 760px) {
  .recovery-bar {
    padding: 17px 21px;
    gap: 12px 18px;
  }
  .recovery-bar > div {
    flex-basis: 100%;
    min-width: 0;
  }
  .recovery-bar .btn {
    min-height: 38px;
  }
  .guest-team {
    padding: 27px 24px;
  }
  .guest-team .heading-actions {
    flex-wrap: wrap;
  }
}
