* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f5f7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1f2430;
    padding: 24px;
}

.card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

h1 {
    margin: 0 0 8px;
    font-size: 1.5rem;
}

.topbar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.logout-link {
    color: #5b6472;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
}

.logout-link:hover {
    color: #b3261e;
    text-decoration: underline;
}

.field-label {
    display: block;
    margin: 16px 0 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5b6472;
}

.text-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #c7cbd4;
    font-size: 0.95rem;
}

.hint {
    margin: 0 0 24px;
    color: #5b6472;
    font-size: 0.9rem;
    line-height: 1.4;
}

.dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed #c7cbd4;
    border-radius: 12px;
    padding: 32px 16px;
    cursor: pointer;
    color: #5b6472;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: #4f7cff;
    background: #f5f8ff;
}

.dropzone input[type="file"] {
    display: none;
}

.preview {
    display: block;
    max-width: 100%;
    max-height: 260px;
    margin: 16px auto;
    border-radius: 8px;
    object-fit: contain;
}

button {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: #4f7cff;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: background 0.15s ease;
}

button:hover {
    background: #3d63d8;
}

button:disabled {
    background: #b9c2d0;
    cursor: not-allowed;
}

.error {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fdecea;
    color: #b3261e;
    font-size: 0.9rem;
}

.result {
    margin-top: 8px;
}

.success {
    color: #1e7e34;
    font-weight: 600;
    text-align: center;
}

.url-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.url-row input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #c7cbd4;
    font-size: 0.9rem;
}

.url-row button {
    width: auto;
    margin-top: 0;
    white-space: nowrap;
}
