:root { color-scheme: light; font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; color: #23364a; background: #f5f3ed; }
* { box-sizing: border-box; }
body { margin: 0; }
.mast { border-bottom: 1px solid #d7d7ce; }
.mast-inner, main { width: min(880px, calc(100% - 40px)); margin-inline: auto; }
.mast-inner { min-height: 64px; display: flex; align-items: center; gap: 14px; }
.mark { width: 34px; height: 34px; }
.wordmark { height: 32px; width: auto; max-width: 65%; object-fit: contain; }
main { padding-block: 44px; }
h1, h2, p { margin: 0; }
h1 { font-size: 32px; letter-spacing: -.035em; line-height: 1.4; }
.intro p, .storage-tip, #rule, #status { color: #58636a; font-size: 14px; line-height: 1.65; }
.intro p { margin-top: 8px; }
.sheet { background: #fffdf5; border: 1px solid #cecfc4; border-radius: 8px; box-shadow: 0 4px 0 -1px #e5e3d8, 0 12px 30px #333a3210; margin: 26px 0 22px; }
.sheet-head { padding: 14px 26px; border-bottom: 1px solid #daddd2; display: flex; justify-content: space-between; align-items: center; font-weight: 650; }
.pen { font-size: 23px; color: #747763; }
.paper { margin: 8px 26px 0; }
textarea { display: block; width: 100%; height: clamp(238px, 38vh, 460px); padding: 0 4px; border: 0; border-radius: 0; font: 18px/34px 'Songti SC', 'SimSun', serif; color: #263644; resize: vertical; min-height: 170px; background: repeating-linear-gradient(to bottom, transparent 0 33px, #dcdfd3 33px 34px); background-attachment: local; overflow-wrap: anywhere; }
.metrics { padding: 16px 26px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
#count { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.actions, .choices { display: flex; align-items: center; gap: 12px; }
.actions { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
button { font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; border: 1px solid #bdc4c3; border-radius: 6px; color: #344653; background: #fffdf7; min-height: 44px; padding: 9px 18px; }
button:hover { border-color: #52647a; }
.primary { color: white; background: #223f64; border-color: #223f64; }
.primary:hover { background: #172f4e; }
:focus-visible { outline: 3px solid #3276aa; outline-offset: 3px; }
.storage-tip { margin-top: 22px; padding-top: 16px; border-top: 1px solid #d7d7ce; }
dialog { width: min(400px, calc(100% - 36px)); border: 1px solid #c9cbbf; border-radius: 10px; padding: 26px; color: inherit; background: #fffdf5; box-shadow: 0 12px 50px #15263530; }
dialog::backdrop { background: #17233565; }
h2 { font-size: 22px; }
dialog p { margin-block: 12px 24px; line-height: 1.6; }
.choices { justify-content: flex-end; }
@media (max-width: 599px) { main { padding-block: 28px; } h1 { font-size: 24px; } .mast-inner { min-height: 54px; } .wordmark { display: none; } .sheet-head, .metrics { padding-inline: 16px; } .paper { margin-inline: 16px; } .metrics { flex-direction: column; } .actions { gap: 10px; } button { padding-inline: 13px; } }
