:root {
    color-scheme: dark;
    font: 16px system-ui, sans-serif;
    background: #101113;
    color: #ebedf0;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }

body {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    margin: 0;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem 1rem;
    border-bottom: 1px solid #44474e;
}

h1 { margin: 0; font-size: 1rem; }

main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    padding: .75rem;
    gap: .75rem;
}

form {
    width: min(100%, 22rem);
    display: grid;
    gap: .6rem;
    align-self: center;
    margin-top: clamp(1rem, 10vh, 6rem);
}

button, input {
    font: inherit;
    border: 1px solid #747781;
    border-radius: .35rem;
    padding: .5rem .7rem;
}

button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid #9dbdff; outline-offset: 3px; }

#terminal { flex: 1; min-height: 0; overflow: hidden; }
#status { margin: 0; }
#status:empty { display: none; }
#reopen { align-self: flex-start; }
