*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    height: 100%;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: #0d1117;
    color: #e6edf3;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1rem;
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
}

.brand a {
    color: #58a6ff;
    text-decoration: none;
}

.brand a:hover {
    text-decoration: underline;
}

.actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.session-status {
    font-size: 0.8rem;
    color: #8b949e;
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.actions button {
    border: 1px solid #30363d;
    background: #21262d;
    color: #e6edf3;
    border-radius: 6px;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
}

.actions button:hover {
    background: #30363d;
}

.terminal-wrap {
    height: calc(100% - 49px);
    padding: 0.35rem;
}

#terminal {
    width: 100%;
    height: 100%;
}
