/* A single composer. No marketing shell or runtime style dependencies. */
:where(.feedback-page,.feedback-embedded){color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#242426;background:#fff;font-synthesis:none;--accent:#c71f39;--muted:#727278;--line:#e6e6e9}
:where(.feedback-page,.feedback-embedded),:where(.feedback-page,.feedback-embedded) *{box-sizing:border-box}
body.feedback-page{margin:0;min-width:320px;-webkit-font-smoothing:antialiased}
:where(.feedback-page,.feedback-embedded) a{color:inherit;text-decoration:none}:where(.feedback-page,.feedback-embedded) :is(button,input,textarea){font:inherit;color:inherit}:where(.feedback-page,.feedback-embedded) button{cursor:pointer}:where(.feedback-page,.feedback-embedded) :is(button,input,textarea){-webkit-tap-highlight-color:transparent}:where(.feedback-page,.feedback-embedded) button:disabled{cursor:default;opacity:.4}:where(.feedback-page,.feedback-embedded) [hidden]{display:none!important}
:where(.feedback-page,.feedback-embedded) button{border:0;background:none}:where(.feedback-page,.feedback-embedded) :is(h1,h2,p,dl,dd){margin:0}:where(.feedback-page,.feedback-embedded) svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
:where(.feedback-page,.feedback-embedded) ::selection{background:#f7dbe1}:where(.feedback-page,.feedback-embedded) :is(a,summary):hover{color:var(--accent)}:where(.feedback-page,.feedback-embedded) :focus-visible{outline:2px solid var(--accent);outline-offset:4px}:where(.feedback-page,.feedback-embedded) :is(input,textarea){caret-color:var(--accent)}
.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.skip-link:focus{position:absolute;top:12px;left:12px;padding:12px;background:#fff;z-index:2}
.feedback-header{max-width:1040px;min-height:84px;margin:0 auto;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:24px}.feedback-brand{display:inline-flex;align-items:center;gap:8px;font-size:19px;font-weight:650;min-height:44px}.feedback-brand img{width:30px;height:30px;object-fit:contain}.feedback-home{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:13px;color:var(--muted)}
.feedback-wrap{width:calc(100% - 48px);max-width:680px;margin:0 auto;padding:68px 0 80px}.feedback-wrap h1{font-size:28px;line-height:1.4;font-weight:600;letter-spacing:-.025em;margin-bottom:28px}
:where(.feedback-page,.feedback-embedded) fieldset{border:0;padding:0;margin:0;min-width:0}.feedback-editor{border:1px solid var(--line);border-radius:12px;overflow:hidden;transition:border-color .15s}.feedback-editor:focus-within{border-color:#a2a2aa}.feedback-editor:has(#feedback-message:focus-visible){outline:2px solid var(--accent);outline-offset:3px}.feedback-editor.is-dragging{border-color:var(--accent);background:#fff8f9}
#feedback-message{display:block;width:100%;min-height:240px;padding:24px 24px 12px;border:0;outline:none;background:transparent;resize:vertical;font-size:16px;line-height:1.8}:where(.feedback-page,.feedback-embedded) :is(input,textarea)::placeholder{color:#89898e;opacity:1}#feedback-message[aria-invalid=true]{background:#fff8f9}
.feedback-attachments{display:flex;align-items:center;gap:14px;padding:0 16px 12px}.feedback-file-button{position:relative;display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 8px;color:var(--muted);font-size:13px;cursor:pointer;border-radius:6px;overflow:hidden}.feedback-file-button:hover{color:var(--accent);background:#fafafa}.feedback-file-button:focus-within{outline:2px solid var(--accent);outline-offset:-2px}.feedback-file-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}#feedback-image-count{font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted)}
.feedback-email-row{display:flex;align-items:center;gap:16px;padding:14px 16px 14px 24px;border-top:1px solid var(--line)}#feedback-email{flex:1;min-width:0;width:100%;min-height:44px;padding:0;border:0;outline:none;font-size:14px;background:transparent}#feedback-email:focus-visible{box-shadow:inset 0 -1px var(--accent)}#feedback-email[aria-invalid=true]{color:var(--accent)}
.feedback-primary{flex-shrink:0;min-width:88px;min-height:44px;padding:10px 22px;border-radius:7px;background:var(--accent);color:white;font-size:14px;font-weight:500}.feedback-primary:not(:disabled):hover{background:#aa1830}.feedback-secondary{min-height:44px;padding:10px 18px;border:1px solid var(--line);border-radius:7px;font-size:14px}
.feedback-images{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;list-style:none;padding:4px 24px 12px;margin:0}.feedback-images:empty{display:none}.feedback-images li{position:relative;min-width:0}.feedback-images img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;background:#f6f6f7;border-radius:6px}.feedback-remove{display:grid;place-items:center;position:absolute;top:0;right:0;width:44px;height:44px;padding:8px;color:#4a4a50}.feedback-remove :where(.feedback-page,.feedback-embedded) svg{width:24px;height:24px;padding:4px;background:#fff;border-radius:50%}.feedback-remove:hover{color:var(--accent)}
.feedback-meta{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-top:12px;color:var(--muted);font-size:12px}.feedback-meta nav{display:flex;gap:20px;flex-shrink:0}.feedback-meta nav a{display:inline-flex;min-height:44px;align-items:center}.feedback-environment{flex:1;min-width:0}.feedback-environment summary{display:flex;align-items:center;gap:4px;width:fit-content;min-height:44px;list-style:none;cursor:pointer}.feedback-environment summary::-webkit-details-marker{display:none}.feedback-environment summary :where(.feedback-page,.feedback-embedded) svg{width:14px;height:14px}.feedback-environment[open] summary svg{transform:rotate(180deg)}.feedback-environment-body{padding:6px 0 12px}.feedback-environment dl{display:grid;gap:10px;line-height:1.6}.feedback-environment dl>div{display:grid;grid-template-columns:52px 1fr;gap:14px}.feedback-environment dd{color:#47474d;overflow-wrap:anywhere}.feedback-environment-inputs{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}.feedback-environment-inputs label{min-width:0}.feedback-environment-inputs input{display:block;width:100%;min-height:40px;margin-top:5px;padding:8px;border:1px solid var(--line);border-radius:5px;font-size:13px;background:#fff}
.feedback-status,.feedback-notice{font-size:13px;line-height:1.7;overflow-wrap:anywhere;color:var(--muted)}.feedback-status:empty{display:none}.feedback-notice{display:flex;align-items:center;gap:12px;margin-top:8px}.feedback-notice a,.feedback-notice button{color:var(--accent);min-height:44px;padding:0;display:inline-flex;align-items:center}.feedback-notice a{text-decoration:underline;text-underline-offset:3px}#feedback-status{color:var(--accent);margin-top:10px}#feedback-image-status{color:var(--accent);padding:0 24px 12px}
.feedback-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background-color .15s}
form[data-state=sending] .feedback-primary,form[data-state=preparing] .feedback-primary{opacity:1;cursor:progress}
form:is([data-state=sending],[data-state=preparing]) .feedback-primary::before{content:"";width:14px;height:14px;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;animation:feedback-spin .8s linear infinite;flex-shrink:0}
@keyframes feedback-spin{to{transform:rotate(360deg)}}
@media(max-width:600px){.feedback-header{min-height:72px;padding:0 24px}.feedback-wrap{width:calc(100% - 40px);padding-top:40px;padding-bottom:40px}.feedback-wrap h1{font-size:25px;margin-bottom:24px}#feedback-message{min-height:232px;padding:20px 18px 10px}.feedback-attachments{padding-inline:10px}.feedback-email-row{padding:12px 12px 12px 18px;gap:12px}.feedback-primary{min-width:76px;padding-inline:17px}.feedback-images{grid-template-columns:repeat(3,minmax(0,1fr));padding-inline:18px;gap:10px}#feedback-image-status{padding-inline:18px}.feedback-meta{gap:14px}.feedback-meta nav{gap:16px}.feedback-environment-inputs{grid-template-columns:1fr}.feedback-environment dl>div{grid-template-columns:42px 1fr;gap:8px}}
@media(prefers-reduced-motion:reduce){:where(.feedback-page,.feedback-embedded) *{transition:none!important;animation:none!important}}
/* The embedded editor stays quiet until the user submits. */
.feedback-embedded form[data-feedback-compact] #feedback-status{margin-top:10px;font-size:13px;line-height:1.7;color:#9b233b}
.feedback-embedded form[data-feedback-compact] :is(input,textarea)::placeholder{color:#72727b}


.feedback-primary{min-width:132px}
@media(prefers-reduced-motion:reduce){form:is([data-state=sending],[data-state=preparing]) .feedback-primary::before{animation:none}}

form[data-state=success] .feedback-primary{opacity:1;cursor:default}
form[data-state=success] .feedback-primary::before{content:"";display:block;width:14px;height:8px;border-left:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:translateY(-2px) rotate(-45deg);flex-shrink:0}
.feedback-history{margin-top:8px;color:var(--muted);font-size:12px;line-height:1.7}
.feedback-history summary{cursor:pointer;width:fit-content;min-height:44px;display:list-item;align-content:center}
.feedback-history ul{list-style:none;margin:0;padding:0 0 8px;display:grid;gap:8px}
.feedback-history li{display:flex;gap:16px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.feedback-history time{flex-shrink:0}

.feedback-attachments{flex-wrap:wrap;column-gap:12px;row-gap:4px}
.feedback-file-button,#feedback-image-count{flex-shrink:0}
.feedback-image-hint{font-size:12px;line-height:1.6;color:#696970}
.feedback-editor.is-dragging .feedback-image-hint{color:var(--accent);font-weight:500}
/* The homepage has a separate textarea border; highlight the actual drop area. */
:is(.feedback-page,.feedback-embedded) .feedback-editor.is-dragging #feedback-message{background:#fff8f9;border-color:var(--accent)}
@media(max-width:600px){.feedback-image-hint{flex-basis:100%;padding-inline:8px}}
#feedback-status[data-tone="success"],.feedback-embedded form[data-feedback-compact] #feedback-status[data-tone="success"]{color:#1f6b45}
