body {
	background: #DBE1ED;
	font-family: Helvetica, Segoe UI, sans-serif;
	margin: 0;
	padding: 0;
}

@supports (overflow-anchor: none) {
	* {
		overflow-anchor: none;
	}
}

pre {
	overflow-x: auto;
}

.timeline {
	margin: 4px;
}

.timeline--selecting > .message--mine {
	-webkit-transform: translateX(-28px);
	transform: translateX(-28px);
}

.timeline--selecting > .message--mine .select {
	right: -32px;
}

.timeline--selecting .select {
	visibility: visible;
}

.select {
	-webkit-appearance: none;
	appearance: none;
	visibility: hidden;
	display: inline-block;
	position: absolute;
	width: 30px;
	height: 30px;
	margin: 0 0 0 2px;
	padding: 0;
	border: none;
	border-radius: 0;
	background: url(/img/unselected.png?cache=1) no-repeat;
	background-size: contain;
	top: 50%;
	right: -4px; /* to counter timeline margin */
	-webkit-transform: translateY(-15px);
	transform: translateY(-15px);
}

.select:checked {
	background: url(/img/selected.png?cache=1) no-repeat;
	background-size: contain;
}

.message {
	position: relative;
	margin-top: 2px;
	word-break: break-word;
}

.message--mine {
	text-align: right;
}

.message--text blockquote {
	margin: 0;
	padding: 2px 0 2px 4px;
	border-left: 2px solid blue;
}

.rule {
	position: relative;
	font-size: 11px;
	text-align: center;
	margin: 4px 0;
	color: #525f6a
}

.bubble {
	position: relative;
	display: inline-block;
	border-radius: 10px;
	padding: 2px 7px 4px;
	border: 1px solid #696d70;
	background: #e0e0e0 -webkit-radial-gradient(#fff 60%, #e0e0e0 80%);
	background: #e0e0e0 radial-gradient(#fff 60%, #e0e0e0 80%);
	background-size: 100% 30px;
	background-position: 50% -15px;
	background-repeat: no-repeat;
	text-decoration: none;
	box-sizing: border-box;
	max-width: -webkit-calc(100% - 28px);
	max-width: calc(100% - 28px);
}

.bubble--theirs {
	margin-right: 28px;
}

.bubble--mine {
	background: #8bcf3e -webkit-radial-gradient(#d0e9cb 55%, #8bcf3e 80%);
	background: #8bcf3e radial-gradient(#d0e9cb 55%, #8bcf3e 80%);
	background-size: 100% 25px;
	background-position: 50% -12px;
	background-repeat: no-repeat;
	text-align: left;
}

/* bubble typography */

.bubble p, .bubble ul, .bubble ol, .bubble h1, .bubble h2, .bubble h3 {
	margin: 0.5em 0;
}

.bubble p:first-child, .bubble ul:first-child, .bubble ol:first-child, .bubble h1:first-child, .bubble h2:first-child, .bubble h3:first-child {
	margin-top: 0;
}

.bubble p:last-child, .bubble ul:last-child, .bubble ol:last-child, .bubble h1:last-child, .bubble h2:last-child, .bubble h3:last-child {
	margin-bottom: 0;
}

/* end bubble typography */

.edited {
	font-size: 10px;
	color: #707070;
	vertical-align: middle;
}

.mx-emoticon {
	vertical-align: middle;
}

.reply {
	margin-bottom: -7px;
}

.reply-bubble {
	left: 14px;
	margin-right: 48px;
	padding: 2px 10px 4px;
	border-radius: 18px;
	border-style: dashed;
	color: #333;
	background: #e0e0e0;
	font-size: 14px;
}

.reply-bubble--mine {
	background: #acd280;
}

.reply-bubble--with-mine {
	left: auto;
	right: 14px;
	margin-right: auto;
	margin-left: 48px;
}

.image-bubble {
	display: inline-block;
	border-radius: 10px;
	overflow: hidden;
	font-size: 0;
}

.image-bubble__img {
	max-width: 100%;
	max-height: 220px;
	background: -webkit-linear-gradient(270deg, #c6ccd8, #aeb3bc);
	background: linear-gradient(to bottom, #c6ccd8, #aeb3bc);
}

.image-bubble__img--loaded {
	width: auto;
	height: auto;
}

.author {
	margin: 5px 0 2px;
	overflow-x: hidden;
}

.author__name {
	font-size: 17px;
	text-shadow: 0px 1px #fff;
	position: relative;
	bottom: 1px;
}

.author__avatar-img {
	vertical-align: bottom;
	border: 1px solid white;
	border-radius: 1px;
	margin-right: 3px;
	width: 24px;
	height: 24px;
}

.top {
	z-index: 1;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 44px;
	line-height: 44px;
	font-size: 20px;
	box-sizing: border-box;
	background: -webkit-linear-gradient(270deg, #c1ccd9, #587197);
	background: linear-gradient(to bottom, #c1ccd9, #587197);
	box-shadow: 0 1px 2px #aaa, inset 0 1px 1px #d8e5f5;
	border-bottom: 1px solid #415a80;
	color: #fff;
	text-shadow: 0px -1px #535b5f;
	font-weight: bold;
	text-align: center;
	overflow: hidden;
}

.top--static {
	position: static;
	margin-bottom: -44px;
}

.top__gutter {
	margin-bottom: 44px;
}

.top__title {
	display: inline-block;
}

.top__button {
	-webkit-appearance: none;
	appearance: none;
	display: inline-block;
	line-height: 1;
	font-size: 12px;
	font-weight: bold;
	margin-top: 7px;
	background: -webkit-linear-gradient(270deg, #9aaac1, #43618a);
	background: linear-gradient(to bottom, #9aaac1, #43618a);
	padding: 7px 6px 8px;
	min-width: 50px;
	border: 1px solid #38404c;
	border-radius: 4px;
	color: #fff;
	text-decoration: none;
	box-shadow: inset 0 1px 1px rgba(45, 56, 71, 0.5);
}

.top__button:active, .top__button:focus, .top__button:hover, .top__button.js-linger {
	background: -webkit-linear-gradient(270deg, #8c96af, #2a3f6a);
	background: linear-gradient(to bottom, #8c96af, #2a3f6a);
}

.top__button--left {
	position: absolute;
	left: 5px;
}

.top__button--right {
	position: absolute;
	right: 5px;
}

.top__button--back {
	padding-left: 12px;
}

.top__button-img {
	position: absolute;
	left: -3px;
	top: -8px;
	width: 18px;
	height: 43px;
}

.top__button--action {
	background: -webkit-linear-gradient(270deg, #8cace7, #2864de);
	background: linear-gradient(to bottom, #8cace7, #2864de);
}

.close-button {
	-webkit-appearance: none;
	appearance: none;
	display: inline-block;
	line-height: 1;
	border: none;
	background: transparent;
	margin: 0;
	padding: 0;
}

.close-button__img {
	width: 24px;
	height: 25px;
	vertical-align: middle;
	position: relative;
	top: -3px;
	margin-right: 8px;
}

.chat-bar {
	position: relative;
	border-top: 1px solid #a0a0a0;
	background: -webkit-linear-gradient(270deg, #f0f0f0, #c6c7cb);
	background: linear-gradient(to bottom, #f0f0f0, #c6c7cb);
}

.reply-area {
	display: none;
	font-size: 14px;
	color: #333;
	background: -webkit-linear-gradient(270deg, #f0f0f0, #c6c7cb);
	background: linear-gradient(to bottom, #f0f0f0, #c6c7cb);
	border-top: 1px solid #a0a0a0;
	padding: 4px 4px 4px 12px;
}

.chat-input {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	height: 30px;
	border-radius: 15px;
	margin: 5px 0 0px 10px;
	width: -webkit-calc(100% - 85px);
	width: calc(100% - 85px);
	background: white;
	box-shadow: inset 0 3px 5px #777;
	border: 1px solid #666;
	font-size: 16px;
	padding: 2px 5px;
	font-family: Helvetica, Segoe UI, sans-serif;
	line-height: 1.3;
}

.send-button {
	position: absolute;
	right: 10px;
	top: 5px;
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	height: 30px;
	width: 60px;
	line-height: 30px;
	border-radius: 15px;
	background: linear-gradient(to bottom, #a9d26c, #69ae31 50%, #5da424 50%, #488e14);
	background: -webkit-linear-gradient(270deg, #a9d26c, #69ae31 50%, #5da424 50%, #488e14);
	box-shadow: inset 0 2px 4px #8ec43d;
	color: white;
	font-weight: bold;
	text-shadow: 0px -1px #535b5f;
	border: 1px solid #7d9977;
	font-size: 16px;
	padding: 0 8px 1px;
	font-family: Helvetica, Segoe UI, sans-serif;
}

.action-bar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 44px;
	z-index: 3;
	background: -webkit-linear-gradient(270deg, #aebed1, #597398);
	background: linear-gradient(to bottom, #aebed1, #597398);
	border-top: 1px solid #627387;
	box-shadow: 0 -1px 2px #aaa, inset 0 1px 1px #d8e5f5;
}

.action-bar--visible {
	display: -webkit-box;
	display: flex;
}

.action-bar__space {
	flex: 1;
	-webkit-box-flex: 1.0;
	text-align: center;
}

.action-bar__button {
	-webkit-appearance: none;
	appearance: none;
	border: none;
	background: none;
	margin: 0;
	padding: 0;
	display: inline-block;
	width: 44px;
	height: 44px;
}

.action-bar__button:disabled {
	opacity: 0.5;
}

.action-bar__button:not(:disabled):active {
	background: url(/img/action-pressed-highlight.png?cache=1) no-repeat center;
	background-size: contain;
}

.room-list {
	background: -webkit-repeating-linear-gradient(270deg, #fff 0px, #fff 69px, #ddd 69px, #ddd 70px);
	background: repeating-linear-gradient(to bottom, #fff 0px, #fff 69px, #ddd 69px, #ddd 70px);
}

.room {
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	display: block;
	position: relative;
	box-sizing: border-box;
	height: 70px;
	text-decoration: none;
	color: black;
	padding: 1px 8px;
	background: url(/img/right-caret.png?cache=1) no-repeat 97% center;
	background-size: 10px;
}

.room:active, .room.js-clicked:focus, .room.js-clicked:hover, .room.js-linger {
	background-size: cover;
	background: -webkit-linear-gradient(270deg, #048bf6, #025de9);
	background: url(/img/right-caret-white.png?cache=1) 97% center / 10px no-repeat, linear-gradient(to bottom, #048bf6, #025de9);
	/*text-shadow: 0 0 1px #555; causes too much scroll lag applying style due to incidental touch*/
	color: #fff;
}

.room__title {
	white-space: pre;
	overflow: hidden;
}

.room__title-name, .room__title-sender {
	font-weight: bold;
}

.room__title-spacer, .room__title-sender {
	font-size: 12px;
}

.room__icon {
	display: inline-block;
	margin-top: 3px;
	width: 36px;
	height: 36px;
	border-radius: 3px;
}

.room__message {
	position: absolute;
	top: 22px;
	left: 50px;
	right: 20px;
	color: #444;
	font-size: 15px;
	line-height: 1.3;
	max-height: 38px;
	overflow: hidden;
}

.room:active > .room__message, .room.js-clicked:focus > .room__message, .room.js-clicked:hover > .room__message, .room.js-linger > .room__message {
	color: #f0f0f0;
}

.room--unread .room__unread {
	display: inline-block;
	margin-right: 3px;
	position: relative;
	top: -1px;
	vertical-align: middle;
	background: linear-gradient(to bottom, #84b2f4, #235ab2);
	background: -webkit-linear-gradient(270deg, #84b2f4, #235ab2);
	box-shadow: inset 0 0 1px rgba(0, 0, 255, 0.5);
	border-radius: 50%;
	width: 14px;
	height: 14px;
}

.group__header, .group__floater {
	top: 44px;
	background: -webkit-linear-gradient(270deg, #819bc5, #b4c4dd);
	background: linear-gradient(to bottom, #819bc5, #b4c4dd);
	font-size: 18px;
	padding: 0 4px;
	line-height: 1.2;
	font-weight: bold;
	color: #fff;
	text-shadow: 0px 1px 1px #444;
	z-index: 1;
}

.group__floater {
	position: fixed;
	top: 44px;
	left: 0;
	right: 0;
}

.pane {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	background: white;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	display: flex;
	flex-direction: column;

	-webkit-transition-duration: 450ms;
	transition-duration: 450ms;
	-webkit-transition-property: -webkit-transform;
	transition-property: transform;
	-webkit-transition-timing-function: ease-in-out;
	transition-timing-function: ease-in-out;
}

.pane--slide-up {
	-webkit-transform: translate(0, 100%);
	transform: translate(0, 100%);
}

.pane--visible {
	-webkit-transform: translate(0, 0);
	transform: translate(0, 0);
}

.pane__main {
	-webkit-box-flex: 1.0;
	flex: 1;
}

.field__group {
	background: #fff;
	border: 1px solid #cacaca;
	border-radius: 8px;
	box-shadow: inset 0px 1px 0.5px #c0c0c0, 0px 1px 0px #f0f0f0;
	overflow: hidden;
}

.field__group + .field__group {
	margin-top: 20px;
}

.field {
	padding: 10px;
}

.field + .field {
	border-top: 1px solid #cacaca;
}

.field__label {
	display: inline-block;
	color: #000;
	font-weight: bold;
	font-size: 15px;
	line-height: 1;
}

.field__text {
	font-size: 15px;
	line-height: 1;
	-webkit-appearance: none;
	appearance: none;
	font-family: Helvetica, Segoe UI, sans-serif;
	border: none;
	padding: 0;
	margin: 0;
	color: #385486;
	outline: none;
}

.field__group-caption {
	color: #31455c;
	font-weight: bold;
	text-shadow: 0px 1px #fff;
	font-size: 15px;
	margin: 10px 0 5px 10px;
}

.button--form {
	-webkit-appearance: none;
	appearance: none;
	display: inline-block;
	box-sizing: border-box;
	padding: 13px 0 13px 10px;
	margin: 0;
	width: 100%;
	background: none;
	border: none;
	text-align: center;
	color: #000;
	font-size: 17px;
	line-height: 1;
	font-family: Helvetica, Segoe UI, sans-serif;
	font-weight: bold;
	text-decoration: none;
}

.button--caret {
	text-align: left;
	padding-right: 30px;
	background: url(/img/right-caret.png?cache=1) no-repeat 97% center;
	background-size: 10px;
}

.button--form:active, .button--form.js-clicked:focus, .button--form.js-clicked:hover, .button--form.js-linger {
	background-size: cover;
	background: -webkit-linear-gradient(270deg, #048bf6, #025de9);
	background: url(/img/right-caret-white.png?cache=1) 97% center / 10px no-repeat, linear-gradient(to bottom, #048bf6, #025de9);
	color: #fff;
}

.button--form__subtitle {
	font-size: 14px;
	color: #385486;
	margin-top: 3px;
}

.button--form:active .button--form__subtitle, .button--form.js-clicked:focus .button--form__subtitle, .button--form.js-clicked:hover .button--form__subtitle, .button--form.js-linger .button--form__subtitle {
	color: #f0f0f0;
}

.pinstripe {
	background: -webkit-repeating-linear-gradient(180deg, #d4d8e1 0px, #d4d8e1 5px, #d1d5e0 5px, #d1d5e0 7px);
	background: repeating-linear-gradient(to right, #d4d8e1 0px, #d4d8e1 5px, #d1d5e0 5px, #d1d5e0 7px);
}

.pinstripe__margin {
	padding: 6px;
}

.load-more {
	background: #c1c8d4;
	text-align: center;
}

.load-more__text {
	padding: 15px 0;
}

.mx-spoiler {
	border: 1px solid #303030;
	background-color: #d4d4d4;
}

.mx-spoiler--hidden {
	color: #303030;
	background-color: #303030;
}

@-webkit-keyframes wiggle {
	0% {
		-webkit-transform: translateX(0px);
	}
	25% {
		-webkit-transform: translateX(10px);
	}
	50% {
		-webkit-transform: translateX(0px);
	}
	75% {
		-webkit-transform: translateX(-10px);
	}
	100% {
		-webkit-transform: translateX(0px);
	}
}

@keyframes wiggle {
	0% {
		transform: translateX(0px);
	}
	25% {
		transform: translateX(10px);
	}
	50% {
		transform: translateX(0px);
	}
	75% {
		transform: translateX(-10px);
	}
	100% {
		transform: translateX(0px);
	}
}

.message--wiggle {
	-webkit-animation: 0.4s linear 1.5 wiggle;
	animation: 0.4s linear 1.5 wiggle;
}

.image-pane {
	background: black;
}

.image-pane__area {
	-webkit-overflow-scrolling: touch;
	overflow: scroll;
}

.image-pane__iframe {
	width: 100%;
	height: 100%;
	border: none;
	pointer-events: none;
}
