﻿:root {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #e5e7eb;
  background: #060916;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(67, 56, 202, 0.18), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(16, 185, 129, 0.22), transparent 35%),
    #060916;
  color: #e5e7eb;
}

.gradient-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(94, 92, 255, 0.25), transparent 40%),
    radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.15), transparent 40%);
  filter: blur(40px);
  z-index: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 96px;
  padding: 4px;
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: auto;
  cursor: pointer;
  z-index: 60;
}

.msp-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.msp-card {
  width: min(920px, 100%);
  padding: 48px;
  border-radius: 30px;
}

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

.tool-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
}

.tool-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tool-card.disabled {
  opacity: 0.65;
}

.tool-card .badge {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #a5b4fc;
  text-transform: capitalize;
}

.tool-card .pill.disabled {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.tool-card .badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.tool-card p {
  flex: 1;
  color: #cbd5f5;
  margin: 0;
}

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

.tool-card .pill.disabled {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.logout-link {
  position: fixed;
  top: 12px;
  right: 140px;
  z-index: 30;
}

.brand-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.login-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}

.login-card {
  width: min(620px, 90%);
  padding: 48px 42px;
  border-radius: 28px;
  display: grid;
  gap: 20px;
  background: rgba(6, 9, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}

.login-card h1 {
  margin: 4px 0 14px;
  font-size: 32px;
  line-height: 1.2;
}

.login-card .lede {
  margin: 0;
  color: #cbd5f5;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: #e2e8f0;
}

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

.login-status {
  min-height: 18px;
  font-size: 13px;
}

.login-status.error {
  color: #fca5a5;
}

.login-hint {
  margin: 0;
  font-size: 13px;
}

.login-register {
  margin-top: 12px;
}

.login-register .register-link {
  width: 100%;
  justify-content: center;
}

.oauth-section {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.oauth-buttons {
  display: grid;
  gap: 10px;
}

.oauth-provider {
  justify-content: center;
  font-weight: 600;
  text-transform: none;
}

.login-guest {
  width: 100%;
  justify-content: center;
}

@media (max-width: 640px) {
  .login-page {
    padding: 24px;
  }

  .login-card {
    padding: 28px;
  }
}

.signature-mark {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 120px;
  max-width: 28vw;
  opacity: 0.9;
  z-index: 5;
  pointer-events: auto;
  user-select: none;
  display: block;
}

.signature-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.demo-watermark {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.6px;
  font-size: 12px;
  color: #041009;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.15);
  user-select: none;
  pointer-events: none; /* avoid interfering with clicks/drag */
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: none;
  padding: 18px 56px;
  background: rgba(6, 9, 22, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand {}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #e5e7eb;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 160ms ease;
}

.pill.primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #041009;
  border: none;
  box-shadow: 0 10px 40px rgba(34, 197, 94, 0.25);
}

.pill.ghost {
  background: rgba(255, 255, 255, 0.05);
}

.pill.tiny {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

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

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding: 60px 56px 20px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.hero.solo {
  text-align: left;
}

.hero-copy h1 {
  font-size: 44px;
  line-height: 1.2;
  margin: 10px 0 12px;
}

.hero .lede {
  color: #cbd5f5;
  margin: 0 0 16px;
}

.hero .eyebrow {
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  color: #94a3ff;
  margin: 0;
}

.hero .accent {
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.stat {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat span {
  color: #a5b4fc;
  font-size: 12px;
}

.stat strong {
  display: block;
  font-size: 20px;
  margin-top: 6px;
}

.muted {
  color: #9ca3af;
}

.workspace {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 10px 0 40px;
  padding: 0 32px 48px;
  display: grid;
  gap: 16px;
}

.panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}

.form-panel {
  background: linear-gradient(135deg, rgba(8, 17, 35, 0.95), rgba(12, 25, 52, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 32px;
  border-radius: 30px;
  box-shadow: 0 28px 60px rgba(5, 9, 23, 0.75);
  position: relative;
  overflow: hidden;
}

.form-panel.collapsed .form-grid {
  display: none;
}

.form-panel.collapsed {
  padding-bottom: 18px;
}

.panel-head-controls {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 4px;
  border-radius: 20px;
  background: rgba(7, 12, 36, 0.5);
}

.pill.tiny {
  padding: 4px 12px;
  font-size: 12px;
}

.panel-head-controls .pill {
  min-width: 90px;
  padding: 6px 18px;
  border-radius: 18px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.2px;
}

.form-panel h2 {
  font-size: 32px;
  margin: 0 0 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(140px, 0.25fr) 1fr;
  grid-template-areas:
    "name description"
    "actions actions";
  gap: 4px;
  align-items: start;
}

.form-grid label span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: #818cf8;
  text-transform: uppercase;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.7);
  color: #f8fafc;
  font-weight: 500;
  transition: border 120ms ease, box-shadow 120ms ease;
}

.form-grid input:focus,
.form-grid textarea:focus {
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
  outline: none;
}

.form-grid textarea {
  min-height: 48px;
  resize: vertical;
}

.form-grid .name-field {
  grid-area: name;
}

.form-grid .desc-field {
  grid-area: description;
}

.form-grid .desc-field textarea {
  min-height: 60px;
}

.form-grid textarea {
  min-height: 120px;
}

.pilots {
  grid-area: actions;
  display: flex;
  justify-content: center;
  margin-top: 0;
  width: 100%;
}

.pilots .pill.primary {
  background: linear-gradient(135deg, #22c55e, #0ea752);
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.35);
  padding: 12px 0;
  font-size: 15px;
  letter-spacing: 0.4px;
  width: 100%;
  border-radius: 16px;
}

.pilots .pill.ghost {
  border-color: rgba(255, 255, 255, 0.35);
  padding: 10px 16px;
}

.glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.dashboard-page .overview-grid,
.dashboard-page .tool-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-page h1 {
  margin: 0 0 6px 0;
  font-size: 32px;
}

.project-title-desc {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.project-title-desc h1 {
  margin: 0;
  white-space: nowrap;
}

.project-title-desc .project-desc {
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.project-header {
  display: grid;
  gap: 12px;
}

.project-title-block {
  display: grid;
  gap: 8px;
}

.project-name-label {
  margin: 0;
}

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

.project-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.overview-page .project-hero {
  display: grid;
  gap: 10px;
}

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

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

.form-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: #e2e8f0;
}

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

input, textarea, select {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
}

textarea {
  resize: vertical;
}

button {
  color: inherit;
}

#projects {
  display: grid;
  gap: 12px;
}

.project {
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.project-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.project-meta {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.project-actions {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.tool-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}

.tool-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tool-summary-card {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 6px;
}

.tool-summary-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-bar {
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-bar > div {
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

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

.tool-close {
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.dashboard-page .project-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-action {
  display: grid;
  gap: 6px;
}

.kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.kanban-head .add-task-btn {
  padding: 6px 10px;
}

.metric {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric span {
  display: block;
  color: #a5b4fc;
  font-size: 12px;
}

.metric strong {
  display: block;
  font-size: 18px;
  margin-top: 4px;
}

.project-title {
  margin: 0 0 4px 0;
}

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

.project-link:hover {
  text-decoration: underline;
}

.project-desc {
  margin: 0;
  color: #cbd5f5;
}

.project-id {
  color: #8b5cf6;
  font-size: 12px;
  align-self: center;
  font-weight: 800;
}

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

.kanban-column {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.kanban-head {
  padding: 12px;
  font-weight: 800;
  color: #a5b4fc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kanban-head .add-task-btn {
  font-size: 11px;
  padding: 4px 10px;
}

.kanban-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  align-items: stretch;
  align-content: flex-start;
  overflow-y: auto;
}

.kanban-list.drag-over {
  outline: 1px dashed rgba(255, 255, 255, 0.2);
  outline-offset: -6px;
}

.kanban-card {
  padding: 14px;
  border-radius: 14px;
  display: grid;
  gap: 10px;
  cursor: grab;
  min-height: 320px;
  max-height: 320px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: transform 140ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

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

.kanban-title-group {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.kanban-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.kanban-title,
.kanban-parent {
  word-break: break-word;
}

.collapsed-due {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.collapsed-due::before {
  content: "Due";
  color: #a5b4fc;
  font-size: 11px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-weight: 800;
}

.collapse-toggle {
  padding: 6px 10px;
}

.kanban-card.collapsed {
  min-height: 0;
  max-height: none;
  height: auto;
  padding: 10px 12px;
  gap: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
}

.kanban-card.collapsed .kanban-meta,
.kanban-card.collapsed .kanban-footer,
.kanban-card.collapsed .meta-panel {
  display: none;
}

.kanban-card.collapsed .kanban-top {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kanban-card.collapsed .kanban-title-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kanban-card.collapsed .kanban-title,
.kanban-card.collapsed .kanban-parent {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kanban-card.collapsed .kanban-parent::before {
  content: "•";
  margin: 0 4px;
  color: rgba(255, 255, 255, 0.5);
}

.kanban-card.collapsed .kanban-parent:empty::before {
  display: none;
  content: "";
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
  border-color: rgba(255, 255, 255, 0.16);
}

.kanban-card.dragging {
  opacity: 0.65;
  cursor: grabbing;
}

.kanban-title {
  font-weight: 700;
}

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

.meta-summary {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.meta-label {
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.summary-desc {
  display: grid;
  gap: 4px;
}

.task-assignee-display {
  justify-self: start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: 999px;
}

.task-desc-display {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #dbeafe;
  max-height: 80px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.kanban-card label span {
  display: block;
  color: #a5b4fc;
  font-size: 12px;
  margin-bottom: 4px;
}

.kanban-card .assignee-field select {
  max-width: 170px;
  padding: 8px 10px;
  font-size: 14px;
}

.kanban-card .task-desc {
  min-height: 70px;
}

.kanban-card textarea {
  resize: none;
}

.kanban-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.kanban-footer .due-slot {
  flex: 1;
}

.kanban-footer .due-empty span {
  color: #cbd5f5;
  font-weight: 600;
}
.kanban-footer .set-due {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.meta-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.meta-toggle:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.meta-panel {
  display: none;
  gap: 10px;
  margin-top: 6px;
  padding: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.meta-panel.open {
  display: grid;
}

.due-slot {
  display: grid;
  gap: 6px;
}

.due-empty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill.tiny {
  padding: 4px 8px;
  font-size: 12px;
}

.kanban-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.pill.danger {
  background: #ef4444;
  border: none;
  color: #0b0f18;
}

.task-due.no-due::placeholder {
  color: #94a3b8;
}

.roadmap-panel .panel-head {
  align-items: flex-start;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.roadmap-card {
  padding: 14px;
  border-radius: 12px;
  display: grid;
  gap: 10px;
}

.roadmap-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.roadmap-card h3 {
  margin: 0;
}

.roadmap-body {
  min-height: 90px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #dbeafe;
  outline: none;
}

.roadmap-body:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
}

.backlog-panel .panel-head {
  align-items: flex-start;
}

.backlog-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.backlog-filters label {
  display: grid;
  gap: 4px;
}

.backlog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.backlog-card {
  padding: 14px;
  border-radius: 12px;
  display: grid;
  gap: 10px;
}

.backlog-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.backlog-card h3 {
  margin: 0;
}

.backlog-fields {
  display: grid;
  gap: 8px;
}

.backlog-field {
  display: grid;
  gap: 4px;
}

.backlog-field span {
  color: #a5b4fc;
  font-size: 12px;
}

.backlog-list {
  display: grid;
  gap: 10px;
}

.backlog-item {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 6px;
  cursor: grab;
}

.backlog-item.dragging {
  opacity: 0.7;
  cursor: grabbing;
}

.backlog-item header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge.priority-high {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.4);
}

.badge.priority-medium {
  background: rgba(250, 204, 21, 0.2);
  border-color: rgba(250, 204, 21, 0.4);
}

.badge.priority-low {
  background: rgba(52, 211, 153, 0.2);
  border-color: rgba(52, 211, 153, 0.4);
}

.badge.status-todo {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}

.badge.status-in-progress {
  background: rgba(244, 114, 182, 0.2);
  border-color: rgba(244, 114, 182, 0.4);
}

.badge.status-later {
  background: rgba(167, 139, 250, 0.2);
  border-color: rgba(167, 139, 250, 0.4);
}

.tag {
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.backlog-actions {
  display: flex;
  gap: 8px;
}

.sprint-panel .panel-head {
  align-items: flex-start;
}

.sprint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.sprint-card {
  padding: 14px;
  border-radius: 12px;
  display: grid;
  gap: 10px;
}

.sprint-fields {
  display: grid;
  gap: 8px;
}

.sprint-fields label {
  display: grid;
  gap: 4px;
}

.sprint-head {
  display: flex;
  justify-content: space-between;
}

.sprint-list {
  display: grid;
  gap: 10px;
}

.sprint-item {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 6px;
  cursor: grab;
}

.sprint-item.dragging {
  opacity: 0.7;
  cursor: grabbing;
}

.sprint-item header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

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

.sprint-progress {
  height: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.sprint-progress > div {
  height: 100%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.resource-panel .panel-head {
  align-items: flex-start;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.resource-card {
  padding: 14px;
  border-radius: 12px;
  display: grid;
  gap: 10px;
}

.resource-fields {
  display: grid;
  gap: 8px;
}

.resource-list {
  display: grid;
  gap: 10px;
}

.resource-item {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 6px;
}

.resource-head,
.resource-item header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.resource-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.settings-fab {
  position: fixed;
  right: 18px;
  bottom: 150px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: radial-gradient(circle at 60% 30%, rgba(79, 70, 229, 0.35), rgba(16, 185, 129, 0.2));
  color: #f1f5f9;
  font-size: 20px;
  cursor: pointer;
  z-index: 6;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.settings-panel {
  position: fixed;
  right: 18px;
  bottom: 206px;
  width: 220px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11, 16, 32, 0.92), rgba(20, 24, 45, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 6;
  backdrop-filter: blur(10px);
}

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

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.dashboard-page.workspace {
  width: 100%;
  margin: 10px 0 40px;
  padding: 0 32px 48px;
}

.kanban-fullpage.workspace {
  width: 100%;
  margin: 0 0 40px;
  padding: 0 32px 48px;
}

.kanban-fullpage .panel {
  width: 100%;
}

.dashboard-page .panel {
  border-radius: 14px;
}

.dashboard-page .project-header {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.overview-page .project-actions {
  position: relative;
  z-index: 2;
}

.overview-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.metric-note {
  margin: 4px 0 0;
  color: #cbd5f5;
  font-size: 13px;
}

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

.overview-card {
  padding: 16px;
  border-radius: 12px;
  display: grid;
  gap: 10px;
}

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

.feature-list {
  margin: 0;
  padding: 0 0 0 16px;
  display: grid;
  gap: 6px;
  color: #dbeafe;
}

.feature-list.compact {
  gap: 4px;
}

.notes-block {
  min-height: 120px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
}

.notes-block:empty::before {
  content: attr(data-placeholder);
  color: #9ca3af;
}

.empty-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: center;
  gap: 16px;
  text-align: left;
}

.empty-tools .empty-copy h2 {
  margin: 6px 0;
}

.tool-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.tool-card-panel {
  padding: 0;
  background: transparent;
  border: none;
}

.tool-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.tool-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px 22px;
  border-radius: 18px;
}

.tool-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tool-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-card-info h3 {
  margin: 0;
  font-size: 20px;
}

.tool-card-info p {
  margin: 0;
  color: #a5b4fc;
  font-size: 14px;
}

.tool-card-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.tool-card-number {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-width: 90px;
}

.tool-card-number strong {
  font-size: 28px;
  line-height: 1.1;
}

.tool-card-number span {
  font-size: 12px;
  color: #cbd5f5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tool-card-remove {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fca5a5;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
}

.tool-card-remove:hover {
  background: rgba(255, 255, 255, 0.16);
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  font-size: 14px;
}

.tool-chip.archived {
  opacity: 0.6;
  border-style: solid;
}

.tool-chip .remove-chip {
  border: none;
  background: transparent;
  color: #fca5a5;
  cursor: pointer;
}

.sticky-actions {
  position: sticky;
  top: 12px;
  z-index: 4;
  padding: 6px 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  z-index: 20;
}

.modal {
  width: min(520px, 92vw);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(11, 16, 32, 0.95), rgba(22, 30, 54, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  display: grid;
  gap: 12px;
}

.reset-modal .modal {
  width: min(400px, 90vw);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.reset-modal .modal .form-grid {
  max-height: 320px;
  overflow-y: auto;
}

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

.modal form {
  display: grid;
  gap: 10px;
}

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

.modal .tool-option {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  display: grid;
  gap: 6px;
}

.modal .tool-option input {
  display: none;
}

.modal .tool-option.selected {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px #22c55e;
}

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

.reset-modal .modal {
  width: min(420px, 92vw);
}

.reset-modal .modal .form-grid {
  display: grid;
  gap: 10px;
}

.reset-modal .modal .form-grid input {
  min-width: 0;
}

.reset-modal .modal .actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.task-table {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.task-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.task-row--head {
  font-weight: 700;
  color: #cbd5f5;
}

.task-row select,
.task-row input[type="date"] {
  width: 100%;
  padding: 10px;
}

.task-save {
  padding: 8px 12px;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 24px 10px;
  }
  .topbar {
    padding: 16px 24px;
  }
}

@media (max-width: 720px) {
  .task-row {
    grid-template-columns: 1fr;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px;
    border-radius: 8px;
  }
  .task-row--head {
    display: none;
  }
  .topbar nav {
    display: none;
  }

  .dashboard-page .project-metrics {
    grid-template-columns: 1fr;
  }
}
