/* A reserved rail keeps the closed tab clear of the desktop workspace. */
.compass-content { padding-right: 32px; box-sizing: border-box; }
#reportIssueButton {
    position: fixed; right: 0; top: 45%; width: 32px; margin: 0;
    padding: 12px 6px; writing-mode: vertical-rl; border-radius: 6px 0 0 6px;
    background: #34495e; color: white; cursor: pointer; z-index: 1100;
}
.issue-report-mobile-trigger { display: inline-block; color: white; padding: 6px; font-size: 12px; }
#reportIssueModal[hidden], #reportIssueModal [hidden] { display: none !important; }
#reportIssueModal { position: fixed; inset: 0; z-index: 2000; background: rgba(20,30,40,.35); }
.issue-report-panel {
    position: absolute; right: 0; top: 0; height: 100%; width: min(460px, 100%);
    overflow-y: auto; overscroll-behavior: contain; padding: 24px; box-sizing: border-box;
    background: #fff; color: #243447; box-shadow: -6px 0 24px rgba(0,0,0,.18);
    animation: issue-report-open .18s ease-out;
}
.issue-report-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#reportCancel { font-size: 28px; padding: 8px; cursor: pointer; }
#issueReportForm label { display: block; font-weight: 600; margin-top: 16px; }
#issueReportForm input, #issueReportForm textarea, #issueReportForm select { width: 100%; box-sizing: border-box; }
#issueReportForm textarea { min-height: 70px; resize: vertical; }
#issueReportForm button { cursor: pointer; }
#reportScreenshotPreview { display: block; max-width: 100%; max-height: 200px; margin: 12px 0; }
.issue-report-hint { font-size: 13px; color: #526473; }
#reportStatus { white-space: pre-wrap; }
#reportStatus[data-error="true"] { color: #a12622; }
#reportIssueModal :focus-visible, .issue-report-trigger:focus-visible { outline: 3px solid #167ba0; outline-offset: 3px; }
@keyframes issue-report-open { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .issue-report-panel { animation: none; } }
@media (max-width: 767px) {
    .issue-report-mobile-trigger { display: inline-block; color: white; padding: 6px; font-size: 12px; }
    .issue-report-panel { padding: 16px; }
}

#reportSubmit.is-sending::before {
    content: ''; display: inline-block; width: 16px; height: 16px;
    border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
    margin-right: 8px; vertical-align: middle; animation: issue-report-spin .8s linear infinite;
}
@keyframes issue-report-spin { to { transform: rotate(360deg); } }
#reportConfirmation[hidden] { display: none !important; }
#reportConfirmation {
    position: fixed; top: 24px; right: 40px; z-index: 2100; max-width: min(420px, calc(100vw - 64px));
    padding: 20px; background: #fff; color: #243447; border-left: 5px solid #588017;
    border-radius: 6px; box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
#reportConfirmation p { margin: 0 0 12px; }
#reportConfirmation a { color: #36580b; text-decoration: underline; }
#reportConfirmation button { margin-left: 16px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { #reportSubmit.is-sending::before { animation: none; } }

/* One shared support rail keeps both actions visible and together. */
.support-action-rail{position:fixed;right:0;bottom:24px;z-index:10010;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.support-action-rail #reportIssueButton{position:relative;top:auto;right:auto;width:auto;min-height:126px;margin:0;padding:12px 8px;writing-mode:vertical-rl;border:0;border-radius:8px 0 0 8px;background:#34495e;color:#fff;font-weight:700;line-height:1;box-shadow:0 6px 18px rgba(0,0,0,.22)}
.support-action-rail #reportIssueButton:hover,.support-action-rail #reportIssueButton:focus{background:#263746}
@media(max-width:800px){.support-action-rail{bottom:calc(16px + env(safe-area-inset-bottom));gap:6px}.support-action-rail.support-action-rail-on-support{bottom:calc(96px + env(safe-area-inset-bottom))}.support-action-rail #reportIssueButton{min-height:112px;padding:10px 7px;font-size:13px}}
