.pot-tool{max-width:1000px;margin:0 auto;padding:20px 16px 40px}
.pot-card{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:20px;margin:16px 0}
.pot-tool h2{font-size:var(--fs-lg);margin:0 0 12px}
.pot-note{color:var(--ink-soft);font-size:var(--fs-sm);line-height:1.8}
.pot-legend{display:flex;gap:20px;flex-wrap:wrap;font-size:var(--fs-sm);margin:16px 0}
.pot-legend span:before{content:'';display:inline-block;width:18px;height:10px;background:var(--selected-border);margin-right:6px;vertical-align:middle}
.pot-legend .pot-estimated:before{background:repeating-linear-gradient(135deg,var(--ink-soft) 0 1px,transparent 1px 4px);border:1px solid var(--ink-soft)}
.pot-chart-scroll{width:100%;min-width:0}
#potChart{display:block;width:100%;min-width:0;height:auto;color:var(--ink);font-family:inherit}
.pot-table-wrap{overflow-x:auto}
.pot-table{width:100%;border-collapse:collapse;font-size:var(--fs-sm);font-variant-numeric:tabular-nums}
.pot-table th,.pot-table td{padding:10px;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}
.pot-table th:first-child,.pot-table td:first-child{text-align:left}
.pot-table thead{position:sticky;top:0;background:var(--paper)}
.pot-summary{font-size:var(--fs-sm);line-height:1.8;margin:12px 0 0}
.pot-tool a{color:var(--ink);text-decoration:underline}
@media(max-width:520px){.pot-card{padding:14px}.pot-tool{padding:12px 10px 32px}}

.pot-tool > .mode-switch{width:100%}
@media(max-width:520px){body > header{padding-top:42px}}

.pot-summary-row{display:block;padding-left:1em}
#potChart [data-pot-column][role="button"]{cursor:pointer;outline:none;touch-action:manipulation}
.pot-column-highlight{fill:transparent;stroke:transparent;stroke-width:3;pointer-events:all}
#potChart .is-selected .pot-bar{fill:var(--warning)}
#potChart [data-pot-column]:focus-visible .pot-column-highlight{stroke:var(--ink);stroke-dasharray:4 3}
.pot-chart-scroll{position:relative}
.pot-selection{position:absolute;left:18%;top:26%;margin:0;font-size:clamp(22px,4vw,40px);font-weight:800;font-variant-numeric:tabular-nums;color:var(--ink);pointer-events:none}
#potChart text{pointer-events:none}
