/* board/boards.css — the PrepWithTee Board dashboard (/whiteboard) and its
   product page for guests. Site tokens (styles.css), so it follows light / dark. */
.wbd-page { background: var(--page); }
.wbd { max-width: 1440px; margin: 0 auto; padding: 18px 16px 60px; display: grid; grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px; align-items: start; }
.wbd[data-state="loading"] { display: block; }
.wbd-loading { text-align: center; color: var(--grey); padding: 80px 0; }
.wbd svg, .wbd-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round;
  stroke-linejoin: round; flex: none; }

/* sidebar */
.wbd-side { position: sticky; top: 84px; display: grid; gap: 14px; }
.wbd-new { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border: 0; border-radius: 14px; cursor: pointer;
  color: #fff; background: linear-gradient(135deg, #7c5cf0, #4f46e5); font: 800 .95rem/1 "Hanken Grotesk", sans-serif;
  box-shadow: 0 8px 22px rgba(79, 70, 229, .3); transition: transform .12s, box-shadow .12s; }
.wbd-new:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(79, 70, 229, .38); }
.wbd-new svg { stroke-width: 2.4; }
.wbd-nav, .wbd-folders { display: grid; gap: 2px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.wbd-nav-it { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent;
  color: var(--ink); font: 600 .9rem/1 "Hanken Grotesk", sans-serif; cursor: pointer; text-align: left; }
.wbd-nav-it span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wbd-nav-it em { font-style: normal; font-size: .74rem; font-weight: 700; color: var(--grey); }
.wbd-nav-it:hover { background: var(--accent-soft); }
.wbd-nav-it.is-on { background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.wbd-nav-it:focus-visible, .wbd-new:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wbd-fold-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 6px 10px; font: 800 .7rem/1 "Hanken Grotesk", sans-serif;
  letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.wbd-mini { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--grey); cursor: pointer; }
.wbd-mini:hover { background: var(--accent-soft); color: var(--accent); }
.wbd-folder svg { color: var(--tone, #7c5cf0); fill: color-mix(in srgb, var(--tone, #7c5cf0) 22%, transparent); }
[data-tone="violet"] { --tone: #7c5cf0; } [data-tone="sky"] { --tone: #0284c7; } [data-tone="teal"] { --tone: #0f766e; }
[data-tone="amber"] { --tone: #d97706; } [data-tone="rose"] { --tone: #e11d48; } [data-tone="grey"] { --tone: #64748b; }
.wbd-hint { margin: 2px 10px 6px; font-size: .78rem; color: var(--grey); line-height: 1.4; }
.wbd-usage { padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.wbd-usage-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .86rem; color: var(--ink); }
.wbd-usage-row span { font-size: .74rem; color: var(--grey); }
.wbd-bar { height: 7px; margin: 8px 0 4px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.wbd-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7c5cf0, #ec4899); }
.wbd-usage .wbd-hint { margin: 6px 0 0; }
.wbd-up { display: inline-block; margin-top: 8px; font-size: .84rem; font-weight: 800; color: var(--accent); text-decoration: none; }

/* main */
.wbd-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.wbd-eyebrow { margin: 0 0 4px; font: 800 .72rem/1 "Hanken Grotesk", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #7c5cf0; }
.wbd-head h1 { margin: 0; font: 900 clamp(1.5rem, 3vw, 2.1rem)/1.1 Archivo, sans-serif; color: var(--purple); }
.wbd-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wbd-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; color: var(--grey); min-width: 220px; }
.wbd-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wbd-search input { border: 0; outline: none; background: transparent; color: var(--ink); font: 600 .9rem/1 "Hanken Grotesk", sans-serif; width: 100%; }
.wbd-sort { height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink);
  font: 600 .86rem/1 "Hanken Grotesk", sans-serif; }
.wbd-layout { display: flex; padding: 3px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.wbd-layout button { width: 34px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--grey); cursor: pointer; }
.wbd-layout [aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }

.wbd-tpl-head h2 { margin: 6px 0 10px; font: 800 1rem/1.2 "Hanken Grotesk", sans-serif; color: var(--ink); }
.wbd-tpls { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 12px; overflow-x: auto; padding: 2px 2px 14px; margin-bottom: 18px;
  scroll-snap-type: x proximity; scrollbar-width: thin; }
.wbd-tpl { position: relative; display: grid; gap: 7px; justify-items: center; padding: 8px 8px 10px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--white); cursor: pointer; scroll-snap-align: start; color: var(--ink); font: 700 .82rem/1.2 "Hanken Grotesk", sans-serif;
  transition: transform .12s, box-shadow .12s, border-color .12s; }
.wbd-tpl:hover { transform: translateY(-2px); border-color: #a78bfa; box-shadow: 0 10px 24px rgba(76, 46, 114, .14); }
.wbd-tpl:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wbd-tpl canvas { width: 132px; height: 92px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .08); }
.wbd-tpl-inf { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px;
  background: rgba(255, 255, 255, .9); color: #7c5cf0; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.wbd-tpl-inf svg { width: 16px; height: 16px; }

.wbd-boards.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.wbd-boards.is-list { display: grid; gap: 8px; }
.wbd-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform .12s, box-shadow .12s; }
.wbd-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(76, 46, 114, .13); }
.wbd-cover { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--cream); overflow: hidden; border-bottom: 1px solid var(--line); }
.wbd-cover img, .wbd-cover canvas { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.wbd-cover:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.wbd-kind { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 999px;
  background: rgba(20, 20, 40, .7); color: #fff; font: 700 .7rem/1 "Hanken Grotesk", sans-serif; }
.wbd-kind svg { width: 13px; height: 13px; }
.wbd-card-body { display: flex; align-items: center; gap: 4px; padding: 10px 8px 10px 14px; }
.wbd-card-txt { flex: 1; min-width: 0; }
.wbd-card h3 { margin: 0; font: 800 .94rem/1.25 "Hanken Grotesk", sans-serif; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbd-card p { margin: 3px 0 0; font-size: .76rem; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbd-star, .wbd-more { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent;
  color: var(--grey); cursor: pointer; flex: none; }
.wbd-star:hover, .wbd-more:hover { background: var(--accent-soft); color: var(--accent); }
.wbd-star.is-on { color: #f59e0b; }
.wbd-star.is-on svg { fill: #fbbf24; }
.wbd-boards.is-list .wbd-card { display: flex; align-items: center; }
.wbd-boards.is-list .wbd-cover { width: 96px; flex: none; border-bottom: 0; border-right: 1px solid var(--line); }
.wbd-boards.is-list .wbd-kind { display: none; }
.wbd-boards.is-list .wbd-card-body { flex: 1; }
.wbd-empty { padding: 50px 20px; text-align: center; border: 1.5px dashed var(--line); border-radius: 18px; color: var(--grey); }
.wbd-empty h2 { margin: 0 0 6px; font: 800 1.1rem/1.2 "Hanken Grotesk", sans-serif; color: var(--ink); }
.wbd-trashbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; margin-bottom: 14px;
  border-radius: 12px; background: var(--yellow); color: var(--yellow-ink); font-size: .86rem; font-weight: 600; }

/* buttons, menus, dialogs, toast */
.wbd-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--white); color: var(--ink); font: 700 .88rem/1 "Hanken Grotesk", sans-serif; cursor: pointer; text-decoration: none; }
.wbd-btn:hover { background: var(--accent-soft); }
.wbd-btn-primary { border-color: transparent; color: #fff; background: linear-gradient(135deg, #7c5cf0, #4f46e5); }
.wbd-btn-primary:hover { background: linear-gradient(135deg, #4f46e5, #7c5cf0); }
.wbd-btn-danger { border-color: transparent; color: #fff; background: #dc2626; }
.wbd-btn-danger:hover { background: #b91c1c; }
.wbd-link { border: 0; background: none; padding: 6px 0; color: var(--accent); font: 700 .86rem/1 "Hanken Grotesk", sans-serif; cursor: pointer; }
.wbd-menu { position: fixed; z-index: 90; min-width: 200px; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(30, 20, 60, .2); }
.wbd-menu button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); text-align: left;
  font: 600 .88rem/1.2 "Hanken Grotesk", sans-serif; cursor: pointer; }
.wbd-menu button:hover, .wbd-menu button:focus { background: var(--accent-soft); outline: none; }
.wbd-menu .is-danger { color: #dc2626; }
.wbd-menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.wbd-dlg-back { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(15, 12, 30, .45); }
.wbd-dlg { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; background: var(--white); color: var(--ink);
  border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.wbd-dlg h2 { margin: 0 0 14px; font: 800 1.2rem/1.2 Archivo, sans-serif; color: var(--purple); }
.wbd-p { margin: 0 0 10px; line-height: 1.55; color: var(--grey); }
.wbd-field { display: grid; gap: 6px; margin-bottom: 14px; }
.wbd-field span, .wbd-field-lbl { font: 800 .72rem/1 "Hanken Grotesk", sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--grey); }
.wbd-field-lbl { display: block; margin-bottom: 8px; }
.wbd-field input { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--page); color: var(--ink);
  font: 600 .95rem/1 "Hanken Grotesk", sans-serif; }
.wbd-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wbd-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.wbd-pick.is-col { flex-direction: column; }
.wbd-pick label { cursor: pointer; }
.wbd-pick input { position: absolute; opacity: 0; }
.wbd-pick span { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; font-weight: 700; }
.wbd-pick.is-col span { display: block; border-radius: 11px; }
.wbd-pick input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.wbd-pick input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.wbd-tones { display: flex; gap: 10px; }
.wbd-tones label { cursor: pointer; }
.wbd-tones input { position: absolute; opacity: 0; }
.wbd-tones i { display: block; width: 28px; height: 28px; border-radius: 50%; background: var(--tone); }
.wbd-tones input:checked + i { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--tone); }
.wbd-dlg-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.wbd-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 99; padding: 10px 16px; border-radius: 12px; background: #1f2433;
  color: #fff; font: 700 .86rem/1.3 "Hanken Grotesk", sans-serif; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.wbd-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.wbd-toast.is-bad { background: #b91c1c; }

/* guests: the product page */
.wbl { max-width: 1120px; margin: 0 auto; padding: 40px 16px 70px; }
.wbl-hero { text-align: center; padding: 30px 0 34px; }
.wbl-eyebrow { margin: 0 0 10px; font: 800 .78rem/1 "Hanken Grotesk", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #7c5cf0; }
.wbl-hero h1 { margin: 0 auto 14px; max-width: 780px; font: 900 clamp(2rem, 5vw, 3.3rem)/1.05 Archivo, sans-serif; color: var(--purple); }
.wbl-lede { margin: 0 auto; max-width: 680px; font-size: 1.08rem; line-height: 1.6; color: var(--grey); }
.wbl-cta { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wbl-cta span { font-size: .84rem; color: var(--grey); }
.wbl-btn { display: inline-flex; align-items: center; height: 52px; padding: 0 26px; border-radius: 14px; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #7c5cf0, #4f46e5); font: 800 1rem/1 "Hanken Grotesk", sans-serif; box-shadow: 0 10px 26px rgba(79, 70, 229, .32); }
.wbl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.wbl-card { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.wbl-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); font-size: 1.4rem; }
.wbl-card h3 { margin: 12px 0 6px; font: 800 1.02rem/1.25 "Hanken Grotesk", sans-serif; color: var(--ink); }
.wbl-card p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--grey); }

@media (max-width: 860px) {
  .wbd { grid-template-columns: 1fr; }
  .wbd-side { position: static; grid-template-columns: 1fr 1fr; }
  .wbd-new { grid-column: 1 / -1; }
  .wbd-usage { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .wbd-side { grid-template-columns: 1fr; }
  .wbd-search { min-width: 0; flex: 1; }
  .wbd-tools { width: 100%; }
  .wbd-boards.is-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}
