*, *:before, *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.inline-form {
    display: inline;
    margin: 0;
    padding: 0;
}

html:not(.js) .js-only {
    display: none !important;
}

.file-label { display: none !important; }
.file-hidden { display: inline; width: auto; max-width: 180px; font-size: 10px; }
html.modern-file .file-label { display: inline-block !important; }
html.modern-file .file-hidden { display: none !important; }
html.modern-file .avatar-upload-form .file-label { display: block !important; }

.legacy-http-notice {
    background: #fff9d7;
    border-color: #e2c822;
    color: #5a4a00;
}

html.no-flex .brand-band {
    display: block;
    min-height: 80px;
}

html.no-flex .comment-actions {
    display: block;
    margin-top: 3px;
}

html.no-flex .comment-actions > * {
    display: inline;
    margin-right: 6px;
}

html.no-flex .brand-left {
    height: 0;
    width: auto;
}

html.no-flex .brand-right {
    display: block;
    text-align: right;
    padding: 14px 10px 10px;
    min-height: 80px;
}

html.no-flex .menu-links {
    display: block;
    text-align: right;
}

html.no-flex .menu-links a {
    display: inline;
}

html.no-flex .layout-cols,
html.no-flex .guest-columns {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

html.no-flex .layout-cols > .sidebar,
html.no-flex .layout-cols > .sidebar-right,
html.no-flex .layout-cols > .feed-col,
html.no-flex .guest-columns > .guest-sidebar,
html.no-flex .guest-columns > .guest-main {
    display: table-cell;
    vertical-align: top;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

html.no-flex .layout-cols > .sidebar,
html.no-flex .layout-cols > .sidebar-right {
    width: 155px;
}

html.no-flex .guest-columns > .guest-sidebar {
    width: 160px;
}

html.no-flex .avatar-upload-form .file-hidden {
    width: 100%;
    max-width: 100%;
    font-size: 9px;
}

html.no-flex .layout-cols > .feed-col,
html.no-flex .guest-columns > .guest-main {
    width: auto;
    min-width: 0;
}

html.no-flex .layout-cols > * + *,
html.no-flex .guest-columns > * + * {
    padding-left: 8px;
}

html.no-flex .btn,
html.no-flex .inputsubmit,
html.no-flex .retro-button-link {
    display: inline-block;
    vertical-align: middle;
    text-align: center;
}

html.no-flex a.btn,
html.no-flex a.retro-button-link {
    padding-top: 4px;
    padding-bottom: 3px;
    line-height: 13px;
}

html.no-flex .compact-login-actions {
    display: block;
    overflow: hidden;
}

html.no-flex .compact-login-actions .inputsubmit,
html.no-flex .compact-login-actions .retro-button-link {
    display: block;
    float: left;
    width: 48%;
}

html.no-flex .compact-login-actions .retro-button-link {
    float: right;
}

html.no-flex .composer-footer {
    display: block;
    overflow: hidden;
}

html.no-flex .composer-footer > * {
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

html.no-flex .composer-footer .btn-primary {
    float: right;
    margin-right: 0;
}

html.no-flex .post-header {
    display: block;
    overflow: hidden;
}

html.no-flex .post-header > .avatar-sm {
    float: left;
    margin-right: 6px;
}

html.no-flex .post-header > .post-actions {
    float: right;
    margin-left: 6px;
}

html.no-flex .post-header > .post-meta {
    overflow: hidden;
}

html.no-flex .post-footer {
    display: block;
}

html.no-flex .post-footer > * {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

html.no-flex .comment-item {
    display: block;
    overflow: hidden;
}

html.no-flex .comment-item > .avatar-xs {
    float: left;
    margin-right: 4px;
}

html.no-flex .comment-item > .comment-body {
    overflow: hidden;
}

html.no-flex .comment-form {
    display: block;
    margin-top: 4px;
}

html.no-flex .comment-form.is-replying {
    margin-left: 30px;
}

html.no-flex .comment-input-row {
    display: block;
}

html.no-flex .comment-form input[type=text] {
    width: 62%;
    vertical-align: middle;
}

html.no-flex .comment-form .char-counter {
    display: inline-block;
    vertical-align: middle;
    margin: 0 4px;
}

html.no-flex .sidebar-search,
html.no-flex .sidebar-search-row {
    display: block;
}

html.no-flex .sidebar-search input[type="text"] {
    width: 88px;
    vertical-align: middle;
}

html.no-flex .profile-title-bar {
    display: block;
    overflow: hidden;
}

html.no-flex .pull-right {
    float: right;
}

html.no-flex .profile-header.widget,
html.no-flex .group-header.widget {
    display: block;
    overflow: hidden;
}

html.no-flex .profile-header.widget > div,
html.no-flex .group-header.widget > div {
    overflow: hidden;
}

html.no-flex .profile-avatar-wrap,
html.no-flex .group-header.widget > img {
    float: left;
    margin-right: 8px;
}

html.no-flex .profile-actions {
    display: block;
}

html.no-flex .profile-actions > * {
    display: block;
    margin-bottom: 4px;
}

html.no-flex .friends-grid,
html.no-flex .friends-full-grid,
html.no-flex .groups-grid,
html.no-flex .profile-friends-grid {
    display: block;
}

html.no-flex .friends-grid > *,
html.no-flex .friends-full-grid > *,
html.no-flex .groups-grid > * {
    display: inline-block;
    vertical-align: top;
    margin: 0 3px 6px 0;
}

html.no-flex .friend-card {
    display: inline-block;
    vertical-align: top;
    text-align: center;
}

html.no-flex .profile-friends-grid > * {
    display: inline-block;
    vertical-align: top;
    width: 31%;
    margin: 0 1% 4px 0;
}

html.no-flex .profile-friends-grid .profile-friend-card a {
    display: block;
    text-align: center;
}

html.no-flex .profile-interest-picker {
    display: block;
}

html.no-flex .profile-interest-option {
    display: inline-block;
    width: 32%;
    vertical-align: top;
}

html.no-flex .profile-interest-list {
    display: block;
}

html.no-flex .profile-interest-list > * {
    margin: 0 4px 4px 0;
}

html.no-flex .profile-checkbox-row {
    display: block;
}

html.no-flex .friend-request-item,
html.no-flex .suggestion-item,
html.no-flex .notif-item,
html.no-flex .search-result-item {
    display: block;
    overflow: hidden;
}

html.no-flex .friend-request-item > img,
html.no-flex .suggestion-item > img,
html.no-flex .notif-item > img,
html.no-flex .search-result-item > img,
html.no-flex .friend-request-item > a:first-child,
html.no-flex .suggestion-item > a:first-child,
html.no-flex .notif-item > a:first-child,
html.no-flex .search-result-item > a:first-child {
    float: left;
    margin-right: 6px;
}

html.no-flex .search-result-item > div,
html.no-flex .notif-body {
    overflow: hidden;
}

html.no-flex .notif-actions,
html.no-flex .request-actions {
    display: block;
}

html.no-flex .notif-actions > *,
html.no-flex .request-actions > * {
    display: inline-block;
    margin-right: 4px;
}

html.no-flex .notifications-header {
    display: block;
    overflow: hidden;
}

html.no-flex .notifications-toolbar {
    display: block;
    text-align: right;
}

html.no-flex .pagination {
    display: block;
    text-align: center;
}

html.no-flex .pagination > * {
    display: inline-block;
    margin: 0 2px;
}

html.no-flex .convo-item a,
html.no-flex .convo-sidebar-link {
    display: block;
    overflow: hidden;
}

html.no-flex .convo-item a > img,
html.no-flex .convo-sidebar-link > img {
    float: left;
    margin-right: 4px;
}

html.no-flex .convo-preview {
    overflow: hidden;
}

html.no-flex .chat-widget {
    display: block;
    height: auto;
}

html.no-flex .chat-header {
    display: block;
    overflow: hidden;
}

html.no-flex .chat-header > img {
    float: left;
    margin-right: 4px;
}

html.no-flex .chat-messages {
    display: block;
    height: 330px;
    overflow: auto;
}

html.no-flex .message-item {
    display: block;
    float: left;
    clear: both;
    overflow: hidden;
    margin-bottom: 6px;
}

html.no-flex .message-item.mine {
    float: right;
}

html.no-flex .message-item > .avatar-xs {
    float: left;
    margin-right: 4px;
}

html.no-flex .message-item.mine > .avatar-xs {
    float: right;
    margin-right: 0;
    margin-left: 4px;
}

html.no-flex .message-item > .message-bubble {
    overflow: hidden;
}

html.no-flex .chat-form,
html.no-flex .chat-reply-bar,
html.no-flex .chat-input-row {
    display: block;
}

html.no-flex .chat-input-field {
    display: inline-block;
    vertical-align: middle;
    width: 48%;
}

html.no-flex .chat-input-row > .btn,
html.no-flex .chat-input-row > button,
html.no-flex .chat-input-row > label,
html.no-flex .chat-input-row > input {
    vertical-align: middle;
}

html.no-flex .chat-image-status {
    display: block;
    overflow: hidden;
}

html.no-flex .guest-sidebar .inputsubmit {
    white-space: normal;
    line-height: 13px;
}
