@import url('/styles/icons.css');
/* Roadmap App — corrected visual stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg-primary: #ffffff;
  --bg-secondary: #f7f7f5;
  --text-primary: #1a1a18;
  --text-secondary: #6b6b68;
  --border-primary: #e4e4e0;
  --border-secondary: #d0d0cb;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.04);
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 2% 0%, rgba(0,107,63,.16), transparent 28%),
    radial-gradient(circle at 96% 8%, rgba(183,226,138,.20), transparent 32%),
    linear-gradient(135deg,#f7fbf8 0%,#edf8ef 52%,#fbfdfb 100%);
  color: var(--text-primary);
  min-height: 100vh;
}

.app-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px 60px;
}

.topnav {
  background: transparent;
display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-primary);
  margin-bottom: 1.35rem;
  padding: 0 2px;
}

.topnav-brand {
  font-size: 15px;
  font-weight: 650;
  color: var(--text-primary);
  margin-right: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
}

.nav-item {
  font-size: 13px;
  padding: 10px 12px 11px;
  cursor: pointer;
  color: var(--text-secondary);
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: flex;
  align-items: center;
  gap: 5px;
  user-select: none;
  font-family: var(--font-sans);
}

.nav-item:hover { color: var(--text-primary); }
.nav-item.active { color: var(--text-primary); font-weight: 650; border-bottom-color: var(--text-primary); }
.nav-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.btn {
  font-size: 13px;
  padding: 0 12px;
  height: 32px;
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  font-family: var(--font-sans);
  transition: background 0.12s, border-color 0.12s, opacity 0.12s;
}

.btn:hover { background: var(--bg-secondary); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-primary { background: var(--text-primary); color: var(--bg-primary); border-color: var(--text-primary); }
.btn-primary:hover { opacity: 0.88; }
.btn-danger { color: #993C1D; border-color: #F0997B; }
.btn-danger:hover { background: #FAECE7; }
.btn-danger-solid { background: #D85A30; color: white; border-color: #D85A30; }
.btn-danger-solid:hover { background: #993C1D; }
.btn-restore { color: #185FA5; border-color: #85B7EB; }
.btn-restore:hover { background: #E6F1FB; }

.btn-symbol {
  display: inline-block;
  margin-right: 2px;
  font-weight: 800;
  line-height: 1;
}

.modal-close {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #111;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-close:hover { background: #f5f5f5; }

select, input[type="text"], input[type="number"], input[type="password"] {
  font-size: 13px;
  padding: 5px 10px;
  height: 34px;
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

textarea {
  font-size: 13px;
  padding: 7px 10px;
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  resize: vertical;
  width: 100%;
  min-height: 72px;
}

select:focus, input:focus, textarea:focus { outline: none; border-color: #9a9a95; }

.badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.p-critical { background: #FAECE7; color: #993C1D; }
.p-high { background: #FAEEDA; color: #854F0B; }
.p-medium { background: #E6F1FB; color: #185FA5; }
.p-low { background: #EAF3DE; color: #3B6D11; }
.roi-pos { background: #EAF3DE; color: #3B6D11; }
.roi-neg { background: #FCEBEB; color: #A32D2D; }
.dec-g { background: #EAF3DE; color: #3B6D11; }
.dec-a { background: #FAECE7; color: #993C1D; }

.dot, .status-dot, .tl-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-idea { background-color: #888780; }
.status-planned { background-color: #378ADD; }
.status-approved { background-color: #7F77DD; }
.status-inprogress { background-color: #1D9E75; }
.status-done { background-color: #639922; }
.dot.status-idea, .tl-leg-dot.status-idea, .status-dot.status-idea { background: #888780; }
.dot.status-planned, .tl-leg-dot.status-planned, .status-dot.status-planned { background: #378ADD; }
.dot.status-approved, .tl-leg-dot.status-approved, .status-dot.status-approved { background: #7F77DD; }
.dot.status-inprogress, .tl-leg-dot.status-inprogress, .status-dot.status-inprogress { background: #1D9E75; }
.dot.status-done, .tl-leg-dot.status-done, .status-dot.status-done { background: #639922; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 18px;
}

.sc {
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  padding: 14px 16px;
  min-height: 84px;
  box-shadow: var(--shadow-soft);
}

.sc-l { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.sc-v { font-size: 24px; font-weight: 750; color: var(--text-primary); line-height: 1.1; }
.sc-s { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }

.txt-positive, .txt-green { color: #136F00; }
.txt-negative, .txt-red { color: #A32D2D; }
.txt-warning { color: #993C1D; }
.txt-secondary { color: var(--text-secondary); }
.txt-secondary-sm { color: var(--text-secondary); font-size: 11px; }
.fw-500 { font-weight: 500; }
.flex-1 { flex: 1; }
.cursor-pointer { cursor: pointer; }
.overflow-x-auto { overflow-x: auto; }
.mb-0 { margin-bottom: 0; }

.controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}

.search-box { position: relative; min-width: 220px; max-width: 300px; flex: 1; }
.search-box input { width: 100%; padding-left: 30px; }
.search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); pointer-events: none; }

.view-tabs { display: flex; gap: 6px; margin-bottom: 1rem; flex-wrap: wrap; }
.tab {
  font-size: 13px;
  padding: 7px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  user-select: none;
  font-family: var(--font-sans);
}
.tab:hover { background: var(--bg-secondary); }
.tab.active { background: var(--bg-primary); border-color: var(--border-primary); color: var(--text-primary); font-weight: 650; box-shadow: var(--shadow-soft); }
.tab-rej.active { background: #FAECE7; border-color: #F0997B; color: #993C1D; }

.pb { height: 3px; background: var(--border-primary); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.pbf { height: 100%; border-radius: 2px; background: #1D9E75; }

.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.col {
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 430px;
}

.col-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-primary);
}

.col.status-idea .col-hdr { background: #f5f5f4; }
.col.status-planned .col-hdr { background: #eef6ff; }
.col.status-approved .col-hdr { background: #f5f1ff; }
.col.status-inprogress .col-hdr { background: #eefaf5; }
.col.status-done .col-hdr { background: #f0f8e8; }

.col-t { font-size: 14px; font-weight: 700; color: var(--text-secondary); display: flex; align-items: center; gap: 7px; }
.col-c { font-size: 12px; padding: 2px 8px; border-radius: 20px; background: var(--bg-primary); color: var(--text-secondary); border: 1px solid var(--border-primary); }
.col-add-btn { width: calc(100% - 24px); justify-content: center; margin: 10px 12px 12px; }

.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 12px;
  margin: 10px 12px;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s;
  box-shadow: var(--shadow-soft);
}
.card:hover { border-color: var(--border-secondary); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.card-title { font-size: 14px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.card-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.4; margin-bottom: 8px; }
.card-badges { display: flex; gap: 4px; align-items: center; }
.card-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 7px; }
.tag { font-size: 11px; padding: 3px 7px; background: var(--bg-secondary); color: var(--text-secondary); border-radius: 20px; border: 1px solid var(--border-primary); }
.card-roi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px; background: var(--bg-secondary); border-radius: var(--radius-md); margin-top: 8px; gap: 6px; }
.ri { display: flex; flex-direction: column; gap: 2px; }
.rl { font-size: 10px; color: var(--text-secondary); }
.rv { font-size: 11px; font-weight: 700; color: var(--text-primary); }
.owner-pill { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #f4f4f4; border: 1px solid var(--border-primary); color: #333; font-size: 11px; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; }
.lock-text { font-size: 11px; color: var(--text-secondary); }

.dec-blk { display: flex; align-items: flex-start; gap: 7px; padding: 7px 9px; border-radius: var(--radius-md); margin: 8px 0; }
.dec-blk.g { background: #EAF3DE; }
.dec-blk.a { background: #FAECE7; }
.dec-symbol { font-weight: 800; }
.dec-blk .dl { font-size: 12px; font-weight: 600; }
.dec-blk .dm { font-size: 11px; color: var(--text-secondary); }

.list-tbl, .rej-tbl { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.list-tbl th, .rej-tbl th { text-align: left; padding: 8px; font-weight: 600; font-size: 12px; color: var(--text-secondary); border-bottom: 1px solid var(--border-primary); white-space: nowrap; }
.list-tbl td, .rej-tbl td { padding: 9px 8px; border-bottom: 1px solid var(--border-primary); vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-tbl tr:hover td, .rej-tbl tr:hover td { background: var(--bg-secondary); cursor: pointer; }

.matrix-wrap { position: relative; min-height: 580px; background: var(--bg-primary); border: 1px solid var(--border-primary); border-radius: var(--radius-lg); padding: 22px; margin-top: 14px; overflow: hidden; }
.matrix-plot { position: absolute; left: 90px; right: 50px; top: 44px; bottom: 78px; border: 1px solid var(--border-primary); border-radius: var(--radius-md); background: linear-gradient(to right, transparent 49.9%, #d8d8d3 50%, transparent 50.1%), linear-gradient(to bottom, transparent 49.9%, #d8d8d3 50%, transparent 50.1%); }
.matrix-y { position: absolute; left: 24px; top: 50%; transform: rotate(-90deg) translateX(-50%); transform-origin: left top; color: var(--text-secondary); font-size: 14px; }
.matrix-x { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); color: var(--text-secondary); font-size: 14px; }
.matrix-note { position: absolute; right: 28px; bottom: 18px; color: var(--text-secondary); font-size: 11px; }
.matrix-q { position: absolute; font-size: 16px; color: rgba(120,120,115,0.7); pointer-events: none; }
.q1 { left: 15%; top: 25%; }
.q2 { right: 15%; top: 25%; color: rgba(81,130,0,0.8); }
.q3 { left: 15%; bottom: 25%; }
.q4 { right: 15%; bottom: 25%; color: rgba(145,85,0,0.8); }
.matrix-bubble { position: absolute; transform: translate(-50%, -50%); border-radius: 999px; border: 3px solid currentColor; background: rgba(255,255,255,0.72); display: flex; align-items: center; justify-content: center; overflow: visible; cursor: pointer; color: var(--text-secondary); }
.matrix-bubble span { position: absolute; left: calc(100% + 6px); white-space: nowrap; font-size: 13px; color: var(--text-secondary); }
.matrix-bubble.status-idea { color: #888780; background: #efefed; }
.matrix-bubble.status-planned { color: #378ADD; background: #dcecff; }
.matrix-bubble.status-approved { color: #7F77DD; background: #e8e6ff; }
.matrix-bubble.status-inprogress { color: #1D9E75; background: #dff7ef; }
.matrix-bubble.status-done { color: #639922; background: #edf6df; }

.tl-wrap { overflow-x: auto; margin-top: 14px; }
.tl-inner { min-width: 720px; }
.qhdr { display: flex; margin-bottom: 6px; }
.qhdr-spacer { width: 160px; flex-shrink: 0; }
.qhdr-item { flex: 1; text-align: center; font-size: 12px; color: var(--text-secondary); padding: 4px 0; }
.tl-row { display: flex; align-items: center; min-height: 32px; margin-bottom: 6px; cursor: pointer; }
.tl-lbl { width: 160px; flex-shrink: 0; font-size: 13px; color: var(--text-primary); padding-right: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-track { flex: 1; position: relative; height: 28px; background: var(--bg-primary); border: 1px solid var(--border-primary); border-radius: 4px; overflow: hidden; }
.tl-bar { position: absolute; top: 4px; height: 18px; border-radius: 4px; padding: 0 8px; font-size: 11px; line-height: 18px; color: var(--text-primary); overflow: hidden; white-space: nowrap; opacity: 0.82; }
.tl-bar.status-idea { background: #efefed; }
.tl-bar.status-planned { background: #cfe7ff; }
.tl-bar.status-approved { background: #dad6ff; }
.tl-bar.status-inprogress { background: #c8eee1; }
.tl-bar.status-done { background: #d8ecc0; }
.tl-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.tl-leg-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-secondary); }

.rej-hdr { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #FAECE7; border-radius: var(--radius-lg); border: 1px solid #F0997B; margin-bottom: 1rem; }
.rej-hdr h2 { font-size: 14px; font-weight: 650; color: #993C1D; margin-bottom: 2px; }
.rej-hdr p { font-size: 12px; color: #712B13; }
.empty { text-align: center; padding: 50px 20px; color: var(--text-secondary); }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.38); display: flex; align-items: flex-start; justify-content: center; padding-top: 16px; z-index: 100; overflow-y: auto; }
.modal { background: var(--bg-primary); border-radius: var(--radius-lg); border: 1px solid var(--border-secondary); width: 100%; max-width: 660px; margin: 0 16px 40px; overflow: hidden; }
.mhdr { padding: 16px 18px; border-bottom: 1px solid var(--border-primary); display: flex; align-items: center; justify-content: space-between; }
.mhdr h2 { font-size: 18px; font-weight: 750; color: var(--text-primary); }
.mbody { padding: 18px; }
.mftr { padding: 12px 18px; border-top: 1px solid var(--border-primary); display: flex; justify-content: flex-end; gap: 8px; }
.f { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.f label { font-size: 13px; font-weight: 650; color: var(--text-secondary); }
.f input, .f select, .f textarea { width: 100%; }
.fr2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fr3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.stitle { font-size: 12px; font-weight: 750; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin: 14px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border-primary); }
.cbox { padding: 10px 12px; background: var(--bg-secondary); border-radius: var(--radius-md); font-size: 13px; color: var(--text-secondary); display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cbox strong { color: var(--text-primary); }
.ts-box { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: var(--radius-md); background: #EAF3DE; border: 1px solid #C0DD97; margin: 4px 0 10px; }
.hidden { display: none !important; }
.cmt-list { display: flex; flex-direction: column; gap: 6px; max-height: 130px; overflow-y: auto; margin-bottom: 8px; }
.cmt { background: var(--bg-secondary); border-radius: var(--radius-md); padding: 7px 10px; }
.cmt-m { font-size: 11px; color: var(--text-secondary); margin-bottom: 2px; }
.cmt-t { font-size: 12px; color: var(--text-primary); }
.comment-row { display: flex; gap: 8px; }
.idea-mode-pill { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid #F5C580; background: #FFFBEB; color: #854F0B; }
.idea-mode-banner { margin: 12px 18px 0; padding: 8px 10px; background: #FAEEDA; border-radius: var(--radius-md); font-size: 12px; color: #854F0B; border: 1px solid #F5C580; }
.saving-indicator { font-size: 12px; color: var(--text-secondary); text-align: center; padding-top: 8px; }

.spinner-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 0; gap: 14px; }
.spinner { width: 28px; height: 28px; border: 2.5px solid var(--border-secondary); border-top-color: var(--text-primary); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-label { font-size: 13px; color: var(--text-secondary); }
.error-state { text-align: center; padding: 60px 20px; }
.error-state h3 { font-size: 16px; font-weight: 650; margin-bottom: 6px; }
.error-state p { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }

.sl { display: grid; grid-template-columns: 185px minmax(0,1fr); gap: 18px; }
.snav { display: flex; flex-direction: column; gap: 4px; }
.sni { font-size: 13px; padding: 8px 10px; border-radius: var(--radius-md); cursor: pointer; color: var(--text-secondary); background: transparent; border: 1px solid transparent; font-family: var(--font-sans); }
.sni:hover, .sni.active { background: var(--bg-secondary); color: var(--text-primary); border-color: var(--border-primary); }
.ss { background: var(--bg-primary); border: 1px solid var(--border-primary); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 12px; }
.sh { padding: 13px 16px; border-bottom: 1px solid var(--border-primary); }
.sh h2 { font-size: 14px; font-weight: 650; }
.sh p { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.sbody { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.sf { display: flex; flex-direction: column; gap: 5px; }
.sf label { font-size: 13px; font-weight: 650; }
.sfr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tr { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-primary); }
.tr:last-child { border-bottom: none; }
.tc { display: flex; flex-wrap: wrap; gap: 6px; }
.tch { font-size: 12px; padding: 4px 9px; background: var(--bg-secondary); border: 1px solid var(--border-secondary); border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; }
.tch button, .qi button { background: none; border: none; cursor: pointer; color: var(--text-secondary); }
.qgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px,1fr)); gap: 6px; }
.qi { padding: 7px 9px; border: 1px solid var(--border-primary); border-radius: var(--radius-md); font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; justify-content: space-between; }
.ar { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.status-list { display: grid; gap: 7px; }
.sti { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--border-primary); border-radius: var(--radius-md); font-size: 13px; }
.color-input { width: 32px; height: 24px; padding: 1px; border: 1px solid var(--border-primary); border-radius: 4px; cursor: pointer; margin-left: auto; }
.settings-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.dz { border-color: #F0997B !important; }
.dzh { background: #FEF9F7 !important; }
.dzh h2 { color: #993C1D !important; }
.da { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #2C2C2A; color: white; font-size: 13px; padding: 8px 18px; border-radius: var(--radius-md); opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 9999; white-space: nowrap; }
.toast.show { opacity: 1; }
.toast-error { background: #A32D2D; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-primary); border-radius: 3px; }

.col-w-5 { width: 5%; }
.col-w-7 { width: 7%; }
.col-w-8 { width: 8%; }
.col-w-9 { width: 9%; }
.col-w-10 { width: 10%; }
.col-w-11 { width: 11%; }
.col-w-12 { width: 12%; }
.col-w-20 { width: 20%; }
.col-w-22 { width: 22%; }

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .board { grid-template-columns: repeat(5, minmax(200px, 240px)); }
  .fr2, .fr3, .sfr, .sl { grid-template-columns: 1fr; }
  .snav { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .app-container { padding: 0 12px 60px; }
  .stats-grid { grid-template-columns: 1fr; }
  .topnav { flex-wrap: wrap; }
  .nav-right { width: 100%; justify-content: flex-start; padding-bottom: 10px; }
}

/* CSP-safe timeline and cost/benefit views */
.pbf.progress-0 { width: 0%; }
.pbf.progress-5 { width: 5%; }
.pbf.progress-10 { width: 10%; }
.pbf.progress-15 { width: 15%; }
.pbf.progress-20 { width: 20%; }
.pbf.progress-25 { width: 25%; }
.pbf.progress-30 { width: 30%; }
.pbf.progress-35 { width: 35%; }
.pbf.progress-40 { width: 40%; }
.pbf.progress-45 { width: 45%; }
.pbf.progress-50 { width: 50%; }
.pbf.progress-55 { width: 55%; }
.pbf.progress-60 { width: 60%; }
.pbf.progress-65 { width: 65%; }
.pbf.progress-70 { width: 70%; }
.pbf.progress-75 { width: 75%; }
.pbf.progress-80 { width: 80%; }
.pbf.progress-85 { width: 85%; }
.pbf.progress-90 { width: 90%; }
.pbf.progress-95 { width: 95%; }
.pbf.progress-100 { width: 100%; }

.tl-wrap,
.timeline-outer {
  overflow-x: auto;
  margin-top: 14px;
}

.tl-inner {
  min-width: 720px;
}

.qhdr {
  display: flex;
  margin-bottom: 6px;
}

.qhdr-spacer {
  width: 160px;
  flex-shrink: 0;
}

.qhdr-item {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 0;
}

.tl-row {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 6px;
  cursor: pointer;
}

.tl-lbl {
  width: 160px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-primary);
  padding-right: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tl-cells {
  flex: 1;
  display: flex;
  height: 28px;
  border: 1px solid var(--border-primary);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.tl-cell {
  flex: 1;
  position: relative;
  border-left: 1px solid #eee;
}

.tl-cell:first-child {
  border-left: none;
}

.tl-bar {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 5px;
  height: 18px;
  border-radius: 4px;
  padding: 0 8px;
  font-size: 11px;
  line-height: 18px;
  color: var(--text-primary);
  overflow: hidden;
  white-space: nowrap;
  opacity: 0.82;
}

.tl-bar.status-idea { background: #efefed; }
.tl-bar.status-planned { background: #cfe7ff; }
.tl-bar.status-approved { background: #dad6ff; }
.tl-bar.status-inprogress { background: #c8eee1; }
.tl-bar.status-done { background: #d8ecc0; }

.tl-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tl-leg-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-secondary);
}

.tl-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.tl-leg-dot.status-idea { background: #888780; }
.tl-leg-dot.status-planned { background: #378ADD; }
.tl-leg-dot.status-approved { background: #7F77DD; }
.tl-leg-dot.status-inprogress { background: #1D9E75; }
.tl-leg-dot.status-done { background: #639922; }

.matrix-wrap {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 14px;
  overflow: hidden;
}

.matrix-svg {
  display: block;
  width: 100%;
  height: 580px;
}

.matrix-bg {
  fill: #f8fbf5;
  stroke: var(--border-primary);
  stroke-width: 1;
}

.matrix-axis-line {
  stroke: #d8d8d3;
  stroke-width: 1;
}

.matrix-q {
  font-size: 17px;
  dominant-baseline: middle;
  text-anchor: middle;
  pointer-events: none;
}

.matrix-q-positive { fill: rgba(81,130,0,0.76); }
.matrix-q-neutral { fill: rgba(120,120,115,0.70); }
.matrix-q-warning { fill: rgba(145,85,0,0.78); }

.matrix-y-svg,
.matrix-x-svg,
.matrix-note-svg {
  fill: var(--text-secondary);
  font-size: 13px;
}

.matrix-x-svg,
.matrix-note-svg {
  text-anchor: middle;
}

.matrix-point {
  cursor: pointer;
}

.matrix-point circle {
  fill: rgba(255,255,255,0.72);
  stroke: currentColor;
  stroke-width: 3;
}

.matrix-point.status-idea { color: #888780; }
.matrix-point.status-planned { color: #378ADD; }
.matrix-point.status-approved { color: #7F77DD; }
.matrix-point.status-inprogress { color: #1D9E75; }
.matrix-point.status-done { color: #639922; }

.matrix-label {
  fill: var(--text-secondary);
  font-size: 13px;
  dominant-baseline: middle;
  text-anchor: start;
  pointer-events: none;
}

.matrix-label-left {
  text-anchor: end;
}

.matrix-legend {
  margin-top: 8px;
}

/* Roadmap visual refresh start */
.login-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(circle at 16% 0%, rgba(195,226,151,.30), transparent 28%),
    radial-gradient(circle at 8% 15%, rgba(0,107,63,.22), transparent 34%),
    linear-gradient(180deg,#004d2a 0%,#07391f 24%,#030705 44%,#07120d 100%);
}

.login-hero {
  position: relative;
  width: min(620px, 100%);
  height: 250px;
  margin: 0 auto;
}

.login-lyse {
  position: absolute;
  z-index: 3;
  top: 46px;
  left: 46px;
  color: rgba(255,255,255,.97);
  font-size: 50px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -2.8px;
}

.login-main {
  width: min(620px, 100%);
  min-height: 718px;
  margin: 0 auto;
  padding: 56px 64px 60px;
  background: transparent;
}

.login-copy h1 {
  margin: 0 auto 22px;
  max-width: 520px;
  color: #fff;
  font-size: 46px;
  line-height: 1.03;
  letter-spacing: -1.8px;
  font-weight: 1000;
  text-align: center;
}

.login-copy p {
  margin: 0 auto;
  max-width: 520px;
  color: #d8e9df;
  font-size: 17px;
  line-height: 1.55;
  text-align: center;
}

.login-card {
  margin: 48px auto 0;
  width: min(420px, 100%);
  padding: 34px;
  border-radius: 28px;
  background: rgba(245,246,245,.96);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
  text-align: center;
}

.login-card-kicker {
  color: #007a4d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 1000;
  margin-bottom: 18px;
}

.login-card h2 {
  margin: 0 0 18px;
  font-size: 30px;
  color: #003f24;
  letter-spacing: -1px;
  font-weight: 1000;
}

.login-card p {
  margin: 0 0 30px;
  color: #5f706b;
  line-height: 1.55;
  font-size: 15px;
}

.login-button {
  width: 100%;
  border: 0;
  border-radius: 15px;
  padding: 16px 18px;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  background: linear-gradient(135deg,#005033,#008852);
  box-shadow: 0 16px 38px rgba(0,68,37,.28);
  cursor: pointer;
}

.login-button:hover {
  opacity: .92;
}

@media (max-width: 700px) {
  .login-main {
    padding: 48px 34px 48px;
  }

  .login-copy h1 {
    font-size: 38px;
  }

  .login-lyse {
    left: 34px;
  }
}
/* Roadmap visual refresh end */
.login-lyse { display: none; }
.card,
.card * {
min-width: 0;
}
.card strong,
.card h3,
.card-title {
white-space: normal;
overflow-wrap: anywhere;
word-break: break-word;
hyphens: auto;
}
.card p,
.card .desc,
.card .card-desc {
white-space: normal;
overflow-wrap: anywhere;
word-break: break-word;
}
.roi-pos,
.roi-neg {
position: static;
display: inline-flex;
max-width: 100%;
width: fit-content;
white-space: nowrap;
align-self: flex-start;
margin-top: 6px;
}
.card .roi-pos,
.card .roi-neg {
position: static;
right: auto;
top: auto;
transform: none;
}
.card {
overflow: hidden;
}
.app-container {
max-width: none;
width: 100%;
padding-left: 28px;
padding-right: 28px;
}
.board {
grid-template-columns: repeat(5, minmax(220px, 1fr));
width: 100%;
}
.col {
min-width: 0;
}
.card {
min-width: 0;
overflow: hidden;
}
.card * {
min-width: 0;
}
.card-title,
.card strong,
.card h3 {
white-space: normal;
overflow-wrap: anywhere;
word-break: break-word;
hyphens: auto;
}
.card p,
.card .desc,
.card .card-desc {
white-space: normal;
overflow-wrap: anywhere;
word-break: break-word;
}
.card .badge:not(.roi-pos):not(.roi-neg) {
max-width: 100%;
white-space: normal;
overflow-wrap: anywhere;
word-break: break-word;
}
.card .roi-pos,
.card .roi-neg {
position: static;
right: auto;
top: auto;
transform: none;
display: inline-flex;
align-self: flex-start;
margin-top: 6px;
}
.card .roi-pos,
.card .roi-neg,
.roi-pos,
.roi-neg {
display: inline-flex;
align-items: center;
justify-content: center;
width: fit-content;
max-width: 100%;
white-space: nowrap;
overflow-wrap: normal;
word-break: normal;
writing-mode: horizontal-tb;
transform: none;
position: static;
right: auto;
top: auto;
margin-top: 6px;
align-self: flex-start;
}