@font-face { font-family: DotGothic16; src: url('/fonts/DotGothic16.woff2') format('woff2'); font-display: swap; }
:root { --paper: #fffdf9; --ink: #3b453e; --soft: #70766b; --line: #aaa99a; --accent: #dfebb9; --font: DotGothic16, 'Songti SC', SimSun, serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); background-image: radial-gradient(#d8d3c6 0.6px, transparent 0.6px); background-size: 12px 12px; font-family: var(--font); }
.page { max-width: 720px; margin: auto; padding: 28px 24px 40px; }
nav { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
a { color: inherit; text-underline-offset: 4px; }
header { padding: 24px 0; border-bottom: 2px dashed var(--line); margin-bottom: 24px; }
h1 { font-size: 28px; line-height: 1.5; font-weight: 400; margin: 0; }
.panel { padding: 24px; background: var(--paper); border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--line); margin-bottom: 24px; }
.label-row, .pin-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.text-actions { display: flex; align-items: center; gap: 12px; }
.gate { max-width: 320px; margin: min(24vh, 160px) auto 0; }
.gate:not([hidden]) ~ #status { max-width: 320px; margin: 20px auto 0; }
label { font-size: 16px; }
#count { font-size: 12px; white-space: nowrap; color: var(--soft); }
#count.over, #status.error { color: #a1362c; }
textarea, input { font: inherit; font-size: 16px; color: var(--ink); border: 1px solid var(--line); border-radius: 0; background: #fff; padding: 14px; min-width: 0; }
input { width: 100%; }
textarea { width: 100%; margin-top: 16px; min-height: 210px; resize: vertical; line-height: 1.8; }
:focus-visible { outline: 2px solid #638049; outline-offset: 3px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
button, .button { display: inline-flex; justify-content: center; align-items: center; font: inherit; font-size: 14px; min-height: 46px; padding: 12px 18px; background: var(--accent); color: var(--ink); border: 1px solid var(--ink); border-radius: 0; box-shadow: 2px 2px 0 var(--ink); text-decoration: none; cursor: pointer; }
button { white-space: nowrap; }
.secondary { background: #fff; }
.compact { min-height: 32px; padding: 5px 10px; font-size: 12px; box-shadow: none; }
button:disabled { opacity: .5; cursor: not-allowed; }
[aria-busy="true"] button:disabled { cursor: wait; }
button:hover:not(:disabled), .button:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
audio { width: 100%; }
#status { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
#status:empty { display: none; }
@media (max-width: 480px) { .page { padding: 20px 18px 30px; } .panel { padding: 18px; } .actions > * { flex: 1 1 auto; } }
