.admin {
	padding: 4px;
	border-radius: 4px;
	background: green;
	margin: 6px;
	width: 200px;
	display: inline-block;
}
.admin.protected {
	background: red;
}
.admin INPUT[type="submit"] {
	width: 100%;
}
.admin.protected INPUT[type="submit"] {
	width: 90%;
}


.comment {
	text-align: left;
	position: relative;
	overflow-wrap: anywhere;
}
.comment IMG {
	max-width: 100%;
}
.comment .info {
	visibility: hidden;
	text-align: center;
	padding: var(--block-padding);
	background: var(--block);
	border: 1px solid var(--block-border);
	position: absolute;
	top: 0;
	left: -180px;
	width: 180px;
	z-index: 1;
	box-shadow: 0 0 4px #000;
	border-radius: 4px;
}
.comment:hover .info {
	visibility: visible;
}

.comment_add INPUT:not([type="checkbox"]):not([type="radio"]),
.comment_add TEXTAREA,
.comment_add BUTTON,
.comment_add SELECT {
	width: 100%;
}

#comment-list-recent .more {
	display: block;
	padding-top: 8px;
}
.comment_big_list {
	display: flex;
	gap: 1em;
}
.comment_big_list .thumb {
	flex: 0;
}
.comment_big_list .comment_list {
	flex: 1;
	border-left: 1px solid var(--block-border);
}
.comment_big_list .comment {
	margin-left: 0;
}

/* checkbox, title, doc link */
.ext-list TD:nth-child(1) {
    width: 1em;
}
.ext-list TD:nth-child(2) {
    width: 12em;
}
.ext-list TD:nth-child(3) {
    width: 1em;
}

#handle_pixel_media IMG {
    max-width: 100%;
}

.command_example {
	margin: 12pt;
	padding-left: 16pt;
}

.command_example code {
    padding:4pt;
    border: dashed 2px black;
    background: inherit;
}

.command_example p {
    padding-left: 16pt;
}

@media (min-width: 750px) {
    .command_example code {
        display: table-cell;
        width: 256px;
    }

    .command_example p {
        display: table-cell;
    }
}

SECTION#image-list {
	box-shadow: none;
}
SECTION#image-list .blockbody {
	background: none;
	border: none;
	padding: 0px;
	text-align: left;
}
.shm-image-list {
	display: grid;
	grid-template-columns: repeat( auto-fill, calc(var(--thumb-width) + 42px) );
	place-items: center;
}
.shm-image-list .thumb {
	margin-bottom: 8px;
}

.setupblocks {
	column-width: 400px;
	column-gap: 1em;
	max-width: 1200px;
	margin: auto;
}
.setupblocks > .setupblock:first-of-type { margin-top: 0; }

.setupblock {
	break-inside: avoid;
	text-align: center;
}
.setupblock TEXTAREA {
	width: 100%;
	font-size: 0.75rem;
	resize: vertical;
}
.setupblock SELECT[multiple] {
	width: 100%;
}

.advanced_settings INPUT {
	width: 100%;
}

#Setupmain {
	box-shadow: none;
}
#Setupmain>.blockbody {
	background: none;
	border: none;
	margin: 0;
	padding: 0;
}
.setupblock .form {
	width: 100%;
}
.setupblock .form TH {
	font-weight: normal;
}
.setupblock .advanced {
    color: var(--danger-color);
    background: var(--danger-background);
}
.setupsubmit {
	margin-top: 1em;
	padding: 1em;
	width: 100%;
}

:root {
	--added-background: lightgreen;
	--removed-background: lightcoral;

	--flash-color: #882;
	--flash-border: #660;
	--blink-base-color: #FF70;
	--blink-blink-color: #FF7F;
}

@media (prefers-color-scheme: dark) {
	:root {
		--added-background: green;
		--removed-background: coral;
	}
}

INPUT, TEXTAREA, SELECT, BUTTON {
	box-sizing: border-box;
	font-size: 1em;
}

TABLE.form {width: 300px;}
TABLE.zebra {width: 100%;}

TABLE.form TD, TABLE.form TH {vertical-align: middle;}
TABLE.form TBODY TR TD {text-align: left;}
TABLE.form TBODY TR TH {text-align: right; padding-right: 4px; width: 1%; white-space: nowrap;}
TABLE.form TBODY TR.header TD,
TABLE.form TBODY TR.header TH {text-align: center; width: auto;}
TABLE.form TD + TH {padding-left: 8px;}
TABLE.form INPUT:not([type="checkbox"]):not([type="radio"]),
TABLE.form SELECT,
TABLE.form TEXTAREA,
TABLE.form BUTTON {width: 100%;}

H1, H2, H3 {
    overflow-wrap: anywhere;
}

*[onclick],
H3[class~="shm-toggler"] {
    cursor: pointer;
}

@keyframes blink {
    0% {background-color: var(--blink-base-color);}
    25% {background-color: var(--blink-blink-color);}
    50% {background-color: var(--blink-base-color);}
    75% {background-color: var(--blink-blink-color);}
    100% {background-color: var(--blink-base-color);}
}
.blink {
    animation: blink 2s linear 1;
}

#flash {
    color: #444;
    background-color: var(--flash-color);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--flash-border);
}
#flash B {
    display: block;
    padding: 8px;
    border-radius: var(--border-radius);
}

.tag {
    overflow-wrap: anywhere;
}

.prose {
    text-align: left;
}
.prose P:first-child {
    margin-top: 0;
}
.prose P:last-child {
    margin-bottom: 0;
}

TABLE.upload-form {
    width: 100%;
}

#upload_form {
    border-collapse: collapse;
    z-index: 1;
}

.mini_upload INPUT:not([type="checkbox"]):not([type="radio"]),
.mini_upload TEXTAREA,
.mini_upload BUTTON,
.mini_upload SELECT {
	width: 100%;
}

.container {
    display: flex;
    margin: 20px;
    position: relative;
}

.left-column, .right-column {
    overflow: auto;
}

.left-column {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.right-column {
    width: 49%;
    padding-left: 20px;
    background-color: #fff1;
    min-height: 80vh;
}

.divider {
    width: 5px;
    cursor: col-resize;
    background-color: #ccc;
    position: relative;
    z-index: 1;
}

.upload-section {
    margin-bottom: 20px;
}

.file-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

.table-section {
    margin-bottom: 20px;
}

.button {
    padding: 10px 20px;
    margin-right: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

.reset-button {
    padding: 0 .5em;
    cursor: pointer;
    width: fit-content;
    align-self: center;
}

#upload_form .browse-button {
    width:5em;
}

#upload_form input[disabled] {
  pointer-events: none;
}

.upload-split-view {
    left: 51%;
    transform:translate(0%,-50%);
    position: fixed;
    top: 52%;
}

/* TODO!!! */
@media not (max-width: 800px) {
  .upload-split-view {
    max-width: 48%;
  }

  TR .preview-hide-wide {
    display: none;
  }
}

IMG.upload-split-view {
    max-height: 78vh;
    width: 37%;
}

.media-preview {
    margin: 10px 0;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.media-preview IMG, .media-preview VIDEO {
    max-height: 50vh;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
    border: 1px solid #ccc;
    padding: 5px;
}

.media-preview B {
    padding-top: 5px;
}

.media-preview-hover VIDEO {
    max-height: inherit;
}

.upload-button {
    padding: 10px 20px;
    background-color: #008CBA;
    color: white;
    border: none;
    cursor: pointer;
}

DIV.upload-tags-grid SELECT {
    width: auto;
}

DIV.grid-cell-label {
	border-right-width: 1px;
	border-right-style: solid;
	height:100%;
	display: flex;
  	align-items: center;
	justify-content: end;
	/* margin-right: 10px; */
	font-weight: bold;
    width: 8ch;
    white-space: normal;
    overflow-wrap: break-word;
	text-align: right;
	padding: 0 5px;
}

.cell-info DIV.grid-cell-label {
    width: 100%;
	text-align: center;
    display: block;
    border: none;
}

.upload-form TEXTAREA {
    resize: vertical;
}

.upload-controls-container {
    text-align:center
}

.upload-controls {
    display: inline;
    padding: 2px;
    cursor: pointer;
    margin: auto;
    visibility: hidden;
}

#upload_form .upload-panel-actions {
    display: flex;

    INPUT {
        width: auto;
    }

    .copy-button {
        padding: 0 1em;
    }

    .clear-button {
        padding: 0 3em;
        margin-left: auto;
    }
}

.upload-tag-preview {
    cursor: default;
}

.upload-tag-preview:hover {
    border: 1px solid gray;
}

.upload-popup-container {
    display: flex;
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: #0006;
}

.upload-popup-centering {
    margin: auto;
    padding: 1em;
    background-color: var(--header-selected);
    border: 1px solid var(--text);
    pointer-events: initial;
}

.upload-popup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: center;
    gap: 1em;
    margin-top: 1em;
    font-size: 2em;
    text-wrap: nowrap;
}

.upload-popup-actions button {
    padding: .5em;
}

.upload-popup-accept {
    color: green;
}

.upload-popup-reject {
    color: red;
}
TABLE.form.image_info {
    width: 550px;
    max-width: 100%;
}

.image_info .edit {
    display: block;
}
.image_info .view {
    display: none;
}

.image_info.infomode-view .edit {
    display: none;
}
.image_info.infomode-view .view {
    display: block;
}

.image_info TEXTAREA {
    min-width: 100%;
    min-height: 3rem;
}
.image_info .image-info-sidebar-box {
    vertical-align: top;
}

.post_controls FORM {
    margin-bottom: 0.75em;
}
.post_controls FORM:last-child {
    margin-bottom: 0;
}

#permission_table .allowed {
    color: #0F0;
}

#permission_table .denied {
    color: #F00;
}

#permission_table .inherited {
    opacity: 0.2;
}

#handle_video_media VIDEO {
    width: 100%;
    max-height: 85vh;
    background: black;
}

.markdown BLOCKQUOTE {
	padding: .5rem;
	background: #fff3;
}
.markdown .anchor A.alink {
	visibility: hidden;
}
.markdown .anchor:hover A.alink {
	visibility: visible;
}

.markdown .spoiler{
	background-color:#000;
	color:#000;
	border: 1px solid #888;
}

DIV.md-preview {
	margin-top: 2px;
	outline: 2px dotted #888;
	min-height: 1em;
	box-sizing: border-box;
}

.markdown H1, .markdown H2, .markdown H3, .markdown H4 {
	padding: 0;
}
#handle_image_media .zoom-container {
    overflow: scroll;
    clip-path: inset(0);
}

#handle_image_media IMG  {
    max-width: 100%;
    max-height: 95vh;
}

#handle_image_media .zoom-container IMG {
    max-width: none;
    max-height: none;
}

.notes-container {
	pointer-events: none;
	position: absolute;
}

.notes-container .note {
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	align-items: center;
	color: black;
	background-color: #FFE;
	border: 1px solid #DDC;
	overflow: hidden;
	position: absolute;
	opacity: 0.5;
	z-index: 1;
	pointer-events: auto;
}
/* note mouse events should be relative to the top-level note,
 * not relative to any inner elements */
.notes-container .note DIV {
    pointer-events: none;
}
.notes-container .note.editing {
	opacity: 1;
	z-index: 2;
}
.notes-container .note.editing.dragging {
	opacity: 0.5;
	z-index: 2;
}
.notes-container .note:hover {
	opacity: 1;
	z-index: 3;
}

.notes-container.dragging .editor {
    display: none;
}
.notes-container .editor {
	display: grid;
	color: black;
	background-color: #EFE;
	border: 1px solid #000;
	position: absolute;
	grid-template-columns: 1fr 1fr;
	grid-template-areas:
		"text text"
		"save cancel"
		"delete delete";
	z-index: 4;
	pointer-events: auto;
}
.notes-container .editor TEXTAREA {
	grid-area: text;
}
.notes-container .editor BUTTON[value="Save"] {
	grid-area: save;
}
.notes-container .editor BUTTON[value="Cancel"] {
	grid-area: cancel;
}
.notes-container .editor BUTTON[value="Delete"] {
	grid-area: delete;
}

.thumb IMG {
	border-width: 2px !important;
}

.shm-thumb-has_child img {
	border-color: lime !important;
}

.shm-thumb-has_parent img {
	border-color: #cc0 !important;
}

.shm-thumb-has_child.shm-thumb-has_parent img {
	border-color: lime #cc0 #cc0 lime !important;
}

.tagcategoryblock {
	margin:0.6rem 1rem 0.6rem 0;
	padding:0.5rem 0.6rem 0.7rem;
	width:18rem;
	border:1px solid #AAAAAA;
	border-radius:0.25rem;
	display:inline-block;
}
.tagcategoryblock table {
	width:100%;
	border-spacing:0;
}
.tagcategoryblock input, .tagcategoryblock span {
	width:100%;
	height:100%;
}
.tagcategoryblock td:first-child {
	padding:0.3rem 0.7rem 0.4rem 0;
	text-align:right;
	width:40%;
}
.tagcategoryblock td:last-child {
	width:60%;
}
.tagcategoryblock td:last-child span {
	width:12ch;
	padding:0.24rem 0.7rem 0.5rem 0;
}
.tagcategoryblock button {
	width:100%;
	margin-top:0.4rem;
	padding:0.2rem 0.6rem;
}

.tagcategoryblock input[type="color"] {
	height: 22px;
}

.tagcategoryblock .tc_colorswatch {
	display:inline-block;
	vertical-align:middle;
	height:1.25rem;
	width:1.25rem;
	border-radius:4px;
}

/* State-based visibility rules */
/* Hide all state-dependent elements by default */
.tagcategoryblock .tc-view,
.tagcategoryblock .tc-edit,
.tagcategoryblock .tc-delete {
	display: none;
}

/* In viewing mode: show view elements only */
.tagcategoryblock.tc-viewing .tc-view {
	display: inline-block;
}

/* In editing mode: show edit elements only */
.tagcategoryblock.tc-editing .tc-edit {
	display: block;
}

/* In deleting mode: show edit and delete elements */
.tagcategoryblock.tc-deleting .tc-edit,
.tagcategoryblock.tc-deleting .tc-delete {
	display: block;
}

TABLE.noborders {
	border-collapse: collapse;
}

TABLE.noborders TBODY TR TD{
	padding-right:5px;
}

TABLE.table-odd TBODY TR:nth-child(even) {
	background-color: #fff2;
}
.bulk_selected {
	outline: 3px solid blue;
}

.bulk_action {
	margin-top: 8pt;
}
.bulk_selector_controls table td {
	width: 33%;
}
:root {
   	--level-debug: #999;
	--level-info: var(--text);
	--level-warning: #880;
	--level-error: #C50;
	--level-critical: #F00;
}
/* tweak for dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --level-debug: #666;
        --level-info: var(--text);
        --level-warning: #FFA;
        --level-error: #F88;
        --level-critical: #F55;
    }
}
SPAN.level-debug { color: var(--level-debug); }
SPAN.level-info { color: var(--level-info); }
SPAN.level-warning { color: var(--level-warning); }
SPAN.level-error { color: var(--level-error); }
SPAN.level-critical { color: var(--level-critical); }

:root {
	color-scheme: light dark;

	--page: light-dark(#F6F5ED, #221B19);
	--text: light-dark(black, #E8E8EC);

	--danger-color: light-dark(#000, #E8E8EC);
	--danger-background: light-dark(#FAA, #955);

	--link-first: light-dark(#009CF9, #EE5542);
	--link-default: light-dark(#A4620A, #EC9851);
	--link-hover: light-dark(#EA8301, white);
	--link-header: #825519;

	--header-selected: light-dark(#FFF, #443A36);
	--footer-fg: light-dark(#555555, gray);
	--tag-count: light-dark(#825519, gray);
	--comment-meta: gray;

	--hover-bg: light-dark(#825519, #bb7552);
	--hover-fg: white;

	--block-border: light-dark(#825519, lightgray);
	--zebra-heading-fg: light-dark(#825519, #E8E8EC);
	--zebra-hover-bg: light-dark(#E1D4C2, #443A36);
}

@media (prefers-color-scheme: dark) {
	:root {
		accent-color: var(--hover-bg);
	}

	table.zebra td {
		border-color: gray;
	}

	BODY CODE {
		border: 1px solid #221b19;
		background: #221b1980;
	}

	::-moz-selection {
		color: black;
		background: #EC9851;
	}

	::selection {
		color: black;
		background: #EC9851;
	}

	INPUT, TEXTAREA, SELECT, BUTTON {
		background: #312a28;
		border: 1px solid gray
	}

	option:checked, option:hover {
		color: var(--hover-fg);
		background: var(--hover-bg);
	}

	input[type="submit"]:hover, input[type="button"]:hover, button:hover, select:not([multiple]):hover {
		background: var(--hover-bg);
	}

	input:hover, button:hover, select:hover, textarea:hover {
		border: 1px solid lightgray
	}
}

:root {
	font-weight: normal;
	font-style: normal;
	font-variant: normal;
	font-size-adjust: none;
	font-stretch: normal;
	font-size: 87.5%;
	line-height: normal;
	-x-system-font: none;
}

HEADER {
	grid-column: 1 / 3;
	grid-row: 1;
	margin-bottom: 0.9rem;
	text-align: left;
	position: relative;
}

BODY:has(.upload-popup-container) HEADER {
	z-index: 1000;
}

HEADER h1 {
	text-align: left;
}

#site-title {
	padding: 0 0 0 2rem;
	font-family: "Tahoma", "Verdana", "Helvetica", sans-serif;
}

HEADER #site-title IMG {
	vertical-align: middle;
	margin-right: .5rem;
}

HEADER ul#navbar,
HEADER ul#subnavbar {
	font-family: "Verdana", "Helvetica", sans-serif;
	font-size:110%;
}

HEADER ul#navbar {
	margin: 0;
	padding: 0 30px 0 30px;
}

HEADER ul#navbar li {
	margin: 0;
}

HEADER ul#navbar li a {
	display: inline-block;
	margin: 0 0.15rem;
	padding: 0.4rem 0.6rem;
}

HEADER ul#navbar li:first-child a {
	margin-left: -0.6rem;
	color: var(--link-first);
	font-weight: bold;
}

HEADER ul#navbar li a.current-page {
	background-color: var(--header-selected);
	font-weight: bold;
}

HEADER ul#subnavbar {
	padding: 0 30px 0 30px;
	background-color: var(--header-selected);
}

HEADER ul#subnavbar li {
	display: inline-block;
	margin: 0 0.15rem;
	padding: 0.4rem 0.6rem;
}

HEADER ul#subnavbar li:first-child {
	margin-left: -0.6rem;
}

body {
	background-color: var(--page);
	color: var(--text);
}

BODY.layout-grid {
	display: grid;
	grid-template-columns: 11.5rem minmax(0, calc(100vw - 11.5rem));
	overflow-x: hidden;
	grid-gap: 0 2rem;
}
BODY.layout-no-left NAV {
	display: none;
}

h1 {
	margin-top: 0;
	margin-bottom: 0;
	padding: 0.35rem;
	font-size: 2em;
}

h1 a {
	color: var(--link-header);
}

h2 {
	margin-top: 0;
	margin-bottom: 0;
	padding: 0.2rem;
	font-size: 1.7em;
}

h3 {
	margin-top: 0;
	margin-bottom: 0;
	padding: 0.2rem 0.2rem 0.2rem 0;
	font-size: 1.35em;
}

h4 {
	font-size: 1.2em;
}

h5 {
	font-size: 1.1em;
}

table.zebra {
	border-spacing: 0;
	border-collapse: collapse;
}

table.zebra>tbody>tr:hover {
	background: var(--zebra-hover-bg);
}

table.zebra th {
	padding-right: 0.4rem;
	color: var(--zebra-heading-fg);
}

table.zebra td {
	margin: 0;
	padding-right: 0.6rem;
	border: 1px dotted #EEE;
}

table.zebra th {
	margin: 0;
	text-align: left;
}

thead {
	font-weight: bold;
	-moz-background-clip: border;
	-moz-background-inline-policy: continuous;
	-moz-background-origin: padding;
}

td {
	vertical-align: top;
}

#subtitle {
	margin: auto;
	width: 256px;
	border-top: medium none;
	text-align: center;
	font-size: 0.75em;
}

#short-wiki-description {
	margin-top: .1em;
}

FOOTER {
	grid-column: 1 / 3;
	grid-row: 3;
	clear: both;
	border-top: solid 1px var(--block-border);
	margin-top: 1rem;
	text-align: center;
	color: var(--footer-fg);
	font-size: 0.8rem;
}

FOOTER>DIV {
	margin: 1rem 2rem;
}

.bbcode BLOCKQUOTE { 
	border: 1px solid #AAA;
	padding: 8px;
	background: #FFF2;
}
.bbcode PRE {
	padding-top: 10px;
}
.bbcode IMG {
	max-width: 128px;
	max-height: 128px;
}

.markdown {
	hyphens: auto;
	list-style-position: inside;
}

.markdown BLOCKQUOTE { 
	border-left: .25rem solid var(--zebra-heading-fg);
}
.markdown PRE {
	padding-top: 10px;
}
.markdown IMG {
	max-width: 256px;
	max-height: 256px;
}

CODE {
	display: block;
	border: 1px solid #08F;
	background: #AAF4;
	font-size: 0.9rem;
	padding: 8px;
	font-family: monospace;
  	line-height: 1em;
}

form {
	margin: 0;
}

a {
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

NAV {
	grid-column: 1;
	grid-row: 2;
	padding: 0 1rem 0.2rem 2rem;
	width: 11.5rem;
	text-align: left;
}

NAV section+section {
	margin-top: 1rem;
}

NAV table {
	width: 15rem;
}

NAV td {
	vertical-align: middle;
}

NAV input {
	padding: 0;
	width: 100%;
}

NAV select {
	padding: 0;
	width: 100%;
}

NAV h3 {
	text-align: left;
}

#comments p {
	overflow: hidden;
	max-width: 150px;
	width: 15rem;
	text-align: left;
}

SPAN.comment-info SPAN:not(.markdown) {
    margin-right: 2em;
}
SPAN.comment-info SPAN:not(.markdown) B {
    margin-right: 0.5em;
}

TABLE.tag_list {
	width: auto;
	border-collapse: collapse;
}

TABLE.tag_list>THEAD {
	display: none;
}

TABLE.tag_list>TBODY>TR>TD {
	display: inline;
	padding: 0;
	line-height: 1em;
}

TABLE.tag_list>TBODY>TR>TD:after {
	content: " ";
}

.tag_count {
	display: inline-block;
	margin-left: 0.4rem;
	color: var(--tag-count);
}

.more {
	content: "More â";
}

.withleft {
	margin-left: 1rem;
}

div#paginator {
	display: block;
	clear: both;
	padding: 2em 0 1em;
	text-align: center;
	font-weight: bold;
	font-size: 1em;
}

.paginator {
	margin: 16px;
	text-align: center;
}

div#paginator b {
	margin: 3px;
	padding: 4px 8px;
}

div#paginator a {
	margin: 3px;
	padding: 4px 8px;
}

div#paginator a:hover {
	background: var(--hover-bg) none repeat scroll 0 0;
	color: var(--hover-fg);
}

#pagelist {
	margin-top: 32px;
}

#large_upload_form {
	width: 50%;
}

.setupblock,
.tagcategoryblock {
	margin: 0.6rem 1rem 0.6rem 0;
	padding: 0.5rem 0.6rem 0.7rem;
	border: 1px solid var(--block-border);
	border-radius: 0.25rem;
}

.tagcategoryblock {
	display: inline-block;
	width: 18rem;
}

.tagcategoryblock table {
	width: 100%;
	border-spacing: 0;
}

.tagcategoryblock input,
.tagcategoryblock span {
	width: 100%;
	height: 100%;
}

.tagcategoryblock td:first-child {
	padding: 0.3rem 0.7rem 0.4rem 0;
	text-align: right;
	width: 40%;
}

.tagcategoryblock td:last-child {
	width: 60%;
}

.tagcategoryblock td:last-child span {
	padding: 0.24rem 0.7rem 0.5rem 0;
	/* display: block; */
}

.tagcategoryblock button {
	width: 100%;
	margin-top: 0.4rem;
	padding: 0.2rem 0.6rem;
}

.comment .username {
	font-weight: bold;
	font-size: 1.2em;
}

* {
	margin: 0;
	padding: 0;
	font-family: Tahoma, Verdana, Helvetica, sans-serif;
}

a:link {
	color: var(--link-default);
	text-decoration: none;
}

a:visited {
	color: var(--link-default);
	text-decoration: none;
}

a:hover {
	color: var(--link-hover);
	text-decoration: none;
}

a:active {
	color: var(--link-default);
	text-decoration: none;
}

ul.flat-list {
	display: block;
	margin: 0;
	padding: 0;
}

ul.flat-list * {
	display: inline;
	text-align: left;
}

ul.flat-list li {
	margin: 0 1.3em 0 0;
	list-style-type: none;
	text-align: left;
	font-weight: bold;
}

ul.flat-list li a {
	font-weight: normal;
}

#flash {
	background: #FDF5D9;
	border: 1px solid #FCEEC1;
	margin: 1rem 0;
	padding: 1rem;
	text-align: center;
	border-radius: 0.5rem;
}

ARTICLE {
	grid-column: 2;
	grid-row: 2;
	margin-right: 1rem;
}

ARTICLE section+section {
	margin-top: 1rem;
}

form+form {
	margin-top: 0.5rem;
}

#Imagemain h3 {
	display: none;
}

@media (hover: none) {
	.post-peek{
		display: none;
	}
}

DIV.shm-image-list {
	justify-content: center;
	gap: 8px;
	grid-auto-rows: min-content;
	grid-template-columns: repeat(auto-fill,minmax(var(--thumb-min-width, 180px),1fr))
}

A.thumb IMG {
	max-width: var(--thumb-height);
  	max-height: var(--thumb-height);
	width: 100%;
	height: 100%;
	object-fit: cover;	
}

@media not (max-width:800px) {
	BODY.layout-no-left ARTICLE {
	margin-left: 2rem;
	}
	BODY:not(.layout-no-left) ARTICLE {
		margin-left: 1rem;
	}

		.grid-cell-content{
		--num-rows: var(--rows);
	}
	DIV.grid-cell {
		border-right: 1px var(--text) dashed;
		border-bottom: 1px var(--text) dotted;
		padding: 5px 0;
		display: grid;
		grid-template-columns: 10ch var(--upload-c-width) calc(var(--upload-c-width) - 10ch);;
	}

	DIV.grid-cell.cell-info {
		display: flex;
	}

	DIV.grid-cell.cell-wide {
		grid-template-columns: 10ch repeat(3, var(--upload-c-width)) calc(var(--upload-c-width) - 10ch);;
	}

	DIV.grid-cell.cell-thin {
		grid-template-columns: 10ch calc(var(--upload-c-width) - 10ch);
	}

	.grid-cell .grid-cell-content {
		grid-column: span 2;
	}

	.cell-wide .grid-cell-content {
		grid-column: span 4;
	}

	.cell-thin .grid-cell-content {
		grid-column: span 1;
		justify-items: baseline;
	}

	DIV.grid-cell-content.dir-row {
		display: flex;
		flex-direction: row;
		width: fit-content;
		column-gap: 1ch;
	}

	.upload-split-view {
		overflow: scroll;
  		max-height: 95vh;
	}

	.upload-split-view > DIV {
		margin-bottom: 1em;
	}
}

@media only screen and (max-width:1700px) {
	DIV.upload-tags-grid {
		--upload-c-width: 20ch;
	}
}
/* just get as compact as possible */
@media only screen and (max-width:1300px) {
	DIV.upload-tags-grid {
		--upload-c-width: 16ch;
	}
}

@media (max-width: 800px) {
	DIV.shm-image-list {
		grid-template-columns: repeat(3, 1fr);
	}

	BODY.layout-grid {
		grid-template-columns: auto;
	}

	HEADER {
		grid-column: 1;
		grid-row: 1;
	}

	ARTICLE {
		grid-column: 1;
		grid-row: 3;
		margin: 0 1vw;
	}

	NAV {
		grid-column: 1;
		grid-row: 2;
		width: auto;
		display: flex;
	}

	FOOTER {
		grid-column: 1;
		grid-row: 4;
	}

	SECTION#mobile-search, SECTION#text-mobile-search {
		display:unset;
	}

	SECTION#search-bar, SECTION#search-bar-right, SECTION#text-search, SECTION#text-search-right {
		display:none;
	}

	FORM.search-bar {
		display:flex;
		padding:0 2em 0 0;
	}

	FORM.search-bar INPUT[type=text] {
		width:100%;
		text-align:center;
		margin-right: .5em;
	}
	
	FORM.search-bar input {
		width:3em
	}

	HEADER ul.flat-list {
		display: none;
	}

	.withleft {
		margin: 0;
	}

	TABLE.form.image_info{
		width: unset;
	}

	#image-list .blockbody {
		margin: 0;
	}

	NAV:has(:not(#Tagsleft)) #Bulk_Actionsleft {
		display: none;
	}

	NAV {
		grid-row: 3;
		flex-direction: column;
	}
	ARTICLE {
		grid-row: 2;
	}

	.markdown IMG {
		max-width: 256px;
  		max-height: 256px;
	}

	.markdown CODE {
		font-size: inherit;
	}
	.upload-split-view {
		right: unset;
		transform:unset;
		position: unset;
		top: unset;
	}
	.left-column {
		width: 100%;
	}
	.right-column {
		display: none;
	}

	.divider {
		display:none;
	}
	.upload-tags-grid DIV.grid-cell-content {
		--double-rows: calc(var(--rows) * 2);
        --num-rows: min(var(--double-rows), var(--tworows));
		grid-template-columns: 20ch auto;
	}

	.upload-tags-grid DIV.grid-cell-content {
		--double-rows: calc(var(--rows) * 4);
        --num-rows: min(var(--double-rows), var(--tworows));
		grid-template-columns: 20ch auto;
	}
	
	.upload-tags-grid DIV.grid-cell .grid-cell-content {
		grid-template-columns: 20ch auto;
		display: grid;
	}
	
	.upload-tags-grid DIV.grid-cell, .upload-tags-grid DIV.grid-cell.cell-wide, .upload-tags-grid DIV.grid-cell.cell-info {
		grid-column: span 1;
	}

	.upload-tags-grid DIV.grid-cell.cell-info {
		display: flex;
	}

	DIV.grid-cell {
		border-right-width: 1px dashed;
		display: grid;
		grid-template-columns: 10ch var(--upload-c-width) calc(var(--upload-c-width) - 10ch);
		padding: 1vh 0;
	}

	DIV.upload-tags-grid {
		grid-template-columns: repeat(1, 1fr);
	}
	DIV.grid-cell-content.dir-row {
		display: grid;
		justify-content: start;
		grid-auto-flow: dense;
		grid-template-columns: 20ch auto;
	}

	DIV DIV.grid-cell-content LABEL {
		width: max-content;
		display: flex;
		margin-bottom: .3em;
	}

	DIV.grid-cell-content LABEL INPUT {
		height: 1.2em;
		width: 1.2em;
	}

	DIV.grid-cell:nth-child(even), DIV.grid-cell.cell-wide:nth-child(even) {
		background-color: #FFF1;
	}

	INPUT.label-margin {
		margin-bottom: unset;
	}

	.reverse_image_link IMG {
		width: 1.5em;
		margin-right: .5em;
	}
	
	HEADER #site-title {
		padding: 0 0 0 1vw;
		font-size: 1.5em;
	}

	DIV.title-container {
		display:flex;
	}

	DIV.mobile-burger {
		margin-left: auto;
		margin-right: 1em;
		display:block;
		text-align: center;
	}
	DIV.mobile-burger A{
		font-size: 2.5em;
		padding: 1px 0.25em;
		background-color: var(--header-selected);
	}

	DIV.mobile-burger A:hover{
		color: var(--text);
	}

	.comment .meta {
		padding-right: 1.5em;
	}

	.comment IMG.avatar {
		max-height: 192px;
	}

	.container {
   		margin: 0;
	}
}

DIV#paginator B {
	background-color: #fff2;
}
IMG.logo {
	height: 2em;
}

.tageditcloud div#tagcloud_unset {
	background: #FFF6;
	color: lime;
}

DIV.numeric-score DIV {
	padding-right: 5px;
}

.numeric-score .vote-button {
	border-radius: 3px;
	background: #fff0;
	cursor: pointer;
}

.numeric-score .vote-button:hover {
	background: #fff3;
	border: none;
}

.numeric-score .vote-button, DIV.numeric-score DIV B {
	font-size:1.5em;
	padding-left: 5px;
	padding-right: 5px;
	border: none;
}

.numeric-score .fav {
	color:orangered;
}

#Post_Scoremain {
	margin-top: 0;
}

INPUT[type=submit] {
	cursor: pointer;
}

DIV.post-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5em;
	background-color: var(--header-selected);
	font-weight: bold;
}

DIV.post-controls :not(.post-controls-center) {
	padding: 5px;
	margin-left: 10px;
	margin-right: 10px;
	flex-shrink: 2;
}

DIV.post-controls .post-controls-center {
	flex-grow: 2;
	text-align: center;
}

.upload-tags-grid {
	padding-top:10px;
	display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: min-content;
	--upload-c-width: 28ch;
}

DIV.grid-cell, DIV.grid-cell.cell-wide, DIV.grid-cell.-cell-thin {
	align-items: center;
	grid-column: span 2;
}

DIV.grid-cell.cell-thin {
	grid-column: span 1;
}

DIV.grid-cell.cell-wide, DIV.grid-cell.cell-info {
	grid-column: span 4;
}




.label-margin {
	margin-bottom: 5px;
}

.grid-cell-content {
    display: grid;
	justify-content: start;
	grid-auto-flow: column;
	grid-template-columns: repeat(2, var(--upload-c-width));
	grid-template-rows: repeat(var(--num-rows), auto);
}

.cell-wide .grid-cell-content {
	grid-template-columns: repeat(4, var(--upload-c-width));
}

.cell-thin .grid-cell-content {
	grid-template-columns: var(--upload-c-width);
}

DIV.grid-cell-content LABEL {
	padding-right:5px;
	width: fit-content;
}

.grid-cell-content LABEL INPUT {
	margin-right:1px;
}

DIV.showInputButton, DIV.showPreviewButton, DIV.uploadCancelButton{
	display:inline;
	padding:2px;
	visibility:hidden;
}

DIV.uploadCancelButton {
	margin-right:5px;
}

.upload-file-select {
	display: flex;
	align-items: center;
}

.upload-file-select SPAN {
	margin: 0 auto 0 .3em;
}

TABLE.form TD.upload-file-select INPUT[type="button"] {
    width: unset;
    padding: 0 .2em;
}

TABLE.form .grid-cell SELECT {
	overflow: hidden;
}

.tag_list {
	margin-bottom: 1rem;
}

.atoz A {
	padding-right:4px;
}

TD.tag_info_link_cell{
	margin-right: .2em;
}

.ars A, A.tag_info_link {
	color: inherit;
}

.tag_list TBODY TR {
	color: var(--link-default)
}

.comment_edit, .forum_edit {
	color: var(--link-default);
}

INPUT.autocomplete_tags {
	max-width: 100vw;
}

#mobile-search, #text-mobile-search{
	display:none;
}

.mobile-burger {
	display:none;
}

#Statsmain .avatar-container, .avatar-editor .avatar-container{
	margin: 0;
}

.image_info.infomode-view .view {
    word-wrap:anywhere;
}

.comment {
	margin-bottom: 8px;
	background-color: var(--header-selected);
	width: 100%;
}

.comment .c_body {
	padding-left: .5em;
}

.comment TD {
	text-align: left;
}

.comment .meta {
	width: 12rem;
	color: var(--comment-meta);
	background-color: #8881;
}

.pm-edit {
	margin-left: .6rem;
	padding: 0 .3rem;
}

a.filter-inactive {
	text-decoration: line-through;
	color: red;
}

#pms TD{
	max-width:32rem;
}

#text-search-right, #search-bar-right {
	width:50%;
	display: inline-block;
	margin-top: 0;
}

#text-search-right {
	float:right
}

FORM.full-width {
    display:flex;
    padding:0 2em 0 0;
}

FORM.full-width.search-bar INPUT[type=text] {
    width:100%;
	text-align:center;
	margin-right: .5em;
}

FORM.full-width.search-bar input {
    width:3em
}

.blotter {
	display: flex;
	background-color: var(--header-selected);
	padding: 4px;
}

.blotter-container {
	cursor: pointer;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.blotter-tools {
	margin-left:auto;
	A {
		margin-left: 1em;
	}
}

table.pm-text {
	width: min(30em,100%);
}

table#threadList {
	width:100%;
}

#tips .markdown {
	hyphens: none;
}

.tips-subcont {
	display: flex;
	gap:1em
}

.tips-subcont IMG {
	width: 5em;
}

.tips-subcont SPAN {
	padding:.5em;
	border-radius: .5em;
	height: fit-content;
	border: 1px solid var(--link-hover);
}

DIV.wiki-all-grid {
	display: block;
	column-count: 3;
}

div.zoom-container {
    max-width: minmax(0, calc(100vw - 11.5rem));;
}
/*# sourceMappingURL=findafox.1784995445.809b200289d9f082f3158259d1fad3e1.css.map */