:root {
    color-scheme: dark;
    font-family: Roboto, system-ui, sans-serif;
    background: #101012;
    color: #edeaf1;
    --accent: #c090ff;
    --line: #37323f;
    --muted: #bab2c5;
}
* { box-sizing: border-box; }
body { margin: 0; }
.consola-turno {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #09090b;
    color: #ececf0;
    font: .9rem/1.45 'IBM Plex Mono', Consolas, monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    tab-size: 4;
}
.consola-negrita { font-weight: 700; }
.consola-gris { color: #9a9aa6; }
.consola-rojo { color: #ff717a; }
.consola-verde { color: #6be88b; }
.consola-amarillo { color: #f7dd72; }
.consola-azul { color: #89a9ff; }
.consola-magenta { color: #e287f0; }
.consola-cian { color: #71dfed; }
.consola-blanco { color: #fff; }
a { color: var(--accent); }
button, input, select { font: inherit; }
button, .button {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: .45rem .8rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #a855f7;
    color: #111;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
button:hover, .button:hover { filter: brightness(1.18); }
button:disabled { opacity: .5; cursor: wait; }
.secondary { background: #292631; color: #eee; border-color: var(--line); }
.environment { color: var(--muted); font-weight: 600; white-space: nowrap; }
.danger { background: #76242e; color: #fff; }
input:not([type=checkbox]), select {
    width: 100%; min-height: 38px; padding: .45rem .7rem;
    color: #eee; background: #16141a; border: 1px solid #514858; border-radius: 6px;
}
label { display: grid; gap: 5px; font-size: .92rem; }
form { display: grid; gap: .7rem; justify-items: start; }
form label { align-self: end; width: min(100%, 30rem); }
form + form, .card form:not(:first-child) { margin-top: .85rem; }
h1 { margin: 0 0 .5rem; font-size: clamp(1.55rem, 4vw, 2rem); overflow-wrap: anywhere; }
h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { line-height: 1.5; }
main { width: min(calc(100% - 28px), 1120px); margin: 2rem auto; }
.documento-cuenta { max-width: 720px; }
.documento-cuenta article { margin: 1rem 0; }
.documento-cuenta h2 { margin-top: 1.4rem; }
.barra {
    display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.2rem;
    padding: .8rem max(14px, calc((100% - 1120px)/2));
    border-bottom: 1px solid var(--line); background: #17151a;
}
.barra form { margin: 0 0 0 auto; }
.marca { color: #87ceeb; text-decoration: none; font-weight: 850; font-size: 1.2rem; }
.marca span { color: #fff; }
nav, .actions, .page-title { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem 1rem; }
nav a { padding-block: .35rem; color: #e3d3f3; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--accent); text-decoration: underline; }
.page-title { justify-content: space-between; margin-bottom: 1rem; }
.page-title p { margin: 0; }
.grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 335px), 1fr)); }
.card { background: #1a181e; border: 1px solid var(--line); border-radius: 10px; padding: clamp(.85rem, 3vw, 1.4rem); margin-bottom: .9rem; }
.sign-in { width: min(100%, 420px); margin: 10vh auto; }
.notice { color: #c7eaa9; }
.ok { color: #b6e497; }
.error { color: #ffa3aa; }
.muted { color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: .7rem 0; font-size: .9rem; }
th, td { padding: .58rem .55rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #dbc8ef; }
td a { white-space: nowrap; }
.pagination { padding-top: .35rem; }
summary { cursor: pointer; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
