.bank-country { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.bank-country .context-select { width: auto; max-width: 65%; }
.fill-choice { margin: 0 0 22px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-inset); }
.fill-choice-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.fill-choice strong { font-size: 14px; font-weight: 600; }
.fill-choice p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 9px 0 0; }
.fill-choice .switch { flex-shrink: 0; }
.fill-choice .switch:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; }
.deal-timeline { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 16px; padding: 0; list-style: none; }
.deal-timeline li { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 20px; padding: 7px 10px; }
.deal-timeline .current { color: var(--ink); background: var(--surface-inset); border-color: var(--control-border); font-weight: 600; }
.deal-timeline .passed { color: var(--muted); }
.part-note { margin: 14px 0; padding: 14px 16px; background: var(--surface-inset); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; line-height: 1.7; }
.part-note p { margin: 4px 0 0; }
.related-orders { margin: 16px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.related-orders h3 { margin-bottom: 10px; font-size: 14px; }
.related-order { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 9px 0; color: var(--ink); text-align: left; border: 0; background: transparent; cursor: pointer; font-size: 13px; }
.related-order>span { min-width: 0; overflow-wrap: anywhere; }
.related-order+.related-order { border-top: 1px solid var(--line); }
.payment-panel { margin: 22px 0; }
.payment-panel>h3 { font-size: 16px; margin-bottom: 6px; }
.payment-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 14px 0; }
.payment-card { min-width: 0; padding: 15px; background: var(--surface-inset); border: 1px solid var(--line); border-radius: 12px; }
.payment-card>span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.payment-card>strong { display: block; font-size: 14px; line-height: 1.6; }
.payment-card dl { margin: 12px 0; font-size: 12px; line-height: 1.7; }
.payment-card dt { color: var(--muted); margin-top: 8px; }
.payment-card dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.payment-card .text-button { margin-top: 10px; }
.payment-form label { display: block; margin: 16px 0 8px; }
.payment-form .input-field { width: 100%; }
.payment-form .button-row { margin-top: 22px; }
.problem-panel { border: 1px solid var(--line); border-left: 3px solid #e29f62; border-radius: 12px; padding: 16px; margin: 18px 0; background: var(--surface-inset); font-size: 13px; line-height: 1.7; }
.problem-panel p { margin-top: 6px; }
.problem-panel blockquote { margin: 10px 0; padding: 10px 13px; border-left: 2px solid var(--line); overflow-wrap: anywhere; white-space: pre-wrap; }
.problem-form textarea { resize: vertical; width: 100%; min-height: 120px; }
.settlement-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.problem-flag { color: #a06632; font-size: 12px; }
[data-theme="dark"] .problem-flag { color: #edba8a; }
.partial-quote-note { font-size: 13px; line-height: 1.7; color: var(--muted); margin-top: 12px; }
@media (max-width:700px) {
  .amount-input.long-amount { font-size: 25px; letter-spacing: -.5px; }
  .bank-country { gap: 8px; margin-top: 3px; }
  .bank-country .context-select { min-height: 44px; max-width: 62%; }
  .fill-choice { padding: 17px 14px; }
  .fill-choice strong { font-size: 16px; }
  .fill-choice p, .part-note, .problem-panel, .partial-quote-note { font-size: 14px; }
  .deal-timeline li { font-size: 13px; padding: 8px 10px; }
  .payment-grid { grid-template-columns: minmax(0,1fr); }
  .payment-panel>h3 { font-size: 19px; }
  .payment-card { padding: 17px; }
  .payment-card>span, .payment-card dl { font-size: 13px; }
  .payment-card>strong { font-size: 16px; }
  .payment-card .text-button { font-size: 15px; }
  .related-orders h3 { font-size: 16px; }
  .related-order { flex-wrap: wrap; font-size: 14px; padding: 12px 0; }
  .settlement-actions { display: grid; grid-template-columns: minmax(0,1fr); }
  .settlement-actions>button { width: 100%; }
}
