:root { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #0f172a; background: #f8fafc; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px; }
.container { width: 100%; max-width: 672px; }
.card { padding: 32px; background: white; border: 1px solid #f1f5f9; border-radius: 12px; box-shadow: 0 10px 25px -5px rgb(0 0 0 / 5%); }
.heading { text-align: center; margin-bottom: 32px; }
.logo { display: inline-block; width: 68px; height: 68px; margin-bottom: 16px; filter: drop-shadow(0 8px 6px rgb(15 23 42 / 12%)); }
.title { margin: 0; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.2; }
.form { display: grid; gap: 24px; }
.stack { display: grid; gap: 8px; }
.stack-wide { display: grid; gap: 16px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, input, textarea { transition: border-color .2s, box-shadow .2s, background-color .2s, transform .2s; }
button:focus-visible { outline: 2px solid #3b82f6; outline-offset: 3px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.input-wrap { position: relative; }
.input-icon { position: absolute; inset: 0 auto 0 12px; display: flex; align-items: center; color: #64748b; pointer-events: none; }
.input, .result { display: block; width: 100%; border: 1px solid #e2e8f0; border-radius: 8px; color: inherit; outline: none; }
.input { padding: 12px 16px 12px 40px; line-height: 24px; }
input::placeholder, textarea::placeholder { color: #94a3b8; opacity: 1; }
.input:focus, .result:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgb(59 130 246 / 25%); }
.input[aria-invalid="true"] { border-color: #ef4444; }
#instruction:focus { border-color: #f59e0b; box-shadow: 0 0 0 2px rgb(245 158 11 / 25%); }
.paste-button { justify-self: start; display: inline-flex; align-items: center; gap: 4px; padding: 0; background: none; border: 0; color: #2563eb; font-size: 14px; }
.paste-button:hover { text-decoration: underline; }
.error { margin: 0; color: #dc2626; font-size: 14px; }
.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.platform { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px; border: 0; border-radius: 8px; color: white; font-weight: 600; white-space: nowrap; }
.platform:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 12px rgb(15 23 42 / 12%); }
.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.green { background: linear-gradient(135deg, #10b981, #059669); }
.nord { background: linear-gradient(135deg, #4687ff, #3158d4); }
.amazon { background: linear-gradient(135deg, #f90, #e68a00); }
.result-actions { display: flex; justify-content: flex-end; }
.copy-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 0; border-radius: 8px; background: #3b82f6; color: white; font-size: 14px; }
.copy-button:hover:not(:disabled) { background: #2563eb; }
.result { padding: 16px; line-height: 24px; background: #f8fafc; resize: none; }
.status { margin-top: 24px; }
.loading-row { display: flex; align-items: center; justify-content: center; gap: 8px; }
.muted { color: #64748b; }
.spinner { width: 20px; height: 20px; border: 2px solid transparent; border-top-color: #3b82f6; border-bottom-color: #3b82f6; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { padding: 16px; border: 1px solid; border-radius: 8px; overflow-wrap: anywhere; }
.notice.success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.notice.error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.footer { padding: 24px 16px; border-top: 1px solid #f1f5f9; background: white; text-align: center; color: #64748b; font-size: 14px; }
.footer p { margin: 0; }
.hidden { display: none !important; }
@media (max-width: 767px) { .main { padding: 16px; } .card { padding: 24px; } .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
