:root {
  --sa-bg: #070b17;
  --sa-surface: rgba(17, 25, 47, .68);
  --sa-surface-strong: rgba(22, 32, 57, .88);
  --sa-surface-soft: rgba(255, 255, 255, .055);
  --sa-border: rgba(170, 197, 255, .15);
  --sa-border-strong: rgba(104, 151, 255, .32);
  --sa-text: #edf3ff;
  --sa-muted: #b2bfd6;
  --sa-primary: #5b8cff;
  --sa-primary-2: #8b5cf6;
  --sa-cyan: #2dd4bf;
  --sa-danger: #fb7185;
  --sa-radius: 18px;
  --sa-shadow: 0 22px 65px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--sa-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
  background:
    radial-gradient(circle at 10% -10%, rgba(91, 140, 255, .28), transparent 34rem),
    radial-gradient(circle at 92% 12%, rgba(139, 92, 246, .22), transparent 30rem),
    radial-gradient(circle at 45% 110%, rgba(45, 212, 191, .12), transparent 34rem),
    var(--sa-bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .36;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

::selection { color: #fff; background: rgba(91, 140, 255, .65); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #080d1b; }
::-webkit-scrollbar-thumb { border: 3px solid #080d1b; border-radius: 20px; background: #35466c; }
::-webkit-scrollbar-thumb:hover { background: var(--sa-primary); }

a:link, a:visited { color: #8cb0ff; text-decoration: none; transition: color .18s ease, opacity .18s ease; }
a:hover, a:active { color: #c5d6ff; text-decoration: none; }

#container {
  min-width: 0;
  color: var(--sa-text);
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.wrapper {
  width: min(1240px, calc(100% - 40px));
  min-width: 0;
  max-width: none;
  margin-inline: auto;
}

#header { padding-top: 18px; }


































#search { display: flex; gap: 7px; align-items: center; }
#search input { margin: 0; }
#search input.textbox { width: 190px; }

#content {
  width: auto !important;
  padding: 26px 0 44px;
  overflow: visible;
  background: transparent;
}

.navigation {
  margin: 0 0 18px;
  padding: 12px 16px;
  color: var(--sa-muted);
  font-size: 12px;
  border: 1px solid var(--sa-border);
  border-radius: 14px;
  background: rgba(17, 25, 47, .48);
  backdrop-filter: blur(14px);
}
.navigation .active { color: #fff; font-size: 12px; }
.navigation .active::before { content: "›"; margin: 0 7px; color: var(--sa-primary); }

table { color: var(--sa-text); font-size: 13px; border-collapse: separate; border-spacing: 0; }
.tborder {
  width: 100%;
  margin: 0 0 22px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-radius);
  background: var(--sa-surface);
  box-shadow: var(--sa-shadow);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}

.thead {
  padding: 14px 16px;
  color: #fff;
  border: 0;
  border-bottom: 1px solid var(--sa-border-strong);
  border-radius: 0;
  background: linear-gradient(115deg, rgba(91,140,255,.78), rgba(139,92,246,.68));
  font-size: 14px;
  letter-spacing: .01em;
}
.thead a:link, .thead a:visited, .thead a:hover, .thead a:active { color: #fff; }
.thead strong { color: #fff; }

.tcat {
  padding: 10px 14px;
  color: #aebbd2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 0;
  border-bottom: 1px solid var(--sa-border);
  background: rgba(255,255,255,.04);
}
.tcat a:link, .tcat a:visited, .tcat a:hover, .tcat a:active { color: #c8d2e6; }

.trow1, .trow2 {
  color: #e2e9f6;
  border: 0;
  border-bottom: 1px solid rgba(170,197,255,.09);
  background: rgba(15, 23, 43, .54);
  transition: background .18s ease;
}
.trow2 { background: rgba(23, 32, 56, .52); }
tr:hover > .trow1, tr:hover > .trow2 { background: rgba(75, 104, 168, .16); }
.trow_sep { padding: 9px 14px; color: #bec9dc; border: 0; border-bottom: 1px solid var(--sa-border); background: rgba(255,255,255,.065); }
.tfoot { padding: 10px 14px; color: var(--sa-muted); border: 0; background: rgba(8, 13, 27, .55); }
.tfoot a:link, .tfoot a:visited, .tfoot a:hover, .tfoot a:active { color: #a9beef; }

.forum_status {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--sa-border);
  border-radius: 13px;
  background: rgba(255,255,255,.055) !important;
}
.forum_status::before { content: ""; position: absolute; inset: 10px; border: 2px solid #7887a7; border-radius: 50%; }
.forum_status::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 7px; height: 7px; border: 2px solid #111a30; border-radius: 50%; background: #66728d; }
.forum_on { border-color: rgba(45,212,191,.35); background: rgba(45,212,191,.09) !important; }
.forum_on::before { border-color: #5eead4; box-shadow: 0 0 16px rgba(45,212,191,.35); }
.forum_on::after { background: var(--sa-cyan); }

.thread_status { filter: hue-rotate(15deg) saturate(.85) brightness(1.65); opacity: .86; }
.smalltext { color: #aebbd2; font-size: 11px; }
.largetext { color: #fff; font-size: 16px; }

button, input.button, a.button, .postbit_buttons > a {
  padding: 9px 15px;
  cursor: pointer;
  color: #fff !important;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(143, 174, 255, .35);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(91,140,255,.95), rgba(115,82,219,.95));
  box-shadow: 0 8px 22px rgba(67, 92, 180, .2);
  transition: transform .18s ease, filter .18s ease;
}
button:hover, input.button:hover, a.button:hover, .postbit_buttons > a:hover { transform: translateY(-1px); filter: brightness(1.12); }

input.textbox, textarea, select {
  min-height: 38px;
  padding: 8px 11px;
  color: #edf3ff;
  font-family: inherit;
  font-size: 13px;
  outline: 0;
  border: 1px solid var(--sa-border);
  border-radius: 10px;
  background: rgba(5, 10, 24, .66);
  transition: border-color .18s ease, box-shadow .18s ease;
}
textarea { min-height: 130px; }
input.textbox:focus, textarea:focus, select:focus { border-color: rgba(91,140,255,.7); box-shadow: 0 0 0 3px rgba(91,140,255,.14); }
select option { color: #edf3ff; background: #111a30; }
fieldset { padding: 16px; border: 1px solid var(--sa-border); border-radius: 14px; background: rgba(255,255,255,.025); }

.post {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--sa-border) !important;
  border-radius: var(--sa-radius);
  background: var(--sa-surface) !important;
  box-shadow: var(--sa-shadow);
  backdrop-filter: blur(18px);
}
.post .post_head { padding: 11px 14px; color: var(--sa-muted); border-bottom: 1px solid var(--sa-border); background: rgba(255,255,255,.045); }
.post .post_author { color: #dbe6fa; border-color: var(--sa-border) !important; background: rgba(6, 11, 25, .28); }
.post .post_content { padding: 18px; }
.post .post_controls { padding: 10px 13px; border-top: 1px solid var(--sa-border); background: rgba(6, 11, 25, .35); }
.post.classic .post_author { border-radius: 0; }

blockquote, .codeblock {
  margin: 14px 0;
  padding: 14px;
  color: #d7e1f2;
  border: 1px solid var(--sa-border);
  border-left: 3px solid var(--sa-primary);
  border-radius: 12px;
  background: rgba(4, 9, 22, .52);
}
blockquote cite, .codeblock .title { color: #fff; border-bottom-color: var(--sa-border); }

.popup_menu, .modal {
  color: var(--sa-text);
  border: 1px solid var(--sa-border);
  border-radius: 16px;
  background: rgba(14, 21, 40, .94);
  box-shadow: 0 24px 80px rgba(0,0,0,.48);
  backdrop-filter: blur(24px);
}
.popup_menu .popup_item { color: #dbe4f5; background: transparent; }
.popup_menu .popup_item:hover { color: #fff; background: rgba(91,140,255,.22); }
.modal { overflow: hidden; }
.modal a.close-modal { filter: invert(1); opacity: .75; }
.blocker { background: rgba(2, 6, 16, .76) !important; backdrop-filter: blur(7px); }

.pagination { font-size: 12px; }
.pagination a, .pagination .pagination_current {
  display: inline-block;
  margin: 2px;
  padding: 7px 10px;
  color: #cbd8ef;
  border: 1px solid var(--sa-border);
  border-radius: 9px;
  background: rgba(255,255,255,.045);
}
.pagination .pagination_current, .pagination a:hover { color: #fff; border-color: var(--sa-primary); background: rgba(91,140,255,.25); }

.pm_alert, .red_alert, div.error, .information, .bottommenu {
  margin-bottom: 16px;
  padding: 12px 16px;
  color: #dce7fa;
  border: 1px solid rgba(251,191,36,.28);
  border-radius: 13px;
  background: rgba(251,191,36,.09);
}
.red_alert, div.error { color: #ffd7de; border-color: rgba(251,113,133,.34); background: rgba(251,113,133,.1); }
div.error p, div.error p em { color: inherit; }

#footer { margin: 8px 0 0; padding: 0 0 28px; }
#footer .upper, #footer .lower {
  color: var(--sa-muted);
  border: 0;
  background: transparent;
  padding: 0;
}
#footer .upper .wrapper {
  padding: 15px 17px;
  overflow: hidden;
  border: 1px solid var(--sa-border);
  border-radius: 17px 17px 0 0;
  background: rgba(17,25,47,.62);
  backdrop-filter: blur(18px);
}
#footer .lower .wrapper {
  padding: 15px 17px;
  overflow: hidden;
  border: 1px solid var(--sa-border);
  border-top: 0;
  border-radius: 0 0 17px 17px;
  background: rgba(8,13,28,.72);
}
#footer a:link, #footer a:visited, #footer a:hover, #footer a:active { color: #aebfe3; }
#footer .lower a:link, #footer .lower a:visited { color: #d4def0; }
.sa-footer-brand { float: left; margin-right: 18px; color: #fff; font-weight: 800; letter-spacing: -.01em; }

.expcolimage { opacity: .75; filter: invert(1); }
img { max-width: 100%; }
hr { height: 1px; border: 0; background: var(--sa-border); }

@media (prefers-reduced-motion: no-preference) {
  .tborder, .post { animation: sa-rise .38s ease both; }
  @keyframes sa-rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 820px) {
  .wrapper { width: min(100% - 22px, 100%); }
  #header { padding-top: 10px; }
  
  
  
  
  
  #header ul.menu.top_links::-webkit-scrollbar { display: none; }
  
  
  
  
  #content { padding-top: 18px; }
  .navigation { overflow-x: auto; white-space: nowrap; }
  .tborder { display: block; overflow-x: auto; border-radius: 14px; }
  .tborder > tbody { min-width: 620px; }
  .sa-index #content table.tborder { display: table; overflow: hidden; }
  .sa-index #content table.tborder > tbody { min-width: 0; }
  .post.classic .post_author, .post.classic .post_content { display: block; width: 100% !important; }
  .post.classic .post_author { border: 0 !important; border-bottom: 1px solid var(--sa-border) !important; }
  .post .post_content { padding: 14px; }
  #footer .upper .language, #footer .upper .theme, #footer .lower #current_time { float: none; display: block; margin: 8px 0; }
  #footer .upper ul.bottom_links { float: none; display: flex; flex-wrap: wrap; gap: 8px 12px; }
  #footer .upper ul.bottom_links li { margin: 0; }
  .sa-footer-brand { float: none; display: block; margin: 0 0 7px; }
}

@media (max-width: 520px) {
  body { font-size: 13px; }
  
  #content { padding-bottom: 26px; }
  .thead { padding: 12px; }
  .tcat { padding: 9px 11px; }
  input.textbox, textarea, select { max-width: 100%; }
  .modal { width: calc(100% - 24px) !important; }
  .sa-index #content table.tborder:first-of-type tr > *:nth-child(n+3) { display: none; }
  .sa-index #content table.tborder:first-of-type tr > *:first-child { width: 52px !important; }
}



.sa-tabs-widget { }
.sa-tabs-head { display: flex; gap: 4px; padding: 0 !important; overflow: hidden; }
.sa-tab-btn {
  flex: 1;
  padding: 12px;
  border: 0;
  background: transparent;
  color: #c3cee3;
  font-weight: 700;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.sa-tab-btn.sa-tab-active { background: rgba(255,255,255,.14); color: #fff; }
.sa-tab-panel { }
.sa-tab-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
}
.sa-tab-row-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.sa-tab-row-meta { flex-shrink: 0; }
.sa-tab-empty { padding: 16px; text-align: center; }

.sa-thread-subject a { font-weight: 700; transition: color .15s ease; }
.sa-thread-subject a:hover { color: #8cb0ff; }
.inline_row .author, .inline_row .thread_start_datetime { color: var(--sa-muted); }
