/* Sidebar detail panels */
.sidebar-panel {
  display: none;
  padding: 14px 16px 16px;
  background: transparent;
  border: none;
  max-height: none;
  overflow: visible;
}

.sidebar-panel.active {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.sidebar-panel--selection.active,
.sidebar-panel--edit.active,
.sidebar-panel--edit-workspace.active,
.sidebar-panel--citizen.active,
.sidebar-panel--export.active,
.sidebar-panel--settings.active,
.sidebar-panel--help.active {
  overflow-y: auto;
}

.sidebar-panel--selection.active {
  overflow: hidden;
}

.sidebar-panel--layers,
.sidebar-panel--filters {
  padding: 0;
}

.sidebar-panel--selection {
  padding: 0;
}

.sidebar-panel--edit,
.sidebar-panel--edit-workspace {
  padding: 0 0 var(--sidebar-bottom-pad);
}

.sidebar-panel--export {
  padding: 0 0 var(--sidebar-bottom-pad);
}

.sidebar-panel--citizen,
.sidebar-panel--settings,
.sidebar-panel--help {
  padding: 0 0 var(--sidebar-bottom-pad);
}

.sidebar-panel--layers.active,
.sidebar-panel--filters.active {
  overflow: hidden;
}

/* Dashboard */
.dashboard-page {
  min-height: 100%;
  padding: 22px 24px 26px;
  background:
    radial-gradient(circle at top left, rgba(242, 197, 35, 0.08), transparent 28%),
    #0f1114;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.dashboard-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-sidebar,
.dashboard-surface {
  min-width: 0;
  border: var(--border-nrw);
  border-radius: 16px;
  background: rgba(20, 20, 20, 0.82);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

.dashboard-sidebar {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
  box-shadow: none;
}

.dashboard-sidebar-section {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--sidebar-item-border);
  background: transparent;
  box-shadow: none;
}

.dashboard-sidebar-section:first-child {
  border-top: 0;
}

.dashboard-sidebar-section--intro {
  gap: 12px;
}

.dashboard-sidebar-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 800;
  color: var(--text-light);
}

.dashboard-sidebar-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.dashboard-sidebar-copy strong {
  color: var(--text-light);
  font-weight: 700;
}

.dashboard-sidebar-add-btn.btn,
.dashboard-sidebar-open-btn.btn {
  width: 100%;
}

.dashboard-sidebar-nav {
  gap: 0;
  padding: 0;
}

.dashboard-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dashboard-sidebar-link:first-child {
  border-top: 0;
}

.dashboard-sidebar-link:hover {
  color: var(--text-light);
  background: var(--sidebar-item-summary-hover);
}

.dashboard-sidebar-link.is-active {
  color: var(--text-light);
  background: var(--sidebar-item-summary-open);
}

.dashboard-sidebar-link-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-sidebar-section-title {
  color: rgba(216, 222, 230, 0.66);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-sidebar-focus-name {
  color: var(--text-light);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.dashboard-sidebar-focus-meta {
  color: rgba(216, 222, 230, 0.64);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

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

.dashboard-surface {
  overflow: hidden;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-header-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.dashboard-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-yellow);
}

.dashboard-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 800;
  color: var(--text-light);
}

.dashboard-lead {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.dashboard-lead strong {
  color: var(--text-light);
}

.dashboard-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.dashboard-header-btn.btn {
  white-space: nowrap;
}

.dashboard-table-wrap {
  overflow: auto;
}

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

.dashboard-table thead th {
  padding: 16px 20px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(216, 222, 230, 0.78);
  white-space: nowrap;
}

.dashboard-table tbody td {
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.4;
  vertical-align: middle;
}

.dashboard-table-row {
  transition: background-color var(--transition-fast);
}

.dashboard-table-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-table-row.is-current {
  background: rgba(242, 197, 35, 0.05);
}

.dashboard-project-head {
  min-width: 0;
}

.dashboard-project-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.25;
}

.dashboard-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  border: var(--border-dv);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-status.is-active {
  border-color: rgba(242, 197, 35, 0.22);
  background: rgba(242, 197, 35, 0.1);
  color: #f2d471;
}

.dashboard-table-actions-col,
.dashboard-table-actions {
  text-align: right;
}

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

.dashboard-table-btn.btn {
  min-width: 118px;
  justify-content: center;
}

.dashboard-project-dashboard-btn.btn {
  min-width: 150px;
}

.dashboard-access-label {
  display: inline-grid;
  gap: 4px;
}

.dashboard-access-role {
  color: rgba(216, 222, 230, 0.66);
  font-size: 12px;
  text-transform: lowercase;
}

.dashboard-project-menu {
  position: relative;
  flex: 0 0 auto;
}

.dashboard-project-menu-toggle.btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  color: var(--muted);
}

.dashboard-project-menu-toggle.btn:hover,
.dashboard-project-menu.is-open .dashboard-project-menu-toggle.btn {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-project-menu-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
}

.dashboard-project-menu-popover {
  position: fixed;
  left: 0;
  top: 0;
  width: 210px;
  display: none;
  padding: 10px;
  border: var(--border-nrw);
  border-radius: 14px;
  background: rgba(16, 18, 20, 0.98);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.3);
  z-index: 1200;
}

.dashboard-project-menu.is-open .dashboard-project-menu-popover {
  display: grid;
  gap: 4px;
}

.dashboard-project-menu-head {
  display: grid;
  gap: 3px;
  padding: 2px 4px 8px;
}

.dashboard-project-menu-title {
  color: var(--text-light);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-project-menu-meta {
  color: rgba(216, 222, 230, 0.58);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dashboard-project-menu-item {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dashboard-project-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-project-menu-item:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.dashboard-project-menu-item--danger {
  color: #ffb6b6;
}

.dashboard-empty-state {
  display: grid;
  gap: 8px;
  padding: 26px 20px 28px;
}

.dashboard-empty-state-title {
  color: var(--text-light);
  font-size: 16px;
  font-weight: 700;
}

.dashboard-empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Account settings */
.account-layout {
  grid-template-columns: minmax(228px, 260px) minmax(0, 1fr);
}

.account-sidebar .dashboard-sidebar-section--intro {
  align-items: start;
  gap: 9px;
  padding: 16px;
}

.account-sidebar .dashboard-sidebar-title {
  max-width: 100%;
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.account-sidebar .dashboard-sidebar-copy {
  max-width: 100%;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.account-sidebar-actions {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
}

.account-sidebar-projects.btn {
  width: 100%;
  justify-content: center;
  min-height: 38px;
  padding-inline: 12px;
  font-size: 12px;
}

.account-avatar-preview,
.account-avatar-large {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(241, 196, 58, 0.36), rgba(241, 196, 58, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: #fff8df;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.account-avatar-preview {
  width: 54px;
  height: 54px;
  font-size: 17px;
}

.account-avatar-large {
  width: 104px;
  height: 104px;
  font-size: 30px;
}

.account-avatar-preview img,
.account-avatar-large img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.account-sections {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.account-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: var(--border-dv);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
  scroll-margin-top: 96px;
}

.account-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.account-card-title {
  margin: 0;
  color: var(--text-light);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.account-card-copy {
  margin: 6px 0 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.account-profile-grid {
  display: grid;
  grid-template-columns: minmax(156px, 190px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.account-avatar-form,
.account-avatar-remove-form,
.account-form,
.account-field {
  display: grid;
  gap: 9px;
}

.account-avatar-form {
  align-content: start;
}

.account-avatar-remove-form {
  grid-column: 1;
}

.account-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.account-form--narrow {
  max-width: 560px;
  grid-template-columns: minmax(0, 1fr);
}

.account-label {
  color: rgba(216, 222, 230, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.account-input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-light);
  font: inherit;
  outline: none;
}

.account-input:focus {
  border-color: rgba(241, 196, 58, 0.72);
  box-shadow: 0 0 0 3px rgba(241, 196, 58, 0.13);
}

.account-input:disabled {
  color: rgba(243, 245, 247, 0.66);
  cursor: not-allowed;
}

.account-file-input {
  padding-top: 8px;
}

.account-help,
.account-error {
  font-size: 12px;
  line-height: 1.45;
}

.account-help {
  color: rgba(216, 222, 230, 0.56);
}

.account-error {
  color: #ffb7b7;
}

.account-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
}

.account-alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.account-alert--success {
  border: 1px solid rgba(88, 224, 168, 0.34);
  background: rgba(88, 224, 168, 0.12);
  color: #dffbef;
}

.account-alert--error {
  border: 1px solid rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.14);
  color: #ffd5d5;
}

.account-danger-btn.btn {
  color: #ffb7b7;
}

@media (max-width: 900px) {
  .account-layout,
  .account-profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-sections {
    padding: 18px 16px;
  }
}

.dashboard-detail-section {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.008)),
    rgba(255, 255, 255, 0.01);
}

.dashboard-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-detail-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.dashboard-detail-title {
  margin: 0;
  color: var(--text-light);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
}

.dashboard-detail-lead {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-editor-selection {
  min-width: min(280px, 100%);
  padding: 12px 14px;
  border: var(--border-dv);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  gap: 6px;
}

.dashboard-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-stat-card,
.dashboard-editor-card,
.dashboard-roadmap-card,
.dashboard-placeholder-card {
  border: var(--border-dv);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.dashboard-stat-card {
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.dashboard-stat-label {
  color: rgba(216, 222, 230, 0.66);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-stat-value {
  color: var(--text-light);
  font-size: 26px;
  line-height: 1.05;
  font-weight: 800;
}

.dashboard-stat-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-editor-card {
  overflow: hidden;
}

.dashboard-editor-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-editor-card-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.dashboard-editor-title {
  margin: 0;
  color: var(--text-light);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

.dashboard-editor-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.dashboard-editor-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.dashboard-editor-table-wrap {
  overflow: auto;
}

.dashboard-editor-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.dashboard-editor-table thead th {
  padding: 14px 18px 12px;
  text-align: left;
  color: rgba(216, 222, 230, 0.78);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-editor-table tbody td {
  padding: 15px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.45;
  vertical-align: middle;
}

.dashboard-editor-name {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 700;
}

.dashboard-editor-id {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.dashboard-editor-id code {
  color: inherit;
  font-size: inherit;
}

.dashboard-roadmap-card,
.dashboard-placeholder-card {
  padding: 16px 18px;
}

.dashboard-roadmap-title,
.dashboard-placeholder-title {
  color: var(--text-light);
  font-size: 15px;
  font-weight: 700;
}

.dashboard-roadmap-card p,
.dashboard-placeholder-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Bottom dock */
.edit-mode-banner {
  --toolbar-icon-size: 17px;
  --edit-toolbar-control-bg: rgba(74, 54, 0, 0.075);
  --edit-toolbar-control-bg-hover: rgba(74, 54, 0, 0.13);
  --edit-toolbar-control-border: rgba(74, 54, 0, 0.12);
  --edit-toolbar-control-border-hover: rgba(74, 54, 0, 0.2);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: var(--workspace-editbar-h);
  box-sizing: border-box;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(96, 69, 0, 0.28);
  background:
    linear-gradient(180deg, rgba(242, 197, 35, 0.96), rgba(226, 177, 18, 0.94));
  color: #2c2300;
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.edit-mode-banner-state {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.edit-mode-banner-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(74, 54, 0, 0.1);
  box-shadow: inset 0 0 0 1px rgba(90, 64, 0, 0.14);
  color: #4a3600;
}

.edit-mode-banner-badge svg {
  width: 14px;
  height: 14px;
  display: block;
}

.edit-mode-banner {
  --toolbar-icon-stroke: 1.75;
  --toolbar-expand-icon-size: 14px;
}

.projection-view-panel-header {
  --toolbar-icon-stroke: 1.75;
  --toolbar-expand-icon-size: 16px;
}

.edit-mode-banner[data-mode="buildings"] .edit-mode-banner-badge {
  background: rgba(74, 54, 0, 0.1);
}

.edit-mode-banner[data-mode="surfaces"] .edit-mode-banner-badge {
  background: rgba(92, 70, 0, 0.12);
}

.edit-mode-banner[data-mode="modules"] .edit-mode-banner-badge {
  background: rgba(111, 79, 0, 0.16);
}

.edit-mode-banner-copy {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.edit-mode-banner-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(61, 46, 0, 0.78);
}

.edit-mode-banner-text {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  color: #241b00;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.edit-mode-banner-meta {
  min-width: 0;
  color: rgba(61, 46, 0, 0.78);
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.edit-mode-banner-modes {
  flex: 0 0 auto;
  min-width: auto;
  display: flex;
  justify-content: center;
}

.edit-mode-banner-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
  padding-left: 10px;
  border-left: 1px solid rgba(96, 69, 0, 0.18);
}

.edit-mode-banner-controls > * + * {
  padding-left: 8px;
  border-left: 1px solid rgba(96, 69, 0, 0.18);
}

.edit-mode-banner-history {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.edit-mode-banner-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 10px;
  border-left: 1px solid rgba(96, 69, 0, 0.18);
}

.edit-mode-banner-modes.is-hidden {
  display: none;
}

.edit-mode-banner.is-add-session .edit-mode-banner-modes {
  display: none;
}

.edit-mode-banner-action.btn {
  min-width: 0;
  border-radius: 999px;
}

.edit-mode-banner-action--cancel.btn {
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  padding-inline: 0;
}

.edit-mode-banner-action--save.btn {
  width: auto;
  min-width: 0;
  min-height: 32px;
  padding-inline: 10px;
  border-color: var(--control-active-border);
  background: var(--control-active-bg);
  color: var(--control-active-text);
  box-shadow: none;
}

.edit-mode-banner-action--cancel.btn {
  border-color: var(--edit-toolbar-control-border);
  background: var(--edit-toolbar-control-bg);
  color: #4a3600;
  box-shadow: none;
}

.edit-mode-banner-action--cancel .edit-mode-banner-btn-label {
  display: none;
}

.edit-mode-banner-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.edit-mode-banner-action.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.edit-mode-banner .btn-primary:hover,
.edit-mode-banner-action--save.btn:hover {
  border-color: var(--control-active-border-hover);
  background: var(--control-active-bg-hover);
  color: var(--control-active-text-hover);
  box-shadow: none;
}

.edit-mode-banner .btn-secondary {
  border-color: var(--edit-toolbar-control-border);
  background: var(--edit-toolbar-control-bg);
  color: #4a3600;
  box-shadow: none;
}

.edit-mode-banner .btn-secondary:hover {
  border-color: var(--edit-toolbar-control-border-hover);
  background: var(--edit-toolbar-control-bg-hover);
  box-shadow: none;
}

.edit-mode-banner .segmented-control--modes {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 5px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.edit-mode-banner .segmented-control--modes .btn-toggle {
  color: rgba(74, 54, 0, 0.88);
}

.edit-mode-banner-focus-wrap {
  flex: 0 0 auto;
  margin-left: 0;
}

.edit-mode-banner .segmented-control {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.edit-mode-banner .segmented-control .btn-toggle,
.edit-mode-banner-history-btn.btn-toggle,
.edit-mode-banner-focus.btn-toggle {
  min-width: 0;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  border-color: var(--edit-toolbar-control-border);
  background: var(--edit-toolbar-control-bg);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  gap: 6px;
  color: rgba(74, 54, 0, 0.9);
  box-shadow: none;
}

.edit-mode-banner-history-btn.btn-toggle {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  justify-content: center;
  gap: 0;
}

.edit-mode-banner .segmented-control--modes .btn-toggle:hover,
.edit-mode-banner .segmented-control .btn-toggle:hover,
.edit-mode-banner-history-btn.btn-toggle:hover,
.edit-mode-banner-focus.btn-toggle:hover {
  background: var(--edit-toolbar-control-bg-hover);
  border-color: var(--edit-toolbar-control-border-hover);
  color: #3f2f00;
}

.edit-mode-banner-history-btn.btn-toggle:disabled {
  opacity: 0.4;
  cursor: default;
}

.edit-mode-banner .segmented-control--modes .btn-toggle.is-active,
.edit-mode-banner .segmented-control--modes input[type="radio"]:checked + .btn-toggle {
  background: var(--control-active-bg);
  border-color: var(--control-active-border);
  color: var(--control-active-text);
  box-shadow: none;
}

.edit-mode-banner .segmented-control--modes .btn-toggle.is-active:hover,
.edit-mode-banner .segmented-control--modes input[type="radio"]:checked + .btn-toggle:hover {
  background: var(--control-active-bg-hover);
  border-color: var(--control-active-border-hover);
  color: var(--control-active-text-hover);
}

.edit-mode-banner[data-density="compact"] .edit-mode-chip-label,
.edit-mode-banner[data-density="state"] .edit-mode-chip-label {
  display: none;
}

.edit-mode-banner[data-density="compact"] .segmented-control--modes .btn-toggle,
.edit-mode-banner[data-density="state"] .segmented-control--modes .btn-toggle {
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  justify-content: center;
  gap: 0;
}

.edit-mode-banner[data-density="compact"] .edit-mode-banner-focus .edit-mode-banner-btn-label,
.edit-mode-banner[data-density="state"] .edit-mode-banner-focus .edit-mode-banner-btn-label {
  display: none;
}

.edit-mode-banner[data-density="compact"] .edit-mode-banner-focus,
.edit-mode-banner[data-density="state"] .edit-mode-banner-focus {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  justify-content: center;
  gap: 0;
}

.edit-mode-banner[data-density="compact"] .edit-mode-banner-action--save .edit-mode-banner-btn-label,
.edit-mode-banner[data-density="state"] .edit-mode-banner-action--save .edit-mode-banner-btn-label {
  display: none;
}

.edit-mode-banner[data-density="compact"] .edit-mode-banner-action--save.btn,
.edit-mode-banner[data-density="state"] .edit-mode-banner-action--save.btn {
  width: 32px;
  min-width: 32px;
  padding-inline: 0;
  justify-content: center;
  gap: 0;
}

.edit-mode-banner[data-density="state"] .edit-mode-banner-copy {
  display: none;
}

.edit-mode-banner[data-density="state"] .edit-mode-banner-state {
  flex: 0 0 auto;
  gap: 0;
}

.edit-mode-banner-btn-icon,
.edit-mode-chip-icon,
.projection-nav-btn-icon,
.projection-view-expand-icon {
  width: var(--toolbar-icon-size, 16px);
  height: var(--toolbar-icon-size, 16px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.projection-view-expand-icon {
  width: var(--toolbar-expand-icon-size, 16px);
  height: var(--toolbar-expand-icon-size, 16px);
}

.edit-mode-banner-btn-icon svg,
.edit-mode-chip-icon svg,
.projection-nav-btn-icon svg,
.projection-view-expand-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--toolbar-icon-stroke, 1.75);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.edit-mode-chip-icon svg.toolbar-icon-filled,
.edit-mode-chip-icon svg.toolbar-icon-filled path {
  fill: currentColor;
  stroke: none;
  vector-effect: none;
}

.projection-view-expand-icon svg {
  width: var(--toolbar-expand-icon-size, 16px);
  height: var(--toolbar-expand-icon-size, 16px);
}

.edit-mode-banner .segmented-control--modes .btn-toggle {
  gap: 6px;
}

.edit-mode-banner.is-attention {
  border-bottom-color: rgba(98, 73, 0, 0.42);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(108, 80, 0, 0.18);
}

.sidebar-selection-panel,
.sidebar-selection-scroll,
.sidebar-selection-body,
.sidebar-selection-groups {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-selection-panel {
  flex: 1 1 auto;
  min-height: 100%;
  overflow: hidden;
}

.sidebar-selection-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sidebar-selection-body {
  flex: 0 0 auto;
  min-height: auto;
}

.sidebar-selection-preview-slot {
  display: flex;
  flex: 0 0 auto;
  min-width: 0;
  margin-top: auto;
}

.sidebar-projection-slot {
  margin-top: 0;
}

.sidebar-selection-add-staging {
  display: none;
}

.sidebar-selection-panel.is-add-panel-open .sidebar-selection-scroll {
  padding-bottom: var(--sidebar-bottom-pad);
}

.sidebar-selection-panel.is-add-panel-open .sidebar-selection-preview-slot {
  display: none;
}

.sidebar-selection-preview-wrap {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px 12px var(--sidebar-bottom-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-projection-wrap {
  padding: 0;
  border-top: 0;
}

.sidebar-projection-tray {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  min-width: 0;
  border-top: 1px solid var(--sidebar-item-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0) 80px),
    var(--bg-sidebar-detail);
  box-shadow: 0 -14px 28px rgba(0, 0, 0, 0.18);
}

.sidebar-projection-tray.is-collapsed {
  display: none;
  box-shadow: none;
}

.sidebar-projection-tray.is-panel-expanded {
  display: none;
}

.sidebar-projection-tray-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: var(--app-panel-header-h, var(--sidebar-head-h, 48px));
  box-sizing: border-box;
  padding: 0 var(--app-panel-header-pad-x, var(--sidebar-header-pad-x, 16px));
  color: var(--text-light);
  background: var(--app-panel-header-bg, var(--sidebar-header-bg));
  border-bottom: 1px solid var(--app-panel-header-border-color, var(--sidebar-header-border-color, var(--accent-yellow)));
}

.sidebar-projection-tray-copy {
  flex: 0 1 auto;
  min-width: 0;
  display: grid;
  gap: 3px;
}

.sidebar-projection-tray-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.sidebar-projection-tray.is-collapsed .sidebar-projection-tray-actions {
  display: none;
}

.sidebar-projection-tray-actions .projection-view-toolbar-main {
  flex: 0 1 auto;
  justify-content: flex-start;
}

.sidebar-collapse-btn.surface-projection-close-btn.btn {
  margin-left: auto;
}

body.surface-projection-overlay-open .surface-projection-close-btn .sidebar-close-icon--collapse {
  display: none;
}

body.surface-projection-overlay-open .surface-projection-close-btn .sidebar-close-icon--dismiss {
  display: inline-flex;
}

.sidebar-projection-tray-title {
  color: inherit;
  font-size: var(--ui-nav-size);
  font-weight: var(--ui-nav-weight);
  letter-spacing: var(--ui-nav-spacing);
  line-height: 1.2;
  text-transform: uppercase;
}

.sidebar-projection-tray-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.sidebar-projection-tray.is-expanded > .sidebar-projection-tray-header {
  color: var(--text-light);
}

.sidebar-projection-tray-body {
  min-width: 0;
  background: var(--sidebar-item-body-bg);
  border-top: 1px solid var(--sidebar-item-border-soft);
}

.sidebar-projection-tray.is-collapsed .sidebar-projection-tray-body {
  display: none;
}

.sidebar-selection-empty {
  padding: 14px 16px 12px;
  display: grid;
  gap: 6px;
}

.sidebar-selection-empty-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ui-section-spacing);
  text-transform: uppercase;
  color: var(--accent-yellow);
}

.sidebar-selection-empty p,
.sidebar-selection-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.sidebar-selection-note {
  padding: 14px 16px 10px;
}

.sidebar-selection-group-body {
  gap: 12px;
}

.sidebar-selection-subsection {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.sidebar-selection-inline-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.sidebar-selection-note--compact {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(242, 197, 35, 0.08);
  box-shadow: inset 0 0 0 1px rgba(243, 198, 35, 0.16);
}

.sidebar-selection-review {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.sidebar-selection-review-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ui-section-spacing);
  text-transform: uppercase;
}

.sidebar-selection-review-title {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.sidebar-selection-review-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--accent-yellow);
}

.sidebar-selection-review-meta {
  min-width: 0;
  overflow: hidden;
  color: rgba(216, 222, 230, 0.78);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-selection-review-retry {
  width: fit-content;
}

.sidebar-selection-version-list {
  display: grid;
  gap: 0;
  overflow: visible;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.sidebar-selection-version-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-selection-version-row:last-child {
  border-bottom: 0;
}

.sidebar-selection-version-row--official {
  color: #fff8e2;
}

.sidebar-selection-version-row--preview {
  color: #e8f7ff;
}

.sidebar-selection-version-row:hover,
.sidebar-selection-version-row:focus-within {
  background: rgba(255, 255, 255, 0.035);
}

.sidebar-selection-version-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sidebar-selection-version-title {
  overflow: hidden;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-selection-version-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-selection-version-badges,
.sidebar-selection-version-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.sidebar-selection-version-actions {
  justify-content: flex-end;
}

.sidebar-selection-version-pill {
  width: fit-content;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(242, 197, 35, 0.13);
  color: var(--accent-yellow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sidebar-selection-version-pill--preview {
  background: rgba(123, 207, 255, 0.12);
  color: #9edcff;
}

.sidebar-selection-version-pill--source {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(216, 222, 230, 0.88);
}

.sidebar-selection-mini-action {
  min-height: 26px;
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11);
  color: rgba(245, 247, 250, 0.92);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.sidebar-selection-mini-action:hover,
.sidebar-selection-mini-action:focus-visible {
  outline: none;
  background: rgba(242, 197, 35, 0.12);
  box-shadow: inset 0 0 0 1px rgba(243, 198, 35, 0.24);
  color: #fff;
}

.sidebar-selection-mini-action--primary {
  background: rgba(242, 197, 35, 0.14);
  box-shadow: inset 0 0 0 1px rgba(243, 198, 35, 0.26);
  color: #fff8e2;
}

.sidebar-selection-surface-picker {
  display: grid;
  gap: 0;
  overflow: visible;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.sidebar-selection-surface-option {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-light);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.sidebar-selection-surface-option:hover,
.sidebar-selection-surface-option:focus-visible {
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
}

.sidebar-selection-surface-option:focus-visible {
  outline: none;
}

.sidebar-selection-surface-option:disabled {
  opacity: 0.55;
  cursor: default;
}

.sidebar-selection-surface-option:last-child {
  border-bottom: 0;
}

.sidebar-selection-surface-option-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.sidebar-selection-surface-option-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-selection-surface-option-meta {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-selection-surface-option-count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.sidebar-selection-surface-option:hover .sidebar-selection-surface-option-meta,
.sidebar-selection-surface-option:focus-visible .sidebar-selection-surface-option-meta,
.sidebar-selection-surface-option:hover .sidebar-selection-surface-option-count,
.sidebar-selection-surface-option:focus-visible .sidebar-selection-surface-option-count {
  color: rgba(255, 255, 255, 0.72);
}

.sidebar-selection-grid {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 10px;
  align-content: start;
}

.sidebar-selection-grid .k {
  min-width: 0;
  max-width: 96px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-selection-grid .v {
  min-width: 0;
  color: var(--text-light);
  font-weight: 600;
  font-size: 12px;
  overflow-wrap: break-word;
  text-align: right;
  justify-self: stretch;
}

.sidebar-selection-grid .sidebar-selection-address-value {
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.sidebar-selection-detail-link {
  color: var(--accent-yellow);
  text-decoration: none;
}

.sidebar-selection-detail-link:hover,
.sidebar-selection-detail-link:focus-visible {
  text-decoration: underline;
}

.sidebar-selection-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-selection-actions-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.sidebar-selection-actions-row--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sidebar-selection-action {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 8px 12px;
  justify-content: center;
  text-align: center;
}

.sidebar-selection-action--edit.btn-secondary {
  background: rgba(242, 197, 35, 0.08);
  color: var(--text-light);
  box-shadow: inset 0 0 0 1px rgba(243, 198, 35, 0.22);
}

.sidebar-selection-action--edit.btn-secondary:hover {
  background: rgba(242, 197, 35, 0.13);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(243, 198, 35, 0.3);
}

.sidebar-selection-action--reset.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(216, 222, 230, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.sidebar-selection-action--reset.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-light);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.sidebar-selection-action--delete.btn-danger {
  color: #ffe0e0;
  box-shadow: inset 0 0 0 1px rgba(255, 96, 96, 0.34);
}

.sidebar-selection-action--delete.btn-danger:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 106, 106, 0.44);
}

.edit-publish-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 8, 12, 0.48);
  backdrop-filter: blur(12px);
}

.edit-publish-dialog {
  width: min(420px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(27, 34, 42, 0.98), rgba(15, 20, 27, 0.98));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.11);
}

.edit-publish-dialog-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(242, 197, 35, 0.1);
  color: var(--accent-yellow);
  box-shadow: inset 0 0 0 1px rgba(242, 197, 35, 0.2);
}

.edit-publish-dialog-icon svg {
  width: 23px;
  height: 23px;
}

.edit-publish-dialog-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.edit-publish-dialog-copy h2 {
  margin: 0;
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.25;
}

.edit-publish-dialog-copy p {
  margin: 0;
  color: rgba(216, 222, 230, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.edit-publish-dialog-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.edit-publish-dialog-actions .btn {
  min-height: 38px;
  justify-content: center;
}

.sidebar-selection-add-group > .sidebar-selection-add-trigger {
  padding-right: calc(var(--sidebar-header-pad-x) + var(--sidebar-header-chevron-space));
}

.sidebar-selection-add-group > .sidebar-selection-add-trigger::after {
  display: none;
}

.sidebar-selection-add-trigger[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}

.sidebar-selection-add-icon {
  position: absolute;
  right: calc(var(--sidebar-disclosure-chevron-inset) + 2px);
  top: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  color: var(--accent-yellow);
  pointer-events: none;
}

.sidebar-selection-add-group[open] .sidebar-selection-add-icon {
  color: var(--muted);
}

.sidebar-selection-add-group[open] > .sidebar-selection-add-trigger:hover .sidebar-selection-add-icon,
.sidebar-selection-add-group[open] > .sidebar-selection-add-trigger:focus-visible .sidebar-selection-add-icon {
  color: var(--text-light);
}

.sidebar-selection-add-icon-mark {
  width: 100%;
  height: 100%;
  display: block;
}

.sidebar-selection-add-icon-mark--close {
  display: none;
}

.sidebar-selection-add-group[open] .sidebar-selection-add-icon-mark--open {
  display: none;
}

.sidebar-selection-add-group[open] .sidebar-selection-add-icon-mark--close {
  display: block;
}

.sidebar-selection-add-group-body {
  gap: 8px;
  padding: 10px 16px 12px;
}

.sidebar-selection-add-mount {
  min-width: 0;
}

.projection-view-panel,
.projection-view-panel-body {
  min-width: 0;
}

.projection-view-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  padding: 0;
}

.projection-view-panel-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: var(--app-panel-header-h, var(--sidebar-head-h, 48px));
  box-sizing: border-box;
  padding: 0 var(--app-panel-header-pad-x, var(--sidebar-header-pad-x, 16px));
  background: var(--app-panel-header-bg, var(--sidebar-header-bg));
  border-bottom: 1px solid var(--app-panel-header-border-color, var(--sidebar-header-border-color, var(--accent-yellow)));
}

.projection-view-panel-title {
  flex: 0 0 auto;
  min-width: 0;
  color: var(--text-light);
  font-size: var(--ui-nav-size);
  font-weight: var(--ui-nav-weight);
  letter-spacing: var(--ui-nav-spacing);
  line-height: 1.2;
  text-transform: uppercase;
}

.projection-view-panel--selection {
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  container-type: inline-size;
}

.projection-view-panel--selection.is-header-detached {
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.projection-view-panel--selection.is-header-detached .projection-view-panel-header {
  display: none;
}

.projection-view-toolbar-main {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.projection-view-buttons {
  display: inline-flex;
  flex: 0 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 4px;
}

.projection-view-buttons.segmented-control--views {
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.edit-mode-banner .segmented-control--modes {
  gap: 5px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.projection-view-buttons.segmented-control--views .btn-toggle.projection-view-btn {
  min-width: 0;
  min-height: 0;
  padding: 3px 10px;
  font-size: 11px;
  line-height: 1.1;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
}

.edit-mode-banner .segmented-control--modes .btn-toggle {
  min-width: 0;
  min-height: 32px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
}

.edit-mode-banner[data-density="compact"] .segmented-control--modes .btn-toggle,
.edit-mode-banner[data-density="state"] .segmented-control--modes .btn-toggle {
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  gap: 0;
}

.projection-nav-buttons {
  display: none;
  flex: 0 0 auto;
  min-width: 0;
  gap: 4px;
  padding: 2px;
}

.sidebar-selection-preview-wrap.is-expanded.is-3d-view .projection-nav-buttons {
  display: inline-flex;
}

.projection-nav-btn {
  width: auto;
  min-width: 0;
  min-height: 32px;
  padding: 0 12px;
  gap: 7px;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}

.projection-nav-btn-label {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
}

.projection-nav-btn:disabled {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
}

.projection-view-panel-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  padding: 0;
}

.projection-view-stage {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 148px;
  height: auto;
  max-height: 184px;
  display: grid;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--projection-bg);
  box-shadow: none;
}

.projection-view-stage--selection {
  min-height: 152px;
  max-height: 172px;
}

.projection-view-stage > canvas,
.projection-view-stage > .projection-3d {
  grid-area: 1 / 1;
}

.projection-view-panel canvas,
.projection-view-panel .projection-3d {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: var(--projection-bg);
  box-shadow: none;
}

.projection-view-panel .projection-3d {
  overflow: hidden;
  box-sizing: border-box;
  touch-action: none;
}

.projection-view-panel .projection-3d canvas {
  display: block;
  background: var(--projection-bg);
}

.projection-view-panel-header:empty {
  display: none;
}

.projection-view-expand-btn {
  flex: 0 0 auto;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.projection-view-expand-btn:hover,
.projection-view-expand-btn:focus-visible {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.projection-view-expand-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.sidebar-projection-tray-actions .projection-view-expand-btn {
  margin-left: auto;
}

.sidebar-projection-tray-actions .projection-view-expand-btn + .surface-projection-close-btn.btn {
  margin-left: 4px;
}

.surface-projection-overlay-host {
  position: absolute;
  inset: 0;
  z-index: 1150;
  display: grid;
  pointer-events: none;
}

.surface-projection-overlay-host.is-hidden {
  display: none;
}

.surface-projection-overlay-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1148;
  background: rgba(6, 10, 14, 0.44);
  backdrop-filter: blur(3px);
}

.surface-projection-overlay-backdrop.is-hidden {
  display: none;
}

.sidebar-selection-preview-wrap.is-expanded {
  --preview-canvas-toolbar-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 86%),
    rgba(10, 13, 16, 0.78);
  --preview-canvas-toolbar-border: rgba(255, 255, 255, 0.1);
  --preview-canvas-toolbar-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);

  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: var(--bg-sidebar-detail);
  box-shadow: none;
  pointer-events: auto;
  padding: 0;
  border-top: 0;
}

.sidebar-selection-preview-wrap.is-expanded .projection-view-panel {
  position: relative;
  height: 100%;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.sidebar-selection-preview-wrap.is-expanded .projection-view-panel-header {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  align-items: center;
  min-height: var(--app-panel-header-h, var(--sidebar-head-h, 48px));
  padding: 0 var(--app-panel-header-pad-x, var(--sidebar-header-pad-x, 16px));
  background: var(--preview-canvas-toolbar-bg);
  border-bottom: 1px solid var(--preview-canvas-toolbar-border);
  box-shadow: var(--preview-canvas-toolbar-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
}

.sidebar-selection-preview-wrap.is-expanded .projection-view-panel-title {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.sidebar-selection-preview-wrap.is-expanded .projection-view-toolbar-main {
  max-width: calc(100% - 48px);
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.sidebar-selection-preview-wrap.is-expanded .projection-view-buttons.segmented-control--views,
.sidebar-selection-preview-wrap.is-expanded .projection-nav-buttons.segmented-control {
  gap: 2px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.sidebar-selection-preview-wrap.is-expanded .projection-view-buttons.segmented-control--views .btn-toggle.projection-view-btn,
.sidebar-selection-preview-wrap.is-expanded .projection-nav-btn {
  min-height: 24px;
  padding: 3px 10px;
  font-size: 11px;
  line-height: 1.1;
  border-radius: 999px;
}

.sidebar-selection-preview-wrap.is-expanded .projection-nav-btn {
  gap: 6px;
}

.sidebar-selection-preview-wrap.is-expanded .projection-nav-btn-icon svg,
.sidebar-selection-preview-wrap.is-expanded .projection-view-expand-icon svg {
  width: var(--toolbar-icon-size, 16px);
  height: var(--toolbar-icon-size, 16px);
  stroke-width: var(--toolbar-icon-stroke, 1.75);
}

.sidebar-selection-preview-wrap.is-expanded .projection-view-expand-icon svg {
  width: var(--toolbar-expand-icon-size, 16px);
  height: var(--toolbar-expand-icon-size, 16px);
}

.sidebar-selection-preview-wrap.is-expanded .projection-view-expand-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.sidebar-selection-preview-wrap.is-expanded .projection-view-expand-btn:hover,
.sidebar-selection-preview-wrap.is-expanded .projection-view-expand-btn:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.sidebar-selection-preview-wrap.is-expanded .surface-projection-close-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.sidebar-selection-preview-wrap.is-expanded .surface-projection-close-btn:hover,
.sidebar-selection-preview-wrap.is-expanded .surface-projection-close-btn:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.sidebar-selection-preview-wrap.is-expanded .projection-view-stage {
  min-height: 0;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
}

body.surface-projection-overlay-open {
  overflow: hidden;
}

.export-item-body {
  gap: 12px;
}

.export-run-btn {
  width: 100%;
  min-height: 40px;
}

.export-setting,
.export-setting-group {
  display: grid;
  gap: 6px;
}

.export-setting-label {
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.export-setting-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: var(--border-dv);
  border-radius: 6px;
  min-height: 30px;
  padding: 5px 8px;
  color: var(--text-light);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  outline: none;
  box-sizing: border-box;
}

.export-setting-input:focus {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 0 2px rgba(243, 198, 35, 0.12);
}

.export-setting-choice-list {
  display: grid;
  gap: 4px;
}

.export-setting-choice-list .sidebar-layer-choice,
.export-layer-choice {
  padding: 3px 0;
}

.export-layer-list {
  display: grid;
  gap: 8px;
}

.export-layer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7rem, 40%);
  gap: 10px;
  align-items: center;
}

.export-layer-toggle {
  min-width: 0;
}

.sidebar-export-workspace {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-export-groups {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.projection-view-panel,
.projection-view-panel-body {
  min-width: 0;
}

.projection-view-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  min-height: 0;
}

/* Edit workspace */
#panel-edit {
  flex-direction: column;
  gap: 0;
}

.sidebar-edit-review-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  min-height: 0;
}

.sidebar-edit-selected-kicker {
  color: var(--accent-yellow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: var(--ui-section-spacing);
  text-transform: uppercase;
}

.sidebar-edit-selected-title {
  overflow: hidden;
  color: var(--text-light);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-edit-review-body {
  display: grid;
  gap: 0;
  align-content: start;
  min-height: 0;
  padding: 0 0 16px;
  width: 100%;
}

.sidebar-edit-selected-building,
.sidebar-edit-building-list-block,
.sidebar-edit-list-state {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.sidebar-edit-selected-building {
  padding: 0 16px 16px;
}

.sidebar-edit-selected-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.032);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.075);
}

.sidebar-edit-selected-card--simple {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sidebar-edit-selected-meta {
  overflow: hidden;
  color: rgba(216, 222, 230, 0.72);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-edit-building-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  background: transparent;
}

.sidebar-edit-review-toolbar {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 9px 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.018);
}

.sidebar-edit-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.sidebar-edit-toolbar-row {
  align-items: stretch;
}

.sidebar-edit-search {
  position: relative;
  flex: 0 0 30px;
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: rgba(216, 222, 230, 0.72);
  cursor: text;
  transition:
    flex-basis var(--transition-fast),
    width var(--transition-fast),
    min-width var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast);
}

.sidebar-edit-search:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.075);
}

.sidebar-edit-search:focus-within,
.sidebar-edit-search.is-expanded {
  flex: 1 1 11rem;
  width: auto;
  min-width: 0;
  color: var(--text-light);
}

.sidebar-edit-search:focus-within {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(242, 197, 35, 0.34);
}

.sidebar-edit-search-icon {
  position: absolute;
  left: 7px;
  top: 50%;
  z-index: 1;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  pointer-events: none;
}

.sidebar-edit-search-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sidebar-edit-search-input {
  width: 100%;
  min-height: 30px;
  min-width: 0;
  padding: 0 10px 0 30px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-light);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  outline: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.sidebar-edit-search:focus-within .sidebar-edit-search-input,
.sidebar-edit-search.is-expanded .sidebar-edit-search-input {
  opacity: 1;
}

.sidebar-edit-search-input::placeholder {
  color: rgba(216, 222, 230, 0.48);
}

.sidebar-edit-review-body .sidebar-accordion-item > .sidebar-disclosure-trigger {
  padding-right: calc(var(--sidebar-header-pad-x) + var(--sidebar-header-chevron-space) + 10px);
  padding-top: 8px;
  padding-bottom: 8px;
}

.sidebar-edit-review-body .sidebar-accordion-summary-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.sidebar-edit-building-group[open] > .sidebar-edit-building-trigger .sidebar-accordion-summary-copy {
  grid-template-columns: minmax(0, 1fr);
}

.sidebar-edit-review-body .sidebar-accordion-title,
.sidebar-edit-review-body .sidebar-accordion-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-edit-review-body .sidebar-accordion-title {
  display: block;
}

.sidebar-edit-review-body .sidebar-accordion-meta {
  max-width: 92px;
  text-align: right;
}

.sidebar-edit-building-group > .sidebar-disclosure-trigger:hover,
.sidebar-edit-version-group > .sidebar-disclosure-trigger:hover {
  background: var(--sidebar-item-summary-hover);
}

.sidebar-edit-building-body,
.sidebar-edit-version-body {
  gap: 8px;
}

.sidebar-edit-building-body {
  padding: 8px 10px 10px;
  background: rgba(255, 255, 255, 0.014);
}

.sidebar-edit-version-body {
  padding: 7px 10px 10px;
  background: rgba(0, 0, 0, 0.08);
}

.sidebar-edit-building-subhead {
  min-width: 0;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 2px;
}

.sidebar-edit-version-list {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.022);
  box-shadow: inset 2px 0 0 rgba(242, 197, 35, 0.16);
}

.sidebar-edit-version-group {
  border-top-color: var(--sidebar-item-border-soft);
}

.sidebar-edit-version-group:first-child {
  border-top: 0;
}

.sidebar-edit-version-group:last-child {
  border-bottom: 0;
}

.sidebar-edit-version-group > .sidebar-disclosure-trigger {
  --sidebar-disclosure-chevron-inset: 10px;
  padding: 7px 40px 7px 10px;
  background: rgba(255, 255, 255, 0.012);
}

.sidebar-edit-version-group[open] > .sidebar-disclosure-trigger {
  background: rgba(242, 197, 35, 0.045);
}

.sidebar-edit-map-filter,
.sidebar-edit-original-toggle {
  flex: 0 0 auto;
  min-height: 30px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.sidebar-edit-original-toggle {
  min-height: 28px;
  padding: 0 8px;
}

.sidebar-edit-map-filter:hover,
.sidebar-edit-map-filter:focus-visible,
.sidebar-edit-map-filter.is-active,
.sidebar-edit-original-toggle:hover,
.sidebar-edit-original-toggle:focus-visible,
.sidebar-edit-original-toggle.is-active {
  outline: none;
  background: rgba(242, 197, 35, 0.065);
  box-shadow: inset 0 0 0 1px rgba(242, 197, 35, 0.22);
}

.sidebar-edit-map-filter-copy {
  display: grid;
  min-width: 0;
}

.sidebar-edit-map-filter-title,
.sidebar-edit-original-toggle-title {
  color: var(--text-light);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.sidebar-edit-map-filter-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.sidebar-edit-map-filter-switch,
.sidebar-edit-toggle-switch {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.sidebar-edit-map-filter-switch::after,
.sidebar-edit-toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(245, 247, 250, 0.86);
  transition: transform 160ms ease, background-color 160ms ease;
}

.sidebar-edit-map-filter.is-active .sidebar-edit-map-filter-switch,
.sidebar-edit-original-toggle.is-active .sidebar-edit-toggle-switch {
  background: rgba(242, 197, 35, 0.2);
  box-shadow: inset 0 0 0 1px rgba(243, 198, 35, 0.34);
}

.sidebar-edit-map-filter.is-active .sidebar-edit-map-filter-switch::after,
.sidebar-edit-original-toggle.is-active .sidebar-edit-toggle-switch::after {
  transform: translateX(12px);
  background: var(--accent-yellow);
}

.sidebar-edit-show-more {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.sidebar-edit-show-more:hover,
.sidebar-edit-show-more:focus-visible {
  outline: none;
  background: var(--sidebar-item-summary-hover);
  color: var(--text-light);
}

.sidebar-edit-show-more span:last-child {
  color: rgba(216, 222, 230, 0.62);
  font-size: 11px;
}

.sidebar-edit-review-body .sidebar-selection-mini-action:disabled,
.sidebar-edit-review-body .sidebar-selection-mini-action[aria-disabled="true"] {
  cursor: default;
  opacity: 0.74;
}

.sidebar-edit-review-body .sidebar-selection-mini-action.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 248, 226, 0.9);
}

.sidebar-edit-version-details {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.sidebar-edit-version-details--empty {
  padding-top: 10px;
}

.sidebar-edit-version-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  min-width: 0;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.095);
}

.sidebar-edit-version-toggle-btn {
  min-width: 0;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.sidebar-edit-version-toggle-btn:hover,
.sidebar-edit-version-toggle-btn:focus-visible {
  color: var(--text-light);
}

.sidebar-edit-version-toggle-btn.is-active {
  background: rgba(255, 248, 226, 0.95);
  color: #312813;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.sidebar-edit-version-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.sidebar-edit-back-to-list {
  width: calc(100% + 32px);
  min-width: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -16px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 780;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.sidebar-edit-back-to-list:hover,
.sidebar-edit-back-to-list:focus-visible {
  outline: none;
  background: rgba(242, 197, 35, 0.06);
  color: var(--text-light);
}

.sidebar-edit-back-to-list svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--accent-yellow);
}

.sidebar-edit-version-list-state {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 4px 0;
}

.sidebar-edit-selected-building .sidebar-selection-version-list {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.026);
}

.sidebar-edit-selected-building .sidebar-selection-version-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
}

.sidebar-edit-selected-building .sidebar-selection-version-row:last-child {
  border-bottom: 0;
}

.sidebar-edit-selected-building .sidebar-selection-version-row.is-expanded {
  background: rgba(255, 248, 226, 0.045);
}

.sidebar-edit-version-summary {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.sidebar-edit-version-summary:hover,
.sidebar-edit-version-summary:focus-visible {
  outline: none;
  color: #fff;
}

.sidebar-edit-version-kind {
  overflow: hidden;
  max-width: 92px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.sidebar-edit-version-chevron {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 160ms ease, color 160ms ease;
}

.sidebar-selection-version-row.is-expanded .sidebar-edit-version-chevron {
  color: var(--accent-yellow);
  transform: rotate(90deg);
}

.sidebar-edit-selected-building .sidebar-edit-version-details {
  padding: 0 0 12px;
  border-top: 0;
}

.sidebar-edit-compare-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-top: 2px;
}

.sidebar-edit-review-body .sidebar-edit-version-details {
  gap: 8px;
  padding-top: 0;
  border-top: 0;
}

.sidebar-edit-review-body .sidebar-edit-version-actions {
  gap: 6px;
}

.sidebar-edit-review-body .sidebar-edit-compare-card {
  gap: 6px;
  margin-top: 0;
}

.sidebar-edit-compare-grid {
  margin-top: 0;
}

.sidebar-edit-compare-grid .k,
.sidebar-edit-compare-grid .v {
  min-width: 0;
}

.sidebar-edit-building-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  align-items: start;
  padding: 11px 16px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.sidebar-edit-building-row:hover,
.sidebar-edit-building-row:focus-visible {
  outline: none;
  background: rgba(242, 197, 35, 0.055);
  box-shadow: none;
  color: #fff;
}

.sidebar-edit-building-row-main,
.sidebar-edit-building-row-side {
  min-width: 0;
}

.sidebar-edit-building-row-main {
  display: grid;
  gap: 3px;
}

.sidebar-edit-building-row-side {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  align-items: center;
}

.sidebar-edit-building-row-title {
  overflow: hidden;
  color: var(--text-light);
  font-size: 12.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-edit-building-row-meta,
.sidebar-edit-building-row-side {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.sidebar-edit-building-row-side {
  text-align: left;
}

.sidebar-edit-building-row-side span {
  min-width: 0;
}

.sidebar-edit-building-row-side span:last-child {
  flex: 1 1 100%;
  overflow: hidden;
  color: rgba(123, 207, 255, 0.86);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-edit-empty-list-note {
  padding: 12px;
}

.sidebar-edit-actions-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-edit-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-accordion-title--danger {
  color: rgba(255, 139, 139, 0.86);
}

.sidebar-edit-group[open] > .sidebar-disclosure-trigger .sidebar-accordion-title--danger,
.sidebar-edit-group > .sidebar-disclosure-trigger:hover .sidebar-accordion-title--danger {
  color: #ffb1b1;
}

.sidebar-edit-group-body {
  gap: 10px;
}

.sidebar-edit-group-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.sidebar-add-form {
  display: grid;
  gap: 8px;
  padding: 0;
  border-top: 0;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
}

.sidebar-add-form[hidden] {
  display: none;
}

.sidebar-add-form-header {
  display: grid;
  gap: 4px;
}

.sidebar-add-form-title {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

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

.sidebar-add-form-status {
  margin: -2px 0 0;
}

.sidebar-add-form-grid {
  display: grid;
  gap: 8px;
}

.sidebar-add-form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sidebar-add-form .sidebar-control-input,
.sidebar-add-form select.sidebar-control-input {
  min-height: 0;
  line-height: 1.2;
}

.sidebar-add-form .num-stepper input.sidebar-control-input {
  padding-right: 26px;
}

.sidebar-add-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.sidebar-add-form-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 32px;
  padding: 7px 10px;
}

.sidebar-citizen-panel,
.sidebar-citizen-form {
  display: grid;
  gap: 10px;
}

.sidebar-citizen-workspace,
.sidebar-citizen-body {
  min-height: 0;
}

.sidebar-citizen-workspace {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
  overflow-y: auto;
}

.sidebar-citizen-body {
  display: grid;
  gap: 10px;
}

.sidebar-citizen-context {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.sidebar-citizen-context span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-citizen-context strong {
  color: var(--text-light);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.sidebar-citizen-empty {
  min-height: 142px;
}

.sidebar-control-textarea {
  min-height: 76px;
  resize: vertical;
  line-height: 1.35;
}

.sidebar-selection-inline-note--error {
  color: #ffb4a8;
}

.sidebar-selection-note--success {
  border-color: rgba(88, 214, 141, 0.28);
  background: rgba(88, 214, 141, 0.08);
  color: rgba(216, 255, 228, 0.9);
}

.citizen-report-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 8, 10, 0.54);
  backdrop-filter: blur(10px);
}

.citizen-report-dialog {
  position: relative;
  width: min(460px, 100%);
  max-height: min(680px, calc(100vh - 36px));
  display: grid;
  gap: 14px;
  padding: 18px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(31, 30, 27, 0.98), rgba(18, 18, 17, 0.98)),
    var(--bg-sidebar-detail);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.citizen-report-dialog--compact {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  width: min(390px, 100%);
}

.citizen-report-dialog--compact .citizen-report-dialog-copy {
  padding-right: 30px;
}

.citizen-report-dialog--compact .citizen-report-dialog-actions {
  grid-column: 1 / -1;
}

.citizen-report-dialog-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-right: 32px;
}

.citizen-report-dialog-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--accent-yellow);
  background: rgba(241, 196, 58, 0.1);
  box-shadow: inset 0 0 0 1px rgba(241, 196, 58, 0.2);
}

.citizen-report-dialog-icon svg {
  width: 21px;
  height: 21px;
}

.citizen-report-dialog-copy {
  min-width: 0;
}

.citizen-report-dialog-copy h2 {
  margin: 0;
  color: var(--text-light);
  font-size: 18px;
  line-height: 1.2;
}

.citizen-report-dialog-copy p {
  margin: 4px 0 0;
  color: rgba(216, 222, 230, 0.7);
  font-size: 13px;
  line-height: 1.35;
}

.citizen-report-dialog-form {
  display: grid;
  gap: 10px;
}

.citizen-report-dialog-actions {
  justify-content: flex-end;
}

.citizen-report-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: rgba(216, 222, 230, 0.76);
  background: transparent;
  cursor: pointer;
}

.citizen-report-dialog-close:hover,
.citizen-report-dialog-close:focus-visible {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.citizen-report-dialog-close svg {
  width: 18px;
  height: 18px;
}

.sidebar-add-form-copy-btn.is-active {
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.12);
}

.sidebar-edit-action.btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  min-height: 38px;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.25;
}

.sidebar-edit-action.is-active-session {
  background: rgba(255, 255, 255, 0.075);
  color: var(--text-light);
  box-shadow: inset 0 0 0 1px rgba(243, 198, 35, 0.22);
}

.sidebar-edit-action.is-active-session:disabled {
  opacity: 1;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 0 0 1px rgba(243, 198, 35, 0.22) !important;
}

.sidebar-edit-action.is-editing-locked {
  opacity: 0.68;
}

.sidebar-edit-actions--danger .sidebar-edit-action.btn-danger,
.sidebar-edit-actions--reset .sidebar-edit-action.btn-danger {
  justify-content: flex-start;
  box-shadow: 0 0 0 1px rgba(255, 90, 90, 0.3);
}

.sidebar-edit-actions--danger .sidebar-edit-action.btn-danger:hover,
.sidebar-edit-actions--reset .sidebar-edit-action.btn-danger:hover {
  transform: none;
  box-shadow: 0 0 0 1px rgba(255, 90, 90, 0.45);
}

.sidebar-edit-action--shared.btn {
  min-height: 0;
}

#panel-edit.is-editing .sidebar-edit-actions-block {
  display: flex;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.layer-reset-row {
  margin-top: 2px;
  flex-wrap: wrap;
  gap: 8px;
}

#panel-edit .options-btn:disabled,
#panel-edit .decision-btn:disabled,
#panel-edit .btn-toggle-group input:disabled + .btn-toggle,
#panel-edit .btn-toggle-group label[aria-disabled="true"] {
  opacity: 0.62;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1180px) {
  .dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-sidebar {
    position: static;
  }

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

  .dashboard-header-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 640px) {
  .sidebar-add-form-grid--two {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .dashboard-page {
    padding: 18px 16px 20px;
  }

  .dashboard-header {
    padding: 16px 16px 14px;
  }

  .dashboard-title {
    font-size: 26px;
  }

  .dashboard-sidebar {
    padding: 14px;
  }

  .dashboard-detail-head,
  .dashboard-editor-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-editor-selection {
    min-width: 0;
  }

  .sidebar-edit-action.btn {
    min-height: 36px;
    padding: 8px 11px;
  }

  .sidebar-edit-group-body {
    padding: 10px 14px 12px;
  }

  .sidebar-selection-preview-wrap {
    padding: 12px 14px var(--sidebar-bottom-pad);
  }

  .sidebar-projection-wrap {
    padding: 0;
  }
}

@media (max-width: 600px) {
  .dashboard-header-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-header-btn.btn,
  .dashboard-table-btn.btn {
    width: 100%;
  }

  .dashboard-row-controls {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .dashboard-table {
    min-width: 720px;
  }

  .dashboard-detail-section {
    padding: 18px 16px;
  }

  .dashboard-detail-stats {
    grid-template-columns: minmax(0, 1fr);
  }

.dashboard-editor-table {
  min-width: 760px;
}

.dashboard-project-access {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.dashboard-project-visibility-form {
  display: flex;
  justify-content: flex-end;
}

.dashboard-members-card {
  margin-top: 18px;
}

.dashboard-members-card > .dashboard-invite-alert {
  margin: 12px 18px 0;
}

.dashboard-member-role-form {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-member-role-select {
  min-width: 120px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(246, 248, 251, 0.94);
  color-scheme: dark;
  font: inherit;
}

.dashboard-member-role-select option,
.dashboard-member-role-select optgroup {
  background: #101418;
  color: #f6f8fb;
}

.dashboard-member-role-select:focus {
  outline: none;
  border-color: rgba(241, 196, 58, 0.72);
  box-shadow: 0 0 0 2px rgba(241, 196, 58, 0.18);
}

.dashboard-status-save.btn {
  min-height: 34px;
  padding: 7px 10px;
}

.dashboard-role-badge,
.dashboard-verification-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 600;
}

.dashboard-verification-badge.is-verified {
  background: rgba(88, 224, 168, 0.14);
  color: #8df0c2;
}

  .surface-projection-overlay-backdrop,
  .surface-projection-overlay-host {
    position: fixed;
    inset: var(--app-mobile-panel-inset-top) 0 0;
  }

  .sidebar-projection-tray:not(.is-panel-expanded) {
    display: none;
  }

  .sidebar-selection-preview-wrap.is-expanded.is-compact-preview .projection-view-expand-btn {
    display: none;
  }

  .sidebar-selection-preview-wrap.is-expanded.is-compact-preview .projection-view-panel {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .sidebar-selection-preview-wrap.is-expanded.is-compact-preview .projection-view-panel-header {
    position: static;
    z-index: auto;
    min-height: var(--app-panel-header-h, var(--sidebar-head-h, 48px));
    padding: 0 var(--app-panel-header-pad-x, var(--sidebar-header-pad-x, 16px));
    background: var(--app-panel-header-bg, var(--sidebar-header-bg));
    border-bottom: 1px solid var(--app-panel-header-border-color, var(--sidebar-header-border-color, var(--accent-yellow)));
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .sidebar-selection-preview-wrap.is-expanded.is-compact-preview .projection-view-toolbar-main {
    max-width: none;
  }

  .export-layer-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .map-selection-sections {
    grid-template-columns: 1fr;
  }

  .map-selection-section-grid {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 6px 10px;
  }

  .selection-quick-actions {
    grid-template-columns: 1fr;
  }

  .selection-quick-actions .btn-primary {
    grid-column: auto;
  }

  .edit-mode-banner {
    gap: 6px;
    padding: 8px 10px;
    min-height: 46px;
  }

  .edit-mode-banner-state {
    min-width: 0;
    gap: 8px;
  }

  .edit-mode-banner-copy {
    display: flex;
    min-width: 0;
  }

  .edit-mode-banner-text {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .edit-mode-banner-modes {
    flex: 0 0 auto;
    min-width: auto;
    justify-content: center;
  }

  .edit-mode-banner .segmented-control--modes {
    width: auto;
    grid-template-columns: repeat(4, 32px);
    gap: 4px;
  }

  .edit-mode-banner-controls {
    gap: 6px;
    padding-left: 6px;
  }

  .edit-mode-banner-controls > * + * {
    padding-left: 6px;
  }

  .edit-mode-banner-history {
    gap: 4px;
  }

  .edit-mode-banner-actions {
    gap: 4px;
    justify-content: flex-end;
    margin-left: auto;
    padding-left: 6px;
  }

  .projection-view-stage {
    min-height: 140px;
    height: auto;
    max-height: 172px;
  }

  .projection-view-panel .projection-3d {
    min-height: 0;
  }
}

@container (max-width: 720px) {
  .projection-nav-btn {
    min-width: 34px;
    padding: 0 9px;
    gap: 0;
  }

  .projection-nav-btn-label {
    display: none;
  }
}

@container (max-width: 410px) {
  .btn {
    padding: 4px 8px;
  }

  .action-buttons {
    width: 100%;
    flex-direction: column;
    white-space: normal;
  }
}

/* Dashboard refresh */
.dashboard-page {
  padding: 20px 24px 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 180px),
    radial-gradient(circle at top left, rgba(242, 197, 35, 0.06), transparent 24%),
    #0f1114;
}

.dashboard-layout {
  grid-template-columns: minmax(248px, 284px) minmax(0, 1fr);
  gap: 24px;
}

.dashboard-layout--project {
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
}

.dashboard-sidebar,
.dashboard-surface {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: none;
}

.dashboard-sidebar {
  align-self: start;
  background: rgba(12, 15, 18, 0.94);
}

.dashboard-sidebar-section {
  padding: 18px;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.dashboard-sidebar-section--intro {
  padding-bottom: 20px;
}

.dashboard-sidebar-title {
  font-size: 28px;
}

.dashboard-sidebar-add-btn.btn,
.dashboard-sidebar-open-btn.btn {
  width: 100%;
  justify-content: center;
}

.dashboard-sidebar-nav {
  display: grid;
}

.dashboard-sidebar-link {
  position: relative;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 700;
}

.dashboard-sidebar-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: transparent;
  transition: background-color var(--transition-fast);
}

.dashboard-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-sidebar-link:hover::before {
  background: rgba(242, 197, 35, 0.45);
}

.dashboard-sidebar-link.is-active {
  background: rgba(255, 255, 255, 0.055);
}

.dashboard-sidebar-link.is-active::before {
  background: var(--accent-yellow);
}

.dashboard-sidebar-link--action {
  color: var(--text-light);
}

.dashboard-sidebar-link-label {
  min-width: 0;
}

.dashboard-sidebar-link-count {
  background: rgba(255, 255, 255, 0.045);
}

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

.dashboard-sidebar-metric {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-sidebar-metric-value {
  color: var(--text-light);
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
}

.dashboard-sidebar-metric-label {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-surface {
  background: rgba(14, 17, 20, 0.96);
}

.dashboard-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  align-items: end;
  gap: 20px;
  padding: 22px 24px 18px;
}

.dashboard-title {
  font-size: 34px;
  line-height: 1.02;
}

.dashboard-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.dashboard-header-note {
  display: grid;
  gap: 4px;
  min-width: min(320px, 100%);
  padding: 12px 14px;
  border-left: 2px solid rgba(242, 197, 35, 0.56);
  background: rgba(255, 255, 255, 0.03);
}

.dashboard-header-note-label {
  color: rgba(216, 222, 230, 0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-header-note-copy {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.5;
}

.dashboard-section-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 50px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.dashboard-section-link {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-section-link:hover,
.dashboard-section-link:focus-visible {
  color: var(--text-light);
  border-bottom-color: rgba(242, 197, 35, 0.64);
  outline: none;
}

.dashboard-table {
  min-width: 860px;
}

.dashboard-table thead th {
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.015);
}

.dashboard-table tbody td {
  padding: 18px 24px;
}

.dashboard-table-row {
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.dashboard-table-row.is-clickable {
  cursor: pointer;
}

.dashboard-table-row.is-clickable:hover {
  background: rgba(255, 255, 255, 0.028);
}

.dashboard-table-row.is-clickable:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.032);
  box-shadow: inset 0 0 0 1px rgba(242, 197, 35, 0.55);
}

.dashboard-table-row.is-current {
  background: linear-gradient(90deg, rgba(242, 197, 35, 0.08), rgba(242, 197, 35, 0) 38%);
}

.dashboard-project-titleline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dashboard-row-link-indicator {
  margin-left: auto;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-yellow);
  flex: 0 0 auto;
}

.dashboard-row-link-indicator svg {
  width: 16px;
  height: 16px;
  display: block;
}

.dashboard-row-link-hint {
  margin-top: 10px;
  color: rgba(216, 222, 230, 0.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dashboard-row-controls {
  gap: 8px;
}

.dashboard-workspace-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: transparent;
  color: var(--text-light);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.dashboard-workspace-link:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.dashboard-workspace-link:focus-visible {
  outline: none;
  border-color: rgba(242, 197, 35, 0.46);
  box-shadow: inset 0 0 0 1px rgba(242, 197, 35, 0.32);
}

.dashboard-workspace-link--header {
  min-height: 38px;
  padding: 0 14px;
}

.dashboard-workspace-link--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.dashboard-workspace-link-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.dashboard-workspace-link-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.dashboard-project-menu-toggle.btn {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 999px;
}

.dashboard-project-menu-popover {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26);
}

.dashboard-empty-state {
  padding: 32px 24px;
}

.dashboard-detail-section {
  gap: 0;
  padding: 0;
  background: transparent;
}

.dashboard-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 24px;
  align-items: start;
  padding: 24px;
}

.dashboard-detail-title {
  font-size: 22px;
}

.dashboard-project-access {
  display: grid;
  gap: 14px;
  align-self: start;
  justify-items: stretch;
}

.dashboard-project-visibility-form {
  display: flex;
  justify-content: flex-start;
}

.dashboard-editor-selection {
  min-width: 0;
  padding-top: 14px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
}

.dashboard-editor-selection:first-child {
  padding-top: 0;
  border-top: 0;
}

.dashboard-detail-stats {
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-stat-card,
.dashboard-editor-card,
.dashboard-roadmap-card,
.dashboard-placeholder-card {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dashboard-stat-card {
  padding: 18px 24px;
}

.dashboard-stat-card:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-stat-value {
  font-size: 28px;
  line-height: 1;
}

.dashboard-editor-card,
.dashboard-roadmap-card,
.dashboard-placeholder-card {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-editor-card-head {
  padding: 22px 24px 14px;
  border-bottom: 0;
}

.dashboard-editor-table thead th {
  padding: 14px 24px;
}

.dashboard-editor-table tbody td {
  padding: 15px 24px;
}

.dashboard-editor-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.018);
}

.dashboard-roadmap-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 24px 24px;
}

.dashboard-roadmap-item {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-roadmap-item-title {
  color: var(--text-light);
  font-size: 15px;
  font-weight: 700;
}

.dashboard-roadmap-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-public-access-card {
  grid-column: 1 / -1;
}

.dashboard-placeholder-card {
  padding: 24px;
}

.dashboard-member-role-select {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

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

  .dashboard-header {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .dashboard-header-actions {
    justify-content: flex-start;
  }

  .dashboard-detail-head {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

@media (max-width: 900px) {
  .dashboard-page {
    padding: 16px 16px 20px;
  }

  .dashboard-sidebar-section {
    padding: 16px;
  }

  .dashboard-header {
    padding: 18px 18px 16px;
  }

  .dashboard-title {
    font-size: 28px;
  }

  .dashboard-section-nav {
    padding: 0 18px;
  }

  .dashboard-table thead th,
  .dashboard-table tbody td,
  .dashboard-editor-table thead th,
  .dashboard-editor-table tbody td,
  .dashboard-stat-card,
  .dashboard-detail-head,
  .dashboard-editor-card-head,
  .dashboard-placeholder-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .dashboard-roadmap-list {
    padding: 0 18px 18px;
  }
}

@media (max-width: 600px) {
  .dashboard-header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-header-note {
    min-width: 0;
  }

  .dashboard-workspace-link--header {
    width: 100%;
    justify-content: center;
  }

  .dashboard-table {
    min-width: 760px;
  }

  .dashboard-row-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .dashboard-detail-stats,
  .dashboard-roadmap-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-project-access {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-editor-table {
    min-width: 760px;
  }

  .dashboard-member-role-select {
    width: 100%;
  }
}

/* Dashboard refinement */
.dashboard-page {
  padding: 18px 22px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 120px),
    radial-gradient(circle at top left, rgba(242, 197, 35, 0.05), transparent 24%),
    linear-gradient(180deg, #0d1217, #0b1014);
}

.dashboard-layout {
  gap: 16px;
  align-items: stretch;
}

.dashboard-layout--project {
  grid-template-columns: minmax(264px, 304px) minmax(0, 1fr);
}

.dashboard-sidebar,
.dashboard-surface {
  min-height: 0;
  border-color: rgba(255, 255, 255, 0.07);
  border-radius: 0;
}

.dashboard-sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 132px),
    rgba(11, 15, 18, 0.98);
  border-top: 2px solid rgba(241, 196, 58, 0.78);
}

.dashboard-surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 160px),
    rgba(13, 17, 21, 0.98);
}

.dashboard-sidebar-section {
  gap: 8px;
  padding: 18px 18px 16px;
}

.dashboard-sidebar-section--intro {
  gap: 10px;
  padding-bottom: 18px;
}

.dashboard-sidebar-title {
  font-size: 26px;
  letter-spacing: -0.02em;
}

.dashboard-sidebar-copy {
  max-width: 30ch;
  color: rgba(216, 222, 230, 0.68);
}

.dashboard-sidebar-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-sidebar-link {
  min-height: 48px;
  padding: 0 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dashboard-sidebar-link::before {
  top: 0;
  bottom: 0;
}

.dashboard-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-sidebar-link.is-active {
  background: rgba(255, 255, 255, 0.05);
}

.dashboard-sidebar-link-count {
  min-width: 30px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 10px;
}

.dashboard-sidebar-link-count--icon {
  width: 20px;
  min-width: 20px;
  min-height: 20px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-yellow);
}

.dashboard-sidebar-link-count--icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.dashboard-sidebar-section-title {
  color: rgba(216, 222, 230, 0.56);
}

.dashboard-sidebar-focus-meta {
  letter-spacing: 0.02em;
}

.dashboard-sidebar-metrics {
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-sidebar-metric {
  padding-top: 12px;
}

.dashboard-surface--launcher,
.dashboard-surface--project {
  position: relative;
}

.dashboard-surface--launcher .dashboard-header--simple {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-header {
  grid-template-columns: minmax(0, 1fr) minmax(248px, 320px);
  align-items: start;
  gap: 20px;
  padding: 24px 28px 20px;
  border-bottom-color: rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent 88%);
}

.dashboard-header-copy {
  gap: 6px;
}

.dashboard-title {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.025em;
}

.dashboard-lead {
  max-width: 64ch;
  color: rgba(216, 222, 230, 0.72);
}

.dashboard-header-actions {
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard-header-note {
  min-width: min(300px, 100%);
  padding: 0 0 0 14px;
  border-left: 2px solid rgba(242, 197, 35, 0.52);
  background: transparent;
}

.dashboard-header-note-copy {
  color: rgba(216, 222, 230, 0.76);
}

.dashboard-section-nav {
  gap: 0;
  min-height: 46px;
  padding: 0 28px;
  border-bottom-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.012);
}

.dashboard-section-link {
  min-height: 46px;
  padding: 0 18px;
  margin-left: -18px;
  border-bottom-width: 2px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.dashboard-section-link:first-child {
  margin-left: 0;
  padding-left: 0;
}

.dashboard-section-link + .dashboard-section-link {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-table-wrap,
.dashboard-editor-table-wrap {
  position: relative;
}

.dashboard-table thead th,
.dashboard-editor-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 28px;
  background: rgba(14, 19, 23, 0.98);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard-table tbody td {
  padding: 19px 28px;
  border-top-color: rgba(255, 255, 255, 0.07);
}

.dashboard-table-row {
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.dashboard-table-row.is-clickable {
  cursor: pointer;
}

.dashboard-table-row.is-clickable td:first-child {
  box-shadow: inset 2px 0 0 transparent;
}

.dashboard-table-row.is-clickable:hover {
  background: rgba(255, 255, 255, 0.026);
}

.dashboard-table-row.is-clickable:hover td:first-child,
.dashboard-table-row.is-current td:first-child {
  box-shadow: inset 2px 0 0 rgba(242, 197, 35, 0.7);
}

.dashboard-table-row.is-clickable:focus-visible {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(242, 197, 35, 0.5);
}

.dashboard-project-name {
  font-size: 16px;
}

.dashboard-row-link-indicator {
  width: 20px;
  height: 20px;
  opacity: 0.92;
  transform: translateX(0);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.dashboard-table-row.is-clickable:hover .dashboard-row-link-indicator,
.dashboard-table-row.is-clickable:focus-visible .dashboard-row-link-indicator {
  transform: translateX(3px);
}

.dashboard-row-controls {
  gap: 6px;
}

.dashboard-workspace-link {
  min-height: 36px;
  padding: 0 12px;
  border-color: rgba(241, 196, 58, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.dashboard-table-actions .dashboard-workspace-link {
  background: rgba(241, 196, 58, 0.08);
  border-color: rgba(241, 196, 58, 0.24);
}

.dashboard-workspace-link:hover {
  border-color: rgba(241, 196, 58, 0.4);
  background: rgba(241, 196, 58, 0.12);
}

.dashboard-workspace-link--header {
  min-height: 36px;
  padding: 0 14px;
}

.dashboard-workspace-link--disabled {
  border-color: rgba(255, 255, 255, 0.08);
  background: transparent;
}

.dashboard-project-menu-toggle.btn {
  border-radius: 8px;
  color: rgba(216, 222, 230, 0.58);
}

.dashboard-project-menu-toggle.btn:hover,
.dashboard-project-menu.is-open .dashboard-project-menu-toggle.btn {
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-project-menu-popover {
  border-radius: 8px;
  background: rgba(13, 17, 20, 0.99);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
}

.dashboard-project-menu-item {
  border-radius: 6px;
}

.dashboard-detail-head {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 336px);
  gap: 28px;
  padding: 24px 28px;
}

.dashboard-project-access {
  gap: 16px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-project-visibility-form {
  justify-content: flex-start;
}

.dashboard-editor-selection {
  padding-top: 14px;
}

.dashboard-detail-stats {
  border-top-color: rgba(255, 255, 255, 0.07);
  border-bottom-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.012);
}

.dashboard-stat-card {
  padding: 18px 28px;
}

.dashboard-editor-card,
.dashboard-roadmap-card,
.dashboard-placeholder-card {
  border-top-color: rgba(255, 255, 255, 0.07);
}

.dashboard-editor-card-head {
  padding: 22px 28px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 88%);
}

.dashboard-editor-title {
  font-size: 17px;
}

.dashboard-editor-table tbody td {
  padding: 15px 28px;
  border-top-color: rgba(255, 255, 255, 0.07);
}

.dashboard-editor-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.022);
}

.dashboard-cell-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dashboard-role-badge,
.dashboard-verification-badge {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.dashboard-verification-badge.is-verified {
  background: rgba(88, 224, 168, 0.14);
}

.dashboard-role-badge.is-active {
  background: rgba(88, 224, 168, 0.14);
}

.dashboard-invite-panel {
  display: grid;
  gap: 16px;
  padding: 20px 28px 22px;
}

.dashboard-invite-alert {
  padding: 10px 12px;
  border: 1px solid rgba(88, 224, 168, 0.22);
  border-radius: 8px;
  background: rgba(88, 224, 168, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.dashboard-invite-alert--error {
  border-color: rgba(255, 107, 107, 0.36);
  background: rgba(255, 107, 107, 0.12);
  color: #ffd5d5;
}

.dashboard-generated-invite {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(241, 196, 58, 0.34);
  border-radius: 10px;
  background: rgba(241, 196, 58, 0.11);
}

.dashboard-generated-invite-title {
  font-weight: 700;
}

.dashboard-generated-invite p {
  margin: 4px 0 0;
  color: color-mix(in srgb, var(--muted) 88%, white 12%);
  font-size: 13px;
}

.dashboard-generated-invite-row,
.dashboard-invite-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.dashboard-invite-link-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.dashboard-invite-link-input,
.dashboard-invite-number {
  min-height: 36px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-light);
}

.dashboard-invite-link-input {
  padding: 8px 10px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace);
  font-size: 12px;
}

.dashboard-invite-copy.btn {
  min-height: 36px;
  white-space: nowrap;
}

.dashboard-invite-copy--table.btn {
  min-height: 30px;
  padding: 6px 10px;
}

.dashboard-invite-hint,
.dashboard-invite-link-note {
  color: rgba(216, 222, 230, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-invite-hint {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-invite-form {
  grid-template-columns: minmax(120px, 160px) minmax(120px, 160px) minmax(100px, 120px) auto;
}

.dashboard-invite-field {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.dashboard-invite-number {
  padding: 6px 9px;
}

.dashboard-invite-actions-cell {
  text-align: right;
}

.dashboard-invite-revoke.btn {
  min-height: 32px;
  padding-inline: 10px;
}

.dashboard-citizen-table .dashboard-member-role-select {
  min-width: 142px;
}

.dashboard-citizen-message {
  max-width: 36ch;
  color: rgba(216, 222, 230, 0.78);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-placeholder-card--embedded {
  margin-top: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.dashboard-members-card {
  margin-top: 0;
}

.dashboard-member-role-select {
  min-height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

select.dashboard-member-role-select,
select.dashboard-member-role-select option,
select.dashboard-member-role-select optgroup {
  color-scheme: dark;
}

select.dashboard-member-role-select option,
select.dashboard-member-role-select optgroup {
  background-color: #101418;
  color: #f6f8fb;
}

.dashboard-roadmap-list {
  gap: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.dashboard-roadmap-item {
  padding: 20px 28px 24px;
  border-top: 0;
}

.dashboard-roadmap-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.dashboard-placeholder-card {
  padding: 24px 28px;
}

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

  .dashboard-header,
  .dashboard-detail-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-project-access {
    padding-left: 0;
    padding-top: 16px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

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

@media (max-width: 900px) {
  .dashboard-page {
    padding: 16px 16px 22px;
  }

  .dashboard-sidebar-section,
  .dashboard-header,
  .dashboard-detail-head,
  .dashboard-editor-card-head,
  .dashboard-placeholder-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .dashboard-section-nav {
    padding: 0 18px;
  }

  .dashboard-table thead th,
  .dashboard-table tbody td,
  .dashboard-editor-table thead th,
  .dashboard-editor-table tbody td,
  .dashboard-invite-panel,
  .dashboard-stat-card,
  .dashboard-roadmap-item {
    padding-left: 18px;
    padding-right: 18px;
  }

  .dashboard-title {
    font-size: 28px;
  }

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

  .dashboard-roadmap-item:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 600px) {
  .dashboard-header-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-header-note,
  .dashboard-workspace-link--header {
    min-width: 0;
    width: 100%;
  }

  .dashboard-section-nav {
    padding: 0 16px;
  }

  .dashboard-section-link {
    padding-right: 14px;
  }

  .dashboard-section-link + .dashboard-section-link {
    padding-left: 14px;
  }

  .dashboard-generated-invite-row,
  .dashboard-invite-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-invite-submit.btn {
    width: 100%;
  }

  .dashboard-table,
  .dashboard-editor-table {
    min-width: 740px;
  }

  .dashboard-row-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .dashboard-detail-stats,
  .dashboard-roadmap-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-roadmap-item,
  .dashboard-roadmap-item:not(:last-child) {
    border-right: 0;
  }

  .dashboard-roadmap-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .dashboard-project-access {
    padding-top: 14px;
  }
}

/* Project dashboard simplification */
.dashboard-surface--project .dashboard-kicker,
.dashboard-surface--project .dashboard-header-note,
.dashboard-surface--project .dashboard-detail-stats {
  display: none;
}

.dashboard-surface--project .dashboard-header {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 18px;
}

.dashboard-surface--project .dashboard-title {
  font-size: 30px;
}

.dashboard-surface--project .dashboard-lead {
  max-width: 42ch;
  font-size: 13px;
  color: rgba(216, 222, 230, 0.66);
}

.dashboard-surface--project .dashboard-section-nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.dashboard-surface--project .dashboard-section-nav::-webkit-scrollbar {
  display: none;
}

.dashboard-surface--project .dashboard-section-link {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  margin-left: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.dashboard-surface--project .dashboard-section-link:first-child {
  padding-left: 0;
}

.dashboard-surface--project .dashboard-section-link + .dashboard-section-link {
  padding-left: 14px;
}

.dashboard-surface--project .dashboard-detail-head {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding-top: 20px;
  padding-bottom: 18px;
}

.dashboard-surface--project .dashboard-detail-copy {
  gap: 0;
}

.dashboard-surface--project .dashboard-detail-lead {
  max-width: 58ch;
  color: rgba(216, 222, 230, 0.74);
}

.dashboard-surface--project .dashboard-project-access {
  gap: 10px;
  padding-left: 0;
  border-left: 0;
  align-content: start;
  justify-items: end;
}

.dashboard-compact-note {
  color: rgba(216, 222, 230, 0.72);
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
}

.dashboard-inline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: rgba(216, 222, 230, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-inline-stat {
  white-space: nowrap;
}

.dashboard-inline-stat strong {
  color: var(--text-light);
  font-weight: 700;
}

.dashboard-review-card {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
}

.dashboard-review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.dashboard-review-stat {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 20px 24px;
}

.dashboard-review-stat:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.dashboard-review-stat-value {
  color: var(--text-light);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.dashboard-review-stat-label {
  color: rgba(245, 247, 250, 0.9);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dashboard-review-stat-meta {
  color: rgba(216, 222, 230, 0.66);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-review-guidance {
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(216, 222, 230, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-review-guidance strong,
.dashboard-review-guidance span {
  color: var(--text-light);
}

.dashboard-identity-card {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.dashboard-identity-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 260px;
}

.dashboard-identity-input {
  min-height: 34px;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: var(--text-light);
  font: inherit;
  font-size: 12px;
}

.dashboard-identity-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(243, 198, 35, 0.36);
}

.dashboard-identity-save {
  min-height: 34px;
  padding: 7px 11px;
}

.dashboard-surface--project .dashboard-editor-card-head {
  align-items: center;
  padding-top: 18px;
  padding-bottom: 14px;
  background: transparent;
}

.dashboard-surface--project .dashboard-editor-title {
  font-size: 16px;
}

.dashboard-surface--project .dashboard-editor-copy {
  font-size: 12px;
}

.dashboard-surface--project .dashboard-roadmap-card .dashboard-editor-card-head {
  padding-bottom: 10px;
}

@media (max-width: 1180px) {
  .dashboard-surface--project .dashboard-detail-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-surface--project .dashboard-project-access {
    justify-items: start;
  }
}

@media (max-width: 900px) {
  .dashboard-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-review-stat:nth-child(2n) {
    border-right: 0;
  }

  .dashboard-review-stat:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
}

@media (max-width: 600px) {
  .dashboard-surface--project .dashboard-title {
    font-size: 26px;
  }

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

  .dashboard-review-stat,
  .dashboard-review-stat:nth-child(2n) {
    border-right: 0;
  }

  .dashboard-review-stat:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .dashboard-review-guidance {
    padding-left: 18px;
    padding-right: 18px;
  }

  .dashboard-surface--project .dashboard-section-nav {
    padding: 0 14px;
  }

  .dashboard-surface--project .dashboard-section-link:first-child {
    padding-left: 0;
  }

  .dashboard-compact-note,
  .dashboard-inline-stat {
    white-space: normal;
  }
}

/* Project dashboard layout */
.dashboard-view--project .dashboard-page {
  padding: 16px 20px 24px;
}

.dashboard-view--project .dashboard-layout--project {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  width: min(100%, 1240px);
  margin: 0 auto;
}

.dashboard-view--project .dashboard-main {
  min-width: 0;
}

.dashboard-view--project .dashboard-surface--project {
  border-radius: 0;
  overflow: hidden;
}

.dashboard-view--project .dashboard-project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 22px 18px;
}

.dashboard-project-breadcrumb {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: rgba(216, 222, 230, 0.52);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.dashboard-project-breadcrumb a {
  color: rgba(241, 196, 58, 0.84);
  text-decoration: none;
}

.dashboard-project-breadcrumb a:hover {
  color: #ffe07a;
}

.dashboard-project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dashboard-view--project .dashboard-title {
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.dashboard-view--project .dashboard-lead {
  max-width: 68ch;
  white-space: normal;
}

.dashboard-project-header-actions {
  justify-content: flex-end;
}

.dashboard-workspace-link--primary {
  border-color: rgba(241, 196, 58, 0.32);
  background: rgba(241, 196, 58, 0.1);
  color: #ffe07a;
}

.dashboard-visibility-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dashboard-visibility-label {
  color: rgba(216, 222, 230, 0.54);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.dashboard-visibility-state {
  color: rgba(245, 247, 250, 0.86);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-visibility-segment {
  flex: 0 0 auto;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  min-height: 32px;
  min-width: 168px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(216, 222, 230, 0.68);
  font: inherit;
  cursor: pointer;
}

.dashboard-visibility-segment:hover,
.dashboard-visibility-segment:focus-visible {
  border-color: rgba(241, 196, 58, 0.28);
  outline: none;
}

.dashboard-visibility-option {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.dashboard-visibility-option.is-active {
  background: rgba(241, 196, 58, 0.13);
  color: #ffe07a;
}

.dashboard-overview-shell {
  display: grid;
  gap: 14px;
  padding: 16px 18px 20px;
  background: rgba(8, 12, 15, 0.16);
}

.dashboard-overview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.014);
}

.dashboard-overview-metric {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
}

.dashboard-overview-metric:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.dashboard-overview-metric-value {
  color: var(--text-light);
  font-size: 20px;
  font-weight: 780;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.dashboard-overview-metric-label {
  max-width: 24ch;
  color: rgba(216, 222, 230, 0.64);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.dashboard-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-overview-control {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.014);
  scroll-margin-top: 16px;
}

.dashboard-overview-control--publication {
  grid-column: 1 / -1;
}

.dashboard-overview-control-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.dashboard-overview-control-label {
  color: rgba(216, 222, 230, 0.52);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}

.dashboard-overview-control-title {
  margin: 0;
  color: var(--text-light);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
}

.dashboard-overview-control p {
  max-width: 70ch;
  margin: 0;
  color: rgba(216, 222, 230, 0.64);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-project-visibility-form--overview {
  min-width: 188px;
}

.dashboard-overview-action {
  min-width: 0;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.014);
}

.dashboard-overview-action-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.dashboard-overview-action .btn {
  justify-self: start;
}

.dashboard-view--project .dashboard-invite-form--compact {
  grid-template-columns: minmax(86px, 0.85fr) minmax(96px, 1fr) minmax(78px, 0.7fr) auto;
  gap: 8px;
  align-items: end;
}

.dashboard-view--project .dashboard-invite-form--compact .dashboard-member-role-select,
.dashboard-view--project .dashboard-invite-form--compact .dashboard-invite-number {
  min-height: 34px;
}

.dashboard-view--project .dashboard-generated-invite {
  padding: 12px;
  border-radius: 8px;
}

.dashboard-view--project .dashboard-generated-invite-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.dashboard-view--project .dashboard-invite-panel {
  padding: 14px 18px 16px;
}

.dashboard-tab-list {
  background: rgba(8, 12, 15, 0.48);
}

.dashboard-tab-list .dashboard-section-link {
  appearance: none;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.dashboard-tab-list .dashboard-section-link.is-active {
  color: var(--text-light);
  border-bottom-color: rgba(241, 196, 58, 0.86);
}

.dashboard-view--project .dashboard-detail-section {
  padding: 0;
  border-top: 0;
  background: transparent;
}

.dashboard-tab-panel {
  display: grid;
  gap: 0;
  padding: 0;
}

.dashboard-tab-panel[hidden] {
  display: none;
}

.dashboard-tab-panel--sectioned {
  gap: 16px;
  padding: 16px 0 20px;
  background: rgba(8, 12, 15, 0.24);
}

.dashboard-view--project .dashboard-tab-panel--sectioned > .dashboard-editor-card,
.dashboard-view--project .dashboard-tab-panel--sectioned > .dashboard-placeholder-card {
  scroll-margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.085);
  border-bottom: 1px solid rgba(255, 255, 255, 0.085);
  background: rgba(255, 255, 255, 0.016);
}

.dashboard-team-invite-link {
  flex: 0 0 auto;
}

.dashboard-view--project .dashboard-editor-card,
.dashboard-view--project .dashboard-placeholder-card {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dashboard-view--project .dashboard-editor-card + .dashboard-editor-card,
.dashboard-view--project .dashboard-editor-card + .dashboard-placeholder-card,
.dashboard-view--project .dashboard-placeholder-card + .dashboard-editor-card {
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.dashboard-view--project .dashboard-editor-card-head {
  padding: 14px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
}

.dashboard-view--project .dashboard-placeholder-card {
  padding: 18px;
}

@media (max-width: 900px) {
  .dashboard-view--project .dashboard-page {
    padding: 14px;
  }

  .dashboard-view--project .dashboard-layout--project,
  .dashboard-view--project .dashboard-project-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-project-header-actions {
    justify-content: flex-start;
  }

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

  .dashboard-view--project .dashboard-invite-form--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-view--project .dashboard-invite-form--compact .dashboard-invite-submit {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .dashboard-overview-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-overview-metric {
    padding: 15px 16px;
  }

  .dashboard-overview-metric:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .dashboard-overview-metric-label {
    max-width: none;
  }

  .dashboard-overview-control {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-project-visibility-form--overview,
  .dashboard-project-visibility-form--overview .dashboard-visibility-segment {
    width: 100%;
  }

  .dashboard-project-header-actions .dashboard-workspace-link {
    width: 100%;
    justify-content: center;
  }

  .dashboard-team-invite-link {
    justify-content: center;
    width: 100%;
  }

  .dashboard-visibility-segment {
    width: 100%;
  }

  .dashboard-view--project .dashboard-invite-form--compact,
  .dashboard-view--project .dashboard-generated-invite-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Projects launcher refinement */
.dashboard-view--launcher .dashboard-kicker {
  color: rgba(216, 222, 230, 0.52);
}

.dashboard-view--launcher .dashboard-header {
  background: transparent;
}

.dashboard-view--launcher .dashboard-title {
  letter-spacing: -0.02em;
}

.dashboard-view--launcher .dashboard-lead {
  color: rgba(216, 222, 230, 0.66);
}

.dashboard-view--launcher .dashboard-sidebar-link.is-active::before {
  background: rgba(255, 255, 255, 0.4);
}

.dashboard-view--launcher .dashboard-sidebar-link.is-active {
  background: rgba(255, 255, 255, 0.045);
}

.dashboard-view--launcher .dashboard-table-row {
  transition:
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.dashboard-view--launcher .dashboard-table-row.is-current {
  background: transparent;
}

.dashboard-view--launcher .dashboard-table-row.is-clickable td:first-child,
.dashboard-view--launcher .dashboard-table-row.is-clickable:hover td:first-child,
.dashboard-view--launcher .dashboard-table-row.is-current td:first-child {
  box-shadow: none;
}

.dashboard-view--launcher .dashboard-table-row.is-clickable:hover {
  background: rgba(255, 255, 255, 0.038);
}

.dashboard-view--launcher .dashboard-table-row.is-clickable:focus-visible {
  background: rgba(255, 255, 255, 0.044);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.dashboard-view--launcher .dashboard-project-name {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.dashboard-view--launcher .dashboard-row-link-indicator {
  color: rgba(216, 222, 230, 0.42);
  opacity: 1;
}

.dashboard-view--launcher .dashboard-table-row.is-clickable:hover .dashboard-row-link-indicator,
.dashboard-view--launcher .dashboard-table-row.is-clickable:focus-visible .dashboard-row-link-indicator {
  color: rgba(255, 255, 255, 0.88);
  transform: translateX(2px);
}

.dashboard-view--launcher .dashboard-status {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(216, 222, 230, 0.74);
}

.dashboard-view--launcher .dashboard-status.is-active {
  border-color: rgba(111, 192, 164, 0.24);
  background: rgba(111, 192, 164, 0.08);
  color: #9edcc5;
}

.dashboard-view--launcher .dashboard-workspace-link,
.dashboard-view--launcher .dashboard-table-actions .dashboard-workspace-link {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(216, 222, 230, 0.9);
}

.dashboard-view--launcher .dashboard-workspace-link:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-light);
}

.dashboard-view--launcher .dashboard-workspace-link--disabled {
  color: rgba(216, 222, 230, 0.4);
}

.dashboard-view--launcher .dashboard-project-menu-toggle.btn {
  color: rgba(216, 222, 230, 0.46);
}

.dashboard-view--launcher .dashboard-project-menu-toggle.btn:hover,
.dashboard-view--launcher .dashboard-project-menu.is-open .dashboard-project-menu-toggle.btn {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.045);
}

/* Public project portal */
.portal-shell {
  height: auto;
  min-height: calc(100vh - var(--header-h));
}

@supports (height: 100dvh) {
  .portal-shell {
    min-height: calc(100dvh - var(--header-h));
  }
}

.content.is-portal-view {
  display: block;
  min-height: calc(100vh - var(--header-h));
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 240px),
    #0b0f13;
  letter-spacing: 0;
}

@supports (height: 100dvh) {
  .content.is-portal-view {
    min-height: calc(100dvh - var(--header-h));
  }
}

.portal-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 42px;
}

.portal-hero h1,
.portal-guidance-item h2,
.portal-section-head h2,
.portal-project-copy h3,
.portal-empty-state h3 {
  margin: 0;
  color: #f8fafc;
  letter-spacing: 0;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(260px, 410px) minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  min-height: min(620px, calc(100vh - var(--header-h) - 38px));
  padding: 22px 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-map-panel {
  width: min(100%, 390px);
  justify-self: start;
}

.portal-hero-copy {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.portal-kicker {
  color: rgba(241, 196, 58, 0.9);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portal-hero h1 {
  max-width: 18ch;
  font-size: 44px;
  line-height: 1.02;
}

.portal-hero-lead {
  margin: 0;
  max-width: 66ch;
  color: rgba(216, 222, 230, 0.78);
  font-size: 16px;
  line-height: 1.55;
}

.portal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.portal-hero-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(248, 250, 252, 0.88);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.portal-hero-link:hover,
.portal-hero-link:focus-visible {
  border-color: rgba(241, 196, 58, 0.34);
  color: #ffe07a;
}

.portal-hero-link--primary {
  border-color: rgba(241, 196, 58, 0.46);
  background: rgba(241, 196, 58, 0.14);
  color: #ffe07a;
}

.portal-guidance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
}

.portal-guidance-item {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-guidance-item h2 {
  font-size: 15px;
  line-height: 1.2;
}

.portal-guidance-item p,
.portal-disclaimer,
.portal-section-head p {
  margin: 0;
  color: rgba(216, 222, 230, 0.62);
  font-size: 13px;
  line-height: 1.5;
}

.portal-disclaimer {
  max-width: 72ch;
  color: rgba(216, 222, 230, 0.56);
}

.portal-overview-map {
  width: 100%;
  aspect-ratio: 5 / 6;
  display: block;
}

.portal-overview-country {
  fill: rgba(48, 65, 75, 0.74);
  stroke: rgba(216, 222, 230, 0.42);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.portal-overview-marker-link {
  cursor: pointer;
  outline: none;
}

.portal-overview-marker-halo {
  fill: rgba(241, 196, 58, 0.2);
  stroke: rgba(241, 196, 58, 0.64);
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
  transition:
    fill var(--transition-fast),
    stroke var(--transition-fast);
}

.portal-overview-marker {
  fill: #f1c43a;
  stroke: #11161b;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition:
    fill var(--transition-fast),
    transform var(--transition-fast);
  transform-box: fill-box;
  transform-origin: center;
}

.portal-overview-marker-label {
  fill: #11161b;
  font-size: 3.7px;
  font-weight: 900;
  letter-spacing: 0;
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: central;
  user-select: none;
}

.portal-overview-marker-link:hover .portal-overview-marker-halo,
.portal-overview-marker-link:focus-visible .portal-overview-marker-halo {
  fill: rgba(241, 196, 58, 0.28);
  stroke: rgba(255, 224, 122, 0.9);
}

.portal-overview-marker-link:hover .portal-overview-marker,
.portal-overview-marker-link:focus-visible .portal-overview-marker {
  fill: #ffe07a;
  transform: scale(1.12);
}

.portal-project-section {
  display: grid;
  gap: 14px;
  padding-top: 22px;
}

.portal-section-head {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 12px;
}

.portal-section-head h2 {
  font-size: 21px;
  line-height: 1.15;
}

.portal-project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 1040px;
  gap: 14px;
}

.portal-project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  overflow: hidden;
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.01)),
    rgba(12, 16, 20, 0.96);
  scroll-margin-top: calc(var(--header-h) + 18px);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.portal-project-card:target {
  border-color: rgba(241, 196, 58, 0.56);
  box-shadow: 0 0 0 1px rgba(241, 196, 58, 0.18), 0 18px 46px rgba(0, 0, 0, 0.28);
}

.portal-project-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
}

.portal-project-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.portal-project-meta {
  color: rgba(216, 222, 230, 0.54);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.portal-project-copy h3 {
  min-width: 0;
  overflow-wrap: break-word;
  font-size: 23px;
  line-height: 1.12;
}

.portal-project-copy p {
  min-width: 0;
  overflow-wrap: break-word;
  margin: 0;
  color: rgba(216, 222, 230, 0.72);
  font-size: 14px;
  line-height: 1.5;
}

.portal-project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-project-facts div {
  display: grid;
  gap: 5px;
  padding: 12px 12px 12px 0;
}

.portal-project-facts div + div {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-project-facts dt {
  color: rgba(216, 222, 230, 0.48);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portal-project-facts dd {
  margin: 0;
  min-width: 0;
  color: rgba(248, 250, 252, 0.9);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.portal-project-visual {
  display: grid;
  align-content: center;
  justify-items: stretch;
  min-height: 242px;
  padding: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.018);
}

.portal-footprint-map {
  position: relative;
  width: 100%;
  max-width: none;
  aspect-ratio: 40 / 29;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(16, 24, 29, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.18),
    0 14px 34px rgba(0, 0, 0, 0.18);
}

.portal-footprint-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 48%, transparent 0 58%, rgba(7, 11, 15, 0.08) 100%);
}

.portal-footprint-basemap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 1;
  filter: invert(1) hue-rotate(180deg) saturate(0.55) brightness(1.35) contrast(1.5);
}

.portal-footprint-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.portal-footprint-mask {
  fill: rgba(3, 7, 10, 0.3);
}

.portal-footprint-shape {
  fill: rgba(241, 196, 58, 0.18);
  fill-rule: evenodd;
}

.portal-footprint-outline {
  fill: none;
  stroke: rgba(255, 234, 154, 1);
  stroke-width: 2.2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.72));
}

.portal-footprint-outline--halo {
  stroke: rgba(0, 0, 0, 0.82);
  stroke-width: 4.4;
  filter: none;
}

.portal-footprint-points {
  color: var(--accent-yellow);
}

.portal-footprint-dot {
  fill: currentColor;
  opacity: 0.78;
}

.portal-project-link {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(241, 196, 58, 0.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.portal-project-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(241, 196, 58, 0.28);
}

.portal-project-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: block;
  transition: transform var(--transition-fast);
}

.portal-project-link:hover {
  color: #ffe07a;
}

.portal-project-link:hover svg {
  transform: translateX(2px);
}

.portal-empty-state {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(12, 16, 20, 0.96);
}

.portal-empty-state h3 {
  font-size: 20px;
}

.portal-empty-state p {
  margin: 0;
  color: rgba(216, 222, 230, 0.72);
}

@media (max-width: 900px) {
  .portal-page {
    width: min(100% - 28px, 760px);
    padding-top: 20px;
  }

  .portal-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    min-height: 0;
  }

  .portal-map-panel {
    width: min(100%, 300px);
    justify-self: center;
    order: 2;
  }

  .portal-hero-copy {
    order: 1;
  }

  .portal-project-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-project-visual {
    min-height: 220px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .portal-footprint-map {
    width: min(100%, 286px);
  }
}

@media (max-width: 640px) {
  .portal-page {
    width: calc(100% - 20px);
    padding-bottom: 28px;
  }

  .portal-project-main,
  .portal-empty-state {
    padding: 18px;
  }

  .portal-hero {
    padding-top: 12px;
  }

  .portal-hero h1 {
    max-width: none;
    font-size: 32px;
  }

  .portal-hero-lead {
    font-size: 14px;
  }

  .portal-guidance-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-section-head {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .portal-map-panel {
    width: min(100%, 240px);
  }

  .portal-project-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-project-facts div {
    padding: 11px 0;
  }

  .portal-project-facts div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .portal-project-link {
    width: fit-content;
  }
}
