/* =========================================================
   Learning Rewired Lab — The Lab · Builder Dashboard
   File: /assets/css/builder-dashboard.css
   Private builder workspace (app shell). Pairs with:
   /builder-home/index.html + /assets/js/builder-dashboard.js
   ========================================================= */

:root, .bd {
  --ink: #07111f;
  --ink-2: #1e293b;
  --muted: #475569;
  --muted-2: #64748b;
  --faint: #94a3b8;
  --line: #e6ebf1;
  --line-2: #eef2f6;
  --surface: #f8fafc;
  --surface-2: #fafcfd;
  --teal: #14b8a6;
  --teal-deep: #0f766e;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --indigo: #4338ca;
  --indigo-deep: #3730a3;
  --amber: #d4a017;
  --amber-deep: #8a5a00;
  --coral: #ff7043;
  --coral-deep: #c2410c;
}
.bd {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-2);
  -webkit-font-smoothing: antialiased;
}
.bd *, .bd *::before, .bd *::after { box-sizing: border-box; }
.bd ::selection { background: rgba(20,184,166,.2); }

.bd-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.bd-scroll::-webkit-scrollbar-thumb { background: #dbe3ec; border-radius: 999px; border: 3px solid var(--surface); }

.bd-app { display: grid; grid-template-columns: 258px 1fr; min-height: 100vh; }

/* ---------------- Sidebar ---------------- */
.bd-side {
  background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.bd-side__brand { padding: 22px 22px 18px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 11px; }
.bd-brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(140deg,#14b8a6,#0f766e);
  display: grid; place-items: center; box-shadow: 0 5px 14px rgba(20,184,166,.32);
}
.bd-brand-text { line-height: 1.05; }
.bd-brand-text b { display: block; font-weight: 900; font-size: 15px; letter-spacing: -.03em; color: var(--ink); }
.bd-brand-text span { display: block; font-size: 10px; color: var(--teal-deep); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.bd-side__nav { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 3px; }
.bd-nav-head { font-size: 10.5px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: var(--faint); padding: 14px 13px 6px; margin: 0; }
.bd-nav-head:first-child { padding-top: 2px; }
.bd-nav-ext { margin-left: auto; font-size: 13px; color: var(--faint); }
.bd-nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  font-family: inherit; font-weight: 700; font-size: 14px; color: var(--muted);
  background: transparent; border: none; border-radius: 11px; padding: 11px 13px; cursor: pointer;
}
.bd-nav-item:hover { background: #f1f5f9; }
.bd-nav-ic { display: grid; place-items: center; width: 20px; height: 20px; flex: none; color: var(--faint); }
.bd-nav-item.is-active { background: rgba(20,184,166,.1); color: var(--ink); }
.bd-nav-item.is-active .bd-nav-ic { color: var(--teal-deep); }
.bd-nav-badge { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--teal-deep); background: rgba(20,184,166,.12); border-radius: 999px; padding: 2px 8px; }

.bd-side__user { padding: 14px; border-top: 1px solid var(--line-2); }
.bd-user { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); }
.bd-user-av { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(140deg,#14b8a6,#0f766e); display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #fff; flex: none; }
.bd-user-meta { line-height: 1.1; flex: 1; min-width: 0; }
.bd-user-meta b { display: block; font-weight: 800; font-size: 13px; color: var(--ink); }
.bd-user-meta span { display: block; font-size: 11px; color: var(--muted-2); }

/* ---------------- Main ---------------- */
.bd-main { overflow-y: auto; height: 100vh; }
.bd-topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(248,250,252,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.bd-greet__title { font-weight: 900; font-size: 20px; letter-spacing: -.025em; color: var(--ink); }
.bd-greet__sub { font-size: 13px; color: var(--muted-2); margin-top: 1px; }
.bd-topbar__actions { display: flex; align-items: center; gap: 12px; }
.bd-search {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 11px; padding: 9px 13px; width: 240px; box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.bd-search input { border: none; outline: none; background: transparent; font-family: inherit; font-size: 13.5px; color: var(--ink-2); width: 100%; }
.bd-search input::placeholder { color: #9aa6b6; }
.bd-iconbtn { position: relative; width: 42px; height: 42px; border-radius: 11px; background: #fff; border: 1px solid var(--line); cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
.bd-iconbtn:hover { background: #f1f5f9; }
.bd-iconbtn__dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); border: 2px solid #fff; }
.bd-newbtn { display: inline-flex; align-items: center; gap: 7px; font-family: inherit; font-weight: 800; font-size: 14px; color: #fff; background: var(--teal); border: none; border-radius: 11px; padding: 11px 18px; cursor: pointer; box-shadow: 0 8px 20px rgba(20,184,166,.28); }
.bd-newbtn:hover { background: #0f9e8e; }
.bd-newbtn i { font-style: normal; font-size: 16px; line-height: 0; }

.bd-content { max-width: 1120px; margin: 0 auto; padding: 28px 32px 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.bd-page { max-width: 1420px; margin: 0 auto; padding: 28px 32px 56px; display: grid; grid-template-columns: minmax(0,1fr) 268px; gap: 24px; align-items: start; }
.bd-page .bd-content { max-width: none; margin: 0; padding: 0; }
.bd-rail { display: grid; gap: 16px; position: sticky; top: 92px; }
.bd-rail-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.03); padding: 18px; }
.bd-rail-card h4 { margin: 0 0 12px; font-size: 13.5px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.bd-rail-links { display: grid; gap: 3px; }
.bd-rail-links a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 13px; }
.bd-rail-links a:hover { background: var(--surface); color: var(--ink); }
.bd-rail-links a span:first-child { width: 18px; text-align: center; color: var(--faint); }
@media (max-width: 1220px) {
  .bd-page { grid-template-columns: 1fr; max-width: 1120px; }
  .bd-rail { position: static; }
}

/* ---------------- Card atoms ---------------- */
.bd-card { border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 26px rgba(15,23,42,.05); padding: 24px 24px 26px; }
.bd-card--full { grid-column: span 2; }
.bd-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.bd-cardhead__title { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px; color: var(--ink); letter-spacing: -.02em; }
.bd-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.bd-dot--teal { background: var(--teal); } .bd-dot--deep { background: var(--teal-deep); } .bd-dot--blue { background: var(--blue); }
.bd-cardhead__meta { font-size: 12px; font-weight: 700; color: var(--faint); }
.bd-linklite { font-size: 12.5px; font-weight: 700; text-decoration: none; }

/* ---------------- Identity ---------------- */
.bd-identity { padding: 0 !important; overflow: hidden; }
.bd-identity__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 26px 28px; }
.bd-ring { position: relative; width: 96px; height: 96px; flex: none; }
.bd-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.bd-ring__av { position: absolute; inset: 10px; border-radius: 50%; background: linear-gradient(140deg,#14b8a6,#0f766e); display: grid; place-items: center; font-weight: 900; font-size: 26px; color: #fff; animation: bd-avatar-float 3.6s ease-in-out infinite; }
@keyframes bd-avatar-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.bd-ring__lvl { position: absolute; bottom: -2px; right: -2px; font-size: 10px; font-weight: 900; color: #fff; background: var(--teal-deep); border: 2px solid #fff; border-radius: 999px; padding: 2px 7px; }
.bd-id__namerow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bd-id__flag { font-size: 20px; line-height: 1; filter: drop-shadow(0 1px 3px rgba(0,0,0,.18)); }
.bd-id__flag[hidden] { display: none; }
.bd-id__name { font-weight: 900; font-size: 22px; letter-spacing: -.025em; color: var(--ink); }
.bd-id__role-tag { font-size: 11px; font-weight: 700; color: var(--teal-deep); background: rgba(20,184,166,.1); border: 1px solid rgba(20,184,166,.24); border-radius: 999px; padding: 3px 10px; }
.bd-id__role { font-size: 13.5px; color: var(--muted-2); margin-top: 3px; }
.bd-id__progress { margin-top: 16px; max-width: 440px; }
.bd-id__progress-row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.bd-id__progress-row b { color: var(--teal-deep); font-weight: 700; }
.bd-progress { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.bd-progress__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg,#14b8a6,#0f766e); transition: width 900ms cubic-bezier(.22,1.36,.36,1); }
[data-id-ring] { transition: stroke-dashoffset 900ms cubic-bezier(.22,1.36,.36,1); }
.bd-id__stats { display: flex; gap: 8px; flex: none; }
.bd-stat { text-align: center; min-width: 74px; border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 10px; background: var(--surface-2); transition: transform .18s cubic-bezier(.2,.8,.3,1), box-shadow .18s ease; }
.bd-stat:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(15,23,42,.08); }
.bd-stat__v { font-weight: 900; font-size: 21px; color: var(--ink); letter-spacing: -.02em; }
.bd-stat__k { font-size: 10.5px; color: var(--faint); margin-top: 3px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* ---------------- Missions ---------------- */
.bd-missions { display: flex; flex-direction: column; gap: 16px; }
.bd-mission__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bd-mission__title { font-weight: 700; font-size: 14px; color: var(--ink-2); }
.bd-mission__pct { font-size: 12px; font-weight: 800; flex: none; }
.bd-mission__meta { font-size: 12px; color: var(--faint); margin: 3px 0 9px; }
.bd-bar { height: 7px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.bd-bar__fill { height: 100%; border-radius: 999px; }

/* ---------------- This week ---------------- */
.bd-week-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bd-week-card { border: 1px solid var(--line-2); border-radius: 14px; padding: 15px 16px; background: var(--surface-2); transition: transform .18s cubic-bezier(.2,.8,.3,1), box-shadow .18s ease; }
.bd-week-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15,23,42,.08); }
.bd-week-card:nth-child(1) { background: linear-gradient(135deg, rgba(20,184,166,.12), rgba(20,184,166,.02)); }
.bd-week-card:nth-child(2) { background: linear-gradient(135deg, rgba(37,99,235,.11), rgba(37,99,235,.02)); }
.bd-week-card:nth-child(3) { background: linear-gradient(135deg, rgba(244,201,93,.22), rgba(244,201,93,.04)); }
.bd-week-card:nth-child(4) { background: linear-gradient(135deg, rgba(190,24,93,.09), rgba(190,24,93,.02)); }
.bd-week__top { display: flex; align-items: baseline; gap: 7px; }
.bd-week__v { font-weight: 900; font-size: 24px; color: var(--ink); letter-spacing: -.02em; }
.bd-week__delta { font-size: 12px; font-weight: 700; color: var(--teal-deep); }
.bd-week__k { font-size: 12px; color: var(--muted-2); margin-top: 3px; font-weight: 500; }
.bd-streak { margin-top: 16px; display: flex; align-items: center; gap: 11px; border: 1px solid rgba(20,184,166,.22); background: rgba(20,184,166,.05); border-radius: 13px; padding: 13px 15px; }
.bd-streak__ic { width: 32px; height: 32px; border-radius: 9px; background: #fff; border: 1px solid rgba(20,184,166,.24); display: grid; place-items: center; flex: none; }
.bd-streak__t { line-height: 1.25; }
.bd-streak__t b { display: block; font-weight: 800; font-size: 13.5px; color: var(--ink); }
.bd-streak__t span { display: block; font-size: 12px; color: var(--muted-2); }

/* ---------------- Reviews ---------------- */
.bd-tabs { display: flex; gap: 4px; background: #f1f5f9; border-radius: 10px; padding: 3px; }
.bd-tab { font-family: inherit; font-weight: 700; font-size: 12.5px; color: var(--muted-2); background: transparent; border: none; border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.bd-tab.is-active { color: var(--ink); background: #fff; box-shadow: 0 2px 6px rgba(15,23,42,.08); }
.bd-review-list { display: flex; flex-direction: column; gap: 10px; }
.bd-review { display: flex; align-items: center; gap: 13px; border: 1px solid var(--line-2); border-radius: 14px; padding: 13px 15px; }
.bd-review:hover { border-color: rgba(20,184,166,.34); background: #fafdfd; }
.bd-review__av { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #fff; flex: none; }
.bd-review__body { flex: 1; min-width: 0; }
.bd-review__title { font-weight: 700; font-size: 13.5px; color: var(--ink-2); line-height: 1.3; }
.bd-review__meta { font-size: 12px; color: var(--faint); margin-top: 2px; }
.bd-review__tag { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 4px 10px; flex: none; }
.bd-ghostbtn { width: 100%; margin-top: 14px; font-family: inherit; font-weight: 700; font-size: 13px; color: var(--teal-deep); background: #fff; border: 1px solid rgba(20,184,166,.3); border-radius: 11px; padding: 11px; cursor: pointer; }
.bd-ghostbtn:hover { background: rgba(20,184,166,.06); }

/* ---------------- Field notes ---------------- */
.bd-note { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid #f1f5f9; }
.bd-note__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.bd-note__body { flex: 1; min-width: 0; }
.bd-note__title { font-weight: 700; font-size: 13.5px; color: var(--ink-2); line-height: 1.3; }
.bd-note__meta { font-size: 12px; color: var(--faint); margin-top: 2px; }
.bd-note__status { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 4px 10px; flex: none; }
.bd-solidbtn { width: 100%; margin-top: 16px; font-family: inherit; font-weight: 800; font-size: 13px; color: #fff; background: var(--teal-deep); border: none; border-radius: 11px; padding: 11px; cursor: pointer; }
.bd-solidbtn:hover { background: #0c5e57; }

/* ---------------- Recognition ---------------- */
.bd-rec-list { display: flex; flex-direction: column; gap: 12px; }
.bd-rec { display: flex; align-items: flex-start; gap: 13px; animation: bd-rec-in .4s cubic-bezier(.2,.9,.3,1) both; }
.bd-rec:nth-child(1) { animation-delay: .02s; } .bd-rec:nth-child(2) { animation-delay: .08s; }
.bd-rec:nth-child(3) { animation-delay: .14s; } .bd-rec:nth-child(4) { animation-delay: .2s; }
@keyframes bd-rec-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bd-rec__ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.bd-rec__title { font-weight: 700; font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }
.bd-rec__meta { font-size: 12px; color: var(--faint); margin-top: 2px; }

/* ---------------- Library ---------------- */
.bd-coll-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bd-coll { border: 1px solid var(--line-2); border-radius: 13px; padding: 14px; background: var(--surface-2); }
.bd-coll:hover { border-color: rgba(20,184,166,.3); }
.bd-coll__swatch { display: block; width: 30px; height: 30px; border-radius: 9px; margin-bottom: 11px; }
.bd-coll__name { font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.bd-coll__count { font-size: 12px; color: var(--faint); margin-top: 2px; }

/* ---------------- Studio projects ---------------- */
.bd-proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bd-proj { border: 1px solid var(--line-2); border-radius: 16px; padding: 18px; background: var(--surface-2); }
.bd-proj:hover { border-color: rgba(37,99,235,.3); box-shadow: 0 10px 24px rgba(37,99,235,.08); }
.bd-proj__top { display: flex; align-items: center; justify-content: space-between; }
.bd-proj__kind { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.bd-proj__updated { font-size: 12px; color: var(--faint); }
.bd-proj__name { font-weight: 800; font-size: 16px; color: var(--ink); margin: 11px 0 0; letter-spacing: -.02em; }
.bd-proj__desc { font-size: 12.5px; color: var(--muted-2); margin-top: 4px; line-height: 1.4; }
.bd-proj__progress { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.bd-proj__progress .bd-bar { flex: 1; height: 6px; }
.bd-proj__progress .bd-bar__fill { background: var(--blue); }
.bd-proj__pct { font-size: 11.5px; font-weight: 800; color: var(--blue); }
.bd-locked-badge { font-size: 11px; font-weight: 800; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 4px 11px; }
.bd-proj-grid--locked { opacity: .6; filter: grayscale(.3); pointer-events: none; }
.bd-empty__lock { display: block; text-align: center; font-size: 26px; margin: 0 auto 10px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .bd-content { grid-template-columns: 1fr; }
  .bd-card--full { grid-column: auto; }
  .bd-proj-grid { grid-template-columns: 1fr; }
  .bd-identity__inner { grid-template-columns: auto 1fr; row-gap: 22px; }
  .bd-id__stats { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .bd-app { grid-template-columns: 72px 1fr; }
  .bd-brand-text, .bd-nav-item span:last-child, .bd-nav-badge, .bd-user-meta, .bd-side__user .bd-user > span:last-child { display: none; }
  .bd-nav-item { justify-content: center; padding: 11px; }
  .bd-side__brand { justify-content: center; padding: 22px 0 18px; }
  .bd-search { width: 160px; }
}
@media (max-width: 620px) {
  .bd-topbar { padding: 14px 18px; }
  .bd-content { padding: 20px 18px 48px; }
  .bd-search { display: none; }
  .bd-week-grid { grid-template-columns: 1fr; }
}

/* ---------------- Recent Field Notes (dashboard preview) ---------------- */
.bd-note-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.bd-note {
  display: block; text-decoration: none; padding: 12px 14px; border-radius: 13px;
  background: #fbfdfd; border: 1px solid var(--line-2); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.bd-note:hover { border-color: rgba(20,184,166,.4); box-shadow: 0 8px 20px rgba(15,23,42,.06); transform: translateY(-1px); }
.bd-note__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.bd-note__tag { font-size: 9.5px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; border-radius: 5px; padding: 3px 8px; }
.bd-note__time { font-size: 10.5px; font-weight: 700; color: var(--faint); }
.bd-note__title { font-size: 13px; font-weight: 750; line-height: 1.4; letter-spacing: -.01em; color: var(--ink); }

/* ---------------- Empty states (honest, actionable) ---------------- */
.bd-empty { text-align: center; padding: 22px 16px; border: 1px dashed var(--line-2, #e2e8f0); border-radius: 14px; background: #fafcfd; }
.bd-empty__kip { display: block; width: 44px; height: 44px; border-radius: 14px; object-fit: cover; margin: 0 auto 10px; box-shadow: 0 8px 18px rgba(15,23,42,.14); animation: bd-kip-in .5s cubic-bezier(.2,.9,.3,1.4) both; }
@keyframes bd-kip-in { 0% { transform: scale(.4) rotate(-8deg); opacity: 0; } 60% { transform: scale(1.12) rotate(4deg); opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.bd-empty__msg { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--muted-2, #64748b); font-weight: 500; }
.bd-empty__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12.5px; color: #fff; background: var(--teal-deep, #0f766e); border-radius: 999px; padding: 8px 16px; text-decoration: none; }
.bd-empty__cta:hover { background: #0c5e57; }
@media (prefers-reduced-motion: reduce) {
  .bd-empty__kip, .bd-rec, .bd-mission2.is-done .bd-mission2__check { animation: none !important; }
  .bd-progress__fill, [data-id-ring], .bd-stat, .bd-week-card { transition: none !important; }
}

/* ---------------- Mission Zero — Launch Sequence (step-track) ---------------- */
.bd-launch { position: relative; border-radius: 24px; transition: border-color .3s ease, box-shadow .3s ease; }
.bd-launch.is-all-online { border-color: rgba(212,160,23,.45) !important; box-shadow: 0 14px 34px rgba(212,160,23,.18) !important; }
.bd-launch__banner { display: flex; align-items: center; gap: 8px; background: linear-gradient(90deg,rgba(244,201,93,.18),rgba(244,201,93,.04)); border: 1px solid rgba(212,160,23,.35); border-radius: 11px; padding: 9px 14px; margin: 0 0 16px; animation: bd-reveal .3s cubic-bezier(.2,.9,.3,1) both; }
.bd-launch__banner span:last-child { font-size: 12.5px; font-weight: 800; color: #8a5a00; }
.bd-track { display: flex; align-items: flex-start; gap: 0; }
.bd-track { display: flex; align-items: flex-start; gap: 0; }
.bd-track__rail { flex: 1; min-width: 0; position: relative; padding: 0 4px; }
.bd-track__line { position: absolute; left: -4px; top: 23px; width: calc(100% - 38px); height: 3px; border-radius: 2px; background: #e2e8f0; }
.bd-track__line.is-lit { background: linear-gradient(90deg,#14b8a6,#0f766e); }
.bd-track__node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; padding: 0 10px; background: none; border: none; font-family: inherit; width: 100%; }
.bd-track__badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 15px; border: 2px solid #e2e8f0; background: #fff; color: #cbd5e1; }
.bd-track__badge.is-ready { border-color: rgba(20,184,166,.4); color: #0f766e; }
.bd-track__badge.is-done { border-color: rgba(20,184,166,.6); background: linear-gradient(140deg,#14b8a6,#0f766e); color: #fff; box-shadow: 0 8px 18px rgba(20,184,166,.35); animation: bd-check-pop .45s cubic-bezier(.2,.9,.3,1.4) both; }
.bd-track__status { font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; margin-top: 10px; background: #f1f5f9; color: #94a3b8; }
.bd-track__status.is-ready { background: rgba(20,184,166,.08); color: #0f766e; }
.bd-track__status.is-done { background: rgba(20,184,166,.14); color: #0f766e; }
.bd-track__title { font-weight: 800; font-size: 12.5px; color: #1e293b; margin-top: 8px; line-height: 1.3; }
.bd-track__title.is-done { color: #94a3b8; }
@keyframes bd-check-pop { 0% { transform: scale(.5); } 65% { transform: scale(1.18); } 100% { transform: scale(1); } }
.bd-launch__detail { animation: bd-reveal .26s cubic-bezier(.2,.9,.3,1) both; border: 1px solid rgba(20,184,166,.22); background: rgba(20,184,166,.05); border-radius: 16px; padding: 16px 18px; display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; }
.bd-launch__detail-body { flex: 1; min-width: 0; }
.bd-launch__detail-body h4 { margin: 0; font-weight: 900; font-size: 14px; color: #07111f; }
.bd-launch__detail-body p { margin: 5px 0 0; font-size: 12.5px; color: #475569; line-height: 1.5; }
.bd-launch__detail-body p b { color: #0f766e; }
.bd-launch__detail-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12.5px; font-weight: 800; color: #fff; background: #0f766e; border-radius: 999px; padding: 9px 18px; text-decoration: none; }
.bd-launch__detail-cta:hover { background: #0c5e57; }
.bd-launch__coach { max-width: 150px; flex: none; background: #fff; border: 1px solid rgba(20,184,166,.22); border-radius: 14px 14px 4px 14px; padding: 10px 12px; font-size: 11.5px; color: #334155; line-height: 1.4; box-shadow: 0 8px 18px rgba(15,23,42,.08); }
@keyframes bd-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------- Activity Console (This week) ---------------- */
.bd-console { border-radius: 18px; padding: 18px 18px 16px; background: linear-gradient(165deg,#0d2b28,#0a1f1d); box-shadow: 0 14px 32px rgba(10,30,28,.28); color: #e7f6f3; }
.bd-console__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.bd-console__head .bd-cardhead__title { color: #fff; font-size: 14.5px; }
.bd-console__bars { display: flex; align-items: flex-end; gap: 4px; height: 38px; margin-bottom: 14px; }
.bd-console__bar { flex: 1; min-height: 4px; border-radius: 3px 3px 0 0; transform-origin: bottom; cursor: pointer; animation: bd-bar-grow .5s cubic-bezier(.2,.9,.3,1) both; transition: filter .15s ease, transform .15s ease; }
.bd-console__bar:hover { filter: brightness(1.3); transform: scaleY(1.05); }
.bd-console__bar.is-current { animation: bd-bar-grow .5s cubic-bezier(.2,.9,.3,1) both, bd-glow-bar 2s ease-in-out infinite; }
@keyframes bd-bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes bd-glow-bar { 0%,100% { box-shadow: 0 0 0 0 rgba(110,231,216,.55); } 50% { box-shadow: 0 0 9px 2px rgba(110,231,216,.55); } }
.bd-console__stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; }
.bd-console__stat { text-align: center; padding: 8px 4px; cursor: pointer; border-radius: 8px; background: transparent; border: none; font-family: inherit; }
.bd-console__stat.is-active { background: rgba(255,255,255,.08); }
.bd-console__stat-v { font-weight: 900; font-size: 17px; color: #e7f6f3; }
.bd-console__stat-k { font-size: 10px; color: #8fb3ac; margin-top: 2px; }
.bd-console__detail { margin-top: 12px; border-radius: 12px; background: rgba(110,231,216,.08); border: 1px solid rgba(110,231,216,.2); padding: 11px 12px; animation: bd-reveal .24s cubic-bezier(.2,.9,.3,1) both; }
.bd-console__detail-label { font-weight: 800; font-size: 12px; color: #fff; }
.bd-console__detail-body { font-size: 11.5px; color: #bfe3dc; margin-top: 4px; line-height: 1.5; }
.bd-console__detail-next { font-size: 11.5px; color: #6ee7d8; margin-top: 6px; font-weight: 700; }
.bd-console__streak { margin-top: 12px; display: flex; align-items: center; gap: 9px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; }
.bd-console__streak-ic { width: 28px; height: 28px; border-radius: 9px; background: rgba(244,201,93,.18); display: grid; place-items: center; font-size: 14px; flex: none; }
.bd-console__streak-tx { font-size: 11.5px; color: #c8ded9; line-height: 1.4; }
.bd-streak__t { line-height: 1.3; }
.bd-streak__t b { display: block; font-weight: 800; font-size: 12px; color: #fff; }
.bd-streak__t span { display: block; font-size: 11px; color: #9fc2bc; margin-top: 1px; }

/* ---------------- Review Bench (Design Reviews) ---------------- */
.bd-bench { border: 1px solid rgba(99,102,241,.22) !important; background: linear-gradient(165deg,#f5f4ff,#eef0ff) !important; }
.bd-bench .bd-cardhead__title { color: #07111f; }
.bd-bench__reveal { margin-top: 12px; animation: bd-reveal .26s cubic-bezier(.2,.9,.3,1) both; }
.bd-bench__reveal-label { font-size: 11.5px; font-weight: 800; color: #4338ca; margin-bottom: 8px; }
.bd-bench__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-bench__chip { font-size: 11.5px; font-weight: 700; padding: 7px 13px; border-radius: 999px; cursor: pointer; background: #fff; color: #4338ca; border: 1px solid rgba(99,102,241,.3); font-family: inherit; }
.bd-bench__chip.is-selected { background: #4338ca; color: #fff; border-color: #4338ca; }
.bd-bench__rail { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.bd-bench__rail-dot { width: 7px; height: 7px; border-radius: 50%; background: #d8d6f5; flex: none; }
.bd-bench__rail-dot.is-active { background: #a5a1f0; }
.bd-bench__rail-label { font-size: 11px; color: #9997c9; }
.bd-bench__slot { position: relative; cursor: pointer; }
.bd-bench__ghostbtn { background: #4338ca !important; color: #fff !important; border: none !important; }
.bd-bench__ghostbtn:hover { background: #3730a3 !important; }

/* ---------------- The Floor (Community Pulse empty state) ---------------- */
.bd-floor-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12.5px; color: #3a1a0f; background: linear-gradient(140deg,#ff9166,#ff7043); border-radius: 999px; padding: 8px 16px; text-decoration: none; box-shadow: 0 8px 18px rgba(255,112,67,.28); border: none; cursor: pointer; font-family: inherit; }
.bd-floor-cta:hover { filter: brightness(1.05); }
.bd-floor__reveal { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; animation: bd-reveal .26s cubic-bezier(.2,.9,.3,1) both; text-align: left; }
.bd-floor__prompt { font-size: 12px; color: #334155; background: #fff; border: 1px solid var(--line-2, #eef2f6); border-radius: 10px; padding: 9px 12px; }

@media (prefers-reduced-motion: reduce) {
  .bd-track__badge.is-done, .bd-console__bar, .bd-launch__banner, .bd-launch__detail, .bd-console__detail, .bd-bench__reveal, .bd-floor__reveal {
    animation: none !important;
  }
}

/* ---------------- Top row: breadcrumb + plan ---------------- */
.bd-toprow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 !important; background: none !important; border: none !important; box-shadow: none !important; }
.bd-crumb { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--faint); }
.bd-crumb i { font-style: normal; opacity: .5; }
.bd-crumb .is-current { color: var(--ink); }
.bd-toprow__actions { display: flex; align-items: center; gap: 10px; }
.bd-plan-pill { font-size: 12px; font-weight: 800; color: var(--teal-deep); background: rgba(20,184,166,.1); border: 1px solid rgba(20,184,166,.24); border-radius: 999px; padding: 7px 14px; }
.bd-upgrade-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; color: #fff; background: linear-gradient(140deg,#14b8a6,#0f766e); border-radius: 999px; padding: 9px 16px; text-decoration: none; box-shadow: 0 8px 18px rgba(20,184,166,.28); animation: bd-upgrade-pulse 2.6s ease-in-out infinite; }
.bd-upgrade-btn:hover { filter: brightness(1.05); }
@keyframes bd-upgrade-pulse { 0%,100% { box-shadow: 0 8px 18px rgba(20,184,166,.28); } 50% { box-shadow: 0 8px 22px rgba(20,184,166,.5); } }

/* ---------------- Setup banner (compact, dismissible) ---------------- */
.bd-setup__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.bd-setup__title { font-weight: 800; font-size: 15.5px; color: var(--ink); letter-spacing: -.01em; }
.bd-setup__sub { font-size: 12.5px; color: var(--muted-2); margin-top: 2px; }
.bd-setup__right { display: flex; align-items: center; gap: 12px; flex: none; }
.bd-setup__count { font-size: 12px; font-weight: 800; color: var(--teal-deep); background: rgba(20,184,166,.1); border-radius: 999px; padding: 5px 11px; }
.bd-setup__dismiss { width: 26px; height: 26px; border-radius: 8px; border: none; background: transparent; color: var(--faint); font-size: 17px; line-height: 1; cursor: pointer; }
.bd-setup__dismiss:hover { background: var(--surface); color: var(--ink); }

/* Mission track restyled as horizontal chips */
.bd-track { flex-wrap: wrap; gap: 10px; }
.bd-track__rail { flex: none; width: auto; padding: 0; }
.bd-track__line { display: none; }
.bd-track__node {
  flex-direction: row; align-items: center; gap: 8px; text-align: left; width: auto;
  padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2);
}
.bd-track__node:hover { border-color: rgba(20,184,166,.3); }
.bd-track__badge { width: 26px; height: 26px; border-radius: 50%; font-size: 11px; }
.bd-track__status { display: none; }
.bd-track__title { margin-top: 0; font-size: 12.5px; }

/* ---------------- Greeting + quick jump + quick actions ---------------- */
.bd-hero-greet { padding: 4px 2px 0; }
.bd-hero-greet h1 { margin: 0; font-weight: 900; font-size: 26px; letter-spacing: -.03em; color: var(--ink); }
.bd-hero-greet p { margin: 6px 0 0; font-size: 14px; color: var(--muted-2); }

.bd-quickjump {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 18px; box-shadow: 0 10px 26px rgba(15,23,42,.05);
}
.bd-quickjump__ic { font-size: 17px; color: var(--faint); flex: none; }
.bd-quickjump input { flex: 1; border: none; outline: none; background: transparent; font-family: inherit; font-size: 14.5px; color: var(--ink-2); }
.bd-quickjump input::placeholder { color: #9aa6b6; }
.bd-quickjump__go { flex: none; width: 34px; height: 34px; border-radius: 10px; border: none; background: var(--surface); color: var(--muted); cursor: pointer; display: grid; place-items: center; font-size: 15px; }
.bd-quickjump__go:hover { background: rgba(20,184,166,.12); color: var(--teal-deep); }

.bd-qa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bd-qa-card { display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 22px; box-shadow: 0 10px 26px rgba(15,23,42,.05); transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease, border-color .2s ease; animation: bd-qa-in .5s cubic-bezier(.34,1.56,.64,1) both; }
.bd-qa-card:nth-child(1) { animation-delay: .03s; } .bd-qa-card:nth-child(2) { animation-delay: .09s; }
.bd-qa-card:nth-child(3) { animation-delay: .15s; } .bd-qa-card:nth-child(4) { animation-delay: .21s; }
@keyframes bd-qa-in { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
.bd-qa-card:hover { transform: translateY(-4px) scale(1.015); box-shadow: 0 16px 32px rgba(15,23,42,.1); border-color: rgba(20,184,166,.28); }
.bd-qa-card:hover .bd-qa-ic { transform: scale(1.15) rotate(-6deg); }
.bd-qa-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 19px; margin-bottom: 14px; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.bd-qa-title { font-weight: 800; font-size: 14.5px; color: var(--ink); letter-spacing: -.01em; }
.bd-qa-desc { font-size: 12.5px; color: var(--muted-2); margin-top: 4px; line-height: 1.4; }
@media (max-width: 1080px) {
  .bd-qa-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .bd-qa-grid { grid-template-columns: 1fr; }
  .bd-toprow { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------------- Upcoming (community challenges & events) ---------------- */
.bd-card--eqh { display: flex; flex-direction: column; min-height: 300px; }
.bd-card--eqh .bd-upcoming__list, .bd-card--eqh .bd-rec-list { flex: 1; }
.bd-upcoming__list { display: flex; flex-direction: column; gap: 10px; }
.bd-upcoming__item { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); transition: border-color .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1); }
.bd-upcoming__item:hover { border-color: rgba(20,184,166,.32); transform: translateY(-2px) scale(1.01); }
.bd-upcoming__item:hover .bd-upcoming__date { transform: scale(1.08) rotate(-4deg); }
.bd-upcoming__date { flex: none; width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(140deg,#14b8a6,#0f766e); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.bd-upcoming__item:nth-child(2) .bd-upcoming__date { background: linear-gradient(140deg,#4338ca,#3730a3); }
.bd-upcoming__day { font-weight: 900; font-size: 16px; line-height: 1; }
.bd-upcoming__mon { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.bd-upcoming__body { min-width: 0; }
.bd-upcoming__title { font-weight: 700; font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }
.bd-upcoming__meta { font-size: 12px; color: var(--faint); margin-top: 3px; }

/* ---------------- All Files ---------------- */
.bd-files { display: flex; flex-direction: column; }
.bd-files__row { display: grid; grid-template-columns: minmax(0,1.6fr) .8fr .9fr .8fr; gap: 10px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line-2); }
.bd-files__row:last-child { border-bottom: none; }
.bd-files__row--head { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding-bottom: 10px; }
.bd-files__row--item { text-decoration: none; cursor: pointer; border-radius: 10px; }
.bd-files__row--item:hover { background: var(--surface); }
.bd-files__title { font-weight: 700; font-size: 13.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-files__type { font-size: 11.5px; font-weight: 800; color: var(--muted-2); }
.bd-files__status { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 4px 10px; display: inline-block; width: fit-content; }
.bd-files__updated { font-size: 12px; color: var(--faint); }
.bd-files__empty { padding: 22px 4px; text-align: center; font-size: 13px; color: var(--muted-2); }
@media (max-width: 700px) {
  .bd-files__row { grid-template-columns: 1fr .7fr; }
  .bd-files__row > span:nth-child(3), .bd-files__row > span:nth-child(4) { display: none; }
}

/* ---------------- Identity Dock — click-to-expand ---------------- */
.bd-identity__toggle { display: block; width: 100%; text-align: left; font-family: inherit; font-size: 11px; font-weight: 800; color: #0f766e; background: transparent; border: none; border-top: 1px solid rgba(20,184,166,.16); padding: 10px 28px; cursor: pointer; }
.bd-identity__toggle:hover { background: rgba(20,184,166,.04); }
.bd-identity__details { padding: 4px 28px 20px; animation: bd-reveal .28s cubic-bezier(.2,.9,.3,1) both; }
.bd-identity__detail-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.bd-identity__detail-box { border: 1px solid var(--line-2); border-radius: 14px; padding: 13px 14px; background: var(--surface-2); }
.bd-identity__detail-k { font-size: 10px; font-weight: 800; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.bd-identity__detail-v { font-size: 12.5px; font-weight: 700; color: #b45309; margin-top: 4px; }
.bd-identity__detail-v.is-set { color: var(--teal-deep); }
.bd-identity__detail-cta { display: inline-flex; margin-top: 14px; font-size: 12.5px; font-weight: 800; color: #fff; background: var(--teal-deep); border-radius: 999px; padding: 8px 16px; text-decoration: none; }
.bd-identity__detail-cta:hover { background: #0c5e57; }
