/* Quick Reply */
#qr {
  box-shadow: none !important;
  border-radius: 0 !important;
}
:root:not(.vertical-qr) #qr .move {
  min-width: 302px;
}
#qr .close {
  padding: 2px 3px 2px 4px !important;
}
#qr .riceCheck,
#qr input[type=checkbox] {
  margin: 0 4px 1px;
  vertical-align: baseline;
  position: relative;
  top: 3px;
}
:root.fourchan-xt #qr .move .riceCheck,
:root.fourchan-xt #qr .move input[type=checkbox] {
  margin: 0 4px 2px;
  top: 2px;
}
#qr-filename-container .riceCheck,
#qr-filename-container input[type=checkbox] {
  margin: 0 0 1px;
}
#qr-file-button,
#qr input[type='submit'] {
  height: 25px !important;
  margin: 0 !important;
}
#qr-file-button,
:root:not(.fourchan-xt) #qr-filename-container {
  margin-right: 1px !important;
}
#qr-spoiler-label + input[type='submit'] {
  /* ccd0 prior to v1.10.3 */
  margin-top: 1px !important;
}
#qr > form > select {
  margin: 1px 0 !important;
}
#qr select[data-name="thread"] {
  margin: 1px 0 1px 0;
  max-width: 133px;
  min-width: 80px;
}
#qr > form > div.persona > input:nth-child(4),
#qr > form > div.persona > input:nth-child(5),
#qr > form > div.persona > input:nth-child(6) {
  margin-left: 1px;
}
:root.expand-inputs .persona {
  display: flex;
}
:root.expand-inputs .persona .field {
  flex: 1;
  width: 0;
}
:root.expand-inputs .persona .field:hover,
:root.expand-inputs .persona .field:focus {
  flex: 3;
}
#qr textarea {
  min-height: 190px !important;
}
:root.ua-blink #qr textarea {
  min-height: 185px !important;
}
:root.ua-blink #qr textarea.field,
:root.ua-gecko #qr textarea.field {
  min-height: 9em !important;
  min-width: 302px !important;
}
:root.fourchan-x:not(.fourchan-xt).ua-blink #qr textarea.field,
:root.fourchan-x:not(.fourchan-xt).ua-gecko #qr textarea.field {
  max-height: 65vh;
}
:root.fourchan-xt.ua-blink #qr textarea.field,
:root.fourchan-xt.ua-gecko #qr textarea.field {
  max-height: 64vh;
}
:root.right-sidebar #qr textarea.field,
:root.left-sidebar #qr textarea.field {
  max-width: 302px !important;
}
:root.qr-background #qr {
  background: transparent !important;
  border: none;
}
:root.qr-opacity #qr {
  opacity: 0.9;
}
:root.ua-gecko #t-help,
:root.ua-blink #t-help {
  margin: 0 0 0 2px !important;
}
.textarea {
  margin-top: 1px;
  -webkit-margin-after: 1px;
  min-height: 9em;
  max-height: 64vh;
}
:root.ua-gecko .textarea {
  margin-bottom: 1px;
  margin-top: 1px;
}
.captcha-img {
  min-height: 58px !important;
  margin-bottom: 1px;
}
/* Vertical QR */
:root.vertical-qr #qr > div > label > div,
:root.vertical-qr #qr .move #autohide,
:root.vertical-qr #qr > div > select {
  display: none;
}
:root.vertical-qr #qr textarea {
  resize: vertical !important;
}
:root.vertical-qr #qr {
  top: auto !important;
  position: fixed;
  right: 0 !important;  
  left: auto !important;  
  transform: translateX(100%);
}
:root.vertical-qr #qr .move {
  display: block;
  position: absolute;
  width: 105px;
  cursor: default;
  padding: 2px 0 2px 2px;
  text-align: center;
  bottom: 88px;
}
/* Remove flex from qr label in XT */
:root.vertical-qr #qr .move label {
  display: inline;
}
:root.vertical-qr #qr:hover .move {
  transition: opacity .42s linear;
}
:root.vertical-qr #qr:hover .move,
:root.vertical-qr #qr.focus .move {
  opacity: 0 !important;
}
:root.vertical-qr.bottom-header #qr {
  bottom: 28px !important;
}
:root.vertical-qr.top-header #qr {
  bottom: 0 !important;
}
:root.vertical-qr .captcha-img,
:root.vertical-qr .captcha-img img {
  max-width: 247px;
}
:root.vertical-qr #qr form {
  display: block !important;
}
:root.vertical-qr #qr:hover,
:root.vertical-qr #qr.focus {
  transform: translateX(0%) !important;
}
:root.qr-transition.vertical-qr #qr {
  transition: transform .3s ease-in-out .1s !important;
}
:root.vertical-qr #qr .move {
  transform: rotate(-90deg);
  right: 86%;
}
#qr > form {
  overflow-y: hidden !important;
}
/* Fade QR */
:root.fade-qr #qr form {
  display: block !important;
}
:root.fade-qr #qr.autohide:not(.focus):not(:hover) {
  opacity: 0.2 !important;
  transition: opacity .2s ease-in-out 1s !important;
}
/* Oekaki */
input[type="number"] {
  -moz-appearance: textfield;
}
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
/* Captcha */
#t-resp {
  width: 178px !important;
}
/* 4chan XT */
#file-n-submit .row.space {
  margin-top: 1px;
}
