.bug-report-trigger svg,.bug-profile-menu svg,.bug-reports svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#bug-report-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px}
#bug-report-button[hidden],#bug-profile-menu[hidden]{display:none!important}
.bug-profile-menu{display:none;position:relative}
.bug-profile-menu summary{display:flex;align-items:center;justify-content:center;width:40px;height:40px;list-style:none;cursor:pointer}
.bug-profile-menu summary::-webkit-details-marker{display:none}
.bug-profile-menu nav{position:absolute;right:0;top:calc(100% + 8px);z-index:80;display:grid;min-width:240px;max-width:calc(100vw - 32px);padding:8px;background:var(--brand-paper-strong);border:1px solid var(--brand-border);border-radius:14px;box-shadow:var(--brand-shadow)}
.bug-profile-menu nav a,.bug-profile-menu nav button{font:inherit;font-size:14px;text-align:left;color:var(--brand-ink);text-decoration:none;background:none;border:0;padding:10px 12px;border-radius:8px;min-height:40px;cursor:pointer}
.bug-profile-menu nav :is(a,button):hover{background:var(--brand-green-soft)}
.product-header:has(.bug-profile-menu[open]){z-index:90}
.bug-reports{color:var(--brand-ink);font-family:var(--font-body);font-size:14px;line-height:1.5;min-width:0}
.bug-reports [hidden]{display:none!important}
.bug-report-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;margin:auto;padding:24px;border:1px solid var(--brand-border);border-radius:var(--radius-panel);background:var(--brand-paper-strong);overflow:hidden}
.bug-report-dialog[open]{display:flex;flex-direction:column;gap:12px}
.bug-report-dialog::backdrop{background:rgba(19,24,28,.45)}
.bug-reports .br-dialog-head,.bug-reports .br-queue-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.bug-reports :is(h2,h3){font-family:var(--font-heading);overflow-wrap:anywhere;color:var(--brand-ink)}
.bug-reports h2{margin:0;font-size:20px}.bug-reports h3{margin:16px 0 10px;font-size:17px}
.bug-reports .br-dialog-body{overflow:auto;min-height:0;overscroll-behavior:contain;padding:0 2px 2px}
.bug-reports .br-tabs,.bug-reports .br-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.bug-reports .br-tabs{padding-bottom:10px;border-bottom:1px solid var(--brand-border)}
.bug-reports .v2-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-height:40px;padding:8px 12px;border:1px solid var(--brand-border);border-radius:10px;font:inherit;font-size:13px;line-height:1.3;text-decoration:none;color:var(--brand-ink);background:var(--surface-card);cursor:pointer}
.bug-reports .v2-button:hover,.bug-reports .v2-button[aria-pressed=true]{background:var(--brand-green-soft);border-color:var(--brand-green)}
.bug-reports .v2-button:disabled{opacity:.55;cursor:wait}
.bug-reports :is(button,a,select,input,textarea,summary):focus-visible{outline:2px solid var(--brand-green-dark);outline-offset:2px}
.bug-reports form{display:grid;gap:12px}.bug-reports label{display:grid;gap:6px;font-weight:600}
.bug-reports label small,.bug-reports form>small{font-size:12px;color:var(--brand-muted);font-weight:400}
.bug-reports :is(textarea,select,input[type=search]){width:100%;min-width:0;box-sizing:border-box;min-height:40px;padding:9px 12px;border:1px solid var(--brand-border);border-radius:10px;color:var(--brand-ink);font:inherit;font-weight:400;background:var(--surface-card)}
.bug-reports textarea{resize:vertical;max-height:220px}.bug-reports textarea[readonly]{background:var(--brand-paper)}
.bug-reports input[type=file]{min-width:0;max-width:100%;font:inherit;font-weight:400;font-size:12px}
.bug-reports input[type=file]::file-selector-button{padding:9px 12px;border-radius:10px;border:1px solid var(--brand-border);background:var(--surface-card);font:inherit;cursor:pointer;margin-right:8px}
.bug-reports .br-context{font-size:12px;color:var(--brand-muted);overflow-wrap:anywhere;margin:8px 0}
.bug-reports .br-context a{color:inherit}.bug-reports .br-notice{padding:10px 12px;border:1px solid var(--brand-border);border-radius:10px;background:var(--surface-muted);font-size:13px;overflow-wrap:anywhere}
.br-queue{padding:20px;border:1px solid var(--brand-border);border-radius:var(--radius-panel);background:var(--surface-card)}
.bug-report-dialog .br-queue{padding:0;border:0;background:none}
.bug-reports .br-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:16px}
.bug-reports .br-filters label{flex:0 1 160px}.bug-reports .br-filters .br-search{flex:1 1 220px}
.bug-reports .br-report-row{display:grid;grid-template-columns:minmax(100px,140px) minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--brand-border)}
.bug-reports .br-report-row>div:first-child{display:flex;gap:6px;flex-wrap:wrap}
.bug-reports .br-report-copy{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}
.bug-reports .br-report-copy strong{font-size:14px}.bug-reports .br-report-copy small{font-size:12px;color:var(--brand-muted)}
.bug-reports .br-status,.bug-reports .br-priority{display:inline-flex;align-items:center;padding:3px 8px;border-radius:8px;font-size:12px;font-weight:600;line-height:1.35;background:var(--brand-green-soft);color:var(--brand-green-dark)}
.bug-reports .br-status[data-status=needs_info],.bug-reports .br-priority[data-priority=high]{color:#80580f;background:#fff3d4}
.bug-reports .br-priority[data-priority=critical]{color:#a13932;background:#fff0ee}
.bug-reports .br-status[data-status=duplicate]{color:var(--brand-muted);background:var(--brand-paper)}
.bug-reports .br-detail-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--brand-muted)}
.bug-reports .br-report-description{margin:16px 0;display:grid;gap:6px}
.bug-reports .br-report-description dt{font-weight:600}.bug-reports .br-report-description dd{margin:0 0 8px;white-space:pre-wrap;overflow-wrap:anywhere}
.bug-reports .br-triage,.bug-reports .br-history{border-top:1px solid var(--brand-border);padding-top:12px;margin-top:16px}
.bug-reports summary{cursor:pointer;font-weight:600}.bug-reports .br-triage form{margin-top:12px}
.bug-reports .br-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.bug-reports .br-conversation ol{list-style:none;padding:0;margin:0 0 16px}.bug-reports .br-conversation li{border-top:1px solid var(--brand-border);padding:12px 0}
.bug-reports .br-conversation li>div{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.bug-reports .br-conversation time,.bug-reports .br-history{font-size:12px;color:var(--brand-muted)}
.bug-reports .br-conversation p{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.bug-reports .br-screenshot{display:block;max-width:100%;height:auto;border:1px solid var(--brand-border);border-radius:10px;margin-top:12px}
.bug-reports .br-empty{color:var(--brand-muted);font-size:13px;margin:16px 0}
.bug-reports .br-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.bug-reports .br-agent{padding:14px;margin:16px 0;border:1px solid var(--brand-border);border-radius:12px;background:var(--surface-muted);overflow-wrap:anywhere;min-width:0}
.bug-reports .br-agent>header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.bug-reports .br-agent>header>strong{display:flex;align-items:center;gap:6px}
.bug-reports .br-agent h4{margin:14px 0 6px;font-size:13px}
.bug-reports .br-agent details{margin-top:10px;padding-top:8px;border-top:1px solid var(--brand-border)}
.bug-reports .br-agent summary{min-height:36px;display:flex;align-items:center}
.bug-reports .br-agent summary::before{content:'▸';margin-right:8px;color:var(--brand-muted)}
.bug-reports .br-agent details[open]>summary::before{content:'▾'}
.bug-reports .br-agent summary::-webkit-details-marker{display:none}
.bug-reports .br-agent li{font-size:13px;margin:6px 0}
.bug-reports .br-agent ul,.bug-reports .br-agent ol{padding-left:20px}
.bug-reports .br-agent dl{font-size:13px}.bug-reports .br-agent dd{margin:4px 0 10px;white-space:pre-wrap}
.bug-reports .br-agent pre{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}
.bug-reports .br-agent code{display:block;font-size:11px;overflow-wrap:anywhere}
.bug-reports .br-source-state{font-size:11px;padding:4px 8px;border-radius:8px;color:#80580f;background:#fff3d4}
.bug-reports .br-source-state[data-source-state=recovered]{color:var(--brand-green-dark);background:var(--brand-green-soft)}
@media(max-width:680px){
 body.bug-reports-enabled:is(.v2-workspace-reading,:has(.v2-cabinet-profile-page),:has([data-settings-root]),:has(.v2-settings-projects-main)) .product-header:has(.bug-profile-menu[open]){position:relative;z-index:90}
 .bug-reports-enabled #bug-report-button,.bug-reports-enabled #logout-button{display:none}
 .bug-reports-enabled #bug-profile-menu{display:block}
 .bug-report-dialog{padding:16px}.bug-reports h2{font-size:18px}
 .bug-reports .br-tabs .v2-button{flex:1;font-size:12px}
 .bug-reports .br-queue-head{align-items:flex-start;flex-wrap:wrap}
 .bug-reports .br-queue-head>.br-actions{width:100%}.bug-reports .br-fields{grid-template-columns:minmax(0,1fr)}
 .br-queue{padding:16px}
 .bug-reports .br-report-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}
 .bug-reports .br-report-row>div:first-child{grid-column:1/-1}
 .bug-reports .br-filters label{flex:1 1 120px}
}
