:root {
  --bg: #eef3f8;
  --panel: rgba(255, 255, 255, 0.7);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.5);
  --ink: #111827;
  --muted: #667085;
  --line: rgba(86, 104, 132, 0.2);
  --blue: #0a84ff;
  --teal: #00a389;
  --green: #30a46c;
  --amber: #b87514;
  --rose: #d92d5b;
  --violet: #7c3aed;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-dark: rgba(17, 24, 39, 0.68);
  --shadow: 0 22px 58px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.08);
  --inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  --focus-ring: 0 0 0 4px rgba(10, 132, 255, 0.16);
  --radius: 8px;
  --float-radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.94) 0%, rgba(230, 239, 250, 0.82) 42%, rgba(246, 248, 252, 0.96) 100%),
    linear-gradient(35deg, rgba(10, 132, 255, 0.1), transparent 36%, rgba(0, 163, 137, 0.08) 72%, transparent),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, transparent 0 24%, rgba(255, 255, 255, 0.45) 24% 25%, transparent 25% 58%, rgba(10, 132, 255, 0.07) 58% 59%, transparent 59%),
    linear-gradient(160deg, rgba(124, 58, 237, 0.06), transparent 34%, rgba(0, 163, 137, 0.06));
  opacity: 0.9;
  animation: ambientShift 18s var(--ease) infinite alternate;
  pointer-events: none;
}

::selection {
  background: rgba(10, 132, 255, 0.18);
}

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

button {
  border: 0;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring), var(--inner-glow);
}

@keyframes ambientShift {
  from {
    transform: translate3d(-1%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(1%, 1%, 0) scale(1.02);
  }
}

@keyframes surfaceIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.boot-screen,
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.boot-screen h1 {
  margin: 8px 0 0;
  font-size: 28px;
}

.auth-card {
  width: min(440px, 100%);
  display: grid;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--float-radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  animation: surfaceIn 520ms var(--ease) both;
}

.auth-copy {
  padding: 42px;
  background: #0f172a;
  color: #eff6ff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.auth-copy h1 {
  margin: 12px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.auth-copy p {
  color: #cbd5e1;
  line-height: 1.7;
  max-width: 520px;
}

.auth-highlights {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.auth-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dbeafe;
}

.auth-form {
  padding: 42px;
  display: grid;
  gap: 18px;
  align-content: center;
}

.auth-form h2 {
  margin: 0;
  font-size: 28px;
}

.auth-form p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 306px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  background: transparent;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.sidebar-collapsed .sidebar {
  display: none;
}

.sidebar {
  min-height: calc(100vh - 32px);
  max-height: calc(100vh - 32px);
  position: sticky;
  top: 16px;
  overflow: hidden auto;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--float-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.48)),
    rgba(255, 255, 255, 0.58);
  color: var(--ink);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(34px) saturate(1.45);
  -webkit-backdrop-filter: blur(34px) saturate(1.45);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.11), var(--inner-glow);
  animation: surfaceIn 520ms var(--ease) both;
  scrollbar-width: thin;
}

.brand-row,
.topbar,
.row,
.toolbar,
.card-title,
.share-row,
.mini-row {
  display: flex;
  align-items: center;
}

.toolbar {
  flex-wrap: wrap;
  gap: 8px;
}

.edit-box {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: var(--inner-glow);
}

.edit-box .field input {
  background: #ffffff;
}

.brand-row {
  justify-content: space-between;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.35), transparent 38%),
    linear-gradient(180deg, #66b4ff, #0a84ff 58%, #006bd6);
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.28);
}

.brand-text strong {
  display: block;
  font-size: 16px;
}

.brand-text span,
.sidebar .muted {
  color: var(--muted);
}

.sidebar-section {
  display: grid;
  gap: 10px;
}

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.client-list {
  display: grid;
  gap: 10px;
  max-height: 42vh;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.client-item {
  width: 100%;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--inner-glow);
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease);
}

.client-item:hover,
.client-item.active {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(10, 132, 255, 0.34);
  box-shadow: 0 12px 26px rgba(10, 132, 255, 0.12), var(--inner-glow);
  transform: translateY(-1px);
}

.client-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.client-item strong,
.project-card strong,
.todo-card strong {
  overflow-wrap: anywhere;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topbar {
  min-height: 76px;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.54)),
    var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--float-radius);
  backdrop-filter: blur(32px) saturate(1.45);
  -webkit-backdrop-filter: blur(32px) saturate(1.45);
  position: sticky;
  top: 16px;
  z-index: 20;
  box-shadow: var(--shadow-soft), var(--inner-glow);
  animation: surfaceIn 560ms var(--ease) 80ms both;
}

.project-focus .topbar {
  min-height: 66px;
  padding: 12px 18px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.01em;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--inner-glow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(10, 132, 255, 0.14);
  color: #0066cc;
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(290px, 420px) minmax(0, 1fr);
  gap: 16px;
  padding: 0;
  align-items: start;
  animation: surfaceIn 560ms var(--ease) 130ms both;
}

.content-grid.focus-grid {
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
}

.project-focus .detail-area {
  gap: 12px;
}

.project-focus .panel-header {
  align-items: center;
  padding: 14px 16px;
}

.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.52)),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft), var(--inner-glow);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  overflow: clip;
}

.panel-header {
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-header h2,
.panel-header h3 {
  margin: 0;
  letter-spacing: -0.01em;
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.project-list {
  display: grid;
  gap: 12px;
  padding: 14px;
  max-height: calc(100vh - 220px);
  overflow: auto;
  scrollbar-width: thin;
}

.project-card,
.todo-card,
.insight-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.66);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06), var(--inner-glow);
  backdrop-filter: blur(20px) saturate(1.22);
  -webkit-backdrop-filter: blur(20px) saturate(1.22);
}

.project-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease);
}

.project-card:hover,
.project-card.active {
  border-color: rgba(10, 132, 255, 0.4);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 34px rgba(10, 132, 255, 0.14), var(--inner-glow);
  transform: translateY(-2px);
}

.project-card-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.project-card-actions .btn.icon {
  width: 34px;
  height: 34px;
  min-height: 34px;
}

.btn.icon.subtle {
  background: rgba(226, 232, 240, 0.72);
  color: var(--ink);
}

.project-meta,
.todo-meta,
.calendar-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.todo-status-select {
  min-height: 28px;
  padding: 3px 28px 3px 9px;
  border: 1px solid rgba(86, 104, 132, 0.2);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.12);
  color: #0756a4;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.pill.green {
  background: rgba(48, 164, 108, 0.14);
  color: #1f7a4d;
}

.pill.amber {
  background: rgba(184, 117, 20, 0.15);
  color: #8a540c;
}

.pill.rose {
  background: rgba(217, 45, 91, 0.13);
  color: #a81e49;
}

.pill.gray {
  background: rgba(100, 116, 139, 0.12);
  color: #475467;
}

.pill.blue {
  background: rgba(10, 132, 255, 0.14);
  color: #0756a4;
}

.detail-area {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.project-tools {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.project-tools .toolbar .btn {
  flex: 0 1 auto;
}

.edit-panel {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  padding: 14px;
}

.insight-card {
  padding: 14px;
  display: grid;
  gap: 6px;
  min-height: 86px;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.insight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08), var(--inner-glow);
}

.insight-card strong {
  font-size: 24px;
}

.insight-card span {
  color: var(--muted);
  font-size: 13px;
}

.tabs {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  background: rgba(225, 232, 242, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  box-shadow: var(--inner-glow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.tab-btn {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #475569;
  background: transparent;
  cursor: pointer;
  transition:
    transform 160ms var(--ease),
    background 160ms var(--ease),
    color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.tab-btn:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.tab-btn.active {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08), var(--inner-glow);
}

.workspace-view {
  display: none;
}

.workspace-view.active {
  display: block;
}

.todo-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  padding: 14px;
}

.todo-layout.no-composer {
  grid-template-columns: minmax(0, 1fr);
}

.todo-board {
  display: grid;
  gap: 12px;
}

.todo-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.todo-column {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.36)),
    var(--panel-soft);
  overflow: hidden;
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: var(--inner-glow);
}

.todo-column h3 {
  margin: 0;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.36);
}

.todo-list {
  min-height: 220px;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 10px;
}

.todo-card {
  padding: 12px;
  display: grid;
  gap: 8px;
  cursor: grab;
}

.todo-card:hover {
  border-color: rgba(10, 132, 255, 0.24);
}

.todo-card.drag-source {
  opacity: 0.55;
}

.todo-dragging {
  cursor: grabbing;
  user-select: none;
}

[data-drop-status].drag-over {
  background: rgba(10, 132, 255, 0.1);
  box-shadow: inset 0 0 0 2px rgba(10, 132, 255, 0.22);
  border-radius: var(--radius);
}

.done-folder {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--inner-glow);
  overflow: hidden;
}

.done-folder-toggle {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.done-folder-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.done-folder-hint {
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 13px;
}

.done-list {
  min-height: 80px;
  border-top: 1px solid var(--line);
}

.todo-card:active {
  cursor: grabbing;
}

.todo-card.editing {
  cursor: default;
}

.todo-card .card-title {
  align-items: flex-start;
}

.todo-card .card-title strong {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.todo-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.todo-edit-form {
  min-width: 0;
}

.todo-edit-form .form-grid {
  grid-template-columns: 1fr;
}

.todo-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.form-stack {
  display: grid;
  gap: 12px;
}

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

.field {
  display: grid;
  gap: 6px;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(86, 104, 132, 0.2);
  border-radius: var(--radius);
  padding: 9px 11px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.7)),
    rgba(255, 255, 255, 0.76);
  box-shadow: var(--inner-glow);
  transition:
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease),
    background 160ms var(--ease);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(10, 132, 255, 0.26);
  background: rgba(255, 255, 255, 0.9);
}

.date-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.date-control input {
  min-width: 0;
}

.btn.asap {
  min-height: 40px;
  padding-inline: 13px;
  border-radius: var(--radius);
  color: var(--blue);
  background: rgba(10, 132, 255, 0.1);
  border-color: rgba(10, 132, 255, 0.18);
  font-weight: 800;
}

.field textarea {
  min-height: 82px;
  resize: vertical;
}

.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: rgba(226, 232, 240, 0.76);
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--inner-glow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease),
    filter 160ms var(--ease),
    background 160ms var(--ease);
}

.btn:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08), var(--inner-glow);
}

.btn:active,
.project-card:active,
.client-item:active,
.todo-card:active {
  transform: translateY(0) scale(0.985);
}

.btn.primary {
  background: linear-gradient(180deg, #52a8ff, var(--blue));
  color: white;
  box-shadow: 0 12px 24px rgba(10, 132, 255, 0.22), var(--inner-glow);
}

.btn.dark {
  background: #0f172a;
  color: white;
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
}

.btn.icon {
  width: 38px;
  padding: 0;
}

.btn.danger {
  color: white;
  background: var(--rose);
}

.btn.icon.danger {
  background: var(--rose);
  color: white;
}

.toolbar .btn {
  min-width: 0;
}

.toolbar .btn:not(.icon) {
  flex: 1 1 auto;
}

.btn.full {
  width: 100%;
}

.map-wrap {
  padding: 14px;
}

.roadmap-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 2px;
}

.roadmap-toolbar h3,
.dependency-list h3 {
  margin: 0;
}

.roadmap-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.roadmap-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a3b8;
}

.legend-dot.open {
  background: #64748b;
}

.legend-dot.progress {
  background: #b45309;
}

.legend-dot.done {
  background: #16803c;
}

.project-map {
  position: relative;
  height: min(58vh, 560px);
  min-height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 132, 255, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(180deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(237, 243, 251, 0.68));
  touch-action: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(26px) saturate(1.3);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
}

.dependency-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.dependency-actions {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.dependency-layer marker path {
  fill: var(--blue);
}

.dependency-path,
.dependency-preview {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3.2;
  stroke-linecap: round;
  marker-end: url(#roadmap-arrow);
  filter: drop-shadow(0 2px 2px rgba(37, 99, 235, 0.22));
}

.dependency-preview {
  stroke-dasharray: 8 8;
  opacity: 0.72;
}

.map-node {
  position: absolute;
  z-index: 3;
  width: 224px;
  min-height: 112px;
  transform: translate(-50%, -50%);
  padding: 10px;
  border: 1px solid rgba(10, 132, 255, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 249, 253, 0.72)),
    var(--panel);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.15), var(--inner-glow);
  cursor: grab;
  user-select: none;
  touch-action: none;
  backdrop-filter: blur(22px) saturate(1.22);
  -webkit-backdrop-filter: blur(22px) saturate(1.22);
  transition:
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease),
    border-color 160ms var(--ease);
}

.map-node:hover {
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.18), var(--inner-glow);
  border-color: rgba(10, 132, 255, 0.42);
}

.map-node.amber {
  border-color: #f59e0b;
}

.map-node.green {
  border-color: #22c55e;
}

.map-node.gray {
  border-color: #94a3b8;
}

.map-node.rose {
  border-color: #fb7185;
}

.map-node:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(0.985);
}

.map-node-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.map-node strong {
  display: block;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.map-node p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.node-connector {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.13);
  color: #0756a4;
  cursor: crosshair;
  box-shadow: var(--inner-glow);
}

.node-connector:hover {
  background: var(--blue);
  color: #ffffff;
}

.map-edge-remove {
  position: absolute;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #0756a4;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(10, 132, 255, 0.22);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14), var(--inner-glow);
  pointer-events: auto;
  cursor: pointer;
}

.map-edge-remove:hover {
  color: white;
  background: var(--rose);
  border-color: rgba(217, 45, 91, 0.36);
}

.dependency-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.dependency-rows {
  display: grid;
  gap: 8px;
}

.dependency-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.dependency-row span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  overflow-wrap: anywhere;
}

.calendar-wrap {
  padding: 14px;
}

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

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--inner-glow);
}

.weekday,
.calendar-day {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.weekday:nth-child(7n),
.calendar-day:nth-child(7n) {
  border-right: 0;
}

.weekday {
  padding: 10px;
  background: rgba(17, 24, 39, 0.82);
  color: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  min-height: 116px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.66);
  transition: background 160ms var(--ease);
}

.calendar-day:hover {
  background: rgba(255, 255, 255, 0.86);
}

.calendar-day.outside {
  background: rgba(248, 250, 252, 0.52);
  color: #94a3b8;
}

.day-number {
  font-weight: 800;
  font-size: 13px;
}

.calendar-item {
  margin-top: 6px;
  padding: 5px 6px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.13);
  color: #0756a4;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.share-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  padding: 14px;
}

.share-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--inner-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.share-feed {
  display: grid;
  gap: 10px;
  align-content: start;
}

.share-row {
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--inner-glow);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.share-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08), var(--inner-glow);
}

.share-row > span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius);
}

.empty-state strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: min(420px, calc(100vw - 36px));
  display: grid;
  gap: 8px;
}

.toast-item {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(16, 24, 40, 0.78);
  color: white;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: surfaceIn 220ms var(--ease) both;
}

.app-settled .sidebar,
.app-settled .topbar,
.app-settled .content-grid {
  animation: none;
}

body::before,
.auth-card,
.sidebar,
.topbar,
.content-grid,
.panel,
.toast-item {
  animation: none !important;
}

.btn,
.project-card,
.client-item,
.tab-btn,
.field input,
.field select,
.field textarea,
.todo-card,
.map-node,
.share-row,
.insight-card {
  transition: none !important;
}

.btn:hover,
.project-card:hover,
.client-item:hover,
.tab-btn:hover,
.todo-card:hover,
.btn:active,
.project-card:active,
.client-item:active,
.todo-card:active {
  transform: none !important;
}

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

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .content-grid,
  .todo-layout,
  .share-layout {
    grid-template-columns: 1fr;
  }

  .project-list {
    max-height: none;
  }
}

@media (max-width: 860px) {
  .auth-card,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell {
    padding: 10px;
    gap: 10px;
  }

  .sidebar {
    position: relative;
    top: auto;
    min-height: auto;
    max-height: none;
    border-radius: var(--float-radius);
  }

  .client-list {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    max-height: none;
  }

  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    border-radius: var(--float-radius);
  }

  .summary-grid,
  .todo-columns,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .calendar-day {
    min-height: 92px;
    padding: 6px;
  }

  .map-node {
    width: 170px;
  }
}

@media (max-width: 620px) {
  .auth-form,
  .content-grid {
    padding: 0;
  }

  .topbar {
    padding: 16px;
  }

  .panel-header,
  .calendar-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .tabs {
    grid-auto-flow: row;
    width: 100%;
  }

  .tab-btn {
    justify-content: center;
  }

  .toolbar,
  .topbar-actions,
  .project-tools {
    width: 100%;
    justify-items: stretch;
  }

  .toolbar .btn:not(.icon),
  .topbar-actions .btn,
  .user-pill {
    width: 100%;
  }

  .project-map {
    min-height: 430px;
  }

  .map-node {
    width: 158px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
