:root {
  --bg: #07111f;
  --text: #f4f7fb;
  --muted: #96a5c1;
  --line: rgba(150, 169, 199, 0.14);
  --accent: #58b7ff;
  --accent-soft: #4de2c5;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --panel: rgba(14, 23, 41, 0.92);
  --panel-soft: rgba(18, 29, 52, 0.92);
  --danger: #ff6f91;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(88, 183, 255, 0.16), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(77, 226, 197, 0.1), transparent 20%),
    linear-gradient(160deg, #040913 0%, #07111f 42%, #0a1628 100%);
  color: var(--text);
}

body {
  padding: 24px;
}

.skip-link {
  position: absolute;
  left: 24px;
  top: -48px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(14, 23, 41, 0.96);
  border: 1px solid rgba(88, 183, 255, 0.28);
  color: #eef6ff;
  transition: top 0.16s ease;
}

.skip-link:focus {
  top: 18px;
}

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

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

.site-shell,
.board-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
}

body.statement-page {
  position: relative;
  overflow-x: hidden;
}

.statement-shell {
  width: min(1220px, 100%);
  position: relative;
  z-index: 1;
}

.ambient-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
  animation: driftGlow 16s ease-in-out infinite alternate;
}

.glow-left {
  top: -120px;
  left: -80px;
  width: 340px;
  height: 340px;
  background: rgba(88, 183, 255, 0.2);
}

.glow-right {
  top: 180px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: rgba(77, 226, 197, 0.12);
  animation-duration: 18s;
}

@keyframes driftGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(18px, -16px, 0) scale(1.08);
  }
}

.statement-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  margin-bottom: 30px;
}

.statement-nav,
.entity-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.statement-nav a,
.entity-footer-links a {
  color: var(--muted);
  font-size: 0.96rem;
}

.statement-nav a:hover,
.entity-footer-links a:hover {
  color: var(--text);
}

.brand-mark,
h1,
h2,
h3,
strong {
  letter-spacing: -0.04em;
}

.brand-mark {
  font-size: 1.2rem;
  font-weight: 700;
}

.statement-main {
  display: grid;
  gap: 60px;
  padding-bottom: 56px;
}

.statement-hero,
.statement-section {
  max-width: 980px;
}

.statement-hero {
  min-height: 64vh;
  display: grid;
  align-content: center;
  padding: 26px 0 12px;
}

.statement-kicker {
  display: inline-block;
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
}

.statement-hero h1 {
  max-width: 8ch;
  margin: 18px 0 0;
  font-size: clamp(4.8rem, 13vw, 9.4rem);
  line-height: 0.84;
}

.statement-subtext {
  max-width: 620px;
  margin: 24px 0 0 8vw;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.55;
  color: #edf2ff;
}

.homepage-main {
  gap: 52px;
}

.homepage-hero h1 {
  max-width: 11ch;
}

.homepage-support {
  max-width: 700px;
  margin: 18px 0 0 8vw;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.homepage-actions {
  margin: 28px 0 0 8vw;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.homepage-button {
  min-width: 180px;
  justify-content: center;
}

.secondary-homepage-button {
  border-color: rgba(255, 255, 255, 0.14);
}

.link-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0 0 8vw;
}

.link-cluster a {
  color: #dce8ff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.inline-story-link,
.story-link {
  color: #eef6ff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.answer-section h2,
.faq-section h2 {
  max-width: 16ch;
}

.answer-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.answer-card,
.faq-card,
.entity-footer {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.answer-card,
.faq-card {
  padding: 22px;
}

.answer-card h3,
.faq-card h3 {
  margin: 0 0 12px;
  font-size: 1.16rem;
}

.answer-card p,
.faq-card p,
.entity-footer-copy,
.entity-footer-meta {
  color: #d3daea;
  line-height: 1.7;
}

.answer-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: #edf2ff;
  line-height: 1.6;
}

.entity-footer {
  max-width: 980px;
  margin-top: 12px;
  padding: 24px;
}

.entity-footer-title {
  font-size: 1.28rem;
  font-weight: 700;
}

.entity-footer-copy {
  margin: 12px 0 0;
}

.entity-footer-contact {
  margin: 12px 0 0;
  color: #edf2ff;
  line-height: 1.7;
}

.entity-footer-contact a {
  color: #edf2ff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.entity-footer-links {
  margin-top: 14px;
}

.entity-footer-meta {
  margin: 10px 0 0;
  color: var(--muted);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 18px;
  margin-top: 28px;
}

.story-card {
  background: linear-gradient(180deg, rgba(18, 29, 52, 0.96), rgba(11, 18, 31, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.story-card h3 {
  margin: 8px 0 12px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.story-card p {
  margin: 0;
  color: #d3daea;
  line-height: 1.7;
}

.story-card .story-link {
  display: inline-flex;
  margin-top: 18px;
}

.story-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

.story-card.featured {
  background:
    radial-gradient(circle at top right, rgba(88, 183, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(19, 32, 56, 0.98), rgba(10, 18, 31, 0.96));
}

.blog-shell {
  width: min(1240px, 100%);
}

.blog-main {
  display: grid;
  gap: 36px;
  padding-bottom: 56px;
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.blog-hero-copy,
.blog-hero-panel,
.blog-card,
.article-shell,
.article-sidebar-card,
.article-section-card,
.article-cta {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.blog-hero-copy {
  padding: 28px;
}

.blog-hero-copy h1 {
  margin: 12px 0 0;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.92;
  max-width: 11ch;
}

.blog-hero-copy p {
  max-width: 680px;
  margin: 18px 0 0;
  color: #d3daea;
  font-size: 1.08rem;
  line-height: 1.8;
}

.blog-hero-panel {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(77, 226, 197, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(18, 29, 52, 0.96), rgba(10, 17, 31, 0.94));
}

.blog-hero-panel h2 {
  margin: 0;
  font-size: 1.4rem;
}

.blog-hero-panel ul {
  margin: 16px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: #edf2ff;
  line-height: 1.65;
}

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

.blog-card {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.blog-card h2,
.blog-card h3 {
  margin: 0;
}

.blog-card p {
  margin: 0;
  color: #d3daea;
  line-height: 1.75;
}

.story-author {
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-card.featured {
  grid-column: span 2;
  background:
    radial-gradient(circle at top right, rgba(88, 183, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(18, 29, 52, 0.98), rgba(10, 18, 31, 0.96));
}

.blog-card .story-link {
  margin-top: 2px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(88, 183, 255, 0.12);
  border: 1px solid rgba(88, 183, 255, 0.18);
  color: #dff0ff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.article-shell {
  padding: 28px;
}

.article-header {
  display: grid;
  gap: 14px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.9;
}

.article-dek {
  max-width: 760px;
  margin: 0;
  color: #e9f1ff;
  font-size: 1.18rem;
  line-height: 1.8;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-meta-row p {
  margin: 0;
}

.article-body {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.article-body p,
.article-body li {
  color: #d7deec;
  line-height: 1.85;
  font-size: 1.05rem;
}

.article-body h2 {
  margin: 16px 0 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
}

.article-body h3 {
  margin: 12px 0 0;
  font-size: 1.35rem;
}

.article-body ul,
.article-body ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.article-lead-box,
.article-section-card,
.article-cta {
  padding: 22px;
}

.article-lead-box,
.article-section-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: 16px;
}

.article-quick-answer {
  margin: 0;
  color: #f3f7ff;
}

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

.article-highlight-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.article-highlight-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.article-highlight-card p {
  margin: 0;
  color: #d3daea;
  line-height: 1.7;
  font-size: 0.98rem;
}

.article-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 24px;
}

.article-sidebar-card {
  padding: 20px;
}

.article-sidebar-card h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.article-sidebar-card p,
.article-sidebar-card li {
  color: #d3daea;
  line-height: 1.7;
}

.article-sidebar-card ul,
.article-sidebar-card ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.article-sidebar-card a {
  color: #eef6ff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-cta {
  display: grid;
  gap: 14px;
  align-items: start;
  background:
    radial-gradient(circle at top right, rgba(77, 226, 197, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(18, 29, 52, 0.98), rgba(10, 18, 31, 0.96));
  overflow: hidden;
}

.article-cta h3,
.article-cta p {
  margin: 0;
}

.article-cta p {
  color: #d3daea;
  line-height: 1.75;
  max-width: 760px;
}

.article-cta .button {
  display: inline-flex;
  width: fit-content;
  justify-content: center;
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.article-breadcrumbs a {
  color: #dce8ff;
}

.statement-section h2 {
  max-width: 14ch;
  margin: 14px 0 0;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.95;
}

.statement-copy {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: clamp(1.12rem, 1.8vw, 1.36rem);
  line-height: 1.7;
  color: #edf2ff;
}

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

.reality-list {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.reality-list span {
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
  color: #dce8ff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reality-list span::before {
  content: "";
  width: 30px;
  height: 1px;
  margin-right: 10px;
  background: linear-gradient(90deg, rgba(88, 183, 255, 0.95), rgba(77, 226, 197, 0.55));
}

.closing-section {
  padding-top: 20px;
  max-width: 920px;
}

.closing-line {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1;
  color: #eaf1ff;
}

.closing-line + .closing-line {
  margin-top: 10px;
}

.closing-line-strong {
  color: #ffffff;
}

.reveal-section {
  opacity: 0;
  transform: translateY(14px);
  animation: revealUp 0.72s ease forwards;
}

.reveal-section:nth-of-type(2) {
  animation-delay: 0.08s;
}

.reveal-section:nth-of-type(3) {
  animation-delay: 0.16s;
}

.reveal-section:nth-of-type(4) {
  animation-delay: 0.24s;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.board-login {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
}

.board-login-card {
  width: min(460px, 100%);
}

.topbar,
.board-topbar,
.top-actions,
.project-controls,
.hero-actions,
.modal-actions,
.board-actions,
.ticket-meta,
.ticket-footer,
.seed-box,
.workspace-summary-row,
.entity-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.board-topbar {
  justify-content: space-between;
  margin-bottom: 28px;
}

.text-link,
.muted,
.section-kicker,
.stat-label,
.eyebrow {
  color: var(--muted);
}

.button,
.pill {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 16px;
}

.pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.button {
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--accent-soft), #31c7aa);
  color: #041117;
  font-weight: 700;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.button.danger {
  background: rgba(255, 111, 145, 0.14);
  border-color: rgba(255, 111, 145, 0.34);
  color: #ffd5de;
}

.button.compact {
  padding: 8px 12px;
  font-size: 0.88rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: center;
  min-height: 70vh;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.95;
  margin: 0 0 16px;
}

.hero-text,
.panel p,
.scanner-banner p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #d3daea;
}

.hero-card,
.content-grid,
.kanban-board,
.ticket-list,
.stack-form {
  display: grid;
  gap: 18px;
}

.content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 32px 0;
}

.stat-card,
.panel,
.scanner-banner,
.kanban-column,
.ticket-card,
.modal-card,
.control-bar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card,
.panel,
.scanner-banner {
  padding: 24px;
}

.control-bar {
  display: grid;
  grid-template-columns: minmax(340px, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  margin-bottom: 14px;
}

.workspace-summary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(77, 226, 197, 0.04));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}

.workspace-summary h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.workspace-summary-row {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.workspace-summary-row.top {
  align-items: center;
}

.project-switcher-stack {
  flex: 1;
  min-width: 260px;
}

.project-switcher {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  max-width: min(100%, 480px);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.project-switcher:hover,
.project-switcher[aria-expanded="true"] {
  border-color: rgba(77, 226, 197, 0.52);
  background: rgba(77, 226, 197, 0.06);
  transform: translateY(-1px);
}

.project-switcher-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft), #8cf6e5);
  box-shadow: 0 0 0 4px rgba(77, 226, 197, 0.12);
  flex-shrink: 0;
}

.project-switcher-label {
  display: block;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.project-switcher-menu {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  padding: 12px;
  max-width: 440px;
  border-radius: 16px;
  background: rgba(7, 18, 34, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.project-switcher-option {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
}

.project-switcher-option:hover,
.project-switcher-option.active {
  border-color: rgba(77, 226, 197, 0.36);
  background: rgba(77, 226, 197, 0.08);
}

.project-switcher-option strong {
  display: block;
  margin-bottom: 2px;
}

.project-controls.compact {
  justify-content: flex-start;
  align-items: end;
  align-content: end;
  padding: 0;
  gap: 8px;
}

#current-project-meta {
  margin: 8px 0 0;
}

.workspace-shortcuts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.workspace-shortcut-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #dce8ff;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.workspace-shortcut-link:hover {
  transform: translateY(-1px);
  border-color: rgba(77, 226, 197, 0.28);
  background: rgba(77, 226, 197, 0.08);
}

#manage-projects-button {
  align-self: center;
}

.inline-field,
.stack-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inline-field {
  min-width: 120px;
}

.inline-field.small {
  min-width: 102px;
}

.inline-field span,
.stack-form span {
  font-size: 0.92rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 12px 14px;
}

select option {
  background: #0d182b;
  color: #f4f7fb;
}

textarea {
  resize: vertical;
}

.kanban-board {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  overflow: visible;
}

.board-sidepanel {
  display: grid;
  gap: 10px;
  align-content: start;
}

.leaderboard-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 12px;
}

.leaderboard-card.compact {
  width: 100%;
}

.leaderboard-card h2 {
  margin: 2px 0 8px;
  font-size: 1rem;
}

.leaderboard-list {
  display: grid;
  gap: 6px;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.leaderboard-rank {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(77, 226, 197, 0.12);
  color: #acf4e7;
  font-weight: 700;
}

.leaderboard-copy {
  display: grid;
  gap: 2px;
}

.leaderboard-copy strong {
  font-size: 0.88rem;
}

.kanban-column {
  min-height: 460px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.kanban-column.drag-over {
  border-color: rgba(77, 226, 197, 0.58);
  background: linear-gradient(180deg, rgba(77, 226, 197, 0.08), rgba(14, 23, 41, 0.92));
  transform: translateY(-2px);
}

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

.column-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.column-header h2 {
  margin: 0;
}

.column-count {
  color: var(--muted);
  font-size: 0.9rem;
}

.ticket-list {
  flex: 1;
  align-content: start;
  min-height: 220px;
}

.ticket-card {
  padding: 14px;
  cursor: grab;
  background: var(--panel-soft);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.ticket-card:hover {
  transform: translateY(-1px);
  border-color: rgba(77, 226, 197, 0.24);
}

.ticket-card.dragging {
  opacity: 0.72;
}

.ticket-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.ticket-card p {
  margin: 0 0 10px;
  color: #d6dded;
  font-size: 0.94rem;
  line-height: 1.5;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(77, 226, 197, 0.12);
  color: #acf4e7;
  font-size: 0.82rem;
}

.tag.user {
  background: rgba(91, 129, 255, 0.14);
  color: #cfdbff;
}

.tag.score {
  background: rgba(255, 196, 87, 0.14);
  color: #ffd98d;
}

.empty-state {
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 24px 12px;
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.empty-state.compact {
  min-height: 120px;
  display: grid;
  place-items: center;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(8px);
  z-index: 20;
}

.modal.hidden,
.hidden {
  display: none !important;
}

.modal-card {
  position: relative;
  width: min(560px, 100%);
  padding: 28px;
}

.modal-card.wide {
  width: min(700px, 100%);
}

.modal-divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}

.icon-button {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  cursor: pointer;
}

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

.entity-list {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  max-height: 220px;
  overflow-y: auto;
}

.entity-row {
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.entity-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 10px;
  z-index: 40;
}

.toast {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(7, 18, 34, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.toast.error {
  border-color: rgba(255, 111, 145, 0.38);
}

.admin-page {
  min-height: 100vh;
}

.admin-shell {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.admin-login-wrap {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
}

.admin-login-card,
.admin-panel,
.admin-stats,
.admin-table-shell,
.admin-empty,
.admin-toolbar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-login-card,
.admin-panel,
.admin-toolbar {
  padding: 24px;
}

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

.admin-header h1,
.admin-login-card h1 {
  margin: 10px 0 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 0.95;
}

.admin-header p,
.admin-login-card p,
.admin-panel p,
.admin-empty p {
  color: #d3daea;
  line-height: 1.7;
}

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

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 14px;
}

.admin-search-row,
.admin-filter-row,
.admin-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}

.admin-stats {
  padding: 18px 20px;
}

.admin-stat {
  min-width: 140px;
  display: grid;
  gap: 4px;
}

.admin-stat strong {
  font-size: 1.4rem;
}

.admin-table-shell {
  overflow: hidden;
}

.admin-quick-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
}

.admin-table th,
.admin-table td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.admin-table th:first-child,
.admin-table td:first-child,
.admin-table th:last-child,
.admin-table td:last-child {
  text-align: left;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.admin-user-row.is-editing {
  background: rgba(88, 183, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(88, 183, 255, 0.18);
}

.admin-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-email {
  font-weight: 700;
  color: #eef6ff;
}

.admin-meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.admin-created {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-status-button,
.admin-paid-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #dce8ff;
  cursor: default;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.admin-status-button.is-editable,
.admin-paid-pill:hover {
  cursor: pointer;
}

.admin-status-button.is-editable:hover,
.admin-status-button.is-editable:focus-visible,
.admin-paid-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}

.admin-status-button.is-editable:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 1px rgba(88, 183, 255, 0.14),
    0 0 0 3px rgba(88, 183, 255, 0.12);
}

.admin-status-button.is-active,
.admin-paid-pill.is-active {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.24);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.08);
}

.admin-status-button.is-inactive,
.admin-paid-pill.is-inactive {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.18);
}

.admin-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.admin-status-dot.is-active {
  background: #22c55e;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.42);
}

.admin-status-dot.is-inactive {
  background: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.26);
}

.admin-empty {
  padding: 36px 24px;
  text-align: center;
}

.admin-hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .hero,
  .content-grid,
  .control-bar {
    grid-template-columns: 1fr;
  }

  .statement-main {
    gap: 48px;
  }

  .statement-hero {
    min-height: auto;
    padding-top: 18px;
  }

  .statement-subtext {
    margin-left: 0;
  }

  .homepage-support,
  .homepage-actions,
  .link-cluster {
    margin-left: 0;
  }

  .answer-grid,
  .faq-grid,
  .story-grid,
  .blog-grid,
  .blog-hero,
  .article-layout,
  .article-highlight-list {
    grid-template-columns: 1fr;
  }

  .blog-card.featured {
    grid-column: span 1;
  }

  .article-sidebar {
    position: static;
  }

  .board-topbar,
  .project-controls.compact,
  .workspace-summary-row {
    align-items: flex-start;
  }

  .project-switcher {
    width: 100%;
  }

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

  .board-sidepanel {
    gap: 14px;
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) and (min-width: 961px) {
  .kanban-board {
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
  }
}

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

  .statement-topbar {
    margin-bottom: 22px;
    align-items: flex-start;
    flex-direction: column;
  }

  .statement-main {
    gap: 40px;
    padding-bottom: 40px;
  }

  .statement-hero h1 {
    max-width: 100%;
    font-size: clamp(4rem, 18vw, 5.6rem);
  }

  .blog-hero-copy h1,
  .article-header h1 {
    max-width: 100%;
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .statement-section h2,
  .closing-line {
    max-width: 100%;
    line-height: 1.02;
  }

  .reality-list {
    gap: 10px;
  }

  .reality-list span {
    width: 100%;
    padding: 6px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .split-fields {
    grid-template-columns: 1fr;
  }

  .board-actions,
  .project-controls.compact {
    width: 100%;
  }

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

  .admin-table {
    min-width: 980px;
  }
}
