:root {
  color-scheme: light;
  --background: hsl(250, 100%, 98%);
  --foreground: hsl(240, 12%, 9%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: var(--foreground);
  --muted: hsl(240, 6%, 96%);
  --muted-foreground: hsl(240, 5%, 45%);
  --primary: hsl(245, 60%, 35%);
  --primary-light: hsl(245, 70%, 55%);
  --primary-foreground: hsl(0, 0%, 100%);
  --accent: hsl(268, 85%, 62%);
  --accent-foreground: hsl(0, 0%, 100%);
  --warning: hsl(35, 94%, 55%);
  --warning-foreground: hsl(35, 100%, 12%);
  --success: hsl(152, 64%, 36%);
  --success-foreground: hsl(152, 93%, 95%);
  --destructive: hsl(352, 83%, 56%);
  --destructive-foreground: hsl(344, 100%, 97%);
  --border: rgba(18, 18, 18, 0.08);
  --shadow-medium: 0px 10px 30px rgba(88, 65, 164, 0.12);
  --shadow-large: 0px 20px 45px rgba(60, 45, 120, 0.18);
  --shadow-card: 0px 15px 35px rgba(82, 54, 170, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --transition: 0.25s ease-in-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--foreground);
  background: linear-gradient(180deg, rgba(248, 245, 255, 1) 0%, rgba(240, 237, 255, 0.65) 40%, rgba(228, 223, 255, 0.45) 100%);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

#app {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: 280px;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: width var(--transition);
  position: relative;
  backdrop-filter: blur(8px);
}

.sidebar.collapsed {
  width: 82px;
}

.sidebar .brand {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.sidebar .brand-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar .brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
}

.sidebar .brand-text span {
  display: block;
}

.sidebar .brand-title {
  font-weight: 600;
  font-size: 16px;
}

.sidebar .brand-subtitle {
  font-size: 12px;
  color: var(--muted-foreground);
}

.sidebar .toggle-btn {
  border: none;
  background: transparent;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted-foreground);
  transition: background var(--transition), color var(--transition);
}

.sidebar .toggle-btn:hover {
  background: var(--muted);
  color: var(--foreground);
}

.sidebar .user-card {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar .user-meta {
  display: flex;
  gap: 14px;
  align-items: center;
}

.avatar-initials {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, hsl(285, 85%, 68%) 100%);
  color: var(--accent-foreground);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar .user-details {
  flex: 1;
  min-width: 0;
}

.sidebar .user-name {
  font-weight: 600;
  font-size: 15px;
}

.sidebar .user-role {
  font-size: 12px;
  color: var(--muted-foreground);
}

.sidebar .user-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar .user-coins {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.coin-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share-tags-helper {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.share-tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  background: var(--muted);
  color: var(--muted-foreground);
}

.badge-secondary {
  background: rgba(138, 95, 255, 0.16);
  color: var(--primary);
}

.badge-warning {
  background: rgba(251, 191, 36, 0.18);
  color: var(--warning);
}

.badge-danger {
  background: rgba(244, 63, 94, 0.14);
  color: var(--destructive);
}

.badge + .badge {
  margin-left: 6px;
}

.nav-list {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted-foreground);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.45);
  transition: background var(--transition), color var(--transition), border var(--transition), transform var(--transition);
}

.nav-item:hover {
  background: rgba(94, 60, 190, 0.12);
  color: var(--foreground);
  border-color: rgba(120, 100, 200, 0.25);
  transform: translateX(2px);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(96, 78, 168, 0.92), rgba(150, 120, 250, 0.92));
  color: var(--primary-foreground);
  box-shadow: 0 12px 22px rgba(82, 50, 150, 0.24);
  border-color: transparent;
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar.collapsed .brand {
  justify-content: center;
  flex-direction: column;
  padding: 18px 12px;
  gap: 10px;
}

.sidebar.collapsed .brand-info {
  justify-content: center;
  width: 100%;
}

.sidebar.collapsed .toggle-btn {
  position: static;
  width: 32px;
  height: 32px;
  margin: 0 auto;
}

.sidebar.collapsed .nav-list {
  align-items: center;
  padding: 16px 8px;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  gap: 0;
  padding: 12px;
}

.sidebar.collapsed .nav-item span,
.sidebar.collapsed .nav-item .badge {
  display: none;
}

.sidebar.collapsed .nav-item:hover {
  transform: translateX(0);
}

.sidebar .settings {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.main {
  flex: 1;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.section.gradient {
  background: linear-gradient(135deg, rgba(118, 88, 211, 0.16) 0%, rgba(98, 71, 194, 0.08) 100%);
  border-color: rgba(118, 88, 211, 0.18);
  box-shadow: var(--shadow-large);
}

.section-header {
  padding: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.section-title {
  font-weight: 600;
  font-size: 20px;
}

.section-title svg {
  margin-right: 8px;
  margin-bottom: 2px;
}

.section-subtitle {
  margin-top: 4px;
  color: var(--muted-foreground);
  font-size: 14px;
}

.section-body {
  padding: 0 24px 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn-with-icon,
.btn-with-icon-right {
  gap: 6px;
}

.btn-with-icon svg {
  margin-right: 6px;
}

.btn-with-icon-right svg {
  margin-left: 6px;
  margin-right: 0;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  color: var(--primary-foreground);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: 0 12px 30px rgba(82, 50, 150, 0.24);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(82, 50, 150, 0.32);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, hsl(285, 85%, 68%) 100%);
  color: var(--accent-foreground);
  box-shadow: 0 12px 30px rgba(170, 70, 220, 0.25);
}

.btn-outline {
  border: 1px solid rgba(96, 78, 168, 0.25);
  background: transparent;
  color: var(--foreground);
}

.btn-outline:hover {
  background: rgba(96, 78, 168, 0.1);
}

.btn-outline.is-active {
  background: linear-gradient(135deg, rgba(120, 90, 220, 0.15), rgba(150, 120, 250, 0.25));
  border-color: rgba(120, 90, 220, 0.35);
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(118, 88, 211, 0.18);
}

.btn-outline.is-active:hover {
  background: linear-gradient(135deg, rgba(120, 90, 220, 0.18), rgba(150, 120, 250, 0.32));
}

.btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
}

.btn-ghost:hover {
  background: rgba(96, 78, 168, 0.08);
  color: var(--foreground);
}

.btn-small {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(236, 232, 255, 0.9) 100%);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(120, 100, 200, 0.16);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
}

.stat-card .stat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted-foreground);
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--foreground);
}

.stat-card .stat-change {
  font-size: 12px;
  font-weight: 500;
}

.icon-pill {
  background: rgba(96, 78, 168, 0.12);
  color: var(--primary);
  border-radius: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.progress {
  width: 100%;
  background: var(--muted);
  border-radius: 999px;
  overflow: hidden;
  height: 8px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: inherit;
  transition: width var(--transition);
}

.progress-sm {
  height: 6px;
}

.progress-sm .progress-bar {
  height: 6px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.kanban-board {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

.kanban-column {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(120, 100, 200, 0.22);
  border-radius: 18px;
  padding: 16px;
  min-height: 240px;
  transition: border var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.kanban-column .list {
  margin-top: 12px;
  flex: 1;
}

.kanban-column.dropping {
  border-color: rgba(96, 78, 168, 0.6);
  box-shadow: 0 12px 28px rgba(96, 78, 168, 0.25);
}

.draggable.dragging {
  opacity: 0.6;
  transform: scale(0.98);
}

.draggable {
  cursor: grab;
}

.draggable:active {
  cursor: grabbing;
}

.project-kanban-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(120, 100, 200, 0.18);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 14px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.project-kanban-card:hover {
  box-shadow: var(--shadow-large);
  transform: translateY(-2px);
}

.project-kanban-card__header {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.project-kanban-card__header > div:first-child {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.project-kanban-card__actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.project-field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted-foreground);
}

.project-field-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
  word-break: break-word;
}

.project-name-value {
  font-size: 15px;
  font-weight: 600;
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.project-name-cell {
  flex: 1;
  min-width: 0;
}

.project-kanban-card__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.project-kanban-card__row .project-field-value {
  text-align: right;
}

.project-kanban-card__progress {
  display: grid;
  gap: 8px;
}

.project-kanban-card__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.project-status-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(96, 78, 168, 0.12);
  color: var(--primary);
  font-weight: 600;
}

.project-kanban-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted-foreground);
}

.project-updated {
  font-style: italic;
}

.pin-toggle {
  border: none;
  background: transparent;
  color: rgba(96, 78, 168, 0.4);
  padding: 4px;
  border-radius: 10px;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.pin-toggle:hover {
  color: rgba(96, 78, 168, 0.8);
  background: rgba(96, 78, 168, 0.12);
}

.pin-toggle.is-active {
  color: var(--accent);
  background: rgba(138, 95, 255, 0.14);
  box-shadow: 0 8px 18px rgba(138, 95, 255, 0.18);
}

.pin-toggle-card {
  font-size: 0;
}

.pin-toggle-table {
  border-radius: 8px;
}

.pin-toggle-table.is-active {
  background: rgba(138, 95, 255, 0.12);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.list-item {
  background: rgba(248, 246, 255, 0.7);
  border: 1px solid rgba(120, 100, 200, 0.16);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.list-item:hover {
  background: rgba(240, 235, 255, 0.85);
}

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

.table thead th {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-foreground);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.table tbody td {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(18, 18, 18, 0.06);
  font-size: 14px;
}

.table tbody tr:hover {
  background: rgba(240, 235, 255, 0.55);
}

.table tbody tr[data-project-row] {
  cursor: pointer;
}


.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  gap: 24px;
  justify-content: flex-start;
}

.template-card,
.agent-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 235, 255, 0.8) 100%);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(120, 100, 200, 0.18);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.template-card:hover,
.agent-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-large);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(96, 78, 168, 0.08);
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}

.tag-muted {
  color: var(--muted-foreground);
  background: rgba(120, 100, 200, 0.08);
}

button.tag {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(96, 78, 168, 0.08);
  transition: background var(--transition), transform var(--transition);
}

button.tag:focus-visible {
  outline: 2px solid rgba(96, 78, 168, 0.4);
  outline-offset: 2px;
}

button.tag:hover {
  transform: translateY(-1px);
}

.tag.suggestion {
  background: rgba(96, 78, 168, 0.12);
}

.tag-active {
  background: linear-gradient(135deg, rgba(120, 90, 220, 0.18), rgba(150, 120, 250, 0.32));
  color: var(--primary-foreground);
}

.tag-count {
  font-size: 11px;
  color: var(--muted-foreground);
}

.project-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  color: var(--accent);
}

.project-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-card-header {
  align-items: center;
}

.project-badges {
  display: inline-flex;
  gap: 6px;
}

.project-badges > .badge {
  margin-left: 0;
}

.project-mini-meta {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted-foreground);
}

.project-mini-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-meta {
  display: grid;
  gap: 4px;
  margin: 10px 0;
  font-size: 12px;
  color: var(--muted-foreground);
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-entry {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: flex-start;
}

.timeline-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 6px;
}

.timeline-card {
  background: var(--card);
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(98, 71, 194, 0.12);
}

.timeline-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 2.4fr) minmax(240px, 1fr);
}

.timeline-feed {
  min-width: 0;
  order: 1;
  display: grid;
  gap: 20px;
}

.timeline-side {
  position: sticky;
  top: 32px;
  align-self: flex-start;
  order: 2;
}

.timeline-side-block {
  display: grid;
  gap: 16px;
}

.timeline-side-block .list {
  margin-top: 4px;
}

.consultant-card {
  padding: 6px 0;
}

.consultant-card .prompt-author {
  gap: 10px;
}
.filter-indicator {
  padding: 12px 16px;
  border: 1px solid rgba(120, 100, 200, 0.2);
  border-radius: 14px;
  background: rgba(96, 78, 168, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted-foreground);
}

.empty-state {
  padding: 18px;
  border-radius: 16px;
  background: rgba(248, 246, 255, 0.85);
  border: 1px solid rgba(120, 100, 200, 0.18);
  font-size: 13px;
  color: var(--muted-foreground);
}

.agent-actions {
  display: flex;
  justify-content: flex-end;
}

.prompt-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(120, 100, 200, 0.18);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 14px;
}

.prompt-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.prompt-author {
  display: flex;
  gap: 12px;
}

.prompt-author .avatar-initials {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 14px;
}

.team-badge {
  background: rgba(96, 78, 168, 0.1);
  color: var(--primary);
}

.prompt-actions {
  display: flex;
  gap: 10px;
}

.textarea {
  width: 100%;
  min-height: 120px;
  border-radius: 16px;
  border: 1px solid rgba(120, 100, 200, 0.18);
  padding: 16px;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(120, 100, 200, 0.18);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  transition: border var(--transition), box-shadow var(--transition);
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: rgba(96, 78, 168, 0.45);
  box-shadow: 0 0 0 4px rgba(96, 78, 168, 0.12);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(120, 100, 200, 0.12);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
}

.metric-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.metric-card {
  background: var(--card);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(120, 100, 200, 0.14);
  text-align: center;
  box-shadow: 0 10px 25px rgba(90, 64, 180, 0.15);
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.reward-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(120, 100, 200, 0.2);
  box-shadow: var(--shadow-medium);
}

.reward-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 220, 120, 0.35), rgba(255, 189, 57, 0.6));
  color: var(--warning-foreground);
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.post-actions {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.post-action {
  border: none;
  background: transparent;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: transform var(--transition), color var(--transition);
}

.post-action svg {
  width: 18px;
  height: 18px;
}

.post-action:hover {
  transform: translateY(-1px);
  color: var(--foreground);
}

.post-action.liked {
  color: var(--destructive);
}

.like-button.liked {
  animation: like-pop 0.35s ease;
}

@keyframes like-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.copy-feedback {
  font-size: 12px;
  color: var(--success);
}

.comments-panel {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(120, 100, 200, 0.18);
  background: rgba(248, 246, 255, 0.8);
  display: grid;
  gap: 12px;
}

.comment-item {
  display: grid;
  gap: 6px;
}

.comment-item.editing {
  gap: 10px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.comment-author {
  font-weight: 600;
  color: var(--foreground);
}

.comment-time {
  color: var(--muted-foreground);
}

.comment-content {
  font-size: 12px;
  color: var(--muted-foreground);
}

.comment-action-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

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

.comment-textarea,
.comment-edit-input {
  width: 100%;
  min-height: 70px;
  border-radius: 12px;
  border: 1px solid rgba(120, 100, 200, 0.2);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.95);
}

.comment-textarea:focus,
.comment-edit-input:focus {
  outline: none;
  border-color: rgba(96, 78, 168, 0.45);
  box-shadow: 0 0 0 4px rgba(96, 78, 168, 0.12);
}

.comment-form-actions {
  display: flex;
  justify-content: flex-end;
}

.comment-empty {
  font-size: 12px;
  color: var(--muted-foreground);
}

.table-meta {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted-foreground);
}

.table-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-section {
  display: grid;
  gap: 0;
}

.profile-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px;
  align-items: center;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(96, 78, 168, 0.3), rgba(150, 120, 250, 0.4));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-fallback {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-foreground);
}

.profile-info {
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 220px;
}

.profile-description {
  font-size: 14px;
  color: var(--muted-foreground);
  max-width: 560px;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted-foreground);
}

.profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-actions {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.profile-stats-grid {
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.profile-layout {
  align-items: flex-start;
  gap: 20px;
}

@media (min-width: 1080px) {
  .profile-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.profile-prompt-list {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

@media (min-width: 1100px) {
  .profile-prompt-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.profile-prompt-list .prompt-card {
  padding: 14px;
  gap: 10px;
  border-radius: 14px;
  border: 1px solid rgba(74, 58, 140, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 26px rgba(46, 32, 104, 0.1);
  height: 100%;
}

.profile-prompt-list .prompt-header {
  gap: 10px;
}

.profile-prompt-list .prompt-author .avatar-initials {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.profile-prompt-list .prompt-actions .badge {
  font-size: 11px;
}

.profile-prompt-list .textarea {
  padding: 12px 14px;
  max-height: 120px;
  font-size: 13px;
  line-height: 1.45;
  border-radius: 12px;
  border-color: rgba(84, 66, 160, 0.2);
  background: linear-gradient(180deg, rgba(246, 244, 255, 0.96) 0%, rgba(240, 236, 255, 0.88) 100%);
  overflow: hidden;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.96) 75%, rgba(0, 0, 0, 0.55) 92%, rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.96) 75%, rgba(0, 0, 0, 0.55) 92%, rgba(0, 0, 0, 0));
  transition: max-height var(--transition), mask-image var(--transition);
}

.profile-prompt-list .prompt-card:hover .textarea {
  max-height: 260px;
  mask-image: none;
  -webkit-mask-image: none;
}

.profile-prompt-list .tag-list {
  gap: 6px;
}

.profile-prompt-list .post-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(74, 58, 140, 0.08);
}

.profile-photo-preview {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(120, 100, 200, 0.25);
}

.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coin-history {
  display: grid;
  gap: 12px;
}

.coin-history-row {
  display: grid;
  grid-template-columns: 120px 1fr 140px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(120, 100, 200, 0.16);
  background: rgba(255, 255, 255, 0.85);
}

.coin-history-date {
  font-weight: 600;
  color: var(--foreground);
  font-size: 13px;
}

.coin-history-reason {
  font-size: 13px;
  color: var(--muted-foreground);
}

.coin-history-amount {
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.coin-history-amount.positive {
  color: var(--success);
}

.coin-history-amount.negative {
  color: var(--destructive);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.achievement-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(62, 46, 120, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 232, 255, 0.85));
  box-shadow: 0 16px 28px rgba(40, 26, 102, 0.12);
  transition: transform var(--transition), box-shadow var(--transition), border var(--transition);
}

.achievement-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(40, 26, 102, 0.16);
  border-color: rgba(74, 58, 140, 0.35);
}

.achievement-card.unlocked {
  border-color: rgba(56, 38, 120, 0.65);
  background: linear-gradient(135deg, rgba(58, 40, 128, 0.92), rgba(132, 98, 222, 0.88));
}

.achievement-card.locked {
  border-style: dashed;
  border-color: rgba(130, 134, 154, 0.35);
  background: linear-gradient(135deg, rgba(241, 242, 248, 0.94), rgba(230, 232, 240, 0.9));
}

.achievement-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(44, 32, 112, 0.16);
  color: var(--primary-foreground);
  box-shadow: inset 0 0 0 1px rgba(120, 100, 200, 0.25);
}

.achievement-card.unlocked .achievement-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--primary-foreground);
}

.achievement-card.locked .achievement-icon {
  background: rgba(120, 120, 140, 0.18);
  color: var(--muted-foreground);
  box-shadow: none;
}

.achievement-content h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--foreground);
}

.achievement-card.unlocked .achievement-content h3 {
  color: rgba(255, 255, 255, 0.96);
}

.achievement-content p {
  font-size: 12px;
  margin: 4px 0 0;
  color: rgba(44, 32, 112, 0.72);
  line-height: 1.4;
}

.achievement-card.unlocked .achievement-content p {
  color: rgba(255, 255, 255, 0.92);
}

.achievement-card.locked .achievement-content h3,
.achievement-card.locked .achievement-content p {
  color: rgba(70, 74, 92, 0.88);
}

.demo-banner {
  margin-bottom: 20px;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid rgba(96, 78, 168, 0.25);
  background: linear-gradient(135deg, rgba(96, 78, 168, 0.18), rgba(150, 120, 250, 0.2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--primary-foreground);
  box-shadow: 0 16px 32px rgba(62, 46, 120, 0.12);
}

.demo-banner div {
  display: grid;
  gap: 4px;
  color: rgba(28, 20, 70, 0.92);
}

.demo-banner strong {
  font-size: 14px;
  font-weight: 600;
}

.demo-banner span {
  font-size: 13px;
  color: rgba(28, 20, 70, 0.72);
}

.project-modal {
  max-width: 880px;
}

.modal-body.project-modal-body {
  padding: 28px;
  display: grid;
  gap: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 244, 255, 0.92) 100%);
}

.project-panel {
  border: 1px solid rgba(74, 58, 140, 0.12);
  border-radius: 16px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.88);
  display: grid;
  gap: 16px;
}

.project-panel-secondary {
  background: rgba(248, 246, 255, 0.9);
}

.project-panel-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
}

.project-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.project-meta-note {
  font-size: 12px;
  color: var(--muted-foreground);
}

.project-meta-inline {
  font-size: 12px;
  color: var(--muted-foreground);
}

.form-feedback-container {
  display: grid;
  gap: 8px;
}

.form-feedback {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
}

.form-feedback.success {
  background: rgba(96, 160, 120, 0.12);
  color: rgba(32, 105, 62, 0.96);
  border: 1px solid rgba(96, 160, 120, 0.35);
}

.form-feedback.error {
  background: rgba(240, 82, 82, 0.12);
  color: rgba(160, 34, 34, 0.96);
  border: 1px solid rgba(240, 82, 82, 0.3);
}

.form-hint {
  font-size: 12px;
  color: var(--muted-foreground);
}

.textarea-compact {
  min-height: 0;
  resize: vertical;
  height: auto;
}

.project-checklist-add {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-checklist-add .input {
  flex: 1 1 240px;
}

.project-checklist-groups {
  display: grid;
  gap: 16px;
}

.project-checklist-group {
  border: 1px solid rgba(74, 58, 140, 0.14);
  border-radius: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  gap: 14px;
  box-shadow: 0 12px 24px rgba(74, 58, 140, 0.08);
}

.project-checklist-group-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
}

.project-checklist-group-info {
  display: grid;
  gap: 6px;
}

.project-checklist-group-index {
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
}

.project-checklist-title {
  font-size: 13px;
}

.project-checklist-score {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(96, 78, 168, 0.12);
  padding: 6px 10px;
  border-radius: 12px;
  font-variant-numeric: tabular-nums;
}

.project-checklist-score .score-value {
  font-size: 16px;
  font-weight: 700;
}

.project-checklist-score .score-total {
  font-size: 12px;
  color: var(--muted-foreground);
}

.project-checklist-items {
  display: grid;
  gap: 10px;
}

.project-checklist-remove {
  color: var(--muted-foreground);
}

.project-checklist-remove:hover {
  color: var(--destructive);
}

.project-points-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(96, 78, 168, 0.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .project-checklist-group-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-checklist-score {
    justify-self: flex-start;
  }

  .project-checklist-remove {
    justify-self: flex-end;
  }

  .project-kanban-card__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-kanban-card__row .project-field-value {
    text-align: left;
  }
}

.project-checklist-progress {
  display: grid;
  gap: 10px;
}

.project-progress-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--foreground);
  flex-wrap: wrap;
}

.project-progress-label strong {
  font-weight: 600;
}

.project-progress-label span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
}

.project-progress-bar {
  width: 100%;
}

/* Auth pages */
body.auth-view {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}

.auth-shell {
  width: min(1080px, 100%);
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(320px, 420px) minmax(360px, 1fr);
  align-items: stretch;
}

.auth-panel,
.auth-showcase {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 64px rgba(46, 32, 104, 0.18);
  backdrop-filter: blur(12px);
}

.auth-panel {
  padding: 42px 48px;
  display: grid;
  gap: 28px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.auth-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--primary-foreground);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: 0 16px 30px rgba(82, 50, 150, 0.28);
}

.auth-brand span {
  display: block;
  font-weight: 600;
  font-size: 16px;
}

.auth-card {
  display: grid;
  gap: 24px;
}

.auth-heading {
  display: grid;
  gap: 6px;
}

.auth-heading h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--foreground);
}

.auth-heading p {
  font-size: 15px;
  color: var(--muted-foreground);
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form .form-field span {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
}

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

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.auth-links a {
  color: var(--primary);
}

.auth-demo-cta {
  display: grid;
  gap: 12px;
  text-align: center;
}

.auth-demo-cta .btn {
  justify-content: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted-foreground);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(74, 58, 140, 0.18);
}

.auth-showcase {
  padding: 48px;
  display: grid;
  gap: 28px;
  background: linear-gradient(140deg, rgba(68, 48, 140, 0.92), rgba(168, 136, 255, 0.86));
  color: rgba(255, 255, 255, 0.92);
}

.auth-showcase h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.auth-showcase p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
}

.auth-feature-list {
  display: grid;
  gap: 16px;
  font-size: 14px;
}

.auth-feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
}

.auth-feature-icon {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 600;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}

.auth-showcase-footer {
  margin-top: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.auth-hero-illustration {
  width: 100%;
  max-width: 360px;
  border-radius: 18px;
  align-self: center;
  box-shadow: 0 30px 60px rgba(16, 6, 50, 0.4);
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.45), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(236, 214, 255, 0.55), transparent 48%),
    radial-gradient(circle at 50% 80%, rgba(170, 138, 250, 0.6), transparent 50%),
    linear-gradient(160deg, rgba(36, 22, 92, 0.92), rgba(120, 86, 210, 0.85));
}

@media (max-width: 1080px) {
  body.auth-view {
    padding: 36px 24px;
  }

  .auth-shell {
    gap: 32px;
  }
}

@media (max-width: 960px) {
  body.auth-view {
    padding: 32px 20px;
  }

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

  .auth-showcase {
    order: -1;
  }
}

@media (max-width: 640px) {
  body.auth-view {
    padding: 24px 16px;
  }

  .auth-panel,
  .auth-showcase {
    padding: 32px 28px;
    border-radius: 20px;
  }

  .auth-heading h1 {
    font-size: 24px;
  }

  .auth-showcase h2 {
    font-size: 22px;
  }
}

.label-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.label-list.small {
  margin-top: 10px;
}

.label-list.editable {
  min-height: 32px;
}

.label-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(96, 78, 168, 0.1);
  color: var(--primary);
  font-size: 12px;
}

.label-chip button {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 12px;
  cursor: pointer;
}

.label-add,
.checklist-add {
  display: flex;
  gap: 8px;
  align-items: center;
}

.checklist {
  display: grid;
  gap: 8px;
}

.checklist-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(248, 246, 255, 0.8);
  border: 1px solid rgba(120, 100, 200, 0.16);
  border-radius: 10px;
  align-items: center;
}

.checklist-item input[type='checkbox'] {
  width: 16px;
  height: 16px;
}

.checklist-item span {
  font-size: 13px;
}

.checklist-delete {
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 16px;
  cursor: pointer;
}

.team-selector {
  display: grid;
  gap: 16px;
}

.team-selected {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-group {
  border: 1px solid rgba(120, 100, 200, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.85);
  display: grid;
  gap: 10px;
}

.team-group-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.team-options {
  display: grid;
  gap: 8px;
}

.team-option {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted-foreground);
}

.team-option input {
  width: 16px;
  height: 16px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 22, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(6px);
  z-index: 2000;
}

.modal {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 70px rgba(30, 25, 70, 0.25);
  width: min(640px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-modal {
  width: min(720px, 100%);
}

.template-modal {
  width: min(520px, 100%);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(120, 100, 200, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(96, 78, 168, 0.1);
  color: var(--foreground);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: grid;
  gap: 18px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(120, 100, 200, 0.16);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.project-modal-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

.form-grid {
  display: grid;
  gap: 18px;
}

.form-field.toggles {
  display: flex;
  align-items: center;
  gap: 16px;
}

.form-label {
  font-size: 13px;
  color: var(--muted-foreground);
}

.form-emphasis {
  font-weight: 600;
  color: var(--foreground);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted-foreground);
}

.toggle input {
  width: 16px;
  height: 16px;
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.template-modal-body {
  display: grid;
  gap: 16px;
}

.template-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--muted-foreground);
}

.template-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.modal-description {
  font-size: 14px;
  color: var(--foreground);
  line-height: 1.5;
}

.settings-options {
  display: grid;
  gap: 10px;
}

.settings-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(120, 100, 200, 0.18);
  background: rgba(248, 246, 255, 0.9);
  font-size: 14px;
  cursor: pointer;
  transition: transform var(--transition), border var(--transition);
}

.settings-option:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 100, 200, 0.4);
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.post-actions {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.post-action {
  border: none;
  background: transparent;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: transform var(--transition), color var(--transition);
}

.post-action svg {
  width: 18px;
  height: 18px;
}

.post-action:hover {
  transform: translateY(-1px);
  color: var(--foreground);
}

.post-action.liked {
  color: var(--destructive);
}

.like-button.liked {
  animation: like-pop 0.35s ease;
}

@keyframes like-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.copy-feedback {
  font-size: 12px;
  color: var(--success);
}

.comments-panel {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(120, 100, 200, 0.18);
  background: rgba(248, 246, 255, 0.8);
  display: grid;
  gap: 12px;
}

.comment-item {
  display: grid;
  gap: 4px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.comment-author {
  font-weight: 600;
  color: var(--foreground);
}

.comment-time {
  color: var(--muted-foreground);
}

.comment-content {
  font-size: 12px;
  color: var(--muted-foreground);
}

.leaderboard-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.leaderboard-user .avatar-initials {
  width: 36px;
  height: 36px;
  font-size: 14px;
  border-radius: 12px;
}

.leaderboard tbody tr.highlight {
  background: rgba(118, 88, 211, 0.12);
}

.leaderboard tbody tr.highlight td {
  font-weight: 600;
  color: var(--primary);
}

.coin-cell {
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.leaderboard th:first-child,
.leaderboard td:first-child {
  text-align: center;
  width: 56px;
}

.metric-value {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 13px;
  color: var(--muted-foreground);
}

.flex-gap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.text-muted {
  color: var(--muted-foreground);
}

.text-small {
  font-size: 13px;
}

.text-xs {
  font-size: 12px;
}

.text-lg {
  font-size: 18px;
}

.text-xl {
  font-size: 24px;
  font-weight: 600;
}

.weight-medium {
  font-weight: 600;
}

.weight-semibold {
  font-weight: 700;
}

.card-divider {
  border-top: 1px solid rgba(18, 18, 18, 0.06);
  margin: 16px 0;
}

.table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 1100px) {
  .main {
    padding: 24px;
  }
}

@media (max-width: 900px) {
  #app {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 20;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .sidebar .brand,
  .sidebar .user-card,
  .sidebar .settings {
    display: none;
  }

  .nav-list {
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 16px 24px;
  }

  .nav-item {
    flex: 0 0 auto;
    border-radius: 999px;
  }

  .kanban-board {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

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

  .timeline-side {
    position: static;
    order: 2;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 18px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-card {
    padding: 18px;
  }

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

  .kanban-board {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-actions {
    width: 100%;
    margin-left: 0;
  }

  .profile-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .coin-history-row {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 6px;
  }
}
.hidden {
  display: none !important;
}

.text-success {
  color: var(--success);
}

.text-destructive {
  color: var(--destructive);
}

.text-warning {
  color: var(--warning);
}

.text-accent {
  color: var(--accent);
}
.agent-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.agent-category-btn {
  border: 1px solid rgba(120, 100, 200, 0.2);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border var(--transition), box-shadow var(--transition);
}

.agent-category-btn:hover {
  background: rgba(96, 78, 168, 0.12);
  color: var(--foreground);
}

.agent-category-btn.is-active {
  background: linear-gradient(135deg, rgba(96, 78, 168, 0.18), rgba(150, 120, 250, 0.25));
  color: var(--primary);
  border-color: rgba(96, 78, 168, 0.4);
  box-shadow: 0 10px 20px rgba(74, 58, 140, 0.14);
}

.agent-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.agent-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted-foreground);
}

.agent-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.agent-capabilities {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--foreground);
  margin-top: 10px;
}

.agent-capabilities li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(96, 78, 168, 0.08);
  border-radius: 12px;
  padding: 6px 10px;
}

@media (max-width: 720px) {
  .agent-card-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
