@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #13202b;
  --bg-alt: #1b2b39;
  --panel: #f4f7f6;
  --ink: #1d2a35;
  --ink-soft: #556371;
  --accent: #8cae9d;
  --accent-2: #89a8bf;
  --accent-3: #b4a1c2;
  --domain-body-rgb: 63, 160, 120;
  --domain-being-rgb: 74, 126, 212;
  --domain-balance-rgb: 214, 150, 78;
  --domain-business-rgb: 186, 88, 140;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(18, 29, 40, 0.24);
  --text-size-display: clamp(36px, 5vw, 64px);
  --text-size-h2: clamp(26px, 3vw, 40px);
  --text-size-h3: 20px;
  --text-size-body-lg: 18px;
  --text-size-body: 14px;
  --text-size-body-sm: 13px;
  --text-size-meta: 12px;
  --text-size-micro: 10px;
  --line-height-tight: 1.2;
  --line-height-body: 1.5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at top, #24394a 0%, var(--bg-alt) 50%, var(--bg) 100%);
  color: var(--white);
  font-size: var(--text-size-body);
  line-height: var(--line-height-body);
  min-height: 100vh;
  overflow-x: hidden;
}

.page-shell {
  background: radial-gradient(circle at top, #263f52 0%, var(--bg-alt) 60%, var(--bg) 100%);
  margin: 0;
  padding: 0;
  padding-top: 56px;
}

.page-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 32px 6vw;
  position: relative;
  z-index: 10;
  gap: 18px;
  flex-wrap: wrap;
}

.site-strip {
  padding: 0 6vw;
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #203446 0%, #1a2c3b 100%);
  font-size: var(--text-size-meta);
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.8);
  z-index: 1000;
}

.site-strip p {
  margin: 0;
}

.strip-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  padding: 6px 12px;
  border-radius: 12px;
  overflow: visible;
}

.co-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.strip-logo {
  height: 40px;
  width: auto;
  display: block;
}

.strip-logo.tenant-logo {
  height: 40px;
  max-width: 180px;
  object-fit: contain;
  object-position: center;
  width: auto;
  flex-shrink: 0;
}

.strip-logo.platform-logo {
  height: 40px;
  max-width: 190px;
  object-fit: contain;
  object-position: left center;
}

.tenant-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(22, 43, 57, 0.08);
  border: 1px solid rgba(34, 64, 84, 0.2);
  color: #223444;
  font-weight: 700;
  font-size: var(--text-size-body-sm);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.co-brand-divider {
  width: 1px;
  height: 28px;
  background: rgba(35, 60, 77, 0.26);
  border-radius: 1px;
}

.strip-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.strip-actions .link-pill[data-tooltip] {
  position: relative;
}

.strip-actions .link-pill[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 18, 26, 0.95);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-size-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform-origin: center;
}

.strip-actions .link-pill[data-tooltip]:hover::after,
.strip-actions .link-pill[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
}

.icon-pill {
  padding: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.monogram-letter {
  font-weight: 700;
  font-size: var(--text-size-body-sm);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
}

.icon-home {
  width: 20px;
  height: 20px;
  display: block;
  color: rgba(255, 255, 255, 0.9);
}

.icon-home * {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

.header-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.header-progress-title {
  font-size: var(--text-size-micro);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
}

.header-progress-rings {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.header-progress .ring-card {
  padding: 6px 8px;
  border-radius: 12px;
  border-width: 2px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.05);
  animation: none;
  text-decoration: none;
  color: inherit;
  min-width: 72px;
}

.header-progress .ring {
  --size: 42px;
  animation: none;
}

.header-progress .ring::after {
  inset: 4px;
}

.header-progress .ring span {
  font-size: var(--text-size-micro);
}

.header-progress .ring-label {
  font-size: var(--text-size-micro);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ring-meta {
  display: block;
  margin-top: 2px;
  font-size: var(--text-size-micro);
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.88;
}

.page-content {
  padding: 0 6vw 80px;
  position: relative;
  z-index: 10;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 6vw 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10;
}

.site-footer p {
  margin: 8px 0 0;
  font-size: var(--text-size-body-sm);
  color: rgba(255, 255, 255, 0.75);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.site-footer-links a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: var(--text-size-body-sm);
}

.site-footer-links a:hover {
  text-decoration: underline;
}

.admin-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(20, 20, 42, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px 12px;
  font-size: var(--text-size-body-sm);
  color: var(--ink);
  border-bottom: 1px solid rgba(20, 20, 42, 0.08);
  white-space: nowrap;
}

.admin-table th {
  font-weight: 700;
  background: rgba(137, 168, 191, 0.16);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-inline-form {
  display: grid;
  gap: 6px;
}

.admin-inline-form input {
  min-width: 180px;
  font-size: var(--text-size-body-sm);
  padding: 8px 10px;
}

.org-logo-preview {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 20, 42, 0.16);
  border-radius: 12px;
  padding: 10px 12px;
  width: fit-content;
  max-width: 100%;
  margin: 6px 0 10px;
}

.org-logo-preview img {
  display: block;
  width: auto;
  height: auto;
  max-height: 64px;
  max-width: min(280px, 80vw);
  object-fit: contain;
  object-position: left center;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 12px;
}

.coachmark {
  position: absolute;
  max-width: 240px;
  padding: 10px 14px;
  background: rgba(20, 30, 38, 0.95);
  color: #f5f7fa;
  border-radius: 12px;
  font-size: var(--text-size-meta);
  line-height: 1.3;
  box-shadow: 0 16px 30px rgba(15, 25, 33, 0.35);
  z-index: 20;
}

.coachmark::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 16px;
  width: 12px;
  height: 12px;
  background: rgba(20, 30, 38, 0.95);
  transform: rotate(45deg);
}

.bg-noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero {
  padding: 40px 6vw 80px;
  position: relative;
  z-index: 10;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 220px;
  height: 64px;
  border-radius: 12px;
  background: transparent;
  color: #1b1626;
  font-weight: 700;
  overflow: visible;
}

.brand-logo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.brand-name {
  font-size: var(--text-size-h3);
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.nav-actions form,
.page-nav form {
  margin: 0;
}

button {
  border: none;
  padding: 12px 20px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
}

.link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.link-pill.ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-nav .link-pill.active,
.page-nav .link-pill[aria-current="page"] {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 24px rgba(10, 20, 30, 0.3);
}

.page-nav .link-pill.ghost.active,
.page-nav .link-pill.ghost[aria-current="page"] {
  background: rgba(255, 255, 255, 0.18);
}

.page-nav .link-pill.solid.active,
.page-nav .link-pill.solid[aria-current="page"] {
  filter: brightness(1.05);
}

.solid {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #12212d;
  box-shadow: 0 12px 30px rgba(30, 61, 79, 0.24);
}

.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.panel-card.light .ghost,
.panel-card.light .link-pill.ghost,
.panel-card.light button.ghost,
.panel-card.light .link-pill {
  color: var(--ink);
  border-color: rgba(20, 20, 42, 0.2);
}

.panel-card.light .ghost {
  background: rgba(20, 20, 42, 0.06);
}

.panel-card.light .solid {
  color: #1a1523;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: var(--text-size-meta);
  color: var(--accent-2);
}

h1 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: var(--text-size-display);
  line-height: var(--line-height-tight);
  margin: 16px 0;
}

h2 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: var(--text-size-h2);
  line-height: var(--line-height-tight);
  margin: 14px 0;
}

h3 {
  font-size: var(--text-size-h3);
  line-height: 1.3;
  margin: 10px 0;
}

.lead {
  font-size: var(--text-size-body-lg);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 32px 0;
}

.metrics {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.metric {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.metric-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-size-meta);
}

.hero-panel {
  display: grid;
  gap: 24px;
}

.panel-card {
  background: var(--panel);
  color: var(--ink);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  animation: float-in 0.9s ease both;
  align-self: start;
}

.panel-card[class*="section-"] {
  position: relative;
  border: 1px solid rgba(20, 20, 42, 0.12);
}

.panel-card[class*="section-"]::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(61, 214, 208, 0.6), rgba(255, 179, 71, 0.6));
  opacity: 0.9;
}

.panel-card.section-journal::before {
  background: linear-gradient(90deg, #89a8bf, #8cae9d);
}

.panel-card.section-journal {
  background: linear-gradient(180deg, rgba(137, 168, 191, 0.14), rgba(247, 250, 249, 0.98));
}

.panel-card.section-progress::before {
  background: linear-gradient(90deg, #8cae9d, #89a8bf);
}

.panel-card.section-progress {
  background: linear-gradient(180deg, rgba(140, 174, 157, 0.16), rgba(28, 42, 55, 0.98));
}

.panel-card.section-todo::before {
  background: linear-gradient(90deg, #b4a1c2, #89a8bf);
}

.panel-card.section-todo {
  background: linear-gradient(180deg, rgba(180, 161, 194, 0.12), rgba(247, 250, 249, 0.98));
}

.panel-card.section-kanban::before {
  background: linear-gradient(90deg, #8cae9d, #89a8bf);
}

.panel-card.section-kanban {
  background: linear-gradient(180deg, rgba(140, 174, 157, 0.14), rgba(247, 250, 249, 0.98));
}

.panel-card.section-schedule::before {
  background: linear-gradient(90deg, #b4a1c2, #8cae9d);
}

.panel-card.section-schedule {
  background: linear-gradient(180deg, rgba(180, 161, 194, 0.12), rgba(247, 250, 249, 0.98));
  border: 1px solid rgba(180, 161, 194, 0.35);
  box-shadow: 0 16px 34px rgba(74, 84, 101, 0.16);
}

.panel-card.section-schedule::before {
  box-shadow: 0 6px 16px rgba(90, 104, 126, 0.35);
}

.panel-card.section-goals::before {
  background: linear-gradient(90deg, #89a8bf, #8cae9d);
}

.panel-card.section-goals {
  background: linear-gradient(180deg, rgba(137, 168, 191, 0.12), rgba(247, 250, 249, 0.98));
}

.panel-card.section-quick::before {
  background: linear-gradient(90deg, #8cae9d, #b4a1c2);
}

.panel-card.section-quick {
  background: linear-gradient(180deg, rgba(140, 174, 157, 0.12), rgba(247, 250, 249, 0.98));
}

.panel-card.section-guided::before {
  background: linear-gradient(90deg, #b4a1c2, #89a8bf);
}

.panel-card.section-guided {
  background: linear-gradient(180deg, rgba(180, 161, 194, 0.12), rgba(247, 250, 249, 0.98));
}

.panel-card.section-entries::before {
  background: linear-gradient(90deg, #89a8bf, #8cae9d);
}

.panel-card.section-entries {
  background: linear-gradient(180deg, rgba(137, 168, 191, 0.12), rgba(27, 42, 57, 0.98));
}

.panel-card[class*="section-"]::after {
  content: none;
}

.panel-card.light {
  background: #f7f4ee;
  color: var(--ink);
}

.panel-card.dark {
  background: linear-gradient(145deg, #233647, #1c2d3c);
  color: var(--white);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-size-meta);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.panel-body h3 {
  margin-top: 16px;
  margin-bottom: 12px;
}

.panel-body p {
  color: var(--ink-soft);
}

.panel-card.dark .panel-body p {
  color: rgba(255, 255, 255, 0.75);
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 20px;
}

.chip-row span {
  background: rgba(63, 214, 208, 0.2);
  color: #0f2f2f;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: var(--text-size-meta);
}

.panel-card.dark .chip-row span {
  background: rgba(255, 179, 71, 0.2);
  color: #fff7ef;
}

.pulse-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  display: grid;
  gap: 8px;
}

.pulse-list li strong {
  color: var(--accent);
}

.grid-section {
  padding: 80px 6vw;
  background: linear-gradient(180deg, rgba(15, 12, 29, 0) 0%, rgba(20, 20, 42, 0.9) 60%, rgba(20, 20, 42, 1) 100%);
}

.section-title {
  max-width: 560px;
  margin-bottom: 40px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.grid-cards article {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 20px;
  backdrop-filter: blur(14px);
}

.log-section {
  padding: 80px 6vw;
}

.log-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  background: #f1efe7;
  color: var(--ink);
  padding: 40px;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.log-card h2 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

form {
  display: grid;
  gap: 16px;
}

label {
  font-size: var(--text-size-body);
  font-weight: 600;
}

textarea,
select,
input {
  width: 100%;
  border: 1px solid rgba(20, 20, 42, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: "Manrope", sans-serif;
  font-size: var(--text-size-body);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-message {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: var(--text-size-body-sm);
  font-weight: 600;
  color: #f0edf6;
  background: rgba(255, 255, 255, 0.08);
}

.form-message:empty {
  display: none;
}

.form-message.error {
  color: #7b1f2a;
  background: #ffe5e8;
  border-color: #f1b2bb;
  box-shadow: 0 0 0 2px rgba(123, 31, 42, 0.12);
}

.form-message.success {
  color: #175534;
  background: #e4f7eb;
  border-color: #9fd6b2;
  box-shadow: 0 0 0 2px rgba(23, 85, 52, 0.1);
}

.auth-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 40px;
  margin-top: 40px;
}

.auth-form {
  background: rgba(15, 12, 29, 0.6);
  padding: 24px;
  border-radius: 20px;
}

.hint {
  font-size: var(--text-size-body-sm);
  color: rgba(255, 255, 255, 0.7);
}

.panel-card.light .hint,
.panel-card.light .toggle-row,
.panel-card.light .ring-legend {
  color: var(--ink-soft);
}

.hint a {
  color: var(--accent-2);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 24px 0 40px;
}

.guided-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 20px 0 30px;
}

.prompt-text {
  font-size: var(--text-size-body-lg);
  color: var(--ink);
}

.stats-card {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px;
  border-radius: 20px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}

.kanban-board {
  margin: 40px 0;
}

.board-grid .kanban-board {
  margin-top: 0;
}

.board-grid {
  display: grid;
  gap: 20px;
  margin-top: 30px;
  align-items: start;
}

.dashboard-columns {
  display: grid;
  gap: 20px;
  margin-top: 24px;
  align-items: start;
}

.activity-panel {
  margin-top: 16px;
}

.stack-block {
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(20, 20, 42, 0.2);
  background: rgba(255, 255, 255, 0.45);
}

.field-disabled {
  opacity: 0.6;
}

.dashboard-col {
  display: grid;
  gap: 20px;
}

@media (min-width: 980px) {
  .dashboard-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .dashboard-columns.single-panel-mode {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 980px) {
  .board-grid {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    align-items: start;
  }

  .board-grid.single-panel-mode {
    grid-template-columns: minmax(0, 1fr);
  }
}

#todo-section .task-list {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

.kanban-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.kanban-column {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px;
  min-height: 180px;
}

.kanban-column.drag-over {
  border-color: rgba(61, 214, 208, 0.8);
  box-shadow: 0 0 0 2px rgba(61, 214, 208, 0.2);
}

.kanban-column h3 {
  margin-top: 0;
  font-size: calc(var(--text-size-body) + 2px);
}

.kanban-column ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.kanban-column li {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px;
  font-size: var(--text-size-body-sm);
}

.kanban-card {
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
}

.kanban-card > div {
  pointer-events: none;
}

.kanban-card a,
.kanban-card button,
.kanban-card .drag-handle {
  pointer-events: auto;
}

.drag-handle {
  cursor: grab;
  user-select: none;
  font-size: var(--text-size-micro);
  letter-spacing: 2px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(20, 20, 42, 0.08);
  color: rgba(20, 20, 42, 0.7);
}

.panel-card.dark .drag-handle {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.kanban-card a.link-pill {
  padding: 6px 10px;
  font-size: var(--text-size-meta);
  line-height: 1.2;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card p {
  margin: 0 0 6px;
  font-size: var(--text-size-body-sm);
  line-height: 1.4;
}

.kanban-card--prompt {
  background: rgba(140, 174, 157, 0.2);
  border: 1px solid rgba(140, 174, 157, 0.5);
}

.kanban-card--daily_task {
  background: rgba(61, 214, 208, 0.2);
  border: 1px solid rgba(61, 214, 208, 0.5);
}

.kanban-card--assignment {
  background: rgba(180, 161, 194, 0.18);
  border: 1px solid rgba(180, 161, 194, 0.5);
}

.kanban-card--domain_task {
  background: rgba(61, 214, 208, 0.18);
  border: 1px solid rgba(61, 214, 208, 0.5);
}

.kanban-card--event {
  background: rgba(137, 168, 191, 0.2);
  border: 1px solid rgba(137, 168, 191, 0.5);
}

.kanban-card--goal {
  background: rgba(143, 207, 122, 0.2);
  border: 1px solid rgba(143, 207, 122, 0.55);
}

.kanban-card--goal_task {
  background: rgba(53, 215, 166, 0.18);
  border: 1px solid rgba(53, 215, 166, 0.5);
}

.kanban-card--guided_session {
  background: rgba(122, 92, 255, 0.18);
  border: 1px solid rgba(122, 92, 255, 0.5);
}

.todo-card--scheduled {
  box-shadow: 0 0 0 2px rgba(61, 214, 208, 0.25);
}

.todo-card--unscheduled {
  border-style: dashed;
}
.kanban-card--done {
  opacity: 0.55;
  text-decoration: line-through;
}

.highlight-event {
  outline: 2px solid rgba(255, 179, 71, 0.9);
  box-shadow: 0 0 0 4px rgba(255, 179, 71, 0.15);
  transition: box-shadow 0.8s ease, outline-color 0.8s ease;
}

.highlight-event--pulse {
  animation: highlight-pulse 1.2s ease-out;
}

.highlight-event--fade {
  outline-color: rgba(255, 179, 71, 0);
  box-shadow: 0 0 0 0 rgba(255, 179, 71, 0);
}

@keyframes highlight-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 179, 71, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 179, 71, 0);
  }
}

.ring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.ring-card {
  display: grid;
  gap: 6px;
  justify-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 3px solid var(--ring-color, rgba(255, 255, 255, 0.28));
  border-radius: 16px;
  padding: 12px;
  box-shadow:
    0 10px 26px rgba(18, 29, 40, 0.2),
    0 0 0 2px color-mix(in srgb, var(--ring-color) 45%, transparent);
}

.ring {
  --size: 72px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: conic-gradient(
    var(--ring-color, var(--accent-2)) var(--progress),
    rgba(255, 255, 255, 0.15) 0
  );
  display: grid;
  place-items: center;
  position: relative;
  animation: ring-pulse 2.6s ease-in-out infinite;
}

.ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #141225;
}

.ring span {
  position: relative;
  font-weight: 700;
  font-size: var(--text-size-meta);
  z-index: 1;
}

.ring--icon span {
  width: calc(var(--size) * 0.56);
  height: calc(var(--size) * 0.56);
  display: grid;
  place-items: center;
}

.ring-icon {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ring-label {
  margin: 0;
  font-weight: 600;
  font-size: var(--text-size-body-sm);
}

.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.task-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 16px;
}

.task-list li.done {
  opacity: 0.7;
}

.task-list p {
  margin: 0 0 6px;
  font-size: var(--text-size-body-sm);
  line-height: 1.4;
}

.pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: calc(var(--text-size-meta) - 1px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.16);
}

.pill.domain-pill {
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

.pill.domain-pill.domain-body {
  background: rgba(var(--domain-body-rgb), 0.34);
  border-color: rgba(var(--domain-body-rgb), 0.92);
  color: #12392a;
}

.pill.domain-pill.domain-being {
  background: rgba(var(--domain-being-rgb), 0.34);
  border-color: rgba(var(--domain-being-rgb), 0.92);
  color: #1a2f5f;
}

.pill.domain-pill.domain-balance {
  background: rgba(var(--domain-balance-rgb), 0.34);
  border-color: rgba(var(--domain-balance-rgb), 0.92);
  color: #5d340c;
}

.pill.domain-pill.domain-business {
  background: rgba(var(--domain-business-rgb), 0.34);
  border-color: rgba(var(--domain-business-rgb), 0.92);
  color: #5a1f46;
}

.pill.cadence-single {
  background: rgba(122, 217, 140, 0.35);
  color: #0f2f1b;
  border: 1px solid rgba(122, 217, 140, 0.6);
}

.pill.cadence-weekly {
  background: rgba(70, 170, 95, 0.4);
  color: #0b2817;
  border: 1px solid rgba(70, 170, 95, 0.7);
}

.pill.cadence-daily {
  background: rgba(34, 120, 60, 0.45);
  color: #e6f6eb;
  border: 1px solid rgba(34, 120, 60, 0.8);
}

.prompt-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ghost.small {
  padding: 6px 10px;
  font-size: calc(var(--text-size-meta) - 1px);
}

.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.week-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.compact-toggle {
  margin-left: auto;
}

@media (max-width: 720px) {
  .compact-toggle {
    margin-left: 0;
  }
}

.toggle-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: var(--text-size-meta);
  color: #2f2b36;
}

.toggle-row input[type="checkbox"] {
  margin-right: 6px;
}

.ring-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--text-size-meta);
  color: #2f2b36;
}

.ring-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ring-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1a6c69;
  display: inline-block;
}

.ring-card {
  animation: ring-float 6s ease-in-out infinite;
}

.ring-card:nth-child(2) {
  animation-delay: 0.4s;
}

.ring-card:nth-child(3) {
  animation-delay: 0.8s;
}

.ring-card:nth-child(4) {
  animation-delay: 1.2s;
}

.ring-card:nth-child(5) {
  animation-delay: 1.6s;
}

details.mini-collapse > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-size-body-sm);
  color: #2f2b36;
  margin-bottom: 12px;
}

details.mini-collapse > summary::after {
  content: "+";
  font-weight: 700;
}

details.mini-collapse[open] > summary::after {
  content: "-";
}

.task-list.compact li {
  padding: 10px 12px;
}

.section-assigned .panel-header-row {
  margin-bottom: 4px;
}

.section-assigned h3 {
  margin: 0;
  font-size: calc(var(--text-size-body) + 3px);
  line-height: 1.15;
}

.section-assigned .hint {
  margin: 0 0 6px;
  font-size: var(--text-size-meta);
  line-height: 1.25;
}

.section-assigned .task-list.compact {
  gap: 6px;
}

.section-assigned .assigned-collapse {
  margin-top: 4px;
}

.section-assigned .assigned-scroll {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 6px;
}

.section-assigned .assigned-list {
  margin: 0;
  grid-template-columns: 1fr;
}

.section-assigned .task-list.compact li {
  padding: 8px 10px;
}

.section-assigned .assigned-item {
  display: grid;
  gap: 6px;
}

.section-assigned .assigned-item-main {
  min-width: 0;
}

.section-assigned .assigned-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.section-assigned .assigned-item-main .link-pill {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

@media (min-width: 1100px) {
  .section-assigned .assigned-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.section-assigned .task-list p {
  margin: 0 0 4px;
  font-size: var(--text-size-meta);
  line-height: 1.25;
}

.section-assigned .pill {
  font-size: var(--text-size-micro);
  padding: 3px 8px;
}

.dense-grid {
  display: grid;
  gap: 20px;
  align-items: start;
}

@media (min-width: 980px) {
  .dense-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@keyframes ring-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 214, 208, 0.35);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(61, 214, 208, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 214, 208, 0);
  }
}

@keyframes ring-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.goal-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.goal-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 16px;
}

.goal-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.goal-header h4 {
  margin: 0 0 6px;
}

.stack {
  display: grid;
  gap: 12px;
}

.entry-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  margin: 0;
}

.overview-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.overview-list li {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(20, 20, 42, 0.12);
  background: rgba(255, 255, 255, 0.6);
}

.overview-metrics {
  display: grid;
  gap: 6px;
  font-size: var(--text-size-meta);
  color: var(--ink-soft);
}

.guided-preview {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(20, 20, 42, 0.12);
}

@media (min-width: 720px) {
  .overview-list li {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
  }
}

.entry-list li {
  font-size: var(--text-size-body-sm);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.panel-card.light .entry-list li {
  color: var(--ink-soft);
}

.list ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.list li {
  font-size: 14px;
  color: var(--ink-soft);
}

.insights {
  padding: 80px 6vw 100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: center;
}

.insights-copy h2 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.insights-cards {
  display: grid;
  gap: 20px;
}

.insight-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px;
  border-radius: 18px;
}

.spark {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 16px;
}

.spark span {
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--accent-2), rgba(137, 168, 191, 0.2));
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tags span {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: var(--text-size-meta);
}

.footer {
  padding: 40px 6vw 80px;
  background: #0b0a14;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    gap: 16px;
  }

  .site-strip {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding-left: 0;
    padding-right: 12px;
  }

  .strip-actions {
    width: auto;
    gap: 8px;
  }

  .page-header {
    flex-direction: column;
    gap: 16px;
  }

  .page-nav {
    margin-left: 0;
  }

  .header-progress {
    width: 100%;
    justify-content: center;
  }

  .header-progress-title {
    display: none;
  }

  .header-progress .ring-label {
    display: none;
  }

  .header-progress .ring-card {
    min-width: 56px;
    padding: 6px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .metrics {
    gap: 16px;
  }
}


