#token-positions .pos-table {font-size:13px}
#token-positions .pos-table th {font-size:12px}
.token-position-tools {display:flex;align-items:center;gap:6px}
.token-position-dialog {width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:auto;padding:24px;border:1px solid var(--border);border-radius:18px;background:var(--card);color:var(--text);box-shadow:0 24px 80px #0004}
.token-position-dialog::backdrop {background:#0f172a80;backdrop-filter:blur(3px)}
.token-close-head {display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.token-close-head h2 {margin:0;font-size:20px}
.token-close-head p {margin:6px 0 14px}
.token-close-legs {display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}
.token-close-legs fieldset {min-width:0;margin:0;border:1px solid var(--border);border-radius:12px;padding:14px}
.token-close-legs legend {font-weight:600;font-size:13px;padding:0 6px}
.token-position-dialog .fld {display:flex;flex-direction:column;gap:6px;margin:12px 0}
.token-position-dialog .fld span {font-size:12px;color:var(--muted)}
.token-position-dialog .input {width:100%;box-sizing:border-box;min-width:0}
.token-close-preview {display:grid;gap:8px;padding:16px;border-radius:12px;background:var(--surface-2);font-size:13px}
.token-close-preview div {display:flex;justify-content:space-between;gap:12px}
.token-close-preview b {text-align:right}
.token-close-actions {display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
@media(max-width:520px){.token-position-dialog{padding:18px}.token-close-legs{grid-template-columns:1fr}.token-close-actions{flex-wrap:wrap}.token-close-actions .btn{flex:1}.token-close-preview div{flex-wrap:wrap}}
