/* ═══════════════════════════════════════════════════════════════════════
   Mentor console + admin portal — polish pass (30 Sept 2026)

   Loaded last in mentor-portal.html and admin-portal.html. Changes no
   behaviour. What it fixes, from screenshots at 1440px and 390px:

     · stat tiles read upside-down: the caption under a number was bold
       black and louder than the label above it → muted, regular weight
     · alerts ("banners") each wore a different glyph and a 3px black left
       rule → one shadcn Alert shape, icon from the product's own set
     · admin: 14 sections in a top strip that ran off the right edge on a
       laptop ("Trust & S…") → a left sidebar at ≥1100px, same shape as the
       mentor console's rail
     · admin: tables squeezed until headers broke mid-word ("RATIN G") and
       each row's actions wrapped onto two lines → tables keep their width
       and scroll inside their card
     · admin on a phone: the page header held the search box and two
       buttons on the same row as the title, pushing the page to 563px wide
       → the header stacks
     · mentor on a phone: the sections wrapped into ragged rows of text →
       an even two-column grid of tiles
   ═══════════════════════════════════════════════════════════════════════ */

/* ── shared: stat tiles ──────────────────────────────────────────────── */
.stat .n{font-weight:700;letter-spacing:-.02em}
.stat .l{font-size:12.5px;font-weight:500;color:var(--muted-foreground,#737373);margin-top:4px}
.stat .d{font-size:12px;font-weight:400;color:var(--muted-foreground,#737373);margin-top:2px}
.stat .d.dn{color:var(--danger,#DC2626);font-weight:500}

/* ── shared: alerts ──────────────────────────────────────────────────── */
.banner{align-items:flex-start;gap:12px;padding:14px 16px;font-size:13px;line-height:1.55;
  border:1px solid var(--border,#E5E5E5) !important;border-radius:12px;
  background:var(--card,#fff);color:var(--foreground,#0A0A0A);box-shadow:0 1px 2px rgba(0,0,0,.04)}
.banner > .ico,.banner > svg{flex:none;margin-top:2px;color:var(--foreground,#0A0A0A)}
.banner b{font-weight:600}
.banner.warn{background:var(--card,#fff)}
.banner.warn > .ico,.banner.warn > svg{color:var(--foreground,#0A0A0A)}
.banner .btn{margin-top:2px}
:root[data-theme="dark"] .banner{background:#0A0A0A;border-color:#262626 !important}

/* ── shared: empty states ────────────────────────────────────────────── */
.empty{padding:44px 24px;line-height:1.6}
.empty > svg,.empty > .ico{display:block;margin:0 auto 10px;opacity:.5}

/* ════════════════════════ ADMIN PORTAL ════════════════════════════════ */

/* Tables: keep their columns, scroll inside the card. */
body:has(nav.topnav) th{white-space:nowrap}
body:has(nav.topnav) td{vertical-align:middle}
body:has(nav.topnav) .card:has(> table){overflow-x:auto}
body:has(nav.topnav) .card > table{min-width:820px}
body:has(nav.topnav) .tier,body:has(nav.topnav) .tag,body:has(nav.topnav) td .btn{white-space:nowrap}
body:has(nav.topnav) td:last-child > .row.wrap{flex-wrap:nowrap}
body:has(nav.topnav) .card > table td:first-child{min-width:220px}
body:has(nav.topnav) .card > table th,body:has(nav.topnav) .card > table td{padding-left:10px;padding-right:10px}
body:has(nav.topnav) .card > table th:first-child,body:has(nav.topnav) .card > table td:first-child{padding-left:16px}
body:has(nav.topnav) tbody tr{transition:background-color .12s ease}
body:has(nav.topnav) tbody tr:hover{background:var(--g50,#FAFAFA)}
:root[data-theme="dark"] body:has(nav.topnav) tbody tr:hover{background:#111}
body:has(nav.topnav) th{background:transparent;font-size:11px;letter-spacing:.04em;font-weight:600}

/* Stat tiles: tighter, and the number is the thing. */
body:has(nav.topnav) .card.stat{padding:16px 18px}
body:has(nav.topnav) .stat .n{font-size:24px}

/* Page header: title on the left, tools on the right — and stacked on a phone. */
@media(max-width:760px){
  body:has(nav.topnav) .app > .row[style*="flex-start"],
  body:has(nav.topnav) .row[style*="flex-start"]:has(> div > h1){flex-wrap:wrap;row-gap:12px}
  body:has(nav.topnav) .row:has(> div > h1) > .row{width:100%;flex-wrap:wrap}
  body:has(nav.topnav) .row:has(> div > h1) > .row > .inp{flex:1 1 100%;width:auto !important}
  body:has(nav.topnav) h1{font-size:20px}
  body:has(nav.topnav) .sub{max-width:none}
}

/* The sections: a left sidebar on a laptop. */
@media(min-width:1100px){
  body:has(nav.topnav){--arail:236px}
  body:has(nav.topnav) .topbar-in{max-width:none;padding-left:22px;padding-right:28px;flex-wrap:nowrap}
  /* backdrop-filter makes the bar a containing block for position:fixed
     children, which would pin the sidebar to the bar instead of the window. */
  body:has(nav.topnav) .topbar{margin-bottom:24px;backdrop-filter:none;-webkit-backdrop-filter:none;
    background:var(--background,#fff)}
  :root[data-theme="dark"] body:has(nav.topnav) .topbar{background:#0A0A0A}
  body:has(nav.topnav) .topbar::before{content:'';position:absolute;left:0;top:0;bottom:-1px;width:var(--arail);
    background:var(--sidebar,#FAFAFA);border-right:1px solid var(--border,#E5E5E5);z-index:-1}
  body:has(nav.topnav) nav.topnav{position:fixed;left:0;top:var(--atop,57px);bottom:0;width:var(--arail);
    flex-direction:column;gap:2px;margin:0;padding:14px 12px 24px;overflow-y:auto;overflow-x:hidden;
    background:var(--sidebar,#FAFAFA);border-right:1px solid var(--border,#E5E5E5);
    -webkit-mask-image:none;mask-image:none;z-index:39}
  body:has(nav.topnav) nav.topnav::before{content:'Admin';display:block;padding:2px 12px 8px;font-size:11px;
    font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted-foreground,#737373)}
  body:has(nav.topnav) nav.topnav button{width:100%;justify-content:space-between;padding:9px 12px;
    font-size:14px;font-weight:500;color:var(--foreground,#0A0A0A);border-radius:8px}
  body:has(nav.topnav) nav.topnav button:hover{background:var(--accent-bg,#F0F0F0)}
  body:has(nav.topnav) nav.topnav button.on{background:var(--foreground,#0A0A0A);color:var(--background,#fff) !important;font-weight:600}
  body:has(nav.topnav) nav.topnav button.on .navcount{background:var(--background,#fff);color:var(--foreground,#0A0A0A)}
  body:has(nav.topnav) .app{max-width:1280px;margin-left:var(--arail);padding-left:36px;padding-right:36px}
  :root[data-theme="dark"] body:has(nav.topnav) nav.topnav,
  :root[data-theme="dark"] body:has(nav.topnav) .topbar::before{background:#0A0A0A;border-color:#262626}
  :root[data-theme="dark"] body:has(nav.topnav) nav.topnav button:hover{background:#1a1a1a}
}
@media(min-width:1100px) and (min-width:1560px){
  body:has(nav.topnav) .app{margin-left:calc(var(--arail) + (100vw - var(--arail) - 1280px) / 2)}
}

/* ════════════════════════ MENTOR CONSOLE ══════════════════════════════ */

/* The rail: a label never cut off mid-word because it turned bold. */
@media(min-width:1001px){
  body:not(.mrail-off) .console .nn{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.3}
  body:has(.console) .statrow .stat{padding:16px 18px}
}
/* Stat row: a hairline between tiles instead of heavy captions. */
body:has(.console) .statrow .stat .n{font-size:22px}

/* On a phone the sections are an even grid of tiles, not ragged text rows. */
@media(max-width:760px){
  body:has(.console) .console .tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
    border-bottom:0;padding:4px 0 14px}
  body:has(.console) .console .tabs button{display:flex;align-items:center;gap:10px;justify-content:flex-start;
    padding:9px 10px !important;margin:0;border:1px solid var(--border,#E5E5E5);border-radius:10px;
    background:var(--card,#fff);font-size:13px;font-weight:500;color:var(--foreground,#0A0A0A);
    box-shadow:0 1px 2px rgba(0,0,0,.04);text-align:left;min-width:0;white-space:nowrap}
  body:has(.console) .console .tabs button > *{min-width:0}
  body:has(.console) .console .tabs button .nn,
  body:has(.console) .console .tabs button .nl{overflow:hidden;text-overflow:ellipsis}
  body:has(.console) .console .tabs button.on{background:var(--foreground,#0A0A0A);color:var(--background,#fff) !important;
    border-color:var(--foreground,#0A0A0A)}
  body:has(.console) .console .tabs button.on .nn,body:has(.console) .console .tabs button.on .nl{color:inherit !important}
  body:has(.console) .console .tabs button.on .navtile{background:var(--background,#fff);color:var(--foreground,#0A0A0A);border-color:transparent}
  body:has(.console) .console .tabs button.on .navtile .navico{color:var(--foreground,#0A0A0A) !important}
  :root[data-theme="dark"] body:has(.console) .console .tabs button{background:#0A0A0A;border-color:#262626}
  :root[data-theme="dark"] body:has(.console) .console .tabs button.on{background:#FAFAFA;color:#0A0A0A !important}
  body:has(.console) .console .tabs button .ns{display:none}
}

/* Long URLs and codes inside an alert wrap instead of widening the page. */
.banner > div{min-width:0}
.banner b,.banner code,.banner a{overflow-wrap:anywhere}

/* Admin on a phone: numbers two to a row, not one giant tile each. */
@media(max-width:760px){
  body:has(nav.topnav) .grid:has(> .stat){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body:has(nav.topnav) .card.stat{padding:13px 14px}
  body:has(nav.topnav) .stat .n{font-size:20px}
}

/* ── mentor rail, 30 Sept 2026 (round 2) ────────────────────────────────
   1. The one-line captions under each section are gone: the name says it.
   2. Collapsed rail (medium since Oct 2026: 76px rail, 44px tiles, 21px
      glyphs — the same as the founder app's collapsed rail): every icon tile the same size, centred in the column,
      with even space between them and the badge pinned to the tile's
      corner. Before, 58px tiles sat in 56×50 buttons, so they overlapped
      their neighbours and hugged the left edge. */
body:has(.console) .console .tabs .ns{display:none !important}
@media(min-width:1001px){
  body:not(.mrail-off) .console .tabs button{padding:6px 10px !important;min-height:52px}
  body:not(.mrail-off) .console .tabs .navtile{width:40px;height:40px;border-radius:12px}
  body:not(.mrail-off) .console .tabs button .navico{width:20px !important;height:20px !important}

  body.mrail-off:has(.console){--rail-sm:76px}
  body.mrail-off .console>.tabwrap{width:var(--rail-sm);padding:76px 0 24px;overflow-x:hidden;overflow-y:auto}
  body.mrail-off .console .tabs{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%}
  body.mrail-off .console .tabs button{width:46px !important;height:46px !important;padding:0 !important;margin:0 auto;
    display:grid !important;place-items:center;border-radius:14px;background:none !important;overflow:visible}
  body.mrail-off .console .tabs button .navtile{width:44px !important;height:44px !important;border-radius:12px;
    display:grid;place-items:center;margin:0}
  body.mrail-off .console .tabs button .navico{width:21px !important;height:21px !important}
  body.mrail-off .console .tabs button .nl{display:none}
  body.mrail-off .console .tabs .count{position:absolute;top:-4px;right:-4px;min-width:19px;height:19px;padding:0 5px;
    font-size:10.5px;line-height:19px;border-radius:999px;border:2px solid var(--sidebar,#FAFAFA);box-sizing:content-box}
  body.mrail-off .console .tabs .count:not(.red){background:var(--foreground,#0A0A0A);color:var(--background,#fff)}
  body.mrail-off .console .tabs .count.red{background:var(--danger,#DC2626);color:#fff}
  body.mrail-off .console .railfoot{display:none}
  /* motion.css draws an animated underline on the current tab with ::after,
     and its fill-mode kept the collapsed rail's hover label (also ::after)
     showing as a stray black chip beside the current tile. */
  body.mrail-off .console .tabs button::after{animation:none !important}
}

/* ═══ Mentor console — Browse founders, per the sample (30 Sept 2026) ═════
   Palette stays the product's: black, white, teal #16B8B0 as the accent.
   Teal carries black type and icons only — never white — because white on
   teal is 2.47:1. */

/* page head: the section's title and one line */
body:has(.console) h1.sec-t{font-size:clamp(26px,2.6vw,34px);font-weight:700;letter-spacing:-.03em;margin:0 0 4px;line-height:1.15}
body:has(.console) p.sec-s{margin:0;font-size:16px;color:var(--muted-foreground,#737373)}
body:has(.console) h1.sec-t + p.sec-s + .sub{margin-top:10px;font-size:13px}

/* stat tiles: separate cards, an icon beside the number */
body:has(.console) .statrow.stat-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;
  padding:0;border:0;background:none;box-shadow:none}
body:has(.console) .stat-cards .stat{background:var(--card,#fff);border:1px solid var(--border,#E5E5E5);border-radius:14px;
  padding:16px 18px !important;box-shadow:0 1px 2px rgba(0,0,0,.04);display:block;border-right:1px solid var(--border,#E5E5E5)}
body:has(.console) .stat-cards .sn{display:flex;align-items:center;gap:12px}
body:has(.console) .stat-cards .sn .lu{color:#16B8B0;flex:none;width:24px;height:24px}
body:has(.console) .stat-cards .stat .n{font-size:24px;font-weight:700}
body:has(.console) .stat-cards .stat .n small{font-size:17px;font-weight:500;color:var(--muted-foreground,#737373)}
body:has(.console) .stat-cards .stat .l{font-size:14px;font-weight:500;color:var(--foreground,#0A0A0A);margin-top:8px}
body:has(.console) .stat-cards .stat .d{font-size:12.5px;margin-top:2px}
:root[data-theme="dark"] body:has(.console) .stat-cards .stat{background:#0A0A0A;border-color:#262626}

/* sidebar: the current section in a teal wash with a teal tile, as sampled */
@media(min-width:1001px){
  body:not(.mrail-off) .console .tabs button.on{background:rgba(22,184,176,.10) !important}
  body:not(.mrail-off) .console .tabs button.on .nn{color:var(--foreground,#0A0A0A) !important}
}
body:has(.console) .console .tabs button.on .navtile{background:#16B8B0 !important;border-color:#16B8B0 !important;color:#0A0A0A !important}
body:has(.console) .console .tabs button.on .navtile .navico{color:#0A0A0A !important}

/* the note above the catalog */
.bf-note{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;margin:0 0 16px;border-radius:14px;
  background:rgba(22,184,176,.07);border:1px solid rgba(22,184,176,.22);font-size:14px;line-height:1.55}
.bf-note .lu{color:#16B8B0;flex:none;margin-top:1px}
:root[data-theme="dark"] .bf-note{background:rgba(22,184,176,.08);border-color:rgba(22,184,176,.25)}

/* search and filters */
.bf-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 16px}
.bf-search{flex:1 1 320px;max-width:420px;display:flex;align-items:center;gap:10px;height:44px;padding:0 14px;
  border:1px solid var(--border,#E5E5E5);border-radius:10px;background:var(--card,#fff);color:var(--muted-foreground,#737373)}
.bf-search:focus-within{border-color:#16B8B0;box-shadow:0 0 0 3px rgba(22,184,176,.18)}
.bf-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:14.5px;color:var(--foreground,#0A0A0A)}
.bf-sel{position:relative;display:inline-flex;align-items:center}
.bf-sel select{appearance:none;-webkit-appearance:none;height:44px;padding:0 38px 0 14px;border:1px solid var(--border,#E5E5E5);
  border-radius:10px;background:var(--card,#fff);font:inherit;font-size:14.5px;color:var(--foreground,#0A0A0A);cursor:pointer;max-width:200px}
.bf-sel select:focus{outline:0;border-color:#16B8B0;box-shadow:0 0 0 3px rgba(22,184,176,.18)}
.bf-sel .lu{position:absolute;right:12px;pointer-events:none;color:var(--muted-foreground,#737373)}

/* the cards */
.bf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media(max-width:1180px){.bf-grid{grid-template-columns:1fr}}
@media(min-width:1001px) and (max-width:1180px){body.mrail-off .bf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.bf-card{display:flex;flex-direction:column;gap:12px;padding:18px 20px;border:1px solid var(--border,#E5E5E5);border-radius:16px;
  background:var(--card,#fff);box-shadow:0 1px 2px rgba(0,0,0,.04);transition:box-shadow .2s ease,transform .2s ease,border-color .2s ease}
.bf-card:hover{box-shadow:0 10px 28px -14px rgba(0,0,0,.22);border-color:#D4D4D8;transform:translateY(-2px)}
.bf-hd{display:flex;align-items:center;gap:14px;border:0;background:none;padding:0;text-align:left;cursor:pointer;color:inherit;font:inherit}
.bf-av{width:52px;height:52px;border-radius:12px;background:#0A0A0A;color:#fff;display:grid;place-items:center;
  font-weight:700;font-size:17px;flex:none;overflow:hidden}
.bf-av img{width:100%;height:100%;object-fit:cover}
.bf-who{display:flex;flex-direction:column;min-width:0}
.bf-who b{font-size:16.5px;font-weight:600}
.bf-who span{font-size:14px;color:var(--muted-foreground,#737373)}
.bf-hd:hover .bf-who b{text-decoration:underline;text-underline-offset:3px}
.bf-tags{display:flex;flex-wrap:wrap;gap:6px}
.bf-tags span{font-size:12.5px;font-weight:500;padding:3px 10px;border-radius:7px;line-height:1.5}
.bf-tags .t-stage{background:rgba(22,184,176,.14);color:#0A0A0A}
.bf-tags .t-loc{background:#F4F4F5;color:#3F3F46}
.bf-tags .t-known{background:#0A0A0A;color:#fff}
.bf-tags .t-new{background:transparent;color:var(--muted-foreground,#737373);box-shadow:inset 0 0 0 1px var(--border,#E5E5E5)}
.bf-one{margin:0;font-size:15px;line-height:1.5;color:#27272A}
.bf-one.muted{color:var(--muted-foreground,#737373)}
.bf-doms{display:flex;flex-wrap:wrap;gap:6px}
.bf-doms span{display:inline-flex;align-items:center;gap:7px;padding:5px 11px;border-radius:8px;font-size:13px;font-weight:500;
  border:1px solid var(--border,#E5E5E5);background:#FAFAFA}
.bf-doms .lu{color:#52525B}
.bf-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:4px}
.bf-ideas{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;color:var(--muted-foreground,#737373)}
.bf-ideas .lu{color:#16B8B0}
.bf-view{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:10px;cursor:pointer;
  border:1px solid var(--border,#D4D4D8);background:var(--card,#fff);font:inherit;font-size:14.5px;font-weight:600;color:var(--foreground,#0A0A0A);
  transition:background .15s ease,border-color .15s ease}
.bf-view:hover{background:#F4F4F5;border-color:#A1A1AA}
.bf-view .lu{transition:transform .2s ease}
.bf-view:hover .lu{transform:translateX(3px)}
:root[data-theme="dark"] .bf-card{background:#0A0A0A;border-color:#262626}
:root[data-theme="dark"] .bf-one{color:#D4D4D8}
:root[data-theme="dark"] .bf-av{background:#FAFAFA;color:#0A0A0A}
:root[data-theme="dark"] .bf-tags .t-loc{background:#1C1C1F;color:#D4D4D8}
:root[data-theme="dark"] .bf-tags .t-stage{color:#FAFAFA;background:rgba(22,184,176,.22)}
:root[data-theme="dark"] .bf-tags .t-known{background:#FAFAFA;color:#0A0A0A}
:root[data-theme="dark"] .bf-doms span{background:#111;border-color:#262626}
:root[data-theme="dark"] .bf-doms .lu{color:#A1A1AA}
:root[data-theme="dark"] .bf-view,:root[data-theme="dark"] .bf-search,:root[data-theme="dark"] .bf-sel select{background:#0A0A0A;border-color:#303036}
:root[data-theme="dark"] .bf-view:hover{background:#1C1C1F}
@media(max-width:760px){
  .bf-grid{grid-template-columns:1fr}
  .bf-search{max-width:none;flex-basis:100%}
  .bf-sel{flex:1 1 0}.bf-sel select{width:100%;max-width:none}
}

/* ── the founder's profile sheet ─────────────────────────────────────── */
.drawer.bfd{width:min(540px,100%);display:flex;flex-direction:column;overflow:hidden;border-radius:18px 0 0 18px;background:var(--card,#fff)}
.bfd-body{flex:1;overflow-y:auto;padding:24px 26px 18px;display:flex;flex-direction:column;gap:16px}
.bfd-hd{display:flex;align-items:center;gap:16px}
.bfd-ph{width:76px;height:76px;border-radius:16px;overflow:hidden;background:#0A0A0A;color:#fff;display:grid;place-items:center;
  font-size:24px;font-weight:700;flex:none}
.bfd-ph img{width:100%;height:100%;object-fit:cover}
.bfd-who{flex:1;min-width:0}
.bfd-who h2{margin:0;font-size:23px;font-weight:700;letter-spacing:-.02em}
.bfd-who p{margin:2px 0 0;font-size:15.5px;color:var(--muted-foreground,#737373)}
.bfd-x{align-self:flex-start;width:40px;height:40px;border-radius:10px;border:1px solid var(--border,#E5E5E5);background:var(--card,#fff);
  display:grid;place-items:center;cursor:pointer;color:var(--foreground,#0A0A0A);flex:none}
.bfd-x:hover{background:#F4F4F5}
.bfd-one{margin:4px 0 0;font-size:19px;font-weight:650;letter-spacing:-.01em;line-height:1.35}
.bfd-links{display:flex;flex-direction:column;gap:8px}
.bfd-links a{display:inline-flex;align-items:center;gap:10px;font-size:15px;color:var(--foreground,#0A0A0A);text-decoration:none;width:max-content;max-width:100%}
.bfd-links a u{text-underline-offset:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bfd-links a:hover u{text-decoration-color:#16B8B0}
.bfd-links .lu{color:var(--muted-foreground,#737373);flex:none}
.bfd-in,.bfd-web{width:26px;height:26px;border-radius:6px;display:grid;place-items:center;flex:none;font-weight:800;font-size:14px;
  font-family:Arial,sans-serif;background:#0A0A0A;color:#fff}
.bfd-web .lu{color:#fff}
.bfd-facts{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--border,#E5E5E5);border-radius:14px;overflow:hidden}
.bfd-facts>div{display:flex;align-items:center;gap:14px;padding:13px 16px;border-bottom:1px solid var(--border,#E5E5E5)}
.bfd-facts>div:nth-child(odd):not(.wide){border-right:1px solid var(--border,#E5E5E5)}
.bfd-facts>div.wide{grid-column:1/-1}
.bfd-facts>div:last-child{border-bottom:0}
.bfd-facts>div:nth-last-child(2):nth-child(odd):not(.wide){border-bottom:0}
.bfd-facts>div:nth-last-child(2):nth-child(odd):not(.wide) + div{border-bottom:0}
.bfd-facts .lu{color:#52525B;flex:none}
.bfd-facts small{display:block;font-size:12.5px;color:var(--muted-foreground,#737373)}
.bfd-facts b{display:block;font-size:15px;font-weight:500}
.bfd-h{margin:0 0 8px;font-size:15.5px;font-weight:600}
.bfd-p{margin:0;font-size:14.5px;line-height:1.6;color:#3F3F46;white-space:pre-wrap}
.bfd-chips{display:flex;flex-wrap:wrap;gap:6px}
.bfd-chips span{padding:5px 12px;border-radius:8px;font-size:13.5px;font-weight:600;background:#F4F4F5;border:1px solid var(--border,#E5E5E5)}
.bfd-stuck{display:flex;gap:12px;padding:16px 18px;border-radius:14px;background:rgba(22,184,176,.08);border:1px solid rgba(22,184,176,.22)}
.bfd-stuck .lu{color:#16B8B0;flex:none;margin-top:1px}
.bfd-stuck h4{margin:0 0 6px;font-size:15.5px;font-weight:600}
.bfd-stuck ul{margin:0;padding-left:18px;font-size:14.5px;line-height:1.7}
.bfd-ideas{display:flex;gap:12px;align-items:flex-start}
.bfd-ideas>.lu{color:#52525B;flex:none;margin-top:1px}
.bfd-ideas h4{margin:0;font-size:15.5px;font-weight:600}
.bfd-ideas p{margin:3px 0 0;font-size:14px;color:var(--muted-foreground,#737373)}
.bfd-idea{display:flex;align-items:center;gap:10px;width:100%;margin-top:8px;padding:10px 12px;border:1px solid var(--border,#E5E5E5);
  border-radius:10px;background:var(--card,#fff);text-align:left;cursor:pointer;font:inherit;color:inherit}
.bfd-idea b{flex:1;min-width:0;font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bfd-idea span{font-size:12.5px;color:var(--muted-foreground,#737373);flex:none}
.bfd-idea:hover{background:#FAFAFA;border-color:#A1A1AA}
.bfd-pct span{display:block;font-size:13.5px;color:var(--muted-foreground,#737373);margin-bottom:8px}
.bfd-pct i{display:block;height:8px;border-radius:999px;background:#EDEDEF;overflow:hidden}
.bfd-pct i b{display:block;height:100%;border-radius:inherit;background:#16B8B0;transition:width .6s ease}
.bfd-invite{padding:14px 26px;border-top:1px solid var(--border,#E5E5E5);background:#FAFAFA;display:flex;flex-direction:column;gap:8px}
.bfd-invite label{font-size:13px;font-weight:600}
.bfd-invite-f{display:flex;align-items:center;gap:8px}
.bfd-invite-f .help{flex:1}
.bfd-foot{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 26px 20px;border-top:1px solid var(--border,#E5E5E5);background:var(--card,#fff)}
.bfd-go,.bfd-msg{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:50px;border-radius:12px;cursor:pointer;
  font:inherit;font-size:16px;font-weight:600;transition:background .15s ease,box-shadow .15s ease,transform .1s ease}
.bfd-go{border:0;background:#16B8B0;color:#0A0A0A;box-shadow:0 6px 16px -8px rgba(22,184,176,.8)}
.bfd-go:hover:not(:disabled){background:#13A59E}
.bfd-go:disabled{background:#E8F8F7;color:#3F3F46;box-shadow:none;cursor:default}
.bfd-msg{border:1px solid #D4D4D8;background:var(--card,#fff);color:var(--foreground,#0A0A0A)}
.bfd-msg:hover:not(:disabled){background:#F4F4F5}
.bfd-go:active,.bfd-msg:active{transform:scale(.98)}
:root[data-theme="dark"] .drawer.bfd,:root[data-theme="dark"] .bfd-foot{background:#0A0A0A}
:root[data-theme="dark"] .bfd-facts,:root[data-theme="dark"] .bfd-facts>div,:root[data-theme="dark"] .bfd-foot,
:root[data-theme="dark"] .bfd-x,:root[data-theme="dark"] .bfd-idea{border-color:#262626}
:root[data-theme="dark"] .bfd-facts .lu,:root[data-theme="dark"] .bfd-ideas>.lu{color:#A1A1AA}
:root[data-theme="dark"] .bfd-p{color:#D4D4D8}
:root[data-theme="dark"] .bfd-chips span{background:#1C1C1F;border-color:#303036}
:root[data-theme="dark"] .bfd-ph,:root[data-theme="dark"] .bfd-in,:root[data-theme="dark"] .bfd-web{background:#FAFAFA;color:#0A0A0A}
:root[data-theme="dark"] .bfd-web .lu{color:#0A0A0A}
:root[data-theme="dark"] .bfd-x,:root[data-theme="dark"] .bfd-idea,:root[data-theme="dark"] .bfd-msg{background:#0A0A0A;color:#FAFAFA}
:root[data-theme="dark"] .bfd-invite{background:#111;border-color:#262626}
:root[data-theme="dark"] .bfd-pct i{background:#262626}
@media(max-width:560px){
  .drawer.bfd{border-radius:0}
  .bfd-body{padding:18px 16px}
  .bfd-foot{padding:12px 16px 16px}
  .bfd-facts{grid-template-columns:1fr}
  .bfd-facts>div{border-right:0 !important;border-bottom:1px solid var(--border,#E5E5E5) !important}
  .bfd-facts>div:last-child{border-bottom:0 !important}
}
