/* Swap uses the existing Yield Hatch palette and original token/protocol assets. */
.app-header-title p{white-space:normal;line-height:1.25}
.swap-view{display:flex;flex-direction:column;gap:16px}
.swap-view>*{flex-shrink:0;min-width:0}
.swap-balances{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.swap-balance-card{border-radius:16px;padding:12px 14px;min-height:94px;display:flex;gap:18px;align-items:center}
.swap-balance-card.lime{background:linear-gradient(110deg,color-mix(in srgb,var(--lime) 65%,var(--surface)),color-mix(in srgb,var(--lime) 45%,var(--surface)))}
.swap-balance-card.lilac{background:linear-gradient(110deg,var(--lilac),color-mix(in srgb,var(--lilac) 75%,var(--surface)))}
.swap-balance-card.blue{background:linear-gradient(110deg,var(--blue),color-mix(in srgb,var(--blue) 75%,var(--surface)))}
.swap-balance-card.peach{background:linear-gradient(110deg,var(--peach),color-mix(in srgb,var(--peach) 70%,var(--surface)))}
.swap-balance-icon{width:66px;height:66px;display:grid;place-items:center;flex:none;border-radius:22px;background:color-mix(in srgb,var(--surface) 72%,transparent)}
.swap-balance-icon .token{width:48px;height:48px}
.swap-balance-card>div{display:grid;gap:4px}
.swap-balance-card p{font-size:14px}
.swap-balance-card strong{font-size:24px;font-weight:750;line-height:1;letter-spacing:-.02em}
.swap-balance-card>div>span{color:var(--muted);font-size:13px}
.swap-main-grid{display:grid;grid-template-columns:minmax(0,1.045fr) minmax(0,1fr);gap:16px;align-items:stretch}
.swap-view .panel-card{background:var(--surface);border:1px solid color-mix(in srgb,var(--line) 65%,transparent);box-shadow:none;border-radius:17px;min-width:0}
.swap-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.swap-section-heading h2{font-size:24px;letter-spacing:-.035em;font-weight:750;line-height:1.15;display:flex;align-items:center;gap:12px}
.swap-section-heading h2>.icon{width:16px;height:16px;color:var(--muted)}
.swap-view .text-link,.swap-routes-dialog .text-link,.swap-history-dialog .text-link{color:var(--purple);font-size:13px;font-weight:400;white-space:nowrap;gap:10px}
.swap-view .text-link:disabled{opacity:.5;cursor:default}
.swap-view .text-link .icon{width:17px;height:17px}
.swap-form-card{padding:12px 18px 10px;display:flex;flex-direction:column}
.swap-settings{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:var(--pill);padding:6px 12px;font-size:13px;white-space:nowrap;background:var(--surface)}
.swap-settings .icon{width:18px;height:18px}
.swap-amount-stack{position:relative;display:grid;gap:13px}
.swap-amount-box{padding:13px 15px;border-radius:16px;min-height:114px;border:1px solid color-mix(in srgb,var(--lilac) 68%,var(--surface))}
.swap-pay{background:linear-gradient(115deg,color-mix(in srgb,var(--lilac) 46%,var(--surface)),color-mix(in srgb,var(--lilac) 36%,var(--surface)))}
.swap-receive{background:linear-gradient(115deg,color-mix(in srgb,var(--blue) 65%,var(--surface)),color-mix(in srgb,var(--blue) 44%,var(--surface)));border-color:color-mix(in srgb,var(--blue) 50%,var(--surface))}
.swap-amount-caption{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px;font-size:16px;font-weight:650}
.swap-amount-caption>span:last-child{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:400;white-space:nowrap}
.swap-amount-caption button,.swap-amount-caption b{border-radius:var(--pill);padding:4px 11px;background:var(--blue);color:var(--purple);font-size:12px;line-height:1;font-weight:500}
.swap-amount-caption b{background:color-mix(in srgb,var(--surface) 85%,transparent);color:var(--muted);border:1px solid color-mix(in srgb,var(--line) 65%,transparent)}
.swap-amount-content{display:flex;justify-content:space-between;align-items:center;gap:16px}
.swap-token-select{display:flex;align-items:center;gap:12px;padding:7px 14px 7px 10px;border:1px solid color-mix(in srgb,var(--line) 85%,transparent);background:color-mix(in srgb,var(--surface) 88%,transparent);border-radius:10px;min-height:50px;font-size:18px;font-weight:650;white-space:nowrap}
.swap-token-select .token{width:36px;height:36px}
.swap-token-select>.icon{width:18px;height:18px;margin-left:2px}
.swap-amount-number{display:grid;gap:2px;min-width:0;flex:1;text-align:right}
.swap-amount-number input,.swap-amount-number output{display:block;padding:0;width:100%;min-width:0;font-size:29px;line-height:1.15;font-weight:750;letter-spacing:-.03em;text-align:right;background:transparent;border:0;color:var(--ink);box-shadow:none;border-radius:0;font-family:inherit}
.swap-amount-number input:focus{outline:0;box-shadow:0 2px 0 color-mix(in srgb,var(--purple) 55%,transparent)}
.swap-amount-number input::placeholder{color:var(--muted)}
.swap-amount-number>span{font-size:12px;color:var(--muted);white-space:nowrap}
.swap-direction{position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:54px;height:54px;border:1px solid var(--line);background:var(--surface);border-radius:50%;box-shadow:0 2px 8px color-mix(in srgb,var(--ink) 6%,transparent)}
.swap-direction .icon{transform:rotate(90deg);width:24px;height:24px}
.swap-facts{display:grid;margin-top:8px;margin-bottom:10px}
.swap-facts>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 10px;border-bottom:1px solid color-mix(in srgb,var(--line) 65%,transparent);font-size:13px;min-height:31px}
.swap-facts>div:last-child{border-bottom:0}
.swap-facts dt,.swap-facts dd{display:flex;align-items:center;gap:12px;min-width:0}
.swap-facts dd{font-weight:400;text-align:right;justify-content:flex-end}
.swap-facts dt{white-space:nowrap}
.swap-facts .info-icon{width:16px;height:16px;color:var(--muted)}
.swap-rate-toggle{color:var(--purple);display:grid;place-items:center}
.swap-rate-toggle .icon{width:20px;height:20px}
.swap-review-button{width:100%;min-height:44px;border-radius:var(--pill);background:linear-gradient(var(--charcoal),var(--ink));font-size:16px;font-weight:500;margin-top:auto;gap:16px}
.swap-form-note{text-align:center;color:var(--muted);font-size:12px;margin-top:8px;line-height:1.4}
.swap-right-stack{display:flex;flex-direction:column;gap:14px;min-width:0}
.swap-routes-card{padding:14px 10px 10px;flex:1;display:flex;flex-direction:column}
.swap-routes-card .swap-section-heading{padding-inline:8px;margin-bottom:10px}
.swap-routes-card .swap-section-heading h2{font-size:22px}
.swap-route-flow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;margin-bottom:10px;border-radius:16px;border:1px solid color-mix(in srgb,var(--line) 80%,transparent);background:color-mix(in srgb,var(--paper) 50%,var(--surface));min-height:78px}
.swap-route-flow>div{display:flex;align-items:center;gap:12px}
.swap-route-flow .token{width:42px;height:42px;flex:none}
.swap-route-flow p{display:grid;gap:4px;font-size:15px}
.swap-route-flow p span{font-size:12px;color:var(--muted);white-space:nowrap}
.swap-route-flow>.icon{width:21px;height:21px;color:var(--muted);flex:none}
.swap-venue-pill{display:flex;align-items:center;justify-content:center;gap:9px;border-radius:var(--pill);padding:11px 13px;border:1px solid var(--line);font-size:14px;font-weight:650;white-space:nowrap;background:color-mix(in srgb,var(--lilac) 30%,var(--surface))}
.swap-venue-pill>.token{width:24px;height:24px}
.swap-dex-logo{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:none}
.swap-dex-logo img{width:100%;height:100%;object-fit:contain;border-radius:50%}
.swap-route-table-wrap,.swap-history-table-wrap{overflow:auto;min-width:0;scrollbar-width:thin}
.swap-route-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:auto}
.swap-route-table th{height:28px;font-size:12px;color:var(--muted);font-weight:400;padding:4px 10px;white-space:nowrap;border:0;text-align:left}
.swap-route-table td{font-size:13px;padding:6px 10px;height:49px;white-space:nowrap;border-bottom:1px solid color-mix(in srgb,var(--line) 65%,transparent);text-align:left}
.swap-route-table td strong{font-weight:500;font-size:13px}
.swap-route-table td small{display:block;font-size:10px;color:var(--muted);margin-top:2px}
.swap-route-table tr:last-child td{border-bottom:0}
.swap-route-table tr.selected-route td{background:color-mix(in srgb,var(--lime) 30%,var(--surface));border-bottom-color:color-mix(in srgb,var(--lime) 30%,var(--surface))}
.swap-route-table tr.selected-route td:first-child{border-radius:11px 0 0 11px}
.swap-route-table tr.selected-route td:last-child{border-radius:0 11px 11px 0}
.swap-route-choice{display:flex;align-items:center;gap:12px;text-align:left;width:100%;min-height:36px}
.swap-route-choice>span:not(.swap-dex-logo){display:grid;gap:1px}
.swap-best-tag{background:var(--lime);color:var(--green);padding:5px 10px;border-radius:var(--pill);font-size:11px;line-height:1;font-weight:500;margin-left:auto}
.swap-route-footnote{margin-top:auto;padding:12px 8px 0;display:flex;align-items:flex-start;gap:8px;font-size:11px;color:var(--muted)}
.swap-route-footnote p{line-height:1.5;flex:1}
.swap-route-footnote small{display:block;font-size:10px;line-height:1.5;margin-top:2px}
.swap-route-footnote .icon-button{width:28px;height:28px;min-height:28px;padding:5px}
.swap-live-dot{width:6px;height:6px;border-radius:50%;background:var(--green);margin-top:5px;flex:none}
.swap-safety{padding:18px 20px;border-radius:17px;display:flex;align-items:center;gap:18px;background:linear-gradient(110deg,var(--peach),color-mix(in srgb,var(--peach) 65%,var(--surface)))}
.swap-safety>.icon{width:40px;height:40px;padding:7px;border-radius:50%;background:color-mix(in srgb,var(--surface) 80%,transparent);color:var(--amber);stroke-width:2;flex:none}
.swap-safety h3{font-size:17px;letter-spacing:-.025em;font-weight:700}
.swap-safety p{font-size:13px;color:var(--muted);margin-top:4px;line-height:1.4}
.swap-history-card{padding:12px 18px 8px}
.swap-history-card .swap-section-heading{margin-bottom:6px}
.swap-history-card .swap-section-heading h2{font-size:20px}
.swap-history-table{width:100%;border-collapse:collapse}
.swap-history-table th{font-size:12px;font-weight:400;color:var(--muted);text-align:left;padding:6px 14px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);height:27px;white-space:nowrap}
.swap-history-table td{font-size:13px;text-align:left;padding:6px 14px;height:37px;border-bottom:1px solid color-mix(in srgb,var(--line) 60%,transparent);white-space:nowrap}
.swap-history-table tbody tr:last-child td{border-bottom:0}
.swap-history-pair{display:flex;align-items:center;gap:12px}
.swap-history-pair .token{width:28px;height:28px}
.swap-history-pair>.icon{width:15px;height:15px;color:var(--muted)}
.swap-status{display:inline-flex;align-items:center;gap:10px;font-size:13px}
.swap-status i{display:inline-block;width:9px;height:9px;border-radius:50%;background:currentColor}
.swap-history-empty{display:flex;align-items:center;gap:15px;min-height:69px;color:var(--muted);font-size:13px;white-space:normal}
.swap-history-empty>.icon{width:26px;height:26px;color:var(--purple)}
.swap-history-empty small{display:block;font-size:11px;margin-top:6px}
.swap-history-note{font-size:10px;color:var(--muted);padding:8px 14px 0}
.swap-route-empty{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;padding:24px;font-size:13px;color:var(--muted)}
.swap-route-empty>.icon{width:32px;height:32px;color:var(--purple)}
.swap-route-empty>span{font-size:11px}
.swap-inline-error{padding:8px 10px;font-size:12px;line-height:1.5;color:var(--red);border-radius:8px;background:color-mix(in srgb,var(--peach) 50%,var(--surface));margin-bottom:8px}
.quote-refreshing{opacity:.5}
.swap-routes-dialog{width:min(850px,calc(100% - 32px))}
.swap-history-dialog{width:min(1100px,calc(100% - 32px))}
.swap-token-list{gap:8px}
.swap-token-option{display:flex;align-items:center;gap:14px;padding:12px;border:1px solid var(--line);border-radius:14px;min-height:64px;text-align:left}
.swap-token-option>.token{width:38px;height:38px}
.swap-token-option>span:not(.token){display:grid;gap:4px;flex:1}
.swap-token-option strong{font-size:16px}
.swap-token-option small{font-size:12px;color:var(--muted)}
.swap-token-option>b{font-size:14px;font-weight:500}
.swap-slippage-options{display:flex;gap:8px;flex-wrap:wrap}
.swap-slippage-options .button.active{background:var(--lilac);border-color:var(--purple)}
.swap-review-pair{display:flex;align-items:center;justify-content:center;gap:15px;padding:20px;background:color-mix(in srgb,var(--lilac) 45%,var(--surface));border-radius:16px}
.swap-review-pair>.token{width:36px;height:36px}
.swap-review-pair>.icon{color:var(--muted)}
@media(min-width:1101px) and (max-width:1400px){
  .swap-balance-card{gap:12px;padding:12px}
  .swap-balance-icon{width:54px;height:60px}
  .swap-balance-card strong{font-size:22px}
  .swap-form-card{padding-inline:14px}
  .swap-route-flow{gap:8px;padding:12px 10px}
  .swap-route-flow .token{width:32px;height:32px}
  .swap-route-flow>div{gap:8px}
  .swap-venue-pill{font-size:12px;padding:10px}
  .swap-route-table td,.swap-route-table th{padding-inline:7px;font-size:11px}
  .swap-route-table td strong{font-size:12px}
  .swap-route-choice{gap:7px}
  .swap-best-tag{padding:5px 6px;font-size:10px}
  .swap-amount-caption>span:last-child{gap:6px;font-size:11px}
}
@media(max-width:1100px){
  .swap-balances{gap:12px}
  .swap-balance-card{gap:10px;padding:12px}
  .swap-balance-icon{width:44px;height:50px;border-radius:16px}
  .swap-balance-icon .token{width:34px;height:34px}
  .swap-balance-card strong{font-size:20px}
  .swap-balance-card p,.swap-balance-card>div>span{font-size:11px}
  .swap-main-grid{grid-template-columns:1fr}
  .swap-form-card{padding:16px 18px}
  .swap-right-stack{gap:12px}
  .swap-routes-card{min-height:380px}
}
@media(max-width:640px){
  .app-header-title p{font-size:13px;max-width:calc(100vw - 86px)}
  .swap-view{gap:12px}
  .swap-balances{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .swap-balance-card{min-height:88px;gap:10px;padding:12px}
  .swap-balance-card strong{font-size:21px}
  .swap-balance-card>div>span{font-size:10px}
  .swap-balance-icon{width:40px;height:48px}
  .swap-main-grid{gap:12px}
  .swap-form-card{padding:14px 12px}
  .swap-section-heading h2{font-size:22px}
  .swap-settings{font-size:11px;padding:6px 9px;gap:6px}
  .swap-settings .icon{width:16px;height:16px}
  .swap-amount-box{padding:12px 10px}
  .swap-amount-caption{font-size:14px;gap:6px}
  .swap-amount-caption>span:last-child{font-size:10px;gap:6px}
  .swap-amount-caption button,.swap-amount-caption b{font-size:10px;padding:4px 7px}
  .swap-amount-content{gap:10px}
  .swap-token-select{font-size:15px;gap:7px;padding:7px;min-height:46px}
  .swap-token-select>.token{width:29px;height:29px}
  .swap-token-select>.icon{width:15px;height:15px}
  .swap-amount-number input,.swap-amount-number output{font-size:25px}
  .swap-amount-number>span{font-size:10px;white-space:normal}
  .swap-direction{width:45px;height:45px}
  .swap-facts>div{padding:8px 2px;font-size:11px;gap:8px}
  .swap-facts dd,.swap-facts dt{gap:6px}
  .swap-facts .info-icon{width:14px;height:14px}
  .swap-form-note{font-size:10px}
  .swap-routes-card .swap-section-heading{padding-inline:2px;gap:8px}
  .swap-routes-card .swap-section-heading h2{font-size:20px;gap:8px}
  .swap-view .text-link{font-size:11px;gap:6px}
  .swap-route-flow{padding:10px 8px;gap:6px;min-height:73px}
  .swap-route-flow>div{gap:5px}
  .swap-route-flow .token{width:27px;height:27px}
  .swap-route-flow p{font-size:12px;gap:4px}
  .swap-route-flow p span{font-size:9px;max-width:66px;white-space:normal;word-break:break-word}
  .swap-route-flow>.icon{width:15px;height:15px}
  .swap-venue-pill{padding:8px;gap:5px;font-size:10px;white-space:normal;max-width:95px}
  .swap-venue-pill .swap-dex-logo{width:20px;height:20px}
  .swap-route-table{min-width:470px}
  .swap-route-footnote{padding-inline:2px;font-size:10px}
  .swap-route-footnote small{font-size:9px}
  .swap-safety{padding:14px 12px;gap:12px}
  .swap-safety h3{font-size:15px}
  .swap-safety p{font-size:11px}
  .swap-history-card{padding:12px 10px}
  .swap-history-table{min-width:700px}
  .swap-history-empty{max-width:300px}
  .swap-history-note{font-size:9px;padding-inline:4px}
}
