.arq-dash-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--arq-border);
  flex-shrink: 0;
}
.arq-dash-brand { display: flex; align-items: center; gap: 1rem; }
.arq-dash-brand h1 { margin: 0; font-size: 1.35rem; }
.arq-sub { margin: 0.15rem 0 0; color: var(--arq-muted); font-size: 0.85rem; }
.arq-dash-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.arq-dash-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--arq-border);
}
.arq-search-wrap { flex: 1; max-width: 420px; }

.arq-sync-status { font-size: 0.8rem; color: var(--arq-muted); margin: 0; }

.arq-dash-grid {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  align-content: start;
}

.arq-project-card {
  position: relative;
  background: var(--arq-surface);
  border: 1px solid var(--arq-border);
  border-radius: var(--arq-radius);
  overflow: visible;
  cursor: pointer;
  transition: border-color 0.15s;
}
.arq-project-card:hover, .arq-project-card:focus-within { border-color: var(--arq-accent); }
.arq-project-card-thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--arq-surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--arq-muted);
  font-size: 0.8rem;
  border-radius: var(--arq-radius) var(--arq-radius) 0 0;
  overflow: hidden;
}
.arq-project-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.arq-project-card-body { padding: 0.75rem; }
.arq-project-card-body h3 { margin: 0 0 0.35rem; font-size: 1rem; text-align: center; }

.arq-project-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.65rem;
  width: 100%;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  justify-items: stretch;
  align-items: stretch;
}
.arq-project-card-actions .arq-btn {
  min-height: 40px;
  min-width: 0;
  width: 100%;
  padding: 0.4rem 0.5rem;
  font-size: 0.78rem;
  border-radius: 0;
  justify-content: center;
}
.arq-btn--with-icon { gap: 0.45rem; }
.arq-btn--with-icon .arq-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.arq-btn--with-icon .arq-btn-icon .fas { font-size: 0.95em; line-height: 1; }
.arq-btn--with-icon .arq-btn-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arq-project-card-actions .arq-btn--primary { grid-column: 1 / -1; }

.arq-project-card-menu-btn {
  display: none;
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  border-radius: 0;
  border: 1px solid var(--arq-border);
  background: rgba(15, 17, 20, 0.88);
  color: var(--arq-text);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.arq-project-card-menu-btn .arq-btn-icon { display: inline-flex; align-items: center; justify-content: center; }
.arq-project-card-menu-btn .fas { pointer-events: none; }
.arq-project-card-menu-btn:hover { background: var(--arq-surface2); }

.arq-project-card-dropdown {
  display: none;
  position: absolute;
  top: calc(0.4rem + 40px + 0.25rem);
  right: 0.4rem;
  left: 0.4rem;
  z-index: 4;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem;
  background: var(--arq-surface);
  border: 1px solid var(--arq-border);
  border-radius: 0;
  box-shadow: var(--arq-shadow);
}
.arq-project-card-dropdown[hidden] { display: none !important; }
.arq-project-card-dropdown:not([hidden]) { display: flex; }
.arq-project-card-dropdown .arq-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 0;
  justify-content: flex-start;
  font-size: 0.85rem;
}
.arq-project-card-dropdown .arq-btn--with-icon { justify-content: flex-start; }

@media (max-width: 1024px) {
  .arq-project-card-actions { display: none; }
  .arq-project-card-menu-btn { display: inline-flex; }
}

.arq-project-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.arq-project-geo-details {
  margin-top: 0.5rem;
  padding: 0.65rem;
  border: 1px solid var(--arq-border);
  border-radius: var(--arq-radius);
  background: var(--arq-surface);
}
.arq-project-geo-line { font-size: 0.85rem; margin-bottom: 0.25rem; }
.arq-project-geo-link { font-size: 0.85rem; color: var(--arq-accent); text-decoration: none; }
.arq-project-geo-link:hover { text-decoration: underline; }

.arq-project-geo-map-circle {
  width: 160px;
  height: 160px;
  border: 1px solid var(--arq-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--arq-surface2);
  margin-top: 0.5rem;
  position: relative;
}
.arq-project-geo-map-circle--lg {
  width: 220px;
  height: 220px;
}
.arq-project-geo-map-circle iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.arq-project-geo-map-click {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: transparent;
}

.arq-empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--arq-muted);
}
