* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; margin: 0; background: #1a1b26; color: #c0caf5; min-height: 100vh; }
.wrap { max-width: 640px; margin: 0 auto; padding: 2rem 1rem; }
header { text-align: center; margin-bottom: 2rem; }
h1 { color: #7aa2f7; font-size: 1.75rem; margin: 0; }
.tagline { color: #565f89; margin: 0.5rem 0 0; font-size: 0.95rem; }
nav { margin-bottom: 2rem; }
nav a { color: #7dcfff; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.tool-list { list-style: none; padding: 0; margin: 0; }
.tool-list li { margin-bottom: 1rem; padding: 1rem; background: #24283b; border-radius: 8px; }
.tool-list a { color: #7aa2f7; text-decoration: none; font-weight: 600; }
.tool-list a:hover { text-decoration: underline; }
footer { margin-top: 3rem; text-align: center; font-size: 0.9rem; }
footer a { color: #565f89; }
form label { display: block; margin-top: 1rem; color: #a9b1d6; }
input[type="file"], select, textarea { margin-top: 0.25rem; width: 100%; padding: 0.5rem; background: #24283b; border: 1px solid #414868; border-radius: 6px; color: #c0caf5; }
textarea { min-height: 120px; font-family: inherit; resize: vertical; }
button { margin-top: 1rem; padding: 0.6rem 1.2rem; background: #7aa2f7; color: #1a1b26; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; }
button:hover { background: #89b4fa; }
button:disabled { opacity: 0.6; cursor: not-allowed; }
.msg { margin-top: 1rem; padding: 0.75rem; border-radius: 6px; }
.msg.err { background: #f7768e22; color: #f7768e; }
.msg.ok { background: #9ece6a22; color: #9ece6a; }
.back { display: inline-block; margin-bottom: 1rem; color: #7dcfff; }
.tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.tab { padding: 0.5rem 1rem; background: #24283b; border: 1px solid #414868; border-radius: 6px; color: #a9b1d6; cursor: pointer; }
.tab:hover { color: #c0caf5; }
.tab.active { background: #7aa2f7; color: #1a1b26; border-color: #7aa2f7; }
.output-html { margin-top: 1rem; padding: 1rem; background: #24283b; border-radius: 8px; max-height: 400px; overflow: auto; }
.output-html h1, .output-html h2 { color: #7aa2f7; }
.output-html p { margin: 0.5rem 0; }
.output-html img { max-width: 100%; }
