.paper-dialog {
  box-sizing: border-box;
  width: min(390px, calc(100vw - 32px));
  max-height: min(80dvh, 690px);
  overflow-y: auto;
  margin: auto;
  padding: 26px;
  border: 1px solid #d5cbb8;
  border-radius: 15px;
  background: #fffcf4;
  color: #373a32;
  box-shadow: 0 18px 75px #3c342633;
}
.paper-dialog::backdrop {background: #37362c66; backdrop-filter: blur(3px);}
.dialog-head,.dialog-actions,.reply-meta,.comment-form {display: flex; align-items: center;}
.dialog-head {justify-content: space-between; gap: 14px; margin-bottom: 23px;}
.dialog-head h2 {font-family: "Songti SC","Noto Serif CJK SC","SimSun",serif; font-size: 1.48rem; line-height: 1.35; margin: 0; overflow-wrap: anywhere;}
.dialog-head .icon-button {display:grid;place-items:center; flex:0 0 34px; width:34px; height:34px; border:none;background: transparent;border-radius:50%; color:#686555;cursor:pointer;}
.dialog-head .icon-button:hover {background:#eee8dc;}
.paper-form {display:grid;gap:16px;}
.paper-form label {display:grid;gap:7px;font-weight:600;font-size:0.91rem;}
.paper-dialog :is(input,textarea,select),.comment-form input {box-sizing:border-box;font:inherit;color:inherit;min-width:0;width:100%;border:1px solid #d8d0c0;border-radius:8px;background:#fffefa;padding:10px 12px;}
.paper-dialog textarea {min-height:95px;resize:vertical;line-height:1.65;}
.paper-dialog input:focus,.paper-dialog textarea:focus,.paper-dialog select:focus,.comment-form input:focus {outline:2px solid #ba9473;outline-offset:1px;}
.paper-dialog button,.discussion button,.feed-empty button {font:inherit;cursor:pointer;}
.paper-dialog button:disabled,.discussion button:disabled {opacity:.55;cursor:wait;}
.dialog-primary,.dialog-danger,.dialog-actions button,.comment-form button,.feed-empty button {border:1px solid #d6c6ab;border-radius:8px;padding:9px 15px;}
.dialog-primary,.comment-form button,.feed-empty button {background:var(--green,#49674e);border-color:var(--green,#49674e);color:#fffef9;}
.dialog-primary {font-weight:650!important;min-height:42px;}
.paper-dialog button:hover,.comment-form button:hover,.feed-empty button:hover {filter:brightness(.97);}
.dialog-danger,.dialog-actions .dialog-danger {background:#a3493b;color:white;border-color:#914336;}
.dialog-actions {justify-content:flex-end;gap:8px;}
.dialog-actions button {background:#f5efe4;color:#4b4439;}
.dialog-copy,.report-list p {line-height:1.7;overflow-wrap:anywhere;margin:0;}
.dialog-options {display:grid;gap:6px;}
.dialog-options button {display:flex;align-items:center;gap:10px;text-align:left;min-height:43px;padding:10px 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:inherit;}
.dialog-options button:hover {background:#f3ecdf;}
.dialog-options button[aria-pressed="true"] {background:#f5ebd8;border-color:#d9c6a7;}
.dialog-options button svg:last-child:not(:first-child) {margin-left:auto;}
.form-error {color:#9c3a30;font-size:.91rem;line-height:1.6;margin:0;}
.form-error:empty {display:none;}
.report-list {display:grid;gap:15px;}
.report-list article {border-top:1px solid #dfd7c6;padding-top:13px;display:grid;gap:8px;}
.report-reason {color:#776953;font-size:.9rem;}
.discussion {margin:8px 0 4px;padding:13px;border:1px solid #e0d9c9;border-radius:10px;background:#fffdf7;text-align:left;font-size:.88rem;min-width:0;}
.reply + .reply {border-top:1px dashed #e6dfcf;padding-top:8px;margin-top:8px;}
.reply-meta {gap:7px;color:#635e50;}
.reply-meta time {font-size:.78rem;}
.reply-meta button {margin-left:auto;display:grid;place-items:center;width:30px;height:30px;background:transparent;border:0;color:inherit;}
.reply p {white-space:pre-wrap;overflow-wrap:anywhere;margin:3px 0;line-height:1.7;}
.comment-form {gap:6px;margin-top:10px;}
.comment-form button {flex-shrink:0;padding:8px 12px;}
.comment-form input {padding:8px 10px;font-size:1rem;}
.first-reply {margin:0;color:#757062;}
.note-status {display:inline-flex;align-items:center;gap:3px;white-space:nowrap;}
.feed-empty {display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:180px;height:100%;gap:12px;text-align:center;padding:24px;}
.feed-empty .empty-mark {color:#92775b;}
.feed-empty h3 {font-weight:500;margin:0;font-size:1.05rem;}
.feed-empty button {font-size:.9rem;}
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
@media(max-width:520px) {
  .paper-dialog {padding:22px;}
  .discussion {padding:9px;}
  .reply-meta {gap:5px;}
}
