/* "What used it" inside the Claude plan panel (public/plan-usage.js). */
/* The breakdown can make the rail taller than the screen, so the rail scrolls rather than cutting it off. */
.rail { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }

.pu { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.pu-toggle { display: flex; align-items: center; gap: 4px; width: 100%; min-height: 28px; padding: 0; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-2); text-align: left; cursor: pointer; }
.pu-toggle .fold-chev { display: inline-grid; transition: transform .25s var(--ease); transform: rotate(-90deg); }
.pu-toggle[aria-expanded="true"] .fold-chev { transform: none; }
.pu-peek { flex: 1; min-width: 0; font-weight: 400; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pu-body { display: flex; flex-direction: column; gap: 10px; }

.pu-ranges { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--fill); }
.pu-ranges button { flex: 1; min-height: 28px; padding: 0 6px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.pu-ranges button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(29, 26, 22, .12); }

.pu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pu-row { display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 7px; margin: 0 -6px; border-radius: 10px; color: inherit; text-decoration: none; }
a.pu-row:hover, a.pu-row:focus-visible { background: var(--fill-2); }
.pu-top { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--ink); }
.pu-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pu-share { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink); }
.pu-bar { display: block; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pu-bar i { display: block; height: 100%; border-radius: inherit; transition: width .6s var(--ease); }
.pu-note { font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pu-empty { margin: 0; font-size: 12px; line-height: 1.4; color: var(--ink-3); }

.pu-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 8px; }
.pu-how-btn { padding: 0; border: 0; background: none; font: inherit; font-size: 11px; color: var(--pen); text-align: left; cursor: pointer; }
.pu-how-btn:hover { text-decoration: underline; }
.pu-ago { font-size: 11px; color: var(--ink-3); }
.pu-how { margin: 0; font-size: 11px; line-height: 1.45; color: var(--ink-2); }

/* The phone sheet has room for the full names and bigger tap targets. */
.fuel.plan-sheet { margin: 0; border: 0; padding: 0; }
.plan-sheet .pu-top, .plan-sheet .pu-toggle, .plan-sheet .pu-ranges button { font-size: 14px; }
.plan-sheet .pu-ranges button, .plan-sheet .pu-toggle { min-height: 40px; }
.plan-sheet .pu-row { padding: 9px 8px 10px; margin: 0 -8px; }
.plan-sheet .pu-note, .plan-sheet .pu-how, .plan-sheet .pu-how-btn, .plan-sheet .pu-ago { font-size: 12px; }
.plan-sheet .pu-how-btn { min-height: 32px; }
