.skeleton-wrap {
    padding: 8px 0;
}

.skeleton {
    height: 44px;
    background: var(--surface-2);
    margin-bottom: 1px;
    animation: shimmer 1.4s infinite;
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.panel-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--surface-3);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.1s;
    flex-shrink: 0;
}

.btn:hover {
    background: #2a2a2a;
}

.btn:disabled {
    opacity: 0.35;
    pointer-events: none;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: var(--accent-hover);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: var(--danger-hover);
}

.btn-ghost {
    background: none;
    color: var(--text-dim);
    padding: 4px 8px;
    font-size: 12px;
}

.btn-ghost:hover {
    color: var(--text);
    background: none;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.player-card {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    transition: background 0.1s, color 0.1s;
}

.player-card:hover {
    background: var(--surface-2);
}

.player-card.selected {
    background: var(--surface-3);
}

.player-card-all {
    opacity: 0.6;
}

.player-card-all:hover {
    opacity: 1;
}

.player-card-all.selected {
    opacity: 1;
}

.list-divider {
    height: 1px;
    background: var(--surface-3);
    margin: 4px 0;
}

.player-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    flex-shrink: 0;
}

.player-dot-menu {
    background: var(--text-muted);
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}

.player-card.selected .player-name {
    color: var(--accent);
}

.player-card-all.selected .player-name {
    color: var(--accent);
}

.player-sub {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1px;
}

.section {
    margin-bottom: 28px;
}

.section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    font-weight: 700;
    margin-bottom: 10px;
}

.row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.row input {
    flex: 1;
    padding: 7px 10px;
    font-size: 13px;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    font-weight: 700;
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
}

.selected-bar {
    padding: 8px 32px;
    background: var(--surface-2);
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.tag {
    background: var(--surface-3);
    color: var(--accent);
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
}

.tag-muted {
    color: var(--text-muted);
}

.field-hint {
    font-size: 11px;
    color: var(--danger);
    margin-top: 6px;
    letter-spacing: 0.03em;
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.panel-sub {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 24px;
    font-family: var(--mono);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1px;
    background: var(--surface-2);
    margin-bottom: 28px;
}

.stat-cell {
    background: var(--surface);
    padding: 12px 14px;
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    font-weight: 700;
    margin-bottom: 3px;
}

.stat-value {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
}

.chat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.chat-table th {
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    font-weight: 700;
    padding: 8px 12px;
    background: var(--surface);
    white-space: nowrap;
}

.chat-table td {
    padding: 7px 12px;
    color: var(--text);
}

.chat-table tr:nth-child(even) td {
    background: var(--surface);
}

.chat-table td.mono {
    font-family: var(--mono);
    font-size: 12px;
}

.chat-table td.kind {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    white-space: nowrap;
}

.chat-table td.kind.chat {
    color: var(--text-dim);
}

.chat-table td.kind.command {
    color: var(--accent);
}

.empty-state {
    padding: 40px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.back-btn {
    font-size: 12px;
    color: var(--text-dim);
    padding: 0;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
}

.back-btn:hover {
    color: var(--text);
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--surface-2);
    padding: 9px 14px;
    font-size: 13px;
    z-index: 1000;
    animation: toast-in 0.15s ease;
    min-width: 160px;
}

.toast.ok {
    border-left: 2px solid var(--success);
}

.toast.err {
    border-left: 2px solid var(--danger);
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
