:root { color-scheme: light dark; font-family: "Microsoft YaHei", system-ui, sans-serif; color: #1f2937; background: #f3f5f8; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 760px; margin: 56px auto; padding: 0 24px; }
.eyebrow { color: #0f766e; font-size: 12px; font-weight: 700; letter-spacing: 2px; }
h1 { margin: 12px 0; font-size: 36px; line-height: 1.35; letter-spacing: -1px; }
h2 { font-size: 18px; margin: 0 0 20px; }
p { line-height: 1.7; }
.intro { color: #64748b; margin-bottom: 28px; }
section { background: white; border: 1px solid #dde4ec; border-radius: 16px; padding: 24px; margin-bottom: 18px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title h2 { margin: 0; }
.section-title .actions { margin-top: 0; }
#session-input { font-size: 12px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
label { display: block; font-size: 14px; font-weight: 600; }
input, select, textarea { width: 100%; font: inherit; color: inherit; background: transparent; border: 1px solid #cbd5e1; border-radius: 8px; padding: 11px 12px; margin-top: 8px; }
textarea { resize: vertical; overflow-wrap: anywhere; font-family: Consolas, monospace; font-size: 13px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #0d9488; outline-offset: 2px; }
button, .button { display: inline-block; cursor: pointer; border: 0; border-radius: 8px; padding: 12px 18px; font: inherit; font-size: 14px; font-weight: 600; background: #0f766e; color: white; text-decoration: none; }
button:disabled { opacity: .55; cursor: wait; }
.secondary { background: #e8eef3; color: #334155; }
.hint, footer { color: #64748b; font-size: 12px; line-height: 1.8; }
a { color: #0f766e; }
#generate { width: 100%; margin-top: 10px; }
#status { font-size: 14px; min-height: 24px; white-space: pre-wrap; overflow-wrap: anywhere; }
#error-section { border: 1px solid #b97735; border-radius: 12px; padding: 16px; margin-bottom: 18px; }
#error-section summary { cursor: pointer; font-size: 14px; }
#error-details { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; font: 12px/1.7 Consolas, monospace; }
#warning { white-space: pre-wrap; }
#status[data-kind="error"], #warning { color: #a14a0b; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
footer { text-align: center; padding: 8px 0 24px; }
@media (max-width: 540px) { main { margin-top: 28px; padding: 0 16px; } h1 { font-size: 28px; } .grid { grid-template-columns: 1fr; } section { padding: 20px; } }
@media (prefers-color-scheme: dark) { :root { background: #111820; color: #e2e8f0; } section { background: #19232e; border-color: #334155; } input, select, textarea { border-color: #475569; } select option { background: #19232e; } .secondary { background: #334155; color: #e2e8f0; } .intro, .hint, footer { color: #a2b0c2; } .eyebrow, a { color: #5eead4; } #status[data-kind="error"], #warning { color: #fbbf80; } }
