* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f5f7;
    color: #18181b;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.container {
    width: min(920px, calc(100% - 32px));
    margin: 48px auto;
}

.card {
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .06);
}

.eyebrow {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #71717a;
}

h1 {
    margin: 8px 0 8px;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.05;
}

h2 {
    margin: 0;
}

.intro {
    color: #52525b;
    margin: 0 0 28px;
}

label {
    display: block;
    margin: 18px 0 7px;
    font-weight: 700;
}

label span {
    font-weight: 400;
    color: #71717a;
    font-size: 13px;
}

input,
textarea {
    width: 100%;
    border: 1px solid #d4d4d8;
    border-radius: 10px;
    padding: 12px 13px;
    font: inherit;
    background: white;
}

input:focus,
textarea:focus {
    outline: 2px solid #18181b;
    outline-offset: 1px;
}

button {
    margin-top: 22px;
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    background: #18181b;
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button:disabled {
    opacity: .5;
    cursor: wait;
}

button.secondary {
    margin: 0;
    background: #f4f4f5;
    color: #18181b;
}

button.active {
    background: #18181b;
    color: #fff;
}

.status {
    margin-top: 22px;
    border-radius: 10px;
    background: #f4f4f5;
    padding: 12px 14px;
    white-space: pre-wrap;
}

.status.error {
    background: #fff1f2;
    color: #9f1239;
}

.result {
    margin-top: 28px;
}

.result-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.tab-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

textarea {
    min-height: 380px;
    resize: vertical;
    line-height: 1.55;
}

pre {
    overflow: auto;
    margin-top: 14px;
    padding: 14px;
    background: #18181b;
    color: #fafafa;
    border-radius: 10px;
    font-size: 12px;
}

.tips {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e4e4e7;
    color: #52525b;
    line-height: 1.8;
}

code {
    background: #f4f4f5;
    padding: 2px 5px;
    border-radius: 5px;
}

a {
    color: inherit;
}

.hidden {
    display: none;
}
