:root
{
    --overlay: rgba(0, 0, 0, .5);
    --bg: #111827;
    --text: #e5e7eb;
    --muted: #9aa4b2;
    --accent: #0070ba;
}

body
{
    font: 14px/1.4 system-ui, Segoe UI, Roboto, Arial;
    color: var(--text);
    background: #0e1320;
    margin: 0;
    padding: 24px;
}

button, input
{
    font: inherit;
}

.btn-primary
{
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: .6rem 1rem;
    cursor: pointer;
    position: absolute;
    bottom: 12px;
    right: 12px;
}

/* Modal */
.modal
{
    position: fixed;
    inset: 0;
    display: none;
}

.modal.open
{
    display: block;
}

.modal .overlay
{
    position: absolute;
    inset: 0;
    background: var(--overlay);
}

.modal .dialog
{
    position: absolute;
    margin: auto;
    max-width: 420px;
    width: calc(100% - 24px);
    background: var(--bg);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    padding: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    outline: none;
}

.modal .dialog-header
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.modal h2
{
    font-size: 16px;
    margin: 0;
}

.modal .close
{
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
}

.field
{
    margin: 10px 0;
}

.field label
{
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
}

.field input[type="number"], .field input[type="text"]
{
    width: 100%;
    padding: .55rem .7rem;
    border-radius: 10px;
    border: 1px solid #263145;
    background: #0f1626;
    color: var(--text);
    box-sizing: border-box;
}
