/* =========================================================
   The Lab — app shell + dashboard styles
   Shared across every /the-lab/ surface.
   Loaded after /global.css.
   ========================================================= */

:root {
  --lab-ink: #07111f;
  --lab-ink-2: #0d2138;
  --lab-teal: #14b8a6;
  --lab-teal-d: #0f766e;
  --lab-mint: #6ee7d8;
  --lab-bg: #eef3f4;
  --lab-card: #ffffff;
  --lab-line: #e3e9ea;
  --lab-slate: #64748b;
}

*, *::before, *::after { box-sizing: border-box; }

.lab-body {
  margin: 0;
  background: var(--lab-bg);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}
.lab-body ::selection { background: rgba(20,184,166,.22); }
.lab-body ::-webkit-scrollbar { width: 10px; height: 10px; }
.lab-body ::-webkit-scrollbar-thumb {
  background: rgba(15,23,42,.16); border-radius: 999px;
  border: 2px solid transparent; background-clip: padding-box;
}

@keyframes lab-pulse { 0%,100% { opacity:.4; } 50% { opacity:1; } }
@keyframes lab-rise  { from { transform: translateY(8px); } to { transform: none; } }

/* ---- shell grid ------------------------------------------------ */
.lab-app {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
  background: var(--lab-bg);
}

/* ---- sidebar --------------------------------------------------- */
.lab-side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--lab-ink);
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 20px 16px; overflow-y: auto;
}
.lab-brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 0; }
.lab-brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--lab-teal-d), var(--lab-teal));
  box-shadow: 0 8px 18px rgba(20,184,166,.28);
}
.lab-brand-tx { display: grid; gap: 1px; }
.lab-brand-tx strong { font-size: 15px; font-weight: 850; letter-spacing: -.02em; color: #fff; }
.lab-brand-tx span { font-size: 11px; color: rgba(226,242,247,.55); font-weight: 600; }

.lab-nav-group { margin-top: 24px; display: grid; gap: 3px; }
.lab-nav-head {
  font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(226,242,247,.38); margin: 0 0 6px 10px;
}
.lab-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-decoration: none; padding: 11px 12px; border-radius: 11px;
  color: rgba(226,242,247,.66); transition: background .15s, color .15s;
}
.lab-nav:hover { background: rgba(255,255,255,.05); color: #eafffb; }
.lab-nav.is-active {
  color: #fff; background: rgba(20,184,166,.16);
  box-shadow: inset 0 0 0 1px rgba(110,231,216,.3);
}
.lab-nav-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lab-nav-ic { width: 20px; display: grid; place-items: center; font-size: 15px; color: rgba(226,242,247,.5); }
.lab-nav.is-active .lab-nav-ic { color: var(--lab-mint); }
.lab-nav-label { font-size: 13.5px; font-weight: 750; letter-spacing: -.01em; }
.lab-nav-badge {
  font-size: 10px; font-weight: 850; color: var(--lab-ink);
  background: var(--lab-mint); border-radius: 999px; padding: 2px 7px;
}
.lab-nav-ext { font-size: 13px; color: #7fb0ff; }

.lab-create { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.07); }
.lab-nav--studio {
  background: rgba(37,99,235,.12); border: 1px solid rgba(37,99,235,.26);
}
.lab-nav--studio:hover { background: rgba(37,99,235,.2); }
.lab-nav--studio .lab-nav-ic { color: #7fb0ff; }
.lab-nav--studio .lab-nav-label { color: #fff; font-weight: 800; }

.lab-nav--bench { background: rgba(244,201,93,.14); border: 1px solid rgba(212,160,23,.28); }
.lab-nav--bench:hover { background: rgba(244,201,93,.22); }
.lab-nav--bench .lab-nav-ic { color: #f4c95d; }
.lab-nav--bench .lab-nav-badge { background: #f4c95d; color: #4a3200; }

.lab-nav--community { background: rgba(20,184,166,.12); border: 1px solid rgba(20,184,166,.28); }
.lab-nav--community:hover { background: rgba(20,184,166,.2); }
.lab-nav--community .lab-nav-ic { color: #5eead4; }
.lab-nav--community .lab-nav-badge { background: #2dd4bf; color: #042f2c; }

.lab-nav--challenges { background: rgba(129,116,240,.14); border: 1px solid rgba(99,91,255,.3); }
.lab-nav--challenges:hover { background: rgba(129,116,240,.22); }
.lab-nav--challenges .lab-nav-ic { color: #a78bfa; }
.lab-nav--challenges .lab-nav-badge { background: #7048e8; color: #ede9fe; }

.lab-nav--plus { background: rgba(129,140,248,.12); border: 1px solid rgba(129,140,248,.26); }
.lab-nav--plus:hover { background: rgba(129,140,248,.2); }
.lab-nav--plus .lab-nav-ic { color: #a5b4fc; }
.lab-nav--plus .lab-nav-badge { background: #818cf8; color: #1e1b4b; }

.lab-nav.is-locked { cursor: not-allowed; opacity: .78; }
.lab-nav.is-locked:hover { background: rgba(129,140,248,.12); }
.lab-nav.is-locked .lab-nav-label { color: rgba(226,242,247,.7); }

.lab-side-foot { margin-top: auto; padding-top: 18px; display: grid; gap: 10px; }
.lab-acct { position: relative; }
.lab-id {
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 13px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  transition: background .15s, border-color .15s;
}
.lab-id:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); }
.lab-id[aria-expanded="true"] { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); }
.lab-id-av {
  flex: none; width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(140deg, var(--lab-teal-d), var(--lab-ink));
  display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #fff;
}
.lab-id-tx { display: grid; gap: 1px; min-width: 0; }
.lab-id-tx strong { font-size: 12.5px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab-id-tx span { font-size: 11px; color: rgba(226,242,247,.5); }
.lab-id-gear { margin-left: auto; color: rgba(226,242,247,.4); font-size: 15px; transition: transform .2s, color .15s; }
.lab-id:hover .lab-id-gear { color: rgba(226,242,247,.75); }
.lab-id[aria-expanded="true"] .lab-id-gear { transform: rotate(45deg); color: #cfeee8; }

/* account popover */
.lab-acct-menu[hidden] { display: none; }
.lab-acct-menu {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 40;
  padding: 7px; border-radius: 14px;
  background: #10312e; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 18px 44px -14px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.2);
  display: grid; gap: 2px;
  animation: lab-acct-in .14s ease;
}
@keyframes lab-acct-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lab-acct-head { display: flex; align-items: center; gap: 10px; padding: 7px 8px 9px; }
.lab-acct-av {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(140deg, var(--lab-teal-d), var(--lab-ink));
  display: grid; place-items: center; font-weight: 900; font-size: 12.5px; color: #fff;
}
.lab-acct-id { display: grid; gap: 1px; min-width: 0; }
.lab-acct-id strong { font-size: 12.5px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab-acct-id span { font-size: 11px; color: rgba(226,242,247,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab-acct-sep { height: 1px; background: rgba(255,255,255,.08); margin: 2px 4px; }
.lab-acct-item {
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px;
  background: transparent; border: 0; color: rgba(226,242,247,.82);
  font-size: 12.5px; font-weight: 700; text-decoration: none;
  transition: background .13s, color .13s;
}
.lab-acct-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.lab-acct-item:disabled { cursor: default; opacity: .8; }
.lab-acct-item.is-done { color: #6ee7c8; }
.lab-acct-ic { flex: none; width: 17px; text-align: center; font-size: 13px; opacity: .85; }
.lab-acct-item--out { color: #fca5a5; }
.lab-acct-item--out:hover { background: rgba(248,113,113,.12); color: #fecaca; }
.lab-exit {
  display: flex; align-items: center; gap: 9px; text-decoration: none;
  padding: 9px 12px; border-radius: 10px; color: rgba(226,242,247,.5);
  font-size: 12px; font-weight: 700; transition: color .15s, background .15s;
}
.lab-exit:hover { color: #cfeee8; background: rgba(255,255,255,.04); }

/* ---- main + topbar -------------------------------------------- */
.lab-main { min-width: 0; display: flex; flex-direction: column; }
.lab-top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 18px;
  padding: 16px 30px; background: rgba(238,243,244,.86);
  backdrop-filter: blur(10px); border-bottom: 1px solid #dde5e7;
}
.lab-menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 11px;
  border: 1px solid #dde5e7; background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.lab-top-title { font-size: 18px; font-weight: 850; letter-spacing: -.03em; color: var(--lab-ink); }
.lab-top-sub { font-size: 12.5px; color: var(--lab-slate); font-weight: 600; margin-top: 1px; }
.lab-top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lab-search {
  display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid #dde5e7;
  border-radius: 11px; padding: 9px 13px; min-width: 220px; box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.lab-search-ic { color: #94a3b8; font-size: 14px; }
.lab-search input { flex: 1; min-width: 0; border: 0; outline: none; font-family: inherit; font-size: 13px; color: #0f172a; background: transparent; }
.lab-icbtn {
  width: 40px; height: 40px; border-radius: 11px; border: 1px solid #dde5e7; background: #fff;
  cursor: pointer; display: grid; place-items: center; position: relative; transition: background .15s;
}
.lab-icbtn:hover { background: #f1f5f9; }
.lab-icbtn-dot { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 999px; background: var(--lab-teal); box-shadow: 0 0 0 2px #fff; }
.lab-new {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font-family: inherit; font-weight: 850; font-size: 13px; color: #fff;
  background: var(--lab-teal); border: 0; border-radius: 11px; padding: 10px 16px;
  cursor: pointer; box-shadow: 0 8px 18px rgba(20,184,166,.26); transition: background .15s;
}
.lab-new:hover { background: #0f9e8e; }

.lab-content { flex: 1; padding: 28px 30px 60px; max-width: none; width: 100%; box-sizing: border-box; }
.lab-content > * { animation: lab-rise .5s ease both; }

/* ---- shared breadcrumb + plan strip (used across surfaces) ----- */
.lab-crumbrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.lab-crumb { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: #94a3b8; }
.lab-crumb i { font-style: normal; opacity: .5; }
.lab-crumb .is-current { color: var(--lab-ink); }
.lab-crumb a { color: inherit; text-decoration: none; }
.lab-crumb a:hover { color: var(--lab-teal-d); }
.lab-crumbrow__actions { display: flex; align-items: center; gap: 10px; }
.lab-plan-pill { font-size: 12px; font-weight: 800; color: var(--lab-teal-d); background: rgba(20,184,166,.1); border: 1px solid rgba(20,184,166,.24); border-radius: 999px; padding: 7px 14px; white-space: nowrap; }

/* Flush variant — for immersive/editorial surfaces that need full-bleed
   sections (their own max-width wrappers per-section) instead of the
   standard padded, width-capped content column. */
.lab-content--flush { padding: 0; max-width: none; }

/* ---- generic surface pieces ----------------------------------- */
.lab-card {
  border-radius: 20px; background: var(--lab-card); border: 1px solid var(--lab-line);
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.lab-hero-dark {
  position: relative; overflow: hidden; border-radius: 22px;
  background: radial-gradient(80% 120% at 100% 0%, rgba(20,184,166,.16), transparent 55%),
              linear-gradient(160deg, #07111f 0%, #0d2138 100%);
  border: 1px solid rgba(110,231,216,.16); box-shadow: 0 24px 56px rgba(7,17,31,.22);
}
.lab-btn-teal {
  font-family: inherit; font-weight: 850; font-size: 13px; color: #fff; background: var(--lab-teal);
  border: 0; border-radius: 11px; padding: 11px 18px; cursor: pointer; transition: background .2s; text-decoration: none; display: inline-block;
}
.lab-btn-teal:hover { background: #0f9e8e; }
.lab-btn-mint {
  font-family: inherit; font-weight: 850; font-size: 13px; color: var(--lab-ink); background: var(--lab-mint);
  border: 0; border-radius: 11px; padding: 11px 18px; cursor: pointer; transition: background .2s; text-decoration: none; display: inline-block;
}
.lab-btn-mint:hover { background: #fff; }
.lab-btn-coral {
  font-family: inherit; font-weight: 850; font-size: 13px; color: #3a1a0f;
  background: linear-gradient(140deg,#ff9166,#ff7043); box-shadow: 0 8px 18px rgba(255,112,67,.3);
  border: 0; border-radius: 11px; padding: 11px 18px; cursor: pointer; transition: filter .2s; text-decoration: none; display: inline-block;
}
.lab-btn-coral:hover { filter: brightness(1.05); }
.lab-chip {
  font-size: 12px; font-weight: 800; color: var(--lab-teal-d); background: #fff;
  border: 1px solid rgba(20,184,166,.28); border-radius: 999px; padding: 7px 13px;
  text-decoration: none; transition: all .15s; display: inline-block;
}
.lab-chip:hover { border-color: rgba(20,184,166,.5); background: #f0fdfa; }

/* ---- dashboard-specific --------------------------------------- */
.dash { display: grid; gap: 18px; }
.dash-id { padding: 28px 30px; }
.dash-id-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.dash-ring { position: relative; width: 78px; height: 78px; flex: none; }
.dash-ring-av {
  position: absolute; inset: 13px; border-radius: 999px;
  background: linear-gradient(140deg, var(--lab-teal-d), var(--lab-teal));
  display: grid; place-items: center; font-weight: 900; font-size: 18px; color: #fff;
}
.dash-id-name { font-size: 24px; font-weight: 900; letter-spacing: -.03em; color: #fff; }
.dash-tag {
  font-size: 11px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase;
  color: var(--lab-mint); background: rgba(110,231,216,.12); border: 1px solid rgba(110,231,216,.28);
  border-radius: 6px; padding: 3px 9px;
}
.dash-id-sub { margin: 6px 0 0; font-size: 14px; color: rgba(226,242,247,.7); font-weight: 600; }
.dash-prog-wrap { margin-top: 14px; max-width: 360px; }
.dash-prog-top { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: rgba(226,242,247,.6); margin-bottom: 6px; }
.dash-prog { height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.dash-prog-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--lab-teal), var(--lab-mint)); transition: width .6s ease; }
.dash-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 22px; }
.dash-stat { text-align: center; }
.dash-stat.is-lead .dash-stat-v { color: var(--lab-mint); }
.dash-stat-v { font-size: 26px; font-weight: 900; letter-spacing: -.03em; color: #fff; line-height: 1; }
.dash-stat-k { font-size: 11px; color: rgba(226,242,247,.55); font-weight: 700; margin-top: 5px; }

/* ---- Today on the Floor + Choose your move -------------------- */
.dash-floor { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.floor-now { padding: 20px 22px; }
.floor-now-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.floor-now-t { font-size: 14px; font-weight: 850; letter-spacing: -.02em; color: var(--lab-ink); }
.floor-now-link { font-size: 12px; font-weight: 850; color: var(--lab-teal-d); text-decoration: none; }
.floor-now-list { display: grid; gap: 9px; }
.floor-skel { height: 58px; border-radius: 13px; background: linear-gradient(90deg,#f3f6f7 25%,#e8eeef 50%,#f3f6f7 75%); background-size: 200% 100%; animation: fr-shimmer 1.4s ease infinite; }
.floor-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 13px; background: #fbfdfd; border: 1px solid #eef2f3;
  text-decoration: none; transition: border-color .15s, background .15s, transform .12s;
}
.floor-row:hover { border-color: rgba(20,184,166,.4); background: #f5fbfb; transform: translateX(2px); }
.floor-row-av { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 850; font-size: 13px; color: #fff; }
.floor-row-tx { min-width: 0; display: grid; gap: 3px; }
.floor-row-kind { font-size: 9.5px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; border-radius: 5px; padding: 2px 7px; width: max-content; }
.floor-row-tx strong { font-size: 13px; font-weight: 800; color: var(--lab-ink); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.floor-row-meta { font-size: 11px; color: #94a3b8; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.floor-row-go { flex: none; font-size: 11.5px; font-weight: 850; color: var(--lab-teal-d); white-space: nowrap; }

.move-card-wrap { padding: 20px 22px; }
.move-head { margin-bottom: 14px; }
.move-sub { margin: 7px 0 0; font-size: 12.5px; color: var(--lab-slate); font-weight: 600; }
.move-grid { display: grid; gap: 9px; }
.move-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 13px 14px; border-radius: 13px; background: #fbfdfd; border: 1px solid #eef2f3;
  text-decoration: none; cursor: pointer; font-family: inherit; text-align: left; width: 100%; transition: border-color .15s, background .15s, transform .12s;
}
.move-card:hover { border-color: rgba(20,184,166,.4); background: #f5fbfb; transform: translateX(2px); }
.move-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; }
.move-tx { min-width: 0; display: grid; gap: 1px; }
.move-tx strong { font-size: 13.5px; font-weight: 850; color: var(--lab-ink); letter-spacing: -.01em; }
.move-tx span { font-size: 11.5px; color: var(--lab-slate); font-weight: 600; }
.move-go { flex: none; font-size: 15px; color: #cbd5e1; transition: color .15s, transform .15s; }
.move-card:hover .move-go { color: var(--lab-teal-d); transform: translateX(2px); }

/* ---- your activity (live) ------------------------------------ */
.act-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.act-title { font-size: 14px; font-weight: 850; letter-spacing: -.02em; color: #07111f; }
.act-link { font-size: 12px; font-weight: 850; color: var(--lab-teal-d); text-decoration: none; }
.act-list { display: grid; gap: 9px; }
.act-item { padding: 12px 14px; border-radius: 13px; background: #fbfdfd; border: 1px solid #eef2f3; }
.act-item-theme { font-size: 9.5px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; border-radius: 5px; padding: 3px 8px; display: inline-block; }
.act-item-tx { margin: 8px 0 0; font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; color: var(--lab-ink); }
.act-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 13px; }
.act-more { font-size: 12px; font-weight: 800; color: var(--lab-slate); text-decoration: none; }
.act-more:hover { color: var(--lab-teal-d); }
.act-rev-top { display: flex; align-items: center; gap: 10px; }
.act-rev-title { font-size: 13.5px; font-weight: 850; letter-spacing: -.02em; color: var(--lab-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-rev-status { margin-left: auto; flex: none; font-size: 9.5px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; color: #9a6a04; background: rgba(224,169,63,.14); border: 1px solid rgba(224,169,63,.34); border-radius: 5px; padding: 2px 8px; }
.act-rev-meta { font-size: 11.5px; font-weight: 700; color: #94a3b8; margin-top: 7px; }
.act-lenses { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.act-lens { font-size: 10px; font-weight: 800; color: var(--lab-teal-d); background: rgba(20,184,166,.08); border: 1px solid rgba(20,184,166,.26); border-radius: 999px; padding: 2px 9px; }

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

.dash-2col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.dash-half { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }

.dash-sec-eyebrow { font-size: 10.5px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: var(--lab-teal-d); }
.dash-sec-h { font-size: 22px; font-weight: 900; letter-spacing: -.03em; color: var(--lab-ink); margin: 8px 0 4px; }
.dash-sec-p { font-size: 14px; line-height: 1.55; color: var(--lab-slate); margin: 0; font-weight: 550; }

.mz-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center;
  padding: 13px 15px; border-radius: 14px; border: 1px solid #eef2f3; background: #fbfdfd;
}
.mz-row.is-done { border-color: rgba(20,184,166,.3); background: rgba(20,184,166,.06); }
.mz-mark { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; font-weight: 900; font-size: 12px; color: #94a3b8; background: rgba(148,163,184,.14); }
.mz-row.is-done .mz-mark { color: var(--lab-teal-d); background: rgba(20,184,166,.14); }
.mz-tx { display: grid; gap: 1px; min-width: 0; }
.mz-tx strong { font-size: 13.5px; font-weight: 800; color: var(--lab-ink); letter-spacing: -.01em; }
.mz-tx span { font-size: 12px; color: var(--lab-slate); line-height: 1.35; }
.mz-cta { font-size: 12px; font-weight: 850; color: var(--lab-teal-d); text-decoration: none; white-space: nowrap; }

.pulse-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--lab-teal); box-shadow: 0 0 0 4px rgba(20,184,166,.14); animation: lab-pulse 2.4s ease-in-out infinite; }
.pulse-row { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; padding: 12px 13px; border-radius: 13px; background: #fbfdfd; border: 1px solid #eef2f3; }
.pulse-av { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 850; font-size: 12px; color: #fff; }
.pulse-meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #94a3b8; font-weight: 650; }

.honest-empty { border: 1px dashed #d8e0e2; border-radius: 14px; background: #fbfdfd; padding: 18px; }

/* ---- responsive ----------------------------------------------- */
@media (max-width: 1080px) {
  .dash-2col, .dash-half { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .lab-app { grid-template-columns: 1fr; }
  .lab-side {
    position: fixed; inset: 0 auto 0 0; z-index: 40; width: 264px;
    transform: translateX(-100%); transition: transform .25s ease;
  }
  .lab-app.lab-side-open .lab-side { transform: none; box-shadow: 0 30px 80px rgba(7,17,31,.4); }
  .lab-menu-btn { display: inline-flex; }
  .dash-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .lab-search { min-width: 0; width: 44px; padding: 9px; }
  .lab-search input { display: none; }
  .lab-content { padding: 22px 18px 50px; }
  .lab-content--flush { padding: 0; }
  .lab-top { padding: 14px 18px; }
}

/* =========================================================
   Community — The Builders' Floor
   ========================================================= */
.flr { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.flr-main { display: grid; gap: 16px; min-width: 0; }

.flr-intro {
  position: relative; overflow: hidden; border-radius: 20px; padding: 26px 28px;
  background: radial-gradient(70% 120% at 0% 0%, rgba(20,184,166,.16), transparent 55%),
              linear-gradient(160deg, #07111f 0%, #0d2138 100%);
  border: 1px solid rgba(110,231,216,.16);
}
.flr-intro-eyebrow { font-size: 10.5px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: var(--lab-mint); }
.flr-intro-h { font-size: 26px; font-weight: 900; letter-spacing: -.035em; color: #fff; margin: 8px 0 6px; max-width: 560px; }
.flr-intro-p { margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(226,242,247,.74); font-weight: 550; max-width: 560px; }
.flr-intro-cta { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.flr-ghost {
  font-family: inherit; font-weight: 800; font-size: 13px; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 11px; padding: 11px 18px; cursor: pointer; transition: all .2s;
}
.flr-ghost:hover { background: #f0fdfa; color: var(--lab-ink); border-color: rgba(20,184,166,.4); }

.flr-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.flr-chip {
  cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: -.01em;
  padding: 9px 15px; border-radius: 999px; transition: all .15s;
  color: #475569; background: #fff; border: 1px solid #dde5e7;
}
.flr-chip:hover { border-color: rgba(20,184,166,.5); background: #f0fdfa; }
.flr-chip.is-active { color: #fff; background: var(--lab-teal); border-color: var(--lab-teal); }

.flr-banner {
  display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-radius: 13px;
  background: rgba(20,184,166,.07); border: 1px dashed rgba(20,184,166,.3);
}
.flr-banner-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--lab-teal); display: grid; place-items: center; color: #fff; font-size: 14px; }
.flr-banner p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--lab-teal-d); font-weight: 700; }

.flr-feed { display: grid; gap: 13px; }
.flr-post {
  border-radius: 18px; background: #fff; border: 1px solid var(--lab-line);
  box-shadow: 0 1px 2px rgba(15,23,42,.03); padding: 20px 22px;
  transition: border-color .15s, box-shadow .15s; animation: lab-rise .4s ease both;
}
.flr-post:hover { border-color: rgba(20,184,166,.32); box-shadow: 0 10px 28px rgba(15,23,42,.07); }
.flr-post-head { display: flex; align-items: center; gap: 12px; }
.flr-av { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 850; font-size: 14px; color: #fff; }
.flr-name { font-size: 14px; font-weight: 850; letter-spacing: -.01em; color: var(--lab-ink); }
.flr-role { font-size: 11px; font-weight: 750; color: #94a3b8; }
.flr-when { font-size: 12px; color: #94a3b8; font-weight: 650; }
.flr-kind {
  font-size: 10px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase;
  border-radius: 6px; padding: 4px 9px; white-space: nowrap;
}
.flr-title { font-size: 16px; font-weight: 850; letter-spacing: -.02em; color: var(--lab-ink); margin: 14px 0 0; }
.flr-body { font-size: 13.5px; line-height: 1.55; color: #475569; margin: 7px 0 0; font-weight: 550; }
.flr-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef2f3; flex-wrap: wrap; }
.flr-act {
  display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 12px; font-weight: 800; cursor: pointer;
  color: var(--lab-slate); background: #fbfdfd; border: 1px solid #e6edee; border-radius: 999px; padding: 7px 12px; transition: all .15s; text-decoration: none;
}
.flr-act i { font-style: normal; color: #94a3b8; font-size: 13px; line-height: 0; }
.flr-act:hover { border-color: rgba(20,184,166,.4); color: var(--lab-teal-d); background: #f0fdfa; }
.flr-act:hover i { color: var(--lab-teal-d); }
.flr-act.is-on { color: #fff; background: var(--lab-teal); border-color: var(--lab-teal); }
.flr-act.is-on i { color: #fff; }
.flr-foot-meta { margin-left: auto; font-size: 11.5px; font-weight: 700; color: #94a3b8; white-space: nowrap; }

.flr-replybox { margin-top: 12px; display: grid; gap: 8px; animation: lab-rise .25s ease both; }
.flr-replybox[hidden] { display: none; }
.flr-reply-ta {
  font-family: inherit; font-size: 13px; font-weight: 550; color: var(--lab-ink); width: 100%; box-sizing: border-box;
  background: #fbfdfd; border: 1px solid #dde5e7; border-radius: 11px; padding: 11px 13px; min-height: 60px; resize: vertical; line-height: 1.5;
}
.flr-reply-ta:focus { outline: none; border-color: var(--lab-teal); box-shadow: 0 0 0 3px rgba(20,184,166,.14); background: #fff; }
.flr-reply-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.flr-reply-send { font-family: inherit; font-weight: 850; font-size: 12.5px; color: #fff; background: var(--lab-teal); border: 0; border-radius: 10px; padding: 9px 16px; cursor: pointer; }
.flr-reply-send:hover { background: #0f9e8e; }
.flr-reply-note { font-size: 11px; color: #94a3b8; font-weight: 650; }

.flr-mini { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; text-decoration: none; padding: 9px 10px; border-radius: 11px; border: 1px solid #eef2f3; background: #fbfdfd; transition: all .15s; }
.flr-mini:hover { border-color: rgba(20,184,166,.4); background: #f5fbfb; }
.flr-mini-av { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 850; font-size: 11px; color: #fff; }
.flr-mini-rank { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 900; font-size: 12px; color: #9a6a04; background: rgba(224,169,63,.14); border: 1px solid rgba(224,169,63,.3); }
.flr-mini-tx { min-width: 0; display: grid; gap: 1px; }
.flr-mini-tx strong { font-size: 12px; font-weight: 800; color: var(--lab-ink); letter-spacing: -.01em; line-height: 1.25; }
.flr-mini-tx span { font-size: 10.5px; color: #94a3b8; font-weight: 650; }
.flr-mini-empty { margin: 0; font-size: 12px; color: #94a3b8; font-weight: 600; }

.flr-rail { display: grid; gap: 16px; align-content: start; position: sticky; top: 92px; }
.flr-rail-card { border-radius: 18px; background: #fff; border: 1px solid var(--lab-line); box-shadow: 0 1px 2px rgba(15,23,42,.03); padding: 18px; }
.flr-prompt { border-radius: 18px; padding: 18px 20px; background: linear-gradient(165deg,#0d2b28,#0a1f1d); color: #e7f6f3; margin-bottom: 16px; cursor: pointer; }
.flr-prompt__eyebrow { font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #6ee7d8; }
.flr-prompt__q { font-weight: 800; font-size: 15px; margin-top: 6px; }
.flr-prompt__reveal { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 8px; }
.flr-prompt__starter { font-size: 12px; color: #e7f6f3; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 9px 12px; text-decoration: none; display: block; }
.flr-prompt__starter:hover { background: rgba(255,255,255,.1); }
.flr-rail-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.flr-rail-head strong { font-size: 13px; font-weight: 850; color: var(--lab-ink); }
.flr-active-row { display: flex; align-items: center; gap: 10px; }
.flr-active-av { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 11px; color: #fff; }
.flr-active-tx strong { font-size: 12.5px; font-weight: 800; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.flr-active-tx span { font-size: 11px; color: #94a3b8; font-weight: 650; }
.flr-proof { border-radius: 18px; background: linear-gradient(160deg, #f0fdfa, #fff); border: 1px solid rgba(20,184,166,.2); padding: 18px; }
.flr-proof strong { font-size: 13.5px; font-weight: 850; letter-spacing: -.02em; color: var(--lab-ink); }
.flr-proof p { margin: 7px 0 0; font-size: 12.5px; line-height: 1.5; color: #475569; font-weight: 550; }

.flr-kindtoggle { display: flex; gap: 8px; }
.flr-kindbtn {
  flex: 1; cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: -.01em;
  padding: 10px 12px; border-radius: 11px; text-align: center; transition: all .15s;
  color: #475569; background: #fbfdfd; border: 1px solid #dde5e7;
}
.flr-kindbtn:hover { border-color: rgba(20,184,166,.5); background: #f0fdfa; }
.flr-kindbtn.is-active { color: #fff; background: var(--lab-teal); border-color: var(--lab-teal); }
.flr-reply-list { display: grid; gap: 8px; margin-bottom: 2px; }
.flr-reply-item { display: flex; gap: 9px; align-items: flex-start; padding: 9px 11px; border-radius: 11px; background: #fbfdfd; border: 1px solid #eef2f3; }
.flr-reply-av { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 9.5px; color: #fff; }
.flr-reply-body { min-width: 0; }
.flr-reply-body strong { font-size: 12px; font-weight: 800; color: var(--lab-ink); }
.flr-reply-body span { display: block; font-size: 11px; color: #94a3b8; font-weight: 650; margin-top: 1px; }
.flr-reply-body p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: #475569; font-weight: 550; }

@media (max-width: 1080px) {
  .flr { grid-template-columns: 1fr; }
  .flr-rail { position: static; }
}

/* =========================================================
   Design Reviews
   ========================================================= */
.rv { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.rv-main { display: grid; gap: 16px; min-width: 0; }

.rv-intro {
  position: relative; overflow: hidden; border-radius: 20px; padding: 26px 28px;
  background: radial-gradient(70% 120% at 100% 0%, rgba(22,184,217,.16), transparent 55%),
              linear-gradient(160deg, #07111f 0%, #0d2138 100%);
  border: 1px solid rgba(110,231,216,.16);
}
.rv-intro-eyebrow { font-size: 10.5px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: var(--lab-mint); }
.rv-intro-h { font-size: 26px; font-weight: 900; letter-spacing: -.035em; color: #fff; margin: 8px 0 6px; max-width: 560px; }
.rv-intro-p { margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(226,242,247,.74); font-weight: 550; max-width: 560px; }

.rv-form { border-radius: 20px; background: #fff; border: 1px solid var(--lab-line); box-shadow: 0 1px 2px rgba(15,23,42,.03); padding: 24px 26px; display: grid; gap: 20px; }
.rv-form-head strong { display: block; font-size: 17px; font-weight: 900; letter-spacing: -.03em; color: var(--lab-ink); }
.rv-form-head span { font-size: 13px; color: var(--lab-slate); font-weight: 600; }

.rv-field { display: grid; gap: 9px; }
.rv-label { font-size: 12.5px; font-weight: 850; letter-spacing: -.01em; color: var(--lab-ink); }
.rv-label em { font-style: normal; font-weight: 650; color: #94a3b8; }
.rv-input, .rv-textarea {
  font-family: inherit; font-size: 14px; font-weight: 550; color: var(--lab-ink);
  background: #fbfdfd; border: 1px solid #dde5e7; border-radius: 12px; padding: 12px 14px; width: 100%; box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.rv-textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.rv-input:focus, .rv-textarea:focus { outline: none; border-color: var(--lab-teal); box-shadow: 0 0 0 3px rgba(20,184,166,.14); background: #fff; }

.rv-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-opt {
  cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: -.01em;
  padding: 9px 14px; border-radius: 11px; transition: all .15s; color: #475569; background: #fbfdfd; border: 1px solid #dde5e7;
}
.rv-opt:hover { border-color: rgba(20,184,166,.5); }
.rv-opt.is-on { color: #fff; background: var(--lab-teal); border-color: var(--lab-teal); box-shadow: 0 6px 14px rgba(20,184,166,.22); }

.rv-lens { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-lens-opt {
  cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: -.01em;
  padding: 9px 14px 9px 11px; border-radius: 999px; transition: all .15s; color: #475569; background: #fff; border: 1px solid #dde5e7;
  display: inline-flex; align-items: center; gap: 7px;
}
.rv-lens-opt .rv-tick { width: 15px; height: 15px; border-radius: 5px; border: 1.5px solid #cbd5e1; display: grid; place-items: center; font-size: 10px; color: transparent; transition: all .15s; }
.rv-lens-opt:hover { border-color: rgba(20,184,166,.5); }
.rv-lens-opt.is-on { color: var(--lab-teal-d); background: rgba(20,184,166,.08); border-color: rgba(20,184,166,.4); }
.rv-lens-opt.is-on .rv-tick { background: var(--lab-teal); border-color: var(--lab-teal); color: #fff; }

.rv-drop {
  position: relative; border: 1.5px dashed #cdd7d9; border-radius: 14px; background: #fbfdfd;
  padding: 22px 18px; text-align: center; transition: all .15s;
}
.rv-drop:hover { border-color: rgba(20,184,166,.5); background: #f6fbfb; }
.rv-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rv-drop-ic { width: 38px; height: 38px; margin: 0 auto 9px; border-radius: 11px; background: rgba(20,184,166,.12); display: grid; place-items: center; color: var(--lab-teal-d); font-size: 17px; }
.rv-drop-t { font-size: 13.5px; font-weight: 800; color: var(--lab-ink); }
.rv-drop-s { font-size: 11.5px; color: #94a3b8; font-weight: 650; margin-top: 3px; }
.rv-drop-badge { display: inline-block; margin-top: 10px; font-size: 10px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; color: #9a6a04; background: rgba(224,169,63,.14); border: 1px solid rgba(224,169,63,.34); border-radius: 6px; padding: 3px 9px; }
.rv-drop.has-file { border-color: var(--lab-teal); background: rgba(20,184,166,.06); }
.rv-drop.has-file .rv-drop-ic { background: var(--lab-teal); color: #fff; }

.rv-hint { font-size: 11.5px; line-height: 1.45; color: #64748b; font-weight: 650; background: rgba(22,184,217,.07); border: 1px solid rgba(22,184,217,.2); border-radius: 10px; padding: 9px 12px; display: none; }
.rv-hint.show { display: block; }

.rv-sharper { margin-top: 11px; }
.rv-sharper-lab { display: block; font-size: 11.5px; font-weight: 700; color: #94a3b8; margin-bottom: 8px; }
.rv-sharper-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.rv-sharper-chip {
  font-family: inherit; font-size: 11.5px; font-weight: 750; color: #475569; cursor: pointer;
  background: rgba(22,184,217,.06); border: 1px solid rgba(22,184,217,.22); border-radius: 999px; padding: 7px 12px; transition: all .15s; text-align: left;
}
.rv-sharper-chip:hover { border-color: rgba(22,184,217,.45); background: rgba(22,184,217,.12); color: #0789a2; }

.rv-submit-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rv-submit { font-family: inherit; font-weight: 850; font-size: 14px; color: #fff; background: var(--lab-teal); border: 0; border-radius: 12px; padding: 13px 24px; cursor: pointer; box-shadow: 0 10px 22px rgba(20,184,166,.26); transition: all .2s; }
.rv-submit:hover { background: #0f9e8e; transform: translateY(-1px); }
.rv-submit-note { font-size: 11.5px; color: #94a3b8; font-weight: 650; max-width: 280px; line-height: 1.4; }

.rv-toast { border-radius: 14px; background: rgba(20,184,166,.08); border: 1px solid rgba(20,184,166,.3); padding: 14px 16px; display: none; align-items: flex-start; gap: 11px; animation: lab-rise .35s ease both; }
.rv-toast.show { display: flex; }
.rv-toast-ic { flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--lab-teal); display: grid; place-items: center; color: #fff; font-size: 14px; }
.rv-toast strong { font-size: 13px; font-weight: 850; color: var(--lab-teal-d); }
.rv-toast p { margin: 2px 0 0; font-size: 12px; color: #475569; font-weight: 600; line-height: 1.45; }

.rv-reqs { display: grid; gap: 11px; }
.rv-req { border-radius: 16px; background: #fff; border: 1px solid var(--lab-line); box-shadow: 0 1px 2px rgba(15,23,42,.03); padding: 16px 18px; animation: lab-rise .4s ease both; }
.rv-req-top { display: flex; align-items: center; gap: 10px; }
.rv-req-title { font-size: 14.5px; font-weight: 850; letter-spacing: -.02em; color: var(--lab-ink); }
.rv-req-status { margin-left: auto; font-size: 10.5px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; border-radius: 6px; padding: 4px 9px; white-space: nowrap; color: #9a6a04; background: rgba(224,169,63,.14); border: 1px solid rgba(224,169,63,.34); }
.rv-req-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 9px; font-size: 11.5px; font-weight: 700; color: #94a3b8; }
.rv-req-meta b { color: var(--lab-slate); font-weight: 800; }
.rv-req-lenses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.rv-req-lens { font-size: 10.5px; font-weight: 800; color: var(--lab-teal-d); background: rgba(20,184,166,.08); border: 1px solid rgba(20,184,166,.26); border-radius: 999px; padding: 3px 10px; }
.rv-req-del { background: none; border: 0; color: #cbd5e1; cursor: pointer; font-size: 16px; font-family: inherit; padding: 2px 4px; transition: color .15s; }
.rv-req-del:hover { color: #ef4444; }

/* right rail */
.rv-rail { display: grid; gap: 16px; align-content: start; position: sticky; top: 92px; }
.rv-rail-card { border-radius: 18px; background: #fff; border: 1px solid var(--lab-line); box-shadow: 0 1px 2px rgba(15,23,42,.03); padding: 18px 20px; }
.rv-rail-card h4 { margin: 0 0 14px; font-size: 13px; font-weight: 850; color: var(--lab-ink); }
.rv-life { display: grid; gap: 0; }
.rv-life-step { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.rv-life-rail { display: flex; flex-direction: column; align-items: center; }
.rv-life-dot { width: 13px; height: 13px; border-radius: 999px; border: 2px solid var(--lab-teal); background: #fff; flex: none; }
.rv-life-step:first-child .rv-life-dot { background: var(--lab-teal); }
.rv-life-line { width: 2px; flex: 1; background: #e2e8f0; min-height: 18px; }
.rv-life-step:last-child .rv-life-line { display: none; }
.rv-life-tx { padding-bottom: 16px; }
.rv-life-step:last-child .rv-life-tx { padding-bottom: 0; }
.rv-life-tx strong { display: block; font-size: 12.5px; font-weight: 850; color: var(--lab-ink); }
.rv-life-tx span { font-size: 11.5px; color: var(--lab-slate); font-weight: 600; line-height: 1.4; }
.rv-who { display: grid; gap: 11px; }
.rv-who-row { display: flex; gap: 10px; }
.rv-who-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; }
.rv-who-tx strong { display: block; font-size: 12.5px; font-weight: 850; color: var(--lab-ink); }
.rv-who-tx span { font-size: 11.5px; color: var(--lab-slate); font-weight: 600; line-height: 1.4; }

@media (max-width: 1080px) {
  .rv { grid-template-columns: 1fr; }
  .rv-rail { position: static; }
}

/* =========================================================
   Builder Profile — collectible card + identity
   ========================================================= */
@keyframes bc-foil { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
@keyframes bc-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes bc-pop { 0% { opacity: 0; transform: translateY(14px) scale(.97); } 100% { opacity: 1; transform: none; } }

.pf-wrap { display: grid; gap: 28px; justify-items: center; }

.pf-stage {
  position: relative; width: 100%; border-radius: 22px; overflow: hidden;
  padding: 40px 24px 36px; display: flex; justify-content: center;
  background: radial-gradient(60% 70% at 50% 0%, #f4fbfa 0%, #e7f1f0 55%, #dfeceb 100%);
  border: 1px solid var(--lab-line);
}
.pf-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 40% at 82% 16%, rgba(20,184,166,.14), transparent 60%),
              radial-gradient(40% 40% at 12% 92%, rgba(37,99,235,.07), transparent 60%);
}
.pf-burst { position: absolute; inset: 0; pointer-events: none; z-index: 60; overflow: visible; }

.pf-picker { display: flex; flex-direction: column; align-items: center; gap: 13px; }
.pf-picker-h { font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: var(--lab-teal-d); }
.pf-pick-row { display: flex; gap: 11px; flex-wrap: wrap; justify-content: center; max-width: 430px; }
.pf-pick { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; padding: 0; cursor: pointer; background: #0b2a2a; transition: transform .15s ease; }
.pf-pick:hover { transform: translateY(-3px) scale(1.08); }
.pf-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-pick-cap { font-size: 13.5px; }
.pf-pick-cap strong { font-weight: 850; color: var(--lab-ink); }
.pf-pick-cap span { color: var(--lab-slate); }

.pf-actions { display: flex; gap: 11px; flex-wrap: wrap; justify-content: center; }
.pf-act {
  display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-weight: 800; font-size: 14px;
  color: var(--lab-ink); background: #fff; border: 1px solid #d8e0ea; border-radius: 12px; padding: 12px 19px;
  cursor: pointer; box-shadow: 0 4px 14px rgba(15,23,42,.05); transition: all .15s; text-decoration: none;
}
.pf-act:hover { border-color: var(--lab-teal); color: var(--lab-teal-d); }
.pf-act--primary { color: #fff; background: var(--lab-teal); border-color: var(--lab-teal); box-shadow: 0 12px 26px rgba(20,184,166,.28); }
.pf-act--primary:hover { background: #0f9e8e; color: #fff; }

.pf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: 100%; align-items: start; }
.pf-card-panel { border-radius: 18px; background: #fff; border: 1px solid var(--lab-line); box-shadow: 0 1px 2px rgba(15,23,42,.03); padding: 20px 22px; }
.pf-card-panel h4 { margin: 0 0 4px; font-size: 15px; font-weight: 900; letter-spacing: -.02em; color: var(--lab-ink); }
.pf-card-panel .pf-sub { margin: 0 0 16px; font-size: 12.5px; color: var(--lab-slate); font-weight: 600; line-height: 1.45; }

.pf-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.pf-badge { text-align: center; border-radius: 13px; border: 1px solid var(--lab-line); background: #fbfdfd; padding: 14px 8px; transition: all .2s; }
.pf-badge-ic { width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; }
.pf-badge-t { font-size: 11.5px; font-weight: 850; color: var(--lab-ink); letter-spacing: -.01em; line-height: 1.2; }
.pf-badge-s { font-size: 10px; font-weight: 700; color: #94a3b8; margin-top: 3px; line-height: 1.3; }
.pf-badge.is-earned { border-color: rgba(224,169,63,.4); background: linear-gradient(160deg, #fffdf6, #fff); box-shadow: 0 8px 20px rgba(224,169,63,.16); }
.pf-badge.is-earned .pf-badge-ic { background: linear-gradient(140deg, #e0a93f, #f4c95d); color: #fff; box-shadow: 0 6px 14px rgba(224,169,63,.3); }
.pf-badge.is-locked { opacity: .72; }
.pf-badge.is-locked .pf-badge-ic { background: #eef2f4; color: #b6c2c5; }

.pf-guide { display: grid; gap: 12px; }
.pf-moves-band {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 14px 16px; border-radius: 14px;
  background: radial-gradient(70% 130% at 100% 0%, rgba(20,184,166,.14), transparent 60%), linear-gradient(160deg, #07111f, #0d2138);
  border: 1px solid rgba(110,231,216,.18);
}
.pf-moves-v { flex: none; font-size: 34px; font-weight: 900; letter-spacing: -.04em; color: var(--lab-mint); line-height: 1; }
.pf-moves-k { display: grid; gap: 2px; }
.pf-moves-k strong { font-size: 13.5px; font-weight: 850; color: #fff; letter-spacing: -.01em; }
.pf-moves-k span { font-size: 11px; color: rgba(226,242,247,.6); font-weight: 600; }
.pf-badge.just-earned { animation: pf-badge-pop .8s cubic-bezier(.2,.9,.3,1); }
@keyframes pf-badge-pop { 0% { transform: scale(1); } 30% { transform: scale(1.14) rotate(-3deg); } 60% { transform: scale(1.05) rotate(2deg); } 100% { transform: scale(1); } }
.pf-guide-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.pf-guide-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; background: rgba(20,184,166,.1); color: var(--lab-teal-d); display: grid; place-items: center; font-size: 14px; font-weight: 900; }
.pf-guide-tx strong { display: block; font-size: 12.5px; font-weight: 800; color: var(--lab-ink); }
.pf-guide-tx span { font-size: 11.5px; color: var(--lab-slate); font-weight: 600; }
.pf-guide-val { font-size: 12px; font-weight: 850; color: var(--lab-teal-d); white-space: nowrap; }

@media (max-width: 860px) {
  .pf-cols { grid-template-columns: 1fr; }
}

/* =========================================================
   Field Notes (workspace surface)
   ========================================================= */
.nt { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.nt-main { display: grid; gap: 16px; min-width: 0; }

.nt-intro {
  position: relative; overflow: hidden; border-radius: 20px; padding: 26px 28px;
  background: radial-gradient(70% 120% at 100% 0%, rgba(112,72,232,.16), transparent 55%),
              linear-gradient(160deg, #07111f 0%, #0d2138 100%);
  border: 1px solid rgba(110,231,216,.16);
}
.nt-intro-eyebrow { font-size: 10.5px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: var(--lab-mint); }
.nt-intro-h { font-size: 26px; font-weight: 900; letter-spacing: -.035em; color: #fff; margin: 8px 0 6px; max-width: 560px; }
.nt-intro-p { margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(226,242,247,.74); font-weight: 550; max-width: 560px; }

.nt-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.nt-chip {
  font-family: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: -.01em; cursor: pointer;
  color: var(--lab-slate); background: #fff; border: 1px solid var(--lab-line); border-radius: 999px; padding: 8px 14px; transition: all .15s;
}
.nt-chip:hover { border-color: rgba(20,184,166,.5); background: #f0fdfa; }
.nt-chip.is-active { color: #fff; background: var(--lab-teal); border-color: var(--lab-teal); }

.nt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.nt-card {
  position: relative; border-radius: 16px; background: #fff; border: 1px solid var(--lab-line);
  box-shadow: 0 1px 2px rgba(15,23,42,.03); padding: 18px 19px; display: flex; flex-direction: column;
  animation: lab-rise .4s ease both; transition: border-color .15s, box-shadow .15s;
}
.nt-card:hover { border-color: rgba(20,184,166,.4); box-shadow: 0 10px 26px rgba(15,23,42,.07); }
.nt-card.is-mine { border-color: rgba(20,184,166,.45); background: linear-gradient(160deg, #f5fdfb, #fff); }
.nt-theme { font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; border-radius: 6px; padding: 4px 9px; width: max-content; }
.nt-quote { font-size: 14.5px; font-weight: 750; line-height: 1.45; letter-spacing: -.01em; color: var(--lab-ink); margin: 12px 0 0; }
.nt-context { font-size: 12px; line-height: 1.5; color: #64748b; font-weight: 550; margin: 8px 0 0; }
.nt-foot { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding-top: 13px; border-top: 1px solid #eef2f3; }
.nt-av { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 850; font-size: 11px; color: #fff; }
.nt-by { display: grid; gap: 0; min-width: 0; }
.nt-by strong { font-size: 12px; font-weight: 800; color: var(--lab-ink); letter-spacing: -.01em; }
.nt-by span { font-size: 10.5px; color: #94a3b8; font-weight: 650; }
.nt-save {
  margin-left: auto; flex: none; font-family: inherit; font-size: 11.5px; font-weight: 800; cursor: pointer;
  color: var(--lab-teal-d); background: rgba(20,184,166,.08); border: 1px solid rgba(20,184,166,.26);
  border-radius: 999px; padding: 6px 12px; transition: all .15s; display: inline-flex; align-items: center; gap: 5px;
}
.nt-save:hover { background: rgba(20,184,166,.16); }
.nt-save.is-saved { color: #fff; background: var(--lab-teal); border-color: var(--lab-teal); }
.nt-save.just-saved { animation: nt-pop .45s cubic-bezier(.2,.9,.3,1); }
@keyframes nt-pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }

.nt-starters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 2px; }
.nt-starter {
  font-family: inherit; font-size: 11px; font-weight: 700; color: #64748b; cursor: pointer;
  background: #fbfdfd; border: 1px solid #e6edee; border-radius: 999px; padding: 5px 11px; transition: all .15s; text-align: left;
}
.nt-starter:hover { border-color: rgba(112,72,232,.4); background: rgba(112,72,232,.06); color: #7048e8; }

.nt-mine-tag { position: absolute; top: 14px; right: 15px; font-size: 9.5px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; color: var(--lab-teal-d); }

/* composer */
.nt-composer { border-radius: 20px; background: #fff; border: 1px solid var(--lab-line); box-shadow: 0 1px 2px rgba(15,23,42,.03); padding: 22px 24px; }
.nt-comp-head strong { display: block; font-size: 16px; font-weight: 900; letter-spacing: -.03em; color: var(--lab-ink); }
.nt-comp-head span { font-size: 12.5px; color: var(--lab-slate); font-weight: 600; }
.nt-comp-grid { display: grid; grid-template-columns: 1fr 280px; gap: 22px; margin-top: 18px; align-items: start; }
.nt-form { display: grid; gap: 14px; }
.nt-row { display: grid; gap: 7px; }
.nt-lab { font-size: 12px; font-weight: 800; color: var(--lab-ink); }
.nt-lab em { font-style: normal; font-weight: 650; color: #94a3b8; }
.nt-in, .nt-ta, .nt-sel {
  font-family: inherit; font-size: 13.5px; font-weight: 550; color: var(--lab-ink);
  background: #fbfdfd; border: 1px solid #dde5e7; border-radius: 11px; padding: 11px 13px; width: 100%; box-sizing: border-box; transition: border-color .15s, box-shadow .15s;
}
.nt-ta { resize: vertical; min-height: 64px; line-height: 1.5; }
.nt-in:focus, .nt-ta:focus, .nt-sel:focus { outline: none; border-color: var(--lab-teal); box-shadow: 0 0 0 3px rgba(20,184,166,.14); background: #fff; }
.nt-count { font-size: 10.5px; font-weight: 700; color: #94a3b8; text-align: right; }
.nt-submit { font-family: inherit; font-weight: 850; font-size: 13.5px; color: #fff; background: var(--lab-teal); border: 0; border-radius: 11px; padding: 12px 22px; cursor: pointer; box-shadow: 0 10px 22px rgba(20,184,166,.26); transition: all .2s; justify-self: start; }
.nt-submit:hover { background: #0f9e8e; transform: translateY(-1px); }
.nt-prev-label { font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; }
.nt-prev-hint { font-size: 11px; color: #94a3b8; font-weight: 600; line-height: 1.45; margin: 10px 0 0; }
.nt-note-saved { font-size: 11.5px; color: var(--lab-teal-d); font-weight: 750; margin: 10px 0 0; display: none; }
.nt-note-saved.show { display: block; }

/* rail */
.nt-rail { display: grid; gap: 16px; align-content: start; position: sticky; top: 92px; }
.nt-rail-card { border-radius: 18px; background: #fff; border: 1px solid var(--lab-line); box-shadow: 0 1px 2px rgba(15,23,42,.03); padding: 18px 20px; }
.nt-rail-card h4 { margin: 0 0 14px; font-size: 13px; font-weight: 850; color: var(--lab-ink); }
.nt-steps { display: grid; gap: 13px; }
.nt-step { display: grid; grid-template-columns: auto 1fr; gap: 11px; }
.nt-step-n { flex: none; width: 24px; height: 24px; border-radius: 7px; background: rgba(20,184,166,.1); color: var(--lab-teal-d); display: grid; place-items: center; font-size: 11px; font-weight: 900; }
.nt-step-tx strong { display: block; font-size: 12.5px; font-weight: 800; color: var(--lab-ink); }
.nt-step-tx span { font-size: 11.5px; color: var(--lab-slate); font-weight: 600; line-height: 1.4; }

@media (max-width: 1080px) {
  .nt { grid-template-columns: 1fr; }
  .nt-rail { position: static; }
}
@media (max-width: 720px) {
  .nt-grid { grid-template-columns: 1fr; }
  .nt-comp-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   My Library (workspace surface — saved knowledge)
   ========================================================= */
.lb { display: grid; gap: 22px; }
.lb-intro {
  position: relative; overflow: hidden; border-radius: 20px; padding: 24px 26px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: radial-gradient(70% 130% at 100% 0%, rgba(20,184,166,.16), transparent 55%),
              linear-gradient(160deg, #07111f 0%, #0d2138 100%);
  border: 1px solid rgba(110,231,216,.16);
}
.lb-intro-tx { flex: 1 1 320px; min-width: 0; }
.lb-intro-eyebrow { font-size: 10.5px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: var(--lab-mint); }
.lb-intro-h { font-size: 24px; font-weight: 900; letter-spacing: -.035em; color: #fff; margin: 8px 0 6px; max-width: 540px; }
.lb-intro-p { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(226,242,247,.74); font-weight: 550; max-width: 540px; }
.lb-intro-btn {
  flex: none; font-family: inherit; font-weight: 850; font-size: 13.5px; color: var(--lab-ink); background: var(--lab-mint);
  border: 0; border-radius: 12px; padding: 13px 20px; cursor: pointer; transition: background .2s; white-space: nowrap;
}
.lb-intro-btn:hover { background: #fff; }
.lb-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -8px; }
.lb-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.lb-tab {
  font-family: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: -.01em; cursor: pointer;
  color: var(--lab-slate); background: #fff; border: 1px solid var(--lab-line); border-radius: 999px; padding: 8px 15px; transition: all .15s; display: inline-flex; align-items: center; gap: 7px;
}
.lb-tab:hover { border-color: rgba(20,184,166,.5); background: #f0fdfa; }
.lb-tab.is-active { color: #fff; background: var(--lab-ink); border-color: var(--lab-ink); }
.lb-tab b { font-weight: 850; opacity: .55; font-size: 11.5px; }
.lb-tab.is-active b { opacity: .75; }

.lb-sec { display: grid; gap: 14px; }
.lb-sec-head { display: flex; align-items: baseline; gap: 10px; }
.lb-sec-head h3 { margin: 0; font-size: 16px; font-weight: 900; letter-spacing: -.03em; color: var(--lab-ink); }
.lb-sec-head span { font-size: 12.5px; color: var(--lab-slate); font-weight: 650; }

.nt-save.nt-remove { color: #b91c1c; background: rgba(220,38,38,.07); border-color: rgba(220,38,38,.22); }
.nt-save.nt-remove:hover { background: rgba(220,38,38,.13); }

.lb-empty {
  border: 1px dashed var(--lab-line); border-radius: 16px; background: #fbfdfd; padding: 26px 24px; text-align: center;
}
.lb-empty strong { display: block; font-size: 14px; font-weight: 850; color: var(--lab-ink); margin-bottom: 5px; }
.lb-empty span { font-size: 12.5px; color: #64748b; font-weight: 550; }
.lb-empty a { color: var(--lab-teal-d); font-weight: 750; text-decoration: none; border-bottom: 1px solid rgba(20,184,166,.4); }

/* vault link-out */
.lb-vault {
  position: relative; overflow: hidden; border-radius: 20px; padding: 24px 26px;
  background: radial-gradient(80% 130% at 100% 0%, rgba(37,99,235,.18), transparent 55%),
              linear-gradient(160deg, #07111f 0%, #0d2138 100%);
  border: 1px solid rgba(37,99,235,.22); display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.lb-vault-tx { flex: 1 1 320px; min-width: 0; }
.lb-vault-tx strong { display: block; font-size: 17px; font-weight: 900; letter-spacing: -.03em; color: #fff; }
.lb-vault-tx p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: rgba(226,242,247,.74); font-weight: 550; }
.lb-vault .lab-btn-mint { flex: none; white-space: nowrap; }

/* =========================================================
   Feature request — inline Tally embed band
   ========================================================= */
.fr-band { overflow: hidden; }
.fr-head { padding: 24px 26px 0; display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.fr-head-tx { flex: 1 1 360px; min-width: 0; }
.fr-head-tx .dash-sec-h { margin: 8px 0 5px; }
.fr-head-side {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--lab-teal-d);
  background: rgba(20,184,166,.08); border: 1px solid rgba(20,184,166,.26); border-radius: 999px; padding: 7px 13px;
}
.fr-head-side .pulse-dot { width: 7px; height: 7px; box-shadow: 0 0 0 3px rgba(20,184,166,.14); }

.fr-collect { display: flex; flex-wrap: wrap; gap: 7px; padding: 16px 26px 4px; }
.fr-pill {
  font-size: 11.5px; font-weight: 750; color: var(--lab-slate);
  background: #fbfdfd; border: 1px solid #e6edee; border-radius: 999px; padding: 6px 12px;
  display: inline-flex; align-items: center; gap: 6px;
}
.fr-pill b { color: var(--lab-ink); font-weight: 850; }
.fr-pill i { font-style: normal; color: var(--lab-teal); }

.fr-embed { padding: 16px 26px 26px; }
.fr-embed-inner {
  border-radius: 16px; border: 1px solid var(--lab-line); background: #fbfdfd; overflow: hidden;
  min-height: 220px; position: relative;
}
.fr-embed iframe { display: block; width: 100%; border: 0; background: transparent; }

/* skeleton while the form loads */
.fr-skel { padding: 26px 28px; display: grid; gap: 16px; }
.fr-skel-row { display: grid; gap: 9px; }
.fr-skel-bar { height: 11px; border-radius: 6px; background: linear-gradient(90deg,#eef2f3 25%,#e2e8f0 50%,#eef2f3 75%); background-size: 200% 100%; animation: fr-shimmer 1.4s ease infinite; }
.fr-skel-field { height: 44px; border-radius: 11px; background: linear-gradient(90deg,#f1f5f6 25%,#e6edee 50%,#f1f5f6 75%); background-size: 200% 100%; animation: fr-shimmer 1.4s ease infinite; }
@keyframes fr-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* "connect your Tally form" placeholder (shown until a real form id is set) */
.fr-placeholder { padding: 34px 30px; text-align: center; display: grid; gap: 7px; place-items: center; }
.fr-placeholder-ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; color: var(--lab-teal-d);
  background: rgba(20,184,166,.1); border: 1px solid rgba(20,184,166,.24); margin-bottom: 4px;
}
.fr-placeholder strong { font-size: 14.5px; font-weight: 850; letter-spacing: -.02em; color: var(--lab-ink); }
.fr-placeholder p { margin: 0; max-width: 440px; font-size: 12.5px; line-height: 1.55; color: #64748b; font-weight: 550; }
.fr-placeholder code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--lab-teal-d); background: rgba(20,184,166,.08); border: 1px solid rgba(20,184,166,.2); border-radius: 6px; padding: 2px 7px; }

@media (max-width: 860px) {
  .fr-head { padding: 20px 18px 0; }
  .fr-collect { padding: 14px 18px 2px; }
  .fr-embed { padding: 14px 18px 20px; }
}

/* =========================================================
   Quick Actions layer — search button, command palette,
   Field Note composer slide-over, toast
   ========================================================= */

/* topbar search -> command trigger */
.lab-search { cursor: pointer; gap: 10px; }
.lab-search:hover { border-color: rgba(20,184,166,.5); background: #f6fbfb; }
.lab-search-ph { flex: 1; font-size: 13px; color: #94a3b8; font-weight: 600; text-align: left; white-space: nowrap; }
.lab-kbd { display: inline-flex; gap: 3px; }
.lab-kbd kbd {
  font-family: inherit; font-size: 10.5px; font-weight: 800; color: #64748b;
  background: #f1f5f9; border: 1px solid #e2e8f0; border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; line-height: 1.4;
}
.lab-quick {
  display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-weight: 850; font-size: 13px;
  color: var(--lab-teal-d); background: #fff; border: 1px solid rgba(20,184,166,.32); border-radius: 11px;
  padding: 10px 15px; cursor: pointer; transition: all .15s; white-space: nowrap;
}
.lab-quick:hover { background: #f0fdfa; border-color: rgba(20,184,166,.55); }
.lab-quick span { font-size: 15px; line-height: 0; }

@media (max-width: 1100px) {
  .lab-quick span:last-child, .lab-new span:last-child { }
  .lab-quick { padding: 10px 13px; }
}
@media (max-width: 860px) {
  .lab-search-ph, .lab-kbd { display: none; }
  .lab-search { min-width: 0; width: 44px; justify-content: center; }
  .lab-quick { font-size: 0; gap: 0; padding: 11px; }
  .lab-quick span { font-size: 17px; }
}

/* ---- command palette ----------------------------------------- */
.cmdk { position: fixed; inset: 0; z-index: 120; display: none; }
.cmdk.is-open { display: block; }
.cmdk-scrim { position: absolute; inset: 0; background: rgba(7,17,31,.5); backdrop-filter: blur(4px); animation: qa-fade .18s ease both; }
.cmdk-panel {
  position: relative; max-width: 600px; margin: 11vh auto 0; background: #fff;
  border: 1px solid var(--lab-line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(7,17,31,.4); animation: qa-pop .22s cubic-bezier(.2,.9,.3,1) both;
}
.cmdk-input-row { display: flex; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid #eef2f3; }
.cmdk-ic { color: #94a3b8; font-size: 16px; }
.cmdk-input { flex: 1; border: 0; outline: none; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--lab-ink); background: transparent; }
.cmdk-input::placeholder { color: #b6c2c5; font-weight: 550; }
.cmdk-esc { font-size: 10.5px; font-weight: 800; color: #94a3b8; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px; padding: 3px 8px; }
.cmdk-results { max-height: 52vh; overflow-y: auto; padding: 8px; }
.cmdk-group { font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; padding: 12px 12px 6px; }
.cmdk-item {
  width: 100%; display: flex; align-items: center; gap: 13px; text-align: left;
  padding: 11px 12px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; font-family: inherit;
}
.cmdk-item.is-active { background: rgba(20,184,166,.08); }
.cmdk-item-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; color: var(--lab-teal-d); background: rgba(20,184,166,.1); }
.cmdk-item-tx { min-width: 0; flex: 1; display: grid; gap: 1px; }
.cmdk-item-tx strong { font-size: 13.5px; font-weight: 800; color: var(--lab-ink); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-item-tx span { font-size: 11.5px; color: #94a3b8; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-item-tag { flex: none; font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; color: #94a3b8; }
.cmdk-item.is-active .cmdk-item-tag { color: var(--lab-teal-d); }
.cmdk-empty { padding: 30px 20px; text-align: center; font-size: 13px; color: #94a3b8; font-weight: 600; }
.cmdk-empty kbd { font-family: inherit; font-weight: 800; color: #64748b; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 5px; padding: 1px 6px; }
.cmdk-foot { display: flex; gap: 18px; padding: 11px 18px; border-top: 1px solid #eef2f3; background: #fbfdfd; }
.cmdk-foot span { font-size: 11px; font-weight: 700; color: #94a3b8; display: inline-flex; align-items: center; gap: 5px; }
.cmdk-foot kbd { font-family: inherit; font-size: 10px; font-weight: 800; color: #64748b; background: #fff; border: 1px solid #e2e8f0; border-radius: 5px; padding: 1px 5px; }

/* ---- field note composer (slide-over) ------------------------ */
.qa-layer { position: fixed; inset: 0; z-index: 115; display: none; }
.qa-layer.is-open { display: block; }
.qa-scrim { position: absolute; inset: 0; background: rgba(7,17,31,.5); backdrop-filter: blur(4px); animation: qa-fade .2s ease both; }
.qa-sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: 460px; max-width: 92vw;
  background: #fff; border-left: 1px solid var(--lab-line); display: flex; flex-direction: column;
  box-shadow: -30px 0 80px rgba(7,17,31,.3); transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.9,.3,1);
}
.qa-layer.is-open .qa-sheet { transform: none; }
.qa-sheet-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 24px 26px 18px; border-bottom: 1px solid #eef2f3;
  background: radial-gradient(80% 130% at 100% 0%, rgba(112,72,232,.1), transparent 55%), linear-gradient(160deg, #07111f, #0d2138);
}
.qa-sheet-eyebrow { font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: var(--lab-mint); }
.qa-sheet-h { margin: 7px 0 0; font-size: 22px; font-weight: 900; letter-spacing: -.03em; color: #fff; }
.qa-x { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #cfeee8; cursor: pointer; font-size: 14px; }
.qa-x:hover { background: rgba(255,255,255,.14); }
.qa-sheet-body { flex: 1; overflow-y: auto; padding: 22px 26px; }
.qa-hint { margin: 0 0 16px; font-size: 12.5px; line-height: 1.55; color: #64748b; font-weight: 550; }
.qa-starters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.qa-starter {
  font-family: inherit; font-size: 11.5px; font-weight: 700; color: #475569; cursor: pointer;
  background: #fbfdfd; border: 1px solid #e6edee; border-radius: 999px; padding: 7px 12px; text-align: left; transition: all .15s;
}
.qa-starter:hover { border-color: rgba(20,184,166,.45); background: #f0fdfa; color: var(--lab-teal-d); }
.qa-lab { display: block; font-size: 12px; font-weight: 850; color: var(--lab-ink); margin: 0 0 7px; }
.qa-lab em { font-style: normal; font-weight: 650; color: #94a3b8; }
.qa-sel, .qa-ta {
  font-family: inherit; font-size: 13.5px; font-weight: 550; color: var(--lab-ink); width: 100%; box-sizing: border-box;
  background: #fbfdfd; border: 1px solid #dde5e7; border-radius: 11px; padding: 11px 13px; margin-bottom: 18px; transition: border-color .15s, box-shadow .15s;
}
.qa-ta { resize: vertical; line-height: 1.5; }
.qa-sel:focus, .qa-ta:focus { outline: none; border-color: var(--lab-teal); box-shadow: 0 0 0 3px rgba(20,184,166,.14); background: #fff; }
.qa-sheet-foot { display: flex; align-items: center; gap: 14px; padding: 16px 26px; border-top: 1px solid #eef2f3; background: #fbfdfd; }
.qa-file { font-family: inherit; font-weight: 850; font-size: 14px; color: #fff; background: var(--lab-teal); border: 0; border-radius: 11px; padding: 12px 22px; cursor: pointer; box-shadow: 0 10px 22px rgba(20,184,166,.26); transition: all .2s; }
.qa-file:hover { background: #0f9e8e; transform: translateY(-1px); }
.qa-foot-note { font-size: 11.5px; color: #94a3b8; font-weight: 650; }
.qa-ghost { display: inline-flex; align-items: center; font-family: inherit; font-weight: 800; font-size: 13px; color: var(--lab-teal-d); background: #fff; border: 1px solid rgba(20,184,166,.3); border-radius: 11px; padding: 12px 18px; cursor: pointer; text-decoration: none; }
.qa-ghost:hover { background: #f0fdfa; }
.qa-done { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 30px; flex: 1; }
.qa-layer.is-open .qa-sheet.is-done, .qa-sheet.is-done { }
.qa-done-burst { width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center; font-size: 28px; color: #fff; background: linear-gradient(140deg, var(--lab-teal-d), var(--lab-teal)); box-shadow: 0 16px 36px rgba(20,184,166,.36); margin-bottom: 18px; animation: qa-burst .5s cubic-bezier(.2,.9,.3,1) both; }
.qa-done strong { font-size: 19px; font-weight: 900; letter-spacing: -.02em; color: var(--lab-ink); }
.qa-done p { margin: 8px 0 22px; font-size: 13.5px; color: var(--lab-slate); font-weight: 550; }
.qa-done-actions { display: flex; gap: 11px; flex-wrap: wrap; justify-content: center; }

/* swap body/foot -> done */
.qa-layer .qa-sheet.is-done [data-qa-body],
.qa-layer .qa-sheet.is-done [data-qa-foot] { display: none; }
.qa-sheet.is-done .qa-done { display: flex; }
/* the is-done class lives on the layer in JS — mirror it */
.qa-layer.is-done [data-qa-body], .qa-layer.is-done [data-qa-foot] { display: none; }
.qa-layer.is-done .qa-done { display: flex; }

/* ---- toast --------------------------------------------------- */
.qa-toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 24px); z-index: 130;
  display: flex; align-items: center; gap: 12px; padding: 13px 18px 13px 14px;
  background: var(--lab-ink); border: 1px solid rgba(110,231,216,.2); border-radius: 14px;
  box-shadow: 0 22px 50px rgba(7,17,31,.4); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s cubic-bezier(.2,.9,.3,1);
}
.qa-toast.show { opacity: 1; transform: translate(-50%, 0); }
.qa-toast-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; color: #fff; background: linear-gradient(140deg, var(--lab-teal-d), var(--lab-teal)); }
.qa-toast-tx { display: grid; gap: 1px; }
.qa-toast-tx strong { font-size: 13px; font-weight: 850; color: #fff; letter-spacing: -.01em; }
.qa-toast-tx span { font-size: 11.5px; color: rgba(226,242,247,.62); font-weight: 600; }

@keyframes qa-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes qa-pop { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes qa-burst { 0% { opacity: 0; transform: scale(.5); } 60% { transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }

@media (max-width: 520px) {
  .qa-sheet { width: 100%; max-width: 100%; }
  .cmdk-panel { margin: 7vh 12px 0; }
}
