@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  --font-sans: 'DM Sans', 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', monospace;

  /* Deep dark palette */
  --bg: #060b14;
  --bg-soft: rgba(8, 14, 25, 0.85);
  --panel: rgba(10, 17, 30, 0.80);
  --panel-strong: rgba(8, 14, 26, 0.96);
  --panel-hover: rgba(14, 22, 38, 0.88);
  --border: rgba(99, 130, 180, 0.12);
  --border-bright: rgba(99, 130, 180, 0.22);

  --text: #d8e8f8;
  --text-soft: #6a85a8;
  --text-muted: #3d5270;

  /* Accent: electric cyan-blue */
  --accent: #4fc3f7;
  --accent-strong: #0288d1;
  --accent-glow: rgba(79, 195, 247, 0.18);

  --danger: #f06292;
  --danger-bg: rgba(240, 98, 146, 0.1);
  --success: #4dd0a8;
  --warning: #ffca28;

  --shadow: 0 32px 80px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0,0,0,0.4);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
  --radius: 1.1rem;
  --radius-sm: 0.75rem;
  --radius-full: 999px;

  --transition: 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="light"] {
  --bg: #f0f4fa;
  --bg-soft: rgba(255, 255, 255, 0.82);
  --panel: rgba(255, 255, 255, 0.90);
  --panel-strong: rgba(250, 252, 255, 0.97);
  --panel-hover: rgba(245, 249, 255, 0.95);
  --border: rgba(51, 80, 130, 0.11);
  --border-bright: rgba(51, 80, 130, 0.22);
  --text: #0e1f38;
  --text-soft: #4a6285;
  --text-muted: #8ba5c5;
  --accent: #0277bd;
  --accent-strong: #01579b;
  --accent-glow: rgba(2, 119, 189, 0.1);
  --danger: #d81b60;
  --danger-bg: rgba(216, 27, 96, 0.08);
  --success: #00897b;
  --warning: #f57f17;
  --shadow: 0 20px 60px rgba(14, 31, 56, 0.1), 0 2px 8px rgba(14,31,56,0.06);
  --shadow-sm: 0 4px 16px rgba(14, 31, 56, 0.08);
}

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

html, body {
  min-height: 100%;
  font-family: var(--font-sans);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(79, 195, 247, 0.055) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 85% 85%, rgba(33, 94, 206, 0.06) 0%, transparent 55%);
  background-attachment: fixed;
}

html[data-theme="light"] body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(2, 119, 189, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 85% 85%, rgba(1, 87, 155, 0.04) 0%, transparent 55%);
}

.app-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle 600px at 10% 15%, rgba(79, 195, 247, 0.04), transparent),
    radial-gradient(circle 800px at 90% 90%, rgba(33, 94, 206, 0.04), transparent);
}

/* Subtle animated grid */
.app-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 195, 247, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 195, 247, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 100%);
}

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

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

/* ── SHELL ── */
.shell, .auth-shell {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
}

/* ── TOPBAR ── */
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.brand-wrap, .topbar-actions, .topnav, .user-chip, .auth-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, #4fc3f7 0%, #7b61ff 60%, #f06292 100%);
  box-shadow: 0 0 0 4px rgba(79, 195, 247, 0.14), 0 4px 12px rgba(79, 195, 247, 0.3);
  flex-shrink: 0;
}

.topnav {
  gap: 0.25rem;
}

.topnav a {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}

.topnav a:hover {
  color: var(--text);
  background: rgba(79, 195, 247, 0.07);
}

/* ── PILLS & BADGES ── */
.storage-pill, .role-pill, .mini-badge, .sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(99, 130, 180, 0.07);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.role-pill.admin {
  color: var(--warning);
  background: rgba(255, 202, 40, 0.07);
  border-color: rgba(255, 202, 40, 0.2);
}

.sync-pill.error {
  color: var(--danger);
  border-color: rgba(240, 98, 146, 0.3);
}

/* ── BUTTONS ── */
.theme-toggle, .ghost-button, .primary-button, .danger-button {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.theme-toggle, .ghost-button {
  background: rgba(99, 130, 180, 0.07);
  color: var(--text-soft);
  border-color: var(--border);
}

.theme-toggle:hover, .ghost-button:hover {
  background: rgba(99, 130, 180, 0.13);
  color: var(--text);
  border-color: var(--border-bright);
}

.primary-button {
  background: linear-gradient(135deg, #4fc3f7, #0288d1);
  color: #fff;
  border: none;
  box-shadow: 0 6px 24px rgba(79, 195, 247, 0.28);
}

.primary-button:hover {
  background: linear-gradient(135deg, #67cff9, #039be5);
  box-shadow: 0 8px 32px rgba(79, 195, 247, 0.38);
  transform: translateY(-1px);
}

.primary-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(79, 195, 247, 0.22);
}

.danger-button {
  background: linear-gradient(135deg, #f06292, #d81b60);
  color: white;
  border: none;
  box-shadow: 0 6px 20px rgba(240, 98, 146, 0.25);
}

.danger-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(240, 98, 146, 0.35);
}

.danger-button.subtle {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(240, 98, 146, 0.22);
  box-shadow: none;
}

.danger-button.subtle:hover {
  background: rgba(240, 98, 146, 0.15);
  transform: translateY(-1px);
}

.small {
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
}

.board-card:hover, .kanban-card:hover {
  transform: translateY(-1px);
}

/* ── PAGE CONTENT ── */
.page-content {
  margin-top: 1.25rem;
}

/* ── FLASH ── */
.flash-stack {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.flash {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
  animation: flash-in 0.25s ease;
}

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

.flash-success { border-color: rgba(77, 208, 168, 0.3); color: var(--success); }
.flash-error   { border-color: rgba(240, 98, 146, 0.3); color: var(--danger); }

.flash button {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.1rem;
  opacity: 0.6;
  transition: opacity var(--transition);
}
.flash button:hover { opacity: 1; }

/* ── PANELS ── */
.panel, .hero-card, .kanban-list, .new-list-card, .modal-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

/* ── HERO CARD ── */
.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
  gap: 1.1rem;
  padding: 1.4rem;
}

.board-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.4rem;
}

.hero-copy h1, .board-hero h1, .auth-hero h1 {
  margin: 0.3rem 0 0.65rem;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-copy p, .board-hero p, .section-heading p, .auth-hero p {
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 0.925rem;
}

.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── STATS ── */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hero-stats.compact { margin-top: 0.6rem; }

.hero-stats article {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(79, 195, 247, 0.04);
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}

.hero-stats article:hover {
  border-color: rgba(79, 195, 247, 0.2);
  background: rgba(79, 195, 247, 0.07);
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.hero-stats span {
  color: var(--text-soft);
  font-size: 0.8rem;
}

/* ── SECTION HEADING ── */
.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2, .section-heading h3,
.admin-section h3, .modal-head h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 0.4rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* ── GRIDS ── */
.content-grid, .board-layout, .admin-grid, .modal-grid, .selector-grid {
  display: grid;
  gap: 1.1rem;
}

.content-grid { margin-top: 1.25rem; }
.wide-panel { padding: 1.25rem; }

/* ── BOARD GRID ── */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.board-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(8, 14, 25, 0.5);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

html[data-theme="light"] .board-card {
  background: rgba(255, 255, 255, 0.85);
}

.board-card:hover {
  border-color: rgba(79, 195, 247, 0.25);
  background: rgba(79, 195, 247, 0.03);
  box-shadow: 0 8px 32px rgba(79, 195, 247, 0.08);
}

.board-card h3 { font-size: 0.95rem; font-weight: 600; }
.board-card p, .table-muted { color: var(--text-soft); font-size: 0.85rem; }

.board-card-top, .board-card-stats,
.member-row, .label-row, .assignee-row, .table-user {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.board-card-updated {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

/* ── FORMS ── */
.stack-form, .inline-form, .compact-form {
  display: grid;
  gap: 0.85rem;
}

.inline-form {
  grid-auto-flow: column;
  align-items: center;
}

.stack-form label, .compact-form label {
  display: grid;
  gap: 0.38rem;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 500;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(6, 11, 20, 0.6);
  color: var(--text);
  outline: none;
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  background: rgba(255, 255, 255, 0.85);
}

input:focus, textarea:focus, select:focus {
  border-color: rgba(79, 195, 247, 0.45);
  box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
  background: rgba(6, 11, 20, 0.8);
}

html[data-theme="light"] input:focus,
html[data-theme="light"] textarea:focus,
html[data-theme="light"] select:focus {
  background: rgba(255,255,255,0.97);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

/* ── REMEMBER ME CHECKBOX ── */
.remember-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-soft);
  font-size: 0.875rem;
  cursor: pointer;
  user-select: none;
}

.remember-row input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 5px;
  border: 1px solid var(--border-bright);
  background: rgba(6, 11, 20, 0.6);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all var(--transition);
  padding: 0;
}

.remember-row input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.18);
}

.remember-row input[type="checkbox"]:checked::before {
  content: '';
  width: 5px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}

/* ── EMPTY STATE ── */
.empty-state {
  padding: 2.5rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

/* ── BOARD LAYOUT ── */
.board-layout {
  margin-top: 1.25rem;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.board-columns {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.board-columns::-webkit-scrollbar { height: 6px; }
.board-columns::-webkit-scrollbar-track { background: transparent; }
.board-columns::-webkit-scrollbar-thumb {
  background: rgba(79, 195, 247, 0.15);
  border-radius: var(--radius-full);
}

/* ── KANBAN ── */
.kanban-list, .new-list-card {
  min-width: 300px;
  padding: 0.9rem;
}

.kanban-list.dragging, .kanban-card.dragging { opacity: 0.5; }

.kanban-list-head, .modal-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  justify-content: space-between;
}

.list-title-form {
  display: grid;
  gap: 0.5rem;
  flex: 1;
}

.drag-cue {
  padding-top: 0.65rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.cards {
  display: grid;
  gap: 0.65rem;
  min-height: 4rem;
  margin: 0.85rem 0;
}

.kanban-card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(4, 8, 18, 0.5);
  transition: all var(--transition);
}

.kanban-card:hover {
  border-color: rgba(79, 195, 247, 0.2);
  background: rgba(10, 18, 34, 0.75);
}

html[data-theme="light"] .kanban-card {
  background: rgba(255, 255, 255, 0.9);
}

.open-card {
  width: 100%;
  text-align: left;
  padding: 0.85rem;
  border: none;
  background: transparent;
  color: inherit;
}

.open-card h3 {
  margin: 0.4rem 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.open-card p {
  color: var(--text-soft);
  line-height: 1.5;
  font-size: 0.84rem;
}

/* ── LABEL CHIP ── */
.label-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--label-color) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--label-color) 35%, transparent);
  font-size: 0.78rem;
  font-weight: 500;
}

/* ── MEMBER PILL ── */
.member-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(99, 130, 180, 0.06);
  border: 1px solid var(--border);
  font-size: 0.83rem;
}

.member-pill small { color: var(--text-soft); }

/* ── AVATAR ── */
.avatar {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--radius-full);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.avatar.tiny {
  width: 1.6rem;
  height: 1.6rem;
  font-size: 0.65rem;
}

/* ── USER CHIP ── */
.user-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(99, 130, 180, 0.06);
}

.user-chip small {
  display: block;
  color: var(--text-soft);
  font-size: 0.75rem;
}

/* ── SIDEBAR ── */
.sidebar-section { padding: 1rem; }

/* ── ACTIVITY & COMMENTS ── */
.activity-list, .comment-list { display: grid; gap: 0.65rem; }

.activity-item, .comment-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(99, 130, 180, 0.04);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.comment-item { grid-template-columns: auto 1fr; }

.activity-item p, .comment-item p {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
}

.activity-item time, .comment-item time {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.comment-item strong { display: block; font-size: 0.88rem; }

/* ── MODAL ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(2, 4, 14, 0.72);
  backdrop-filter: blur(4px);
}

.modal-backdrop.hidden { display: none; }

.modal-panel {
  width: min(1120px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.2rem;
  background: var(--panel-strong);
}

.modal-grid, .admin-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
}

.modal-side, .checkbox-list { display: grid; gap: 0.85rem; }
.modal-section { padding: 0.9rem; }

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

.checkbox-chip {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.875rem;
}

.checkbox-chip input { width: auto; }

/* ── AUTH PAGE ── */
.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.5rem;
}

.auth-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 1.1rem;
}

.auth-hero, .auth-card { padding: 1.4rem; }

.auth-hero {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(140%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.auth-hero .brand {
  margin-bottom: 0.5rem;
}

.auth-hero h1 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.auth-switch {
  margin: 0.9rem 0 0;
  color: var(--text-soft);
  font-size: 0.875rem;
}

.auth-switch a {
  color: var(--accent);
  font-weight: 500;
  transition: opacity var(--transition);
}
.auth-switch a:hover { opacity: 0.8; }

/* ── TABLE ── */
.table-wrap { overflow: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th, .data-table td {
  padding: 0.8rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.data-table tr:hover td {
  background: rgba(79, 195, 247, 0.02);
}

.empty-comments {
  padding: 1.25rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  text-align: center;
  font-size: 0.875rem;
}

.wrap { flex-wrap: wrap; }

/* ── SCROLLBARS (global) ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(79, 195, 247, 0.15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(79, 195, 247, 0.28);
}

/* ── RESPONSIVE ── */
@media (max-width: 1080px) {
  .hero-card, .board-layout, .auth-shell,
  .modal-grid, .selector-grid, .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell, .auth-shell, .auth-page { padding: 0.85rem; }

  .topbar, .board-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions, .brand-wrap { flex-wrap: wrap; }
  .hero-stats { grid-template-columns: 1fr; }

  .kanban-list, .new-list-card {
    min-width: min(88vw, 300px);
  }
}
