:root {
  --bg-page: #1b1b1b;
  --bg-staffbar: #131313;
  --bg-nav: #2a2a2a;
  --bg-subnav: #1c1c1c;
  --bg-body: #2b2b2b;
  --bg-block: #212121;
  --bg-block-alt: #1a1a1a;
  --bg-header: #262626;
  --bg-cell-dark: #141414;
  --bg-input: #1f1f1f;
  --bg-hover: #2a2a2a;
  --bg-menu: #1d1d1d;
  --border: #353535;
  --border-light: #3d3d3d;
  --border-dark: #2a2a2a;
  --text: #e8e8e8;
  --text-strong: #ffffff;
  --text-muted: #9a9a9a;
  --text-dim: #777777;
  --accent: #4cb391;
  --accent-strong: #5fd0a9;
  --accent-bg: #3d8c74;
  --accent-bg-hover: #47a184;
  --accent-soft: rgba(76, 179, 145, 0.14);
  --success: #43a047;
  --warning: #f0a020;
  --danger: #d9534f;
  --info: #3d8c74;
  --premium: #ff9a1f;
  --admin: #e2554f;
  --moderator: #5eb8ff;
  --radius: 3px;
  --container: 1170px;
  --font: 'Segoe UI', 'Open Sans', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Consolas', 'SFMono-Regular', 'Menlo', 'Liberation Mono', monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg-page); color: var(--text); font: 13px/1.5 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--border); margin: 12px 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--text-strong); }
button, input, select, textarea { font: inherit; color: inherit; }
code, pre { font-family: var(--mono); }
.u-muted { color: var(--text-muted); }
.u-dim { color: var(--text-dim); }
.u-strong { color: var(--text-strong); font-weight: 600; }
.u-right { text-align: right; }
.u-center { text-align: center; }
.u-hidden { display: none !important; }
.u-nowrap { white-space: nowrap; }
.u-mt { margin-top: 12px; }
.u-mb { margin-bottom: 12px; }
.u-small { font-size: 12px; }
.u-success { color: var(--success); }
.u-danger { color: var(--danger); }
.u-warning { color: var(--warning); }
.u-mono { font-family: var(--mono); }
.u-flex { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.u-grow { flex: 1 1 auto; min-width: 0; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.p-pageWrapper { min-height: 100vh; display: flex; flex-direction: column; }
.p-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 10px; }

.p-staffBar { padding-top: 14px; }
.p-staffBar-inner { background: var(--bg-staffbar); border-radius: var(--radius) var(--radius) 0 0; min-height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.p-staffBar-links { display: flex; gap: 2px; font-size: 12px; }
.p-staffBar-links a { color: var(--text-muted); padding: 10px 8px; display: inline-flex; gap: 5px; align-items: center; }
.p-staffBar-links a:hover { color: var(--text); text-decoration: none; }
.p-staffBar-links .badgeCount { background: var(--danger); color: #fff; border-radius: 8px; padding: 0 5px; font-size: 10px; line-height: 15px; }
.p-account { display: flex; align-items: center; gap: 4px; position: relative; }
.p-account > a, .p-account > .menuTrigger { color: var(--text); padding: 8px 9px; display: inline-flex; align-items: center; position: relative; cursor: pointer; background: none; border: 0; }
.p-account > a:hover, .p-account > .menuTrigger:hover { background: #1f1f1f; text-decoration: none; }
.p-account .icon { width: 17px; height: 17px; }
.p-account .badge-dot { position: absolute; top: 3px; right: 2px; min-width: 15px; height: 15px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 10px; line-height: 15px; text-align: center; padding: 0 3px; font-weight: 700; }
.p-account .authLinks a { color: var(--text); padding: 10px; font-size: 13px; }

.p-header { padding: 26px 0 24px; }
.p-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.p-header-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text-strong); text-decoration: none !important; }
.p-header-logo img { width: 58px; height: 58px; }
.p-header-logo .wordmark { font-family: 'Silkscreen', var(--mono); font-size: 34px; font-weight: 700; letter-spacing: 1px; line-height: 1; color: #e9e9e9; }
.p-header-logo .wordmark span { color: var(--accent); }
.p-header-search { width: 250px; max-width: 100%; position: relative; }
.p-header-search input { width: 100%; background: transparent; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 8px 40px 8px 7px; color: var(--text); height: 36px; }
.p-header-search input:focus { outline: none; border-color: var(--accent); }
.p-header-search button { position: absolute; right: 2px; top: 2px; bottom: 2px; width: 34px; background: transparent; border: 0; color: var(--accent); cursor: pointer; }
.p-header-search button .icon { width: 22px; height: 22px; }

.p-nav { background: var(--bg-nav); border: 1px solid var(--border); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
.p-nav.is-sticky { position: sticky; top: 0; z-index: 50; }
.p-nav-list { display: flex; list-style: none; margin: 0; padding: 0 0 0 0; flex-wrap: wrap; }
.p-navEl { position: relative; display: flex; }
.p-navEl > a { display: flex; align-items: center; padding: 0 16px; height: 48px; font-weight: 700; text-transform: uppercase; color: var(--text); font-size: 13px; }
.p-navEl > a:hover { text-decoration: none; color: var(--accent); }
.p-navEl.is-selected > a { color: var(--accent); background: var(--bg-subnav); }
.p-navEl-split { display: flex; align-items: center; }
.p-navEl .navCaret { color: var(--text-dim); padding: 0 10px 0 2px; height: 48px; display: flex; align-items: center; cursor: pointer; background: none; border: 0; }
.p-navEl.is-selected .navCaret { background: var(--bg-subnav); }
.p-navEl .navCaret::after { content: ''; border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px; }
.p-navEl > .menu { top: 100%; left: 0; }
.p-sectionLinks { background: var(--bg-subnav); border: 1px solid var(--border); border-top: 1px solid #333; padding: 0 16px; min-height: 40px; display: flex; align-items: center; flex-wrap: wrap; }
.p-sectionLinks a { color: var(--text-muted); padding: 10px 8px; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.p-sectionLinks a:hover { color: var(--text); text-decoration: none; }
.p-sectionLinks a.is-active { color: var(--accent); }
.p-sectionLinks .navCaret::after { content: ''; border: 4px solid transparent; border-top-color: currentColor; display: inline-block; margin-top: 4px; margin-left: 4px; color: var(--text-dim); }

.p-body { flex: 1 0 auto; }
.p-body-inner { background: var(--bg-body); border: 1px solid var(--border); border-top: 0; padding: 16px 16px 20px; min-height: 600px; border-radius: 0 0 var(--radius) var(--radius); }
.p-body-main { display: flex; gap: 16px; align-items: flex-start; }
.p-body-content { flex: 1 1 auto; min-width: 0; }
.p-body-sidebar { flex: 0 0 250px; width: 250px; }
.p-body-sideNav { flex: 0 0 250px; width: 250px; }
.p-footer { padding: 20px 0 30px; color: var(--text-dim); font-size: 12px; }
.p-footer-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.p-footer a { color: var(--text-muted); }

.p-breadcrumbs { background: var(--bg-body); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 10px 8px; margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; list-style: none; font-size: 13px; }
.p-breadcrumbs li { display: inline-flex; align-items: center; }
.p-breadcrumbs li a { color: var(--text-muted); }
.p-breadcrumbs li:last-child a, .p-breadcrumbs li.is-current { color: var(--accent); }
.p-breadcrumbs li + li::before { content: ''; width: 6px; height: 6px; border-right: 1.5px solid var(--text-muted); border-top: 1.5px solid var(--text-muted); transform: rotate(45deg); margin: 0 14px 0 10px; }
.p-breadcrumbs--bottom { margin: 16px 0 0; }

.p-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; flex-wrap: wrap; }
.p-title h1 { font-size: 22px; font-weight: 400; color: var(--text-strong); }
.p-description { color: var(--text-muted); margin: -6px 0 12px; }

.notice { border-radius: var(--radius); padding: 10px 14px; margin: 0 0 12px; border: 1px solid var(--border); background: var(--bg-block); border-left: 3px solid var(--accent); }
.notice--success { border-left-color: var(--success); }
.notice--error { border-left-color: var(--danger); }
.notice--warning { border-left-color: var(--warning); }

.block { margin-bottom: 16px; }
.block-container { background: var(--bg-block); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; }
.block-container--flush { padding: 0; }
.block-container > .block-body:first-child { border-top: 0; }
.block-header { background: var(--bg-header); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 12px; font-size: 15px; font-weight: 700; color: var(--text-strong); display: flex; align-items: center; gap: 8px; text-transform: none; }
.block-header .icon { color: var(--text); }
.block-header--caps { text-transform: uppercase; }
.block-header--inside { background: var(--bg-block-alt); border: 1px solid var(--border-light); margin: 0 0 8px; padding: 10px 12px; font-size: 14px; }
.block-header a { color: var(--text-strong); }
.block-header-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; color: var(--text-muted); }
.block-minorHeader { padding: 10px 12px; font-size: 15px; font-weight: 700; color: var(--text-strong); }
.block-body { }
.block-body--padded { padding: 12px 14px; }
.block-row { padding: 12px 14px; border-top: 1px solid var(--border-dark); }
.block-row:first-child { border-top: 0; }
.block-row--minor { font-size: 12px; color: var(--text-muted); }
.block-footer { padding: 10px 14px; border-top: 1px solid var(--border-dark); color: var(--text-muted); font-size: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.block-outer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.block-outer-opposite { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.block-filterBar { display: flex; justify-content: flex-end; align-items: center; padding: 14px 12px; background: var(--bg-header); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.block-filterBar .filterChip { background: var(--bg-block); border: 1px solid var(--border); padding: 2px 8px; border-radius: 10px; color: var(--text); }
.blankMessage { padding: 30px 14px; text-align: center; color: var(--text-muted); font-size: 14px; }
.block-container > .blankMessage { background: var(--bg-cell-dark); border-radius: var(--radius); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px; min-height: 32px; border-radius: var(--radius); border: 1px solid var(--border-light); background: #262626; color: var(--text-muted); cursor: pointer; font-size: 13px; line-height: 1.3; white-space: nowrap; text-decoration: none !important; }
.button:hover { color: var(--text); background: #2e2e2e; }
.button--primary { background: var(--accent-bg); border-color: var(--accent-bg); color: #fff; }
.button--primary:hover { background: var(--accent-bg-hover); color: #fff; }
.button--cta { font-size: 15px; padding: 9px 16px; min-height: 40px; }
.button--danger { background: #3a1f1f; border-color: #5a2a2a; color: #f2b8b5; }
.button--danger:hover { background: #4a2525; color: #fff; }
.button--small { padding: 3px 8px; min-height: 26px; font-size: 12px; }
.button--link { background: transparent; border-color: var(--border-light); }
.button--plain { background: none; border: 0; color: var(--text-muted); padding: 4px 6px; min-height: 0; }
.button--plain:hover { background: none; color: var(--text); }
.button[disabled], .button.is-disabled { opacity: 0.55; cursor: not-allowed; }
.buttonGroup { display: inline-flex; }
.buttonGroup .button { border-radius: 0; }
.buttonGroup .button + .button { border-left: 0; }
.buttonGroup .button:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.buttonGroup .button:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
form.inline { display: inline; margin: 0; }

.input, select.input, textarea.input { width: 100%; background: var(--bg-input); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 7px 9px; color: var(--text); min-height: 34px; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.input::placeholder { color: var(--text-dim); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.input--title { font-size: 22px; padding: 6px 8px; min-height: 44px; }
.input--code { font-family: var(--mono); font-size: 12.5px; min-height: 320px; tab-size: 4; white-space: pre; }
.input--inline { width: auto; }
select.input { appearance: auto; }
select.input.input--inline { width: auto; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }

.formRow { display: flex; border-top: 1px solid var(--border-dark); }
.formRow:first-child { border-top: 0; }
.formRow-label { flex: 0 0 33%; max-width: 33%; background: var(--bg-cell-dark); padding: 16px 14px; text-align: right; color: var(--text); font-weight: 400; }
.formRow-label .hint { display: block; color: var(--text-muted); font-size: 11px; margin-top: 2px; }
.formRow-control { flex: 1 1 auto; min-width: 0; padding: 12px 14px; }
.formRow-explain { color: var(--text-muted); font-size: 12px; margin-top: 6px; }
.formRow--submit .formRow-control { background: var(--bg-cell-dark); }
.formRow--full .formRow-control { padding: 12px 14px; }
.formSubmitRow { background: var(--bg-cell-dark); padding: 10px 14px 10px calc(33% + 14px); display: flex; gap: 8px; flex-wrap: wrap; }
.formSubmitRow--center { padding-left: 14px; justify-content: center; }
.checkList { list-style: none; margin: 0; padding: 0; }
.checkList li { padding: 3px 0; }
.checkList li ul { list-style: none; padding-left: 20px; margin: 0; }
.checkList label { display: inline-flex; gap: 7px; align-items: center; cursor: pointer; }
.formGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }

.badge { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 11px; font-weight: 600; line-height: 1.6; color: #fff; background: #555; vertical-align: middle; white-space: nowrap; }
.badge--new { background: var(--accent-bg); font-size: 12px; font-weight: 600; padding: 0 5px; border-radius: 2px; margin-left: 4px; }
.badge--free { background: var(--success); }
.badge--paid { background: transparent; color: var(--text); padding: 1px 2px; font-size: 11px; }
.badge--price { background: var(--accent-bg); border: 1px solid #66c7a7; padding: 0 5px; }
.badge--resolved, .badge--success { background: var(--success); }
.badge--open { background: #3a7bd5; }
.badge--awaiting { background: var(--warning); color: #1a1a1a; }
.badge--answered { background: var(--accent-bg); }
.badge--closed { background: #666; }
.badge--pending { background: var(--warning); color: #1a1a1a; }
.badge--approved { background: var(--success); }
.badge--rejected, .badge--danger { background: var(--danger); }
.badge--high { background: var(--danger); }
.badge--medium { background: #3a7bd5; }
.badge--low { background: #666; }
.badge--staff { background: var(--accent-bg); }
.badge--sticky { background: #555; }

.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; flex: none; color: rgba(255, 255, 255, 0.85); font-weight: 400; text-decoration: none !important; user-select: none; vertical-align: middle; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--xxs { width: 18px; height: 18px; font-size: 11px; }
.avatar--xs { width: 24px; height: 24px; font-size: 14px; }
.avatar--s { width: 36px; height: 36px; font-size: 22px; }
.avatar--m { width: 48px; height: 48px; font-size: 28px; }
.avatar--l { width: 96px; height: 96px; font-size: 56px; }
.avatar--square { border-radius: 0; }
.avatar--profile { width: 192px; height: 192px; font-size: 110px; border-radius: 0; }
.avatar-letter-light { color: #8d97ff; }
.username { color: var(--text); }
.username--premium { color: var(--premium) !important; }
.username--admin { color: var(--admin) !important; font-weight: 600; }
.username--moderator { color: var(--moderator) !important; }
.username--banned { color: var(--text-dim) !important; text-decoration: line-through; }
.userTitle { color: var(--text); font-size: 12px; }

.menu { position: absolute; z-index: 100; min-width: 220px; background: var(--bg-menu); border: 1px solid var(--border); border-top: 2px solid var(--accent); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6); display: none; }
.menu.is-open { display: block; }
.menu--right { right: 0; left: auto; }
.menu-header { padding: 10px 12px; font-size: 15px; color: var(--text-strong); border-bottom: 1px solid var(--border); }
.menu-content { max-height: 70vh; overflow-y: auto; }
.menu-linkRow { display: block; padding: 7px 12px; color: var(--text); font-size: 13px; }
.menu-linkRow:hover { background: var(--bg-hover); text-decoration: none; }
.menu-separator { border-top: 1px solid var(--border); margin: 0; }
.menu-footer { padding: 8px 12px; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border); }
.menu-footer a { color: var(--text-muted); }
.menu-row { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.menu-tabs { display: flex; border-bottom: 1px solid var(--border); }
.menu-tabs a { padding: 10px 22px; color: var(--text-muted); border-bottom: 2px solid transparent; }
.menu-tabs a.is-active { color: var(--text); border-bottom-color: var(--accent); }
.menu--account { width: 350px; }
.accountMenu-head { display: flex; gap: 12px; padding: 10px 10px 6px; }
.accountMenu-head .username { font-size: 15px; font-weight: 600; }
.accountMenu-stats { padding: 0 10px 10px; font-size: 12px; color: var(--text-muted); }
.accountMenu-stats div { display: flex; justify-content: space-between; }
.accountMenu-links { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); padding: 4px 0; }
.accountMenu-links a { padding: 7px 12px; color: var(--text); }
.accountMenu-links a:hover { background: var(--bg-hover); text-decoration: none; }
.accountMenu-links + .accountMenu-links { border-top: 1px solid var(--border); }
.accountMenu-status { padding: 8px; border-top: 1px solid var(--border); }
.menu--alerts { width: 300px; }
.alertList { list-style: none; margin: 0; padding: 0; }
.alertList li { display: flex; gap: 10px; padding: 9px 10px; border-bottom: 1px solid var(--border); font-size: 13px; }
.alertList li.is-unread { background: #232a27; }
.alertList .alert-time { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.alertList .alert-subject { color: var(--text-muted); }
.alertList .alert-subject:hover { color: var(--accent); }

.overlay-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(3px); z-index: 900; display: none; align-items: flex-start; justify-content: center; padding: 34px 10px; overflow-y: auto; }
.overlay-backdrop.is-open { display: flex; }
.overlay { background: var(--bg-block-alt); border: 1px solid var(--border); border-radius: var(--radius); width: 800px; max-width: 100%; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7); }
.overlay-title { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 18px; font-weight: 700; color: var(--text-strong); border-bottom: 1px solid var(--border); }
.overlay-close { background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer; line-height: 1; }
.overlay-body { padding: 0; }
.overlay-list a { display: block; padding: 12px 24px; color: var(--text); background: var(--bg-block); border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.overlay-list a:last-child { margin-bottom: 0; }
.overlay-list a:hover { background: var(--bg-hover); text-decoration: none; }
.overlay-list a .u-muted { display: block; font-size: 12px; }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.tabs a { padding: 12px 14px; color: var(--text-muted); font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.tabs .tabs-sep { width: 2px; height: 22px; background: var(--text-muted); margin: 0 10px; }
.tabs--boxed { border: 1px solid var(--border); background: var(--bg-block-alt); margin-bottom: 8px; border-radius: var(--radius); gap: 0; }
.tabs--boxed a { padding: 14px 15px; font-weight: 600; color: var(--text); border-right: 1px solid var(--border); border-bottom: 0; margin: 0; background: var(--bg-block-alt); }
.tabs--boxed a.is-active { color: var(--accent); background: var(--bg-body); }

.pageNav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.pageNav a, .pageNav span { min-width: 24px; height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; border: 1px solid var(--border); background: var(--bg-block-alt); color: var(--accent); font-size: 13px; border-radius: 2px; }
.pageNav a.is-current { border-bottom: 2px solid var(--accent); color: var(--accent); background: var(--bg-block); }
.pageNav a:hover { text-decoration: none; background: var(--bg-hover); }
.pageNav span { color: var(--text-dim); border: 0; background: none; }
.pageNav-wrap { display: flex; justify-content: flex-end; margin: 8px 0; }

.nodeList .node { display: flex; align-items: center; background: var(--bg-block); border: 1px solid var(--border); border-top: 0; padding: 0; min-height: 57px; }
.nodeList .node:first-child { border-top: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; }
.nodeList .node:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.node-icon { flex: 0 0 56px; text-align: center; color: var(--text-muted); }
.node-icon .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.node.is-unread .node-icon { color: var(--accent); }
.node-main { flex: 1 1 auto; padding: 10px 6px; min-width: 0; }
.node-title { font-size: 15px; font-weight: 400; color: var(--text); }
.node.is-unread .node-title { color: var(--accent); font-weight: 400; }
.node-title a { color: inherit; }
.node-description { font-size: 12px; color: var(--text-muted); }
.node-stats { flex: 0 0 140px; display: flex; text-align: center; }
.node-stats dl { flex: 1; margin: 0; padding: 0 6px; }
.node-stats dl + dl { border-left: 1px solid var(--border-light); }
.node-stats dt { font-size: 11px; color: var(--text-muted); }
.node-stats dd { margin: 0; font-size: 14px; }
.node-extra { flex: 0 0 230px; padding: 8px 12px; display: flex; gap: 10px; align-items: center; min-width: 0; font-size: 12px; }
.node-extra-main { min-width: 0; }
.node-extra-title { color: var(--text-strong); font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.node-extra-meta { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node-extra-meta a { color: var(--text-muted); }
.categoryBlock { margin-bottom: 16px; }
.categoryBlock .block-header { margin-bottom: 12px; }

.structItemContainer { background: var(--bg-block); border: 1px solid var(--border); border-radius: var(--radius); }
.structItem { display: flex; align-items: center; border-top: 1px solid var(--border); min-height: 56px; }
.structItem:first-child { border-top: 0; }
.structItem.is-sticky { background: #252525; }
.structItem-icon { flex: 0 0 64px; display: flex; justify-content: center; padding: 10px 0; }
.structItem-main { flex: 1 1 auto; min-width: 0; padding: 10px 6px; }
.structItem-title { font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.structItem-title a { color: var(--text); }
.structItem.is-unread .structItem-title a { font-weight: 700; color: var(--text-strong); }
.structItem-minor { font-size: 12px; color: var(--text-muted); }
.structItem-minor a { color: var(--text-muted); }
.structItem-status { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--text-muted); }
.structItem-stats { flex: 0 0 140px; padding: 6px 12px; border-left: 1px solid var(--border-light); border-right: 1px solid var(--border-light); font-size: 12px; color: var(--text-muted); }
.structItem-stats dl { display: flex; justify-content: space-between; margin: 0; }
.structItem-stats dd { margin: 0; color: var(--text); }
.structItem-latest { flex: 0 0 190px; padding: 6px 12px; text-align: right; font-size: 12px; }
.structItem-latest a { color: var(--accent); }
.structItem-latest .u-muted a { color: var(--text-muted); }
.structItem-userIcon { flex: 0 0 48px; padding-right: 10px; display: flex; justify-content: center; }

.message { display: flex; background: var(--bg-block); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; }
.message.is-deleted { opacity: 0.6; }
.message.is-staffNote { border-color: #6b5a22; }
.message-user { flex: 0 0 160px; background: var(--bg-cell-dark); padding: 12px 8px; text-align: center; border-right: 1px solid var(--border); border-radius: var(--radius) 0 0 var(--radius); }
.message-user .avatar { margin-bottom: 8px; }
.message-user .username { font-weight: 600; font-size: 14px; display: block; }
.message-user .userTitle { display: block; margin-bottom: 6px; }
.message-userExtras { font-size: 11px; color: var(--text-muted); text-align: left; padding: 6px 4px 0; border-top: 1px solid var(--border); }
.message-userExtras dl { display: flex; justify-content: space-between; margin: 0 0 1px; }
.message-userExtras dd { margin: 0; color: var(--text); }
.message-cell { flex: 1 1 auto; min-width: 0; padding: 10px 14px; display: flex; flex-direction: column; }
.message-attribution { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border-dark); margin-bottom: 10px; gap: 8px; }
.message-attribution a { color: var(--text-muted); }
.message-body { flex: 1 1 auto; word-wrap: break-word; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
.message-signature { border-top: 1px solid var(--border-dark); margin-top: 12px; padding-top: 8px; font-size: 12px; color: var(--text-muted); max-height: 120px; overflow: hidden; }
.message-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.message-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.message-actions .button { min-height: 26px; padding: 2px 9px; font-size: 12px; }
.message-reactions { font-size: 12px; color: var(--text-muted); margin-top: 8px; background: var(--bg-block-alt); padding: 4px 8px; border-radius: var(--radius); }
.message-edited { font-size: 11px; color: var(--text-dim); margin-top: 8px; }
.message-attachments { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.attachment { border: 1px solid var(--border); background: var(--bg-block-alt); padding: 6px 10px; border-radius: var(--radius); font-size: 12px; display: inline-flex; gap: 6px; align-items: center; }
.attachment img { max-width: 160px; max-height: 120px; display: block; }
.message--simple { padding: 10px; gap: 12px; }
.message--simple .message-user { flex: 0 0 auto; background: none; border: 0; padding: 0; }

.bbCodeBlock { background: var(--bg-block-alt); border: 1px solid var(--border); border-left: 3px solid var(--accent); margin: 8px 0; border-radius: var(--radius); }
.bbCodeBlock-title { padding: 5px 10px; font-size: 12px; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border); }
.bbCodeBlock-content { padding: 8px 10px; }
.bbCodeCode { margin: 0; padding: 10px; overflow-x: auto; font-size: 12.5px; line-height: 1.5; color: #d8d8d8; max-height: 500px; }
.bbCodeInline { background: var(--bg-block-alt); border: 1px solid var(--border); padding: 0 4px; border-radius: 2px; font-size: 12.5px; }
.bbCodeSpoiler { background: var(--bg-block-alt); border: 1px solid var(--border); border-radius: var(--radius); margin: 8px 0; }
.bbCodeSpoiler summary { cursor: pointer; padding: 5px 10px; font-weight: 600; color: var(--text-muted); }
.bbCodeSpoiler-content { padding: 8px 10px; border-top: 1px solid var(--border); }
.bbImage { max-width: 100%; height: auto; }
.bbSize--1 { font-size: 10px; } .bbSize--2 { font-size: 12px; } .bbSize--3 { font-size: 14px; } .bbSize--4 { font-size: 16px; } .bbSize--5 { font-size: 19px; } .bbSize--6 { font-size: 24px; } .bbSize--7 { font-size: 30px; }
.smilie { font-size: 1.15em; }
.tok-k { color: #6fb3ff; } .tok-s { color: #e0b070; } .tok-c { color: #6a9955; } .tok-n { color: #b5cea8; }

.editor { border: 1px solid var(--border-light); border-radius: var(--radius); background: var(--bg-block); }
.editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.editor-toolbar button { background: none; border: 0; color: var(--text); width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 2px; font-weight: 700; }
.editor-toolbar button:hover { background: var(--bg-hover); }
.editor-toolbar button .icon { width: 17px; height: 17px; }
.editor-toolbar .sep { width: 1px; height: 18px; background: var(--border-light); margin: 0 6px; }
.editor-toolbar .editor-preview { margin-left: auto; width: auto; padding: 0 12px; gap: 6px; border-left: 1px solid var(--border); border-radius: 0; height: 36px; margin-right: -10px; margin-top: -8px; margin-bottom: -8px; }
.editor textarea { border: 0; border-radius: 0 0 var(--radius) var(--radius); min-height: 250px; background: var(--bg-block); }
.editor textarea:focus { box-shadow: none; }
.editor-previewPane { padding: 10px; min-height: 250px; border-top: 1px solid var(--border); display: none; }
.editor.is-previewing textarea { display: none; }
.editor.is-previewing .editor-previewPane { display: block; }
.editor-smilies { display: none; padding: 6px 10px; border-bottom: 1px solid var(--border); gap: 6px; flex-wrap: wrap; }
.editor-smilies.is-open { display: flex; }
.editor-smilies button { background: none; border: 0; font-size: 18px; cursor: pointer; }

.sideNav .block-container { padding: 8px; }
.sideNav-header { background: var(--bg-block-alt); border: 1px solid var(--border-light); padding: 7px 10px; font-weight: 700; color: var(--text-strong); display: flex; gap: 8px; align-items: center; font-size: 14px; border-radius: 2px; }
.sideNav-list { list-style: none; margin: 4px 0 6px; padding: 0; }
.sideNav-list a { display: block; padding: 7px 14px; color: var(--text); font-size: 13px; border-left: 2px solid transparent; }
.sideNav-list a:hover { background: var(--bg-hover); text-decoration: none; }
.sideNav-list a.is-selected { color: var(--accent); border-left-color: var(--accent); background: var(--bg-hover); }

.sidebarBlock { margin-bottom: 16px; }
.sidebarBlock .block-container { padding: 8px; }
.sidebarBlock .block-header--inside { display: flex; gap: 8px; align-items: center; }
.sidebarBlock-row { padding: 6px 2px 10px; }
.sidebarBlock-row + .sidebarBlock-row { border-top: 0; }
.sidebarBlock-title { font-size: 14px; color: var(--text); display: block; }
.sidebarBlock-snippet { font-size: 12px; color: var(--text); margin: 2px 0; }
.sidebarBlock-meta { font-size: 11px; color: var(--text-muted); }
.sidebarBlock-meta a { color: var(--text-muted); text-decoration: underline; }
.pairs { display: flex; justify-content: space-between; margin: 0; padding: 3px 0; font-size: 13px; }
.pairs dt { color: var(--text-muted); }
.pairs dd { margin: 0; color: var(--text); }

.shoutbox .block-container { padding: 12px 8px 8px; }
.shoutbox-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 18px; font-size: 14px; font-weight: 700; color: var(--text-strong); }
.shoutbox-head .actions { color: var(--text); display: flex; gap: 8px; }
.shoutbox-form { display: flex; gap: 4px; padding: 0 10px; }
.shoutbox-form .input { flex: 1; }
.shoutbox-form .button { width: 36px; padding: 0; }
.shoutbox-list { list-style: none; margin: 0; padding: 12px 10px; height: 300px; overflow-y: auto; font-size: 13px; }
.shoutbox-list li { padding: 3px 0; display: flex; gap: 8px; align-items: baseline; }
.shoutbox-list .time { color: var(--text-dim); font-size: 11px; white-space: nowrap; }
.shoutbox-online { background: var(--bg-cell-dark); padding: 12px 14px; font-size: 12px; margin: 0 0 0; border-radius: 0 0 var(--radius) var(--radius); }
.shoutbox { position: relative; }
.shoutbox-body { display: grid; grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows 0.3s ease, opacity 0.3s ease, visibility 0s; }
.shoutbox-inner { min-height: 0; overflow: hidden; }
.shoutbox.is-collapsed .shoutbox-body { grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s; }
@media (prefers-reduced-motion: reduce) { .shoutbox-body, .shoutbox.is-collapsed .shoutbox-body { transition: none; } }
.smiliePicker { width: 410px; max-width: calc(100vw - 32px); }
.smiliePicker-search { display: flex; align-items: center; gap: 8px; padding: 8px; border-bottom: 1px solid var(--border); }
.smiliePicker-search .input { flex: 1; min-height: 36px; }
.smiliePicker-search .button--plain { color: var(--accent); }
.smiliePicker-search .icon { width: 16px; height: 16px; }
.smiliePicker-list { max-height: 290px; overflow-y: auto; }
.smiliePicker-group + .smiliePicker-group { border-top: 1px solid var(--border); }
.smiliePicker-heading { padding: 8px 12px; color: var(--text); font-size: 13px; border-bottom: 1px solid var(--border); }
.smiliePicker-grid { display: flex; flex-wrap: wrap; gap: 2px; padding: 8px; }
.smiliePicker-grid .smilie { width: 34px; height: 34px; background: none; border: 0; border-radius: var(--radius); font-size: 22px; line-height: 1; cursor: pointer; }
.smiliePicker-grid .smilie:hover { background: var(--bg-hover); }
.smiliePicker-empty { padding: 14px 12px; color: var(--text-muted); }

.cardGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cardGrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--bg-block-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; min-height: 160px; position: relative; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.card-badges { display: flex; gap: 6px; align-items: center; }
.card-title { font-size: 16px; font-weight: 600; color: var(--text-strong); line-height: 1.35; }
.card-title a { color: inherit; }
.card-author { color: var(--text-muted); font-size: 12px; margin: 2px 0 4px; }
.card-author a { color: var(--text-muted); }
.card-desc { color: var(--text-muted); font-size: 12px; flex: 1 1 auto; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.card-meta { color: var(--text-muted); font-size: 12px; margin-top: 6px; }
.card-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.card-actions--left { justify-content: flex-start; }
.card-icon { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: #333; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; }
.card-icon img { width: 100%; height: 100%; object-fit: cover; }

.searchBar { display: flex; gap: 8px; padding: 16px; background: var(--bg-block); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; }
.searchBar .input { flex: 1 1 auto; }
.searchBar select.input { flex: 0 0 130px; }

.upgradeRow { display: flex; border-top: 1px solid var(--border-dark); }
.upgradeRow:first-child { border-top: 0; }
.upgradeRow-label { flex: 0 0 33%; background: var(--bg-cell-dark); padding: 16px 14px; text-align: right; }
.upgradeRow-label .title { color: var(--text-strong); }
.upgradeRow-label .cost, .upgradeRow-label .slots { color: var(--text-muted); font-size: 11px; display: block; }
.upgradeRow-control { flex: 1 1 auto; padding: 14px; min-width: 0; }
.upgradeRow-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.upgradeRow-form select { flex: 1 1 200px; }
.upgradeRow-notes { margin-top: 8px; font-size: 12px; }
.upgradeRow-notes .os { color: var(--accent); font-weight: 600; }
.upgradeRow-notes em { color: var(--text); }

.memberHeader { background: var(--bg-cell-dark); border: 1px solid var(--border); border-radius: var(--radius); position: relative; margin-bottom: 8px; }
.memberHeader-banner { height: 80px; background-size: cover; background-position: center; background-color: #101010; border-radius: var(--radius) var(--radius) 0 0; }
.memberHeader-main { display: flex; gap: 14px; padding: 0 14px 14px; }
.memberHeader-avatar { margin-top: -66px; flex: none; }
.memberHeader-content { flex: 1 1 auto; min-width: 0; }
.memberHeader-top { display: flex; justify-content: space-between; align-items: flex-start; margin-top: -66px; height: 66px; padding-top: 8px; gap: 10px; }
.memberHeader-name { font-size: 24px; font-weight: 400; }
.memberHeader-title { color: var(--text); font-size: 13px; }
.memberHeader-stats { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; padding: 18px 0 14px; border-bottom: 1px solid var(--border); background: var(--bg-body); margin: 0 -14px 0 0; }
.memberHeader-stats dt { font-size: 11px; color: var(--text-muted); }
.memberHeader-stats dd { margin: 4px 0 0; font-size: 14px; }
.memberHeader-blurb { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 0; color: var(--text-muted); gap: 10px; flex-wrap: wrap; }
.memberHeader-blurb strong { color: var(--text); font-weight: 400; }
.memberHeader-wrap { background: var(--bg-body); }
.statusForm { display: flex; gap: 10px; align-items: flex-start; }

.dataList table, table.dataList { width: 100%; border-collapse: collapse; }
.dataList th { text-align: left; background: var(--bg-header); color: var(--text-muted); font-weight: 600; font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.dataList td { padding: 8px 10px; border-bottom: 1px solid var(--border-dark); vertical-align: middle; }
.dataList tr:hover td { background: #262626; }
.dataList td.actions { text-align: right; white-space: nowrap; }
.tableWrap { overflow-x: auto; }

.statGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.stat { background: var(--bg-block-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.stat-label { color: var(--text-muted); font-size: 12px; }
.stat-value { font-size: 24px; color: var(--text-strong); margin-top: 4px; }

.downloadPanel { background: var(--bg-cell-dark); padding: 16px 14px; border-top: 1px solid var(--border); }
.keyBox { font-family: var(--mono); background: var(--bg-cell-dark); border: 1px dashed var(--border-light); padding: 8px 10px; border-radius: var(--radius); word-break: break-all; }
.codePanel { background: #151515; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; white-space: pre; color: #d8d8d8; }
.docs h2 { font-size: 18px; margin: 18px 0 8px; }
.docs h3 { font-size: 15px; margin: 14px 0 6px; color: var(--accent); }
.docs p, .docs li { color: var(--text); line-height: 1.65; }
.docs table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.docs th, .docs td { border: 1px solid var(--border); padding: 6px 8px; text-align: left; vertical-align: top; }
.docs th { background: var(--bg-header); }
.docs code { background: var(--bg-block-alt); padding: 0 4px; border-radius: 2px; }
.helpContent { padding: 20px 22px; font-size: 14px; line-height: 1.6; }

.authBlock { margin: 0 auto; }
.authBlock .block-container { margin-bottom: 14px; }
.authBlock .block-body .formRow { border-top: 0; }
.authSwitch { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 4px 0 14px; color: var(--text); }
.notice--icon { display: flex; align-items: center; gap: 8px; padding: 12px 14px; }
.notice--icon > .icon { width: 30px; height: 30px; flex: none; color: var(--danger); border: 2px solid var(--danger); border-radius: 50%; padding: 4px; stroke-width: 3; }
.formRow-check { display: flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--text); }
.formRow-control > .formRow-check:first-child { margin-top: 4px; }
.inputGroup { display: flex; }
.inputGroup .input { border-radius: var(--radius) 0 0 var(--radius); }
.inputGroup-button { display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; background: var(--bg-input); border: 1px solid var(--border-light); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; color: var(--text); font-size: 13px; cursor: pointer; white-space: nowrap; }
.inputGroup-button:hover { background: var(--bg-hover); }
.inputGroup-button .icon { width: 14px; height: 14px; }
.pwMeter-bar { height: 4px; margin-top: 6px; background: var(--border-light); border-radius: 2px; overflow: hidden; }
.pwMeter-bar span { display: block; height: 100%; width: 0; transition: width 0.2s, background 0.2s; }
.pwMeter-text { margin-top: 10px; font-size: 13px; color: var(--text); }
.loginMenu { display: flex; flex-direction: column; width: 300px; max-width: calc(100vw - 32px); padding: 14px 14px 4px; }
.loginMenu-label { margin: 0 0 6px; color: var(--text); font-weight: 600; }
.loginMenu .inputGroup, .loginMenu > .input { margin-bottom: 14px; }
.loginMenu .inputGroup { margin-bottom: 4px; }
.loginMenu-forgot { color: var(--text-muted); margin-bottom: 14px; }
.loginMenu-check { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.loginMenu-submit { margin: 0 14px 18px; }
.loginMenu .authSwitch { padding: 8px 0 10px; }

.errorPage { text-align: center; padding: 60px 10px; }
.errorPage h1 { font-size: 20px; margin-bottom: 10px; }

@media (max-width: 1000px) {
  .cardGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-body-sidebar { display: none; }
  .node-extra { display: none; }
}
@media (max-width: 800px) {
  .cardGrid, .cardGrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-body-main { flex-direction: column; }
  .p-body-sideNav { width: 100%; flex: none; }
  .structItem-latest, .structItem-stats { display: none; }
  .formRow, .upgradeRow { flex-direction: column; }
  .formRow-label, .upgradeRow-label { max-width: none; text-align: left; padding: 10px 14px 4px; }
  .formSubmitRow { padding-left: 14px; }
  .message { flex-direction: column; }
  .message-user { flex: none; display: flex; gap: 10px; text-align: left; align-items: center; border-right: 0; border-bottom: 1px solid var(--border); }
  .message-user .avatar { margin: 0; width: 36px; height: 36px; font-size: 20px; }
  .message-userExtras { display: none; }
  .memberHeader-stats { grid-template-columns: repeat(3, 1fr); }
  .avatar--profile { width: 110px; height: 110px; font-size: 60px; }
  .p-header-logo .wordmark { font-size: 26px; }
  .p-header-search { width: 160px; }
}
@media (max-width: 560px) {
  .cardGrid, .cardGrid--3 { grid-template-columns: minmax(0, 1fr); }
  .node-stats { display: none; }
  .p-navEl > a { padding: 0 10px; height: 42px; font-size: 12px; }
  .p-header-inner { flex-wrap: wrap; }
  .p-header-search { width: 100%; }
  .p-body-inner { padding: 10px 8px; }
  .menu--account, .menu--alerts { width: calc(100vw - 20px); right: -10px; }
}
.p-navEl-link { display: flex; align-items: center; height: 48px; padding: 0 4px 0 16px; font-weight: 700; color: var(--text); text-transform: uppercase; font-size: 13px; }
.p-navEl-link:hover { color: var(--accent); text-decoration: none; }
.p-navEl.is-selected .p-navEl-split { background: var(--bg-subnav); }
.p-navEl.is-selected .p-navEl-link { color: var(--accent); }
.p-navEl.is-selected .navCaret { background: transparent; }
