.copy-trading-dialog {width:min(540px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line-2);border-radius:22px;background:var(--surface-solid);color:var(--text);box-shadow:0 28px 85px rgba(0,0,0,.38);overflow:auto}
.copy-trading-dialog::backdrop {background:rgba(3,7,18,.7)}
.copy-head {display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 22px 13px;border-bottom:1px solid var(--line);background:radial-gradient(ellipse at 0 0,var(--brand-soft),transparent 75%)}
.copy-head h2 {font-size:24px;line-height:1.2;margin:3px 0 4px}.copy-head p {font-size:12px;color:var(--muted);margin:0;line-height:1.4}.copy-head .dialog-close {position:static;flex-shrink:0;width:35px;height:35px}
.copy-head .eyebrow {font-size:10px;line-height:1.3;margin:0}.copy-body {padding:13px 22px 16px;display:grid;gap:10px}
.copy-identity {display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted)}.copy-identity strong {font:650 13px var(--font-mono);color:var(--text)}
.copy-summary {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2)}.copy-summary>div {display:grid;gap:3px;min-width:0}.copy-summary>div>span {font-size:10px;color:var(--muted)}.copy-summary strong {font-size:13px;font-weight:650}
.copy-lookup {display:flex;align-items:center;gap:8px;margin-top:8px;padding:5px 5px 5px 12px;border:1px solid var(--line-2);border-radius:12px;background:var(--surface-2)}.copy-lookup>span {color:var(--muted);font:650 15px var(--font-mono)}.copy-lookup input {width:0;min-width:0;flex:1;border:0;box-shadow:none;background:transparent;padding:9px 0;font:650 14px var(--font-mono);letter-spacing:.05em}.copy-lookup .button {padding:11px 15px;flex-shrink:0}
#copy-lookup-form>label {font-size:12px;font-weight:650;margin:0}#copy-lookup-form>small,#copy-connected>small {display:block;margin-top:5px;font-size:10px;line-height:1.45;color:var(--muted)}
.copy-preview {border:1px solid var(--line);border-radius:14px;background:var(--surface-2);padding:12px}.copy-preview-head {display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted);margin-bottom:9px}.copy-preview-head .challenge-reference {font:650 12px var(--font-mono);color:var(--text)}
.copy-stat-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px}.copy-stat-grid>div {display:grid;gap:3px}.copy-stat-grid span {font-size:10px;color:var(--muted)}.copy-stat-grid strong {font:700 18px var(--font-mono)}.copy-preview .micro {font-size:10px;line-height:1.45;margin:8px 0 0}
.copy-consent {display:flex;align-items:flex-start;gap:8px;font-size:11px;line-height:1.5;color:var(--text-2);margin:0 0 9px}.copy-consent input {flex-shrink:0;width:16px;height:16px;margin:2px 0 0;accent-color:var(--brand)}
#copy-follow-form>.button {margin:0;min-height:44px}
.copy-preview-reference {display:flex;align-items:center;gap:8px;min-width:0}
.copy-edit {color:var(--brand);font-size:11px;font-weight:650;padding:5px 0 5px 3px;flex-shrink:0}
.copy-stat-grid>div:nth-child(n+3) {display:flex;align-items:center;justify-content:space-between;gap:6px}
.copy-stat-grid>div:nth-child(n+3)>strong {font-size:14px}
/* Confirmation replaces the lookup context instead of stacking both steps. */
.copy-trading-dialog:has(#copy-preview:not([hidden])) :is(.copy-identity,.copy-summary,#copy-lookup-form,.copy-head p),
.copy-trading-dialog:has(.copy-policy[open]) :is(.copy-identity,.copy-summary,#copy-lookup-form,#copy-preview,#copy-follow-form,#copy-connected,#copy-paused) {display:none}
@media(max-width:280px){.copy-preview-head {flex-wrap:wrap;gap:3px}.copy-preview-reference {width:100%;justify-content:space-between}}
.copy-policy {border-top:1px solid var(--line);padding-top:9px}.copy-policy summary {font-size:11px;font-weight:650;color:var(--muted);cursor:pointer}.copy-policy p,.copy-explanation {font-size:11px;line-height:1.6;color:var(--muted)}.copy-footer {font-size:9px;margin:0}.copy-paused,.copy-disclosure {border:1px solid var(--line);border-radius:10px;background:var(--surface-2);padding:8px 10px;font-size:11px;line-height:1.5;color:var(--muted);margin:0}.copy-preview .copy-disclosure {margin-top:9px}
@media(max-width:360px){.copy-head {padding:13px 14px 11px}.copy-body {padding:11px 14px 13px;gap:8px}.copy-summary {flex-wrap:wrap;gap:8px}.copy-lookup .button {padding:10px}.copy-identity {align-items:flex-start;flex-direction:column;gap:3px}}
