/* Settlement tax tracker */
.taxtool { font-size: 14px; }
.taxtop { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; align-items: center; margin-bottom: 16px; }
.taxdial { position: relative; width: 240px; height: 240px; margin: 0 auto; }
.taxdial svg { width: 100%; height: 100%; }
.taxdial circle { fill: none; stroke-width: 12; }
.taxdial .bg { stroke: var(--panel2); }
#taxArc { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .9s linear, stroke .3s; }
.taxtool.ready #taxArc { stroke: var(--good); }
.taxmid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.taxmid b { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.taxtool.ready .taxmid b { color: var(--good); font-size: 34px; }
.taxtool.running .taxmid b { color: var(--accent); }
.taxmid span { color: var(--dim); font-size: 13px; }
.taxtool.ready .taxdial { animation: taxpulse 1.6s infinite; border-radius: 50%; }
@keyframes taxpulse { 0%, 100% { box-shadow: 0 0 0 0 #4ade8055; } 50% { box-shadow: 0 0 0 14px #4ade8000; } }

.taxact h2 { font-size: 19px; margin: 0 0 8px; }
.taxamount { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0; }
.taxamount input { width: 170px; font-size: 20px; font-weight: 800; padding: 8px 10px; }
.taxtool .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.taxtool .chips button { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; cursor: pointer; font-weight: 600; font-size: 12.5px; }
.taxtool .chips button:hover { border-color: var(--accent); color: var(--accent); }
.taxtool .btnrow { margin-top: 10px; }
.taxtool .btnrow.small { margin-top: 8px; }
.taxtool button.big { font-size: 15px; padding: 11px 18px; border-radius: 9px; }
.taxset { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 10px 18px; align-items: end; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.taxset .chk { padding-bottom: 6px; }
.taxtool .dim { color: var(--dim); font-size: 12.5px; }

.taxchart { display: flex; align-items: flex-end; gap: 6px; height: 120px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px 12px 8px; }
.taxchart i { flex: 1; max-width: 46px; background: linear-gradient(180deg, var(--accent), #b87f0c); border-radius: 5px 5px 2px 2px; position: relative; min-height: 6px; }
.taxchart i small { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10.5px; color: var(--dim); white-space: nowrap; }
.taxrow { display: grid; grid-template-columns: 110px 150px minmax(0, 1fr) 30px; gap: 10px; align-items: center; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.taxrow b { color: var(--good); font-variant-numeric: tabular-nums; }
.taxrow span { color: var(--dim); font-size: 13px; }
.taxrow button { background: none; border: 0; color: var(--dim); cursor: pointer; border-radius: 6px; height: 26px; }
.taxrow button:hover { color: var(--bad); background: var(--panel2); }

@media (max-width: 760px) {
  .taxtop { grid-template-columns: 1fr; gap: 14px; }
  .taxdial { width: 200px; height: 200px; } .taxmid b { font-size: 34px; }
  .taxset { grid-template-columns: 1fr; }
  .taxrow { grid-template-columns: 90px minmax(0, 1fr) 30px; } .taxrow span:nth-of-type(2) { grid-column: 1 / 3; grid-row: 2; }
}
