.feedback-launcher{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;flex:0 0 44px;margin:0;padding:10px;border:1px solid #bfd3c8;border-radius:50%;background:#f3f8f5;color:#216249;box-shadow:none}
.feedback-launcher svg{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.feedback-launcher:hover{background:#e6f1eb;border-color:#8db19e}
.feedback-launcher:focus-visible{outline:3px solid #087960;outline-offset:3px}
.feedback-slot{display:flex;align-items:center;justify-content:center;width:44px;height:44px}
body.has-feedback-floating{padding-bottom:80px;scroll-padding-bottom:88px}
body.has-feedback-floating>.feedback-slot{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:40}
body:has(dialog[open]) .feedback-launcher{visibility:hidden}
#app>.sidebar>nav{min-height:0}
#app>.sidebar>.profile{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:4px;order:5;flex:0 0 auto;min-width:0}
#app .sidebar .profile>.avatar{display:none}
#app .sidebar .profile>.profile-name{display:block;flex:1 1 auto;min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.4}
#app .sidebar .profile>.profile-icon,#app .sidebar .profile>#feedback-open{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;max-width:44px;padding:10px;margin:0;border:0;border-radius:8px;background:transparent;box-shadow:none;color:#527568;cursor:pointer}
#app .sidebar .profile>:is(.profile-icon,#feedback-open):hover{background:#e7f2eb;color:#087960}
#app .sidebar .profile>:is(.profile-icon,#feedback-open) svg{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(min-width:1000px){
 #app>.sidebar>nav{flex:1 1 auto}
 #app>.sidebar>.profile{align-self:stretch;margin:0 -8px;padding:16px 0 0;border-top:0}
 #app.family-nav-compact>.sidebar>.profile{display:flex;flex-direction:column;margin:0;padding-top:12px}
 #app.family-nav-compact .sidebar .profile>.profile-name{display:none}
}
@media(max-width:999px){
 #app>.sidebar{grid-template-columns:minmax(0,1fr)}
 #app>.sidebar>.brand{grid-column:1;grid-row:1}
 #app>.sidebar>nav{grid-column:1;grid-row:2}
 #app>.sidebar>.profile{display:flex;grid-column:1;grid-row:4;margin:4px 0 0;padding:4px 0 0;border-top:0}
 #app .sidebar #goodcash-admin-shortcuts{display:flex;grid-column:1;grid-row:3;flex-wrap:wrap;gap:4px;margin:0;padding:0}
 #app>.sidebar>#mobile-profile,#app>.sidebar>#mobile-logout{display:none}
}
#app .sidebar a.profile-name{min-height:44px;align-content:center;border-radius:6px;color:inherit;text-decoration:none;cursor:pointer}
#app .sidebar a.profile-name:hover{color:#087960}
#app .sidebar a.profile-name:focus-visible{outline:2px solid #087960;outline-offset:2px}
#app .sidebar #goodcash-admin-shortcuts>.feedback-admin-menu-item{width:44px;min-width:44px;height:44px;min-height:44px;flex:0 0 44px;padding:11px}
.feedback-dialog{width:min(900px,calc(100vw - 24px));max-height:90vh;overflow:auto;border:0;border-radius:18px;padding:24px;color:var(--text,#20372e);background:var(--surface,#fff)}
.feedback-dialog::backdrop{background:#13291e88}.feedback-dialog form{display:grid;gap:16px}.feedback-dialog textarea{width:100%;min-height:150px}.feedback-dialog label{display:grid;gap:6px}.feedback-dialog input[type=checkbox]{width:20px;height:20px;margin:0;display:inline-block}.feedback-dialog [hidden]{display:none!important}
.feedback-heading,.feedback-actions{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}.feedback-heading h2{margin:0}.feedback-preview{display:flex;flex-wrap:wrap;gap:12px}.feedback-preview figure{margin:0;max-width:180px}.feedback-preview img{max-width:180px;max-height:110px;object-fit:contain}.feedback-preview figcaption{overflow-wrap:anywhere;font-size:12px}.feedback-canvas{display:block;max-width:100%;max-height:65vh;object-fit:contain;cursor:crosshair;touch-action:none}.feedback-detail{white-space:pre-wrap;overflow-wrap:anywhere}.feedback-admin-table{width:100%;border-collapse:collapse}.feedback-admin-table td,.feedback-admin-table th{padding:12px 8px;border-bottom:1px solid #d8e3dc;vertical-align:top}.feedback-admin-table tr:has(input:checked){background:#eaf6ee}.feedback-dialog details summary{cursor:pointer}.feedback-history article{padding:16px 0;border-bottom:1px solid #d8e3dc}.feedback-tech{font-size:12px;white-space:pre-wrap}.feedback-admin-link{display:block;text-align:center;margin:16px}.feedback-dialog .error-text{min-height:20px}.feedback-dialog a{overflow-wrap:anywhere}
@media(max-width:600px){.feedback-dialog{padding:16px}.feedback-actions>*{max-width:100%}.feedback-admin-table td,.feedback-admin-table th{padding:8px 4px}}
#feedback-admin>.feedback-heading{margin-bottom:24px}.feedback-admin-filter{margin-bottom:18px}.feedback-dialog label{gap:10px}.feedback-dialog select,.feedback-dialog textarea{margin:0}.feedback-bulk-panel,.feedback-export-panel{margin-top:24px;padding:22px;background:#f5f9f6;border:1px solid #d8e3dc;border-radius:12px}.feedback-bulk-panel h3,.feedback-export-panel h3{margin:0 0 16px}.feedback-bulk-panel>label{margin-top:20px}.feedback-bulk-panel>.feedback-actions{margin-top:20px}.feedback-bulk-panel>p,.feedback-export-panel>p{margin:12px 0;line-height:1.65}.feedback-bulk-panel .error-text:empty{display:none}.feedback-export-panel{background:transparent}#feedback-admin>.feedback-actions{margin-top:16px}.feedback-admin-table tbody:empty:after{content:'Нет обращений с выбранным состоянием.';display:block;padding:20px;color:#687e70}
@media(max-width:600px){.feedback-bulk-panel,.feedback-export-panel{padding:16px}.feedback-bulk-panel .feedback-actions .button{width:100%;white-space:normal;text-align:center}}
.feedback-admin-menu-item{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;padding:11px;border:0;border-radius:8px;background:transparent;color:#6c7d75;cursor:pointer}.feedback-admin-menu-item svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.feedback-admin-menu-item:hover{background:#eaf5ee;color:var(--green,#166b50)}.feedback-admin-menu-item:focus-visible{outline:3px solid #267f65;outline-offset:2px}#feedback-email-admin>.feedback-heading,#feedback-archive-admin>.feedback-heading{margin-bottom:24px}#feedback-email-admin>.feedback-actions,#feedback-archive-admin>.feedback-actions{margin-top:20px}

/* The feedback form is used outside #app as well, so every control has its own shared widget styling. */
.feedback-dialog{box-sizing:border-box;font-family:"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.5}
.feedback-dialog *{box-sizing:border-box}
.feedback-dialog .muted{color:#607369;font-size:13px;line-height:1.5;margin:0}
.feedback-dialog label{font-size:14px;font-weight:600;line-height:1.4;gap:8px;min-width:0;margin:0}
.feedback-dialog input:where(:not([type=checkbox]):not([type=hidden])),.feedback-dialog textarea,.feedback-dialog select:where(:not(.category-picker-native)){display:block;box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:0;padding:10px 14px;border:1px solid #b8cdbf;border-radius:8px;background:#fff;color:#203d30;font:400 16px/1.4 "Segoe UI",Arial,sans-serif}
.feedback-dialog textarea{min-height:120px;resize:vertical}
.feedback-dialog input[type=file]{padding:6px;font-size:13px}
.feedback-dialog input[type=file]::file-selector-button{min-height:34px;margin-right:10px;padding:6px 10px;border:1px solid #b8cdbf;border-radius:6px;background:#f1f6f3;color:#254d3b;font:inherit;cursor:pointer}
.feedback-dialog .category-picker{margin:0}
.feedback-dialog .category-picker-option{min-height:44px;display:flex;align-items:center;font-size:14px;line-height:1.4}
.feedback-dialog .category-picker-option>span{min-width:0}
.feedback-dialog :is(input,textarea,select,button):focus-visible{outline:2px solid #087960;outline-offset:2px}
.feedback-dialog .button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid #b6cebf;border-radius:8px;font:600 14px/1.4 "Segoe UI",Arial,sans-serif;white-space:normal;text-align:center;text-decoration:none;cursor:pointer}
.feedback-dialog .button.primary{background:#08735a;border-color:#08735a;color:#fff}
.feedback-dialog .button.secondary{background:#fff;border-color:#b6cebf;color:#28563f}
.feedback-dialog .button:disabled{opacity:.6;cursor:wait}
.feedback-dialog .text-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 4px;border:0;border-radius:6px;background:transparent;color:#17644d;font:400 13px/1.4 "Segoe UI",Arial,sans-serif;cursor:pointer}
.feedback-dialog .icon-button{display:inline-grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:0;border-radius:8px;background:transparent;color:#466b57;font:28px/1 sans-serif;cursor:pointer}
.feedback-dialog .feedback-actions{align-items:stretch;gap:12px}
#feedback-dialog{width:min(760px,calc(100vw - 24px));height:min(820px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:visible;border:1px solid #cedcd2;border-radius:16px}
#feedback-form{display:flex;flex-direction:column;gap:0;height:100%;min-height:0;margin:0;overflow:hidden;border-radius:inherit}
#feedback-form>.feedback-heading{flex:0 0 auto;gap:12px;flex-wrap:nowrap;padding:16px 24px;border-bottom:1px solid #dbe5de;background:#fff}
#feedback-title{margin:0;font-size:23px;font-weight:650;line-height:1.3}
.feedback-form-body{display:grid;align-content:start;gap:16px;flex:1 1 auto;min-height:0;overflow:auto;padding:20px 24px;overscroll-behavior:contain;scroll-padding:16px}
.feedback-contact-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.feedback-page-field{grid-column:1/-1}
#feedback-email-known:empty,#feedback-preview:empty{display:none}
#feedback-email-known{align-self:end;padding-bottom:10px;overflow-wrap:anywhere}
.feedback-form-footer{display:grid;gap:16px;flex:0 0 auto;padding:16px 24px;border-top:1px solid #dbe5de;background:#fff}
.feedback-form-footer>.error-text{margin:0;padding:12px 16px;max-height:24dvh;overflow:auto;border:1px solid #e4c7bf;border-radius:8px;background:#fff5f2;color:#913e2f;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.feedback-form-footer>.notice{margin:0;padding:12px 16px;border-radius:8px;background:#edf7ef;color:#28563f}
.feedback-submit-actions{justify-content:flex-end}
.feedback-submit-actions>.button{min-height:48px;min-width:112px}
.feedback-secondary-actions{gap:8px 16px;justify-content:space-between}
.feedback-secondary-actions .text-button{min-height:44px;padding-block:8px}
.feedback-file-actions{justify-content:flex-start}
.feedback-admin-settings{margin-top:24px;padding-top:24px;border-top:1px solid var(--border,#d8e3dc)}
.feedback-admin-settings h3{margin:0 0 16px}
.feedback-settings-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px}
.feedback-settings-actions>.button{display:inline-flex;align-items:center;justify-content:flex-start;gap:10px;text-align:left;min-height:44px;padding:12px}
.feedback-settings-actions svg{flex:0 0 20px;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:600px){
 #feedback-form>.feedback-heading{padding:12px 16px}
 .feedback-form-body{padding:16px}
 .feedback-form-footer{padding:12px 16px}
 .feedback-contact-fields{grid-template-columns:minmax(0,1fr)}
 .feedback-submit-actions>.button{flex:1 1 0;min-width:0}
 #feedback-title{font-size:21px}
}

/* Long reply addresses must not force the dialog grid beyond its viewport. */
.feedback-dialog{overflow-wrap:anywhere}.feedback-dialog form{min-width:0}.feedback-dialog form>*{min-width:0}
