/* Custom */

/* R3X palette - single source of truth for the whole theme.
   Values mirror the Device Manager website (assets/css/style.css). */
:root {
	--r3x-bg-dark: #020813;
	--r3x-bg-deep: #041531;
	--r3x-bg-blue: #06275a;
	--r3x-panel: rgba(7, 37, 86, 0.88);
	--r3x-panel-soft: rgba(13, 62, 129, 0.34);

	--r3x-line: #35aaff;
	--r3x-line-soft: rgba(53, 170, 255, 0.45);
	--r3x-line-faint: rgba(53, 170, 255, 0.18);

	--r3x-accent: #1ca9ff;
	--r3x-accent-deep: #0a6bd4;
	--r3x-accent-light: #71d8ff;

	--r3x-text: #edf6ff;
	--r3x-text-soft: #7ec7ff;
	--r3x-text-muted: #4f93cf;

	--r3x-glow: rgba(0, 195, 255, 0.55);
	--r3x-glow-soft: rgba(0, 166, 255, 0.28);
	--r3x-btn: linear-gradient(180deg, #71d8ff, #1ca9ff 52%, #0a6bd4);
}


.dropmenu li ul, .top_menu, .dropmenu li li:hover, .button, .dropmenu li li:hover > a, .dropmenu li li a:focus, .dropmenu li li a:hover, #top_section, #search_form .button{
    background: var(--r3x-bg-blue) linear-gradient(180deg, rgba(113, 216, 255, 0.16), rgba(53, 170, 255, 0) 70%) repeat-x;
	border: 0;
}

#inner_section {
    background: var(--r3x-bg-deep);
}

#inner_wrap {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--r3x-line-faint);
    margin-bottom: 12px;
}

div.cat_bar {
    background: var(--r3x-bg-blue) linear-gradient(180deg, rgba(113, 216, 255, 0.16), rgba(53, 170, 255, 0) 70%) repeat-x;
    border-bottom: none;
    border-top: 1px solid var(--r3x-accent);
    padding: 0 0 4px 0;
    border-radius: 6px 6px 0 0;
    box-shadow: none;
    text-shadow: none;
}

h3.catbg, h3.catbg a, h3.catbg a:hover {
    color: var(--r3x-text);
    text-shadow: 2px 2px 2px rgba(0,0,0,.2);
}

.cat_bar .desc {
    color: var(--r3x-text);
    font-size: 12px;
    line-height: 1.5em;
    font-weight: 400;
    margin: 0px 0px 0px 10px;
    background: rgba(0,0,0,0.4);
    padding: 3px 6px;
    box-shadow: 0 0 1px 1px rgba(0,0,0,0.9);
    border-radius: 16px;
    text-shadow: 1px 2px 2px rgba(0,0,0,.2);
    display: inline;
}

.generic_list_wrapper {
	background: var(--r3x-bg-blue) linear-gradient(180deg, rgba(113, 216, 255, 0.16), rgba(53, 170, 255, 0) 70%) repeat-x;
    border-top: 1px solid var(--r3x-accent);
	border-left: none;
	border-right: none;
}

.windowbg, .approvebg, .approvebg2 {
    background: var(--r3x-panel);
	border: 1px solid;
	border-color: var(--r3x-line-soft) var(--r3x-bg-dark) var(--r3x-bg-dark) var(--r3x-line-soft);
    margin: 12px 0 0 0;
    padding: 12px 16px;
    border-top: 1px solid var(--r3x-bg-blue);
	border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    box-shadow: none;
    overflow: auto;
}

.inner {
    padding: 7px 8px 2px 2px;
    margin: 0;
    border-top: 1px solid var(--r3x-bg-blue);
    box-shadow: none;
    min-height: 85px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.signature, .attachments, .custom_fields_above_signature, .custom_fields_below_signature {
    width: 100%;
    overflow: auto;
    clear: right;
    padding: 12px 0 3px 0;
    border-top: 1px solid var(--r3x-bg-blue);
    box-shadow: none;
    line-height: 1.4em;
    font-size: .9em;
}

.under_message {
	border-top: 1px solid var(--r3x-bg-blue);
	box-shadow: none;
}

.up_contain {
    color: var(--r3x-text);
    background: var(--r3x-panel);
	border: 1px solid;
	border-color: var(--r3x-line-soft) var(--r3x-bg-dark) var(--r3x-bg-dark) var(--r3x-line-soft);
	margin: -1px 0 1px 0;
}

.boardindex_table .board_stats p {
    border-left: 1px solid var(--r3x-line-soft);
    border-right: 1px solid var(--r3x-line-soft);
}

.roundframe {
    background: var(--r3x-bg-deep);
    border-top: 1px solid var(--r3x-accent);
	border-left: none;
	border-right: none;
	border-bottom: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.navigate_section ul {
	background: var(--r3x-bg-deep) linear-gradient(180deg, rgba(53, 170, 255, 0.10), rgba(53, 170, 255, 0) 70%) repeat-x;
    margin: 4px 0 0 0;
    padding: 0 10px;
    font-size: .9em;
    overflow: hidden;
    border: none;
    border-radius: 2px;
    box-shadow: none;
	text-shadow: none;
}

.navigate_section ul li {
    line-height: 1.1em;
    color: var(--r3x-text);
    text-shadow: none;
}

.navigate_section ul a {
	color: var(--r3x-text);;
}

.children {
    border-top: 1px solid var(--r3x-line-soft)!important;
    box-shadow: 0 0 0 1px var(--r3x-line-faint) !important;
    padding: 5px;
    width: 100%;
}

.new_posts {
    color: var(--r3x-text);
    font-weight: bold;
    line-height: 1.12px;
    border-radius: 2px;
    background: var(--r3x-bg-blue)!important;
    display: inline;
    margin: 0 2px;
    padding: 2px 4px;
    font-size: 9px;
    font-family: verdana, sans-serif;
    box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.1), 0 -2px 4px rgba(0, 0, 0, 0.1) inset;
    opacity: 1!important;
    transition: 0.3s all;
}

.new_posts:hover {
    background: var(--r3x-accent)!important;
    text-decoration: underline;
    color: var(--r3x-text);
    opacity: 1;
}

#ic_recentposts td {
	border-top: 1px solid var(--r3x-line-soft);
    padding: 0 4px 0 0;
    vertical-align: top;
}

.page_number {
  color: var(--r3x-accent);
  font-weight: bold;
  padding: 4px 0 0 4px;
  line-height: 1.5em;
}

/* TitleBar & SubBar */
.title_bar {
	border:  none;
	background: var(--r3x-bg-blue) linear-gradient(180deg, rgba(113, 216, 255, 0.16), rgba(53, 170, 255, 0) 70%) repeat-x;
	color: var(--r3x-text);
	border-radius: 2px 2px 0 0;
	margin: 0 0 0 0;
}
.table_grid tr.title_bar a {
  color: #fff;
}
h3.titlebg, h4.titlebg, .titlebg, h3.subbg, h4.subbg, .subbg {
  background: none;
  color: var(--r3x-text);
  font-family: "Tahoma", sans-serif;
  font-weight: bold;
  overflow: hidden;
  padding: 6px 12px 5px 12px;
  text-shadow: none;
}
.sub_bar {
	border-bottom: none;
	text-shadow: none;
	background: none;
	box-shadow: none;
	clear: both;
}
h4.subbg, .subbg {
	background: var(--r3x-bg-deep) linear-gradient(180deg, rgba(53, 170, 255, 0.10), rgba(53, 170, 255, 0) 70%) repeat-x;
	color: var(--r3x-text);
	text-shadow: none;
	font-family: "Tahoma", sans-serif;
	font-weight: bold;
	overflow: hidden;
	padding: 6px 12px 5px 12px;
}
.titlebg a, .subbg a {
	background: none;
	color: var(--r3x-text);
	text-decoration: none;
}
.title_bar + .windowbg, .title_bar + .roundframe {
	margin-top: -1px;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

#upshrink_stats {
    margin-top: 0px;
}

.subbg a {
    background: none;
    text-decoration: none;
    color: var(--r3x-text);
}

.titlebg a {
    background: none;
    color: var(--r3x-text);
    text-shadow: none;
    text-decoration: none;
}

.subbg_board {
	width: 61%;
	color: var(--r3x-text);
	float: left;
}
.subbg_stats {
	width: 19%;
	color: var(--r3x-text);
	float: left;	
}
.subbg_lastpost {
	width: 20%;
	color: var(--r3x-text);
	float: left;	
}

.subbg_boardindex {
	width: 100%;
	border-bottom: 1px solid var(--r3x-line-faint);
	margin-bottom: 1px;
}

#info_center .sub_bar {
    border-top: none;
}

#topic_header {
	background: var(--r3x-bg-deep) linear-gradient(180deg, rgba(53, 170, 255, 0.10), rgba(53, 170, 255, 0) 70%) repeat-x;
    margin: 0;
    border-radius: 0;
    display: flex;
	padding: 4px 0px;
}

#description_board h3::after {
    content: none;
}

#recent_posts_content {
    background: var(--r3x-panel);
    border: none;
}

/* Buttons and Such*/

.info .subject {
    font-weight: 700;
    font-size: 110%;
    color: var(--r3x-line);
}

.pagesection .button {
    color: var(--r3x-text);
    margin: 0 2px;
}

.button {
	background: var(--r3x-bg-blue) linear-gradient(180deg, rgba(113, 216, 255, 0.16), rgba(53, 170, 255, 0) 70%) repeat-x;
	color: var(--r3x-text);
	border: none;
    box-shadow: none;
}

.button:hover {
    background: var(--r3x-accent);
    background: linear-gradient(180deg, var(--r3x-accent) 0%, var(--r3x-accent-deep) 100%);
	color: var(--r3x-text);
    text-decoration: none;
    border: none;
    box-shadow: none;
}

.button:focus {
    background: var(--r3x-accent);
    background: linear-gradient(180deg, var(--r3x-accent) 0%, var(--r3x-accent-deep) 100%);
	color: var(--r3x-text);
    text-decoration: none;
    border: none;
    box-shadow: none;
}

.button.link {
    background: var(--r3x-bg-blue);
    color: var(--r3x-text);
    font-weight: 700;
    border: none;
    box-shadow: none;
}

.button.active {
    background: var(--r3x-accent);
    background: linear-gradient(180deg, var(--r3x-accent) 0%, var(--r3x-accent-deep) 100%);
    color: var(--r3x-text);
    font-weight: 700;
    border: none;
    box-shadow: none;
}

.button.active:hover {
    color: var(--r3x-text);
    background: var(--r3x-accent);
    background: linear-gradient(180deg, var(--r3x-accent) 0%, var(--r3x-accent-deep) 100%);
}

#search_form .button {
	background: var(--r3x-bg-blue);
    background: linear-gradient(180deg, rgba(53, 170, 255, 0.22), rgba(6, 39, 90, 0.9));
	color: var(--r3x-text);
}

a.button {
  color: var(--r3x-text);
}
.button.you_sure {
  margin: 0px 2px;
}
#search_form .button:hover{
	background: var(--r3x-accent);
	background: linear-gradient(180deg, var(--r3x-accent) 0%, var(--r3x-accent-deep) 100%);
	color: var(--r3x-text);
}

#top_section {
    padding: 0 4px;
    border-bottom: none;
    box-shadow: 0 1px 4px rgba(0,0,0,.16);
    clear: both;
    margin: 0 -11px;
}

.stuffnthings {
	background: var(--r3x-bg-blue) linear-gradient(180deg, rgba(113, 216, 255, 0.16), rgba(53, 170, 255, 0) 70%) repeat-x;
	height: 30px;
    padding: 0 2px;
    margin: 0 12px;
}
.stuffnthings a{
	color: var(--r3x-text);
	text-decoration: none;
}
.stuffnthings a:hover{
	color: var(--r3x-text-soft);
	text-decoration: underline;
}

.stuffnthings a.button:hover {
	color: var(--r3x-text);
	text-decoration: underline;
}

#top_info {
    padding: 0px 2px;
    line-height: 1.3em;
    width: auto;
}

#languages_form, #search_form {
    padding: 3px 14px;
}

.pm_unread, .alerts_unread {
    margin-top: 5px;
    border-top: 1px solid var(--r3x-accent);
}

#upshrink_stats p.inline {
    border: none;
    margin: 0;
    padding: 2px 8px;
    line-height: 1.6em;
    font-size: .9em;
    background: var(--r3x-panel);
	border: 1px solid;
	border-color: var(--r3x-line-soft) var(--r3x-bg-dark) var(--r3x-bg-dark) var(--r3x-line-soft);
}

/* Those collapse and expand icons are wonderful. */
/* Those collapse and expand icons are wonderful. */
.toggle_up::before, .toggle_down::before {
    width: 28px;
    height: 17px;
    display: inline-block;
    background: transparent url(../images/custom/collapse.png) no-repeat 0 0 / 28px;
    overflow: hidden;
    content: '';
    vertical-align: middle;
    margin: 0px 5px 0 5px;
    border: none;
    border-radius: 3px;
    box-shadow: none;
    transition: background-color 0.25s;
    padding: 0;
}
.toggle_down::before {
    background: transparent url(../images/custom/expand.png) no-repeat 0 0 / 28px;
	box-shadow: none;
}

.toggle_up:hover:before, .toggle_down:hover:before {
	background-color: transparent;
	box-shadow: none;
	transition: background-color 0.25s;
}

.generic_bar .bar, .progress_bar .bar {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    bottom: 0;
    background: var(--r3x-accent);
    transition: width .3s;
    border-radius: 1px;
    box-shadow: none;
    display: block;
	border:  none;
}
.display_title {
    font-weight: normal;
    font-size: 26px;
    margin-bottom: 0.25em;
    line-height: 1.05em;
    overflow-wrap: break-word;
    color: var(--r3x-text);
}

.keyinfo .postinfo a, .keyinfo .postinfo a strong {
  color: var(--r3x-accent);
}

#footer {
    margin: 4em 0 0 0;
    padding: 10px 5%;
	background: var(--r3x-bg-blue) linear-gradient(0deg, rgba(53, 170, 255, 0.14), rgba(53, 170, 255, 0) 100%) repeat-x;
    border-top: 1px solid var(--r3x-accent);
    box-shadow: 0 -2px 10px rgba(28, 169, 255, 0.4);
    flex: none;
}
#topic_container .windowbg {
    display: flex;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid;
    border-color: var(--r3x-line-soft) var(--r3x-bg-dark) var(--r3x-bg-dark) var(--r3x-line-soft);
}

.windowbg:nth-of-type(2n+1), .bg.odd {
    background: var(--r3x-panel);
}
.windowbg:nth-of-type(2n), .bg.even {
    background: var(--r3x-panel);
}
.windowbg.sticky.locked {
    background: var(--r3x-panel);
}
.windowbg:target {
	background: rgba(53, 170, 255, 0.12);
}
/* Awaiting approval is a bit special, topics first */
.windowbg.approvetopic {
	background: #261515;
}
/* Unapproved posts in approved topics */
.windowbg.approvepost {
	background: #261515;
}
.information {
    background: var(--r3x-panel);
	border: 1px solid;
	border-color: var(--r3x-line-soft) var(--r3x-bg-dark) var(--r3x-bg-dark) var(--r3x-line-soft);
}

.themecopyright {
	width: 500px;
	float: left;
	clear: left;
}

/* Post Area Stuff */

.subject_title a {
    font-size: .9em;
    color: rgba(255,255,255,.5);
    font-weight: 700;
}

.poster h4, .poster h4 a, .poster li:hover h4 a, .poster h4 a:hover .poster li h4 a, .poster h4 a:focus {
    margin: 0;
    padding: 0;
    color: var(--r3x-accent);
    font-weight: 900;
}

.keyinfo h5 a, .keyinfo h5 a strong {
    color: var(--r3x-text);
}

#topic_icons .information, #messageindex .information {
    border-top: 1px solid var(--r3x-line-soft);
}
#description_board h3, #description_board div {
    display: inline-block;
	color: var(--r3x-text);
}

.current_page {
    padding: 0 4px 0 2px;
    color: var(--r3x-text);
    font-family: verdana,sans-serif;
    font-weight: 700;
}

.keyinfo .postinfo .modified {
  color: var(--r3x-text);
  font-weight: normal;
  font-style: italic;
}

.editor {
    background: var(--r3x-bg-deep) linear-gradient(180deg, rgba(53, 170, 255, 0.10), rgba(53, 170, 255, 0) 70%) repeat-x;
    color: var(--r3x-text);
    border: 1px solid var(--r3x-accent);
}

.editor:hover {
    background: var(--r3x-bg-deep) linear-gradient(180deg, rgba(53, 170, 255, 0.10), rgba(53, 170, 255, 0) 70%) repeat-x;
    color: var(--r3x-text);
    border: 1px solid var(--r3x-accent);
}

.editor:focus {
    background: var(--r3x-bg-deep) linear-gradient(180deg, rgba(53, 170, 255, 0.10), rgba(53, 170, 255, 0) 70%) repeat-x;
    color: var(--r3x-text);
    border: 1px solid var(--r3x-accent);
}

/* The quick buttons */
.quickbuttons {
	margin: 0 0 5px;
	clear: right;
	float: right;
	text-align: right;
}
#recent .quickbuttons {
	margin: 0;
}

.quickbuttons li {
	background: transparent;
	border: none;
	box-shadow: none;
	border-radius: 0px;
}

.quickbuttons li:hover {
	background: transparent;
	border: none;
	box-shadow: none;
	border-radius: 0px
}

.quickbuttons li ul, .quickbuttons li ul li:hover, .quickbuttons ul li a:focus {
	background: var(--r3x-accent);
    background: linear-gradient(180deg, var(--r3x-accent) 0%, var(--r3x-accent-deep) 100%);
	border-radius: 0px;
	color: var(--r3x-text);
}
.quickbuttons li ul li a:hover, .quickbuttons ul li a:focus, .post_options ul, .post_options ul a:hover {
	background: rgba(53, 170, 255, 0.12);
	color: var(--r3x-text);
	box-shadow: none;
	text-shadow: none;
}
.quickbuttons > li:first-child > a {

    border-radius: 4px 0 0 4px;

}
.quickbuttons > li:first-child > a {

    border-radius: 4px 0 0 4px;

}
.quickbuttons > li:hover > a, .quickbuttons > li > a:focus {
	background: var(--r3x-accent);
    background: linear-gradient(180deg, var(--r3x-accent) 0%, var(--r3x-accent-deep) 100%);
    color: var(--r3x-text);
    border-color: rgba(255,255,255,0.1);
    box-shadow: none;
    text-decoration: none;

}
.quickbuttons > li {
	float: left;
}

.quickbuttons > li > a {
	background: var(--r3x-bg-blue) linear-gradient(180deg, rgba(113, 216, 255, 0.16), rgba(53, 170, 255, 0) 70%) repeat-x;
}

.quickbuttons > li > a, .inline_mod_check {
	display: block;
	height: auto;
	padding: 0 4px;
	color: var(--r3x-text);
	line-height: 1.375rem;
	border-radius: 0;
}
.quickbuttons > li:first-child > a {
	border-radius: 4px 0 0 4px;
}
.quickbuttons > li:last-child > a, .inline_mod_check:last-child {
	border-radius: 0 4px 4px 0;
}
.quickbuttons > li:only-child > a, .inline_mod_check:only-child {
	border-radius: 4px;
	margin: 2px;
	height: 23px;
}

.quickbuttons > li > a, .inline_mod_check {
    display: inline-block;
    padding: 0 8px;
    color: var(--r3x-text);
    font-size: 0.7rem;
    line-height: 2em;
    text-transform: uppercase;
    cursor: pointer;
    min-height: calc(2em + 2em * (0.9 - 0.85));
    border: 1px solid var(--r3x-bg-blue);
    border-radius: 3px;
    box-shadow: none;
    box-sizing: border-box;
    vertical-align: middle;
}

.post_options ul a {
    display: block;
    width: 12em;
    padding: 0 6px;
      line-height: 2.2em;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 3px;
    color: var(--r3x-text);
}

/* Admin Area Stuff */

#manage_boards li.windowbg {
	padding: 8px 0;
    padding-left: 0px;
    margin: 0;
    border-radius: 0;
	border: 1px solid !important;
	border-color: var(--r3x-line-soft) var(--r3x-bg-dark) var(--r3x-bg-dark) var(--r3x-line-soft) !important;
}

#manage_boards .button {
    color: var(--r3x-text);
}

#manage_boards li.windowbg:hover {
    background: var(--r3x-bg-deep) !important;
}

#manage_boards li.redirect_board {
	background-color: var(--r3x-bg-deep) !important;
}

#manage_boards li.redirect_board:hover {
	background: var(--r3x-bg-deep) !important;
}

#admin_login .centertext {
    padding: 12px;
    background: var(--r3x-panel);
}
.action_admin .table_grid td {
	border: 1px solid var(--r3x-accent) !important;
}

tr.windowbg:hover {
    background: var(--r3x-panel);
}

h3.config_hd {
    padding: 8px 0 8px 45px;
    color: var(--r3x-text);
	text-shadow: 2px 2px 2px rgba(0,0,0,.2);
}

/*Code Box,Quote Box etc */
.bbc_code {
    display: block;
    font-size: 0.85em;
    background: rgba(0,0,0,.2);
    border: 1px solid var(--r3x-accent);
    border-radius: 2px;
    margin: 1px 0 6px 0;
    padding: 3px 12px;
    overflow: auto;
    white-space: nowrap;
    max-height: 25em;
}

.bbc_standard_quote {
    background-color: rgba(0,0,0,.2);
}

.bbc_alternate_quote {
    background-color: rgba(0,0,0,.2);
}

blockquote {
    margin: 0 0 8px 0;
    padding: 6px 10px;
    font-size: small;
    border: 1px solid var(--r3x-accent);
}

blockquote cite {
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9em;
    margin-bottom: 3px;
}

/* Resposive Stuff  */ 
@media only screen and (max-width: 550px) {
.cat_bar .desc {
    display: none;
}
}

@media screen and (max-width: 720px) {
#header {

    margin-left: 0;
    margin-right: 0;
    width: 100%;

}
}

@media (max-width: 560px) {
#main_menu {
	background: transparent!important;
	border: none!important;
	margin: 0px!important;
	height: 0px!important;
}

#top_info {
  padding: 0px!important;
}
#top_info > li > a {
	padding: 2px 7px 4px 7px!important;
	margin-top: 0px;
}
}

@media screen and (max-width: 855px) {
.subbg_stats {
    display: none;
}
}
@media screen and (max-width: 1024px) {
.subbg_board {
  width: 70%;
}
.subbg_stats {
 width: 10%;
}
}


@media only screen and (max-width: 720px) {
.subbg_lastpost {
    display: none;
}
}
@media screen and (max-width: 720px) {
	.up_contain .lastpost {
		border-top: 1px solid var(--r3x-line-soft)!important;
		box-shadow: 0px 0px 1px 1px var(--r3x-bg-dark)!important;
		min-height: initial;
}
}
@media (min-width: 481px) and (max-width: 720px) {
.up_contain .lastpost {
		border-top: 1px solid var(--r3x-line-soft)!important;
		box-shadow: 0px 0px 1px 1px var(--r3x-bg-dark)!important;
		min-height: initial;
}
}

@media (max-width: 480px) {
h1.forumtitle a, h1.forumtitle {
  padding: 0px 0px 5px 0px !important;
  max-width: 374px !important;
  margin: 10px 0;
}
}

#main_menu {
	background: var(--r3x-bg-blue) linear-gradient(180deg, rgba(113, 216, 255, 0.16), rgba(53, 170, 255, 0) 70%) repeat-x;
    margin: 0;
	border-top: 1px solid var(--r3x-accent);
	border-bottom: 1px solid var(--r3x-accent);
	padding: 0px;
}


/* Styles for the standard dropdown menus.
------------------------------------------------------- */
.dropmenu, #top_info {
	position: relative;
}
/* Level 1 button background. */
ul.dropmenu {
	font-size: 0em;
}

.dropmenu > li {
	display: inline-block;
	margin: 0px;
	font-size: 0.78rem;
	line-height: 1.9em;
}	

#top_info > li {
	display: inline-block;
	margin: 0 2px 0 2px;
	font-size: 0.9em;
	line-height: 1.9em;
}
/* Disable default focus outlines */
.dropmenu a {
	outline: 0;
}
/* For cases where we want to spotlight something specific to an item, e.g. an amount */
.amt {
	margin-left: 3px;
	padding: 0 5px;
	color: rgb(255,255,255);
	background: rgba(0, 0, 0, 0.3);
	border-radius: 7px;
	text-shadow: 0px 1px 1px rgba(0,0,0, 0.3);
	box-shadow: 0px 0px 1px 1px rgb(0,0,0);
}
.dropmenu li .active .amt, #top_info li .active .amt {
	background: rgba(0, 0, 0, 0.3);
	color: inherit;
}
#top_info .top_menu.visible {
	display: block;
	background: var(--r3x-bg-deep) linear-gradient(180deg, rgba(53, 170, 255, 0.10), rgba(53, 170, 255, 0) 70%) repeat-x;
	border: 1px solid transparent;
}
/* Needed for new PM notifications. */
.dropmenu li strong {
	color: var(--r3x-text);
}

.dropmenu li a {
	background: linear-gradient(180deg, rgba(53, 170, 255, 0) 0%, rgba(53, 170, 255, 0.4) 50%, rgba(53, 170, 255, 0) 100%) bottom right / 1px 100% repeat-y;
	padding: 4px 10px 5px 10px;
	display: block;
	border: none;
	border-radius: 0px;
	color: var(--r3x-text);
	font-weight: bold;
}	

#top_info > li > a {
    padding: 3px 7px 4px 7px;
    display: block;
    border: none;
    border-radius: 0px;
}
/* Level 1 active button. */
.dropmenu a.active {
	background: var(--r3x-accent);
    background: linear-gradient(180deg, var(--r3x-accent) 0%, var(--r3x-accent-deep) 100%);
	color: var(--r3x-text);
	font-weight: bold;
	text-shadow: 0 0 2px #000;
	border: none;
}

.dropmenu a:hover {
	background: linear-gradient(180deg, rgba(53, 170, 255, 0) 0%, rgba(53, 170, 255, 0.4) 50%, rgba(53, 170, 255, 0) 100%) bottom right / 1px 100% repeat-y;
}

#top_info a.active {
	background: var(--r3x-accent);
    background: linear-gradient(180deg, var(--r3x-accent) 0%, var(--r3x-accent-deep) 100%);
	color: var(--r3x-text);
	font-weight: bold;
	text-shadow: 0 0 2px #000;
	border: none;
}

/* Level 1 hover effects. */
.dropmenu > li:hover > a, .dropmenu > li > a:focus {
	background: var(--r3x-accent);
    background: linear-gradient(180deg, var(--r3x-accent) 0%, var(--r3x-accent-deep) 100%);
	border: none;
	color: var(--r3x-text);
	cursor: pointer;
	text-decoration: none;
	box-shadow: none;
	text-shadow: 0 0 2px #000;
}


#top_info > li:hover > a, #top_info > li > a:focus, #top_info > li > a.open {
	background: var(--r3x-accent);
    background: linear-gradient(180deg, var(--r3x-accent) 0%, var(--r3x-accent-deep) 100%);
	border: none;
	color: var(--r3x-text);
	cursor: pointer;
	text-decoration: none;
	box-shadow: none;
	text-shadow: 0 0 2px #000;
}
/* Level 1 active button. */
.dropmenu li a.active:hover, .dropmenu li:hover a.active {
	background: var(--r3x-accent);
    background: linear-gradient(180deg, var(--r3x-accent) 0%, var(--r3x-accent-deep) 100%);
	border: none;
	color: var(--r3x-text);
	box-shadow: none;
	text-shadow: 0px 0px 2px #000;
}
/* User information. */
#profile_menu_top::after {
	content: " \25BC";
}
.profile_user_info, .profile_user_avatar {
	display: inline-block;
	margin: 0 9px;
	vertical-align: middle;
}
.profile_user_avatar img.avatar {
	max-width: 100px;
}
.profile_username {
	font-size: 150%;
	display: block;
}
.profile_user_links ol {
	margin-left: 10px;
	clear: both;
	column-count: 2;
}
.profile_user_links li {
	font-size: .8rem;
	line-height: 2em;
	padding-left: 24px;
	text-indent: -24px;
	-webkit-hyphens: auto;
	hyphens: auto;
}
/* Fixes bug with border-box on scrollable js */
.scrollable,
.scrollable *,
#profile_menu {
	box-sizing: content-box;
}
.top_menu.scrollable {
	max-height: 30em;
}
.pm_unread, .alerts_unread {
	margin-top: 5px;
	border-top: 1px solid var(--r3x-accent);
}
.unread_notify {
	border-bottom: 1px solid var(--r3x-accent);
}
.no_unread {
	margin-top: 5px;
	text-align: center;
}
.unread_notify:hover {
	background: #eee;
	text-decoration: none;
}
.unread_notify:last-child {
	border-bottom: none;
}
.unread_notify {
	display: flex;
	align-items: center;
	padding: 6px 5px;
	line-height: 20px;
}
.unread_notify.alert_read {
	opacity: 0.5;
	outline: none;
	filter: grayscale(1);
}
.unread_notify strong {
	font-weight: 600;
}
.unread_notify .avatar {
	width: 40px;
	height: 40px;
	object-fit: scale-down;
	margin: 4px 4px 4px 0;
	display: inline-block;
	color: transparent; /* For broken images */
	vertical-align: bottom;
}
.unread_notify_image {
	position: relative;
	width: 44px;
	margin-right: 4px;
	text-align: center;
}
.unread_notify_image span.alert_icon {
	display: block;
	line-height: 1em;
}
.unread_notify_image .avatar + .alert_icon {
	width: auto;
	position: absolute;
	right: 0;
	top: 0;
}
.unread_notify .details {
	display: inline-block;
	vertical-align: top;
	max-width: calc(100% - 48px);
}
#pm_menu .subject {
	font-weight: bold;
}

/* Styles used by the auto suggest control.
------------------------------------------------------- */
.auto_suggest_div {
	position: absolute;
	visibility: hidden;
	border-radius: 3px;
	outline: none !important;
	border: 1px solid var(--r3x-bg-blue);
	z-index: 100;
}
.auto_suggest_item {
	background: var(--r3x-bg-deep) linear-gradient(180deg, rgba(53, 170, 255, 0.10), rgba(53, 170, 255, 0) 70%) repeat-x;
	color: var(--r3x-text);
	padding: 1px 4px;
}
.auto_suggest_item_hover {
	background: var(--r3x-bg-deep) linear-gradient(180deg, rgba(53, 170, 255, 0.10), rgba(53, 170, 255, 0) 70%) repeat-x;
	color: rgb(255,255,255);
	padding: 1px 4px;
}

/* Levels 2 and 3 submenu wrapper. */
.dropmenu li ul {
	background: var(--r3x-bg-deep) linear-gradient(180deg, rgba(53, 170, 255, 0.10), rgba(53, 170, 255, 0) 70%) repeat-x;
	z-index: 90;
	position: absolute;
	display: none;
	min-width: 18.2em;
	padding: 0.5em;
	font-weight: normal;
	border: solid 1px rgba(0,0,0,0.2);
	border-radius: 4px;
	box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.3);
	margin: 2px 0px 0px 0px;
}

.top_menu {
	z-index: 90;
	position: absolute;
	display: none;
	min-width: 18.2em;
	padding: 0.5em;
	font-weight: normal;
	border: solid 1px #999;
	border-left: solid 1px #bbb;
	border-top: solid 1px #ccc;
	border-radius: 4px;
	box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.3);
	background: #fff;
}
/* Level 2 link background. */
.dropmenu li li {
	margin: 0;
	padding: 0;
	width: 17em;
	font-size: 1em;
	border-radius: 3px;
	border: 1px solid transparent;
}
/* Necessary to allow highlighting of 1st level while hovering over submenu. */
.dropmenu li:hover li a {
	background: none;
	padding: 0 9px;
	color: var(--r3x-text);
	border: none;
	line-height: 2.2em;	
}

.dropmenu li li a {
	background: none;
	padding: 0 9px;
	color: var(--r3x-text);
	border: none;
	line-height: 2.2em;
}

.dropmenu li li a > img {
	vertical-align: middle;
}
/* The profile/pm menus are declared off .dropmenu li ul for consistency but have other characteristics. */
.top_menu {
	min-width: 25em;
}
.top_menu .login {
	width: 100%;
}
.top_menu .login dt {
	text-align: left;
	width: 55%;
}
.top_menu .login dd {
	width: 43%;
}
.top_menu .login input {
	width: 90%;
}
/* Note: The next declarations are for keyboard access with js disabled. */
.dropmenu ul a:focus, .dropmenu ul ul a:focus {
	margin-left: 9990px;
	border: none;
	width: 17em;
}
.dropmenu ul ul a:focus {
	margin-left: 19950px;
}
/* Cancel those for hover and/or js access. */
.dropmenu ul li:hover a:focus, .dropmenu ul li a:focus {
	margin-left: 0;
	width: auto;
}
/* Level 3 submenu wrapper positioning. */
.dropmenu li ul ul {
	margin: -2em 0 0 15.3em;
}
/* Level 3 maintains font-size the same as Level 2. */
.dropmenu li li li a {
	font-size: 1em;
}
/* Levels 2 and 3 hover effects. */
.dropmenu li li:hover {
	border: none;
}

.dropmenu li li:hover > a, .dropmenu li li a:focus, .dropmenu li li a:hover {
	color: var(--r3x-text);
	text-decoration: none;
	border: 1px solid transparent;
}
/* Reposition Level 2 submenu as visible on hover. */
.dropmenu li:hover ul {
	display: block;
}
/* Hiding Level 3 submenu off hover. */
.dropmenu li:hover ul ul, .dropmenu li ul ul, .dropmenu li:hover ul ul ul, .dropmenu li ul ul ul {
	left: -9999px;
}
/* Reposition as visible on hover. */
.dropmenu li li:hover ul, .dropmenu li li ul {
	left: -14px;
}
.dropmenu li li.subsections > a::after {
	position: absolute;
	padding: 5px 0;
	right: 10px;
	font: 83.33%/150% Arial, sans-serif;
	content: "\25ba";
}
/* Highlighting of current section */
.dropmenu li li a.chosen {
	font-weight: bold;
}

/* The extra menu rows for admin sections, etc. */
#adm_submenus {
	margin: 0 0 6px 0;
	overflow: hidden;
}

/* Styles for popup windows */
.popup_container {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(40, 64, 80, 0.5);
	z-index: 6;
}
.popup_window,
#main_menu .popup_window,
#genericmenu .popup_window {
	position: relative;
	width: auto;
	z-index: 99;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
	border: 1px solid var(--r3x-accent);
	border-radius: 7px 7px 3px 3px;
	margin: 0 auto;
	padding: 0;
    color: var(--r3x-accent-deep);
}
.popup_window {
	top: 15%;
	width: 480px;
	padding: 0 6px 6px 6px;
	background: var(--r3x-bg-deep) linear-gradient(180deg, rgba(53, 170, 255, 0.10), rgba(53, 170, 255, 0) 70%) repeat-x;
    color: var(--r3x-accent-deep);
}
.popup_heading {
	padding: 10px 8px;
	color: var(--r3x-line);
}
.popup_content {
	color: var(--r3x-line);
	line-height: 1.6em;
	max-height: 30em;
	overflow: auto;
	padding: 10px 8px;
	border: 1px solid transparent;
	background: var(--r3x-bg-deep) linear-gradient(180deg, rgba(53, 170, 255, 0.10), rgba(53, 170, 255, 0) 70%) repeat-x;
	box-shadow: 0 -2px 3px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(255, 255, 255, 0.2);
}
#genericmenu > .popup_container {
	z-index: 5;
}
.main_icons.hide_popup {
	float: right;
}
.popup_heading .icon {
	vertical-align: middle;
	margin: -4px 4px 0 0;
}

.generic_list_wrapper, .windowbg, .approvebg, .approvebg2 {
	background: #f0f4f7;
	margin: 12px 0 0 0;
	padding: 12px 16px;
	border: 1px solid var(--r3x-bg-blue);
	border-radius: 6px;
	box-shadow: 0 -2px 2px rgba(0, 0, 0, 0.1);
	overflow: auto;
}

/*SCEditor*/
div.sceditor-toolbar {
	flex-shrink: 0;
	overflow: hidden;
	padding: 3px 5px 2px;
	background: var(--r3x-bg-blue) linear-gradient(180deg, rgba(113, 216, 255, 0.16), rgba(53, 170, 255, 0) 70%) repeat-x;
	border-bottom: 1px solid var(--r3x-bg-blue);
	line-height: 0;
	text-align: left;
	user-select: none;
	border-radius: 3px 3px 0 0;
	background-clip: padding-box;
	margin: 0 0 5px;
}

.sceditor-container {
	background: var(--r3x-bg-blue) linear-gradient(180deg, rgba(113, 216, 255, 0.16), rgba(53, 170, 255, 0) 70%) repeat-x;
	border: 1px solid var(--r3x-bg-blue);
}

.sceditor-container iframe, .sceditor-container textarea {
	background: var(--r3x-bg-deep) linear-gradient(180deg, rgba(53, 170, 255, 0.10), rgba(53, 170, 255, 0) 70%) repeat-x;
	border: 1px solid var(--r3x-bg-blue);
	color: var(--r3x-text);
}

/* Calendar */

.day_text {
    color: var(--r3x-text);
}

#month_grid td.calendar_today a {
    text-decoration: none;
    background: rgba(0,0,0);
    color: var(--r3x-accent-light);
    text-shadow: 0 0 12px var(--r3x-glow);
    border-left: none;
}

.calendar_today, td.days:hover {
    background: rgb(0,0,0,1);
}

.descbox {
    padding: 7px 10px 7px 10px;
    border: 1px solid var(--r3x-accent);
    margin: 6px 0;
}

/* Other */
#pick_theme .selected {
    background: rgba(255, 255, 255, 0.2);
}

#detailedinfo dl, #tracking dl {
    clear: right;
    overflow: auto;
    margin: 0 0 18px 0;
    padding: 0 0 15px 0;
    border-bottom: 1px solid var(--r3x-bg-blue);
}


@media (max-width: 560px) {
.menu_icon {
    display: inline-block;
    background: url(../images/icons/menu.svg) no-repeat!important;
    height: 24px;
    width: 24px;
}
}

/* BoardStats Flex Grid Thingy thing thing */
.boardstats_grid_row {
    background: var(--r3x-panel);
    border: 1px solid;
    border-color: var(--r3x-line-soft) var(--r3x-bg-dark) var(--r3x-bg-dark) var(--r3x-line-soft);
    flex-basis: 100%;
    padding: 4px 10px;
    margin: 0px;
    text-align: left;
    font-size: 1em;
}

@media screen and (min-width:800px) {
 .boardstats_grid_column {
    display:flex;
    flex-direction:column;
    flex-wrap:nowrap
 }
 .boardstats_flex {
    flex:1
 }
}

/* Recent Flex Grid Thingy thing thing */
.recent_grid_column {
    background: var(--r3x-panel);
    border: 1px solid;
    border-color: var(--r3x-line-soft) var(--r3x-bg-dark) var(--r3x-bg-dark) var(--r3x-line-soft);
    flex-basis: 100%;
    padding: 2px 10px;
    margin: 0px;
    text-align: left;
    font-size: 1em;
}

@media screen and (min-width:800px) {
 .recent_grid_row {
    display:flex;
    flex-direction:row;
    flex-wrap:nowrap
 }
 .recent_grid_flex {
    flex:1
 }
}

/* Info Box Styles */
.errorbox {
	background-color: #fee;
	border-top: 2px solid #c34;
	border-bottom: 2px solid #c34;
	color: #000;
}
.noticebox {
	color: #000;
	background: #fff6ca;
	border-top: 1px solid #ffd324;
	border-bottom: 1px solid #ffd324;
}
.infobox {
	color: #000;
	background: #cfc;
	border-top: 1px solid green;
	border-bottom: 1px solid green;
}

a.moderation_link, a.moderation_link:visited {
	font-weight: bold;
	padding: 0px 8px;
	background: rgb(139,0,0);
	border-radius: 50%;
}

.attach-ui.roundframe {
    border: 1px solid var(--r3x-accent);
}

/* ==========================================================================
   R3X dark blue glow layer
   Loaded last, so it overrides everything above without !important.
   All colours come from the :root block at the top of this file.
   ========================================================================== */

/* --- page backdrop: faint grid, masked towards the edges ------------------ */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.5;
	background:
		linear-gradient(90deg, rgba(0, 168, 255, 0.06) 1px, transparent 1px) 0 0 / 90px 90px,
		linear-gradient(0deg, rgba(0, 168, 255, 0.04) 1px, transparent 1px) 0 0 / 90px 90px;
	-webkit-mask-image: radial-gradient(circle at 50% 35%, black, transparent 78%);
	mask-image: radial-gradient(circle at 50% 35%, black, transparent 78%);
}
#top_section, #header, #wrapper, #content_section, #footer {
	position: relative;
	z-index: 1;
}

/* --- header and footer ---------------------------------------------------- */
#header {
	border-bottom: 1px solid var(--r3x-line-soft);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}
#footer {
	border-top: 1px solid var(--r3x-line-faint);
	color: var(--r3x-text-muted);
}
#footer a {
	color: var(--r3x-text-soft);
}

/* --- main menu ------------------------------------------------------------ */
.dropmenu a, #top_info a {
	transition: color .15s, background .15s, box-shadow .15s;
}
.dropmenu li a:hover, #top_info > li > a:hover {
	color: #fff;
	box-shadow: inset 0 -2px 0 var(--r3x-line), 0 6px 20px -10px var(--r3x-glow);
}
.dropmenu a.active, #top_info a.active {
	background: linear-gradient(180deg, rgba(53, 170, 255, 0.22), rgba(6, 39, 90, 0.9));
	box-shadow: inset 0 -2px 0 var(--r3x-line), 0 6px 22px -10px var(--r3x-glow);
	text-shadow: 0 0 14px var(--r3x-glow);
}

/* --- category and title bars ---------------------------------------------- */
div.cat_bar, .cat_bar, .title_bar {
	border: 1px solid var(--r3x-line-soft);
	border-bottom: none;
	border-radius: 10px 10px 0 0;
	box-shadow: 0 0 24px -6px var(--r3x-glow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
h3.catbg, h3.catbg a, h4.catbg, .cat_bar h3 {
	color: #fff;
	text-shadow: 0 0 16px var(--r3x-glow);
	letter-spacing: 0.03em;
}
h3.titlebg, h4.titlebg {
	color: var(--r3x-text);
	text-shadow: 0 0 10px rgba(0, 195, 255, 0.35);
}

/* --- panels --------------------------------------------------------------- */
.windowbg, .roundframe, .bordercolor {
	border-color: var(--r3x-line-faint);
	background: linear-gradient(135deg, var(--r3x-panel-soft), rgba(2, 22, 52, 0.62));
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.30);
}
.roundframe {
	border: 1px solid var(--r3x-line-faint);
	border-radius: 0 0 10px 10px;
}

/* --- board index: sprite icons replaced by CSS glow discs ----------------- */
.board_icon a {
	width: 34px;
	height: 34px;
	margin-top: 5px;
	border-radius: 50%;
	border: 1px solid var(--r3x-line-soft);
	background: radial-gradient(circle at 50% 35%, rgba(113, 216, 255, 0.55), rgba(10, 107, 212, 0.25) 60%, transparent 72%);
	box-shadow: 0 0 18px -2px var(--r3x-glow), inset 0 0 10px rgba(113, 216, 255, 0.35);
	transition: box-shadow .18s, border-color .18s;
}
.board_icon a.board_off {
	border-color: rgba(79, 147, 207, 0.35);
	background: radial-gradient(circle at 50% 35%, rgba(79, 147, 207, 0.22), transparent 68%);
	box-shadow: none;
}
.board_icon a.board_redirect {
	border-style: dashed;
	border-color: var(--r3x-line-soft);
	background: radial-gradient(circle at 50% 35%, rgba(113, 216, 255, 0.25), transparent 70%);
	box-shadow: none;
}
.board_icon a:hover {
	border-color: var(--r3x-line);
	box-shadow: 0 0 26px -2px var(--r3x-glow), inset 0 0 12px rgba(113, 216, 255, 0.45);
}
.up_contain {
	transition: background .15s;
}
.up_contain:hover {
	background: rgba(53, 170, 255, 0.06);
}
.info a, .board_description a {
	color: var(--r3x-text);
}
.info a:hover {
	color: #fff;
	text-shadow: 0 0 14px var(--r3x-glow);
}
.board_stats, .lastpost, .smalltext {
	color: var(--r3x-text-muted);
}
.lastpost a {
	color: var(--r3x-text-soft);
}

/* --- buttons -------------------------------------------------------------- */
.button, .buttonlist a.button, input[type=submit], input[type=button], button {
	border: 1px solid var(--r3x-line-soft);
	border-radius: 8px;
	color: var(--r3x-text);
	transition: filter .15s, box-shadow .15s, transform .12s, border-color .15s;
}
.button:hover, .buttonlist a.button:hover, input[type=submit]:hover, input[type=button]:hover, button:hover {
	border-color: var(--r3x-line);
	box-shadow: 0 0 22px -4px var(--r3x-glow);
	transform: translateY(-1px);
}
input[type=submit], .button.active, td.submitbutton input {
	color: #03264c;
	background: var(--r3x-btn);
	border-color: rgba(191, 244, 255, 0.88);
	box-shadow: 0 0 24px -4px rgba(0, 166, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.55);
	text-shadow: none;
	font-weight: 700;
}
input[type=submit]:hover {
	filter: brightness(1.08);
	box-shadow: 0 0 34px -2px rgba(0, 166, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* --- pagination ----------------------------------------------------------- */
.pagelinks a, .pagelinks .current_page, .navPages {
	border-radius: 6px;
}
.pagelinks .current_page {
	color: #fff;
	border: 1px solid var(--r3x-line);
	background: rgba(53, 170, 255, 0.16);
	box-shadow: 0 0 16px -3px var(--r3x-glow);
}

/* --- posts ---------------------------------------------------------------- */
.poster {
	background: rgba(2, 18, 44, 0.45);
	border-right: 1px solid var(--r3x-line-faint);
}
.poster h4 a, .poster .name a {
	color: #fff;
}
.keyinfo {
	border-bottom: 1px solid var(--r3x-line-faint);
}
.keyinfo h5 a {
	color: var(--r3x-text);
}
.post .inner a, .inner a {
	color: var(--r3x-text-soft);
}
.post .inner a:hover {
	color: #fff;
	text-shadow: 0 0 12px var(--r3x-glow);
}

/* --- quotes and code ------------------------------------------------------ */
.quoteheader, .codeheader {
	color: var(--r3x-text-soft);
	border: none;
}
blockquote.bbc_standard_quote, blockquote.bbc_alternate_quote {
	border: none;
	border-left: 3px solid var(--r3x-line);
	border-radius: 0 8px 8px 0;
	background: rgba(53, 170, 255, 0.08);
	box-shadow: -6px 0 18px -10px var(--r3x-glow);
	color: rgba(232, 246, 255, 0.82);
}
code.bbc_code {
	border: 1px solid var(--r3x-line-faint);
	border-radius: 8px;
	background: rgba(2, 8, 19, 0.75);
	color: #9fe0ff;
}

/* --- forms ---------------------------------------------------------------- */
input[type=text], input[type=password], input[type=email], input[type=url],
input[type=search], input[type=number], input[type=tel], select, textarea {
	border: 1px solid var(--r3x-line-faint);
	border-radius: 8px;
	background: rgba(2, 12, 30, 0.7);
	color: var(--r3x-text);
	transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder {
	color: rgba(79, 147, 207, 0.7);
}
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--r3x-line);
	box-shadow: 0 0 0 3px rgba(53, 170, 255, 0.16), 0 0 20px -6px var(--r3x-glow);
}

/* --- notices -------------------------------------------------------------- */
.infobox, .noticebox, .descbox {
	border: 1px solid var(--r3x-line-soft);
	border-radius: 8px;
	background: rgba(53, 170, 255, 0.09);
	box-shadow: 0 0 24px -8px var(--r3x-glow);
	color: var(--r3x-text);
}
.errorbox {
	border: 1px solid rgba(255, 96, 96, 0.55);
	border-radius: 8px;
	background: rgba(120, 20, 32, 0.28);
	box-shadow: 0 0 24px -8px rgba(255, 80, 80, 0.5);
	color: var(--r3x-text);
}

/* --- misc ----------------------------------------------------------------- */
hr, .hrcolor {
	border: none;
	border-top: 1px solid var(--r3x-line-faint);
}
::selection {
	background: var(--r3x-accent);
	color: #03264c;
	text-shadow: none;
}
a {
	transition: color .15s, text-shadow .15s;
}

/* --- Curve2 leftovers: dark text that would now sit on dark panels -------- */
input, button, select, textarea {
	color: var(--r3x-text);
}
.subject_title a, .keyinfo .postinfo .modified, .counter,
#detailedinfo dt, #tracking dt, dl.addrules dt.floatleft,
.coppa_contact, #post_draft_options .settings strong,
#ic_recentposts .recenttime strong, .popup_content {
	color: var(--r3x-text);
}
.dropmenu li:hover li a, .dropmenu li li a,
.dropmenu li li:hover > a, .dropmenu li li a:focus, .dropmenu li li a:hover {
	color: var(--r3x-text);
}
.quickbuttons > li > a, .inline_mod_check,
.quickbuttons > li:hover > a, .quickbuttons > li > a:focus {
	color: var(--r3x-text);
}
.tooltip {
	color: var(--r3x-text);
	background: rgba(2, 12, 30, 0.95);
	border: 1px solid var(--r3x-line-soft);
	box-shadow: 0 0 24px -8px var(--r3x-glow);
}

/* calendar markers: keep the semantics, lift them off the dark background */
.birthday {
	color: #d98cff;
}
.event {
	color: #6ee787;
}
.holiday > span {
	color: var(--r3x-text-soft);
}

/* --- Curve2 leftovers: light surfaces that were never overridden ---------- */
.button:hover, #search_form .button:hover, .quickbuttons li:hover {
	background: linear-gradient(180deg, rgba(53, 170, 255, 0.28), rgba(6, 39, 90, 0.92));
}
.popup_content, .atwho-view, #ajax_in_progress, .coppa_contact {
	background: var(--r3x-bg-deep);
	border-color: var(--r3x-line-faint);
}
.auto_suggest_item, .unread_notify:hover, .activity_stats li span {
	background: rgba(53, 170, 255, 0.12);
}
.auto_suggest_item_hover {
	background: rgba(53, 170, 255, 0.24);
	color: var(--r3x-text);
}
.unread_pm {
	background: rgba(53, 170, 255, 0.14);
}
.generic_bar, .progress_bar {
	background: rgba(2, 12, 30, 0.7);
	border: 1px solid var(--r3x-line-faint);
}
input[disabled], textarea[disabled], select[disabled],
.button.disabled, .button[disabled]:hover {
	background: rgba(2, 12, 30, 0.5);
	color: var(--r3x-text-muted);
	border-color: var(--r3x-line-faint);
}

/* --- board and topic rows as self-contained cards ------------------------ */
.up_contain, #messageindex .windowbg {
	border: 1px solid var(--r3x-line-faint);
	border-left: 2px solid var(--r3x-line-soft);
	border-radius: 10px;
	margin: 0 0 10px 0;
	overflow: hidden;
	box-shadow: 0 12px 28px -20px #000;
	transition: border-color .15s, box-shadow .15s;
}
.up_contain:hover, #messageindex .windowbg:hover {
	border-color: var(--r3x-line-soft);
	border-left-color: var(--r3x-line);
	box-shadow: 0 12px 28px -20px #000, 0 0 22px -10px var(--r3x-glow-soft);
}
/* the sub-board strip sits inside the row, so let the radius clip it */
.children {
	border-top: 1px solid var(--r3x-line-faint) !important;
	box-shadow: none !important;
	background: rgba(2, 12, 30, 0.35);
}

/* --- category bar keeps a hard divider; first card sits flush under it ---- */
div.cat_bar, .cat_bar, .title_bar {
	border-bottom: 1px solid var(--r3x-line-soft);
}
[id^='category_'] > .up_contain:first-child,
.up_contain:first-child,
#messageindex .windowbg:first-child {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-top-color: transparent;
}

/* --- main menu: one closed rounded outline instead of two mismatched ones - */
#main_menu {
	border-top: none;
	border-bottom: none;
	background: none;
}
#main_menu > .popup_container > .popup_window {
	border: 1px solid var(--r3x-accent);
	border-radius: 8px;
	background: var(--r3x-bg-blue) linear-gradient(180deg, rgba(113, 216, 255, 0.16), rgba(53, 170, 255, 0) 70%) repeat-x;
	box-shadow: 0 0 22px -8px var(--r3x-glow-soft);
}
/* first item must follow the corner, otherwise it sits square inside it */
.dropmenu.menu_nav > li:first-child > a {
	border-top-left-radius: 7px;
	border-bottom-left-radius: 7px;
}

/* --- base font size: single knob, everything else is em-relative --------- */
body {
	font-size: 90%;
}
/* the few hard-coded px sizes, converted so they scale with the base */
.cat_bar .desc {
	font-size: 0.85em;
}
.new_posts {
	font-size: 0.72em;
}
.display_title {
	font-size: 1.8em;
}

/* --- top bar pulled itself 11px past the viewport, forcing a h-scrollbar -- */
#top_section {
	margin: 0;
}

/* --- 'started by' line: same muted blue as the stats column -------------- */
#messageindex .info p.floatleft,
#messageindex .info p.floatleft a {
	color: var(--r3x-text-muted);
}
#messageindex .info p.floatleft a:hover {
	color: var(--r3x-text-soft);
}
