body {
    font-family: system-ui, Segoe UI, Roboto, Arial, sans-serif;
    margin: 0;
    background: #f5f7fb;
    color: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: min(1000px, 95vw);
    background: #fff;
    margin: 20px auto;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

h1 {
    margin: 0;
}

small {
    color: #555;
}

form {
    margin: 16px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

input[type=text] {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 260px;
}

button {
    background: #0c63e4;
    color: #fff;
    border: 0;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

button:hover {
    background: #0950c7;
}

.summary {
    margin-top: 20px;
}

.embed-box {
    background: #f9fafc;
    padding: 12px;
    border: 1px solid #e1e4ea;
    border-radius: 10px;
    margin: 16px 0;
}

code {
    display: block;
    background: #0f172a;
    color: #e2e8f0;
    padding: 8px;
    border-radius: 6px;
    overflow: auto;
}

.copy-btn {
    background: #e8f0ff;
    color: #0c63e4;
    border: 1px solid #bcd0ff;
    padding: 6px 12px;
    border-radius: 8px;
    margin-top: 8px;
    cursor: pointer;
}

.copy-btn:hover {
    background: #dce7ff;
}

.journal-block {
    margin-top: 22px;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 8px;
}

th,
td {
    border: 1px solid #e7e9ef;
    padding: 8px;
    text-align: left;
}

tr:nth-child(even) {
    background: #fafbfe;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-size: 18px;
    color: #0c63e4;
}

.spinner {
    border: 6px solid #e0e0e0;
    border-top: 6px solid #0c63e4;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 14px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}