+#prefs input { vertical-align: top; }
+#prefs input[type=radio] + label,
+#prefs input[type=checkbox] + label {
+ display: inline-block;
+ margin-bottom: .5em;
+ max-width: 85%;
+}
+
+.itemlist { display: block; overflow: hidden; }
+.list {
+ position: relative;
+ display: inline-block;
+ width: 25%;
+ min-width: 250px;
+ padding: .25em;
+ overflow: none;
+ word-wrap: break-word;
+ vertical-align: top;
+ color: black;
+}
+.list.dir {
+ padding: .5em 1em;
+}
+
+.list:before {
+ position: absolute;
+ top: .25em; left: .25em;
+ bottom: .25em; right: .25em;
+ z-index: -2;
+ content: '';
+}
+.list.dir:before { background-color: #CCF; }
+.list.file:before { background-color: #FDD; }
+.list.file:first-of-type { clear: left; }
+
+.list.file a img{
+ display: block;
+ width: 100%;
+ min-height: 4em;
+}
+.list.file a label{
+ position: absolute;
+ top: 0; padding: .25em .5em;
+ color: white;
+ background-color: rgba(0,0,0,.625);
+}
+
+.list.file .time,
+.list.file .dim {
+ color: white;
+ background-color: #004;
+ padding: .125em .5em;
+}
+
+.pagination {
+ display: block;
+ text-align: center;
+ margin-top: 1em;
+}
+.page {
+ display: inline-block;
+ padding: .25em .5em;
+ color: black;
+ background-color: #FDD;
+ border: 1px solid;
+ margin: 0 .125em;
+}
+
+#editing {
+ width: 100%; bottom: 0;
+ background-color: #333;
+ border-top: 1px solid;
+ padding: .25em;
+}
+
+#index label:first-of-type { font-weight: bold; }
+#index input, #index button { margin-left: 1em;}