:root { color-scheme: light; background: #faf8f4; color: #29241f; font: 16px/1.65 "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #923817; }
.shell { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.bar { border-bottom: 1px solid #dfd7cc; background: #fffdfa; }
.bar nav, .nav, .actions { display: flex; align-items: center; gap: 14px; }
.bar nav, .actions { justify-content: space-between; }
.bar nav { min-height: 64px; }
.brand { text-decoration: none; color: inherit; font-size: 20px; }
.brand span { background: #923817; color: white; padding: 3px 7px; border-radius: 5px; }
.intro { margin: 38px 0 22px; }
h1 { font-family: "Songti SC", SimSun, serif; font-size: clamp(25px, 5vw, 42px); margin: 0; }
h2 { margin: 0; font-size: 17px; }
.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: #fffdfa; border: 1px solid #dfd7cc; border-radius: 12px; padding: 20px; margin-bottom: 16px; min-width: 0; }
.notice { background: #f5ebe0; padding: 10px 14px; border-radius: 8px; }
.rewrite-status { margin: 12px 0 0; color: #6a5e51; font-size: 13px; }
.rewrite-status.is-pending { padding: 10px 12px; border-left: 3px solid #923817; border-radius: 4px; background: #f5ebe0; color: #5c2a17; font-weight: 600; }
input, textarea { font: inherit; border: 1px solid #cbbfb0; border-radius: 6px; padding: 9px; max-width: 100%; }
textarea { display: block; width: 100%; min-height: 235px; margin: 8px 0 12px; resize: vertical; }
button, .button { display: inline-block; font: inherit; color: white; background: #923817; padding: 7px 13px; border: 0; border-radius: 6px; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .65; cursor: wait; }
.result { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 14px; }
.entry { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; border-top: 1px solid #dfd7cc; padding-top: 8px; }
#count { font-size: 13px; color: #6a5e51; }
@media (max-width: 720px) { .workspace { grid-template-columns: 1fr; gap: 0; } .nav { gap: 8px; font-size: 14px; } }
