/* Live workspace and community views share the existing shell's tokens. */
.product-root { --product-border: var(--line); padding-top: 28px; }
.product-root, .product-root * { min-width: 0; }
.product-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; width: fit-content; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(14, 19, 24, .8); }
.product-nav-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 7px; color: var(--muted); font-size: 12px; }
.product-nav-link:hover, .product-nav-link.active { color: var(--text); background: var(--surface-2); }
.product-nav-link.active { box-shadow: inset 0 0 0 1px var(--line); }
.product-page-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 44px 0 30px; }
.product-page-head .eyebrow, .product-community-head .eyebrow { margin-bottom: 14px; }
.product-title { max-width: 850px; margin-bottom: 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
.product-lede { max-width: 650px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.product-page-head > .button { flex: none; }
.product-workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 28px; }
.product-section { margin-bottom: 32px; }
.product-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.product-section-head h2, .product-panel-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; line-height: 1.4; letter-spacing: -.025em; }
.product-section-head > a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.product-section-head > a:hover { color: var(--cyan); }
.product-repo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.product-repo-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(135deg, rgba(99, 217, 255, .035), transparent 80%), var(--ink-900); }
.product-card-top { display: flex; align-items: start; gap: 9px; }
.product-card-top > .icon { margin-top: 2px; color: var(--cyan); }
.product-card-top h3 { flex: 1; margin: 0 0 12px; font: 600 13px/1.5 var(--mono); overflow-wrap: anywhere; }
.product-card-top a:hover { color: var(--cyan); }
.product-repo-card > p { flex: 1; margin: 0 0 14px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.product-repo-card .topic-row { margin-bottom: 14px; }
.product-repo-card footer { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font: 10px var(--mono); }
.product-repo-card footer > span { display: inline-flex; align-items: center; gap: 5px; }
.product-repo-card footer .icon { width: 12px; height: 12px; }
.product-repo-card footer .product-badge { margin-left: auto; }
.product-badge { display: inline-flex; flex: none; align-items: center; padding: 2px 7px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); font: 10px/1.5 var(--mono); }
.product-panel { margin: 0 0 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: rgba(14, 19, 24, .8); scroll-margin-top: 24px; }
.product-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.product-panel-body { padding: 18px 20px; }
.product-panel-note { margin: 0; padding: 18px 20px; color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.product-panel-note + .product-panel-body, .product-panel-note + .product-form { padding-top: 0; }
.product-panel-link { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.product-panel-link:hover { color: var(--cyan); background: rgba(99, 217, 255, .035); }
.product-identity > div { display: flex; align-items: center; gap: 12px; padding: 20px; }
.product-identity strong, .product-identity small { display: block; }
.product-identity strong { font-size: 14px; }
.product-identity small { color: var(--muted); font: 11px var(--mono); }
.product-identity > p { margin: 0; padding: 0 20px 16px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.product-identity > a:not(.product-panel-link) { display: flex; align-items: center; gap: 7px; padding: 0 20px 12px; color: var(--cyan); font-size: 12px; overflow-wrap: anywhere; }
.product-empty { display: flex; flex-direction: column; align-items: center; padding: 44px 20px; border: 1px dashed var(--line-strong); border-radius: 11px; background: rgba(21, 28, 35, .3); text-align: center; }
.product-empty > .icon { width: 28px; height: 28px; margin-bottom: 14px; color: var(--cyan); }
.product-empty h3 { margin: 0 0 8px; font-size: 16px; font-weight: 550; letter-spacing: -.025em; }
.product-empty p { max-width: 410px; margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.product-empty p:last-child { margin-bottom: 0; }
.product-panel > .product-empty { border: none; border-radius: 0; }
.product-settings-grid { display: grid; grid-template-columns: 200px minmax(0, 780px); gap: 30px; }
.product-settings-nav { display: grid; gap: 4px; align-self: start; position: sticky; top: 24px; }
.product-settings-nav a { padding: 12px 14px; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; color: var(--muted); font-size: 12px; }
.product-settings-nav a:hover { border-left-color: var(--cyan); color: var(--text); background: var(--surface); }
.product-form { display: flex; flex-direction: column; gap: 20px; padding: 22px; }
.product-form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-field { display: flex; flex-direction: column; gap: 8px; color: var(--text); font-size: 12px; font-weight: 600; }
.product-field > span > small, .product-fieldset legend small { padding-left: 5px; color: var(--muted); font-size: 11px; font-weight: 400; }
.product-field input, .product-field textarea, .product-field select { width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--text); background: var(--code-bg); font: 400 13px/1.5 var(--sans); }
.product-field textarea { min-height: 90px; resize: vertical; }
.product-field input::placeholder, .product-field textarea::placeholder { color: var(--subtle); }
.product-field input:focus, .product-field textarea:focus { border-color: var(--cyan); outline: 2px solid rgba(99, 217, 255, .22); outline-offset: 1px; }
.product-field > small { color: var(--muted); font-size: 11px; line-height: 1.5; font-weight: 400; }
.product-fieldset { display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px; }
.product-fieldset legend { padding: 0 7px; color: var(--text); font-size: 12px; font-weight: 600; }
.product-link-inputs { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); }
.product-radio, .product-checkbox { display: flex; align-items: start; gap: 10px; cursor: pointer; }
.product-radio input, .product-checkbox input { flex: none; width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--cyan); }
.product-radio > span { display: grid; grid-template-columns: 18px 1fr; gap: 2px 8px; }
.product-radio .icon { grid-row: 1 / span 2; margin-top: 3px; color: var(--muted); }
.product-radio strong, .product-checkbox > span { font-size: 12px; font-weight: 550; }
.product-radio small, .product-checkbox small { display: block; color: var(--muted); font-size: 11px; line-height: 1.7; font-weight: 400; }
.product-form-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding-top: 3px; }
.product-root .button { min-height: 42px; gap: 8px; }
.product-root button:disabled, [data-product-controls] button:disabled { cursor: default; opacity: .45; transform: none; box-shadow: none; }
.product-feedback { min-height: 0; margin: 0; color: var(--lime); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.product-feedback:empty { display: none; }
.product-feedback.is-error { color: var(--rose); }
.product-workspace-aside .product-panel > .product-feedback:not(:empty) { padding: 12px 20px; border-top: 1px solid var(--line); }
.product-button-danger { border: 1px solid rgba(255, 114, 132, .45); color: var(--rose); background: rgba(255, 114, 132, .08); }
.product-button-danger:hover { border-color: var(--rose); background: rgba(255, 114, 132, .15); transform: none; }
.product-danger-panel { border-color: rgba(255, 114, 132, .27); }
.product-danger-panel .product-panel-head { border-bottom-color: rgba(255, 114, 132, .2); }
.product-danger-panel h2, .product-danger-section h3 { color: var(--rose); }
.product-danger-section { padding: 20px 22px; border-top: 1px solid rgba(255, 114, 132, .25); }
.product-danger-section h3 { margin-bottom: 8px; font-size: 13px; }
.product-danger-section > p { color: var(--muted); font-size: 12px; }
.product-danger-section .product-form { padding: 0; }
.product-session-list { margin: 0; padding: 0 20px; list-style: none; }
.product-session-list > li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.product-session-list > li:first-child { border-top: none; }
.product-session-list > li > span { display: flex; align-items: start; gap: 12px; }
.product-session-list strong, .product-session-list small { display: block; }
.product-session-list strong { margin-bottom: 5px; font-size: 12px; }
.product-session-list small { color: var(--muted); font-size: 11px; line-height: 1.7; }
.product-session-list > li > span > .icon { margin-top: 3px; color: var(--muted); }
.product-session-list form { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.product-narrow { max-width: 720px; }
.product-community-head { padding: 22px 0 0; }
.product-community-title { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.product-community-title .product-title { font-size: clamp(26px, 3.5vw, 38px); }
.product-community-title .product-title > span:first-child { color: var(--muted); font-weight: 500; }
.product-slash { color: var(--subtle); font-weight: 400; }
.product-community-title > .product-badge { margin-top: 31px; }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.product-actions .product-feedback { flex-basis: 100%; }
.product-toggle.is-active { border-color: rgba(99, 217, 255, .45); color: var(--cyan); background: rgba(99, 217, 255, .06); }
.product-toggle .count { color: inherit; }
.product-tabs { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; border-bottom: 1px solid var(--line); }
.product-tabs a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 12px 3px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 12px; }
.product-tabs a:hover, .product-tabs a.active { color: var(--text); }
.product-tabs a.active { border-bottom-color: var(--cyan); }
.product-community-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 26px; margin-top: 24px; }
.product-list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.product-filter-nav { display: flex; flex-wrap: wrap; gap: 5px; }
.product-filter-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 7px; color: var(--muted); font-size: 12px; }
.product-filter-nav a.active { color: var(--text); background: var(--surface-2); }
.product-thread-list { overflow: hidden; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; list-style: none; }
.product-thread-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 18px; border-top: 1px solid var(--line); background: rgba(14, 19, 24, .7); }
.product-thread-row:first-child { border-top: none; }
.product-thread-row:hover { background: var(--row-hover); }
.product-thread-state { margin-top: 3px; color: var(--lime); }
.product-thread-state.closed { color: var(--violet); }
.product-thread-title { display: inline-block; font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.product-thread-title:hover { color: var(--cyan); }
.product-thread-row small { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 6px; color: var(--muted); font-size: 10px; }
.product-author { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: inherit; }
.product-author .avatar { --size: 20px; }
.product-comment-count { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; color: var(--muted); font: 11px var(--mono); }
.product-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.product-thread-row .product-labels { margin-top: 7px; }
.product-label { display: inline-block; padding: 3px 8px; border: 1px solid rgba(99, 217, 255, .25); border-radius: 20px; color: var(--cyan); background: rgba(99, 217, 255, .06); font: 10px/1.4 var(--mono); overflow-wrap: anywhere; }
.product-muted { color: var(--muted); font-size: 12px; }
.product-compose { margin-top: 24px; }
.product-compose > summary { display: flex; width: fit-content; margin: 16px; cursor: pointer; list-style: none; }
.product-compose > summary::-webkit-details-marker { display: none; }
.product-compose[open] > summary { margin-bottom: 0; }
.product-repo-settings > summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 17px 20px; color: var(--text); cursor: pointer; font-size: 13px; font-weight: 550; list-style: none; }
.product-repo-settings > summary::-webkit-details-marker { display: none; }
.product-repo-settings[open] > summary { border-bottom: 1px solid var(--line); }
.product-repo-settings .product-form { padding: 18px; }
.product-repo-settings .product-form-columns { grid-template-columns: 1fr; }
.product-notice { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 20px 0; padding: 18px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: rgba(99, 217, 255, .035); font-size: 12px; }
.product-thread-heading { padding-top: 25px; }
.product-back-link { display: inline-block; color: var(--muted); font-size: 12px; }
.product-back-link:hover { color: var(--cyan); }
.product-thread-heading h2 { max-width: 920px; margin-top: 15px; font-size: clamp(22px, 3vw, 30px); line-height: 1.25; letter-spacing: -.035em; overflow-wrap: anywhere; }
.product-thread-heading h2 > span { color: var(--subtle); font-weight: 400; }
.product-thread-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 11px; }
.product-status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid rgba(201, 243, 107, .3); border-radius: 20px; color: var(--lime); background: rgba(201, 243, 107, .06); font-size: 11px; }
.product-status-chip.closed { border-color: rgba(179, 155, 255, .3); color: var(--violet); background: rgba(179, 155, 255, .06); }
.product-comment { overflow: hidden; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(14, 19, 24, .8); scroll-margin-top: 24px; }
.product-comment > header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(21, 28, 35, .5); color: var(--muted); font-size: 11px; }
.product-comment > header .product-badge { margin-left: auto; }
.product-comment-body { padding: 22px; overflow-wrap: anywhere; }
.product-comment-body pre { overflow-x: auto; }
.product-notifications { margin: 0; padding: 0; list-style: none; }
.product-notification { display: flex; align-items: center; gap: 14px; padding: 20px; border-top: 1px solid var(--line); }
.product-notification:first-child { border-top: none; }
.product-notification.unread { background: rgba(99, 217, 255, .025); }
.product-notification-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--surface-3); }
.product-notification.unread .product-notification-dot { background: var(--cyan); box-shadow: 0 0 0 4px rgba(99, 217, 255, .075); }
.product-notification > div { flex: 1; }
.product-notification p { margin: 0 0 6px; font-size: 13px; overflow-wrap: anywhere; }
.product-notification p a { font-weight: 550; }
.product-notification p a:hover { color: var(--cyan); }
.product-notification small { display: block; color: var(--muted); font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.product-notification > .button { flex: none; }
.product-notifications.compact .product-notification { flex-wrap: wrap; align-items: start; gap: 8px 10px; padding: 17px 20px; }
.product-notifications.compact .product-notification-dot { margin-top: 7px; }
.product-notifications.compact .product-notification > div { flex-basis: calc(100% - 20px); }
.product-notifications.compact .product-notification > .button { margin-left: 16px; }
.product-signin { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 650px; margin: 0 auto; padding: 54px 24px; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(ellipse at top, rgba(99, 217, 255, .07), transparent 75%), var(--ink-900); text-align: center; }
.product-signin-icon { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid rgba(99, 217, 255, .35); border-radius: 16px; color: var(--cyan); background: rgba(99, 217, 255, .06); }
.product-signin-icon .icon { width: 30px; height: 30px; }
.product-signin h2 { margin: 4px 0 0; font-size: 23px; line-height: 1.3; letter-spacing: -.035em; }
.product-signin p { margin: 0; color: var(--muted); font-size: 13px; }
@media (max-width: 1000px) {
  .product-workspace-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
  .product-repo-grid { grid-template-columns: 1fr; }
  .product-community-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
  .product-settings-grid { grid-template-columns: 175px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 768px) {
  .product-page-head { align-items: start; flex-direction: column; padding-top: 32px; gap: 18px; }
  .product-workspace-grid, .product-community-grid, .product-settings-grid { grid-template-columns: 1fr; }
  .product-workspace-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .product-settings-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .product-settings-nav a { min-height: 40px; border: none; border-radius: 7px; background: rgba(21, 28, 35, .7); }
  .product-repo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-community-grid > aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
  .product-community-grid > aside > .product-repo-settings { grid-column: 1 / -1; }
  .product-nav { width: 100%; }
  .product-nav-link { flex: 1 1 auto; justify-content: center; padding-right: 10px; padding-left: 10px; }
}
@media (max-width: 540px) {
  .product-root { padding-top: 20px; }
  .product-title { font-size: 30px; }
  .product-nav-link { flex-basis: calc(50% - 4px); justify-content: flex-start; }
  .product-workspace-aside, .product-repo-grid, .product-community-grid > aside, .product-form-columns, .product-link-inputs { grid-template-columns: 1fr; }
  .product-form { padding: 18px; }
  .product-fieldset { padding: 14px; }
  .product-session-list > li { align-items: start; flex-direction: column; }
  .product-session-list form { align-items: start; width: 100%; }
  .product-community-title > .product-badge { margin-top: 26px; }
  .product-community-title .product-title { font-size: 26px; }
  .product-tabs { gap: 14px; }
  .product-actions .button { padding-right: 10px; padding-left: 10px; }
  .product-thread-row { padding: 15px 12px; gap: 9px; }
  .product-thread-row small > time { width: 100%; margin-left: 0; }
  .product-comment > header { padding: 12px 15px; gap: 8px; }
  .product-comment-body { padding: 18px 15px; }
  .product-notification { flex-wrap: wrap; align-items: start; gap: 10px; padding: 18px; }
  .product-notification-dot { margin-top: 7px; }
  .product-notification > div { flex-basis: calc(100% - 20px); }
  .product-notification > .button, .product-notification > .product-badge { margin-left: 16px; }
  .product-signin { padding: 36px 18px; }
  .product-signin h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-root .button, [data-product-controls] .button { transition: none; }
}

/* Source, isolated jobs, and live member profiles. */
.product-root [hidden] { display: none !important; }
.product-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.product-avatar { --avatar-size: 30px; position: relative; display: inline-block; flex: none; width: var(--avatar-size); height: var(--avatar-size); vertical-align: middle; }
.product-avatar-sm { --avatar-size: 22px; }
.product-avatar-lg { --avatar-size: 46px; }
.product-avatar-xl { --avatar-size: 112px; }
.product-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--ink-900); }
.product-source-panel { margin-top: 24px; }
.product-source-panel > summary, .product-members-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 17px 20px; color: var(--text); font-size: 13px; font-weight: 550; cursor: pointer; list-style: none; }
.product-source-panel > summary::-webkit-details-marker, .product-members-panel > summary::-webkit-details-marker { display: none; }
.product-source-panel > summary > span { display: inline-flex; align-items: center; gap: 9px; }
.product-source-panel[open] > summary, .product-members-panel[open] > summary { border-bottom: 1px solid var(--line); }
.product-source-branch { color: var(--muted); font: 11px var(--mono); }
.product-source-grid { display: grid; grid-template-columns: 225px minmax(0, 1fr); }
.product-source-files { align-self: stretch; max-height: 660px; padding: 12px 8px; overflow-y: auto; border-right: 1px solid var(--line); background: rgba(8, 11, 15, .35); }
.product-source-files > .button { width: calc(100% - 8px); margin: 0 4px 10px; justify-content: center; }
.product-source-file { display: flex; align-items: start; gap: 8px; width: 100%; min-height: 38px; padding: 9px 10px; border-radius: 6px; color: var(--muted); background: transparent; font: 11px/1.55 var(--mono); text-align: left; }
.product-source-file > .icon { margin-top: 1px; width: 14px; height: 14px; }
.product-source-file > span:not(.product-badge) { flex: 1; overflow-wrap: anywhere; }
.product-source-file .product-badge { padding: 1px 4px; font-size: 8px; }
.product-source-file:hover, .product-source-file.active { color: var(--text); background: var(--surface-2); }
.product-source-file.active { box-shadow: inset 2px 0 0 var(--cyan); }
.product-source-toolbar { display: flex; align-items: end; gap: 12px; }
.product-source-toolbar > .product-field { flex: 1; }
.product-source-toolbar > .product-badge { margin-bottom: 12px; }
.product-source-toolbar input { font-family: var(--mono); font-size: 12px; }
.product-source-code textarea { min-height: 310px; font: 12px/1.75 var(--mono); tab-size: 4; white-space: pre; overflow-x: auto; background: var(--code-bg); }
.product-source-code textarea[readonly] { color: var(--muted); }
.product-source-save { display: flex; align-items: end; gap: 14px; }
.product-source-save .product-field { flex: 1; }
.product-source-form > .product-muted { margin-bottom: 0; line-height: 1.7; }
.product-source-delete { border-top: 1px solid rgba(255, 114, 132, .2); }
.product-source-delete > summary { padding: 14px 22px; color: var(--rose); font-size: 12px; cursor: pointer; }
.product-build-panel { scroll-margin-top: 24px; }
.product-build-panel .product-badge.available { border-color: rgba(201, 243, 107, .28); color: var(--lime); background: rgba(201, 243, 107, .05); }
.product-build-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px; padding-top: 0; }
.product-build-form .product-feedback { grid-column: 1 / -1; }
.product-build-form input { font-family: var(--mono); font-size: 12px; }
.product-build-unavailable { margin: 0 20px 20px; padding: 13px 15px; border: 1px solid rgba(255, 201, 107, .2); border-radius: 7px; color: var(--amber); background: rgba(255, 201, 107, .03); font-size: 12px; line-height: 1.65; }
.product-job-list { border-top: 1px solid var(--line); }
.product-job { padding: 16px 20px; border-top: 1px solid var(--line); }
.product-job:first-child { border-top: none; }
.product-job > header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.product-job > header > code { color: var(--muted); font: 11px var(--mono); }
.product-job > header > small { color: var(--muted); font-size: 10px; }
.product-job > header > form { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.product-job-status { display: inline-flex; align-items: center; min-width: 65px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); font: 10px/1.5 var(--mono); }
.product-job-status.passed { border-color: rgba(201, 243, 107, .3); color: var(--lime); background: rgba(201, 243, 107, .05); }
.product-job-status.failed, .product-job-status.timed_out { border-color: rgba(255, 114, 132, .3); color: var(--rose); background: rgba(255, 114, 132, .05); }
.product-job-status.running, .product-job-status.preparing { border-color: rgba(99, 217, 255, .3); color: var(--cyan); background: rgba(99, 217, 255, .05); }
.product-job-status.refused, .product-job-status.blocked, .product-job-status.interrupted { border-color: rgba(255, 201, 107, .3); color: var(--amber); background: rgba(255, 201, 107, .05); }
.product-job > details { margin-top: 13px; }
.product-job > details > summary { padding: 5px 0; color: var(--muted); font-size: 11px; cursor: pointer; }
.product-build-log { max-height: 340px; overflow: auto; margin-top: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; color: #cad5dd; background: var(--code-bg); font: 11px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.product-artifacts { margin: 15px 0; padding: 0; list-style: none; }
.product-artifacts > li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font: 10px var(--mono); }
.product-artifacts > li:first-child { border-top: none; }
.product-artifacts a { display: inline-flex; flex: 1; align-items: center; gap: 7px; color: var(--cyan); font-size: 12px; overflow-wrap: anywhere; }
.product-artifacts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-artifacts code { color: var(--subtle); font-size: 9px; }
.product-build-proof { margin: 15px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.product-build-proof > div { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 12px; padding: 5px 0; }
.product-build-proof dt { color: var(--subtle); font: 10px/1.6 var(--mono); }
.product-build-proof dd { margin: 0; color: var(--muted); font: 10px/1.6 var(--mono); overflow-wrap: anywhere; }
.product-member-list { margin: 0; padding: 0 18px; list-style: none; }
.product-member-list li { display: flex; flex-direction: column; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.product-member-list li > div { display: flex; align-items: center; gap: 8px; font: 12px var(--mono); }
.product-member-list a:hover { color: var(--cyan); }
.product-member-list li > .product-badge { align-self: start; }
.product-member-list form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.product-member-list form .product-field { flex: 1; }
.product-member-list form .product-feedback { flex-basis: 100%; }
.product-members-panel > .product-form { padding: 18px; }
.product-member-profile { display: flex; align-items: start; gap: 26px; padding: 35px 0 38px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.product-member-profile > div:first-child { flex: none; padding-top: 7px; }
.product-member-profile-text { flex: 1; }
.product-member-profile .product-title { margin-bottom: 10px; font-size: 34px; }
.product-member-profile .eyebrow { margin: 0 0 12px; }
.product-member-handle { margin-bottom: 15px; color: var(--muted); font: 13px var(--mono); }
.product-member-bio { max-width: 650px; margin-bottom: 16px; color: var(--muted); font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.product-member-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 16px; }
.product-member-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); font-size: 12px; overflow-wrap: anywhere; }
.product-member-counts { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 11px; }
.product-member-counts strong { color: var(--text); font-weight: 600; }
.product-member-follow { flex: none; padding-top: 7px; }
.product-member-follow .product-feedback { max-width: 170px; margin-top: 10px; }
.product-profile-people { display: grid; gap: 12px; margin: 0; padding: 18px 20px; list-style: none; }
.product-profile-people li { display: flex; align-items: center; gap: 8px; font: 12px var(--mono); }
.product-profile-people a:hover { color: var(--cyan); }
.product-activity-list { margin: 0; padding: 0 20px; list-style: none; }
.product-activity { display: flex; align-items: start; gap: 12px; padding: 17px 0; border-top: 1px solid var(--line); }
.product-activity:first-child { border-top: none; }
.product-activity > .icon { margin-top: 3px; color: var(--subtle); }
.product-activity p { margin: 0 0 5px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.product-activity a { color: var(--text); }
.product-activity a:hover { color: var(--cyan); }
.product-activity small { color: var(--subtle); font-size: 10px; }
.product-member-search { display: flex; align-items: end; gap: 12px; max-width: 620px; margin-bottom: 24px; }
.product-member-search .product-field { flex: 1; }
.product-member-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-member-card { display: flex; flex-direction: column; gap: 17px; padding: 22px; border: 1px solid var(--line); border-radius: 11px; background: rgba(14, 19, 24, .8); }
.product-member-card > div:first-child { display: flex; align-items: center; gap: 13px; }
.product-member-card strong, .product-member-card small { display: block; overflow-wrap: anywhere; }
.product-member-card strong { margin-bottom: 3px; font-size: 14px; }
.product-member-card small { color: var(--muted); font: 11px var(--mono); }
.product-member-card > p { flex: 1; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.product-member-card-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 15px; color: var(--muted); font: 10px var(--mono); }
.product-member-card-footer .product-feedback { margin-top: 8px; font-family: var(--sans); }
@media (max-width: 1000px) {
  .product-member-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-source-grid { grid-template-columns: 190px minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .product-source-grid { grid-template-columns: 1fr; }
  .product-source-files { display: flex; flex-wrap: wrap; gap: 4px; max-height: 190px; border-right: none; border-bottom: 1px solid var(--line); }
  .product-source-file { width: fit-content; flex: 0 1 auto; max-width: 100%; min-height: 40px; padding: 9px; }
  .product-source-files > .button { width: auto; margin-bottom: 0; }
  .product-source-toolbar { flex-wrap: wrap; }
  .product-source-toolbar > .product-field { flex-basis: 100%; }
  .product-source-toolbar > .product-badge { margin: 0; }
  .product-member-profile { flex-wrap: wrap; gap: 20px; }
  .product-member-profile .product-avatar-xl, .product-member-profile .avatar-xl { --avatar-size: 86px; --size: 86px; }
  .product-member-follow { flex-basis: 100%; padding: 0; }
  .product-member-follow .product-feedback { max-width: 100%; }
}
@media (max-width: 540px) {
  .product-source-panel > summary { flex-wrap: wrap; gap: 8px; padding: 15px 18px; }
  .product-source-save { flex-wrap: wrap; gap: 14px; }
  .product-source-save .product-field { flex-basis: 100%; }
  .product-source-code textarea { min-height: 250px; }
  .product-build-form { grid-template-columns: 1fr; }
  .product-build-form > .button { justify-content: center; }
  .product-job { padding: 16px; }
  .product-job > header { gap: 9px; }
  .product-job > header > small:first-of-type { flex-basis: 100%; }
  .product-job > header > form { width: 100%; margin-left: 0; }
  .product-build-proof > div { grid-template-columns: 1fr; gap: 3px; }
  .product-member-profile .product-title { font-size: 28px; }
  .product-member-profile > div:first-child { padding-top: 0; }
  .product-member-profile .product-avatar-xl, .product-member-profile .avatar-xl { --avatar-size: 65px; --size: 65px; }
  .product-member-profile { gap: 16px; }
  .product-member-profile-text { flex-basis: calc(100% - 85px); }
  .product-member-cards { grid-template-columns: 1fr; }
  .product-member-search { flex-wrap: wrap; gap: 10px; }
  .product-member-search .product-field { flex-basis: 100%; }
}

/* Source proposals and independent review. */
.product-pull-list-head { margin-top: 28px; margin-bottom: 18px; }
.product-pull-status-nav { margin-bottom: 18px; }
.product-pull-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 9px; color: var(--muted); font-size: 10px; }
.product-pull-row-meta .product-status-chip { padding: 2px 8px; font-size: 9px; }
.product-pull-compose { margin-top: 26px; scroll-margin-top: 24px; }
.product-pull-compose > summary { display: flex; align-items: center; gap: 9px; min-height: 58px; padding: 18px 22px; color: var(--text); font-size: 14px; font-weight: 550; cursor: pointer; list-style: none; }
.product-pull-compose > summary::-webkit-details-marker { display: none; }
.product-pull-compose[open] > summary { border-bottom: 1px solid var(--line); }
.product-proposal-editor { display: flex; flex-direction: column; align-items: start; gap: 15px; }
.product-proposal-editor > [data-proposal-files] { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.product-proposal-editor > .product-muted { margin: 0; line-height: 1.7; }
.product-proposal-file { display: flex; flex-direction: column; gap: 18px; width: 100%; min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--line-strong); border-radius: 9px; background: rgba(8, 11, 15, .25); }
.product-proposal-file legend { padding: 0 8px; color: var(--muted); font: 10px var(--mono); }
.product-proposal-file-top { display: grid; grid-template-columns: minmax(0, 1fr) 190px auto; align-items: end; gap: 12px; }
.product-proposal-file-top [data-proposal-remove] { width: 40px; padding: 0; justify-content: center; }
.product-proposal-file-top input { font-family: var(--mono); font-size: 12px; }
.product-proposal-choice > select { font-family: var(--mono); font-size: 11px; }
.product-proposal-file .product-source-code textarea { min-height: 210px; }
.product-proposal-file [data-proposal-delete-wrap] { padding: 16px; border: 1px solid rgba(255, 114, 132, .25); border-radius: 8px; color: var(--rose); background: rgba(255, 114, 132, .03); }
.product-pull-anchor-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; border-bottom: 1px solid var(--line); }
.product-pull-anchor-nav a { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 11px 0; color: var(--muted); font-size: 12px; }
.product-pull-anchor-nav a:hover { color: var(--cyan); }
.product-thread-timeline > section, .product-pull-diff, .product-thread-timeline #builds { scroll-margin-top: 24px; }
.product-diff-text { max-height: 640px; padding: 21px; overflow: auto; color: #d1dce5; background: var(--code-bg); font: 11px/1.85 var(--mono); white-space: pre; tab-size: 4; }
.product-review-decision { color: var(--muted); font: 10px var(--mono); }
.product-review-decision.approve { color: var(--lime); }
.product-review-decision.request_changes { color: var(--amber); }
.product-pull-review .product-badge { margin-left: auto; }
.product-review-head { padding: 9px 18px; border-top: 1px solid var(--line); color: var(--subtle); font: 10px var(--mono); }
.product-review-head code { color: var(--muted); }
.product-pull-comment-position { display: block; overflow-wrap: anywhere; color: var(--subtle); font: 10px var(--mono); }
.product-pull-comment-position > code { color: var(--muted); }
.product-inline-comment-fields > summary { padding: 4px 0; color: var(--muted); cursor: pointer; font-size: 12px; }
.product-inline-comment-fields > summary > small { padding-left: 4px; color: var(--subtle); }
.product-inline-comment-fields[open] .product-form-columns { margin-top: 16px; }
.product-pull-review-counts { margin: 0; padding: 0 20px 14px; }
.product-pull-review-counts > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--muted); font-size: 11px; }
.product-pull-review-counts dd { margin: 0; color: var(--text); font-family: var(--mono); }
.product-merge-panel .product-form { padding-top: 0; }
.product-merge-panel .product-form > button { justify-content: center; }

/* Standalone native labels keep help and source values out of field names. */
.product-field-caption { display: flex; align-items: center; gap: 8px; }
.product-field-caption > label { color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer; }
.product-field-help { color: var(--muted); font-size: 11px; line-height: 1.65; font-weight: 400; }
.product-field-help small { color: inherit; font-size: inherit; line-height: inherit; font-weight: inherit; }
.product-choice-copy { flex: 1; }
.product-choice-copy > label { display: inline-block; color: var(--text); font-size: 12px; line-height: 1.65; font-weight: 550; cursor: pointer; }
.product-radio .product-choice-copy > label { display: inline-flex; align-items: center; gap: 8px; }
.product-radio .product-choice-copy > label > .icon { margin: 0; color: var(--muted); }
.product-radio .product-choice-copy .product-field-help { padding-left: 24px; }
.product-pagination { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 20px 0 26px; }
.product-pagination > a, .product-pagination > span { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 10px; border-radius: 7px; color: var(--muted); font-size: 12px; }
.product-pagination > a:hover { color: var(--cyan); background: var(--surface-2); }
.product-pagination > span[aria-disabled] { color: var(--subtle); }
.product-pagination .product-page-number { padding: 8px 0; font: 10px var(--mono); }
@media (max-width: 1000px) {
  .product-proposal-file-top { grid-template-columns: minmax(0, 1fr) 165px auto; }
}
@media (max-width: 768px) {
  .product-proposal-file-top { grid-template-columns: minmax(0, 1fr) auto; }
  .product-proposal-file-top > .product-field:first-child { grid-column: 1 / -1; }
  .product-pull-anchor-nav { gap: 8px 16px; }
}
@media (max-width: 540px) {
  .product-proposal-file { padding: 14px; }
  .product-pull-compose > summary { padding-right: 18px; padding-left: 18px; }
  .product-pull-list-head { align-items: start; flex-direction: column; gap: 13px; }
  .product-pull-anchor-nav { gap: 4px 16px; }
  .product-pull-anchor-nav a { font-size: 11px; }
  .product-diff-text { max-height: 480px; padding: 16px; font-size: 10px; }
  .product-pull-review .product-badge { margin-left: 0; }
  .product-pull-diff .product-panel-head { flex-wrap: wrap; gap: 8px; }
}
.product-report-details { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.project-title { overflow-wrap: anywhere; }
.product-report-link { display: flex; justify-content: flex-end; padding: 14px 0 0; color: var(--muted); font-size: 12px; }
.product-report-link a { text-decoration: underline; text-underline-offset: 3px; }
.product-actor-role { display: inline-flex; align-items: center; max-width: 100%; padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--surface-2); font: 10px/1.6 var(--mono); overflow-wrap: anywhere; }
.product-author { flex-wrap: wrap; }
.product-actor-description { max-width: 65ch; margin: 10px 0; color: var(--muted); font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.product-actor-fields { display: grid; gap: 14px; }
.product-actor-fields legend { color: var(--text); }
.product-identity .product-actor-role { margin-top: 6px; }
.product-member-card .product-actor-role { margin: 7px 0 0; }
.product-notification .product-actor-role { margin-top: 6px; }
.product-conversation-search { display: grid; gap: 17px; padding: 22px; }
.product-conversation-search.compact { margin: 0 0 20px; padding: 17px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.product-conversation-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 14px; }
.product-conversation-search .product-field > label { color: var(--text); font-size: 12px; font-weight: 600; }
.product-conversation-results { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.product-conversation-hit { padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.product-conversation-hit > header, .product-conversation-hit > footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; font-size: 11px; overflow-wrap: anywhere; }
.product-conversation-hit h3 { margin: 13px 0 10px; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.product-conversation-hit h3 a:hover, .product-conversation-hit footer a:hover { color: var(--cyan); }
.product-conversation-excerpt { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.product-conversation-excerpt mark { color: var(--text); background: rgba(158, 238, 186, .14); border-radius: 2px; padding: 1px 2px; }
@media (max-width: 900px) { .product-conversation-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .product-conversation-filters { grid-template-columns: minmax(0, 1fr); } .product-conversation-search, .product-conversation-hit { padding: 16px; } .product-conversation-search .product-form-actions { flex-wrap: wrap; } }
