:root {
  color-scheme: dark;
  --bg: #111;
  --panel: #242424;
  --panel-soft: #303030;
  --line: #373737;
  --text: #fff;
  --muted: #c8c8c8;
  --link: #6da6ff;
  --accent: #a7d800;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 11px/1.4 Verdana, Arial, Helvetica, sans-serif;
}

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

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1070px, calc(100% - 28px));
  margin: 15px auto;
}

.site-shell,
.panel,
.footer {
  border: 1px solid var(--line);
  background: var(--panel);
}

.site-shell {
  border-radius: 4px;
  overflow: hidden;
}

.brand {
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #252525;
  font: 19px/1 Arial, Helvetica, sans-serif;
}

.brand span:first-child {
  color: #fff;
}

.brand span:last-child {
  color: var(--accent);
}

.nav {
  min-height: 31px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 12px;
  background: var(--panel-soft);
}

.nav a {
  color: #fff;
  font-size: 10px;
}

.nav a[hidden] {
  display: none;
}

.home-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.home-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.notice {
  margin: 0;
  padding: 9px 12px;
  background: #262626;
}

.panel {
  margin-top: 13px;
}

.panel h1,
.panel h2 {
  margin: 0;
  padding: 7px 10px;
  background: var(--panel-soft);
  font-size: 11px;
  font-weight: 700;
}

.panel-body {
  padding: 9px 12px;
}

.panel-body p {
  margin: 0;
  font-weight: 700;
}

.forum-list {
  display: none;
}

.forum-row {
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: #222;
}

.forum-row p {
  margin: 2px 0 0;
  color: var(--muted);
}

.forum-title {
  color: #fff;
  font-weight: 700;
}

.forum-row span {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.footer {
  margin-top: 13px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.footer span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.auth-panel {
  max-width: 430px;
}

.auth-form {
  padding: 10px 12px 12px;
}

.auth-form label {
  display: block;
  margin-bottom: 9px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  height: 28px;
  margin-top: 4px;
  padding: 4px 6px;
  border: 1px solid #414141;
  background: #151515;
  color: var(--text);
  font: inherit;
}

.auth-form input:focus {
  border-color: #626262;
  outline: none;
}

.auth-form button {
  min-width: 74px;
  height: 28px;
  border: 1px solid #414141;
  background: #303030;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.auth-form button:disabled {
  color: var(--muted);
  cursor: default;
}

.form-message {
  min-height: 16px;
  margin: 8px 0 0;
  color: #ff7c7c;
  font-weight: 700;
}

.profile-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.profile-meta {
  margin: 3px 0 0;
  color: var(--muted);
}

.comments {
  padding: 0 12px 10px;
}

.comment {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.comment:first-child {
  border-top: 0;
}

.comment-head {
  margin: 0 0 4px;
  color: var(--muted);
  font-weight: 700;
}

.comment-body {
  margin: 0;
  white-space: pre-wrap;
}

.comment-actions {
  margin-top: 7px;
}

.comment-actions button {
  min-width: 54px;
  height: 24px;
  border: 1px solid #414141;
  background: #303030;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.comment-actions button:disabled {
  color: var(--muted);
  cursor: default;
}

.empty-message {
  margin: 9px 0 0;
  color: var(--muted);
}

.comment-form {
  padding: 10px 12px 12px;
}

.comment-form textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  padding: 6px;
  border: 1px solid #414141;
  background: #151515;
  color: var(--text);
  font: inherit;
}

.comment-form textarea:focus {
  border-color: #626262;
  outline: none;
}

.comment-form button {
  min-width: 62px;
  height: 28px;
  margin-top: 8px;
  border: 1px solid #414141;
  background: #303030;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

@media (min-width: 760px) {
  .forum-list {
    display: block;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: calc(100% - 16px);
    margin-top: 8px;
  }

  .brand {
    height: 44px;
  }

  .nav {
    gap: 14px;
  }
}
