:root {
  --bg: #f7f4ee;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: #ffffff;
  --ink: #19161d;
  --muted: #746f79;
  --line: rgba(28, 23, 33, 0.1);
  --accent: #ff7a35;
  --accent-soft: rgba(255, 122, 53, 0.12);
  --violet: #7b63ff;
  --violet-soft: rgba(123, 99, 255, 0.1);
  --shadow: 0 26px 70px rgba(24, 20, 29, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 53, 0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(123, 99, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #fbf8f3 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
}

.page-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.hero,
.spotlight-panel,
.board-panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 28px 30px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
}

.hero h1,
.panel-heading h2,
.detail-card h3,
.summary-value,
.hero-stat-value {
  font-family: "Space Grotesk", sans-serif;
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1;
  max-width: 720px;
}

.hero-text {
  max-width: 700px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-stat,
.summary-chip {
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.hero-stat-label,
.summary-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stat-value,
.summary-value {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
}

.spotlight-panel,
.board-panel {
  margin-top: 20px;
  padding: 20px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 24px;
}

.panel-heading p {
  margin: 0;
  color: var(--muted);
}

.spotlight-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.spotlight-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 242, 0.9));
  border: 1px solid var(--line);
}

.spotlight-avatar,
.project-avatar {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #f0e8db, #efeaf6);
}

.spotlight-avatar {
  width: 40px;
  height: 40px;
}

.project-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.spotlight-title,
.project-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-main {
  min-width: 0;
  overflow: hidden;
}

.spotlight-title {
  font-size: 15px;
  line-height: 1.2;
}

.spotlight-meta,
.project-handle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.spotlight-meta {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  min-width: 76px;
}

.spotlight-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #dcecff;
  color: #23407b;
  font-size: 12px;
  font-weight: 700;
}

.spotlight-submeta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.board-toolbar,
.board-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.tab-group {
  display: inline-flex;
  gap: 10px;
}

.tab-button {
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tab-button.is-active {
  background: var(--violet-soft);
  color: var(--violet);
  border-color: rgba(123, 99, 255, 0.35);
}

.window-select {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.window-select span {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.window-select select {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
}

.board-summary {
  margin-top: 18px;
}

.summary-chip {
  min-width: 180px;
}

.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.pagination-meta {
  min-width: 160px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.pagination-button {
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pagination-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.table-shell {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--panel-strong);
}

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

.project-table th,
.project-table td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.project-table th {
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-row.is-open {
  background: rgba(123, 99, 255, 0.03);
}

.project-cell {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 250px;
}

.project-copy {
  min-width: 0;
}

.project-link {
  color: inherit;
  text-decoration: none;
}

.project-link:hover {
  color: var(--violet);
}

.summary-cell {
  min-width: 320px;
}

.intel-preview {
  color: var(--muted);
  line-height: 1.55;
}

.expand-button {
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(123, 99, 255, 0.28);
  border-radius: 999px;
  background: rgba(123, 99, 255, 0.08);
  color: var(--violet);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.details-row td {
  padding-top: 8px;
  background: rgba(248, 244, 255, 0.55);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(123, 99, 255, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.detail-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.detail-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
}

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

.detail-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(24, 22, 26, 0.06);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.empty-state {
  padding: 44px 24px;
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.hidden {
  display: none;
}

@media (max-width: 1100px) {
  .spotlight-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-shell {
    overflow-x: auto;
  }

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

@media (max-width: 720px) {
  .page-shell {
    padding: 18px 14px 40px;
  }

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

  .board-toolbar,
  .board-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination-bar {
    flex-direction: column;
  }

  .hero {
    padding: 22px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .project-table th,
  .project-table td {
    padding: 14px 12px;
  }
}
