* { box-sizing: border-box; }

:root {
  --nav-transition-duration: 0.28s;
  --nav-transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-padding-x: 12px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --nav-transition-duration: 0.01ms;
  }

  .research-label {
    transition: none;
  }

  .research {
    transition:
      background 0.01ms,
      opacity 0.01ms,
      box-shadow 0.01ms,
      transform 0.01ms;
  }

  .research:hover:not(.is-dragging):not(.active) {
    transform: none;
  }

  .research:hover:not(.is-dragging):not(.active) .research-label {
    opacity: 1;
  }
}

body {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  background: #f6f6f6;
  color: #404040;
}

.app {
  width: 100%;
  min-height: 100vh;
  background: #f6f6f6;
  display: grid;
  grid-template-columns: 217px 1fr;
  gap: 0;
  transition: grid-template-columns var(--nav-transition-duration) var(--nav-transition-ease);
}

.app.is-sidebar-collapsed,
.app.is-screen-open {
  grid-template-columns: 0 minmax(0, 1fr);
}

/* Fullscreen overlay covers the shell — skip layout-column animation. */
.app.is-screen-open {
  transition: none;
}

.sidebar {
  border-right: 2px solid #ffffff;
  padding: 16px var(--sidebar-padding-x) 12px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  transition:
    opacity var(--nav-transition-duration) var(--nav-transition-ease),
    transform var(--nav-transition-duration) var(--nav-transition-ease),
    padding var(--nav-transition-duration) var(--nav-transition-ease);
}

.app.is-screen-open .sidebar,
.app.is-sidebar-collapsed .sidebar {
  opacity: 0;
  transform: translateX(-100%);
  pointer-events: none;
  padding: 0;
  border: 0;
  min-height: 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
}

.app.is-screen-open .sidebar {
  transition:
    opacity var(--nav-transition-duration) var(--nav-transition-ease),
    transform var(--nav-transition-duration) var(--nav-transition-ease);
}

.sidebar-rail {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 48px;
  height: 100vh;
  background: #f6f6f6;
  border-right: 2px solid #ffffff;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 12px;
  z-index: 10;
  transition:
    opacity var(--nav-transition-duration) var(--nav-transition-ease),
    transform var(--nav-transition-duration) var(--nav-transition-ease);
}

body.is-sidebar-collapsed .sidebar-rail {
  display: flex;
}

body.is-item-open.is-screen-open .sidebar-rail {
  opacity: 0;
  transform: translateX(-100%);
  pointer-events: none;
}

.rail-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #404040;
}

.rail-toggle {
  border: 0;
  background: transparent;
  color: #6d7582;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  line-height: 1;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rail-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.profile {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  margin-bottom: 20px;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #404040;
  flex-shrink: 0;
}

.sidebar-toggle .ti,
.rail-toggle .ti {
  font-size: 16px;
}

.sidebar-toggle {
  margin-left: auto;
  font-size: 13px;
  color: #6d7582;
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

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

.sidebar-links {
  width: 100%;
  display: grid;
  gap: 8px;
}

.link {
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  font-size: 13px;
  color: #404040;
}

.link .ti {
  font-size: 14px;
  flex-shrink: 0;
}

.home-nav,
.inbox-nav {
  position: relative;
  width: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  border-radius: 4px;
  transition: background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.home-nav .ti,
.inbox-nav .ti {
  width: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: inherit;
}

.home-nav.active,
.inbox-nav.active {
  background: #e8f4fc;
  color: #0f70b7;
}

.sidebar-links button.link.home-nav:hover,
.sidebar-links button.link.inbox-nav:hover {
  background: rgba(0, 0, 0, 0.05) !important;
}

.sidebar-links button.link.home-nav.active:hover,
.sidebar-links button.link.inbox-nav.active:hover {
  background: #eef4fa !important;
}

.sidebar-links button.link.home-nav:focus-visible,
.sidebar-links button.link.inbox-nav:focus-visible {
  background: rgba(0, 0, 0, 0.05) !important;
  outline: 2px solid #0f70b7;
  outline-offset: -2px;
}

.folder {
  margin-top: 12px;
  font-size: 13px;
  color: #818181;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.folder-toggle,
.folder-add,
.folder-map-add {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.folder-toggle {
  font-size: 10px;
}

.folder-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.folder-add,
.folder-map-add {
  font-size: 13px;
  padding: 2px 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.folder-add .ti,
.folder-map-add .ti {
  font-size: 14px;
}

.folder-add:hover,
.folder-map-add:hover {
  background: rgba(0, 0, 0, 0.05);
}

.folder-caret {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.folder-caret.is-collapsed {
  transform: rotate(-90deg);
}

.research-list {
  display: grid;
  gap: 4px;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  max-height: 400px;
  opacity: 1;
}

.research-list.is-collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.research {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  font-size: 13px;
  border: 0;
  background: transparent;
  font-family: inherit;
  color: #404040;
  cursor: pointer;
  width: 100%;
  text-align: left;
  border-radius: 4px;
  transition:
    background 0.18s ease,
    opacity 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.research .ti {
  font-size: 14px;
  flex-shrink: 0;
}

.research:hover:not(.is-dragging):not(.active) {
  transform: translateX(8px);
}

.research:hover:not(.is-dragging):not(.active) .research-label {
  opacity: 0.92;
}

.research.active {
  background: #e8f2fa;
  color: #0f70b7;
}

.research.active .research-dot .dot {
  background: #0f70b7;
}

.research.active:hover:not(.is-dragging) {
  background: #eef4fa;
}

.research.active:hover:not(.is-dragging) .research-label {
  opacity: 1;
}

.research.is-dragging {
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: grabbing;
}

.research-list.is-research-dragging .research.active:not(.is-dragging) {
  background: transparent;
  box-shadow: none;
}

.research-list.is-research-dragging .research.active:not(.is-dragging) .research-dot .dot {
  background: #0f70b7;
}

.research-list.is-research-dragging .is-drop-target .research.active:not(.is-dragging) {
  background: transparent;
}

.research-list.is-research-dragging .research:not(.is-dragging):hover {
  background: transparent;
  transform: none;
}

.research-list.is-research-dragging .research:not(.is-dragging):hover .research-label {
  opacity: 1;
}

.research-dot {
  width: 4px;
  height: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.research-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.18s ease;
}

.research-root {
  display: grid;
  gap: 4px;
  border-radius: 4px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.map-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 4px;
}

.map-toggle {
  flex: 1;
  min-width: 0;
  min-height: 32px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: #404040;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px 8px 8px;
  text-align: left;
  border-radius: 4px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.map-toggle.is-drop-target,
.map-group.is-drop-target > .map-header .map-toggle {
  background: rgba(15, 112, 183, 0.1);
  box-shadow: inset 0 0 0 2px rgba(15, 112, 183, 0.45);
}

.map-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6d7582;
}

.map-icon .ti {
  font-size: 14px;
  line-height: 1;
}

.map-caret {
  flex-shrink: 0;
  font-size: 11px;
  color: #818181;
  line-height: 1;
  padding: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.map-caret.is-collapsed {
  transform: rotate(-90deg);
}

.map-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-menu {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #818181;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 1;
}

.map-group:hover .map-menu,
.map-menu:focus-visible {
  opacity: 1;
}

.map-menu:hover {
  background: rgba(0, 0, 0, 0.05);
}

.map-children {
  display: grid;
  gap: 4px;
  padding-left: 10px;
  margin-top: 2px;
  overflow: hidden;
  max-height: 800px;
  border-radius: 4px;
  transition:
    max-height 0.2s ease,
    opacity 0.2s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.map-children.is-collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  margin-top: 0;
}

.map-children.is-drag-expanded {
  max-height: 800px;
  opacity: 1;
  pointer-events: auto;
}

.map-children.is-drop-target,
.research-root.is-drop-target {
  background: rgba(15, 112, 183, 0.08);
  box-shadow: inset 0 0 0 2px rgba(15, 112, 183, 0.45);
}

.map-drop-slot {
  min-height: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-size: 12px;
  color: #0f70b7;
  font-style: italic;
  border-radius: 4px;
  background: rgba(15, 112, 183, 0.06);
}

.map-drop-slot.is-empty {
  display: flex;
  min-height: 32px;
  color: #a0a0a0;
  background: transparent;
  font-size: 13px;
}

.map-children.is-drop-target .map-drop-slot {
  display: flex;
}

.map-children.is-drop-target .map-drop-slot:not(.is-empty) {
  margin-top: 2px;
  border-top: 2px solid #0f70b7;
  border-radius: 0 0 4px 4px;
  background: rgba(15, 112, 183, 0.12);
  font-style: normal;
  font-weight: 500;
}

.map-rename-input {
  width: 100%;
  border: 1px solid #c8cdd2;
  border-radius: 3px;
  font-family: inherit;
  font-size: 13px;
  padding: 1px 4px;
  color: #404040;
  background: white;
}

.map-settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33, 37, 41, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.map-settings-overlay.is-open {
  opacity: 1;
}

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

.map-settings-modal {
  background: #fff;
  border-radius: 12px;
  width: min(420px, 100%);
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  animation: mapSettingsIn 0.22s ease both;
}

@keyframes mapSettingsIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.map-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.map-settings-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #404040;
}

.map-settings-close {
  border: 0;
  background: transparent;
  color: #848f99;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.map-settings-close:hover {
  background: #f0f2f4;
  color: #404040;
}

.map-settings-intro {
  margin: 0 0 20px;
  font-size: 13px;
  color: #848f99;
  line-height: 1.5;
}

.map-settings-form {
  display: grid;
  gap: 20px;
}

.map-settings-field {
  display: grid;
  gap: 6px;
}

.map-settings-label {
  font-size: 13px;
  font-weight: 500;
  color: #404040;
}

.map-settings-input {
  width: 100%;
  border: 1px solid #c8cdd2;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  color: #404040;
  background: white;
}

.map-settings-input:focus {
  outline: none;
  border-color: #0f70b7;
  box-shadow: 0 0 0 3px rgba(15, 112, 183, 0.12);
}

.map-settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.map-settings-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.map-settings-delete {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: #c0392b;
  cursor: pointer;
  padding: 8px 0;
}

.map-settings-delete:hover {
  text-decoration: underline;
}

.map-settings-cancel,
.map-settings-save {
  border: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
}

.map-settings-cancel {
  background: transparent;
  color: #404040;
}

.map-settings-cancel:hover {
  background: #f0f2f4;
}

.map-settings-save {
  background: #0f70b7;
  color: white;
}

.map-settings-save:hover {
  background: #0c5f9c;
}

/* Onderzoek settings modal */
.onderzoek-settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33, 37, 41, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.onderzoek-settings-overlay.is-open {
  opacity: 1;
}

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

.onderzoek-settings-modal {
  background: #fff;
  border-radius: 12px;
  width: min(480px, 100%);
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  animation: mapSettingsIn 0.22s ease both;
}

.onderzoek-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.onderzoek-settings-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #404040;
}

.onderzoek-settings-close {
  border: 0;
  background: transparent;
  color: #848f99;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.onderzoek-settings-close:hover {
  background: #f0f2f4;
  color: #404040;
}

.onderzoek-settings-intro {
  margin: 0 0 20px;
  font-size: 13px;
  color: #848f99;
  line-height: 1.5;
}

.onderzoek-settings-form {
  display: grid;
  gap: 16px;
}

.onderzoek-settings-field {
  display: grid;
  gap: 6px;
}

.onderzoek-settings-label {
  font-size: 13px;
  font-weight: 500;
  color: #404040;
}

.onderzoek-settings-input,
.onderzoek-settings-textarea {
  width: 100%;
  border: 1px solid #c8cdd2;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  color: #404040;
  background: white;
  resize: vertical;
}

.onderzoek-settings-input:focus,
.onderzoek-settings-textarea:focus {
  outline: none;
  border-color: #0f70b7;
  box-shadow: 0 0 0 3px rgba(15, 112, 183, 0.12);
}

.onderzoek-settings-section {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.onderzoek-settings-section-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #848f99;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.onderzoek-settings-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid #e4eaec;
  border-radius: 8px;
  background: #fafbfc;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  color: #404040;
  cursor: pointer;
  text-align: left;
}

.onderzoek-settings-link:hover {
  border-color: #c8cdd2;
  background: #f0f2f4;
}

.onderzoek-settings-link .ti-users {
  font-size: 16px;
  color: #848f99;
}

.onderzoek-settings-link-caret {
  margin-left: auto;
  font-size: 14px;
  color: #848f99;
}

.onderzoek-settings-member-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #e4eaec;
  font-size: 12px;
  font-weight: 500;
  color: #404040;
}

.onderzoek-settings-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.onderzoek-settings-danger {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.onderzoek-settings-archive,
.onderzoek-settings-delete {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: #848f99;
  cursor: pointer;
  padding: 4px 0;
  text-align: left;
}

.onderzoek-settings-delete {
  color: #c0392b;
}

.onderzoek-settings-archive:hover,
.onderzoek-settings-delete:hover {
  text-decoration: underline;
}

.onderzoek-settings-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.onderzoek-settings-cancel,
.onderzoek-settings-save {
  border: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
}

.onderzoek-settings-cancel {
  background: transparent;
  color: #404040;
}

.onderzoek-settings-cancel:hover {
  background: #f0f2f4;
}

.onderzoek-settings-save {
  background: #0f70b7;
  color: white;
}

.onderzoek-settings-save:hover {
  background: #0c5f9c;
}

/* Share modal */
.share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33, 37, 41, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.share-overlay.is-open {
  opacity: 1;
}

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

.share-modal {
  background: #fff;
  border-radius: 12px;
  width: min(520px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  animation: mapSettingsIn 0.22s ease both;
}

.share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.share-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #404040;
}

.share-close {
  border: 0;
  background: transparent;
  color: #848f99;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-close:hover {
  background: #f0f2f4;
  color: #404040;
}

.share-intro {
  margin: 0 0 20px;
  font-size: 13px;
  color: #848f99;
  line-height: 1.5;
}

.share-invite-form {
  margin-bottom: 24px;
}

.share-invite-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

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

.share-field--grow {
  flex: 1 1 180px;
  min-width: 0;
}

.share-field--role {
  flex: 0 0 110px;
}

.share-label {
  font-size: 13px;
  font-weight: 500;
  color: #404040;
}

.share-input,
.share-select {
  width: 100%;
  border: 1px solid #c8cdd2;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  color: #404040;
  background: white;
}

.share-input:focus,
.share-select:focus {
  outline: none;
  border-color: #0f70b7;
  box-shadow: 0 0 0 3px rgba(15, 112, 183, 0.12);
}

.share-invite-btn {
  border: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  background: #0f70b7;
  color: white;
  white-space: nowrap;
  height: 35px;
}

.share-invite-btn:hover {
  background: #0c5f9c;
}

.share-members-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #404040;
}

.share-member-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.share-member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e4eaec;
  border-radius: 8px;
  background: #fafbfc;
}

.share-member-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0f70b7;
  color: white;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-member-info {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.share-member-name {
  font-size: 13px;
  font-weight: 500;
  color: #404040;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-member-email {
  font-size: 12px;
  color: #848f99;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-member-role {
  font-size: 12px;
  font-weight: 500;
  color: #848f99;
  white-space: nowrap;
}

.share-member-role--owner {
  padding: 4px 8px;
  background: #e8f4fc;
  color: #0f70b7;
  border-radius: 4px;
}

.share-member-role-select {
  border: 1px solid #c8cdd2;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  padding: 4px 8px;
  color: #404040;
  background: white;
  cursor: pointer;
}

.share-member-role-select:focus {
  outline: none;
  border-color: #0f70b7;
}

.share-member-remove {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #848f99;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-member-remove:hover {
  background: #fdecea;
  color: #c0392b;
}

.context-menu {
  position: fixed;
  z-index: 100;
  min-width: 168px;
  background: white;
  border: 1px solid rgba(200, 205, 210, 0.6);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 4px;
  display: grid;
  gap: 2px;
}

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

.context-menu-item {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: #404040;
  text-align: left;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.context-menu-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.context-menu-item.is-danger {
  color: #c0392b;
}

.context-submenu {
  display: grid;
  gap: 2px;
  padding-left: 8px;
  border-left: 1px solid rgba(200, 205, 210, 0.5);
  margin-left: 4px;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #404040;
  flex-shrink: 0;
  display: block;
  transition: transform 0.18s ease;
}

.response-cta {
  margin-top: auto;
  width: 100%;
  background: linear-gradient(165deg, rgba(15, 112, 183, 0.06) 0%, #ffffff 48%);
  border: 1px solid rgba(15, 112, 183, 0.12);
  border-radius: 10px;
  padding: 10px 10px 9px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.response-cta-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}

.response-cta-label-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.response-cta-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(15, 112, 183, 0.1);
  color: #0f70b7;
  font-size: 12px;
  line-height: 1;
}

.response-cta-label {
  font-size: 11px;
  font-weight: 400;
  color: #818181;
  letter-spacing: 0.01em;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.response-cta-count {
  font-size: 11px;
  font-weight: 500;
  color: #404040;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 4px;
}

.response-cta-remaining {
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 400;
  color: #8a9199;
}

.response-cta-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.response-cta-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 112, 183, 0.1);
  overflow: hidden;
}

.response-cta-bar-fill {
  height: 100%;
  width: 0;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f70b7 0%, #3a9fd4 100%);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(15, 112, 183, 0.25);
}

.response-cta-reset {
  margin: 0;
  padding-top: 6px;
  font-size: 9px;
  line-height: 1.3;
  font-weight: 400;
  color: #9aa3ad;
  text-align: left;
  border-top: 1px solid rgba(15, 112, 183, 0.08);
}

.response-cta-action {
  display: flex;
  width: 100%;
}

.response-cta-btn {
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 26px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid rgba(15, 112, 183, 0.35);
  background: rgba(255, 255, 255, 0.7);
  color: #0f70b7;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.response-cta-btn .ti-arrow-up {
  font-size: 11px;
  line-height: 1;
}

.response-cta-btn:hover {
  background: rgba(15, 112, 183, 0.06);
  border-color: #0f70b7;
  box-shadow: 0 1px 4px rgba(15, 112, 183, 0.1);
}

.response-cta-btn:active {
  background: #0f70b7;
  color: #ffffff;
  border-color: #0f70b7;
  transform: translateY(1px);
  box-shadow: none;
}

.main {
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
  min-width: 0;
  padding-left: 0;
  position: relative;
  overflow: hidden;
}

.main-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.main .header,
.main .main-workspace {
  transition:
    transform var(--nav-transition-duration) var(--nav-transition-ease),
    opacity var(--nav-transition-duration) var(--nav-transition-ease),
    visibility 0s linear var(--nav-transition-duration);
}

.main.is-screen-open .header,
.main.is-screen-open .main-workspace {
  transform: translate3d(-40px, 0, 0);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.main.is-screen-open .header {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}

.main.is-screen-open .header-actions {
  position: fixed;
  top: 0;
  right: 31px;
  height: 48px;
  z-index: 25;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: opacity var(--nav-transition-duration) var(--nav-transition-ease);
}

.main:not(.is-screen-open) .header,
.main:not(.is-screen-open) .main-workspace {
  visibility: visible;
  transition-delay: 0s;
}

.app.is-sidebar-collapsed:not(.is-screen-open) .main {
  padding-left: 48px;
}

.app:not(.is-sidebar-collapsed) .main {
  padding-left: 0;
}

.header {
  width: 100%;
  height: 48px;
  min-height: 48px;
  flex-shrink: 0;
  background: #f6f6f6;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 31px;
  box-sizing: border-box;
}

.header-title {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 21px;
  font-weight: 500;
  line-height: normal;
  color: #404040;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
}

.header-actions-research {
  display: flex;
  align-items: center;
  gap: 12px;
  transition:
    opacity var(--nav-transition-duration) var(--nav-transition-ease),
    visibility 0s linear var(--nav-transition-duration);
}

body.is-item-open .header-actions-research {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.header-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--nav-transition-duration) var(--nav-transition-ease),
    visibility 0s linear var(--nav-transition-duration);
}

body:not(.is-item-open) .header-item-actions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

body.is-item-open .header-item-actions {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

body.is-item-open .header-autosave-status {
  opacity: 1;
  visibility: visible;
}

body:not(.is-item-open) .header-autosave-status {
  opacity: 0;
  visibility: hidden;
}

body.is-item-open .header-publish-btn {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body:not(.is-item-open) .header-publish-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.header-autosave-status {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 8px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  color: #6b7280;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--nav-transition-duration) var(--nav-transition-ease),
    visibility 0s linear var(--nav-transition-duration);
}

.header-autosave-status[data-state="saving"] {
  color: #9ca3af;
}

.header-autosave-status[data-state="error"] {
  color: #c0392b;
}

.header-publish-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid #0f70b7;
  background: #0f70b7;
  color: #ffffff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    opacity var(--nav-transition-duration) var(--nav-transition-ease),
    visibility 0s linear var(--nav-transition-duration);
}

.header-publish-btn:hover:not(:disabled) {
  background: #0d63a2;
  border-color: #0d63a2;
}

.header-publish-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.header-publish-btn.is-published {
  background: transparent;
  color: #0f70b7;
}

.header-publish-btn.is-published:disabled {
  opacity: 1;
}

.header-users {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  color: #404040;
  border: 0;
  background: transparent;
  padding: 4px 6px;
  margin: 0;
  border-radius: 6px;
  cursor: pointer;
}

.header-users:hover {
  background: #f0f2f4;
}

.header-users-count {
  line-height: normal;
}

.header-users .ti {
  font-size: 17.64px;
  width: 17.64px;
  height: 17.64px;
  line-height: 1;
}

.header-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #404040;
  line-height: 1;
}

.header-action-icon:hover {
  color: #0f70b7;
}

.header-action-icon--settings .ti {
  font-size: 19.6px;
  width: 19.6px;
  height: 19.6px;
  line-height: 1;
}

.header-action-icon--help .ti {
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 1;
}

.content {
  width: auto;
  min-width: 0;
  margin-top: 22px;
  padding-left: 28px;
  padding-right: 28px;
}

.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 33px;
  min-height: 33px;
  margin-bottom: 11px;
  gap: 8px;
  font-family: Montserrat, Arial, sans-serif;
}

.left-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filters-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.add-dropdown {
  position: relative;
}

.add-btn {
  height: 33px;
  border-radius: 8px;
  border: 1px solid #c8cdd2;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #404040;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.add-btn .ti {
  font-size: 14px;
  line-height: 1;
}

.add-btn:hover {
  border-color: #0f70b7;
}

.add-btn[aria-expanded="true"] {
  background: rgba(15, 112, 183, 0.08);
  border-color: #0f70b7;
}

.add-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  min-width: 180px;
  background: white;
  border: 1px solid rgba(200, 205, 210, 0.6);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 4px;
  display: grid;
  gap: 2px;
}

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

.add-menu-item {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: #404040;
  text-align: left;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.add-menu-item .ti {
  font-size: 14px;
  color: #6d7582;
}

.add-menu-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.search {
  width: 209px;
  height: 33px;
  min-height: 33px;
  border-radius: 48px;
  border: 1px solid #c8cdd2;
  background: white;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  color: #848f99;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
}

.search .ti {
  flex-shrink: 0;
  font-size: 14px;
  width: 14px;
  height: 14px;
}

.search input {
  border: 0;
  outline: none;
  background: transparent;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  color: #404040;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
}

.search input::placeholder {
  color: #848f99;
  font-weight: 300;
}

.chip {
  height: 33px;
  min-height: 33px;
  border-radius: 30px;
  border: 1px solid #c8cdd2;
  background: white;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  color: #404040;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip .ti {
  font-size: 11.2px;
  width: 11.2px;
  height: 11.2px;
  line-height: 1;
}

.chip:hover {
  border-color: #0f70b7;
}

.chip.is-active {
  background: #0f70b7;
  border-color: #0f70b7;
  color: white;
}

.view-toggle {
  --vt-width: 66px;
  --vt-height: 33px;
  --vt-segment: 33px;
  --vt-radius: 8px;

  position: relative;
  width: var(--vt-width);
  height: var(--vt-height);
  border-radius: var(--vt-radius);
  background: #fff;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  cursor: grab;
  flex-shrink: 0;
  isolation: isolate;
}

.view-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 2;
}

.view-toggle.is-dragging { cursor: grabbing; }

.view-toggle-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--vt-segment);
  height: var(--vt-height);
  border-radius: var(--vt-radius);
  background: #0f70b7;
  transform: translateX(0);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  will-change: transform;
}

.view-toggle.is-grid .view-toggle-thumb {
  transform: translateX(var(--vt-segment));
}

.view-toggle.is-dragging .view-toggle-thumb {
  transition: none;
}

.view-toggle button {
  position: absolute;
  top: 0;
  z-index: 1;
  width: var(--vt-segment);
  height: var(--vt-height);
  border: 0;
  background: transparent;
  cursor: inherit;
  color: #404040;
  transition: color 0.2s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-sizing: border-box;
}

.view-toggle button[data-view="list"] {
  left: 0;
}

.view-toggle button[data-view="grid"] {
  left: var(--vt-segment);
}

.view-toggle button .ti {
  font-size: 17px;
  width: 17px;
  height: 17px;
  line-height: 1;
  display: block;
}

.view-toggle button.active {
  color: #fff;
}

.items-wrap {
  position: relative;
  min-height: 220px;
  overflow: hidden;
}

.items-view {
  transition:
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.35s;
}

.items-view.is-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
}

.items-view.is-visible {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.items-wrap.is-animating .items-view.is-hidden {
  position: absolute;
}

.rows {
  display: grid;
  gap: 11px;
}

.row {
  min-height: 64px;
  background: white;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  padding: 7px 16px 7px 20px;
}

.row.has-status {
  grid-template-columns: 33px minmax(0, 1fr) 14px 36px;
}

.row.has-metrics {
  grid-template-columns: 33px minmax(0, 1fr) 110px 110px 14px 36px;
}

.content-item.is-filtered-out {
  display: none;
}

.empty-state {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  color: #848f99;
  font-size: 13px;
  font-weight: 400;
  position: relative;
  z-index: 2;
}

.empty-state.is-visible {
  display: flex;
}

.row > div:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-icon {
  width: 33px;
  height: 33px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.purple { background: #f0d2f3; color: #7a3f86; }
.blue { background: #d2e4f3; color: #2f6f9f; }
.green { background: #d2f3db; color: #2f8a62; }

.metric {
  width: 110px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-align: left;
  color: #6d7582;
  font-size: 13px;
  font-weight: 400;
}

.metric-value {
  color: #37474f;
  font-variant-numeric: tabular-nums;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot--open { background: #389f86; }
.status-dot--closed { background: #9aa3ad; }
.status-dot--problem { background: #d64545; }
.status-dot--draft { background: #e8a23b; }

.status-dot.is-hidden {
  visibility: hidden;
}

.menu {
  font-size: 19px;
  line-height: 1;
  color: #404040;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 4px;
  margin: -4px;
  flex-shrink: 0;
}

.menu .ti {
  font-size: 19px;
}

.metric .ti {
  font-size: 13px;
  vertical-align: -2px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  width: 366px;
  max-width: 100%;
  height: 203px;
  background: white;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: cardIn 0.35s ease both;
}

.card:nth-child(2) { animation-delay: 0.04s; }
.card:nth-child(3) { animation-delay: 0.08s; }
.card:nth-child(4) { animation-delay: 0.12s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.card-icon-wrap {
  flex: 1;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  font-size: 13px;
  font-weight: 300;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.card-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 400;
  color: #6d7582;
  flex-shrink: 0;
}

.card-metric {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-metric .metric-value {
  color: #37474f;
  font-variant-numeric: tabular-nums;
}

.card-meta .ti { font-size: 13px; }

@media (max-width: 1120px) {
  .app {
    grid-template-columns: 190px 1fr;
  }
  .row.has-status {
    grid-template-columns: 33px minmax(0, 1fr) 14px 36px;
    gap: 8px;
  }
  .row.has-metrics {
    grid-template-columns: 33px minmax(0, 1fr) 96px 96px 14px 36px;
    gap: 8px;
  }
  .card { width: calc(50% - 12px); }
}

@media (max-width: 860px) {
  .app {
    grid-template-columns: 1fr;
  }
  .app.is-sidebar-collapsed {
    grid-template-columns: 1fr;
  }
  .app.is-sidebar-collapsed:not(.is-screen-open) .main {
    padding-left: 48px;
  }
  .sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #dcdcdc;
    padding: 12px;
  }
  .app.is-sidebar-collapsed .sidebar {
    display: none;
  }
  .sidebar-links,
  .response-cta {
    width: 100%;
  }
  .response-cta-header {
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
  }
  .response-cta-label-row {
    gap: 4px;
  }
  .response-cta-label {
    font-size: 10px;
  }
  .response-cta-count {
    font-size: 13px;
  }
  .main {
    padding: 0 12px 12px;
  }
  .header {
    padding: 5px 12px;
    height: 48px;
    min-height: 48px;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
  }
  .main.is-screen-open .header-actions {
    right: 12px;
  }
  .content {
    width: 100%;
    margin-top: 12px;
    padding-left: 0;
    padding-right: 0;
  }
  .row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    padding: 8px 10px;
  }
  .row .metric,
  .row .status-dot {
    display: none;
  }
  .card {
    width: 100%;
    height: auto;
    min-height: 180px;
  }
}

/* Home dashboard */
.home-view {
  width: 100%;
  padding: 40px 24px 32px;
}

.home-root {
  max-width: 1080px;
  margin: 0 auto;
}

.home-hero {
  margin-bottom: 24px;
}

.home-hero-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 500;
  color: #404040;
}

.home-hero-sub {
  margin: 0;
  font-size: 14px;
  color: #818181;
}

.home-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.home-metric-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.home-metric-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.home-metric-icon.blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.home-metric-icon.purple {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
}

.home-metric-icon.green {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.home-metric-value {
  font-size: 22px;
  font-weight: 500;
  color: #404040;
  line-height: 1.2;
}

.home-metric-label {
  font-size: 12px;
  color: #818181;
}

.home-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.home-panel {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.home-panel--wide {
  margin-bottom: 0;
}

.home-panel-header {
  margin-bottom: 12px;
}

.home-panel-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #404040;
}

.home-activity-list {
  display: grid;
  gap: 4px;
}

.home-activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: #404040;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.home-activity-item:hover {
  background: #f6f6f6;
}

.home-activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}

.home-activity-icon.blue { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.home-activity-icon.purple { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.home-activity-icon.green { background: rgba(34, 197, 94, 0.12); color: #22c55e; }

.home-activity-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-activity-title {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-activity-meta {
  font-size: 12px;
  color: #818181;
}

.home-activity-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #6d7582;
  flex-shrink: 0;
}

.home-activity-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.home-empty {
  margin: 0;
  padding: 12px 0;
  font-size: 13px;
  color: #818181;
}

.home-onderzoeken-grid {
  display: grid;
  gap: 8px;
}

.home-onderzoek-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fafafa;
  font-family: inherit;
  font-size: 13px;
  color: #404040;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.home-onderzoek-card:hover {
  border-color: #3b82f6;
  background: #fff;
}

.home-onderzoek-name {
  font-weight: 500;
}

.home-onderzoek-meta {
  font-size: 12px;
  color: #818181;
}

.home-info-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-info-card {
  padding: 14px;
  border-radius: 6px;
  background: #f6f6f6;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-info-label {
  font-size: 12px;
  color: #818181;
}

.home-info-value {
  font-size: 20px;
  font-weight: 500;
  color: #404040;
}

.home-info-hint {
  font-size: 11px;
  color: #9ca3af;
}

body.is-home-view .header-actions-research,
body.is-inbox-view .header-actions-research {
  display: none;
}

/* Inbox */
.inbox-nav-badge {
  margin-left: auto;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.inbox-view {
  width: 100%;
  padding: 40px 24px 32px;
}

.inbox-root {
  max-width: 720px;
  margin: 0 auto;
}

.inbox-hero {
  margin-bottom: 20px;
}

.inbox-hero-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 500;
  color: #404040;
}

.inbox-hero-sub {
  margin: 0;
  font-size: 14px;
  color: #818181;
}

.inbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.inbox-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: #eee;
  border-radius: 8px;
}

.inbox-tab {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: #6d7582;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.inbox-tab.is-active {
  background: #fff;
  color: #404040;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.inbox-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 9px;
  background: #0f70b7;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}

.inbox-toolbar-hint {
  font-size: 12px;
  color: #818181;
}

.inbox-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.inbox-list {
  display: grid;
}

.inbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.inbox-item:last-child {
  border-bottom: 0;
}

.inbox-item:hover {
  background: #fafafa;
}

.inbox-item.is-read {
  opacity: 0.85;
}

.inbox-item.is-read .inbox-item-title {
  font-weight: 400;
}

.inbox-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.inbox-item-icon.blue { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.inbox-item-icon.purple { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.inbox-item-icon.green { background: rgba(34, 197, 94, 0.12); color: #22c55e; }

.inbox-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.inbox-item-title {
  font-size: 14px;
  font-weight: 500;
  color: #404040;
}

.inbox-item-text {
  font-size: 13px;
  color: #6d7582;
  line-height: 1.4;
}

.inbox-item-meta {
  font-size: 12px;
  color: #9ca3af;
}

.inbox-item-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.inbox-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0f70b7;
}

.inbox-item-time {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
}

.inbox-empty {
  margin: 0;
  padding: 24px 16px;
  font-size: 13px;
  color: #818181;
  text-align: center;
}

@media (max-width: 640px) {
  .inbox-view {
    padding: 32px 12px 24px;
  }

  .inbox-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1100px) {
  .home-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-panels {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .home-view {
    padding: 32px 12px 24px;
  }

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

  .home-info-row {
    grid-template-columns: 1fr;
  }
}
