.fees-page { color: var(--admin-ink); }
.fees-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.fees-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--admin-line); }
.fees-heading { padding: 36px 0 8px; }
.fees-heading h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.035em; margin: 9px 0 12px; }
.fees-heading p, .fee-card p { color: var(--admin-text); line-height: 1.6; }
.fees-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fee-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; border: 1px solid transparent; border-radius: 12px; padding: 12px 18px; background: var(--admin-brand); color: #06434a; font-weight: 750; font-size: 14px; cursor: pointer; text-decoration: none; text-align: center; }
.fee-button:hover { filter: brightness(.96); }
.fee-button:disabled { cursor: wait; opacity: .55; }
.fee-button-secondary { background: white; color: var(--admin-brand-deep); border-color: var(--admin-line); }
.fee-status { padding: 14px 16px; border: 1px solid var(--admin-line); background: #edf9fa; border-radius: 12px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.fee-status[data-error="true"] { background: #fff2f2; border-color: #edc5cb; color: #942d3d; }
.fee-card { background: white; border: 1px solid var(--admin-line); border-radius: 22px; padding: 26px; margin: 22px 0; box-shadow: 0 8px 28px rgba(21,77,83,.04); }
.fee-card-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.fee-card h2 { font-size: 24px; margin: 8px 0; }
.fee-badge { border-radius: 999px; padding: 7px 12px; background: #eaf8f4; color: #226f58; font-size: 12px; font-weight: 700; }
.fee-badge[data-unconfirmed="true"] { background: #fff4dd; color: #815c13; }
.fee-lookup, .fee-preset-bar { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; margin: 22px 0; }
.fee-lookup .fee-field { flex: 1; min-width: min(100%, 240px); }
.fee-preset-bar .fee-field { min-width: min(100%, 240px); }
.fee-fieldset { border: 0; min-width: 0; padding: 0; margin: 0; }
.fee-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 20px 0; }
.fee-span { grid-column: 1/-1; }
.fee-field { display: grid; gap: 8px; font-size: 14px; font-weight: 650; }
.fee-field input, .fee-field select, .fee-rate-table input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #cadfe2; border-radius: 10px; background: #fcffff; color: var(--admin-ink); font: inherit; font-weight: 500; padding: 10px 12px; }
.fee-field input:focus, .fee-field select:focus, .fee-rate-table input:focus { outline: 3px solid rgba(57,209,225,.3); border-color: #1395a2; }
.fee-field input:disabled, .fee-field select:disabled, .fee-rate-table input:disabled { background: #f0f4f5; color: #6b7d80; }
.fee-field small, .fee-muted { color: #547277; font-weight: 400; font-size: 13px; line-height: 1.5; }
.fee-notice { background: #f1fafb; padding: 16px; border-radius: 12px; font-size: 14px; border: 1px solid #d6ebee; line-height: 1.6; overflow-wrap: anywhere; }
.fee-details { border: 1px solid var(--admin-line); border-radius: 12px; margin: 24px 0; }
.fee-details summary { padding: 17px; font-size: 14px; font-weight: 700; cursor: pointer; }
.fee-details-body { padding: 0 18px 20px; }
.fee-checks { display: grid; gap: 14px; margin: 22px 0; }
.fee-check { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--admin-text); line-height: 1.5; }
.fee-check input { flex: 0 0 19px; width: 19px; height: 19px; margin: 2px 0 0; accent-color: #0e8e9b; }
.fee-breakdown { display: grid; grid-template-columns: minmax(0,1fr) auto; margin: 22px 0; border: 1px solid var(--admin-line); border-radius: 14px; padding: 6px 20px; gap: 0 14px; }
.fee-breakdown dt, .fee-breakdown dd { padding: 12px 0; margin: 0; font-size: 14px; border-bottom: 1px solid #e7f0f2; }
.fee-breakdown dt:last-of-type, .fee-breakdown dd:last-of-type { border-bottom: 0; font-weight: 750; }
.fee-breakdown dd { text-align: right; font-variant-numeric: tabular-nums; }
.fee-saved { margin-top: 28px; }
.fee-saved h3 { margin-bottom: 8px; font-size: 18px; }
.fee-saved-card { padding: 16px; margin: 12px 0; border-radius: 12px; border: 1px solid var(--admin-line); }
.fee-saved-card .fee-breakdown { border: 0; padding: 0; margin-bottom: 0; }
.fee-saved-card p { font-size: 13px; margin: 6px 0; overflow-wrap: anywhere; }
.fee-settings > summary { cursor: pointer; display: flex; gap: 16px; align-items: center; justify-content: space-between; list-style: none; }
.fee-settings > summary::-webkit-details-marker { display: none; }
.fee-settings > summary > span:first-child { display: grid; gap: 9px; }
.fee-settings > summary strong { font-size: 22px; }
.fee-settings > summary strong::after { content: " +"; color: var(--admin-brand-dark); }
.fee-settings[open] > summary strong::after { content: " −"; }
.fee-settings[open] > summary { padding-bottom: 20px; border-bottom: 1px solid var(--admin-line); }
.fee-table-scroll { overflow-x: auto; }
.fee-rate-table { width: 100%; border-collapse: collapse; min-width: 750px; font-size: 13px; margin-top: 20px; }
.fee-rate-table caption { text-align: left; font-size: 13px; line-height: 1.6; color: var(--admin-text); padding: 0 0 14px; }
.fee-rate-table th, .fee-rate-table td { text-align: left; border-bottom: 1px solid var(--admin-line); padding: 10px 7px; }
.fee-rate-table thead th { color: #56757a; font-size: 12px; }
.fee-rate-table th:first-child { min-width: 178px; }
.fee-rate-table td { min-width: 105px; }
.fee-rate-table td:nth-child(2) { min-width: 65px; }
.fee-rate-table input[type="checkbox"] { width: 20px; min-height: 20px; height: 20px; accent-color: #0e8e9b; }
.fee-rate-table input { padding: 8px; }
.fees-footer { text-align: center; color: var(--admin-muted); font-size: 12px; padding: 20px 0 30px; }
@media(max-width: 650px) {
  .fees-shell { width: calc(100% - 24px); }
  .fees-header { align-items: flex-start; flex-direction: column; padding: 20px 0; }
  .fees-header .fees-actions { width: 100%; }
  .fees-header .fee-button { flex: 1; padding: 10px; }
  .fee-card { padding: 20px 16px; border-radius: 17px; }
  .fee-grid { grid-template-columns: 1fr; }
  .fee-lookup, .fee-preset-bar { align-items: stretch; flex-direction: column; }
  .fee-breakdown { padding: 4px 12px; gap: 0 10px; }
  .fee-breakdown dt, .fee-breakdown dd { font-size: 13px; }
  .fee-details-body { padding-left: 12px; padding-right: 12px; }
}
