* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #132238;
    background: linear-gradient(135deg, #eef7ff, #f7fbf4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card,
.dashboard {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(19, 34, 56, 0.12);
    padding: 36px;
}

.dashboard {
    max-width: 1100px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #0d8f62;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.05;
}

.lead {
    color: #536173;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

.button,
button {
    display: inline-block;
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: #0d8f62;
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
}

.button:hover,
button:hover {
    background: #08744f;
}

.button.secondary {
    width: auto;
    background: #132238;
}

.note,
.link {
    display: block;
    margin-top: 18px;
    color: #536173;
    text-align: center;
}

.link {
    color: #0d8f62;
    font-weight: 700;
    text-decoration: none;
}

form {
    display: grid;
    gap: 12px;
}

label,
.label {
    color: #3a4757;
    font-size: 0.92rem;
    font-weight: 700;
}

input {
    width: 100%;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    font-size: 1rem;
    padding: 14px 16px;
}

input:focus {
    border-color: #0d8f62;
    outline: 3px solid rgba(13, 143, 98, 0.15);
}

.alert {
    background: #fff3f3;
    border: 1px solid #ffd1d1;
    border-radius: 12px;
    color: #9a1c1c;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.result-box {
    background: #f7fafc;
    border: 1px solid #e3ebf2;
    border-radius: 16px;
    padding: 18px;
}

.result-box p {
    margin: 0 0 14px;
}

.token,
.token-cell {
    font-family: Consolas, Monaco, monospace;
    overflow-wrap: anywhere;
}

.actions {
    display: grid;
    gap: 8px;
    margin-top: 22px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid #e7edf3;
    padding: 14px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f7fafc;
    color: #3a4757;
}

.empty {
    color: #536173;
    text-align: center;
}

@media (max-width: 640px) {
    body {
        align-items: flex-start;
        padding: 16px;
    }

    .card,
    .dashboard {
        padding: 24px;
    }

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
