:root {
  --bg: #eef4fb;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(148, 163, 184, 0.24);
  --border-strong: rgba(148, 163, 184, 0.34);
  --text: #14233b;
  --muted: #64748b;
  --tertiary: #8ca0bb;
  --lane: rgba(241, 245, 249, 0.72);
  --grid: rgba(148, 163, 184, 0.11);
  --shadow: 0 18px 42px -28px rgba(15, 23, 42, 0.35);
  --radius: 6px;
  --timeline-width: 1160px;
  --lane-label-width: 180px;
  --lane-column-gap: 14px;
  --timeline-offset: calc(var(--lane-label-width) + var(--lane-column-gap));
  --axis-bg: #45556d;
  --axis-text: #f8fbff;
  --highlight-contrast: #48627f;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(191, 219, 254, 0.55), transparent 30%),
    linear-gradient(180deg, #f4f8fd 0%, #ebf1f8 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  padding: 14px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 0;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.eyebrow,
.panel-label,
.canvas-badge,
.timeline-note span {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  color: var(--tertiary);
}

.document-title,
.document-subtitle {
  display: block;
  width: min(520px, 100%);
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
}

.topbar__title-row {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(180px, 320px);
  gap: 8px;
  align-items: end;
}

.topbar__title-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.topbar__title-field span {
  color: #829087;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.document-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.02;
}

.document-subtitle {
  font-size: 12px;
  color: var(--muted);
  max-width: 420px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar__controls {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar__group {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 7px;
  border-left: 1px solid rgba(148, 163, 184, 0.2);
}

.topbar__group:first-child {
  padding-left: 0;
  border-left: 0;
}

.topbar-settings-menu {
  position: relative;
}

.topbar-settings-menu__summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 126px;
  height: 34px;
  padding: 0 12px;
  list-style: none;
  cursor: pointer;
  border-color: rgba(36, 92, 79, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 243, 239, 0.94));
  color: var(--pine);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 22px -20px rgba(22, 63, 54, 0.36);
}

.topbar-settings-menu__summary:hover,
.topbar-settings-menu[open] .topbar-settings-menu__summary {
  border-color: rgba(36, 92, 79, 0.44);
  background: linear-gradient(180deg, rgba(239, 247, 242, 1), rgba(218, 237, 230, 0.96));
  box-shadow: 0 16px 26px -22px rgba(22, 63, 54, 0.5);
}

.topbar-settings-menu__icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(36, 92, 79, 0.12);
  font-size: 13px;
}

.topbar-settings-menu__summary::-webkit-details-marker {
  display: none;
}

.topbar-export-menu__summary {
  min-width: 92px;
}

.topbar-settings-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  min-width: 178px;
  padding: 8px;
  border: 1px solid rgba(214, 227, 243, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px -24px rgba(15, 23, 42, 0.42);
}

.topbar-settings-menu__panel .ghost-button {
  justify-content: flex-start;
  width: 100%;
}

.topbar-export-menu__panel {
  min-width: 164px;
}

.topbar-settings-menu__primary-action {
  border-color: rgba(36, 92, 79, 0.28);
  background: rgba(232, 243, 239, 0.92);
  color: var(--pine);
  font-weight: 900;
}

.topbar-feedback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 138px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(184, 105, 69, 0.38);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.94) 52%, rgba(235, 246, 249, 0.92));
  color: #713f12;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 16px 30px -24px rgba(184, 105, 69, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.topbar-feedback-button:hover {
  transform: translateY(-1px);
  border-color: rgba(184, 105, 69, 0.56);
  background:
    linear-gradient(135deg, rgba(255, 237, 213, 1), rgba(255, 255, 255, 0.98) 54%, rgba(225, 242, 246, 0.96));
  box-shadow: 0 20px 34px -24px rgba(184, 105, 69, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.topbar-feedback-button__icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 8px;
  background: #b86945;
  color: #fffaf0;
  font-size: 13px;
  font-weight: 900;
}

.planning-frame {
  display: flex;
  align-items: flex-start;
  min-width: 192px;
  max-width: 238px;
  padding: 0 10px 0 0;
  border: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.2);
  background: transparent;
  color: inherit;
  text-align: left;
}

.planning-frame__overview {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.planning-frame__actions {
  display: none;
}

.planning-frame__summary {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.planning-frame__detail {
  margin: 0;
  font-size: 10px;
  line-height: 1.25;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-year-control {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface-strong);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.timeline-year-control span {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
}

.timeline-year-control input {
  width: 72px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  outline: none;
}

.timeline-year-control select {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  outline: none;
}

.segmented {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(191, 219, 254, 0.84);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(240, 247, 255, 0.78) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 24px -24px rgba(15, 23, 42, 0.55);
}

.scale-switcher-label {
  color: var(--tertiary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.segmented button,
.ghost-button,
.primary-button,
.library-button {
  border: 1px solid transparent;
  border-radius: 0;
  padding: 9px 13px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  transition: 160ms ease;
}

.ghost-button--compact,
.primary-button--compact {
  padding: 6px 9px;
  font-size: 11px;
}

.topbar__new-planning-button {
  min-width: 154px;
  white-space: nowrap;
}

.segmented button {
  min-width: 30px;
  padding: 6px 8px;
  border-radius: 10px;
  color: #5c6f88;
  letter-spacing: 0.04em;
}

.segmented button.is-active {
  background: linear-gradient(135deg, #16345d 0%, #2458b6 100%);
  color: white;
  box-shadow: 0 10px 24px -18px rgba(36, 88, 182, 0.82);
}

.ghost-button,
.library-button {
  border-color: rgba(214, 227, 243, 0.72);
  background: rgba(255, 255, 255, 0.54);
}

.ghost-button.is-active {
  border-color: rgba(205, 45, 67, 0.28);
  background: rgba(255, 241, 243, 0.92);
  color: #9f1d32;
}

.ghost-button--danger {
  color: #7f1d1d;
}

.ghost-button:disabled,
.primary-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.primary-button {
  background: #17253f;
  color: white;
  box-shadow: 0 12px 26px -18px rgba(23, 37, 63, 0.8);
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #2458b6;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.link-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.workspace {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(300px, 356px);
  gap: 12px;
  margin-top: 12px;
  align-items: start;
}

.add-rail,
.canvas-frame,
.inspector {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 0;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.add-rail {
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 12px 8px;
  min-width: 0;
  border-color: rgba(214, 227, 243, 0.82);
  background: rgba(248, 251, 255, 0.82);
  box-shadow: 0 14px 30px -28px rgba(15, 23, 42, 0.18);
}

.add-rail__header {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.16em;
}

.add-rail__stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.add-rail__button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(214, 227, 243, 0.96);
  background: rgba(255, 255, 255, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.add-rail__button:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 111, 237, 0.35);
  box-shadow: 0 14px 24px -22px rgba(15, 23, 42, 0.35);
}

.add-rail__button .create-item-popup__option-icon {
  width: 26px;
  height: 26px;
  font-size: 11px;
}

.add-rail__hint {
  margin: auto 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

.canvas-frame {
  grid-column: 2;
  min-width: 0;
  padding: 10px;
}

.inspector {
  position: sticky;
  top: 12px;
  grid-column: 3;
  width: auto;
  max-height: calc(100vh - 24px);
  padding: 0 14px 18px;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable both-edges;
  border-color: rgba(214, 227, 243, 0.9);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(241, 246, 252, 0.92) 100%);
  box-shadow: 0 24px 50px -34px rgba(15, 23, 42, 0.3);
}

.inspector-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0 12px;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.99) 0%, rgba(246, 250, 255, 0.94) 76%, rgba(246, 250, 255, 0) 100%);
  border-bottom: 1px solid rgba(214, 227, 243, 0.72);
}

.inspector-header__copy {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 24ch;
}

.inspector-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inspector-close {
  padding: 7px 10px;
  font-size: 11px;
}

.inspector-pin {
  padding: 7px 10px;
  font-size: 11px;
}

.inspector-content {
  margin-top: 12px;
  padding-bottom: 10px;
}

.legacy-prefill-store {
  display: none !important;
}

.inspector-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(203, 217, 236, 0.92);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.inspector-copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.inspector-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
}

.inspector-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.inspector-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.inspector-field--grow {
  flex: 1;
}

.inspector-field span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #87a0be;
}

.inspector-field input,
.inspector-field select,
.inspector-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(208, 221, 238, 0.96);
  border-radius: 0;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  outline: none;
  font-size: 12px;
  line-height: 1.35;
}

.inspector-field input[readonly],
.inspector-field select[disabled],
.inspector-field input:disabled,
.inspector-field textarea:disabled,
.prefill-field input:disabled,
.prefill-field select:disabled,
.phase-composer__field input:disabled,
.phase-composer__field select:disabled,
.config-field input:disabled,
.config-field select:disabled {
  background: rgba(241, 245, 249, 0.94);
  color: #64748b;
  border-color: rgba(203, 213, 225, 0.92);
  cursor: not-allowed;
}

.inspector-field input[readonly] {
  background: rgba(243, 247, 252, 0.98);
  color: #5b6b80;
  cursor: default;
}

.inspector-field input:focus,
.inspector-field select:focus,
.inspector-field textarea:focus,
.prefill-field input:focus,
.prefill-field select:focus,
.phase-composer__field input:focus,
.phase-composer__field select:focus,
.timeline-year-control input:focus,
.timeline-year-control select:focus,
.lane-name:focus,
.lane-description:focus,
.selection-toolbar__title:focus,
.selection-toolbar__subtitle:focus {
  border-color: rgba(47, 111, 237, 0.68);
  box-shadow: inset 0 0 0 1px rgba(47, 111, 237, 0.22);
}

.inspector-field input[type="date"] {
  min-height: 40px;
}

.inspector-field input[type="color"] {
  min-height: 40px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.98);
}

.inspector-field textarea {
  min-height: 88px;
  resize: vertical;
}

.inspector-field--compact input,
.inspector-field--compact select {
  padding: 8px 9px;
  font-size: 12px;
}

.inspector-color-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inspector-color-swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.inspector-color-swatch {
  width: 100%;
  height: 32px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  background: var(--swatch);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 6px 12px -10px rgba(15, 23, 42, 0.28);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.inspector-color-swatch:hover {
  transform: translateY(-1px);
  border-color: rgba(100, 116, 139, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 18px -14px rgba(15, 23, 42, 0.34);
}

.inspector-color-swatch.is-active {
  border-color: rgba(30, 64, 175, 0.9);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18), 0 12px 20px -16px rgba(37, 99, 235, 0.42);
}

.inspector-color-custom {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(214, 227, 243, 0.92);
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.9) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.inspector-color-preview {
  width: 52px;
  height: 44px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  background: var(--preview);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 8px 14px -12px rgba(15, 23, 42, 0.24);
}

.inspector-color-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inspector-color-fields__top {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 8px;
}

.inspector-rgb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.inspector-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.inspector-meta {
  padding: 10px 11px;
  border: 1px solid rgba(217, 226, 238, 0.92);
  background: rgba(245, 248, 252, 0.96);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  color: #475569;
}

.inspector-meta--readonly {
  border-color: rgba(203, 213, 225, 0.88);
  background: rgba(241, 245, 249, 0.92);
  color: #475569;
}

.inspector-meta--result {
  border-color: rgba(191, 219, 254, 0.9);
  background: rgba(239, 246, 255, 0.9);
  color: #1d4ed8;
}

.inspector-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(214, 227, 243, 0.76);
}

.inspector-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.inspector-section__title {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #87a0be;
}

.inspector-help {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #70839c;
}

.inspector-inline-result {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.inspector-inline-result__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #87a0be;
}

.inspector-color-custom-toggle-row {
  display: flex;
}

.inspector-color-custom-toggle {
  width: 100%;
  justify-content: flex-start;
  padding: 7px 10px;
  font-size: 11px;
  border-color: rgba(214, 227, 243, 0.96);
  background: rgba(248, 250, 252, 0.98);
  color: #334155;
}

.inspector-color-custom-toggle:hover {
  border-color: rgba(59, 130, 246, 0.36);
  background: rgba(239, 246, 255, 0.98);
  color: #1d4ed8;
}

.inspector-help--compact {
  margin-top: -2px;
}

.timeline-year-control input,
.timeline-year-control select,
.prefill-field input,
.prefill-field select,
.phase-composer__field input,
.phase-composer__field select,
.lane-name,
.lane-description,
.selection-toolbar__title,
.selection-toolbar__subtitle {
  font-size: 13px;
  line-height: 1.35;
}

.inspector-empty {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.46);
}

.panel-copy {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.panel-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.library-button {
  width: 100%;
  margin-top: 8px;
  text-align: left;
  padding: 10px 12px;
  white-space: normal;
  line-height: 1.25;
}

.library-button[data-add] {
  cursor: grab;
}

.library-button[data-add]:active {
  cursor: grabbing;
}

.prefill-panel {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.76);
  min-width: 0;
}

.prefill-panel--fixed {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(191, 219, 254, 0.85);
  background:
    linear-gradient(180deg, rgba(240, 247, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.prefill-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(191, 219, 254, 0.65);
}

.prefill-panel__copy {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}

#prefill-phase-scheduling {
  display: none !important;
}

.prefill-phase-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid rgba(191, 219, 254, 0.7);
  background: rgba(238, 246, 255, 0.7);
}

.prefill-phase-note__title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tertiary);
}

.prefill-phase-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.prefill-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.prefill-field span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tertiary);
}

.prefill-field input,
.prefill-field select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 8px 9px;
  background: rgba(248, 250, 252, 0.95);
  color: var(--text);
  outline: none;
  font-size: 12px;
}

.prefill-field input[type="color"] {
  padding: 4px;
  min-height: 40px;
  background: rgba(255, 255, 255, 0.98);
}

.prefill-field--compact {
  gap: 4px;
}

.prefill-field--compact span {
  font-size: 8px;
}

.prefill-color-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prefill-color-swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.prefill-color-swatch {
  width: 100%;
  height: 30px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 8px 12px -12px rgba(15, 23, 42, 0.3);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.prefill-color-swatch:hover {
  transform: translateY(-1px);
  border-color: rgba(100, 116, 139, 0.96);
}

.prefill-color-swatch.is-active {
  border-color: rgba(30, 64, 175, 0.92);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.16), 0 10px 18px -14px rgba(37, 99, 235, 0.34);
}

.prefill-color-toggle-row {
  display: flex;
}

.prefill-color-custom-toggle {
  width: 100%;
  justify-content: flex-start;
}

.prefill-color-custom {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(214, 227, 243, 0.92);
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.92) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.prefill-color-preview {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  background: var(--preview);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 8px 14px -12px rgba(15, 23, 42, 0.24);
}

.prefill-color-custom-fields {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
}

.prefill-actions {
  display: flex;
  gap: 8px;
  padding-top: 4px;
}

.prefill-actions .ghost-button,
.prefill-actions .primary-button {
  flex: 1;
  justify-content: center;
  text-align: center;
  min-width: 0;
  font-size: 12px;
  padding: 9px 10px;
}

.canvas-frame {
  overflow: hidden;
}

.canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
}

.canvas-toolbar__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.canvas-toolbar__summary {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.canvas-toolbar__meta-button {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(214, 227, 243, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.canvas-toolbar__meta-button:hover .canvas-toolbar__summary,
.canvas-toolbar__meta-button:focus-visible .canvas-toolbar__summary {
  color: var(--text);
}

.canvas-toolbar__meta-button .panel-label {
  grid-column: 1;
}

.canvas-toolbar__summary {
  grid-column: 1;
}

.canvas-toolbar__settings-chip {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(36, 92, 79, 0.24);
  border-radius: var(--radius);
  background: rgba(232, 243, 239, 0.9);
  color: var(--pine);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.canvas-toolbar__meta-button:hover,
.canvas-toolbar__meta-button:focus-visible {
  border-color: rgba(36, 92, 79, 0.28);
  background: rgba(255, 255, 255, 0.9);
}

.canvas-toolbar__meta-button:hover .canvas-toolbar__settings-chip,
.canvas-toolbar__meta-button:focus-visible .canvas-toolbar__settings-chip {
  background: rgba(218, 237, 230, 0.98);
  border-color: rgba(36, 92, 79, 0.42);
}

.canvas-toolbar__time-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.scale-pill,
.timeline-note {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.74);
}

.scale-pill strong,
.timeline-note strong {
  font-size: 14px;
}

.canvas-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px 8px 8px;
  min-width: 0;
}

.timeline-card {
  position: relative;
  width: calc(var(--timeline-width) + var(--timeline-offset) + 18px);
  min-width: 0;
  max-width: 100%;
  padding: 8px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(248,251,255,0.84) 100%);
  box-shadow: var(--shadow);
}

.presentation-exit-button {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 90;
  display: none;
  border: 1px solid rgba(214, 227, 243, 0.84);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 16px 28px -24px rgba(15, 23, 42, 0.48);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.timeline-header > :first-child {
  min-width: 0;
  flex: 1;
}

.timeline-header h1 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.04;
}

.canvas-badge {
  font-size: 10px;
  letter-spacing: 0.2em;
}

.phase-composer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(191, 219, 254, 0.85);
  background: linear-gradient(180deg, rgba(240, 247, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.phase-composer__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.phase-composer__copy,
.phase-composer__hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.phase-composer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.phase-composer__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.phase-composer__field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.phase-composer__field--wide {
  grid-column: span 2;
}

#phase-composer-fixed-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.phase-composer__field span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tertiary);
}

.phase-composer__field input,
.phase-composer__field select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  padding: 9px 10px;
  background: rgba(248, 250, 252, 0.95);
  color: var(--text);
  outline: none;
  font-size: 12px;
}

.create-item-popup {
  position: fixed;
  inset: 0;
  z-index: 78;
}

.create-item-popup__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.create-item-popup__dialog {
  position: absolute;
  left: var(--popup-left, 24px);
  top: var(--popup-top, 24px);
  width: 148px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(191, 219, 254, 0.95);
  background:
    linear-gradient(180deg, rgba(252, 253, 255, 0.98) 0%, rgba(240, 247, 255, 0.96) 100%);
  box-shadow: 0 22px 36px -28px rgba(15, 23, 42, 0.38);
}

.create-item-popup__title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.create-item-popup__actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.create-item-popup__option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  padding: 8px 6px;
  border: 1px solid rgba(191, 219, 254, 0.96);
  background: rgba(255, 255, 255, 0.94);
  color: #24344f;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.create-item-popup__option:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 111, 237, 0.48);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98) 0%, rgba(227, 238, 255, 0.98) 100%);
  box-shadow: 0 12px 22px -20px rgba(37, 99, 235, 0.5);
}

.create-item-popup__option-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(47, 111, 237, 0.14) 0%, rgba(47, 111, 237, 0.06) 100%);
  color: #1d4ed8;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.18);
}

.create-item-popup__option-label {
  font-size: 8px;
  font-weight: 800;
  color: #607392;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.config-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.config-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(3px);
}

.config-modal__dialog {
  position: relative;
  width: min(760px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(248, 251, 255, 0.96);
  box-shadow: 0 28px 48px -30px rgba(15, 23, 42, 0.45);
}

.config-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.config-modal__title {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.05;
}

.config-modal__copy {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.config-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.config-modal__tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 188px;
  padding: 10px;
  border-right: 1px solid rgba(214, 227, 243, 0.92);
  background: rgba(247, 250, 255, 0.72);
}

.config-modal__body {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 0;
  border: 1px solid rgba(214, 227, 243, 0.92);
  background: rgba(255, 255, 255, 0.78);
}

.config-modal__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
}

.config-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border: 1px solid transparent;
  background: transparent;
  color: #52657f;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.config-tab.is-active {
  border-color: rgba(214, 227, 243, 0.92);
  background: rgba(255, 255, 255, 0.98);
  color: #14233b;
  box-shadow: 0 10px 20px -18px rgba(15, 23, 42, 0.22);
}

.config-tab__label {
  font-size: 12px;
  font-weight: 800;
}

.config-tab__meta {
  font-size: 11px;
  font-weight: 600;
  color: #7a8ea8;
}

.config-modal__guide {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(36, 92, 79, 0.16);
  border-radius: 16px;
  background: rgba(239, 247, 242, 0.72);
  color: #40554d;
  font-size: 13px;
  line-height: 1.55;
}

.config-modal__guide p {
  margin: 6px 0 0;
}

.config-modal__guide-title {
  color: var(--pine);
  font-size: 13px;
  font-weight: 900;
}

.config-modal__panel {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.config-modal__panel.is-active {
  display: flex;
}

.config-field--wide {
  grid-column: 1 / -1;
}

@media (max-width: 840px) {
  .config-modal__body {
    grid-template-columns: 1fr;
  }

  .feedback-modal__body {
    grid-template-columns: 1fr;
  }

  .config-modal__tabs {
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(214, 227, 243, 0.92);
  }
}

.config-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.config-field__inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.config-field__inline label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.config-field span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tertiary);
}

.config-field__help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.config-field input,
.config-field select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  outline: none;
  font-size: 13px;
  line-height: 1.35;
}

.config-field input.is-invalid {
  border-color: #cd2d43;
  box-shadow: 0 0 0 3px rgba(205, 45, 67, 0.14);
}

.config-modal__preview,
.config-modal__migration,
.config-modal__impact {
  padding: 14px;
  border: 1px solid rgba(191, 219, 254, 0.8);
  background: linear-gradient(180deg, rgba(240, 247, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.config-modal__impact {
  border-color: rgba(245, 158, 11, 0.44);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
  color: #754d0a;
  font-size: 12px;
  line-height: 1.55;
}

.brand-palette-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(214, 227, 243, 0.92);
  background: rgba(255, 255, 255, 0.78);
}

.brand-palette-preview__swatch {
  display: block;
  height: 28px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.config-modal__migration-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tertiary);
}

.config-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.account-modal__dialog {
  width: min(760px, calc(100vw - 48px));
}

.account-modal__body {
  display: block;
  border: 1px solid rgba(214, 227, 243, 0.92);
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
}

.account-modal__auth,
.account-modal__reset,
.account-modal__sessions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-modal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.feedback-modal__dialog {
  width: min(760px, calc(100vw - 48px));
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}

.feedback-modal__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  border: 1px solid rgba(214, 227, 243, 0.92);
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
}

.feedback-modal__body textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 1px solid rgba(56, 77, 70, 0.16);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font: inherit;
  outline: none;
}

.feedback-modal__body .config-modal__actions {
  grid-column: 1 / -1;
}

.admin-users,
.admin-feedback {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(56, 77, 70, 0.12);
}

.admin-users__header,
.admin-feedback__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.admin-users__header h3,
.admin-feedback__header h3 {
  margin: 2px 0 0;
  font-size: 16px;
}

.admin-users__list,
.admin-feedback__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.admin-users__item,
.admin-feedback__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(56, 77, 70, 0.12);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.62);
}

.admin-users__item {
  flex-direction: row;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.admin-users__identity {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.admin-users__identity strong {
  overflow-wrap: anywhere;
}

.admin-users__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.admin-feedback__item p {
  margin: 0;
  color: var(--secondary);
  white-space: pre-wrap;
}

.admin-feedback__item small {
  color: var(--tertiary);
  font-weight: 700;
}

.admin-feedback__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.admin-feedback__footer a {
  color: #245c4f;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.admin-feedback__footer a:hover {
  text-decoration: underline;
}

.admin-users__meta,
.admin-feedback__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--tertiary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .admin-users__item {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-users__actions {
    justify-content: flex-start;
  }
}

.teams-modal__dialog {
  width: min(1040px, calc(100vw - 48px));
}

.topbar__people-button {
  position: relative;
  padding-left: 28px;
}

.topbar__people-button::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #1d6b5b;
  box-shadow: 7px 0 0 rgba(29, 107, 91, 0.52);
  transform: translateY(-50%);
}

.teams-modal__workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.teams-modal__workflow span {
  min-width: 0;
  border: 1px solid rgba(56, 77, 70, 0.12);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.62);
  color: #41564e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
}

.teams-modal__body {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(460px, 1.34fr);
  align-items: stretch;
  gap: 16px;
}

.teams-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(56, 77, 70, 0.12);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.5);
}

.teams-modal__panel::after {
  position: absolute;
  right: 14px;
  top: 12px;
  min-width: 26px;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(29, 107, 91, 0.1);
  color: #1d6b5b;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.teams-modal__panel--teams::after {
  content: var(--teams-count, "0");
}

.teams-modal__panel--people::after {
  content: var(--people-count, "0");
}

.teams-modal__create-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.teams-modal__create-row--team {
  grid-template-columns: minmax(0, 1fr);
}

.teams-modal__create-row input,
.teams-modal__create-row select {
  width: 100%;
  height: 42px;
  min-width: 0;
  border: 1px solid rgba(56, 77, 70, 0.16);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  outline: none;
}

.teams-modal__create-row .primary-button,
.teams-modal__add-member .primary-button {
  min-height: 40px;
  white-space: nowrap;
}

.teams-modal__create-row select {
  min-height: 88px;
}

.teams-modal__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 430px;
  overflow: auto;
}

.teams-modal__item,
.teams-modal__team {
  border: 1px solid rgba(56, 77, 70, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.teams-modal__team {
  padding: 12px;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.teams-modal__team.is-selected {
  border-color: rgba(29, 107, 91, 0.32);
  background: rgba(29, 107, 91, 0.08);
  box-shadow: inset 3px 0 0 #1d6b5b;
}

.teams-modal__item,
.teams-modal__team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.teams-modal__item {
  min-height: 54px;
  padding: 10px 10px 10px 12px;
  cursor: grab;
  transition: border-color 140ms ease, background 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.teams-modal__item:hover {
  border-color: rgba(29, 107, 91, 0.2);
  background: rgba(255, 255, 255, 0.78);
}

.teams-modal__item.is-dragging {
  opacity: 0.48;
  transform: scale(0.99);
  cursor: grabbing;
}

.teams-modal__team-header {
  padding: 0 0 12px;
}

.teams-modal__team-select {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.teams-modal__identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.15;
}

.teams-modal__identity strong,
.teams-modal__identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teams-modal__identity small {
  color: #728078;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.teams-modal__members {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0 10px 10px;
}

.teams-modal__member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 1px solid rgba(29, 107, 91, 0.16);
  border-radius: 999px;
  padding: 5px 6px 5px 10px;
  background: rgba(29, 107, 91, 0.09);
  color: #1d443b;
  font-size: 12px;
  font-weight: 850;
}

.teams-modal__team.is-drop-target {
  border-color: rgba(29, 107, 91, 0.46);
  background:
    linear-gradient(180deg, rgba(29, 107, 91, 0.1), rgba(255, 255, 255, 0.72));
  box-shadow: inset 0 0 0 2px rgba(29, 107, 91, 0.18), 0 18px 28px -28px rgba(29, 107, 91, 0.38);
  transform: translateY(-1px);
}

.teams-modal__member-chip button {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 107, 91, 0.14);
  color: #1d443b;
  cursor: pointer;
}

.teams-modal__detail-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.teams-modal__detail-header {
  border: 1px solid rgba(29, 107, 91, 0.14);
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(29, 107, 91, 0.08);
}

.teams-modal__add-member {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  margin-top: 12px;
}

.teams-modal__add-member select {
  width: 100%;
  height: 40px;
  min-width: 0;
  border: 1px solid rgba(56, 77, 70, 0.16);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  outline: none;
}

.teams-modal__member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 35px;
  align-content: flex-start;
}

.teams-modal__member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(56, 77, 70, 0.12);
  border-radius: 12px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.62);
  color: #263a33;
  font-size: 12px;
  font-weight: 800;
}

.teams-modal__member {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #41564e;
  font-size: 12px;
  font-weight: 700;
}

.teams-modal__member span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teams-modal__empty {
  padding: 10px;
  border: 1px dashed rgba(56, 77, 70, 0.16);
  border-radius: 12px;
  color: #6d7b73;
  font-size: 12px;
}

.teams-modal__empty--compact {
  width: 100%;
  padding: 8px 10px;
}

.assignee-workflow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: -2px;
  border: 1px solid rgba(29, 107, 91, 0.14);
  border-radius: 14px;
  padding: 12px;
  background:
    radial-gradient(circle at top right, rgba(29, 107, 91, 0.09), transparent 42%),
    rgba(255, 255, 255, 0.58);
}

.assignee-workflow__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.assignee-workflow__copy {
  margin: 3px 0 0;
  color: #6d7b73;
  font-size: 11px;
  line-height: 1.45;
}

.assignee-workflow__manage {
  flex: 0 0 auto;
}

.assignee-workflow__status {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px dashed rgba(56, 77, 70, 0.16);
  border-radius: 12px;
  padding: 9px;
  background: rgba(255, 250, 240, 0.52);
}

.assignee-workflow__status.is-assigned {
  border-style: solid;
  border-color: rgba(29, 107, 91, 0.18);
  background: rgba(29, 107, 91, 0.08);
}

.assignee-workflow__avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #1d6b5b;
  color: #fffaf0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.assignee-workflow__status strong,
.assignee-workflow__status span {
  display: block;
}

.assignee-workflow__status strong {
  color: var(--ink);
  font-size: 12px;
}

.assignee-workflow__status span:not(.assignee-workflow__avatar) {
  margin-top: 2px;
  color: #6d7b73;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.assignee-workflow__fields {
  display: grid;
  gap: 8px;
}

.saved-plannings {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.saved-planning {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(214, 227, 243, 0.92);
  background: rgba(248, 251, 255, 0.92);
}

.saved-planning__main,
.saved-version {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.saved-planning__summary {
  min-width: 0;
}

.saved-planning__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.saved-planning strong,
.saved-planning span,
.saved-version span,
.saved-version small {
  display: block;
}

.saved-planning strong {
  font-size: 13px;
}

.saved-planning span {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

.saved-planning__versions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(214, 227, 243, 0.72);
}

.saved-version {
  padding: 7px 0 0;
}

.saved-version span {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}

.saved-version small {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}

.saved-planning--empty,
.saved-version--empty {
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
}

.saved-version--empty {
  padding: 3px 0;
  font-weight: 700;
}

.ppt-export-modal__dialog {
  width: min(620px, calc(100vw - 48px));
}

.ppt-export-modal__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(214, 227, 243, 0.92);
  background: rgba(255, 255, 255, 0.78);
}

.ppt-export-modal__check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.ppt-export-modal__check input {
  width: 15px;
  height: 15px;
}

.ppt-export-modal__summary {
  padding: 12px;
  border: 1px solid rgba(191, 219, 254, 0.78);
  background: linear-gradient(180deg, rgba(240, 247, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 100%);
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

body.is-image-exporting .canvas-toolbar__add,
body.is-image-exporting .lane-add,
body.is-image-exporting .lane-quick-add,
body.is-image-exporting .lane-drag-handle,
body.is-image-exporting .lane-delete-button,
body.is-image-exporting .lane-resize-handle,
body.is-image-exporting .lane-track__row-controls,
body.is-image-exporting .lane-track__row-toggle,
body.is-image-exporting .presentation-exit-button,
body.is-image-exporting .selection-toolbar,
body.is-image-exporting .phase-composer,
body.is-image-exporting .create-item-popup,
body.is-image-exporting .timeline-item__connector {
  display: none !important;
}

body.is-image-exporting .lane-card.is-selected,
body.is-image-exporting .lane-track.is-selected,
body.is-image-exporting .timeline-item.is-selected,
body.is-image-exporting .timeline-item--release.is-selected,
body.is-image-exporting .timeline-item--release.is-selected .timeline-item__release-body,
body.is-image-exporting .timeline-item--release.is-selected .timeline-item__marker--release-dot {
  outline: 0 !important;
  box-shadow: none !important;
}

body.is-image-exporting .timeline-item__drag-handle,
body.is-image-exporting .timeline-item__resize,
body.is-image-exporting .timeline-connection-endpoint {
  opacity: 0 !important;
}

body.is-image-exporting .timeline-connection-path.is-selected {
  filter: none !important;
}

.image-export-stage {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #fffaf0;
}

.timeline-card--image-export {
  overflow: hidden !important;
  border-color: rgba(214, 227, 243, 0.62) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 247, 0.96) 100%) !important;
  box-shadow: none !important;
}

.timeline-card--image-export .lane-card {
  cursor: default;
  box-shadow: none;
}

.timeline-card--image-export .lane-track {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.timeline-card--image-export .lane-card__top {
  margin-right: 6px;
}

.timeline-card--image-export .lane-card__actions {
  display: none;
}

.image-export-text {
  min-width: 0;
  pointer-events: none;
  user-select: none;
}

.lane-color-export-dot {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.56);
}

.timeline-card--image-export .timeline-item {
  box-shadow: 0 10px 20px -18px rgba(15, 23, 42, 0.36);
}

.timeline-card--image-export .timeline-item--release {
  box-shadow: none;
}

.phase-composer__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.phase-composer__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#canvas-title {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1;
}

.timeline-grid-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.timeline-connections {
  position: absolute;
  inset: 0 0 auto var(--timeline-offset);
  width: var(--timeline-width);
  height: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.timeline-connection-path {
  fill: none;
  stroke: rgba(71, 85, 105, 0.78);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: stroke;
  cursor: pointer;
  transition: stroke 140ms ease, stroke-width 140ms ease;
}

.timeline-connection-path[data-style="dashed"] {
  stroke-dasharray: 8 6;
}

.timeline-connection-path[data-style="dotted"] {
  stroke-dasharray: 2 6;
}

.timeline-connection-path[data-weight="thin"] {
  stroke-width: 1.5;
}

.timeline-connection-path[data-weight="medium"] {
  stroke-width: 2;
}

.timeline-connection-path[data-weight="bold"] {
  stroke-width: 3;
}

.timeline-connection-endpoint {
  fill: rgba(71, 85, 105, 0.92);
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 1.5;
  cursor: pointer;
  transition: fill 140ms ease, r 140ms ease;
}

.timeline-connection-path:hover {
  opacity: 0.94;
  stroke-width: 3;
}

.timeline-connection-path:hover + .timeline-connection-endpoint,
.timeline-connection-endpoint:hover {
  fill: rgba(51, 65, 85, 0.96);
}

.timeline-connection-path.is-selected {
  opacity: 1;
  stroke-width: 3;
  filter: drop-shadow(0 0 2px rgba(37, 99, 235, 0.28));
}

.timeline-connection-path.is-selected + .timeline-connection-endpoint,
.timeline-connection-endpoint.is-selected {
  fill: rgba(37, 99, 235, 0.96);
}

.timeline-connection-path--snapped {
  stroke: rgba(37, 99, 235, 0.9);
  stroke-dasharray: none;
  opacity: 0.96;
}

.timeline-axis {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: auto;
  min-height: 28px;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 8px;
  width: calc(var(--timeline-offset) + var(--timeline-width));
  padding: 8px 0;
  border-radius: var(--radius);
  border: 0;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.98) 0%, rgba(232, 240, 252, 0.94) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 18px 34px -32px rgba(15, 23, 42, 0.36);
  overflow: visible;
}

.timeline-axis--ghost {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 18px;
  margin-bottom: 6px;
  padding: 8px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.96) 0%, rgba(233, 241, 252, 0.92) 100%);
  border: 1px solid rgba(191, 219, 254, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 18px 34px -32px rgba(15, 23, 42, 0.36);
}

.timeline-axis-ghost__row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

.timeline-axis-ghost__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(18, 50, 90, 0.92) 0%, rgba(41, 95, 190, 0.92) 100%);
  color: #f8fbff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 20px -18px rgba(18, 50, 90, 0.9);
}

.timeline-axis-stack__row {
  position: relative;
  display: grid;
  grid-template-columns: var(--timeline-offset) var(--timeline-width);
  align-items: stretch;
  width: calc(var(--timeline-offset) + var(--timeline-width));
  padding: 0;
}

.timeline-axis-stack__badge {
  position: static;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 18px;
  margin-right: var(--lane-column-gap);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(18, 50, 90, 0.94) 0%, rgba(41, 95, 190, 0.94) 100%);
  color: #f8fbff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 20px -18px rgba(18, 50, 90, 0.9);
}

.timeline-axis-stack__row .timeline-axis__row {
  width: var(--timeline-width);
}

.timeline-axis-stack__row .timeline-axis__unit {
  color: #274060;
}

.timeline-axis-stack__row.is-primary .timeline-axis__row {
  border-color: rgba(37, 99, 235, 0.42);
  background: linear-gradient(135deg, #12325a 0%, #244a84 46%, #295fbe 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.timeline-axis-stack__row.is-primary .timeline-axis__unit {
  color: #f8fbff;
}

.timeline-axis__row {
  display: grid;
  min-height: 22px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, 0.22);
  background: rgba(255, 255, 255, 0.78);
}

.timeline-axis--ghost .timeline-axis__unit {
  justify-content: flex-start;
  align-items: center;
  min-width: 0;
  min-height: 22px;
  padding-left: 8px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(44, 62, 86, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-axis__row--year .timeline-axis__unit {
  justify-content: flex-start;
  padding-left: 10px;
  font-size: 10px;
  font-weight: 800;
  color: rgba(74, 90, 116, 0.92);
}

.timeline-axis__row--years .timeline-axis__unit {
  justify-content: flex-start;
  padding-left: 10px;
  font-size: 10px;
  font-weight: 900;
  color: rgba(39, 64, 96, 0.94);
}

.timeline-axis__row--months .timeline-axis__unit {
  font-size: 10px;
}

body[data-scale-mode="weeks"] .timeline-axis__row--months .timeline-axis__unit {
  font-size: 11px;
  font-weight: 800;
  color: rgba(69, 85, 109, 0.9);
}

body[data-scale-mode="weeks"] .timeline-axis__row--year .timeline-axis__unit {
  font-size: 9px;
  font-weight: 700;
  color: rgba(100, 116, 139, 0.88);
}

body[data-scale-mode] .timeline-axis-stack__row.is-primary .timeline-axis__unit,
body[data-scale-mode] .timeline-axis-stack__row.is-primary .timeline-axis__unit.is-month-start {
  color: var(--cream, #f8fbff);
}

.timeline-axis__row--weeks .timeline-axis__unit {
  font-size: 10px;
  color: rgba(71, 85, 105, 0.9);
}

.timeline-axis__row--quarters .timeline-axis__unit {
  font-size: 10px;
}

.timeline-axis__row--days .timeline-axis__unit {
  justify-content: center;
  padding-left: 0;
  font-size: 11px;
  color: rgba(71, 85, 105, 0.9);
}

.timeline-axis--ghost .timeline-axis__unit::before {
  background: rgba(148, 163, 184, 0.14);
}

.timeline-axis__unit {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 12px;
  font-size: 11px;
  font-weight: 800;
  color: var(--axis-text);
}

.timeline-axis__unit.is-month-start {
  color: #ffffff;
  font-weight: 900;
}

.timeline-axis-stack__row .timeline-axis__unit.is-month-start {
  color: #12325a;
}

.timeline-axis-stack__row.is-primary .timeline-axis__unit.is-month-start {
  color: #ffffff;
}

.topbar,
.timeline-year-control,
.segmented,
.segmented button,
.ghost-button,
.primary-button,
.library-button,
.add-rail,
.canvas-frame,
.inspector,
.inspector-field input,
.inspector-field select,
.inspector-field textarea,
.lane-card,
.lane-add,
.lane-delete-button,
.lane-resize-handle,
.lane-track__row-toggle,
.timeline-axis,
.timeline-axis__row,
.timeline-axis-stack__badge,
.timeline-item--phase,
.timeline-release-add,
.config-modal__dialog,
.config-modal__preview,
.config-modal__migration,
.config-modal__impact {
  border-radius: var(--radius);
}

.timeline-axis__year {
  position: absolute;
  left: 12px;
  top: 6px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(248, 251, 255, 0.92);
}

.timeline-axis__unit::before,
.lane-track__gridline {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.18);
}

.grid-hidden .timeline-axis__unit::before,
.grid-hidden .lane-track__gridline,
.grid-hidden .lane-track__rowguide {
  display: none;
}

.lane-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lane-row {
  display: grid;
  grid-template-columns: var(--lane-label-width) var(--timeline-width);
  gap: var(--lane-column-gap);
  align-items: stretch;
  max-width: 100%;
}

.lane-card,
.lane-add {
  border: 1px solid var(--border);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(246,249,253,0.82) 100%);
  box-shadow: 0 12px 28px -24px rgba(15, 23, 42, 0.35);
}

.lane-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 14px 12px 16px;
  width: 100%;
  margin: 0;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(245,248,252,0.9) 100%);
  overflow: hidden;
  height: 100%;
  cursor: pointer;
}

.lane-card.is-selected {
  border-color: rgba(47, 111, 237, 0.44);
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.08), 0 12px 28px -24px rgba(15, 23, 42, 0.35);
}

.save-feedback {
  min-width: 118px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: right;
  transition: color 180ms ease, opacity 180ms ease;
}

.save-feedback.is-pending {
  color: #2458b6;
}

.save-feedback.is-saved {
  color: #0f766e;
}

.lane-delete-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.86);
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 10px 20px -20px rgba(15, 23, 42, 0.45);
  transition: 150ms ease;
}

.lane-delete-button:hover {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(254, 242, 242, 0.96);
  color: #b91c1c;
}

.lane-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 38px;
  background: var(--lane-accent, rgba(148, 163, 184, 0.18));
}

.lane-name,
.lane-description {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
}

.lane-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 32px 0 6px;
}

.lane-color-input {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.lane-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.lane-color-input::-webkit-color-swatch {
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 999px;
}

.lane-name {
  flex: 1;
  margin-top: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  padding-left: 0;
  line-height: 1.15;
  cursor: text;
}

.lane-description {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  padding-left: 6px;
  line-height: 1.3;
  cursor: text;
}

.lane-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: auto 6px 14px;
  padding-top: 12px;
}

.lane-card__meta {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lane-resize-handle {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: ns-resize;
}

.lane-resize-handle::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 3px auto 0;
  border-radius: 0;
  background: rgba(148, 163, 184, 0.38);
  transition: 150ms ease;
}

.lane-card:hover .lane-resize-handle::before {
  background: rgba(71, 85, 105, 0.56);
}

.lane-add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  border-style: dashed;
  background: rgba(255,255,255,0.64);
  width: 100%;
  margin: 0;
}

.lane-stack {
  display: contents;
}

.lane-track {
  position: relative;
  min-height: 78px;
  width: 100%;
  margin: 0;
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 0;
  background: linear-gradient(180deg, var(--lane-track-start, rgba(244, 247, 251, 0.64)) 0%, var(--lane-track-end, rgba(248,250,252,0.86)) 100%);
  overflow: hidden;
}

.lane-track.is-selected {
  border-color: rgba(47, 111, 237, 0.28);
  box-shadow: inset 0 0 0 2px rgba(47, 111, 237, 0.08);
}

.lane-quick-add {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  display: flex;
  gap: 4px;
  opacity: 1;
  transform: translateY(0);
  transition: 150ms ease;
}

.lane-quick-add button {
  min-width: 24px;
  height: 24px;
  border: 1px solid rgba(214, 227, 243, 0.94);
  border-radius: 0;
  background: rgba(255,255,255,0.9);
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px -22px rgba(15, 23, 42, 0.24);
}

.lane-track__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.lane-track__row-highlight {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid color-mix(in srgb, var(--lane-highlight-accent, var(--highlight-contrast, #48627f)) 58%, white);
  border-bottom: 1px solid color-mix(in srgb, var(--lane-highlight-accent, var(--highlight-contrast, #48627f)) 38%, white);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--lane-highlight-accent, var(--highlight-contrast, #48627f)) 24%, white) 0%, rgba(255, 255, 255, 0.28) 16%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, color-mix(in srgb, var(--lane-highlight-accent, var(--highlight-contrast, #48627f)) 12%, white) 0%, color-mix(in srgb, var(--lane-highlight-accent, var(--highlight-contrast, #48627f)) 22%, white) 48%, color-mix(in srgb, var(--lane-highlight-accent, var(--highlight-contrast, #48627f)) 10%, white) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 12px 24px -22px color-mix(in srgb, var(--lane-highlight-accent, var(--highlight-contrast, #48627f)) 48%, transparent);
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.lane-track__row-highlight::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--lane-highlight-accent, var(--highlight-contrast, #48627f)) 82%, white), color-mix(in srgb, var(--lane-highlight-accent, var(--highlight-contrast, #48627f)) 54%, black));
}

.lane-track__row-highlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.18) 0 14px, rgba(255, 255, 255, 0) 14px 32px);
  opacity: 0.55;
}

.lane-track__row-preview {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed color-mix(in srgb, var(--highlight-contrast, #48627f) 42%, white);
  border-bottom: 1px dashed color-mix(in srgb, var(--highlight-contrast, #48627f) 42%, white);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--highlight-contrast, #48627f) 8%, white), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 1;
}

.lane-track__gridline {
  top: 0;
  bottom: 0;
  height: auto;
}

.lane-track__rowguide {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(71, 85, 105, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.lane-track__row-controls {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 32px;
  z-index: 4;
  pointer-events: none;
}

.lane-track__row-toggle {
  position: absolute;
  right: 0;
  width: 38px;
  height: 78px;
  border: 1px solid rgba(191, 219, 254, 0.4);
  border-right: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(233, 240, 250, 0.72) 100%);
  color: rgba(42, 65, 95, 0.92);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.05;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 14px 22px -26px rgba(15, 23, 42, 0.5);
  pointer-events: auto;
  transition: background 140ms ease, color 140ms ease, transform 120ms ease, box-shadow 140ms ease;
}

.lane-track__row-toggle {
  border-radius: 0;
}

.lane-track__row-toggle.is-active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--lane-highlight-accent, var(--highlight-contrast, #48627f)) 28%, white) 0%, color-mix(in srgb, var(--lane-highlight-accent, var(--highlight-contrast, #48627f)) 18%, white) 100%);
  color: #183454;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lane-highlight-accent, var(--highlight-contrast, #48627f)) 36%, white), 0 16px 24px -24px color-mix(in srgb, var(--lane-highlight-accent, var(--highlight-contrast, #48627f)) 54%, transparent);
}

.lane-track__row-toggle:hover {
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
}

.lane-track__row-toggle:active {
  transform: scale(0.97);
}

.lane-track__row-toggle-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(219, 234, 254, 0.92) 100%);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.42), 0 8px 18px -14px rgba(15, 23, 42, 0.48);
}

.lane-track__row-toggle-icon::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0.34) 100%);
}

.lane-track__row-toggle-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.92);
  transform: translate(-50%, -50%);
}

.lane-track__row-toggle.is-active .lane-track__row-toggle-icon {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(219, 234, 254, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.42), 0 12px 22px -16px rgba(37, 99, 235, 0.56);
}

.lane-track__row-toggle.is-active .lane-track__row-toggle-icon::before {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.34) 0%, rgba(37, 99, 235, 0.62) 100%);
}

.lane-track__row-toggle.is-active .lane-track__row-toggle-icon::after {
  background: #ffffff;
}

.phase-group-guide {
  position: absolute;
  width: 1px;
  border-radius: 0;
  background: color-mix(in srgb, var(--group-color, #245C4F) 30%, white);
  box-shadow: none;
  opacity: 0.72;
  pointer-events: none;
  z-index: 1;
}

.phase-group-guide__branch {
  position: absolute;
  left: 0;
  height: 1px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--group-color, #245C4F) 30%, white);
  transform: translateY(-1px);
}

.phase-group-guide__branch--parent {
  opacity: 0.72;
}

.timeline-item {
  position: absolute;
  top: 18px;
  z-index: 2;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 10px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 16px 28px -24px rgba(15, 23, 42, 0.42);
  cursor: grab;
  user-select: none;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  overflow: visible;
}

.timeline-item--phase {
  border-radius: 8px;
  height: 52px;
}

.timeline-item--phase.is-subphase {
  border: 1px solid color-mix(in srgb, var(--phase-color, #245C4F) 22%, white);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--phase-color, #245C4F) 34%, white) 0%, color-mix(in srgb, var(--phase-color, #245C4F) 44%, white) 100%) !important;
  color: #24311f !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44), 0 10px 18px -22px rgba(15, 23, 42, 0.42);
}

.timeline-item--phase .timeline-item__title,
.timeline-item--phase .timeline-item__subtitle {
  padding-left: 4px;
  padding-right: 142px;
}

.timeline-item--phase.is-subphase .timeline-item__title,
.timeline-item--phase.is-subphase .timeline-item__subtitle {
  padding-left: 18px;
}

.timeline-item--phase.is-compact .timeline-item__title,
.timeline-item--phase.is-compact .timeline-item__subtitle {
  padding-right: 4px;
}

.timeline-item--phase.is-tight .timeline-item__subtitle {
  display: none;
}

.timeline-item__connector {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  z-index: 3;
  cursor: crosshair;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.timeline-item__connector::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: rgba(71, 85, 105, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.68);
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.timeline-item__connector--top {
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
}

.timeline-item__connector--right {
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-item__connector--bottom {
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
}

.timeline-item__connector--left {
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-item--phase:hover .timeline-item__connector,
.timeline-item--phase.is-selected .timeline-item__connector,
.is-connecting .timeline-item--phase .timeline-item__connector,
.timeline-item__connector.is-active {
  opacity: 1;
  pointer-events: auto;
}

.timeline-item__connector:hover::before,
.timeline-item__connector.is-active::before,
.timeline-item__connector.is-candidate::before {
  background: #1f2937;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
  transform: scale(1.08);
}

.timeline-item__connector--right:hover,
.timeline-item__connector--right.is-active,
.timeline-item__connector--left:hover,
.timeline-item__connector--left.is-active {
  transform: translateY(-50%);
}

.timeline-item.is-connection-source {
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12), 0 18px 30px -24px rgba(15, 23, 42, 0.48);
}

.timeline-item.is-connection-target {
  box-shadow: 0 0 0 6px rgba(30, 64, 175, 0.08), 0 18px 30px -24px rgba(15, 23, 42, 0.48);
}

.timeline-connection-path--draft {
  stroke-dasharray: 6 6;
  opacity: 0.7;
}

.timeline-item:hover {
  transform: translateY(-1px);
}

.timeline-item.is-dragging {
  cursor: grabbing;
  transform: translateY(-2px);
  box-shadow: 0 20px 32px -22px rgba(15, 23, 42, 0.5);
}

.is-resizing-item,
.is-resizing-item * {
  cursor: ew-resize !important;
}

.is-resizing-item .timeline-item__drag-handle {
  opacity: 0 !important;
  pointer-events: none !important;
}

.timeline-item__drag-handle {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  cursor: grab;
  opacity: 0;
  z-index: 4;
  transform: translateX(-50%);
  box-shadow: 0 10px 18px -16px rgba(15, 23, 42, 0.45);
  transition: opacity 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.timeline-item__drag-handle::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 2px;
  background: radial-gradient(circle, rgba(71, 85, 105, 0.84) 1px, transparent 1.5px) 0 0 / 6px 6px;
}

.timeline-item:hover .timeline-item__drag-handle,
.timeline-item.is-selected .timeline-item__drag-handle {
  opacity: 1;
}

.timeline-item__drag-handle:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 12px 22px -16px rgba(15, 23, 42, 0.52);
}

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

.is-connecting .timeline-item__drag-handle,
.is-connecting .timeline-item__resize {
  opacity: 0 !important;
  pointer-events: none !important;
}

.timeline-item.is-origin-drag {
  opacity: 0.24;
}

.timeline-item--ghost {
  opacity: 0.72;
  pointer-events: none;
  border-style: dashed;
  border-width: 1px;
  border-color: rgba(47, 111, 237, 0.3);
  box-shadow: 0 10px 18px -18px rgba(15, 23, 42, 0.22);
}

.timeline-item--ghost .timeline-item__title,
.timeline-item--ghost .timeline-item__subtitle {
  pointer-events: none;
}

.timeline-item.is-selected {
  outline: 2px solid rgba(47, 111, 237, 0.38);
  box-shadow: 0 0 0 6px rgba(47, 111, 237, 0.08), 0 18px 30px -24px rgba(15, 23, 42, 0.48);
}

.timeline-item--release.is-selected {
  outline: 0;
  box-shadow: none;
}

.timeline-item--release.is-selected .timeline-item__release-body {
  border-color: rgba(96, 165, 250, 0.98);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12), 0 12px 24px -18px rgba(37, 99, 235, 0.32);
}

.timeline-item--release.is-selected .timeline-item__marker--release-dot {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.timeline-item__title,
.timeline-item__subtitle {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  outline: none;
  pointer-events: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-item__schedule-inline,
.timeline-item__assignee,
.timeline-item__release-body,
.timeline-item__marker,
.timeline-item__phase-cap,
.timeline-item__range-flag {
  pointer-events: none;
}

.timeline-item__schedule-inline {
  position: absolute;
  top: 7px;
  right: 7px;
  max-width: calc(100% - 18px);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(2px);
}

.timeline-item--phase.is-compact .timeline-item__schedule-inline {
  display: none;
}

.timeline-item__assignee {
  position: absolute;
  right: 9px;
  bottom: 6px;
  z-index: 2;
  max-width: min(126px, calc(100% - 18px));
  min-width: 0;
  padding: 4px 9px 4px 20px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.94);
  color: #17362f;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: none;
  box-shadow: 0 6px 14px -12px rgba(15, 23, 42, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.timeline-item__assignee::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.timeline-item__assignee--person {
  background: rgba(255, 250, 240, 0.96);
}

.timeline-item__assignee--person::before {
  background: currentColor;
  opacity: 0.8;
}

.timeline-item__assignee--team {
  border-radius: 7px;
  background: rgba(255, 250, 240, 0.96);
  letter-spacing: 0;
  text-transform: uppercase;
}

.timeline-item__assignee--team::before {
  width: 9px;
  height: 5px;
  border-radius: 3px;
  background: currentColor;
  box-shadow: 4px 0 0 currentColor;
  opacity: 0.72;
}

.timeline-item--phase.is-compact .timeline-item__assignee,
.timeline-item--phase.is-tight .timeline-item__assignee {
  display: none;
}

.timeline-item--milestone .timeline-item__assignee {
  right: 50%;
  bottom: 5px;
  max-width: calc(100% - 16px);
  transform: translateX(50%);
  font-size: 9px;
  background: rgba(255, 255, 255, 0.92);
  color: #17362f;
}

.timeline-item--release .timeline-item__assignee {
  position: relative;
  display: inline-flex;
  max-width: 126px;
  margin: 2px auto 0;
  transform: none;
  background: rgba(255, 255, 255, 0.92);
  color: #17362f;
}

.timeline-item__phase-cap {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16px;
  background: inherit;
}

.timeline-item__phase-cap--start {
  left: 0;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  opacity: 0.12;
}

.timeline-item__phase-cap--end {
  right: -1px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.timeline-item__range-flag {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  opacity: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.84) 0 3px, rgba(255, 255, 255, 0.18) 3px 6px);
}

.timeline-item__range-flag--start {
  left: 0;
  border-right: 1px dashed rgba(255, 255, 255, 0.88);
}

.timeline-item__range-flag--end {
  right: 0;
  border-left: 1px dashed rgba(255, 255, 255, 0.88);
}

.timeline-item.is-outside-range-start .timeline-item__phase-cap--start,
.timeline-item.is-outside-range-end .timeline-item__phase-cap--end {
  opacity: 0;
}

.timeline-item.is-outside-range-start .timeline-item__range-flag--start,
.timeline-item.is-outside-range-end .timeline-item__range-flag--end {
  opacity: 0.95;
}

.timeline-item__resize {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition: opacity 140ms ease, background 140ms ease;
  z-index: 2;
}

.timeline-item__resize::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
  box-shadow: -3px 0 0 rgba(255, 255, 255, 0.45), 3px 0 0 rgba(255, 255, 255, 0.45);
}

.timeline-item__resize--start {
  left: 4px;
  cursor: ew-resize;
}

.timeline-item__resize--end {
  right: 4px;
  cursor: ew-resize;
}

.timeline-item--phase:hover .timeline-item__resize,
.timeline-item--phase.is-selected .timeline-item__resize {
  opacity: 1;
}

.timeline-item__resize:hover {
  background: rgba(255, 255, 255, 0.28);
}

.is-resizing-item .timeline-item__resize {
  opacity: 0;
  pointer-events: none;
}

.is-resizing-item .timeline-item.is-selected .timeline-item__resize {
  opacity: 1;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.32);
}

.is-resizing-item .timeline-item {
  transition: none;
}

.timeline-item__title {
  font-size: 12px;
  font-weight: 800;
}

.timeline-item__subtitle {
  margin-top: 2px;
  font-size: 10px;
  opacity: 0.72;
}

.timeline-item--milestone,
.timeline-item--release {
  min-height: auto;
}

.timeline-item--milestone {
  height: 52px;
  padding: 14px 10px 8px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.98) 0%, rgba(255, 243, 224, 0.94) 100%);
  color: #5a3a00;
  box-shadow: 0 12px 22px -24px rgba(180, 83, 9, 0.42);
}

.timeline-item--milestone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 1px;
  height: 10px;
  background: rgba(180, 83, 9, 0.24);
  transform: translateX(-50%);
  pointer-events: none;
}

.timeline-item--milestone .timeline-item__title,
.timeline-item--milestone .timeline-item__subtitle {
  color: #5a3a00;
  text-align: center;
}

.timeline-item--milestone .timeline-item__title {
  font-size: 11px;
  line-height: 1.15;
}

.timeline-item--milestone .timeline-item__subtitle {
  margin-top: 1px;
  font-size: 9px;
  opacity: 0.56;
}

.timeline-item--milestone .timeline-item__drag-handle {
  top: -2px;
}

.timeline-item--release {
  padding: 0;
  min-width: 84px;
  min-height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #295bb0;
  box-shadow: none;
  overflow: visible;
}

.timeline-item--release .timeline-item__title,
.timeline-item--release .timeline-item__subtitle {
  color: #2458b6;
  text-align: center;
}

.timeline-item--release .timeline-item__release-body {
  pointer-events: auto;
  cursor: grab;
}

.timeline-item--release.is-dragging .timeline-item__release-body,
.timeline-item--release .timeline-item__release-body:active {
  cursor: grabbing;
}

.timeline-item--release .timeline-item__drag-handle {
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
  background: rgba(37, 99, 235, 0.1);
  width: 16px;
  height: 4px;
  opacity: 0;
  border-radius: 999px;
  transition: opacity 140ms ease, background 140ms ease;
}

.timeline-item--release:hover .timeline-item__drag-handle,
.timeline-item--release.is-selected .timeline-item__drag-handle {
  opacity: 1;
}

.timeline-item--release .timeline-item__subtitle {
  opacity: 0.72;
}

.timeline-item__marker {
  position: absolute;
}

.timeline-item__marker--milestone {
  left: 50%;
  top: -1px;
  width: 9px;
  height: 9px;
  border: 1.5px solid rgba(180, 83, 9, 0.72);
  background: rgba(255, 251, 235, 0.98);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
  box-shadow: 0 0 0 2px rgba(255, 248, 235, 0.88);
}

.timeline-item__marker--release {
  position: static;
  display: inline-flex;
  align-items: center;
  margin-bottom: 2px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #295bb0;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-item__marker--release-dot {
  left: 50%;
  bottom: 0;
  width: 6px;
  height: 6px;
  border: 1.5px solid rgba(37, 99, 235, 0.82);
  border-radius: 999px;
  background: white;
  transform: translate(-50%, 50%);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.timeline-item__release-line {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: var(--release-line-height);
  background: linear-gradient(180deg, rgba(89, 128, 214, 0.52) 0%, rgba(89, 128, 214, 0.12) 100%);
  transform: translateX(-50%);
  pointer-events: none;
}

.timeline-item__release-body {
  position: absolute;
  bottom: 1px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--release-body-width, 82px);
  min-width: 82px;
  max-width: 240px;
  padding: 4px 6px 5px;
  border: 1px solid rgba(191, 219, 254, 0.84);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(233, 242, 255, 0.94) 100%);
  box-shadow: 0 10px 18px -18px rgba(37, 99, 235, 0.18);
  transform: translateX(-50%);
}

.timeline-item--release .timeline-item__title {
  width: 100%;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 800;
}

.timeline-item--release .timeline-item__subtitle {
  width: 100%;
  margin-top: 1px;
  font-size: 8px;
  line-height: 1.15;
}

.today-tracker {
  position: absolute;
  top: 0;
  width: 0;
  min-height: 100%;
  border-left: 1px solid rgba(205, 45, 67, 0.42);
  opacity: 0.78;
  transform: translateX(-0.5px);
  pointer-events: none;
  z-index: 3;
}

.today-tracker::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -0.5px;
  width: 1px;
  background: linear-gradient(180deg, rgba(205, 45, 67, 0.18), rgba(205, 45, 67, 0.06));
}

.today-tracker span {
  position: absolute;
  top: -20px;
  left: 50%;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(205, 45, 67, 0.78);
  color: #ffffff;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.07em;
  transform: translateX(-50%);
  box-shadow: 0 8px 14px -14px rgba(103, 22, 34, 0.54);
}

.today-tracker--canvas {
  min-height: 0;
  contain: layout;
  z-index: 1;
}

.lane-track .today-tracker span {
  display: none;
}

.timeline-release-rail {
  position: relative;
  height: 74px;
  margin-top: 12px;
  margin-bottom: 6px;
  margin-left: var(--timeline-offset);
  margin-right: 0;
  width: var(--timeline-width);
  max-width: none;
  overflow: visible;
}

.timeline-release-add {
  position: absolute;
  right: 0;
  top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(214, 227, 243, 0.96);
  background: rgba(255, 255, 255, 0.98);
  color: #334155;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 18px -20px rgba(15, 23, 42, 0.2);
}

.timeline-release-add:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(239, 246, 255, 0.98);
  color: #1d4ed8;
}

.timeline-release-add__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 11px;
  height: 11px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.timeline-release-add__label {
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-viewport-scrollbar {
  position: relative;
  width: calc(100% - var(--timeline-offset));
  max-width: none;
  height: 8px;
  margin-top: 10px;
  margin-left: var(--timeline-offset);
  border-radius: 0;
  border: 1px solid rgba(226, 232, 240, 0.72);
  background: linear-gradient(180deg, rgba(226, 232, 240, 0.5) 0%, rgba(226, 232, 240, 0.28) 100%);
  overflow: hidden;
  cursor: pointer;
}

.timeline-viewport-scrollbar[hidden] {
  display: none;
}

.timeline-viewport-scrollbar__thumb {
  position: absolute;
  top: 1px;
  bottom: 1px;
  min-width: 32px;
  border-radius: 0;
  border: 1px solid rgba(71, 85, 105, 0.08);
  background: linear-gradient(180deg, rgba(100, 116, 139, 0.76) 0%, rgba(71, 85, 105, 0.8) 100%);
  box-shadow: 0 6px 10px -12px rgba(15, 23, 42, 0.28);
  cursor: grab;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.timeline-viewport-scrollbar__thumb:hover {
  background: linear-gradient(180deg, rgba(71, 85, 105, 0.86) 0%, rgba(51, 65, 85, 0.88) 100%);
  box-shadow: 0 8px 12px -12px rgba(15, 23, 42, 0.34);
}

.timeline-viewport-scrollbar__thumb:active {
  cursor: grabbing;
}

.timeline-note {
  flex-shrink: 0;
  min-width: 104px;
  padding: 6px 8px;
}

.release-item {
  position: absolute;
  top: 8px;
}

.selection-toolbar {
  position: absolute;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 30px -28px rgba(15, 23, 42, 0.34);
  min-width: 204px;
  max-width: 232px;
}

.selection-toolbar__main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.selection-toolbar__fields {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.selection-toolbar__advanced {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
  border-top: 1px solid rgba(226, 232, 240, 0.88);
}

.selection-toolbar__range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.selection-toolbar__range-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tertiary);
}

.selection-toolbar__title,
.selection-toolbar__subtitle,
.selection-toolbar__range-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 7px 9px;
  background: rgba(248, 250, 252, 0.72);
  color: var(--text);
  outline: none;
  font-size: 12px;
  font-weight: 700;
}

.selection-toolbar__subtitle {
  font-weight: 600;
  color: var(--muted);
}

.selection-toolbar__range-input {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.selection-toolbar__actions {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.selection-toolbar button {
  border: 0;
  border-radius: 0;
  padding: 6px 8px;
  background: rgba(241,245,249,0.8);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.selection-toolbar__icon-button,
.selection-toolbar__toggle {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(226, 232, 240, 0.84);
  background: rgba(248, 250, 252, 0.76);
  color: #334155;
}

.selection-toolbar__toggle.is-open {
  background: rgba(226, 232, 240, 0.92);
}

.selection-toolbar__palette {
  display: flex;
  align-items: center;
  gap: 6px;
}

.selection-toolbar .color-dot {
  width: 24px;
  height: 24px;
  padding: 0;
  background: var(--dot);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06), 0 8px 12px -10px rgba(15, 23, 42, 0.24);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.selection-toolbar .color-dot:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06), 0 10px 16px -12px rgba(15, 23, 42, 0.32);
}

.connection-mode-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -2px 0 8px var(--timeline-offset);
  padding: 8px 10px;
  width: fit-content;
  border: 1px solid rgba(191, 219, 254, 0.95);
  background: rgba(239, 246, 255, 0.94);
  color: #1e3a8a;
  font-size: 12px;
  box-shadow: 0 12px 20px -22px rgba(37, 99, 235, 0.55);
}

.connection-mode-banner strong {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.present-mode .add-rail,
.present-mode .inspector,
.present-mode .topbar,
.present-mode .canvas-toolbar,
.present-mode .timeline-note,
.present-mode .selection-toolbar {
  display: none;
}

.present-mode .workspace {
  grid-template-columns: 1fr;
}

.present-mode .timeline-card {
  border-color: rgba(255,255,255,0.95);
}

.present-mode .canvas-frame {
  width: 100%;
  min-height: 100vh;
  border: 0;
  background: #f7fafc;
  box-shadow: none;
}

.present-mode .canvas-scroll {
  min-height: 100vh;
  padding: 14px;
}

.present-mode .timeline-card {
  max-width: none;
}

.present-mode .presentation-exit-button {
  display: inline-flex;
}

.canvas-frame:fullscreen,
.canvas-frame:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  overflow: auto;
  padding: 0;
  background: #f7fafc;
}

@media (max-width: 1200px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar__actions {
    width: 100%;
    justify-content: space-between;
  }

  .topbar__controls {
    justify-content: flex-start;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .add-rail,
  .canvas-frame,
  .inspector {
    grid-column: auto;
    position: static;
    max-height: none;
  }

  .add-rail {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .add-rail__header {
    writing-mode: initial;
    transform: none;
  }

  .add-rail__stack {
    flex-direction: row;
  }

  .add-rail__hint {
    margin: 0;
    text-align: right;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 10px;
  }

  .topbar {
    gap: 12px;
    padding: 12px 14px;
  }

  .topbar__actions {
    gap: 8px;
  }

  .planning-frame,
  .topbar__view-actions {
    width: 100%;
  }

  .phase-composer__grid {
    grid-template-columns: 1fr;
  }

  .phase-composer__field--wide {
    grid-column: span 1;
  }

  .phase-composer__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .phase-composer__actions {
    width: 100%;
  }

  .add-rail {
    flex-wrap: wrap;
    gap: 10px;
  }

  .add-rail__header,
  .add-rail__hint {
    width: 100%;
    text-align: left;
  }
}

/* Premium polish layer: keeps the existing product structure intact while
   upgrading hierarchy, depth, interaction states, and presentation quality. */
:root {
  --bg: #edf3ef;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-soft: rgba(248, 246, 239, 0.78);
  --border: rgba(103, 119, 106, 0.16);
  --border-strong: rgba(56, 77, 70, 0.22);
  --text: #17251f;
  --muted: #65746b;
  --tertiary: #8a9a90;
  --grid: rgba(64, 88, 78, 0.08);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow: 0 28px 80px -54px rgba(21, 37, 31, 0.52);
  --shadow-soft: 0 18px 46px -34px rgba(27, 43, 36, 0.34);
  --shadow-lift: 0 26px 58px -38px rgba(22, 42, 35, 0.46);
  --ink: #17251f;
  --cream: #fffaf0;
  --paper: #fbf8ef;
  --pine: #163f36;
  --pine-2: #245c4f;
  --clay: #b86945;
  --gold: #d99a2b;
  --sky: #3d7d93;
  --axis-bg: #163f36;
  --axis-text: #fffaf0;
  --highlight-contrast: #245c4f;
}

html {
  background: #e8f0eb;
}

body {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  background:
    radial-gradient(circle at 12% -6%, rgba(217, 154, 43, 0.18), transparent 31%),
    radial-gradient(circle at 86% 0%, rgba(61, 125, 147, 0.2), transparent 34%),
    radial-gradient(circle at 55% 114%, rgba(22, 63, 54, 0.14), transparent 35%),
    linear-gradient(135deg, #f6f1e6 0%, #edf5ef 48%, #e4eef2 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(22, 37, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 37, 31, 0.026) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.22));
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(217, 154, 43, 0.34);
  outline-offset: 2px;
}

.app-shell {
  padding: 14px;
}

.topbar,
.add-rail,
.canvas-frame,
.inspector,
.timeline-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 30;
  min-height: 86px;
  padding: 13px 16px;
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(255, 252, 244, 0.92), rgba(247, 251, 247, 0.84) 58%, rgba(235, 246, 249, 0.82)),
    rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px) saturate(1.2);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(217, 154, 43, 0.2), transparent 30%, rgba(61, 125, 147, 0.18) 78%, transparent);
  opacity: 0.7;
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.eyebrow,
.panel-label,
.canvas-badge,
.timeline-note span {
  color: #829087;
  letter-spacing: 0.22em;
}

.document-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
  font-weight: 760;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.document-subtitle {
  color: #6f7d75;
}

.topbar__title-field input {
  padding: 2px 0 3px;
  border-bottom: 1px solid rgba(56, 77, 70, 0.14);
  transition: border-color 150ms ease, background 150ms ease;
}

.topbar__title-field input:hover,
.topbar__title-field input:focus {
  border-bottom-color: rgba(184, 105, 69, 0.46);
  background: rgba(255, 250, 240, 0.44);
}

.planning-frame {
  min-width: 238px;
  padding: 10px 14px;
  border: 1px solid rgba(48, 75, 66, 0.12);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.planning-frame:hover {
  transform: translateY(-1px);
  border-color: rgba(184, 105, 69, 0.26);
  background: rgba(255, 250, 240, 0.86);
  box-shadow: var(--shadow-soft);
}

.planning-frame__summary {
  color: var(--pine);
}

.planning-frame__detail {
  color: #6d7a73;
}

.topbar__group {
  gap: 7px;
  padding-left: 10px;
  border-left-color: rgba(83, 105, 95, 0.14);
}

.scale-switcher-label {
  color: #839288;
}

.segmented {
  gap: 3px;
  padding: 4px;
  border-color: rgba(37, 92, 79, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 18px 34px -30px rgba(22, 63, 54, 0.38);
}

.segmented button {
  border-radius: 999px;
  color: #5d7068;
}

.segmented button:hover {
  background: rgba(236, 241, 235, 0.92);
  color: var(--pine);
}

.segmented button.is-active {
  background: linear-gradient(135deg, var(--pine) 0%, var(--pine-2) 58%, #2f6f62 100%);
  color: var(--cream);
  box-shadow: 0 14px 28px -20px rgba(22, 63, 54, 0.72);
}

.ghost-button,
.library-button,
.selection-toolbar button {
  border-color: rgba(56, 77, 70, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #263b34;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.ghost-button:hover,
.library-button:hover,
.selection-toolbar button:hover {
  transform: translateY(-1px);
  border-color: rgba(36, 92, 79, 0.24);
  background: rgba(255, 250, 240, 0.94);
  box-shadow: var(--shadow-soft);
}

.ghost-button--danger {
  color: #9b322f;
}

.ghost-button--danger:hover {
  border-color: rgba(155, 50, 47, 0.22);
  background: rgba(255, 244, 240, 0.96);
}

.primary-button {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pine) 0%, #112f29 100%);
  color: var(--cream);
  box-shadow: 0 18px 38px -26px rgba(22, 63, 54, 0.8);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 42px -28px rgba(22, 63, 54, 0.9);
}

.save-feedback {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 136px;
  width: 136px;
  position: relative;
  color: var(--pine-2);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
}

.save-feedback::before {
  content: "";
  display: inline-flex;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: #2f8f69;
  box-shadow: 0 0 0 4px rgba(47, 143, 105, 0.12);
  vertical-align: 1px;
}

#cloud-save-button {
  min-width: 108px;
  text-align: center;
}

.workspace {
  grid-template-columns: 72px minmax(0, 1fr) minmax(318px, 360px);
  gap: 12px;
}

.add-rail {
  top: 112px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.86), rgba(245, 250, 246, 0.78));
}

.add-rail__button {
  border-radius: 16px;
  border-color: rgba(37, 92, 79, 0.16);
  background: linear-gradient(180deg, #fffdf6 0%, #edf5ef 100%);
  box-shadow: 0 14px 26px -22px rgba(22, 63, 54, 0.34);
}

.add-rail__button:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(184, 105, 69, 0.34);
  box-shadow: 0 22px 34px -26px rgba(22, 63, 54, 0.5);
}

.create-item-popup__option-icon {
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(217, 154, 43, 0.16), rgba(61, 125, 147, 0.14));
  color: var(--pine);
}

.canvas-frame {
  padding: 12px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.74), rgba(239, 247, 242, 0.76)),
    rgba(255, 255, 255, 0.54);
}

.canvas-toolbar {
  padding: 5px 8px 12px;
}

.canvas-scroll {
  padding: 8px;
}

.timeline-card {
  padding: 18px 18px 16px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 248, 239, 0.82)),
    radial-gradient(circle at 8% 0%, rgba(217, 154, 43, 0.12), transparent 28%);
  box-shadow: 0 34px 90px -64px rgba(18, 42, 35, 0.64);
}

.timeline-header {
  margin-bottom: 10px;
}

.canvas-badge {
  color: #89978d;
}

#canvas-title,
.timeline-header h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 27px;
  font-weight: 760;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.timeline-release-rail {
  height: 74px;
  margin-top: 12px;
  margin-bottom: 6px;
  width: var(--timeline-width);
}

.timeline-axis,
.timeline-axis--ghost {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 245, 236, 0.86), rgba(239, 247, 242, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 18px 44px -34px rgba(22, 63, 54, 0.36);
}

.timeline-axis--ghost {
  border: 1px solid rgba(56, 77, 70, 0.1);
}

.timeline-axis-stack__badge,
.timeline-axis-ghost__badge {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pine) 0%, #2f685a 100%);
  color: var(--cream);
}

.timeline-axis-stack__row.is-primary .timeline-axis__row {
  border-color: rgba(22, 63, 54, 0.24);
  background: linear-gradient(135deg, #163f36 0%, #245c4f 52%, #3d7d72 100%);
}

.timeline-axis__row {
  border-radius: 999px;
  border-color: rgba(56, 77, 70, 0.11);
  background: rgba(255, 255, 255, 0.72);
}

.timeline-axis-stack__row .timeline-axis__unit,
.timeline-axis-stack__row .timeline-axis__unit.is-month-start {
  color: #31483f;
}

.timeline-axis-stack__row.is-primary .timeline-axis__unit,
.timeline-axis-stack__row.is-primary .timeline-axis__unit.is-month-start {
  color: var(--cream);
}

.timeline-axis__unit::before,
.lane-track__gridline {
  background: rgba(52, 78, 68, 0.075);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.2);
}

.lane-rows {
  gap: 14px;
}

.lane-card,
.lane-add {
  border-radius: 22px;
  border-color: rgba(56, 77, 70, 0.13);
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.94), rgba(243, 249, 244, 0.84));
  box-shadow: var(--shadow-soft);
}

.lane-card {
  padding: 16px 13px 18px;
}

.lane-card::before {
  width: 42px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0)),
    var(--lane-accent, rgba(148, 163, 184, 0.18));
  opacity: 0.94;
}

.lane-card::after {
  content: "";
  position: absolute;
  left: 42px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.62);
}

.lane-card:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 92, 79, 0.2);
  box-shadow: var(--shadow-lift);
}

.lane-card.is-selected {
  border-color: rgba(184, 105, 69, 0.36);
  box-shadow: 0 0 0 4px rgba(217, 154, 43, 0.12), var(--shadow-lift);
}

.lane-card__top {
  margin-left: 7px;
}

.lane-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.lane-description {
  color: #6c7d73;
}

.lane-card__meta {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: #8c988f;
}

.lane-color-input::-webkit-color-swatch {
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 1px rgba(23, 37, 31, 0.14), 0 8px 14px -10px rgba(22, 63, 54, 0.44);
}

.lane-delete-button {
  border-radius: 999px;
  border-color: rgba(56, 77, 70, 0.12);
  background: rgba(255, 255, 255, 0.62);
}

.lane-resize-handle::before {
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: rgba(107, 122, 114, 0.28);
}

.lane-row {
  position: relative;
  transition: transform 160ms ease, opacity 160ms ease;
}

.lane-card .lane-card__top,
.lane-card .lane-description,
.lane-card .lane-card__actions {
  margin-left: 34px;
}

.lane-card .lane-description {
  padding-left: 0;
}

.lane-drag-handle {
  position: absolute;
  left: 10px;
  top: 12px;
  z-index: 5;
  width: 24px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.54);
  cursor: grab;
  opacity: 0.72;
  box-shadow: 0 10px 18px -16px rgba(22, 63, 54, 0.5);
  transition: opacity 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.lane-drag-handle::before {
  content: "";
  position: absolute;
  inset: 8px 7px;
  background: radial-gradient(circle, rgba(56, 77, 70, 0.74) 1.4px, transparent 1.8px) 0 0 / 5px 5px;
}

.lane-drag-handle:hover,
.lane-card.is-selected .lane-drag-handle {
  opacity: 1;
  background: rgba(255, 255, 255, 0.86);
}

.lane-drag-handle:active,
.lane-card.is-dragging .lane-drag-handle {
  cursor: grabbing;
  transform: scale(0.98);
}

.lane-row.is-lane-dragging {
  opacity: 0.84;
}

.lane-row.is-lane-dragging .lane-card,
.lane-row.is-lane-dragging .lane-track {
  box-shadow: 0 0 0 3px rgba(217, 154, 43, 0.16), var(--shadow-lift);
}

.is-dragging-lane .lane-card:not(.is-dragging),
.is-dragging-lane .lane-track {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.lane-track {
  border-radius: 20px;
  border-color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.14)),
    linear-gradient(180deg, var(--lane-track-start, rgba(244, 247, 251, 0.64)) 0%, var(--lane-track-end, rgba(248, 250, 252, 0.86)) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52), inset 0 -1px 0 rgba(58, 80, 70, 0.04);
}

.lane-track.is-selected {
  border-color: rgba(184, 105, 69, 0.28);
  box-shadow: inset 0 0 0 2px rgba(217, 154, 43, 0.12), var(--shadow-soft);
}

.lane-track__grid {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 12px, transparent 12px 34px);
}

.lane-track__rowguide {
  background: rgba(52, 78, 68, 0.06);
}

.lane-track__row-highlight {
  border-radius: 16px;
  border-top-color: color-mix(in srgb, var(--lane-highlight-accent, var(--highlight-contrast)) 42%, white);
  border-bottom-color: color-mix(in srgb, var(--lane-highlight-accent, var(--highlight-contrast)) 26%, white);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--lane-highlight-accent, var(--highlight-contrast)) 18%, white) 0%, rgba(255, 255, 255, 0.26) 22%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--lane-highlight-accent, var(--highlight-contrast)) 9%, white), color-mix(in srgb, var(--lane-highlight-accent, var(--highlight-contrast)) 16%, white));
}

.lane-track__row-toggle {
  right: 4px;
  width: 32px;
  border-radius: 999px;
  border: 1px solid rgba(56, 77, 70, 0.12);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.lane-track__row-toggle:hover,
.lane-track__row-toggle.is-active {
  background: rgba(255, 250, 240, 0.86);
}

.timeline-item {
  border-radius: 16px;
  letter-spacing: -0.01em;
  box-shadow: 0 18px 36px -26px rgba(14, 31, 26, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.timeline-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 44px -28px rgba(14, 31, 26, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.timeline-item--phase {
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.timeline-item--phase::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 46%);
  mix-blend-mode: screen;
}

.timeline-item.is-selected {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(255, 250, 240, 0.94), 0 0 0 7px rgba(217, 154, 43, 0.42), 0 26px 44px -28px rgba(14, 31, 26, 0.68);
}

.timeline-item__title {
  font-size: 12px;
  font-weight: 800;
}

.timeline-item__subtitle {
  opacity: 0.76;
}

.timeline-item__schedule-inline {
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.timeline-item__drag-handle {
  top: -8px;
  width: 22px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.96);
}

.timeline-item__resize {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.timeline-item__connector::before {
  background: rgba(22, 63, 54, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 250, 240, 0.82), 0 10px 18px -14px rgba(22, 63, 54, 0.5);
}

.timeline-item__connector:hover::before,
.timeline-item__connector.is-active::before,
.timeline-item__connector.is-candidate::before {
  background: var(--clay);
}

.timeline-item--milestone {
  border-radius: 16px;
  border-color: rgba(217, 154, 43, 0.34);
  background: linear-gradient(180deg, #fff9e9 0%, #f6dfb5 100%);
  color: #664211;
  box-shadow: 0 18px 30px -26px rgba(151, 89, 22, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.timeline-item__marker--milestone {
  top: -7px;
  width: 11px;
  height: 11px;
  border-color: rgba(184, 105, 69, 0.78);
  background: #fffaf0;
  box-shadow: 0 0 0 3px rgba(255, 250, 240, 0.96), 0 10px 18px -14px rgba(151, 89, 22, 0.56);
}

.timeline-item--release {
  color: var(--pine);
}

.timeline-item--release .timeline-item__release-body {
  width: var(--release-body-width, 92px);
  min-width: 92px;
  max-width: 240px;
  padding: 6px 7px 7px;
  border-radius: 14px;
  border-color: rgba(36, 92, 79, 0.18);
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(232, 243, 239, 0.94));
  box-shadow: 0 18px 30px -24px rgba(22, 63, 54, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.timeline-item--release .timeline-item__title,
.timeline-item--release .timeline-item__subtitle {
  color: var(--pine);
}

.timeline-item__marker--release {
  background: rgba(184, 105, 69, 0.12);
  color: #8a4a2e;
}

.timeline-item__marker--release-dot {
  width: 8px;
  height: 8px;
  border-color: var(--pine-2);
  box-shadow: 0 0 0 4px rgba(36, 92, 79, 0.1);
}

.timeline-item__release-line {
  width: 2px;
  background: linear-gradient(180deg, rgba(36, 92, 79, 0.42), rgba(36, 92, 79, 0.08));
}

.timeline-release-add {
  top: 16px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border-color: rgba(36, 92, 79, 0.16);
  background: rgba(255, 250, 240, 0.92);
  color: var(--pine);
}

.timeline-release-add:hover {
  border-color: rgba(184, 105, 69, 0.28);
  background: #fffaf0;
  color: #8a4a2e;
}

.timeline-viewport-scrollbar {
  height: 10px;
  border-radius: 999px;
  border-color: rgba(56, 77, 70, 0.1);
  background: rgba(255, 255, 255, 0.52);
}

.timeline-viewport-scrollbar__thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(36, 92, 79, 0.74), rgba(22, 63, 54, 0.82));
}

.inspector {
  top: 112px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.92) 0%, rgba(242, 248, 243, 0.92) 100%),
    rgba(255, 255, 255, 0.72);
}

.inspector-header {
  border-bottom-color: rgba(56, 77, 70, 0.12);
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.98) 0%, rgba(255, 252, 244, 0.9) 78%, rgba(255, 252, 244, 0) 100%);
}

.inspector-header__copy {
  max-width: 28ch;
  color: #6d7b73;
}

.inspector-card {
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border-color: rgba(56, 77, 70, 0.13);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 240, 0.74));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.inspector-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 23px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.inspector-section {
  border-top-color: rgba(56, 77, 70, 0.11);
}

.inspector-section__title,
.inspector-field span,
.inspector-inline-result__label,
.selection-toolbar__range-field {
  color: #89978d;
}

.inspector-field input,
.inspector-field select,
.inspector-field textarea,
.phase-composer__field input,
.phase-composer__field select,
.selection-toolbar__title,
.selection-toolbar__subtitle,
.selection-toolbar__range-input {
  border-radius: 14px;
  border-color: rgba(56, 77, 70, 0.16);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.inspector-field input:focus,
.inspector-field select:focus,
.inspector-field textarea:focus,
.prefill-field input:focus,
.prefill-field select:focus,
.phase-composer__field input:focus,
.phase-composer__field select:focus,
.timeline-year-control input:focus,
.timeline-year-control select:focus,
.lane-name:focus,
.lane-description:focus,
.selection-toolbar__title:focus,
.selection-toolbar__subtitle:focus {
  border-color: rgba(184, 105, 69, 0.42);
  box-shadow: 0 0 0 4px rgba(217, 154, 43, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.inspector-meta,
.inspector-meta--readonly,
.inspector-meta--result {
  border-radius: 14px;
  border-color: rgba(56, 77, 70, 0.13);
  background: rgba(246, 242, 231, 0.66);
  color: #41564e;
}

.inspector-meta--result {
  border-color: rgba(36, 92, 79, 0.18);
  background: rgba(232, 243, 239, 0.78);
  color: var(--pine);
}

.inspector-color-swatch,
.inspector-color-preview,
.inspector-color-custom {
  border-radius: 14px;
}

.inspector-color-swatch {
  height: 34px;
  border-color: rgba(255, 255, 255, 0.72);
}

.inspector-color-swatch.is-active {
  border-color: rgba(255, 250, 240, 0.96);
  box-shadow: 0 0 0 3px rgba(217, 154, 43, 0.28), 0 14px 24px -18px rgba(22, 63, 54, 0.48);
}

.inspector-empty {
  border-radius: 20px;
  border-color: rgba(56, 77, 70, 0.18);
  background: rgba(255, 250, 240, 0.52);
}

.phase-composer {
  border-radius: 22px;
  border-color: rgba(36, 92, 79, 0.16);
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.94), rgba(232, 243, 239, 0.9));
  box-shadow: var(--shadow-soft);
}

.create-item-popup__dialog,
.config-modal__dialog,
.selection-toolbar {
  border-radius: 24px;
  border-color: rgba(56, 77, 70, 0.16);
  background: rgba(255, 252, 244, 0.9);
  backdrop-filter: blur(24px) saturate(1.15);
  box-shadow: 0 34px 80px -46px rgba(17, 34, 28, 0.54);
}

.config-modal__backdrop {
  background: rgba(17, 34, 28, 0.38);
  backdrop-filter: blur(8px);
}

.config-modal__title,
.create-item-popup__title {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.04em;
}

.config-tab,
.config-modal__preview,
.config-modal__migration,
.config-modal__impact,
.ppt-export-modal__summary {
  border-radius: 18px;
}

.selection-toolbar {
  background: rgba(255, 252, 244, 0.88);
}

.connection-mode-banner {
  border-radius: 999px;
  border-color: rgba(184, 105, 69, 0.2);
  background: rgba(255, 250, 240, 0.92);
  color: #714229;
}

.present-mode .canvas-frame,
.canvas-frame:fullscreen,
.canvas-frame:-webkit-full-screen {
  background:
    radial-gradient(circle at 8% -4%, rgba(217, 154, 43, 0.12), transparent 24%),
    linear-gradient(135deg, #fffaf0 0%, #edf5ef 100%);
}

.present-mode .timeline-card {
  box-shadow: none;
}

@media (max-width: 1200px) {
  .topbar {
    position: static;
  }

  .add-rail,
  .inspector {
    top: 12px;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 10px;
  }

  .topbar,
  .canvas-frame,
  .inspector,
  .add-rail {
    border-radius: 20px;
  }

  .document-title {
    font-size: 22px;
  }

  #canvas-title,
  .timeline-header h1 {
    font-size: 24px;
  }

  .workspace {
    gap: 10px;
  }
}

/* Second refinement pass: tighter corners, restored canvas controls, and a more efficient header. */
:root {
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  min-height: 72px;
  padding: 10px 14px;
  border-radius: 16px;
}

.topbar__actions {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 10px;
}

.topbar__controls {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.topbar__group {
  gap: 5px;
  padding-left: 8px;
}

.topbar__group--primary {
  min-width: max-content;
}

.document-title {
  font-size: 24px;
}

.document-subtitle {
  font-size: 12px;
}

.planning-frame {
  min-width: 218px;
  max-width: 238px;
  padding: 8px 12px;
  border-radius: 14px;
}

.planning-frame__summary {
  font-size: 12px;
}

.planning-frame__detail {
  max-width: 205px;
}

.segmented {
  border-radius: 14px;
}

.segmented button,
.ghost-button,
.primary-button,
.library-button,
.selection-toolbar button,
.timeline-release-add,
.timeline-viewport-scrollbar,
.timeline-viewport-scrollbar__thumb,
.save-feedback::before {
  border-radius: 10px;
}

.workspace {
  grid-template-columns: minmax(0, 1fr) minmax(292px, 340px);
  gap: 10px;
}

.canvas-frame {
  grid-column: 1;
  border-radius: 16px;
  padding: 10px;
}

.inspector {
  grid-column: 2;
  top: 96px;
  max-height: calc(100vh - 108px);
  border-radius: 16px;
  padding: 0 12px 14px;
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.76) 0%, rgba(242, 248, 243, 0.78) 100%),
    rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 46px -38px rgba(17, 34, 28, 0.38);
}

.inspector-header {
  padding: 12px 0 10px;
}

.inspector-header__copy {
  font-size: 10.5px;
  line-height: 1.4;
}

.inspector-card {
  border-radius: 14px;
  padding: 14px;
  gap: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 250, 240, 0.5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.inspector-title {
  font-size: 20px;
}

.inspector-section {
  gap: 8px;
  padding-top: 10px;
}

.inspector-field input,
.inspector-field select,
.inspector-field textarea,
.phase-composer__field input,
.phase-composer__field select,
.selection-toolbar__title,
.selection-toolbar__subtitle,
.selection-toolbar__range-input {
  border-radius: 10px;
}

.inspector-empty {
  border-radius: 14px;
}

.inspector-context {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(56, 77, 70, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--context-color, #245C4F) 9%, white), rgba(255, 250, 240, 0.68));
}

.inspector-context__swatch {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--context-color, #245C4F);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 22px -18px color-mix(in srgb, var(--context-color, #245C4F) 62%, transparent);
}

.inspector-context__body {
  min-width: 0;
}

.inspector-context__label {
  color: #829087;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.inspector-context__title {
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector-context__meta {
  margin-top: 2px;
  overflow: hidden;
  color: #6d7b73;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-toolbar {
  align-items: center;
  padding: 4px 8px 10px;
}

.canvas-toolbar__add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-height: 42px;
  padding: 5px 7px 5px 12px;
  border: 1px solid rgba(56, 77, 70, 0.13);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.canvas-toolbar__add-label {
  color: #839288;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.canvas-toolbar__add-stack {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.canvas-toolbar__view-stack {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 3px;
  padding-left: 8px;
  border-left: 1px solid rgba(56, 77, 70, 0.13);
}

.canvas-toolbar__add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(37, 92, 79, 0.14);
  border-radius: 10px;
  background: linear-gradient(180deg, #fffdf6 0%, #edf5ef 100%);
  box-shadow: 0 12px 22px -20px rgba(22, 63, 54, 0.28);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.canvas-toolbar__add-button:hover {
  transform: translateY(-1px);
  border-color: rgba(184, 105, 69, 0.3);
  box-shadow: 0 18px 28px -22px rgba(22, 63, 54, 0.42);
}

.canvas-toolbar__add-button .create-item-popup__option-icon {
  width: 21px;
  height: 21px;
  font-size: 10px;
}

.canvas-toolbar__view-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(37, 92, 79, 0.14);
  border-radius: 10px;
  background: rgba(255, 253, 246, 0.74);
  color: var(--pine);
  box-shadow: 0 12px 22px -20px rgba(22, 63, 54, 0.24);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.canvas-toolbar__view-button:hover,
.canvas-toolbar__view-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(184, 105, 69, 0.3);
  background: linear-gradient(180deg, #fffaf0 0%, #e6f1eb 100%);
  box-shadow: 0 18px 28px -22px rgba(22, 63, 54, 0.42);
}

.canvas-toolbar__view-button.is-active {
  border-color: rgba(37, 92, 79, 0.28);
  background: linear-gradient(180deg, #edf5ef 0%, #dcece4 100%);
  box-shadow: inset 0 0 0 1px rgba(37, 92, 79, 0.1), 0 14px 24px -22px rgba(22, 63, 54, 0.36);
}

.canvas-toolbar__view-icon {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  font-size: 0;
}

#grid-toggle .canvas-toolbar__view-icon::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1px solid currentColor;
  opacity: 0.86;
  background:
    linear-gradient(currentColor, currentColor) 50% 0 / 1px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 1px no-repeat;
}

#today-toggle .canvas-toolbar__view-icon::before {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 8px;
  width: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.82;
}

#today-toggle .canvas-toolbar__view-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cd2d43;
  box-shadow: 0 0 0 2px rgba(205, 45, 67, 0.14);
}

.canvas-toolbar__add--in-canvas {
  flex-shrink: 0;
  margin-top: -2px;
  margin-left: 16px;
}

.canvas-scroll {
  overflow-x: auto;
  overflow-y: auto;
  padding: 7px 6px 8px;
}

.timeline-card {
  width: calc(var(--timeline-width) + var(--timeline-offset) + 20px);
  min-width: calc(var(--timeline-width) + var(--timeline-offset) + 20px);
  max-width: none;
  border-radius: 18px;
  padding: 15px 14px 14px;
}

.timeline-header {
  margin-bottom: 6px;
  align-items: flex-start;
}

#canvas-title,
.timeline-header h1 {
  font-size: 25px;
}

.timeline-axis,
.timeline-axis--ghost {
  border-radius: 12px;
}

.timeline-axis__row,
.timeline-axis-stack__badge,
.timeline-axis-ghost__badge {
  border-radius: 8px;
}

.lane-card,
.lane-add,
.lane-track {
  border-radius: 14px;
}

.lane-card {
  padding: 14px 12px 16px;
}

.lane-name {
  font-size: 17px;
}

.lane-track__row-controls {
  right: 0;
  width: 36px;
  overflow: visible;
}

.lane-track__row-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  right: 6px;
  width: 28px;
  margin-top: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

.lane-track__row-toggle-icon {
  width: 19px;
  height: 19px;
}

.lane-track__row-toggle:hover,
.lane-track__row-toggle.is-active {
  background: transparent;
  box-shadow: none;
}

.lane-track::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: rgba(52, 78, 68, 0.1);
  box-shadow: -1px 0 0 rgba(255, 255, 255, 0.24);
  pointer-events: none;
  z-index: 3;
}

.lane-track__row-highlight {
  border-radius: 10px;
}

.timeline-item,
.timeline-item--phase,
.timeline-item--milestone {
  border-radius: 11px;
}

.timeline-item--phase::after {
  border-radius: 10px;
}

.timeline-item--release .timeline-item__release-body {
  border-radius: 10px;
}

.timeline-item--release.is-selected {
  outline: 0;
  box-shadow: none;
}

.timeline-item--release.is-selected .timeline-item__release-body {
  border-color: rgba(61, 125, 147, 0.72);
  box-shadow:
    0 0 0 3px rgba(255, 250, 240, 0.96),
    0 0 0 5px rgba(61, 125, 147, 0.36),
    0 16px 26px -22px rgba(22, 63, 54, 0.34);
}

.present-mode .canvas-toolbar__add--in-canvas,
.present-mode .timeline-release-add,
.present-mode .lane-drag-handle,
.present-mode .lane-delete-button,
.present-mode .lane-resize-handle,
.present-mode .lane-track__row-controls,
.present-mode .timeline-item__connector,
.present-mode .timeline-item__drag-handle,
.present-mode .timeline-item__resize,
.present-mode .timeline-viewport-scrollbar,
.present-mode .connection-mode-banner {
  display: none !important;
}

.present-mode .timeline-item input,
.present-mode .lane-card input {
  pointer-events: none;
  caret-color: transparent;
}

.present-mode .timeline-item {
  cursor: default;
}

.create-item-popup__dialog,
.config-modal__dialog,
.selection-toolbar,
.phase-composer {
  border-radius: 16px;
}

.create-item-popup__dialog {
  width: 158px;
  gap: 8px;
  padding: 8px;
  border-color: rgba(56, 77, 70, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.94), rgba(239, 247, 242, 0.9)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 58px -40px rgba(17, 34, 28, 0.5);
}

.create-item-popup__actions {
  gap: 7px;
}

.create-item-popup__option {
  gap: 5px;
  padding: 8px 5px 7px;
  border-color: rgba(37, 92, 79, 0.14);
  border-radius: 10px;
  background: linear-gradient(180deg, #fffdf6 0%, #edf5ef 100%);
  color: var(--pine);
  box-shadow: 0 12px 22px -20px rgba(22, 63, 54, 0.28);
}

.create-item-popup__option:hover,
.create-item-popup__option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(184, 105, 69, 0.3);
  background: linear-gradient(180deg, #fffaf0 0%, #e6f1eb 100%);
  box-shadow: 0 18px 28px -22px rgba(22, 63, 54, 0.42);
}

.create-item-popup__option-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, rgba(217, 154, 43, 0.16), rgba(61, 125, 147, 0.14));
  color: var(--pine);
  font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(37, 92, 79, 0.14);
}

.create-item-popup__option-label {
  color: #6d7b73;
  font-size: 8px;
  letter-spacing: 0.12em;
}

@media (max-width: 1420px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .topbar__actions {
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: stretch;
  }

  .topbar__controls {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .topbar__title-row {
    grid-template-columns: 1fr;
  }

  .teams-modal__body {
    grid-template-columns: 1fr;
  }

  .teams-modal__workflow {
    grid-template-columns: 1fr;
  }

  .teams-modal__create-row {
    grid-template-columns: 1fr;
  }

  .teams-modal__add-member {
    grid-template-columns: 1fr;
  }

  .teams-modal__members {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .canvas-frame,
  .inspector {
    grid-column: auto;
  }

  .inspector {
    top: 12px;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .topbar,
  .canvas-frame,
  .inspector,
  .timeline-card {
    border-radius: 14px;
  }

  .topbar__actions {
    grid-template-columns: 1fr;
  }

  .topbar__controls,
  .canvas-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar__group--primary,
  .topbar-feedback-button {
    width: 100%;
  }

  .topbar__group--primary {
    flex-wrap: wrap;
  }

  .canvas-toolbar__add {
    width: 100%;
    justify-content: space-between;
  }

  .canvas-toolbar__add--in-canvas {
    margin: 8px 0 0;
  }
}

/* Header cleanup: clearer hierarchy and one consistent control language. */
.u-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.topbar {
  grid-template-columns: minmax(420px, 1fr) minmax(0, auto);
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 12px 16px;
}

.topbar__title-row {
  grid-template-columns: minmax(230px, 360px) minmax(220px, 420px);
  gap: 18px;
}

.topbar__title-field span {
  letter-spacing: 0.12em;
}

.document-title {
  font-size: 22px;
  letter-spacing: 0;
}

.topbar__actions {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.topbar__controls {
  min-width: 0;
}

.topbar__group--primary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 940px;
}

.topbar .ghost-button,
.topbar .primary-button,
.topbar-settings-menu__summary,
.topbar-feedback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(56, 77, 70, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #263b34;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
}

.topbar .ghost-button:hover,
.topbar-settings-menu__summary:hover,
.topbar-settings-menu[open] .topbar-settings-menu__summary,
.topbar-feedback-button:hover {
  transform: none;
  border-color: rgba(36, 92, 79, 0.28);
  background: rgba(255, 250, 240, 0.92);
  box-shadow: none;
}

.topbar .primary-button {
  border-color: rgba(22, 63, 54, 0.92);
  background: #163f36;
  color: #fffaf0;
}

.topbar .primary-button:hover {
  transform: none;
  background: #112f29;
  box-shadow: none;
}

.topbar__new-planning-button {
  min-width: 74px;
}

#cloud-save-button {
  min-width: 88px;
}

#account-open-button,
#reset-button {
  min-width: 78px;
}

.topbar-settings-menu__summary {
  min-width: 108px;
}

.topbar-export-menu__summary {
  min-width: 82px;
}

.topbar-feedback-button {
  min-width: 104px;
  gap: 7px;
}

.topbar-feedback-button__icon {
  width: 17px;
  height: 17px;
  border-radius: 6px;
  background: rgba(36, 92, 79, 0.14);
  color: var(--pine);
  font-size: 11px;
}

.save-feedback {
  flex: 0 0 auto;
  width: auto;
  min-width: 122px;
  padding-right: 8px;
  font-size: 11px;
}

.canvas-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 650px) minmax(0, auto);
  gap: 12px;
  padding: 4px 8px 10px;
}

.canvas-toolbar__meta-button {
  width: 100%;
  padding: 9px 10px;
}

.canvas-toolbar__summary {
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-toolbar__settings-chip {
  min-height: 26px;
  padding: 0 9px;
  border-radius: 8px;
}

.timeline-header {
  justify-content: flex-end;
}

.timeline-header > :first-child {
  flex: 0 1 auto;
}

.canvas-badge {
  display: none;
}

@media (max-width: 1420px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar__actions,
  .topbar__controls,
  .topbar__group--primary {
    justify-content: flex-start;
  }

  .topbar__group--primary {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .topbar__title-row,
  .canvas-toolbar {
    grid-template-columns: 1fr;
  }

  .canvas-toolbar__time-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar__actions,
  .topbar__controls {
    align-items: stretch;
    width: 100%;
  }

  .topbar__group--primary {
    width: 100%;
  }

  .topbar .ghost-button,
  .topbar .primary-button,
  .topbar-settings-menu__summary,
  .topbar-feedback-button {
    flex: 1 1 118px;
  }
}

#sober-toggle .canvas-toolbar__view-icon::before,
#sober-toggle .canvas-toolbar__view-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

#sober-toggle .canvas-toolbar__view-icon::before {
  top: 4px;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

#sober-toggle .canvas-toolbar__view-icon::after {
  top: 4px;
  right: 8px;
  opacity: 0.46;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

body.sober-mode {
  --lane-label-width: 132px;
  --lane-column-gap: 6px;
  --timeline-offset: calc(var(--lane-label-width) + var(--lane-column-gap));
  --shadow: none;
  background: #f4f6f8;
}

.sober-mode .app-shell {
  padding: 6px;
}

.sober-mode .topbar {
  gap: 8px;
  padding: 6px 8px;
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.96);
}

.sober-mode .topbar__title-row {
  grid-template-columns: minmax(190px, 300px) minmax(160px, 260px);
}

.sober-mode .document-title {
  font-size: 16px;
}

.sober-mode .document-subtitle {
  font-size: 11px;
}

.sober-mode .topbar .ghost-button,
.sober-mode .topbar .primary-button,
.sober-mode .topbar-settings-menu__summary,
.sober-mode .topbar-feedback-button {
  height: 28px;
  min-height: 28px;
  padding: 0 9px;
  font-size: 10px;
}

.sober-mode .save-feedback {
  min-width: 96px;
  padding-right: 2px;
  font-size: 10px;
}

.sober-mode .canvas-toolbar {
  grid-template-columns: minmax(260px, 520px) minmax(0, auto);
  gap: 6px;
  padding: 3px 6px;
  background: #ffffff;
}

.sober-mode .canvas-toolbar__meta-button {
  padding: 5px 7px;
  border-color: rgba(148, 163, 184, 0.32);
  background: #ffffff;
}

.sober-mode .panel-label,
.sober-mode .scale-switcher-label {
  font-size: 9px;
  letter-spacing: 0.12em;
}

.sober-mode .canvas-toolbar__summary {
  font-size: 10px;
}

.sober-mode .canvas-toolbar__settings-chip {
  min-height: 22px;
  padding: 0 7px;
  font-size: 9px;
}

.sober-mode .segmented {
  padding: 1px;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: none;
}

.sober-mode .segmented button {
  min-width: 26px;
  padding: 4px 6px;
  border-radius: 4px;
}

.sober-mode .canvas-scroll {
  padding: 3px 4px 4px;
}

.sober-mode .timeline-card {
  padding: 5px;
  border-color: rgba(148, 163, 184, 0.32);
  border-radius: 0;
  background: #ffffff;
}

.sober-mode .timeline-header {
  margin-bottom: 2px;
}

.sober-mode .canvas-toolbar__add {
  min-height: 30px;
  gap: 4px;
  padding: 2px 4px 2px 6px;
  border-radius: 4px;
  background: #ffffff;
}

.sober-mode .canvas-toolbar__add-label {
  display: none;
}

.sober-mode .canvas-toolbar__add-stack,
.sober-mode .canvas-toolbar__view-stack {
  gap: 3px;
}

.sober-mode .canvas-toolbar__view-stack {
  padding-left: 5px;
}

.sober-mode .canvas-toolbar__add-button,
.sober-mode .canvas-toolbar__view-button {
  width: 25px;
  height: 25px;
  border-radius: 4px;
  box-shadow: none;
}

.sober-mode .canvas-toolbar__view-button:hover,
.sober-mode .canvas-toolbar__add-button:hover {
  transform: none;
  box-shadow: none;
}

.sober-mode .timeline-axis {
  gap: 2px;
  margin-bottom: 4px;
  padding: 3px 0;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 0;
  background: #f8fafc;
  box-shadow: none;
}

.sober-mode .timeline-axis-stack__row {
  grid-template-columns: var(--timeline-offset) var(--timeline-width);
}

.sober-mode .timeline-axis-stack__badge {
  width: 18px;
  height: 15px;
  margin-right: 4px;
  border-radius: 3px;
  font-size: 8px;
  box-shadow: none;
}

.sober-mode .timeline-axis__row {
  min-height: 16px;
  border-radius: 0;
}

.sober-mode .timeline-axis__unit {
  padding-left: 5px;
  font-size: 9px;
  font-weight: 700;
}

.sober-mode .lane-rows {
  gap: 4px;
}

.sober-mode .lane-card,
.sober-mode .lane-add,
.sober-mode .lane-track {
  border-radius: 0;
  box-shadow: none;
}

.sober-mode .lane-card {
  padding: 5px 7px;
  border-color: rgba(148, 163, 184, 0.32);
  background: #ffffff;
}

.sober-mode .lane-card::before {
  width: 4px;
}

.sober-mode .lane-card__top {
  gap: 5px;
  margin: 0 20px 0 0;
}

.sober-mode .lane-color-input {
  width: 12px;
  height: 12px;
}

.sober-mode .lane-name {
  font-size: 12px;
  line-height: 1.1;
}

.sober-mode .lane-description,
.sober-mode .lane-card__actions {
  display: none;
}

.sober-mode .lane-delete-button {
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  font-size: 13px;
  box-shadow: none;
}

.sober-mode .lane-resize-handle {
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 5px;
}

.sober-mode .lane-resize-handle::before {
  width: 28px;
  height: 2px;
  margin-top: 1px;
}

.sober-mode .lane-track {
  min-height: 52px;
  border-color: rgba(148, 163, 184, 0.24);
  background: #fbfcfe;
}

.sober-mode .lane-track__row-highlight,
.sober-mode .lane-track__row-preview {
  border-radius: 0;
  box-shadow: none;
}

.sober-mode .lane-track__row-toggle {
  right: 0;
  width: 24px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.sober-mode .lane-track__row-toggle-icon {
  width: 14px;
  height: 14px;
}

.sober-mode .timeline-item {
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 10px;
  box-shadow: none;
}

.sober-mode .timeline-item:hover {
  transform: none;
}

.sober-mode .timeline-item--phase {
  height: 36px;
  border-radius: 4px;
}

.sober-mode .timeline-item--phase .timeline-item__title,
.sober-mode .timeline-item--phase .timeline-item__subtitle {
  padding-left: 2px;
  padding-right: 4px;
}

.sober-mode .timeline-item__title {
  font-size: 10px;
  line-height: 1.1;
}

.sober-mode .timeline-item__subtitle {
  margin-top: 1px;
  font-size: 8px;
}

.sober-mode .timeline-item__schedule-inline,
.sober-mode .timeline-item__assignee {
  display: none;
}

.sober-mode .timeline-item--milestone {
  height: 38px;
  padding: 9px 6px 5px;
  border-radius: 4px;
  box-shadow: none;
}

.sober-mode .timeline-item--milestone::before {
  top: -5px;
  height: 6px;
}

.sober-mode .timeline-item__marker--milestone {
  width: 7px;
  height: 7px;
}

.sober-mode .timeline-item__drag-handle {
  width: 14px;
  height: 14px;
}

.sober-mode .timeline-item__resize {
  width: 7px;
}

.sober-mode .timeline-release-rail {
  margin-top: 2px;
}

.sober-mode .timeline-item__release-body {
  border-radius: 4px;
  box-shadow: none;
}

.sober-mode .timeline-viewport-scrollbar {
  height: 8px;
  margin-top: 4px;
  border-radius: 0;
}

.sober-mode .timeline-viewport-scrollbar__thumb {
  border-radius: 0;
}

@media (max-width: 900px) {
  .sober-mode .topbar__title-row,
  .sober-mode .canvas-toolbar {
    grid-template-columns: 1fr;
  }

  .sober-mode .canvas-toolbar__time-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .sober-mode .topbar .ghost-button,
  .sober-mode .topbar .primary-button,
  .sober-mode .topbar-settings-menu__summary,
  .sober-mode .topbar-feedback-button {
    flex: 1 1 104px;
  }
}
