/* Small service dialogs share geometry, while artwork readers keep their own surfaces. */
body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog){box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:28px;border:1px solid #e2e4df;border-radius:22px;background:#fffefa;color:#34464c;box-shadow:0 24px 80px #1b293b30,0 2px 7px #1b293b10;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;font:400 14px/1.65 system-ui,-apple-system,sans-serif;text-align:left}
body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog)::backdrop{background:#25323b55;backdrop-filter:blur(3px)}
body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog) :is(h2,h3){color:#30444d;word-break:keep-all;overflow-wrap:anywhere}
body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog) h2{font:700 22px/1.4 system-ui,-apple-system,sans-serif;letter-spacing:-.04em;margin:0 36px 20px 0}
body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog)>p{line-height:1.75}
body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog) :is(input,textarea,select,button){box-sizing:border-box;font-family:inherit}
body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]),textarea,select){max-width:100%;min-height:44px;border:1px solid #cdd6d7;border-radius:10px;padding:11px 12px;background:#fff;color:#34464c;font-size:14px;line-height:1.55;box-shadow:inset 0 1px 2px #273f4d06}
body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog) textarea{width:100%;resize:vertical;min-height:110px}
body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog) :is(input,textarea)::placeholder{color:#858f91;opacity:1}
body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog) :is(input[type=checkbox],input[type=radio]){width:17px;height:17px;min-width:17px;min-height:17px;margin:0;vertical-align:middle;accent-color:#6d8598;flex-shrink:0}
body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog) :is(button,a):focus-visible,body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog) :is(input,textarea,select):focus-visible{outline:2px solid #7c9eb4;outline-offset:3px}
body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog) button{cursor:pointer}
body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog) button:disabled{cursor:default;opacity:.55}
body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog) :is(button[type=submit],button.action,.account-primary,.primary,.library-comment-submit,#profile-photo-save){display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:43px;max-width:100%;padding:11px 18px;border:1px solid #adc5d1;border-radius:12px;background:linear-gradient(155deg,#e1eef3,#c6dce7);color:#355468;font:600 13px/1.3 system-ui;box-shadow:inset 0 2px 2px #ffffffc9,0 2px 0 #a6c2d0,0 4px 7px #334e6410;text-align:center}
body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog) :is(button[type=submit],button.action,.account-primary,.primary,.library-comment-submit,#profile-photo-save):active{transform:translateY(1px)}
body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog) :is(button[data-close],button[data-close-dialog],button[data-close-profile],.daily-close,.own-entry-close,#my-entry-close,#profile-photo-close){display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:34px;min-height:34px;padding:0;border:1px solid #e0e5e3;border-radius:50%;background:#f5f6f3;color:#52636a;font:400 23px/1 system-ui;box-shadow:none;flex:none}
body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog)> :is(button[data-close-dialog],button[data-close-profile],.daily-close,.own-entry-close,#my-entry-close,#profile-photo-close){position:absolute;right:18px;top:18px;float:none}
body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog) :is(.dialog-head,.library-comments-head){display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 20px;padding:0 0 16px;border-bottom:1px solid #e5e8e4}
body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog) :is(.dialog-head,.library-comments-head) h2{margin:0;font-size:20px}
body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog) :is(.member-section,form){max-width:100%}
body dialog:is(#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,.signin-choice,#reading-update-prompt,#update-dialog){width:min(460px,calc(100vw - 24px))}
body dialog:is(#nickname-dialog,#profile-editor) form{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:20px}
body dialog:is(#nickname-dialog,#profile-editor) form>label{font-size:12px;font-weight:600;color:#637079}
body dialog:is(#nickname-dialog,#profile-editor) form>p{margin:0 0 4px;font-size:12px;color:#788386}
body dialog:is(#nickname-dialog,#profile-editor) form>button{align-self:flex-end;min-width:112px;margin-top:8px}
body dialog#account-dialog .account-menu{border:1px solid #e0e4e1;border-radius:14px;overflow:hidden;margin:22px 0;background:#faf9f5}
body dialog#account-dialog .account-menu>button{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;min-height:64px;padding:14px 16px;border:0;border-radius:0;background:transparent;color:#34474e;font:600 14px/1.5 system-ui;text-align:left;box-shadow:none}
body dialog#account-dialog .account-menu small{display:block;margin-top:3px;color:#7a8385;font-size:12px;font-weight:400}
body dialog#account-dialog .account-session{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid #e5e7e1}
body dialog#account-dialog .account-session-note{margin:0;color:#7b8386;font-size:12px;line-height:1.7}
body dialog#account-dialog #member-logout{flex:none;min-height:38px;padding:8px 13px;border:1px solid #d9dedc;border-radius:10px;background:#f7f6f2;color:#606c70;font-size:12px}
body dialog#profile-editor :is(#profile-editor-change-photo,#profile-editor-change-name,#profile-editor-account),body dialog#profile-photo-dialog :is(#profile-photo-choose,#profile-photo-remove){min-height:36px;padding:7px 11px;border:1px solid #dde2de;border-radius:9px;background:#f7f7f3;color:#5e6b70;font-size:12px;line-height:1.4}
body dialog#profile-editor #profile-editor-account{margin-top:22px;width:100%;border:0;border-top:1px solid #e4e6e1;border-radius:0;background:none;padding-top:16px}
body dialog.signin-choice h2{font-size:23px;margin-bottom:24px}
body dialog.signin-choice .signin-provider{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:49px;margin:10px 0;padding:12px 16px;border:1px solid transparent;border-radius:13px;font:600 14px/1.3 system-ui;text-decoration:none;box-shadow:inset 0 2px 2px #ffffff55,0 2px 4px #2736470c}
body dialog.signin-choice .kakao{background:#fee36b;color:#433b29;border-color:#f2d361}
body dialog.signin-choice .naver{background:#25aa6b;color:#fff;border-color:#239760}
body dialog.signin-choice>button{display:flex;justify-content:center;align-items:center;width:100%;min-height:38px;margin-top:14px;padding:8px;border:0;background:none;color:#798387;font-size:12px}
body dialog#reading-update-prompt .prompt-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:22px}
body dialog#reading-update-prompt .prompt-actions button{min-height:44px;padding:11px 14px;border:1px solid #d8dfdf;border-radius:12px;background:#f6f7f5;color:#4a606b;font:600 13px/1.4 system-ui}
body dialog#reading-update-prompt .prompt-actions button[data-edit]{background:linear-gradient(150deg,#e2eff5,#c7dce7);border-color:#b8d0de;box-shadow:inset 0 2px 2px #fff,0 2px 0 #afc6d2}
body dialog#reading-update-prompt .prompt-actions button[data-hide-today]{background:none;border:0;color:#83898c;font-size:12px;min-height:34px}
body dialog#community-dialog .compose-kinds{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
body dialog#community-dialog .compose-kinds button{padding:8px 12px;min-height:36px;border:1px solid #d8dfde;border-radius:10px;background:#f7f8f5;color:#67767b;font-size:12px}
body dialog#community-dialog .compose-kinds button[aria-pressed=true]{background:#e1edf3;border-color:#b7cedb;color:#38576b;box-shadow:inset 0 2px 2px #fff,0 2px 0 #c2d3dc}
body dialog#profile-photo-dialog canvas{display:block;max-width:100%;height:auto;margin:18px auto;border-radius:14px}
@media(max-width:600px){body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog){padding:22px 20px;border-radius:20px;max-height:calc(100dvh - 24px)}body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog) h2{font-size:20px}body dialog:is(.signin-choice,#account-dialog,#nickname-dialog,#profile-editor,#profile-photo-dialog,#my-entry-dialog,#all-sp-dialog,.daily-dialog,.own-entry-editor,#library-editor,#poetry-writer,#story-note-writer,#relay-writer,#community-dialog:not(.memo-letter-dialog),#room-comments,.library-comments-dialog,#reading-update-prompt,#update-dialog,#info,#detail,.sb-beta-dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]),textarea,select){font-size:16px}body dialog#account-dialog .account-session{align-items:flex-start}body dialog#profile-photo-dialog .profile-photo-actions{display:flex;flex-wrap:wrap;gap:8px}}

body dialog#profile-editor #profile-editor-form .action{width:auto;min-width:112px;align-self:flex-end;background:linear-gradient(155deg,#e1eef3,#c6dce7);border:1px solid #adc5d1;border-radius:12px;color:#355468;font:600 13px/1.3 system-ui;padding:11px 18px;box-shadow:inset 0 2px 2px #ffffffc9,0 2px 0 #a6c2d0}

body dialog [hidden]{display:none!important}

body dialog#daily-room-dialog.daily-compact-writer::backdrop{backdrop-filter:none}
body dialog#daily-room-dialog.daily-compact-writer .relay-genre-notice{padding:6px 9px}
body dialog#daily-room-dialog.daily-compact-writer .relay-genre-notice p{display:none}
body dialog#daily-room-dialog.daily-compact-writer .daily-save-message:empty{display:none}

body dialog#room-comments::backdrop{backdrop-filter:none}

/* Comment typing must not continuously composite a blurred full-page backdrop. */
body dialog:is(#room-comments,#community-dialog.feed-comments-dialog,.library-comments-dialog)::backdrop{
 backdrop-filter:none!important;
 -webkit-backdrop-filter:none!important;
}

/* Room writers share one form across desktop and mobile. */
body dialog#daily-room-dialog.daily-compact-writer {
  width: min(500px, calc(100vw - 24px));
  padding: clamp(18px, 4vw, 26px);
  scrollbar-gutter: auto;
  background: #fffefa;
}
body dialog#daily-room-dialog.daily-compact-writer > h2 {
  margin: 0 36px 16px 0;
  font-size: 21px;
}
body dialog#daily-room-dialog.daily-compact-writer form {
  display: grid;
  gap: 12px;
  margin: 0;
}
body dialog#daily-room-dialog.daily-compact-writer form label {
  display: grid;
  gap: 5px;
  margin: 0;
}
body dialog#daily-room-dialog.daily-compact-writer form label:not(.daily-poetry-field) textarea {
  min-height: 92px;
}
body dialog#daily-room-dialog.daily-compact-writer .daily-poetry-field {
  grid-template-columns: 29px minmax(0, 1fr);
  column-gap: 8px;
}
body dialog#daily-room-dialog.daily-compact-writer .daily-poetry-letter {
  border: 0;
}
body dialog#daily-room-dialog.daily-compact-writer form .daily-poetry-field textarea {
  min-height: 46px;
}
body dialog#daily-room-dialog.daily-compact-writer form label > small {
  justify-self: end;
  color: #576f61;
}
body dialog#daily-room-dialog.daily-compact-writer form .daily-reward-note {
  margin: 0;
  padding: 6px 0 0;
  border: 0;
  border-top: 1px solid #e0e7dd;
  background: transparent;
  color: #476451;
}
@layer compact-corrections {
  body dialog#daily-room-dialog.daily-compact-writer form :is(textarea,input,select) {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #b9c8ba;
    border-radius: 8px !important;
    background: #fffefa !important;
    color: #263e32;
    font: 16px/1.5 system-ui, sans-serif;
  }
  body dialog#daily-room-dialog.daily-compact-writer form :is(textarea,input,select):focus-visible {
    outline: 2px solid #759783;
    outline-offset: 1px;
  }
  body dialog#daily-room-dialog.daily-compact-writer form button[type="submit"] {
    justify-self: stretch;
    width: 100%;
    margin: 0;
    min-height: 44px !important;
    border: 1px solid #365646 !important;
    border-radius: 8px !important;
    background: #436049 !important;
    color: #fffdf6 !important;
    box-shadow: none !important;
  }
  body dialog#daily-room-dialog.daily-compact-writer form button[type="submit"]::before {
    display: none !important;
  }
}

@layer compact-corrections {
  @media (max-width: 1050px) {
    html body dialog:is(#daily-room-dialog.daily-compact-writer,#room-comments,#community-dialog.feed-comments-dialog,.library-comments-dialog) {
      width: min(500px, calc(100vw - 24px)) !important;
      padding: clamp(18px, 4vw, 26px) !important;
      border-radius: 18px !important;
      background: #fffefa !important;
      scrollbar-gutter: auto;
    }

    html body dialog:is(#room-comments,#community-dialog.feed-comments-dialog,.library-comments-dialog) {
      --compose-ink: #304f5d;
      --compose-edge: #a3bac4;
      --compose-face: #dae8ed;
    }

    html body dialog:is(#room-comments,#community-dialog.feed-comments-dialog,.library-comments-dialog) > form {
      display: grid;
      gap: 10px;
      margin-inline: 0;
    }

    html body dialog:is(#room-comments,#community-dialog.feed-comments-dialog,.library-comments-dialog) :is(.room-comment-status,.comment-reward-note,.form-error):empty {
      display: none !important;
    }

    html body dialog:is(#room-comments,#community-dialog.feed-comments-dialog,.library-comments-dialog) > form[hidden] {
      display: none !important;
    }

    html body dialog:is(#room-comments,#community-dialog.feed-comments-dialog,.library-comments-dialog) form label {
      display: grid;
      gap: 5px;
      margin: 0;
    }

    html body.page-write #page-content .mobile-writer .mini-text textarea,
    html body dialog:is(#room-comments,#community-dialog.feed-comments-dialog,.library-comments-dialog) form textarea {
      box-sizing: border-box;
      width: 100%;
      min-height: 92px;
      margin: 0 !important;
      padding: 10px 12px;
      border: 1px solid #b9c8ba !important;
      border-radius: 8px !important;
      background: #fffefa !important;
      font: 16px/1.5 system-ui, sans-serif;
    }

    html body dialog:is(#room-comments,#community-dialog.feed-comments-dialog,.library-comments-dialog) form .comment-reward-note {
      order: 1;
      margin: 0;
      padding: 6px 0 0;
      border: 0;
      border-top: 1px solid #e0e7dd;
      background: transparent;
    }

    html body dialog:is(#room-comments,#community-dialog.feed-comments-dialog,.library-comments-dialog) > form > :is(button[type="submit"],.library-comment-submit) {
      order: 2;
    }

    html body dialog#community-dialog.feed-comments-dialog > form > .form-error { order: 3; }

    html body dialog:is(#daily-room-dialog.daily-compact-writer,#room-comments,#community-dialog.feed-comments-dialog,.library-comments-dialog,.own-entry-editor,#library-editor,#story-note-writer,#relay-writer,#poetry-writer) form > :is(button[type="submit"],.library-comment-submit),
    html body.page-write #page-content .mobile-writer .mini-publish > button[data-publish] {
      display: flex !important;
      align-items: center;
      justify-content: center;
      justify-self: end !important;
      align-self: flex-end !important;
      width: fit-content !important;
      min-width: 0;
      min-height: 44px !important;
      max-width: 100%;
      margin-inline: auto 0 !important;
      padding: 8px 16px !important;
      border: 1px solid var(--compose-edge, #9fb69e) !important;
      border-radius: 8px !important;
      background: url('/main-site/assets/clay-matte-grain.png') 0 0 / 104px 104px repeat, var(--compose-face, #dce8d5) !important;
      color: var(--compose-ink, #294638) !important;
      box-shadow: inset 0 1px #fff8, 0 1px 2px #26392b20 !important;
      font: 650 13px/1.25 system-ui, sans-serif !important;
    }

    html body dialog:is(#daily-room-dialog.daily-compact-writer,#room-comments,#community-dialog.feed-comments-dialog,.library-comments-dialog,.own-entry-editor,#library-editor,#story-note-writer,#relay-writer,#poetry-writer) form > button[type="submit"]::before {
      display: none !important;
    }

    html body.page-write #page-content .mobile-writer .mini-text textarea:focus-visible {
      border: 1px solid #759783 !important;
      outline: 1px solid #759783 !important;
      outline-offset: 1px;
    }
    html body dialog .comment-edit-controls { justify-content: flex-end; }
  }
}
