* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;

    background: #09090b;
    color: #f4f4f5;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body {
    padding:
        env(safe-area-inset-top)
        16px
        env(safe-area-inset-bottom);
}

.app {
    width: 100%;
    max-width: 650px;
    margin: auto;

    padding: 25px 0 40px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;
}

.brand {
    font-size: 11px;
    letter-spacing: 4px;

    color: #FEA5F7;

    font-weight: 700;
}

h1 {
    margin: 4px 0 0;

    font-size: 30px;
}

h2 {
    font-size: 18px;

    margin: 0 0 16px;
}

.status {
    background: #18131a;

    color: #FEA5F7;

    padding: 7px 10px;

    border-radius: 999px;

    font-size: 12px;

    border: 1px solid #FEA5F733;
}

.card {
    background: #111113;

    border: 1px solid #27272a;

    border-radius: 18px;

    padding: 18px;

    margin-bottom: 14px;

    transition: border-color .2s;
}

.card:focus-within {
    border-color: #FEA5F755;
}

.row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}

label {
    display: block;

    color: #a1a1aa;

    font-size: 13px;

    font-weight: 600;
}

input {
    width: 100%;

    margin-top: 7px;

    padding: 13px;

    border-radius: 11px;

    border: 1px solid #3f3f46;

    background: #09090b;

    color: white;

    font-size: 16px;

    outline: none;

    transition: border-color .2s;
}

input:focus {
    border-color: #FEA5F7;
}

button {
    width: 100%;

    margin-top: 12px;

    padding: 13px;

    border: 0;

    border-radius: 11px;

    background: #FEA5F7;

    color: #09090b;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform .1s,
        filter .2s;
}

button:hover {
    filter: brightness(1.05);
}

button:active {
    transform: scale(.98);
}

button.danger {
    background: #3f1619;

    color: #fecaca;
}

button.danger:hover {
    background: #551d22;
}

.result {
    white-space: pre-wrap;

    margin-top: 12px;

    padding: 13px;

    background: #09090b;

    border: 1px solid #FEA5F733;

    border-radius: 11px;

    font-family: monospace;

    word-break: break-all;

    color: #FEA5F7;
}

#toast {
    position: fixed;

    left: 16px;
    right: 16px;

    bottom: 20px;

    max-width: 650px;

    margin: auto;

    padding: 12px;

    background: #18131a;

    border: 1px solid #FEA5F755;

    border-radius: 12px;

    color: #FEA5F7;

    text-align: center;

    transform: translateY(150px);

    transition: .2s;
}

#toast.show {
    transform: translateY(0);
}

@media(max-width: 420px) {

    .row {
        grid-template-columns: 1fr;
    }

}