#suggestionLauncher, #suggestionDialog, #suggestionToast { font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif; letter-spacing: 0; }
#suggestionLauncher {
    position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 100010; display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
    border: 0; border-radius: 50%; background: #ff9500; color: #212121; cursor: pointer;
    box-shadow: 0 4px 16px rgb(135 79 0 / 18%); transition: background .15s;
}
#suggestionLauncher:hover { background: #f88a00; }
#suggestionLauncher svg { width: 26px; height: 26px; fill: #fff; stroke-width: 1.8; }
#suggestionTooltip {
    position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%);
    padding: 8px 12px; border-radius: 8px; background: #454034; color: #fff;
    font-size: 12px; line-height: 16px; font-weight: 700; white-space: nowrap;
    visibility: hidden; opacity: 0; pointer-events: none;
}
#suggestionLauncher:not(.sg-dialog-open):is(.sg-hover, :focus-visible) #suggestionTooltip { visibility: visible; opacity: 1; }
#suggestionDialog {
    position: fixed; left: 50%; top: calc(var(--sg-top, 0px) + var(--sg-height, 100dvh) / 2); bottom: auto;
    transform: translate(-50%, -50%); margin: 0; padding: 0; width: min(480px, calc(100% - 24px));
    height: min(600px, calc(var(--sg-height, 100dvh) - 24px)); max-width: none; max-height: calc(var(--sg-height, 100dvh) - 24px);
    border: 1px solid #eadcc2; border-radius: 8px; background: #fffcf2; color: #272725;
    box-shadow: 0 20px 70px rgb(30 22 0 / 24%); overflow: hidden; font-size: 14px; line-height: 1.6; text-align: left;
}
#suggestionDialog::backdrop { background: rgb(30 25 12 / 42%); backdrop-filter: none; }
#suggestionDialog *, #suggestionDialog *::before, #suggestionDialog *::after { box-sizing: border-box; letter-spacing: 0; }
#suggestionForm { height: 100%; display: flex; flex-direction: column; margin: 0; padding: 0; }
#suggestionDialog .sg-header {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 54px; margin: 0;
    padding: 10px 16px; border-bottom: 1px solid #f3e3c6;
}
#suggestionDialog h2 { font-size: 16px; line-height: 1.5; font-weight: 650; margin: 0; padding: 0; color: #272725; }
#suggestionDialog button { font: inherit; cursor: pointer; }
#suggestionDialog button:disabled { cursor: not-allowed; opacity: .5; }
#suggestionDialog .sg-icon {
    display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; padding: 0;
    border: 0; border-radius: 4px; background: transparent; color: #d87908;
}
#suggestionDialog .sg-close { margin-left: auto; color: #a7a7a2; }
#suggestionDialog svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.8; }
#suggestionDialog .sg-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; overscroll-behavior: contain; }
#suggestionDialog .sg-notice {
    display: flex; align-items: flex-start; gap: 7px; margin: 0 0 16px; padding: 10px;
    border: 1px solid #ffdb99; border-radius: 8px; background: #fff5df; color: #9b7844; font-size: 12px; line-height: 1.6;
}
#suggestionDialog .sg-notice svg { width: 15px; height: 15px; color: #4a3820; margin-top: 2px; }
#suggestionDialog .sg-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; }
#suggestionDialog .sg-label label, #suggestionDialog .sg-attachments-label { color: #72726d; font-weight: 600; }
#suggestionDialog output { color: #aaa9a2; font-size: 12px; }
#suggestionText {
    display: block; width: 100%; height: 126px; min-height: 126px; max-height: none; margin: 0; padding: 12px;
    resize: none; border: 1px solid #ffd08a; border-radius: 8px; background: #fffdf6;
    color: #30302b; font: inherit; line-height: 1.6; box-shadow: none;
}
#suggestionText::placeholder { color: #8a8983; }
#suggestionDialog .sg-attachments-label { margin: 22px 0 8px; font-size: 13px; }
#suggestionDialog .sg-images { display: flex; flex-wrap: wrap; gap: 10px; }
#suggestionDialog .sg-image, #suggestionAdd { position: relative; width: 72px; height: 72px; flex-shrink: 0; }
#suggestionAdd {
    display: grid; place-items: center; padding: 0; border: 1px dashed #ffc16c;
    border-radius: 8px; background: #fff8e9; color: #f79500;
}
#suggestionAdd svg { width: 25px; height: 25px; stroke-width: 1.4; }
#suggestionDialog .sg-image img { display: block; width: 100%; height: 100%; object-fit: cover; border: 1px solid #eadcc2; border-radius: 8px; }
#suggestionDialog .sg-image-remove {
    position: absolute; right: -4px; top: -4px; display: grid; place-items: center; width: 24px; height: 24px;
    padding: 0; border: 1px solid #e2d6bf; border-radius: 50%; background: #fffdf6; color: #665740;
}
#suggestionDialog .sg-image-remove svg { width: 14px; height: 14px; }
#suggestionDialog .sg-footer { flex-shrink: 0; padding: 14px 18px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid #f3e3c6; }
#suggestionSubmit { width: 100%; min-height: 46px; padding: 10px; border: 0; border-radius: 8px; background: #fb9106; color: #fff; font-weight: 650 !important; }
#suggestionSubmit:hover:not(:disabled) { background: #eb8200; }
#suggestionDialog .sg-error { margin: 12px 0 0; font-size: 12px; color: #bd3c2c; overflow-wrap: anywhere; }
#suggestionDialog .sg-error:empty { display: none; }
#suggestionDialog [hidden], #suggestionToast[hidden] { display: none !important; }
#suggestionLauncher:focus-visible, #suggestionDialog button:focus-visible, #suggestionText:focus-visible { outline: 2px solid #c46c00; outline-offset: 3px; }
#suggestionToast {
    position: fixed; z-index: 100020; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%);
    width: max-content; max-width: calc(100% - 32px); padding: 10px 18px; border: 1px solid #cce3d0;
    border-radius: 8px; background: #f2fcf3; color: #236b37; font-size: 14px; overflow-wrap: anywhere;
}
@media (max-width: 400px) {
    #suggestionDialog .sg-body { padding: 14px; }
    #suggestionDialog .sg-footer { padding-left: 14px; padding-right: 14px; }
    #suggestionLauncher { right: max(14px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
    #suggestionLauncher { transition: none; }
}
