:root {
    --bg: #ffffff;
    --panel: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --soft: #f8fafc;
    --radius: 14px;
    --shadow: 0 4px 14px rgba(0, 0, 0, .05);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", "Noto Sans SC", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 24px 14px 40px;
}

.wrap {
    width: min(520px, 100%);
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.preview-area {
    background: var(--soft);
    padding: 14px;
}

.preview-box {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    background: #f3f4f6;
    border: 1px dashed #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 12.5px;
    overflow: hidden;
}

.preview-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
}

.content {
    padding: 16px 16px 6px;
}

h1 {
    font-size: 16.5px;
    margin: 0 0 6px 0;
    font-weight: 650;
}

.sub {
    font-size: 12.5px;
    color: var(--muted);
    margin: 0 0 10px 0;
    line-height: 1.45;
}

.meta {
    font-size: 11.5px;
    color: var(--muted);
    margin: 8px 0 0 0;
}

.actions {
    padding: 10px 16px 18px;
    display: grid;
    gap: 8px;
}

.btn {
    appearance: none;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: .15s ease;
}

.btn:hover {
    transform: translateY(-0.5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}

.btn.primary {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.btn.disabled {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.hint {
    padding: 0 16px 18px;
    font-size: 11.5px;
    color: var(--muted);
}

.error {
    color: #b91c1c;
}