/* Product UI: quiet surfaces, a single accent, and consistent interactive controls.
   Loaded last; scoped to the signed-in app so public/auth pages keep their identity. */
body.product-active {
  --bg: #faf8f5;
  --surface: #fff;
  --surface-2: #f2eeea;
  --ink: #292522;
  --muted: #6e655f;
  --subtle: #6e655f;
  --line: #e7e0d9;
  --brand: #b43d35;
  --brand-strong: #8f2d28;
  --brand-soft: #fbefed;
  --header: 68px;
  --left: 220px;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
body.product-active :is(h1,h2,h3,.section-title,button,input,select,textarea) { font-family: Inter, system-ui, sans-serif; }
html body.product-active .topbar { background: var(--brand); color: #fff; border-bottom: 1px solid var(--brand-strong); box-shadow: none; }
body.product-active .topbar .dormy-header-brand { width: 146px; min-width: 146px; height: 44px; gap: 5px; }
body.product-active .dormy-mascot-slot { width: 36px; height: 36px; flex-basis: 36px; }
body.product-active .dormy-brand-wordmark { width: 98px; height: 38px; flex-basis: 98px; }
body.product-active .top-actions .icon-button { width: 44px; height: 44px; border-radius: 8px; color: #fff; background: transparent; }
body.product-active .top-actions .icon-button:hover { background: #ffffff1a; color: #fff; }
body.product-active .global-search { height: 42px; max-width: 560px; border-radius: 8px; border-color: var(--line); background: var(--bg); }
body.product-active .global-search kbd { border-color: var(--line); }
body.product-active .global-search:focus-within { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px var(--brand-soft); }
body.product-active :is(button,a,input,select,textarea):focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
body.product-active .app-shell { max-width: 1440px; }
body.product-active .left-rail { background: var(--surface); border-right: 1px solid var(--line); padding: 24px 16px; }
body.product-active .nav-stack { gap: 4px; }
body.product-active .nav-link { min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 500; border-radius: 8px; color: var(--muted); }
body.product-active .nav-link span:first-of-type { text-transform: capitalize; }
body.product-active .nav-link:hover { background: var(--bg); color: var(--ink); }
body.product-active .nav-link.active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; }
body.product-active .rail-heading > span { font-size: 10px; letter-spacing: .08em; }
body.product-active .rail-heading button { min-height: 44px; }
body.product-active .founder-campus-switch select { border-color: var(--line); border-radius: 8px; background: var(--surface); min-height: 44px; }
body.product-active .main-content:not(.messages-view):not(.token-view) { padding: 28px 36px 88px; }
body.product-active .page-header h1 { font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.04em; }
body.product-active .page-header p { font-size: 14px; line-height: 1.6; }
body.product-active .button { min-height: 44px; border-radius: 8px; font-weight: 600; box-shadow: none; transition: background .15s, border-color .15s, color .15s; }
body.product-active .button:hover { transform: none; box-shadow: none; }
body.product-active .button.secondary { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
body.product-active .button.secondary:hover { background: var(--surface-2); border-color: #b9c0c9; }
body.product-active :is(.card,.home-person,.home-pulse .pulse-card,.home-page [data-home-post]) { background: var(--surface); border-color: var(--line); border-radius: 12px; box-shadow: none; }
body.product-active .connect-section-tabs { gap: 24px; margin-bottom: 28px; padding: 0; border-bottom: 1px solid var(--line); }
body.product-active .connect-section-tabs button { min-height: 44px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted); background: transparent; font-size: 14px; font-weight: 500; }
body.product-active .connect-section-tabs button[aria-current='page'] { border-bottom-color: var(--brand); background: transparent; color: var(--ink); font-weight: 700; }
body.product-active .people-page .page-header { align-items: center; margin-bottom: 24px; }
body.product-active .people-directory-link { margin: 0; font-size: 13px; }
body.product-active .people-directory-link a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-weight: 500; text-decoration: none; }
body.product-active .people-directory-link a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
body.product-active .people-filters { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 16px; padding: 0 0 24px; margin: 0 0 24px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
body.product-active .people-filters .form-field > span { color: var(--ink); font-weight: 500; font-size: 12px; }
body.product-active .people-filters select { height: 44px; background-color: var(--surface); border-radius: 8px; font-size: 14px; }
body.product-active .people-results-heading { margin-bottom: 16px; }
body.product-active .people-results-heading h2 { font-size: 15px; font-weight: 600; }
body.product-active .people-results-heading > span { font-size: 12px; }
body.product-active .people-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
body.product-active .people-grid .person-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: none; }
body.product-active .people-grid .person-card:hover { transform: none; border-color: #b9c0c9; box-shadow: 0 3px 12px #20242b06; }
body.product-active .people-grid .person-card-body { padding: 20px; }
body.product-active .people-grid .person-identity { grid-template-columns: 44px minmax(0,1fr) auto; min-height: 44px; gap: 12px; align-items: center; }
body.product-active .people-grid .person-card .avatar.large { width: 44px; height: 44px; border-radius: 50%; }
body.product-active .people-grid .person-card h3 { font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
body.product-active .people-grid .person-identity .handle { color: var(--muted); font-size: 12px; }
body.product-active .people-grid .person-identity .follow-button { min-height: 44px; padding: 0 13px; border: 1px solid var(--ink); border-radius: 8px; background: var(--ink); color: white; font-size: 12px; font-weight: 600; }
body.product-active .people-grid .person-identity .follow-button:hover { background: #3b424c; border-color: #3b424c; }
body.product-active .people-grid .person-identity .follow-button[data-following='true'] { background: var(--surface); border-color: var(--line); color: var(--muted); }
body.product-active .people-grid .person-about { padding: 16px 0; }
body.product-active .people-grid .person-card .course { min-height: 0; margin: 0 0 8px; color: var(--ink); font-size: 13px; line-height: 1.5; }
body.product-active .people-grid .person-details { display: flex; color: var(--muted); font-size: 12px; line-height: 1.5; }
body.product-active .people-grid .person-interests span { background: var(--bg); color: var(--muted); font-weight: 500; }
body.product-active .people-grid .person-card-footer { border-color: var(--line); gap: 12px; padding-top: 12px; }
body.product-active .people-grid .person-social { color: var(--muted); font-size: 12px; }
body.product-active .people-grid .person-social strong { color: var(--ink); font-weight: 600; }
body.product-active .people-grid .person-actions .button { min-height: 44px; border-radius: 8px; font-size: 12px; }
body.product-active .people-grid .person-actions .button.primary { padding-inline: 0; color: var(--muted); background: transparent; border-color: transparent; }
body.product-active .people-grid .person-actions .button.primary:hover { color: var(--ink); background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: 4px; }
body.product-active .people-grid .person-actions .button.secondary { color: var(--ink); background: var(--surface); border-color: var(--line); }
body.product-active .people-grid .person-actions .button.secondary:hover { background: var(--bg); border-color: #b9c0c9; }
body.product-active :is(.mobile-nav,.mobile-section-tabs) { background: var(--surface); border-color: var(--line); }
@media (max-width: 1100px) and (min-width: 781px) {
  body.product-active { --left: 190px; }
  body.product-active .main-content:not(.messages-view):not(.token-view) { padding-inline: 24px; }
  body.product-active .people-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 780px) {
  body.product-active { --header: 60px; }
  body.product-active .main-content:not(.messages-view):not(.token-view) { padding: 20px 16px 100px; }
  body.product-active .topbar .dormy-header-brand { width: 115px; min-width: 115px; }
  body.product-active .dormy-mascot-slot { width: 30px; height: 30px; flex-basis: 30px; }
  body.product-active .dormy-brand-wordmark { width: 76px; height: 32px; flex-basis: 76px; }
  body.product-active .connect-section-tabs { margin-bottom: 22px; }
  body.product-active .people-page .page-header { display: block; margin-bottom: 16px; }
  body.product-active .page-header h1 { font-size: 26px; }
  body.product-active .people-directory-link { margin-top: 4px; }
  body.product-active .people-filters { grid-template-columns: minmax(0,1fr); gap: 12px; padding-bottom: 20px; margin-bottom: 20px; }
  body.product-active .people-filters select { font-size: 16px; }
  body.product-active .people-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  body.product-active .people-grid .person-card-body { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  body.product-active .page-enter { animation: none; }
  body.product-active :is(.button,.person-card,.nav-link) { transition: none; }
}
/* Keep masthead controls legible against the brand color on every breakpoint. */
body.product-active .topbar .top-actions .icon-button .icon { color: #fff; stroke: currentColor; }
body.product-active .topbar :is(button,a):focus-visible { outline-color: #fff; }
@media (min-width: 781px) {
  body.product-active .main-content:not(.messages-view):not(.token-view):has(.people-page) { --content-width: 1100px; --content-offset: 0px; width: 100%; margin-inline: auto; padding-inline: 36px; }
}

/* People directory: continuous rows, not dashboard cards. */
body.product-active .people-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; border-top: 1px solid var(--line); }
body.product-active .people-grid .person-card { height: auto; overflow: visible; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
body.product-active .people-grid .person-card:hover { border-color: var(--line); background: #fff; box-shadow: none; }
body.product-active .people-grid .person-card-body { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; grid-template-rows: auto auto; column-gap: 20px; row-gap: 8px; padding: 24px 12px; height: auto; }
body.product-active .people-grid .person-identity { display: contents; }
body.product-active .people-grid .person-card .avatar.large { grid-column: 1; grid-row: 1 / 3; width: 64px; height: 64px; border-radius: 16px; align-self: start; }
body.product-active .people-grid .person-name { grid-column: 2; grid-row: 1; align-self: center; }
body.product-active .people-grid .person-card h3 { font-size: 16px; font-weight: 600; letter-spacing: -.025em; }
body.product-active .people-grid .person-identity .handle { margin-top: 3px; font-size: 12px; }
body.product-active .people-grid .person-identity .follow-button { grid-column: 3; grid-row: 1; justify-self: end; min-width: 92px; min-height: 40px; padding-inline: 18px; border-radius: 999px; background: transparent; border: 1px solid #b9c0c9; color: var(--ink); }
body.product-active .people-grid .person-identity .follow-button:hover { background: var(--ink); border-color: var(--ink); color: white; }
body.product-active .people-grid .person-identity .follow-button[data-following='true'] { background: var(--surface-2); border-color: transparent; color: var(--muted); }
body.product-active .people-grid .person-about { grid-column: 2; grid-row: 2; padding: 0; align-self: start; }
body.product-active .people-grid .person-card .course { margin: 0 0 3px; font-size: 13px; }
body.product-active .people-grid .person-details { display: flex; gap: 5px; font-size: 12px; }
body.product-active .people-grid .person-interests { margin-top: 8px; }
body.product-active .people-grid .person-interests span { padding: 0; background: transparent; color: var(--brand-strong); font-size: 12px; }
body.product-active .people-grid .person-card-footer { grid-column: 3; grid-row: 2; align-self: end; padding: 0; border: 0; }
body.product-active .people-grid .person-social { display: none; }
body.product-active .people-grid .person-actions { justify-content: flex-end; gap: 16px; }
body.product-active .people-grid .person-actions .button { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); font-weight: 500; }
body.product-active .people-grid .person-actions .button.secondary { min-width: 92px; padding-inline: 12px; border: 0; background: transparent; color: var(--ink); }
body.product-active .people-grid .person-actions .button.secondary:hover { background: var(--surface-2); }
@media (max-width: 780px) {
  body.product-active .people-grid .person-card-body { grid-template-columns: 48px minmax(0,1fr) auto; gap: 8px 12px; padding: 20px 0; }
  body.product-active .people-grid .person-card .avatar.large { width: 48px; height: 48px; border-radius: 12px; }
  body.product-active .people-grid .person-card h3 { font-size: 15px; }
  body.product-active .people-grid .person-identity .follow-button { min-width: 76px; min-height: 44px; padding-inline: 12px; margin: 0; }
  body.product-active .people-grid .person-about { grid-column: 2 / 4; }
  body.product-active .people-grid .person-card-footer { grid-column: 2 / 4; grid-row: 3; }
  body.product-active .people-grid .person-actions { justify-content: flex-start; gap: 20px; }
}

/* A compact discovery toolbar keeps the first people close to the title. */
body.product-active .main-content:has(.people-page) { font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
body.product-active .main-content:has(.people-page) .connect-section-tabs { margin-bottom: 20px; }
body.product-active .people-page .page-header { margin-bottom: 18px; }
body.product-active .people-page .page-header h1 { font-size: 24px; font-weight: 600; letter-spacing: -.035em; }
body.product-active .people-page .page-header p { margin-top: 4px; font-size: 13px; }
body.product-active .people-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 18px; }
body.product-active .people-filters .form-field { display: flex; align-items: center; flex: 0 1 auto !important; gap: 10px; }
body.product-active .people-filters .form-field > span { flex: none; margin: 0; font-size: 12px; color: var(--muted); }
body.product-active .people-filters select { width: 280px; max-width: 100%; height: 44px; border-radius: 6px; padding: 0 32px 0 12px; font-size: 13px; font-weight: 500; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23616975' stroke-width='1.5'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-position: right 10px center; background-repeat: no-repeat; }
body.product-active .people-filters #people-intent { width: 210px; }
body.product-active .people-results-heading { margin-bottom: 10px; }
body.product-active .people-grid .person-card-body { padding-block: 18px; }
@media (max-width: 780px) {
  body.product-active .people-page .page-header { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  body.product-active .people-page .page-header .people-directory-link { margin: 0; }
  body.product-active .people-filters { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
  body.product-active .people-filters .form-field { display: grid; gap: 6px; }
  body.product-active .people-filters select, body.product-active .people-filters #people-intent { width: 100%; font-size: 16px; }
}
body.product-active .people-page .page-header { justify-content: space-between; text-align: left; }
@media (max-width: 780px) {
  body.product-active .people-page .page-header { justify-content: flex-start; align-items: flex-start; }
}

/* Shared compact surfaces keep Buzz consistent with the rest of the app. */
body.product-active.buzz-feed-active .main-content { --content-width: 1100px; --content-offset: 0px; width: 100%; max-width: 1100px; margin-inline: auto; }
body.product-active.buzz-feed-active :is(.buzz-page-heading,.buzz-page .page-header) { margin-bottom: 20px; }
body.product-active.buzz-feed-active :is(.buzz-page-heading h1,.buzz-page .page-header h1) { font: 600 24px/1.25 Inter,system-ui,sans-serif; letter-spacing: -.035em; }
body.product-active.buzz-feed-active .eyebrow { display: none; }
body.product-active.buzz-feed-active .buzz-feed-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 20px; }
body.product-active.buzz-feed-active :is(.buzz-stream,.buzz-discovery) { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: none; }
body.product-active.buzz-feed-active .buzz-feed-tabs button { min-height: 44px; font-size: 13px; font-weight: 600; background: transparent; color: var(--muted); }
body.product-active.buzz-feed-active .buzz-feed-tabs button.active { color: var(--ink); }
body.product-active.buzz-feed-active .buzz-feed-tabs button.active:after { height: 2px; background: var(--brand); }
body.product-active.buzz-feed-active .buzz-feed-compose { min-height: 72px; padding: 14px 18px; border-color: var(--line); background: var(--surface); }
body.product-active.buzz-feed-active .buzz-feed-compose-icon { width: 36px; height: 36px; background: var(--brand-soft); color: var(--brand); }
body.product-active.buzz-feed-active .buzz-feed-compose button { min-height: 44px; border-radius: 8px; font-size: 13px; }
body.product-active.buzz-feed-active .buzz-feed-card { grid-template-columns: 38px minmax(0,1fr); gap: 12px; padding: 18px; border-color: var(--line); }
body.product-active.buzz-feed-active .buzz-feed-card>.avatar,body.product-active.buzz-feed-active .buzz-feed-anonymous-avatar { width: 38px; height: 38px; border-radius: 10px; }
body.product-active.buzz-feed-active .buzz-feed-card-content>p { margin: 10px 0; font-size: 14px; line-height: 1.6; }
body.product-active.buzz-feed-active .buzz-feed-open { min-height: 44px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
body.product-active.buzz-feed-active .buzz-discovery { padding: 16px; }
body.product-active .nav-count { background: var(--surface-2); color: var(--muted); }
body.product-active .circle-link:hover { background: var(--surface-2); }
body.product-active .rail-section { margin-top: 20px; padding-top: 14px; }
body.product-active .founder-campus-switch { padding-bottom: 16px; margin-bottom: 16px; }
body.product-active .founder-campus-switch select { font-size: 13px; font-weight: 500; }
@media(max-width: 1000px) {
  body.product-active.buzz-feed-active .buzz-feed-layout { grid-template-columns: minmax(0,1fr); }
}
@media(max-width: 780px) {
  body.product-active.buzz-feed-active .main-content { padding: 20px 16px 100px; }
  body.product-active.buzz-feed-active .buzz-feed-card { padding: 16px 12px; }
}
@media(min-width: 781px) {
  body.product-active .main-content:not(.messages-view):not(.token-view):has(.buzz-page) { --content-width: 1100px; --content-offset: 0px; width: 100%; margin-inline: auto; padding-inline: 36px; }
}
body.product-active .campus-buzz-composer { padding: 18px; gap: 10px; }
body.product-active .campus-buzz-composer>label { font: 600 14px/1.4 Inter,system-ui,sans-serif; }
body.product-active .campus-buzz-composer textarea { min-height: 96px; border-radius: 8px; background: var(--bg); font-size: 14px; }
body.product-active .campus-buzz-compose-actions .button { min-height: 44px; border-radius: 8px; }
body.product-active .buzz-page .button { text-decoration: none; }
body.product-active .buzz-page .buzz-discovery h2 { font-size: 16px; font-weight: 600; line-height: 1.4; }
@media(max-width: 780px) {
  body.product-active { --header: calc(var(--mobile-top-height) + var(--mobile-search-height) + var(--mobile-tabs-height)); }
  body.product-active.buzz-feed-active .buzz-page-heading { padding: 0; border: 0; border-radius: 0; background: transparent; }
  body.product-active.buzz-feed-active .buzz-feed-tabs { margin: 0; padding: 0; gap: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface); }
  body.product-active.buzz-feed-active .buzz-feed-tabs button { border-radius: 0; }
  body.product-active.buzz-feed-active .buzz-feed-tabs button.active { box-shadow: none; background: transparent; color: var(--brand); }
  body.product-active.buzz-feed-active .buzz-feed-tabs button.active:after { display: block; }
}

/* One action language across discovery, profiles, connections, and the feed. */
html body.product-active :is(.people-grid .person-identity .follow-button,.profile-page .profile-actions .button.follow-button,.social-follow-button,.home-person-follow,.follow-button,[data-directory-follow]) {
  min-height: 44px;
  padding-inline: 16px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-family: Inter,system-ui,sans-serif;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
  transition: background .15s ease,border-color .15s ease,color .15s ease;
}
html body.product-active :is(.people-grid .person-identity .follow-button,.profile-page .profile-actions .button.follow-button,.social-follow-button,.home-person-follow,.follow-button,[data-directory-follow]):hover {
  border-color: var(--brand-strong); background: var(--brand-strong); color: #fff;
}
html body.product-active :is(.people-grid .person-identity .follow-button,.profile-page .profile-actions .button.follow-button,.social-follow-button,.home-person-follow,.follow-button,[data-directory-follow])[data-following='true'] {
  border-color: #e6b6b1; background: var(--brand-soft); color: var(--brand-strong);
}
html body.product-active :is(.people-grid .person-identity .follow-button,.profile-page .profile-actions .button.follow-button,.social-follow-button,.home-person-follow,.follow-button,[data-directory-follow])[data-following='true']:hover {
  border-color: var(--brand); background: #f6dfdc; color: var(--brand-strong);
}
html body.product-active :is(.follow-button,.social-follow-button,[data-directory-follow])[data-following='true']::before { content: '✓'; margin-right: 5px; color: currentColor; }
body.product-active :is(.button,.follow-button,.social-follow-button)[aria-busy='true'] { cursor: progress; opacity: .7; }
body.product-active :is(.button,.icon-button,.follow-button):disabled { cursor: not-allowed; }
body.product-active :is(.modal,.side-panel,.community-card,.plan-card,.opportunity-card) { border-color: var(--line); border-radius: 12px; box-shadow: none; }
body.product-active :is(.form-field input,.form-field select,.form-field textarea) { border-color: var(--line); border-radius: 8px; background-color: var(--surface); color: var(--ink); }
body.product-active :is(.grouped-section-tabs,.profile-tabs) { gap: 8px; border-color: var(--line); }
body.product-active :is(.grouped-section-tabs,.profile-tabs) button { min-height: 44px; font-family: Inter,system-ui,sans-serif; font-weight: 500; }
body.product-active :is(.grouped-section-tabs,.profile-tabs) button[aria-current='page'],body.product-active .profile-tabs button[aria-pressed='true'] { color: var(--brand-strong); background: var(--brand-soft); font-weight: 600; }
body.product-active :is(.page-header,.home-heading,.section-title) h2 { font-weight: 600; letter-spacing: -.025em; }
@media(prefers-reduced-motion:reduce) {
  html body.product-active :is(.follow-button,.social-follow-button,[data-directory-follow]) { transition: none !important; }
}
