#withdrawal { scroll-margin-top: 110px; padding: 16px; border: 2px solid #873875; border-radius: 16px; background: #fff8fc; margin-block: 16px; }
#withdrawal-dialog { box-sizing: border-box; width: min(680px, calc(100% - 24px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; overflow: auto; border: 2px solid #873875; border-radius: 18px; background: #fff; color: #342437; }
#withdrawal-dialog::backdrop { background: rgba(31, 15, 32, .55); }
#withdrawal-dialog [hidden] { display: none !important; }
.withdrawal-dialog-heading, .withdrawal-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#withdrawal-fields { display: grid; gap: 14px; border: 0; padding: 0; margin: 16px 0; min-width: 0; }
#withdrawal-fields legend { margin-bottom: 16px; line-height: 1.5; }
#withdrawal-dialog label { display: grid; gap: 6px; min-width: 0; }
#withdrawal-dialog input, #withdrawal-dialog textarea, #withdrawal-dialog select { box-sizing: border-box; width: 100%; min-width: 0; padding: 12px; font: inherit; border: 1px solid #9d829b; border-radius: 8px; background: #fff; color: inherit; }
#withdrawal-dialog button, #withdrawal button { padding: 12px 16px; min-height: 44px; max-width: 100%; font: inherit; border-radius: 10px; white-space: normal; cursor: pointer; }
#withdrawal-dialog .withdrawal-primary, #withdrawal .withdrawal-primary { background: #873875; color: #fff; border: 2px solid #873875; font-weight: 700; }
#withdrawal-dialog button:disabled { opacity: .65; cursor: wait; }
.withdrawal-item { display: grid; grid-template-columns: minmax(0, 1fr) 100px auto; gap: 10px; align-items: end; margin-block: 14px; }
#withdrawal-review, #withdrawal-receipt, #withdrawal-status { overflow-wrap: anywhere; }
#withdrawal-review dd { margin: 4px 0 12px; white-space: pre-wrap; }
#withdrawal-review dt { font-weight: 700; }
.withdrawal-statement { padding: 12px; background: #fff1f8; border-left: 3px solid #873875; }
#withdrawal-dialog :focus-visible, #withdrawal :focus-visible { outline: 3px solid #381137; outline-offset: 3px; }
@media(max-width: 520px) {
 #withdrawal-dialog { padding: 16px; }
 .withdrawal-item { grid-template-columns: minmax(0, 1fr); }
 .withdrawal-actions { align-items: stretch; flex-direction: column; }
}
