/* One-screen DeFi forms, using the same semantic palette as swaps/delegation. */
.opportunity-panel{width:min(540px,calc(100vw - 24px))}
.opportunity-body{gap:16px}
.opportunity-body .detail-identity{align-items:flex-start;gap:12px}
.opportunity-body .detail-identity>.token{width:40px;height:40px;flex:0 0 40px}
.opportunity-body .detail-identity h3{font-size:18px;line-height:1.35;overflow-wrap:anywhere}
.opportunity-body .detail-identity p{font-size:12px;margin-top:3px}
.opportunity-overview{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;background:var(--raised);border-radius:16px}
.opportunity-rate{display:flex;flex-direction:column;gap:2px;min-width:0}
.opportunity-rate strong{font-size:30px;line-height:1.1;letter-spacing:-.04em}
.opportunity-rate>span{font-size:12px;color:var(--muted)}
.opportunity-overview dl{display:flex;gap:22px;margin:0}
.opportunity-overview dt{font-size:11px;color:var(--muted);margin-bottom:4px}
.opportunity-overview dd{font-size:13px;font-weight:600;margin:0}
.opportunity-modes{display:grid;grid-template-columns:1fr 1fr;padding:4px;gap:4px;background:var(--raised);border-radius:14px}
.opportunity-mode{border:0;background:transparent;border-radius:10px;min-height:44px;color:var(--muted);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.opportunity-mode[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 4px #0000000a}
.opportunity-mode:disabled{opacity:.5;cursor:not-allowed}
.opportunity-panel .opportunity-form{gap:12px}
.opportunity-input{padding:16px;border-radius:18px;min-width:0}
.opportunity-input-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:12px;line-height:1.4}
.opportunity-input-heading label{font-weight:600}
.opportunity-input-heading>span{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}
.opportunity-max{border:0;border-radius:8px;background:var(--surface);color:var(--purple);font:inherit;font-size:11px;font-weight:600;padding:5px 8px;min-height:30px;cursor:pointer}
.opportunity-max:disabled{opacity:.5;cursor:not-allowed}
.opportunity-amount-row{display:flex;align-items:center;gap:12px;min-width:0;margin-top:12px}
.opportunity-amount-row input,.opportunity-percent-input input{min-width:0;width:100%;padding:4px 0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:30px;line-height:1.3;font-weight:600;letter-spacing:-.03em;border-radius:4px}
.opportunity-amount-row input::placeholder{color:var(--muted);opacity:1}
.opportunity-amount-row strong{font-size:15px;flex-shrink:0}
.opportunity-percent-input{display:flex;align-items:baseline;justify-content:flex-start;gap:4px;margin-top:8px;font-size:20px;font-weight:600}
.opportunity-percent-input input{width:92px;appearance:textfield}
.opportunity-percent-input input::-webkit-inner-spin-button{appearance:none}
.opportunity-percent-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:12px}
.opportunity-percent-presets button{min-height:36px;border:1px solid transparent;border-radius:9px;background:var(--surface);color:var(--ink);font:inherit;font-size:12px;cursor:pointer}
.opportunity-percent-presets button[aria-pressed="true"]{border-color:var(--purple);color:var(--purple);font-weight:600}
.opportunity-input>p,.opportunity-form-note{margin-top:10px;font-size:11px;line-height:1.5;color:var(--muted)}
.opportunity-form-note{margin-top:0}
.opportunity-form>.field-error:empty{display:none}
.opportunity-form>.button{min-height:46px;font-size:14px}
.opportunity-wallet-note{font-size:12px;color:var(--muted);text-align:center;line-height:1.5}
.opportunity-settings{border:0;border-bottom:1px solid var(--line);font-size:12px}
.opportunity-settings summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;min-height:44px;color:var(--muted)}
.opportunity-settings summary .icon{width:16px;height:16px}
.opportunity-settings[open] summary .icon,.opportunity-details[open]>summary .icon{transform:rotate(180deg)}
.opportunity-settings label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 10px}
.opportunity-settings select{padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit}
.opportunity-settings p{font-size:11px;color:var(--muted);line-height:1.5;padding-bottom:12px}
.opportunity-panel .opportunity-details{border:0;border-top:1px solid var(--line);border-radius:0}
.opportunity-panel .opportunity-details>summary{padding:12px 0;min-height:44px;align-items:center;font-size:13px;color:var(--muted);font-weight:500}
.opportunity-details>summary .icon{width:17px;height:17px;transition:transform .16s ease}
.opportunity-panel .opportunity-details>.disclosure-copy{padding:4px 0 0;border:0;gap:18px}
.opportunity-details section{display:grid;gap:8px;font-size:12px;line-height:1.6;color:var(--muted)}
.opportunity-details h4{font-size:12px;font-weight:600;color:var(--ink);margin:0}
.opportunity-key-values{margin:0}
.opportunity-key-values>div{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:7px 0;border-bottom:1px solid var(--line);font-size:12px}
.opportunity-key-values>div:last-child{border:0}
.opportunity-key-values dd{margin:0;max-width:65%;text-align:right;color:var(--ink);font-weight:500;overflow-wrap:anywhere}
.opportunity-key-values dd .text-link{display:block;font-size:11px}
.opportunity-links{display:flex;flex-wrap:wrap;gap:8px 18px}
.opportunity-links .text-link{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--purple);min-height:30px}
.opportunity-links .icon{width:13px;height:13px}
.opportunity-audit-record{background:var(--raised);border-radius:10px;padding:0 12px}
.opportunity-audit-record summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;list-style:none;cursor:pointer;font-size:12px}
.opportunity-audit-record summary .icon{width:15px;height:15px}
.opportunity-audit-record[open] summary .icon{transform:rotate(180deg)}
.opportunity-audit-record>p{font-size:11px;line-height:1.7;padding-bottom:12px;overflow-wrap:anywhere}
.opportunity-panel .opportunity-claim{display:flex;align-items:center;gap:6px;font-size:12px;min-height:36px;color:var(--purple);justify-self:start}
.opportunity-claim .icon{width:16px;height:16px}
.opportunity-external{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:12px;background:var(--lilac);padding:16px;border-radius:18px}
.opportunity-external .round-icon{width:36px;height:36px}
.opportunity-external strong{font-size:14px}
.opportunity-external p{font-size:12px;color:var(--muted);line-height:1.5;margin-top:4px}
.opportunity-external>.button{grid-column:1/-1;font-size:14px;min-height:44px}
.opportunity-loading,.opportunity-load-error{padding:20px 16px;background:var(--raised);border-radius:16px;font-size:13px;display:grid;gap:12px}
@media(max-width:400px){
  .opportunity-body{padding:16px;gap:12px}
  .opportunity-overview{padding:12px;gap:12px}
  .opportunity-rate strong{font-size:26px}
  .opportunity-overview dl{gap:12px}
  .opportunity-overview dd{font-size:12px}
  .opportunity-input{padding:12px}
  .opportunity-amount-row input,.opportunity-percent-input input{font-size:26px}
  .opportunity-body .detail-identity h3{font-size:16px}
}
@media(max-width:640px){.opportunity-max{min-width:44px;min-height:44px}.opportunity-percent-presets button,.opportunity-panel .opportunity-claim,.opportunity-links .text-link{min-height:44px}}
@media(prefers-reduced-motion:reduce){.opportunity-details>summary .icon{transition:none}}

/* One quiet, accessible disclosure treatment across action and information dialogs. */
.panel .modal-details{border:0;border-top:1px solid var(--line);border-radius:0;font-size:var(--sm);margin:0}
.panel .modal-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:12px 0;list-style:none;font-size:13px;font-weight:500;color:var(--muted)}
.panel .modal-details>summary>.icon{width:17px;height:17px;flex:none}
.panel .modal-details[open]>summary>.icon{transform:rotate(180deg)}
.panel .modal-details>.disclosure-copy{padding:4px 0 0;border:0;display:grid;gap:14px;font-size:12px;line-height:1.6;color:var(--muted)}
.panel .modal-details section{display:grid;gap:8px;min-width:0}
.panel .modal-details h4{margin:0;font-size:12px;font-weight:600;color:var(--ink)}
.panel .modal-details p{margin:0;line-height:1.6}
.panel .modal-details .key-values{margin:0}
.panel .modal-details .key-values>div{padding:8px 0;gap:12px;font-size:12px}
.panel .modal-details .text-link{min-height:30px;font-size:12px}
.modal-key-note{font-size:12px;line-height:1.5;color:var(--muted)}
@media(max-width:640px){.panel .modal-details .text-link{min-height:44px}}
