:root {
  --bg: #080808;
  --bg-2: #0a0a0a;
  --surface: #0f0f0f;
  --surface-2: #111111;
  --card: #141414;
  --card-2: #161616;
  --border: #1f1f1f;
  --border-2: #2a2a2a;
  --amber: #f0a500;
  --amber-hover: #ffb800;
  --amber-dim: #c07d00;
  --rust: #d94f1e;
  --green: #22c55e;
  --blue: #4a7cff;
  --violet: #9b6dff;
  --text: #f0ebe1;
  --soft: #b8b0a4;
  --muted: #60584f;
  --muted-2: #6b6460;
  --dim: #282220;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 220px),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  opacity: 0.38;
  z-index: 100;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--dim);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-2);
}

#app {
  position: relative;
  z-index: 1;
}

.app-shell {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  height: 100vh;
  width: 100vw;
  background: var(--bg);
}

.side-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.brand-mark {
  width: 28px;
  height: 28px;
  margin-top: 14px;
  border: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: #050505;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.rail-nav {
  width: 100%;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail-button {
  position: relative;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: color 0.18s ease, background 0.18s ease;
}

.rail-button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: transparent;
}

.rail-button.active {
  background: rgba(240, 165, 0, 0.15);
  color: var(--amber);
}

.rail-button.active::before {
  background: var(--amber);
}

.rail-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.rail-icon {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.rail-label {
  position: absolute;
  left: 76px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 132px;
  pointer-events: none;
  opacity: 0;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #101010;
  color: var(--text);
  font-size: 12px;
  box-shadow: var(--shadow);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
}

.rail-button:hover .rail-label {
  opacity: 1;
  transform: translate(6px, -50%);
}

.role-avatar {
  margin-top: auto;
  margin-bottom: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(240, 165, 0, 0.42);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--amber);
  font-family: "Syne", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 11px;
  background: rgba(240, 165, 0, 0.08);
}

.workspace {
  min-width: 0;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 26px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 15, 15, 0.95);
}

.page-kicker {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 11px;
}

h1,
h2,
h3,
h4,
.heading-font {
  font-family: "Syne", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
}

h2 {
  margin: 0;
  font-size: 18px;
}

h3 {
  margin: 0;
  font-size: 15px;
}

p {
  margin: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.filter-tabs,
.view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.role-pill,
.filter-pill {
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  transition: background 0.16s ease, color 0.16s ease;
}

.role-pill.active,
.filter-pill.active {
  background: rgba(240, 165, 0, 0.14);
  color: var(--amber);
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  min-height: 34px;
  border-radius: 7px;
  padding: 8px 13px;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.primary-button {
  background: var(--amber);
  color: #050505;
}

.primary-button:hover {
  background: var(--amber-hover);
}

.secondary-button {
  background: var(--card);
  color: var(--text);
  border-color: var(--border-2);
}

.ghost-button {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.danger-button {
  background: var(--rust);
  color: var(--text);
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.icon-button.alert::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rust);
}

.content {
  min-width: 0;
  overflow: auto;
  padding: 20px 26px 34px;
}

.fade-in {
  animation: fade-in 0.25s ease both;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 16px;
}

.wide-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.hero-panel,
.panel,
.stat-card,
.talent-card,
.project-card,
.brief-card,
.profile-panel,
.modal-card,
.landing-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}

.hero-panel {
  position: relative;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(240, 165, 0, 0.12), rgba(240, 165, 0, 0.02) 62%),
    #120b02;
  border-color: rgba(240, 165, 0, 0.22);
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 18px solid rgba(240, 165, 0, 0.08);
  box-shadow:
    0 0 0 20px rgba(240, 165, 0, 0.035),
    0 0 0 42px rgba(240, 165, 0, 0.025);
}

.hero-copy,
.hero-score {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--amber);
  font-family: "Syne", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 10px;
  text-transform: uppercase;
}

.hero-title {
  margin: 2px 0 6px;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
}

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

.soft {
  color: var(--soft);
}

.hero-score {
  min-width: 116px;
  text-align: center;
}

.score-value {
  color: var(--amber);
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.score-label {
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}

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

.stat-card {
  min-height: 76px;
  padding: 14px;
  background: var(--card-2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stat-value {
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
}

.panel {
  min-width: 0;
  background: var(--card);
}

.panel-header {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.panel-body {
  padding: 12px 14px;
}

.panel-body.tight {
  padding: 8px;
}

.row-list {
  display: flex;
  flex-direction: column;
}

.data-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.58);
}

.data-row:last-child {
  border-bottom: 0;
}

.row-title {
  color: var(--text);
  font-weight: 800;
}

.row-meta {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-weight: 800;
  white-space: nowrap;
}

.badge {
  min-height: 20px;
  padding: 3px 8px;
  font-size: 10px;
}

.tag {
  min-height: 21px;
  padding: 4px 8px;
  font-size: 10px;
  background: var(--dim);
  color: var(--muted-2);
}

.badge.green {
  color: var(--green);
  background: rgba(34, 197, 94, 0.12);
}

.badge.amber {
  color: var(--amber);
  background: rgba(240, 165, 0, 0.13);
}

.badge.rust {
  color: var(--rust);
  background: rgba(217, 79, 30, 0.13);
}

.badge.blue {
  color: var(--blue);
  background: rgba(74, 124, 255, 0.14);
}

.badge.violet {
  color: var(--violet);
  background: rgba(155, 109, 255, 0.14);
}

.progress-track {
  width: 100%;
  height: 4px;
  border-radius: 6px;
  background: var(--border-2);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--amber);
}

.activity-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.58);
}

.activity-row:last-child {
  border-bottom: 0;
}

.activity-line {
  color: var(--soft);
  font-size: 12px;
}

.talent-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.talent-mini {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px;
  min-width: 0;
}

.avatar {
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-weight: 900;
}

.avatar.sm {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

.avatar.md {
  width: 42px;
  height: 42px;
  font-size: 14px;
}

.avatar.lg {
  width: 58px;
  height: 58px;
  font-size: 20px;
}

.compact-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 8px;
  margin-bottom: 14px;
}

.field,
.select {
  min-height: 38px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.field:focus,
.select:focus {
  border-color: rgba(240, 165, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.08);
}

.talent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
}

.talent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.talent-card {
  min-height: 154px;
  padding: 14px;
  text-align: left;
  color: inherit;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.talent-card:hover,
.talent-card.active {
  border-color: var(--amber);
  transform: translateY(-1px);
}

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

.talent-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}

.profile-panel {
  align-self: start;
  position: sticky;
  top: 0;
  min-height: calc(100vh - 104px);
  background: var(--card);
  overflow: hidden;
}

.profile-head {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.profile-section {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

.profile-section:last-child {
  border-bottom: 0;
}

.section-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.metric-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px;
  text-align: center;
  background: var(--surface);
}

.metric-value {
  color: var(--amber);
  font-family: "Syne", "Segoe UI", sans-serif;
  font-weight: 900;
}

.metric-label {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

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

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 12px;
}

.kanban-column {
  min-width: 0;
}

.kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.kanban-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-weight: 900;
}

.project-card {
  padding: 12px;
  margin-bottom: 8px;
  background: var(--card-2);
}

.project-card.accent-blue {
  border-left: 3px solid var(--blue);
}

.project-card.accent-amber {
  border-left: 3px solid var(--amber);
}

.project-card.accent-rust {
  border-left: 3px solid var(--rust);
}

.project-card.accent-green {
  border-left: 3px solid var(--green);
}

.project-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack .avatar {
  margin-left: -7px;
}

.avatar-stack .avatar:first-child {
  margin-left: 0;
}

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

.brief-card {
  padding: 14px;
  background: var(--card-2);
  color: inherit;
  text-align: left;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.brief-card:hover,
.brief-card.active {
  border-color: var(--amber);
  transform: translateY(-1px);
}

.match-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 3px solid var(--amber);
  color: var(--amber);
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.review-quote {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.portfolio-thumb {
  height: 120px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(240, 165, 0, 0.2), transparent 44%),
    linear-gradient(225deg, rgba(74, 124, 255, 0.15), transparent 42%),
    var(--surface);
  display: grid;
  place-items: center;
  color: var(--soft);
  font-family: "Syne", "Segoe UI", sans-serif;
  font-weight: 900;
}

.chart {
  height: 220px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding-top: 20px;
}

.chart-bar {
  flex: 1;
  min-width: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bar-track {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: end;
}

.bar-fill {
  width: 100%;
  min-height: 8px;
  border-radius: 8px 8px 3px 3px;
  background: rgba(240, 165, 0, 0.3);
}

.bar-fill.current {
  background: var(--amber);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(9, minmax(88px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.flow-step {
  min-height: 112px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: var(--card);
  opacity: 0.56;
}

.flow-step.done {
  opacity: 1;
  border-color: rgba(34, 197, 94, 0.42);
}

.flow-step.active {
  opacity: 1;
  border-color: var(--amber);
  background: rgba(240, 165, 0, 0.06);
}

.flow-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--muted);
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 900;
}

.flow-step.done .flow-number {
  color: #041006;
  background: var(--green);
}

.flow-step.active .flow-number {
  color: #050505;
  background: var(--amber);
}

.db-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.db-table {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  padding: 14px;
}

.db-table ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.landing-shell {
  height: 100vh;
  overflow: auto;
  background: var(--bg-2);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: "Syne", "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: 17px;
  border: 0;
  background: transparent;
  padding: 0;
}

.landing-hero {
  min-height: calc(100vh - 200px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.85fr);
  gap: 40px;
  align-items: center;
  padding: 44px 28px;
  max-width: 1260px;
  margin: 0 auto;
}

.landing-title {
  margin: 10px 0 18px;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  font-weight: 900;
  max-width: 780px;
}

.landing-subtitle {
  max-width: 620px;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.65;
}

.landing-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-visual {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  min-height: 430px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.visual-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.visual-stat {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  padding: 12px;
}

.visual-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.visual-card {
  min-height: 190px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  padding: 12px;
}

.landing-section {
  border-top: 1px solid var(--border);
  padding: 24px 28px 50px;
}

.landing-inner {
  max-width: 1260px;
  margin: 0 auto;
}

.landing-card-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-card {
  padding: 18px;
  min-height: 180px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
}

.modal-card {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.modal-body {
  padding: 16px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  color: var(--muted);
  font-size: 11px;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-weight: 800;
}

textarea.field {
  min-height: 110px;
  padding-top: 10px;
  resize: vertical;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  max-width: 360px;
  border: 1px solid rgba(240, 165, 0, 0.35);
  border-radius: 8px;
  background: #120c04;
  color: var(--text);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 82px 18px 32px;
  background:
    radial-gradient(circle at 18% 18%, rgba(240, 165, 0, 0.12), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(74, 124, 255, 0.08), transparent 24%),
    var(--bg);
}

.auth-logo {
  position: fixed;
  top: 20px;
  left: 22px;
}

.auth-card {
  width: min(460px, 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.96);
  box-shadow: var(--shadow);
  padding: 22px;
}

.auth-heading {
  margin-bottom: 18px;
}

.auth-heading h1 {
  font-size: 26px;
  margin: 4px 0 8px;
}

.auth-message,
.auth-error {
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 12px;
}

.auth-message {
  border: 1px solid rgba(240, 165, 0, 0.25);
  background: rgba(240, 165, 0, 0.09);
  color: var(--amber);
}

.auth-error {
  border: 1px solid rgba(217, 79, 30, 0.35);
  background: rgba(217, 79, 30, 0.1);
  color: #ff9a74;
}

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

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-weight: 800;
}

.auth-form .primary-button {
  width: 100%;
  margin-top: 4px;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 16px;
}

.demo-account {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--soft);
  padding: 9px 10px;
  text-align: left;
}

.demo-account:hover {
  border-color: rgba(240, 165, 0, 0.55);
}

.demo-account strong {
  color: var(--text);
  font-family: "Syne", "Segoe UI", sans-serif;
}

.demo-account span {
  color: var(--muted);
  font-size: 12px;
}

.auth-switch {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.auth-switch button {
  border: 0;
  background: transparent;
  color: var(--amber);
  font-weight: 800;
}

.session-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 5px 10px 5px 6px;
}

.inline-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.access-panel {
  max-width: 720px;
}

.empty-state {
  min-height: 120px;
  border: 1px dashed var(--border-2);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 18px;
}

@media (max-width: 1180px) {
  .dashboard-grid,
  .talent-layout,
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    min-height: auto;
    position: static;
  }

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

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 12;
  }
}

@media (max-width: 860px) {
  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .side-rail {
    position: sticky;
    top: 0;
    z-index: 30;
    flex-direction: row;
    justify-content: space-between;
    height: 62px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 10px;
  }

  .brand-mark,
  .role-avatar {
    margin: 0;
  }

  .rail-nav {
    width: auto;
    margin: 0;
    flex: 1;
    flex-direction: row;
    justify-content: center;
    overflow-x: auto;
  }

  .rail-button {
    width: 44px;
    min-height: 44px;
    flex: 0 0 auto;
    border-radius: 8px;
  }

  .rail-button::before,
  .rail-label {
    display: none;
  }

  .workspace {
    height: auto;
    min-height: calc(100vh - 62px);
    grid-template-rows: auto 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    padding: 14px;
  }

  .topbar-actions {
    width: 100%;
    overflow-x: auto;
  }

  .content {
    padding: 14px;
  }

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

  .hero-title {
    font-size: 21px;
  }

  .stats-grid,
  .landing-card-grid,
  .visual-board,
  .visual-top,
  .form-grid,
  .talent-strip {
    grid-template-columns: 1fr;
  }

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

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

  .landing-nav {
    padding: 0 14px;
    gap: 12px;
  }

  .landing-hero,
  .landing-section {
    padding-left: 14px;
    padding-right: 14px;
  }
}
