/* Fee comparison: a progressively enhanced view of the complete static tables. */
.fees-page [hidden] { display: none !important; }
.fees-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.fee-intro .title { margin-bottom: 10px; }
.fee-intro .lead { margin-bottom: 10px; font-size: 17px; line-height: 1.75; }
.fee-safety { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.fee-safety a { white-space: nowrap; }
.fee-controls { position: relative; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.fee-selects { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 12px; }
.fee-selects > label, .fee-exchange-field > span { display: block; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.5; }
.fee-selects select, .fee-exchange-picker > summary { width: 100%; margin-top: 7px; height: 44px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 7px; background: var(--panel); color: var(--ink); font: 14px var(--sans); }
.fee-selects select { text-overflow: ellipsis; }
.fee-exchange-picker { position: relative; }
.fee-exchange-picker > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.fee-exchange-picker > summary::-webkit-details-marker { display: none; }
.fee-exchange-picker fieldset { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; width: max(100%, 200px); margin: 0; padding: 8px; border: 1px solid var(--line2); border-radius: 10px; background: var(--panel); box-shadow: 0 8px 24px rgba(21, 25, 23, .09); }
.fee-exchange-picker fieldset > label { display: flex; gap: 10px; align-items: center; min-height: 40px; padding: 7px; border-radius: 6px; font-size: 14px; color: var(--ink); cursor: pointer; }
.fee-exchange-picker fieldset > label:hover { background: var(--soft); }
.fee-controls input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.fee-exchange-actions { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 5px; padding-top: 5px; }
.fee-control-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.fee-available { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 13px; color: var(--body); cursor: pointer; }
.fee-controls button, .fee-share { border: 0; padding: 6px 0; background: transparent; font: 13px var(--sans); color: var(--accent); cursor: pointer; }
.fee-controls button:hover, .fee-share:hover { text-decoration: underline; }
.fee-results-toolbar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 16px 0 0; }
.fee-result-count { margin: 0; color: var(--muted); font-size: 13px; }
.fee-share { flex: none; }
.fee-feedback { margin: 8px 0 0; color: var(--accent); font-size: 13px; overflow-wrap: anywhere; }
.fee-feedback input { display: block; width: 100%; margin: 6px 0; padding: 10px; border: 1px solid var(--line2); border-radius: 6px; font: 13px var(--sans); }
.fee-empty { margin: 24px 0; padding: 28px 20px; text-align: center; background: var(--soft); border-radius: 10px; }
.fee-empty h2 { margin: 0 0 8px; font-size: 18px; }
.fee-empty p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.fee-empty button { min-height: 40px; padding: 8px 16px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: #fff; font: 14px var(--sans); cursor: pointer; }
.fee-section { margin-top: 28px; }
.fee-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 10px; }
.fee-section-heading .sec { margin: 0; font-size: 22px; scroll-margin-top: 16px; }
.fee-section-heading .sec a { color: var(--ink); }
.fee-section-heading p { margin: 0; font-size: 12px; color: var(--muted); }
.fee-scroll-hint { margin: 4px 0 7px; font-size: 12px; color: var(--muted); }
.fee-table-wrap { border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); isolation: isolate; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.fee-table-wrap::-webkit-scrollbar { height: 4px; }
.fee-table-wrap::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 4px; }
.fee-table { border-collapse: separate !important; border-spacing: 0; }
.fee-table th, .fee-table td { padding: 13px 14px !important; min-width: 100px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fee-table th.num, .fee-table td.num { text-align: right; }
.fee-table thead th { background: #f8faf9; font-size: 13px; }
.fee-table thead a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 4px; }
.fee-table tbody th { color: var(--ink); font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--hair); text-align: left; }
.fee-table .fee-network-cell { position: sticky; left: 0; z-index: 1; min-width: 132px; max-width: 180px; border-right: 1px solid var(--hair); background: var(--panel); }
.fee-table thead .fee-network-cell { background: #f8faf9; z-index: 2; }
.fee-contract-warning { display: block; margin-top: 5px; color: var(--warn); font-size: 11px; line-height: 1.5; white-space: normal; text-decoration: underline; text-underline-offset: 2px; }
.fee-table tbody tr:hover > * { background: #f8faf9; }
.fee-table tbody tr:last-child > * { border-bottom: 0; }
.fee-cell-content { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.fee-value { color: var(--ink); font-size: 15px; line-height: 1.5; }
.fee-value.lo { color: var(--accent); }
.fee-best { padding: 1px 5px; border-radius: 3px; background: var(--soft); color: var(--accent); font-size: 10px; line-height: 1.6; font-weight: 500; }
.fee-unknown, .fee-filtered { font-size: 12px; color: var(--muted); }
.fee-paused { font-size: 12px; }
.fee-paused-value { font-size: 11px; color: var(--muted); }
.fee-coin-link { margin: 10px 0 0; font-size: 13px; }
.fee-directory, .fee-source-details { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.fee-directory summary, .fee-source-details summary { width: fit-content; min-height: 32px; color: var(--body); cursor: pointer; }
.fee-directory summary span { margin-left: 8px; color: var(--muted); font-size: 12px; }
.fee-directory .chips { margin: 12px 0 8px; }
.fee-directory .chips a { padding: 4px 10px; border-radius: 6px; font-size: 12px; }
.fee-directory .chips a[aria-current="true"] { color: var(--accent); border-color: var(--accent); background: var(--soft); }
.fee-source-details p { margin: 10px 0; line-height: 1.8; }
.fee-legend { margin: 10px 0; padding-left: 20px; }
.fee-legend li { margin: 5px 0; }
.fee-source-list { margin: 14px 0; padding: 0; list-style: none; }
.fee-source-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.fee-source-time { font-size: 12px; }
.fee-source-time .snapshot-status { display: inline-block; margin-left: 4px; font-size: 11px; }
.fees-page :is(select, input, button, summary, .fee-table-wrap):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 680px) {
  .fee-intro .title { font-size: 27px; margin-bottom: 8px; }
  .fee-intro .lead { font-size: 15px; line-height: 1.65; margin-bottom: 8px; }
  .fee-safety { font-size: 12px; margin-bottom: 16px; }
  .fee-controls { padding: 12px; }
  .fee-selects { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .fee-exchange-field { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
  .fee-exchange-field > span { flex: none; }
  .fee-exchange-picker { flex: 1; }
  .fee-exchange-picker > summary { height: 38px; margin: 0; }
  .fee-exchange-picker fieldset { width: 100%; }
  .fee-selects select { margin-top: 5px; height: 42px; padding: 0 8px; font-size: 13px; }
  .fee-control-footer { margin-top: 8px; }
  .fee-results-toolbar { margin-top: 12px; flex-wrap: wrap; gap: 4px 10px; }
  .fee-result-count, .fee-share { font-size: 12px; }
  .fee-section { margin-top: 20px; }
  .fee-section-heading .sec { font-size: 20px; scroll-margin-top: 16px; }
  .fee-section-heading p { font-size: 11px; }
  .fee-table th, .fee-table td { min-width: 90px; padding: 11px 10px !important; }
  .fee-table .fee-network-cell { min-width: 110px; max-width: 138px; white-space: normal; overflow-wrap: anywhere; }
  .fee-table tbody th { font-size: 13px; }
  .fee-value { font-size: 14px; }
  .fee-table thead th { font-size: 12px; }
}

.fee-directory { padding-top: 0; border-top: 0; margin-bottom: -12px; }
