.profile-menu:has(.project-support-trigger) { display: flex; align-items: center; gap: 10px; }
.project-support-trigger { display: none; }
body:has(#homeScreen:not(.hidden)) .project-support-trigger:not([hidden]) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 17px; border: 1px solid #e9c878; border-radius: 24px;
  background: #fff4ce; color: #183b36; box-shadow: 0 6px 22px #0003; font-size: 14px; font-weight: 750;
}
.project-support-trigger::before { content: "♡"; font-size: 21px; line-height: 1; }
body:has(#homeScreen:not(.hidden)) #homeScreen > .rk-guide-bar { justify-content: flex-start; padding-left: 14px; padding-right: 0; }
.project-support-dialog { padding: 0; border: 1px solid #bfd4cc; border-radius: 24px; color: #173d37; background: #fffef8;
  width: min(730px, calc(100vw - 28px)); max-width: none; max-height: calc(100dvh - 32px); overflow: auto; box-shadow: 0 24px 90px #001a19aa; }
.project-support-dialog::backdrop { background: #001b21a8; backdrop-filter: blur(5px); }
body:has(.project-support-dialog[open]) { overflow: hidden; }
.support-header { position: sticky; top: 0; z-index: 1; display: flex; gap: 16px; align-items: center; justify-content: space-between; background: #e8f0e9; padding: 12px 24px; border-bottom: 1px solid #d3e1d7; }
.support-header p { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .03em; }
.support-header button { flex: 0 0 44px; min-height: 44px; width: 44px; padding: 0; background: #fff; color: #173d37; border: 1px solid #b9cec4; border-radius: 50%; font-size: 28px; }
.support-content { padding: 24px 30px 30px; }
.support-content h2 { color: #153e36; margin: 0 0 20px; font-size: clamp(23px, 3.8vw, 34px); line-height: 1.12; max-width: 560px; }
.support-content p { font-size: 15px; line-height: 1.65; }
.support-content .support-legal { padding: 16px 18px; border-left: 4px solid #dea52e; background: #fff2cf; border-radius: 0 14px 14px 0; font-size: 13px; }
#supportForm { display: grid; gap: 9px; margin-top: 22px; }
#supportForm[hidden], #supportStatus[hidden], #supportRecheck[hidden], #supportError[hidden] { display: none; }
#supportForm label { font-size: 15px; font-weight: 800; }
.support-amount-row { display: flex; align-items: center; gap: 12px; max-width: 250px; }
.support-amount-row span { font-size: 22px; font-weight: 800; }
#supportAmount, #supportNote { border: 1px solid #9ebaae; background: #fff; color: #163c35; border-radius: 12px; padding: 13px 14px; font: inherit; width: 100%; box-sizing: border-box; }
#supportAmount { font-size: 24px; min-width: 0; }
#supportNote { resize: vertical; min-height: 84px; }
.support-content .support-hint { margin: 0; font-size: 12px; line-height: 1.5; color: #49685f; }
.support-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 5px 0 13px; }
.support-presets button, #supportRecheck { min-height: 44px; padding: 9px 16px; border-radius: 11px; border: 1px solid #a9c5b8; color: #163d35; background: #edf5ed; }
#supportPay { min-height: 52px; padding: 14px 18px; background: #155d48; color: #fff; font-weight: 800; border-radius: 13px; border: 0; margin-top: 8px; white-space: normal; }
.project-support-dialog button:disabled { opacity: .65; cursor: wait; }
.project-support-dialog :focus-visible, .project-support-trigger:focus-visible { outline: 3px solid #008aa3; outline-offset: 3px; }
#supportAmount[aria-invalid="true"] { border: 2px solid #a82232; }
#supportError, #supportStatus { padding: 13px 16px; background: #fff1d6; color: #764719; border-radius: 12px; }
#supportError { background: #fff0ef; color: #992e31; }
#supportStatus[data-state="paid"] { background: #e2f5e7; color: #175d3b; font-weight: 750; }
.support-content footer { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; }
.support-content footer a { color: #225f55; text-decoration: underline; font-size: 12px; }
@media(max-width: 480px) {
  body:has(#homeScreen:not(.hidden)) #homeScreen > .rk-guide-bar > .rk-help-trigger { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; font-size: 0; }
  body:has(#homeScreen:not(.hidden)) #homeScreen > .rk-guide-bar > .rk-help-trigger::before { content: "ⓘ"; font-size: 22px; }
  .profile-menu:has(.project-support-trigger) { top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); gap: 8px; }
  body:has(#homeScreen:not(.hidden)) .project-support-trigger:not([hidden]) { padding: 9px 12px; font-size: 12px; max-width: calc(100vw - 90px); }
  .support-content { padding: 20px 18px; } .support-header { padding: 10px 16px; }
  .project-support-dialog { border-radius: 19px; max-height: calc(100dvh - 24px); }
}
@media print { .project-support-trigger, .project-support-dialog { display: none !important; } }
