.steam-dialog{width:min(760px,calc(100% - 24px));max-height:92dvh;padding:0;overflow:hidden}
.steam-dialog[open]{display:flex;flex-direction:column}
.steam-dialog>.dialog-head{flex:none;margin:0;padding:20px 24px;gap:16px;background:var(--surface)}
.steam-dialog .dialog-head h2{margin:0;font-size:1.35rem;line-height:1.4}
.steam-dialog .icon{flex:none;min-width:44px;min-height:44px}
.steam-scroll{overflow:auto;min-height:0;padding:0 24px 20px;overscroll-behavior:contain;scrollbar-gutter:stable}
.steam-footer{flex:none;padding:12px 24px;border-top:1px solid var(--line);background:var(--surface);display:flex;justify-content:flex-end}
.steam-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.steam-account-list{display:grid;gap:12px;margin:18px 0}
.steam-account{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.steam-account-heading{display:flex;align-items:center;gap:12px;min-width:0}
.steam-avatar{width:44px;height:44px;object-fit:cover;border-radius:10px;flex:none}
.steam-account-heading>div{min-width:0}.steam-account strong,.steam-account p{overflow-wrap:anywhere}
.steam-account .hint{margin:6px 0;line-height:1.6}
.steam-edit-form{display:grid;gap:10px;margin-top:14px}.steam-edit-form label{margin:0}
.steam-dialog .steam-key{border:1px solid var(--line);border-radius:14px;padding:14px;margin:18px 0;background:var(--soft)}
.steam-key summary{cursor:pointer;font-weight:700;color:var(--purple);line-height:1.6}
.steam-key form{margin-top:12px}.steam-key input{font-family:monospace}
.steam-connect{border-top:1px solid var(--line);padding-top:18px}.steam-connect h3{margin-top:0}
.steam-sign-in{padding:0!important;border:0!important;background:none!important;box-shadow:none!important;border-radius:4px;min-height:48px;display:inline-flex;align-items:center;gap:12px;color:var(--purple);font-weight:700}
.steam-sign-in img{width:180px;height:35px;object-fit:contain}
.steam-notice{line-height:1.6;overflow-wrap:anywhere}.steam-notice:empty{display:none}
.steam-dialog a,#steamGameStatistics a{color:var(--purple);overflow-wrap:anywhere}
.steam-card-stats{display:grid;gap:7px;margin:12px 0 0;font-size:.78rem;line-height:1.4;color:var(--status-ink,var(--muted))}
.steam-card-player{display:flex;align-items:center;gap:8px;min-width:0}
.steam-card-avatar{position:relative;display:grid;place-items:center;width:26px;height:26px;flex:none;overflow:hidden;border-radius:50%;background:var(--soft);border:1px solid var(--status-border,var(--line));font-size:.7rem;font-weight:700}
.steam-card-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.steam-card-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.steam-card-hours{margin-left:auto;flex:none;white-space:nowrap;font-size:.78rem;font-variant-numeric:tabular-nums}
.steam-card-saved{flex:none;color:var(--muted);font-size:.9rem}
.steam-card-more{font-size:.72rem;color:var(--muted)}
.steam-detail-account{border-top:1px solid var(--line);padding:14px 0}.steam-detail-account:last-child{padding-bottom:0}
.steam-detail-account .hint{line-height:1.65;margin:7px 0}.steam-detail-account strong{overflow-wrap:anywhere}
.steam-achievements{font-size:.85rem;line-height:1.6}.steam-achievements ul{padding-left:20px}
#steamGameStatistics>.steam-actions{justify-content:space-between;margin:0 0 10px}#steamGameStatistics h3{margin:0}
@media(max-width:600px){.steam-dialog{max-height:94dvh}.steam-dialog>.dialog-head{padding:16px}.steam-scroll{padding:0 16px 16px}.steam-footer{padding:12px 16px}.steam-dialog input,.steam-dialog select{font-size:16px}.steam-account{padding:12px}.steam-actions button{min-height:44px}.steam-connect .two{grid-template-columns:1fr}.steam-sign-in{flex-wrap:wrap}.steam-dialog .dialog-head h2{font-size:1.2rem}.steam-account-heading .hint{font-size:.75rem}}
