* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    margin: 0;
    background: #f6f7fb;
    color: #111;
}

.container {
    max-width: 900px;
    margin: 28px auto;
    padding: 0 16px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin: 14px 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

label {
    display: block;
    margin: 10px 0 6px;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

button {
    margin-top: 10px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.row {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.result {
    margin-top: 10px;
    font-weight: 600;
}

.error {
    margin-top: 8px;
    color: #b00020;
    font-weight: 600;
}

.hidden {
    display: none;
}

.panel {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px dashed #bbb;
    background: #fafafa;
}

.toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    background: #111;
    color: #fff;
    padding: 12px 14px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 180ms ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.hint {
    opacity: 0.8;
}