:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-alt: #f1f5f9;
  --color-btn-bg: #f1f5f9;
  --color-btn-primary: #2563eb;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-primary: #2563eb;
  --color-primary-soft: #dbeafe;
  --color-success: #059669;
  --color-success-soft: #d1fae5;
  --color-accent: #0f766e;
  --color-warning: #b45309;
  --color-warning-soft: #fef3c7;
  --color-danger: #b91c1c;
  --color-danger-soft: #fee2e2;
  --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.08);
  --shadow-md: 0 10px 24px rgb(15 23 42 / 0.08);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-sm: 0.8125rem;
  --font-size-base: 0.9375rem;
  --control-height: 32px;
  --name-column-min-width: 22rem;
  --unplanned-column-width: 17rem;
  --time-column-width: 5rem;
  --side-panel-rail-width: 54px;
  --settings-drawer-width: clamp(280px, 24vw, 340px);
  --plan-bar-resize-width: 4px;
  --plan-bar-fill: #2563eb;
  --plan-bar-fill-end: #5b8df1;
  --plan-bar-bg: #bfdbfe;
  --plan-bar-border: #2563eb;
  --plan-bar-fill-rgb: 37, 99, 235;
  --plan-bar-text-rgb: 37, 99, 235;
  --plan-bar-manual-bg: #d0e0fc;
  --planning-goal-row-bg: #eff6ff;
  --planning-subgoal-row-bg: #f8fafc;
  --planning-unplanned-goal-row-bg: #e7edfa;
  --planning-unplanned-subgoal-row-bg: #eef2f7;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-bg);
}

body.help-panel-open,
body.changelog-panel-open {
  overflow: hidden;
}

body.app-mobile-unsupported {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

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

button {
  margin: 0;
}

.project-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  padding-bottom: 10px;
}

.app-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 6px 16px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.app-footer__copyright {
  justify-self: start;
}

.app-footer__links {
  justify-self: center;
  min-width: 0;
}

.app-footer__links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.app-footer__link {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.app-footer__link:hover,
.app-footer__link:focus-visible {
  color: var(--color-text);
}

.app-footer__separator {
  color: #cbd5e1;
}

.app-footer__version {
  justify-self: end;
  min-height: 1em;
  white-space: nowrap;
  color: #94a3b8;
}

.mobile-notice {
  display: none;
}

.mobile-notice__card {
  width: min(100%, 31rem);
  padding: 28px 24px;
  border: 1px solid rgb(191 219 254 / 0.95);
  border-radius: 20px;
  background: rgb(255 255 255 / 0.94);
  box-shadow: 0 24px 48px rgb(15 23 42 / 0.12);
  text-align: center;
}

.mobile-notice__eyebrow {
  margin: 0 0 10px;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-notice__title {
  margin: 0;
  color: #0f172a;
  font-size: 1.5rem;
  line-height: 1.2;
}

.mobile-notice__body {
  margin: 14px 0 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.mobile-notice__version {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  margin-top: 18px;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface-alt);
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  background: transparent;
}

.app-header__brand {
  display: flex;
  align-items: center;
  padding: 10px 0;
  flex: 0 1 340px;
  min-width: 180px;
}

.app-header__title {
  margin: 0;
  display: flex;
  align-items: center;
  line-height: 1;
}

.app-header__utilities {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 42px;
  min-width: 0;
  padding-left: 14px;
}

.app-header__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
  padding: 10px 0;
}

.app-header__action {
  min-width: 0;
  white-space: nowrap;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.lang-switcher__group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-switcher__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 22px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  cursor: pointer;
  line-height: 0;
  opacity: 0.55;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.lang-switcher__flag:hover {
  opacity: 0.9;
}

.lang-switcher__flag:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.lang-switcher__flag:active {
  transform: scale(0.96);
}

.lang-switcher__flag--active {
  border-color: var(--color-primary);
  opacity: 1;
}

.lang-switcher__flag-svg {
  display: block;
  width: 24px;
  height: 16px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08);
}

.planning-name-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 16px;
}

.planning-name-meta {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

.planning-name-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 6px 8px;
  width: 100%;
  max-width: 400px;
  min-width: 0;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.planning-name-title--empty {
  color: var(--color-text-muted);
  font-weight: 500;
}

.planning-name-title:hover {
  background: var(--color-btn-bg);
  border-color: var(--color-border);
}

.planning-name-title:focus-visible {
  outline: 2px solid var(--color-btn-primary);
  outline-offset: 2px;
}

.planning-name-title__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planning-name-title__icon {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.12s;
}

.planning-name-title:hover .planning-name-title__icon,
.planning-name-title:focus-visible .planning-name-title__icon {
  opacity: 0.9;
}

.planning-name-title:disabled,
.planning-name-title--readonly {
  cursor: default;
}

.planning-name-title:disabled:hover,
.planning-name-title--readonly:hover {
  background: transparent;
  border-color: transparent;
}

.planning-name-title:disabled .planning-name-title__icon,
.planning-name-title--readonly .planning-name-title__icon {
  display: none;
}

.planning-file-name {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  width: fit-content;
  max-width: min(100%, 400px);
  min-width: 0;
  color: #94a3b8;
  font-size: 0.6875rem;
  font-style: italic;
  line-height: 1.2;
  overflow: hidden;
  text-align: center;
  transition: color 0.12s ease;
  white-space: nowrap;
}

.planning-file-name.planning-file-name-indicator--dirty {
  color: #1d4ed8;
}

.planning-file-name__base {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planning-file-name__extension {
  flex: 0 0 auto;
  white-space: nowrap;
}

.planning-file-name__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
  align-self: center;
  margin-right: 4px;
}

.app-header__logo {
  display: block;
  width: min(100%, 340px);
  height: auto;
  max-height: 42px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

body.app-mobile-unsupported .project-header {
  position: static;
  background: #ffffff;
  border-bottom: none;
  box-shadow: none;
  padding: 28px 16px 0;
}

body.app-mobile-unsupported .app-header {
  justify-content: center;
  padding: 0;
}

body.app-mobile-unsupported .app-header__brand {
  flex: 0 1 auto;
  justify-content: center;
  min-width: 0;
  padding: 0;
}

body.app-mobile-unsupported .app-header__logo {
  width: min(100%, 360px);
  max-height: none;
}

body.app-mobile-unsupported .planning-name-wrap,
body.app-mobile-unsupported .app-header__utilities,
body.app-mobile-unsupported .snapshot-banner-shell,
body.app-mobile-unsupported .app-layout,
body.app-mobile-unsupported .app-footer,
body.app-mobile-unsupported .modal-shell,
body.app-mobile-unsupported .help-overlay,
body.app-mobile-unsupported .snapshot-dialog-overlay {
  display: none !important;
}

body.app-mobile-unsupported .mobile-notice {
  display: grid;
  flex: 1 1 auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 24px 16px 32px;
}

.mobile-notice__version-shell {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 18px;
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--settings-drawer-width);
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.app-layout:not(.app-layout--settings-open) {
  grid-template-columns: minmax(0, 1fr) var(--side-panel-rail-width);
}

.app-layout > * {
  min-width: 0;
}

.snapshot-banner-shell {
  padding: 0;
  position: relative;
  z-index: 8;
}

.workspace {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
}

.workspace {
  padding: 0;
}

.panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  background: var(--color-surface);
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  min-width: 0;
}

.panel--sticky {
  position: sticky;
  top: 92px;
}

.panel--grow {
  min-height: calc(100vh - 133px);
}

.settings-drawer {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-surface);
  border-left: 1px solid #cbd5e1;
}

.settings-panel-expander {
  display: none;
}

.panel-rail {
  --panel-rail-accent: transparent;
  width: 100%;
  height: 100%;
  min-width: 0;
  align-items: stretch;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  cursor: pointer;
  position: relative;
}

.panel-rail::after {
  position: absolute;
  inset: 47px auto 0 0;
  width: 3px;
  background: var(--panel-rail-accent);
  content: "";
}

.panel-rail--settings::after {
  right: 0;
  left: auto;
}

.panel-rail:hover,
.panel-rail:focus-visible {
  --panel-rail-accent: #bfdbfe;
  background: #f8fafc;
}

.panel-rail:hover .panel-rail__icon svg,
.panel-rail:focus-visible .panel-rail__icon svg {
  color: var(--color-text);
  background: #eff6ff;
  border-color: #bfdbfe;
}

.panel-rail:hover .panel-rail__label,
.panel-rail:focus-visible .panel-rail__label {
  color: var(--color-text);
}

.panel-rail:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgb(37 99 235 / 0.22);
}

.panel-rail__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 47px;
  flex: 0 0 auto;
  color: var(--color-text-muted);
  background: #f8fafc;
  border-bottom: 1px solid #cbd5e1;
}

.panel-rail__icon svg {
  display: block;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  padding: 6px;
  background: var(--color-btn-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.panel-rail__label {
  align-self: center;
  margin-top: 16px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.panel__header {
  padding: 12px 16px 8px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  background: #f8fafc;
  min-height: 47px;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.settings-drawer__title,
.panel__title {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.panel__header-title-group,
.settings-drawer__title-row,
.panel__title-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.settings-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px 8px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #cbd5e1;
  flex-shrink: 0;
  min-height: 47px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.button.settings-panel-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  color: var(--color-text-muted);
  background: var(--color-btn-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: none;
  cursor: pointer;
  flex: 0 0 auto;
}

.button.settings-panel-toggle svg {
  display: block;
  width: 16px;
  height: 16px;
}

.button.settings-panel-toggle:hover:not(:disabled) {
  color: var(--color-text);
  background: var(--color-btn-hover);
  border-color: var(--color-btn-border-hover);
  box-shadow: none;
}

.button.settings-panel-toggle:focus-visible {
  outline-offset: 2px;
}

.settings-drawer__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  background: var(--color-surface);
}

.settings-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-panel__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.settings-panel__section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.settings-panel__section:first-child {
  padding-top: 0;
  border-top: 0;
}

.settings-panel__section-title {
  margin: 0;
  color: var(--color-text);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.2;
}

.settings-panel__scope-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.settings-panel__scope-badge--readonly {
  border-color: #fdba74;
  background: #fff7ed;
  color: #9a3412;
}

.settings-panel__scope-badge--shared {
  border-color: #a5f3fc;
  background: #ecfeff;
  color: #155e75;
}

.settings-panel__section-note {
  margin: -2px 0 0;
  color: var(--color-text-muted);
  font-size: 0.6875rem;
  font-style: italic;
  line-height: 1.35;
}

.settings-panel__section--readonly {
  padding: 14px 14px 0;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fffaf2 0%, #ffffff 100%);
}

.settings-panel__section--readonly:first-child {
  padding-top: 14px;
  border-top: 1px solid #fed7aa;
}

.settings-panel__section-content {
  gap: 18px;
}

.app-layout:not(.app-layout--settings-open) .settings-panel-expander {
  display: flex;
}

.app-layout:not(.app-layout--settings-open) .settings-drawer__header,
.app-layout:not(.app-layout--settings-open) .settings-drawer__body {
  display: none;
}

.panel__header--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 8px 8px 16px;
}

.panel__header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.panel__header-button.button {
  min-height: 32px;
  padding: 7px 14px;
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.panel__header-button.button:hover:not(:disabled),
.panel__header-button.button:active:not(:disabled) {
  background: var(--color-btn-bg);
  border-color: var(--color-border);
  color: var(--color-text);
  box-shadow: none;
}

.panel__header-button.button:disabled {
  opacity: 0.45;
  box-shadow: none;
}

.panel__header-button.button:focus {
  outline: none;
}

.panel__header-button.button:focus-visible {
  outline: 2px solid var(--color-btn-primary);
  outline-offset: 2px;
}

.panel__body {
  flex: 1;
  min-height: 0;
  padding: 12px;
  background: var(--color-surface);
}

.panel__body--planning {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.snapshot-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin: 0 16px;
  padding: 8px 12px;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: var(--radius-md);
  background: #f8fbff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
  font-size: var(--font-size-sm);
}

.snapshot-banner--actual {
  color: var(--color-text);
}

.snapshot-banner--active {
  background: #ecfdf5;
  color: #064e3b;
  border-color: #a7f3d0;
  border-left-color: #059669;
}

.snapshot-banner--correction {
  background: #fffbeb;
  color: #92400e;
  border-color: #fcd34d;
  border-left-color: #d97706;
}

.snapshot-banner__versions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.snapshot-banner__versions--with-toelichting {
  align-items: flex-start;
}

.snapshot-banner__label {
  flex-shrink: 0;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.snapshot-banner__versions--with-toelichting .snapshot-banner__label {
  padding-top: 8px;
}

.snapshot-banner__help {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  box-shadow: none;
}

.snapshot-banner--active .snapshot-banner__label,
.snapshot-banner--correction .snapshot-banner__label {
  color: #064e3b;
}

.snapshot-banner--correction .snapshot-banner__label {
  color: #92400e;
}

.snapshot-controls {
  display: inline-grid;
  align-items: center;
  grid-template-columns: minmax(0, auto) auto;
  gap: 6px;
  min-width: 0;
}

.snapshot-controls__primary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex-wrap: wrap;
}

.snapshot-controls > .help-trigger {
  grid-column: 2;
  grid-row: 1;
}

.snapshot-controls__select {
  width: min(260px, 28vw);
  min-width: 150px;
  max-width: 100%;
  height: 32px;
  padding: 4px 26px 4px 9px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 650;
}

.snapshot-controls__select:focus {
  outline: 2px solid var(--color-btn-primary);
  outline-offset: 1px;
}

.snapshot-controls__empty {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 4px;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}

.snapshot-controls__button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.snapshot-controls__button.button,
.snapshot-actions__toggle.button {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
}

.snapshot-controls__button.button:hover:not(:disabled),
.snapshot-actions__toggle.button:hover:not(:disabled) {
  background: var(--color-btn-bg);
  border-color: var(--color-btn-border-hover);
  box-shadow: none;
}

.snapshot-controls__button.button:focus-visible,
.snapshot-actions__toggle.button:focus-visible {
  outline-offset: 2px;
}

.snapshot-actions {
  position: relative;
}

.snapshot-actions__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.snapshot-actions__toggle.button.snapshot-actions__toggle--success {
  border-color: rgb(16 185 129 / 0.35);
  background: var(--color-success-soft);
  color: #065f46;
  box-shadow: 0 8px 20px rgb(5 150 105 / 0.16);
  font-weight: 700;
  line-height: 1.2;
  max-width: min(100%, 22rem);
  white-space: normal;
}

.snapshot-actions__toggle.button.snapshot-actions__toggle--success:hover:not(:disabled) {
  border-color: rgb(5 150 105 / 0.4);
  background: #bbf7d0;
  color: #065f46;
  box-shadow: 0 10px 24px rgb(5 150 105 / 0.18);
}

.snapshot-actions__toggle--success .snapshot-actions__toggle-label {
  white-space: normal;
}

.snapshot-actions__toggle--success .snapshot-actions__toggle-caret {
  color: #047857;
  font-size: 0.85rem;
  font-weight: 800;
}

.snapshot-actions__toggle-caret {
  font-size: 0.7rem;
  line-height: 1;
}

.snapshot-actions__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 220px;
  padding: 5px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.98);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.85),
    var(--shadow-md);
}

.snapshot-actions__section {
  padding: 5px 9px 4px;
  color: var(--color-text-muted);
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1.2;
}

.snapshot-actions__section--separated {
  margin-top: 5px;
  padding-top: 9px;
  border-top: 1px solid var(--color-border);
}

.snapshot-actions__item {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  padding: 8px 9px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: 550;
  text-align: left;
  cursor: pointer;
}

.snapshot-actions__item:hover,
.snapshot-actions__item:focus-visible {
  background: var(--color-btn-bg);
  outline: none;
}

.snapshot-actions__item:disabled {
  color: var(--color-text-muted);
  opacity: 0.68;
  cursor: not-allowed;
}

.snapshot-actions__item:disabled:hover,
.snapshot-actions__item:disabled:focus-visible {
  background: transparent;
}

.snapshot-actions__item--danger {
  color: var(--color-danger);
}

.snapshot-banner__context {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  margin-left: auto;
}

.snapshot-banner__text {
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snapshot-banner__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.snapshot-banner__button {
  min-height: 28px;
  padding: 5px 9px;
  background: var(--color-surface);
  font-size: 0.75rem;
  font-weight: 700;
}

.snapshot-compare-panel {
  display: grid;
  gap: 12px;
}

.snapshot-compare-panel--dialog {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.snapshot-compare-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.snapshot-compare-panel__heading {
  display: grid;
  gap: 4px;
}

.snapshot-compare-panel__title {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 750;
}

.snapshot-compare-panel__subtitle,
.snapshot-compare-panel__hint {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.snapshot-compare-panel__close {
  min-height: 30px;
  padding: 5px 10px;
  flex-shrink: 0;
}

.snapshot-compare-panel__controls {
  display: grid;
  gap: 10px 12px;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.snapshot-compare-panel__field {
  display: grid;
  gap: 6px;
}

.snapshot-compare-panel__field-label {
  color: var(--color-text);
  font-size: 0.76rem;
  font-weight: 700;
}

.snapshot-compare-panel__body {
  display: grid;
  gap: 10px;
}

.snapshot-compare-panel__empty {
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.55);
  color: var(--color-text-muted);
}

.snapshot-compare-panel__section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.72);
}

.snapshot-compare-panel__section--static {
  overflow: hidden;
}

.snapshot-compare-panel__section-summary {
  cursor: pointer;
  padding: 11px 14px;
  font-weight: 750;
  color: var(--color-text);
}

.snapshot-compare-panel__section--static .snapshot-compare-panel__section-summary {
  cursor: default;
}

.snapshot-compare-panel__section-summary:hover {
  background: rgb(248 250 252 / 0.9);
}

.snapshot-compare-panel__section--static .snapshot-compare-panel__section-summary:hover {
  background: transparent;
}

.snapshot-compare-panel__items {
  display: grid;
  gap: 10px;
  padding: 0 10px 10px;
}

.snapshot-compare-item {
  display: grid;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgb(191 219 254 / 0.9);
  border-radius: var(--radius-md);
  background: #fff;
}

.snapshot-compare-item--removed {
  border-color: rgb(248 113 113 / 0.45);
  background: rgb(254 242 242 / 0.7);
}

.snapshot-compare-item--added {
  border-color: rgb(74 222 128 / 0.45);
  background: rgb(240 253 244 / 0.72);
}

.snapshot-compare-item__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.snapshot-compare-item__title {
  color: var(--color-text);
  font-size: 0.84rem;
  line-height: 1.35;
}

.snapshot-compare-item__title--muted {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.snapshot-compare-item__meta {
  color: var(--color-text-muted);
  font-size: 0.73rem;
  font-weight: 700;
  white-space: nowrap;
}

.snapshot-compare-item__fields {
  display: grid;
  gap: 8px;
}

.snapshot-compare-item__changes {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.snapshot-compare-item__change {
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: rgb(248 250 252 / 0.92);
}

.snapshot-compare-item__change--single {
  align-items: start;
}

.snapshot-compare-item__change-label {
  color: var(--color-text-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.snapshot-compare-item__change-values {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.snapshot-compare-item__change-value {
  min-width: 0;
  color: var(--color-text);
  font-size: 0.8rem;
  line-height: 1.4;
}

.snapshot-compare-item__change-value--after {
  font-weight: 650;
}

.snapshot-compare-item__change-arrow {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.snapshot-compare-item__field {
  display: grid;
  grid-template-columns: minmax(86px, auto) minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.snapshot-compare-item__field-label {
  color: var(--color-text-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.snapshot-compare-item__field-value {
  min-width: 0;
  color: var(--color-text);
  font-size: 0.8rem;
  line-height: 1.4;
}

.snapshot-compare-item__field-value--after {
  font-weight: 650;
}

.snapshot-compare-item__field-arrow {
  color: var(--color-text-muted);
  font-weight: 700;
}

.snapshot-banner__toelichting {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.72);
  color: inherit;
  overflow: hidden;
}

.snapshot-banner__toelichting-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  padding: 4px 9px;
  color: #1d4ed8;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.snapshot-banner__toelichting-summary::-webkit-details-marker {
  display: none;
}

.snapshot-banner__toelichting-summary::after {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 0.15s ease, margin-top 0.15s ease;
}

.snapshot-banner__toelichting[open] .snapshot-banner__toelichting-summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.snapshot-banner__toelichting-summary:hover {
  background: #eff6ff;
}

.snapshot-banner__toelichting-summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgb(37 99 235 / 0.18);
}

.snapshot-banner--active .snapshot-banner__toelichting {
  border-color: #a7f3d0;
}

.snapshot-banner--active .snapshot-banner__toelichting-summary {
  color: #047857;
}

.snapshot-banner--active .snapshot-banner__toelichting-summary:hover {
  background: #d1fae5;
}

.snapshot-banner--correction .snapshot-banner__toelichting {
  border-color: #fbbf24;
}

.snapshot-banner--correction .snapshot-banner__toelichting-summary {
  color: #b45309;
}

.snapshot-banner--correction .snapshot-banner__toelichting-summary:hover {
  background: #fef3c7;
}

.snapshot-banner__toelichting-text {
  margin: 0;
  padding: 8px 9px 10px;
  border-top: 1px solid #dbeafe;
  color: var(--color-text);
  line-height: 1.45;
  white-space: pre-wrap;
}

.panel__title {
  margin: 0;
  line-height: 1.2;
}

.help-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: var(--color-surface);
  color: #334155;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.08);
}

.help-trigger__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

.help-trigger:hover:not(:disabled) {
  color: var(--color-text);
  border-color: #94a3b8;
  background: #f8fafc;
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.12);
}

.help-trigger:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.panel__intro {
  margin: 8px 0 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.45;
  text-transform: none;
  letter-spacing: normal;
}

.form-stack {
  display: grid;
  gap: 12px;
}

.settings-panel__group {
  display: grid;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgb(148 163 184 / 0.34);
  border-left: 3px solid rgb(37 99 235 / 0.48);
  border-radius: var(--radius-sm) var(--radius-md) var(--radius-md) var(--radius-sm);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.98), rgb(248 250 252 / 0.9));
}

.settings-panel__group-title {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.2;
}

.settings-panel__optional-axis-group {
  gap: 12px;
  margin-top: 2px;
  padding: 12px 0 0;
  border-top: 1px solid var(--color-border);
}

.settings-panel__axis-action-card {
  gap: 8px;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px dashed rgb(148 163 184 / 0.62);
  border-left: 3px solid rgb(37 99 235 / 0.36);
  border-radius: var(--radius-sm) var(--radius-md) var(--radius-md) var(--radius-sm);
  background: rgb(248 250 252 / 0.62);
}

.settings-panel__axis-action-card .field__hint {
  margin: 0;
}

.settings-panel__axis-action-card .button {
  width: 100%;
}

.sprint-duration-settings {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-top: 2px;
  padding: 10px 0 0;
  border-top: 1px solid var(--color-border);
}

.sprint-duration-settings__header {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.sprint-duration-settings__header > div,
.sprint-duration-settings__editor .field {
  min-width: 0;
}

.sprint-duration-settings__header .field__hint {
  margin-top: 5px;
}

.sprint-duration-settings__add,
.sprint-duration-settings__actions .button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 700;
}

.sprint-duration-settings__add {
  width: 100%;
  max-width: 100%;
  line-height: 1.25;
  white-space: normal;
}

.sprint-duration-settings__editor {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgb(148 163 184 / 0.42);
  border-radius: var(--radius-sm);
  background: rgb(248 250 252 / 0.72);
}

.sprint-duration-settings__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sprint-duration-settings__list {
  display: grid;
  gap: 6px;
}

.sprint-duration-settings__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgb(245 158 11 / 0.42);
  border-radius: var(--radius-sm);
  background: rgb(255 251 235 / 0.7);
  font-size: 0.75rem;
}

.sprint-duration-settings__item-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
}

.sprint-duration-settings__item-value {
  color: #92400e;
  font-weight: 700;
  white-space: nowrap;
}

.sprint-duration-settings__remove:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.field {
  display: grid;
  gap: 6px;
}

.field__hint {
  margin: -2px 0 0;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.field__label {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.field__checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.field__checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--color-primary);
}

.field__checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.field__checkbox-label {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.settings-panel__relative-conversion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.settings-panel__relative-conversion-label {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.field__input {
  width: 100%;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-sm);
}

select.field__input,
input:not([type="file"]).field__input {
  min-height: var(--control-height);
  height: var(--control-height);
  padding: 0 10px;
}

textarea.field__input {
  min-height: calc(var(--control-height) * 2.6);
  padding: 8px 10px;
  resize: vertical;
  line-height: 1.45;
}

input[type="file"].field__input {
  min-height: var(--control-height);
  padding: 4px 8px;
}

.field__input--date-empty {
  color: transparent;
}

.field__input--date-empty::-webkit-datetime-edit,
.field__input--date-empty::-webkit-date-and-time-value {
  color: transparent;
}

.field__input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.field__input:disabled {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  cursor: not-allowed;
}

.settings-panel__section--readonly .field__label,
.settings-panel__section--readonly .field__checkbox-label,
.settings-panel__section--readonly .settings-panel__relative-conversion-label {
  color: #475569;
}

.settings-panel__section--readonly .field__hint {
  color: #64748b;
}

.settings-panel__color-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-panel__color-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--control-height);
  padding: 0 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  overflow: hidden;
}

.settings-panel__color-picker:hover {
  border-color: #94a3b8;
}

.settings-panel__color-picker:focus-within {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.settings-panel__color-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.settings-panel__color-picker-swatch {
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--plan-bar-fill);
  pointer-events: none;
}

.settings-panel__color-picker-text {
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.settings-panel__palette-preview {
  display: flex;
  align-items: center;
  gap: 3px;
}

.settings-panel__palette-swatch {
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.settings-panel .form-stack {
  gap: 18px;
}

.settings-panel .settings-panel__group {
  gap: 14px;
}

.settings-panel .field {
  gap: 7px;
}

.settings-panel .field__label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: 400;
  line-height: 1.2;
}

.settings-panel .field__hint {
  font-size: 0.75rem;
  line-height: 1.35;
}

.settings-panel .field__checkbox-row {
  gap: 8px;
}

.settings-panel .field__checkbox {
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.settings-panel .field__checkbox-label {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: 400;
  line-height: 1.2;
}

.settings-panel .settings-panel__relative-conversion {
  gap: 6px;
}

.settings-panel .settings-panel__relative-conversion-label {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.2;
}

.settings-panel .field__input {
  border-color: var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  line-height: 1.25;
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.settings-panel select.field__input {
  min-height: 30px;
  height: 30px;
  padding: 3px 6px;
  cursor: pointer;
}

.settings-panel input:not([type="file"]).field__input {
  min-height: 30px;
  height: 30px;
  padding: 4px 8px;
}

.settings-panel textarea.field__input {
  min-height: 84px;
  padding: 7px 9px;
  line-height: 1.35;
}

.settings-panel .field__input:focus {
  outline: none;
  border-color: var(--color-btn-primary);
  box-shadow: 0 0 0 2px rgb(37 99 235 / 0.14);
}

.settings-panel .field__input:disabled {
  border-color: var(--color-border);
  background: #f8fafc;
  color: #64748b;
}

.settings-panel__color-picker-row {
  gap: 8px;
}

.settings-panel__color-picker {
  gap: 6px;
  min-height: 28px;
  padding: 3px 8px 3px 4px;
  border-color: var(--color-border);
  background: var(--color-surface);
}

.settings-panel__color-picker:hover {
  background: var(--color-btn-bg);
  border-color: #94a3b8;
}

.settings-panel__color-picker:focus-within {
  outline: 2px solid var(--color-btn-primary);
  outline-offset: 1px;
}

.settings-panel__color-input {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
}

.settings-panel__color-picker-swatch {
  width: 18px;
  height: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #ffffff;
  font-size: var(--font-size-sm);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgb(37 99 235 / 0.18);
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.button:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 2px 5px rgb(37 99 235 / 0.2);
}

.button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: 0 1px 2px rgb(37 99 235 / 0.18);
}

.button--secondary,
.button--ghost {
  border-color: var(--color-border);
  background: var(--color-btn-bg);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.button--secondary:hover,
.button--ghost:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.button.button--dirty {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  font-weight: 700;
  box-shadow: 0 1px 2px rgb(37 99 235 / 0.12);
}

.button.button--dirty:hover:not(:disabled) {
  background: #dbeafe;
  border-color: #93c5fd;
  box-shadow: 0 1px 2px rgb(37 99 235 / 0.16);
}

.app-header__action.button {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
}

.app-header__action.button {
  padding: 7px 14px;
}

.app-header__action.button:hover:not(:disabled) {
  background: var(--color-btn-bg);
  border-color: var(--color-border);
  box-shadow: none;
}

.app-header__action.button:disabled {
  opacity: 0.45;
  box-shadow: none;
}

.app-header__action.button.button--dirty {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  font-weight: 600;
  box-shadow: 0 1px 2px rgb(37 99 235 / 0.12);
}

.app-header__action.button.button--dirty:hover:not(:disabled) {
  background: #dbeafe;
  border-color: #93c5fd;
  box-shadow: 0 1px 2px rgb(37 99 235 / 0.16);
}

.button.button--dirty-dot {
  gap: 6px;
}

.button.button--dirty-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
}

.modal-shell[hidden] {
  display: none;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 0.4);
  backdrop-filter: blur(10px);
}

.modal {
  position: relative;
  width: min(100%, 34rem);
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 20px 54px rgb(15 23 42 / 0.24), 0 4px 12px rgb(15 23 42 / 0.12);
}

.modal--wide {
  width: min(100%, 40rem);
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}

.modal__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.modal__intro {
  margin: 8px 0 0;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.modal__close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-btn-bg);
  color: var(--color-text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.modal > .form-stack {
  padding: 18px 18px 0;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding: 0 18px 18px;
}

.reimport-feedback-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px 16px;
  padding: 14px 16px;
  border: 2px solid #1e3a8a;
  border-radius: calc(var(--radius-md) + 2px);
  background:
    radial-gradient(circle at top right, rgb(37 99 235 / 0.16), rgb(37 99 235 / 0) 30%),
    linear-gradient(180deg, #f6f9ff 0%, #e6efff 100%);
  box-shadow:
    0 10px 24px rgb(30 64 175 / 0.12),
    0 2px 8px rgb(15 23 42 / 0.06);
}

.reimport-feedback-banner__content {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.reimport-feedback-banner__title {
  margin: 0;
  color: #172554;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

.reimport-feedback-banner__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reimport-feedback-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgb(148 163 184 / 0.34);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.94);
  color: var(--color-text);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.82),
    0 1px 2px rgb(15 23 42 / 0.06);
}

.reimport-feedback-chip__marker {
  flex: 0 0 auto;
}

.reimport-feedback-banner__action.button {
  align-self: start;
  min-height: 36px;
  padding: 8px 14px;
  border-color: #1d4ed8;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 750;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.72);
  white-space: nowrap;
}

.reimport-feedback-banner__action.button:hover:not(:disabled),
.reimport-feedback-banner__action.button:focus-visible {
  border-color: #1e40af;
  background: #ffffff;
  color: #172554;
}

@media (max-width: 960px) {
  .reimport-feedback-banner {
    grid-template-columns: 1fr;
  }

  .reimport-feedback-banner__action.button {
    justify-self: start;
  }
}

.muted-card,
.message-banner {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
}

.muted-card {
  padding: 12px 14px;
  color: var(--color-text-muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.check-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin: 0;
  line-height: 1.45;
}

.message-banner {
  display: none;
  margin: 0;
  padding: 10px 12px;
  font-size: var(--font-size-sm);
  line-height: 1.4;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.app-message__warning {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgb(29 78 216 / 0.22);
  color: #1e3a8a;
  font-weight: 600;
}

.app-message__warning-label {
  font-weight: 800;
}

.message-banner--visible {
  display: block;
}

.message-banner--app-slot {
  display: block;
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 12;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    visibility 140ms ease;
}

.message-banner--app-slot.message-banner--visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: none;
}

.message-banner--error {
  border-color: #fecaca;
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.message-banner--info {
  border-color: #bfdbfe;
  background: var(--color-primary-soft);
  color: #1d4ed8;
}

.planning-inline-status {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgb(239 246 255 / 0.98), rgb(219 234 254 / 0.92));
  box-shadow: 0 8px 18px rgb(37 99 235 / 0.08);
  color: #1d4ed8;
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

.planning-inline-status__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #2563eb;
}

.planning-inline-status__icon svg {
  width: 18px;
  height: 18px;
}

.planning-inline-status__text {
  min-width: 0;
}

.app-toast {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 14;
  display: grid;
  gap: 0;
  width: min(22rem, calc(100% - 24px));
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  background: rgb(239 246 255 / 0.97);
  box-shadow: var(--shadow-md);
  color: #1d4ed8;
  font-size: var(--font-size-sm);
  line-height: 1.4;
  white-space: pre-line;
  overflow-wrap: anywhere;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
}

.app-toast--visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.interaction-feedback {
  position: fixed;
  z-index: 30;
  max-width: min(18rem, calc(100vw - 24px));
  padding: 6px 10px;
  border: 1px solid rgb(37 99 235 / 0.24);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.96);
  box-shadow: 0 10px 24px rgb(15 23 42 / 0.12);
  color: #1e3a8a;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  pointer-events: none;
  white-space: pre-line;
  text-align: left;
  backdrop-filter: blur(6px);
}

.help-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgb(15 23 42 / 0.4);
  backdrop-filter: blur(10px);
}

.help-overlay[hidden] {
  display: none;
}

.help-dialog {
  display: flex;
  width: min(1040px, calc(100vw - 48px));
  height: min(780px, calc(100vh - 48px));
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 54px rgb(15 23 42 / 0.24), 0 4px 12px rgb(15 23 42 / 0.12);
}

.help-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.help-dialog__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.help-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-btn-bg);
  color: var(--color-text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.help-dialog__body {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 0;
  flex: 1;
}

.help-dialog__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-right: 1px solid var(--color-border);
  background: var(--color-bg);
  overflow-y: auto;
}

.help-dialog__nav-group-label {
  margin: 2px 10px 6px;
  color: #475569;
  font-size: var(--font-size-sm);
  font-weight: 750;
  line-height: 1.35;
  user-select: none;
}

.help-dialog__nav-group-label--with-divider {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.help-dialog__nav-button {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.help-dialog__nav-button:hover {
  background: var(--color-btn-bg);
  color: var(--color-text);
}

.help-dialog__nav-button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.help-dialog__nav-button--active {
  background: #dbeafe;
  color: #1e40af;
  border-color: #bfdbfe;
}

.help-dialog__content {
  padding: 22px 24px 28px;
  overflow-y: auto;
}

.help-dialog__section-title {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-text);
}

.help-dialog__subheading {
  margin: 24px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.help-dialog__minor-heading {
  margin: 16px 0 8px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.help-dialog__paragraph {
  margin: 0 0 12px;
  color: var(--color-text);
  line-height: 1.58;
}

.help-dialog__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 20px;
  margin: 0 0 14px;
  color: var(--color-text);
  line-height: 1.52;
}

.help-dialog__list li::marker {
  color: var(--color-primary);
}

.help-dialog__sublist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 18px;
  margin: 8px 0 0;
}

.help-dialog__sublist li::marker {
  color: #64748b;
}

.help-dialog__external-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px;
  color: #1d4ed8;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.help-dialog__external-link:hover,
.help-dialog__external-link:focus-visible {
  color: #1e40af;
}

.help-dialog__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 18px;
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.help-dialog__email:hover,
.help-dialog__email:focus-visible {
  color: #1e40af;
}

.help-dialog__email-icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.help-dialog__kofi-button {
  display: inline-flex;
  margin-top: 4px;
  border-radius: var(--radius-md);
  line-height: 0;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.help-dialog__kofi-button:hover,
.help-dialog__kofi-button:focus-visible {
  transform: translateY(-1px);
}

.help-dialog__kofi-button:active {
  transform: translateY(0);
}

.help-dialog__kofi-button:focus-visible {
  outline: 2px solid var(--color-btn-primary);
  outline-offset: 3px;
}

.help-dialog__kofi-button-image {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: filter 0.12s ease;
}

.help-dialog__kofi-button:hover .help-dialog__kofi-button-image,
.help-dialog__kofi-button:focus-visible .help-dialog__kofi-button-image {
  filter: brightness(1.04) drop-shadow(0 3px 5px rgb(15 23 42 / 0.18));
}

.changelog-dialog {
  width: min(1120px, calc(100vw - 48px));
  height: min(840px, calc(100vh - 48px));
}

.changelog-dialog__body {
  display: flex;
  min-height: 0;
  flex: 1;
}

.changelog-dialog__content {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px 28px;
}

.changelog-dialog__status {
  max-width: 62ch;
  color: var(--color-text);
  line-height: 1.55;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.changelog-entry {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--color-border);
}

.changelog-entry:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.changelog-entry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

.changelog-entry__title {
  margin: 0 0 9px;
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.35;
}

.changelog-entry__changes {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--color-text);
  line-height: 1.5;
}

.changelog-entry__changes li::marker {
  color: var(--color-btn-primary);
}

@media (max-width: 900px) {
  .help-overlay {
    padding: 16px;
  }

  .help-dialog {
    width: calc(100vw - 32px);
    height: min(820px, calc(100vh - 32px));
  }

  .help-dialog__body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .help-dialog__nav {
    flex-direction: row;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .help-dialog__nav-group-label {
    display: none;
  }

  .help-dialog__nav-group-label--with-divider {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .help-dialog__nav-button {
    width: auto;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .changelog-dialog__content {
    padding: 18px 20px 22px;
  }
}

.planning-surface {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.empty-state {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 0;
  padding: clamp(20px, 4vh, 40px) 20px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  text-align: center;
}

.empty-state--readonly {
  opacity: 0.82;
}

.empty-state__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(100%, 36rem);
}

.empty-state__title {
  margin: 0;
  color: var(--color-text);
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.25;
}

.empty-state__body {
  margin: 0;
  max-width: 32rem;
  line-height: 1.45;
}

.empty-state__actions {
  display: flex;
  justify-content: center;
}

.empty-state__action.button {
  min-height: 34px;
  min-width: 0;
  padding: 8px 14px;
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 500;
  box-shadow: none;
}

.empty-state__action.button:hover:not(:disabled) {
  background: var(--color-btn-bg);
  border-color: var(--color-btn-border-hover);
  box-shadow: none;
}

.empty-state__action.button:focus-visible {
  outline: 2px solid var(--color-btn-primary);
  outline-offset: 2px;
}

.planning-board {
  flex: 1 1 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  min-height: 0;
  overflow: auto;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: contain;
}

.planning-board__inner {
  --reference-line-footer-height: 0px;
  --reference-line-width: 3px;
  min-width: calc(var(--name-column-width, var(--name-column-min-width)) + var(--unplanned-column-width) + (var(--measured-time-column-width, var(--time-column-width)) * var(--column-count)));
}

.planning-board__header,
.planning-row {
  display: grid;
  grid-template-columns: var(--name-column-width, var(--name-column-min-width)) minmax(0, 1fr);
}

.planning-board__header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
}

.planning-board__header-name {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 6;
  padding: 4px 8px 3px;
  border-right: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  box-shadow: 1px 0 0 0 var(--color-border);
}

.planning-row__name {
  position: sticky;
  left: 0;
  z-index: 4;
  padding: 2px 8px;
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: 1px 0 0 0 var(--color-border);
}

.planning-board__header-name-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.planning-board__header-title,
.planning-board__header-label {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.planning-board__header-track,
.planning-row__track {
  display: grid;
  grid-template-columns: var(--unplanned-column-width) minmax(0, 1fr);
}

.planning-board__header-unplanned {
  display: grid;
  align-content: start;
  padding: 4px 8px 3px;
  border-right: 1px solid var(--color-border);
  font-size: 0.75rem;
  line-height: 1.1;
}

.planning-board__header-unplanned strong {
  font: inherit;
  font-weight: 700;
}

.planning-row__unplanned {
  padding: 2px 0;
  border-right: 1px solid var(--color-border);
}

.planning-board__header-unplanned {
  background: #f5f8fc;
}

.planning-board__header-timeline,
.planning-row__timeline,
.planning-board__reference-footer-timeline {
  display: grid;
  grid-template-columns: repeat(var(--column-count), minmax(var(--measured-time-column-width, var(--time-column-width)), 1fr));
}

.planning-board__header-timeline,
.planning-row__timeline {
  overflow: visible;
}

.planning-board__header-cell {
  display: grid;
  align-content: start;
  justify-items: center;
  min-width: var(--measured-time-column-width, var(--time-column-width));
  padding: 4px 6px 3px;
  border-right: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  text-align: center;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.1;
  overflow: hidden;
}

.planning-board__header-cell:last-child {
  border-right: none;
}

.planning-board__header-cell--stacked {
  gap: 1px;
  padding-top: 4px;
  padding-bottom: 3px;
  font-size: 0.76rem;
}

.planning-board__header-cell--calendar {
  gap: 2px;
  align-content: start;
  justify-items: center;
  padding-top: 4px;
  padding-bottom: 3px;
}

.planning-board__header-cell-primary,
.planning-board__header-cell-secondary,
.planning-board__header-cell-tertiary {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.planning-board__header-cell--stacked .planning-board__header-cell-primary {
  font-weight: 700;
}

.planning-board__header-cell--stacked .planning-board__header-cell-secondary {
  font-weight: 700;
}

.planning-board__header-cell--triple {
  gap: 1px;
  line-height: 1.05;
}

.planning-board__header-cell--triple .planning-board__header-cell-primary,
.planning-board__header-cell--triple .planning-board__header-cell-tertiary {
  font-size: 0.69rem;
  font-weight: 700;
}

.planning-board__header-cell--triple .planning-board__header-cell-secondary {
  font-size: 0.65rem;
  font-weight: 600;
}

.planning-board__header-cell--calendar .planning-board__header-cell-primary {
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1px;
  padding-bottom: 1px;
  border-bottom: 1px solid rgb(203 213 225 / 0.75);
}

.planning-board__header-cell--calendar .planning-board__header-cell-secondary,
.planning-board__header-cell--calendar .planning-board__header-cell-tertiary {
  color: var(--color-text-muted);
  font-size: 0.61rem;
  font-weight: 600;
  line-height: 1.05;
}

.planning-board__header-cell--calendar .planning-board__header-cell-tertiary--sprint-duration-override {
  color: #b45309;
  font-weight: 800;
}

.board-action-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.15;
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.board-action-link:hover {
  transform: none;
  box-shadow: none;
  color: #475569;
  text-decoration: none;
}

.board-action-link:focus-visible {
  outline: 2px solid rgb(37 99 235 / 0.18);
  outline-offset: 3px;
  border-radius: 6px;
}

.planning-row {
  border-bottom: 1px solid var(--color-border);
}

.planning-row:last-child {
  border-bottom: none;
}

.planning-row__track {
  min-height: 27px;
}

.planning-row--with-baseline-overlay .planning-row__track {
  min-height: 39px;
}

.planning-row__name {
  display: grid;
  align-content: center;
}

.planning-row__title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.planning-row__indent {
  width: calc(var(--depth, 0) * 14px);
  flex: 0 0 auto;
}

.planning-row__title {
  min-width: 0;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
  overflow-wrap: normal;
}

.planning-row__size {
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.planning-row__visibility-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  opacity: 0.92;
}

.planning-row__visibility-toggle svg {
  display: block;
  width: 16px;
  height: 16px;
}

.planning-row__visibility-toggle:hover {
  color: #334155;
  opacity: 1;
}

.planning-row__visibility-toggle:focus-visible {
  outline: 1px solid rgb(37 99 235 / 0.28);
  outline-offset: 2px;
  border-radius: 4px;
  opacity: 1;
}

.planning-row__visibility-toggle--hidden {
  color: #334155;
  opacity: 1;
}

.planning-row__project-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  min-width: 0;
  margin-left: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: #475569;
  cursor: pointer;
  opacity: 0.96;
}

.planning-row__project-delete svg {
  display: block;
  width: 17px;
  height: 17px;
}

.planning-row__project-delete:hover {
  color: #991b1b;
  opacity: 1;
}

.planning-row__project-delete:focus-visible {
  outline: 1px solid rgb(185 28 28 / 0.28);
  outline-offset: 2px;
  border-radius: 4px;
  opacity: 1;
}

.planning-row__project-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.planning-row__project-move {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #475569;
  cursor: pointer;
  opacity: 0.96;
}

.planning-row__project-move svg {
  display: block;
  width: 15px;
  height: 15px;
}

.planning-row__project-move:hover {
  color: #1e293b;
  opacity: 1;
}

.planning-row__project-move:focus-visible {
  outline: 1px solid rgb(37 99 235 / 0.28);
  outline-offset: 2px;
  border-radius: 4px;
  opacity: 1;
}

.planning-row__project-move:disabled {
  color: #94a3b8;
  cursor: default;
  opacity: 0.45;
}

.planning-row__project-delete {
  margin-left: 0;
}

.planning-row--goal .planning-row__name,
.planning-row--goal .planning-row__track {
  background: var(--planning-goal-row-bg);
}

.planning-row--subgoal .planning-row__name,
.planning-row--subgoal .planning-row__track {
  background: var(--planning-subgoal-row-bg);
}

.planning-row--goal .planning-row__title {
  font-size: 0.87rem;
  font-weight: 700;
  color: #0f172a;
}

.planning-row--subgoal .planning-row__title {
  font-size: 0.82rem;
  font-weight: 650;
  color: #1e293b;
}

.planning-row--activity .planning-row__title {
  font-size: 0.78rem;
  font-weight: 500;
  color: #334155;
}

.planning-row--activity .planning-row__size {
  font-weight: 450;
}

.planning-row__reimport-markers {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

.planning-row__reimport-marker {
  flex: 0 0 auto;
}

.reimport-marker {
  width: 10px;
  height: 14px;
  border: 1px solid var(--reimport-marker-border, rgb(15 23 42 / 0.18));
  border-radius: 3px;
  background: var(--reimport-marker-fill, #cbd5e1);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45);
}

.reimport-marker--added {
  --reimport-marker-fill: #bbf7d0;
  --reimport-marker-border: #15803d;
}

.reimport-marker--progressChanged {
  --reimport-marker-fill: #bfdbfe;
  --reimport-marker-border: #1d4ed8;
}

.reimport-marker--sizeChangedAuto {
  --reimport-marker-fill: #fde68a;
  --reimport-marker-border: #b45309;
}

.reimport-marker--sizeChangedManual {
  --reimport-marker-fill: #f5d0fe;
  --reimport-marker-border: #a21caf;
}

.reimport-marker--structureChanged {
  --reimport-marker-fill: #fecaca;
  --reimport-marker-border: #be123c;
}

.planning-row--goal .planning-row__timeline-cell {
  background: var(--planning-goal-row-bg);
}

.planning-row--subgoal .planning-row__timeline-cell {
  background: var(--planning-subgoal-row-bg);
}

.planning-row__unplanned {
  display: flex;
  align-items: center;
  position: relative;
  background:
    linear-gradient(180deg, rgb(247 250 253 / 0.94), rgb(238 244 249 / 0.76));
}

.planning-row__unplanned-bar {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 2px 0;
}

.planning-row__unplanned-bar--baseline {
  z-index: 0;
  align-items: flex-start;
  padding-top: 4px;
  padding-bottom: 7px;
}

.planning-row__unplanned-bar--current-with-overlay {
  align-items: flex-end;
  padding-top: 7px;
  padding-bottom: 4px;
}

.planning-row--goal .planning-row__unplanned {
  background: var(--planning-unplanned-goal-row-bg);
}

.planning-row--subgoal .planning-row__unplanned {
  background: var(--planning-unplanned-subgoal-row-bg);
}

.planning-row__timeline {
  position: relative;
}

.planning-board__header-timeline,
.planning-board__reference-footer-timeline {
  position: relative;
}

.planning-board__reference-footer {
  display: grid;
  grid-template-columns: var(--name-column-width, var(--name-column-min-width)) minmax(0, 1fr);
  min-height: var(--reference-line-footer-height);
}

.planning-board__reference-footer-name {
  min-height: inherit;
}

.planning-board__reference-footer-track {
  display: grid;
  grid-template-columns: var(--unplanned-column-width) minmax(0, 1fr);
  min-height: inherit;
}

.planning-board__reference-footer-unplanned {
  min-height: inherit;
}

.planning-board__reference-footer-timeline {
  min-height: var(--reference-line-footer-height);
  overflow: visible;
}

.planning-board__reference-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16px;
  padding: 0;
  border: none;
  background: transparent;
  transform: translateX(-50%);
  pointer-events: none;
  touch-action: none;
  z-index: 4;
}

.planning-board__reference-handle--readonly {
  pointer-events: none;
}

.planning-board__reference-handle::before {
  content: none;
}

.planning-board__reference-segment {
  position: absolute;
  top: -1px;
  bottom: -1px;
  width: var(--reference-line-width);
  transform: translateX(-50%);
  border-radius: 0;
  background-color: var(--reference-line-fill-color, var(--reference-line-color-strong, #0f766e));
  background-image: var(--reference-line-fill-image, none);
  background-size: var(--reference-line-fill-size, auto);
  background-repeat: var(--reference-line-fill-repeat, no-repeat);
  background-position:
    center
    calc(0px - var(--reference-line-pattern-offset-y, 0px));
  cursor: ew-resize;
  pointer-events: auto;
  touch-action: none;
  z-index: 3;
}

.planning-board__reference-segment--readonly {
  cursor: default;
  pointer-events: none;
}

.planning-board__reference-footer-item {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.planning-board__reference-viewport-hidden {
  visibility: hidden;
  pointer-events: none !important;
}

.planning-board__reference-footer-connector {
  position: absolute;
  top: -1px;
  left: var(--reference-line-left-percentage, 0px);
  width: var(--reference-line-width);
  height: var(--reference-line-connector-height-px, 0px);
  transform: translateX(-50%);
  border-radius: 0;
  background-color: var(--reference-line-fill-color, var(--reference-line-color-strong, #0f766e));
  background-image: var(--reference-line-fill-image, none);
  background-size: var(--reference-line-fill-size, auto);
  background-repeat: var(--reference-line-fill-repeat, no-repeat);
  background-position:
    center
    calc(0px - var(--reference-line-pattern-offset-y, 0px));
  cursor: ew-resize;
  pointer-events: auto;
  touch-action: none;
  z-index: 2;
}

.planning-board__reference-footer-connector--readonly {
  cursor: default;
  pointer-events: none;
}

.planning-board__reference-label-chip {
  position: absolute;
  top: var(--reference-line-label-top-px, 0px);
  left: var(--reference-line-label-left-px, 0px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 3px 7px 3px 8px;
  border: 1px solid var(--reference-line-label-border, rgb(15 118 110 / 0.16));
  border-radius: 999px;
  background: rgb(255 255 255);
  box-shadow: 0 6px 18px rgb(15 23 42 / 0.09);
  pointer-events: auto;
}

.planning-board__reference-label-chip--selected {
  border-color: var(--reference-line-label-border-selected, rgb(15 118 110 / 0.28));
  background: var(--reference-line-label-selected-bg, #f0fdfa);
}

.planning-board__reference-label-button,
.planning-board__reference-label-edit,
.planning-board__reference-label-delete,
.planning-board__reference-label-color-toggle,
.planning-board__reference-color-option,
.planning-board__reference-style-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.planning-board__reference-label-button {
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: min(240px, calc(100vw - 48px));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: ew-resize;
  touch-action: none;
}

.planning-board__reference-label-button--readonly {
  cursor: default;
  touch-action: auto;
}

.planning-board__reference-label-button:focus-visible,
.planning-board__reference-label-edit:focus-visible,
.planning-board__reference-label-delete:focus-visible,
.planning-board__reference-label-color-toggle:focus-visible,
.planning-board__reference-color-option:focus-visible,
.planning-board__reference-style-option:focus-visible {
  outline: 2px solid var(--reference-line-focus, rgb(15 118 110 / 0.22));
  outline-offset: 2px;
  border-radius: 999px;
}

.planning-board__reference-label-edit,
.planning-board__reference-label-color-toggle,
.planning-board__reference-label-delete {
  width: 18px;
  height: 18px;
  color: var(--reference-line-color-strong, #0f766e);
  cursor: pointer;
  pointer-events: auto;
}

.planning-board__reference-label-edit svg,
.planning-board__reference-label-color-toggle svg,
.planning-board__reference-label-delete svg {
  width: 14px;
  height: 14px;
}

.planning-board__reference-label-edit:hover {
  color: #0f172a;
}

.planning-board__reference-label-color-toggle:hover {
  color: #0f172a;
}

.planning-board__reference-label-delete:hover {
  color: #0f172a;
}

.planning-board__reference-color-picker {
  position: absolute;
  right: 8px;
  top: auto;
  bottom: calc(100% + 8px);
  display: grid;
  gap: 10px;
  min-width: 208px;
  padding: 10px;
  border: 1px solid rgb(226 232 240 / 0.96);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.98);
  box-shadow: 0 10px 24px rgb(15 23 42 / 0.14);
  z-index: 4;
}

.planning-board__reference-picker-section {
  display: grid;
  gap: 6px;
}

.planning-board__reference-picker-label {
  color: #475569;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}

.planning-board__reference-color-options {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.planning-board__reference-color-option {
  width: 16px;
  height: 16px;
  border: 2px solid rgb(255 255 255 / 0.96);
  border-radius: 999px;
  background: var(--reference-line-swatch-color, #0f766e);
  box-shadow:
    0 0 0 1px rgb(148 163 184 / 0.42),
    inset 0 1px 0 rgb(255 255 255 / 0.24);
  cursor: pointer;
}

.planning-board__reference-color-option--active {
  box-shadow:
    0 0 0 2px var(--reference-line-focus, rgb(15 118 110 / 0.22)),
    inset 0 1px 0 rgb(255 255 255 / 0.24);
}

.planning-board__reference-style-options {
  display: grid;
  gap: 6px;
}

.planning-board__reference-style-option {
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid rgb(226 232 240 / 0.96);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.9);
  cursor: pointer;
  text-align: left;
}

.planning-board__reference-style-option:hover {
  border-color: var(--reference-line-label-border-selected, rgb(15 118 110 / 0.28));
  background: rgb(248 250 252 / 0.96);
}

.planning-board__reference-style-option--active {
  border-color: var(--reference-line-label-border-selected, rgb(15 118 110 / 0.28));
  background: var(--reference-line-label-selected-bg, #f0fdfa);
}

.planning-board__reference-style-preview {
  flex: 0 0 auto;
  width: var(--reference-line-style-preview-width, 40px);
  height: 4px;
  border-radius: 999px;
  background: var(--reference-line-style-preview-fill, currentColor);
}

.planning-board__reference-style-label {
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.planning-row__timeline-cell {
  min-width: var(--measured-time-column-width, var(--time-column-width));
  border-right: 1px solid var(--color-border);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 1), rgb(248 250 252 / 0.75));
}

.planning-row__timeline-cell:last-child {
  border-right: none;
}

.planning-row__timeline-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 1px 0;
}

.planning-row__timeline-bar--baseline {
  z-index: 0;
  align-items: flex-start;
  padding-top: 4px;
  padding-bottom: 7px;
}

.planning-row__timeline-bar--current-with-overlay {
  align-items: flex-end;
  padding-top: 7px;
  padding-bottom: 4px;
}

.planning-drop-preview {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 1px 0;
  pointer-events: none;
}

.planning-drop-preview--with-baseline-overlay {
  align-items: flex-end;
  padding-top: 7px;
  padding-bottom: 4px;
}

.planning-drop-preview__start-marker {
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 0;
  width: 0;
  border-left: 2px solid #1d4ed8;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.6);
}

.planning-row__timeline-placeholder {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  padding: 0 16px;
}

.plan-bar {
  position: relative;
  display: flex;
  align-items: stretch;
  width: var(--bar-width, 100%);
  min-height: 18px;
  border: 1px solid var(--plan-bar-border);
  border-radius: 2px;
  background: var(--plan-bar-bg);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8);
  overflow: hidden;
  cursor: default;
  user-select: none;
}

.plan-bar--readonly {
  cursor: default;
}

.plan-bar__progress {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  background: var(--plan-bar-fill);
  opacity: 0.9;
  pointer-events: none;
}

.plan-bar--unplanned {
  max-width: 100%;
}

.plan-bar--scheduled {
  width: 100%;
  min-width: 0;
}

.plan-bar--current-with-overlay {
  min-height: 14px;
  border-radius: 2px;
}

.plan-bar--baseline {
  min-height: 11px;
  border-color: #a8b5c3;
  background: #e8edf2;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.82);
}

.plan-bar--baseline.plan-bar--clipped-start {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.plan-bar--baseline.plan-bar--clipped-end {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.plan-bar--baseline.plan-bar--clipped-start::before,
.plan-bar--baseline.plan-bar--clipped-end::after {
  content: '';
  position: absolute;
  top: -1px;
  bottom: -1px;
  z-index: 2;
  width: 100%;
  max-width: 10px;
  pointer-events: none;
}

.plan-bar--baseline.plan-bar--clipped-start::before {
  left: -1px;
  border-right: 1px solid rgb(167 182 198 / 0.5);
  background:
    linear-gradient(90deg, rgb(238 243 248 / 0.88), rgb(238 243 248 / 0)),
    repeating-linear-gradient(
      -45deg,
      rgb(167 182 198 / 0.24) 0 2px,
      rgb(167 182 198 / 0) 2px 4px
    );
}

.plan-bar--baseline.plan-bar--clipped-end::after {
  right: -1px;
  border-left: 1px solid rgb(167 182 198 / 0.5);
  background:
    linear-gradient(270deg, rgb(238 243 248 / 0.88), rgb(238 243 248 / 0)),
    repeating-linear-gradient(
      45deg,
      rgb(167 182 198 / 0.24) 0 2px,
      rgb(167 182 198 / 0) 2px 4px
    );
}

.plan-bar--baseline .plan-bar__progress {
  background: #a8b5c3;
  opacity: 0.88;
}

.plan-bar--manual-width {
  border-color: var(--plan-bar-fill);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(var(--plan-bar-fill-rgb), 0.3) 0 10px,
      rgba(255, 255, 255, 0) 10px 20px
    ),
    var(--plan-bar-bg);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8);
}

.plan-bar__progress--manual {
  background:
    repeating-linear-gradient(
      -45deg,
      rgb(255 255 255 / 0.16) 0 8px,
      rgb(255 255 255 / 0) 8px 16px
    ),
    var(--plan-bar-fill);
  background-blend-mode: screen;
  opacity: 0.98;
}

.plan-bar--baseline.plan-bar--manual-width {
  border-color: #a8b5c3;
  background:
    repeating-linear-gradient(
      -45deg,
      rgb(168 181 195 / 0.12) 0 8px,
      rgb(255 255 255 / 0) 8px 16px
    ),
    #e8edf2;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.82);
}

.plan-bar--baseline .plan-bar__progress--manual {
  background:
    repeating-linear-gradient(
      -45deg,
      rgb(255 255 255 / 0.12) 0 8px,
      rgb(255 255 255 / 0) 8px 16px
    ),
    #a8b5c3;
  background-blend-mode: screen;
  opacity: 0.92;
}

.plan-bar--no-progress:not(.plan-bar--manual-width):not(.plan-bar--baseline) {
  border-color: var(--plan-bar-fill);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8);
}

.plan-bar--baseline.plan-bar--no-progress {
  border-color: #a8b5c3;
  background: #e8edf2;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.82);
}

.plan-bar__drag-surface {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: grab;
  touch-action: none;
  -webkit-user-drag: none;
}

.planning-board--readonly .board-action-link,
.planning-board--readonly .planning-row__visibility-toggle:disabled,
.planning-board--readonly .planning-row__project-delete:disabled,
.planning-board--readonly .planning-row__project-move:disabled {
  opacity: 0.55;
  cursor: default;
}

.planning-board--readonly .plan-bar__drag-surface,
.planning-board--readonly .plan-bar__resize-handle {
  cursor: default;
}

.snapshot-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 340;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgb(15 23 42 / 0.4);
  backdrop-filter: blur(10px);
}

.snapshot-dialog {
  display: flex;
  width: min(640px, calc(100vw - 32px));
  max-height: min(80vh, 760px);
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 20px 54px rgb(15 23 42 / 0.24), 0 4px 12px rgb(15 23 42 / 0.12);
}

.snapshot-dialog--wide {
  width: min(980px, calc(100vw - 32px));
}

.snapshot-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}

.snapshot-dialog__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.snapshot-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-btn-bg);
  color: var(--color-text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.modal__close-button:hover,
.help-dialog__close:hover,
.snapshot-dialog__close:hover {
  color: var(--color-text);
  background: #eff6ff;
  border-color: #bfdbfe;
}

.modal__close-button:focus-visible,
.help-dialog__close:focus-visible,
.snapshot-dialog__close:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.snapshot-dialog__body {
  overflow: auto;
  padding: 18px;
}

.snapshot-form {
  display: grid;
  gap: 14px;
}

.snapshot-dialog__field {
  display: grid;
  gap: 6px;
}

.snapshot-dialog__field-label {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.snapshot-dialog__textarea {
  min-height: 96px;
  resize: vertical;
}

.snapshot-dialog__counter {
  justify-self: end;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.snapshot-dialog__error {
  margin: 0;
  color: var(--color-danger);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

.snapshot-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.plan-bar[data-resizable="true"] .plan-bar__drag-surface {
  right: var(--plan-bar-resize-width);
}

.plan-bar--preview {
  width: 100%;
  min-width: 0;
  border-style: dashed;
  border-color: #60a5fa;
  background: rgb(219 234 254 / 0.72);
  box-shadow: none;
}

.plan-bar--preview.plan-bar--manual-width {
  border-color: #60a5fa;
  background:
    repeating-linear-gradient(
      -45deg,
      rgb(96 165 250 / 0.18) 0 8px,
      rgb(255 255 255 / 0) 8px 16px
    ),
    rgb(219 234 254 / 0.72);
  box-shadow: none;
}

.plan-bar--dragging {
  opacity: 0.65;
}

.plan-bar--dragging .plan-bar__drag-surface {
  cursor: grabbing;
}

.plan-bar--resizing {
  cursor: ew-resize;
}

.plan-bar__resize-handle {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--plan-bar-resize-width);
  cursor: ew-resize;
  z-index: 3;
  touch-action: none;
  background: transparent;
  opacity: 0;
  transition: opacity 120ms ease;
}

.plan-bar__resize-handle--start {
  right: auto;
  left: 0;
}

.plan-bar--manual-width .plan-bar__resize-handle {
  background: transparent;
}

.plan-bar:hover .plan-bar__resize-handle,
.plan-bar--resizing .plan-bar__resize-handle {
  opacity: 1;
}

.plan-bar__resize-handle::before {
  position: absolute;
  top: 50%;
  right: 1px;
  width: 1px;
  height: 10px;
  transform: translateY(-50%);
  background: rgb(15 23 42 / 0.3);
  opacity: 0.45;
  content: "";
}

.plan-bar--manual-width .plan-bar__resize-handle::before {
  opacity: 1;
}

body.planning-resize-active,
body.planning-resize-active * {
  cursor: ew-resize !important;
}

.planning-drop-target--active {
  box-shadow: inset 0 0 0 2px rgb(37 99 235 / 0.22);
}

.planning-row__timeline.planning-drop-target--active,
.planning-row__unplanned.planning-drop-target--active {
  background:
    linear-gradient(180deg, rgb(219 234 254 / 0.45), rgb(191 219 254 / 0.25));
}

@media (pointer: coarse) {
  :root {
    --plan-bar-resize-width: 12px;
  }
}

@media (min-width: 1081px) {
  body {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
  }

  .app-layout,
  .app-layout.app-layout--settings-open,
  .app-layout:not(.app-layout--settings-open) {
    flex: 1 1 auto;
    min-height: 0;
  }

  .workspace,
  .panel,
  .panel--grow,
  .panel__body,
  .panel__body--planning {
    min-height: 0;
  }
}

@media (max-width: 1080px) {
  body {
    height: auto;
    overflow: auto;
  }

  .app-footer {
    display: none;
  }
}

@media (max-width: 720px) {
  .mobile-notice__card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .mobile-notice__title {
    font-size: 1.32rem;
  }

  .mobile-notice__body {
    font-size: 0.95rem;
  }

  .snapshot-banner {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 6px 8px;
  }

  .snapshot-banner__versions {
    flex: 1 1 100%;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 8px;
  }

  .snapshot-banner__label {
    font-size: 0.72rem;
  }

  .snapshot-banner__versions--with-toelichting .snapshot-banner__label {
    padding-top: 0;
  }

  .snapshot-controls {
    display: flex;
    flex: 1 1 14rem;
    width: auto;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .snapshot-controls__primary {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .snapshot-controls__select {
    flex: 1 1 12rem;
    width: auto;
    min-width: 0;
  }

  .snapshot-controls__button,
  .snapshot-actions__toggle,
  .snapshot-banner__button {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 0.78rem;
  }

  .snapshot-compare-panel__header,
  .snapshot-compare-item__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .snapshot-compare-panel__controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .snapshot-compare-item__change-values {
    grid-template-columns: minmax(0, 1fr);
  }

  .snapshot-compare-item__change-arrow {
    display: none;
  }

  .snapshot-compare-item__field {
    grid-template-columns: minmax(0, 1fr);
  }

  .snapshot-compare-item__field-arrow {
    display: none;
  }

  .snapshot-banner__context {
    align-items: center;
    flex: 1 1 100%;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    margin-left: 0;
    text-align: center;
  }

  .snapshot-banner__text {
    font-size: 0.78rem;
    text-align: center;
    white-space: nowrap;
  }

  .snapshot-banner__actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .snapshot-banner__toelichting {
    display: none;
  }

  .project-header {
    padding-bottom: 6px;
  }

  .app-header {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 12px;
    padding: 6px 12px 0;
  }

  .app-header__brand {
    flex: 1 1 100%;
    justify-content: flex-start;
    min-width: 0;
    padding: 2px 0 0;
  }

  .app-header__actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 4px 0;
  }

  .app-header__utilities {
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-left: 0;
    gap: 10px;
    min-height: 0;
    padding-left: 0;
    border-left: none;
  }

  .lang-switcher__group {
    gap: 6px;
  }

  .app-header__logo {
    width: min(100%, 300px);
    max-height: 40px;
  }

  .planning-name-wrap {
    width: 100%;
    justify-content: flex-start;
    padding: 0;
  }

  .planning-name-meta {
    justify-items: start;
  }

  .planning-name-title {
    justify-content: flex-start;
    text-align: left;
    max-width: 100%;
  }

  .planning-file-name {
    justify-content: flex-start;
    text-align: left;
    max-width: 100%;
  }

  .modal-shell {
    padding: 16px;
  }

  .modal {
    padding: 0;
  }

  .modal__actions {
    flex-direction: column-reverse;
  }

  .modal__actions .button {
    width: 100%;
  }

  .planning-board__header,
  .planning-row {
    grid-template-columns: minmax(16rem, 1fr);
  }

  .planning-board__header-name {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .planning-board__header-name-content {
    flex-wrap: wrap;
  }

  .planning-row__name {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
}
