#bug-report-open{grid-column:1/-1;grid-row:4;justify-self:end;border:1px solid #796ef5;border-radius:999px;padding:.45rem .7rem;background:#211d48;color:#fff;font:inherit}
.menu-navigation{display:flex;align-items:center;justify-content:space-between;gap:10px}.menu-navigation-top{margin:-4px 0 12px}.menu-navigation-bottom{margin:14px 0 0}.menu-coach{font-size:.85rem;padding:7px 10px}.menu-navigation button:disabled{opacity:.55;cursor:not-allowed}.bug-report-trigger{position:relative;width:2.1rem;height:2.1rem;min-width:44px;min-height:44px;padding:0;display:grid;place-items:center;border:1px solid #796ef5;border-radius:50%;background:#211d48;color:#fff;font-size:1rem;cursor:pointer}.bug-report-trigger:hover::after,.bug-report-trigger:focus-visible::after{content:attr(title);position:absolute;right:0;bottom:calc(100% + .4rem);z-index:2;white-space:nowrap;padding:.35rem .55rem;border-radius:6px;background:#17142e;color:#fff;font-size:.75rem;box-shadow:0 2px 8px #0005}
#back-button,#home-button{background:#2563eb;border-color:#60a5fa;color:#fff}
.bug-dialog{width:min(640px,calc(100vw - 24px));max-height:min(90dvh,900px);overflow:auto;border:1px solid #77718f;border-radius:16px;padding:1rem;background:#17142e;color:#e2e8f0;font:inherit}
.bug-dialog::backdrop{background:#080615b8}
.bug-dialog-head,.bug-tabs{display:flex;align-items:center;justify-content:space-between;gap:.6rem}
.bug-dialog-head h2,#bug-ticket-detail h3,#bug-ticket-detail h4{color:#93c5fd}
.bug-dialog-head h2{font-size:1.2rem;margin:.2rem 0 .8rem}
.bug-dialog button,.bug-dialog select,.bug-dialog textarea,.bug-dialog input[type=file]{font:inherit}
.bug-dialog-head button,.bug-tabs button,.bug-dialog form button,.bug-ticket-button{border:1px solid #77718f;border-radius:8px;padding:.55rem .75rem;background:#29264a;color:inherit}
.bug-tabs{justify-content:flex-start;border-bottom:1px solid #77718f;margin-bottom:.9rem}
.bug-tabs button[aria-selected=true]{border-color:#93c5fd;background:#bfdbfe;color:#172554}
#bug-report-form{display:grid;gap:.5rem}
#bug-submit{background:#1d4ed8;border-color:#60a5fa;color:#fff;font-weight:600}
#bug-submit:disabled:not(.is-sending){background:#334155;border-color:#64748b;color:#e2e8f0;cursor:not-allowed}
#bug-submit.is-sending{opacity:1;cursor:wait}
.bug-send-status{animation:bug-status-blink .5s linear infinite}@keyframes bug-status-blink{50%{opacity:0}}
.bug-send-spinner{display:inline-block;width:.85em;height:.85em;margin-right:.4em;vertical-align:-.08em;border:2px solid #ffffff80;border-top-color:#fff;border-radius:50%;animation:bug-send-spin .7s linear infinite}
@keyframes bug-send-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.bug-send-spinner{animation:none;border-top-color:transparent}.bug-send-status{animation:none}}
#bug-report-form label,.bug-reply-form label{color:#dbeafe}
#bug-report-form label{font-weight:600;margin-top:.35rem}
#bug-report-form textarea,#bug-report-form select,#bug-report-form input[type=file]{box-sizing:border-box;width:100%;border:1px solid #77718f;border-radius:8px;padding:.55rem;background:#211d3b;color:inherit}
#bug-report-form textarea{min-height:5rem;resize:vertical}
#bug-report-form p,#bug-capture-wrap small{margin:.25rem 0;font-size:.9rem;line-height:1.4}
#bug-report-form > p:not([role]),#bug-capture-wrap small{color:#cbd5e1}
.bug-consent{display:flex;align-items:flex-start;gap:.5rem}
.bug-consent input{margin-top:.3rem}
#bug-capture-wrap{display:grid;gap:.4rem}
#bug-capture{width:auto;height:auto;max-width:100%;max-height:50dvh;object-fit:contain;background:#080808;touch-action:none}
#bug-ticket-list{display:grid;gap:.45rem}
.bug-ticket-button{text-align:left;width:100%;white-space:pre-line}
#bug-ticket-detail{border-top:1px solid #77718f;margin-top:.8rem;padding-top:.8rem;overflow-wrap:anywhere}
#bug-ticket-detail img{display:block;max-width:100%;max-height:50dvh;object-fit:contain}
.bug-reply-form{display:grid;gap:.5rem;margin-top:.8rem}.bug-reply-form textarea{box-sizing:border-box;width:100%;border:1px solid #77718f;border-radius:8px;padding:.55rem;background:#211d3b;color:inherit;font:inherit;resize:vertical}.bug-reply-form label{font-weight:600}
.bug-status-error{color:#ffb4ad}
@media(prefers-reduced-motion:no-preference){.bug-report-open{transition:filter .15s}.bug-report-open:hover{filter:brightness(1.2)}}
