:root { --ink: #302c2b; --muted: #766b67; --line: #e4dcd7; --accent: #b8453c; font: 14px/1.5 'Noto Sans', 'Noto Sans SC', sans-serif;; color: var(--ink); background: #f6f3f0; --mobile-gap-size: 8px; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
a { color: var(--accent); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b87c32; outline-offset: 3px; }
.site-header { max-width: 960px; margin: auto; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: -.5px; white-space: nowrap; }
.brand img { border-radius: 8px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-weight: 700; }
.generator-page { width: min(640px, calc(100% - 40px)); margin: 40px auto 32px; }
.intro { margin-bottom: 28px; text-align: center; }
.intro h1 { margin: 0 0 10px; font-size: clamp(28px, 5vw, 36px); font-weight: 750; letter-spacing: -1px; line-height: 1.25; }
.generator-card { padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: #fffdfa; box-shadow: 0 4px 20px #30262205; }
label { display: block; color: var(--ink); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
select, input { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; background: white; border: 1px solid #cfc1b9; border-radius: 6px; color: var(--ink); }
input:disabled { background: #f2ede8; }
.hint, .field-meta { color: var(--muted); font-size: 12px; }
#template { margin-bottom: 24px; }
#template-note { margin: -16px 0 24px; }
.field-meta { display: flex; justify-content: flex-end; gap: 8px; margin: 8px 0 22px; }
#input-count { margin-left: auto; flex-shrink: 0; }
.button { min-height: 42px; padding: 10px 15px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: transparent; color: var(--accent); font-size: 13px; font-weight: 600; white-space: nowrap; }
.button:hover:not(:disabled), .icon-button:hover { background: #efe5df; }
.button.primary { color: #fff; background: var(--accent); }
.button.primary:hover:not(:disabled) { background: #9d362f; }
.button.outlined { border: 1px solid #cfc1b9; }
#generate { width: 100%; min-height: 46px; font-size: 14px; }
.empty-state { text-align: center; margin-top: 18px; color: var(--muted); font-size: 12px; }
.empty-state p { margin: 0; }
.result-section { padding-top: 24px; }
.result-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.result-toolbar h2 { font-size: 14px; font-weight: 650; margin: 0; }
#result { display: block; width: 100%; height: 300px; min-height: 160px; resize: vertical; border: 1px solid var(--line); border-radius: 6px; background: white; padding: 16px; line-height: 1.9; color: var(--ink); overflow-wrap: anywhere; }
.action-bar { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
#copy { margin-left: auto; }
#status { margin: 14px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.error, #status.error { color: #a62c25; }
dialog { width: min(440px, calc(100% - 32px)); max-height: 85dvh; padding: 28px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fffdfa; }
dialog::backdrop { background: #30262277; }
dialog p { font-size: 13px; line-height: 1.8; color: var(--muted); }
.about-heading { display: flex; align-items: center; gap: 14px; }
.about-heading img { border-radius: 8px; }
.about-heading h2 { margin: 0; font-size: 20px; }
.dialog-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
#update-bar { padding: 8px 24px; background: #fae9c9; display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 12px; }
noscript { display: block; padding: 20px; color: #a62c25; }
@media (max-width: 520px) { .site-header { padding: var(--mobile-gap-size); flex-wrap: wrap; } .brand { font-size: 18px; } .header-actions { gap: 4px; } .generator-page { margin-top: 24px; width: calc(100% - calc(2 * var(--mobile-gap-size))); } .generator-card { padding: calc(2 * var(--mobile-gap-size)); } .button { padding: 10px 12px; } .intro { margin-bottom: 20px; } }