/* The bug / idea reporter (#bug-report-dock in v1/index.html, js/ui/bug-report.js): a bar at the bottom of the sidebar that opens to a panel above it.
   The colour and shadow names the panel reads are set on the dock, the dark values under html[data-theme="dark"]. */
#bug-report-dock{--green:#047857;--red:#e11d48;--muted:#64748b;--text:#0f172a;--border:#e2e8f0;--surface:#ffffff;--surface2:#f8fafc;--accent:#059669;--on-accent:#ffffff;--shadow-panel:6px -10px 36px rgba(15,23,42,.38)}
html[data-theme="dark"] #bug-report-dock{--green:#34d399;--red:#fb7185;--muted:#94a3b8;--text:#f1f5f9;--border:#2b3445;--surface:#171c26;--surface2:#1f2633;--accent:#34d399;--on-accent:#0f172a;--shadow-panel:6px -10px 36px rgba(0,0,0,.62)}
.br-dock{position:fixed;left:0;bottom:0;z-index:100000;width:15rem;display:flex;flex-direction:column;border-radius:0;overflow:hidden;box-shadow:0 -2px 10px rgba(15,23,42,.12);transition:width .26s cubic-bezier(.16,1,.3,1),border-radius .26s ease,box-shadow .26s ease}
.br-dock.is-open{width:340px;max-width:100vw;border-radius:0 14px 0 0;box-shadow:var(--shadow-panel)}
.br-bar{height:38px;padding:0 14px;background:#059669;color:#ffffff;display:flex;align-items:center;justify-content:space-between;cursor:pointer;user-select:none;font-size:12.5px;font-weight:700;border-right:1px solid rgba(0,0,0,.1);transition:background .15s}
.br-bar:hover{background:#047857}
.br-bar-left{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.br-bar-chev{font-size:12px;opacity:.92;transition:transform .26s cubic-bezier(.16,1,.3,1)}
.br-dock.is-open .br-bar-chev{transform:rotate(180deg)}
.br-drawer-body{max-height:0;opacity:0;overflow:hidden;background:var(--surface);color:var(--text);border-right:1px solid var(--border);transition:max-height .28s cubic-bezier(.16,1,.3,1),opacity .2s ease}
.br-dock.is-open .br-drawer-body{max-height:450px;opacity:1}
.br-inner{padding:14px 16px 16px;display:flex;flex-direction:column;gap:10px;font-size:13px}
.br-type-btn{flex:1;padding:7px 6px;border:1px solid var(--border);border-radius:8px;font-weight:700;font-size:11.5px;white-space:nowrap;cursor:pointer;background:var(--surface2);color:var(--text)}
.br-field{width:100%;border:1px solid var(--border);border-radius:8px;background:var(--surface2);color:var(--text);font-size:13px;box-sizing:border-box}
.br-field-desc{padding:9px;min-height:90px;resize:vertical;font-family:inherit}
.br-ctx-box{font-size:11px;color:var(--muted);background:var(--surface2);border:1px solid var(--border);border-radius:8px;padding:7px 9px;line-height:1.45}
.br-ctx-alert{color:var(--red)}
.br-thumb-box{min-height:24px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted)}
.br-check{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted);cursor:pointer;user-select:none}
.br-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.br-status-line{font-size:12px;color:var(--muted);flex:1}
#bug-report-panel .nr-row-btns{display:flex;gap:8px}
#bug-report-panel .btn-apply-all{padding:8px 16px;background:var(--accent);color:var(--on-accent);border:none;border-radius:8px;font-weight:700;font-size:13px;cursor:pointer}
aside > div:last-child{padding-bottom:3.1rem}
