/* My Hands — user hand list, dark theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #111827;
    color: #e5e7eb;
    min-height: 100vh;
}

.hidden { display: none !important; }

/* Header */
#hands-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #1f2937;
    border-bottom: 1px solid #374151;
}

#hands-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

#hands-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

#hands-brand {
    font-size: 18px;
    font-weight: 700;
    color: #eab308;
}

#hands-count {
    font-size: 13px;
    font-weight: 400;
    color: #9ca3af;
}

.hands-new-btn {
    font-size: 13px;
    color: #eab308;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid #eab308;
    border-radius: 4px;
}

.hands-new-btn:hover {
    background: #eab308;
    color: #1f2937;
}

/* Empty state */
#hands-empty {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 60vh;
    gap: 12px;
    color: #9ca3af;
    font-size: 16px;
}

#hands-empty a {
    color: #eab308;
    text-decoration: none;
}

#hands-empty a:hover {
    text-decoration: underline;
}

/* Content area */
#hands-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

/* Hand list */
.hands-item {
    border-bottom: 1px solid #252b3b;
}

.hands-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.15s;
}

.hands-item-row:hover {
    background: #1f2937;
}

.hands-item-main {
    flex: 1;
    min-width: 0;
}

.hands-item-time {
    font-size: 12px;
    color: #9ca3af;
}

.hands-item-preview {
    font-size: 14px;
    color: #d1d5db;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.hands-item-actions {
    display: flex;
    flex-shrink: 0;
    gap: 6px;
    margin-left: 12px;
}

.hands-item-btn {
    font-size: 12px;
    color: #d1d5db;
    background: #374151;
    padding: 4px 8px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}

.hands-item-btn:hover {
    color: #e5e7eb;
    background: #4b5563;
}

.hands-item-btn.copied {
    color: #22c55e;
}

/* Expanded compact text */
.hands-item-text {
    padding: 0 20px 12px;
}

.hands-item-text-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 4px;
}

.hands-item-text-content {
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #d1d5db;
    background: #1a1f2e;
    padding: 10px 12px;
    border-radius: 4px;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
    margin: 0;
}

/* Login link for user */
#hands-header-right .ct-user-link {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
    padding: 4px 8px;
}

#hands-header-right .ct-user-link:hover {
    color: #e5e7eb;
}
