* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f1419;
    color: #e7e9ea;
    min-height: 100vh;
    padding: 2rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.subtitle {
    color: #71767b;
    margin-top: 0.25rem;
}

.actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

button {
    cursor: pointer;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

button:hover:not(:disabled) {
    opacity: 0.85;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#create-btn {
    background: #1d9bf0;
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

#session-name {
    background: #16202a;
    border: 1px solid #2f3336;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #e7e9ea;
    width: 200px;
}

#session-name::placeholder {
    color: #71767b;
}

.status-msg {
    font-size: 0.9rem;
}

.status-msg.info { color: #1d9bf0; }
.status-msg.success { color: #00ba7c; }
.status-msg.error { color: #f4212e; }
.status-msg a { color: #1d9bf0; text-decoration: underline; }
.status-msg code {
    background: #2f3336;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

.sessions h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #e7e9ea;
}

.empty {
    color: #71767b;
    font-style: italic;
}

.session-card {
    background: #16202a;
    border: 1px solid #2f3336;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.session-card.running {
    border-left: 3px solid #00ba7c;
}

.session-card.starting {
    border-left: 3px solid #ffd400;
}

.session-card.error {
    border-left: 3px solid #f4212e;
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.session-id {
    font-family: monospace;
    font-size: 0.9rem;
    color: #e7e9ea;
}

.session-status {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #2f3336;
}

.session-body {
    margin-bottom: 0.75rem;
}

.session-link {
    color: #1d9bf0;
    text-decoration: none;
    font-weight: 600;
}

.session-link:hover {
    text-decoration: underline;
}

.session-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #71767b;
    flex-wrap: wrap;
}

.session-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-terminate {
    background: #2f3336;
    color: #f4212e;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}
