/* ==========================================================================
   DARK MODE for forum.micro-gis.com (prosilver, phpBB 3.3)
   Generated by gen_dark.py from prosilver + extension stylesheets (site-sources/forum).
   Every dark rule starts with html.darkmode — the light theme is untouched.
   The old "filter: invert()" approach is gone: images, flags and avatars keep their real colours.
   ========================================================================== */

html.darkmode { color-scheme: dark; }

/* ==========================================================================
   RED STICKY TOPIC HIGHLIGHT (light theme, unchanged from the original plugin file)
   ========================================================================== */
li.row.sticky {
	border-top-color:  red;
	border-bottom-color: red;
	background-color: #F06000;
}

li.row.sticky:hover {
	background-color: #ECD5D8;
}

/* ==========================================================================
   GENERATED: dark counterparts of every colour rule
   ========================================================================== */

/* ---- from styles/prosilver/theme/base.css */
html.darkmode body {
	color: #c4ccd4;
	background-color: #07141f;
}
html.darkmode hr {
	border-top: 1px solid #13202d;
}
html.darkmode a {
	color: #2e7dbf;
}
html.darkmode a:hover, html.darkmode a:focus, html.darkmode a:active {
	color: #6fade6;
}
html.darkmode button {
	background: transparent;
}

/* ---- from styles/prosilver/theme/content.css */
html.darkmode ul.topiclist dd {
	border-left: 1px solid transparent;
}
html.darkmode li.row {
	border-top: 1px solid transparent;
	border-bottom: 1px solid transparent;
}
html.darkmode .content h2, html.darkmode .panel h2 {
	border-bottom: 1px solid transparent;
}
html.darkmode .signature {
	border-top: 1px solid transparent;
}
html.darkmode .notice {
	border-top: 1px dashed transparent;
}
html.darkmode blockquote {
	border: 1px solid transparent;
}
html.darkmode .codebox {
	border: 1px solid transparent;
}
html.darkmode .codebox p {
	border-bottom: 1px solid transparent;
}
html.darkmode .attachbox {
	border: 1px dashed transparent;
}
html.darkmode .attachbox dd {
	border-top: 1px solid transparent;
}
html.darkmode .attach-image img {
	border: 1px solid transparent;
}
html.darkmode dl.thumbnail img {
	border: 1px solid transparent;
}
html.darkmode dl.thumbnail dt a:hover img {
	border: 1px solid transparent;
}
html.darkmode fieldset.polls dl {
	border-top: 1px solid transparent;
}
html.darkmode .pollbar1, html.darkmode .pollbar2, html.darkmode .pollbar3, html.darkmode .pollbar4, html.darkmode .pollbar5 {
	border-bottom: 1px solid transparent;
	border-right: 1px solid transparent;
}
html.darkmode .postprofile {
	border: 1px solid transparent;
}
html.darkmode .postbody .content::-webkit-scrollbar, html.darkmode .topicreview::-webkit-scrollbar, html.darkmode .post_details::-webkit-scrollbar, html.darkmode .codebox code::-webkit-scrollbar, html.darkmode .attachbox dd::-webkit-scrollbar, html.darkmode .attach-image::-webkit-scrollbar, html.darkmode .dropdown-extended ul::-webkit-scrollbar {
	background: rgba(225, 233, 241, 0.1);
}
html.darkmode .postbody .content::-webkit-scrollbar-thumb, html.darkmode .topicreview::-webkit-scrollbar-thumb, html.darkmode .post_details::-webkit-scrollbar-thumb, html.darkmode .codebox code::-webkit-scrollbar-thumb, html.darkmode .attachbox dd::-webkit-scrollbar-thumb, html.darkmode .attach-image::-webkit-scrollbar-thumb, html.darkmode .dropdown-extended ul::-webkit-scrollbar-thumb {
	background: rgba(225, 233, 241, 0.3);
}

/* ---- from styles/prosilver/theme/colours.css */
html.darkmode, html.darkmode body {
	color: #91a5c7;
	background-color: #0b1824;
}
html.darkmode h1 {
	color: #07141f;
}
html.darkmode h2 {
	color: #c2cee1;
}
html.darkmode h3 {
	border-bottom-color: #222f3c;
	color: #76b7ff;
}
html.darkmode hr {
	border-color: #07141f;
	border-top-color: #222f3c;
}
html.darkmode a {
	color: #7abcfd;
}
html.darkmode a:hover {
	color: #e55c69;
}
html.darkmode .forumbg .header a, html.darkmode .forabg .header a, html.darkmode th a {
	color: #07141f;
}
html.darkmode .forumbg .header a:hover, html.darkmode .forabg .header a:hover, html.darkmode th a:hover {
	color: #002d4a;
}
html.darkmode .dropdown-extended a.mark_read {
	background-color: #07141f;
}
html.darkmode .postlink {
	border-bottom-color: #1f7ec8;
	color: #1f7ec8;
}
html.darkmode .postlink:visited {
	border-bottom-color: #4377a6;
	color: #4377a6;
}
html.darkmode .postlink:hover {
	background-color: #132330;
	color: #8ec7ff;
}
html.darkmode .signature a, html.darkmode .signature a:hover {
	background-color: transparent;
}
html.darkmode .top i {
	color: #52616f;
}
html.darkmode .arrow-left:hover, html.darkmode .arrow-right:hover {
	color: #1f7ec8;
}
html.darkmode .wrap {
	background-color: #07141f;
	border-color: #111e2a;
}
html.darkmode .headerbar {
	color: #07141f;
}
html.darkmode .headerbar, html.darkmode .forumbg {
	background-color: #0066ae;
	background-image: -webkit-linear-gradient(top, #003b53 0%, #399edf 2px, #0066ae 92px, #0066ae 100%);
	background-image: linear-gradient(to bottom, #003b53 0%,#399edf 2px,#0066ae 92px,#0066ae 100%);
}
html.darkmode .forabg {
	background-color: #399edf;
	background-image: -webkit-linear-gradient(top, #003b53 0%, #0066ae 2px, #399edf 92px, #399edf 100%);
	background-image: linear-gradient(to bottom, #003b53 0%,#0066ae 2px,#399edf 92px,#399edf 100%);
}
html.darkmode .navbar {
	background-color: #192732;
}
html.darkmode .panel {
	background-color: #0e1b27;
	color: #c2cee1;
}
html.darkmode .post:target .content {
	color: #e1e9f1;
}
html.darkmode .post h3 a.first-unread, html.darkmode .post:target h3 a {
	color: #e1e9f1;
}
html.darkmode .bg1 {
	background-color: #0d1a26;
}
html.darkmode table.zebra-list tr:nth-child(odd) td, html.darkmode ul.zebra-list li:nth-child(odd) {
	background-color: #0d1a26;
}
html.darkmode .bg2 {
	background-color: #111e2a;
}
html.darkmode table.zebra-list tr:nth-child(even) td, html.darkmode ul.zebra-list li:nth-child(even) {
	background-color: #111e2a;
}
html.darkmode .bg3 {
	background-color: #192732;
}
html.darkmode .ucprowbg {
	background-color: #172431;
}
html.darkmode .fieldsbg {
	background-color: #121f2b;
}
html.darkmode ul.navlinks {
	border-top-color: #07141f;
}
html.darkmode table.table1 thead th {
	color: #07141f;
}
html.darkmode table.table1 tbody tr {
	border-color: #293644;
}
html.darkmode table.table1 tbody tr:hover, html.darkmode table.table1 tbody tr.hover {
	background-color: #162333;
	color: #e1e9f1;
}
html.darkmode table.table1 td {
	color: #91a5c7;
}
html.darkmode table.table1 tbody td {
	border-top-color: #0a1622;
}
html.darkmode table.table1 tbody th {
	border-bottom-color: #e1e9f1;
	color: #c4ccd4;
	background-color: #07141f;
}
html.darkmode table.info tbody th {
	color: #e1e9f1;
}
html.darkmode dl.details dt {
	color: #e1e9f1;
}
html.darkmode dl.details dd {
	color: #91a5c7;
}
html.darkmode .sep {
	color: #0076b8;
}
html.darkmode .icon.icon-blue, html.darkmode a:hover .icon.icon-blue {
	color: #4da0f0;
}
html.darkmode .icon.icon-green, html.darkmode a:hover .icon.icon-green {
	color: #339930;
}
html.darkmode .icon.icon-red, html.darkmode a:hover .icon.icon-red {
	color: #ef667c;
}
html.darkmode .icon.icon-orange, html.darkmode a:hover .icon.icon-orange {
	color: #a12800;
}
html.darkmode .icon.icon-bluegray, html.darkmode a:hover .icon.icon-bluegray {
	color: #91a5c7;
}
html.darkmode .icon.icon-gray, html.darkmode a:hover .icon.icon-gray {
	color: #858c94;
}
html.darkmode .icon.icon-lightgray, html.darkmode a:hover .icon.icon-lightgray {
	color: #52616f;
}
html.darkmode .icon.icon-black, html.darkmode a:hover .icon.icon-black {
	color: #c4ccd4;
}
html.darkmode .alert_close .icon:before {
	background-color: #07141f;
}
html.darkmode .jumpbox .dropdown li {
	border-top-color: #222f3c;
}
html.darkmode .jumpbox-cat-link {
	background-color: #399edf;
	border-top-color: #399edf;
	color: #07141f;
}
html.darkmode .jumpbox-cat-link:hover {
	background-color: #0066ae;
	border-top-color: #0066ae;
	color: #07141f;
}
html.darkmode .jumpbox-forum-link {
	background-color: #111e2a;
}
html.darkmode .jumpbox-forum-link:hover {
	background-color: #1c1a00;
}
html.darkmode .jumpbox .dropdown .pointer-inner {
	border-color: #111e2a transparent;
}
html.darkmode .jumpbox-sub-link {
	background-color: #111e2a;
}
html.darkmode .jumpbox-sub-link:hover {
	background-color: #0b1824;
}
html.darkmode .copyright {
	color: #aab2ba;
}
html.darkmode .error {
	color: #ef667c;
}
html.darkmode .reported {
	background-color: #0e1b27;
}
html.darkmode li.reported:hover {
	background-color: #2f1f22 !important;
}
html.darkmode div.rules {
	background-color: #2f1f22;
	color: #ef667c;
}
html.darkmode p.post-notice {
	background-color: #2f1f22;
}
html.darkmode ul.forums {
	background-color: #0c1925;
	background-image: -webkit-linear-gradient(top, #172431 0%, #0c1925 100%);
	background-image: linear-gradient(to bottom, #172431 0%,#0c1925 100%);
}
html.darkmode ul.topiclist li {
	color: #98accb;
}
html.darkmode ul.topiclist dd {
	border-left-color: #07141f;
}
html.darkmode .rtl ul.topiclist dd {
	border-right-color: #07141f;
	border-left-color: transparent;
}
html.darkmode li.row {
	border-top-color: #07141f;
	border-bottom-color: #65b6ed;
}
html.darkmode li.row strong {
	color: #e1e9f1;
}
html.darkmode li.row:hover {
	background-color: #1c1a00;
}
html.darkmode li.row:hover dd {
	border-left-color: #222f3c;
}
html.darkmode .rtl li.row:hover dd {
	border-right-color: #222f3c;
	border-left-color: transparent;
}
html.darkmode li.header dt, html.darkmode li.header dd {
	color: #07141f;
}
html.darkmode .postbody {
	color: #c4ccd4;
}
html.darkmode .content {
	color: #c4ccd4;
}
html.darkmode .content h2, html.darkmode .panel h2 {
	color: #76b7ff;
	border-bottom-color: #222f3c;
}
html.darkmode dl.faq dt {
	color: #c4ccd4;
}
html.darkmode .posthilit {
	background-color: #441d2a;
	color: #ef667c;
}
html.darkmode .signature {
	border-top-color: #222f3c;
}
html.darkmode .notice {
	border-top-color: #222f3c;
}
html.darkmode blockquote {
	background-color: #111e2a;
	border-color: #192633;
}
html.darkmode blockquote blockquote {
	background-color: #1d1c0c;
}
html.darkmode blockquote blockquote blockquote {
	background-color: #111e2a;
}
html.darkmode .codebox {
	background-color: #07141f;
	border-color: #1f2c39;
}
html.darkmode .codebox p {
	border-bottom-color: #222f3c;
}
html.darkmode .codebox code {
	color: #41a169;
}
html.darkmode .attachbox {
	background-color: #07141f;
	border-color: #1f2c39;
}
html.darkmode .pm-message .attachbox {
	background-color: #0d1a26;
}
html.darkmode .attachbox dd {
	border-top-color: #1f2c39;
}
html.darkmode .attachbox p {
	color: #9aa2a9;
}
html.darkmode .attachbox p.stats {
	color: #9aa2a9;
}
html.darkmode .attach-image img {
	border-color: #52616f;
}
html.darkmode dl.file dd {
	color: #9aa2a9;
}
html.darkmode dl.thumbnail img {
	border-color: #9aa2a9;
	background-color: #07141f;
}
html.darkmode dl.thumbnail dd {
	color: #9aa2a9;
}
html.darkmode dl.thumbnail dt a:hover {
	background-color: #0f1c28;
}
html.darkmode dl.thumbnail dt a:hover img {
	border-color: #1f7ec8;
}
html.darkmode fieldset.polls dl {
	border-top-color: #172431;
	color: #9aa2a9;
}
html.darkmode fieldset.polls dl.voted {
	color: #e1e9f1;
}
html.darkmode fieldset.polls dd div {
	color: #07141f;
}
html.darkmode .rtl .pollbar1, html.darkmode .rtl .pollbar2, html.darkmode .rtl .pollbar3, html.darkmode .rtl .pollbar4, html.darkmode .rtl .pollbar5 {
	border-right-color: transparent;
}
html.darkmode .pollbar1 {
	background-color: #ff748b;
	border-bottom-color: #ff9daa;
	border-right-color: #ff9daa;
}
html.darkmode .rtl .pollbar1 {
	border-left-color: #ff9daa;
}
html.darkmode .pollbar2 {
	background-color: #f2687e;
	border-bottom-color: #ff8a9d;
	border-right-color: #ff8a9d;
}
html.darkmode .rtl .pollbar2 {
	border-left-color: #ff8a9d;
}
html.darkmode .pollbar3 {
	background-color: #e45b71;
	border-bottom-color: #ff748b;
	border-right-color: #ff748b;
}
html.darkmode .rtl .pollbar3 {
	border-left-color: #ff748b;
}
html.darkmode .pollbar4 {
	background-color: #d54e64;
	border-bottom-color: #f2687e;
	border-right-color: #f2687e;
}
html.darkmode .rtl .pollbar4 {
	border-left-color: #f2687e;
}
html.darkmode .pollbar5 {
	background-color: #c53e55;
	border-bottom-color: #e45b71;
	border-right-color: #e45b71;
}
html.darkmode .rtl .pollbar5 {
	border-left-color: #e45b71;
}
html.darkmode .postprofile {
	color: #9aa2a9;
	border-color: #07141f;
}
html.darkmode .pm .postprofile {
	border-color: #172531;
}
html.darkmode .postprofile strong {
	color: #e1e9f1;
}
html.darkmode dd.profile-warnings {
	color: #ef667c;
}
html.darkmode .button {
	border-color: #273542;
	background-color: #111e2a;
	background-image: -webkit-linear-gradient(top, #07141f 0%, #111e2a 100%);
	background-image: linear-gradient(to bottom, #07141f 0%,#111e2a 100%);
	box-shadow: 0 0 0 1px #07141f inset;
	color: #e55c69;
}
html.darkmode .button:hover, html.darkmode .button:focus {
	border-color: #0081c6;
	background-color: #07141f;
	background-image: -webkit-linear-gradient(top, #111e2a 0%, #07141f 100%);
	background-image: linear-gradient(to bottom, #111e2a 0%,#07141f 100%);
	text-shadow: 1px 1px 0 #07141f, -1px -1px 0 #07141f, -1px -1px 0 rgba(239, 102, 124, 0.2);
}
html.darkmode .button .icon, html.darkmode .button-secondary {
	color: #666d74;
}
html.darkmode .button-secondary:focus, html.darkmode .button-secondary:hover, html.darkmode .button:focus .icon, html.darkmode .button:hover .icon {
	color: #0081c6;
}
html.darkmode .button-search:hover, html.darkmode .button-search-end:hover {
	border-color: #273542;
}
html.darkmode .caret {
	border-color: #192633;
}
html.darkmode .caret {
	border-color: #273542;
}
html.darkmode .contact-icons a {
	border-color: #182532;
}
html.darkmode .contact-icons a:hover {
	background-color: #0c1824;
}
html.darkmode .pagination li a {
	background: #0f1c28;
	border-color: #303e4b;
	color: #7a95ae;
}
html.darkmode .pagination li.ellipsis span {
	background: transparent;
	color: #e1e9f1;
}
html.darkmode .pagination li.active span {
	background: #277caa;
	border-color: #277caa;
	color: #07141f;
}
html.darkmode .pagination li a:hover, html.darkmode .pagination li a:hover .icon, html.darkmode .pagination .dropdown-visible a.dropdown-trigger, html.darkmode .nojs .pagination .dropdown-container:hover a.dropdown-trigger {
	background: #1f7ec8;
	border-color: #1f7ec8;
	color: #07141f;
}
html.darkmode .search-box .inputbox, html.darkmode .search-box .inputbox:hover, html.darkmode .search-box .inputbox:focus {
	border-color: #273542;
}
html.darkmode .search-header {
	box-shadow: 0 0 10px #3b9fe0;
}
html.darkmode .search-results li:hover, html.darkmode .search-results li.active {
	background-color: #162333;
}
html.darkmode .panel-container h3, html.darkmode .panel-container hr, html.darkmode .cp-menu hr {
	border-color: #384754;
}
html.darkmode .panel-container .panel li.row {
	border-bottom-color: #2b3846;
	border-top-color: #0a1723;
}
html.darkmode ul.cplist {
	border-top-color: #2b3846;
}
html.darkmode .panel-container .panel li.header dd, html.darkmode .panel-container .panel li.header dt {
	color: #e1e9f1;
}
html.darkmode .panel-container table.table1 thead th {
	color: #c4ccd4;
	border-bottom-color: #c4ccd4;
}
html.darkmode .cp-main .pm-message {
	border-color: #172431;
	background-color: #07141f;
}
html.darkmode .tabs .tab > a {
	background: #23323c;
	color: #91a5c7;
}
html.darkmode .tabs .tab > a:hover {
	background: #121d27;
	color: #e55c69;
}
html.darkmode .tabs .activetab > a, html.darkmode .tabs .activetab > a:hover {
	background-color: #192732;
	background-image: -webkit-linear-gradient(top, #0e1b27 0%, #192732 100%);
	background-image: linear-gradient(to bottom, #0e1b27 0%,#192732 100%);
	border-color: #192732;
	box-shadow: 0 1px 1px #0b1723 inset;
	color: #c4ccd4;
}
html.darkmode .tabs .activetab > a:hover {
	color: #e1e9f1;
}
html.darkmode .minitabs .tab > a {
	background-color: #111e2a;
}
html.darkmode .minitabs .activetab > a, html.darkmode .minitabs .activetab > a:hover {
	background-color: #0a1723;
	color: #c4ccd4;
}
html.darkmode .responsive-tab .responsive-tab-link:before {
	border-color: #91a5c7;
}
html.darkmode .responsive-tab .responsive-tab-link:hover:before {
	border-color: #e55c69;
}
html.darkmode .navigation a {
	color: #c4ccd4;
	background: #192732;
	background: -webkit-linear-gradient(left, #2a3741 50%, #192732 100%);
	background: linear-gradient(to right, #2a3741 50%,#192732 100%);
}
html.darkmode .rtl .navigation a {
	background: #2a3741;
	background: -webkit-linear-gradient(left, #192732 50%, #2a3741 100%);
	background: linear-gradient(to right, #192732 50%,#2a3741 100%);
}
html.darkmode .navigation a:hover {
	background: #32404d;
	color: #ef667c;
}
html.darkmode .navigation .active-subsection a {
	background: #0a1723;
	color: #e55c69;
}
html.darkmode .navigation .active-subsection a:hover {
	color: #e55c69;
}
@media only screen and (max-width: 900px), only screen and (max-device-width: 900px) {
html.darkmode #navigation a, html.darkmode .rtl #navigation a {
	background: #2b3843;
}
}
html.darkmode .panel-container h2 {
	color: #c4ccd4;
}
html.darkmode .panel-container .panel {
	background-color: #0a1723;
}
html.darkmode .cp-main .pm {
	background-color: #07141f;
}
html.darkmode .cp-mini {
	background-color: #0c1925;
}
html.darkmode dl.mini dt {
	color: #a6b7d4;
}
html.darkmode .current {
	color: #e1e9f1 !important;
}
html.darkmode .pmlist li.pm_message_reported_colour, html.darkmode .pm_message_reported_colour {
	border-left-color: #ef667c;
	border-right-color: #ef667c;
}
html.darkmode .pmlist li.pm_marked_colour, html.darkmode .pm_marked_colour {
	border-color: #a12800;
}
html.darkmode .pmlist li.pm_replied_colour, html.darkmode .pm_replied_colour {
	border-color: #34424f;
}
html.darkmode .pmlist li.pm_friend_colour, html.darkmode .pm_friend_colour {
	border-color: #4377a6;
}
html.darkmode .pmlist li.pm_foe_colour, html.darkmode .pm_foe_colour {
	border-color: #e1e9f1;
}
html.darkmode .gallery label {
	background: #07141f;
	border-color: #222f3c;
}
html.darkmode .gallery label:hover {
	background-color: #0f1c28;
}
html.darkmode select {
	border-color: #9aa2a9;
	background-color: #0a1622;
	color: #e1e9f1;
}
html.darkmode label {
	color: #a6b7d4;
}
html.darkmode dd label {
	color: #c4ccd4;
}
html.darkmode fieldset.fields1 {
	background-color: transparent;
}
html.darkmode fieldset dl:hover dt label {
	color: #e1e9f1;
}
html.darkmode fieldset.quick-login input.inputbox {
	background-color: #0d1a26;
}
html.darkmode .message-box textarea {
	color: #c4ccd4;
}
html.darkmode .message-box textarea.drag-n-drop {
	outline-color: rgba(154, 162, 169, 0.5);
}
html.darkmode .message-box textarea.drag-n-drop-highlight {
	outline-color: rgba(0, 103, 173, 0.5);
}
html.darkmode .inputbox {
	background-color: #07141f;
	border-color: #303e4b;
	color: #c4ccd4;
}
html.darkmode .inputbox:-moz-placeholder {
	color: #c4ccd4;
}
html.darkmode .inputbox::-webkit-input-placeholder {
	color: #c4ccd4;
}
html.darkmode .inputbox:hover {
	border-color: #0067ad;
}
html.darkmode .inputbox:focus {
	border-color: #0067ad;
}
html.darkmode .inputbox:focus:-moz-placeholder {
	color: transparent;
}
html.darkmode .inputbox:focus::-webkit-input-placeholder {
	color: transparent;
}
html.darkmode a.button1, html.darkmode input.button1, html.darkmode input.button3, html.darkmode a.button2, html.darkmode input.button2 {
	color: #e1e9f1;
	background-color: #0e1b27;
	background-image: -webkit-linear-gradient(top, #1e2b38 0%, #0e1b27 100%);
	background-image: linear-gradient(to bottom, #1e2b38 0%,#0e1b27 100%);
}
html.darkmode a.button1, html.darkmode input.button1 {
	border-color: #9aa2a9;
}
html.darkmode a.button2, html.darkmode input.button2, html.darkmode input.button3 {
	border-color: #9aa2a9;
}
html.darkmode a.button1, html.darkmode a.button2 {
	color: #e1e9f1;
}
html.darkmode a.button1:hover, html.darkmode input.button1:hover, html.darkmode a.button2:hover, html.darkmode input.button2:hover, html.darkmode input.button3:hover {
	border-color: #e55c69;
	color: #e55c69;
	background-color: #1e2b38;
	background-image: -webkit-linear-gradient(top, #0e1b27 0%, #1e2b38 100%);
	background-image: linear-gradient(to bottom, #0e1b27 0%,#1e2b38 100%);
}
html.darkmode input.button1:focus, html.darkmode input.button2:focus, html.darkmode input.button3:focus {
	border-color: #0067ad;
	color: #83c0ff;
}
html.darkmode input.disabled {
	color: #9aa2a9;
}
html.darkmode .phpbb_alert {
	background-color: #07141f;
	border-color: #52616f;
}
html.darkmode .darken {
	background-color: #e1e9f1;
}
html.darkmode .loading_indicator {
	background-color: #e1e9f1;
}
html.darkmode .dropdown-extended ul li {
	border-top-color: #303e4c;
}
html.darkmode .dropdown-extended ul li:hover {
	background-color: #162333;
	color: #e1e9f1;
}
html.darkmode .dropdown-extended .header, html.darkmode .dropdown-extended .footer {
	border-color: #303e4c;
	color: #e1e9f1;
}
html.darkmode .dropdown-extended .header {
	background-color: #0b1824;
	background-image: -webkit-linear-gradient(top, #0b1824 0%, #192732 100%);
	background-image: linear-gradient(to bottom, #0b1824 0%,#192732 100%);
}
html.darkmode .dropdown .pointer {
	border-color: #303e4c transparent;
}
html.darkmode .dropdown .pointer-inner {
	border-color: #07141f transparent;
}
html.darkmode .dropdown-extended .pointer-inner {
	border-color: #0b1824 transparent;
}
html.darkmode .dropdown .dropdown-contents {
	background: #07141f;
	border-color: #303e4c;
	box-shadow: 1px 3px 5px rgba(225, 233, 241, 0.2);
}
html.darkmode .dropdown-up .dropdown-contents {
	box-shadow: 1px 0 5px rgba(225, 233, 241, 0.2);
}
html.darkmode .dropdown li, html.darkmode .dropdown li li {
	border-color: #182532;
}
html.darkmode .dropdown li.separator {
	border-color: #182532;
}
html.darkmode .notification_list p.notification-time {
	color: #98accb;
}
html.darkmode li.notification-reported strong, html.darkmode li.notification-disapproved strong {
	color: #e55c69;
}
html.darkmode .badge {
	background-color: #e55c69;
	color: #07141f;
}

/* ---- from ext/boardtools/quickreply/styles/all/theme/quickreply.css */
html.darkmode .button.qr-quickquote .icon {
	color: #0081c6;
}
html.darkmode .pagination_next a.button {
	background: #0f1c28;
	border-color: #303e4b;
}
html.darkmode .pagination_next a.button:hover {
	border-color: #0081c6;
}

/* ---- from ext/boardtools/quickreply/styles/all/theme/quickreply_main.css */
html.darkmode #qr_loading_text {
	color: #07141f;
}
html.darkmode #qr_loading_text #qr_loading_cancel span {
	border: 1px solid #07141f;
}
html.darkmode #qr_loading_cancel span:hover {
	background-color: rgba(7, 20, 31, 0.5);
}
html.darkmode #qr_attach_notice {
	background-color: #07141f;
}
html.darkmode .qr_fixed_form {
	background-color: transparent;
	box-shadow: 0 -8px 15px -10px #222f3c;
}
html.darkmode #qr_show_fixed_form {
	color: #8bbff4;
	background-color: #07141f;
	box-shadow: 0 0 15px -3px #222f3c;
	border: 3px solid #07141f;
}
html.darkmode #qr_postform.qr_fullscreen_form {
	background-color: #07141f;
}

/* ---- from ext/phpbb/ads/styles/all/theme/phpbbads.css */
html.darkmode .phpbbad-slide-up-close {
	background-color: #07141f;
}
html.darkmode .phpbb-ads-visual-demo {
	background-color: #272100;
	border: #c54134 dashed 3px;
	color: #ef667c;
}
html.darkmode .phpbb-ads-button {
	background: #14212e;
	background: linear-gradient(to bottom, #14212e 0%, #0b1824 100%);
	border: solid 1px #3a4856;
	box-shadow: inset 1px 1px 2px #07141f;
}
html.darkmode .phpbb-ads-button:link {
	color: #e1e9f1;
}
html.darkmode .phpbb-ads-button:hover {
	border-color: #ef667c;
	color: #ef667c;
}
html.darkmode .phpbb-ads-button:active {
	background: #283643;
}

/* ---- from ext/phpbb/boardannouncements/styles/all/theme/boardannouncements.css */
html.darkmode .phpbb_announcement {
	background-color: #2f1f22;
}

/* ---- from ext/phpbb/boardrules/styles/prosilver/theme/boardrules_controller.css */
html.darkmode .boardrules-menu {
	border-top: 1px solid #07141f;
}
html.darkmode .boardrules-menu li {
	border-bottom: 1px solid #222f3c;
}
html.darkmode .highlight {
	background-color: #2f1f22;
	color: #ef667c;
}

/* ---- from ext/vse/abbc3/styles/all/theme/abbc3_common.css */
html.darkmode .hidebox {
	background-color: #152c10;
	border: 1px solid #25682a;
}
html.darkmode .hidebox_title {
	border: 1px solid #25682a;
	color: #a5cba4;
}
html.darkmode .hidebox_hidden {
	background-color: #14212e;
	border-color: #372125;
	color: #ff9395;
}
html.darkmode .hidebox_visible {
	color: #a5cba4;
}
html.darkmode .spoilbtn:hover {
	color: #e55c69 !important;
}
html.darkmode .pipe-table th {
	background-color: #399edf;
	color: #07141f;
}
html.darkmode .pipe-table tr:hover {
	background-color: #0c1924;
}

/* ---- from ext/vse/abbc3/styles/all/theme/abbc3_posting.css */
html.darkmode #abbc3_buttons select {
	background-color: #07141f;
	border: 1px solid #303e4b;
	color: #e1e9f1;
}
html.darkmode .abbc3_button {
	background: transparent no-repeat center;
	border: 1px solid transparent;
}
html.darkmode .abbc3_button:hover {
	background-color: #07141f;
	border: 1px solid #303e4b;
}
html.darkmode .abbc3_buttons_row {
	background: #091622;
	background: -moz-linear-gradient(top, #091622 0%, #182531 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #091622), color-stop(100%, #182531));
	background: -webkit-linear-gradient(top, #091622 0%, #182531 100%);
	background: -o-linear-gradient(top, #091622 0%, #182531 100%);
	background: -ms-linear-gradient(top, #091622 0%, #182531 100%);
	background: linear-gradient(to bottom, #091622 0%, #182531 100%);
	border: 1px solid #303e4b;
}
html.darkmode .abbc3_font_menu_font:hover {
	color: #b4340f;
}
html.darkmode #bbcode_wizard {
	background: #07141f;
	border: 5px solid #0066ae;
	box-shadow: 2px 2px 4px #aab2ba;
}

/* ---- from ext/phpbb/webpushnotifications/styles/all/theme/phpbb_wpn.css */
html.darkmode .wpn.button[disabled], html.darkmode .wpn.button[disabled]:hover, html.darkmode .wpn.button.disabled, html.darkmode .wpn.button.disabled:hover {
	background: #16232f;
	border-color: #4b5a69;
	color: #4b5a69;
}
html.darkmode .wpn-notification-dropdown-footer {
	border-top: solid 1px #303e4c;
}

/* ---- author colours in posts ([color=...]) */
html.darkmode .content [style*="color:green" i], html.darkmode .content [style*="color: green" i] { color: #5fc658 !important; }
html.darkmode .content [style*="color:#ff0000" i], html.darkmode .content [style*="color: #ff0000" i] { color: #ff7360 !important; }
html.darkmode .content [style*="color:#008000" i], html.darkmode .content [style*="color: #008000" i] { color: #5fc658 !important; }
html.darkmode .content [style*="color:#bf0000" i], html.darkmode .content [style*="color: #bf0000" i] { color: #ff7360 !important; }
html.darkmode .content [style*="color:#0000ff" i], html.darkmode .content [style*="color: #0000ff" i] { color: #6ca4ff !important; }
html.darkmode .content [style*="color:#408000" i], html.darkmode .content [style*="color: #408000" i] { color: #7dc055 !important; }
html.darkmode .content [style*="color:#800000" i], html.darkmode .content [style*="color: #800000" i] { color: #fd8170 !important; }
html.darkmode .content [style*="color:#40bf00" i], html.darkmode .content [style*="color: #40bf00" i] { color: #62c647 !important; }
html.darkmode .content [style*="color:#ff8000" i], html.darkmode .content [style*="color: #ff8000" i] { color: #ff830a !important; }
html.darkmode .content [style*="color:#0040ff" i], html.darkmode .content [style*="color: #0040ff" i] { color: #6ba5ff !important; }
html.darkmode .content [style*="color:#00bf00" i], html.darkmode .content [style*="color: #00bf00" i] { color: #56c850 !important; }
html.darkmode .content [style*="color:#bf4000" i], html.darkmode .content [style*="color: #bf4000" i] { color: #ff7f50 !important; }
html.darkmode .content [style*="color:#0000bf" i], html.darkmode .content [style*="color: #0000bf" i] { color: #6ca4ff !important; }
html.darkmode .content [style*="color:#ff4000" i], html.darkmode .content [style*="color: #ff4000" i] { color: #ff7552 !important; }
html.darkmode .content [style*="color:#4000ff" i], html.darkmode .content [style*="color: #4000ff" i] { color: #879dff !important; }
html.darkmode .content [style*="color:#bf8000" i], html.darkmode .content [style*="color: #bf8000" i] { color: #dd9c36 !important; }
html.darkmode .content [style*="color:#4000bf" i], html.darkmode .content [style*="color: #4000bf" i] { color: #9898ff !important; }
html.darkmode .content [style*="color:#00bf40" i], html.darkmode .content [style*="color: #00bf40" i] { color: #45c95b !important; }
html.darkmode .content [style*="color:#0080ff" i], html.darkmode .content [style*="color: #0080ff" i] { color: #50aaff !important; }
html.darkmode .content [style*="color:#008080" i], html.darkmode .content [style*="color: #008080" i] { color: #5abdbd !important; }
html.darkmode .content [style*="color:#804000" i], html.darkmode .content [style*="color: #804000" i] { color: #e09865 !important; }
html.darkmode .content [style*="color:#004080" i], html.darkmode .content [style*="color: #004080" i] { color: #74aef7 !important; }
html.darkmode .content [style*="color:#000080" i], html.darkmode .content [style*="color: #000080" i] { color: #6da5ff !important; }
html.darkmode .content [style*="color:navy" i], html.darkmode .content [style*="color: navy" i] { color: #6da5ff !important; }
html.darkmode .content [style*="color:blue" i], html.darkmode .content [style*="color: blue" i] { color: #6ca4ff !important; }
html.darkmode .content [style*="color:red" i], html.darkmode .content [style*="color: red" i] { color: #ff7360 !important; }
html.darkmode .content [style*="color:maroon" i], html.darkmode .content [style*="color: maroon" i] { color: #fd8170 !important; }
html.darkmode .content [style*="color:purple" i], html.darkmode .content [style*="color: purple" i] { color: #e979e6 !important; }
html.darkmode .content [style*="color:#800080" i], html.darkmode .content [style*="color: #800080" i] { color: #e979e6 !important; }
html.darkmode .content [style*="color:black" i], html.darkmode .content [style*="color: black" i] { color: #d6e1ec !important; }
html.darkmode .content [style*="color:#000000" i], html.darkmode .content [style*="color: #000000" i] { color: #d6e1ec !important; }
html.darkmode .content [style*="color:#333333" i], html.darkmode .content [style*="color: #333333" i] { color: #d6e1ec !important; }

/* ==========================================================================
   HAND-TUNED SURFACES (override the generated layer)
   Palette of the MicroGIS / UW0WU sites (roip, tzo, mmx257): the forum's dark mode matches them.
   ========================================================================== */
html.darkmode {
	--mg-bg: #091725;      --mg-bg2: #0d1f31;     --mg-panel: #102a40;   --mg-panel2: #0f2539;
	--mg-hover: #143856;   --mg-line: #1d3b56;    --mg-line2: #27506f;
	--mg-ink: #e9eff5;     --mg-text: #cfdbe6;    --mg-muted: #9aafc3;   --mg-dim: #6f879c;
	--mg-accent: #31c6d4;  --mg-accent-d: #1e8798; --mg-accent-l: #8ae6ee;
	--mg-ok: #22c55e;      --mg-warn: #f59e0b;    --mg-bad: #ef4444;
	--mg-bar: linear-gradient(to bottom, #31c6d4 0, #31c6d4 2px, #134063 2px, #0e2d48 100%);
	scrollbar-color: #27506f #091725;
}

/* page, frame, text */
html.darkmode, html.darkmode body { background-color: var(--mg-bg); color: var(--mg-text); }
html.darkmode .wrap { background-color: var(--mg-bg2); border-color: var(--mg-line); }
html.darkmode h1, html.darkmode h2, html.darkmode h3, html.darkmode .content h2, html.darkmode .panel h2 { color: var(--mg-ink); }
html.darkmode h2, html.darkmode .panel h2, html.darkmode .content h2 { border-bottom-color: var(--mg-line); }
html.darkmode hr, html.darkmode .panel hr { border-color: var(--mg-line); }

/* links: cyan accent like the sites, white on hover */
html.darkmode a { color: var(--mg-accent); }
html.darkmode a:hover { color: var(--mg-accent-l); }
html.darkmode .postlink { color: var(--mg-accent); border-bottom-color: var(--mg-accent-d); }
html.darkmode .postlink:hover { color: var(--mg-accent-l); border-bottom-color: var(--mg-accent-l); }

/* header (logo bar) and category bars: deep navy with the cyan accent line */
html.darkmode .headerbar { background-color: #0e2d48; background-image: var(--mg-bar); color: #ffffff; }
html.darkmode .headerbar h1, html.darkmode .headerbar p, html.darkmode .site-description h1, html.darkmode .site-description p { color: #ffffff; }
html.darkmode .forabg, html.darkmode .forumbg { background-color: #0e2d48; background-image: var(--mg-bar); }
html.darkmode .forumbg-table { background-color: #0e2d48; }
html.darkmode .forabg .header, html.darkmode .forumbg .header,
html.darkmode li.header dt, html.darkmode li.header dd, html.darkmode ul.linklist li.header { color: var(--mg-ink); }
html.darkmode .forumbg .header a, html.darkmode .forabg .header a, html.darkmode th a { color: var(--mg-ink); }
html.darkmode .forumbg .header a:hover, html.darkmode .forabg .header a:hover, html.darkmode th a:hover { color: var(--mg-accent-l); }

/* navigation bars (top links, breadcrumbs, footer) */
html.darkmode .navbar { background-color: var(--mg-panel2); border: 1px solid var(--mg-line); }
html.darkmode .navbar ul.linklist > li > a, html.darkmode .navbar .linklist a, html.darkmode .crumb a { color: #a8d8e8; }
html.darkmode .navbar ul.linklist > li > a:hover, html.darkmode .crumb a:hover { color: var(--mg-accent-l); }
html.darkmode ul.linklist .dropdown-trigger.dropdown-visible > a { color: #ffffff; }

/* forum and topic lists */
html.darkmode ul.forums, html.darkmode ul.topics { background-color: var(--mg-panel2); background-image: none; }
html.darkmode ul.topiclist li { color: var(--mg-muted); }
html.darkmode ul.topiclist dd, html.darkmode ul.topiclist li.row dd { border-left-color: var(--mg-line); }
html.darkmode li.row { border-top-color: var(--mg-line); border-bottom-color: var(--mg-bg); }
html.darkmode li.row strong { color: var(--mg-ink); }
html.darkmode li.row:hover { background-color: var(--mg-hover); }
html.darkmode li.row:hover dd { border-left-color: var(--mg-line2); }
html.darkmode a.forumtitle, html.darkmode a.topictitle, html.darkmode a.lastsubject { color: var(--mg-accent); }
html.darkmode a.forumtitle:hover, html.darkmode a.topictitle:hover, html.darkmode a.lastsubject:hover { color: var(--mg-accent-l); }
html.darkmode .bg1 { background-color: var(--mg-panel); }
html.darkmode .bg2 { background-color: var(--mg-panel2); }
html.darkmode .bg3 { background-color: #12304a; }
html.darkmode .row .pagination li a, html.darkmode .row .pagination li span { background-color: var(--mg-bg2); }

/* sticky topics (light theme keeps its orange): amber accent of the sites */
html.darkmode li.row.sticky { background-color: #1f2a26; background-image: linear-gradient(90deg, rgba(245, 158, 11, .14), rgba(245, 158, 11, .03)); border-top-color: var(--mg-warn); border-bottom-color: var(--mg-warn); }
html.darkmode li.row.sticky:hover { background-color: #263428; }
html.darkmode li.row.sticky dd { border-left-color: rgba(245, 158, 11, .25); }

/* panels, posts, quotes, code */
html.darkmode .panel { background-color: var(--mg-panel2); color: var(--mg-text); }
html.darkmode .post.bg1, html.darkmode .post.bg2, html.darkmode .post.bg3 { border: 1px solid var(--mg-line); }
html.darkmode .post .content, html.darkmode .postbody, html.darkmode .content { color: var(--mg-text); }
html.darkmode .postprofile { color: var(--mg-muted); border-color: var(--mg-line); }
html.darkmode .postprofile strong { color: var(--mg-ink); }
html.darkmode .signature, html.darkmode .post .signature { border-top-color: var(--mg-line); color: var(--mg-muted); }
html.darkmode blockquote { background-color: var(--mg-bg2); border-color: var(--mg-line2); border-left: 3px solid var(--mg-accent-d); color: var(--mg-text); }
html.darkmode blockquote blockquote { background-color: var(--mg-panel); }
html.darkmode blockquote cite { color: var(--mg-accent); }
html.darkmode .codebox { background-color: #071320; border-color: var(--mg-line2); }
html.darkmode .codebox p { border-bottom-color: var(--mg-line); color: var(--mg-muted); }
html.darkmode .codebox code { color: #9be7b4; }
html.darkmode .attachbox { background-color: var(--mg-bg2); border-color: var(--mg-line2); }

/* forms */
html.darkmode fieldset, html.darkmode .fields1, html.darkmode .fields2 { color: var(--mg-text); }
html.darkmode input.inputbox, html.darkmode select, html.darkmode textarea, html.darkmode .inputbox,
html.darkmode input[type="text"], html.darkmode input[type="password"], html.darkmode input[type="email"], html.darkmode input[type="search"] {
	background-color: var(--mg-bg); border-color: var(--mg-line2); color: var(--mg-ink);
}
html.darkmode .inputbox:hover, html.darkmode .inputbox:focus,
html.darkmode input:focus, html.darkmode select:focus, html.darkmode textarea:focus { border-color: var(--mg-accent); background-color: #0b1b2c; }
html.darkmode ::placeholder { color: var(--mg-dim); }
html.darkmode .search-header { box-shadow: 0 0 10px rgba(0, 0, 0, .45); }
html.darkmode .search-header .inputbox { border-color: transparent; }

/* buttons */
html.darkmode .button, html.darkmode a.button1, html.darkmode input.button1, html.darkmode input.button2, html.darkmode a.button2, html.darkmode input.button3 {
	background-color: var(--mg-panel); background-image: linear-gradient(to bottom, #133250 0%, #0f2842 100%);
	border-color: var(--mg-line2); color: var(--mg-ink); box-shadow: none;
}
html.darkmode .button:hover, html.darkmode .button:focus, html.darkmode a.button1:hover, html.darkmode input.button1:hover,
html.darkmode input.button2:hover, html.darkmode a.button2:hover {
	background-color: var(--mg-hover); background-image: none; border-color: var(--mg-accent); color: #ffffff;
}
html.darkmode .button .icon, html.darkmode .button-secondary { color: #8fb4d6; }
html.darkmode .button:hover .icon { color: var(--mg-accent); }
html.darkmode .button-search:hover, html.darkmode .button-search-end:hover { border-color: var(--mg-accent); }

/* dropdowns, jumpbox, pagination */
html.darkmode .dropdown .dropdown-contents { background-color: var(--mg-panel); border-color: var(--mg-line2); box-shadow: 1px 3px 10px rgba(0, 0, 0, .55); }
html.darkmode .dropdown .pointer { border-color: var(--mg-line2) transparent; }
html.darkmode .dropdown .pointer-inner { border-color: var(--mg-panel) transparent; }
html.darkmode .dropdown li { border-top-color: var(--mg-line); }
html.darkmode .dropdown-extended .header, html.darkmode .dropdown-extended .footer { background-color: var(--mg-panel2); background-image: none; border-color: var(--mg-line2); color: var(--mg-text); }
html.darkmode .dropdown-extended ul li:hover { background-color: var(--mg-hover); }
html.darkmode .pagination li a, html.darkmode .pagination li span { background-color: var(--mg-panel); background-image: none; border-color: var(--mg-line2); color: #a8d8e8; }
html.darkmode .pagination li.active span { background-color: var(--mg-accent-d); border-color: var(--mg-accent); color: #ffffff; }
html.darkmode .pagination li a:hover { background-color: var(--mg-hover); border-color: var(--mg-accent); color: #ffffff; }

/* who is online, statistics, footer */
html.darkmode .stat-block h3, html.darkmode .stat-block h3 a { color: #a8d8e8; border-bottom-color: var(--mg-line); }
html.darkmode .stat-block p, html.darkmode .copyright { color: var(--mg-muted); }
html.darkmode .copyright a { color: var(--mg-accent); }

/* tables (memberlist, ucp, mcp) */
html.darkmode table.table1 thead th { color: var(--mg-ink); }
html.darkmode table.table1 tbody tr { border-color: var(--mg-line); }
html.darkmode table.table1 tbody tr:hover, html.darkmode table.table1 tbody tr.hover { background-color: var(--mg-hover); color: #ffffff; }
html.darkmode table.table1 td { color: var(--mg-text); }

/* notices: status colours of the sites */
html.darkmode .error { color: #ff7b7b; }
html.darkmode .successbox, html.darkmode .errorbox { color: var(--mg-ink); }
html.darkmode .successbox { background-color: rgba(34, 197, 94, .12); border-color: var(--mg-ok); }
html.darkmode .errorbox { background-color: rgba(239, 68, 68, .12); border-color: var(--mg-bad); }

/* group colours come inline from the database (style="color: #AA0000"): lighten them for the dark page */
html.darkmode [style*="AA0000" i] { color: #ff7b7b !important; }
html.darkmode [style*="00AA00" i] { color: #4ade80 !important; }
html.darkmode [style*="9E8DA7" i] { color: #c3b6cf !important; }

/* ABBC3 spoilers: colours come inline (background #fff, text #333) */
html.darkmode .spoilwrapper { background-color: var(--mg-bg2) !important; border-color: var(--mg-line2) !important; color: var(--mg-text) !important; }
html.darkmode .spoilwrapper .spoilbtn { color: var(--mg-accent) !important; }
html.darkmode .spoilwrapper .spoilbtn:hover { color: var(--mg-accent-l) !important; }
html.darkmode .spoilwrapper .spoilcontent { color: var(--mg-text) !important; }
html.darkmode .hidebox_visible { color: #9be7b4; }

/* jsclock: user colours come inline (#CADCEB / #105289) — cyan LED look */
html.darkmode #jsclock { background-color: #071320 !important; color: var(--mg-accent) !important; border-color: var(--mg-line2); text-shadow: 0 0 8px rgba(49, 198, 212, .5); }

/* cookie consent banner (colours set by phpBB in JS): site panel + cyan button */
html.darkmode .cc-window { background-color: var(--mg-bg2) !important; color: var(--mg-text) !important; border-top: 1px solid var(--mg-line2); box-shadow: 0 -6px 24px rgba(0, 0, 0, .45); }
html.darkmode .cc-window .cc-link { color: var(--mg-accent) !important; }
html.darkmode .cc-window .cc-btn { background-color: var(--mg-accent) !important; border-color: var(--mg-accent) !important; color: #062029 !important; }
html.darkmode .cc-window .cc-btn:hover { background-color: var(--mg-accent-l) !important; }
