:root {
  --primary: #183863;
  --secondary: #2f80c9;
  --accent: #d97706;
  --background: #f7f4e8;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --text: #111827;
  --muted: #64748b;
  --line: rgba(24, 56, 99, 0.22);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --zoom: 1;
  --stack-height: 520px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: var(--text);
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 16%, rgba(47, 128, 201, 0.10), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(217, 119, 6, 0.10), transparent 28%),
    linear-gradient(135deg, #f9fbfd 0%, #eef4fb 48%, #f7f4e8 100%);
}

.intranet-roadmap-nav {
  position: sticky;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(660px, 720px) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 76px;
  padding: 10px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 48, 86, 0.88);
  box-shadow: 0 18px 55px rgba(4, 20, 40, 0.16);
  backdrop-filter: blur(18px);
}

.roadmap-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 900;
  text-transform: uppercase;
}

.app-brand {
  min-width: 220px;
}

.roadmap-brand img {
  width: 82px;
  height: 82px;
  margin: -10px 0 -28px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(16, 33, 58, 0.18));
}

.app-brand span {
  display: grid;
  gap: 2px;
}

.app-brand strong {
  color: white;
  font-size: 1rem;
  font-weight: 900;
}

.app-brand small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 800;
}

.intranet-roadmap-nav .main-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-self: center;
  width: 100%;
  justify-content: center;
  gap: 8px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.intranet-roadmap-nav .main-nav > a[hidden],
.intranet-roadmap-nav .main-nav > .nav-dropdown[hidden] {
  display: inline-flex !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.intranet-roadmap-nav .main-nav > .is-nav-placeholder {
  visibility: hidden !important;
  pointer-events: none !important;
}

.intranet-roadmap-nav .main-nav > .is-nav-placeholder .nav-dropdown-menu {
  display: none !important;
}

.intranet-roadmap-nav .main-nav a,
.nav-dropdown > a {
  padding: 11px 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.intranet-roadmap-nav .main-nav .nav-digital-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.intranet-roadmap-nav .main-nav .nav-digital-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(16, 33, 58, 0.18));
}

.intranet-roadmap-nav .main-nav a:hover,
.intranet-roadmap-nav .main-nav a.is-active,
.nav-dropdown:hover > a,
.nav-dropdown[data-open="1"] > a,
.nav-dropdown:focus-within > a {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.nav-actions {
  position: relative;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  min-width: 210px;
}

.nav-logon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  min-width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(24, 56, 99, 0.98), rgba(35, 85, 142, 0.88) 52%, rgba(11, 32, 61, 0.96)),
    rgba(15, 23, 42, 0.72);
  box-shadow: 0 14px 30px rgba(16, 33, 58, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.nav-logon-button:hover,
.nav-logon-button:focus-visible {
  border-color: rgba(140, 203, 242, 0.72);
  box-shadow: 0 18px 42px rgba(16, 33, 58, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  outline: 0;
  transform: translateY(-2px);
}

.nav-logon-button img {
  position: relative;
  z-index: 1;
  width: 27px;
  height: 27px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(16, 33, 58, 0.28));
}

.nav-extras-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  min-width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(24, 56, 99, 0.98), rgba(35, 85, 142, 0.88) 52%, rgba(11, 32, 61, 0.96)),
    rgba(15, 23, 42, 0.72);
  box-shadow: 0 14px 30px rgba(16, 33, 58, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.nav-extras-button:hover,
.nav-extras-button:focus-visible,
.nav-extras-button[aria-expanded="true"] {
  border-color: rgba(140, 203, 242, 0.72);
  box-shadow: 0 18px 42px rgba(16, 33, 58, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  outline: 0;
  transform: translateY(-2px);
}

.nav-extras-button img {
  position: relative;
  z-index: 1;
  width: 27px;
  height: 27px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(16, 33, 58, 0.28));
}

.nav-extras-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: clamp(18px, 4vw, 58px);
  z-index: 3200;
  width: min(360px, calc(100vw - 32px));
  padding: 2px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(24, 56, 99, 0.92), rgba(35, 85, 142, 0.78));
  box-shadow: 0 28px 70px rgba(16, 33, 58, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(0.98);
  transform-origin: top right;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-extras-button[hidden],
.nav-extras-panel[hidden] {
  display: none !important;
}

.nav-extras-panel:not([hidden]),
.nav-extras-panel[data-open="1"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.nav-extras-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  gap: 22px 24px;
  padding: 30px 26px 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 10%, rgba(233, 242, 251, 0.95), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  color: var(--text);
}

.nav-extras-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-extras-separator {
  grid-column: 1 / -1;
  width: 100%;
  height: 1px;
  margin: 2px 0 0;
  background: linear-gradient(90deg, transparent, rgba(24, 56, 99, 0.22), transparent);
}

.nav-extras-card a,
.nav-extras-card button {
  min-height: 96px;
  display: grid;
  grid-template-rows: 48px auto;
  place-items: center;
  gap: 10px;
  padding: 6px 4px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  color: #111827;
  font-size: 0.84rem;
  font-weight: 850;
  text-align: center;
  transition: transform 180ms ease, color 180ms ease, filter 180ms ease;
  cursor: pointer;
  font-family: inherit;
}

.nav-extras-card a:hover,
.nav-extras-card a:focus-visible,
.nav-extras-card button:hover,
.nav-extras-card button:focus-visible {
  outline: 0;
  color: var(--primary);
  filter: drop-shadow(0 12px 18px rgba(24, 56, 99, 0.16));
  transform: translateY(-3px);
}

.nav-extras-card a img,
.nav-extras-card button img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(16, 33, 58, 0.14));
}

.nav-extras-card a span,
.nav-extras-card button span {
  max-width: 100%;
  display: block;
  line-height: 1.18;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 620px) {
  .nav-extras-card {
    grid-template-columns: repeat(2, minmax(96px, 1fr));
  }
}

.nav-language-switch {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  width: 148px;
  min-width: 148px;
  height: 64px;
  padding: 12px 62px 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(24, 56, 99, 0.98), rgba(35, 85, 142, 0.94)),
    radial-gradient(circle at 78% 50%, rgba(255, 255, 255, 0.18), transparent 42%);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 1px 1px 4px rgba(255, 255, 255, 0.16),
    inset -1px -1px 8px rgba(4, 20, 40, 0.3),
    0 12px 28px rgba(20, 20, 20, 0.1),
    0 0 24px rgba(47, 128, 201, 0.22);
  color: white;
  cursor: default;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.nav-language-switch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  clip-path: inset(0 0 0 0 round 999px);
  background: linear-gradient(135deg, #183863, #2f80c9);
  box-shadow:
    0 0 0 0 inset rgba(5, 15, 35, 0.1),
    -0.05em -0.05em 0.05em 0 inset rgba(4, 20, 40, 0.28),
    0 0 0.05em 0.2em inset rgba(255, 255, 255, 0.13),
    0.025em 0.05em 0.1em 0 inset rgba(255, 255, 255, 0.42),
    0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.16),
    -0.075em -0.25em 0.25em 0.1em inset rgba(4, 20, 40, 0.28);
  transition: box-shadow 300ms ease, clip-path 250ms ease, transform 250ms ease;
}

.nav-language-switch::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: calc(100% + 0.3em);
  height: calc(100% + 0.3em);
  top: -0.15em;
  left: -0.15em;
  border-radius: inherit;
  background: linear-gradient(-135deg, rgba(5, 5, 5, 0.34), transparent 22%, transparent 100%);
  filter: blur(0.0125em);
  opacity: 0.22;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.nav-language-switch:hover {
  transform: translateY(-2px);
}

.nav-language-switch:hover::before {
  clip-path: inset(1px 1px 1px 1px round 999px);
  box-shadow:
    0.1em 0.15em 0.05em 0 inset rgba(5, 5, 5, 0.26),
    -0.025em -0.03em 0.05em 0.025em inset rgba(5, 5, 5, 0.18),
    0.25em 0.25em 0.2em 0 inset rgba(5, 5, 5, 0.14),
    0 0 0.05em 0.5em inset rgba(255, 255, 255, 0.12),
    0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.18),
    -0.075em -0.12em 0.2em 0.1em inset rgba(5, 5, 5, 0.16);
}

.nav-language-switch span {
  position: relative;
  z-index: 2;
}

.nav-language-switch .flag-language-switch__code {
  color: rgba(255, 244, 244, 0.78);
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.nav-language-switch .flag-language-switch__label {
  color: #fff7f4;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.nav-language-switch img {
  position: absolute;
  right: -2px;
  top: 50%;
  z-index: 1;
  width: 64px;
  height: 64px;
  border: 2px solid rgba(255, 247, 244, 0.92);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(20, 20, 20, 0.18), 0 0 14px rgba(255, 255, 255, 0.18);
  transform: translateY(-50%);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  padding-bottom: 28px;
  margin-bottom: -28px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  z-index: 80;
  width: 270px;
  padding: 10px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  background: rgba(16, 33, 58, 0.94);
  box-shadow: 0 24px 70px rgba(4, 20, 40, 0.28);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 180ms ease 80ms, transform 180ms ease 80ms;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -30px;
  height: 32px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown[data-open="1"] .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
  padding: 9px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  text-decoration: none;
  text-transform: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  outline: 0;
}

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

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 96px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(24, 56, 99, 0.16);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

.roadmap-app-header {
  justify-content: space-between;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.3vw, 2.15rem);
  letter-spacing: 0;
}

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

.tool-button,
.primary-button,
.ghost-button,
.danger-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  overflow: visible;
  border: 1px solid rgba(40, 40, 40, 0.12);
  border-radius: 999px;
  padding: 0 15px;
  color: #475569;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 246, 251, 0.96));
  box-shadow:
    -0.15em -0.15em 0.15em -0.075em rgba(5, 5, 5, 0.08),
    0.0375em 0.0375em 0.0675em 0 rgba(5, 5, 5, 0.08),
    0 10px 18px rgba(20, 20, 20, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.tool-button.icon-only {
  width: 42px;
  min-width: 42px;
  height: 38px;
  padding: 0;
}

.tool-button::before,
.tool-button::after,
.ghost-button::before,
.ghost-button::after,
.danger-button::before,
.danger-button::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.tool-button::before,
.ghost-button::before,
.danger-button::before {
  inset: 0;
  z-index: -1;
  clip-path: inset(0 0 0 0 round 999px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(238, 241, 239, 0.72));
  box-shadow:
    0 0 0 0 inset rgba(5, 5, 5, 0.08),
    -0.05em -0.05em 0.05em 0 inset rgba(5, 5, 5, 0.12),
    0 0 0.05em 0.2em inset rgba(255, 255, 255, 0.32),
    0.025em 0.05em 0.1em 0 inset rgba(255, 255, 255, 0.8),
    -0.075em -0.25em 0.25em 0.1em inset rgba(5, 5, 5, 0.1);
  transition:
    clip-path 250ms ease,
    box-shadow 300ms ease;
}

.tool-button::after,
.ghost-button::after,
.danger-button::after {
  z-index: -2;
  width: calc(100% + 0.3em);
  height: calc(100% + 0.3em);
  top: -0.15em;
  left: -0.15em;
  background: linear-gradient(-135deg, rgba(5, 5, 5, 0.22), transparent 22%, transparent 100%);
  filter: blur(0.0125em);
  opacity: 0.18;
  mix-blend-mode: multiply;
}

.button-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.10));
}

.round-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  pointer-events: none;
}

.roadmap-info-button {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  width: 26px;
  min-width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(72, 151, 231, 0.64);
  border-radius: 50%;
  overflow: visible;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(229, 239, 250, 0.94));
  box-shadow:
    0 0 0 4px rgba(47, 128, 201, 0.08),
    0 8px 16px rgba(25, 93, 160, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.roadmap-info-button::before,
.roadmap-info-button::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.roadmap-info-button::before {
  inset: 1px;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.96), rgba(226, 239, 252, 0.68) 58%, rgba(203, 223, 244, 0.7));
  box-shadow: inset -0.04em -0.12em 0.16em rgba(24, 56, 99, 0.12);
}

.roadmap-info-button::after {
  inset: -4px;
  z-index: -1;
  background: radial-gradient(circle, rgba(47, 128, 201, 0.24), transparent 68%);
  filter: blur(4px);
  opacity: 0.86;
}

.roadmap-info-button:hover,
.roadmap-info-button:focus-visible {
  border-color: rgba(47, 128, 201, 0.9);
  outline: 0;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 5px rgba(47, 128, 201, 0.11),
    0 10px 20px rgba(25, 93, 160, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.roadmap-info-button:active {
  transform: translateY(0) scale(0.96);
}

.roadmap-info-button img {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.tool-button:hover,
.primary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-2px);
  border-color: #b7c6dc;
  box-shadow:
    -0.15em -0.15em 0.15em -0.075em rgba(5, 5, 5, 0.1),
    0.0375em 0.0375em 0.0675em 0 rgba(5, 5, 5, 0.1),
    0 14px 24px rgba(20, 20, 20, 0.1);
}

.tool-button:hover::before,
.tool-button:focus-visible::before,
.ghost-button:hover::before,
.ghost-button:focus-visible::before,
.danger-button:hover::before,
.danger-button:focus-visible::before {
  clip-path: inset(clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) round 999px);
  box-shadow:
    0.1em 0.15em 0.05em 0 inset rgba(5, 5, 5, 0.18),
    -0.025em -0.03em 0.05em 0.025em inset rgba(5, 5, 5, 0.12),
    0 0 0.05em 0.42em inset rgba(255, 255, 255, 0.12);
}

.tool-button:active,
.ghost-button:active,
.danger-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    0 6px 12px rgba(20, 20, 20, 0.08),
    inset 0.08em 0.12em 0.08em rgba(5, 5, 5, 0.1);
}

.tool-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.primary-button {
  z-index: 0;
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.danger-button {
  color: #991b1b;
  border-color: rgba(248, 113, 113, 0.30);
}

.zoom-readout {
  min-width: 52px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.import-label {
  display: inline-flex;
  align-items: center;
}

.import-label input {
  display: none;
}

.workspace {
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
  gap: 16px;
  height: calc(100vh - 76px);
  width: 100%;
  min-height: 0;
  padding: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #f5f8fc 0%, #eef3f8 100%);
}

.side-panel {
  position: relative;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 0;
  border-right: 0;
  background: transparent;
  backdrop-filter: none;
}

.roadmap-sidebar-brand {
  position: relative;
  height: 74px;
  margin-bottom: 1px;
}

.roadmap-sidebar-watermark {
  position: absolute;
  left: 3px;
  top: 8px;
  width: 218px;
  max-height: 58px;
  object-fit: contain;
  opacity: 0.17;
  filter: saturate(1.05);
}

.roadmap-sidebar-icon {
  position: absolute;
  z-index: 1;
  left: 16px;
  top: 8px;
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(24, 56, 99, 0.18));
}

.roadmap-sidebar-card,
.roadmap-search-card {
  position: relative;
  isolation: auto;
}

.roadmap-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.side-panel .roadmap-sidebar-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.roadmap-sidebar-head .zoom-readout {
  min-width: 48px;
  padding: 5px 9px;
  border: 1px solid rgba(25, 93, 160, 0.14);
  border-radius: 999px;
  color: #195da0;
  background: rgba(233, 242, 251, 0.72);
  font-size: 0.76rem;
}

.roadmap-side-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  justify-items: center;
}

.roadmap-side-actions .tool-button {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  justify-content: center;
  padding: 0 14px;
}

.roadmap-side-actions .tool-button.icon-only {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 50%;
}

.roadmap-side-actions .button-icon {
  width: 25px;
  height: 25px;
}

.roadmap-side-actions .tool-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roadmap-side-actions .roadmap-text-tool {
  grid-column: span 2;
  min-height: 36px;
  width: 100%;
  padding: 0 12px;
}

.roadmap-io-menu {
  position: relative;
  width: 48px;
  height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.roadmap-side-actions .roadmap-io-menu .tool-button.icon-only {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
}

.roadmap-io-trigger .button-icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.roadmap-io-panel {
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  z-index: 500;
  min-width: 174px;
  padding: 10px;
  border: 1px solid rgba(31, 79, 130, 0.28);
  border-radius: 18px;
  background: rgba(31, 52, 82, 0.96);
  box-shadow:
    0 24px 55px rgba(12, 27, 48, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 7px;
  opacity: 0;
  pointer-events: none;
  transform: translate(0, -50%) translateX(-8px) scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.roadmap-io-panel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -18px;
  width: 20px;
}

.roadmap-io-menu:hover .roadmap-io-panel,
.roadmap-io-menu:focus-within .roadmap-io-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%) translateX(0) scale(1);
}

.roadmap-io-option {
  width: 100%;
  min-height: 36px;
  padding: 9px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font: 800 12px/1.2 "Inter", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.roadmap-io-option:hover,
.roadmap-io-option:focus-visible {
  outline: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.roadmap-io-option.import-label {
  justify-content: flex-start;
}

.roadmap-context-menu {
  position: fixed;
  z-index: 4200;
  min-width: 156px;
  padding: 8px;
  border: 1px solid rgba(31, 79, 130, 0.28);
  border-radius: 16px;
  background: rgba(31, 52, 82, 0.97);
  box-shadow:
    0 22px 54px rgba(12, 27, 48, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 6px;
}

.roadmap-context-menu[hidden] {
  display: none;
}

.roadmap-context-menu button {
  min-height: 36px;
  padding: 9px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font: 800 12px/1.2 "Inter", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}

.roadmap-context-menu button:hover,
.roadmap-context-menu button:focus-visible {
  outline: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.roadmap-zoom-tools {
  display: grid;
  grid-template-columns: 38px minmax(56px, 1fr) 38px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.roadmap-selection-card .roadmap-zoom-tools .tool-button.icon-only {
  width: 38px;
  min-width: 38px;
  height: 34px;
  min-height: 34px;
  padding: 0;
}

.roadmap-selection-card .roadmap-zoom-tools .button-icon {
  width: 18px;
  height: 18px;
}

.roadmap-selection-card .zoom-readout {
  display: inline-grid;
  place-items: center;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(25, 93, 160, 0.14);
  border-radius: 999px;
  color: #195da0;
  background: rgba(233, 242, 251, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
}

.roadmap-search-card {
  order: 0;
}

.roadmap-info-panel {
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.6;
}

.roadmap-info-panel p {
  margin: 0;
}

.roadmap-info-card {
  max-width: min(620px, calc(100vw - 32px));
}

.side-panel section {
  padding: 16px;
  border: 1px solid rgba(24, 56, 99, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.side-panel h2 {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.side-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-panel {
  flex: 0 0 auto;
}

.search-label {
  gap: 8px;
}

.tag-filter-panel {
  margin-top: 12px;
}

.tag-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 900;
}

.tag-clear-button {
  border: 1px solid rgba(25, 93, 160, 0.16);
  padding: 4px 8px;
  border-radius: 999px;
  color: #195da0;
  font-weight: 900;
  background: rgba(233, 242, 251, 0.82);
  cursor: pointer;
}

.tag-clear-button[hidden] {
  display: none;
}

.tag-filter-list,
.search-tags,
.tile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-filter-list {
  margin-top: 8px;
}

.tag-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(25, 93, 160, 0.18);
  border-radius: 999px;
  padding: 6px 8px;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.tag-filter span {
  color: #195da0;
}

.tag-filter:hover,
.tag-filter.active {
  transform: translateY(-1px);
  border-color: rgba(25, 93, 160, 0.42);
  color: #143f72;
  background: rgba(233, 242, 251, 0.9);
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 238px;
  margin-top: 12px;
  overflow: auto;
  padding-right: 4px;
}

.search-result {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 9px;
  text-align: left;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.search-result:hover,
.search-result.active {
  transform: translateY(-1px);
  border-color: rgba(25, 93, 160, 0.32);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.search-result-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--tile-color);
  font-weight: 900;
  background: color-mix(in srgb, var(--tile-color) 12%, white);
}

.search-result strong,
.search-result small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result small,
.search-empty {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.search-tags {
  margin-top: 6px;
}

.search-tags i,
.tile-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: #195da0;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 900;
  background: rgba(233, 242, 251, 0.9);
}

.search-tags i {
  padding: 3px 6px;
}

.feature-list span {
  padding: 7px 9px;
  border-radius: 999px;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(226, 232, 240, 0.82);
}

.minimap #minimapViewport {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: 92px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
}

.minimap div div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 24px;
}

.minimap i {
  display: block;
  width: 20px;
  height: 8px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.32);
}

.minimap i.hot {
  background: var(--primary);
}

.board-shell {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px 18px 14px;
  border: 1px solid rgba(24, 56, 99, 0.10);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.11);
  backdrop-filter: blur(16px);
}

.roadmap-app-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 14px;
}

.roadmap-app-title-row h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.roadmap-title-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.roadmap-loaded-badge {
  padding: 8px 14px;
  border-radius: 999px;
  color: #143f72;
  background: rgba(233, 242, 251, 0.88);
  font-size: 0.78rem;
  font-weight: 800;
}

.roadmap-filter-toggle {
  display: none;
  place-items: center;
  gap: 3px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(25, 93, 160, 0.16);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(233, 242, 251, 0.9));
  box-shadow: 0 10px 22px rgba(16, 33, 58, 0.1);
  cursor: pointer;
}

.roadmap-filter-toggle .round-icon {
  width: 18px;
  height: 18px;
}

.roadmap-title-tools .roadmap-filter-toggle {
  display: grid;
}

body:not(.roadmap-filters-open):not(.presentation-mode) .board-shell > .roadmap-filter-row,
body:not(.roadmap-filters-open):not(.presentation-mode) .board-shell > .roadmap-filter-chips,
body:not(.roadmap-filters-open):not(.presentation-mode) .board-shell > .roadmap-search-results {
  display: none;
}

body.roadmap-filters-open .roadmap-title-tools .roadmap-filter-toggle {
  border-color: rgba(25, 93, 160, 0.34);
  background: linear-gradient(180deg, rgba(233, 242, 251, 1), rgba(210, 230, 249, 0.96));
  box-shadow:
    0 10px 24px rgba(25, 93, 160, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.roadmap-filter-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  margin-bottom: 12px;
}

.roadmap-filter-row > * {
  min-width: 0;
}

.roadmap-filter-row strong {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
}

.roadmap-filter-row input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 0 22px 0 18px;
  color: #0f172a;
  background: linear-gradient(180deg, #eef3f9, #dce4ee);
  box-shadow:
    inset 0 2px 8px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.9);
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.roadmap-filter-row input:focus {
  border-color: rgba(25, 93, 160, 0.38);
  background: linear-gradient(180deg, #f6f9fd, #e8eef6);
  box-shadow:
    0 0 0 4px rgba(25, 93, 160, 0.08),
    inset 0 2px 7px rgba(15, 23, 42, 0.08);
}

.roadmap-filter-chips {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.roadmap-search-results {
  max-height: 248px;
  min-height: 92px;
  margin: 0 0 16px;
  padding: 10px;
  border: 1px solid rgba(25, 93, 160, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(238, 244, 251, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  overflow: auto;
  flex: 0 0 auto;
}

.search-active-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 8px;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
}

.search-active-filter strong {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(25, 93, 160, 0.26);
  border-radius: 999px;
  color: #143f72;
  background: rgba(233, 242, 251, 0.96);
}

.board-scroll {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: scroll;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  cursor: grab;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 18px;
  background:
    linear-gradient(rgba(24, 56, 99, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 56, 99, 0.035) 1px, transparent 1px),
    rgba(249, 251, 253, 0.92);
  background-size: 22px 22px;
}

.board-scroll:active {
  cursor: grabbing;
}

.board {
  position: relative;
  min-width: max-content;
  min-height: max(100%, calc(var(--stack-height) + 220px));
  padding: 58px 120px 96px 72px;
  transform: scale(var(--zoom));
  transform-origin: top left;
}

.columns {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 120px;
  position: relative;
  z-index: 2;
}

.workflow-column {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 260px;
  min-height: calc(var(--stack-height) + 98px);
}

.column-plus,
.column-minus,
.column-edit,
.tile-delete,
.tile-collapse,
.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  color: #312e81;
  font-size: 1.25rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
  cursor: pointer;
}

.column-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.column-plus,
.column-minus,
.column-edit {
  align-self: center;
}

.column-minus {
  opacity: 0.82;
}

.column-minus:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  box-shadow: none;
}

.tile-delete,
.tile-collapse {
  position: absolute;
  top: 12px;
  width: 36px;
  height: 36px;
  opacity: 0;
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.72);
  transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.tile-delete {
  right: 12px;
}

.tile-collapse {
  right: 54px;
}

.tile-delete .round-icon,
.tile-collapse .round-icon {
  width: 20px;
  height: 20px;
}

.tile-collapse .round-icon {
  transition: transform 180ms ease;
}

.tile-collapse.is-collapsed .round-icon {
  transform: rotate(180deg);
}

.tile.selected .tile-delete,
.tile:hover .tile-delete,
.tile.selected .tile-collapse,
.tile:hover .tile-collapse {
  opacity: 1;
  transform: scale(1);
}

.tile-delete:hover {
  box-shadow: 0 14px 28px rgba(153, 27, 27, 0.18);
}

.tile-collapse:hover {
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.18);
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.column-header em {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  background: rgba(124, 58, 237, 0.09);
}

.column-header strong {
  color: #1e293b;
  font-size: 0.9rem;
}

.tile-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  min-height: var(--stack-height);
  border-radius: 18px;
  transition: background 160ms ease, outline 160ms ease;
}

.tile-stack.drop-empty {
  outline: 2px dashed rgba(124, 58, 237, 0.32);
  outline-offset: 10px;
  background: rgba(124, 58, 237, 0.04);
}

.tile {
  position: relative;
  top: var(--tile-offset, 0px);
  min-height: 152px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  overflow: visible;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58));
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.tile.dragging {
  opacity: 0.42;
}

.tile:active {
  cursor: grabbing;
}

.tile.drop-before::after,
.tile.drop-after::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 4px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.24);
  pointer-events: none;
}

.tile.drop-before::after {
  top: -13px;
}

.tile.drop-after::after {
  bottom: -13px;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-left: 6px solid var(--tile-color);
  pointer-events: none;
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.17);
}

.tile.path-active {
  opacity: 1;
  transform: scale(1.03);
  box-shadow: 0 24px 58px color-mix(in srgb, var(--tile-color) 32%, rgba(15, 23, 42, 0.15));
}

.tile.dimmed {
  opacity: 0.25;
  filter: saturate(0.7);
}

.tile.selected {
  outline: 3px solid color-mix(in srgb, var(--tile-color) 42%, transparent);
}

.tile.is-free-dragging,
.tile.is-free-dragging:hover,
.tile.path-active.is-free-dragging,
.tile.selected.is-free-dragging {
  z-index: 80;
  cursor: grabbing;
  transform: translateX(var(--tile-drag-x, 0px)) scale(1.02);
  box-shadow: 0 30px 70px rgba(21, 47, 86, 0.24);
}

.tile-glow {
  position: absolute;
  inset: auto 16px -20px 16px;
  height: 40px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tile-color) 18%, transparent);
  filter: blur(20px);
  pointer-events: none;
}

.tile-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tile-color) 16%, white);
  font-size: 1.35rem;
}

.tile-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tile-count,
.workflow-badge,
.attachment-badge {
  min-width: 30px;
  padding: 5px 8px;
  border-radius: 999px;
  text-align: center;
  color: var(--tile-color);
  font-weight: 900;
  background: color-mix(in srgb, var(--tile-color) 12%, white);
}

.workflow-badge {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
}

.attachment-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  color: #475569;
  font-size: 0.72rem;
  background: rgba(100, 116, 139, 0.12);
}

.tile h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.tile p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.4;
}

.tile-tags {
  margin-top: 12px;
}

.tile-tag {
  padding: 4px 7px;
  color: color-mix(in srgb, var(--tile-color) 72%, #1e1b4b);
  background: color-mix(in srgb, var(--tile-color) 12%, white);
}

.empty-column {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 18px;
  border: 1px dashed rgba(100, 116, 139, 0.34);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.38);
}

.connections {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}

.connector {
  fill: none;
  stroke: var(--line);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 8px 8px rgba(124, 58, 237, 0.08));
}

.connector-active {
  stroke: var(--primary);
  stroke-width: 5;
}

.connector-muted {
  opacity: 0.18;
}

.connector-workflow-merge {
  stroke: #195da0;
  stroke-width: 2.5;
  stroke-dasharray: 10 8;
  opacity: 0.62;
  filter: drop-shadow(0 8px 12px rgba(25, 93, 160, 0.16));
}

.connector-workflow-active {
  stroke: #2f80c9;
  stroke-width: 4;
  opacity: 0.95;
}

.presentation-exit {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 30;
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: 999px;
  padding: 0 16px 0 12px;
  color: #1e293b;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  cursor: pointer;
}

.presentation-brand {
  position: fixed;
  top: 18px;
  left: 22px;
  z-index: 230;
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 6px 18px 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: 999px;
  color: #10233f;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
}

.presentation-brand-watermark {
  position: absolute;
  left: 14px;
  width: 128px;
  max-height: 42px;
  object-fit: contain;
  opacity: 0.16;
  pointer-events: none;
}

.presentation-brand-icon {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(24, 56, 99, 0.18));
}

.presentation-brand span {
  position: relative;
  z-index: 1;
}

.presentation-exit img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.presentation-zoom {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 220;
  display: none;
  grid-template-columns: 34px 38px 72px 38px 38px;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.presentation-zoom .tool-button.icon-only {
  width: 38px;
  min-width: 38px;
  height: 34px;
  min-height: 34px;
  padding: 0;
}

.presentation-zoom .roadmap-filter-toggle {
  display: grid;
  width: 34px;
  min-width: 34px;
  height: 34px;
  box-shadow: none;
}

.presentation-zoom .button-icon {
  width: 18px;
  height: 18px;
}

.presentation-zoom .zoom-readout {
  display: inline-grid;
  place-items: center;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(25, 93, 160, 0.14);
  border-radius: 999px;
  color: #195da0;
  background: rgba(233, 242, 251, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
}

.modal {
  width: min(760px, calc(100vw - 34px));
  border: 0;
  padding: 0;
  background: transparent;
}

.tile-editor-modal {
  width: min(1520px, calc(100vw - 32px));
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(8px);
}

.modal-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.26);
}

.modal-header,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-header h2 {
  margin-bottom: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 180px 140px;
  gap: 16px;
  margin: 24px 0;
}

.tile-editor-card {
  width: 100%;
  box-sizing: border-box;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  overflow-x: hidden;
}

.tile-editor-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.tile-editor-grid > label:not(.wide),
.tile-editor-grid > .attachment-panel,
.tile-editor-grid input,
.tile-editor-grid textarea,
.tile-editor-grid select {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.tile-editor-grid > label:nth-child(1) {
  grid-column: 1 / 2;
}

.tile-editor-grid > label:nth-child(2),
.tile-editor-grid > label:nth-child(3) {
  grid-column: auto;
}

.tile-editor-grid label.wide,
.tile-editor-grid .attachment-panel.wide {
  grid-column: auto;
}

.tile-editor-grid .tile-editor-full {
  grid-column: 1 / -1;
}

.column-form-grid {
  grid-template-columns: 1fr 190px;
}

.checkbox-label {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
}

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

.attachment-list {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.attachment-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.62);
}

.attachment-preview {
  display: grid;
  place-items: center;
  width: 72px;
  height: 54px;
  overflow: hidden;
  border-radius: 10px;
  color: #334155;
  text-decoration: none;
  background: rgba(226, 232, 240, 0.72);
}

.attachment-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-file-icon {
  font-size: 0.75rem;
  font-weight: 900;
}

.attachment-info {
  min-width: 0;
}

.attachment-info strong,
.attachment-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-info small,
.attachment-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.attachment-remove {
  min-height: 34px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 10px;
  padding: 0 10px;
  color: #991b1b;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 800;
}

label.wide {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.presentation-mode .intranet-roadmap-nav,
.presentation-mode .app-header,
.presentation-mode .side-panel {
  display: none;
}

.presentation-mode .presentation-exit {
  display: inline-flex;
  z-index: 230;
}

.presentation-mode .presentation-brand {
  display: inline-flex;
}

.presentation-mode .presentation-zoom {
  display: grid;
  z-index: 220;
}

.presentation-mode:not(.presentation-filters-open) .roadmap-app-title-row,
.presentation-mode:not(.presentation-filters-open) .roadmap-filter-row,
.presentation-mode:not(.presentation-filters-open) .roadmap-filter-chips,
.presentation-mode:not(.presentation-filters-open) .roadmap-search-results {
  display: none;
}

.presentation-mode.presentation-filters-open .roadmap-filter-toggle {
  border-color: rgba(25, 93, 160, 0.34);
  background: linear-gradient(180deg, rgba(233, 242, 251, 1), rgba(210, 230, 249, 0.96));
}

.presentation-mode.presentation-filters-open .roadmap-app-title-row,
.presentation-mode.presentation-filters-open .roadmap-filter-row,
.presentation-mode.presentation-filters-open .roadmap-filter-chips,
.presentation-mode.presentation-filters-open .roadmap-search-results {
  margin-left: 24px;
  margin-right: 24px;
}

.presentation-mode .workspace {
  display: block;
  height: 100vh;
  padding: 0;
  overflow: hidden;
}

.presentation-mode .board-shell {
  width: 100vw;
  height: 100vh;
  max-width: none;
  padding: 72px 0 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.presentation-mode .board-scroll {
  height: calc(100vh - 212px);
  max-height: calc(100vh - 212px);
  width: 100vw;
  overflow: auto;
  border: 0;
  border-radius: 0;
  scrollbar-gutter: auto;
}

.presentation-mode:not(.presentation-filters-open) .board-scroll {
  height: calc(100vh - 72px);
  max-height: calc(100vh - 72px);
}

.presentation-mode .board {
  padding-top: 42px;
  min-height: max(100vh, calc(var(--stack-height) + 260px));
}

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

  .intranet-roadmap-nav {
    align-items: stretch;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px 14px 12px;
  }

  .roadmap-brand img {
    width: 70px;
    height: 70px;
    margin: -8px 0 -22px;
  }

  .roadmap-brand span {
    display: none;
  }

  .intranet-roadmap-nav .main-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .intranet-roadmap-nav .main-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .app-header {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace {
    grid-template-columns: 1fr;
    height: calc(100vh - 168px);
  }

  .side-panel {
    display: none;
  }

  .board {
    padding: 44px 80px 64px 34px;
  }

  .columns {
    gap: 90px;
  }

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