/* ---------- Account: top-bar menu, save buttons, Pro lock, workspace ---------- */
.tab-link { text-decoration: none; color: var(--ink-2); display: inline-flex; align-items: center; }
.tab-link:hover { color: var(--ink); }

.acct-slot { display: inline-flex; align-items: center; flex-shrink: 0; min-width: 36px; }
.acct-skel { width: 36px; height: 36px; border-radius: 999px; background: var(--hover); }
.acct { position: relative; }
.acct-btn {
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  display: inline-grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-1);
  transition: transform 0.15s var(--ease), box-shadow 0.2s;
}
.acct-btn:hover { box-shadow: var(--shadow-1), 0 2px 8px -2px rgba(0, 0, 0, 0.12); }
.acct-btn:active { transform: scale(0.96); }
.acct-btn[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--focus); }
.acct-avatar {
  width: 28px; height: 28px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--ink); color: var(--on-ink); font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
}
.acct-avatar.lg { width: 36px; height: 36px; font-size: 13px; flex: none; }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 264px; padding: 6px;
  background: var(--raised); border-radius: var(--radius); box-shadow: var(--shadow-2);
  transform-origin: top right; animation: acct-in 0.18s var(--ease);
}
@keyframes acct-in { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }
.acct-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.acct-who b { font-size: var(--step--1); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-who small { font-size: var(--step--2); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-plan { font-size: var(--step--2); flex: none; }
.acct-item {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: var(--radius-s);
  background: none; color: var(--ink); font: inherit; font-size: var(--step--1); text-align: left; text-decoration: none; cursor: pointer;
}
.acct-item:hover, .acct-item:focus-visible { background: var(--hover); outline: none; }
.acct-item svg { color: var(--ink-3); flex: none; }
.acct-item span:first-of-type { flex: 1; }
.acct-count { color: var(--ink-3); font-size: var(--step--2); }
.acct-sep { height: 1px; background: var(--line); margin: 4px 0; }
.acct-label { display: block; padding: 6px 8px 2px; }

.save-btn svg { transition: fill 0.2s; }
.save-btn.is-on { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.save-btn.is-on svg { fill: currentColor; }

.pro-lock {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-m);
  margin: var(--space-l) 0; padding: var(--space-m) var(--space-l);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.pro-lock-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--hover); color: var(--ink-2); flex: none; }
.pro-lock-ico svg { width: 18px; height: 18px; }
.pro-lock-kicker { display: flex; align-items: center; gap: 6px; font-size: var(--step--2); color: var(--ink-3); margin-bottom: 2px; flex-wrap: wrap; }
.pro-lock-kicker .eyebrow { margin: 0; color: var(--ink); font-weight: 600; }
.pro-lock-sep { opacity: 0.5; }
.pro-lock-copy h3 { margin: 2px 0 4px; font-size: var(--step-1); font-weight: 600; letter-spacing: -0.02em; }
.pro-lock-copy p { margin: 0; color: var(--ink-2); font-size: var(--step--1); max-width: 62ch; line-height: 1.45; }
.pro-lock-actions { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }

/* Visual gradient-fade paywall teaser */
.pro-fade-wrap {
  position: relative;
  margin-bottom: var(--space-l);
}
.pro-fade-preview {
  max-height: 320px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.92) 32%, rgba(0, 0, 0, 0.25) 68%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.92) 32%, rgba(0, 0, 0, 0.25) 68%, transparent 96%);
}
.pro-fade-preview > .sec-h {
  margin-top: 0;
}
.pro-fade-preview .forest,
.pro-fade-preview .block {
  margin-bottom: 0;
}
.pro-fade-overlay {
  position: relative;
  margin-top: -110px;
  padding-top: 36px;
  z-index: 2;
}
.pro-lock.pro-lock-elevated {
  margin: 0;
  background: color-mix(in srgb, var(--surface) 92%, var(--bg));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
}
@media (max-width: 760px) {
  .pro-lock { grid-template-columns: 1fr; }
  .pro-fade-overlay { margin-top: -80px; }
}

/* Workspace: Full-width, visual activation layout */
.ws-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
  width: 100%;
}
.ws-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-m);
  padding-bottom: var(--space-s);
  border-bottom: 1px solid var(--line);
}
.ws-hero-content {
  display: flex;
  flex-direction: column;
}
.ws-hero-pre {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.ws-hero-pre .eyebrow {
  margin: 0;
  color: var(--ink-2);
}
.ws-hero .hello {
  margin: 0 0 6px;
}
.ws-hero-sub {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--step-0);
  max-width: 68ch;
  line-height: 1.45;
}

.ws-signin { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--space-m); }
.ws-empty { margin: 0 0 var(--space-s); color: var(--ink-2); font-size: var(--step--1); }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Getting started / Activation checklist */
.ws-steps {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-m) var(--space-l);
}
.ws-steps-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-m);
  margin-bottom: var(--space-m);
  flex-wrap: wrap;
}
.ws-steps-title-wrap h2 {
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.ws-steps-sub {
  color: var(--ink-2);
  font-size: var(--step--1);
  display: block;
  margin-top: 2px;
}
.ws-progress-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.ws-progress-meta .num {
  font-size: var(--step--2);
  color: var(--ink-2);
  font-weight: 500;
}
.ws-progress-track {
  width: 170px;
  height: 6px;
  background: var(--hover);
  border-radius: 999px;
  overflow: hidden;
}
.ws-progress-fill {
  height: 100%;
  background: var(--pos);
  border-radius: 999px;
  transition: width 0.35s var(--ease);
}
.ws-step-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 1024px) {
  .ws-step-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ws-step-grid { grid-template-columns: 1fr; }
  .ws-progress-meta { align-items: flex-start; width: 100%; }
  .ws-progress-track { width: 100%; }
}

.ws-step-item {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  transition: border-color 0.2s, background 0.2s;
}
.ws-step-item:hover {
  border-color: var(--line-2);
}
.ws-step-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ws-step-badge {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: var(--step--2);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  background: var(--surface);
}
.ws-step-badge svg {
  width: 12px;
  height: 12px;
}
.ws-step-item.is-done .ws-step-badge {
  background: var(--pos);
  border-color: var(--pos);
  color: var(--on-ink);
}
.ws-step-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  font-weight: 600;
}
.ws-step-item.is-done .ws-step-label {
  color: var(--pos);
}
.ws-step-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ws-step-content b {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
}
.ws-step-content small {
  font-size: var(--step--2);
  color: var(--ink-2);
  line-height: 1.4;
}
.ws-step-item.is-done .ws-step-content b {
  color: var(--ink-2);
}
.ws-step-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--step--2);
  padding: 6px 12px;
}

/* Exploration Pathways Hub */
.ws-pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-m);
}
@media (max-width: 860px) {
  .ws-pathway-grid { grid-template-columns: 1fr; }
}
.ws-pathway-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-m);
  position: relative;
  transition: border-color 0.2s, transform 0.15s var(--ease);
}
.ws-pathway-card:hover {
  border-color: var(--line-2);
  transform: translateY(-1px);
}
.ws-pathway-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ws-pathway-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--hover);
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
}
.ws-pathway-icon svg {
  width: 18px;
  height: 18px;
}
.ws-pathway-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ws-pathway-body h3 {
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.ws-pathway-body p {
  font-size: var(--step--1);
  color: var(--ink-2);
  line-height: 1.45;
  margin: 0;
}
.ws-pathway-card .btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Curated Starter Benchmarks */
.ws-starter-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}
.ws-sec-desc {
  font-size: var(--step--1);
  color: var(--ink-2);
  margin: 4px 0 0;
  max-width: 72ch;
}
.ws-starter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-m);
}
@media (max-width: 900px) {
  .ws-starter-grid { grid-template-columns: 1fr; }
}
.ws-starter-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-m);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.2s;
}
.ws-starter-card:hover {
  border-color: var(--line-2);
}
.ws-starter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ws-starter-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ws-starter-co {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.ws-starter-co b {
  font-size: var(--step--1);
  font-weight: 600;
}
.ws-starter-meta {
  font-size: var(--step--2);
  color: var(--ink-3);
}
.ws-starter-rigor {
  font-size: var(--step--2);
  color: var(--ink-2);
  background: var(--hover);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 500;
}
.ws-starter-title {
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}
.ws-starter-title button {
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
}
.ws-starter-title button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ws-starter-summary {
  font-size: var(--step--1);
  color: var(--ink-2);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ws-starter-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

/* Activity Grid: Recently viewed & Membership */
.ws-activity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
  gap: var(--space-l);
  align-items: start;
}
@media (max-width: 960px) {
  .ws-activity-grid { grid-template-columns: 1fr; }
}

.ws-recent, .ws-plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-m) var(--space-l);
}
.ws-recent .sec-h { margin: 0 0 var(--space-s); }
.ws-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ws-recent-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s;
}
.ws-recent-row:hover {
  background: var(--hover);
}
.ws-recent-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--raised);
  border: 1px solid var(--line);
  flex: none;
  overflow: hidden;
}
.ws-recent-icon-fallback {
  color: var(--ink-3);
  display: grid;
  place-items: center;
}
.ws-recent-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ws-recent-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ws-recent-company {
  font-size: var(--step--2);
  color: var(--ink-3);
  font-weight: 500;
}
.ws-recent-title {
  font-size: var(--step--1);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}
.ws-recent-arrow {
  color: var(--ink-3);
  display: grid;
  place-items: center;
  transition: transform 0.15s, color 0.15s;
}
.ws-recent-row:hover .ws-recent-arrow {
  color: var(--ink);
  transform: translateX(2px);
}

.ws-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.ws-plan h3 {
  margin: 2px 0 6px;
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.ws-plan p {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: var(--step--1);
  line-height: 1.45;
}
.ws-plan-features {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ws-plan-features li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: var(--step--1);
}
.ws-plan-features li svg {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  flex: none;
  color: var(--pos);
}
.ws-plan-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ws-plan-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--ink-2);
}
.ws-plan-note svg {
  flex: none;
  margin-top: 3px;
  color: var(--ink-3);
}
