.feedback-launcher{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom));z-index:950;display:inline-flex;align-items:center;gap:9px;min-height:46px;padding:11px 15px;border:1px solid var(--line,#dacbd1);border-radius:24px;background:var(--surface,#fff);color:var(--text,#2f2027);box-shadow:0 3px 16px #0002;font-family:inherit;font-weight:600;font-size:14px;line-height:1.3;cursor:pointer}
.feedback-launcher svg{display:block;width:21px;height:21px;flex:0 0 auto}
.feedback-launcher:hover{border-color:var(--accent-text,#842e4c)}
.feedback-launcher:focus-visible,.feedback-dialog button:focus-visible{outline:2px solid var(--accent-text,#842e4c);outline-offset:3px}
.feedback-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(560px,calc(100% - 32px));max-width:none;max-height:calc(var(--feedback-viewport,100dvh) - 32px);padding:0;border:1px solid var(--line,#dacbd1);border-radius:18px;background:var(--surface,#fff);color:var(--text,#2f2027);box-shadow:0 20px 70px #0005;overflow:auto;overscroll-behavior:contain;font:inherit}
.feedback-dialog::backdrop{background:#150d16a6}
.feedback-dialog [hidden]{display:none!important}
.feedback-content{padding:24px}
.feedback-header{display:flex;align-items:flex-start;gap:16px;margin-bottom:12px}
.feedback-header h2{font-size:25px;line-height:1.25;margin:0;flex:1}
.feedback-close{display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:inherit;width:40px;height:40px;flex:0 0 40px;font-family:inherit;font-size:28px;line-height:1;cursor:pointer;margin:-8px -8px 0 0}
.feedback-lead{font-size:15px;line-height:1.6;color:var(--muted,#74636e);margin:0 0 18px}
.feedback-form label{display:block;font-size:15px;font-weight:600;margin:14px 0 7px}
.feedback-form input,.feedback-form textarea,.feedback-form select{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;border:1px solid var(--line,#dacbd1);border-radius:9px;background:var(--bg,#f7f2f4);color:var(--text,#2f2027);font:inherit;font-size:16px;line-height:1.5;padding:10px 12px;min-height:44px}
.feedback-form select{appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23806d79' stroke-width='1.5'/%3E%3C/svg%3E");background-size:16px;background-position:right 12px center;background-repeat:no-repeat}
.feedback-form textarea{min-height:132px;resize:vertical}
.feedback-form input:focus,.feedback-form textarea:focus,.feedback-form select:focus{outline:2px solid var(--accent-text,#842e4c);outline-offset:1px}
.feedback-form [aria-invalid=true]{border-color:#b32e41}
.feedback-counter,.feedback-note,.feedback-field-error{font-size:13px;line-height:1.5;margin:6px 0 0;color:var(--muted,#74636e)}
.feedback-counter{text-align:right}
.feedback-field-error,.feedback-status[data-error]{color:var(--accent-text,#842e4c);font-size:14px}
.feedback-note{margin:15px 0}
.feedback-submit,.feedback-again{display:block;box-sizing:border-box;width:100%;min-height:46px;border:0;border-radius:10px;background:var(--accent,#842e4c);color:var(--on-accent,#fff);font-family:inherit;font-weight:600;font-size:16px;line-height:1.5;padding:11px 16px;cursor:pointer}
.feedback-submit:disabled{opacity:.6;cursor:wait}
.feedback-status{font-size:15px;line-height:1.6;margin:12px 0 0}
.feedback-trap{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.feedback-footer-link{display:inline-block;margin-top:10px;border:0;background:none;color:var(--muted,#74636e);font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:4px 0}
.has-study-nav .feedback-launcher,.has-auth-form .feedback-launcher{display:none}
.app-footer.has-feedback-link,.workspace-footer.has-feedback-link{flex-wrap:wrap;gap:10px 16px}
.app-footer .feedback-footer-link,.workspace-footer .feedback-footer-link{margin-top:0}
.feedback-menu-link{display:block;width:100%;box-sizing:border-box;min-height:44px;padding:11px 12px;text-align:left;border:1px solid var(--line,#dacbd1);border-radius:10px;background:var(--surface,#fff);color:var(--text,#2f2027);font:inherit;cursor:pointer}
.feedback-success{padding:10px 0}
.feedback-success h3{font-size:22px;line-height:1.3;margin:0 0 10px}
.feedback-success p{font-size:15px;line-height:1.65;margin:0 0 20px}
html.feedback-open{overflow:hidden}
@media(max-width:600px){.feedback-launcher{right:12px;bottom:calc(12px + env(safe-area-inset-bottom));min-height:44px;padding:10px 13px}.feedback-dialog{width:calc(100% - 20px);max-height:calc(var(--feedback-viewport,100dvh) - 20px);border-radius:14px}.feedback-content{padding:19px 16px}.feedback-header h2{font-size:23px}.feedback-form textarea{min-height:112px}}
