
html { background: #0b3236 linear-gradient(#155158 0, #0e3e43 220px, #0b3236 600px) no-repeat 0 0 / 100% 600px; }
html.portal { background: #0b3236 url(/static/dev-bg.jpg) no-repeat center top / cover fixed; }
body {
  margin: 0;
  color: #d9ecea;
  font: 13px/1.45 "Lucida Grande", "Lucida Sans Unicode", "Trebuchet MS", Verdana, sans-serif;
}

a { color: #b6e04a; text-decoration: none; }
a:hover { color: #e4ff8a; text-decoration: underline; }
code { font: 12px Monaco, "Lucida Console", monospace; color: #e8f3c9; }
td code { overflow-wrap: anywhere; }
code.wrap { overflow-wrap: anywhere; }
.totp-key code { font-size: 18px; letter-spacing: 1px; }
small { color: #8fb6b2; font-size: 11px; }
b { color: #fff; }

#wrap { width: 1160px; margin: 0 auto; padding: 0 10px; }


#header { position: relative; height: 78px; }
#brand {
  position: absolute; left: 4px; top: 18px;
  font: italic bold 34px/1 "Trebuchet MS", Helvetica, sans-serif;
  letter-spacing: -1px; text-decoration: none;
  text-shadow: 0 2px 2px #041c1f;
}
#brand .of { color: #fff; }
#brand .of b { color: #a6d82f; }
#brand:hover { text-decoration: none; }
#tagline {
  position: absolute; left: 6px; top: 56px;
  color: #6f9e99; font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
}
#who { position: absolute; right: 4px; top: 26px; color: #9cc2be; font-size: 12px; }
#who form { display: inline; margin-left: 8px; }


#main { display: flex; align-items: flex-start; gap: 20px; border-top: 3px solid #a6d82f; padding-top: 18px; }
#side {
  flex: 0 0 200px; position: sticky; top: 12px;
  background: #0c3034; border: 1px solid #22595e; border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.35); padding: 6px 0 10px; overflow: hidden;
}
#side h4 {
  margin: 10px 14px 4px; color: #6f9e99; font-size: 10px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 1.5px;
}
#side ul { list-style: none; margin: 0; padding: 0; }
#side a {
  display: block; padding: 7px 14px 7px 16px; border-left: 3px solid transparent;
  font: bold 13px "Trebuchet MS", Helvetica, sans-serif; color: #c9e3df;
}
#side a:hover { text-decoration: none; color: #fff; background: rgba(166,216,47,.08); border-left-color: #5f8f14; }
#side li.on a {
  color: #173d07; text-shadow: 0 1px 0 rgba(255,255,255,.45); border-left-color: #5f8f14;
  background: linear-gradient(#e9fa9c 0, #c3ea4f 48%, #a3d22a 52%, #8fc11b 100%);
}
#side .count {
  float: right; min-width: 18px; padding: 0 5px; border-radius: 9px; text-align: center;
  font: bold 10px/17px "Lucida Grande", Verdana, sans-serif; color: #0e2f05; background: #a6d82f;
}
#side li.on .count { background: #173d07; color: #e4ff8a; }


#content { flex: 1 1 940px; min-width: 0; max-width: 940px; padding: 0 0 10px; }

.panel {
  background: #123f44 linear-gradient(#174d53, #113a3f 60px, #10383d);
  border: 1px solid #23646a; border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 2px 6px rgba(0,0,0,.35);
  padding: 14px 18px 16px; margin-bottom: 18px;
}
.panel h2 {
  margin: 0 0 12px; padding-bottom: 7px; border-bottom: 1px dotted #2f7076;
  font: italic bold 20px/1.2 "Trebuchet MS", Helvetica, sans-serif;
  color: #a6d82f; text-shadow: 0 1px 1px #05252a;
}
.panel h2 small { font-style: normal; font-weight: normal; margin-left: 6px; }
.panel h2 .icon { width: 32px; height: 32px; vertical-align: middle; margin-right: 8px; border-radius: 5px; }
img.icon { width: 57px; height: 57px; border-radius: 10px; vertical-align: middle; background: #1b2b2a; }
td img.icon { width: 32px; height: 32px; border-radius: 6px; }
.stack textarea { display: block; width: 100%; }
pre { overflow-x: auto; background: #172423; border: 1px solid #2f4746; border-radius: 4px; padding: 10px; font-size: 12px; }
.panel h3 {
  margin: 18px 0 8px; font: italic bold 15px "Trebuchet MS", Helvetica, sans-serif; color: #c9ec72;
}
.panel p { margin: 0 0 10px; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; align-items: stretch; }
.cols > .panel { margin-bottom: 0; min-width: 0; }

.crumbs { margin: 0 0 10px; color: #7fa9a4; font-size: 12px; }
.hint { color: #8fb6b2; font-size: 12px; }
.meta { color: #9cc2be; font-size: 12px; }
.more { margin: 8px 0 0; text-align: right; font-size: 12px; }

.notice {
  padding: 8px 12px; margin: 0 0 14px; border-radius: 5px;
  background: #1a4f55; border: 1px solid #2f7076; color: #e6f3f1;
}
.notice.good { background: #29510f; border-color: #6da30d; color: #eaffc0; }
.notice.bad  { background: #5a2a14; border-color: #b4602c; color: #ffe0c8; }
.notice a { color: #fff; text-decoration: underline; }


.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin-top: 2px; }
.stat {
  padding: 10px 0 8px; text-align: center;
  background: #0c3034; border: 1px solid #22595e; border-radius: 6px;
}
.stat b { display: block; font: bold 24px/1.1 "Trebuchet MS", Helvetica, sans-serif; color: #fff; }
.stat span { color: #8fb6b2; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }


table { width: 100%; border-collapse: collapse; font-size: 12px; }
th {
  text-align: left; padding: 6px 8px; color: #8fb6b2; font-weight: bold; font-size: 10px;
  text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
  background: rgba(0,0,0,.18); border-bottom: 1px solid #a6d82f;
}
th:first-child { border-radius: 4px 0 0 0; }
th:last-child { border-radius: 0 4px 0 0; }
td { padding: 5px 8px; border-bottom: 1px solid #1d5257; vertical-align: middle; }
.ts { white-space: nowrap; color: #9cc2be; }
tr:nth-child(odd) td { background: rgba(0,0,0,.05); }
tr:hover td { background: rgba(166,216,47,.07); }
td.num { text-align: right; font-family: Monaco, "Lucida Console", monospace; }
td.empty { text-align: center; color: #7fa9a4; font-style: italic; padding: 14px; }
.warn { color: #f0a868; }

.tag {
  display: inline-block; padding: 0 6px; border-radius: 3px; font-size: 10px; line-height: 16px;
  background: #24585d; color: #cfe5e2; white-space: nowrap;
}
.tag.unhandled { background: #31481a; color: #cfe88a; }
.tag.sig_fail { background: #7a3a14; color: #ffe0c8; }
.tag.unknown_key { background: #6b5a10; color: #fff3b8; }

.pager { margin: 12px 0 4px; text-align: center; font-size: 12px; }
.pager span { color: #8fb6b2; margin: 0 10px; }
.filter { font-size: 12px; }
.filter a { padding: 1px 6px; border-radius: 3px; }
.filter a.on { background: #a6d82f; color: #0e2f05; }


label { color: #c3dcd9; font-size: 12px; font-weight: bold; }
input[type=text], input[type=password], input[type=number], input[type=url], input[type=search],
select, textarea {
  box-sizing: border-box; font: 13px "Lucida Grande", Verdana, sans-serif; color: #12292b;
  background: #fff linear-gradient(#e9eeee, #fff 6px);
  border: 1px solid #0a2a2d; border-radius: 3px; padding: 5px 6px;
  box-shadow: 0 1px 0 rgba(255,255,255,.12);
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: #a6d82f; box-shadow: 0 0 0 2px rgba(166,216,47,.45); }
textarea { resize: vertical; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; margin: 0 0 6px; }
.grid label { margin: 0 0 10px; min-width: 0; }
.grid label input, .grid label select, .grid label textarea { display: block; width: 100%; margin-top: 3px; font-weight: normal; }
.grid label.wide, .grid label.check { grid-column: 1 / -1; }
.grid label.check { font-weight: normal; }
.grid label.check input { display: inline; width: auto; margin: 0 6px 0 0; }
.half .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check input { margin: 0 4px 0 0; vertical-align: -2px; }

.stack label { display: block; margin: 10px 0 3px; }
.stack input { display: block; width: 100%; }
.stack .btn { margin-top: 16px; }
.narrow { width: 320px; }

form.inline { display: inline; }
form.inline input, form.inline select { width: auto; vertical-align: middle; }
form.inline label.check { font-weight: normal; margin: 0 4px; }
form.inline input.short { width: 4.5em; }
.post { white-space: pre-wrap; overflow-wrap: anywhere; }
.search { display: block; margin-bottom: 12px; }
.search input { width: 260px; }

.btn {
  display: inline-block; cursor: pointer;
  font: bold 14px/1 "Trebuchet MS", Helvetica, sans-serif; color: #243a00;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
  padding: 8px 18px 9px; border: 1px solid #6c8a00; border-radius: 14px;
  background: linear-gradient(#fbffb8 0, #e9f75a 45%, #cde21c 55%, #bcd60f 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 2px rgba(0,0,0,.4);
}
.btn:hover { background: linear-gradient(#ffffd6 0, #f2fc7c 45%, #d8ec2c 55%, #c8e01a 100%); }
.btn:active { background: linear-gradient(#bcd60f, #e9f75a); box-shadow: inset 0 1px 3px rgba(0,0,0,.35); }
.btn.small { font-size: 11px; padding: 4px 10px 5px; border-radius: 10px; vertical-align: middle; }
.btn.danger {
  color: #fff; text-shadow: 0 -1px 0 #6b1c00; border-color: #8a2b05;
  background: linear-gradient(#ffb48a 0, #f0743a 45%, #d8541b 55%, #c4480f 100%);
}
.btn.danger:hover { background: linear-gradient(#ffc8a6 0, #f6864f 45%, #e1632a 55%, #cf531a 100%); }

button.link {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: 12px "Lucida Grande", Verdana, sans-serif; color: #b6e04a;
}
button.link:hover { text-decoration: underline; color: #e4ff8a; }

.login { width: 360px; margin: 40px auto 30px; }
.login .btn { float: right; }
.login form { overflow: hidden; margin-bottom: 10px; }

.danger-zone { border-color: #6d3a1d; background: #2f2b24 linear-gradient(#3a3026, #2b2822); }
.danger-zone h2 { color: #f0a868; border-color: #6d3a1d; }


.lead { font-size: 14px; color: #e6f3f1; margin-bottom: 14px; }
th.num { text-align: right; }
.tag.online { background: #4f7f0c; color: #eaffc0; }
.tag.good { background: #29510f; color: #eaffc0; }
tr.locked td { color: #8fb6b2; }
tr.locked td b { color: #c3dcd9; }
#who input[type=search] { width: 170px; vertical-align: middle; }


#footer {
  clear: both; margin: 10px 0 30px; padding: 12px 0 0; border-top: 1px solid #1e555a;
  color: #5f8d88; font-size: 11px; text-align: center;
}


@media (max-width: 1200px) {
  #wrap { width: auto; }
  .cols, .grid, .half .grid { grid-template-columns: minmax(0, 1fr); }
  #main { display: block; }
  #side { position: static; margin-bottom: 14px; }
  #side ul { display: flex; flex-wrap: wrap; }
  #content { max-width: none; }
  #who { position: static; padding-top: 70px; }
  table { display: block; overflow-x: auto; }
  .login { width: auto; }
}


ol.steps { margin: 0 0 12px; padding-left: 26px; }
ol.steps > li { margin: 0 0 10px; padding-left: 4px; line-height: 1.5; }
ol.steps > li::marker { color: #a6d82f; font-weight: bold; }
ol.steps > li.done { color: #8fb6b2; }
ol.steps > li.done::marker { content: "\2713  "; }
ol.steps pre { margin: 6px 0; }
ol.steps table { margin: 6px 0; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 12px; }
a.choice {
  display: block; padding: 12px 14px; border-radius: 6px; color: #c3dcd9;
  background: #0c3034; border: 1px solid #22595e;
}
a.choice:hover { text-decoration: none; border-color: #a6d82f; background: #0f3a3f; }
a.choice b { display: block; margin-bottom: 4px; font: bold 15px "Trebuchet MS", Helvetica, sans-serif; color: #c9ec72; }
a.choice span { font-size: 12px; }
@media (max-width: 1200px) { .choices { grid-template-columns: minmax(0, 1fr); } }

.cols .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
label.upload { display: block; margin: 8px 0 10px; }
label.upload input[type="file"] {
  display: block; width: 100%; box-sizing: border-box; padding: 14px 12px; cursor: pointer;
  font: normal 13px "Trebuchet MS", Helvetica, sans-serif; color: #8fb6b2;
  background: #0c3034; border: 1px dashed #3f7a7f; border-radius: 6px;
}
label.upload input[type="file"]:hover { border-color: #a6d82f; }
label.upload input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 4px 12px; cursor: pointer;
  font: bold 12px "Trebuchet MS", Helvetica, sans-serif; color: #243a00;
  border: 1px solid #6c8a00; border-radius: 10px; background: linear-gradient(#fbffb8, #cde21c);
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 900px) { .cols .grid { grid-template-columns: minmax(0, 1fr); } }
meter { width: 120px; height: 10px; vertical-align: middle; }

.welcome { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: stretch; }
.welcome > .panel { margin-bottom: 0; }
.welcome .login { width: auto; margin: 0; display: flex; flex-direction: column; }
.welcome .login form { margin-bottom: 0; }
.newhere { margin-top: auto; padding-top: 14px; border-top: 1px dotted #2f7076; overflow: hidden; }
.newhere h3 { margin: 0 0 6px; font: bold 14px/1.2 "Trebuchet MS", Helvetica, sans-serif; color: #e6f3f1; }
.newhere .btn { float: right; }
.welcome ul { margin: 0 0 12px; padding-left: 18px; }
.welcome ul li { margin: 0 0 4px; line-height: 1.5; }
@media (max-width: 900px) { .welcome { grid-template-columns: minmax(0, 1fr); } }
.crumbs.center { text-align: center; }

img.pfp { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #dde3ea; }
.pfp-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.pfp-card { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 110px; text-align: center; }
.pfp-card a { word-break: break-word; }
