* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f4f6;
    color: #111827;
}

.container {
    width: min(100%, 960px);
    margin: 0 auto;
    padding: 16px;
}

.container.narrow {
    max-width: 420px;
    margin-top: 80px;
}

.topbar {
    background: #111827;
    color: #ffffff;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form,
.form-inline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-inline {
    flex-direction: row;
}

.form-inline input {
    flex: 1;
}

label span {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

button {
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    background: #2563eb;
    color: white;
    font-size: 14px;
}

button.secondary {
    background: #4b5563;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-top: 16px;
}

.alert-success {
    background: #dcfce7;
}

.alert-error {
    background: #fee2e2;
}

.alert-info {
    background: #dbeafe;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.result-row:last-child {
    border-bottom: none;
}

.label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.value {
    word-break: break-all;
}

.mono {
    font-family: "Courier New", monospace;
}
