:root {
  --bg: #f7f9fc;
  --bg-accent: #edf3fb;
  --ink: #172033;
  --muted: #6b7485;
  --card: rgba(255, 255, 255, 0.9);
  --card-strong: #ffffff;
  --line: rgba(23, 32, 51, 0.08);
  --brand: #2f6df6;
  --brand-soft: #e8f0ff;
  --brand-deep: #1d4ed8;
  --blue-0: #dbeafe;
  --blue-1: #93c5fd;
  --blue-2: #60a5fa;
  --blue-3: #2563eb;
  --green: #1fa971;
  --orange: #ef8b17;
  --red: #df4f48;
  --shadow: 0 18px 38px rgba(33, 53, 85, 0.08);
  --radius: 22px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(47, 109, 246, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(31, 169, 113, 0.08), transparent 26%),
    linear-gradient(180deg, #fbfcfe, var(--bg) 40%, var(--bg-accent));
}

body.is-onboarding-locked {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
}

body[data-product-mode="solo"] {
  --brand: #0f8b8d;
  --brand-soft: #dff8f5;
  --brand-deep: #0f5f61;
  --blue-0: #d9fbfb;
  --blue-1: #7ddfdf;
  --blue-2: #3ebcbc;
  --blue-3: #0f8b8d;
}

body[data-authenticated="true"] .app-shell {
  grid-template-columns: 1fr;
}

/* body[data-authenticated="true"] .hero-panel { display: none; } - Removed so sidebar persists */

body[data-authenticated="false"] #dashboard-view {
  display: none !important;
}

body[data-authenticated="true"] #login-view {
  display: none !important;
}

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

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid rgba(47, 109, 246, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.98)),
    linear-gradient(135deg, rgba(47, 109, 246, 0.08), rgba(31, 169, 113, 0.06));
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: 24px;
  right: 22px;
  width: 154px;
  height: 154px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.95), rgba(37, 99, 235, 0.12));
  transform: rotate(16deg);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -30px -40px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(47, 109, 246, 0.08);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem;
}

.product-logo {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
}

.hero-ribbon,
.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-ribbon {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.product-caption {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel h1,
.workspace h2,
.workspace h3 {
  letter-spacing: -0.02em;
}

.hero-panel h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

body[data-authenticated="true"] .hero-panel {
  padding: 28px;
}

body[data-authenticated="true"] .hero-panel h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.55rem;
}

body[data-authenticated="true"] .hero-panel p {
  max-width: 20rem;
}

.hero-panel p {
  max-width: 24rem;
  color: var(--muted);
  line-height: 1.6;
}

.workspace {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workspace-session {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.account-menu {
  position: relative;
}

.account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.session-indicator-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--brand);
  flex: 0 0 auto;
}

.session-indicator-icon svg {
  width: 100%;
  height: 100%;
}

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

.session-indicator-copy strong {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
}

.session-indicator-copy span {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.1;
}

.account-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 20;
  width: min(360px, calc(100vw - 24px));
  padding: 18px;
  border: 1px solid rgba(47, 109, 246, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 40px rgba(17, 32, 61, 0.14);
  backdrop-filter: blur(14px);
}

.account-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.account-switch-button {
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: rgba(244, 247, 253, 0.96);
  color: var(--muted);
  font-weight: 700;
}

.account-switch-button.is-active {
  background: linear-gradient(135deg, rgba(232, 240, 255, 1), rgba(255, 255, 255, 0.98));
  color: var(--brand-deep);
  box-shadow: 0 8px 16px rgba(47, 109, 246, 0.08);
}

.account-panel {
  display: grid;
  gap: 14px;
}

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

.account-summary strong {
  font-size: 1rem;
}

.account-summary span {
  color: var(--muted);
}

.scale-panel {
  display: grid;
  gap: 16px;
}

.scale-panel .panel-head {
  margin-bottom: 0;
}

.quick-ref-panel {
  display: grid;
  gap: 14px;
}

.quick-ref-panel .panel-head {
  margin-bottom: 0;
}

.quick-ref-panel-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.quick-ref-priorities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quick-ref-priorities .urgency-chip {
  justify-content: center;
  width: 100%;
}

.quick-ref-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quick-progress-item {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px 10px;
  border: 1px solid rgba(47, 109, 246, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96));
  text-align: center;
}

.quick-progress-item .scale-diagram {
  min-width: 0;
  justify-content: center;
}

.quick-progress-item strong {
  font-size: 1rem;
  color: var(--brand-deep);
}

.quick-progress-item span:last-child {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.topbar,
.composer-panel,
.table-panel,
.scale-panel {
  padding: 24px;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.table-head-side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-form,
.task-form {
  display: grid;
  gap: 14px;
}

.task-form {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  align-items: end;
}

.task-form .wide {
  grid-column: span 1;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 0.88rem 1rem;
  border: 1px solid rgba(29, 36, 51, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}

input:focus,
select:focus {
  outline: 2px solid rgba(47, 109, 246, 0.16);
  border-color: rgba(47, 109, 246, 0.48);
}

input[type="radio"] {
  width: auto;
  padding: 0;
  margin: 0;
}

button {
  cursor: pointer;
  border: 0;
}

.primary-button,
.ghost-button {
  padding: 0.9rem 1.15rem;
  border-radius: 16px;
  font-weight: 700;
  touch-action: manipulation;
}

.primary-button {
  background: linear-gradient(135deg, var(--brand), #4f8cff);
  color: white;
}

.primary-button:hover {
  filter: brightness(0.97);
}

.ghost-button {
  border: 1px solid rgba(29, 36, 51, 0.12);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.demo-hint {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f5f8ff;
}

.demo-hint code {
  font-family: "SFMono-Regular", ui-monospace, monospace;
}

.dashboard {
  display: grid;
  gap: 16px;
}

.product-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.mode-card {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(47, 109, 246, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 255, 0.96));
  text-align: left;
}

.mode-card img {
  width: 44px;
  height: 44px;
}

.mode-card strong {
  font-size: 0.98rem;
}

.mode-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.mode-card.is-active {
  border-color: rgba(47, 109, 246, 0.42);
  background: linear-gradient(180deg, rgba(232, 240, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 12px 24px rgba(47, 109, 246, 0.1);
}

.mobile-spotlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  background:
    linear-gradient(135deg, rgba(47, 109, 246, 0.07), rgba(255, 255, 255, 0.96)),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.mobile-spotlight-copy h3 {
  margin: 0.2rem 0 0.45rem;
}

.mobile-spotlight-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.mobile-spotlight-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 340px;
}

.mobile-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(47, 109, 246, 0.12);
  color: var(--brand-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  border-color: rgba(47, 109, 246, 0.1);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.94));
}

.topbar::after {
  content: "";
  position: absolute;
  inset: auto -30px -46px auto;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: rgba(47, 109, 246, 0.06);
  pointer-events: none;
}

.topbar-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.topbar-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
}

.eyebrow,
.form-error,
.empty-state,
.live-pill {
  color: var(--muted);
}

.topbar-note {
  margin: 6px 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.scale-diagram {
  display: grid;
  grid-template-columns: repeat(4, 16px);
  align-items: end;
  gap: 8px;
  min-width: 88px;
}

.scale-column {
  display: block;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
}

.scale-column.stage-0 {
  height: 26px;
}

.scale-column.stage-1 {
  height: 38px;
}

.scale-column.stage-2 {
  height: 52px;
}

.scale-column.stage-3 {
  height: 66px;
}

.scale-column.status-step.is-active.stage-0 {
  background: linear-gradient(180deg, #f87171, #ef4444);
  border-color: rgba(239, 68, 68, 0.5);
}

.status-step.is-active.stage-1 {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  border-color: rgba(245, 158, 11, 0.5);
}

.status-step.is-active.stage-2 {
  background: linear-gradient(180deg, #a3e635, #84cc16);
  border-color: rgba(132, 204, 22, 0.5);
}

.status-step.is-active.stage-3 {
  background: linear-gradient(180deg, #4ade80, #22c55e);
  border-color: rgba(34, 197, 94, 0.5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  min-height: 80px;
  padding: 14px 18px;
  border: 1px solid rgba(47, 109, 246, 0.08);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.94));
}



.stat-card span {
  display: block;
  margin-bottom: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-card strong {
  font-size: 2rem;
  line-height: 1;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(31, 169, 113, 0.12);
  color: #1c6d34;
}

.live-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(36, 161, 72, 0.1);
}

.filter-summary {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(47, 109, 246, 0.08);
  color: var(--brand-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.table-panel {
  padding: 22px 24px;
  border-color: rgba(47, 109, 246, 0.08);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
}

.table-panel .panel-head {
  margin-bottom: 14px;
}

.table-panel h3 {
  margin: 0.25rem 0 0;
  font-size: 1.35rem;
}

.table-panel .eyebrow {
  color: var(--brand-deep);
}

.table-panel .ghost-button {
  background: rgba(255, 255, 255, 0.88);
}

.table-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(150px, 0.8fr)) auto auto;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(47, 109, 246, 0.08);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 255, 0.96));
}

.table-toolbar label {
  gap: 6px;
}

.table-toolbar label span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.toolbar-search input {
  padding-left: 1.1rem;
}

.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.view-toggle-button {
  padding: 6px;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-toggle-button.is-active {
  background: rgba(148, 163, 184, 0.15);
  color: var(--brand-deep);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(47, 109, 246, 0.08);
  border-radius: 22px;
  padding: 8px 10px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 248, 255, 0.86)),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 30%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 18px 34px rgba(25, 45, 78, 0.06);
}

table {
  width: 100%;
  min-width: 1040px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.th-label {
  width: 40%;
}

.th-kind {
  width: 136px;
}

.th-color {
  width: 78px;
  text-align: center;
}

.th-status {
  width: 168px;
}

.th-related {
  width: 180px;
}

.th-actions {
  width: 160px;
}

thead th {
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(246, 249, 255, 0.82);
  backdrop-filter: blur(12px);
}

thead th:first-child {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

thead th:last-child {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

tbody td {
  padding: 12px 10px;
  border-top: 1px solid rgba(47, 109, 246, 0.08);
  border-bottom: 1px solid rgba(47, 109, 246, 0.08);
  vertical-align: top;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
  box-shadow: 0 12px 22px rgba(20, 33, 61, 0.05);
}

tbody td:first-child {
  border-left: 1px solid rgba(47, 109, 246, 0.08);
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  padding-left: 16px;
}

tbody td:last-child {
  border-right: 1px solid rgba(47, 109, 246, 0.08);
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  padding-right: 16px;
}

.task-row {
  animation: premiumRise 480ms ease both;
  animation-delay: var(--row-delay, 0ms);
  transition: transform 160ms ease;
}

.task-row:hover td {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(240, 247, 255, 0.99));
  box-shadow:
    0 16px 28px rgba(20, 33, 61, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.task-row--high td {
  border-color: rgba(223, 79, 72, 0.12);
}

.task-row--medium td {
  border-color: rgba(239, 139, 23, 0.12);
}

.task-row--low td {
  border-color: rgba(31, 169, 113, 0.12);
}

.task-row .cell-number {
  position: relative;
}

.task-row .cell-number::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: rgba(147, 197, 253, 0.6);
}

.task-row--low .cell-number::before {
  background: linear-gradient(180deg, #bbf7d0, #1fa971);
}

.task-row--medium .cell-number::before {
  background: linear-gradient(180deg, #fde68a, #ef8b17);
}

.task-row--high .cell-number::before {
  background: linear-gradient(180deg, #fecaca, #df4f48);
}

.cell-number {
  font-weight: 800;
  width: 110px;
}

.number-field {
  display: inline-grid;
  gap: 8px;
}

.number-field span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.task-number-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(232, 240, 255, 1), rgba(255, 255, 255, 1));
  color: var(--brand-deep);
  font-weight: 800;
  border: 1px solid rgba(47, 109, 246, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.status-stack {
  display: grid;
  gap: 8px;
  min-width: 190px;
}

.status-step-control {
  display: inline-grid;
  grid-template-columns: repeat(4, 22px);
  align-items: end;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.status-step {
  align-self: end;
  width: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  opacity: 0.55;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease;
}

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

.status-step.stage-0 {
  height: 12px;
}

.status-step.stage-1 {
  height: 20px;
}

.status-step.stage-2 {
  height: 28px;
}

.status-step.stage-3 {
  height: 36px;
}

.status-step.is-active {
  opacity: 1;
}

.status-step.is-active.stage-0 {
  background: var(--blue-0);
}

.status-step.is-active.stage-1 {
  background: var(--blue-1);
}

.status-step.is-active.stage-2 {
  background: var(--blue-2);
}

.status-step.is-active.stage-3 {
  background: var(--blue-3);
}

.status-step.is-current {
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.12);
}

.status-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

.status-label-row strong {
  color: var(--brand-deep);
}

.status-mini-index {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.status-scale {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 7px;
  padding: 4px 6px;
  border-radius: 16px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.status-bar {
  display: block;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  transition: background 160ms ease, opacity 160ms ease;
}

.status-bar.stage-0 {
  height: 16px;
}

.status-bar.stage-1 {
  height: 24px;
}

.status-bar.stage-2 {
  height: 34px;
}

.status-bar.stage-3 {
  height: 44px;
}

.status-bar.is-active.stage-0 {
  background: linear-gradient(180deg, #f87171, #ef4444);
}

.status-bar.is-active.stage-1 {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
}

.status-bar.is-active.stage-2 {
  background: linear-gradient(180deg, #a3e635, #84cc16);
}

.status-bar.is-active.stage-3 {
  background: linear-gradient(180deg, #4ade80, #22c55e);
}

.status-bar:not(.is-active) {
  opacity: 0.4;
}

.number-input {
  max-width: 96px;
}

.task-title {
  margin-bottom: 6px;
  font-weight: 700;
  line-height: 1.45;
  font-size: 1rem;
}

.task-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.task-updated-pill {
  display: inline-block;
  color: #64748b;
  font-size: 0.82rem;
  white-space: nowrap;
}

.urgency-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  padding: 0.52rem 0.72rem;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 32, 51, 0.08);
  font-weight: 700;
}

.urgency-chip--high {
  background: linear-gradient(135deg, rgba(255, 244, 244, 0.98), rgba(255, 255, 255, 0.98));
  border-color: rgba(223, 79, 72, 0.16);
}

.urgency-chip--medium {
  background: linear-gradient(135deg, rgba(255, 249, 239, 0.98), rgba(255, 255, 255, 0.98));
  border-color: rgba(239, 139, 23, 0.16);
}

.urgency-chip--low {
  background: linear-gradient(135deg, rgba(242, 255, 249, 0.98), rgba(255, 255, 255, 0.98));
  border-color: rgba(31, 169, 113, 0.16);
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-high {
  background: var(--red);
}

.dot-medium {
  background: var(--orange);
}

.dot-low {
  background: var(--green);
}

.urgency-dot,
.urgency-dot-button {
  display: inline-block;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(29, 36, 51, 0.04);
}

.urgency-dot-button {
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.urgency-dot-button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 7px rgba(47, 109, 246, 0.1);
}

.status-select,
.assign-select,
.kind-select {
  min-width: 180px;
}

.inline-input,
.inline-text {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(29, 36, 51, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.inline-text {
  min-width: 280px;
}

.cell-kind {
  width: 136px;
}

.kind-select {
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 13px;
}

.kind-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 0.48rem 0.68rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  border: 1px solid rgba(47, 109, 246, 0.1);
}

.kind-pill--individual {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.1);
}

.kind-pill--group {
  color: var(--brand-deep);
  background: rgba(47, 109, 246, 0.09);
}

.cell-urgency {
  text-align: center;
  vertical-align: middle;
}

.cell-status {
  vertical-align: middle;
}

.cell-related.is-empty {
  color: transparent;
  pointer-events: none;
}

.cell-actions {
  display: table-cell;
  vertical-align: middle;
  padding-left: 0;
}

.table-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 0.78rem 0.95rem;
  border-radius: 14px;
  background: rgba(29, 36, 51, 0.08);
  color: var(--ink);
  font-weight: 700;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.table-button.compact-action {
  min-width: 0;
  padding-inline: 0.85rem;
}

.table-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(33, 53, 85, 0.08);
}

.table-button.is-primary {
  background: linear-gradient(135deg, var(--brand), #4f8cff);
  color: #fff;
}

[data-tour].tour-active {
  position: relative;
  z-index: 31;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.24), var(--shadow);
  border-radius: 20px;
}

.participant-note {
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(29, 36, 51, 0.05);
  color: var(--muted);
  font-size: 0.9rem;
}

.pill-assignee {
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(243, 246, 252, 0.96), rgba(255, 255, 255, 0.96));
  color: var(--ink);
  font-size: 0.92rem;
  border: 1px solid rgba(23, 32, 51, 0.06);
}

.tasks-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.board-column {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(47, 109, 246, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.92)),
    radial-gradient(circle at top center, rgba(96, 165, 250, 0.08), transparent 30%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 18px 34px rgba(20, 33, 61, 0.05);
}

.board-column--status-0 {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.92)),
    radial-gradient(circle at top center, rgba(148, 163, 184, 0.1), transparent 35%);
}

.board-column--status-1 {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.94)),
    radial-gradient(circle at top center, rgba(147, 197, 253, 0.12), transparent 35%);
}

.board-column--status-2 {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(234, 244, 255, 0.95)),
    radial-gradient(circle at top center, rgba(96, 165, 250, 0.14), transparent 35%);
}

.board-column--status-3 {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 250, 244, 0.94)),
    radial-gradient(circle at top center, rgba(31, 169, 113, 0.12), transparent 35%);
}

.board-column-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.board-column-head h4 {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
}

.board-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-deep);
  font-weight: 800;
  border: 1px solid rgba(47, 109, 246, 0.1);
}

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

.board-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(47, 109, 246, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.98));
  box-shadow: 0 16px 28px rgba(20, 33, 61, 0.06);
  animation: premiumRise 520ms ease both;
  animation-delay: var(--card-delay, 0ms);
}

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

.board-card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

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

.board-card-status .status-stack {
  min-width: 0;
}

.board-empty {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(47, 109, 246, 0.16);
}

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

.empty-state {
  margin: 0;
  padding-top: 12px;
}

.empty-state-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(47, 109, 246, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 255, 0.96)),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 30%);
  box-shadow: 0 18px 34px rgba(20, 33, 61, 0.06);
}

.empty-state-copy h4 {
  margin: 0.3rem 0 0.45rem;
  font-size: 1.15rem;
}

.empty-state-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.first-run-banner {
  display: none !important;
}

.first-run-copy h3 {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.15rem;
}

.first-run-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.first-run-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.form-error {
  margin: 0;
  color: var(--brand-deep);
}

.urgency-picker-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.urgency-picker-fieldset legend { font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 0.25rem; }
.urgency-picker-options { display: flex; gap: 14px; margin-top: 6px; padding-bottom: 6px; }
.urgency-option input { display: none; }
.urgency-option .dot-color {
  display: inline-block; width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; opacity: 0.4; transition: transform 200ms ease, opacity 200ms ease;
  box-shadow: 0 0 0 2px var(--body-bg); border: 1px solid rgba(0,0,0,0.1);
}
.urgency-option.color-low .dot-color { background-color: var(--green); }
.urgency-option.color-medium .dot-color { background-color: var(--orange); }
.urgency-option.color-high .dot-color { background-color: var(--red); }
.urgency-option input:checked + .dot-color { opacity: 1; transform: scale(1.25); }
.urgency-option.color-low input:checked + .dot-color { box-shadow: 0 0 0 2px var(--body-bg), 0 0 0 4px var(--green); border-color: transparent; }
.urgency-option.color-medium input:checked + .dot-color { box-shadow: 0 0 0 2px var(--body-bg), 0 0 0 4px var(--orange); border-color: transparent; }
.urgency-option.color-high input:checked + .dot-color { box-shadow: 0 0 0 2px var(--body-bg), 0 0 0 4px var(--red); border-color: transparent; }

.form-status-picker .status-scale { display: flex; gap: 8px; margin: 10px 0; }
.form-status-picker .status-bar { height: 8px; flex: 1; border-radius: 4px; background: rgba(29, 36, 51, 0.08); transition: background 250ms ease; cursor: pointer; }
.form-status-picker .status-bar.is-active.form-stage-0 { background: #a2a8b3; }
.form-status-picker .status-bar.is-active.form-stage-1 { background: #60a5fa; }
.form-status-picker .status-bar.is-active.form-stage-2 { background: #3b82f6; }
.form-status-picker .status-bar.is-active.form-stage-3 { background: #1fa971; }

.onboarding-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(47, 109, 246, 0.22), transparent 24%),
    radial-gradient(circle at bottom right, rgba(15, 139, 141, 0.18), transparent 24%),
    rgba(13, 20, 34, 0.48);
  backdrop-filter: blur(10px);
  pointer-events: none;
  overscroll-behavior: contain;
  z-index: 29;
}

.onboarding-backdrop[hidden],
.onboarding-modal[hidden],
.onboarding-stage-panel[hidden] {
  display: none !important;
}

.onboarding-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
  z-index: 30;
}

.onboarding-card {
  width: min(760px, 100%);
  padding: 26px;
  border: 1px solid rgba(47, 109, 246, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 48px rgba(17, 32, 61, 0.16);
  pointer-events: auto;
}

.onboarding-copy {
  display: grid;
  align-content: start;
  gap: 0;
}

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

.onboarding-kicker,
.onboarding-step-count {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.onboarding-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.55rem;
}

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

.onboarding-highlight-label {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(220, 244, 246, 0.95), rgba(233, 244, 255, 0.96));
  border: 1px solid rgba(47, 109, 246, 0.1);
  color: var(--brand-deep);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
}

.onboarding-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.onboarding-dismiss-choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.onboarding-dismiss-choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.onboarding-nav {
  display: flex;
  gap: 10px;
}

.onboarding-stage {
  margin-top: 18px;
}

.onboarding-stage-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.08), transparent 34%);
  border: 1px solid rgba(47, 109, 246, 0.08);
}

.onboarding-stage-title {
  font-size: 1.02rem;
  color: var(--brand-deep);
}

.onboarding-priority-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.onboarding-priority-row .urgency-chip {
  flex: 0 0 auto;
}

.onboarding-mini-scale {
  margin-top: 6px;
}

.onboarding-scale-chart {
  display: grid;
  gap: 8px;
}

.onboarding-scale-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-deep);
  text-align: center;
}

.onboarding-scale-statuses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--muted);
  text-align: center;
}

.onboarding-mode-grid {
  display: grid;
  gap: 12px;
}

.onboarding-mode-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(47, 109, 246, 0.08);
  background: rgba(255, 255, 255, 0.84);
}

.onboarding-mode-card.is-active {
  border-color: rgba(47, 109, 246, 0.22);
  background: linear-gradient(135deg, rgba(236, 245, 255, 0.98), rgba(249, 252, 255, 0.98));
  box-shadow: 0 12px 24px rgba(20, 33, 61, 0.06);
}

.onboarding-mode-card strong {
  font-size: 0.98rem;
}

.onboarding-mode-card p {
  font-size: 0.92rem;
}

.onboarding-celebration {
  position: fixed;
  inset: auto 24px 24px auto;
  pointer-events: auto;
  z-index: 31;
}

.onboarding-celebration-card {
  width: min(420px, calc(100vw - 28px));
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(47, 109, 246, 0.14);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 42px rgba(17, 32, 61, 0.16);
}

.onboarding-celebration-card h3 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.45rem;
}

.onboarding-celebration-card p:last-of-type {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

body[data-authenticated="false"] .account-menu {
  width: 100%;
}

body[data-authenticated="false"] #account-toggle {
  display: none;
}

body[data-authenticated="false"] .account-popover {
  display: block !important;
  position: static;
  width: 100%;
  box-shadow: none;
  border: none;
  background: transparent;
  padding: 0;
}

@media (max-width: 1080px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard > .topbar,
  .dashboard > .first-run-banner,
  .dashboard > .composer-panel,
  .dashboard > .table-panel,
  .dashboard > .stats-grid,
  .dashboard > .scale-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .dashboard > .scale-panel {
    position: static;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
    padding: 16px;
    border-radius: 20px;
  }

  .hero-panel h1,
  .hero-panel p {
    display: none;
  }
  
  .product-logo {
    width: 44px;
    height: 44px;
  }
  
  .hero-panel::before,
  .hero-panel::after {
    display: none;
  }

  .quick-ref-progress,
  .task-form {
    grid-template-columns: 1fr 1fr;
  }

  .product-switch {
    grid-template-columns: 1fr;
  }

  .mobile-spotlight {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-spotlight-badges {
    justify-content: flex-start;
    max-width: none;
  }

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

}

@media (max-width: 720px) {
  .app-shell {
    padding: 12px 12px calc(18px + var(--safe-bottom));
    gap: 12px;
  }

  .hero-panel,
  .topbar,
  .composer-panel,
  .table-panel,
  .scale-panel,
  .mobile-spotlight {
    padding: 14px;
    border-radius: 20px;
  }

  .workspace-session {
    align-items: flex-start;
    justify-content: space-between;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
  }

  .account-popover {
    left: 0;
    right: auto;
    width: min(340px, calc(100vw - 28px));
  }

  .topbar-brand {
    align-items: stretch;
  }

  .table-head-side,
  .panel-head {
    align-items: stretch;
  }

  .stats-grid,
  .quick-ref-priorities,
  .quick-ref-progress,
  .task-form {
    grid-template-columns: 1fr;
  }

  .quick-ref-panel-layout {
    grid-template-columns: 1fr;
  }

  .table-toolbar {
    grid-template-columns: 1fr;
    padding: 12px;
  }

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

  .empty-state-card {
    flex-direction: column;
    align-items: stretch;
  }

  .first-run-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .empty-state-actions {
    justify-content: stretch;
  }

  .first-run-actions {
    justify-content: stretch;
  }

  .view-toggle {
    width: 100%;
  }

  .view-toggle-button {
    flex: 1 1 0;
    min-width: 0;
  }

  .table-wrap {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .scale-diagram {
    justify-content: start;
  }

  .hero-panel h1 {
    font-size: 2rem;
  }

  .mobile-spotlight {
    gap: 14px;
  }

  .mobile-spotlight-copy p:last-child {
    font-size: 0.96rem;
  }

  .mobile-spotlight-badges {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mobile-badge {
    justify-content: center;
  }

  .stats-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .stat-card {
    min-width: 170px;
    padding: 18px;
    scroll-snap-align: start;
  }

  .mode-card {
    padding: 14px;
  }

  .ghost-button,
  .primary-button {
    min-height: 50px;
  }

  .onboarding-modal {
    padding: 14px;
  }

  .inline-text,
  .status-select,
  .assign-select,
  .kind-select,
  .table-button {
    min-width: 0;
  }

  .status-select,
  .assign-select,
  .kind-select,
  .inline-input,
  .inline-text {
    min-height: 48px;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  table {
    min-width: 0;
    border-spacing: 0;
  }

  thead {
    display: none;
  }

  tbody tr {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(47, 109, 246, 0.08);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
    box-shadow: 0 12px 24px rgba(20, 33, 61, 0.06);
  }

  .task-row .cell-number::before {
    top: 0;
    bottom: 0;
  }

  tbody td,
  tbody .cell-actions {
    display: grid;
    gap: 6px;
    padding: 9px 0;
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  tbody td::before {
    content: attr(data-label);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .cell-actions .table-button,
  .cell-status .status-select,
  .cell-status .status-step-control,
  .cell-kind .kind-select,
  .cell-related .assign-select {
    width: 100%;
  }

  .cell-urgency {
    text-align: left;
  }

  .task-number-pill {
    min-width: 0;
    justify-content: flex-start;
  }

  .status-stack {
    min-width: 0;
  }

  .status-label-row {
    gap: 8px;
    font-size: 0.88rem;
  }

  .status-scale {
    padding: 10px;
  }

  .participant-note {
    justify-content: center;
    width: 100%;
  }

  .onboarding-card {
    padding: 18px;
    border-radius: 20px;
  }

  .first-run-actions .ghost-button,
  .first-run-actions .primary-button {
    width: 100%;
  }

  .onboarding-celebration {
    left: 14px;
    right: 14px;
    bottom: 14px;
    inset: auto 14px 14px 14px;
  }

  .onboarding-celebration-card {
    width: auto;
    border-radius: 20px;
  }

  .onboarding-actions,
  .onboarding-nav {
    flex-direction: column;
    align-items: stretch;
  }
}

/* New Action Icon Buttons */
.action-svg-btn {
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #64748b;
  transition: background 0.15s ease, color 0.15s ease;
}

.action-svg-btn:hover {
  background: rgba(148, 163, 184, 0.15);
  color: var(--brand, #3b82f6);
}

.action-svg-btn svg {
  width: 20px;
  height: 20px;
}

.kind-toggle-btn:hover {
  opacity: 0.8;
}

/* Clickable Bar Chart Graphic */
.chart-container {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 48px;
  width: 120px;
}

.chart-bar {
  flex: 1;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.15);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  padding: 0;
  width: 100%;
}

.chart-bar:hover {
  filter: brightness(0.9);
}

.chart-bar.stage-0 { height: 16px; }
.chart-bar.stage-1 { height: 26px; }
.chart-bar.stage-2 { height: 36px; }
.chart-bar.stage-3 { height: 46px; }

.chart-bar.is-active.stage-0 { background: linear-gradient(180deg, #f87171, #ef4444); }
.chart-bar.is-active.stage-1 { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.chart-bar.is-active.stage-2 { background: linear-gradient(180deg, #a3e635, #84cc16); }
.chart-bar.is-active.stage-3 { background: linear-gradient(180deg, #4ade80, #22c55e); }
