:root {
  --brand: #1a73e8;
  --accent: #34a853;
  --bg: #f8fafd;
  --surface: #ffffff;
  --surface-2: #f1f6fd;
  --surface-3: #eef3f9;
  --ink: #202124;
  --lane-bg: #5f6368;
  --border: #dde3ea;
  --muted: #5f6368;
  --radius: 20px;
  --radius-sm: 14px;
  --font-scale: 0.9;
  --title-scale: 1;
  --density-scale: 1;
  --sidebar-width: 296px;
  --panel-radius: 20px;
  --filter-columns: 4;
  --font-family: "Google Sans", "Roboto", "Segoe UI", Arial, sans-serif;
  --shadow-soft: 0 12px 28px rgba(60, 64, 67, 0.08);
  --shadow-card: 0 2px 8px rgba(60, 64, 67, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-family);
  font-size: calc(14px * var(--font-scale));
  background:
    radial-gradient(circle at top right, rgba(26, 115, 232, 0.08) 0%, transparent 24%),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg) 100%);
}

.access-lock-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.access-lock-card {
  width: min(100%, 420px);
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem;
  border: 1px solid rgba(32, 33, 36, 0.08);
  border-radius: calc(var(--panel-radius) + 4px);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.access-lock-card h1 {
  margin: 0;
}

.access-lock-field {
  display: grid;
  gap: 0.32rem;
}

.access-lock-field input {
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(32, 33, 36, 0.12);
  border-radius: 12px;
  background: #fff;
}

.access-lock-error {
  color: #b3261e;
  font-weight: 600;
}

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

button {
  appearance: none;
}

.app {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: calc(0.85rem * var(--density-scale));
  padding: calc(1rem * var(--density-scale));
  background: #f8fafd;
  border-right: 1px solid rgba(32, 33, 36, 0.06);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  min-height: 84px;
  padding: 0.4rem 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nav-section {
  min-height: 0;
  flex: 1 1 auto;
  padding: 0.5rem;
  border-radius: 24px;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.nav-list {
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.2rem;
  scrollbar-gutter: stable;
}

.nav-list::-webkit-scrollbar {
  width: 10px;
}

.nav-list::-webkit-scrollbar-thumb {
  background: #c7d2e2;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.nav-footer {
  margin-top: auto;
  display: grid;
  gap: calc(0.55rem * var(--density-scale));
  padding-top: 0.55rem;
  border-top: 1px solid rgba(32, 33, 36, 0.06);
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.1) 0%, rgba(248, 250, 253, 1) 35%);
}

.brand-logo,
.product-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(32, 33, 36, 0.08);
  border-radius: 12px;
}

.brand-logo-large {
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 14px;
}

.brand-title {
  font-size: clamp(calc(1.55rem * var(--title-scale)), calc(2vw * var(--title-scale)), calc(2.1rem * var(--title-scale)));
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
}

.product-logo {
  width: 52px;
  height: 52px;
}

.sidebar h3 {
  margin: 0 0 0.45rem;
  padding: 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-list,
.view-list {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.menu-item {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: calc(0.56rem * var(--density-scale)) calc(0.78rem * var(--density-scale));
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.menu-item:hover {
  background: rgba(26, 115, 232, 0.08);
}

.menu-item.active {
  background: #d3e3fd;
  color: #0b57d0;
}

.menu-product-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-left: 0;
}

.menu-product-copy {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.menu-product-name {
  line-height: 1.15;
}

.menu-product-domain {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.1;
}

.sidebar-domain-filter {
  padding: 0 0.15rem 0.45rem;
}

.sidebar-domain-filter select {
  width: 100%;
  padding: 0.42rem 0.52rem;
  border: 1px solid rgba(32, 33, 36, 0.1);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.menu-product-logo {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 6px;
  border: 1px solid rgba(32, 33, 36, 0.1);
  object-fit: contain;
  background: #fff;
}

.main {
  padding: calc(0.9rem * var(--density-scale)) calc(1rem * var(--density-scale)) calc(1.4rem * var(--density-scale));
  overflow: auto;
}

.hero {
  display: grid;
  gap: calc(0.9rem * var(--density-scale));
  margin-bottom: calc(0.75rem * var(--density-scale));
  padding: 0.9rem 1rem;
  border: 1px solid rgba(32, 33, 36, 0.06);
  border-radius: 28px;
  background:
    radial-gradient(circle at right top, rgba(26, 115, 232, 0.12) 0%, transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.title-wrap {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.title-stack {
  display: flex;
  flex-direction: column;
}

.title-meta-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.title-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(32, 33, 36, 0.08);
  border-radius: 999px;
  background: rgba(26, 115, 232, 0.08);
  color: #174ea6;
  font-size: 0.72rem;
  font-weight: 700;
}

.eyebrow {
  margin-bottom: 0.22rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(calc(1.55rem * var(--title-scale)), calc(2vw * var(--title-scale)), calc(2.1rem * var(--title-scale)));
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.subtle {
  color: var(--muted);
  margin-top: 0.24rem;
  max-width: 72ch;
  font-size: 0.88rem;
}

.date-badge {
  min-width: 190px;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(32, 33, 36, 0.08);
  border-radius: 18px;
  background: var(--surface);
}

.date-badge-label {
  display: block;
  margin-bottom: 0.22rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: calc(0.42rem * var(--density-scale));
}

.commandbar {
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.32rem;
  border: 1px solid rgba(32, 33, 36, 0.06);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: calc(0.38rem * var(--density-scale));
  flex-wrap: wrap;
}

.btn {
  min-height: calc(34px * var(--density-scale));
  padding: calc(0.32rem * var(--density-scale)) calc(0.72rem * var(--density-scale));
  border: 1px solid rgba(32, 33, 36, 0.08);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: #f8fbff;
  box-shadow: var(--shadow-card);
}

.btn.primary {
  border-color: transparent;
  background: var(--brand);
  color: #fff;
}

.btn.primary:hover {
  background: #1765cc;
}

.add-action-btn {
  background: #f25849;
  border-color: transparent;
  color: #fff;
}

.add-action-btn:hover {
  background: #db4e40;
}

.surface-shell {
  padding: 0.75rem 0.8rem 0.9rem;
  border: 1px solid rgba(32, 33, 36, 0.06);
  border-radius: calc(var(--panel-radius) + 8px);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.tabs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.05rem;
}

.control-panel {
  margin-bottom: 0.7rem;
  border: 1px solid rgba(32, 33, 36, 0.06);
  border-radius: calc(var(--panel-radius) + 2px);
  background: var(--surface-2);
}

.control-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 0.82rem;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

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

.control-summary-meta {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
}

.control-body {
  display: grid;
  gap: 0.58rem;
  padding: 0 0.72rem 0.72rem;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.view-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  padding: 0.18rem;
  border-radius: 999px;
  background: var(--surface-2);
}

.tab {
  padding: calc(0.28rem * var(--density-scale)) calc(0.68rem * var(--density-scale));
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.tab:hover {
  background: rgba(26, 115, 232, 0.08);
}

.tab.active {
  background: #d3e3fd;
  color: #0b57d0;
  font-weight: 700;
}

.view-caption {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.view-toggles {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.filters {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "grid actions";
  gap: calc(0.5rem * var(--density-scale));
  padding: 0;
}

.filters-grid {
  grid-area: grid;
  display: grid;
  grid-template-columns: repeat(var(--filter-columns), minmax(140px, 1fr));
  gap: calc(0.45rem * var(--density-scale));
}

.filters-actions {
  grid-area: actions;
  display: flex;
  justify-content: flex-end;
}

.export-menu {
  position: relative;
}

.export-trigger {
  list-style: none;
}

.export-trigger::-webkit-details-marker {
  display: none;
}

.export-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 180px;
  display: grid;
  gap: 0.18rem;
  padding: 0.38rem;
  border: 1px solid rgba(32, 33, 36, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-card);
  z-index: 20;
}

.export-item {
  padding: 0.48rem 0.6rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.export-item:hover {
  background: rgba(26, 115, 232, 0.08);
}

.filters label,
.form-grid label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  color: var(--ink);
}

.checkbox-field input {
  width: auto;
  margin-top: 0;
  flex: 0 0 auto;
}

.checkbox-field span {
  color: var(--muted);
}

.filters input,
.filters select,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  margin-top: 0.16rem;
  padding: calc(0.44rem * var(--density-scale)) calc(0.52rem * var(--density-scale));
  border: 1px solid rgba(32, 33, 36, 0.1);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.filters input:focus,
.filters select:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: 2px solid rgba(26, 115, 232, 0.18);
  border-color: rgba(26, 115, 232, 0.34);
}

.panel {
  margin-top: 0.7rem;
  border: 1px solid rgba(32, 33, 36, 0.06);
  border-radius: calc(var(--panel-radius) + 4px);
  background: var(--surface);
  overflow: auto;
  box-shadow: var(--shadow-card);
}

.ideas-wrap {
  display: grid;
  gap: 0.75rem;
  padding: 0.8rem;
}

.ideas-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: end;
  flex-wrap: wrap;
  padding: 0.75rem;
  border: 1px solid rgba(32, 33, 36, 0.06);
  border-radius: 18px;
  background: var(--surface-2);
}

.ideas-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 0.5rem;
  flex: 1 1 720px;
}

.ideas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 0.75rem;
  align-items: start;
}

.ideas-list-panel,
.ideas-narrative-panel {
  padding: 0.65rem;
  border: 1px solid rgba(32, 33, 36, 0.06);
  border-radius: 18px;
  background: var(--surface);
}

.ideas-narrative-panel {
  position: sticky;
  top: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.ideas-narrative-panel h3 {
  margin: 0;
}

.ideas-narrative-panel p {
  margin: 0;
  line-height: 1.4;
  font-size: 0.82rem;
}

.ideas-table {
  min-width: 980px;
}

.ideas-table td,
.ideas-table th {
  vertical-align: top;
}

.idea-row {
  cursor: pointer;
}

.idea-row:hover {
  background: rgba(26, 115, 232, 0.04);
}

.idea-row.is-submitted-roadmap {
  background: rgba(32, 33, 36, 0.04);
  color: rgba(32, 33, 36, 0.75);
}

.idea-row.is-submitted-roadmap .subtle {
  color: rgba(95, 99, 104, 0.78);
}

.idea-product-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.idea-product-copy {
  display: grid;
  gap: 0.12rem;
}

.idea-votes-cell {
  white-space: nowrap;
}

.idea-status-menu {
  position: relative;
}

.idea-status-menu summary {
  list-style: none;
}

.idea-status-menu summary::-webkit-details-marker {
  display: none;
}

.idea-status-pill {
  display: inline-flex;
  align-items: center;
  min-width: 152px;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

.idea-status-pill.new-idea {
  background: #5f6368;
}

.idea-status-pill.open-votes {
  background: #1a73e8;
}

.idea-status-pill.submitted-roadmap {
  background: #9aa0a6;
}

.idea-status-pill.rejected {
  background: #d93025;
}

.idea-status-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  z-index: 20;
  display: grid;
  min-width: 190px;
  gap: 0.18rem;
  padding: 0.3rem;
  border: 1px solid rgba(32, 33, 36, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.idea-status-option {
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.idea-status-option:hover,
.idea-status-option.active {
  background: rgba(26, 115, 232, 0.08);
}

.idea-rejection-note {
  margin-top: 0.35rem;
  padding: 0.45rem 0.5rem;
  border-radius: 12px;
  background: rgba(217, 48, 37, 0.08);
  color: #8b1e15;
  font-size: 0.78rem;
}

.idea-dialog-section {
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid rgba(32, 33, 36, 0.08);
  border-radius: 14px;
  background: var(--surface-2);
}

.idea-section-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.idea-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.idea-roadmap-grid .checkbox-field {
  min-height: 42px;
  align-self: end;
}

.idea-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dialog-card-sm {
  width: min(420px, calc(100vw - 2rem));
}

.action-list {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
}

.link-btn {
  margin-top: 0.45rem;
}

.workspace-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.workspace-shell.with-changelog {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.workspace-main {
  min-width: 0;
}

.changelog-panel {
  position: sticky;
  top: 0.7rem;
  display: grid;
  gap: 0.65rem;
  max-height: calc(100vh - 2rem);
  padding: 0.72rem;
  border: 1px solid rgba(32, 33, 36, 0.06);
  border-radius: calc(var(--panel-radius) + 4px);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.changelog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.changelog-list {
  display: grid;
  gap: 0.55rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.changelog-item {
  padding: 0.62rem;
  border: 1px solid rgba(32, 33, 36, 0.06);
  border-radius: 14px;
  background: var(--surface-2);
}

.changelog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.changelog-title {
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.changelog-details {
  margin-top: 0.3rem;
  font-size: 0.76rem;
  color: var(--ink);
}

.changelog-badge.added {
  background: rgba(23, 201, 178, 0.18);
}

.changelog-badge.updated {
  background: rgba(84, 220, 200, 0.2);
}

.changelog-badge.removed {
  background: rgba(217, 48, 37, 0.12);
}

.changelog-badge.rescheduled {
  background: rgba(26, 115, 232, 0.14);
}

.roadmap-grid {
  min-width: 1060px;
  display: grid;
  grid-template-columns: 250px repeat(4, minmax(220px, 1fr));
}

.cell,
.head,
.lane {
  min-height: calc(82px * var(--density-scale));
  padding: calc(0.52rem * var(--density-scale));
  border-right: 1px solid rgba(32, 33, 36, 0.06);
  border-bottom: 1px solid rgba(32, 33, 36, 0.06);
}

.head {
  background: #e8f0fe;
  color: #174ea6;
  font-weight: 700;
  min-height: calc(58px * var(--density-scale));
  padding-top: calc(0.42rem * var(--density-scale));
  padding-bottom: calc(0.28rem * var(--density-scale));
  display: flex;
  align-items: center;
}

.head.is-now {
  background: #d3e3fd;
  color: #0b57d0;
}

.lane {
  background: var(--lane-bg);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  padding: 0.2rem 0.35rem;
}

.compact-lane {
  min-height: calc(56px * var(--density-scale));
}

.lane-name-wrap {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100%;
}

.lane-name {
  display: block;
  width: 100%;
  padding: 0.1rem 0.18rem;
  cursor: default;
}

.lane-menu {
  position: absolute;
  left: calc(100% - 0.2rem);
  top: 50%;
  transform: translateY(-50%);
  display: none;
  min-width: 132px;
  padding: 0.26rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-card);
  z-index: 8;
}

.lane-name-wrap:hover .lane-menu {
  display: grid;
}

.lane-menu-item {
  padding: 0.42rem 0.5rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .dashboard-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-layout,
  .dashboard-dual-grid {
    grid-template-columns: 1fr;
  }

  .ideas-filters {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .ideas-layout {
    grid-template-columns: 1fr;
  }

  .ideas-narrative-panel {
    position: static;
  }
}

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

  .sidebar {
    position: relative;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .main {
    overflow: visible;
  }

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

  .changelog-panel {
    position: static;
    max-height: none;
  }

  .ideas-filters {
    grid-template-columns: 1fr;
  }

  .idea-roadmap-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lane-menu-item:hover {
  background: rgba(26, 115, 232, 0.08);
}

.lane-menu-item.danger {
  color: #b3261e;
}

.lane-add {
  justify-content: center;
}

.roadmap-row {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  position: relative;
  min-height: calc(82px * var(--density-scale));
}

.roadmap-row-empty {
  min-height: calc(54px * var(--density-scale));
}

.roadmap-grid-portfolio .head {
  min-height: calc(54px * var(--density-scale));
}

.roadmap-dropzone {
  min-height: calc(82px * var(--density-scale));
  padding: 0;
  border: 0;
  border-right: 1px solid rgba(32, 33, 36, 0.06);
  border-bottom: 1px solid rgba(32, 33, 36, 0.06);
  background: transparent;
  cursor: pointer;
  transition: background 120ms ease;
}

.roadmap-dropzone:hover {
  background: rgba(26, 115, 232, 0.05);
}

.roadmap-dropzone.is-now {
  background: rgba(26, 115, 232, 0.04);
}

.roadmap-dropzone.drag-over {
  background: rgba(26, 115, 232, 0.12);
}

.roadmap-span-card {
  z-index: 1;
  align-self: start;
  margin: 0.34rem;
}

.feature-card {
  margin-bottom: calc(0.3rem * var(--density-scale));
  padding: calc(0.42rem * var(--density-scale));
  border: 1px solid rgba(32, 33, 36, 0.08);
  border-radius: 12px;
  font-size: 0.74rem;
  line-height: 1.22;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.16);
  transition: box-shadow 120ms ease, transform 120ms ease;
}

.feature-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(60, 64, 67, 0.18);
}

.feature-title {
  font-weight: 700;
}

.feature-product-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.feature-product-logo {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 6px;
  border: 1px solid rgba(32, 33, 36, 0.1);
  object-fit: contain;
  background: #fff;
}

.feature-product-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: #174ea6;
}

.feature-product-domain {
  margin-bottom: 0.24rem;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--muted);
}

.feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.36rem;
}

.badge {
  padding: 0.1rem 0.38rem;
  border: 1px solid rgba(32, 33, 36, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.62rem;
  font-weight: 700;
}

.kanban {
  min-width: 980px;
  display: grid;
  grid-template-columns: repeat(5, minmax(200px, 1fr));
  gap: calc(0.6rem * var(--density-scale));
  padding: calc(0.7rem * var(--density-scale));
}

.kanban-col {
  padding: 0.5rem;
  border: 1px solid rgba(32, 33, 36, 0.06);
  border-radius: 20px;
  background: var(--surface-3);
}

.kanban-col.drag-over {
  background: #dce8fb;
  border-color: rgba(26, 115, 232, 0.24);
}

.kanban-col h4 {
  margin: 0 0 0.55rem;
  color: var(--ink);
}

.table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: calc(0.48rem * var(--density-scale));
  border-bottom: 1px solid rgba(32, 33, 36, 0.06);
  text-align: left;
  vertical-align: top;
}

.table th {
  position: sticky;
  top: 0;
  background: #f1f6fd;
  color: #174ea6;
}

.list-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(32, 33, 36, 0.08);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink);
}

.domain-row-head {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid rgba(32, 33, 36, 0.06);
  background: #eef3fb;
  color: #174ea6;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gantt {
  min-width: 960px;
  padding: calc(0.7rem * var(--density-scale));
}

.gantt-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: stretch;
  border-bottom: 1px solid rgba(32, 33, 36, 0.06);
}

.gantt-header-label {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: #174ea6;
}

.gantt-header-periods {
  display: grid;
}

.gantt-period-head {
  padding: 0.45rem 0.5rem;
  border-left: 1px solid rgba(32, 33, 36, 0.06);
  background: #eef3fb;
  color: #174ea6;
  font-weight: 700;
  text-align: center;
}

.gantt-period-head.is-now {
  background: #d3e3fd;
  color: #0b57d0;
}

.gantt-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  border-bottom: 1px solid rgba(32, 33, 36, 0.06);
}

.gantt-domain-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: #eef3fb;
  border-bottom: 1px solid rgba(32, 33, 36, 0.06);
}

.gantt-domain-label {
  padding: 0.48rem 0.34rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #174ea6;
}

.gantt-domain-spacer {
  border-left: 1px solid rgba(32, 33, 36, 0.06);
}

.gantt-item {
  padding: 0.34rem;
}

.gantt-product-label {
  margin-bottom: 0.12rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
}

.dashboard-view {
  padding: 0.85rem;
  display: grid;
  gap: 0.85rem;
}

.dashboard-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.dashboard-metric-card,
.dashboard-card {
  padding: 0.8rem;
  border: 1px solid rgba(32, 33, 36, 0.06);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.dashboard-metric-card {
  display: grid;
  gap: 0.2rem;
}

.dashboard-metric-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-metric-value {
  font-size: 1.5rem;
  line-height: 1.1;
}

.dashboard-metric-detail {
  font-size: 0.75rem;
  color: var(--muted);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 0.85rem;
}

.dashboard-stack {
  display: grid;
  gap: 0.85rem;
}

.dashboard-card h3 {
  margin: 0 0 0.45rem;
  color: #174ea6;
}

.dashboard-paragraphs {
  display: grid;
  gap: 0.55rem;
}

.dashboard-paragraphs p {
  margin: 0;
  line-height: 1.5;
}

.dashboard-chart-stack {
  display: grid;
  gap: 0.7rem;
}

.dashboard-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.dashboard-list {
  display: grid;
  gap: 0.5rem;
}

.dashboard-list-item {
  padding: 0.58rem 0.62rem;
  border: 1px solid rgba(32, 33, 36, 0.06);
  border-radius: 14px;
  background: var(--surface-2);
  line-height: 1.45;
}

.summary-view {
  padding: 0.85rem;
}

.summary-wrap {
  display: grid;
  gap: 0.85rem;
}

.summary-section {
  padding: 0.85rem;
  border: 1px solid rgba(32, 33, 36, 0.06);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.summary-section h3 {
  margin: 0 0 0.45rem;
  color: #174ea6;
}

.summary-date-range {
  margin: -0.15rem 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
}

.summary-section p {
  margin: 0 0 0.55rem;
  line-height: 1.5;
}

.effort-chart {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.7rem;
}

.effort-chart-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #174ea6;
}

.effort-chart-stack {
  display: flex;
  min-height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef3fb;
}

.effort-chart-segment {
  min-width: 2%;
}

.effort-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
}

.effort-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
}

.effort-chart-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid rgba(32, 33, 36, 0.08);
}

.summary-points {
  margin: 0;
  padding-left: 1.1rem;
}

.summary-points li {
  margin: 0.2rem 0;
}

.released-view {
  padding: 0.85rem;
}

.released-wrap {
  display: grid;
  gap: 0.85rem;
}

.released-year-section {
  display: grid;
  gap: 0.8rem;
}

.released-quarter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.released-quarter-card {
  padding: 0.8rem;
  border: 1px solid rgba(32, 33, 36, 0.06);
  border-radius: 16px;
  background: #fff;
}

.released-quarter-head {
  margin-bottom: 0.3rem;
  font-weight: 700;
  color: #174ea6;
}

.released-quarter-narrative {
  margin: 0 0 0.55rem;
  line-height: 1.45;
}

.released-items {
  display: grid;
  gap: 0.5rem;
}

.released-item {
  padding: 0.6rem;
  border: 1px solid rgba(32, 33, 36, 0.06);
  border-radius: 14px;
  background: var(--surface-2);
}

.released-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.18rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.released-item-title {
  font-weight: 700;
  margin-bottom: 0.18rem;
}

.released-item-description {
  line-height: 1.4;
}

.gantt-track {
  position: relative;
  height: 38px;
  margin: 0.25rem 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 24.5%, rgba(32, 33, 36, 0.05) 25%, transparent 25.5%),
    linear-gradient(90deg, transparent 49.5%, rgba(32, 33, 36, 0.05) 50%, transparent 50.5%),
    linear-gradient(90deg, transparent 74.5%, rgba(32, 33, 36, 0.05) 75%, transparent 75.5%),
    #f5f8fc;
}

.gantt-dropzone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 25%;
}

.gantt-dropzone.is-now {
  background: rgba(26, 115, 232, 0.05);
}

.gantt-dropzone.drag-over {
  background: rgba(26, 115, 232, 0.14);
}

.gantt-bar {
  position: absolute;
  top: 7px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(32, 33, 36, 0.08);
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.16);
}

.dialog {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(32, 33, 36, 0.28);
  backdrop-filter: blur(4px);
}

.dialog.open {
  display: flex;
}

.dialog-card {
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: auto;
  position: relative;
  z-index: 3001;
  border: 1px solid rgba(32, 33, 36, 0.08);
  border-radius: calc(var(--panel-radius) + 8px);
  background: #fff;
  box-shadow: 0 24px 80px rgba(60, 64, 67, 0.24);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(0.78rem * var(--density-scale));
  border-bottom: 1px solid rgba(32, 33, 36, 0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 0.65rem;
  padding: calc(0.8rem * var(--density-scale));
}

.form-grid .full {
  grid-column: 1 / -1;
}

.settings-section {
  padding: calc(0.65rem * var(--density-scale));
  margin-bottom: calc(0.65rem * var(--density-scale));
  border: 1px solid rgba(32, 33, 36, 0.06);
  border-radius: var(--panel-radius);
  background: var(--surface-2);
}

.settings-section h3 {
  margin: 0 0 0.48rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.status-editor-list {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.status-editor-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) 88px minmax(220px, 2fr) auto;
  gap: 0.45rem;
  align-items: center;
}

.strategy-editor-row {
  grid-template-columns: minmax(180px, 1.1fr) minmax(280px, 2.4fr) auto;
}

.settings-logo-preview-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.35rem;
}

.settings-logo-preview {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(32, 33, 36, 0.1);
  background: #fff;
  object-fit: contain;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.65rem;
  border-top: 1px solid rgba(32, 33, 36, 0.06);
  background: #fbfdff;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
}

.swatch {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1px solid rgba(32, 33, 36, 0.1);
}

.embed .sidebar,
.embed .tabs,
.embed .toolbar .hide-embed,
.embed .filters .hide-embed {
  display: none;
}

.embed .app {
  grid-template-columns: 1fr;
}

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

  .sidebar {
    position: static;
    height: auto;
    overflow: visible;
  }

  .nav-section {
    flex: 0 1 auto;
  }

  .nav-list {
    max-height: 240px;
  }

  .hero-copy {
    flex-direction: column;
  }

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

  .toolbar-group {
    width: 100%;
  }

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

  .control-row {
    align-items: flex-start;
  }

  .filters {
    grid-template-columns: 1fr;
    grid-template-areas:
      "grid"
      "actions";
  }

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

  .changelog-panel {
    position: static;
    max-height: none;
  }

  .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 700px) {
  .main {
    padding: 0.68rem;
  }

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

  .tabs-row {
    align-items: flex-start;
  }

  .view-tools {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .lane-menu {
    left: 0;
    right: auto;
    top: calc(100% + 0.2rem);
    transform: none;
  }

  .status-editor-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.45rem;
  }

  .date-badge {
    width: 100%;
    min-width: 0;
  }
}
